@blakesteve/roster 4.12.1 → 4.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/_virtual/use-sync-external-store-with-selector.development.cjs +1 -0
- package/dist/_virtual/use-sync-external-store-with-selector.development.js +4 -0
- package/dist/_virtual/use-sync-external-store-with-selector.production.cjs +1 -0
- package/dist/_virtual/use-sync-external-store-with-selector.production.js +4 -0
- package/dist/_virtual/with-selector.cjs +1 -0
- package/dist/_virtual/with-selector.js +5 -0
- package/dist/_virtual/with-selector2.cjs +1 -0
- package/dist/_virtual/with-selector2.js +4 -0
- package/dist/components/atoms/Avatar/Avatar.cjs +1 -0
- package/dist/components/atoms/Avatar/Avatar.js +62 -0
- package/dist/components/atoms/Avatar/avatar-variants.cjs +1 -0
- package/dist/components/atoms/Avatar/avatar-variants.js +37 -0
- package/dist/components/atoms/AvatarStrip/AvatarStrip.cjs +1 -0
- package/dist/components/atoms/AvatarStrip/AvatarStrip.js +99 -0
- package/dist/components/atoms/Badge/Badge.cjs +1 -0
- package/dist/components/atoms/Badge/Badge.js +36 -0
- package/dist/components/atoms/Badge/badge-variants.cjs +1 -0
- package/dist/components/atoms/Badge/badge-variants.js +84 -0
- package/dist/components/atoms/Button/Button.cjs +1 -0
- package/dist/components/atoms/Button/Button.js +49 -0
- package/dist/components/atoms/Button/button-variants.cjs +1 -0
- package/dist/components/atoms/Button/button-variants.d.ts +15 -0
- package/dist/components/atoms/Button/button-variants.js +94 -0
- package/dist/components/atoms/Card/Card.cjs +1 -0
- package/dist/components/atoms/Card/Card.js +50 -0
- package/dist/components/atoms/Card/card-variants.cjs +1 -0
- package/dist/components/atoms/Card/card-variants.js +43 -0
- package/dist/components/atoms/Checkbox/Checkbox.cjs +1 -0
- package/dist/components/atoms/Checkbox/Checkbox.js +62 -0
- package/dist/components/atoms/Checkbox/checkbox-variants.cjs +1 -0
- package/dist/components/atoms/Checkbox/checkbox-variants.js +66 -0
- package/dist/components/atoms/Chip/Chip.cjs +1 -0
- package/dist/components/atoms/Chip/Chip.js +118 -0
- package/dist/components/atoms/Chip/chip-variants.cjs +1 -0
- package/dist/components/atoms/Chip/chip-variants.js +85 -0
- package/dist/components/atoms/CollapsibleSection/CollapsibleSection.cjs +1 -0
- package/dist/components/atoms/CollapsibleSection/CollapsibleSection.js +53 -0
- package/dist/components/atoms/Combobox/Combobox.cjs +1 -0
- package/dist/components/atoms/Combobox/Combobox.js +149 -0
- package/dist/components/atoms/Disclosure/Disclosure.cjs +1 -0
- package/dist/components/atoms/Disclosure/Disclosure.js +81 -0
- package/dist/components/atoms/Disclosure/disclosure-variants.cjs +1 -0
- package/dist/components/atoms/Disclosure/disclosure-variants.js +38 -0
- package/dist/components/atoms/Eyebrow/Eyebrow.cjs +1 -0
- package/dist/components/atoms/Eyebrow/Eyebrow.js +26 -0
- package/dist/components/atoms/Eyebrow/eyebrow-variants.cjs +1 -0
- package/dist/components/atoms/Eyebrow/eyebrow-variants.js +28 -0
- package/dist/components/atoms/InlineCode/InlineCode.cjs +1 -0
- package/dist/components/atoms/InlineCode/InlineCode.js +19 -0
- package/dist/components/atoms/InlineCode/inline-code-variants.cjs +1 -0
- package/dist/components/atoms/InlineCode/inline-code-variants.js +18 -0
- package/dist/components/atoms/Input/Input.cjs +1 -0
- package/dist/components/atoms/Input/Input.js +108 -0
- package/dist/components/atoms/Input/input-variants.cjs +1 -0
- package/dist/components/atoms/Input/input-variants.js +89 -0
- package/dist/components/atoms/LabeledDivider/LabeledDivider.cjs +1 -0
- package/dist/components/atoms/LabeledDivider/LabeledDivider.js +16 -0
- package/dist/components/atoms/Link/Link.cjs +1 -0
- package/dist/components/atoms/Link/Link.js +65 -0
- package/dist/components/atoms/Link/link-variants.cjs +1 -0
- package/dist/components/atoms/Link/link-variants.js +32 -0
- package/dist/components/atoms/LiquidTabs/LiquidTabs.cjs +1 -0
- package/dist/components/atoms/LiquidTabs/LiquidTabs.js +119 -0
- package/dist/components/atoms/MultiSelect/MultiSelect.cjs +1 -0
- package/dist/components/atoms/MultiSelect/MultiSelect.js +230 -0
- package/dist/components/atoms/PasswordInput/PasswordInput.cjs +1 -0
- package/dist/components/atoms/PasswordInput/PasswordInput.js +68 -0
- package/dist/components/atoms/Pill/Pill.cjs +1 -0
- package/dist/components/atoms/Pill/Pill.js +47 -0
- package/dist/components/atoms/Pill/pill-variants.cjs +1 -0
- package/dist/components/atoms/Pill/pill-variants.js +82 -0
- package/dist/components/atoms/SegmentBar/SegmentBar.cjs +1 -0
- package/dist/components/atoms/SegmentBar/SegmentBar.js +72 -0
- package/dist/components/atoms/Select/Select.cjs +1 -0
- package/dist/components/atoms/Select/Select.js +151 -0
- package/dist/components/atoms/Select/select-variants.cjs +1 -0
- package/dist/components/atoms/Select/select-variants.js +94 -0
- package/dist/components/atoms/Spinner/Spinner.cjs +1 -0
- package/dist/components/atoms/Spinner/Spinner.js +49 -0
- package/dist/components/atoms/Stat/Stat.cjs +1 -0
- package/dist/components/atoms/Stat/Stat.js +16 -0
- package/dist/components/atoms/Stat/stat-variants.cjs +1 -0
- package/dist/components/atoms/Stat/stat-variants.js +25 -0
- package/dist/components/atoms/Switch/Switch.cjs +1 -0
- package/dist/components/atoms/Switch/Switch.js +72 -0
- package/dist/components/atoms/Switch/switch-variants.cjs +1 -0
- package/dist/components/atoms/Switch/switch-variants.js +43 -0
- package/dist/components/atoms/Textarea/Textarea.cjs +1 -0
- package/dist/components/atoms/Textarea/Textarea.js +65 -0
- package/dist/components/atoms/Textarea/textarea-variants.cjs +1 -0
- package/dist/components/atoms/Textarea/textarea-variants.js +60 -0
- package/dist/components/atoms/ThemeToggle/ThemeToggle.cjs +1 -0
- package/dist/components/atoms/ThemeToggle/ThemeToggle.js +75 -0
- package/dist/components/atoms/Tooltip/Tooltip.cjs +1 -0
- package/dist/components/atoms/Tooltip/Tooltip.js +59 -0
- package/dist/components/molecules/Accordion/Accordion.cjs +1 -0
- package/dist/components/molecules/Accordion/Accordion.js +37 -0
- package/dist/components/molecules/Alert/Alert.cjs +1 -0
- package/dist/components/molecules/Alert/Alert.js +67 -0
- package/dist/components/molecules/Alert/alert-variants.cjs +1 -0
- package/dist/components/molecules/Alert/alert-variants.js +80 -0
- package/dist/components/molecules/Breadcrumbs/Breadcrumbs.cjs +1 -0
- package/dist/components/molecules/Breadcrumbs/Breadcrumbs.js +88 -0
- package/dist/components/molecules/Breadcrumbs/breadcrumb-variants.cjs +1 -0
- package/dist/components/molecules/Breadcrumbs/breadcrumb-variants.js +19 -0
- package/dist/components/molecules/CallToAction/CallToAction.cjs +1 -0
- package/dist/components/molecules/CallToAction/CallToAction.js +40 -0
- package/dist/components/molecules/CallToAction/call-to-action-variants.cjs +1 -0
- package/dist/components/molecules/CallToAction/call-to-action-variants.js +72 -0
- package/dist/components/molecules/CheckboxGroup/CheckboxGroup.cjs +1 -0
- package/dist/components/molecules/CheckboxGroup/CheckboxGroup.js +145 -0
- package/dist/components/molecules/CheckboxGroup/checkbox-group-variants.cjs +1 -0
- package/dist/components/molecules/CheckboxGroup/checkbox-group-variants.js +72 -0
- package/dist/components/molecules/DescriptionList/DescriptionList.cjs +1 -0
- package/dist/components/molecules/DescriptionList/DescriptionList.js +31 -0
- package/dist/components/molecules/DescriptionList/description-list-variants.cjs +1 -0
- package/dist/components/molecules/DescriptionList/description-list-variants.js +21 -0
- package/dist/components/molecules/EmptyState/EmptyState.cjs +1 -0
- package/dist/components/molecules/EmptyState/EmptyState.js +21 -0
- package/dist/components/molecules/EmptyState/empty-state-variants.cjs +1 -0
- package/dist/components/molecules/EmptyState/empty-state-variants.js +18 -0
- package/dist/components/molecules/ErrorState/ErrorState.cjs +1 -0
- package/dist/components/molecules/ErrorState/ErrorState.js +48 -0
- package/dist/components/molecules/ErrorState/error-state-variants.cjs +1 -0
- package/dist/components/molecules/ErrorState/error-state-variants.js +18 -0
- package/dist/components/molecules/MatchupCard/MatchupCard.cjs +1 -0
- package/dist/components/molecules/MatchupCard/MatchupCard.js +101 -0
- package/dist/components/molecules/Pullquote/Pullquote.cjs +1 -0
- package/dist/components/molecules/Pullquote/Pullquote.js +29 -0
- package/dist/components/molecules/Pullquote/pullquote-variants.cjs +1 -0
- package/dist/components/molecules/Pullquote/pullquote-variants.js +32 -0
- package/dist/components/molecules/RadioGroup/RadioGroup.cjs +1 -0
- package/dist/components/molecules/RadioGroup/RadioGroup.js +165 -0
- package/dist/components/molecules/RadioGroup/radio-group-variants.cjs +1 -0
- package/dist/components/molecules/RadioGroup/radio-group-variants.js +94 -0
- package/dist/components/molecules/Toast/Toast.cjs +1 -0
- package/dist/components/molecules/Toast/Toast.js +63 -0
- package/dist/components/molecules/Toast/Toaster.cjs +1 -0
- package/dist/components/molecules/Toast/Toaster.js +69 -0
- package/dist/components/molecules/Toast/toast-api.cjs +1 -0
- package/dist/components/molecules/Toast/toast-api.js +26 -0
- package/dist/components/molecules/Toast/toast-variants.cjs +1 -0
- package/dist/components/molecules/Toast/toast-variants.js +83 -0
- package/dist/components/organisms/ActionBar/ActionBar.cjs +1 -0
- package/dist/components/organisms/ActionBar/ActionBar.js +39 -0
- package/dist/components/organisms/ActionBar/action-bar-variants.cjs +1 -0
- package/dist/components/organisms/ActionBar/action-bar-variants.js +26 -0
- package/dist/components/organisms/Countdown/Countdown.cjs +1 -0
- package/dist/components/organisms/Countdown/Countdown.js +97 -0
- package/dist/components/organisms/Countdown/countdown-variants.cjs +1 -0
- package/dist/components/organisms/Countdown/countdown-variants.js +65 -0
- package/dist/components/organisms/DataTable/DataTable.cjs +1 -0
- package/dist/components/organisms/DataTable/DataTable.js +159 -0
- package/dist/components/organisms/Dialog/Dialog.cjs +1 -0
- package/dist/components/organisms/Dialog/Dialog.js +151 -0
- package/dist/components/organisms/Footer/Footer.cjs +1 -0
- package/dist/components/organisms/Footer/Footer.js +40 -0
- package/dist/components/organisms/Footer/footer-variants.cjs +1 -0
- package/dist/components/organisms/Footer/footer-variants.js +25 -0
- package/dist/components/organisms/Navbar/Navbar.cjs +1 -0
- package/dist/components/organisms/Navbar/Navbar.js +538 -0
- package/dist/components/organisms/Navbar/navbar-variants.cjs +1 -0
- package/dist/components/organisms/Navbar/navbar-variants.js +35 -0
- package/dist/components/organisms/Table/Table.cjs +1 -0
- package/dist/components/organisms/Table/Table.js +117 -0
- package/dist/components/organisms/Table/table-variants.cjs +1 -0
- package/dist/components/organisms/Table/table-variants.js +117 -0
- package/dist/data-table.cjs +1 -0
- package/dist/data-table.js +5 -0
- package/dist/hooks/useCountdown.cjs +1 -0
- package/dist/hooks/useCountdown.js +32 -0
- package/dist/hooks/useKeySequence.cjs +1 -0
- package/dist/hooks/useKeySequence.js +54 -0
- package/dist/internal/PopupOption.cjs +1 -0
- package/dist/internal/PopupOption.js +38 -0
- package/dist/internal/popup.cjs +1 -0
- package/dist/internal/popup.js +28 -0
- package/dist/lib/utils.cjs +1 -0
- package/dist/lib/utils.js +27 -0
- package/dist/meta.json +1 -1
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +1 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +532 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +1 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +403 -0
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.cjs +1 -0
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +368 -0
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.cjs +1 -0
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +13 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs +1 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +209 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +1 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +1 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
- package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.cjs +558 -0
- package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.js +3101 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.cjs +1 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.js +120 -0
- package/dist/node_modules/@fortawesome/react-fontawesome/dist/index.cjs +1 -0
- package/dist/node_modules/@fortawesome/react-fontawesome/dist/index.js +261 -0
- package/dist/node_modules/@headlessui/react/dist/components/button/button.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/button/button.js +16 -0
- package/dist/node_modules/@headlessui/react/dist/components/checkbox/checkbox.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/checkbox/checkbox.js +38 -0
- package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox-machine-glue.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox-machine-glue.js +21 -0
- package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox-machine.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox-machine.js +165 -0
- package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox.js +287 -0
- package/dist/node_modules/@headlessui/react/dist/components/description/description.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/description/description.js +44 -0
- package/dist/node_modules/@headlessui/react/dist/components/dialog/dialog.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/dialog/dialog.js +109 -0
- package/dist/node_modules/@headlessui/react/dist/components/field/field.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/field/field.js +17 -0
- package/dist/node_modules/@headlessui/react/dist/components/fieldset/fieldset.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/fieldset/fieldset.js +17 -0
- package/dist/node_modules/@headlessui/react/dist/components/focus-trap/focus-trap.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/focus-trap/focus-trap.js +132 -0
- package/dist/node_modules/@headlessui/react/dist/components/input/input.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/input/input.js +18 -0
- package/dist/node_modules/@headlessui/react/dist/components/keyboard.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/keyboard.js +4 -0
- package/dist/node_modules/@headlessui/react/dist/components/label/label.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/label/label.js +61 -0
- package/dist/node_modules/@headlessui/react/dist/components/legend/legend.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/legend/legend.js +10 -0
- package/dist/node_modules/@headlessui/react/dist/components/listbox/listbox-machine-glue.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/listbox/listbox-machine-glue.js +21 -0
- package/dist/node_modules/@headlessui/react/dist/components/listbox/listbox-machine.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/listbox/listbox-machine.js +171 -0
- package/dist/node_modules/@headlessui/react/dist/components/listbox/listbox.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/listbox/listbox.js +205 -0
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine-glue.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine-glue.js +21 -0
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine.js +120 -0
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu.js +197 -0
- package/dist/node_modules/@headlessui/react/dist/components/mouse.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/mouse.js +4 -0
- package/dist/node_modules/@headlessui/react/dist/components/popover/popover-machine-glue.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/popover/popover-machine-glue.js +21 -0
- package/dist/node_modules/@headlessui/react/dist/components/popover/popover-machine.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/popover/popover-machine.js +49 -0
- package/dist/node_modules/@headlessui/react/dist/components/popover/popover.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/popover/popover.js +234 -0
- package/dist/node_modules/@headlessui/react/dist/components/portal/portal.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/portal/portal.js +63 -0
- package/dist/node_modules/@headlessui/react/dist/components/radio-group/radio-group.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/radio-group/radio-group.js +126 -0
- package/dist/node_modules/@headlessui/react/dist/components/switch/switch.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/switch/switch.js +55 -0
- package/dist/node_modules/@headlessui/react/dist/components/textarea/textarea.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/textarea/textarea.js +18 -0
- package/dist/node_modules/@headlessui/react/dist/components/transition/transition.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/transition/transition.js +135 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.js +14 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.js +52 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.js +38 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.js +8 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.js +12 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.js +33 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-by-comparator.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-by-comparator.js +16 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-controllable.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-controllable.js +10 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-default-value.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-default-value.js +8 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.js +9 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.js +15 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-element-size.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-element-size.js +26 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-escape.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-escape.js +12 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-event-listener.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-event-listener.js +15 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-event.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js +9 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js +8 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-handle-toggle.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-handle-toggle.js +15 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-inert-others.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-inert-others.js +41 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-mounted.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js +11 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-top-layer.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-top-layer.js +13 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-touch-device.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-touch-device.js +16 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js +8 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.js +11 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-on-disappear.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-on-disappear.js +28 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-on-unmount.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-on-unmount.js +14 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.js +38 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js +12 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-quick-release.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-quick-release.js +32 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-refocusable-input.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-refocusable-input.js +24 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js +12 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-resolved-tag.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-resolved-tag.js +11 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-root-containers.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-root-containers.js +38 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.js +12 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js +16 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-slot.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-slot.js +7 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-store.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-store.js +7 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js +20 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tab-direction.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tab-direction.js +13 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-text-value.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-text-value.js +17 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js +16 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.cjs +2 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js +73 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js +18 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-watch.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-watch.js +15 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.js +15 -0
- package/dist/node_modules/@headlessui/react/dist/internal/close-provider.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/internal/close-provider.js +9 -0
- package/dist/node_modules/@headlessui/react/dist/internal/disabled.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/internal/disabled.js +12 -0
- package/dist/node_modules/@headlessui/react/dist/internal/floating.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/internal/floating.js +154 -0
- package/dist/node_modules/@headlessui/react/dist/internal/form-fields.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/internal/form-fields.js +40 -0
- package/dist/node_modules/@headlessui/react/dist/internal/frozen.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/internal/frozen.js +14 -0
- package/dist/node_modules/@headlessui/react/dist/internal/hidden.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/internal/hidden.js +13 -0
- package/dist/node_modules/@headlessui/react/dist/internal/id.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/internal/id.js +12 -0
- package/dist/node_modules/@headlessui/react/dist/internal/open-closed.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js +19 -0
- package/dist/node_modules/@headlessui/react/dist/internal/portal-force-root.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/internal/portal-force-root.js +12 -0
- package/dist/node_modules/@headlessui/react/dist/machine.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/machine.js +74 -0
- package/dist/node_modules/@headlessui/react/dist/machines/stack-machine.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/machines/stack-machine.js +33 -0
- package/dist/node_modules/@headlessui/react/dist/react-glue.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/react-glue.js +12 -0
- package/dist/node_modules/@headlessui/react/dist/utils/active-element-history.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/active-element-history.js +15 -0
- package/dist/node_modules/@headlessui/react/dist/utils/bugs.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/bugs.js +19 -0
- package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.js +40 -0
- package/dist/node_modules/@headlessui/react/dist/utils/class-names.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/class-names.js +6 -0
- package/dist/node_modules/@headlessui/react/dist/utils/default-map.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/default-map.js +12 -0
- package/dist/node_modules/@headlessui/react/dist/utils/disposables.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/disposables.js +40 -0
- package/dist/node_modules/@headlessui/react/dist/utils/document-ready.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/document-ready.js +9 -0
- package/dist/node_modules/@headlessui/react/dist/utils/dom.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/dom.js +46 -0
- package/dist/node_modules/@headlessui/react/dist/utils/element-movement.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/element-movement.js +21 -0
- package/dist/node_modules/@headlessui/react/dist/utils/env.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/env.js +34 -0
- package/dist/node_modules/@headlessui/react/dist/utils/focus-management.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js +97 -0
- package/dist/node_modules/@headlessui/react/dist/utils/form.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/form.js +32 -0
- package/dist/node_modules/@headlessui/react/dist/utils/get-text-value.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/get-text-value.js +31 -0
- package/dist/node_modules/@headlessui/react/dist/utils/match.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/match.js +11 -0
- package/dist/node_modules/@headlessui/react/dist/utils/micro-task.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/micro-task.js +8 -0
- package/dist/node_modules/@headlessui/react/dist/utils/owner.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/owner.js +22 -0
- package/dist/node_modules/@headlessui/react/dist/utils/platform.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/platform.js +14 -0
- package/dist/node_modules/@headlessui/react/dist/utils/render.cjs +4 -0
- package/dist/node_modules/@headlessui/react/dist/utils/render.js +126 -0
- package/dist/node_modules/@headlessui/react/dist/utils/store.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/store.js +14 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +9 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +53 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +13 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +55 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +338 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +32 -0
- package/dist/node_modules/@react-aria/focus/dist/useFocusRing.cjs +1 -0
- package/dist/node_modules/@react-aria/focus/dist/useFocusRing.js +38 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.cjs +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.js +30 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.cjs +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.js +97 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.cjs +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.js +57 -0
- package/dist/node_modules/@react-aria/interactions/dist/useHover.cjs +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useHover.js +86 -0
- package/dist/node_modules/@react-aria/interactions/dist/utils.cjs +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/utils.js +66 -0
- package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.cjs +1 -0
- package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.js +27 -0
- package/dist/node_modules/@react-aria/utils/dist/domHelpers.cjs +1 -0
- package/dist/node_modules/@react-aria/utils/dist/domHelpers.js +15 -0
- package/dist/node_modules/@react-aria/utils/dist/focusWithoutScrolling.cjs +1 -0
- package/dist/node_modules/@react-aria/utils/dist/focusWithoutScrolling.js +45 -0
- package/dist/node_modules/@react-aria/utils/dist/isVirtualEvent.cjs +1 -0
- package/dist/node_modules/@react-aria/utils/dist/isVirtualEvent.js +7 -0
- package/dist/node_modules/@react-aria/utils/dist/openLink.cjs +1 -0
- package/dist/node_modules/@react-aria/utils/dist/openLink.js +28 -0
- package/dist/node_modules/@react-aria/utils/dist/platform.cjs +1 -0
- package/dist/node_modules/@react-aria/utils/dist/platform.js +47 -0
- package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.cjs +1 -0
- package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.js +34 -0
- package/dist/node_modules/@react-aria/utils/dist/useLayoutEffect.cjs +1 -0
- package/dist/node_modules/@react-aria/utils/dist/useLayoutEffect.js +6 -0
- package/dist/node_modules/@react-stately/flags/dist/import.cjs +1 -0
- package/dist/node_modules/@react-stately/flags/dist/import.js +7 -0
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.cjs +1 -0
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +38 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.cjs +1 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +533 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.cjs +4 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +52 -0
- package/dist/node_modules/class-variance-authority/dist/index.cjs +1 -0
- package/dist/node_modules/class-variance-authority/dist/index.js +35 -0
- package/dist/node_modules/clsx/dist/clsx.cjs +1 -0
- package/dist/node_modules/clsx/dist/clsx.js +16 -0
- package/dist/node_modules/date-fns/_lib/getRoundingMethod.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/getRoundingMethod.js +9 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
- package/dist/node_modules/date-fns/_lib/normalizeDates.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +11 -0
- package/dist/node_modules/date-fns/_lib/normalizeInterval.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/normalizeInterval.js +8 -0
- package/dist/node_modules/date-fns/add.cjs +1 -0
- package/dist/node_modules/date-fns/add.js +19 -0
- package/dist/node_modules/date-fns/addDays.cjs +1 -0
- package/dist/node_modules/date-fns/addDays.js +9 -0
- package/dist/node_modules/date-fns/addMonths.cjs +1 -0
- package/dist/node_modules/date-fns/addMonths.js +19 -0
- package/dist/node_modules/date-fns/compareAsc.cjs +1 -0
- package/dist/node_modules/date-fns/compareAsc.js +8 -0
- package/dist/node_modules/date-fns/constants.cjs +1 -0
- package/dist/node_modules/date-fns/constants.js +7 -0
- package/dist/node_modules/date-fns/constructFrom.cjs +1 -0
- package/dist/node_modules/date-fns/constructFrom.js +7 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +15 -0
- package/dist/node_modules/date-fns/differenceInCalendarMonths.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInCalendarMonths.js +12 -0
- package/dist/node_modules/date-fns/differenceInCalendarYears.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInCalendarYears.js +12 -0
- package/dist/node_modules/date-fns/differenceInDays.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInDays.js +21 -0
- package/dist/node_modules/date-fns/differenceInHours.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInHours.js +14 -0
- package/dist/node_modules/date-fns/differenceInMilliseconds.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInMilliseconds.js +7 -0
- package/dist/node_modules/date-fns/differenceInMinutes.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInMinutes.js +10 -0
- package/dist/node_modules/date-fns/differenceInMonths.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInMonths.js +23 -0
- package/dist/node_modules/date-fns/differenceInSeconds.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInSeconds.js +9 -0
- package/dist/node_modules/date-fns/differenceInYears.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInYears.js +16 -0
- package/dist/node_modules/date-fns/endOfDay.cjs +1 -0
- package/dist/node_modules/date-fns/endOfDay.js +8 -0
- package/dist/node_modules/date-fns/endOfMonth.cjs +1 -0
- package/dist/node_modules/date-fns/endOfMonth.js +8 -0
- package/dist/node_modules/date-fns/intervalToDuration.cjs +1 -0
- package/dist/node_modules/date-fns/intervalToDuration.js +25 -0
- package/dist/node_modules/date-fns/isAfter.cjs +1 -0
- package/dist/node_modules/date-fns/isAfter.js +7 -0
- package/dist/node_modules/date-fns/isLastDayOfMonth.cjs +1 -0
- package/dist/node_modules/date-fns/isLastDayOfMonth.js +10 -0
- package/dist/node_modules/date-fns/startOfDay.cjs +1 -0
- package/dist/node_modules/date-fns/startOfDay.js +8 -0
- package/dist/node_modules/date-fns/toDate.cjs +1 -0
- package/dist/node_modules/date-fns/toDate.js +7 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs +1 -0
- package/dist/{utils-koxKGlVV.js → node_modules/tailwind-merge/dist/bundle-mjs.js} +216 -244
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.cjs +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +57 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.cjs +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +56 -0
- package/dist/node_modules/use-sync-external-store/with-selector.cjs +1 -0
- package/dist/node_modules/use-sync-external-store/with-selector.js +10 -0
- package/dist/preflight.cjs +1 -0
- package/dist/preflight.js +1 -0
- package/dist/roster.cjs +1 -0
- package/dist/roster.js +185 -0
- package/dist/tokens.cjs +1 -0
- package/dist/tokens.js +1 -0
- package/dist/utils.cjs +1 -0
- package/dist/utils.js +4 -0
- package/package.json +8 -8
- package/dist/Table-CSXfWRkc.js +0 -4949
- package/dist/Table-pfb9MJtO.cjs +0 -566
- package/dist/data-table.cjs.js +0 -1
- package/dist/data-table.es.js +0 -156
- package/dist/preflight.cjs.js +0 -1
- package/dist/preflight.es.js +0 -1
- package/dist/roster.cjs.js +0 -5
- package/dist/roster.es.js +0 -11334
- package/dist/tokens.cjs.js +0 -1
- package/dist/tokens.es.js +0 -1
- package/dist/utils-B4q42wBM.cjs +0 -1
- package/dist/utils.cjs.js +0 -1
- package/dist/utils.es.js +0 -4
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import { cn as l } from "../../../lib/utils.js";
|
|
4
|
+
import { tableVariants as m, tableWrapperVariants as c, tableCellVariants as f, tableHeaderVariants as i, tableHeadVariants as p, tableRowVariants as N } from "./table-variants.js";
|
|
5
|
+
const d = r.createContext({
|
|
6
|
+
variant: "default",
|
|
7
|
+
size: "md",
|
|
8
|
+
hoverable: !1
|
|
9
|
+
}), T = r.forwardRef(
|
|
10
|
+
({
|
|
11
|
+
className: t,
|
|
12
|
+
variant: a = "default",
|
|
13
|
+
size: e = "md",
|
|
14
|
+
hoverable: s = !1,
|
|
15
|
+
...n
|
|
16
|
+
}, b) => /* @__PURE__ */ o(d.Provider, { value: { variant: a, size: e, hoverable: s }, children: /* @__PURE__ */ o("div", { className: l(c({ variant: a })), children: /* @__PURE__ */ o(
|
|
17
|
+
"table",
|
|
18
|
+
{
|
|
19
|
+
ref: b,
|
|
20
|
+
className: l(m({ size: e }), t),
|
|
21
|
+
...n
|
|
22
|
+
}
|
|
23
|
+
) }) })
|
|
24
|
+
);
|
|
25
|
+
T.displayName = "Table";
|
|
26
|
+
const u = r.forwardRef(({ className: t, ...a }, e) => {
|
|
27
|
+
const { variant: s } = r.useContext(d);
|
|
28
|
+
return /* @__PURE__ */ o(
|
|
29
|
+
"thead",
|
|
30
|
+
{
|
|
31
|
+
ref: e,
|
|
32
|
+
className: l(i({ variant: s }), t),
|
|
33
|
+
...a
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
});
|
|
37
|
+
u.displayName = "TableHeader";
|
|
38
|
+
const y = r.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ o(
|
|
39
|
+
"tbody",
|
|
40
|
+
{
|
|
41
|
+
ref: e,
|
|
42
|
+
className: l("rst:[&_tr:last-child]:border-0", t),
|
|
43
|
+
...a
|
|
44
|
+
}
|
|
45
|
+
));
|
|
46
|
+
y.displayName = "TableBody";
|
|
47
|
+
const x = r.forwardRef(({ className: t, ...a }, e) => {
|
|
48
|
+
const { variant: s } = r.useContext(d);
|
|
49
|
+
return /* @__PURE__ */ o(
|
|
50
|
+
"tfoot",
|
|
51
|
+
{
|
|
52
|
+
ref: e,
|
|
53
|
+
className: l(
|
|
54
|
+
i({ variant: s }),
|
|
55
|
+
"rst:border-t rst:font-medium rst:[&>tr]:last:border-b-0",
|
|
56
|
+
t
|
|
57
|
+
),
|
|
58
|
+
...a
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
});
|
|
62
|
+
x.displayName = "TableFooter";
|
|
63
|
+
const C = r.forwardRef(({ className: t, ...a }, e) => {
|
|
64
|
+
const { variant: s, hoverable: n } = r.useContext(d);
|
|
65
|
+
return /* @__PURE__ */ o(
|
|
66
|
+
"tr",
|
|
67
|
+
{
|
|
68
|
+
ref: e,
|
|
69
|
+
className: l(N({ variant: s, hoverable: n }), t),
|
|
70
|
+
...a
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
});
|
|
74
|
+
C.displayName = "TableRow";
|
|
75
|
+
const R = r.forwardRef(({ className: t, ...a }, e) => {
|
|
76
|
+
const { variant: s, size: n } = r.useContext(d);
|
|
77
|
+
return /* @__PURE__ */ o(
|
|
78
|
+
"th",
|
|
79
|
+
{
|
|
80
|
+
ref: e,
|
|
81
|
+
className: l(p({ variant: s, size: n }), t),
|
|
82
|
+
...a
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
});
|
|
86
|
+
R.displayName = "TableHead";
|
|
87
|
+
const w = r.forwardRef(({ className: t, ...a }, e) => {
|
|
88
|
+
const { variant: s, size: n } = r.useContext(d);
|
|
89
|
+
return /* @__PURE__ */ o(
|
|
90
|
+
"td",
|
|
91
|
+
{
|
|
92
|
+
ref: e,
|
|
93
|
+
className: l(f({ variant: s, size: n }), t),
|
|
94
|
+
...a
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
});
|
|
98
|
+
w.displayName = "TableCell";
|
|
99
|
+
const v = r.forwardRef(({ className: t, ...a }, e) => /* @__PURE__ */ o(
|
|
100
|
+
"caption",
|
|
101
|
+
{
|
|
102
|
+
ref: e,
|
|
103
|
+
className: l("rst:mt-4 rst:text-sm rst:text-gray-500 rst:dark:text-gray-400", t),
|
|
104
|
+
...a
|
|
105
|
+
}
|
|
106
|
+
));
|
|
107
|
+
v.displayName = "TableCaption";
|
|
108
|
+
export {
|
|
109
|
+
T as Table,
|
|
110
|
+
y as TableBody,
|
|
111
|
+
v as TableCaption,
|
|
112
|
+
w as TableCell,
|
|
113
|
+
x as TableFooter,
|
|
114
|
+
R as TableHead,
|
|
115
|
+
u as TableHeader,
|
|
116
|
+
C as TableRow
|
|
117
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../node_modules/class-variance-authority/dist/index.cjs"),t=r.cva("rst:font-ui rst:relative rst:w-full rst:overflow-auto rst:rounded-md rst:transition-colors rst:duration-200",{variants:{variant:{default:"rst:border rst:border-gray-200 rst:dark:border-gray-800 rst:bg-white rst:dark:bg-gray-950",ghost:"rst:bg-transparent",subtle:"rst:border rst:border-gray-100 rst:dark:border-gray-800 rst:bg-gray-50 rst:dark:bg-gray-900",primary:"rst:border rst:border-primary-200 rst:dark:border-primary-900/50 rst:bg-white rst:dark:bg-gray-950 rst:elevation-raised"}},defaultVariants:{variant:"default"}}),a=r.cva("rst:w-full rst:caption-bottom",{variants:{size:{sm:"rst:text-xs",md:"rst:text-sm",lg:"rst:text-base"}},defaultVariants:{size:"md"}}),s=r.cva("rst:[&_tr]:border-b rst:transition-colors",{variants:{variant:{default:"rst:bg-gray-50 rst:dark:bg-gray-900 rst:border-gray-200 rst:dark:border-gray-800",ghost:"rst:bg-transparent rst:border-gray-200 rst:dark:border-gray-800",subtle:"rst:bg-gray-100/50 rst:dark:bg-gray-800/50 rst:border-gray-200 rst:dark:border-gray-800",primary:"rst:bg-primary-50 rst:dark:bg-primary-900/20 rst:border-primary-200 rst:dark:border-primary-900/50"}},defaultVariants:{variant:"default"}}),e=r.cva("rst:border-b rst:transition-colors rst:data-[state=selected]:bg-gray-100 rst:dark:data-[state=selected]:bg-gray-800",{variants:{variant:{default:"rst:border-gray-200 rst:dark:border-gray-800 rst:bg-white rst:dark:bg-gray-950",ghost:"rst:border-gray-100 rst:dark:border-gray-800 rst:bg-transparent",subtle:"rst:border-gray-200 rst:dark:border-gray-800 rst:bg-transparent",primary:"rst:border-primary-100 rst:dark:border-primary-900/50 rst:bg-white rst:dark:bg-gray-950"},hoverable:{true:"rst:cursor-pointer",false:""}},compoundVariants:[{variant:"default",hoverable:!0,className:"rst:hover:bg-gray-50/50 rst:dark:hover:bg-gray-800/50"},{variant:"ghost",hoverable:!0,className:"rst:hover:bg-gray-50 rst:dark:hover:bg-gray-900"},{variant:"subtle",hoverable:!0,className:"rst:hover:bg-gray-100 rst:dark:hover:bg-gray-800"},{variant:"primary",hoverable:!0,className:"rst:hover:bg-primary-50/50 rst:dark:hover:bg-primary-900/20"}],defaultVariants:{variant:"default",hoverable:!1}}),d=r.cva("rst:text-left rst:align-middle rst:font-semibold rst:tracking-wide rst:[&:has([role=checkbox])]:pr-0 rst:transition-colors",{variants:{variant:{default:"rst:text-gray-600 rst:dark:text-gray-400",ghost:"rst:text-gray-500 rst:dark:text-gray-400",subtle:"rst:text-gray-600 rst:dark:text-gray-400",primary:"rst:text-primary-800 rst:dark:text-primary-300"},size:{sm:"rst:h-10 rst:px-3",md:"rst:h-12 rst:px-4",lg:"rst:h-14 rst:px-6"}},defaultVariants:{variant:"default",size:"md"}}),i=r.cva("rst:align-middle rst:[&:has([role=checkbox])]:pr-0 rst:transition-colors",{variants:{variant:{default:"rst:text-gray-700 rst:dark:text-gray-300",ghost:"rst:text-gray-700 rst:dark:text-gray-300",subtle:"rst:text-gray-700 rst:dark:text-gray-300",primary:"rst:text-gray-800 rst:dark:text-gray-200"},size:{sm:"rst:p-3",md:"rst:p-4",lg:"rst:p-6 rst:py-5"}},defaultVariants:{variant:"default",size:"md"}});exports.tableCellVariants=i;exports.tableHeadVariants=d;exports.tableHeaderVariants=s;exports.tableRowVariants=e;exports.tableVariants=a;exports.tableWrapperVariants=t;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { cva as r } from "../../../node_modules/class-variance-authority/dist/index.js";
|
|
2
|
+
const a = /* @__PURE__ */ r(
|
|
3
|
+
"rst:font-ui rst:relative rst:w-full rst:overflow-auto rst:rounded-md rst:transition-colors rst:duration-200",
|
|
4
|
+
{
|
|
5
|
+
variants: {
|
|
6
|
+
variant: {
|
|
7
|
+
default: "rst:border rst:border-gray-200 rst:dark:border-gray-800 rst:bg-white rst:dark:bg-gray-950",
|
|
8
|
+
ghost: "rst:bg-transparent",
|
|
9
|
+
subtle: "rst:border rst:border-gray-100 rst:dark:border-gray-800 rst:bg-gray-50 rst:dark:bg-gray-900",
|
|
10
|
+
primary: "rst:border rst:border-primary-200 rst:dark:border-primary-900/50 rst:bg-white rst:dark:bg-gray-950 rst:elevation-raised"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: { variant: "default" }
|
|
14
|
+
}
|
|
15
|
+
), s = /* @__PURE__ */ r("rst:w-full rst:caption-bottom", {
|
|
16
|
+
variants: {
|
|
17
|
+
size: {
|
|
18
|
+
sm: "rst:text-xs",
|
|
19
|
+
md: "rst:text-sm",
|
|
20
|
+
lg: "rst:text-base"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: { size: "md" }
|
|
24
|
+
}), e = /* @__PURE__ */ r("rst:[&_tr]:border-b rst:transition-colors", {
|
|
25
|
+
variants: {
|
|
26
|
+
variant: {
|
|
27
|
+
default: "rst:bg-gray-50 rst:dark:bg-gray-900 rst:border-gray-200 rst:dark:border-gray-800",
|
|
28
|
+
ghost: "rst:bg-transparent rst:border-gray-200 rst:dark:border-gray-800",
|
|
29
|
+
subtle: "rst:bg-gray-100/50 rst:dark:bg-gray-800/50 rst:border-gray-200 rst:dark:border-gray-800",
|
|
30
|
+
primary: "rst:bg-primary-50 rst:dark:bg-primary-900/20 rst:border-primary-200 rst:dark:border-primary-900/50"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
defaultVariants: { variant: "default" }
|
|
34
|
+
}), d = /* @__PURE__ */ r(
|
|
35
|
+
"rst:border-b rst:transition-colors rst:data-[state=selected]:bg-gray-100 rst:dark:data-[state=selected]:bg-gray-800",
|
|
36
|
+
{
|
|
37
|
+
variants: {
|
|
38
|
+
variant: {
|
|
39
|
+
default: "rst:border-gray-200 rst:dark:border-gray-800 rst:bg-white rst:dark:bg-gray-950",
|
|
40
|
+
ghost: "rst:border-gray-100 rst:dark:border-gray-800 rst:bg-transparent",
|
|
41
|
+
subtle: "rst:border-gray-200 rst:dark:border-gray-800 rst:bg-transparent",
|
|
42
|
+
primary: "rst:border-primary-100 rst:dark:border-primary-900/50 rst:bg-white rst:dark:bg-gray-950"
|
|
43
|
+
},
|
|
44
|
+
hoverable: {
|
|
45
|
+
true: "rst:cursor-pointer",
|
|
46
|
+
false: ""
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
compoundVariants: [
|
|
50
|
+
{
|
|
51
|
+
variant: "default",
|
|
52
|
+
hoverable: !0,
|
|
53
|
+
className: "rst:hover:bg-gray-50/50 rst:dark:hover:bg-gray-800/50"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
variant: "ghost",
|
|
57
|
+
hoverable: !0,
|
|
58
|
+
className: "rst:hover:bg-gray-50 rst:dark:hover:bg-gray-900"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
variant: "subtle",
|
|
62
|
+
hoverable: !0,
|
|
63
|
+
className: "rst:hover:bg-gray-100 rst:dark:hover:bg-gray-800"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
variant: "primary",
|
|
67
|
+
hoverable: !0,
|
|
68
|
+
className: "rst:hover:bg-primary-50/50 rst:dark:hover:bg-primary-900/20"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
defaultVariants: { variant: "default", hoverable: !1 }
|
|
72
|
+
}
|
|
73
|
+
), o = /* @__PURE__ */ r(
|
|
74
|
+
"rst:text-left rst:align-middle rst:font-semibold rst:tracking-wide rst:[&:has([role=checkbox])]:pr-0 rst:transition-colors",
|
|
75
|
+
{
|
|
76
|
+
variants: {
|
|
77
|
+
variant: {
|
|
78
|
+
default: "rst:text-gray-600 rst:dark:text-gray-400",
|
|
79
|
+
ghost: "rst:text-gray-500 rst:dark:text-gray-400",
|
|
80
|
+
subtle: "rst:text-gray-600 rst:dark:text-gray-400",
|
|
81
|
+
primary: "rst:text-primary-800 rst:dark:text-primary-300"
|
|
82
|
+
},
|
|
83
|
+
size: {
|
|
84
|
+
sm: "rst:h-10 rst:px-3",
|
|
85
|
+
md: "rst:h-12 rst:px-4",
|
|
86
|
+
lg: "rst:h-14 rst:px-6"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
defaultVariants: { variant: "default", size: "md" }
|
|
90
|
+
}
|
|
91
|
+
), g = /* @__PURE__ */ r(
|
|
92
|
+
"rst:align-middle rst:[&:has([role=checkbox])]:pr-0 rst:transition-colors",
|
|
93
|
+
{
|
|
94
|
+
variants: {
|
|
95
|
+
variant: {
|
|
96
|
+
default: "rst:text-gray-700 rst:dark:text-gray-300",
|
|
97
|
+
ghost: "rst:text-gray-700 rst:dark:text-gray-300",
|
|
98
|
+
subtle: "rst:text-gray-700 rst:dark:text-gray-300",
|
|
99
|
+
primary: "rst:text-gray-800 rst:dark:text-gray-200"
|
|
100
|
+
},
|
|
101
|
+
size: {
|
|
102
|
+
sm: "rst:p-3",
|
|
103
|
+
md: "rst:p-4",
|
|
104
|
+
lg: "rst:p-6 rst:py-5"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
defaultVariants: { variant: "default", size: "md" }
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
export {
|
|
111
|
+
g as tableCellVariants,
|
|
112
|
+
o as tableHeadVariants,
|
|
113
|
+
e as tableHeaderVariants,
|
|
114
|
+
d as tableRowVariants,
|
|
115
|
+
s as tableVariants,
|
|
116
|
+
a as tableWrapperVariants
|
|
117
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/organisms/DataTable/DataTable.cjs");exports.DataTable=e.DataTable;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),l=require("../node_modules/date-fns/isAfter.cjs"),f=require("../node_modules/date-fns/intervalToDuration.cjs"),m=u=>{const e=u.getTime(),n=i.useCallback(()=>{const t=new Date,s=new Date(e);if(l.isAfter(t,s))return{days:0,hours:0,minutes:0,seconds:0,isFinished:!0};const r=f.intervalToDuration({start:t,end:s});return{days:r.days??0,hours:r.hours??0,minutes:r.minutes??0,seconds:r.seconds??0,isFinished:!1}},[e]),[a,o]=i.useState(n),[c,d]=i.useState(e);return Object.is(c,e)||(d(e),o(n())),i.useEffect(()=>{if(Number.isNaN(e))return;const t=setInterval(()=>{const s=n();o(s),s.isFinished&&clearInterval(t)},1e3);return()=>clearInterval(t)},[e,n]),a};exports.useCountdown=m;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { useCallback as m, useState as o, useEffect as f } from "react";
|
|
2
|
+
import { isAfter as l } from "../node_modules/date-fns/isAfter.js";
|
|
3
|
+
import { intervalToDuration as h } from "../node_modules/date-fns/intervalToDuration.js";
|
|
4
|
+
const F = (a) => {
|
|
5
|
+
const e = a.getTime(), n = m(() => {
|
|
6
|
+
const t = /* @__PURE__ */ new Date(), s = new Date(e);
|
|
7
|
+
if (l(t, s))
|
|
8
|
+
return { days: 0, hours: 0, minutes: 0, seconds: 0, isFinished: !0 };
|
|
9
|
+
const r = h({
|
|
10
|
+
start: t,
|
|
11
|
+
end: s
|
|
12
|
+
});
|
|
13
|
+
return {
|
|
14
|
+
days: r.days ?? 0,
|
|
15
|
+
hours: r.hours ?? 0,
|
|
16
|
+
minutes: r.minutes ?? 0,
|
|
17
|
+
seconds: r.seconds ?? 0,
|
|
18
|
+
isFinished: !1
|
|
19
|
+
};
|
|
20
|
+
}, [e]), [u, i] = o(n), [c, d] = o(e);
|
|
21
|
+
return Object.is(c, e) || (d(e), i(n())), f(() => {
|
|
22
|
+
if (Number.isNaN(e)) return;
|
|
23
|
+
const t = setInterval(() => {
|
|
24
|
+
const s = n();
|
|
25
|
+
i(s), s.isFinished && clearInterval(t);
|
|
26
|
+
}, 1e3);
|
|
27
|
+
return () => clearInterval(t);
|
|
28
|
+
}, [e, n]), u;
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
F as useCountdown
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),y={timeout:1500,ignoreCase:!0,preventDefault:!1,enabled:!0,ignoreWhenTyping:!0},T=["ArrowUp","ArrowUp","ArrowDown","ArrowDown","ArrowLeft","ArrowRight","ArrowLeft","ArrowRight","b","a","Enter"];function D(e){if(!(e instanceof HTMLElement))return!1;if(e.isContentEditable)return!0;const t=e.getAttribute("contenteditable");return t!==null&&t!=="false"?!0:["INPUT","TEXTAREA","SELECT"].includes(e.tagName)}function b(e,t,p={}){const{timeout:u,ignoreCase:s,preventDefault:c,enabled:f,ignoreWhenTyping:a}={...y,...p},r=o.useRef(0),l=o.useRef(0),w=o.useRef(t);o.useEffect(()=>{w.current=t},[t]),o.useEffect(()=>{if(!f||e.length===0)return;const d=n=>s?n.toLowerCase():n,i=e.map(d);function g(n){if(a&&D(n.target))return;const A=Date.now();u>0&&r.current>0&&A-l.current>u&&(r.current=0),l.current=A;const E=d(n.key);if(E===i[r.current]){c&&n.preventDefault(),r.current+=1,r.current===i.length&&(r.current=0,w.current());return}r.current=E===i[0]?1:0}return window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)},[e,u,s,c,f,a])}exports.KONAMI_CODE=T;exports.useKeySequence=b;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { useRef as u, useEffect as E } from "react";
|
|
2
|
+
const m = {
|
|
3
|
+
timeout: 1500,
|
|
4
|
+
ignoreCase: !0,
|
|
5
|
+
preventDefault: !1,
|
|
6
|
+
enabled: !0,
|
|
7
|
+
ignoreWhenTyping: !0
|
|
8
|
+
}, L = [
|
|
9
|
+
"ArrowUp",
|
|
10
|
+
"ArrowUp",
|
|
11
|
+
"ArrowDown",
|
|
12
|
+
"ArrowDown",
|
|
13
|
+
"ArrowLeft",
|
|
14
|
+
"ArrowRight",
|
|
15
|
+
"ArrowLeft",
|
|
16
|
+
"ArrowRight",
|
|
17
|
+
"b",
|
|
18
|
+
"a",
|
|
19
|
+
"Enter"
|
|
20
|
+
];
|
|
21
|
+
function D(e) {
|
|
22
|
+
if (!(e instanceof HTMLElement)) return !1;
|
|
23
|
+
if (e.isContentEditable) return !0;
|
|
24
|
+
const t = e.getAttribute("contenteditable");
|
|
25
|
+
return t !== null && t !== "false" ? !0 : ["INPUT", "TEXTAREA", "SELECT"].includes(e.tagName);
|
|
26
|
+
}
|
|
27
|
+
function b(e, t, T = {}) {
|
|
28
|
+
const { timeout: o, ignoreCase: c, preventDefault: s, enabled: f, ignoreWhenTyping: a } = {
|
|
29
|
+
...m,
|
|
30
|
+
...T
|
|
31
|
+
}, r = u(0), l = u(0), w = u(t);
|
|
32
|
+
E(() => {
|
|
33
|
+
w.current = t;
|
|
34
|
+
}, [t]), E(() => {
|
|
35
|
+
if (!f || e.length === 0) return;
|
|
36
|
+
const d = (n) => c ? n.toLowerCase() : n, i = e.map(d);
|
|
37
|
+
function A(n) {
|
|
38
|
+
if (a && D(n.target)) return;
|
|
39
|
+
const g = Date.now();
|
|
40
|
+
o > 0 && r.current > 0 && g - l.current > o && (r.current = 0), l.current = g;
|
|
41
|
+
const p = d(n.key);
|
|
42
|
+
if (p === i[r.current]) {
|
|
43
|
+
s && n.preventDefault(), r.current += 1, r.current === i.length && (r.current = 0, w.current());
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
r.current = p === i[0] ? 1 : 0;
|
|
47
|
+
}
|
|
48
|
+
return window.addEventListener("keydown", A), () => window.removeEventListener("keydown", A);
|
|
49
|
+
}, [e, o, c, s, f, a]);
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
L as KONAMI_CODE,
|
|
53
|
+
b as useKeySequence
|
|
54
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime");require("react");const o=require("../node_modules/@fortawesome/react-fontawesome/dist/index.cjs"),c=require("../node_modules/@fortawesome/free-solid-svg-icons/index.cjs"),s=require("../lib/utils.cjs"),l=require("../components/atoms/Select/select-variants.cjs");function u({as:r,value:n,disabled:a,size:e,children:i}){return t.jsxs(r,{value:n,disabled:a,className:s.cn(l.selectOptionVariants({size:e})),children:[t.jsx("span",{className:"rst:block rst:truncate rst:font-normal rst:group-data-selected:font-semibold",children:i}),t.jsx("span",{className:s.cn("rst:absolute rst:inset-y-0 rst:right-0 rst:hidden rst:items-center rst:text-primary-600 rst:dark:text-primary-400 rst:group-data-selected:flex",e==="sm"?"rst:pr-3":"rst:pr-4"),children:t.jsx(o.FontAwesomeIcon,{icon:c.faCheck,className:"rst:h-3.5 rst:w-3.5"})})]})}exports.PopupOption=u;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { FontAwesomeIcon as i } from "../node_modules/@fortawesome/react-fontawesome/dist/index.js";
|
|
4
|
+
import { faCheck as p } from "../node_modules/@fortawesome/free-solid-svg-icons/index.js";
|
|
5
|
+
import { cn as s } from "../lib/utils.js";
|
|
6
|
+
import { selectOptionVariants as c } from "../components/atoms/Select/select-variants.js";
|
|
7
|
+
function N({
|
|
8
|
+
as: e,
|
|
9
|
+
value: o,
|
|
10
|
+
disabled: a,
|
|
11
|
+
size: r,
|
|
12
|
+
children: m
|
|
13
|
+
}) {
|
|
14
|
+
return /* @__PURE__ */ n(
|
|
15
|
+
e,
|
|
16
|
+
{
|
|
17
|
+
value: o,
|
|
18
|
+
disabled: a,
|
|
19
|
+
className: s(c({ size: r })),
|
|
20
|
+
children: [
|
|
21
|
+
/* @__PURE__ */ t("span", { className: "rst:block rst:truncate rst:font-normal rst:group-data-selected:font-semibold", children: m }),
|
|
22
|
+
/* @__PURE__ */ t(
|
|
23
|
+
"span",
|
|
24
|
+
{
|
|
25
|
+
className: s(
|
|
26
|
+
"rst:absolute rst:inset-y-0 rst:right-0 rst:hidden rst:items-center rst:text-primary-600 rst:dark:text-primary-400 rst:group-data-selected:flex",
|
|
27
|
+
r === "sm" ? "rst:pr-3" : "rst:pr-4"
|
|
28
|
+
),
|
|
29
|
+
children: /* @__PURE__ */ t(i, { icon: p, className: "rst:h-3.5 rst:w-3.5" })
|
|
30
|
+
}
|
|
31
|
+
)
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
N as PopupOption
|
|
38
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react");function a(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const o=a(s);function c(){const t=o.useRef(null),[e,r]=o.useState(!1);return o.useLayoutEffect(()=>{r(!!t.current?.closest(".dark"))},[]),{ref:t,inDarkScope:e}}const u=["rst:font-ui","rst:z-50 rst:rounded-md rst:py-1 rst:elevation-anchored rst:ring-1 rst:focus:outline-hidden","rst:bg-[var(--roster-popover-bg)] rst:text-[var(--roster-popover-text)] rst:ring-[var(--roster-popover-border)]","rst:[--anchor-gap:4px]"].join(" ");function P(t,e){return t||e==="slate"}const p="rst:w-(--button-width)",i="rst:w-(--input-width)",O="bottom start";exports.POPUP_ANCHOR=O;exports.POPUP_PANEL=u;exports.POPUP_WIDTH_OF_BUTTON=p;exports.POPUP_WIDTH_OF_INPUT=i;exports.popupInDarkPalette=P;exports.useDarkScope=c;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
function s() {
|
|
3
|
+
const t = o.useRef(null), [r, e] = o.useState(!1);
|
|
4
|
+
return o.useLayoutEffect(() => {
|
|
5
|
+
e(!!t.current?.closest(".dark"));
|
|
6
|
+
}, []), { ref: t, inDarkScope: r };
|
|
7
|
+
}
|
|
8
|
+
const n = [
|
|
9
|
+
/* `font-ui` on the panel, not on each row. Put on the rows it is missed by
|
|
10
|
+
anything else in the panel — the empty message rendered in the host's
|
|
11
|
+
prose face while the options beside it did not. */
|
|
12
|
+
"rst:font-ui",
|
|
13
|
+
"rst:z-50 rst:rounded-md rst:py-1 rst:elevation-anchored rst:ring-1 rst:focus:outline-hidden",
|
|
14
|
+
"rst:bg-[var(--roster-popover-bg)] rst:text-[var(--roster-popover-text)] rst:ring-[var(--roster-popover-border)]",
|
|
15
|
+
"rst:[--anchor-gap:4px]"
|
|
16
|
+
].join(" ");
|
|
17
|
+
function a(t, r) {
|
|
18
|
+
return t || r === "slate";
|
|
19
|
+
}
|
|
20
|
+
const c = "rst:w-(--button-width)", p = "rst:w-(--input-width)", u = "bottom start";
|
|
21
|
+
export {
|
|
22
|
+
u as POPUP_ANCHOR,
|
|
23
|
+
n as POPUP_PANEL,
|
|
24
|
+
c as POPUP_WIDTH_OF_BUTTON,
|
|
25
|
+
p as POPUP_WIDTH_OF_INPUT,
|
|
26
|
+
a as popupInDarkPalette,
|
|
27
|
+
s as useDarkScope
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../node_modules/clsx/dist/clsx.cjs"),r=require("../node_modules/tailwind-merge/dist/bundle-mjs.cjs"),t=r.extendTailwindMerge({prefix:"rst",extend:{classGroups:{shadow:["elevation-raised","elevation-anchored","elevation-overlay"]}}});function o(...e){return t(n.clsx(e))}exports.cn=o;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { clsx as r } from "../node_modules/clsx/dist/clsx.js";
|
|
2
|
+
import { extendTailwindMerge as o } from "../node_modules/tailwind-merge/dist/bundle-mjs.js";
|
|
3
|
+
const n = /* @__PURE__ */ o({
|
|
4
|
+
prefix: "rst",
|
|
5
|
+
extend: {
|
|
6
|
+
classGroups: {
|
|
7
|
+
/* The elevation levels are custom utilities, so tailwind-merge does not
|
|
8
|
+
know they set `box-shadow` and conflict with `shadow-*` and with each
|
|
9
|
+
other. Without this, `cn(cardVariants(), "rst:elevation-overlay")`
|
|
10
|
+
kept BOTH and the winner fell to stylesheet order — which emits
|
|
11
|
+
anchored, overlay, raised, so the family resolved in the inverse of
|
|
12
|
+
its own depth order and a consumer's override was a no-op. Exactly the
|
|
13
|
+
degradation the comment above describes, on the newest utility. */
|
|
14
|
+
shadow: [
|
|
15
|
+
"elevation-raised",
|
|
16
|
+
"elevation-anchored",
|
|
17
|
+
"elevation-overlay"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
function a(...e) {
|
|
23
|
+
return n(r(e));
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
a as cn
|
|
27
|
+
};
|
package/dist/meta.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../utils/dist/floating-ui.utils.cjs");function V(n,t,g){let{reference:l,floating:m}=n;const i=e.getSideAxis(t),o=e.getAlignmentAxis(t),c=e.getAxisLength(o),u=e.getSide(t),v=i==="y",f=l.x+l.width/2-m.width/2,a=l.y+l.height/2-m.height/2,d=l[c]/2-m[c]/2;let s;switch(u){case"top":s={x:f,y:l.y-m.height};break;case"bottom":s={x:f,y:l.y+l.height};break;case"right":s={x:l.x+l.width,y:a};break;case"left":s={x:l.x-m.width,y:a};break;default:s={x:l.x,y:l.y}}switch(e.getAlignment(t)){case"start":s[o]-=d*(g&&v?-1:1);break;case"end":s[o]+=d*(g&&v?-1:1);break}return s}async function W(n,t){var g;t===void 0&&(t={});const{x:l,y:m,platform:i,rects:o,elements:c,strategy:u}=n,{boundary:v="clippingAncestors",rootBoundary:f="viewport",elementContext:a="floating",altBoundary:d=!1,padding:s=0}=e.evaluate(t,n),r=e.getPaddingObject(s),x=c[d?a==="floating"?"reference":"floating":a],A=e.rectToClientRect(await i.getClippingRect({element:(g=await(i.isElement==null?void 0:i.isElement(x)))==null||g?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:v,rootBoundary:f,strategy:u})),y=a==="floating"?{x:l,y:m,width:o.floating.width,height:o.floating.height}:o.reference,h=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),p=await(i.isElement==null?void 0:i.isElement(h))?await(i.getScale==null?void 0:i.getScale(h))||{x:1,y:1}:{x:1,y:1},b=e.rectToClientRect(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:h,strategy:u}):y);return{top:(A.top-b.top+r.top)/p.y,bottom:(b.bottom-A.bottom+r.bottom)/p.y,left:(A.left-b.left+r.left)/p.x,right:(b.right-A.right+r.right)/p.x}}const X=async(n,t,g)=>{const{placement:l="bottom",strategy:m="absolute",middleware:i=[],platform:o}=g,c=i.filter(Boolean),u=await(o.isRTL==null?void 0:o.isRTL(t));let v=await o.getElementRects({reference:n,floating:t,strategy:m}),{x:f,y:a}=V(v,l,u),d=l,s={},r=0;for(let x=0;x<c.length;x++){var w;const{name:A,fn:y}=c[x],{x:h,y:p,data:b,reset:O}=await y({x:f,y:a,initialPlacement:l,placement:d,strategy:m,middlewareData:s,rects:v,platform:{...o,detectOverflow:(w=o.detectOverflow)!=null?w:W},elements:{reference:n,floating:t}});f=h??f,a=p??a,s={...s,[A]:{...s[A],...b}},O&&r<=50&&(r++,typeof O=="object"&&(O.placement&&(d=O.placement),O.rects&&(v=O.rects===!0?await o.getElementRects({reference:n,floating:t,strategy:m}):O.rects),{x:f,y:a}=V(v,d,u)),x=-1)}return{x:f,y:a,placement:d,strategy:m,middlewareData:s}},_=n=>({name:"arrow",options:n,async fn(t){const{x:g,y:l,placement:m,rects:i,platform:o,elements:c,middlewareData:u}=t,{element:v,padding:f=0}=e.evaluate(n,t)||{};if(v==null)return{};const a=e.getPaddingObject(f),d={x:g,y:l},s=e.getAlignmentAxis(m),r=e.getAxisLength(s),w=await o.getDimensions(v),x=s==="y",A=x?"top":"left",y=x?"bottom":"right",h=x?"clientHeight":"clientWidth",p=i.reference[r]+i.reference[s]-d[s]-i.floating[r],b=d[s]-i.reference[s],O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(v));let C=O?O[h]:0;(!C||!await(o.isElement==null?void 0:o.isElement(O)))&&(C=c.floating[h]||i.floating[r]);const M=p/2-b/2,D=C/2-w[r]/2-1,P=e.min(a[A],D),L=e.min(a[y],D),T=P,H=C-w[r]-L,S=C/2-w[r]/2+M,F=e.clamp(T,S,H),E=!u.arrow&&e.getAlignment(m)!=null&&S!==F&&i.reference[r]/2-(S<T?P:L)-w[r]/2<0,R=E?S<T?S-T:S-H:0;return{[s]:d[s]+R,data:{[s]:F,centerOffset:S-F-R,...E&&{alignmentOffset:R}},reset:E}}}),q=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(t){var g,l;const{placement:m,middlewareData:i,rects:o,initialPlacement:c,platform:u,elements:v}=t,{mainAxis:f=!0,crossAxis:a=!0,fallbackPlacements:d,fallbackStrategy:s="bestFit",fallbackAxisSideDirection:r="none",flipAlignment:w=!0,...x}=e.evaluate(n,t);if((g=i.arrow)!=null&&g.alignmentOffset)return{};const A=e.getSide(m),y=e.getSideAxis(c),h=e.getSide(c)===c,p=await(u.isRTL==null?void 0:u.isRTL(v.floating)),b=d||(h||!w?[e.getOppositePlacement(c)]:e.getExpandedPlacements(c)),O=r!=="none";!d&&O&&b.push(...e.getOppositeAxisPlacements(c,w,r,p));const C=[c,...b],M=await u.detectOverflow(t,x),D=[];let P=((l=i.flip)==null?void 0:l.overflows)||[];if(f&&D.push(M[A]),a){const S=e.getAlignmentSides(m,o,p);D.push(M[S[0]],M[S[1]])}if(P=[...P,{placement:m,overflows:D}],!D.every(S=>S<=0)){var L,T;const S=(((L=i.flip)==null?void 0:L.index)||0)+1,F=C[S];if(F&&(!(a==="alignment"?y!==e.getSideAxis(F):!1)||P.every(k=>e.getSideAxis(k.placement)===y?k.overflows[0]>0:!0)))return{data:{index:S,overflows:P},reset:{placement:F}};let E=(T=P.filter(R=>R.overflows[0]<=0).sort((R,k)=>R.overflows[1]-k.overflows[1])[0])==null?void 0:T.placement;if(!E)switch(s){case"bestFit":{var H;const R=(H=P.filter(k=>{if(O){const j=e.getSideAxis(k.placement);return j===y||j==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(j=>j>0).reduce((j,$)=>j+$,0)]).sort((k,j)=>k[1]-j[1])[0])==null?void 0:H[0];R&&(E=R);break}case"initialPlacement":E=c;break}if(m!==E)return{reset:{placement:E}}}return{}}}};function B(n,t){return{top:n.top-t.height,right:n.right-t.width,bottom:n.bottom-t.height,left:n.left-t.width}}function z(n){return e.sides.some(t=>n[t]>=0)}const I=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(t){const{rects:g,platform:l}=t,{strategy:m="referenceHidden",...i}=e.evaluate(n,t);switch(m){case"referenceHidden":{const o=await l.detectOverflow(t,{...i,elementContext:"reference"}),c=B(o,g.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:z(c)}}}case"escaped":{const o=await l.detectOverflow(t,{...i,altBoundary:!0}),c=B(o,g.floating);return{data:{escapedOffsets:c,escaped:z(c)}}}default:return{}}}}},Y=new Set(["left","top"]);async function U(n,t){const{placement:g,platform:l,elements:m}=n,i=await(l.isRTL==null?void 0:l.isRTL(m.floating)),o=e.getSide(g),c=e.getAlignment(g),u=e.getSideAxis(g)==="y",v=Y.has(o)?-1:1,f=i&&u?-1:1,a=e.evaluate(t,n);let{mainAxis:d,crossAxis:s,alignmentAxis:r}=typeof a=="number"?{mainAxis:a,crossAxis:0,alignmentAxis:null}:{mainAxis:a.mainAxis||0,crossAxis:a.crossAxis||0,alignmentAxis:a.alignmentAxis};return c&&typeof r=="number"&&(s=c==="end"?r*-1:r),u?{x:s*f,y:d*v}:{x:d*v,y:s*f}}const G=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(t){var g,l;const{x:m,y:i,placement:o,middlewareData:c}=t,u=await U(t,n);return o===((g=c.offset)==null?void 0:g.placement)&&(l=c.arrow)!=null&&l.alignmentOffset?{}:{x:m+u.x,y:i+u.y,data:{...u,placement:o}}}}},J=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(t){const{x:g,y:l,placement:m,platform:i}=t,{mainAxis:o=!0,crossAxis:c=!1,limiter:u={fn:A=>{let{x:y,y:h}=A;return{x:y,y:h}}},...v}=e.evaluate(n,t),f={x:g,y:l},a=await i.detectOverflow(t,v),d=e.getSideAxis(e.getSide(m)),s=e.getOppositeAxis(d);let r=f[s],w=f[d];if(o){const A=s==="y"?"top":"left",y=s==="y"?"bottom":"right",h=r+a[A],p=r-a[y];r=e.clamp(h,r,p)}if(c){const A=d==="y"?"top":"left",y=d==="y"?"bottom":"right",h=w+a[A],p=w-a[y];w=e.clamp(h,w,p)}const x=u.fn({...t,[s]:r,[d]:w});return{...x,data:{x:x.x-g,y:x.y-l,enabled:{[s]:o,[d]:c}}}}}},K=function(n){return n===void 0&&(n={}),{options:n,fn(t){const{x:g,y:l,placement:m,rects:i,middlewareData:o}=t,{offset:c=0,mainAxis:u=!0,crossAxis:v=!0}=e.evaluate(n,t),f={x:g,y:l},a=e.getSideAxis(m),d=e.getOppositeAxis(a);let s=f[d],r=f[a];const w=e.evaluate(c,t),x=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(u){const h=d==="y"?"height":"width",p=i.reference[d]-i.floating[h]+x.mainAxis,b=i.reference[d]+i.reference[h]-x.mainAxis;s<p?s=p:s>b&&(s=b)}if(v){var A,y;const h=d==="y"?"width":"height",p=Y.has(e.getSide(m)),b=i.reference[a]-i.floating[h]+(p&&((A=o.offset)==null?void 0:A[a])||0)+(p?0:x.crossAxis),O=i.reference[a]+i.reference[h]+(p?0:((y=o.offset)==null?void 0:y[a])||0)-(p?x.crossAxis:0);r<b?r=b:r>O&&(r=O)}return{[d]:s,[a]:r}}}},N=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(t){var g,l;const{placement:m,rects:i,platform:o,elements:c}=t,{apply:u=()=>{},...v}=e.evaluate(n,t),f=await o.detectOverflow(t,v),a=e.getSide(m),d=e.getAlignment(m),s=e.getSideAxis(m)==="y",{width:r,height:w}=i.floating;let x,A;a==="top"||a==="bottom"?(x=a,A=d===(await(o.isRTL==null?void 0:o.isRTL(c.floating))?"start":"end")?"left":"right"):(A=a,x=d==="end"?"top":"bottom");const y=w-f.top-f.bottom,h=r-f.left-f.right,p=e.min(w-f[x],y),b=e.min(r-f[A],h),O=!t.middlewareData.shift;let C=p,M=b;if((g=t.middlewareData.shift)!=null&&g.enabled.x&&(M=h),(l=t.middlewareData.shift)!=null&&l.enabled.y&&(C=y),O&&!d){const P=e.max(f.left,0),L=e.max(f.right,0),T=e.max(f.top,0),H=e.max(f.bottom,0);s?M=r-2*(P!==0||L!==0?P+L:e.max(f.left,f.right)):C=w-2*(T!==0||H!==0?T+H:e.max(f.top,f.bottom))}await u({...t,availableWidth:M,availableHeight:C});const D=await o.getDimensions(c.floating);return r!==D.width||w!==D.height?{reset:{rects:!0}}:{}}}};exports.rectToClientRect=e.rectToClientRect;exports.arrow=_;exports.computePosition=X;exports.detectOverflow=W;exports.flip=q;exports.hide=I;exports.limitShift=K;exports.offset=G;exports.shift=J;exports.size=N;
|