@raystack/apsara 1.0.0-rc.0 → 1.0.0-rc.2
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/accordion/accordion-content.cjs +1 -2
- package/dist/components/accordion/accordion-content.cjs.map +1 -1
- package/dist/components/accordion/accordion-content.d.ts +5 -1
- package/dist/components/accordion/accordion-content.d.ts.map +1 -1
- package/dist/components/accordion/accordion-content.js +1 -2
- package/dist/components/accordion/accordion-content.js.map +1 -1
- package/dist/components/accordion/accordion-item.cjs +1 -2
- package/dist/components/accordion/accordion-item.cjs.map +1 -1
- package/dist/components/accordion/accordion-item.d.ts +5 -1
- package/dist/components/accordion/accordion-item.d.ts.map +1 -1
- package/dist/components/accordion/accordion-item.js +1 -2
- package/dist/components/accordion/accordion-item.js.map +1 -1
- package/dist/components/accordion/accordion-root.cjs +4 -5
- package/dist/components/accordion/accordion-root.cjs.map +1 -1
- package/dist/components/accordion/accordion-root.d.ts +4 -1
- package/dist/components/accordion/accordion-root.d.ts.map +1 -1
- package/dist/components/accordion/accordion-root.js +4 -5
- package/dist/components/accordion/accordion-root.js.map +1 -1
- package/dist/components/accordion/accordion-trigger.cjs +1 -2
- package/dist/components/accordion/accordion-trigger.cjs.map +1 -1
- package/dist/components/accordion/accordion-trigger.d.ts +5 -1
- package/dist/components/accordion/accordion-trigger.d.ts.map +1 -1
- package/dist/components/accordion/accordion-trigger.js +1 -2
- package/dist/components/accordion/accordion-trigger.js.map +1 -1
- package/dist/components/accordion/accordion.d.ts +16 -14
- package/dist/components/accordion/accordion.d.ts.map +1 -1
- package/dist/components/alert-dialog/__tests__/alert-dialog.test.d.ts +2 -0
- package/dist/components/alert-dialog/__tests__/alert-dialog.test.d.ts.map +1 -0
- package/dist/components/alert-dialog/alert-dialog-content.cjs +16 -0
- package/dist/components/alert-dialog/alert-dialog-content.cjs.map +1 -0
- package/dist/components/alert-dialog/alert-dialog-content.d.ts +18 -0
- package/dist/components/alert-dialog/alert-dialog-content.d.ts.map +1 -0
- package/dist/components/alert-dialog/alert-dialog-content.js +14 -0
- package/dist/components/alert-dialog/alert-dialog-content.js.map +1 -0
- package/dist/components/alert-dialog/alert-dialog-misc.cjs +36 -0
- package/dist/components/alert-dialog/alert-dialog-misc.cjs.map +1 -0
- package/dist/components/alert-dialog/alert-dialog-misc.d.ts +28 -0
- package/dist/components/alert-dialog/alert-dialog-misc.d.ts.map +1 -0
- package/dist/components/alert-dialog/alert-dialog-misc.js +29 -0
- package/dist/components/alert-dialog/alert-dialog-misc.js.map +1 -0
- package/dist/components/alert-dialog/alert-dialog.cjs +21 -0
- package/dist/components/alert-dialog/alert-dialog.cjs.map +1 -0
- package/dist/components/alert-dialog/alert-dialog.d.ts +62 -0
- package/dist/components/alert-dialog/alert-dialog.d.ts.map +1 -0
- package/dist/components/alert-dialog/alert-dialog.js +19 -0
- package/dist/components/alert-dialog/alert-dialog.js.map +1 -0
- package/dist/components/alert-dialog/index.d.ts +2 -0
- package/dist/components/alert-dialog/index.d.ts.map +1 -0
- package/dist/components/amount/amount.cjs +4 -5
- package/dist/components/amount/amount.cjs.map +1 -1
- package/dist/components/amount/amount.d.ts +6 -2
- package/dist/components/amount/amount.d.ts.map +1 -1
- package/dist/components/amount/amount.js +4 -5
- package/dist/components/amount/amount.js.map +1 -1
- package/dist/components/announcement-bar/announcement-bar.cjs +3 -2
- package/dist/components/announcement-bar/announcement-bar.cjs.map +1 -1
- package/dist/components/announcement-bar/announcement-bar.d.ts +6 -3
- package/dist/components/announcement-bar/announcement-bar.d.ts.map +1 -1
- package/dist/components/announcement-bar/announcement-bar.js +3 -2
- package/dist/components/announcement-bar/announcement-bar.js.map +1 -1
- package/dist/components/avatar/avatar.cjs +6 -5
- package/dist/components/avatar/avatar.cjs.map +1 -1
- package/dist/components/avatar/avatar.d.ts +12 -6
- package/dist/components/avatar/avatar.d.ts.map +1 -1
- package/dist/components/avatar/avatar.js +7 -6
- package/dist/components/avatar/avatar.js.map +1 -1
- package/dist/components/badge/badge.cjs +15 -15
- package/dist/components/badge/badge.cjs.map +1 -1
- package/dist/components/badge/badge.d.ts +5 -5
- package/dist/components/badge/badge.d.ts.map +1 -1
- package/dist/components/badge/badge.js +15 -15
- package/dist/components/badge/badge.js.map +1 -1
- package/dist/components/box/box.cjs +3 -7
- package/dist/components/box/box.cjs.map +1 -1
- package/dist/components/box/box.d.ts +2 -8
- package/dist/components/box/box.d.ts.map +1 -1
- package/dist/components/box/box.js +3 -7
- package/dist/components/box/box.js.map +1 -1
- package/dist/components/breadcrumb/breadcrumb-item.cjs +28 -14
- package/dist/components/breadcrumb/breadcrumb-item.cjs.map +1 -1
- package/dist/components/breadcrumb/breadcrumb-item.d.ts +19 -9
- package/dist/components/breadcrumb/breadcrumb-item.d.ts.map +1 -1
- package/dist/components/breadcrumb/breadcrumb-item.js +29 -15
- package/dist/components/breadcrumb/breadcrumb-item.js.map +1 -1
- package/dist/components/breadcrumb/breadcrumb-misc.cjs +8 -9
- package/dist/components/breadcrumb/breadcrumb-misc.cjs.map +1 -1
- package/dist/components/breadcrumb/breadcrumb-misc.d.ts +11 -5
- package/dist/components/breadcrumb/breadcrumb-misc.d.ts.map +1 -1
- package/dist/components/breadcrumb/breadcrumb-misc.js +8 -9
- package/dist/components/breadcrumb/breadcrumb-misc.js.map +1 -1
- package/dist/components/breadcrumb/breadcrumb-root.cjs +4 -5
- package/dist/components/breadcrumb/breadcrumb-root.cjs.map +1 -1
- package/dist/components/breadcrumb/breadcrumb-root.d.ts +9 -3
- package/dist/components/breadcrumb/breadcrumb-root.d.ts.map +1 -1
- package/dist/components/breadcrumb/breadcrumb-root.js +4 -5
- package/dist/components/breadcrumb/breadcrumb-root.js.map +1 -1
- package/dist/components/breadcrumb/breadcrumb.d.ts +16 -4
- package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/dist/components/breadcrumb/breadcrumb.module.css.cjs +1 -1
- package/dist/components/breadcrumb/breadcrumb.module.css.js +1 -1
- package/dist/components/button/button.cjs +3 -4
- package/dist/components/button/button.cjs.map +1 -1
- package/dist/components/button/button.d.ts +6 -3
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/button.js +3 -4
- package/dist/components/button/button.js.map +1 -1
- package/dist/components/calendar/calendar.cjs +2 -1
- package/dist/components/calendar/calendar.cjs.map +1 -1
- package/dist/components/calendar/calendar.d.ts +4 -1
- package/dist/components/calendar/calendar.d.ts.map +1 -1
- package/dist/components/calendar/calendar.js +2 -1
- package/dist/components/calendar/calendar.js.map +1 -1
- package/dist/components/calendar/date-picker.cjs +3 -2
- package/dist/components/calendar/date-picker.cjs.map +1 -1
- package/dist/components/calendar/date-picker.d.ts +3 -0
- package/dist/components/calendar/date-picker.d.ts.map +1 -1
- package/dist/components/calendar/date-picker.js +4 -3
- package/dist/components/calendar/date-picker.js.map +1 -1
- package/dist/components/calendar/range-picker.cjs +2 -1
- package/dist/components/calendar/range-picker.cjs.map +1 -1
- package/dist/components/calendar/range-picker.d.ts +3 -0
- package/dist/components/calendar/range-picker.d.ts.map +1 -1
- package/dist/components/calendar/range-picker.js +3 -2
- package/dist/components/calendar/range-picker.js.map +1 -1
- package/dist/components/callout/callout.cjs +3 -4
- package/dist/components/callout/callout.cjs.map +1 -1
- package/dist/components/callout/callout.d.ts +7 -4
- package/dist/components/callout/callout.d.ts.map +1 -1
- package/dist/components/callout/callout.js +3 -4
- package/dist/components/callout/callout.js.map +1 -1
- package/dist/components/checkbox/checkbox.cjs +6 -5
- package/dist/components/checkbox/checkbox.cjs.map +1 -1
- package/dist/components/checkbox/checkbox.d.ts +13 -2
- package/dist/components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/checkbox/checkbox.js +6 -5
- package/dist/components/checkbox/checkbox.js.map +1 -1
- package/dist/components/code-block/code-block-code.cjs +4 -4
- package/dist/components/code-block/code-block-code.cjs.map +1 -1
- package/dist/components/code-block/code-block-code.d.ts +6 -3
- package/dist/components/code-block/code-block-code.d.ts.map +1 -1
- package/dist/components/code-block/code-block-code.js +5 -5
- package/dist/components/code-block/code-block-code.js.map +1 -1
- package/dist/components/code-block/code-block-language-select.cjs +5 -6
- package/dist/components/code-block/code-block-language-select.cjs.map +1 -1
- package/dist/components/code-block/code-block-language-select.d.ts +6 -1
- package/dist/components/code-block/code-block-language-select.d.ts.map +1 -1
- package/dist/components/code-block/code-block-language-select.js +5 -6
- package/dist/components/code-block/code-block-language-select.js.map +1 -1
- package/dist/components/code-block/code-block-misc.cjs +20 -21
- package/dist/components/code-block/code-block-misc.cjs.map +1 -1
- package/dist/components/code-block/code-block-misc.d.ts +23 -90
- package/dist/components/code-block/code-block-misc.d.ts.map +1 -1
- package/dist/components/code-block/code-block-misc.js +20 -21
- package/dist/components/code-block/code-block-misc.js.map +1 -1
- package/dist/components/code-block/code-block-root.cjs +4 -4
- package/dist/components/code-block/code-block-root.cjs.map +1 -1
- package/dist/components/code-block/code-block-root.d.ts +6 -3
- package/dist/components/code-block/code-block-root.d.ts.map +1 -1
- package/dist/components/code-block/code-block-root.js +5 -5
- package/dist/components/code-block/code-block-root.js.map +1 -1
- package/dist/components/code-block/code-block.d.ts +18 -94
- package/dist/components/code-block/code-block.d.ts.map +1 -1
- package/dist/components/collapsible/collapsible.cjs +9 -4
- package/dist/components/collapsible/collapsible.cjs.map +1 -1
- package/dist/components/collapsible/collapsible.d.ts +17 -3
- package/dist/components/collapsible/collapsible.d.ts.map +1 -1
- package/dist/components/collapsible/collapsible.js +9 -4
- package/dist/components/collapsible/collapsible.js.map +1 -1
- package/dist/components/color-picker/color-picker-alpha.cjs +1 -0
- package/dist/components/color-picker/color-picker-alpha.cjs.map +1 -1
- package/dist/components/color-picker/color-picker-alpha.d.ts +4 -1
- package/dist/components/color-picker/color-picker-alpha.d.ts.map +1 -1
- package/dist/components/color-picker/color-picker-alpha.js +1 -0
- package/dist/components/color-picker/color-picker-alpha.js.map +1 -1
- package/dist/components/color-picker/color-picker-area.cjs +2 -1
- package/dist/components/color-picker/color-picker-area.cjs.map +1 -1
- package/dist/components/color-picker/color-picker-area.d.ts +6 -3
- package/dist/components/color-picker/color-picker-area.d.ts.map +1 -1
- package/dist/components/color-picker/color-picker-area.js +2 -1
- package/dist/components/color-picker/color-picker-area.js.map +1 -1
- package/dist/components/color-picker/color-picker-hue.cjs +1 -0
- package/dist/components/color-picker/color-picker-hue.cjs.map +1 -1
- package/dist/components/color-picker/color-picker-hue.d.ts +4 -1
- package/dist/components/color-picker/color-picker-hue.d.ts.map +1 -1
- package/dist/components/color-picker/color-picker-hue.js +1 -0
- package/dist/components/color-picker/color-picker-hue.js.map +1 -1
- package/dist/components/color-picker/color-picker-input.cjs +1 -0
- package/dist/components/color-picker/color-picker-input.cjs.map +1 -1
- package/dist/components/color-picker/color-picker-input.d.ts +5 -2
- package/dist/components/color-picker/color-picker-input.d.ts.map +1 -1
- package/dist/components/color-picker/color-picker-input.js +1 -0
- package/dist/components/color-picker/color-picker-input.js.map +1 -1
- package/dist/components/color-picker/color-picker-mode.cjs +2 -1
- package/dist/components/color-picker/color-picker-mode.cjs.map +1 -1
- package/dist/components/color-picker/color-picker-mode.d.ts +4 -1
- package/dist/components/color-picker/color-picker-mode.d.ts.map +1 -1
- package/dist/components/color-picker/color-picker-mode.js +2 -1
- package/dist/components/color-picker/color-picker-mode.js.map +1 -1
- package/dist/components/color-picker/color-picker-root.cjs +2 -1
- package/dist/components/color-picker/color-picker-root.cjs.map +1 -1
- package/dist/components/color-picker/color-picker-root.d.ts +6 -3
- package/dist/components/color-picker/color-picker-root.d.ts.map +1 -1
- package/dist/components/color-picker/color-picker-root.js +2 -1
- package/dist/components/color-picker/color-picker-root.js.map +1 -1
- package/dist/components/color-picker/color-picker.d.ts +24 -6
- package/dist/components/color-picker/color-picker.d.ts.map +1 -1
- package/dist/components/combobox/combobox-content.cjs +2 -3
- package/dist/components/combobox/combobox-content.cjs.map +1 -1
- package/dist/components/combobox/combobox-content.d.ts +4 -1
- package/dist/components/combobox/combobox-content.d.ts.map +1 -1
- package/dist/components/combobox/combobox-content.js +2 -3
- package/dist/components/combobox/combobox-content.js.map +1 -1
- package/dist/components/combobox/combobox-input.cjs +2 -3
- package/dist/components/combobox/combobox-input.cjs.map +1 -1
- package/dist/components/combobox/combobox-input.d.ts +7 -3
- package/dist/components/combobox/combobox-input.d.ts.map +1 -1
- package/dist/components/combobox/combobox-input.js +2 -3
- package/dist/components/combobox/combobox-input.js.map +1 -1
- package/dist/components/combobox/combobox-item.cjs +3 -4
- package/dist/components/combobox/combobox-item.cjs.map +1 -1
- package/dist/components/combobox/combobox-item.d.ts +4 -1
- package/dist/components/combobox/combobox-item.d.ts.map +1 -1
- package/dist/components/combobox/combobox-item.js +3 -4
- package/dist/components/combobox/combobox-item.js.map +1 -1
- package/dist/components/combobox/combobox-misc.cjs +9 -10
- package/dist/components/combobox/combobox-misc.cjs.map +1 -1
- package/dist/components/combobox/combobox-misc.d.ts +13 -3
- package/dist/components/combobox/combobox-misc.d.ts.map +1 -1
- package/dist/components/combobox/combobox-misc.js +9 -10
- package/dist/components/combobox/combobox-misc.js.map +1 -1
- package/dist/components/combobox/combobox-root.cjs +2 -1
- package/dist/components/combobox/combobox-root.cjs.map +1 -1
- package/dist/components/combobox/combobox-root.d.ts +4 -1
- package/dist/components/combobox/combobox-root.d.ts.map +1 -1
- package/dist/components/combobox/combobox-root.js +3 -2
- package/dist/components/combobox/combobox-root.js.map +1 -1
- package/dist/components/combobox/combobox.cjs +4 -1
- package/dist/components/combobox/combobox.cjs.map +1 -1
- package/dist/components/combobox/combobox.d.ts +31 -7
- package/dist/components/combobox/combobox.d.ts.map +1 -1
- package/dist/components/combobox/combobox.js +4 -1
- package/dist/components/combobox/combobox.js.map +1 -1
- package/dist/components/command/command.cjs +30 -16
- package/dist/components/command/command.cjs.map +1 -1
- package/dist/components/command/command.d.ts +51 -1
- package/dist/components/command/command.d.ts.map +1 -1
- package/dist/components/command/command.js +30 -16
- package/dist/components/command/command.js.map +1 -1
- package/dist/components/container/container.cjs +12 -11
- package/dist/components/container/container.cjs.map +1 -1
- package/dist/components/container/container.d.ts +6 -6
- package/dist/components/container/container.d.ts.map +1 -1
- package/dist/components/container/container.js +12 -11
- package/dist/components/container/container.js.map +1 -1
- package/dist/components/context-menu/__tests__/context-menu.test.d.ts +2 -0
- package/dist/components/context-menu/__tests__/context-menu.test.d.ts.map +1 -0
- package/dist/components/context-menu/context-menu-content.cjs +92 -0
- package/dist/components/context-menu/context-menu-content.cjs.map +1 -0
- package/dist/components/context-menu/context-menu-content.d.ts +13 -0
- package/dist/components/context-menu/context-menu-content.d.ts.map +1 -0
- package/dist/components/context-menu/context-menu-content.js +89 -0
- package/dist/components/context-menu/context-menu-content.js.map +1 -0
- package/dist/components/context-menu/context-menu-item.cjs +29 -0
- package/dist/components/context-menu/context-menu-item.cjs.map +1 -0
- package/dist/components/context-menu/context-menu-item.d.ts +10 -0
- package/dist/components/context-menu/context-menu-item.d.ts.map +1 -0
- package/dist/components/context-menu/context-menu-item.js +27 -0
- package/dist/components/context-menu/context-menu-item.js.map +1 -0
- package/dist/components/context-menu/context-menu-misc.cjs +42 -0
- package/dist/components/context-menu/context-menu-misc.cjs.map +1 -0
- package/dist/components/context-menu/context-menu-misc.d.ts +21 -0
- package/dist/components/context-menu/context-menu-misc.d.ts.map +1 -0
- package/dist/components/context-menu/context-menu-misc.js +37 -0
- package/dist/components/context-menu/context-menu-misc.js.map +1 -0
- package/dist/components/context-menu/context-menu-root.cjs +78 -0
- package/dist/components/context-menu/context-menu-root.cjs.map +1 -0
- package/dist/components/context-menu/context-menu-root.d.ts +40 -0
- package/dist/components/context-menu/context-menu-root.d.ts.map +1 -0
- package/dist/components/context-menu/context-menu-root.js +75 -0
- package/dist/components/context-menu/context-menu-root.js.map +1 -0
- package/dist/components/context-menu/context-menu-trigger.cjs +36 -0
- package/dist/components/context-menu/context-menu-trigger.cjs.map +1 -0
- package/dist/components/context-menu/context-menu-trigger.d.ts +16 -0
- package/dist/components/context-menu/context-menu-trigger.d.ts.map +1 -0
- package/dist/components/context-menu/context-menu-trigger.js +33 -0
- package/dist/components/context-menu/context-menu-trigger.js.map +1 -0
- package/dist/components/context-menu/context-menu.cjs +23 -0
- package/dist/components/context-menu/context-menu.cjs.map +1 -0
- package/dist/components/context-menu/context-menu.d.ts +46 -0
- package/dist/components/context-menu/context-menu.d.ts.map +1 -0
- package/dist/components/context-menu/context-menu.js +21 -0
- package/dist/components/context-menu/context-menu.js.map +1 -0
- package/dist/components/context-menu/index.d.ts +2 -0
- package/dist/components/context-menu/index.d.ts.map +1 -0
- package/dist/components/copy-button/copy-button.cjs +3 -3
- package/dist/components/copy-button/copy-button.cjs.map +1 -1
- package/dist/components/copy-button/copy-button.d.ts +4 -1
- package/dist/components/copy-button/copy-button.d.ts.map +1 -1
- package/dist/components/copy-button/copy-button.js +4 -4
- package/dist/components/copy-button/copy-button.js.map +1 -1
- package/dist/components/data-table/components/content.cjs +1 -0
- package/dist/components/data-table/components/content.cjs.map +1 -1
- package/dist/components/data-table/components/content.d.ts +3 -0
- package/dist/components/data-table/components/content.d.ts.map +1 -1
- package/dist/components/data-table/components/content.js +1 -0
- package/dist/components/data-table/components/content.js.map +1 -1
- package/dist/components/data-table/components/display-settings.cjs +1 -0
- package/dist/components/data-table/components/display-settings.cjs.map +1 -1
- package/dist/components/data-table/components/display-settings.d.ts +3 -0
- package/dist/components/data-table/components/display-settings.d.ts.map +1 -1
- package/dist/components/data-table/components/display-settings.js +1 -0
- package/dist/components/data-table/components/display-settings.js.map +1 -1
- package/dist/components/data-table/components/filters.cjs +1 -0
- package/dist/components/data-table/components/filters.cjs.map +1 -1
- package/dist/components/data-table/components/filters.d.ts +3 -0
- package/dist/components/data-table/components/filters.d.ts.map +1 -1
- package/dist/components/data-table/components/filters.js +1 -0
- package/dist/components/data-table/components/filters.js.map +1 -1
- package/dist/components/data-table/components/search.cjs +4 -5
- package/dist/components/data-table/components/search.cjs.map +1 -1
- package/dist/components/data-table/components/search.d.ts +7 -3
- package/dist/components/data-table/components/search.d.ts.map +1 -1
- package/dist/components/data-table/components/search.js +4 -5
- package/dist/components/data-table/components/search.js.map +1 -1
- package/dist/components/data-table/components/toolbar.cjs +1 -0
- package/dist/components/data-table/components/toolbar.cjs.map +1 -1
- package/dist/components/data-table/components/toolbar.d.ts +3 -0
- package/dist/components/data-table/components/toolbar.d.ts.map +1 -1
- package/dist/components/data-table/components/toolbar.js +1 -0
- package/dist/components/data-table/components/toolbar.js.map +1 -1
- package/dist/components/data-table/components/virtualized-content.cjs +1 -0
- package/dist/components/data-table/components/virtualized-content.cjs.map +1 -1
- package/dist/components/data-table/components/virtualized-content.d.ts +3 -0
- package/dist/components/data-table/components/virtualized-content.d.ts.map +1 -1
- package/dist/components/data-table/components/virtualized-content.js +1 -0
- package/dist/components/data-table/components/virtualized-content.js.map +1 -1
- package/dist/components/data-table/data-table.cjs +2 -1
- package/dist/components/data-table/data-table.cjs.map +1 -1
- package/dist/components/data-table/data-table.d.ts +5 -1
- package/dist/components/data-table/data-table.d.ts.map +1 -1
- package/dist/components/data-table/data-table.js +2 -1
- package/dist/components/data-table/data-table.js.map +1 -1
- package/dist/components/data-table/data-table.types.cjs.map +1 -1
- package/dist/components/data-table/data-table.types.d.ts +1 -0
- package/dist/components/data-table/data-table.types.d.ts.map +1 -1
- package/dist/components/data-table/data-table.types.js.map +1 -1
- package/dist/components/data-table/hooks/useFilters.cjs +6 -5
- package/dist/components/data-table/hooks/useFilters.cjs.map +1 -1
- package/dist/components/data-table/hooks/useFilters.d.ts.map +1 -1
- package/dist/components/data-table/hooks/useFilters.js +6 -5
- package/dist/components/data-table/hooks/useFilters.js.map +1 -1
- package/dist/components/data-table/utils/filter-operations.cjs +12 -3
- package/dist/components/data-table/utils/filter-operations.cjs.map +1 -1
- package/dist/components/data-table/utils/filter-operations.d.ts.map +1 -1
- package/dist/components/data-table/utils/filter-operations.js +12 -3
- package/dist/components/data-table/utils/filter-operations.js.map +1 -1
- package/dist/components/dialog/dialog-content.cjs +3 -4
- package/dist/components/dialog/dialog-content.cjs.map +1 -1
- package/dist/components/dialog/dialog-content.d.ts +4 -1
- package/dist/components/dialog/dialog-content.d.ts.map +1 -1
- package/dist/components/dialog/dialog-content.js +3 -4
- package/dist/components/dialog/dialog-content.js.map +1 -1
- package/dist/components/dialog/dialog-misc.cjs +18 -13
- package/dist/components/dialog/dialog-misc.cjs.map +1 -1
- package/dist/components/dialog/dialog-misc.d.ts +27 -33
- package/dist/components/dialog/dialog-misc.d.ts.map +1 -1
- package/dist/components/dialog/dialog-misc.js +18 -13
- package/dist/components/dialog/dialog-misc.js.map +1 -1
- package/dist/components/dialog/dialog.cjs +2 -1
- package/dist/components/dialog/dialog.cjs.map +1 -1
- package/dist/components/dialog/dialog.d.ts +10 -34
- package/dist/components/dialog/dialog.d.ts.map +1 -1
- package/dist/components/dialog/dialog.js +2 -1
- package/dist/components/dialog/dialog.js.map +1 -1
- package/dist/components/drawer/drawer-content.cjs +3 -4
- package/dist/components/drawer/drawer-content.cjs.map +1 -1
- package/dist/components/drawer/drawer-content.d.ts +7 -3
- package/dist/components/drawer/drawer-content.d.ts.map +1 -1
- package/dist/components/drawer/drawer-content.js +4 -5
- package/dist/components/drawer/drawer-content.js.map +1 -1
- package/dist/components/drawer/drawer-misc.cjs +12 -5
- package/dist/components/drawer/drawer-misc.cjs.map +1 -1
- package/dist/components/drawer/drawer-misc.d.ts +18 -5
- package/dist/components/drawer/drawer-misc.d.ts.map +1 -1
- package/dist/components/drawer/drawer-misc.js +13 -6
- package/dist/components/drawer/drawer-misc.js.map +1 -1
- package/dist/components/drawer/drawer-root.cjs +3 -3
- package/dist/components/drawer/drawer-root.cjs.map +1 -1
- package/dist/components/drawer/drawer-root.d.ts +1 -1
- package/dist/components/drawer/drawer-root.d.ts.map +1 -1
- package/dist/components/drawer/drawer-root.js +4 -4
- package/dist/components/drawer/drawer-root.js.map +1 -1
- package/dist/components/drawer/drawer.cjs +3 -2
- package/dist/components/drawer/drawer.cjs.map +1 -1
- package/dist/components/drawer/drawer.d.ts +9 -6
- package/dist/components/drawer/drawer.d.ts.map +1 -1
- package/dist/components/drawer/drawer.js +4 -3
- package/dist/components/drawer/drawer.js.map +1 -1
- package/dist/components/empty-state/empty-state.cjs +5 -4
- package/dist/components/empty-state/empty-state.cjs.map +1 -1
- package/dist/components/empty-state/empty-state.d.ts +12 -7
- package/dist/components/empty-state/empty-state.d.ts.map +1 -1
- package/dist/components/empty-state/empty-state.js +5 -4
- package/dist/components/empty-state/empty-state.js.map +1 -1
- package/dist/components/filter-chip/filter-chip.cjs +1 -2
- package/dist/components/filter-chip/filter-chip.cjs.map +1 -1
- package/dist/components/filter-chip/filter-chip.js +1 -2
- package/dist/components/filter-chip/filter-chip.js.map +1 -1
- package/dist/components/flex/flex.cjs +3 -3
- package/dist/components/flex/flex.cjs.map +1 -1
- package/dist/components/flex/flex.d.ts +7 -4
- package/dist/components/flex/flex.d.ts.map +1 -1
- package/dist/components/flex/flex.js +3 -3
- package/dist/components/flex/flex.js.map +1 -1
- package/dist/components/grid/grid-item.cjs +3 -4
- package/dist/components/grid/grid-item.cjs.map +1 -1
- package/dist/components/grid/grid-item.d.ts +4 -1
- package/dist/components/grid/grid-item.d.ts.map +1 -1
- package/dist/components/grid/grid-item.js +3 -4
- package/dist/components/grid/grid-item.js.map +1 -1
- package/dist/components/grid/grid.cjs +2 -2
- package/dist/components/grid/grid.cjs.map +1 -1
- package/dist/components/grid/grid.d.ts +4 -1
- package/dist/components/grid/grid.d.ts.map +1 -1
- package/dist/components/grid/grid.js +3 -3
- package/dist/components/grid/grid.js.map +1 -1
- package/dist/components/grid/index.d.ts +4 -31
- package/dist/components/grid/index.d.ts.map +1 -1
- package/dist/components/headline/headline.cjs +3 -4
- package/dist/components/headline/headline.cjs.map +1 -1
- package/dist/components/headline/headline.d.ts +8 -14
- package/dist/components/headline/headline.d.ts.map +1 -1
- package/dist/components/headline/headline.js +3 -4
- package/dist/components/headline/headline.js.map +1 -1
- package/dist/components/icon-button/icon-button.cjs +3 -2
- package/dist/components/icon-button/icon-button.cjs.map +1 -1
- package/dist/components/icon-button/icon-button.d.ts +6 -2
- package/dist/components/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/icon-button/icon-button.js +3 -2
- package/dist/components/icon-button/icon-button.js.map +1 -1
- package/dist/components/image/image.cjs.map +1 -1
- package/dist/components/image/image.d.ts +2 -4
- package/dist/components/image/image.d.ts.map +1 -1
- package/dist/components/image/image.js.map +1 -1
- package/dist/components/indicator/indicator.cjs +9 -9
- package/dist/components/indicator/indicator.cjs.map +1 -1
- package/dist/components/indicator/indicator.d.ts +4 -4
- package/dist/components/indicator/indicator.d.ts.map +1 -1
- package/dist/components/indicator/indicator.js +9 -9
- package/dist/components/indicator/indicator.js.map +1 -1
- package/dist/components/input-field/input-field.cjs +3 -4
- package/dist/components/input-field/input-field.cjs.map +1 -1
- package/dist/components/input-field/input-field.d.ts +6 -3
- package/dist/components/input-field/input-field.d.ts.map +1 -1
- package/dist/components/input-field/input-field.js +3 -4
- package/dist/components/input-field/input-field.js.map +1 -1
- package/dist/components/label/label.cjs +10 -9
- package/dist/components/label/label.cjs.map +1 -1
- package/dist/components/label/label.d.ts +6 -3
- package/dist/components/label/label.d.ts.map +1 -1
- package/dist/components/label/label.js +10 -9
- package/dist/components/label/label.js.map +1 -1
- package/dist/components/link/link.cjs +9 -10
- package/dist/components/link/link.cjs.map +1 -1
- package/dist/components/link/link.d.ts +7 -4
- package/dist/components/link/link.d.ts.map +1 -1
- package/dist/components/link/link.js +9 -10
- package/dist/components/link/link.js.map +1 -1
- package/dist/components/list/list.cjs +4 -4
- package/dist/components/list/list.cjs.map +1 -1
- package/dist/components/list/list.d.ts +6 -6
- package/dist/components/list/list.d.ts.map +1 -1
- package/dist/components/list/list.js +4 -4
- package/dist/components/list/list.js.map +1 -1
- package/dist/components/menu/cell.cjs +3 -2
- package/dist/components/menu/cell.cjs.map +1 -1
- package/dist/components/menu/cell.d.ts +6 -5
- package/dist/components/menu/cell.d.ts.map +1 -1
- package/dist/components/menu/cell.js +3 -2
- package/dist/components/menu/cell.js.map +1 -1
- package/dist/components/menu/menu-content.cjs +7 -7
- package/dist/components/menu/menu-content.cjs.map +1 -1
- package/dist/components/menu/menu-content.d.ts +8 -2
- package/dist/components/menu/menu-content.d.ts.map +1 -1
- package/dist/components/menu/menu-content.js +8 -8
- package/dist/components/menu/menu-content.js.map +1 -1
- package/dist/components/menu/menu-item.cjs +4 -5
- package/dist/components/menu/menu-item.cjs.map +1 -1
- package/dist/components/menu/menu-item.d.ts +4 -1
- package/dist/components/menu/menu-item.d.ts.map +1 -1
- package/dist/components/menu/menu-item.js +4 -5
- package/dist/components/menu/menu-item.js.map +1 -1
- package/dist/components/menu/menu-misc.cjs +12 -10
- package/dist/components/menu/menu-misc.cjs.map +1 -1
- package/dist/components/menu/menu-misc.d.ts +19 -6
- package/dist/components/menu/menu-misc.d.ts.map +1 -1
- package/dist/components/menu/menu-misc.js +13 -11
- package/dist/components/menu/menu-misc.js.map +1 -1
- package/dist/components/menu/menu-root.cjs +3 -3
- package/dist/components/menu/menu-root.cjs.map +1 -1
- package/dist/components/menu/menu-root.js +4 -4
- package/dist/components/menu/menu-root.js.map +1 -1
- package/dist/components/menu/menu-trigger.cjs +13 -10
- package/dist/components/menu/menu-trigger.cjs.map +1 -1
- package/dist/components/menu/menu-trigger.d.ts +8 -2
- package/dist/components/menu/menu-trigger.d.ts.map +1 -1
- package/dist/components/menu/menu-trigger.js +13 -10
- package/dist/components/menu/menu-trigger.js.map +1 -1
- package/dist/components/menu/menu.cjs +3 -1
- package/dist/components/menu/menu.cjs.map +1 -1
- package/dist/components/menu/menu.d.ts +15 -11
- package/dist/components/menu/menu.d.ts.map +1 -1
- package/dist/components/menu/menu.js +3 -1
- package/dist/components/menu/menu.js.map +1 -1
- package/dist/components/menu/menu.module.css.cjs +1 -1
- package/dist/components/menu/menu.module.css.js +1 -1
- package/dist/components/menubar/__tests__/menubar.test.d.ts +2 -0
- package/dist/components/menubar/__tests__/menubar.test.d.ts.map +1 -0
- package/dist/components/menubar/index.d.ts +2 -0
- package/dist/components/menubar/index.d.ts.map +1 -0
- package/dist/components/menubar/menubar.cjs +22 -0
- package/dist/components/menubar/menubar.cjs.map +1 -0
- package/dist/components/menubar/menubar.d.ts +9 -0
- package/dist/components/menubar/menubar.d.ts.map +1 -0
- package/dist/components/menubar/menubar.js +19 -0
- package/dist/components/menubar/menubar.js.map +1 -0
- package/dist/components/{box/box.module.css.cjs → menubar/menubar.module.css.cjs} +2 -2
- package/dist/components/menubar/menubar.module.css.cjs.map +1 -0
- package/dist/components/menubar/menubar.module.css.js +4 -0
- package/dist/components/menubar/menubar.module.css.js.map +1 -0
- package/dist/components/meter/__tests__/meter.test.d.ts +2 -0
- package/dist/components/meter/__tests__/meter.test.d.ts.map +1 -0
- package/dist/components/meter/index.d.ts +2 -0
- package/dist/components/meter/index.d.ts.map +1 -0
- package/dist/components/meter/meter-misc.cjs +20 -0
- package/dist/components/meter/meter-misc.cjs.map +1 -0
- package/dist/components/meter/meter-misc.d.ts +10 -0
- package/dist/components/meter/meter-misc.d.ts.map +1 -0
- package/dist/components/meter/meter-misc.js +17 -0
- package/dist/components/meter/meter-misc.js.map +1 -0
- package/dist/components/meter/meter-root.cjs +38 -0
- package/dist/components/meter/meter-root.cjs.map +1 -0
- package/dist/components/meter/meter-root.d.ts +19 -0
- package/dist/components/meter/meter-root.d.ts.map +1 -0
- package/dist/components/meter/meter-root.js +35 -0
- package/dist/components/meter/meter-root.js.map +1 -0
- package/dist/components/meter/meter-track.cjs +21 -0
- package/dist/components/meter/meter-track.cjs.map +1 -0
- package/dist/components/meter/meter-track.d.ts +6 -0
- package/dist/components/meter/meter-track.d.ts.map +1 -0
- package/dist/components/meter/meter-track.js +19 -0
- package/dist/components/meter/meter-track.js.map +1 -0
- package/dist/components/meter/meter.cjs +14 -0
- package/dist/components/meter/meter.cjs.map +1 -0
- package/dist/components/meter/meter.d.ts +9 -0
- package/dist/components/meter/meter.d.ts.map +1 -0
- package/dist/components/meter/meter.js +12 -0
- package/dist/components/meter/meter.js.map +1 -0
- package/dist/components/meter/meter.module.css.cjs +8 -0
- package/dist/components/meter/meter.module.css.cjs.map +1 -0
- package/dist/components/meter/meter.module.css.js +4 -0
- package/dist/components/meter/meter.module.css.js.map +1 -0
- package/dist/components/navbar/navbar-root.cjs +88 -4
- package/dist/components/navbar/navbar-root.cjs.map +1 -1
- package/dist/components/navbar/navbar-root.d.ts +11 -3
- package/dist/components/navbar/navbar-root.d.ts.map +1 -1
- package/dist/components/navbar/navbar-root.js +89 -5
- package/dist/components/navbar/navbar-root.js.map +1 -1
- package/dist/components/navbar/navbar-sections.cjs +11 -3
- package/dist/components/navbar/navbar-sections.cjs.map +1 -1
- package/dist/components/navbar/navbar-sections.d.ts +17 -5
- package/dist/components/navbar/navbar-sections.d.ts.map +1 -1
- package/dist/components/navbar/navbar-sections.js +11 -4
- package/dist/components/navbar/navbar-sections.js.map +1 -1
- package/dist/components/navbar/navbar.cjs +1 -0
- package/dist/components/navbar/navbar.cjs.map +1 -1
- package/dist/components/navbar/navbar.d.ts +16 -3
- package/dist/components/navbar/navbar.d.ts.map +1 -1
- package/dist/components/navbar/navbar.js +2 -1
- package/dist/components/navbar/navbar.js.map +1 -1
- package/dist/components/navbar/navbar.module.css.cjs +1 -1
- package/dist/components/navbar/navbar.module.css.js +1 -1
- package/dist/components/number-field/__tests__/number-field.test.d.ts +2 -0
- package/dist/components/number-field/__tests__/number-field.test.d.ts.map +1 -0
- package/dist/components/number-field/index.d.ts +3 -0
- package/dist/components/number-field/index.d.ts.map +1 -0
- package/dist/components/number-field/number-field.cjs +53 -0
- package/dist/components/number-field/number-field.cjs.map +1 -0
- package/dist/components/number-field/number-field.d.ts +38 -0
- package/dist/components/number-field/number-field.d.ts.map +1 -0
- package/dist/components/number-field/number-field.js +51 -0
- package/dist/components/number-field/number-field.js.map +1 -0
- package/dist/components/number-field/number-field.module.css.cjs +8 -0
- package/dist/components/number-field/number-field.module.css.cjs.map +1 -0
- package/dist/components/number-field/number-field.module.css.js +4 -0
- package/dist/components/number-field/number-field.module.css.js.map +1 -0
- package/dist/components/popover/popover.cjs +4 -4
- package/dist/components/popover/popover.cjs.map +1 -1
- package/dist/components/popover/popover.d.ts +8 -2
- package/dist/components/popover/popover.d.ts.map +1 -1
- package/dist/components/popover/popover.js +4 -4
- package/dist/components/popover/popover.js.map +1 -1
- package/dist/components/preview-card/preview-card.cjs +5 -4
- package/dist/components/preview-card/preview-card.cjs.map +1 -1
- package/dist/components/preview-card/preview-card.d.ts +12 -3
- package/dist/components/preview-card/preview-card.d.ts.map +1 -1
- package/dist/components/preview-card/preview-card.js +5 -4
- package/dist/components/preview-card/preview-card.js.map +1 -1
- package/dist/components/progress/__tests__/progress.test.d.ts +2 -0
- package/dist/components/progress/__tests__/progress.test.d.ts.map +1 -0
- package/dist/components/progress/index.d.ts +2 -0
- package/dist/components/progress/index.d.ts.map +1 -0
- package/dist/components/progress/progress-misc.cjs +20 -0
- package/dist/components/progress/progress-misc.cjs.map +1 -0
- package/dist/components/progress/progress-misc.d.ts +10 -0
- package/dist/components/progress/progress-misc.d.ts.map +1 -0
- package/dist/components/progress/progress-misc.js +17 -0
- package/dist/components/progress/progress-misc.js.map +1 -0
- package/dist/components/progress/progress-root.cjs +38 -0
- package/dist/components/progress/progress-root.cjs.map +1 -0
- package/dist/components/progress/progress-root.d.ts +19 -0
- package/dist/components/progress/progress-root.d.ts.map +1 -0
- package/dist/components/progress/progress-root.js +35 -0
- package/dist/components/progress/progress-root.js.map +1 -0
- package/dist/components/progress/progress-track.cjs +21 -0
- package/dist/components/progress/progress-track.cjs.map +1 -0
- package/dist/components/progress/progress-track.d.ts +6 -0
- package/dist/components/progress/progress-track.d.ts.map +1 -0
- package/dist/components/progress/progress-track.js +19 -0
- package/dist/components/progress/progress-track.js.map +1 -0
- package/dist/components/progress/progress.cjs +14 -0
- package/dist/components/progress/progress.cjs.map +1 -0
- package/dist/components/progress/progress.d.ts +9 -0
- package/dist/components/progress/progress.d.ts.map +1 -0
- package/dist/components/progress/progress.js +12 -0
- package/dist/components/progress/progress.js.map +1 -0
- package/dist/components/progress/progress.module.css.cjs +8 -0
- package/dist/components/progress/progress.module.css.cjs.map +1 -0
- package/dist/components/progress/progress.module.css.js +4 -0
- package/dist/components/progress/progress.module.css.js.map +1 -0
- package/dist/components/radio/radio.cjs +6 -3
- package/dist/components/radio/radio.cjs.map +1 -1
- package/dist/components/radio/radio.d.ts +11 -2
- package/dist/components/radio/radio.d.ts.map +1 -1
- package/dist/components/radio/radio.js +6 -3
- package/dist/components/radio/radio.js.map +1 -1
- package/dist/components/scroll-area/scroll-area-scrollbar.cjs +4 -5
- package/dist/components/scroll-area/scroll-area-scrollbar.cjs.map +1 -1
- package/dist/components/scroll-area/scroll-area-scrollbar.d.ts +4 -1
- package/dist/components/scroll-area/scroll-area-scrollbar.d.ts.map +1 -1
- package/dist/components/scroll-area/scroll-area-scrollbar.js +4 -5
- package/dist/components/scroll-area/scroll-area-scrollbar.js.map +1 -1
- package/dist/components/scroll-area/scroll-area.cjs +3 -4
- package/dist/components/scroll-area/scroll-area.cjs.map +1 -1
- package/dist/components/scroll-area/scroll-area.d.ts +4 -1
- package/dist/components/scroll-area/scroll-area.d.ts.map +1 -1
- package/dist/components/scroll-area/scroll-area.js +3 -4
- package/dist/components/scroll-area/scroll-area.js.map +1 -1
- package/dist/components/search/search.cjs +3 -4
- package/dist/components/search/search.cjs.map +1 -1
- package/dist/components/search/search.d.ts +4 -1
- package/dist/components/search/search.d.ts.map +1 -1
- package/dist/components/search/search.js +3 -4
- package/dist/components/search/search.js.map +1 -1
- package/dist/components/select/select-content.cjs +4 -5
- package/dist/components/select/select-content.cjs.map +1 -1
- package/dist/components/select/select-content.d.ts +6 -7
- package/dist/components/select/select-content.d.ts.map +1 -1
- package/dist/components/select/select-content.js +4 -5
- package/dist/components/select/select-content.js.map +1 -1
- package/dist/components/select/select-item.cjs +3 -3
- package/dist/components/select/select-item.cjs.map +1 -1
- package/dist/components/select/select-item.d.ts +6 -6
- package/dist/components/select/select-item.d.ts.map +1 -1
- package/dist/components/select/select-item.js +4 -4
- package/dist/components/select/select-item.js.map +1 -1
- package/dist/components/select/select-misc.cjs +9 -9
- package/dist/components/select/select-misc.cjs.map +1 -1
- package/dist/components/select/select-misc.d.ts +16 -12
- package/dist/components/select/select-misc.d.ts.map +1 -1
- package/dist/components/select/select-misc.js +10 -10
- package/dist/components/select/select-misc.js.map +1 -1
- package/dist/components/select/select-root.cjs +3 -2
- package/dist/components/select/select-root.cjs.map +1 -1
- package/dist/components/select/select-root.d.ts +4 -1
- package/dist/components/select/select-root.d.ts.map +1 -1
- package/dist/components/select/select-root.js +4 -3
- package/dist/components/select/select-root.js.map +1 -1
- package/dist/components/select/select-trigger.cjs +2 -3
- package/dist/components/select/select-trigger.cjs.map +1 -1
- package/dist/components/select/select-trigger.d.ts +7 -3
- package/dist/components/select/select-trigger.d.ts.map +1 -1
- package/dist/components/select/select-trigger.js +2 -3
- package/dist/components/select/select-trigger.js.map +1 -1
- package/dist/components/select/select-value.cjs +6 -6
- package/dist/components/select/select-value.cjs.map +1 -1
- package/dist/components/select/select-value.d.ts +6 -3
- package/dist/components/select/select-value.d.ts.map +1 -1
- package/dist/components/select/select-value.js +7 -7
- package/dist/components/select/select-value.js.map +1 -1
- package/dist/components/select/select.d.ts +16 -18
- package/dist/components/select/select.d.ts.map +1 -1
- package/dist/components/side-panel/side-panel.cjs +9 -6
- package/dist/components/side-panel/side-panel.cjs.map +1 -1
- package/dist/components/side-panel/side-panel.d.ts +16 -10
- package/dist/components/side-panel/side-panel.d.ts.map +1 -1
- package/dist/components/side-panel/side-panel.js +10 -7
- package/dist/components/side-panel/side-panel.js.map +1 -1
- package/dist/components/sidebar/sidebar-item.cjs +2 -3
- package/dist/components/sidebar/sidebar-item.cjs.map +1 -1
- package/dist/components/sidebar/sidebar-item.d.ts +6 -3
- package/dist/components/sidebar/sidebar-item.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-item.js +3 -4
- package/dist/components/sidebar/sidebar-item.js.map +1 -1
- package/dist/components/sidebar/sidebar-main.cjs +3 -2
- package/dist/components/sidebar/sidebar-main.cjs.map +1 -1
- package/dist/components/sidebar/sidebar-main.d.ts +6 -1
- package/dist/components/sidebar/sidebar-main.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-main.js +3 -2
- package/dist/components/sidebar/sidebar-main.js.map +1 -1
- package/dist/components/sidebar/sidebar-misc.cjs +9 -4
- package/dist/components/sidebar/sidebar-misc.cjs.map +1 -1
- package/dist/components/sidebar/sidebar-misc.d.ts +15 -5
- package/dist/components/sidebar/sidebar-misc.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-misc.js +9 -4
- package/dist/components/sidebar/sidebar-misc.js.map +1 -1
- package/dist/components/sidebar/sidebar-root.cjs +3 -3
- package/dist/components/sidebar/sidebar-root.cjs.map +1 -1
- package/dist/components/sidebar/sidebar-root.d.ts +6 -3
- package/dist/components/sidebar/sidebar-root.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-root.js +4 -4
- package/dist/components/sidebar/sidebar-root.js.map +1 -1
- package/dist/components/sidebar/sidebar.d.ts +10 -6
- package/dist/components/sidebar/sidebar.d.ts.map +1 -1
- package/dist/components/skeleton/skeleton.cjs +3 -1
- package/dist/components/skeleton/skeleton.cjs.map +1 -1
- package/dist/components/skeleton/skeleton.d.ts +10 -4
- package/dist/components/skeleton/skeleton.d.ts.map +1 -1
- package/dist/components/skeleton/skeleton.js +3 -1
- package/dist/components/skeleton/skeleton.js.map +1 -1
- package/dist/components/slider/slider.cjs +5 -4
- package/dist/components/slider/slider.cjs.map +1 -1
- package/dist/components/slider/slider.d.ts +5 -1
- package/dist/components/slider/slider.d.ts.map +1 -1
- package/dist/components/slider/slider.js +6 -5
- package/dist/components/slider/slider.js.map +1 -1
- package/dist/components/spinner/spinner.cjs +17 -16
- package/dist/components/spinner/spinner.cjs.map +1 -1
- package/dist/components/spinner/spinner.d.ts +9 -6
- package/dist/components/spinner/spinner.d.ts.map +1 -1
- package/dist/components/spinner/spinner.js +17 -16
- package/dist/components/spinner/spinner.js.map +1 -1
- package/dist/components/switch/switch.cjs +3 -2
- package/dist/components/switch/switch.cjs.map +1 -1
- package/dist/components/switch/switch.d.ts +4 -1
- package/dist/components/switch/switch.d.ts.map +1 -1
- package/dist/components/switch/switch.js +3 -2
- package/dist/components/switch/switch.js.map +1 -1
- package/dist/components/table/table.cjs +28 -22
- package/dist/components/table/table.cjs.map +1 -1
- package/dist/components/table/table.d.ts +43 -25
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.js +28 -22
- package/dist/components/table/table.js.map +1 -1
- package/dist/components/tabs/tabs.cjs +13 -6
- package/dist/components/tabs/tabs.cjs.map +1 -1
- package/dist/components/tabs/tabs.d.ts +22 -6
- package/dist/components/tabs/tabs.d.ts.map +1 -1
- package/dist/components/tabs/tabs.js +13 -6
- package/dist/components/tabs/tabs.js.map +1 -1
- package/dist/components/text/text.cjs +5 -4
- package/dist/components/text/text.cjs.map +1 -1
- package/dist/components/text/text.d.ts +14 -12
- package/dist/components/text/text.d.ts.map +1 -1
- package/dist/components/text/text.js +5 -4
- package/dist/components/text/text.js.map +1 -1
- package/dist/components/text-area/text-area.cjs +3 -23
- package/dist/components/text-area/text-area.cjs.map +1 -1
- package/dist/components/text-area/text-area.d.ts +7 -5
- package/dist/components/text-area/text-area.d.ts.map +1 -1
- package/dist/components/text-area/text-area.js +3 -4
- package/dist/components/text-area/text-area.js.map +1 -1
- package/dist/components/theme-provider/theme.cjs +4 -3
- package/dist/components/theme-provider/theme.cjs.map +1 -1
- package/dist/components/theme-provider/theme.d.ts +4 -2
- package/dist/components/theme-provider/theme.d.ts.map +1 -1
- package/dist/components/theme-provider/theme.js +4 -3
- package/dist/components/theme-provider/theme.js.map +1 -1
- package/dist/components/toast/toast-provider.cjs +3 -4
- package/dist/components/toast/toast-provider.cjs.map +1 -1
- package/dist/components/toast/toast-provider.d.ts +5 -2
- package/dist/components/toast/toast-provider.d.ts.map +1 -1
- package/dist/components/toast/toast-provider.js +3 -4
- package/dist/components/toast/toast-provider.js.map +1 -1
- package/dist/components/toast/toast-root.cjs +3 -4
- package/dist/components/toast/toast-root.cjs.map +1 -1
- package/dist/components/toast/toast-root.d.ts +5 -3
- package/dist/components/toast/toast-root.d.ts.map +1 -1
- package/dist/components/toast/toast-root.js +3 -4
- package/dist/components/toast/toast-root.js.map +1 -1
- package/dist/components/toast/toast.d.ts +4 -2
- package/dist/components/toast/toast.d.ts.map +1 -1
- package/dist/components/toggle/__tests__/toggle.test.d.ts +2 -0
- package/dist/components/toggle/__tests__/toggle.test.d.ts.map +1 -0
- package/dist/components/toggle/index.d.ts +2 -0
- package/dist/components/toggle/index.d.ts.map +1 -0
- package/dist/components/toggle/toggle.cjs +36 -0
- package/dist/components/toggle/toggle.cjs.map +1 -0
- package/dist/components/toggle/toggle.d.ts +22 -0
- package/dist/components/toggle/toggle.d.ts.map +1 -0
- package/dist/components/toggle/toggle.js +34 -0
- package/dist/components/toggle/toggle.js.map +1 -0
- package/dist/components/toggle/toggle.module.css.cjs +8 -0
- package/dist/components/toggle/toggle.module.css.cjs.map +1 -0
- package/dist/components/toggle/toggle.module.css.js +4 -0
- package/dist/components/toggle/toggle.module.css.js.map +1 -0
- package/dist/components/toolbar/__tests__/toolbar.test.d.ts +2 -0
- package/dist/components/toolbar/__tests__/toolbar.test.d.ts.map +1 -0
- package/dist/components/toolbar/index.d.ts +2 -0
- package/dist/components/toolbar/index.d.ts.map +1 -0
- package/dist/components/toolbar/toolbar.cjs +25 -0
- package/dist/components/toolbar/toolbar.cjs.map +1 -0
- package/dist/components/toolbar/toolbar.d.ts +20 -0
- package/dist/components/toolbar/toolbar.d.ts.map +1 -0
- package/dist/components/toolbar/toolbar.js +23 -0
- package/dist/components/toolbar/toolbar.js.map +1 -0
- package/dist/components/toolbar/toolbar.module.css.cjs +8 -0
- package/dist/components/toolbar/toolbar.module.css.cjs.map +1 -0
- package/dist/components/toolbar/toolbar.module.css.js +4 -0
- package/dist/components/toolbar/toolbar.module.css.js.map +1 -0
- package/dist/components/tooltip/tooltip-content.cjs +2 -3
- package/dist/components/tooltip/tooltip-content.cjs.map +1 -1
- package/dist/components/tooltip/tooltip-content.d.ts +5 -2
- package/dist/components/tooltip/tooltip-content.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip-content.js +2 -3
- package/dist/components/tooltip/tooltip-content.js.map +1 -1
- package/dist/components/tooltip/tooltip-misc.cjs +3 -4
- package/dist/components/tooltip/tooltip-misc.cjs.map +1 -1
- package/dist/components/tooltip/tooltip-misc.d.ts +4 -1
- package/dist/components/tooltip/tooltip-misc.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip-misc.js +3 -4
- package/dist/components/tooltip/tooltip-misc.js.map +1 -1
- package/dist/components/tooltip/tooltip.cjs +2 -1
- package/dist/components/tooltip/tooltip.cjs.map +1 -1
- package/dist/components/tooltip/tooltip.d.ts +5 -2
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.js +2 -1
- package/dist/components/tooltip/tooltip.js.map +1 -1
- package/dist/index.cjs +16 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +7 -6
- package/dist/components/box/box.module.css.cjs.map +0 -1
- package/dist/components/box/box.module.css.js +0 -4
- package/dist/components/box/box.module.css.js.map +0 -1
|
@@ -11,6 +11,9 @@ type GridItemProps = useRender.ComponentProps<'div'> & {
|
|
|
11
11
|
justifySelf?: AlignType;
|
|
12
12
|
alignSelf?: AlignType;
|
|
13
13
|
};
|
|
14
|
-
export declare
|
|
14
|
+
export declare function GridItem({ area, colStart, colEnd, rowStart, rowEnd, colSpan, rowSpan, justifySelf, alignSelf, style, render, ref, ...props }: GridItemProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
15
|
+
export declare namespace GridItem {
|
|
16
|
+
var displayName: string;
|
|
17
|
+
}
|
|
15
18
|
export {};
|
|
16
19
|
//# sourceMappingURL=grid-item.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-item.d.ts","sourceRoot":"","sources":["../../../components/grid/grid-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"grid-item.d.ts","sourceRoot":"","sources":["../../../components/grid/grid-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,KAAK,aAAa,GAAG,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IACrD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,MAAM,EACN,OAAO,EACP,OAAO,EACP,WAAW,EACX,SAAS,EACT,KAAK,EACL,MAAM,EACN,GAAG,EACH,GAAG,KAAK,EACT,EAAE,aAAa,8FAsBf;yBApCe,QAAQ"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { useRender, mergeProps } from '@base-ui/react';
|
|
2
|
-
import { forwardRef } from 'react';
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
function GridItem({ area, colStart, colEnd, rowStart, rowEnd, colSpan, rowSpan, justifySelf, alignSelf, style, render, ref, ...props }) {
|
|
5
4
|
const gridItemStyle = {
|
|
6
5
|
gridArea: area,
|
|
7
6
|
gridColumnStart: colStart,
|
|
@@ -21,8 +20,8 @@ const GridItem = forwardRef(({ area, colStart, colEnd, rowStart, rowEnd, colSpan
|
|
|
21
20
|
props: mergeProps({ style: gridItemStyle }, props)
|
|
22
21
|
});
|
|
23
22
|
return element;
|
|
24
|
-
}
|
|
25
|
-
GridItem.displayName = '
|
|
23
|
+
}
|
|
24
|
+
GridItem.displayName = 'Grid.Item';
|
|
26
25
|
|
|
27
26
|
export { GridItem };
|
|
28
27
|
//# sourceMappingURL=grid-item.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-item.js","sources":["../../../components/grid/grid-item.tsx"],"sourcesContent":["import { mergeProps, useRender } from '@base-ui/react';\nimport {
|
|
1
|
+
{"version":3,"file":"grid-item.js","sources":["../../../components/grid/grid-item.tsx"],"sourcesContent":["import { mergeProps, useRender } from '@base-ui/react';\nimport { AlignType } from './types';\n\ntype GridItemProps = useRender.ComponentProps<'div'> & {\n area?: string;\n colStart?: number | string;\n colEnd?: number | string;\n rowStart?: number | string;\n rowEnd?: number | string;\n colSpan?: number | string;\n rowSpan?: number | string;\n justifySelf?: AlignType;\n alignSelf?: AlignType;\n};\n\nexport function GridItem({\n area,\n colStart,\n colEnd,\n rowStart,\n rowEnd,\n colSpan,\n rowSpan,\n justifySelf,\n alignSelf,\n style,\n render,\n ref,\n ...props\n}: GridItemProps) {\n const gridItemStyle = {\n gridArea: area,\n gridColumnStart: colStart,\n gridColumnEnd: colEnd,\n gridRowStart: rowStart,\n gridRowEnd: rowEnd,\n gridColumn: colSpan ? `span ${colSpan}` : undefined,\n gridRow: rowSpan ? `span ${rowSpan}` : undefined,\n justifySelf,\n alignSelf,\n ...style\n };\n\n const element = useRender({\n defaultTagName: 'div',\n ref,\n render,\n props: mergeProps<'div'>({ style: gridItemStyle }, props)\n });\n\n return element;\n}\n\nGridItem.displayName = 'Grid.Item';\n"],"names":[],"mappings":";;AAegB,SAAA,QAAQ,CAAC,EACvB,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,MAAM,EACN,OAAO,EACP,OAAO,EACP,WAAW,EACX,SAAS,EACT,KAAK,EACL,MAAM,EACN,GAAG,EACH,GAAG,KAAK,EACM,EAAA;AACd,IAAA,MAAM,aAAa,GAAG;AACpB,QAAA,QAAQ,EAAE,IAAI;AACd,QAAA,eAAe,EAAE,QAAQ;AACzB,QAAA,aAAa,EAAE,MAAM;AACrB,QAAA,YAAY,EAAE,QAAQ;AACtB,QAAA,UAAU,EAAE,MAAM;QAClB,UAAU,EAAE,OAAO,GAAG,CAAQ,KAAA,EAAA,OAAO,CAAE,CAAA,GAAG,SAAS;QACnD,OAAO,EAAE,OAAO,GAAG,CAAQ,KAAA,EAAA,OAAO,CAAE,CAAA,GAAG,SAAS;QAChD,WAAW;QACX,SAAS;AACT,QAAA,GAAG,KAAK;KACT,CAAC;IAEF,MAAM,OAAO,GAAG,SAAS,CAAC;AACxB,QAAA,cAAc,EAAE,KAAK;QACrB,GAAG;QACH,MAAM;QACN,KAAK,EAAE,UAAU,CAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,EAAE,KAAK,CAAC;AAC1D,KAAA,CAAC,CAAC;AAEH,IAAA,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,QAAQ,CAAC,WAAW,GAAG,WAAW;;;;"}
|
|
@@ -10,7 +10,7 @@ const GAPS = {
|
|
|
10
10
|
large: 'var(--rs-space-9)',
|
|
11
11
|
'extra-large': 'var(--rs-space-11)'
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
function Grid({ templateAreas, autoFlow, autoColumns, autoRows, columns, rows, gap, columnGap, rowGap, justifyItems, alignItems, justifyContent, alignContent, inline = false, style = {}, render, ref, ...props }) {
|
|
14
14
|
const gridTemplateColumns = typeof columns === 'number' ? `repeat(${columns}, 1fr)` : columns;
|
|
15
15
|
const gridTemplateRows = typeof rows === 'number' ? `repeat(${rows}, 1fr)` : rows;
|
|
16
16
|
const gridTemplateAreas = React.useMemo(() => {
|
|
@@ -46,7 +46,7 @@ const Grid = React.forwardRef(({ templateAreas, autoFlow, autoColumns, autoRows,
|
|
|
46
46
|
props: react.mergeProps({ style: gridStyle }, props)
|
|
47
47
|
});
|
|
48
48
|
return element;
|
|
49
|
-
}
|
|
49
|
+
}
|
|
50
50
|
Grid.displayName = 'Grid';
|
|
51
51
|
|
|
52
52
|
exports.Grid = Grid;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid.cjs","sources":["../../../components/grid/grid.tsx"],"sourcesContent":["import { mergeProps, useRender } from '@base-ui/react';\nimport {
|
|
1
|
+
{"version":3,"file":"grid.cjs","sources":["../../../components/grid/grid.tsx"],"sourcesContent":["import { mergeProps, useRender } from '@base-ui/react';\nimport { useMemo } from 'react';\nimport { AlignExtendedType, AlignType } from './types';\n\nconst GAPS = {\n 'extra-small': 'var(--rs-space-2)',\n small: 'var(--rs-space-3)',\n medium: 'var(--rs-space-5)',\n large: 'var(--rs-space-9)',\n 'extra-large': 'var(--rs-space-11)'\n} as const;\n\ntype GapType = keyof typeof GAPS;\n\ntype GridProps = useRender.ComponentProps<'div'> & {\n /**\n * Supports CSS Grid template areas syntax.\n *\n * @example\n * <Grid templateAreas=\"header header header\" />\n * <Grid templateAreas={[\"header header header\", \"sidebar main main\", \"footer footer footer\"]} />\n */\n templateAreas?: string | string[];\n autoFlow?: 'row' | 'column' | 'dense' | 'row dense' | 'column dense';\n autoColumns?: string;\n autoRows?: string;\n\n /**\n * Supports CSS Grid template columns syntax.\n *\n * If you pass a number, columns will be created using repeat(n, 1fr).\n *\n * @example\n * <Grid columns=\"1fr 1fr 1fr\" />\n * <Grid columns={3} />\n */\n columns?: string | number;\n\n /**\n * Supports CSS Grid template rows syntax.\n *\n * If you pass a number, rows will be created using repeat(n, 1fr).\n *\n * @example\n * <Grid rows=\"1fr 1fr 1fr\" />\n * <Grid rows={3} />\n */\n rows?: string | number;\n gap?: GapType;\n columnGap?: GapType;\n rowGap?: GapType;\n justifyItems?: AlignType;\n alignItems?: AlignType;\n justifyContent?: AlignExtendedType;\n alignContent?: AlignExtendedType;\n inline?: boolean;\n};\n\nexport function Grid({\n templateAreas,\n autoFlow,\n autoColumns,\n autoRows,\n columns,\n rows,\n gap,\n columnGap,\n rowGap,\n justifyItems,\n alignItems,\n justifyContent,\n alignContent,\n inline = false,\n style = {},\n render,\n ref,\n ...props\n}: GridProps) {\n const gridTemplateColumns =\n typeof columns === 'number' ? `repeat(${columns}, 1fr)` : columns;\n const gridTemplateRows =\n typeof rows === 'number' ? `repeat(${rows}, 1fr)` : rows;\n\n const gridTemplateAreas = useMemo(() => {\n if (Array.isArray(templateAreas)) {\n return templateAreas\n .map(area => `\"${area}\"`)\n .join(' ')\n .trim();\n }\n return templateAreas;\n }, [templateAreas]);\n\n const gridStyle = {\n display: inline ? 'inline-grid' : 'grid',\n gridTemplateAreas,\n gridAutoFlow: autoFlow,\n gridAutoColumns: autoColumns,\n gridAutoRows: autoRows,\n gridTemplateColumns,\n gridTemplateRows,\n gap: gap && GAPS[gap],\n columnGap: columnGap && GAPS[columnGap],\n rowGap: rowGap && GAPS[rowGap],\n justifyItems,\n alignItems,\n justifyContent,\n alignContent,\n ...style\n };\n\n const element = useRender({\n defaultTagName: 'div',\n ref,\n render,\n props: mergeProps<'div'>({ style: gridStyle }, props)\n });\n\n return element;\n}\n\nGrid.displayName = 'Grid';\n"],"names":["useMemo","useRender","mergeProps"],"mappings":";;;;;AAIA,MAAM,IAAI,GAAG;AACX,IAAA,aAAa,EAAE,mBAAmB;AAClC,IAAA,KAAK,EAAE,mBAAmB;AAC1B,IAAA,MAAM,EAAE,mBAAmB;AAC3B,IAAA,KAAK,EAAE,mBAAmB;AAC1B,IAAA,aAAa,EAAE,oBAAoB;CAC3B,CAAC;AAgDL,SAAU,IAAI,CAAC,EACnB,aAAa,EACb,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,GAAG,EACH,SAAS,EACT,MAAM,EACN,YAAY,EACZ,UAAU,EACV,cAAc,EACd,YAAY,EACZ,MAAM,GAAG,KAAK,EACd,KAAK,GAAG,EAAE,EACV,MAAM,EACN,GAAG,EACH,GAAG,KAAK,EACE,EAAA;AACV,IAAA,MAAM,mBAAmB,GACvB,OAAO,OAAO,KAAK,QAAQ,GAAG,CAAA,OAAA,EAAU,OAAO,CAAQ,MAAA,CAAA,GAAG,OAAO,CAAC;AACpE,IAAA,MAAM,gBAAgB,GACpB,OAAO,IAAI,KAAK,QAAQ,GAAG,CAAA,OAAA,EAAU,IAAI,CAAQ,MAAA,CAAA,GAAG,IAAI,CAAC;AAE3D,IAAA,MAAM,iBAAiB,GAAGA,aAAO,CAAC,MAAK;AACrC,QAAA,IAAI,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE;AAChC,YAAA,OAAO,aAAa;iBACjB,GAAG,CAAC,IAAI,IAAI,CAAI,CAAA,EAAA,IAAI,GAAG,CAAC;iBACxB,IAAI,CAAC,GAAG,CAAC;AACT,iBAAA,IAAI,EAAE,CAAC;SACX;AACD,QAAA,OAAO,aAAa,CAAC;AACvB,KAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;AAEpB,IAAA,MAAM,SAAS,GAAG;QAChB,OAAO,EAAE,MAAM,GAAG,aAAa,GAAG,MAAM;QACxC,iBAAiB;AACjB,QAAA,YAAY,EAAE,QAAQ;AACtB,QAAA,eAAe,EAAE,WAAW;AAC5B,QAAA,YAAY,EAAE,QAAQ;QACtB,mBAAmB;QACnB,gBAAgB;AAChB,QAAA,GAAG,EAAE,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC;AACrB,QAAA,SAAS,EAAE,SAAS,IAAI,IAAI,CAAC,SAAS,CAAC;AACvC,QAAA,MAAM,EAAE,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC;QAC9B,YAAY;QACZ,UAAU;QACV,cAAc;QACd,YAAY;AACZ,QAAA,GAAG,KAAK;KACT,CAAC;IAEF,MAAM,OAAO,GAAGC,eAAS,CAAC;AACxB,QAAA,cAAc,EAAE,KAAK;QACrB,GAAG;QACH,MAAM;QACN,KAAK,EAAEC,gBAAU,CAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,KAAK,CAAC;AACtD,KAAA,CAAC,CAAC;AAEH,IAAA,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,IAAI,CAAC,WAAW,GAAG,MAAM;;;;"}
|
|
@@ -49,6 +49,9 @@ type GridProps = useRender.ComponentProps<'div'> & {
|
|
|
49
49
|
alignContent?: AlignExtendedType;
|
|
50
50
|
inline?: boolean;
|
|
51
51
|
};
|
|
52
|
-
export declare
|
|
52
|
+
export declare function Grid({ templateAreas, autoFlow, autoColumns, autoRows, columns, rows, gap, columnGap, rowGap, justifyItems, alignItems, justifyContent, alignContent, inline, style, render, ref, ...props }: GridProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
53
|
+
export declare namespace Grid {
|
|
54
|
+
var displayName: string;
|
|
55
|
+
}
|
|
53
56
|
export {};
|
|
54
57
|
//# sourceMappingURL=grid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../components/grid/grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEvD,QAAA,MAAM,IAAI;;;;;;CAMA,CAAC;AAEX,KAAK,OAAO,GAAG,MAAM,OAAO,IAAI,CAAC;AAEjC,KAAK,SAAS,GAAG,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IACjD;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,WAAW,GAAG,cAAc,CAAC;IACrE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE1B;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,cAAc,CAAC,EAAE,iBAAiB,CAAC;IACnC,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../components/grid/grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEvD,QAAA,MAAM,IAAI;;;;;;CAMA,CAAC;AAEX,KAAK,OAAO,GAAG,MAAM,OAAO,IAAI,CAAC;AAEjC,KAAK,SAAS,GAAG,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IACjD;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,WAAW,GAAG,cAAc,CAAC;IACrE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE1B;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,cAAc,CAAC,EAAE,iBAAiB,CAAC;IACnC,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,wBAAgB,IAAI,CAAC,EACnB,aAAa,EACb,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,GAAG,EACH,SAAS,EACT,MAAM,EACN,YAAY,EACZ,UAAU,EACV,cAAc,EACd,YAAY,EACZ,MAAc,EACd,KAAU,EACV,MAAM,EACN,GAAG,EACH,GAAG,KAAK,EACT,EAAE,SAAS,8FA0CX;yBA7De,IAAI"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useRender, mergeProps } from '@base-ui/react';
|
|
2
|
-
import {
|
|
2
|
+
import { useMemo } from 'react';
|
|
3
3
|
|
|
4
4
|
const GAPS = {
|
|
5
5
|
'extra-small': 'var(--rs-space-2)',
|
|
@@ -8,7 +8,7 @@ const GAPS = {
|
|
|
8
8
|
large: 'var(--rs-space-9)',
|
|
9
9
|
'extra-large': 'var(--rs-space-11)'
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
function Grid({ templateAreas, autoFlow, autoColumns, autoRows, columns, rows, gap, columnGap, rowGap, justifyItems, alignItems, justifyContent, alignContent, inline = false, style = {}, render, ref, ...props }) {
|
|
12
12
|
const gridTemplateColumns = typeof columns === 'number' ? `repeat(${columns}, 1fr)` : columns;
|
|
13
13
|
const gridTemplateRows = typeof rows === 'number' ? `repeat(${rows}, 1fr)` : rows;
|
|
14
14
|
const gridTemplateAreas = useMemo(() => {
|
|
@@ -44,7 +44,7 @@ const Grid = forwardRef(({ templateAreas, autoFlow, autoColumns, autoRows, colum
|
|
|
44
44
|
props: mergeProps({ style: gridStyle }, props)
|
|
45
45
|
});
|
|
46
46
|
return element;
|
|
47
|
-
}
|
|
47
|
+
}
|
|
48
48
|
Grid.displayName = 'Grid';
|
|
49
49
|
|
|
50
50
|
export { Grid };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid.js","sources":["../../../components/grid/grid.tsx"],"sourcesContent":["import { mergeProps, useRender } from '@base-ui/react';\nimport {
|
|
1
|
+
{"version":3,"file":"grid.js","sources":["../../../components/grid/grid.tsx"],"sourcesContent":["import { mergeProps, useRender } from '@base-ui/react';\nimport { useMemo } from 'react';\nimport { AlignExtendedType, AlignType } from './types';\n\nconst GAPS = {\n 'extra-small': 'var(--rs-space-2)',\n small: 'var(--rs-space-3)',\n medium: 'var(--rs-space-5)',\n large: 'var(--rs-space-9)',\n 'extra-large': 'var(--rs-space-11)'\n} as const;\n\ntype GapType = keyof typeof GAPS;\n\ntype GridProps = useRender.ComponentProps<'div'> & {\n /**\n * Supports CSS Grid template areas syntax.\n *\n * @example\n * <Grid templateAreas=\"header header header\" />\n * <Grid templateAreas={[\"header header header\", \"sidebar main main\", \"footer footer footer\"]} />\n */\n templateAreas?: string | string[];\n autoFlow?: 'row' | 'column' | 'dense' | 'row dense' | 'column dense';\n autoColumns?: string;\n autoRows?: string;\n\n /**\n * Supports CSS Grid template columns syntax.\n *\n * If you pass a number, columns will be created using repeat(n, 1fr).\n *\n * @example\n * <Grid columns=\"1fr 1fr 1fr\" />\n * <Grid columns={3} />\n */\n columns?: string | number;\n\n /**\n * Supports CSS Grid template rows syntax.\n *\n * If you pass a number, rows will be created using repeat(n, 1fr).\n *\n * @example\n * <Grid rows=\"1fr 1fr 1fr\" />\n * <Grid rows={3} />\n */\n rows?: string | number;\n gap?: GapType;\n columnGap?: GapType;\n rowGap?: GapType;\n justifyItems?: AlignType;\n alignItems?: AlignType;\n justifyContent?: AlignExtendedType;\n alignContent?: AlignExtendedType;\n inline?: boolean;\n};\n\nexport function Grid({\n templateAreas,\n autoFlow,\n autoColumns,\n autoRows,\n columns,\n rows,\n gap,\n columnGap,\n rowGap,\n justifyItems,\n alignItems,\n justifyContent,\n alignContent,\n inline = false,\n style = {},\n render,\n ref,\n ...props\n}: GridProps) {\n const gridTemplateColumns =\n typeof columns === 'number' ? `repeat(${columns}, 1fr)` : columns;\n const gridTemplateRows =\n typeof rows === 'number' ? `repeat(${rows}, 1fr)` : rows;\n\n const gridTemplateAreas = useMemo(() => {\n if (Array.isArray(templateAreas)) {\n return templateAreas\n .map(area => `\"${area}\"`)\n .join(' ')\n .trim();\n }\n return templateAreas;\n }, [templateAreas]);\n\n const gridStyle = {\n display: inline ? 'inline-grid' : 'grid',\n gridTemplateAreas,\n gridAutoFlow: autoFlow,\n gridAutoColumns: autoColumns,\n gridAutoRows: autoRows,\n gridTemplateColumns,\n gridTemplateRows,\n gap: gap && GAPS[gap],\n columnGap: columnGap && GAPS[columnGap],\n rowGap: rowGap && GAPS[rowGap],\n justifyItems,\n alignItems,\n justifyContent,\n alignContent,\n ...style\n };\n\n const element = useRender({\n defaultTagName: 'div',\n ref,\n render,\n props: mergeProps<'div'>({ style: gridStyle }, props)\n });\n\n return element;\n}\n\nGrid.displayName = 'Grid';\n"],"names":[],"mappings":";;;AAIA,MAAM,IAAI,GAAG;AACX,IAAA,aAAa,EAAE,mBAAmB;AAClC,IAAA,KAAK,EAAE,mBAAmB;AAC1B,IAAA,MAAM,EAAE,mBAAmB;AAC3B,IAAA,KAAK,EAAE,mBAAmB;AAC1B,IAAA,aAAa,EAAE,oBAAoB;CAC3B,CAAC;AAgDL,SAAU,IAAI,CAAC,EACnB,aAAa,EACb,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,GAAG,EACH,SAAS,EACT,MAAM,EACN,YAAY,EACZ,UAAU,EACV,cAAc,EACd,YAAY,EACZ,MAAM,GAAG,KAAK,EACd,KAAK,GAAG,EAAE,EACV,MAAM,EACN,GAAG,EACH,GAAG,KAAK,EACE,EAAA;AACV,IAAA,MAAM,mBAAmB,GACvB,OAAO,OAAO,KAAK,QAAQ,GAAG,CAAA,OAAA,EAAU,OAAO,CAAQ,MAAA,CAAA,GAAG,OAAO,CAAC;AACpE,IAAA,MAAM,gBAAgB,GACpB,OAAO,IAAI,KAAK,QAAQ,GAAG,CAAA,OAAA,EAAU,IAAI,CAAQ,MAAA,CAAA,GAAG,IAAI,CAAC;AAE3D,IAAA,MAAM,iBAAiB,GAAG,OAAO,CAAC,MAAK;AACrC,QAAA,IAAI,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE;AAChC,YAAA,OAAO,aAAa;iBACjB,GAAG,CAAC,IAAI,IAAI,CAAI,CAAA,EAAA,IAAI,GAAG,CAAC;iBACxB,IAAI,CAAC,GAAG,CAAC;AACT,iBAAA,IAAI,EAAE,CAAC;SACX;AACD,QAAA,OAAO,aAAa,CAAC;AACvB,KAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;AAEpB,IAAA,MAAM,SAAS,GAAG;QAChB,OAAO,EAAE,MAAM,GAAG,aAAa,GAAG,MAAM;QACxC,iBAAiB;AACjB,QAAA,YAAY,EAAE,QAAQ;AACtB,QAAA,eAAe,EAAE,WAAW;AAC5B,QAAA,YAAY,EAAE,QAAQ;QACtB,mBAAmB;QACnB,gBAAgB;AAChB,QAAA,GAAG,EAAE,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC;AACrB,QAAA,SAAS,EAAE,SAAS,IAAI,IAAI,CAAC,SAAS,CAAC;AACvC,QAAA,MAAM,EAAE,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC;QAC9B,YAAY;QACZ,UAAU;QACV,cAAc;QACd,YAAY;AACZ,QAAA,GAAG,KAAK;KACT,CAAC;IAEF,MAAM,OAAO,GAAG,SAAS,CAAC;AACxB,QAAA,cAAc,EAAE,KAAK;QACrB,GAAG;QACH,MAAM;QACN,KAAK,EAAE,UAAU,CAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,KAAK,CAAC;AACtD,KAAA,CAAC,CAAC;AAEH,IAAA,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,IAAI,CAAC,WAAW,GAAG,MAAM;;;;"}
|
|
@@ -1,33 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
autoFlow?: "row" | "column" | "dense" | "row dense" | "column dense" | undefined;
|
|
6
|
-
autoColumns?: string | undefined;
|
|
7
|
-
autoRows?: string | undefined;
|
|
8
|
-
columns?: string | number | undefined;
|
|
9
|
-
rows?: string | number | undefined;
|
|
10
|
-
gap?: "small" | "extra-small" | "medium" | "large" | "extra-large" | undefined;
|
|
11
|
-
columnGap?: "small" | "extra-small" | "medium" | "large" | "extra-large" | undefined;
|
|
12
|
-
rowGap?: "small" | "extra-small" | "medium" | "large" | "extra-large" | undefined;
|
|
13
|
-
justifyItems?: import("./types").AlignType | undefined;
|
|
14
|
-
alignItems?: import("./types").AlignType | undefined;
|
|
15
|
-
justifyContent?: import("./types").AlignExtendedType | undefined;
|
|
16
|
-
alignContent?: import("./types").AlignExtendedType | undefined;
|
|
17
|
-
inline?: boolean | undefined;
|
|
18
|
-
}, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
19
|
-
Item: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
20
|
-
render?: import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("@base-ui/react").ComponentRenderFn<import("@base-ui/react").HTMLProps, {}> | undefined;
|
|
21
|
-
} & {
|
|
22
|
-
area?: string | undefined;
|
|
23
|
-
colStart?: string | number | undefined;
|
|
24
|
-
colEnd?: string | number | undefined;
|
|
25
|
-
rowStart?: string | number | undefined;
|
|
26
|
-
rowEnd?: string | number | undefined;
|
|
27
|
-
colSpan?: string | number | undefined;
|
|
28
|
-
rowSpan?: string | number | undefined;
|
|
29
|
-
justifySelf?: import("./types").AlignType | undefined;
|
|
30
|
-
alignSelf?: import("./types").AlignType | undefined;
|
|
31
|
-
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
1
|
+
import { Grid as GridPrimitive } from "./grid";
|
|
2
|
+
import { GridItem } from "./grid-item";
|
|
3
|
+
export declare const Grid: typeof GridPrimitive & {
|
|
4
|
+
Item: typeof GridItem;
|
|
32
5
|
};
|
|
33
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/grid/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/grid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,eAAO,MAAM,IAAI;;CAEf,CAAC"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var classVarianceAuthority = require('class-variance-authority');
|
|
5
|
-
var React = require('react');
|
|
6
5
|
var headline_module = require('./headline.module.css.cjs');
|
|
7
6
|
|
|
8
7
|
const headline = classVarianceAuthority.cva(headline_module.default.headline, {
|
|
@@ -36,9 +35,9 @@ const headline = classVarianceAuthority.cva(headline_module.default.headline, {
|
|
|
36
35
|
truncate: false
|
|
37
36
|
}
|
|
38
37
|
});
|
|
39
|
-
|
|
40
|
-
return (jsxRuntime.jsx(Component, {
|
|
41
|
-
}
|
|
38
|
+
function Headline({ className, size, weight, align, truncate, as: Component = 'h2', ...props }) {
|
|
39
|
+
return (jsxRuntime.jsx(Component, { className: headline({ size, weight, align, truncate, className }), ...props }));
|
|
40
|
+
}
|
|
42
41
|
Headline.displayName = 'Headline';
|
|
43
42
|
|
|
44
43
|
exports.Headline = Headline;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headline.cjs","sources":["../../../components/headline/headline.tsx"],"sourcesContent":["import { type VariantProps
|
|
1
|
+
{"version":3,"file":"headline.cjs","sources":["../../../components/headline/headline.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport { ComponentProps } from 'react';\nimport styles from './headline.module.css';\n\nconst headline = cva(styles.headline, {\n variants: {\n size: {\n t1: styles['headline-t1'],\n t2: styles['headline-t2'],\n t3: styles['headline-t3'],\n t4: styles['headline-t4'],\n small: styles['headline-small'],\n medium: styles['headline-medium'],\n large: styles['headline-large']\n },\n weight: {\n regular: styles['headline-weight-regular'],\n medium: styles['headline-weight-medium']\n },\n align: {\n left: styles['headline-align-left'],\n center: styles['headline-align-center'],\n right: styles['headline-align-right']\n },\n truncate: {\n true: styles['headline-truncate']\n }\n },\n defaultVariants: {\n size: 't2',\n weight: 'medium',\n align: 'left',\n truncate: false\n }\n});\n\nexport type HeadlineBaseProps = VariantProps<typeof headline> & {\n /**\n * @remarks Use \"t1\" | \"t2\" | \"t3\" | \"t4\"\n */\n size?: 't1' | 't2' | 't3' | 't4' | 'small' | 'medium' | 'large';\n};\n\ntype HeadlineProps = HeadlineBaseProps &\n ComponentProps<'h1'> & {\n as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';\n };\n\nexport function Headline({\n className,\n size,\n weight,\n align,\n truncate,\n as: Component = 'h2',\n ...props\n}: HeadlineProps) {\n return (\n <Component\n className={headline({ size, weight, align, truncate, className })}\n {...props}\n />\n );\n}\n\nHeadline.displayName = 'Headline';\n"],"names":["cva","styles","_jsx"],"mappings":";;;;;;AAIA,MAAM,QAAQ,GAAGA,0BAAG,CAACC,uBAAM,CAAC,QAAQ,EAAE;AACpC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,EAAE,EAAEA,uBAAM,CAAC,aAAa,CAAC;AACzB,YAAA,EAAE,EAAEA,uBAAM,CAAC,aAAa,CAAC;AACzB,YAAA,EAAE,EAAEA,uBAAM,CAAC,aAAa,CAAC;AACzB,YAAA,EAAE,EAAEA,uBAAM,CAAC,aAAa,CAAC;AACzB,YAAA,KAAK,EAAEA,uBAAM,CAAC,gBAAgB,CAAC;AAC/B,YAAA,MAAM,EAAEA,uBAAM,CAAC,iBAAiB,CAAC;AACjC,YAAA,KAAK,EAAEA,uBAAM,CAAC,gBAAgB,CAAC;AAChC,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA,OAAO,EAAEA,uBAAM,CAAC,yBAAyB,CAAC;AAC1C,YAAA,MAAM,EAAEA,uBAAM,CAAC,wBAAwB,CAAC;AACzC,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA,IAAI,EAAEA,uBAAM,CAAC,qBAAqB,CAAC;AACnC,YAAA,MAAM,EAAEA,uBAAM,CAAC,uBAAuB,CAAC;AACvC,YAAA,KAAK,EAAEA,uBAAM,CAAC,sBAAsB,CAAC;AACtC,SAAA;AACD,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAEA,uBAAM,CAAC,mBAAmB,CAAC;AAClC,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,IAAI;AACV,QAAA,MAAM,EAAE,QAAQ;AAChB,QAAA,KAAK,EAAE,MAAM;AACb,QAAA,QAAQ,EAAE,KAAK;AAChB,KAAA;AACF,CAAA,CAAC,CAAC;AAcG,SAAU,QAAQ,CAAC,EACvB,SAAS,EACT,IAAI,EACJ,MAAM,EACN,KAAK,EACL,QAAQ,EACR,EAAE,EAAE,SAAS,GAAG,IAAI,EACpB,GAAG,KAAK,EACM,EAAA;IACd,QACEC,cAAC,CAAA,SAAS,EACR,EAAA,SAAS,EAAE,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAC7D,GAAA,KAAK,EACT,CAAA,EACF;AACJ,CAAC;AAED,QAAQ,CAAC,WAAW,GAAG,UAAU;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
-
import {
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
3
|
declare const headline: (props?: ({
|
|
4
4
|
size?: "small" | "medium" | "large" | "t1" | "t2" | "t3" | "t4" | null | undefined;
|
|
5
5
|
weight?: "medium" | "regular" | null | undefined;
|
|
@@ -12,18 +12,12 @@ export type HeadlineBaseProps = VariantProps<typeof headline> & {
|
|
|
12
12
|
*/
|
|
13
13
|
size?: 't1' | 't2' | 't3' | 't4' | 'small' | 'medium' | 'large';
|
|
14
14
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
* @remarks Use "t1" | "t2" | "t3" | "t4"
|
|
23
|
-
*/
|
|
24
|
-
size?: "small" | "medium" | "large" | "t1" | "t2" | "t3" | "t4" | undefined;
|
|
25
|
-
} & HTMLAttributes<HTMLHeadingElement> & {
|
|
26
|
-
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | undefined;
|
|
27
|
-
} & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
15
|
+
type HeadlineProps = HeadlineBaseProps & ComponentProps<'h1'> & {
|
|
16
|
+
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
17
|
+
};
|
|
18
|
+
export declare function Headline({ className, size, weight, align, truncate, as: Component, ...props }: HeadlineProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare namespace Headline {
|
|
20
|
+
var displayName: string;
|
|
21
|
+
}
|
|
28
22
|
export {};
|
|
29
23
|
//# sourceMappingURL=headline.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headline.d.ts","sourceRoot":"","sources":["../../../components/headline/headline.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"headline.d.ts","sourceRoot":"","sources":["../../../components/headline/headline.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAGvC,QAAA,MAAM,QAAQ;;;;;8EA8BZ,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,OAAO,QAAQ,CAAC,GAAG;IAC9D;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;CACjE,CAAC;AAEF,KAAK,aAAa,GAAG,iBAAiB,GACpC,cAAc,CAAC,IAAI,CAAC,GAAG;IACrB,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC9C,CAAC;AAEJ,wBAAgB,QAAQ,CAAC,EACvB,SAAS,EACT,IAAI,EACJ,MAAM,EACN,KAAK,EACL,QAAQ,EACR,EAAE,EAAE,SAAgB,EACpB,GAAG,KAAK,EACT,EAAE,aAAa,2CAOf;yBAfe,QAAQ"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { cva } from 'class-variance-authority';
|
|
3
|
-
import { forwardRef } from 'react';
|
|
4
3
|
import styles from './headline.module.css.js';
|
|
5
4
|
|
|
6
5
|
const headline = cva(styles.headline, {
|
|
@@ -34,9 +33,9 @@ const headline = cva(styles.headline, {
|
|
|
34
33
|
truncate: false
|
|
35
34
|
}
|
|
36
35
|
});
|
|
37
|
-
|
|
38
|
-
return (jsx(Component, {
|
|
39
|
-
}
|
|
36
|
+
function Headline({ className, size, weight, align, truncate, as: Component = 'h2', ...props }) {
|
|
37
|
+
return (jsx(Component, { className: headline({ size, weight, align, truncate, className }), ...props }));
|
|
38
|
+
}
|
|
40
39
|
Headline.displayName = 'Headline';
|
|
41
40
|
|
|
42
41
|
export { Headline };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headline.js","sources":["../../../components/headline/headline.tsx"],"sourcesContent":["import { type VariantProps
|
|
1
|
+
{"version":3,"file":"headline.js","sources":["../../../components/headline/headline.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport { ComponentProps } from 'react';\nimport styles from './headline.module.css';\n\nconst headline = cva(styles.headline, {\n variants: {\n size: {\n t1: styles['headline-t1'],\n t2: styles['headline-t2'],\n t3: styles['headline-t3'],\n t4: styles['headline-t4'],\n small: styles['headline-small'],\n medium: styles['headline-medium'],\n large: styles['headline-large']\n },\n weight: {\n regular: styles['headline-weight-regular'],\n medium: styles['headline-weight-medium']\n },\n align: {\n left: styles['headline-align-left'],\n center: styles['headline-align-center'],\n right: styles['headline-align-right']\n },\n truncate: {\n true: styles['headline-truncate']\n }\n },\n defaultVariants: {\n size: 't2',\n weight: 'medium',\n align: 'left',\n truncate: false\n }\n});\n\nexport type HeadlineBaseProps = VariantProps<typeof headline> & {\n /**\n * @remarks Use \"t1\" | \"t2\" | \"t3\" | \"t4\"\n */\n size?: 't1' | 't2' | 't3' | 't4' | 'small' | 'medium' | 'large';\n};\n\ntype HeadlineProps = HeadlineBaseProps &\n ComponentProps<'h1'> & {\n as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';\n };\n\nexport function Headline({\n className,\n size,\n weight,\n align,\n truncate,\n as: Component = 'h2',\n ...props\n}: HeadlineProps) {\n return (\n <Component\n className={headline({ size, weight, align, truncate, className })}\n {...props}\n />\n );\n}\n\nHeadline.displayName = 'Headline';\n"],"names":["_jsx"],"mappings":";;;;AAIA,MAAM,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE;AACpC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,EAAE,EAAE,MAAM,CAAC,aAAa,CAAC;AACzB,YAAA,EAAE,EAAE,MAAM,CAAC,aAAa,CAAC;AACzB,YAAA,EAAE,EAAE,MAAM,CAAC,aAAa,CAAC;AACzB,YAAA,EAAE,EAAE,MAAM,CAAC,aAAa,CAAC;AACzB,YAAA,KAAK,EAAE,MAAM,CAAC,gBAAgB,CAAC;AAC/B,YAAA,MAAM,EAAE,MAAM,CAAC,iBAAiB,CAAC;AACjC,YAAA,KAAK,EAAE,MAAM,CAAC,gBAAgB,CAAC;AAChC,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA,OAAO,EAAE,MAAM,CAAC,yBAAyB,CAAC;AAC1C,YAAA,MAAM,EAAE,MAAM,CAAC,wBAAwB,CAAC;AACzC,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA,IAAI,EAAE,MAAM,CAAC,qBAAqB,CAAC;AACnC,YAAA,MAAM,EAAE,MAAM,CAAC,uBAAuB,CAAC;AACvC,YAAA,KAAK,EAAE,MAAM,CAAC,sBAAsB,CAAC;AACtC,SAAA;AACD,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAE,MAAM,CAAC,mBAAmB,CAAC;AAClC,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,IAAI;AACV,QAAA,MAAM,EAAE,QAAQ;AAChB,QAAA,KAAK,EAAE,MAAM;AACb,QAAA,QAAQ,EAAE,KAAK;AAChB,KAAA;AACF,CAAA,CAAC,CAAC;AAcG,SAAU,QAAQ,CAAC,EACvB,SAAS,EACT,IAAI,EACJ,MAAM,EACN,KAAK,EACL,QAAQ,EACR,EAAE,EAAE,SAAS,GAAG,IAAI,EACpB,GAAG,KAAK,EACM,EAAA;IACd,QACEA,GAAC,CAAA,SAAS,EACR,EAAA,SAAS,EAAE,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAC7D,GAAA,KAAK,EACT,CAAA,EACF;AACJ,CAAC;AAED,QAAQ,CAAC,WAAW,GAAG,UAAU;;;;"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var classVarianceAuthority = require('class-variance-authority');
|
|
5
|
-
var React = require('react');
|
|
6
5
|
var flex = require('../flex/flex.cjs');
|
|
7
6
|
var iconButton_module = require('./icon-button.module.css.cjs');
|
|
8
7
|
|
|
@@ -19,7 +18,9 @@ const iconButton = classVarianceAuthority.cva(iconButton_module.default.iconButt
|
|
|
19
18
|
size: 2
|
|
20
19
|
}
|
|
21
20
|
});
|
|
22
|
-
|
|
21
|
+
function IconButton({ className, size, disabled, children, 'aria-label': ariaLabel, style, ...props }) {
|
|
22
|
+
return (jsxRuntime.jsx("button", { className: iconButton({ size, className }), disabled: disabled, type: 'button', "aria-label": ariaLabel, "aria-disabled": disabled, style: style, ...props, children: jsxRuntime.jsx(flex.Flex, { "aria-hidden": 'true', align: 'center', justify: 'center', children: children }) }));
|
|
23
|
+
}
|
|
23
24
|
IconButton.displayName = 'IconButton';
|
|
24
25
|
|
|
25
26
|
exports.IconButton = IconButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button.cjs","sources":["../../../components/icon-button/icon-button.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"icon-button.cjs","sources":["../../../components/icon-button/icon-button.tsx"],"sourcesContent":["import { cva, VariantProps } from 'class-variance-authority';\nimport { ComponentProps } from 'react';\nimport { Flex } from '../flex';\nimport styles from './icon-button.module.css';\n\nconst iconButton = cva(styles.iconButton, {\n variants: {\n size: {\n 1: styles['iconButton-size-1'],\n 2: styles['iconButton-size-2'],\n 3: styles['iconButton-size-3'],\n 4: styles['iconButton-size-4']\n }\n },\n defaultVariants: {\n size: 2\n }\n});\n\nexport interface IconButtonProps\n extends ComponentProps<'button'>,\n VariantProps<typeof iconButton> {\n size?: 1 | 2 | 3 | 4;\n 'aria-label'?: string;\n}\n\nexport function IconButton({\n className,\n size,\n disabled,\n children,\n 'aria-label': ariaLabel,\n style,\n ...props\n}: IconButtonProps) {\n return (\n <button\n className={iconButton({ size, className })}\n disabled={disabled}\n type='button'\n aria-label={ariaLabel}\n aria-disabled={disabled}\n style={style}\n {...props}\n >\n <Flex aria-hidden='true' align='center' justify='center'>\n {children}\n </Flex>\n </button>\n );\n}\n\nIconButton.displayName = 'IconButton';\n"],"names":["cva","styles","_jsx","Flex"],"mappings":";;;;;;;AAKA,MAAM,UAAU,GAAGA,0BAAG,CAACC,yBAAM,CAAC,UAAU,EAAE;AACxC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,CAAC,EAAEA,yBAAM,CAAC,mBAAmB,CAAC;AAC9B,YAAA,CAAC,EAAEA,yBAAM,CAAC,mBAAmB,CAAC;AAC9B,YAAA,CAAC,EAAEA,yBAAM,CAAC,mBAAmB,CAAC;AAC9B,YAAA,CAAC,EAAEA,yBAAM,CAAC,mBAAmB,CAAC;AAC/B,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,CAAC;AACR,KAAA;AACF,CAAA,CAAC,CAAC;AASG,SAAU,UAAU,CAAC,EACzB,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,YAAY,EAAE,SAAS,EACvB,KAAK,EACL,GAAG,KAAK,EACQ,EAAA;IAChB,QACEC,2BACE,SAAS,EAAE,UAAU,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAC1C,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAC,QAAQ,EACD,YAAA,EAAA,SAAS,EACN,eAAA,EAAA,QAAQ,EACvB,KAAK,EAAE,KAAK,EACR,GAAA,KAAK,YAETA,cAAC,CAAAC,SAAI,EAAa,EAAA,aAAA,EAAA,MAAM,EAAC,KAAK,EAAC,QAAQ,EAAC,OAAO,EAAC,QAAQ,YACrD,QAAQ,EAAA,CACJ,EACA,CAAA,EACT;AACJ,CAAC;AAED,UAAU,CAAC,WAAW,GAAG,YAAY;;;;"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
2
3
|
declare const iconButton: (props?: ({
|
|
3
4
|
size?: 1 | 2 | 3 | 4 | null | undefined;
|
|
4
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5
|
-
export interface IconButtonProps extends
|
|
6
|
+
export interface IconButtonProps extends ComponentProps<'button'>, VariantProps<typeof iconButton> {
|
|
6
7
|
size?: 1 | 2 | 3 | 4;
|
|
7
8
|
'aria-label'?: string;
|
|
8
9
|
}
|
|
9
|
-
export declare
|
|
10
|
+
export declare function IconButton({ className, size, disabled, children, 'aria-label': ariaLabel, style, ...props }: IconButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare namespace IconButton {
|
|
12
|
+
var displayName: string;
|
|
13
|
+
}
|
|
10
14
|
export {};
|
|
11
15
|
//# sourceMappingURL=icon-button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../components/icon-button/icon-button.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../components/icon-button/icon-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAIvC,QAAA,MAAM,UAAU;;8EAYd,CAAC;AAEH,MAAM,WAAW,eACf,SAAQ,cAAc,CAAC,QAAQ,CAAC,EAC9B,YAAY,CAAC,OAAO,UAAU,CAAC;IACjC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,YAAY,EAAE,SAAS,EACvB,KAAK,EACL,GAAG,KAAK,EACT,EAAE,eAAe,2CAgBjB;yBAxBe,UAAU"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { cva } from 'class-variance-authority';
|
|
3
|
-
import { forwardRef } from 'react';
|
|
4
3
|
import { Flex } from '../flex/flex.js';
|
|
5
4
|
import styles from './icon-button.module.css.js';
|
|
6
5
|
|
|
@@ -17,7 +16,9 @@ const iconButton = cva(styles.iconButton, {
|
|
|
17
16
|
size: 2
|
|
18
17
|
}
|
|
19
18
|
});
|
|
20
|
-
|
|
19
|
+
function IconButton({ className, size, disabled, children, 'aria-label': ariaLabel, style, ...props }) {
|
|
20
|
+
return (jsx("button", { className: iconButton({ size, className }), disabled: disabled, type: 'button', "aria-label": ariaLabel, "aria-disabled": disabled, style: style, ...props, children: jsx(Flex, { "aria-hidden": 'true', align: 'center', justify: 'center', children: children }) }));
|
|
21
|
+
}
|
|
21
22
|
IconButton.displayName = 'IconButton';
|
|
22
23
|
|
|
23
24
|
export { IconButton };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button.js","sources":["../../../components/icon-button/icon-button.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"icon-button.js","sources":["../../../components/icon-button/icon-button.tsx"],"sourcesContent":["import { cva, VariantProps } from 'class-variance-authority';\nimport { ComponentProps } from 'react';\nimport { Flex } from '../flex';\nimport styles from './icon-button.module.css';\n\nconst iconButton = cva(styles.iconButton, {\n variants: {\n size: {\n 1: styles['iconButton-size-1'],\n 2: styles['iconButton-size-2'],\n 3: styles['iconButton-size-3'],\n 4: styles['iconButton-size-4']\n }\n },\n defaultVariants: {\n size: 2\n }\n});\n\nexport interface IconButtonProps\n extends ComponentProps<'button'>,\n VariantProps<typeof iconButton> {\n size?: 1 | 2 | 3 | 4;\n 'aria-label'?: string;\n}\n\nexport function IconButton({\n className,\n size,\n disabled,\n children,\n 'aria-label': ariaLabel,\n style,\n ...props\n}: IconButtonProps) {\n return (\n <button\n className={iconButton({ size, className })}\n disabled={disabled}\n type='button'\n aria-label={ariaLabel}\n aria-disabled={disabled}\n style={style}\n {...props}\n >\n <Flex aria-hidden='true' align='center' justify='center'>\n {children}\n </Flex>\n </button>\n );\n}\n\nIconButton.displayName = 'IconButton';\n"],"names":["_jsx"],"mappings":";;;;;AAKA,MAAM,UAAU,GAAG,GAAG,CAAC,MAAM,CAAC,UAAU,EAAE;AACxC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,CAAC,EAAE,MAAM,CAAC,mBAAmB,CAAC;AAC9B,YAAA,CAAC,EAAE,MAAM,CAAC,mBAAmB,CAAC;AAC9B,YAAA,CAAC,EAAE,MAAM,CAAC,mBAAmB,CAAC;AAC9B,YAAA,CAAC,EAAE,MAAM,CAAC,mBAAmB,CAAC;AAC/B,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,CAAC;AACR,KAAA;AACF,CAAA,CAAC,CAAC;AASG,SAAU,UAAU,CAAC,EACzB,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,YAAY,EAAE,SAAS,EACvB,KAAK,EACL,GAAG,KAAK,EACQ,EAAA;IAChB,QACEA,gBACE,SAAS,EAAE,UAAU,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAC1C,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAC,QAAQ,EACD,YAAA,EAAA,SAAS,EACN,eAAA,EAAA,QAAQ,EACvB,KAAK,EAAE,KAAK,EACR,GAAA,KAAK,YAETA,GAAC,CAAA,IAAI,EAAa,EAAA,aAAA,EAAA,MAAM,EAAC,KAAK,EAAC,QAAQ,EAAC,OAAO,EAAC,QAAQ,YACrD,QAAQ,EAAA,CACJ,EACA,CAAA,EACT;AACJ,CAAC;AAED,UAAU,CAAC,WAAW,GAAG,YAAY;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.cjs","sources":["../../../components/image/image.tsx"],"sourcesContent":["'use client';\n\nimport { type VariantProps
|
|
1
|
+
{"version":3,"file":"image.cjs","sources":["../../../components/image/image.tsx"],"sourcesContent":["'use client';\n\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { ComponentProps, SyntheticEvent } from 'react';\n\nimport styles from './image.module.css';\n\nconst image = cva(styles.image, {\n variants: {\n fit: {\n contain: styles['image-contain'],\n cover: styles['image-cover'],\n fill: styles['image-fill']\n },\n radius: {\n none: styles['image-radius-none'],\n small: styles['image-radius-small'],\n medium: styles['image-radius-medium'],\n full: styles['image-radius-full']\n }\n },\n defaultVariants: {\n fit: 'cover',\n radius: 'none'\n }\n});\n\ninterface ImageProps extends ComponentProps<'img'>, VariantProps<typeof image> {\n fallback?: string;\n}\n\nexport function Image({\n alt = '',\n className,\n fit,\n radius,\n fallback,\n onError,\n width,\n height,\n style,\n loading = 'lazy',\n decoding = 'async',\n ...props\n}: ImageProps) {\n const handleError = (event: SyntheticEvent<HTMLImageElement, Event>) => {\n if (fallback) {\n event.currentTarget.src = fallback;\n }\n onError?.(event);\n };\n\n const imageStyle = {\n width: width,\n height: height,\n ...style\n };\n\n return (\n <img\n alt={alt}\n className={image({ fit, radius, className })}\n onError={handleError}\n style={imageStyle}\n loading={loading}\n decoding={decoding}\n {...props}\n role='img'\n aria-label={alt}\n />\n );\n}\n\nImage.displayName = 'Image';\n"],"names":[],"mappings":";;;;;;;AAOA;AACE;AACE;AACE;AACA;AACA;AACD;AACD;AACE;AACA;AACA;AACA;AACD;AACF;AACD;AACE;AACA;AACD;AACF;AAMe;AAcd;;AAEI;;AAEF;AACF;AAEA;AACE;AACA;AACA;;;AAgBJ;AAEA;;"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
-
import {
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
3
|
declare const image: (props?: ({
|
|
4
4
|
fit?: "fill" | "contain" | "cover" | null | undefined;
|
|
5
5
|
radius?: "small" | "none" | "medium" | "full" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
-
interface ImageProps extends
|
|
7
|
+
interface ImageProps extends ComponentProps<'img'>, VariantProps<typeof image> {
|
|
8
8
|
fallback?: string;
|
|
9
|
-
width?: string | number;
|
|
10
|
-
height?: string | number;
|
|
11
9
|
}
|
|
12
10
|
export declare function Image({ alt, className, fit, radius, fallback, onError, width, height, style, loading, decoding, ...props }: ImageProps): import("react/jsx-runtime").JSX.Element;
|
|
13
11
|
export declare namespace Image {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../components/image/image.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../components/image/image.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAkB,MAAM,OAAO,CAAC;AAIvD,QAAA,MAAM,KAAK;;;8EAkBT,CAAC;AAEH,UAAU,UAAW,SAAQ,cAAc,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,OAAO,KAAK,CAAC;IAC5E,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,KAAK,CAAC,EACpB,GAAQ,EACR,SAAS,EACT,GAAG,EACH,MAAM,EACN,QAAQ,EACR,OAAO,EACP,KAAK,EACL,MAAM,EACN,KAAK,EACL,OAAgB,EAChB,QAAkB,EAClB,GAAG,KAAK,EACT,EAAE,UAAU,2CA2BZ;yBAxCe,KAAK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.js","sources":["../../../components/image/image.tsx"],"sourcesContent":["'use client';\n\nimport { type VariantProps
|
|
1
|
+
{"version":3,"file":"image.js","sources":["../../../components/image/image.tsx"],"sourcesContent":["'use client';\n\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { ComponentProps, SyntheticEvent } from 'react';\n\nimport styles from './image.module.css';\n\nconst image = cva(styles.image, {\n variants: {\n fit: {\n contain: styles['image-contain'],\n cover: styles['image-cover'],\n fill: styles['image-fill']\n },\n radius: {\n none: styles['image-radius-none'],\n small: styles['image-radius-small'],\n medium: styles['image-radius-medium'],\n full: styles['image-radius-full']\n }\n },\n defaultVariants: {\n fit: 'cover',\n radius: 'none'\n }\n});\n\ninterface ImageProps extends ComponentProps<'img'>, VariantProps<typeof image> {\n fallback?: string;\n}\n\nexport function Image({\n alt = '',\n className,\n fit,\n radius,\n fallback,\n onError,\n width,\n height,\n style,\n loading = 'lazy',\n decoding = 'async',\n ...props\n}: ImageProps) {\n const handleError = (event: SyntheticEvent<HTMLImageElement, Event>) => {\n if (fallback) {\n event.currentTarget.src = fallback;\n }\n onError?.(event);\n };\n\n const imageStyle = {\n width: width,\n height: height,\n ...style\n };\n\n return (\n <img\n alt={alt}\n className={image({ fit, radius, className })}\n onError={handleError}\n style={imageStyle}\n loading={loading}\n decoding={decoding}\n {...props}\n role='img'\n aria-label={alt}\n />\n );\n}\n\nImage.displayName = 'Image';\n"],"names":[],"mappings":";;;;;AAOA;AACE;AACE;AACE;AACA;AACA;AACD;AACD;AACE;AACA;AACA;AACA;AACD;AACF;AACD;AACE;AACA;AACD;AACF;AAMe;AAcd;;AAEI;;AAEF;AACF;AAEA;AACE;AACA;AACA;;;AAgBJ;AAEA;;"}
|
|
@@ -7,20 +7,20 @@ var indicator_module = require('./indicator.module.css.cjs');
|
|
|
7
7
|
const indicator = classVarianceAuthority.cva(indicator_module.default.indicator, {
|
|
8
8
|
variants: {
|
|
9
9
|
variant: {
|
|
10
|
-
accent: indicator_module.default[
|
|
11
|
-
warning: indicator_module.default[
|
|
12
|
-
danger: indicator_module.default[
|
|
13
|
-
success: indicator_module.default[
|
|
14
|
-
neutral: indicator_module.default[
|
|
10
|
+
accent: indicator_module.default['indicator-variant-accent'],
|
|
11
|
+
warning: indicator_module.default['indicator-variant-warning'],
|
|
12
|
+
danger: indicator_module.default['indicator-variant-danger'],
|
|
13
|
+
success: indicator_module.default['indicator-variant-success'],
|
|
14
|
+
neutral: indicator_module.default['indicator-variant-neutral']
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
defaultVariants: {
|
|
18
|
-
variant:
|
|
19
|
-
}
|
|
18
|
+
variant: 'accent'
|
|
19
|
+
}
|
|
20
20
|
});
|
|
21
|
-
const Indicator = ({ className, variant, label, children,
|
|
21
|
+
const Indicator = ({ className, variant, label, children, 'aria-label': ariaLabel, ...props }) => {
|
|
22
22
|
const accessibilityLabel = ariaLabel || label || `${variant} indicator`;
|
|
23
|
-
return (jsxRuntime.jsxs("div", { className: indicator_module.default.wrapper, ...props, children: [children, jsxRuntime.jsx("div", { className: indicator({ variant, className }), role:
|
|
23
|
+
return (jsxRuntime.jsxs("div", { className: indicator_module.default.wrapper, ...props, children: [children, jsxRuntime.jsx("div", { className: indicator({ variant, className }), role: 'status', "aria-label": accessibilityLabel, children: label ? (jsxRuntime.jsx("span", { className: indicator_module.default.label, "data-length": label.length.toString(), children: label })) : (jsxRuntime.jsx("span", { className: indicator_module.default.dot, "aria-hidden": 'true' })) })] }));
|
|
24
24
|
};
|
|
25
25
|
Indicator.displayName = 'Indicator';
|
|
26
26
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indicator.cjs","sources":["../../../components/indicator/indicator.tsx"],"sourcesContent":["import { cva, VariantProps } from
|
|
1
|
+
{"version":3,"file":"indicator.cjs","sources":["../../../components/indicator/indicator.tsx"],"sourcesContent":["import { cva, VariantProps } from 'class-variance-authority';\nimport { ComponentProps, ReactNode } from 'react';\n\nimport styles from './indicator.module.css';\n\nconst indicator = cva(styles.indicator, {\n variants: {\n variant: {\n accent: styles['indicator-variant-accent'],\n warning: styles['indicator-variant-warning'],\n danger: styles['indicator-variant-danger'],\n success: styles['indicator-variant-success'],\n neutral: styles['indicator-variant-neutral']\n }\n },\n defaultVariants: {\n variant: 'accent'\n }\n});\n\nexport interface IndicatorProps\n extends ComponentProps<'div'>,\n VariantProps<typeof indicator> {\n label?: string;\n children?: ReactNode;\n 'aria-label'?: string;\n}\n\nexport const Indicator = ({\n className,\n variant,\n label,\n children,\n 'aria-label': ariaLabel,\n ...props\n}: IndicatorProps) => {\n const accessibilityLabel = ariaLabel || label || `${variant} indicator`;\n\n return (\n <div className={styles.wrapper} {...props}>\n {children}\n <div\n className={indicator({ variant, className })}\n role='status'\n aria-label={accessibilityLabel}\n >\n {label ? (\n <span className={styles.label} data-length={label.length.toString()}>\n {label}\n </span>\n ) : (\n <span className={styles.dot} aria-hidden='true' />\n )}\n </div>\n </div>\n );\n};\n\nIndicator.displayName = 'Indicator';\n"],"names":["cva","styles","_jsxs","_jsx"],"mappings":";;;;;;AAKA,MAAM,SAAS,GAAGA,0BAAG,CAACC,wBAAM,CAAC,SAAS,EAAE;AACtC,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,MAAM,EAAEA,wBAAM,CAAC,0BAA0B,CAAC;AAC1C,YAAA,OAAO,EAAEA,wBAAM,CAAC,2BAA2B,CAAC;AAC5C,YAAA,MAAM,EAAEA,wBAAM,CAAC,0BAA0B,CAAC;AAC1C,YAAA,OAAO,EAAEA,wBAAM,CAAC,2BAA2B,CAAC;AAC5C,YAAA,OAAO,EAAEA,wBAAM,CAAC,2BAA2B,CAAC;AAC7C,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,OAAO,EAAE,QAAQ;AAClB,KAAA;AACF,CAAA,CAAC,CAAC;MAUU,SAAS,GAAG,CAAC,EACxB,SAAS,EACT,OAAO,EACP,KAAK,EACL,QAAQ,EACR,YAAY,EAAE,SAAS,EACvB,GAAG,KAAK,EACO,KAAI;IACnB,MAAM,kBAAkB,GAAG,SAAS,IAAI,KAAK,IAAI,CAAA,EAAG,OAAO,CAAA,UAAA,CAAY,CAAC;AAExE,IAAA,QACEC,eAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAED,wBAAM,CAAC,OAAO,EAAM,GAAA,KAAK,EACtC,QAAA,EAAA,CAAA,QAAQ,EACTE,cAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAE,SAAS,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,EAC5C,IAAI,EAAC,QAAQ,EACD,YAAA,EAAA,kBAAkB,EAE7B,QAAA,EAAA,KAAK,IACJA,cAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAEF,wBAAM,CAAC,KAAK,EAAe,aAAA,EAAA,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAA,QAAA,EAChE,KAAK,EACD,CAAA,KAEPE,cAAM,CAAA,MAAA,EAAA,EAAA,SAAS,EAAEF,wBAAM,CAAC,GAAG,EAAA,aAAA,EAAc,MAAM,EAAG,CAAA,CACnD,EACG,CAAA,CAAA,EAAA,CACF,EACN;AACJ,EAAE;AAEF,SAAS,CAAC,WAAW,GAAG,WAAW;;;;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { VariantProps } from
|
|
2
|
-
import {
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
3
3
|
declare const indicator: (props?: ({
|
|
4
4
|
variant?: "accent" | "danger" | "success" | "neutral" | "warning" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
-
export interface IndicatorProps extends
|
|
6
|
+
export interface IndicatorProps extends ComponentProps<'div'>, VariantProps<typeof indicator> {
|
|
7
7
|
label?: string;
|
|
8
8
|
children?: ReactNode;
|
|
9
|
-
|
|
9
|
+
'aria-label'?: string;
|
|
10
10
|
}
|
|
11
11
|
export declare const Indicator: {
|
|
12
12
|
({ className, variant, label, children, "aria-label": ariaLabel, ...props }: IndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indicator.d.ts","sourceRoot":"","sources":["../../../components/indicator/indicator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"indicator.d.ts","sourceRoot":"","sources":["../../../components/indicator/indicator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlD,QAAA,MAAM,SAAS;;8EAab,CAAC;AAEH,MAAM,WAAW,cACf,SAAQ,cAAc,CAAC,KAAK,CAAC,EAC3B,YAAY,CAAC,OAAO,SAAS,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,SAAS;iFAOnB,cAAc;;CAqBhB,CAAC"}
|