@koide-labs/ui 0.0.0 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +53 -3
- package/{src/-types.ts → dist/-types.d.ts} +1 -6
- package/dist/-types.js +1 -0
- package/dist/-utils.d.ts +19 -0
- package/dist/-utils.js +33 -0
- package/dist/Button-DrPFFzo7.js +31 -0
- package/dist/CompositeRoot-CVk5a-pR.js +233 -0
- package/dist/DirectionContext-C2o_MF_i.js +9 -0
- package/dist/FieldItemContext-DAvk99to.js +11 -0
- package/dist/FloatingPortal-tWyuKRSN.js +435 -0
- package/dist/FloatingPortalLite-DVyq6YhV.js +28 -0
- package/dist/InternalBackdrop-jYAiOJ8v.js +574 -0
- package/dist/LabelableContext-BMvjVwor.js +169 -0
- package/dist/ToolbarRootContext-CvvL0Tk1.js +9 -0
- package/dist/clamp-D0KDAQIz.js +6 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/accordion/index.d.ts +12 -0
- package/dist/components/accordion/index.js +699 -0
- package/dist/components/alert-dialog/index.d.ts +26 -0
- package/dist/components/alert-dialog/index.js +136 -0
- package/dist/components/anchor/index.d.ts +8 -0
- package/dist/components/anchor/index.js +38 -0
- package/dist/components/avatar/index.d.ts +21 -0
- package/dist/components/avatar/index.js +161 -0
- package/dist/components/badge/index.d.ts +16 -0
- package/dist/components/badge/index.js +40 -0
- package/dist/components/button/index.d.ts +24 -0
- package/dist/components/button/index.js +47 -0
- package/dist/components/checkbox/index.d.ts +9 -0
- package/dist/components/checkbox/index.js +269 -0
- package/dist/components/code/index.d.ts +9 -0
- package/dist/components/code/index.js +10 -0
- package/dist/components/collapse/index.d.ts +11 -0
- package/dist/components/collapse/index.js +41 -0
- package/dist/components/command/index.d.ts +14 -0
- package/dist/components/command/index.js +1695 -0
- package/dist/components/context-menu/index.d.ts +42 -0
- package/dist/components/context-menu/index.js +1444 -0
- package/dist/components/dialog/index.d.ts +48 -0
- package/dist/components/dialog/index.js +138 -0
- package/dist/components/heading/index.d.ts +44 -0
- package/dist/components/heading/index.js +56 -0
- package/dist/components/icon/icon-names.d.ts +1 -0
- package/dist/components/icon/icon-names.js +1 -0
- package/dist/components/icon/index.d.ts +23 -0
- package/dist/components/icon/index.js +43 -0
- package/dist/components/icon-button/index.d.ts +12 -0
- package/dist/components/icon-button/index.js +45 -0
- package/dist/components/inline-code/index.d.ts +6 -0
- package/dist/components/inline-code/index.js +22 -0
- package/dist/components/input/index.d.ts +3 -0
- package/dist/components/input/index.js +119 -0
- package/dist/components/meter/index.d.ts +18 -0
- package/dist/components/meter/index.js +165 -0
- package/dist/components/multiline-input/index.d.ts +6 -0
- package/dist/components/multiline-input/index.js +100 -0
- package/dist/components/number-input/index.d.ts +10 -0
- package/dist/components/number-input/index.js +1169 -0
- package/dist/components/password-input/index.d.ts +2 -0
- package/dist/components/password-input/index.js +29 -0
- package/dist/components/pill/index.d.ts +13 -0
- package/dist/components/pill/index.js +38 -0
- package/dist/components/popover/index.d.ts +21 -0
- package/dist/components/popover/index.js +636 -0
- package/dist/components/preview-card/index.d.ts +17 -0
- package/dist/components/preview-card/index.js +402 -0
- package/dist/components/radio/index.d.ts +13 -0
- package/dist/components/radio/index.js +404 -0
- package/dist/components/search-bar/index.d.ts +12 -0
- package/dist/components/search-bar/index.js +48 -0
- package/dist/components/select/index.d.ts +16 -0
- package/dist/components/select/index.js +1263 -0
- package/dist/components/separator/index.d.ts +7 -0
- package/dist/components/separator/index.js +6 -0
- package/dist/components/slider/index.d.ts +5 -0
- package/dist/components/slider/index.js +902 -0
- package/dist/components/spinner/index.d.ts +2 -0
- package/dist/components/spinner/index.js +13 -0
- package/dist/components/stacked-avatars/index.d.ts +14 -0
- package/dist/components/stacked-avatars/index.js +92 -0
- package/dist/components/status-banner/index.d.ts +17 -0
- package/dist/components/status-banner/index.js +69 -0
- package/dist/components/surface/index.d.ts +27 -0
- package/dist/components/surface/index.js +41 -0
- package/dist/components/switch/index.d.ts +5 -0
- package/dist/components/switch/index.js +196 -0
- package/dist/components/tabs/index.d.ts +18 -0
- package/dist/components/tabs/index.js +509 -0
- package/dist/components/text/index.d.ts +26 -0
- package/dist/components/text/index.js +51 -0
- package/dist/components/theme-provider/index.d.ts +2 -0
- package/dist/components/theme-provider/index.js +6 -0
- package/dist/components/theme-provider/theme-context.d.ts +9 -0
- package/dist/components/theme-provider/theme-context.js +13 -0
- package/dist/components/theme-provider/theme-provider.d.ts +17 -0
- package/dist/components/theme-provider/theme-provider.js +30 -0
- package/dist/components/timestamp/index.d.ts +23 -0
- package/dist/components/timestamp/index.js +1392 -0
- package/dist/components/toast/index.d.ts +2 -0
- package/dist/components/toast/index.js +7 -0
- package/dist/components/toast/toast.d.ts +2 -0
- package/dist/components/toast/toast.js +878 -0
- package/dist/components/toast/use-toast-manager.d.ts +27 -0
- package/dist/components/toast/use-toast-manager.js +4 -0
- package/dist/components/tooltip/index.d.ts +14 -0
- package/dist/components/tooltip/index.js +712 -0
- package/dist/components/tooltip/tooltip-arrow.d.ts +3 -0
- package/dist/components/tooltip/tooltip-arrow.js +6 -0
- package/dist/components/view/index.d.ts +30 -0
- package/dist/components/view/index.js +84 -0
- package/dist/components/visually-hidden/index.d.ts +1 -0
- package/dist/components/visually-hidden/index.js +4 -0
- package/dist/composite-Bx7Szd_T.js +208 -0
- package/dist/composite-C9L5QmZL.js +66 -0
- package/dist/createBaseUIEventDetails-D8M2Yl-a.js +59 -0
- package/dist/detectBrowser-I-s3yzIE.js +43 -0
- package/dist/dialog.css +1 -0
- package/dist/dialog.module-BeF-6XAo.js +415 -0
- package/dist/element-CZEOj04G.js +80 -0
- package/dist/event-CKoGyQEJ.js +30 -0
- package/dist/floating-ui.utils-C7pRWMZ_.js +128 -0
- package/dist/floating-ui.utils.dom-C7FS5id0.js +135 -0
- package/dist/formatErrorMessage-BqPuTBN-.js +7 -0
- package/dist/formatNumber-1UNwjeqf.js +25 -0
- package/dist/getDisabledMountTransitionStyles-YfHPge6T.js +1510 -0
- package/dist/index-BX1XbbRk.js +1206 -0
- package/dist/index-CeuccO-T.js +109 -0
- package/dist/index-DN9Bn1qm.js +29 -0
- package/dist/index-FMoPxlJ2.js +52 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +42 -0
- package/dist/index.js +108 -0
- package/dist/index10.css +1 -0
- package/dist/index11.css +1 -0
- package/dist/index12.css +1 -0
- package/dist/index13.css +1 -0
- package/dist/index14.css +1 -0
- package/dist/index15.css +1 -0
- package/dist/index16.css +1 -0
- package/dist/index17.css +1 -0
- package/dist/index18.css +1 -0
- package/dist/index19.css +1 -0
- package/dist/index2.css +1 -0
- package/dist/index20.css +1 -0
- package/dist/index21.css +1 -0
- package/dist/index22.css +1 -0
- package/dist/index23.css +1 -0
- package/dist/index24.css +1 -0
- package/dist/index25.css +1 -0
- package/dist/index26.css +1 -0
- package/dist/index27.css +1 -0
- package/dist/index28.css +1 -0
- package/dist/index29.css +1 -0
- package/dist/index3.css +1 -0
- package/dist/index30.css +1 -0
- package/dist/index31.css +1 -0
- package/dist/index32.css +1 -0
- package/dist/index33.css +1 -0
- package/dist/index34.css +1 -0
- package/dist/index35.css +1 -0
- package/dist/index36.css +1 -0
- package/dist/index37.css +1 -0
- package/dist/index4.css +1 -0
- package/dist/index5.css +1 -0
- package/dist/index6.css +1 -0
- package/dist/index7.css +1 -0
- package/dist/index8.css +1 -0
- package/dist/index9.css +1 -0
- package/dist/inertValue-BCYGsdmf.js +7 -0
- package/dist/input.css +1 -0
- package/dist/input.module-DDQY_Ij6.js +7 -0
- package/dist/integrations/react-markdown/index.d.ts +5 -0
- package/dist/integrations/react-markdown/index.js +6895 -0
- package/dist/integrations/remix/index.d.ts +9 -0
- package/{src/integrations/remix.ts → dist/integrations/remix/index.js} +7 -4
- package/dist/integrations/tailwind.css +1 -0
- package/dist/integrations/twemoij/index.d.ts +3 -0
- package/dist/integrations/twemoij/index.js +18 -0
- package/dist/isElementDisabled-Cbd8W9kH.js +6 -0
- package/dist/owner-rKN292Q9.js +6 -0
- package/dist/safePolygon-DWy1dGKJ.js +308 -0
- package/dist/styles/core.css +1 -0
- package/dist/styles/tokens.d.ts +400 -0
- package/{src/styles/tokens.ts → dist/styles/tokens.js} +54 -96
- package/dist/toast.css +1 -0
- package/dist/tooltip-arrow-C1qXdi5T.js +24 -0
- package/dist/tooltip-arrow.css +1 -0
- package/dist/transitions.css +1 -0
- package/dist/transitions.module-CWX8e5cx.js +1343 -0
- package/dist/use-toast-manager-Dq-44AuW.js +37 -0
- package/dist/useAnimationFrame-451ugS_6.js +68 -0
- package/dist/useBaseUiId-B7WyxtIE.js +7 -0
- package/dist/useButton-DfIwsdb8.js +127 -0
- package/dist/useCompositeListItem-OkcAim_1.js +148 -0
- package/dist/useControlled-Du4sJyMj.js +31 -0
- package/dist/useHoverReferenceInteraction-SfOBPoXM.js +264 -0
- package/dist/useId-C5kyn6tA.js +22 -0
- package/dist/useIsoLayoutEffect-CIDbvm3Q.js +6 -0
- package/dist/useLabelableId-Ci_jDvmv.js +29 -0
- package/dist/useOnMount-VRW6CK2u.js +8 -0
- package/dist/useOpenChangeComplete-Dse9kY9E.js +61 -0
- package/dist/usePopupAutoResize-CNR6Ekmx.js +85 -0
- package/dist/useRender-CLx7dR_1.js +7 -0
- package/dist/useRenderElement-DwToLA61.js +244 -0
- package/dist/useRole-oDBdbuwQ.js +77 -0
- package/dist/useStableCallback-CkTrVkNX.js +29 -0
- package/dist/useSyncedFloatingRootContext-Dorsv-jf.js +167 -0
- package/dist/useTimeout-CflX-kz3.js +32 -0
- package/dist/useTransitionStatus-CUfcuGAV.js +42 -0
- package/dist/useTypeahead-D85V2IUx.js +333 -0
- package/dist/useValueAsRef-HURLzret.js +19 -0
- package/dist/useValueChanged-DL757-yD.js +14 -0
- package/dist/valueToPercent-DaP9qN4u.js +6 -0
- package/dist/view.css +1 -0
- package/dist/view.module-DfDLgJE0.js +6 -0
- package/dist/visuallyHidden-CpJ-mhai.js +16 -0
- package/dist/warn-CKtX8MLJ.js +11 -0
- package/package.json +18 -2
- package/.husky/pre-commit +0 -1
- package/.storybook/main.ts +0 -25
- package/.storybook/preview-head.html +0 -6
- package/.storybook/preview.tsx +0 -48
- package/.storybook/vitest.setup.ts +0 -8
- package/eslint.config.mjs +0 -29
- package/lint-staged.config.js +0 -15
- package/pnpm-workspace.yaml +0 -2
- package/postcss.config.mjs +0 -7
- package/prettier.config.mjs +0 -24
- package/scripts/build-icon-types.ts +0 -38
- package/src/-utils.tsx +0 -64
- package/src/components/accordion/accordion.module.css +0 -44
- package/src/components/accordion/accordion.stories.tsx +0 -36
- package/src/components/accordion/index.tsx +0 -67
- package/src/components/alert-dialog/alert-dialog.module.css +0 -5
- package/src/components/alert-dialog/alert-dialog.stories.tsx +0 -53
- package/src/components/alert-dialog/index.tsx +0 -138
- package/src/components/anchor/anchor.module.css +0 -18
- package/src/components/anchor/anchor.stories.tsx +0 -28
- package/src/components/anchor/index.tsx +0 -45
- package/src/components/avatar/avatar.module.css +0 -56
- package/src/components/avatar/avatar.stories.tsx +0 -61
- package/src/components/avatar/index.tsx +0 -82
- package/src/components/badge/badge.module.css +0 -35
- package/src/components/badge/badge.stories.tsx +0 -60
- package/src/components/badge/index.tsx +0 -71
- package/src/components/button/button.module.css +0 -42
- package/src/components/button/button.stories.tsx +0 -108
- package/src/components/button/index.tsx +0 -63
- package/src/components/checkbox/checkbox.module.css +0 -36
- package/src/components/checkbox/checkbox.stories.tsx +0 -21
- package/src/components/checkbox/index.tsx +0 -41
- package/src/components/code/code.module.css +0 -20
- package/src/components/code/code.stories.tsx +0 -42
- package/src/components/code/index.tsx +0 -73
- package/src/components/collapse/collapse.module.css +0 -27
- package/src/components/collapse/collapse.stories.tsx +0 -27
- package/src/components/collapse/index.tsx +0 -59
- package/src/components/command/command.module.css +0 -95
- package/src/components/command/command.stories.tsx +0 -38
- package/src/components/command/index.tsx +0 -108
- package/src/components/context-menu/context-menu.module.css +0 -36
- package/src/components/context-menu/context-menu.stories.tsx +0 -99
- package/src/components/context-menu/index.tsx +0 -242
- package/src/components/dialog/dialog.module.css +0 -71
- package/src/components/dialog/dialog.stories.tsx +0 -29
- package/src/components/dialog/index.tsx +0 -148
- package/src/components/heading/heading.module.css +0 -3
- package/src/components/heading/heading.stories.tsx +0 -52
- package/src/components/heading/index.tsx +0 -112
- package/src/components/icon/icon-names.ts +0 -3189
- package/src/components/icon/icon.module.css +0 -36
- package/src/components/icon/icon.stories.tsx +0 -40
- package/src/components/icon/index.tsx +0 -60
- package/src/components/icon-button/icon-button.module.css +0 -33
- package/src/components/icon-button/icon-button.stories.tsx +0 -59
- package/src/components/icon-button/index.tsx +0 -48
- package/src/components/inline-code/index.tsx +0 -29
- package/src/components/inline-code/inline-code.module.css +0 -13
- package/src/components/inline-code/inline-code.stories.tsx +0 -31
- package/src/components/input/index.tsx +0 -22
- package/src/components/input/input.module.css +0 -23
- package/src/components/input/input.stories.tsx +0 -52
- package/src/components/meter/index.tsx +0 -55
- package/src/components/meter/meter.module.css +0 -23
- package/src/components/meter/meter.stories.tsx +0 -31
- package/src/components/multiline-input/index.tsx +0 -58
- package/src/components/multiline-input/multiline-input.stories.tsx +0 -26
- package/src/components/number-input/index.tsx +0 -74
- package/src/components/number-input/number-input.module.css +0 -41
- package/src/components/number-input/number-input.stories.tsx +0 -24
- package/src/components/password-input/index.tsx +0 -24
- package/src/components/password-input/password-input.module.css +0 -10
- package/src/components/password-input/password-input.stories.tsx +0 -24
- package/src/components/pill/index.tsx +0 -45
- package/src/components/pill/pill.module.css +0 -22
- package/src/components/pill/pill.stories.tsx +0 -83
- package/src/components/popover/index.tsx +0 -94
- package/src/components/popover/popover.module.css +0 -8
- package/src/components/popover/popover.stories.tsx +0 -53
- package/src/components/preview-card/index.tsx +0 -68
- package/src/components/preview-card/preview-card.module.css +0 -5
- package/src/components/preview-card/preview-card.stories.tsx +0 -58
- package/src/components/radio/index.tsx +0 -67
- package/src/components/radio/radio-group.module.css +0 -5
- package/src/components/radio/radio.module.css +0 -36
- package/src/components/radio/radio.stories.tsx +0 -27
- package/src/components/search-bar/index.tsx +0 -60
- package/src/components/search-bar/search-bar.module.css +0 -29
- package/src/components/search-bar/search-bar.stories.tsx +0 -37
- package/src/components/select/index.tsx +0 -132
- package/src/components/select/select.module.css +0 -63
- package/src/components/select/select.stories.tsx +0 -49
- package/src/components/separator/index.tsx +0 -28
- package/src/components/separator/separator.module.css +0 -24
- package/src/components/separator/separator.stories.tsx +0 -40
- package/src/components/slider/index.tsx +0 -28
- package/src/components/slider/slider.module.css +0 -52
- package/src/components/slider/slider.stories.tsx +0 -53
- package/src/components/spinner/index.tsx +0 -14
- package/src/components/spinner/spinner.module.css +0 -13
- package/src/components/spinner/spinner.stories.tsx +0 -17
- package/src/components/stacked-avatars/index.tsx +0 -88
- package/src/components/stacked-avatars/stacked-avatars.module.css +0 -79
- package/src/components/stacked-avatars/stacked-avatars.stories.tsx +0 -48
- package/src/components/status-banner/index.tsx +0 -96
- package/src/components/status-banner/status-banner.module.css +0 -52
- package/src/components/status-banner/status-banner.stories.tsx +0 -44
- package/src/components/surface/index.tsx +0 -83
- package/src/components/surface/surface.module.css +0 -35
- package/src/components/surface/surface.stories.tsx +0 -84
- package/src/components/switch/index.tsx +0 -23
- package/src/components/switch/switch.module.css +0 -45
- package/src/components/switch/switch.stories.tsx +0 -48
- package/src/components/tabs/index.tsx +0 -126
- package/src/components/tabs/tabs.module.css +0 -134
- package/src/components/tabs/tabs.stories.tsx +0 -88
- package/src/components/text/index.tsx +0 -69
- package/src/components/text/text.module.css +0 -76
- package/src/components/text/text.stories.tsx +0 -107
- package/src/components/theme-provider/index.ts +0 -2
- package/src/components/theme-provider/theme-context.tsx +0 -18
- package/src/components/theme-provider/theme-provider.stories.tsx +0 -47
- package/src/components/theme-provider/theme-provider.tsx +0 -77
- package/src/components/timestamp/index.tsx +0 -131
- package/src/components/timestamp/timestamp.module.css +0 -8
- package/src/components/timestamp/timestamp.stories.tsx +0 -37
- package/src/components/toast/index.ts +0 -2
- package/src/components/toast/toast.module.css +0 -163
- package/src/components/toast/toast.stories.tsx +0 -53
- package/src/components/toast/toast.tsx +0 -104
- package/src/components/toast/use-toast-manager.ts +0 -63
- package/src/components/tooltip/index.tsx +0 -61
- package/src/components/tooltip/tooltip-arrow.tsx +0 -17
- package/src/components/tooltip/tooltip.module.css +0 -44
- package/src/components/tooltip/tooltip.stories.tsx +0 -76
- package/src/components/view/index.tsx +0 -137
- package/src/components/view/view.module.css +0 -11
- package/src/components/view/view.stories.tsx +0 -131
- package/src/components/view/view_colorway.module.css +0 -280
- package/src/components/view/view_interactive.module.css +0 -127
- package/src/components/view/view_loading.module.css +0 -58
- package/src/components/visually-hidden/index.ts +0 -1
- package/src/index.ts +0 -49
- package/src/integrations/react-markdown/index.tsx +0 -134
- package/src/integrations/react-markdown/react-markdown.module.css +0 -62
- package/src/integrations/react-markdown/react-markdown.stories.tsx +0 -31
- package/src/integrations/tailwind.css +0 -173
- package/src/integrations/twemoij/index.tsx +0 -13
- package/src/integrations/twemoij/twemoji.module.css +0 -7
- package/src/integrations/twemoij/twemoji.stories.tsx +0 -40
- package/src/stories/components/all-variants.tsx +0 -40
- package/src/stories/data.ts +0 -72
- package/src/stories/utils.ts +0 -20
- package/src/styles/core.css +0 -153
- package/src/styles/themes/dark.css +0 -86
- package/src/styles/themes/light.css +0 -86
- package/src/styles/transitions.module.css +0 -31
- package/stylelint.config.mjs +0 -29
- package/tsconfig.app.json +0 -35
- package/tsconfig.json +0 -7
- package/tsconfig.node.json +0 -26
- package/vite.config.ts +0 -103
- package/vitest.shims.d.ts +0 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { useRender } from '@base-ui/react';
|
|
2
|
+
import { ElementType } from 'react';
|
|
3
|
+
export type InteractiveStyle = "fill" | "no-fill" | "outline" | "fill-outline" | "list-item";
|
|
4
|
+
export type Color = "primary" | "positive" | "negative" | "warning" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "blurple" | "purple" | "magenta" | "pink" | "grey";
|
|
5
|
+
export type ColorStyle = "outline" | "outline-static" | "mute-static" | "fill" | "no-fill" | "fill-static" | "fill-outline";
|
|
6
|
+
export type ColorVariant = `${Color}_${ColorStyle}`;
|
|
7
|
+
export type LoadingVariant = "background" | "foreground";
|
|
8
|
+
export type ViewProps<T extends ElementType = "div"> = Omit<useRender.ComponentProps<T>, "color"> & {
|
|
9
|
+
/**
|
|
10
|
+
* Centralized property to define either an interactive variant or colorway.
|
|
11
|
+
* We know which is which because colorways have an underscore (Color_ColorVariant, like primary_fill).
|
|
12
|
+
*
|
|
13
|
+
* Static variants will not apply transitions or cursor effects! Do not use them for interactive elements.
|
|
14
|
+
*
|
|
15
|
+
* Setting `interactive` to true will use "fill".
|
|
16
|
+
*/
|
|
17
|
+
interactive?: boolean | InteractiveStyle | ColorVariant;
|
|
18
|
+
/**
|
|
19
|
+
* Add CSS color variables but do nothing else.
|
|
20
|
+
* Useful for using View as a sort of "Color Provider" so children can use colors and create custom variants.
|
|
21
|
+
*/
|
|
22
|
+
color?: Color;
|
|
23
|
+
/**
|
|
24
|
+
* Make this element look like it's loading.
|
|
25
|
+
* Setting `loading` to true will use "foreground".
|
|
26
|
+
* It'll use sensible defaults based on the colorway or interactive prop.
|
|
27
|
+
*/
|
|
28
|
+
loading?: boolean | LoadingVariant;
|
|
29
|
+
};
|
|
30
|
+
export declare const View: <T extends ElementType = "div">({ interactive, loading, color, render, ...props }: ViewProps<T>) => import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { c as t } from "../../clsx-OuTLNxxd.js";
|
|
2
|
+
import { s as n } from "../../view.module-DfDLgJE0.js";
|
|
3
|
+
import { u as v } from "../../useRender-CLx7dR_1.js";
|
|
4
|
+
import { m as y } from "../../useRenderElement-DwToLA61.js";
|
|
5
|
+
import '../../index20.css';const g = "_view_colorway_ldhog_1", d = "_view_colorway_static_ldhog_19", s = "_view_colorway_outline_ldhog_27", u = "_view_colorway_fill_ldhog_97", l = {
|
|
6
|
+
view_colorway: g,
|
|
7
|
+
view_colorway_static: d,
|
|
8
|
+
view_colorway_outline: s,
|
|
9
|
+
"view_colorway_outline-static": "_view_colorway_outline-static_ldhog_59",
|
|
10
|
+
"view_colorway_mute-static": "_view_colorway_mute-static_ldhog_66",
|
|
11
|
+
"view_colorway_no-fill": "_view_colorway_no-fill_ldhog_72",
|
|
12
|
+
view_colorway_fill: u,
|
|
13
|
+
"view_colorway_fill-static": "_view_colorway_fill-static_ldhog_122",
|
|
14
|
+
"view_colorway_fill-outline": "_view_colorway_fill-outline_ldhog_128",
|
|
15
|
+
"view_colorway_color-primary": "_view_colorway_color-primary_ldhog_162",
|
|
16
|
+
"view_colorway_color-positive": "_view_colorway_color-positive_ldhog_170",
|
|
17
|
+
"view_colorway_color-negative": "_view_colorway_color-negative_ldhog_178",
|
|
18
|
+
"view_colorway_color-warning": "_view_colorway_color-warning_ldhog_186",
|
|
19
|
+
"view_colorway_color-red": "_view_colorway_color-red_ldhog_194",
|
|
20
|
+
"view_colorway_color-orange": "_view_colorway_color-orange_ldhog_202",
|
|
21
|
+
"view_colorway_color-yellow": "_view_colorway_color-yellow_ldhog_210",
|
|
22
|
+
"view_colorway_color-green": "_view_colorway_color-green_ldhog_218",
|
|
23
|
+
"view_colorway_color-teal": "_view_colorway_color-teal_ldhog_226",
|
|
24
|
+
"view_colorway_color-blue": "_view_colorway_color-blue_ldhog_234",
|
|
25
|
+
"view_colorway_color-blurple": "_view_colorway_color-blurple_ldhog_242",
|
|
26
|
+
"view_colorway_color-purple": "_view_colorway_color-purple_ldhog_250",
|
|
27
|
+
"view_colorway_color-magenta": "_view_colorway_color-magenta_ldhog_258",
|
|
28
|
+
"view_colorway_color-pink": "_view_colorway_color-pink_ldhog_266",
|
|
29
|
+
"view_colorway_color-grey": "_view_colorway_color-grey_ldhog_274"
|
|
30
|
+
}, f = "_view_interactive_1xxqh_1", h = "_view_interactive_fill_1xxqh_29", m = "_view_interactive_outline_1xxqh_68", c = {
|
|
31
|
+
view_interactive: f,
|
|
32
|
+
view_interactive_fill: h,
|
|
33
|
+
"view_interactive_no-fill": "_view_interactive_no-fill_1xxqh_49",
|
|
34
|
+
view_interactive_outline: m,
|
|
35
|
+
"view_interactive_fill-outline": "_view_interactive_fill-outline_1xxqh_88",
|
|
36
|
+
"view_interactive_list-item": "_view_interactive_list-item_1xxqh_109"
|
|
37
|
+
}, x = "_view_loading_1707r_6", b = "_view_loading_foreground_1707r_11", p = "_loading_1707r_1", q = "_view_loading_background_1707r_24", w = {
|
|
38
|
+
view_loading: x,
|
|
39
|
+
view_loading_foreground: b,
|
|
40
|
+
loading: p,
|
|
41
|
+
view_loading_background: q
|
|
42
|
+
}, R = ({
|
|
43
|
+
interactive: o,
|
|
44
|
+
loading: i,
|
|
45
|
+
color: e,
|
|
46
|
+
render: r,
|
|
47
|
+
...a
|
|
48
|
+
}) => {
|
|
49
|
+
const _ = k({ interactive: o, loading: i });
|
|
50
|
+
return v({
|
|
51
|
+
defaultTagName: "div",
|
|
52
|
+
render: r,
|
|
53
|
+
props: y(
|
|
54
|
+
{
|
|
55
|
+
className: t(
|
|
56
|
+
n.view,
|
|
57
|
+
e && l[`view_colorway_color-${e}`],
|
|
58
|
+
_.interactive && [
|
|
59
|
+
c.view_interactive,
|
|
60
|
+
c[`view_interactive_${_.interactive}`]
|
|
61
|
+
],
|
|
62
|
+
_.colorway && [
|
|
63
|
+
_.colorway[1].endsWith("static") ? l.view_colorway_static : l.view_colorway,
|
|
64
|
+
l[`view_colorway_${_.colorway[1]}`],
|
|
65
|
+
l[`view_colorway_color-${_.colorway[0]}`]
|
|
66
|
+
],
|
|
67
|
+
_.loading && [
|
|
68
|
+
w.view_loading,
|
|
69
|
+
w[`view_loading_${_.loading}`]
|
|
70
|
+
]
|
|
71
|
+
)
|
|
72
|
+
},
|
|
73
|
+
a
|
|
74
|
+
)
|
|
75
|
+
});
|
|
76
|
+
}, k = (o) => {
|
|
77
|
+
let i = null, e = null;
|
|
78
|
+
o.interactive && typeof o.interactive == "boolean" ? i = "fill" : typeof o.interactive == "string" && (typeof o.interactive == "string" && o.interactive.includes("_") ? e = o.interactive.split("_") : i = o.interactive);
|
|
79
|
+
let r = null;
|
|
80
|
+
return o.loading && (r = typeof o.loading == "boolean" ? "foreground" : o.loading), { interactive: i, colorway: e, loading: r };
|
|
81
|
+
};
|
|
82
|
+
export {
|
|
83
|
+
R as View
|
|
84
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VisuallyHidden } from '@radix-ui/react-visually-hidden';
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { f as U } from "./formatErrorMessage-BqPuTBN-.js";
|
|
2
|
+
import { f as B } from "./floating-ui.utils-C7pRWMZ_.js";
|
|
3
|
+
import { s as y } from "./event-CKoGyQEJ.js";
|
|
4
|
+
import { A as j, a as z, b as N, c as G } from "./element-CZEOj04G.js";
|
|
5
|
+
function M(r, n, g) {
|
|
6
|
+
return Math.floor(r / n) !== g;
|
|
7
|
+
}
|
|
8
|
+
function L(r, n) {
|
|
9
|
+
return n < 0 || n >= r.current.length;
|
|
10
|
+
}
|
|
11
|
+
function J(r, n) {
|
|
12
|
+
return l(r, {
|
|
13
|
+
disabledIndices: n
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function K(r, n) {
|
|
17
|
+
return l(r, {
|
|
18
|
+
decrement: !0,
|
|
19
|
+
startingIndex: r.current.length,
|
|
20
|
+
disabledIndices: n
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
function l(r, {
|
|
24
|
+
startingIndex: n = -1,
|
|
25
|
+
decrement: g = !1,
|
|
26
|
+
disabledIndices: u,
|
|
27
|
+
amount: c = 1
|
|
28
|
+
} = {}) {
|
|
29
|
+
let t = n;
|
|
30
|
+
do
|
|
31
|
+
t += g ? -c : c;
|
|
32
|
+
while (t >= 0 && t <= r.current.length - 1 && V(r, t, u));
|
|
33
|
+
return t;
|
|
34
|
+
}
|
|
35
|
+
function Q(r, {
|
|
36
|
+
event: n,
|
|
37
|
+
orientation: g,
|
|
38
|
+
loopFocus: u,
|
|
39
|
+
rtl: c,
|
|
40
|
+
cols: t,
|
|
41
|
+
disabledIndices: o,
|
|
42
|
+
minIndex: O,
|
|
43
|
+
maxIndex: m,
|
|
44
|
+
prevIndex: e,
|
|
45
|
+
stopEvent: h = !1
|
|
46
|
+
}) {
|
|
47
|
+
let f = e;
|
|
48
|
+
const w = [], _ = {};
|
|
49
|
+
let k = !1;
|
|
50
|
+
{
|
|
51
|
+
let a = null, s = -1;
|
|
52
|
+
r.current.forEach((E, i) => {
|
|
53
|
+
if (E == null)
|
|
54
|
+
return;
|
|
55
|
+
const C = E.closest('[role="row"]');
|
|
56
|
+
C && (k = !0), (C !== a || s === -1) && (a = C, s += 1, w[s] = []), w[s].push(i), _[i] = s;
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
const P = k && w.length > 0 && w.some((a) => a.length !== t);
|
|
60
|
+
function R(a) {
|
|
61
|
+
if (!P || e === -1)
|
|
62
|
+
return;
|
|
63
|
+
const s = _[e];
|
|
64
|
+
if (s == null)
|
|
65
|
+
return;
|
|
66
|
+
const E = w[s].indexOf(e);
|
|
67
|
+
let i = a === "up" ? s - 1 : s + 1;
|
|
68
|
+
u && (i < 0 ? i = w.length - 1 : i >= w.length && (i = 0));
|
|
69
|
+
const C = /* @__PURE__ */ new Set();
|
|
70
|
+
for (; i >= 0 && i < w.length && !C.has(i); ) {
|
|
71
|
+
C.add(i);
|
|
72
|
+
const A = w[i];
|
|
73
|
+
if (A.length === 0) {
|
|
74
|
+
i = a === "up" ? i - 1 : i + 1;
|
|
75
|
+
continue;
|
|
76
|
+
}
|
|
77
|
+
const T = Math.min(E, A.length - 1);
|
|
78
|
+
for (let D = T; D >= 0; D -= 1) {
|
|
79
|
+
const W = A[D];
|
|
80
|
+
if (!V(r, W, o))
|
|
81
|
+
return W;
|
|
82
|
+
}
|
|
83
|
+
i = a === "up" ? i - 1 : i + 1, u && (i < 0 ? i = w.length - 1 : i >= w.length && (i = 0));
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
if (n.key === j) {
|
|
87
|
+
const a = R("up");
|
|
88
|
+
if (a !== void 0)
|
|
89
|
+
h && y(n), f = a;
|
|
90
|
+
else {
|
|
91
|
+
if (h && y(n), e === -1)
|
|
92
|
+
f = m;
|
|
93
|
+
else if (f = l(r, {
|
|
94
|
+
startingIndex: f,
|
|
95
|
+
amount: t,
|
|
96
|
+
decrement: !0,
|
|
97
|
+
disabledIndices: o
|
|
98
|
+
}), u && (e - t < O || f < 0)) {
|
|
99
|
+
const s = e % t, E = m % t, i = m - (E - s);
|
|
100
|
+
E === s ? f = m : f = E > s ? i : i - t;
|
|
101
|
+
}
|
|
102
|
+
L(r, f) && (f = e);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
if (n.key === z) {
|
|
106
|
+
const a = R("down");
|
|
107
|
+
a !== void 0 ? (h && y(n), f = a) : (h && y(n), e === -1 ? f = O : (f = l(r, {
|
|
108
|
+
startingIndex: e,
|
|
109
|
+
amount: t,
|
|
110
|
+
disabledIndices: o
|
|
111
|
+
}), u && e + t > m && (f = l(r, {
|
|
112
|
+
startingIndex: e % t - t,
|
|
113
|
+
amount: t,
|
|
114
|
+
disabledIndices: o
|
|
115
|
+
}))), L(r, f) && (f = e));
|
|
116
|
+
}
|
|
117
|
+
if (g === "both") {
|
|
118
|
+
const a = B(e / t);
|
|
119
|
+
n.key === (c ? N : G) && (h && y(n), e % t !== t - 1 ? (f = l(r, {
|
|
120
|
+
startingIndex: e,
|
|
121
|
+
disabledIndices: o
|
|
122
|
+
}), u && M(f, t, a) && (f = l(r, {
|
|
123
|
+
startingIndex: e - e % t - 1,
|
|
124
|
+
disabledIndices: o
|
|
125
|
+
}))) : u && (f = l(r, {
|
|
126
|
+
startingIndex: e - e % t - 1,
|
|
127
|
+
disabledIndices: o
|
|
128
|
+
})), M(f, t, a) && (f = e)), n.key === (c ? G : N) && (h && y(n), e % t !== 0 ? (f = l(r, {
|
|
129
|
+
startingIndex: e,
|
|
130
|
+
decrement: !0,
|
|
131
|
+
disabledIndices: o
|
|
132
|
+
}), u && M(f, t, a) && (f = l(r, {
|
|
133
|
+
startingIndex: e + (t - e % t),
|
|
134
|
+
decrement: !0,
|
|
135
|
+
disabledIndices: o
|
|
136
|
+
}))) : u && (f = l(r, {
|
|
137
|
+
startingIndex: e + (t - e % t),
|
|
138
|
+
decrement: !0,
|
|
139
|
+
disabledIndices: o
|
|
140
|
+
})), M(f, t, a) && (f = e));
|
|
141
|
+
const s = B(m / t) === a;
|
|
142
|
+
L(r, f) && (u && s ? f = n.key === (c ? G : N) ? m : l(r, {
|
|
143
|
+
startingIndex: e - e % t - 1,
|
|
144
|
+
disabledIndices: o
|
|
145
|
+
}) : f = e);
|
|
146
|
+
}
|
|
147
|
+
return f;
|
|
148
|
+
}
|
|
149
|
+
function X(r, n, g) {
|
|
150
|
+
const u = [];
|
|
151
|
+
let c = 0;
|
|
152
|
+
return r.forEach(({
|
|
153
|
+
width: t,
|
|
154
|
+
height: o
|
|
155
|
+
}, O) => {
|
|
156
|
+
if (t > n && process.env.NODE_ENV !== "production")
|
|
157
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `[Floating UI]: Invalid grid - item width at index ${O} is greater than grid columns` : U(29, O));
|
|
158
|
+
let m = !1;
|
|
159
|
+
for (g && (c = 0); !m; ) {
|
|
160
|
+
const e = [];
|
|
161
|
+
for (let h = 0; h < t; h += 1)
|
|
162
|
+
for (let f = 0; f < o; f += 1)
|
|
163
|
+
e.push(c + h + f * n);
|
|
164
|
+
c % n + t <= n && e.every((h) => u[h] == null) ? (e.forEach((h) => {
|
|
165
|
+
u[h] = O;
|
|
166
|
+
}), m = !0) : c += 1;
|
|
167
|
+
}
|
|
168
|
+
}), [...u];
|
|
169
|
+
}
|
|
170
|
+
function Y(r, n, g, u, c) {
|
|
171
|
+
if (r === -1)
|
|
172
|
+
return -1;
|
|
173
|
+
const t = g.indexOf(r), o = n[r];
|
|
174
|
+
switch (c) {
|
|
175
|
+
case "tl":
|
|
176
|
+
return t;
|
|
177
|
+
case "tr":
|
|
178
|
+
return o ? t + o.width - 1 : t;
|
|
179
|
+
case "bl":
|
|
180
|
+
return o ? t + (o.height - 1) * u : t;
|
|
181
|
+
case "br":
|
|
182
|
+
return g.lastIndexOf(r);
|
|
183
|
+
default:
|
|
184
|
+
return -1;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
function Z(r, n) {
|
|
188
|
+
return n.flatMap((g, u) => r.includes(g) ? [u] : []);
|
|
189
|
+
}
|
|
190
|
+
function V(r, n, g) {
|
|
191
|
+
if (typeof g == "function")
|
|
192
|
+
return g(n);
|
|
193
|
+
if (g)
|
|
194
|
+
return g.includes(n);
|
|
195
|
+
const u = r.current[n];
|
|
196
|
+
return u ? u.hasAttribute("disabled") || u.getAttribute("aria-disabled") === "true" : !1;
|
|
197
|
+
}
|
|
198
|
+
export {
|
|
199
|
+
K as a,
|
|
200
|
+
V as b,
|
|
201
|
+
X as c,
|
|
202
|
+
Q as d,
|
|
203
|
+
Y as e,
|
|
204
|
+
Z as f,
|
|
205
|
+
J as g,
|
|
206
|
+
l as h,
|
|
207
|
+
L as i
|
|
208
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { i as L } from "./floating-ui.utils.dom-C7FS5id0.js";
|
|
2
|
+
const d = "ArrowUp", h = "ArrowDown", R = "ArrowLeft", T = "ArrowRight", g = "Home", e = "End", E = /* @__PURE__ */ new Set([R, T]), I = /* @__PURE__ */ new Set([R, T, g, e]), P = /* @__PURE__ */ new Set([d, h]), Y = /* @__PURE__ */ new Set([d, h, g, e]), A = /* @__PURE__ */ new Set([...E, ...P]), F = /* @__PURE__ */ new Set([...A, g, e]), N = /* @__PURE__ */ new Set([d, h, R, T, g, e]), O = "Shift", u = "Control", W = "Alt", _ = "Meta", K = /* @__PURE__ */ new Set([O, u, W, _]);
|
|
3
|
+
function w(t) {
|
|
4
|
+
return L(t) && t.tagName === "INPUT";
|
|
5
|
+
}
|
|
6
|
+
function B(t) {
|
|
7
|
+
return !!(w(t) && t.selectionStart != null || L(t) && t.tagName === "TEXTAREA");
|
|
8
|
+
}
|
|
9
|
+
function y(t, s, f, c) {
|
|
10
|
+
if (!t || !s || !s.scrollTo)
|
|
11
|
+
return;
|
|
12
|
+
let r = t.scrollLeft, n = t.scrollTop;
|
|
13
|
+
const S = t.clientWidth < t.scrollWidth, M = t.clientHeight < t.scrollHeight;
|
|
14
|
+
if (S && c !== "vertical") {
|
|
15
|
+
const o = p(t, s, "left"), l = a(t), i = a(s);
|
|
16
|
+
f === "ltr" && (o + s.offsetWidth + i.scrollMarginRight > t.scrollLeft + t.clientWidth - l.scrollPaddingRight ? r = o + s.offsetWidth + i.scrollMarginRight - t.clientWidth + l.scrollPaddingRight : o - i.scrollMarginLeft < t.scrollLeft + l.scrollPaddingLeft && (r = o - i.scrollMarginLeft - l.scrollPaddingLeft)), f === "rtl" && (o - i.scrollMarginRight < t.scrollLeft + l.scrollPaddingLeft ? r = o - i.scrollMarginLeft - l.scrollPaddingLeft : o + s.offsetWidth + i.scrollMarginRight > t.scrollLeft + t.clientWidth - l.scrollPaddingRight && (r = o + s.offsetWidth + i.scrollMarginRight - t.clientWidth + l.scrollPaddingRight));
|
|
17
|
+
}
|
|
18
|
+
if (M && c !== "horizontal") {
|
|
19
|
+
const o = p(t, s, "top"), l = a(t), i = a(s);
|
|
20
|
+
o - i.scrollMarginTop < t.scrollTop + l.scrollPaddingTop ? n = o - i.scrollMarginTop - l.scrollPaddingTop : o + s.offsetHeight + i.scrollMarginBottom > t.scrollTop + t.clientHeight - l.scrollPaddingBottom && (n = o + s.offsetHeight + i.scrollMarginBottom - t.clientHeight + l.scrollPaddingBottom);
|
|
21
|
+
}
|
|
22
|
+
t.scrollTo({
|
|
23
|
+
left: r,
|
|
24
|
+
top: n,
|
|
25
|
+
behavior: "auto"
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
function p(t, s, f) {
|
|
29
|
+
const c = f === "left" ? "offsetLeft" : "offsetTop";
|
|
30
|
+
let r = 0;
|
|
31
|
+
for (; s.offsetParent && (r += s[c], s.offsetParent !== t); )
|
|
32
|
+
s = s.offsetParent;
|
|
33
|
+
return r;
|
|
34
|
+
}
|
|
35
|
+
function a(t) {
|
|
36
|
+
const s = getComputedStyle(t);
|
|
37
|
+
return {
|
|
38
|
+
scrollMarginTop: parseFloat(s.scrollMarginTop) || 0,
|
|
39
|
+
scrollMarginRight: parseFloat(s.scrollMarginRight) || 0,
|
|
40
|
+
scrollMarginBottom: parseFloat(s.scrollMarginBottom) || 0,
|
|
41
|
+
scrollMarginLeft: parseFloat(s.scrollMarginLeft) || 0,
|
|
42
|
+
scrollPaddingTop: parseFloat(s.scrollPaddingTop) || 0,
|
|
43
|
+
scrollPaddingRight: parseFloat(s.scrollPaddingRight) || 0,
|
|
44
|
+
scrollPaddingBottom: parseFloat(s.scrollPaddingBottom) || 0,
|
|
45
|
+
scrollPaddingLeft: parseFloat(s.scrollPaddingLeft) || 0
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
F as A,
|
|
50
|
+
N as C,
|
|
51
|
+
e as E,
|
|
52
|
+
g as H,
|
|
53
|
+
K as M,
|
|
54
|
+
O as S,
|
|
55
|
+
Y as V,
|
|
56
|
+
A as a,
|
|
57
|
+
h as b,
|
|
58
|
+
T as c,
|
|
59
|
+
R as d,
|
|
60
|
+
d as e,
|
|
61
|
+
P as f,
|
|
62
|
+
I as g,
|
|
63
|
+
E as h,
|
|
64
|
+
B as i,
|
|
65
|
+
y as s
|
|
66
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { E as c } from "./useRenderElement-DwToLA61.js";
|
|
2
|
+
const u = "none", p = "trigger-press", g = "trigger-hover", d = "trigger-focus", v = "outside-press", b = "item-press", P = "close-press", m = "track-press", w = "input-change", f = "input-clear", E = "input-blur", k = "input-paste", h = "focus-out", y = "escape-key", C = "list-navigation", O = "keyboard", x = "drag", z = "scrub", A = "cancel-open", B = "sibling-open", D = "disabled", T = "imperative-action", j = "window-resize";
|
|
3
|
+
function q(s, e, a, t) {
|
|
4
|
+
let n = !1, o = !1;
|
|
5
|
+
const r = t ?? c;
|
|
6
|
+
return {
|
|
7
|
+
reason: s,
|
|
8
|
+
event: e ?? new Event("base-ui"),
|
|
9
|
+
cancel() {
|
|
10
|
+
n = !0;
|
|
11
|
+
},
|
|
12
|
+
allowPropagation() {
|
|
13
|
+
o = !0;
|
|
14
|
+
},
|
|
15
|
+
get isCanceled() {
|
|
16
|
+
return n;
|
|
17
|
+
},
|
|
18
|
+
get isPropagationAllowed() {
|
|
19
|
+
return o;
|
|
20
|
+
},
|
|
21
|
+
trigger: a,
|
|
22
|
+
...r
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function F(s, e, a) {
|
|
26
|
+
const t = c;
|
|
27
|
+
return {
|
|
28
|
+
reason: s,
|
|
29
|
+
event: e ?? new Event("base-ui"),
|
|
30
|
+
...t
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
p as a,
|
|
35
|
+
d as b,
|
|
36
|
+
q as c,
|
|
37
|
+
P as d,
|
|
38
|
+
y as e,
|
|
39
|
+
h as f,
|
|
40
|
+
D as g,
|
|
41
|
+
F as h,
|
|
42
|
+
T as i,
|
|
43
|
+
k as j,
|
|
44
|
+
O as k,
|
|
45
|
+
C as l,
|
|
46
|
+
f as m,
|
|
47
|
+
u as n,
|
|
48
|
+
v as o,
|
|
49
|
+
w as p,
|
|
50
|
+
E as q,
|
|
51
|
+
x as r,
|
|
52
|
+
z as s,
|
|
53
|
+
g as t,
|
|
54
|
+
m as u,
|
|
55
|
+
A as v,
|
|
56
|
+
j as w,
|
|
57
|
+
b as x,
|
|
58
|
+
B as y
|
|
59
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const a = typeof navigator < "u", o = e(), n = u(), r = f(), c = typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter:none"), m = (
|
|
2
|
+
// iPads can claim to be MacIntel
|
|
3
|
+
o.platform === "MacIntel" && o.maxTouchPoints > 1 ? !0 : /iP(hone|ad|od)|iOS/.test(o.platform)
|
|
4
|
+
), p = a && /firefox/i.test(r), g = a && /apple/i.test(navigator.vendor), d = a && /android/i.test(n) || /android/i.test(r), l = a && n.toLowerCase().startsWith("mac") && !navigator.maxTouchPoints, v = r.includes("jsdom/");
|
|
5
|
+
function e() {
|
|
6
|
+
if (!a)
|
|
7
|
+
return {
|
|
8
|
+
platform: "",
|
|
9
|
+
maxTouchPoints: -1
|
|
10
|
+
};
|
|
11
|
+
const t = navigator.userAgentData;
|
|
12
|
+
return t?.platform ? {
|
|
13
|
+
platform: t.platform,
|
|
14
|
+
maxTouchPoints: navigator.maxTouchPoints
|
|
15
|
+
} : {
|
|
16
|
+
platform: navigator.platform ?? "",
|
|
17
|
+
maxTouchPoints: navigator.maxTouchPoints ?? -1
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function f() {
|
|
21
|
+
if (!a)
|
|
22
|
+
return "";
|
|
23
|
+
const t = navigator.userAgentData;
|
|
24
|
+
return t && Array.isArray(t.brands) ? t.brands.map(({
|
|
25
|
+
brand: s,
|
|
26
|
+
version: i
|
|
27
|
+
}) => `${s}/${i}`).join(" ") : navigator.userAgent;
|
|
28
|
+
}
|
|
29
|
+
function u() {
|
|
30
|
+
if (!a)
|
|
31
|
+
return "";
|
|
32
|
+
const t = navigator.userAgentData;
|
|
33
|
+
return t?.platform ? t.platform : navigator.platform ?? "";
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
v as a,
|
|
37
|
+
g as b,
|
|
38
|
+
m as c,
|
|
39
|
+
c as d,
|
|
40
|
+
l as e,
|
|
41
|
+
p as f,
|
|
42
|
+
d as i
|
|
43
|
+
};
|
package/dist/dialog.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._dialog__backdrop_1hze7_1{position:fixed;z-index:50;inset:0;background-color:var(--background-overlay)}@supports (-webkit-touch-callout: none){._dialog__backdrop_1hze7_1{position:absolute}}._dialog__popup_1hze7_13{display:block;position:fixed;z-index:51;inset:0;isolation:isolate;padding:var(--space-16);height:100%;overflow:auto}._dialog__popup_centered_1hze7_24{display:flex;place-items:center}@media screen and (min-width:512px){._dialog__popup_centered_1hze7_24{padding:var(--space-32);padding-top:var(--space-64);padding-bottom:var(--space-64)}}._dialog__content_1hze7_35{position:relative;flex-grow:1;flex-shrink:1;gap:var(--space-16);margin:0 auto;outline:none;box-shadow:var(--shadow-2);border:1px solid var(--outline-dimmest);border-radius:var(--border-radius-default);padding:var(--space-16);width:100%;height:auto;overflow:hidden}._dialog__content_width_sm_1hze7_51{max-width:384px}._dialog__content_width_md_1hze7_55{max-width:512px}._dialog__content_width_lg_1hze7_59{max-width:872px}._dialog__header_1hze7_63{gap:var(--space-4)}._dialog__close_1hze7_67{position:absolute;top:var(--space-8);right:var(--space-8)}
|