@koide-labs/ui 0.0.15 → 0.1.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/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
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import { jsxs as ne, jsx as p } from "react/jsx-runtime";
|
|
3
2
|
import { c as ue } from "../../clsx-OuTLNxxd.js";
|
|
4
3
|
import * as o from "react";
|
|
5
4
|
import { createContext as Ee, useContext as Ne } from "react";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { u as
|
|
9
|
-
import { E as ce, b as de, u as re, N as F, c as fe, m as ke } from "../../useRenderElement-DwToLA61.js";
|
|
10
|
-
import { u as G } from "../../useStableCallback-CkTrVkNX.js";
|
|
5
|
+
import { u as Ve } from "../../useControlled-Du4sJyMj.js";
|
|
6
|
+
import { E as ce, b as de, u as re, N as F, d as fe, m as Pe } from "../../useRenderElement-DngNDu_P.js";
|
|
7
|
+
import { u as w } from "../../useStableCallback-DKZHlUAT.js";
|
|
11
8
|
import { v as pe } from "../../visuallyHidden-CpJ-mhai.js";
|
|
12
9
|
import { u as me } from "../../useBaseUiId-B7WyxtIE.js";
|
|
13
|
-
import { S as
|
|
14
|
-
import { u as
|
|
15
|
-
import { f as Ce, a as he, u as Re, c as
|
|
16
|
-
import { f as
|
|
17
|
-
import { u as Ge } from "../../useValueChanged-
|
|
18
|
-
import { f as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { u as
|
|
22
|
-
import {
|
|
23
|
-
import { u as
|
|
24
|
-
import {
|
|
25
|
-
import { u as
|
|
26
|
-
import
|
|
10
|
+
import { S as Ie } from "../../composite-BwEK5cWH.js";
|
|
11
|
+
import { u as ke, A as Oe, C as Me } from "../../CompositeRoot-CCgh2M64.js";
|
|
12
|
+
import { f as Ce, a as he, u as Re, c as Fe, b as Te } from "../../LabelableContext-Be1u-eFg.js";
|
|
13
|
+
import { f as ye } from "../../formatErrorMessage-BqPuTBN-.js";
|
|
14
|
+
import { u as Ge } from "../../useValueChanged-MJRmEWz1.js";
|
|
15
|
+
import { f as Se } from "../../element-u5WgOZX1.js";
|
|
16
|
+
import { View as we } from "../view/view.js";
|
|
17
|
+
import { Text as qe } from "../text/text.js";
|
|
18
|
+
import { t as De, u as Be } from "../../useOpenChangeComplete-BHd-N7Ig.js";
|
|
19
|
+
import { u as Ke } from "../../useTransitionStatus-CmMyUh74.js";
|
|
20
|
+
import { u as Le } from "../../useIsoLayoutEffect-CIDbvm3Q.js";
|
|
21
|
+
import { c as Ue, n as Ye } from "../../createBaseUIEventDetails-CCSfZ2vM.js";
|
|
22
|
+
import { u as je } from "../../FieldItemContext-DAvk99to.js";
|
|
23
|
+
import { u as ze } from "../../useLabelableId-CX4tcfzK.js";
|
|
24
|
+
import { u as He } from "../../useButton-d3_JgBNr.js";
|
|
25
|
+
import '../../radio-group.css';function Je(e) {
|
|
27
26
|
const {
|
|
28
27
|
render: n,
|
|
29
28
|
className: u,
|
|
@@ -33,31 +32,31 @@ import '../../index28.css';function Je(e) {
|
|
|
33
32
|
metadata: r,
|
|
34
33
|
stateAttributesMapping: a,
|
|
35
34
|
tag: s = "div",
|
|
36
|
-
...
|
|
35
|
+
...y
|
|
37
36
|
} = e, {
|
|
38
37
|
compositeProps: b,
|
|
39
38
|
compositeRef: _
|
|
40
|
-
} =
|
|
39
|
+
} = ke({
|
|
41
40
|
metadata: r
|
|
42
41
|
});
|
|
43
42
|
return re(s, e, {
|
|
44
43
|
state: h,
|
|
45
44
|
ref: [...m, _],
|
|
46
|
-
props: [b, ...R,
|
|
45
|
+
props: [b, ...R, y],
|
|
47
46
|
stateAttributesMapping: a
|
|
48
47
|
});
|
|
49
48
|
}
|
|
50
|
-
const
|
|
49
|
+
const ge = /* @__PURE__ */ o.createContext({
|
|
51
50
|
legendId: void 0,
|
|
52
51
|
setLegendId: () => {
|
|
53
52
|
},
|
|
54
53
|
disabled: void 0
|
|
55
54
|
});
|
|
56
|
-
process.env.NODE_ENV !== "production" && (
|
|
55
|
+
process.env.NODE_ENV !== "production" && (ge.displayName = "FieldsetRootContext");
|
|
57
56
|
function We(e = !1) {
|
|
58
|
-
const n = o.useContext(
|
|
57
|
+
const n = o.useContext(ge);
|
|
59
58
|
if (!n && !e)
|
|
60
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: FieldsetRootContext is missing. Fieldset parts must be placed within <Fieldset.Root>." :
|
|
59
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: FieldsetRootContext is missing. Fieldset parts must be placed within <Fieldset.Root>." : ye(86));
|
|
61
60
|
return n;
|
|
62
61
|
}
|
|
63
62
|
let le = /* @__PURE__ */ (function(e) {
|
|
@@ -94,7 +93,7 @@ process.env.NODE_ENV !== "production" && (se.displayName = "RadioRootContext");
|
|
|
94
93
|
function Ae() {
|
|
95
94
|
const e = o.useContext(se);
|
|
96
95
|
if (e === void 0)
|
|
97
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: RadioRootContext is missing. Radio parts must be placed within <Radio.Root>." :
|
|
96
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: RadioRootContext is missing. Radio parts must be placed within <Radio.Root>." : ye(52));
|
|
98
97
|
return e;
|
|
99
98
|
}
|
|
100
99
|
const be = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
@@ -105,7 +104,7 @@ const be = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
|
105
104
|
readOnly: r = !1,
|
|
106
105
|
required: a = !1,
|
|
107
106
|
value: s,
|
|
108
|
-
inputRef:
|
|
107
|
+
inputRef: y,
|
|
109
108
|
nativeButton: b = !1,
|
|
110
109
|
id: _,
|
|
111
110
|
...E
|
|
@@ -114,7 +113,7 @@ const be = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
|
114
113
|
readOnly: V,
|
|
115
114
|
required: q,
|
|
116
115
|
checkedValue: T,
|
|
117
|
-
setCheckedValue:
|
|
116
|
+
setCheckedValue: G,
|
|
118
117
|
touched: H,
|
|
119
118
|
setTouched: J,
|
|
120
119
|
validation: W,
|
|
@@ -124,16 +123,16 @@ const be = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
|
124
123
|
validityData: D,
|
|
125
124
|
setTouched: B,
|
|
126
125
|
setFilled: I,
|
|
127
|
-
state:
|
|
126
|
+
state: K,
|
|
128
127
|
disabled: $
|
|
129
|
-
} = he(), A =
|
|
130
|
-
labelId:
|
|
128
|
+
} = he(), A = je(), {
|
|
129
|
+
labelId: g,
|
|
131
130
|
getDescriptionProps: v
|
|
132
|
-
} = Re(), i = $ || A.disabled || N || m, t = V || r, x = q || a, c = T === s, k = o.useRef(null), C = o.useRef(null), S = fe(
|
|
133
|
-
|
|
131
|
+
} = Re(), i = $ || A.disabled || N || m, t = V || r, x = q || a, c = T === s, k = o.useRef(null), C = o.useRef(null), S = fe(y, C);
|
|
132
|
+
Le(() => {
|
|
134
133
|
C.current?.checked && I(!0);
|
|
135
134
|
}, [I]);
|
|
136
|
-
const
|
|
135
|
+
const L = me(), O = ze({
|
|
137
136
|
id: _,
|
|
138
137
|
implicit: !1,
|
|
139
138
|
controlRef: k
|
|
@@ -143,9 +142,9 @@ const be = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
|
143
142
|
"aria-required": x || void 0,
|
|
144
143
|
"aria-disabled": i || void 0,
|
|
145
144
|
"aria-readonly": t || void 0,
|
|
146
|
-
"aria-labelledby":
|
|
147
|
-
[
|
|
148
|
-
id:
|
|
145
|
+
"aria-labelledby": g,
|
|
146
|
+
[Oe]: c ? "" : void 0,
|
|
147
|
+
id: L,
|
|
149
148
|
disabled: i,
|
|
150
149
|
onKeyDown(f) {
|
|
151
150
|
f.key === "Enter" && f.preventDefault();
|
|
@@ -158,7 +157,7 @@ const be = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
|
158
157
|
}
|
|
159
158
|
}, {
|
|
160
159
|
getButtonProps: X,
|
|
161
|
-
buttonRef:
|
|
160
|
+
buttonRef: U
|
|
162
161
|
} = He({
|
|
163
162
|
disabled: i,
|
|
164
163
|
native: b
|
|
@@ -176,36 +175,36 @@ const be = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
|
176
175
|
onChange(f) {
|
|
177
176
|
if (f.nativeEvent.defaultPrevented || i || t || s === void 0)
|
|
178
177
|
return;
|
|
179
|
-
const ie =
|
|
180
|
-
ie.isCanceled || (B(!0), l(s !== D.initialValue), I(!0),
|
|
178
|
+
const ie = Ue(Ye, f.nativeEvent);
|
|
179
|
+
ie.isCanceled || (B(!0), l(s !== D.initialValue), I(!0), G(s, ie));
|
|
181
180
|
},
|
|
182
181
|
onFocus() {
|
|
183
182
|
k.current?.focus();
|
|
184
183
|
}
|
|
185
|
-
}), [c, i, O, S, t, x,
|
|
186
|
-
...
|
|
184
|
+
}), [c, i, O, S, t, x, G, l, B, I, D.initialValue, s]), M = o.useMemo(() => ({
|
|
185
|
+
...K,
|
|
187
186
|
required: x,
|
|
188
187
|
disabled: i,
|
|
189
188
|
readOnly: t,
|
|
190
189
|
checked: c
|
|
191
|
-
}), [
|
|
192
|
-
enabled: !
|
|
190
|
+
}), [K, i, t, c, x]), ee = o.useMemo(() => M, [M]), Y = G !== F, j = [u, P, k, U], d = [Q, v, W?.getValidationProps ?? ce, E, X], z = re("span", n, {
|
|
191
|
+
enabled: !Y,
|
|
193
192
|
state: M,
|
|
194
|
-
ref:
|
|
193
|
+
ref: j,
|
|
195
194
|
props: d,
|
|
196
195
|
stateAttributesMapping: oe
|
|
197
196
|
});
|
|
198
197
|
return /* @__PURE__ */ ne(se.Provider, {
|
|
199
198
|
value: ee,
|
|
200
|
-
children: [
|
|
199
|
+
children: [Y ? /* @__PURE__ */ p(Je, {
|
|
201
200
|
tag: "span",
|
|
202
201
|
render: h,
|
|
203
202
|
className: R,
|
|
204
203
|
state: M,
|
|
205
|
-
refs:
|
|
204
|
+
refs: j,
|
|
206
205
|
props: d,
|
|
207
206
|
stateAttributesMapping: oe
|
|
208
|
-
}) :
|
|
207
|
+
}) : z, /* @__PURE__ */ p("input", {
|
|
209
208
|
...Z
|
|
210
209
|
})]
|
|
211
210
|
});
|
|
@@ -218,12 +217,12 @@ const _e = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
|
218
217
|
keepMounted: m = !1,
|
|
219
218
|
...r
|
|
220
219
|
} = n, a = Ae(), s = a.checked, {
|
|
221
|
-
transitionStatus:
|
|
220
|
+
transitionStatus: y,
|
|
222
221
|
setMounted: b
|
|
223
|
-
} =
|
|
222
|
+
} = Ke(s), _ = o.useMemo(() => ({
|
|
224
223
|
...a,
|
|
225
|
-
transitionStatus:
|
|
226
|
-
}), [a,
|
|
224
|
+
transitionStatus: y
|
|
225
|
+
}), [a, y]), E = o.useRef(null), N = m || s, V = re("span", n, {
|
|
227
226
|
enabled: N,
|
|
228
227
|
ref: [u, E],
|
|
229
228
|
state: _,
|
|
@@ -239,7 +238,7 @@ const _e = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
|
239
238
|
}), N ? V : null;
|
|
240
239
|
});
|
|
241
240
|
process.env.NODE_ENV !== "production" && (_e.displayName = "RadioIndicator");
|
|
242
|
-
const Qe = [
|
|
241
|
+
const Qe = [Ie], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
243
242
|
const {
|
|
244
243
|
render: h,
|
|
245
244
|
className: R,
|
|
@@ -247,7 +246,7 @@ const Qe = [Oe], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
|
247
246
|
readOnly: r,
|
|
248
247
|
required: a,
|
|
249
248
|
onValueChange: s,
|
|
250
|
-
value:
|
|
249
|
+
value: y,
|
|
251
250
|
defaultValue: b,
|
|
252
251
|
name: _,
|
|
253
252
|
inputRef: E,
|
|
@@ -256,7 +255,7 @@ const Qe = [Oe], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
|
256
255
|
} = n, {
|
|
257
256
|
setTouched: q,
|
|
258
257
|
setFocused: T,
|
|
259
|
-
shouldValidateOnChange:
|
|
258
|
+
shouldValidateOnChange: G,
|
|
260
259
|
validationMode: H,
|
|
261
260
|
name: J,
|
|
262
261
|
disabled: W,
|
|
@@ -266,20 +265,20 @@ const Qe = [Oe], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
|
266
265
|
setFilled: B,
|
|
267
266
|
validityData: I
|
|
268
267
|
} = he(), {
|
|
269
|
-
labelId:
|
|
268
|
+
labelId: K
|
|
270
269
|
} = Re(), {
|
|
271
270
|
clearErrors: $
|
|
272
|
-
} =
|
|
273
|
-
controlled:
|
|
271
|
+
} = Fe(), A = We(!0), g = W || m, v = J ?? _, i = me(N), [t, x] = Ve({
|
|
272
|
+
controlled: y,
|
|
274
273
|
default: b,
|
|
275
274
|
name: "RadioGroup",
|
|
276
275
|
state: "value"
|
|
277
|
-
}), c =
|
|
278
|
-
c(d,
|
|
279
|
-
}), C = o.useRef(null), S =
|
|
276
|
+
}), c = w(s), k = w((d, z) => {
|
|
277
|
+
c(d, z), !z.isCanceled && x(d);
|
|
278
|
+
}), C = o.useRef(null), S = w((d) => {
|
|
280
279
|
C.current == null && d != null && (C.current = d);
|
|
281
280
|
});
|
|
282
|
-
|
|
281
|
+
Te({
|
|
283
282
|
id: i,
|
|
284
283
|
commit: l.commit,
|
|
285
284
|
value: t,
|
|
@@ -287,18 +286,18 @@ const Qe = [Oe], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
|
287
286
|
name: v,
|
|
288
287
|
getValue: () => t ?? null
|
|
289
288
|
}), Ge(t, () => {
|
|
290
|
-
$(v), D(t !== I.initialValue), B(t != null),
|
|
289
|
+
$(v), D(t !== I.initialValue), B(t != null), G() ? l.commit(t) : l.commit(t, !0);
|
|
291
290
|
});
|
|
292
|
-
const [
|
|
293
|
-
|
|
294
|
-
}), X =
|
|
291
|
+
const [L, O] = o.useState(!1), Q = w((d) => {
|
|
292
|
+
Se(d.currentTarget, d.relatedTarget) || (q(!0), T(!1), H === "onBlur" && l.commit(t));
|
|
293
|
+
}), X = w((d) => {
|
|
295
294
|
d.key.startsWith("Arrow") && (q(!0), O(!0), T(!0));
|
|
296
|
-
}),
|
|
297
|
-
value:
|
|
295
|
+
}), U = o.useMemo(() => t == null ? "" : typeof t == "string" ? t : JSON.stringify(t), [t]), Z = fe(l.inputRef, E), M = Pe({
|
|
296
|
+
value: U,
|
|
298
297
|
ref: Z,
|
|
299
298
|
id: i,
|
|
300
|
-
name:
|
|
301
|
-
disabled:
|
|
299
|
+
name: U ? v : void 0,
|
|
300
|
+
disabled: g,
|
|
302
301
|
readOnly: r,
|
|
303
302
|
required: a,
|
|
304
303
|
"aria-labelledby": V["aria-labelledby"] ?? A?.legendId,
|
|
@@ -312,13 +311,13 @@ const Qe = [Oe], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
|
312
311
|
}
|
|
313
312
|
}, l.getInputValidationProps), ee = o.useMemo(() => ({
|
|
314
313
|
...P,
|
|
315
|
-
disabled:
|
|
314
|
+
disabled: g ?? !1,
|
|
316
315
|
required: a ?? !1,
|
|
317
316
|
readOnly: r ?? !1
|
|
318
|
-
}), [P,
|
|
317
|
+
}), [P, g, r, a]), Y = o.useMemo(() => ({
|
|
319
318
|
...P,
|
|
320
319
|
checkedValue: t,
|
|
321
|
-
disabled:
|
|
320
|
+
disabled: g,
|
|
322
321
|
validation: l,
|
|
323
322
|
name: v,
|
|
324
323
|
onValueChange: c,
|
|
@@ -327,13 +326,13 @@ const Qe = [Oe], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
|
327
326
|
required: a,
|
|
328
327
|
setCheckedValue: k,
|
|
329
328
|
setTouched: O,
|
|
330
|
-
touched:
|
|
331
|
-
}), [t,
|
|
329
|
+
touched: L
|
|
330
|
+
}), [t, g, l, P, v, c, r, S, a, k, O, L]), j = {
|
|
332
331
|
role: "radiogroup",
|
|
333
332
|
"aria-required": a || void 0,
|
|
334
|
-
"aria-disabled":
|
|
333
|
+
"aria-disabled": g || void 0,
|
|
335
334
|
"aria-readonly": r || void 0,
|
|
336
|
-
"aria-labelledby":
|
|
335
|
+
"aria-labelledby": K,
|
|
337
336
|
onFocus() {
|
|
338
337
|
T(!0);
|
|
339
338
|
},
|
|
@@ -341,12 +340,12 @@ const Qe = [Oe], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
|
341
340
|
onKeyDownCapture: X
|
|
342
341
|
};
|
|
343
342
|
return /* @__PURE__ */ ne(ae.Provider, {
|
|
344
|
-
value:
|
|
345
|
-
children: [/* @__PURE__ */ p(
|
|
343
|
+
value: Y,
|
|
344
|
+
children: [/* @__PURE__ */ p(Me, {
|
|
346
345
|
render: h,
|
|
347
346
|
className: R,
|
|
348
347
|
state: ee,
|
|
349
|
-
props: [
|
|
348
|
+
props: [j, l.getValidationProps, V],
|
|
350
349
|
refs: [u],
|
|
351
350
|
stateAttributesMapping: Ce,
|
|
352
351
|
enableHomeAndEndKeys: !1,
|
|
@@ -358,13 +357,13 @@ const Qe = [Oe], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
|
|
|
358
357
|
});
|
|
359
358
|
process.env.NODE_ENV !== "production" && (ve.displayName = "RadioGroup");
|
|
360
359
|
const Xe = {
|
|
361
|
-
"radio-group": "_radio-
|
|
362
|
-
}, Ze = "
|
|
360
|
+
"radio-group": "_radio-group_7ez6e_2"
|
|
361
|
+
}, Ze = "_radio_1fs52_2", et = "_radio__indicator_1fs52_9", tt = "_radio__label_1fs52_32", te = {
|
|
363
362
|
radio: Ze,
|
|
364
363
|
radio__indicator: et,
|
|
365
364
|
radio__label: tt
|
|
366
365
|
}, xe = Ee("primary");
|
|
367
|
-
function
|
|
366
|
+
function ot({
|
|
368
367
|
color: e = "primary",
|
|
369
368
|
className: n,
|
|
370
369
|
...u
|
|
@@ -377,14 +376,14 @@ function Nt({
|
|
|
377
376
|
}
|
|
378
377
|
) });
|
|
379
378
|
}
|
|
380
|
-
function
|
|
379
|
+
function nt({
|
|
381
380
|
color: e,
|
|
382
381
|
label: n,
|
|
383
382
|
className: u,
|
|
384
383
|
...h
|
|
385
384
|
}) {
|
|
386
385
|
const R = Ne(xe), m = e || R || "primary", r = /* @__PURE__ */ p(
|
|
387
|
-
|
|
386
|
+
we,
|
|
388
387
|
{
|
|
389
388
|
render: /* @__PURE__ */ p(be, { ...h }),
|
|
390
389
|
interactive: "fill-outline",
|
|
@@ -396,10 +395,12 @@ function Vt({
|
|
|
396
395
|
return n ? /* @__PURE__ */ ne("label", { className: te.radio__label, children: [
|
|
397
396
|
r,
|
|
398
397
|
" ",
|
|
399
|
-
/* @__PURE__ */ p(
|
|
398
|
+
/* @__PURE__ */ p(qe, { children: n })
|
|
400
399
|
] }) : r;
|
|
401
400
|
}
|
|
401
|
+
const Pt = Object.assign(ot, {
|
|
402
|
+
Item: nt
|
|
403
|
+
});
|
|
402
404
|
export {
|
|
403
|
-
|
|
404
|
-
Nt as RadioGroup
|
|
405
|
+
Pt as RadioGroup
|
|
405
406
|
};
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export interface SearchBarProps extends React.ComponentPropsWithoutRef<"input"> {
|
|
3
|
-
/**
|
|
4
|
-
* Is the search bar loading or processing?
|
|
5
|
-
*/
|
|
6
|
-
loading?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* Called when the input is cleared
|
|
9
|
-
*/
|
|
10
|
-
onClear?: () => void;
|
|
11
|
-
}
|
|
12
|
-
export declare function SearchBar({ loading, onClear, className, ...props }: SearchBarProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export { SearchBar } from './search-bar';
|
|
@@ -1,49 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { c as _ } from "../../clsx-OuTLNxxd.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import { Icon as o } from "../icon/index.js";
|
|
6
|
-
import { IconButton as m } from "../icon-button/index.js";
|
|
7
|
-
import { Input as t } from "../input/index.js";
|
|
8
|
-
import { Spinner as h } from "../spinner/index.js";
|
|
9
|
-
import { View as s } from "../view/index.js";
|
|
10
|
-
import '../../index5.css';const a = {
|
|
11
|
-
"search-bar": "_search-bar_1ulql_1",
|
|
12
|
-
"search-bar__input": "_search-bar__input_1ulql_6",
|
|
13
|
-
"search-bar__icon": "_search-bar__icon_1ulql_14",
|
|
14
|
-
"search-bar__icon_close": "_search-bar__icon_close_1ulql_26"
|
|
15
|
-
};
|
|
16
|
-
function I({
|
|
17
|
-
loading: e,
|
|
18
|
-
onClear: l,
|
|
19
|
-
className: i,
|
|
20
|
-
...c
|
|
21
|
-
}) {
|
|
22
|
-
return /* @__PURE__ */ n(s, { className: _(a["search-bar"], i), children: [
|
|
23
|
-
/* @__PURE__ */ r(t, { className: a["search-bar__input"], ...c }),
|
|
24
|
-
!e && !c.value ? /* @__PURE__ */ r(s, { className: a["search-bar__icon"], children: /* @__PURE__ */ r(o, { name: "search-line" }) }) : null,
|
|
25
|
-
e ? /* @__PURE__ */ r(h, { className: a["search-bar__icon"] }) : null,
|
|
26
|
-
!e && c.value ? /* @__PURE__ */ r(
|
|
27
|
-
s,
|
|
28
|
-
{
|
|
29
|
-
className: _(
|
|
30
|
-
a["search-bar__icon"],
|
|
31
|
-
a["search-bar__icon_close"]
|
|
32
|
-
),
|
|
33
|
-
children: /* @__PURE__ */ r(
|
|
34
|
-
m,
|
|
35
|
-
{
|
|
36
|
-
icon: "close-line",
|
|
37
|
-
alt: "Clear",
|
|
38
|
-
size: "sm",
|
|
39
|
-
disabled: c.disabled,
|
|
40
|
-
onClick: l
|
|
41
|
-
}
|
|
42
|
-
)
|
|
43
|
-
}
|
|
44
|
-
) : null
|
|
45
|
-
] });
|
|
46
|
-
}
|
|
2
|
+
import { SearchBar as a } from "./search-bar.js";
|
|
47
3
|
export {
|
|
48
|
-
|
|
4
|
+
a as SearchBar
|
|
49
5
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface SearchBarProps extends React.ComponentPropsWithoutRef<"input"> {
|
|
3
|
+
/**
|
|
4
|
+
* Is the search bar loading or processing?
|
|
5
|
+
*/
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Called when the input is cleared
|
|
9
|
+
*/
|
|
10
|
+
onClear?: () => void;
|
|
11
|
+
}
|
|
12
|
+
declare function SearchBar({ loading, onClear, className, ...props }: SearchBarProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export { SearchBar };
|
|
14
|
+
export declare namespace SearchBar {
|
|
15
|
+
type Props = SearchBarProps;
|
|
16
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { c as _ } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { View as s } from "../view/view.js";
|
|
5
|
+
import { Input as o } from "../input/input.js";
|
|
6
|
+
import { Icon as m } from "../icon/icon.js";
|
|
7
|
+
import { Spinner as t } from "../spinner/spinner.js";
|
|
8
|
+
import { IconButton as h } from "../icon-button/icon-button.js";
|
|
9
|
+
import '../../search-bar.css';const a = {
|
|
10
|
+
"search-bar": "_search-bar_r8lqs_2",
|
|
11
|
+
"search-bar__input": "_search-bar__input_r8lqs_7",
|
|
12
|
+
"search-bar__icon": "_search-bar__icon_r8lqs_15",
|
|
13
|
+
"search-bar__icon_close": "_search-bar__icon_close_r8lqs_27"
|
|
14
|
+
};
|
|
15
|
+
function I({ loading: e, onClear: l, className: i, ...c }) {
|
|
16
|
+
return /* @__PURE__ */ n(s, { className: _(a["search-bar"], i), children: [
|
|
17
|
+
/* @__PURE__ */ r(o, { className: a["search-bar__input"], ...c }),
|
|
18
|
+
!e && !c.value ? /* @__PURE__ */ r(s, { className: a["search-bar__icon"], children: /* @__PURE__ */ r(m, { name: "search-line" }) }) : null,
|
|
19
|
+
e ? /* @__PURE__ */ r(t, { className: a["search-bar__icon"] }) : null,
|
|
20
|
+
!e && c.value ? /* @__PURE__ */ r(
|
|
21
|
+
s,
|
|
22
|
+
{
|
|
23
|
+
className: _(
|
|
24
|
+
a["search-bar__icon"],
|
|
25
|
+
a["search-bar__icon_close"]
|
|
26
|
+
),
|
|
27
|
+
children: /* @__PURE__ */ r(
|
|
28
|
+
h,
|
|
29
|
+
{
|
|
30
|
+
icon: "close-line",
|
|
31
|
+
alt: "Clear",
|
|
32
|
+
size: "sm",
|
|
33
|
+
disabled: c.disabled,
|
|
34
|
+
onClick: l
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
}
|
|
38
|
+
) : null
|
|
39
|
+
] });
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
I as SearchBar
|
|
43
|
+
};
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { CSSProperties } from 'react';
|
|
3
|
-
export declare function Select<Value>({ placeholder, className, style, ...props }: SelectPrimitive.Root.Props<Value, boolean> & {
|
|
4
|
-
/**
|
|
5
|
-
* Select placeholder if no value is chosen.
|
|
6
|
-
*
|
|
7
|
-
* Behaves differently depending on the type of select.
|
|
8
|
-
* For a normal select, we simply render an item with a value of null.
|
|
9
|
-
* For a `multiple` select, we replace the {@link https://base-ui.com/react/components/select#multiple-selection renderValue} function.
|
|
10
|
-
*/
|
|
11
|
-
placeholder?: string;
|
|
12
|
-
/** Apply styles to SelectPrimitive.trigger */
|
|
13
|
-
className?: string;
|
|
14
|
-
/** Apply styles to SelectPrimitive.trigger */
|
|
15
|
-
style?: CSSProperties;
|
|
16
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export { Select } from './select';
|