@drjoshcsimmons/scl 0.2.8 → 0.3.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 (233) hide show
  1. package/dist/components/ui/accordion/accordion.d.ts.map +1 -1
  2. package/dist/components/ui/alert/alert.d.ts +5 -4
  3. package/dist/components/ui/alert/alert.d.ts.map +1 -1
  4. package/dist/components/ui/alert/index.d.ts +1 -1
  5. package/dist/components/ui/alert/index.d.ts.map +1 -1
  6. package/dist/components/ui/avatar/avatar.d.ts.map +1 -1
  7. package/dist/components/ui/badge/badge.d.ts +4 -6
  8. package/dist/components/ui/badge/badge.d.ts.map +1 -1
  9. package/dist/components/ui/badge/index.d.ts +1 -1
  10. package/dist/components/ui/badge/index.d.ts.map +1 -1
  11. package/dist/components/ui/button/button.d.ts +6 -7
  12. package/dist/components/ui/button/button.d.ts.map +1 -1
  13. package/dist/components/ui/button/index.d.ts +1 -1
  14. package/dist/components/ui/button/index.d.ts.map +1 -1
  15. package/dist/components/ui/card/card.d.ts.map +1 -1
  16. package/dist/components/ui/checkbox/checkbox.d.ts.map +1 -1
  17. package/dist/components/ui/collapsible/collapsible.d.ts.map +1 -1
  18. package/dist/components/ui/dialog/dialog.d.ts.map +1 -1
  19. package/dist/components/ui/input/input.d.ts.map +1 -1
  20. package/dist/components/ui/label/label.d.ts +1 -2
  21. package/dist/components/ui/label/label.d.ts.map +1 -1
  22. package/dist/components/ui/popover/popover.d.ts.map +1 -1
  23. package/dist/components/ui/progress/progress.d.ts +0 -3
  24. package/dist/components/ui/progress/progress.d.ts.map +1 -1
  25. package/dist/components/ui/radio-group/radio-group.d.ts.map +1 -1
  26. package/dist/components/ui/scroll-area/scroll-area.d.ts.map +1 -1
  27. package/dist/components/ui/select/select.d.ts.map +1 -1
  28. package/dist/components/ui/separator/separator.d.ts.map +1 -1
  29. package/dist/components/ui/skeleton/skeleton.d.ts +1 -0
  30. package/dist/components/ui/skeleton/skeleton.d.ts.map +1 -1
  31. package/dist/components/ui/slider/slider.d.ts.map +1 -1
  32. package/dist/components/ui/switch/switch.d.ts.map +1 -1
  33. package/dist/components/ui/table/table.d.ts.map +1 -1
  34. package/dist/components/ui/tabs/tabs.d.ts.map +1 -1
  35. package/dist/components/ui/textarea/textarea.d.ts.map +1 -1
  36. package/dist/components/ui/toggle/index.d.ts +1 -1
  37. package/dist/components/ui/toggle/index.d.ts.map +1 -1
  38. package/dist/components/ui/toggle/toggle.d.ts +6 -10
  39. package/dist/components/ui/toggle/toggle.d.ts.map +1 -1
  40. package/dist/components/ui/tooltip/tooltip.d.ts.map +1 -1
  41. package/dist/globals.css +222 -287
  42. package/dist/index.d.ts +1 -10
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.js +115 -184
  45. package/dist/index10.js +29 -57
  46. package/dist/index100.js +6 -30
  47. package/dist/index101.js +44 -11
  48. package/dist/index102.js +54 -5
  49. package/dist/index103.js +30 -25
  50. package/dist/index104.js +30 -9
  51. package/dist/index105.js +3 -180
  52. package/dist/index106.js +218 -3
  53. package/dist/index107.js +47 -29
  54. package/dist/index108.js +30 -9
  55. package/dist/index109.js +47 -29
  56. package/dist/index11.js +6 -19
  57. package/dist/index110.js +8 -54
  58. package/dist/index111.js +6 -30
  59. package/dist/index112.js +1 -1
  60. package/dist/index113.js +11 -47
  61. package/dist/index114.js +1 -1
  62. package/dist/index115.js +204 -10
  63. package/dist/index116.js +20 -204
  64. package/dist/index117.js +399 -21
  65. package/dist/index118.js +2 -400
  66. package/dist/index119.js +50 -45
  67. package/dist/index12.js +80 -5
  68. package/dist/index120.js +65 -6
  69. package/dist/index121.js +24 -20
  70. package/dist/index122.js +29 -9
  71. package/dist/index123.js +5 -38
  72. package/dist/index124.js +2 -18
  73. package/dist/index125.js +2 -25
  74. package/dist/index126.js +5 -29
  75. package/dist/index127.js +3 -5
  76. package/dist/index128.js +24 -2
  77. package/dist/index129.js +109 -49
  78. package/dist/index13.js +16 -136
  79. package/dist/index130.js +15 -64
  80. package/dist/index131.js +525 -2
  81. package/dist/index132.js +128 -2
  82. package/dist/index133.js +134 -5
  83. package/dist/index134.js +65 -3
  84. package/dist/index135.js +69 -24
  85. package/dist/index136.js +9 -113
  86. package/dist/index137.js +14 -16
  87. package/dist/index138.js +64 -523
  88. package/dist/index139.js +3 -127
  89. package/dist/index14.js +11 -97
  90. package/dist/index140.js +22 -133
  91. package/dist/index141.js +12 -64
  92. package/dist/index142.js +27 -68
  93. package/dist/index143.js +4 -8
  94. package/dist/index144.js +23 -14
  95. package/dist/index15.js +18 -72
  96. package/dist/index16.js +30 -252
  97. package/dist/index17.js +20 -133
  98. package/dist/index18.js +37 -89
  99. package/dist/index19.js +138 -18
  100. package/dist/index2.js +5 -5
  101. package/dist/index20.js +21 -10
  102. package/dist/index21.js +13 -22
  103. package/dist/index22.js +24 -35
  104. package/dist/index23.js +13 -19
  105. package/dist/index24.js +32 -37
  106. package/dist/index25.js +23 -102
  107. package/dist/index26.js +16 -20
  108. package/dist/index27.js +11 -72
  109. package/dist/index28.js +24 -12
  110. package/dist/index29.js +99 -28
  111. package/dist/index3.js +6 -6
  112. package/dist/index30.js +39 -111
  113. package/dist/index31.js +11 -25
  114. package/dist/index32.js +49 -65
  115. package/dist/index33.js +65 -43
  116. package/dist/index34.js +230 -79
  117. package/dist/index36.js +58 -33
  118. package/dist/index4.js +42 -26
  119. package/dist/index41.js +73 -49
  120. package/dist/index43.js +159 -13
  121. package/dist/index45.js +232 -210
  122. package/dist/index47.js +16 -223
  123. package/dist/index5.js +21 -32
  124. package/dist/index50.js +236 -11
  125. package/dist/index52.js +30 -309
  126. package/dist/index55.js +860 -18
  127. package/dist/index57.js +71 -249
  128. package/dist/index59.js +22 -12
  129. package/dist/index6.js +26 -70
  130. package/dist/index61.js +509 -109
  131. package/dist/index63.js +225 -109
  132. package/dist/index65.js +409 -210
  133. package/dist/index67.js +103 -321
  134. package/dist/index69.js +245 -18
  135. package/dist/index7.js +7 -40
  136. package/dist/index71.js +320 -66
  137. package/dist/index73.js +111 -416
  138. package/dist/index77.js +25 -44
  139. package/dist/index78.js +52 -24
  140. package/dist/index79.js +10 -6
  141. package/dist/index8.js +20 -26
  142. package/dist/index80.js +4 -52
  143. package/dist/index81.js +8 -12
  144. package/dist/index82.js +12 -10
  145. package/dist/index83.js +30 -8
  146. package/dist/index84.js +5 -123
  147. package/dist/index85.js +65 -12
  148. package/dist/index86.js +173 -127
  149. package/dist/index87.js +66 -216
  150. package/dist/index88.js +33 -13
  151. package/dist/index89.js +7 -68
  152. package/dist/index9.js +33 -36
  153. package/dist/index90.js +49 -45
  154. package/dist/index91.js +11 -50
  155. package/dist/index92.js +124 -8
  156. package/dist/index93.js +135 -4
  157. package/dist/index94.js +13 -649
  158. package/dist/index95.js +13 -13
  159. package/dist/index96.js +9 -30
  160. package/dist/index97.js +49 -47
  161. package/dist/index98.js +44 -51
  162. package/dist/index99.js +24 -10
  163. package/dist/lib/utils.d.ts +8 -8
  164. package/dist/lib/utils.d.ts.map +1 -1
  165. package/package.json +5 -46
  166. package/dist/components/ui/alert-dialog/alert-dialog.d.ts +0 -21
  167. package/dist/components/ui/alert-dialog/alert-dialog.d.ts.map +0 -1
  168. package/dist/components/ui/alert-dialog/index.d.ts +0 -2
  169. package/dist/components/ui/alert-dialog/index.d.ts.map +0 -1
  170. package/dist/components/ui/combobox/combobox.d.ts +0 -31
  171. package/dist/components/ui/combobox/combobox.d.ts.map +0 -1
  172. package/dist/components/ui/combobox/index.d.ts +0 -3
  173. package/dist/components/ui/combobox/index.d.ts.map +0 -1
  174. package/dist/components/ui/command/command.d.ts +0 -85
  175. package/dist/components/ui/command/command.d.ts.map +0 -1
  176. package/dist/components/ui/command/index.d.ts +0 -2
  177. package/dist/components/ui/command/index.d.ts.map +0 -1
  178. package/dist/components/ui/dithered-image/dithered-image.d.ts +0 -21
  179. package/dist/components/ui/dithered-image/dithered-image.d.ts.map +0 -1
  180. package/dist/components/ui/dithered-image/index.d.ts +0 -3
  181. package/dist/components/ui/dithered-image/index.d.ts.map +0 -1
  182. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +0 -28
  183. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts.map +0 -1
  184. package/dist/components/ui/dropdown-menu/index.d.ts +0 -2
  185. package/dist/components/ui/dropdown-menu/index.d.ts.map +0 -1
  186. package/dist/components/ui/form/form.d.ts +0 -24
  187. package/dist/components/ui/form/form.d.ts.map +0 -1
  188. package/dist/components/ui/form/index.d.ts +0 -2
  189. package/dist/components/ui/form/index.d.ts.map +0 -1
  190. package/dist/components/ui/sheet/index.d.ts +0 -2
  191. package/dist/components/ui/sheet/index.d.ts.map +0 -1
  192. package/dist/components/ui/sheet/sheet.d.ts +0 -26
  193. package/dist/components/ui/sheet/sheet.d.ts.map +0 -1
  194. package/dist/components/ui/statusline/index.d.ts +0 -2
  195. package/dist/components/ui/statusline/index.d.ts.map +0 -1
  196. package/dist/components/ui/statusline/statusline.d.ts +0 -40
  197. package/dist/components/ui/statusline/statusline.d.ts.map +0 -1
  198. package/dist/components/ui/terminal-textarea/index.d.ts +0 -2
  199. package/dist/components/ui/terminal-textarea/index.d.ts.map +0 -1
  200. package/dist/components/ui/terminal-textarea/terminal-textarea.d.ts +0 -16
  201. package/dist/components/ui/terminal-textarea/terminal-textarea.d.ts.map +0 -1
  202. package/dist/index145.js +0 -68
  203. package/dist/index146.js +0 -6
  204. package/dist/index147.js +0 -25
  205. package/dist/index148.js +0 -25
  206. package/dist/index149.js +0 -15
  207. package/dist/index150.js +0 -30
  208. package/dist/index151.js +0 -7
  209. package/dist/index35.js +0 -20
  210. package/dist/index37.js +0 -28
  211. package/dist/index38.js +0 -102
  212. package/dist/index39.js +0 -41
  213. package/dist/index40.js +0 -13
  214. package/dist/index42.js +0 -68
  215. package/dist/index44.js +0 -2265
  216. package/dist/index46.js +0 -13
  217. package/dist/index48.js +0 -11
  218. package/dist/index49.js +0 -13
  219. package/dist/index51.js +0 -243
  220. package/dist/index53.js +0 -14
  221. package/dist/index54.js +0 -120
  222. package/dist/index56.js +0 -35
  223. package/dist/index58.js +0 -14
  224. package/dist/index60.js +0 -75
  225. package/dist/index62.js +0 -62
  226. package/dist/index64.js +0 -256
  227. package/dist/index66.js +0 -532
  228. package/dist/index68.js +0 -251
  229. package/dist/index70.js +0 -163
  230. package/dist/index72.js +0 -33
  231. package/dist/index74.js +0 -862
  232. package/dist/index75.js +0 -11
  233. package/dist/index76.js +0 -70
