@enos5/enos-vue-default 1.3.1 → 1.4.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/dist/components/Toast.vue.d.ts +22 -0
- package/dist/components/ToastContainer.vue.d.ts +12 -0
- package/dist/index.css +105 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.docs.d.ts +2 -0
- package/dist/index.js +451 -329
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "vue";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
class?: HTMLAttributes["class"];
|
|
4
|
+
variant?: "default" | "destructive" | "success" | "error";
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_1: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
close: (...args: any[]) => void;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ToastMessage {
|
|
2
|
+
id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
message: string;
|
|
5
|
+
variant: "default" | "destructive";
|
|
6
|
+
duration?: number;
|
|
7
|
+
}
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
9
|
+
addToast: (message: string, type?: "success" | "error", duration?: number) => void;
|
|
10
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
package/dist/index.css
CHANGED
|
@@ -75,11 +75,16 @@
|
|
|
75
75
|
--color-red-600: oklch(57.7% .245 27.325);
|
|
76
76
|
--color-red-700: oklch(50.5% .213 27.518);
|
|
77
77
|
--color-red-800: oklch(44.4% .177 26.899);
|
|
78
|
+
--color-red-900: oklch(39.6% .141 25.723);
|
|
78
79
|
--color-red-950: oklch(25.8% .092 26.042);
|
|
79
80
|
--color-amber-100: oklch(96.2% .059 95.617);
|
|
80
81
|
--color-amber-500: oklch(76.9% .188 70.08);
|
|
81
82
|
--color-amber-600: oklch(66.6% .179 58.318);
|
|
82
83
|
--color-amber-700: oklch(55.5% .163 48.998);
|
|
84
|
+
--color-green-500: oklch(72.3% .219 149.579);
|
|
85
|
+
--color-green-600: oklch(62.7% .194 149.214);
|
|
86
|
+
--color-green-700: oklch(52.7% .154 150.069);
|
|
87
|
+
--color-green-800: oklch(44.8% .119 151.328);
|
|
83
88
|
--color-emerald-100: oklch(95% .052 163.051);
|
|
84
89
|
--color-emerald-600: oklch(59.6% .145 163.225);
|
|
85
90
|
--color-emerald-700: oklch(50.8% .118 165.612);
|
|
@@ -469,6 +474,14 @@
|
|
|
469
474
|
inset-block: calc(var(--spacing) * 0);
|
|
470
475
|
}
|
|
471
476
|
|
|
477
|
+
.top-2 {
|
|
478
|
+
top: calc(var(--spacing) * 2);
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.top-4 {
|
|
482
|
+
top: calc(var(--spacing) * 4);
|
|
483
|
+
}
|
|
484
|
+
|
|
472
485
|
.top-6 {
|
|
473
486
|
top: calc(var(--spacing) * 6);
|
|
474
487
|
}
|
|
@@ -477,6 +490,14 @@
|
|
|
477
490
|
right: calc(var(--spacing) * 0);
|
|
478
491
|
}
|
|
479
492
|
|
|
493
|
+
.right-2 {
|
|
494
|
+
right: calc(var(--spacing) * 2);
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.right-4 {
|
|
498
|
+
right: calc(var(--spacing) * 4);
|
|
499
|
+
}
|
|
500
|
+
|
|
480
501
|
.left-0 {
|
|
481
502
|
left: calc(var(--spacing) * 0);
|
|
482
503
|
}
|
|
@@ -954,6 +975,12 @@
|
|
|
954
975
|
gap: calc(var(--spacing) * 6);
|
|
955
976
|
}
|
|
956
977
|
|
|
978
|
+
:where(.space-y-2 > :not(:last-child)) {
|
|
979
|
+
--tw-space-y-reverse: 0;
|
|
980
|
+
margin-block-start: calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));
|
|
981
|
+
margin-block-end: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)));
|
|
982
|
+
}
|
|
983
|
+
|
|
957
984
|
:where(.space-y-3 > :not(:last-child)) {
|
|
958
985
|
--tw-space-y-reverse: 0;
|
|
959
986
|
margin-block-start: calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));
|
|
@@ -1106,6 +1133,10 @@
|
|
|
1106
1133
|
border-color: var(--color-neutral-200) !important;
|
|
1107
1134
|
}
|
|
1108
1135
|
|
|
1136
|
+
.border-border {
|
|
1137
|
+
border-color: var(--border);
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1109
1140
|
.border-current, .border-current\/70 {
|
|
1110
1141
|
border-color: currentColor;
|
|
1111
1142
|
}
|
|
@@ -1120,6 +1151,10 @@
|
|
|
1120
1151
|
border-color: var(--destructive);
|
|
1121
1152
|
}
|
|
1122
1153
|
|
|
1154
|
+
.border-green-600 {
|
|
1155
|
+
border-color: var(--color-green-600);
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1123
1158
|
.border-neutral-200 {
|
|
1124
1159
|
border-color: var(--color-neutral-200);
|
|
1125
1160
|
}
|
|
@@ -1132,6 +1167,10 @@
|
|
|
1132
1167
|
border-color: var(--color-neutral-900);
|
|
1133
1168
|
}
|
|
1134
1169
|
|
|
1170
|
+
.border-red-600 {
|
|
1171
|
+
border-color: var(--color-red-600);
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1135
1174
|
.border-sidebar-border {
|
|
1136
1175
|
border-color: var(--sidebar-border);
|
|
1137
1176
|
}
|
|
@@ -1206,6 +1245,10 @@
|
|
|
1206
1245
|
background-color: var(--color-gray-300);
|
|
1207
1246
|
}
|
|
1208
1247
|
|
|
1248
|
+
.bg-green-500 {
|
|
1249
|
+
background-color: var(--color-green-500);
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1209
1252
|
.bg-neutral-50 {
|
|
1210
1253
|
background-color: var(--color-neutral-50);
|
|
1211
1254
|
}
|
|
@@ -1254,6 +1297,10 @@
|
|
|
1254
1297
|
background-color: var(--color-red-100);
|
|
1255
1298
|
}
|
|
1256
1299
|
|
|
1300
|
+
.bg-red-500 {
|
|
1301
|
+
background-color: var(--color-red-500);
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1257
1304
|
.bg-red-600 {
|
|
1258
1305
|
background-color: var(--color-red-600);
|
|
1259
1306
|
}
|
|
@@ -1438,6 +1485,10 @@
|
|
|
1438
1485
|
padding-right: calc(var(--spacing) * 4);
|
|
1439
1486
|
}
|
|
1440
1487
|
|
|
1488
|
+
.pr-6 {
|
|
1489
|
+
padding-right: calc(var(--spacing) * 6);
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1441
1492
|
.pr-10 {
|
|
1442
1493
|
padding-right: calc(var(--spacing) * 10);
|
|
1443
1494
|
}
|
|
@@ -1600,10 +1651,18 @@
|
|
|
1600
1651
|
color: var(--destructive);
|
|
1601
1652
|
}
|
|
1602
1653
|
|
|
1654
|
+
.text-destructive-foreground {
|
|
1655
|
+
color: var(--destructive-foreground);
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1603
1658
|
.text-emerald-700 {
|
|
1604
1659
|
color: var(--color-emerald-700);
|
|
1605
1660
|
}
|
|
1606
1661
|
|
|
1662
|
+
.text-foreground {
|
|
1663
|
+
color: var(--foreground);
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1607
1666
|
.text-gray-400 {
|
|
1608
1667
|
color: var(--color-gray-400);
|
|
1609
1668
|
}
|
|
@@ -1734,6 +1793,14 @@
|
|
|
1734
1793
|
opacity: .6;
|
|
1735
1794
|
}
|
|
1736
1795
|
|
|
1796
|
+
.opacity-70 {
|
|
1797
|
+
opacity: .7;
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
.opacity-90 {
|
|
1801
|
+
opacity: .9;
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1737
1804
|
.opacity-100 {
|
|
1738
1805
|
opacity: 1;
|
|
1739
1806
|
}
|
|
@@ -1748,6 +1815,11 @@
|
|
|
1748
1815
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1749
1816
|
}
|
|
1750
1817
|
|
|
1818
|
+
.shadow-lg {
|
|
1819
|
+
--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, #0000001a), 0 4px 6px -4px var(--tw-shadow-color, #0000001a);
|
|
1820
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1751
1823
|
.shadow-none {
|
|
1752
1824
|
--tw-shadow: 0 0 #0000;
|
|
1753
1825
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
@@ -1811,6 +1883,10 @@
|
|
|
1811
1883
|
--tw-ring-offset-shadow: var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1812
1884
|
}
|
|
1813
1885
|
|
|
1886
|
+
.ring-offset-background {
|
|
1887
|
+
--tw-ring-offset-color: var(--background);
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1814
1890
|
.ring-offset-white {
|
|
1815
1891
|
--tw-ring-offset-color: var(--color-white);
|
|
1816
1892
|
}
|
|
@@ -2258,6 +2334,10 @@
|
|
|
2258
2334
|
text-decoration-line: underline;
|
|
2259
2335
|
}
|
|
2260
2336
|
|
|
2337
|
+
.hover\:opacity-100:hover {
|
|
2338
|
+
opacity: 1;
|
|
2339
|
+
}
|
|
2340
|
+
|
|
2261
2341
|
.hover\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-accent\)\)\]:hover {
|
|
2262
2342
|
--tw-shadow: 0 0 0 1px var(--tw-shadow-color, hsl(var(--sidebar-accent)));
|
|
2263
2343
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
@@ -2317,6 +2397,15 @@
|
|
|
2317
2397
|
}
|
|
2318
2398
|
}
|
|
2319
2399
|
|
|
2400
|
+
.focus\:ring-ring:focus {
|
|
2401
|
+
--tw-ring-color: var(--ring);
|
|
2402
|
+
}
|
|
2403
|
+
|
|
2404
|
+
.focus\:ring-offset-2:focus {
|
|
2405
|
+
--tw-ring-offset-width: 2px;
|
|
2406
|
+
--tw-ring-offset-shadow: var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2407
|
+
}
|
|
2408
|
+
|
|
2320
2409
|
.focus\:outline-none:focus {
|
|
2321
2410
|
--tw-outline-style: none;
|
|
2322
2411
|
outline-style: none;
|
|
@@ -2734,6 +2823,10 @@
|
|
|
2734
2823
|
border-color: var(--color-neutral-800) !important;
|
|
2735
2824
|
}
|
|
2736
2825
|
|
|
2826
|
+
.dark\:border-green-800:where(.dark, .dark *) {
|
|
2827
|
+
border-color: var(--color-green-800);
|
|
2828
|
+
}
|
|
2829
|
+
|
|
2737
2830
|
.dark\:border-input:where(.dark, .dark *) {
|
|
2738
2831
|
border-color: var(--input);
|
|
2739
2832
|
}
|
|
@@ -2750,6 +2843,10 @@
|
|
|
2750
2843
|
border-color: var(--color-neutral-800);
|
|
2751
2844
|
}
|
|
2752
2845
|
|
|
2846
|
+
.dark\:border-red-950:where(.dark, .dark *) {
|
|
2847
|
+
border-color: var(--color-red-950);
|
|
2848
|
+
}
|
|
2849
|
+
|
|
2753
2850
|
.dark\:\!bg-neutral-900:where(.dark, .dark *) {
|
|
2754
2851
|
background-color: var(--color-neutral-900) !important;
|
|
2755
2852
|
}
|
|
@@ -2796,6 +2893,10 @@
|
|
|
2796
2893
|
background-color: var(--color-gray-500);
|
|
2797
2894
|
}
|
|
2798
2895
|
|
|
2896
|
+
.dark\:bg-green-700:where(.dark, .dark *) {
|
|
2897
|
+
background-color: var(--color-green-700);
|
|
2898
|
+
}
|
|
2899
|
+
|
|
2799
2900
|
.dark\:bg-input\/30:where(.dark, .dark *) {
|
|
2800
2901
|
background-color: var(--input);
|
|
2801
2902
|
}
|
|
@@ -2912,6 +3013,10 @@
|
|
|
2912
3013
|
}
|
|
2913
3014
|
}
|
|
2914
3015
|
|
|
3016
|
+
.dark\:bg-red-900:where(.dark, .dark *) {
|
|
3017
|
+
background-color: var(--color-red-900);
|
|
3018
|
+
}
|
|
3019
|
+
|
|
2915
3020
|
.dark\:bg-red-950\/30:where(.dark, .dark *) {
|
|
2916
3021
|
background-color: #4608094d;
|
|
2917
3022
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -47,6 +47,8 @@ export { default as SortControls } from "./components/SortControls.vue";
|
|
|
47
47
|
export { default as TableList } from "./components/TableList.vue";
|
|
48
48
|
export { default as TableListForm } from "./components/TableListForm.vue";
|
|
49
49
|
export { default as TableSearch } from "./components/TableSearch.vue";
|
|
50
|
+
export { default as Toast } from "./components/Toast.vue";
|
|
51
|
+
export { default as ToastContainer } from "./components/ToastContainer.vue";
|
|
50
52
|
export { default as ToggleInput } from "./components/ToggleInput.vue";
|
|
51
53
|
export { default as TextArea } from "./components/TextArea.vue";
|
|
52
54
|
export { default as TextInput } from "./components/TextInput.vue";
|
package/dist/index.docs.d.ts
CHANGED
|
@@ -46,6 +46,8 @@ export { default as SortControls } from "./components/SortControls.vue";
|
|
|
46
46
|
export { default as TableList } from "./components/TableList.vue";
|
|
47
47
|
export { default as TableListForm } from "./components/TableListForm.vue";
|
|
48
48
|
export { default as TableSearch } from "./components/TableSearch.vue";
|
|
49
|
+
export { default as Toast } from "./components/Toast.vue";
|
|
50
|
+
export { default as ToastContainer } from "./components/ToastContainer.vue";
|
|
49
51
|
export { default as ToggleInput } from "./components/ToggleInput.vue";
|
|
50
52
|
export { default as TextArea } from "./components/TextArea.vue";
|
|
51
53
|
export { default as TextInput } from "./components/TextInput.vue";
|