@koide-labs/ui 0.0.14 → 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 +16 -19
- 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/-utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Text } from './components/text';
|
|
2
2
|
import type * as React from "react";
|
|
3
3
|
export declare function omit<T extends object>(record: T, keys: (keyof T)[]): Omit<T, (typeof keys)[number]>;
|
|
4
4
|
export declare function pick<T extends Record<string, string>, K extends keyof T>(record: T, keys: Array<K>): Pick<T, K>;
|
|
@@ -9,7 +9,7 @@ export declare function pick<T extends Record<string, string>, K extends keyof T
|
|
|
9
9
|
* @param props optional text props
|
|
10
10
|
* @returns ReactNode or Text
|
|
11
11
|
*/
|
|
12
|
-
export declare function textify(node: React.ReactNode, props?:
|
|
12
|
+
export declare function textify(node: React.ReactNode, props?: Text.Props): number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
13
13
|
/**
|
|
14
14
|
* Merge many refs to pass to one element.
|
|
15
15
|
*
|
package/dist/-utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as o from "react";
|
|
2
|
-
import { u as l } from "./useButton-
|
|
3
|
-
import { u as c } from "./useRenderElement-
|
|
2
|
+
import { u as l } from "./useButton-d3_JgBNr.js";
|
|
3
|
+
import { u as c } from "./useRenderElement-DngNDu_P.js";
|
|
4
4
|
const m = /* @__PURE__ */ o.forwardRef(function(t, s) {
|
|
5
5
|
const {
|
|
6
6
|
render: B,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as f from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { a as re, C as ae } from "./useButton-
|
|
4
|
-
import { u as de, C as le } from "./useCompositeListItem-
|
|
2
|
+
import { d as ee, b as Z, E as se, u as ie } from "./useRenderElement-DngNDu_P.js";
|
|
3
|
+
import { a as re, C as ae } from "./useButton-d3_JgBNr.js";
|
|
4
|
+
import { u as de, C as le } from "./useCompositeListItem-CZp9WTnF.js";
|
|
5
5
|
import { i as ce } from "./isElementDisabled-Cbd8W9kH.js";
|
|
6
|
-
import { u as j } from "./useStableCallback-
|
|
7
|
-
import { s as q, A as ue, a as fe, i as J, b as z, c as v, H as he, E as ge, d as $, e as B, V as me, f as Ie, g as pe, h as xe, M as Re } from "./composite-
|
|
8
|
-
import { g as Ee, a as ye, c as Ce, b as U, d as be, e as Ae, f as Me, h as Ke, i as _e } from "./composite-
|
|
6
|
+
import { u as j } from "./useStableCallback-DKZHlUAT.js";
|
|
7
|
+
import { s as q, A as ue, a as fe, i as J, b as z, c as v, H as he, E as ge, d as $, e as B, V as me, f as Ie, g as pe, h as xe, M as Re } from "./composite-BwEK5cWH.js";
|
|
8
|
+
import { g as Ee, a as ye, c as Ce, b as U, d as be, e as Ae, f as Me, h as Ke, i as _e } from "./composite-BZzP-LlG.js";
|
|
9
9
|
import { u as He } from "./DirectionContext-C2o_MF_i.js";
|
|
10
10
|
import { jsx as Q } from "react/jsx-runtime";
|
|
11
11
|
function Fe(h = {}) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
2
|
import * as q from "react-dom";
|
|
3
|
-
import { c as $ } from "./floating-ui.utils.dom-
|
|
3
|
+
import { c as $ } from "./floating-ui.utils.dom-cbi420Pg.js";
|
|
4
4
|
import { u as Q } from "./useId-C5kyn6tA.js";
|
|
5
5
|
import { u as U } from "./useIsoLayoutEffect-CIDbvm3Q.js";
|
|
6
|
-
import { b as tt } from "./detectBrowser-
|
|
6
|
+
import { b as tt } from "./detectBrowser-Bl8Ki_1I.js";
|
|
7
7
|
import { v as et } from "./visuallyHidden-CpJ-mhai.js";
|
|
8
8
|
import { jsx as E, jsxs as _ } from "react/jsx-runtime";
|
|
9
|
-
import { c as rt, f as at } from "./createBaseUIEventDetails-
|
|
10
|
-
import { E as nt, u as it } from "./useRenderElement-
|
|
11
|
-
import { f as ot,
|
|
9
|
+
import { c as rt, f as at } from "./createBaseUIEventDetails-CCSfZ2vM.js";
|
|
10
|
+
import { E as nt, u as it } from "./useRenderElement-DngNDu_P.js";
|
|
11
|
+
import { f as ot, e as N, d as st } from "./element-u5WgOZX1.js";
|
|
12
12
|
const qt = 500, Ut = 500, jt = {
|
|
13
13
|
style: {
|
|
14
14
|
transition: "none"
|
|
@@ -58,8 +58,8 @@ var lt = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
58
58
|
var f = y.call(o, T);
|
|
59
59
|
f && r.filter(o) && (e || !t.includes(o)) && n.push(o);
|
|
60
60
|
var d = o.shadowRoot || // check for an undisclosed shadow
|
|
61
|
-
typeof r.getShadowRoot == "function" && r.getShadowRoot(o),
|
|
62
|
-
if (d &&
|
|
61
|
+
typeof r.getShadowRoot == "function" && r.getShadowRoot(o), p = !R(d, !1) && (!r.shadowRootFilter || r.shadowRootFilter(o));
|
|
62
|
+
if (d && p) {
|
|
63
63
|
var b = x(d === !0 ? o.children : d.children, !0, r);
|
|
64
64
|
r.flatten ? n.push.apply(n, b) : n.push({
|
|
65
65
|
scopeParent: o,
|
|
@@ -90,11 +90,11 @@ var lt = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
90
90
|
return r.tagName === "SUMMARY";
|
|
91
91
|
});
|
|
92
92
|
return e;
|
|
93
|
-
},
|
|
93
|
+
}, pt = function(t, e) {
|
|
94
94
|
for (var r = 0; r < t.length; r++)
|
|
95
95
|
if (t[r].checked && t[r].form === e)
|
|
96
96
|
return t[r];
|
|
97
|
-
},
|
|
97
|
+
}, ht = function(t) {
|
|
98
98
|
if (!t.name)
|
|
99
99
|
return !0;
|
|
100
100
|
var e = t.form || I(t), r = function(u) {
|
|
@@ -108,12 +108,12 @@ var lt = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
108
108
|
} catch (o) {
|
|
109
109
|
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", o.message), !1;
|
|
110
110
|
}
|
|
111
|
-
var s =
|
|
111
|
+
var s = pt(n, t.form);
|
|
112
112
|
return !s || s === t;
|
|
113
113
|
}, gt = function(t) {
|
|
114
114
|
return H(t) && t.type === "radio";
|
|
115
115
|
}, mt = function(t) {
|
|
116
|
-
return gt(t) && !
|
|
116
|
+
return gt(t) && !ht(t);
|
|
117
117
|
}, yt = function(t) {
|
|
118
118
|
var e, r = t && I(t), n = (e = r) === null || e === void 0 ? void 0 : e.host, s = !1;
|
|
119
119
|
if (r && r !== t) {
|
|
@@ -313,23 +313,23 @@ function At(a = {}) {
|
|
|
313
313
|
componentProps: r = nt,
|
|
314
314
|
elementProps: n,
|
|
315
315
|
elementState: s
|
|
316
|
-
} = a, o = Q(), c = Ct()?.portalNode, [i, f] = l.useState(null), [d,
|
|
316
|
+
} = a, o = Q(), c = Ct()?.portalNode, [i, f] = l.useState(null), [d, p] = l.useState(null), b = l.useRef(null);
|
|
317
317
|
U(() => {
|
|
318
318
|
if (e === null) {
|
|
319
|
-
b.current && (b.current = null,
|
|
319
|
+
b.current && (b.current = null, p(null), f(null));
|
|
320
320
|
return;
|
|
321
321
|
}
|
|
322
322
|
if (o == null)
|
|
323
323
|
return;
|
|
324
324
|
const g = (e && ($(e) ? e : e.current)) ?? c ?? document.body;
|
|
325
325
|
if (g == null) {
|
|
326
|
-
b.current && (b.current = null,
|
|
326
|
+
b.current && (b.current = null, p(null), f(null));
|
|
327
327
|
return;
|
|
328
328
|
}
|
|
329
|
-
b.current !== g && (b.current = g,
|
|
329
|
+
b.current !== g && (b.current = g, p(null), f(g));
|
|
330
330
|
}, [e, c, o]);
|
|
331
331
|
const S = it("div", r, {
|
|
332
|
-
ref: [t,
|
|
332
|
+
ref: [t, p],
|
|
333
333
|
state: s,
|
|
334
334
|
props: [{
|
|
335
335
|
id: o,
|
|
@@ -357,22 +357,22 @@ const wt = /* @__PURE__ */ l.forwardRef(function(t, e) {
|
|
|
357
357
|
ref: e,
|
|
358
358
|
componentProps: t,
|
|
359
359
|
elementProps: c
|
|
360
|
-
}), d = l.useRef(null),
|
|
360
|
+
}), d = l.useRef(null), p = l.useRef(null), b = l.useRef(null), S = l.useRef(null), [v, g] = l.useState(null), k = v?.modal, M = v?.open, C = typeof u == "boolean" ? u : !!v && !v.modal && v.open && !!i;
|
|
361
361
|
l.useEffect(() => {
|
|
362
362
|
if (!i || k)
|
|
363
363
|
return;
|
|
364
|
-
function
|
|
364
|
+
function h(m) {
|
|
365
365
|
i && O(m) && (m.type === "focusin" ? G : xt)(i);
|
|
366
366
|
}
|
|
367
|
-
return i.addEventListener("focusin",
|
|
368
|
-
i.removeEventListener("focusin",
|
|
367
|
+
return i.addEventListener("focusin", h, !0), i.addEventListener("focusout", h, !0), () => {
|
|
368
|
+
i.removeEventListener("focusin", h, !0), i.removeEventListener("focusout", h, !0);
|
|
369
369
|
};
|
|
370
370
|
}, [i, k]), l.useEffect(() => {
|
|
371
371
|
!i || M || G(i);
|
|
372
372
|
}, [M, i]);
|
|
373
373
|
const X = l.useMemo(() => ({
|
|
374
374
|
beforeOutsideRef: d,
|
|
375
|
-
afterOutsideRef:
|
|
375
|
+
afterOutsideRef: p,
|
|
376
376
|
beforeInsideRef: b,
|
|
377
377
|
afterInsideRef: S,
|
|
378
378
|
portalNode: i,
|
|
@@ -384,8 +384,8 @@ const wt = /* @__PURE__ */ l.forwardRef(function(t, e) {
|
|
|
384
384
|
children: [C && i && /* @__PURE__ */ E(P, {
|
|
385
385
|
"data-type": "outside",
|
|
386
386
|
ref: d,
|
|
387
|
-
onFocus: (
|
|
388
|
-
if (O(
|
|
387
|
+
onFocus: (h) => {
|
|
388
|
+
if (O(h, i))
|
|
389
389
|
b.current?.focus();
|
|
390
390
|
else {
|
|
391
391
|
const m = v ? v.domReference : null;
|
|
@@ -397,13 +397,13 @@ const wt = /* @__PURE__ */ l.forwardRef(function(t, e) {
|
|
|
397
397
|
style: ut
|
|
398
398
|
}), i && /* @__PURE__ */ q.createPortal(r, i), C && i && /* @__PURE__ */ E(P, {
|
|
399
399
|
"data-type": "outside",
|
|
400
|
-
ref:
|
|
401
|
-
onFocus: (
|
|
402
|
-
if (O(
|
|
400
|
+
ref: p,
|
|
401
|
+
onFocus: (h) => {
|
|
402
|
+
if (O(h, i))
|
|
403
403
|
S.current?.focus();
|
|
404
404
|
else {
|
|
405
405
|
const m = v ? v.domReference : null;
|
|
406
|
-
It(m)?.focus(), v?.closeOnFocusOut && v?.onOpenChange(!1, rt(at,
|
|
406
|
+
It(m)?.focus(), v?.closeOnFocusOut && v?.onOpenChange(!1, rt(at, h.nativeEvent));
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
})]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as o from "react";
|
|
2
2
|
import * as s from "react-dom";
|
|
3
3
|
import { jsxs as c } from "react/jsx-runtime";
|
|
4
|
-
import { u as m } from "./FloatingPortal-
|
|
4
|
+
import { u as m } from "./FloatingPortal-BQsQhvIr.js";
|
|
5
5
|
const f = /* @__PURE__ */ o.forwardRef(function(t, a) {
|
|
6
6
|
const {
|
|
7
7
|
children: i,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as ut, d as lt } from "./detectBrowser-
|
|
1
|
+
import { g as ce, d as Ue, e as Je, i as _, f as ct } from "./floating-ui.utils.dom-cbi420Pg.js";
|
|
2
|
+
import { c as ut, d as lt } from "./detectBrowser-Bl8Ki_1I.js";
|
|
3
3
|
import { o as ue } from "./owner-rKN292Q9.js";
|
|
4
4
|
import { u as J } from "./useIsoLayoutEffect-CIDbvm3Q.js";
|
|
5
|
-
import { T as Me, u as ge } from "./useTimeout-
|
|
6
|
-
import { A as at, u as Qe } from "./useAnimationFrame-
|
|
7
|
-
import { N as ft,
|
|
5
|
+
import { T as Me, u as ge } from "./useTimeout-BNni6aw5.js";
|
|
6
|
+
import { A as at, u as Qe } from "./useAnimationFrame-DvK1s63A.js";
|
|
7
|
+
import { N as ft, d as Pe, E as dt } from "./useRenderElement-DngNDu_P.js";
|
|
8
8
|
import * as h from "react";
|
|
9
|
-
import { a as pt, t as Ze, g as ye, c as De, F as Ne, i as Be, b as bt, d as mt, e as et, C as ht, f as gt } from "./FloatingPortal-
|
|
10
|
-
import { u as ne } from "./useValueAsRef-
|
|
11
|
-
import { u as Q } from "./useStableCallback-
|
|
9
|
+
import { a as pt, t as Ze, g as ye, c as De, F as Ne, i as Be, b as bt, d as mt, e as et, C as ht, f as gt } from "./FloatingPortal-BQsQhvIr.js";
|
|
10
|
+
import { u as ne } from "./useValueAsRef-B4EriRsI.js";
|
|
11
|
+
import { u as Q } from "./useStableCallback-DKZHlUAT.js";
|
|
12
12
|
import { v as vt } from "./visuallyHidden-CpJ-mhai.js";
|
|
13
|
-
import { t as yt, o as Et, c as ie, f as kt, a as pe } from "./createBaseUIEventDetails-
|
|
14
|
-
import {
|
|
15
|
-
import { a as wt, b as Ge, g as Ye } from "./transitions.module-
|
|
16
|
-
import { r as X } from "./useOpenChangeComplete-
|
|
13
|
+
import { t as yt, o as Et, c as ie, f as kt, a as pe } from "./createBaseUIEventDetails-CCSfZ2vM.js";
|
|
14
|
+
import { e as G, i as We, g as Ve, d as U, f as I, h as re, j as Tt } from "./element-u5WgOZX1.js";
|
|
15
|
+
import { a as wt, b as Ge, g as Ye } from "./transitions.module-D9mMAtfI.js";
|
|
16
|
+
import { r as X } from "./useOpenChangeComplete-BHd-N7Ig.js";
|
|
17
17
|
import { jsxs as Rt, jsx as ve } from "react/jsx-runtime";
|
|
18
|
-
import {
|
|
18
|
+
import { i as Ct, a as xt, s as St, b as qe, c as Ot } from "./event-B89-Ng5h.js";
|
|
19
19
|
let $e = {}, He = {}, Xe = "";
|
|
20
20
|
function Ft(e) {
|
|
21
21
|
if (typeof document > "u")
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as h from "react-dom";
|
|
2
2
|
import { u } from "./useIsoLayoutEffect-CIDbvm3Q.js";
|
|
3
|
-
import { u as R } from "./useStableCallback-
|
|
3
|
+
import { u as R } from "./useStableCallback-DKZHlUAT.js";
|
|
4
4
|
import * as l from "react";
|
|
5
|
-
import { N as a, E as V } from "./useRenderElement-
|
|
5
|
+
import { N as a, E as V } from "./useRenderElement-DngNDu_P.js";
|
|
6
6
|
import { f as N } from "./formatErrorMessage-BqPuTBN-.js";
|
|
7
7
|
let x = /* @__PURE__ */ (function(e) {
|
|
8
8
|
return e.disabled = "data-disabled", e.valid = "data-valid", e.invalid = "data-invalid", e.touched = "data-touched", e.dirty = "data-dirty", e.filled = "data-filled", e.focused = "data-focused", e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer components{._accordion_olhk5_2{border-bottom:1px solid var(--surface-interactive-border)}._accordion__header_olhk5_6{display:flex}._accordion__trigger-icon_olhk5_10{transform:rotate(-45deg);transition:transform var(--transition-duration-snappy) var(--transition-timing-function-snappy)}._accordion__trigger_olhk5_10{flex-grow:1;flex-shrink:1;flex-direction:row;justify-content:space-between;align-items:center;border-radius:0!important;padding:var(--space-8) var(--space-12);line-height:1}._accordion__trigger_olhk5_10[data-panel-open] ._accordion__trigger-icon_olhk5_10{transform:rotate(0)}._accordion__panel_olhk5_31{transition:height var(--transition-duration-chill) var(--transition-timing-function-chill);height:var(--accordion-panel-height);overflow:hidden}._accordion__panel_olhk5_31[data-starting-style],._accordion__panel_olhk5_31[data-ending-style]{height:0}._accordion__panel-content_olhk5_43{padding:var(--space-12)}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer components{._alert-dialog__actions_ndpfw_2{flex-direction:row;justify-content:end;gap:var(--space-8)}}
|
package/dist/anchor.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer components{._anchor_1bdhy_2{cursor:pointer;color:var(--primary-stronger);font-weight:var(--font-weight-regular);font-size:var(--font-size-default);line-height:var(--line-height-default);text-decoration:underline}._anchor_1bdhy_2:visited{color:var(--primary-stronger)}}
|
package/dist/avatar.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer components{._avatar_1886r_2{display:flex;position:relative;flex-shrink:0;border-width:1px;border-style:solid;border-color:var(--outline-dimmest);border-radius:var(--border-radius-round);background-color:var(--background-highest);width:var(--avatar-size);height:var(--avatar-size);overflow:hidden}._avatar__image_1886r_16{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}._avatar__fallback_1886r_22{display:flex;flex:1 1 0%;justify-content:center;align-items:center;border-radius:var(--border-radius-round);width:100%;height:100%;color:var(--foreground-dimmest);font-size:calc(var(--avatar-size) / 2.5)}._avatar_size_sm_1886r_35{--avatar-size: var(--space-24)}._avatar_size_md_1886r_39{--avatar-size: var(--space-32)}._avatar_size_lg_1886r_43{--avatar-size: var(--space-40)}._avatar_size_xl_1886r_47{--avatar-size: var(--space-48)}._avatar_size_2xl_1886r_51{--avatar-size: var(--space-56)}._avatar_size_3xl_1886r_55{--avatar-size: var(--space-64)}}
|
package/dist/badge.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer components{._badge_184a8_2{display:inline-flex;align-items:center;gap:var(--space-4);cursor:default;border-radius:var(--border-radius-16);background-color:var(--view-colorway-dimmer);padding:var(--space-4) var(--space-8);height:var(--space-24);color:var(--view-colorway-strongest);font-size:var(--font-size-small);line-height:1;white-space:nowrap}._badge_shiny_184a8_17{display:inline-flex;flex-direction:row;align-items:center;transition:none;background-image:radial-gradient(circle at top left,var(--view-colorway-dimmest) 34%,var(--view-colorway-dimmer) 50%,var(--view-colorway-dimmest) 66%);background-position:left;background-size:300% 100%}._badge_shiny_184a8_17:hover{transition:background-position .6s var(--transition-timing-function-chill);background-position:right}}
|
package/dist/button.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer components{._button_y8f8w_2{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:var(--space-8);box-sizing:border-box;border-radius:var(--border-radius-default);padding-inline:var(--button-padding-inline);height:var(--button-height);white-space:nowrap}._button_height_sm_y8f8w_15{--button-padding-inline: var(--space-12);--button-height: var(--space-28)}._button_height_md_y8f8w_20{--button-padding-inline: var(--space-16);--button-height: var(--space-32)}._button_height_lg_y8f8w_25{--button-padding-inline: var(--space-20);--button-height: var(--space-40)}._button_height_xl_y8f8w_30{--button-padding-inline: var(--space-24);--button-height: var(--space-48)}._button_height_2xl_y8f8w_35{--button-padding-inline: var(--space-28);--button-height: var(--space-56)}._button_height_3xl_y8f8w_40{--button-padding-inline: var(--space-32);--button-height: var(--space-64)}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer components{._checkbox__label_1e2ro_2{display:flex;flex-direction:row;align-items:center;gap:var(--space-8)}._checkbox_1e2ro_2{display:flex;justify-content:center;align-items:center;border-radius:var(--border-radius-4);width:20px;height:20px}._checkbox_1e2ro_2[data-checked]{background:var(--view-colorway-dimmer)}._checkbox_1e2ro_2[data-checked]:not([disabled],[data-disabled]){background:var(--view-colorway-default)}._checkbox_1e2ro_2[data-checked]:not([disabled],[data-disabled]):hover{border-color:var(--view-colorway-stronger)}._checkbox__indicator_1e2ro_30{pointer-events:none;color:var(--white)}._checkbox__indicator_1e2ro_30[data-unchecked]{display:none}}
|
package/dist/code.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer components{._code__root_jkm0m_2{border-radius:var(--border-radius-default);overflow:hidden}._code_jkm0m_2{border-radius:var(--border-radius-default);padding:var(--space-8);overflow-x:auto}._code_title_jkm0m_13{border-top-left-radius:0}._code__value_jkm0m_17{font-size:var(--font-size-default);font-family:var(--font-family-code)}._code__title_jkm0m_22{border-top-right-radius:var(--border-radius-default);border-top-left-radius:var(--border-radius-default);padding:var(--space-4) var(--space-8);width:-moz-fit-content;width:fit-content}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer base{._collapse_1x5eo_2{opacity:0;transition:height var(--transition-duration-chill) var(--transition-timing-function-chill),opacity var(--transition-duration-chill) var(--transition-timing-function-chill);height:0;overflow-y:hidden}._collapse_expand_1x5eo_13{opacity:1;height:var(--collapse-height)}._collapse_hidden_1x5eo_18{position:fixed;top:0;left:0;visibility:hidden;opacity:0;z-index:0;height:-moz-fit-content;height:fit-content;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}}
|
package/dist/command.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer components{._command_1vmbj_2{--command-padding: var(--space-6);border:none;padding:0}._command_1vmbj_2 [data-framework-close]{top:var(--space-4);right:var(--space-4)}._command__empty_1vmbj_15{padding:var(--space-28) var(--space-16);padding-top:calc(var(--space-28) + var(--command-padding));text-align:center}._command__input-root_1vmbj_21{position:relative;height:var(--space-32)}._command__input_1vmbj_21{flex-grow:1;flex-shrink:1;border-bottom-right-radius:0!important;border-bottom-left-radius:0!important;background-color:transparent;padding:var(--space-4) var(--space-32);width:100%;height:100%;line-height:var(--line-height-input)}._command__input_1vmbj_21::-moz-placeholder{color:var(--foreground-dimmest)}._command__input_1vmbj_21::placeholder{color:var(--foreground-dimmest)}._command__input_1vmbj_21:not([disabled],[data-disabled]){cursor:text}._command__input-icon_1vmbj_46{position:absolute;top:var(--space-8);left:var(--space-8)}._command__list_1vmbj_52{border:1px solid var(--surface-interactive-border);border-top:0;border-bottom-right-radius:var(--border-radius-default)!important;border-bottom-left-radius:var(--border-radius-default)!important;padding-bottom:var(--command-padding);max-height:var(--space-256);overflow:hidden auto}._command__group_1vmbj_62{padding-top:var(--space-6)}._command__group_1vmbj_62 [cmdk-group-heading]{border:1px solid transparent;padding:0 var(--space-12) var(--space-2) var(--space-12);color:var(--foreground-dimmer);font-size:var(--font-size-small);line-height:var(--line-height-small)}._command__item_1vmbj_75{flex-direction:row;align-items:center;gap:var(--space-8);padding:var(--space-4) var(--space-12);height:var(--space-32);-webkit-user-select:none;-moz-user-select:none;user-select:none}._command__item_1vmbj_75[data-selected=true]{background-color:var(--interactive-background)}._command__shortcut_1vmbj_88{margin-left:auto;letter-spacing:.1em}}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Accordion as AccordionPrimitive } from '@base-ui/react/accordion';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
interface AccordionItemProps extends AccordionPrimitive.Item.Props {
|
|
4
|
+
/** The content to display in the accordion header trigger. */
|
|
5
|
+
header: ReactNode;
|
|
6
|
+
/** Apply className to the accordion trigger */
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
declare function AccordionItem({ header, children, className, ...props }: AccordionItemProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const Accordion: import('react').ForwardRefExoticComponent<import('@base-ui/react').AccordionRootProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
11
|
+
Item: typeof AccordionItem;
|
|
12
|
+
};
|
|
13
|
+
export declare namespace Accordion {
|
|
14
|
+
type Props = AccordionPrimitive.Root.Props;
|
|
15
|
+
namespace Item {
|
|
16
|
+
type Props = AccordionItemProps;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export {};
|