package/dist/index121.js CHANGED
@@ -1,23 +1,27 @@
1
- import { forwardRef as s, createElement as c } from "react";
2
- import { mergeClasses as n, toKebabCase as f } from "./index122.js";
3
- import l from "./index123.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 u = (e, r) => {
11
- const o = s(
12
- ({ className: t, ...a }, m) => c(l, {
13
- ref: m,
14
- iconNode: r,
15
- className: n(`lucide-${f(e)}`, t),
16
- ...a
17
- })
18
- );
19
- return o.displayName = `${e}`, o;
1
+ var p = function() {
2
+ return p = Object.assign || function(e) {
3
+ for (var n, r = 1, o = arguments.length; r < o; r++) {
4
+ n = arguments[r];
5
+ for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
6
+ }
7
+ return e;
8
+ }, p.apply(this, arguments);
20
9
  };
10
+ function c(t, e) {
11
+ var n = {};
12
+ for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
13
+ if (t != null && typeof Object.getOwnPropertySymbols == "function")
14
+ for (var o = 0, r = Object.getOwnPropertySymbols(t); o < r.length; o++)
15
+ e.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[o]) && (n[r[o]] = t[r[o]]);
16
+ return n;
17
+ }
18
+ function l(t, e, n) {
19
+ if (n || arguments.length === 2) for (var r = 0, o = e.length, a; r < o; r++)
20
+ (a || !(r in e)) && (a || (a = Array.prototype.slice.call(e, 0, r)), a[r] = e[r]);
21
+ return t.concat(a || Array.prototype.slice.call(e));
22
+ }
21
23
  export {
22
- u as default
24
+ p as __assign,
25
+ c as __rest,
26
+ l as __spreadArray
23
27
  };
