@drjoshcsimmons/scl 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +73 -0
- package/dist/components/ui/accordion/accordion.d.ts +8 -0
- package/dist/components/ui/accordion/accordion.d.ts.map +1 -0
- package/dist/components/ui/accordion/index.d.ts +2 -0
- package/dist/components/ui/accordion/index.d.ts.map +1 -0
- package/dist/components/ui/alert/alert.d.ts +9 -0
- package/dist/components/ui/alert/alert.d.ts.map +1 -0
- package/dist/components/ui/alert/index.d.ts +2 -0
- package/dist/components/ui/alert/index.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog/alert-dialog.d.ts +21 -0
- package/dist/components/ui/alert-dialog/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog/index.d.ts +2 -0
- package/dist/components/ui/alert-dialog/index.d.ts.map +1 -0
- package/dist/components/ui/avatar/avatar.d.ts +7 -0
- package/dist/components/ui/avatar/avatar.d.ts.map +1 -0
- package/dist/components/ui/avatar/index.d.ts +2 -0
- package/dist/components/ui/avatar/index.d.ts.map +1 -0
- package/dist/components/ui/badge/badge.d.ts +10 -0
- package/dist/components/ui/badge/badge.d.ts.map +1 -0
- package/dist/components/ui/badge/index.d.ts +2 -0
- package/dist/components/ui/badge/index.d.ts.map +1 -0
- package/dist/components/ui/button/button.d.ts +12 -0
- package/dist/components/ui/button/button.d.ts.map +1 -0
- package/dist/components/ui/button/index.d.ts +2 -0
- package/dist/components/ui/button/index.d.ts.map +1 -0
- package/dist/components/ui/card/card.d.ts +9 -0
- package/dist/components/ui/card/card.d.ts.map +1 -0
- package/dist/components/ui/card/index.d.ts +2 -0
- package/dist/components/ui/card/index.d.ts.map +1 -0
- package/dist/components/ui/checkbox/checkbox.d.ts +5 -0
- package/dist/components/ui/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/ui/checkbox/index.d.ts +2 -0
- package/dist/components/ui/checkbox/index.d.ts.map +1 -0
- package/dist/components/ui/collapsible/collapsible.d.ts +6 -0
- package/dist/components/ui/collapsible/collapsible.d.ts.map +1 -0
- package/dist/components/ui/collapsible/index.d.ts +2 -0
- package/dist/components/ui/collapsible/index.d.ts.map +1 -0
- package/dist/components/ui/dialog/dialog.d.ts +20 -0
- package/dist/components/ui/dialog/dialog.d.ts.map +1 -0
- package/dist/components/ui/dialog/index.d.ts +2 -0
- package/dist/components/ui/dialog/index.d.ts.map +1 -0
- package/dist/components/ui/dithered-image/dithered-image.d.ts +17 -0
- package/dist/components/ui/dithered-image/dithered-image.d.ts.map +1 -0
- package/dist/components/ui/dithered-image/index.d.ts +3 -0
- package/dist/components/ui/dithered-image/index.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +28 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu/index.d.ts +2 -0
- package/dist/components/ui/dropdown-menu/index.d.ts.map +1 -0
- package/dist/components/ui/input/index.d.ts +2 -0
- package/dist/components/ui/input/index.d.ts.map +1 -0
- package/dist/components/ui/input/input.d.ts +5 -0
- package/dist/components/ui/input/input.d.ts.map +1 -0
- package/dist/components/ui/label/index.d.ts +2 -0
- package/dist/components/ui/label/index.d.ts.map +1 -0
- package/dist/components/ui/label/label.d.ts +6 -0
- package/dist/components/ui/label/label.d.ts.map +1 -0
- package/dist/components/ui/popover/index.d.ts +2 -0
- package/dist/components/ui/popover/index.d.ts.map +1 -0
- package/dist/components/ui/popover/popover.d.ts +8 -0
- package/dist/components/ui/popover/popover.d.ts.map +1 -0
- package/dist/components/ui/progress/index.d.ts +2 -0
- package/dist/components/ui/progress/index.d.ts.map +1 -0
- package/dist/components/ui/progress/progress.d.ts +19 -0
- package/dist/components/ui/progress/progress.d.ts.map +1 -0
- package/dist/components/ui/radio-group/index.d.ts +2 -0
- package/dist/components/ui/radio-group/index.d.ts.map +1 -0
- package/dist/components/ui/radio-group/radio-group.d.ts +6 -0
- package/dist/components/ui/radio-group/radio-group.d.ts.map +1 -0
- package/dist/components/ui/scroll-area/index.d.ts +2 -0
- package/dist/components/ui/scroll-area/index.d.ts.map +1 -0
- package/dist/components/ui/scroll-area/scroll-area.d.ts +6 -0
- package/dist/components/ui/scroll-area/scroll-area.d.ts.map +1 -0
- package/dist/components/ui/select/index.d.ts +2 -0
- package/dist/components/ui/select/index.d.ts.map +1 -0
- package/dist/components/ui/select/select.d.ts +14 -0
- package/dist/components/ui/select/select.d.ts.map +1 -0
- package/dist/components/ui/separator/index.d.ts +2 -0
- package/dist/components/ui/separator/index.d.ts.map +1 -0
- package/dist/components/ui/separator/separator.d.ts +5 -0
- package/dist/components/ui/separator/separator.d.ts.map +1 -0
- package/dist/components/ui/sheet/index.d.ts +2 -0
- package/dist/components/ui/sheet/index.d.ts.map +1 -0
- package/dist/components/ui/sheet/sheet.d.ts +26 -0
- package/dist/components/ui/sheet/sheet.d.ts.map +1 -0
- package/dist/components/ui/skeleton/index.d.ts +2 -0
- package/dist/components/ui/skeleton/index.d.ts.map +1 -0
- package/dist/components/ui/skeleton/skeleton.d.ts +3 -0
- package/dist/components/ui/skeleton/skeleton.d.ts.map +1 -0
- package/dist/components/ui/slider/index.d.ts +2 -0
- package/dist/components/ui/slider/index.d.ts.map +1 -0
- package/dist/components/ui/slider/slider.d.ts +5 -0
- package/dist/components/ui/slider/slider.d.ts.map +1 -0
- package/dist/components/ui/statusline/index.d.ts +2 -0
- package/dist/components/ui/statusline/index.d.ts.map +1 -0
- package/dist/components/ui/statusline/statusline.d.ts +40 -0
- package/dist/components/ui/statusline/statusline.d.ts.map +1 -0
- package/dist/components/ui/switch/index.d.ts +2 -0
- package/dist/components/ui/switch/index.d.ts.map +1 -0
- package/dist/components/ui/switch/switch.d.ts +5 -0
- package/dist/components/ui/switch/switch.d.ts.map +1 -0
- package/dist/components/ui/table/index.d.ts +2 -0
- package/dist/components/ui/table/index.d.ts.map +1 -0
- package/dist/components/ui/table/table.d.ts +11 -0
- package/dist/components/ui/table/table.d.ts.map +1 -0
- package/dist/components/ui/tabs/index.d.ts +2 -0
- package/dist/components/ui/tabs/index.d.ts.map +1 -0
- package/dist/components/ui/tabs/tabs.d.ts +8 -0
- package/dist/components/ui/tabs/tabs.d.ts.map +1 -0
- package/dist/components/ui/terminal-textarea/index.d.ts +2 -0
- package/dist/components/ui/terminal-textarea/index.d.ts.map +1 -0
- package/dist/components/ui/terminal-textarea/terminal-textarea.d.ts +27 -0
- package/dist/components/ui/terminal-textarea/terminal-textarea.d.ts.map +1 -0
- package/dist/components/ui/textarea/index.d.ts +2 -0
- package/dist/components/ui/textarea/index.d.ts.map +1 -0
- package/dist/components/ui/textarea/textarea.d.ts +5 -0
- package/dist/components/ui/textarea/textarea.d.ts.map +1 -0
- package/dist/components/ui/toggle/index.d.ts +2 -0
- package/dist/components/ui/toggle/index.d.ts.map +1 -0
- package/dist/components/ui/toggle/toggle.d.ts +13 -0
- package/dist/components/ui/toggle/toggle.d.ts.map +1 -0
- package/dist/components/ui/tooltip/index.d.ts +2 -0
- package/dist/components/ui/tooltip/index.d.ts.map +1 -0
- package/dist/components/ui/tooltip/tooltip.d.ts +11 -0
- package/dist/components/ui/tooltip/tooltip.d.ts.map +1 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +165 -0
- package/dist/index10.js +61 -0
- package/dist/index100.js +32 -0
- package/dist/index101.js +17 -0
- package/dist/index102.js +137 -0
- package/dist/index103.js +52 -0
- package/dist/index104.js +11 -0
- package/dist/index105.js +6 -0
- package/dist/index106.js +183 -0
- package/dist/index107.js +652 -0
- package/dist/index108.js +109 -0
- package/dist/index109.js +93 -0
- package/dist/index11.js +27 -0
- package/dist/index110.js +69 -0
- package/dist/index111.js +161 -0
- package/dist/index112.js +399 -0
- package/dist/index113.js +1682 -0
- package/dist/index114.js +280 -0
- package/dist/index115.js +134 -0
- package/dist/index116.js +34 -0
- package/dist/index117.js +1613 -0
- package/dist/index118.js +300 -0
- package/dist/index119.js +637 -0
- package/dist/index12.js +7 -0
- package/dist/index120.js +146 -0
- package/dist/index121.js +23 -0
- package/dist/index122.js +11 -0
- package/dist/index123.js +40 -0
- package/dist/index124.js +20 -0
- package/dist/index125.js +8 -0
- package/dist/index126.js +14 -0
- package/dist/index127.js +208 -0
- package/dist/index128.js +24 -0
- package/dist/index129.js +402 -0
- package/dist/index13.js +100 -0
- package/dist/index130.js +1308 -0
- package/dist/index131.js +620 -0
- package/dist/index132.js +4 -0
- package/dist/index133.js +55 -0
- package/dist/index134.js +67 -0
- package/dist/index135.js +27 -0
- package/dist/index136.js +31 -0
- package/dist/index137.js +7 -0
- package/dist/index138.js +4 -0
- package/dist/index139.js +4 -0
- package/dist/index14.js +226 -0
- package/dist/index140.js +7 -0
- package/dist/index141.js +5 -0
- package/dist/index142.js +26 -0
- package/dist/index143.js +115 -0
- package/dist/index144.js +18 -0
- package/dist/index145.js +527 -0
- package/dist/index146.js +130 -0
- package/dist/index147.js +136 -0
- package/dist/index148.js +67 -0
- package/dist/index149.js +71 -0
- package/dist/index15.js +146 -0
- package/dist/index150.js +11 -0
- package/dist/index151.js +16 -0
- package/dist/index152.js +68 -0
- package/dist/index153.js +6 -0
- package/dist/index154.js +25 -0
- package/dist/index155.js +25 -0
- package/dist/index156.js +15 -0
- package/dist/index157.js +30 -0
- package/dist/index158.js +7 -0
- package/dist/index16.js +21 -0
- package/dist/index17.js +19 -0
- package/dist/index18.js +24 -0
- package/dist/index19.js +58 -0
- package/dist/index2.js +8 -0
- package/dist/index20.js +31 -0
- package/dist/index21.js +38 -0
- package/dist/index22.js +123 -0
- package/dist/index23.js +24 -0
- package/dist/index24.js +72 -0
- package/dist/index25.js +17 -0
- package/dist/index26.js +34 -0
- package/dist/index27.js +81 -0
- package/dist/index28.js +27 -0
- package/dist/index29.js +90 -0
- package/dist/index3.js +22 -0
- package/dist/index30.js +46 -0
- package/dist/index31.js +234 -0
- package/dist/index32.js +20 -0
- package/dist/index33.js +37 -0
- package/dist/index34.js +25 -0
- package/dist/index35.js +105 -0
- package/dist/index36.js +68 -0
- package/dist/index37.js +51 -0
- package/dist/index38.js +102 -0
- package/dist/index39.js +13 -0
- package/dist/index4.js +46 -0
- package/dist/index40.js +17 -0
- package/dist/index41.js +2265 -0
- package/dist/index42.js +35 -0
- package/dist/index43.js +20 -0
- package/dist/index44.js +239 -0
- package/dist/index45.js +13 -0
- package/dist/index46.js +75 -0
- package/dist/index47.js +251 -0
- package/dist/index48.js +11 -0
- package/dist/index49.js +338 -0
- package/dist/index5.js +51 -0
- package/dist/index50.js +62 -0
- package/dist/index51.js +243 -0
- package/dist/index52.js +862 -0
- package/dist/index53.js +11 -0
- package/dist/index54.js +120 -0
- package/dist/index55.js +227 -0
- package/dist/index56.js +13 -0
- package/dist/index57.js +13 -0
- package/dist/index58.js +238 -0
- package/dist/index59.js +262 -0
- package/dist/index6.js +51 -0
- package/dist/index60.js +14 -0
- package/dist/index61.js +24 -0
- package/dist/index62.js +532 -0
- package/dist/index63.js +6157 -0
- package/dist/index64.js +2635 -0
- package/dist/index65.js +300 -0
- package/dist/index66.js +674 -0
- package/dist/index67.js +832 -0
- package/dist/index68.js +27 -0
- package/dist/index69.js +330 -0
- package/dist/index7.js +42 -0
- package/dist/index70.js +4901 -0
- package/dist/index71.js +831 -0
- package/dist/index72.js +1260 -0
- package/dist/index73.js +536 -0
- package/dist/index74.js +127 -0
- package/dist/index75.js +163 -0
- package/dist/index76.js +33 -0
- package/dist/index77.js +437 -0
- package/dist/index78.js +132 -0
- package/dist/index79.js +83 -0
- package/dist/index8.js +31 -0
- package/dist/index80.js +70 -0
- package/dist/index81.js +48 -0
- package/dist/index82.js +29 -0
- package/dist/index83.js +9 -0
- package/dist/index84.js +54 -0
- package/dist/index85.js +36 -0
- package/dist/index86.js +13 -0
- package/dist/index87.js +10 -0
- package/dist/index88.js +32 -0
- package/dist/index89.js +57 -0
- package/dist/index9.js +54 -0
- package/dist/index90.js +13 -0
- package/dist/index91.js +6 -0
- package/dist/index92.js +15 -0
- package/dist/index93.js +8 -0
- package/dist/index94.js +27 -0
- package/dist/index95.js +71 -0
- package/dist/index96.js +127 -0
- package/dist/index97.js +221 -0
- package/dist/index98.js +16 -0
- package/dist/index99.js +56 -0
- package/dist/lib/utils.d.ts +14 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/tokens/animations.d.ts +174 -0
- package/dist/tokens/animations.d.ts.map +1 -0
- package/dist/tokens/colors.d.ts +92 -0
- package/dist/tokens/colors.d.ts.map +1 -0
- package/dist/tokens/index.d.ts +403 -0
- package/dist/tokens/index.d.ts.map +1 -0
- package/dist/tokens/shadows.d.ts +15 -0
- package/dist/tokens/shadows.d.ts.map +1 -0
- package/dist/tokens/spacing.d.ts +55 -0
- package/dist/tokens/spacing.d.ts.map +1 -0
- package/dist/tokens/typography.d.ts +80 -0
- package/dist/tokens/typography.d.ts.map +1 -0
- package/package.json +128 -0
package/dist/index73.js
ADDED
|
@@ -0,0 +1,536 @@
|
|
|
1
|
+
import { NodeProp as q } from "./index120.js";
|
|
2
|
+
let A = 0;
|
|
3
|
+
class l {
|
|
4
|
+
/**
|
|
5
|
+
@internal
|
|
6
|
+
*/
|
|
7
|
+
constructor(t, a, i, n) {
|
|
8
|
+
this.name = t, this.set = a, this.base = i, this.modified = n, this.id = A++;
|
|
9
|
+
}
|
|
10
|
+
toString() {
|
|
11
|
+
let { name: t } = this;
|
|
12
|
+
for (let a of this.modified)
|
|
13
|
+
a.name && (t = `${a.name}(${t})`);
|
|
14
|
+
return t;
|
|
15
|
+
}
|
|
16
|
+
static define(t, a) {
|
|
17
|
+
let i = typeof t == "string" ? t : "?";
|
|
18
|
+
if (t instanceof l && (a = t), a != null && a.base)
|
|
19
|
+
throw new Error("Can not derive from a modified tag");
|
|
20
|
+
let n = new l(i, [], null, []);
|
|
21
|
+
if (n.set.push(n), a)
|
|
22
|
+
for (let r of a.set)
|
|
23
|
+
n.set.push(r);
|
|
24
|
+
return n;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
Define a tag _modifier_, which is a function that, given a tag,
|
|
28
|
+
will return a tag that is a subtag of the original. Applying the
|
|
29
|
+
same modifier to a twice tag will return the same value (`m1(t1)
|
|
30
|
+
== m1(t1)`) and applying multiple modifiers will, regardless or
|
|
31
|
+
order, produce the same tag (`m1(m2(t1)) == m2(m1(t1))`).
|
|
32
|
+
|
|
33
|
+
When multiple modifiers are applied to a given base tag, each
|
|
34
|
+
smaller set of modifiers is registered as a parent, so that for
|
|
35
|
+
example `m1(m2(m3(t1)))` is a subtype of `m1(m2(t1))`,
|
|
36
|
+
`m1(m3(t1)`, and so on.
|
|
37
|
+
*/
|
|
38
|
+
static defineModifier(t) {
|
|
39
|
+
let a = new x(t);
|
|
40
|
+
return (i) => i.modified.indexOf(a) > -1 ? i : x.get(i.base || i, i.modified.concat(a).sort((n, r) => n.id - r.id));
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
let I = 0;
|
|
44
|
+
class x {
|
|
45
|
+
constructor(t) {
|
|
46
|
+
this.name = t, this.instances = [], this.id = I++;
|
|
47
|
+
}
|
|
48
|
+
static get(t, a) {
|
|
49
|
+
if (!a.length)
|
|
50
|
+
return t;
|
|
51
|
+
let i = a[0].instances.find((g) => g.base == t && j(a, g.modified));
|
|
52
|
+
if (i)
|
|
53
|
+
return i;
|
|
54
|
+
let n = [], r = new l(t.name, n, t, a);
|
|
55
|
+
for (let g of a)
|
|
56
|
+
g.instances.push(r);
|
|
57
|
+
let f = B(a);
|
|
58
|
+
for (let g of t.set)
|
|
59
|
+
if (!g.modified.length)
|
|
60
|
+
for (let w of f)
|
|
61
|
+
n.push(x.get(g, w));
|
|
62
|
+
return r;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
function j(s, t) {
|
|
66
|
+
return s.length == t.length && s.every((a, i) => a == t[i]);
|
|
67
|
+
}
|
|
68
|
+
function B(s) {
|
|
69
|
+
let t = [[]];
|
|
70
|
+
for (let a = 0; a < s.length; a++)
|
|
71
|
+
for (let i = 0, n = t.length; i < n; i++)
|
|
72
|
+
t.push(t[i].concat(s[a]));
|
|
73
|
+
return t.sort((a, i) => i.length - a.length);
|
|
74
|
+
}
|
|
75
|
+
new q({
|
|
76
|
+
combine(s, t) {
|
|
77
|
+
let a, i, n;
|
|
78
|
+
for (; s || t; ) {
|
|
79
|
+
if (!s || t && s.depth >= t.depth ? (n = t, t = t.next) : (n = s, s = s.next), a && a.mode == n.mode && !n.context && !a.context)
|
|
80
|
+
continue;
|
|
81
|
+
let r = new O(n.tags, n.mode, n.context);
|
|
82
|
+
a ? a.next = r : i = r, a = r;
|
|
83
|
+
}
|
|
84
|
+
return i;
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
class O {
|
|
88
|
+
constructor(t, a, i, n) {
|
|
89
|
+
this.tags = t, this.mode = a, this.context = i, this.next = n;
|
|
90
|
+
}
|
|
91
|
+
get opaque() {
|
|
92
|
+
return this.mode == 0;
|
|
93
|
+
}
|
|
94
|
+
get inherit() {
|
|
95
|
+
return this.mode == 1;
|
|
96
|
+
}
|
|
97
|
+
sort(t) {
|
|
98
|
+
return !t || t.depth < this.depth ? (this.next = t, this) : (t.next = this.sort(t.next), t);
|
|
99
|
+
}
|
|
100
|
+
get depth() {
|
|
101
|
+
return this.context ? this.context.length : 0;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
O.empty = new O([], 2, null);
|
|
105
|
+
function D(s, t) {
|
|
106
|
+
let a = /* @__PURE__ */ Object.create(null);
|
|
107
|
+
for (let r of s)
|
|
108
|
+
if (!Array.isArray(r.tag))
|
|
109
|
+
a[r.tag.id] = r.class;
|
|
110
|
+
else
|
|
111
|
+
for (let f of r.tag)
|
|
112
|
+
a[f.id] = r.class;
|
|
113
|
+
let { scope: i, all: n = null } = {};
|
|
114
|
+
return {
|
|
115
|
+
style: (r) => {
|
|
116
|
+
let f = n;
|
|
117
|
+
for (let g of r)
|
|
118
|
+
for (let w of g.set) {
|
|
119
|
+
let v = a[w.id];
|
|
120
|
+
if (v) {
|
|
121
|
+
f = f ? f + " " + v : v;
|
|
122
|
+
break;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return f;
|
|
126
|
+
},
|
|
127
|
+
scope: i
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
const e = l.define, N = e(), p = e(), K = e(p), S = e(p), u = e(), y = e(u), M = e(u), m = e(), h = e(m), c = e(), d = e(), C = e(), k = e(C), b = e(), o = {
|
|
131
|
+
/**
|
|
132
|
+
A comment.
|
|
133
|
+
*/
|
|
134
|
+
comment: N,
|
|
135
|
+
/**
|
|
136
|
+
A line [comment](#highlight.tags.comment).
|
|
137
|
+
*/
|
|
138
|
+
lineComment: e(N),
|
|
139
|
+
/**
|
|
140
|
+
A block [comment](#highlight.tags.comment).
|
|
141
|
+
*/
|
|
142
|
+
blockComment: e(N),
|
|
143
|
+
/**
|
|
144
|
+
A documentation [comment](#highlight.tags.comment).
|
|
145
|
+
*/
|
|
146
|
+
docComment: e(N),
|
|
147
|
+
/**
|
|
148
|
+
Any kind of identifier.
|
|
149
|
+
*/
|
|
150
|
+
name: p,
|
|
151
|
+
/**
|
|
152
|
+
The [name](#highlight.tags.name) of a variable.
|
|
153
|
+
*/
|
|
154
|
+
variableName: e(p),
|
|
155
|
+
/**
|
|
156
|
+
A type [name](#highlight.tags.name).
|
|
157
|
+
*/
|
|
158
|
+
typeName: K,
|
|
159
|
+
/**
|
|
160
|
+
A tag name (subtag of [`typeName`](#highlight.tags.typeName)).
|
|
161
|
+
*/
|
|
162
|
+
tagName: e(K),
|
|
163
|
+
/**
|
|
164
|
+
A property or field [name](#highlight.tags.name).
|
|
165
|
+
*/
|
|
166
|
+
propertyName: S,
|
|
167
|
+
/**
|
|
168
|
+
An attribute name (subtag of [`propertyName`](#highlight.tags.propertyName)).
|
|
169
|
+
*/
|
|
170
|
+
attributeName: e(S),
|
|
171
|
+
/**
|
|
172
|
+
The [name](#highlight.tags.name) of a class.
|
|
173
|
+
*/
|
|
174
|
+
className: e(p),
|
|
175
|
+
/**
|
|
176
|
+
A label [name](#highlight.tags.name).
|
|
177
|
+
*/
|
|
178
|
+
labelName: e(p),
|
|
179
|
+
/**
|
|
180
|
+
A namespace [name](#highlight.tags.name).
|
|
181
|
+
*/
|
|
182
|
+
namespace: e(p),
|
|
183
|
+
/**
|
|
184
|
+
The [name](#highlight.tags.name) of a macro.
|
|
185
|
+
*/
|
|
186
|
+
macroName: e(p),
|
|
187
|
+
/**
|
|
188
|
+
A literal value.
|
|
189
|
+
*/
|
|
190
|
+
literal: u,
|
|
191
|
+
/**
|
|
192
|
+
A string [literal](#highlight.tags.literal).
|
|
193
|
+
*/
|
|
194
|
+
string: y,
|
|
195
|
+
/**
|
|
196
|
+
A documentation [string](#highlight.tags.string).
|
|
197
|
+
*/
|
|
198
|
+
docString: e(y),
|
|
199
|
+
/**
|
|
200
|
+
A character literal (subtag of [string](#highlight.tags.string)).
|
|
201
|
+
*/
|
|
202
|
+
character: e(y),
|
|
203
|
+
/**
|
|
204
|
+
An attribute value (subtag of [string](#highlight.tags.string)).
|
|
205
|
+
*/
|
|
206
|
+
attributeValue: e(y),
|
|
207
|
+
/**
|
|
208
|
+
A number [literal](#highlight.tags.literal).
|
|
209
|
+
*/
|
|
210
|
+
number: M,
|
|
211
|
+
/**
|
|
212
|
+
An integer [number](#highlight.tags.number) literal.
|
|
213
|
+
*/
|
|
214
|
+
integer: e(M),
|
|
215
|
+
/**
|
|
216
|
+
A floating-point [number](#highlight.tags.number) literal.
|
|
217
|
+
*/
|
|
218
|
+
float: e(M),
|
|
219
|
+
/**
|
|
220
|
+
A boolean [literal](#highlight.tags.literal).
|
|
221
|
+
*/
|
|
222
|
+
bool: e(u),
|
|
223
|
+
/**
|
|
224
|
+
Regular expression [literal](#highlight.tags.literal).
|
|
225
|
+
*/
|
|
226
|
+
regexp: e(u),
|
|
227
|
+
/**
|
|
228
|
+
An escape [literal](#highlight.tags.literal), for example a
|
|
229
|
+
backslash escape in a string.
|
|
230
|
+
*/
|
|
231
|
+
escape: e(u),
|
|
232
|
+
/**
|
|
233
|
+
A color [literal](#highlight.tags.literal).
|
|
234
|
+
*/
|
|
235
|
+
color: e(u),
|
|
236
|
+
/**
|
|
237
|
+
A URL [literal](#highlight.tags.literal).
|
|
238
|
+
*/
|
|
239
|
+
url: e(u),
|
|
240
|
+
/**
|
|
241
|
+
A language keyword.
|
|
242
|
+
*/
|
|
243
|
+
keyword: c,
|
|
244
|
+
/**
|
|
245
|
+
The [keyword](#highlight.tags.keyword) for the self or this
|
|
246
|
+
object.
|
|
247
|
+
*/
|
|
248
|
+
self: e(c),
|
|
249
|
+
/**
|
|
250
|
+
The [keyword](#highlight.tags.keyword) for null.
|
|
251
|
+
*/
|
|
252
|
+
null: e(c),
|
|
253
|
+
/**
|
|
254
|
+
A [keyword](#highlight.tags.keyword) denoting some atomic value.
|
|
255
|
+
*/
|
|
256
|
+
atom: e(c),
|
|
257
|
+
/**
|
|
258
|
+
A [keyword](#highlight.tags.keyword) that represents a unit.
|
|
259
|
+
*/
|
|
260
|
+
unit: e(c),
|
|
261
|
+
/**
|
|
262
|
+
A modifier [keyword](#highlight.tags.keyword).
|
|
263
|
+
*/
|
|
264
|
+
modifier: e(c),
|
|
265
|
+
/**
|
|
266
|
+
A [keyword](#highlight.tags.keyword) that acts as an operator.
|
|
267
|
+
*/
|
|
268
|
+
operatorKeyword: e(c),
|
|
269
|
+
/**
|
|
270
|
+
A control-flow related [keyword](#highlight.tags.keyword).
|
|
271
|
+
*/
|
|
272
|
+
controlKeyword: e(c),
|
|
273
|
+
/**
|
|
274
|
+
A [keyword](#highlight.tags.keyword) that defines something.
|
|
275
|
+
*/
|
|
276
|
+
definitionKeyword: e(c),
|
|
277
|
+
/**
|
|
278
|
+
A [keyword](#highlight.tags.keyword) related to defining or
|
|
279
|
+
interfacing with modules.
|
|
280
|
+
*/
|
|
281
|
+
moduleKeyword: e(c),
|
|
282
|
+
/**
|
|
283
|
+
An operator.
|
|
284
|
+
*/
|
|
285
|
+
operator: d,
|
|
286
|
+
/**
|
|
287
|
+
An [operator](#highlight.tags.operator) that dereferences something.
|
|
288
|
+
*/
|
|
289
|
+
derefOperator: e(d),
|
|
290
|
+
/**
|
|
291
|
+
Arithmetic-related [operator](#highlight.tags.operator).
|
|
292
|
+
*/
|
|
293
|
+
arithmeticOperator: e(d),
|
|
294
|
+
/**
|
|
295
|
+
Logical [operator](#highlight.tags.operator).
|
|
296
|
+
*/
|
|
297
|
+
logicOperator: e(d),
|
|
298
|
+
/**
|
|
299
|
+
Bit [operator](#highlight.tags.operator).
|
|
300
|
+
*/
|
|
301
|
+
bitwiseOperator: e(d),
|
|
302
|
+
/**
|
|
303
|
+
Comparison [operator](#highlight.tags.operator).
|
|
304
|
+
*/
|
|
305
|
+
compareOperator: e(d),
|
|
306
|
+
/**
|
|
307
|
+
[Operator](#highlight.tags.operator) that updates its operand.
|
|
308
|
+
*/
|
|
309
|
+
updateOperator: e(d),
|
|
310
|
+
/**
|
|
311
|
+
[Operator](#highlight.tags.operator) that defines something.
|
|
312
|
+
*/
|
|
313
|
+
definitionOperator: e(d),
|
|
314
|
+
/**
|
|
315
|
+
Type-related [operator](#highlight.tags.operator).
|
|
316
|
+
*/
|
|
317
|
+
typeOperator: e(d),
|
|
318
|
+
/**
|
|
319
|
+
Control-flow [operator](#highlight.tags.operator).
|
|
320
|
+
*/
|
|
321
|
+
controlOperator: e(d),
|
|
322
|
+
/**
|
|
323
|
+
Program or markup punctuation.
|
|
324
|
+
*/
|
|
325
|
+
punctuation: C,
|
|
326
|
+
/**
|
|
327
|
+
[Punctuation](#highlight.tags.punctuation) that separates
|
|
328
|
+
things.
|
|
329
|
+
*/
|
|
330
|
+
separator: e(C),
|
|
331
|
+
/**
|
|
332
|
+
Bracket-style [punctuation](#highlight.tags.punctuation).
|
|
333
|
+
*/
|
|
334
|
+
bracket: k,
|
|
335
|
+
/**
|
|
336
|
+
Angle [brackets](#highlight.tags.bracket) (usually `<` and `>`
|
|
337
|
+
tokens).
|
|
338
|
+
*/
|
|
339
|
+
angleBracket: e(k),
|
|
340
|
+
/**
|
|
341
|
+
Square [brackets](#highlight.tags.bracket) (usually `[` and `]`
|
|
342
|
+
tokens).
|
|
343
|
+
*/
|
|
344
|
+
squareBracket: e(k),
|
|
345
|
+
/**
|
|
346
|
+
Parentheses (usually `(` and `)` tokens). Subtag of
|
|
347
|
+
[bracket](#highlight.tags.bracket).
|
|
348
|
+
*/
|
|
349
|
+
paren: e(k),
|
|
350
|
+
/**
|
|
351
|
+
Braces (usually `{` and `}` tokens). Subtag of
|
|
352
|
+
[bracket](#highlight.tags.bracket).
|
|
353
|
+
*/
|
|
354
|
+
brace: e(k),
|
|
355
|
+
/**
|
|
356
|
+
Content, for example plain text in XML or markup documents.
|
|
357
|
+
*/
|
|
358
|
+
content: m,
|
|
359
|
+
/**
|
|
360
|
+
[Content](#highlight.tags.content) that represents a heading.
|
|
361
|
+
*/
|
|
362
|
+
heading: h,
|
|
363
|
+
/**
|
|
364
|
+
A level 1 [heading](#highlight.tags.heading).
|
|
365
|
+
*/
|
|
366
|
+
heading1: e(h),
|
|
367
|
+
/**
|
|
368
|
+
A level 2 [heading](#highlight.tags.heading).
|
|
369
|
+
*/
|
|
370
|
+
heading2: e(h),
|
|
371
|
+
/**
|
|
372
|
+
A level 3 [heading](#highlight.tags.heading).
|
|
373
|
+
*/
|
|
374
|
+
heading3: e(h),
|
|
375
|
+
/**
|
|
376
|
+
A level 4 [heading](#highlight.tags.heading).
|
|
377
|
+
*/
|
|
378
|
+
heading4: e(h),
|
|
379
|
+
/**
|
|
380
|
+
A level 5 [heading](#highlight.tags.heading).
|
|
381
|
+
*/
|
|
382
|
+
heading5: e(h),
|
|
383
|
+
/**
|
|
384
|
+
A level 6 [heading](#highlight.tags.heading).
|
|
385
|
+
*/
|
|
386
|
+
heading6: e(h),
|
|
387
|
+
/**
|
|
388
|
+
A prose [content](#highlight.tags.content) separator (such as a horizontal rule).
|
|
389
|
+
*/
|
|
390
|
+
contentSeparator: e(m),
|
|
391
|
+
/**
|
|
392
|
+
[Content](#highlight.tags.content) that represents a list.
|
|
393
|
+
*/
|
|
394
|
+
list: e(m),
|
|
395
|
+
/**
|
|
396
|
+
[Content](#highlight.tags.content) that represents a quote.
|
|
397
|
+
*/
|
|
398
|
+
quote: e(m),
|
|
399
|
+
/**
|
|
400
|
+
[Content](#highlight.tags.content) that is emphasized.
|
|
401
|
+
*/
|
|
402
|
+
emphasis: e(m),
|
|
403
|
+
/**
|
|
404
|
+
[Content](#highlight.tags.content) that is styled strong.
|
|
405
|
+
*/
|
|
406
|
+
strong: e(m),
|
|
407
|
+
/**
|
|
408
|
+
[Content](#highlight.tags.content) that is part of a link.
|
|
409
|
+
*/
|
|
410
|
+
link: e(m),
|
|
411
|
+
/**
|
|
412
|
+
[Content](#highlight.tags.content) that is styled as code or
|
|
413
|
+
monospace.
|
|
414
|
+
*/
|
|
415
|
+
monospace: e(m),
|
|
416
|
+
/**
|
|
417
|
+
[Content](#highlight.tags.content) that has a strike-through
|
|
418
|
+
style.
|
|
419
|
+
*/
|
|
420
|
+
strikethrough: e(m),
|
|
421
|
+
/**
|
|
422
|
+
Inserted text in a change-tracking format.
|
|
423
|
+
*/
|
|
424
|
+
inserted: e(),
|
|
425
|
+
/**
|
|
426
|
+
Deleted text.
|
|
427
|
+
*/
|
|
428
|
+
deleted: e(),
|
|
429
|
+
/**
|
|
430
|
+
Changed text.
|
|
431
|
+
*/
|
|
432
|
+
changed: e(),
|
|
433
|
+
/**
|
|
434
|
+
An invalid or unsyntactic element.
|
|
435
|
+
*/
|
|
436
|
+
invalid: e(),
|
|
437
|
+
/**
|
|
438
|
+
Metadata or meta-instruction.
|
|
439
|
+
*/
|
|
440
|
+
meta: b,
|
|
441
|
+
/**
|
|
442
|
+
[Metadata](#highlight.tags.meta) that applies to the entire
|
|
443
|
+
document.
|
|
444
|
+
*/
|
|
445
|
+
documentMeta: e(b),
|
|
446
|
+
/**
|
|
447
|
+
[Metadata](#highlight.tags.meta) that annotates or adds
|
|
448
|
+
attributes to a given syntactic element.
|
|
449
|
+
*/
|
|
450
|
+
annotation: e(b),
|
|
451
|
+
/**
|
|
452
|
+
Processing instruction or preprocessor directive. Subtag of
|
|
453
|
+
[meta](#highlight.tags.meta).
|
|
454
|
+
*/
|
|
455
|
+
processingInstruction: e(b),
|
|
456
|
+
/**
|
|
457
|
+
[Modifier](#highlight.Tag^defineModifier) that indicates that a
|
|
458
|
+
given element is being defined. Expected to be used with the
|
|
459
|
+
various [name](#highlight.tags.name) tags.
|
|
460
|
+
*/
|
|
461
|
+
definition: l.defineModifier("definition"),
|
|
462
|
+
/**
|
|
463
|
+
[Modifier](#highlight.Tag^defineModifier) that indicates that
|
|
464
|
+
something is constant. Mostly expected to be used with
|
|
465
|
+
[variable names](#highlight.tags.variableName).
|
|
466
|
+
*/
|
|
467
|
+
constant: l.defineModifier("constant"),
|
|
468
|
+
/**
|
|
469
|
+
[Modifier](#highlight.Tag^defineModifier) used to indicate that
|
|
470
|
+
a [variable](#highlight.tags.variableName) or [property
|
|
471
|
+
name](#highlight.tags.propertyName) is being called or defined
|
|
472
|
+
as a function.
|
|
473
|
+
*/
|
|
474
|
+
function: l.defineModifier("function"),
|
|
475
|
+
/**
|
|
476
|
+
[Modifier](#highlight.Tag^defineModifier) that can be applied to
|
|
477
|
+
[names](#highlight.tags.name) to indicate that they belong to
|
|
478
|
+
the language's standard environment.
|
|
479
|
+
*/
|
|
480
|
+
standard: l.defineModifier("standard"),
|
|
481
|
+
/**
|
|
482
|
+
[Modifier](#highlight.Tag^defineModifier) that indicates a given
|
|
483
|
+
[names](#highlight.tags.name) is local to some scope.
|
|
484
|
+
*/
|
|
485
|
+
local: l.defineModifier("local"),
|
|
486
|
+
/**
|
|
487
|
+
A generic variant [modifier](#highlight.Tag^defineModifier) that
|
|
488
|
+
can be used to tag language-specific alternative variants of
|
|
489
|
+
some common tag. It is recommended for themes to define special
|
|
490
|
+
forms of at least the [string](#highlight.tags.string) and
|
|
491
|
+
[variable name](#highlight.tags.variableName) tags, since those
|
|
492
|
+
come up a lot.
|
|
493
|
+
*/
|
|
494
|
+
special: l.defineModifier("special")
|
|
495
|
+
};
|
|
496
|
+
for (let s in o) {
|
|
497
|
+
let t = o[s];
|
|
498
|
+
t instanceof l && (t.name = s);
|
|
499
|
+
}
|
|
500
|
+
D([
|
|
501
|
+
{ tag: o.link, class: "tok-link" },
|
|
502
|
+
{ tag: o.heading, class: "tok-heading" },
|
|
503
|
+
{ tag: o.emphasis, class: "tok-emphasis" },
|
|
504
|
+
{ tag: o.strong, class: "tok-strong" },
|
|
505
|
+
{ tag: o.keyword, class: "tok-keyword" },
|
|
506
|
+
{ tag: o.atom, class: "tok-atom" },
|
|
507
|
+
{ tag: o.bool, class: "tok-bool" },
|
|
508
|
+
{ tag: o.url, class: "tok-url" },
|
|
509
|
+
{ tag: o.labelName, class: "tok-labelName" },
|
|
510
|
+
{ tag: o.inserted, class: "tok-inserted" },
|
|
511
|
+
{ tag: o.deleted, class: "tok-deleted" },
|
|
512
|
+
{ tag: o.literal, class: "tok-literal" },
|
|
513
|
+
{ tag: o.string, class: "tok-string" },
|
|
514
|
+
{ tag: o.number, class: "tok-number" },
|
|
515
|
+
{ tag: [o.regexp, o.escape, o.special(o.string)], class: "tok-string2" },
|
|
516
|
+
{ tag: o.variableName, class: "tok-variableName" },
|
|
517
|
+
{ tag: o.local(o.variableName), class: "tok-variableName tok-local" },
|
|
518
|
+
{ tag: o.definition(o.variableName), class: "tok-variableName tok-definition" },
|
|
519
|
+
{ tag: o.special(o.variableName), class: "tok-variableName2" },
|
|
520
|
+
{ tag: o.definition(o.propertyName), class: "tok-propertyName tok-definition" },
|
|
521
|
+
{ tag: o.typeName, class: "tok-typeName" },
|
|
522
|
+
{ tag: o.namespace, class: "tok-namespace" },
|
|
523
|
+
{ tag: o.className, class: "tok-className" },
|
|
524
|
+
{ tag: o.macroName, class: "tok-macroName" },
|
|
525
|
+
{ tag: o.propertyName, class: "tok-propertyName" },
|
|
526
|
+
{ tag: o.operator, class: "tok-operator" },
|
|
527
|
+
{ tag: o.comment, class: "tok-comment" },
|
|
528
|
+
{ tag: o.meta, class: "tok-meta" },
|
|
529
|
+
{ tag: o.invalid, class: "tok-invalid" },
|
|
530
|
+
{ tag: o.punctuation, class: "tok-punctuation" }
|
|
531
|
+
]);
|
|
532
|
+
export {
|
|
533
|
+
l as Tag,
|
|
534
|
+
D as tagHighlighter,
|
|
535
|
+
o as tags
|
|
536
|
+
};
|
package/dist/index74.js
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import { createContextScope as w } from "./index80.js";
|
|
3
|
+
import { useComposedRefs as v } from "./index82.js";
|
|
4
|
+
import { createDialogScope as A, Root as M, Portal as x, Trigger as I, Overlay as L, WarningProvider as $, Content as F, Title as G, Description as j, Close as f } from "./index59.js";
|
|
5
|
+
import { composeEventHandlers as W } from "./index83.js";
|
|
6
|
+
import { createSlottable as Y } from "./index99.js";
|
|
7
|
+
import { jsx as i, jsxs as q } from "react/jsx-runtime";
|
|
8
|
+
var D = "AlertDialog", [B] = w(D, [
|
|
9
|
+
A
|
|
10
|
+
]), n = A(), m = (e) => {
|
|
11
|
+
const { __scopeAlertDialog: o, ...r } = e, t = n(o);
|
|
12
|
+
return /* @__PURE__ */ i(M, { ...t, ...r, modal: !0 });
|
|
13
|
+
};
|
|
14
|
+
m.displayName = D;
|
|
15
|
+
var H = "AlertDialogTrigger", y = l.forwardRef(
|
|
16
|
+
(e, o) => {
|
|
17
|
+
const { __scopeAlertDialog: r, ...t } = e, a = n(r);
|
|
18
|
+
return /* @__PURE__ */ i(I, { ...a, ...t, ref: o });
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
y.displayName = H;
|
|
22
|
+
var V = "AlertDialogPortal", _ = (e) => {
|
|
23
|
+
const { __scopeAlertDialog: o, ...r } = e, t = n(o);
|
|
24
|
+
return /* @__PURE__ */ i(x, { ...t, ...r });
|
|
25
|
+
};
|
|
26
|
+
_.displayName = V;
|
|
27
|
+
var k = "AlertDialogOverlay", N = l.forwardRef(
|
|
28
|
+
(e, o) => {
|
|
29
|
+
const { __scopeAlertDialog: r, ...t } = e, a = n(r);
|
|
30
|
+
return /* @__PURE__ */ i(L, { ...a, ...t, ref: o });
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
N.displayName = k;
|
|
34
|
+
var s = "AlertDialogContent", [z, J] = B(s), K = Y("AlertDialogContent"), R = l.forwardRef(
|
|
35
|
+
(e, o) => {
|
|
36
|
+
const { __scopeAlertDialog: r, children: t, ...a } = e, g = n(r), p = l.useRef(null), b = v(o, p), d = l.useRef(null);
|
|
37
|
+
return /* @__PURE__ */ i(
|
|
38
|
+
$,
|
|
39
|
+
{
|
|
40
|
+
contentName: s,
|
|
41
|
+
titleName: C,
|
|
42
|
+
docsSlug: "alert-dialog",
|
|
43
|
+
children: /* @__PURE__ */ i(z, { scope: r, cancelRef: d, children: /* @__PURE__ */ q(
|
|
44
|
+
F,
|
|
45
|
+
{
|
|
46
|
+
role: "alertdialog",
|
|
47
|
+
...g,
|
|
48
|
+
...a,
|
|
49
|
+
ref: b,
|
|
50
|
+
onOpenAutoFocus: W(a.onOpenAutoFocus, (c) => {
|
|
51
|
+
var u;
|
|
52
|
+
c.preventDefault(), (u = d.current) == null || u.focus({ preventScroll: !0 });
|
|
53
|
+
}),
|
|
54
|
+
onPointerDownOutside: (c) => c.preventDefault(),
|
|
55
|
+
onInteractOutside: (c) => c.preventDefault(),
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ i(K, { children: t }),
|
|
58
|
+
/* @__PURE__ */ i(U, { contentRef: p })
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
) })
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
R.displayName = s;
|
|
67
|
+
var C = "AlertDialogTitle", h = l.forwardRef(
|
|
68
|
+
(e, o) => {
|
|
69
|
+
const { __scopeAlertDialog: r, ...t } = e, a = n(r);
|
|
70
|
+
return /* @__PURE__ */ i(G, { ...a, ...t, ref: o });
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
h.displayName = C;
|
|
74
|
+
var E = "AlertDialogDescription", P = l.forwardRef((e, o) => {
|
|
75
|
+
const { __scopeAlertDialog: r, ...t } = e, a = n(r);
|
|
76
|
+
return /* @__PURE__ */ i(j, { ...a, ...t, ref: o });
|
|
77
|
+
});
|
|
78
|
+
P.displayName = E;
|
|
79
|
+
var Q = "AlertDialogAction", S = l.forwardRef(
|
|
80
|
+
(e, o) => {
|
|
81
|
+
const { __scopeAlertDialog: r, ...t } = e, a = n(r);
|
|
82
|
+
return /* @__PURE__ */ i(f, { ...a, ...t, ref: o });
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
S.displayName = Q;
|
|
86
|
+
var T = "AlertDialogCancel", O = l.forwardRef(
|
|
87
|
+
(e, o) => {
|
|
88
|
+
const { __scopeAlertDialog: r, ...t } = e, { cancelRef: a } = J(T, r), g = n(r), p = v(o, a);
|
|
89
|
+
return /* @__PURE__ */ i(f, { ...g, ...t, ref: p });
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
O.displayName = T;
|
|
93
|
+
var U = ({ contentRef: e }) => {
|
|
94
|
+
const o = `\`${s}\` requires a description for the component to be accessible for screen reader users.
|
|
95
|
+
|
|
96
|
+
You can add a description to the \`${s}\` by passing a \`${E}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
97
|
+
|
|
98
|
+
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${s}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
99
|
+
|
|
100
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;
|
|
101
|
+
return l.useEffect(() => {
|
|
102
|
+
var t;
|
|
103
|
+
document.getElementById(
|
|
104
|
+
(t = e.current) == null ? void 0 : t.getAttribute("aria-describedby")
|
|
105
|
+
) || console.warn(o);
|
|
106
|
+
}, [o, e]), null;
|
|
107
|
+
}, ae = m, ie = y, le = _, ne = N, se = R, ce = S, pe = O, ge = h, de = P;
|
|
108
|
+
export {
|
|
109
|
+
ce as Action,
|
|
110
|
+
m as AlertDialog,
|
|
111
|
+
S as AlertDialogAction,
|
|
112
|
+
O as AlertDialogCancel,
|
|
113
|
+
R as AlertDialogContent,
|
|
114
|
+
P as AlertDialogDescription,
|
|
115
|
+
N as AlertDialogOverlay,
|
|
116
|
+
_ as AlertDialogPortal,
|
|
117
|
+
h as AlertDialogTitle,
|
|
118
|
+
y as AlertDialogTrigger,
|
|
119
|
+
pe as Cancel,
|
|
120
|
+
se as Content,
|
|
121
|
+
de as Description,
|
|
122
|
+
ne as Overlay,
|
|
123
|
+
le as Portal,
|
|
124
|
+
ae as Root,
|
|
125
|
+
ge as Title,
|
|
126
|
+
ie as Trigger
|
|
127
|
+
};
|