@pequity/squirrel 7.0.0 → 7.0.2
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/dist/cjs/chunks/index.js +748 -504
- package/dist/cjs/chunks/p-action-bar.js +6 -6
- package/dist/cjs/chunks/p-btn.js +1 -1
- package/dist/es/chunks/index.js +748 -504
- package/dist/es/chunks/p-action-bar.js +6 -6
- package/dist/es/chunks/p-btn.js +1 -1
- package/dist/squirrel/components/p-btn/p-btn.vue.d.ts +5 -245
- package/dist/squirrel/utils/inputClasses.d.ts +23 -551
- package/package.json +25 -25
- package/squirrel/components/p-action-bar/p-action-bar.spec.ts +5 -1
- package/squirrel/components/p-action-bar/p-action-bar.vue +7 -7
- package/squirrel/components/p-btn/p-btn.spec.js +1 -0
- package/squirrel/components/p-btn/p-btn.vue +1 -1
|
@@ -10,7 +10,7 @@ const _hoisted_2 = { class: "whitespace-nowrap px-3" };
|
|
|
10
10
|
const _hoisted_3 = { class: "flex" };
|
|
11
11
|
const _hoisted_4 = { class: "flex items-center gap-2 px-1 py-0.5" };
|
|
12
12
|
const _hoisted_5 = { class: "flex items-center gap-2 px-1 py-0.5" };
|
|
13
|
-
const _hoisted_6 = { class: "
|
|
13
|
+
const _hoisted_6 = { class: "bg-p-purple-60 py-2" };
|
|
14
14
|
const _hoisted_7 = { class: "flex items-center gap-2 px-1 py-0.5" };
|
|
15
15
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
16
|
...{
|
|
@@ -71,17 +71,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
71
71
|
placement: "top",
|
|
72
72
|
strategy: "fixed"
|
|
73
73
|
}, {
|
|
74
|
-
popper: withCtx(() => [
|
|
75
|
-
createElementVNode("
|
|
74
|
+
popper: withCtx(({ hide }) => [
|
|
75
|
+
createElementVNode("ul", _hoisted_6, [
|
|
76
76
|
(openBlock(true), createElementBlock(Fragment, null, renderList(actionOrMenu.subActions, (subaction) => {
|
|
77
|
-
return openBlock(), createElementBlock("
|
|
77
|
+
return openBlock(), createElementBlock("li", {
|
|
78
78
|
key: `subaction-${subaction.name}`
|
|
79
79
|
}, [
|
|
80
80
|
createVNode(_sfc_main$1, {
|
|
81
81
|
size: "sm",
|
|
82
|
-
class: "w-full",
|
|
82
|
+
class: "w-full [&>.items-center]:justify-start",
|
|
83
83
|
type: "secondary-ghost-dark",
|
|
84
|
-
onClick: ($event) => _ctx.$emit("click:action", subaction.name)
|
|
84
|
+
onClick: ($event) => (_ctx.$emit("click:action", subaction.name), hide())
|
|
85
85
|
}, {
|
|
86
86
|
default: withCtx(() => [
|
|
87
87
|
createElementVNode("div", _hoisted_7, [
|
package/dist/es/chunks/p-btn.js
CHANGED
|
@@ -9,7 +9,7 @@ const _hoisted_1 = ["href", "disabled", "aria-disabled"];
|
|
|
9
9
|
const _hoisted_2 = { class: "slot-wrapper empty:hidden" };
|
|
10
10
|
const btnClasses = {
|
|
11
11
|
slots: {
|
|
12
|
-
button: "relative inline-block rounded font-medium outline-none disabled:pointer-events-none disabled:cursor-default disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:cursor-default aria-disabled:opacity-50",
|
|
12
|
+
button: "relative inline-block whitespace-nowrap rounded font-medium outline-none disabled:pointer-events-none disabled:cursor-default disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:cursor-default aria-disabled:opacity-50",
|
|
13
13
|
content: "flex items-center justify-center has-[.slot-wrapper:empty]:gap-0",
|
|
14
14
|
loader: "absolute bottom-0 left-0 right-0 top-0 flex items-center justify-center font-medium",
|
|
15
15
|
icon: "shrink-0"
|
|
@@ -65,11 +65,11 @@ declare const btn: import("tailwind-variants").TVReturnType<{
|
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
67
|
}, {
|
|
68
|
-
readonly button: "relative inline-block rounded font-medium outline-none disabled:pointer-events-none disabled:cursor-default disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:cursor-default aria-disabled:opacity-50";
|
|
68
|
+
readonly button: "relative inline-block whitespace-nowrap rounded font-medium outline-none disabled:pointer-events-none disabled:cursor-default disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:cursor-default aria-disabled:opacity-50";
|
|
69
69
|
readonly content: "flex items-center justify-center has-[.slot-wrapper:empty]:gap-0";
|
|
70
70
|
readonly loader: "absolute bottom-0 left-0 right-0 top-0 flex items-center justify-center font-medium";
|
|
71
71
|
readonly icon: "shrink-0";
|
|
72
|
-
}, undefined,
|
|
72
|
+
}, undefined, {
|
|
73
73
|
readonly type: {
|
|
74
74
|
readonly primary: {
|
|
75
75
|
readonly button: "bg-primary text-surface hover:bg-accent active:bg-p-blue-80";
|
|
@@ -130,127 +130,7 @@ declare const btn: import("tailwind-variants").TVReturnType<{
|
|
|
130
130
|
};
|
|
131
131
|
};
|
|
132
132
|
}, {
|
|
133
|
-
readonly
|
|
134
|
-
readonly primary: {
|
|
135
|
-
readonly button: "bg-primary text-surface hover:bg-accent active:bg-p-blue-80";
|
|
136
|
-
readonly loader: "text-surface";
|
|
137
|
-
};
|
|
138
|
-
readonly secondary: {
|
|
139
|
-
readonly button: "bg-p-gray-20 hover:bg-p-gray-30 active:bg-p-gray-40";
|
|
140
|
-
readonly loader: "text-p-purple-60";
|
|
141
|
-
};
|
|
142
|
-
readonly 'primary-outline': {
|
|
143
|
-
readonly button: "bg-p-blue-10 text-p-purple-60 ring-1 ring-inset ring-p-purple-60 hover:bg-p-gray-20";
|
|
144
|
-
readonly loader: "text-p-purple-60";
|
|
145
|
-
};
|
|
146
|
-
readonly 'secondary-outline': {
|
|
147
|
-
readonly button: "bg-surface text-p-purple-60 ring-1 ring-inset ring-p-gray-30 hover:bg-p-blue-10 aria-selected:bg-p-blue-10";
|
|
148
|
-
readonly loader: "text-p-purple-60";
|
|
149
|
-
};
|
|
150
|
-
readonly 'secondary-outline-blue': {
|
|
151
|
-
readonly button: "bg-surface text-p-purple-60 ring-1 ring-inset ring-p-gray-30 hover:bg-p-blue-10 aria-selected:bg-p-blue-15 aria-selected:text-p-blue-60";
|
|
152
|
-
readonly loader: "text-p-purple-60";
|
|
153
|
-
};
|
|
154
|
-
readonly error: {
|
|
155
|
-
readonly button: "bg-p-red-40 text-white hover:bg-p-red-50";
|
|
156
|
-
readonly loader: "text-white";
|
|
157
|
-
};
|
|
158
|
-
readonly success: {
|
|
159
|
-
readonly button: "bg-p-green-40 text-white hover:bg-p-green-50";
|
|
160
|
-
readonly loader: "text-white";
|
|
161
|
-
};
|
|
162
|
-
readonly 'primary-link': {
|
|
163
|
-
readonly button: "bg-transparent text-primary underline hover:text-accent";
|
|
164
|
-
readonly loader: "text-p-blue-60";
|
|
165
|
-
};
|
|
166
|
-
readonly 'secondary-ghost': {
|
|
167
|
-
readonly button: "text-on-surface hover:bg-p-gray-20";
|
|
168
|
-
readonly loader: "text-p-purple-60";
|
|
169
|
-
};
|
|
170
|
-
readonly 'secondary-ghost-dark': {
|
|
171
|
-
readonly button: "text-white hover:bg-p-purple-50";
|
|
172
|
-
readonly loader: "text-p-blue-15";
|
|
173
|
-
};
|
|
174
|
-
};
|
|
175
|
-
readonly size: {
|
|
176
|
-
readonly sm: {
|
|
177
|
-
readonly button: "px-3 has-[.slot-wrapper:empty]:px-1.5 py-1.5 text-sm leading-5";
|
|
178
|
-
readonly content: "gap-1";
|
|
179
|
-
readonly icon: "text-[20px]";
|
|
180
|
-
};
|
|
181
|
-
readonly md: {
|
|
182
|
-
readonly button: "px-6 has-[.slot-wrapper:empty]:px-2.5 has-[.slot-wrapper:empty]:py-2.5 py-2 text-base";
|
|
183
|
-
readonly content: "gap-2";
|
|
184
|
-
readonly icon: "text-xl";
|
|
185
|
-
};
|
|
186
|
-
readonly lg: {
|
|
187
|
-
readonly button: "px-6 has-[.slot-wrapper:empty]:px-3 py-3 text-lg leading-6";
|
|
188
|
-
readonly content: "gap-2.5";
|
|
189
|
-
readonly icon: "text-2xl";
|
|
190
|
-
};
|
|
191
|
-
};
|
|
192
|
-
}>, {
|
|
193
|
-
readonly type: {
|
|
194
|
-
readonly primary: {
|
|
195
|
-
readonly button: "bg-primary text-surface hover:bg-accent active:bg-p-blue-80";
|
|
196
|
-
readonly loader: "text-surface";
|
|
197
|
-
};
|
|
198
|
-
readonly secondary: {
|
|
199
|
-
readonly button: "bg-p-gray-20 hover:bg-p-gray-30 active:bg-p-gray-40";
|
|
200
|
-
readonly loader: "text-p-purple-60";
|
|
201
|
-
};
|
|
202
|
-
readonly 'primary-outline': {
|
|
203
|
-
readonly button: "bg-p-blue-10 text-p-purple-60 ring-1 ring-inset ring-p-purple-60 hover:bg-p-gray-20";
|
|
204
|
-
readonly loader: "text-p-purple-60";
|
|
205
|
-
};
|
|
206
|
-
readonly 'secondary-outline': {
|
|
207
|
-
readonly button: "bg-surface text-p-purple-60 ring-1 ring-inset ring-p-gray-30 hover:bg-p-blue-10 aria-selected:bg-p-blue-10";
|
|
208
|
-
readonly loader: "text-p-purple-60";
|
|
209
|
-
};
|
|
210
|
-
readonly 'secondary-outline-blue': {
|
|
211
|
-
readonly button: "bg-surface text-p-purple-60 ring-1 ring-inset ring-p-gray-30 hover:bg-p-blue-10 aria-selected:bg-p-blue-15 aria-selected:text-p-blue-60";
|
|
212
|
-
readonly loader: "text-p-purple-60";
|
|
213
|
-
};
|
|
214
|
-
readonly error: {
|
|
215
|
-
readonly button: "bg-p-red-40 text-white hover:bg-p-red-50";
|
|
216
|
-
readonly loader: "text-white";
|
|
217
|
-
};
|
|
218
|
-
readonly success: {
|
|
219
|
-
readonly button: "bg-p-green-40 text-white hover:bg-p-green-50";
|
|
220
|
-
readonly loader: "text-white";
|
|
221
|
-
};
|
|
222
|
-
readonly 'primary-link': {
|
|
223
|
-
readonly button: "bg-transparent text-primary underline hover:text-accent";
|
|
224
|
-
readonly loader: "text-p-blue-60";
|
|
225
|
-
};
|
|
226
|
-
readonly 'secondary-ghost': {
|
|
227
|
-
readonly button: "text-on-surface hover:bg-p-gray-20";
|
|
228
|
-
readonly loader: "text-p-purple-60";
|
|
229
|
-
};
|
|
230
|
-
readonly 'secondary-ghost-dark': {
|
|
231
|
-
readonly button: "text-white hover:bg-p-purple-50";
|
|
232
|
-
readonly loader: "text-p-blue-15";
|
|
233
|
-
};
|
|
234
|
-
};
|
|
235
|
-
readonly size: {
|
|
236
|
-
readonly sm: {
|
|
237
|
-
readonly button: "px-3 has-[.slot-wrapper:empty]:px-1.5 py-1.5 text-sm leading-5";
|
|
238
|
-
readonly content: "gap-1";
|
|
239
|
-
readonly icon: "text-[20px]";
|
|
240
|
-
};
|
|
241
|
-
readonly md: {
|
|
242
|
-
readonly button: "px-6 has-[.slot-wrapper:empty]:px-2.5 has-[.slot-wrapper:empty]:py-2.5 py-2 text-base";
|
|
243
|
-
readonly content: "gap-2";
|
|
244
|
-
readonly icon: "text-xl";
|
|
245
|
-
};
|
|
246
|
-
readonly lg: {
|
|
247
|
-
readonly button: "px-6 has-[.slot-wrapper:empty]:px-3 py-3 text-lg leading-6";
|
|
248
|
-
readonly content: "gap-2.5";
|
|
249
|
-
readonly icon: "text-2xl";
|
|
250
|
-
};
|
|
251
|
-
};
|
|
252
|
-
}, {
|
|
253
|
-
readonly button: "relative inline-block rounded font-medium outline-none disabled:pointer-events-none disabled:cursor-default disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:cursor-default aria-disabled:opacity-50";
|
|
133
|
+
readonly button: "relative inline-block whitespace-nowrap rounded font-medium outline-none disabled:pointer-events-none disabled:cursor-default disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:cursor-default aria-disabled:opacity-50";
|
|
254
134
|
readonly content: "flex items-center justify-center has-[.slot-wrapper:empty]:gap-0";
|
|
255
135
|
readonly loader: "absolute bottom-0 left-0 right-0 top-0 flex items-center justify-center font-medium";
|
|
256
136
|
readonly icon: "shrink-0";
|
|
@@ -315,131 +195,11 @@ declare const btn: import("tailwind-variants").TVReturnType<{
|
|
|
315
195
|
};
|
|
316
196
|
};
|
|
317
197
|
}, {
|
|
318
|
-
readonly button: "relative inline-block rounded font-medium outline-none disabled:pointer-events-none disabled:cursor-default disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:cursor-default aria-disabled:opacity-50";
|
|
198
|
+
readonly button: "relative inline-block whitespace-nowrap rounded font-medium outline-none disabled:pointer-events-none disabled:cursor-default disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:cursor-default aria-disabled:opacity-50";
|
|
319
199
|
readonly content: "flex items-center justify-center has-[.slot-wrapper:empty]:gap-0";
|
|
320
200
|
readonly loader: "absolute bottom-0 left-0 right-0 top-0 flex items-center justify-center font-medium";
|
|
321
201
|
readonly icon: "shrink-0";
|
|
322
|
-
}, undefined,
|
|
323
|
-
readonly type: {
|
|
324
|
-
readonly primary: {
|
|
325
|
-
readonly button: "bg-primary text-surface hover:bg-accent active:bg-p-blue-80";
|
|
326
|
-
readonly loader: "text-surface";
|
|
327
|
-
};
|
|
328
|
-
readonly secondary: {
|
|
329
|
-
readonly button: "bg-p-gray-20 hover:bg-p-gray-30 active:bg-p-gray-40";
|
|
330
|
-
readonly loader: "text-p-purple-60";
|
|
331
|
-
};
|
|
332
|
-
readonly 'primary-outline': {
|
|
333
|
-
readonly button: "bg-p-blue-10 text-p-purple-60 ring-1 ring-inset ring-p-purple-60 hover:bg-p-gray-20";
|
|
334
|
-
readonly loader: "text-p-purple-60";
|
|
335
|
-
};
|
|
336
|
-
readonly 'secondary-outline': {
|
|
337
|
-
readonly button: "bg-surface text-p-purple-60 ring-1 ring-inset ring-p-gray-30 hover:bg-p-blue-10 aria-selected:bg-p-blue-10";
|
|
338
|
-
readonly loader: "text-p-purple-60";
|
|
339
|
-
};
|
|
340
|
-
readonly 'secondary-outline-blue': {
|
|
341
|
-
readonly button: "bg-surface text-p-purple-60 ring-1 ring-inset ring-p-gray-30 hover:bg-p-blue-10 aria-selected:bg-p-blue-15 aria-selected:text-p-blue-60";
|
|
342
|
-
readonly loader: "text-p-purple-60";
|
|
343
|
-
};
|
|
344
|
-
readonly error: {
|
|
345
|
-
readonly button: "bg-p-red-40 text-white hover:bg-p-red-50";
|
|
346
|
-
readonly loader: "text-white";
|
|
347
|
-
};
|
|
348
|
-
readonly success: {
|
|
349
|
-
readonly button: "bg-p-green-40 text-white hover:bg-p-green-50";
|
|
350
|
-
readonly loader: "text-white";
|
|
351
|
-
};
|
|
352
|
-
readonly 'primary-link': {
|
|
353
|
-
readonly button: "bg-transparent text-primary underline hover:text-accent";
|
|
354
|
-
readonly loader: "text-p-blue-60";
|
|
355
|
-
};
|
|
356
|
-
readonly 'secondary-ghost': {
|
|
357
|
-
readonly button: "text-on-surface hover:bg-p-gray-20";
|
|
358
|
-
readonly loader: "text-p-purple-60";
|
|
359
|
-
};
|
|
360
|
-
readonly 'secondary-ghost-dark': {
|
|
361
|
-
readonly button: "text-white hover:bg-p-purple-50";
|
|
362
|
-
readonly loader: "text-p-blue-15";
|
|
363
|
-
};
|
|
364
|
-
};
|
|
365
|
-
readonly size: {
|
|
366
|
-
readonly sm: {
|
|
367
|
-
readonly button: "px-3 has-[.slot-wrapper:empty]:px-1.5 py-1.5 text-sm leading-5";
|
|
368
|
-
readonly content: "gap-1";
|
|
369
|
-
readonly icon: "text-[20px]";
|
|
370
|
-
};
|
|
371
|
-
readonly md: {
|
|
372
|
-
readonly button: "px-6 has-[.slot-wrapper:empty]:px-2.5 has-[.slot-wrapper:empty]:py-2.5 py-2 text-base";
|
|
373
|
-
readonly content: "gap-2";
|
|
374
|
-
readonly icon: "text-xl";
|
|
375
|
-
};
|
|
376
|
-
readonly lg: {
|
|
377
|
-
readonly button: "px-6 has-[.slot-wrapper:empty]:px-3 py-3 text-lg leading-6";
|
|
378
|
-
readonly content: "gap-2.5";
|
|
379
|
-
readonly icon: "text-2xl";
|
|
380
|
-
};
|
|
381
|
-
};
|
|
382
|
-
}, {
|
|
383
|
-
readonly type: {
|
|
384
|
-
readonly primary: {
|
|
385
|
-
readonly button: "bg-primary text-surface hover:bg-accent active:bg-p-blue-80";
|
|
386
|
-
readonly loader: "text-surface";
|
|
387
|
-
};
|
|
388
|
-
readonly secondary: {
|
|
389
|
-
readonly button: "bg-p-gray-20 hover:bg-p-gray-30 active:bg-p-gray-40";
|
|
390
|
-
readonly loader: "text-p-purple-60";
|
|
391
|
-
};
|
|
392
|
-
readonly 'primary-outline': {
|
|
393
|
-
readonly button: "bg-p-blue-10 text-p-purple-60 ring-1 ring-inset ring-p-purple-60 hover:bg-p-gray-20";
|
|
394
|
-
readonly loader: "text-p-purple-60";
|
|
395
|
-
};
|
|
396
|
-
readonly 'secondary-outline': {
|
|
397
|
-
readonly button: "bg-surface text-p-purple-60 ring-1 ring-inset ring-p-gray-30 hover:bg-p-blue-10 aria-selected:bg-p-blue-10";
|
|
398
|
-
readonly loader: "text-p-purple-60";
|
|
399
|
-
};
|
|
400
|
-
readonly 'secondary-outline-blue': {
|
|
401
|
-
readonly button: "bg-surface text-p-purple-60 ring-1 ring-inset ring-p-gray-30 hover:bg-p-blue-10 aria-selected:bg-p-blue-15 aria-selected:text-p-blue-60";
|
|
402
|
-
readonly loader: "text-p-purple-60";
|
|
403
|
-
};
|
|
404
|
-
readonly error: {
|
|
405
|
-
readonly button: "bg-p-red-40 text-white hover:bg-p-red-50";
|
|
406
|
-
readonly loader: "text-white";
|
|
407
|
-
};
|
|
408
|
-
readonly success: {
|
|
409
|
-
readonly button: "bg-p-green-40 text-white hover:bg-p-green-50";
|
|
410
|
-
readonly loader: "text-white";
|
|
411
|
-
};
|
|
412
|
-
readonly 'primary-link': {
|
|
413
|
-
readonly button: "bg-transparent text-primary underline hover:text-accent";
|
|
414
|
-
readonly loader: "text-p-blue-60";
|
|
415
|
-
};
|
|
416
|
-
readonly 'secondary-ghost': {
|
|
417
|
-
readonly button: "text-on-surface hover:bg-p-gray-20";
|
|
418
|
-
readonly loader: "text-p-purple-60";
|
|
419
|
-
};
|
|
420
|
-
readonly 'secondary-ghost-dark': {
|
|
421
|
-
readonly button: "text-white hover:bg-p-purple-50";
|
|
422
|
-
readonly loader: "text-p-blue-15";
|
|
423
|
-
};
|
|
424
|
-
};
|
|
425
|
-
readonly size: {
|
|
426
|
-
readonly sm: {
|
|
427
|
-
readonly button: "px-3 has-[.slot-wrapper:empty]:px-1.5 py-1.5 text-sm leading-5";
|
|
428
|
-
readonly content: "gap-1";
|
|
429
|
-
readonly icon: "text-[20px]";
|
|
430
|
-
};
|
|
431
|
-
readonly md: {
|
|
432
|
-
readonly button: "px-6 has-[.slot-wrapper:empty]:px-2.5 has-[.slot-wrapper:empty]:py-2.5 py-2 text-base";
|
|
433
|
-
readonly content: "gap-2";
|
|
434
|
-
readonly icon: "text-xl";
|
|
435
|
-
};
|
|
436
|
-
readonly lg: {
|
|
437
|
-
readonly button: "px-6 has-[.slot-wrapper:empty]:px-3 py-3 text-lg leading-6";
|
|
438
|
-
readonly content: "gap-2.5";
|
|
439
|
-
readonly icon: "text-2xl";
|
|
440
|
-
};
|
|
441
|
-
};
|
|
442
|
-
}>, unknown, unknown, undefined>>;
|
|
202
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
443
203
|
declare const BUTTON_NATIVE_TYPES: readonly ["button", "submit", "reset"];
|
|
444
204
|
type ButtonNativeType = (typeof BUTTON_NATIVE_TYPES)[number];
|
|
445
205
|
type ButtonType = NonNullable<VariantProps<typeof btn>['type']>;
|