@jfrader/ui 0.4.0 → 0.5.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/README.md +2 -0
- package/dist/{accordion-Bd-j04hW.js → accordion-xCI_u0BV.js} +2 -2
- package/dist/accordion.js +1 -1
- package/dist/{alert-BBqaKI4k.js → alert-DS_einpy.js} +1 -1
- package/dist/alert.js +1 -1
- package/dist/announcement-bar-B58xempt.js +382 -0
- package/dist/announcement-bar.js +2 -0
- package/dist/avatar-group-DOQQuV51.js +138 -0
- package/dist/avatar-group.js +2 -0
- package/dist/bottom-sheet-DPJBFkie.js +673 -0
- package/dist/bottom-sheet.js +2 -0
- package/dist/{breadcrumbs-DVAOxfvL.js → breadcrumbs-Cfw_hgt2.js} +1 -1
- package/dist/breadcrumbs.js +1 -1
- package/dist/{button-P2e7_44z.js → button-C92uYFJW.js} +1 -1
- package/dist/button.js +1 -1
- package/dist/calendar-B3Svu0X2.js +447 -0
- package/dist/calendar.js +1 -1
- package/dist/carousel-IvPqN-oM.js +472 -0
- package/dist/carousel.js +2 -0
- package/dist/{checkbox-COYG6L7d.js → checkbox-cFquiSdy.js} +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/chip-group-DTQd_M-G.js +289 -0
- package/dist/chip-group.js +2 -0
- package/dist/code-block/shiki.js +147 -0
- package/dist/code-block-ahnRi-g8.js +292 -0
- package/dist/code-block.js +2 -0
- package/dist/collection-registry-k6JcD3Jr.js +44 -0
- package/dist/combobox-Bhzvu9ma.js +334 -0
- package/dist/combobox.js +1 -1
- package/dist/command-palette-BQ5LleGb.js +384 -0
- package/dist/command-palette.js +1 -1
- package/dist/copy-button-ByiA6D3R.js +252 -0
- package/dist/copy-button.js +2 -0
- package/dist/countdown-Dp_TD1VP.js +293 -0
- package/dist/countdown.js +2 -0
- package/dist/date-picker-5zKSSuFF.js +255 -0
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker-B5uFWsm-.js +562 -0
- package/dist/date-range-picker.js +2 -0
- package/dist/{dialog-xaydbXl2.js → dialog-ciiv9H2b.js} +19 -19
- package/dist/dialog.js +1 -1
- package/dist/drawer-DsASTiP-.js +553 -0
- package/dist/drawer.js +2 -0
- package/dist/empty-state-CDgrjPPf.js +142 -0
- package/dist/empty-state.js +2 -0
- package/dist/expandable-card-C-qJcZ14.js +340 -0
- package/dist/expandable-card.js +2 -0
- package/dist/field-anatomy-COVdNpf5.js +84 -0
- package/dist/file-dropzone-pR4v7owg.js +457 -0
- package/dist/file-dropzone.js +2 -0
- package/dist/filter-toolbar-D5KEKTSe.js +312 -0
- package/dist/filter-toolbar.js +2 -0
- package/dist/hold-to-confirm-DjB2EVjM.js +294 -0
- package/dist/hold-to-confirm.js +2 -0
- package/dist/hover-card-B-nrCIy2.js +347 -0
- package/dist/hover-card.js +2 -0
- package/dist/image-compare-ciuhPtQZ.js +415 -0
- package/dist/image-compare.js +2 -0
- package/dist/index.js +79 -38
- package/dist/inline-edit-C0eeml65.js +535 -0
- package/dist/inline-edit.js +2 -0
- package/dist/input-control-DmMuAuPS.js +34 -0
- package/dist/json-viewer-BcySQfjZ.js +798 -0
- package/dist/json-viewer.js +2 -0
- package/dist/listbox-style-WX-RASp1.js +59 -0
- package/dist/{media-D_eA_I-e.js → media-8yrN85VT.js} +2 -2
- package/dist/mention-input-BcQKX2EJ.js +599 -0
- package/dist/mention-input.js +2 -0
- package/dist/menu-xwOOUtWP.js +275 -0
- package/dist/menu.js +1 -1
- package/dist/metric-card-Bh9K4fZs.js +118 -0
- package/dist/metric-card.js +2 -0
- package/dist/multi-select-Pce_IYnz.js +590 -0
- package/dist/multi-select.js +2 -0
- package/dist/{navigation-DhnKriOp.js → navigation-sP5fiuQS.js} +4 -4
- package/dist/navigation.js +1 -1
- package/dist/overlay-layer-SeUyyEPD.js +64 -0
- package/dist/overlay-portal-C4JZFq2M.js +15 -0
- package/dist/{pagination-DYdwsxwe.js → pagination-DmXZ8E85.js} +1 -1
- package/dist/pagination.js +1 -1
- package/dist/password-field-03pWRkuY.js +250 -0
- package/dist/password-field.js +2 -0
- package/dist/popover-QHcEvf9c.js +119 -0
- package/dist/popover.js +1 -1
- package/dist/{progress-BpJswTG4.js → progress-CbOWBUdA.js} +4 -4
- package/dist/progress.js +1 -1
- package/dist/radio-cards-D2QZENI_.js +455 -0
- package/dist/radio-cards.js +2 -0
- package/dist/{radio-group-Ce0_IWQr.js → radio-group-E6mMRgo7.js} +4 -4
- package/dist/radio-group.js +1 -1
- package/dist/resizable-panels-BhjUVXZZ.js +519 -0
- package/dist/resizable-panels.js +2 -0
- package/dist/scroll-area-CcZyiSOQ.js +371 -0
- package/dist/scroll-area.js +2 -0
- package/dist/search-field-IxF0IJXm.js +274 -0
- package/dist/search-field.js +2 -0
- package/dist/segmented-control-yO1K1nbi.js +326 -0
- package/dist/segmented-control.js +2 -0
- package/dist/select-n_H52W1Z.js +292 -0
- package/dist/select.js +1 -1
- package/dist/signature-pad-q2SAsrdD.js +640 -0
- package/dist/signature-pad.js +2 -0
- package/dist/{skeleton-OoFlOEXO.js → skeleton-XQQDkCHd.js} +1 -1
- package/dist/skeleton.js +1 -1
- package/dist/slider-t0B5cecO.js +477 -0
- package/dist/slider.js +2 -0
- package/dist/sortable-data-table-tirqlLY2.js +365 -0
- package/dist/sortable-data-table.js +2 -0
- package/dist/{spinner-C2YDoiMn.js → spinner-DtxvDPdM.js} +1 -1
- package/dist/spinner.js +1 -1
- package/dist/split-button-Cb3EHs64.js +268 -0
- package/dist/split-button.js +2 -0
- package/dist/stepper-CruHbXxX.js +480 -0
- package/dist/stepper.js +2 -0
- package/dist/swipe-actions-DiZC57-3.js +418 -0
- package/dist/swipe-actions.js +2 -0
- package/dist/{switch-Dr-qjmT4.js → switch-qwv8jQnR.js} +1 -1
- package/dist/switch.js +1 -1
- package/dist/{tabs-CK_g1RKa.js → tabs-CAVJndX1.js} +2 -2
- package/dist/tabs.js +1 -1
- package/dist/tag-input-DSRCyrX2.js +418 -0
- package/dist/tag-input.js +2 -0
- package/dist/{text-field-D60ok14S.js → text-field-C8TWG-tY.js} +6 -5
- package/dist/text-field.js +1 -1
- package/dist/{textarea-DyfjtP0A.js → textarea-BrW0XcG_.js} +6 -5
- package/dist/textarea.js +1 -1
- package/dist/time-picker-Db8D49cP.js +305 -0
- package/dist/time-picker.js +2 -0
- package/dist/timeline-k3nURuCP.js +618 -0
- package/dist/timeline.js +2 -0
- package/dist/toast-BHxI32ZA.js +352 -0
- package/dist/toast-stack-DqrAzdg5.js +183 -0
- package/dist/toast-stack.js +2 -0
- package/dist/toast.js +1 -1
- package/dist/{toggle-group-CI0e7hFm.js → toggle-group-fcjzpifI.js} +4 -4
- package/dist/toggle-group.js +1 -1
- package/dist/tooltip-CkeiW9C1.js +113 -0
- package/dist/tooltip.js +1 -1
- package/dist/tree-view-C2liIxqy.js +360 -0
- package/dist/tree-view.js +2 -0
- package/dist/types/components/announcement-bar/announcement-bar.d.ts +75 -0
- package/dist/types/components/announcement-bar/index.d.ts +2 -0
- package/dist/types/components/avatar-group/avatar-group.d.ts +43 -0
- package/dist/types/components/avatar-group/index.d.ts +2 -0
- package/dist/types/components/bottom-sheet/bottom-sheet.d.ts +60 -0
- package/dist/types/components/bottom-sheet/index.d.ts +2 -0
- package/dist/types/components/calendar/calendar.d.ts +25 -1
- package/dist/types/components/calendar/index.d.ts +1 -1
- package/dist/types/components/carousel/carousel.d.ts +73 -0
- package/dist/types/components/carousel/index.d.ts +2 -0
- package/dist/types/components/chip-group/chip-group.d.ts +54 -0
- package/dist/types/components/chip-group/index.d.ts +1 -0
- package/dist/types/components/code-block/code-block.d.ts +58 -0
- package/dist/types/components/code-block/index.d.ts +1 -0
- package/dist/types/components/code-block/shiki.d.ts +3 -0
- package/dist/types/components/combobox/combobox.d.ts +1 -1
- package/dist/types/components/command-palette/command-palette.d.ts +1 -1
- package/dist/types/components/copy-button/copy-button.d.ts +49 -0
- package/dist/types/components/copy-button/index.d.ts +2 -0
- package/dist/types/components/countdown/countdown.d.ts +37 -0
- package/dist/types/components/countdown/index.d.ts +1 -0
- package/dist/types/components/date-picker/date-picker.d.ts +1 -1
- package/dist/types/components/date-range-picker/date-range-picker.d.ts +103 -0
- package/dist/types/components/date-range-picker/index.d.ts +2 -0
- package/dist/types/components/drawer/drawer.d.ts +59 -0
- package/dist/types/components/drawer/index.d.ts +2 -0
- package/dist/types/components/empty-state/empty-state.d.ts +36 -0
- package/dist/types/components/empty-state/index.d.ts +2 -0
- package/dist/types/components/expandable-card/expandable-card.d.ts +28 -0
- package/dist/types/components/expandable-card/index.d.ts +2 -0
- package/dist/types/components/field/field-anatomy.d.ts +4 -2
- package/dist/types/components/file-dropzone/file-dropzone.d.ts +93 -0
- package/dist/types/components/file-dropzone/index.d.ts +2 -0
- package/dist/types/components/filter-toolbar/filter-toolbar.d.ts +70 -0
- package/dist/types/components/filter-toolbar/index.d.ts +1 -0
- package/dist/types/components/hold-to-confirm/hold-to-confirm.d.ts +32 -0
- package/dist/types/components/hold-to-confirm/index.d.ts +2 -0
- package/dist/types/components/hover-card/hover-card.d.ts +97 -0
- package/dist/types/components/hover-card/index.d.ts +2 -0
- package/dist/types/components/image-compare/image-compare.d.ts +54 -0
- package/dist/types/components/image-compare/index.d.ts +1 -0
- package/dist/types/components/inline-edit/index.d.ts +2 -0
- package/dist/types/components/inline-edit/inline-edit.d.ts +93 -0
- package/dist/types/components/json-viewer/index.d.ts +2 -0
- package/dist/types/components/json-viewer/json-viewer.d.ts +82 -0
- package/dist/types/components/mention-input/index.d.ts +2 -0
- package/dist/types/components/mention-input/mention-input.d.ts +87 -0
- package/dist/types/components/menu/menu.d.ts +23 -5
- package/dist/types/components/metric-card/index.d.ts +1 -0
- package/dist/types/components/metric-card/metric-card.d.ts +37 -0
- package/dist/types/components/multi-select/index.d.ts +2 -0
- package/dist/types/components/multi-select/multi-select.d.ts +73 -0
- package/dist/types/components/password-field/index.d.ts +2 -0
- package/dist/types/components/password-field/password-field.d.ts +34 -0
- package/dist/types/components/popover/popover.d.ts +1 -1
- package/dist/types/components/radio-cards/index.d.ts +1 -0
- package/dist/types/components/radio-cards/radio-cards.d.ts +42 -0
- package/dist/types/components/resizable-panels/index.d.ts +2 -0
- package/dist/types/components/resizable-panels/resizable-panels.d.ts +42 -0
- package/dist/types/components/scroll-area/index.d.ts +2 -0
- package/dist/types/components/scroll-area/scroll-area.d.ts +34 -0
- package/dist/types/components/search-field/index.d.ts +1 -0
- package/dist/types/components/search-field/search-field.d.ts +31 -0
- package/dist/types/components/segmented-control/index.d.ts +2 -0
- package/dist/types/components/segmented-control/segmented-control.d.ts +32 -0
- package/dist/types/components/select/select.d.ts +1 -1
- package/dist/types/components/signature-pad/index.d.ts +2 -0
- package/dist/types/components/signature-pad/signature-pad.d.ts +104 -0
- package/dist/types/components/slider/index.d.ts +1 -0
- package/dist/types/components/slider/slider.d.ts +70 -0
- package/dist/types/components/sortable-data-table/index.d.ts +1 -0
- package/dist/types/components/sortable-data-table/sortable-data-table.d.ts +76 -0
- package/dist/types/components/split-button/index.d.ts +2 -0
- package/dist/types/components/split-button/split-button.d.ts +55 -0
- package/dist/types/components/stepper/index.d.ts +2 -0
- package/dist/types/components/stepper/stepper.d.ts +85 -0
- package/dist/types/components/swipe-actions/index.d.ts +2 -0
- package/dist/types/components/swipe-actions/swipe-actions.d.ts +44 -0
- package/dist/types/components/tag-input/index.d.ts +2 -0
- package/dist/types/components/tag-input/tag-input.d.ts +66 -0
- package/dist/types/components/time-picker/index.d.ts +2 -0
- package/dist/types/components/time-picker/time-picker.d.ts +48 -0
- package/dist/types/components/timeline/index.d.ts +2 -0
- package/dist/types/components/timeline/timeline.d.ts +66 -0
- package/dist/types/components/toast/toast.d.ts +37 -2
- package/dist/types/components/toast-stack/index.d.ts +2 -0
- package/dist/types/components/toast-stack/toast-stack.d.ts +28 -0
- package/dist/types/components/tooltip/tooltip.d.ts +1 -1
- package/dist/types/components/tree-view/index.d.ts +1 -0
- package/dist/types/components/tree-view/tree-view.d.ts +47 -0
- package/dist/types/components/usage-meter/index.d.ts +2 -0
- package/dist/types/components/usage-meter/usage-meter.d.ts +83 -0
- package/dist/types/index.d.ts +40 -0
- package/dist/types/overlay/overlay-layer.d.ts +33 -0
- package/dist/types/overlay/use-overlay-floating.d.ts +11 -1
- package/dist/types/styling/media.d.ts +1 -0
- package/dist/types/styling/theme.d.ts +12 -0
- package/dist/types/utils/use-controlled-state.d.ts +2 -1
- package/dist/usage-meter-qyQ3rYVv.js +463 -0
- package/dist/usage-meter.js +2 -0
- package/dist/use-controlled-state-DpeVQZNR.js +20 -0
- package/dist/use-latest-callback-cj1OOQL6.js +11 -0
- package/dist/use-overlay-floating-DvJifLpF.js +31 -0
- package/package.json +175 -3
- package/dist/calendar-C9Yad_-w.js +0 -394
- package/dist/collection-registry-BTYi6zGh.js +0 -98
- package/dist/combobox-DiMC2g_u.js +0 -327
- package/dist/command-palette-V_2pEay7.js +0 -379
- package/dist/date-picker-C29Uo4Tx.js +0 -250
- package/dist/field-anatomy-D2ToMeRa.js +0 -109
- package/dist/menu-CGPTNRnF.js +0 -216
- package/dist/popover-CdRXjQqI.js +0 -113
- package/dist/select-BgG7WgSh.js +0 -286
- package/dist/toast-CjmELMZZ.js +0 -283
- package/dist/tooltip-CaL3rKbV.js +0 -108
- package/dist/use-controlled-state-CVXDa-qM.js +0 -21
- package/dist/use-overlay-floating-Bit-f0FU.js +0 -31
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { r as e, t } from "./sx-Dx9JUKp5.js";
|
|
3
3
|
import { n } from "./focus-ring-BK5W5_NY.js";
|
|
4
|
-
import {
|
|
4
|
+
import { r } from "./media-8yrN85VT.js";
|
|
5
5
|
import { t as i } from "./visually-hidden-BJdvqqvn.js";
|
|
6
6
|
import { useImperativeHandle as a, useLayoutEffect as o, useMemo as s, useRef as c } from "react";
|
|
7
7
|
import { vars as l } from "@jfrader/tokens/vars";
|
package/dist/pagination.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { t as Pagination } from "./pagination-
|
|
2
|
+
export { t as Pagination } from "./pagination-DmXZ8E85.js";
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { r as e } from "./sx-Dx9JUKp5.js";
|
|
3
|
+
import { t } from "./focus-ring-BK5W5_NY.js";
|
|
4
|
+
import { n, r, t as i } from "./media-8yrN85VT.js";
|
|
5
|
+
import { t as a } from "./use-controlled-state-DpeVQZNR.js";
|
|
6
|
+
import { t as o } from "./renderable-DzcIj1Lo.js";
|
|
7
|
+
import { t as s } from "./icon-wrapper-stN8sD7R.js";
|
|
8
|
+
import { t as c } from "./input-control-DmMuAuPS.js";
|
|
9
|
+
import { a as l, i as u, n as ee, r as d, t as f } from "./field-anatomy-COVdNpf5.js";
|
|
10
|
+
import { useEffect as p, useId as m, useRef as h } from "react";
|
|
11
|
+
import { vars as g } from "@jfrader/tokens/vars";
|
|
12
|
+
import { jsx as _, jsxs as v } from "@emotion/react/jsx-runtime";
|
|
13
|
+
import { useMergeRefs as y } from "@floating-ui/react";
|
|
14
|
+
//#region src/components/password-field/password-field.tsx
|
|
15
|
+
var b = { reveal: "Show password" }, x = e({
|
|
16
|
+
position: "relative",
|
|
17
|
+
minInlineSize: 0
|
|
18
|
+
}), S = {
|
|
19
|
+
sm: e({
|
|
20
|
+
blockSize: g.space[8],
|
|
21
|
+
paddingInlineStart: g.space[3],
|
|
22
|
+
paddingInlineEnd: g.space[8],
|
|
23
|
+
fontSize: g.textSize.sm
|
|
24
|
+
}),
|
|
25
|
+
md: e({
|
|
26
|
+
blockSize: g.space[10],
|
|
27
|
+
paddingInlineStart: g.space[4],
|
|
28
|
+
paddingInlineEnd: g.space[10],
|
|
29
|
+
fontSize: g.textSize.sm
|
|
30
|
+
}),
|
|
31
|
+
lg: e({
|
|
32
|
+
blockSize: g.space[12],
|
|
33
|
+
paddingInlineStart: g.space[4],
|
|
34
|
+
paddingInlineEnd: g.space[12],
|
|
35
|
+
fontSize: g.textSize.md
|
|
36
|
+
})
|
|
37
|
+
}, C = e({
|
|
38
|
+
lineHeight: g.lineHeight.base,
|
|
39
|
+
[i]: { fontSize: g.textSize.md }
|
|
40
|
+
}), w = e({
|
|
41
|
+
position: "absolute",
|
|
42
|
+
insetBlock: 0,
|
|
43
|
+
insetInlineEnd: g.space[1],
|
|
44
|
+
marginBlock: "auto",
|
|
45
|
+
display: "inline-grid",
|
|
46
|
+
placeItems: "center",
|
|
47
|
+
padding: 0,
|
|
48
|
+
border: 0,
|
|
49
|
+
borderRadius: g.radius.sm,
|
|
50
|
+
backgroundColor: "transparent",
|
|
51
|
+
color: g.color.textMuted,
|
|
52
|
+
cursor: "pointer",
|
|
53
|
+
transitionProperty: "background-color, color, transform",
|
|
54
|
+
transitionDuration: g.motion.duration.fast,
|
|
55
|
+
transitionTimingFunction: g.motion.easeStandard,
|
|
56
|
+
"&:hover:not(:disabled)": {
|
|
57
|
+
backgroundColor: g.color.surfaceHover,
|
|
58
|
+
color: g.color.text
|
|
59
|
+
},
|
|
60
|
+
"&:active:not(:disabled)": { transform: "scale(0.94)" },
|
|
61
|
+
"&:focus-visible": t,
|
|
62
|
+
"&:disabled": {
|
|
63
|
+
opacity: .55,
|
|
64
|
+
cursor: "not-allowed"
|
|
65
|
+
},
|
|
66
|
+
[r]: {
|
|
67
|
+
transitionDuration: "0s",
|
|
68
|
+
"&:active:not(:disabled)": { transform: "none" }
|
|
69
|
+
},
|
|
70
|
+
[n]: { "&[aria-pressed=\"true\"]": {
|
|
71
|
+
backgroundColor: "Highlight",
|
|
72
|
+
color: "HighlightText"
|
|
73
|
+
} }
|
|
74
|
+
}), T = {
|
|
75
|
+
sm: e({
|
|
76
|
+
inlineSize: g.space[6],
|
|
77
|
+
blockSize: g.space[6],
|
|
78
|
+
fontSize: g.textSize.md
|
|
79
|
+
}),
|
|
80
|
+
md: e({
|
|
81
|
+
inlineSize: g.space[8],
|
|
82
|
+
blockSize: g.space[8],
|
|
83
|
+
fontSize: g.textSize.lg
|
|
84
|
+
}),
|
|
85
|
+
lg: e({
|
|
86
|
+
inlineSize: g.space[10],
|
|
87
|
+
blockSize: g.space[10],
|
|
88
|
+
fontSize: g.textSize.xl
|
|
89
|
+
})
|
|
90
|
+
}, E = e({
|
|
91
|
+
"& [data-slash]": {
|
|
92
|
+
strokeDasharray: "1 2",
|
|
93
|
+
strokeDashoffset: 1,
|
|
94
|
+
transitionProperty: "stroke-dashoffset",
|
|
95
|
+
transitionDuration: g.motion.duration.base,
|
|
96
|
+
transitionTimingFunction: g.motion.easeStandard
|
|
97
|
+
},
|
|
98
|
+
"&[data-state=\"on\"] [data-slash]": { strokeDashoffset: 0 },
|
|
99
|
+
[r]: { "& [data-slash]": { transitionDuration: "0s" } }
|
|
100
|
+
}), D = "M3 3l18 18";
|
|
101
|
+
function O({ revealed: e }) {
|
|
102
|
+
let t = `password-field-mask-${m().replace(/[^\w-]/g, "_")}`;
|
|
103
|
+
return /* @__PURE__ */ v("svg", {
|
|
104
|
+
viewBox: "0 0 24 24",
|
|
105
|
+
fill: "none",
|
|
106
|
+
stroke: "currentColor",
|
|
107
|
+
strokeWidth: 1.75,
|
|
108
|
+
strokeLinecap: "round",
|
|
109
|
+
strokeLinejoin: "round",
|
|
110
|
+
"data-state": e ? "on" : "off",
|
|
111
|
+
css: E,
|
|
112
|
+
children: [
|
|
113
|
+
/* @__PURE__ */ v("mask", {
|
|
114
|
+
id: t,
|
|
115
|
+
maskUnits: "userSpaceOnUse",
|
|
116
|
+
x: "0",
|
|
117
|
+
y: "0",
|
|
118
|
+
width: "24",
|
|
119
|
+
height: "24",
|
|
120
|
+
children: [/* @__PURE__ */ _("rect", {
|
|
121
|
+
width: "24",
|
|
122
|
+
height: "24",
|
|
123
|
+
fill: "white",
|
|
124
|
+
stroke: "none"
|
|
125
|
+
}), /* @__PURE__ */ _("path", {
|
|
126
|
+
d: D,
|
|
127
|
+
pathLength: 1,
|
|
128
|
+
stroke: "black",
|
|
129
|
+
strokeWidth: 5,
|
|
130
|
+
"data-slash": ""
|
|
131
|
+
})]
|
|
132
|
+
}),
|
|
133
|
+
/* @__PURE__ */ v("g", {
|
|
134
|
+
mask: `url(#${t})`,
|
|
135
|
+
children: [/* @__PURE__ */ _("path", { d: "M2.06 12.35a1 1 0 0 1 0-.7 10.75 10.75 0 0 1 19.88 0 1 1 0 0 1 0 .7 10.75 10.75 0 0 1-19.88 0" }), /* @__PURE__ */ _("circle", {
|
|
136
|
+
cx: "12",
|
|
137
|
+
cy: "12",
|
|
138
|
+
r: "3"
|
|
139
|
+
})]
|
|
140
|
+
}),
|
|
141
|
+
/* @__PURE__ */ _("path", {
|
|
142
|
+
d: D,
|
|
143
|
+
pathLength: 1,
|
|
144
|
+
"data-slash": ""
|
|
145
|
+
})
|
|
146
|
+
]
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
function k({ ref: e, value: t, defaultValue: n, onChange: r, onValueChange: i, revealed: m, defaultRevealed: g = !1, onRevealedChange: E, label: D, description: k, error: A, size: j = "md", messages: M, revealIcon: N, slotProps: P, className: F, sx: I, dir: L, disabled: R, required: z, form: B, id: V, "aria-labelledby": H, "aria-describedby": U, "aria-invalid": W, ...G }) {
|
|
150
|
+
let K = l({
|
|
151
|
+
id: V,
|
|
152
|
+
description: k,
|
|
153
|
+
error: A,
|
|
154
|
+
"aria-describedby": U,
|
|
155
|
+
"aria-invalid": W
|
|
156
|
+
}), [q, J, Y] = a(m, g, E), X = q ?? !1, Z = h(null), Q = y([Z, e]), te = {
|
|
157
|
+
...b,
|
|
158
|
+
...M
|
|
159
|
+
}, $ = `${K.id}-label`, ne = H === void 0 ? void 0 : [H, o(D) && $].filter(Boolean).join(" ");
|
|
160
|
+
p(() => {
|
|
161
|
+
let e = Z.current?.form;
|
|
162
|
+
if (!e) return;
|
|
163
|
+
let t = (e) => {
|
|
164
|
+
queueMicrotask(() => {
|
|
165
|
+
e.defaultPrevented || Y();
|
|
166
|
+
});
|
|
167
|
+
};
|
|
168
|
+
return e.addEventListener("reset", t), () => e.removeEventListener("reset", t);
|
|
169
|
+
}, [B, Y]);
|
|
170
|
+
let re = (e) => {
|
|
171
|
+
r?.(e), i?.(e.currentTarget.value);
|
|
172
|
+
};
|
|
173
|
+
return /* @__PURE__ */ v(u, {
|
|
174
|
+
"data-ui": "password-field",
|
|
175
|
+
dir: L,
|
|
176
|
+
className: F,
|
|
177
|
+
sx: I,
|
|
178
|
+
part: P?.root,
|
|
179
|
+
children: [
|
|
180
|
+
/* @__PURE__ */ _(d, {
|
|
181
|
+
id: $,
|
|
182
|
+
htmlFor: K.id,
|
|
183
|
+
required: z,
|
|
184
|
+
part: P?.label,
|
|
185
|
+
children: D
|
|
186
|
+
}),
|
|
187
|
+
/* @__PURE__ */ v("div", {
|
|
188
|
+
className: P?.shell?.className,
|
|
189
|
+
css: [x, P?.shell?.css],
|
|
190
|
+
children: [/* @__PURE__ */ _("input", {
|
|
191
|
+
autoCapitalize: "none",
|
|
192
|
+
autoCorrect: "off",
|
|
193
|
+
spellCheck: !1,
|
|
194
|
+
...G,
|
|
195
|
+
ref: Q,
|
|
196
|
+
id: K.id,
|
|
197
|
+
type: X ? "text" : "password",
|
|
198
|
+
value: t,
|
|
199
|
+
defaultValue: n,
|
|
200
|
+
dir: L,
|
|
201
|
+
disabled: R,
|
|
202
|
+
required: z,
|
|
203
|
+
form: B,
|
|
204
|
+
"aria-labelledby": ne,
|
|
205
|
+
"aria-describedby": K.describedBy,
|
|
206
|
+
"aria-invalid": K.ariaInvalid,
|
|
207
|
+
onChange: re,
|
|
208
|
+
className: P?.control?.className,
|
|
209
|
+
css: [
|
|
210
|
+
c,
|
|
211
|
+
C,
|
|
212
|
+
S[j],
|
|
213
|
+
P?.control?.css
|
|
214
|
+
]
|
|
215
|
+
}), /* @__PURE__ */ _("button", {
|
|
216
|
+
type: "button",
|
|
217
|
+
disabled: R,
|
|
218
|
+
"aria-label": te.reveal,
|
|
219
|
+
"aria-pressed": X,
|
|
220
|
+
"aria-controls": K.id,
|
|
221
|
+
onClick: () => J(!X),
|
|
222
|
+
className: P?.reveal?.className,
|
|
223
|
+
css: [
|
|
224
|
+
w,
|
|
225
|
+
T[j],
|
|
226
|
+
P?.reveal?.css
|
|
227
|
+
],
|
|
228
|
+
children: /* @__PURE__ */ _("span", {
|
|
229
|
+
"aria-hidden": !0,
|
|
230
|
+
css: s,
|
|
231
|
+
children: N ? N(X) : /* @__PURE__ */ _(O, { revealed: X })
|
|
232
|
+
})
|
|
233
|
+
})]
|
|
234
|
+
}),
|
|
235
|
+
/* @__PURE__ */ _(f, {
|
|
236
|
+
id: K.descriptionId,
|
|
237
|
+
part: P?.description,
|
|
238
|
+
children: k
|
|
239
|
+
}),
|
|
240
|
+
/* @__PURE__ */ _(ee, {
|
|
241
|
+
id: K.errorId,
|
|
242
|
+
part: P?.error,
|
|
243
|
+
children: A
|
|
244
|
+
})
|
|
245
|
+
]
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
k.displayName = "PasswordField";
|
|
249
|
+
//#endregion
|
|
250
|
+
export { k as t };
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { r as e, t } from "./sx-Dx9JUKp5.js";
|
|
3
|
+
import { t as n } from "./use-controlled-state-DpeVQZNR.js";
|
|
4
|
+
import { n as r } from "./surface-DZ4d-2aL.js";
|
|
5
|
+
import { t as i } from "./trigger-style-B1KVC8O1.js";
|
|
6
|
+
import { n as a, r as o } from "./overlay-layer-SeUyyEPD.js";
|
|
7
|
+
import { t as s } from "./overlay-portal-C4JZFq2M.js";
|
|
8
|
+
import { t as c } from "./use-overlay-floating-DvJifLpF.js";
|
|
9
|
+
import { createContext as l, useContext as u, useEffect as d, useMemo as f, useRef as p } from "react";
|
|
10
|
+
import { vars as m } from "@jfrader/tokens/vars";
|
|
11
|
+
import { jsx as h } from "@emotion/react/jsx-runtime";
|
|
12
|
+
import { FloatingFocusManager as g, useClick as _, useInteractions as v, useMergeRefs as y, useRole as b } from "@floating-ui/react";
|
|
13
|
+
//#region src/components/popover/popover.tsx
|
|
14
|
+
var x = l(null);
|
|
15
|
+
function S(e) {
|
|
16
|
+
let t = u(x);
|
|
17
|
+
if (!t) throw Error(`Popover.${e} must be rendered inside <Popover>.`);
|
|
18
|
+
return t;
|
|
19
|
+
}
|
|
20
|
+
var C = e({
|
|
21
|
+
...r,
|
|
22
|
+
borderRadius: m.radius.lg,
|
|
23
|
+
boxShadow: m.shadow.overlay,
|
|
24
|
+
padding: m.space[4],
|
|
25
|
+
minInlineSize: "200px",
|
|
26
|
+
maxInlineSize: "min(360px, calc(100vw - 32px))",
|
|
27
|
+
fontSize: m.textSize.sm
|
|
28
|
+
});
|
|
29
|
+
function w({ nodeId: e, open: t, defaultOpen: r = !1, onOpenChange: i, placement: a = "bottom", children: s }) {
|
|
30
|
+
let [l = !1, u] = n(t, r, i), m = p(!1), { refs: g, floatingStyles: y, context: S } = c({
|
|
31
|
+
open: l,
|
|
32
|
+
placement: a,
|
|
33
|
+
nodeId: e,
|
|
34
|
+
onOpenChange: (e, t, n) => {
|
|
35
|
+
e || (m.current = n === "escape-key"), u(e);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
d(() => {
|
|
39
|
+
!l && m.current && (m.current = !1, g.domReference.current?.focus());
|
|
40
|
+
}, [l, g]);
|
|
41
|
+
let C = _(S), w = o(S, "container"), T = b(S, { role: "dialog" }), { getReferenceProps: E, getFloatingProps: D } = v([
|
|
42
|
+
C,
|
|
43
|
+
...w,
|
|
44
|
+
T
|
|
45
|
+
]), O = f(() => ({
|
|
46
|
+
open: l,
|
|
47
|
+
refs: g,
|
|
48
|
+
floatingContext: S,
|
|
49
|
+
floatingStyles: y,
|
|
50
|
+
getReferenceProps: E,
|
|
51
|
+
getFloatingProps: D
|
|
52
|
+
}), [
|
|
53
|
+
l,
|
|
54
|
+
g,
|
|
55
|
+
S,
|
|
56
|
+
y,
|
|
57
|
+
E,
|
|
58
|
+
D
|
|
59
|
+
]);
|
|
60
|
+
return /* @__PURE__ */ h(x.Provider, {
|
|
61
|
+
value: O,
|
|
62
|
+
children: s
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
function T(e) {
|
|
66
|
+
return /* @__PURE__ */ h(a, { children: (t) => /* @__PURE__ */ h(w, {
|
|
67
|
+
...e,
|
|
68
|
+
nodeId: t
|
|
69
|
+
}) });
|
|
70
|
+
}
|
|
71
|
+
T.displayName = "Popover";
|
|
72
|
+
function E({ ref: e, className: n, sx: r, ...a }) {
|
|
73
|
+
let { refs: o, getReferenceProps: s } = S("Trigger"), c = y([o.setReference, e]);
|
|
74
|
+
return /* @__PURE__ */ h(t, {
|
|
75
|
+
className: n,
|
|
76
|
+
styles: i,
|
|
77
|
+
sx: r,
|
|
78
|
+
children: (e) => /* @__PURE__ */ h("button", {
|
|
79
|
+
type: "button",
|
|
80
|
+
...s(a),
|
|
81
|
+
ref: c,
|
|
82
|
+
"data-ui": "popover-trigger",
|
|
83
|
+
className: e
|
|
84
|
+
})
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
E.displayName = "Popover.Trigger";
|
|
88
|
+
function D({ ref: e, style: n, className: r, sx: i, ...a }) {
|
|
89
|
+
let { open: o, refs: c, floatingContext: l, floatingStyles: u, getFloatingProps: d } = S("Content"), f = y([c.setFloating, e]);
|
|
90
|
+
return o ? /* @__PURE__ */ h(s, { children: /* @__PURE__ */ h(g, {
|
|
91
|
+
context: l,
|
|
92
|
+
modal: !1,
|
|
93
|
+
initialFocus: -1,
|
|
94
|
+
returnFocus: !1,
|
|
95
|
+
closeOnFocusOut: !1,
|
|
96
|
+
children: /* @__PURE__ */ h(t, {
|
|
97
|
+
className: r,
|
|
98
|
+
styles: C,
|
|
99
|
+
sx: i,
|
|
100
|
+
children: (e) => /* @__PURE__ */ h("div", {
|
|
101
|
+
...d(a),
|
|
102
|
+
ref: f,
|
|
103
|
+
"data-ui": "popover",
|
|
104
|
+
style: {
|
|
105
|
+
...n,
|
|
106
|
+
...u
|
|
107
|
+
},
|
|
108
|
+
className: e
|
|
109
|
+
})
|
|
110
|
+
})
|
|
111
|
+
}) }) : null;
|
|
112
|
+
}
|
|
113
|
+
D.displayName = "Popover.Content";
|
|
114
|
+
var O = Object.assign(T, {
|
|
115
|
+
Trigger: E,
|
|
116
|
+
Content: D
|
|
117
|
+
});
|
|
118
|
+
//#endregion
|
|
119
|
+
export { O as t };
|
package/dist/popover.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { t as Popover } from "./popover-
|
|
2
|
+
export { t as Popover } from "./popover-QHcEvf9c.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { i as e, r as t, t as n } from "./sx-Dx9JUKp5.js";
|
|
3
|
-
import { n as r,
|
|
3
|
+
import { n as r, r as i } from "./media-8yrN85VT.js";
|
|
4
4
|
import { t as a } from "./visually-hidden-BJdvqqvn.js";
|
|
5
5
|
import { t as o } from "./renderable-DzcIj1Lo.js";
|
|
6
6
|
import { useId as s } from "react";
|
|
@@ -29,8 +29,8 @@ var d = "40%", f = "1.4s ease-in-out infinite", p = 100, m = e({
|
|
|
29
29
|
transitionProperty: "width",
|
|
30
30
|
transitionDuration: c.motion.duration.base,
|
|
31
31
|
transitionTimingFunction: c.motion.easeStandard,
|
|
32
|
-
[
|
|
33
|
-
[
|
|
32
|
+
[i]: { transitionDuration: "0s" },
|
|
33
|
+
[r]: {
|
|
34
34
|
forcedColorAdjust: "none",
|
|
35
35
|
backgroundColor: "Highlight"
|
|
36
36
|
}
|
|
@@ -38,7 +38,7 @@ var d = "40%", f = "1.4s ease-in-out infinite", p = 100, m = e({
|
|
|
38
38
|
inlineSize: d,
|
|
39
39
|
animation: `${m} ${f}`,
|
|
40
40
|
"&:dir(rtl)": { animation: `${h} ${f}` },
|
|
41
|
-
[
|
|
41
|
+
[i]: {
|
|
42
42
|
"&, &:dir(rtl)": { animation: "none" },
|
|
43
43
|
opacity: .7
|
|
44
44
|
}
|
package/dist/progress.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { t as Progress } from "./progress-
|
|
2
|
+
export { t as Progress } from "./progress-CbOWBUdA.js";
|