@pathscale/ui 0.0.2 → 0.0.3

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 (85) hide show
  1. package/dist/{Accordion-nwuRbRRw.d.ts → Accordion-JZGWxBMK.d.ts} +1 -1
  2. package/dist/Autocomplete-gLkjMHrc.d.ts +28 -0
  3. package/dist/Field-DfUn85_1.d.ts +49 -0
  4. package/dist/{Input-BQbTzjIO.d.ts → Input-C1bm4HGf.d.ts} +1 -1
  5. package/dist/{Pagination-BlrjElGg.d.ts → Pagination-CJtlFMHy.d.ts} +1 -1
  6. package/dist/Progress-gN0xqhAF.d.ts +64 -0
  7. package/dist/{Select-CP-TUHJv.d.ts → Select-CWCDBvec.d.ts} +1 -1
  8. package/dist/Steps-1miUeyCD.d.ts +34 -0
  9. package/dist/{Switch-3IXS_68H.d.ts → Switch-BiKX7HZ2.d.ts} +1 -1
  10. package/dist/Table-CGa6Nop3.d.ts +39 -0
  11. package/dist/{Tabs-BNR3p92D.d.ts → Tabs-BEnRV6GG.d.ts} +1 -1
  12. package/dist/Timeline-Bd4SxHMT.d.ts +14 -0
  13. package/dist/chunk/3VOILEMN.js +187 -0
  14. package/dist/chunk/7ROVLN3J.js +175 -0
  15. package/dist/chunk/BBDVIXAH.jsx +194 -0
  16. package/dist/chunk/{4RCWSX7S.jsx → C4745OZS.jsx} +7 -7
  17. package/dist/chunk/C4YO33NN.jsx +179 -0
  18. package/dist/chunk/D2BEL4SM.jsx +169 -0
  19. package/dist/chunk/DSTUGZW6.jsx +81 -0
  20. package/dist/chunk/FKSQPGOD.jsx +170 -0
  21. package/dist/chunk/GMIXRYN3.js +138 -0
  22. package/dist/chunk/HWAGW5N4.jsx +118 -0
  23. package/dist/chunk/JWRGKHDO.js +172 -0
  24. package/dist/chunk/LAQPAV5I.jsx +187 -0
  25. package/dist/chunk/MAX47D6F.js +99 -0
  26. package/dist/chunk/{2JGZSAW5.js → MI773TMC.js} +6 -6
  27. package/dist/chunk/MYERRMTM.js +200 -0
  28. package/dist/chunk/OSJ3P7PI.js +189 -0
  29. package/dist/chunk/QYEMOKUG.js +125 -0
  30. package/dist/chunk/SCJSBRV2.jsx +39 -0
  31. package/dist/chunk/STKRVQR6.jsx +130 -0
  32. package/dist/chunk/{NZZRKP74.js → TFLJI242.js} +1 -25
  33. package/dist/chunk/TT2JYGLU.js +218 -0
  34. package/dist/chunk/VN5BKHA2.jsx +97 -0
  35. package/dist/chunk/WUZETUQR.js +92 -0
  36. package/dist/chunk/XD34JKSU.jsx +201 -0
  37. package/dist/chunk/{GA2HCFRS.jsx → YAQK2KFY.jsx} +1 -35
  38. package/dist/chunk/YMO6RPS6.js +26 -0
  39. package/dist/components/Progress/index.d.ts +4 -38
  40. package/dist/components/Progress/index.js +1 -1
  41. package/dist/components/Progress/index.jsx +3 -11
  42. package/dist/components/accordion/index.d.ts +2 -2
  43. package/dist/components/autocomplete/index.d.ts +8 -0
  44. package/dist/components/autocomplete/index.js +1 -0
  45. package/dist/components/autocomplete/index.jsx +7 -0
  46. package/dist/components/avatar/index.js +1 -1
  47. package/dist/components/avatar/index.jsx +3 -3
  48. package/dist/components/button/index.js +1 -1
  49. package/dist/components/button/index.jsx +2 -1
  50. package/dist/components/dropdown/index.d.ts +43 -0
  51. package/dist/components/dropdown/index.js +1 -0
  52. package/dist/components/dropdown/index.jsx +12 -0
  53. package/dist/components/field/index.d.ts +7 -0
  54. package/dist/components/field/index.js +1 -0
  55. package/dist/components/field/index.jsx +7 -0
  56. package/dist/components/input/index.d.ts +2 -2
  57. package/dist/components/menu/index.d.ts +66 -0
  58. package/dist/components/menu/index.js +1 -0
  59. package/dist/components/menu/index.jsx +11 -0
  60. package/dist/components/navbar/index.d.ts +74 -0
  61. package/dist/components/navbar/index.js +1 -0
  62. package/dist/components/navbar/index.jsx +11 -0
  63. package/dist/components/pagination/index.d.ts +2 -2
  64. package/dist/components/select/index.d.ts +2 -2
  65. package/dist/components/steps/index.d.ts +8 -0
  66. package/dist/components/steps/index.js +1 -0
  67. package/dist/components/steps/index.jsx +7 -0
  68. package/dist/components/switch/index.d.ts +2 -2
  69. package/dist/components/table/index.d.ts +8 -0
  70. package/dist/components/table/index.js +1 -0
  71. package/dist/components/table/index.jsx +7 -0
  72. package/dist/components/tabs/index.d.ts +2 -2
  73. package/dist/components/timeline/index.d.ts +7 -0
  74. package/dist/components/timeline/index.js +1 -0
  75. package/dist/components/timeline/index.jsx +7 -0
  76. package/dist/components/toast/index.d.ts +24 -0
  77. package/dist/components/toast/index.js +1 -0
  78. package/dist/components/toast/index.jsx +11 -0
  79. package/dist/index.d.ts +17 -8
  80. package/dist/index.js +17 -7
  81. package/dist/index.jsx +68 -14
  82. package/package.json +1 -1
  83. package/dist/Progress-a616LgE0.d.ts +0 -5
  84. package/dist/chunk/QNOJ6PCD.js +0 -278
  85. package/dist/chunk/WCBMW2TP.jsx +0 -203