package/dist/index122.js CHANGED
@@ -1,11 +1,31 @@
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
- */
7
- const n = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), i = (...e) => e.filter((o, r, t) => !!o && o.trim() !== "" && t.indexOf(o) === r).join(" ").trim();
1
+ import { __rest as E, __assign as r } from "./index121.js";
2
+ import * as a from "react";
3
+ import { zeroRightClassName as I, fullWidthClassName as Z } from "./index126.js";
4
+ import { effectCar as W } from "./index127.js";
5
+ import { useMergeRefs as z } from "./index128.js";
6
+ var l = function() {
7
+ }, m = a.forwardRef(function(e, d) {
8
+ var o = a.useRef(null), n = a.useState({
9
+ onScrollCapture: l,
10
+ onWheelCapture: l,
11
+ onTouchMoveCapture: l
12
+ }), f = n[0], v = n[1], h = e.forwardProps, t = e.children, u = e.className, C = e.removeScrollBar, R = e.enabled, g = e.shards, P = e.sideCar, S = e.noRelative, b = e.noIsolation, w = e.inert, N = e.allowPinchZoom, i = e.as, M = i === void 0 ? "div" : i, _ = e.gapMode, B = E(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), k = P, s = z([o, d]), c = r(r({}, B), f);
13
+ return a.createElement(
14
+ a.Fragment,
15
+ null,
16
+ R && a.createElement(k, { sideCar: W, removeScrollBar: C, shards: g, noRelative: S, noIsolation: b, inert: w, setCallbacks: v, allowPinchZoom: !!N, lockRef: o, gapMode: _ }),
17
+ h ? a.cloneElement(a.Children.only(t), r(r({}, c), { ref: s })) : a.createElement(M, r({}, c, { className: u, ref: s }), t)
18
+ );
19
+ });
20
+ m.defaultProps = {
21
+ enabled: !0,
22
+ removeScrollBar: !0,
23
+ inert: !1
24
+ };
25
+ m.classNames = {
26
+ fullWidth: Z,
27
+ zeroRight: I
28
+ };
8
29
  export {
9
- i as mergeClasses,
10
- n as toKebabCase
30
+ m as RemoveScroll
11
31
  };
