@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
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function PasswordInput(props: Omit<InputProps, "type">): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export { PasswordInput } from './password-input';
|
|
@@ -1,30 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { useState as i } from "react";
|
|
4
|
-
import { IconButton as _ } from "../icon-button/index.js";
|
|
5
|
-
import { Input as a } from "../input/index.js";
|
|
6
|
-
import { View as u } from "../view/index.js";
|
|
7
|
-
import '../../index15.css';const t = {
|
|
8
|
-
"password-input__root": "_password-input__root_g27z2_1",
|
|
9
|
-
"password-input__eye": "_password-input__eye_g27z2_5"
|
|
10
|
-
};
|
|
11
|
-
function y(e) {
|
|
12
|
-
const [o, r] = i(!1);
|
|
13
|
-
return /* @__PURE__ */ n(u, { className: t["password-input__root"], children: [
|
|
14
|
-
/* @__PURE__ */ s(a, { type: o ? "text" : "password", ...e }),
|
|
15
|
-
/* @__PURE__ */ s(
|
|
16
|
-
_,
|
|
17
|
-
{
|
|
18
|
-
alt: o ? "Hide password" : "Show password",
|
|
19
|
-
icon: o ? "eye-line" : "eye-close-line",
|
|
20
|
-
className: t["password-input__eye"],
|
|
21
|
-
type: "button",
|
|
22
|
-
size: "sm",
|
|
23
|
-
onClick: () => r((p) => !p)
|
|
24
|
-
}
|
|
25
|
-
)
|
|
26
|
-
] });
|
|
27
|
-
}
|
|
2
|
+
import { PasswordInput as r } from "./password-input.js";
|
|
28
3
|
export {
|
|
29
|
-
|
|
4
|
+
r as PasswordInput
|
|
30
5
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Input } from '../input';
|
|
2
|
+
type PasswordInputProps = Omit<Input.Props, "type">;
|
|
3
|
+
declare function PasswordInput(props: PasswordInputProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { PasswordInput };
|
|
5
|
+
export declare namespace PasswordInput {
|
|
6
|
+
type Props = PasswordInputProps;
|
|
7
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsxs as n, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as i } from "react";
|
|
3
|
+
import { View as a } from "../view/view.js";
|
|
4
|
+
import { Input as _ } from "../input/input.js";
|
|
5
|
+
import { IconButton as u } from "../icon-button/icon-button.js";
|
|
6
|
+
import '../../password-input.css';const t = {
|
|
7
|
+
"password-input__root": "_password-input__root_e2au8_2",
|
|
8
|
+
"password-input__eye": "_password-input__eye_e2au8_6"
|
|
9
|
+
};
|
|
10
|
+
function y(e) {
|
|
11
|
+
const [o, r] = i(!1);
|
|
12
|
+
return /* @__PURE__ */ n(a, { className: t["password-input__root"], children: [
|
|
13
|
+
/* @__PURE__ */ s(_, { type: o ? "text" : "password", ...e }),
|
|
14
|
+
/* @__PURE__ */ s(
|
|
15
|
+
u,
|
|
16
|
+
{
|
|
17
|
+
alt: o ? "Hide password" : "Show password",
|
|
18
|
+
icon: o ? "eye-line" : "eye-close-line",
|
|
19
|
+
className: t["password-input__eye"],
|
|
20
|
+
type: "button",
|
|
21
|
+
size: "sm",
|
|
22
|
+
onClick: () => r((p) => !p)
|
|
23
|
+
}
|
|
24
|
+
)
|
|
25
|
+
] });
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
y as PasswordInput
|
|
29
|
+
};
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { ViewProps } from '../view';
|
|
3
|
-
export type PillProps = ViewProps & {
|
|
4
|
-
/**
|
|
5
|
-
* Icon to display on the left side of the pill content
|
|
6
|
-
*/
|
|
7
|
-
leftIcon?: IconName;
|
|
8
|
-
/**
|
|
9
|
-
* Icon to display on the right side of the pill content
|
|
10
|
-
*/
|
|
11
|
-
rightIcon?: IconName;
|
|
12
|
-
};
|
|
13
|
-
export declare function Pill({ leftIcon, rightIcon, className, children, ...props }: PillProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export { Pill } from './pill';
|
|
@@ -1,39 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { c } from "../../clsx-OuTLNxxd.js";
|
|
4
|
-
import { textify as s } from "../../-utils.js";
|
|
5
|
-
import { Icon as r } from "../icon/index.js";
|
|
6
|
-
import { View as m } from "../view/index.js";
|
|
7
|
-
import '../../index16.css';const f = "_pill_wezrb_1", a = "_pill_icon_left_wezrb_16", u = "_pill_icon_right_wezrb_20", _ = {
|
|
8
|
-
pill: f,
|
|
9
|
-
pill_icon_left: a,
|
|
10
|
-
pill_icon_right: u
|
|
11
|
-
};
|
|
12
|
-
function g({
|
|
13
|
-
leftIcon: l,
|
|
14
|
-
rightIcon: i,
|
|
15
|
-
className: t,
|
|
16
|
-
children: n,
|
|
17
|
-
...p
|
|
18
|
-
}) {
|
|
19
|
-
return /* @__PURE__ */ e(
|
|
20
|
-
m,
|
|
21
|
-
{
|
|
22
|
-
className: c(
|
|
23
|
-
_.pill,
|
|
24
|
-
l && _.pill_icon_left,
|
|
25
|
-
i && _.pill_icon_right,
|
|
26
|
-
t
|
|
27
|
-
),
|
|
28
|
-
...p,
|
|
29
|
-
children: [
|
|
30
|
-
l ? /* @__PURE__ */ o(r, { name: l }) : null,
|
|
31
|
-
s(n, { color: "inherit" }),
|
|
32
|
-
i ? /* @__PURE__ */ o(r, { name: i }) : null
|
|
33
|
-
]
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
}
|
|
2
|
+
import { Pill as i } from "./pill.js";
|
|
37
3
|
export {
|
|
38
|
-
|
|
4
|
+
i as Pill
|
|
39
5
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Icon } from '../icon';
|
|
2
|
+
import { View } from '../view';
|
|
3
|
+
interface PillProps extends View.Props {
|
|
4
|
+
/**
|
|
5
|
+
* Icon to display on the left side of the pill content
|
|
6
|
+
*/
|
|
7
|
+
leftIcon?: Icon.Name;
|
|
8
|
+
/**
|
|
9
|
+
* Icon to display on the right side of the pill content
|
|
10
|
+
*/
|
|
11
|
+
rightIcon?: Icon.Name;
|
|
12
|
+
}
|
|
13
|
+
declare function Pill({ leftIcon, rightIcon, className, children, ...props }: PillProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export { Pill };
|
|
15
|
+
export declare namespace Pill {
|
|
16
|
+
type Props = PillProps;
|
|
17
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { c as m } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { textify as s } from "../../-utils.js";
|
|
4
|
+
import { View as e } from "../view/view.js";
|
|
5
|
+
import { Icon as t } from "../icon/icon.js";
|
|
6
|
+
import '../../pill.css';const f = "_pill_7qdwk_2", a = "_pill_icon_left_7qdwk_17", x = "_pill_icon_right_7qdwk_21", _ = {
|
|
7
|
+
pill: f,
|
|
8
|
+
pill_icon_left: a,
|
|
9
|
+
pill_icon_right: x
|
|
10
|
+
};
|
|
11
|
+
function q({
|
|
12
|
+
leftIcon: l,
|
|
13
|
+
rightIcon: i,
|
|
14
|
+
className: n,
|
|
15
|
+
children: p,
|
|
16
|
+
...r
|
|
17
|
+
}) {
|
|
18
|
+
return /* @__PURE__ */ c(
|
|
19
|
+
e,
|
|
20
|
+
{
|
|
21
|
+
className: m(
|
|
22
|
+
_.pill,
|
|
23
|
+
l && _.pill_icon_left,
|
|
24
|
+
i && _.pill_icon_right,
|
|
25
|
+
n
|
|
26
|
+
),
|
|
27
|
+
...r,
|
|
28
|
+
children: [
|
|
29
|
+
l ? /* @__PURE__ */ o(t, { name: l }) : null,
|
|
30
|
+
s(p, { color: "inherit" }),
|
|
31
|
+
i ? /* @__PURE__ */ o(t, { name: i }) : null
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
q as Pill
|
|
38
|
+
};
|
|
@@ -1,21 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { ReactElement, ReactNode } from 'react';
|
|
3
|
-
import { Background } from '../surface';
|
|
4
|
-
type PopoverRootProps = Omit<PopoverPrimitive.Root.Props, "children">;
|
|
5
|
-
type PopoverPositionerProps = Pick<PopoverPrimitive.Positioner.Props, "align" | "side">;
|
|
6
|
-
export type PopoverProps = PopoverRootProps & PopoverPositionerProps & {
|
|
7
|
-
/** Optional title description. */
|
|
8
|
-
title?: string;
|
|
9
|
-
/** Optional popover description. */
|
|
10
|
-
description?: string;
|
|
11
|
-
/** Specify trigger to open popover. */
|
|
12
|
-
trigger?: ReactElement;
|
|
13
|
-
/** Surface background popover should use. Defaults to "root". */
|
|
14
|
-
background?: Background;
|
|
15
|
-
/** Apply className to PopoverPrimitive.Popup */
|
|
16
|
-
className?: string;
|
|
17
|
-
/** Popover content */
|
|
18
|
-
children?: ReactNode;
|
|
19
|
-
};
|
|
20
|
-
export declare function Popover({ align, side, title, description, background, trigger, className, children, ...props }: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
export {};
|
|
1
|
+
export { Popover } from './popover';
|