@rovula/ui 0.0.21 → 0.0.22
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/bundle.css +155 -495
- package/dist/cjs/bundle.js +3 -3
- package/dist/cjs/bundle.js.map +1 -1
- package/dist/cjs/types/components/ActionButton/ActionButton.stories.d.ts +7 -7
- package/dist/cjs/types/components/Button/Button.d.ts +1 -1
- package/dist/cjs/types/components/Button/Button.styles.d.ts +1 -1
- package/dist/cjs/types/components/Button/Buttons.stories.d.ts +13 -13
- package/dist/cjs/types/components/Checkbox/Checkbox.stories.d.ts +60 -60
- package/dist/cjs/types/components/Dropdown/Dropdown.stories.d.ts +64 -64
- package/dist/cjs/types/components/Icon/Icon.d.ts +11 -0
- package/dist/cjs/types/components/Icon/Icon.stories.d.ts +508 -0
- package/dist/cjs/types/components/Icon/Icon.styles.d.ts +4 -0
- package/dist/cjs/types/components/Input/Input.stories.d.ts +115 -115
- package/dist/cjs/types/components/Label/Label.stories.d.ts +51 -51
- package/dist/cjs/types/components/RadioGroup/RadioGroup.stories.d.ts +54 -54
- package/dist/cjs/types/components/Search/Search.stories.d.ts +64 -64
- package/dist/cjs/types/components/Slider/Slider.d.ts +5 -0
- package/dist/cjs/types/components/Slider/Slider.stories.d.ts +303 -0
- package/dist/cjs/types/components/Switch/Switch.d.ts +4 -0
- package/dist/cjs/types/components/Switch/Switch.stories.d.ts +305 -0
- package/dist/cjs/types/components/Table/Table.stories.d.ts +7 -7
- package/dist/cjs/types/components/Tabs/Tabs.d.ts +12 -3
- package/dist/cjs/types/components/Tabs/Tabs.stories.d.ts +18 -0
- package/dist/cjs/types/components/TextInput/TextInput.stories.d.ts +62 -62
- package/dist/cjs/types/components/TextInput/TextInput.styles.d.ts +1 -1
- package/dist/cjs/types/icons/heroIconConfig.d.ts +1 -0
- package/dist/cjs/types/icons/iconConfig.d.ts +2 -0
- package/dist/cjs/types/icons/iconRegistry.d.ts +19 -0
- package/dist/cjs/types/icons/index.d.ts +1 -0
- package/dist/cjs/types/icons/material-icon/outline/ChevronDownIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/outline/CollapseContentIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/outline/ContentCopyIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/outline/ContentPasteIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/outline/DataTableIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/outline/ExpandCircleDownIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/outline/ExpandCircleRightIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/outline/ExpandCircleUpIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/outline/ExpandContentIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/outline/InterestsIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/outline/SaveIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/outline/TableChartIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/outline/index.d.ts +12 -0
- package/dist/cjs/types/icons/material-icon/solid/ChevronDownIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/solid/CollapseContentIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/solid/ContentCopyIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/solid/ContentPasteIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/solid/DataTableIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/solid/ExpandCircleDownIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/solid/ExpandCircleRightIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/solid/ExpandCircleUpIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/solid/ExpandContentIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/solid/InterestsIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/solid/SaveIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/solid/TableChartIcon.d.ts +3 -0
- package/dist/cjs/types/icons/material-icon/solid/index.d.ts +12 -0
- package/dist/cjs/types/icons/materialIconConfig.d.ts +1 -0
- package/dist/cjs/types/icons/type.d.ts +8 -0
- package/dist/cjs/types/icons/utils.d.ts +1 -0
- package/dist/cjs/types/index.d.ts +4 -0
- package/dist/components/ActionButton/ActionButton.js +8 -19
- package/dist/components/ActionButton/ActionButton.stories.js +12 -22
- package/dist/components/ActionButton/ActionButton.styles.js +33 -8
- package/dist/components/AlertDialog/Alert.stories.js +5 -16
- package/dist/components/AlertDialog/AlertDialog.js +27 -38
- package/dist/components/Avatar/Avatar.js +7 -8
- package/dist/components/Avatar/Avatar.stories.js +11 -22
- package/dist/components/Avatar/Avatar.styles.js +1 -1
- package/dist/components/Avatar/AvatarBase.js +9 -20
- package/dist/components/Avatar/AvatarGroup.js +9 -10
- package/dist/components/Avatar/AvatarGroup.stories.js +9 -20
- package/dist/components/Button/Button.js +4 -15
- package/dist/components/Button/Button.styles.js +1 -1
- package/dist/components/Button/Buttons.stories.js +18 -29
- package/dist/components/Calendar/Calendar.js +3 -14
- package/dist/components/Calendar/Calendar.stories.js +6 -17
- package/dist/components/Checkbox/Checkbox.js +3 -14
- package/dist/components/Checkbox/Checkbox.stories.js +12 -23
- package/dist/components/Collapsible/Collapsible.js +14 -17
- package/dist/components/Collapsible/Collapsible.stories.js +9 -20
- package/dist/components/Collapsible/Collapsible.styles.js +4 -4
- package/dist/components/Collapsible/CollapsibleContext.js +9 -10
- package/dist/components/DataTable/DataTable.js +25 -26
- package/dist/components/DataTable/DataTable.stories.js +10 -21
- package/dist/components/DatePicker/DatePicker.js +4 -20
- package/dist/components/DatePicker/DatePicker.stories.js +6 -17
- package/dist/components/Dialog/Dialog.js +22 -33
- package/dist/components/Dialog/Dialog.stories.js +8 -19
- package/dist/components/Dropdown/Dropdown.js +26 -37
- package/dist/components/Dropdown/Dropdown.stories.js +36 -55
- package/dist/components/Dropdown/Dropdown.styles.js +3 -3
- package/dist/components/Form/Form.js +26 -87
- package/dist/components/Form/Text.js +2 -3
- package/dist/components/Form/TextInput.js +2 -3
- package/dist/components/Icon/Icon.js +37 -0
- package/dist/components/Icon/Icon.stories.js +356 -0
- package/dist/components/Icon/Icon.styles.js +25 -0
- package/dist/components/Input/Input.js +9 -20
- package/dist/components/Input/Input.stories.js +6 -17
- package/dist/components/Input/Input.styles.js +1 -1
- package/dist/components/Label/Label.js +3 -14
- package/dist/components/Label/Label.stories.js +5 -16
- package/dist/components/Label/Label.styles.js +1 -1
- package/dist/components/Loading/Loading.js +5 -17
- package/dist/components/Loading/Loading.stories.js +6 -17
- package/dist/components/Navbar/Navbar.js +3 -4
- package/dist/components/Navbar/Navbar.stories.js +8 -19
- package/dist/components/Popover/Popover.js +5 -16
- package/dist/components/Popover/Popover.stories.js +5 -16
- package/dist/components/ProgressBar/ProgressBar.js +8 -9
- package/dist/components/ProgressBar/ProgressBar.stories.js +14 -27
- package/dist/components/RadioGroup/RadioGroup.js +6 -17
- package/dist/components/RadioGroup/RadioGroup.stories.js +9 -20
- package/dist/components/Search/Search.js +2 -13
- package/dist/components/Search/Search.stories.js +10 -21
- package/dist/components/Slider/Slider.js +22 -0
- package/dist/components/Slider/Slider.stories.js +33 -0
- package/dist/components/Switch/Switch.js +22 -0
- package/dist/components/Switch/Switch.stories.js +32 -0
- package/dist/components/Table/Datagrid.js +2 -3
- package/dist/components/Table/Table.js +24 -35
- package/dist/components/Table/Table.stories.js +5 -16
- package/dist/components/Tabs/Tabs.js +56 -9
- package/dist/components/Tabs/Tabs.stories.js +13 -24
- package/dist/components/Text/Text.js +3 -4
- package/dist/components/Text/Text.stories.js +12 -23
- package/dist/components/TextInput/TextInput.js +30 -41
- package/dist/components/TextInput/TextInput.stories.js +17 -28
- package/dist/components/TextInput/TextInput.styles.js +7 -7
- package/dist/components/ThemeToggle.js +3 -3
- package/dist/esm/bundle.css +155 -495
- package/dist/esm/bundle.js +3 -3
- package/dist/esm/bundle.js.map +1 -1
- package/dist/esm/types/components/ActionButton/ActionButton.stories.d.ts +7 -7
- package/dist/esm/types/components/Button/Button.d.ts +1 -1
- package/dist/esm/types/components/Button/Button.styles.d.ts +1 -1
- package/dist/esm/types/components/Button/Buttons.stories.d.ts +13 -13
- package/dist/esm/types/components/Checkbox/Checkbox.stories.d.ts +60 -60
- package/dist/esm/types/components/Dropdown/Dropdown.stories.d.ts +64 -64
- package/dist/esm/types/components/Icon/Icon.d.ts +11 -0
- package/dist/esm/types/components/Icon/Icon.stories.d.ts +508 -0
- package/dist/esm/types/components/Icon/Icon.styles.d.ts +4 -0
- package/dist/esm/types/components/Input/Input.stories.d.ts +115 -115
- package/dist/esm/types/components/Label/Label.stories.d.ts +51 -51
- package/dist/esm/types/components/RadioGroup/RadioGroup.stories.d.ts +54 -54
- package/dist/esm/types/components/Search/Search.stories.d.ts +64 -64
- package/dist/esm/types/components/Slider/Slider.d.ts +5 -0
- package/dist/esm/types/components/Slider/Slider.stories.d.ts +303 -0
- package/dist/esm/types/components/Switch/Switch.d.ts +4 -0
- package/dist/esm/types/components/Switch/Switch.stories.d.ts +305 -0
- package/dist/esm/types/components/Table/Table.stories.d.ts +7 -7
- package/dist/esm/types/components/Tabs/Tabs.d.ts +12 -3
- package/dist/esm/types/components/Tabs/Tabs.stories.d.ts +18 -0
- package/dist/esm/types/components/TextInput/TextInput.stories.d.ts +62 -62
- package/dist/esm/types/components/TextInput/TextInput.styles.d.ts +1 -1
- package/dist/esm/types/icons/heroIconConfig.d.ts +1 -0
- package/dist/esm/types/icons/iconConfig.d.ts +2 -0
- package/dist/esm/types/icons/iconRegistry.d.ts +19 -0
- package/dist/esm/types/icons/index.d.ts +1 -0
- package/dist/esm/types/icons/material-icon/outline/ChevronDownIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/outline/CollapseContentIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/outline/ContentCopyIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/outline/ContentPasteIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/outline/DataTableIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/outline/ExpandCircleDownIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/outline/ExpandCircleRightIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/outline/ExpandCircleUpIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/outline/ExpandContentIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/outline/InterestsIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/outline/SaveIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/outline/TableChartIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/outline/index.d.ts +12 -0
- package/dist/esm/types/icons/material-icon/solid/ChevronDownIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/solid/CollapseContentIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/solid/ContentCopyIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/solid/ContentPasteIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/solid/DataTableIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/solid/ExpandCircleDownIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/solid/ExpandCircleRightIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/solid/ExpandCircleUpIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/solid/ExpandContentIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/solid/InterestsIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/solid/SaveIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/solid/TableChartIcon.d.ts +3 -0
- package/dist/esm/types/icons/material-icon/solid/index.d.ts +12 -0
- package/dist/esm/types/icons/materialIconConfig.d.ts +1 -0
- package/dist/esm/types/icons/type.d.ts +8 -0
- package/dist/esm/types/icons/utils.d.ts +1 -0
- package/dist/esm/types/index.d.ts +4 -0
- package/dist/icons/heroIconConfig.js +13 -0
- package/dist/icons/iconConfig.js +2 -0
- package/dist/icons/iconRegistry.js +47 -0
- package/dist/icons/index.js +1 -0
- package/dist/icons/material-icon/outline/ChevronDownIcon.js +3 -0
- package/dist/icons/material-icon/outline/CollapseContentIcon.js +3 -0
- package/dist/icons/material-icon/outline/ContentCopyIcon.js +3 -0
- package/dist/icons/material-icon/outline/ContentPasteIcon.js +3 -0
- package/dist/icons/material-icon/outline/DataTableIcon.js +3 -0
- package/dist/icons/material-icon/outline/ExpandCircleDownIcon.js +3 -0
- package/dist/icons/material-icon/outline/ExpandCircleRightIcon.js +3 -0
- package/dist/icons/material-icon/outline/ExpandCircleUpIcon.js +3 -0
- package/dist/icons/material-icon/outline/ExpandContentIcon.js +3 -0
- package/dist/icons/material-icon/outline/InterestsIcon.js +3 -0
- package/dist/icons/material-icon/outline/SaveIcon.js +3 -0
- package/dist/icons/material-icon/outline/TableChartIcon.js +3 -0
- package/dist/icons/material-icon/outline/index.js +12 -0
- package/dist/icons/material-icon/solid/ChevronDownIcon.js +3 -0
- package/dist/icons/material-icon/solid/CollapseContentIcon.js +3 -0
- package/dist/icons/material-icon/solid/ContentCopyIcon.js +3 -0
- package/dist/icons/material-icon/solid/ContentPasteIcon.js +3 -0
- package/dist/icons/material-icon/solid/DataTableIcon.js +3 -0
- package/dist/icons/material-icon/solid/ExpandCircleDownIcon.js +3 -0
- package/dist/icons/material-icon/solid/ExpandCircleRightIcon.js +3 -0
- package/dist/icons/material-icon/solid/ExpandCircleUpIcon.js +3 -0
- package/dist/icons/material-icon/solid/ExpandContentIcon.js +3 -0
- package/dist/icons/material-icon/solid/InterestsIcon.js +3 -0
- package/dist/icons/material-icon/solid/SaveIcon.js +3 -0
- package/dist/icons/material-icon/solid/TableChartIcon.js +3 -0
- package/dist/icons/material-icon/solid/index.js +12 -0
- package/dist/icons/materialIconConfig.js +13 -0
- package/dist/icons/type.js +1 -0
- package/dist/icons/utils.js +6 -0
- package/dist/index.d.ts +30 -4
- package/dist/index.js +4 -0
- package/dist/src/theme/global.css +187 -619
- package/dist/stories/ColorGroupPreview.js +6 -9
- package/dist/stories/ColorPreview.js +1 -2
- package/dist/theme/presets/colors.js +2 -1
- package/dist/utils/cn.js +1 -5
- package/dist/utils/datetime.js +12 -12
- package/package.json +3 -1
- package/src/components/ActionButton/ActionButton.stories.tsx +32 -13
- package/src/components/ActionButton/ActionButton.styles.ts +33 -8
- package/src/components/DataTable/DataTable.tsx +2 -2
- package/src/components/Icon/Icon.stories.tsx +450 -0
- package/src/components/Icon/Icon.styles.ts +26 -0
- package/src/components/Icon/Icon.tsx +67 -0
- package/src/components/Slider/Slider.stories.tsx +47 -0
- package/src/components/Slider/Slider.tsx +32 -0
- package/src/components/Switch/Switch.stories.tsx +46 -0
- package/src/components/Switch/Switch.tsx +32 -0
- package/src/components/Table/Table.tsx +2 -2
- package/src/components/Tabs/Tabs.tsx +99 -12
- package/src/icons/heroIconConfig.ts +23 -0
- package/src/icons/iconConfig.ts +2 -0
- package/src/icons/iconRegistry.ts +76 -0
- package/src/icons/index.ts +1 -0
- package/src/icons/material-icon/outline/ChevronDownIcon.tsx +22 -0
- package/src/icons/material-icon/outline/CollapseContentIcon.tsx +20 -0
- package/src/icons/material-icon/outline/ContentCopyIcon.tsx +20 -0
- package/src/icons/material-icon/outline/ContentPasteIcon.tsx +20 -0
- package/src/icons/material-icon/outline/DataTableIcon.tsx +20 -0
- package/src/icons/material-icon/outline/ExpandCircleDownIcon.tsx +20 -0
- package/src/icons/material-icon/outline/ExpandCircleRightIcon.tsx +20 -0
- package/src/icons/material-icon/outline/ExpandCircleUpIcon.tsx +20 -0
- package/src/icons/material-icon/outline/ExpandContentIcon.tsx +20 -0
- package/src/icons/material-icon/outline/InterestsIcon.tsx +20 -0
- package/src/icons/material-icon/outline/SaveIcon.tsx +20 -0
- package/src/icons/material-icon/outline/TableChartIcon.tsx +20 -0
- package/src/icons/material-icon/outline/index.ts +12 -0
- package/src/icons/material-icon/solid/ChevronDownIcon.tsx +22 -0
- package/src/icons/material-icon/solid/CollapseContentIcon.tsx +20 -0
- package/src/icons/material-icon/solid/ContentCopyIcon.tsx +20 -0
- package/src/icons/material-icon/solid/ContentPasteIcon.tsx +20 -0
- package/src/icons/material-icon/solid/DataTableIcon.tsx +20 -0
- package/src/icons/material-icon/solid/ExpandCircleDownIcon.tsx +20 -0
- package/src/icons/material-icon/solid/ExpandCircleRightIcon.tsx +20 -0
- package/src/icons/material-icon/solid/ExpandCircleUpIcon.tsx +20 -0
- package/src/icons/material-icon/solid/ExpandContentIcon.tsx +20 -0
- package/src/icons/material-icon/solid/InterestsIcon.tsx +20 -0
- package/src/icons/material-icon/solid/SaveIcon.tsx +20 -0
- package/src/icons/material-icon/solid/TableChartIcon.tsx +20 -0
- package/src/icons/material-icon/solid/index.ts +12 -0
- package/src/icons/materialIconConfig.tsx +23 -0
- package/src/icons/type.ts +11 -0
- package/src/icons/utils.ts +6 -0
- package/src/index.ts +5 -0
- package/src/theme/presets/colors.js +2 -1
- package/dist/cjs/types/components/ActionButton/ActionButton.styles copy.d.ts +0 -6
- package/dist/cjs/types/components/Button/Button.styles copy.d.ts +0 -7
- package/dist/components/ActionButton/ActionButton.styles copy.js +0 -90
- package/dist/components/Button/Button.styles copy.js +0 -210
- package/dist/esm/types/components/ActionButton/ActionButton.styles copy.d.ts +0 -6
- package/dist/esm/types/components/Button/Button.styles copy.d.ts +0 -7
- package/src/_theme/global copy.css +0 -761
- package/src/_theme/global.css +0 -39
- package/src/_theme/main-preset.js +0 -239
- package/src/_theme/plugins/utilities/typography.js +0 -81
- package/src/_theme/presets/colors copy 2.js +0 -319
- package/src/_theme/presets/colors copy.js +0 -229
- package/src/_theme/presets/colors.js +0 -94
- package/src/_theme/theme.d.ts +0 -69
- package/src/_theme/variables/base/button.css +0 -334
- package/src/_theme/variables/base/components copy.css +0 -19
- package/src/_theme/variables/default/colors.css +0 -292
- package/src/_theme/variables/default/typography.css +0 -178
- package/src/_theme/variables/xspector/colors.css +0 -468
- package/src/_theme/variables/xspector/typography.css +0 -178
- package/src/components/ActionButton/ActionButton.styles copy.ts +0 -95
- package/src/components/Button/Button.styles copy.ts +0 -214
|
@@ -30,7 +30,7 @@ declare const meta: {
|
|
|
30
30
|
style?: React.CSSProperties | undefined;
|
|
31
31
|
tabIndex?: number | undefined;
|
|
32
32
|
title?: string | undefined;
|
|
33
|
-
translate?: "
|
|
33
|
+
translate?: "no" | "yes" | undefined;
|
|
34
34
|
radioGroup?: string | undefined;
|
|
35
35
|
role?: React.AriaRole | undefined;
|
|
36
36
|
about?: string | undefined;
|
|
@@ -56,11 +56,11 @@ declare const meta: {
|
|
|
56
56
|
results?: number | undefined;
|
|
57
57
|
security?: string | undefined;
|
|
58
58
|
unselectable?: "off" | "on" | undefined;
|
|
59
|
-
inputMode?: "
|
|
59
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
60
60
|
is?: string | undefined;
|
|
61
61
|
"aria-activedescendant"?: string | undefined;
|
|
62
62
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
63
|
-
"aria-autocomplete"?: "
|
|
63
|
+
"aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
|
|
64
64
|
"aria-braillelabel"?: string | undefined;
|
|
65
65
|
"aria-brailleroledescription"?: string | undefined;
|
|
66
66
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
@@ -70,7 +70,7 @@ declare const meta: {
|
|
|
70
70
|
"aria-colindextext"?: string | undefined;
|
|
71
71
|
"aria-colspan"?: number | undefined;
|
|
72
72
|
"aria-controls"?: string | undefined;
|
|
73
|
-
"aria-current"?: boolean | "true" | "false" | "
|
|
73
|
+
"aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
74
74
|
"aria-describedby"?: string | undefined;
|
|
75
75
|
"aria-description"?: string | undefined;
|
|
76
76
|
"aria-details"?: string | undefined;
|
|
@@ -80,14 +80,14 @@ declare const meta: {
|
|
|
80
80
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
81
81
|
"aria-flowto"?: string | undefined;
|
|
82
82
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
83
|
-
"aria-haspopup"?: boolean | "
|
|
83
|
+
"aria-haspopup"?: boolean | "dialog" | "grid" | "listbox" | "menu" | "tree" | "true" | "false" | undefined;
|
|
84
84
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
85
85
|
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
86
86
|
"aria-keyshortcuts"?: string | undefined;
|
|
87
87
|
"aria-label"?: string | undefined;
|
|
88
88
|
"aria-labelledby"?: string | undefined;
|
|
89
89
|
"aria-level"?: number | undefined;
|
|
90
|
-
"aria-live"?: "
|
|
90
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
91
91
|
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
92
92
|
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
93
93
|
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
@@ -97,7 +97,7 @@ declare const meta: {
|
|
|
97
97
|
"aria-posinset"?: number | undefined;
|
|
98
98
|
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
99
99
|
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
100
|
-
"aria-relevant"?: "
|
|
100
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
101
101
|
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
102
102
|
"aria-roledescription"?: string | undefined;
|
|
103
103
|
"aria-rowcount"?: number | undefined;
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
type Tab = {
|
|
3
3
|
label: string;
|
|
4
|
-
startTabContent?: ReactElement;
|
|
5
|
-
endTabContent?: ReactElement;
|
|
4
|
+
startTabContent?: React.ReactElement;
|
|
5
|
+
endTabContent?: React.ReactElement;
|
|
6
6
|
content: React.ReactNode;
|
|
7
7
|
};
|
|
8
8
|
type TabsProps = {
|
|
9
9
|
tabs: Tab[];
|
|
10
10
|
initialTab?: number;
|
|
11
|
+
tabBarSize?: number;
|
|
12
|
+
tabMode?: "start" | "justify";
|
|
13
|
+
enableBorderLine?: boolean;
|
|
14
|
+
className?: string;
|
|
15
|
+
tabBarClassName?: string;
|
|
16
|
+
tabButtonClassName?: string;
|
|
17
|
+
tabButtonActiveClassName?: string;
|
|
18
|
+
tabContentClassName?: string;
|
|
19
|
+
borderSliderClassname?: string;
|
|
11
20
|
};
|
|
12
21
|
declare const Tabs: React.FC<TabsProps>;
|
|
13
22
|
export default Tabs;
|
|
@@ -9,6 +9,15 @@ declare const meta: {
|
|
|
9
9
|
content: React.ReactNode;
|
|
10
10
|
}[];
|
|
11
11
|
initialTab?: number | undefined;
|
|
12
|
+
tabBarSize?: number | undefined;
|
|
13
|
+
tabMode?: "start" | "justify" | undefined;
|
|
14
|
+
enableBorderLine?: boolean | undefined;
|
|
15
|
+
className?: string | undefined;
|
|
16
|
+
tabBarClassName?: string | undefined;
|
|
17
|
+
tabButtonClassName?: string | undefined;
|
|
18
|
+
tabButtonActiveClassName?: string | undefined;
|
|
19
|
+
tabContentClassName?: string | undefined;
|
|
20
|
+
borderSliderClassname?: string | undefined;
|
|
12
21
|
}>;
|
|
13
22
|
tags: string[];
|
|
14
23
|
parameters: {
|
|
@@ -22,6 +31,15 @@ declare const meta: {
|
|
|
22
31
|
content: React.ReactNode;
|
|
23
32
|
}[];
|
|
24
33
|
initialTab?: number | undefined;
|
|
34
|
+
tabBarSize?: number | undefined;
|
|
35
|
+
tabMode?: "start" | "justify" | undefined;
|
|
36
|
+
enableBorderLine?: boolean | undefined;
|
|
37
|
+
className?: string | undefined;
|
|
38
|
+
tabBarClassName?: string | undefined;
|
|
39
|
+
tabButtonClassName?: string | undefined;
|
|
40
|
+
tabButtonActiveClassName?: string | undefined;
|
|
41
|
+
tabContentClassName?: string | undefined;
|
|
42
|
+
borderSliderClassname?: string | undefined;
|
|
25
43
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
26
44
|
};
|
|
27
45
|
export default meta;
|
|
@@ -44,65 +44,20 @@ declare const meta: {
|
|
|
44
44
|
endIcon?: React.ReactNode;
|
|
45
45
|
className?: string | undefined;
|
|
46
46
|
labelClassName?: string | undefined;
|
|
47
|
-
color?: string | undefined;
|
|
48
|
-
form?: string | undefined;
|
|
49
|
-
list?: string | undefined;
|
|
50
|
-
title?: string | undefined;
|
|
51
|
-
children?: React.ReactNode;
|
|
52
|
-
formAction?: string | undefined;
|
|
53
|
-
formEncType?: string | undefined;
|
|
54
|
-
formMethod?: string | undefined;
|
|
55
|
-
formNoValidate?: boolean | undefined;
|
|
56
|
-
formTarget?: string | undefined;
|
|
57
|
-
name?: string | undefined;
|
|
58
|
-
value?: string | number | readonly string[] | undefined;
|
|
59
|
-
defaultChecked?: boolean | undefined;
|
|
60
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
61
|
-
suppressContentEditableWarning?: boolean | undefined;
|
|
62
47
|
suppressHydrationWarning?: boolean | undefined;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
66
|
-
contextMenu?: string | undefined;
|
|
67
|
-
dir?: string | undefined;
|
|
68
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
69
|
-
hidden?: boolean | undefined;
|
|
48
|
+
color?: string | undefined;
|
|
49
|
+
height?: string | number | undefined;
|
|
70
50
|
lang?: string | undefined;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
51
|
+
max?: string | number | undefined;
|
|
52
|
+
min?: string | number | undefined;
|
|
53
|
+
name?: string | undefined;
|
|
74
54
|
style?: React.CSSProperties | undefined;
|
|
75
|
-
|
|
76
|
-
translate?: "yes" | "no" | undefined;
|
|
77
|
-
radioGroup?: string | undefined;
|
|
55
|
+
width?: string | number | undefined;
|
|
78
56
|
role?: React.AriaRole | undefined;
|
|
79
|
-
|
|
80
|
-
content?: string | undefined;
|
|
81
|
-
datatype?: string | undefined;
|
|
82
|
-
inlist?: any;
|
|
83
|
-
prefix?: string | undefined;
|
|
84
|
-
property?: string | undefined;
|
|
85
|
-
rel?: string | undefined;
|
|
86
|
-
resource?: string | undefined;
|
|
87
|
-
rev?: string | undefined;
|
|
88
|
-
typeof?: string | undefined;
|
|
89
|
-
vocab?: string | undefined;
|
|
90
|
-
autoCapitalize?: string | undefined;
|
|
91
|
-
autoCorrect?: string | undefined;
|
|
92
|
-
autoSave?: string | undefined;
|
|
93
|
-
itemProp?: string | undefined;
|
|
94
|
-
itemScope?: boolean | undefined;
|
|
95
|
-
itemType?: string | undefined;
|
|
96
|
-
itemID?: string | undefined;
|
|
97
|
-
itemRef?: string | undefined;
|
|
98
|
-
results?: number | undefined;
|
|
99
|
-
security?: string | undefined;
|
|
100
|
-
unselectable?: "off" | "on" | undefined;
|
|
101
|
-
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
102
|
-
is?: string | undefined;
|
|
57
|
+
tabIndex?: number | undefined;
|
|
103
58
|
"aria-activedescendant"?: string | undefined;
|
|
104
59
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
105
|
-
"aria-autocomplete"?: "
|
|
60
|
+
"aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
|
|
106
61
|
"aria-braillelabel"?: string | undefined;
|
|
107
62
|
"aria-brailleroledescription"?: string | undefined;
|
|
108
63
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
@@ -112,7 +67,7 @@ declare const meta: {
|
|
|
112
67
|
"aria-colindextext"?: string | undefined;
|
|
113
68
|
"aria-colspan"?: number | undefined;
|
|
114
69
|
"aria-controls"?: string | undefined;
|
|
115
|
-
"aria-current"?: boolean | "true" | "false" | "
|
|
70
|
+
"aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
116
71
|
"aria-describedby"?: string | undefined;
|
|
117
72
|
"aria-description"?: string | undefined;
|
|
118
73
|
"aria-details"?: string | undefined;
|
|
@@ -122,14 +77,14 @@ declare const meta: {
|
|
|
122
77
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
123
78
|
"aria-flowto"?: string | undefined;
|
|
124
79
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
125
|
-
"aria-haspopup"?: boolean | "
|
|
80
|
+
"aria-haspopup"?: boolean | "dialog" | "grid" | "listbox" | "menu" | "tree" | "true" | "false" | undefined;
|
|
126
81
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
127
82
|
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
128
83
|
"aria-keyshortcuts"?: string | undefined;
|
|
129
84
|
"aria-label"?: string | undefined;
|
|
130
85
|
"aria-labelledby"?: string | undefined;
|
|
131
86
|
"aria-level"?: number | undefined;
|
|
132
|
-
"aria-live"?: "
|
|
87
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
133
88
|
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
134
89
|
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
135
90
|
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
@@ -139,7 +94,7 @@ declare const meta: {
|
|
|
139
94
|
"aria-posinset"?: number | undefined;
|
|
140
95
|
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
141
96
|
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
142
|
-
"aria-relevant"?: "
|
|
97
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
143
98
|
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
144
99
|
"aria-roledescription"?: string | undefined;
|
|
145
100
|
"aria-rowcount"?: number | undefined;
|
|
@@ -153,6 +108,7 @@ declare const meta: {
|
|
|
153
108
|
"aria-valuemin"?: number | undefined;
|
|
154
109
|
"aria-valuenow"?: number | undefined;
|
|
155
110
|
"aria-valuetext"?: string | undefined;
|
|
111
|
+
children?: React.ReactNode;
|
|
156
112
|
dangerouslySetInnerHTML?: {
|
|
157
113
|
__html: string | TrustedHTML;
|
|
158
114
|
} | undefined;
|
|
@@ -316,24 +272,68 @@ declare const meta: {
|
|
|
316
272
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLInputElement> | undefined;
|
|
317
273
|
onTransitionEnd?: React.TransitionEventHandler<HTMLInputElement> | undefined;
|
|
318
274
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLInputElement> | undefined;
|
|
275
|
+
form?: string | undefined;
|
|
276
|
+
list?: string | undefined;
|
|
277
|
+
step?: string | number | undefined;
|
|
278
|
+
title?: string | undefined;
|
|
279
|
+
formAction?: string | undefined;
|
|
280
|
+
formEncType?: string | undefined;
|
|
281
|
+
formMethod?: string | undefined;
|
|
282
|
+
formNoValidate?: boolean | undefined;
|
|
283
|
+
formTarget?: string | undefined;
|
|
284
|
+
value?: string | number | readonly string[] | undefined;
|
|
285
|
+
defaultChecked?: boolean | undefined;
|
|
286
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
287
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
288
|
+
accessKey?: string | undefined;
|
|
289
|
+
autoFocus?: boolean | undefined;
|
|
290
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
291
|
+
contextMenu?: string | undefined;
|
|
292
|
+
dir?: string | undefined;
|
|
293
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
294
|
+
hidden?: boolean | undefined;
|
|
295
|
+
nonce?: string | undefined;
|
|
296
|
+
slot?: string | undefined;
|
|
297
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
298
|
+
translate?: "no" | "yes" | undefined;
|
|
299
|
+
radioGroup?: string | undefined;
|
|
300
|
+
about?: string | undefined;
|
|
301
|
+
content?: string | undefined;
|
|
302
|
+
datatype?: string | undefined;
|
|
303
|
+
inlist?: any;
|
|
304
|
+
prefix?: string | undefined;
|
|
305
|
+
property?: string | undefined;
|
|
306
|
+
rel?: string | undefined;
|
|
307
|
+
resource?: string | undefined;
|
|
308
|
+
rev?: string | undefined;
|
|
309
|
+
typeof?: string | undefined;
|
|
310
|
+
vocab?: string | undefined;
|
|
311
|
+
autoCapitalize?: string | undefined;
|
|
312
|
+
autoCorrect?: string | undefined;
|
|
313
|
+
autoSave?: string | undefined;
|
|
314
|
+
itemProp?: string | undefined;
|
|
315
|
+
itemScope?: boolean | undefined;
|
|
316
|
+
itemType?: string | undefined;
|
|
317
|
+
itemID?: string | undefined;
|
|
318
|
+
itemRef?: string | undefined;
|
|
319
|
+
results?: number | undefined;
|
|
320
|
+
security?: string | undefined;
|
|
321
|
+
unselectable?: "off" | "on" | undefined;
|
|
322
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
323
|
+
is?: string | undefined;
|
|
319
324
|
accept?: string | undefined;
|
|
320
325
|
alt?: string | undefined;
|
|
321
326
|
autoComplete?: React.HTMLInputAutoCompleteAttribute | undefined;
|
|
322
327
|
capture?: boolean | "user" | "environment" | undefined;
|
|
323
328
|
checked?: boolean | undefined;
|
|
324
329
|
enterKeyHint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined;
|
|
325
|
-
height?: string | number | undefined;
|
|
326
|
-
max?: string | number | undefined;
|
|
327
330
|
maxLength?: number | undefined;
|
|
328
|
-
min?: string | number | undefined;
|
|
329
331
|
minLength?: number | undefined;
|
|
330
332
|
multiple?: boolean | undefined;
|
|
331
333
|
pattern?: string | undefined;
|
|
332
334
|
placeholder?: string | undefined;
|
|
333
335
|
readOnly?: boolean | undefined;
|
|
334
336
|
src?: string | undefined;
|
|
335
|
-
step?: string | number | undefined;
|
|
336
|
-
width?: string | number | undefined;
|
|
337
337
|
ref?: React.LegacyRef<HTMLInputElement> | undefined;
|
|
338
338
|
key?: React.Key | null | undefined;
|
|
339
339
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
@@ -34,5 +34,5 @@ export declare const sectionIconWrapperVariant: (props?: ({
|
|
|
34
34
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
35
35
|
rounded?: "none" | "normal" | "full" | null | undefined;
|
|
36
36
|
error?: boolean | null | undefined;
|
|
37
|
-
position?: "
|
|
37
|
+
position?: "end" | "start" | null | undefined;
|
|
38
38
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IconRegistryMap, IconVariant, IconComponent } from "./type";
|
|
2
|
+
export interface IconRegistry {
|
|
3
|
+
[setName: string]: IconRegistryMap;
|
|
4
|
+
}
|
|
5
|
+
export declare const iconRegistry: IconRegistry;
|
|
6
|
+
/**
|
|
7
|
+
* Register an icon set with dynamic or direct imports.
|
|
8
|
+
* @param setName - The name of the icon set.
|
|
9
|
+
* @param icons - A record of icon names to their respective import paths with variants.
|
|
10
|
+
*/
|
|
11
|
+
export declare const registerIconSet: (setName: string, icons: IconRegistryMap) => Promise<void>;
|
|
12
|
+
/**
|
|
13
|
+
* Retrieve an icon component by set name, icon name, and variant.
|
|
14
|
+
* @param setName - The name of the icon set.
|
|
15
|
+
* @param iconName - The name of the icon.
|
|
16
|
+
* @param variant - The variant of the icon (solid or outline).
|
|
17
|
+
* @returns The icon component if found, otherwise undefined.
|
|
18
|
+
*/
|
|
19
|
+
export declare const getIcon: (setName: string, iconName: string, variant: IconVariant) => IconComponent | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./iconRegistry";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { default as SaveIcon } from "./SaveIcon";
|
|
2
|
+
export { default as DataTableIcon } from "./DataTableIcon";
|
|
3
|
+
export { default as TableChartIcon } from "./TableChartIcon";
|
|
4
|
+
export { default as InterestsIcon } from "./InterestsIcon";
|
|
5
|
+
export { default as CollapseContentIcon } from "./CollapseContentIcon";
|
|
6
|
+
export { default as ExpandContentIcon } from "./ExpandContentIcon";
|
|
7
|
+
export { default as ExpandCircleRightIcon } from "./ExpandCircleRightIcon";
|
|
8
|
+
export { default as ExpandCircleDownIcon } from "./ExpandCircleDownIcon";
|
|
9
|
+
export { default as ExpandCircleUpIcon } from "./ExpandCircleUpIcon";
|
|
10
|
+
export { default as ContentCopyIcon } from "./ContentCopyIcon";
|
|
11
|
+
export { default as ContentPasteIcon } from "./ContentPasteIcon";
|
|
12
|
+
export { default as ChevronDownIcon } from "./ChevronDownIcon";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { default as SaveIcon } from "./SaveIcon";
|
|
2
|
+
export { default as DataTableIcon } from "./DataTableIcon";
|
|
3
|
+
export { default as TableChartIcon } from "./TableChartIcon";
|
|
4
|
+
export { default as InterestsIcon } from "./InterestsIcon";
|
|
5
|
+
export { default as CollapseContentIcon } from "./CollapseContentIcon";
|
|
6
|
+
export { default as ExpandContentIcon } from "./ExpandContentIcon";
|
|
7
|
+
export { default as ExpandCircleRightIcon } from "./ExpandCircleRightIcon";
|
|
8
|
+
export { default as ExpandCircleDownIcon } from "./ExpandCircleDownIcon";
|
|
9
|
+
export { default as ExpandCircleUpIcon } from "./ExpandCircleUpIcon";
|
|
10
|
+
export { default as ContentCopyIcon } from "./ContentCopyIcon";
|
|
11
|
+
export { default as ContentPasteIcon } from "./ContentPasteIcon";
|
|
12
|
+
export { default as ChevronDownIcon } from "./ChevronDownIcon";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type IconComponent = React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
3
|
+
export type IconVariant = "solid" | "outline";
|
|
4
|
+
export type IconVariantsMap = {
|
|
5
|
+
[K in IconVariant]?: IconComponent;
|
|
6
|
+
};
|
|
7
|
+
export type IconRegistryMap = Record<string, IconVariantsMap>;
|
|
8
|
+
export type IconSet = Record<string, IconComponent>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getIconKeyByNaming(camelCaseStr: string): string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import "./theme/global.css";
|
|
2
|
+
import "./icons/iconConfig";
|
|
2
3
|
export { default as Button } from "./components/Button/Button";
|
|
3
4
|
export { default as TextInput } from "./components/TextInput/TextInput";
|
|
4
5
|
export { default as Text } from "./components/Text/Text";
|
|
@@ -16,11 +17,14 @@ export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
|
16
17
|
export { Popover, PopoverTrigger, PopoverContent, } from "./components/Popover/Popover";
|
|
17
18
|
export { default as Loading } from "./components/Loading/Loading";
|
|
18
19
|
export { default as ProgressBar } from "./components/ProgressBar/ProgressBar";
|
|
20
|
+
export { default as Icon } from "./components/Icon/Icon";
|
|
19
21
|
export * from "./components/Table/Table";
|
|
20
22
|
export * from "./components/DataTable/DataTable";
|
|
21
23
|
export * from "./components/Dialog/Dialog";
|
|
22
24
|
export * from "./components/AlertDialog/AlertDialog";
|
|
23
25
|
export * from "./components/Search/Search";
|
|
26
|
+
export * from "./components/Slider/Slider";
|
|
27
|
+
export * from "./components/Switch/Switch";
|
|
24
28
|
export type { ButtonProps } from "./components/Button/Button";
|
|
25
29
|
export type { InputProps } from "./components/TextInput/TextInput";
|
|
26
30
|
export type { DropdownProps, Options } from "./components/Dropdown/Dropdown";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as HeroIconSolid from "@heroicons/react/16/solid";
|
|
2
|
+
import * as HeroIconOutline from "@heroicons/react/24/outline";
|
|
3
|
+
import { registerIconSet } from "./iconRegistry";
|
|
4
|
+
import { getIconKeyByNaming } from "./utils";
|
|
5
|
+
const heroiconIcons = Object.keys(HeroIconSolid).reduce((prev, key) => {
|
|
6
|
+
var _a, _b;
|
|
7
|
+
const iconKey = getIconKeyByNaming(key);
|
|
8
|
+
return Object.assign(Object.assign({}, prev), { [iconKey]: {
|
|
9
|
+
solid: (_a = HeroIconSolid[key]) !== null && _a !== void 0 ? _a : null,
|
|
10
|
+
outline: (_b = HeroIconOutline[key]) !== null && _b !== void 0 ? _b : null,
|
|
11
|
+
} });
|
|
12
|
+
}, {});
|
|
13
|
+
registerIconSet("heroicons", heroiconIcons);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// The global icon registry object
|
|
2
|
+
export const iconRegistry = {};
|
|
3
|
+
/**
|
|
4
|
+
* Register an icon set with dynamic or direct imports.
|
|
5
|
+
* @param setName - The name of the icon set.
|
|
6
|
+
* @param icons - A record of icon names to their respective import paths with variants.
|
|
7
|
+
*/
|
|
8
|
+
export const registerIconSet = async (setName, icons) => {
|
|
9
|
+
const loadedIcons = {};
|
|
10
|
+
for (const [iconName, variants] of Object.entries(icons)) {
|
|
11
|
+
const loadedVariants = {};
|
|
12
|
+
for (const [variant, importFn] of Object.entries(variants)) {
|
|
13
|
+
if (importFn) {
|
|
14
|
+
try {
|
|
15
|
+
let IconComponent;
|
|
16
|
+
// TODO: support dynamic import.
|
|
17
|
+
// if (typeof importFn === "function") {
|
|
18
|
+
// const module = await (
|
|
19
|
+
// importFn as () => Promise<{ default: IconComponent }>
|
|
20
|
+
// )();
|
|
21
|
+
// IconComponent = module.default;
|
|
22
|
+
// } else {
|
|
23
|
+
// IconComponent = importFn as IconComponent;
|
|
24
|
+
// }
|
|
25
|
+
IconComponent = importFn;
|
|
26
|
+
loadedVariants[variant] = IconComponent;
|
|
27
|
+
}
|
|
28
|
+
catch (error) {
|
|
29
|
+
console.warn(`Failed to load ${variant} icon "${iconName}" in set "${setName}":`, error);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
loadedIcons[iconName] = loadedVariants;
|
|
34
|
+
}
|
|
35
|
+
iconRegistry[setName] = Object.assign(Object.assign({}, iconRegistry[setName]), loadedIcons);
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Retrieve an icon component by set name, icon name, and variant.
|
|
39
|
+
* @param setName - The name of the icon set.
|
|
40
|
+
* @param iconName - The name of the icon.
|
|
41
|
+
* @param variant - The variant of the icon (solid or outline).
|
|
42
|
+
* @returns The icon component if found, otherwise undefined.
|
|
43
|
+
*/
|
|
44
|
+
export const getIcon = (setName, iconName, variant) => {
|
|
45
|
+
var _a, _b;
|
|
46
|
+
return (_b = (_a = iconRegistry[setName]) === null || _a === void 0 ? void 0 : _a[iconName]) === null || _b === void 0 ? void 0 : _b[variant];
|
|
47
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./iconRegistry";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
const ChevronDownIcon = (props) => (_jsx("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 18 18", fill: "none" }, props, { children: _jsx("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.747 6.997a.844.844 0 0 1 1.193 0L9 10.057l3.06-3.06a.844.844 0 0 1 1.193 1.193l-3.656 3.657a.844.844 0 0 1-1.194 0L4.747 8.19a.844.844 0 0 1 0-1.193Z", clipRule: "evenodd" }) })));
|
|
3
|
+
export default ChevronDownIcon;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
const CollapseContentIcon = (props) => (_jsx("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none" }, props, { children: _jsx("path", { fill: "currentColor", d: "M8.923 15.077h-4a.892.892 0 0 1-.657-.266.893.893 0 0 1-.266-.658c0-.261.089-.48.266-.657a.893.893 0 0 1 .657-.265h4.734c.315 0 .58.106.793.32.213.213.32.477.32.792v4.734c0 .261-.09.48-.266.657a.893.893 0 0 1-.658.266.892.892 0 0 1-.658-.265.893.893 0 0 1-.265-.658v-4Zm6.154-6.154h4c.261 0 .48.089.657.266a.893.893 0 0 1 .266.657c0 .262-.088.481-.265.658a.893.893 0 0 1-.658.265h-4.734c-.315 0-.58-.106-.793-.32a1.077 1.077 0 0 1-.32-.792V4.923c0-.261.09-.48.266-.657A.893.893 0 0 1 14.154 4c.262 0 .481.089.658.266a.893.893 0 0 1 .265.657v4Z" }) })));
|
|
3
|
+
export default CollapseContentIcon;
|