@blenx-dev/components 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist/components → components}/Accordion/accordion.css.js +2 -2
- package/{dist/components → components}/Accordion/accordion.js +1 -1
- package/{dist/components → components}/Alert/alert.css.js +2 -2
- package/{dist/components → components}/Alert/alert.js +1 -1
- package/{dist/components → components}/AlertDialog/alert-dialog.css.js +2 -2
- package/{dist/components → components}/AlertDialog/alert-dialog.js +1 -1
- package/{dist/components → components}/Autocomplete/autocomplete.css.js +2 -2
- package/{dist/components → components}/Autocomplete/autocomplete.js +1 -1
- package/{dist/components → components}/Avatar/avatar.css.js +3 -3
- package/{dist/components → components}/Avatar/avatar.js +1 -1
- package/{dist/components → components}/Badge/badge.css.js +3 -3
- package/{dist/components → components}/Badge/badge.js +1 -1
- package/{dist/components → components}/Box/box.css.js +1 -1
- package/{dist/components → components}/Box/box.js +1 -1
- package/{dist/components → components}/Breadcrumbs/breadcrumbs.css.js +1 -1
- package/{dist/components → components}/Breadcrumbs/breadcrumbs.js +1 -1
- package/{dist/components → components}/Button/button.css.js +3 -3
- package/{dist/components → components}/Button/button.js +1 -1
- package/{dist/components → components}/Calendar/calendar.css.js +2 -2
- package/{dist/components → components}/Calendar/calendar.js +1 -1
- package/{dist/components → components}/Checkbox/checkbox.css.js +2 -2
- package/{dist/components → components}/Checkbox/checkbox.js +1 -1
- package/{dist/components → components}/Combobox/combobox.css.js +2 -2
- package/{dist/components → components}/Combobox/combobox.js +1 -1
- package/{dist/components → components}/Command/command.css.js +2 -2
- package/{dist/components → components}/Command/command.js +1 -1
- package/{dist/components → components}/Container/container.css.js +1 -1
- package/{dist/components → components}/Container/container.js +1 -1
- package/{dist/components → components}/Dialog/dialog.css.js +2 -2
- package/{dist/components → components}/Dialog/dialog.js +1 -1
- package/{dist/components → components}/Drawer/drawer.css.js +2 -2
- package/{dist/components → components}/Drawer/drawer.js +1 -1
- package/{dist/components → components}/Field/field.css.js +2 -2
- package/{dist/components → components}/Field/field.js +1 -1
- package/{dist/components → components}/Grid/grid.js +1 -1
- package/{dist/components → components}/Icon/icon.js +1 -1
- package/{dist/components → components}/IconButton/icon-button.js +1 -1
- package/{dist/components → components}/Input/input.css.js +2 -2
- package/{dist/components → components}/Input/input.js +1 -1
- package/{dist/components → components}/InputGroup/input-group.css.js +2 -2
- package/{dist/components → components}/InputGroup/input-group.js +1 -1
- package/{dist/components → components}/Menu/menu.css.js +2 -2
- package/{dist/components → components}/Menu/menu.js +1 -1
- package/{dist/components → components}/OTPField/otp-field.css.js +3 -3
- package/{dist/components → components}/OTPField/otp-field.js +1 -1
- package/{dist/components → components}/Popover/popover.css.js +2 -2
- package/{dist/components → components}/Popover/popover.js +1 -1
- package/{dist/components → components}/Progress/progress.css.js +2 -2
- package/{dist/components → components}/Progress/progress.js +1 -1
- package/{dist/components → components}/Radio/radio.css.js +2 -2
- package/{dist/components → components}/Radio/radio.js +1 -1
- package/{dist/components → components}/ScrollArea/scroll-area.css.js +2 -2
- package/{dist/components → components}/ScrollArea/scroll-area.js +1 -1
- package/{dist/components → components}/Select/select.css.js +2 -2
- package/{dist/components → components}/Select/select.js +1 -1
- package/{dist/components → components}/Separator/separator.css.js +3 -3
- package/{dist/components → components}/Separator/separator.js +1 -1
- package/{dist/components → components}/Sheet/sheet.css.js +2 -2
- package/{dist/components → components}/Sheet/sheet.js +1 -1
- package/{dist/components → components}/Slider/slider.css.js +2 -2
- package/{dist/components → components}/Slider/slider.js +1 -1
- package/{dist/components → components}/Spinner/spinner.js +1 -1
- package/{dist/components → components}/Splitter/splitter.css.js +2 -2
- package/{dist/components → components}/Splitter/splitter.js +1 -1
- package/{dist/components → components}/Stack/stack.css.js +3 -3
- package/{dist/components → components}/Stack/stack.js +1 -1
- package/{dist/components → components}/Surface/surface.css.js +2 -2
- package/{dist/components → components}/Surface/surface.js +1 -1
- package/{dist/components → components}/Switch/switch.css.js +2 -2
- package/{dist/components → components}/Switch/switch.js +1 -1
- package/{dist/components → components}/Table/table.css.js +2 -2
- package/{dist/components → components}/Table/table.js +1 -1
- package/{dist/components → components}/Tabs/tabs.css.js +2 -2
- package/{dist/components → components}/Tabs/tabs.js +1 -1
- package/{dist/components → components}/Text/text.css.js +3 -3
- package/{dist/components → components}/Text/text.js +1 -1
- package/{dist/components → components}/Textarea/textarea.css.js +1 -1
- package/{dist/components → components}/Textarea/textarea.js +1 -1
- package/{dist/components → components}/Toggle/toggle.css.js +3 -3
- package/{dist/components → components}/Toggle/toggle.js +1 -1
- package/{dist/components → components}/ToggleGroup/toggle-group.css.js +2 -2
- package/{dist/components → components}/ToggleGroup/toggle-group.js +1 -1
- package/package.json +209 -38
- package/{dist/utils → utils}/sprinkles.css.js +2 -2
- package/.turbo/turbo-check-types.log +0 -1
- package/MIGRATION-PLAN.md +0 -423
- package/TASKS.md +0 -192
- package/blenx-dev-ui-0.0.0.tgz +0 -0
- package/dist/node_modules/.bun/@vanilla-extract_recipes@0.5.7_19e937df7e0b57ed/node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js +0 -89
- package/dist/node_modules/.bun/@vanilla-extract_sprinkles@1.6.5_19e937df7e0b57ed/node_modules/@vanilla-extract/sprinkles/createRuntimeSprinkles/dist/vanilla-extract-sprinkles-createRuntimeSprinkles.esm.js +0 -8
- package/dist/node_modules/.bun/@vanilla-extract_sprinkles@1.6.5_19e937df7e0b57ed/node_modules/@vanilla-extract/sprinkles/dist/createSprinkles-74286718.esm.js +0 -141
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js +0 -16
- package/dist/package.json +0 -233
- package/dist/src/components/Accordion/accordion.demo.d.ts +0 -5
- package/dist/src/components/Alert/alert.demo.d.ts +0 -6
- package/dist/src/components/AlertDialog/alert-dialog.demo.d.ts +0 -5
- package/dist/src/components/AlertDialog/alert-dialog.doc.d.ts +0 -1
- package/dist/src/components/Avatar/avatar.doc.d.ts +0 -2
- package/dist/src/components/Badge/badge.demo.d.ts +0 -5
- package/dist/src/components/Badge/badge.doc.d.ts +0 -1
- package/dist/src/components/Box/box.doc.d.ts +0 -1
- package/dist/src/components/Breadcrumbs/breadcrumbs.doc.d.ts +0 -2
- package/dist/src/components/Button/button.demo.d.ts +0 -5
- package/dist/src/components/Calendar/calendar.doc.d.ts +0 -1
- package/dist/src/components/Card/card.demo.d.ts +0 -8
- package/dist/src/components/Card/card.doc.d.ts +0 -2
- package/dist/src/components/ColorPicker/color-picker.doc.d.ts +0 -1
- package/dist/src/components/ColorSwatch/color-swatch.doc.d.ts +0 -2
- package/dist/src/components/Command/command.demo.d.ts +0 -6
- package/dist/src/components/Command/command.doc.d.ts +0 -3
- package/dist/src/components/Container/container.doc.d.ts +0 -1
- package/dist/src/components/DatePicker/date-picker.doc.d.ts +0 -1
- package/dist/src/components/Dialog/dialog.demo.d.ts +0 -5
- package/dist/src/components/Dialog/dialog.doc.d.ts +0 -1
- package/dist/src/components/Drawer/drawer.demo.d.ts +0 -5
- package/dist/src/components/Drawer/drawer.doc.d.ts +0 -2
- package/dist/src/components/Field/field.doc.d.ts +0 -1
- package/dist/src/components/Grid/grid.doc.d.ts +0 -1
- package/dist/src/components/Icon/icon.demo.d.ts +0 -5
- package/dist/src/components/IconButton/icon-button.demo.d.ts +0 -5
- package/dist/src/components/Input/input.demo.d.ts +0 -5
- package/dist/src/components/Input/input.doc.d.ts +0 -2
- package/dist/src/components/InputGroup/input-group.demo.d.ts +0 -5
- package/dist/src/components/Menu/menu.demo.d.ts +0 -5
- package/dist/src/components/OTPField/otp-field.demo.d.ts +0 -6
- package/dist/src/components/Popover/popover.demo.d.ts +0 -5
- package/dist/src/components/ScrollArea/scroll-area.doc.d.ts +0 -2
- package/dist/src/components/SegmentedControl/segmented-control.doc.d.ts +0 -1
- package/dist/src/components/Select/select.demo.d.ts +0 -5
- package/dist/src/components/Select/select.doc.d.ts +0 -2
- package/dist/src/components/Separator/separator.doc.d.ts +0 -4
- package/dist/src/components/Sheet/sheet.demo.d.ts +0 -5
- package/dist/src/components/Spinner/spinner.demo.d.ts +0 -1
- package/dist/src/components/Stack/stack.doc.d.ts +0 -3
- package/dist/src/components/Surface/surface.doc.d.ts +0 -2
- package/dist/src/components/Switch/switch.demo.d.ts +0 -5
- package/dist/src/components/Switch/switch.doc.d.ts +0 -2
- package/dist/src/components/Table/table.demo.d.ts +0 -5
- package/dist/src/components/Tabs/tabs.demo.d.ts +0 -5
- package/dist/src/components/Tabs/tabs.doc.d.ts +0 -3
- package/dist/src/components/Text/text.doc.d.ts +0 -4
- package/dist/src/components/Textarea/textarea.doc.d.ts +0 -2
- package/dist/src/components/Toggle/toggle.doc.d.ts +0 -1
- package/dist/src/components/ToggleGroup/toggle-group.doc.d.ts +0 -3
- package/dist/src/demos/accordion.demo.d.ts +0 -5
- package/package.build.json +0 -39
- package/scripts/generate-api.ts +0 -183
- package/scripts/generate-package.ts +0 -99
- package/src/DataTable/data-table-column-toggle.tsx +0 -73
- package/src/DataTable/data-table-empty.tsx +0 -27
- package/src/DataTable/data-table-error.tsx +0 -25
- package/src/DataTable/data-table-infinite-loader.tsx +0 -73
- package/src/DataTable/data-table-loading.tsx +0 -67
- package/src/DataTable/data-table-pagination.tsx +0 -80
- package/src/DataTable/data-table-toolbar.tsx +0 -62
- package/src/DataTable/data-table.css.ts +0 -421
- package/src/DataTable/data-table.tsx +0 -507
- package/src/DataTable/index.ts +0 -24
- package/src/DataTable/registry-meta.json +0 -66
- package/src/DataTable/types.ts +0 -169
- package/src/DataTable/use-infinite-scroll.ts +0 -67
- package/src/components/Accordion/accordion.css.ts +0 -93
- package/src/components/Accordion/accordion.demo.tsx +0 -42
- package/src/components/Accordion/accordion.tsx +0 -87
- package/src/components/Accordion/docs-meta.json +0 -13
- package/src/components/Accordion/index.ts +0 -8
- package/src/components/Accordion/registry-meta.json +0 -19
- package/src/components/Alert/alert.css.ts +0 -29
- package/src/components/Alert/alert.demo.tsx +0 -34
- package/src/components/Alert/alert.tsx +0 -40
- package/src/components/Alert/docs-meta.json +0 -12
- package/src/components/Alert/index.ts +0 -1
- package/src/components/Alert/registry-meta.json +0 -20
- package/src/components/AlertDialog/alert-dialog.css.ts +0 -146
- package/src/components/AlertDialog/alert-dialog.demo.tsx +0 -59
- package/src/components/AlertDialog/alert-dialog.doc.tsx +0 -31
- package/src/components/AlertDialog/alert-dialog.tsx +0 -197
- package/src/components/AlertDialog/docs-meta.json +0 -14
- package/src/components/AlertDialog/index.ts +0 -1
- package/src/components/AlertDialog/registry-meta.json +0 -20
- package/src/components/Autocomplete/autocomplete.css.ts +0 -168
- package/src/components/Autocomplete/autocomplete.tsx +0 -226
- package/src/components/Autocomplete/docs-meta.json +0 -9
- package/src/components/Autocomplete/index.ts +0 -1
- package/src/components/Autocomplete/registry-meta.json +0 -20
- package/src/components/Avatar/avatar.css.ts +0 -72
- package/src/components/Avatar/avatar.doc.tsx +0 -32
- package/src/components/Avatar/avatar.tsx +0 -49
- package/src/components/Avatar/docs-meta.json +0 -9
- package/src/components/Avatar/index.ts +0 -1
- package/src/components/Avatar/registry-meta.json +0 -19
- package/src/components/Badge/badge.css.ts +0 -40
- package/src/components/Badge/badge.demo.tsx +0 -18
- package/src/components/Badge/badge.doc.tsx +0 -12
- package/src/components/Badge/badge.tsx +0 -13
- package/src/components/Badge/docs-meta.json +0 -9
- package/src/components/Badge/index.ts +0 -1
- package/src/components/Badge/registry-meta.json +0 -19
- package/src/components/Box/box.css.ts +0 -7
- package/src/components/Box/box.doc.tsx +0 -19
- package/src/components/Box/box.tsx +0 -21
- package/src/components/Box/docs-meta.json +0 -9
- package/src/components/Box/index.ts +0 -1
- package/src/components/Box/registry-meta.json +0 -14
- package/src/components/Breadcrumbs/breadcrumbs.css.ts +0 -72
- package/src/components/Breadcrumbs/breadcrumbs.doc.tsx +0 -61
- package/src/components/Breadcrumbs/breadcrumbs.tsx +0 -79
- package/src/components/Breadcrumbs/docs-meta.json +0 -12
- package/src/components/Breadcrumbs/index.ts +0 -9
- package/src/components/Breadcrumbs/registry-meta.json +0 -19
- package/src/components/Button/button.css.ts +0 -209
- package/src/components/Button/button.demo.tsx +0 -119
- package/src/components/Button/button.tsx +0 -55
- package/src/components/Button/docs-meta.json +0 -13
- package/src/components/Button/index.ts +0 -1
- package/src/components/Button/registry-meta.json +0 -20
- package/src/components/Calendar/calendar.css.ts +0 -188
- package/src/components/Calendar/calendar.doc.tsx +0 -10
- package/src/components/Calendar/calendar.tsx +0 -143
- package/src/components/Calendar/docs-meta.json +0 -9
- package/src/components/Calendar/index.ts +0 -1
- package/src/components/Calendar/registry-meta.json +0 -20
- package/src/components/Card/card.demo.tsx +0 -177
- package/src/components/Card/card.doc.tsx +0 -47
- package/src/components/Card/card.tsx +0 -32
- package/src/components/Card/docs-meta.json +0 -9
- package/src/components/Card/index.ts +0 -1
- package/src/components/Card/registry-meta.json +0 -15
- package/src/components/Checkbox/checkbox.css.ts +0 -77
- package/src/components/Checkbox/checkbox.tsx +0 -94
- package/src/components/Checkbox/docs-meta.json +0 -13
- package/src/components/Checkbox/index.ts +0 -1
- package/src/components/Checkbox/registry-meta.json +0 -19
- package/src/components/CloseButton/close-button.css.ts +0 -11
- package/src/components/CloseButton/close-button.tsx +0 -15
- package/src/components/CloseButton/index.ts +0 -2
- package/src/components/CloseButton/registry-meta.json +0 -15
- package/src/components/ColorPicker/color-picker.doc.tsx +0 -12
- package/src/components/ColorPicker/color-picker.tsx +0 -123
- package/src/components/ColorPicker/docs-meta.json +0 -9
- package/src/components/ColorPicker/index.ts +0 -1
- package/src/components/ColorPicker/registry-meta.json +0 -15
- package/src/components/ColorSwatch/color-swatch.doc.tsx +0 -25
- package/src/components/ColorSwatch/color-swatch.tsx +0 -21
- package/src/components/ColorSwatch/docs-meta.json +0 -9
- package/src/components/ColorSwatch/index.ts +0 -1
- package/src/components/ColorSwatch/registry-meta.json +0 -20
- package/src/components/Combobox/combobox.css.ts +0 -334
- package/src/components/Combobox/combobox.tsx +0 -350
- package/src/components/Combobox/docs-meta.json +0 -9
- package/src/components/Combobox/index.ts +0 -1
- package/src/components/Combobox/registry-meta.json +0 -20
- package/src/components/Command/command.css.ts +0 -131
- package/src/components/Command/command.demo.tsx +0 -110
- package/src/components/Command/command.doc.tsx +0 -100
- package/src/components/Command/command.tsx +0 -413
- package/src/components/Command/docs-meta.json +0 -21
- package/src/components/Command/index.ts +0 -7
- package/src/components/Command/registry-meta.json +0 -20
- package/src/components/Container/container.css.ts +0 -40
- package/src/components/Container/container.doc.tsx +0 -28
- package/src/components/Container/container.tsx +0 -24
- package/src/components/Container/docs-meta.json +0 -9
- package/src/components/Container/index.ts +0 -1
- package/src/components/Container/registry-meta.json +0 -20
- package/src/components/CopyButton/copy-button.css.ts +0 -11
- package/src/components/CopyButton/copy-button.tsx +0 -45
- package/src/components/CopyButton/index.ts +0 -2
- package/src/components/CopyButton/registry-meta.json +0 -15
- package/src/components/DatePicker/date-picker.doc.tsx +0 -12
- package/src/components/DatePicker/date-picker.tsx +0 -75
- package/src/components/DatePicker/docs-meta.json +0 -9
- package/src/components/DatePicker/index.ts +0 -1
- package/src/components/DatePicker/registry-meta.json +0 -15
- package/src/components/Dialog/dialog.css.ts +0 -155
- package/src/components/Dialog/dialog.demo.tsx +0 -39
- package/src/components/Dialog/dialog.doc.tsx +0 -33
- package/src/components/Dialog/dialog.tsx +0 -186
- package/src/components/Dialog/docs-meta.json +0 -13
- package/src/components/Dialog/index.ts +0 -1
- package/src/components/Dialog/registry-meta.json +0 -20
- package/src/components/Drawer/docs-meta.json +0 -9
- package/src/components/Drawer/drawer.css.ts +0 -412
- package/src/components/Drawer/drawer.demo.tsx +0 -58
- package/src/components/Drawer/drawer.doc.tsx +0 -49
- package/src/components/Drawer/drawer.tsx +0 -574
- package/src/components/Drawer/index.ts +0 -1
- package/src/components/Drawer/registry-meta.json +0 -20
- package/src/components/Field/docs-meta.json +0 -9
- package/src/components/Field/field.css.ts +0 -35
- package/src/components/Field/field.doc.tsx +0 -19
- package/src/components/Field/field.tsx +0 -101
- package/src/components/Field/index.ts +0 -1
- package/src/components/Field/registry-meta.json +0 -20
- package/src/components/Grid/docs-meta.json +0 -9
- package/src/components/Grid/grid.css.ts +0 -12
- package/src/components/Grid/grid.doc.tsx +0 -148
- package/src/components/Grid/grid.tsx +0 -57
- package/src/components/Grid/index.ts +0 -1
- package/src/components/Grid/registry-meta.json +0 -20
- package/src/components/Icon/docs-meta.json +0 -13
- package/src/components/Icon/icon.css.ts +0 -10
- package/src/components/Icon/icon.demo.tsx +0 -97
- package/src/components/Icon/icon.tsx +0 -15
- package/src/components/Icon/index.ts +0 -1
- package/src/components/Icon/registry-meta.json +0 -20
- package/src/components/IconButton/docs-meta.json +0 -13
- package/src/components/IconButton/icon-button.css.ts +0 -6
- package/src/components/IconButton/icon-button.demo.tsx +0 -102
- package/src/components/IconButton/icon-button.tsx +0 -11
- package/src/components/IconButton/index.ts +0 -2
- package/src/components/IconButton/registry-meta.json +0 -15
- package/src/components/Input/docs-meta.json +0 -9
- package/src/components/Input/index.ts +0 -1
- package/src/components/Input/input.css.ts +0 -73
- package/src/components/Input/input.demo.tsx +0 -24
- package/src/components/Input/input.doc.tsx +0 -25
- package/src/components/Input/input.tsx +0 -50
- package/src/components/Input/registry-meta.json +0 -19
- package/src/components/InputGroup/docs-meta.json +0 -9
- package/src/components/InputGroup/index.ts +0 -1
- package/src/components/InputGroup/input-group.css.ts +0 -157
- package/src/components/InputGroup/input-group.demo.tsx +0 -53
- package/src/components/InputGroup/input-group.tsx +0 -133
- package/src/components/InputGroup/registry-meta.json +0 -19
- package/src/components/Menu/docs-meta.json +0 -13
- package/src/components/Menu/index.ts +0 -1
- package/src/components/Menu/menu.css.ts +0 -128
- package/src/components/Menu/menu.demo.tsx +0 -40
- package/src/components/Menu/menu.tsx +0 -115
- package/src/components/Menu/registry-meta.json +0 -19
- package/src/components/OTPField/docs-meta.json +0 -9
- package/src/components/OTPField/index.ts +0 -1
- package/src/components/OTPField/otp-field.css.ts +0 -55
- package/src/components/OTPField/otp-field.demo.tsx +0 -57
- package/src/components/OTPField/otp-field.tsx +0 -46
- package/src/components/OTPField/registry-meta.json +0 -19
- package/src/components/Popover/docs-meta.json +0 -13
- package/src/components/Popover/index.ts +0 -1
- package/src/components/Popover/popover.css.ts +0 -82
- package/src/components/Popover/popover.demo.tsx +0 -34
- package/src/components/Popover/popover.tsx +0 -113
- package/src/components/Popover/registry-meta.json +0 -19
- package/src/components/Progress/docs-meta.json +0 -12
- package/src/components/Progress/index.ts +0 -7
- package/src/components/Progress/progress.css.ts +0 -38
- package/src/components/Progress/progress.tsx +0 -62
- package/src/components/Progress/registry-meta.json +0 -19
- package/src/components/Radio/docs-meta.json +0 -13
- package/src/components/Radio/index.ts +0 -1
- package/src/components/Radio/radio.css.ts +0 -73
- package/src/components/Radio/radio.tsx +0 -49
- package/src/components/Radio/registry-meta.json +0 -19
- package/src/components/ScrollArea/docs-meta.json +0 -9
- package/src/components/ScrollArea/index.ts +0 -1
- package/src/components/ScrollArea/registry-meta.json +0 -19
- package/src/components/ScrollArea/scroll-area.css.ts +0 -80
- package/src/components/ScrollArea/scroll-area.doc.tsx +0 -44
- package/src/components/ScrollArea/scroll-area.tsx +0 -96
- package/src/components/SegmentedControl/docs-meta.json +0 -9
- package/src/components/SegmentedControl/index.ts +0 -1
- package/src/components/SegmentedControl/registry-meta.json +0 -15
- package/src/components/SegmentedControl/segmented-control.doc.tsx +0 -28
- package/src/components/SegmentedControl/segmented-control.tsx +0 -42
- package/src/components/Select/docs-meta.json +0 -13
- package/src/components/Select/index.ts +0 -1
- package/src/components/Select/registry-meta.json +0 -20
- package/src/components/Select/select.css.ts +0 -183
- package/src/components/Select/select.demo.tsx +0 -35
- package/src/components/Select/select.doc.tsx +0 -65
- package/src/components/Select/select.tsx +0 -165
- package/src/components/Separator/docs-meta.json +0 -12
- package/src/components/Separator/index.ts +0 -1
- package/src/components/Separator/registry-meta.json +0 -20
- package/src/components/Separator/separator.css.ts +0 -60
- package/src/components/Separator/separator.doc.tsx +0 -44
- package/src/components/Separator/separator.tsx +0 -34
- package/src/components/Sheet/docs-meta.json +0 -13
- package/src/components/Sheet/index.ts +0 -1
- package/src/components/Sheet/registry-meta.json +0 -20
- package/src/components/Sheet/sheet.css.ts +0 -192
- package/src/components/Sheet/sheet.demo.tsx +0 -53
- package/src/components/Sheet/sheet.tsx +0 -213
- package/src/components/Slider/docs-meta.json +0 -13
- package/src/components/Slider/index.ts +0 -1
- package/src/components/Slider/registry-meta.json +0 -19
- package/src/components/Slider/slider.css.ts +0 -82
- package/src/components/Slider/slider.tsx +0 -100
- package/src/components/Spinner/docs-meta.json +0 -12
- package/src/components/Spinner/index.ts +0 -1
- package/src/components/Spinner/registry-meta.json +0 -19
- package/src/components/Spinner/spinner.css.ts +0 -17
- package/src/components/Spinner/spinner.demo.tsx +0 -13
- package/src/components/Spinner/spinner.tsx +0 -15
- package/src/components/Splitter/docs-meta.json +0 -9
- package/src/components/Splitter/index.ts +0 -1
- package/src/components/Splitter/registry-meta.json +0 -19
- package/src/components/Splitter/splitter.css.ts +0 -70
- package/src/components/Splitter/splitter.tsx +0 -521
- package/src/components/Stack/docs-meta.json +0 -9
- package/src/components/Stack/index.ts +0 -1
- package/src/components/Stack/registry-meta.json +0 -20
- package/src/components/Stack/stack.css.ts +0 -42
- package/src/components/Stack/stack.doc.tsx +0 -57
- package/src/components/Stack/stack.tsx +0 -32
- package/src/components/Surface/docs-meta.json +0 -9
- package/src/components/Surface/index.ts +0 -1
- package/src/components/Surface/registry-meta.json +0 -20
- package/src/components/Surface/surface.css.ts +0 -40
- package/src/components/Surface/surface.doc.tsx +0 -32
- package/src/components/Surface/surface.tsx +0 -19
- package/src/components/Switch/docs-meta.json +0 -13
- package/src/components/Switch/index.ts +0 -1
- package/src/components/Switch/registry-meta.json +0 -20
- package/src/components/Switch/switch.css.ts +0 -47
- package/src/components/Switch/switch.demo.tsx +0 -26
- package/src/components/Switch/switch.doc.tsx +0 -25
- package/src/components/Switch/switch.tsx +0 -25
- package/src/components/Table/docs-meta.json +0 -12
- package/src/components/Table/index.ts +0 -2
- package/src/components/Table/registry-meta.json +0 -19
- package/src/components/Table/table.css.ts +0 -72
- package/src/components/Table/table.demo.tsx +0 -58
- package/src/components/Table/table.tsx +0 -116
- package/src/components/Tabs/docs-meta.json +0 -13
- package/src/components/Tabs/index.ts +0 -1
- package/src/components/Tabs/registry-meta.json +0 -19
- package/src/components/Tabs/tabs.css.ts +0 -259
- package/src/components/Tabs/tabs.demo.tsx +0 -33
- package/src/components/Tabs/tabs.doc.tsx +0 -62
- package/src/components/Tabs/tabs.tsx +0 -119
- package/src/components/Text/docs-meta.json +0 -9
- package/src/components/Text/index.ts +0 -2
- package/src/components/Text/registry-meta.json +0 -19
- package/src/components/Text/text.css.ts +0 -167
- package/src/components/Text/text.doc.tsx +0 -53
- package/src/components/Text/text.tsx +0 -64
- package/src/components/Textarea/docs-meta.json +0 -9
- package/src/components/Textarea/index.ts +0 -1
- package/src/components/Textarea/registry-meta.json +0 -19
- package/src/components/Textarea/textarea.css.ts +0 -66
- package/src/components/Textarea/textarea.doc.tsx +0 -23
- package/src/components/Textarea/textarea.tsx +0 -48
- package/src/components/Toggle/docs-meta.json +0 -12
- package/src/components/Toggle/index.ts +0 -1
- package/src/components/Toggle/registry-meta.json +0 -19
- package/src/components/Toggle/toggle.css.ts +0 -101
- package/src/components/Toggle/toggle.doc.tsx +0 -24
- package/src/components/Toggle/toggle.tsx +0 -60
- package/src/components/ToggleGroup/docs-meta.json +0 -9
- package/src/components/ToggleGroup/index.ts +0 -1
- package/src/components/ToggleGroup/registry-meta.json +0 -20
- package/src/components/ToggleGroup/toggle-group.css.ts +0 -77
- package/src/components/ToggleGroup/toggle-group.doc.tsx +0 -38
- package/src/components/ToggleGroup/toggle-group.tsx +0 -131
- package/src/components/index.ts +0 -53
- package/src/demos/accordion.demo.tsx +0 -41
- package/src/index.ts +0 -3
- package/src/utils/heights.ts +0 -16
- package/src/utils/sprinkles.css.ts +0 -251
- package/src/utils/types.ts +0 -20
- package/src/utils/ve-style.utils.ts +0 -24
- package/tsconfig.build.json +0 -14
- package/tsconfig.json +0 -10
- package/vite.config.ts +0 -47
- /package/{dist/assets → assets}/components.css +0 -0
- /package/{dist/components → components}/Card/card.js +0 -0
- /package/{dist/components → components}/CloseButton/close-button.css.js +0 -0
- /package/{dist/components → components}/CloseButton/close-button.js +0 -0
- /package/{dist/components → components}/CloseButton/index.js +0 -0
- /package/{dist/components → components}/ColorPicker/color-picker.js +0 -0
- /package/{dist/components → components}/ColorSwatch/color-swatch.js +0 -0
- /package/{dist/components → components}/CopyButton/copy-button.css.js +0 -0
- /package/{dist/components → components}/CopyButton/copy-button.js +0 -0
- /package/{dist/components → components}/CopyButton/index.js +0 -0
- /package/{dist/components → components}/Grid/grid.css.js +0 -0
- /package/{dist/components → components}/Icon/icon.css.js +0 -0
- /package/{dist/components → components}/IconButton/icon-button.css.js +0 -0
- /package/{dist/components → components}/IconButton/index.js +0 -0
- /package/{dist/components → components}/SegmentedControl/segmented-control.js +0 -0
- /package/{dist/components → components}/Spinner/spinner.css.js +0 -0
- /package/{dist/components → components}/Text/index.js +0 -0
- /package/{dist/components → components}/index.js +0 -0
- /package/{dist/index.js → index.js} +0 -0
- /package/{dist/src → src}/DataTable/data-table-column-toggle.d.ts +0 -0
- /package/{dist/src → src}/DataTable/data-table-empty.d.ts +0 -0
- /package/{dist/src → src}/DataTable/data-table-error.d.ts +0 -0
- /package/{dist/src → src}/DataTable/data-table-infinite-loader.d.ts +0 -0
- /package/{dist/src → src}/DataTable/data-table-loading.d.ts +0 -0
- /package/{dist/src → src}/DataTable/data-table-pagination.d.ts +0 -0
- /package/{dist/src → src}/DataTable/data-table-toolbar.d.ts +0 -0
- /package/{dist/src → src}/DataTable/data-table.css.d.ts +0 -0
- /package/{dist/src → src}/DataTable/data-table.d.ts +0 -0
- /package/{dist/src → src}/DataTable/index.d.ts +0 -0
- /package/{dist/src → src}/DataTable/types.d.ts +0 -0
- /package/{dist/src → src}/DataTable/use-infinite-scroll.d.ts +0 -0
- /package/{dist/src → src}/components/Accordion/accordion.css.d.ts +0 -0
- /package/{dist/src → src}/components/Accordion/accordion.d.ts +0 -0
- /package/{dist/src → src}/components/Accordion/index.d.ts +0 -0
- /package/{dist/src → src}/components/Alert/alert.css.d.ts +0 -0
- /package/{dist/src → src}/components/Alert/alert.d.ts +0 -0
- /package/{dist/src → src}/components/Alert/index.d.ts +0 -0
- /package/{dist/src → src}/components/AlertDialog/alert-dialog.css.d.ts +0 -0
- /package/{dist/src → src}/components/AlertDialog/alert-dialog.d.ts +0 -0
- /package/{dist/src → src}/components/AlertDialog/index.d.ts +0 -0
- /package/{dist/src → src}/components/Autocomplete/autocomplete.css.d.ts +0 -0
- /package/{dist/src → src}/components/Autocomplete/autocomplete.d.ts +0 -0
- /package/{dist/src → src}/components/Autocomplete/index.d.ts +0 -0
- /package/{dist/src → src}/components/Avatar/avatar.css.d.ts +0 -0
- /package/{dist/src → src}/components/Avatar/avatar.d.ts +0 -0
- /package/{dist/src → src}/components/Avatar/index.d.ts +0 -0
- /package/{dist/src → src}/components/Badge/badge.css.d.ts +0 -0
- /package/{dist/src → src}/components/Badge/badge.d.ts +0 -0
- /package/{dist/src → src}/components/Badge/index.d.ts +0 -0
- /package/{dist/src → src}/components/Box/box.css.d.ts +0 -0
- /package/{dist/src → src}/components/Box/box.d.ts +0 -0
- /package/{dist/src → src}/components/Box/index.d.ts +0 -0
- /package/{dist/src → src}/components/Breadcrumbs/breadcrumbs.css.d.ts +0 -0
- /package/{dist/src → src}/components/Breadcrumbs/breadcrumbs.d.ts +0 -0
- /package/{dist/src → src}/components/Breadcrumbs/index.d.ts +0 -0
- /package/{dist/src → src}/components/Button/button.css.d.ts +0 -0
- /package/{dist/src → src}/components/Button/button.d.ts +0 -0
- /package/{dist/src → src}/components/Button/index.d.ts +0 -0
- /package/{dist/src → src}/components/Calendar/calendar.css.d.ts +0 -0
- /package/{dist/src → src}/components/Calendar/calendar.d.ts +0 -0
- /package/{dist/src → src}/components/Calendar/index.d.ts +0 -0
- /package/{dist/src → src}/components/Card/card.d.ts +0 -0
- /package/{dist/src → src}/components/Card/index.d.ts +0 -0
- /package/{dist/src → src}/components/Checkbox/checkbox.css.d.ts +0 -0
- /package/{dist/src → src}/components/Checkbox/checkbox.d.ts +0 -0
- /package/{dist/src → src}/components/Checkbox/index.d.ts +0 -0
- /package/{dist/src → src}/components/CloseButton/close-button.css.d.ts +0 -0
- /package/{dist/src → src}/components/CloseButton/close-button.d.ts +0 -0
- /package/{dist/src → src}/components/CloseButton/index.d.ts +0 -0
- /package/{dist/src → src}/components/ColorPicker/color-picker.d.ts +0 -0
- /package/{dist/src → src}/components/ColorPicker/index.d.ts +0 -0
- /package/{dist/src → src}/components/ColorSwatch/color-swatch.d.ts +0 -0
- /package/{dist/src → src}/components/ColorSwatch/index.d.ts +0 -0
- /package/{dist/src → src}/components/Combobox/combobox.css.d.ts +0 -0
- /package/{dist/src → src}/components/Combobox/combobox.d.ts +0 -0
- /package/{dist/src → src}/components/Combobox/index.d.ts +0 -0
- /package/{dist/src → src}/components/Command/command.css.d.ts +0 -0
- /package/{dist/src → src}/components/Command/command.d.ts +0 -0
- /package/{dist/src → src}/components/Command/index.d.ts +0 -0
- /package/{dist/src → src}/components/Container/container.css.d.ts +0 -0
- /package/{dist/src → src}/components/Container/container.d.ts +0 -0
- /package/{dist/src → src}/components/Container/index.d.ts +0 -0
- /package/{dist/src → src}/components/CopyButton/copy-button.css.d.ts +0 -0
- /package/{dist/src → src}/components/CopyButton/copy-button.d.ts +0 -0
- /package/{dist/src → src}/components/CopyButton/index.d.ts +0 -0
- /package/{dist/src → src}/components/DatePicker/date-picker.d.ts +0 -0
- /package/{dist/src → src}/components/DatePicker/index.d.ts +0 -0
- /package/{dist/src → src}/components/Dialog/dialog.css.d.ts +0 -0
- /package/{dist/src → src}/components/Dialog/dialog.d.ts +0 -0
- /package/{dist/src → src}/components/Dialog/index.d.ts +0 -0
- /package/{dist/src → src}/components/Drawer/drawer.css.d.ts +0 -0
- /package/{dist/src → src}/components/Drawer/drawer.d.ts +0 -0
- /package/{dist/src → src}/components/Drawer/index.d.ts +0 -0
- /package/{dist/src → src}/components/Field/field.css.d.ts +0 -0
- /package/{dist/src → src}/components/Field/field.d.ts +0 -0
- /package/{dist/src → src}/components/Field/index.d.ts +0 -0
- /package/{dist/src → src}/components/Grid/grid.css.d.ts +0 -0
- /package/{dist/src → src}/components/Grid/grid.d.ts +0 -0
- /package/{dist/src → src}/components/Grid/index.d.ts +0 -0
- /package/{dist/src → src}/components/Icon/icon.css.d.ts +0 -0
- /package/{dist/src → src}/components/Icon/icon.d.ts +0 -0
- /package/{dist/src → src}/components/Icon/index.d.ts +0 -0
- /package/{dist/src → src}/components/IconButton/icon-button.css.d.ts +0 -0
- /package/{dist/src → src}/components/IconButton/icon-button.d.ts +0 -0
- /package/{dist/src → src}/components/IconButton/index.d.ts +0 -0
- /package/{dist/src → src}/components/Input/index.d.ts +0 -0
- /package/{dist/src → src}/components/Input/input.css.d.ts +0 -0
- /package/{dist/src → src}/components/Input/input.d.ts +0 -0
- /package/{dist/src → src}/components/InputGroup/index.d.ts +0 -0
- /package/{dist/src → src}/components/InputGroup/input-group.css.d.ts +0 -0
- /package/{dist/src → src}/components/InputGroup/input-group.d.ts +0 -0
- /package/{dist/src → src}/components/Menu/index.d.ts +0 -0
- /package/{dist/src → src}/components/Menu/menu.css.d.ts +0 -0
- /package/{dist/src → src}/components/Menu/menu.d.ts +0 -0
- /package/{dist/src → src}/components/OTPField/index.d.ts +0 -0
- /package/{dist/src → src}/components/OTPField/otp-field.css.d.ts +0 -0
- /package/{dist/src → src}/components/OTPField/otp-field.d.ts +0 -0
- /package/{dist/src → src}/components/Popover/index.d.ts +0 -0
- /package/{dist/src → src}/components/Popover/popover.css.d.ts +0 -0
- /package/{dist/src → src}/components/Popover/popover.d.ts +0 -0
- /package/{dist/src → src}/components/Progress/index.d.ts +0 -0
- /package/{dist/src → src}/components/Progress/progress.css.d.ts +0 -0
- /package/{dist/src → src}/components/Progress/progress.d.ts +0 -0
- /package/{dist/src → src}/components/Radio/index.d.ts +0 -0
- /package/{dist/src → src}/components/Radio/radio.css.d.ts +0 -0
- /package/{dist/src → src}/components/Radio/radio.d.ts +0 -0
- /package/{dist/src → src}/components/ScrollArea/index.d.ts +0 -0
- /package/{dist/src → src}/components/ScrollArea/scroll-area.css.d.ts +0 -0
- /package/{dist/src → src}/components/ScrollArea/scroll-area.d.ts +0 -0
- /package/{dist/src → src}/components/SegmentedControl/index.d.ts +0 -0
- /package/{dist/src → src}/components/SegmentedControl/segmented-control.d.ts +0 -0
- /package/{dist/src → src}/components/Select/index.d.ts +0 -0
- /package/{dist/src → src}/components/Select/select.css.d.ts +0 -0
- /package/{dist/src → src}/components/Select/select.d.ts +0 -0
- /package/{dist/src → src}/components/Separator/index.d.ts +0 -0
- /package/{dist/src → src}/components/Separator/separator.css.d.ts +0 -0
- /package/{dist/src → src}/components/Separator/separator.d.ts +0 -0
- /package/{dist/src → src}/components/Sheet/index.d.ts +0 -0
- /package/{dist/src → src}/components/Sheet/sheet.css.d.ts +0 -0
- /package/{dist/src → src}/components/Sheet/sheet.d.ts +0 -0
- /package/{dist/src → src}/components/Slider/index.d.ts +0 -0
- /package/{dist/src → src}/components/Slider/slider.css.d.ts +0 -0
- /package/{dist/src → src}/components/Slider/slider.d.ts +0 -0
- /package/{dist/src → src}/components/Spinner/index.d.ts +0 -0
- /package/{dist/src → src}/components/Spinner/spinner.css.d.ts +0 -0
- /package/{dist/src → src}/components/Spinner/spinner.d.ts +0 -0
- /package/{dist/src → src}/components/Splitter/index.d.ts +0 -0
- /package/{dist/src → src}/components/Splitter/splitter.css.d.ts +0 -0
- /package/{dist/src → src}/components/Splitter/splitter.d.ts +0 -0
- /package/{dist/src → src}/components/Stack/index.d.ts +0 -0
- /package/{dist/src → src}/components/Stack/stack.css.d.ts +0 -0
- /package/{dist/src → src}/components/Stack/stack.d.ts +0 -0
- /package/{dist/src → src}/components/Surface/index.d.ts +0 -0
- /package/{dist/src → src}/components/Surface/surface.css.d.ts +0 -0
- /package/{dist/src → src}/components/Surface/surface.d.ts +0 -0
- /package/{dist/src → src}/components/Switch/index.d.ts +0 -0
- /package/{dist/src → src}/components/Switch/switch.css.d.ts +0 -0
- /package/{dist/src → src}/components/Switch/switch.d.ts +0 -0
- /package/{dist/src → src}/components/Table/index.d.ts +0 -0
- /package/{dist/src → src}/components/Table/table.css.d.ts +0 -0
- /package/{dist/src → src}/components/Table/table.d.ts +0 -0
- /package/{dist/src → src}/components/Tabs/index.d.ts +0 -0
- /package/{dist/src → src}/components/Tabs/tabs.css.d.ts +0 -0
- /package/{dist/src → src}/components/Tabs/tabs.d.ts +0 -0
- /package/{dist/src → src}/components/Text/index.d.ts +0 -0
- /package/{dist/src → src}/components/Text/text.css.d.ts +0 -0
- /package/{dist/src → src}/components/Text/text.d.ts +0 -0
- /package/{dist/src → src}/components/Textarea/index.d.ts +0 -0
- /package/{dist/src → src}/components/Textarea/textarea.css.d.ts +0 -0
- /package/{dist/src → src}/components/Textarea/textarea.d.ts +0 -0
- /package/{dist/src → src}/components/Toggle/index.d.ts +0 -0
- /package/{dist/src → src}/components/Toggle/toggle.css.d.ts +0 -0
- /package/{dist/src → src}/components/Toggle/toggle.d.ts +0 -0
- /package/{dist/src → src}/components/ToggleGroup/index.d.ts +0 -0
- /package/{dist/src → src}/components/ToggleGroup/toggle-group.css.d.ts +0 -0
- /package/{dist/src → src}/components/ToggleGroup/toggle-group.d.ts +0 -0
- /package/{dist/src → src}/components/index.d.ts +0 -0
- /package/{dist/src → src}/index.d.ts +0 -0
- /package/{dist/src → src}/utils/heights.d.ts +0 -0
- /package/{dist/src → src}/utils/sprinkles.css.d.ts +0 -0
- /package/{dist/src → src}/utils/types.d.ts +0 -0
- /package/{dist/src → src}/utils/ve-style.utils.d.ts +0 -0
- /package/{dist/utils → utils}/ve-style.utils.js +0 -0
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { Field as FieldPrimitive } from "@base-ui/react/field";
|
|
4
|
-
import clsx from "clsx";
|
|
5
|
-
import type React from "react";
|
|
6
|
-
import { field, label, item, description, error } from "./field.css";
|
|
7
|
-
|
|
8
|
-
export function Field({
|
|
9
|
-
className,
|
|
10
|
-
style,
|
|
11
|
-
...props
|
|
12
|
-
}: FieldPrimitive.Root.Props & {
|
|
13
|
-
className?: string;
|
|
14
|
-
style?: React.CSSProperties;
|
|
15
|
-
}): React.ReactElement {
|
|
16
|
-
return (
|
|
17
|
-
<FieldPrimitive.Root
|
|
18
|
-
className={clsx(field, className)}
|
|
19
|
-
style={style}
|
|
20
|
-
data-slot="field"
|
|
21
|
-
{...props}
|
|
22
|
-
/>
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export function FieldLabel({
|
|
27
|
-
className,
|
|
28
|
-
style,
|
|
29
|
-
...props
|
|
30
|
-
}: FieldPrimitive.Label.Props & {
|
|
31
|
-
className?: string;
|
|
32
|
-
style?: React.CSSProperties;
|
|
33
|
-
}): React.ReactElement {
|
|
34
|
-
return (
|
|
35
|
-
<FieldPrimitive.Label
|
|
36
|
-
className={clsx(label, className)}
|
|
37
|
-
style={style}
|
|
38
|
-
data-slot="field-label"
|
|
39
|
-
{...props}
|
|
40
|
-
/>
|
|
41
|
-
);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export function FieldItem({
|
|
45
|
-
className,
|
|
46
|
-
style,
|
|
47
|
-
...props
|
|
48
|
-
}: FieldPrimitive.Item.Props & {
|
|
49
|
-
className?: string;
|
|
50
|
-
style?: React.CSSProperties;
|
|
51
|
-
}): React.ReactElement {
|
|
52
|
-
return (
|
|
53
|
-
<FieldPrimitive.Item
|
|
54
|
-
className={clsx(item, className)}
|
|
55
|
-
style={style}
|
|
56
|
-
data-slot="field-item"
|
|
57
|
-
{...props}
|
|
58
|
-
/>
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function FieldDescription({
|
|
63
|
-
className,
|
|
64
|
-
style,
|
|
65
|
-
...props
|
|
66
|
-
}: FieldPrimitive.Description.Props & {
|
|
67
|
-
className?: string;
|
|
68
|
-
style?: React.CSSProperties;
|
|
69
|
-
}): React.ReactElement {
|
|
70
|
-
return (
|
|
71
|
-
<FieldPrimitive.Description
|
|
72
|
-
className={clsx(description, className)}
|
|
73
|
-
style={style}
|
|
74
|
-
data-slot="field-description"
|
|
75
|
-
{...props}
|
|
76
|
-
/>
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
function FieldError({
|
|
81
|
-
className,
|
|
82
|
-
style,
|
|
83
|
-
...props
|
|
84
|
-
}: FieldPrimitive.Error.Props & {
|
|
85
|
-
className?: string;
|
|
86
|
-
style?: React.CSSProperties;
|
|
87
|
-
}): React.ReactElement {
|
|
88
|
-
return (
|
|
89
|
-
<FieldPrimitive.Error
|
|
90
|
-
className={clsx(error, className)}
|
|
91
|
-
style={style}
|
|
92
|
-
data-slot="field-error"
|
|
93
|
-
{...props}
|
|
94
|
-
/>
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export const FieldControl: typeof FieldPrimitive.Control = FieldPrimitive.Control;
|
|
99
|
-
export const FieldValidity: typeof FieldPrimitive.Validity = FieldPrimitive.Validity;
|
|
100
|
-
|
|
101
|
-
export { FieldError };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./field";
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "field",
|
|
4
|
-
"type": "registry:ui",
|
|
5
|
-
"title": "Field",
|
|
6
|
-
"description": "A StyleX Drawer component.",
|
|
7
|
-
"registryDependencies": ["button", "scroll-area"],
|
|
8
|
-
"files": [
|
|
9
|
-
{
|
|
10
|
-
"file": "field.tsx",
|
|
11
|
-
"type": "registry:ui",
|
|
12
|
-
"target": "@ui/Field/field.tsx"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"file": "field.css.ts",
|
|
16
|
-
"type": "registry:file",
|
|
17
|
-
"target": "@ui/Field/field.css.ts"
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://blenx-ui.vercel.app/docs/docs-meta.schema.json",
|
|
3
|
-
"title": "Grid",
|
|
4
|
-
"description": "A CSS Grid layout component with column presets, gap tokens, and alignment control. Includes a GridItem sub-component for spanning.",
|
|
5
|
-
"category": "Layout",
|
|
6
|
-
"status": "experimental",
|
|
7
|
-
"keywords": ["grid", "layout", "columns", "css grid", "responsive"],
|
|
8
|
-
"related": ["Box", "Stack"]
|
|
9
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { style } from "@vanilla-extract/css";
|
|
2
|
-
|
|
3
|
-
const spanEntries: Record<number, { gridColumn: string }> = {};
|
|
4
|
-
for (let i = 1; i <= 12; i++) {
|
|
5
|
-
spanEntries[i] = { gridColumn: `span ${i} / span ${i}` };
|
|
6
|
-
}
|
|
7
|
-
export const gridSpanVariants = spanEntries;
|
|
8
|
-
|
|
9
|
-
export const gridItem = style({
|
|
10
|
-
boxSizing: "border-box",
|
|
11
|
-
minWidth: 0,
|
|
12
|
-
});
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { Stack } from "../Stack/stack";
|
|
2
|
-
import { Text } from "../Text/text";
|
|
3
|
-
import { Grid, GridItem } from "./grid";
|
|
4
|
-
|
|
5
|
-
export function ColumnsStory() {
|
|
6
|
-
return (
|
|
7
|
-
<Stack gap="medium">
|
|
8
|
-
<Text variant="h4">3 columns</Text>
|
|
9
|
-
<Grid columns={3} gap="small">
|
|
10
|
-
<GridItem>
|
|
11
|
-
<div
|
|
12
|
-
style={{
|
|
13
|
-
background: "var(--surface)",
|
|
14
|
-
padding: 16,
|
|
15
|
-
borderRadius: 8,
|
|
16
|
-
border: "1px solid var(--border)",
|
|
17
|
-
}}
|
|
18
|
-
>
|
|
19
|
-
1
|
|
20
|
-
</div>
|
|
21
|
-
</GridItem>
|
|
22
|
-
<GridItem>
|
|
23
|
-
<div
|
|
24
|
-
style={{
|
|
25
|
-
background: "var(--surface)",
|
|
26
|
-
padding: 16,
|
|
27
|
-
borderRadius: 8,
|
|
28
|
-
border: "1px solid var(--border)",
|
|
29
|
-
}}
|
|
30
|
-
>
|
|
31
|
-
2
|
|
32
|
-
</div>
|
|
33
|
-
</GridItem>
|
|
34
|
-
<GridItem>
|
|
35
|
-
<div
|
|
36
|
-
style={{
|
|
37
|
-
background: "var(--surface)",
|
|
38
|
-
padding: 16,
|
|
39
|
-
borderRadius: 8,
|
|
40
|
-
border: "1px solid var(--border)",
|
|
41
|
-
}}
|
|
42
|
-
>
|
|
43
|
-
3
|
|
44
|
-
</div>
|
|
45
|
-
</GridItem>
|
|
46
|
-
<GridItem>
|
|
47
|
-
<div
|
|
48
|
-
style={{
|
|
49
|
-
background: "var(--surface)",
|
|
50
|
-
padding: 16,
|
|
51
|
-
borderRadius: 8,
|
|
52
|
-
border: "1px solid var(--border)",
|
|
53
|
-
}}
|
|
54
|
-
>
|
|
55
|
-
4
|
|
56
|
-
</div>
|
|
57
|
-
</GridItem>
|
|
58
|
-
<GridItem>
|
|
59
|
-
<div
|
|
60
|
-
style={{
|
|
61
|
-
background: "var(--surface)",
|
|
62
|
-
padding: 16,
|
|
63
|
-
borderRadius: 8,
|
|
64
|
-
border: "1px solid var(--border)",
|
|
65
|
-
}}
|
|
66
|
-
>
|
|
67
|
-
5
|
|
68
|
-
</div>
|
|
69
|
-
</GridItem>
|
|
70
|
-
<GridItem>
|
|
71
|
-
<div
|
|
72
|
-
style={{
|
|
73
|
-
background: "var(--surface)",
|
|
74
|
-
padding: 16,
|
|
75
|
-
borderRadius: 8,
|
|
76
|
-
border: "1px solid var(--border)",
|
|
77
|
-
}}
|
|
78
|
-
>
|
|
79
|
-
6
|
|
80
|
-
</div>
|
|
81
|
-
</GridItem>
|
|
82
|
-
</Grid>
|
|
83
|
-
<Text variant="h4">4 columns with spans</Text>
|
|
84
|
-
<Grid columns={4} gap="small">
|
|
85
|
-
<GridItem span={2}>
|
|
86
|
-
<div
|
|
87
|
-
style={{
|
|
88
|
-
background: "var(--surface)",
|
|
89
|
-
padding: 16,
|
|
90
|
-
borderRadius: 8,
|
|
91
|
-
border: "1px solid var(--border)",
|
|
92
|
-
}}
|
|
93
|
-
>
|
|
94
|
-
Span 2
|
|
95
|
-
</div>
|
|
96
|
-
</GridItem>
|
|
97
|
-
<GridItem>
|
|
98
|
-
<div
|
|
99
|
-
style={{
|
|
100
|
-
background: "var(--surface)",
|
|
101
|
-
padding: 16,
|
|
102
|
-
borderRadius: 8,
|
|
103
|
-
border: "1px solid var(--border)",
|
|
104
|
-
}}
|
|
105
|
-
>
|
|
106
|
-
1 col
|
|
107
|
-
</div>
|
|
108
|
-
</GridItem>
|
|
109
|
-
<GridItem>
|
|
110
|
-
<div
|
|
111
|
-
style={{
|
|
112
|
-
background: "var(--surface)",
|
|
113
|
-
padding: 16,
|
|
114
|
-
borderRadius: 8,
|
|
115
|
-
border: "1px solid var(--border)",
|
|
116
|
-
}}
|
|
117
|
-
>
|
|
118
|
-
1 col
|
|
119
|
-
</div>
|
|
120
|
-
</GridItem>
|
|
121
|
-
<GridItem>
|
|
122
|
-
<div
|
|
123
|
-
style={{
|
|
124
|
-
background: "var(--surface)",
|
|
125
|
-
padding: 16,
|
|
126
|
-
borderRadius: 8,
|
|
127
|
-
border: "1px solid var(--border)",
|
|
128
|
-
}}
|
|
129
|
-
>
|
|
130
|
-
1 col
|
|
131
|
-
</div>
|
|
132
|
-
</GridItem>
|
|
133
|
-
<GridItem span={3}>
|
|
134
|
-
<div
|
|
135
|
-
style={{
|
|
136
|
-
background: "var(--surface)",
|
|
137
|
-
padding: 16,
|
|
138
|
-
borderRadius: 8,
|
|
139
|
-
border: "1px solid var(--border)",
|
|
140
|
-
}}
|
|
141
|
-
>
|
|
142
|
-
Span 3
|
|
143
|
-
</div>
|
|
144
|
-
</GridItem>
|
|
145
|
-
</Grid>
|
|
146
|
-
</Stack>
|
|
147
|
-
);
|
|
148
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import clsx from "clsx";
|
|
2
|
-
import { Box, type BoxProps } from "../Box/box";
|
|
3
|
-
import { gridSprinkles } from "../../utils/sprinkles.css";
|
|
4
|
-
import { gridSpanVariants, gridItem } from "./grid.css";
|
|
5
|
-
|
|
6
|
-
type GridSprinkles = Parameters<typeof gridSprinkles>[0];
|
|
7
|
-
|
|
8
|
-
export type GridProps = Omit<BoxProps, "columns" | "gap" | "align"> & GridSprinkles;
|
|
9
|
-
|
|
10
|
-
export type GridItemProps = BoxProps & {
|
|
11
|
-
span?: keyof typeof gridSpanVariants;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
function Grid({
|
|
15
|
-
columns,
|
|
16
|
-
flow,
|
|
17
|
-
align,
|
|
18
|
-
justify,
|
|
19
|
-
gap,
|
|
20
|
-
rowGap,
|
|
21
|
-
columnGap,
|
|
22
|
-
className,
|
|
23
|
-
style,
|
|
24
|
-
...props
|
|
25
|
-
}: GridProps) {
|
|
26
|
-
return (
|
|
27
|
-
<Box
|
|
28
|
-
display="grid"
|
|
29
|
-
className={clsx(
|
|
30
|
-
gridSprinkles({
|
|
31
|
-
columns,
|
|
32
|
-
flow,
|
|
33
|
-
align,
|
|
34
|
-
justify,
|
|
35
|
-
gap,
|
|
36
|
-
rowGap,
|
|
37
|
-
columnGap,
|
|
38
|
-
}),
|
|
39
|
-
className,
|
|
40
|
-
)}
|
|
41
|
-
style={style}
|
|
42
|
-
{...props}
|
|
43
|
-
/>
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function GridItem({ span: spanProp, className, style, ...props }: GridItemProps) {
|
|
48
|
-
return (
|
|
49
|
-
<Box
|
|
50
|
-
className={clsx(gridItem, spanProp && gridSpanVariants[spanProp], className)}
|
|
51
|
-
style={style}
|
|
52
|
-
{...props}
|
|
53
|
-
/>
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export { Grid, GridItem };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./grid";
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "grid",
|
|
4
|
-
"type": "registry:ui",
|
|
5
|
-
"title": "Grid",
|
|
6
|
-
"description": "A StyleX Grid component.",
|
|
7
|
-
"registryDependencies": ["box"],
|
|
8
|
-
"files": [
|
|
9
|
-
{
|
|
10
|
-
"file": "grid.tsx",
|
|
11
|
-
"type": "registry:ui",
|
|
12
|
-
"target": "@ui/Grid/grid.tsx"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"file": "grid.css.ts",
|
|
16
|
-
"type": "registry:file",
|
|
17
|
-
"target": "@ui/Grid/grid.css.ts"
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://blenx-ui.vercel.app/docs/docs-meta.schema.json",
|
|
3
|
-
"title": "Icon",
|
|
4
|
-
"description": "A standardized wrapper for SVG icons with token-based sizing and theme-aware color support. Built for use inside buttons, inputs, badges, and other UI components.",
|
|
5
|
-
"category": "Utility",
|
|
6
|
-
"status": "stable",
|
|
7
|
-
"keywords": ["icon", "svg", "size", "color", "wrapper"],
|
|
8
|
-
"related": ["IconButton", "Button", "Badge"],
|
|
9
|
-
"accessibility": {
|
|
10
|
-
"keyboard": [],
|
|
11
|
-
"aria": ["aria-hidden"]
|
|
12
|
-
}
|
|
13
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CheckIcon,
|
|
3
|
-
InfoIcon,
|
|
4
|
-
WarningIcon,
|
|
5
|
-
XIcon,
|
|
6
|
-
UserIcon,
|
|
7
|
-
PaperPlaneTiltIcon,
|
|
8
|
-
} from "@phosphor-icons/react";
|
|
9
|
-
import { HStack, VStack } from "../Stack/stack";
|
|
10
|
-
import { Text } from "../Text/text";
|
|
11
|
-
import { Icon } from "./icon";
|
|
12
|
-
|
|
13
|
-
export function IconDemo() {
|
|
14
|
-
return (
|
|
15
|
-
<VStack gap="medium">
|
|
16
|
-
<VStack gap="small">
|
|
17
|
-
<Text variant="h6">Sizes</Text>
|
|
18
|
-
<HStack align="center" gap="small">
|
|
19
|
-
<Icon>
|
|
20
|
-
<UserIcon size={24} />
|
|
21
|
-
</Icon>
|
|
22
|
-
<Icon>
|
|
23
|
-
<UserIcon size={24} />
|
|
24
|
-
</Icon>
|
|
25
|
-
<Icon>
|
|
26
|
-
<UserIcon />
|
|
27
|
-
</Icon>
|
|
28
|
-
<Icon>
|
|
29
|
-
<UserIcon size={44} />
|
|
30
|
-
</Icon>
|
|
31
|
-
<Icon>
|
|
32
|
-
<UserIcon size={64} />
|
|
33
|
-
</Icon>
|
|
34
|
-
</HStack>
|
|
35
|
-
</VStack>
|
|
36
|
-
|
|
37
|
-
<VStack gap="small">
|
|
38
|
-
<Text variant="h6">Colors</Text>
|
|
39
|
-
<HStack align="center" gap="small">
|
|
40
|
-
<Icon color="primary">
|
|
41
|
-
<PaperPlaneTiltIcon />
|
|
42
|
-
</Icon>
|
|
43
|
-
<Icon color="secondary">
|
|
44
|
-
<PaperPlaneTiltIcon />
|
|
45
|
-
</Icon>
|
|
46
|
-
<Icon>
|
|
47
|
-
<PaperPlaneTiltIcon />
|
|
48
|
-
</Icon>
|
|
49
|
-
<Icon color="error">
|
|
50
|
-
<XIcon />
|
|
51
|
-
</Icon>
|
|
52
|
-
<Icon color="success">
|
|
53
|
-
<CheckIcon />
|
|
54
|
-
</Icon>
|
|
55
|
-
<Icon color="warning">
|
|
56
|
-
<WarningIcon />
|
|
57
|
-
</Icon>
|
|
58
|
-
<Icon color="info">
|
|
59
|
-
<InfoIcon />
|
|
60
|
-
</Icon>
|
|
61
|
-
</HStack>
|
|
62
|
-
</VStack>
|
|
63
|
-
|
|
64
|
-
<VStack gap="small">
|
|
65
|
-
<Text variant="h6">Background Colors</Text>
|
|
66
|
-
<HStack align="center" gap="small">
|
|
67
|
-
<Icon backgroundColor="primary" color="primary" radius="small">
|
|
68
|
-
<InfoIcon />
|
|
69
|
-
</Icon>
|
|
70
|
-
<Icon backgroundColor="error" color="error" radius="small">
|
|
71
|
-
<XIcon />
|
|
72
|
-
</Icon>
|
|
73
|
-
<Icon backgroundColor="success" color="success" radius="small">
|
|
74
|
-
<CheckIcon />
|
|
75
|
-
</Icon>
|
|
76
|
-
<Icon backgroundColor="warning" color="warning" radius="small">
|
|
77
|
-
<WarningIcon />
|
|
78
|
-
</Icon>
|
|
79
|
-
<Icon backgroundColor="info" color="info" radius="small">
|
|
80
|
-
<InfoIcon />
|
|
81
|
-
</Icon>
|
|
82
|
-
</HStack>
|
|
83
|
-
</VStack>
|
|
84
|
-
|
|
85
|
-
<VStack gap="small">
|
|
86
|
-
<Text variant="h6">Color Inherited from Parent</Text>
|
|
87
|
-
<HStack align="center" gap="small">
|
|
88
|
-
<Icon>
|
|
89
|
-
<UserIcon />
|
|
90
|
-
</Icon>
|
|
91
|
-
</HStack>
|
|
92
|
-
</VStack>
|
|
93
|
-
</VStack>
|
|
94
|
-
);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export const demos = [{ name: "Default", component: IconDemo }];
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import clsx from "clsx";
|
|
2
|
-
import { iconWrapper } from "./icon.css";
|
|
3
|
-
import { Box, type BoxProps } from "../Box/box";
|
|
4
|
-
|
|
5
|
-
type IconProps = BoxProps;
|
|
6
|
-
|
|
7
|
-
export function Icon({ children, className, style, ...props }: IconProps) {
|
|
8
|
-
return (
|
|
9
|
-
<Box className={clsx(iconWrapper, className)} style={style} {...props}>
|
|
10
|
-
{children}
|
|
11
|
-
</Box>
|
|
12
|
-
);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export type { IconProps };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./icon";
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "icon",
|
|
4
|
-
"type": "registry:ui",
|
|
5
|
-
"title": "Icon",
|
|
6
|
-
"description": "Icon component from Blenx UI.",
|
|
7
|
-
"registryDependencies": [],
|
|
8
|
-
"files": [
|
|
9
|
-
{
|
|
10
|
-
"file": "icon.tsx",
|
|
11
|
-
"type": "registry:ui",
|
|
12
|
-
"target": "@ui/Icon/icon.tsx"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"file": "icon.css.ts",
|
|
16
|
-
"type": "registry:file",
|
|
17
|
-
"target": "@ui/Icon/icon.css.ts"
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://blenx-ui.vercel.app/docs/docs-meta.schema.json",
|
|
3
|
-
"title": "IconButton",
|
|
4
|
-
"description": "A square icon-only button with accessible label requirements, variant and intent styling, loading state, and consistent sizing.",
|
|
5
|
-
"category": "Forms",
|
|
6
|
-
"status": "stable",
|
|
7
|
-
"keywords": ["icon", "button", "icon-button", "action", "toolbar"],
|
|
8
|
-
"related": ["Icon", "Button", "Spinner"],
|
|
9
|
-
"accessibility": {
|
|
10
|
-
"keyboard": ["Enter", "Space"],
|
|
11
|
-
"aria": ["aria-label", "aria-disabled"]
|
|
12
|
-
}
|
|
13
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { PaperPlaneTiltIcon, TrashIcon, ArrowClockwiseIcon, BellIcon } from "@phosphor-icons/react";
|
|
2
|
-
import { HStack, VStack } from "../Stack/stack";
|
|
3
|
-
import { Text } from "../Text/text";
|
|
4
|
-
import { IconButton } from "./icon-button";
|
|
5
|
-
|
|
6
|
-
export function IconButtonDemo() {
|
|
7
|
-
return (
|
|
8
|
-
<VStack gap="medium">
|
|
9
|
-
<VStack gap="small">
|
|
10
|
-
<Text variant="h6">Variants</Text>
|
|
11
|
-
<HStack wrap>
|
|
12
|
-
<IconButton aria-label="Send" variant="solid">
|
|
13
|
-
<PaperPlaneTiltIcon />
|
|
14
|
-
</IconButton>
|
|
15
|
-
<IconButton aria-label="Send" variant="soft">
|
|
16
|
-
<PaperPlaneTiltIcon />
|
|
17
|
-
</IconButton>
|
|
18
|
-
<IconButton aria-label="Send" variant="outline">
|
|
19
|
-
<PaperPlaneTiltIcon />
|
|
20
|
-
</IconButton>
|
|
21
|
-
<IconButton aria-label="Send" variant="ghost">
|
|
22
|
-
<PaperPlaneTiltIcon />
|
|
23
|
-
</IconButton>
|
|
24
|
-
<IconButton aria-label="Send" variant="soft">
|
|
25
|
-
<PaperPlaneTiltIcon />
|
|
26
|
-
</IconButton>
|
|
27
|
-
<IconButton aria-label="Send" variant="link">
|
|
28
|
-
<PaperPlaneTiltIcon />
|
|
29
|
-
</IconButton>
|
|
30
|
-
</HStack>
|
|
31
|
-
</VStack>
|
|
32
|
-
|
|
33
|
-
<VStack gap="small">
|
|
34
|
-
<Text variant="h6">Intents</Text>
|
|
35
|
-
<HStack wrap>
|
|
36
|
-
<IconButton aria-label="Send" intent="primary">
|
|
37
|
-
<PaperPlaneTiltIcon />
|
|
38
|
-
</IconButton>
|
|
39
|
-
<IconButton aria-label="Delete" intent="danger">
|
|
40
|
-
<TrashIcon />
|
|
41
|
-
</IconButton>
|
|
42
|
-
<IconButton aria-label="Success" intent="success">
|
|
43
|
-
<BellIcon />
|
|
44
|
-
</IconButton>
|
|
45
|
-
<IconButton aria-label="Warning" intent="warning">
|
|
46
|
-
<BellIcon />
|
|
47
|
-
</IconButton>
|
|
48
|
-
<IconButton aria-label="Info" intent="info">
|
|
49
|
-
<BellIcon />
|
|
50
|
-
</IconButton>
|
|
51
|
-
</HStack>
|
|
52
|
-
</VStack>
|
|
53
|
-
|
|
54
|
-
<VStack gap="small">
|
|
55
|
-
<Text variant="h6">Variant + Intent</Text>
|
|
56
|
-
<HStack wrap>
|
|
57
|
-
<IconButton aria-label="Delete" variant="ghost" intent="danger">
|
|
58
|
-
<TrashIcon />
|
|
59
|
-
</IconButton>
|
|
60
|
-
<IconButton aria-label="Delete" variant="outline" intent="danger">
|
|
61
|
-
<TrashIcon />
|
|
62
|
-
</IconButton>
|
|
63
|
-
<IconButton aria-label="Delete" variant="soft" intent="danger">
|
|
64
|
-
<TrashIcon />
|
|
65
|
-
</IconButton>
|
|
66
|
-
</HStack>
|
|
67
|
-
</VStack>
|
|
68
|
-
|
|
69
|
-
<VStack gap="small">
|
|
70
|
-
<Text variant="h6">Sizes</Text>
|
|
71
|
-
<HStack wrap align="center">
|
|
72
|
-
<IconButton aria-label="Send" variant="outline">
|
|
73
|
-
<PaperPlaneTiltIcon />
|
|
74
|
-
</IconButton>
|
|
75
|
-
<IconButton aria-label="Send" variant="outline">
|
|
76
|
-
<PaperPlaneTiltIcon />
|
|
77
|
-
</IconButton>
|
|
78
|
-
<IconButton aria-label="Send" variant="outline">
|
|
79
|
-
<PaperPlaneTiltIcon />
|
|
80
|
-
</IconButton>
|
|
81
|
-
<IconButton aria-label="Send" variant="outline">
|
|
82
|
-
<PaperPlaneTiltIcon />
|
|
83
|
-
</IconButton>
|
|
84
|
-
</HStack>
|
|
85
|
-
</VStack>
|
|
86
|
-
|
|
87
|
-
<VStack gap="small">
|
|
88
|
-
<Text variant="h6">States</Text>
|
|
89
|
-
<HStack wrap>
|
|
90
|
-
<IconButton aria-label="Refresh" loading>
|
|
91
|
-
<ArrowClockwiseIcon />
|
|
92
|
-
</IconButton>
|
|
93
|
-
<IconButton aria-label="Send" disabled>
|
|
94
|
-
<PaperPlaneTiltIcon />
|
|
95
|
-
</IconButton>
|
|
96
|
-
</HStack>
|
|
97
|
-
</VStack>
|
|
98
|
-
</VStack>
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export const demos = [{ name: "Default", component: IconButtonDemo }];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import clsx from "clsx";
|
|
2
|
-
import { Button, type ButtonProps } from "../Button/button";
|
|
3
|
-
import { base } from "./icon-button.css";
|
|
4
|
-
|
|
5
|
-
type IconButtonProps = Omit<ButtonProps, "size">;
|
|
6
|
-
|
|
7
|
-
export function IconButton({ className, ...props }: IconButtonProps) {
|
|
8
|
-
return <Button {...props} size="icon" className={clsx(base, className)} />;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export type { IconButtonProps };
|