@drjoshcsimmons/scl 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. package/dist/components/ui/alert/alert.d.ts +1 -1
  2. package/dist/components/ui/alert/alert.d.ts.map +1 -1
  3. package/dist/components/ui/badge/badge.d.ts +1 -1
  4. package/dist/components/ui/badge/badge.d.ts.map +1 -1
  5. package/dist/components/ui/button/button.d.ts +1 -1
  6. package/dist/components/ui/button/button.d.ts.map +1 -1
  7. package/dist/components/ui/combobox/combobox.d.ts +31 -0
  8. package/dist/components/ui/combobox/combobox.d.ts.map +1 -0
  9. package/dist/components/ui/combobox/index.d.ts +3 -0
  10. package/dist/components/ui/combobox/index.d.ts.map +1 -0
  11. package/dist/components/ui/command/command.d.ts +85 -0
  12. package/dist/components/ui/command/command.d.ts.map +1 -0
  13. package/dist/components/ui/command/index.d.ts +2 -0
  14. package/dist/components/ui/command/index.d.ts.map +1 -0
  15. package/dist/components/ui/dithered-image/dithered-image.d.ts +6 -2
  16. package/dist/components/ui/dithered-image/dithered-image.d.ts.map +1 -1
  17. package/dist/components/ui/dithered-image/index.d.ts +1 -1
  18. package/dist/components/ui/dithered-image/index.d.ts.map +1 -1
  19. package/dist/components/ui/form/form.d.ts +24 -0
  20. package/dist/components/ui/form/form.d.ts.map +1 -0
  21. package/dist/components/ui/form/index.d.ts +2 -0
  22. package/dist/components/ui/form/index.d.ts.map +1 -0
  23. package/dist/components/ui/progress/progress.d.ts +0 -6
  24. package/dist/components/ui/progress/progress.d.ts.map +1 -1
  25. package/dist/components/ui/scroll-area/scroll-area.d.ts.map +1 -1
  26. package/dist/components/ui/skeleton/skeleton.d.ts +4 -1
  27. package/dist/components/ui/skeleton/skeleton.d.ts.map +1 -1
  28. package/dist/components/ui/statusline/statusline.d.ts.map +1 -1
  29. package/dist/components/ui/terminal-textarea/terminal-textarea.d.ts +0 -5
  30. package/dist/components/ui/terminal-textarea/terminal-textarea.d.ts.map +1 -1
  31. package/dist/index.d.ts +3 -0
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +166 -143
  34. package/dist/index10.js +30 -30
  35. package/dist/index100.js +9 -30
  36. package/dist/index101.js +50 -15
  37. package/dist/index102.js +212 -128
  38. package/dist/index103.js +4 -50
  39. package/dist/index104.js +30 -9
  40. package/dist/index105.js +6 -4
  41. package/dist/index106.js +19 -179
  42. package/dist/index107.js +9 -650
  43. package/dist/index108.js +38 -107
  44. package/dist/index109.js +17 -90
  45. package/dist/index11.js +13 -13
  46. package/dist/index110.js +11 -66
  47. package/dist/index111.js +201 -154
  48. package/dist/index112.js +20 -395
  49. package/dist/index113.js +395 -1675
  50. package/dist/index114.js +2 -278
  51. package/dist/index115.js +49 -128
  52. package/dist/index116.js +65 -32
  53. package/dist/index117.js +2 -1611
  54. package/dist/index118.js +2 -298
  55. package/dist/index119.js +22 -632
  56. package/dist/index12.js +1 -1
  57. package/dist/index120.js +29 -144
  58. package/dist/index121.js +5 -21
  59. package/dist/index122.js +5 -9
  60. package/dist/index123.js +3 -38
  61. package/dist/index124.js +24 -18
  62. package/dist/index125.js +113 -6
  63. package/dist/index126.js +15 -11
  64. package/dist/index127.js +513 -194
  65. package/dist/index128.js +128 -22
  66. package/dist/index129.js +114 -380
  67. package/dist/index13.js +132 -93
  68. package/dist/index130.js +59 -1300
  69. package/dist/index131.js +63 -612
  70. package/dist/index132.js +9 -2
  71. package/dist/index133.js +13 -52
  72. package/dist/index134.js +64 -63
  73. package/dist/index135.js +3 -24
  74. package/dist/index136.js +23 -29
  75. package/dist/index137.js +23 -5
  76. package/dist/index138.js +13 -2
  77. package/dist/index139.js +28 -2
  78. package/dist/index14.js +106 -220
  79. package/dist/index140.js +5 -5
  80. package/dist/index15.js +79 -125
  81. package/dist/index16.js +280 -17
  82. package/dist/index17.js +139 -12
  83. package/dist/index18.js +92 -22
  84. package/dist/index19.js +18 -55
  85. package/dist/index2.js +2 -2
  86. package/dist/index20.js +14 -26
  87. package/dist/index21.js +19 -33
  88. package/dist/index22.js +38 -121
  89. package/dist/index23.js +29 -22
  90. package/dist/index24.js +31 -64
  91. package/dist/index25.js +121 -15
  92. package/dist/index26.js +19 -29
  93. package/dist/index27.js +68 -77
  94. package/dist/index28.js +20 -25
  95. package/dist/index29.js +32 -88
  96. package/dist/index3.js +11 -9
  97. package/dist/index30.js +138 -38
  98. package/dist/index31.js +20 -227
  99. package/dist/index32.js +88 -18
  100. package/dist/index33.js +37 -28
  101. package/dist/index34.js +86 -22
  102. package/dist/index35.js +17 -102
  103. package/dist/index36.js +34 -65
  104. package/dist/index37.js +23 -49
  105. package/dist/index38.js +38 -99
  106. package/dist/index39.js +65 -10
  107. package/dist/index4.js +6 -6
  108. package/dist/index40.js +49 -15
  109. package/dist/index41.js +93 -2256
  110. package/dist/index42.js +10 -32
  111. package/dist/index43.js +15 -18
  112. package/dist/index44.js +2251 -225
  113. package/dist/index45.js +33 -11
  114. package/dist/index46.js +116 -64
  115. package/dist/index47.js +207 -219
  116. package/dist/index48.js +5 -3
  117. package/dist/index49.js +54 -330
  118. package/dist/index5.js +23 -23
  119. package/dist/index50.js +244 -55
  120. package/dist/index51.js +9 -241
  121. package/dist/index52.js +60 -847
  122. package/dist/index53.js +236 -9
  123. package/dist/index54.js +11 -118
  124. package/dist/index55.js +300 -215
  125. package/dist/index56.js +4 -3
  126. package/dist/index57.js +225 -11
  127. package/dist/index58.js +11 -236
  128. package/dist/index59.js +27 -256
  129. package/dist/index6.js +12 -12
  130. package/dist/index60.js +260 -12
  131. package/dist/index61.js +12 -22
  132. package/dist/index62.js +94 -506
  133. package/dist/index63.js +12 -6155
  134. package/dist/index64.js +20 -2631
  135. package/dist/index65.js +16 -296
  136. package/dist/index66.js +232 -663
  137. package/dist/index67.js +125 -825
  138. package/dist/index68.js +159 -23
  139. package/dist/index69.js +241 -315
  140. package/dist/index7.js +22 -22
  141. package/dist/index70.js +72 -4889
  142. package/dist/index71.js +503 -802
  143. package/dist/index72.js +412 -1235
  144. package/dist/index73.js +323 -521
  145. package/dist/index74.js +839 -104
  146. package/dist/index75.js +9 -161
  147. package/dist/index76.js +67 -30
  148. package/dist/index77.js +22 -430
  149. package/dist/index78.js +6 -129
  150. package/dist/index79.js +48 -75
  151. package/dist/index8.js +17 -18
  152. package/dist/index80.js +42 -64
  153. package/dist/index81.js +50 -44
  154. package/dist/index82.js +32 -25
  155. package/dist/index83.js +10 -6
  156. package/dist/index84.js +7 -51
  157. package/dist/index85.js +5 -33
  158. package/dist/index86.js +24 -10
  159. package/dist/index87.js +68 -7
  160. package/dist/index88.js +55 -30
  161. package/dist/index89.js +10 -54
  162. package/dist/index9.js +23 -31
  163. package/dist/index90.js +4 -11
  164. package/dist/index91.js +30 -4
  165. package/dist/index92.js +1 -1
  166. package/dist/index93.js +180 -5
  167. package/dist/index94.js +14 -24
  168. package/dist/index95.js +643 -62
  169. package/dist/index96.js +5 -5
  170. package/dist/index97.js +128 -212
  171. package/dist/index98.js +2 -2
  172. package/dist/index99.js +13 -52
  173. package/dist/tokens/colors.d.ts +26 -86
  174. package/dist/tokens/colors.d.ts.map +1 -1
  175. package/dist/tokens/index.d.ts +12 -84
  176. package/dist/tokens/index.d.ts.map +1 -1
  177. package/package.json +26 -22
  178. package/dist/index141.js +0 -5
  179. package/dist/index142.js +0 -26
  180. package/dist/index143.js +0 -115
  181. package/dist/index144.js +0 -18
  182. package/dist/index145.js +0 -527
  183. package/dist/index146.js +0 -130
  184. package/dist/index147.js +0 -136
  185. package/dist/index148.js +0 -67
  186. package/dist/index149.js +0 -71
  187. package/dist/index150.js +0 -11
  188. package/dist/index151.js +0 -16
  189. package/dist/index152.js +0 -68
  190. package/dist/index153.js +0 -6
  191. package/dist/index154.js +0 -25
  192. package/dist/index155.js +0 -25
  193. package/dist/index156.js +0 -15
  194. package/dist/index157.js +0 -30
  195. package/dist/index158.js +0 -7
