twenty-ui 2.52.0 → 2.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AllIcons-fCCVOqoJ.js → AllIcons-B9FfQJ70.js} +1 -1
- package/dist/{Button-Dd8cNsn1.js → Button-By-nG5vV.js} +1 -1
- package/dist/{Button-Du8T-dOv.cjs → Button-C3IE0Kup.cjs} +1 -1
- package/dist/Dropdown-CyEoMEjR.cjs +1 -0
- package/dist/{Dropdown-D3LPyrQI.js → Dropdown-Zdc0J7Bg.js} +53 -52
- package/dist/{ListItem-DR7Xh2WV.js → ListItem-BgRDvHQG.js} +4 -4
- package/dist/{ListItem-g1B--M70.cjs → ListItem-D0WDJG-e.cjs} +1 -1
- package/dist/ListItem.module-BV1vQ5hr.js +34 -0
- package/dist/ListItem.module-Cw0dbXxo.cjs +1 -0
- package/dist/{OverflowingTextWithTooltip-Cky5WlIk.js → OverflowingTextWithTooltip-CAQ-5aUp.js} +34 -33
- package/dist/OverflowingTextWithTooltip-CuWHF8_e.cjs +1 -0
- package/dist/{ProgressBar-BO0MkswY.js → ProgressBar-B_QvBWbI.js} +12 -12
- package/dist/{ProgressBar-BG38LPgC.cjs → ProgressBar-km29TA-7.cjs} +1 -1
- package/dist/Radio-DUQ6MLGc.cjs +1 -0
- package/dist/Radio-rURvQ923.js +176 -0
- package/dist/Shortcut-CLngfg7s.cjs +1 -0
- package/dist/Shortcut-CThgcmn_.js +77 -0
- package/dist/TablerIcons-B6BhOlW_.js +463 -0
- package/dist/components/data-display.cjs +1 -1
- package/dist/components/data-display.mjs +1 -1
- package/dist/components/feedback.cjs +1 -1
- package/dist/components/feedback.mjs +1 -1
- package/dist/components/input/FormFieldRow/FormFieldRow.d.ts +1 -1
- package/dist/components/input/FormFieldRow/types/FormFieldRowProps.d.ts +1 -0
- package/dist/components/input.cjs +1 -1
- package/dist/components/input.mjs +2 -2
- package/dist/components/layout.cjs +1 -1
- package/dist/components/layout.mjs +1 -1
- package/dist/components/navigation.cjs +1 -1
- package/dist/components/navigation.mjs +2 -2
- package/dist/components/settings.cjs +1 -1
- package/dist/components/settings.mjs +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.mjs +7 -7
- package/dist/{data-display-VghHkQY5.cjs → data-display-Cg9gF6Cb.cjs} +1 -1
- package/dist/{data-display-CHKKTmH_.js → data-display-CuvXSBLo.js} +90 -90
- package/dist/{data-display-B7beM2yK.js → data-display-DKSUI3GC.js} +43 -43
- package/dist/data-display-DlmWaxYb.cjs +1 -0
- package/dist/{feedback-3S9S-Xi9.cjs → feedback-Cvmm1EZX.cjs} +1 -1
- package/dist/{feedback-DHATp8in.js → feedback-DFTvn5aL.js} +66 -66
- package/dist/icon/components/TablerIcons.d.ts +1 -1
- package/dist/icon/index.d.ts +1 -1
- package/dist/{icon-C3fz8p3W.js → icon-BlUO7C4w.js} +2 -2
- package/dist/icon.cjs +1 -1
- package/dist/icon.mjs +491 -490
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +643 -641
- package/dist/{input-jkwxjdtI.js → input-BIUZSrhq.js} +123 -122
- package/dist/input-CX8QPMDn.cjs +1 -0
- package/dist/{input-BLU0vrJM.js → input-Clzu-UFH.js} +538 -536
- package/dist/input-E1x0D2jA.cjs +1 -0
- package/dist/{layout-4nLOjbJA.js → layout-4p7UQD7l.js} +29 -28
- package/dist/{layout-DEoY3Qd0.cjs → layout-DHW99Ejj.cjs} +1 -1
- package/dist/{navigation-iP54gZTV.js → navigation-4RI9GlzA.js} +5 -5
- package/dist/{navigation-CSSOuhFm.cjs → navigation-B9jOHv99.cjs} +1 -1
- package/dist/primitives/data-display.cjs +1 -1
- package/dist/primitives/data-display.mjs +1 -1
- package/dist/primitives/feedback.cjs +1 -1
- package/dist/primitives/feedback.mjs +1 -1
- package/dist/primitives/input.cjs +1 -1
- package/dist/primitives/input.mjs +5 -5
- package/dist/primitives/navigation.cjs +1 -1
- package/dist/primitives/navigation.mjs +1 -1
- package/dist/primitives/typography.cjs +1 -1
- package/dist/primitives/typography.mjs +3 -3
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.mjs +9 -9
- package/dist/{settings-BmsLbd-g.js → settings-2ZhNkDgW.js} +1 -1
- package/dist/{settings-DGwyi63i.cjs → settings-DR3dpWzy.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{typography-DeFnsH3k.cjs → typography-B4hug-TZ.cjs} +1 -1
- package/dist/{typography-sorTYmvG.js → typography-jl1UzvVu.js} +2 -2
- package/dist/utilities/index.d.ts +1 -0
- package/dist/utilities/internal/formatCssLength.d.ts +1 -0
- package/dist/utilities/utils/getAvatarInitial.d.ts +1 -0
- package/dist/{utilities-D0KcLLtO.js → utilities-E91ftFp_.js} +16 -15
- package/dist/utilities-YhvQ2XFb.cjs +1 -0
- package/dist/utilities.cjs +1 -1
- package/dist/utilities.mjs +18 -17
- package/package.json +2 -2
- package/dist/Dropdown-h5-yIsU7.cjs +0 -1
- package/dist/ListItem.module-B31VK9XZ.js +0 -34
- package/dist/ListItem.module-DiUK6-0Z.cjs +0 -1
- package/dist/OverflowingTextWithTooltip-Dmsmy-9g.cjs +0 -1
- package/dist/Radio-BK47Ig6J.cjs +0 -1
- package/dist/Radio-WuoC3hJ5.js +0 -175
- package/dist/Shortcut-CbbRd1uM.cjs +0 -1
- package/dist/Shortcut-YMhkp7f6.js +0 -73
- package/dist/TablerIcons-CqzhliLC.js +0 -462
- package/dist/data-display-C3Q_8G-N.cjs +0 -1
- package/dist/input-BLUZOGq8.cjs +0 -1
- package/dist/input-DRIIJ4Zd.cjs +0 -1
- package/dist/primitives/data-display/Avatar/internal/getAvatarInitial.d.ts +0 -1
- package/dist/utilities-Bfnz_GAC.cjs +0 -1
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { t as A } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
+
import { Dt as G, Tt as P } from "./TablerIcons-B6BhOlW_.js";
|
|
3
|
+
import { t as w } from "./theme-CuGIQBsJ.js";
|
|
4
|
+
import { t } from "./mergeClassNames-ClFMR1v0.js";
|
|
5
|
+
import { n as N } from "./Button-By-nG5vV.js";
|
|
6
|
+
import { t as b } from "./useProvidedTextDirection-Dk8LBQeF.js";
|
|
7
|
+
import { t as p } from "./ListItem.module-BV1vQ5hr.js";
|
|
8
|
+
import { n as v, r as D } from "./Input-BKRR1xlO.js";
|
|
9
|
+
import { useRender as T } from "@base-ui/react/use-render";
|
|
10
|
+
import { isBoolean as F, isNumber as $, isUndefined as k } from "@sniptt/guards";
|
|
11
|
+
import { clsx as c } from "clsx";
|
|
12
|
+
import { Fragment as B, jsx as a, jsxs as g } from "react/jsx-runtime";
|
|
13
|
+
import { Select as o } from "@base-ui/react/select";
|
|
14
|
+
import { NumberField as s } from "@base-ui/react/number-field";
|
|
15
|
+
import { Radio as f } from "@base-ui/react/radio";
|
|
16
|
+
var E = "_trigger_hijh9_1", U = "_value_hijh9_12", V = "_icon_hijh9_31", O = "_positioner_hijh9_42", q = "_popup_hijh9_46", y = "_item_hijh9_71", H = "_indicator_hijh9_75", J = "_groupLabel_hijh9_81", K = "_separator_hijh9_89", m = {
|
|
17
|
+
trigger: E,
|
|
18
|
+
value: U,
|
|
19
|
+
icon: V,
|
|
20
|
+
positioner: O,
|
|
21
|
+
popup: q,
|
|
22
|
+
item: y,
|
|
23
|
+
indicator: H,
|
|
24
|
+
groupLabel: J,
|
|
25
|
+
separator: K
|
|
26
|
+
}, M = ({ className: r, ...e }) => /* @__PURE__ */ a(o.GroupLabel, {
|
|
27
|
+
...e,
|
|
28
|
+
className: t(m.groupLabel, r)
|
|
29
|
+
}), Q = ({ className: r, children: e = /* @__PURE__ */ a(G, {}), ...i }) => /* @__PURE__ */ a(o.Icon, {
|
|
30
|
+
...i,
|
|
31
|
+
className: t(m.icon, r),
|
|
32
|
+
children: e
|
|
33
|
+
}), W = ({ className: r, ...e }) => /* @__PURE__ */ a(o.Item, {
|
|
34
|
+
"data-color": "neutral",
|
|
35
|
+
"data-indicator": "check",
|
|
36
|
+
...e,
|
|
37
|
+
className: t(c(p.root, m.item), r)
|
|
38
|
+
}), X = ({ className: r, children: e = /* @__PURE__ */ a(P, { className: p.checkIndicator }), ...i }) => /* @__PURE__ */ a(o.ItemIndicator, {
|
|
39
|
+
...i,
|
|
40
|
+
className: t(m.indicator, r),
|
|
41
|
+
children: e
|
|
42
|
+
}), Y = ({ className: r, ...e }) => /* @__PURE__ */ a(o.ItemText, {
|
|
43
|
+
...e,
|
|
44
|
+
className: t(c(p.label, p.text), r)
|
|
45
|
+
}), Z = ({ className: r, ...e }) => /* @__PURE__ */ a(o.Popup, {
|
|
46
|
+
...e,
|
|
47
|
+
className: t(m.popup, r)
|
|
48
|
+
}), z = ({ container: r, ...e }) => {
|
|
49
|
+
const i = w(), n = b();
|
|
50
|
+
return /* @__PURE__ */ a(o.Portal, {
|
|
51
|
+
dir: n,
|
|
52
|
+
...e,
|
|
53
|
+
container: k(r) ? i ?? void 0 : r
|
|
54
|
+
});
|
|
55
|
+
}, rr = ({ className: r, ...e }) => {
|
|
56
|
+
const i = b();
|
|
57
|
+
return /* @__PURE__ */ a(o.Positioner, {
|
|
58
|
+
dir: i,
|
|
59
|
+
...e,
|
|
60
|
+
className: t(m.positioner, r)
|
|
61
|
+
});
|
|
62
|
+
}, er = ({ className: r, ...e }) => /* @__PURE__ */ a(o.Separator, {
|
|
63
|
+
...e,
|
|
64
|
+
className: t(m.separator, r)
|
|
65
|
+
}), ar = ({ size: r = "md", className: e, ...i }) => /* @__PURE__ */ a(o.Trigger, {
|
|
66
|
+
...i,
|
|
67
|
+
className: t(c(v.input, v[r], m.trigger), e)
|
|
68
|
+
}), or = ({ className: r, ...e }) => /* @__PURE__ */ a(o.Value, {
|
|
69
|
+
...e,
|
|
70
|
+
className: t(m.value, r)
|
|
71
|
+
}), tr = () => ({
|
|
72
|
+
Root: o.Root,
|
|
73
|
+
Label: o.Label,
|
|
74
|
+
Trigger: ar,
|
|
75
|
+
Value: or,
|
|
76
|
+
Icon: Q,
|
|
77
|
+
Portal: z,
|
|
78
|
+
Backdrop: o.Backdrop,
|
|
79
|
+
Positioner: rr,
|
|
80
|
+
Popup: Z,
|
|
81
|
+
List: o.List,
|
|
82
|
+
Item: W,
|
|
83
|
+
ItemIndicator: X,
|
|
84
|
+
ItemText: Y,
|
|
85
|
+
Arrow: o.Arrow,
|
|
86
|
+
ScrollDownArrow: o.ScrollDownArrow,
|
|
87
|
+
ScrollUpArrow: o.ScrollUpArrow,
|
|
88
|
+
Group: o.Group,
|
|
89
|
+
GroupLabel: M,
|
|
90
|
+
Separator: er
|
|
91
|
+
}), Ur = /* @__PURE__ */ tr(), Vr = (r) => $(r) ? `${r}px` : r, ir = "_group_mv9ls_1", mr = "_button_mv9ls_7", h = {
|
|
92
|
+
group: ir,
|
|
93
|
+
button: mr
|
|
94
|
+
}, nr = ({ className: r, ...e }) => /* @__PURE__ */ a(s.Decrement, {
|
|
95
|
+
...e,
|
|
96
|
+
className: t(c(N.button, h.button), r)
|
|
97
|
+
}), sr = ({ className: r, ...e }) => /* @__PURE__ */ a(s.Group, {
|
|
98
|
+
...e,
|
|
99
|
+
className: t(h.group, r)
|
|
100
|
+
}), cr = ({ className: r, ...e }) => /* @__PURE__ */ a(s.Increment, {
|
|
101
|
+
...e,
|
|
102
|
+
className: t(c(N.button, h.button), r)
|
|
103
|
+
}), lr = ({ className: r, ...e }) => /* @__PURE__ */ a(s.Input, {
|
|
104
|
+
...e,
|
|
105
|
+
className: t(v.input, r)
|
|
106
|
+
}), Or = {
|
|
107
|
+
Root: s.Root,
|
|
108
|
+
Group: sr,
|
|
109
|
+
Input: lr,
|
|
110
|
+
Increment: cr,
|
|
111
|
+
Decrement: nr,
|
|
112
|
+
ScrubArea: s.ScrubArea,
|
|
113
|
+
ScrubAreaCursor: s.ScrubAreaCursor
|
|
114
|
+
}, dr = "_root_g72rh_1", pr = "_sm_g72rh_30", ur = "_md_g72rh_34", _r = "_startElement_g72rh_38", vr = "_endElement_g72rh_39", d = {
|
|
115
|
+
root: dr,
|
|
116
|
+
sm: pr,
|
|
117
|
+
md: ur,
|
|
118
|
+
startElement: _r,
|
|
119
|
+
endElement: vr
|
|
120
|
+
}, I = (r) => A(r) && !F(r) && r !== "", qr = ({ size: r = "md", hasFocusRing: e = !0, startElement: i, endElement: n, className: u, children: _, render: R, ref: C, ...L }) => {
|
|
121
|
+
const x = T({
|
|
122
|
+
render: R,
|
|
123
|
+
ref: C,
|
|
124
|
+
props: {
|
|
125
|
+
...L,
|
|
126
|
+
className: c(d.root, d[r], u),
|
|
127
|
+
"data-focus-ring": e,
|
|
128
|
+
children: /* @__PURE__ */ g(B, { children: [
|
|
129
|
+
I(i) && /* @__PURE__ */ a("span", {
|
|
130
|
+
className: d.startElement,
|
|
131
|
+
children: i
|
|
132
|
+
}),
|
|
133
|
+
_,
|
|
134
|
+
I(n) && /* @__PURE__ */ a("span", {
|
|
135
|
+
className: d.endElement,
|
|
136
|
+
children: n
|
|
137
|
+
})
|
|
138
|
+
] })
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
return /* @__PURE__ */ a(D.Provider, {
|
|
142
|
+
value: { size: r },
|
|
143
|
+
children: x
|
|
144
|
+
});
|
|
145
|
+
}, hr = "_root_1pdpj_1", Ir = "_control_1pdpj_18", Nr = "_sm_1pdpj_33", br = "_md_1pdpj_38", gr = "_indicator_1pdpj_49", fr = "_card_1pdpj_90", Sr = "_cardContent_1pdpj_111", l = {
|
|
146
|
+
root: hr,
|
|
147
|
+
control: Ir,
|
|
148
|
+
sm: Nr,
|
|
149
|
+
md: br,
|
|
150
|
+
indicator: gr,
|
|
151
|
+
card: fr,
|
|
152
|
+
cardContent: Sr
|
|
153
|
+
}, S = f.Indicator, j = f.Root, jr = ({ children: r, className: e, size: i = "sm", variant: n = "default", render: u = n === "card" ? /* @__PURE__ */ a("div", {}) : void 0, ..._ }) => /* @__PURE__ */ g(j, {
|
|
154
|
+
..._,
|
|
155
|
+
render: u,
|
|
156
|
+
className: t(c(l.root, l[i], n === "card" && l.card), e),
|
|
157
|
+
children: [/* @__PURE__ */ a("span", {
|
|
158
|
+
className: l.control,
|
|
159
|
+
"aria-hidden": !0,
|
|
160
|
+
children: /* @__PURE__ */ a(S, { className: l.indicator })
|
|
161
|
+
}), n === "card" ? /* @__PURE__ */ a("span", {
|
|
162
|
+
className: l.cardContent,
|
|
163
|
+
children: r
|
|
164
|
+
}) : r]
|
|
165
|
+
}), yr = Object.assign(jr, {
|
|
166
|
+
Root: j,
|
|
167
|
+
Indicator: S
|
|
168
|
+
});
|
|
169
|
+
export {
|
|
170
|
+
Ur as a,
|
|
171
|
+
Vr as i,
|
|
172
|
+
qr as n,
|
|
173
|
+
m as o,
|
|
174
|
+
Or as r,
|
|
175
|
+
yr as t
|
|
176
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const S=require("./isDefined-DS2Q42p5.cjs"),r=require("./doNotTranslate-CHE7WmRS.cjs"),j=require("./useIsMobile-VmnhfE8g.cjs");let q=require("@sniptt/guards"),y=require("clsx"),h=require("react"),n=require("react/jsx-runtime");var T=new Map(r.doNotTranslate([["⌘","Command"],["⌥","Option"],["⇧","Shift"],["⌃","Control"],["Ctrl","Control"],["⏎","Enter"],["↵","Enter"],["⌫","Backspace"],["↑","Arrow up"],["↓","Arrow down"],["←","Arrow left"],["→","Arrow right"],["esc","Escape"]])),f=a=>a.every(q.isString),C=({shortcut:a,platform:c,sequenceJoinLabel:u="then",combinationSeparator:p,accessibleKeyLabels:b})=>{const s=j.getUserDevice(),o=c==="mac"||!S.isDefined(c)&&(s==="mac"||s==="ios"),_=new Map([[r.doNotTranslate("Mod"),o?"⌘":r.doNotTranslate("Ctrl")],[r.doNotTranslate("CommandOrControl"),o?"⌘":r.doNotTranslate("Ctrl")],[r.doNotTranslate("Command"),"⌘"],r.doNotTranslate(["Control","Ctrl"]),[r.doNotTranslate("Alt"),o?"⌥":r.doNotTranslate("Alt")],[r.doNotTranslate("Enter"),"⏎"]]),i=(f(a)?[a]:a).filter(q.isNonEmptyArray).map(e=>e.map(t=>_.get(t)??t)),d=p??(o?"":" "),m=` ${u} `;return{groups:i,separator:d,sequenceJoinLabel:u,text:i.map(e=>e.join(d)).join(m),accessibleLabel:i.map(e=>e.map(t=>b?.[t]??T.get(t)??t).join(" + ")).join(m)}},x="_root_3buq7_1",A="_content_3buq7_28",E="_combination_3buq7_29",w="_sequenceJoinLabel_3buq7_35",L="_key_3buq7_39",l={root:x,content:A,combination:E,sequenceJoinLabel:w,key:L},M=({shortcut:a,platform:c,sequenceJoinLabel:u,combinationSeparator:p,accessibleKeyLabels:b,variant:s="keys",visibility:o="always",className:_,"aria-label":i,...d})=>{const m=j.useIsMobile(),e=C({shortcut:a,platform:c,sequenceJoinLabel:u,combinationSeparator:p,accessibleKeyLabels:b});return!(0,q.isNonEmptyArray)(e.groups)||o==="desktop"&&m?null:(0,n.jsx)("span",{...d,className:(0,y.clsx)(l.root,_),"data-variant":s,role:"img","aria-label":i??e.accessibleLabel,children:(0,n.jsx)("span",{className:l.content,"aria-hidden":!0,children:s!=="keys"?e.text:e.groups.map((t,N)=>(0,n.jsxs)(h.Fragment,{children:[N>0&&(0,n.jsx)("span",{className:l.sequenceJoinLabel,children:` ${e.sequenceJoinLabel} `}),(0,n.jsx)("span",{className:l.combination,children:t.map((v,g)=>(0,n.jsxs)(h.Fragment,{children:[g>0&&e.separator,(0,n.jsx)("kbd",{className:l.key,children:v})]},g))})]},N))})})};Object.defineProperty(exports,"Shortcut",{enumerable:!0,get:function(){return M}});Object.defineProperty(exports,"getShortcutPresentation",{enumerable:!0,get:function(){return C}});
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { t as q } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
+
import { t as e } from "./doNotTranslate-BSVT8Xyd.js";
|
|
3
|
+
import { i as A, t as E } from "./useIsMobile-CZeJLJJN.js";
|
|
4
|
+
import { isNonEmptyArray as g, isString as w } from "@sniptt/guards";
|
|
5
|
+
import { clsx as L } from "clsx";
|
|
6
|
+
import { Fragment as v } from "react";
|
|
7
|
+
import { jsx as i, jsxs as f } from "react/jsx-runtime";
|
|
8
|
+
var y = new Map(e([
|
|
9
|
+
["⌘", "Command"],
|
|
10
|
+
["⌥", "Option"],
|
|
11
|
+
["⇧", "Shift"],
|
|
12
|
+
["⌃", "Control"],
|
|
13
|
+
["Ctrl", "Control"],
|
|
14
|
+
["⏎", "Enter"],
|
|
15
|
+
["↵", "Enter"],
|
|
16
|
+
["⌫", "Backspace"],
|
|
17
|
+
["↑", "Arrow up"],
|
|
18
|
+
["↓", "Arrow down"],
|
|
19
|
+
["←", "Arrow left"],
|
|
20
|
+
["→", "Arrow right"],
|
|
21
|
+
["esc", "Escape"]
|
|
22
|
+
])), N = (a) => a.every(w), j = ({ shortcut: a, platform: l, sequenceJoinLabel: m = "then", combinationSeparator: b, accessibleKeyLabels: d }) => {
|
|
23
|
+
const n = A(), t = l === "mac" || !q(l) && (n === "mac" || n === "ios"), _ = new Map([
|
|
24
|
+
[e("Mod"), t ? "⌘" : e("Ctrl")],
|
|
25
|
+
[e("CommandOrControl"), t ? "⌘" : e("Ctrl")],
|
|
26
|
+
[e("Command"), "⌘"],
|
|
27
|
+
e(["Control", "Ctrl"]),
|
|
28
|
+
[e("Alt"), t ? "⌥" : e("Alt")],
|
|
29
|
+
[e("Enter"), "⏎"]
|
|
30
|
+
]), s = (N(a) ? [a] : a).filter(g).map((r) => r.map((o) => _.get(o) ?? o)), p = b ?? (t ? "" : " "), u = ` ${m} `;
|
|
31
|
+
return {
|
|
32
|
+
groups: s,
|
|
33
|
+
separator: p,
|
|
34
|
+
sequenceJoinLabel: m,
|
|
35
|
+
text: s.map((r) => r.join(p)).join(u),
|
|
36
|
+
accessibleLabel: s.map((r) => r.map((o) => d?.[o] ?? y.get(o) ?? o).join(" + ")).join(u)
|
|
37
|
+
};
|
|
38
|
+
}, M = "_root_3buq7_1", k = "_content_3buq7_28", x = "_combination_3buq7_29", B = "_sequenceJoinLabel_3buq7_35", J = "_key_3buq7_39", c = {
|
|
39
|
+
root: M,
|
|
40
|
+
content: k,
|
|
41
|
+
combination: x,
|
|
42
|
+
sequenceJoinLabel: B,
|
|
43
|
+
key: J
|
|
44
|
+
}, U = ({ shortcut: a, platform: l, sequenceJoinLabel: m, combinationSeparator: b, accessibleKeyLabels: d, variant: n = "keys", visibility: t = "always", className: _, "aria-label": s, ...p }) => {
|
|
45
|
+
const u = E(), r = j({
|
|
46
|
+
shortcut: a,
|
|
47
|
+
platform: l,
|
|
48
|
+
sequenceJoinLabel: m,
|
|
49
|
+
combinationSeparator: b,
|
|
50
|
+
accessibleKeyLabels: d
|
|
51
|
+
});
|
|
52
|
+
return !g(r.groups) || t === "desktop" && u ? null : /* @__PURE__ */ i("span", {
|
|
53
|
+
...p,
|
|
54
|
+
className: L(c.root, _),
|
|
55
|
+
"data-variant": n,
|
|
56
|
+
role: "img",
|
|
57
|
+
"aria-label": s ?? r.accessibleLabel,
|
|
58
|
+
children: /* @__PURE__ */ i("span", {
|
|
59
|
+
className: c.content,
|
|
60
|
+
"aria-hidden": !0,
|
|
61
|
+
children: n !== "keys" ? r.text : r.groups.map((o, C) => /* @__PURE__ */ f(v, { children: [C > 0 && /* @__PURE__ */ i("span", {
|
|
62
|
+
className: c.sequenceJoinLabel,
|
|
63
|
+
children: ` ${r.sequenceJoinLabel} `
|
|
64
|
+
}), /* @__PURE__ */ i("span", {
|
|
65
|
+
className: c.combination,
|
|
66
|
+
children: o.map((S, h) => /* @__PURE__ */ f(v, { children: [h > 0 && r.separator, /* @__PURE__ */ i("kbd", {
|
|
67
|
+
className: c.key,
|
|
68
|
+
children: S
|
|
69
|
+
})] }, h))
|
|
70
|
+
})] }, C))
|
|
71
|
+
})
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
export {
|
|
75
|
+
j as n,
|
|
76
|
+
U as t
|
|
77
|
+
};
|