@koide-labs/ui 0.0.15 → 0.1.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/dist/-utils.d.ts +2 -2
- package/dist/-utils.js +1 -1
- package/dist/{Button-DrPFFzo7.js → Button-BmcVHRRW.js} +2 -2
- package/dist/{CompositeRoot-CVk5a-pR.js → CompositeRoot-CCgh2M64.js} +6 -6
- package/dist/{FloatingPortal-tWyuKRSN.js → FloatingPortal-BQsQhvIr.js} +27 -27
- package/dist/{FloatingPortalLite-DVyq6YhV.js → FloatingPortalLite-_ECdFE7b.js} +1 -1
- package/dist/{InternalBackdrop-jYAiOJ8v.js → InternalBackdrop-BSMKU-hc.js} +13 -13
- package/dist/{LabelableContext-BMvjVwor.js → LabelableContext-Be1u-eFg.js} +2 -2
- package/dist/accordion.css +1 -0
- package/dist/alert-dialog.css +1 -0
- package/dist/anchor.css +1 -0
- package/dist/avatar.css +1 -0
- package/dist/badge.css +1 -0
- package/dist/button.css +1 -0
- package/dist/checkbox.css +1 -0
- package/dist/code.css +1 -0
- package/dist/collapse.css +1 -0
- package/dist/command.css +1 -0
- package/dist/components/accordion/accordion.d.ts +19 -0
- package/dist/components/accordion/accordion.js +701 -0
- package/dist/components/accordion/index.d.ts +1 -12
- package/dist/components/accordion/index.js +2 -697
- package/dist/components/alert-dialog/alert-dialog.d.ts +36 -0
- package/dist/components/alert-dialog/alert-dialog.js +138 -0
- package/dist/components/alert-dialog/index.d.ts +1 -26
- package/dist/components/alert-dialog/index.js +2 -134
- package/dist/components/anchor/anchor.d.ts +12 -0
- package/dist/components/anchor/anchor.js +21 -0
- package/dist/components/anchor/index.d.ts +1 -8
- package/dist/components/anchor/index.js +2 -19
- package/dist/components/avatar/avatar.d.ts +25 -0
- package/dist/components/avatar/avatar.js +161 -0
- package/dist/components/avatar/index.d.ts +1 -21
- package/dist/components/avatar/index.js +2 -159
- package/dist/components/badge/badge.d.ts +20 -0
- package/dist/components/badge/badge.js +42 -0
- package/dist/components/badge/index.d.ts +1 -16
- package/dist/components/badge/index.js +2 -40
- package/dist/components/button/button.d.ts +27 -0
- package/dist/components/button/button.js +47 -0
- package/dist/components/button/index.d.ts +1 -24
- package/dist/components/button/index.js +2 -45
- package/dist/components/checkbox/checkbox.d.ts +13 -0
- package/dist/components/checkbox/checkbox.js +269 -0
- package/dist/components/checkbox/index.d.ts +1 -9
- package/dist/components/checkbox/index.js +2 -267
- package/dist/components/code/code.d.ts +13 -0
- package/dist/components/code/code.js +1206 -0
- package/dist/components/code/index.d.ts +1 -9
- package/dist/components/code/index.js +2 -1204
- package/dist/components/collapse/collapse.d.ts +14 -0
- package/dist/components/collapse/collapse.js +35 -0
- package/dist/components/collapse/index.d.ts +1 -11
- package/dist/components/collapse/index.js +2 -33
- package/dist/components/command/command.d.ts +36 -0
- package/dist/components/command/command.js +1695 -0
- package/dist/components/command/index.d.ts +1 -15
- package/dist/components/command/index.js +2 -1693
- package/dist/components/context-menu/context-menu.d.ts +82 -0
- package/dist/components/context-menu/context-menu.js +1445 -0
- package/dist/components/context-menu/index.d.ts +1 -42
- package/dist/components/context-menu/index.js +2 -1442
- package/dist/components/dialog/dialog.d.ts +22 -0
- package/dist/components/dialog/dialog.js +140 -0
- package/dist/components/dialog/dialog.types.d.ts +38 -0
- package/dist/components/dialog/index.d.ts +1 -48
- package/dist/components/dialog/index.js +2 -136
- package/dist/components/heading/heading.d.ts +25 -0
- package/dist/components/heading/heading.js +36 -0
- package/dist/components/heading/index.d.ts +1 -44
- package/dist/components/heading/index.js +2 -49
- package/dist/components/icon/icon.d.ts +28 -0
- package/dist/components/icon/icon.js +43 -0
- package/dist/components/icon/{icon-names.d.ts → icon.types.d.ts} +4 -0
- package/dist/components/icon/icon.types.js +1 -0
- package/dist/components/icon/index.d.ts +2 -24
- package/dist/components/icon/index.js +2 -41
- package/dist/components/icon-button/icon-button.d.ts +16 -0
- package/dist/components/icon-button/icon-button.js +46 -0
- package/dist/components/icon-button/index.d.ts +1 -12
- package/dist/components/icon-button/index.js +2 -44
- package/dist/components/inline-code/index.d.ts +1 -6
- package/dist/components/inline-code/index.js +2 -20
- package/dist/components/inline-code/inline-code.d.ts +10 -0
- package/dist/components/inline-code/inline-code.js +25 -0
- package/dist/components/input/index.d.ts +1 -3
- package/dist/components/input/index.js +2 -117
- package/dist/components/input/input.d.ts +9 -0
- package/dist/components/input/input.js +126 -0
- package/dist/components/meter/index.d.ts +1 -18
- package/dist/components/meter/index.js +2 -163
- package/dist/components/meter/meter.d.ts +22 -0
- package/dist/components/meter/meter.js +165 -0
- package/dist/components/multiline-input/index.d.ts +1 -6
- package/dist/components/multiline-input/index.js +2 -98
- package/dist/components/multiline-input/multiline-input.d.ts +10 -0
- package/dist/components/multiline-input/multiline-input.js +100 -0
- package/dist/components/number-input/index.d.ts +1 -10
- package/dist/components/number-input/index.js +2 -1167
- package/dist/components/number-input/number-input.d.ts +14 -0
- package/dist/components/number-input/number-input.js +1169 -0
- package/dist/components/password-input/index.d.ts +1 -2
- package/dist/components/password-input/index.js +2 -27
- package/dist/components/password-input/password-input.d.ts +7 -0
- package/dist/components/password-input/password-input.js +29 -0
- package/dist/components/pill/index.d.ts +1 -13
- package/dist/components/pill/index.js +2 -36
- package/dist/components/pill/pill.d.ts +17 -0
- package/dist/components/pill/pill.js +38 -0
- package/dist/components/popover/index.d.ts +1 -21
- package/dist/components/popover/index.js +2 -634
- package/dist/components/popover/popover.d.ts +22 -0
- package/dist/components/popover/popover.js +634 -0
- package/dist/components/preview-card/index.d.ts +1 -17
- package/dist/components/preview-card/index.js +2 -400
- package/dist/components/preview-card/preview-card.d.ts +21 -0
- package/dist/components/preview-card/preview-card.js +402 -0
- package/dist/components/radio-group/index.d.ts +1 -0
- package/dist/components/radio-group/index.js +5 -0
- package/dist/components/radio-group/radio-group.d.ts +25 -0
- package/dist/components/{radio/index.js → radio-group/radio-group.js} +91 -90
- package/dist/components/search-bar/index.d.ts +1 -12
- package/dist/components/search-bar/index.js +2 -46
- package/dist/components/search-bar/search-bar.d.ts +16 -0
- package/dist/components/search-bar/search-bar.js +43 -0
- package/dist/components/select/index.d.ts +1 -16
- package/dist/components/select/index.js +2 -1261
- package/dist/components/select/select.d.ts +22 -0
- package/dist/components/select/select.js +1263 -0
- package/dist/components/separator/index.d.ts +1 -7
- package/dist/components/separator/index.js +2 -4
- package/dist/components/separator/separator.d.ts +10 -0
- package/dist/components/separator/separator.js +6 -0
- package/dist/components/slider/index.d.ts +1 -5
- package/dist/components/slider/index.js +2 -900
- package/dist/components/slider/slider.d.ts +10 -0
- package/dist/components/slider/slider.js +899 -0
- package/dist/components/spinner/index.d.ts +1 -2
- package/dist/components/spinner/index.js +2 -11
- package/dist/components/spinner/spinner.d.ts +7 -0
- package/dist/components/spinner/spinner.js +13 -0
- package/dist/components/stacked-avatars/index.d.ts +1 -14
- package/dist/components/stacked-avatars/index.js +2 -90
- package/dist/components/stacked-avatars/stacked-avatars.d.ts +18 -0
- package/dist/components/stacked-avatars/stacked-avatars.js +92 -0
- package/dist/components/status-banner/index.d.ts +1 -17
- package/dist/components/status-banner/index.js +2 -69
- package/dist/components/status-banner/status-banner.d.ts +22 -0
- package/dist/components/status-banner/status-banner.js +71 -0
- package/dist/components/surface/index.d.ts +2 -27
- package/dist/components/surface/index.js +2 -39
- package/dist/components/surface/surface.d.ts +26 -0
- package/dist/components/surface/surface.js +36 -0
- package/dist/components/surface/surface.types.d.ts +1 -0
- package/dist/components/surface/surface.types.js +1 -0
- package/dist/components/switch/index.d.ts +1 -5
- package/dist/components/switch/index.js +2 -194
- package/dist/components/switch/switch.d.ts +10 -0
- package/dist/components/switch/switch.js +193 -0
- package/dist/components/tabs/index.d.ts +1 -18
- package/dist/components/tabs/index.js +2 -507
- package/dist/components/tabs/tabs.d.ts +28 -0
- package/dist/components/tabs/tabs.js +511 -0
- package/dist/components/text/index.d.ts +1 -26
- package/dist/components/text/index.js +2 -46
- package/dist/components/text/text.d.ts +29 -0
- package/dist/components/text/text.js +48 -0
- package/dist/components/theme-provider/index.d.ts +1 -1
- package/dist/components/theme-provider/theme-provider.d.ts +8 -4
- package/dist/components/theme-provider/theme-provider.js +3 -3
- package/dist/components/timestamp/index.d.ts +1 -23
- package/dist/components/timestamp/index.js +2 -1390
- package/dist/components/timestamp/timestamp.d.ts +26 -0
- package/dist/components/timestamp/timestamp.js +1391 -0
- package/dist/components/toaster/index.d.ts +2 -0
- package/dist/components/toaster/index.js +7 -0
- package/dist/components/toaster/toaster.d.ts +7 -0
- package/dist/components/toaster/toaster.js +923 -0
- package/dist/components/{toast → toaster}/use-toast-manager.d.ts +3 -3
- package/dist/components/tooltip/index.d.ts +1 -14
- package/dist/components/tooltip/index.js +2 -710
- package/dist/components/tooltip/tooltip.d.ts +24 -0
- package/dist/components/tooltip/tooltip.js +9 -0
- package/dist/components/view/index.d.ts +2 -30
- package/dist/components/view/index.js +2 -79
- package/dist/components/view/view.d.ts +31 -0
- package/dist/components/view/view.js +83 -0
- package/dist/components/view/view.types.d.ts +5 -0
- package/dist/components/view/view.types.js +1 -0
- package/dist/components/visually-hidden/index.d.ts +5 -1
- package/dist/{composite-Bx7Szd_T.js → composite-BZzP-LlG.js} +3 -3
- package/dist/{composite-C9L5QmZL.js → composite-BwEK5cWH.js} +1 -1
- package/dist/context-menu.css +1 -0
- package/dist/{createBaseUIEventDetails-D8M2Yl-a.js → createBaseUIEventDetails-CCSfZ2vM.js} +7 -7
- package/dist/{detectBrowser-I-s3yzIE.js → detectBrowser-Bl8Ki_1I.js} +2 -2
- package/dist/dialog.css +1 -1
- package/dist/{dialog.module-BeF-6XAo.js → dialog.module-DsbQRp-d.js} +55 -55
- package/dist/{element-CZEOj04G.js → element-u5WgOZX1.js} +7 -7
- package/dist/{event-CKoGyQEJ.js → event-B89-Ng5h.js} +4 -4
- package/dist/{floating-ui.utils-C7pRWMZ_.js → floating-ui.utils-DUVaIF3G.js} +7 -7
- package/dist/{floating-ui.utils.dom-C7FS5id0.js → floating-ui.utils.dom-cbi420Pg.js} +4 -4
- package/dist/{getDisabledMountTransitionStyles-YfHPge6T.js → getDisabledMountTransitionStyles-E2x-_lte.js} +7 -7
- package/dist/heading.css +1 -0
- package/dist/icon-button.css +1 -0
- package/dist/icon.css +1 -0
- package/dist/index.d.ts +10 -10
- package/dist/index.js +86 -104
- package/dist/{inertValue-BCYGsdmf.js → inertValue-BTpPjX30.js} +1 -1
- package/dist/inline-code.css +1 -0
- package/dist/input.css +1 -1
- package/dist/input.module-CtE19OH8.js +8 -0
- package/dist/integrations/react-markdown/index.js +12 -12
- package/dist/meter.css +1 -0
- package/dist/number-input.css +1 -0
- package/dist/password-input.css +1 -0
- package/dist/pill.css +1 -0
- package/dist/popover.css +1 -0
- package/dist/preview-card.css +1 -0
- package/dist/radio-group.css +1 -0
- package/dist/safePolygon-DnkzOIur.js +558 -0
- package/dist/search-bar.css +1 -0
- package/dist/select.css +1 -0
- package/dist/{index-DVjyPAD4.js → separator-fh_wDZNf.js} +7 -11
- package/dist/separator.css +1 -0
- package/dist/slider.css +1 -0
- package/dist/spinner.css +1 -0
- package/dist/stacked-avatars.css +1 -0
- package/dist/status-banner.css +1 -0
- package/dist/styles/core.css +1 -1
- package/dist/surface.css +1 -0
- package/dist/switch.css +1 -0
- package/dist/tabs.css +1 -0
- package/dist/text.css +1 -0
- package/dist/timestamp.css +1 -0
- package/dist/toaster.css +1 -0
- package/dist/tooltip-oCp-elli.js +765 -0
- package/dist/tooltip.css +1 -0
- package/dist/transitions.css +1 -1
- package/dist/{transitions.module-CWX8e5cx.js → transitions.module-D9mMAtfI.js} +11 -11
- package/dist/{useAnimationFrame-451ugS_6.js → useAnimationFrame-DvK1s63A.js} +1 -1
- package/dist/{useButton-DfIwsdb8.js → useButton-d3_JgBNr.js} +3 -3
- package/dist/{useCompositeListItem-OkcAim_1.js → useCompositeListItem-CZp9WTnF.js} +2 -2
- package/dist/{useLabelableId-Ci_jDvmv.js → useLabelableId-CX4tcfzK.js} +3 -3
- package/dist/{useOpenChangeComplete-Dse9kY9E.js → useOpenChangeComplete-BHd-N7Ig.js} +5 -5
- package/dist/{useRender-CLx7dR_1.js → useRender-C3vlzS3t.js} +1 -1
- package/dist/{useRenderElement-DwToLA61.js → useRenderElement-DngNDu_P.js} +2 -2
- package/dist/{useRole-oDBdbuwQ.js → useRole-BD3OL1rr.js} +3 -3
- package/dist/{useStableCallback-CkTrVkNX.js → useStableCallback-DKZHlUAT.js} +1 -1
- package/dist/{useSyncedFloatingRootContext-Dorsv-jf.js → useSyncedFloatingRootContext-BB1vwkV-.js} +20 -20
- package/dist/{useTimeout-CflX-kz3.js → useTimeout-BNni6aw5.js} +1 -1
- package/dist/{useTransitionStatus-CUfcuGAV.js → useTransitionStatus-CmMyUh74.js} +1 -1
- package/dist/{useTypeahead-D85V2IUx.js → useTypeahead-BiL5IAVb.js} +11 -11
- package/dist/{useValueAsRef-HURLzret.js → useValueAsRef-B4EriRsI.js} +1 -1
- package/dist/{useValueChanged-DL757-yD.js → useValueChanged-MJRmEWz1.js} +1 -1
- package/dist/view.css +1 -1
- package/dist/view.module-Dj7wj0kk.js +6 -0
- package/dist/view2.css +1 -0
- package/package.json +1 -1
- package/dist/components/radio/index.d.ts +0 -13
- package/dist/components/toast/index.d.ts +0 -2
- package/dist/components/toast/index.js +0 -8
- package/dist/components/toast/toast.d.ts +0 -2
- package/dist/components/toast/toast.js +0 -921
- package/dist/components/tooltip/tooltip-arrow.d.ts +0 -3
- package/dist/components/tooltip/tooltip-arrow.js +0 -6
- package/dist/index10.css +0 -1
- package/dist/index11.css +0 -1
- package/dist/index12.css +0 -1
- package/dist/index13.css +0 -1
- package/dist/index14.css +0 -1
- package/dist/index15.css +0 -1
- package/dist/index16.css +0 -1
- package/dist/index17.css +0 -1
- package/dist/index18.css +0 -1
- package/dist/index19.css +0 -1
- package/dist/index20.css +0 -1
- package/dist/index21.css +0 -1
- package/dist/index22.css +0 -1
- package/dist/index23.css +0 -1
- package/dist/index24.css +0 -1
- package/dist/index25.css +0 -1
- package/dist/index26.css +0 -1
- package/dist/index27.css +0 -1
- package/dist/index28.css +0 -1
- package/dist/index29.css +0 -1
- package/dist/index3.css +0 -1
- package/dist/index30.css +0 -1
- package/dist/index31.css +0 -1
- package/dist/index32.css +0 -1
- package/dist/index33.css +0 -1
- package/dist/index34.css +0 -1
- package/dist/index35.css +0 -1
- package/dist/index36.css +0 -1
- package/dist/index37.css +0 -1
- package/dist/index4.css +0 -1
- package/dist/index5.css +0 -1
- package/dist/index6.css +0 -1
- package/dist/index7.css +0 -1
- package/dist/index8.css +0 -1
- package/dist/index9.css +0 -1
- package/dist/input.module-DDQY_Ij6.js +0 -7
- package/dist/safePolygon-DWy1dGKJ.js +0 -308
- package/dist/toast.css +0 -1
- package/dist/tooltip-arrow-cs6vjjqZ.js +0 -24
- package/dist/tooltip-arrow.css +0 -1
- package/dist/useHoverReferenceInteraction-SfOBPoXM.js +0 -264
- package/dist/usePopupAutoResize-CNR6Ekmx.js +0 -85
- package/dist/view.module-DfDLgJE0.js +0 -6
- /package/dist/components/{icon/icon-names.js → dialog/dialog.types.js} +0 -0
- /package/dist/components/{toast → toaster}/use-toast-manager.js +0 -0
package/dist/tooltip.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer base{._tooltip_1v2fg_2{z-index:49;box-shadow:var(--shadow-1);border:1px solid var(--outline-dimmer);border-radius:var(--border-radius-default);background-color:var(--surface-background);padding:var(--space-4) var(--space-8)}._tooltip__arrow_1v2fg_11[data-instant]{transition:none}._tooltip__arrow_1v2fg_11[data-side=top]{bottom:-4px}._tooltip__arrow_1v2fg_11[data-side=bottom]{top:-4px;rotate:180deg}._tooltip__arrow_1v2fg_11[data-side=left]{right:-7px;rotate:-90deg}._tooltip__arrow_1v2fg_11[data-side=right]{left:-7px;rotate:90deg}._tooltip__arrow-icon_1v2fg_36{display:block;position:relative;fill:var(--surface-background)!important;stroke:var(--outline-dimmer);stroke-dasharray:0 30 22 0 22;stroke-linejoin:round;stroke-width:2;border-top:1px solid var(--surface-background)}}
|
package/dist/transitions.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
@layer utilities{._transition_opacity_1ca7i_2{transition:opacity var(--transition-duration-snappy) var(--transition-timing-function-snappy)}._transition_opacity_1ca7i_2[data-starting-style],._transition_opacity_1ca7i_2[data-ending-style]{opacity:0}._transition_fade-out_1ca7i_12[data-ending-style]{opacity:0;transition:opacity var(--transition-duration-snappy) var(--transition-timing-function-snappy)}._transition_scale_1ca7i_20{transition:opacity var(--transition-duration-snappy) var(--transition-timing-function-snappy),transform var(--transition-duration-snappy) var(--transition-timing-function-snappy)}._transition_scale_1ca7i_20[data-starting-style],._transition_scale_1ca7i_20[data-ending-style]{transform:scale(.96);opacity:0}}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as v from "react";
|
|
2
2
|
import se from "react";
|
|
3
|
-
import { a as z, o as de, n as lt, i as ft,
|
|
4
|
-
import { u as Ie, T as ht } from "./useTimeout-
|
|
5
|
-
import { u as L } from "./useStableCallback-
|
|
3
|
+
import { a as z, o as de, n as lt, i as ft, f as dt, h as pe, l as pt } from "./floating-ui.utils.dom-cbi420Pg.js";
|
|
4
|
+
import { u as Ie, T as ht } from "./useTimeout-BNni6aw5.js";
|
|
5
|
+
import { u as L } from "./useStableCallback-DKZHlUAT.js";
|
|
6
6
|
import { u as mt } from "./useId-C5kyn6tA.js";
|
|
7
7
|
import { u as q } from "./useIsoLayoutEffect-CIDbvm3Q.js";
|
|
8
|
-
import { a as Et, i as gt, N as yt } from "./useRenderElement-
|
|
8
|
+
import { a as Et, i as gt, N as yt } from "./useRenderElement-DngNDu_P.js";
|
|
9
9
|
import { jsx as ze } from "react/jsx-runtime";
|
|
10
|
-
import { c as U, e as St, o as vt, a as Me, n as Ot } from "./createBaseUIEventDetails-
|
|
11
|
-
import { c as _t } from "./FloatingPortal-
|
|
12
|
-
import { d as Rt, c as bt } from "./event-
|
|
13
|
-
import {
|
|
10
|
+
import { c as U, e as St, o as vt, a as Me, n as Ot } from "./createBaseUIEventDetails-CCSfZ2vM.js";
|
|
11
|
+
import { c as _t } from "./FloatingPortal-BQsQhvIr.js";
|
|
12
|
+
import { d as Rt, c as bt } from "./event-B89-Ng5h.js";
|
|
13
|
+
import { h as B, e as De, f as Q, k as Tt, l as k, F as Ct, n as Be, S as Ge } from "./element-u5WgOZX1.js";
|
|
14
14
|
import { f as Ue } from "./formatErrorMessage-BqPuTBN-.js";
|
|
15
|
-
import { T as xe } from "./useOpenChangeComplete-
|
|
15
|
+
import { T as xe } from "./useOpenChangeComplete-BHd-N7Ig.js";
|
|
16
16
|
import './transitions.css';function re(n, t, e = !0) {
|
|
17
17
|
return n.filter((o) => o.parentId === t && (!e || o.context?.open)).flatMap((o) => [o, ...re(n, o.id, e)]);
|
|
18
18
|
}
|
|
@@ -1313,9 +1313,9 @@ const an = {
|
|
|
1313
1313
|
anchorHidden(n) {
|
|
1314
1314
|
return n ? pn : null;
|
|
1315
1315
|
}
|
|
1316
|
-
}, hn = "
|
|
1316
|
+
}, hn = "_transition_opacity_1ca7i_2", mn = "_transition_scale_1ca7i_20", Wn = {
|
|
1317
1317
|
transition_opacity: hn,
|
|
1318
|
-
"transition_fade-out": "_transition_fade-
|
|
1318
|
+
"transition_fade-out": "_transition_fade-out_1ca7i_12",
|
|
1319
1319
|
transition_scale: mn
|
|
1320
1320
|
};
|
|
1321
1321
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as u from "react";
|
|
2
|
-
import { i as I } from "./floating-ui.utils.dom-
|
|
3
|
-
import { u as D } from "./useStableCallback-
|
|
2
|
+
import { i as I } from "./floating-ui.utils.dom-cbi420Pg.js";
|
|
3
|
+
import { u as D } from "./useStableCallback-DKZHlUAT.js";
|
|
4
4
|
import { u as K } from "./useIsoLayoutEffect-CIDbvm3Q.js";
|
|
5
5
|
import { f as R } from "./formatErrorMessage-BqPuTBN-.js";
|
|
6
|
-
import { m as T,
|
|
6
|
+
import { m as T, c as C } from "./useRenderElement-DngNDu_P.js";
|
|
7
7
|
let b;
|
|
8
8
|
process.env.NODE_ENV !== "production" && (b = /* @__PURE__ */ new Set());
|
|
9
9
|
function E(...r) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as o from "react";
|
|
2
|
-
import { a as L } from "./useRenderElement-
|
|
3
|
-
import { u as R } from "./useStableCallback-
|
|
2
|
+
import { a as L } from "./useRenderElement-DngNDu_P.js";
|
|
3
|
+
import { u as R } from "./useStableCallback-DKZHlUAT.js";
|
|
4
4
|
import { u as x } from "./useIsoLayoutEffect-CIDbvm3Q.js";
|
|
5
5
|
import { jsx as T } from "react/jsx-runtime";
|
|
6
6
|
const b = /* @__PURE__ */ o.createContext({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { u } from "./useIsoLayoutEffect-CIDbvm3Q.js";
|
|
2
|
-
import { a as f } from "./floating-ui.utils.dom-
|
|
2
|
+
import { a as f } from "./floating-ui.utils.dom-cbi420Pg.js";
|
|
3
3
|
import { u as a } from "./useBaseUiId-B7WyxtIE.js";
|
|
4
|
-
import { u as m } from "./LabelableContext-
|
|
5
|
-
import { N as c } from "./useRenderElement-
|
|
4
|
+
import { u as m } from "./LabelableContext-Be1u-eFg.js";
|
|
5
|
+
import { N as c } from "./useRenderElement-DngNDu_P.js";
|
|
6
6
|
function x(i = {}) {
|
|
7
7
|
const {
|
|
8
8
|
id: e,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as m from "react";
|
|
2
|
-
import { u as f } from "./useStableCallback-
|
|
3
|
-
import { u as p } from "./useValueAsRef-
|
|
2
|
+
import { u as f } from "./useStableCallback-DKZHlUAT.js";
|
|
3
|
+
import { u as p } from "./useValueAsRef-B4EriRsI.js";
|
|
4
4
|
import * as l from "react-dom";
|
|
5
|
-
import { u as g } from "./useAnimationFrame-
|
|
5
|
+
import { u as g } from "./useAnimationFrame-DvK1s63A.js";
|
|
6
6
|
function d(n) {
|
|
7
7
|
return n == null ? n : "current" in n ? n.current : n;
|
|
8
8
|
}
|
|
@@ -54,8 +54,8 @@ function N(n) {
|
|
|
54
54
|
}
|
|
55
55
|
export {
|
|
56
56
|
c as T,
|
|
57
|
-
|
|
57
|
+
S as a,
|
|
58
58
|
d as r,
|
|
59
59
|
I as t,
|
|
60
|
-
|
|
60
|
+
N as u
|
|
61
61
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as r from "react";
|
|
2
2
|
import { u as P } from "./useId-C5kyn6tA.js";
|
|
3
|
-
import { u as S } from "./transitions.module-
|
|
4
|
-
import { E as F } from "./useRenderElement-
|
|
5
|
-
import { g as y } from "./element-
|
|
3
|
+
import { u as S } from "./transitions.module-D9mMAtfI.js";
|
|
4
|
+
import { E as F } from "./useRenderElement-DngNDu_P.js";
|
|
5
|
+
import { g as y } from "./element-u5WgOZX1.js";
|
|
6
6
|
const T = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
|
|
7
7
|
function k(c, I = {}) {
|
|
8
8
|
const a = "rootStore" in c ? c.rootStore : c, l = a.useState("open"), u = a.useState("floatingId"), x = a.useState("domReferenceElement"), d = a.useState("floatingElement"), {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as a from "react";
|
|
2
|
-
import { a as c } from "./useRenderElement-
|
|
2
|
+
import { a as c } from "./useRenderElement-DngNDu_P.js";
|
|
3
3
|
const n = a[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0, -3)], r = (
|
|
4
4
|
// React 17 doesn't have useInsertionEffect.
|
|
5
5
|
n && // Preact replaces useInsertionEffect with useLayoutEffect and fires too late.
|
package/dist/{useSyncedFloatingRootContext-Dorsv-jf.js → useSyncedFloatingRootContext-BB1vwkV-.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as d from "react";
|
|
2
|
-
import { u as T } from "./useStableCallback-
|
|
2
|
+
import { u as T } from "./useStableCallback-DKZHlUAT.js";
|
|
3
3
|
import { u as m } from "./useIsoLayoutEffect-CIDbvm3Q.js";
|
|
4
|
-
import { u as S } from "./useTransitionStatus-
|
|
5
|
-
import {
|
|
6
|
-
import { F as E, P as x, c as o, u as I } from "./transitions.module-
|
|
7
|
-
import { E as c, a as O } from "./useRenderElement-
|
|
4
|
+
import { u as S } from "./useTransitionStatus-CmMyUh74.js";
|
|
5
|
+
import { u as C } from "./useOpenChangeComplete-BHd-N7Ig.js";
|
|
6
|
+
import { F as E, P as x, c as o, u as I } from "./transitions.module-D9mMAtfI.js";
|
|
7
|
+
import { E as c, a as O } from "./useRenderElement-DngNDu_P.js";
|
|
8
8
|
import { u as P } from "./useId-C5kyn6tA.js";
|
|
9
|
-
import { a as R } from "./floating-ui.utils.dom-
|
|
9
|
+
import { a as R } from "./floating-ui.utils.dom-cbi420Pg.js";
|
|
10
10
|
function y(e, t) {
|
|
11
11
|
const n = d.useRef(null);
|
|
12
12
|
return d.useCallback((i) => {
|
|
@@ -14,8 +14,8 @@ function y(e, t) {
|
|
|
14
14
|
}, [t, e]);
|
|
15
15
|
}
|
|
16
16
|
function j(e, t, n, i) {
|
|
17
|
-
const r = n.useState("isMountedByTrigger", e),
|
|
18
|
-
|
|
17
|
+
const r = n.useState("isMountedByTrigger", e), u = y(e, n), l = T((a) => {
|
|
18
|
+
u(a), a !== null && n.select("open") && n.select("activeTriggerId") == null && n.update({
|
|
19
19
|
activeTriggerId: e,
|
|
20
20
|
activeTriggerElement: a,
|
|
21
21
|
...i
|
|
@@ -27,7 +27,7 @@ function j(e, t, n, i) {
|
|
|
27
27
|
...i
|
|
28
28
|
});
|
|
29
29
|
}, [r, n, t, ...Object.values(i)]), {
|
|
30
|
-
registerTrigger:
|
|
30
|
+
registerTrigger: l,
|
|
31
31
|
isMountedByThisTrigger: r
|
|
32
32
|
};
|
|
33
33
|
}
|
|
@@ -50,13 +50,13 @@ function D(e, t, n) {
|
|
|
50
50
|
const {
|
|
51
51
|
mounted: i,
|
|
52
52
|
setMounted: r,
|
|
53
|
-
transitionStatus:
|
|
53
|
+
transitionStatus: u
|
|
54
54
|
} = S(e);
|
|
55
55
|
t.useSyncedValues({
|
|
56
56
|
mounted: i,
|
|
57
|
-
transitionStatus:
|
|
57
|
+
transitionStatus: u
|
|
58
58
|
});
|
|
59
|
-
const
|
|
59
|
+
const l = T(() => {
|
|
60
60
|
r(!1), t.update({
|
|
61
61
|
activeTriggerId: null,
|
|
62
62
|
activeTriggerElement: null,
|
|
@@ -68,11 +68,11 @@ function D(e, t, n) {
|
|
|
68
68
|
open: e,
|
|
69
69
|
ref: t.context.popupRef,
|
|
70
70
|
onComplete() {
|
|
71
|
-
e ||
|
|
71
|
+
e || l();
|
|
72
72
|
}
|
|
73
73
|
}), {
|
|
74
|
-
forceUnmount:
|
|
75
|
-
transitionStatus:
|
|
74
|
+
forceUnmount: l,
|
|
75
|
+
transitionStatus: u
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
function b() {
|
|
@@ -136,25 +136,25 @@ function N(e) {
|
|
|
136
136
|
noEmit: n = !1,
|
|
137
137
|
treatPopupAsFloatingElement: i = !1,
|
|
138
138
|
onOpenChange: r
|
|
139
|
-
} = e,
|
|
139
|
+
} = e, u = P(), l = I() != null, a = t.useState("open"), g = t.useState("activeTriggerElement"), p = t.useState(i ? "popupElement" : "positionerElement"), v = t.context.triggerElements, s = O(() => new E({
|
|
140
140
|
open: a,
|
|
141
141
|
referenceElement: g,
|
|
142
142
|
floatingElement: p,
|
|
143
143
|
triggerElements: v,
|
|
144
144
|
onOpenChange: r,
|
|
145
|
-
floatingId:
|
|
146
|
-
nested:
|
|
145
|
+
floatingId: u,
|
|
146
|
+
nested: l,
|
|
147
147
|
noEmit: n
|
|
148
148
|
})).current;
|
|
149
149
|
return m(() => {
|
|
150
150
|
const f = {
|
|
151
151
|
open: a,
|
|
152
|
-
floatingId:
|
|
152
|
+
floatingId: u,
|
|
153
153
|
referenceElement: g,
|
|
154
154
|
floatingElement: p
|
|
155
155
|
};
|
|
156
156
|
R(g) && (f.domReferenceElement = g), s.update(f);
|
|
157
|
-
}, [a,
|
|
157
|
+
}, [a, u, g, p, s]), s.context.onOpenChange = r, s.context.nested = l, s.context.noEmit = n, s;
|
|
158
158
|
}
|
|
159
159
|
export {
|
|
160
160
|
D as a,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as a from "react";
|
|
2
2
|
import { u as c } from "./useIsoLayoutEffect-CIDbvm3Q.js";
|
|
3
|
-
import { A as u } from "./useAnimationFrame-
|
|
3
|
+
import { A as u } from "./useAnimationFrame-DvK1s63A.js";
|
|
4
4
|
function g(t, s = !1, f = !1) {
|
|
5
5
|
const [n, r] = a.useState(t && s ? "idle" : void 0), [i, d] = a.useState(t);
|
|
6
6
|
return t && !i && (d(!0), r("starting")), !t && i && n !== "ending" && !f && r("ending"), !t && !i && n === "ending" && r(void 0), c(() => {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as a from "react";
|
|
2
|
-
import { i as Pe } from "./floating-ui.utils.dom-
|
|
3
|
-
import { u as H } from "./useValueAsRef-
|
|
4
|
-
import { u as Q } from "./useStableCallback-
|
|
2
|
+
import { i as Pe } from "./floating-ui.utils.dom-cbi420Pg.js";
|
|
3
|
+
import { u as H } from "./useValueAsRef-B4EriRsI.js";
|
|
4
|
+
import { u as Q } from "./useStableCallback-DKZHlUAT.js";
|
|
5
5
|
import { u as F } from "./useIsoLayoutEffect-CIDbvm3Q.js";
|
|
6
|
-
import { u as ve, a as Ge } from "./transitions.module-
|
|
7
|
-
import { c as le, l as xe, f as _e } from "./createBaseUIEventDetails-
|
|
8
|
-
import { e as We } from "./InternalBackdrop-
|
|
9
|
-
import { g as qe, i as He,
|
|
10
|
-
import { i as Fe, g as Oe, a as De, c as $e, b as we, d as Be, e as je, f as Je, h as fe } from "./composite-
|
|
11
|
-
import { s as S,
|
|
12
|
-
import { u as Ze } from "./useTimeout-
|
|
13
|
-
import { b as er } from "./useRenderElement-
|
|
6
|
+
import { u as ve, a as Ge } from "./transitions.module-D9mMAtfI.js";
|
|
7
|
+
import { c as le, l as xe, f as _e } from "./createBaseUIEventDetails-CCSfZ2vM.js";
|
|
8
|
+
import { e as We } from "./InternalBackdrop-BSMKU-hc.js";
|
|
9
|
+
import { g as qe, i as He, d as Ke, e as Ue, f as Ae, a as me, b as X, c as Z, h as Ye, A as Ne } from "./element-u5WgOZX1.js";
|
|
10
|
+
import { i as Fe, g as Oe, a as De, c as $e, b as we, d as Be, e as je, f as Je, h as fe } from "./composite-BZzP-LlG.js";
|
|
11
|
+
import { s as S, i as Qe, a as Xe } from "./event-B89-Ng5h.js";
|
|
12
|
+
import { u as Ze } from "./useTimeout-BNni6aw5.js";
|
|
13
|
+
import { b as er } from "./useRenderElement-DngNDu_P.js";
|
|
14
14
|
const rr = "Escape";
|
|
15
15
|
function pe(n, h, i) {
|
|
16
16
|
switch (n) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as n from "react";
|
|
2
2
|
import { u as o } from "./useIsoLayoutEffect-CIDbvm3Q.js";
|
|
3
|
-
import { u as s } from "./useStableCallback-
|
|
3
|
+
import { u as s } from "./useStableCallback-DKZHlUAT.js";
|
|
4
4
|
function f(r, a) {
|
|
5
5
|
const t = n.useRef(r), e = s(a);
|
|
6
6
|
o(() => {
|
package/dist/view.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
@layer base{._view_15889_2{display:flex;position:relative;flex-shrink:0;flex-basis:auto;flex-direction:column;align-items:stretch;box-sizing:border-box;outline:none;border-style:solid}}
|
package/dist/view2.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer base{._view_colorway_ms6zs_2{--view-loading-low-pulse: var(--view-colorway-dimmest);--view-loading-high-pulse: transparent;transition-duration:var(--transition-duration-snappy);transition-timing-function:var(--transition-timing-function-snappy);cursor:not-allowed;border-width:1px;border-style:solid;border-color:transparent;border-radius:var(--border-radius-default)}._view_colorway_ms6zs_2:not([disabled],[data-disabled]){cursor:pointer}._view_colorway_static_ms6zs_20{border-width:1px;border-style:solid;border-color:transparent;border-radius:var(--border-radius-default)}._view_colorway_outline_ms6zs_28{transition-property:color,background-color,box-shadow;border-color:var(--view-colorway-dimmer);background-color:transparent;color:var(--view-colorway-dimmer)}._view_colorway_outline_ms6zs_28:not([disabled],[data-disabled]){color:var(--view-colorway-stronger)}._view_colorway_outline_ms6zs_28:not([disabled],[data-disabled]):active{transition:none;border-color:var(--view-colorway-stronger)!important}._view_colorway_outline_ms6zs_28:not([disabled],[data-disabled]):focus{box-shadow:0 0 0 2px var(--view-colorway-strongest)}._view_colorway_outline_ms6zs_28:not([disabled],[data-disabled]):focus:not(:focus-visible){box-shadow:none}@media(hover:hover){._view_colorway_outline_ms6zs_28:not([disabled],[data-disabled]):hover{border-color:var(--view-colorway-default);background-color:var(--view-colorway-dimmer);color:var(--view-colorway-strongest)}}._view_colorway_outline-static_ms6zs_60{box-shadow:none;border-color:var(--view-colorway-dimmer);background-color:transparent;color:var(--view-colorway-stronger)}._view_colorway_mute-static_ms6zs_67{box-shadow:none;background-color:var(--view-colorway-dimmest);color:var(--view-colorway-strongest)}._view_colorway_no-fill_ms6zs_73{transition-property:color,background-color,box-shadow;background-color:transparent;color:var(--view-colorway-dimmer)}._view_colorway_no-fill_ms6zs_73:not([disabled],[data-disabled]){color:var(--view-colorway-stronger)}._view_colorway_no-fill_ms6zs_73:not([disabled],[data-disabled]):focus{box-shadow:0 0 0 2px var(--view-colorway-strongest)}._view_colorway_no-fill_ms6zs_73:not([disabled],[data-disabled]):focus:not(:focus-visible){box-shadow:none}@media(hover:hover){._view_colorway_no-fill_ms6zs_73:not([disabled],[data-disabled]):hover{background-color:var(--view-colorway-dimmer);color:var(--view-colorway-strongest)}}._view_colorway_fill_ms6zs_98{transition-property:background-color,box-shadow;background-color:var(--view-colorway-dimmest);color:var(--view-colorway-default)}._view_colorway_fill_ms6zs_98:not([disabled],[data-disabled]){background-color:var(--view-colorway-dimmer);color:var(--view-colorway-strongest)}._view_colorway_fill_ms6zs_98:not([disabled],[data-disabled]):focus{box-shadow:0 0 0 2px var(--view-colorway-stronger)}._view_colorway_fill_ms6zs_98:not([disabled],[data-disabled]):focus:not(:focus-visible){box-shadow:none}@media(hover:hover){._view_colorway_fill_ms6zs_98:not([disabled],[data-disabled]):hover{background-color:var(--view-colorway-default)}}._view_colorway_fill-static_ms6zs_123{box-shadow:none;background-color:var(--view-colorway-dimmer);color:var(--view-colorway-strongest)}._view_colorway_fill-outline_ms6zs_129{transition-property:background-color,box-shadow;box-shadow:none;border-color:var(--view-colorway-dimmer);background-color:var(--view-colorway-dimmest);color:var(--view-colorway-default)}._view_colorway_fill-outline_ms6zs_129:not([disabled],[data-disabled]){border-color:var(--view-colorway-dimmer);background-color:var(--view-colorway-dimmest);color:var(--view-colorway-strongest)}._view_colorway_fill-outline_ms6zs_129:not([disabled],[data-disabled]):active{transition:none;border-color:var(--view-colorway-stronger)!important}._view_colorway_fill-outline_ms6zs_129:not([disabled],[data-disabled]):focus{box-shadow:0 0 0 2px var(--view-colorway-stronger)}._view_colorway_fill-outline_ms6zs_129:not([disabled],[data-disabled]):focus:not(:focus-visible){box-shadow:none}@media(hover:hover){._view_colorway_fill-outline_ms6zs_129:not([disabled],[data-disabled]):hover{border-color:var(--view-colorway-default)}}._view_colorway_color-primary_ms6zs_163{--view-colorway-dimmest: var(--primary-dimmest);--view-colorway-dimmer: var(--primary-dimmer);--view-colorway-default: var(--primary-default);--view-colorway-stronger: var(--primary-stronger);--view-colorway-strongest: var(--primary-strongest)}._view_colorway_color-positive_ms6zs_171{--view-colorway-dimmest: var(--positive-dimmest);--view-colorway-dimmer: var(--positive-dimmer);--view-colorway-default: var(--positive-default);--view-colorway-stronger: var(--positive-stronger);--view-colorway-strongest: var(--positive-strongest)}._view_colorway_color-negative_ms6zs_179{--view-colorway-dimmest: var(--negative-dimmest);--view-colorway-dimmer: var(--negative-dimmer);--view-colorway-default: var(--negative-default);--view-colorway-stronger: var(--negative-stronger);--view-colorway-strongest: var(--negative-strongest)}._view_colorway_color-warning_ms6zs_187{--view-colorway-dimmest: var(--warning-dimmest);--view-colorway-dimmer: var(--warning-dimmer);--view-colorway-default: var(--warning-default);--view-colorway-stronger: var(--warning-stronger);--view-colorway-strongest: var(--warning-strongest)}._view_colorway_color-red_ms6zs_195{--view-colorway-dimmest: var(--red-dimmest);--view-colorway-dimmer: var(--red-dimmer);--view-colorway-default: var(--red-default);--view-colorway-stronger: var(--red-stronger);--view-colorway-strongest: var(--red-strongest)}._view_colorway_color-orange_ms6zs_203{--view-colorway-dimmest: var(--orange-dimmest);--view-colorway-dimmer: var(--orange-dimmer);--view-colorway-default: var(--orange-default);--view-colorway-stronger: var(--orange-stronger);--view-colorway-strongest: var(--orange-strongest)}._view_colorway_color-yellow_ms6zs_211{--view-colorway-dimmest: var(--yellow-dimmest);--view-colorway-dimmer: var(--yellow-dimmer);--view-colorway-default: var(--yellow-default);--view-colorway-stronger: var(--yellow-stronger);--view-colorway-strongest: var(--yellow-strongest)}._view_colorway_color-green_ms6zs_219{--view-colorway-dimmest: var(--green-dimmest);--view-colorway-dimmer: var(--green-dimmer);--view-colorway-default: var(--green-default);--view-colorway-stronger: var(--green-stronger);--view-colorway-strongest: var(--green-strongest)}._view_colorway_color-teal_ms6zs_227{--view-colorway-dimmest: var(--teal-dimmest);--view-colorway-dimmer: var(--teal-dimmer);--view-colorway-default: var(--teal-default);--view-colorway-stronger: var(--teal-stronger);--view-colorway-strongest: var(--teal-strongest)}._view_colorway_color-blue_ms6zs_235{--view-colorway-dimmest: var(--blue-dimmest);--view-colorway-dimmer: var(--blue-dimmer);--view-colorway-default: var(--blue-default);--view-colorway-stronger: var(--blue-stronger);--view-colorway-strongest: var(--blue-strongest)}._view_colorway_color-blurple_ms6zs_243{--view-colorway-dimmest: var(--blurple-dimmest);--view-colorway-dimmer: var(--blurple-dimmer);--view-colorway-default: var(--blurple-default);--view-colorway-stronger: var(--blurple-stronger);--view-colorway-strongest: var(--blurple-strongest)}._view_colorway_color-purple_ms6zs_251{--view-colorway-dimmest: var(--purple-dimmest);--view-colorway-dimmer: var(--purple-dimmer);--view-colorway-default: var(--purple-default);--view-colorway-stronger: var(--purple-stronger);--view-colorway-strongest: var(--purple-strongest)}._view_colorway_color-magenta_ms6zs_259{--view-colorway-dimmest: var(--magenta-dimmest);--view-colorway-dimmer: var(--magenta-dimmer);--view-colorway-default: var(--magenta-default);--view-colorway-stronger: var(--magenta-stronger);--view-colorway-strongest: var(--magenta-strongest)}._view_colorway_color-pink_ms6zs_267{--view-colorway-dimmest: var(--pink-dimmest);--view-colorway-dimmer: var(--pink-dimmer);--view-colorway-default: var(--pink-default);--view-colorway-stronger: var(--pink-stronger);--view-colorway-strongest: var(--pink-strongest)}._view_colorway_color-grey_ms6zs_275{--view-colorway-dimmest: var(--grey-dimmest);--view-colorway-dimmer: var(--grey-dimmer);--view-colorway-default: var(--grey-default);--view-colorway-stronger: var(--grey-stronger);--view-colorway-strongest: var(--grey-strongest)}}@layer base{._view_interactive_1dhgl_2{--view-loading-low-pulse: var(--outline-dimmest);--view-loading-high-pulse: var(--surface-interactive-background);transition-duration:var(--transition-duration-snappy);transition-timing-function:var(--transition-timing-function-snappy);cursor:not-allowed;border-width:1px;border-style:solid;border-color:transparent;border-radius:var(--border-radius-default);background-color:transparent;color:var(--foreground-dimmest)}._view_interactive_1dhgl_2:not([disabled],[data-disabled]){cursor:pointer}._view_interactive_1dhgl_2:not([disabled],[data-disabled]):focus:focus-visible{outline-color:transparent;outline-width:var(--space-2);outline-offset:var(--space-4);box-shadow:var(--shadow-focus)}._view_interactive_fill_1dhgl_30{transition-property:background-color,box-shadow;background-color:var(--surface-interactive-background)}._view_interactive_fill_1dhgl_30:not([disabled],[data-disabled]){color:inherit}._view_interactive_fill_1dhgl_30:not([disabled],[data-disabled]):active{border-color:var(--primary-default);background-color:var(--surface-interactive-background-active)}@media(hover:hover){._view_interactive_fill_1dhgl_30:not([disabled],[data-disabled]):hover{background-color:var(--surface-interactive-background-active)}}._view_interactive_no-fill_1dhgl_50{transition-property:background-color,box-shadow}._view_interactive_no-fill_1dhgl_50:not([disabled],[data-disabled]){color:inherit}._view_interactive_no-fill_1dhgl_50:not([disabled],[data-disabled]):not(textarea):active{border-color:var(--primary-default);background-color:var(--surface-interactive-background)}@media(hover:hover){._view_interactive_no-fill_1dhgl_50:not([disabled],[data-disabled]):hover{background-color:var(--surface-interactive-background)}}._view_interactive_outline_1dhgl_69{transition-property:background-color,box-shadow;border-color:var(--surface-interactive-border)}._view_interactive_outline_1dhgl_69:not([disabled],[data-disabled]){color:inherit}._view_interactive_outline_1dhgl_69:not([disabled],[data-disabled]):not(textarea):active{border-color:var(--primary-default)}@media(hover:hover){._view_interactive_outline_1dhgl_69:not([disabled],[data-disabled]):hover{background-color:var(--surface-interactive-background)}}._view_interactive_fill-outline_1dhgl_89{transition-property:box-shadow;background-color:var(--surface-interactive-background)}._view_interactive_fill-outline_1dhgl_89:not([disabled],[data-disabled]){border-color:var(--surface-interactive-border);color:inherit}._view_interactive_fill-outline_1dhgl_89:not([disabled],[data-disabled]):not(textarea):active{transition:none;border-color:var(--primary-default)}@media(hover:hover){._view_interactive_fill-outline_1dhgl_89:not([disabled],[data-disabled]):hover{border-color:var(--surface-interactive-border-hover)}}._view_interactive_list-item_1dhgl_110{transition-property:box-shadow;border-radius:0}._view_interactive_list-item_1dhgl_110:not([disabled],[data-disabled]){color:inherit}._view_interactive_list-item_1dhgl_110:not([disabled],[data-disabled]):not(textarea):active{border-color:var(--primary-default);background-color:var(--surface-interactive-background-active)}@media(hover:hover){._view_interactive_list-item_1dhgl_110:not([disabled],[data-disabled]):hover{background-color:var(--surface-interactive-background)}}}@layer components{._view_loading_p1qhr_7{position:relative;color:var(--foreground-dimmest)}._view_loading_foreground_p1qhr_12{animation:_loading_p1qhr_1 2s linear infinite;background:linear-gradient(90deg,var(--view-loading-low-pulse),var(--view-loading-high-pulse),var(--view-loading-low-pulse),var(--view-loading-high-pulse));background-position-x:0%;background-size:300% 100%}._view_loading_background_p1qhr_25{overflow:hidden}._view_loading_background_p1qhr_25:after{display:block;position:absolute;top:0;left:0;opacity:.5;animation:_loading_p1qhr_1 2s linear infinite;background:linear-gradient(90deg,var(--view-loading-low-pulse),var(--view-loading-high-pulse),var(--view-loading-low-pulse),var(--view-loading-high-pulse));background-position-x:0%;background-size:300% 100%;width:100%;height:100%;pointer-events:none;content:""}@keyframes _loading_p1qhr_1{0%{background-position-x:100%}to{background-position-x:0%}}}
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Radio as RadioPrimitive } from '@base-ui/react/radio';
|
|
2
|
-
import { RadioGroup as RadioGroupPrimitive } from '@base-ui/react/radio-group';
|
|
3
|
-
import { Color } from '../view';
|
|
4
|
-
export declare function RadioGroup({ color, className, ...props }: RadioGroupPrimitive.Props & {
|
|
5
|
-
/** Optional color for child radio elements. Defaults to "primary". */
|
|
6
|
-
color?: Color;
|
|
7
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export declare function Radio({ color, label, className, ...props }: RadioPrimitive.Root.Props & {
|
|
9
|
-
/** Optional label. If one is provided, we wrap radio in a label element. Otherwise, we just return a standard radio. */
|
|
10
|
-
label?: string;
|
|
11
|
-
/** Optional color. Defaults to the radio group color, often primary. */
|
|
12
|
-
color?: Color;
|
|
13
|
-
}): import("react/jsx-runtime").JSX.Element;
|