@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/index108.js
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
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
|
+
}
|
|
107
|
+
export {
|
|
108
|
+
A as StyleModule
|
|
109
|
+
};
|
package/dist/index109.js
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
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
|
+
}
|
|
89
|
+
export {
|
|
90
|
+
t as base,
|
|
91
|
+
g as keyName,
|
|
92
|
+
a as shift
|
|
93
|
+
};
|
package/dist/index11.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
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";
|
|
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,
|
|
8
|
+
{
|
|
9
|
+
ref: i,
|
|
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
|
|
13
|
+
),
|
|
14
|
+
...o,
|
|
15
|
+
children: /* @__PURE__ */ e(
|
|
16
|
+
a,
|
|
17
|
+
{
|
|
18
|
+
className: r("flex items-center justify-center text-current"),
|
|
19
|
+
children: /* @__PURE__ */ e(l, { className: "h-5 w-5" })
|
|
20
|
+
}
|
|
21
|
+
)
|
|
22
|
+
}
|
|
23
|
+
));
|
|
24
|
+
f.displayName = t.displayName;
|
|
25
|
+
export {
|
|
26
|
+
f as Checkbox
|
|
27
|
+
};
|
package/dist/index110.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
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;
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
w as findClusterBreak,
|
|
68
|
+
h as isExtendingChar
|
|
69
|
+
};
|