@chotot/clad-ui 3.0.0-next.3 → 3.0.0-next.5
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 +9127 -4278
- 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 +294 -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 +196 -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} +3 -11
- 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} +5 -16
- 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} +2 -5
- 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 +5 -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 +275 -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 +297 -0
- package/skills/clad-ui/references/components-inputs.md +451 -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 +124 -0
- package/skills/migrate-clad-ui-v3/agents/openai.yaml +4 -0
- package/skills/migrate-clad-ui-v3/references/component-api-changes.md +145 -0
- package/skills/migrate-clad-ui-v3/references/token-and-linaria-mapping.md +194 -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
|
@@ -1,47 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
* Different looks of button
|
|
5
|
-
*/
|
|
6
|
-
variant?: 'button' | 'hyperlink';
|
|
7
|
-
/**
|
|
8
|
-
* Text color
|
|
9
|
-
*/
|
|
10
|
-
color?: 'link' | 'primary' | 'secondary' | 'tertiary';
|
|
11
|
-
/**
|
|
12
|
-
* Border radius
|
|
13
|
-
*/
|
|
14
|
-
radius?: 'circle' | 'normal' | 'pill';
|
|
15
|
-
/**
|
|
16
|
-
* Font weight of label
|
|
17
|
-
*/
|
|
18
|
-
weight?: 'bold' | 'normal';
|
|
19
|
-
/**
|
|
20
|
-
* Button's size
|
|
21
|
-
*/
|
|
22
|
-
size?: 'xlarge' | 'large' | 'medium' | 'small';
|
|
23
|
-
/**
|
|
24
|
-
* Whether this button is disabled. No events triggered.
|
|
25
|
-
*/
|
|
26
|
-
disabled?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Whether this button stretch to fill up container's width
|
|
29
|
-
*/
|
|
30
|
-
stretch?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Additional classes to be added for customization
|
|
33
|
-
*/
|
|
34
|
-
className?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Ref to the DOM node.
|
|
37
|
-
*/
|
|
38
|
-
ref?: ReactRef<HTMLAnchorElement | null>;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Renders a standard button element.
|
|
42
|
-
*
|
|
43
|
-
* `✅ Stable`
|
|
44
|
-
*/
|
|
45
|
-
export declare const Button: import('../../utils/types').InternalForwardRefRenderFunction<"a", GhostButtonProps>;
|
|
46
|
-
export default Button;
|
|
47
|
-
//# sourceMappingURL=GhostButton.d.ts.map
|
|
1
|
+
import { GhostButtonProps } from './types';
|
|
2
|
+
export declare const GhostButton: import('../../types').InternalForwardRefRenderFunction<"a", GhostButtonProps>;
|
|
3
|
+
export default GhostButton;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
}
|
|
4
|
-
/**
|
|
5
|
-
* Icons as interactive buttons / links. It has the same props list as [Button component](/docs/components-shapeicon--docs)
|
|
6
|
-
*
|
|
7
|
-
* `✅ Stable`
|
|
8
|
-
*/
|
|
9
|
-
declare const IconButton: import('../../utils/types').InternalForwardRefRenderFunction<"button", IconButtonProps>;
|
|
1
|
+
import { IconButtonProps } from './types';
|
|
2
|
+
export declare const IconButton: import('../../types').InternalForwardRefRenderFunction<"button", IconButtonProps>;
|
|
10
3
|
export default IconButton;
|
|
11
|
-
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { VariantProps } from 'tailwind-variants/lite';
|
|
2
|
+
export declare const buttonVariants: import('tailwind-variants').TVReturnType<{
|
|
3
|
+
color: {
|
|
4
|
+
primary: "button--primary";
|
|
5
|
+
success: "button--success";
|
|
6
|
+
info: "button--info";
|
|
7
|
+
error: "button--error";
|
|
8
|
+
neutral: "button--neutral";
|
|
9
|
+
tertiary: "button--tertiary";
|
|
10
|
+
blank: "button--blank";
|
|
11
|
+
};
|
|
12
|
+
size: {
|
|
13
|
+
small: "button--sm";
|
|
14
|
+
medium: "button--md";
|
|
15
|
+
large: "button--lg";
|
|
16
|
+
xlarge: "button--xl";
|
|
17
|
+
sm: "button--sm";
|
|
18
|
+
md: "button--md";
|
|
19
|
+
lg: "button--lg";
|
|
20
|
+
xl: "button--xl";
|
|
21
|
+
};
|
|
22
|
+
variant: {
|
|
23
|
+
default: "button--default";
|
|
24
|
+
solid: "button--solid";
|
|
25
|
+
outline: "button--outline";
|
|
26
|
+
tonal: "button--tonal";
|
|
27
|
+
};
|
|
28
|
+
radius: {
|
|
29
|
+
normal: "";
|
|
30
|
+
pill: "button--pill";
|
|
31
|
+
circle: "button--circle";
|
|
32
|
+
};
|
|
33
|
+
weight: {
|
|
34
|
+
normal: "button--weight-normal";
|
|
35
|
+
bold: "button--weight-bold";
|
|
36
|
+
};
|
|
37
|
+
stretch: {
|
|
38
|
+
true: "button--stretch";
|
|
39
|
+
false: "";
|
|
40
|
+
};
|
|
41
|
+
icon: {
|
|
42
|
+
true: "button--icon";
|
|
43
|
+
false: "";
|
|
44
|
+
};
|
|
45
|
+
iconPosition: {
|
|
46
|
+
left: "button--i-left";
|
|
47
|
+
right: "button--i-right";
|
|
48
|
+
};
|
|
49
|
+
isLoading: {
|
|
50
|
+
true: "button--loading";
|
|
51
|
+
false: "";
|
|
52
|
+
};
|
|
53
|
+
}, undefined, "button", {
|
|
54
|
+
color: {
|
|
55
|
+
primary: "button--primary";
|
|
56
|
+
success: "button--success";
|
|
57
|
+
info: "button--info";
|
|
58
|
+
error: "button--error";
|
|
59
|
+
neutral: "button--neutral";
|
|
60
|
+
tertiary: "button--tertiary";
|
|
61
|
+
blank: "button--blank";
|
|
62
|
+
};
|
|
63
|
+
size: {
|
|
64
|
+
small: "button--sm";
|
|
65
|
+
medium: "button--md";
|
|
66
|
+
large: "button--lg";
|
|
67
|
+
xlarge: "button--xl";
|
|
68
|
+
sm: "button--sm";
|
|
69
|
+
md: "button--md";
|
|
70
|
+
lg: "button--lg";
|
|
71
|
+
xl: "button--xl";
|
|
72
|
+
};
|
|
73
|
+
variant: {
|
|
74
|
+
default: "button--default";
|
|
75
|
+
solid: "button--solid";
|
|
76
|
+
outline: "button--outline";
|
|
77
|
+
tonal: "button--tonal";
|
|
78
|
+
};
|
|
79
|
+
radius: {
|
|
80
|
+
normal: "";
|
|
81
|
+
pill: "button--pill";
|
|
82
|
+
circle: "button--circle";
|
|
83
|
+
};
|
|
84
|
+
weight: {
|
|
85
|
+
normal: "button--weight-normal";
|
|
86
|
+
bold: "button--weight-bold";
|
|
87
|
+
};
|
|
88
|
+
stretch: {
|
|
89
|
+
true: "button--stretch";
|
|
90
|
+
false: "";
|
|
91
|
+
};
|
|
92
|
+
icon: {
|
|
93
|
+
true: "button--icon";
|
|
94
|
+
false: "";
|
|
95
|
+
};
|
|
96
|
+
iconPosition: {
|
|
97
|
+
left: "button--i-left";
|
|
98
|
+
right: "button--i-right";
|
|
99
|
+
};
|
|
100
|
+
isLoading: {
|
|
101
|
+
true: "button--loading";
|
|
102
|
+
false: "";
|
|
103
|
+
};
|
|
104
|
+
}, undefined, import('tailwind-variants').TVReturnTypeLike<{
|
|
105
|
+
color: {
|
|
106
|
+
primary: "button--primary";
|
|
107
|
+
success: "button--success";
|
|
108
|
+
info: "button--info";
|
|
109
|
+
error: "button--error";
|
|
110
|
+
neutral: "button--neutral";
|
|
111
|
+
tertiary: "button--tertiary";
|
|
112
|
+
blank: "button--blank";
|
|
113
|
+
};
|
|
114
|
+
size: {
|
|
115
|
+
small: "button--sm";
|
|
116
|
+
medium: "button--md";
|
|
117
|
+
large: "button--lg";
|
|
118
|
+
xlarge: "button--xl";
|
|
119
|
+
sm: "button--sm";
|
|
120
|
+
md: "button--md";
|
|
121
|
+
lg: "button--lg";
|
|
122
|
+
xl: "button--xl";
|
|
123
|
+
};
|
|
124
|
+
variant: {
|
|
125
|
+
default: "button--default";
|
|
126
|
+
solid: "button--solid";
|
|
127
|
+
outline: "button--outline";
|
|
128
|
+
tonal: "button--tonal";
|
|
129
|
+
};
|
|
130
|
+
radius: {
|
|
131
|
+
normal: "";
|
|
132
|
+
pill: "button--pill";
|
|
133
|
+
circle: "button--circle";
|
|
134
|
+
};
|
|
135
|
+
weight: {
|
|
136
|
+
normal: "button--weight-normal";
|
|
137
|
+
bold: "button--weight-bold";
|
|
138
|
+
};
|
|
139
|
+
stretch: {
|
|
140
|
+
true: "button--stretch";
|
|
141
|
+
false: "";
|
|
142
|
+
};
|
|
143
|
+
icon: {
|
|
144
|
+
true: "button--icon";
|
|
145
|
+
false: "";
|
|
146
|
+
};
|
|
147
|
+
iconPosition: {
|
|
148
|
+
left: "button--i-left";
|
|
149
|
+
right: "button--i-right";
|
|
150
|
+
};
|
|
151
|
+
isLoading: {
|
|
152
|
+
true: "button--loading";
|
|
153
|
+
false: "";
|
|
154
|
+
};
|
|
155
|
+
}, undefined>>;
|
|
156
|
+
export type ButtonVariants = VariantProps<typeof buttonVariants>;
|
|
157
|
+
export declare const ghostButtonVariants: import('tailwind-variants').TVReturnType<{
|
|
158
|
+
size: {
|
|
159
|
+
small: "ghost-button--sm";
|
|
160
|
+
medium: "ghost-button--md";
|
|
161
|
+
large: "ghost-button--lg";
|
|
162
|
+
xlarge: "ghost-button--xl";
|
|
163
|
+
sm: "ghost-button--sm";
|
|
164
|
+
md: "ghost-button--md";
|
|
165
|
+
lg: "ghost-button--lg";
|
|
166
|
+
xl: "ghost-button--xl";
|
|
167
|
+
};
|
|
168
|
+
radius: {
|
|
169
|
+
normal: "ghost-button--r-normal";
|
|
170
|
+
pill: "ghost-button--r-pill";
|
|
171
|
+
circle: "ghost-button--r-circle";
|
|
172
|
+
};
|
|
173
|
+
weight: {
|
|
174
|
+
normal: "ghost-button--w-normal";
|
|
175
|
+
bold: "ghost-button--w-bold";
|
|
176
|
+
};
|
|
177
|
+
stretch: {
|
|
178
|
+
true: "ghost-button--stretch";
|
|
179
|
+
false: "";
|
|
180
|
+
};
|
|
181
|
+
disabled: {
|
|
182
|
+
true: "ghost-button--disabled";
|
|
183
|
+
false: "";
|
|
184
|
+
};
|
|
185
|
+
}, undefined, "ghost-button", {
|
|
186
|
+
size: {
|
|
187
|
+
small: "ghost-button--sm";
|
|
188
|
+
medium: "ghost-button--md";
|
|
189
|
+
large: "ghost-button--lg";
|
|
190
|
+
xlarge: "ghost-button--xl";
|
|
191
|
+
sm: "ghost-button--sm";
|
|
192
|
+
md: "ghost-button--md";
|
|
193
|
+
lg: "ghost-button--lg";
|
|
194
|
+
xl: "ghost-button--xl";
|
|
195
|
+
};
|
|
196
|
+
radius: {
|
|
197
|
+
normal: "ghost-button--r-normal";
|
|
198
|
+
pill: "ghost-button--r-pill";
|
|
199
|
+
circle: "ghost-button--r-circle";
|
|
200
|
+
};
|
|
201
|
+
weight: {
|
|
202
|
+
normal: "ghost-button--w-normal";
|
|
203
|
+
bold: "ghost-button--w-bold";
|
|
204
|
+
};
|
|
205
|
+
stretch: {
|
|
206
|
+
true: "ghost-button--stretch";
|
|
207
|
+
false: "";
|
|
208
|
+
};
|
|
209
|
+
disabled: {
|
|
210
|
+
true: "ghost-button--disabled";
|
|
211
|
+
false: "";
|
|
212
|
+
};
|
|
213
|
+
}, undefined, import('tailwind-variants').TVReturnTypeLike<{
|
|
214
|
+
size: {
|
|
215
|
+
small: "ghost-button--sm";
|
|
216
|
+
medium: "ghost-button--md";
|
|
217
|
+
large: "ghost-button--lg";
|
|
218
|
+
xlarge: "ghost-button--xl";
|
|
219
|
+
sm: "ghost-button--sm";
|
|
220
|
+
md: "ghost-button--md";
|
|
221
|
+
lg: "ghost-button--lg";
|
|
222
|
+
xl: "ghost-button--xl";
|
|
223
|
+
};
|
|
224
|
+
radius: {
|
|
225
|
+
normal: "ghost-button--r-normal";
|
|
226
|
+
pill: "ghost-button--r-pill";
|
|
227
|
+
circle: "ghost-button--r-circle";
|
|
228
|
+
};
|
|
229
|
+
weight: {
|
|
230
|
+
normal: "ghost-button--w-normal";
|
|
231
|
+
bold: "ghost-button--w-bold";
|
|
232
|
+
};
|
|
233
|
+
stretch: {
|
|
234
|
+
true: "ghost-button--stretch";
|
|
235
|
+
false: "";
|
|
236
|
+
};
|
|
237
|
+
disabled: {
|
|
238
|
+
true: "ghost-button--disabled";
|
|
239
|
+
false: "";
|
|
240
|
+
};
|
|
241
|
+
}, undefined>>;
|
|
242
|
+
export type GhostButtonVariants = VariantProps<typeof ghostButtonVariants>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonColor, ButtonVariant } from './
|
|
1
|
+
import { ButtonColor, ButtonVariant } from './types';
|
|
2
2
|
export declare const BUTTON_VARIANTS: ButtonVariant[];
|
|
3
3
|
export declare const BUTTON_COLORS: ButtonColor[];
|
|
4
4
|
export declare const BUTTON_SIZES: string[];
|
|
@@ -7,4 +7,3 @@ export declare const BUTTON_WEIGHTS: string[];
|
|
|
7
7
|
export declare const SIZE_OPTIONS: string[];
|
|
8
8
|
export declare const GHOST_BUTTON_VARIANTS: string[];
|
|
9
9
|
export declare const GHOST_BUTTON_COLORS: string[];
|
|
10
|
-
//# sourceMappingURL=constant.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Button } from './Button';
|
|
2
|
+
export { IconButton } from './IconButton';
|
|
3
|
+
export { GhostButton } from './GhostButton';
|
|
4
|
+
export { ButtonLink } from './ButtonLink';
|
|
5
|
+
export type { ButtonProps, ButtonColor, ButtonVariant, IconButtonProps, GhostButtonProps, } from './types';
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { HTMLCladUIProps, ReactRef } from '../../types';
|
|
2
|
+
import { CladSize } from '../../utils/sizes';
|
|
3
|
+
import { ButtonVariants } from './button.styles';
|
|
4
|
+
export type DeprecatedButtonColor = 'chotot' | 'accent' | 'caution' | 'critical' | 'positive';
|
|
5
|
+
export type ButtonColor = NonNullable<ButtonVariants['color']> | DeprecatedButtonColor;
|
|
6
|
+
export type ButtonVariant = NonNullable<ButtonVariants['variant']>;
|
|
7
|
+
export type ButtonProps = HTMLCladUIProps<'button'> & Omit<ButtonVariants, 'color'> & {
|
|
8
|
+
/**
|
|
9
|
+
* Color of the background (solid) or stroke (outline) of the button
|
|
10
|
+
* @default 'primary'
|
|
11
|
+
*/
|
|
12
|
+
color?: ButtonColor;
|
|
13
|
+
/**
|
|
14
|
+
* Button width token
|
|
15
|
+
*/
|
|
16
|
+
width?: CladSize;
|
|
17
|
+
/**
|
|
18
|
+
* Additional classes to be added for customization (legacy alias of className)
|
|
19
|
+
*/
|
|
20
|
+
extraClasses?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Ref to the DOM node.
|
|
23
|
+
*/
|
|
24
|
+
ref?: ReactRef<HTMLButtonElement | null>;
|
|
25
|
+
};
|
|
26
|
+
export interface IconButtonProps extends Omit<ButtonProps, 'stretch' | 'icon'> {
|
|
27
|
+
}
|
|
28
|
+
export interface GhostButtonProps extends HTMLCladUIProps<'a'> {
|
|
29
|
+
/**
|
|
30
|
+
* Different looks of button
|
|
31
|
+
* @default 'button'
|
|
32
|
+
*/
|
|
33
|
+
variant?: 'button' | 'hyperlink';
|
|
34
|
+
/**
|
|
35
|
+
* Text color
|
|
36
|
+
* @default 'link'
|
|
37
|
+
*/
|
|
38
|
+
color?: 'link' | 'primary' | 'secondary' | 'tertiary';
|
|
39
|
+
/**
|
|
40
|
+
* Border radius
|
|
41
|
+
* @default 'normal'
|
|
42
|
+
*/
|
|
43
|
+
radius?: 'circle' | 'normal' | 'pill';
|
|
44
|
+
/**
|
|
45
|
+
* Font weight of label
|
|
46
|
+
* @default 'bold'
|
|
47
|
+
*/
|
|
48
|
+
weight?: 'bold' | 'normal';
|
|
49
|
+
/**
|
|
50
|
+
* Button's size
|
|
51
|
+
* @default 'medium'
|
|
52
|
+
*/
|
|
53
|
+
size?: 'xlarge' | 'large' | 'medium' | 'small' | 'xl' | 'lg' | 'md' | 'sm';
|
|
54
|
+
/**
|
|
55
|
+
* Whether this button is disabled. No events triggered.
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
disabled?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Whether this button stretch to fill up container's width
|
|
61
|
+
* @default false
|
|
62
|
+
*/
|
|
63
|
+
stretch?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Additional classes to be added for customization
|
|
66
|
+
*/
|
|
67
|
+
className?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Ref to the DOM node.
|
|
70
|
+
*/
|
|
71
|
+
ref?: ReactRef<HTMLAnchorElement | null>;
|
|
72
|
+
}
|
|
@@ -1,47 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* Checkbox id
|
|
5
|
-
*/
|
|
6
|
-
id?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Checkbox className
|
|
9
|
-
*/
|
|
10
|
-
className?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Checkbox name
|
|
13
|
-
*/
|
|
14
|
-
name?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Checkbox value
|
|
17
|
-
*/
|
|
18
|
-
value?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Whether this checkbox is checked initially or not
|
|
21
|
-
*/
|
|
22
|
-
checked?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Checkbox label
|
|
25
|
-
*/
|
|
26
|
-
label?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Change radio buttons active state color
|
|
29
|
-
*/
|
|
30
|
-
color?: 'accent' | 'caution' | 'chotot' | 'critical' | 'error' | 'info' | 'neutral' | 'positive' | 'primary' | 'secondary' | 'success';
|
|
31
|
-
/**
|
|
32
|
-
* Whether this checkbox is disabled initially or not
|
|
33
|
-
*/
|
|
34
|
-
disabled?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Change event
|
|
37
|
-
*/
|
|
38
|
-
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Renders a checkbox element.
|
|
42
|
-
*
|
|
43
|
-
* `✅ Stable`
|
|
44
|
-
*/
|
|
45
|
-
declare const Checkbox: React.FC<CheckboxProps>;
|
|
1
|
+
import { CheckboxProps } from './types';
|
|
2
|
+
declare const Checkbox: import('../../types').InternalForwardRefRenderFunction<"label", CheckboxProps>;
|
|
3
|
+
export { Checkbox };
|
|
46
4
|
export default Checkbox;
|
|
47
|
-
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { VariantProps } from 'tailwind-variants/lite';
|
|
2
|
+
export declare const checkboxVariants: import('tailwind-variants').TVReturnType<{
|
|
3
|
+
color: {
|
|
4
|
+
primary: "checkbox--primary";
|
|
5
|
+
info: "checkbox--info";
|
|
6
|
+
success: "checkbox--success";
|
|
7
|
+
error: "checkbox--error";
|
|
8
|
+
neutral: "checkbox--neutral";
|
|
9
|
+
};
|
|
10
|
+
}, undefined, "checkbox", {
|
|
11
|
+
color: {
|
|
12
|
+
primary: "checkbox--primary";
|
|
13
|
+
info: "checkbox--info";
|
|
14
|
+
success: "checkbox--success";
|
|
15
|
+
error: "checkbox--error";
|
|
16
|
+
neutral: "checkbox--neutral";
|
|
17
|
+
};
|
|
18
|
+
}, undefined, import('tailwind-variants').TVReturnTypeLike<{
|
|
19
|
+
color: {
|
|
20
|
+
primary: "checkbox--primary";
|
|
21
|
+
info: "checkbox--info";
|
|
22
|
+
success: "checkbox--success";
|
|
23
|
+
error: "checkbox--error";
|
|
24
|
+
neutral: "checkbox--neutral";
|
|
25
|
+
};
|
|
26
|
+
}, undefined>>;
|
|
27
|
+
export type CheckboxVariants = VariantProps<typeof checkboxVariants>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { HTMLCladUIProps, ReactRef } from '../../types';
|
|
2
|
+
import { CheckboxVariants } from './checkbox.styles';
|
|
3
|
+
export type CheckboxProps = Omit<HTMLCladUIProps<'label'>, 'onChange' | 'children' | 'as'> & CheckboxVariants & {
|
|
4
|
+
/**
|
|
5
|
+
* Ref to the DOM label node.
|
|
6
|
+
*/
|
|
7
|
+
ref?: ReactRef<HTMLLabelElement | null>;
|
|
8
|
+
/**
|
|
9
|
+
* The id forwarded to the underlying input element.
|
|
10
|
+
*/
|
|
11
|
+
id?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The name forwarded to the underlying input element.
|
|
14
|
+
*/
|
|
15
|
+
name?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The value forwarded to the underlying input element.
|
|
18
|
+
*/
|
|
19
|
+
value?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the checkbox is checked.
|
|
22
|
+
*/
|
|
23
|
+
checked?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the checkbox is in an indeterminate (partially selected) state.
|
|
26
|
+
*/
|
|
27
|
+
indeterminate?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Label text rendered next to the checkbox.
|
|
30
|
+
*/
|
|
31
|
+
label?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Disables the checkbox and applies muted styles.
|
|
34
|
+
*/
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Called when the checkbox checked state changes.
|
|
38
|
+
*/
|
|
39
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
40
|
+
};
|
|
@@ -1,71 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const
|
|
3
|
-
|
|
4
|
-
export interface ChipProps {
|
|
5
|
-
/**
|
|
6
|
-
* Whether this chip is active or not
|
|
7
|
-
*/
|
|
8
|
-
active?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Value of chip (Use in Multiple Select)
|
|
11
|
-
*/
|
|
12
|
-
value?: any;
|
|
13
|
-
/**
|
|
14
|
-
* Chip className
|
|
15
|
-
*/
|
|
16
|
-
className?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Chip size.
|
|
19
|
-
* Note: Due to historical mistake, there is no `md` size.
|
|
20
|
-
*/
|
|
21
|
-
size?: 'lg' | 'sm' | 'xl';
|
|
22
|
-
/**
|
|
23
|
-
* Chip href
|
|
24
|
-
*/
|
|
25
|
-
href?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Chip content
|
|
28
|
-
*/
|
|
29
|
-
children: React.ReactNode;
|
|
30
|
-
/**
|
|
31
|
-
* Element or component to be rendered as
|
|
32
|
-
*/
|
|
33
|
-
as?: React.ElementType;
|
|
34
|
-
/**
|
|
35
|
-
* Click event
|
|
36
|
-
*/
|
|
37
|
-
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
38
|
-
/**
|
|
39
|
-
* Chip min-width
|
|
40
|
-
*/
|
|
41
|
-
minWidth?: Size;
|
|
42
|
-
/**
|
|
43
|
-
* Chip with on close callback which return 2 arguments value, event
|
|
44
|
-
*/
|
|
45
|
-
onClose?: (value: any, event: React.MouseEvent<HTMLElement>) => void;
|
|
46
|
-
/**
|
|
47
|
-
* Chip Disable
|
|
48
|
-
*/
|
|
49
|
-
disabled?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Left Icon
|
|
52
|
-
*/
|
|
53
|
-
icon?: React.ReactNode;
|
|
54
|
-
/**
|
|
55
|
-
* Chip variant
|
|
56
|
-
*/
|
|
57
|
-
variant?: 'normal' | 'outline' | 'ghost';
|
|
58
|
-
/**
|
|
59
|
-
* Toggle to show dropdown icon on the right
|
|
60
|
-
* @default: false
|
|
61
|
-
*/
|
|
62
|
-
dropdownIcon?: boolean;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Chip is the atom component to be used as stand-alone Badges, or in patterns like Tag Cloud, Tabs
|
|
66
|
-
*
|
|
67
|
-
* `✅ Stable`
|
|
68
|
-
*/
|
|
69
|
-
declare const Chip: React.FC<ChipProps>;
|
|
1
|
+
import { ChipProps } from './types';
|
|
2
|
+
declare const Chip: import('../../types').InternalForwardRefRenderFunction<"a", ChipProps>;
|
|
3
|
+
export { Chip };
|
|
70
4
|
export default Chip;
|
|
71
|
-
//# sourceMappingURL=Chip.d.ts.map
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { VariantProps } from 'tailwind-variants/lite';
|
|
2
|
+
export declare const chipVariants: import('tailwind-variants').TVReturnType<{
|
|
3
|
+
variant: {
|
|
4
|
+
fill: "chip--normal";
|
|
5
|
+
normal: "chip--normal";
|
|
6
|
+
outline: "chip--outline";
|
|
7
|
+
ghost: "chip--ghost";
|
|
8
|
+
};
|
|
9
|
+
size: {
|
|
10
|
+
sm: "chip--sm";
|
|
11
|
+
md: "chip--md";
|
|
12
|
+
lg: "chip--lg";
|
|
13
|
+
xl: "chip--xl";
|
|
14
|
+
};
|
|
15
|
+
active: {
|
|
16
|
+
true: "chip--active";
|
|
17
|
+
false: "";
|
|
18
|
+
};
|
|
19
|
+
disabled: {
|
|
20
|
+
true: "chip--disabled";
|
|
21
|
+
false: "";
|
|
22
|
+
};
|
|
23
|
+
}, undefined, "chip", {
|
|
24
|
+
variant: {
|
|
25
|
+
fill: "chip--normal";
|
|
26
|
+
normal: "chip--normal";
|
|
27
|
+
outline: "chip--outline";
|
|
28
|
+
ghost: "chip--ghost";
|
|
29
|
+
};
|
|
30
|
+
size: {
|
|
31
|
+
sm: "chip--sm";
|
|
32
|
+
md: "chip--md";
|
|
33
|
+
lg: "chip--lg";
|
|
34
|
+
xl: "chip--xl";
|
|
35
|
+
};
|
|
36
|
+
active: {
|
|
37
|
+
true: "chip--active";
|
|
38
|
+
false: "";
|
|
39
|
+
};
|
|
40
|
+
disabled: {
|
|
41
|
+
true: "chip--disabled";
|
|
42
|
+
false: "";
|
|
43
|
+
};
|
|
44
|
+
}, undefined, import('tailwind-variants').TVReturnTypeLike<{
|
|
45
|
+
variant: {
|
|
46
|
+
fill: "chip--normal";
|
|
47
|
+
normal: "chip--normal";
|
|
48
|
+
outline: "chip--outline";
|
|
49
|
+
ghost: "chip--ghost";
|
|
50
|
+
};
|
|
51
|
+
size: {
|
|
52
|
+
sm: "chip--sm";
|
|
53
|
+
md: "chip--md";
|
|
54
|
+
lg: "chip--lg";
|
|
55
|
+
xl: "chip--xl";
|
|
56
|
+
};
|
|
57
|
+
active: {
|
|
58
|
+
true: "chip--active";
|
|
59
|
+
false: "";
|
|
60
|
+
};
|
|
61
|
+
disabled: {
|
|
62
|
+
true: "chip--disabled";
|
|
63
|
+
false: "";
|
|
64
|
+
};
|
|
65
|
+
}, undefined>>;
|
|
66
|
+
export type ChipVariants = VariantProps<typeof chipVariants>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { HTMLCladUIProps, ReactRef } from '../../types';
|
|
3
|
+
import { ChipVariants } from './chip.styles';
|
|
4
|
+
export type ChipProps = HTMLCladUIProps<'a'> & ChipVariants & {
|
|
5
|
+
ref?: ReactRef<HTMLElement | null>;
|
|
6
|
+
/**
|
|
7
|
+
* Value passed to the onClose callback.
|
|
8
|
+
*/
|
|
9
|
+
value?: any;
|
|
10
|
+
/**
|
|
11
|
+
* Left icon element.
|
|
12
|
+
*/
|
|
13
|
+
icon?: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Callback for the close button. Receives (value, event). Renders a close button when provided.
|
|
16
|
+
*/
|
|
17
|
+
onClose?: (value: any, event: React.MouseEvent<HTMLElement>) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Renders a chevron-down icon on the right side.
|
|
20
|
+
*/
|
|
21
|
+
dropdownIcon?: boolean;
|
|
22
|
+
};
|