@pathscale/ui 0.0.13 → 0.0.15

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 (174) hide show
  1. package/README.md +44 -39
  2. package/dist/index.js +7170 -29
  3. package/package.json +42 -48
  4. package/dist/Autocomplete-gLkjMHrc.d.ts +0 -28
  5. package/dist/Avatar-Dkd_kPlV.d.ts +0 -40
  6. package/dist/CollapseTitle-BNxog3is.d.ts +0 -12
  7. package/dist/Field-DI2PA30N.d.ts +0 -49
  8. package/dist/Mask-CPb596Mg.d.ts +0 -16
  9. package/dist/Menu-DgO4SHmA.d.ts +0 -45
  10. package/dist/Progress-ChF4ior8.d.ts +0 -64
  11. package/dist/Steps-Dk-UPL6r.d.ts +0 -38
  12. package/dist/Table-CGa6Nop3.d.ts +0 -39
  13. package/dist/Tabs-WiUU0xsM.d.ts +0 -42
  14. package/dist/Timeline-Bd4SxHMT.d.ts +0 -14
  15. package/dist/chunk/2OJYONJ3.js +0 -40
  16. package/dist/chunk/2VQ2762Z.js +0 -80
  17. package/dist/chunk/2XPPNBYK.js +0 -164
  18. package/dist/chunk/3FBDYV4P.js +0 -143
  19. package/dist/chunk/3I23P4TJ.js +0 -33
  20. package/dist/chunk/55B7Q4NT.jsx +0 -258
  21. package/dist/chunk/5HG7XWVC.jsx +0 -2956
  22. package/dist/chunk/5IJ7WEIF.js +0 -43
  23. package/dist/chunk/5O6WC3OB.jsx +0 -67
  24. package/dist/chunk/64ESNXN4.js +0 -1
  25. package/dist/chunk/6P5JIKPF.jsx +0 -51
  26. package/dist/chunk/BHLLVOVR.js +0 -46
  27. package/dist/chunk/C4YO33NN.jsx +0 -179
  28. package/dist/chunk/DJI5XKAV.js +0 -31
  29. package/dist/chunk/DN3P54J2.jsx +0 -43
  30. package/dist/chunk/DSTUGZW6.jsx +0 -81
  31. package/dist/chunk/DVFQAAZR.js +0 -43
  32. package/dist/chunk/EDDBK4J6.js +0 -42
  33. package/dist/chunk/FKSQPGOD.jsx +0 -170
  34. package/dist/chunk/FZRQDGPD.jsx +0 -54
  35. package/dist/chunk/G5UEZ2VC.js +0 -49
  36. package/dist/chunk/GL7JG772.js +0 -114
  37. package/dist/chunk/GMIXRYN3.js +0 -138
  38. package/dist/chunk/H2Q3L5KM.js +0 -48
  39. package/dist/chunk/HEOKGP5U.js +0 -55
  40. package/dist/chunk/HKS7ET6T.js +0 -56
  41. package/dist/chunk/HUHXQCKK.js +0 -16
  42. package/dist/chunk/HWAGW5N4.jsx +0 -118
  43. package/dist/chunk/I36LHZUY.jsx +0 -31
  44. package/dist/chunk/IG323YKF.jsx +0 -50
  45. package/dist/chunk/JQ4HSRDP.js +0 -142
  46. package/dist/chunk/JSQBKK7L.jsx +0 -50
  47. package/dist/chunk/JWRGKHDO.js +0 -172
  48. package/dist/chunk/K3WO7SRD.js +0 -1
  49. package/dist/chunk/KQ3RAWCE.jsx +0 -57
  50. package/dist/chunk/KV6LTJHI.jsx +0 -175
  51. package/dist/chunk/KXJZKDJX.jsx +0 -0
  52. package/dist/chunk/L4A67X7S.js +0 -7
  53. package/dist/chunk/LGDDR242.jsx +0 -159
  54. package/dist/chunk/MAX47D6F.js +0 -99
  55. package/dist/chunk/MM2DZQL3.js +0 -46
  56. package/dist/chunk/MYERRMTM.js +0 -200
  57. package/dist/chunk/O7LDJCQS.jsx +0 -18
  58. package/dist/chunk/OJRG4ZAB.jsx +0 -143
  59. package/dist/chunk/P653OZ5D.js +0 -224
  60. package/dist/chunk/P7WPLZNA.jsx +0 -59
  61. package/dist/chunk/PFB27MP3.jsx +0 -0
  62. package/dist/chunk/Q4442PU4.js +0 -42
  63. package/dist/chunk/QYEMOKUG.js +0 -125
  64. package/dist/chunk/R5G3PODL.jsx +0 -11
  65. package/dist/chunk/R6ZBT7CY.jsx +0 -55
  66. package/dist/chunk/RHEFVSMJ.jsx +0 -52
  67. package/dist/chunk/SPEY5RMB.js +0 -84
  68. package/dist/chunk/STFCLC5R.js +0 -2954
  69. package/dist/chunk/STKRVQR6.jsx +0 -130
  70. package/dist/chunk/SVJIYMYJ.jsx +0 -156
  71. package/dist/chunk/SYWB4UN3.jsx +0 -64
  72. package/dist/chunk/T2LDLYWV.jsx +0 -101
  73. package/dist/chunk/T324HUIT.jsx +0 -57
  74. package/dist/chunk/T5LDPSFV.jsx +0 -122
  75. package/dist/chunk/UNKDNDT3.js +0 -62
  76. package/dist/chunk/VN5BKHA2.jsx +0 -97
  77. package/dist/chunk/WOT36Q7O.js +0 -166
  78. package/dist/chunk/WUZETUQR.js +0 -92
  79. package/dist/chunk/XM3KF5LV.jsx +0 -179
  80. package/dist/chunk/YWIT2MRI.jsx +0 -43
  81. package/dist/chunk/ZH7DKMMN.js +0 -109
  82. package/dist/chunk/ZYEP35R3.jsx +0 -60
  83. package/dist/classes-B_S9K-9I.d.ts +0 -13
  84. package/dist/components/Progress/index.d.ts +0 -7
  85. package/dist/components/Progress/index.js +0 -1
  86. package/dist/components/Progress/index.jsx +0 -7
  87. package/dist/components/accordion/index.d.ts +0 -20
  88. package/dist/components/accordion/index.js +0 -1
  89. package/dist/components/accordion/index.jsx +0 -9
  90. package/dist/components/autocomplete/index.d.ts +0 -8
  91. package/dist/components/autocomplete/index.js +0 -1
  92. package/dist/components/autocomplete/index.jsx +0 -7
  93. package/dist/components/avatar/index.d.ts +0 -8
  94. package/dist/components/avatar/index.js +0 -1
  95. package/dist/components/avatar/index.jsx +0 -8
  96. package/dist/components/badge/index.d.ts +0 -17
  97. package/dist/components/badge/index.js +0 -1
  98. package/dist/components/badge/index.jsx +0 -8
  99. package/dist/components/breadcrumbs/index.d.ts +0 -9
  100. package/dist/components/breadcrumbs/index.js +0 -1
  101. package/dist/components/breadcrumbs/index.jsx +0 -7
  102. package/dist/components/button/index.d.ts +0 -31
  103. package/dist/components/button/index.js +0 -1
  104. package/dist/components/button/index.jsx +0 -9
  105. package/dist/components/checkbox/index.d.ts +0 -16
  106. package/dist/components/checkbox/index.js +0 -1
  107. package/dist/components/checkbox/index.jsx +0 -8
  108. package/dist/components/collapse/index.d.ts +0 -15
  109. package/dist/components/collapse/index.js +0 -1
  110. package/dist/components/collapse/index.jsx +0 -14
  111. package/dist/components/dropdown/index.d.ts +0 -27
  112. package/dist/components/dropdown/index.js +0 -1
  113. package/dist/components/dropdown/index.jsx +0 -13
  114. package/dist/components/field/index.d.ts +0 -7
  115. package/dist/components/field/index.js +0 -1
  116. package/dist/components/field/index.jsx +0 -7
  117. package/dist/components/fileinput/index.d.ts +0 -16
  118. package/dist/components/fileinput/index.js +0 -1
  119. package/dist/components/fileinput/index.jsx +0 -8
  120. package/dist/components/input/index.d.ts +0 -15
  121. package/dist/components/input/index.js +0 -1
  122. package/dist/components/input/index.jsx +0 -8
  123. package/dist/components/join/index.d.ts +0 -11
  124. package/dist/components/join/index.js +0 -1
  125. package/dist/components/join/index.jsx +0 -9
  126. package/dist/components/loading/index.d.ts +0 -11
  127. package/dist/components/loading/index.js +0 -1
  128. package/dist/components/loading/index.jsx +0 -9
  129. package/dist/components/mask/index.d.ts +0 -7
  130. package/dist/components/mask/index.js +0 -1
  131. package/dist/components/mask/index.jsx +0 -8
  132. package/dist/components/menu/index.d.ts +0 -8
  133. package/dist/components/menu/index.js +0 -1
  134. package/dist/components/menu/index.jsx +0 -8
  135. package/dist/components/navbar/index.d.ts +0 -36
  136. package/dist/components/navbar/index.js +0 -1
  137. package/dist/components/navbar/index.jsx +0 -11
  138. package/dist/components/pagination/index.d.ts +0 -8
  139. package/dist/components/pagination/index.js +0 -1
  140. package/dist/components/pagination/index.jsx +0 -9
  141. package/dist/components/polymorphic/index.d.ts +0 -34
  142. package/dist/components/polymorphic/index.js +0 -1
  143. package/dist/components/polymorphic/index.jsx +0 -8
  144. package/dist/components/select/index.d.ts +0 -15
  145. package/dist/components/select/index.js +0 -1
  146. package/dist/components/select/index.jsx +0 -8
  147. package/dist/components/steps/index.d.ts +0 -7
  148. package/dist/components/steps/index.js +0 -1
  149. package/dist/components/steps/index.jsx +0 -8
  150. package/dist/components/table/index.d.ts +0 -8
  151. package/dist/components/table/index.js +0 -1
  152. package/dist/components/table/index.jsx +0 -7
  153. package/dist/components/tabs/index.d.ts +0 -8
  154. package/dist/components/tabs/index.js +0 -1
  155. package/dist/components/tabs/index.jsx +0 -7
  156. package/dist/components/textarea/index.d.ts +0 -15
  157. package/dist/components/textarea/index.js +0 -1
  158. package/dist/components/textarea/index.jsx +0 -8
  159. package/dist/components/timeline/index.d.ts +0 -7
  160. package/dist/components/timeline/index.js +0 -1
  161. package/dist/components/timeline/index.jsx +0 -7
  162. package/dist/components/toast/index.d.ts +0 -24
  163. package/dist/components/toast/index.js +0 -1
  164. package/dist/components/toast/index.jsx +0 -11
  165. package/dist/components/toggle/index.d.ts +0 -15
  166. package/dist/components/toggle/index.js +0 -1
  167. package/dist/components/toggle/index.jsx +0 -8
  168. package/dist/components/tooltip/index.d.ts +0 -17
  169. package/dist/components/tooltip/index.js +0 -1
  170. package/dist/components/tooltip/index.jsx +0 -8
  171. package/dist/index.css +0 -73
  172. package/dist/index.d.ts +0 -33
  173. package/dist/index.jsx +0 -143
  174. package/dist/types-CUG9pToa.d.ts +0 -15
