@chotot/clad-ui 3.0.0-next.3 โ 3.0.0-next.4
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/CHANGELOG.md +675 -0
- package/README.md +156 -156
- package/dist/brand/ChototLogoText.d.ts +5 -0
- package/dist/brand/CtC2C.d.ts +5 -0
- package/dist/brand/CtProperty.d.ts +5 -0
- package/dist/brand/CtVehicle.d.ts +5 -0
- package/dist/brand/Tot.d.ts +5 -0
- package/dist/brand/index.d.ts +5 -0
- package/dist/chunk-Bmb41Sf3.cjs +1 -0
- package/dist/clad-ui.cjs +2 -0
- package/dist/clad-ui.d.ts +2 -0
- package/dist/clad-ui.es.js +9000 -4224
- package/dist/components/Announcer/Announcer.d.ts +3 -54
- package/dist/components/Announcer/announcer.styles.d.ts +39 -0
- package/dist/components/Announcer/index.d.ts +2 -0
- package/dist/components/Announcer/types.d.ts +41 -0
- package/dist/components/Badge/Badge.d.ts +2 -44
- package/dist/components/Badge/badge.styles.d.ts +57 -0
- package/dist/components/Badge/index.d.ts +4 -0
- package/dist/components/Badge/types.d.ts +33 -0
- package/dist/components/Box/Box.d.ts +7 -99
- package/dist/components/Box/index.d.ts +2 -0
- package/dist/components/Box/types.d.ts +89 -0
- package/dist/components/Breadcrumbs/BreadcrumbItem.d.ts +3 -5
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +3 -17
- package/dist/components/Breadcrumbs/breadcrumbs.styles.d.ts +2 -0
- package/dist/components/Breadcrumbs/index.d.ts +3 -0
- package/dist/components/Breadcrumbs/types.d.ts +18 -0
- package/dist/components/Button/Button.d.ts +3 -76
- package/dist/components/Button/ButtonLink.d.ts +2 -3
- package/dist/components/Button/GhostButton.d.ts +3 -47
- package/dist/components/Button/IconButton.d.ts +2 -10
- package/dist/components/Button/button.styles.d.ts +242 -0
- package/dist/components/Button/constant.d.ts +1 -2
- package/dist/components/Button/index.d.ts +5 -0
- package/dist/components/Button/types.d.ts +72 -0
- package/dist/components/Checkbox/Checkbox.d.ts +3 -46
- package/dist/components/Checkbox/checkbox.styles.d.ts +27 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Checkbox/types.d.ts +40 -0
- package/dist/components/Chip/Chip.d.ts +3 -70
- package/dist/components/Chip/chip.styles.d.ts +66 -0
- package/dist/components/Chip/index.d.ts +2 -0
- package/dist/components/Chip/types.d.ts +22 -0
- package/dist/components/CurrencyInput/CurrencyInput.d.ts +3 -39
- package/dist/components/CurrencyInput/currency-input.styles.d.ts +21 -0
- package/dist/components/CurrencyInput/index.d.ts +5 -0
- package/dist/components/CurrencyInput/types.d.ts +96 -0
- package/dist/components/CurrencyInput/utils.d.ts +18 -0
- package/dist/components/DatePicker/DatePicker.d.ts +2 -138
- package/dist/components/DatePicker/DateTimePicker.d.ts +2 -137
- package/dist/components/DatePicker/date-picker.styles.d.ts +9 -0
- package/dist/components/DatePicker/date-time-picker.styles.d.ts +10 -0
- package/dist/components/DatePicker/index.d.ts +4 -0
- package/dist/components/DatePicker/types.d.ts +286 -0
- package/dist/components/Drawer/Drawer.d.ts +36 -0
- package/dist/components/Drawer/Drawer.pw.fixtures.d.ts +9 -0
- package/dist/components/Drawer/index.d.ts +3 -0
- package/dist/components/Drawer/types.d.ts +191 -0
- package/dist/components/Dropdown/Dropdown.d.ts +3 -94
- package/dist/components/Dropdown/dropdown.styles.d.ts +18 -0
- package/dist/components/Dropdown/index.d.ts +4 -0
- package/dist/components/Dropdown/types.d.ts +89 -0
- package/dist/components/EmptyState/EmptyState.d.ts +4 -0
- package/dist/components/EmptyState/empty-state.styles.d.ts +3 -0
- package/dist/components/EmptyState/index.d.ts +2 -0
- package/dist/components/EmptyState/types.d.ts +55 -0
- package/dist/components/Grid/Col.d.ts +4 -35
- package/dist/components/Grid/Grid.d.ts +8 -55
- package/dist/components/Grid/Grid.pw.fixtures.d.ts +3 -0
- package/dist/components/Grid/index.d.ts +3 -0
- package/dist/components/Grid/types.d.ts +66 -0
- package/dist/components/Input/Input.d.ts +3 -116
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Input/input.styles.d.ts +24 -0
- package/dist/components/Input/types.d.ts +55 -0
- package/dist/components/InputGroup/InputGroup.d.ts +4 -0
- package/dist/components/InputGroup/index.d.ts +4 -0
- package/dist/components/InputGroup/input-group.styles.d.ts +18 -0
- package/dist/components/InputGroup/types.d.ts +20 -0
- package/dist/components/LegacyDialog/DialogMainIcon.d.ts +3 -0
- package/dist/components/LegacyDialog/LegacyDialog.d.ts +5 -0
- package/dist/components/LegacyDialog/index.d.ts +3 -0
- package/dist/{patterns/LegacyDialog/LegacyDialog.d.ts โ components/LegacyDialog/types.d.ts} +2 -10
- package/dist/components/LegacyPopup/LegacyPopup.d.ts +6 -0
- package/dist/components/LegacyPopup/index.d.ts +2 -0
- package/dist/{patterns/LegacyPopup/LegacyPopup.d.ts โ components/LegacyPopup/types.d.ts} +4 -15
- package/dist/components/MultiSearchDropdown/MultiSearchDropdown.d.ts +10 -0
- package/dist/components/MultiSearchDropdown/index.d.ts +4 -0
- package/dist/components/MultiSearchDropdown/multi-search-dropdown.styles.d.ts +18 -0
- package/dist/{patterns/MultiSearchDropdown/MultiSearchDropdown.d.ts โ components/MultiSearchDropdown/types.d.ts} +6 -19
- package/dist/components/Pagination/PageItem.d.ts +3 -21
- package/dist/components/Pagination/Pagination.d.ts +2 -46
- package/dist/components/Pagination/index.d.ts +5 -0
- package/dist/components/Pagination/pagination.styles.d.ts +37 -0
- package/dist/components/Pagination/types.d.ts +66 -0
- package/dist/components/Popover/Popover.d.ts +4 -44
- package/dist/components/Popover/Popover.pw.fixtures.d.ts +6 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Popover/popover.styles.d.ts +1 -0
- package/dist/components/Popover/types.d.ts +44 -0
- package/dist/components/Popup/Popup.d.ts +31 -0
- package/dist/components/Popup/Popup.pw.fixtures.d.ts +5 -0
- package/dist/components/Popup/index.d.ts +3 -0
- package/dist/components/Popup/types.d.ts +145 -0
- package/dist/components/RadioButton/RadioButton.d.ts +3 -51
- package/dist/components/RadioButton/index.d.ts +4 -0
- package/dist/components/RadioButton/radio-button.styles.d.ts +27 -0
- package/dist/components/RadioButton/types.d.ts +46 -0
- package/dist/components/RangeInput/RangeInput.d.ts +4 -0
- package/dist/components/RangeInput/index.d.ts +3 -0
- package/dist/components/RangeInput/range-input.styles.d.ts +1 -0
- package/dist/{patterns/RangeInput/RangeInput.d.ts โ components/RangeInput/types.d.ts} +1 -4
- package/dist/components/RowItem/RowItem.d.ts +8 -76
- package/dist/components/RowItem/index.d.ts +2 -0
- package/dist/components/RowItem/rowitem.styles.d.ts +36 -0
- package/dist/components/RowItem/types.d.ts +66 -0
- package/dist/components/SearchInput/SearchInput.d.ts +5 -0
- package/dist/components/SearchInput/index.d.ts +3 -0
- package/dist/components/SearchInput/search-input.styles.d.ts +18 -0
- package/dist/{patterns/SearchInput/SearchInput.d.ts โ components/SearchInput/types.d.ts} +19 -25
- package/dist/components/Searchbar/Searchbar.d.ts +3 -0
- package/dist/components/Searchbar/index.d.ts +3 -0
- package/dist/components/Searchbar/searchbar.styles.d.ts +1 -0
- package/dist/{patterns/Searchbar/Searchbar.d.ts โ components/Searchbar/types.d.ts} +6 -9
- package/dist/components/ShapeIcon/ShapeIcon.d.ts +3 -53
- package/dist/components/ShapeIcon/index.d.ts +2 -0
- package/dist/components/ShapeIcon/shape-icon.styles.d.ts +156 -0
- package/dist/components/ShapeIcon/types.d.ts +5 -0
- package/dist/components/Slider/Slider.d.ts +3 -57
- package/dist/components/Slider/index.d.ts +3 -0
- package/dist/components/Slider/slider.styles.d.ts +1 -0
- package/dist/components/Slider/types.d.ts +59 -0
- package/dist/components/Snack/Snack.d.ts +4 -48
- package/dist/components/Snack/index.d.ts +3 -0
- package/dist/components/Snack/snack.styles.d.ts +21 -0
- package/dist/components/Snack/types.d.ts +48 -0
- package/dist/components/Tabs/Tab.d.ts +3 -67
- package/dist/components/Tabs/Tabs.d.ts +14 -61
- package/dist/components/Tabs/index.d.ts +4 -0
- package/dist/components/Tabs/tabs.styles.d.ts +59 -0
- package/dist/components/Tabs/types.d.ts +97 -0
- package/dist/components/TagCloud/TagCloud.d.ts +11 -0
- package/dist/components/TagCloud/index.d.ts +2 -0
- package/dist/components/TagCloud/tagcloud.styles.d.ts +18 -0
- package/dist/components/TagCloud/types.d.ts +26 -0
- package/dist/components/TextArea/TextArea.d.ts +3 -100
- package/dist/components/TextArea/index.d.ts +4 -0
- package/dist/components/TextArea/text-area.styles.d.ts +21 -0
- package/dist/components/TextArea/types.d.ts +98 -0
- package/dist/components/TextLabel/TextLabel.d.ts +3 -35
- package/dist/components/TextLabel/index.d.ts +2 -0
- package/dist/components/TextLabel/textlabel.styles.d.ts +51 -0
- package/dist/components/TextLabel/types.d.ts +32 -0
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +3 -41
- package/dist/components/ToggleSwitch/index.d.ts +4 -0
- package/dist/components/ToggleSwitch/toggle-switch.styles.d.ts +39 -0
- package/dist/components/ToggleSwitch/types.d.ts +33 -0
- package/dist/components/Tooltip/Tooltip.d.ts +4 -98
- package/dist/components/Tooltip/Tooltip.pw.fixtures.d.ts +1 -0
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/Tooltip/tooltip.styles.d.ts +18 -0
- package/dist/components/Tooltip/types.d.ts +24 -0
- package/dist/forge/index.cjs +0 -0
- package/dist/forge/index.d.ts +8 -0
- package/dist/forge/index.es.js +0 -0
- package/dist/icons.cjs +1 -0
- package/dist/icons.d.ts +1 -0
- package/dist/icons.es.js +1 -0
- package/dist/index.d.ts +82 -71
- package/dist/styles.css +2 -0
- package/dist/{utils/types.d.ts โ types/index.d.ts} +0 -1
- package/dist/typography/BodyAnnotation.d.ts +8 -6
- package/dist/typography/BodyCaption.d.ts +8 -6
- package/dist/typography/BodyPage.d.ts +8 -6
- package/dist/typography/BodySection.d.ts +8 -6
- package/dist/typography/DisplayAnnotation.d.ts +8 -6
- package/dist/typography/DisplayCaption.d.ts +8 -6
- package/dist/typography/DisplayPage.d.ts +8 -6
- package/dist/typography/DisplayPrice.d.ts +21 -0
- package/dist/typography/DisplaySection.d.ts +8 -6
- package/dist/typography/HeaderAnnotation.d.ts +8 -6
- package/dist/typography/HeaderCaption.d.ts +8 -6
- package/dist/typography/HeaderPage.d.ts +8 -6
- package/dist/typography/HeaderSection.d.ts +8 -6
- package/dist/typography/LabelAnnotation.d.ts +8 -6
- package/dist/typography/LabelCaption.d.ts +8 -6
- package/dist/typography/LabelPage.d.ts +8 -6
- package/dist/typography/LabelSection.d.ts +8 -6
- package/dist/typography/NoteCaption.d.ts +8 -6
- package/dist/typography/NotePage.d.ts +8 -6
- package/dist/typography/NoteSection.d.ts +8 -6
- package/dist/typography/TaglineAnnotation.d.ts +8 -6
- package/dist/typography/TaglineCaption.d.ts +8 -6
- package/dist/typography/TaglineFootext.d.ts +8 -6
- package/dist/typography/TaglineSection.d.ts +8 -6
- package/dist/typography/index.d.ts +25 -24
- package/dist/utils/_inlineCreatePortal.d.ts +0 -1
- package/dist/utils/bundleCss.cjs +1 -0
- package/dist/utils/bundleCss.d.ts +6 -0
- package/dist/utils/bundleCss.es.js +18 -0
- package/dist/utils/cleanHtml.d.ts +4 -7
- package/dist/utils/cn.d.ts +5 -0
- package/dist/utils/createUniversalPortal.d.ts +4 -14
- package/dist/utils/floating.d.ts +52 -0
- package/dist/utils/getBreakpointsValues.d.ts +4 -9
- package/dist/utils/sizes.d.ts +28 -0
- package/dist/utils/storyStyles.d.ts +21 -0
- package/dist/utils/themeTokens.d.ts +327 -0
- package/dist/utils/{scrollLock/useBodyScrollLock.d.ts โ useBodyScrollLock.d.ts} +0 -1
- package/dist/utils/useScrollTop.d.ts +8 -0
- package/package.json +98 -104
- package/scripts/postinstall.cjs +180 -0
- package/skills/clad-ui/SKILL.md +109 -0
- package/skills/clad-ui/agents/openai.yaml +4 -0
- package/skills/clad-ui/references/components-display-layout.md +295 -0
- package/skills/clad-ui/references/components-inputs.md +449 -0
- package/skills/clad-ui/references/components-overlays-nav.md +314 -0
- package/skills/clad-ui/references/tokens.md +134 -0
- package/skills/clad-ui-feedback/SKILL.md +128 -0
- package/skills/migrate-clad-ui-v3/SKILL.md +123 -0
- package/skills/migrate-clad-ui-v3/agents/openai.yaml +4 -0
- package/skills/migrate-clad-ui-v3/references/component-api-changes.md +139 -0
- package/skills/migrate-clad-ui-v3/references/token-and-linaria-mapping.md +186 -0
- package/src/styles/base/base.css +440 -0
- package/src/styles/components/announcer.css +182 -0
- package/src/styles/components/badge.css +102 -0
- package/src/styles/components/box.css +61 -0
- package/src/styles/components/breadcrumbs.css +75 -0
- package/src/styles/components/button.css +527 -0
- package/src/styles/components/checkbox.css +115 -0
- package/src/styles/components/chip.css +155 -0
- package/src/styles/components/currency-input.css +146 -0
- package/src/styles/components/date-picker.css +305 -0
- package/src/styles/components/date-time-picker.css +64 -0
- package/src/styles/components/drawer.css +496 -0
- package/src/styles/components/dropdown.css +186 -0
- package/src/styles/components/empty-state.css +30 -0
- package/src/styles/components/grid.css +212 -0
- package/src/styles/components/index.css +36 -0
- package/src/styles/components/input-group.css +85 -0
- package/src/styles/components/input.css +255 -0
- package/src/styles/components/legacy-dialog.css +129 -0
- package/src/styles/components/legacy-popup.css +209 -0
- package/src/styles/components/multi-search-dropdown.css +240 -0
- package/src/styles/components/pagination.css +68 -0
- package/src/styles/components/popover.css +8 -0
- package/src/styles/components/popup.css +331 -0
- package/src/styles/components/radio-button.css +130 -0
- package/src/styles/components/range-input.css +40 -0
- package/src/styles/components/rowitem.css +75 -0
- package/src/styles/components/search-input.css +89 -0
- package/src/styles/components/searchbar.css +46 -0
- package/src/styles/components/shape-icon.css +199 -0
- package/src/styles/components/slider.css +232 -0
- package/src/styles/components/snack.css +144 -0
- package/src/styles/components/tabs.css +128 -0
- package/src/styles/components/tagcloud.css +50 -0
- package/src/styles/components/text-area.css +176 -0
- package/src/styles/components/textlabel.css +75 -0
- package/src/styles/components/toggle-switch.css +147 -0
- package/src/styles/components/tooltip.css +93 -0
- package/src/styles/index.css +10 -0
- package/src/styles/preset.css +6 -0
- package/src/styles/theme/colors/base.css +108 -0
- package/src/styles/theme/colors/semantic.css +135 -0
- package/src/styles/theme/index.css +57 -0
- package/src/styles/theme/typography/base.css +53 -0
- package/src/styles/theme/typography/semantic.css +176 -0
- package/src/styles/theme/variables.css +83 -0
- package/ai/clad-ui-helper.js +0 -267
- package/ai/knowledge-base/README.md +0 -154
- package/ai/knowledge-base/clad-ui-database.json +0 -9378
- package/ai/knowledge-base/component-categories.json +0 -616
- package/ai/knowledge-base/components/metadata/charts-axis.json +0 -31
- package/ai/knowledge-base/components/metadata/charts-barchart.json +0 -57
- package/ai/knowledge-base/components/metadata/charts-basechart.tsx.json +0 -31
- package/ai/knowledge-base/components/metadata/charts-chartshared.json +0 -31
- package/ai/knowledge-base/components/metadata/charts-linechart.json +0 -189
- package/ai/knowledge-base/components/metadata/charts-piechart.json +0 -57
- package/ai/knowledge-base/components/metadata/components-announcer.json +0 -215
- package/ai/knowledge-base/components/metadata/components-badge.json +0 -168
- package/ai/knowledge-base/components/metadata/components-box.json +0 -348
- package/ai/knowledge-base/components/metadata/components-breadcrumbs.json +0 -75
- package/ai/knowledge-base/components/metadata/components-button.json +0 -187
- package/ai/knowledge-base/components/metadata/components-checkbox.json +0 -161
- package/ai/knowledge-base/components/metadata/components-chip.json +0 -266
- package/ai/knowledge-base/components/metadata/components-currencyinput.json +0 -136
- package/ai/knowledge-base/components/metadata/components-datepicker.json +0 -87
- package/ai/knowledge-base/components/metadata/components-dropdown.json +0 -282
- package/ai/knowledge-base/components/metadata/components-grid.json +0 -92
- package/ai/knowledge-base/components/metadata/components-input.json +0 -432
- package/ai/knowledge-base/components/metadata/components-pagination.json +0 -111
- package/ai/knowledge-base/components/metadata/components-popover.json +0 -63
- package/ai/knowledge-base/components/metadata/components-radiobutton.json +0 -170
- package/ai/knowledge-base/components/metadata/components-rowitem.json +0 -281
- package/ai/knowledge-base/components/metadata/components-shapeicon.json +0 -139
- package/ai/knowledge-base/components/metadata/components-slider.json +0 -177
- package/ai/knowledge-base/components/metadata/components-snack.json +0 -181
- package/ai/knowledge-base/components/metadata/components-tabs.json +0 -169
- package/ai/knowledge-base/components/metadata/components-textarea.json +0 -285
- package/ai/knowledge-base/components/metadata/components-textlabel.json +0 -129
- package/ai/knowledge-base/components/metadata/components-toggleswitch.json +0 -134
- package/ai/knowledge-base/components/metadata/components-tooltip.json +0 -291
- package/ai/knowledge-base/components/metadata/patterns-drawer.json +0 -310
- package/ai/knowledge-base/components/metadata/patterns-emptystate.json +0 -106
- package/ai/knowledge-base/components/metadata/patterns-inputgroup.json +0 -105
- package/ai/knowledge-base/components/metadata/patterns-legacydialog.json +0 -177
- package/ai/knowledge-base/components/metadata/patterns-legacypopup.json +0 -236
- package/ai/knowledge-base/components/metadata/patterns-multisearchdropdown.json +0 -249
- package/ai/knowledge-base/components/metadata/patterns-popup.json +0 -268
- package/ai/knowledge-base/components/metadata/patterns-rangeinput.json +0 -105
- package/ai/knowledge-base/components/metadata/patterns-searchbar.json +0 -150
- package/ai/knowledge-base/components/metadata/patterns-searchinput.json +0 -312
- package/ai/knowledge-base/components/metadata/patterns-tagcloud.json +0 -244
- package/ai/knowledge-base/components/metadata/summaries.json +0 -610
- package/ai/knowledge-base/design-tokens/tokens.json +0 -483
- package/ai/knowledge-base/patterns/documentation.json +0 -131
- package/ai/knowledge-base/prompts/common-system-prompt.md +0 -592
- package/ai/knowledge-base/prompts/figma-system-prompt.md +0 -396
- package/ai/knowledge-base/search-index/icons/asset-icons.json +0 -1
- package/ai/knowledge-base/search-index/icons/collection.json +0 -5
- package/ai/knowledge-base/search-index/icons/system-icons.json +0 -1
- package/ai/knowledge-base/search-index/search-index.json +0 -899
- package/ai/knowledge-base/validation-rules/component-rules.json +0 -658
- package/ai/skill/SKILL.md +0 -103
- package/dist/components/Announcer/Announcer.d.ts.map +0 -1
- package/dist/components/Announcer/Announcer.styles.d.ts +0 -30
- package/dist/components/Announcer/Announcer.styles.d.ts.map +0 -1
- package/dist/components/Badge/Badge.d.ts.map +0 -1
- package/dist/components/Badge/Badge.styles.d.ts +0 -26
- package/dist/components/Badge/Badge.styles.d.ts.map +0 -1
- package/dist/components/Box/Box.d.ts.map +0 -1
- package/dist/components/Box/Box.styles.d.ts +0 -21
- package/dist/components/Box/Box.styles.d.ts.map +0 -1
- package/dist/components/Breadcrumbs/BreadcrumbItem.d.ts.map +0 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +0 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.styles.d.ts +0 -10
- package/dist/components/Breadcrumbs/Breadcrumbs.styles.d.ts.map +0 -1
- package/dist/components/Button/Button.d.ts.map +0 -1
- package/dist/components/Button/Button.styles.d.ts +0 -3
- package/dist/components/Button/Button.styles.d.ts.map +0 -1
- package/dist/components/Button/ButtonLink.d.ts.map +0 -1
- package/dist/components/Button/GhostButton.d.ts.map +0 -1
- package/dist/components/Button/GhostButton.styles.d.ts +0 -3
- package/dist/components/Button/GhostButton.styles.d.ts.map +0 -1
- package/dist/components/Button/IconButton.d.ts.map +0 -1
- package/dist/components/Button/constant.d.ts.map +0 -1
- package/dist/components/Checkbox/Checkbox.d.ts.map +0 -1
- package/dist/components/Checkbox/Checkbox.styles.d.ts +0 -5
- package/dist/components/Checkbox/Checkbox.styles.d.ts.map +0 -1
- package/dist/components/Chip/Chip.d.ts.map +0 -1
- package/dist/components/Chip/Chip.styles.d.ts +0 -13
- package/dist/components/Chip/Chip.styles.d.ts.map +0 -1
- package/dist/components/CurrencyInput/CurrencyInput.d.ts.map +0 -1
- package/dist/components/CurrencyInput/CurrencyInput.styles.d.ts +0 -27
- package/dist/components/CurrencyInput/CurrencyInput.styles.d.ts.map +0 -1
- package/dist/components/CurrencyInput/utils/_cleanValue.d.ts +0 -12
- package/dist/components/CurrencyInput/utils/_cleanValue.d.ts.map +0 -1
- package/dist/components/CurrencyInput/utils/_formatValue.d.ts +0 -6
- package/dist/components/CurrencyInput/utils/_formatValue.d.ts.map +0 -1
- package/dist/components/DatePicker/DatePicker.d.ts.map +0 -1
- package/dist/components/DatePicker/DateTimePicker.d.ts.map +0 -1
- package/dist/components/DatePicker/DateTimePicker.styles.d.ts +0 -61
- package/dist/components/DatePicker/DateTimePicker.styles.d.ts.map +0 -1
- package/dist/components/Dropdown/Dropdown.d.ts.map +0 -1
- package/dist/components/Dropdown/Dropdown.styles.d.ts +0 -11
- package/dist/components/Dropdown/Dropdown.styles.d.ts.map +0 -1
- package/dist/components/Grid/Col.d.ts.map +0 -1
- package/dist/components/Grid/Grid.d.ts.map +0 -1
- package/dist/components/Grid/Grid.styles.d.ts +0 -33
- package/dist/components/Grid/Grid.styles.d.ts.map +0 -1
- package/dist/components/Input/Input.d.ts.map +0 -1
- package/dist/components/Input/Input.styles.d.ts +0 -36
- package/dist/components/Input/Input.styles.d.ts.map +0 -1
- package/dist/components/Pagination/PageItem.d.ts.map +0 -1
- package/dist/components/Pagination/Pagination.d.ts.map +0 -1
- package/dist/components/Pagination/Pagination.style.d.ts +0 -7
- package/dist/components/Pagination/Pagination.style.d.ts.map +0 -1
- package/dist/components/Popover/Popover.d.ts.map +0 -1
- package/dist/components/Popover/Popover.styles.d.ts +0 -4
- package/dist/components/Popover/Popover.styles.d.ts.map +0 -1
- package/dist/components/RadioButton/RadioButton.d.ts.map +0 -1
- package/dist/components/RadioButton/RadioButton.styles.d.ts +0 -12
- package/dist/components/RadioButton/RadioButton.styles.d.ts.map +0 -1
- package/dist/components/RowItem/RowItem.d.ts.map +0 -1
- package/dist/components/RowItem/RowItem.styles.d.ts +0 -33
- package/dist/components/RowItem/RowItem.styles.d.ts.map +0 -1
- package/dist/components/ShapeIcon/ShapeIcon.d.ts.map +0 -1
- package/dist/components/ShapeIcon/ShapeIcon.styles.d.ts +0 -15
- package/dist/components/ShapeIcon/ShapeIcon.styles.d.ts.map +0 -1
- package/dist/components/Slider/Slider.d.ts.map +0 -1
- package/dist/components/Slider/Slider.styles.d.ts +0 -24
- package/dist/components/Slider/Slider.styles.d.ts.map +0 -1
- package/dist/components/Snack/Snack.d.ts.map +0 -1
- package/dist/components/Snack/Snack.styles.d.ts +0 -20
- package/dist/components/Snack/Snack.styles.d.ts.map +0 -1
- package/dist/components/Tabs/Tab.d.ts.map +0 -1
- package/dist/components/Tabs/Tabs.d.ts.map +0 -1
- package/dist/components/Tabs/Tabs.styles.d.ts +0 -43
- package/dist/components/Tabs/Tabs.styles.d.ts.map +0 -1
- package/dist/components/TextArea/TextArea.d.ts.map +0 -1
- package/dist/components/TextArea/TextArea.styles.d.ts +0 -19
- package/dist/components/TextArea/TextArea.styles.d.ts.map +0 -1
- package/dist/components/TextLabel/TextLabel.d.ts.map +0 -1
- package/dist/components/TextLabel/TextLabel.styles.d.ts +0 -10
- package/dist/components/TextLabel/TextLabel.styles.d.ts.map +0 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts.map +0 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.styles.d.ts +0 -22
- package/dist/components/ToggleSwitch/ToggleSwitch.styles.d.ts.map +0 -1
- package/dist/components/Tooltip/Tooltip.d.ts.map +0 -1
- package/dist/components/Tooltip/Tooltip.styles.d.ts +0 -33
- package/dist/components/Tooltip/Tooltip.styles.d.ts.map +0 -1
- package/dist/components/index.d.ts +0 -62
- package/dist/components/index.d.ts.map +0 -1
- package/dist/css/baseline.d.ts +0 -15
- package/dist/css/baseline.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/patterns/Drawer/Drawer.d.ts +0 -110
- package/dist/patterns/Drawer/Drawer.d.ts.map +0 -1
- package/dist/patterns/Drawer/Drawer.styles.d.ts +0 -39
- package/dist/patterns/Drawer/Drawer.styles.d.ts.map +0 -1
- package/dist/patterns/EmptyState/EmptyState.d.ts +0 -36
- package/dist/patterns/EmptyState/EmptyState.d.ts.map +0 -1
- package/dist/patterns/EmptyState/EmptyState.styles.d.ts +0 -4
- package/dist/patterns/EmptyState/EmptyState.styles.d.ts.map +0 -1
- package/dist/patterns/InputGroup/InputGroup.d.ts +0 -26
- package/dist/patterns/InputGroup/InputGroup.d.ts.map +0 -1
- package/dist/patterns/InputGroup/InputGroup.styles.d.ts +0 -8
- package/dist/patterns/InputGroup/InputGroup.styles.d.ts.map +0 -1
- package/dist/patterns/LegacyDialog/DialogMainIcon.d.ts +0 -2
- package/dist/patterns/LegacyDialog/DialogMainIcon.d.ts.map +0 -1
- package/dist/patterns/LegacyDialog/LegacyDialog.d.ts.map +0 -1
- package/dist/patterns/LegacyDialog/LegacyDialog.styles.d.ts +0 -13
- package/dist/patterns/LegacyDialog/LegacyDialog.styles.d.ts.map +0 -1
- package/dist/patterns/LegacyPopup/LegacyPopup.d.ts.map +0 -1
- package/dist/patterns/LegacyPopup/LegacyPopup.styles.d.ts +0 -27
- package/dist/patterns/LegacyPopup/LegacyPopup.styles.d.ts.map +0 -1
- package/dist/patterns/MultiSearchDropdown/MultiSearchDropdown.d.ts.map +0 -1
- package/dist/patterns/MultiSearchDropdown/MultiSearchDropdown.styles.d.ts +0 -26
- package/dist/patterns/MultiSearchDropdown/MultiSearchDropdown.styles.d.ts.map +0 -1
- package/dist/patterns/Popup/Popup.d.ts +0 -92
- package/dist/patterns/Popup/Popup.d.ts.map +0 -1
- package/dist/patterns/Popup/Popup.styles.d.ts +0 -41
- package/dist/patterns/Popup/Popup.styles.d.ts.map +0 -1
- package/dist/patterns/RangeInput/RangeInput.d.ts.map +0 -1
- package/dist/patterns/RangeInput/RangeInput.styles.d.ts +0 -5
- package/dist/patterns/RangeInput/RangeInput.styles.d.ts.map +0 -1
- package/dist/patterns/SearchInput/SearchInput.d.ts.map +0 -1
- package/dist/patterns/SearchInput/SearchInput.styles.d.ts +0 -10
- package/dist/patterns/SearchInput/SearchInput.styles.d.ts.map +0 -1
- package/dist/patterns/Searchbar/Searchbar.d.ts.map +0 -1
- package/dist/patterns/Searchbar/Searchbar.styles.d.ts +0 -3
- package/dist/patterns/Searchbar/Searchbar.styles.d.ts.map +0 -1
- package/dist/patterns/TagCloud/TagCloud.d.ts +0 -76
- package/dist/patterns/TagCloud/TagCloud.d.ts.map +0 -1
- package/dist/patterns/TagCloud/TagCloud.styles.d.ts +0 -15
- package/dist/patterns/TagCloud/TagCloud.styles.d.ts.map +0 -1
- package/dist/patterns/TagCloud/TagCloudMultiActive.d.ts +0 -25
- package/dist/patterns/TagCloud/TagCloudMultiActive.d.ts.map +0 -1
- package/dist/patterns/TagCloud/TagCloudSingleActive.d.ts +0 -22
- package/dist/patterns/TagCloud/TagCloudSingleActive.d.ts.map +0 -1
- package/dist/patterns/index.d.ts +0 -23
- package/dist/patterns/index.d.ts.map +0 -1
- package/dist/theme/chotot.d.ts +0 -1371
- package/dist/theme/chotot.d.ts.map +0 -1
- package/dist/theme/ct-job.d.ts +0 -826
- package/dist/theme/ct-job.d.ts.map +0 -1
- package/dist/theme/ct-pty.d.ts +0 -826
- package/dist/theme/ct-pty.d.ts.map +0 -1
- package/dist/theme/ct-veh.d.ts +0 -591
- package/dist/theme/ct-veh.d.ts.map +0 -1
- package/dist/theme/index.d.ts +0 -5
- package/dist/theme/index.d.ts.map +0 -1
- package/dist/theme/mudah.d.ts +0 -248
- package/dist/theme/mudah.d.ts.map +0 -1
- package/dist/theme/types.d.ts +0 -58
- package/dist/theme/types.d.ts.map +0 -1
- package/dist/theme-chotot.css +0 -2
- package/dist/theme-job.css +0 -2
- package/dist/theme-pty.css +0 -2
- package/dist/theme-veh.css +0 -2
- package/dist/typography/BodyAnnotation.d.ts.map +0 -1
- package/dist/typography/BodyCaption.d.ts.map +0 -1
- package/dist/typography/BodyPage.d.ts.map +0 -1
- package/dist/typography/BodySection.d.ts.map +0 -1
- package/dist/typography/DisplayAnnotation.d.ts.map +0 -1
- package/dist/typography/DisplayCaption.d.ts.map +0 -1
- package/dist/typography/DisplayPage.d.ts.map +0 -1
- package/dist/typography/DisplaySection.d.ts.map +0 -1
- package/dist/typography/HeaderAnnotation.d.ts.map +0 -1
- package/dist/typography/HeaderCaption.d.ts.map +0 -1
- package/dist/typography/HeaderPage.d.ts.map +0 -1
- package/dist/typography/HeaderSection.d.ts.map +0 -1
- package/dist/typography/LabelAnnotation.d.ts.map +0 -1
- package/dist/typography/LabelCaption.d.ts.map +0 -1
- package/dist/typography/LabelPage.d.ts.map +0 -1
- package/dist/typography/LabelSection.d.ts.map +0 -1
- package/dist/typography/NoteCaption.d.ts.map +0 -1
- package/dist/typography/NotePage.d.ts.map +0 -1
- package/dist/typography/NoteSection.d.ts.map +0 -1
- package/dist/typography/TaglineAnnotation.d.ts.map +0 -1
- package/dist/typography/TaglineCaption.d.ts.map +0 -1
- package/dist/typography/TaglineFootext.d.ts.map +0 -1
- package/dist/typography/TaglineSection.d.ts.map +0 -1
- package/dist/typography/index.d.ts.map +0 -1
- package/dist/utils/_inlineCreatePortal.d.ts.map +0 -1
- package/dist/utils/_normalizeArrowKey.d.ts +0 -10
- package/dist/utils/_normalizeArrowKey.d.ts.map +0 -1
- package/dist/utils/_simulateChangeEvent.d.ts +0 -25
- package/dist/utils/_simulateChangeEvent.d.ts.map +0 -1
- package/dist/utils/cleanHtml.d.ts.map +0 -1
- package/dist/utils/createUniversalPortal.d.ts.map +0 -1
- package/dist/utils/cx.d.ts +0 -22
- package/dist/utils/cx.d.ts.map +0 -1
- package/dist/utils/getBreakpointsValues.d.ts.map +0 -1
- package/dist/utils/index.d.ts +0 -7
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/noop.d.ts +0 -9
- package/dist/utils/noop.d.ts.map +0 -1
- package/dist/utils/scrollLock/index.d.ts +0 -7
- package/dist/utils/scrollLock/index.d.ts.map +0 -1
- package/dist/utils/scrollLock/scrollLock.styles.d.ts +0 -6
- package/dist/utils/scrollLock/scrollLock.styles.d.ts.map +0 -1
- package/dist/utils/scrollLock/useBodyScrollLock.d.ts.map +0 -1
- package/dist/utils/scrollTop.d.ts +0 -8
- package/dist/utils/scrollTop.d.ts.map +0 -1
- package/dist/utils/sx.d.ts +0 -174
- package/dist/utils/sx.d.ts.map +0 -1
- package/dist/utils/types.d.ts.map +0 -1
- package/theme/__snapshots__/chotot.spec.js.snap +0 -519
- package/theme/__snapshots__/mudah.spec.js.snap +0 -161
- package/theme/chotot.js +0 -1336
- package/theme/chotot.spec.js +0 -72
- package/theme/ct-job.js +0 -92
- package/theme/ct-pty.js +0 -92
- package/theme/ct-veh.js +0 -92
- package/theme/index.ts +0 -10
- package/theme/mudah.js +0 -333
- package/theme/mudah.spec.js +0 -9
- package/theme/types.ts +0 -61
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { VariantProps } from 'tailwind-variants/lite';
|
|
2
|
+
export declare const shapeIconVariants: import('tailwind-variants').TVReturnType<{
|
|
3
|
+
size: {
|
|
4
|
+
xxxs: "shape-icon--xxxs";
|
|
5
|
+
xxs: "shape-icon--xxs";
|
|
6
|
+
xs: "shape-icon--xs";
|
|
7
|
+
sm: "shape-icon--sm";
|
|
8
|
+
md: "shape-icon--md";
|
|
9
|
+
lg: "shape-icon--lg";
|
|
10
|
+
lxl: "shape-icon--lxl";
|
|
11
|
+
xl: "shape-icon--xl";
|
|
12
|
+
xxl: "shape-icon--xxl";
|
|
13
|
+
};
|
|
14
|
+
radius: {
|
|
15
|
+
none: "shape-icon--radius-none";
|
|
16
|
+
xs: "shape-icon--radius-xs";
|
|
17
|
+
sm: "shape-icon--radius-sm";
|
|
18
|
+
md: "shape-icon--radius-md";
|
|
19
|
+
lg: "shape-icon--radius-lg";
|
|
20
|
+
xl: "shape-icon--radius-xl";
|
|
21
|
+
pill: "shape-icon--radius-pill";
|
|
22
|
+
circle: "shape-icon--radius-circle";
|
|
23
|
+
};
|
|
24
|
+
bg: {
|
|
25
|
+
none: "shape-icon--bg-none";
|
|
26
|
+
brand: "shape-icon--bg-brand";
|
|
27
|
+
'brand-light': "shape-icon--bg-brand-light";
|
|
28
|
+
info: "shape-icon--bg-info";
|
|
29
|
+
'info-light': "shape-icon--bg-info-light";
|
|
30
|
+
success: "shape-icon--bg-success";
|
|
31
|
+
'success-light': "shape-icon--bg-success-light";
|
|
32
|
+
error: "shape-icon--bg-error";
|
|
33
|
+
'error-light': "shape-icon--bg-error-light";
|
|
34
|
+
warning: "shape-icon--bg-warning";
|
|
35
|
+
'warning-light': "shape-icon--bg-warning-light";
|
|
36
|
+
primary: "shape-icon--bg-primary";
|
|
37
|
+
secondary: "shape-icon--bg-secondary";
|
|
38
|
+
tertiary: "shape-icon--bg-tertiary";
|
|
39
|
+
inverted: "shape-icon--bg-inverted";
|
|
40
|
+
};
|
|
41
|
+
color: {
|
|
42
|
+
primary: "shape-icon--color-primary";
|
|
43
|
+
secondary: "shape-icon--color-secondary";
|
|
44
|
+
tertiary: "shape-icon--color-tertiary";
|
|
45
|
+
blank: "shape-icon--color-blank";
|
|
46
|
+
brand: "shape-icon--color-brand";
|
|
47
|
+
info: "shape-icon--color-info";
|
|
48
|
+
success: "shape-icon--color-success";
|
|
49
|
+
error: "shape-icon--color-error";
|
|
50
|
+
warning: "shape-icon--color-warning";
|
|
51
|
+
'on-background': "shape-icon--color-on-background";
|
|
52
|
+
};
|
|
53
|
+
}, undefined, "shape-icon", {
|
|
54
|
+
size: {
|
|
55
|
+
xxxs: "shape-icon--xxxs";
|
|
56
|
+
xxs: "shape-icon--xxs";
|
|
57
|
+
xs: "shape-icon--xs";
|
|
58
|
+
sm: "shape-icon--sm";
|
|
59
|
+
md: "shape-icon--md";
|
|
60
|
+
lg: "shape-icon--lg";
|
|
61
|
+
lxl: "shape-icon--lxl";
|
|
62
|
+
xl: "shape-icon--xl";
|
|
63
|
+
xxl: "shape-icon--xxl";
|
|
64
|
+
};
|
|
65
|
+
radius: {
|
|
66
|
+
none: "shape-icon--radius-none";
|
|
67
|
+
xs: "shape-icon--radius-xs";
|
|
68
|
+
sm: "shape-icon--radius-sm";
|
|
69
|
+
md: "shape-icon--radius-md";
|
|
70
|
+
lg: "shape-icon--radius-lg";
|
|
71
|
+
xl: "shape-icon--radius-xl";
|
|
72
|
+
pill: "shape-icon--radius-pill";
|
|
73
|
+
circle: "shape-icon--radius-circle";
|
|
74
|
+
};
|
|
75
|
+
bg: {
|
|
76
|
+
none: "shape-icon--bg-none";
|
|
77
|
+
brand: "shape-icon--bg-brand";
|
|
78
|
+
'brand-light': "shape-icon--bg-brand-light";
|
|
79
|
+
info: "shape-icon--bg-info";
|
|
80
|
+
'info-light': "shape-icon--bg-info-light";
|
|
81
|
+
success: "shape-icon--bg-success";
|
|
82
|
+
'success-light': "shape-icon--bg-success-light";
|
|
83
|
+
error: "shape-icon--bg-error";
|
|
84
|
+
'error-light': "shape-icon--bg-error-light";
|
|
85
|
+
warning: "shape-icon--bg-warning";
|
|
86
|
+
'warning-light': "shape-icon--bg-warning-light";
|
|
87
|
+
primary: "shape-icon--bg-primary";
|
|
88
|
+
secondary: "shape-icon--bg-secondary";
|
|
89
|
+
tertiary: "shape-icon--bg-tertiary";
|
|
90
|
+
inverted: "shape-icon--bg-inverted";
|
|
91
|
+
};
|
|
92
|
+
color: {
|
|
93
|
+
primary: "shape-icon--color-primary";
|
|
94
|
+
secondary: "shape-icon--color-secondary";
|
|
95
|
+
tertiary: "shape-icon--color-tertiary";
|
|
96
|
+
blank: "shape-icon--color-blank";
|
|
97
|
+
brand: "shape-icon--color-brand";
|
|
98
|
+
info: "shape-icon--color-info";
|
|
99
|
+
success: "shape-icon--color-success";
|
|
100
|
+
error: "shape-icon--color-error";
|
|
101
|
+
warning: "shape-icon--color-warning";
|
|
102
|
+
'on-background': "shape-icon--color-on-background";
|
|
103
|
+
};
|
|
104
|
+
}, undefined, import('tailwind-variants').TVReturnTypeLike<{
|
|
105
|
+
size: {
|
|
106
|
+
xxxs: "shape-icon--xxxs";
|
|
107
|
+
xxs: "shape-icon--xxs";
|
|
108
|
+
xs: "shape-icon--xs";
|
|
109
|
+
sm: "shape-icon--sm";
|
|
110
|
+
md: "shape-icon--md";
|
|
111
|
+
lg: "shape-icon--lg";
|
|
112
|
+
lxl: "shape-icon--lxl";
|
|
113
|
+
xl: "shape-icon--xl";
|
|
114
|
+
xxl: "shape-icon--xxl";
|
|
115
|
+
};
|
|
116
|
+
radius: {
|
|
117
|
+
none: "shape-icon--radius-none";
|
|
118
|
+
xs: "shape-icon--radius-xs";
|
|
119
|
+
sm: "shape-icon--radius-sm";
|
|
120
|
+
md: "shape-icon--radius-md";
|
|
121
|
+
lg: "shape-icon--radius-lg";
|
|
122
|
+
xl: "shape-icon--radius-xl";
|
|
123
|
+
pill: "shape-icon--radius-pill";
|
|
124
|
+
circle: "shape-icon--radius-circle";
|
|
125
|
+
};
|
|
126
|
+
bg: {
|
|
127
|
+
none: "shape-icon--bg-none";
|
|
128
|
+
brand: "shape-icon--bg-brand";
|
|
129
|
+
'brand-light': "shape-icon--bg-brand-light";
|
|
130
|
+
info: "shape-icon--bg-info";
|
|
131
|
+
'info-light': "shape-icon--bg-info-light";
|
|
132
|
+
success: "shape-icon--bg-success";
|
|
133
|
+
'success-light': "shape-icon--bg-success-light";
|
|
134
|
+
error: "shape-icon--bg-error";
|
|
135
|
+
'error-light': "shape-icon--bg-error-light";
|
|
136
|
+
warning: "shape-icon--bg-warning";
|
|
137
|
+
'warning-light': "shape-icon--bg-warning-light";
|
|
138
|
+
primary: "shape-icon--bg-primary";
|
|
139
|
+
secondary: "shape-icon--bg-secondary";
|
|
140
|
+
tertiary: "shape-icon--bg-tertiary";
|
|
141
|
+
inverted: "shape-icon--bg-inverted";
|
|
142
|
+
};
|
|
143
|
+
color: {
|
|
144
|
+
primary: "shape-icon--color-primary";
|
|
145
|
+
secondary: "shape-icon--color-secondary";
|
|
146
|
+
tertiary: "shape-icon--color-tertiary";
|
|
147
|
+
blank: "shape-icon--color-blank";
|
|
148
|
+
brand: "shape-icon--color-brand";
|
|
149
|
+
info: "shape-icon--color-info";
|
|
150
|
+
success: "shape-icon--color-success";
|
|
151
|
+
error: "shape-icon--color-error";
|
|
152
|
+
warning: "shape-icon--color-warning";
|
|
153
|
+
'on-background': "shape-icon--color-on-background";
|
|
154
|
+
};
|
|
155
|
+
}, undefined>>;
|
|
156
|
+
export type ShapeIconVariants = VariantProps<typeof shapeIconVariants>;
|
|
@@ -1,63 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SliderProps } from './types';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
export interface SliderOnChangeEvent<ValueType = number | number[]> extends React.ChangeEvent<HTMLInputElement>, Omit<React.KeyboardEvent<HTMLInputElement>, 'target' | 'nativeEvent'> {
|
|
4
|
-
value: ValueType;
|
|
5
|
-
}
|
|
6
|
-
export interface SliderProps {
|
|
7
|
-
/**
|
|
8
|
-
* Slider id
|
|
9
|
-
*/
|
|
10
|
-
id?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Default value of slider (number for single slider, number array for range slider)
|
|
13
|
-
*/
|
|
14
|
-
value?: number[] | number;
|
|
15
|
-
/**
|
|
16
|
-
* Maximum value of slider
|
|
17
|
-
*/
|
|
18
|
-
max?: number;
|
|
19
|
-
/**
|
|
20
|
-
* Minimum value of slider
|
|
21
|
-
*/
|
|
22
|
-
min?: number;
|
|
23
|
-
/**
|
|
24
|
-
* Whether this slider is disabled initially or not
|
|
25
|
-
*/
|
|
26
|
-
disabled?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Step size increment
|
|
29
|
-
*/
|
|
30
|
-
step?: number;
|
|
31
|
-
/**
|
|
32
|
-
* Unit
|
|
33
|
-
*/
|
|
34
|
-
unit?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Width
|
|
37
|
-
*/
|
|
38
|
-
width?: Sizes;
|
|
39
|
-
/**
|
|
40
|
-
* Type of slider
|
|
41
|
-
*/
|
|
42
|
-
type?: 'range' | 'single';
|
|
43
|
-
/**
|
|
44
|
-
* Whether this slider has an input field or not
|
|
45
|
-
*/
|
|
46
|
-
inputField?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Width of input field
|
|
49
|
-
*/
|
|
50
|
-
inputWidth?: Sizes;
|
|
51
|
-
/**
|
|
52
|
-
* Change event
|
|
53
|
-
*/
|
|
54
|
-
onChange?: (e: SliderOnChangeEvent<any>) => void;
|
|
55
|
-
}
|
|
56
3
|
/**
|
|
57
|
-
* Renders a
|
|
4
|
+
* Renders a slider element.
|
|
58
5
|
*
|
|
59
6
|
* `โ
Stable`
|
|
60
7
|
*/
|
|
61
|
-
declare const Slider: React.FC<SliderProps>;
|
|
8
|
+
export declare const Slider: React.FC<SliderProps>;
|
|
62
9
|
export default Slider;
|
|
63
|
-
//# sourceMappingURL=Slider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const sliderStyles: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "slider-wrapper", {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { CladSize } from '../../utils/sizes';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
export interface SliderOnChangeEvent<ValueType = number | number[]> extends React.ChangeEvent<HTMLInputElement>, Omit<React.KeyboardEvent<HTMLInputElement>, 'target' | 'nativeEvent'> {
|
|
4
|
+
value: ValueType;
|
|
5
|
+
}
|
|
6
|
+
export interface SliderProps {
|
|
7
|
+
/**
|
|
8
|
+
* Slider id
|
|
9
|
+
*/
|
|
10
|
+
id?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Default value of slider (number for single slider, number array for range slider)
|
|
13
|
+
*/
|
|
14
|
+
value?: number[] | number;
|
|
15
|
+
/**
|
|
16
|
+
* Maximum value of slider
|
|
17
|
+
*/
|
|
18
|
+
max?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Minimum value of slider
|
|
21
|
+
*/
|
|
22
|
+
min?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Whether this slider is disabled initially or not
|
|
25
|
+
*/
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Step size increment
|
|
29
|
+
*/
|
|
30
|
+
step?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Unit
|
|
33
|
+
*/
|
|
34
|
+
unit?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Width
|
|
37
|
+
*/
|
|
38
|
+
width?: CladSize;
|
|
39
|
+
/**
|
|
40
|
+
* Type of slider
|
|
41
|
+
*/
|
|
42
|
+
type?: 'range' | 'single';
|
|
43
|
+
/**
|
|
44
|
+
* Whether this slider has an input field or not
|
|
45
|
+
*/
|
|
46
|
+
inputField?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Width of input field
|
|
49
|
+
*/
|
|
50
|
+
inputWidth?: CladSize;
|
|
51
|
+
/**
|
|
52
|
+
* Change event
|
|
53
|
+
*/
|
|
54
|
+
onChange?: (e: SliderOnChangeEvent<any>) => void;
|
|
55
|
+
/**
|
|
56
|
+
* Custom class name
|
|
57
|
+
*/
|
|
58
|
+
className?: string;
|
|
59
|
+
}
|
|
@@ -1,49 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* Snack content
|
|
6
|
-
*/
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
/**
|
|
9
|
-
* Callback when snack is closed
|
|
10
|
-
*/
|
|
11
|
-
onClose?: () => void;
|
|
12
|
-
/**
|
|
13
|
-
* Snack max-width on desktop
|
|
14
|
-
*/
|
|
15
|
-
desktopSize?: 'lg' | 'md' | 'xl';
|
|
16
|
-
/**
|
|
17
|
-
* Delay time before disappearing
|
|
18
|
-
*/
|
|
19
|
-
autoHideDuration?: Durations;
|
|
20
|
-
/**
|
|
21
|
-
* Have close button or not
|
|
22
|
-
*/
|
|
23
|
-
haveClose?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Callback when action button is clicked
|
|
26
|
-
*/
|
|
27
|
-
onActionClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
28
|
-
/**
|
|
29
|
-
* Label of action button
|
|
30
|
-
*/
|
|
31
|
-
actionLabel?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Custom icon to display on the left
|
|
34
|
-
*/
|
|
35
|
-
icon?: React.ReactNode;
|
|
36
|
-
/**
|
|
37
|
-
* Layout orientation for content and action button
|
|
38
|
-
* @default 'horizontal'
|
|
39
|
-
*/
|
|
40
|
-
layout?: 'horizontal' | 'vertical';
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Snack is used to inform user of a process that has just been performed or will perform.
|
|
44
|
-
*
|
|
45
|
-
* `โ
Stable`
|
|
46
|
-
*/
|
|
47
|
-
declare const Snack: React.FC<SnackProps>;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { SnackProps } from './types';
|
|
3
|
+
declare const Snack: FC<SnackProps>;
|
|
4
|
+
export { Snack };
|
|
48
5
|
export default Snack;
|
|
49
|
-
//# sourceMappingURL=Snack.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { VariantProps } from 'tailwind-variants/lite';
|
|
2
|
+
export declare const snackVariants: import('tailwind-variants').TVReturnType<{
|
|
3
|
+
desktopSize: {
|
|
4
|
+
md: "md";
|
|
5
|
+
lg: "lg";
|
|
6
|
+
xl: "xl";
|
|
7
|
+
};
|
|
8
|
+
}, undefined, "snack", {
|
|
9
|
+
desktopSize: {
|
|
10
|
+
md: "md";
|
|
11
|
+
lg: "lg";
|
|
12
|
+
xl: "xl";
|
|
13
|
+
};
|
|
14
|
+
}, undefined, import('tailwind-variants').TVReturnTypeLike<{
|
|
15
|
+
desktopSize: {
|
|
16
|
+
md: "md";
|
|
17
|
+
lg: "lg";
|
|
18
|
+
xl: "xl";
|
|
19
|
+
};
|
|
20
|
+
}, undefined>>;
|
|
21
|
+
export type SnackVariants = VariantProps<typeof snackVariants>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { MouseEventHandler, ReactNode } from 'react';
|
|
2
|
+
import { SnackVariants } from './snack.styles';
|
|
3
|
+
export type SnackDuration = 'none' | 'xxxs' | 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl' | 'xxxxl';
|
|
4
|
+
export type SnackDesktopSize = 'lg' | 'md' | 'xl';
|
|
5
|
+
export type SnackLayout = 'horizontal' | 'vertical';
|
|
6
|
+
export type SnackProps = SnackVariants & {
|
|
7
|
+
/**
|
|
8
|
+
* Snack content
|
|
9
|
+
*/
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Callback when snack is closed
|
|
13
|
+
*/
|
|
14
|
+
onClose?: () => void;
|
|
15
|
+
/**
|
|
16
|
+
* Snack max-width on desktop
|
|
17
|
+
* @default 'lg'
|
|
18
|
+
*/
|
|
19
|
+
desktopSize?: SnackDesktopSize;
|
|
20
|
+
/**
|
|
21
|
+
* Delay time before disappearing
|
|
22
|
+
* @default 'xl'
|
|
23
|
+
*/
|
|
24
|
+
autoHideDuration?: SnackDuration;
|
|
25
|
+
/**
|
|
26
|
+
* Have close button or not
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
haveClose?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Callback when action button is clicked
|
|
32
|
+
*/
|
|
33
|
+
onActionClick?: MouseEventHandler<HTMLButtonElement>;
|
|
34
|
+
/**
|
|
35
|
+
* Label of action button
|
|
36
|
+
*/
|
|
37
|
+
actionLabel?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Custom icon to display on the left
|
|
40
|
+
*/
|
|
41
|
+
icon?: ReactNode;
|
|
42
|
+
/**
|
|
43
|
+
* Layout orientation for content and action button
|
|
44
|
+
* @default 'horizontal'
|
|
45
|
+
*/
|
|
46
|
+
layout?: SnackLayout;
|
|
47
|
+
className?: string;
|
|
48
|
+
};
|
|
@@ -1,68 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
/**
|
|
5
|
-
* Ref to the DOM node.
|
|
6
|
-
*/
|
|
7
|
-
ref?: ReactRef<HTMLButtonElement | null>;
|
|
8
|
-
/**
|
|
9
|
-
* Tab icon
|
|
10
|
-
*/
|
|
11
|
-
icon?: React.ReactElement;
|
|
12
|
-
/**
|
|
13
|
-
* Tab label
|
|
14
|
-
*/
|
|
15
|
-
label?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Tab value
|
|
18
|
-
*/
|
|
19
|
-
value: number | string;
|
|
20
|
-
/**
|
|
21
|
-
* Disable tab selection
|
|
22
|
-
*/
|
|
23
|
-
disabled?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Extra class for tab wrapper
|
|
26
|
-
*/
|
|
27
|
-
className?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Indicator element. Internal props is passed from `Tabs` component
|
|
30
|
-
*/
|
|
31
|
-
indicator?: React.ReactElement;
|
|
32
|
-
/**
|
|
33
|
-
* On click event. Internal props is handled by `Tabs` component
|
|
34
|
-
*/
|
|
35
|
-
onClick?: (event: React.MouseEvent<HTMLElement>, value: number | string) => void;
|
|
36
|
-
/**
|
|
37
|
-
* TabIndex html attribute. Internal props is handled by `Tabs` component
|
|
38
|
-
*/
|
|
39
|
-
tabIndex?: number;
|
|
40
|
-
/**
|
|
41
|
-
* Is tab selected. Internal props is handled by `Tabs` component.
|
|
42
|
-
*/
|
|
43
|
-
active?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Select font weight for deactive tab (active tab is always bold)
|
|
46
|
-
*/
|
|
47
|
-
fontWeight?: 'bold' | 'normal';
|
|
48
|
-
/**
|
|
49
|
-
* Custom width
|
|
50
|
-
*/
|
|
51
|
-
width?: string;
|
|
52
|
-
/**
|
|
53
|
-
* Custom height
|
|
54
|
-
*/
|
|
55
|
-
height?: string;
|
|
56
|
-
/**
|
|
57
|
-
* Line clamp
|
|
58
|
-
*/
|
|
59
|
-
lineClamp?: number;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Tab is a Tabs children. That is used to render the label/icon content.
|
|
63
|
-
*
|
|
64
|
-
* `โ
Stable`
|
|
65
|
-
*/
|
|
66
|
-
declare const Tab: import('../../utils/types').InternalForwardRefRenderFunction<"button", TabProps>;
|
|
1
|
+
import { TabProps } from './types';
|
|
2
|
+
declare const Tab: import('../../types').InternalForwardRefRenderFunction<"button", TabProps>;
|
|
3
|
+
export { Tab };
|
|
67
4
|
export default Tab;
|
|
68
|
-
//# sourceMappingURL=Tab.d.ts.map
|
|
@@ -1,62 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
* handle change tab selected value
|
|
16
|
-
*/
|
|
17
|
-
onChange?: TabsOnChangeHandler;
|
|
18
|
-
/**
|
|
19
|
-
* Current tab selected value
|
|
20
|
-
*/
|
|
21
|
-
value?: number | string;
|
|
22
|
-
/**
|
|
23
|
-
* Tabs display behavior
|
|
24
|
-
*/
|
|
25
|
-
variant?: 'fullWidth' | 'standard';
|
|
26
|
-
/**
|
|
27
|
-
* Indicator color
|
|
28
|
-
*/
|
|
29
|
-
indicatorColor?: 'primary' | 'secondary';
|
|
30
|
-
/**
|
|
31
|
-
* Show or hide divider
|
|
32
|
-
*/
|
|
33
|
-
showDivider?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Select font weight for deactive tab (active tab is always bold)
|
|
36
|
-
*/
|
|
37
|
-
fontWeight?: 'bold' | 'normal';
|
|
38
|
-
/**
|
|
39
|
-
* Custom height
|
|
40
|
-
*/
|
|
41
|
-
height?: string;
|
|
42
|
-
/**
|
|
43
|
-
* Line clamp
|
|
44
|
-
*/
|
|
45
|
-
lineClamp?: number;
|
|
46
|
-
/**
|
|
47
|
-
* Show scroll left and right buttons when tabs is overflow (only using with variant = 'standard')
|
|
48
|
-
*/
|
|
49
|
-
showScrollBtn?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Select the width (in pixels) to scroll horizontally with each click (default value is the width of one child element)
|
|
52
|
-
*/
|
|
53
|
-
widthScroll?: number;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Tabs is used to navigate between groups of content that are related and at the same level of hierarchy.
|
|
57
|
-
*
|
|
58
|
-
* `๐งช Beta` revamped since 1.2.0
|
|
59
|
-
*/
|
|
60
|
-
declare const Tabs: React.FC<TabsProps>;
|
|
1
|
+
import { TabsProps } from './types';
|
|
2
|
+
declare const Tabs: {
|
|
3
|
+
({ children, onChange, className, value, variant, showDivider, fontWeight, height, lineClamp, showScrollBtn, widthScroll, }: TabsProps): import('react').DetailedReactHTMLElement<{
|
|
4
|
+
ref: import('react').RefObject<HTMLDivElement>;
|
|
5
|
+
className: string;
|
|
6
|
+
style: {
|
|
7
|
+
height: string;
|
|
8
|
+
} | undefined;
|
|
9
|
+
'data-clad': string;
|
|
10
|
+
}, HTMLDivElement>;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export { Tabs };
|
|
14
|
+
export type { TabsOnChangeHandler } from './types';
|
|
61
15
|
export default Tabs;
|
|
62
|
-
//# sourceMappingURL=Tabs.d.ts.map
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { VariantProps } from 'tailwind-variants/lite';
|
|
2
|
+
export declare const tabsVariants: import('tailwind-variants').TVReturnType<{
|
|
3
|
+
showDivider: {
|
|
4
|
+
true: "tabs--divider";
|
|
5
|
+
false: "";
|
|
6
|
+
};
|
|
7
|
+
}, undefined, "tabs", {
|
|
8
|
+
showDivider: {
|
|
9
|
+
true: "tabs--divider";
|
|
10
|
+
false: "";
|
|
11
|
+
};
|
|
12
|
+
}, undefined, import('tailwind-variants').TVReturnTypeLike<{
|
|
13
|
+
showDivider: {
|
|
14
|
+
true: "tabs--divider";
|
|
15
|
+
false: "";
|
|
16
|
+
};
|
|
17
|
+
}, undefined>>;
|
|
18
|
+
export declare const tabVariants: import('tailwind-variants').TVReturnType<{
|
|
19
|
+
variant: {
|
|
20
|
+
fullWidth: "tab--full-width";
|
|
21
|
+
standard: "tab--standard";
|
|
22
|
+
};
|
|
23
|
+
disabled: {
|
|
24
|
+
true: "tab--disabled";
|
|
25
|
+
false: "";
|
|
26
|
+
};
|
|
27
|
+
active: {
|
|
28
|
+
true: "";
|
|
29
|
+
false: "";
|
|
30
|
+
};
|
|
31
|
+
}, undefined, "tab", {
|
|
32
|
+
variant: {
|
|
33
|
+
fullWidth: "tab--full-width";
|
|
34
|
+
standard: "tab--standard";
|
|
35
|
+
};
|
|
36
|
+
disabled: {
|
|
37
|
+
true: "tab--disabled";
|
|
38
|
+
false: "";
|
|
39
|
+
};
|
|
40
|
+
active: {
|
|
41
|
+
true: "";
|
|
42
|
+
false: "";
|
|
43
|
+
};
|
|
44
|
+
}, undefined, import('tailwind-variants').TVReturnTypeLike<{
|
|
45
|
+
variant: {
|
|
46
|
+
fullWidth: "tab--full-width";
|
|
47
|
+
standard: "tab--standard";
|
|
48
|
+
};
|
|
49
|
+
disabled: {
|
|
50
|
+
true: "tab--disabled";
|
|
51
|
+
false: "";
|
|
52
|
+
};
|
|
53
|
+
active: {
|
|
54
|
+
true: "";
|
|
55
|
+
false: "";
|
|
56
|
+
};
|
|
57
|
+
}, undefined>>;
|
|
58
|
+
export type TabsVariants = VariantProps<typeof tabsVariants>;
|
|
59
|
+
export type TabVariants = VariantProps<typeof tabVariants>;
|