@cerberus-design/react 1.9.0 → 2.0.0-next.1793635870652.2aab4d5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AnimatingUploadIcon.cjs +1 -2
- package/dist/components/AnimatingUploadIcon.js +1 -2
- package/dist/components/accordion/item-group.cjs +1 -2
- package/dist/components/accordion/item-group.d.cts +1 -1
- package/dist/components/accordion/item-group.d.ts +1 -1
- package/dist/components/accordion/item-group.js +1 -2
- package/dist/components/accordion/item-indicator.cjs +1 -2
- package/dist/components/accordion/item-indicator.d.cts +1 -1
- package/dist/components/accordion/item-indicator.d.ts +1 -1
- package/dist/components/accordion/item-indicator.js +1 -2
- package/dist/components/accordion/parts.cjs +1 -2
- package/dist/components/accordion/parts.js +1 -2
- package/dist/components/accordion/primitives.cjs +1 -2
- package/dist/components/accordion/primitives.d.cts +1 -1
- package/dist/components/accordion/primitives.d.ts +1 -1
- package/dist/components/accordion/primitives.js +1 -2
- package/dist/components/admonition/admonition.cjs +1 -2
- package/dist/components/admonition/admonition.js +1 -2
- package/dist/components/admonition/match-avatar.cjs +1 -2
- package/dist/components/admonition/match-avatar.d.cts +1 -1
- package/dist/components/admonition/match-avatar.d.ts +1 -1
- package/dist/components/admonition/match-avatar.js +1 -2
- package/dist/components/admonition/parts.cjs +1 -2
- package/dist/components/admonition/parts.js +1 -2
- package/dist/components/admonition/primitives.cjs +1 -2
- package/dist/components/admonition/primitives.d.cts +1 -1
- package/dist/components/admonition/primitives.d.ts +1 -1
- package/dist/components/admonition/primitives.js +1 -2
- package/dist/components/avatar/avatar.cjs +1 -2
- package/dist/components/avatar/avatar.js +1 -2
- package/dist/components/avatar/parts.cjs +1 -2
- package/dist/components/avatar/parts.js +1 -2
- package/dist/components/avatar/primitives.cjs +1 -2
- package/dist/components/avatar/primitives.d.cts +1 -1
- package/dist/components/avatar/primitives.d.ts +1 -1
- package/dist/components/avatar/primitives.js +1 -2
- package/dist/components/button/button.cjs +1 -2
- package/dist/components/button/button.js +3 -4
- package/dist/components/button/parts.cjs +1 -2
- package/dist/components/button/parts.js +1 -2
- package/dist/components/button/primitives.cjs +1 -2
- package/dist/components/button/primitives.d.cts +1 -1
- package/dist/components/button/primitives.d.ts +1 -1
- package/dist/components/button/primitives.js +1 -2
- package/dist/components/carousel/carousel.cjs +1 -2
- package/dist/components/carousel/carousel.js +1 -2
- package/dist/components/carousel/parts.cjs +1 -2
- package/dist/components/carousel/parts.js +1 -2
- package/dist/components/carousel/primitives.cjs +1 -2
- package/dist/components/carousel/primitives.d.cts +1 -1
- package/dist/components/carousel/primitives.d.ts +1 -1
- package/dist/components/carousel/primitives.js +1 -2
- package/dist/components/checkbox/checkbox-icon.cjs +1 -2
- package/dist/components/checkbox/checkbox-icon.js +1 -2
- package/dist/components/checkbox/checkbox.cjs +1 -2
- package/dist/components/checkbox/checkbox.d.cts +1 -1
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/checkbox/checkbox.js +1 -2
- package/dist/components/checkbox/parts.cjs +1 -2
- package/dist/components/checkbox/parts.js +1 -2
- package/dist/components/checkbox/primitives.cjs +1 -2
- package/dist/components/checkbox/primitives.d.cts +1 -1
- package/dist/components/checkbox/primitives.d.ts +1 -1
- package/dist/components/checkbox/primitives.js +1 -2
- package/dist/components/circular-progress/circular-progress.cjs +1 -2
- package/dist/components/circular-progress/circular-progress.js +1 -2
- package/dist/components/circular-progress/primitives.cjs +1 -2
- package/dist/components/circular-progress/primitives.d.cts +1 -1
- package/dist/components/circular-progress/primitives.d.ts +1 -1
- package/dist/components/circular-progress/primitives.js +1 -2
- package/dist/components/clipboard/copy-indicator.cjs +1 -2
- package/dist/components/clipboard/copy-indicator.js +1 -2
- package/dist/components/clipboard/copy-text.cjs +1 -2
- package/dist/components/clipboard/copy-text.js +1 -2
- package/dist/components/clipboard/parts.cjs +1 -2
- package/dist/components/clipboard/parts.js +1 -2
- package/dist/components/clipboard/primitives.cjs +1 -2
- package/dist/components/clipboard/primitives.js +1 -2
- package/dist/components/clipboard/trigger.cjs +1 -2
- package/dist/components/clipboard/trigger.js +1 -2
- package/dist/components/collapsible/parts.cjs +1 -2
- package/dist/components/collapsible/parts.js +1 -2
- package/dist/components/collapsible/primitives.cjs +1 -2
- package/dist/components/collapsible/primitives.d.cts +1 -1
- package/dist/components/collapsible/primitives.d.ts +1 -1
- package/dist/components/collapsible/primitives.js +1 -2
- package/dist/components/combobox/combobox.cjs +1 -2
- package/dist/components/combobox/combobox.d.cts +1 -1
- package/dist/components/combobox/combobox.d.ts +1 -1
- package/dist/components/combobox/combobox.js +1 -2
- package/dist/components/combobox/item-group.cjs +1 -2
- package/dist/components/combobox/item-group.js +1 -2
- package/dist/components/combobox/item.cjs +1 -2
- package/dist/components/combobox/item.js +1 -2
- package/dist/components/combobox/parts.cjs +1 -2
- package/dist/components/combobox/parts.js +1 -2
- package/dist/components/combobox/primitives.cjs +1 -2
- package/dist/components/combobox/primitives.d.cts +1 -1
- package/dist/components/combobox/primitives.d.ts +1 -1
- package/dist/components/combobox/primitives.js +1 -2
- package/dist/components/combobox/use-stateful-collection.cjs +1 -2
- package/dist/components/combobox/use-stateful-collection.js +1 -2
- package/dist/components/cta-dialog/context.cjs +1 -2
- package/dist/components/cta-dialog/context.js +1 -2
- package/dist/components/cta-dialog/provider.cjs +1 -2
- package/dist/components/cta-dialog/provider.js +1 -2
- package/dist/components/cta-dialog/trigger-item.cjs +1 -2
- package/dist/components/cta-dialog/trigger-item.js +1 -2
- package/dist/components/cta-dialog/utils.cjs +1 -2
- package/dist/components/cta-dialog/utils.js +1 -2
- package/dist/components/date-picker/calendar.cjs +1 -2
- package/dist/components/date-picker/calendar.js +1 -2
- package/dist/components/date-picker/content.cjs +1 -2
- package/dist/components/date-picker/content.js +1 -2
- package/dist/components/date-picker/date-picker.cjs +1 -2
- package/dist/components/date-picker/date-picker.js +1 -2
- package/dist/components/date-picker/day-view.cjs +1 -2
- package/dist/components/date-picker/day-view.js +1 -2
- package/dist/components/date-picker/input.cjs +1 -2
- package/dist/components/date-picker/input.js +1 -2
- package/dist/components/date-picker/month-view.cjs +1 -2
- package/dist/components/date-picker/month-view.js +1 -2
- package/dist/components/date-picker/parts.cjs +1 -2
- package/dist/components/date-picker/parts.js +1 -2
- package/dist/components/date-picker/primitives.cjs +1 -2
- package/dist/components/date-picker/primitives.js +1 -2
- package/dist/components/date-picker/range-input.cjs +1 -2
- package/dist/components/date-picker/range-input.js +1 -2
- package/dist/components/date-picker/trigger.cjs +1 -2
- package/dist/components/date-picker/trigger.js +1 -2
- package/dist/components/date-picker/view-control-group.cjs +1 -2
- package/dist/components/date-picker/view-control-group.js +1 -2
- package/dist/components/date-picker/year-view.cjs +1 -2
- package/dist/components/date-picker/year-view.js +1 -2
- package/dist/components/dialog/close-icon-trigger.cjs +1 -2
- package/dist/components/dialog/close-icon-trigger.js +1 -2
- package/dist/components/dialog/dialog.cjs +1 -2
- package/dist/components/dialog/dialog.js +1 -2
- package/dist/components/dialog/parts.cjs +1 -2
- package/dist/components/dialog/parts.js +1 -2
- package/dist/components/dialog/primitives.cjs +1 -2
- package/dist/components/dialog/primitives.d.cts +1 -1
- package/dist/components/dialog/primitives.d.ts +1 -1
- package/dist/components/dialog/primitives.js +1 -2
- package/dist/components/feature-flag/feature-flag.cjs +1 -2
- package/dist/components/feature-flag/feature-flag.js +1 -2
- package/dist/components/field/error-text.cjs +1 -2
- package/dist/components/field/error-text.js +1 -2
- package/dist/components/field/field.cjs +1 -2
- package/dist/components/field/field.js +1 -2
- package/dist/components/field/helper-text.cjs +1 -2
- package/dist/components/field/helper-text.js +1 -2
- package/dist/components/field/input.cjs +1 -2
- package/dist/components/field/input.d.cts +1 -1
- package/dist/components/field/input.d.ts +1 -1
- package/dist/components/field/input.js +1 -2
- package/dist/components/field/parts.cjs +1 -2
- package/dist/components/field/parts.js +1 -2
- package/dist/components/field/primitives.cjs +1 -2
- package/dist/components/field/primitives.d.cts +1 -1
- package/dist/components/field/primitives.d.ts +1 -1
- package/dist/components/field/primitives.js +1 -2
- package/dist/components/field/start-indicator.cjs +1 -2
- package/dist/components/field/start-indicator.js +1 -2
- package/dist/components/field/status-indicator.cjs +1 -2
- package/dist/components/field/status-indicator.js +1 -2
- package/dist/components/fieldset/fieldset.cjs +1 -2
- package/dist/components/fieldset/fieldset.js +1 -2
- package/dist/components/fieldset/parts.cjs +1 -2
- package/dist/components/fieldset/parts.js +1 -2
- package/dist/components/fieldset/primitives.cjs +1 -2
- package/dist/components/fieldset/primitives.d.cts +1 -1
- package/dist/components/fieldset/primitives.d.ts +1 -1
- package/dist/components/fieldset/primitives.js +1 -2
- package/dist/components/file-upload/file-status.cjs +1 -2
- package/dist/components/file-upload/file-status.d.cts +1 -1
- package/dist/components/file-upload/file-status.d.ts +1 -1
- package/dist/components/file-upload/file-status.js +1 -2
- package/dist/components/file-upload/file-uploader.cjs +1 -2
- package/dist/components/file-upload/file-uploader.js +1 -2
- package/dist/components/file-upload/helpers.cjs +1 -2
- package/dist/components/file-upload/helpers.js +1 -2
- package/dist/components/file-upload/img-preview.cjs +1 -2
- package/dist/components/file-upload/img-preview.js +1 -2
- package/dist/components/file-upload/parts.cjs +1 -2
- package/dist/components/file-upload/parts.js +1 -2
- package/dist/components/file-upload/primitives.cjs +1 -2
- package/dist/components/file-upload/primitives.d.cts +1 -1
- package/dist/components/file-upload/primitives.d.ts +1 -1
- package/dist/components/file-upload/primitives.js +1 -2
- package/dist/components/file-upload/utils.cjs +1 -2
- package/dist/components/file-upload/utils.js +1 -2
- package/dist/components/for/for.cjs +1 -2
- package/dist/components/for/for.js +1 -2
- package/dist/components/group/primitives.cjs +3 -5
- package/dist/components/group/primitives.d.cts +6 -6
- package/dist/components/group/primitives.d.ts +6 -6
- package/dist/components/group/primitives.js +4 -5
- package/dist/components/icon-button/button.cjs +1 -2
- package/dist/components/icon-button/button.js +1 -2
- package/dist/components/icon-button/primitives.cjs +1 -2
- package/dist/components/icon-button/primitives.d.cts +1 -1
- package/dist/components/icon-button/primitives.d.ts +1 -1
- package/dist/components/icon-button/primitives.js +1 -2
- package/dist/components/marquee/marquee.cjs +1 -2
- package/dist/components/marquee/marquee.js +1 -2
- package/dist/components/marquee/primitives.cjs +1 -2
- package/dist/components/marquee/primitives.d.cts +1 -1
- package/dist/components/marquee/primitives.d.ts +1 -1
- package/dist/components/marquee/primitives.js +1 -2
- package/dist/components/marquee/utils.cjs +1 -2
- package/dist/components/marquee/utils.js +1 -2
- package/dist/components/menu/menu.cjs +1 -2
- package/dist/components/menu/menu.js +1 -2
- package/dist/components/menu/primitives.cjs +1 -2
- package/dist/components/menu/primitives.js +1 -2
- package/dist/components/notifications/center.cjs +1 -2
- package/dist/components/notifications/center.js +1 -2
- package/dist/components/notifications/close-trigger.cjs +1 -2
- package/dist/components/notifications/close-trigger.js +1 -2
- package/dist/components/notifications/match-icon.cjs +1 -2
- package/dist/components/notifications/match-icon.js +1 -2
- package/dist/components/notifications/parts.cjs +1 -2
- package/dist/components/notifications/parts.js +1 -2
- package/dist/components/notifications/primitives.cjs +1 -2
- package/dist/components/notifications/primitives.d.cts +1 -1
- package/dist/components/notifications/primitives.d.ts +1 -1
- package/dist/components/notifications/primitives.js +1 -2
- package/dist/components/notifications/toaster.cjs +1 -2
- package/dist/components/notifications/toaster.js +1 -2
- package/dist/components/number-input/decrement-trigger.cjs +1 -2
- package/dist/components/number-input/decrement-trigger.js +1 -2
- package/dist/components/number-input/increment-trigger.cjs +1 -2
- package/dist/components/number-input/increment-trigger.js +1 -2
- package/dist/components/number-input/input.cjs +1 -2
- package/dist/components/number-input/input.js +1 -2
- package/dist/components/number-input/parts.cjs +1 -2
- package/dist/components/number-input/parts.js +1 -2
- package/dist/components/number-input/primitives.cjs +1 -2
- package/dist/components/number-input/primitives.d.cts +1 -1
- package/dist/components/number-input/primitives.d.ts +1 -1
- package/dist/components/number-input/primitives.js +1 -2
- package/dist/components/pagination/compact.cjs +1 -2
- package/dist/components/pagination/compact.js +1 -2
- package/dist/components/pagination/item-list.cjs +1 -2
- package/dist/components/pagination/item-list.js +1 -2
- package/dist/components/pagination/item.cjs +1 -2
- package/dist/components/pagination/item.js +1 -2
- package/dist/components/pagination/pagination.cjs +1 -2
- package/dist/components/pagination/pagination.js +1 -2
- package/dist/components/pagination/parts.cjs +1 -2
- package/dist/components/pagination/parts.js +1 -2
- package/dist/components/pagination/primitives.cjs +1 -2
- package/dist/components/pagination/primitives.js +1 -2
- package/dist/components/pagination/triggers.cjs +1 -2
- package/dist/components/pagination/triggers.js +1 -2
- package/dist/components/pin-input/input.cjs +1 -2
- package/dist/components/pin-input/input.js +1 -2
- package/dist/components/pin-input/parts.cjs +1 -2
- package/dist/components/pin-input/parts.js +1 -2
- package/dist/components/pin-input/primitives.cjs +1 -2
- package/dist/components/pin-input/primitives.d.cts +1 -1
- package/dist/components/pin-input/primitives.d.ts +1 -1
- package/dist/components/pin-input/primitives.js +1 -2
- package/dist/components/popover/parts.cjs +1 -2
- package/dist/components/popover/parts.js +1 -2
- package/dist/components/popover/placement-container.cjs +1 -2
- package/dist/components/popover/placement-container.js +1 -2
- package/dist/components/popover/popover.cjs +1 -2
- package/dist/components/popover/popover.js +1 -2
- package/dist/components/popover/primitives.cjs +1 -2
- package/dist/components/popover/primitives.d.cts +1 -1
- package/dist/components/popover/primitives.d.ts +1 -1
- package/dist/components/popover/primitives.js +1 -2
- package/dist/components/portal/portal.cjs +1 -2
- package/dist/components/portal/portal.js +1 -2
- package/dist/components/progress/primitives.cjs +1 -2
- package/dist/components/progress/primitives.d.cts +1 -1
- package/dist/components/progress/primitives.d.ts +1 -1
- package/dist/components/progress/primitives.js +1 -2
- package/dist/components/progress/progress-bar.cjs +1 -2
- package/dist/components/progress/progress-bar.js +1 -2
- package/dist/components/radio/parts.cjs +1 -2
- package/dist/components/radio/parts.js +1 -2
- package/dist/components/radio/primitives.cjs +1 -2
- package/dist/components/radio/primitives.d.cts +1 -1
- package/dist/components/radio/primitives.d.ts +1 -1
- package/dist/components/radio/primitives.js +1 -2
- package/dist/components/radio/radio.cjs +1 -2
- package/dist/components/radio/radio.d.cts +1 -1
- package/dist/components/radio/radio.d.ts +1 -1
- package/dist/components/radio/radio.js +1 -2
- package/dist/components/rating/parts.cjs +1 -2
- package/dist/components/rating/parts.js +1 -2
- package/dist/components/rating/primitives.cjs +1 -2
- package/dist/components/rating/primitives.d.cts +1 -1
- package/dist/components/rating/primitives.d.ts +1 -1
- package/dist/components/rating/primitives.js +1 -2
- package/dist/components/rating/rating.cjs +1 -2
- package/dist/components/rating/rating.js +1 -2
- package/dist/components/select/option-group.cjs +1 -2
- package/dist/components/select/option-group.js +1 -2
- package/dist/components/select/option.cjs +1 -2
- package/dist/components/select/option.js +1 -2
- package/dist/components/select/parts.cjs +1 -2
- package/dist/components/select/parts.js +1 -2
- package/dist/components/select/primitives.cjs +1 -2
- package/dist/components/select/primitives.d.cts +1 -1
- package/dist/components/select/primitives.d.ts +1 -1
- package/dist/components/select/primitives.js +1 -2
- package/dist/components/select/select.cjs +1 -2
- package/dist/components/select/select.js +1 -2
- package/dist/components/show/show.cjs +1 -2
- package/dist/components/show/show.js +1 -2
- package/dist/components/slider/marks.cjs +1 -2
- package/dist/components/slider/marks.js +1 -2
- package/dist/components/slider/primitives.cjs +1 -2
- package/dist/components/slider/primitives.d.cts +1 -1
- package/dist/components/slider/primitives.d.ts +1 -1
- package/dist/components/slider/primitives.js +1 -2
- package/dist/components/slider/slider.cjs +1 -2
- package/dist/components/slider/slider.js +1 -2
- package/dist/components/slider/thumbs.cjs +1 -2
- package/dist/components/slider/thumbs.js +1 -2
- package/dist/components/spinner/spinner.cjs +1 -2
- package/dist/components/spinner/spinner.js +1 -2
- package/dist/components/split-button/button.cjs +1 -2
- package/dist/components/split-button/button.js +1 -2
- package/dist/components/switch/parts.cjs +1 -2
- package/dist/components/switch/parts.js +1 -2
- package/dist/components/switch/primitives.cjs +1 -2
- package/dist/components/switch/primitives.d.cts +1 -1
- package/dist/components/switch/primitives.d.ts +1 -1
- package/dist/components/switch/primitives.js +1 -2
- package/dist/components/switch/switch-indicator.cjs +1 -2
- package/dist/components/switch/switch-indicator.js +1 -2
- package/dist/components/switch/switch.cjs +1 -2
- package/dist/components/switch/switch.js +1 -2
- package/dist/components/table/parts.cjs +1 -2
- package/dist/components/table/parts.js +1 -2
- package/dist/components/table/primitives.cjs +1 -2
- package/dist/components/table/primitives.d.cts +1 -1
- package/dist/components/table/primitives.d.ts +1 -1
- package/dist/components/table/primitives.js +1 -2
- package/dist/components/table/table.cjs +1 -2
- package/dist/components/table/table.js +1 -2
- package/dist/components/tabs/parts.cjs +1 -2
- package/dist/components/tabs/parts.js +1 -2
- package/dist/components/tabs/primitives.cjs +1 -2
- package/dist/components/tabs/primitives.d.cts +1 -1
- package/dist/components/tabs/primitives.d.ts +1 -1
- package/dist/components/tabs/primitives.js +1 -2
- package/dist/components/tabs/tabs.cjs +1 -2
- package/dist/components/tabs/tabs.js +1 -2
- package/dist/components/tag/closable.cjs +18 -10
- package/dist/components/tag/closable.d.cts +1 -8
- package/dist/components/tag/closable.d.ts +1 -8
- package/dist/components/tag/closable.js +19 -11
- package/dist/components/tag/index.cjs +4 -1
- package/dist/components/tag/index.js +2 -2
- package/dist/components/tag/primitives.cjs +12 -7
- package/dist/components/tag/primitives.d.cts +25 -5
- package/dist/components/tag/primitives.d.ts +25 -5
- package/dist/components/tag/primitives.js +10 -8
- package/dist/components/tag/tag.cjs +16 -19
- package/dist/components/tag/tag.d.cts +3 -5
- package/dist/components/tag/tag.d.ts +3 -5
- package/dist/components/tag/tag.js +17 -20
- package/dist/components/text/text.cjs +1 -2
- package/dist/components/text/text.js +1 -2
- package/dist/components/theme/theme.cjs +3 -3
- package/dist/components/theme/theme.d.cts +2 -3
- package/dist/components/theme/theme.d.ts +2 -3
- package/dist/components/theme/theme.js +3 -3
- package/dist/components/toggle/parts.cjs +1 -2
- package/dist/components/toggle/parts.js +1 -2
- package/dist/components/toggle/primitives.cjs +1 -2
- package/dist/components/toggle/primitives.js +1 -2
- package/dist/components/tooltip/parts.cjs +1 -2
- package/dist/components/tooltip/parts.js +1 -2
- package/dist/components/tooltip/primitives.cjs +1 -2
- package/dist/components/tooltip/primitives.js +1 -2
- package/dist/components/tooltip/renderer.cjs +1 -2
- package/dist/components/tooltip/renderer.js +1 -2
- package/dist/components/tooltip/tooltip.cjs +1 -2
- package/dist/components/tooltip/tooltip.js +1 -2
- package/dist/config/defineIcons.cjs +1 -2
- package/dist/config/defineIcons.js +1 -2
- package/dist/config/icons/checkbox.icons.cjs +1 -2
- package/dist/config/icons/checkbox.icons.js +1 -2
- package/dist/config/icons/default.cjs +1 -2
- package/dist/config/icons/default.js +1 -2
- package/dist/config/icons/pinned.icons.cjs +1 -2
- package/dist/config/icons/pinned.icons.js +1 -2
- package/dist/config/icons/sort.icons.cjs +1 -2
- package/dist/config/icons/sort.icons.js +1 -2
- package/dist/config/index.cjs +1 -2
- package/dist/config/index.js +1 -2
- package/dist/context/cerberus.cjs +1 -2
- package/dist/context/cerberus.js +1 -2
- package/dist/context/confirm-modal.cjs +1 -2
- package/dist/context/confirm-modal.js +1 -2
- package/dist/context/feature-flags.cjs +1 -2
- package/dist/context/feature-flags.js +1 -2
- package/dist/context/navMenu.cjs +1 -2
- package/dist/context/navMenu.js +1 -2
- package/dist/context/prompt-modal.cjs +1 -2
- package/dist/context/prompt-modal.js +1 -2
- package/dist/context/theme.cjs +1 -2
- package/dist/context/theme.js +1 -2
- package/dist/hooks/useRootColors.cjs +1 -2
- package/dist/hooks/useRootColors.js +1 -2
- package/dist/hooks/useTheme.cjs +1 -5
- package/dist/hooks/useTheme.js +1 -5
- package/dist/index.cjs +4 -1
- package/dist/index.js +2 -2
- package/dist/panda/buildinfo.json +13983 -0
- package/dist/panda/lib.json +241 -0
- package/dist/panda/preset.mjs +42757 -0
- package/dist/system/factory.cjs +1 -2
- package/dist/system/factory.d.cts +1 -1
- package/dist/system/factory.d.ts +1 -1
- package/dist/system/factory.js +1 -2
- package/dist/system/index.cjs +1 -2
- package/dist/system/index.js +1 -2
- package/dist/system/primitive-factory.cjs +1 -2
- package/dist/system/primitive-factory.d.cts +1 -1
- package/dist/system/primitive-factory.d.ts +1 -1
- package/dist/system/primitive-factory.js +1 -2
- package/dist/system/types.d.cts +3 -2
- package/dist/system/types.d.ts +3 -2
- package/dist/utils/index.cjs +1 -2
- package/dist/utils/index.js +1 -2
- package/dist/utils/localStorage.cjs +1 -2
- package/dist/utils/localStorage.js +1 -2
- package/package.json +90 -38
- package/src/components/AnimatingUploadIcon.tsx +83 -0
- package/src/components/accordion/index.ts +3 -0
- package/src/components/accordion/item-group.tsx +70 -0
- package/src/components/accordion/item-indicator.tsx +27 -0
- package/src/components/accordion/parts.ts +53 -0
- package/src/components/accordion/primitives.tsx +86 -0
- package/src/components/admonition/admonition.tsx +62 -0
- package/src/components/admonition/index.ts +3 -0
- package/src/components/admonition/match-avatar.tsx +54 -0
- package/src/components/admonition/parts.ts +53 -0
- package/src/components/admonition/primitives.tsx +64 -0
- package/src/components/avatar/avatar.tsx +51 -0
- package/src/components/avatar/index.ts +5 -0
- package/src/components/avatar/parts.ts +37 -0
- package/src/components/avatar/primitives.tsx +38 -0
- package/src/components/button/button.tsx +82 -0
- package/src/components/button/index.ts +3 -0
- package/src/components/button/parts.ts +32 -0
- package/src/components/button/primitives.tsx +39 -0
- package/src/components/carousel/carousel.tsx +55 -0
- package/src/components/carousel/index.ts +3 -0
- package/src/components/carousel/parts.ts +71 -0
- package/src/components/carousel/primitives.ts +58 -0
- package/src/components/checkbox/checkbox-icon.tsx +39 -0
- package/src/components/checkbox/checkbox.tsx +42 -0
- package/src/components/checkbox/index.ts +3 -0
- package/src/components/checkbox/parts.ts +59 -0
- package/src/components/checkbox/primitives.tsx +77 -0
- package/src/components/circular-progress/circular-progress.tsx +49 -0
- package/src/components/circular-progress/index.ts +2 -0
- package/src/components/circular-progress/primitives.ts +71 -0
- package/src/components/clipboard/copy-indicator.tsx +22 -0
- package/src/components/clipboard/copy-text.tsx +13 -0
- package/src/components/clipboard/index.ts +2 -0
- package/src/components/clipboard/parts.ts +74 -0
- package/src/components/clipboard/primitives.ts +56 -0
- package/src/components/clipboard/trigger.tsx +14 -0
- package/src/components/collapsible/index.ts +2 -0
- package/src/components/collapsible/parts.ts +53 -0
- package/src/components/collapsible/primitives.tsx +48 -0
- package/src/components/combobox/combobox.tsx +63 -0
- package/src/components/combobox/index.ts +6 -0
- package/src/components/combobox/item-group.tsx +19 -0
- package/src/components/combobox/item.tsx +30 -0
- package/src/components/combobox/parts.ts +107 -0
- package/src/components/combobox/primitives.tsx +140 -0
- package/src/components/combobox/use-stateful-collection.ts +67 -0
- package/src/components/cta-dialog/context.tsx +38 -0
- package/src/components/cta-dialog/index.ts +2 -0
- package/src/components/cta-dialog/provider.tsx +182 -0
- package/src/components/cta-dialog/trigger-item.tsx +54 -0
- package/src/components/cta-dialog/utils.ts +57 -0
- package/src/components/date-picker/calendar.tsx +47 -0
- package/src/components/date-picker/content.tsx +21 -0
- package/src/components/date-picker/date-picker.tsx +20 -0
- package/src/components/date-picker/day-view.tsx +77 -0
- package/src/components/date-picker/index.ts +16 -0
- package/src/components/date-picker/input.tsx +26 -0
- package/src/components/date-picker/month-view.tsx +49 -0
- package/src/components/date-picker/parts.ts +167 -0
- package/src/components/date-picker/primitives.tsx +235 -0
- package/src/components/date-picker/range-input.tsx +38 -0
- package/src/components/date-picker/trigger.tsx +28 -0
- package/src/components/date-picker/view-control-group.tsx +54 -0
- package/src/components/date-picker/year-view.tsx +47 -0
- package/src/components/dialog/close-icon-trigger.tsx +36 -0
- package/src/components/dialog/dialog.tsx +42 -0
- package/src/components/dialog/index.ts +8 -0
- package/src/components/dialog/parts.ts +71 -0
- package/src/components/dialog/primitives.tsx +84 -0
- 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 +85 -0
- package/src/components/field/helper-text.tsx +20 -0
- package/src/components/field/index.ts +7 -0
- package/src/components/field/input.tsx +47 -0
- package/src/components/field/parts.ts +77 -0
- package/src/components/field/primitives.tsx +135 -0
- package/src/components/field/start-indicator.tsx +23 -0
- package/src/components/field/status-indicator.tsx +58 -0
- package/src/components/fieldset/fieldset.tsx +54 -0
- package/src/components/fieldset/index.ts +3 -0
- package/src/components/fieldset/parts.ts +47 -0
- package/src/components/fieldset/primitives.tsx +48 -0
- package/src/components/file-upload/file-status.tsx +271 -0
- package/src/components/file-upload/file-uploader.tsx +60 -0
- package/src/components/file-upload/helpers.ts +28 -0
- package/src/components/file-upload/img-preview.tsx +41 -0
- package/src/components/file-upload/index.ts +6 -0
- package/src/components/file-upload/parts.tsx +132 -0
- package/src/components/file-upload/primitives.ts +161 -0
- package/src/components/file-upload/utils.ts +20 -0
- package/src/components/for/for.tsx +38 -0
- package/src/components/for/index.ts +1 -0
- package/src/components/group/index.ts +1 -0
- package/src/components/group/primitives.ts +7 -0
- package/src/components/icon-button/button.tsx +36 -0
- package/src/components/icon-button/index.tsx +2 -0
- package/src/components/icon-button/primitives.ts +17 -0
- package/src/components/marquee/Marquee.1.tsx +0 -0
- package/src/components/marquee/index.ts +2 -0
- package/src/components/marquee/marquee.tsx +55 -0
- package/src/components/marquee/primitives.ts +25 -0
- package/src/components/marquee/utils.ts +51 -0
- package/src/components/menu/index.ts +2 -0
- package/src/components/menu/menu.tsx +144 -0
- package/src/components/menu/primitives.ts +84 -0
- package/src/components/notifications/center.tsx +71 -0
- package/src/components/notifications/close-trigger.tsx +21 -0
- package/src/components/notifications/index.ts +5 -0
- package/src/components/notifications/match-icon.tsx +32 -0
- package/src/components/notifications/parts.ts +53 -0
- package/src/components/notifications/primitives.tsx +66 -0
- package/src/components/notifications/toaster.ts +9 -0
- package/src/components/notifications/types.ts +7 -0
- package/src/components/number-input/decrement-trigger.tsx +16 -0
- package/src/components/number-input/increment-trigger.tsx +16 -0
- package/src/components/number-input/index.ts +3 -0
- package/src/components/number-input/input.tsx +33 -0
- package/src/components/number-input/parts.ts +65 -0
- package/src/components/number-input/primitives.tsx +74 -0
- package/src/components/pagination/compact.tsx +25 -0
- package/src/components/pagination/index.ts +6 -0
- package/src/components/pagination/item-list.tsx +34 -0
- package/src/components/pagination/item.tsx +6 -0
- package/src/components/pagination/pagination.tsx +49 -0
- package/src/components/pagination/parts.ts +65 -0
- package/src/components/pagination/primitives.ts +46 -0
- package/src/components/pagination/triggers.tsx +47 -0
- package/src/components/pin-input/index.ts +3 -0
- package/src/components/pin-input/input.tsx +22 -0
- package/src/components/pin-input/parts.ts +53 -0
- package/src/components/pin-input/primitives.tsx +46 -0
- package/src/components/popover/index.ts +3 -0
- package/src/components/popover/parts.ts +96 -0
- package/src/components/popover/placement-container.tsx +22 -0
- package/src/components/popover/popover.tsx +54 -0
- package/src/components/popover/primitives.ts +83 -0
- 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 +25 -0
- package/src/components/progress/progress-bar.tsx +80 -0
- package/src/components/radio/index.ts +3 -0
- package/src/components/radio/parts.ts +65 -0
- package/src/components/radio/primitives.tsx +92 -0
- package/src/components/radio/radio.tsx +35 -0
- package/src/components/rating/index.ts +8 -0
- package/src/components/rating/parts.tsx +65 -0
- package/src/components/rating/primitives.tsx +64 -0
- package/src/components/rating/rating.tsx +75 -0
- package/src/components/select/index.ts +5 -0
- package/src/components/select/option-group.tsx +32 -0
- package/src/components/select/option.tsx +42 -0
- package/src/components/select/parts.ts +113 -0
- package/src/components/select/primitives.tsx +147 -0
- package/src/components/select/select.tsx +110 -0
- package/src/components/show/index.ts +1 -0
- package/src/components/show/show.tsx +48 -0
- package/src/components/slider/index.ts +2 -0
- package/src/components/slider/marks.tsx +42 -0
- package/src/components/slider/primitives.ts +87 -0
- package/src/components/slider/slider.tsx +86 -0
- package/src/components/slider/thumbs.tsx +31 -0
- package/src/components/spinner/index.ts +1 -0
- package/src/components/spinner/spinner.tsx +81 -0
- package/src/components/split-button/button.tsx +71 -0
- package/src/components/split-button/index.tsx +1 -0
- package/src/components/switch/index.ts +3 -0
- package/src/components/switch/parts.ts +53 -0
- package/src/components/switch/primitives.tsx +51 -0
- package/src/components/switch/switch-indicator.tsx +9 -0
- package/src/components/switch/switch.tsx +27 -0
- package/src/components/table/index.ts +3 -0
- package/src/components/table/parts.ts +83 -0
- package/src/components/table/primitives.tsx +108 -0
- package/src/components/table/table.tsx +73 -0
- package/src/components/tabs/index.ts +3 -0
- package/src/components/tabs/parts.ts +53 -0
- package/src/components/tabs/primitives.tsx +47 -0
- package/src/components/tabs/tabs.tsx +48 -0
- package/src/components/tag/closable.tsx +37 -0
- package/src/components/tag/index.ts +2 -0
- package/src/components/tag/primitives.ts +38 -0
- package/src/components/tag/tag.tsx +37 -0
- package/src/components/text/index.ts +1 -0
- package/src/components/text/text.tsx +55 -0
- package/src/components/theme/index.ts +1 -0
- package/src/components/theme/theme.tsx +34 -0
- package/src/components/toggle/index.ts +2 -0
- package/src/components/toggle/parts.ts +32 -0
- package/src/components/toggle/primitives.tsx +27 -0
- package/src/components/tooltip/index.ts +3 -0
- package/src/components/tooltip/parts.ts +59 -0
- package/src/components/tooltip/primitives.ts +56 -0
- package/src/components/tooltip/renderer.tsx +16 -0
- package/src/components/tooltip/tooltip.tsx +53 -0
- package/src/config/defineIcons.ts +24 -0
- package/src/config/icons/checkbox.icons.tsx +98 -0
- package/src/config/icons/default.ts +92 -0
- package/src/config/icons/pinned.icons.tsx +31 -0
- package/src/config/icons/sort.icons.tsx +19 -0
- package/src/config/index.ts +41 -0
- package/src/config/types.ts +65 -0
- package/src/context/cerberus.tsx +53 -0
- package/src/context/confirm-modal.tsx +276 -0
- package/src/context/feature-flags.tsx +63 -0
- package/src/context/field.tsx +70 -0
- package/src/context/navMenu.tsx +89 -0
- package/src/context/prompt-modal.tsx +287 -0
- package/src/context/theme.tsx +77 -0
- package/src/hooks/useModal.ts +63 -0
- package/src/hooks/useRootColors.ts +72 -0
- package/src/hooks/useTheme.ts +96 -0
- package/src/index.client.ts +133 -0
- package/src/index.ts +79 -0
- package/src/system/factory.ts +32 -0
- package/src/system/index.ts +47 -0
- package/src/system/primitive-factory.tsx +182 -0
- package/src/system/types.ts +92 -0
- package/src/types.ts +23 -0
- package/src/utils/index.ts +51 -0
- package/src/utils/localStorage.ts +28 -0
- package/styled-system/css/conditions.d.ts +7 -0
- package/styled-system/css/conditions.js +32 -0
- package/styled-system/css/css.d.ts +22 -0
- package/styled-system/css/css.js +63 -0
- package/styled-system/css/cva.d.ts +5 -0
- package/styled-system/css/cva.js +51 -0
- package/styled-system/css/cx.d.ts +6 -0
- package/styled-system/css/cx.js +16 -0
- package/styled-system/css/first-that-works.d.ts +22 -0
- package/styled-system/css/first-that-works.js +1 -0
- package/styled-system/css/index.d.ts +8 -0
- package/styled-system/css/index.js +8 -0
- package/styled-system/css/keyframes.d.ts +5 -0
- package/styled-system/css/keyframes.js +8 -0
- package/styled-system/css/position-try.d.ts +5 -0
- package/styled-system/css/position-try.js +11 -0
- package/styled-system/css/sva.d.ts +3 -0
- package/styled-system/css/sva.js +49 -0
- package/styled-system/css/view-transition.d.ts +7 -0
- package/styled-system/css/view-transition.js +18 -0
- package/styled-system/helpers.d.ts +67 -0
- package/styled-system/helpers.js +624 -0
- package/styled-system/jsx/animate-in.d.ts +7 -0
- package/styled-system/jsx/animate-in.js +11 -0
- package/styled-system/jsx/aspect-ratio.d.ts +7 -0
- package/styled-system/jsx/aspect-ratio.js +11 -0
- package/styled-system/jsx/bleed.d.ts +7 -0
- package/styled-system/jsx/bleed.js +11 -0
- package/styled-system/jsx/box.d.ts +7 -0
- package/styled-system/jsx/box.js +11 -0
- package/styled-system/jsx/center.d.ts +7 -0
- package/styled-system/jsx/center.js +11 -0
- package/styled-system/jsx/circle.d.ts +7 -0
- package/styled-system/jsx/circle.js +11 -0
- package/styled-system/jsx/container.d.ts +7 -0
- package/styled-system/jsx/container.js +11 -0
- package/styled-system/jsx/cq.d.ts +7 -0
- package/styled-system/jsx/cq.js +11 -0
- package/styled-system/jsx/create-recipe-context.d.ts +31 -0
- package/styled-system/jsx/create-recipe-context.js +38 -0
- package/styled-system/jsx/create-slot-recipe-context.d.ts +49 -0
- package/styled-system/jsx/create-slot-recipe-context.js +124 -0
- package/styled-system/jsx/divider.d.ts +7 -0
- package/styled-system/jsx/divider.js +11 -0
- package/styled-system/jsx/emphasized-fade-in.d.ts +7 -0
- package/styled-system/jsx/emphasized-fade-in.js +11 -0
- package/styled-system/jsx/emphasized-fade-out.d.ts +7 -0
- package/styled-system/jsx/emphasized-fade-out.js +11 -0
- package/styled-system/jsx/emphasized-slide-in.d.ts +7 -0
- package/styled-system/jsx/emphasized-slide-in.js +11 -0
- package/styled-system/jsx/emphasized-slide-out.d.ts +7 -0
- package/styled-system/jsx/emphasized-slide-out.js +11 -0
- package/styled-system/jsx/factory.d.ts +3 -0
- package/styled-system/jsx/factory.js +91 -0
- package/styled-system/jsx/flex.d.ts +7 -0
- package/styled-system/jsx/flex.js +11 -0
- package/styled-system/jsx/float.d.ts +7 -0
- package/styled-system/jsx/float.js +11 -0
- package/styled-system/jsx/grid-item.d.ts +7 -0
- package/styled-system/jsx/grid-item.js +11 -0
- package/styled-system/jsx/grid.d.ts +7 -0
- package/styled-system/jsx/grid.js +11 -0
- package/styled-system/jsx/helper.d.ts +34 -0
- package/styled-system/jsx/helper.js +92 -0
- package/styled-system/jsx/hstack.d.ts +7 -0
- package/styled-system/jsx/hstack.js +11 -0
- package/styled-system/jsx/index.d.ts +35 -0
- package/styled-system/jsx/index.js +34 -0
- package/styled-system/jsx/is-valid-prop.d.ts +6 -0
- package/styled-system/jsx/is-valid-prop.js +12 -0
- package/styled-system/jsx/link-overlay.d.ts +7 -0
- package/styled-system/jsx/link-overlay.js +11 -0
- package/styled-system/jsx/scale-fade-in.d.ts +7 -0
- package/styled-system/jsx/scale-fade-in.js +11 -0
- package/styled-system/jsx/scale-fade-out.d.ts +7 -0
- package/styled-system/jsx/scale-fade-out.js +11 -0
- package/styled-system/jsx/scrollable.d.ts +7 -0
- package/styled-system/jsx/scrollable.js +11 -0
- package/styled-system/jsx/slide-fade-in.d.ts +7 -0
- package/styled-system/jsx/slide-fade-in.js +11 -0
- package/styled-system/jsx/slide-fade-out.d.ts +7 -0
- package/styled-system/jsx/slide-fade-out.js +11 -0
- package/styled-system/jsx/spacer.d.ts +7 -0
- package/styled-system/jsx/spacer.js +11 -0
- package/styled-system/jsx/square.d.ts +7 -0
- package/styled-system/jsx/square.js +11 -0
- package/styled-system/jsx/stack.d.ts +7 -0
- package/styled-system/jsx/stack.js +11 -0
- package/styled-system/jsx/visually-hidden.d.ts +7 -0
- package/styled-system/jsx/visually-hidden.js +11 -0
- package/styled-system/jsx/vstack.d.ts +7 -0
- package/styled-system/jsx/vstack.js +11 -0
- package/styled-system/jsx/wrap.d.ts +7 -0
- package/styled-system/jsx/wrap.js +11 -0
- package/styled-system/patterns/animate-in.d.ts +19 -0
- package/styled-system/patterns/animate-in.js +26 -0
- package/styled-system/patterns/aspect-ratio.d.ts +19 -0
- package/styled-system/patterns/aspect-ratio.js +37 -0
- package/styled-system/patterns/bleed.d.ts +20 -0
- package/styled-system/patterns/bleed.js +30 -0
- package/styled-system/patterns/box.d.ts +17 -0
- package/styled-system/patterns/box.js +16 -0
- package/styled-system/patterns/center.d.ts +19 -0
- package/styled-system/patterns/center.js +22 -0
- package/styled-system/patterns/circle.d.ts +19 -0
- package/styled-system/patterns/circle.js +26 -0
- package/styled-system/patterns/container.d.ts +17 -0
- package/styled-system/patterns/container.js +26 -0
- package/styled-system/patterns/cq.d.ts +21 -0
- package/styled-system/patterns/cq.js +24 -0
- package/styled-system/patterns/divider.d.ts +22 -0
- package/styled-system/patterns/divider.js +31 -0
- package/styled-system/patterns/emphasized-fade-in.d.ts +17 -0
- package/styled-system/patterns/emphasized-fade-in.js +23 -0
- package/styled-system/patterns/emphasized-fade-out.d.ts +17 -0
- package/styled-system/patterns/emphasized-fade-out.js +23 -0
- package/styled-system/patterns/emphasized-slide-in.d.ts +17 -0
- package/styled-system/patterns/emphasized-slide-in.js +23 -0
- package/styled-system/patterns/emphasized-slide-out.d.ts +17 -0
- package/styled-system/patterns/emphasized-slide-out.js +23 -0
- package/styled-system/patterns/flex.d.ts +25 -0
- package/styled-system/patterns/flex.js +27 -0
- package/styled-system/patterns/float.d.ts +23 -0
- package/styled-system/patterns/float.js +84 -0
- package/styled-system/patterns/grid-item.d.ts +24 -0
- package/styled-system/patterns/grid-item.js +26 -0
- package/styled-system/patterns/grid.d.ts +24 -0
- package/styled-system/patterns/grid.js +30 -0
- package/styled-system/patterns/hstack.d.ts +20 -0
- package/styled-system/patterns/hstack.js +27 -0
- package/styled-system/patterns/index.d.ts +30 -0
- package/styled-system/patterns/index.js +30 -0
- package/styled-system/patterns/link-overlay.d.ts +17 -0
- package/styled-system/patterns/link-overlay.js +25 -0
- package/styled-system/patterns/runtime.js +25 -0
- package/styled-system/patterns/scale-fade-in.d.ts +17 -0
- package/styled-system/patterns/scale-fade-in.js +23 -0
- package/styled-system/patterns/scale-fade-out.d.ts +17 -0
- package/styled-system/patterns/scale-fade-out.js +23 -0
- package/styled-system/patterns/scrollable.d.ts +20 -0
- package/styled-system/patterns/scrollable.js +38 -0
- package/styled-system/patterns/slide-fade-in.d.ts +17 -0
- package/styled-system/patterns/slide-fade-in.js +23 -0
- package/styled-system/patterns/slide-fade-out.d.ts +17 -0
- package/styled-system/patterns/slide-fade-out.js +23 -0
- package/styled-system/patterns/spacer.d.ts +20 -0
- package/styled-system/patterns/spacer.js +26 -0
- package/styled-system/patterns/square.d.ts +19 -0
- package/styled-system/patterns/square.js +25 -0
- package/styled-system/patterns/stack.d.ts +22 -0
- package/styled-system/patterns/stack.js +30 -0
- package/styled-system/patterns/visually-hidden.d.ts +17 -0
- package/styled-system/patterns/visually-hidden.js +19 -0
- package/styled-system/patterns/vstack.d.ts +20 -0
- package/styled-system/patterns/vstack.js +27 -0
- package/styled-system/patterns/wrap.d.ts +23 -0
- package/styled-system/patterns/wrap.js +26 -0
- package/styled-system/recipes/accordion.d.ts +18 -0
- package/styled-system/recipes/accordion.js +5 -0
- package/styled-system/recipes/admonition.d.ts +18 -0
- package/styled-system/recipes/admonition.js +5 -0
- package/styled-system/recipes/avatar.d.ts +20 -0
- package/styled-system/recipes/avatar.js +5 -0
- package/styled-system/recipes/button-group.d.ts +16 -0
- package/styled-system/recipes/button-group.js +5 -0
- package/styled-system/recipes/button.d.ts +18 -0
- package/styled-system/recipes/button.js +5 -0
- package/styled-system/recipes/carousel.d.ts +16 -0
- package/styled-system/recipes/carousel.js +5 -0
- package/styled-system/recipes/checkbox.d.ts +18 -0
- package/styled-system/recipes/checkbox.js +5 -0
- package/styled-system/recipes/circular-progress.d.ts +19 -0
- package/styled-system/recipes/circular-progress.js +5 -0
- package/styled-system/recipes/closable-tag.d.ts +17 -0
- package/styled-system/recipes/closable-tag.js +5 -0
- package/styled-system/recipes/collapsible.d.ts +18 -0
- package/styled-system/recipes/collapsible.js +5 -0
- package/styled-system/recipes/combobox.d.ts +18 -0
- package/styled-system/recipes/combobox.js +5 -0
- package/styled-system/recipes/date-picker.d.ts +16 -0
- package/styled-system/recipes/date-picker.js +5 -0
- package/styled-system/recipes/dialog.d.ts +18 -0
- package/styled-system/recipes/dialog.js +5 -0
- package/styled-system/recipes/field-message.d.ts +14 -0
- package/styled-system/recipes/field-message.js +5 -0
- package/styled-system/recipes/field.d.ts +18 -0
- package/styled-system/recipes/field.js +5 -0
- package/styled-system/recipes/fieldset.d.ts +18 -0
- package/styled-system/recipes/fieldset.js +5 -0
- package/styled-system/recipes/file-status.d.ts +18 -0
- package/styled-system/recipes/file-status.js +5 -0
- package/styled-system/recipes/file-uploader.d.ts +16 -0
- package/styled-system/recipes/file-uploader.js +5 -0
- package/styled-system/recipes/gradient-tag.d.ts +17 -0
- package/styled-system/recipes/gradient-tag.js +5 -0
- package/styled-system/recipes/group.d.ts +16 -0
- package/styled-system/recipes/group.js +5 -0
- package/styled-system/recipes/icon-button.d.ts +18 -0
- package/styled-system/recipes/icon-button.js +5 -0
- package/styled-system/recipes/index.d.ts +46 -0
- package/styled-system/recipes/index.js +46 -0
- package/styled-system/recipes/input.d.ts +18 -0
- package/styled-system/recipes/input.js +5 -0
- package/styled-system/recipes/label.d.ts +17 -0
- package/styled-system/recipes/label.js +5 -0
- package/styled-system/recipes/marquee.d.ts +16 -0
- package/styled-system/recipes/marquee.js +5 -0
- package/styled-system/recipes/menu.d.ts +16 -0
- package/styled-system/recipes/menu.js +5 -0
- package/styled-system/recipes/modal.d.ts +16 -0
- package/styled-system/recipes/modal.js +5 -0
- package/styled-system/recipes/notification.d.ts +18 -0
- package/styled-system/recipes/notification.js +5 -0
- package/styled-system/recipes/number-input.d.ts +18 -0
- package/styled-system/recipes/number-input.js +5 -0
- package/styled-system/recipes/pin-input.d.ts +18 -0
- package/styled-system/recipes/pin-input.js +5 -0
- package/styled-system/recipes/popover.d.ts +18 -0
- package/styled-system/recipes/popover.js +5 -0
- package/styled-system/recipes/progress-bar.d.ts +19 -0
- package/styled-system/recipes/progress-bar.js +5 -0
- package/styled-system/recipes/radio-group.d.ts +19 -0
- package/styled-system/recipes/radio-group.js +5 -0
- package/styled-system/recipes/rating-group.d.ts +20 -0
- package/styled-system/recipes/rating-group.js +5 -0
- package/styled-system/recipes/runtime.js +133 -0
- package/styled-system/recipes/select.d.ts +18 -0
- package/styled-system/recipes/select.js +5 -0
- package/styled-system/recipes/slider.d.ts +21 -0
- package/styled-system/recipes/slider.js +5 -0
- package/styled-system/recipes/switch-recipe.d.ts +18 -0
- package/styled-system/recipes/switch-recipe.js +5 -0
- package/styled-system/recipes/table.d.ts +19 -0
- package/styled-system/recipes/table.js +5 -0
- package/styled-system/recipes/tabs.d.ts +19 -0
- package/styled-system/recipes/tabs.js +5 -0
- package/styled-system/recipes/tag.d.ts +18 -0
- package/styled-system/recipes/tag.js +5 -0
- package/styled-system/recipes/tbody.d.ts +16 -0
- package/styled-system/recipes/tbody.js +5 -0
- package/styled-system/recipes/td.d.ts +16 -0
- package/styled-system/recipes/td.js +5 -0
- package/styled-system/recipes/th.d.ts +16 -0
- package/styled-system/recipes/th.js +5 -0
- package/styled-system/recipes/thead.d.ts +14 -0
- package/styled-system/recipes/thead.js +5 -0
- package/styled-system/recipes/toast.d.ts +16 -0
- package/styled-system/recipes/toast.js +5 -0
- package/styled-system/recipes/toggle.d.ts +18 -0
- package/styled-system/recipes/toggle.js +5 -0
- package/styled-system/recipes/tooltip.d.ts +16 -0
- package/styled-system/recipes/tooltip.js +5 -0
- package/styled-system/themes/index.d.ts +20 -0
- package/styled-system/themes/index.js +24 -0
- package/styled-system/themes/theme-cerberus.json +5 -0
- package/styled-system/tokens/index.d.ts +8 -0
- package/styled-system/tokens/index.js +18 -0
- package/styled-system/types/index.d.ts +6 -0
- package/styled-system/types/jsx.d.ts +78 -0
- package/styled-system/types/pattern.d.ts +26 -0
- package/styled-system/types/recipe.d.ts +89 -0
- package/styled-system/types/register.d.ts +40 -0
- package/styled-system/types/system.d.ts +1935 -0
- package/styled-system/types/tokens.d.ts +72 -0
- package/dist/panda.buildinfo.json +0 -401
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { RecipeCreatorFn } from '../types/recipe';
|
|
2
|
+
import type { SystemStyleObject } from '../types/system';
|
|
3
|
+
|
|
4
|
+
export type Props = Record<string, unknown>;
|
|
5
|
+
export type ShouldForwardProp = (prop: string, variantKeys?: string[]) => boolean;
|
|
6
|
+
/** A `cva` or config recipe function, as the JSX runtime reads it. */
|
|
7
|
+
export interface JsxRecipeFn {
|
|
8
|
+
(props?: Props, withCompoundVariants?: boolean): string;
|
|
9
|
+
raw(props?: Props): SystemStyleObject;
|
|
10
|
+
merge(other: JsxRecipeFn, cvaFn: RecipeCreatorFn): JsxRecipeFn;
|
|
11
|
+
variantKeys: string[];
|
|
12
|
+
__cva__?: boolean;
|
|
13
|
+
__recipe__?: boolean;
|
|
14
|
+
__name__?: string;
|
|
15
|
+
__memoizedRaw__?: (props?: Props) => SystemStyleObject;
|
|
16
|
+
__getCompoundVariantClasses__?: (props: Props) => string;
|
|
17
|
+
}
|
|
18
|
+
/** Markers the factory sets on the components it creates. */
|
|
19
|
+
export interface StyledMarkers {
|
|
20
|
+
__cva__?: JsxRecipeFn;
|
|
21
|
+
__base__?: unknown;
|
|
22
|
+
__shouldForwardProps__?: ShouldForwardProp;
|
|
23
|
+
}
|
|
24
|
+
export declare const composeShouldForwardProps: (tag: StyledMarkers, shouldForwardProp: ShouldForwardProp) => ShouldForwardProp;
|
|
25
|
+
export declare const composeCvaFn: (cvaA: JsxRecipeFn | undefined, cvaB: JsxRecipeFn) => JsxRecipeFn;
|
|
26
|
+
export declare function mergeDefaultProps(defaultProps: Props, props: Props): Props;
|
|
27
|
+
export declare const getDisplayName: (Component: string | {
|
|
28
|
+
displayName?: string;
|
|
29
|
+
name?: string;
|
|
30
|
+
} | undefined) => string;
|
|
31
|
+
export type SplitJsxProps = [htmlProps: Props | undefined, forwardedProps: Props | undefined, variantProps: Props, propStyles: SystemStyleObject | undefined, cssStyles: SystemStyleObject | undefined, elementProps: Props | undefined];
|
|
32
|
+
export declare function splitJsxProps(props: Props, shouldForwardProp: (prop: string) => boolean, variantSet: Set<string>, isCssProperty: (prop: string) => boolean, skipClass?: boolean): SplitJsxProps;
|
|
33
|
+
export declare function serializeSplitStyles(propStyles: SystemStyleObject | undefined, cssStyles: SystemStyleObject | undefined, baseStyles?: SystemStyleObject): string;
|
|
34
|
+
export declare function splitStyleProps(styleProps: Props): [propStyles: SystemStyleObject | undefined, cssStyles: SystemStyleObject | undefined];
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { css, cva } from '../css/index';
|
|
2
|
+
|
|
3
|
+
export const composeShouldForwardProps = (tag, shouldForwardProp) => {
|
|
4
|
+
if (!tag.__shouldForwardProps__ || !shouldForwardProp) return shouldForwardProp
|
|
5
|
+
return (prop) => tag.__shouldForwardProps__(prop) && shouldForwardProp(prop)
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const composeCvaFn = (cvaA, cvaB) => {
|
|
9
|
+
if (cvaA && !cvaB) return cvaA
|
|
10
|
+
if (!cvaA && cvaB) return cvaB
|
|
11
|
+
if ((cvaA.__cva__ && cvaB.__cva__) || (cvaA.__recipe__ && cvaB.__recipe__)) return cvaA.merge(cvaB, cva)
|
|
12
|
+
const error = new TypeError('Cannot merge cva with recipe. Please use either cva or recipe.')
|
|
13
|
+
TypeError.captureStackTrace?.(error)
|
|
14
|
+
throw error
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// Like React's defaultProps: an explicit `undefined` keeps the default.
|
|
18
|
+
export function mergeDefaultProps(defaultProps, props) {
|
|
19
|
+
const merged = Object.assign({}, defaultProps)
|
|
20
|
+
for (const key in props) {
|
|
21
|
+
if (props[key] !== undefined) merged[key] = props[key]
|
|
22
|
+
}
|
|
23
|
+
return merged
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const getDisplayName = (Component) => {
|
|
27
|
+
if (typeof Component === 'string') return Component
|
|
28
|
+
return Component?.displayName || Component?.name || 'Component'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const htmlPropsMap = {
|
|
32
|
+
htmlWidth: 'width',
|
|
33
|
+
htmlHeight: 'height',
|
|
34
|
+
htmlTranslate: 'translate',
|
|
35
|
+
htmlContent: 'content',
|
|
36
|
+
}
|
|
37
|
+
const hasOwn = Object.prototype.hasOwnProperty
|
|
38
|
+
|
|
39
|
+
export function splitJsxProps(props, shouldForwardProp, variantSet, isCssProperty, skipClass) {
|
|
40
|
+
let htmlProps
|
|
41
|
+
let forwardedProps
|
|
42
|
+
let variantProps
|
|
43
|
+
let propStyles
|
|
44
|
+
let cssStyles
|
|
45
|
+
let elementProps
|
|
46
|
+
const keys = Object.keys(props)
|
|
47
|
+
for (let i = 0; i < keys.length; i++) {
|
|
48
|
+
const key = keys[i]
|
|
49
|
+
const value = props[key]
|
|
50
|
+
if (value === void 0) continue
|
|
51
|
+
if (key === 'className' || (skipClass && key === 'class') || key === 'as' || key === 'unstyled' || key === 'children') continue
|
|
52
|
+
if (hasOwn.call(htmlPropsMap, key)) {
|
|
53
|
+
htmlProps ||= Object.create(null)
|
|
54
|
+
htmlProps[htmlPropsMap[key]] = value
|
|
55
|
+
} else if (shouldForwardProp(key)) {
|
|
56
|
+
forwardedProps ||= Object.create(null)
|
|
57
|
+
forwardedProps[key] = value
|
|
58
|
+
} else if (variantSet.has(key)) {
|
|
59
|
+
variantProps ||= Object.create(null)
|
|
60
|
+
variantProps[key] = value
|
|
61
|
+
} else if (key === 'css') {
|
|
62
|
+
cssStyles = value
|
|
63
|
+
} else if (isCssProperty(key)) {
|
|
64
|
+
(propStyles ||= {})[key] = value
|
|
65
|
+
} else {
|
|
66
|
+
elementProps ||= Object.create(null)
|
|
67
|
+
elementProps[key] = value
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return [htmlProps, forwardedProps, variantProps || {}, propStyles, cssStyles, elementProps]
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function serializeSplitStyles(propStyles, cssStyles, baseStyles) {
|
|
74
|
+
if (baseStyles !== void 0) {
|
|
75
|
+
return propStyles ? cssStyles !== void 0 ? css(baseStyles, propStyles, cssStyles) : css(baseStyles, propStyles) : css(baseStyles, cssStyles)
|
|
76
|
+
}
|
|
77
|
+
return propStyles ? cssStyles !== void 0 ? css(propStyles, cssStyles) : css(propStyles) : css(cssStyles)
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function splitStyleProps(styleProps) {
|
|
81
|
+
let propStyles
|
|
82
|
+
let cssStyles
|
|
83
|
+
const keys = Object.keys(styleProps)
|
|
84
|
+
for (let i = 0; i < keys.length; i++) {
|
|
85
|
+
const key = keys[i]
|
|
86
|
+
const value = styleProps[key]
|
|
87
|
+
if (value === void 0) continue
|
|
88
|
+
if (key === 'css') cssStyles = value
|
|
89
|
+
else (propStyles ||= {})[key] = value
|
|
90
|
+
}
|
|
91
|
+
return [propStyles, cssStyles]
|
|
92
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
|
2
|
+
import type { HstackProperties } from '../patterns/hstack';
|
|
3
|
+
import type { HTMLCerberusProps } from '../types/jsx';
|
|
4
|
+
import type { DistributiveOmit } from '../types/system';
|
|
5
|
+
|
|
6
|
+
export interface HstackProps extends HstackProperties, DistributiveOmit<HTMLCerberusProps<'div'>, keyof HstackProperties> {}
|
|
7
|
+
export declare const HStack: FunctionComponent<HstackProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createElement, forwardRef } from 'react';
|
|
2
|
+
import { hstack } from '../patterns/hstack';
|
|
3
|
+
import { splitProps } from '../helpers';
|
|
4
|
+
import { cerberus } from './factory';
|
|
5
|
+
|
|
6
|
+
export const HStack = /* @__PURE__ */ forwardRef(function HStack(props, ref) {
|
|
7
|
+
const [patternProps, restProps] = splitProps(props, hstack.propKeys)
|
|
8
|
+
const styleProps = hstack.raw(patternProps)
|
|
9
|
+
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
10
|
+
return createElement(cerberus["div"], mergedProps)
|
|
11
|
+
})
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export * from './factory';
|
|
2
|
+
export * from './is-valid-prop';
|
|
3
|
+
export * from './create-recipe-context';
|
|
4
|
+
export * from './create-slot-recipe-context';
|
|
5
|
+
export * from './animate-in';
|
|
6
|
+
export * from './aspect-ratio';
|
|
7
|
+
export * from './bleed';
|
|
8
|
+
export * from './box';
|
|
9
|
+
export * from './center';
|
|
10
|
+
export * from './circle';
|
|
11
|
+
export * from './container';
|
|
12
|
+
export * from './cq';
|
|
13
|
+
export * from './divider';
|
|
14
|
+
export * from './emphasized-fade-in';
|
|
15
|
+
export * from './emphasized-fade-out';
|
|
16
|
+
export * from './emphasized-slide-in';
|
|
17
|
+
export * from './emphasized-slide-out';
|
|
18
|
+
export * from './flex';
|
|
19
|
+
export * from './float';
|
|
20
|
+
export * from './grid';
|
|
21
|
+
export * from './grid-item';
|
|
22
|
+
export * from './hstack';
|
|
23
|
+
export * from './link-overlay';
|
|
24
|
+
export * from './scale-fade-in';
|
|
25
|
+
export * from './scale-fade-out';
|
|
26
|
+
export * from './scrollable';
|
|
27
|
+
export * from './slide-fade-in';
|
|
28
|
+
export * from './slide-fade-out';
|
|
29
|
+
export * from './spacer';
|
|
30
|
+
export * from './square';
|
|
31
|
+
export * from './stack';
|
|
32
|
+
export * from './visually-hidden';
|
|
33
|
+
export * from './vstack';
|
|
34
|
+
export * from './wrap';
|
|
35
|
+
export { HTMLCerberusProps, CerberusComponent, Cerberus, StyledVariantProps, JsxFactoryOptions, ComponentProps, DataAttrs, AsProps } from '../types/jsx';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export * from './factory';
|
|
2
|
+
export * from './is-valid-prop';
|
|
3
|
+
export * from './create-recipe-context';
|
|
4
|
+
export * from './create-slot-recipe-context';
|
|
5
|
+
export * from './animate-in';
|
|
6
|
+
export * from './aspect-ratio';
|
|
7
|
+
export * from './bleed';
|
|
8
|
+
export * from './box';
|
|
9
|
+
export * from './center';
|
|
10
|
+
export * from './circle';
|
|
11
|
+
export * from './container';
|
|
12
|
+
export * from './cq';
|
|
13
|
+
export * from './divider';
|
|
14
|
+
export * from './emphasized-fade-in';
|
|
15
|
+
export * from './emphasized-fade-out';
|
|
16
|
+
export * from './emphasized-slide-in';
|
|
17
|
+
export * from './emphasized-slide-out';
|
|
18
|
+
export * from './flex';
|
|
19
|
+
export * from './float';
|
|
20
|
+
export * from './grid';
|
|
21
|
+
export * from './grid-item';
|
|
22
|
+
export * from './hstack';
|
|
23
|
+
export * from './link-overlay';
|
|
24
|
+
export * from './scale-fade-in';
|
|
25
|
+
export * from './scale-fade-out';
|
|
26
|
+
export * from './scrollable';
|
|
27
|
+
export * from './slide-fade-in';
|
|
28
|
+
export * from './slide-fade-out';
|
|
29
|
+
export * from './spacer';
|
|
30
|
+
export * from './square';
|
|
31
|
+
export * from './stack';
|
|
32
|
+
export * from './visually-hidden';
|
|
33
|
+
export * from './vstack';
|
|
34
|
+
export * from './wrap';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DistributiveOmit, JsxStyleProps } from '../types/system';
|
|
2
|
+
|
|
3
|
+
export type CssPropKey = keyof JsxStyleProps;
|
|
4
|
+
export type OmittedCssProps<T> = DistributiveOmit<T, CssPropKey>;
|
|
5
|
+
export declare function isCssProperty(value: string): boolean;
|
|
6
|
+
export declare function splitCssProps<T>(props: T): [JsxStyleProps, OmittedCssProps<T>];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { splitProps } from '../helpers';
|
|
2
|
+
|
|
3
|
+
const cssPropertySet = new Set(["2xl","2xlDown","2xlOnly","@/2xl","@/2xlDown","@/2xlOnly","@/2xlTo3xl","@/2xlTo4xl","@/2xlTo5xl","@/2xlTo6xl","@/2xlTo7xl","@/2xlTo8xl","@/2xs","@/2xsDown","@/2xsOnly","@/2xsTo2xl","@/2xsTo3xl","@/2xsTo4xl","@/2xsTo5xl","@/2xsTo6xl","@/2xsTo7xl","@/2xsTo8xl","@/2xsToLg","@/2xsToMd","@/2xsToSm","@/2xsToXl","@/2xsToXs","@/3xl","@/3xlDown","@/3xlOnly","@/3xlTo4xl","@/3xlTo5xl","@/3xlTo6xl","@/3xlTo7xl","@/3xlTo8xl","@/3xs","@/3xsDown","@/3xsOnly","@/3xsTo2xl","@/3xsTo2xs","@/3xsTo3xl","@/3xsTo4xl","@/3xsTo5xl","@/3xsTo6xl","@/3xsTo7xl","@/3xsTo8xl","@/3xsToLg","@/3xsToMd","@/3xsToSm","@/3xsToXl","@/3xsToXs","@/4xl","@/4xlDown","@/4xlOnly","@/4xlTo5xl","@/4xlTo6xl","@/4xlTo7xl","@/4xlTo8xl","@/5xl","@/5xlDown","@/5xlOnly","@/5xlTo6xl","@/5xlTo7xl","@/5xlTo8xl","@/6xl","@/6xlDown","@/6xlOnly","@/6xlTo7xl","@/6xlTo8xl","@/7xl","@/7xlDown","@/7xlOnly","@/7xlTo8xl","@/8xl","@/8xlDown","@/8xlOnly","@/lg","@/lgDown","@/lgOnly","@/lgTo2xl","@/lgTo3xl","@/lgTo4xl","@/lgTo5xl","@/lgTo6xl","@/lgTo7xl","@/lgTo8xl","@/lgToXl","@/md","@/mdDown","@/mdOnly","@/mdTo2xl","@/mdTo3xl","@/mdTo4xl","@/mdTo5xl","@/mdTo6xl","@/mdTo7xl","@/mdTo8xl","@/mdToLg","@/mdToXl","@/sm","@/smDown","@/smOnly","@/smTo2xl","@/smTo3xl","@/smTo4xl","@/smTo5xl","@/smTo6xl","@/smTo7xl","@/smTo8xl","@/smToLg","@/smToMd","@/smToXl","@/xl","@/xlDown","@/xlOnly","@/xlTo2xl","@/xlTo3xl","@/xlTo4xl","@/xlTo5xl","@/xlTo6xl","@/xlTo7xl","@/xlTo8xl","@/xs","@/xsDown","@/xsOnly","@/xsTo2xl","@/xsTo3xl","@/xsTo4xl","@/xsTo5xl","@/xsTo6xl","@/xsTo7xl","@/xsTo8xl","@/xsToLg","@/xsToMd","@/xsToSm","@/xsToXl","WebkitAppearance","WebkitBorderBefore","WebkitBorderBeforeColor","WebkitBorderBeforeStyle","WebkitBorderBeforeWidth","WebkitBoxReflect","WebkitLineClamp","WebkitMask","WebkitMaskAttachment","WebkitMaskClip","WebkitMaskComposite","WebkitMaskImage","WebkitMaskOrigin","WebkitMaskPosition","WebkitMaskPositionX","WebkitMaskPositionY","WebkitMaskRepeat","WebkitMaskRepeatX","WebkitMaskRepeatY","WebkitMaskSize","WebkitOverflowScrolling","WebkitTapHighlightColor","WebkitTextFillColor","WebkitTextStroke","WebkitTextStrokeColor","WebkitTextStrokeWidth","WebkitTouchCallout","WebkitUserModify","WebkitUserSelect","_action","_actionPalette","_active","_admin","_after","_anyPointerCoarse","_anyPointerFine","_anyPointerNone","_atValue","_autoComplete","_autofill","_backdrop","_before","_button","_checked","_closed","_complete","_current","_currentPage","_currentStep","_danger","_dangerPalette","_dark","_dataReadOnly","_default","_disabled","_dragging","_empty","_enabled","_endIndicator","_endRange","_even","_expanded","_file","_first","_firstLetter","_firstLine","_firstOfType","_focus","_focusVisible","_focusWithin","_fullscreen","_grabbed","_grammarError","_groupActive","_groupChecked","_groupDisabled","_groupExpanded","_groupFocus","_groupFocusVisible","_groupFocusWithin","_groupHover","_groupInvalid","_hidden","_highContrast","_highEmphasis","_highlight","_highlighted","_horizontal","_hover","_icon","_iconButton","_inRange","_incomplete","_indeterminate","_inert","_info","_infoPalette","_invalid","_invertedColors","_isComplete","_isDropped","_isOver","_label","_landscape","_last","_lastOfType","_leftPinned","_lessContrast","_lgSize","_light","_loading","_lowEmphasis","_ltr","_marker","_mdSize","_menuTrigger","_modalOpen","_moreContrast","_motionReduce","_motionSafe","_noscript","_notDisabled","_notify","_now","_odd","_only","_onlyOfType","_open","_optional","_osDark","_osLight","_outOfRange","_overValue","_page","_pagePalette","_pastDay","_paused","_peerActive","_peerChecked","_peerDisabled","_peerExpanded","_peerFocus","_peerFocusVisible","_peerFocusWithin","_peerHover","_peerInvalid","_peerPlaceholderShown","_pinned","_placeholder","_placeholderShown","_pointerCoarse","_pointerFine","_pointerNone","_portrait","_positionBottom","_positionLeft","_positionRight","_positionTop","_pressed","_print","_rangeEnd","_rangeStart","_readOnly","_readWrite","_required","_reverse","_rightPinned","_rtl","_screenReaderOnly","_scrollbar","_scrollbarThumb","_scrollbarTrack","_secondaryAction","_secondaryActionPalette","_selected","_selection","_sideBottom","_sideEnd","_sideStart","_sideTop","_smSize","_spellingError","_startIcon","_startIndicator","_startRange","_starting","_student","_subtleEmphasis","_success","_successPalette","_system","_target","_themeCerberus","_today","_tooltip","_topmost","_unavailable","_underValue","_user","_userInvalid","_userValid","_valid","_vertical","_visited","_warning","_warningPalette","_xlSize","_xsSize","accentColor","alignContent","alignItems","alignSelf","alignTracks","alignmentBaseline","all","anchorName","anchorScope","animation","animationComposition","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationRange","animationRangeEnd","animationRangeStart","animationState","animationStyle","animationTimeline","animationTimingFunction","appearance","aspectRatio","backdropBlur","backdropBrightness","backdropContrast","backdropFilter","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundConic","backgroundGradient","backgroundImage","backgroundLinear","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRadial","backgroundRepeat","backgroundSize","base","baselineShift","baselineSource","bg","bgAttachment","bgBlendMode","bgClip","bgColor","bgConic","bgGradient","bgImage","bgLinear","bgOrigin","bgPosition","bgPositionX","bgPositionY","bgRadial","bgRepeat","bgSize","blockSize","blur","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderEnd","borderEndColor","borderEndEndRadius","borderEndRadius","borderEndStartRadius","borderEndWidth","borderGrad","borderGradient","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderInline","borderInlineColor","borderInlineEnd","borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth","borderInlineStart","borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth","borderInlineStyle","borderInlineWidth","borderLeft","borderLeftColor","borderLeftRadius","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightRadius","borderRightStyle","borderRightWidth","borderSpacing","borderSpacingX","borderSpacingY","borderStart","borderStartColor","borderStartEndRadius","borderStartRadius","borderStartStartRadius","borderStartWidth","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","borderX","borderXColor","borderXWidth","borderY","borderYColor","borderYWidth","bottom","boxAlign","boxDecorationBreak","boxDirection","boxFlex","boxFlexGroup","boxLines","boxOrdinalGroup","boxOrient","boxPack","boxShadow","boxShadowColor","boxSize","boxSizing","breakAfter","breakBefore","breakInside","brightness","captionSide","caret","caretColor","caretShape","clear","clip","clipPath","clipRule","color","colorInterpolation","colorInterpolationFilters","colorPalette","colorRendering","colorScheme","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","containIntrinsicBlockSize","containIntrinsicHeight","containIntrinsicInlineSize","containIntrinsicSize","containIntrinsicWidth","container","containerName","containerType","content","contentVisibility","contrast","cornerBlockEndShape","cornerBlockStartShape","cornerBottomLeftShape","cornerBottomRightShape","cornerBottomShape","cornerEndEndShape","cornerEndStartShape","cornerInlineEndShape","cornerInlineStartShape","cornerLeftShape","cornerRightShape","cornerShape","cornerStartEndShape","cornerStartStartShape","cornerTopLeftShape","cornerTopRightShape","cornerTopShape","counterIncrement","counterReset","counterSet","css","cursor","cx","cy","d","debug","direction","display","divideColor","divideStyle","divideX","divideY","dominantBaseline","dropShadow","dynamicRangeLimit","emptyCells","end","fieldSizing","fill","fillOpacity","fillRule","filter","flex","flexBasis","flexDir","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","floodColor","floodOpacity","focusRing","focusRingColor","focusRingOffset","focusRingStyle","focusRingWidth","focusVisibleRing","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontOpticalSizing","fontPalette","fontSize","fontSizeAdjust","fontSmooth","fontSmoothing","fontStretch","fontStyle","fontSynthesis","fontSynthesisPosition","fontSynthesisSmallCaps","fontSynthesisStyle","fontSynthesisWeight","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantEmoji","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontVariationSettings","fontWeight","fontWidth","forcedColorAdjust","gap","glyphOrientationVertical","grad","gradient","gradientFrom","gradientFromPosition","gradientTo","gradientToPosition","gradientVia","gradientViaPosition","grayscale","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","h","hangingPunctuation","height","hideBelow","hideFrom","hueRotate","hyphenateCharacter","hyphenateLimitChars","hyphens","imageOrientation","imageRendering","imageResolution","imeMode","initialLetter","initialLetterAlign","inlineSize","inset","insetBlock","insetBlockEnd","insetBlockStart","insetEnd","insetInline","insetInlineEnd","insetInlineStart","insetStart","insetX","insetY","interpolateSize","invert","isolation","justifyContent","justifyItems","justifySelf","justifyTracks","layerStyle","left","letterSpacing","lg","lgDown","lgOnly","lgTo2xl","lgToXl","lightingColor","lineBreak","lineClamp","lineHeight","lineHeightStep","listStyle","listStyleImage","listStylePosition","listStyleType","m","margin","marginBlock","marginBlockEnd","marginBlockStart","marginBottom","marginEnd","marginInline","marginInlineEnd","marginInlineStart","marginLeft","marginRight","marginStart","marginTop","marginTrim","marginX","marginY","marker","markerEnd","markerMid","markerStart","mask","maskBorder","maskBorderMode","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskBottomFrom","maskBottomFromColor","maskBottomTo","maskBottomToColor","maskClip","maskComposite","maskConic","maskConicFrom","maskConicFromColor","maskConicTo","maskConicToColor","maskImage","maskLeftFrom","maskLeftFromColor","maskLeftTo","maskLeftToColor","maskLinear","maskLinearFrom","maskLinearFromColor","maskLinearTo","maskLinearToColor","maskMode","maskOrigin","maskPosition","maskRadial","maskRadialAt","maskRadialFrom","maskRadialFromColor","maskRadialShape","maskRadialSize","maskRadialTo","maskRadialToColor","maskRepeat","maskRightFrom","maskRightFromColor","maskRightTo","maskRightToColor","maskSize","maskTopFrom","maskTopFromColor","maskTopTo","maskTopToColor","maskType","maskXFrom","maskXFromColor","maskXTo","maskXToColor","maskYFrom","maskYFromColor","maskYTo","maskYToColor","masonryAutoFlow","mathDepth","mathShift","mathStyle","maxBlockSize","maxH","maxHeight","maxInlineSize","maxLines","maxW","maxWidth","mb","md","mdDown","mdOnly","mdTo2xl","mdToLg","mdToXl","me","minBlockSize","minH","minHeight","minInlineSize","minW","minWidth","mixBlendMode","ml","mr","ms","mt","mx","my","objectFit","objectPosition","objectViewBox","offset","offsetAnchor","offsetDistance","offsetPath","offsetPosition","offsetRotate","opacity","order","orphans","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowBlock","overflowClipBox","overflowClipMargin","overflowInline","overflowWrap","overflowX","overflowY","overlay","overscrollBehavior","overscrollBehaviorBlock","overscrollBehaviorInline","overscrollBehaviorX","overscrollBehaviorY","p","padding","paddingBlock","paddingBlockEnd","paddingBlockStart","paddingBottom","paddingEnd","paddingInline","paddingInlineEnd","paddingInlineStart","paddingLeft","paddingRight","paddingStart","paddingTop","paddingX","paddingY","page","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","pb","pe","perspective","perspectiveOrigin","pl","placeContent","placeItems","placeSelf","pointerEvents","pos","position","positionAnchor","positionArea","positionTry","positionTryFallbacks","positionTryOrder","positionVisibility","pr","printColorAdjust","ps","pt","px","py","quotes","r","resize","right","ring","ringColor","ringOffset","ringWidth","rotate","rotateX","rotateY","rotateZ","rounded","roundedBottom","roundedBottomLeft","roundedBottomRight","roundedEnd","roundedEndEnd","roundedEndStart","roundedLeft","roundedRight","roundedStart","roundedStartEnd","roundedStartStart","roundedTop","roundedTopLeft","roundedTopRight","rowGap","rubyAlign","rubyMerge","rubyOverhang","rubyPosition","rx","ry","saturate","scale","scaleX","scaleY","scrollBehavior","scrollInitialTarget","scrollMargin","scrollMarginBlock","scrollMarginBlockEnd","scrollMarginBlockStart","scrollMarginBottom","scrollMarginInline","scrollMarginInlineEnd","scrollMarginInlineStart","scrollMarginLeft","scrollMarginRight","scrollMarginTop","scrollMarginX","scrollMarginY","scrollPadding","scrollPaddingBlock","scrollPaddingBlockEnd","scrollPaddingBlockStart","scrollPaddingBottom","scrollPaddingInline","scrollPaddingInlineEnd","scrollPaddingInlineStart","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop","scrollPaddingX","scrollPaddingY","scrollSnapAlign","scrollSnapCoordinate","scrollSnapDestination","scrollSnapMargin","scrollSnapMarginBottom","scrollSnapMarginLeft","scrollSnapMarginRight","scrollSnapMarginTop","scrollSnapPointsX","scrollSnapPointsY","scrollSnapStop","scrollSnapStrictness","scrollSnapType","scrollSnapTypeX","scrollSnapTypeY","scrollTimeline","scrollTimelineAxis","scrollTimelineName","scrollbar","scrollbarColor","scrollbarGutter","scrollbarThumb","scrollbarTrack","scrollbarWidth","sepia","shadow","shadowColor","shapeImageThreshold","shapeMargin","shapeOutside","shapeRendering","size","sm","smDown","smOnly","smTo2xl","smToLg","smToMd","smToXl","spaceX","spaceY","speakAs","srOnly","start","stopColor","stopOpacity","stroke","strokeColor","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","tableLayout","textAlign","textAlignLast","textAnchor","textAutospace","textBox","textBoxEdge","textBoxTrim","textCombineUpright","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkip","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textEmphasis","textEmphasisColor","textEmphasisPosition","textEmphasisStyle","textGradient","textIndent","textJustify","textOrientation","textOverflow","textRendering","textShadow","textShadowColor","textSizeAdjust","textSpacingTrim","textStyle","textTransform","textUnderlineOffset","textUnderlinePosition","textWrap","textWrapMode","textWrapStyle","timelineScope","top","touchAction","transform","transformBox","transformOrigin","transformStyle","transition","transitionBehavior","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","truncate","unicodeBidi","userSelect","vectorEffect","verticalAlign","viewTimeline","viewTimelineAxis","viewTimelineInset","viewTimelineName","viewTransitionClass","viewTransitionName","visibility","w","whiteSpace","whiteSpaceCollapse","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","x","xl","xlDown","xlOnly","xlTo2xl","y","z","zIndex","zoom"])
|
|
4
|
+
const cssPropertySelectorRe = /&|@/
|
|
5
|
+
|
|
6
|
+
export function isCssProperty(value) {
|
|
7
|
+
return cssPropertySet.has(value) || value.startsWith("--") || cssPropertySelectorRe.test(value)
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function splitCssProps(props) {
|
|
11
|
+
return splitProps(props, isCssProperty)
|
|
12
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
|
2
|
+
import type { LinkOverlayProperties } from '../patterns/link-overlay';
|
|
3
|
+
import type { HTMLCerberusProps } from '../types/jsx';
|
|
4
|
+
import type { DistributiveOmit } from '../types/system';
|
|
5
|
+
|
|
6
|
+
export interface LinkOverlayProps extends LinkOverlayProperties, DistributiveOmit<HTMLCerberusProps<'a'>, keyof LinkOverlayProperties> {}
|
|
7
|
+
export declare const LinkOverlay: FunctionComponent<LinkOverlayProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createElement, forwardRef } from 'react';
|
|
2
|
+
import { linkOverlay } from '../patterns/link-overlay';
|
|
3
|
+
import { splitProps } from '../helpers';
|
|
4
|
+
import { cerberus } from './factory';
|
|
5
|
+
|
|
6
|
+
export const LinkOverlay = /* @__PURE__ */ forwardRef(function LinkOverlay(props, ref) {
|
|
7
|
+
const [patternProps, restProps] = splitProps(props, linkOverlay.propKeys)
|
|
8
|
+
const styleProps = linkOverlay.raw(patternProps)
|
|
9
|
+
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
10
|
+
return createElement(cerberus["a"], mergedProps)
|
|
11
|
+
})
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
|
2
|
+
import type { ScaleFadeInProperties } from '../patterns/scale-fade-in';
|
|
3
|
+
import type { HTMLCerberusProps } from '../types/jsx';
|
|
4
|
+
import type { DistributiveOmit } from '../types/system';
|
|
5
|
+
|
|
6
|
+
export interface ScaleFadeInProps extends ScaleFadeInProperties, DistributiveOmit<HTMLCerberusProps<'div'>, keyof ScaleFadeInProperties> {}
|
|
7
|
+
export declare const ScaleFadeIn: FunctionComponent<ScaleFadeInProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createElement, forwardRef } from 'react';
|
|
2
|
+
import { scaleFadeIn } from '../patterns/scale-fade-in';
|
|
3
|
+
import { splitProps } from '../helpers';
|
|
4
|
+
import { cerberus } from './factory';
|
|
5
|
+
|
|
6
|
+
export const ScaleFadeIn = /* @__PURE__ */ forwardRef(function ScaleFadeIn(props, ref) {
|
|
7
|
+
const [patternProps, restProps] = splitProps(props, scaleFadeIn.propKeys)
|
|
8
|
+
const styleProps = scaleFadeIn.raw(patternProps)
|
|
9
|
+
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
10
|
+
return createElement(cerberus["div"], mergedProps)
|
|
11
|
+
})
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
|
2
|
+
import type { ScaleFadeOutProperties } from '../patterns/scale-fade-out';
|
|
3
|
+
import type { HTMLCerberusProps } from '../types/jsx';
|
|
4
|
+
import type { DistributiveOmit } from '../types/system';
|
|
5
|
+
|
|
6
|
+
export interface ScaleFadeOutProps extends ScaleFadeOutProperties, DistributiveOmit<HTMLCerberusProps<'div'>, keyof ScaleFadeOutProperties> {}
|
|
7
|
+
export declare const ScaleFadeOut: FunctionComponent<ScaleFadeOutProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createElement, forwardRef } from 'react';
|
|
2
|
+
import { scaleFadeOut } from '../patterns/scale-fade-out';
|
|
3
|
+
import { splitProps } from '../helpers';
|
|
4
|
+
import { cerberus } from './factory';
|
|
5
|
+
|
|
6
|
+
export const ScaleFadeOut = /* @__PURE__ */ forwardRef(function ScaleFadeOut(props, ref) {
|
|
7
|
+
const [patternProps, restProps] = splitProps(props, scaleFadeOut.propKeys)
|
|
8
|
+
const styleProps = scaleFadeOut.raw(patternProps)
|
|
9
|
+
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
10
|
+
return createElement(cerberus["div"], mergedProps)
|
|
11
|
+
})
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
|
2
|
+
import type { ScrollableProperties } from '../patterns/scrollable';
|
|
3
|
+
import type { HTMLCerberusProps } from '../types/jsx';
|
|
4
|
+
import type { DistributiveOmit } from '../types/system';
|
|
5
|
+
|
|
6
|
+
export interface ScrollableProps extends ScrollableProperties, DistributiveOmit<HTMLCerberusProps<'div'>, keyof ScrollableProperties | 'overflow'> {}
|
|
7
|
+
export declare const Scrollable: FunctionComponent<ScrollableProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createElement, forwardRef } from 'react';
|
|
2
|
+
import { scrollable } from '../patterns/scrollable';
|
|
3
|
+
import { splitProps } from '../helpers';
|
|
4
|
+
import { cerberus } from './factory';
|
|
5
|
+
|
|
6
|
+
export const Scrollable = /* @__PURE__ */ forwardRef(function Scrollable(props, ref) {
|
|
7
|
+
const [patternProps, restProps] = splitProps(props, scrollable.propKeys)
|
|
8
|
+
const styleProps = scrollable.raw(patternProps)
|
|
9
|
+
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
10
|
+
return createElement(cerberus["div"], mergedProps)
|
|
11
|
+
})
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
|
2
|
+
import type { SlideFadeInProperties } from '../patterns/slide-fade-in';
|
|
3
|
+
import type { HTMLCerberusProps } from '../types/jsx';
|
|
4
|
+
import type { DistributiveOmit } from '../types/system';
|
|
5
|
+
|
|
6
|
+
export interface SlideFadeInProps extends SlideFadeInProperties, DistributiveOmit<HTMLCerberusProps<'div'>, keyof SlideFadeInProperties> {}
|
|
7
|
+
export declare const SlideFadeIn: FunctionComponent<SlideFadeInProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createElement, forwardRef } from 'react';
|
|
2
|
+
import { slideFadeIn } from '../patterns/slide-fade-in';
|
|
3
|
+
import { splitProps } from '../helpers';
|
|
4
|
+
import { cerberus } from './factory';
|
|
5
|
+
|
|
6
|
+
export const SlideFadeIn = /* @__PURE__ */ forwardRef(function SlideFadeIn(props, ref) {
|
|
7
|
+
const [patternProps, restProps] = splitProps(props, slideFadeIn.propKeys)
|
|
8
|
+
const styleProps = slideFadeIn.raw(patternProps)
|
|
9
|
+
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
10
|
+
return createElement(cerberus["div"], mergedProps)
|
|
11
|
+
})
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
|
2
|
+
import type { SlideFadeOutProperties } from '../patterns/slide-fade-out';
|
|
3
|
+
import type { HTMLCerberusProps } from '../types/jsx';
|
|
4
|
+
import type { DistributiveOmit } from '../types/system';
|
|
5
|
+
|
|
6
|
+
export interface SlideFadeOutProps extends SlideFadeOutProperties, DistributiveOmit<HTMLCerberusProps<'div'>, keyof SlideFadeOutProperties> {}
|
|
7
|
+
export declare const SlideFadeOut: FunctionComponent<SlideFadeOutProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createElement, forwardRef } from 'react';
|
|
2
|
+
import { slideFadeOut } from '../patterns/slide-fade-out';
|
|
3
|
+
import { splitProps } from '../helpers';
|
|
4
|
+
import { cerberus } from './factory';
|
|
5
|
+
|
|
6
|
+
export const SlideFadeOut = /* @__PURE__ */ forwardRef(function SlideFadeOut(props, ref) {
|
|
7
|
+
const [patternProps, restProps] = splitProps(props, slideFadeOut.propKeys)
|
|
8
|
+
const styleProps = slideFadeOut.raw(patternProps)
|
|
9
|
+
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
10
|
+
return createElement(cerberus["div"], mergedProps)
|
|
11
|
+
})
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
|
2
|
+
import type { SpacerProperties } from '../patterns/spacer';
|
|
3
|
+
import type { HTMLCerberusProps } from '../types/jsx';
|
|
4
|
+
import type { DistributiveOmit } from '../types/system';
|
|
5
|
+
|
|
6
|
+
export interface SpacerProps extends SpacerProperties, DistributiveOmit<HTMLCerberusProps<'div'>, keyof SpacerProperties> {}
|
|
7
|
+
export declare const Spacer: FunctionComponent<SpacerProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createElement, forwardRef } from 'react';
|
|
2
|
+
import { spacer } from '../patterns/spacer';
|
|
3
|
+
import { splitProps } from '../helpers';
|
|
4
|
+
import { cerberus } from './factory';
|
|
5
|
+
|
|
6
|
+
export const Spacer = /* @__PURE__ */ forwardRef(function Spacer(props, ref) {
|
|
7
|
+
const [patternProps, restProps] = splitProps(props, spacer.propKeys)
|
|
8
|
+
const styleProps = spacer.raw(patternProps)
|
|
9
|
+
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
10
|
+
return createElement(cerberus["div"], mergedProps)
|
|
11
|
+
})
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
|
2
|
+
import type { SquareProperties } from '../patterns/square';
|
|
3
|
+
import type { HTMLCerberusProps } from '../types/jsx';
|
|
4
|
+
import type { DistributiveOmit } from '../types/system';
|
|
5
|
+
|
|
6
|
+
export interface SquareProps extends SquareProperties, DistributiveOmit<HTMLCerberusProps<'div'>, keyof SquareProperties> {}
|
|
7
|
+
export declare const Square: FunctionComponent<SquareProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createElement, forwardRef } from 'react';
|
|
2
|
+
import { square } from '../patterns/square';
|
|
3
|
+
import { splitProps } from '../helpers';
|
|
4
|
+
import { cerberus } from './factory';
|
|
5
|
+
|
|
6
|
+
export const Square = /* @__PURE__ */ forwardRef(function Square(props, ref) {
|
|
7
|
+
const [patternProps, restProps] = splitProps(props, square.propKeys)
|
|
8
|
+
const styleProps = square.raw(patternProps)
|
|
9
|
+
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
10
|
+
return createElement(cerberus["div"], mergedProps)
|
|
11
|
+
})
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
|
2
|
+
import type { StackProperties } from '../patterns/stack';
|
|
3
|
+
import type { HTMLCerberusProps } from '../types/jsx';
|
|
4
|
+
import type { DistributiveOmit } from '../types/system';
|
|
5
|
+
|
|
6
|
+
export interface StackProps extends StackProperties, DistributiveOmit<HTMLCerberusProps<'div'>, keyof StackProperties> {}
|
|
7
|
+
export declare const Stack: FunctionComponent<StackProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createElement, forwardRef } from 'react';
|
|
2
|
+
import { stack } from '../patterns/stack';
|
|
3
|
+
import { splitProps } from '../helpers';
|
|
4
|
+
import { cerberus } from './factory';
|
|
5
|
+
|
|
6
|
+
export const Stack = /* @__PURE__ */ forwardRef(function Stack(props, ref) {
|
|
7
|
+
const [patternProps, restProps] = splitProps(props, stack.propKeys)
|
|
8
|
+
const styleProps = stack.raw(patternProps)
|
|
9
|
+
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
10
|
+
return createElement(cerberus["div"], mergedProps)
|
|
11
|
+
})
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
|
2
|
+
import type { VisuallyHiddenProperties } from '../patterns/visually-hidden';
|
|
3
|
+
import type { HTMLCerberusProps } from '../types/jsx';
|
|
4
|
+
import type { DistributiveOmit } from '../types/system';
|
|
5
|
+
|
|
6
|
+
export interface VisuallyHiddenProps extends VisuallyHiddenProperties, DistributiveOmit<HTMLCerberusProps<'div'>, keyof VisuallyHiddenProperties> {}
|
|
7
|
+
export declare const VisuallyHidden: FunctionComponent<VisuallyHiddenProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createElement, forwardRef } from 'react';
|
|
2
|
+
import { visuallyHidden } from '../patterns/visually-hidden';
|
|
3
|
+
import { splitProps } from '../helpers';
|
|
4
|
+
import { cerberus } from './factory';
|
|
5
|
+
|
|
6
|
+
export const VisuallyHidden = /* @__PURE__ */ forwardRef(function VisuallyHidden(props, ref) {
|
|
7
|
+
const [patternProps, restProps] = splitProps(props, visuallyHidden.propKeys)
|
|
8
|
+
const styleProps = visuallyHidden.raw(patternProps)
|
|
9
|
+
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
10
|
+
return createElement(cerberus["div"], mergedProps)
|
|
11
|
+
})
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
|
2
|
+
import type { VstackProperties } from '../patterns/vstack';
|
|
3
|
+
import type { HTMLCerberusProps } from '../types/jsx';
|
|
4
|
+
import type { DistributiveOmit } from '../types/system';
|
|
5
|
+
|
|
6
|
+
export interface VstackProps extends VstackProperties, DistributiveOmit<HTMLCerberusProps<'div'>, keyof VstackProperties> {}
|
|
7
|
+
export declare const VStack: FunctionComponent<VstackProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createElement, forwardRef } from 'react';
|
|
2
|
+
import { vstack } from '../patterns/vstack';
|
|
3
|
+
import { splitProps } from '../helpers';
|
|
4
|
+
import { cerberus } from './factory';
|
|
5
|
+
|
|
6
|
+
export const VStack = /* @__PURE__ */ forwardRef(function VStack(props, ref) {
|
|
7
|
+
const [patternProps, restProps] = splitProps(props, vstack.propKeys)
|
|
8
|
+
const styleProps = vstack.raw(patternProps)
|
|
9
|
+
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
10
|
+
return createElement(cerberus["div"], mergedProps)
|
|
11
|
+
})
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
|
2
|
+
import type { WrapProperties } from '../patterns/wrap';
|
|
3
|
+
import type { HTMLCerberusProps } from '../types/jsx';
|
|
4
|
+
import type { DistributiveOmit } from '../types/system';
|
|
5
|
+
|
|
6
|
+
export interface WrapProps extends WrapProperties, DistributiveOmit<HTMLCerberusProps<'div'>, keyof WrapProperties> {}
|
|
7
|
+
export declare const Wrap: FunctionComponent<WrapProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createElement, forwardRef } from 'react';
|
|
2
|
+
import { wrap } from '../patterns/wrap';
|
|
3
|
+
import { splitProps } from '../helpers';
|
|
4
|
+
import { cerberus } from './factory';
|
|
5
|
+
|
|
6
|
+
export const Wrap = /* @__PURE__ */ forwardRef(function Wrap(props, ref) {
|
|
7
|
+
const [patternProps, restProps] = splitProps(props, wrap.propKeys)
|
|
8
|
+
const styleProps = wrap.raw(patternProps)
|
|
9
|
+
const mergedProps = { ref, ...styleProps, ...restProps }
|
|
10
|
+
return createElement(cerberus["div"], mergedProps)
|
|
11
|
+
})
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ConditionalValue, SystemStyleObject } from '../types/system';
|
|
2
|
+
|
|
3
|
+
export interface AnimateInProperties {
|
|
4
|
+
delay?: ConditionalValue<string>
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
type AnimateInRestStyles = Omit<SystemStyleObject, keyof AnimateInProperties | "overflow">
|
|
8
|
+
|
|
9
|
+
interface AnimateInStyles extends AnimateInProperties, AnimateInRestStyles {}
|
|
10
|
+
|
|
11
|
+
interface AnimateInPatternFn {
|
|
12
|
+
(styles?: AnimateInStyles): string
|
|
13
|
+
raw: (styles?: AnimateInStyles) => SystemStyleObject
|
|
14
|
+
propKeys: Array<keyof AnimateInProperties>
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export declare function animateInRaw(styles?: AnimateInStyles): SystemStyleObject;
|
|
18
|
+
|
|
19
|
+
export declare const animateIn: AnimateInPatternFn;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { getPatternStyles, patternFns } from './runtime';
|
|
2
|
+
import { memo } from '../helpers';
|
|
3
|
+
import { css } from '../css/index';
|
|
4
|
+
|
|
5
|
+
const animateInConfig = { transform(props) {
|
|
6
|
+
const { delay, ...rest } = props;
|
|
7
|
+
return {
|
|
8
|
+
_motionSafe: {
|
|
9
|
+
animationName: "fadeIn",
|
|
10
|
+
animationDuration: "2s",
|
|
11
|
+
animationFillMode: "forwards",
|
|
12
|
+
animationDelay: delay ?? "200ms",
|
|
13
|
+
opacity: "0"
|
|
14
|
+
},
|
|
15
|
+
...rest
|
|
16
|
+
};
|
|
17
|
+
} }
|
|
18
|
+
|
|
19
|
+
export function animateInRaw(styles) {
|
|
20
|
+
const s = getPatternStyles(animateInConfig, styles || {})
|
|
21
|
+
return animateInConfig.transform(s, patternFns)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const animateIn = /* @__PURE__ */ Object.assign(/* @__PURE__ */ memo(function animateIn(styles = {}) {
|
|
25
|
+
return css(animateInRaw(styles))
|
|
26
|
+
}), { raw: animateInRaw, propKeys: ["delay"] })
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ConditionalValue, SystemStyleObject } from '../types/system';
|
|
2
|
+
|
|
3
|
+
export interface AspectRatioProperties {
|
|
4
|
+
ratio?: ConditionalValue<number>
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
type AspectRatioRestStyles = Omit<SystemStyleObject, keyof AspectRatioProperties | "aspectRatio">
|
|
8
|
+
|
|
9
|
+
interface AspectRatioStyles extends AspectRatioProperties, AspectRatioRestStyles {}
|
|
10
|
+
|
|
11
|
+
interface AspectRatioPatternFn {
|
|
12
|
+
(styles?: AspectRatioStyles): string
|
|
13
|
+
raw: (styles?: AspectRatioStyles) => SystemStyleObject
|
|
14
|
+
propKeys: Array<keyof AspectRatioProperties>
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export declare function aspectRatioRaw(styles?: AspectRatioStyles): SystemStyleObject;
|
|
18
|
+
|
|
19
|
+
export declare const aspectRatio: AspectRatioPatternFn;
|