package/dist/index108.js CHANGED
@@ -1,109 +1,40 @@
1
- const S = "ͼ", m = typeof Symbol > "u" ? "__" + S : Symbol.for(S), c = typeof Symbol > "u" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet"), w = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : {};
2
- class A {
3
- // :: (Object<Style>, ?{finish: ?(string) string})
4
- // Create a style module from the given spec.
5
- //
6
- // When `finish` is given, it is called on regular (non-`@`)
7
- // selectors (after `&` expansion) to compute the final selector.
8
- constructor(e, s) {
9
- this.rules = [];
10
- let { finish: i } = s || {};
11
- function n(t) {
12
- return /^@/.test(t) ? [t] : t.split(/,\s*/);
13
- }
14
- function l(t, a, h, r) {
15
- let p = [], f = /^@(\w+)\b/.exec(t[0]), g = f && f[1] == "keyframes";
16
- if (f && a == null) return h.push(t[0] + ";");
17
- for (let o in a) {
18
- let u = a[o];
19
- if (/&/.test(o))
20
- l(
21
- o.split(/,\s*/).map((d) => t.map((y) => d.replace(/&/, y))).reduce((d, y) => d.concat(y)),
22
- u,
23
- h
24
- );
25
- else if (u && typeof u == "object") {
26
- if (!f) throw new RangeError("The value of a property (" + o + ") should be a primitive value.");
27
- l(n(o), u, p, g);
28
- } else u != null && p.push(o.replace(/_.*/, "").replace(/[A-Z]/g, (d) => "-" + d.toLowerCase()) + ": " + u + ";");
29
- }
30
- (p.length || g) && h.push((i && !f && !r ? t.map(i) : t).join(", ") + " {" + p.join(" ") + "}");
31
- }
32
- for (let t in e) l(n(t), e[t], this.rules);
33
- }
34
- // :: () string
35
- // Returns a string containing the module's CSS rules.
36
- getRules() {
37
- return this.rules.join(`
38
- `);
39
- }
40
- // :: () → string
41
- // Generate a new unique CSS class name.
42
- static newName() {
43
- let e = w[m] || 1;
44
- return w[m] = e + 1, S + e.toString(36);
45
- }
46
- // :: (union<Document, ShadowRoot>, union<[StyleModule], StyleModule>, ?{nonce: ?string})
47
- //
48
- // Mount the given set of modules in the given DOM root, which ensures
49
- // that the CSS rules defined by the module are available in that
50
- // context.
51
- //
52
- // Rules are only added to the document once per root.
53
- //
54
- // Rule order will follow the order of the modules, so that rules from
55
- // modules later in the array take precedence of those from earlier
56
- // modules. If you call this function multiple times for the same root
57
- // in a way that changes the order of already mounted modules, the old
58
- // order will be changed.
59
- //
60
- // If a Content Security Policy nonce is provided, it is added to
61
- // the `<style>` tag generated by the library.
62
- static mount(e, s, i) {
63
- let n = e[c], l = i && i.nonce;
64
- n ? l && n.setNonce(l) : n = new x(e, l), n.mount(Array.isArray(s) ? s : [s], e);
65
- }
66
- }
67
- let T = /* @__PURE__ */ new Map();
68
- class x {
69
- constructor(e, s) {
70
- let i = e.ownerDocument || e, n = i.defaultView;
71
- if (!e.head && e.adoptedStyleSheets && n.CSSStyleSheet) {
72
- let l = T.get(i);
73
- if (l) return e[c] = l;
74
- this.sheet = new n.CSSStyleSheet(), T.set(i, this);
75
- } else
76
- this.styleTag = i.createElement("style"), s && this.styleTag.setAttribute("nonce", s);
77
- this.modules = [], e[c] = this;
78
- }
79
- mount(e, s) {
80
- let i = this.sheet, n = 0, l = 0;
81
- for (let t = 0; t < e.length; t++) {
82
- let a = e[t], h = this.modules.indexOf(a);
83
- if (h < l && h > -1 && (this.modules.splice(h, 1), l--, h = -1), h == -1) {
84
- if (this.modules.splice(l++, 0, a), i) for (let r = 0; r < a.rules.length; r++)
85
- i.insertRule(a.rules[r], n++);
86
- } else {
87
- for (; l < h; ) n += this.modules[l++].rules.length;
88
- n += a.rules.length, l++;
89
- }
90
- }
91
- if (i)
92
- s.adoptedStyleSheets.indexOf(this.sheet) < 0 && (s.adoptedStyleSheets = [this.sheet, ...s.adoptedStyleSheets]);
93
- else {
94
- let t = "";
95
- for (let h = 0; h < this.modules.length; h++)
96
- t += this.modules[h].getRules() + `
97
- `;
98
- this.styleTag.textContent = t;
99
- let a = s.head || s;
100
- this.styleTag.parentNode != a && a.insertBefore(this.styleTag, a.firstChild);
101
- }
102
- }
103
- setNonce(e) {
104
- this.styleTag && this.styleTag.getAttribute("nonce") != e && this.styleTag.setAttribute("nonce", e);
105
- }
106
- }
1
+ import { forwardRef as i, createElement as o } from "react";
2
+ import b from "./index109.js";
3
+ import { mergeClasses as d } from "./index107.js";
4
+ /**
5
+ * @license lucide-react v0.460.0 - ISC
6
+ *
7
+ * This source code is licensed under the ISC license.
8
+ * See the LICENSE file in the root directory of this source tree.
9
+ */
10
+ const N = i(
11
+ ({
12
+ color: m = "currentColor",
13
+ size: r = 24,
14
+ strokeWidth: e = 2,
15
+ absoluteStrokeWidth: a,
16
+ className: s = "",
17
+ children: t,
18
+ iconNode: u,
19
+ ...f
20
+ }, l) => o(
21
+ "svg",
22
+ {
23
+ ref: l,
24
+ ...b,
25
+ width: r,
26
+ height: r,
27
+ stroke: m,
28
+ strokeWidth: a ? Number(e) * 24 / Number(r) : e,
29
+ className: d("lucide", s),
30
+ ...f
31
+ },
32
+ [
33
+ ...u.map(([p, c]) => o(p, c)),
34
+ ...Array.isArray(t) ? t : [t]
35
+ ]
36
+ )
37
+ );
107
38
  export {
108
- A as StyleModule
39
+ N as default
109
40
  };
