@accelint/design-toolkit 6.0.0 → 7.0.1
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/README.md +2 -0
- package/catalog-info.yaml +18 -18
- package/dist/components/accordion/context.d.ts +10 -0
- package/dist/components/accordion/context.js +4 -0
- package/dist/components/accordion/context.js.map +1 -0
- package/dist/components/accordion/group.d.ts +11 -0
- package/dist/components/accordion/group.js +4 -0
- package/dist/components/accordion/group.js.map +1 -0
- package/dist/components/accordion/header.d.ts +11 -0
- package/dist/components/accordion/header.js +4 -0
- package/dist/components/accordion/header.js.map +1 -0
- package/dist/components/accordion/index.d.ts +22 -46
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/accordion/index.js.map +1 -1
- package/dist/components/accordion/panel.d.ts +11 -0
- package/dist/components/accordion/panel.js +4 -0
- package/dist/components/accordion/panel.js.map +1 -0
- package/dist/components/accordion/trigger.d.ts +11 -0
- package/dist/components/accordion/trigger.js +4 -0
- package/dist/components/accordion/trigger.js.map +1 -0
- package/dist/components/accordion/types.d.ts +1 -1
- package/dist/components/action-bar/index.d.ts +0 -3
- package/dist/components/action-bar/index.js +1 -1
- package/dist/components/action-bar/index.js.map +1 -1
- package/dist/components/avatar/context.d.ts +14 -0
- package/dist/components/avatar/context.js +4 -0
- package/dist/components/avatar/context.js.map +1 -0
- package/dist/components/avatar/index.d.ts +2 -13
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/avatar/index.js.map +1 -1
- package/dist/components/badge/context.d.ts +13 -0
- package/dist/components/badge/context.js +4 -0
- package/dist/components/badge/context.js.map +1 -0
- package/dist/components/badge/index.d.ts +2 -13
- package/dist/components/badge/index.js +1 -1
- package/dist/components/badge/index.js.map +1 -1
- package/dist/components/breadcrumbs/index.d.ts +2 -11
- package/dist/components/breadcrumbs/index.js +1 -1
- package/dist/components/breadcrumbs/index.js.map +1 -1
- package/dist/components/breadcrumbs/item.d.ts +7 -0
- package/dist/components/breadcrumbs/item.js +4 -0
- package/dist/components/breadcrumbs/item.js.map +1 -0
- package/dist/components/button/context.d.ts +17 -0
- package/dist/components/button/context.js +4 -0
- package/dist/components/button/context.js.map +1 -0
- package/dist/components/button/index.d.ts +5 -104
- package/dist/components/button/index.js +1 -1
- package/dist/components/button/index.js.map +1 -1
- package/dist/components/button/link.d.ts +46 -0
- package/dist/components/button/link.js +4 -0
- package/dist/components/button/link.js.map +1 -0
- package/dist/components/button/toggle.d.ts +48 -0
- package/dist/components/button/toggle.js +4 -0
- package/dist/components/button/toggle.js.map +1 -0
- package/dist/components/checkbox/context.d.ts +10 -0
- package/dist/components/checkbox/context.js +4 -0
- package/dist/components/checkbox/context.js.map +1 -0
- package/dist/components/checkbox/group.d.ts +10 -0
- package/dist/components/checkbox/group.js +4 -0
- package/dist/components/checkbox/group.js.map +1 -0
- package/dist/components/checkbox/index.d.ts +6 -16
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/index.js.map +1 -1
- package/dist/components/checkbox/styles.js +1 -1
- package/dist/components/checkbox/styles.js.map +1 -1
- package/dist/components/chip/context.d.ts +13 -0
- package/dist/components/chip/context.js +4 -0
- package/dist/components/chip/context.js.map +1 -0
- package/dist/components/chip/deletable.d.ts +11 -0
- package/dist/components/chip/deletable.js +4 -0
- package/dist/components/chip/deletable.js.map +1 -0
- package/dist/components/chip/index.d.ts +14 -39
- package/dist/components/chip/index.js +1 -1
- package/dist/components/chip/index.js.map +1 -1
- package/dist/components/chip/list.d.ts +12 -0
- package/dist/components/chip/list.js +4 -0
- package/dist/components/chip/list.js.map +1 -0
- package/dist/components/chip/selectable.d.ts +11 -0
- package/dist/components/chip/selectable.js +4 -0
- package/dist/components/chip/selectable.js.map +1 -0
- package/dist/components/chip/styles.js +1 -1
- package/dist/components/chip/styles.js.map +1 -1
- package/dist/components/chip/types.d.ts +2 -2
- package/dist/components/classification-badge/context.d.ts +12 -0
- package/dist/components/classification-badge/context.js +4 -0
- package/dist/components/classification-badge/context.js.map +1 -0
- package/dist/components/classification-badge/index.d.ts +2 -13
- package/dist/components/classification-badge/index.js +1 -1
- package/dist/components/classification-badge/index.js.map +1 -1
- package/dist/components/classification-banner/context.d.ts +12 -0
- package/dist/components/classification-banner/context.js +4 -0
- package/dist/components/classification-banner/context.js.map +1 -0
- package/dist/components/classification-banner/index.d.ts +2 -13
- package/dist/components/classification-banner/index.js +1 -1
- package/dist/components/classification-banner/index.js.map +1 -1
- package/dist/components/clock/index.d.ts +0 -3
- package/dist/components/clock/index.js +1 -1
- package/dist/components/clock/index.js.map +1 -1
- package/dist/components/color-picker/index.d.ts +0 -3
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/color-picker/index.js.map +1 -1
- package/dist/components/color-picker/styles.js +1 -1
- package/dist/components/color-picker/styles.js.map +1 -1
- package/dist/components/combobox-field/context.d.ts +16 -0
- package/dist/components/combobox-field/context.js +4 -0
- package/dist/components/combobox-field/context.js.map +1 -0
- package/dist/components/combobox-field/index.d.ts +4 -8
- package/dist/components/combobox-field/index.js +1 -1
- package/dist/components/combobox-field/index.js.map +1 -1
- package/dist/components/combobox-field/styles.d.ts +3 -3
- package/dist/components/date-field/index.js +1 -1
- package/dist/components/date-field/index.js.map +1 -1
- package/dist/components/details-list/context.d.ts +12 -0
- package/dist/components/details-list/context.js +4 -0
- package/dist/components/details-list/context.js.map +1 -0
- package/dist/components/details-list/index.d.ts +15 -35
- package/dist/components/details-list/index.js +1 -1
- package/dist/components/details-list/index.js.map +1 -1
- package/dist/components/details-list/label.d.ts +10 -0
- package/dist/components/details-list/label.js +4 -0
- package/dist/components/details-list/label.js.map +1 -0
- package/dist/components/details-list/value.d.ts +10 -0
- package/dist/components/details-list/value.js +4 -0
- package/dist/components/details-list/value.js.map +1 -0
- package/dist/components/dialog/content.d.ts +6 -0
- package/dist/components/dialog/content.js +4 -0
- package/dist/components/dialog/content.js.map +1 -0
- package/dist/components/dialog/context.d.ts +7 -0
- package/dist/components/dialog/context.js +4 -0
- package/dist/components/dialog/context.js.map +1 -0
- package/dist/components/dialog/footer.d.ts +6 -0
- package/dist/components/dialog/footer.js +4 -0
- package/dist/components/dialog/footer.js.map +1 -0
- package/dist/components/dialog/index.d.ts +9 -30
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dialog/index.js.map +1 -1
- package/dist/components/dialog/styles.d.ts +3 -3
- package/dist/components/dialog/title.d.ts +6 -0
- package/dist/components/dialog/title.js +4 -0
- package/dist/components/dialog/title.js.map +1 -0
- package/dist/components/dialog/trigger.d.ts +1 -0
- package/dist/components/dialog/trigger.js +2 -0
- package/dist/components/dialog/trigger.js.map +1 -0
- package/dist/components/dialog/types.d.ts +3 -2
- package/dist/components/divider/context.d.ts +10 -0
- package/dist/components/divider/context.js +4 -0
- package/dist/components/divider/context.js.map +1 -0
- package/dist/components/divider/index.d.ts +2 -13
- package/dist/components/divider/index.js +1 -1
- package/dist/components/divider/index.js.map +1 -1
- package/dist/components/drawer/back.d.ts +5 -0
- package/dist/components/drawer/back.js +4 -0
- package/dist/components/drawer/back.js.map +1 -0
- package/dist/components/drawer/close.d.ts +5 -0
- package/dist/components/drawer/close.js +4 -0
- package/dist/components/drawer/close.js.map +1 -0
- package/dist/components/drawer/content.d.ts +6 -0
- package/dist/components/drawer/content.js +4 -0
- package/dist/components/drawer/content.js.map +1 -0
- package/dist/components/drawer/context.d.ts +38 -0
- package/dist/components/drawer/context.js +4 -0
- package/dist/components/drawer/context.js.map +1 -0
- package/dist/components/drawer/footer.d.ts +6 -0
- package/dist/components/drawer/footer.js +4 -0
- package/dist/components/drawer/footer.js.map +1 -0
- package/dist/components/drawer/header-title.d.ts +25 -0
- package/dist/components/drawer/header-title.js +4 -0
- package/dist/components/drawer/header-title.js.map +1 -0
- package/dist/components/drawer/header.d.ts +6 -0
- package/dist/components/drawer/header.js +4 -0
- package/dist/components/drawer/header.js.map +1 -0
- package/dist/components/drawer/index.d.ts +19 -112
- package/dist/components/drawer/index.js +1 -1
- package/dist/components/drawer/index.js.map +1 -1
- package/dist/components/drawer/layout-main.d.ts +6 -0
- package/dist/components/drawer/layout-main.js +4 -0
- package/dist/components/drawer/layout-main.js.map +1 -0
- package/dist/components/drawer/layout.d.ts +20 -0
- package/dist/components/drawer/layout.js +4 -0
- package/dist/components/drawer/layout.js.map +1 -0
- package/dist/components/drawer/menu-item.d.ts +20 -0
- package/dist/components/drawer/menu-item.js +4 -0
- package/dist/components/drawer/menu-item.js.map +1 -0
- package/dist/components/drawer/menu.d.ts +20 -0
- package/dist/components/drawer/menu.js +4 -0
- package/dist/components/drawer/menu.js.map +1 -0
- package/dist/components/drawer/panel.d.ts +6 -0
- package/dist/components/drawer/panel.js +4 -0
- package/dist/components/drawer/panel.js.map +1 -0
- package/dist/components/drawer/styles.d.ts +9 -9
- package/dist/components/drawer/trigger.d.ts +20 -0
- package/dist/components/drawer/trigger.js +4 -0
- package/dist/components/drawer/trigger.js.map +1 -0
- package/dist/components/drawer/types.d.ts +3 -3
- package/dist/components/drawer/view.d.ts +11 -0
- package/dist/components/drawer/view.js +4 -0
- package/dist/components/drawer/view.js.map +1 -0
- package/dist/components/hero/context.d.ts +7 -0
- package/dist/components/hero/context.js +4 -0
- package/dist/components/hero/context.js.map +1 -0
- package/dist/components/hero/index.d.ts +8 -16
- package/dist/components/hero/index.js +1 -1
- package/dist/components/hero/index.js.map +1 -1
- package/dist/components/hero/subtitle.d.ts +6 -0
- package/dist/components/hero/subtitle.js +4 -0
- package/dist/components/hero/subtitle.js.map +1 -0
- package/dist/components/hero/title.d.ts +6 -0
- package/dist/components/hero/title.js +4 -0
- package/dist/components/hero/title.js.map +1 -0
- package/dist/components/hotkey/context.d.ts +12 -0
- package/dist/components/hotkey/context.js +4 -0
- package/dist/components/hotkey/context.js.map +1 -0
- package/dist/components/hotkey/hotkey-set.d.ts +9 -0
- package/dist/components/hotkey/hotkey-set.js +4 -0
- package/dist/components/hotkey/hotkey-set.js.map +1 -0
- package/dist/components/hotkey/index.d.ts +7 -23
- package/dist/components/hotkey/index.js +1 -1
- package/dist/components/hotkey/index.js.map +1 -1
- package/dist/components/icon/context.d.ts +10 -0
- package/dist/components/icon/context.js +4 -0
- package/dist/components/icon/context.js.map +1 -0
- package/dist/components/icon/index.d.ts +2 -13
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon/index.js.map +1 -1
- package/dist/components/input/context.d.ts +13 -0
- package/dist/components/input/context.js +4 -0
- package/dist/components/input/context.js.map +1 -0
- package/dist/components/input/index.d.ts +3 -7
- package/dist/components/input/index.js +1 -1
- package/dist/components/input/index.js.map +1 -1
- package/dist/components/label/context.d.ts +10 -0
- package/dist/components/label/context.js +4 -0
- package/dist/components/label/context.js.map +1 -0
- package/dist/components/label/index.d.ts +3 -13
- package/dist/components/label/index.js +1 -1
- package/dist/components/label/index.js.map +1 -1
- package/dist/components/link/context.d.ts +9 -0
- package/dist/components/link/context.js +4 -0
- package/dist/components/link/context.js.map +1 -0
- package/dist/components/link/index.d.ts +0 -9
- package/dist/components/link/index.js +1 -1
- package/dist/components/link/index.js.map +1 -1
- package/dist/components/menu/context.d.ts +10 -0
- package/dist/components/menu/context.js +4 -0
- package/dist/components/menu/context.js.map +1 -0
- package/dist/components/menu/index.d.ts +31 -63
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/index.js.map +1 -1
- package/dist/components/menu/item-description.d.ts +6 -0
- package/dist/components/menu/item-description.js +4 -0
- package/dist/components/menu/item-description.js.map +1 -0
- package/dist/components/menu/item-label.d.ts +6 -0
- package/dist/components/menu/item-label.js +4 -0
- package/dist/components/menu/item-label.js.map +1 -0
- package/dist/components/menu/item.d.ts +11 -0
- package/dist/components/menu/item.js +4 -0
- package/dist/components/menu/item.js.map +1 -0
- package/dist/components/menu/section.d.ts +11 -0
- package/dist/components/menu/section.js +4 -0
- package/dist/components/menu/section.js.map +1 -0
- package/dist/components/menu/separator.d.ts +6 -0
- package/dist/components/menu/separator.js +4 -0
- package/dist/components/menu/separator.js.map +1 -0
- package/dist/components/menu/styles.js +1 -1
- package/dist/components/menu/styles.js.map +1 -1
- package/dist/components/menu/submenu.d.ts +6 -0
- package/dist/components/menu/submenu.js +4 -0
- package/dist/components/menu/submenu.js.map +1 -0
- package/dist/components/menu/trigger.d.ts +1 -0
- package/dist/components/menu/trigger.js +4 -0
- package/dist/components/menu/trigger.js.map +1 -0
- package/dist/components/menu/types.d.ts +1 -1
- package/dist/components/notice/index.d.ts +1 -5
- package/dist/components/notice/index.js +1 -1
- package/dist/components/notice/index.js.map +1 -1
- package/dist/components/notice/list.d.ts +16 -0
- package/dist/components/notice/list.js +4 -0
- package/dist/components/notice/list.js.map +1 -0
- package/dist/components/notice/notice-icon.d.ts +16 -0
- package/dist/components/notice/notice-icon.js +4 -0
- package/dist/components/notice/notice-icon.js.map +1 -0
- package/dist/components/notice/styles.d.ts +3 -3
- package/dist/components/notice/utils.d.ts +3 -0
- package/dist/components/notice/utils.js +4 -0
- package/dist/components/notice/utils.js.map +1 -0
- package/dist/components/options/context.d.ts +8 -0
- package/dist/components/options/context.js +4 -0
- package/dist/components/options/context.js.map +1 -0
- package/dist/components/options/index.d.ts +22 -51
- package/dist/components/options/index.js +1 -1
- package/dist/components/options/index.js.map +1 -1
- package/dist/components/options/item-content.d.ts +9 -0
- package/dist/components/options/item-content.js +4 -0
- package/dist/components/options/item-content.js.map +1 -0
- package/dist/components/options/item-description.d.ts +9 -0
- package/dist/components/options/item-description.js +4 -0
- package/dist/components/options/item-description.js.map +1 -0
- package/dist/components/options/item-label.d.ts +9 -0
- package/dist/components/options/item-label.js +4 -0
- package/dist/components/options/item-label.js.map +1 -0
- package/dist/components/options/item.d.ts +9 -0
- package/dist/components/options/item.js +4 -0
- package/dist/components/options/item.js.map +1 -0
- package/dist/components/options/section.d.ts +9 -0
- package/dist/components/options/section.js +4 -0
- package/dist/components/options/section.js.map +1 -0
- package/dist/components/options/styles.d.ts +3 -3
- package/dist/components/options/styles.js +1 -1
- package/dist/components/options/styles.js.map +1 -1
- package/dist/components/options/types.d.ts +2 -2
- package/dist/components/popover/body.d.ts +8 -0
- package/dist/components/popover/body.js +4 -0
- package/dist/components/popover/body.js.map +1 -0
- package/dist/components/popover/content.d.ts +8 -0
- package/dist/components/popover/content.js +4 -0
- package/dist/components/popover/content.js.map +1 -0
- package/dist/components/popover/footer.d.ts +9 -0
- package/dist/components/popover/footer.js +4 -0
- package/dist/components/popover/footer.js.map +1 -0
- package/dist/components/popover/index.d.ts +16 -39
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/index.js.map +1 -1
- package/dist/components/popover/title.d.ts +8 -0
- package/dist/components/popover/title.js +4 -0
- package/dist/components/popover/title.js.map +1 -0
- package/dist/components/popover/trigger.d.ts +8 -0
- package/dist/components/popover/trigger.js +4 -0
- package/dist/components/popover/trigger.js.map +1 -0
- package/dist/components/popover/types.d.ts +1 -1
- package/dist/components/query-builder/action-element.js +1 -1
- package/dist/components/query-builder/action-element.js.map +1 -1
- package/dist/components/query-builder/actions.d.ts +8 -0
- package/dist/components/query-builder/actions.js +4 -0
- package/dist/components/query-builder/actions.js.map +1 -0
- package/dist/components/query-builder/combinator-selector.d.ts +6 -0
- package/dist/components/query-builder/combinator-selector.js +4 -0
- package/dist/components/query-builder/combinator-selector.js.map +1 -0
- package/dist/components/query-builder/index.d.ts +1 -21
- package/dist/components/query-builder/index.js +3 -1
- package/dist/components/query-builder/index.js.map +1 -1
- package/dist/components/query-builder/{group.js → rule-group.js} +2 -2
- package/dist/components/query-builder/rule-group.js.map +1 -0
- package/dist/components/query-builder/rule.js +1 -1
- package/dist/components/query-builder/rule.js.map +1 -1
- package/dist/components/query-builder/styles.d.ts +152 -0
- package/dist/components/query-builder/styles.js +2 -0
- package/dist/components/query-builder/styles.js.map +1 -0
- package/dist/components/query-builder/utils.d.ts +1 -10
- package/dist/components/query-builder/utils.js +1 -1
- package/dist/components/query-builder/utils.js.map +1 -1
- package/dist/components/query-builder/value-editor.js +1 -1
- package/dist/components/query-builder/value-editor.js.map +1 -1
- package/dist/components/query-builder/value-selector.js +3 -1
- package/dist/components/query-builder/value-selector.js.map +1 -1
- package/dist/components/radio/context.d.ts +13 -0
- package/dist/components/radio/context.js +4 -0
- package/dist/components/radio/context.js.map +1 -0
- package/dist/components/radio/group.d.ts +15 -0
- package/dist/components/radio/group.js +4 -0
- package/dist/components/radio/group.js.map +1 -0
- package/dist/components/radio/index.d.ts +10 -19
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio/index.js.map +1 -1
- package/dist/components/radio/styles.js +1 -1
- package/dist/components/radio/styles.js.map +1 -1
- package/dist/components/radio/types.d.ts +1 -1
- package/dist/components/search-field/context.d.ts +26 -0
- package/dist/components/search-field/context.js +4 -0
- package/dist/components/search-field/context.js.map +1 -0
- package/dist/components/search-field/index.d.ts +4 -20
- package/dist/components/search-field/index.js +1 -1
- package/dist/components/search-field/index.js.map +1 -1
- package/dist/components/select-field/context.d.ts +15 -0
- package/dist/components/select-field/context.js +4 -0
- package/dist/components/select-field/context.js.map +1 -0
- package/dist/components/select-field/index.d.ts +12 -21
- package/dist/components/select-field/index.js +1 -1
- package/dist/components/select-field/index.js.map +1 -1
- package/dist/components/select-field/styles.d.ts +9 -3
- package/dist/components/select-field/styles.js +1 -1
- package/dist/components/select-field/styles.js.map +1 -1
- package/dist/components/select-field/types.d.ts +2 -2
- package/dist/components/sidenav/avatar.d.ts +16 -0
- package/dist/components/sidenav/avatar.js +4 -0
- package/dist/components/sidenav/avatar.js.map +1 -0
- package/dist/components/sidenav/content.d.ts +16 -0
- package/dist/components/sidenav/content.js +4 -0
- package/dist/components/sidenav/content.js.map +1 -0
- package/dist/components/sidenav/context.d.ts +10 -0
- package/dist/components/sidenav/context.js +4 -0
- package/dist/components/sidenav/context.js.map +1 -0
- package/dist/components/sidenav/footer.d.ts +16 -0
- package/dist/components/sidenav/footer.js +4 -0
- package/dist/components/sidenav/footer.js.map +1 -0
- package/dist/components/sidenav/header.d.ts +16 -0
- package/dist/components/sidenav/header.js +4 -0
- package/dist/components/sidenav/header.js.map +1 -0
- package/dist/components/sidenav/index.d.ts +28 -76
- package/dist/components/sidenav/index.js +1 -1
- package/dist/components/sidenav/index.js.map +1 -1
- package/dist/components/sidenav/item.d.ts +16 -0
- package/dist/components/sidenav/item.js +4 -0
- package/dist/components/sidenav/item.js.map +1 -0
- package/dist/components/sidenav/link.d.ts +16 -0
- package/dist/components/sidenav/link.js +4 -0
- package/dist/components/sidenav/link.js.map +1 -0
- package/dist/components/sidenav/menu-item.d.ts +16 -0
- package/dist/components/sidenav/menu-item.js +4 -0
- package/dist/components/sidenav/menu-item.js.map +1 -0
- package/dist/components/sidenav/menu.d.ts +16 -0
- package/dist/components/sidenav/menu.js +4 -0
- package/dist/components/sidenav/menu.js.map +1 -0
- package/dist/components/sidenav/styles.d.ts +9 -9
- package/dist/components/sidenav/trigger.d.ts +16 -0
- package/dist/components/sidenav/trigger.js +4 -0
- package/dist/components/sidenav/trigger.js.map +1 -0
- package/dist/components/sidenav/types.d.ts +1 -1
- package/dist/components/skeleton/index.d.ts +0 -3
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/skeleton/index.js.map +1 -1
- package/dist/components/slider/index.d.ts +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/index.js.map +1 -1
- package/dist/components/slider/styles.d.ts +3 -3
- package/dist/components/slider/styles.js +1 -1
- package/dist/components/slider/styles.js.map +1 -1
- package/dist/components/switch/context.d.ts +20 -0
- package/dist/components/switch/context.js +4 -0
- package/dist/components/switch/context.js.map +1 -0
- package/dist/components/switch/index.d.ts +3 -13
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/index.js.map +1 -1
- package/dist/components/switch/styles.js +1 -1
- package/dist/components/switch/styles.js.map +1 -1
- package/dist/components/table/body.js +2 -0
- package/dist/components/table/body.js.map +1 -0
- package/dist/components/table/cell.js +2 -0
- package/dist/components/table/cell.js.map +1 -0
- package/dist/components/table/constants/table.d.ts +17 -0
- package/dist/components/table/constants/table.js +2 -0
- package/dist/components/table/constants/table.js.map +1 -0
- package/dist/components/table/context.js +1 -1
- package/dist/components/table/context.js.map +1 -1
- package/dist/components/table/{table-header-cell.d.ts → header-cell.d.ts} +2 -2
- package/dist/components/table/header-cell.js +2 -0
- package/dist/components/table/header-cell.js.map +1 -0
- package/dist/components/table/header.js +2 -0
- package/dist/components/table/header.js.map +1 -0
- package/dist/components/table/index.d.ts +1 -14
- package/dist/components/table/index.js +1 -1
- package/dist/components/table/index.js.map +1 -1
- package/dist/components/table/row.js +2 -0
- package/dist/components/table/row.js.map +1 -0
- package/dist/components/table/types.d.ts +25 -2
- package/dist/components/tabs/context.d.ts +20 -0
- package/dist/components/tabs/context.js +4 -0
- package/dist/components/tabs/context.js.map +1 -0
- package/dist/components/tabs/index.d.ts +25 -51
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/index.js.map +1 -1
- package/dist/components/tabs/list.d.ts +11 -0
- package/dist/components/tabs/list.js +4 -0
- package/dist/components/tabs/list.js.map +1 -0
- package/dist/components/tabs/panel.d.ts +11 -0
- package/dist/components/tabs/panel.js +4 -0
- package/dist/components/tabs/panel.js.map +1 -0
- package/dist/components/tabs/tab.d.ts +11 -0
- package/dist/components/tabs/tab.js +4 -0
- package/dist/components/tabs/tab.js.map +1 -0
- package/dist/components/text-area-field/context.d.ts +20 -0
- package/dist/components/text-area-field/context.js +4 -0
- package/dist/components/text-area-field/context.js.map +1 -0
- package/dist/components/text-area-field/index.d.ts +3 -13
- package/dist/components/text-area-field/index.js +1 -1
- package/dist/components/text-area-field/index.js.map +1 -1
- package/dist/components/text-field/context.d.ts +17 -0
- package/dist/components/text-field/context.js +4 -0
- package/dist/components/text-field/context.js.map +1 -0
- package/dist/components/text-field/index.d.ts +4 -13
- package/dist/components/text-field/index.js +1 -1
- package/dist/components/text-field/index.js.map +1 -1
- package/dist/components/time-field/index.js +1 -1
- package/dist/components/time-field/index.js.map +1 -1
- package/dist/components/tooltip/context.d.ts +7 -0
- package/dist/components/tooltip/context.js +4 -0
- package/dist/components/tooltip/context.js.map +1 -0
- package/dist/components/tooltip/index.d.ts +10 -19
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/index.js.map +1 -1
- package/dist/components/tooltip/trigger.d.ts +8 -0
- package/dist/components/tooltip/trigger.js +4 -0
- package/dist/components/tooltip/trigger.js.map +1 -0
- package/dist/components/tooltip/types.d.ts +1 -1
- package/dist/components/tree/context.d.ts +18 -0
- package/dist/components/tree/context.js +4 -0
- package/dist/components/tree/context.js.map +1 -0
- package/dist/components/tree/index.d.ts +11 -50
- package/dist/components/tree/index.js +1 -1
- package/dist/components/tree/index.js.map +1 -1
- package/dist/components/tree/item-actions.d.ts +13 -0
- package/dist/components/tree/item-actions.js +2 -0
- package/dist/components/tree/item-actions.js.map +1 -0
- package/dist/components/tree/item-content.d.ts +17 -0
- package/dist/components/tree/item-content.js +2 -0
- package/dist/components/tree/item-content.js.map +1 -0
- package/dist/components/tree/item-description.d.ts +11 -0
- package/dist/components/tree/item-description.js +2 -0
- package/dist/components/tree/item-description.js.map +1 -0
- package/dist/components/tree/item-label.d.ts +11 -0
- package/dist/components/tree/item-label.js +2 -0
- package/dist/components/tree/item-label.js.map +1 -0
- package/dist/components/tree/item-prefix-icon.d.ts +12 -0
- package/dist/components/tree/item-prefix-icon.js +2 -0
- package/dist/components/tree/item-prefix-icon.js.map +1 -0
- package/dist/components/tree/item.d.ts +17 -0
- package/dist/components/tree/item.js +4 -0
- package/dist/components/tree/item.js.map +1 -0
- package/dist/components/tree/lines.d.ts +8 -0
- package/dist/components/tree/lines.js +2 -0
- package/dist/components/tree/lines.js.map +1 -0
- package/dist/components/tree/styles.js +1 -1
- package/dist/components/tree/styles.js.map +1 -1
- package/dist/components/tree/types.d.ts +1 -1
- package/dist/components/view-stack/context.d.ts +31 -0
- package/dist/components/view-stack/context.js +4 -0
- package/dist/components/view-stack/context.js.map +1 -0
- package/dist/components/view-stack/index.d.ts +12 -38
- package/dist/components/view-stack/index.js +1 -1
- package/dist/components/view-stack/index.js.map +1 -1
- package/dist/components/view-stack/trigger.d.ts +16 -0
- package/dist/components/view-stack/trigger.js +4 -0
- package/dist/components/view-stack/trigger.js.map +1 -0
- package/dist/components/view-stack/view.d.ts +16 -0
- package/dist/components/view-stack/view.js +4 -0
- package/dist/components/view-stack/view.js.map +1 -0
- package/dist/hooks/use-tree/state/index.js +2 -0
- package/dist/icons/catalog.d.ts +14 -0
- package/dist/icons/catalog.js +1 -1
- package/dist/icons/catalog.js.map +1 -1
- package/dist/index.css +0 -49
- package/dist/index.d.ts +143 -44
- package/dist/index.js +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/providers/theme-provider.js +1 -1
- package/dist/providers/theme-provider.js.map +1 -1
- package/dist/styles.css +965 -243
- package/dist/tokens/themes.css +1 -1
- package/dist/tokens/themes.d.ts +1 -2
- package/dist/tokens/tokens.js +1 -1
- package/dist/tokens/tokens.js.map +1 -1
- package/package.json +98 -95
- package/dist/components/query-builder/group.js.map +0 -1
- package/dist/components/table/table-body.js +0 -2
- package/dist/components/table/table-body.js.map +0 -1
- package/dist/components/table/table-cell.js +0 -2
- package/dist/components/table/table-cell.js.map +0 -1
- package/dist/components/table/table-header-cell.js +0 -2
- package/dist/components/table/table-header-cell.js.map +0 -1
- package/dist/components/table/table-header.js +0 -2
- package/dist/components/table/table-header.js.map +0 -1
- package/dist/components/table/table-row.js +0 -2
- package/dist/components/table/table-row.js.map +0 -1
- package/dist/lib/react.d.ts +0 -59
- package/dist/lib/react.js +0 -9
- package/dist/lib/react.js.map +0 -1
- /package/dist/components/query-builder/{group.d.ts → rule-group.d.ts} +0 -0
- /package/dist/components/table/{table-body.d.ts → body.d.ts} +0 -0
- /package/dist/components/table/{table-cell.d.ts → cell.d.ts} +0 -0
- /package/dist/components/table/{table-header.d.ts → header.d.ts} +0 -0
- /package/dist/components/table/{table-row.d.ts → row.d.ts} +0 -0
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import * as react_aria_components from 'react-aria-components';
|
|
2
|
-
import { ContextValue } from 'react-aria-components';
|
|
3
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import * as react from 'react';
|
|
5
2
|
import { HeroProps } from './types.js';
|
|
3
|
+
import 'react';
|
|
6
4
|
|
|
7
|
-
declare const HeroContext: react.Context<ContextValue<HeroProps, HTMLElement>>;
|
|
8
5
|
/**
|
|
9
6
|
* A versatile hero component that displays an icon alongside primary and secondary content.
|
|
10
7
|
* Automatically organizes child components by type and supports both stacked and grid layouts.
|
|
@@ -14,32 +11,27 @@ declare const HeroContext: react.Context<ContextValue<HeroProps, HTMLElement>>;
|
|
|
14
11
|
* // Basic hero with icon and content
|
|
15
12
|
* <Hero>
|
|
16
13
|
* <Icon><Placeholder /></Icon>
|
|
17
|
-
* <
|
|
18
|
-
* <
|
|
14
|
+
* <HeroTitle>Primary Title</HeroTitle>
|
|
15
|
+
* <HeroSubtitle>Secondary information</HeroSubtitle>
|
|
19
16
|
* </Hero>
|
|
20
17
|
*
|
|
21
18
|
* // Grid layout for compact display
|
|
22
19
|
* <Hero compact>
|
|
23
20
|
* <Icon><Settings /></Icon>
|
|
24
|
-
* <
|
|
25
|
-
* <
|
|
21
|
+
* <HeroTitle>Settings</HeroTitle>
|
|
22
|
+
* <HeroSubtitle>Configure your preferences</HeroSubtitle>
|
|
26
23
|
* </Hero>
|
|
27
24
|
* ```
|
|
28
25
|
*
|
|
29
26
|
* ## Child Component Behavior
|
|
30
27
|
* - **Icon**: Only one allowed
|
|
31
|
-
* - **
|
|
32
|
-
* - **
|
|
28
|
+
* - **HeroTitle**: Only one allowed
|
|
29
|
+
* - **HeroSubtitle**: Any number allowed as secondary content
|
|
33
30
|
*
|
|
34
31
|
* ## Layout Modes
|
|
35
32
|
* - **Stack** (default): Vertical layout with larger icon and stacked content
|
|
36
33
|
* - **Grid** (compact=true): Horizontal layout with smaller icon beside content
|
|
37
34
|
*/
|
|
38
35
|
declare function Hero({ ref, ...props }: HeroProps): react_jsx_runtime.JSX.Element;
|
|
39
|
-
declare namespace Hero {
|
|
40
|
-
var displayName: string;
|
|
41
|
-
var Title: react.ForwardRefExoticComponent<react_aria_components.HeadingProps & react.RefAttributes<HTMLHeadingElement>>;
|
|
42
|
-
var Subtitle: react.ForwardRefExoticComponent<react_aria_components.TextProps & react.RefAttributes<HTMLElement>>;
|
|
43
|
-
}
|
|
44
36
|
|
|
45
|
-
export { Hero
|
|
37
|
+
export { Hero };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {jsx}from'react/jsx-runtime';import'client-only';import {
|
|
3
|
+
import {jsx}from'react/jsx-runtime';import'client-only';import {useContextProps,Provider,HeadingContext,TextContext,Header}from'react-aria-components';import {IconContext}from'../icon/context.js';import {HeroContext}from'./context.js';import {HeroStyles}from'./styles.js';const{hero:H,icon:x,title:f,subtitle:C}=HeroStyles();function b({ref:t,...o}){[o,t]=useContextProps(o,t??null,HeroContext);const{children:r,classNames:e,compact:a,...l}=o;return jsx(Provider,{values:[[IconContext,{className:x({className:e?.icon}),size:"large"}],[HeadingContext,{className:f({className:e?.title}),level:2}],[TextContext,{className:C({className:e?.subtitle})}]],children:jsx(Header,{...l,ref:t,className:H({className:e?.hero}),"data-layout":a?"grid":"stack",children:r})})}export{b as Hero};//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/hero/index.tsx"],"names":["subtitle","HeroStyles","
|
|
1
|
+
{"version":3,"sources":["../../../src/components/hero/index.tsx"],"names":["hero","icon","subtitle","HeroStyles","Hero","props","ref","HeroContext","d","classNames","compact","jsx","Provider","s","IconContext","N","HeadingContext","title","TextContext","n","Header"],"mappings":"gRA0BQA,MAAMC,IAAM,CAAA,CAAA,CAAA,IAAO,CAAA,CAAA,CAAA,KAAAC,CAAS,CAAA,CAAIC,sBAgCxBC,EAAK,CAAE,SAAQC,CAAM,CAAA,CAAc,GAChDA,CAAOC,CAAG,CAAA,GAAoBD,CAAAA,CAAOC,CAAAA,CAAAA,CAAO,CAAA,CAAA,CAAA,CAAA,CAAMC,eAAW,EAE9D,CAAA,CAAA,EAAA,IAAQ,CAAAC,WAAA,CAAA,CAAA,KAAU,WAAAC,CAAAA,UAAYC,CAAS,CAAA,CAAA,OAEvC,CAAA,CAAA,CAAA,GACEC,CAAAA,CAACC,CAAAA,CAAA,CACC,OAAQC,GACN,CACEC,QAAAA,CACA,CAAE,MAAA,CAAA,CAAA,CAAAC,WAAWd,CAAAA,CAAK,SAAE,CAAA,CAAWQ,CAAAA,CAAAA,SAAqB,CAAA,CAAA,EAAM,IAAA,CAAA,CAAA,CAAQ,IAGlEO,CAAAA,yBACaC,CAAAA,CAAM,SAAE,CAAA,CAAWR,CAAAA,CAAAA,SAAsB,CAAA,CAAA,EAAA,KACxD,CACA,CACES,CAAAA,KACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAAC,WAAWjB,CAAAA,CAAS,SAAE,CAAA,CAAWO,WAAqB,CAAC,CAAE,EAE/D,QAEA,CAAA,CAAA,CAAAE,CAAAA,CAACS,CAAAA,QAEC,CAAAP,GAAA,CAAKP,MAAAA,CACL,CAAA,GAAA,CAAA,CAAA,GAAA,CAAWN,CAAAA,CAAK,SAAE,CAAA,CAAWS,WAC7B,CAAA,CAAA,EAAA,IAAA,CAAA,CAAA,CAAA,aAAgC,CAAA,CAAA,CAAA,MAE/B,CAAA,OACH,SAGN,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA","file":"index.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport {\n Header,\n HeadingContext,\n Provider,\n TextContext,\n useContextProps,\n} from 'react-aria-components';\nimport { IconContext } from '../icon/context';\nimport { HeroContext } from './context';\nimport { HeroStyles } from './styles';\nimport type { HeroProps } from './types';\n\nconst { hero, icon, title, subtitle } = HeroStyles();\n\n/**\n * A versatile hero component that displays an icon alongside primary and secondary content.\n * Automatically organizes child components by type and supports both stacked and grid layouts.\n *\n * @example\n * ```tsx\n * // Basic hero with icon and content\n * <Hero>\n * <Icon><Placeholder /></Icon>\n * <HeroTitle>Primary Title</HeroTitle>\n * <HeroSubtitle>Secondary information</HeroSubtitle>\n * </Hero>\n *\n * // Grid layout for compact display\n * <Hero compact>\n * <Icon><Settings /></Icon>\n * <HeroTitle>Settings</HeroTitle>\n * <HeroSubtitle>Configure your preferences</HeroSubtitle>\n * </Hero>\n * ```\n *\n * ## Child Component Behavior\n * - **Icon**: Only one allowed\n * - **HeroTitle**: Only one allowed\n * - **HeroSubtitle**: Any number allowed as secondary content\n *\n * ## Layout Modes\n * - **Stack** (default): Vertical layout with larger icon and stacked content\n * - **Grid** (compact=true): Horizontal layout with smaller icon beside content\n */\nexport function Hero({ ref, ...props }: HeroProps) {\n [props, ref] = useContextProps(props, ref ?? null, HeroContext);\n\n const { children, classNames, compact, ...rest } = props;\n\n return (\n <Provider\n values={[\n [\n IconContext,\n { className: icon({ className: classNames?.icon }), size: 'large' },\n ],\n [\n HeadingContext,\n { className: title({ className: classNames?.title }), level: 2 },\n ],\n [\n TextContext,\n { className: subtitle({ className: classNames?.subtitle }) },\n ],\n ]}\n >\n <Header\n {...rest}\n ref={ref}\n className={hero({ className: classNames?.hero })}\n data-layout={compact ? 'grid' : 'stack'}\n >\n {children}\n </Header>\n </Provider>\n );\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/hero/subtitle.tsx"],"names":["HeroSubtitle","Text"],"mappings":"mEAgBaA,CAAAA,CAAeC","file":"subtitle.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { Text } from 'react-aria-components';\n\nexport const HeroSubtitle = Text;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/hero/title.tsx"],"names":["HeroTitle","Heading"],"mappings":"sEAgBaA,CAAAA,CAAYC","file":"title.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { Heading } from 'react-aria-components';\n\nexport const HeroTitle = Heading;\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { ProviderProps } from '../../lib/types.js';
|
|
4
|
+
import { ContextValue } from 'react-aria-components';
|
|
5
|
+
import { HotkeyProps } from './types.js';
|
|
6
|
+
import 'tailwind-variants';
|
|
7
|
+
import './styles.js';
|
|
8
|
+
|
|
9
|
+
declare const HotkeyContext: react.Context<ContextValue<HotkeyProps, HTMLElement>>;
|
|
10
|
+
declare function HotkeyProvider({ children, ...props }: ProviderProps<HotkeyProps>): react_jsx_runtime.JSX.Element;
|
|
11
|
+
|
|
12
|
+
export { HotkeyContext, HotkeyProvider };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import {jsx}from'react/jsx-runtime';import'client-only';import {createContext}from'react';const r=createContext(null);function y({children:o,...t}){return jsx(r.Provider,{value:t,children:o})}export{r as HotkeyContext,y as HotkeyProvider};//# sourceMappingURL=context.js.map
|
|
4
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/hotkey/context.tsx"],"names":["HotkeyContext","createContext","HotkeyProvider","children","props","jsx"],"mappings":"0FAoBO,MAAMA,CAAAA,CACXC,aAAAA,CAAsD,IAAI,EAErD,SAASC,CAAAA,CAAe,CAC7B,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAA+B,CAC7B,OACEC,GAAAA,CAACL,CAAAA,CAAc,QAAA,CAAd,CAAuB,KAAA,CAAOI,CAAAA,CAAQ,QAAA,CAAAD,EAAS,CAEpD","file":"context.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n'use client';\n\nimport type { ProviderProps } from '@/lib/types';\nimport 'client-only';\nimport { createContext } from 'react';\nimport type { ContextValue } from 'react-aria-components';\nimport type { HotkeyProps } from './types';\n\nexport const HotkeyContext =\n createContext<ContextValue<HotkeyProps, HTMLElement>>(null);\n\nexport function HotkeyProvider({\n children,\n ...props\n}: ProviderProps<HotkeyProps>) {\n return (\n <HotkeyContext.Provider value={props}>{children}</HotkeyContext.Provider>\n );\n}\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { HotkeySetProps } from './types.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import 'tailwind-variants';
|
|
5
|
+
import './styles.js';
|
|
6
|
+
|
|
7
|
+
declare function HotkeySet({ children, ...props }: HotkeySetProps): react_jsx_runtime.JSX.Element;
|
|
8
|
+
|
|
9
|
+
export { HotkeySet };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import {jsx}from'react/jsx-runtime';import'client-only';import {IconProvider}from'../icon/context.js';import {HotkeyStyles}from'./styles.js';const{set:p}=HotkeyStyles();function y({children:e,...t}){const{className:r}=t;return jsx("div",{className:p({className:r}),children:jsx(IconProvider,{size:"large",children:e})})}export{y as HotkeySet};//# sourceMappingURL=hotkey-set.js.map
|
|
4
|
+
//# sourceMappingURL=hotkey-set.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/hotkey/hotkey-set.tsx"],"names":["HotkeyStyles","jsx","o","s"],"mappings":"6IAmBQ,KAAQA,CAAAA,GAET,4BAAqB,CAAA,CAAA,CAAA,SAAsC,CAChE,CAAA,GAAA,CAAM,CAAE,CAAA,CAAA,KAAA,CAAA,SAER,CAAA,CAAA,CAAA,CAAA,CACEC,CAAAA,OAACC,GAAI,CAAA,KAAA,CAAA,CAAA,sBACH,CAAA,CAAA,CAAA,CAAA,CAAA,QAAc,CAAAA,GAAA,CAAKC,YAAA,CAAA,CAAA,IAAA,CAAS,OAAA,CAAA,QAGlC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA","file":"hotkey-set.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n'use client';\n\nimport 'client-only';\nimport { IconProvider } from '../icon/context';\nimport { HotkeyStyles } from './styles';\nimport type { HotkeySetProps } from './types';\n\nconst { set } = HotkeyStyles();\n\nexport function HotkeySet({ children, ...props }: HotkeySetProps) {\n const { className } = props;\n\n return (\n <div className={set({ className })}>\n <IconProvider size='large'>{children}</IconProvider>\n </div>\n );\n}\n"]}
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { ProviderProps } from '../../lib/types.js';
|
|
5
|
-
import { HotkeyProps, HotkeySetProps } from './types.js';
|
|
2
|
+
import { HotkeyProps } from './types.js';
|
|
3
|
+
import 'react';
|
|
6
4
|
import 'tailwind-variants';
|
|
7
5
|
import './styles.js';
|
|
8
6
|
|
|
9
|
-
declare const HotkeyContext: react.Context<ContextValue<HotkeyProps, HTMLElement>>;
|
|
10
|
-
declare function HotkeyProvider({ children, ...props }: ProviderProps<HotkeyProps>): react_jsx_runtime.JSX.Element;
|
|
11
|
-
declare namespace HotkeyProvider {
|
|
12
|
-
var displayName: string;
|
|
13
|
-
}
|
|
14
7
|
/**
|
|
15
8
|
* Hotkey - A visual representation of keyboard shortcuts and key combinations
|
|
16
9
|
*
|
|
@@ -25,11 +18,11 @@ declare namespace HotkeyProvider {
|
|
|
25
18
|
*
|
|
26
19
|
* @example
|
|
27
20
|
* // Hotkey combination with different variants
|
|
28
|
-
* <
|
|
21
|
+
* <HotkeySet>
|
|
29
22
|
* <Hotkey variant="outline">Cmd</Hotkey>
|
|
30
23
|
* <span>+</span>
|
|
31
24
|
* <Hotkey variant="outline">K</Hotkey>
|
|
32
|
-
* </
|
|
25
|
+
* </HotkeySet>
|
|
33
26
|
*
|
|
34
27
|
* @example
|
|
35
28
|
* // Flat style for inline text
|
|
@@ -37,20 +30,11 @@ declare namespace HotkeyProvider {
|
|
|
37
30
|
*
|
|
38
31
|
* @example
|
|
39
32
|
* // Icon variant for special keys
|
|
40
|
-
* <
|
|
33
|
+
* <HotkeySet>
|
|
41
34
|
* <Hotkey variant="icon">⌘</Hotkey>
|
|
42
35
|
* <Hotkey>Space</Hotkey>
|
|
43
|
-
* </
|
|
36
|
+
* </HotkeySet>
|
|
44
37
|
*/
|
|
45
38
|
declare function Hotkey({ ref, children, ...props }: HotkeyProps): react_jsx_runtime.JSX.Element;
|
|
46
|
-
declare namespace Hotkey {
|
|
47
|
-
var displayName: string;
|
|
48
|
-
var Set: typeof HotkeySet;
|
|
49
|
-
var Provider: typeof HotkeyProvider;
|
|
50
|
-
}
|
|
51
|
-
declare function HotkeySet({ children, ...props }: HotkeySetProps): react_jsx_runtime.JSX.Element;
|
|
52
|
-
declare namespace HotkeySet {
|
|
53
|
-
var displayName: string;
|
|
54
|
-
}
|
|
55
39
|
|
|
56
|
-
export { Hotkey
|
|
40
|
+
export { Hotkey };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {jsx}from'react/jsx-runtime';import'client-only';import {
|
|
3
|
+
import {jsx}from'react/jsx-runtime';import'client-only';import {useContextProps,Keyboard}from'react-aria-components';import {HotkeyContext}from'./context.js';import {HotkeyStyles,HotkeyStylesDefaults}from'./styles.js';const{key:l}=HotkeyStyles();function u({ref:o,children:e,...t}){[t,o]=useContextProps(t,o??null,HotkeyContext);const{className:r,variant:y=HotkeyStylesDefaults.variant}=t;return jsx(Keyboard,{ref:o,...t,className:l({className:r,variant:y}),children:e})}export{u as Hotkey};//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/hotkey/index.tsx"],"names":["HotkeyStyles","
|
|
1
|
+
{"version":3,"sources":["../../../src/components/hotkey/index.tsx"],"names":["HotkeyStyles","n","ref","props","useContextProps","HotkeyContext","m","variant","jsx","k"],"mappings":"0NAoBQ,KAAQA,IAiCT,CAAA,CAAA,CAAA,CAAAC,YAAA,EAAA,CAAA,SAAkBC,CAAK,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,QAAmB,CAAgB,CAC/D,CAACC,GAAU,CAAA,CAAIC,CAAAA,CAAgBD,CAAAA,CAAOD,CAAAA,CAAAA,CAAO,mBAAMG,CAAa,EAChE,IAAA,CAAMC,aAAE,iBAAW,CAAA,CAAA,CAAAC,8BAAuC,CAAA,OAE1D,CAAA,CAAA,CACEC,CAAAA,OAAUC,GAAKP,CAAAA,QAAM,CAAA,CAAA,GAAU,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,SAAiB,CAAA,CAAA,CAAA,CAAA,SAAW,CAAA,CAAA,CAAAK,OACxD,CAAA,CAAA,CAAA,CAAA,CAAA,QAGP,CAAA,CAAA,CAAA,CAAA","file":"index.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n'use client';\n\nimport 'client-only';\nimport { Keyboard, useContextProps } from 'react-aria-components';\nimport { HotkeyContext } from './context';\nimport { HotkeyStyles, HotkeyStylesDefaults } from './styles';\nimport type { HotkeyProps } from './types';\n\nconst { key } = HotkeyStyles();\n\n/**\n * Hotkey - A visual representation of keyboard shortcuts and key combinations\n *\n * Displays keyboard keys and shortcuts in a consistent, accessible format.\n * Perfect for documentation, help systems, or UI elements that need to show\n * keyboard shortcuts. Supports multiple visual styles including outlined keys,\n * flat presentation, and icon-specific formatting.\n *\n * @example\n * // Basic hotkey display\n * <Hotkey>Ctrl</Hotkey>\n *\n * @example\n * // Hotkey combination with different variants\n * <HotkeySet>\n * <Hotkey variant=\"outline\">Cmd</Hotkey>\n * <span>+</span>\n * <Hotkey variant=\"outline\">K</Hotkey>\n * </HotkeySet>\n *\n * @example\n * // Flat style for inline text\n * <p>Press <Hotkey variant=\"flat\">Enter</Hotkey> to submit</p>\n *\n * @example\n * // Icon variant for special keys\n * <HotkeySet>\n * <Hotkey variant=\"icon\">⌘</Hotkey>\n * <Hotkey>Space</Hotkey>\n * </HotkeySet>\n */\nexport function Hotkey({ ref, children, ...props }: HotkeyProps) {\n [props, ref] = useContextProps(props, ref ?? null, HotkeyContext);\n const { className, variant = HotkeyStylesDefaults.variant } = props;\n\n return (\n <Keyboard ref={ref} {...props} className={key({ className, variant })}>\n {children}\n </Keyboard>\n );\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { ProviderProps } from '../../lib/types.js';
|
|
4
|
+
import { ContextValue } from 'react-aria-components';
|
|
5
|
+
import { IconProps } from './types.js';
|
|
6
|
+
|
|
7
|
+
declare const IconContext: react.Context<ContextValue<IconProps, HTMLSpanElement>>;
|
|
8
|
+
declare function IconProvider({ children, ...props }: ProviderProps<IconProps>): react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { IconContext, IconProvider };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import {jsx}from'react/jsx-runtime';import'client-only';import {createContext}from'react';const e=createContext(null);function c({children:o,...r}){return jsx(e.Provider,{value:r,children:o})}export{e as IconContext,c as IconProvider};//# sourceMappingURL=context.js.map
|
|
4
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/icon/context.tsx"],"names":["IconContext","createContext","IconProvider","children","props","jsx"],"mappings":"0FAmBO,MAAMA,CAAAA,CACXC,aAAAA,CAAwD,IAAI,EAEvD,SAASC,CAAAA,CAAa,CAAE,QAAA,CAAAC,CAAAA,CAAU,GAAGC,CAAM,CAAA,CAA6B,CAC7E,OAAOC,GAAAA,CAACL,CAAAA,CAAY,QAAA,CAAZ,CAAqB,KAAA,CAAOI,CAAAA,CAAQ,QAAA,CAAAD,EAAS,CACvD","file":"context.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport type { ProviderProps } from '@/lib/types';\nimport 'client-only';\nimport { createContext } from 'react';\nimport type { ContextValue } from 'react-aria-components';\nimport type { IconProps } from './types';\n\nexport const IconContext =\n createContext<ContextValue<IconProps, HTMLSpanElement>>(null);\n\nexport function IconProvider({ children, ...props }: ProviderProps<IconProps>) {\n return <IconContext.Provider value={props}>{children}</IconContext.Provider>;\n}\n"]}
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as react from 'react';
|
|
3
|
-
import { ContextValue } from 'react-aria-components';
|
|
4
|
-
import { ProviderProps } from '../../lib/types.js';
|
|
5
2
|
import { IconProps } from './types.js';
|
|
3
|
+
import 'react';
|
|
6
4
|
|
|
7
|
-
declare const IconContext: react.Context<ContextValue<IconProps, HTMLSpanElement>>;
|
|
8
|
-
declare function IconProvider({ children, ...props }: ProviderProps<IconProps>): react_jsx_runtime.JSX.Element;
|
|
9
|
-
declare namespace IconProvider {
|
|
10
|
-
var displayName: string;
|
|
11
|
-
}
|
|
12
5
|
/**
|
|
13
6
|
* Icon - A wrapper component for displaying SVG icons with consistent sizing
|
|
14
7
|
*
|
|
@@ -39,9 +32,5 @@ declare namespace IconProvider {
|
|
|
39
32
|
* </Button>
|
|
40
33
|
*/
|
|
41
34
|
declare function Icon({ ref, ...props }: IconProps): react_jsx_runtime.JSX.Element;
|
|
42
|
-
declare namespace Icon {
|
|
43
|
-
var displayName: string;
|
|
44
|
-
var Provider: typeof IconProvider;
|
|
45
|
-
}
|
|
46
35
|
|
|
47
|
-
export { Icon
|
|
36
|
+
export { Icon };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {jsx}from'react/jsx-runtime';import'client-only';import {
|
|
3
|
+
import {jsx}from'react/jsx-runtime';import'client-only';import {useContextProps}from'react-aria-components';import {IconContext}from'./context.js';import {IconStyles}from'./styles.js';function f({ref:o,...t}){[t,o]=useContextProps(t,o??null,IconContext);const{children:n,className:e,size:s="medium",...m}=t;return jsx("span",{...m,ref:o,className:IconStyles({className:e}),"data-size":s,children:n})}export{f as Icon};//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/icon/index.tsx"],"names":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/icon/index.tsx"],"names":["ref","props","useContextProps","r","IconContext","c","size","jsx","p","i"],"mappings":"wLAgDO,SAAgBA,CAAK,KAAS,CAAc,CACjD,CAACC,GAAU,CAAA,CAAIC,CAAAA,CAAgBD,EAAOD,CAAAA,CAAAA,CAAO,CAAAG,eAAA,CAAA,CAAA,CAAMC,CAAW,EAE9D,IAAA,CAAMC,WAAE,CAAA,CAAA,KAAA,CAAA,QAAU,CAAA,CAAA,CAAA,SAAWC,CAAAA,CAAO,CAAA,IAAA,CAAA,CAAA,CAAA,SAEpC,GAAA,CAAA,CAAA,CAAA,CACEC,CAAAA,OAACC,GAAA,CACE,MACD,CAAA,CAAA,GACA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,SAAwB,CAAAC,UAAA,CAAA,CAAA,SACxB,CAAA,CAAA,CAAA,CAAA,CAAA,WAEC,CAAA,CAAA,CAAA,QAGP,CAAA,CAAA,CAAA,CAAA","file":"index.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { useContextProps } from 'react-aria-components';\nimport { IconContext } from './context';\nimport { IconStyles } from './styles';\nimport type { IconProps } from './types';\n\n/**\n * Icon - A wrapper component for displaying SVG icons with consistent sizing\n *\n * Provides a standardized container for SVG icons with built-in size variants and\n * proper accessibility support. Works seamlessly with the Accelint icon library\n * and supports custom SVG elements with consistent styling and alignment.\n *\n * @example\n * // Basic icon usage\n * <Icon>\n * <Settings />\n * </Icon>\n *\n * @example\n * // Icon with different sizes\n * <Icon size=\"small\">\n * <User />\n * </Icon>\n * <Icon size=\"large\">\n * <Dashboard />\n * </Icon>\n *\n * @example\n * // Icon in button context (automatically inherits sizing)\n * <Button>\n * <Icon><Plus /></Icon>\n * Add Item\n * </Button>\n */\nexport function Icon({ ref, ...props }: IconProps) {\n [props, ref] = useContextProps(props, ref ?? null, IconContext);\n\n const { children, className, size = 'medium', ...rest } = props;\n\n return (\n <span\n {...rest}\n ref={ref}\n className={IconStyles({ className })}\n data-size={size}\n >\n {children}\n </span>\n );\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ContextValue } from 'react-aria-components';
|
|
3
|
+
import { InputProps } from './types.js';
|
|
4
|
+
import 'tailwind-variants';
|
|
5
|
+
import '../button/types.js';
|
|
6
|
+
import '../../lib/types.js';
|
|
7
|
+
import '../button/styles.js';
|
|
8
|
+
import 'tailwind-merge';
|
|
9
|
+
import './styles.js';
|
|
10
|
+
|
|
11
|
+
declare const InputContext: react.Context<ContextValue<InputProps, HTMLInputElement>>;
|
|
12
|
+
|
|
13
|
+
export { InputContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/input/context.tsx"],"names":["InputContext","createContext"],"mappings":"sDAmBO,MAAMA,CAAAA,CACXC,cAA0D,IAAI","file":"context.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n'use client';\n\nimport 'client-only';\nimport { createContext } from 'react';\nimport type { ContextValue } from 'react-aria-components';\nimport type { InputProps } from './types';\n\nexport const InputContext =\n createContext<ContextValue<InputProps, HTMLInputElement>>(null);\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as react from 'react';
|
|
3
|
-
import { ContextValue } from 'react-aria-components';
|
|
4
2
|
import { InputProps } from './types.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import 'react-aria-components';
|
|
5
5
|
import 'tailwind-variants';
|
|
6
6
|
import '../button/types.js';
|
|
7
7
|
import '../../lib/types.js';
|
|
@@ -9,7 +9,6 @@ import '../button/styles.js';
|
|
|
9
9
|
import 'tailwind-merge';
|
|
10
10
|
import './styles.js';
|
|
11
11
|
|
|
12
|
-
declare const InputContext: react.Context<ContextValue<InputProps, HTMLInputElement>>;
|
|
13
12
|
/**
|
|
14
13
|
* Input - A flexible text input component with enhanced features
|
|
15
14
|
*
|
|
@@ -29,8 +28,5 @@ declare const InputContext: react.Context<ContextValue<InputProps, HTMLInputElem
|
|
|
29
28
|
* />
|
|
30
29
|
*/
|
|
31
30
|
declare function Input({ ref, ...props }: InputProps): react_jsx_runtime.JSX.Element;
|
|
32
|
-
declare namespace Input {
|
|
33
|
-
var displayName: string;
|
|
34
|
-
}
|
|
35
31
|
|
|
36
|
-
export { Input
|
|
32
|
+
export { Input };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {jsxs,jsx}from'react/jsx-runtime';import
|
|
3
|
+
import {jsxs,jsx}from'react/jsx-runtime';import {CancelFill}from'@accelint/icons';import {useControlledState}from'@react-stately/utils';import'client-only';import {useContextProps,InputContext,Input,composeRenderProps}from'react-aria-components';import {Button}from'../button/index.js';import {Icon}from'../icon/index.js';import {InputContext as InputContext$1}from'./context.js';import {InputStyles,InputStylesDefaults}from'./styles.js';const{container:H,sizer:K,input:L,clear:M}=InputStyles(),f={target:{value:""}};function X({ref:t,...n}){[n,t]=useContextProps(n,t??null,InputContext),[n,t]=useContextProps({...n},t??null,InputContext$1);const{classNames:r,autoSize:s,defaultValue:h="",disabled:i,placeholder:d,readOnly:m,required:c,size:C="medium",type:l=InputStylesDefaults.type,value:g,isClearable:a,isInvalid:E,onChange:P,onKeyDown:N,...b}=n,[u,z]=useControlledState(g,h),x=(`${u??""}`.length||d?.length)??0,y=u==null||u==="";function p(e){P?.(e),e.defaultPrevented||z(e.target.value);}return jsxs("div",{className:H({className:r?.container,autoSize:s,type:l,isClearable:a}),"data-disabled":i||null,"data-empty":y||null,"data-invalid":E||null,"data-length":x,"data-placeholder":!!d&&y||null,"data-readonly":m||null,"data-required":c||null,"data-size":C,children:[jsx("div",{className:K({className:r?.sizer,autoSize:s,type:l,isClearable:a}),children:jsx(Input,{...b,ref:t,className:composeRenderProps(r?.input,e=>L({className:e,autoSize:s,type:l,isClearable:a})),disabled:i,placeholder:d,readOnly:m,required:c,type:l,value:u,onChange:p,onKeyDown:e=>{N?.(e),a&&!e.defaultPrevented&&e.key==="Escape"&&p(f);}})}),a&&jsx(Button,{className:composeRenderProps(r?.clear,e=>M({className:e,autoSize:s,type:l,isClearable:a})),excludeFromTabOrder:true,size:"small",variant:"icon",isDisabled:i,onPress:()=>{p(f),t?.current?.focus();},children:jsx(Icon,{children:jsx(CancelFill,{})})})]})}export{X as Input};//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/input/index.tsx"],"names":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/input/index.tsx"],"names":["input","InputStyles","Input","ref","props","AriaInputContext","useContextProps","v","O","classNames","A","autoSize","defaultValue","disabled","placeholder","size","isClearable","isInvalid","rest","useControlledState","valueProp","value","S","isEmpty","handleChange","event","onChange","setValue","container","type","readOnly","o","jsx","AriaInput","className","onKeyDown","Button","composeRenderProps","clear","clearInputEvent","CancelFill","w","D"],"mappings":"sbA8B0B,KAAAA,CAAO,SAAUC,CAAAA,CAAY,CAAA,KAIrD,CAAA,CAAA,CAAA,KAAU,CAAA,CAAA,CAAA,KACZ,CAAA,CAoBO,mBAASC,OAAQC,CAAAA,KAAc,CAAA,EASpC,CAACC,CAAAA,CAAOD,SAA8BA,CAAO,CAAA,CAAA,GAAME,CAAgB,CAAA,CACnE,GAAQF,CAAG,EAAIG,CAAAA,CAAgB,CAAE,CAAA,CAAA,CAAGF,CAAMG,gBAAGJ,CAAAA,CAAAA,CAAO,EAAA,IAAkB,CAAAK,YAEtE,KAAM,CACJ,CAAA,CAAAD,eAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAAE,GACA,IAAA,CAAAC,cAAA,CAAA,CAAAC,gBACAC,CAAe,CAAA,CAAA,QACf,CAAA,CAAAC,CAAAA,aACAC,CAAAA,CACA,EAAA,CAAA,QACA,CAAA,CAAA,CAAA,aACAC,CAAAA,QAAO,CAAA,CACP,CAAA,QAA2B,CAAA,CAAA,CAAA,IAC3B,CAAA,CAAA,CAAA,QACA,CAAA,IAAA,CAAA,CAAAC,CAAAA,mBACA,WAAAC,CACA,CAAA,CAAA,WACA,CAAA,CAAA,CAAA,SACA,CAAGC,CACL,CAAA,QAEsB,CAAIC,CAAAA,CAAmBC,SAC7B,CAAA,CAAGC,CAAAA,IAAW,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAAC,kBAAUR,CAAAA,CAAAA,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAW,GAC7DS,EAAUF,CAAAA,CAAS,OAAQA,EAAAA,CAAU,EAAA,UAElCG,CAAAA,CAAaC,CAAAA,CAAsC,EAC1DC,IAAgB,EAEXD,CAAAA,mBACHE,CAAAA,CAASF,0BAKV,CAAA,CAAA,CAAA,CAAA,MACC,CAAA,KAAWG,EAAAA,CAAU,iBACI,CAAA,CAAA,SACvB,CAAA,CAAA,CAAA,CAAA,WACAC,EACA,SAAA,CAAA,6BAEyB,CAC3B,CAAA,CAAA,CAAA,CAAA,iBACA,EAAA,IAAA,CAAA,gBACA,IAAA,CAAA,oCACoCN,CAAAA,CAAY,mBAChD,CAAA,CAAeO,CAAAA,CAAAA,SACf,CAAA,eAA2B,QAC3B,CAAA,eAEA,CAAA,CAAA,EAAA,gBACE,CAAA,CAAA,CAAA,QACE,CAAA,CAAAC,GAAA,CAAA,KAAuB,CAAA,CAAA,SACvB,CAAA,CAAA,CAAA,CAAApB,SAEA,CAAA,CAAA,EAAA,KAAA,CAAA,QAGF,CAAA,CAAA,CAAA,IAAAqB,EAACC,CAAAA,WAEM9B,CAAAA,CACL,CAAA,CAAA,CAAA,SAA8BM,GAAAA,CAAAA,KAAY,CAAA,CAAA,GAAA,CAAQyB,IAChDlC,CAAM,CAAE,CAAA,SAAAkC,CAAAA,kBAAW,SAAAvB,CAAAA,CAAU,EAAA,CAAA,CAAA,CAAAkB,SAAM,CAAA,CAAA,CAAA,QAErC,CAAA,CAAA,CAAA,IAAA,CAAUhB,CAAAA,CACV,YAAaC,CAAAA,CACb,CAAA,CAAA,CAAA,QACA,CAAA,CAAA,CAAA,WACA,CAAA,CAAMe,CAAAA,QACCR,CACP,UAAUG,CACV,CAAA,CAAA,IAAA,CAAA,CAAA,CAAA,KACEW,CAAAA,CAAAA,CAAAA,QAIGV,CAAAA,CAAM,mBACPA,CAAM,CAAA,CAAA,CAAA,EAAA,CAAQ,kBAMtB,EACCT,CAAAA,CAAAA,GACEoB,GACC,UAAWC,CAAAA,CAAmB5B,CAAAA,EAAAA,CAAY,MAAQyB,EAAAA,GAChDI,CAAAA,MAAM,CAAE,CAAA,SAAAJ,mBAAW,CAAA,CAAA,EAAA,KAAAvB,CAAAA,CAAU,KAAAkB,SAAM,CAAA,CAAA,CAAA,QAErC,CAAA,CAAA,CAAA,IAAA,CAAA,CAAA,CAAA,YACA,CAAA,CAAA,CAAA,CAAA,CAAK,mBACG,CAAA,IAAA,CACR,IAAA,CAAA,QACA,OAAA,CAAS,MACPL,CAAae,oBAEC,CAAM,IAGtB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAAP,cACEA,GAACQ,CAAA,SAIT,CAEJT,GAAA,CAAAU,IAAA,CAAA,CAAA,QAAA,CAAAV,GAAA,CAAAW,UAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA","file":"index.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n'use client';\n\nimport { CancelFill } from '@accelint/icons';\nimport { useControlledState } from '@react-stately/utils';\nimport 'client-only';\nimport {\n Input as AriaInput,\n InputContext as AriaInputContext,\n composeRenderProps,\n useContextProps,\n} from 'react-aria-components';\nimport { Button } from '../button';\nimport { Icon } from '../icon';\nimport { InputContext } from './context';\nimport { InputStyles, InputStylesDefaults } from './styles';\nimport type { ChangeEvent } from 'react';\nimport type { InputProps } from './types';\n\nconst { container, sizer, input, clear } = InputStyles();\n\n// TODO: Improve this implementation so it is more of a realistic event\nconst clearInputEvent = {\n target: { value: '' },\n} as ChangeEvent<HTMLInputElement>;\n\n/**\n * Input - A flexible text input component with enhanced features\n *\n * Provides a customizable text input with automatic sizing, clear functionality,\n * and integrated validation states. Supports various styling options and integrates\n * seamlessly with form field components for comprehensive form experiences.\n *\n * @example\n * // Basic input\n * <Input placeholder=\"Enter text...\" />\n *\n * @example\n * // Input with clear button\n * <Input\n * defaultValue=\"Clearable text\"\n * classNames={{ clear: \"hover:bg-info-bold\" }}\n * />\n */\nexport function Input({ ref, ...props }: InputProps) {\n /**\n * It is necessary to pull in the AriaInputContext to capture defaultValue,\n * value & onChange props that may be supplied by a Field component\n *\n * These are necessary due to the implementation of useControlledState for\n * the purposes of supporting the clear button and to capture the length\n * of the current value for the autoSize feature\n */\n [props, ref] = useContextProps(props, ref ?? null, AriaInputContext);\n [props, ref] = useContextProps({ ...props }, ref ?? null, InputContext);\n\n const {\n classNames,\n autoSize,\n defaultValue = '',\n disabled,\n placeholder,\n readOnly,\n required,\n size = 'medium',\n type = InputStylesDefaults.type,\n value: valueProp,\n isClearable,\n isInvalid,\n onChange,\n onKeyDown,\n ...rest\n } = props;\n\n const [value, setValue] = useControlledState(valueProp, defaultValue);\n const length = (`${value ?? ''}`.length || placeholder?.length) ?? 0;\n const isEmpty = value == null || value === '';\n\n function handleChange(event: ChangeEvent<HTMLInputElement>) {\n onChange?.(event);\n\n if (!event.defaultPrevented) {\n setValue(event.target.value);\n }\n }\n\n return (\n <div\n className={container({\n className: classNames?.container,\n autoSize,\n type,\n isClearable,\n })}\n data-disabled={disabled || null}\n data-empty={isEmpty || null}\n data-invalid={isInvalid || null}\n data-length={length}\n data-placeholder={(!!placeholder && isEmpty) || null}\n data-readonly={readOnly || null}\n data-required={required || null}\n data-size={size}\n >\n <div\n className={sizer({\n className: classNames?.sizer,\n autoSize,\n type,\n isClearable,\n })}\n >\n <AriaInput\n {...rest}\n ref={ref}\n className={composeRenderProps(classNames?.input, (className) =>\n input({ className, autoSize, type, isClearable }),\n )}\n disabled={disabled}\n placeholder={placeholder}\n readOnly={readOnly}\n required={required}\n type={type}\n value={value}\n onChange={handleChange}\n onKeyDown={(event) => {\n onKeyDown?.(event);\n\n if (\n isClearable &&\n !event.defaultPrevented &&\n event.key === 'Escape'\n ) {\n handleChange(clearInputEvent);\n }\n }}\n />\n </div>\n {isClearable && (\n <Button\n className={composeRenderProps(classNames?.clear, (className) =>\n clear({ className, autoSize, type, isClearable }),\n )}\n excludeFromTabOrder\n size='small'\n variant='icon'\n isDisabled={disabled}\n onPress={() => {\n handleChange(clearInputEvent);\n\n ref?.current?.focus();\n }}\n >\n <Icon>\n <CancelFill />\n </Icon>\n </Button>\n )}\n </div>\n );\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { ProviderProps } from '../../lib/types.js';
|
|
4
|
+
import { ContextValue } from 'react-aria-components';
|
|
5
|
+
import { LabelProps } from './types.js';
|
|
6
|
+
|
|
7
|
+
declare const LabelContext: react.Context<ContextValue<LabelProps, HTMLLabelElement>>;
|
|
8
|
+
declare function LabelProvider({ children, ...props }: ProviderProps<LabelProps>): react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { LabelContext, LabelProvider };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import {jsx}from'react/jsx-runtime';import'client-only';import {createContext}from'react';const t=createContext(null);function i({children:e,...o}){return jsx(t.Provider,{value:o,children:e})}export{t as LabelContext,i as LabelProvider};//# sourceMappingURL=context.js.map
|
|
4
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/label/context.tsx"],"names":["LabelContext","createContext","LabelProvider","children","props","jsx"],"mappings":"0FAmBO,MAAMA,CAAAA,CACXC,aAAAA,CAA0D,IAAI,EAEzD,SAASC,CAAAA,CAAc,CAC5B,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAA8B,CAC5B,OACEC,GAAAA,CAACL,CAAAA,CAAa,QAAA,CAAb,CAAsB,KAAA,CAAOI,CAAAA,CAAQ,QAAA,CAAAD,EAAS,CAEnD","file":"context.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport type { ProviderProps } from '@/lib/types';\nimport 'client-only';\nimport { createContext } from 'react';\nimport type { ContextValue } from 'react-aria-components';\nimport type { LabelProps } from './types';\n\nexport const LabelContext =\n createContext<ContextValue<LabelProps, HTMLLabelElement>>(null);\n\nexport function LabelProvider({\n children,\n ...props\n}: ProviderProps<LabelProps>) {\n return (\n <LabelContext.Provider value={props}>{children}</LabelContext.Provider>\n );\n}\n"]}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as react from 'react';
|
|
3
|
-
import { ContextValue } from 'react-aria-components';
|
|
4
|
-
import { ProviderProps } from '../../lib/types.js';
|
|
5
2
|
import { LabelProps } from './types.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import 'react-aria-components';
|
|
6
5
|
|
|
7
|
-
declare const LabelContext: react.Context<ContextValue<LabelProps, HTMLLabelElement>>;
|
|
8
|
-
declare function LabelProvider({ children, ...props }: ProviderProps<LabelProps>): react_jsx_runtime.JSX.Element;
|
|
9
|
-
declare namespace LabelProvider {
|
|
10
|
-
var displayName: string;
|
|
11
|
-
}
|
|
12
6
|
/**
|
|
13
7
|
* Label - A semantic label component for form elements and content
|
|
14
8
|
*
|
|
@@ -29,9 +23,5 @@ declare namespace LabelProvider {
|
|
|
29
23
|
* <Label isDisabled>Inactive Field</Label>
|
|
30
24
|
*/
|
|
31
25
|
declare function Label({ ref, ...props }: LabelProps): react_jsx_runtime.JSX.Element;
|
|
32
|
-
declare namespace Label {
|
|
33
|
-
var displayName: string;
|
|
34
|
-
var Provider: typeof LabelProvider;
|
|
35
|
-
}
|
|
36
26
|
|
|
37
|
-
export { Label
|
|
27
|
+
export { Label };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {jsxs
|
|
3
|
+
import {jsxs}from'react/jsx-runtime';import'client-only';import {useContextProps,Label}from'react-aria-components';import {LabelContext}from'./context.js';import {LabelStyles}from'./styles.js';function f({ref:l,...e}){[e,l]=useContextProps(e,l??null,LabelContext);const{children:t,className:o,isDisabled:r,isRequired:a,...i}=e;return jsxs(Label,{...i,className:LabelStyles({className:o}),"data-disabled":r||null,"data-required":a||null,children:[t,!a&&" (optional)"]})}export{f as Label};//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/label/index.tsx"],"names":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/label/index.tsx"],"names":["ref","props","useContextProps","LabelContext","b","jsxs","rest","s","m"],"mappings":"iMAsCO,SAAiBA,CAAK,CAAA,CAAA,GAAS,CAAe,CACnD,CAACC,GAAU,CAAA,CAAIC,CAAAA,CAAgBD,CAAAA,CAAOD,CAAAA,CAAAA,CAAO,mBAAMG,CAAY,EAE/D,IAAA,CAAMC,YAAE,gBAAU,CAAA,CAAA,CAAA,SAAW,CAAA,CAAA,CAAA,UAAY,CAAA,CAAA,CAAA,WAAwBH,CAAAA,CAEjE,GAAA,CAAA,CAAA,CAAA,CACEI,CAAAA,OACMC,IAAAA,CACJC,KAAA,CAAA,CAAA,GAAA,CAAA,CAAA,SAAyB,CAAAC,WAAA,CAAA,CAAA,6BACI,CAC7B,CAAA,EAAA,IAAA,CAAA,gBAEC,CAAA,EAAA,IAAA,CAAA,QACe,qBAGtB,CAAA,CAAA,CAAA","file":"index.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { Label as AriaLabel, useContextProps } from 'react-aria-components';\nimport { LabelContext } from './context';\nimport { LabelStyles } from './styles';\nimport type { LabelProps } from './types';\n\n/**\n * Label - A semantic label component for form elements and content\n *\n * Provides accessible labeling for form controls with automatic handling of\n * required/optional states. Integrates with React Aria form components to\n * ensure proper accessibility and screen reader support.\n *\n * @example\n * // Basic label\n * <Label>Username</Label>\n *\n * @example\n * // Required field label\n * <Label isRequired>Email Address</Label>\n *\n * @example\n * // Disabled label\n * <Label isDisabled>Inactive Field</Label>\n */\nexport function Label({ ref, ...props }: LabelProps) {\n [props, ref] = useContextProps(props, ref ?? null, LabelContext);\n\n const { children, className, isDisabled, isRequired, ...rest } = props;\n\n return (\n <AriaLabel\n {...rest}\n className={LabelStyles({ className })}\n data-disabled={isDisabled || null}\n data-required={isRequired || null}\n >\n {children}\n {!isRequired && ' (optional)'}\n </AriaLabel>\n );\n}\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ProviderProps } from '../../lib/types.js';
|
|
3
|
+
import { LinkProps } from './types.js';
|
|
4
|
+
import 'react';
|
|
5
|
+
import 'react-aria-components';
|
|
6
|
+
|
|
7
|
+
declare function LinkProvider({ children, ...props }: ProviderProps<LinkProps>): react_jsx_runtime.JSX.Element;
|
|
8
|
+
|
|
9
|
+
export { LinkProvider };
|