package/dist/index123.js CHANGED
@@ -1,40 +1,7 @@
1
- import { forwardRef as i, createElement as o } from "react";
2
- import b from "./index124.js";
3
- import { mergeClasses as d } from "./index122.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
- );
1
+ import { RemoveScrollSideCar as r } from "./index129.js";
2
+ import { effectCar as o } from "./index127.js";
3
+ import { exportSidecar as e } from "./index130.js";
4
+ const f = e(o, r);
38
5
  export {
39
- N as default
6
+ f as default
40
7
  };
package/dist/index124.js CHANGED
@@ -1,20 +1,4 @@
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
- */
7
- var t = {
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
- };
1
+ var r = {};
18
2
  export {
19
- t as default
3
+ r as __exports
20
4
  };
package/dist/index125.js CHANGED
@@ -1,27 +1,4 @@
1
- var p = function() {
2
- return p = Object.assign || function(e) {
3
- for (var n, r = 1, o = arguments.length; r < o; r++) {
4
- n = arguments[r];
5
- for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
6
- }
7
- return e;
8
- }, p.apply(this, arguments);
9
- };
10
- function c(t, e) {
11
- var n = {};
12
- for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
13
- if (t != null && typeof Object.getOwnPropertySymbols == "function")
14
- for (var o = 0, r = Object.getOwnPropertySymbols(t); o < r.length; o++)
15
- e.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[o]) && (n[r[o]] = t[r[o]]);
16
- return n;
17
- }
18
- function l(t, e, n) {
19
- if (n || arguments.length === 2) for (var r = 0, o = e.length, a; r < o; r++)
20
- (a || !(r in e)) && (a || (a = Array.prototype.slice.call(e, 0, r)), a[r] = e[r]);
21
- return t.concat(a || Array.prototype.slice.call(e));
22
- }
1
+ var e = {};
23
2
  export {
24
- p as __assign,
25
- c as __rest,
26
- l as __spreadArray
3
+ e as __exports
27
4
  };