package/dist/index109.js CHANGED
@@ -1,93 +1,20 @@
1
+ /**
2
+ * @license lucide-react v0.460.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */
1
7
  var t = {
2
- 8: "Backspace",
3
- 9: "Tab",
4
- 10: "Enter",
5
- 12: "NumLock",
6
- 13: "Enter",
7
- 16: "Shift",
8
- 17: "Control",
9
- 18: "Alt",
10
- 20: "CapsLock",
11
- 27: "Escape",
12
- 32: " ",
13
- 33: "PageUp",
14
- 34: "PageDown",
15
- 35: "End",
16
- 36: "Home",
17
- 37: "ArrowLeft",
18
- 38: "ArrowUp",
19
- 39: "ArrowRight",
20
- 40: "ArrowDown",
21
- 44: "PrintScreen",
22
- 45: "Insert",
23
- 46: "Delete",
24
- 59: ";",
25
- 61: "=",
26
- 91: "Meta",
27
- 92: "Meta",
28
- 106: "*",
29
- 107: "+",
30
- 108: ",",
31
- 109: "-",
32
- 110: ".",
33
- 111: "/",
34
- 144: "NumLock",
35
- 145: "ScrollLock",
36
- 160: "Shift",
37
- 161: "Shift",
38
- 162: "Control",
39
- 163: "Control",
40
- 164: "Alt",
41
- 165: "Alt",
42
- 173: "-",
43
- 186: ";",
44
- 187: "=",
45
- 188: ",",
46
- 189: "-",
47
- 190: ".",
48
- 191: "/",
49
- 192: "`",
50
- 219: "[",
51
- 220: "\\",
52
- 221: "]",
53
- 222: "'"
54
- }, a = {
55
- 48: ")",
56
- 49: "!",
57
- 50: "@",
58
- 51: "#",
59
- 52: "$",
60
- 53: "%",
61
- 54: "^",
62
- 55: "&",
63
- 56: "*",
64
- 57: "(",
65
- 59: ":",
66
- 61: "+",
67
- 173: "_",
68
- 186: ":",
69
- 187: "+",
70
- 188: "<",
71
- 189: "_",
72
- 190: ">",
73
- 191: "?",
74
- 192: "~",
75
- 219: "{",
76
- 220: "|",
77
- 221: "}",
78
- 222: '"'
79
- }, n = typeof navigator < "u" && /Mac/.test(navigator.platform), y = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
80
- for (var r = 0; r < 10; r++) t[48 + r] = t[96 + r] = String(r);
81
- for (var r = 1; r <= 24; r++) t[r + 111] = "F" + r;
82
- for (var r = 65; r <= 90; r++)
83
- t[r] = String.fromCharCode(r + 32), a[r] = String.fromCharCode(r);
84
- for (var i in t) a.hasOwnProperty(i) || (a[i] = t[i]);
85
- function g(o) {
86
- var f = n && o.metaKey && o.shiftKey && !o.ctrlKey && !o.altKey || y && o.shiftKey && o.key && o.key.length == 1 || o.key == "Unidentified", e = !f && o.key || (o.shiftKey ? a : t)[o.keyCode] || o.key || "Unidentified";
87
- return e == "Esc" && (e = "Escape"), e == "Del" && (e = "Delete"), e == "Left" && (e = "ArrowLeft"), e == "Up" && (e = "ArrowUp"), e == "Right" && (e = "ArrowRight"), e == "Down" && (e = "ArrowDown"), e;
88
- }
8
+ xmlns: "http://www.w3.org/2000/svg",
9
+ width: 24,
10
+ height: 24,
11
+ viewBox: "0 0 24 24",
12
+ fill: "none",
13
+ stroke: "currentColor",
14
+ strokeWidth: 2,
15
+ strokeLinecap: "round",
16
+ strokeLinejoin: "round"
17
+ };
89
18
  export {
90
- t as base,
91
- g as keyName,
92
- a as shift
19
+ t as default
93
20
  };
