@jfrader/ui 0.4.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/accordion-DLul6vIl.js +205 -0
- 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-Dlbq5-9D.js +382 -0
- package/dist/announcement-bar.js +2 -0
- package/dist/avatar-CaGJHy1N.js +145 -0
- package/dist/avatar-group-M1opAQEG.js +138 -0
- package/dist/avatar-group.js +2 -0
- package/dist/avatar.js +1 -1
- package/dist/badge-CjM5Agqk.js +119 -0
- package/dist/badge.js +1 -1
- package/dist/bottom-sheet-DjZOPq4k.js +674 -0
- package/dist/bottom-sheet.js +2 -0
- package/dist/{breadcrumbs-DVAOxfvL.js → breadcrumbs-BDK_LiwH.js} +11 -4
- package/dist/breadcrumbs.js +1 -1
- package/dist/{button-P2e7_44z.js → button-NLY0h6EJ.js} +8 -8
- package/dist/button.js +1 -1
- package/dist/calendar-BzJdv_SZ.js +449 -0
- package/dist/calendar.js +1 -1
- package/dist/card-Ca4KQKYQ.js +154 -0
- package/dist/card.js +1 -1
- package/dist/carousel-B7OrvD6J.js +474 -0
- package/dist/carousel.js +2 -0
- package/dist/{checkbox-COYG6L7d.js → checkbox-DKSzExj2.js} +17 -16
- package/dist/checkbox.js +1 -1
- package/dist/chip-group-DjQ0_6Y9.js +290 -0
- package/dist/chip-group.js +2 -0
- package/dist/code-block/shiki.js +147 -0
- package/dist/code-block-B5we2lZa.js +293 -0
- package/dist/code-block.js +2 -0
- package/dist/collection-registry-k6JcD3Jr.js +44 -0
- package/dist/combobox-DFFqOBCi.js +339 -0
- package/dist/combobox.js +1 -1
- package/dist/command-palette-BmQu2w4H.js +391 -0
- package/dist/command-palette.js +1 -1
- package/dist/comment-thread-ASaXDcGo.js +1410 -0
- package/dist/comment-thread.js +2 -0
- package/dist/context-menu-__1c2Dk9.js +370 -0
- package/dist/context-menu.js +2 -0
- package/dist/copy-button-DCSLcYS-.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-BiPN7yeK.js +255 -0
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker-DQpUeKqV.js +570 -0
- package/dist/date-range-picker.js +2 -0
- package/dist/{dialog-xaydbXl2.js → dialog-BX1zYMs-.js} +21 -20
- package/dist/dialog.js +1 -1
- package/dist/{divider-DYoJf0I_.js → divider-Cp7aNbhM.js} +21 -20
- package/dist/divider.js +1 -1
- package/dist/drawer-DsASTiP-.js +553 -0
- package/dist/drawer.js +2 -0
- package/dist/elastic-slider-BG6K019r.js +395 -0
- package/dist/elastic-slider.js +2 -0
- package/dist/empty-state-CDgrjPPf.js +142 -0
- package/dist/empty-state.js +2 -0
- package/dist/expandable-card-rUATve0o.js +347 -0
- package/dist/expandable-card.js +2 -0
- package/dist/expanding-search-BxOwtdwt.js +238 -0
- package/dist/expanding-search.js +2 -0
- package/dist/field-anatomy-COVdNpf5.js +84 -0
- package/dist/file-dropzone-BuXm3Tea.js +457 -0
- package/dist/file-dropzone.js +2 -0
- package/dist/filter-toolbar-Cy5Hqur-.js +314 -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-CoMJKg1g.js +347 -0
- package/dist/hover-card.js +2 -0
- package/dist/image-compare-BxY8Ykzt.js +415 -0
- package/dist/image-compare.js +2 -0
- package/dist/index.js +84 -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-DgWqyU75.js +802 -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-sq61si9L.js +600 -0
- package/dist/mention-input.js +2 -0
- package/dist/menu-DDKgmK2F.js +295 -0
- package/dist/menu.js +1 -1
- package/dist/metric-card--lVTz5Wn.js +118 -0
- package/dist/metric-card.js +2 -0
- package/dist/multi-select-DG1BCFX7.js +598 -0
- package/dist/multi-select.js +2 -0
- package/dist/{navigation-DhnKriOp.js → navigation-CC26JDr-.js} +24 -18
- package/dist/navigation.js +1 -1
- package/dist/overlay-layer-qEbpEtb8.js +78 -0
- package/dist/overlay-portal-C4JZFq2M.js +15 -0
- package/dist/{pagination-DYdwsxwe.js → pagination-BfkeWbmP.js} +24 -23
- package/dist/pagination.js +1 -1
- package/dist/password-field-03pWRkuY.js +250 -0
- package/dist/password-field.js +2 -0
- package/dist/pill-BaS-uIbn.js +58 -0
- package/dist/pill.js +1 -1
- package/dist/popover-CErIw2q3.js +125 -0
- package/dist/popover.js +1 -1
- package/dist/{progress-BpJswTG4.js → progress-DAQkfhPd.js} +5 -5
- package/dist/progress.js +1 -1
- package/dist/radio-cards-Cu9cBssN.js +456 -0
- package/dist/radio-cards.js +2 -0
- package/dist/{radio-group-Ce0_IWQr.js → radio-group-TIK0-iPX.js} +22 -19
- package/dist/radio-group.js +1 -1
- package/dist/resizable-panels-DUpQEpwG.js +520 -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-DMvho0KQ.js +274 -0
- package/dist/search-field.js +2 -0
- package/dist/segmented-control-8ZUGnsZm.js +327 -0
- package/dist/segmented-control.js +2 -0
- package/dist/select-D5rhJ8gi.js +293 -0
- package/dist/select.js +1 -1
- package/dist/signature-pad-_bTeguN9.js +645 -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-DVG6-Awh.js +308 -0
- package/dist/slider.js +2 -0
- package/dist/sortable-data-table-CYKT_Ng7.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-BCw4zZom.js +262 -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-CBuJREU1.js +420 -0
- package/dist/swipe-actions.js +2 -0
- package/dist/switch-C1WrKrf-.js +145 -0
- package/dist/switch.js +1 -1
- package/dist/tabs-XluwRjgg.js +210 -0
- 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-hU72iSVS.js} +20 -17
- package/dist/text-field.js +1 -1
- package/dist/{textarea-DyfjtP0A.js → textarea-3k4Y0QQ3.js} +23 -20
- package/dist/textarea.js +1 -1
- package/dist/theme-root.js +1 -1
- package/dist/theme-switch-C505TtU8.js +166 -0
- package/dist/theme-switch.js +2 -0
- package/dist/time-picker-CPlhW0tr.js +311 -0
- package/dist/time-picker.js +2 -0
- package/dist/timeline-B0uAAVfT.js +624 -0
- package/dist/timeline.js +2 -0
- package/dist/toast-B7wo3sX1.js +371 -0
- package/dist/toast-stack-B40VpS4M.js +197 -0
- package/dist/toast-stack.js +2 -0
- package/dist/toast.js +1 -1
- package/dist/{toggle-group-CI0e7hFm.js → toggle-group-B2fpFZwV.js} +5 -5
- package/dist/toggle-group.js +1 -1
- package/dist/tooltip-BvgVTCTN.js +120 -0
- package/dist/tooltip.js +1 -1
- package/dist/tree-view-j8qLqkb_.js +364 -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/checkbox/checkbox.d.ts +1 -1
- 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 +2 -2
- package/dist/types/components/comment-thread/comment-thread.d.ts +118 -0
- package/dist/types/components/comment-thread/index.d.ts +1 -0
- package/dist/types/components/comment-thread/thread-core.d.ts +96 -0
- package/dist/types/components/comment-thread/thread-parts.d.ts +114 -0
- package/dist/types/components/context-menu/context-menu.d.ts +55 -0
- package/dist/types/components/context-menu/index.d.ts +2 -0
- 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/elastic-slider/elastic-slider.d.ts +53 -0
- package/dist/types/components/elastic-slider/index.d.ts +1 -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/expanding-search/expanding-search.d.ts +22 -0
- package/dist/types/components/expanding-search/index.d.ts +1 -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 +68 -7
- 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/pagination/pagination.d.ts +1 -1
- 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/radio-group/radio-group.d.ts +1 -1
- 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-style.d.ts +14 -0
- package/dist/types/components/slider/slider.d.ts +62 -0
- package/dist/types/components/slider/use-slider-interaction.d.ts +79 -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/tabs/tabs.d.ts +1 -1
- 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/text-field/text-field.d.ts +1 -1
- package/dist/types/components/textarea/textarea.d.ts +1 -1
- package/dist/types/components/theme-switch/index.d.ts +1 -0
- package/dist/types/components/theme-switch/theme-switch.d.ts +33 -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 +2 -2
- 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 +45 -0
- package/dist/types/overlay/overlay-layer.d.ts +53 -0
- package/dist/types/overlay/use-overlay-floating.d.ts +19 -2
- 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-Bx2jBKAA.js +33 -0
- package/dist/use-slider-interaction-ChL-208h.js +234 -0
- package/package.json +195 -3
- package/dist/accordion-Bd-j04hW.js +0 -198
- package/dist/avatar-BahDVO9t.js +0 -132
- package/dist/badge-B_sLygxU.js +0 -108
- package/dist/calendar-C9Yad_-w.js +0 -394
- package/dist/card-D-aI2QHx.js +0 -158
- 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/pill-DO2gHzMb.js +0 -56
- package/dist/popover-CdRXjQqI.js +0 -113
- package/dist/select-BgG7WgSh.js +0 -286
- package/dist/switch-Dr-qjmT4.js +0 -142
- package/dist/tabs-CK_g1RKa.js +0 -203
- 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
- package/dist/{theme-root-BbTBuLMQ.js → theme-root-Bs1U3uPA.js} +2 -2
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { i as e, r as t, t as n } from "./sx-Dx9JUKp5.js";
|
|
3
|
+
import { n as r } from "./focus-ring-BK5W5_NY.js";
|
|
4
|
+
import { n as i, r as a, t as o } from "./media-8yrN85VT.js";
|
|
5
|
+
import { a as ee, c as te, d as ne, f as re, g as ie, h as ae, i as oe, l as se, m as s, n as c, o as ce, p as le, r as l, s as ue, t as u, u as de } from "./use-slider-interaction-ChL-208h.js";
|
|
6
|
+
import { useEffect as d, useRef as f, useState as fe } from "react";
|
|
7
|
+
import { vars as p } from "@jfrader/tokens/vars";
|
|
8
|
+
import { createElement as m } from "@emotion/react";
|
|
9
|
+
import { jsx as h, jsxs as g } from "@emotion/react/jsx-runtime";
|
|
10
|
+
import { MotionConfig as pe, motion as me, useMotionValue as he, useMotionValueEvent as _, useReducedMotion as ge, useSpring as v, useTransform as _e, useVelocity as ve } from "motion/react";
|
|
11
|
+
//#region src/components/elastic-slider/elastic-slider.tsx
|
|
12
|
+
var y = 26, ye = 1.15, be = 7, xe = 10, Se = 6, Ce = .02, we = 10, Te = {
|
|
13
|
+
stiffness: 380,
|
|
14
|
+
damping: 26
|
|
15
|
+
}, Ee = {
|
|
16
|
+
stiffness: 300,
|
|
17
|
+
damping: 20
|
|
18
|
+
}, De = {
|
|
19
|
+
type: "spring",
|
|
20
|
+
stiffness: 420,
|
|
21
|
+
damping: 28
|
|
22
|
+
}, b = "--elastic-slider-stretch-start", x = "--elastic-slider-stretch-end", S = "--elastic-slider-squash", C = "--elastic-slider-shift", w = "--elastic-slider-tilt", T = e({
|
|
23
|
+
"0%": { scale: "1" },
|
|
24
|
+
"45%": { scale: "1.8" },
|
|
25
|
+
"100%": { scale: "1" }
|
|
26
|
+
}), Oe = t(s, { label: "elastic-slider" }), ke = t({ marginInline: p.space[6] }), Ae = t({
|
|
27
|
+
position: "absolute",
|
|
28
|
+
insetInline: 0,
|
|
29
|
+
insetBlock: 0,
|
|
30
|
+
marginBlock: "auto",
|
|
31
|
+
blockSize: p.space[2],
|
|
32
|
+
borderRadius: p.radius.full,
|
|
33
|
+
background: p.color.surfaceInset,
|
|
34
|
+
pointerEvents: "none",
|
|
35
|
+
[i]: {
|
|
36
|
+
forcedColorAdjust: "none",
|
|
37
|
+
background: "Canvas"
|
|
38
|
+
}
|
|
39
|
+
}), je = t({
|
|
40
|
+
position: "absolute",
|
|
41
|
+
insetInlineStart: `calc(-1 * var(${b}, 0px))`,
|
|
42
|
+
insetInlineEnd: `calc(-1 * var(${x}, 0px))`,
|
|
43
|
+
insetBlock: 0,
|
|
44
|
+
marginBlock: "auto",
|
|
45
|
+
blockSize: p.space[2],
|
|
46
|
+
boxSizing: "border-box",
|
|
47
|
+
overflow: "hidden",
|
|
48
|
+
border: `1px solid ${p.color.borderControl}`,
|
|
49
|
+
borderRadius: p.radius.full,
|
|
50
|
+
scale: `1 var(${S}, 1)`,
|
|
51
|
+
pointerEvents: "none",
|
|
52
|
+
[a]: {
|
|
53
|
+
insetInline: 0,
|
|
54
|
+
scale: "none"
|
|
55
|
+
},
|
|
56
|
+
[i]: {
|
|
57
|
+
forcedColorAdjust: "none",
|
|
58
|
+
borderColor: "CanvasText"
|
|
59
|
+
}
|
|
60
|
+
}), Me = t({
|
|
61
|
+
position: "absolute",
|
|
62
|
+
insetBlock: 0,
|
|
63
|
+
insetInlineStart: 0,
|
|
64
|
+
background: p.color.accent,
|
|
65
|
+
[i]: { background: "Highlight" }
|
|
66
|
+
}), Ne = t({
|
|
67
|
+
position: "absolute",
|
|
68
|
+
insetBlock: 0,
|
|
69
|
+
marginBlock: "auto",
|
|
70
|
+
marginInlineStart: `calc(${p.space[1]} / -2)`,
|
|
71
|
+
inlineSize: p.space[1],
|
|
72
|
+
blockSize: p.space[3],
|
|
73
|
+
boxSizing: "border-box",
|
|
74
|
+
border: `1px solid ${p.color.borderControl}`,
|
|
75
|
+
borderRadius: p.radius.full,
|
|
76
|
+
background: p.color.surfaceRaised,
|
|
77
|
+
pointerEvents: "none",
|
|
78
|
+
"&[data-latched]": {
|
|
79
|
+
blockSize: p.space[4],
|
|
80
|
+
background: p.color.accent,
|
|
81
|
+
animation: `${T} ${p.motion.duration.slow} ${p.motion.easeStandard}`
|
|
82
|
+
},
|
|
83
|
+
[a]: { "&[data-latched]": { animation: "none" } },
|
|
84
|
+
[i]: {
|
|
85
|
+
forcedColorAdjust: "none",
|
|
86
|
+
background: "Canvas",
|
|
87
|
+
borderColor: "CanvasText",
|
|
88
|
+
"&[data-latched]": { background: "Highlight" }
|
|
89
|
+
}
|
|
90
|
+
}), Pe = t({
|
|
91
|
+
position: "absolute",
|
|
92
|
+
insetBlock: 0,
|
|
93
|
+
marginBlock: "auto",
|
|
94
|
+
marginInlineStart: `calc(${p.space[8]} / -2)`,
|
|
95
|
+
inlineSize: p.space[8],
|
|
96
|
+
blockSize: p.space[8],
|
|
97
|
+
display: "grid",
|
|
98
|
+
placeItems: "center",
|
|
99
|
+
borderRadius: p.radius.full,
|
|
100
|
+
translate: `var(${C}, 0px)`,
|
|
101
|
+
cursor: "grab",
|
|
102
|
+
"&:focus-visible": {
|
|
103
|
+
...r,
|
|
104
|
+
zIndex: 2
|
|
105
|
+
},
|
|
106
|
+
[a]: { translate: "none" },
|
|
107
|
+
"&[data-dragging]": {
|
|
108
|
+
cursor: "grabbing",
|
|
109
|
+
zIndex: 3
|
|
110
|
+
},
|
|
111
|
+
"&[aria-disabled=\"true\"]": { cursor: "default" }
|
|
112
|
+
}), Fe = t({
|
|
113
|
+
inlineSize: p.space[6],
|
|
114
|
+
blockSize: p.space[6],
|
|
115
|
+
boxSizing: "border-box",
|
|
116
|
+
border: `2px solid ${p.color.borderControl}`,
|
|
117
|
+
borderRadius: p.radius.full,
|
|
118
|
+
background: p.color.surfaceRaised,
|
|
119
|
+
boxShadow: p.shadow.raised,
|
|
120
|
+
pointerEvents: "none",
|
|
121
|
+
[i]: {
|
|
122
|
+
forcedColorAdjust: "none",
|
|
123
|
+
background: "Canvas",
|
|
124
|
+
borderColor: "CanvasText",
|
|
125
|
+
boxShadow: "none"
|
|
126
|
+
}
|
|
127
|
+
}), Ie = t({
|
|
128
|
+
position: "absolute",
|
|
129
|
+
insetBlockEnd: `calc(100% + ${p.space[2]})`,
|
|
130
|
+
paddingInline: p.space[2],
|
|
131
|
+
paddingBlock: p.space[1],
|
|
132
|
+
inlineSize: "max-content",
|
|
133
|
+
maxInlineSize: "min(24rem, 80vw)",
|
|
134
|
+
overflowWrap: "anywhere",
|
|
135
|
+
border: `1px solid ${p.color.borderControl}`,
|
|
136
|
+
borderRadius: p.radius.md,
|
|
137
|
+
background: p.color.surfaceRaised,
|
|
138
|
+
color: p.color.text,
|
|
139
|
+
boxShadow: p.shadow.raised,
|
|
140
|
+
fontSize: p.textSize.xs,
|
|
141
|
+
fontVariantNumeric: "tabular-nums",
|
|
142
|
+
pointerEvents: "none",
|
|
143
|
+
transformOrigin: "bottom center",
|
|
144
|
+
rotate: `var(${w}, 0deg)`,
|
|
145
|
+
opacity: 0,
|
|
146
|
+
transition: `opacity ${p.motion.duration.fast} ${p.motion.easeStandard}`,
|
|
147
|
+
"[data-dragging] > &, [data-slider-thumb]:focus-visible > &": { opacity: 1 },
|
|
148
|
+
[o]: { insetBlockEnd: `calc(100% + ${p.space[4]})` },
|
|
149
|
+
[a]: { rotate: "none" },
|
|
150
|
+
[i]: {
|
|
151
|
+
borderColor: "CanvasText",
|
|
152
|
+
boxShadow: "none"
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
function Le(e) {
|
|
156
|
+
return Math.sign(e) * y * (1 - Math.exp(-Math.abs(e) / y));
|
|
157
|
+
}
|
|
158
|
+
function E(e) {
|
|
159
|
+
let { ref: t, value: r, defaultValue: i, onValueChange: a, onValueCommit: o, label: s, description: p, error: T, invalid: E = !1, disabled: D = !1, min: O = 0, max: k = 100, step: A = 1, largeStep: Re, marks: ze = [], locale: Be, formatOptions: Ve, formatValue: He, showValue: j = !0, start: M, end: N, haptics: Ue = !1, name: P, size: We = "md", slotProps: F, className: Ge, sx: Ke, onKeyDown: qe, "aria-label": Je, "aria-labelledby": Ye, "aria-describedby": Xe, "aria-invalid": Ze, ...Qe } = e, I = ge() ?? !1, L = v(0, Te), R = f(null), z = f(!1), [$e, B] = fe(null), V = (e) => {
|
|
160
|
+
R.current = e, B(e);
|
|
161
|
+
}, et = (e) => {
|
|
162
|
+
if (!Ue || I || e !== "touch") return;
|
|
163
|
+
let t = H.controlRef.current?.ownerDocument.defaultView?.navigator;
|
|
164
|
+
if (typeof t?.vibrate == "function") try {
|
|
165
|
+
t.vibrate(Se);
|
|
166
|
+
} catch {}
|
|
167
|
+
}, H = ee({
|
|
168
|
+
component: "ElasticSlider",
|
|
169
|
+
range: !1,
|
|
170
|
+
value: r,
|
|
171
|
+
defaultValue: i,
|
|
172
|
+
min: O,
|
|
173
|
+
max: k,
|
|
174
|
+
step: A,
|
|
175
|
+
largeStep: Re,
|
|
176
|
+
minStepsBetweenThumbs: 0,
|
|
177
|
+
disabled: D,
|
|
178
|
+
onValueChange: (e) => a?.(e),
|
|
179
|
+
onValueCommit: (e) => o?.(e),
|
|
180
|
+
onPointerSample: ({ raw: e, low: t, high: n, pxPerUnit: r, rtl: i }) => {
|
|
181
|
+
z.current = i, L.set(I ? 0 : Le((e - Math.max(t, Math.min(n, e))) * r));
|
|
182
|
+
},
|
|
183
|
+
resolvePointer: ({ raw: e, pxPerUnit: t, pointerType: n }) => {
|
|
184
|
+
let r = (n) => Math.abs(e - n) * t, i = R.current;
|
|
185
|
+
if (i !== null && r(i) > xe && (i = null), i === null) {
|
|
186
|
+
for (let e of Y) r(e) <= be && (i === null || r(e) < r(i)) && (i = e);
|
|
187
|
+
i !== null && et(n);
|
|
188
|
+
}
|
|
189
|
+
return i !== R.current && V(i), i ?? e;
|
|
190
|
+
},
|
|
191
|
+
onGestureEnd: () => {
|
|
192
|
+
L.set(0), V(null);
|
|
193
|
+
}
|
|
194
|
+
}), { id: U, controlRef: W, current: tt, percent: G } = H, K = tt, { format: q } = oe(Be, Ve, He), J = H.normalizeMarks(ze), Y = J.map((e) => e.value).sort((e, t) => e - t), nt = [
|
|
195
|
+
O,
|
|
196
|
+
k,
|
|
197
|
+
A,
|
|
198
|
+
...Y
|
|
199
|
+
].join(" ");
|
|
200
|
+
d(() => {
|
|
201
|
+
R.current = null, B(null), L.jump(0);
|
|
202
|
+
}, [nt]);
|
|
203
|
+
let rt = he(G(K));
|
|
204
|
+
d(() => rt.set(G(K)), [
|
|
205
|
+
K,
|
|
206
|
+
O,
|
|
207
|
+
k
|
|
208
|
+
]);
|
|
209
|
+
let it = v(_e(ve(rt), (e) => {
|
|
210
|
+
let t = W.current?.matches(":dir(rtl)") ? e : -e;
|
|
211
|
+
return Math.max(-10, Math.min(we, t * Ce));
|
|
212
|
+
}), Ee), X = (e, t) => W.current?.style.setProperty(e, t);
|
|
213
|
+
_(L, "change", (e) => {
|
|
214
|
+
X(b, `${Math.max(0, -e)}px`), X(x, `${Math.max(0, e)}px`), X(S, String(1 - .4 * Math.min(1, Math.abs(e) / y))), X(C, `${z.current ? -e : e}px`);
|
|
215
|
+
}), _(it, "change", (e) => X(w, `${I ? 0 : e}deg`));
|
|
216
|
+
let Z = u(s), at = u(p), Q = u(T), $ = F?.thumb, ot = H.active === 0;
|
|
217
|
+
return /* @__PURE__ */ h(pe, {
|
|
218
|
+
reducedMotion: "user",
|
|
219
|
+
children: /* @__PURE__ */ h(n, {
|
|
220
|
+
className: Ge,
|
|
221
|
+
styles: Oe,
|
|
222
|
+
sx: Ke,
|
|
223
|
+
children: (e) => /* @__PURE__ */ g("div", {
|
|
224
|
+
...Qe,
|
|
225
|
+
ref: t,
|
|
226
|
+
className: e,
|
|
227
|
+
"data-ui": "elastic-slider",
|
|
228
|
+
"data-disabled": D || void 0,
|
|
229
|
+
onKeyDown: (e) => {
|
|
230
|
+
qe?.(e), H.handleRootKeyDown(e);
|
|
231
|
+
},
|
|
232
|
+
children: [
|
|
233
|
+
(Z || j) && /* @__PURE__ */ g("div", {
|
|
234
|
+
css: se,
|
|
235
|
+
children: [Z && /* @__PURE__ */ h("span", {
|
|
236
|
+
...F?.label,
|
|
237
|
+
id: `${U}-label`,
|
|
238
|
+
css: [de, F?.label?.css],
|
|
239
|
+
children: s
|
|
240
|
+
}), j && /* @__PURE__ */ h("span", {
|
|
241
|
+
...F?.readout,
|
|
242
|
+
"aria-hidden": "true",
|
|
243
|
+
"data-ui": "elastic-slider-readout",
|
|
244
|
+
css: [le, F?.readout?.css],
|
|
245
|
+
children: q(K)
|
|
246
|
+
})]
|
|
247
|
+
}),
|
|
248
|
+
at && /* @__PURE__ */ h("div", {
|
|
249
|
+
...F?.description,
|
|
250
|
+
id: `${U}-description`,
|
|
251
|
+
css: [ue, F?.description?.css],
|
|
252
|
+
children: p
|
|
253
|
+
}),
|
|
254
|
+
Q && /* @__PURE__ */ h("div", {
|
|
255
|
+
...F?.error,
|
|
256
|
+
id: `${U}-error`,
|
|
257
|
+
role: "alert",
|
|
258
|
+
css: [te, F?.error?.css],
|
|
259
|
+
children: T
|
|
260
|
+
}),
|
|
261
|
+
/* @__PURE__ */ g("div", {
|
|
262
|
+
css: ae,
|
|
263
|
+
children: [
|
|
264
|
+
u(M) && /* @__PURE__ */ h("div", {
|
|
265
|
+
...F?.start,
|
|
266
|
+
children: M
|
|
267
|
+
}),
|
|
268
|
+
/* @__PURE__ */ g("div", {
|
|
269
|
+
...F?.control,
|
|
270
|
+
...H.controlHandlers(F?.control),
|
|
271
|
+
css: [
|
|
272
|
+
ce,
|
|
273
|
+
ke,
|
|
274
|
+
ie[We],
|
|
275
|
+
F?.control?.css
|
|
276
|
+
],
|
|
277
|
+
"data-ui": "elastic-slider-control",
|
|
278
|
+
"data-disabled": D || void 0,
|
|
279
|
+
children: [
|
|
280
|
+
/* @__PURE__ */ h("div", {
|
|
281
|
+
...F?.rail,
|
|
282
|
+
"data-ui": "elastic-slider-rail",
|
|
283
|
+
"aria-hidden": "true",
|
|
284
|
+
css: [Ae, F?.rail?.css]
|
|
285
|
+
}),
|
|
286
|
+
/* @__PURE__ */ h("div", {
|
|
287
|
+
...F?.track,
|
|
288
|
+
"data-ui": "elastic-slider-track",
|
|
289
|
+
"aria-hidden": "true",
|
|
290
|
+
css: [je, F?.track?.css],
|
|
291
|
+
children: /* @__PURE__ */ h("div", {
|
|
292
|
+
...F?.fill,
|
|
293
|
+
"data-ui": "elastic-slider-fill",
|
|
294
|
+
css: [Me, F?.fill?.css],
|
|
295
|
+
style: {
|
|
296
|
+
...F?.fill?.style,
|
|
297
|
+
inlineSize: `${G(K)}%`
|
|
298
|
+
}
|
|
299
|
+
})
|
|
300
|
+
}),
|
|
301
|
+
J.map((e, t) => {
|
|
302
|
+
let n = c(F?.tick, t);
|
|
303
|
+
return /* @__PURE__ */ m("span", {
|
|
304
|
+
...n,
|
|
305
|
+
key: e.value,
|
|
306
|
+
"data-ui": "elastic-slider-tick",
|
|
307
|
+
"data-latched": $e === e.value || void 0,
|
|
308
|
+
"aria-hidden": "true",
|
|
309
|
+
css: [Ne, n?.css],
|
|
310
|
+
style: {
|
|
311
|
+
...n?.style,
|
|
312
|
+
insetInlineStart: `${G(e.value)}%`
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
}),
|
|
316
|
+
/* @__PURE__ */ g("div", {
|
|
317
|
+
...$,
|
|
318
|
+
id: `${U}-thumb`,
|
|
319
|
+
"data-slider-thumb": 0,
|
|
320
|
+
"data-dragging": ot || void 0,
|
|
321
|
+
role: "slider",
|
|
322
|
+
tabIndex: D ? -1 : 0,
|
|
323
|
+
"aria-orientation": "horizontal",
|
|
324
|
+
"aria-disabled": D,
|
|
325
|
+
"aria-invalid": Q || E ? !0 : $?.["aria-invalid"] ?? Ze,
|
|
326
|
+
"aria-valuemin": O,
|
|
327
|
+
"aria-valuemax": k,
|
|
328
|
+
"aria-valuenow": K,
|
|
329
|
+
"aria-valuetext": q(K),
|
|
330
|
+
"aria-label": $?.["aria-label"] ?? Je,
|
|
331
|
+
"aria-labelledby": l(Ye, $?.["aria-labelledby"], Z && `${U}-label`),
|
|
332
|
+
"aria-describedby": l(Xe, $?.["aria-describedby"], at && `${U}-description`, Q && `${U}-error`),
|
|
333
|
+
css: [Pe, $?.css],
|
|
334
|
+
style: {
|
|
335
|
+
...$?.style,
|
|
336
|
+
insetInlineStart: `${G(K)}%`
|
|
337
|
+
},
|
|
338
|
+
children: [/* @__PURE__ */ h(me.span, {
|
|
339
|
+
"aria-hidden": "true",
|
|
340
|
+
"data-ui": "elastic-slider-thumb-visual",
|
|
341
|
+
css: Fe,
|
|
342
|
+
animate: { scale: !I && ot ? ye : 1 },
|
|
343
|
+
transition: I ? { duration: 0 } : De
|
|
344
|
+
}), /* @__PURE__ */ h("span", {
|
|
345
|
+
...F?.bubble,
|
|
346
|
+
"data-ui": "elastic-slider-bubble",
|
|
347
|
+
"aria-hidden": "true",
|
|
348
|
+
css: [Ie, F?.bubble?.css],
|
|
349
|
+
style: {
|
|
350
|
+
...F?.bubble?.style,
|
|
351
|
+
...G(K) <= 50 ? { insetInlineStart: 0 } : { insetInlineEnd: 0 }
|
|
352
|
+
},
|
|
353
|
+
children: q(K)
|
|
354
|
+
})]
|
|
355
|
+
})
|
|
356
|
+
]
|
|
357
|
+
}),
|
|
358
|
+
u(N) && /* @__PURE__ */ h("div", {
|
|
359
|
+
...F?.end,
|
|
360
|
+
children: N
|
|
361
|
+
})
|
|
362
|
+
]
|
|
363
|
+
}),
|
|
364
|
+
J.some((e) => u(e.label)) && /* @__PURE__ */ h("div", {
|
|
365
|
+
css: re,
|
|
366
|
+
children: J.map((e, t) => {
|
|
367
|
+
if (!u(e.label)) return null;
|
|
368
|
+
let n = c(F?.mark, t);
|
|
369
|
+
return /* @__PURE__ */ m("button", {
|
|
370
|
+
...n,
|
|
371
|
+
key: e.value,
|
|
372
|
+
type: "button",
|
|
373
|
+
disabled: D,
|
|
374
|
+
"data-ui": "elastic-slider-mark",
|
|
375
|
+
css: [ne, n?.css],
|
|
376
|
+
onClick: (t) => {
|
|
377
|
+
n?.onClick?.(t), t.defaultPrevented || H.selectMark(e.value);
|
|
378
|
+
}
|
|
379
|
+
}, e.label);
|
|
380
|
+
})
|
|
381
|
+
}),
|
|
382
|
+
P !== void 0 && /* @__PURE__ */ h("input", {
|
|
383
|
+
type: "hidden",
|
|
384
|
+
disabled: D,
|
|
385
|
+
name: P,
|
|
386
|
+
value: K
|
|
387
|
+
})
|
|
388
|
+
]
|
|
389
|
+
})
|
|
390
|
+
})
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
E.displayName = "ElasticSlider";
|
|
394
|
+
//#endregion
|
|
395
|
+
export { E as t };
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { r as e, t } from "./sx-Dx9JUKp5.js";
|
|
3
|
+
import { t as n } from "./renderable-DzcIj1Lo.js";
|
|
4
|
+
import { useId as r } from "react";
|
|
5
|
+
import { vars as i } from "@jfrader/tokens/vars";
|
|
6
|
+
import { jsx as a, jsxs as o } from "@emotion/react/jsx-runtime";
|
|
7
|
+
//#region src/components/empty-state/empty-state.tsx
|
|
8
|
+
var s = "40ch", c = "24ch", l = e({
|
|
9
|
+
boxSizing: "border-box",
|
|
10
|
+
display: "flex",
|
|
11
|
+
gap: i.space[4],
|
|
12
|
+
minInlineSize: 0,
|
|
13
|
+
fontFamily: i.font.sans,
|
|
14
|
+
lineHeight: i.lineHeight.base,
|
|
15
|
+
color: i.color.text
|
|
16
|
+
}), u = {
|
|
17
|
+
centered: e({
|
|
18
|
+
flexDirection: "column",
|
|
19
|
+
alignItems: "center",
|
|
20
|
+
textAlign: "center",
|
|
21
|
+
paddingBlock: i.space[8],
|
|
22
|
+
paddingInline: i.space[5]
|
|
23
|
+
}),
|
|
24
|
+
inline: e({
|
|
25
|
+
flexDirection: "row",
|
|
26
|
+
flexWrap: "wrap",
|
|
27
|
+
alignItems: "center",
|
|
28
|
+
textAlign: "start",
|
|
29
|
+
paddingBlock: i.space[4],
|
|
30
|
+
paddingInline: i.space[5]
|
|
31
|
+
})
|
|
32
|
+
}, d = e({
|
|
33
|
+
boxSizing: "border-box",
|
|
34
|
+
display: "grid",
|
|
35
|
+
placeItems: "center",
|
|
36
|
+
flexShrink: 0,
|
|
37
|
+
inlineSize: i.space[12],
|
|
38
|
+
blockSize: i.space[12],
|
|
39
|
+
border: `1px solid ${i.color.border}`,
|
|
40
|
+
borderRadius: i.radius.md,
|
|
41
|
+
backgroundColor: i.color.surfaceHover,
|
|
42
|
+
color: i.color.textMuted,
|
|
43
|
+
"& > svg": {
|
|
44
|
+
inlineSize: i.space[6],
|
|
45
|
+
blockSize: i.space[6]
|
|
46
|
+
}
|
|
47
|
+
}), f = e({
|
|
48
|
+
display: "grid",
|
|
49
|
+
gap: i.space[2],
|
|
50
|
+
minInlineSize: 0
|
|
51
|
+
}), p = {
|
|
52
|
+
centered: e({
|
|
53
|
+
justifyItems: "center",
|
|
54
|
+
maxInlineSize: "100%"
|
|
55
|
+
}),
|
|
56
|
+
inline: e({ flex: `1 1 ${c}` })
|
|
57
|
+
}, m = e({
|
|
58
|
+
margin: 0,
|
|
59
|
+
fontSize: i.textSize.md,
|
|
60
|
+
fontWeight: i.fontWeight.medium,
|
|
61
|
+
lineHeight: i.lineHeight.base,
|
|
62
|
+
color: i.color.text,
|
|
63
|
+
textWrap: "balance",
|
|
64
|
+
overflowWrap: "anywhere"
|
|
65
|
+
}), h = e({
|
|
66
|
+
margin: 0,
|
|
67
|
+
maxInlineSize: s,
|
|
68
|
+
fontSize: i.textSize.sm,
|
|
69
|
+
color: i.color.textMuted,
|
|
70
|
+
textWrap: "pretty",
|
|
71
|
+
overflowWrap: "anywhere"
|
|
72
|
+
}), g = e({
|
|
73
|
+
display: "flex",
|
|
74
|
+
flexWrap: "wrap",
|
|
75
|
+
alignItems: "center",
|
|
76
|
+
gap: i.space[3]
|
|
77
|
+
}), _ = {
|
|
78
|
+
centered: e({ justifyContent: "center" }),
|
|
79
|
+
inline: void 0
|
|
80
|
+
};
|
|
81
|
+
function v(...e) {
|
|
82
|
+
return e.filter(Boolean).join(" ") || void 0;
|
|
83
|
+
}
|
|
84
|
+
function y({ ref: e, title: i, description: s, icon: c, action: y, headingLevel: b = 3, variant: x = "centered", slotProps: S, className: C, sx: w, "aria-labelledby": T, "aria-describedby": E, ...D }) {
|
|
85
|
+
let O = r(), k = `${O}-title`, A = `${O}-description`, j = n(i), M = n(s), N = `h${b}`;
|
|
86
|
+
return /* @__PURE__ */ a(t, {
|
|
87
|
+
className: C,
|
|
88
|
+
styles: [l, u[x]],
|
|
89
|
+
sx: w,
|
|
90
|
+
children: (t) => /* @__PURE__ */ o("section", {
|
|
91
|
+
...D,
|
|
92
|
+
ref: e,
|
|
93
|
+
"data-ui": "empty-state",
|
|
94
|
+
"data-variant": x,
|
|
95
|
+
"aria-labelledby": T ? v(T, j && k) : void 0,
|
|
96
|
+
"aria-describedby": v(E, M && A),
|
|
97
|
+
className: t,
|
|
98
|
+
children: [
|
|
99
|
+
n(c) && /* @__PURE__ */ a("div", {
|
|
100
|
+
"data-ui": "empty-state-icon",
|
|
101
|
+
"aria-hidden": "true",
|
|
102
|
+
className: S?.icon?.className,
|
|
103
|
+
css: [d, S?.icon?.css],
|
|
104
|
+
children: c
|
|
105
|
+
}),
|
|
106
|
+
/* @__PURE__ */ o("div", {
|
|
107
|
+
"data-ui": "empty-state-content",
|
|
108
|
+
className: S?.content?.className,
|
|
109
|
+
css: [
|
|
110
|
+
f,
|
|
111
|
+
p[x],
|
|
112
|
+
S?.content?.css
|
|
113
|
+
],
|
|
114
|
+
children: [j && /* @__PURE__ */ a(N, {
|
|
115
|
+
id: k,
|
|
116
|
+
className: S?.title?.className,
|
|
117
|
+
css: [m, S?.title?.css],
|
|
118
|
+
children: i
|
|
119
|
+
}), M && /* @__PURE__ */ a("p", {
|
|
120
|
+
id: A,
|
|
121
|
+
className: S?.description?.className,
|
|
122
|
+
css: [h, S?.description?.css],
|
|
123
|
+
children: s
|
|
124
|
+
})]
|
|
125
|
+
}),
|
|
126
|
+
n(y) && /* @__PURE__ */ a("div", {
|
|
127
|
+
"data-ui": "empty-state-action",
|
|
128
|
+
className: S?.action?.className,
|
|
129
|
+
css: [
|
|
130
|
+
g,
|
|
131
|
+
_[x],
|
|
132
|
+
S?.action?.css
|
|
133
|
+
],
|
|
134
|
+
children: y
|
|
135
|
+
})
|
|
136
|
+
]
|
|
137
|
+
})
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
y.displayName = "EmptyState";
|
|
141
|
+
//#endregion
|
|
142
|
+
export { y as t };
|