@shuriken-ui/tailwind 1.4.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/preset.mjs CHANGED
@@ -15,7 +15,8 @@ const defaultPluginOptions = {
15
15
  prefix: "nui"
16
16
  };
17
17
 
18
- const defaultAccordionConfig = {
18
+ const key$R = "accordion";
19
+ const defaultConfig$Q = {
19
20
  size: "full",
20
21
  border: "muted-200",
21
22
  borderDark: "muted-700",
@@ -70,6 +71,7 @@ const defaultAccordionConfig = {
70
71
  curved: "xl"
71
72
  }
72
73
  };
74
+
73
75
  const accordion = plugin.withOptions(
74
76
  function(options) {
75
77
  let { prefix } = defu(options, defaultPluginOptions);
@@ -77,9 +79,7 @@ const accordion = plugin.withOptions(
77
79
  prefix = `${prefix}-`;
78
80
  }
79
81
  return function({ addComponents, theme }) {
80
- const config = theme(
81
- "shurikenUi.accordion"
82
- );
82
+ const config = theme(`shurikenUi.${key$R}`);
83
83
  addComponents({
84
84
  [`.${prefix}accordion`]: {
85
85
  [`@apply w-${config.size} border-${config.border} dark:border-${config.borderDark} dark:bg-${config.bgDark} block overflow-hidden border bg-${config.bg}`]: {},
@@ -168,14 +168,15 @@ const accordion = plugin.withOptions(
168
168
  return {
169
169
  theme: {
170
170
  shurikenUi: {
171
- accordion: defaultAccordionConfig
171
+ [key$R]: defaultConfig$Q
172
172
  }
173
173
  }
174
174
  };
175
175
  }
176
176
  );
177
177
 
178
- const defaultAutocompleteConfig = {
178
+ const key$Q = "autocomplete";
179
+ const defaultConfig$P = {
179
180
  labelFloat: {
180
181
  text: "primary-500",
181
182
  size: "5",
@@ -445,6 +446,7 @@ const defaultAutocompleteConfig = {
445
446
  }
446
447
  }
447
448
  };
449
+
448
450
  const autocomplete = plugin.withOptions(
449
451
  function(options) {
450
452
  let { prefix } = defu(options, defaultPluginOptions);
@@ -452,9 +454,7 @@ const autocomplete = plugin.withOptions(
452
454
  prefix = `${prefix}-`;
453
455
  }
454
456
  return function({ addComponents, theme }) {
455
- const config = theme(
456
- "shurikenUi.autocomplete"
457
- );
457
+ const config = theme(`shurikenUi.${key$Q}`);
458
458
  addComponents({
459
459
  [`.${prefix}autocomplete`]: {
460
460
  [`@apply w-full relative`]: {},
@@ -810,14 +810,15 @@ const autocomplete = plugin.withOptions(
810
810
  return {
811
811
  theme: {
812
812
  shurikenUi: {
813
- autocomplete: defaultAutocompleteConfig
813
+ [key$Q]: defaultConfig$P
814
814
  }
815
815
  }
816
816
  };
817
817
  }
818
818
  );
819
819
 
820
- const defaultAvatarConfig = {
820
+ const key$P = "avatar";
821
+ const defaultConfig$O = {
821
822
  avatarInner: {
822
823
  size: "full",
823
824
  duration: "300"
@@ -1056,6 +1057,7 @@ const defaultAvatarConfig = {
1056
1057
  avatarBadgePosition: "0"
1057
1058
  }
1058
1059
  };
1060
+
1059
1061
  const avatar = plugin.withOptions(
1060
1062
  function(options) {
1061
1063
  let { prefix } = defu(options, defaultPluginOptions);
@@ -1063,9 +1065,7 @@ const avatar = plugin.withOptions(
1063
1065
  prefix = `${prefix}-`;
1064
1066
  }
1065
1067
  return function({ addComponents, theme }) {
1066
- const config = theme(
1067
- "shurikenUi.avatar"
1068
- );
1068
+ const config = theme(`shurikenUi.${key$P}`);
1069
1069
  addComponents({
1070
1070
  [`.${prefix}avatar`]: {
1071
1071
  [`@apply relative inline-flex shrink-0 items-center justify-center outline-none`]: {},
@@ -1556,14 +1556,15 @@ const avatar = plugin.withOptions(
1556
1556
  return {
1557
1557
  theme: {
1558
1558
  shurikenUi: {
1559
- avatar: defaultAvatarConfig
1559
+ [key$P]: defaultConfig$O
1560
1560
  }
1561
1561
  }
1562
1562
  };
1563
1563
  }
1564
1564
  );
1565
1565
 
1566
- const defaultAvatarGroupConfig = {
1566
+ const key$O = "avatarGroup";
1567
+ const defaultConfig$N = {
1567
1568
  avatarOuter: {
1568
1569
  bg: "white",
1569
1570
  bgDark: "muted-800",
@@ -1639,6 +1640,7 @@ const defaultAvatarGroupConfig = {
1639
1640
  }
1640
1641
  }
1641
1642
  };
1643
+
1642
1644
  const avatarGroup = plugin.withOptions(
1643
1645
  function(options) {
1644
1646
  let { prefix } = defu(options, defaultPluginOptions);
@@ -1646,9 +1648,7 @@ const avatarGroup = plugin.withOptions(
1646
1648
  prefix = `${prefix}-`;
1647
1649
  }
1648
1650
  return function({ addComponents, theme }) {
1649
- const config = theme(
1650
- "shurikenUi.avatarGroup"
1651
- );
1651
+ const config = theme(`shurikenUi.${key$O}`);
1652
1652
  addComponents({
1653
1653
  [`.${prefix}avatar-group`]: {
1654
1654
  [`@apply flex`]: {},
@@ -1760,14 +1760,15 @@ const avatarGroup = plugin.withOptions(
1760
1760
  return {
1761
1761
  theme: {
1762
1762
  shurikenUi: {
1763
- avatarGroup: defaultAvatarGroupConfig
1763
+ [key$O]: defaultConfig$N
1764
1764
  }
1765
1765
  }
1766
1766
  };
1767
1767
  }
1768
1768
  );
1769
1769
 
1770
- const defaultBreadcrumbConfig = {
1770
+ const key$N = "breadcrumb";
1771
+ const defaultConfig$M = {
1771
1772
  list: {
1772
1773
  font: "sans",
1773
1774
  text: "[0.85rem]",
@@ -1791,6 +1792,7 @@ const defaultBreadcrumbConfig = {
1791
1792
  }
1792
1793
  }
1793
1794
  };
1795
+
1794
1796
  const breadcrumb = plugin.withOptions(
1795
1797
  function(options) {
1796
1798
  let { prefix } = defu(options, defaultPluginOptions);
@@ -1798,9 +1800,7 @@ const breadcrumb = plugin.withOptions(
1798
1800
  prefix = `${prefix}-`;
1799
1801
  }
1800
1802
  return function({ addComponents, theme }) {
1801
- const config = theme(
1802
- "shurikenUi.breadcrumb"
1803
- );
1803
+ const config = theme(`shurikenUi.${key$N}`);
1804
1804
  addComponents({
1805
1805
  [`.${prefix}breadcrumb`]: {
1806
1806
  [`.${prefix}breadcrumb-list`]: {
@@ -1838,14 +1838,15 @@ const breadcrumb = plugin.withOptions(
1838
1838
  return {
1839
1839
  theme: {
1840
1840
  shurikenUi: {
1841
- breadcrumb: defaultBreadcrumbConfig
1841
+ [key$N]: defaultConfig$M
1842
1842
  }
1843
1843
  }
1844
1844
  };
1845
1845
  }
1846
1846
  );
1847
1847
 
1848
- const defaultButtonActionConfig = {
1848
+ const key$M = "buttonAction";
1849
+ const defaultConfig$L = {
1849
1850
  font: "normal",
1850
1851
  text: "sm",
1851
1852
  duration: "300",
@@ -1970,6 +1971,7 @@ const defaultButtonActionConfig = {
1970
1971
  focusWithinDark: "danger-400"
1971
1972
  }
1972
1973
  };
1974
+
1973
1975
  const buttonAction = plugin.withOptions(
1974
1976
  function(options) {
1975
1977
  let { prefix } = defu(options, defaultPluginOptions);
@@ -1977,9 +1979,7 @@ const buttonAction = plugin.withOptions(
1977
1979
  prefix = `${prefix}-`;
1978
1980
  }
1979
1981
  return function({ addComponents, theme }) {
1980
- const config = theme(
1981
- "shurikenUi.buttonAction"
1982
- );
1982
+ const config = theme(`shurikenUi.${key$M}`);
1983
1983
  addComponents({
1984
1984
  [`.${prefix}button-action`]: {
1985
1985
  [`@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`]: {},
@@ -2027,14 +2027,15 @@ const buttonAction = plugin.withOptions(
2027
2027
  return {
2028
2028
  theme: {
2029
2029
  shurikenUi: {
2030
- buttonAction: defaultButtonActionConfig
2030
+ [key$M]: defaultConfig$L
2031
2031
  }
2032
2032
  }
2033
2033
  };
2034
2034
  }
2035
2035
  );
2036
2036
 
2037
- const defaultButtonCloseConfig = {
2037
+ const key$L = "buttonClose";
2038
+ const defaultConfig$K = {
2038
2039
  size: "9",
2039
2040
  duration: "300",
2040
2041
  buttonIcon: {
@@ -2085,6 +2086,7 @@ const defaultButtonCloseConfig = {
2085
2086
  text: "danger-500"
2086
2087
  }
2087
2088
  };
2089
+
2088
2090
  const buttonClose = plugin.withOptions(
2089
2091
  function(options) {
2090
2092
  let { prefix } = defu(options, defaultPluginOptions);
@@ -2092,9 +2094,7 @@ const buttonClose = plugin.withOptions(
2092
2094
  prefix = `${prefix}-`;
2093
2095
  }
2094
2096
  return function({ addComponents, theme }) {
2095
- const config = theme(
2096
- "shurikenUi.buttonClose"
2097
- );
2097
+ const config = theme(`shurikenUi.${key$L}`);
2098
2098
  addComponents({
2099
2099
  [`.${prefix}button-close`]: {
2100
2100
  [`@apply ${prefix}focus flex h-${config.size} w-${config.size} items-center justify-center transition-colors duration-${config.duration} disabled:opacity-30 cursor-pointer`]: {},
@@ -2142,14 +2142,16 @@ const buttonClose = plugin.withOptions(
2142
2142
  return {
2143
2143
  theme: {
2144
2144
  shurikenUi: {
2145
- buttonClose: defaultButtonCloseConfig
2145
+ [key$L]: defaultConfig$K
2146
2146
  }
2147
2147
  }
2148
2148
  };
2149
2149
  }
2150
2150
  );
2151
2151
 
2152
- const defaultButtonGroupConfig = {};
2152
+ const key$K = "buttonAction";
2153
+ const defaultConfig$J = {};
2154
+
2153
2155
  const buttonGroup = plugin.withOptions(
2154
2156
  function(options) {
2155
2157
  let { prefix } = defu(options, defaultPluginOptions);
@@ -2157,9 +2159,7 @@ const buttonGroup = plugin.withOptions(
2157
2159
  prefix = `${prefix}-`;
2158
2160
  }
2159
2161
  return function({ addComponents, theme }) {
2160
- theme(
2161
- "shurikenUi.buttonGroup"
2162
- );
2162
+ theme(`shurikenUi.${key$K}`);
2163
2163
  addComponents({
2164
2164
  [`.${prefix}button-group`]: {
2165
2165
  [`@apply flex`]: {},
@@ -2258,14 +2258,15 @@ const buttonGroup = plugin.withOptions(
2258
2258
  return {
2259
2259
  theme: {
2260
2260
  shurikenUi: {
2261
- buttonGroup: defaultButtonGroupConfig
2261
+ [key$K]: defaultConfig$J
2262
2262
  }
2263
2263
  }
2264
2264
  };
2265
2265
  }
2266
2266
  );
2267
2267
 
2268
- const defaultButtonIconConfig = {
2268
+ const key$J = "buttonIcon";
2269
+ const defaultConfig$I = {
2269
2270
  text: "sm",
2270
2271
  font: "normal",
2271
2272
  duration: "300",
@@ -2330,6 +2331,7 @@ const defaultButtonIconConfig = {
2330
2331
  text: "danger-500"
2331
2332
  }
2332
2333
  };
2334
+
2333
2335
  const buttonIcon = plugin.withOptions(
2334
2336
  function(options) {
2335
2337
  let { prefix } = defu(options, defaultPluginOptions);
@@ -2337,9 +2339,7 @@ const buttonIcon = plugin.withOptions(
2337
2339
  prefix = `${prefix}-`;
2338
2340
  }
2339
2341
  return function({ addComponents, theme }) {
2340
- const config = theme(
2341
- "shurikenUi.buttonIcon"
2342
- );
2342
+ const config = theme(`shurikenUi.${key$J}`);
2343
2343
  addComponents({
2344
2344
  [`.${prefix}button-icon`]: {
2345
2345
  [`@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`]: {},
@@ -2396,14 +2396,15 @@ const buttonIcon = plugin.withOptions(
2396
2396
  return {
2397
2397
  theme: {
2398
2398
  shurikenUi: {
2399
- buttonIcon: defaultButtonIconConfig
2399
+ [key$J]: defaultConfig$I
2400
2400
  }
2401
2401
  }
2402
2402
  };
2403
2403
  }
2404
2404
  );
2405
2405
 
2406
- const defaultButtonConfig = {
2406
+ const key$I = "button";
2407
+ const defaultConfig$H = {
2407
2408
  duration: "300",
2408
2409
  font: "normal",
2409
2410
  badge: {
@@ -2833,6 +2834,7 @@ const defaultButtonConfig = {
2833
2834
  }
2834
2835
  }
2835
2836
  };
2837
+
2836
2838
  const button = plugin.withOptions(
2837
2839
  function(options) {
2838
2840
  let { prefix } = defu(options, defaultPluginOptions);
@@ -2840,9 +2842,7 @@ const button = plugin.withOptions(
2840
2842
  prefix = `${prefix}-`;
2841
2843
  }
2842
2844
  return function({ addComponents, theme }) {
2843
- const config = theme(
2844
- "shurikenUi.button"
2845
- );
2845
+ const config = theme(`shurikenUi.${key$I}`);
2846
2846
  addComponents({
2847
2847
  [`.${prefix}button`]: {
2848
2848
  [`@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`]: {},
@@ -3091,14 +3091,15 @@ const button = plugin.withOptions(
3091
3091
  return {
3092
3092
  theme: {
3093
3093
  shurikenUi: {
3094
- button: defaultButtonConfig
3094
+ [key$I]: defaultConfig$H
3095
3095
  }
3096
3096
  }
3097
3097
  };
3098
3098
  }
3099
3099
  );
3100
3100
 
3101
- const defaultCardConfig = {
3101
+ const key$H = "card";
3102
+ const defaultConfig$G = {
3102
3103
  size: "full",
3103
3104
  duration: "300",
3104
3105
  cardWhite: {
@@ -3161,6 +3162,7 @@ const defaultCardConfig = {
3161
3162
  size: "xl"
3162
3163
  }
3163
3164
  };
3165
+
3164
3166
  const card = plugin.withOptions(
3165
3167
  function(options) {
3166
3168
  let { prefix } = defu(options, defaultPluginOptions);
@@ -3168,7 +3170,7 @@ const card = plugin.withOptions(
3168
3170
  prefix = `${prefix}-`;
3169
3171
  }
3170
3172
  return function({ addComponents, theme }) {
3171
- const config = theme("shurikenUi.card");
3173
+ const config = theme(`shurikenUi.${key$H}`);
3172
3174
  addComponents({
3173
3175
  [`.${prefix}card`]: {
3174
3176
  [`@apply relative w-${config.size} transition-all duration-${config.duration}`]: {},
@@ -3224,14 +3226,15 @@ const card = plugin.withOptions(
3224
3226
  return {
3225
3227
  theme: {
3226
3228
  shurikenUi: {
3227
- card: defaultCardConfig
3229
+ [key$H]: defaultConfig$G
3228
3230
  }
3229
3231
  }
3230
3232
  };
3231
3233
  }
3232
3234
  );
3233
3235
 
3234
- const defaultCheckboxConfig = {
3236
+ const key$G = "checkbox";
3237
+ const defaultConfig$F = {
3235
3238
  outer: {
3236
3239
  size: "5"
3237
3240
  },
@@ -3280,6 +3283,7 @@ const defaultCheckboxConfig = {
3280
3283
  warning: "warning-500",
3281
3284
  danger: "danger-500"
3282
3285
  };
3286
+
3283
3287
  const checkbox = plugin.withOptions(
3284
3288
  function(options) {
3285
3289
  let { prefix } = defu(options, defaultPluginOptions);
@@ -3287,9 +3291,7 @@ const checkbox = plugin.withOptions(
3287
3291
  prefix = `${prefix}-`;
3288
3292
  }
3289
3293
  return function({ addComponents, theme }) {
3290
- const config = theme(
3291
- "shurikenUi.checkbox"
3292
- );
3294
+ const config = theme(`shurikenUi.${key$G}`);
3293
3295
  addComponents({
3294
3296
  [`.${prefix}checkbox`]: {
3295
3297
  [`@apply relative inline-flex items-start gap-1`]: {},
@@ -3373,18 +3375,20 @@ const checkbox = plugin.withOptions(
3373
3375
  return {
3374
3376
  theme: {
3375
3377
  shurikenUi: {
3376
- checkbox: defaultCheckboxConfig
3378
+ [key$G]: defaultConfig$F
3377
3379
  }
3378
3380
  }
3379
3381
  };
3380
3382
  }
3381
3383
  );
3382
3384
 
3383
- const defaultDropdownDividerConfig = {
3385
+ const key$F = "drodownDivider";
3386
+ const defaultConfig$E = {
3384
3387
  space: "2",
3385
3388
  border: "muted-200",
3386
3389
  borderDark: "muted-600"
3387
3390
  };
3391
+
3388
3392
  const dropdownDivider = plugin.withOptions(
3389
3393
  function(options) {
3390
3394
  let { prefix } = defu(options, defaultPluginOptions);
@@ -3392,9 +3396,7 @@ const dropdownDivider = plugin.withOptions(
3392
3396
  prefix = `${prefix}-`;
3393
3397
  }
3394
3398
  return function({ addComponents, theme }) {
3395
- const config = theme(
3396
- "shurikenUi.dropdownDivider"
3397
- );
3399
+ const config = theme(`shurikenUi.${key$F}`);
3398
3400
  addComponents({
3399
3401
  [`.${prefix}dropdown-divider`]: {
3400
3402
  [`@apply my-${config.space} block h-px w-full border-t border-${config.border} dark:border-${config.borderDark}`]: {}
@@ -3406,14 +3408,15 @@ const dropdownDivider = plugin.withOptions(
3406
3408
  return {
3407
3409
  theme: {
3408
3410
  shurikenUi: {
3409
- dropdownDivider: defaultDropdownDividerConfig
3411
+ [key$F]: defaultConfig$E
3410
3412
  }
3411
3413
  }
3412
3414
  };
3413
3415
  }
3414
3416
  );
3415
3417
 
3416
- const defaultDropdownItemConfig = {
3418
+ const key$E = "dropdownItem";
3419
+ const defaultConfig$D = {
3417
3420
  itemRounded: "md",
3418
3421
  textPosition: "left",
3419
3422
  textSize: "sm",
@@ -3438,6 +3441,7 @@ const defaultDropdownItemConfig = {
3438
3441
  curved: "xl"
3439
3442
  }
3440
3443
  };
3444
+
3441
3445
  const dropdownItem = plugin.withOptions(
3442
3446
  function(options) {
3443
3447
  let { prefix } = defu(options, defaultPluginOptions);
@@ -3445,9 +3449,7 @@ const dropdownItem = plugin.withOptions(
3445
3449
  prefix = `${prefix}-`;
3446
3450
  }
3447
3451
  return function({ addComponents, theme }) {
3448
- const config = theme(
3449
- "shurikenUi.dropdownItem"
3450
- );
3452
+ const config = theme(`shurikenUi.${key$E}`);
3451
3453
  addComponents({
3452
3454
  [`.${prefix}dropdown-item`]: {
3453
3455
  [`@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}`]: {},
@@ -3484,14 +3486,15 @@ const dropdownItem = plugin.withOptions(
3484
3486
  return {
3485
3487
  theme: {
3486
3488
  shurikenUi: {
3487
- dropdownItem: defaultDropdownItemConfig
3489
+ [key$E]: defaultConfig$D
3488
3490
  }
3489
3491
  }
3490
3492
  };
3491
3493
  }
3492
3494
  );
3493
3495
 
3494
- const defaultDropdownConfig = {
3496
+ const key$D = "dropdown";
3497
+ const defaultConfig$C = {
3495
3498
  textPosition: "start",
3496
3499
  contextButton: {
3497
3500
  ringOffsetDark: "muted-900",
@@ -3589,6 +3592,7 @@ const defaultDropdownConfig = {
3589
3592
  ringDark: "muted-700/70"
3590
3593
  }
3591
3594
  };
3595
+
3592
3596
  const dropdown = plugin.withOptions(
3593
3597
  function(options) {
3594
3598
  let { prefix } = defu(options, defaultPluginOptions);
@@ -3596,9 +3600,7 @@ const dropdown = plugin.withOptions(
3596
3600
  prefix = `${prefix}-`;
3597
3601
  }
3598
3602
  return function({ addComponents, theme }) {
3599
- const config = theme(
3600
- "shurikenUi.dropdown"
3601
- );
3603
+ const config = theme(`shurikenUi.${key$D}`);
3602
3604
  addComponents({
3603
3605
  [`.${prefix}dropdown`]: {
3604
3606
  [`@apply text-${config.textPosition}`]: {},
@@ -3706,14 +3708,15 @@ const dropdown = plugin.withOptions(
3706
3708
  return {
3707
3709
  theme: {
3708
3710
  shurikenUi: {
3709
- dropdown: defaultDropdownConfig
3711
+ [key$D]: defaultConfig$C
3710
3712
  }
3711
3713
  }
3712
3714
  };
3713
3715
  }
3714
3716
  );
3715
3717
 
3716
- const defaultFocusConfig = {
3718
+ const key$C = "focus";
3719
+ const defaultConfig$B = {
3717
3720
  offset: "2",
3718
3721
  width: "2",
3719
3722
  style: "dashed",
@@ -3721,6 +3724,7 @@ const defaultFocusConfig = {
3721
3724
  colorDark: "muted-600",
3722
3725
  mode: "always"
3723
3726
  };
3727
+
3724
3728
  const focus = plugin.withOptions(
3725
3729
  function(options) {
3726
3730
  let { prefix } = defu(options, defaultPluginOptions);
@@ -3728,9 +3732,7 @@ const focus = plugin.withOptions(
3728
3732
  prefix = `${prefix}-`;
3729
3733
  }
3730
3734
  return function({ addComponents, theme }) {
3731
- const config = theme(
3732
- "shurikenUi.focus"
3733
- );
3735
+ const config = theme(`shurikenUi.${key$C}`);
3734
3736
  const mode = config.mode === "focus-visible" ? "&:has(:focus-visible), &:focus-visible" : "&:focus-within";
3735
3737
  addComponents({
3736
3738
  [`.${prefix}focus`]: {
@@ -3748,14 +3750,15 @@ const focus = plugin.withOptions(
3748
3750
  return {
3749
3751
  theme: {
3750
3752
  shurikenUi: {
3751
- focus: defaultFocusConfig
3753
+ [key$C]: defaultConfig$B
3752
3754
  }
3753
3755
  }
3754
3756
  };
3755
3757
  }
3756
3758
  );
3757
3759
 
3758
- const defaultFullscreenDropfileConfig = {
3760
+ const key$B = "fullscreenDropfile";
3761
+ const defaultConfig$A = {
3759
3762
  border: "primary-500",
3760
3763
  height: "[230px]",
3761
3764
  width: "[500px]",
@@ -3765,6 +3768,7 @@ const defaultFullscreenDropfileConfig = {
3765
3768
  },
3766
3769
  labelTextSize: "base"
3767
3770
  };
3771
+
3768
3772
  const fullscreenDropfile = plugin.withOptions(
3769
3773
  function(options) {
3770
3774
  let { prefix } = defu(options, defaultPluginOptions);
@@ -3773,7 +3777,7 @@ const fullscreenDropfile = plugin.withOptions(
3773
3777
  }
3774
3778
  return function({ addComponents, theme }) {
3775
3779
  const config = theme(
3776
- "shurikenUi.fullscreenDropfile"
3780
+ `shurikenUi.${key$B}`
3777
3781
  );
3778
3782
  addComponents({
3779
3783
  [`.${prefix}fullscreen-dropfile`]: {
@@ -3803,14 +3807,15 @@ const fullscreenDropfile = plugin.withOptions(
3803
3807
  return {
3804
3808
  theme: {
3805
3809
  shurikenUi: {
3806
- fullscreenDropfile: defaultFullscreenDropfileConfig
3810
+ [key$B]: defaultConfig$A
3807
3811
  }
3808
3812
  }
3809
3813
  };
3810
3814
  }
3811
3815
  );
3812
3816
 
3813
- const defaultHeadingConfig = {
3817
+ const key$A = "heading";
3818
+ const defaultConfig$z = {
3814
3819
  textXS: "xs",
3815
3820
  textSM: "sm",
3816
3821
  textMD: "base",
@@ -3836,6 +3841,7 @@ const defaultHeadingConfig = {
3836
3841
  textLeadSnug: "snug",
3837
3842
  textLeadLoose: "loose"
3838
3843
  };
3844
+
3839
3845
  const heading = plugin.withOptions(
3840
3846
  function(options) {
3841
3847
  let { prefix } = defu(options, defaultPluginOptions);
@@ -3843,9 +3849,7 @@ const heading = plugin.withOptions(
3843
3849
  prefix = `${prefix}-`;
3844
3850
  }
3845
3851
  return function({ addComponents, theme }) {
3846
- const config = theme(
3847
- "shurikenUi.heading"
3848
- );
3852
+ const config = theme(`shurikenUi.${key$A}`);
3849
3853
  addComponents({
3850
3854
  [`.${prefix}heading`]: {
3851
3855
  [`@apply font-sans`]: {},
@@ -3929,14 +3933,15 @@ const heading = plugin.withOptions(
3929
3933
  return {
3930
3934
  theme: {
3931
3935
  shurikenUi: {
3932
- heading: defaultHeadingConfig
3936
+ [key$A]: defaultConfig$z
3933
3937
  }
3934
3938
  }
3935
3939
  };
3936
3940
  }
3937
3941
  );
3938
3942
 
3939
- const defaultIconBoxConfig = {
3943
+ const key$z = "iconBox";
3944
+ const defaultConfig$y = {
3940
3945
  boxXS: {
3941
3946
  size: "8",
3942
3947
  rounded: {
@@ -4073,6 +4078,7 @@ const defaultIconBoxConfig = {
4073
4078
  borderColor: "current"
4074
4079
  }
4075
4080
  };
4081
+
4076
4082
  const iconBox = plugin.withOptions(
4077
4083
  function(options) {
4078
4084
  let { prefix } = defu(options, defaultPluginOptions);
@@ -4080,9 +4086,7 @@ const iconBox = plugin.withOptions(
4080
4086
  prefix = `${prefix}-`;
4081
4087
  }
4082
4088
  return function({ addComponents, theme }) {
4083
- const config = theme(
4084
- "shurikenUi.iconBox"
4085
- );
4089
+ const config = theme(`shurikenUi.${key$z}`);
4086
4090
  addComponents({
4087
4091
  [`.${prefix}icon-box`]: {
4088
4092
  [`@apply relative inline-flex shrink-0 items-center justify-center`]: {},
@@ -4220,14 +4224,15 @@ const iconBox = plugin.withOptions(
4220
4224
  return {
4221
4225
  theme: {
4222
4226
  shurikenUi: {
4223
- iconBox: defaultIconBoxConfig
4227
+ [key$z]: defaultConfig$y
4224
4228
  }
4225
4229
  }
4226
4230
  };
4227
4231
  }
4228
4232
  );
4229
4233
 
4230
- const defaultInputFileRegularConfig = {
4234
+ const key$y = "inputFileRegular";
4235
+ const defaultConfig$x = {
4231
4236
  inner: {
4232
4237
  size: "full",
4233
4238
  font: "sans",
@@ -4315,6 +4320,7 @@ const defaultInputFileRegularConfig = {
4315
4320
  hover: "primary-500",
4316
4321
  focusWhitin: "primary-500"
4317
4322
  };
4323
+
4318
4324
  const inputFileRegular = plugin.withOptions(
4319
4325
  function(options) {
4320
4326
  let { prefix } = defu(options, defaultPluginOptions);
@@ -4322,9 +4328,7 @@ const inputFileRegular = plugin.withOptions(
4322
4328
  prefix = `${prefix}-`;
4323
4329
  }
4324
4330
  return function({ addComponents, theme }) {
4325
- const config = theme(
4326
- "shurikenUi.inputFileRegular"
4327
- );
4331
+ const config = theme(`shurikenUi.${key$y}`);
4328
4332
  addComponents({
4329
4333
  [`.${prefix}input-file-regular`]: {
4330
4334
  [`@apply relative w-full`]: {},
@@ -4510,14 +4514,15 @@ const inputFileRegular = plugin.withOptions(
4510
4514
  return {
4511
4515
  theme: {
4512
4516
  shurikenUi: {
4513
- inputFileRegular: defaultInputFileRegularConfig
4517
+ [key$y]: defaultConfig$x
4514
4518
  }
4515
4519
  }
4516
4520
  };
4517
4521
  }
4518
4522
  );
4519
4523
 
4520
- const defaultInputFileConfig = {
4524
+ const key$x = "inputFile";
4525
+ const defaultConfig$w = {
4521
4526
  drop: {
4522
4527
  size: "64",
4523
4528
  border: "muted-200",
@@ -4598,6 +4603,7 @@ const defaultInputFileConfig = {
4598
4603
  full: "full"
4599
4604
  }
4600
4605
  };
4606
+
4601
4607
  const inputFile = plugin.withOptions(
4602
4608
  function(options) {
4603
4609
  let { prefix } = defu(options, defaultPluginOptions);
@@ -4605,9 +4611,7 @@ const inputFile = plugin.withOptions(
4605
4611
  prefix = `${prefix}-`;
4606
4612
  }
4607
4613
  return function({ addComponents, theme }) {
4608
- const config = theme(
4609
- "shurikenUi.inputFile"
4610
- );
4614
+ const config = theme(`shurikenUi.${key$x}`);
4611
4615
  addComponents({
4612
4616
  [`.${prefix}input-file`]: {
4613
4617
  [`@apply relative block ${prefix}focus`]: {},
@@ -4707,14 +4711,15 @@ const inputFile = plugin.withOptions(
4707
4711
  return {
4708
4712
  theme: {
4709
4713
  shurikenUi: {
4710
- inputFile: defaultInputFileConfig
4714
+ [key$x]: defaultConfig$w
4711
4715
  }
4712
4716
  }
4713
4717
  };
4714
4718
  }
4715
4719
  );
4716
4720
 
4717
- const defaultInputConfig = {
4721
+ const key$w = "input";
4722
+ const defaultConfig$v = {
4718
4723
  label: {
4719
4724
  float: {
4720
4725
  text: "primary-500",
@@ -4911,6 +4916,7 @@ const defaultInputConfig = {
4911
4916
  }
4912
4917
  }
4913
4918
  };
4919
+
4914
4920
  const input = plugin.withOptions(
4915
4921
  function(options) {
4916
4922
  let { prefix } = defu(options, defaultPluginOptions);
@@ -4918,9 +4924,7 @@ const input = plugin.withOptions(
4918
4924
  prefix = `${prefix}-`;
4919
4925
  }
4920
4926
  return function({ addComponents, theme }) {
4921
- const config = theme(
4922
- "shurikenUi.input"
4923
- );
4927
+ const config = theme(`shurikenUi.${key$w}`);
4924
4928
  addComponents({
4925
4929
  [`.${prefix}input-wrapper`]: {
4926
4930
  [`@apply relative`]: {},
@@ -5204,14 +5208,15 @@ const input = plugin.withOptions(
5204
5208
  return {
5205
5209
  theme: {
5206
5210
  shurikenUi: {
5207
- input: defaultInputConfig
5211
+ [key$w]: defaultConfig$v
5208
5212
  }
5209
5213
  }
5210
5214
  };
5211
5215
  }
5212
5216
  );
5213
5217
 
5214
- const defaultInputNumberConfig = {
5218
+ const key$v = "inputNumber";
5219
+ const defaultConfig$u = {
5215
5220
  label: {
5216
5221
  float: {
5217
5222
  text: "primary-500",
@@ -5408,6 +5413,7 @@ const defaultInputNumberConfig = {
5408
5413
  }
5409
5414
  }
5410
5415
  };
5416
+
5411
5417
  const inputNumber = plugin.withOptions(
5412
5418
  function(options) {
5413
5419
  let { prefix } = defu(options, defaultPluginOptions);
@@ -5415,9 +5421,7 @@ const inputNumber = plugin.withOptions(
5415
5421
  prefix = `${prefix}-`;
5416
5422
  }
5417
5423
  return function({ addComponents, theme }) {
5418
- const config = theme(
5419
- "shurikenUi.inputNumber"
5420
- );
5424
+ const config = theme(`shurikenUi.${key$v}`);
5421
5425
  addComponents({
5422
5426
  [`.${prefix}input-number-wrapper`]: {
5423
5427
  [`@apply relative`]: {},
@@ -5755,18 +5759,20 @@ const inputNumber = plugin.withOptions(
5755
5759
  return {
5756
5760
  theme: {
5757
5761
  shurikenUi: {
5758
- inputNumber: defaultInputNumberConfig
5762
+ [key$v]: defaultConfig$u
5759
5763
  }
5760
5764
  }
5761
5765
  };
5762
5766
  }
5763
5767
  );
5764
5768
 
5765
- const defaultLabelConfig = {
5769
+ const key$u = "label";
5770
+ const defaultConfig$t = {
5766
5771
  font: "sans",
5767
5772
  text: "muted-400",
5768
5773
  textDark: "muted-400/80"
5769
5774
  };
5775
+
5770
5776
  const label = plugin.withOptions(
5771
5777
  function(options) {
5772
5778
  let { prefix } = defu(options, defaultPluginOptions);
@@ -5774,9 +5780,7 @@ const label = plugin.withOptions(
5774
5780
  prefix = `${prefix}-`;
5775
5781
  }
5776
5782
  return function({ addComponents, theme }) {
5777
- const config = theme(
5778
- "shurikenUi.label"
5779
- );
5783
+ const config = theme(`shurikenUi.${key$u}`);
5780
5784
  addComponents({
5781
5785
  [`.${prefix}label`]: {
5782
5786
  [`@apply inline-block font-${config.font} leading-none text-${config.text} dark:text-${config.textDark}`]: {}
@@ -5788,20 +5792,22 @@ const label = plugin.withOptions(
5788
5792
  return {
5789
5793
  theme: {
5790
5794
  shurikenUi: {
5791
- label: defaultLabelConfig
5795
+ [key$u]: defaultConfig$t
5792
5796
  }
5793
5797
  }
5794
5798
  };
5795
5799
  }
5796
5800
  );
5797
5801
 
5798
- const defaultLinkConfig = {
5802
+ const key$t = "link";
5803
+ const defaultConfig$s = {
5799
5804
  font: "sans",
5800
5805
  textHover: "primary-500",
5801
5806
  textHoverDark: "primary-400",
5802
5807
  textFocus: "primary-500",
5803
5808
  textFocusDark: "primary-400"
5804
5809
  };
5810
+
5805
5811
  const link = plugin.withOptions(
5806
5812
  function(options) {
5807
5813
  let { prefix } = defu(options, defaultPluginOptions);
@@ -5809,7 +5815,7 @@ const link = plugin.withOptions(
5809
5815
  prefix = `${prefix}-`;
5810
5816
  }
5811
5817
  return function({ addComponents, theme }) {
5812
- const config = theme("shurikenUi.link");
5818
+ const config = theme(`shurikenUi.${key$t}`);
5813
5819
  addComponents({
5814
5820
  [`.${prefix}link`]: {
5815
5821
  [`@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`]: {}
@@ -5821,14 +5827,15 @@ const link = plugin.withOptions(
5821
5827
  return {
5822
5828
  theme: {
5823
5829
  shurikenUi: {
5824
- link: defaultLinkConfig
5830
+ [key$t]: defaultConfig$s
5825
5831
  }
5826
5832
  }
5827
5833
  };
5828
5834
  }
5829
5835
  );
5830
5836
 
5831
- const defaultListConfig = {
5837
+ const key$s = "list";
5838
+ const defaultConfig$r = {
5832
5839
  ul: "disc",
5833
5840
  ol: "decimal",
5834
5841
  base: {
@@ -5843,6 +5850,7 @@ const defaultListConfig = {
5843
5850
  textMarkerDark: "slate-400"
5844
5851
  }
5845
5852
  };
5853
+
5846
5854
  const list = plugin.withOptions(
5847
5855
  function(options) {
5848
5856
  let { prefix } = defu(options, defaultPluginOptions);
@@ -5850,7 +5858,7 @@ const list = plugin.withOptions(
5850
5858
  prefix = `${prefix}-`;
5851
5859
  }
5852
5860
  return function({ addComponents, theme }) {
5853
- const config = theme("shurikenUi.list");
5861
+ const config = theme(`shurikenUi.${key$s}`);
5854
5862
  addComponents({
5855
5863
  [`.${prefix}list`]: {
5856
5864
  [`&.${prefix}list-ul`]: {
@@ -5876,14 +5884,15 @@ const list = plugin.withOptions(
5876
5884
  return {
5877
5885
  theme: {
5878
5886
  shurikenUi: {
5879
- list: defaultListConfig
5887
+ [key$s]: defaultConfig$r
5880
5888
  }
5881
5889
  }
5882
5890
  };
5883
5891
  }
5884
5892
  );
5885
5893
 
5886
- const defaultListboxConfig = {
5894
+ const key$r = "listbox";
5895
+ const defaultConfig$q = {
5887
5896
  labelFloat: {
5888
5897
  text: "primary-500",
5889
5898
  size: "5",
@@ -6185,6 +6194,7 @@ const defaultListboxConfig = {
6185
6194
  }
6186
6195
  }
6187
6196
  };
6197
+
6188
6198
  const listbox = plugin.withOptions(
6189
6199
  function(options) {
6190
6200
  let { prefix } = defu(options, defaultPluginOptions);
@@ -6192,9 +6202,7 @@ const listbox = plugin.withOptions(
6192
6202
  prefix = `${prefix}-`;
6193
6203
  }
6194
6204
  return function({ addComponents, theme }) {
6195
- const config = theme(
6196
- "shurikenUi.listbox"
6197
- );
6205
+ const config = theme(`shurikenUi.${key$r}`);
6198
6206
  addComponents({
6199
6207
  [`.${prefix}listbox`]: {
6200
6208
  [`@apply relative w-full`]: {},
@@ -6544,19 +6552,21 @@ const listbox = plugin.withOptions(
6544
6552
  return {
6545
6553
  theme: {
6546
6554
  shurikenUi: {
6547
- listbox: defaultListboxConfig
6555
+ [key$r]: defaultConfig$q
6548
6556
  }
6549
6557
  }
6550
6558
  };
6551
6559
  }
6552
6560
  );
6553
6561
 
6554
- const defaultMarkConfig = {
6562
+ const key$q = "mark";
6563
+ const defaultConfig$p = {
6555
6564
  bg: "primary-100",
6556
6565
  bgDark: "primary-800",
6557
6566
  text: "primary-800",
6558
6567
  textDark: "primary-200"
6559
6568
  };
6569
+
6560
6570
  const mark = plugin.withOptions(
6561
6571
  function(options) {
6562
6572
  let { prefix } = defu(options, defaultPluginOptions);
@@ -6564,7 +6574,7 @@ const mark = plugin.withOptions(
6564
6574
  prefix = `${prefix}-`;
6565
6575
  }
6566
6576
  return function({ addComponents, theme }) {
6567
- const config = theme("shurikenUi.mark");
6577
+ const config = theme(`shurikenUi.${key$q}`);
6568
6578
  addComponents({
6569
6579
  [`.${prefix}mark`]: {
6570
6580
  [`@apply bg-${config.bg} dark:bg-${config.bgDark}`]: {},
@@ -6577,20 +6587,24 @@ const mark = plugin.withOptions(
6577
6587
  return {
6578
6588
  theme: {
6579
6589
  shurikenUi: {
6580
- mark: defaultMarkConfig
6590
+ [key$q]: defaultConfig$p
6581
6591
  }
6582
6592
  }
6583
6593
  };
6584
6594
  }
6585
6595
  );
6586
6596
 
6597
+ const key$p = "mask";
6598
+ const defaultConfig$o = {};
6599
+
6587
6600
  const mask = plugin.withOptions(
6588
6601
  function(options) {
6589
6602
  let { prefix } = defu(options, defaultPluginOptions);
6590
6603
  if (prefix) {
6591
6604
  prefix = `${prefix}-`;
6592
6605
  }
6593
- return function({ addComponents }) {
6606
+ return function({ addComponents, theme }) {
6607
+ theme(`shurikenUi.${key$p}`);
6594
6608
  addComponents({
6595
6609
  [`.${prefix}mask`]: {
6596
6610
  "mask-size": "contain",
@@ -6616,11 +6630,18 @@ const mask = plugin.withOptions(
6616
6630
  };
6617
6631
  },
6618
6632
  function() {
6619
- return {};
6633
+ return {
6634
+ theme: {
6635
+ shurikenUi: {
6636
+ [key$p]: defaultConfig$o
6637
+ }
6638
+ }
6639
+ };
6620
6640
  }
6621
6641
  );
6622
6642
 
6623
- const defaultMessageTextConfig = {
6643
+ const key$o = "messageText";
6644
+ const defaultConfig$n = {
6624
6645
  space: "6",
6625
6646
  head: {
6626
6647
  space: "2"
@@ -6694,6 +6715,7 @@ const defaultMessageTextConfig = {
6694
6715
  curved: "xl"
6695
6716
  }
6696
6717
  };
6718
+
6697
6719
  const messageText = plugin.withOptions(
6698
6720
  function(options) {
6699
6721
  let { prefix } = defu(options, defaultPluginOptions);
@@ -6701,9 +6723,7 @@ const messageText = plugin.withOptions(
6701
6723
  prefix = `${prefix}-`;
6702
6724
  }
6703
6725
  return function({ addComponents, theme }) {
6704
- const config = theme(
6705
- "shurikenUi.messageText"
6706
- );
6726
+ const config = theme(`shurikenUi.${key$o}`);
6707
6727
  addComponents({
6708
6728
  [`.${prefix}message-text`]: {
6709
6729
  [`@apply relative p-${config.space}`]: {},
@@ -6781,14 +6801,15 @@ const messageText = plugin.withOptions(
6781
6801
  return {
6782
6802
  theme: {
6783
6803
  shurikenUi: {
6784
- messageText: defaultMessageTextConfig
6804
+ [key$o]: defaultConfig$n
6785
6805
  }
6786
6806
  }
6787
6807
  };
6788
6808
  }
6789
6809
  );
6790
6810
 
6791
- const defaultMessageConfig = {
6811
+ const key$n = "message";
6812
+ const defaultConfig$m = {
6792
6813
  messageIconOuter: {
6793
6814
  size: "10",
6794
6815
  icon: {
@@ -6957,6 +6978,7 @@ const defaultMessageConfig = {
6957
6978
  }
6958
6979
  }
6959
6980
  };
6981
+
6960
6982
  const message = plugin.withOptions(
6961
6983
  function(options) {
6962
6984
  let { prefix } = defu(options, defaultPluginOptions);
@@ -6964,9 +6986,7 @@ const message = plugin.withOptions(
6964
6986
  prefix = `${prefix}-`;
6965
6987
  }
6966
6988
  return function({ addComponents, theme }) {
6967
- const config = theme(
6968
- "shurikenUi.message"
6969
- );
6989
+ const config = theme(`shurikenUi.${key$n}`);
6970
6990
  addComponents({
6971
6991
  [`.${prefix}message`]: {
6972
6992
  [`@apply flex min-h-[3rem] items-center border p-1 pe-2`]: {},
@@ -7101,14 +7121,15 @@ const message = plugin.withOptions(
7101
7121
  return {
7102
7122
  theme: {
7103
7123
  shurikenUi: {
7104
- message: defaultMessageConfig
7124
+ [key$n]: defaultConfig$m
7105
7125
  }
7106
7126
  }
7107
7127
  };
7108
7128
  }
7109
7129
  );
7110
7130
 
7111
- const defaultModalConfig = {
7131
+ const key$m = "modal";
7132
+ const defaultConfig$l = {
7112
7133
  backdrop: {
7113
7134
  bg: "muted-800/70",
7114
7135
  bgDark: "muted-900/80"
@@ -7127,6 +7148,7 @@ const defaultModalConfig = {
7127
7148
  modal2XL: "3xl",
7128
7149
  modal3XL: "5xl"
7129
7150
  };
7151
+
7130
7152
  const modal = plugin.withOptions(
7131
7153
  function(options) {
7132
7154
  let { prefix } = defu(options, defaultPluginOptions);
@@ -7134,9 +7156,7 @@ const modal = plugin.withOptions(
7134
7156
  prefix = `${prefix}-`;
7135
7157
  }
7136
7158
  return function({ addComponents, theme }) {
7137
- const config = theme(
7138
- "shurikenUi.modal"
7139
- );
7159
+ const config = theme(`shurikenUi.${key$m}`);
7140
7160
  addComponents({
7141
7161
  [`.${prefix}modal`]: {
7142
7162
  [`@apply fixed inset-0 z-[9999] flex items-center justify-center`]: {},
@@ -7193,14 +7213,15 @@ const modal = plugin.withOptions(
7193
7213
  return {
7194
7214
  theme: {
7195
7215
  shurikenUi: {
7196
- modal: defaultModalConfig
7216
+ [key$m]: defaultConfig$l
7197
7217
  }
7198
7218
  }
7199
7219
  };
7200
7220
  }
7201
7221
  );
7202
7222
 
7203
- const defaultPaginationConfig = {
7223
+ const key$l = "pagination";
7224
+ const defaultConfig$k = {
7204
7225
  size: "full",
7205
7226
  list: {
7206
7227
  border: "muted-200",
@@ -7277,6 +7298,7 @@ const defaultPaginationConfig = {
7277
7298
  full: "full"
7278
7299
  }
7279
7300
  };
7301
+
7280
7302
  const pagination = plugin.withOptions(
7281
7303
  function(options) {
7282
7304
  let { prefix } = defu(options, defaultPluginOptions);
@@ -7284,9 +7306,7 @@ const pagination = plugin.withOptions(
7284
7306
  prefix = `${prefix}-`;
7285
7307
  }
7286
7308
  return function({ addComponents, theme }) {
7287
- const config = theme(
7288
- "shurikenUi.pagination"
7289
- );
7309
+ const config = theme(`shurikenUi.${key$l}`);
7290
7310
  addComponents({
7291
7311
  [`.${prefix}pagination`]: {
7292
7312
  [`@apply inline-flex w-${config.size} flex-col md:flex-row md:justify-between`]: {},
@@ -7334,14 +7354,15 @@ const pagination = plugin.withOptions(
7334
7354
  return {
7335
7355
  theme: {
7336
7356
  shurikenUi: {
7337
- pagination: defaultPaginationConfig
7357
+ [key$l]: defaultConfig$k
7338
7358
  }
7339
7359
  }
7340
7360
  };
7341
7361
  }
7342
7362
  );
7343
7363
 
7344
- const defaultParagraphConfig = {
7364
+ const key$k = "paragraph";
7365
+ const defaultConfig$j = {
7345
7366
  textXS: "xs",
7346
7367
  textSM: "sm",
7347
7368
  textMD: "base",
@@ -7367,6 +7388,7 @@ const defaultParagraphConfig = {
7367
7388
  textLeadSnug: "snug",
7368
7389
  textLeadLoose: "loose"
7369
7390
  };
7391
+
7370
7392
  const paragraph = plugin.withOptions(
7371
7393
  function(options) {
7372
7394
  let { prefix } = defu(options, defaultPluginOptions);
@@ -7374,9 +7396,7 @@ const paragraph = plugin.withOptions(
7374
7396
  prefix = `${prefix}-`;
7375
7397
  }
7376
7398
  return function({ addComponents, theme }) {
7377
- const config = theme(
7378
- "shurikenUi.paragraph"
7379
- );
7399
+ const config = theme(`shurikenUi.${key$k}`);
7380
7400
  addComponents({
7381
7401
  [`.${prefix}paragraph`]: {
7382
7402
  [`@apply font-sans`]: {},
@@ -7460,14 +7480,15 @@ const paragraph = plugin.withOptions(
7460
7480
  return {
7461
7481
  theme: {
7462
7482
  shurikenUi: {
7463
- paragraph: defaultParagraphConfig
7483
+ [key$k]: defaultConfig$j
7464
7484
  }
7465
7485
  }
7466
7486
  };
7467
7487
  }
7468
7488
  );
7469
7489
 
7470
- const defaultPlaceholderPageConfig = {
7490
+ const key$j = "placeholderPage";
7491
+ const defaultConfig$i = {
7471
7492
  minSize: "[400px]",
7472
7493
  innerSize: "full",
7473
7494
  maxContentSize: "sm",
@@ -7484,6 +7505,7 @@ const defaultPlaceholderPageConfig = {
7484
7505
  text: "muted-400"
7485
7506
  }
7486
7507
  };
7508
+
7487
7509
  const placeholderPage = plugin.withOptions(
7488
7510
  function(options) {
7489
7511
  let { prefix } = defu(options, defaultPluginOptions);
@@ -7491,9 +7513,7 @@ const placeholderPage = plugin.withOptions(
7491
7513
  prefix = `${prefix}-`;
7492
7514
  }
7493
7515
  return function({ addComponents, theme }) {
7494
- const config = theme(
7495
- "shurikenUi.placeholderPage"
7496
- );
7516
+ const config = theme(`shurikenUi.${key$j}`);
7497
7517
  addComponents({
7498
7518
  [`.${prefix}placeholder-page`]: {
7499
7519
  [`@apply flex min-h-${config.minSize} items-center justify-center`]: {},
@@ -7538,20 +7558,24 @@ const placeholderPage = plugin.withOptions(
7538
7558
  return {
7539
7559
  theme: {
7540
7560
  shurikenUi: {
7541
- placeholderPage: defaultPlaceholderPageConfig
7561
+ [key$j]: defaultConfig$i
7542
7562
  }
7543
7563
  }
7544
7564
  };
7545
7565
  }
7546
7566
  );
7547
7567
 
7568
+ const key$i = "placeload";
7569
+ const defaultConfig$h = {};
7570
+
7548
7571
  const placeload = plugin.withOptions(
7549
7572
  function(options) {
7550
7573
  let { prefix } = defu(options, defaultPluginOptions);
7551
7574
  if (prefix) {
7552
7575
  prefix = `${prefix}-`;
7553
7576
  }
7554
- return function({ addComponents }) {
7577
+ return function({ addComponents, theme }) {
7578
+ theme(`shurikenUi.${key$i}`);
7555
7579
  addComponents({
7556
7580
  [`.${prefix}placeload`]: {
7557
7581
  position: "relative",
@@ -7573,6 +7597,9 @@ const placeload = plugin.withOptions(
7573
7597
  }
7574
7598
  return {
7575
7599
  theme: {
7600
+ shurikenUi: {
7601
+ [key$i]: defaultConfig$h
7602
+ },
7576
7603
  extend: {
7577
7604
  keyframes: {
7578
7605
  [`${prefix}placeload`]: {
@@ -7589,7 +7616,8 @@ const placeload = plugin.withOptions(
7589
7616
  }
7590
7617
  );
7591
7618
 
7592
- const defaultProgressCircleConfig = {
7619
+ const key$h = "progressCircle";
7620
+ const defaultConfig$g = {
7593
7621
  circleDuration: "500",
7594
7622
  default: {
7595
7623
  text: "muted-200",
@@ -7602,6 +7630,7 @@ const defaultProgressCircleConfig = {
7602
7630
  stroke: "current"
7603
7631
  }
7604
7632
  };
7633
+
7605
7634
  const progressCircle = plugin.withOptions(
7606
7635
  function(options) {
7607
7636
  let { prefix } = defu(options, defaultPluginOptions);
@@ -7609,9 +7638,7 @@ const progressCircle = plugin.withOptions(
7609
7638
  prefix = `${prefix}-`;
7610
7639
  }
7611
7640
  return function({ addComponents, theme }) {
7612
- const config = theme(
7613
- "shurikenUi.progressCircle"
7614
- );
7641
+ const config = theme(`shurikenUi.${key$h}`);
7615
7642
  addComponents({
7616
7643
  [`.${prefix}progress-circle`]: {
7617
7644
  [`@apply relative inline-flex items-center justify-center`]: {},
@@ -7632,14 +7659,15 @@ const progressCircle = plugin.withOptions(
7632
7659
  return {
7633
7660
  theme: {
7634
7661
  shurikenUi: {
7635
- progressCircle: defaultProgressCircleConfig
7662
+ [key$h]: defaultConfig$g
7636
7663
  }
7637
7664
  }
7638
7665
  };
7639
7666
  }
7640
7667
  );
7641
7668
 
7642
- const defaultProgressConfig = {
7669
+ const key$g = "progress";
7670
+ const defaultConfig$f = {
7643
7671
  size: "full",
7644
7672
  bar: {
7645
7673
  duration: "300"
@@ -7667,6 +7695,7 @@ const defaultProgressConfig = {
7667
7695
  warning: "warning-500",
7668
7696
  danger: "danger-500"
7669
7697
  };
7698
+
7670
7699
  const progress = plugin.withOptions(
7671
7700
  function(options) {
7672
7701
  let { prefix } = defu(options, defaultPluginOptions);
@@ -7674,9 +7703,7 @@ const progress = plugin.withOptions(
7674
7703
  prefix = `${prefix}-`;
7675
7704
  }
7676
7705
  return function({ addComponents, theme }) {
7677
- const config = theme(
7678
- "shurikenUi.progress"
7679
- );
7706
+ const config = theme(`shurikenUi.${key$g}`);
7680
7707
  addComponents({
7681
7708
  [`.${prefix}progress`]: {
7682
7709
  [`@apply relative w-${config.size} overflow-hidden`]: {},
@@ -7753,7 +7780,7 @@ const progress = plugin.withOptions(
7753
7780
  return {
7754
7781
  theme: {
7755
7782
  shurikenUi: {
7756
- progress: defaultProgressConfig
7783
+ [key$g]: defaultConfig$f
7757
7784
  },
7758
7785
  extend: {
7759
7786
  keyframes: {
@@ -7772,7 +7799,8 @@ const progress = plugin.withOptions(
7772
7799
  }
7773
7800
  );
7774
7801
 
7775
- const defaultProseConfig = {
7802
+ const key$f = "prose";
7803
+ const defaultConfig$e = {
7776
7804
  color: "muted",
7777
7805
  dark: "invert",
7778
7806
  space: "4",
@@ -7791,6 +7819,7 @@ const defaultProseConfig = {
7791
7819
  tdBorderDark: "muted-700"
7792
7820
  }
7793
7821
  };
7822
+
7794
7823
  const prose = plugin.withOptions(
7795
7824
  function(options) {
7796
7825
  let { prefix } = defu(options, defaultPluginOptions);
@@ -7798,9 +7827,7 @@ const prose = plugin.withOptions(
7798
7827
  prefix = `${prefix}-`;
7799
7828
  }
7800
7829
  return function({ addComponents, theme }) {
7801
- const config = theme(
7802
- "shurikenUi.prose"
7803
- );
7830
+ const config = theme(`shurikenUi.${key$f}`);
7804
7831
  addComponents({
7805
7832
  [`.${prefix}prose`]: {
7806
7833
  [`@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}`]: {},
@@ -7821,14 +7848,15 @@ const prose = plugin.withOptions(
7821
7848
  return {
7822
7849
  theme: {
7823
7850
  shurikenUi: {
7824
- prose: defaultProseConfig
7851
+ [key$f]: defaultConfig$e
7825
7852
  }
7826
7853
  }
7827
7854
  };
7828
7855
  }
7829
7856
  );
7830
7857
 
7831
- const defaultRadioConfig = {
7858
+ const key$e = "radio";
7859
+ const defaultConfig$d = {
7832
7860
  outer: {
7833
7861
  size: "5"
7834
7862
  },
@@ -7871,6 +7899,7 @@ const defaultRadioConfig = {
7871
7899
  warning: "warning-500",
7872
7900
  danger: "danger-500"
7873
7901
  };
7902
+
7874
7903
  const radio = plugin.withOptions(
7875
7904
  function(options) {
7876
7905
  let { prefix } = defu(options, defaultPluginOptions);
@@ -7878,9 +7907,7 @@ const radio = plugin.withOptions(
7878
7907
  prefix = `${prefix}-`;
7879
7908
  }
7880
7909
  return function({ addComponents, theme }) {
7881
- const config = theme(
7882
- "shurikenUi.radio"
7883
- );
7910
+ const config = theme(`shurikenUi.${key$e}`);
7884
7911
  addComponents({
7885
7912
  [`.${prefix}radio`]: {
7886
7913
  [`@apply relative inline-flex items-start gap-1`]: {},
@@ -7943,14 +7970,15 @@ const radio = plugin.withOptions(
7943
7970
  return {
7944
7971
  theme: {
7945
7972
  shurikenUi: {
7946
- radio: defaultRadioConfig
7973
+ [key$e]: defaultConfig$d
7947
7974
  }
7948
7975
  }
7949
7976
  };
7950
7977
  }
7951
7978
  );
7952
7979
 
7953
- const defaultSelectConfig = {
7980
+ const key$d = "select";
7981
+ const defaultConfig$c = {
7954
7982
  labelFloat: {
7955
7983
  text: "primary-500",
7956
7984
  size: "5",
@@ -8119,6 +8147,7 @@ const defaultSelectConfig = {
8119
8147
  }
8120
8148
  }
8121
8149
  };
8150
+
8122
8151
  const select = plugin.withOptions(
8123
8152
  function(options) {
8124
8153
  let { prefix } = defu(options, defaultPluginOptions);
@@ -8126,9 +8155,7 @@ const select = plugin.withOptions(
8126
8155
  prefix = `${prefix}-`;
8127
8156
  }
8128
8157
  return function({ addComponents, theme }) {
8129
- const config = theme(
8130
- "shurikenUi.select"
8131
- );
8158
+ const config = theme(`shurikenUi.${key$d}`);
8132
8159
  addComponents({
8133
8160
  [`.${prefix}select-wrapper`]: {
8134
8161
  [`@apply relative`]: {},
@@ -8410,20 +8437,22 @@ const select = plugin.withOptions(
8410
8437
  return {
8411
8438
  theme: {
8412
8439
  shurikenUi: {
8413
- select: defaultSelectConfig
8440
+ [key$d]: defaultConfig$c
8414
8441
  }
8415
8442
  }
8416
8443
  };
8417
8444
  }
8418
8445
  );
8419
8446
 
8420
- const defaultSlimscrollConfig = {
8447
+ const key$c = "slimscroll";
8448
+ const defaultConfig$b = {
8421
8449
  width: "[6px]",
8422
8450
  bg: "black/5",
8423
8451
  bgDark: "white/5",
8424
8452
  bgHover: "black/20",
8425
8453
  bgHoverDark: "white/20"
8426
8454
  };
8455
+
8427
8456
  const slimscroll = plugin.withOptions(
8428
8457
  function(options) {
8429
8458
  let { prefix } = defu(options, defaultPluginOptions);
@@ -8431,9 +8460,7 @@ const slimscroll = plugin.withOptions(
8431
8460
  prefix = `${prefix}-`;
8432
8461
  }
8433
8462
  return function({ addComponents, theme }) {
8434
- const config = theme(
8435
- "shurikenUi.slimscroll"
8436
- );
8463
+ const config = theme(`shurikenUi.${key$c}`);
8437
8464
  addComponents({
8438
8465
  [`.${prefix}slimscroll::-webkit-scrollbar, .${prefix}slimscroll-opaque::-webkit-scrollbar`]: {
8439
8466
  scrollBehavior: "smooth",
@@ -8456,14 +8483,15 @@ const slimscroll = plugin.withOptions(
8456
8483
  return {
8457
8484
  theme: {
8458
8485
  shurikenUi: {
8459
- slimscroll: defaultSlimscrollConfig
8486
+ [key$c]: defaultConfig$b
8460
8487
  }
8461
8488
  }
8462
8489
  };
8463
8490
  }
8464
8491
  );
8465
8492
 
8466
- const defaultSnackConfig = {
8493
+ const key$b = "snack";
8494
+ const defaultConfig$a = {
8467
8495
  rounded: "full",
8468
8496
  icon: {
8469
8497
  border: "muted-200",
@@ -8517,6 +8545,7 @@ const defaultSnackConfig = {
8517
8545
  bgDark: "muted-700"
8518
8546
  }
8519
8547
  };
8548
+
8520
8549
  const snack = plugin.withOptions(
8521
8550
  function(options) {
8522
8551
  let { prefix } = defu(options, defaultPluginOptions);
@@ -8524,9 +8553,7 @@ const snack = plugin.withOptions(
8524
8553
  prefix = `${prefix}-`;
8525
8554
  }
8526
8555
  return function({ addComponents, theme }) {
8527
- const config = theme(
8528
- "shurikenUi.snack"
8529
- );
8556
+ const config = theme(`shurikenUi.${key$b}`);
8530
8557
  addComponents({
8531
8558
  [`.${prefix}snack`]: {
8532
8559
  [`@apply inline-flex items-center gap-1 rounded-${config.rounded} outline-transparent`]: {},
@@ -8586,14 +8613,15 @@ const snack = plugin.withOptions(
8586
8613
  return {
8587
8614
  theme: {
8588
8615
  shurikenUi: {
8589
- snack: defaultSnackConfig
8616
+ [key$b]: defaultConfig$a
8590
8617
  }
8591
8618
  }
8592
8619
  };
8593
8620
  }
8594
8621
  );
8595
8622
 
8596
- const defaultSwitchBallConfig = {
8623
+ const key$a = "switchBall";
8624
+ const defaulConfig = {
8597
8625
  handle: {
8598
8626
  border: "muted-300",
8599
8627
  borderDark: "muted-600",
@@ -8641,6 +8669,7 @@ const defaultSwitchBallConfig = {
8641
8669
  warning: "warning-400",
8642
8670
  danger: "danger-400"
8643
8671
  };
8672
+
8644
8673
  const switchBall = plugin.withOptions(
8645
8674
  function(options) {
8646
8675
  let { prefix } = defu(options, defaultPluginOptions);
@@ -8648,9 +8677,7 @@ const switchBall = plugin.withOptions(
8648
8677
  prefix = `${prefix}-`;
8649
8678
  }
8650
8679
  return function({ addComponents, theme }) {
8651
- const config = theme(
8652
- "shurikenUi.switchBall"
8653
- );
8680
+ const config = theme(`shurikenUi.${key$a}`);
8654
8681
  addComponents({
8655
8682
  [`.${prefix}switch-ball`]: {
8656
8683
  [`@apply flex cursor-pointer items-center`]: {},
@@ -8710,14 +8737,15 @@ const switchBall = plugin.withOptions(
8710
8737
  return {
8711
8738
  theme: {
8712
8739
  shurikenUi: {
8713
- switchBall: defaultSwitchBallConfig
8740
+ [key$a]: defaulConfig
8714
8741
  }
8715
8742
  }
8716
8743
  };
8717
8744
  }
8718
8745
  );
8719
8746
 
8720
- const defaultSwitchThinConfig = {
8747
+ const key$9 = "switchThin";
8748
+ const defaultConfig$9 = {
8721
8749
  handle: {
8722
8750
  border: "muted-300",
8723
8751
  borderDark: "muted-600",
@@ -8760,6 +8788,7 @@ const defaultSwitchThinConfig = {
8760
8788
  warning: "warning-400",
8761
8789
  danger: "danger-400"
8762
8790
  };
8791
+
8763
8792
  const switchThin = plugin.withOptions(
8764
8793
  function(options) {
8765
8794
  let { prefix } = defu(options, defaultPluginOptions);
@@ -8767,9 +8796,7 @@ const switchThin = plugin.withOptions(
8767
8796
  prefix = `${prefix}-`;
8768
8797
  }
8769
8798
  return function({ addComponents, theme }) {
8770
- const config = theme(
8771
- "shurikenUi.switchThin"
8772
- );
8799
+ const config = theme(`shurikenUi.switchThin`);
8773
8800
  addComponents({
8774
8801
  [`.${prefix}switch-thin`]: {
8775
8802
  [`@apply flex cursor-pointer items-center`]: {},
@@ -8823,14 +8850,15 @@ const switchThin = plugin.withOptions(
8823
8850
  return {
8824
8851
  theme: {
8825
8852
  shurikenUi: {
8826
- switchThin: defaultSwitchThinConfig
8853
+ [key$9]: defaultConfig$9
8827
8854
  }
8828
8855
  }
8829
8856
  };
8830
8857
  }
8831
8858
  );
8832
8859
 
8833
- const defaultTabSliderConfig = {
8860
+ const key$8 = "tabSlider";
8861
+ const defaultConfig$8 = {
8834
8862
  track: {
8835
8863
  bg: "muted-100",
8836
8864
  bgDark: "muted-700",
@@ -8864,6 +8892,7 @@ const defaultTabSliderConfig = {
8864
8892
  track: "10"
8865
8893
  }
8866
8894
  };
8895
+
8867
8896
  const tabSlider = plugin.withOptions(
8868
8897
  function(options) {
8869
8898
  let { prefix } = defu(options, defaultPluginOptions);
@@ -8871,9 +8900,7 @@ const tabSlider = plugin.withOptions(
8871
8900
  prefix = `${prefix}-`;
8872
8901
  }
8873
8902
  return function({ addComponents, theme }) {
8874
- const config = theme(
8875
- "shurikenUi.tabSlider"
8876
- );
8903
+ const config = theme(`shurikenUi.${key$8}`);
8877
8904
  addComponents({
8878
8905
  [`.${prefix}tab-slider`]: {
8879
8906
  [`@apply relative`]: {},
@@ -8984,14 +9011,15 @@ const tabSlider = plugin.withOptions(
8984
9011
  return {
8985
9012
  theme: {
8986
9013
  shurikenUi: {
8987
- tabSlider: defaultTabSliderConfig
9014
+ [key$8]: defaultConfig$8
8988
9015
  }
8989
9016
  }
8990
9017
  };
8991
9018
  }
8992
9019
  );
8993
9020
 
8994
- const defaultTabsConfig = {
9021
+ const key$7 = "tabs";
9022
+ const defaultConfig$7 = {
8995
9023
  inner: {
8996
9024
  font: "sans",
8997
9025
  space: "6"
@@ -9024,6 +9052,7 @@ const defaultTabsConfig = {
9024
9052
  }
9025
9053
  }
9026
9054
  };
9055
+
9027
9056
  const tabs = plugin.withOptions(
9028
9057
  function(options) {
9029
9058
  let { prefix } = defu(options, defaultPluginOptions);
@@ -9031,7 +9060,7 @@ const tabs = plugin.withOptions(
9031
9060
  prefix = `${prefix}-`;
9032
9061
  }
9033
9062
  return function({ addComponents, theme }) {
9034
- const config = theme("shurikenUi.tabs");
9063
+ const config = theme(`shurikenUi.${key$7}`);
9035
9064
  addComponents({
9036
9065
  [`.${prefix}tabs`]: {
9037
9066
  [`@apply relative`]: {},
@@ -9086,14 +9115,15 @@ const tabs = plugin.withOptions(
9086
9115
  return {
9087
9116
  theme: {
9088
9117
  shurikenUi: {
9089
- tabs: defaultTabsConfig
9118
+ [key$7]: defaultConfig$7
9090
9119
  }
9091
9120
  }
9092
9121
  };
9093
9122
  }
9094
9123
  );
9095
9124
 
9096
- const defaultTagConfig = {
9125
+ const key$6 = "tag";
9126
+ const defaultConfig$6 = {
9097
9127
  space: "3",
9098
9128
  font: "sans",
9099
9129
  duration: "300",
@@ -9255,6 +9285,7 @@ const defaultTagConfig = {
9255
9285
  }
9256
9286
  }
9257
9287
  };
9288
+
9258
9289
  const tag = plugin.withOptions(
9259
9290
  function(options) {
9260
9291
  let { prefix } = defu(options, defaultPluginOptions);
@@ -9262,7 +9293,7 @@ const tag = plugin.withOptions(
9262
9293
  prefix = `${prefix}-`;
9263
9294
  }
9264
9295
  return function({ addComponents, theme }) {
9265
- const config = theme("shurikenUi.tag");
9296
+ const config = theme(`shurikenUi.${key$6}`);
9266
9297
  addComponents({
9267
9298
  [`.${prefix}tag`]: {
9268
9299
  [`@apply inline-block px-${config.space} font-${config.font} transition-shadow duration-${config.duration}`]: {},
@@ -9391,14 +9422,15 @@ const tag = plugin.withOptions(
9391
9422
  return {
9392
9423
  theme: {
9393
9424
  shurikenUi: {
9394
- tag: defaultTagConfig
9425
+ [key$6]: defaultConfig$6
9395
9426
  }
9396
9427
  }
9397
9428
  };
9398
9429
  }
9399
9430
  );
9400
9431
 
9401
- const defaultTextConfig = {
9432
+ const key$5 = "text";
9433
+ const defaultConfig$5 = {
9402
9434
  textXS: "xs",
9403
9435
  textSM: "sm",
9404
9436
  textMD: "base",
@@ -9424,6 +9456,7 @@ const defaultTextConfig = {
9424
9456
  textLeadSnug: "snug",
9425
9457
  textLeadLoose: "loose"
9426
9458
  };
9459
+
9427
9460
  const text$1 = plugin.withOptions(
9428
9461
  function(options) {
9429
9462
  let { prefix } = defu(options, defaultPluginOptions);
@@ -9431,7 +9464,7 @@ const text$1 = plugin.withOptions(
9431
9464
  prefix = `${prefix}-`;
9432
9465
  }
9433
9466
  return function({ addComponents, theme }) {
9434
- const config = theme("shurikenUi.text");
9467
+ const config = theme(`shurikenUi.${key$5}`);
9435
9468
  addComponents({
9436
9469
  [`.${prefix}text`]: {
9437
9470
  [`@apply font-sans`]: {},
@@ -9515,14 +9548,15 @@ const text$1 = plugin.withOptions(
9515
9548
  return {
9516
9549
  theme: {
9517
9550
  shurikenUi: {
9518
- text: defaultTextConfig
9551
+ [key$5]: defaultConfig$5
9519
9552
  }
9520
9553
  }
9521
9554
  };
9522
9555
  }
9523
9556
  );
9524
9557
 
9525
- const defaultTextareaConfig = {
9558
+ const key$4 = "textarea";
9559
+ const defaultConfig$4 = {
9526
9560
  labelFloat: {
9527
9561
  text: "primary-500",
9528
9562
  size: "5",
@@ -9639,6 +9673,7 @@ const defaultTextareaConfig = {
9639
9673
  }
9640
9674
  }
9641
9675
  };
9676
+
9642
9677
  const textarea = plugin.withOptions(
9643
9678
  function(options) {
9644
9679
  let { prefix } = defu(options, defaultPluginOptions);
@@ -9646,9 +9681,7 @@ const textarea = plugin.withOptions(
9646
9681
  prefix = `${prefix}-`;
9647
9682
  }
9648
9683
  return function({ addComponents, theme }) {
9649
- const config = theme(
9650
- "shurikenUi.textarea"
9651
- );
9684
+ const config = theme(`shurikenUi.${key$4}`);
9652
9685
  addComponents({
9653
9686
  [`.${prefix}textarea-wrapper`]: {
9654
9687
  [`@apply relative`]: {},
@@ -9838,14 +9871,15 @@ const textarea = plugin.withOptions(
9838
9871
  return {
9839
9872
  theme: {
9840
9873
  shurikenUi: {
9841
- textarea: defaultTextareaConfig
9874
+ [key$4]: defaultConfig$4
9842
9875
  }
9843
9876
  }
9844
9877
  };
9845
9878
  }
9846
9879
  );
9847
9880
 
9848
- const defaultThemeSwitchConfig = {
9881
+ const key$3 = "themeSwitch";
9882
+ const defaultConfig$3 = {
9849
9883
  bg: "muted-200",
9850
9884
  bgDark: "muted-700",
9851
9885
  rounded: "full",
@@ -9872,6 +9906,7 @@ const defaultThemeSwitchConfig = {
9872
9906
  duration: "300"
9873
9907
  }
9874
9908
  };
9909
+
9875
9910
  const themeSwitch = plugin.withOptions(
9876
9911
  function(options) {
9877
9912
  let { prefix } = defu(options, defaultPluginOptions);
@@ -9879,9 +9914,7 @@ const themeSwitch = plugin.withOptions(
9879
9914
  prefix = `${prefix}-`;
9880
9915
  }
9881
9916
  return function({ addComponents, theme }) {
9882
- const config = theme(
9883
- "shurikenUi.themeSwitch"
9884
- );
9917
+ const config = theme(`shurikenUi.${key$3}`);
9885
9918
  addComponents({
9886
9919
  [`.${prefix}theme-switch`]: {
9887
9920
  [`@apply bg-${config.bg} dark:bg-${config.bgDark} relative block h-6 w-14 scale-[0.8] rounded-${config.rounded}`]: {},
@@ -9920,14 +9953,15 @@ const themeSwitch = plugin.withOptions(
9920
9953
  return {
9921
9954
  theme: {
9922
9955
  shurikenUi: {
9923
- themeSwitch: defaultThemeSwitchConfig
9956
+ [key$3]: defaultConfig$3
9924
9957
  }
9925
9958
  }
9926
9959
  };
9927
9960
  }
9928
9961
  );
9929
9962
 
9930
- const defaultThemeToggleConfig = {
9963
+ const key$2 = "themeToggle";
9964
+ const defaultConfig$2 = {
9931
9965
  size: "9",
9932
9966
  rounded: "full",
9933
9967
  duration: "300",
@@ -9970,6 +10004,7 @@ const defaultThemeToggleConfig = {
9970
10004
  }
9971
10005
  }
9972
10006
  };
10007
+
9973
10008
  const themeToggle = plugin.withOptions(
9974
10009
  function(options) {
9975
10010
  let { prefix } = defu(options, defaultPluginOptions);
@@ -9977,9 +10012,7 @@ const themeToggle = plugin.withOptions(
9977
10012
  prefix = `${prefix}-`;
9978
10013
  }
9979
10014
  return function({ addComponents, theme }) {
9980
- const config = theme(
9981
- "shurikenUi.themeToggle"
9982
- );
10015
+ const config = theme(`shurikenUi.${key$2}`);
9983
10016
  addComponents({
9984
10017
  [`.${prefix}theme-toggle`]: {
9985
10018
  [`@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}`]: {},
@@ -10027,14 +10060,15 @@ const themeToggle = plugin.withOptions(
10027
10060
  return {
10028
10061
  theme: {
10029
10062
  shurikenUi: {
10030
- themeToggle: defaultThemeToggleConfig
10063
+ [key$2]: defaultConfig$2
10031
10064
  }
10032
10065
  }
10033
10066
  };
10034
10067
  }
10035
10068
  );
10036
10069
 
10037
- const defaultToastConfig = {
10070
+ const key$1 = "toast";
10071
+ const defaultConfig$1 = {
10038
10072
  font: "sans",
10039
10073
  title: {
10040
10074
  heading: "sm",
@@ -10134,6 +10168,7 @@ const defaultToastConfig = {
10134
10168
  shadowSize: "xl"
10135
10169
  }
10136
10170
  };
10171
+
10137
10172
  const toast = plugin.withOptions(
10138
10173
  function(options) {
10139
10174
  let { prefix } = defu(options, defaultPluginOptions);
@@ -10141,9 +10176,7 @@ const toast = plugin.withOptions(
10141
10176
  prefix = `${prefix}-`;
10142
10177
  }
10143
10178
  return function({ addComponents, theme }) {
10144
- const config = theme(
10145
- "shurikenUi.toast"
10146
- );
10179
+ const config = theme(`shurikenUi.${key$1}`);
10147
10180
  addComponents({
10148
10181
  [`.${prefix}toast`]: {
10149
10182
  [`@apply relative flex font-${config.font} overflow-hidden`]: {},
@@ -10254,14 +10287,15 @@ const toast = plugin.withOptions(
10254
10287
  return {
10255
10288
  theme: {
10256
10289
  shurikenUi: {
10257
- toast: defaultToastConfig
10290
+ [key$1]: defaultConfig$1
10258
10291
  }
10259
10292
  }
10260
10293
  };
10261
10294
  }
10262
10295
  );
10263
10296
 
10264
- const defaultTooltipConfig = {
10297
+ const key = "tooltip";
10298
+ const defaultConfig = {
10265
10299
  font: "sans",
10266
10300
  bg: "[#1e293b]",
10267
10301
  bgDark: "[#ec4899]",
@@ -10270,6 +10304,7 @@ const defaultTooltipConfig = {
10270
10304
  minWidth: "3rem",
10271
10305
  maxWidth: "21rem"
10272
10306
  };
10307
+
10273
10308
  const tooltip = plugin.withOptions(
10274
10309
  function(options) {
10275
10310
  let { prefix } = defu(options, defaultPluginOptions);
@@ -10277,9 +10312,7 @@ const tooltip = plugin.withOptions(
10277
10312
  prefix = `${prefix}-`;
10278
10313
  }
10279
10314
  return function({ addComponents, theme }) {
10280
- const config = theme(
10281
- "shurikenUi.tooltip"
10282
- );
10315
+ const config = theme(`shurikenUi.${key}`);
10283
10316
  const tooltip = `data-${prefix}tooltip`;
10284
10317
  const position = `data-${prefix}tooltip-position`;
10285
10318
  addComponents({
@@ -10441,6 +10474,9 @@ const tooltip = plugin.withOptions(
10441
10474
  }
10442
10475
  return {
10443
10476
  theme: {
10477
+ shurikenUi: {
10478
+ [key]: defaultConfig
10479
+ },
10444
10480
  extend: {
10445
10481
  keyframes: {
10446
10482
  [`${prefix}tooltip-x`]: {
@@ -10460,9 +10496,6 @@ const tooltip = plugin.withOptions(
10460
10496
  [`${prefix}tooltip-x`]: `${prefix}tooltip-x 300ms ease-out forwards`,
10461
10497
  [`${prefix}tooltip-y`]: `${prefix}tooltip-y 300ms ease-out forwards`
10462
10498
  }
10463
- },
10464
- shurikenUi: {
10465
- tooltip: defaultTooltipConfig
10466
10499
  }
10467
10500
  }
10468
10501
  };