@cerberus-design/react 0.18.4 → 0.19.0
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/build/legacy/_tsup-dts-rollup.d.cts +2429 -790
- package/build/legacy/components/accordion/index.cjs +146 -57
- package/build/legacy/components/accordion/index.cjs.map +1 -1
- package/build/legacy/components/accordion/index.d.cts +5 -0
- package/build/legacy/components/accordion/item-group.cjs +143 -54
- package/build/legacy/components/accordion/item-group.cjs.map +1 -1
- package/build/legacy/components/accordion/item-indicator.cjs +134 -45
- package/build/legacy/components/accordion/item-indicator.cjs.map +1 -1
- package/build/legacy/components/accordion/parts.cjs +132 -43
- package/build/legacy/components/accordion/parts.cjs.map +1 -1
- package/build/legacy/components/accordion/primitives.cjs +132 -43
- package/build/legacy/components/accordion/primitives.cjs.map +1 -1
- package/build/legacy/components/accordion/primitives.d.cts +5 -0
- package/build/legacy/components/admonition/admonition.cjs +194 -96
- package/build/legacy/components/admonition/admonition.cjs.map +1 -1
- package/build/legacy/components/admonition/index.cjs +181 -83
- package/build/legacy/components/admonition/index.cjs.map +1 -1
- package/build/legacy/components/admonition/index.d.cts +5 -0
- package/build/legacy/components/admonition/match-avatar.cjs +120 -23
- package/build/legacy/components/admonition/match-avatar.cjs.map +1 -1
- package/build/legacy/components/admonition/parts.cjs +150 -35
- package/build/legacy/components/admonition/parts.cjs.map +1 -1
- package/build/legacy/components/admonition/primitives.cjs +150 -35
- package/build/legacy/components/admonition/primitives.cjs.map +1 -1
- package/build/legacy/components/admonition/primitives.d.cts +5 -0
- package/build/legacy/components/avatar/avatar.cjs +120 -23
- package/build/legacy/components/avatar/avatar.cjs.map +1 -1
- package/build/legacy/components/avatar/index.cjs +120 -23
- package/build/legacy/components/avatar/index.cjs.map +1 -1
- package/build/legacy/components/avatar/index.d.cts +3 -0
- package/build/legacy/components/avatar/parts.cjs +119 -22
- package/build/legacy/components/avatar/parts.cjs.map +1 -1
- package/build/legacy/components/avatar/primitives.cjs +119 -22
- package/build/legacy/components/avatar/primitives.cjs.map +1 -1
- package/build/legacy/components/avatar/primitives.d.cts +3 -0
- package/build/legacy/components/button/button.cjs +126 -24
- package/build/legacy/components/button/button.cjs.map +1 -1
- package/build/legacy/components/button/index.cjs +126 -24
- package/build/legacy/components/button/index.cjs.map +1 -1
- package/build/legacy/components/button/parts.cjs +126 -24
- package/build/legacy/components/button/parts.cjs.map +1 -1
- package/build/legacy/components/button/primitives.cjs +148 -0
- package/build/legacy/components/button/primitives.cjs.map +1 -0
- package/build/legacy/components/button/primitives.d.cts +1 -0
- package/build/legacy/components/checkbox/checkbox-icon.cjs +148 -55
- package/build/legacy/components/checkbox/checkbox-icon.cjs.map +1 -1
- package/build/legacy/components/checkbox/checkbox.cjs +136 -43
- package/build/legacy/components/checkbox/checkbox.cjs.map +1 -1
- package/build/legacy/components/checkbox/index.cjs +136 -43
- package/build/legacy/components/checkbox/index.cjs.map +1 -1
- package/build/legacy/components/checkbox/index.d.cts +6 -0
- package/build/legacy/components/checkbox/parts.cjs +134 -41
- package/build/legacy/components/checkbox/parts.cjs.map +1 -1
- package/build/legacy/components/checkbox/primitives.cjs +134 -41
- package/build/legacy/components/checkbox/primitives.cjs.map +1 -1
- package/build/legacy/components/checkbox/primitives.d.cts +6 -0
- package/build/legacy/components/circular-progress/circular-progress.cjs +188 -0
- package/build/legacy/components/circular-progress/circular-progress.cjs.map +1 -0
- package/build/legacy/components/circular-progress/circular-progress.d.cts +2 -0
- package/build/legacy/components/circular-progress/index.cjs +202 -0
- package/build/legacy/components/circular-progress/index.cjs.map +1 -0
- package/build/legacy/components/circular-progress/index.d.cts +16 -0
- package/build/legacy/components/circular-progress/primitives.cjs +182 -0
- package/build/legacy/components/circular-progress/primitives.cjs.map +1 -0
- package/build/legacy/components/circular-progress/primitives.d.cts +14 -0
- package/build/legacy/components/combobox/combobox.cjs +208 -135
- package/build/legacy/components/combobox/combobox.cjs.map +1 -1
- package/build/legacy/components/combobox/index.cjs +258 -142
- package/build/legacy/components/combobox/index.cjs.map +1 -1
- package/build/legacy/components/combobox/index.d.cts +14 -0
- package/build/legacy/components/combobox/item-group.cjs +166 -111
- package/build/legacy/components/combobox/item-group.cjs.map +1 -1
- package/build/legacy/components/combobox/item.cjs +166 -111
- package/build/legacy/components/combobox/item.cjs.map +1 -1
- package/build/legacy/components/combobox/parts.cjs +166 -111
- package/build/legacy/components/combobox/parts.cjs.map +1 -1
- package/build/legacy/components/combobox/primitives.cjs +166 -115
- package/build/legacy/components/combobox/primitives.cjs.map +1 -1
- package/build/legacy/components/combobox/primitives.d.cts +14 -0
- package/build/legacy/components/combobox/use-stateful-collection.cjs +157 -0
- package/build/legacy/components/combobox/use-stateful-collection.cjs.map +1 -1
- package/build/legacy/components/cta-dialog/index.cjs +186 -154
- package/build/legacy/components/cta-dialog/index.cjs.map +1 -1
- package/build/legacy/components/cta-dialog/provider.cjs +186 -154
- package/build/legacy/components/cta-dialog/provider.cjs.map +1 -1
- package/build/legacy/components/cta-dialog/trigger-item.cjs +127 -23
- package/build/legacy/components/cta-dialog/trigger-item.cjs.map +1 -1
- package/build/legacy/components/date-picker/calendar.cjs +209 -228
- package/build/legacy/components/date-picker/calendar.cjs.map +1 -1
- package/build/legacy/components/date-picker/calendar.d.cts +1 -0
- package/build/legacy/components/date-picker/content.cjs +156 -156
- package/build/legacy/components/date-picker/content.cjs.map +1 -1
- package/build/legacy/components/date-picker/date-picker.cjs +150 -147
- package/build/legacy/components/date-picker/date-picker.cjs.map +1 -1
- package/build/legacy/components/date-picker/day-view.cjs +177 -193
- package/build/legacy/components/date-picker/day-view.cjs.map +1 -1
- package/build/legacy/components/date-picker/index.cjs +202 -221
- package/build/legacy/components/date-picker/index.cjs.map +1 -1
- package/build/legacy/components/date-picker/index.d.cts +25 -0
- package/build/legacy/components/date-picker/input.cjs +161 -169
- package/build/legacy/components/date-picker/input.cjs.map +1 -1
- package/build/legacy/components/date-picker/month-view.cjs +177 -193
- package/build/legacy/components/date-picker/month-view.cjs.map +1 -1
- package/build/legacy/components/date-picker/parts.cjs +150 -147
- package/build/legacy/components/date-picker/parts.cjs.map +1 -1
- package/build/legacy/components/date-picker/primitives.cjs +150 -147
- package/build/legacy/components/date-picker/primitives.cjs.map +1 -1
- package/build/legacy/components/date-picker/primitives.d.cts +24 -0
- package/build/legacy/components/date-picker/range-input.cjs +157 -165
- package/build/legacy/components/date-picker/range-input.cjs.map +1 -1
- package/build/legacy/components/date-picker/trigger.cjs +161 -169
- package/build/legacy/components/date-picker/trigger.cjs.map +1 -1
- package/build/legacy/components/date-picker/view-control-group.cjs +184 -202
- package/build/legacy/components/date-picker/view-control-group.cjs.map +1 -1
- package/build/legacy/components/date-picker/year-view.cjs +177 -193
- package/build/legacy/components/date-picker/year-view.cjs.map +1 -1
- package/build/legacy/components/deprecated/Label.cjs +155 -8
- package/build/legacy/components/deprecated/Label.cjs.map +1 -1
- package/build/legacy/components/deprecated/Legend.cjs +1 -1
- package/build/legacy/components/deprecated/Legend.cjs.map +1 -1
- package/build/legacy/components/deprecated/NavMenuLink.cjs +1 -1
- package/build/legacy/components/deprecated/NavMenuLink.cjs.map +1 -1
- package/build/legacy/components/deprecated/NavMenuList.cjs +1 -1
- package/build/legacy/components/deprecated/NavMenuList.cjs.map +1 -1
- package/build/legacy/components/deprecated/NavMenuTrigger.cjs +9 -9
- package/build/legacy/components/deprecated/NavMenuTrigger.cjs.map +1 -1
- package/build/legacy/components/deprecated/Notification.cjs +13 -13
- package/build/legacy/components/deprecated/Notification.cjs.map +1 -1
- package/build/legacy/components/deprecated/NotificationDescription.d.cts +1 -1
- package/build/legacy/components/deprecated/NotificationHeading.d.cts +1 -1
- package/build/legacy/components/deprecated/aria-helpers/nav-menu.aria.cjs +36 -0
- package/build/legacy/components/deprecated/aria-helpers/nav-menu.aria.cjs.map +1 -0
- package/build/legacy/components/deprecated/aria-helpers/nav-menu.aria.d.cts +2 -0
- package/build/legacy/components/deprecated/aria-helpers/trap-focus.aria.cjs +54 -0
- package/build/legacy/components/deprecated/aria-helpers/trap-focus.aria.cjs.map +1 -0
- package/build/legacy/components/deprecated/aria-helpers/trap-focus.aria.d.cts +1 -0
- package/build/legacy/components/dialog/close-icon-trigger.cjs +135 -25
- package/build/legacy/components/dialog/close-icon-trigger.cjs.map +1 -1
- package/build/legacy/components/dialog/dialog.cjs +129 -39
- package/build/legacy/components/dialog/dialog.cjs.map +1 -1
- package/build/legacy/components/dialog/index.cjs +137 -88
- package/build/legacy/components/dialog/index.cjs.map +1 -1
- package/build/legacy/components/dialog/index.d.cts +9 -1
- package/build/legacy/components/dialog/parts.cjs +122 -59
- package/build/legacy/components/dialog/parts.cjs.map +1 -1
- package/build/legacy/components/dialog/primitives.cjs +122 -59
- package/build/legacy/components/dialog/primitives.cjs.map +1 -1
- package/build/legacy/components/dialog/primitives.d.cts +9 -1
- package/build/legacy/components/feature-flag/feature-flag.cjs +65 -0
- package/build/legacy/components/feature-flag/feature-flag.cjs.map +1 -0
- package/build/legacy/components/feature-flag/feature-flag.d.cts +2 -0
- package/build/legacy/components/feature-flag/index.cjs +64 -0
- package/build/legacy/components/feature-flag/index.cjs.map +1 -0
- package/build/legacy/components/feature-flag/index.d.cts +2 -0
- package/build/legacy/components/field/error-text.cjs +36 -0
- package/build/legacy/components/field/error-text.cjs.map +1 -0
- package/build/legacy/components/field/error-text.d.cts +1 -0
- package/build/legacy/components/field/field.cjs +176 -63
- package/build/legacy/components/field/field.cjs.map +1 -1
- package/build/legacy/components/field/helper-text.cjs +157 -12
- package/build/legacy/components/field/helper-text.cjs.map +1 -1
- package/build/legacy/components/field/index.cjs +225 -119
- package/build/legacy/components/field/index.cjs.map +1 -1
- package/build/legacy/components/field/index.d.cts +11 -3
- package/build/legacy/components/field/input.cjs +298 -0
- package/build/legacy/components/field/input.cjs.map +1 -0
- package/build/legacy/components/field/input.d.cts +2 -0
- package/build/legacy/components/field/parts.cjs +175 -92
- package/build/legacy/components/field/parts.cjs.map +1 -1
- package/build/legacy/components/field/primitives.cjs +215 -89
- package/build/legacy/components/field/primitives.cjs.map +1 -1
- package/build/legacy/components/field/primitives.d.cts +9 -2
- package/build/legacy/components/fieldset/fieldset.cjs +127 -34
- package/build/legacy/components/fieldset/fieldset.cjs.map +1 -1
- package/build/legacy/components/fieldset/index.cjs +127 -34
- package/build/legacy/components/fieldset/index.cjs.map +1 -1
- package/build/legacy/components/fieldset/index.d.cts +4 -0
- package/build/legacy/components/fieldset/parts.cjs +127 -34
- package/build/legacy/components/fieldset/parts.cjs.map +1 -1
- package/build/legacy/components/fieldset/primitives.cjs +127 -34
- package/build/legacy/components/fieldset/primitives.cjs.map +1 -1
- package/build/legacy/components/fieldset/primitives.d.cts +4 -0
- package/build/legacy/components/file-upload/file-status.cjs +570 -0
- package/build/legacy/components/file-upload/file-status.cjs.map +1 -0
- package/build/legacy/components/file-upload/file-status.d.cts +6 -0
- package/build/legacy/components/file-upload/file-uploader.cjs +286 -0
- package/build/legacy/components/file-upload/file-uploader.cjs.map +1 -0
- package/build/legacy/components/file-upload/file-uploader.d.cts +2 -0
- package/build/legacy/components/file-upload/index.cjs +627 -0
- package/build/legacy/components/file-upload/index.cjs.map +1 -0
- package/build/legacy/components/file-upload/index.d.cts +8 -0
- package/build/legacy/components/for/for.cjs +38 -0
- package/build/legacy/components/for/for.cjs.map +1 -0
- package/build/legacy/components/for/for.d.cts +2 -0
- package/build/legacy/components/for/index.cjs +40 -0
- package/build/legacy/components/for/index.cjs.map +1 -0
- package/build/legacy/components/for/index.d.cts +2 -0
- package/build/legacy/components/icon-button/button.cjs +157 -0
- package/build/legacy/components/icon-button/button.cjs.map +1 -0
- package/build/legacy/components/icon-button/button.d.cts +2 -0
- package/build/legacy/components/icon-button/index.cjs +159 -0
- package/build/legacy/components/icon-button/index.cjs.map +1 -0
- package/build/legacy/components/icon-button/index.d.cts +4 -0
- package/build/legacy/components/icon-button/primitives.cjs +148 -0
- package/build/legacy/components/icon-button/primitives.cjs.map +1 -0
- package/build/legacy/components/icon-button/primitives.d.cts +2 -0
- package/build/legacy/components/menu/index.cjs +220 -0
- package/build/legacy/components/menu/index.cjs.map +1 -0
- package/build/legacy/components/menu/index.d.cts +27 -0
- package/build/legacy/components/menu/menu.cjs +200 -0
- package/build/legacy/components/menu/menu.cjs.map +1 -0
- package/build/legacy/components/menu/menu.d.cts +7 -0
- package/build/legacy/components/menu/primitives.cjs +190 -0
- package/build/legacy/components/menu/primitives.cjs.map +1 -0
- package/build/legacy/components/menu/primitives.d.cts +20 -0
- package/build/legacy/components/notifications/center.cjs +144 -64
- package/build/legacy/components/notifications/center.cjs.map +1 -1
- package/build/legacy/components/notifications/close-trigger.cjs +128 -36
- package/build/legacy/components/notifications/close-trigger.cjs.map +1 -1
- package/build/legacy/components/notifications/index.cjs +140 -62
- package/build/legacy/components/notifications/index.cjs.map +1 -1
- package/build/legacy/components/notifications/index.d.cts +6 -0
- package/build/legacy/components/notifications/match-icon.cjs +2 -2
- package/build/legacy/components/notifications/match-icon.cjs.map +1 -1
- package/build/legacy/components/notifications/parts.cjs +128 -36
- package/build/legacy/components/notifications/parts.cjs.map +1 -1
- package/build/legacy/components/notifications/primitives.cjs +129 -39
- package/build/legacy/components/notifications/primitives.cjs.map +1 -1
- package/build/legacy/components/notifications/primitives.d.cts +6 -0
- package/build/legacy/components/portal/index.cjs +34 -0
- package/build/legacy/components/portal/index.cjs.map +1 -0
- package/build/legacy/components/portal/index.d.cts +2 -0
- package/build/legacy/components/portal/portal.cjs +32 -0
- package/build/legacy/components/portal/portal.cjs.map +1 -0
- package/build/legacy/components/portal/portal.d.cts +2 -0
- package/build/legacy/components/progress/index.cjs +194 -0
- package/build/legacy/components/progress/index.cjs.map +1 -0
- package/build/legacy/components/progress/index.d.cts +8 -0
- package/build/legacy/components/progress/primitives.cjs +164 -0
- package/build/legacy/components/progress/primitives.cjs.map +1 -0
- package/build/legacy/components/progress/primitives.d.cts +4 -0
- package/build/legacy/components/progress/progress-bar.cjs +190 -0
- package/build/legacy/components/progress/progress-bar.cjs.map +1 -0
- package/build/legacy/components/progress/progress-bar.d.cts +4 -0
- package/build/legacy/components/radio/index.cjs +136 -64
- package/build/legacy/components/radio/index.cjs.map +1 -1
- package/build/legacy/components/radio/index.d.cts +7 -0
- package/build/legacy/components/radio/parts.cjs +136 -64
- package/build/legacy/components/radio/parts.cjs.map +1 -1
- package/build/legacy/components/radio/primitives.cjs +136 -64
- package/build/legacy/components/radio/primitives.cjs.map +1 -1
- package/build/legacy/components/radio/primitives.d.cts +7 -0
- package/build/legacy/components/radio/radio.cjs +136 -33
- package/build/legacy/components/radio/radio.cjs.map +1 -1
- package/build/legacy/components/rating/index.cjs +131 -50
- package/build/legacy/components/rating/index.cjs.map +1 -1
- package/build/legacy/components/rating/index.d.cts +7 -0
- package/build/legacy/components/rating/parts.cjs +130 -49
- package/build/legacy/components/rating/parts.cjs.map +1 -1
- package/build/legacy/components/rating/primitives.cjs +130 -49
- package/build/legacy/components/rating/primitives.cjs.map +1 -1
- package/build/legacy/components/rating/primitives.d.cts +7 -0
- package/build/legacy/components/rating/rating.cjs +131 -50
- package/build/legacy/components/rating/rating.cjs.map +1 -1
- package/build/legacy/components/select/index.cjs +175 -121
- package/build/legacy/components/select/index.cjs.map +1 -1
- package/build/legacy/components/select/index.d.cts +17 -3
- package/build/legacy/components/select/option-group.cjs +157 -18
- package/build/legacy/components/select/option-group.cjs.map +1 -1
- package/build/legacy/components/select/option.cjs +237 -0
- package/build/legacy/components/select/option.cjs.map +1 -0
- package/build/legacy/components/select/option.d.cts +2 -0
- package/build/legacy/components/select/parts.cjs +154 -95
- package/build/legacy/components/select/parts.cjs.map +1 -1
- package/build/legacy/components/select/primitives.cjs +154 -95
- package/build/legacy/components/select/primitives.cjs.map +1 -1
- package/build/legacy/components/select/primitives.d.cts +16 -1
- package/build/legacy/components/select/select.cjs +171 -126
- package/build/legacy/components/select/select.cjs.map +1 -1
- package/build/legacy/components/select/select.d.cts +0 -3
- package/build/legacy/components/show/index.cjs +43 -0
- package/build/legacy/components/show/index.cjs.map +1 -0
- package/build/legacy/components/show/index.d.cts +2 -0
- package/build/legacy/components/show/show.cjs +41 -0
- package/build/legacy/components/show/show.cjs.map +1 -0
- package/build/legacy/components/show/show.d.cts +2 -0
- package/build/legacy/components/spinner/index.cjs +107 -0
- package/build/legacy/components/spinner/index.cjs.map +1 -0
- package/build/legacy/components/spinner/index.d.cts +2 -0
- package/build/legacy/components/spinner/spinner.cjs +105 -0
- package/build/legacy/components/spinner/spinner.cjs.map +1 -0
- package/build/legacy/components/spinner/spinner.d.cts +2 -0
- package/build/legacy/components/switch/index.cjs +127 -30
- package/build/legacy/components/switch/index.cjs.map +1 -1
- package/build/legacy/components/switch/index.d.cts +5 -1
- package/build/legacy/components/switch/parts.cjs +127 -30
- package/build/legacy/components/switch/parts.cjs.map +1 -1
- package/build/legacy/components/switch/primitives.cjs +127 -30
- package/build/legacy/components/switch/primitives.cjs.map +1 -1
- package/build/legacy/components/switch/primitives.d.cts +5 -0
- package/build/legacy/components/switch/switch.cjs +127 -30
- package/build/legacy/components/switch/switch.cjs.map +1 -1
- package/build/legacy/components/switch/switch.d.cts +0 -1
- package/build/legacy/components/table/index.cjs +173 -120
- package/build/legacy/components/table/index.cjs.map +1 -1
- package/build/legacy/components/table/index.d.cts +11 -0
- package/build/legacy/components/table/parts.cjs +172 -119
- package/build/legacy/components/table/parts.cjs.map +1 -1
- package/build/legacy/components/table/primitives.cjs +172 -119
- package/build/legacy/components/table/primitives.cjs.map +1 -1
- package/build/legacy/components/table/primitives.d.cts +10 -0
- package/build/legacy/components/table/table.cjs +173 -120
- package/build/legacy/components/table/table.cjs.map +1 -1
- package/build/legacy/components/table/table.d.cts +1 -0
- package/build/legacy/components/tabs/index.cjs +125 -31
- package/build/legacy/components/tabs/index.cjs.map +1 -1
- package/build/legacy/components/tabs/index.d.cts +5 -0
- package/build/legacy/components/tabs/parts.cjs +125 -31
- package/build/legacy/components/tabs/parts.cjs.map +1 -1
- package/build/legacy/components/tabs/primitives.cjs +125 -31
- package/build/legacy/components/tabs/primitives.cjs.map +1 -1
- package/build/legacy/components/tabs/primitives.d.cts +5 -0
- package/build/legacy/components/tabs/tabs.cjs +125 -31
- package/build/legacy/components/tabs/tabs.cjs.map +1 -1
- package/build/legacy/components/tag/index.cjs +234 -0
- package/build/legacy/components/tag/index.cjs.map +1 -0
- package/build/legacy/components/tag/index.d.cts +4 -0
- package/build/legacy/components/tag/tag.cjs +233 -0
- package/build/legacy/components/tag/tag.cjs.map +1 -0
- package/build/legacy/components/tag/tag.d.cts +4 -0
- package/build/legacy/components/text/index.cjs +55 -0
- package/build/legacy/components/text/index.cjs.map +1 -0
- package/build/legacy/components/text/index.d.cts +4 -0
- package/build/legacy/components/text/text.cjs +53 -0
- package/build/legacy/components/text/text.cjs.map +1 -0
- package/build/legacy/components/text/text.d.cts +4 -0
- package/build/legacy/components/theme/index.cjs +185 -0
- package/build/legacy/components/theme/index.cjs.map +1 -0
- package/build/legacy/components/theme/index.d.cts +2 -0
- package/build/legacy/components/theme/theme.cjs +185 -0
- package/build/legacy/components/theme/theme.cjs.map +1 -0
- package/build/legacy/components/theme/theme.d.cts +2 -0
- package/build/legacy/components/toggle/index.cjs +117 -5
- package/build/legacy/components/toggle/index.cjs.map +1 -1
- package/build/legacy/components/toggle/index.d.cts +2 -0
- package/build/legacy/components/toggle/parts.cjs +117 -5
- package/build/legacy/components/toggle/parts.cjs.map +1 -1
- package/build/legacy/components/toggle/primitives.cjs +117 -5
- package/build/legacy/components/toggle/primitives.cjs.map +1 -1
- package/build/legacy/components/toggle/primitives.d.cts +2 -0
- package/build/legacy/components/tooltip/index.cjs +213 -0
- package/build/legacy/components/tooltip/index.cjs.map +1 -0
- package/build/legacy/components/tooltip/index.d.cts +15 -0
- package/build/legacy/components/tooltip/parts.cjs +183 -0
- package/build/legacy/components/tooltip/parts.cjs.map +1 -0
- package/build/legacy/components/tooltip/parts.d.cts +1 -0
- package/build/legacy/components/tooltip/primitives.cjs +181 -0
- package/build/legacy/components/tooltip/primitives.cjs.map +1 -0
- package/build/legacy/components/tooltip/primitives.d.cts +12 -0
- package/build/legacy/components/tooltip/tooltip.cjs +199 -0
- package/build/legacy/components/tooltip/tooltip.cjs.map +1 -0
- package/build/legacy/components/tooltip/tooltip.d.cts +2 -0
- package/build/legacy/context/confirm-modal.cjs +171 -130
- package/build/legacy/context/confirm-modal.cjs.map +1 -1
- package/build/legacy/context/field.cjs +161 -17
- package/build/legacy/context/field.cjs.map +1 -1
- package/build/legacy/context/prompt-modal.cjs +275 -208
- package/build/legacy/context/prompt-modal.cjs.map +1 -1
- package/build/legacy/hooks/useRootColors.cjs +2 -2
- package/build/legacy/hooks/useRootColors.cjs.map +1 -1
- package/build/legacy/index.cjs +1499 -1974
- package/build/legacy/index.cjs.map +1 -1
- package/build/legacy/index.d.cts +213 -17
- package/build/legacy/system/factory.cjs +167 -0
- package/build/legacy/system/factory.cjs.map +1 -0
- package/build/legacy/system/factory.d.cts +1 -0
- package/build/legacy/system/index.cjs +170 -0
- package/build/legacy/system/index.cjs.map +1 -0
- package/build/legacy/system/index.d.cts +12 -0
- package/build/legacy/system/primitive-factory.cjs +135 -0
- package/build/legacy/system/primitive-factory.cjs.map +1 -0
- package/build/legacy/system/primitive-factory.d.cts +1 -0
- package/build/legacy/system/types.cjs +19 -0
- package/build/legacy/system/types.cjs.map +1 -0
- package/build/legacy/system/types.d.cts +10 -0
- package/build/modern/_tsup-dts-rollup.d.ts +2429 -790
- package/build/modern/chunk-24FZWSGV.js +18 -0
- package/build/modern/chunk-24FZWSGV.js.map +1 -0
- package/build/modern/chunk-26VVDQAY.js +34 -0
- package/build/modern/chunk-26VVDQAY.js.map +1 -0
- package/build/modern/chunk-34U4QQ3I.js +1 -0
- package/build/modern/chunk-3RPBRD5W.js +1 -0
- package/build/modern/chunk-3WTLKTIL.js +39 -0
- package/build/modern/chunk-3WTLKTIL.js.map +1 -0
- package/build/modern/chunk-3XA6Y4S4.js +49 -0
- package/build/modern/chunk-3XA6Y4S4.js.map +1 -0
- package/build/modern/chunk-4FRIJ5VV.js +14 -0
- package/build/modern/chunk-4FRIJ5VV.js.map +1 -0
- package/build/modern/chunk-4LBGIGNJ.js +15 -0
- package/build/modern/chunk-4NW7Q2VS.js +21 -0
- package/build/modern/chunk-4TQO7LCB.js +44 -0
- package/build/modern/chunk-4TQO7LCB.js.map +1 -0
- package/build/modern/chunk-4XTYDXVV.js +48 -0
- package/build/modern/chunk-4XTYDXVV.js.map +1 -0
- package/build/modern/chunk-56YCKMC2.js +21 -0
- package/build/modern/chunk-5CG7URT6.js +19 -0
- package/build/modern/chunk-5CG7URT6.js.map +1 -0
- package/build/modern/chunk-5IMS6G4G.js +1 -0
- package/build/modern/chunk-6LH6MOXD.js +25 -0
- package/build/modern/chunk-6QWS7HII.js +47 -0
- package/build/modern/chunk-6W6QY3XG.js +23 -0
- package/build/modern/chunk-6W6QY3XG.js.map +1 -0
- package/build/modern/chunk-75VWN4C7.js +81 -0
- package/build/modern/chunk-75VWN4C7.js.map +1 -0
- package/build/modern/chunk-7F4AOCTU.js +22 -0
- package/build/modern/chunk-7F4AOCTU.js.map +1 -0
- package/build/modern/chunk-7PTAPZOO.js +26 -0
- package/build/modern/chunk-7PTAPZOO.js.map +1 -0
- package/build/modern/chunk-AAWEAXIA.js +15 -0
- package/build/modern/chunk-APDQJ7MW.js +41 -0
- package/build/modern/chunk-APDQJ7MW.js.map +1 -0
- package/build/modern/chunk-B4GBNIU7.js +1 -0
- package/build/modern/chunk-B4X5H2QZ.js +46 -0
- package/build/modern/chunk-B4X5H2QZ.js.map +1 -0
- package/build/modern/chunk-BCN2E47W.js +41 -0
- package/build/modern/chunk-BCN2E47W.js.map +1 -0
- package/build/modern/chunk-BF2IDJMZ.js +37 -0
- package/build/modern/chunk-BF2IDJMZ.js.map +1 -0
- package/build/modern/chunk-BFV463NP.js +27 -0
- package/build/modern/chunk-C3FEINCR.js +12 -0
- package/build/modern/chunk-C3FEINCR.js.map +1 -0
- package/build/modern/chunk-CIKCQHPC.js +20 -0
- package/build/modern/chunk-CIKCQHPC.js.map +1 -0
- package/build/modern/chunk-CKLLERV7.js +21 -0
- package/build/modern/chunk-D2TQPEZQ.js +13 -0
- package/build/modern/chunk-D2TQPEZQ.js.map +1 -0
- package/build/modern/chunk-DJCPF4JA.js +77 -0
- package/build/modern/chunk-DJCPF4JA.js.map +1 -0
- package/build/modern/chunk-DUCW5X4Y.js +23 -0
- package/build/modern/chunk-DUFKXBQT.js +22 -0
- package/build/modern/chunk-DWKGFNTK.js +15 -0
- package/build/modern/chunk-E2AW2N7Q.js +33 -0
- package/build/modern/chunk-EALORWDQ.js +126 -0
- package/build/modern/chunk-EALORWDQ.js.map +1 -0
- package/build/modern/chunk-EPIO6H3A.js +18 -0
- package/build/modern/chunk-EZTDGHEX.js +1 -0
- package/build/modern/chunk-F45WBSRP.js +215 -0
- package/build/modern/chunk-F45WBSRP.js.map +1 -0
- package/build/modern/chunk-FRT3VY4M.js +22 -0
- package/build/modern/chunk-FRT3VY4M.js.map +1 -0
- package/build/modern/chunk-G4CDF7LY.js +15 -0
- package/build/modern/chunk-G4CDF7LY.js.map +1 -0
- package/build/modern/chunk-GPGFQNJ6.js +21 -0
- package/build/modern/chunk-GZ6T3352.js +109 -0
- package/build/modern/chunk-GZ6T3352.js.map +1 -0
- package/build/modern/chunk-GZXW3JIW.js +41 -0
- package/build/modern/chunk-HBS3B3SE.js +33 -0
- package/build/modern/chunk-HHY26N7O.js +20 -0
- package/build/modern/chunk-HHY26N7O.js.map +1 -0
- package/build/modern/chunk-IX7BYPTS.js +29 -0
- package/build/modern/chunk-IX7BYPTS.js.map +1 -0
- package/build/modern/chunk-JFWPJXFF.js +33 -0
- package/build/modern/chunk-JFWPJXFF.js.map +1 -0
- package/build/modern/chunk-JHCKXQEK.js +27 -0
- package/build/modern/chunk-JHCKXQEK.js.map +1 -0
- package/build/modern/chunk-JIXUOTH4.js +1 -0
- package/build/modern/chunk-JLMHKTPI.js +27 -0
- package/build/modern/chunk-JLMHKTPI.js.map +1 -0
- package/build/modern/chunk-JPWFSCTC.js +80 -0
- package/build/modern/chunk-JPWFSCTC.js.map +1 -0
- package/build/modern/chunk-JQNVN6R6.js +42 -0
- package/build/modern/chunk-JQNVN6R6.js.map +1 -0
- package/build/modern/chunk-JVWOAPWY.js +70 -0
- package/build/modern/chunk-JVWOAPWY.js.map +1 -0
- package/build/modern/chunk-JYWTA3OZ.js +18 -0
- package/build/modern/chunk-JYWTA3OZ.js.map +1 -0
- package/build/modern/chunk-KIKGNZ2H.js +86 -0
- package/build/modern/chunk-KIKGNZ2H.js.map +1 -0
- package/build/modern/chunk-KJYL3RJ2.js +42 -0
- package/build/modern/chunk-KJYL3RJ2.js.map +1 -0
- package/build/modern/chunk-KOVD3FG7.js +87 -0
- package/build/modern/chunk-KOVD3FG7.js.map +1 -0
- package/build/modern/chunk-KRTXDJ4S.js +43 -0
- package/build/modern/chunk-KRTXDJ4S.js.map +1 -0
- package/build/modern/chunk-KTTGGO72.js +35 -0
- package/build/modern/chunk-KTTGGO72.js.map +1 -0
- package/build/modern/chunk-KUR42DQQ.js +25 -0
- package/build/modern/chunk-KUTKPR3G.js +22 -0
- package/build/modern/chunk-KUTKPR3G.js.map +1 -0
- package/build/modern/chunk-L3V6I7YH.js +35 -0
- package/build/modern/chunk-L3V6I7YH.js.map +1 -0
- package/build/modern/chunk-L654KDXH.js +37 -0
- package/build/modern/chunk-L654KDXH.js.map +1 -0
- package/build/modern/chunk-LRHHDORZ.js +1 -0
- package/build/modern/chunk-LWOV3N62.js +31 -0
- package/build/modern/chunk-LWOV3N62.js.map +1 -0
- package/build/modern/chunk-MBZHMWPR.js +94 -0
- package/build/modern/chunk-MBZHMWPR.js.map +1 -0
- package/build/modern/chunk-MS7LB3BL.js +86 -0
- package/build/modern/chunk-MS7LB3BL.js.map +1 -0
- package/build/modern/chunk-MW2BVQ5A.js +64 -0
- package/build/modern/chunk-MW2BVQ5A.js.map +1 -0
- package/build/modern/chunk-NAPG6OWJ.js +41 -0
- package/build/modern/chunk-NAPG6OWJ.js.map +1 -0
- package/build/modern/chunk-NE6TEVH2.js +67 -0
- package/build/modern/chunk-NE6TEVH2.js.map +1 -0
- package/build/modern/chunk-NUXMADXV.js +17 -0
- package/build/modern/chunk-NUXMADXV.js.map +1 -0
- package/build/modern/chunk-NZBKI6AF.js +42 -0
- package/build/modern/chunk-NZBKI6AF.js.map +1 -0
- package/build/modern/chunk-NZP3XQNQ.js +1 -0
- package/build/modern/chunk-NZZS2A53.js +37 -0
- package/build/modern/chunk-OCK4XVNE.js +24 -0
- package/build/modern/chunk-OCK4XVNE.js.map +1 -0
- package/build/modern/chunk-OKU736EK.js +17 -0
- package/build/modern/chunk-OQN4HVLQ.js +38 -0
- package/build/modern/chunk-P3EIOH5D.js +30 -0
- package/build/modern/chunk-P3EIOH5D.js.map +1 -0
- package/build/modern/chunk-P4GJKPNL.js +21 -0
- package/build/modern/chunk-PAQ6YQ7Y.js +1 -0
- package/build/modern/chunk-PLPYBCZQ.js +8 -0
- package/build/modern/chunk-PLPYBCZQ.js.map +1 -0
- package/build/modern/chunk-Q2MJ7JRM.js +22 -0
- package/build/modern/chunk-Q4CS3AKY.js +1 -0
- package/build/modern/chunk-QHV4IK52.js +27 -0
- package/build/modern/chunk-QHV4IK52.js.map +1 -0
- package/build/modern/chunk-QTV75ATT.js +12 -0
- package/build/modern/chunk-QTV75ATT.js.map +1 -0
- package/build/modern/chunk-QULAH262.js +27 -0
- package/build/modern/chunk-QULAH262.js.map +1 -0
- package/build/modern/chunk-QUOJS5LL.js +81 -0
- package/build/modern/chunk-QUOJS5LL.js.map +1 -0
- package/build/modern/chunk-QZ5BIUMH.js +226 -0
- package/build/modern/chunk-QZ5BIUMH.js.map +1 -0
- package/build/modern/chunk-RIBBTTT4.js +36 -0
- package/build/modern/chunk-RIBBTTT4.js.map +1 -0
- package/build/modern/chunk-RJGEKVHZ.js +59 -0
- package/build/modern/chunk-RMEVOJ2E.js +1 -0
- package/build/modern/chunk-SFQIENJB.js +40 -0
- package/build/modern/chunk-SFQIENJB.js.map +1 -0
- package/build/modern/chunk-SQRFRBDB.js +48 -0
- package/build/modern/chunk-SQRFRBDB.js.map +1 -0
- package/build/modern/chunk-T5TX5YHC.js +25 -0
- package/build/modern/chunk-T5TX5YHC.js.map +1 -0
- package/build/modern/chunk-TCACYLCL.js +40 -0
- package/build/modern/chunk-TCACYLCL.js.map +1 -0
- package/build/modern/chunk-TGCKJHEE.js +52 -0
- package/build/modern/chunk-TGCKJHEE.js.map +1 -0
- package/build/modern/chunk-TLRRDNS3.js +1 -0
- package/build/modern/chunk-TOXQSWPN.js +49 -0
- package/build/modern/chunk-TOXQSWPN.js.map +1 -0
- package/build/modern/chunk-TQB6U3JH.js +24 -0
- package/build/modern/chunk-TQB6U3JH.js.map +1 -0
- package/build/modern/chunk-TTWDHJ3J.js +38 -0
- package/build/modern/chunk-TTWDHJ3J.js.map +1 -0
- package/build/modern/chunk-TVSVKDWV.js +14 -0
- package/build/modern/chunk-TVSVKDWV.js.map +1 -0
- package/build/modern/chunk-TXV55LWL.js +23 -0
- package/build/modern/chunk-TXV55LWL.js.map +1 -0
- package/build/modern/chunk-ULKVI2EH.js +40 -0
- package/build/modern/chunk-ULKVI2EH.js.map +1 -0
- package/build/modern/chunk-UWNLOY27.js +22 -0
- package/build/modern/chunk-UWNLOY27.js.map +1 -0
- package/build/modern/chunk-V3LIZS3V.js +62 -0
- package/build/modern/chunk-V3LIZS3V.js.map +1 -0
- package/build/modern/chunk-VB5XZZKE.js +23 -0
- package/build/modern/chunk-VKL3CMI3.js +19 -0
- package/build/modern/chunk-VKL3CMI3.js.map +1 -0
- package/build/modern/chunk-VOVGPV7G.js +31 -0
- package/build/modern/chunk-VOVGPV7G.js.map +1 -0
- package/build/modern/chunk-VPD3PPBW.js +41 -0
- package/build/modern/chunk-VPD3PPBW.js.map +1 -0
- package/build/modern/chunk-VQ3NO6IC.js +36 -0
- package/build/modern/chunk-VQ3NO6IC.js.map +1 -0
- package/build/modern/chunk-VT6DJ2VM.js +1 -0
- package/build/modern/chunk-WC5DERNW.js +43 -0
- package/build/modern/chunk-WC5DERNW.js.map +1 -0
- package/build/modern/chunk-WC75SKFH.js +21 -0
- package/build/modern/chunk-WJHG3ZFR.js +35 -0
- package/build/modern/chunk-WJHG3ZFR.js.map +1 -0
- package/build/modern/chunk-WJW4FF4J.js +1 -0
- package/build/modern/chunk-WN2WTSWG.js +31 -0
- package/build/modern/chunk-WRKDPEIM.js +182 -0
- package/build/modern/chunk-WRKDPEIM.js.map +1 -0
- package/build/modern/chunk-X5LBBTCV.js +1 -0
- package/build/modern/chunk-X627G6B3.js +22 -0
- package/build/modern/chunk-X627G6B3.js.map +1 -0
- package/build/modern/chunk-X7JS25IL.js +19 -0
- package/build/modern/chunk-XDMGFB6Q.js +1 -0
- package/build/modern/chunk-XNER5INS.js +35 -0
- package/build/modern/chunk-XNER5INS.js.map +1 -0
- package/build/modern/chunk-YJR4NLDB.js +14 -0
- package/build/modern/chunk-YJR4NLDB.js.map +1 -0
- package/build/modern/chunk-ZLHQYCL3.js +45 -0
- package/build/modern/chunk-ZLHQYCL3.js.map +1 -0
- package/build/modern/components/accordion/index.d.ts +5 -0
- package/build/modern/components/accordion/index.js +9 -5
- package/build/modern/components/accordion/item-group.js +9 -5
- package/build/modern/components/accordion/item-indicator.js +6 -3
- package/build/modern/components/accordion/parts.js +5 -2
- package/build/modern/components/accordion/primitives.d.ts +5 -0
- package/build/modern/components/accordion/primitives.js +4 -1
- package/build/modern/components/admonition/admonition.js +12 -8
- package/build/modern/components/admonition/index.d.ts +5 -0
- package/build/modern/components/admonition/index.js +12 -8
- package/build/modern/components/admonition/match-avatar.js +9 -5
- package/build/modern/components/admonition/parts.js +5 -2
- package/build/modern/components/admonition/primitives.d.ts +5 -0
- package/build/modern/components/admonition/primitives.js +4 -1
- package/build/modern/components/avatar/avatar.js +8 -4
- package/build/modern/components/avatar/index.d.ts +3 -0
- package/build/modern/components/avatar/index.js +8 -4
- package/build/modern/components/avatar/parts.js +5 -2
- package/build/modern/components/avatar/primitives.d.ts +3 -0
- package/build/modern/components/avatar/primitives.js +4 -1
- package/build/modern/components/button/button.js +9 -3
- package/build/modern/components/button/index.js +10 -4
- package/build/modern/components/button/parts.js +10 -4
- package/build/modern/components/button/primitives.d.ts +1 -0
- package/build/modern/components/button/primitives.js +10 -0
- package/build/modern/components/checkbox/checkbox-icon.js +8 -4
- package/build/modern/components/checkbox/checkbox.js +11 -6
- package/build/modern/components/checkbox/index.d.ts +6 -0
- package/build/modern/components/checkbox/index.js +11 -6
- package/build/modern/components/checkbox/parts.js +5 -2
- package/build/modern/components/checkbox/primitives.d.ts +6 -0
- package/build/modern/components/checkbox/primitives.js +4 -1
- package/build/modern/components/circular-progress/circular-progress.d.ts +2 -0
- package/build/modern/components/circular-progress/circular-progress.js +11 -0
- package/build/modern/components/circular-progress/circular-progress.js.map +1 -0
- package/build/modern/components/circular-progress/index.d.ts +16 -0
- package/build/modern/components/circular-progress/index.js +27 -0
- package/build/modern/components/circular-progress/index.js.map +1 -0
- package/build/modern/components/circular-progress/primitives.d.ts +14 -0
- package/build/modern/components/circular-progress/primitives.js +22 -0
- package/build/modern/components/circular-progress/primitives.js.map +1 -0
- package/build/modern/components/combobox/combobox.js +12 -5
- package/build/modern/components/combobox/index.d.ts +14 -0
- package/build/modern/components/combobox/index.js +16 -9
- package/build/modern/components/combobox/item-group.js +6 -3
- package/build/modern/components/combobox/item.js +6 -3
- package/build/modern/components/combobox/parts.js +5 -2
- package/build/modern/components/combobox/primitives.d.ts +14 -0
- package/build/modern/components/combobox/primitives.js +4 -1
- package/build/modern/components/combobox/use-stateful-collection.js +5 -2
- package/build/modern/components/cta-dialog/index.js +25 -15
- package/build/modern/components/cta-dialog/provider.js +25 -15
- package/build/modern/components/cta-dialog/trigger-item.js +10 -4
- package/build/modern/components/date-picker/calendar.d.ts +1 -0
- package/build/modern/components/date-picker/calendar.js +22 -13
- package/build/modern/components/date-picker/content.js +8 -4
- package/build/modern/components/date-picker/date-picker.js +6 -3
- package/build/modern/components/date-picker/day-view.js +16 -8
- package/build/modern/components/date-picker/index.d.ts +25 -0
- package/build/modern/components/date-picker/index.js +26 -17
- package/build/modern/components/date-picker/input.js +10 -5
- package/build/modern/components/date-picker/month-view.js +16 -8
- package/build/modern/components/date-picker/parts.js +5 -2
- package/build/modern/components/date-picker/primitives.d.ts +24 -0
- package/build/modern/components/date-picker/primitives.js +4 -1
- package/build/modern/components/date-picker/range-input.js +10 -5
- package/build/modern/components/date-picker/trigger.js +9 -4
- package/build/modern/components/date-picker/view-control-group.js +15 -7
- package/build/modern/components/date-picker/year-view.js +16 -8
- package/build/modern/components/deprecated/Label.js +11 -6
- package/build/modern/components/deprecated/Legend.js +3 -2
- package/build/modern/components/deprecated/NavMenuLink.js +3 -2
- package/build/modern/components/deprecated/NavMenuList.js +3 -2
- package/build/modern/components/deprecated/NavMenuTrigger.js +4 -3
- package/build/modern/components/deprecated/Notification.js +3 -3
- package/build/modern/components/deprecated/Notification.js.map +1 -1
- package/build/modern/components/deprecated/NotificationDescription.d.ts +1 -1
- package/build/modern/components/deprecated/NotificationHeading.d.ts +1 -1
- package/build/modern/components/deprecated/aria-helpers/nav-menu.aria.d.ts +2 -0
- package/build/modern/components/deprecated/aria-helpers/nav-menu.aria.js +7 -0
- package/build/modern/components/deprecated/aria-helpers/nav-menu.aria.js.map +1 -0
- package/build/modern/components/deprecated/aria-helpers/trap-focus.aria.d.ts +1 -0
- package/build/modern/components/deprecated/aria-helpers/trap-focus.aria.js +7 -0
- package/build/modern/components/deprecated/aria-helpers/trap-focus.aria.js.map +1 -0
- package/build/modern/components/dialog/close-icon-trigger.js +8 -3
- package/build/modern/components/dialog/dialog.js +7 -3
- package/build/modern/components/dialog/index.d.ts +9 -1
- package/build/modern/components/dialog/index.js +12 -6
- package/build/modern/components/dialog/parts.js +5 -2
- package/build/modern/components/dialog/primitives.d.ts +9 -1
- package/build/modern/components/dialog/primitives.js +4 -1
- package/build/modern/components/feature-flag/feature-flag.d.ts +2 -0
- package/build/modern/components/feature-flag/feature-flag.js +11 -0
- package/build/modern/components/feature-flag/feature-flag.js.map +1 -0
- package/build/modern/components/feature-flag/index.d.ts +2 -0
- package/build/modern/components/feature-flag/index.js +11 -0
- package/build/modern/components/feature-flag/index.js.map +1 -0
- package/build/modern/components/field/error-text.d.ts +1 -0
- package/build/modern/components/field/error-text.js +7 -0
- package/build/modern/components/field/error-text.js.map +1 -0
- package/build/modern/components/field/field.js +9 -4
- package/build/modern/components/field/helper-text.js +8 -2
- package/build/modern/components/field/index.d.ts +11 -3
- package/build/modern/components/field/index.js +14 -7
- package/build/modern/components/field/input.d.ts +2 -0
- package/build/modern/components/field/input.js +16 -0
- package/build/modern/components/field/input.js.map +1 -0
- package/build/modern/components/field/parts.js +8 -2
- package/build/modern/components/field/primitives.d.ts +9 -2
- package/build/modern/components/field/primitives.js +9 -1
- package/build/modern/components/fieldset/fieldset.js +6 -3
- package/build/modern/components/fieldset/index.d.ts +4 -0
- package/build/modern/components/fieldset/index.js +6 -3
- package/build/modern/components/fieldset/parts.js +5 -2
- package/build/modern/components/fieldset/primitives.d.ts +4 -0
- package/build/modern/components/fieldset/primitives.js +4 -1
- package/build/modern/components/file-upload/file-status.d.ts +6 -0
- package/build/modern/components/file-upload/file-status.js +35 -0
- package/build/modern/components/file-upload/file-status.js.map +1 -0
- package/build/modern/components/file-upload/file-uploader.d.ts +2 -0
- package/build/modern/components/file-upload/file-uploader.js +19 -0
- package/build/modern/components/file-upload/file-uploader.js.map +1 -0
- package/build/modern/components/file-upload/index.d.ts +8 -0
- package/build/modern/components/file-upload/index.js +39 -0
- package/build/modern/components/file-upload/index.js.map +1 -0
- package/build/modern/components/for/for.d.ts +2 -0
- package/build/modern/components/for/for.js +7 -0
- package/build/modern/components/for/for.js.map +1 -0
- package/build/modern/components/for/index.d.ts +2 -0
- package/build/modern/components/for/index.js +8 -0
- package/build/modern/components/for/index.js.map +1 -0
- package/build/modern/components/icon-button/button.d.ts +2 -0
- package/build/modern/components/icon-button/button.js +11 -0
- package/build/modern/components/icon-button/button.js.map +1 -0
- package/build/modern/components/icon-button/index.d.ts +4 -0
- package/build/modern/components/icon-button/index.js +15 -0
- package/build/modern/components/icon-button/index.js.map +1 -0
- package/build/modern/components/icon-button/primitives.d.ts +2 -0
- package/build/modern/components/icon-button/primitives.js +10 -0
- package/build/modern/components/icon-button/primitives.js.map +1 -0
- package/build/modern/components/menu/index.d.ts +27 -0
- package/build/modern/components/menu/index.js +45 -0
- package/build/modern/components/menu/index.js.map +1 -0
- package/build/modern/components/menu/menu.d.ts +7 -0
- package/build/modern/components/menu/menu.js +23 -0
- package/build/modern/components/menu/menu.js.map +1 -0
- package/build/modern/components/menu/primitives.d.ts +20 -0
- package/build/modern/components/menu/primitives.js +28 -0
- package/build/modern/components/menu/primitives.js.map +1 -0
- package/build/modern/components/notifications/center.js +14 -8
- package/build/modern/components/notifications/close-trigger.js +6 -3
- package/build/modern/components/notifications/index.d.ts +6 -0
- package/build/modern/components/notifications/index.js +15 -9
- package/build/modern/components/notifications/match-icon.js +3 -2
- package/build/modern/components/notifications/parts.js +5 -2
- package/build/modern/components/notifications/primitives.d.ts +6 -0
- package/build/modern/components/notifications/primitives.js +4 -1
- package/build/modern/components/portal/index.d.ts +2 -0
- package/build/modern/components/portal/index.js +8 -0
- package/build/modern/components/portal/index.js.map +1 -0
- package/build/modern/components/portal/portal.d.ts +2 -0
- package/build/modern/components/portal/portal.js +7 -0
- package/build/modern/components/portal/portal.js.map +1 -0
- package/build/modern/components/progress/index.d.ts +8 -0
- package/build/modern/components/progress/index.js +17 -0
- package/build/modern/components/progress/index.js.map +1 -0
- package/build/modern/components/progress/primitives.d.ts +4 -0
- package/build/modern/components/progress/primitives.js +12 -0
- package/build/modern/components/progress/primitives.js.map +1 -0
- package/build/modern/components/progress/progress-bar.d.ts +4 -0
- package/build/modern/components/progress/progress-bar.js +11 -0
- package/build/modern/components/progress/progress-bar.js.map +1 -0
- package/build/modern/components/radio/index.d.ts +7 -0
- package/build/modern/components/radio/index.js +6 -3
- package/build/modern/components/radio/parts.js +5 -2
- package/build/modern/components/radio/primitives.d.ts +7 -0
- package/build/modern/components/radio/primitives.js +4 -1
- package/build/modern/components/radio/radio.js +5 -2
- package/build/modern/components/rating/index.d.ts +7 -0
- package/build/modern/components/rating/index.js +8 -4
- package/build/modern/components/rating/parts.js +5 -2
- package/build/modern/components/rating/primitives.d.ts +7 -0
- package/build/modern/components/rating/primitives.js +4 -1
- package/build/modern/components/rating/rating.js +8 -4
- package/build/modern/components/select/index.d.ts +17 -3
- package/build/modern/components/select/index.js +16 -9
- package/build/modern/components/select/option-group.js +5 -2
- package/build/modern/components/select/option.d.ts +2 -0
- package/build/modern/components/select/option.js +14 -0
- package/build/modern/components/select/option.js.map +1 -0
- package/build/modern/components/select/parts.js +5 -2
- package/build/modern/components/select/primitives.d.ts +16 -1
- package/build/modern/components/select/primitives.js +4 -1
- package/build/modern/components/select/select.d.ts +0 -3
- package/build/modern/components/select/select.js +10 -7
- package/build/modern/components/show/index.d.ts +2 -0
- package/build/modern/components/show/index.js +8 -0
- package/build/modern/components/show/index.js.map +1 -0
- package/build/modern/components/show/show.d.ts +2 -0
- package/build/modern/components/show/show.js +7 -0
- package/build/modern/components/show/show.js.map +1 -0
- package/build/modern/components/spinner/index.d.ts +2 -0
- package/build/modern/components/spinner/index.js +8 -0
- package/build/modern/components/spinner/index.js.map +1 -0
- package/build/modern/components/spinner/spinner.d.ts +2 -0
- package/build/modern/components/spinner/spinner.js +7 -0
- package/build/modern/components/spinner/spinner.js.map +1 -0
- package/build/modern/components/switch/index.d.ts +5 -1
- package/build/modern/components/switch/index.js +7 -4
- package/build/modern/components/switch/parts.js +5 -2
- package/build/modern/components/switch/primitives.d.ts +5 -0
- package/build/modern/components/switch/primitives.js +4 -1
- package/build/modern/components/switch/switch.d.ts +0 -1
- package/build/modern/components/switch/switch.js +6 -3
- package/build/modern/components/table/index.d.ts +11 -0
- package/build/modern/components/table/index.js +8 -4
- package/build/modern/components/table/parts.js +5 -2
- package/build/modern/components/table/primitives.d.ts +10 -0
- package/build/modern/components/table/primitives.js +4 -1
- package/build/modern/components/table/table.d.ts +1 -0
- package/build/modern/components/table/table.js +7 -3
- package/build/modern/components/tabs/index.d.ts +5 -0
- package/build/modern/components/tabs/index.js +6 -3
- package/build/modern/components/tabs/parts.js +5 -2
- package/build/modern/components/tabs/primitives.d.ts +5 -0
- package/build/modern/components/tabs/primitives.js +4 -1
- package/build/modern/components/tabs/tabs.js +6 -3
- package/build/modern/components/tag/index.d.ts +4 -0
- package/build/modern/components/tag/index.js +17 -0
- package/build/modern/components/tag/index.js.map +1 -0
- package/build/modern/components/tag/tag.d.ts +4 -0
- package/build/modern/components/tag/tag.js +17 -0
- package/build/modern/components/tag/tag.js.map +1 -0
- package/build/modern/components/text/index.d.ts +4 -0
- package/build/modern/components/text/index.js +8 -0
- package/build/modern/components/text/index.js.map +1 -0
- package/build/modern/components/text/text.d.ts +4 -0
- package/build/modern/components/text/text.js +7 -0
- package/build/modern/components/text/text.js.map +1 -0
- package/build/modern/components/theme/index.d.ts +2 -0
- package/build/modern/components/theme/index.js +11 -0
- package/build/modern/components/theme/index.js.map +1 -0
- package/build/modern/components/theme/theme.d.ts +2 -0
- package/build/modern/components/theme/theme.js +10 -0
- package/build/modern/components/theme/theme.js.map +1 -0
- package/build/modern/components/toggle/index.d.ts +2 -0
- package/build/modern/components/toggle/index.js +5 -2
- package/build/modern/components/toggle/parts.js +5 -2
- package/build/modern/components/toggle/primitives.d.ts +2 -0
- package/build/modern/components/toggle/primitives.js +4 -1
- package/build/modern/components/tooltip/index.d.ts +15 -0
- package/build/modern/components/tooltip/index.js +29 -0
- package/build/modern/components/tooltip/index.js.map +1 -0
- package/build/modern/components/tooltip/parts.d.ts +1 -0
- package/build/modern/components/tooltip/parts.js +11 -0
- package/build/modern/components/tooltip/parts.js.map +1 -0
- package/build/modern/components/tooltip/primitives.d.ts +12 -0
- package/build/modern/components/tooltip/primitives.js +20 -0
- package/build/modern/components/tooltip/primitives.js.map +1 -0
- package/build/modern/components/tooltip/tooltip.d.ts +2 -0
- package/build/modern/components/tooltip/tooltip.js +12 -0
- package/build/modern/components/tooltip/tooltip.js.map +1 -0
- package/build/modern/config/index.js +1 -1
- package/build/modern/context/confirm-modal.js +22 -13
- package/build/modern/context/field.js +7 -1
- package/build/modern/context/field.js.map +1 -1
- package/build/modern/context/prompt-modal.js +30 -19
- package/build/modern/hooks/useRootColors.js +1 -1
- package/build/modern/index.d.ts +213 -17
- package/build/modern/index.js +294 -203
- package/build/modern/index.js.map +1 -1
- package/build/modern/system/factory.d.ts +1 -0
- package/build/modern/system/factory.js +9 -0
- package/build/modern/system/factory.js.map +1 -0
- package/build/modern/system/index.d.ts +12 -0
- package/build/modern/system/index.js +11 -0
- package/build/modern/system/index.js.map +1 -0
- package/build/modern/system/primitive-factory.d.ts +1 -0
- package/build/modern/system/primitive-factory.js +7 -0
- package/build/modern/system/primitive-factory.js.map +1 -0
- package/build/modern/system/types.d.ts +10 -0
- package/build/modern/system/types.js +2 -0
- package/build/modern/system/types.js.map +1 -0
- package/package.json +20 -7
- package/src/components/accordion/item-group.tsx +1 -1
- package/src/components/accordion/primitives.tsx +45 -53
- package/src/components/admonition/admonition.tsx +3 -6
- package/src/components/admonition/primitives.tsx +64 -43
- package/src/components/avatar/avatar.tsx +3 -5
- package/src/components/avatar/primitives.tsx +23 -29
- package/src/components/button/button.tsx +14 -24
- package/src/components/button/primitives.tsx +15 -0
- package/src/components/checkbox/checkbox-icon.tsx +1 -1
- package/src/components/checkbox/checkbox.tsx +2 -2
- package/src/components/checkbox/primitives.tsx +59 -54
- package/src/components/circular-progress/circular-progress.tsx +39 -0
- package/src/components/circular-progress/index.ts +2 -0
- package/src/components/circular-progress/primitives.ts +88 -0
- package/src/components/combobox/combobox.tsx +20 -7
- package/src/components/combobox/primitives.tsx +106 -134
- package/src/components/cta-dialog/provider.tsx +2 -2
- package/src/components/date-picker/calendar.tsx +21 -4
- package/src/components/date-picker/content.tsx +6 -7
- package/src/components/date-picker/date-picker.tsx +1 -1
- package/src/components/date-picker/day-view.tsx +1 -1
- package/src/components/date-picker/input.tsx +2 -2
- package/src/components/date-picker/month-view.tsx +3 -5
- package/src/components/date-picker/primitives.tsx +117 -164
- package/src/components/date-picker/range-input.tsx +2 -2
- package/src/components/date-picker/trigger.tsx +2 -2
- package/src/components/date-picker/view-control-group.tsx +4 -4
- package/src/components/date-picker/year-view.tsx +3 -5
- package/src/components/deprecated/Legend.tsx +1 -1
- package/src/components/deprecated/NavMenuLink.tsx +1 -1
- package/src/components/deprecated/NavMenuList.tsx +1 -1
- package/src/components/deprecated/NavMenuTrigger.tsx +5 -6
- package/src/components/deprecated/Notification.tsx +1 -1
- package/src/components/dialog/close-icon-trigger.tsx +2 -3
- package/src/components/dialog/dialog.tsx +7 -3
- package/src/components/dialog/primitives.tsx +42 -75
- package/src/components/feature-flag/feature-flag.tsx +21 -0
- package/src/components/feature-flag/index.ts +1 -0
- package/src/components/field/error-text.tsx +19 -0
- package/src/components/field/field.tsx +2 -2
- package/src/components/field/index.ts +3 -1
- package/src/components/field/input.tsx +47 -0
- package/src/components/field/primitives.tsx +86 -150
- package/src/components/fieldset/fieldset.tsx +2 -3
- package/src/components/fieldset/primitives.tsx +44 -63
- package/src/components/file-upload/file-status.tsx +278 -0
- package/src/components/file-upload/file-uploader.tsx +72 -0
- package/src/components/file-upload/index.ts +2 -0
- package/src/components/for/index.ts +1 -0
- package/src/components/icon-button/button.tsx +24 -0
- package/src/components/icon-button/index.tsx +2 -0
- package/src/components/icon-button/primitives.ts +21 -0
- package/src/components/menu/index.ts +2 -0
- package/src/components/menu/menu.tsx +144 -0
- package/src/components/menu/primitives.ts +93 -0
- package/src/components/notifications/center.tsx +1 -1
- package/src/components/notifications/close-trigger.tsx +2 -2
- package/src/components/notifications/match-icon.tsx +2 -2
- package/src/components/notifications/primitives.tsx +47 -54
- package/src/components/portal/index.ts +1 -0
- package/src/components/portal/portal.tsx +28 -0
- package/src/components/progress/index.ts +2 -0
- package/src/components/progress/primitives.ts +43 -0
- package/src/components/progress/progress-bar.tsx +80 -0
- package/src/components/radio/primitives.tsx +83 -101
- package/src/components/rating/primitives.tsx +57 -80
- package/src/components/rating/rating.tsx +3 -6
- package/src/components/select/index.ts +1 -0
- package/src/components/select/option-group.tsx +8 -10
- package/src/components/select/option.tsx +42 -0
- package/src/components/select/primitives.tsx +125 -156
- package/src/components/select/select.tsx +13 -33
- package/src/components/show/index.ts +1 -0
- package/src/components/spinner/index.ts +1 -0
- package/src/components/switch/primitives.tsx +45 -55
- package/src/components/switch/switch.tsx +2 -5
- package/src/components/table/primitives.tsx +101 -146
- package/src/components/table/table.tsx +3 -5
- package/src/components/tabs/primitives.tsx +43 -56
- package/src/components/tabs/tabs.tsx +3 -3
- package/src/components/tag/index.ts +1 -0
- package/src/components/tag/tag.tsx +108 -0
- package/src/components/text/index.ts +1 -0
- package/src/components/theme/index.ts +1 -0
- package/src/components/theme/theme.tsx +34 -0
- package/src/components/toggle/primitives.tsx +19 -15
- package/src/components/tooltip/index.ts +3 -0
- package/src/components/tooltip/parts.ts +59 -0
- package/src/components/tooltip/primitives.ts +71 -0
- package/src/components/tooltip/tooltip.tsx +46 -0
- package/src/context/confirm-modal.tsx +1 -1
- package/src/context/prompt-modal.tsx +5 -8
- package/src/hooks/useRootColors.ts +2 -2
- package/src/index.ts +16 -20
- package/src/system/factory.ts +37 -0
- package/src/system/index.ts +47 -0
- package/src/system/primitive-factory.tsx +151 -0
- package/src/system/types.ts +58 -0
- package/build/legacy/aria-helpers/nav-menu.aria.cjs +0 -36
- package/build/legacy/aria-helpers/nav-menu.aria.cjs.map +0 -1
- package/build/legacy/aria-helpers/nav-menu.aria.d.cts +0 -2
- package/build/legacy/aria-helpers/trap-focus.aria.cjs +0 -54
- package/build/legacy/aria-helpers/trap-focus.aria.cjs.map +0 -1
- package/build/legacy/aria-helpers/trap-focus.aria.d.cts +0 -1
- package/build/legacy/components/CircularProgress.cjs +0 -198
- package/build/legacy/components/CircularProgress.cjs.map +0 -1
- package/build/legacy/components/CircularProgress.d.cts +0 -2
- package/build/legacy/components/FeatureFlag.cjs +0 -65
- package/build/legacy/components/FeatureFlag.cjs.map +0 -1
- package/build/legacy/components/FeatureFlag.d.cts +0 -2
- package/build/legacy/components/FileStatus.cjs +0 -470
- package/build/legacy/components/FileStatus.cjs.map +0 -1
- package/build/legacy/components/FileStatus.d.cts +0 -6
- package/build/legacy/components/FileUploader.cjs +0 -191
- package/build/legacy/components/FileUploader.cjs.map +0 -1
- package/build/legacy/components/FileUploader.d.cts +0 -2
- package/build/legacy/components/IconButton.cjs +0 -52
- package/build/legacy/components/IconButton.cjs.map +0 -1
- package/build/legacy/components/IconButton.d.cts +0 -3
- package/build/legacy/components/Menu.cjs +0 -86
- package/build/legacy/components/Menu.cjs.map +0 -1
- package/build/legacy/components/Menu.d.cts +0 -7
- package/build/legacy/components/Portal.cjs +0 -35
- package/build/legacy/components/Portal.cjs.map +0 -1
- package/build/legacy/components/Portal.d.cts +0 -2
- package/build/legacy/components/ProgressBar.cjs +0 -63
- package/build/legacy/components/ProgressBar.cjs.map +0 -1
- package/build/legacy/components/ProgressBar.d.cts +0 -5
- package/build/legacy/components/Show.cjs +0 -41
- package/build/legacy/components/Show.cjs.map +0 -1
- package/build/legacy/components/Show.d.cts +0 -2
- package/build/legacy/components/Spinner.cjs +0 -105
- package/build/legacy/components/Spinner.cjs.map +0 -1
- package/build/legacy/components/Spinner.d.cts +0 -2
- package/build/legacy/components/Tag.cjs +0 -130
- package/build/legacy/components/Tag.cjs.map +0 -1
- package/build/legacy/components/Tag.d.cts +0 -4
- package/build/legacy/components/Text.cjs +0 -53
- package/build/legacy/components/Text.cjs.map +0 -1
- package/build/legacy/components/Text.d.cts +0 -4
- package/build/legacy/components/Tooltip.cjs +0 -55
- package/build/legacy/components/Tooltip.cjs.map +0 -1
- package/build/legacy/components/Tooltip.d.cts +0 -2
- package/build/legacy/components/for.cjs +0 -38
- package/build/legacy/components/for.cjs.map +0 -1
- package/build/legacy/components/for.d.cts +0 -2
- package/build/modern/aria-helpers/nav-menu.aria.d.ts +0 -2
- package/build/modern/aria-helpers/nav-menu.aria.js +0 -7
- package/build/modern/aria-helpers/trap-focus.aria.d.ts +0 -1
- package/build/modern/aria-helpers/trap-focus.aria.js +0 -7
- package/build/modern/chunk-25P3FUUT.js +0 -20
- package/build/modern/chunk-25P3FUUT.js.map +0 -1
- package/build/modern/chunk-25S67KZH.js +0 -44
- package/build/modern/chunk-25S67KZH.js.map +0 -1
- package/build/modern/chunk-2CZWHED6.js +0 -18
- package/build/modern/chunk-2IYWFZTK.js +0 -15
- package/build/modern/chunk-2LF3HPNA.js +0 -1
- package/build/modern/chunk-2U2JYN3D.js +0 -15
- package/build/modern/chunk-3DZW23OX.js +0 -50
- package/build/modern/chunk-3DZW23OX.js.map +0 -1
- package/build/modern/chunk-52ZQ26IV.js +0 -23
- package/build/modern/chunk-53YVHIGJ.js +0 -11
- package/build/modern/chunk-53YVHIGJ.js.map +0 -1
- package/build/modern/chunk-5FC7HIAR.js +0 -22
- package/build/modern/chunk-5HEU3SYR.js +0 -19
- package/build/modern/chunk-5HEU3SYR.js.map +0 -1
- package/build/modern/chunk-5MUUKSLF.js +0 -131
- package/build/modern/chunk-5MUUKSLF.js.map +0 -1
- package/build/modern/chunk-6KX5P5OU.js +0 -86
- package/build/modern/chunk-6KX5P5OU.js.map +0 -1
- package/build/modern/chunk-6MMH3Y2U.js +0 -49
- package/build/modern/chunk-6MMH3Y2U.js.map +0 -1
- package/build/modern/chunk-6UVR3VGK.js +0 -31
- package/build/modern/chunk-75DUDVPA.js +0 -22
- package/build/modern/chunk-75DUDVPA.js.map +0 -1
- package/build/modern/chunk-7I7LA2EE.js +0 -21
- package/build/modern/chunk-AN65HXHS.js +0 -23
- package/build/modern/chunk-AUI74W7J.js +0 -81
- package/build/modern/chunk-AUI74W7J.js.map +0 -1
- package/build/modern/chunk-BMDNCJUB.js +0 -22
- package/build/modern/chunk-BMDNCJUB.js.map +0 -1
- package/build/modern/chunk-BMPMMTX3.js +0 -62
- package/build/modern/chunk-BMPMMTX3.js.map +0 -1
- package/build/modern/chunk-CF4TCMJI.js +0 -35
- package/build/modern/chunk-CF4TCMJI.js.map +0 -1
- package/build/modern/chunk-CJVKAGCJ.js +0 -47
- package/build/modern/chunk-CJVKAGCJ.js.map +0 -1
- package/build/modern/chunk-D4BVNWAY.js +0 -146
- package/build/modern/chunk-D4BVNWAY.js.map +0 -1
- package/build/modern/chunk-D6PFYSIP.js +0 -20
- package/build/modern/chunk-D6PFYSIP.js.map +0 -1
- package/build/modern/chunk-D7PY357P.js +0 -42
- package/build/modern/chunk-D7PY357P.js.map +0 -1
- package/build/modern/chunk-D7QIPJQC.js +0 -67
- package/build/modern/chunk-D7QIPJQC.js.map +0 -1
- package/build/modern/chunk-DVCTN3GN.js +0 -33
- package/build/modern/chunk-ENJUQNVT.js +0 -60
- package/build/modern/chunk-ENJUQNVT.js.map +0 -1
- package/build/modern/chunk-F2MWSSK2.js +0 -48
- package/build/modern/chunk-F2MWSSK2.js.map +0 -1
- package/build/modern/chunk-FAQ3F72W.js +0 -24
- package/build/modern/chunk-FAQ3F72W.js.map +0 -1
- package/build/modern/chunk-FHNT274F.js +0 -29
- package/build/modern/chunk-FHNT274F.js.map +0 -1
- package/build/modern/chunk-FUTYPCHZ.js +0 -12
- package/build/modern/chunk-FUTYPCHZ.js.map +0 -1
- package/build/modern/chunk-GB7W3YNU.js +0 -51
- package/build/modern/chunk-GB7W3YNU.js.map +0 -1
- package/build/modern/chunk-GC6JUHVS.js +0 -15
- package/build/modern/chunk-GJBUGESH.js +0 -27
- package/build/modern/chunk-GJBUGESH.js.map +0 -1
- package/build/modern/chunk-GUAF4FXQ.js +0 -19
- package/build/modern/chunk-GUAF4FXQ.js.map +0 -1
- package/build/modern/chunk-GYUCW2QK.js +0 -25
- package/build/modern/chunk-H2VYN32T.js +0 -22
- package/build/modern/chunk-H4SH6ORP.js +0 -18
- package/build/modern/chunk-H4SH6ORP.js.map +0 -1
- package/build/modern/chunk-HJ7MAPDD.js +0 -86
- package/build/modern/chunk-HJ7MAPDD.js.map +0 -1
- package/build/modern/chunk-I4EGYD24.js +0 -21
- package/build/modern/chunk-I5RGBB57.js +0 -13
- package/build/modern/chunk-I5RGBB57.js.map +0 -1
- package/build/modern/chunk-IL677ECW.js +0 -71
- package/build/modern/chunk-IL677ECW.js.map +0 -1
- package/build/modern/chunk-INVZVMY4.js +0 -42
- package/build/modern/chunk-INVZVMY4.js.map +0 -1
- package/build/modern/chunk-IUF74GEL.js +0 -17
- package/build/modern/chunk-J76SGDYP.js +0 -59
- package/build/modern/chunk-JQYW4IOC.js +0 -21
- package/build/modern/chunk-JXWNDJJW.js +0 -226
- package/build/modern/chunk-JXWNDJJW.js.map +0 -1
- package/build/modern/chunk-KEGLWDD6.js +0 -45
- package/build/modern/chunk-KEGLWDD6.js.map +0 -1
- package/build/modern/chunk-KV4NRGKW.js +0 -51
- package/build/modern/chunk-KV4NRGKW.js.map +0 -1
- package/build/modern/chunk-L2EGF5AV.js +0 -33
- package/build/modern/chunk-L2EGF5AV.js.map +0 -1
- package/build/modern/chunk-L5FYGWAZ.js +0 -49
- package/build/modern/chunk-L5FYGWAZ.js.map +0 -1
- package/build/modern/chunk-LUGOJGMO.js +0 -82
- package/build/modern/chunk-LUGOJGMO.js.map +0 -1
- package/build/modern/chunk-M3TZCQ7J.js +0 -41
- package/build/modern/chunk-M3TZCQ7J.js.map +0 -1
- package/build/modern/chunk-MDXJ6MGF.js +0 -143
- package/build/modern/chunk-MDXJ6MGF.js.map +0 -1
- package/build/modern/chunk-MTD4JSHT.js +0 -21
- package/build/modern/chunk-MZXSSTS7.js +0 -25
- package/build/modern/chunk-N6XHXPBI.js +0 -27
- package/build/modern/chunk-N6XHXPBI.js.map +0 -1
- package/build/modern/chunk-NJ37QRAI.js +0 -33
- package/build/modern/chunk-NQ22M7U7.js +0 -19
- package/build/modern/chunk-NYEUNVKR.js +0 -22
- package/build/modern/chunk-NYEUNVKR.js.map +0 -1
- package/build/modern/chunk-NYVKL2IS.js +0 -38
- package/build/modern/chunk-OK3VJFQL.js +0 -99
- package/build/modern/chunk-OK3VJFQL.js.map +0 -1
- package/build/modern/chunk-ONHP3RYL.js +0 -41
- package/build/modern/chunk-ONHP3RYL.js.map +0 -1
- package/build/modern/chunk-OY33UHBG.js +0 -57
- package/build/modern/chunk-OY33UHBG.js.map +0 -1
- package/build/modern/chunk-P7FPAUWN.js +0 -40
- package/build/modern/chunk-P7FPAUWN.js.map +0 -1
- package/build/modern/chunk-PHPXOX2Y.js +0 -40
- package/build/modern/chunk-PHPXOX2Y.js.map +0 -1
- package/build/modern/chunk-PRV3HAK3.js +0 -156
- package/build/modern/chunk-PRV3HAK3.js.map +0 -1
- package/build/modern/chunk-Q737W5KJ.js +0 -41
- package/build/modern/chunk-Q737W5KJ.js.map +0 -1
- package/build/modern/chunk-QBA6KLL7.js +0 -31
- package/build/modern/chunk-QBA6KLL7.js.map +0 -1
- package/build/modern/chunk-QCZ5VNGU.js +0 -36
- package/build/modern/chunk-QCZ5VNGU.js.map +0 -1
- package/build/modern/chunk-QD3WAARV.js +0 -47
- package/build/modern/chunk-QNZIH2KG.js +0 -21
- package/build/modern/chunk-RF4VKGOQ.js +0 -70
- package/build/modern/chunk-RF4VKGOQ.js.map +0 -1
- package/build/modern/chunk-RMSM3XPV.js +0 -218
- package/build/modern/chunk-RMSM3XPV.js.map +0 -1
- package/build/modern/chunk-RP6DNLP3.js +0 -17
- package/build/modern/chunk-RP6DNLP3.js.map +0 -1
- package/build/modern/chunk-RTLS6K4E.js +0 -40
- package/build/modern/chunk-RTLS6K4E.js.map +0 -1
- package/build/modern/chunk-RW3YEBDW.js +0 -184
- package/build/modern/chunk-RW3YEBDW.js.map +0 -1
- package/build/modern/chunk-RYRB5GPN.js +0 -18
- package/build/modern/chunk-RYRB5GPN.js.map +0 -1
- package/build/modern/chunk-SHBKM6EW.js +0 -126
- package/build/modern/chunk-SHBKM6EW.js.map +0 -1
- package/build/modern/chunk-SZOV7M64.js +0 -59
- package/build/modern/chunk-SZOV7M64.js.map +0 -1
- package/build/modern/chunk-T44C3KQO.js +0 -22
- package/build/modern/chunk-T44C3KQO.js.map +0 -1
- package/build/modern/chunk-TRT6OCHJ.js +0 -27
- package/build/modern/chunk-TS7PAQPV.js +0 -27
- package/build/modern/chunk-TS7PAQPV.js.map +0 -1
- package/build/modern/chunk-TV346AYO.js +0 -64
- package/build/modern/chunk-TV346AYO.js.map +0 -1
- package/build/modern/chunk-UCVB2VOI.js +0 -81
- package/build/modern/chunk-UCVB2VOI.js.map +0 -1
- package/build/modern/chunk-UGFSACHC.js +0 -39
- package/build/modern/chunk-UGFSACHC.js.map +0 -1
- package/build/modern/chunk-UH6XSYYD.js +0 -28
- package/build/modern/chunk-UH6XSYYD.js.map +0 -1
- package/build/modern/chunk-UJTE43LT.js +0 -27
- package/build/modern/chunk-UJTE43LT.js.map +0 -1
- package/build/modern/chunk-V6ZOASMM.js +0 -37
- package/build/modern/chunk-VEAC4I3F.js +0 -17
- package/build/modern/chunk-VEAC4I3F.js.map +0 -1
- package/build/modern/chunk-W337WQTU.js +0 -21
- package/build/modern/chunk-WSOITM7D.js +0 -182
- package/build/modern/chunk-WSOITM7D.js.map +0 -1
- package/build/modern/chunk-XJQXHSH7.js +0 -38
- package/build/modern/chunk-XJQXHSH7.js.map +0 -1
- package/build/modern/chunk-YOYCS3MD.js +0 -41
- package/build/modern/chunk-YUVPXW6D.js +0 -58
- package/build/modern/chunk-YUVPXW6D.js.map +0 -1
- package/build/modern/chunk-ZL7AX5EM.js +0 -22
- package/build/modern/chunk-ZL7AX5EM.js.map +0 -1
- package/build/modern/chunk-ZPHPCKAG.js +0 -41
- package/build/modern/chunk-ZPHPCKAG.js.map +0 -1
- package/build/modern/components/CircularProgress.d.ts +0 -2
- package/build/modern/components/CircularProgress.js +0 -9
- package/build/modern/components/FeatureFlag.d.ts +0 -2
- package/build/modern/components/FeatureFlag.js +0 -10
- package/build/modern/components/FileStatus.d.ts +0 -6
- package/build/modern/components/FileStatus.js +0 -26
- package/build/modern/components/FileUploader.d.ts +0 -2
- package/build/modern/components/FileUploader.js +0 -15
- package/build/modern/components/IconButton.d.ts +0 -3
- package/build/modern/components/IconButton.js +0 -7
- package/build/modern/components/Menu.d.ts +0 -7
- package/build/modern/components/Menu.js +0 -19
- package/build/modern/components/Portal.d.ts +0 -2
- package/build/modern/components/Portal.js +0 -7
- package/build/modern/components/ProgressBar.d.ts +0 -5
- package/build/modern/components/ProgressBar.js +0 -7
- package/build/modern/components/Show.d.ts +0 -2
- package/build/modern/components/Show.js +0 -7
- package/build/modern/components/Spinner.d.ts +0 -2
- package/build/modern/components/Spinner.js +0 -7
- package/build/modern/components/Tag.d.ts +0 -4
- package/build/modern/components/Tag.js +0 -11
- package/build/modern/components/Text.d.ts +0 -4
- package/build/modern/components/Text.js +0 -7
- package/build/modern/components/Tooltip.d.ts +0 -2
- package/build/modern/components/Tooltip.js +0 -7
- package/build/modern/components/for.d.ts +0 -2
- package/build/modern/components/for.js +0 -7
- package/src/components/CircularProgress.tsx +0 -184
- package/src/components/FeatureFlag.tsx +0 -21
- package/src/components/FileStatus.tsx +0 -278
- package/src/components/FileUploader.tsx +0 -72
- package/src/components/IconButton.tsx +0 -38
- package/src/components/Menu.tsx +0 -165
- package/src/components/Portal.tsx +0 -31
- package/src/components/ProgressBar.tsx +0 -88
- package/src/components/Tag.tsx +0 -108
- package/src/components/Tooltip.tsx +0 -61
- /package/build/modern/{aria-helpers/nav-menu.aria.js.map → chunk-34U4QQ3I.js.map} +0 -0
- /package/build/modern/{aria-helpers/trap-focus.aria.js.map → chunk-3RPBRD5W.js.map} +0 -0
- /package/build/modern/{chunk-GC6JUHVS.js.map → chunk-4LBGIGNJ.js.map} +0 -0
- /package/build/modern/{chunk-QNZIH2KG.js.map → chunk-4NW7Q2VS.js.map} +0 -0
- /package/build/modern/{chunk-I4EGYD24.js.map → chunk-56YCKMC2.js.map} +0 -0
- /package/build/modern/{chunk-2LF3HPNA.js.map → chunk-5IMS6G4G.js.map} +0 -0
- /package/build/modern/{chunk-GYUCW2QK.js.map → chunk-6LH6MOXD.js.map} +0 -0
- /package/build/modern/{chunk-QD3WAARV.js.map → chunk-6QWS7HII.js.map} +0 -0
- /package/build/modern/{chunk-2IYWFZTK.js.map → chunk-AAWEAXIA.js.map} +0 -0
- /package/build/modern/{components/CircularProgress.js.map → chunk-B4GBNIU7.js.map} +0 -0
- /package/build/modern/{chunk-TRT6OCHJ.js.map → chunk-BFV463NP.js.map} +0 -0
- /package/build/modern/{chunk-W337WQTU.js.map → chunk-CKLLERV7.js.map} +0 -0
- /package/build/modern/{chunk-52ZQ26IV.js.map → chunk-DUCW5X4Y.js.map} +0 -0
- /package/build/modern/{chunk-5FC7HIAR.js.map → chunk-DUFKXBQT.js.map} +0 -0
- /package/build/modern/{chunk-2U2JYN3D.js.map → chunk-DWKGFNTK.js.map} +0 -0
- /package/build/modern/{chunk-DVCTN3GN.js.map → chunk-E2AW2N7Q.js.map} +0 -0
- /package/build/modern/{chunk-2CZWHED6.js.map → chunk-EPIO6H3A.js.map} +0 -0
- /package/build/modern/{components/FeatureFlag.js.map → chunk-EZTDGHEX.js.map} +0 -0
- /package/build/modern/{chunk-7I7LA2EE.js.map → chunk-GPGFQNJ6.js.map} +0 -0
- /package/build/modern/{chunk-YOYCS3MD.js.map → chunk-GZXW3JIW.js.map} +0 -0
- /package/build/modern/{chunk-NJ37QRAI.js.map → chunk-HBS3B3SE.js.map} +0 -0
- /package/build/modern/{components/FileStatus.js.map → chunk-JIXUOTH4.js.map} +0 -0
- /package/build/modern/{chunk-MZXSSTS7.js.map → chunk-KUR42DQQ.js.map} +0 -0
- /package/build/modern/{components/FileUploader.js.map → chunk-LRHHDORZ.js.map} +0 -0
- /package/build/modern/{components/IconButton.js.map → chunk-NZP3XQNQ.js.map} +0 -0
- /package/build/modern/{chunk-V6ZOASMM.js.map → chunk-NZZS2A53.js.map} +0 -0
- /package/build/modern/{chunk-IUF74GEL.js.map → chunk-OKU736EK.js.map} +0 -0
- /package/build/modern/{chunk-NYVKL2IS.js.map → chunk-OQN4HVLQ.js.map} +0 -0
- /package/build/modern/{chunk-MTD4JSHT.js.map → chunk-P4GJKPNL.js.map} +0 -0
- /package/build/modern/{components/Menu.js.map → chunk-PAQ6YQ7Y.js.map} +0 -0
- /package/build/modern/{chunk-H2VYN32T.js.map → chunk-Q2MJ7JRM.js.map} +0 -0
- /package/build/modern/{components/Portal.js.map → chunk-Q4CS3AKY.js.map} +0 -0
- /package/build/modern/{chunk-J76SGDYP.js.map → chunk-RJGEKVHZ.js.map} +0 -0
- /package/build/modern/{components/ProgressBar.js.map → chunk-RMEVOJ2E.js.map} +0 -0
- /package/build/modern/{components/Show.js.map → chunk-TLRRDNS3.js.map} +0 -0
- /package/build/modern/{chunk-AN65HXHS.js.map → chunk-VB5XZZKE.js.map} +0 -0
- /package/build/modern/{components/Spinner.js.map → chunk-VT6DJ2VM.js.map} +0 -0
- /package/build/modern/{chunk-JQYW4IOC.js.map → chunk-WC75SKFH.js.map} +0 -0
- /package/build/modern/{components/Tag.js.map → chunk-WJW4FF4J.js.map} +0 -0
- /package/build/modern/{chunk-6UVR3VGK.js.map → chunk-WN2WTSWG.js.map} +0 -0
- /package/build/modern/{components/Text.js.map → chunk-X5LBBTCV.js.map} +0 -0
- /package/build/modern/{chunk-NQ22M7U7.js.map → chunk-X7JS25IL.js.map} +0 -0
- /package/build/modern/{components/Tooltip.js.map → chunk-XDMGFB6Q.js.map} +0 -0
- /package/build/modern/components/{for.js.map → button/primitives.js.map} +0 -0
- /package/src/{aria-helpers → components/deprecated/aria-helpers}/nav-menu.aria.ts +0 -0
- /package/src/{aria-helpers → components/deprecated/aria-helpers}/trap-focus.aria.ts +0 -0
- /package/src/components/{for.tsx → for/for.tsx} +0 -0
- /package/src/components/{Show.tsx → show/show.tsx} +0 -0
- /package/src/components/{Spinner.tsx → spinner/spinner.tsx} +0 -0
- /package/src/components/{Text.tsx → text/text.tsx} +0 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ComboboxParts
|
|
3
|
+
} from "./chunk-NZZS2A53.js";
|
|
4
|
+
import {
|
|
5
|
+
ComboboxStartIcon
|
|
6
|
+
} from "./chunk-KOVD3FG7.js";
|
|
7
|
+
import {
|
|
8
|
+
Portal
|
|
9
|
+
} from "./chunk-PLPYBCZQ.js";
|
|
10
|
+
import {
|
|
11
|
+
Show
|
|
12
|
+
} from "./chunk-NUXMADXV.js";
|
|
13
|
+
import {
|
|
14
|
+
splitProps
|
|
15
|
+
} from "./chunk-BL7G3577.js";
|
|
16
|
+
import {
|
|
17
|
+
useCerberusContext
|
|
18
|
+
} from "./chunk-GITT5645.js";
|
|
19
|
+
|
|
20
|
+
// src/components/combobox/combobox.tsx
|
|
21
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
22
|
+
function Combobox(props) {
|
|
23
|
+
const [{ startIcon, label, ...elProps }, rootProps] = splitProps(props, [
|
|
24
|
+
"label",
|
|
25
|
+
"children",
|
|
26
|
+
"startIcon",
|
|
27
|
+
"container"
|
|
28
|
+
]);
|
|
29
|
+
const { icons } = useCerberusContext();
|
|
30
|
+
const { selectArrow: SelectArrow, close: CloseIcon } = icons;
|
|
31
|
+
const hasStartIcon = Boolean(startIcon);
|
|
32
|
+
return /* @__PURE__ */ jsxs(ComboboxParts.Root, { ...rootProps, children: [
|
|
33
|
+
/* @__PURE__ */ jsx(Show, { when: label, children: /* @__PURE__ */ jsx(ComboboxParts.Label, { children: label }) }),
|
|
34
|
+
/* @__PURE__ */ jsxs(ComboboxParts.Control, { children: [
|
|
35
|
+
/* @__PURE__ */ jsx(Show, { when: hasStartIcon, children: /* @__PURE__ */ jsx(ComboboxStartIcon, { children: startIcon }) }),
|
|
36
|
+
/* @__PURE__ */ jsx(
|
|
37
|
+
ComboboxParts.Input,
|
|
38
|
+
{
|
|
39
|
+
...hasStartIcon && { "data-has": "start-indicator" }
|
|
40
|
+
}
|
|
41
|
+
),
|
|
42
|
+
/* @__PURE__ */ jsx(ComboboxParts.ClearTrigger, { children: /* @__PURE__ */ jsx(CloseIcon, {}) }),
|
|
43
|
+
/* @__PURE__ */ jsx(ComboboxParts.Trigger, { children: /* @__PURE__ */ jsx(SelectArrow, {}) })
|
|
44
|
+
] }),
|
|
45
|
+
/* @__PURE__ */ jsx(Portal, { container: elProps.container, children: /* @__PURE__ */ jsx(ComboboxParts.Positioner, { children: /* @__PURE__ */ jsx(ComboboxParts.Content, { size: rootProps.size, children: elProps.children }) }) })
|
|
46
|
+
] });
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export {
|
|
50
|
+
Combobox
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=chunk-TGCKJHEE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/combobox/combobox.tsx"],"sourcesContent":["'use client'\n\nimport type { ComboboxRootProps } from '@ark-ui/react/combobox'\nimport type { ComboboxVariantProps } from 'styled-system/recipes'\nimport type { RefObject } from 'react'\nimport { useCerberusContext } from '../../context/cerberus'\nimport { splitProps } from '../../utils/index'\nimport type { SelectCollectionItem } from '../select/select'\nimport { type FieldInputElProps } from '../field/index'\nimport { Portal } from '../portal/index'\nimport { Show } from '../show/index'\nimport { ComboboxParts } from './parts'\nimport { ComboboxStartIcon } from './primitives'\n\nexport interface ComboboxProps\n extends ComboboxRootProps<SelectCollectionItem>,\n ComboboxVariantProps {\n /**\n * The label that appears above the combobox input.\n */\n label?: string\n /**\n * The icon that appears at the start of the combobox input.\n */\n startIcon?: FieldInputElProps['startIcon']\n /**\n * The container element to render the Select dropdown in. This is used\n * to render the Select dropdown in a specific context, such as a modal.\n * @default document.body\n */\n container?: RefObject<HTMLElement | null>\n}\n\nexport function Combobox(props: ComboboxProps) {\n const [{ startIcon, label, ...elProps }, rootProps] = splitProps(props, [\n 'label',\n 'children',\n 'startIcon',\n 'container',\n ])\n\n const { icons } = useCerberusContext()\n const { selectArrow: SelectArrow, close: CloseIcon } = icons\n\n const hasStartIcon = Boolean(startIcon)\n\n return (\n <ComboboxParts.Root {...rootProps}>\n <Show when={label}>\n <ComboboxParts.Label>{label}</ComboboxParts.Label>\n </Show>\n\n <ComboboxParts.Control>\n <Show when={hasStartIcon}>\n <ComboboxStartIcon>{startIcon}</ComboboxStartIcon>\n </Show>\n\n <ComboboxParts.Input\n {...(hasStartIcon && { 'data-has': 'start-indicator' })}\n />\n\n <ComboboxParts.ClearTrigger>\n <CloseIcon />\n </ComboboxParts.ClearTrigger>\n <ComboboxParts.Trigger>\n <SelectArrow />\n </ComboboxParts.Trigger>\n </ComboboxParts.Control>\n\n <Portal container={elProps.container}>\n <ComboboxParts.Positioner>\n <ComboboxParts.Content size={rootProps.size}>\n {elProps.children}\n </ComboboxParts.Content>\n </ComboboxParts.Positioner>\n </Portal>\n </ComboboxParts.Root>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAiDQ,cAGF,YAHE;AAhBD,SAAS,SAAS,OAAsB;AAC7C,QAAM,CAAC,EAAE,WAAW,OAAO,GAAG,QAAQ,GAAG,SAAS,IAAI,WAAW,OAAO;AAAA,IACtE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AAED,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC,QAAM,EAAE,aAAa,aAAa,OAAO,UAAU,IAAI;AAEvD,QAAM,eAAe,QAAQ,SAAS;AAEtC,SACE,qBAAC,cAAc,MAAd,EAAoB,GAAG,WACtB;AAAA,wBAAC,QAAK,MAAM,OACV,8BAAC,cAAc,OAAd,EAAqB,iBAAM,GAC9B;AAAA,IAEA,qBAAC,cAAc,SAAd,EACC;AAAA,0BAAC,QAAK,MAAM,cACV,8BAAC,qBAAmB,qBAAU,GAChC;AAAA,MAEA;AAAA,QAAC,cAAc;AAAA,QAAd;AAAA,UACE,GAAI,gBAAgB,EAAE,YAAY,kBAAkB;AAAA;AAAA,MACvD;AAAA,MAEA,oBAAC,cAAc,cAAd,EACC,8BAAC,aAAU,GACb;AAAA,MACA,oBAAC,cAAc,SAAd,EACC,8BAAC,eAAY,GACf;AAAA,OACF;AAAA,IAEA,oBAAC,UAAO,WAAW,QAAQ,WACzB,8BAAC,cAAc,YAAd,EACC,8BAAC,cAAc,SAAd,EAAsB,MAAM,UAAU,MACpC,kBAAQ,UACX,GACF,GACF;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-TLRRDNS3.js.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Show
|
|
3
|
+
} from "./chunk-NUXMADXV.js";
|
|
4
|
+
|
|
5
|
+
// src/components/deprecated/Legend.tsx
|
|
6
|
+
import { useFieldContext } from "@ark-ui/react/field";
|
|
7
|
+
import { css, cx } from "styled-system/css";
|
|
8
|
+
import { label } from "styled-system/recipes";
|
|
9
|
+
import { hstack } from "styled-system/patterns";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
function Legend(props) {
|
|
12
|
+
const { size, ...nativeProps } = props;
|
|
13
|
+
const { invalid, required } = useFieldContext();
|
|
14
|
+
return /* @__PURE__ */ jsxs(
|
|
15
|
+
"legend",
|
|
16
|
+
{
|
|
17
|
+
...nativeProps,
|
|
18
|
+
...invalid && { "aria-invalid": true },
|
|
19
|
+
className: cx(
|
|
20
|
+
nativeProps.className,
|
|
21
|
+
hstack({
|
|
22
|
+
justify: "space-between",
|
|
23
|
+
w: "full"
|
|
24
|
+
}),
|
|
25
|
+
label({
|
|
26
|
+
size
|
|
27
|
+
})
|
|
28
|
+
),
|
|
29
|
+
children: [
|
|
30
|
+
nativeProps.children,
|
|
31
|
+
/* @__PURE__ */ jsx(Show, { when: required, children: /* @__PURE__ */ jsx(
|
|
32
|
+
"span",
|
|
33
|
+
{
|
|
34
|
+
className: css({
|
|
35
|
+
color: "page.text.100",
|
|
36
|
+
fontSize: "inherit"
|
|
37
|
+
}),
|
|
38
|
+
children: "(required)"
|
|
39
|
+
}
|
|
40
|
+
) })
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export {
|
|
47
|
+
Legend
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=chunk-TOXQSWPN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/deprecated/Legend.tsx"],"sourcesContent":["'use client'\n\nimport { useFieldContext } from '@ark-ui/react/field'\nimport { css, cx } from 'styled-system/css'\nimport { label, type LabelVariantProps } from 'styled-system/recipes'\nimport { hstack } from 'styled-system/patterns'\nimport { type HTMLAttributes } from 'react'\nimport { Show } from '../show/index'\n\n/**\n * This module contains the Fieldset component.\n * @module Fieldset\n */\n\nexport type LegendProps = HTMLAttributes<HTMLLegendElement> & LabelVariantProps\n\n/**\n * @deprecated use Fieldset instead\n */\nexport function Legend(props: LegendProps) {\n const { size, ...nativeProps } = props\n const { invalid, required } = useFieldContext()\n\n return (\n <legend\n {...nativeProps}\n {...(invalid && { 'aria-invalid': true })}\n className={cx(\n nativeProps.className,\n hstack({\n justify: 'space-between',\n w: 'full',\n }),\n label({\n size,\n }),\n )}\n >\n {nativeProps.children}\n <Show when={required}>\n <span\n className={css({\n color: 'page.text.100',\n fontSize: 'inherit',\n })}\n >\n (required)\n </span>\n </Show>\n </legend>\n )\n}\n"],"mappings":";;;;;AAEA,SAAS,uBAAuB;AAChC,SAAS,KAAK,UAAU;AACxB,SAAS,aAAqC;AAC9C,SAAS,cAAc;AAmBnB,SAgBI,KAhBJ;AALG,SAAS,OAAO,OAAoB;AACzC,QAAM,EAAE,MAAM,GAAG,YAAY,IAAI;AACjC,QAAM,EAAE,SAAS,SAAS,IAAI,gBAAgB;AAE9C,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACH,GAAI,WAAW,EAAE,gBAAgB,KAAK;AAAA,MACvC,WAAW;AAAA,QACT,YAAY;AAAA,QACZ,OAAO;AAAA,UACL,SAAS;AAAA,UACT,GAAG;AAAA,QACL,CAAC;AAAA,QACD,MAAM;AAAA,UACJ;AAAA,QACF,CAAC;AAAA,MACH;AAAA,MAEC;AAAA,oBAAY;AAAA,QACb,oBAAC,QAAK,MAAM,UACV;AAAA,UAAC;AAAA;AAAA,YACC,WAAW,IAAI;AAAA,cACb,OAAO;AAAA,cACP,UAAU;AAAA,YACZ,CAAC;AAAA,YACF;AAAA;AAAA,QAED,GACF;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TooltipParts
|
|
3
|
+
} from "./chunk-TXV55LWL.js";
|
|
4
|
+
|
|
5
|
+
// src/components/tooltip/tooltip.tsx
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
function Tooltip(props) {
|
|
8
|
+
const { content, children, ...rootProps } = props;
|
|
9
|
+
const position = {
|
|
10
|
+
placement: props.positioning || "top"
|
|
11
|
+
};
|
|
12
|
+
return /* @__PURE__ */ jsxs(TooltipParts.Root, { openDelay: 400, positioning: position, ...rootProps, children: [
|
|
13
|
+
/* @__PURE__ */ jsx(TooltipParts.Trigger, { asChild: true, children }),
|
|
14
|
+
/* @__PURE__ */ jsx(TooltipParts.Positioner, { children: /* @__PURE__ */ jsxs(TooltipParts.Content, { children: [
|
|
15
|
+
/* @__PURE__ */ jsx(TooltipParts.Arrow, { children: /* @__PURE__ */ jsx(TooltipParts.ArrowTip, {}) }),
|
|
16
|
+
content
|
|
17
|
+
] }) })
|
|
18
|
+
] });
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
Tooltip
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=chunk-TQB6U3JH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/tooltip/tooltip.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\nimport { TooltipParts } from './parts'\nimport type { TooltipRootProps } from './primitives'\n\n/**\n * This module contains the Tooltip component.\n * @module Tooltip\n */\n\nexport interface TooltipProps extends TooltipRootProps {\n /**\n * The text content to display in the tooltip.\n */\n content: ReactNode\n}\n\n/**\n * The Tooltip component is used to provide additional information about an element when it is hovered over.\n * @definition [Tooltip docs](https://cerberus.digitalu.design/react/tooltip)\n * @example\n * ```tsx\n * <Tooltip content=\"This is a tooltip\">\n * <Information />\n * </Tooltip>\n */\nexport function Tooltip(props: TooltipProps) {\n const { content, children, ...rootProps } = props\n const position = {\n placement: props.positioning || 'top',\n }\n\n return (\n <TooltipParts.Root openDelay={400} positioning={position} {...rootProps}>\n <TooltipParts.Trigger asChild>{children}</TooltipParts.Trigger>\n\n <TooltipParts.Positioner>\n <TooltipParts.Content>\n <TooltipParts.Arrow>\n <TooltipParts.ArrowTip />\n </TooltipParts.Arrow>\n {content}\n </TooltipParts.Content>\n </TooltipParts.Positioner>\n </TooltipParts.Root>\n )\n}\n"],"mappings":";;;;;AAiCM,cAGE,YAHF;AARC,SAAS,QAAQ,OAAqB;AAC3C,QAAM,EAAE,SAAS,UAAU,GAAG,UAAU,IAAI;AAC5C,QAAM,WAAW;AAAA,IACf,WAAW,MAAM,eAAe;AAAA,EAClC;AAEA,SACE,qBAAC,aAAa,MAAb,EAAkB,WAAW,KAAK,aAAa,UAAW,GAAG,WAC5D;AAAA,wBAAC,aAAa,SAAb,EAAqB,SAAO,MAAE,UAAS;AAAA,IAExC,oBAAC,aAAa,YAAb,EACC,+BAAC,aAAa,SAAb,EACC;AAAA,0BAAC,aAAa,OAAb,EACC,8BAAC,aAAa,UAAb,EAAsB,GACzB;AAAA,MACC;AAAA,OACH,GACF;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// src/hooks/useRootColors.ts
|
|
2
|
+
import { useCallback, useEffect, useMemo, useReducer } from "react";
|
|
3
|
+
function useRootColors(colors = []) {
|
|
4
|
+
const [state, dispatch] = useReducer(rootColorsReducer, {});
|
|
5
|
+
const handleRefetch = useCallback(() => {
|
|
6
|
+
return new Promise((resolve) => {
|
|
7
|
+
dispatch(formatColors(colors));
|
|
8
|
+
resolve();
|
|
9
|
+
});
|
|
10
|
+
}, [colors]);
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
if (Object.keys(state).length === colors.length) return;
|
|
13
|
+
dispatch(formatColors(colors));
|
|
14
|
+
}, [colors, state]);
|
|
15
|
+
return useMemo(
|
|
16
|
+
() => ({ colors: state, refetch: handleRefetch }),
|
|
17
|
+
[state, handleRefetch]
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
function formatColors(colors) {
|
|
21
|
+
const rootStyles = getComputedStyle(document.body);
|
|
22
|
+
return colors.reduce(
|
|
23
|
+
(acc, color) => {
|
|
24
|
+
const formattedColor = color.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase().replaceAll(".", "-");
|
|
25
|
+
acc[color] = rootStyles.getPropertyValue(`--cerberus-colors-${formattedColor}`).trim();
|
|
26
|
+
return acc;
|
|
27
|
+
},
|
|
28
|
+
{}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
function rootColorsReducer(state, action) {
|
|
32
|
+
return { ...state, ...action };
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export {
|
|
36
|
+
useRootColors
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=chunk-TTWDHJ3J.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/hooks/useRootColors.ts"],"sourcesContent":["'use client'\n\nimport { useCallback, useEffect, useMemo, useReducer } from 'react'\n\n/**\n * This module provides a hook to get Cerberus colors from the document root.\n * @module useRootColors\n */\n\nexport interface RootColorsResult {\n /**\n * A record of Cerberus colors where the key is the token name provided and the value is the color hex.\n */\n colors: Record<string, string>\n /**\n * A function to refetch the Cerberus colors from the document root. Useful when you need the latest colors after a theme/mode change.\n */\n refetch: () => Promise<void>\n}\n\n/**\n * This hook returns a record of Cerberus colors from the document root.\n * This is useful when you are working with a component that uses the `<canvas>`\n * element.\n * @param colors - An array of Cerberus tokens to get from the document root (i.e. `['dataViz.diverging.50', 'dataViz.diverging.200']`).\n * @returns A record of Cerberus colors where the key is the token name provided and the value is the color hex.\n */\nexport function useRootColors(colors: string[] = []): RootColorsResult {\n const [state, dispatch] = useReducer(rootColorsReducer, {})\n\n const handleRefetch = useCallback(() => {\n return new Promise<void>((resolve) => {\n dispatch(formatColors(colors))\n resolve()\n })\n }, [colors])\n\n useEffect(() => {\n if (Object.keys(state).length === colors.length) return\n dispatch(formatColors(colors))\n }, [colors, state])\n\n // reducer is already memoized\n return useMemo(\n () => ({ colors: state, refetch: handleRefetch }),\n [state, handleRefetch],\n )\n}\n\nfunction formatColors(colors: string[]): Record<string, string> {\n const rootStyles = getComputedStyle(document.body)\n return colors.reduce(\n (acc, color) => {\n const formattedColor = color\n .replace(/([a-z])([A-Z])/g, '$1-$2')\n .toLowerCase()\n .replaceAll('.', '-')\n acc[color] = rootStyles\n .getPropertyValue(`--cerberus-colors-${formattedColor}`)\n .trim()\n return acc\n },\n {} as Record<string, string>,\n )\n}\n\nfunction rootColorsReducer(\n state: Record<string, string>,\n action: Record<string, string>,\n): Record<string, string> {\n return { ...state, ...action }\n}\n"],"mappings":";AAEA,SAAS,aAAa,WAAW,SAAS,kBAAkB;AAyBrD,SAAS,cAAc,SAAmB,CAAC,GAAqB;AACrE,QAAM,CAAC,OAAO,QAAQ,IAAI,WAAW,mBAAmB,CAAC,CAAC;AAE1D,QAAM,gBAAgB,YAAY,MAAM;AACtC,WAAO,IAAI,QAAc,CAAC,YAAY;AACpC,eAAS,aAAa,MAAM,CAAC;AAC7B,cAAQ;AAAA,IACV,CAAC;AAAA,EACH,GAAG,CAAC,MAAM,CAAC;AAEX,YAAU,MAAM;AACd,QAAI,OAAO,KAAK,KAAK,EAAE,WAAW,OAAO,OAAQ;AACjD,aAAS,aAAa,MAAM,CAAC;AAAA,EAC/B,GAAG,CAAC,QAAQ,KAAK,CAAC;AAGlB,SAAO;AAAA,IACL,OAAO,EAAE,QAAQ,OAAO,SAAS,cAAc;AAAA,IAC/C,CAAC,OAAO,aAAa;AAAA,EACvB;AACF;AAEA,SAAS,aAAa,QAA0C;AAC9D,QAAM,aAAa,iBAAiB,SAAS,IAAI;AACjD,SAAO,OAAO;AAAA,IACZ,CAAC,KAAK,UAAU;AACd,YAAM,iBAAiB,MACpB,QAAQ,mBAAmB,OAAO,EAClC,YAAY,EACZ,WAAW,KAAK,GAAG;AACtB,UAAI,KAAK,IAAI,WACV,iBAAiB,qBAAqB,cAAc,EAAE,EACtD,KAAK;AACR,aAAO;AAAA,IACT;AAAA,IACA,CAAC;AAAA,EACH;AACF;AAEA,SAAS,kBACP,OACA,QACwB;AACxB,SAAO,EAAE,GAAG,OAAO,GAAG,OAAO;AAC/B;","names":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createCerberusPrimitive
|
|
3
|
+
} from "./chunk-WC5DERNW.js";
|
|
4
|
+
|
|
5
|
+
// src/components/icon-button/primitives.ts
|
|
6
|
+
import { ark } from "@ark-ui/react/factory";
|
|
7
|
+
import { iconButton } from "styled-system/recipes";
|
|
8
|
+
var { withRecipe } = createCerberusPrimitive(iconButton);
|
|
9
|
+
var IconButtonRoot = withRecipe(ark.button);
|
|
10
|
+
|
|
11
|
+
export {
|
|
12
|
+
IconButtonRoot
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=chunk-TVSVKDWV.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/icon-button/primitives.ts"],"sourcesContent":["import { ark, type HTMLArkProps } from '@ark-ui/react/factory'\nimport { iconButton, type IconButtonVariantProps } from 'styled-system/recipes'\nimport {\n createCerberusPrimitive,\n type CerberusPrimitiveProps,\n} from '../../system/index'\n\n/**\n * This module contains the IconButton component primitives.\n * @module @cerberus-design/react/components/icon-button/primitives\n */\n\nconst { withRecipe } = createCerberusPrimitive(iconButton)\n\n/**\n * The root element of the Button component.\n */\nexport type IconButtonRootProps = CerberusPrimitiveProps<\n HTMLArkProps<'button'> & IconButtonVariantProps\n>\nexport const IconButtonRoot = withRecipe(ark.button)\n"],"mappings":";;;;;AAAA,SAAS,WAA8B;AACvC,SAAS,kBAA+C;AAWxD,IAAM,EAAE,WAAW,IAAI,wBAAwB,UAAU;AAQlD,IAAM,iBAAiB,WAAW,IAAI,MAAM;","names":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TooltipArrow,
|
|
3
|
+
TooltipArrowTip,
|
|
4
|
+
TooltipContent,
|
|
5
|
+
TooltipPositioner,
|
|
6
|
+
TooltipRoot,
|
|
7
|
+
TooltipTrigger
|
|
8
|
+
} from "./chunk-4TQO7LCB.js";
|
|
9
|
+
|
|
10
|
+
// src/components/tooltip/parts.ts
|
|
11
|
+
var TooltipParts = {
|
|
12
|
+
Root: TooltipRoot,
|
|
13
|
+
Trigger: TooltipTrigger,
|
|
14
|
+
Positioner: TooltipPositioner,
|
|
15
|
+
Content: TooltipContent,
|
|
16
|
+
Arrow: TooltipArrow,
|
|
17
|
+
ArrowTip: TooltipArrowTip
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export {
|
|
21
|
+
TooltipParts
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=chunk-TXV55LWL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/tooltip/parts.ts"],"sourcesContent":["import type { ElementType } from 'react'\nimport {\n TooltipRoot,\n TooltipTrigger,\n TooltipPositioner,\n TooltipContent,\n TooltipArrow,\n TooltipArrowTip,\n} from './primitives'\n\n/**\n * This module contains the parts of the Tooltip component.\n * @module 'tooltip/parts'\n */\n\ninterface TooltipPartsValue {\n /**\n * The context provider of the tooltip.\n */\n Root: ElementType\n /**\n * The trigger that of the tooltip.\n */\n Trigger: ElementType\n /**\n * The positioner of the tooltip.\n */\n Positioner: ElementType\n /**\n * The content of the tooltip.\n */\n Content: ElementType\n /**\n * The arrow of the tooltip.\n */\n Arrow: ElementType\n /**\n * The arrow tip of the tooltip.\n */\n ArrowTip: ElementType\n}\n\n/**\n * An Object containing the parts of the Tooltip component. For users that\n * prefer Object component syntax.\n *\n * @remarks\n *\n * When using object component syntax, you import the TooltipParts object and\n * the entire family of components vs. only what you use.\n */\nexport const TooltipParts: TooltipPartsValue = {\n Root: TooltipRoot,\n Trigger: TooltipTrigger,\n Positioner: TooltipPositioner,\n Content: TooltipContent,\n Arrow: TooltipArrow,\n ArrowTip: TooltipArrowTip,\n}\n"],"mappings":";;;;;;;;;;AAmDO,IAAM,eAAkC;AAAA,EAC7C,MAAM;AAAA,EACN,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,OAAO;AAAA,EACP,UAAU;AACZ;","names":[]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DatePickerTrigger
|
|
3
|
+
} from "./chunk-FRT3VY4M.js";
|
|
4
|
+
import {
|
|
5
|
+
DatePickerParts
|
|
6
|
+
} from "./chunk-RJGEKVHZ.js";
|
|
7
|
+
|
|
8
|
+
// src/components/date-picker/range-input.tsx
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
function RangePickerInput(props) {
|
|
11
|
+
return /* @__PURE__ */ jsxs(DatePickerParts.Control, { "data-range": true, children: [
|
|
12
|
+
/* @__PURE__ */ jsx(DatePickerTrigger, {}),
|
|
13
|
+
/* @__PURE__ */ jsx(
|
|
14
|
+
DatePickerParts.Input,
|
|
15
|
+
{
|
|
16
|
+
...props,
|
|
17
|
+
"data-range-input": true,
|
|
18
|
+
placeholder: props.placeholder ?? "DD MMM YYYY",
|
|
19
|
+
maxLength: 11,
|
|
20
|
+
index: 0
|
|
21
|
+
}
|
|
22
|
+
),
|
|
23
|
+
/* @__PURE__ */ jsx(
|
|
24
|
+
DatePickerParts.Input,
|
|
25
|
+
{
|
|
26
|
+
...props,
|
|
27
|
+
"data-range-input": true,
|
|
28
|
+
"data-range-end-input": true,
|
|
29
|
+
placeholder: props.placeholder ?? "DD MMM YYYY",
|
|
30
|
+
maxLength: 11,
|
|
31
|
+
index: 1
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
] });
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
RangePickerInput
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=chunk-ULKVI2EH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/date-picker/range-input.tsx"],"sourcesContent":["import { DatePickerParts } from './parts'\nimport type { DatePickerInputElProps } from './primitives'\nimport { DatePickerTrigger } from './trigger'\n\n/**\n * This private module contains the RangePickerInput component.\n * @module RangePickerInput\n */\n\nexport type RangePickerInputProps = DatePickerInputElProps\n\n/**\n * An abstraction of the DatePicker input that wraps the input and the\n * triggers to open the DatePicker and clear the value.\n * @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)\n */\nexport function RangePickerInput(props: RangePickerInputProps) {\n return (\n <DatePickerParts.Control data-range>\n <DatePickerTrigger />\n <DatePickerParts.Input\n {...props}\n data-range-input\n placeholder={props.placeholder ?? 'DD MMM YYYY'}\n maxLength={11}\n index={0}\n />\n <DatePickerParts.Input\n {...props}\n data-range-input\n data-range-end-input\n placeholder={props.placeholder ?? 'DD MMM YYYY'}\n maxLength={11}\n index={1}\n />\n </DatePickerParts.Control>\n )\n}\n"],"mappings":";;;;;;;;AAkBI,SACE,KADF;AAFG,SAAS,iBAAiB,OAA8B;AAC7D,SACE,qBAAC,gBAAgB,SAAhB,EAAwB,cAAU,MACjC;AAAA,wBAAC,qBAAkB;AAAA,IACnB;AAAA,MAAC,gBAAgB;AAAA,MAAhB;AAAA,QACE,GAAG;AAAA,QACJ,oBAAgB;AAAA,QAChB,aAAa,MAAM,eAAe;AAAA,QAClC,WAAW;AAAA,QACX,OAAO;AAAA;AAAA,IACT;AAAA,IACA;AAAA,MAAC,gBAAgB;AAAA,MAAhB;AAAA,QACE,GAAG;AAAA,QACJ,oBAAgB;AAAA,QAChB,wBAAoB;AAAA,QACpB,aAAa,MAAM,eAAe;AAAA,QAClC,WAAW;AAAA,QACX,OAAO;AAAA;AAAA,IACT;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CheckboxParts
|
|
3
|
+
} from "./chunk-DUCW5X4Y.js";
|
|
4
|
+
import {
|
|
5
|
+
Show
|
|
6
|
+
} from "./chunk-NUXMADXV.js";
|
|
7
|
+
import {
|
|
8
|
+
useCerberusContext
|
|
9
|
+
} from "./chunk-GITT5645.js";
|
|
10
|
+
|
|
11
|
+
// src/components/checkbox/checkbox-icon.tsx
|
|
12
|
+
import { jsx } from "react/jsx-runtime";
|
|
13
|
+
function CheckboxIcon(props) {
|
|
14
|
+
const { icons } = useCerberusContext();
|
|
15
|
+
const { checkbox: CheckIcon, indeterminate: IndeterminateIcon } = icons;
|
|
16
|
+
return /* @__PURE__ */ jsx(CheckboxParts.Indicator, { indeterminate: props.indeterminate, children: /* @__PURE__ */ jsx(Show, { when: props.indeterminate, fallback: /* @__PURE__ */ jsx(CheckIcon, {}), children: /* @__PURE__ */ jsx(IndeterminateIcon, {}) }) });
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
CheckboxIcon
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=chunk-UWNLOY27.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/checkbox/checkbox-icon.tsx"],"sourcesContent":["'use client'\n\nimport { useCerberusContext } from '../../context/cerberus'\nimport { Show } from '../show/index'\nimport { CheckboxParts } from './parts'\n\n/**\n * This module contains the Checkbox Icon component.\n * @module\n */\n\ninterface CheckboxIconProps {\n indeterminate?: boolean\n}\n\n/**\n * Checkbox component\n * @definition [ARIA Target Size](https://www.w3.org/WAI/WCAG21/Understanding/target-size.html#:~:text=Understanding%20SC%202.5.,%3ATarget%20Size%20(Level%20AAA)&text=The%20size%20of%20the%20target,Equivalent)\n * @definition [ARIA Forms](https://www.a11yproject.com/checklist/#forms)\n * @see https://cerberus.digitalu.design/react/checkbox\n * @example\n * ```tsx\n * <Field>\n * <Checkbox id=\"legal\" checked={checked.legal} onChange={handleChange} />\n * </Field>\n * ```\n */\nexport function CheckboxIcon(props: CheckboxIconProps) {\n const { icons } = useCerberusContext()\n const { checkbox: CheckIcon, indeterminate: IndeterminateIcon } = icons\n\n return (\n <CheckboxParts.Indicator indeterminate={props.indeterminate}>\n <Show when={props.indeterminate} fallback={<CheckIcon />}>\n <IndeterminateIcon />\n </Show>\n </CheckboxParts.Indicator>\n )\n}\n"],"mappings":";;;;;;;;;;;AAiCiD;AAN1C,SAAS,aAAa,OAA0B;AACrD,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC,QAAM,EAAE,UAAU,WAAW,eAAe,kBAAkB,IAAI;AAElE,SACE,oBAAC,cAAc,WAAd,EAAwB,eAAe,MAAM,eAC5C,8BAAC,QAAK,MAAM,MAAM,eAAe,UAAU,oBAAC,aAAU,GACpD,8BAAC,qBAAkB,GACrB,GACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createCerberusPrimitive
|
|
3
|
+
} from "./chunk-WC5DERNW.js";
|
|
4
|
+
|
|
5
|
+
// src/components/admonition/primitives.tsx
|
|
6
|
+
import { ark } from "@ark-ui/react/factory";
|
|
7
|
+
import { admonition } from "styled-system/recipes";
|
|
8
|
+
var { withSlotRecipe, withNoRecipe } = createCerberusPrimitive(admonition);
|
|
9
|
+
var AdmonitionRoot = withSlotRecipe(
|
|
10
|
+
ark.aside,
|
|
11
|
+
"root",
|
|
12
|
+
{
|
|
13
|
+
defaultProps: {
|
|
14
|
+
"data-scope": "admonition",
|
|
15
|
+
"data-part": "root"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
var AdmonitionIndicator = withNoRecipe(
|
|
20
|
+
ark.span,
|
|
21
|
+
{
|
|
22
|
+
defaultProps: {
|
|
23
|
+
"data-scope": "admonition",
|
|
24
|
+
"data-part": "indicator"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
var AdmonitionContent = withNoRecipe(ark.div, {
|
|
29
|
+
defaultProps: {
|
|
30
|
+
"data-scope": "admonition",
|
|
31
|
+
"data-part": "content"
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
var AdmonitionHeading = withSlotRecipe(
|
|
35
|
+
ark.p,
|
|
36
|
+
"heading",
|
|
37
|
+
{
|
|
38
|
+
defaultProps: {
|
|
39
|
+
"data-scope": "admonition",
|
|
40
|
+
"data-part": "heading"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
var AdmonitionDescription = withSlotRecipe(
|
|
45
|
+
ark.p,
|
|
46
|
+
"description",
|
|
47
|
+
{
|
|
48
|
+
defaultProps: {
|
|
49
|
+
"data-scope": "admonition",
|
|
50
|
+
"data-part": "description"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
export {
|
|
56
|
+
AdmonitionRoot,
|
|
57
|
+
AdmonitionIndicator,
|
|
58
|
+
AdmonitionContent,
|
|
59
|
+
AdmonitionHeading,
|
|
60
|
+
AdmonitionDescription
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=chunk-V3LIZS3V.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/admonition/primitives.tsx"],"sourcesContent":["import { ark, type HTMLArkProps } from '@ark-ui/react/factory'\nimport { admonition, type AdmonitionVariantProps } from 'styled-system/recipes'\nimport {\n createCerberusPrimitive,\n type CerberusPrimitiveProps,\n} from '../../system/index'\n\n/**\n * This module contains the primitives of the Admonition components.\n * @module 'admonition/primitives'\n */\n\nconst { withSlotRecipe, withNoRecipe } = createCerberusPrimitive(admonition)\n\n/**\n * The `AdmonitionRoot` component is the container for the Admonition.\n */\nexport const AdmonitionRoot = withSlotRecipe<AdmonitionRootProps>(\n ark.aside,\n 'root',\n {\n defaultProps: {\n 'data-scope': 'admonition',\n 'data-part': 'root',\n },\n },\n)\nexport type AdmonitionRootProps = CerberusPrimitiveProps<\n HTMLArkProps<'aside'> & AdmonitionVariantProps\n>\n\n/**\n * The `AdmonitionIndicator` component is the indicator for the Admonition.\n */\nexport const AdmonitionIndicator = withNoRecipe<AdmonitionIndicatorProps>(\n ark.span,\n {\n defaultProps: {\n 'data-scope': 'admonition',\n 'data-part': 'indicator',\n },\n },\n)\nexport type AdmonitionIndicatorProps = CerberusPrimitiveProps<\n HTMLArkProps<'span'>\n>\n\n/**\n * The `AdmonitionContent` component is the content for the Admonition.\n */\nexport const AdmonitionContent = withNoRecipe<AdmonitionContentProps>(ark.div, {\n defaultProps: {\n 'data-scope': 'admonition',\n 'data-part': 'content',\n },\n})\nexport type AdmonitionContentProps = CerberusPrimitiveProps<HTMLArkProps<'div'>>\n\n/**\n * The `AdmonitionHeading` component is the heading title for the Admonition.\n */\nexport const AdmonitionHeading = withSlotRecipe<AdmonitionHeadingProps>(\n ark.p,\n 'heading',\n {\n defaultProps: {\n 'data-scope': 'admonition',\n 'data-part': 'heading',\n },\n },\n)\nexport type AdmonitionHeadingProps = CerberusPrimitiveProps<\n HTMLArkProps<'p'> & AdmonitionVariantProps\n>\n\n/**\n * The `AdmonitionDescription` component is the description for the Admonition.\n */\nexport const AdmonitionDescription = withSlotRecipe<AdmonitionDescriptionProps>(\n ark.p,\n 'description',\n {\n defaultProps: {\n 'data-scope': 'admonition',\n 'data-part': 'description',\n },\n },\n)\nexport type AdmonitionDescriptionProps = CerberusPrimitiveProps<\n HTMLArkProps<'p'> & AdmonitionVariantProps\n>\n"],"mappings":";;;;;AAAA,SAAS,WAA8B;AACvC,SAAS,kBAA+C;AAWxD,IAAM,EAAE,gBAAgB,aAAa,IAAI,wBAAwB,UAAU;AAKpE,IAAM,iBAAiB;AAAA,EAC5B,IAAI;AAAA,EACJ;AAAA,EACA;AAAA,IACE,cAAc;AAAA,MACZ,cAAc;AAAA,MACd,aAAa;AAAA,IACf;AAAA,EACF;AACF;AAQO,IAAM,sBAAsB;AAAA,EACjC,IAAI;AAAA,EACJ;AAAA,IACE,cAAc;AAAA,MACZ,cAAc;AAAA,MACd,aAAa;AAAA,IACf;AAAA,EACF;AACF;AAQO,IAAM,oBAAoB,aAAqC,IAAI,KAAK;AAAA,EAC7E,cAAc;AAAA,IACZ,cAAc;AAAA,IACd,aAAa;AAAA,EACf;AACF,CAAC;AAMM,IAAM,oBAAoB;AAAA,EAC/B,IAAI;AAAA,EACJ;AAAA,EACA;AAAA,IACE,cAAc;AAAA,MACZ,cAAc;AAAA,MACd,aAAa;AAAA,IACf;AAAA,EACF;AACF;AAQO,IAAM,wBAAwB;AAAA,EACnC,IAAI;AAAA,EACJ;AAAA,EACA;AAAA,IACE,cAAc;AAAA,MACZ,cAAc;AAAA,MACd,aAAa;AAAA,IACf;AAAA,EACF;AACF;","names":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FieldLabel
|
|
3
|
+
} from "./chunk-MBZHMWPR.js";
|
|
4
|
+
|
|
5
|
+
// src/components/deprecated/Label.tsx
|
|
6
|
+
import { label } from "styled-system/recipes";
|
|
7
|
+
import { cx } from "styled-system/css";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
function Label(props) {
|
|
10
|
+
const { size, ...nativeProps } = props;
|
|
11
|
+
return /* @__PURE__ */ jsx(
|
|
12
|
+
FieldLabel,
|
|
13
|
+
{
|
|
14
|
+
...nativeProps,
|
|
15
|
+
className: cx(label({ size }), props.className)
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export {
|
|
21
|
+
Label
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=chunk-VB5XZZKE.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createCerberusPrimitive
|
|
3
|
+
} from "./chunk-WC5DERNW.js";
|
|
4
|
+
|
|
5
|
+
// src/components/toggle/primitives.tsx
|
|
6
|
+
import {
|
|
7
|
+
Toggle
|
|
8
|
+
} from "@ark-ui/react/toggle";
|
|
9
|
+
var { withNoRecipe } = createCerberusPrimitive();
|
|
10
|
+
var ToggleRoot = withNoRecipe(Toggle.Root);
|
|
11
|
+
var ToggleIndicator = withNoRecipe(
|
|
12
|
+
Toggle.Indicator
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
ToggleRoot,
|
|
17
|
+
ToggleIndicator
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=chunk-VKL3CMI3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/toggle/primitives.tsx"],"sourcesContent":["import {\n Toggle,\n type ToggleIndicatorProps as ArkToggleIndicatorProps,\n type ToggleRootProps as ArkToggleRootProps,\n} from '@ark-ui/react/toggle'\nimport {\n createCerberusPrimitive,\n type CerberusPrimitiveProps,\n} from '../../system/index'\n\n/**\n * This module provides the Toggle primitives.\n * @module 'react/toggle'\n */\n\nconst { withNoRecipe } = createCerberusPrimitive()\n\n// Root\n\nexport type ToggleRootProps = CerberusPrimitiveProps<ArkToggleRootProps>\nexport const ToggleRoot = withNoRecipe<ToggleRootProps>(Toggle.Root)\n\n// Indicator\n\nexport type ToggleIndicatorProps =\n CerberusPrimitiveProps<ArkToggleIndicatorProps>\nexport const ToggleIndicator = withNoRecipe<ToggleIndicatorProps>(\n Toggle.Indicator,\n)\n"],"mappings":";;;;;AAAA;AAAA,EACE;AAAA,OAGK;AAWP,IAAM,EAAE,aAAa,IAAI,wBAAwB;AAK1C,IAAM,aAAa,aAA8B,OAAO,IAAI;AAM5D,IAAM,kBAAkB;AAAA,EAC7B,OAAO;AACT;","names":[]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createCerberusPrimitive
|
|
3
|
+
} from "./chunk-WC5DERNW.js";
|
|
4
|
+
|
|
5
|
+
// src/components/progress/primitives.ts
|
|
6
|
+
import { ark } from "@ark-ui/react/factory";
|
|
7
|
+
import {
|
|
8
|
+
progressBar
|
|
9
|
+
} from "styled-system/recipes";
|
|
10
|
+
var { withSlotRecipe } = createCerberusPrimitive(progressBar);
|
|
11
|
+
var ProgressBarRoot = withSlotRecipe(
|
|
12
|
+
ark.div,
|
|
13
|
+
"root",
|
|
14
|
+
{
|
|
15
|
+
defaultProps: {
|
|
16
|
+
"aria-valuemin": "0",
|
|
17
|
+
"aria-valuemax": "100",
|
|
18
|
+
role: "progressbar"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
var ProgressBarBar = withSlotRecipe(
|
|
23
|
+
ark.div,
|
|
24
|
+
"bar"
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
ProgressBarRoot,
|
|
29
|
+
ProgressBarBar
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=chunk-VOVGPV7G.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/progress/primitives.ts"],"sourcesContent":["import { ark, type HTMLArkProps } from '@ark-ui/react/factory'\nimport {\n progressBar,\n type ProgressBarVariantProps,\n} from 'styled-system/recipes'\nimport {\n createCerberusPrimitive,\n type CerberusPrimitiveProps,\n} from '../../system/index'\n\n/**\n * This module contains the ProgressBar component primitives.\n * @module @cerberus-design/react/components/progress-bar/primitives\n */\n\nconst { withSlotRecipe } = createCerberusPrimitive(progressBar)\n\n// Root\n\nexport type ProgressBarRootProps = CerberusPrimitiveProps<\n HTMLArkProps<'div'> & ProgressBarVariantProps\n>\nexport const ProgressBarRoot = withSlotRecipe<ProgressBarRootProps>(\n ark.div,\n 'root',\n {\n defaultProps: {\n 'aria-valuemin': '0',\n 'aria-valuemax': '100',\n role: 'progressbar',\n },\n },\n)\n\n// Bar\n\nexport type ProgressBarBarProps = CerberusPrimitiveProps<\n HTMLArkProps<'div'> & ProgressBarVariantProps\n>\nexport const ProgressBarBar = withSlotRecipe<ProgressBarBarProps>(\n ark.div,\n 'bar',\n)\n"],"mappings":";;;;;AAAA,SAAS,WAA8B;AACvC;AAAA,EACE;AAAA,OAEK;AAWP,IAAM,EAAE,eAAe,IAAI,wBAAwB,WAAW;AAOvD,IAAM,kBAAkB;AAAA,EAC7B,IAAI;AAAA,EACJ;AAAA,EACA;AAAA,IACE,cAAc;AAAA,MACZ,iBAAiB;AAAA,MACjB,iBAAiB;AAAA,MACjB,MAAM;AAAA,IACR;AAAA,EACF;AACF;AAOO,IAAM,iBAAiB;AAAA,EAC5B,IAAI;AAAA,EACJ;AACF;","names":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// src/components/text/text.tsx
|
|
2
|
+
import {
|
|
3
|
+
Em,
|
|
4
|
+
H1,
|
|
5
|
+
H2,
|
|
6
|
+
H3,
|
|
7
|
+
H4,
|
|
8
|
+
H5,
|
|
9
|
+
H6,
|
|
10
|
+
P,
|
|
11
|
+
Small,
|
|
12
|
+
Span,
|
|
13
|
+
Strong
|
|
14
|
+
} from "styled-system/jsx";
|
|
15
|
+
import { jsx } from "react/jsx-runtime";
|
|
16
|
+
function Text(props) {
|
|
17
|
+
const { as = "p", ...pandaJSXProps } = props;
|
|
18
|
+
const cache = {
|
|
19
|
+
h1: H1,
|
|
20
|
+
h2: H2,
|
|
21
|
+
h3: H3,
|
|
22
|
+
h4: H4,
|
|
23
|
+
h5: H5,
|
|
24
|
+
h6: H6,
|
|
25
|
+
strong: Strong,
|
|
26
|
+
em: Em,
|
|
27
|
+
small: Small,
|
|
28
|
+
span: Span,
|
|
29
|
+
p: P
|
|
30
|
+
};
|
|
31
|
+
if (as in cache) {
|
|
32
|
+
const Component = cache[as];
|
|
33
|
+
return /* @__PURE__ */ jsx(Component, { ...pandaJSXProps });
|
|
34
|
+
}
|
|
35
|
+
return /* @__PURE__ */ jsx(P, { ...pandaJSXProps });
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export {
|
|
39
|
+
Text
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=chunk-VPD3PPBW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/text/text.tsx"],"sourcesContent":["import {\n Em,\n H1,\n H2,\n H3,\n H4,\n H5,\n H6,\n P,\n Small,\n Span,\n Strong,\n type PProps,\n} from 'styled-system/jsx'\n\n/**\n * This module exports a component for rendering text utilizing the styled-system JSX utility.\n * @module @cerberus/react/Text\n */\n\nexport type Headings = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'\nexport type TextElements = 'p' | 'strong' | 'em' | 'small' | 'span'\n\n// For some reason we have to use the HTMLParagraphElement type here\n// or else TS will fail for non-style props like 'id' or 'className'\nexport interface TextProps extends PProps {\n /**\n * The element to render as. Defaults to 'p'.\n */\n as?: TextElements | Headings\n}\n\n/**\n * A component for rendering text utilizing the styled-system JSX utility.\n * @definition [Text docs](https://cerberus.digitalu.design/react/text)\n * @example\n * ```tsx\n * <Text as=\"h1\" color=\"page.text.100\" textStyle={{\n * base: 'heading-md',\n * md: 'heading-lg',\n * }}>\n * Hello, world!\n * </Text>\n */\nexport function Text(props: TextProps) {\n const { as = 'p', ...pandaJSXProps } = props\n\n const cache = {\n h1: H1,\n h2: H2,\n h3: H3,\n h4: H4,\n h5: H5,\n h6: H6,\n strong: Strong,\n em: Em,\n small: Small,\n span: Span,\n p: P,\n }\n\n if (as in cache) {\n const Component = cache[as as keyof typeof cache]\n return <Component {...pandaJSXProps} />\n }\n\n return <P {...pandaJSXProps} />\n}\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAkDI;AAnBJ,SAAS,KAAK,OAAkB;AACrC,QAAM,EAAE,KAAK,KAAK,GAAG,cAAc,IAAI;AAEvC,QAAM,QAAQ;AAAA,IACZ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,QAAQ;AAAA,IACR,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,MAAM;AAAA,IACN,GAAG;AAAA,EACL;AAEA,MAAI,MAAM,OAAO;AACf,UAAM,YAAY,MAAM,EAAwB;AAChD,WAAO,oBAAC,aAAW,GAAG,eAAe;AAAA,EACvC;AAEA,SAAO,oBAAC,KAAG,GAAG,eAAe;AAC/B;","names":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RatingParts
|
|
3
|
+
} from "./chunk-6LH6MOXD.js";
|
|
4
|
+
import {
|
|
5
|
+
Show
|
|
6
|
+
} from "./chunk-NUXMADXV.js";
|
|
7
|
+
import {
|
|
8
|
+
splitProps
|
|
9
|
+
} from "./chunk-BL7G3577.js";
|
|
10
|
+
|
|
11
|
+
// src/components/rating/rating.tsx
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
function Rating(props) {
|
|
14
|
+
const [{ label }, styleProps, rootProps] = splitProps(
|
|
15
|
+
props,
|
|
16
|
+
["label"],
|
|
17
|
+
["orientation", "palette", "size"]
|
|
18
|
+
);
|
|
19
|
+
return /* @__PURE__ */ jsxs(RatingParts.Root, { ...styleProps, ...rootProps, children: [
|
|
20
|
+
/* @__PURE__ */ jsx(Show, { when: label, children: /* @__PURE__ */ jsx(RatingParts.Label, { children: label }) }),
|
|
21
|
+
/* @__PURE__ */ jsx(RatingParts.Control, { children: /* @__PURE__ */ jsx(RatingParts.Context, { children: (context) => context.items.map((item) => /* @__PURE__ */ jsx(
|
|
22
|
+
RatingParts.Item,
|
|
23
|
+
{
|
|
24
|
+
index: item,
|
|
25
|
+
palette: styleProps.palette,
|
|
26
|
+
children: /* @__PURE__ */ jsx(RatingParts.ItemContext, { children: rootProps.children })
|
|
27
|
+
},
|
|
28
|
+
item
|
|
29
|
+
)) }) })
|
|
30
|
+
] });
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export {
|
|
34
|
+
Rating
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=chunk-VQ3NO6IC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/rating/rating.tsx"],"sourcesContent":["import type {\n UseRatingGroupContext,\n UseRatingGroupItemContext,\n} from '@ark-ui/react/rating-group'\nimport type { ReactNode } from 'react'\nimport { splitProps } from '../../utils/index'\nimport { Show } from '../show/index'\nimport { RatingParts } from './parts'\nimport type { RatingRootProps } from './primitives'\n\n/**\n * This module contains the abstracted Rating component.\n * @module 'react/rating'\n */\n\nexport interface RatingProps extends Omit<RatingRootProps, 'children'> {\n /**\n * The label of the rating component.\n */\n label?: string\n /**\n * The children of the rating component.\n */\n children: (context: UseRatingGroupItemContext) => ReactNode\n}\n\n/**\n * The Rating component is an abstraction of the primitives which provides a\n * visual rating system for a user to select a value.\n * @description [Cerberus Docs](https://cerberus.digitalu.design/react/rating)\n * @description [Ark Docs](https://ark-ui.com/react/docs/components/rating-group#api-reference)\n * @example\n * ```tsx\n * <Rating count={5} defaultValue={3} allowHalf>\n * {({ half, highlighted }) => {\n * if (half) return <StarHalfIcon fill=\"current\" />\n * if (highlighted) return <StarIcon fill=\"current\" />\n * return <StarIcon />\n * }}\n * </Rating>\n * ```\n */\nexport function Rating(props: RatingProps) {\n const [{ label }, styleProps, rootProps] = splitProps(\n props,\n ['label'],\n ['orientation', 'palette', 'size'],\n )\n\n return (\n <RatingParts.Root {...styleProps} {...rootProps}>\n <Show when={label}>\n <RatingParts.Label>{label}</RatingParts.Label>\n </Show>\n\n <RatingParts.Control>\n <RatingParts.Context>\n {(context: UseRatingGroupContext) =>\n context.items.map((item) => (\n <RatingParts.Item\n key={item}\n index={item}\n palette={styleProps.palette}\n >\n <RatingParts.ItemContext>\n {rootProps.children}\n </RatingParts.ItemContext>\n </RatingParts.Item>\n ))\n }\n </RatingParts.Context>\n </RatingParts.Control>\n </RatingParts.Root>\n )\n}\n"],"mappings":";;;;;;;;;;;AAkDI,SAEI,KAFJ;AARG,SAAS,OAAO,OAAoB;AACzC,QAAM,CAAC,EAAE,MAAM,GAAG,YAAY,SAAS,IAAI;AAAA,IACzC;AAAA,IACA,CAAC,OAAO;AAAA,IACR,CAAC,eAAe,WAAW,MAAM;AAAA,EACnC;AAEA,SACE,qBAAC,YAAY,MAAZ,EAAkB,GAAG,YAAa,GAAG,WACpC;AAAA,wBAAC,QAAK,MAAM,OACV,8BAAC,YAAY,OAAZ,EAAmB,iBAAM,GAC5B;AAAA,IAEA,oBAAC,YAAY,SAAZ,EACC,8BAAC,YAAY,SAAZ,EACE,WAAC,YACA,QAAQ,MAAM,IAAI,CAAC,SACjB;AAAA,MAAC,YAAY;AAAA,MAAZ;AAAA,QAEC,OAAO;AAAA,QACP,SAAS,WAAW;AAAA,QAEpB,8BAAC,YAAY,aAAZ,EACE,oBAAU,UACb;AAAA;AAAA,MANK;AAAA,IAOP,CACD,GAEL,GACF;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-VT6DJ2VM.js.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CerberusPrimitive
|
|
3
|
+
} from "./chunk-GZ6T3352.js";
|
|
4
|
+
|
|
5
|
+
// src/system/factory.ts
|
|
6
|
+
import { ark } from "@ark-ui/react/factory";
|
|
7
|
+
|
|
8
|
+
// src/system/index.ts
|
|
9
|
+
function createCerberusPrimitive(recipe) {
|
|
10
|
+
return new CerberusPrimitive(recipe);
|
|
11
|
+
}
|
|
12
|
+
var cerberus = cerberusFactoryProxy;
|
|
13
|
+
|
|
14
|
+
// src/system/factory.ts
|
|
15
|
+
function cerberusFactory(component, defaultProps) {
|
|
16
|
+
const { withNoRecipe } = createCerberusPrimitive();
|
|
17
|
+
const arkComponent = ark[component];
|
|
18
|
+
if (arkComponent) {
|
|
19
|
+
return withNoRecipe(arkComponent, { defaultProps: defaultProps ?? {} });
|
|
20
|
+
}
|
|
21
|
+
throw new Error(
|
|
22
|
+
`Component "${String(component)}" is not a valid Cerberus component. Please check the component name.`
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
var cache = /* @__PURE__ */ new Map();
|
|
26
|
+
var cerberusFactoryProxy = new Proxy(cerberusFactory, {
|
|
27
|
+
apply(target, thisArg, argArray) {
|
|
28
|
+
return target.apply(thisArg, argArray);
|
|
29
|
+
},
|
|
30
|
+
get(_target, el) {
|
|
31
|
+
if (!cache.has(el)) {
|
|
32
|
+
cache.set(el, cerberusFactory(el));
|
|
33
|
+
}
|
|
34
|
+
return cache.get(el);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export {
|
|
39
|
+
cerberusFactoryProxy,
|
|
40
|
+
createCerberusPrimitive,
|
|
41
|
+
cerberus
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=chunk-WC5DERNW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/system/factory.ts","../../src/system/index.ts"],"sourcesContent":["import { ark } from '@ark-ui/react/factory'\nimport { createCerberusPrimitive } from './index'\nimport type { ComponentType } from 'react'\n\nfunction cerberusFactory<T extends Record<string, unknown>>(\n component: keyof typeof ark,\n defaultProps?: T,\n) {\n const { withNoRecipe } = createCerberusPrimitive()\n const arkComponent = ark[component] as ComponentType\n\n if (arkComponent) {\n return withNoRecipe(arkComponent, { defaultProps: defaultProps ?? {} })\n }\n\n throw new Error(\n `Component \"${String(component)}\" is not a valid Cerberus component. Please check the component name.`,\n )\n}\n\nconst cache = new Map()\n\n// Create a proxy that handles both function calls and property access\nexport const cerberusFactoryProxy = new Proxy(cerberusFactory, {\n apply(target, thisArg, argArray) {\n // Handle function calls like cerberus('button')\n // @ts-expect-error: Ignore type error for dynamic property access\n return target.apply(thisArg, argArray)\n },\n get(_target, el: keyof typeof ark) {\n // Handle property access like cerberus.button\n if (!cache.has(el)) {\n cache.set(el, cerberusFactory(el))\n }\n return cache.get(el) as ReturnType<typeof cerberusFactory>\n },\n})\n","import { CerberusPrimitive } from './primitive-factory'\nimport type { CerberusFactory, CerberusPrimitiveRecipe } from './types'\nimport { cerberusFactoryProxy } from './factory'\n\n/**\n * This module contains the user interface for creating Cerberus primitives.\n * @module @cerberus/core/system/create-cerb-primitive\n */\n\n/**\n * A factory function that creates a Cerberus primitive instance with the given\n * recipe.\n * @param recipe\n * @returns An object with three methods: `withNoRecipe`, `withRecipe`, and `withSlotRecipe` that\n * apply the recipes and special Cerberus helpers like `css`.\n *\n * @example\n * ```tsx\n * const { withRecipe } = createCerberusPrimitive(myCustomRecipe);\n * export const Button = withRecipe(MyCustomButton)\n * ```\n */\nexport function createCerberusPrimitive<T extends CerberusPrimitiveRecipe>(\n recipe?: T,\n) {\n return new CerberusPrimitive(recipe)\n}\n\n/**\n * A utility function to access Cerberus components by their name.\n * @param component - The name of the Cerberus component to access.\n * @returns The Cerberus component corresponding to the provided name.\n * @throws An error if the component name is not valid.\n *\n * @example\n * ```tsx\n * import { cerberus } from '@cerberus/react'\n * const Button = cerberus('button')\n *\n * <Button css={{ color: 'blue' }} asChild>\n * <Link href=\"/some-page\">Click me</Link>\n * </Button>\n * ```\n */\nexport const cerberus = cerberusFactoryProxy as CerberusFactory\n\nexport * from './types'\n"],"mappings":";;;;;AAAA,SAAS,WAAW;;;ACsBb,SAAS,wBACd,QACA;AACA,SAAO,IAAI,kBAAkB,MAAM;AACrC;AAkBO,IAAM,WAAW;;;ADxCxB,SAAS,gBACP,WACA,cACA;AACA,QAAM,EAAE,aAAa,IAAI,wBAAwB;AACjD,QAAM,eAAe,IAAI,SAAS;AAElC,MAAI,cAAc;AAChB,WAAO,aAAa,cAAc,EAAE,cAAc,gBAAgB,CAAC,EAAE,CAAC;AAAA,EACxE;AAEA,QAAM,IAAI;AAAA,IACR,cAAc,OAAO,SAAS,CAAC;AAAA,EACjC;AACF;AAEA,IAAM,QAAQ,oBAAI,IAAI;AAGf,IAAM,uBAAuB,IAAI,MAAM,iBAAiB;AAAA,EAC7D,MAAM,QAAQ,SAAS,UAAU;AAG/B,WAAO,OAAO,MAAM,SAAS,QAAQ;AAAA,EACvC;AAAA,EACA,IAAI,SAAS,IAAsB;AAEjC,QAAI,CAAC,MAAM,IAAI,EAAE,GAAG;AAClB,YAAM,IAAI,IAAI,gBAAgB,EAAE,CAAC;AAAA,IACnC;AACA,WAAO,MAAM,IAAI,EAAE;AAAA,EACrB;AACF,CAAC;","names":[]}
|