@jfrader/ui 0.3.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/theme-root-BbTBuLMQ.js +46 -0
- package/dist/theme-root.js +1 -1
- package/dist/theme-scope-t7nAKc2c.js +27 -0
- 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/theme-root/theme-root.d.ts +9 -3
- 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/overlay-portal.d.ts +7 -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-scope.d.ts +19 -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-DrmjBbo7.js +0 -327
- package/dist/command-palette-V_2pEay7.js +0 -379
- package/dist/date-picker-ClUYBIBh.js +0 -250
- package/dist/field-anatomy-D2ToMeRa.js +0 -109
- package/dist/menu-DU60SMdt.js +0 -216
- package/dist/popover-BtN_0ejj.js +0 -113
- package/dist/select-BCS0-LVW.js +0 -286
- package/dist/theme-root-BiXXvQvr.js +0 -42
- package/dist/toast-iqelR-r0.js +0 -282
- package/dist/tooltip-CB-HC1js.js +0 -108
- package/dist/use-controlled-state-CVXDa-qM.js +0 -21
- package/dist/use-overlay-floating-efeqppiw.js +0 -19
|
@@ -0,0 +1,535 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { r as e, t } from "./sx-Dx9JUKp5.js";
|
|
3
|
+
import { n } from "./focus-ring-BK5W5_NY.js";
|
|
4
|
+
import { n as r, r as i } from "./media-8yrN85VT.js";
|
|
5
|
+
import { t as ee } from "./use-controlled-state-DpeVQZNR.js";
|
|
6
|
+
import { t as a } from "./visually-hidden-BJdvqqvn.js";
|
|
7
|
+
import { t as o } from "./renderable-DzcIj1Lo.js";
|
|
8
|
+
import { t as s } from "./icon-wrapper-stN8sD7R.js";
|
|
9
|
+
import { t as te } from "./loading-ring-B8-30Dl1.js";
|
|
10
|
+
import { t as ne } from "./input-control-DmMuAuPS.js";
|
|
11
|
+
import { n as re, t as ie } from "./field-anatomy-COVdNpf5.js";
|
|
12
|
+
import { useEffect as c, useId as ae, useLayoutEffect as oe, useRef as l, useState as u } from "react";
|
|
13
|
+
import { vars as d } from "@jfrader/tokens/vars";
|
|
14
|
+
import { Fragment as f, jsx as p, jsxs as m } from "@emotion/react/jsx-runtime";
|
|
15
|
+
import { useMergeRefs as se } from "@floating-ui/react";
|
|
16
|
+
//#region src/components/inline-edit/inline-edit.tsx
|
|
17
|
+
var ce = {
|
|
18
|
+
edit: ({ label: e, value: t }) => t === "" ? `Edit ${e}` : `Edit ${e}: ${t}`,
|
|
19
|
+
save: "Save",
|
|
20
|
+
cancel: "Cancel",
|
|
21
|
+
retry: "Retry save",
|
|
22
|
+
instructions: ({ multiline: e }) => e ? "Press Enter to save, Shift+Enter for a new line, Escape to cancel." : "Press Enter to save, Escape to cancel.",
|
|
23
|
+
saving: "Saving…",
|
|
24
|
+
saved: "Saved",
|
|
25
|
+
failed: "Could not save. Try again."
|
|
26
|
+
}, le = (e) => e, ue = (e) => typeof e == "object" && !!e && typeof e.then == "function", de = (e) => e.nativeEvent.isComposing || e.nativeEvent.keyCode === 229, fe = (e) => e.preventDefault(), pe = e({
|
|
27
|
+
label: "inline-edit",
|
|
28
|
+
position: "relative",
|
|
29
|
+
display: "grid",
|
|
30
|
+
justifyItems: "start",
|
|
31
|
+
gap: d.space[1],
|
|
32
|
+
minInlineSize: 0,
|
|
33
|
+
maxInlineSize: "100%",
|
|
34
|
+
color: d.color.text,
|
|
35
|
+
fontFamily: d.font.sans,
|
|
36
|
+
lineHeight: d.lineHeight.base,
|
|
37
|
+
textAlign: "start"
|
|
38
|
+
}), me = {
|
|
39
|
+
title: e({
|
|
40
|
+
fontSize: d.textSize.xl,
|
|
41
|
+
fontWeight: d.fontWeight.medium
|
|
42
|
+
}),
|
|
43
|
+
body: e({
|
|
44
|
+
fontSize: d.textSize.md,
|
|
45
|
+
fontWeight: d.fontWeight.regular
|
|
46
|
+
})
|
|
47
|
+
}, h = {
|
|
48
|
+
boxSizing: "border-box",
|
|
49
|
+
margin: 0,
|
|
50
|
+
paddingBlock: d.space[1],
|
|
51
|
+
paddingInline: d.space[2],
|
|
52
|
+
borderRadius: d.radius.sm,
|
|
53
|
+
fontFamily: "inherit",
|
|
54
|
+
lineHeight: "inherit"
|
|
55
|
+
}, he = {
|
|
56
|
+
sm: e({ minBlockSize: d.space[8] }),
|
|
57
|
+
md: e({ minBlockSize: d.space[10] }),
|
|
58
|
+
lg: e({ minBlockSize: d.space[12] })
|
|
59
|
+
}, ge = e({
|
|
60
|
+
...h,
|
|
61
|
+
display: "inline-flex",
|
|
62
|
+
alignItems: "center",
|
|
63
|
+
gap: d.space[2],
|
|
64
|
+
maxInlineSize: "100%",
|
|
65
|
+
minInlineSize: 0,
|
|
66
|
+
border: "1px solid transparent",
|
|
67
|
+
backgroundColor: "transparent",
|
|
68
|
+
color: "inherit",
|
|
69
|
+
textAlign: "start",
|
|
70
|
+
cursor: "pointer",
|
|
71
|
+
transitionProperty: "background-color, border-color",
|
|
72
|
+
transitionDuration: d.motion.duration.fast,
|
|
73
|
+
transitionTimingFunction: d.motion.easeStandard,
|
|
74
|
+
"&:hover:not(:disabled):not([aria-disabled=\"true\"])": {
|
|
75
|
+
backgroundColor: d.color.surfaceHover,
|
|
76
|
+
borderColor: d.color.borderControl
|
|
77
|
+
},
|
|
78
|
+
"&:focus-visible": n,
|
|
79
|
+
"&:disabled, &[aria-disabled=\"true\"]": { cursor: "not-allowed" },
|
|
80
|
+
"&:disabled": { opacity: .55 },
|
|
81
|
+
[i]: { transitionDuration: "0s" },
|
|
82
|
+
[r]: {
|
|
83
|
+
color: "ButtonText",
|
|
84
|
+
"&:hover:not(:disabled):not([aria-disabled=\"true\"])": { borderColor: "ButtonText" }
|
|
85
|
+
}
|
|
86
|
+
}), _e = {
|
|
87
|
+
sm: e({ minInlineSize: d.space[8] }),
|
|
88
|
+
md: e({ minInlineSize: d.space[10] }),
|
|
89
|
+
lg: e({ minInlineSize: d.space[12] })
|
|
90
|
+
}, ve = e({
|
|
91
|
+
minInlineSize: 0,
|
|
92
|
+
whiteSpace: "pre-wrap",
|
|
93
|
+
overflowWrap: "anywhere"
|
|
94
|
+
}), ye = e({ color: d.color.textMuted }), be = e({
|
|
95
|
+
color: d.color.textMuted,
|
|
96
|
+
fontSize: d.textSize.md,
|
|
97
|
+
[r]: { color: "ButtonText" }
|
|
98
|
+
}), xe = e({
|
|
99
|
+
display: "flex",
|
|
100
|
+
flexWrap: "wrap",
|
|
101
|
+
alignItems: "flex-start",
|
|
102
|
+
gap: d.space[1],
|
|
103
|
+
justifySelf: "stretch",
|
|
104
|
+
minInlineSize: 0
|
|
105
|
+
}), Se = e({
|
|
106
|
+
...h,
|
|
107
|
+
flex: `1 1 calc(${d.space[12]} * 4)`,
|
|
108
|
+
minInlineSize: 0,
|
|
109
|
+
inlineSize: "auto",
|
|
110
|
+
fontSize: "inherit",
|
|
111
|
+
fontWeight: "inherit",
|
|
112
|
+
"&[readonly]": { cursor: "progress" }
|
|
113
|
+
}), Ce = e({
|
|
114
|
+
fieldSizing: "content",
|
|
115
|
+
resize: "none"
|
|
116
|
+
}), we = e({
|
|
117
|
+
display: "inline-flex",
|
|
118
|
+
alignItems: "center",
|
|
119
|
+
gap: d.space[1],
|
|
120
|
+
flexShrink: 0
|
|
121
|
+
}), g = e({
|
|
122
|
+
display: "inline-grid",
|
|
123
|
+
placeItems: "center",
|
|
124
|
+
flexShrink: 0,
|
|
125
|
+
boxSizing: "border-box",
|
|
126
|
+
margin: 0,
|
|
127
|
+
padding: 0,
|
|
128
|
+
border: "1px solid transparent",
|
|
129
|
+
borderRadius: d.radius.sm,
|
|
130
|
+
backgroundColor: "transparent",
|
|
131
|
+
color: d.color.textMuted,
|
|
132
|
+
fontFamily: d.font.sans,
|
|
133
|
+
fontSize: d.textSize.md,
|
|
134
|
+
fontWeight: d.fontWeight.regular,
|
|
135
|
+
cursor: "pointer",
|
|
136
|
+
transitionProperty: "background-color, color",
|
|
137
|
+
transitionDuration: d.motion.duration.fast,
|
|
138
|
+
transitionTimingFunction: d.motion.easeStandard,
|
|
139
|
+
"&:hover:not(:disabled):not([aria-disabled=\"true\"])": {
|
|
140
|
+
backgroundColor: d.color.surfaceHover,
|
|
141
|
+
color: d.color.text
|
|
142
|
+
},
|
|
143
|
+
"&:focus-visible": n,
|
|
144
|
+
"&:disabled, &[aria-disabled=\"true\"]": {
|
|
145
|
+
cursor: "not-allowed",
|
|
146
|
+
opacity: .55
|
|
147
|
+
},
|
|
148
|
+
[i]: { transitionDuration: "0s" },
|
|
149
|
+
[r]: {
|
|
150
|
+
color: "ButtonText",
|
|
151
|
+
borderColor: "ButtonText"
|
|
152
|
+
}
|
|
153
|
+
}), Te = e({
|
|
154
|
+
backgroundColor: d.color.accentSoft,
|
|
155
|
+
color: d.color.accentText,
|
|
156
|
+
"&:hover:not(:disabled):not([aria-disabled=\"true\"])": {
|
|
157
|
+
backgroundColor: d.color.accentSoftHover,
|
|
158
|
+
color: d.color.accentText
|
|
159
|
+
}
|
|
160
|
+
}), Ee = {
|
|
161
|
+
sm: e({
|
|
162
|
+
inlineSize: d.space[6],
|
|
163
|
+
blockSize: d.space[6]
|
|
164
|
+
}),
|
|
165
|
+
md: e({
|
|
166
|
+
inlineSize: d.space[8],
|
|
167
|
+
blockSize: d.space[8]
|
|
168
|
+
}),
|
|
169
|
+
lg: e({
|
|
170
|
+
inlineSize: d.space[10],
|
|
171
|
+
blockSize: d.space[10]
|
|
172
|
+
})
|
|
173
|
+
}, De = {
|
|
174
|
+
sm: e({ minBlockSize: d.space[8] }),
|
|
175
|
+
md: e({ minBlockSize: d.space[10] }),
|
|
176
|
+
lg: e({ minBlockSize: d.space[12] })
|
|
177
|
+
}, Oe = e({
|
|
178
|
+
display: "inline-flex",
|
|
179
|
+
alignItems: "center",
|
|
180
|
+
minBlockSize: d.space[8],
|
|
181
|
+
paddingInline: d.space[3],
|
|
182
|
+
borderColor: d.color.borderControl,
|
|
183
|
+
color: d.color.text,
|
|
184
|
+
fontSize: d.textSize.sm
|
|
185
|
+
}), ke = e({
|
|
186
|
+
display: "inline-flex",
|
|
187
|
+
alignItems: "center",
|
|
188
|
+
gap: d.space[1],
|
|
189
|
+
fontSize: d.textSize.sm,
|
|
190
|
+
fontWeight: d.fontWeight.regular,
|
|
191
|
+
color: d.color.textMuted
|
|
192
|
+
}), Ae = e({ color: d.color.dangerText }), je = e({
|
|
193
|
+
display: "inline-flex",
|
|
194
|
+
transitionProperty: "opacity",
|
|
195
|
+
transitionDuration: d.motion.duration.base,
|
|
196
|
+
transitionTimingFunction: d.motion.easeStandard,
|
|
197
|
+
"@starting-style": { opacity: 0 },
|
|
198
|
+
"& svg": {
|
|
199
|
+
inlineSize: "1em",
|
|
200
|
+
blockSize: "1em"
|
|
201
|
+
},
|
|
202
|
+
[i]: { transitionDuration: "0s" }
|
|
203
|
+
}), Me = e({
|
|
204
|
+
color: d.color.success,
|
|
205
|
+
[r]: { color: "CanvasText" }
|
|
206
|
+
}), _ = e({
|
|
207
|
+
...te,
|
|
208
|
+
boxSizing: "border-box",
|
|
209
|
+
inlineSize: "0.875em",
|
|
210
|
+
blockSize: "0.875em",
|
|
211
|
+
[i]: { animation: "none" }
|
|
212
|
+
}), v = {
|
|
213
|
+
viewBox: "0 0 16 16",
|
|
214
|
+
fill: "none",
|
|
215
|
+
stroke: "currentColor",
|
|
216
|
+
strokeWidth: 1.5,
|
|
217
|
+
strokeLinecap: "round",
|
|
218
|
+
strokeLinejoin: "round"
|
|
219
|
+
}, Ne = /* @__PURE__ */ p("svg", {
|
|
220
|
+
...v,
|
|
221
|
+
children: /* @__PURE__ */ p("path", { d: "M10.5 3.5l2 2M3 13l.5-2.5 7.25-7.25a1.4 1.4 0 0 1 2 2L5.5 12.5 3 13z" })
|
|
222
|
+
}), Pe = /* @__PURE__ */ p("svg", {
|
|
223
|
+
...v,
|
|
224
|
+
children: /* @__PURE__ */ p("path", { d: "M3 8.5l3.25 3.25L13 5" })
|
|
225
|
+
}), Fe = /* @__PURE__ */ p("svg", {
|
|
226
|
+
...v,
|
|
227
|
+
children: /* @__PURE__ */ p("path", { d: "M4.5 4.5l7 7M11.5 4.5l-7 7" })
|
|
228
|
+
}), Ie = {
|
|
229
|
+
saving: /* @__PURE__ */ p("span", { css: _ }),
|
|
230
|
+
saved: /* @__PURE__ */ p("span", {
|
|
231
|
+
css: Me,
|
|
232
|
+
children: Pe
|
|
233
|
+
}),
|
|
234
|
+
failed: Fe
|
|
235
|
+
};
|
|
236
|
+
function y({ ref: e, value: n, defaultValue: r = "", onValueChange: i, open: te, defaultOpen: d = !1, onOpenChange: h, onSave: Me, label: _, validate: v, normalize: y = le, multiline: b = !1, variant: Le = "title", size: x = "md", disabled: S = !1, readOnly: C = !1, saveOnBlur: Re = !0, placeholder: ze, inputPlaceholder: Be, description: Ve, error: He, controlProps: w, controlRef: Ue, messages: We, editIcon: Ge = Ne, saveIcon: Ke = Pe, cancelIcon: qe = Fe, slotProps: T, className: Je, sx: Ye, onBlur: Xe, ...Ze }) {
|
|
237
|
+
let E = {
|
|
238
|
+
...ce,
|
|
239
|
+
...We
|
|
240
|
+
}, [Qe, $e] = ee(n, r, i), D = Qe ?? "", [et, O] = ee(te, d, h), k = et ?? !1, [tt, A] = u(D), [j, M] = u("idle"), [N, P] = u(null), [nt, F] = u(null), [I, L] = u(null), [rt, it] = u(!1), [at, ot] = u(k);
|
|
241
|
+
at !== k && (ot(k), k && (A(D), F(null), j !== "saving" && (M("idle"), P(null)))), rt && (it(!1), A(D));
|
|
242
|
+
let R = ae(), st = w?.id ?? `${R}-control`, ct = `${R}-label`, lt = `${R}-instructions`, z = `${R}-description`, B = `${R}-error`, V = l(null), ut = se([V, e]), dt = l(null), H = l(null), ft = se([H, Ue]), U = l(!1), W = l(!1), G = l(null), K = l(!1), q = l(k);
|
|
243
|
+
q.current = k;
|
|
244
|
+
let J = l(D), pt = () => {
|
|
245
|
+
let e = V.current, t = e?.ownerDocument.activeElement;
|
|
246
|
+
return e != null && t != null && e.contains(t);
|
|
247
|
+
}, mt = () => {
|
|
248
|
+
let e = V.current;
|
|
249
|
+
if (!e) return !1;
|
|
250
|
+
let { activeElement: t, body: n } = e.ownerDocument;
|
|
251
|
+
return t === null || t === n || e.contains(t);
|
|
252
|
+
};
|
|
253
|
+
c(() => (K.current = !0, () => {
|
|
254
|
+
K.current = !1, G.current = null;
|
|
255
|
+
}), []), oe(() => {
|
|
256
|
+
J.current !== D && (J.current = D, G.current !== null && (G.current = null, M("idle")));
|
|
257
|
+
}, [D]), oe(() => {
|
|
258
|
+
if (I === null || I === "trigger" === k || (L(null), !mt())) return;
|
|
259
|
+
if (I === "trigger") {
|
|
260
|
+
dt.current?.focus();
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
let e = H.current;
|
|
264
|
+
e && (e.focus(), I === "select" ? e.select() : e.setSelectionRange(e.value.length, e.value.length));
|
|
265
|
+
}, [I, k]), c(() => {
|
|
266
|
+
let e = V.current;
|
|
267
|
+
if (I === null || !e) return;
|
|
268
|
+
let { ownerDocument: t } = e, n = (t) => {
|
|
269
|
+
t.defaultPrevented || t.composedPath().includes(e) || L(null);
|
|
270
|
+
};
|
|
271
|
+
return t.addEventListener("mousedown", n), t.addEventListener("focusin", n), () => {
|
|
272
|
+
t.removeEventListener("mousedown", n), t.removeEventListener("focusin", n);
|
|
273
|
+
};
|
|
274
|
+
}, [I]), c(() => {
|
|
275
|
+
let e = H.current, t = e?.form;
|
|
276
|
+
if (!e || !t) return;
|
|
277
|
+
let n = !0, r = (t) => {
|
|
278
|
+
queueMicrotask(() => {
|
|
279
|
+
n && !t.defaultPrevented && (e.value = J.current, A(J.current), F(null));
|
|
280
|
+
});
|
|
281
|
+
};
|
|
282
|
+
return t.addEventListener("reset", r), () => {
|
|
283
|
+
n = !1, t.removeEventListener("reset", r);
|
|
284
|
+
};
|
|
285
|
+
}, [
|
|
286
|
+
k,
|
|
287
|
+
b,
|
|
288
|
+
w?.form
|
|
289
|
+
]);
|
|
290
|
+
let Y = !S && !C, X = j === "saving", ht = o(He), gt = ht ? He : nt, Z = o(gt), _t = o(Ve), vt = (e, t) => {
|
|
291
|
+
let n = {};
|
|
292
|
+
G.current = n, M("saving");
|
|
293
|
+
let r = (r) => {
|
|
294
|
+
K.current && G.current === n && (G.current = null, r ? (M("saved"), P(null), it(!0), $e(e), t && pt() && L("trigger"), q.current && O(!1)) : (M("failed"), P(e)));
|
|
295
|
+
}, i;
|
|
296
|
+
try {
|
|
297
|
+
i = Me(e);
|
|
298
|
+
} catch {
|
|
299
|
+
r(!1);
|
|
300
|
+
return;
|
|
301
|
+
}
|
|
302
|
+
ue(i) ? i.then(() => r(!0), () => r(!1)) : r(!0);
|
|
303
|
+
}, yt = (e) => {
|
|
304
|
+
e && pt() && L("trigger"), O(!1);
|
|
305
|
+
}, Q = (e, t) => {
|
|
306
|
+
if (!Y || X || G.current !== null) return;
|
|
307
|
+
let n = e();
|
|
308
|
+
if (n === D) {
|
|
309
|
+
F(null), M("idle"), P(null), yt(t);
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
312
|
+
if (ht) return;
|
|
313
|
+
let r = v?.(n);
|
|
314
|
+
typeof r == "string" && r !== "" ? F(r) : (F(null), vt(n, t));
|
|
315
|
+
}, $ = (e) => Q(() => y(tt), e), bt = () => !Y || X ? !1 : (A(D), F(null), j === "failed" && M("idle"), P(null), yt(!0), !0), xt = () => {
|
|
316
|
+
N !== null && Q(() => N, !0);
|
|
317
|
+
}, St = () => {
|
|
318
|
+
let e = U.current;
|
|
319
|
+
U.current = !1, Y && !X && (L(e ? "end" : "select"), O(!0));
|
|
320
|
+
}, Ct = (e) => {
|
|
321
|
+
w?.onChange?.(e), Y && !X && (A(e.currentTarget.value), F(null));
|
|
322
|
+
}, wt = (e) => {
|
|
323
|
+
w?.onKeyDown?.(e), !(e.key !== "Enter" || b && e.shiftKey) && (e.defaultPrevented || W.current || de(e) || (e.preventDefault(), e.repeat || $(!0)));
|
|
324
|
+
}, Tt = (e) => {
|
|
325
|
+
e.key !== "Escape" || e.defaultPrevented || W.current || de(e) || bt() && (e.preventDefault(), e.stopPropagation());
|
|
326
|
+
}, Et = (e) => {
|
|
327
|
+
W.current = !0, w?.onCompositionStart?.(e);
|
|
328
|
+
}, Dt = (e) => {
|
|
329
|
+
W.current = !1, w?.onCompositionEnd?.(e);
|
|
330
|
+
}, Ot = (e) => {
|
|
331
|
+
Xe?.(e), !e.currentTarget.contains(e.relatedTarget) && e.currentTarget.ownerDocument.activeElement !== e.target && (L(null), q.current && Re && !W.current && $(!1));
|
|
332
|
+
}, kt = [_t && z, Z && B].filter(Boolean).join(" ") || void 0, At = [
|
|
333
|
+
w?.["aria-describedby"],
|
|
334
|
+
lt,
|
|
335
|
+
_t && z,
|
|
336
|
+
Z && B
|
|
337
|
+
].filter(Boolean).join(" "), jt = w?.["aria-labelledby"], Mt = D === "", Nt = [Je, T?.root?.className].filter(Boolean).join(" ") || void 0, Pt = {
|
|
338
|
+
...w,
|
|
339
|
+
ref: ft,
|
|
340
|
+
id: st,
|
|
341
|
+
value: tt,
|
|
342
|
+
placeholder: Be,
|
|
343
|
+
disabled: S,
|
|
344
|
+
readOnly: C || X,
|
|
345
|
+
"aria-labelledby": jt === void 0 ? void 0 : `${ct} ${jt}`,
|
|
346
|
+
"aria-describedby": At,
|
|
347
|
+
"aria-invalid": Z ? !0 : w?.["aria-invalid"],
|
|
348
|
+
onChange: Ct,
|
|
349
|
+
onKeyDown: wt,
|
|
350
|
+
onCompositionStart: Et,
|
|
351
|
+
onCompositionEnd: Dt,
|
|
352
|
+
className: T?.control?.className
|
|
353
|
+
}, { rows: Ft, wrap: It, ...Lt } = Pt, Rt = [
|
|
354
|
+
ne,
|
|
355
|
+
Se,
|
|
356
|
+
me[Le],
|
|
357
|
+
he[x]
|
|
358
|
+
];
|
|
359
|
+
return /* @__PURE__ */ p(t, {
|
|
360
|
+
className: Nt,
|
|
361
|
+
styles: [pe, T?.root?.css],
|
|
362
|
+
sx: Ye,
|
|
363
|
+
children: (e) => /* @__PURE__ */ m("div", {
|
|
364
|
+
...Ze,
|
|
365
|
+
ref: ut,
|
|
366
|
+
"data-ui": "inline-edit",
|
|
367
|
+
"data-state": k ? "open" : "closed",
|
|
368
|
+
"data-phase": j,
|
|
369
|
+
"aria-busy": X ? !0 : Ze["aria-busy"],
|
|
370
|
+
onBlur: Ot,
|
|
371
|
+
className: e,
|
|
372
|
+
children: [
|
|
373
|
+
k ? /* @__PURE__ */ m(f, { children: [
|
|
374
|
+
/* @__PURE__ */ p("label", {
|
|
375
|
+
id: ct,
|
|
376
|
+
htmlFor: st,
|
|
377
|
+
css: a,
|
|
378
|
+
children: _
|
|
379
|
+
}),
|
|
380
|
+
/* @__PURE__ */ p("span", {
|
|
381
|
+
id: lt,
|
|
382
|
+
css: a,
|
|
383
|
+
children: E.instructions({ multiline: b })
|
|
384
|
+
}),
|
|
385
|
+
/* @__PURE__ */ m("div", {
|
|
386
|
+
css: xe,
|
|
387
|
+
onKeyDown: Tt,
|
|
388
|
+
children: [b ? /* @__PURE__ */ p("textarea", {
|
|
389
|
+
rows: 3,
|
|
390
|
+
...Pt,
|
|
391
|
+
css: [
|
|
392
|
+
...Rt,
|
|
393
|
+
Ce,
|
|
394
|
+
T?.control?.css
|
|
395
|
+
]
|
|
396
|
+
}) : /* @__PURE__ */ p("input", {
|
|
397
|
+
type: "text",
|
|
398
|
+
...Lt,
|
|
399
|
+
css: [...Rt, T?.control?.css]
|
|
400
|
+
}), /* @__PURE__ */ m("div", {
|
|
401
|
+
className: T?.actions?.className,
|
|
402
|
+
css: [
|
|
403
|
+
we,
|
|
404
|
+
De[x],
|
|
405
|
+
T?.actions?.css
|
|
406
|
+
],
|
|
407
|
+
children: [/* @__PURE__ */ p("button", {
|
|
408
|
+
type: "button",
|
|
409
|
+
"aria-label": E.save,
|
|
410
|
+
"aria-disabled": X || C || void 0,
|
|
411
|
+
disabled: S,
|
|
412
|
+
onMouseDown: fe,
|
|
413
|
+
onClick: () => $(!0),
|
|
414
|
+
className: T?.save?.className,
|
|
415
|
+
css: [
|
|
416
|
+
g,
|
|
417
|
+
Te,
|
|
418
|
+
Ee[x],
|
|
419
|
+
T?.save?.css
|
|
420
|
+
],
|
|
421
|
+
children: o(Ke) && /* @__PURE__ */ p("span", {
|
|
422
|
+
"aria-hidden": !0,
|
|
423
|
+
css: s,
|
|
424
|
+
children: Ke
|
|
425
|
+
})
|
|
426
|
+
}), /* @__PURE__ */ p("button", {
|
|
427
|
+
type: "button",
|
|
428
|
+
"aria-label": E.cancel,
|
|
429
|
+
"aria-disabled": X || C || void 0,
|
|
430
|
+
disabled: S,
|
|
431
|
+
onMouseDown: fe,
|
|
432
|
+
onClick: bt,
|
|
433
|
+
className: T?.cancel?.className,
|
|
434
|
+
css: [
|
|
435
|
+
g,
|
|
436
|
+
Ee[x],
|
|
437
|
+
T?.cancel?.css
|
|
438
|
+
],
|
|
439
|
+
children: o(qe) && /* @__PURE__ */ p("span", {
|
|
440
|
+
"aria-hidden": !0,
|
|
441
|
+
css: s,
|
|
442
|
+
children: qe
|
|
443
|
+
})
|
|
444
|
+
})]
|
|
445
|
+
})]
|
|
446
|
+
})
|
|
447
|
+
] }) : /* @__PURE__ */ m("button", {
|
|
448
|
+
ref: dt,
|
|
449
|
+
type: "button",
|
|
450
|
+
"aria-label": Mt ? void 0 : E.edit({
|
|
451
|
+
label: _,
|
|
452
|
+
value: D
|
|
453
|
+
}),
|
|
454
|
+
"aria-describedby": kt,
|
|
455
|
+
"aria-disabled": C || X || void 0,
|
|
456
|
+
disabled: S,
|
|
457
|
+
onPointerDown: () => {
|
|
458
|
+
U.current = !0;
|
|
459
|
+
},
|
|
460
|
+
onKeyDown: () => {
|
|
461
|
+
U.current = !1;
|
|
462
|
+
},
|
|
463
|
+
onClick: St,
|
|
464
|
+
className: T?.trigger?.className,
|
|
465
|
+
css: [
|
|
466
|
+
ge,
|
|
467
|
+
me[Le],
|
|
468
|
+
he[x],
|
|
469
|
+
_e[x],
|
|
470
|
+
T?.trigger?.css
|
|
471
|
+
],
|
|
472
|
+
children: [Mt ? /* @__PURE__ */ m("span", {
|
|
473
|
+
css: [ve, ye],
|
|
474
|
+
children: [/* @__PURE__ */ p("span", {
|
|
475
|
+
css: a,
|
|
476
|
+
children: `${E.edit({
|
|
477
|
+
label: _,
|
|
478
|
+
value: D
|
|
479
|
+
})} `
|
|
480
|
+
}), ze]
|
|
481
|
+
}) : /* @__PURE__ */ p("span", {
|
|
482
|
+
css: ve,
|
|
483
|
+
children: D
|
|
484
|
+
}), o(Ge) && /* @__PURE__ */ p("span", {
|
|
485
|
+
"aria-hidden": !0,
|
|
486
|
+
css: [s, be],
|
|
487
|
+
children: Ge
|
|
488
|
+
})]
|
|
489
|
+
}),
|
|
490
|
+
/* @__PURE__ */ p(ie, {
|
|
491
|
+
id: z,
|
|
492
|
+
part: T?.description,
|
|
493
|
+
children: Ve
|
|
494
|
+
}),
|
|
495
|
+
/* @__PURE__ */ p(re, {
|
|
496
|
+
id: B,
|
|
497
|
+
part: T?.error,
|
|
498
|
+
children: gt
|
|
499
|
+
}),
|
|
500
|
+
!k && N !== null && /* @__PURE__ */ p("button", {
|
|
501
|
+
type: "button",
|
|
502
|
+
"aria-disabled": X || !Y || void 0,
|
|
503
|
+
disabled: S,
|
|
504
|
+
onClick: xt,
|
|
505
|
+
className: T?.retry?.className,
|
|
506
|
+
css: [
|
|
507
|
+
g,
|
|
508
|
+
Oe,
|
|
509
|
+
T?.retry?.css
|
|
510
|
+
],
|
|
511
|
+
children: E.retry
|
|
512
|
+
}),
|
|
513
|
+
/* @__PURE__ */ p("span", {
|
|
514
|
+
role: "status",
|
|
515
|
+
"aria-live": "polite",
|
|
516
|
+
"aria-atomic": "true",
|
|
517
|
+
className: T?.status?.className,
|
|
518
|
+
css: [
|
|
519
|
+
ke,
|
|
520
|
+
j === "failed" && Ae,
|
|
521
|
+
T?.status?.css
|
|
522
|
+
],
|
|
523
|
+
children: j !== "idle" && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("span", {
|
|
524
|
+
"aria-hidden": !0,
|
|
525
|
+
css: je,
|
|
526
|
+
children: Ie[j]
|
|
527
|
+
}, j), E[j]] })
|
|
528
|
+
})
|
|
529
|
+
]
|
|
530
|
+
})
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
y.displayName = "InlineEdit";
|
|
534
|
+
//#endregion
|
|
535
|
+
export { y as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { r as e } from "./sx-Dx9JUKp5.js";
|
|
3
|
+
import { n as t } from "./focus-ring-BK5W5_NY.js";
|
|
4
|
+
import { r as n } from "./media-8yrN85VT.js";
|
|
5
|
+
import { vars as r } from "@jfrader/tokens/vars";
|
|
6
|
+
//#region src/styling/input-control.ts
|
|
7
|
+
var i = "&:focus-visible, &:has(> input:focus-visible)", a = ":not(:focus-visible, :has(> input:focus-visible))", o = e({
|
|
8
|
+
display: "block",
|
|
9
|
+
inlineSize: "100%",
|
|
10
|
+
boxSizing: "border-box",
|
|
11
|
+
margin: 0,
|
|
12
|
+
backgroundColor: r.color.surfaceRaised,
|
|
13
|
+
border: `1px solid ${r.color.borderControl}`,
|
|
14
|
+
borderRadius: r.radius.md,
|
|
15
|
+
color: r.color.text,
|
|
16
|
+
fontFamily: r.font.sans,
|
|
17
|
+
transitionProperty: "border-color",
|
|
18
|
+
transitionDuration: r.motion.duration.fast,
|
|
19
|
+
transitionTimingFunction: r.motion.easeStandard,
|
|
20
|
+
"&::placeholder": { color: r.color.textSubtle },
|
|
21
|
+
[`&:hover:not(:disabled)${a}`]: { borderColor: r.color.textSubtle },
|
|
22
|
+
[i]: {
|
|
23
|
+
...t,
|
|
24
|
+
borderColor: r.color.focusRing
|
|
25
|
+
},
|
|
26
|
+
"&:disabled": {
|
|
27
|
+
opacity: .55,
|
|
28
|
+
cursor: "not-allowed"
|
|
29
|
+
},
|
|
30
|
+
[`&[aria-invalid="true"]${a}`]: { borderColor: r.color.dangerBorder },
|
|
31
|
+
[n]: { transitionDuration: "0s" }
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { o as t };
|