@@ -1,278 +0,0 @@
1
- import { cva } from './HKS7ET6T.js';
2
- import { template, insert, effect, className, createComponent } from 'solid-js/web';
3
- import { Show } from 'solid-js';
4
-
5
- // src/components/Progress/ProgressValue.styles.ts
6
- var progressWrapper = cva("mt-4 w-full max-w-md");
7
- var progressBar = cva("w-full h-5 relative overflow-hidden rounded-lg bg-gray-200");
8
- var progressFill = cva("h-full transition-all duration-300", {
9
- variants: {
10
- color: {
11
- danger: "bg-red-500",
12
- success: "bg-green-500",
13
- info: "bg-blue-500",
14
- warning: "bg-yellow-500",
15
- default: "bg-gray-500"
16
- }
17
- },
18
- defaultVariants: {
19
- color: "default"
20
- }
21
- });
22
- var progressLabel = cva("mt-2 text-right text-sm text-gray-700");
23
- var progressVariants = cva(
24
- [
25
- "flex items-center justify-center mx-1",
26
- "font-medium outline-none select-none transition active:transition-none",
27
- "not-disabled:cursor-pointer",
28
- "disabled:cursor-not-allowed disabled:opacity-25",
29
- "aria-busy:cursor-wait"
30
- ],
31
- {
32
- variants: {
33
- size: {
34
- sm: "size-8 text-sm",
35
- md: "size-16 text-base",
36
- lg: "size-24 text-lg"
37
- },
38
- shape: {
39
- circle: "rounded-full overflow-hidden",
40
- rounded: "rounded-lg overflow-hidden"
41
- },
42
- variant: {
43
- filled: "text-gray-800",
44
- outlined: "border-2 border-gray-300 text-gray-800",
45
- ghost: "text-gray-800"
46
- }
47
- },
48
- defaultVariants: {
49
- size: "md",
50
- shape: "rounded",
51
- variant: "filled"
52
- }
53
- }
54
- );
55
-
56
- // src/components/Progress/ProgressValue.tsx
57
- var _tmpl$ = /* @__PURE__ */ template(`<div><div><div></div></div><div>%`);
58
- var ProgressValue = (props) => {
59
- return (() => {
60
- var _el$ = _tmpl$(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$2.nextSibling, _el$5 = _el$4.firstChild;
61
- insert(_el$4, () => props.value, _el$5);
62
- effect((_p$) => {
63
- var _v$ = `${progressWrapper()} ${progressVariants({
64
- size: props.size,
65
- shape: props.shape,
66
- variant: props.variant
67
- })}`, _v$2 = progressBar(), _v$3 = progressFill(), _v$4 = `${props.value}%`, _v$5 = progressLabel();
68
- _v$ !== _p$.e && className(_el$, _p$.e = _v$);
69
- _v$2 !== _p$.t && className(_el$2, _p$.t = _v$2);
70
- _v$3 !== _p$.a && className(_el$3, _p$.a = _v$3);
71
- _v$4 !== _p$.o && ((_p$.o = _v$4) != null ? _el$3.style.setProperty("width", _v$4) : _el$3.style.removeProperty("width"));
72
- _v$5 !== _p$.i && className(_el$4, _p$.i = _v$5);
73
- return _p$;
74
- }, {
75
- e: void 0,
76
- t: void 0,
77
- a: void 0,
78
- o: void 0,
79
- i: void 0
80
- });
81
- return _el$;
82
- })();
83
- };
84
- var ProgressValue_default = ProgressValue;
85
- var _tmpl$2 = /* @__PURE__ */ template(`<div><div><div></div></div><div>%`);
86
- var Progress = ({
87
- value,
88
- size = "md",
89
- shape = "rounded",
90
- variant = "filled"
91
- }) => {
92
- return (() => {
93
- var _el$ = _tmpl$2(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$2.nextSibling, _el$5 = _el$4.firstChild;
94
- `${value}%` != null ? _el$3.style.setProperty("width", `${value}%`) : _el$3.style.removeProperty("width");
95
- insert(_el$4, value, _el$5);
96
- effect((_p$) => {
97
- var _v$ = `${progressWrapper()} ${progressVariants({
98
- size,
99
- shape,
100
- variant
101
- })}`, _v$2 = progressBar(), _v$3 = progressFill(), _v$4 = progressLabel();
102
- _v$ !== _p$.e && className(_el$, _p$.e = _v$);
103
- _v$2 !== _p$.t && className(_el$2, _p$.t = _v$2);
104
- _v$3 !== _p$.a && className(_el$3, _p$.a = _v$3);
105
- _v$4 !== _p$.o && className(_el$4, _p$.o = _v$4);
106
- return _p$;
107
- }, {
108
- e: void 0,
109
- t: void 0,
110
- a: void 0,
111
- o: void 0
112
- });
113
- return _el$;
114
- })();
115
- };
116
- var ProgressSizes_default = Progress;
117
- var _tmpl$3 = /* @__PURE__ */ template(`<div><div><div>`);
118
- var _tmpl$22 = /* @__PURE__ */ template(`<div>`);
119
- var Progress2 = ({
120
- value,
121
- size = "md",
122
- shape = "rounded",
123
- variant = "filled",
124
- showValue = false,
125
- format = "raw"
126
- }) => {
127
- const displayValue = () => {
128
- return format === "percent" ? `${value}%` : value;
129
- };
130
- return (() => {
131
- var _el$ = _tmpl$3(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild;
132
- `${value}%` != null ? _el$3.style.setProperty("width", `${value}%`) : _el$3.style.removeProperty("width");
133
- insert(_el$, showValue && (() => {
134
- var _el$4 = _tmpl$22();
135
- insert(_el$4, displayValue);
136
- effect(() => className(_el$4, progressLabel()));
137
- return _el$4;
138
- })(), null);
139
- effect((_p$) => {
140
- var _v$ = `${progressWrapper()} ${progressVariants({
141
- size,
142
- shape,
143
- variant
144
- })}`, _v$2 = progressBar(), _v$3 = progressFill();
145
- _v$ !== _p$.e && className(_el$, _p$.e = _v$);
146
- _v$2 !== _p$.t && className(_el$2, _p$.t = _v$2);
147
- _v$3 !== _p$.a && className(_el$3, _p$.a = _v$3);
148
- return _p$;
149
- }, {
150
- e: void 0,
151
- t: void 0,
152
- a: void 0
153
- });
154
- return _el$;
155
- })();
156
- };
157
- var ProgressPercent_default = Progress2;
158
- var _tmpl$4 = /* @__PURE__ */ template(`<div>`);
159
- var _tmpl$23 = /* @__PURE__ */ template(`<div><div>`);
160
- var Progress3 = ({
161
- value,
162
- size = "md",
163
- shape = "rounded",
164
- variant = "filled",
165
- showValue = false,
166
- format = "raw",
167
- color = "default"
168
- }) => {
169
- const displayValue = () => format === "percent" && value != null ? `${value}%` : value;
170
- return (() => {
171
- var _el$ = _tmpl$23(), _el$2 = _el$.firstChild;
172
- insert(_el$2, createComponent(Show, {
173
- when: value != null,
174
- get fallback() {
175
- return (() => {
176
- var _el$4 = _tmpl$4();
177
- _el$4.style.setProperty("width", "100%");
178
- effect(() => className(_el$4, `${progressFill({
179
- color
180
- })} animate-pulse`));
181
- return _el$4;
182
- })();
183
- },
184
- get children() {
185
- var _el$3 = _tmpl$4();
186
- `${value}%` != null ? _el$3.style.setProperty("width", `${value}%`) : _el$3.style.removeProperty("width");
187
- effect(() => className(_el$3, progressFill({
188
- color
189
- })));
190
- return _el$3;
191
- }
192
- }));
193
- insert(_el$, showValue && value != null && (() => {
194
- var _el$5 = _tmpl$4();
195
- insert(_el$5, displayValue);
196
- effect(() => className(_el$5, progressLabel()));
197
- return _el$5;
198
- })(), null);
199
- effect((_p$) => {
200
- var _v$ = `${progressWrapper()} ${progressVariants({
201
- size,
202
- shape,
203
- variant
204
- })}`, _v$2 = progressBar();
205
- _v$ !== _p$.e && className(_el$, _p$.e = _v$);
206
- _v$2 !== _p$.t && className(_el$2, _p$.t = _v$2);
207
- return _p$;
208
- }, {
209
- e: void 0,
210
- t: void 0
211
- });
212
- return _el$;
213
- })();
214
- };
215
- var ProgressColors_default = Progress3;
216
-
217
- // src/components/Progress/Progress.tsx
218
- var _tmpl$5 = /* @__PURE__ */ template(`<section><div class=p-4><h1 class="text-2xl font-semibold mb-4">Progress Component Demo</h1></div><div class="mt-4 flex flex-col gap-4"></div><div class=mt-4></div><div class="mt-4 flex flex-col gap-4">`);
219
- var Progress4 = () => {
220
- return (() => {
221
- var _el$ = _tmpl$5(), _el$2 = _el$.firstChild, _el$4 = _el$2.nextSibling, _el$5 = _el$4.nextSibling, _el$6 = _el$5.nextSibling;
222
- insert(_el$2, createComponent(ProgressValue_default, {
223
- value: 40,
224
- size: "sm",
225
- shape: "circle",
226
- variant: "filled"
227
- }), null);
228
- insert(_el$2, createComponent(ProgressValue_default, {
229
- value: 70,
230
- size: "md",
231
- shape: "rounded",
232
- variant: "outlined"
233
- }), null);
234
- insert(_el$2, createComponent(ProgressValue_default, {
235
- value: 90,
236
- size: "lg",
237
- shape: "circle",
238
- variant: "ghost"
239
- }), null);
240
- insert(_el$4, createComponent(ProgressSizes_default, {
241
- value: 20,
242
- size: "sm"
243
- }), null);
244
- insert(_el$4, createComponent(ProgressSizes_default, {
245
- value: 30,
246
- size: "md"
247
- }), null);
248
- insert(_el$4, createComponent(ProgressSizes_default, {
249
- value: 50,
250
- size: "lg"
251
- }), null);
252
- insert(_el$5, createComponent(ProgressPercent_default, {
253
- value: 80,
254
- showValue: true,
255
- format: "percent"
256
- }));
257
- insert(_el$6, createComponent(ProgressColors_default, {
258
- value: 40,
259
- color: "danger"
260
- }), null);
261
- insert(_el$6, createComponent(ProgressColors_default, {
262
- value: 60,
263
- color: "success"
264
- }), null);
265
- insert(_el$6, createComponent(ProgressColors_default, {
266
- value: 80,
267
- color: "info"
268
- }), null);
269
- insert(_el$6, createComponent(ProgressColors_default, {
270
- value: 100,
271
- color: "warning"
272
- }), null);
273
- return _el$;
274
- })();
275
- };
276
- var Progress_default = Progress4;
277
-
278
- export { ProgressColors_default, ProgressPercent_default, ProgressSizes_default, ProgressValue_default, Progress_default };
@@ -1,203 +0,0 @@
1
- import {
2
- cva
3
- } from "./P7WPLZNA.jsx";
4
-
5
- // src/components/Progress/Progress.tsx
6
- import "solid-js";
7
-
8
- // src/components/Progress/ProgressValue.tsx
9
- import "solid-js";
10
-
11
- // src/components/Progress/ProgressValue.styles.ts
12
- var progressWrapper = cva("mt-4 w-full max-w-md");
13
- var progressBar = cva("w-full h-5 relative overflow-hidden rounded-lg bg-gray-200");
14
- var progressFill = cva("h-full transition-all duration-300", {
15
- variants: {
16
- color: {
17
- danger: "bg-red-500",
18
- success: "bg-green-500",
19
- info: "bg-blue-500",
20
- warning: "bg-yellow-500",
21
- default: "bg-gray-500"
22
- }
23
- },
24
- defaultVariants: {
25
- color: "default"
26
- }
27
- });
28
- var progressLabel = cva("mt-2 text-right text-sm text-gray-700");
29
- var progressVariants = cva(
30
- [
31
- "flex items-center justify-center mx-1",
32
- "font-medium outline-none select-none transition active:transition-none",
33
- "not-disabled:cursor-pointer",
34
- "disabled:cursor-not-allowed disabled:opacity-25",
35
- "aria-busy:cursor-wait"
36
- ],
37
- {
38
- variants: {
39
- size: {
40
- sm: "size-8 text-sm",
41
- md: "size-16 text-base",
42
- lg: "size-24 text-lg"
43
- },
44
- shape: {
45
- circle: "rounded-full overflow-hidden",
46
- rounded: "rounded-lg overflow-hidden"
47
- },
48
- variant: {
49
- filled: "text-gray-800",
50
- outlined: "border-2 border-gray-300 text-gray-800",
51
- ghost: "text-gray-800"
52
- }
53
- },
54
- defaultVariants: {
55
- size: "md",
56
- shape: "rounded",
57
- variant: "filled"
58
- }
59
- }
60
- );
61
-
62
- // src/components/Progress/ProgressValue.tsx
63
- var ProgressValue = (props) => {
64
- return <div
65
- class={`${progressWrapper()} ${progressVariants({
66
- size: props.size,
67
- shape: props.shape,
68
- variant: props.variant
69
- })}`}
70
- >
71
- <div class={progressBar()}>
72
- <div class={progressFill()} style={{ width: `${props.value}%` }} />
73
- </div>
74
- <div class={progressLabel()}>{props.value}%</div>
75
- </div>;
76
- };
77
- var ProgressValue_default = ProgressValue;
78
-
79
- // src/components/Progress/ProgressSizes.tsx
80
- import "solid-js";
81
- var Progress = ({
82
- value,
83
- size = "md",
84
- shape = "rounded",
85
- variant = "filled"
86
- }) => {
87
- return <div
88
- class={`${progressWrapper()} ${progressVariants({
89
- size,
90
- shape,
91
- variant
92
- })}`}
93
- >
94
- <div class={progressBar()}>
95
- <div class={progressFill()} style={{ width: `${value}%` }} />
96
- </div>
97
- <div class={progressLabel()}>{value}%</div>
98
- </div>;
99
- };
100
- var ProgressSizes_default = Progress;
101
-
102
- // src/components/Progress/ProgressPercent.tsx
103
- import "solid-js";
104
- var Progress2 = ({
105
- value,
106
- size = "md",
107
- shape = "rounded",
108
- variant = "filled",
109
- showValue = false,
110
- format = "raw"
111
- }) => {
112
- const displayValue = () => {
113
- return format === "percent" ? `${value}%` : value;
114
- };
115
- return <div
116
- class={`${progressWrapper()} ${progressVariants({
117
- size,
118
- shape,
119
- variant
120
- })}`}
121
- >
122
- <div class={progressBar()}>
123
- <div class={progressFill()} style={{ width: `${value}%` }} />
124
- </div>
125
- {showValue && <div class={progressLabel()}>{displayValue()}</div>}
126
- </div>;
127
- };
128
- var ProgressPercent_default = Progress2;
129
-
130
- // src/components/Progress/ProgressColors.tsx
131
- import { Show } from "solid-js";
132
- var Progress3 = ({
133
- value,
134
- size = "md",
135
- shape = "rounded",
136
- variant = "filled",
137
- showValue = false,
138
- format = "raw",
139
- color = "default"
140
- }) => {
141
- const displayValue = () => format === "percent" && value != null ? `${value}%` : value;
142
- return <div
143
- class={`${progressWrapper()} ${progressVariants({
144
- size,
145
- shape,
146
- variant
147
- })}`}
148
- >
149
- <div class={progressBar()}>
150
- <Show
151
- when={value != null}
152
- fallback={<div
153
- class={`${progressFill({ color })} animate-pulse`}
154
- style={{ width: "100%" }}
155
- />}
156
- >
157
- <div class={progressFill({ color })} style={{ width: `${value}%` }} />
158
- </Show>
159
- </div>
160
- {showValue && value != null && <div class={progressLabel()}>{displayValue()}</div>}
161
- </div>;
162
- };
163
- var ProgressColors_default = Progress3;
164
-
165
- // src/components/Progress/Progress.tsx
166
- var Progress4 = () => {
167
- return <section>
168
- <div class="p-4">
169
- <h1 class="text-2xl font-semibold mb-4">Progress Component Demo</h1>
170
- <ProgressValue_default value={40} size="sm" shape="circle" variant="filled" />
171
- <ProgressValue_default
172
- value={70}
173
- size="md"
174
- shape="rounded"
175
- variant="outlined"
176
- />
177
- <ProgressValue_default value={90} size="lg" shape="circle" variant="ghost" />
178
- </div>
179
- <div class="mt-4 flex flex-col gap-4">
180
- <ProgressSizes_default value={20} size="sm" />
181
- <ProgressSizes_default value={30} size="md" />
182
- <ProgressSizes_default value={50} size="lg" />
183
- </div>
184
- <div class="mt-4">
185
- <ProgressPercent_default value={80} showValue format="percent" />
186
- </div>
187
- <div class="mt-4 flex flex-col gap-4">
188
- <ProgressColors_default value={40} color="danger" />
189
- <ProgressColors_default value={60} color="success" />
190
- <ProgressColors_default value={80} color="info" />
191
- <ProgressColors_default value={100} color="warning" />
192
- </div>
193
- </section>;
194
- };
195
- var Progress_default = Progress4;
196
-
197
- export {
198
- ProgressValue_default,
199
- ProgressSizes_default,
200
- ProgressPercent_default,
201
- ProgressColors_default,
202
- Progress_default
203
- };