@bikdotai/bik-component-library 0.0.6-beta → 0.0.6-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/_virtual/_tslib.js +1 -0
- package/dist/cjs/assets/icons/alert.svg.js +1 -0
- package/dist/cjs/assets/icons/check.svg.js +1 -0
- package/dist/cjs/assets/icons/cross.svg.js +1 -0
- package/dist/cjs/assets/icons/errorInfo.svg.js +1 -0
- package/dist/cjs/assets/icons/question-mark.svg.js +1 -0
- package/dist/cjs/assets/icons/search.svg.js +1 -0
- package/dist/cjs/bundle.css +628 -0
- package/dist/cjs/components/TypographyStyle.d.ts +15 -0
- package/dist/cjs/components/TypographyStyle.js +88 -0
- package/dist/cjs/components/button/Button.d.ts +3 -0
- package/dist/cjs/components/button/Button.js +1 -0
- package/dist/cjs/components/button/Button.styled.d.ts +13 -0
- package/dist/cjs/components/button/Button.styled.js +1 -0
- package/dist/cjs/components/button/index.d.ts +1 -0
- package/dist/cjs/components/button/model.d.ts +57 -0
- package/dist/cjs/components/button/themes.d.ts +18 -0
- package/dist/cjs/components/button/themes.js +1 -0
- package/dist/cjs/components/checkBox/CheckBox.d.ts +9 -0
- package/dist/cjs/components/checkBox/CheckBox.js +1 -0
- package/dist/cjs/components/checkBox/CheckBox.styled.d.ts +7 -0
- package/dist/cjs/components/checkBox/CheckBox.styled.js +26 -0
- package/dist/cjs/components/checkBox/index.d.ts +1 -0
- package/dist/cjs/components/dropdown/Common.styled.d.ts +2 -0
- package/dist/cjs/components/dropdown/Dropdown.d.ts +9 -0
- package/dist/cjs/components/dropdown/UnChildDropdown.d.ts +12 -0
- package/dist/cjs/components/dropdown/index.d.ts +1 -0
- package/dist/cjs/components/fab-menu/FABMenu.d.ts +15 -0
- package/dist/cjs/components/fab-menu/FABMenu.js +1 -0
- package/dist/cjs/components/fab-menu/index.d.ts +1 -0
- package/dist/cjs/components/floating-action-button/FloatingActionButton.d.ts +13 -0
- package/dist/cjs/components/floating-action-button/FloatingActionButton.js +1 -0
- package/dist/cjs/components/floating-action-button/FloatingActionButton.styles.d.ts +33 -0
- package/dist/cjs/components/floating-action-button/FloatingActionButton.styles.js +83 -0
- package/dist/cjs/components/floating-action-button/index.d.ts +1 -0
- package/dist/cjs/components/icon-button/IconButton.d.ts +3 -0
- package/dist/cjs/components/icon-button/IconButton.js +1 -0
- package/dist/cjs/components/icon-button/IconButton.styled.d.ts +6 -0
- package/dist/cjs/components/icon-button/IconButton.styled.js +3 -0
- package/dist/cjs/components/icon-button/index.d.ts +1 -0
- package/dist/cjs/components/icon-button/model.d.ts +37 -0
- package/dist/cjs/components/icon-button/theme.d.ts +3 -0
- package/dist/cjs/components/icon-button/theme.js +1 -0
- package/dist/cjs/components/input/Input.d.ts +37 -0
- package/dist/cjs/components/input/Input.js +1 -0
- package/dist/cjs/components/input/Input.styled.d.ts +114 -0
- package/dist/cjs/components/input/Input.styled.js +1 -0
- package/dist/cjs/components/input/context/InputStyleProvider.d.ts +7 -0
- package/dist/cjs/components/input/context/InputStyleProvider.js +1 -0
- package/dist/cjs/components/input/index.d.ts +1 -0
- package/dist/cjs/components/list-item/ListItem.d.ts +16 -0
- package/dist/cjs/components/list-item/ListItem.js +1 -0
- package/dist/cjs/components/list-item/ListItem.styled.d.ts +9 -0
- package/dist/cjs/components/list-item/ListItem.styled.js +1 -0
- package/dist/cjs/components/list-item/index.d.ts +1 -0
- package/dist/cjs/components/list-item/themes.d.ts +3 -0
- package/dist/cjs/components/list-item/themes.js +1 -0
- package/dist/cjs/components/opennedDropdown/components/OpennedDropdown.d.ts +3 -0
- package/dist/cjs/components/opennedDropdown/components/OpennedDropdown.js +1 -0
- package/dist/cjs/components/opennedDropdown/components/OpennedDropdown.styled.d.ts +5 -0
- package/dist/cjs/components/opennedDropdown/components/OpennedDropdown.styled.js +26 -0
- package/dist/cjs/components/opennedDropdown/components/description/Description.d.ts +6 -0
- package/dist/cjs/components/opennedDropdown/components/description/Description.js +1 -0
- package/dist/cjs/components/opennedDropdown/components/description/Description.styled.d.ts +1 -0
- package/dist/cjs/components/opennedDropdown/components/description/Description.styled.js +5 -0
- package/dist/cjs/components/opennedDropdown/components/menu/FreeFormMenu.d.ts +6 -0
- package/dist/cjs/components/opennedDropdown/components/menu/FreeFormMenu.js +1 -0
- package/dist/cjs/components/opennedDropdown/components/menu/FreeFormMenu.styled.d.ts +1 -0
- package/dist/cjs/components/opennedDropdown/components/menu/FreeFormMenu.styled.js +6 -0
- package/dist/cjs/components/opennedDropdown/components/menu/MenuItem.d.ts +8 -0
- package/dist/cjs/components/opennedDropdown/components/menu/MenuItem.js +1 -0
- package/dist/cjs/components/opennedDropdown/components/menu/MenuList.d.ts +8 -0
- package/dist/cjs/components/opennedDropdown/components/menu/MenuList.js +1 -0
- package/dist/cjs/components/opennedDropdown/components/menu/MenuList.styled.d.ts +1 -0
- package/dist/cjs/components/opennedDropdown/components/menu/MenuList.styled.js +6 -0
- package/dist/cjs/components/opennedDropdown/components/menu/SelectAllMenu.d.ts +7 -0
- package/dist/cjs/components/opennedDropdown/components/menu/SelectAllMenu.js +1 -0
- package/dist/cjs/components/opennedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.d.ts +8 -0
- package/dist/cjs/components/opennedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.js +1 -0
- package/dist/cjs/components/opennedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.d.ts +1 -0
- package/dist/cjs/components/opennedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js +8 -0
- package/dist/cjs/components/opennedDropdown/components/searchbox/SearchBox.d.ts +4 -0
- package/dist/cjs/components/opennedDropdown/components/searchbox/SearchBox.js +1 -0
- package/dist/cjs/components/opennedDropdown/components/searchbox/ZeroState.d.ts +4 -0
- package/dist/cjs/components/opennedDropdown/components/searchbox/ZeroState.js +16 -0
- package/dist/cjs/components/opennedDropdown/index.d.ts +1 -0
- package/dist/cjs/components/opennedDropdown/type.d.ts +27 -0
- package/dist/cjs/components/opennedDropdown/utils/iterationOnOptions.d.ts +23 -0
- package/dist/cjs/components/opennedDropdown/utils/iterationOnOptions.js +1 -0
- package/dist/cjs/components/pagination/Pagination.d.ts +9 -0
- package/dist/cjs/components/pagination/Pagination.js +1 -0
- package/dist/cjs/components/pagination/Pagination.styled.d.ts +5 -0
- package/dist/cjs/components/pagination/Pagination.styled.js +1 -0
- package/dist/cjs/components/pagination/index.d.ts +1 -0
- package/dist/cjs/components/radioButton/RadioButton.d.ts +8 -0
- package/dist/cjs/components/radioButton/RadioButton.js +1 -0
- package/dist/cjs/components/radioButton/RadioButton.styled.d.ts +7 -0
- package/dist/cjs/components/radioButton/RadioButton.styled.js +20 -0
- package/dist/cjs/components/radioButton/index.d.ts +1 -0
- package/dist/cjs/components/sample-button/SampleButton.d.ts +18 -0
- package/dist/cjs/components/sample-button/SampleButton.styled.d.ts +9 -0
- package/dist/cjs/components/sample-button/index.d.ts +1 -0
- package/dist/cjs/components/sample-button/themes.d.ts +2 -0
- package/dist/cjs/components/spinner/Spinner.d.ts +6 -0
- package/dist/cjs/components/spinner/Spinner.js +1 -0
- package/dist/cjs/components/spinner/index.d.ts +1 -0
- package/dist/cjs/components/spinner/lotties/black.json.js +1 -0
- package/dist/cjs/components/spinner/lotties/brand.json.js +1 -0
- package/dist/cjs/components/spinner/lotties/red.json.js +1 -0
- package/dist/cjs/components/spinner/lotties/white.json.js +1 -0
- package/dist/cjs/components/spinner/model.d.ts +13 -0
- package/dist/cjs/components/spinner/themes.d.ts +3 -0
- package/dist/cjs/components/spinner/themes.js +1 -0
- package/dist/cjs/components/stepper/Stepper.d.ts +22 -0
- package/dist/cjs/components/stepper/Stepper.js +1 -0
- package/dist/cjs/components/stepper/Stepper.styled.d.ts +6 -0
- package/dist/cjs/components/stepper/Stepper.styled.js +83 -0
- package/dist/cjs/components/stepper/StepperService.d.ts +4 -0
- package/dist/cjs/components/stepper/WorkingStepper.d.ts +14 -0
- package/dist/cjs/components/stepper/index.d.ts +1 -0
- package/dist/cjs/components/stepper/themes.d.ts +18 -0
- package/dist/cjs/components/stepper/themes.js +1 -0
- package/dist/cjs/components/tag/Tag.d.ts +6 -0
- package/dist/cjs/components/tag/Tag.js +1 -0
- package/dist/cjs/components/tag/Tag.styled.d.ts +6 -0
- package/dist/cjs/components/tag/Tag.styled.js +26 -0
- package/dist/cjs/components/tag/index.d.ts +1 -0
- package/dist/cjs/components/tag/model.d.ts +34 -0
- package/dist/cjs/components/tag/themes.d.ts +6 -0
- package/dist/cjs/components/tag/themes.js +1 -0
- package/dist/cjs/components/toaster/Toaster.d.ts +27 -0
- package/dist/cjs/components/toaster/Toaster.js +1 -0
- package/dist/cjs/components/toaster/Toaster.styled.d.ts +4 -0
- package/dist/cjs/components/toaster/Toaster.styled.js +35 -0
- package/dist/cjs/components/toaster/index.d.ts +1 -0
- package/dist/cjs/components/tooltips/Tooltip.d.ts +10 -0
- package/dist/cjs/components/tooltips/Tooltip.js +1 -0
- package/dist/cjs/components/tooltips/TooltipInternal.d.ts +10 -0
- package/dist/cjs/components/tooltips/TooltipInternal.js +1 -0
- package/dist/cjs/components/tooltips/index.d.ts +1 -0
- package/dist/cjs/constants/Theme.d.ts +587 -0
- package/dist/cjs/constants/Theme.js +1 -0
- package/dist/cjs/constants/breakpoints.d.ts +6 -0
- package/dist/cjs/constants/colors.d.ts +7 -0
- package/dist/cjs/constants/spacing.d.ts +2 -0
- package/dist/cjs/hooks/useOutside.d.ts +1 -0
- package/dist/cjs/hooks/useOutside.js +1 -0
- package/dist/cjs/index.d.ts +13 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/utils/classNames.d.ts +7 -0
- package/dist/cjs/utils/rgba.d.ts +8 -0
- package/dist/esm/_virtual/_tslib.js +1 -0
- package/dist/esm/assets/icons/alert.svg.js +1 -0
- package/dist/esm/assets/icons/check.svg.js +1 -0
- package/dist/esm/assets/icons/cross.svg.js +1 -0
- package/dist/esm/assets/icons/errorInfo.svg.js +1 -0
- package/dist/esm/assets/icons/question-mark.svg.js +1 -0
- package/dist/esm/assets/icons/search.svg.js +1 -0
- package/dist/esm/bundle.css +628 -0
- package/dist/esm/components/TypographyStyle.d.ts +15 -0
- package/dist/esm/components/TypographyStyle.js +88 -0
- package/dist/esm/components/button/Button.d.ts +3 -0
- package/dist/esm/components/button/Button.js +1 -0
- package/dist/esm/components/button/Button.styled.d.ts +13 -0
- package/dist/esm/components/button/Button.styled.js +1 -0
- package/dist/esm/components/button/index.d.ts +1 -0
- package/dist/esm/components/button/model.d.ts +57 -0
- package/dist/esm/components/button/themes.d.ts +18 -0
- package/dist/esm/components/button/themes.js +1 -0
- package/dist/esm/components/checkBox/CheckBox.d.ts +9 -0
- package/dist/esm/components/checkBox/CheckBox.js +1 -0
- package/dist/esm/components/checkBox/CheckBox.styled.d.ts +7 -0
- package/dist/esm/components/checkBox/CheckBox.styled.js +26 -0
- package/dist/esm/components/checkBox/index.d.ts +1 -0
- package/dist/esm/components/dropdown/Common.styled.d.ts +2 -0
- package/dist/esm/components/dropdown/Dropdown.d.ts +9 -0
- package/dist/esm/components/dropdown/UnChildDropdown.d.ts +12 -0
- package/dist/esm/components/dropdown/index.d.ts +1 -0
- package/dist/esm/components/fab-menu/FABMenu.d.ts +15 -0
- package/dist/esm/components/fab-menu/FABMenu.js +1 -0
- package/dist/esm/components/fab-menu/index.d.ts +1 -0
- package/dist/esm/components/floating-action-button/FloatingActionButton.d.ts +13 -0
- package/dist/esm/components/floating-action-button/FloatingActionButton.js +1 -0
- package/dist/esm/components/floating-action-button/FloatingActionButton.styles.d.ts +33 -0
- package/dist/esm/components/floating-action-button/FloatingActionButton.styles.js +83 -0
- package/dist/esm/components/floating-action-button/index.d.ts +1 -0
- package/dist/esm/components/icon-button/IconButton.d.ts +3 -0
- package/dist/esm/components/icon-button/IconButton.js +1 -0
- package/dist/esm/components/icon-button/IconButton.styled.d.ts +6 -0
- package/dist/esm/components/icon-button/IconButton.styled.js +3 -0
- package/dist/esm/components/icon-button/index.d.ts +1 -0
- package/dist/esm/components/icon-button/model.d.ts +37 -0
- package/dist/esm/components/icon-button/theme.d.ts +3 -0
- package/dist/esm/components/icon-button/theme.js +1 -0
- package/dist/esm/components/input/Input.d.ts +37 -0
- package/dist/esm/components/input/Input.js +1 -0
- package/dist/esm/components/input/Input.styled.d.ts +114 -0
- package/dist/esm/components/input/Input.styled.js +1 -0
- package/dist/esm/components/input/context/InputStyleProvider.d.ts +7 -0
- package/dist/esm/components/input/context/InputStyleProvider.js +1 -0
- package/dist/esm/components/input/index.d.ts +1 -0
- package/dist/esm/components/list-item/ListItem.d.ts +16 -0
- package/dist/esm/components/list-item/ListItem.js +1 -0
- package/dist/esm/components/list-item/ListItem.styled.d.ts +9 -0
- package/dist/esm/components/list-item/ListItem.styled.js +1 -0
- package/dist/esm/components/list-item/index.d.ts +1 -0
- package/dist/esm/components/list-item/themes.d.ts +3 -0
- package/dist/esm/components/list-item/themes.js +1 -0
- package/dist/esm/components/opennedDropdown/components/OpennedDropdown.d.ts +3 -0
- package/dist/esm/components/opennedDropdown/components/OpennedDropdown.js +1 -0
- package/dist/esm/components/opennedDropdown/components/OpennedDropdown.styled.d.ts +5 -0
- package/dist/esm/components/opennedDropdown/components/OpennedDropdown.styled.js +26 -0
- package/dist/esm/components/opennedDropdown/components/description/Description.d.ts +6 -0
- package/dist/esm/components/opennedDropdown/components/description/Description.js +1 -0
- package/dist/esm/components/opennedDropdown/components/description/Description.styled.d.ts +1 -0
- package/dist/esm/components/opennedDropdown/components/description/Description.styled.js +5 -0
- package/dist/esm/components/opennedDropdown/components/menu/FreeFormMenu.d.ts +6 -0
- package/dist/esm/components/opennedDropdown/components/menu/FreeFormMenu.js +1 -0
- package/dist/esm/components/opennedDropdown/components/menu/FreeFormMenu.styled.d.ts +1 -0
- package/dist/esm/components/opennedDropdown/components/menu/FreeFormMenu.styled.js +6 -0
- package/dist/esm/components/opennedDropdown/components/menu/MenuItem.d.ts +8 -0
- package/dist/esm/components/opennedDropdown/components/menu/MenuItem.js +1 -0
- package/dist/esm/components/opennedDropdown/components/menu/MenuList.d.ts +8 -0
- package/dist/esm/components/opennedDropdown/components/menu/MenuList.js +1 -0
- package/dist/esm/components/opennedDropdown/components/menu/MenuList.styled.d.ts +1 -0
- package/dist/esm/components/opennedDropdown/components/menu/MenuList.styled.js +6 -0
- package/dist/esm/components/opennedDropdown/components/menu/SelectAllMenu.d.ts +7 -0
- package/dist/esm/components/opennedDropdown/components/menu/SelectAllMenu.js +1 -0
- package/dist/esm/components/opennedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.d.ts +8 -0
- package/dist/esm/components/opennedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.js +1 -0
- package/dist/esm/components/opennedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.d.ts +1 -0
- package/dist/esm/components/opennedDropdown/components/multiSelect/MultiSelectDropdownBottomBar.styled.js +8 -0
- package/dist/esm/components/opennedDropdown/components/searchbox/SearchBox.d.ts +4 -0
- package/dist/esm/components/opennedDropdown/components/searchbox/SearchBox.js +1 -0
- package/dist/esm/components/opennedDropdown/components/searchbox/ZeroState.d.ts +4 -0
- package/dist/esm/components/opennedDropdown/components/searchbox/ZeroState.js +16 -0
- package/dist/esm/components/opennedDropdown/index.d.ts +1 -0
- package/dist/esm/components/opennedDropdown/type.d.ts +27 -0
- package/dist/esm/components/opennedDropdown/utils/iterationOnOptions.d.ts +23 -0
- package/dist/esm/components/opennedDropdown/utils/iterationOnOptions.js +1 -0
- package/dist/esm/components/pagination/Pagination.d.ts +9 -0
- package/dist/esm/components/pagination/Pagination.js +1 -0
- package/dist/esm/components/pagination/Pagination.styled.d.ts +5 -0
- package/dist/esm/components/pagination/Pagination.styled.js +1 -0
- package/dist/esm/components/pagination/index.d.ts +1 -0
- package/dist/esm/components/radioButton/RadioButton.d.ts +8 -0
- package/dist/esm/components/radioButton/RadioButton.js +1 -0
- package/dist/esm/components/radioButton/RadioButton.styled.d.ts +7 -0
- package/dist/esm/components/radioButton/RadioButton.styled.js +20 -0
- package/dist/esm/components/radioButton/index.d.ts +1 -0
- package/dist/esm/components/sample-button/SampleButton.d.ts +18 -0
- package/dist/esm/components/sample-button/SampleButton.styled.d.ts +9 -0
- package/dist/esm/components/sample-button/index.d.ts +1 -0
- package/dist/esm/components/sample-button/themes.d.ts +2 -0
- package/dist/esm/components/spinner/Spinner.d.ts +6 -0
- package/dist/esm/components/spinner/Spinner.js +1 -0
- package/dist/esm/components/spinner/index.d.ts +1 -0
- package/dist/esm/components/spinner/lotties/black.json.js +1 -0
- package/dist/esm/components/spinner/lotties/brand.json.js +1 -0
- package/dist/esm/components/spinner/lotties/red.json.js +1 -0
- package/dist/esm/components/spinner/lotties/white.json.js +1 -0
- package/dist/esm/components/spinner/model.d.ts +13 -0
- package/dist/esm/components/spinner/themes.d.ts +3 -0
- package/dist/esm/components/spinner/themes.js +1 -0
- package/dist/esm/components/stepper/Stepper.d.ts +22 -0
- package/dist/esm/components/stepper/Stepper.js +1 -0
- package/dist/esm/components/stepper/Stepper.styled.d.ts +6 -0
- package/dist/esm/components/stepper/Stepper.styled.js +83 -0
- package/dist/esm/components/stepper/StepperService.d.ts +4 -0
- package/dist/esm/components/stepper/WorkingStepper.d.ts +14 -0
- package/dist/esm/components/stepper/index.d.ts +1 -0
- package/dist/esm/components/stepper/themes.d.ts +18 -0
- package/dist/esm/components/stepper/themes.js +1 -0
- package/dist/esm/components/tag/Tag.d.ts +6 -0
- package/dist/esm/components/tag/Tag.js +1 -0
- package/dist/esm/components/tag/Tag.styled.d.ts +6 -0
- package/dist/esm/components/tag/Tag.styled.js +26 -0
- package/dist/esm/components/tag/index.d.ts +1 -0
- package/dist/esm/components/tag/model.d.ts +34 -0
- package/dist/esm/components/tag/themes.d.ts +6 -0
- package/dist/esm/components/tag/themes.js +1 -0
- package/dist/esm/components/toaster/Toaster.d.ts +27 -0
- package/dist/esm/components/toaster/Toaster.js +1 -0
- package/dist/esm/components/toaster/Toaster.styled.d.ts +4 -0
- package/dist/esm/components/toaster/Toaster.styled.js +35 -0
- package/dist/esm/components/toaster/index.d.ts +1 -0
- package/dist/esm/components/tooltips/Tooltip.d.ts +10 -0
- package/dist/esm/components/tooltips/Tooltip.js +1 -0
- package/dist/esm/components/tooltips/TooltipInternal.d.ts +10 -0
- package/dist/esm/components/tooltips/TooltipInternal.js +1 -0
- package/dist/esm/components/tooltips/index.d.ts +1 -0
- package/dist/esm/constants/Theme.d.ts +587 -0
- package/dist/esm/constants/Theme.js +1 -0
- package/dist/esm/constants/breakpoints.d.ts +6 -0
- package/dist/esm/constants/colors.d.ts +7 -0
- package/dist/esm/constants/spacing.d.ts +2 -0
- package/dist/esm/hooks/useOutside.d.ts +1 -0
- package/dist/esm/hooks/useOutside.js +1 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/utils/classNames.d.ts +7 -0
- package/dist/esm/utils/rgba.d.ts +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const TitleLarge: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const TitleMedium: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const TitleRegular: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const TitleSmall: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const Display: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export declare const BodyLarge: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
+
export declare const BodyPrimary: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const BodySecondary: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const BodyPrimaryLink: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
+
export declare const BodySecondaryLink: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
|
+
export declare const BodyCaption: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
|
+
export declare const BodyTiny: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
|
+
export declare const ButtonLarge: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
14
|
+
export declare const ButtonRegular: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
15
|
+
export declare const SubHeading: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import t from"styled-components";import{COLORS as e,FONTS as i}from"../constants/Theme.js";const o=t=>t+"px";t.div`
|
|
2
|
+
font-family: Inter;
|
|
3
|
+
color: ${t=>t.color||e.text.primary};
|
|
4
|
+
font-weight: ${t=>i.titleLarge.fontWeight};
|
|
5
|
+
font-size: ${t=>o(i.titleLarge.fontSize)};
|
|
6
|
+
line-height: ${t=>o(i.titleLarge.lineHeight)};
|
|
7
|
+
`,t.div`
|
|
8
|
+
font-family: Inter;
|
|
9
|
+
color: ${t=>t.color||e.text.primary};
|
|
10
|
+
font-weight: ${t=>i.titleMedium.fontWeight};
|
|
11
|
+
font-size: ${t=>o(i.titleMedium.fontSize)};
|
|
12
|
+
line-height: ${t=>o(i.titleMedium.lineHeight)};
|
|
13
|
+
`;const n=t.div`
|
|
14
|
+
font-family: Inter;
|
|
15
|
+
color: ${t=>t.color||e.text.primary};
|
|
16
|
+
font-weight: ${t=>i.titleRegular.fontWeight};
|
|
17
|
+
font-size: ${t=>o(i.titleRegular.fontSize)};
|
|
18
|
+
line-height: ${t=>o(i.titleRegular.lineHeight)};
|
|
19
|
+
`,r=t.div`
|
|
20
|
+
font-family: Inter;
|
|
21
|
+
color: ${t=>t.color||e.text.primary};
|
|
22
|
+
font-weight: ${t=>i.titleSmall.fontWeight};
|
|
23
|
+
font-size: ${t=>o(i.titleSmall.fontSize)};
|
|
24
|
+
line-height: ${t=>o(i.titleSmall.lineHeight)};
|
|
25
|
+
`;t.div`
|
|
26
|
+
font-family: Inter;
|
|
27
|
+
color: ${t=>t.color||e.text.primary};
|
|
28
|
+
font-weight: ${t=>i.display.fontWeight};
|
|
29
|
+
font-size: ${t=>o(i.display.fontSize)};
|
|
30
|
+
line-height: ${t=>o(i.display.lineHeight)};
|
|
31
|
+
`,t.div`
|
|
32
|
+
font-family: Inter;
|
|
33
|
+
color: ${t=>t.color||e.text.primary};
|
|
34
|
+
font-weight: ${t=>i.bodyPrimary.fontWeight};
|
|
35
|
+
font-size: ${t=>o(i.bodyLarge.fontSize)};
|
|
36
|
+
line-height: ${t=>o(i.bodyLarge.lineHeight)};
|
|
37
|
+
`;const l=t.div`
|
|
38
|
+
font-family: Inter;
|
|
39
|
+
color: ${t=>t.color||e.text.primary};
|
|
40
|
+
font-weight: ${t=>i.bodyPrimary.fontWeight};
|
|
41
|
+
font-size: ${t=>o(i.bodyPrimary.fontSize)};
|
|
42
|
+
line-height: ${t=>o(i.bodyPrimary.lineHeight)};
|
|
43
|
+
`,f=t.div`
|
|
44
|
+
font-family: Inter;
|
|
45
|
+
color: ${t=>e.content.primary};
|
|
46
|
+
font-weight: ${t=>i.bodySecondary.fontWeight};
|
|
47
|
+
font-size: ${t=>o(i.bodySecondary.fontSize)};
|
|
48
|
+
line-height: ${t=>o(i.bodySecondary.lineHeight)};
|
|
49
|
+
`;t(l)`
|
|
50
|
+
text-decoration: underline;
|
|
51
|
+
color: ${t=>e.content.brand};
|
|
52
|
+
text-decoration-color: ${t=>e.content.brand};
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
`,t(f)`
|
|
55
|
+
text-decoration: underline;
|
|
56
|
+
color: ${t=>e.content.brand};
|
|
57
|
+
text-decoration-color: ${t=>e.content.brand};
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
`;const g=t.div`
|
|
60
|
+
font-family: Inter;
|
|
61
|
+
color: ${t=>t.color||e.text.primary};
|
|
62
|
+
font-weight: ${t=>i.caption.fontWeight};
|
|
63
|
+
font-size: ${t=>o(i.caption.fontSize)};
|
|
64
|
+
line-height: ${t=>o(i.caption.lineHeight)};
|
|
65
|
+
`;t.div`
|
|
66
|
+
color: ${t=>t.color||e.text.primary};
|
|
67
|
+
font-weight: ${t=>i.tiny.fontWeight};
|
|
68
|
+
font-size: ${t=>o(i.tiny.fontSize)};
|
|
69
|
+
line-height: ${t=>o(i.tiny.lineHeight)};
|
|
70
|
+
`;const a=t.div`
|
|
71
|
+
font-family: Inter;
|
|
72
|
+
color: ${t=>t.color||e.text.primary};
|
|
73
|
+
font-weight: ${t=>i.buttonLarge.fontWeight};
|
|
74
|
+
font-size: ${t=>o(i.buttonLarge.fontSize)};
|
|
75
|
+
line-height: ${t=>o(i.buttonLarge.lineHeight)};
|
|
76
|
+
`,h=t.div`
|
|
77
|
+
font-family: Inter;
|
|
78
|
+
color: ${t=>t.color||e.text.primary};
|
|
79
|
+
font-weight: ${t=>i.buttonRegular.fontWeight};
|
|
80
|
+
font-size: ${t=>o(i.buttonRegular.fontSize)};
|
|
81
|
+
line-height: ${t=>o(i.buttonRegular.lineHeight)};
|
|
82
|
+
`;t.div`
|
|
83
|
+
font-family: Inter;
|
|
84
|
+
color: ${t=>t.color||e.text.primary};
|
|
85
|
+
font-weight: ${t=>i.subHeading.fontWeight};
|
|
86
|
+
font-size: ${t=>o(i.subHeading.fontSize)};
|
|
87
|
+
line-height: ${t=>o(i.subHeading.lineHeight)};
|
|
88
|
+
`;export{g as BodyCaption,l as BodyPrimary,f as BodySecondary,a as ButtonLarge,h as ButtonRegular,n as TitleRegular,r as TitleSmall};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__rest as e}from"../../_virtual/_tslib.js";import{jsx as i,jsxs as n}from"react/jsx-runtime";import s,{forwardRef as t}from"react";import{Spinner as a}from"../spinner/Spinner.js";import{Button as o,ButtonCustomDashedBorder as c}from"./Button.styled.js";import{getButtonIconColor as r,SpinnerColorMap as l,GetButtonTextComponent as d}from"./themes.js";const m=t(((t,m)=>{var{id:p,buttonType:b="primary",size:g="small",buttonText:h,disabled:j,IconComponent:y,LeadingIcon:u,TrailingIcon:v,style:N,isLoading:f,inverse:O,onClick:T}=t,I=e(t,["id","buttonType","size","buttonText","disabled","IconComponent","LeadingIcon","TrailingIcon","style","isLoading","inverse","onClick"]);const x=d(g),C="chip"===g?16:20,L={height:C,width:C,color:r(g,b,O,j,f),style:{display:"block"},className:"icon"};return i(o,Object.assign({onClick:T,ref:m,id:p,disabled:j,style:N,size:g,buttonType:b,isLoading:f,inverse:O},I,{children:n("div",Object.assign({className:"container"},{children:["dash"===b&&i(c,{}),i("div",Object.assign({className:"overlay-container"},{children:f&&i(a,{className:"spinner",size:"small",color:l(b,O)})})),y&&i("div",Object.assign({className:"icon-component"},{children:s.createElement(y,L)})),v&&i("div",Object.assign({className:"icon-trailing"},{children:s.createElement(v,L)})),i(x,Object.assign({className:"text"},{children:h})),u&&i("div",Object.assign({className:"icon-leading"},{children:s.createElement(u,L)}))]}))}))}));m.displayName="Button";export{m as Button};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Size, Type } from './model';
|
|
3
|
+
export declare const Button: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
size: Size;
|
|
8
|
+
buttonType: Type;
|
|
9
|
+
isLoading?: boolean | undefined;
|
|
10
|
+
inverse?: boolean | undefined;
|
|
11
|
+
disabled?: boolean | undefined;
|
|
12
|
+
}, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
13
|
+
export declare const ButtonCustomDashedBorder: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t from"@emotion/styled/base";import{jsxs as c,Fragment as d,jsx as n}from"react/jsx-runtime";import{COLORS as X}from"../../constants/Theme.js";import{getBackgroundColor as H,getPadding as l,getBorder as b,getColor as x,getDashedBorderStyling as i,generateDisabledStyling as e,getDisabledTextColor as R,getClickEffect as G,getHoverButtonBackground as p,generateInverseHoverBackground as o,getLoadingBorder as a,getLoadingBackground as I}from"./themes.js";const u=t("button","production"===process.env.NODE_ENV?{target:"exlualr0"}:{target:"exlualr0",label:"Button"})("all:unset;cursor:pointer;display:flex;gap:8.83px;border-radius:4px;overflow:hidden;background-color:",(t=>H(t.buttonType,t.size,t.inverse)),";",(t=>"dash"===t.buttonType?`.container {\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\twidth: 100%;\n\t\t\t\t\tposition: relative;\n\t\t\t\t\tborder-radius: 4px;\n\t\t\t\t\toverflow: hidden;\n\t\t\t\t\tpadding: ${l(t.buttonType,t.size)};\n\t\t\t\t}`:`padding: ${l(t.buttonType,t.size)};\n\t${b(t.buttonType,t.size,t.inverse)}`)," .icon-component{height:",(t=>"chip"===t.size?"16px":"20px"),";width:",(t=>"chip"===t.size?"16px":"20px"),";}.icon-trailing{height:",(t=>"chip"===t.size?"16px":"20px"),";width:",(t=>"chip"===t.size?"16px":"20px"),";}.text{color:",(t=>x(t.buttonType,t.size,t.inverse)),";}.icon-leading{height:",(t=>"chip"===t.size?"16px":"20px"),";width:",(t=>"chip"===t.size?"16px":"20px"),";}",(t=>i(t.buttonType,t.size,t.isLoading?X.content.brand:void 0))," .overlay-container{display:none;}:disabled{cursor:not-allowed;",(t=>i(t.buttonType,t.size,X.stroke.primary)),";.overlay-container{display:none!important;}",(t=>e(t.buttonType,t.size,t.inverse))," .text{color:",(t=>R(t.inverse)),"!important;}}",(t=>!t.disabled&&!t.isLoading&&`:active {\n\t\t\t\t.container {\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\tposition: relative;\n\t\t\t\t\twidth: 100%;\n\t\t\t\t\t.overlay-container {\n\t\t\t\t\t\tdisplay: none !important;\n\t\t\t\t\t}\n\t\t\t\t\t${"chip"===t.size&&`.text {\n\t\t\t\t\t\tcolor: ${X.background.inverseLight} !important;\n\t\t\t\t\t}\n\t\t\t\t\t.icon {\n\t\t\t\t\t\tcolor: ${X.background.inverseLight};\n\t\t\t\t\t}\n\t\t\t\t\t`}\n\t\t\t\t}\n\n\n\t\t\t${G(t.buttonType,t.size,t.inverse)}\n\t\t\t${i(t.buttonType,t.size,X.content.brand)}\n\t\t}`)," ",(t=>t.isLoading?`cursor: not-allowed;\n\t\tpadding: 0;\n\t\t${a(t.buttonType,t.size,t.inverse)}\n\n\t\t.container {\n\t\t\tdisplay: flex;\n\t\t\tposition: relative;\n\t\t\twidth: 100%;\n\t\t\t.text {\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\tpadding: ${l(t.buttonType,t.size)};\n\t\t\t.overlay-container {\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tpadding: 0;\n\t\t\t\tpadding-top: 1px;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\t${I(t.buttonType,t.size,t.inverse)}\n\t\t\t\t.spinner {\n\t\t\t\t\tposition: absolute;\n\t\t\t\t\ttop: calc(50% - 9px);\n\t\t\t\t\tleft: calc(50% - 7px);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}`:`:not(:active):not(:disabled):hover {\n\t\t\tpadding: 0;\n\t\t\t.container {\n\t\t\t\tdisplay: flex;\n\t\t\t\tposition: relative;\n\t\t\t\twidth: 100%;\n\t\t\t\tpadding: ${l(t.buttonType,t.size)};\n\t\t\t\t.overlay-container {\n\t\t\t\t\tdisplay: block;\n\t\t\t\t\tposition: absolute;\n\t\t\t\t\tpadding: 0;\n\t\t\t\t\ttop: 0;\n\t\t\t\t\tleft: 0;\n\t\t\t\t\twidth: 100%;\n\t\t\t\t\theight: 100%;\n\t\t\t\t\t${p(t.buttonType,t.inverse)}\n\t\t\t\t}\n\t\t\t\t${"chip"===t.size?`background-color: ${X.surface.hovered};`:""}\n\t\t\t\t${"primary"!==t.buttonType||"chip"===t.size||t.inverse?"":`background-color: ${X.background.inverseLight};`}\n\t\t\t}\n\t\t\t${t.inverse?o(t.buttonType,t.disabled):""}\n\t\t}`)," .container{display:flex;gap:8.33px;}"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJ1dHRvbi5zdHlsZWQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUlvQyIsImZpbGUiOiJCdXR0b24uc3R5bGVkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGpzeCBhcyBfanN4LCBGcmFnbWVudCBhcyBfRnJhZ21lbnQsIGpzeHMgYXMgX2pzeHMgfSBmcm9tIFwicmVhY3QvanN4LXJ1bnRpbWVcIjtcclxuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xyXG5pbXBvcnQgeyBDT0xPUlMgfSBmcm9tIFwiLi4vLi4vY29uc3RhbnRzL1RoZW1lXCI7XHJcbmltcG9ydCB7IGdlbmVyYXRlRGlzYWJsZWRTdHlsaW5nLCBnZW5lcmF0ZUludmVyc2VIb3ZlckJhY2tncm91bmQsIGdldEJhY2tncm91bmRDb2xvciwgZ2V0Qm9yZGVyLCBnZXRDbGlja0VmZmVjdCwgZ2V0Q29sb3IsIGdldERhc2hlZEJvcmRlclN0eWxpbmcsIGdldERpc2FibGVkVGV4dENvbG9yLCBnZXRIb3ZlckJ1dHRvbkJhY2tncm91bmQsIGdldExvYWRpbmdCYWNrZ3JvdW5kLCBnZXRMb2FkaW5nQm9yZGVyLCBnZXRQYWRkaW5nLCB9IGZyb20gJy4vdGhlbWVzJztcclxuZXhwb3J0IGNvbnN0IEJ1dHRvbiA9IHN0eWxlZC5idXR0b24gYFxuXHRhbGw6IHVuc2V0O1xuXHRjdXJzb3I6IHBvaW50ZXI7XG5cdGRpc3BsYXk6IGZsZXg7XG5cdGdhcDogOC44M3B4O1xuXHRib3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lciB7XG5cdFx0XHRcdFx0cG9zaXRpb246IGFic29sdXRlO1xuXHRcdFx0XHRcdHRvcDogY2FsYyg1MCUgLSA5cHgpO1xuXHRcdFx0XHRcdGxlZnQ6IGNhbGMoNTAlIC0gN3B4KTtcblx0XHRcdFx0fVxuXG5cdFx0XHR9XG5cdFx0fWB9XG5cblx0XHQuY29udGFpbmVyIHtcblx0XHRkaXNwbGF5OiBmbGV4O1xuXHRcdGdhcDogOC4zM3B4O1xuXHR9XG5gO1xyXG5leHBvcnQgY29uc3QgQnV0dG9uQ3VzdG9tRGFzaGVkQm9yZGVyID0gKCkgPT4ge1xyXG4gICAgcmV0dXJuIChfanN4cyhfRnJhZ21lbnQsIHsgY2hpbGRyZW46IFtfanN4KFwiZGl2XCIsIHsgY2xhc3NOYW1lOiBcImxpbmUtdG9wXCIgfSksIF9qc3goXCJkaXZcIiwgeyBjbGFzc05hbWU6IFwibGluZS1sZWZ0XCIgfSksIF9qc3goXCJkaXZcIiwgeyBjbGFzc05hbWU6IFwibGluZS1ib3R0b21cIiB9KSwgX2pzeChcImRpdlwiLCB7IGNsYXNzTmFtZTogXCJsaW5lLXJpZ2h0XCIgfSldIH0pKTtcclxufTtcclxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9QnV0dG9uLnN0eWxlZC5qcy5tYXAiXX0= */")),m=()=>c(d,{children:[n("div",{className:"line-top"}),n("div",{className:"line-left"}),n("div",{className:"line-bottom"}),n("div",{className:"line-right"})]});export{u as Button,m as ButtonCustomDashedBorder};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Button';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type Size = 'chip' | 'small' | 'medium' | 'large';
|
|
3
|
+
export type Type = 'primary' | 'secondary' | 'tertiary' | 'tertiaryGray' | 'destructive' | 'dash';
|
|
4
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
|
+
/**
|
|
6
|
+
* Font fize of the text
|
|
7
|
+
* @default default 'small'
|
|
8
|
+
*/
|
|
9
|
+
size?: Size;
|
|
10
|
+
/**
|
|
11
|
+
* Text to render inside the button
|
|
12
|
+
* @default ''
|
|
13
|
+
*/
|
|
14
|
+
buttonText: string;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the button is pressable or not
|
|
17
|
+
* @default true
|
|
18
|
+
*/
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Type of the button
|
|
22
|
+
* @default 'primary'
|
|
23
|
+
*/
|
|
24
|
+
buttonType?: Type;
|
|
25
|
+
/**
|
|
26
|
+
* The icon component that needs to be render, if text also exists, this would be Trailing component
|
|
27
|
+
* Referred to https://ozzie.sh/passing-icons-as-props-in-a-consistent-way-using-react
|
|
28
|
+
* @default undefined
|
|
29
|
+
*/
|
|
30
|
+
IconComponent?: React.FunctionComponent<React.SVGAttributes<SVGElement>>;
|
|
31
|
+
/**
|
|
32
|
+
* The icon component that is to the right of the buttonText
|
|
33
|
+
* Referred to https://ozzie.sh/passing-icons-as-props-in-a-consistent-way-using-react
|
|
34
|
+
* @default undefined
|
|
35
|
+
*/
|
|
36
|
+
LeadingIcon?: React.FunctionComponent<React.SVGAttributes<SVGElement>>;
|
|
37
|
+
/**
|
|
38
|
+
* The icon component that is the left of the buttonText
|
|
39
|
+
* Referred to https://ozzie.sh/passing-icons-as-props-in-a-consistent-way-using-react
|
|
40
|
+
* @default undefined
|
|
41
|
+
*/
|
|
42
|
+
TrailingIcon?: React.FunctionComponent<React.SVGAttributes<SVGElement>>;
|
|
43
|
+
/**
|
|
44
|
+
* the button container styling that needs to be override the default one
|
|
45
|
+
* @default null
|
|
46
|
+
*/
|
|
47
|
+
style?: React.CSSProperties;
|
|
48
|
+
/**
|
|
49
|
+
* Indicates if button is loading and a loading indicator should be shown.
|
|
50
|
+
* When the button is loading the width of the button should not change.
|
|
51
|
+
*/
|
|
52
|
+
isLoading?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Indicates if the styling of the button should be inverse
|
|
55
|
+
*/
|
|
56
|
+
inverse?: boolean;
|
|
57
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Size, Type } from './model';
|
|
2
|
+
export declare const getBackgroundColor: (type: Type, size: Size, inverse?: boolean) => string;
|
|
3
|
+
export declare const getColor: (type: Type, size: Size, inverse?: boolean) => string;
|
|
4
|
+
export declare const getDisabledTextColor: (inverse?: boolean) => string;
|
|
5
|
+
export declare const getPadding: (type: Type, size: Size) => "4px 8px" | "6px 4px" | "6px 12px" | "10px 4px" | "10px 12px" | "14px 4px" | "14px 12px" | undefined;
|
|
6
|
+
export declare const GetButtonTextComponent: (size: Size) => import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
+
export declare const getBorderColor: (type: Type, inverse?: boolean) => string;
|
|
8
|
+
export declare const getBorder: (type: Type, size: Size, inverse?: boolean) => string;
|
|
9
|
+
export declare const getLinearGradientValue: (size: Size) => string;
|
|
10
|
+
export declare const getHoverButtonBackground: (type: Type, inverse?: boolean) => "background-color: #000000;\n\t\t\t\topacity: 0.03;" | "";
|
|
11
|
+
export declare const generateInverseHoverBackground: (type: Type, disabled?: boolean) => string;
|
|
12
|
+
export declare const generateDisabledStyling: (type: Type, size: Size, inverse?: boolean) => string;
|
|
13
|
+
export declare const getDashedBorderStyling: (type: Type, size: Size, borderColor?: string) => string;
|
|
14
|
+
export declare const getClickEffect: (type: Type, size: Size, inverse?: boolean) => string | undefined;
|
|
15
|
+
export declare const getLoadingBackground: (type: Type, size: Size, inverse?: boolean) => string;
|
|
16
|
+
export declare const getLoadingBorder: (type: Type, size: Size, inverse?: boolean) => string;
|
|
17
|
+
export declare const SpinnerColorMap: (type: Type, inverse?: boolean) => string;
|
|
18
|
+
export declare const getButtonIconColor: (size: Size, type: Type, inverse?: boolean, disabled?: boolean, isLoading?: boolean) => string | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{COLORS as t}from"../../constants/Theme.js";import{BodyCaption as r,ButtonRegular as n,ButtonLarge as e}from"../TypographyStyle.js";const a=(r,n,e)=>{if("chip"===n)return t.surface.subdued;switch(r){case"primary":return e?t.background.warning.vibrant:t.background.brand;case"destructive":return t.background.negative.vibrant;default:return"transparent"}},o=(r,n,e)=>{if("chip"===n)return t.content.secondary;switch(r){case"primary":return e?t.content.primary:t.content.primaryInverse;case"tertiaryGray":case"dash":return t.content.secondary;case"destructive":return t.content.primaryInverse;default:return e?t.content.primaryInverse:t.stroke.brand}},i=r=>r?"rgba(255, 255, 255, 0.5)":t.content.inactive,c=(t,r)=>{if("chip"===r)return"4px 8px";if("small"===r)switch(t){case"tertiary":case"tertiaryGray":return"6px 4px";default:return"6px 12px"}else if("medium"===r)switch(t){case"tertiary":case"tertiaryGray":return"10px 4px";default:return"10px 12px"}else if("large"===r)switch(t){case"tertiary":case"tertiaryGray":return"14px 4px";default:return"14px 12px"}},d=t=>"chip"===t?r:"small"===t?n:e,p=(r,n)=>n?t.surface.standard:"secondary"==r?t.stroke.brand:t.content.placeholder,s=(r,n,e)=>"chip"===n?`border: 1px solid ${t.stroke.primary};`:e?"secondary"===r?`border: 1px solid ${p(r,e)};`:"border: none;":"secondary"===r?`border: 1px solid ${p(r)};`:"border: none;",b=t=>"medium"===t?"5px,\n\t\ttransparent 5px,\n\t\ttransparent 10px":"6px,\n\t\ttransparent 6px,\n\t\ttransparent 12px",g=(t,r)=>r||"primary"===t?"":"background-color: #000000;\n\t\t\t\topacity: 0.03;",u=(r,n)=>n?"":"primary"===r?`background-color: ${t.stroke.warning.lightAlt};`:"background-color: rgba(255, 255, 255, 0.1)",l=(r,n,e)=>"chip"===n?"background-color: transparent;":"primary"===r||"destructive"===r?e?"background-color: rgba(255,255,255,0.3);":`background-color: ${t.background.inactive};`:"secondary"===r?e?"border: 1px solid rgba(255, 255, 255, 0.5);":`border: 1px solid ${t.stroke.primary};`:"",y=function(t,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p(t);return`\n\t.line-top {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\ttop: 0;\n\t\theight: 1px;\n\t\twidth: 100%;\n\t\tbackground: repeating-linear-gradient(\n\t\t\tto right,\n\t\t\t${n},\n\t\t\t${n}\n\t\t\t\t${b(r)}\n\t\t);\n\t}\n\t.line-right {\n\t\tposition: absolute;\n\t\tright: 0;\n\t\ttop: 0;\n\t\twidth: 1px;\n\t\theight: 100%;\n\t\tbackground: repeating-linear-gradient(\n\t\t\tto bottom,\n\t\t\t${n},\n\t\t\t${n}\n\t\t\t\t${b(r)}\n\t\t);\n\t}\n\t.line-bottom {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tbottom: 0;\n\t\theight: 1px;\n\t\twidth: 100%;\n\t\tbackground: repeating-linear-gradient(\n\t\t\tto right,\n\t\t\t${n},\n\t\t\t${n}\n\t\t\t\t${b(r)}\n\t\t);\n\t}\n\t.line-left {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\ttop: 0;\n\t\twidth: 1px;\n\t\theight: 100%;\n\t\tbackground: repeating-linear-gradient(\n\t\t\tto bottom,\n\t\t\t${n},\n\t\t\t${n}\n\t\t\t\t${b(r)}\n\t\t);\n\t}\n\t`},h=(r,n,e)=>"chip"===n?`border: 1px solid ${t.stroke.brandLightAlt};\n\t\tbackground-color: ${t.background.brandLight};`:"primary"===r||"destructive"===r?e?`background-color: ${t.background.warning.vibrant} !important;\n\t\t\tbox-shadow: inset 0px 4px 12px rgba(0, 0, 0, 0.35);\n\t\t\t`:"box-shadow: inset 0px 4px 12px rgba(0, 0, 0, 0.35);":"secondary"===r||"tertiary"===r||"tertiaryGray"===r||"dash"===r?e?`background-color: ${t.background.inverseLight} !important;`:`background-color: ${t.background.brandLight};`:void 0,x=(r,n,e)=>"chip"===n?`background-color: ${t.background.base};`:"primary"===r?`background-color: ${e?t.background.warning.vibrant:t.background.brandLight};`:"destructive"===r?`background-color: ${t.background.negative.light};`:"background-color: transparent;",k=(r,n,e)=>"chip"===n?"border: none;":"secondary"===r?e?`border: 1px solid ${t.content.secondary};`:`border: 1px solid ${t.stroke.brandLightAlt};`:"",m=(r,n)=>n?"primary"===r?t.content.primary:t.content.primaryInverse:"destructive"===r?t.content.negative:t.content.brand,v=(r,n,e,a,o)=>"chip"===r?a?t.content.inactive:t.content.secondary:o?"transparent":"primary"===n||"destructive"===n?e?a?"rgba(255, 255, 255, 0.5)":t.content.primary:a?t.content.inactive:t.content.primaryInverse:"secondary"===n||"tertiary"===n?e?a?"rgba(255, 255, 255, 0.5)":t.content.primaryInverse:a?t.content.inactive:t.content.brand:"tertiaryGray"===n||"dash"===n?a?t.content.inactive:t.content.secondary:void 0;export{d as GetButtonTextComponent,m as SpinnerColorMap,l as generateDisabledStyling,u as generateInverseHoverBackground,a as getBackgroundColor,s as getBorder,p as getBorderColor,v as getButtonIconColor,h as getClickEffect,o as getColor,y as getDashedBorderStyling,i as getDisabledTextColor,g as getHoverButtonBackground,b as getLinearGradientValue,x as getLoadingBackground,k as getLoadingBorder,c as getPadding};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type CheckBoxProps = {
|
|
3
|
+
isChecked: boolean;
|
|
4
|
+
isPartiallyChecked?: boolean;
|
|
5
|
+
isDisabled?: boolean;
|
|
6
|
+
value?: string;
|
|
7
|
+
onValueChange: (checked: boolean, value?: string) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const CheckBox: React.FC<CheckBoxProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as i}from"react/jsx-runtime";import{useState as s,useEffect as t}from"react";import{CheckboxContainer as l,CheckboxIcon as n}from"./CheckBox.styled.js";import{COLORS as o}from"../../constants/Theme.js";const r=s=>i("svg",Object.assign({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[e("rect",{x:"0",y:"0",width:"18",height:"18",rx:"4",fill:s.isDisabled?o.content.inactive:o.background.positive.vibrant}),!s.isPartial&&e("svg",Object.assign({width:"10",height:"9",x:"4",y:"4",viewBox:"0 0 10 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.68189 1.06043C10.0724 1.45096 10.0724 2.08412 9.68189 2.47464L4.02501 8.13152C3.63449 8.52205 3.00132 8.52205 2.6108 8.13152L0.489684 6.01041C0.0991601 5.61988 0.0991598 4.98672 0.489684 4.59619C0.880209 4.20567 1.51337 4.20567 1.9039 4.59619L3.31791 6.0102L8.26768 1.06043C8.6582 0.669907 9.29137 0.669907 9.68189 1.06043Z",fill:"white"})})),s.isPartial&&e("rect",{x:"5",y:"8",width:"8",height:"2",rx:"1",fill:o.surface.standard})]})),a=i=>{var o;const[a,c]=s(i.isChecked||!1),[d,h]=s(!1),[v,g]=s(!1);return t((()=>{c(i.isChecked)}),[i.isChecked]),e(l,Object.assign({onClick:()=>{var e;if(!i.isDisabled){const s=!a;c(s),null===(e=i.onValueChange)||void 0===e||e.call(i,s,i.value)}},onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onMouseDown:()=>g(!0),onMouseUp:()=>g(!1)},{children:e(n,Object.assign({checked:a,hovered:d,clicked:v,isDisabled:i.isDisabled||!1},{children:a&&e(r,{isPartial:null!==(o=i.isPartiallyChecked)&&void 0!==o&&o,isDisabled:i.isDisabled||!1})}))}))};export{a as CheckBox};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const CheckboxContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const CheckboxIcon: import("styled-components").StyledComponent<"div", any, {
|
|
3
|
+
checked: boolean;
|
|
4
|
+
hovered: boolean;
|
|
5
|
+
clicked: boolean;
|
|
6
|
+
isDisabled: boolean;
|
|
7
|
+
}, never>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import e,{css as i}from"styled-components";import{COLORS as t}from"../../constants/Theme.js";const o=e.div`
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
`,r=e.div`
|
|
6
|
+
width: 14px;
|
|
7
|
+
height: 14px;
|
|
8
|
+
border-radius: 4px;
|
|
9
|
+
border: 2px solid black;
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
align-items: center;
|
|
13
|
+
${e=>e.checked&&i`
|
|
14
|
+
border: 0px;
|
|
15
|
+
width: 18px;
|
|
16
|
+
height: 18px;
|
|
17
|
+
`}
|
|
18
|
+
${e=>e.hovered&&i`
|
|
19
|
+
outline: 3px solid ${t.surface.hovered};
|
|
20
|
+
`}
|
|
21
|
+
${e=>e.clicked&&!e.isDisabled&&i`
|
|
22
|
+
outline: 3px solid
|
|
23
|
+
${e.checked?t.stroke.positive.lightAlt:t.surface.hovered};
|
|
24
|
+
outline-offset: 2px;
|
|
25
|
+
`}
|
|
26
|
+
`;export{o as CheckboxContainer,r as CheckboxIcon};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CheckBox';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { OpenDropdownProps } from '../opennedDropdown/type';
|
|
3
|
+
export type DropdownProps = OpenDropdownProps & {
|
|
4
|
+
isLoading?: boolean;
|
|
5
|
+
placeHolder?: string;
|
|
6
|
+
size?: 'default' | 'small';
|
|
7
|
+
};
|
|
8
|
+
declare const Dropdown: React.FC<DropdownProps>;
|
|
9
|
+
export default Dropdown;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { OpenDropdownProps } from '../opennedDropdown/type';
|
|
3
|
+
export type DropdownProps = OpenDropdownProps & {
|
|
4
|
+
isLoading?: boolean;
|
|
5
|
+
placeHolder?: string;
|
|
6
|
+
size?: 'default' | 'small';
|
|
7
|
+
};
|
|
8
|
+
export declare const UnChildDropdown: React.ForwardRefExoticComponent<OpenDropdownProps & {
|
|
9
|
+
isLoading?: boolean | undefined;
|
|
10
|
+
placeHolder?: string | undefined;
|
|
11
|
+
size?: "small" | "default" | undefined;
|
|
12
|
+
} & React.RefAttributes<{}>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Dropdown';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FAB_POSITION } from '../floating-action-button/FloatingActionButton.styles';
|
|
3
|
+
import { DropdownOption } from '../opennedDropdown/type';
|
|
4
|
+
export declare const FABMenu: React.FC<{
|
|
5
|
+
onSelect: () => void;
|
|
6
|
+
menuOptions: DropdownOption[];
|
|
7
|
+
buttonWidth?: number;
|
|
8
|
+
buttonHeight?: number;
|
|
9
|
+
buttonColor?: string;
|
|
10
|
+
buttonPosition?: FAB_POSITION;
|
|
11
|
+
menuWidth?: number;
|
|
12
|
+
menuHeight?: number;
|
|
13
|
+
buttonIcon?: any;
|
|
14
|
+
buttonPadding?: number;
|
|
15
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{FloatingActionButton as o}from"../floating-action-button/FloatingActionButton.js";import{OpennedDropdown as n}from"../opennedDropdown/components/OpennedDropdown.js";const i=i=>{const{onSelect:e,menuOptions:r,buttonWidth:d,buttonHeight:c,buttonColor:u,buttonPosition:h,menuWidth:p,menuHeight:s,buttonIcon:m,buttonPadding:b}=i;return t("div",{children:t(o,Object.assign({icon:m,width:d,height:c,color:u,position:h,buttonPadding:b},{children:t(n,{options:r,height:s||90,width:p,onSelect:e})}))})};export{i as FABMenu};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FABMenu';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import 'bootstrap/dist/css/bootstrap.min.css';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { FAB_POSITION } from './FloatingActionButton.styles';
|
|
4
|
+
export declare const FloatingActionButton: React.FC<{
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
width?: number;
|
|
8
|
+
height?: number;
|
|
9
|
+
icon?: any;
|
|
10
|
+
color?: string;
|
|
11
|
+
position?: FAB_POSITION;
|
|
12
|
+
buttonPadding?: number;
|
|
13
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t,Fragment as i,jsxs as o}from"react/jsx-runtime";import{Dropdown as n}from"react-bootstrap";import{COLORS as r}from"../../constants/Theme.js";import e from"../../assets/icons/question-mark.svg.js";import{FAB_POSITION as h,FloatingActionButtonOuterContainer as c,StyledDropdown as d,FloatingActionButtonContainer as s}from"./FloatingActionButton.styles.js";const g=g=>{const{icon:l,onClick:a,children:m}=g,u=g.width?g.width:48,b=g.height?g.height:48,p=g.color?g.color:r.background.inverse,j=g.position?g.position:h.TOP_LEFT,w=g.buttonPadding?g.buttonPadding:20;return t(i,{children:t(c,Object.assign({width:u,height:b,color:p,position:j,buttonPadding:w},{children:t(d,{children:m?o(i,{children:[t(n.Toggle,{children:t(s,Object.assign({width:u,height:b,color:p,buttonPadding:w,onClick:a},{children:l||t(e,{width:22,height:22})}))}),t(n.Menu,{children:m})]}):t(s,Object.assign({width:u,height:b,color:p,buttonPadding:w,onClick:a},{children:l||t(e,{width:22,height:22})}))})}))})};export{g as FloatingActionButton};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare enum FAB_POSITION {
|
|
3
|
+
TOP_LEFT = "top left",
|
|
4
|
+
TOP_RIGHT = "top right",
|
|
5
|
+
BOTTOM_LEFT = "bottom left",
|
|
6
|
+
BOTTOM_RIGHT = "botton right"
|
|
7
|
+
}
|
|
8
|
+
export declare const FloatingActionButtonContainer: import("styled-components").StyledComponent<"div", any, {
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
color: string;
|
|
12
|
+
buttonPadding: number;
|
|
13
|
+
}, never>;
|
|
14
|
+
export declare const FloatingActionButtonOuterContainer: import("styled-components").StyledComponent<"div", any, {
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
color: string;
|
|
18
|
+
position: FAB_POSITION;
|
|
19
|
+
buttonPadding: number;
|
|
20
|
+
}, never>;
|
|
21
|
+
export declare const StyledDropdown: import("styled-components").StyledComponent<import("react-bootstrap/esm/helpers").BsPrefixRefForwardingComponent<"div", import("react-bootstrap").DropdownProps> & {
|
|
22
|
+
Toggle: import("react-bootstrap/esm/helpers").BsPrefixRefForwardingComponent<"button", import("react-bootstrap/esm/DropdownToggle").DropdownToggleProps>;
|
|
23
|
+
Menu: import("react-bootstrap/esm/helpers").BsPrefixRefForwardingComponent<"div", import("react-bootstrap/esm/DropdownMenu").DropdownMenuProps>;
|
|
24
|
+
Item: import("react-bootstrap/esm/helpers").BsPrefixRefForwardingComponent<import("@restart/ui/esm/types").DynamicRefForwardingComponent<import("react").ForwardRefExoticComponent<import("@restart/ui/esm/Button").ButtonProps & import("react").RefAttributes<HTMLElement>>, import("@restart/ui/esm/DropdownItem").DropdownItemProps>, import("react-bootstrap/esm/DropdownItem").DropdownItemProps>;
|
|
25
|
+
ItemText: import("react-bootstrap/esm/helpers").BsPrefixRefForwardingComponent<"span", unknown>;
|
|
26
|
+
Divider: import("react-bootstrap/esm/helpers").BsPrefixRefForwardingComponent<"hr", unknown>;
|
|
27
|
+
Header: import("react-bootstrap/esm/helpers").BsPrefixRefForwardingComponent<"div", unknown>;
|
|
28
|
+
}, any, {
|
|
29
|
+
active?: string | undefined;
|
|
30
|
+
width?: string | undefined;
|
|
31
|
+
height?: string | undefined;
|
|
32
|
+
}, never>;
|
|
33
|
+
export declare const DropdownToggleContainer: import("styled-components").StyledComponent<import("react-bootstrap/esm/helpers").BsPrefixRefForwardingComponent<"button", import("react-bootstrap/esm/DropdownToggle").DropdownToggleProps>, any, {}, never>;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import{Dropdown as t}from"react-bootstrap";import o from"styled-components";import{COLORS as e}from"../../constants/Theme.js";var i;!function(t){t.TOP_LEFT="top left",t.TOP_RIGHT="top right",t.BOTTOM_LEFT="bottom left",t.BOTTOM_RIGHT="botton right"}(i||(i={}));const n=o.div`
|
|
2
|
+
width: ${t=>t.width}px;
|
|
3
|
+
height: ${t=>t.height}px;
|
|
4
|
+
background: ${t=>t.color};
|
|
5
|
+
border-radius: 50%;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
display: flex;
|
|
10
|
+
`,r=o.div`
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
align-items: flex-end;
|
|
14
|
+
position: absolute;
|
|
15
|
+
${t=>t.position===i.BOTTOM_RIGHT?`right: ${t.buttonPadding}px; bottom: ${t.buttonPadding}px`:t.position===i.BOTTOM_LEFT?`left: ${t.buttonPadding}px; bottom: ${t.buttonPadding}px`:t.position===i.TOP_LEFT?`left: ${t.buttonPadding}px; top: ${t.buttonPadding}px`:t.position===i.TOP_RIGHT?`right: ${t.buttonPadding}px; top: ${t.buttonPadding}px`:""}
|
|
16
|
+
`,d=o(t)`
|
|
17
|
+
.filter-container {
|
|
18
|
+
.single-row {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: row;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: flex-start;
|
|
23
|
+
gap: 8px;
|
|
24
|
+
padding: 14px;
|
|
25
|
+
border-bottom: 1px solid ${e.stroke.primary};
|
|
26
|
+
|
|
27
|
+
:last-child {
|
|
28
|
+
border-bottom: none !important;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
button {
|
|
33
|
+
border: 1px solid
|
|
34
|
+
${t=>"true"===t.active?e.stroke.positive.lightAlt:e.stroke.primary};
|
|
35
|
+
border-radius: 4px;
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: row;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: space-between;
|
|
40
|
+
padding: 6px 8px;
|
|
41
|
+
background: ${t=>"true"===t.active?e.background.positive.light:e.surface.standard};
|
|
42
|
+
color: ${t=>"true"===t.active?e.content.positive:e.content.primary};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.btn-primary:hover,
|
|
46
|
+
.btn-primary:active,
|
|
47
|
+
.btn-primary:focus,
|
|
48
|
+
.btn-primary.dropdown-toggle,
|
|
49
|
+
.show > .btn-primary.dropdown-toggle {
|
|
50
|
+
color: ${t=>"true"===t.active?e.content.positive:e.content.primary};
|
|
51
|
+
background-color: ${t=>"true"===t.active?e.background.positive.light:e.surface.standard};
|
|
52
|
+
border: none;
|
|
53
|
+
}
|
|
54
|
+
.btn:focus {
|
|
55
|
+
outline: 0;
|
|
56
|
+
box-shadow: 0 0 0 0.25rem transparent !important;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.dropdown-toggle::after {
|
|
60
|
+
border-top: 0.3em solid ${e.content.primary};
|
|
61
|
+
display: none;
|
|
62
|
+
}
|
|
63
|
+
.dropdown-menu {
|
|
64
|
+
min-width: 12rem;
|
|
65
|
+
padding: 0 0;
|
|
66
|
+
}
|
|
67
|
+
.dropdown-item:active,
|
|
68
|
+
.dropdown-item:hover {
|
|
69
|
+
color: ${e.content.positive};
|
|
70
|
+
text-decoration: none;
|
|
71
|
+
background-color: ${e.background.positive.light};
|
|
72
|
+
}
|
|
73
|
+
`;o(t.Toggle)`
|
|
74
|
+
border-radius: 4px;
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: row;
|
|
77
|
+
align-items: center;
|
|
78
|
+
justify-content: space-between;
|
|
79
|
+
padding: 6px 8px;
|
|
80
|
+
font-weight: 400;
|
|
81
|
+
font-size: 14px;
|
|
82
|
+
line-height: 20px;
|
|
83
|
+
`;export{i as FAB_POSITION,n as FloatingActionButtonContainer,r as FloatingActionButtonOuterContainer,d as StyledDropdown};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FloatingActionButton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__rest as e}from"../../_virtual/_tslib.js";import{jsx as t}from"react/jsx-runtime";import o,{forwardRef as i}from"react";import{IconButton as r}from"./IconButton.styled.js";import{getIconColor as d}from"./theme.js";const s=i(((i,s)=>{var{id:n,iconButtonType:c="default",Icon:l,height:a=20,width:m=20,bordered:h,disabled:p,isSelected:u,style:y}=i,b=e(i,["id","iconButtonType","Icon","height","width","bordered","disabled","isSelected","style"]);const f=d(c,p,u);return t(r,Object.assign({id:n,ref:s,style:y,iconButtonType:c,bordered:h,disabled:p,isSelected:u},b,{children:o.createElement(l,{height:a,width:m,color:f,style:{display:"block"}})}))}));s.displayName="IconButton";export{s as IconButton};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import t from"styled-components";import{COLORS as n}from"../../constants/Theme.js";import{generateBackgroundColor as o}from"./theme.js";const r=t.button`
|
|
2
|
+
${t=>`\n\tall: unset;\n\tcursor: pointer;\n\tpadding: 6px;\n\tborder-radius: 4px;\n\tflex-wrap: wrap;\n\t${t.bordered?`border: 1px solid ${n.stroke.primary};`:""}\n\t${t.isSelected?`\n\t\t\tbackground-color: ${o(t.iconButtonType)};\n\t\t\t\t`:"\n\t\t\t\t:hover {\n\t\t\t\t\tbackground-color: rgba(0, 0, 0, 0.03);\n\t\t\t\t}\n\t\t\t"}\n\t${t.disabled&&"\n\t\t\tcursor: not-allowed !important;\n\t\t\tbackground-color: rgba(0, 0, 0, 0.03);\n\t\t"}\n\n\t`}
|
|
3
|
+
`;export{r as IconButton};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './IconButton';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type IconButtonType = 'default' | 'negative' | 'positive' | 'warning';
|
|
3
|
+
export interface IconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
/**
|
|
5
|
+
* Icon to render
|
|
6
|
+
*/
|
|
7
|
+
Icon: React.FunctionComponent<React.SVGAttributes<SVGElement>>;
|
|
8
|
+
/**
|
|
9
|
+
* Custom styles which can be added to the icon button
|
|
10
|
+
* @default default undefined
|
|
11
|
+
*/
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
/**
|
|
14
|
+
* Custom height for the svg icon
|
|
15
|
+
* @default default 20
|
|
16
|
+
*/
|
|
17
|
+
height?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Custom width for the svg icon
|
|
20
|
+
* @default default 20
|
|
21
|
+
*/
|
|
22
|
+
width?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Custom height for the svg icon
|
|
25
|
+
* @default default default
|
|
26
|
+
*/
|
|
27
|
+
iconButtonType?: IconButtonType;
|
|
28
|
+
/**
|
|
29
|
+
* Add border to the button
|
|
30
|
+
* @default default false
|
|
31
|
+
*/
|
|
32
|
+
bordered?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Flag to check if icon button is selected/clicked
|
|
35
|
+
*/
|
|
36
|
+
isSelected?: boolean;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{COLORS as t}from"../../constants/Theme.js";const n=(n,e,r)=>{if(e)return t.content.inactive;switch(n){case"default":return r?t.content.brand:t.content.primary;case"negative":return t.content.negative;case"positive":return t.content.positive;case"warning":return r?t.content.warning:t.content.primary;default:return t.content.primary}},e=n=>"default"===n?t.background.brandLight:"negative"===n?t.background.negative.light:"positive"===n?t.background.positive.light:t.background.warning.light;export{e as generateBackgroundColor,n as getIconColor};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type Variant = 'default' | 'small';
|
|
3
|
+
export type InputStateI = 'invalid' | 'active' | 'read-only' | 'disabled' | 'none';
|
|
4
|
+
export type InputTypeI = 'number' | 'email' | 'text' | 'multiline';
|
|
5
|
+
export interface InputProps {
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
variant?: Variant;
|
|
8
|
+
width?: string;
|
|
9
|
+
height?: string;
|
|
10
|
+
leftIcon?: {
|
|
11
|
+
icon: any;
|
|
12
|
+
callback?: () => void;
|
|
13
|
+
};
|
|
14
|
+
rightIcon?: {
|
|
15
|
+
icon: any;
|
|
16
|
+
callback?: () => void;
|
|
17
|
+
};
|
|
18
|
+
labelText?: string;
|
|
19
|
+
maxCharLimit?: number;
|
|
20
|
+
isRequired?: boolean;
|
|
21
|
+
errorMessage?: string;
|
|
22
|
+
hintText?: string;
|
|
23
|
+
state?: InputStateI;
|
|
24
|
+
type?: InputTypeI;
|
|
25
|
+
/**
|
|
26
|
+
validate: function takes the input and returns boolean + string (error message in case of invalid input)
|
|
27
|
+
**/
|
|
28
|
+
validate: (input?: string | number) => [boolean, string];
|
|
29
|
+
onChangeText: (input: string) => void;
|
|
30
|
+
button?: {
|
|
31
|
+
text: string;
|
|
32
|
+
onClick?: () => void;
|
|
33
|
+
};
|
|
34
|
+
suffixText?: string;
|
|
35
|
+
prefixText?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare const Input: import("react").ForwardRefExoticComponent<InputProps & import("react").RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import{forwardRef as i,useState as l,useContext as r,useEffect as a}from"react";import{Button as o}from"../button/Button.js";import{BodySecondary as s}from"../TypographyStyle.js";import c from"../../assets/icons/errorInfo.svg.js";import{InputStyleContext as d}from"./context/InputStyleProvider.js";import{RootContainer as u,InputFooter as h,InputWrapper as v,IconHolder as p,PrefixHolder as f,InputContainer as g,InputContainerSmall as m,SuffixHolder as x,InputHeader as y,MaxCharStyle as j}from"./Input.styled.js";const b=e=>e&&"function"==typeof e,C=i(((i,C)=>{var O,I,w;const{placeholder:k,leftIcon:T,rightIcon:L,labelText:S,maxCharLimit:B,isRequired:D,hintText:z,type:A,state:E,validate:F,variant:K,button:M,suffixText:R,prefixText:q,onChangeText:H}=Object.assign({maxCharLimit:0,type:"text",variant:"default"},i),N=null==T?void 0:T.icon,P=null==L?void 0:L.icon,[W,G]=l(""),[J,Q]=l(!1),[U,V]=l(!1),[X,Y]=l(),Z="small"===K?"18px":"22px",$=r(d);a((()=>{Y(i.errorMessage)}),[i.errorMessage]),a((()=>{Q(!1),("invalid"===i.state||X)&&Q(!0)}),[i.state]),a((()=>{Q(!!X)}),[X]),a((()=>{if(H(W),!b(F))return;const[e,t]=F(W);Q(!e),Y(t)}),[W]);const _=function(e){if(b(e)){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];e(...n)}},ee=e=>{![8].includes(e.which)&&B>0&&e.target.value.length===B&&e.preventDefault()},te=e=>{G(e.target.value)},ne=()=>{var i;return e(n,{children:["multiline"!==A&&t("input",{style:null!==(i=null==$?void 0:$.input)&&void 0!==i?i:{},ref:C,type:A,onFocus:()=>V(!0),onBlur:()=>V(!1),placeholder:k||"Enter here",onChange:te,onKeyDown:e=>ee(e)}),"multiline"===A&&t("textarea",{ref:C,onFocus:()=>V(!0),onBlur:()=>V(!1),placeholder:k||"Enter here",onChange:te,onKeyDown:e=>ee(e)})]})};return e(u,Object.assign({width:i.width,height:i.height,state:E,type:A,style:null!==(O=null==$?void 0:$.RootContainer)&&void 0!==O?O:{}},{children:[(!!z||!!X)&&e(h,Object.assign({invalid:!!X},{children:[!!X&&t(c,{}),X||z]})),e(v,Object.assign({variant:K,state:E,width:i.width,isActive:"active"===E||U,isInvalid:J,style:null!==(I=null==$?void 0:$.InputWrapper)&&void 0!==I?I:{}},{children:[!!N&&t(p,Object.assign({variant:K,iconSize:Z,onClick:()=>_(null==T?void 0:T.callback),isLeft:!0,style:null!==(w=null==$?void 0:$.IconHolder)&&void 0!==w?w:{}},{children:t(N,{})})),!!q&&t(f,Object.assign({variant:K},{children:q})),"default"===K&&t(g,{children:ne()}),"small"===K&&t(m,{children:ne()}),!!P&&t(p,Object.assign({variant:K,iconSize:Z,onClick:()=>_(null==T?void 0:T.callback),isLeft:!1},{children:t(P,{})})),!!R&&t(x,Object.assign({variant:K},{children:R})),!!M&&!!M.text&&t(o,Object.assign({onClick:()=>_(null==M?void 0:M.onClick)},{children:M.text}))]})),(!!S||!!B)&&"default"===K&&e(y,Object.assign({invalid:J},{children:[e(s,{children:[S,D?t("span",{children:"*"}):""]}),B>0&&e(j,{children:[W.length,"/",B]})]}))]}))}));C.displayName="Input";export{C as Input};
|