package/dist/index126.js CHANGED
@@ -1,31 +1,7 @@
1
- import { __rest as E, __assign as r } from "./index125.js";
2
- import * as a from "react";
3
- import { zeroRightClassName as I, fullWidthClassName as Z } from "./index133.js";
4
- import { effectCar as W } from "./index134.js";
5
- import { useMergeRefs as z } from "./index135.js";
6
- var l = function() {
7
- }, m = a.forwardRef(function(e, d) {
8
- var o = a.useRef(null), n = a.useState({
9
- onScrollCapture: l,
10
- onWheelCapture: l,
11
- onTouchMoveCapture: l
12
- }), f = n[0], v = n[1], h = e.forwardProps, t = e.children, u = e.className, C = e.removeScrollBar, R = e.enabled, g = e.shards, P = e.sideCar, S = e.noRelative, b = e.noIsolation, w = e.inert, N = e.allowPinchZoom, i = e.as, M = i === void 0 ? "div" : i, _ = e.gapMode, B = E(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), k = P, s = z([o, d]), c = r(r({}, B), f);
13
- return a.createElement(
14
- a.Fragment,
15
- null,
16
- R && a.createElement(k, { sideCar: W, removeScrollBar: C, shards: g, noRelative: S, noIsolation: b, inert: w, setCallbacks: v, allowPinchZoom: !!N, lockRef: o, gapMode: _ }),
17
- h ? a.cloneElement(a.Children.only(t), r(r({}, c), { ref: s })) : a.createElement(M, r({}, c, { className: u, ref: s }), t)
18
- );
19
- });
20
- m.defaultProps = {
21
- enabled: !0,
22
- removeScrollBar: !0,
23
- inert: !1
24
- };
25
- m.classNames = {
26
- fullWidth: Z,
27
- zeroRight: I
28
- };
1
+ var r = "right-scroll-bar-position", a = "width-before-scroll-bar", l = "with-scroll-bars-hidden", e = "--removed-body-scroll-bar-size";
29
2
  export {
30
- m as RemoveScroll
3
+ a as fullWidthClassName,
4
+ l as noScrollbarsClassName,
5
+ e as removedBarSizeVariable,
6
+ r as zeroRightClassName
31
7
  };
package/dist/index127.js CHANGED
@@ -1,7 +1,5 @@
1
- import { RemoveScrollSideCar as r } from "./index136.js";
2
- import { effectCar as o } from "./index134.js";
3
- import { exportSidecar as e } from "./index137.js";
4
- const f = e(o, r);
1
+ import { createSidecarMedium as e } from "./index134.js";
2
+ var a = e();
5
3
  export {
6
- f as default
4
+ a as effectCar
7
5
  };
package/dist/index128.js CHANGED
@@ -1,4 +1,26 @@
1
- var e = { exports: {} };
1
+ import * as f from "react";
2
+ import { assignRef as o } from "./index139.js";
3
+ import { useCallbackRef as l } from "./index140.js";
4
+ var s = typeof window < "u" ? f.useLayoutEffect : f.useEffect, c = /* @__PURE__ */ new WeakMap();
5
+ function v(e, m) {
6
+ var t = l(null, function(n) {
7
+ return e.forEach(function(u) {
8
+ return o(u, n);
9
+ });
10
+ });
11
+ return s(function() {
12
+ var n = c.get(t);
13
+ if (n) {
14
+ var u = new Set(n), r = new Set(e), i = t.current;
15
+ u.forEach(function(a) {
16
+ r.has(a) || o(a, null);
17
+ }), r.forEach(function(a) {
18
+ u.has(a) || o(a, i);
19
+ });
20
+ }
21
+ c.set(t, e);
22
+ }, [e]), t;
23
+ }
2
24
  export {
3
- e as __module
25
+ v as useMergeRefs
4
26
  };