package/dist/index11.js CHANGED
@@ -1,27 +1,27 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import * as s from "react";
3
- import { Checkbox as t, CheckboxIndicator as a } from "./index47.js";
2
+ import * as c from "react";
3
+ import { Checkbox as o, CheckboxIndicator as s } from "./index50.js";
4
4
  import { cn as r } from "./index2.js";
5
- import l from "./index48.js";
6
- const f = s.forwardRef(({ className: c, ...o }, i) => /* @__PURE__ */ e(
7
- t,
5
+ import m from "./index51.js";
6
+ const n = c.forwardRef(({ className: i, ...t }, a) => /* @__PURE__ */ e(
7
+ o,
8
8
  {
9
- ref: i,
9
+ ref: a,
10
10
  className: r(
11
- "peer h-6 w-6 shrink-0 border-2 border-[#00ff00] bg-black focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-[#00ff00] data-[state=checked]:text-black flex items-center justify-center",
12
- c
11
+ "peer h-6 w-6 shrink-0 border-2 border-primary bg-background focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground flex items-center justify-center",
12
+ i
13
13
  ),
14
- ...o,
14
+ ...t,
15
15
  children: /* @__PURE__ */ e(
16
- a,
16
+ s,
17
17
  {
18
18
  className: r("flex items-center justify-center text-current"),
19
- children: /* @__PURE__ */ e(l, { className: "h-5 w-5" })
19
+ children: /* @__PURE__ */ e(m, { className: "h-5 w-5" })
20
20
  }
21
21
  )
22
22
  }
23
23
  ));
24
- f.displayName = t.displayName;
24
+ n.displayName = o.displayName;
25
25
  export {
26
- f as Checkbox
26
+ n as Checkbox
27
27
  };
package/dist/index110.js CHANGED
@@ -1,69 +1,14 @@
1
- let a = [], d = [];
2
- (() => {
3
- let t = "lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e) => e ? parseInt(e, 36) : 1);
4
- for (let e = 0, n = 0; e < t.length; e++)
5
- (e % 2 ? d : a).push(n = n + t[e]);
6
- })();
7
- function h(t) {
8
- if (t < 768) return !1;
9
- for (let e = 0, n = a.length; ; ) {
10
- let r = e + n >> 1;
11
- if (t < a[r]) n = r;
12
- else if (t >= d[r]) e = r + 1;
13
- else return !0;
14
- if (e == n) return !1;
15
- }
16
- }
17
- function c(t) {
18
- return t >= 127462 && t <= 127487;
19
- }
20
- const g = 8205;
21
- function w(t, e, n = !0, r = !0) {
22
- return (n ? b : k)(t, e, r);
23
- }
24
- function b(t, e, n) {
25
- if (e == t.length) return e;
26
- e && o(t.charCodeAt(e)) && m(t.charCodeAt(e - 1)) && e--;
27
- let r = f(t, e);
28
- for (e += x(r); e < t.length; ) {
29
- let i = f(t, e);
30
- if (r == g || i == g || n && h(i))
31
- e += x(i), r = i;
32
- else if (c(i)) {
33
- let l = 0, u = e - 2;
34
- for (; u >= 0 && c(f(t, u)); )
35
- l++, u -= 2;
36
- if (l % 2 == 0) break;
37
- e += 2;
38
- } else
39
- break;
40
- }
41
- return e;
42
- }
43
- function k(t, e, n) {
44
- for (; e > 0; ) {
45
- let r = b(t, e - 2, n);
46
- if (r < e) return r;
47
- e--;
48
- }
49
- return 0;
50
- }
51
- function f(t, e) {
52
- let n = t.charCodeAt(e);
53
- if (!m(n) || e + 1 == t.length) return n;
54
- let r = t.charCodeAt(e + 1);
55
- return o(r) ? (n - 55296 << 10) + (r - 56320) + 65536 : n;
56
- }
57
- function o(t) {
58
- return t >= 56320 && t < 57344;
59
- }
60
- function m(t) {
61
- return t >= 55296 && t < 56320;
62
- }
63
- function x(t) {
64
- return t < 65536 ? 1 : 2;
1
+ import * as r from "react";
2
+ import { useCallbackRef as s } from "./index89.js";
3
+ function p(n, e = globalThis == null ? void 0 : globalThis.document) {
4
+ const t = s(n);
5
+ r.useEffect(() => {
6
+ const o = (a) => {
7
+ a.key === "Escape" && t(a);
8
+ };
9
+ return e.addEventListener("keydown", o, { capture: !0 }), () => e.removeEventListener("keydown", o, { capture: !0 });
10
+ }, [t, e]);
65
11
  }
66
12
  export {
67
- w as findClusterBreak,
68
- h as isExtendingChar
13
+ p as useEscapeKeydown
69
14
  };