@@ -1,52 +0,0 @@
1
- import {
2
- clsx
3
- } from "./O7LDJCQS.jsx";
4
- import {
5
- twMerge
6
- } from "./5HG7XWVC.jsx";
7
-
8
- // src/components/select/Select.tsx
9
- import { splitProps } from "solid-js";
10
- var Select = (props) => {
11
- const [local, others] = splitProps(props, [
12
- "color",
13
- "size",
14
- "dataTheme",
15
- "class",
16
- "className",
17
- "style"
18
- ]);
19
- const classes = () => twMerge(
20
- "select",
21
- local.class,
22
- local.className,
23
- clsx({
24
- "select-xl": local.size === "xl",
25
- "select-lg": local.size === "lg",
26
- "select-md": local.size === "md",
27
- "select-sm": local.size === "sm",
28
- "select-xs": local.size === "xs",
29
- "select-primary": local.color === "primary",
30
- "select-secondary": local.color === "secondary",
31
- "select-accent": local.color === "accent",
32
- "select-ghost": local.color === "ghost",
33
- "select-info": local.color === "info",
34
- "select-success": local.color === "success",
35
- "select-warning": local.color === "warning",
36
- "select-error": local.color === "error"
37
- })
38
- );
39
- return <select
40
- {...others}
41
- data-theme={local.dataTheme}
42
- class={classes()}
43
- style={local.style}
44
- >
45
- {props.children}
46
- </select>;
47
- };
48
- var Select_default = Select;
49
-
50
- export {
51
- Select_default
52
- };
@@ -1,84 +0,0 @@
1
- import { createComponent, Dynamic, mergeProps } from 'solid-js/web';
2
- import { splitProps, createMemo, untrack, createSignal } from 'solid-js';
3
-
4
- // src/components/polymorphic/Polymorphic.tsx
5
- var Polymorphic = (props) => {
6
- const [localProps, otherProps] = splitProps(props, ["as"]);
7
- const cached = createMemo(() => localProps.as ?? "div");
8
- return createMemo(() => {
9
- const component = cached();
10
- switch (typeof component) {
11
- case "function":
12
- return untrack(() => component(otherProps));
13
- case "string":
14
- return createComponent(Dynamic, mergeProps({
15
- component
16
- }, otherProps));
17
- }
18
- });
19
- };
20
- var Polymorphic_default = Polymorphic;
21
-
22
- // src/lib/iterable.ts
23
- function chain(callbacks) {
24
- return (...args) => {
25
- for (const callback of callbacks) callback?.(...args);
26
- };
27
- }
28
-
29
- // src/lib/refs/mergeRefs.ts
30
- function mergeRefs(...refs) {
31
- return chain(refs);
32
- }
33
- function createTagName(props) {
34
- return createMemo(
35
- () => props.element()?.tagName.toLowerCase() ?? props.fallback
36
- );
37
- }
38
-
39
- // src/lib/tag/createIsButton.ts
40
- var BUTTON_INPUT_TYPES = [
41
- "button",
42
- "color",
43
- "file",
44
- "image",
45
- "reset",
46
- "submit"
47
- ];
48
- function isButton(tagName, type) {
49
- if (tagName === "button") {
50
- return true;
51
- }
52
- if (tagName === "input" && type !== void 0) {
53
- return BUTTON_INPUT_TYPES.indexOf(type) !== -1;
54
- }
55
- return false;
56
- }
57
- function createIsButton(props) {
58
- const tagName = createTagName({
59
- element: props.element,
60
- fallback: "button"
61
- });
62
- return createMemo(() => isButton(tagName(), props.type));
63
- }
64
- var PolymorphicButton = (props) => {
65
- const [ref, setRef] = createSignal(null);
66
- const [localProps, otherProps] = splitProps(props, ["ref"]);
67
- const isButton2 = createIsButton({
68
- element: ref,
69
- type: props.type
70
- });
71
- return createComponent(Polymorphic_default, mergeProps({
72
- as: "button",
73
- ref(r$) {
74
- var _ref$ = mergeRefs(setRef, localProps.ref);
75
- typeof _ref$ === "function" && _ref$(r$);
76
- },
77
- get role() {
78
- return !isButton2() ? "button" : void 0;
79
- }
80
- }, otherProps));
81
- };
82
- var PolymorphicButton_default = PolymorphicButton;
83
-
84
- export { PolymorphicButton_default, Polymorphic_default };