package/dist/index129.js CHANGED
@@ -1,55 +1,115 @@
1
- import { __exports as i } from "./index131.js";
2
- import h from "react";
3
- /**
4
- * @license React
5
- * use-sync-external-store-shim.production.js
6
- *
7
- * Copyright (c) Meta Platforms, Inc. and affiliates.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
11
- */
12
- var f;
13
- function x() {
14
- if (f) return i;
15
- f = 1;
16
- var u = h;
17
- function s(e, t) {
18
- return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
19
- }
20
- var S = typeof Object.is == "function" ? Object.is : s, d = u.useState, l = u.useEffect, p = u.useLayoutEffect, E = u.useDebugValue;
21
- function v(e, t) {
22
- var r = t(), a = d({ inst: { value: r, getSnapshot: t } }), n = a[0].inst, c = a[1];
23
- return p(
24
- function() {
25
- n.value = r, n.getSnapshot = t, o(n) && c({ inst: n });
26
- },
27
- [e, r, t]
28
- ), l(
29
- function() {
30
- return o(n) && c({ inst: n }), e(function() {
31
- o(n) && c({ inst: n });
1
+ import { __spreadArray as N } from "./index121.js";
2
+ import * as n from "react";
3
+ import { RemoveScrollBar as W } from "./index135.js";
4
+ import { styleSingleton as F } from "./index136.js";
5
+ import { nonPassive as s } from "./index137.js";
6
+ import { locationCouldBeScrolled as B, handleScroll as K } from "./index138.js";
7
+ var k = function(e) {
8
+ return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
9
+ }, M = function(e) {
10
+ return [e.deltaX, e.deltaY];
11
+ }, X = function(e) {
12
+ return e && "current" in e ? e.current : e;
13
+ }, O = function(e, c) {
14
+ return e[0] === c[0] && e[1] === c[1];
15
+ }, Q = function(e) {
16
+ return `
17
+ .block-interactivity-`.concat(e, ` {pointer-events: none;}
18
+ .allow-interactivity-`).concat(e, ` {pointer-events: all;}
19
+ `);
20
+ }, Z = 0, f = [];
21
+ function J(e) {
22
+ var c = n.useRef([]), R = n.useRef([0, 0]), m = n.useRef(), h = n.useState(Z++)[0], g = n.useState(F)[0], S = n.useRef(e);
23
+ n.useEffect(function() {
24
+ S.current = e;
25
+ }, [e]), n.useEffect(function() {
26
+ if (e.inert) {
27
+ document.body.classList.add("block-interactivity-".concat(h));
28
+ var t = N([e.lockRef.current], (e.shards || []).map(X), !0).filter(Boolean);
29
+ return t.forEach(function(r) {
30
+ return r.classList.add("allow-interactivity-".concat(h));
31
+ }), function() {
32
+ document.body.classList.remove("block-interactivity-".concat(h)), t.forEach(function(r) {
33
+ return r.classList.remove("allow-interactivity-".concat(h));
32
34
  });
33
- },
34
- [e]
35
- ), E(r), r;
36
- }
37
- function o(e) {
38
- var t = e.getSnapshot;
39
- e = e.value;
40
- try {
41
- var r = t();
42
- return !S(e, r);
43
- } catch {
35
+ };
36
+ }
37
+ }, [e.inert, e.lockRef.current, e.shards]);
38
+ var C = n.useCallback(function(t, r) {
39
+ if ("touches" in t && t.touches.length === 2 || t.type === "wheel" && t.ctrlKey)
40
+ return !S.current.allowPinchZoom;
41
+ var l = k(t), u = R.current, o = "deltaX" in t ? t.deltaX : u[0] - l[0], i = "deltaY" in t ? t.deltaY : u[1] - l[1], a, v = t.target, d = Math.abs(o) > Math.abs(i) ? "h" : "v";
42
+ if ("touches" in t && d === "h" && v.type === "range")
43
+ return !1;
44
+ var P = window.getSelection(), E = P && P.anchorNode, I = E ? E === v || E.contains(v) : !1;
45
+ if (I)
46
+ return !1;
47
+ var b = B(d, v);
48
+ if (!b)
49
+ return !0;
50
+ if (b ? a = d : (a = d === "v" ? "h" : "v", b = B(d, v)), !b)
51
+ return !1;
52
+ if (!m.current && "changedTouches" in t && (o || i) && (m.current = a), !a)
44
53
  return !0;
54
+ var Y = m.current || a;
55
+ return K(Y, r, t, Y === "h" ? o : i);
56
+ }, []), y = n.useCallback(function(t) {
57
+ var r = t;
58
+ if (!(!f.length || f[f.length - 1] !== g)) {
59
+ var l = "deltaY" in r ? M(r) : k(r), u = c.current.filter(function(a) {
60
+ return a.name === r.type && (a.target === r.target || r.target === a.shadowParent) && O(a.delta, l);
61
+ })[0];
62
+ if (u && u.should) {
63
+ r.cancelable && r.preventDefault();
64
+ return;
65
+ }
66
+ if (!u) {
67
+ var o = (S.current.shards || []).map(X).filter(Boolean).filter(function(a) {
68
+ return a.contains(r.target);
69
+ }), i = o.length > 0 ? C(r, o[0]) : !S.current.noIsolation;
70
+ i && r.cancelable && r.preventDefault();
71
+ }
45
72
  }
46
- }
47
- function y(e, t) {
48
- return t();
49
- }
50
- var m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? y : v;
51
- return i.useSyncExternalStore = u.useSyncExternalStore !== void 0 ? u.useSyncExternalStore : m, i;
73
+ }, []), w = n.useCallback(function(t, r, l, u) {
74
+ var o = { name: t, delta: r, target: l, should: u, shadowParent: _(l) };
75
+ c.current.push(o), setTimeout(function() {
76
+ c.current = c.current.filter(function(i) {
77
+ return i !== o;
78
+ });
79
+ }, 1);
80
+ }, []), L = n.useCallback(function(t) {
81
+ R.current = k(t), m.current = void 0;
82
+ }, []), T = n.useCallback(function(t) {
83
+ w(t.type, M(t), t.target, C(t, e.lockRef.current));
84
+ }, []), D = n.useCallback(function(t) {
85
+ w(t.type, k(t), t.target, C(t, e.lockRef.current));
86
+ }, []);
87
+ n.useEffect(function() {
88
+ return f.push(g), e.setCallbacks({
89
+ onScrollCapture: T,
90
+ onWheelCapture: T,
91
+ onTouchMoveCapture: D
92
+ }), document.addEventListener("wheel", y, s), document.addEventListener("touchmove", y, s), document.addEventListener("touchstart", L, s), function() {
93
+ f = f.filter(function(t) {
94
+ return t !== g;
95
+ }), document.removeEventListener("wheel", y, s), document.removeEventListener("touchmove", y, s), document.removeEventListener("touchstart", L, s);
96
+ };
97
+ }, []);
98
+ var x = e.removeScrollBar, A = e.inert;
99
+ return n.createElement(
100
+ n.Fragment,
101
+ null,
102
+ A ? n.createElement(g, { styles: Q(h) }) : null,
103
+ x ? n.createElement(W, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
104
+ );
105
+ }
106
+ function _(e) {
107
+ for (var c = null; e !== null; )
108
+ e instanceof ShadowRoot && (c = e.host, e = e.host), e = e.parentNode;
109
+ return c;
52
110
  }
53
111
  export {
54
- x as __require
112
+ J as RemoveScrollSideCar,
113
+ M as getDeltaXY,
114
+ k as getTouchXY
55
115
  };
package/dist/index13.js CHANGED
@@ -1,139 +1,19 @@
1
- import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
- import * as h from "react";
3
- import { cn as f } from "./index2.js";
4
- import { Popover as v, PopoverTrigger as C, PopoverContent as S } from "./index21.js";
5
- import { Button as O } from "./index9.js";
6
- import j from "./index59.js";
7
- import { Command as k, CommandInput as P, CommandList as R, CommandEmpty as B, CommandGroup as I, CommandItem as L } from "./index14.js";
8
- import M from "./index48.js";
9
- const D = h.forwardRef(
10
- ({
11
- options: s,
12
- value: l,
13
- onValueChange: c,
14
- placeholder: b = "Select option...",
15
- searchPlaceholder: w = "Search...",
16
- emptyText: x = "No option found.",
17
- className: N,
18
- disabled: u = !1
19
- }, i) => {
20
- const [n, t] = h.useState(!1), m = s.find((o) => o.value === l);
21
- return /* @__PURE__ */ a(v, { open: n, onOpenChange: t, children: [
22
- /* @__PURE__ */ e(C, { asChild: !0, children: /* @__PURE__ */ a(
23
- O,
24
- {
25
- ref: i,
26
- variant: "outline",
27
- role: "combobox",
28
- "aria-expanded": n,
29
- className: f("w-[200px] justify-between", N),
30
- disabled: u,
31
- children: [
32
- /* @__PURE__ */ e("span", { className: "truncate", children: m ? m.label : b }),
33
- /* @__PURE__ */ e(j, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
34
- ]
35
- }
36
- ) }),
37
- /* @__PURE__ */ e(S, { className: "w-[200px] p-0", children: /* @__PURE__ */ a(k, { children: [
38
- /* @__PURE__ */ e(P, { placeholder: w }),
39
- /* @__PURE__ */ a(R, { children: [
40
- /* @__PURE__ */ e(B, { children: x }),
41
- /* @__PURE__ */ e(I, { children: s.map((o) => /* @__PURE__ */ a(
42
- L,
43
- {
44
- value: o.value,
45
- onSelect: (d) => {
46
- c == null || c(d === l ? "" : d), t(!1);
47
- },
48
- disabled: o.disabled,
49
- children: [
50
- /* @__PURE__ */ e(
51
- M,
52
- {
53
- className: f(
54
- "mr-2 h-4 w-4",
55
- l === o.value ? "opacity-100" : "opacity-0"
56
- )
57
- }
58
- ),
59
- o.label
60
- ]
61
- },
62
- o.value
63
- )) })
64
- ] })
65
- ] }) })
66
- ] });
67
- }
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import * as a from "react";
3
+ import { cx as i } from "./index2.js";
4
+ /* empty css */
5
+ const s = a.forwardRef(
6
+ ({ className: r, type: t, ...o }, p) => /* @__PURE__ */ m(
7
+ "input",
8
+ {
9
+ type: t,
10
+ className: i("scl-input", r),
11
+ ref: p,
12
+ ...o
13
+ }
14
+ )
68
15
  );
69
- D.displayName = "Combobox";
70
- const E = h.forwardRef(
71
- ({
72
- options: s,
73
- value: l = [],
74
- onValueChange: c,
75
- placeholder: b = "Select options...",
76
- searchPlaceholder: w = "Search...",
77
- emptyText: x = "No option found.",
78
- className: N,
79
- disabled: u = !1,
80
- maxSelected: i
81
- }, n) => {
82
- const [t, m] = h.useState(!1), o = l.map((r) => {
83
- var p;
84
- return (p = s.find((y) => y.value === r)) == null ? void 0 : p.label;
85
- }).filter(Boolean).join(", "), d = (r) => {
86
- const p = l.includes(r) ? l.filter((y) => y !== r) : i && l.length >= i ? l : [...l, r];
87
- c == null || c(p);
88
- };
89
- return /* @__PURE__ */ a(v, { open: t, onOpenChange: m, children: [
90
- /* @__PURE__ */ e(C, { asChild: !0, children: /* @__PURE__ */ a(
91
- O,
92
- {
93
- ref: n,
94
- variant: "outline",
95
- role: "combobox",
96
- "aria-expanded": t,
97
- className: f("w-[200px] justify-between", N),
98
- disabled: u,
99
- children: [
100
- /* @__PURE__ */ e("span", { className: "truncate", children: o || b }),
101
- /* @__PURE__ */ e(j, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
102
- ]
103
- }
104
- ) }),
105
- /* @__PURE__ */ e(S, { className: "w-[200px] p-0", children: /* @__PURE__ */ a(k, { children: [
106
- /* @__PURE__ */ e(P, { placeholder: w }),
107
- /* @__PURE__ */ a(R, { children: [
108
- /* @__PURE__ */ e(B, { children: x }),
109
- /* @__PURE__ */ e(I, { children: s.map((r) => /* @__PURE__ */ a(
110
- L,
111
- {
112
- value: r.value,
113
- onSelect: () => d(r.value),
114
- disabled: r.disabled,
115
- children: [
116
- /* @__PURE__ */ e(
117
- M,
118
- {
119
- className: f(
120
- "mr-2 h-4 w-4",
121
- l.includes(r.value) ? "opacity-100" : "opacity-0"
122
- )
123
- }
124
- ),
125
- r.label
126
- ]
127
- },
128
- r.value
129
- )) })
130
- ] })
131
- ] }) })
132
- ] });
133
- }
134
- );
135
- E.displayName = "ComboboxMulti";
16
+ s.displayName = "Input";
136
17
  export {
137
- D as Combobox,
138
- E as ComboboxMulti
18
+ s as Input
139
19
  };