-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/add-scroll-to-dialog-body
- Loading branch information
Showing
31 changed files
with
337 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
IMAGE_NAME="mcr.microsoft.com/playwright" | ||
IMAGE_TAG="v1.38.1-jammy" # This version have to be synchronized with playwright version from package.json | ||
|
||
NODE_MODULES_CACHE_DIR="$HOME/.cache/uikit-playwright-docker-node-modules" | ||
|
||
run_command() { | ||
docker run --rm --network host -it -w /work \ | ||
-v $(pwd):/work \ | ||
-v "$NODE_MODULES_CACHE_DIR:/work/node_modules" \ | ||
"$IMAGE_NAME:$IMAGE_TAG" \ | ||
/bin/bash -c "$1" | ||
} | ||
|
||
if [[ "$1" = "clear-cache" ]]; then | ||
rm -rf "$NODE_MODULES_CACHE_DIR" | ||
exit 0 | ||
fi | ||
|
||
if [[ ! -d "$NODE_MODULES_CACHE_DIR" ]]; then | ||
run_command 'npm ci' | ||
fi | ||
|
||
run_command "$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
|
||
import {Button} from '../Button'; | ||
|
||
import type {AlertActionProps} from './types'; | ||
import {useAlertContext} from './useAlertContext'; | ||
|
||
export const AlertAction = (props: AlertActionProps) => { | ||
const {view} = useAlertContext(); | ||
|
||
return <Button view={view === 'filled' ? 'normal-contrast' : undefined} {...props} />; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import React from 'react'; | ||
|
||
import type {AlertContextType} from './types'; | ||
|
||
export const AlertContext = React.createContext<AlertContextType | null>(null); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import React from 'react'; | ||
|
||
import {AlertContext} from './AlertContext'; | ||
import type {AlertContextProviderProps} from './types'; | ||
|
||
export const AlertContextProvider = ({layout, view, children}: AlertContextProviderProps) => { | ||
return <AlertContext.Provider value={{layout, view}}>{children}</AlertContext.Provider>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
export {Alert} from './Alert'; | ||
export type {AlertProps} from './types'; | ||
export type { | ||
AlertProps, | ||
AlertTitleProps, | ||
AlertActionProps, | ||
AlertActionsProps, | ||
AlertIconProps, | ||
} from './types'; |
Oops, something went wrong.