kwant-ui 3.45.0-dev.0 → 3.45.0
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/README.md +181 -73
- package/dist/GlobalStyles/index.d.ts +5 -5
- package/dist/GlobalStyles/types.d.ts +17 -17
- package/dist/GlobalStyles/typography.d.ts +20 -20
- package/dist/HOC/HoverHOC/HoverHOC.d.ts +4 -4
- package/dist/HOC/HoverHOC/HoverHOCStyled.d.ts +2 -2
- package/dist/HOC/HoverHOC/index.d.ts +2 -2
- package/dist/HOC/HoverHOC/types.d.ts +20 -20
- package/dist/components/Alert/Alert.d.ts +3 -3
- package/dist/components/Alert/AlertStyled.d.ts +6 -6
- package/dist/components/Alert/AlertTypes.d.ts +24 -24
- package/dist/components/Alert/AlertUtils.d.ts +24 -23
- package/dist/components/Alert/index.d.ts +2 -2
- package/dist/components/Avatar/Avatar.d.ts +3 -3
- package/dist/components/Avatar/Avatar.types.d.ts +40 -40
- package/dist/components/Avatar/AvatarStyled.d.ts +6 -6
- package/dist/components/Avatar/AvatarUtils.d.ts +2 -2
- package/dist/components/Avatar/index.d.ts +2 -2
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +3 -3
- package/dist/components/AvatarGroup/AvatarGroupStyled.d.ts +3 -3
- package/dist/components/AvatarGroup/AvatarGroupTypes.d.ts +20 -20
- package/dist/components/AvatarGroup/AvatarGroupUtils.d.ts +1 -1
- package/dist/components/AvatarGroup/index.d.ts +2 -2
- package/dist/components/Badge/Badge.d.ts +3 -3
- package/dist/components/Badge/Badge.styled.d.ts +1 -1
- package/dist/components/Badge/types.d.ts +6 -6
- package/dist/components/BaseDrawer/BaseDrawer.d.ts +3 -3
- package/dist/components/BaseDrawer/BaseDrawer.styled.d.ts +3 -3
- package/dist/components/BaseDrawer/BaseDrawer.types.d.ts +19 -19
- package/dist/components/BaseDrawer/BaseDrawer.utils.d.ts +12 -12
- package/dist/components/BaseDrawer/index.d.ts +2 -2
- package/dist/components/BaseDropdown/BaseDropdown.d.ts +3 -3
- package/dist/components/BaseDropdown/BaseDropdownStyled.d.ts +2 -2
- package/dist/components/BaseDropdown/BaseDropdownTypes.d.ts +20 -20
- package/dist/components/BaseDropdown/index.d.ts +2 -2
- package/dist/components/Battery/Battery.d.ts +3 -3
- package/dist/components/Battery/Battery.styled.d.ts +1 -1
- package/dist/components/Battery/types.d.ts +3 -3
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +12 -12
- package/dist/components/Breadcrumb/Breadcrumb.styled.d.ts +5 -5
- package/dist/components/Breadcrumb/BreadcrumbUtils.d.ts +7 -7
- package/dist/components/Breadcrumb/Crumb.d.ts +9 -9
- package/dist/components/Breadcrumb/index.d.ts +2 -2
- package/dist/components/Button/Button.d.ts +3 -3
- package/dist/components/Button/Button.styled.d.ts +3 -3
- package/dist/components/Button/buttonColors.d.ts +3 -3
- package/dist/components/Button/helper.d.ts +4 -4
- package/dist/components/Button/types.d.ts +79 -79
- package/dist/components/Calendar/Calendar.d.ts +3 -3
- package/dist/components/Calendar/CalendarComponents.d.ts +11 -11
- package/dist/components/Calendar/CalendarStyled.d.ts +44 -42
- package/dist/components/Calendar/CalendarTypes.d.ts +77 -76
- package/dist/components/Calendar/CalendarUtils.d.ts +44 -41
- package/dist/components/Calendar/icons.d.ts +6 -6
- package/dist/components/Calendar/index.d.ts +2 -2
- package/dist/components/Charts/AreaChart/AreaChart.d.ts +3 -3
- package/dist/components/Charts/AreaChart/AreaChartData.d.ts +43 -43
- package/dist/components/Charts/AreaChart/AreaChartStyled.d.ts +22 -22
- package/dist/components/Charts/AreaChart/AreaChartTypes.d.ts +73 -73
- package/dist/components/Charts/AreaChart/AreaChartUtils.d.ts +28 -28
- package/dist/components/Charts/AreaChart/index.d.ts +2 -2
- package/dist/components/Charts/GaugeChart/GaugeChart.d.ts +3 -3
- package/dist/components/Charts/GaugeChart/GaugeChartStyled.d.ts +5 -5
- package/dist/components/Charts/GaugeChart/GaugeChartTypes.d.ts +26 -26
- package/dist/components/Charts/GaugeChart/index.d.ts +2 -2
- package/dist/components/Charts/HorizontalStackedBarChart/HorizontalStackedBarChart.d.ts +3 -3
- package/dist/components/Charts/HorizontalStackedBarChart/HorizontalStackedBarChartData.d.ts +19 -19
- package/dist/components/Charts/HorizontalStackedBarChart/HorizontalStackedBarChartStyled.d.ts +24 -24
- package/dist/components/Charts/HorizontalStackedBarChart/HorizontalStackedBarChartTypes.d.ts +60 -60
- package/dist/components/Charts/HorizontalStackedBarChart/HorizontalStackedBarChartUtils.d.ts +10 -10
- package/dist/components/Charts/HorizontalStackedBarChart/index.d.ts +2 -2
- package/dist/components/Charts/LineChart/LineChart.d.ts +3 -3
- package/dist/components/Charts/LineChart/LineChartData.d.ts +32 -32
- package/dist/components/Charts/LineChart/LineChartStyled.d.ts +19 -19
- package/dist/components/Charts/LineChart/LineChartTypes.d.ts +60 -60
- package/dist/components/Charts/LineChart/LineChartUtils.d.ts +21 -21
- package/dist/components/Charts/LineChart/index.d.ts +2 -2
- package/dist/components/Charts/ProgressChart/ProgressChart.d.ts +3 -3
- package/dist/components/Charts/ProgressChart/ProgressChartStyled.d.ts +1 -1
- package/dist/components/Charts/ProgressChart/ProgressChartTypes.d.ts +13 -13
- package/dist/components/Charts/ProgressChart/index.d.ts +2 -2
- package/dist/components/Charts/StackedBarChart/StackedBarChart.d.ts +3 -3
- package/dist/components/Charts/StackedBarChart/StackedBarChartData.d.ts +25 -25
- package/dist/components/Charts/StackedBarChart/StackedBarChartStyled.d.ts +19 -19
- package/dist/components/Charts/StackedBarChart/StackedBarChartTypes.d.ts +62 -62
- package/dist/components/Charts/StackedBarChart/StackedBarChartUtils.d.ts +25 -25
- package/dist/components/Charts/StackedBarChart/index.d.ts +2 -2
- package/dist/components/Charts/WeekwiseBarChart/WeekwiseBarChart.d.ts +3 -3
- package/dist/components/Charts/WeekwiseBarChart/WeekwiseBarChartData.d.ts +13 -13
- package/dist/components/Charts/WeekwiseBarChart/WeekwiseBarChartTypes.d.ts +38 -38
- package/dist/components/Charts/WeekwiseBarChart/WeekwiseBarChartUtils.d.ts +14 -14
- package/dist/components/Charts/WeekwiseBarChart/index.d.ts +2 -2
- package/dist/components/Charts/WorkerTimeChart/WorkTimeChartComponents.d.ts +14 -14
- package/dist/components/Charts/WorkerTimeChart/WorkerTimeChart.d.ts +3 -3
- package/dist/components/Charts/WorkerTimeChart/WorkerTimeChartData.d.ts +9 -9
- package/dist/components/Charts/WorkerTimeChart/WorkerTimeChartTypes.d.ts +51 -51
- package/dist/components/Charts/WorkerTimeChart/WorkerTimeChartUtils.d.ts +20 -20
- package/dist/components/Charts/WorkerTimeChart/index.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.d.ts +4 -4
- package/dist/components/Checkbox/CheckboxStyled.d.ts +12 -12
- package/dist/components/Checkbox/types.d.ts +25 -26
- package/dist/components/ConfirmationScreen/ConfirmationIcons.d.ts +3 -3
- package/dist/components/ConfirmationScreen/ConfirmationScreen.d.ts +3 -3
- package/dist/components/ConfirmationScreen/ConfirmationScreenStyled.d.ts +1 -1
- package/dist/components/ConfirmationScreen/types.d.ts +10 -10
- package/dist/components/CountryCodeInput/CountryCodeInput.styled.d.ts +5 -5
- package/dist/components/CountryCodeInput/countryCodes.d.ts +6 -6
- package/dist/components/CountryCodeInput/index.d.ts +3 -3
- package/dist/components/CountryCodeInput/types.d.ts +24 -24
- package/dist/components/Datepicker/Datepicker.d.ts +4 -4
- package/dist/components/Datepicker/DatepickerStyled.d.ts +7 -6
- package/dist/components/Datepicker/components/icons.d.ts +6 -6
- package/dist/components/Datepicker/index.d.ts +2 -2
- package/dist/components/Datepicker/types.d.ts +56 -50
- package/dist/components/Datepicker/utils/index.d.ts +35 -35
- package/dist/components/Dialog/Dialog.d.ts +3 -3
- package/dist/components/Dialog/DialogStyled.d.ts +9 -9
- package/dist/components/Dialog/DialogTypes.d.ts +17 -17
- package/dist/components/Dialog/DialogUtils.d.ts +1 -1
- package/dist/components/Dialog/index.d.ts +2 -2
- package/dist/components/DocumentCard/DocumentCard.d.ts +3 -3
- package/dist/components/DocumentCard/DocumentCard.styled.d.ts +1 -1
- package/dist/components/DocumentCard/types.d.ts +10 -10
- package/dist/components/Drawer/Drawer.d.ts +3 -3
- package/dist/components/Drawer/Drawer.styled.d.ts +13 -13
- package/dist/components/Drawer/Drawer.types.d.ts +18 -18
- package/dist/components/Drawer/Drawer.utils.d.ts +1 -1
- package/dist/components/Drawer/DrawerLayout.d.ts +3 -3
- package/dist/components/Drawer/index.d.ts +2 -2
- package/dist/components/Dropdown/Dropdown.d.ts +3 -3
- package/dist/components/Dropdown/DropdownStyled.d.ts +20 -20
- package/dist/components/Dropdown/DropdownTypes.d.ts +35 -34
- package/dist/components/Dropdown/DropdownUtils.d.ts +5 -5
- package/dist/components/Dropdown/index.d.ts +2 -2
- package/dist/components/DropdownCalendar/DropdownCalendar.d.ts +10 -10
- package/dist/components/DropdownCalendar/index.d.ts +2 -2
- package/dist/components/DropdownSelect/DropdownSelect.d.ts +3 -3
- package/dist/components/DropdownSelect/DropdownSelect.styled.d.ts +15 -13
- package/dist/components/DropdownSelect/DropdownSelect.types.d.ts +11 -10
- package/dist/components/DropdownSelect/DropdownSelect.utils.d.ts +4 -4
- package/dist/components/DropdownSelect/index.d.ts +2 -2
- package/dist/components/FilterTag/FilterTag.d.ts +3 -3
- package/dist/components/FilterTag/FilterTag.styled.d.ts +1 -1
- package/dist/components/FilterTag/types.d.ts +11 -11
- package/dist/components/Grid/Col.d.ts +3 -3
- package/dist/components/Grid/Col.styled.d.ts +1 -1
- package/dist/components/Grid/Row.d.ts +3 -3
- package/dist/components/Grid/Row.styled.d.ts +10 -10
- package/dist/components/Grid/index.d.ts +3 -3
- package/dist/components/Grid/types.d.ts +22 -22
- package/dist/components/HorizontalStepper/HorizontalStepper.styled.d.ts +10 -10
- package/dist/components/HorizontalStepper/index.d.ts +13 -13
- package/dist/components/HoverCalendar/HoverCalendar.d.ts +3 -3
- package/dist/components/HoverCalendar/HoverCalendarStyled.d.ts +1 -1
- package/dist/components/HoverCalendar/types.d.ts +15 -15
- package/dist/components/HoverInput/HoverInput.d.ts +3 -3
- package/dist/components/HoverInput/HoverInputStyled.d.ts +1 -1
- package/dist/components/HoverInput/types.d.ts +5 -5
- package/dist/components/HoverSelect/HoverSelect.d.ts +3 -3
- package/dist/components/HoverSelect/HoverSelectStyled.d.ts +1 -1
- package/dist/components/HoverSelect/types.d.ts +19 -19
- package/dist/components/Icon/Icon.d.ts +15 -15
- package/dist/components/Icon/IconUtils.d.ts +1 -1
- package/dist/components/Icon/index.d.ts +2 -2
- package/dist/components/IconLabel/InfoAccordion/InfoAccordion.d.ts +3 -3
- package/dist/components/IconLabel/InfoAccordion/InfoAccordionStyled.d.ts +1 -1
- package/dist/components/IconLabel/InfoAccordion/types.d.ts +13 -13
- package/dist/components/IconLabel/iconlabel.styled.d.ts +1 -1
- package/dist/components/IconLabel/index.d.ts +3 -3
- package/dist/components/IconLabel/types.d.ts +10 -10
- package/dist/components/InfoAccordion/InfoAccordion.d.ts +3 -3
- package/dist/components/InfoAccordion/InfoAccordionStyled.d.ts +1 -1
- package/dist/components/InfoAccordion/types.d.ts +14 -14
- package/dist/components/Input/index.d.ts +27 -27
- package/dist/components/Input/inputStyled.d.ts +9 -9
- package/dist/components/Input/types.d.ts +53 -53
- package/dist/components/Input/utils.d.ts +4 -4
- package/dist/components/Label/LabelStyled.d.ts +4 -4
- package/dist/components/Label/index.d.ts +2 -2
- package/dist/components/Label/types.d.ts +6 -6
- package/dist/components/Loader/FullScreenLoader.d.ts +3 -3
- package/dist/components/Loader/FullScreenLoaderStyled.d.ts +2 -2
- package/dist/components/Loader/Loader.d.ts +6 -6
- package/dist/components/Loader/Loader.styled.d.ts +4 -4
- package/dist/components/Loader/SimpleLoader.d.ts +7 -7
- package/dist/components/Loader/SimpleLoader.styled.d.ts +2 -2
- package/dist/components/Loader/index.d.ts +4 -4
- package/dist/components/Loader/types.d.ts +4 -4
- package/dist/components/MultiSelect/MultiSelect.d.ts +3 -3
- package/dist/components/MultiSelect/MultiSelectStyled.d.ts +2 -2
- package/dist/components/MultiSelect/types.d.ts +22 -22
- package/dist/components/MultiSelect/utils.d.ts +24 -24
- package/dist/components/Navigation/CollapsibleNavItem/NavItemStyled.d.ts +10 -10
- package/dist/components/Navigation/CollapsibleNavItem/index.d.ts +4 -4
- package/dist/components/Navigation/NavItem/NavItemStyled.d.ts +12 -12
- package/dist/components/Navigation/NavItem/index.d.ts +6 -6
- package/dist/components/Navigation/NavigationStyled.d.ts +8 -8
- package/dist/components/Navigation/data.d.ts +3 -3
- package/dist/components/Navigation/index.d.ts +4 -4
- package/dist/components/Navigation/types.d.ts +36 -36
- package/dist/components/OTPInput/OTPInput.constants.d.ts +10 -10
- package/dist/components/OTPInput/OTPInput.d.ts +3 -3
- package/dist/components/OTPInput/OTPInput.styled.d.ts +18 -18
- package/dist/components/OTPInput/OTPInput.utils.d.ts +9 -9
- package/dist/components/OTPInput/index.d.ts +2 -2
- package/dist/components/Overlay/Overlay.d.ts +9 -9
- package/dist/components/Overlay/index.d.ts +2 -2
- package/dist/components/Pagination/Pagination.components.d.ts +3 -3
- package/dist/components/Pagination/Pagination.d.ts +3 -3
- package/dist/components/Pagination/Pagination.styled.d.ts +13 -13
- package/dist/components/Pagination/Pagination.types.d.ts +48 -48
- package/dist/components/Pagination/Pagination.utils.d.ts +6 -6
- package/dist/components/Pagination/index.d.ts +2 -2
- package/dist/components/Radio/Radio.d.ts +3 -3
- package/dist/components/Radio/RadioStyled.d.ts +8 -8
- package/dist/components/Radio/RadioType.d.ts +19 -19
- package/dist/components/Radio/index.d.ts +2 -2
- package/dist/components/Select/Select.d.ts +4 -4
- package/dist/components/Select/Select.styled.d.ts +9 -8
- package/dist/components/Select/Select.types.d.ts +23 -22
- package/dist/components/Select/Select.utils.d.ts +5 -5
- package/dist/components/Select/index.d.ts +2 -2
- package/dist/components/Selector/Selector.d.ts +3 -3
- package/dist/components/Selector/Selector.styled.d.ts +5 -5
- package/dist/components/Selector/index.d.ts +2 -2
- package/dist/components/Selector/types.d.ts +17 -17
- package/dist/components/Skeleton/Skeleton.styled.d.ts +7 -7
- package/dist/components/Skeleton/index.d.ts +7 -7
- package/dist/components/Slider/Slider.d.ts +15 -15
- package/dist/components/Slider/Slider.styled.d.ts +6 -6
- package/dist/components/Slider/index.d.ts +3 -3
- package/dist/components/Slider/types.d.ts +10 -10
- package/dist/components/Spinner/Spinner.d.ts +5 -5
- package/dist/components/Spinner/Spinner.styled.d.ts +1 -1
- package/dist/components/Spinner/index.d.ts +2 -2
- package/dist/components/StepperDrawerLayout/StepperDrawerLayout.d.ts +3 -3
- package/dist/components/StepperDrawerLayout/StepperDrawerLayout.types.d.ts +8 -8
- package/dist/components/StepperDrawerLayout/StepperDrawerLayout.utils.d.ts +1 -1
- package/dist/components/StepperDrawerLayout/StepperDrawerLayoutStyled.d.ts +5 -5
- package/dist/components/StepperDrawerLayout/index.d.ts +2 -2
- package/dist/components/Switch/Switch.d.ts +3 -3
- package/dist/components/Switch/Switch.styled.d.ts +2 -2
- package/dist/components/Switch/index.d.ts +1 -1
- package/dist/components/Switch/types.d.ts +23 -23
- package/dist/components/Tabs/Tabs.d.ts +3 -3
- package/dist/components/Tabs/TabsStyled.d.ts +14 -14
- package/dist/components/Tabs/TabsTypes.d.ts +22 -22
- package/dist/components/Tabs/TabsUtils.d.ts +2 -2
- package/dist/components/Tabs/index.d.ts +2 -2
- package/dist/components/Tag/Tag.d.ts +3 -3
- package/dist/components/Tag/Tag.styled.d.ts +2 -2
- package/dist/components/Tag/types.d.ts +17 -17
- package/dist/components/Text/TextStyled.d.ts +3 -3
- package/dist/components/Text/index.d.ts +3 -3
- package/dist/components/Text/types.d.ts +19 -19
- package/dist/components/Text/typography.d.ts +19 -19
- package/dist/components/Text/utils.d.ts +4 -4
- package/dist/components/TimePicker/TimePicker.d.ts +2 -0
- package/dist/components/TimePicker/index.d.ts +2 -0
- package/dist/components/TimePicker/timepicker.styled.d.ts +13 -0
- package/dist/components/TimePicker/types.d.ts +22 -0
- package/dist/components/Toast/Toast.d.ts +3 -3
- package/dist/components/Toast/Toast.styled.d.ts +7 -7
- package/dist/components/Toast/Toast.types.d.ts +50 -49
- package/dist/components/Toast/Toast.utils.d.ts +8 -8
- package/dist/components/Toast/ToastContext.d.ts +4 -4
- package/dist/components/Toast/ToastProvider.d.ts +3 -3
- package/dist/components/Toast/index.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.d.ts +3 -3
- package/dist/components/Tooltip/index.d.ts +2 -2
- package/dist/components/Tooltip/tooltip.styled.d.ts +2 -2
- package/dist/components/Tooltip/types.d.ts +34 -34
- package/dist/components/TrendPercentage/TrendPercentage.d.ts +15 -15
- package/dist/components/TrendPercentage/TrendPercentageStyled.d.ts +5 -5
- package/dist/components/TrendPercentage/index.d.ts +2 -2
- package/dist/components/UploadAvatar/UploadAvatar.d.ts +3 -3
- package/dist/components/UploadAvatar/UploadAvatarStyled.d.ts +1 -1
- package/dist/components/UploadAvatar/types.d.ts +9 -9
- package/dist/components/stepper/StepperStyled.d.ts +26 -26
- package/dist/components/stepper/StepperTypes.d.ts +28 -28
- package/dist/components/stepper/StepperUtils.d.ts +10 -10
- package/dist/components/stepper/index.d.ts +3 -3
- package/dist/globals.d.ts +7 -7
- package/dist/hooks/index.d.ts +5 -5
- package/dist/hooks/useDebouncedValue.d.ts +2 -2
- package/dist/hooks/useDynamicImport.d.ts +8 -8
- package/dist/hooks/useFullScreenFeature.d.ts +5 -5
- package/dist/hooks/useOutsideClick.d.ts +6 -6
- package/dist/hooks/useTimeBar.d.ts +29 -29
- package/dist/hooks/useToast.d.ts +11 -10
- package/dist/hooks/useToggle.d.ts +8 -8
- package/dist/index.d.ts +69 -68
- package/dist/index.es.js +225 -139
- package/dist/index.js +224 -138
- package/dist/package.json +89 -89
- package/dist/public/assets/icons/Compare.svg +1 -0
- package/dist/public/assets/icons/Notifications.svg +1 -0
- package/dist/public/assets/icons/Search.svg +1 -0
- package/dist/public/assets/icons/US.svg +1 -1
- package/dist/public/assets/icons/doc-alert.svg +5 -5
- package/dist/public/assets/icons/doc-expired-closed.svg +6 -6
- package/dist/public/assets/icons/no-entry-man.svg +4 -4
- package/dist/public/assets/icons/unsafe.svg +23 -23
- package/dist/themes/colors.d.ts +3 -3
- package/dist/themes/colors.ts +227 -222
- package/dist/themes/index.d.ts +3 -3
- package/dist/themes/types.d.ts +229 -229
- package/dist/types/IconTypes.d.ts +1 -1
- package/dist/utils/formatDate.d.ts +2 -2
- package/dist/utils/index.d.ts +13 -12
- package/dist/utils/index.ts +100 -86
- package/dist/utils/truncate.d.ts +2 -2
- package/package.json +89 -89
- package/themes/colors.ts +227 -222
- package/themes/index.ts +8 -8
- package/themes/types.ts +250 -250
- package/utils/formatDate.ts +13 -13
- package/utils/generateTypesForIcons.js +37 -37
- package/utils/index.ts +100 -86
- package/utils/truncate.ts +7 -7
package/themes/types.ts
CHANGED
|
@@ -1,250 +1,250 @@
|
|
|
1
|
-
export interface Color {
|
|
2
|
-
primary: Primary;
|
|
3
|
-
secondary: Secondary;
|
|
4
|
-
tertiary: Tertiary;
|
|
5
|
-
accent: Accent;
|
|
6
|
-
link: Link;
|
|
7
|
-
error: Error;
|
|
8
|
-
success: Success;
|
|
9
|
-
black: Black;
|
|
10
|
-
white: White;
|
|
11
|
-
grey: Grey;
|
|
12
|
-
warning: Warning;
|
|
13
|
-
disabled: Disabled;
|
|
14
|
-
text: Text;
|
|
15
|
-
input: Input;
|
|
16
|
-
green: Green;
|
|
17
|
-
blue: Blue;
|
|
18
|
-
red: Red;
|
|
19
|
-
orange: Orange;
|
|
20
|
-
yellow: Yellow;
|
|
21
|
-
scrollbar: Scrollbar;
|
|
22
|
-
button: Button;
|
|
23
|
-
transparent: Transparent;
|
|
24
|
-
[key: string]: any;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface Accent {
|
|
28
|
-
accent500: string;
|
|
29
|
-
accent100: string;
|
|
30
|
-
accent75: string;
|
|
31
|
-
accent50: string;
|
|
32
|
-
accent15: string;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface Black {
|
|
36
|
-
blackHigh: string;
|
|
37
|
-
blackMedium: string;
|
|
38
|
-
blackLow: string;
|
|
39
|
-
black: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface Disabled {
|
|
43
|
-
disabledHigh: string;
|
|
44
|
-
disabledMedium: string;
|
|
45
|
-
disabledLow: string;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export interface Error {
|
|
49
|
-
errorHigh: string;
|
|
50
|
-
errorMedium: string;
|
|
51
|
-
errorLow: string;
|
|
52
|
-
errorLow2: string;
|
|
53
|
-
errorLow3: string;
|
|
54
|
-
errorLower: string;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export interface Grey {
|
|
58
|
-
greyHigh: string;
|
|
59
|
-
greyMedium: string;
|
|
60
|
-
greyLow: string;
|
|
61
|
-
grey90: string;
|
|
62
|
-
grey30: string;
|
|
63
|
-
grey50: string;
|
|
64
|
-
grey20: string;
|
|
65
|
-
grey5: string;
|
|
66
|
-
grey10: string;
|
|
67
|
-
grey500: string;
|
|
68
|
-
grey600: string;
|
|
69
|
-
grey700: string;
|
|
70
|
-
grey800: string;
|
|
71
|
-
grey900: string;
|
|
72
|
-
grey400: string;
|
|
73
|
-
grey200: string;
|
|
74
|
-
grey250: string;
|
|
75
|
-
grey300: string;
|
|
76
|
-
grey100: string;
|
|
77
|
-
grey1000: string;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export interface Link {
|
|
81
|
-
linkHigh: string;
|
|
82
|
-
linkMedium: string;
|
|
83
|
-
linkLow: string;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export interface Primary {
|
|
87
|
-
primary100: string;
|
|
88
|
-
primary90: string;
|
|
89
|
-
primary80: string;
|
|
90
|
-
primary70: string;
|
|
91
|
-
primary60: string;
|
|
92
|
-
primary50: string;
|
|
93
|
-
primary40: string;
|
|
94
|
-
primary30: string;
|
|
95
|
-
primary20: string;
|
|
96
|
-
primary10: string;
|
|
97
|
-
primary5: string;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export interface Secondary {
|
|
101
|
-
secondary100: string;
|
|
102
|
-
secondary90: string;
|
|
103
|
-
secondary80: string;
|
|
104
|
-
secondary70: string;
|
|
105
|
-
secondary60: string;
|
|
106
|
-
secondary50: string;
|
|
107
|
-
secondary40: string;
|
|
108
|
-
secondary30: string;
|
|
109
|
-
secondary20: string;
|
|
110
|
-
secondary10: string;
|
|
111
|
-
secondary5: string;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export interface Success {
|
|
115
|
-
successDark: string;
|
|
116
|
-
successMedium: string;
|
|
117
|
-
successLow: string;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export interface Tertiary {
|
|
121
|
-
tertiary100: string;
|
|
122
|
-
tertiary90: string;
|
|
123
|
-
tertiary80: string;
|
|
124
|
-
tertiary70: string;
|
|
125
|
-
tertiary60: string;
|
|
126
|
-
tertiary50: string;
|
|
127
|
-
tertiary40: string;
|
|
128
|
-
tertiary30: string;
|
|
129
|
-
tertiary20: string;
|
|
130
|
-
tertiary10: string;
|
|
131
|
-
tertiary5: string;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
export interface Warning {
|
|
135
|
-
warningHigh: string;
|
|
136
|
-
warningMedium: string;
|
|
137
|
-
warningLow: string;
|
|
138
|
-
warningLower: string;
|
|
139
|
-
warningLower2: string;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export interface White {
|
|
143
|
-
white: string;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export interface Text {
|
|
147
|
-
primary: string;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
export interface Input {
|
|
151
|
-
focused: string;
|
|
152
|
-
focusedShadow: string;
|
|
153
|
-
focusedShadowFilter: string;
|
|
154
|
-
focusedShadowError: string;
|
|
155
|
-
focusedShadowButton: string;
|
|
156
|
-
focusedSecondary: string;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export interface Green {
|
|
160
|
-
green40: string;
|
|
161
|
-
green10: string;
|
|
162
|
-
green8: string;
|
|
163
|
-
green5: string;
|
|
164
|
-
green50: string;
|
|
165
|
-
green100: string;
|
|
166
|
-
green200: string;
|
|
167
|
-
green300: string;
|
|
168
|
-
green400: string;
|
|
169
|
-
green500: string;
|
|
170
|
-
green600: string;
|
|
171
|
-
green700: string;
|
|
172
|
-
green800: string;
|
|
173
|
-
green900: string;
|
|
174
|
-
green1000: string;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
export interface Blue {
|
|
178
|
-
blue5: string;
|
|
179
|
-
blue50: string;
|
|
180
|
-
blue100: string;
|
|
181
|
-
blue200: string;
|
|
182
|
-
blue300: string;
|
|
183
|
-
blue400: string;
|
|
184
|
-
blue500: string;
|
|
185
|
-
blue600: string;
|
|
186
|
-
blue700: string;
|
|
187
|
-
blue800: string;
|
|
188
|
-
blue900: string;
|
|
189
|
-
blue1000: string;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export interface Red {
|
|
193
|
-
red050: string;
|
|
194
|
-
red50: string;
|
|
195
|
-
red100: string;
|
|
196
|
-
red200: string;
|
|
197
|
-
red300: string;
|
|
198
|
-
red400: string;
|
|
199
|
-
red500: string;
|
|
200
|
-
red600: string;
|
|
201
|
-
red700: string;
|
|
202
|
-
red800: string;
|
|
203
|
-
red900: string;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export interface Orange {
|
|
207
|
-
orange050: string;
|
|
208
|
-
orange50: string;
|
|
209
|
-
orange100: string;
|
|
210
|
-
orange200: string;
|
|
211
|
-
orange300: string;
|
|
212
|
-
orange400: string;
|
|
213
|
-
orange500: string;
|
|
214
|
-
orange600: string;
|
|
215
|
-
orange700: string;
|
|
216
|
-
orange800: string;
|
|
217
|
-
orange900: string;
|
|
218
|
-
}
|
|
219
|
-
export interface Yellow {
|
|
220
|
-
yellow50: string;
|
|
221
|
-
yellow100: string;
|
|
222
|
-
yellow200: string;
|
|
223
|
-
yellow300: string;
|
|
224
|
-
yellow400: string;
|
|
225
|
-
yellow500: string;
|
|
226
|
-
yellow600: string;
|
|
227
|
-
yellow700: string;
|
|
228
|
-
yellow800: string;
|
|
229
|
-
yellow900: string;
|
|
230
|
-
yellow1000: string;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
export interface Scrollbar {
|
|
234
|
-
track: string;
|
|
235
|
-
thumb: string;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
export interface Transparent {
|
|
239
|
-
blueHover: string;
|
|
240
|
-
transparent: string;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
export interface Button {
|
|
244
|
-
primaryButton: string;
|
|
245
|
-
primaryOutlineButton: string;
|
|
246
|
-
secondaryButton: string;
|
|
247
|
-
errorButton: string;
|
|
248
|
-
successButton: string;
|
|
249
|
-
filterButton: string;
|
|
250
|
-
}
|
|
1
|
+
export interface Color {
|
|
2
|
+
primary: Primary;
|
|
3
|
+
secondary: Secondary;
|
|
4
|
+
tertiary: Tertiary;
|
|
5
|
+
accent: Accent;
|
|
6
|
+
link: Link;
|
|
7
|
+
error: Error;
|
|
8
|
+
success: Success;
|
|
9
|
+
black: Black;
|
|
10
|
+
white: White;
|
|
11
|
+
grey: Grey;
|
|
12
|
+
warning: Warning;
|
|
13
|
+
disabled: Disabled;
|
|
14
|
+
text: Text;
|
|
15
|
+
input: Input;
|
|
16
|
+
green: Green;
|
|
17
|
+
blue: Blue;
|
|
18
|
+
red: Red;
|
|
19
|
+
orange: Orange;
|
|
20
|
+
yellow: Yellow;
|
|
21
|
+
scrollbar: Scrollbar;
|
|
22
|
+
button: Button;
|
|
23
|
+
transparent: Transparent;
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface Accent {
|
|
28
|
+
accent500: string;
|
|
29
|
+
accent100: string;
|
|
30
|
+
accent75: string;
|
|
31
|
+
accent50: string;
|
|
32
|
+
accent15: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface Black {
|
|
36
|
+
blackHigh: string;
|
|
37
|
+
blackMedium: string;
|
|
38
|
+
blackLow: string;
|
|
39
|
+
black: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface Disabled {
|
|
43
|
+
disabledHigh: string;
|
|
44
|
+
disabledMedium: string;
|
|
45
|
+
disabledLow: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface Error {
|
|
49
|
+
errorHigh: string;
|
|
50
|
+
errorMedium: string;
|
|
51
|
+
errorLow: string;
|
|
52
|
+
errorLow2: string;
|
|
53
|
+
errorLow3: string;
|
|
54
|
+
errorLower: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface Grey {
|
|
58
|
+
greyHigh: string;
|
|
59
|
+
greyMedium: string;
|
|
60
|
+
greyLow: string;
|
|
61
|
+
grey90: string;
|
|
62
|
+
grey30: string;
|
|
63
|
+
grey50: string;
|
|
64
|
+
grey20: string;
|
|
65
|
+
grey5: string;
|
|
66
|
+
grey10: string;
|
|
67
|
+
grey500: string;
|
|
68
|
+
grey600: string;
|
|
69
|
+
grey700: string;
|
|
70
|
+
grey800: string;
|
|
71
|
+
grey900: string;
|
|
72
|
+
grey400: string;
|
|
73
|
+
grey200: string;
|
|
74
|
+
grey250: string;
|
|
75
|
+
grey300: string;
|
|
76
|
+
grey100: string;
|
|
77
|
+
grey1000: string;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface Link {
|
|
81
|
+
linkHigh: string;
|
|
82
|
+
linkMedium: string;
|
|
83
|
+
linkLow: string;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface Primary {
|
|
87
|
+
primary100: string;
|
|
88
|
+
primary90: string;
|
|
89
|
+
primary80: string;
|
|
90
|
+
primary70: string;
|
|
91
|
+
primary60: string;
|
|
92
|
+
primary50: string;
|
|
93
|
+
primary40: string;
|
|
94
|
+
primary30: string;
|
|
95
|
+
primary20: string;
|
|
96
|
+
primary10: string;
|
|
97
|
+
primary5: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export interface Secondary {
|
|
101
|
+
secondary100: string;
|
|
102
|
+
secondary90: string;
|
|
103
|
+
secondary80: string;
|
|
104
|
+
secondary70: string;
|
|
105
|
+
secondary60: string;
|
|
106
|
+
secondary50: string;
|
|
107
|
+
secondary40: string;
|
|
108
|
+
secondary30: string;
|
|
109
|
+
secondary20: string;
|
|
110
|
+
secondary10: string;
|
|
111
|
+
secondary5: string;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export interface Success {
|
|
115
|
+
successDark: string;
|
|
116
|
+
successMedium: string;
|
|
117
|
+
successLow: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface Tertiary {
|
|
121
|
+
tertiary100: string;
|
|
122
|
+
tertiary90: string;
|
|
123
|
+
tertiary80: string;
|
|
124
|
+
tertiary70: string;
|
|
125
|
+
tertiary60: string;
|
|
126
|
+
tertiary50: string;
|
|
127
|
+
tertiary40: string;
|
|
128
|
+
tertiary30: string;
|
|
129
|
+
tertiary20: string;
|
|
130
|
+
tertiary10: string;
|
|
131
|
+
tertiary5: string;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export interface Warning {
|
|
135
|
+
warningHigh: string;
|
|
136
|
+
warningMedium: string;
|
|
137
|
+
warningLow: string;
|
|
138
|
+
warningLower: string;
|
|
139
|
+
warningLower2: string;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export interface White {
|
|
143
|
+
white: string;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export interface Text {
|
|
147
|
+
primary: string;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export interface Input {
|
|
151
|
+
focused: string;
|
|
152
|
+
focusedShadow: string;
|
|
153
|
+
focusedShadowFilter: string;
|
|
154
|
+
focusedShadowError: string;
|
|
155
|
+
focusedShadowButton: string;
|
|
156
|
+
focusedSecondary: string;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export interface Green {
|
|
160
|
+
green40: string;
|
|
161
|
+
green10: string;
|
|
162
|
+
green8: string;
|
|
163
|
+
green5: string;
|
|
164
|
+
green50: string;
|
|
165
|
+
green100: string;
|
|
166
|
+
green200: string;
|
|
167
|
+
green300: string;
|
|
168
|
+
green400: string;
|
|
169
|
+
green500: string;
|
|
170
|
+
green600: string;
|
|
171
|
+
green700: string;
|
|
172
|
+
green800: string;
|
|
173
|
+
green900: string;
|
|
174
|
+
green1000: string;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export interface Blue {
|
|
178
|
+
blue5: string;
|
|
179
|
+
blue50: string;
|
|
180
|
+
blue100: string;
|
|
181
|
+
blue200: string;
|
|
182
|
+
blue300: string;
|
|
183
|
+
blue400: string;
|
|
184
|
+
blue500: string;
|
|
185
|
+
blue600: string;
|
|
186
|
+
blue700: string;
|
|
187
|
+
blue800: string;
|
|
188
|
+
blue900: string;
|
|
189
|
+
blue1000: string;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export interface Red {
|
|
193
|
+
red050: string;
|
|
194
|
+
red50: string;
|
|
195
|
+
red100: string;
|
|
196
|
+
red200: string;
|
|
197
|
+
red300: string;
|
|
198
|
+
red400: string;
|
|
199
|
+
red500: string;
|
|
200
|
+
red600: string;
|
|
201
|
+
red700: string;
|
|
202
|
+
red800: string;
|
|
203
|
+
red900: string;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export interface Orange {
|
|
207
|
+
orange050: string;
|
|
208
|
+
orange50: string;
|
|
209
|
+
orange100: string;
|
|
210
|
+
orange200: string;
|
|
211
|
+
orange300: string;
|
|
212
|
+
orange400: string;
|
|
213
|
+
orange500: string;
|
|
214
|
+
orange600: string;
|
|
215
|
+
orange700: string;
|
|
216
|
+
orange800: string;
|
|
217
|
+
orange900: string;
|
|
218
|
+
}
|
|
219
|
+
export interface Yellow {
|
|
220
|
+
yellow50: string;
|
|
221
|
+
yellow100: string;
|
|
222
|
+
yellow200: string;
|
|
223
|
+
yellow300: string;
|
|
224
|
+
yellow400: string;
|
|
225
|
+
yellow500: string;
|
|
226
|
+
yellow600: string;
|
|
227
|
+
yellow700: string;
|
|
228
|
+
yellow800: string;
|
|
229
|
+
yellow900: string;
|
|
230
|
+
yellow1000: string;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export interface Scrollbar {
|
|
234
|
+
track: string;
|
|
235
|
+
thumb: string;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export interface Transparent {
|
|
239
|
+
blueHover: string;
|
|
240
|
+
transparent: string;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export interface Button {
|
|
244
|
+
primaryButton: string;
|
|
245
|
+
primaryOutlineButton: string;
|
|
246
|
+
secondaryButton: string;
|
|
247
|
+
errorButton: string;
|
|
248
|
+
successButton: string;
|
|
249
|
+
filterButton: string;
|
|
250
|
+
}
|
package/utils/formatDate.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import dayjs from 'dayjs';
|
|
2
|
-
|
|
3
|
-
export const formatDate = (date: string, format: string) => {
|
|
4
|
-
return dayjs(date).format(format);
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
export const checkFormatedDate = (date: string, dateFormat: string) => {
|
|
8
|
-
if (date && dateFormat === 'DD/MM/YYYY' && !dateFormat.includes('-')) {
|
|
9
|
-
const splittedDate = date.split('/');
|
|
10
|
-
return `${splittedDate[2]}-${splittedDate[1]}-${splittedDate[0]}`;
|
|
11
|
-
}
|
|
12
|
-
return date;
|
|
13
|
-
};
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
|
|
3
|
+
export const formatDate = (date: string, format: string) => {
|
|
4
|
+
return dayjs(date).format(format);
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export const checkFormatedDate = (date: string, dateFormat: string) => {
|
|
8
|
+
if (date && dateFormat === 'DD/MM/YYYY' && !dateFormat.includes('-')) {
|
|
9
|
+
const splittedDate = date.split('/');
|
|
10
|
+
return `${splittedDate[2]}-${splittedDate[1]}-${splittedDate[0]}`;
|
|
11
|
+
}
|
|
12
|
+
return date;
|
|
13
|
+
};
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
const { readdir, writeFile } = require('fs/promises');
|
|
2
|
-
const path = require('path');
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* This script generates types the icons.
|
|
6
|
-
* The types are generated from the icons in the icons folder.
|
|
7
|
-
* Provides autocompletion for the Icons component
|
|
8
|
-
* Runs: prebuild
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
async function generateTypesForIcons() {
|
|
12
|
-
try {
|
|
13
|
-
console.log('✨ Hold on, while we automatically generate types for icons');
|
|
14
|
-
console.log('===================================');
|
|
15
|
-
|
|
16
|
-
console.log("📁 Reading the 'icons' folder");
|
|
17
|
-
const files = await readdir(path.join(__dirname, '../public/assets/icons'));
|
|
18
|
-
|
|
19
|
-
console.log('⏳ Generating types for icons');
|
|
20
|
-
const icons = files
|
|
21
|
-
.filter((file) => file.endsWith('.svg'))
|
|
22
|
-
.map((file) => file.replace('.svg', ''));
|
|
23
|
-
|
|
24
|
-
const types = `export type IconName = ${icons.map((icon) => `'${icon}'`).join(' | ')}`;
|
|
25
|
-
|
|
26
|
-
console.log("🖋 Writing the 'IconTypes.ts' file");
|
|
27
|
-
await writeFile(path.join(__dirname, '../types/IconTypes.ts'), types, {
|
|
28
|
-
flag: 'w',
|
|
29
|
-
});
|
|
30
|
-
console.log('✅ Types for icons generated successfully');
|
|
31
|
-
} catch (error) {
|
|
32
|
-
console.log('❌ Oops, something went wrong while generating types for icons');
|
|
33
|
-
console.log(error);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
generateTypesForIcons();
|
|
1
|
+
const { readdir, writeFile } = require('fs/promises');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* This script generates types the icons.
|
|
6
|
+
* The types are generated from the icons in the icons folder.
|
|
7
|
+
* Provides autocompletion for the Icons component
|
|
8
|
+
* Runs: prebuild
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
async function generateTypesForIcons() {
|
|
12
|
+
try {
|
|
13
|
+
console.log('✨ Hold on, while we automatically generate types for icons');
|
|
14
|
+
console.log('===================================');
|
|
15
|
+
|
|
16
|
+
console.log("📁 Reading the 'icons' folder");
|
|
17
|
+
const files = await readdir(path.join(__dirname, '../public/assets/icons'));
|
|
18
|
+
|
|
19
|
+
console.log('⏳ Generating types for icons');
|
|
20
|
+
const icons = files
|
|
21
|
+
.filter((file) => file.endsWith('.svg'))
|
|
22
|
+
.map((file) => file.replace('.svg', ''));
|
|
23
|
+
|
|
24
|
+
const types = `export type IconName = ${icons.map((icon) => `'${icon}'`).join(' | ')}`;
|
|
25
|
+
|
|
26
|
+
console.log("🖋 Writing the 'IconTypes.ts' file");
|
|
27
|
+
await writeFile(path.join(__dirname, '../types/IconTypes.ts'), types, {
|
|
28
|
+
flag: 'w',
|
|
29
|
+
});
|
|
30
|
+
console.log('✅ Types for icons generated successfully');
|
|
31
|
+
} catch (error) {
|
|
32
|
+
console.log('❌ Oops, something went wrong while generating types for icons');
|
|
33
|
+
console.log(error);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
generateTypesForIcons();
|