pixel-react 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.prettierrc.js +13 -0
- package/.storybook/main.ts +26 -0
- package/.storybook/preview.ts +26 -0
- package/.yarn/install-state.gz +0 -0
- package/.yarnrc.yml +1 -0
- package/README.md +25 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/index.scss +0 -0
- package/lib/StyleGuide/ColorPalette/ColorPalette.d.ts +3 -0
- package/lib/StyleGuide/ColorPalette/ColorPalette.stories.d.ts +6 -0
- package/lib/StyleGuide/ColorPalette/colorPaletteList.d.ts +3 -0
- package/lib/StyleGuide/ColorPalette/index.d.ts +1 -0
- package/lib/StyleGuide/ColorPalette/types.d.ts +15 -0
- package/lib/StyleGuide/Typography/Typography.d.ts +3 -0
- package/lib/StyleGuide/Typography/Typography.stories.d.ts +6 -0
- package/lib/StyleGuide/Typography/TypographyList.d.ts +5 -0
- package/lib/StyleGuide/Typography/types.d.ts +8 -0
- package/lib/assets/utils/functionUtils.d.ts +1 -0
- package/lib/components/Accordion/Accordion.d.ts +8 -0
- package/lib/components/Accordion/Accordion.stories.d.ts +6 -0
- package/lib/components/Accordion/index.d.ts +1 -0
- package/lib/components/Accordion/types.d.ts +27 -0
- package/lib/components/AddResourceButton/AddButton.d.ts +4 -0
- package/lib/components/AddResourceButton/AddButton.stories.d.ts +8 -0
- package/lib/components/AddResourceButton/ArrowsButton/ArrowsButton.d.ts +6 -0
- package/lib/components/AddResourceButton/index.d.ts +1 -0
- package/lib/components/AddResourceButton/type.d.ts +65 -0
- package/lib/components/Button/Button.d.ts +5 -0
- package/lib/components/Button/Button.stories.d.ts +12 -0
- package/lib/components/Button/index.d.ts +1 -0
- package/lib/components/Button/types.d.ts +61 -0
- package/lib/components/Charts/DonutChart/DonutChart.d.ts +5 -0
- package/lib/components/Charts/DonutChart/DonutChart.stories.d.ts +6 -0
- package/lib/components/Charts/DonutChart/index.d.ts +1 -0
- package/lib/components/Charts/DonutChart/type.d.ts +13 -0
- package/lib/components/Charts/RadialChart/RadialChart.d.ts +5 -0
- package/lib/components/Charts/RadialChart/RadialChart.stories.d.ts +6 -0
- package/lib/components/Charts/RadialChart/index.d.ts +1 -0
- package/lib/components/Charts/RadialChart/types.d.ts +25 -0
- package/lib/components/Checkbox/Checkbox.d.ts +6 -0
- package/lib/components/Checkbox/Checkbox.stories.d.ts +8 -0
- package/lib/components/Checkbox/index.d.ts +1 -0
- package/lib/components/Checkbox/types.d.ts +30 -0
- package/lib/components/Chip/Chip.d.ts +4 -0
- package/lib/components/Chip/Chip.stories.d.ts +14 -0
- package/lib/components/Chip/index.d.ts +1 -0
- package/lib/components/Chip/types.d.ts +18 -0
- package/lib/components/Drawer/Drawer.d.ts +4 -0
- package/lib/components/Drawer/Drawer.stories.d.ts +7 -0
- package/lib/components/Drawer/Types.d.ts +85 -0
- package/lib/components/Drawer/index.d.ts +1 -0
- package/lib/components/ExpandableMenu/ExpandableMenu.d.ts +5 -0
- package/lib/components/ExpandableMenu/ExpandableMenu.stories.d.ts +7 -0
- package/lib/components/ExpandableMenu/index.d.ts +1 -0
- package/lib/components/ExpandableMenu/types.d.ts +34 -0
- package/lib/components/FileDropzone/Dropzone.d.ts +5 -0
- package/lib/components/FileDropzone/FileDropzone.d.ts +4 -0
- package/lib/components/FileDropzone/FileDropzone.stories.d.ts +8 -0
- package/lib/components/FileDropzone/FilePreview.d.ts +4 -0
- package/lib/components/FileDropzone/index.d.ts +1 -0
- package/lib/components/FileDropzone/types.d.ts +103 -0
- package/lib/components/Form/Form.d.ts +16 -0
- package/lib/components/Form/Form.stories.d.ts +6 -0
- package/lib/components/Form/index.d.ts +1 -0
- package/lib/components/Form/types.d.ts +1 -0
- package/lib/components/GridLayout/GridLayout.d.ts +6 -0
- package/lib/components/GridLayout/GridLayout.stories.d.ts +8 -0
- package/lib/components/GridLayout/index.d.ts +2 -0
- package/lib/components/GridLayout/types.d.ts +57 -0
- package/lib/components/HighlightText/HighlightText.d.ts +4 -0
- package/lib/components/HighlightText/HighlightText.stories.d.ts +6 -0
- package/lib/components/HighlightText/index.d.ts +1 -0
- package/lib/components/HighlightText/types.d.ts +4 -0
- package/lib/components/Icon/Icon.d.ts +4 -0
- package/lib/components/Icon/Icon.stories.d.ts +7 -0
- package/lib/components/Icon/iconList.d.ts +2 -0
- package/lib/components/Icon/index.d.ts +1 -0
- package/lib/components/Icon/types.d.ts +10 -0
- package/lib/components/Input/Input.d.ts +4 -0
- package/lib/components/Input/Input.stories.d.ts +9 -0
- package/lib/components/Input/index.d.ts +1 -0
- package/lib/components/Input/types.d.ts +74 -0
- package/lib/components/InputWithDropdown/InputWithDropdown.d.ts +4 -0
- package/lib/components/InputWithDropdown/InputWithDropdown.stories.d.ts +8 -0
- package/lib/components/InputWithDropdown/index.d.ts +1 -0
- package/lib/components/InputWithDropdown/types.d.ts +88 -0
- package/lib/components/LazyLoad/LazyLoad.d.ts +2 -0
- package/lib/components/LazyLoad/LazyLoad.stories.d.ts +6 -0
- package/lib/components/LazyLoad/LazyLoading.d.ts +2 -0
- package/lib/components/LazyLoad/index.d.ts +1 -0
- package/lib/components/MenuOption/MenuOption.d.ts +4 -0
- package/lib/components/MenuOption/MenuOption.stories.d.ts +15 -0
- package/lib/components/MenuOption/index.d.ts +1 -0
- package/lib/components/MenuOption/types.d.ts +134 -0
- package/lib/components/MiniModal/MiniModal.d.ts +4 -0
- package/lib/components/MiniModal/MiniModal.stories.d.ts +9 -0
- package/lib/components/MiniModal/index.d.ts +1 -0
- package/lib/components/MiniModal/types.d.ts +89 -0
- package/lib/components/MultiSelect/Dropdown.d.ts +4 -0
- package/lib/components/MultiSelect/MultiSelect.d.ts +4 -0
- package/lib/components/MultiSelect/MultiSelect.stories.d.ts +9 -0
- package/lib/components/MultiSelect/MultiSelectTypes.d.ts +18 -0
- package/lib/components/MultiSelect/dropdownTypes.d.ts +15 -0
- package/lib/components/MultiSelect/index.d.ts +1 -0
- package/lib/components/RadioButton/RadioButton.d.ts +4 -0
- package/lib/components/RadioButton/RadioButton.stories.d.ts +10 -0
- package/lib/components/RadioButton/index.d.ts +1 -0
- package/lib/components/RadioButton/radioButtonTypes.d.ts +35 -0
- package/lib/components/RadioGroup/RadioGroup.d.ts +4 -0
- package/lib/components/RadioGroup/RadioGroup.stories.d.ts +8 -0
- package/lib/components/RadioGroup/index.d.ts +1 -0
- package/lib/components/RadioGroup/radioGroupTypes.d.ts +47 -0
- package/lib/components/Search/Search.d.ts +4 -0
- package/lib/components/Search/Search.stories.d.ts +6 -0
- package/lib/components/Search/index.d.ts +1 -0
- package/lib/components/Search/types.d.ts +15 -0
- package/lib/components/Select/Select.d.ts +4 -0
- package/lib/components/Select/Select.stories.d.ts +13 -0
- package/lib/components/Select/components/Dropdown/Dropdown.d.ts +4 -0
- package/lib/components/Select/components/Dropdown/dropdownTypes.d.ts +15 -0
- package/lib/components/Select/index.d.ts +1 -0
- package/lib/components/Select/types.d.ts +68 -0
- package/lib/components/Table/Table.d.ts +4 -0
- package/lib/components/Table/Table.stories.d.ts +11 -0
- package/lib/components/Table/Types.d.ts +98 -0
- package/lib/components/Table/index.d.ts +1 -0
- package/lib/components/TableTree/TableTree.d.ts +21 -0
- package/lib/components/TableTree/TableTree.stories.d.ts +7 -0
- package/lib/components/TableTree/data.d.ts +313 -0
- package/lib/components/TableTree/index.d.ts +1 -0
- package/lib/components/Tabs/Tabs.d.ts +5 -0
- package/lib/components/Tabs/Tabs.stories.d.ts +8 -0
- package/lib/components/Tabs/index.d.ts +1 -0
- package/lib/components/Tabs/types.d.ts +40 -0
- package/lib/components/TextArea/Textarea.d.ts +4 -0
- package/lib/components/TextArea/Textarea.stories.d.ts +9 -0
- package/lib/components/TextArea/Types.d.ts +78 -0
- package/lib/components/TextArea/index.d.ts +1 -0
- package/lib/components/ThemeProvider/ThemeProvider.d.ts +7 -0
- package/lib/components/ThemeProvider/index.d.ts +1 -0
- package/lib/components/ThemeProvider/types.d.ts +11 -0
- package/lib/components/Toast/Toast.d.ts +5 -0
- package/lib/components/Toast/Toast.stories.d.ts +6 -0
- package/lib/components/Toast/index.d.ts +1 -0
- package/lib/components/Toast/types.d.ts +20 -0
- package/lib/components/Toggle/Toggle.d.ts +5 -0
- package/lib/components/Toggle/Toggle.stories.d.ts +12 -0
- package/lib/components/Toggle/index.d.ts +1 -0
- package/lib/components/Toggle/types.d.ts +50 -0
- package/lib/components/Tooltip/Tooltip.d.ts +5 -0
- package/lib/components/Tooltip/Tooltip.stories.d.ts +15 -0
- package/lib/components/Tooltip/index.d.ts +1 -0
- package/lib/components/Tooltip/types.d.ts +37 -0
- package/lib/components/Typography/Typography.d.ts +5 -0
- package/lib/components/Typography/Typography.stories.d.ts +10 -0
- package/lib/components/Typography/index.d.ts +1 -0
- package/lib/components/Typography/types.d.ts +47 -0
- package/lib/hooks/keyboardevents/useEscKeyEvent.d.ts +2 -0
- package/lib/hooks/useClickOutside.d.ts +2 -0
- package/lib/hooks/useFileDropzone.d.ts +3 -0
- package/lib/hooks/usePortalPosition.d.ts +9 -0
- package/lib/hooks/useTheme.d.ts +3 -0
- package/lib/index.css +404 -0
- package/lib/index.d.ts +1286 -0
- package/lib/index.esm.css +404 -0
- package/lib/index.esm.js +9317 -0
- package/lib/index.esm.js.map +1 -0
- package/lib/index.js +9376 -0
- package/lib/index.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/lib/utils/TableCell/TableCell.d.ts +1 -0
- package/lib/utils/checkEmpty/checkEmpty.d.ts +3 -0
- package/lib/utils/checkEmpty/checkEmpty.stories.d.ts +6 -0
- package/lib/utils/ffID/ffID.stories.d.ts +6 -0
- package/lib/utils/ffID/ffid.d.ts +2 -0
- package/lib/utils/getExtension/getExtension.d.ts +4 -0
- package/lib/utils/getExtension/getExtension.stories.d.ts +6 -0
- package/lib/utils/truncateText/truncateText.d.ts +1 -0
- package/lib/utils/truncateText/truncateText.stories.d.ts +6 -0
- package/package.json +62 -0
- package/rollup.config.mjs +57 -0
- package/src/StyleGuide/ColorPalette/ColorPalette.scss +58 -0
- package/src/StyleGuide/ColorPalette/ColorPalette.stories.tsx +16 -0
- package/src/StyleGuide/ColorPalette/ColorPalette.tsx +61 -0
- package/src/StyleGuide/ColorPalette/colorPaletteList.ts +97 -0
- package/src/StyleGuide/ColorPalette/index.ts +1 -0
- package/src/StyleGuide/ColorPalette/types.ts +17 -0
- package/src/StyleGuide/Typography/Typography.scss +100 -0
- package/src/StyleGuide/Typography/Typography.stories.tsx +16 -0
- package/src/StyleGuide/Typography/Typography.tsx +60 -0
- package/src/StyleGuide/Typography/TypographyList.ts +3 -0
- package/src/StyleGuide/Typography/types.ts +9 -0
- package/src/assets/Themes/BaseTheme.scss +130 -0
- package/src/assets/Themes/DarkTheme.scss +131 -0
- package/src/assets/Themes/Theme.scss +200 -0
- package/src/assets/icons/Arrow.svg +5 -0
- package/src/assets/icons/accordion_header_icon.svg +10 -0
- package/src/assets/icons/arrow_down.svg +3 -0
- package/src/assets/icons/arrow_right.svg +5 -0
- package/src/assets/icons/arrow_up.svg +3 -0
- package/src/assets/icons/arrows_down_icon.svg +3 -0
- package/src/assets/icons/arrows_right_icon.svg +10 -0
- package/src/assets/icons/arrows_top_icon.svg +3 -0
- package/src/assets/icons/check_mark.svg +3 -0
- package/src/assets/icons/close_pill.svg +3 -0
- package/src/assets/icons/delete.svg +17 -0
- package/src/assets/icons/dropzone_icon.svg +18 -0
- package/src/assets/icons/error.svg +17 -0
- package/src/assets/icons/file.svg +12 -0
- package/src/assets/icons/info.svg +17 -0
- package/src/assets/icons/logo.svg +18 -0
- package/src/assets/icons/manage_apps.svg +3 -0
- package/src/assets/icons/moon_stars.svg +10 -0
- package/src/assets/icons/more.svg +11 -0
- package/src/assets/icons/plus_icon.svg +11 -0
- package/src/assets/icons/remove.svg +12 -0
- package/src/assets/icons/replace.svg +12 -0
- package/src/assets/icons/search.svg +3 -0
- package/src/assets/icons/success.svg +13 -0
- package/src/assets/icons/sun_icon.svg +10 -0
- package/src/assets/icons/tick_icon.svg +5 -0
- package/src/assets/icons/toast_close.svg +3 -0
- package/src/assets/icons/warning.svg +17 -0
- package/src/assets/icons/wrong_mark.svg +3 -0
- package/src/assets/styles/_colors.scss +145 -0
- package/src/assets/styles/_fonts.scss +68 -0
- package/src/assets/styles/_mixins.scss +20 -0
- package/src/assets/utils/functionUtils.ts +5 -0
- package/src/components/Accordion/Accordion.scss +45 -0
- package/src/components/Accordion/Accordion.stories.tsx +31 -0
- package/src/components/Accordion/Accordion.tsx +62 -0
- package/src/components/Accordion/index.ts +1 -0
- package/src/components/Accordion/types.ts +28 -0
- package/src/components/AddResourceButton/AddButton.scss +36 -0
- package/src/components/AddResourceButton/AddButton.stories.tsx +126 -0
- package/src/components/AddResourceButton/AddButton.tsx +121 -0
- package/src/components/AddResourceButton/ArrowsButton/ArrowsButton.scss +160 -0
- package/src/components/AddResourceButton/ArrowsButton/ArrowsButton.tsx +38 -0
- package/src/components/AddResourceButton/index.ts +1 -0
- package/src/components/AddResourceButton/type.ts +60 -0
- package/src/components/Button/Button.scss +148 -0
- package/src/components/Button/Button.stories.tsx +74 -0
- package/src/components/Button/Button.tsx +66 -0
- package/src/components/Button/index.ts +1 -0
- package/src/components/Button/types.ts +65 -0
- package/src/components/Charts/DonutChart/DonutChart.scss +76 -0
- package/src/components/Charts/DonutChart/DonutChart.stories.tsx +30 -0
- package/src/components/Charts/DonutChart/DonutChart.tsx +241 -0
- package/src/components/Charts/DonutChart/index.ts +1 -0
- package/src/components/Charts/DonutChart/type.ts +23 -0
- package/src/components/Charts/RadialChart/RadialChart.scss +12 -0
- package/src/components/Charts/RadialChart/RadialChart.stories.tsx +36 -0
- package/src/components/Charts/RadialChart/RadialChart.tsx +174 -0
- package/src/components/Charts/RadialChart/index.ts +1 -0
- package/src/components/Charts/RadialChart/types.ts +32 -0
- package/src/components/Checkbox/Checkbox.scss +89 -0
- package/src/components/Checkbox/Checkbox.stories.tsx +47 -0
- package/src/components/Checkbox/Checkbox.tsx +61 -0
- package/src/components/Checkbox/index.ts +1 -0
- package/src/components/Checkbox/types.ts +30 -0
- package/src/components/Chip/Chip.scss +70 -0
- package/src/components/Chip/Chip.stories.tsx +88 -0
- package/src/components/Chip/Chip.tsx +35 -0
- package/src/components/Chip/index.ts +1 -0
- package/src/components/Chip/types.ts +19 -0
- package/src/components/Drawer/Drawer.scss +121 -0
- package/src/components/Drawer/Drawer.stories.tsx +88 -0
- package/src/components/Drawer/Drawer.tsx +179 -0
- package/src/components/Drawer/Types.ts +88 -0
- package/src/components/Drawer/index.ts +1 -0
- package/src/components/ExpandableMenu/ExpandableMenu.scss +110 -0
- package/src/components/ExpandableMenu/ExpandableMenu.stories.tsx +67 -0
- package/src/components/ExpandableMenu/ExpandableMenu.tsx +101 -0
- package/src/components/ExpandableMenu/index.ts +1 -0
- package/src/components/ExpandableMenu/types.ts +34 -0
- package/src/components/FileDropzone/Dropzone.tsx +55 -0
- package/src/components/FileDropzone/FileDropzone.scss +134 -0
- package/src/components/FileDropzone/FileDropzone.stories.tsx +83 -0
- package/src/components/FileDropzone/FileDropzone.tsx +98 -0
- package/src/components/FileDropzone/FilePreview.tsx +75 -0
- package/src/components/FileDropzone/index.ts +1 -0
- package/src/components/FileDropzone/types.ts +113 -0
- package/src/components/Form/Form.scss +98 -0
- package/src/components/Form/Form.stories.tsx +177 -0
- package/src/components/Form/Form.tsx +57 -0
- package/src/components/Form/index.ts +1 -0
- package/src/components/Form/types.ts +1 -0
- package/src/components/Form/validation.json +29 -0
- package/src/components/GridLayout/GridLayout.scss +71 -0
- package/src/components/GridLayout/GridLayout.stories.tsx +128 -0
- package/src/components/GridLayout/GridLayout.tsx +30 -0
- package/src/components/GridLayout/GridLayoutStory.scss +25 -0
- package/src/components/GridLayout/index.ts +1 -0
- package/src/components/GridLayout/types.ts +64 -0
- package/src/components/HighlightText/HighlightText.scss +3 -0
- package/src/components/HighlightText/HighlightText.stories.tsx +22 -0
- package/src/components/HighlightText/HighlightText.tsx +33 -0
- package/src/components/HighlightText/index.ts +1 -0
- package/src/components/HighlightText/types.ts +4 -0
- package/src/components/Icon/Icon.stories.tsx +37 -0
- package/src/components/Icon/Icon.tsx +43 -0
- package/src/components/Icon/Icons.scss +34 -0
- package/src/components/Icon/iconList.ts +62 -0
- package/src/components/Icon/index.ts +1 -0
- package/src/components/Icon/types.ts +10 -0
- package/src/components/Input/Input.scss +150 -0
- package/src/components/Input/Input.stories.tsx +96 -0
- package/src/components/Input/Input.tsx +93 -0
- package/src/components/Input/index.ts +1 -0
- package/src/components/Input/types.ts +77 -0
- package/src/components/InputWithDropdown/InputWithDropdown.scss +185 -0
- package/src/components/InputWithDropdown/InputWithDropdown.stories.tsx +114 -0
- package/src/components/InputWithDropdown/InputWithDropdown.tsx +85 -0
- package/src/components/InputWithDropdown/index.ts +1 -0
- package/src/components/InputWithDropdown/types.ts +110 -0
- package/src/components/LazyLoad/LazyLoad.d.ts +3 -0
- package/src/components/LazyLoad/LazyLoad.stories.tsx +33 -0
- package/src/components/LazyLoad/LazyLoad.ts +2 -0
- package/src/components/LazyLoad/LazyLoading.tsx +19 -0
- package/src/components/LazyLoad/index.ts +1 -0
- package/src/components/MenuOption/MenuOption.scss +69 -0
- package/src/components/MenuOption/MenuOption.stories.tsx +259 -0
- package/src/components/MenuOption/MenuOption.tsx +126 -0
- package/src/components/MenuOption/index.ts +1 -0
- package/src/components/MenuOption/types.ts +161 -0
- package/src/components/MiniModal/MiniModal.scss +139 -0
- package/src/components/MiniModal/MiniModal.stories.tsx +475 -0
- package/src/components/MiniModal/MiniModal.tsx +218 -0
- package/src/components/MiniModal/index.ts +1 -0
- package/src/components/MiniModal/types.ts +88 -0
- package/src/components/MultiSelect/Dropdown.scss +66 -0
- package/src/components/MultiSelect/Dropdown.tsx +77 -0
- package/src/components/MultiSelect/MultiSelect.scss +190 -0
- package/src/components/MultiSelect/MultiSelect.stories.tsx +85 -0
- package/src/components/MultiSelect/MultiSelect.tsx +260 -0
- package/src/components/MultiSelect/MultiSelectTypes.ts +19 -0
- package/src/components/MultiSelect/dropdownTypes.ts +15 -0
- package/src/components/MultiSelect/index.ts +1 -0
- package/src/components/RadioButton/RadioButton.scss +99 -0
- package/src/components/RadioButton/RadioButton.stories.tsx +43 -0
- package/src/components/RadioButton/RadioButton.tsx +32 -0
- package/src/components/RadioButton/index.ts +1 -0
- package/src/components/RadioButton/radioButtonTypes.tsx +40 -0
- package/src/components/RadioGroup/RadioGroup.scss +5 -0
- package/src/components/RadioGroup/RadioGroup.stories.tsx +81 -0
- package/src/components/RadioGroup/RadioGroup.tsx +30 -0
- package/src/components/RadioGroup/index.ts +1 -0
- package/src/components/RadioGroup/radioGroupTypes.tsx +54 -0
- package/src/components/Search/Search.scss +87 -0
- package/src/components/Search/Search.stories.tsx +26 -0
- package/src/components/Search/Search.tsx +103 -0
- package/src/components/Search/index.ts +1 -0
- package/src/components/Search/types.ts +15 -0
- package/src/components/Select/Select.scss +247 -0
- package/src/components/Select/Select.stories.tsx +156 -0
- package/src/components/Select/Select.tsx +368 -0
- package/src/components/Select/components/Dropdown/Dropdown.scss +70 -0
- package/src/components/Select/components/Dropdown/Dropdown.tsx +89 -0
- package/src/components/Select/components/Dropdown/dropdownTypes.ts +19 -0
- package/src/components/Select/index.ts +1 -0
- package/src/components/Select/types.ts +122 -0
- package/src/components/Table/Table.scss +101 -0
- package/src/components/Table/Table.stories.tsx +345 -0
- package/src/components/Table/Table.tsx +128 -0
- package/src/components/Table/Types.ts +100 -0
- package/src/components/Table/index.ts +1 -0
- package/src/components/TableTree/TableTree.scss +142 -0
- package/src/components/TableTree/TableTree.stories.tsx +121 -0
- package/src/components/TableTree/TableTree.tsx +216 -0
- package/src/components/TableTree/TableTreeStories.scss +22 -0
- package/src/components/TableTree/data.ts +573 -0
- package/src/components/TableTree/index.ts +1 -0
- package/src/components/Tabs/Tabs.scss +76 -0
- package/src/components/Tabs/Tabs.stories.tsx +104 -0
- package/src/components/Tabs/Tabs.tsx +64 -0
- package/src/components/Tabs/index.ts +1 -0
- package/src/components/Tabs/types.ts +38 -0
- package/src/components/TextArea/Textarea.scss +145 -0
- package/src/components/TextArea/Textarea.stories.tsx +92 -0
- package/src/components/TextArea/Textarea.tsx +84 -0
- package/src/components/TextArea/Types.ts +82 -0
- package/src/components/TextArea/index.tsx +1 -0
- package/src/components/ThemeProvider/ThemeProvider.tsx +24 -0
- package/src/components/ThemeProvider/index.ts +1 -0
- package/src/components/ThemeProvider/types.ts +14 -0
- package/src/components/Toast/Toast.scss +121 -0
- package/src/components/Toast/Toast.stories.tsx +180 -0
- package/src/components/Toast/Toast.tsx +116 -0
- package/src/components/Toast/index.ts +1 -0
- package/src/components/Toast/types.ts +27 -0
- package/src/components/Toggle/Toggle.scss +132 -0
- package/src/components/Toggle/Toggle.stories.tsx +132 -0
- package/src/components/Toggle/Toggle.tsx +96 -0
- package/src/components/Toggle/index.ts +1 -0
- package/src/components/Toggle/types.ts +43 -0
- package/src/components/Tooltip/Tooltip.scss +27 -0
- package/src/components/Tooltip/Tooltip.stories.tsx +97 -0
- package/src/components/Tooltip/Tooltip.tsx +194 -0
- package/src/components/Tooltip/index.ts +1 -0
- package/src/components/Tooltip/types.ts +60 -0
- package/src/components/Typography/Typography.scss +49 -0
- package/src/components/Typography/Typography.stories.tsx +57 -0
- package/src/components/Typography/Typography.tsx +39 -0
- package/src/components/Typography/index.ts +1 -0
- package/src/components/Typography/types.ts +56 -0
- package/src/fonts/Montserrat/Montserrat-Medium.ttf +0 -0
- package/src/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
- package/src/fonts/Montserrat/Montserrat-SemiBold.ttf +0 -0
- package/src/fonts/Poppins/Poppins-Black.ttf +0 -0
- package/src/fonts/Poppins/Poppins-BlackItalic.ttf +0 -0
- package/src/fonts/Poppins/Poppins-Bold.ttf +0 -0
- package/src/fonts/Poppins/Poppins-BoldItalic.ttf +0 -0
- package/src/fonts/Poppins/Poppins-ExtraBold.ttf +0 -0
- package/src/fonts/Poppins/Poppins-ExtraBoldItalic.ttf +0 -0
- package/src/fonts/Poppins/Poppins-ExtraLight.ttf +0 -0
- package/src/fonts/Poppins/Poppins-ExtraLightItalic.ttf +0 -0
- package/src/fonts/Poppins/Poppins-Italic.ttf +0 -0
- package/src/fonts/Poppins/Poppins-Light.ttf +0 -0
- package/src/fonts/Poppins/Poppins-LightItalic.ttf +0 -0
- package/src/fonts/Poppins/Poppins-Medium.ttf +0 -0
- package/src/fonts/Poppins/Poppins-MediumItalic.ttf +0 -0
- package/src/fonts/Poppins/Poppins-Regular.ttf +0 -0
- package/src/fonts/Poppins/Poppins-SemiBold.ttf +0 -0
- package/src/fonts/Poppins/Poppins-SemiBoldItalic.ttf +0 -0
- package/src/fonts/Poppins/Poppins-Thin.ttf +0 -0
- package/src/fonts/Poppins/Poppins-ThinItalic.ttf +0 -0
- package/src/hooks/keyboardevents/useEscKeyEvent.tsx +31 -0
- package/src/hooks/useClickOutside.tsx +30 -0
- package/src/hooks/useFileDropzone.tsx +273 -0
- package/src/hooks/usePortalPosition.tsx +53 -0
- package/src/hooks/useTheme.tsx +13 -0
- package/src/index.ts +91 -0
- package/src/utils/TableCell/TableCell.ts +16 -0
- package/src/utils/checkEmpty/checkEmpty.stories.tsx +34 -0
- package/src/utils/checkEmpty/checkEmpty.ts +10 -0
- package/src/utils/ffID/ffID.stories.tsx +35 -0
- package/src/utils/ffID/ffid.ts +9 -0
- package/src/utils/getExtension/getExtension.stories.tsx +23 -0
- package/src/utils/getExtension/getExtension.ts +28 -0
- package/src/utils/truncateText/truncateText.stories.tsx +37 -0
- package/src/utils/truncateText/truncateText.ts +4 -0
- package/tsconfig.json +55 -0
- package/ui-library.zip +0 -0
- package/vite.config.js +30 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import Toggle from './Toggle';
|
3
|
+
declare const meta: Meta<typeof Toggle>;
|
4
|
+
export default meta;
|
5
|
+
type Story = StoryObj<typeof Toggle>;
|
6
|
+
export declare const Default: Story;
|
7
|
+
export declare const Disabled: Story;
|
8
|
+
export declare const Checked: Story;
|
9
|
+
export declare const SmallSize: Story;
|
10
|
+
export declare const MediumSize: Story;
|
11
|
+
export declare const DynamicIconAndSize: Story;
|
12
|
+
export declare const Controlled: Story;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from './Toggle';
|
@@ -0,0 +1,50 @@
|
|
1
|
+
export interface ToggleProps {
|
2
|
+
/**
|
3
|
+
* Optional onChange handler
|
4
|
+
*/
|
5
|
+
onChange?: (event: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
|
6
|
+
/**
|
7
|
+
* Optional disabled state
|
8
|
+
*/
|
9
|
+
disabled?: boolean;
|
10
|
+
/**
|
11
|
+
* Optional checked state
|
12
|
+
*/
|
13
|
+
checked?: boolean;
|
14
|
+
/**
|
15
|
+
* Optional id
|
16
|
+
*/
|
17
|
+
id?: string;
|
18
|
+
/**
|
19
|
+
* What background color to occur upon toggled
|
20
|
+
*/
|
21
|
+
variant?: 'primary' | 'secondary';
|
22
|
+
/**
|
23
|
+
* Defines the size of the toggle
|
24
|
+
*/
|
25
|
+
size?: 'small' | 'medium' | 'large';
|
26
|
+
/**
|
27
|
+
* Optional icon configuration for the toggle. This allows for custom icons to be used for both the checked and unchecked states.
|
28
|
+
*
|
29
|
+
* @property checked - Icon configuration for the checked state.
|
30
|
+
* @property unchecked - Icon configuration for the unchecked state.
|
31
|
+
*
|
32
|
+
* @example
|
33
|
+
* {
|
34
|
+
* checked: { name: 'checked-icon', width: 24, height: 24 },
|
35
|
+
* unchecked: { name: 'unchecked-icon', width: 24, height: 24 }
|
36
|
+
* }
|
37
|
+
*/
|
38
|
+
icon?: {
|
39
|
+
checked?: {
|
40
|
+
name: string;
|
41
|
+
width: number;
|
42
|
+
height: number;
|
43
|
+
};
|
44
|
+
unchecked?: {
|
45
|
+
name: string;
|
46
|
+
width: number;
|
47
|
+
height: number;
|
48
|
+
};
|
49
|
+
};
|
50
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import Tooltip from './Tooltip';
|
3
|
+
declare const meta: Meta<typeof Tooltip>;
|
4
|
+
type Story = StoryObj<typeof Tooltip>;
|
5
|
+
export declare const Default: Story;
|
6
|
+
export declare const Controlled: Story;
|
7
|
+
export declare const Top: Story;
|
8
|
+
export declare const Left: Story;
|
9
|
+
export declare const Right: Story;
|
10
|
+
export declare const TopStart: Story;
|
11
|
+
export declare const TopEnd: Story;
|
12
|
+
export declare const BottomStart: Story;
|
13
|
+
export declare const BottomEnd: Story;
|
14
|
+
export declare const TooltipWithIcon: Story;
|
15
|
+
export default meta;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from './Tooltip';
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
type TooltipContainerRef = React.RefObject<HTMLDivElement>;
|
3
|
+
type TitleRef = React.RefObject<HTMLDivElement>;
|
4
|
+
type IsTitleEmpty = (tooltipValue: ReactNode | string) => boolean;
|
5
|
+
interface Position {
|
6
|
+
[key: string]: {
|
7
|
+
top?: number;
|
8
|
+
left?: number;
|
9
|
+
};
|
10
|
+
}
|
11
|
+
interface TooltipProps {
|
12
|
+
/**
|
13
|
+
* The text or content to be displayed inside the tooltip.
|
14
|
+
* This can be a string or any React node.
|
15
|
+
*/
|
16
|
+
title?: string | React.ReactNode;
|
17
|
+
/**
|
18
|
+
* The children over which the tooltip will be displayed.
|
19
|
+
* Typically a button or any other interactive element.
|
20
|
+
*/
|
21
|
+
children: React.ReactNode;
|
22
|
+
/**
|
23
|
+
* The placement of the tooltip relative to the children.
|
24
|
+
* Defines where the tooltip appears: top, bottom, left, right, etc.
|
25
|
+
*
|
26
|
+
* @default 'bottom'
|
27
|
+
*/
|
28
|
+
placement?: 'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end';
|
29
|
+
/**
|
30
|
+
* Whether the tooltip is disabled.
|
31
|
+
* If true, the tooltip will not be displayed.
|
32
|
+
*
|
33
|
+
* @default false
|
34
|
+
*/
|
35
|
+
disabled?: boolean;
|
36
|
+
}
|
37
|
+
export { TooltipContainerRef, TitleRef, IsTitleEmpty, Position, TooltipProps, };
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import Typography from './Typography';
|
3
|
+
declare const meta: Meta<typeof Typography>;
|
4
|
+
type Story = StoryObj<typeof Typography>;
|
5
|
+
export declare const Docs: Story;
|
6
|
+
export declare const Regular12px: Story;
|
7
|
+
export declare const Medium12px: Story;
|
8
|
+
export declare const SemiBold14px: Story;
|
9
|
+
export declare const Bold14px: Story;
|
10
|
+
export default meta;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from './Typography';
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export interface TypographyProps {
|
3
|
+
/**
|
4
|
+
* Font Weight
|
5
|
+
*/
|
6
|
+
fontWeight?: 'regular' | 'medium' | 'semi-bold' | 'bold';
|
7
|
+
/**
|
8
|
+
* Font Size
|
9
|
+
*/
|
10
|
+
fontSize?: number | string;
|
11
|
+
/**
|
12
|
+
* Line height
|
13
|
+
*/
|
14
|
+
lineHeight?: string;
|
15
|
+
/**
|
16
|
+
* Color
|
17
|
+
*/
|
18
|
+
color?: string;
|
19
|
+
/**
|
20
|
+
* Text alignment
|
21
|
+
*/
|
22
|
+
textAlign?: 'left' | 'right' | 'center' | 'justify';
|
23
|
+
/**
|
24
|
+
* For JSX elements
|
25
|
+
*/
|
26
|
+
as?: keyof JSX.IntrinsicElements;
|
27
|
+
/**
|
28
|
+
* htmlFor attribute for element=label,
|
29
|
+
*/
|
30
|
+
htmlFor?: string;
|
31
|
+
/**
|
32
|
+
* The content to display within the Typography component
|
33
|
+
*/
|
34
|
+
children: React.ReactNode;
|
35
|
+
/**
|
36
|
+
* To add styles in Typography
|
37
|
+
*/
|
38
|
+
className?: string;
|
39
|
+
/**
|
40
|
+
* To add letter spacing in Typography
|
41
|
+
*/
|
42
|
+
letterSpacing?: string;
|
43
|
+
/**
|
44
|
+
* To add onClick function
|
45
|
+
*/
|
46
|
+
onClick?: () => void;
|
47
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { RefObject } from 'react';
|
2
|
+
export interface PortalPosition {
|
3
|
+
positionX: number;
|
4
|
+
positionY: number;
|
5
|
+
width: number;
|
6
|
+
fromBottom: number;
|
7
|
+
}
|
8
|
+
declare const usePortalPosition: (portalRef: RefObject<HTMLElement>, isPortalOpen: Boolean) => (portalRef: RefObject<HTMLElement>) => PortalPosition;
|
9
|
+
export default usePortalPosition;
|
package/lib/index.css
ADDED
@@ -0,0 +1,404 @@
|
|
1
|
+
.button {
|
2
|
+
background-color: #71347b;
|
3
|
+
}
|
4
|
+
.ff-icon-container {
|
5
|
+
display: flex;
|
6
|
+
justify-content: center;
|
7
|
+
align-items: center;
|
8
|
+
}
|
9
|
+
|
10
|
+
.ff-icon-click {
|
11
|
+
cursor: pointer;
|
12
|
+
padding: 5px;
|
13
|
+
box-sizing: content-box;
|
14
|
+
}
|
15
|
+
.ff-icon-click:hover {
|
16
|
+
border-radius: 50%;
|
17
|
+
background-color: #ffffff;
|
18
|
+
box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.2509803922);
|
19
|
+
}
|
20
|
+
.ff-icon-click:hover > svg {
|
21
|
+
color: #71347b;
|
22
|
+
}
|
23
|
+
|
24
|
+
.ff-icon-disabled {
|
25
|
+
cursor: no-drop;
|
26
|
+
}
|
27
|
+
.ff-icon-disabled > svg {
|
28
|
+
color: #cfd1e2;
|
29
|
+
}
|
30
|
+
.ff-icon-disabled:hover {
|
31
|
+
box-shadow: none;
|
32
|
+
}
|
33
|
+
.ff-icon-disabled:hover > svg {
|
34
|
+
color: #cfd1e2;
|
35
|
+
}
|
36
|
+
@font-face {
|
37
|
+
font-family: "Montserrat-Medium", sans-serif;
|
38
|
+
src: local("Montserrat-Medium"), url(../../fonts/Montserrat/Montserrat-Medium.ttf) format("truetype");
|
39
|
+
}
|
40
|
+
@font-face {
|
41
|
+
font-family: "Montserrat-SemiBold", sans-serif;
|
42
|
+
src: local("Montserrat-SemiBold"), url(../../fonts/Montserrat/Montserrat-SemiBold.ttf) format("truetype");
|
43
|
+
}
|
44
|
+
@font-face {
|
45
|
+
font-family: "Poppins-Regular";
|
46
|
+
src: local("Poppins-Regular"), url(../../fonts/Poppins/Poppins-Regular.ttf) format("truetype");
|
47
|
+
}
|
48
|
+
@font-face {
|
49
|
+
font-family: "Poppins-Medium";
|
50
|
+
src: local("Poppins-Medium"), url(../../fonts/Poppins/Poppins-Medium.ttf) format("truetype");
|
51
|
+
}
|
52
|
+
@font-face {
|
53
|
+
font-family: "Poppins-SemiBold";
|
54
|
+
src: local("Poppins-SemiBold"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format("truetype");
|
55
|
+
}
|
56
|
+
@font-face {
|
57
|
+
font-family: "Poppins-Bold";
|
58
|
+
src: local("Poppins-Bold"), url(../../fonts/Poppins/Poppins-Bold.ttf) format("truetype");
|
59
|
+
}
|
60
|
+
.fontPoppinsRegularXLg {
|
61
|
+
font-family: Poppins-Regular !important;
|
62
|
+
font-size: 18px !important;
|
63
|
+
}
|
64
|
+
|
65
|
+
.fontPoppinsRegularLg {
|
66
|
+
font-family: Poppins-Regular !important;
|
67
|
+
font-size: 16px !important;
|
68
|
+
}
|
69
|
+
|
70
|
+
.fontPoppinsRegularMd {
|
71
|
+
font-family: Poppins-Regular !important;
|
72
|
+
font-size: 14px !important;
|
73
|
+
}
|
74
|
+
|
75
|
+
.fontPoppinsRegularSm {
|
76
|
+
font-family: Poppins-Regular !important;
|
77
|
+
font-size: 12px !important;
|
78
|
+
}
|
79
|
+
|
80
|
+
.fontPoppinsRegularXs {
|
81
|
+
font-family: Poppins-Regular !important;
|
82
|
+
font-size: 10px !important;
|
83
|
+
}
|
84
|
+
|
85
|
+
.fontPoppinsRegularXs8px {
|
86
|
+
font-family: Poppins-Regular !important;
|
87
|
+
font-size: 8px !important;
|
88
|
+
}
|
89
|
+
|
90
|
+
.fontPoppinsRegularXs9px {
|
91
|
+
font-family: Poppins-Regular !important;
|
92
|
+
font-size: 9px !important;
|
93
|
+
}
|
94
|
+
|
95
|
+
.fontPoppinsMediumPageSubHeader {
|
96
|
+
font-family: Poppins-Medium !important;
|
97
|
+
font-size: 26px !important;
|
98
|
+
}
|
99
|
+
|
100
|
+
.fontPoppinsMediumXX2 {
|
101
|
+
font-family: Poppins-Medium !important;
|
102
|
+
font-size: 22px !important;
|
103
|
+
}
|
104
|
+
|
105
|
+
.fontPoppinsMediumXXlg {
|
106
|
+
font-family: Poppins-Medium !important;
|
107
|
+
font-size: 20px !important;
|
108
|
+
}
|
109
|
+
|
110
|
+
.fontPoppinsMediumXXlg {
|
111
|
+
font-family: Poppins-Medium !important;
|
112
|
+
font-size: 20px !important;
|
113
|
+
}
|
114
|
+
|
115
|
+
.fontPoppinsMediumLg {
|
116
|
+
font-family: Poppins-Medium !important;
|
117
|
+
font-size: 16px !important;
|
118
|
+
}
|
119
|
+
|
120
|
+
.fontPoppinsMediumMd {
|
121
|
+
font-family: Poppins-Medium !important;
|
122
|
+
font-size: 14px !important;
|
123
|
+
}
|
124
|
+
|
125
|
+
.fontPoppinsMediumSm {
|
126
|
+
font-family: Poppins-Medium !important;
|
127
|
+
font-size: 12px !important;
|
128
|
+
}
|
129
|
+
|
130
|
+
.fontPoppinsMediumSm11 {
|
131
|
+
font-family: Poppins-Medium !important;
|
132
|
+
font-size: 11px !important;
|
133
|
+
}
|
134
|
+
|
135
|
+
.fontPoppinsMediumXs {
|
136
|
+
font-family: Poppins-Medium !important;
|
137
|
+
font-size: 10px !important;
|
138
|
+
}
|
139
|
+
|
140
|
+
.fontPoppinsMediumXs8px {
|
141
|
+
font-family: Poppins-Medium !important;
|
142
|
+
font-size: 8px !important;
|
143
|
+
}
|
144
|
+
|
145
|
+
.fontPoppinsMediumXs8px {
|
146
|
+
font-family: Poppins-Medium !important;
|
147
|
+
font-size: 8px !important;
|
148
|
+
}
|
149
|
+
|
150
|
+
.fontPoppinsSemibold-size-50 {
|
151
|
+
font-family: Poppins-SemiBold !important;
|
152
|
+
font-size: 50px !important;
|
153
|
+
}
|
154
|
+
|
155
|
+
.fontPoppinsSemibold-size-42 {
|
156
|
+
font-family: Poppins-SemiBold !important;
|
157
|
+
font-size: 42px !important;
|
158
|
+
}
|
159
|
+
|
160
|
+
.fontPoppinsSemiboldPageHeader {
|
161
|
+
font-family: Poppins-SemiBold !important;
|
162
|
+
font-size: 36px !important;
|
163
|
+
}
|
164
|
+
|
165
|
+
.fontPoppinsSemiboldAlertHeader {
|
166
|
+
font-family: Poppins-SemiBold !important;
|
167
|
+
font-size: 32px !important;
|
168
|
+
}
|
169
|
+
|
170
|
+
.fontPoppinsSemibold-size-28 {
|
171
|
+
font-family: Poppins-SemiBold !important;
|
172
|
+
font-size: 28px !important;
|
173
|
+
}
|
174
|
+
|
175
|
+
.fontPoppinsSemibold-size-26 {
|
176
|
+
font-family: Poppins-SemiBold !important;
|
177
|
+
font-size: 26px !important;
|
178
|
+
}
|
179
|
+
|
180
|
+
.fontPoppinsSemiboldPageSubHeader {
|
181
|
+
font-family: Poppins-SemiBold !important;
|
182
|
+
font-size: 24px !important;
|
183
|
+
}
|
184
|
+
|
185
|
+
.fontPoppinsSemiboldXX2 {
|
186
|
+
font-family: Poppins-SemiBold !important;
|
187
|
+
font-size: 22px !important;
|
188
|
+
}
|
189
|
+
|
190
|
+
.fontPoppinsSemiboldXXlg {
|
191
|
+
font-family: Poppins-SemiBold !important;
|
192
|
+
font-size: 20px !important;
|
193
|
+
}
|
194
|
+
|
195
|
+
.fontPoppinsSemiboldXlg {
|
196
|
+
font-family: Poppins-SemiBold !important;
|
197
|
+
font-size: 18px !important;
|
198
|
+
}
|
199
|
+
|
200
|
+
.fontPoppinsSemiboldLg {
|
201
|
+
font-family: Poppins-SemiBold !important;
|
202
|
+
font-size: 16px !important;
|
203
|
+
}
|
204
|
+
|
205
|
+
.fontPoppinsSemiboldMd {
|
206
|
+
font-family: Poppins-SemiBold !important;
|
207
|
+
font-size: 14px !important;
|
208
|
+
}
|
209
|
+
|
210
|
+
.fontPoppinsSemiboldSm {
|
211
|
+
font-family: Poppins-SemiBold !important;
|
212
|
+
font-size: 12px !important;
|
213
|
+
}
|
214
|
+
|
215
|
+
.fontPoppinsSemiboldSm11 {
|
216
|
+
font-family: Poppins-SemiBold !important;
|
217
|
+
font-size: 11px !important;
|
218
|
+
}
|
219
|
+
|
220
|
+
.fontPoppinsSemiboldXs {
|
221
|
+
font-family: Poppins-SemiBold !important;
|
222
|
+
font-size: 10px !important;
|
223
|
+
}
|
224
|
+
|
225
|
+
.fontPoppinsSemiboldXs9px {
|
226
|
+
font-family: Poppins-SemiBold !important;
|
227
|
+
font-size: 9px !important;
|
228
|
+
}
|
229
|
+
|
230
|
+
.fontPoppinsSemiboldXs8px {
|
231
|
+
font-family: Poppins-Medium !important;
|
232
|
+
font-size: 8px !important;
|
233
|
+
}
|
234
|
+
|
235
|
+
.fontPoppinsSemiboldXXs {
|
236
|
+
font-family: Poppins-SemiBold !important;
|
237
|
+
font-size: 8px !important;
|
238
|
+
}
|
239
|
+
|
240
|
+
.fontMontserratMediumXs {
|
241
|
+
font-family: Montserrat-Medium, sans-serif !important;
|
242
|
+
font-size: 10px !important;
|
243
|
+
}
|
244
|
+
|
245
|
+
.fontMontserratMediumSm {
|
246
|
+
font-family: Montserrat-Medium, sans-serif !important;
|
247
|
+
font-size: 12px !important;
|
248
|
+
}
|
249
|
+
|
250
|
+
.fontMontserratMediumMd {
|
251
|
+
font-family: Montserrat-Medium, sans-serif !important;
|
252
|
+
font-size: 14px !important;
|
253
|
+
}
|
254
|
+
|
255
|
+
.fontMontserratSemiboldXs {
|
256
|
+
font-family: Montserrat-SemiBold, sans-serif !important;
|
257
|
+
font-size: 10px !important;
|
258
|
+
}
|
259
|
+
|
260
|
+
.fontMontserratSemiboldSm {
|
261
|
+
font-family: Montserrat-SemiBold, sans-serif !important;
|
262
|
+
font-size: 12px !important;
|
263
|
+
}
|
264
|
+
|
265
|
+
.fontMontserratSemiboldMd {
|
266
|
+
font-family: Montserrat-SemiBold, sans-serif !important;
|
267
|
+
font-size: 14px !important;
|
268
|
+
}
|
269
|
+
|
270
|
+
.fontMontserratSemiboldLg {
|
271
|
+
font-family: Montserrat-SemiBold, sans-serif !important;
|
272
|
+
font-size: 16px !important;
|
273
|
+
}
|
274
|
+
|
275
|
+
.ff--switch-container {
|
276
|
+
position: relative;
|
277
|
+
display: flex;
|
278
|
+
align-items: center;
|
279
|
+
}
|
280
|
+
.ff--switch-container:disabled {
|
281
|
+
opacity: 0.7;
|
282
|
+
cursor: no-drop;
|
283
|
+
}
|
284
|
+
.ff--switch-container .ff--switch-checkbox {
|
285
|
+
height: 0;
|
286
|
+
width: 0;
|
287
|
+
display: none;
|
288
|
+
}
|
289
|
+
.ff--switch-container .ff--switch-checkbox:checked + .ff--switch-label .ff--switch-button {
|
290
|
+
left: calc(100% - 19px);
|
291
|
+
right: -1px;
|
292
|
+
border: 1px solid #71347b;
|
293
|
+
background: #ffffff;
|
294
|
+
transition: all 0.3s;
|
295
|
+
box-shadow: 0px 0px 2px 0px #141a60;
|
296
|
+
}
|
297
|
+
.ff--switch-container .ff--switch-checkbox:checked + .ff--switch-label .ff--switch-button .ff-check-symbol {
|
298
|
+
height: 6px;
|
299
|
+
width: 3px;
|
300
|
+
border-bottom: 2px solid #71347b;
|
301
|
+
border-right: 2px solid #71347b;
|
302
|
+
transform: rotate(45deg);
|
303
|
+
border-bottom-right-radius: 2px;
|
304
|
+
animation: checkmark 0.2s forwards;
|
305
|
+
transition: all 0.1s;
|
306
|
+
}
|
307
|
+
.ff--switch-container .ff--switch-checkbox:checked + .ff--switch-label--primary {
|
308
|
+
background: #71347b;
|
309
|
+
transition: all 0.3s;
|
310
|
+
}
|
311
|
+
.ff--switch-container .ff--switch-checkbox:checked + .ff--switch-label:disabled {
|
312
|
+
cursor: default;
|
313
|
+
color: rgba(113, 52, 123, 0.5019607843);
|
314
|
+
background: rgba(113, 52, 123, 0.5019607843);
|
315
|
+
}
|
316
|
+
.ff--switch-container .ff--switch-checkbox:disabled {
|
317
|
+
cursor: no-drop;
|
318
|
+
}
|
319
|
+
.ff--switch-container .ff--switch-label {
|
320
|
+
display: flex;
|
321
|
+
align-items: center;
|
322
|
+
justify-content: space-between;
|
323
|
+
cursor: pointer;
|
324
|
+
border-radius: 8px;
|
325
|
+
position: relative;
|
326
|
+
background: #cfd1e2;
|
327
|
+
transition: all 0.3s;
|
328
|
+
}
|
329
|
+
.ff--switch-container .ff--switch-label--disabled {
|
330
|
+
opacity: 0.5;
|
331
|
+
cursor: no-drop;
|
332
|
+
}
|
333
|
+
.ff--switch-container .ff--switch-label .ff--switch-button {
|
334
|
+
position: absolute;
|
335
|
+
left: 0;
|
336
|
+
width: 20px;
|
337
|
+
height: 20px;
|
338
|
+
border: 1px solid #cfd1e2;
|
339
|
+
display: flex;
|
340
|
+
background: #ffffff;
|
341
|
+
border-radius: 50%;
|
342
|
+
box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.2509803922);
|
343
|
+
transition: all 0.3s;
|
344
|
+
align-items: center;
|
345
|
+
justify-content: center;
|
346
|
+
box-sizing: border-box;
|
347
|
+
}
|
348
|
+
.ff--switch-container .ff--switch-label .ff--switch-button .ff-wrong-symbol {
|
349
|
+
width: 8px;
|
350
|
+
height: 8px;
|
351
|
+
position: relative;
|
352
|
+
display: flex;
|
353
|
+
align-items: center;
|
354
|
+
justify-content: center;
|
355
|
+
}
|
356
|
+
.ff--switch-container .ff--switch-label .ff--switch-button .ff-wrong-symbol .ff-cross-line {
|
357
|
+
position: absolute;
|
358
|
+
width: 100%;
|
359
|
+
height: 2px;
|
360
|
+
background-color: #aeb0c0;
|
361
|
+
transition: all 0.3s;
|
362
|
+
animation: crossmark 0.2s forwards;
|
363
|
+
}
|
364
|
+
.ff--switch-container .ff--switch-label .ff--switch-button .ff-wrong-symbol .ff-cross-line:first-child {
|
365
|
+
transform: rotate(45deg);
|
366
|
+
}
|
367
|
+
.ff--switch-container .ff--switch-label .ff--switch-button .ff-wrong-symbol .ff-cross-line:last-child {
|
368
|
+
transform: rotate(-45deg);
|
369
|
+
}
|
370
|
+
.ff--switch-container .default {
|
371
|
+
width: 32px;
|
372
|
+
height: 14px;
|
373
|
+
}
|
374
|
+
@keyframes checkmark {
|
375
|
+
0% {
|
376
|
+
height: 0;
|
377
|
+
width: 0;
|
378
|
+
opacity: 0;
|
379
|
+
}
|
380
|
+
50% {
|
381
|
+
height: 3px;
|
382
|
+
width: 3px;
|
383
|
+
opacity: 1;
|
384
|
+
}
|
385
|
+
100% {
|
386
|
+
height: 6px;
|
387
|
+
width: 3px;
|
388
|
+
opacity: 1;
|
389
|
+
}
|
390
|
+
}
|
391
|
+
@keyframes crossmark {
|
392
|
+
0% {
|
393
|
+
width: 0;
|
394
|
+
opacity: 0;
|
395
|
+
}
|
396
|
+
50% {
|
397
|
+
width: 50%;
|
398
|
+
opacity: 1;
|
399
|
+
}
|
400
|
+
100% {
|
401
|
+
width: 100%;
|
402
|
+
opacity: 1;
|
403
|
+
}
|
404
|
+
}
|