@shuriken-ui/tailwind 1.2.6 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/config.d.cts +1 -193
- package/dist/config.d.mts +1 -193
- package/dist/config.d.ts +1 -193
- package/dist/index.d.cts +4 -3
- package/dist/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/preset.cjs +1025 -447
- package/dist/preset.d.cts +4 -389
- package/dist/preset.d.mts +4 -389
- package/dist/preset.d.ts +4 -389
- package/dist/preset.mjs +1025 -447
- package/dist/shared/tailwind.6e716239.d.cts +4724 -0
- package/dist/shared/tailwind.6e716239.d.mts +4724 -0
- package/dist/shared/tailwind.6e716239.d.ts +4724 -0
- package/package.json +24 -24
package/dist/preset.cjs
CHANGED
@@ -25,7 +25,8 @@ const defaultPluginOptions = {
|
|
25
25
|
prefix: "nui"
|
26
26
|
};
|
27
27
|
|
28
|
-
const
|
28
|
+
const key$R = "accordion";
|
29
|
+
const defaultConfig$Q = {
|
29
30
|
size: "full",
|
30
31
|
border: "muted-200",
|
31
32
|
borderDark: "muted-700",
|
@@ -80,6 +81,7 @@ const defaultAccordionConfig = {
|
|
80
81
|
curved: "xl"
|
81
82
|
}
|
82
83
|
};
|
84
|
+
|
83
85
|
const accordion = plugin__default.withOptions(
|
84
86
|
function(options) {
|
85
87
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -87,9 +89,7 @@ const accordion = plugin__default.withOptions(
|
|
87
89
|
prefix = `${prefix}-`;
|
88
90
|
}
|
89
91
|
return function({ addComponents, theme }) {
|
90
|
-
const config = theme(
|
91
|
-
"shurikenUi.accordion"
|
92
|
-
);
|
92
|
+
const config = theme(`shurikenUi.${key$R}`);
|
93
93
|
addComponents({
|
94
94
|
[`.${prefix}accordion`]: {
|
95
95
|
[`@apply w-${config.size} border-${config.border} dark:border-${config.borderDark} dark:bg-${config.bgDark} block overflow-hidden border bg-${config.bg}`]: {},
|
@@ -178,14 +178,15 @@ const accordion = plugin__default.withOptions(
|
|
178
178
|
return {
|
179
179
|
theme: {
|
180
180
|
shurikenUi: {
|
181
|
-
|
181
|
+
[key$R]: defaultConfig$Q
|
182
182
|
}
|
183
183
|
}
|
184
184
|
};
|
185
185
|
}
|
186
186
|
);
|
187
187
|
|
188
|
-
const
|
188
|
+
const key$Q = "autocomplete";
|
189
|
+
const defaultConfig$P = {
|
189
190
|
labelFloat: {
|
190
191
|
text: "primary-500",
|
191
192
|
size: "5",
|
@@ -455,6 +456,7 @@ const defaultAutocompleteConfig = {
|
|
455
456
|
}
|
456
457
|
}
|
457
458
|
};
|
459
|
+
|
458
460
|
const autocomplete = plugin__default.withOptions(
|
459
461
|
function(options) {
|
460
462
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -462,9 +464,7 @@ const autocomplete = plugin__default.withOptions(
|
|
462
464
|
prefix = `${prefix}-`;
|
463
465
|
}
|
464
466
|
return function({ addComponents, theme }) {
|
465
|
-
const config = theme(
|
466
|
-
"shurikenUi.autocomplete"
|
467
|
-
);
|
467
|
+
const config = theme(`shurikenUi.${key$Q}`);
|
468
468
|
addComponents({
|
469
469
|
[`.${prefix}autocomplete`]: {
|
470
470
|
[`@apply w-full relative`]: {},
|
@@ -820,14 +820,15 @@ const autocomplete = plugin__default.withOptions(
|
|
820
820
|
return {
|
821
821
|
theme: {
|
822
822
|
shurikenUi: {
|
823
|
-
|
823
|
+
[key$Q]: defaultConfig$P
|
824
824
|
}
|
825
825
|
}
|
826
826
|
};
|
827
827
|
}
|
828
828
|
);
|
829
829
|
|
830
|
-
const
|
830
|
+
const key$P = "avatar";
|
831
|
+
const defaultConfig$O = {
|
831
832
|
avatarInner: {
|
832
833
|
size: "full",
|
833
834
|
duration: "300"
|
@@ -1066,6 +1067,7 @@ const defaultAvatarConfig = {
|
|
1066
1067
|
avatarBadgePosition: "0"
|
1067
1068
|
}
|
1068
1069
|
};
|
1070
|
+
|
1069
1071
|
const avatar = plugin__default.withOptions(
|
1070
1072
|
function(options) {
|
1071
1073
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -1073,9 +1075,7 @@ const avatar = plugin__default.withOptions(
|
|
1073
1075
|
prefix = `${prefix}-`;
|
1074
1076
|
}
|
1075
1077
|
return function({ addComponents, theme }) {
|
1076
|
-
const config = theme(
|
1077
|
-
"shurikenUi.avatar"
|
1078
|
-
);
|
1078
|
+
const config = theme(`shurikenUi.${key$P}`);
|
1079
1079
|
addComponents({
|
1080
1080
|
[`.${prefix}avatar`]: {
|
1081
1081
|
[`@apply relative inline-flex shrink-0 items-center justify-center outline-none`]: {},
|
@@ -1566,14 +1566,15 @@ const avatar = plugin__default.withOptions(
|
|
1566
1566
|
return {
|
1567
1567
|
theme: {
|
1568
1568
|
shurikenUi: {
|
1569
|
-
|
1569
|
+
[key$P]: defaultConfig$O
|
1570
1570
|
}
|
1571
1571
|
}
|
1572
1572
|
};
|
1573
1573
|
}
|
1574
1574
|
);
|
1575
1575
|
|
1576
|
-
const
|
1576
|
+
const key$O = "avatarGroup";
|
1577
|
+
const defaultConfig$N = {
|
1577
1578
|
avatarOuter: {
|
1578
1579
|
bg: "white",
|
1579
1580
|
bgDark: "muted-800",
|
@@ -1649,6 +1650,7 @@ const defaultAvatarGroupConfig = {
|
|
1649
1650
|
}
|
1650
1651
|
}
|
1651
1652
|
};
|
1653
|
+
|
1652
1654
|
const avatarGroup = plugin__default.withOptions(
|
1653
1655
|
function(options) {
|
1654
1656
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -1656,9 +1658,7 @@ const avatarGroup = plugin__default.withOptions(
|
|
1656
1658
|
prefix = `${prefix}-`;
|
1657
1659
|
}
|
1658
1660
|
return function({ addComponents, theme }) {
|
1659
|
-
const config = theme(
|
1660
|
-
"shurikenUi.avatarGroup"
|
1661
|
-
);
|
1661
|
+
const config = theme(`shurikenUi.${key$O}`);
|
1662
1662
|
addComponents({
|
1663
1663
|
[`.${prefix}avatar-group`]: {
|
1664
1664
|
[`@apply flex`]: {},
|
@@ -1770,14 +1770,15 @@ const avatarGroup = plugin__default.withOptions(
|
|
1770
1770
|
return {
|
1771
1771
|
theme: {
|
1772
1772
|
shurikenUi: {
|
1773
|
-
|
1773
|
+
[key$O]: defaultConfig$N
|
1774
1774
|
}
|
1775
1775
|
}
|
1776
1776
|
};
|
1777
1777
|
}
|
1778
1778
|
);
|
1779
1779
|
|
1780
|
-
const
|
1780
|
+
const key$N = "breadcrumb";
|
1781
|
+
const defaultConfig$M = {
|
1781
1782
|
list: {
|
1782
1783
|
font: "sans",
|
1783
1784
|
text: "[0.85rem]",
|
@@ -1801,6 +1802,7 @@ const defaultBreadcrumbConfig = {
|
|
1801
1802
|
}
|
1802
1803
|
}
|
1803
1804
|
};
|
1805
|
+
|
1804
1806
|
const breadcrumb = plugin__default.withOptions(
|
1805
1807
|
function(options) {
|
1806
1808
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -1808,9 +1810,7 @@ const breadcrumb = plugin__default.withOptions(
|
|
1808
1810
|
prefix = `${prefix}-`;
|
1809
1811
|
}
|
1810
1812
|
return function({ addComponents, theme }) {
|
1811
|
-
const config = theme(
|
1812
|
-
"shurikenUi.breadcrumb"
|
1813
|
-
);
|
1813
|
+
const config = theme(`shurikenUi.${key$N}`);
|
1814
1814
|
addComponents({
|
1815
1815
|
[`.${prefix}breadcrumb`]: {
|
1816
1816
|
[`.${prefix}breadcrumb-list`]: {
|
@@ -1848,14 +1848,15 @@ const breadcrumb = plugin__default.withOptions(
|
|
1848
1848
|
return {
|
1849
1849
|
theme: {
|
1850
1850
|
shurikenUi: {
|
1851
|
-
|
1851
|
+
[key$N]: defaultConfig$M
|
1852
1852
|
}
|
1853
1853
|
}
|
1854
1854
|
};
|
1855
1855
|
}
|
1856
1856
|
);
|
1857
1857
|
|
1858
|
-
const
|
1858
|
+
const key$M = "buttonAction";
|
1859
|
+
const defaultConfig$L = {
|
1859
1860
|
font: "normal",
|
1860
1861
|
text: "sm",
|
1861
1862
|
duration: "300",
|
@@ -1980,6 +1981,7 @@ const defaultButtonActionConfig = {
|
|
1980
1981
|
focusWithinDark: "danger-400"
|
1981
1982
|
}
|
1982
1983
|
};
|
1984
|
+
|
1983
1985
|
const buttonAction = plugin__default.withOptions(
|
1984
1986
|
function(options) {
|
1985
1987
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -1987,9 +1989,7 @@ const buttonAction = plugin__default.withOptions(
|
|
1987
1989
|
prefix = `${prefix}-`;
|
1988
1990
|
}
|
1989
1991
|
return function({ addComponents, theme }) {
|
1990
|
-
const config = theme(
|
1991
|
-
"shurikenUi.buttonAction"
|
1992
|
-
);
|
1992
|
+
const config = theme(`shurikenUi.${key$M}`);
|
1993
1993
|
addComponents({
|
1994
1994
|
[`.${prefix}button-action`]: {
|
1995
1995
|
[`@apply relative font-sans font-${config.font} text-${config.text} inline-flex items-center justify-center leading-5 no-underline h-8 px-3 py-2 space-x-1 border ${prefix}focus transition-all duration-${config.duration} disabled:opacity-60 disabled:cursor-not-allowed hover:enabled:shadow-none`]: {},
|
@@ -2037,14 +2037,15 @@ const buttonAction = plugin__default.withOptions(
|
|
2037
2037
|
return {
|
2038
2038
|
theme: {
|
2039
2039
|
shurikenUi: {
|
2040
|
-
|
2040
|
+
[key$M]: defaultConfig$L
|
2041
2041
|
}
|
2042
2042
|
}
|
2043
2043
|
};
|
2044
2044
|
}
|
2045
2045
|
);
|
2046
2046
|
|
2047
|
-
const
|
2047
|
+
const key$L = "buttonClose";
|
2048
|
+
const defaultConfig$K = {
|
2048
2049
|
size: "9",
|
2049
2050
|
duration: "300",
|
2050
2051
|
buttonIcon: {
|
@@ -2095,6 +2096,7 @@ const defaultButtonCloseConfig = {
|
|
2095
2096
|
text: "danger-500"
|
2096
2097
|
}
|
2097
2098
|
};
|
2099
|
+
|
2098
2100
|
const buttonClose = plugin__default.withOptions(
|
2099
2101
|
function(options) {
|
2100
2102
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -2102,12 +2104,10 @@ const buttonClose = plugin__default.withOptions(
|
|
2102
2104
|
prefix = `${prefix}-`;
|
2103
2105
|
}
|
2104
2106
|
return function({ addComponents, theme }) {
|
2105
|
-
const config = theme(
|
2106
|
-
"shurikenUi.buttonClose"
|
2107
|
-
);
|
2107
|
+
const config = theme(`shurikenUi.${key$L}`);
|
2108
2108
|
addComponents({
|
2109
2109
|
[`.${prefix}button-close`]: {
|
2110
|
-
[`@apply flex h-${config.size} w-${config.size} items-center justify-center transition-colors duration-${config.duration} disabled:opacity-30 cursor-pointer`]: {},
|
2110
|
+
[`@apply ${prefix}focus flex h-${config.size} w-${config.size} items-center justify-center transition-colors duration-${config.duration} disabled:opacity-30 cursor-pointer`]: {},
|
2111
2111
|
[`.${prefix}button-icon`]: {
|
2112
2112
|
[`@apply h-${config.buttonIcon.size} w-${config.buttonIcon.size} fill-current`]: {}
|
2113
2113
|
},
|
@@ -2152,14 +2152,16 @@ const buttonClose = plugin__default.withOptions(
|
|
2152
2152
|
return {
|
2153
2153
|
theme: {
|
2154
2154
|
shurikenUi: {
|
2155
|
-
|
2155
|
+
[key$L]: defaultConfig$K
|
2156
2156
|
}
|
2157
2157
|
}
|
2158
2158
|
};
|
2159
2159
|
}
|
2160
2160
|
);
|
2161
2161
|
|
2162
|
-
const
|
2162
|
+
const key$K = "buttonAction";
|
2163
|
+
const defaultConfig$J = {};
|
2164
|
+
|
2163
2165
|
const buttonGroup = plugin__default.withOptions(
|
2164
2166
|
function(options) {
|
2165
2167
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -2167,9 +2169,7 @@ const buttonGroup = plugin__default.withOptions(
|
|
2167
2169
|
prefix = `${prefix}-`;
|
2168
2170
|
}
|
2169
2171
|
return function({ addComponents, theme }) {
|
2170
|
-
theme(
|
2171
|
-
"shurikenUi.buttonGroup"
|
2172
|
-
);
|
2172
|
+
theme(`shurikenUi.${key$K}`);
|
2173
2173
|
addComponents({
|
2174
2174
|
[`.${prefix}button-group`]: {
|
2175
2175
|
[`@apply flex`]: {},
|
@@ -2268,14 +2268,15 @@ const buttonGroup = plugin__default.withOptions(
|
|
2268
2268
|
return {
|
2269
2269
|
theme: {
|
2270
2270
|
shurikenUi: {
|
2271
|
-
|
2271
|
+
[key$K]: defaultConfig$J
|
2272
2272
|
}
|
2273
2273
|
}
|
2274
2274
|
};
|
2275
2275
|
}
|
2276
2276
|
);
|
2277
2277
|
|
2278
|
-
const
|
2278
|
+
const key$J = "buttonIcon";
|
2279
|
+
const defaultConfig$I = {
|
2279
2280
|
text: "sm",
|
2280
2281
|
font: "normal",
|
2281
2282
|
duration: "300",
|
@@ -2340,6 +2341,7 @@ const defaultButtonIconConfig = {
|
|
2340
2341
|
text: "danger-500"
|
2341
2342
|
}
|
2342
2343
|
};
|
2344
|
+
|
2343
2345
|
const buttonIcon = plugin__default.withOptions(
|
2344
2346
|
function(options) {
|
2345
2347
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -2347,12 +2349,10 @@ const buttonIcon = plugin__default.withOptions(
|
|
2347
2349
|
prefix = `${prefix}-`;
|
2348
2350
|
}
|
2349
2351
|
return function({ addComponents, theme }) {
|
2350
|
-
const config = theme(
|
2351
|
-
"shurikenUi.buttonIcon"
|
2352
|
-
);
|
2352
|
+
const config = theme(`shurikenUi.${key$J}`);
|
2353
2353
|
addComponents({
|
2354
2354
|
[`.${prefix}button-icon`]: {
|
2355
|
-
[`@apply ${prefix}focus relative inline-flex items-center justify-center space-x-1 font-sans text-${config.text} font-${config.font} leading-5 no-underline
|
2355
|
+
[`@apply ${prefix}focus relative inline-flex items-center justify-center space-x-1 font-sans text-${config.text} font-${config.font} leading-5 no-underline transition-all duration-${config.duration} disabled:opacity-60 disabled:cursor-not-allowed hover:shadow-none`]: {},
|
2356
2356
|
[`&.${prefix}button-small`]: {
|
2357
2357
|
[`@apply h-${config.buttonSmall.size} w-${config.buttonSmall.size} p-${config.buttonSmall.space}`]: {}
|
2358
2358
|
},
|
@@ -2406,14 +2406,15 @@ const buttonIcon = plugin__default.withOptions(
|
|
2406
2406
|
return {
|
2407
2407
|
theme: {
|
2408
2408
|
shurikenUi: {
|
2409
|
-
|
2409
|
+
[key$J]: defaultConfig$I
|
2410
2410
|
}
|
2411
2411
|
}
|
2412
2412
|
};
|
2413
2413
|
}
|
2414
2414
|
);
|
2415
2415
|
|
2416
|
-
const
|
2416
|
+
const key$I = "button";
|
2417
|
+
const defaultConfig$H = {
|
2417
2418
|
duration: "300",
|
2418
2419
|
font: "normal",
|
2419
2420
|
badge: {
|
@@ -2843,6 +2844,7 @@ const defaultButtonConfig = {
|
|
2843
2844
|
}
|
2844
2845
|
}
|
2845
2846
|
};
|
2847
|
+
|
2846
2848
|
const button = plugin__default.withOptions(
|
2847
2849
|
function(options) {
|
2848
2850
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -2850,9 +2852,7 @@ const button = plugin__default.withOptions(
|
|
2850
2852
|
prefix = `${prefix}-`;
|
2851
2853
|
}
|
2852
2854
|
return function({ addComponents, theme }) {
|
2853
|
-
const config = theme(
|
2854
|
-
"shurikenUi.button"
|
2855
|
-
);
|
2855
|
+
const config = theme(`shurikenUi.${key$I}`);
|
2856
2856
|
addComponents({
|
2857
2857
|
[`.${prefix}button`]: {
|
2858
2858
|
[`@apply relative font-sans font-${config.font} leading-5 no-underline inline-flex justify-center items-center space-x-1 ${prefix}focus transition-all duration-${config.duration} disabled:opacity-60 disabled:cursor-not-allowed hover:shadow-none`]: {},
|
@@ -3101,14 +3101,15 @@ const button = plugin__default.withOptions(
|
|
3101
3101
|
return {
|
3102
3102
|
theme: {
|
3103
3103
|
shurikenUi: {
|
3104
|
-
|
3104
|
+
[key$I]: defaultConfig$H
|
3105
3105
|
}
|
3106
3106
|
}
|
3107
3107
|
};
|
3108
3108
|
}
|
3109
3109
|
);
|
3110
3110
|
|
3111
|
-
const
|
3111
|
+
const key$H = "card";
|
3112
|
+
const defaultConfig$G = {
|
3112
3113
|
size: "full",
|
3113
3114
|
duration: "300",
|
3114
3115
|
cardWhite: {
|
@@ -3171,6 +3172,7 @@ const defaultCardConfig = {
|
|
3171
3172
|
size: "xl"
|
3172
3173
|
}
|
3173
3174
|
};
|
3175
|
+
|
3174
3176
|
const card = plugin__default.withOptions(
|
3175
3177
|
function(options) {
|
3176
3178
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -3178,7 +3180,7 @@ const card = plugin__default.withOptions(
|
|
3178
3180
|
prefix = `${prefix}-`;
|
3179
3181
|
}
|
3180
3182
|
return function({ addComponents, theme }) {
|
3181
|
-
const config = theme(
|
3183
|
+
const config = theme(`shurikenUi.${key$H}`);
|
3182
3184
|
addComponents({
|
3183
3185
|
[`.${prefix}card`]: {
|
3184
3186
|
[`@apply relative w-${config.size} transition-all duration-${config.duration}`]: {},
|
@@ -3234,14 +3236,15 @@ const card = plugin__default.withOptions(
|
|
3234
3236
|
return {
|
3235
3237
|
theme: {
|
3236
3238
|
shurikenUi: {
|
3237
|
-
|
3239
|
+
[key$H]: defaultConfig$G
|
3238
3240
|
}
|
3239
3241
|
}
|
3240
3242
|
};
|
3241
3243
|
}
|
3242
3244
|
);
|
3243
3245
|
|
3244
|
-
const
|
3246
|
+
const key$G = "checkbox";
|
3247
|
+
const defaultConfig$F = {
|
3245
3248
|
outer: {
|
3246
3249
|
size: "5"
|
3247
3250
|
},
|
@@ -3290,6 +3293,7 @@ const defaultCheckboxConfig = {
|
|
3290
3293
|
warning: "warning-500",
|
3291
3294
|
danger: "danger-500"
|
3292
3295
|
};
|
3296
|
+
|
3293
3297
|
const checkbox = plugin__default.withOptions(
|
3294
3298
|
function(options) {
|
3295
3299
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -3297,9 +3301,7 @@ const checkbox = plugin__default.withOptions(
|
|
3297
3301
|
prefix = `${prefix}-`;
|
3298
3302
|
}
|
3299
3303
|
return function({ addComponents, theme }) {
|
3300
|
-
const config = theme(
|
3301
|
-
"shurikenUi.checkbox"
|
3302
|
-
);
|
3304
|
+
const config = theme(`shurikenUi.${key$G}`);
|
3303
3305
|
addComponents({
|
3304
3306
|
[`.${prefix}checkbox`]: {
|
3305
3307
|
[`@apply relative inline-flex items-start gap-1`]: {},
|
@@ -3339,16 +3341,16 @@ const checkbox = plugin__default.withOptions(
|
|
3339
3341
|
[`.${prefix}checkbox-error`]: {
|
3340
3342
|
[`@apply text-${config.error.text} ms-1 inline-block font-${config.error.font} text-${config.error.textSixe}`]: {}
|
3341
3343
|
},
|
3342
|
-
[`&.${prefix}checkbox-rounded .${prefix}checkbox-inner`]: {
|
3344
|
+
[`&.${prefix}checkbox-rounded .${prefix}checkbox-outer, &.${prefix}checkbox-rounded .${prefix}checkbox-inner`]: {
|
3343
3345
|
[`@apply rounded`]: {}
|
3344
3346
|
},
|
3345
|
-
[`&.${prefix}checkbox-smooth .${prefix}checkbox-inner`]: {
|
3347
|
+
[`&.${prefix}checkbox-smooth .${prefix}checkbox-outer, &.${prefix}checkbox-smooth .${prefix}checkbox-inner`]: {
|
3346
3348
|
[`@apply rounded-${config.rounded.smooth}`]: {}
|
3347
3349
|
},
|
3348
|
-
[`&.${prefix}checkbox-curved .${prefix}checkbox-inner`]: {
|
3350
|
+
[`&.${prefix}checkbox-curved .${prefix}checkbox-outer, &.${prefix}checkbox-curved .${prefix}checkbox-inner`]: {
|
3349
3351
|
[`@apply rounded-${config.rounded.curved}`]: {}
|
3350
3352
|
},
|
3351
|
-
[`&.${prefix}checkbox-full .${prefix}checkbox-inner`]: {
|
3353
|
+
[`&.${prefix}checkbox-full .${prefix}checkbox-outer, &.${prefix}checkbox-full .${prefix}checkbox-inner`]: {
|
3352
3354
|
[`@apply rounded-${config.rounded.full}`]: {}
|
3353
3355
|
},
|
3354
3356
|
[`&.${prefix}checkbox-default`]: {
|
@@ -3383,18 +3385,20 @@ const checkbox = plugin__default.withOptions(
|
|
3383
3385
|
return {
|
3384
3386
|
theme: {
|
3385
3387
|
shurikenUi: {
|
3386
|
-
|
3388
|
+
[key$G]: defaultConfig$F
|
3387
3389
|
}
|
3388
3390
|
}
|
3389
3391
|
};
|
3390
3392
|
}
|
3391
3393
|
);
|
3392
3394
|
|
3393
|
-
const
|
3395
|
+
const key$F = "drodownDivider";
|
3396
|
+
const defaultConfig$E = {
|
3394
3397
|
space: "2",
|
3395
3398
|
border: "muted-200",
|
3396
3399
|
borderDark: "muted-600"
|
3397
3400
|
};
|
3401
|
+
|
3398
3402
|
const dropdownDivider = plugin__default.withOptions(
|
3399
3403
|
function(options) {
|
3400
3404
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -3402,9 +3406,7 @@ const dropdownDivider = plugin__default.withOptions(
|
|
3402
3406
|
prefix = `${prefix}-`;
|
3403
3407
|
}
|
3404
3408
|
return function({ addComponents, theme }) {
|
3405
|
-
const config = theme(
|
3406
|
-
"shurikenUi.dropdownDivider"
|
3407
|
-
);
|
3409
|
+
const config = theme(`shurikenUi.${key$F}`);
|
3408
3410
|
addComponents({
|
3409
3411
|
[`.${prefix}dropdown-divider`]: {
|
3410
3412
|
[`@apply my-${config.space} block h-px w-full border-t border-${config.border} dark:border-${config.borderDark}`]: {}
|
@@ -3416,14 +3418,15 @@ const dropdownDivider = plugin__default.withOptions(
|
|
3416
3418
|
return {
|
3417
3419
|
theme: {
|
3418
3420
|
shurikenUi: {
|
3419
|
-
|
3421
|
+
[key$F]: defaultConfig$E
|
3420
3422
|
}
|
3421
3423
|
}
|
3422
3424
|
};
|
3423
3425
|
}
|
3424
3426
|
);
|
3425
3427
|
|
3426
|
-
const
|
3428
|
+
const key$E = "dropdownItem";
|
3429
|
+
const defaultConfig$D = {
|
3427
3430
|
itemRounded: "md",
|
3428
3431
|
textPosition: "left",
|
3429
3432
|
textSize: "sm",
|
@@ -3448,6 +3451,7 @@ const defaultDropdownItemConfig = {
|
|
3448
3451
|
curved: "xl"
|
3449
3452
|
}
|
3450
3453
|
};
|
3454
|
+
|
3451
3455
|
const dropdownItem = plugin__default.withOptions(
|
3452
3456
|
function(options) {
|
3453
3457
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -3455,12 +3459,10 @@ const dropdownItem = plugin__default.withOptions(
|
|
3455
3459
|
prefix = `${prefix}-`;
|
3456
3460
|
}
|
3457
3461
|
return function({ addComponents, theme }) {
|
3458
|
-
const config = theme(
|
3459
|
-
"shurikenUi.dropdownItem"
|
3460
|
-
);
|
3462
|
+
const config = theme(`shurikenUi.${key$E}`);
|
3461
3463
|
addComponents({
|
3462
3464
|
[`.${prefix}dropdown-item`]: {
|
3463
|
-
[`@apply flex w-full items-center justify-start gap-2 px-3 py-2 text-${config.textPosition} text-${config.textSize} cursor-pointer transition-colors duration-${config.duration}`]: {},
|
3465
|
+
[`@apply ${prefix}focus flex w-full items-center justify-start gap-2 px-3 py-2 text-${config.textPosition} text-${config.textSize} cursor-pointer transition-colors duration-${config.duration}`]: {},
|
3464
3466
|
[`.${prefix}item-content`]: {
|
3465
3467
|
[`@apply grow`]: {}
|
3466
3468
|
},
|
@@ -3494,14 +3496,15 @@ const dropdownItem = plugin__default.withOptions(
|
|
3494
3496
|
return {
|
3495
3497
|
theme: {
|
3496
3498
|
shurikenUi: {
|
3497
|
-
|
3499
|
+
[key$E]: defaultConfig$D
|
3498
3500
|
}
|
3499
3501
|
}
|
3500
3502
|
};
|
3501
3503
|
}
|
3502
3504
|
);
|
3503
3505
|
|
3504
|
-
const
|
3506
|
+
const key$D = "dropdown";
|
3507
|
+
const defaultConfig$C = {
|
3505
3508
|
textPosition: "start",
|
3506
3509
|
contextButton: {
|
3507
3510
|
ringOffsetDark: "muted-900",
|
@@ -3599,6 +3602,7 @@ const defaultDropdownConfig = {
|
|
3599
3602
|
ringDark: "muted-700/70"
|
3600
3603
|
}
|
3601
3604
|
};
|
3605
|
+
|
3602
3606
|
const dropdown = plugin__default.withOptions(
|
3603
3607
|
function(options) {
|
3604
3608
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -3606,9 +3610,7 @@ const dropdown = plugin__default.withOptions(
|
|
3606
3610
|
prefix = `${prefix}-`;
|
3607
3611
|
}
|
3608
3612
|
return function({ addComponents, theme }) {
|
3609
|
-
const config = theme(
|
3610
|
-
"shurikenUi.dropdown"
|
3611
|
-
);
|
3613
|
+
const config = theme(`shurikenUi.${key$D}`);
|
3612
3614
|
addComponents({
|
3613
3615
|
[`.${prefix}dropdown`]: {
|
3614
3616
|
[`@apply text-${config.textPosition}`]: {},
|
@@ -3716,20 +3718,23 @@ const dropdown = plugin__default.withOptions(
|
|
3716
3718
|
return {
|
3717
3719
|
theme: {
|
3718
3720
|
shurikenUi: {
|
3719
|
-
|
3721
|
+
[key$D]: defaultConfig$C
|
3720
3722
|
}
|
3721
3723
|
}
|
3722
3724
|
};
|
3723
3725
|
}
|
3724
3726
|
);
|
3725
3727
|
|
3726
|
-
const
|
3728
|
+
const key$C = "focus";
|
3729
|
+
const defaultConfig$B = {
|
3727
3730
|
offset: "2",
|
3728
|
-
width: "
|
3731
|
+
width: "2",
|
3729
3732
|
style: "dashed",
|
3730
3733
|
color: "muted-300",
|
3731
|
-
colorDark: "muted-600"
|
3734
|
+
colorDark: "muted-600",
|
3735
|
+
mode: "always"
|
3732
3736
|
};
|
3737
|
+
|
3733
3738
|
const focus = plugin__default.withOptions(
|
3734
3739
|
function(options) {
|
3735
3740
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -3737,19 +3742,15 @@ const focus = plugin__default.withOptions(
|
|
3737
3742
|
prefix = `${prefix}-`;
|
3738
3743
|
}
|
3739
3744
|
return function({ addComponents, theme }) {
|
3740
|
-
const config = theme(
|
3741
|
-
|
3742
|
-
);
|
3745
|
+
const config = theme(`shurikenUi.${key$C}`);
|
3746
|
+
const mode = config.mode === "focus-visible" ? "&:has(:focus-visible), &:focus-visible" : "&:focus-within";
|
3743
3747
|
addComponents({
|
3744
3748
|
[`.${prefix}focus`]: {
|
3745
3749
|
[`@apply outline-${config.width} outline-${config.style} outline-offset-${config.offset}`]: {},
|
3746
3750
|
"@apply outline-transparent": {},
|
3747
|
-
|
3751
|
+
[mode]: {
|
3748
3752
|
[`@apply outline-${config.color} dark:outline-${config.colorDark}`]: {},
|
3749
3753
|
[`@apply outline-${config.style} ring-0`]: {}
|
3750
|
-
},
|
3751
|
-
"&:focus-visible": {
|
3752
|
-
[`@apply outline-${config.width}`]: {}
|
3753
3754
|
}
|
3754
3755
|
}
|
3755
3756
|
});
|
@@ -3759,14 +3760,15 @@ const focus = plugin__default.withOptions(
|
|
3759
3760
|
return {
|
3760
3761
|
theme: {
|
3761
3762
|
shurikenUi: {
|
3762
|
-
|
3763
|
+
[key$C]: defaultConfig$B
|
3763
3764
|
}
|
3764
3765
|
}
|
3765
3766
|
};
|
3766
3767
|
}
|
3767
3768
|
);
|
3768
3769
|
|
3769
|
-
const
|
3770
|
+
const key$B = "fullscreenDropfile";
|
3771
|
+
const defaultConfig$A = {
|
3770
3772
|
border: "primary-500",
|
3771
3773
|
height: "[230px]",
|
3772
3774
|
width: "[500px]",
|
@@ -3776,6 +3778,7 @@ const defaultFullscreenDropfileConfig = {
|
|
3776
3778
|
},
|
3777
3779
|
labelTextSize: "base"
|
3778
3780
|
};
|
3781
|
+
|
3779
3782
|
const fullscreenDropfile = plugin__default.withOptions(
|
3780
3783
|
function(options) {
|
3781
3784
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -3784,7 +3787,7 @@ const fullscreenDropfile = plugin__default.withOptions(
|
|
3784
3787
|
}
|
3785
3788
|
return function({ addComponents, theme }) {
|
3786
3789
|
const config = theme(
|
3787
|
-
|
3790
|
+
`shurikenUi.${key$B}`
|
3788
3791
|
);
|
3789
3792
|
addComponents({
|
3790
3793
|
[`.${prefix}fullscreen-dropfile`]: {
|
@@ -3814,14 +3817,15 @@ const fullscreenDropfile = plugin__default.withOptions(
|
|
3814
3817
|
return {
|
3815
3818
|
theme: {
|
3816
3819
|
shurikenUi: {
|
3817
|
-
|
3820
|
+
[key$B]: defaultConfig$A
|
3818
3821
|
}
|
3819
3822
|
}
|
3820
3823
|
};
|
3821
3824
|
}
|
3822
3825
|
);
|
3823
3826
|
|
3824
|
-
const
|
3827
|
+
const key$A = "heading";
|
3828
|
+
const defaultConfig$z = {
|
3825
3829
|
textXS: "xs",
|
3826
3830
|
textSM: "sm",
|
3827
3831
|
textMD: "base",
|
@@ -3847,6 +3851,7 @@ const defaultHeadingConfig = {
|
|
3847
3851
|
textLeadSnug: "snug",
|
3848
3852
|
textLeadLoose: "loose"
|
3849
3853
|
};
|
3854
|
+
|
3850
3855
|
const heading = plugin__default.withOptions(
|
3851
3856
|
function(options) {
|
3852
3857
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -3854,9 +3859,7 @@ const heading = plugin__default.withOptions(
|
|
3854
3859
|
prefix = `${prefix}-`;
|
3855
3860
|
}
|
3856
3861
|
return function({ addComponents, theme }) {
|
3857
|
-
const config = theme(
|
3858
|
-
"shurikenUi.heading"
|
3859
|
-
);
|
3862
|
+
const config = theme(`shurikenUi.${key$A}`);
|
3860
3863
|
addComponents({
|
3861
3864
|
[`.${prefix}heading`]: {
|
3862
3865
|
[`@apply font-sans`]: {},
|
@@ -3940,14 +3943,15 @@ const heading = plugin__default.withOptions(
|
|
3940
3943
|
return {
|
3941
3944
|
theme: {
|
3942
3945
|
shurikenUi: {
|
3943
|
-
|
3946
|
+
[key$A]: defaultConfig$z
|
3944
3947
|
}
|
3945
3948
|
}
|
3946
3949
|
};
|
3947
3950
|
}
|
3948
3951
|
);
|
3949
3952
|
|
3950
|
-
const
|
3953
|
+
const key$z = "iconBox";
|
3954
|
+
const defaultConfig$y = {
|
3951
3955
|
boxXS: {
|
3952
3956
|
size: "8",
|
3953
3957
|
rounded: {
|
@@ -4084,6 +4088,7 @@ const defaultIconBoxConfig = {
|
|
4084
4088
|
borderColor: "current"
|
4085
4089
|
}
|
4086
4090
|
};
|
4091
|
+
|
4087
4092
|
const iconBox = plugin__default.withOptions(
|
4088
4093
|
function(options) {
|
4089
4094
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -4091,9 +4096,7 @@ const iconBox = plugin__default.withOptions(
|
|
4091
4096
|
prefix = `${prefix}-`;
|
4092
4097
|
}
|
4093
4098
|
return function({ addComponents, theme }) {
|
4094
|
-
const config = theme(
|
4095
|
-
"shurikenUi.iconBox"
|
4096
|
-
);
|
4099
|
+
const config = theme(`shurikenUi.${key$z}`);
|
4097
4100
|
addComponents({
|
4098
4101
|
[`.${prefix}icon-box`]: {
|
4099
4102
|
[`@apply relative inline-flex shrink-0 items-center justify-center`]: {},
|
@@ -4231,14 +4234,15 @@ const iconBox = plugin__default.withOptions(
|
|
4231
4234
|
return {
|
4232
4235
|
theme: {
|
4233
4236
|
shurikenUi: {
|
4234
|
-
|
4237
|
+
[key$z]: defaultConfig$y
|
4235
4238
|
}
|
4236
4239
|
}
|
4237
4240
|
};
|
4238
4241
|
}
|
4239
4242
|
);
|
4240
4243
|
|
4241
|
-
const
|
4244
|
+
const key$y = "inputFileRegular";
|
4245
|
+
const defaultConfig$x = {
|
4242
4246
|
inner: {
|
4243
4247
|
size: "full",
|
4244
4248
|
font: "sans",
|
@@ -4326,6 +4330,7 @@ const defaultInputFileRegularConfig = {
|
|
4326
4330
|
hover: "primary-500",
|
4327
4331
|
focusWhitin: "primary-500"
|
4328
4332
|
};
|
4333
|
+
|
4329
4334
|
const inputFileRegular = plugin__default.withOptions(
|
4330
4335
|
function(options) {
|
4331
4336
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -4333,9 +4338,7 @@ const inputFileRegular = plugin__default.withOptions(
|
|
4333
4338
|
prefix = `${prefix}-`;
|
4334
4339
|
}
|
4335
4340
|
return function({ addComponents, theme }) {
|
4336
|
-
const config = theme(
|
4337
|
-
"shurikenUi.inputFileRegular"
|
4338
|
-
);
|
4341
|
+
const config = theme(`shurikenUi.${key$y}`);
|
4339
4342
|
addComponents({
|
4340
4343
|
[`.${prefix}input-file-regular`]: {
|
4341
4344
|
[`@apply relative w-full`]: {},
|
@@ -4346,7 +4349,7 @@ const inputFileRegular = plugin__default.withOptions(
|
|
4346
4349
|
[`@apply relative`]: {}
|
4347
4350
|
},
|
4348
4351
|
[`.${prefix}input-file-inner`]: {
|
4349
|
-
[`@apply relative ${prefix}focus flex w-${config.inner.size} cursor-pointer items-center overflow-hidden font-${config.inner.font} transition-colors duration-${config.inner.duration}
|
4352
|
+
[`@apply relative ${prefix}focus flex w-${config.inner.size} cursor-pointer items-center overflow-hidden font-${config.inner.font} transition-colors duration-${config.inner.duration} disabled:cursor-not-allowed disabled:opacity-75`]: {}
|
4350
4353
|
},
|
4351
4354
|
[`.${prefix}input-file-addon`]: {
|
4352
4355
|
[`@apply pointer-events-none flex shrink-0 items-center justify-center gap-1 transition-colors duration-100`]: {}
|
@@ -4521,14 +4524,15 @@ const inputFileRegular = plugin__default.withOptions(
|
|
4521
4524
|
return {
|
4522
4525
|
theme: {
|
4523
4526
|
shurikenUi: {
|
4524
|
-
|
4527
|
+
[key$y]: defaultConfig$x
|
4525
4528
|
}
|
4526
4529
|
}
|
4527
4530
|
};
|
4528
4531
|
}
|
4529
4532
|
);
|
4530
4533
|
|
4531
|
-
const
|
4534
|
+
const key$x = "inputFile";
|
4535
|
+
const defaultConfig$w = {
|
4532
4536
|
drop: {
|
4533
4537
|
size: "64",
|
4534
4538
|
border: "muted-200",
|
@@ -4609,6 +4613,7 @@ const defaultInputFileConfig = {
|
|
4609
4613
|
full: "full"
|
4610
4614
|
}
|
4611
4615
|
};
|
4616
|
+
|
4612
4617
|
const inputFile = plugin__default.withOptions(
|
4613
4618
|
function(options) {
|
4614
4619
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -4616,12 +4621,10 @@ const inputFile = plugin__default.withOptions(
|
|
4616
4621
|
prefix = `${prefix}-`;
|
4617
4622
|
}
|
4618
4623
|
return function({ addComponents, theme }) {
|
4619
|
-
const config = theme(
|
4620
|
-
"shurikenUi.inputFile"
|
4621
|
-
);
|
4624
|
+
const config = theme(`shurikenUi.${key$x}`);
|
4622
4625
|
addComponents({
|
4623
4626
|
[`.${prefix}input-file`]: {
|
4624
|
-
[`@apply relative block`]: {},
|
4627
|
+
[`@apply relative block ${prefix}focus`]: {},
|
4625
4628
|
[`&.${prefix}input-file-drop`]: {
|
4626
4629
|
[`@apply relative h-${config.drop.size} border-dashed border-2 border-${config.drop.border} dark:border-${config.drop.borderDark} hover:border-${config.drop.borderHover} dark:hover:border-${config.drop.borderHoverDark} bg-${config.drop.bg} dark:bg-${config.drop.bgDark} flex justify-center items-center transition-colors duration-${config.drop.duration}`]: {},
|
4627
4630
|
[`.${prefix}drop-area-inner`]: {
|
@@ -4663,7 +4666,7 @@ const inputFile = plugin__default.withOptions(
|
|
4663
4666
|
[`@apply font-${config.combo.label.font} sr-only text-${config.combo.label.text}`]: {}
|
4664
4667
|
},
|
4665
4668
|
[`.${prefix}combo-input`]: {
|
4666
|
-
[`@apply block w-${config.combo.input.size} text-${config.combo.input.textSize} text-${config.combo.input.text} dark:text-${config.combo.input.textDark} file:me-4 file:py-2 file:px-4 file:border-0 file:cursor-pointer file:text-${config.combo.input.textFileSize} file:transition-colors file:bg-${config.combo.input.bgFile} file:text-${config.combo.input.textFile} hover:file:bg-${config.combo.input.bgFileHover}`]: {}
|
4669
|
+
[`@apply outline-none block w-${config.combo.input.size} text-${config.combo.input.textSize} text-${config.combo.input.text} dark:text-${config.combo.input.textDark} file:me-4 file:py-2 file:px-4 file:border-0 file:cursor-pointer file:text-${config.combo.input.textFileSize} file:transition-colors file:bg-${config.combo.input.bgFile} file:text-${config.combo.input.textFile} hover:file:bg-${config.combo.input.bgFileHover}`]: {}
|
4667
4670
|
}
|
4668
4671
|
},
|
4669
4672
|
[`&.${prefix}input-file-rounded`]: {
|
@@ -4718,14 +4721,15 @@ const inputFile = plugin__default.withOptions(
|
|
4718
4721
|
return {
|
4719
4722
|
theme: {
|
4720
4723
|
shurikenUi: {
|
4721
|
-
|
4724
|
+
[key$x]: defaultConfig$w
|
4722
4725
|
}
|
4723
4726
|
}
|
4724
4727
|
};
|
4725
4728
|
}
|
4726
4729
|
);
|
4727
4730
|
|
4728
|
-
const
|
4731
|
+
const key$w = "input";
|
4732
|
+
const defaultConfig$v = {
|
4729
4733
|
label: {
|
4730
4734
|
float: {
|
4731
4735
|
text: "primary-500",
|
@@ -4922,6 +4926,7 @@ const defaultInputConfig = {
|
|
4922
4926
|
}
|
4923
4927
|
}
|
4924
4928
|
};
|
4929
|
+
|
4925
4930
|
const input = plugin__default.withOptions(
|
4926
4931
|
function(options) {
|
4927
4932
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -4929,9 +4934,7 @@ const input = plugin__default.withOptions(
|
|
4929
4934
|
prefix = `${prefix}-`;
|
4930
4935
|
}
|
4931
4936
|
return function({ addComponents, theme }) {
|
4932
|
-
const config = theme(
|
4933
|
-
"shurikenUi.input"
|
4934
|
-
);
|
4937
|
+
const config = theme(`shurikenUi.${key$w}`);
|
4935
4938
|
addComponents({
|
4936
4939
|
[`.${prefix}input-wrapper`]: {
|
4937
4940
|
[`@apply relative`]: {},
|
@@ -5215,212 +5218,768 @@ const input = plugin__default.withOptions(
|
|
5215
5218
|
return {
|
5216
5219
|
theme: {
|
5217
5220
|
shurikenUi: {
|
5218
|
-
|
5219
|
-
}
|
5220
|
-
}
|
5221
|
-
};
|
5222
|
-
}
|
5223
|
-
);
|
5224
|
-
|
5225
|
-
const defaultLabelConfig = {
|
5226
|
-
font: "sans",
|
5227
|
-
text: "muted-400",
|
5228
|
-
textDark: "muted-400/80"
|
5229
|
-
};
|
5230
|
-
const label = plugin__default.withOptions(
|
5231
|
-
function(options) {
|
5232
|
-
let { prefix } = defu.defu(options, defaultPluginOptions);
|
5233
|
-
if (prefix) {
|
5234
|
-
prefix = `${prefix}-`;
|
5235
|
-
}
|
5236
|
-
return function({ addComponents, theme }) {
|
5237
|
-
const config = theme(
|
5238
|
-
"shurikenUi.label"
|
5239
|
-
);
|
5240
|
-
addComponents({
|
5241
|
-
[`.${prefix}label`]: {
|
5242
|
-
[`@apply inline-block font-${config.font} leading-none text-${config.text} dark:text-${config.textDark}`]: {}
|
5243
|
-
}
|
5244
|
-
});
|
5245
|
-
};
|
5246
|
-
},
|
5247
|
-
function() {
|
5248
|
-
return {
|
5249
|
-
theme: {
|
5250
|
-
shurikenUi: {
|
5251
|
-
label: defaultLabelConfig
|
5252
|
-
}
|
5253
|
-
}
|
5254
|
-
};
|
5255
|
-
}
|
5256
|
-
);
|
5257
|
-
|
5258
|
-
const defaultLinkConfig = {
|
5259
|
-
font: "sans",
|
5260
|
-
textHover: "primary-500",
|
5261
|
-
textHoverDark: "primary-400",
|
5262
|
-
textFocus: "primary-500",
|
5263
|
-
textFocusDark: "primary-400"
|
5264
|
-
};
|
5265
|
-
const link = plugin__default.withOptions(
|
5266
|
-
function(options) {
|
5267
|
-
let { prefix } = defu.defu(options, defaultPluginOptions);
|
5268
|
-
if (prefix) {
|
5269
|
-
prefix = `${prefix}-`;
|
5270
|
-
}
|
5271
|
-
return function({ addComponents, theme }) {
|
5272
|
-
const config = theme("shurikenUi.link");
|
5273
|
-
addComponents({
|
5274
|
-
[`.${prefix}link`]: {
|
5275
|
-
[`@apply font-${config.font} hover:text-${config.textHover} dark:hover:text-${config.textHoverDark} underline-offset-4 hover:underline focus:text-${config.textFocus} dark:focus:text-${config.textFocusDark} focus:underline`]: {}
|
5276
|
-
}
|
5277
|
-
});
|
5278
|
-
};
|
5279
|
-
},
|
5280
|
-
function() {
|
5281
|
-
return {
|
5282
|
-
theme: {
|
5283
|
-
shurikenUi: {
|
5284
|
-
link: defaultLinkConfig
|
5285
|
-
}
|
5286
|
-
}
|
5287
|
-
};
|
5288
|
-
}
|
5289
|
-
);
|
5290
|
-
|
5291
|
-
const defaultListConfig = {
|
5292
|
-
ul: "disc",
|
5293
|
-
ol: "decimal",
|
5294
|
-
base: {
|
5295
|
-
textMarker: "muted-500",
|
5296
|
-
textMarkerDark: "muted-400",
|
5297
|
-
text: "slate-700",
|
5298
|
-
textDark: "slate-300",
|
5299
|
-
font: "sans"
|
5300
|
-
},
|
5301
|
-
media: {
|
5302
|
-
textMarker: "slate-500",
|
5303
|
-
textMarkerDark: "slate-400"
|
5304
|
-
}
|
5305
|
-
};
|
5306
|
-
const list = plugin__default.withOptions(
|
5307
|
-
function(options) {
|
5308
|
-
let { prefix } = defu.defu(options, defaultPluginOptions);
|
5309
|
-
if (prefix) {
|
5310
|
-
prefix = `${prefix}-`;
|
5311
|
-
}
|
5312
|
-
return function({ addComponents, theme }) {
|
5313
|
-
const config = theme("shurikenUi.list");
|
5314
|
-
addComponents({
|
5315
|
-
[`.${prefix}list`]: {
|
5316
|
-
[`&.${prefix}list-ul`]: {
|
5317
|
-
[`@apply list-${config.ul}`]: {}
|
5318
|
-
},
|
5319
|
-
[`&.${prefix}list-ol`]: {
|
5320
|
-
[`@apply list-${config.ol}`]: {}
|
5321
|
-
},
|
5322
|
-
[`&.${prefix}list-base`]: {
|
5323
|
-
[`@apply space-y-1 marker:text-${config.base.textMarker} dark:marker:text-${config.base.textMarkerDark} font-${config.base.font} text-${config.base.text} dark:text-${config.base.textDark}`]: {}
|
5324
|
-
},
|
5325
|
-
[`&.${prefix}list-media`]: {
|
5326
|
-
[`@apply space-y-4 marker:text-${config.media.textMarker} dark:marker:text-${config.media.textMarkerDark}`]: {},
|
5327
|
-
[`.${prefix}list-item`]: {
|
5328
|
-
[`@apply flex gap-2`]: {}
|
5329
|
-
}
|
5330
|
-
}
|
5331
|
-
}
|
5332
|
-
});
|
5333
|
-
};
|
5334
|
-
},
|
5335
|
-
function() {
|
5336
|
-
return {
|
5337
|
-
theme: {
|
5338
|
-
shurikenUi: {
|
5339
|
-
list: defaultListConfig
|
5221
|
+
[key$w]: defaultConfig$v
|
5340
5222
|
}
|
5341
5223
|
}
|
5342
5224
|
};
|
5343
5225
|
}
|
5344
5226
|
);
|
5345
5227
|
|
5346
|
-
const
|
5347
|
-
|
5348
|
-
|
5349
|
-
|
5350
|
-
|
5351
|
-
|
5352
|
-
|
5353
|
-
size: "full",
|
5354
|
-
text: "sm",
|
5355
|
-
textPosition: "start",
|
5356
|
-
font: "sans",
|
5357
|
-
iconBox: {
|
5358
|
-
space: "2",
|
5359
|
-
size: "6",
|
5360
|
-
innerSize: "4"
|
5361
|
-
},
|
5362
|
-
placeholder: {
|
5363
|
-
text: "muted-300",
|
5364
|
-
textDark: "muted-500",
|
5365
|
-
textPosition: "left"
|
5228
|
+
const key$v = "inputNumber";
|
5229
|
+
const defaultConfig$u = {
|
5230
|
+
label: {
|
5231
|
+
float: {
|
5232
|
+
text: "primary-500",
|
5233
|
+
duration: "300",
|
5234
|
+
size: "5"
|
5366
5235
|
}
|
5367
5236
|
},
|
5368
5237
|
icon: {
|
5369
5238
|
text: "muted-400",
|
5370
5239
|
duration: "300"
|
5371
5240
|
},
|
5372
|
-
chevron: {
|
5373
|
-
inner: {
|
5374
|
-
size: "4",
|
5375
|
-
text: "muted-400",
|
5376
|
-
duration: "300"
|
5377
|
-
}
|
5378
|
-
},
|
5379
|
-
options: {
|
5380
|
-
ringFocus: "primary-500/50",
|
5381
|
-
space: "2",
|
5382
|
-
text: "base",
|
5383
|
-
shadowSize: "lg",
|
5384
|
-
shadow: "muted-500/10",
|
5385
|
-
shadowDark: "muted-800/10"
|
5386
|
-
},
|
5387
|
-
option: {
|
5388
|
-
duration: "300",
|
5389
|
-
iconBox: {
|
5390
|
-
text: "muted-200",
|
5391
|
-
textDark: "muted-400",
|
5392
|
-
innerSize: "5"
|
5393
|
-
},
|
5394
|
-
inner: {
|
5395
|
-
heading: {
|
5396
|
-
text: "muted-800",
|
5397
|
-
textDark: "white"
|
5398
|
-
},
|
5399
|
-
text: "muted-400"
|
5400
|
-
},
|
5401
|
-
icon: {
|
5402
|
-
text: "primary-600"
|
5403
|
-
},
|
5404
|
-
iconInner: {
|
5405
|
-
size: "4"
|
5406
|
-
},
|
5407
|
-
activeOrHover: {
|
5408
|
-
text: "primary-600",
|
5409
|
-
textDark: "primary-400",
|
5410
|
-
bg: "primary-500/10"
|
5411
|
-
}
|
5412
|
-
},
|
5413
5241
|
errorText: {
|
5414
5242
|
text: "danger-600",
|
5415
5243
|
textSize: "[0.65rem]",
|
5416
5244
|
font: "sans",
|
5417
5245
|
fontWeight: "medium"
|
5418
5246
|
},
|
5419
|
-
|
5420
|
-
|
5421
|
-
|
5422
|
-
|
5423
|
-
|
5247
|
+
input: {
|
5248
|
+
focusSize: "full",
|
5249
|
+
font: "sans",
|
5250
|
+
duration: "300",
|
5251
|
+
focusVisible: {
|
5252
|
+
labelFloat: {
|
5253
|
+
text: "primary-500",
|
5254
|
+
textDark: "primary-500"
|
5255
|
+
},
|
5256
|
+
icon: {
|
5257
|
+
text: "primary-500"
|
5258
|
+
}
|
5259
|
+
},
|
5260
|
+
action: {
|
5261
|
+
text: "muted-400",
|
5262
|
+
duration: "300"
|
5263
|
+
},
|
5264
|
+
rounded: {
|
5265
|
+
default: "md",
|
5266
|
+
smooth: "lg",
|
5267
|
+
curved: "xl",
|
5268
|
+
full: "full"
|
5269
|
+
},
|
5270
|
+
sm: {
|
5271
|
+
label: {
|
5272
|
+
text: "xs"
|
5273
|
+
},
|
5274
|
+
iconOrAction: {
|
5275
|
+
size: "8"
|
5276
|
+
},
|
5277
|
+
iconOrAcionInner: {
|
5278
|
+
size: "4"
|
5279
|
+
},
|
5280
|
+
placeload: {
|
5281
|
+
size: "8"
|
5282
|
+
}
|
5283
|
+
},
|
5284
|
+
md: {
|
5285
|
+
label: {
|
5286
|
+
text: "[0.825rem]"
|
5287
|
+
},
|
5288
|
+
iconOrAction: {
|
5289
|
+
size: "10"
|
5290
|
+
},
|
5291
|
+
iconOrAcionInner: {
|
5292
|
+
size: "[1.15rem]"
|
5293
|
+
},
|
5294
|
+
placeload: {
|
5295
|
+
size: "10"
|
5296
|
+
}
|
5297
|
+
},
|
5298
|
+
lg: {
|
5299
|
+
label: {
|
5300
|
+
text: "sm"
|
5301
|
+
},
|
5302
|
+
iconOrAction: {
|
5303
|
+
size: "12"
|
5304
|
+
},
|
5305
|
+
iconOrAcionInner: {
|
5306
|
+
size: "5"
|
5307
|
+
},
|
5308
|
+
placeload: {
|
5309
|
+
size: "12"
|
5310
|
+
}
|
5311
|
+
},
|
5312
|
+
default: {
|
5313
|
+
bg: "white",
|
5314
|
+
bgDark: "muted-900",
|
5315
|
+
border: "muted-300",
|
5316
|
+
borderDark: "muted-700",
|
5317
|
+
text: "muted-600",
|
5318
|
+
textDark: "muted-200",
|
5319
|
+
textPlaceholder: "muted-300",
|
5320
|
+
textPlaceholderDark: "muted-500"
|
5321
|
+
},
|
5322
|
+
defaultContrast: {
|
5323
|
+
bg: "white",
|
5324
|
+
bgDark: "muted-950",
|
5325
|
+
border: "muted-300",
|
5326
|
+
borderDark: "muted-800",
|
5327
|
+
text: "muted-600",
|
5328
|
+
textDark: "muted-200",
|
5329
|
+
textPlaceholder: "muted-300",
|
5330
|
+
textPlaceholderDark: "muted-600"
|
5331
|
+
},
|
5332
|
+
muted: {
|
5333
|
+
bg: "muted-100",
|
5334
|
+
bgDark: "muted-900",
|
5335
|
+
border: "muted-200",
|
5336
|
+
borderDark: "muted-700",
|
5337
|
+
text: "muted-600",
|
5338
|
+
textDark: "muted-200",
|
5339
|
+
textPlaceholder: "muted-300",
|
5340
|
+
textPlaceholderDark: "muted-500"
|
5341
|
+
},
|
5342
|
+
mutedContrast: {
|
5343
|
+
bg: "muted-100",
|
5344
|
+
bgDark: "muted-950",
|
5345
|
+
border: "muted-100",
|
5346
|
+
borderDark: "muted-800",
|
5347
|
+
text: "muted-600",
|
5348
|
+
textDark: "muted-200",
|
5349
|
+
textPlaceholder: "muted-300",
|
5350
|
+
textPlaceholderDark: "muted-600"
|
5351
|
+
},
|
5352
|
+
notLoading: {
|
5353
|
+
text: "muted-300",
|
5354
|
+
textDark: "muted-600"
|
5355
|
+
},
|
5356
|
+
error: {
|
5357
|
+
border: "danger-500",
|
5358
|
+
borderDark: "danger-500",
|
5359
|
+
icon: {
|
5360
|
+
text: "danger-500"
|
5361
|
+
}
|
5362
|
+
},
|
5363
|
+
hasNotIcon: {
|
5364
|
+
text: {
|
5365
|
+
sm: "xs",
|
5366
|
+
md: "sm",
|
5367
|
+
lg: "sm"
|
5368
|
+
},
|
5369
|
+
labelFloat: {
|
5370
|
+
sm: "xs",
|
5371
|
+
md: {
|
5372
|
+
text: "xs",
|
5373
|
+
focusVisible: {
|
5374
|
+
text: "xs"
|
5375
|
+
},
|
5376
|
+
placeholderShown: {
|
5377
|
+
text: "[0.825rem]"
|
5378
|
+
}
|
5379
|
+
},
|
5380
|
+
lg: {
|
5381
|
+
text: "xs",
|
5382
|
+
focusVisible: {
|
5383
|
+
text: "xs"
|
5384
|
+
},
|
5385
|
+
placeholderShown: {
|
5386
|
+
text: "[0.825rem]"
|
5387
|
+
}
|
5388
|
+
}
|
5389
|
+
}
|
5390
|
+
},
|
5391
|
+
hasIcon: {
|
5392
|
+
text: {
|
5393
|
+
sm: "xs",
|
5394
|
+
md: "sm",
|
5395
|
+
lg: "base"
|
5396
|
+
},
|
5397
|
+
labelFloat: {
|
5398
|
+
sm: "xs",
|
5399
|
+
md: {
|
5400
|
+
text: "xs",
|
5401
|
+
focusVisible: {
|
5402
|
+
text: "xs"
|
5403
|
+
},
|
5404
|
+
placeholderShown: {
|
5405
|
+
text: "[0.825rem]"
|
5406
|
+
}
|
5407
|
+
},
|
5408
|
+
lg: {
|
5409
|
+
text: "xs",
|
5410
|
+
focusVisible: {
|
5411
|
+
text: "xs"
|
5412
|
+
},
|
5413
|
+
placeholderShown: {
|
5414
|
+
text: "[0.825rem]"
|
5415
|
+
}
|
5416
|
+
}
|
5417
|
+
}
|
5418
|
+
},
|
5419
|
+
hasAction: {
|
5420
|
+
spaceSM: "8",
|
5421
|
+
spaceMD: "10",
|
5422
|
+
spaceLG: "12"
|
5423
|
+
}
|
5424
|
+
}
|
5425
|
+
};
|
5426
|
+
|
5427
|
+
const inputNumber = plugin__default.withOptions(
|
5428
|
+
function(options) {
|
5429
|
+
let { prefix } = defu.defu(options, defaultPluginOptions);
|
5430
|
+
if (prefix) {
|
5431
|
+
prefix = `${prefix}-`;
|
5432
|
+
}
|
5433
|
+
return function({ addComponents, theme }) {
|
5434
|
+
const config = theme(`shurikenUi.${key$v}`);
|
5435
|
+
addComponents({
|
5436
|
+
[`.${prefix}input-number-wrapper`]: {
|
5437
|
+
[`@apply relative`]: {},
|
5438
|
+
[`.${prefix}input-number-label, .${prefix}label-float`]: {
|
5439
|
+
[`@apply ${prefix}label`]: {}
|
5440
|
+
},
|
5441
|
+
[`.${prefix}label-float`]: {
|
5442
|
+
[`@apply text-${config.label.float.text} pointer-events-none absolute inline-flex h-${config.label.float.size} select-none items-center leading-none transition-all duration-${config.label.float.duration}`]: {}
|
5443
|
+
},
|
5444
|
+
[`.${prefix}input-number-outer`]: {
|
5445
|
+
[`@apply ${prefix}focus relative`]: {}
|
5446
|
+
},
|
5447
|
+
[`.${prefix}input-number-icon`]: {
|
5448
|
+
[`@apply text-${config.icon.text} absolute start-0 top-0 z-10 flex items-center justify-center transition-colors duration-${config.icon.duration}`]: {}
|
5449
|
+
},
|
5450
|
+
[`.${prefix}input-number-buttons`]: {
|
5451
|
+
[`@apply absolute top-1 end-1 flex`]: {}
|
5452
|
+
},
|
5453
|
+
[`.${prefix}input-number-buttons button`]: {
|
5454
|
+
[`@apply outline-none flex items-center justify-center`]: {},
|
5455
|
+
[`@apply border border-muted-200 dark:border-muted-800 last:border-s-0`]: {},
|
5456
|
+
[`@apply text-muted-400 hover:text-muted-600 dark:hover:text-muted-100`]: {},
|
5457
|
+
[`@apply focus:text-muted-600 dark:focus:text-muted-100`]: {},
|
5458
|
+
[`@apply transition-colors duration-300`]: {}
|
5459
|
+
},
|
5460
|
+
[`.${prefix}input-number-buttons svg`]: {
|
5461
|
+
[`@apply h-4 w-4`]: {}
|
5462
|
+
},
|
5463
|
+
[`.${prefix}input-number-error-text`]: {
|
5464
|
+
[`@apply text-${config.errorText.text} mt-1 block font-${config.errorText.font} text-${config.errorText.textSize} font-${config.errorText.fontWeight} leading-none`]: {}
|
5465
|
+
},
|
5466
|
+
[`.${prefix}input-number`]: {
|
5467
|
+
[`@apply outline-none w-${config.input.focusSize} font-${config.input.font} transition-all duration-${config.input.duration} disabled:cursor-not-allowed disabled:opacity-75`]: {},
|
5468
|
+
[`&:focus-visible ~ .${prefix}label-float`]: {
|
5469
|
+
[`@apply !text-${config.input.focusVisible.labelFloat.text} dark:!text-${config.input.focusVisible.labelFloat.textDark}`]: {}
|
5470
|
+
},
|
5471
|
+
[`&:focus-visible ~ .${prefix}input-number-icon`]: {
|
5472
|
+
[`@apply !text-${config.input.focusVisible.icon.text}`]: {}
|
5473
|
+
},
|
5474
|
+
[`&:disabled ~ .${prefix}input-number-icon`]: {
|
5475
|
+
[`@apply cursor-not-allowed opacity-75`]: {}
|
5476
|
+
}
|
5477
|
+
},
|
5478
|
+
[`.${prefix}input-number-placeload`]: {
|
5479
|
+
[`@apply absolute start-0 top-0 flex w-full items-center px-4`]: {},
|
5480
|
+
[`.${prefix}placeload`]: {
|
5481
|
+
[`@apply h-3 w-full max-w-[50%] rounded`]: {}
|
5482
|
+
}
|
5483
|
+
},
|
5484
|
+
[`.${prefix}input-number-action`]: {
|
5485
|
+
[`@apply text-${config.input.action.text} absolute end-0 top-0 flex items-center justify-center transition-colors duration-${config.input.action.duration}`]: {}
|
5486
|
+
},
|
5487
|
+
[`&.${prefix}input-number-focus`]: {
|
5488
|
+
[`.${prefix}input-number`]: {
|
5489
|
+
[`@apply focus:border-primary-500 dark:focus:border-primary-500`]: {}
|
5490
|
+
}
|
5491
|
+
},
|
5492
|
+
[`&.${prefix}input-number-rounded`]: {
|
5493
|
+
[`.${prefix}input-number, .${prefix}input-number-outer`]: {
|
5494
|
+
[`@apply rounded-${config.input.rounded.default}`]: {}
|
5495
|
+
},
|
5496
|
+
[`.${prefix}input-number-buttons button`]: {
|
5497
|
+
[`@apply first:rounded-s-${config.input.rounded.default}`]: {},
|
5498
|
+
[`@apply last:rounded-e-${config.input.rounded.default}`]: {}
|
5499
|
+
}
|
5500
|
+
},
|
5501
|
+
[`&.${prefix}input-number-smooth`]: {
|
5502
|
+
[`.${prefix}input-number, .${prefix}input-number-outer`]: {
|
5503
|
+
[`@apply rounded-${config.input.rounded.smooth}`]: {}
|
5504
|
+
},
|
5505
|
+
[`.${prefix}input-number-buttons button`]: {
|
5506
|
+
[`@apply first:rounded-s-${config.input.rounded.smooth}`]: {},
|
5507
|
+
[`@apply last:rounded-e-${config.input.rounded.smooth}`]: {}
|
5508
|
+
}
|
5509
|
+
},
|
5510
|
+
[`&.${prefix}input-number-curved`]: {
|
5511
|
+
[`.${prefix}input-number, .${prefix}input-number-outer`]: {
|
5512
|
+
[`@apply rounded-${config.input.rounded.curved}`]: {}
|
5513
|
+
},
|
5514
|
+
[`.${prefix}input-number-buttons button`]: {
|
5515
|
+
[`@apply first:rounded-s-${config.input.rounded.curved}`]: {},
|
5516
|
+
[`@apply last:rounded-e-${config.input.rounded.curved}`]: {}
|
5517
|
+
}
|
5518
|
+
},
|
5519
|
+
[`&.${prefix}input-number-full`]: {
|
5520
|
+
[`.${prefix}input-number, .${prefix}input-number-outer`]: {
|
5521
|
+
[`@apply rounded-${config.input.rounded.full}`]: {}
|
5522
|
+
},
|
5523
|
+
[`.${prefix}input-number-buttons button`]: {
|
5524
|
+
[`@apply first:rounded-s-${config.input.rounded.full}`]: {},
|
5525
|
+
[`@apply last:rounded-e-${config.input.rounded.full}`]: {}
|
5526
|
+
}
|
5527
|
+
},
|
5528
|
+
[`&.${prefix}input-number-sm`]: {
|
5529
|
+
[`.${prefix}input-number-label`]: {
|
5530
|
+
[`@apply pb-1 text-${config.input.sm.label.text}`]: {}
|
5531
|
+
},
|
5532
|
+
[`.${prefix}label-float`]: {
|
5533
|
+
[`@apply top-1.5`]: {}
|
5534
|
+
},
|
5535
|
+
[`.${prefix}input-number-icon, .${prefix}input-number-action`]: {
|
5536
|
+
[`@apply h-${config.input.sm.iconOrAction.size} w-${config.input.sm.iconOrAction.size}`]: {},
|
5537
|
+
[`.${prefix}input-number-icon-inner, .${prefix}input-number-action-inner`]: {
|
5538
|
+
[`@apply h-${config.input.sm.iconOrAcionInner.size} w-${config.input.sm.iconOrAcionInner.size}`]: {}
|
5539
|
+
}
|
5540
|
+
},
|
5541
|
+
[`.${prefix}input-number-placeload`]: {
|
5542
|
+
[`@apply h-${config.input.sm.placeload.size}`]: {}
|
5543
|
+
},
|
5544
|
+
[`.${prefix}input-number-buttons button`]: {
|
5545
|
+
[`@apply h-6 w-6`]: {}
|
5546
|
+
}
|
5547
|
+
},
|
5548
|
+
[`&.${prefix}input-number-md`]: {
|
5549
|
+
[`.${prefix}input-number-label`]: {
|
5550
|
+
[`@apply pb-1 text-${config.input.md.label.text}`]: {}
|
5551
|
+
},
|
5552
|
+
[`.${prefix}label-float`]: {
|
5553
|
+
[`@apply top-2.5`]: {}
|
5554
|
+
},
|
5555
|
+
[`.${prefix}input-number-icon, .${prefix}input-number-action`]: {
|
5556
|
+
[`@apply h-${config.input.md.iconOrAction.size} w-${config.input.md.iconOrAction.size}`]: {},
|
5557
|
+
[`.${prefix}input-number-icon-inner, .${prefix}input-number-action-inner`]: {
|
5558
|
+
[`@apply h-${config.input.md.iconOrAcionInner.size} w-${config.input.md.iconOrAcionInner.size}`]: {}
|
5559
|
+
}
|
5560
|
+
},
|
5561
|
+
[`.${prefix}input-number-placeload`]: {
|
5562
|
+
[`@apply h-${config.input.md.placeload.size}`]: {}
|
5563
|
+
},
|
5564
|
+
[`.${prefix}input-number-buttons button`]: {
|
5565
|
+
[`@apply h-8 w-8`]: {}
|
5566
|
+
}
|
5567
|
+
},
|
5568
|
+
[`&.${prefix}input-number-lg`]: {
|
5569
|
+
[`.${prefix}input-number-label`]: {
|
5570
|
+
[`@apply pb-1 text-${config.input.lg.label.text}`]: {}
|
5571
|
+
},
|
5572
|
+
[`.${prefix}label-float`]: {
|
5573
|
+
[`@apply top-3.5`]: {}
|
5574
|
+
},
|
5575
|
+
[`.${prefix}input-number-icon, .${prefix}input-number-action`]: {
|
5576
|
+
[`@apply h-${config.input.lg.iconOrAction.size} w-${config.input.lg.iconOrAction.size}`]: {},
|
5577
|
+
[`.${prefix}input-number-icon-inner, .${prefix}input-number-action-inner`]: {
|
5578
|
+
[`@apply h-${config.input.lg.iconOrAcionInner.size} w-${config.input.lg.iconOrAcionInner.size}`]: {}
|
5579
|
+
}
|
5580
|
+
},
|
5581
|
+
[`.${prefix}input-number-placeload`]: {
|
5582
|
+
[`@apply h-${config.input.lg.placeload.size}`]: {}
|
5583
|
+
},
|
5584
|
+
[`.${prefix}input-number-buttons button`]: {
|
5585
|
+
[`@apply h-10 w-10`]: {}
|
5586
|
+
}
|
5587
|
+
},
|
5588
|
+
[`&.${prefix}input-number-default`]: {
|
5589
|
+
[`.${prefix}input-number`]: {
|
5590
|
+
[`@apply border bg-${config.input.default.bg} border-${config.input.default.border} text-${config.input.default.text} placeholder:text-${config.input.default.textPlaceholder} dark:border-${config.input.default.borderDark} dark:bg-${config.input.default.bgDark} dark:text-${config.input.default.textDark} dark:placeholder:text-${config.input.default.textPlaceholderDark}`]: {}
|
5591
|
+
},
|
5592
|
+
[`.${prefix}input-number-buttons button`]: {
|
5593
|
+
[`@apply hover:bg-muted-100 dark:hover:bg-muted-800`]: {},
|
5594
|
+
[`@apply focus:bg-muted-100 dark:focus:bg-muted-800`]: {}
|
5595
|
+
}
|
5596
|
+
},
|
5597
|
+
[`&.${prefix}input-number-default-contrast`]: {
|
5598
|
+
[`.${prefix}input-number`]: {
|
5599
|
+
[`@apply border bg-${config.input.defaultContrast.bg} border-${config.input.defaultContrast.border} text-${config.input.defaultContrast.text} placeholder:text-${config.input.defaultContrast.textPlaceholder} dark:border-${config.input.defaultContrast.borderDark} dark:bg-${config.input.defaultContrast.bgDark} dark:text-${config.input.defaultContrast.textDark} dark:placeholder:text-${config.input.defaultContrast.textPlaceholderDark}`]: {}
|
5600
|
+
},
|
5601
|
+
[`.${prefix}input-number-buttons button`]: {
|
5602
|
+
[`@apply hover:bg-muted-100 dark:hover:bg-muted-900`]: {},
|
5603
|
+
[`@apply focus:bg-muted-100 dark:focus:bg-muted-900`]: {}
|
5604
|
+
}
|
5605
|
+
},
|
5606
|
+
[`&.${prefix}input-number-muted`]: {
|
5607
|
+
[`.${prefix}input-number`]: {
|
5608
|
+
[`@apply border bg-${config.input.muted.bg} border-${config.input.muted.border} text-${config.input.muted.text} placeholder:text-${config.input.muted.textPlaceholder} dark:border-${config.input.muted.borderDark} dark:bg-${config.input.muted.bgDark} dark:text-${config.input.muted.textDark} dark:placeholder:text-${config.input.muted.textPlaceholderDark}`]: {}
|
5609
|
+
},
|
5610
|
+
[`.${prefix}input-number-buttons button`]: {
|
5611
|
+
[`@apply hover:bg-white dark:hover:bg-muted-800`]: {},
|
5612
|
+
[`@apply focus:bg-white dark:focus:bg-muted-800`]: {}
|
5613
|
+
}
|
5614
|
+
},
|
5615
|
+
[`&.${prefix}input-number-muted-contrast`]: {
|
5616
|
+
[`.${prefix}input-number`]: {
|
5617
|
+
[`@apply border bg-${config.input.mutedContrast.bg} border-${config.input.mutedContrast.border} text-${config.input.mutedContrast.text} placeholder:text-${config.input.mutedContrast.textPlaceholder} dark:border-${config.input.mutedContrast.borderDark} dark:bg-${config.input.mutedContrast.bgDark} dark:text-${config.input.mutedContrast.textDark} dark:placeholder:text-${config.input.mutedContrast.textPlaceholderDark}`]: {}
|
5618
|
+
},
|
5619
|
+
[`.${prefix}input-number-buttons button`]: {
|
5620
|
+
[`@apply hover:bg-white dark:hover:bg-muted-900`]: {},
|
5621
|
+
[`@apply focus:bg-white dark:focus:bg-muted-900`]: {}
|
5622
|
+
}
|
5623
|
+
},
|
5624
|
+
[`&:not(.${prefix}input-number-loading)`]: {
|
5625
|
+
[`.${prefix}input-number:placeholder-shown ~ .${prefix}label-float`]: {
|
5626
|
+
[`@apply text-${config.input.notLoading.text} dark:text-${config.input.notLoading.textDark}`]: {}
|
5627
|
+
}
|
5628
|
+
},
|
5629
|
+
[`&.${prefix}input-number-loading`]: {
|
5630
|
+
[`.${prefix}input-number`]: {
|
5631
|
+
[`@apply !text-transparent placeholder:!text-transparent dark:placeholder:!text-transparent`]: {}
|
5632
|
+
},
|
5633
|
+
[`.${prefix}input-number:placeholder-shown ~ .${prefix}label-float`]: {
|
5634
|
+
[`@apply text-transparent`]: {}
|
5635
|
+
},
|
5636
|
+
[`.${prefix}input-number-icon`]: {
|
5637
|
+
[`@apply opacity-0`]: {}
|
5638
|
+
}
|
5639
|
+
},
|
5640
|
+
[`&.${prefix}input-number-label-float`]: {
|
5641
|
+
[`.${prefix}input-number`]: {
|
5642
|
+
[`@apply placeholder:text-transparent dark:placeholder:text-transparent`]: {}
|
5643
|
+
}
|
5644
|
+
},
|
5645
|
+
[`&.${prefix}input-number-error`]: {
|
5646
|
+
[`.${prefix}input-number`]: {
|
5647
|
+
[`@apply !border-${config.input.error.border} dark:!border-${config.input.error.borderDark}`]: {}
|
5648
|
+
},
|
5649
|
+
[`.${prefix}input-number-icon`]: {
|
5650
|
+
[`@apply !text-${config.input.error.icon.text}`]: {}
|
5651
|
+
}
|
5652
|
+
},
|
5653
|
+
[`&:not(.${prefix}has-icon).${prefix}input-number-sm`]: {
|
5654
|
+
[`.${prefix}input-number`]: {
|
5655
|
+
[`@apply h-8 py-1 text-${config.input.hasNotIcon.text.sm} leading-4 ps-2 pe-14`]: {}
|
5656
|
+
}
|
5657
|
+
},
|
5658
|
+
[`&.${prefix}has-icon.${prefix}input-number-sm`]: {
|
5659
|
+
[`.${prefix}input-number`]: {
|
5660
|
+
[`@apply h-8 py-1 text-${config.input.hasIcon.text.sm} leading-4 pe-14 ps-8`]: {}
|
5661
|
+
}
|
5662
|
+
},
|
5663
|
+
[`&:not(.${prefix}has-icon).${prefix}input-number-md`]: {
|
5664
|
+
[`.${prefix}input-number`]: {
|
5665
|
+
[`@apply h-10 py-2 text-${config.input.hasNotIcon.text.md} leading-5 ps-3 pe-20`]: {}
|
5666
|
+
}
|
5667
|
+
},
|
5668
|
+
[`&.${prefix}has-icon.${prefix}input-number-md`]: {
|
5669
|
+
[`.${prefix}input-number`]: {
|
5670
|
+
[`@apply h-10 py-2 text-${config.input.hasIcon.text.md} leading-5 pe-20 ps-10`]: {}
|
5671
|
+
}
|
5672
|
+
},
|
5673
|
+
[`&:not(.${prefix}has-icon).${prefix}input-number-lg`]: {
|
5674
|
+
[`.${prefix}input-number`]: {
|
5675
|
+
[`@apply h-12 py-2 text-${config.input.hasNotIcon.text.lg} leading-5 ps-4 pe-24`]: {}
|
5676
|
+
}
|
5677
|
+
},
|
5678
|
+
[`&.${prefix}has-icon.${prefix}input-number-lg`]: {
|
5679
|
+
[`.${prefix}input-number`]: {
|
5680
|
+
[`@apply h-12 py-2 text-${config.input.hasIcon.text.lg} leading-5 pe-24 ps-11`]: {}
|
5681
|
+
}
|
5682
|
+
},
|
5683
|
+
[`&.${prefix}has-action.${prefix}input-number-sm`]: {
|
5684
|
+
[`.${prefix}input-number`]: {
|
5685
|
+
[`@apply pe-${config.input.hasAction.spaceSM}`]: {}
|
5686
|
+
}
|
5687
|
+
},
|
5688
|
+
[`&.${prefix}has-action.${prefix}input-number-md`]: {
|
5689
|
+
[`.${prefix}input-number`]: {
|
5690
|
+
[`@apply pe-${config.input.hasAction.spaceMD}`]: {}
|
5691
|
+
}
|
5692
|
+
},
|
5693
|
+
[`&.${prefix}has-action.${prefix}input-number-lg`]: {
|
5694
|
+
[`.${prefix}input-number`]: {
|
5695
|
+
[`@apply pe-${config.input.hasAction.spaceLG}`]: {}
|
5696
|
+
}
|
5697
|
+
},
|
5698
|
+
[`&.${prefix}input-number-label-float:not(.${prefix}has-icon).${prefix}input-number-sm`]: {
|
5699
|
+
[`.${prefix}label-float`]: {
|
5700
|
+
[`@apply start-3 -ms-3 -mt-7 text-${config.input.hasNotIcon.labelFloat.sm}`]: {}
|
5701
|
+
},
|
5702
|
+
[`.${prefix}input-number:focus-visible ~ .${prefix}label-float`]: {
|
5703
|
+
[`@apply !-ms-3 !-mt-7`]: {}
|
5704
|
+
},
|
5705
|
+
[`.${prefix}input-number:placeholder-shown ~ .${prefix}label-float`]: {
|
5706
|
+
[`@apply ms-0 mt-0`]: {}
|
5707
|
+
}
|
5708
|
+
},
|
5709
|
+
[`&.${prefix}input-number-label-float.${prefix}has-icon.${prefix}input-number-sm`]: {
|
5710
|
+
[`.${prefix}label-float`]: {
|
5711
|
+
[`@apply start-8 -ms-8 -mt-7 text-${config.input.hasIcon.labelFloat.sm}`]: {}
|
5712
|
+
},
|
5713
|
+
[`.${prefix}input-number:focus-visible ~ .${prefix}label-float`]: {
|
5714
|
+
[`@apply !-ms-8 !-mt-7`]: {}
|
5715
|
+
},
|
5716
|
+
[`.${prefix}input-number:placeholder-shown ~ .${prefix}label-float`]: {
|
5717
|
+
[`@apply ms-0 mt-0`]: {}
|
5718
|
+
}
|
5719
|
+
},
|
5720
|
+
[`&.${prefix}input-number-label-float:not(.${prefix}has-icon).${prefix}input-number-md`]: {
|
5721
|
+
[`.${prefix}label-float`]: {
|
5722
|
+
[`@apply start-3 -ms-3 -mt-8 text-${config.input.hasNotIcon.labelFloat.md.text}`]: {}
|
5723
|
+
},
|
5724
|
+
[`.${prefix}input-number:focus-visible ~ .${prefix}label-float`]: {
|
5725
|
+
[`@apply !-ms-3 !-mt-8 !text-${config.input.hasNotIcon.labelFloat.md.focusVisible.text}`]: {}
|
5726
|
+
},
|
5727
|
+
[`.${prefix}input-number:placeholder-shown ~ .${prefix}label-float`]: {
|
5728
|
+
[`@apply ms-0 mt-0 text-${config.input.hasNotIcon.labelFloat.md.placeholderShown.text}`]: {}
|
5729
|
+
}
|
5730
|
+
},
|
5731
|
+
[`&.${prefix}input-number-label-float.${prefix}has-icon.${prefix}input-number-md`]: {
|
5732
|
+
[`.${prefix}label-float`]: {
|
5733
|
+
[`@apply start-10 -ms-10 -mt-8 text-${config.input.hasIcon.labelFloat.md.text}`]: {}
|
5734
|
+
},
|
5735
|
+
[`.${prefix}input-number:focus-visible ~ .${prefix}label-float`]: {
|
5736
|
+
[`@apply !-ms-10 !-mt-8 !text-${config.input.hasIcon.labelFloat.md.focusVisible.text}`]: {}
|
5737
|
+
},
|
5738
|
+
[`.${prefix}input-number:placeholder-shown ~ .${prefix}label-float`]: {
|
5739
|
+
[`@apply ms-0 mt-0 text-${config.input.hasIcon.labelFloat.md.placeholderShown.text}`]: {}
|
5740
|
+
}
|
5741
|
+
},
|
5742
|
+
[`&.${prefix}input-number-label-float:not(.${prefix}has-icon).${prefix}input-number-lg`]: {
|
5743
|
+
[`.${prefix}label-float`]: {
|
5744
|
+
[`@apply start-3 -ms-3 -mt-8 text-${config.input.hasNotIcon.labelFloat.lg.text}`]: {}
|
5745
|
+
},
|
5746
|
+
[`.${prefix}input-number:focus-visible ~ .${prefix}label-float`]: {
|
5747
|
+
[`@apply !-ms-3 !-mt-9 !text-${config.input.hasNotIcon.labelFloat.lg.focusVisible.text}`]: {}
|
5748
|
+
},
|
5749
|
+
[`.${prefix}input-number:placeholder-shown ~ .${prefix}label-float`]: {
|
5750
|
+
[`@apply ms-0 mt-0 text-${config.input.hasNotIcon.labelFloat.lg.placeholderShown.text}`]: {}
|
5751
|
+
}
|
5752
|
+
},
|
5753
|
+
[`&.${prefix}input-number-label-float.${prefix}has-icon.${prefix}input-number-lg`]: {
|
5754
|
+
[`.${prefix}label-float`]: {
|
5755
|
+
[`@apply start-11 -ms-10 -mt-8 text-${config.input.hasIcon.labelFloat.lg.text}`]: {}
|
5756
|
+
},
|
5757
|
+
[`.${prefix}input-number:focus-visible ~ .${prefix}label-float`]: {
|
5758
|
+
[`@apply !-ms-10 !-mt-9 !text-${config.input.hasIcon.labelFloat.lg.focusVisible.text}`]: {}
|
5759
|
+
},
|
5760
|
+
[`.${prefix}input-number:placeholder-shown ~ .${prefix}label-float`]: {
|
5761
|
+
[`@apply ms-0 mt-0 text-${config.input.hasIcon.labelFloat.lg.placeholderShown.text}`]: {}
|
5762
|
+
}
|
5763
|
+
}
|
5764
|
+
}
|
5765
|
+
});
|
5766
|
+
};
|
5767
|
+
},
|
5768
|
+
function() {
|
5769
|
+
return {
|
5770
|
+
theme: {
|
5771
|
+
shurikenUi: {
|
5772
|
+
[key$v]: defaultConfig$u
|
5773
|
+
}
|
5774
|
+
}
|
5775
|
+
};
|
5776
|
+
}
|
5777
|
+
);
|
5778
|
+
|
5779
|
+
const key$u = "label";
|
5780
|
+
const defaultConfig$t = {
|
5781
|
+
font: "sans",
|
5782
|
+
text: "muted-400",
|
5783
|
+
textDark: "muted-400/80"
|
5784
|
+
};
|
5785
|
+
|
5786
|
+
const label = plugin__default.withOptions(
|
5787
|
+
function(options) {
|
5788
|
+
let { prefix } = defu.defu(options, defaultPluginOptions);
|
5789
|
+
if (prefix) {
|
5790
|
+
prefix = `${prefix}-`;
|
5791
|
+
}
|
5792
|
+
return function({ addComponents, theme }) {
|
5793
|
+
const config = theme(`shurikenUi.${key$u}`);
|
5794
|
+
addComponents({
|
5795
|
+
[`.${prefix}label`]: {
|
5796
|
+
[`@apply inline-block font-${config.font} leading-none text-${config.text} dark:text-${config.textDark}`]: {}
|
5797
|
+
}
|
5798
|
+
});
|
5799
|
+
};
|
5800
|
+
},
|
5801
|
+
function() {
|
5802
|
+
return {
|
5803
|
+
theme: {
|
5804
|
+
shurikenUi: {
|
5805
|
+
[key$u]: defaultConfig$t
|
5806
|
+
}
|
5807
|
+
}
|
5808
|
+
};
|
5809
|
+
}
|
5810
|
+
);
|
5811
|
+
|
5812
|
+
const key$t = "link";
|
5813
|
+
const defaultConfig$s = {
|
5814
|
+
font: "sans",
|
5815
|
+
textHover: "primary-500",
|
5816
|
+
textHoverDark: "primary-400",
|
5817
|
+
textFocus: "primary-500",
|
5818
|
+
textFocusDark: "primary-400"
|
5819
|
+
};
|
5820
|
+
|
5821
|
+
const link = plugin__default.withOptions(
|
5822
|
+
function(options) {
|
5823
|
+
let { prefix } = defu.defu(options, defaultPluginOptions);
|
5824
|
+
if (prefix) {
|
5825
|
+
prefix = `${prefix}-`;
|
5826
|
+
}
|
5827
|
+
return function({ addComponents, theme }) {
|
5828
|
+
const config = theme(`shurikenUi.${key$t}`);
|
5829
|
+
addComponents({
|
5830
|
+
[`.${prefix}link`]: {
|
5831
|
+
[`@apply font-${config.font} hover:text-${config.textHover} dark:hover:text-${config.textHoverDark} underline-offset-4 hover:underline focus:text-${config.textFocus} dark:focus:text-${config.textFocusDark} focus:underline`]: {}
|
5832
|
+
}
|
5833
|
+
});
|
5834
|
+
};
|
5835
|
+
},
|
5836
|
+
function() {
|
5837
|
+
return {
|
5838
|
+
theme: {
|
5839
|
+
shurikenUi: {
|
5840
|
+
[key$t]: defaultConfig$s
|
5841
|
+
}
|
5842
|
+
}
|
5843
|
+
};
|
5844
|
+
}
|
5845
|
+
);
|
5846
|
+
|
5847
|
+
const key$s = "list";
|
5848
|
+
const defaultConfig$r = {
|
5849
|
+
ul: "disc",
|
5850
|
+
ol: "decimal",
|
5851
|
+
base: {
|
5852
|
+
textMarker: "muted-500",
|
5853
|
+
textMarkerDark: "muted-400",
|
5854
|
+
text: "slate-700",
|
5855
|
+
textDark: "slate-300",
|
5856
|
+
font: "sans"
|
5857
|
+
},
|
5858
|
+
media: {
|
5859
|
+
textMarker: "slate-500",
|
5860
|
+
textMarkerDark: "slate-400"
|
5861
|
+
}
|
5862
|
+
};
|
5863
|
+
|
5864
|
+
const list = plugin__default.withOptions(
|
5865
|
+
function(options) {
|
5866
|
+
let { prefix } = defu.defu(options, defaultPluginOptions);
|
5867
|
+
if (prefix) {
|
5868
|
+
prefix = `${prefix}-`;
|
5869
|
+
}
|
5870
|
+
return function({ addComponents, theme }) {
|
5871
|
+
const config = theme(`shurikenUi.${key$s}`);
|
5872
|
+
addComponents({
|
5873
|
+
[`.${prefix}list`]: {
|
5874
|
+
[`&.${prefix}list-ul`]: {
|
5875
|
+
[`@apply list-${config.ul}`]: {}
|
5876
|
+
},
|
5877
|
+
[`&.${prefix}list-ol`]: {
|
5878
|
+
[`@apply list-${config.ol}`]: {}
|
5879
|
+
},
|
5880
|
+
[`&.${prefix}list-base`]: {
|
5881
|
+
[`@apply space-y-1 marker:text-${config.base.textMarker} dark:marker:text-${config.base.textMarkerDark} font-${config.base.font} text-${config.base.text} dark:text-${config.base.textDark}`]: {}
|
5882
|
+
},
|
5883
|
+
[`&.${prefix}list-media`]: {
|
5884
|
+
[`@apply space-y-4 marker:text-${config.media.textMarker} dark:marker:text-${config.media.textMarkerDark}`]: {},
|
5885
|
+
[`.${prefix}list-item`]: {
|
5886
|
+
[`@apply flex gap-2`]: {}
|
5887
|
+
}
|
5888
|
+
}
|
5889
|
+
}
|
5890
|
+
});
|
5891
|
+
};
|
5892
|
+
},
|
5893
|
+
function() {
|
5894
|
+
return {
|
5895
|
+
theme: {
|
5896
|
+
shurikenUi: {
|
5897
|
+
[key$s]: defaultConfig$r
|
5898
|
+
}
|
5899
|
+
}
|
5900
|
+
};
|
5901
|
+
}
|
5902
|
+
);
|
5903
|
+
|
5904
|
+
const key$r = "listbox";
|
5905
|
+
const defaultConfig$q = {
|
5906
|
+
labelFloat: {
|
5907
|
+
text: "primary-500",
|
5908
|
+
size: "5",
|
5909
|
+
duration: "300"
|
5910
|
+
},
|
5911
|
+
button: {
|
5912
|
+
size: "full",
|
5913
|
+
text: "sm",
|
5914
|
+
textPosition: "start",
|
5915
|
+
font: "sans",
|
5916
|
+
iconBox: {
|
5917
|
+
space: "2",
|
5918
|
+
size: "6",
|
5919
|
+
innerSize: "4"
|
5920
|
+
},
|
5921
|
+
placeholder: {
|
5922
|
+
text: "muted-300",
|
5923
|
+
textDark: "muted-500",
|
5924
|
+
textPosition: "left"
|
5925
|
+
}
|
5926
|
+
},
|
5927
|
+
icon: {
|
5928
|
+
text: "muted-400",
|
5929
|
+
duration: "300"
|
5930
|
+
},
|
5931
|
+
chevron: {
|
5932
|
+
inner: {
|
5933
|
+
size: "4",
|
5934
|
+
text: "muted-400",
|
5935
|
+
duration: "300"
|
5936
|
+
}
|
5937
|
+
},
|
5938
|
+
options: {
|
5939
|
+
ringFocus: "primary-500/50",
|
5940
|
+
space: "2",
|
5941
|
+
text: "base",
|
5942
|
+
shadowSize: "lg",
|
5943
|
+
shadow: "muted-500/10",
|
5944
|
+
shadowDark: "muted-800/10"
|
5945
|
+
},
|
5946
|
+
option: {
|
5947
|
+
duration: "300",
|
5948
|
+
iconBox: {
|
5949
|
+
text: "muted-200",
|
5950
|
+
textDark: "muted-400",
|
5951
|
+
innerSize: "5"
|
5952
|
+
},
|
5953
|
+
inner: {
|
5954
|
+
heading: {
|
5955
|
+
text: "muted-800",
|
5956
|
+
textDark: "white"
|
5957
|
+
},
|
5958
|
+
text: "muted-400"
|
5959
|
+
},
|
5960
|
+
icon: {
|
5961
|
+
text: "primary-600"
|
5962
|
+
},
|
5963
|
+
iconInner: {
|
5964
|
+
size: "4"
|
5965
|
+
},
|
5966
|
+
activeOrHover: {
|
5967
|
+
text: "primary-600",
|
5968
|
+
textDark: "primary-400",
|
5969
|
+
bg: "primary-500/10"
|
5970
|
+
}
|
5971
|
+
},
|
5972
|
+
errorText: {
|
5973
|
+
text: "danger-600",
|
5974
|
+
textSize: "[0.65rem]",
|
5975
|
+
font: "sans",
|
5976
|
+
fontWeight: "medium"
|
5977
|
+
},
|
5978
|
+
sm: {
|
5979
|
+
text: "xs",
|
5980
|
+
icon: {
|
5981
|
+
size: "8",
|
5982
|
+
innerSize: "4"
|
5424
5983
|
},
|
5425
5984
|
placeload: {
|
5426
5985
|
size: "8"
|
@@ -5645,6 +6204,7 @@ const defaultListboxConfig = {
|
|
5645
6204
|
}
|
5646
6205
|
}
|
5647
6206
|
};
|
6207
|
+
|
5648
6208
|
const listbox = plugin__default.withOptions(
|
5649
6209
|
function(options) {
|
5650
6210
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -5652,9 +6212,7 @@ const listbox = plugin__default.withOptions(
|
|
5652
6212
|
prefix = `${prefix}-`;
|
5653
6213
|
}
|
5654
6214
|
return function({ addComponents, theme }) {
|
5655
|
-
const config = theme(
|
5656
|
-
"shurikenUi.listbox"
|
5657
|
-
);
|
6215
|
+
const config = theme(`shurikenUi.${key$r}`);
|
5658
6216
|
addComponents({
|
5659
6217
|
[`.${prefix}listbox`]: {
|
5660
6218
|
[`@apply relative w-full`]: {},
|
@@ -6004,19 +6562,21 @@ const listbox = plugin__default.withOptions(
|
|
6004
6562
|
return {
|
6005
6563
|
theme: {
|
6006
6564
|
shurikenUi: {
|
6007
|
-
|
6565
|
+
[key$r]: defaultConfig$q
|
6008
6566
|
}
|
6009
6567
|
}
|
6010
6568
|
};
|
6011
6569
|
}
|
6012
6570
|
);
|
6013
6571
|
|
6014
|
-
const
|
6572
|
+
const key$q = "mark";
|
6573
|
+
const defaultConfig$p = {
|
6015
6574
|
bg: "primary-100",
|
6016
6575
|
bgDark: "primary-800",
|
6017
6576
|
text: "primary-800",
|
6018
6577
|
textDark: "primary-200"
|
6019
6578
|
};
|
6579
|
+
|
6020
6580
|
const mark = plugin__default.withOptions(
|
6021
6581
|
function(options) {
|
6022
6582
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -6024,7 +6584,7 @@ const mark = plugin__default.withOptions(
|
|
6024
6584
|
prefix = `${prefix}-`;
|
6025
6585
|
}
|
6026
6586
|
return function({ addComponents, theme }) {
|
6027
|
-
const config = theme(
|
6587
|
+
const config = theme(`shurikenUi.${key$q}`);
|
6028
6588
|
addComponents({
|
6029
6589
|
[`.${prefix}mark`]: {
|
6030
6590
|
[`@apply bg-${config.bg} dark:bg-${config.bgDark}`]: {},
|
@@ -6037,20 +6597,24 @@ const mark = plugin__default.withOptions(
|
|
6037
6597
|
return {
|
6038
6598
|
theme: {
|
6039
6599
|
shurikenUi: {
|
6040
|
-
|
6600
|
+
[key$q]: defaultConfig$p
|
6041
6601
|
}
|
6042
6602
|
}
|
6043
6603
|
};
|
6044
6604
|
}
|
6045
6605
|
);
|
6046
6606
|
|
6607
|
+
const key$p = "mask";
|
6608
|
+
const defaultConfig$o = {};
|
6609
|
+
|
6047
6610
|
const mask = plugin__default.withOptions(
|
6048
6611
|
function(options) {
|
6049
6612
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
6050
6613
|
if (prefix) {
|
6051
6614
|
prefix = `${prefix}-`;
|
6052
6615
|
}
|
6053
|
-
return function({ addComponents }) {
|
6616
|
+
return function({ addComponents, theme }) {
|
6617
|
+
theme(`shurikenUi.${key$p}`);
|
6054
6618
|
addComponents({
|
6055
6619
|
[`.${prefix}mask`]: {
|
6056
6620
|
"mask-size": "contain",
|
@@ -6076,11 +6640,18 @@ const mask = plugin__default.withOptions(
|
|
6076
6640
|
};
|
6077
6641
|
},
|
6078
6642
|
function() {
|
6079
|
-
return {
|
6643
|
+
return {
|
6644
|
+
theme: {
|
6645
|
+
shurikenUi: {
|
6646
|
+
[key$p]: defaultConfig$o
|
6647
|
+
}
|
6648
|
+
}
|
6649
|
+
};
|
6080
6650
|
}
|
6081
6651
|
);
|
6082
6652
|
|
6083
|
-
const
|
6653
|
+
const key$o = "messageText";
|
6654
|
+
const defaultConfig$n = {
|
6084
6655
|
space: "6",
|
6085
6656
|
head: {
|
6086
6657
|
space: "2"
|
@@ -6154,6 +6725,7 @@ const defaultMessageTextConfig = {
|
|
6154
6725
|
curved: "xl"
|
6155
6726
|
}
|
6156
6727
|
};
|
6728
|
+
|
6157
6729
|
const messageText = plugin__default.withOptions(
|
6158
6730
|
function(options) {
|
6159
6731
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -6161,9 +6733,7 @@ const messageText = plugin__default.withOptions(
|
|
6161
6733
|
prefix = `${prefix}-`;
|
6162
6734
|
}
|
6163
6735
|
return function({ addComponents, theme }) {
|
6164
|
-
const config = theme(
|
6165
|
-
"shurikenUi.messageText"
|
6166
|
-
);
|
6736
|
+
const config = theme(`shurikenUi.${key$o}`);
|
6167
6737
|
addComponents({
|
6168
6738
|
[`.${prefix}message-text`]: {
|
6169
6739
|
[`@apply relative p-${config.space}`]: {},
|
@@ -6241,14 +6811,15 @@ const messageText = plugin__default.withOptions(
|
|
6241
6811
|
return {
|
6242
6812
|
theme: {
|
6243
6813
|
shurikenUi: {
|
6244
|
-
|
6814
|
+
[key$o]: defaultConfig$n
|
6245
6815
|
}
|
6246
6816
|
}
|
6247
6817
|
};
|
6248
6818
|
}
|
6249
6819
|
);
|
6250
6820
|
|
6251
|
-
const
|
6821
|
+
const key$n = "message";
|
6822
|
+
const defaultConfig$m = {
|
6252
6823
|
messageIconOuter: {
|
6253
6824
|
size: "10",
|
6254
6825
|
icon: {
|
@@ -6417,6 +6988,7 @@ const defaultMessageConfig = {
|
|
6417
6988
|
}
|
6418
6989
|
}
|
6419
6990
|
};
|
6991
|
+
|
6420
6992
|
const message = plugin__default.withOptions(
|
6421
6993
|
function(options) {
|
6422
6994
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -6424,9 +6996,7 @@ const message = plugin__default.withOptions(
|
|
6424
6996
|
prefix = `${prefix}-`;
|
6425
6997
|
}
|
6426
6998
|
return function({ addComponents, theme }) {
|
6427
|
-
const config = theme(
|
6428
|
-
"shurikenUi.message"
|
6429
|
-
);
|
6999
|
+
const config = theme(`shurikenUi.${key$n}`);
|
6430
7000
|
addComponents({
|
6431
7001
|
[`.${prefix}message`]: {
|
6432
7002
|
[`@apply flex min-h-[3rem] items-center border p-1 pe-2`]: {},
|
@@ -6440,7 +7010,7 @@ const message = plugin__default.withOptions(
|
|
6440
7010
|
[`@apply text-${config.messageInnerText.textColor} px-3 block font-${config.messageInnerText.font} text-${config.messageInnerText.text}`]: {}
|
6441
7011
|
},
|
6442
7012
|
[`.${prefix}message-close`]: {
|
6443
|
-
[`@apply ${prefix}focus text-${config.messageClose.text} me-2 ms-auto flex cursor-pointer items-center justify-center p-${config.messageClose.space}
|
7013
|
+
[`@apply ${prefix}focus text-${config.messageClose.text} me-2 ms-auto flex cursor-pointer items-center justify-center p-${config.messageClose.space} rounded-${config.messageClose.rounded} transition-colors duration-${config.messageClose.duration}`]: {},
|
6444
7014
|
[`.${prefix}close-icon`]: {
|
6445
7015
|
[`@apply h-${config.messageClose.iconSize} w-${config.messageClose.iconSize}`]: {}
|
6446
7016
|
}
|
@@ -6561,14 +7131,15 @@ const message = plugin__default.withOptions(
|
|
6561
7131
|
return {
|
6562
7132
|
theme: {
|
6563
7133
|
shurikenUi: {
|
6564
|
-
|
7134
|
+
[key$n]: defaultConfig$m
|
6565
7135
|
}
|
6566
7136
|
}
|
6567
7137
|
};
|
6568
7138
|
}
|
6569
7139
|
);
|
6570
7140
|
|
6571
|
-
const
|
7141
|
+
const key$m = "modal";
|
7142
|
+
const defaultConfig$l = {
|
6572
7143
|
backdrop: {
|
6573
7144
|
bg: "muted-800/70",
|
6574
7145
|
bgDark: "muted-900/80"
|
@@ -6587,6 +7158,7 @@ const defaultModalConfig = {
|
|
6587
7158
|
modal2XL: "3xl",
|
6588
7159
|
modal3XL: "5xl"
|
6589
7160
|
};
|
7161
|
+
|
6590
7162
|
const modal = plugin__default.withOptions(
|
6591
7163
|
function(options) {
|
6592
7164
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -6594,9 +7166,7 @@ const modal = plugin__default.withOptions(
|
|
6594
7166
|
prefix = `${prefix}-`;
|
6595
7167
|
}
|
6596
7168
|
return function({ addComponents, theme }) {
|
6597
|
-
const config = theme(
|
6598
|
-
"shurikenUi.modal"
|
6599
|
-
);
|
7169
|
+
const config = theme(`shurikenUi.${key$m}`);
|
6600
7170
|
addComponents({
|
6601
7171
|
[`.${prefix}modal`]: {
|
6602
7172
|
[`@apply fixed inset-0 z-[9999] flex items-center justify-center`]: {},
|
@@ -6653,14 +7223,15 @@ const modal = plugin__default.withOptions(
|
|
6653
7223
|
return {
|
6654
7224
|
theme: {
|
6655
7225
|
shurikenUi: {
|
6656
|
-
|
7226
|
+
[key$m]: defaultConfig$l
|
6657
7227
|
}
|
6658
7228
|
}
|
6659
7229
|
};
|
6660
7230
|
}
|
6661
7231
|
);
|
6662
7232
|
|
6663
|
-
const
|
7233
|
+
const key$l = "pagination";
|
7234
|
+
const defaultConfig$k = {
|
6664
7235
|
size: "full",
|
6665
7236
|
list: {
|
6666
7237
|
border: "muted-200",
|
@@ -6737,6 +7308,7 @@ const defaultPaginationConfig = {
|
|
6737
7308
|
full: "full"
|
6738
7309
|
}
|
6739
7310
|
};
|
7311
|
+
|
6740
7312
|
const pagination = plugin__default.withOptions(
|
6741
7313
|
function(options) {
|
6742
7314
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -6744,9 +7316,7 @@ const pagination = plugin__default.withOptions(
|
|
6744
7316
|
prefix = `${prefix}-`;
|
6745
7317
|
}
|
6746
7318
|
return function({ addComponents, theme }) {
|
6747
|
-
const config = theme(
|
6748
|
-
"shurikenUi.pagination"
|
6749
|
-
);
|
7319
|
+
const config = theme(`shurikenUi.${key$l}`);
|
6750
7320
|
addComponents({
|
6751
7321
|
[`.${prefix}pagination`]: {
|
6752
7322
|
[`@apply inline-flex w-${config.size} flex-col md:flex-row md:justify-between`]: {},
|
@@ -6794,14 +7364,15 @@ const pagination = plugin__default.withOptions(
|
|
6794
7364
|
return {
|
6795
7365
|
theme: {
|
6796
7366
|
shurikenUi: {
|
6797
|
-
|
7367
|
+
[key$l]: defaultConfig$k
|
6798
7368
|
}
|
6799
7369
|
}
|
6800
7370
|
};
|
6801
7371
|
}
|
6802
7372
|
);
|
6803
7373
|
|
6804
|
-
const
|
7374
|
+
const key$k = "paragraph";
|
7375
|
+
const defaultConfig$j = {
|
6805
7376
|
textXS: "xs",
|
6806
7377
|
textSM: "sm",
|
6807
7378
|
textMD: "base",
|
@@ -6827,6 +7398,7 @@ const defaultParagraphConfig = {
|
|
6827
7398
|
textLeadSnug: "snug",
|
6828
7399
|
textLeadLoose: "loose"
|
6829
7400
|
};
|
7401
|
+
|
6830
7402
|
const paragraph = plugin__default.withOptions(
|
6831
7403
|
function(options) {
|
6832
7404
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -6834,9 +7406,7 @@ const paragraph = plugin__default.withOptions(
|
|
6834
7406
|
prefix = `${prefix}-`;
|
6835
7407
|
}
|
6836
7408
|
return function({ addComponents, theme }) {
|
6837
|
-
const config = theme(
|
6838
|
-
"shurikenUi.paragraph"
|
6839
|
-
);
|
7409
|
+
const config = theme(`shurikenUi.${key$k}`);
|
6840
7410
|
addComponents({
|
6841
7411
|
[`.${prefix}paragraph`]: {
|
6842
7412
|
[`@apply font-sans`]: {},
|
@@ -6920,14 +7490,15 @@ const paragraph = plugin__default.withOptions(
|
|
6920
7490
|
return {
|
6921
7491
|
theme: {
|
6922
7492
|
shurikenUi: {
|
6923
|
-
|
7493
|
+
[key$k]: defaultConfig$j
|
6924
7494
|
}
|
6925
7495
|
}
|
6926
7496
|
};
|
6927
7497
|
}
|
6928
7498
|
);
|
6929
7499
|
|
6930
|
-
const
|
7500
|
+
const key$j = "placeholderPage";
|
7501
|
+
const defaultConfig$i = {
|
6931
7502
|
minSize: "[400px]",
|
6932
7503
|
innerSize: "full",
|
6933
7504
|
maxContentSize: "sm",
|
@@ -6944,6 +7515,7 @@ const defaultPlaceholderPageConfig = {
|
|
6944
7515
|
text: "muted-400"
|
6945
7516
|
}
|
6946
7517
|
};
|
7518
|
+
|
6947
7519
|
const placeholderPage = plugin__default.withOptions(
|
6948
7520
|
function(options) {
|
6949
7521
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -6951,9 +7523,7 @@ const placeholderPage = plugin__default.withOptions(
|
|
6951
7523
|
prefix = `${prefix}-`;
|
6952
7524
|
}
|
6953
7525
|
return function({ addComponents, theme }) {
|
6954
|
-
const config = theme(
|
6955
|
-
"shurikenUi.placeholderPage"
|
6956
|
-
);
|
7526
|
+
const config = theme(`shurikenUi.${key$j}`);
|
6957
7527
|
addComponents({
|
6958
7528
|
[`.${prefix}placeholder-page`]: {
|
6959
7529
|
[`@apply flex min-h-${config.minSize} items-center justify-center`]: {},
|
@@ -6998,20 +7568,24 @@ const placeholderPage = plugin__default.withOptions(
|
|
6998
7568
|
return {
|
6999
7569
|
theme: {
|
7000
7570
|
shurikenUi: {
|
7001
|
-
|
7571
|
+
[key$j]: defaultConfig$i
|
7002
7572
|
}
|
7003
7573
|
}
|
7004
7574
|
};
|
7005
7575
|
}
|
7006
7576
|
);
|
7007
7577
|
|
7578
|
+
const key$i = "placeload";
|
7579
|
+
const defaultConfig$h = {};
|
7580
|
+
|
7008
7581
|
const placeload = plugin__default.withOptions(
|
7009
7582
|
function(options) {
|
7010
7583
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
7011
7584
|
if (prefix) {
|
7012
7585
|
prefix = `${prefix}-`;
|
7013
7586
|
}
|
7014
|
-
return function({ addComponents }) {
|
7587
|
+
return function({ addComponents, theme }) {
|
7588
|
+
theme(`shurikenUi.${key$i}`);
|
7015
7589
|
addComponents({
|
7016
7590
|
[`.${prefix}placeload`]: {
|
7017
7591
|
position: "relative",
|
@@ -7033,6 +7607,9 @@ const placeload = plugin__default.withOptions(
|
|
7033
7607
|
}
|
7034
7608
|
return {
|
7035
7609
|
theme: {
|
7610
|
+
shurikenUi: {
|
7611
|
+
[key$i]: defaultConfig$h
|
7612
|
+
},
|
7036
7613
|
extend: {
|
7037
7614
|
keyframes: {
|
7038
7615
|
[`${prefix}placeload`]: {
|
@@ -7049,7 +7626,8 @@ const placeload = plugin__default.withOptions(
|
|
7049
7626
|
}
|
7050
7627
|
);
|
7051
7628
|
|
7052
|
-
const
|
7629
|
+
const key$h = "progressCircle";
|
7630
|
+
const defaultConfig$g = {
|
7053
7631
|
circleDuration: "500",
|
7054
7632
|
default: {
|
7055
7633
|
text: "muted-200",
|
@@ -7062,6 +7640,7 @@ const defaultProgressCircleConfig = {
|
|
7062
7640
|
stroke: "current"
|
7063
7641
|
}
|
7064
7642
|
};
|
7643
|
+
|
7065
7644
|
const progressCircle = plugin__default.withOptions(
|
7066
7645
|
function(options) {
|
7067
7646
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -7069,9 +7648,7 @@ const progressCircle = plugin__default.withOptions(
|
|
7069
7648
|
prefix = `${prefix}-`;
|
7070
7649
|
}
|
7071
7650
|
return function({ addComponents, theme }) {
|
7072
|
-
const config = theme(
|
7073
|
-
"shurikenUi.progressCircle"
|
7074
|
-
);
|
7651
|
+
const config = theme(`shurikenUi.${key$h}`);
|
7075
7652
|
addComponents({
|
7076
7653
|
[`.${prefix}progress-circle`]: {
|
7077
7654
|
[`@apply relative inline-flex items-center justify-center`]: {},
|
@@ -7092,14 +7669,15 @@ const progressCircle = plugin__default.withOptions(
|
|
7092
7669
|
return {
|
7093
7670
|
theme: {
|
7094
7671
|
shurikenUi: {
|
7095
|
-
|
7672
|
+
[key$h]: defaultConfig$g
|
7096
7673
|
}
|
7097
7674
|
}
|
7098
7675
|
};
|
7099
7676
|
}
|
7100
7677
|
);
|
7101
7678
|
|
7102
|
-
const
|
7679
|
+
const key$g = "progress";
|
7680
|
+
const defaultConfig$f = {
|
7103
7681
|
size: "full",
|
7104
7682
|
bar: {
|
7105
7683
|
duration: "300"
|
@@ -7127,6 +7705,7 @@ const defaultProgressConfig = {
|
|
7127
7705
|
warning: "warning-500",
|
7128
7706
|
danger: "danger-500"
|
7129
7707
|
};
|
7708
|
+
|
7130
7709
|
const progress = plugin__default.withOptions(
|
7131
7710
|
function(options) {
|
7132
7711
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -7134,9 +7713,7 @@ const progress = plugin__default.withOptions(
|
|
7134
7713
|
prefix = `${prefix}-`;
|
7135
7714
|
}
|
7136
7715
|
return function({ addComponents, theme }) {
|
7137
|
-
const config = theme(
|
7138
|
-
"shurikenUi.progress"
|
7139
|
-
);
|
7716
|
+
const config = theme(`shurikenUi.${key$g}`);
|
7140
7717
|
addComponents({
|
7141
7718
|
[`.${prefix}progress`]: {
|
7142
7719
|
[`@apply relative w-${config.size} overflow-hidden`]: {},
|
@@ -7213,7 +7790,7 @@ const progress = plugin__default.withOptions(
|
|
7213
7790
|
return {
|
7214
7791
|
theme: {
|
7215
7792
|
shurikenUi: {
|
7216
|
-
|
7793
|
+
[key$g]: defaultConfig$f
|
7217
7794
|
},
|
7218
7795
|
extend: {
|
7219
7796
|
keyframes: {
|
@@ -7232,7 +7809,8 @@ const progress = plugin__default.withOptions(
|
|
7232
7809
|
}
|
7233
7810
|
);
|
7234
7811
|
|
7235
|
-
const
|
7812
|
+
const key$f = "prose";
|
7813
|
+
const defaultConfig$e = {
|
7236
7814
|
color: "muted",
|
7237
7815
|
dark: "invert",
|
7238
7816
|
space: "4",
|
@@ -7251,6 +7829,7 @@ const defaultProseConfig = {
|
|
7251
7829
|
tdBorderDark: "muted-700"
|
7252
7830
|
}
|
7253
7831
|
};
|
7832
|
+
|
7254
7833
|
const prose = plugin__default.withOptions(
|
7255
7834
|
function(options) {
|
7256
7835
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -7258,9 +7837,7 @@ const prose = plugin__default.withOptions(
|
|
7258
7837
|
prefix = `${prefix}-`;
|
7259
7838
|
}
|
7260
7839
|
return function({ addComponents, theme }) {
|
7261
|
-
const config = theme(
|
7262
|
-
"shurikenUi.prose"
|
7263
|
-
);
|
7840
|
+
const config = theme(`shurikenUi.${key$f}`);
|
7264
7841
|
addComponents({
|
7265
7842
|
[`.${prefix}prose`]: {
|
7266
7843
|
[`@apply prose prose-primary prose-${config.color} dark:prose-${config.dark} prose-th:p-${config.space} prose-td:p-${config.space} prose-table:bg-${config.bgTable} dark:prose-table:bg-${config.bgTableDark} prose-table:border prose-table:border-${config.borderTable} dark:prose-table:border-${config.borderTableDark}`]: {},
|
@@ -7281,14 +7858,15 @@ const prose = plugin__default.withOptions(
|
|
7281
7858
|
return {
|
7282
7859
|
theme: {
|
7283
7860
|
shurikenUi: {
|
7284
|
-
|
7861
|
+
[key$f]: defaultConfig$e
|
7285
7862
|
}
|
7286
7863
|
}
|
7287
7864
|
};
|
7288
7865
|
}
|
7289
7866
|
);
|
7290
7867
|
|
7291
|
-
const
|
7868
|
+
const key$e = "radio";
|
7869
|
+
const defaultConfig$d = {
|
7292
7870
|
outer: {
|
7293
7871
|
size: "5"
|
7294
7872
|
},
|
@@ -7331,6 +7909,7 @@ const defaultRadioConfig = {
|
|
7331
7909
|
warning: "warning-500",
|
7332
7910
|
danger: "danger-500"
|
7333
7911
|
};
|
7912
|
+
|
7334
7913
|
const radio = plugin__default.withOptions(
|
7335
7914
|
function(options) {
|
7336
7915
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -7338,9 +7917,7 @@ const radio = plugin__default.withOptions(
|
|
7338
7917
|
prefix = `${prefix}-`;
|
7339
7918
|
}
|
7340
7919
|
return function({ addComponents, theme }) {
|
7341
|
-
const config = theme(
|
7342
|
-
"shurikenUi.radio"
|
7343
|
-
);
|
7920
|
+
const config = theme(`shurikenUi.${key$e}`);
|
7344
7921
|
addComponents({
|
7345
7922
|
[`.${prefix}radio`]: {
|
7346
7923
|
[`@apply relative inline-flex items-start gap-1`]: {},
|
@@ -7403,14 +7980,15 @@ const radio = plugin__default.withOptions(
|
|
7403
7980
|
return {
|
7404
7981
|
theme: {
|
7405
7982
|
shurikenUi: {
|
7406
|
-
|
7983
|
+
[key$e]: defaultConfig$d
|
7407
7984
|
}
|
7408
7985
|
}
|
7409
7986
|
};
|
7410
7987
|
}
|
7411
7988
|
);
|
7412
7989
|
|
7413
|
-
const
|
7990
|
+
const key$d = "select";
|
7991
|
+
const defaultConfig$c = {
|
7414
7992
|
labelFloat: {
|
7415
7993
|
text: "primary-500",
|
7416
7994
|
size: "5",
|
@@ -7579,6 +8157,7 @@ const defaultSelectConfig = {
|
|
7579
8157
|
}
|
7580
8158
|
}
|
7581
8159
|
};
|
8160
|
+
|
7582
8161
|
const select = plugin__default.withOptions(
|
7583
8162
|
function(options) {
|
7584
8163
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -7586,9 +8165,7 @@ const select = plugin__default.withOptions(
|
|
7586
8165
|
prefix = `${prefix}-`;
|
7587
8166
|
}
|
7588
8167
|
return function({ addComponents, theme }) {
|
7589
|
-
const config = theme(
|
7590
|
-
"shurikenUi.select"
|
7591
|
-
);
|
8168
|
+
const config = theme(`shurikenUi.${key$d}`);
|
7592
8169
|
addComponents({
|
7593
8170
|
[`.${prefix}select-wrapper`]: {
|
7594
8171
|
[`@apply relative`]: {},
|
@@ -7870,20 +8447,22 @@ const select = plugin__default.withOptions(
|
|
7870
8447
|
return {
|
7871
8448
|
theme: {
|
7872
8449
|
shurikenUi: {
|
7873
|
-
|
8450
|
+
[key$d]: defaultConfig$c
|
7874
8451
|
}
|
7875
8452
|
}
|
7876
8453
|
};
|
7877
8454
|
}
|
7878
8455
|
);
|
7879
8456
|
|
7880
|
-
const
|
8457
|
+
const key$c = "slimscroll";
|
8458
|
+
const defaultConfig$b = {
|
7881
8459
|
width: "[6px]",
|
7882
8460
|
bg: "black/5",
|
7883
8461
|
bgDark: "white/5",
|
7884
8462
|
bgHover: "black/20",
|
7885
8463
|
bgHoverDark: "white/20"
|
7886
8464
|
};
|
8465
|
+
|
7887
8466
|
const slimscroll = plugin__default.withOptions(
|
7888
8467
|
function(options) {
|
7889
8468
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -7891,9 +8470,7 @@ const slimscroll = plugin__default.withOptions(
|
|
7891
8470
|
prefix = `${prefix}-`;
|
7892
8471
|
}
|
7893
8472
|
return function({ addComponents, theme }) {
|
7894
|
-
const config = theme(
|
7895
|
-
"shurikenUi.slimscroll"
|
7896
|
-
);
|
8473
|
+
const config = theme(`shurikenUi.${key$c}`);
|
7897
8474
|
addComponents({
|
7898
8475
|
[`.${prefix}slimscroll::-webkit-scrollbar, .${prefix}slimscroll-opaque::-webkit-scrollbar`]: {
|
7899
8476
|
scrollBehavior: "smooth",
|
@@ -7916,14 +8493,15 @@ const slimscroll = plugin__default.withOptions(
|
|
7916
8493
|
return {
|
7917
8494
|
theme: {
|
7918
8495
|
shurikenUi: {
|
7919
|
-
|
8496
|
+
[key$c]: defaultConfig$b
|
7920
8497
|
}
|
7921
8498
|
}
|
7922
8499
|
};
|
7923
8500
|
}
|
7924
8501
|
);
|
7925
8502
|
|
7926
|
-
const
|
8503
|
+
const key$b = "snack";
|
8504
|
+
const defaultConfig$a = {
|
7927
8505
|
rounded: "full",
|
7928
8506
|
icon: {
|
7929
8507
|
border: "muted-200",
|
@@ -7977,6 +8555,7 @@ const defaultSnackConfig = {
|
|
7977
8555
|
bgDark: "muted-700"
|
7978
8556
|
}
|
7979
8557
|
};
|
8558
|
+
|
7980
8559
|
const snack = plugin__default.withOptions(
|
7981
8560
|
function(options) {
|
7982
8561
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -7984,12 +8563,10 @@ const snack = plugin__default.withOptions(
|
|
7984
8563
|
prefix = `${prefix}-`;
|
7985
8564
|
}
|
7986
8565
|
return function({ addComponents, theme }) {
|
7987
|
-
const config = theme(
|
7988
|
-
"shurikenUi.snack"
|
7989
|
-
);
|
8566
|
+
const config = theme(`shurikenUi.${key$b}`);
|
7990
8567
|
addComponents({
|
7991
8568
|
[`.${prefix}snack`]: {
|
7992
|
-
[`@apply
|
8569
|
+
[`@apply inline-flex items-center gap-1 rounded-${config.rounded} outline-transparent`]: {},
|
7993
8570
|
[`.${prefix}snack-icon`]: {
|
7994
8571
|
[`@apply border-${config.icon.border} -ms-0.5 flex items-center justify-center rounded-${config.icon.rounded} border bg-${config.icon.bg}`]: {}
|
7995
8572
|
},
|
@@ -8046,14 +8623,15 @@ const snack = plugin__default.withOptions(
|
|
8046
8623
|
return {
|
8047
8624
|
theme: {
|
8048
8625
|
shurikenUi: {
|
8049
|
-
|
8626
|
+
[key$b]: defaultConfig$a
|
8050
8627
|
}
|
8051
8628
|
}
|
8052
8629
|
};
|
8053
8630
|
}
|
8054
8631
|
);
|
8055
8632
|
|
8056
|
-
const
|
8633
|
+
const key$a = "switchBall";
|
8634
|
+
const defaulConfig = {
|
8057
8635
|
handle: {
|
8058
8636
|
border: "muted-300",
|
8059
8637
|
borderDark: "muted-600",
|
@@ -8101,6 +8679,7 @@ const defaultSwitchBallConfig = {
|
|
8101
8679
|
warning: "warning-400",
|
8102
8680
|
danger: "danger-400"
|
8103
8681
|
};
|
8682
|
+
|
8104
8683
|
const switchBall = plugin__default.withOptions(
|
8105
8684
|
function(options) {
|
8106
8685
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -8108,20 +8687,18 @@ const switchBall = plugin__default.withOptions(
|
|
8108
8687
|
prefix = `${prefix}-`;
|
8109
8688
|
}
|
8110
8689
|
return function({ addComponents, theme }) {
|
8111
|
-
const config = theme(
|
8112
|
-
"shurikenUi.switchBall"
|
8113
|
-
);
|
8690
|
+
const config = theme(`shurikenUi.${key$a}`);
|
8114
8691
|
addComponents({
|
8115
8692
|
[`.${prefix}switch-ball`]: {
|
8116
8693
|
[`@apply flex cursor-pointer items-center`]: {},
|
8117
8694
|
[`.${prefix}switch-ball-outer`]: {
|
8118
|
-
[`@apply relative block`]: {}
|
8695
|
+
[`@apply ${prefix}focus relative block rounded-${config.handle.rounded}`]: {}
|
8119
8696
|
},
|
8120
8697
|
[`.${prefix}switch-ball-handle`]: {
|
8121
8698
|
[`@apply border-${config.handle.border} dark:border-${config.handle.borderDark} dark:bg-${config.handle.bgDark} absolute start-0.5 top-1/2 z-10 flex h-${config.handle.size} w-${config.handle.size} -translate-y-1/2 items-center justify-center rounded-${config.handle.rounded} border bg-${config.handle.bg} shadow transition focus:w-6`]: {}
|
8122
8699
|
},
|
8123
8700
|
[`.${prefix}switch-ball-track`]: {
|
8124
|
-
[`@apply bg-${config.track.bg} dark:bg-${config.track.bgDark} block h-6 w-11 rounded-${config.track.rounded} shadow-inner
|
8701
|
+
[`@apply bg-${config.track.bg} dark:bg-${config.track.bgDark} block h-6 w-11 rounded-${config.track.rounded} shadow-inner transition-all duration-${config.track.duration}`]: {}
|
8125
8702
|
},
|
8126
8703
|
[`.${prefix}switch-ball-icon`]: {
|
8127
8704
|
[`@apply pointer-events-none absolute start-2 top-1/2 z-10 h-${config.icon.size} w-${config.icon.size} translate-y-0 fill-current text-${config.icon.text} opacity-0 transition duration-${config.icon.duration}`]: {}
|
@@ -8143,9 +8720,6 @@ const switchBall = plugin__default.withOptions(
|
|
8143
8720
|
[`&:checked ~ .${prefix}switch-ball-handle`]: {
|
8144
8721
|
[`@apply -translate-y-1/2 translate-x-full rtl:-translate-x-full`]: {}
|
8145
8722
|
},
|
8146
|
-
[`&:checked ~ .${prefix}switch-ball-track`]: {
|
8147
|
-
[`@apply outline-dashed outline-offset-2 ring-0 dark:outline-muted-600 outline-muted-300`]: {}
|
8148
|
-
},
|
8149
8723
|
[`&:checked ~ .${prefix}switch-ball-icon`]: {
|
8150
8724
|
[`@apply -translate-y-1/2 opacity-100`]: {}
|
8151
8725
|
}
|
@@ -8173,14 +8747,15 @@ const switchBall = plugin__default.withOptions(
|
|
8173
8747
|
return {
|
8174
8748
|
theme: {
|
8175
8749
|
shurikenUi: {
|
8176
|
-
|
8750
|
+
[key$a]: defaulConfig
|
8177
8751
|
}
|
8178
8752
|
}
|
8179
8753
|
};
|
8180
8754
|
}
|
8181
8755
|
);
|
8182
8756
|
|
8183
|
-
const
|
8757
|
+
const key$9 = "switchThin";
|
8758
|
+
const defaultConfig$9 = {
|
8184
8759
|
handle: {
|
8185
8760
|
border: "muted-300",
|
8186
8761
|
borderDark: "muted-600",
|
@@ -8223,6 +8798,7 @@ const defaultSwitchThinConfig = {
|
|
8223
8798
|
warning: "warning-400",
|
8224
8799
|
danger: "danger-400"
|
8225
8800
|
};
|
8801
|
+
|
8226
8802
|
const switchThin = plugin__default.withOptions(
|
8227
8803
|
function(options) {
|
8228
8804
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -8230,20 +8806,18 @@ const switchThin = plugin__default.withOptions(
|
|
8230
8806
|
prefix = `${prefix}-`;
|
8231
8807
|
}
|
8232
8808
|
return function({ addComponents, theme }) {
|
8233
|
-
const config = theme(
|
8234
|
-
"shurikenUi.switchThin"
|
8235
|
-
);
|
8809
|
+
const config = theme(`shurikenUi.switchThin`);
|
8236
8810
|
addComponents({
|
8237
8811
|
[`.${prefix}switch-thin`]: {
|
8238
8812
|
[`@apply flex cursor-pointer items-center`]: {},
|
8239
8813
|
[`.${prefix}switch-thin-outer`]: {
|
8240
|
-
[`@apply relative block h-4`]: {}
|
8814
|
+
[`@apply ${prefix}focus relative block h-4 rounded-${config.handle.rounded}`]: {}
|
8241
8815
|
},
|
8242
8816
|
[`.${prefix}switch-thin-handle`]: {
|
8243
8817
|
[`@apply border-${config.handle.border} dark:border-${config.handle.borderDark} dark:bg-${config.handle.bgDark} absolute -start-1 top-1/2 flex h-${config.handle.size} w-${config.handle.size} -translate-y-1/2 items-center justify-center rounded-${config.handle.rounded} border bg-${config.handle.bg} shadow transition`]: {}
|
8244
8818
|
},
|
8245
8819
|
[`.${prefix}switch-thin-track`]: {
|
8246
|
-
[`@apply bg-${config.track.bg} dark:bg-${config.track.bgDark} block h-4 w-10 rounded-${config.track.rounded} shadow-inner
|
8820
|
+
[`@apply bg-${config.track.bg} dark:bg-${config.track.bgDark} block h-4 w-10 rounded-${config.track.rounded} shadow-inner transition-all duration-${config.track.duration}`]: {}
|
8247
8821
|
},
|
8248
8822
|
[`.${prefix}switch-thin-single-label`]: {
|
8249
8823
|
[`@apply text-${config.singleLabel.text} relative ms-3 cursor-pointer select-none font-${config.singleLabel.font} text-${config.singleLabel.textSize}`]: {}
|
@@ -8261,9 +8835,6 @@ const switchThin = plugin__default.withOptions(
|
|
8261
8835
|
[`@apply absolute z-20 h-${config.input.size} w-${config.input.size} cursor-pointer opacity-0`]: {},
|
8262
8836
|
[`&:checked ~ .${prefix}switch-thin-handle`]: {
|
8263
8837
|
[`@apply -translate-y-1/2 translate-x-full rtl:-translate-x-full`]: {}
|
8264
|
-
},
|
8265
|
-
[`&:checked ~ .${prefix}switch-thin-track`]: {
|
8266
|
-
[`@apply outline-dashed outline-offset-2 ring-0 dark:outline-muted-600 outline-muted-300`]: {}
|
8267
8838
|
}
|
8268
8839
|
},
|
8269
8840
|
[`&.${prefix}switch-thin-primary .${prefix}switch-thin-input:checked ~ .${prefix}switch-thin-track`]: {
|
@@ -8289,14 +8860,15 @@ const switchThin = plugin__default.withOptions(
|
|
8289
8860
|
return {
|
8290
8861
|
theme: {
|
8291
8862
|
shurikenUi: {
|
8292
|
-
|
8863
|
+
[key$9]: defaultConfig$9
|
8293
8864
|
}
|
8294
8865
|
}
|
8295
8866
|
};
|
8296
8867
|
}
|
8297
8868
|
);
|
8298
8869
|
|
8299
|
-
const
|
8870
|
+
const key$8 = "tabSlider";
|
8871
|
+
const defaultConfig$8 = {
|
8300
8872
|
track: {
|
8301
8873
|
bg: "muted-100",
|
8302
8874
|
bgDark: "muted-700",
|
@@ -8330,6 +8902,7 @@ const defaultTabSliderConfig = {
|
|
8330
8902
|
track: "10"
|
8331
8903
|
}
|
8332
8904
|
};
|
8905
|
+
|
8333
8906
|
const tabSlider = plugin__default.withOptions(
|
8334
8907
|
function(options) {
|
8335
8908
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -8337,9 +8910,7 @@ const tabSlider = plugin__default.withOptions(
|
|
8337
8910
|
prefix = `${prefix}-`;
|
8338
8911
|
}
|
8339
8912
|
return function({ addComponents, theme }) {
|
8340
|
-
const config = theme(
|
8341
|
-
"shurikenUi.tabSlider"
|
8342
|
-
);
|
8913
|
+
const config = theme(`shurikenUi.${key$8}`);
|
8343
8914
|
addComponents({
|
8344
8915
|
[`.${prefix}tab-slider`]: {
|
8345
8916
|
[`@apply relative`]: {},
|
@@ -8450,14 +9021,15 @@ const tabSlider = plugin__default.withOptions(
|
|
8450
9021
|
return {
|
8451
9022
|
theme: {
|
8452
9023
|
shurikenUi: {
|
8453
|
-
|
9024
|
+
[key$8]: defaultConfig$8
|
8454
9025
|
}
|
8455
9026
|
}
|
8456
9027
|
};
|
8457
9028
|
}
|
8458
9029
|
);
|
8459
9030
|
|
8460
|
-
const
|
9031
|
+
const key$7 = "tabs";
|
9032
|
+
const defaultConfig$7 = {
|
8461
9033
|
inner: {
|
8462
9034
|
font: "sans",
|
8463
9035
|
space: "6"
|
@@ -8490,6 +9062,7 @@ const defaultTabsConfig = {
|
|
8490
9062
|
}
|
8491
9063
|
}
|
8492
9064
|
};
|
9065
|
+
|
8493
9066
|
const tabs = plugin__default.withOptions(
|
8494
9067
|
function(options) {
|
8495
9068
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -8497,7 +9070,7 @@ const tabs = plugin__default.withOptions(
|
|
8497
9070
|
prefix = `${prefix}-`;
|
8498
9071
|
}
|
8499
9072
|
return function({ addComponents, theme }) {
|
8500
|
-
const config = theme(
|
9073
|
+
const config = theme(`shurikenUi.${key$7}`);
|
8501
9074
|
addComponents({
|
8502
9075
|
[`.${prefix}tabs`]: {
|
8503
9076
|
[`@apply relative`]: {},
|
@@ -8552,14 +9125,15 @@ const tabs = plugin__default.withOptions(
|
|
8552
9125
|
return {
|
8553
9126
|
theme: {
|
8554
9127
|
shurikenUi: {
|
8555
|
-
|
9128
|
+
[key$7]: defaultConfig$7
|
8556
9129
|
}
|
8557
9130
|
}
|
8558
9131
|
};
|
8559
9132
|
}
|
8560
9133
|
);
|
8561
9134
|
|
8562
|
-
const
|
9135
|
+
const key$6 = "tag";
|
9136
|
+
const defaultConfig$6 = {
|
8563
9137
|
space: "3",
|
8564
9138
|
font: "sans",
|
8565
9139
|
duration: "300",
|
@@ -8721,6 +9295,7 @@ const defaultTagConfig = {
|
|
8721
9295
|
}
|
8722
9296
|
}
|
8723
9297
|
};
|
9298
|
+
|
8724
9299
|
const tag = plugin__default.withOptions(
|
8725
9300
|
function(options) {
|
8726
9301
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -8728,7 +9303,7 @@ const tag = plugin__default.withOptions(
|
|
8728
9303
|
prefix = `${prefix}-`;
|
8729
9304
|
}
|
8730
9305
|
return function({ addComponents, theme }) {
|
8731
|
-
const config = theme(
|
9306
|
+
const config = theme(`shurikenUi.${key$6}`);
|
8732
9307
|
addComponents({
|
8733
9308
|
[`.${prefix}tag`]: {
|
8734
9309
|
[`@apply inline-block px-${config.space} font-${config.font} transition-shadow duration-${config.duration}`]: {},
|
@@ -8857,14 +9432,15 @@ const tag = plugin__default.withOptions(
|
|
8857
9432
|
return {
|
8858
9433
|
theme: {
|
8859
9434
|
shurikenUi: {
|
8860
|
-
|
9435
|
+
[key$6]: defaultConfig$6
|
8861
9436
|
}
|
8862
9437
|
}
|
8863
9438
|
};
|
8864
9439
|
}
|
8865
9440
|
);
|
8866
9441
|
|
8867
|
-
const
|
9442
|
+
const key$5 = "text";
|
9443
|
+
const defaultConfig$5 = {
|
8868
9444
|
textXS: "xs",
|
8869
9445
|
textSM: "sm",
|
8870
9446
|
textMD: "base",
|
@@ -8890,6 +9466,7 @@ const defaultTextConfig = {
|
|
8890
9466
|
textLeadSnug: "snug",
|
8891
9467
|
textLeadLoose: "loose"
|
8892
9468
|
};
|
9469
|
+
|
8893
9470
|
const text$1 = plugin__default.withOptions(
|
8894
9471
|
function(options) {
|
8895
9472
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -8897,7 +9474,7 @@ const text$1 = plugin__default.withOptions(
|
|
8897
9474
|
prefix = `${prefix}-`;
|
8898
9475
|
}
|
8899
9476
|
return function({ addComponents, theme }) {
|
8900
|
-
const config = theme(
|
9477
|
+
const config = theme(`shurikenUi.${key$5}`);
|
8901
9478
|
addComponents({
|
8902
9479
|
[`.${prefix}text`]: {
|
8903
9480
|
[`@apply font-sans`]: {},
|
@@ -8981,14 +9558,15 @@ const text$1 = plugin__default.withOptions(
|
|
8981
9558
|
return {
|
8982
9559
|
theme: {
|
8983
9560
|
shurikenUi: {
|
8984
|
-
|
9561
|
+
[key$5]: defaultConfig$5
|
8985
9562
|
}
|
8986
9563
|
}
|
8987
9564
|
};
|
8988
9565
|
}
|
8989
9566
|
);
|
8990
9567
|
|
8991
|
-
const
|
9568
|
+
const key$4 = "textarea";
|
9569
|
+
const defaultConfig$4 = {
|
8992
9570
|
labelFloat: {
|
8993
9571
|
text: "primary-500",
|
8994
9572
|
size: "5",
|
@@ -9105,6 +9683,7 @@ const defaultTextareaConfig = {
|
|
9105
9683
|
}
|
9106
9684
|
}
|
9107
9685
|
};
|
9686
|
+
|
9108
9687
|
const textarea = plugin__default.withOptions(
|
9109
9688
|
function(options) {
|
9110
9689
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -9112,9 +9691,7 @@ const textarea = plugin__default.withOptions(
|
|
9112
9691
|
prefix = `${prefix}-`;
|
9113
9692
|
}
|
9114
9693
|
return function({ addComponents, theme }) {
|
9115
|
-
const config = theme(
|
9116
|
-
"shurikenUi.textarea"
|
9117
|
-
);
|
9694
|
+
const config = theme(`shurikenUi.${key$4}`);
|
9118
9695
|
addComponents({
|
9119
9696
|
[`.${prefix}textarea-wrapper`]: {
|
9120
9697
|
[`@apply relative`]: {},
|
@@ -9304,14 +9881,15 @@ const textarea = plugin__default.withOptions(
|
|
9304
9881
|
return {
|
9305
9882
|
theme: {
|
9306
9883
|
shurikenUi: {
|
9307
|
-
|
9884
|
+
[key$4]: defaultConfig$4
|
9308
9885
|
}
|
9309
9886
|
}
|
9310
9887
|
};
|
9311
9888
|
}
|
9312
9889
|
);
|
9313
9890
|
|
9314
|
-
const
|
9891
|
+
const key$3 = "themeSwitch";
|
9892
|
+
const defaultConfig$3 = {
|
9315
9893
|
bg: "muted-200",
|
9316
9894
|
bgDark: "muted-700",
|
9317
9895
|
rounded: "full",
|
@@ -9338,6 +9916,7 @@ const defaultThemeSwitchConfig = {
|
|
9338
9916
|
duration: "300"
|
9339
9917
|
}
|
9340
9918
|
};
|
9919
|
+
|
9341
9920
|
const themeSwitch = plugin__default.withOptions(
|
9342
9921
|
function(options) {
|
9343
9922
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -9345,9 +9924,7 @@ const themeSwitch = plugin__default.withOptions(
|
|
9345
9924
|
prefix = `${prefix}-`;
|
9346
9925
|
}
|
9347
9926
|
return function({ addComponents, theme }) {
|
9348
|
-
const config = theme(
|
9349
|
-
"shurikenUi.themeSwitch"
|
9350
|
-
);
|
9927
|
+
const config = theme(`shurikenUi.${key$3}`);
|
9351
9928
|
addComponents({
|
9352
9929
|
[`.${prefix}theme-switch`]: {
|
9353
9930
|
[`@apply bg-${config.bg} dark:bg-${config.bgDark} relative block h-6 w-14 scale-[0.8] rounded-${config.rounded}`]: {},
|
@@ -9386,14 +9963,15 @@ const themeSwitch = plugin__default.withOptions(
|
|
9386
9963
|
return {
|
9387
9964
|
theme: {
|
9388
9965
|
shurikenUi: {
|
9389
|
-
|
9966
|
+
[key$3]: defaultConfig$3
|
9390
9967
|
}
|
9391
9968
|
}
|
9392
9969
|
};
|
9393
9970
|
}
|
9394
9971
|
);
|
9395
9972
|
|
9396
|
-
const
|
9973
|
+
const key$2 = "themeToggle";
|
9974
|
+
const defaultConfig$2 = {
|
9397
9975
|
size: "9",
|
9398
9976
|
rounded: "full",
|
9399
9977
|
duration: "300",
|
@@ -9436,6 +10014,7 @@ const defaultThemeToggleConfig = {
|
|
9436
10014
|
}
|
9437
10015
|
}
|
9438
10016
|
};
|
10017
|
+
|
9439
10018
|
const themeToggle = plugin__default.withOptions(
|
9440
10019
|
function(options) {
|
9441
10020
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -9443,9 +10022,7 @@ const themeToggle = plugin__default.withOptions(
|
|
9443
10022
|
prefix = `${prefix}-`;
|
9444
10023
|
}
|
9445
10024
|
return function({ addComponents, theme }) {
|
9446
|
-
const config = theme(
|
9447
|
-
"shurikenUi.themeToggle"
|
9448
|
-
);
|
10025
|
+
const config = theme(`shurikenUi.${key$2}`);
|
9449
10026
|
addComponents({
|
9450
10027
|
[`.${prefix}theme-toggle`]: {
|
9451
10028
|
[`@apply ${prefix}focus relative block h-${config.size} w-${config.size} shrink-0 overflow-hidden rounded-${config.rounded} transition-all duration-${config.duration} focus-visible:outline-2 dark:ring-offset-${config.ringDark}`]: {},
|
@@ -9493,14 +10070,15 @@ const themeToggle = plugin__default.withOptions(
|
|
9493
10070
|
return {
|
9494
10071
|
theme: {
|
9495
10072
|
shurikenUi: {
|
9496
|
-
|
10073
|
+
[key$2]: defaultConfig$2
|
9497
10074
|
}
|
9498
10075
|
}
|
9499
10076
|
};
|
9500
10077
|
}
|
9501
10078
|
);
|
9502
10079
|
|
9503
|
-
const
|
10080
|
+
const key$1 = "toast";
|
10081
|
+
const defaultConfig$1 = {
|
9504
10082
|
font: "sans",
|
9505
10083
|
title: {
|
9506
10084
|
heading: "sm",
|
@@ -9600,6 +10178,7 @@ const defaultToastConfig = {
|
|
9600
10178
|
shadowSize: "xl"
|
9601
10179
|
}
|
9602
10180
|
};
|
10181
|
+
|
9603
10182
|
const toast = plugin__default.withOptions(
|
9604
10183
|
function(options) {
|
9605
10184
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -9607,9 +10186,7 @@ const toast = plugin__default.withOptions(
|
|
9607
10186
|
prefix = `${prefix}-`;
|
9608
10187
|
}
|
9609
10188
|
return function({ addComponents, theme }) {
|
9610
|
-
const config = theme(
|
9611
|
-
"shurikenUi.toast"
|
9612
|
-
);
|
10189
|
+
const config = theme(`shurikenUi.${key$1}`);
|
9613
10190
|
addComponents({
|
9614
10191
|
[`.${prefix}toast`]: {
|
9615
10192
|
[`@apply relative flex font-${config.font} overflow-hidden`]: {},
|
@@ -9720,14 +10297,15 @@ const toast = plugin__default.withOptions(
|
|
9720
10297
|
return {
|
9721
10298
|
theme: {
|
9722
10299
|
shurikenUi: {
|
9723
|
-
|
10300
|
+
[key$1]: defaultConfig$1
|
9724
10301
|
}
|
9725
10302
|
}
|
9726
10303
|
};
|
9727
10304
|
}
|
9728
10305
|
);
|
9729
10306
|
|
9730
|
-
const
|
10307
|
+
const key = "tooltip";
|
10308
|
+
const defaultConfig = {
|
9731
10309
|
font: "sans",
|
9732
10310
|
bg: "[#1e293b]",
|
9733
10311
|
bgDark: "[#ec4899]",
|
@@ -9736,6 +10314,7 @@ const defaultTooltipConfig = {
|
|
9736
10314
|
minWidth: "3rem",
|
9737
10315
|
maxWidth: "21rem"
|
9738
10316
|
};
|
10317
|
+
|
9739
10318
|
const tooltip = plugin__default.withOptions(
|
9740
10319
|
function(options) {
|
9741
10320
|
let { prefix } = defu.defu(options, defaultPluginOptions);
|
@@ -9743,9 +10322,7 @@ const tooltip = plugin__default.withOptions(
|
|
9743
10322
|
prefix = `${prefix}-`;
|
9744
10323
|
}
|
9745
10324
|
return function({ addComponents, theme }) {
|
9746
|
-
const config = theme(
|
9747
|
-
"shurikenUi.tooltip"
|
9748
|
-
);
|
10325
|
+
const config = theme(`shurikenUi.${key}`);
|
9749
10326
|
const tooltip = `data-${prefix}tooltip`;
|
9750
10327
|
const position = `data-${prefix}tooltip-position`;
|
9751
10328
|
addComponents({
|
@@ -9907,6 +10484,9 @@ const tooltip = plugin__default.withOptions(
|
|
9907
10484
|
}
|
9908
10485
|
return {
|
9909
10486
|
theme: {
|
10487
|
+
shurikenUi: {
|
10488
|
+
[key]: defaultConfig
|
10489
|
+
},
|
9910
10490
|
extend: {
|
9911
10491
|
keyframes: {
|
9912
10492
|
[`${prefix}tooltip-x`]: {
|
@@ -9926,9 +10506,6 @@ const tooltip = plugin__default.withOptions(
|
|
9926
10506
|
[`${prefix}tooltip-x`]: `${prefix}tooltip-x 300ms ease-out forwards`,
|
9927
10507
|
[`${prefix}tooltip-y`]: `${prefix}tooltip-y 300ms ease-out forwards`
|
9928
10508
|
}
|
9929
|
-
},
|
9930
|
-
shurikenUi: {
|
9931
|
-
tooltip: defaultTooltipConfig
|
9932
10509
|
}
|
9933
10510
|
}
|
9934
10511
|
};
|
@@ -9958,6 +10535,7 @@ const components = [
|
|
9958
10535
|
inputFileRegular,
|
9959
10536
|
inputFile,
|
9960
10537
|
input,
|
10538
|
+
inputNumber,
|
9961
10539
|
label,
|
9962
10540
|
link,
|
9963
10541
|
list,
|