@blakesteve/roster 4.12.0 → 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 +11 -8
- package/dist/Table-D-C0ivz2.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,19 @@
|
|
|
1
|
+
import { cva as t } from "../../../node_modules/class-variance-authority/dist/index.js";
|
|
2
|
+
const a = /* @__PURE__ */ t(
|
|
3
|
+
"rst:font-ui rst:flex rst:items-center rst:text-sm rst:font-medium rst:transition-colors",
|
|
4
|
+
{
|
|
5
|
+
variants: {
|
|
6
|
+
variant: {
|
|
7
|
+
default: "rst:text-gray-500 rst:hover:text-gray-900 rst:dark:text-gray-400 rst:dark:hover:text-gray-100",
|
|
8
|
+
primary: "rst:text-primary-600 rst:hover:text-primary-800 rst:dark:text-primary-400 rst:dark:hover:text-primary-300",
|
|
9
|
+
inverse: "rst:text-gray-300 rst:hover:text-white rst:dark:text-gray-400 rst:dark:hover:text-white"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
defaultVariants: {
|
|
13
|
+
variant: "default"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
export {
|
|
18
|
+
a as breadcrumbVariants
|
|
19
|
+
};
|
|
@@ -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"),m=require("../../../node_modules/@fortawesome/free-solid-svg-icons/index.cjs"),x=require("../../../lib/utils.cjs"),d=require("./call-to-action-variants.cjs"),u=require("../../atoms/Button/Button.cjs"),h=({title:a,description:r,action:s,icon:e,variant:i,onDismiss:l,className:c,...n})=>t.jsx("div",{className:x.cn(d.ctaVariants({variant:i}),c),...n,children:t.jsxs("div",{className:"rst:flex rst:flex-col rst:gap-4 rst:@[32rem]:flex-row rst:@[32rem]:items-center rst:@[32rem]:justify-between",children:[t.jsxs("div",{className:"rst:flex rst:flex-col rst:items-center rst:gap-4 rst:@[32rem]:flex-row rst:@[32rem]:items-start",children:[e&&t.jsx("div",{className:"rst:shrink-0 rst:text-current rst:@[32rem]:mt-1",children:e}),t.jsxs("div",{className:"rst:flex rst:min-w-0 rst:flex-col rst:gap-1.5 rst:w-full",children:[t.jsx("h3",{className:"rst:text-lg rst:font-bold rst:leading-tight rst:tracking-tight rst:text-current",children:a}),r&&t.jsx("div",{className:"rst:max-w-prose rst:text-sm rst:leading-relaxed rst:text-current rst:opacity-90 rst:dark:opacity-80",children:r})]})]}),s&&t.jsx("div",{className:"rst:flex rst:w-full rst:shrink-0 rst:pt-2 rst:[&>*]:w-full rst:@[32rem]:w-auto rst:@[32rem]:pt-0 rst:@[32rem]:[&>*]:w-auto",children:s}),l&&t.jsx("div",{className:"rst:absolute rst:right-2 rst:top-2",children:t.jsx(u.Button,{variant:"ghost",size:"sm",className:"rst:h-8 rst:w-8 rst:rounded-full rst:p-0 rst:opacity-60 rst:hover:opacity-100 rst:dark:hover:bg-black/20",onClick:l,"aria-label":"Dismiss",children:t.jsx(o.FontAwesomeIcon,{icon:m.faXmark,className:"rst:h-4 rst:w-4"})})})]})});exports.CallToAction=h;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as r, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { FontAwesomeIcon as n } from "../../../node_modules/@fortawesome/react-fontawesome/dist/index.js";
|
|
4
|
+
import { faXmark as d } from "../../../node_modules/@fortawesome/free-solid-svg-icons/index.js";
|
|
5
|
+
import { cn as f } from "../../../lib/utils.js";
|
|
6
|
+
import { ctaVariants as h } from "./call-to-action-variants.js";
|
|
7
|
+
import { Button as p } from "../../atoms/Button/Button.js";
|
|
8
|
+
const b = ({
|
|
9
|
+
title: i,
|
|
10
|
+
description: s,
|
|
11
|
+
action: e,
|
|
12
|
+
icon: l,
|
|
13
|
+
variant: m,
|
|
14
|
+
onDismiss: a,
|
|
15
|
+
className: c,
|
|
16
|
+
...o
|
|
17
|
+
}) => /* @__PURE__ */ r("div", { className: f(h({ variant: m }), c), ...o, children: /* @__PURE__ */ t("div", { className: "rst:flex rst:flex-col rst:gap-4 rst:@[32rem]:flex-row rst:@[32rem]:items-center rst:@[32rem]:justify-between", children: [
|
|
18
|
+
/* @__PURE__ */ t("div", { className: "rst:flex rst:flex-col rst:items-center rst:gap-4 rst:@[32rem]:flex-row rst:@[32rem]:items-start", children: [
|
|
19
|
+
l && /* @__PURE__ */ r("div", { className: "rst:shrink-0 rst:text-current rst:@[32rem]:mt-1", children: l }),
|
|
20
|
+
/* @__PURE__ */ t("div", { className: "rst:flex rst:min-w-0 rst:flex-col rst:gap-1.5 rst:w-full", children: [
|
|
21
|
+
/* @__PURE__ */ r("h3", { className: "rst:text-lg rst:font-bold rst:leading-tight rst:tracking-tight rst:text-current", children: i }),
|
|
22
|
+
s && /* @__PURE__ */ r("div", { className: "rst:max-w-prose rst:text-sm rst:leading-relaxed rst:text-current rst:opacity-90 rst:dark:opacity-80", children: s })
|
|
23
|
+
] })
|
|
24
|
+
] }),
|
|
25
|
+
e && /* @__PURE__ */ r("div", { className: "rst:flex rst:w-full rst:shrink-0 rst:pt-2 rst:[&>*]:w-full rst:@[32rem]:w-auto rst:@[32rem]:pt-0 rst:@[32rem]:[&>*]:w-auto", children: e }),
|
|
26
|
+
a && /* @__PURE__ */ r("div", { className: "rst:absolute rst:right-2 rst:top-2", children: /* @__PURE__ */ r(
|
|
27
|
+
p,
|
|
28
|
+
{
|
|
29
|
+
variant: "ghost",
|
|
30
|
+
size: "sm",
|
|
31
|
+
className: "rst:h-8 rst:w-8 rst:rounded-full rst:p-0 rst:opacity-60 rst:hover:opacity-100 rst:dark:hover:bg-black/20",
|
|
32
|
+
onClick: a,
|
|
33
|
+
"aria-label": "Dismiss",
|
|
34
|
+
children: /* @__PURE__ */ r(n, { icon: d, className: "rst:h-4 rst:w-4" })
|
|
35
|
+
}
|
|
36
|
+
) })
|
|
37
|
+
] }) });
|
|
38
|
+
export {
|
|
39
|
+
b as CallToAction
|
|
40
|
+
};
|
|
@@ -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:@container rst:font-ui rst:relative rst:overflow-hidden rst:rounded-lg rst:border rst:p-6 rst:elevation-raised rst:transition-all",{variants:{variant:{primary:"rst:border-primary-600 rst:bg-primary-100 rst:text-primary-900 rst:dark:border-primary-800 rst:dark:bg-primary-900/30 rst:dark:text-primary-200",neutral:"rst:border-gray-600 rst:bg-white rst:text-gray-900 rst:dark:border-gray-700 rst:dark:bg-gray-800 rst:dark:text-gray-100",warning:"rst:border-amber-600 rst:bg-amber-100 rst:text-amber-900 rst:dark:border-amber-800 rst:dark:bg-amber-900/30 rst:dark:text-amber-200",error:"rst:border-error-600 rst:bg-error-100 rst:text-error-900 rst:dark:border-error-800 rst:dark:bg-error-900/30 rst:dark:text-error-200",success:"rst:border-success-600 rst:bg-success-100 rst:text-success-900 rst:dark:border-success-800 rst:dark:bg-success-900/30 rst:dark:text-success-200",info:"rst:border-info-600 rst:bg-info-100 rst:text-info-900 rst:dark:border-info-800 rst:dark:bg-info-900/30 rst:dark:text-info-200"}},defaultVariants:{variant:"primary"}});exports.ctaVariants=t;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { cva as r } from "../../../node_modules/class-variance-authority/dist/index.js";
|
|
2
|
+
const s = /* @__PURE__ */ r(
|
|
3
|
+
/* `@container` on the card itself, with the flex layout moved to an inner
|
|
4
|
+
element. The row/column switch is a CONTAINER query, not `md:`: `md:`
|
|
5
|
+
asks how wide the WINDOW is, so a 228px card on a 1200px page laid itself
|
|
6
|
+
out as a row, put the action beside the content, and squeezed the text
|
|
7
|
+
column until it overflowed the `overflow-hidden` here.
|
|
8
|
+
|
|
9
|
+
An element cannot query itself, which is why the layout is one level in
|
|
10
|
+
rather than on this element. An earlier pass wrapped the card in a
|
|
11
|
+
container instead — that worked, and made the card a grandchild, so a
|
|
12
|
+
consumer's `className` with `col-span-2` or `flex-1` landed on something
|
|
13
|
+
that was no longer the grid or flex item. */
|
|
14
|
+
"rst:@container rst:font-ui rst:relative rst:overflow-hidden rst:rounded-lg rst:border rst:p-6 rst:elevation-raised rst:transition-all",
|
|
15
|
+
{
|
|
16
|
+
variants: {
|
|
17
|
+
/* Light-mode fills moved -50 -> -100 and borders -200 -> -600.
|
|
18
|
+
Reported as "light mode is too white", and measured: the old surface
|
|
19
|
+
was primary-50 on a gray-50 page at 1.03:1, with a 1.30:1 border. A
|
|
20
|
+
call to action that cannot be seen as a distinct block is not one.
|
|
21
|
+
|
|
22
|
+
The fill is the smaller half. Nothing in the -50 to -100 range
|
|
23
|
+
separates from a near-white page by ratio — -100 only reaches 1.12:1 —
|
|
24
|
+
so it buys colour, and the BORDER is what makes the surface exist.
|
|
25
|
+
|
|
26
|
+
Why -600 rather than the -200/-300 the rest of the library uses on
|
|
27
|
+
filled surfaces: NOT 1.4.11, which does not reach a tinted banner any
|
|
28
|
+
more than it reaches `Pill`. This is a prominence decision. A call to
|
|
29
|
+
action is the one component whose job is to be looked at first, so it
|
|
30
|
+
is deliberately the most defined bordered block on the page, and being
|
|
31
|
+
louder than `Card` or `ErrorState` is the intent rather than a
|
|
32
|
+
drift. -500 was the alternative and was rejected for being uneven
|
|
33
|
+
across schemes: amber lands at 2.06 there while primary is at 6.10.
|
|
34
|
+
|
|
35
|
+
Measured against the gray-50 page, every figure read from
|
|
36
|
+
`src/tokens.css` rather than assumed — an earlier pass quoted
|
|
37
|
+
Tailwind's ramp for `error` and `success` and was wrong by a third:
|
|
38
|
+
|
|
39
|
+
border -600 primary 8.34 error 7.96 gray 7.30
|
|
40
|
+
success 4.80 info 3.92 amber 3.05
|
|
41
|
+
text -900 on its own -100 fill
|
|
42
|
+
gray 16.03 primary 14.02 error 13.22
|
|
43
|
+
success 8.30 info 8.24 amber 8.15
|
|
44
|
+
|
|
45
|
+
`neutral` keeps `bg-white`. Deepening it to gray-100 measured 1.04:1
|
|
46
|
+
against the page — exactly what white already measured — so it changed
|
|
47
|
+
the "raised white card" reading for no contrast at all.
|
|
48
|
+
|
|
49
|
+
`info` takes `info-*`, not Tailwind's stock `blue-*` it used before.
|
|
50
|
+
Roster ships `--roster-info-600`, and the old classes resolved to a
|
|
51
|
+
palette a consumer cannot retheme through `--roster-*`, which is the
|
|
52
|
+
one thing every other variant here allows.
|
|
53
|
+
|
|
54
|
+
Dark mode is untouched. The complaint was specific to light, and the
|
|
55
|
+
dark surfaces already separate from a dark page. */
|
|
56
|
+
variant: {
|
|
57
|
+
primary: "rst:border-primary-600 rst:bg-primary-100 rst:text-primary-900 rst:dark:border-primary-800 rst:dark:bg-primary-900/30 rst:dark:text-primary-200",
|
|
58
|
+
neutral: "rst:border-gray-600 rst:bg-white rst:text-gray-900 rst:dark:border-gray-700 rst:dark:bg-gray-800 rst:dark:text-gray-100",
|
|
59
|
+
warning: "rst:border-amber-600 rst:bg-amber-100 rst:text-amber-900 rst:dark:border-amber-800 rst:dark:bg-amber-900/30 rst:dark:text-amber-200",
|
|
60
|
+
error: "rst:border-error-600 rst:bg-error-100 rst:text-error-900 rst:dark:border-error-800 rst:dark:bg-error-900/30 rst:dark:text-error-200",
|
|
61
|
+
success: "rst:border-success-600 rst:bg-success-100 rst:text-success-900 rst:dark:border-success-800 rst:dark:bg-success-900/30 rst:dark:text-success-200",
|
|
62
|
+
info: "rst:border-info-600 rst:bg-info-100 rst:text-info-900 rst:dark:border-info-800 rst:dark:bg-info-900/30 rst:dark:text-info-200"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
defaultVariants: {
|
|
66
|
+
variant: "primary"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
export {
|
|
71
|
+
s as ctaVariants
|
|
72
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),A=require("react"),B=require("../../../node_modules/@headlessui/react/dist/components/description/description.cjs"),D=require("../../../node_modules/@headlessui/react/dist/components/field/field.cjs"),y=require("../../../node_modules/@headlessui/react/dist/components/fieldset/fieldset.cjs"),F=require("../../../node_modules/@headlessui/react/dist/components/label/label.cjs"),g=require("../../../node_modules/@headlessui/react/dist/components/legend/legend.cjs"),e=require("../../../lib/utils.cjs"),P=require("../../atoms/Checkbox/Checkbox.cjs"),R=require("../../atoms/Eyebrow/Eyebrow.cjs"),h=require("./checkbox-group-variants.cjs"),V=t=>t.length>0&&Array.isArray(t[0].options),Z={sm:"rst:text-xs",md:"rst:text-sm",lg:"rst:text-base"},_=({options:t,value:a,onChange:p,label:b,helperText:o,errorMessage:i,maxHeight:u,disabled:n=!1,variant:v,size:c="md",columns:j,colorScheme:k,className:N,optionsClassName:q,panelClassName:w,"aria-describedby":G,"aria-invalid":C,...E})=>{const l=!!i,d=u!==void 0,m=A.useId(),L=[G,o||i?m:void 0].filter(Boolean).join(" ")||void 0,I=(r,x)=>{p(x?[...a,r]:a.filter(S=>S!==r))},O=r=>s.jsxs(D.Field,{disabled:n||r.disabled,className:"rst:flex rst:items-start rst:gap-2",children:[s.jsx(P.Checkbox,{size:c??"md",colorScheme:k,checked:a.includes(r.value),onChange:x=>I(r.value,x),className:"rst:mt-0.5 rst:shrink-0"}),s.jsxs("div",{className:"rst:flex rst:min-w-0 rst:flex-col",children:[s.jsx(F.Label,{className:e.cn("rst:cursor-pointer rst:select-none rst:px-1 rst:py-0.5","rst:text-[var(--roster-control-text)]","rst:data-disabled:cursor-not-allowed rst:data-disabled:opacity-50",Z[c??"md"]),children:r.label}),r.description&&s.jsx(B.Description,{className:"rst:px-1 rst:text-xs rst:text-gray-500 rst:dark:text-gray-400 rst:data-disabled:opacity-50",children:r.description})]})]},r.value),f=r=>s.jsx("div",{className:e.cn(h.checkboxGroupOptionsVariants({columns:j,size:c})),children:r.map(O)});return s.jsxs(y.Fieldset,{disabled:n,className:e.cn("rst:font-ui rst:flex rst:flex-col rst:gap-1.5 rst:min-w-0",N),...E,"aria-invalid":l||C||void 0,"aria-describedby":L,children:[b&&s.jsx(g.Legend,{className:"rst:block rst:text-sm rst:font-medium rst:text-[var(--roster-control-text)] rst:text-left rst:data-disabled:opacity-50",children:b}),s.jsx("div",{className:e.cn(h.checkboxGroupPanelVariants({variant:v,size:c,error:l}),d&&"rst:overflow-y-auto rst:custom-scrollbar rst:focus-visible:outline-hidden rst:focus-visible:ring-2 rst:focus-visible:ring-ring rst:focus-visible:ring-offset-2 rst:ring-offset-background",w,q),style:d?{maxHeight:u}:void 0,tabIndex:d?0:void 0,children:V(t)?t.map(r=>s.jsxs(y.Fieldset,{className:"rst:flex rst:flex-col rst:gap-2",children:[s.jsx(g.Legend,{as:R.Eyebrow,weight:"semibold",tone:"default",className:"rst:border-b rst:border-gray-200 rst:pb-1 rst:dark:border-gray-800",children:r.category}),f(r.options)]},r.category)):f(t)}),(o||i)&&s.jsx("p",{id:m,className:e.cn("rst:text-xs rst:text-left",l?"rst:text-error-600 rst:dark:text-error-400 rst:font-medium":"rst:text-gray-500 rst:dark:text-gray-400",n&&"rst:opacity-50"),children:i||o})]})};exports.CheckboxGroup=_;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import O from "react";
|
|
3
|
+
import { Description as _ } from "../../../node_modules/@headlessui/react/dist/components/description/description.js";
|
|
4
|
+
import { Field as F } from "../../../node_modules/@headlessui/react/dist/components/field/field.js";
|
|
5
|
+
import { Fieldset as u } from "../../../node_modules/@headlessui/react/dist/components/fieldset/fieldset.js";
|
|
6
|
+
import { Label as S } from "../../../node_modules/@headlessui/react/dist/components/label/label.js";
|
|
7
|
+
import { Legend as h } from "../../../node_modules/@headlessui/react/dist/components/legend/legend.js";
|
|
8
|
+
import { cn as e } from "../../../lib/utils.js";
|
|
9
|
+
import { Checkbox as Z } from "../../atoms/Checkbox/Checkbox.js";
|
|
10
|
+
import { Eyebrow as P } from "../../atoms/Eyebrow/Eyebrow.js";
|
|
11
|
+
import { checkboxGroupPanelVariants as R, checkboxGroupOptionsVariants as V } from "./checkbox-group-variants.js";
|
|
12
|
+
const W = (s) => s.length > 0 && Array.isArray(s[0].options), q = {
|
|
13
|
+
sm: "rst:text-xs",
|
|
14
|
+
md: "rst:text-sm",
|
|
15
|
+
lg: "rst:text-base"
|
|
16
|
+
}, tr = ({
|
|
17
|
+
options: s,
|
|
18
|
+
value: c,
|
|
19
|
+
onChange: v,
|
|
20
|
+
label: x,
|
|
21
|
+
helperText: d,
|
|
22
|
+
errorMessage: a,
|
|
23
|
+
maxHeight: b,
|
|
24
|
+
disabled: l = !1,
|
|
25
|
+
variant: g,
|
|
26
|
+
size: o = "md",
|
|
27
|
+
columns: k,
|
|
28
|
+
colorScheme: N,
|
|
29
|
+
className: w,
|
|
30
|
+
optionsClassName: I,
|
|
31
|
+
panelClassName: E,
|
|
32
|
+
"aria-describedby": G,
|
|
33
|
+
"aria-invalid": L,
|
|
34
|
+
...j
|
|
35
|
+
}) => {
|
|
36
|
+
const n = !!a, m = b !== void 0, p = O.useId(), A = [G, d || a ? p : void 0].filter(Boolean).join(" ") || void 0, B = (r, f) => {
|
|
37
|
+
v(
|
|
38
|
+
f ? [...c, r] : c.filter((D) => D !== r)
|
|
39
|
+
);
|
|
40
|
+
}, C = (r) => /* @__PURE__ */ i(
|
|
41
|
+
F,
|
|
42
|
+
{
|
|
43
|
+
disabled: l || r.disabled,
|
|
44
|
+
className: "rst:flex rst:items-start rst:gap-2",
|
|
45
|
+
children: [
|
|
46
|
+
/* @__PURE__ */ t(
|
|
47
|
+
Z,
|
|
48
|
+
{
|
|
49
|
+
size: o ?? "md",
|
|
50
|
+
colorScheme: N,
|
|
51
|
+
checked: c.includes(r.value),
|
|
52
|
+
onChange: (f) => B(r.value, f),
|
|
53
|
+
className: "rst:mt-0.5 rst:shrink-0"
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
/* @__PURE__ */ i("div", { className: "rst:flex rst:min-w-0 rst:flex-col", children: [
|
|
57
|
+
/* @__PURE__ */ t(
|
|
58
|
+
S,
|
|
59
|
+
{
|
|
60
|
+
className: e(
|
|
61
|
+
"rst:cursor-pointer rst:select-none rst:px-1 rst:py-0.5",
|
|
62
|
+
"rst:text-[var(--roster-control-text)]",
|
|
63
|
+
"rst:data-disabled:cursor-not-allowed rst:data-disabled:opacity-50",
|
|
64
|
+
q[o ?? "md"]
|
|
65
|
+
),
|
|
66
|
+
children: r.label
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
r.description && /* @__PURE__ */ t(_, { className: "rst:px-1 rst:text-xs rst:text-gray-500 rst:dark:text-gray-400 rst:data-disabled:opacity-50", children: r.description })
|
|
70
|
+
] })
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
r.value
|
|
74
|
+
), y = (r) => /* @__PURE__ */ t("div", { className: e(V({ columns: k, size: o })), children: r.map(C) });
|
|
75
|
+
return /* @__PURE__ */ i(
|
|
76
|
+
u,
|
|
77
|
+
{
|
|
78
|
+
disabled: l,
|
|
79
|
+
className: e(
|
|
80
|
+
"rst:font-ui rst:flex rst:flex-col rst:gap-1.5 rst:min-w-0",
|
|
81
|
+
w
|
|
82
|
+
),
|
|
83
|
+
...j,
|
|
84
|
+
"aria-invalid": n || L || void 0,
|
|
85
|
+
"aria-describedby": A,
|
|
86
|
+
children: [
|
|
87
|
+
x && /* @__PURE__ */ t(h, { className: "rst:block rst:text-sm rst:font-medium rst:text-[var(--roster-control-text)] rst:text-left rst:data-disabled:opacity-50", children: x }),
|
|
88
|
+
/* @__PURE__ */ t(
|
|
89
|
+
"div",
|
|
90
|
+
{
|
|
91
|
+
className: e(
|
|
92
|
+
R({ variant: g, size: o, error: n }),
|
|
93
|
+
m && "rst:overflow-y-auto rst:custom-scrollbar rst:focus-visible:outline-hidden rst:focus-visible:ring-2 rst:focus-visible:ring-ring rst:focus-visible:ring-offset-2 rst:ring-offset-background",
|
|
94
|
+
/* Deprecated name first, so the current one wins when both are set. */
|
|
95
|
+
E,
|
|
96
|
+
I
|
|
97
|
+
),
|
|
98
|
+
style: m ? { maxHeight: b } : void 0,
|
|
99
|
+
tabIndex: m ? 0 : void 0,
|
|
100
|
+
children: W(s) ? s.map((r) => (
|
|
101
|
+
/* Nested fieldset per category, so the heading is the group's
|
|
102
|
+
accessible name rather than decoration a screen reader walks
|
|
103
|
+
straight past. Nesting is valid HTML, the inner
|
|
104
|
+
DisabledProvider inherits from the outer one, and the names do
|
|
105
|
+
not concatenate: Headless UI's `useLabels` is called without
|
|
106
|
+
`inherit`, so each fieldset collects only its own legend.
|
|
107
|
+
|
|
108
|
+
`as={Eyebrow}` overrides Legend's own `as="div"` — it is
|
|
109
|
+
spread after — so these render as <span>. The registration is
|
|
110
|
+
what matters and it is unchanged. */
|
|
111
|
+
/* @__PURE__ */ i(u, { className: "rst:flex rst:flex-col rst:gap-2", children: [
|
|
112
|
+
/* @__PURE__ */ t(
|
|
113
|
+
h,
|
|
114
|
+
{
|
|
115
|
+
as: P,
|
|
116
|
+
weight: "semibold",
|
|
117
|
+
tone: "default",
|
|
118
|
+
className: "rst:border-b rst:border-gray-200 rst:pb-1 rst:dark:border-gray-800",
|
|
119
|
+
children: r.category
|
|
120
|
+
}
|
|
121
|
+
),
|
|
122
|
+
y(r.options)
|
|
123
|
+
] }, r.category)
|
|
124
|
+
)) : y(s)
|
|
125
|
+
}
|
|
126
|
+
),
|
|
127
|
+
(d || a) && /* @__PURE__ */ t(
|
|
128
|
+
"p",
|
|
129
|
+
{
|
|
130
|
+
id: p,
|
|
131
|
+
className: e(
|
|
132
|
+
"rst:text-xs rst:text-left",
|
|
133
|
+
n ? "rst:text-error-600 rst:dark:text-error-400 rst:font-medium" : "rst:text-gray-500 rst:dark:text-gray-400",
|
|
134
|
+
l && "rst:opacity-50"
|
|
135
|
+
),
|
|
136
|
+
children: a || d
|
|
137
|
+
}
|
|
138
|
+
)
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
);
|
|
142
|
+
};
|
|
143
|
+
export {
|
|
144
|
+
tr as CheckboxGroup
|
|
145
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../node_modules/class-variance-authority/dist/index.cjs"),s=r.cva("rst:flex rst:flex-col rst:text-left",{variants:{variant:{plain:"",panel:"rst:rounded-md rst:border rst:p-3 rst:border-gray-200 rst:bg-gray-50 rst:dark:border-gray-800 rst:dark:bg-gray-900/40"},size:{sm:"rst:gap-3",md:"rst:gap-4",lg:"rst:gap-5"},error:{true:"",false:""}},compoundVariants:[{variant:"panel",error:!0,class:"rst:border-error-500 rst:dark:border-error-500"}],defaultVariants:{variant:"plain",size:"md",error:!1}}),t=r.cva("rst:grid",{variants:{columns:{1:"rst:grid-cols-1",2:"rst:grid-cols-1 rst:sm:grid-cols-2",3:"rst:grid-cols-1 rst:sm:grid-cols-2 rst:lg:grid-cols-3"},size:{sm:"rst:gap-x-4 rst:gap-y-3.5",md:"rst:gap-x-4 rst:gap-y-3",lg:"rst:gap-x-6 rst:gap-y-2.5"}},defaultVariants:{columns:1,size:"md"}});exports.checkboxGroupOptionsVariants=t;exports.checkboxGroupPanelVariants=s;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { cva as r } from "../../../node_modules/class-variance-authority/dist/index.js";
|
|
2
|
+
const t = /* @__PURE__ */ r("rst:flex rst:flex-col rst:text-left", {
|
|
3
|
+
variants: {
|
|
4
|
+
variant: {
|
|
5
|
+
plain: "",
|
|
6
|
+
panel: "rst:rounded-md rst:border rst:p-3 rst:border-gray-200 rst:bg-gray-50 rst:dark:border-gray-800 rst:dark:bg-gray-900/40"
|
|
7
|
+
},
|
|
8
|
+
/* Gap between categories, not between options — those are the grid's, below. */
|
|
9
|
+
size: {
|
|
10
|
+
sm: "rst:gap-3",
|
|
11
|
+
md: "rst:gap-4",
|
|
12
|
+
lg: "rst:gap-5"
|
|
13
|
+
},
|
|
14
|
+
error: {
|
|
15
|
+
true: "",
|
|
16
|
+
false: ""
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
compoundVariants: [
|
|
20
|
+
{
|
|
21
|
+
/* Only `panel` has a boundary to repaint. In `plain` the message text is
|
|
22
|
+
the entire error state, which is stated in the README rather than left
|
|
23
|
+
for someone to discover. */
|
|
24
|
+
variant: "panel",
|
|
25
|
+
error: !0,
|
|
26
|
+
class: "rst:border-error-500 rst:dark:border-error-500"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
defaultVariants: { variant: "plain", size: "md", error: !1 }
|
|
30
|
+
}), a = /* @__PURE__ */ r("rst:grid", {
|
|
31
|
+
variants: {
|
|
32
|
+
columns: {
|
|
33
|
+
1: "rst:grid-cols-1",
|
|
34
|
+
2: "rst:grid-cols-1 rst:sm:grid-cols-2",
|
|
35
|
+
3: "rst:grid-cols-1 rst:sm:grid-cols-2 rst:lg:grid-cols-3"
|
|
36
|
+
},
|
|
37
|
+
/* The row gaps are a touch-target constraint, not only a rhythm.
|
|
38
|
+
`Checkbox` extends its hit area with a 44x44 pseudo-element, so an
|
|
39
|
+
option's target reaches `22 - (2 + box / 2)` above its own row: 12, 10
|
|
40
|
+
and 8px. Let it reach far enough and it covers the option above, and a
|
|
41
|
+
click there operates the wrong control.
|
|
42
|
+
|
|
43
|
+
The thing it has to clear is the LABEL, not the checkbox. The label is a
|
|
44
|
+
hit target of its own, it is what a user actually clicks, and it is both
|
|
45
|
+
taller than the box and 2px lower: `py-0.5` puts its bottom edge at the
|
|
46
|
+
row's bottom while the checkbox stops 2px short of it. Measuring against
|
|
47
|
+
the box instead said `gap-y-2.5` was enough, and at `sm` it left the
|
|
48
|
+
bottom-left 12px of every label belonging to the next option, confirmed
|
|
49
|
+
by clicking it.
|
|
50
|
+
|
|
51
|
+
So the gap is exactly the overhang plus 2px of margin, which is why it
|
|
52
|
+
runs the opposite way to the size scale: a smaller box overhangs
|
|
53
|
+
further. `RadioGroup` avoids the inversion by giving each option a row
|
|
54
|
+
tall enough to contain its own target; doing that here would re-space
|
|
55
|
+
every checkbox list in every consumer, which is a bigger change than
|
|
56
|
+
this release should make.
|
|
57
|
+
|
|
58
|
+
This keeps a click on a control working on that control. It does NOT
|
|
59
|
+
stop the targets overlapping in the overhang itself, which would take
|
|
60
|
+
44px of pitch and `RadioGroup`'s row model. */
|
|
61
|
+
size: {
|
|
62
|
+
sm: "rst:gap-x-4 rst:gap-y-3.5",
|
|
63
|
+
md: "rst:gap-x-4 rst:gap-y-3",
|
|
64
|
+
lg: "rst:gap-x-6 rst:gap-y-2.5"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
defaultVariants: { columns: 1, size: "md" }
|
|
68
|
+
});
|
|
69
|
+
export {
|
|
70
|
+
a as checkboxGroupOptionsVariants,
|
|
71
|
+
t as checkboxGroupPanelVariants
|
|
72
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),m=require("react"),e=require("../../../lib/utils.cjs"),u=require("./description-list-variants.cjs"),i=m.forwardRef(({items:n,layout:a,size:d,dividers:l=!1,className:o,...x},g)=>r.jsx("dl",{ref:g,className:e.cn(u.descriptionListVariants({layout:a,size:d}),o),...x,children:n.map((t,s)=>{const p=s===n.length-1,c=l&&!p?"rst:border-b rst:border-gray-200 rst:pb-1.5 rst:dark:border-gray-800":"";return a==="stacked"?r.jsxs("div",{className:e.cn("rst:flex rst:flex-col rst:gap-0.5",c),children:[r.jsx("dt",{className:"rst:font-mono rst:uppercase rst:tracking-[0.08em] rst:text-gray-500 rst:dark:text-gray-400",children:t.term}),r.jsx("dd",{className:"rst:m-0 rst:text-gray-900 rst:dark:text-gray-100",children:t.description})]},s):a==="split"?r.jsxs("div",{className:e.cn("rst:flex rst:items-baseline rst:justify-between rst:gap-4",c),children:[r.jsx("dt",{className:"rst:font-mono rst:uppercase rst:tracking-[0.08em] rst:text-gray-500 rst:dark:text-gray-400",children:t.term}),r.jsx("dd",{className:"rst:m-0 rst:text-right rst:tabular-nums rst:text-gray-900 rst:dark:text-gray-100",children:t.description})]},s):r.jsxs("div",{className:e.cn("rst:contents",c),children:[r.jsx("dt",{className:"rst:whitespace-nowrap rst:font-mono rst:uppercase rst:tracking-[0.08em] rst:text-gray-500 rst:dark:text-gray-400",children:t.term}),r.jsx("dd",{className:"rst:m-0 rst:text-gray-900 rst:dark:text-gray-100",children:t.description})]},s)})}));i.displayName="DescriptionList";exports.DescriptionList=i;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as r, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import f from "react";
|
|
3
|
+
import { cn as e } from "../../../lib/utils.js";
|
|
4
|
+
import { descriptionListVariants as x } from "./description-list-variants.js";
|
|
5
|
+
const y = f.forwardRef(
|
|
6
|
+
({ items: n, layout: a, size: i, dividers: l = !1, className: o, ...m }, p) => /* @__PURE__ */ r(
|
|
7
|
+
"dl",
|
|
8
|
+
{
|
|
9
|
+
ref: p,
|
|
10
|
+
className: e(x({ layout: a, size: i }), o),
|
|
11
|
+
...m,
|
|
12
|
+
children: n.map((t, s) => {
|
|
13
|
+
const g = s === n.length - 1, c = l && !g ? "rst:border-b rst:border-gray-200 rst:pb-1.5 rst:dark:border-gray-800" : "";
|
|
14
|
+
return a === "stacked" ? /* @__PURE__ */ d("div", { className: e("rst:flex rst:flex-col rst:gap-0.5", c), children: [
|
|
15
|
+
/* @__PURE__ */ r("dt", { className: "rst:font-mono rst:uppercase rst:tracking-[0.08em] rst:text-gray-500 rst:dark:text-gray-400", children: t.term }),
|
|
16
|
+
/* @__PURE__ */ r("dd", { className: "rst:m-0 rst:text-gray-900 rst:dark:text-gray-100", children: t.description })
|
|
17
|
+
] }, s) : a === "split" ? /* @__PURE__ */ d("div", { className: e("rst:flex rst:items-baseline rst:justify-between rst:gap-4", c), children: [
|
|
18
|
+
/* @__PURE__ */ r("dt", { className: "rst:font-mono rst:uppercase rst:tracking-[0.08em] rst:text-gray-500 rst:dark:text-gray-400", children: t.term }),
|
|
19
|
+
/* @__PURE__ */ r("dd", { className: "rst:m-0 rst:text-right rst:tabular-nums rst:text-gray-900 rst:dark:text-gray-100", children: t.description })
|
|
20
|
+
] }, s) : /* @__PURE__ */ d("div", { className: e("rst:contents", c), children: [
|
|
21
|
+
/* @__PURE__ */ r("dt", { className: "rst:whitespace-nowrap rst:font-mono rst:uppercase rst:tracking-[0.08em] rst:text-gray-500 rst:dark:text-gray-400", children: t.term }),
|
|
22
|
+
/* @__PURE__ */ r("dd", { className: "rst:m-0 rst:text-gray-900 rst:dark:text-gray-100", children: t.description })
|
|
23
|
+
] }, s);
|
|
24
|
+
})
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
);
|
|
28
|
+
y.displayName = "DescriptionList";
|
|
29
|
+
export {
|
|
30
|
+
y as DescriptionList
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../node_modules/class-variance-authority/dist/index.cjs"),s=t.cva("rst:m-0",{variants:{layout:{inline:"rst:grid rst:grid-cols-[auto_1fr] rst:gap-x-3",stacked:"rst:flex rst:flex-col",split:"rst:flex rst:flex-col"},size:{sm:"rst:text-[0.65625rem] rst:gap-y-[5px]",md:"rst:text-xs rst:gap-y-1.5"}},defaultVariants:{layout:"inline",size:"sm"}});exports.descriptionListVariants=s;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { cva as t } from "../../../node_modules/class-variance-authority/dist/index.js";
|
|
2
|
+
const r = /* @__PURE__ */ t("rst:m-0", {
|
|
3
|
+
variants: {
|
|
4
|
+
layout: {
|
|
5
|
+
/** Term and description on one row, term column sized to content. */
|
|
6
|
+
inline: "rst:grid rst:grid-cols-[auto_1fr] rst:gap-x-3",
|
|
7
|
+
/** Term above its description. Better for long values. */
|
|
8
|
+
stacked: "rst:flex rst:flex-col",
|
|
9
|
+
/** Term left, description right-aligned against it. Spec-sheet feel. */
|
|
10
|
+
split: "rst:flex rst:flex-col"
|
|
11
|
+
},
|
|
12
|
+
size: {
|
|
13
|
+
sm: "rst:text-[0.65625rem] rst:gap-y-[5px]",
|
|
14
|
+
md: "rst:text-xs rst:gap-y-1.5"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
defaultVariants: { layout: "inline", size: "sm" }
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
r as descriptionListVariants
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime");require("react");const c=require("../../../lib/utils.cjs"),d=require("./empty-state-variants.cjs"),n=({title:a,description:r,icon:s,action:e,variant:l,className:i,...m})=>t.jsxs("div",{className:c.cn(d.emptyStateVariants({variant:l}),i),...m,children:[s&&t.jsx("div",{className:"rst:mb-4 rst:flex rst:h-12 rst:w-12 rst:items-center rst:justify-center rst:rounded-full rst:bg-gray-100 rst:text-gray-400 rst:dark:bg-gray-800 rst:dark:text-gray-500",children:t.jsx("div",{className:"rst:h-6 rst:w-6 rst:[&>svg]:h-full rst:[&>svg]:w-full",children:s})}),t.jsx("h3",{className:"rst:text-lg rst:font-semibold rst:text-gray-900 rst:dark:text-gray-100",children:a}),r&&t.jsx("p",{className:"rst:mt-1 rst:max-w-sm rst:text-sm rst:text-gray-500 rst:dark:text-gray-400",children:r}),e&&t.jsx("div",{className:"rst:mt-6",children:e})]});exports.EmptyState=n;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { cn as c } from "../../../lib/utils.js";
|
|
4
|
+
import { emptyStateVariants as g } from "./empty-state-variants.js";
|
|
5
|
+
const f = ({
|
|
6
|
+
title: a,
|
|
7
|
+
description: r,
|
|
8
|
+
icon: s,
|
|
9
|
+
action: e,
|
|
10
|
+
variant: m,
|
|
11
|
+
className: l,
|
|
12
|
+
...d
|
|
13
|
+
}) => /* @__PURE__ */ i("div", { className: c(g({ variant: m }), l), ...d, children: [
|
|
14
|
+
s && /* @__PURE__ */ t("div", { className: "rst:mb-4 rst:flex rst:h-12 rst:w-12 rst:items-center rst:justify-center rst:rounded-full rst:bg-gray-100 rst:text-gray-400 rst:dark:bg-gray-800 rst:dark:text-gray-500", children: /* @__PURE__ */ t("div", { className: "rst:h-6 rst:w-6 rst:[&>svg]:h-full rst:[&>svg]:w-full", children: s }) }),
|
|
15
|
+
/* @__PURE__ */ t("h3", { className: "rst:text-lg rst:font-semibold rst:text-gray-900 rst:dark:text-gray-100", children: a }),
|
|
16
|
+
r && /* @__PURE__ */ t("p", { className: "rst:mt-1 rst:max-w-sm rst:text-sm rst:text-gray-500 rst:dark:text-gray-400", children: r }),
|
|
17
|
+
e && /* @__PURE__ */ t("div", { className: "rst:mt-6", children: e })
|
|
18
|
+
] });
|
|
19
|
+
export {
|
|
20
|
+
f as EmptyState
|
|
21
|
+
};
|
|
@@ -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:flex rst:flex-col rst:items-center rst:justify-center rst:text-center rst:p-8 rst:rounded-lg rst:transition-colors",{variants:{variant:{dashed:"rst:border-2 rst:border-dashed rst:border-gray-300 rst:bg-gray-50 rst:hover:bg-gray-100/50 rst:dark:border-gray-700 rst:dark:bg-gray-500/10 rst:dark:hover:bg-gray-500/15",simple:"rst:border-transparent rst:bg-transparent rst:p-0"}},defaultVariants:{variant:"dashed"}});exports.emptyStateVariants=t;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { cva as r } from "../../../node_modules/class-variance-authority/dist/index.js";
|
|
2
|
+
const s = /* @__PURE__ */ r(
|
|
3
|
+
"rst:font-ui rst:flex rst:flex-col rst:items-center rst:justify-center rst:text-center rst:p-8 rst:rounded-lg rst:transition-colors",
|
|
4
|
+
{
|
|
5
|
+
variants: {
|
|
6
|
+
variant: {
|
|
7
|
+
dashed: "rst:border-2 rst:border-dashed rst:border-gray-300 rst:bg-gray-50 rst:hover:bg-gray-100/50 rst:dark:border-gray-700 rst:dark:bg-gray-500/10 rst:dark:hover:bg-gray-500/15",
|
|
8
|
+
simple: "rst:border-transparent rst:bg-transparent rst:p-0"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
defaultVariants: {
|
|
12
|
+
variant: "dashed"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
export {
|
|
17
|
+
s as emptyStateVariants
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime");require("react");const d=require("../../../node_modules/@fortawesome/react-fontawesome/dist/index.cjs"),u=require("../../../node_modules/@fortawesome/free-solid-svg-icons/index.cjs"),n=require("../../../lib/utils.cjs"),x=require("./error-state-variants.cjs"),m=require("../../atoms/Button/Button.cjs"),h=({title:c="An Error Occurred",description:i,onRetry:e,action:s,icon:l,variant:t,className:a,...o})=>r.jsxs("div",{className:n.cn(x.errorStateVariants({variant:t}),a),...o,children:[r.jsx("div",{className:"rst:mb-4 rst:flex rst:h-12 rst:w-12 rst:items-center rst:justify-center rst:rounded-full rst:bg-error-100 rst:text-error-600 rst:dark:bg-error-500/15 rst:dark:text-error-400",children:r.jsx("div",{className:"rst:h-6 rst:w-6 rst:flex rst:items-center rst:justify-center",children:l||r.jsx(d.FontAwesomeIcon,{icon:u.faTriangleExclamation,className:"rst:h-full rst:w-full"})})}),r.jsx("h3",{className:"rst:text-lg rst:font-bold rst:tracking-tight",children:c}),r.jsx("p",{className:n.cn("rst:mt-2 rst:text-sm rst:leading-relaxed",t==="card"?"rst:text-error-800/80 rst:dark:text-error-200/80":"rst:text-gray-500 rst:dark:text-gray-400"),children:i}),r.jsx("div",{className:"rst:mt-6",children:s||(e?r.jsx(m.Button,{onClick:e,colorScheme:"error",variant:t==="card"?"outline":"solid",children:"Try Again"}):null)})]});exports.ErrorState=h;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { FontAwesomeIcon as d } from "../../../node_modules/@fortawesome/react-fontawesome/dist/index.js";
|
|
4
|
+
import { faTriangleExclamation as f } from "../../../node_modules/@fortawesome/free-solid-svg-icons/index.js";
|
|
5
|
+
import { cn as o } from "../../../lib/utils.js";
|
|
6
|
+
import { errorStateVariants as x } from "./error-state-variants.js";
|
|
7
|
+
import { Button as h } from "../../atoms/Button/Button.js";
|
|
8
|
+
const w = ({
|
|
9
|
+
title: l = "An Error Occurred",
|
|
10
|
+
description: a,
|
|
11
|
+
onRetry: e,
|
|
12
|
+
action: s,
|
|
13
|
+
icon: i,
|
|
14
|
+
variant: t,
|
|
15
|
+
className: c,
|
|
16
|
+
...m
|
|
17
|
+
}) => /* @__PURE__ */ n("div", { className: o(x({ variant: t }), c), ...m, children: [
|
|
18
|
+
/* @__PURE__ */ r("div", { className: "rst:mb-4 rst:flex rst:h-12 rst:w-12 rst:items-center rst:justify-center rst:rounded-full rst:bg-error-100 rst:text-error-600 rst:dark:bg-error-500/15 rst:dark:text-error-400", children: /* @__PURE__ */ r("div", { className: "rst:h-6 rst:w-6 rst:flex rst:items-center rst:justify-center", children: i || /* @__PURE__ */ r(
|
|
19
|
+
d,
|
|
20
|
+
{
|
|
21
|
+
icon: f,
|
|
22
|
+
className: "rst:h-full rst:w-full"
|
|
23
|
+
}
|
|
24
|
+
) }) }),
|
|
25
|
+
/* @__PURE__ */ r("h3", { className: "rst:text-lg rst:font-bold rst:tracking-tight", children: l }),
|
|
26
|
+
/* @__PURE__ */ r(
|
|
27
|
+
"p",
|
|
28
|
+
{
|
|
29
|
+
className: o(
|
|
30
|
+
"rst:mt-2 rst:text-sm rst:leading-relaxed",
|
|
31
|
+
t === "card" ? "rst:text-error-800/80 rst:dark:text-error-200/80" : "rst:text-gray-500 rst:dark:text-gray-400"
|
|
32
|
+
),
|
|
33
|
+
children: a
|
|
34
|
+
}
|
|
35
|
+
),
|
|
36
|
+
/* @__PURE__ */ r("div", { className: "rst:mt-6", children: s || (e ? /* @__PURE__ */ r(
|
|
37
|
+
h,
|
|
38
|
+
{
|
|
39
|
+
onClick: e,
|
|
40
|
+
colorScheme: "error",
|
|
41
|
+
variant: t === "card" ? "outline" : "solid",
|
|
42
|
+
children: "Try Again"
|
|
43
|
+
}
|
|
44
|
+
) : null) })
|
|
45
|
+
] });
|
|
46
|
+
export {
|
|
47
|
+
w as ErrorState
|
|
48
|
+
};
|
|
@@ -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:flex rst:flex-col rst:items-center rst:justify-center rst:text-center rst:p-8 rst:rounded-lg rst:transition-colors",{variants:{variant:{card:"rst:border rst:border-error-200 rst:bg-error-50 rst:text-error-900 rst:dark:border-error-800 rst:dark:bg-error-500/10 rst:dark:text-error-100",page:"rst:bg-transparent rst:text-gray-900 rst:max-w-lg rst:mx-auto rst:py-16 rst:dark:text-gray-100"}},defaultVariants:{variant:"card"}});exports.errorStateVariants=t;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { cva as r } from "../../../node_modules/class-variance-authority/dist/index.js";
|
|
2
|
+
const s = /* @__PURE__ */ r(
|
|
3
|
+
"rst:font-ui rst:flex rst:flex-col rst:items-center rst:justify-center rst:text-center rst:p-8 rst:rounded-lg rst:transition-colors",
|
|
4
|
+
{
|
|
5
|
+
variants: {
|
|
6
|
+
variant: {
|
|
7
|
+
card: "rst:border rst:border-error-200 rst:bg-error-50 rst:text-error-900 rst:dark:border-error-800 rst:dark:bg-error-500/10 rst:dark:text-error-100",
|
|
8
|
+
page: "rst:bg-transparent rst:text-gray-900 rst:max-w-lg rst:mx-auto rst:py-16 rst:dark:text-gray-100"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
defaultVariants: {
|
|
12
|
+
variant: "card"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
export {
|
|
17
|
+
s as errorStateVariants
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),p=require("react"),d=require("../../../node_modules/class-variance-authority/dist/index.cjs"),a=require("../../../lib/utils.cjs"),l=d.cva("rst:flex rst:items-center rst:gap-2 rst:transition-all",{variants:{state:{default:"",winner:"",loser:"rst:opacity-50 rst:grayscale",tie:""}},defaultVariants:{state:"default"}}),o=d.cva("rst:h-8 rst:w-8 rst:object-contain rst:transition-all rst:rounded-full",{variants:{state:{default:"",winner:"rst:ring-2 rst:ring-success-500 rst:bg-success-200/25",loser:"",tie:"rst:ring-2 rst:ring-gray-400"}},defaultVariants:{state:"default"}}),x=p.forwardRef(({awayTeam:s,homeTeam:r,isCompleted:e=!1,isTie:u=!1,className:f,...g},j)=>{const n=v=>e?u?"tie":v.isWinner?"winner":"loser":"default",c=n(s),i=n(r);return t.jsxs("button",{ref:j,type:"button",className:a.cn("rst:flex rst:items-center rst:gap-3 rst:rounded-lg rst:p-2 rst:text-left rst:transition rst:hover:bg-gray-100 rst:dark:hover:bg-slate-800",f),...g,children:[t.jsxs("div",{className:l({state:c}),children:[t.jsx("div",{className:"rst:relative",children:t.jsx("img",{src:s.logoSrc,alt:s.name||`Team ${s.id}`,className:o({state:c})})}),t.jsxs("div",{className:"rst:flex rst:flex-col rst:items-end",children:[s.accessory&&t.jsx("span",{className:a.cn("rst:text-sm rst:text-gray-800 rst:dark:text-gray-300",s.isWinner&&"rst:font-bold"),children:s.accessory}),e&&s.score!==void 0&&t.jsx("span",{className:"rst:text-xs rst:font-mono rst:font-semibold rst:text-gray-900 rst:dark:text-white",children:s.score})]})]}),t.jsx("span",{className:"rst:text-xs rst:font-medium rst:text-gray-500 rst:self-center rst:px-1",children:e?"-":"@"}),t.jsxs("div",{className:l({state:i}),children:[t.jsxs("div",{className:"rst:flex rst:flex-col rst:items-start",children:[r.accessory&&t.jsx("span",{className:a.cn("rst:text-sm rst:text-gray-800 rst:dark:text-gray-300",r.isWinner&&"rst:font-bold"),children:r.accessory}),e&&r.score!==void 0&&t.jsx("span",{className:"rst:text-xs rst:font-mono rst:font-semibold rst:text-gray-900 rst:dark:text-white",children:r.score})]}),t.jsx("div",{className:"rst:relative",children:t.jsx("img",{src:r.logoSrc,alt:r.name||`Team ${r.id}`,className:o({state:i})})})]})]})});x.displayName="MatchupCard";exports.MatchupCard=x;
|