@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.cjs CHANGED
@@ -25,7 +25,8 @@ const defaultPluginOptions = {
25
25
  prefix: "nui"
26
26
  };
27
27
 
28
- const defaultAccordionConfig = {
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
- accordion: defaultAccordionConfig
181
+ [key$R]: defaultConfig$Q
182
182
  }
183
183
  }
184
184
  };
185
185
  }
186
186
  );
187
187
 
188
- const defaultAutocompleteConfig = {
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
- autocomplete: defaultAutocompleteConfig
823
+ [key$Q]: defaultConfig$P
824
824
  }
825
825
  }
826
826
  };
827
827
  }
828
828
  );
829
829
 
830
- const defaultAvatarConfig = {
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
- avatar: defaultAvatarConfig
1569
+ [key$P]: defaultConfig$O
1570
1570
  }
1571
1571
  }
1572
1572
  };
1573
1573
  }
1574
1574
  );
1575
1575
 
1576
- const defaultAvatarGroupConfig = {
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
- avatarGroup: defaultAvatarGroupConfig
1773
+ [key$O]: defaultConfig$N
1774
1774
  }
1775
1775
  }
1776
1776
  };
1777
1777
  }
1778
1778
  );
1779
1779
 
1780
- const defaultBreadcrumbConfig = {
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
- breadcrumb: defaultBreadcrumbConfig
1851
+ [key$N]: defaultConfig$M
1852
1852
  }
1853
1853
  }
1854
1854
  };
1855
1855
  }
1856
1856
  );
1857
1857
 
1858
- const defaultButtonActionConfig = {
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
- buttonAction: defaultButtonActionConfig
2040
+ [key$M]: defaultConfig$L
2041
2041
  }
2042
2042
  }
2043
2043
  };
2044
2044
  }
2045
2045
  );
2046
2046
 
2047
- const defaultButtonCloseConfig = {
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,9 +2104,7 @@ 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
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`]: {},
@@ -2152,14 +2152,16 @@ const buttonClose = plugin__default.withOptions(
2152
2152
  return {
2153
2153
  theme: {
2154
2154
  shurikenUi: {
2155
- buttonClose: defaultButtonCloseConfig
2155
+ [key$L]: defaultConfig$K
2156
2156
  }
2157
2157
  }
2158
2158
  };
2159
2159
  }
2160
2160
  );
2161
2161
 
2162
- const defaultButtonGroupConfig = {};
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
- buttonGroup: defaultButtonGroupConfig
2271
+ [key$K]: defaultConfig$J
2272
2272
  }
2273
2273
  }
2274
2274
  };
2275
2275
  }
2276
2276
  );
2277
2277
 
2278
- const defaultButtonIconConfig = {
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,9 +2349,7 @@ 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
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`]: {},
@@ -2406,14 +2406,15 @@ const buttonIcon = plugin__default.withOptions(
2406
2406
  return {
2407
2407
  theme: {
2408
2408
  shurikenUi: {
2409
- buttonIcon: defaultButtonIconConfig
2409
+ [key$J]: defaultConfig$I
2410
2410
  }
2411
2411
  }
2412
2412
  };
2413
2413
  }
2414
2414
  );
2415
2415
 
2416
- const defaultButtonConfig = {
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
- button: defaultButtonConfig
3104
+ [key$I]: defaultConfig$H
3105
3105
  }
3106
3106
  }
3107
3107
  };
3108
3108
  }
3109
3109
  );
3110
3110
 
3111
- const defaultCardConfig = {
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("shurikenUi.card");
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
- card: defaultCardConfig
3239
+ [key$H]: defaultConfig$G
3238
3240
  }
3239
3241
  }
3240
3242
  };
3241
3243
  }
3242
3244
  );
3243
3245
 
3244
- const defaultCheckboxConfig = {
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`]: {},
@@ -3383,18 +3385,20 @@ const checkbox = plugin__default.withOptions(
3383
3385
  return {
3384
3386
  theme: {
3385
3387
  shurikenUi: {
3386
- checkbox: defaultCheckboxConfig
3388
+ [key$G]: defaultConfig$F
3387
3389
  }
3388
3390
  }
3389
3391
  };
3390
3392
  }
3391
3393
  );
3392
3394
 
3393
- const defaultDropdownDividerConfig = {
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
- dropdownDivider: defaultDropdownDividerConfig
3421
+ [key$F]: defaultConfig$E
3420
3422
  }
3421
3423
  }
3422
3424
  };
3423
3425
  }
3424
3426
  );
3425
3427
 
3426
- const defaultDropdownItemConfig = {
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,9 +3459,7 @@ 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
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}`]: {},
@@ -3494,14 +3496,15 @@ const dropdownItem = plugin__default.withOptions(
3494
3496
  return {
3495
3497
  theme: {
3496
3498
  shurikenUi: {
3497
- dropdownItem: defaultDropdownItemConfig
3499
+ [key$E]: defaultConfig$D
3498
3500
  }
3499
3501
  }
3500
3502
  };
3501
3503
  }
3502
3504
  );
3503
3505
 
3504
- const defaultDropdownConfig = {
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,14 +3718,15 @@ const dropdown = plugin__default.withOptions(
3716
3718
  return {
3717
3719
  theme: {
3718
3720
  shurikenUi: {
3719
- dropdown: defaultDropdownConfig
3721
+ [key$D]: defaultConfig$C
3720
3722
  }
3721
3723
  }
3722
3724
  };
3723
3725
  }
3724
3726
  );
3725
3727
 
3726
- const defaultFocusConfig = {
3728
+ const key$C = "focus";
3729
+ const defaultConfig$B = {
3727
3730
  offset: "2",
3728
3731
  width: "2",
3729
3732
  style: "dashed",
@@ -3731,6 +3734,7 @@ const defaultFocusConfig = {
3731
3734
  colorDark: "muted-600",
3732
3735
  mode: "always"
3733
3736
  };
3737
+
3734
3738
  const focus = plugin__default.withOptions(
3735
3739
  function(options) {
3736
3740
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -3738,9 +3742,7 @@ const focus = plugin__default.withOptions(
3738
3742
  prefix = `${prefix}-`;
3739
3743
  }
3740
3744
  return function({ addComponents, theme }) {
3741
- const config = theme(
3742
- "shurikenUi.focus"
3743
- );
3745
+ const config = theme(`shurikenUi.${key$C}`);
3744
3746
  const mode = config.mode === "focus-visible" ? "&:has(:focus-visible), &:focus-visible" : "&:focus-within";
3745
3747
  addComponents({
3746
3748
  [`.${prefix}focus`]: {
@@ -3758,14 +3760,15 @@ const focus = plugin__default.withOptions(
3758
3760
  return {
3759
3761
  theme: {
3760
3762
  shurikenUi: {
3761
- focus: defaultFocusConfig
3763
+ [key$C]: defaultConfig$B
3762
3764
  }
3763
3765
  }
3764
3766
  };
3765
3767
  }
3766
3768
  );
3767
3769
 
3768
- const defaultFullscreenDropfileConfig = {
3770
+ const key$B = "fullscreenDropfile";
3771
+ const defaultConfig$A = {
3769
3772
  border: "primary-500",
3770
3773
  height: "[230px]",
3771
3774
  width: "[500px]",
@@ -3775,6 +3778,7 @@ const defaultFullscreenDropfileConfig = {
3775
3778
  },
3776
3779
  labelTextSize: "base"
3777
3780
  };
3781
+
3778
3782
  const fullscreenDropfile = plugin__default.withOptions(
3779
3783
  function(options) {
3780
3784
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -3783,7 +3787,7 @@ const fullscreenDropfile = plugin__default.withOptions(
3783
3787
  }
3784
3788
  return function({ addComponents, theme }) {
3785
3789
  const config = theme(
3786
- "shurikenUi.fullscreenDropfile"
3790
+ `shurikenUi.${key$B}`
3787
3791
  );
3788
3792
  addComponents({
3789
3793
  [`.${prefix}fullscreen-dropfile`]: {
@@ -3813,14 +3817,15 @@ const fullscreenDropfile = plugin__default.withOptions(
3813
3817
  return {
3814
3818
  theme: {
3815
3819
  shurikenUi: {
3816
- fullscreenDropfile: defaultFullscreenDropfileConfig
3820
+ [key$B]: defaultConfig$A
3817
3821
  }
3818
3822
  }
3819
3823
  };
3820
3824
  }
3821
3825
  );
3822
3826
 
3823
- const defaultHeadingConfig = {
3827
+ const key$A = "heading";
3828
+ const defaultConfig$z = {
3824
3829
  textXS: "xs",
3825
3830
  textSM: "sm",
3826
3831
  textMD: "base",
@@ -3846,6 +3851,7 @@ const defaultHeadingConfig = {
3846
3851
  textLeadSnug: "snug",
3847
3852
  textLeadLoose: "loose"
3848
3853
  };
3854
+
3849
3855
  const heading = plugin__default.withOptions(
3850
3856
  function(options) {
3851
3857
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -3853,9 +3859,7 @@ const heading = plugin__default.withOptions(
3853
3859
  prefix = `${prefix}-`;
3854
3860
  }
3855
3861
  return function({ addComponents, theme }) {
3856
- const config = theme(
3857
- "shurikenUi.heading"
3858
- );
3862
+ const config = theme(`shurikenUi.${key$A}`);
3859
3863
  addComponents({
3860
3864
  [`.${prefix}heading`]: {
3861
3865
  [`@apply font-sans`]: {},
@@ -3939,14 +3943,15 @@ const heading = plugin__default.withOptions(
3939
3943
  return {
3940
3944
  theme: {
3941
3945
  shurikenUi: {
3942
- heading: defaultHeadingConfig
3946
+ [key$A]: defaultConfig$z
3943
3947
  }
3944
3948
  }
3945
3949
  };
3946
3950
  }
3947
3951
  );
3948
3952
 
3949
- const defaultIconBoxConfig = {
3953
+ const key$z = "iconBox";
3954
+ const defaultConfig$y = {
3950
3955
  boxXS: {
3951
3956
  size: "8",
3952
3957
  rounded: {
@@ -4083,6 +4088,7 @@ const defaultIconBoxConfig = {
4083
4088
  borderColor: "current"
4084
4089
  }
4085
4090
  };
4091
+
4086
4092
  const iconBox = plugin__default.withOptions(
4087
4093
  function(options) {
4088
4094
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -4090,9 +4096,7 @@ const iconBox = plugin__default.withOptions(
4090
4096
  prefix = `${prefix}-`;
4091
4097
  }
4092
4098
  return function({ addComponents, theme }) {
4093
- const config = theme(
4094
- "shurikenUi.iconBox"
4095
- );
4099
+ const config = theme(`shurikenUi.${key$z}`);
4096
4100
  addComponents({
4097
4101
  [`.${prefix}icon-box`]: {
4098
4102
  [`@apply relative inline-flex shrink-0 items-center justify-center`]: {},
@@ -4230,14 +4234,15 @@ const iconBox = plugin__default.withOptions(
4230
4234
  return {
4231
4235
  theme: {
4232
4236
  shurikenUi: {
4233
- iconBox: defaultIconBoxConfig
4237
+ [key$z]: defaultConfig$y
4234
4238
  }
4235
4239
  }
4236
4240
  };
4237
4241
  }
4238
4242
  );
4239
4243
 
4240
- const defaultInputFileRegularConfig = {
4244
+ const key$y = "inputFileRegular";
4245
+ const defaultConfig$x = {
4241
4246
  inner: {
4242
4247
  size: "full",
4243
4248
  font: "sans",
@@ -4325,6 +4330,7 @@ const defaultInputFileRegularConfig = {
4325
4330
  hover: "primary-500",
4326
4331
  focusWhitin: "primary-500"
4327
4332
  };
4333
+
4328
4334
  const inputFileRegular = plugin__default.withOptions(
4329
4335
  function(options) {
4330
4336
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -4332,9 +4338,7 @@ const inputFileRegular = plugin__default.withOptions(
4332
4338
  prefix = `${prefix}-`;
4333
4339
  }
4334
4340
  return function({ addComponents, theme }) {
4335
- const config = theme(
4336
- "shurikenUi.inputFileRegular"
4337
- );
4341
+ const config = theme(`shurikenUi.${key$y}`);
4338
4342
  addComponents({
4339
4343
  [`.${prefix}input-file-regular`]: {
4340
4344
  [`@apply relative w-full`]: {},
@@ -4520,14 +4524,15 @@ const inputFileRegular = plugin__default.withOptions(
4520
4524
  return {
4521
4525
  theme: {
4522
4526
  shurikenUi: {
4523
- inputFileRegular: defaultInputFileRegularConfig
4527
+ [key$y]: defaultConfig$x
4524
4528
  }
4525
4529
  }
4526
4530
  };
4527
4531
  }
4528
4532
  );
4529
4533
 
4530
- const defaultInputFileConfig = {
4534
+ const key$x = "inputFile";
4535
+ const defaultConfig$w = {
4531
4536
  drop: {
4532
4537
  size: "64",
4533
4538
  border: "muted-200",
@@ -4608,6 +4613,7 @@ const defaultInputFileConfig = {
4608
4613
  full: "full"
4609
4614
  }
4610
4615
  };
4616
+
4611
4617
  const inputFile = plugin__default.withOptions(
4612
4618
  function(options) {
4613
4619
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -4615,9 +4621,7 @@ const inputFile = plugin__default.withOptions(
4615
4621
  prefix = `${prefix}-`;
4616
4622
  }
4617
4623
  return function({ addComponents, theme }) {
4618
- const config = theme(
4619
- "shurikenUi.inputFile"
4620
- );
4624
+ const config = theme(`shurikenUi.${key$x}`);
4621
4625
  addComponents({
4622
4626
  [`.${prefix}input-file`]: {
4623
4627
  [`@apply relative block ${prefix}focus`]: {},
@@ -4717,14 +4721,15 @@ const inputFile = plugin__default.withOptions(
4717
4721
  return {
4718
4722
  theme: {
4719
4723
  shurikenUi: {
4720
- inputFile: defaultInputFileConfig
4724
+ [key$x]: defaultConfig$w
4721
4725
  }
4722
4726
  }
4723
4727
  };
4724
4728
  }
4725
4729
  );
4726
4730
 
4727
- const defaultInputConfig = {
4731
+ const key$w = "input";
4732
+ const defaultConfig$v = {
4728
4733
  label: {
4729
4734
  float: {
4730
4735
  text: "primary-500",
@@ -4921,6 +4926,7 @@ const defaultInputConfig = {
4921
4926
  }
4922
4927
  }
4923
4928
  };
4929
+
4924
4930
  const input = plugin__default.withOptions(
4925
4931
  function(options) {
4926
4932
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -4928,9 +4934,7 @@ const input = plugin__default.withOptions(
4928
4934
  prefix = `${prefix}-`;
4929
4935
  }
4930
4936
  return function({ addComponents, theme }) {
4931
- const config = theme(
4932
- "shurikenUi.input"
4933
- );
4937
+ const config = theme(`shurikenUi.${key$w}`);
4934
4938
  addComponents({
4935
4939
  [`.${prefix}input-wrapper`]: {
4936
4940
  [`@apply relative`]: {},
@@ -5214,14 +5218,15 @@ const input = plugin__default.withOptions(
5214
5218
  return {
5215
5219
  theme: {
5216
5220
  shurikenUi: {
5217
- input: defaultInputConfig
5221
+ [key$w]: defaultConfig$v
5218
5222
  }
5219
5223
  }
5220
5224
  };
5221
5225
  }
5222
5226
  );
5223
5227
 
5224
- const defaultInputNumberConfig = {
5228
+ const key$v = "inputNumber";
5229
+ const defaultConfig$u = {
5225
5230
  label: {
5226
5231
  float: {
5227
5232
  text: "primary-500",
@@ -5418,6 +5423,7 @@ const defaultInputNumberConfig = {
5418
5423
  }
5419
5424
  }
5420
5425
  };
5426
+
5421
5427
  const inputNumber = plugin__default.withOptions(
5422
5428
  function(options) {
5423
5429
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -5425,9 +5431,7 @@ const inputNumber = plugin__default.withOptions(
5425
5431
  prefix = `${prefix}-`;
5426
5432
  }
5427
5433
  return function({ addComponents, theme }) {
5428
- const config = theme(
5429
- "shurikenUi.inputNumber"
5430
- );
5434
+ const config = theme(`shurikenUi.${key$v}`);
5431
5435
  addComponents({
5432
5436
  [`.${prefix}input-number-wrapper`]: {
5433
5437
  [`@apply relative`]: {},
@@ -5765,18 +5769,20 @@ const inputNumber = plugin__default.withOptions(
5765
5769
  return {
5766
5770
  theme: {
5767
5771
  shurikenUi: {
5768
- inputNumber: defaultInputNumberConfig
5772
+ [key$v]: defaultConfig$u
5769
5773
  }
5770
5774
  }
5771
5775
  };
5772
5776
  }
5773
5777
  );
5774
5778
 
5775
- const defaultLabelConfig = {
5779
+ const key$u = "label";
5780
+ const defaultConfig$t = {
5776
5781
  font: "sans",
5777
5782
  text: "muted-400",
5778
5783
  textDark: "muted-400/80"
5779
5784
  };
5785
+
5780
5786
  const label = plugin__default.withOptions(
5781
5787
  function(options) {
5782
5788
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -5784,9 +5790,7 @@ const label = plugin__default.withOptions(
5784
5790
  prefix = `${prefix}-`;
5785
5791
  }
5786
5792
  return function({ addComponents, theme }) {
5787
- const config = theme(
5788
- "shurikenUi.label"
5789
- );
5793
+ const config = theme(`shurikenUi.${key$u}`);
5790
5794
  addComponents({
5791
5795
  [`.${prefix}label`]: {
5792
5796
  [`@apply inline-block font-${config.font} leading-none text-${config.text} dark:text-${config.textDark}`]: {}
@@ -5798,20 +5802,22 @@ const label = plugin__default.withOptions(
5798
5802
  return {
5799
5803
  theme: {
5800
5804
  shurikenUi: {
5801
- label: defaultLabelConfig
5805
+ [key$u]: defaultConfig$t
5802
5806
  }
5803
5807
  }
5804
5808
  };
5805
5809
  }
5806
5810
  );
5807
5811
 
5808
- const defaultLinkConfig = {
5812
+ const key$t = "link";
5813
+ const defaultConfig$s = {
5809
5814
  font: "sans",
5810
5815
  textHover: "primary-500",
5811
5816
  textHoverDark: "primary-400",
5812
5817
  textFocus: "primary-500",
5813
5818
  textFocusDark: "primary-400"
5814
5819
  };
5820
+
5815
5821
  const link = plugin__default.withOptions(
5816
5822
  function(options) {
5817
5823
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -5819,7 +5825,7 @@ const link = plugin__default.withOptions(
5819
5825
  prefix = `${prefix}-`;
5820
5826
  }
5821
5827
  return function({ addComponents, theme }) {
5822
- const config = theme("shurikenUi.link");
5828
+ const config = theme(`shurikenUi.${key$t}`);
5823
5829
  addComponents({
5824
5830
  [`.${prefix}link`]: {
5825
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`]: {}
@@ -5831,14 +5837,15 @@ const link = plugin__default.withOptions(
5831
5837
  return {
5832
5838
  theme: {
5833
5839
  shurikenUi: {
5834
- link: defaultLinkConfig
5840
+ [key$t]: defaultConfig$s
5835
5841
  }
5836
5842
  }
5837
5843
  };
5838
5844
  }
5839
5845
  );
5840
5846
 
5841
- const defaultListConfig = {
5847
+ const key$s = "list";
5848
+ const defaultConfig$r = {
5842
5849
  ul: "disc",
5843
5850
  ol: "decimal",
5844
5851
  base: {
@@ -5853,6 +5860,7 @@ const defaultListConfig = {
5853
5860
  textMarkerDark: "slate-400"
5854
5861
  }
5855
5862
  };
5863
+
5856
5864
  const list = plugin__default.withOptions(
5857
5865
  function(options) {
5858
5866
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -5860,7 +5868,7 @@ const list = plugin__default.withOptions(
5860
5868
  prefix = `${prefix}-`;
5861
5869
  }
5862
5870
  return function({ addComponents, theme }) {
5863
- const config = theme("shurikenUi.list");
5871
+ const config = theme(`shurikenUi.${key$s}`);
5864
5872
  addComponents({
5865
5873
  [`.${prefix}list`]: {
5866
5874
  [`&.${prefix}list-ul`]: {
@@ -5886,14 +5894,15 @@ const list = plugin__default.withOptions(
5886
5894
  return {
5887
5895
  theme: {
5888
5896
  shurikenUi: {
5889
- list: defaultListConfig
5897
+ [key$s]: defaultConfig$r
5890
5898
  }
5891
5899
  }
5892
5900
  };
5893
5901
  }
5894
5902
  );
5895
5903
 
5896
- const defaultListboxConfig = {
5904
+ const key$r = "listbox";
5905
+ const defaultConfig$q = {
5897
5906
  labelFloat: {
5898
5907
  text: "primary-500",
5899
5908
  size: "5",
@@ -6195,6 +6204,7 @@ const defaultListboxConfig = {
6195
6204
  }
6196
6205
  }
6197
6206
  };
6207
+
6198
6208
  const listbox = plugin__default.withOptions(
6199
6209
  function(options) {
6200
6210
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -6202,9 +6212,7 @@ const listbox = plugin__default.withOptions(
6202
6212
  prefix = `${prefix}-`;
6203
6213
  }
6204
6214
  return function({ addComponents, theme }) {
6205
- const config = theme(
6206
- "shurikenUi.listbox"
6207
- );
6215
+ const config = theme(`shurikenUi.${key$r}`);
6208
6216
  addComponents({
6209
6217
  [`.${prefix}listbox`]: {
6210
6218
  [`@apply relative w-full`]: {},
@@ -6554,19 +6562,21 @@ const listbox = plugin__default.withOptions(
6554
6562
  return {
6555
6563
  theme: {
6556
6564
  shurikenUi: {
6557
- listbox: defaultListboxConfig
6565
+ [key$r]: defaultConfig$q
6558
6566
  }
6559
6567
  }
6560
6568
  };
6561
6569
  }
6562
6570
  );
6563
6571
 
6564
- const defaultMarkConfig = {
6572
+ const key$q = "mark";
6573
+ const defaultConfig$p = {
6565
6574
  bg: "primary-100",
6566
6575
  bgDark: "primary-800",
6567
6576
  text: "primary-800",
6568
6577
  textDark: "primary-200"
6569
6578
  };
6579
+
6570
6580
  const mark = plugin__default.withOptions(
6571
6581
  function(options) {
6572
6582
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -6574,7 +6584,7 @@ const mark = plugin__default.withOptions(
6574
6584
  prefix = `${prefix}-`;
6575
6585
  }
6576
6586
  return function({ addComponents, theme }) {
6577
- const config = theme("shurikenUi.mark");
6587
+ const config = theme(`shurikenUi.${key$q}`);
6578
6588
  addComponents({
6579
6589
  [`.${prefix}mark`]: {
6580
6590
  [`@apply bg-${config.bg} dark:bg-${config.bgDark}`]: {},
@@ -6587,20 +6597,24 @@ const mark = plugin__default.withOptions(
6587
6597
  return {
6588
6598
  theme: {
6589
6599
  shurikenUi: {
6590
- mark: defaultMarkConfig
6600
+ [key$q]: defaultConfig$p
6591
6601
  }
6592
6602
  }
6593
6603
  };
6594
6604
  }
6595
6605
  );
6596
6606
 
6607
+ const key$p = "mask";
6608
+ const defaultConfig$o = {};
6609
+
6597
6610
  const mask = plugin__default.withOptions(
6598
6611
  function(options) {
6599
6612
  let { prefix } = defu.defu(options, defaultPluginOptions);
6600
6613
  if (prefix) {
6601
6614
  prefix = `${prefix}-`;
6602
6615
  }
6603
- return function({ addComponents }) {
6616
+ return function({ addComponents, theme }) {
6617
+ theme(`shurikenUi.${key$p}`);
6604
6618
  addComponents({
6605
6619
  [`.${prefix}mask`]: {
6606
6620
  "mask-size": "contain",
@@ -6626,11 +6640,18 @@ const mask = plugin__default.withOptions(
6626
6640
  };
6627
6641
  },
6628
6642
  function() {
6629
- return {};
6643
+ return {
6644
+ theme: {
6645
+ shurikenUi: {
6646
+ [key$p]: defaultConfig$o
6647
+ }
6648
+ }
6649
+ };
6630
6650
  }
6631
6651
  );
6632
6652
 
6633
- const defaultMessageTextConfig = {
6653
+ const key$o = "messageText";
6654
+ const defaultConfig$n = {
6634
6655
  space: "6",
6635
6656
  head: {
6636
6657
  space: "2"
@@ -6704,6 +6725,7 @@ const defaultMessageTextConfig = {
6704
6725
  curved: "xl"
6705
6726
  }
6706
6727
  };
6728
+
6707
6729
  const messageText = plugin__default.withOptions(
6708
6730
  function(options) {
6709
6731
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -6711,9 +6733,7 @@ const messageText = plugin__default.withOptions(
6711
6733
  prefix = `${prefix}-`;
6712
6734
  }
6713
6735
  return function({ addComponents, theme }) {
6714
- const config = theme(
6715
- "shurikenUi.messageText"
6716
- );
6736
+ const config = theme(`shurikenUi.${key$o}`);
6717
6737
  addComponents({
6718
6738
  [`.${prefix}message-text`]: {
6719
6739
  [`@apply relative p-${config.space}`]: {},
@@ -6791,14 +6811,15 @@ const messageText = plugin__default.withOptions(
6791
6811
  return {
6792
6812
  theme: {
6793
6813
  shurikenUi: {
6794
- messageText: defaultMessageTextConfig
6814
+ [key$o]: defaultConfig$n
6795
6815
  }
6796
6816
  }
6797
6817
  };
6798
6818
  }
6799
6819
  );
6800
6820
 
6801
- const defaultMessageConfig = {
6821
+ const key$n = "message";
6822
+ const defaultConfig$m = {
6802
6823
  messageIconOuter: {
6803
6824
  size: "10",
6804
6825
  icon: {
@@ -6967,6 +6988,7 @@ const defaultMessageConfig = {
6967
6988
  }
6968
6989
  }
6969
6990
  };
6991
+
6970
6992
  const message = plugin__default.withOptions(
6971
6993
  function(options) {
6972
6994
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -6974,9 +6996,7 @@ const message = plugin__default.withOptions(
6974
6996
  prefix = `${prefix}-`;
6975
6997
  }
6976
6998
  return function({ addComponents, theme }) {
6977
- const config = theme(
6978
- "shurikenUi.message"
6979
- );
6999
+ const config = theme(`shurikenUi.${key$n}`);
6980
7000
  addComponents({
6981
7001
  [`.${prefix}message`]: {
6982
7002
  [`@apply flex min-h-[3rem] items-center border p-1 pe-2`]: {},
@@ -7111,14 +7131,15 @@ const message = plugin__default.withOptions(
7111
7131
  return {
7112
7132
  theme: {
7113
7133
  shurikenUi: {
7114
- message: defaultMessageConfig
7134
+ [key$n]: defaultConfig$m
7115
7135
  }
7116
7136
  }
7117
7137
  };
7118
7138
  }
7119
7139
  );
7120
7140
 
7121
- const defaultModalConfig = {
7141
+ const key$m = "modal";
7142
+ const defaultConfig$l = {
7122
7143
  backdrop: {
7123
7144
  bg: "muted-800/70",
7124
7145
  bgDark: "muted-900/80"
@@ -7137,6 +7158,7 @@ const defaultModalConfig = {
7137
7158
  modal2XL: "3xl",
7138
7159
  modal3XL: "5xl"
7139
7160
  };
7161
+
7140
7162
  const modal = plugin__default.withOptions(
7141
7163
  function(options) {
7142
7164
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -7144,9 +7166,7 @@ const modal = plugin__default.withOptions(
7144
7166
  prefix = `${prefix}-`;
7145
7167
  }
7146
7168
  return function({ addComponents, theme }) {
7147
- const config = theme(
7148
- "shurikenUi.modal"
7149
- );
7169
+ const config = theme(`shurikenUi.${key$m}`);
7150
7170
  addComponents({
7151
7171
  [`.${prefix}modal`]: {
7152
7172
  [`@apply fixed inset-0 z-[9999] flex items-center justify-center`]: {},
@@ -7203,14 +7223,15 @@ const modal = plugin__default.withOptions(
7203
7223
  return {
7204
7224
  theme: {
7205
7225
  shurikenUi: {
7206
- modal: defaultModalConfig
7226
+ [key$m]: defaultConfig$l
7207
7227
  }
7208
7228
  }
7209
7229
  };
7210
7230
  }
7211
7231
  );
7212
7232
 
7213
- const defaultPaginationConfig = {
7233
+ const key$l = "pagination";
7234
+ const defaultConfig$k = {
7214
7235
  size: "full",
7215
7236
  list: {
7216
7237
  border: "muted-200",
@@ -7287,6 +7308,7 @@ const defaultPaginationConfig = {
7287
7308
  full: "full"
7288
7309
  }
7289
7310
  };
7311
+
7290
7312
  const pagination = plugin__default.withOptions(
7291
7313
  function(options) {
7292
7314
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -7294,9 +7316,7 @@ const pagination = plugin__default.withOptions(
7294
7316
  prefix = `${prefix}-`;
7295
7317
  }
7296
7318
  return function({ addComponents, theme }) {
7297
- const config = theme(
7298
- "shurikenUi.pagination"
7299
- );
7319
+ const config = theme(`shurikenUi.${key$l}`);
7300
7320
  addComponents({
7301
7321
  [`.${prefix}pagination`]: {
7302
7322
  [`@apply inline-flex w-${config.size} flex-col md:flex-row md:justify-between`]: {},
@@ -7344,14 +7364,15 @@ const pagination = plugin__default.withOptions(
7344
7364
  return {
7345
7365
  theme: {
7346
7366
  shurikenUi: {
7347
- pagination: defaultPaginationConfig
7367
+ [key$l]: defaultConfig$k
7348
7368
  }
7349
7369
  }
7350
7370
  };
7351
7371
  }
7352
7372
  );
7353
7373
 
7354
- const defaultParagraphConfig = {
7374
+ const key$k = "paragraph";
7375
+ const defaultConfig$j = {
7355
7376
  textXS: "xs",
7356
7377
  textSM: "sm",
7357
7378
  textMD: "base",
@@ -7377,6 +7398,7 @@ const defaultParagraphConfig = {
7377
7398
  textLeadSnug: "snug",
7378
7399
  textLeadLoose: "loose"
7379
7400
  };
7401
+
7380
7402
  const paragraph = plugin__default.withOptions(
7381
7403
  function(options) {
7382
7404
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -7384,9 +7406,7 @@ const paragraph = plugin__default.withOptions(
7384
7406
  prefix = `${prefix}-`;
7385
7407
  }
7386
7408
  return function({ addComponents, theme }) {
7387
- const config = theme(
7388
- "shurikenUi.paragraph"
7389
- );
7409
+ const config = theme(`shurikenUi.${key$k}`);
7390
7410
  addComponents({
7391
7411
  [`.${prefix}paragraph`]: {
7392
7412
  [`@apply font-sans`]: {},
@@ -7470,14 +7490,15 @@ const paragraph = plugin__default.withOptions(
7470
7490
  return {
7471
7491
  theme: {
7472
7492
  shurikenUi: {
7473
- paragraph: defaultParagraphConfig
7493
+ [key$k]: defaultConfig$j
7474
7494
  }
7475
7495
  }
7476
7496
  };
7477
7497
  }
7478
7498
  );
7479
7499
 
7480
- const defaultPlaceholderPageConfig = {
7500
+ const key$j = "placeholderPage";
7501
+ const defaultConfig$i = {
7481
7502
  minSize: "[400px]",
7482
7503
  innerSize: "full",
7483
7504
  maxContentSize: "sm",
@@ -7494,6 +7515,7 @@ const defaultPlaceholderPageConfig = {
7494
7515
  text: "muted-400"
7495
7516
  }
7496
7517
  };
7518
+
7497
7519
  const placeholderPage = plugin__default.withOptions(
7498
7520
  function(options) {
7499
7521
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -7501,9 +7523,7 @@ const placeholderPage = plugin__default.withOptions(
7501
7523
  prefix = `${prefix}-`;
7502
7524
  }
7503
7525
  return function({ addComponents, theme }) {
7504
- const config = theme(
7505
- "shurikenUi.placeholderPage"
7506
- );
7526
+ const config = theme(`shurikenUi.${key$j}`);
7507
7527
  addComponents({
7508
7528
  [`.${prefix}placeholder-page`]: {
7509
7529
  [`@apply flex min-h-${config.minSize} items-center justify-center`]: {},
@@ -7548,20 +7568,24 @@ const placeholderPage = plugin__default.withOptions(
7548
7568
  return {
7549
7569
  theme: {
7550
7570
  shurikenUi: {
7551
- placeholderPage: defaultPlaceholderPageConfig
7571
+ [key$j]: defaultConfig$i
7552
7572
  }
7553
7573
  }
7554
7574
  };
7555
7575
  }
7556
7576
  );
7557
7577
 
7578
+ const key$i = "placeload";
7579
+ const defaultConfig$h = {};
7580
+
7558
7581
  const placeload = plugin__default.withOptions(
7559
7582
  function(options) {
7560
7583
  let { prefix } = defu.defu(options, defaultPluginOptions);
7561
7584
  if (prefix) {
7562
7585
  prefix = `${prefix}-`;
7563
7586
  }
7564
- return function({ addComponents }) {
7587
+ return function({ addComponents, theme }) {
7588
+ theme(`shurikenUi.${key$i}`);
7565
7589
  addComponents({
7566
7590
  [`.${prefix}placeload`]: {
7567
7591
  position: "relative",
@@ -7583,6 +7607,9 @@ const placeload = plugin__default.withOptions(
7583
7607
  }
7584
7608
  return {
7585
7609
  theme: {
7610
+ shurikenUi: {
7611
+ [key$i]: defaultConfig$h
7612
+ },
7586
7613
  extend: {
7587
7614
  keyframes: {
7588
7615
  [`${prefix}placeload`]: {
@@ -7599,7 +7626,8 @@ const placeload = plugin__default.withOptions(
7599
7626
  }
7600
7627
  );
7601
7628
 
7602
- const defaultProgressCircleConfig = {
7629
+ const key$h = "progressCircle";
7630
+ const defaultConfig$g = {
7603
7631
  circleDuration: "500",
7604
7632
  default: {
7605
7633
  text: "muted-200",
@@ -7612,6 +7640,7 @@ const defaultProgressCircleConfig = {
7612
7640
  stroke: "current"
7613
7641
  }
7614
7642
  };
7643
+
7615
7644
  const progressCircle = plugin__default.withOptions(
7616
7645
  function(options) {
7617
7646
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -7619,9 +7648,7 @@ const progressCircle = plugin__default.withOptions(
7619
7648
  prefix = `${prefix}-`;
7620
7649
  }
7621
7650
  return function({ addComponents, theme }) {
7622
- const config = theme(
7623
- "shurikenUi.progressCircle"
7624
- );
7651
+ const config = theme(`shurikenUi.${key$h}`);
7625
7652
  addComponents({
7626
7653
  [`.${prefix}progress-circle`]: {
7627
7654
  [`@apply relative inline-flex items-center justify-center`]: {},
@@ -7642,14 +7669,15 @@ const progressCircle = plugin__default.withOptions(
7642
7669
  return {
7643
7670
  theme: {
7644
7671
  shurikenUi: {
7645
- progressCircle: defaultProgressCircleConfig
7672
+ [key$h]: defaultConfig$g
7646
7673
  }
7647
7674
  }
7648
7675
  };
7649
7676
  }
7650
7677
  );
7651
7678
 
7652
- const defaultProgressConfig = {
7679
+ const key$g = "progress";
7680
+ const defaultConfig$f = {
7653
7681
  size: "full",
7654
7682
  bar: {
7655
7683
  duration: "300"
@@ -7677,6 +7705,7 @@ const defaultProgressConfig = {
7677
7705
  warning: "warning-500",
7678
7706
  danger: "danger-500"
7679
7707
  };
7708
+
7680
7709
  const progress = plugin__default.withOptions(
7681
7710
  function(options) {
7682
7711
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -7684,9 +7713,7 @@ const progress = plugin__default.withOptions(
7684
7713
  prefix = `${prefix}-`;
7685
7714
  }
7686
7715
  return function({ addComponents, theme }) {
7687
- const config = theme(
7688
- "shurikenUi.progress"
7689
- );
7716
+ const config = theme(`shurikenUi.${key$g}`);
7690
7717
  addComponents({
7691
7718
  [`.${prefix}progress`]: {
7692
7719
  [`@apply relative w-${config.size} overflow-hidden`]: {},
@@ -7763,7 +7790,7 @@ const progress = plugin__default.withOptions(
7763
7790
  return {
7764
7791
  theme: {
7765
7792
  shurikenUi: {
7766
- progress: defaultProgressConfig
7793
+ [key$g]: defaultConfig$f
7767
7794
  },
7768
7795
  extend: {
7769
7796
  keyframes: {
@@ -7782,7 +7809,8 @@ const progress = plugin__default.withOptions(
7782
7809
  }
7783
7810
  );
7784
7811
 
7785
- const defaultProseConfig = {
7812
+ const key$f = "prose";
7813
+ const defaultConfig$e = {
7786
7814
  color: "muted",
7787
7815
  dark: "invert",
7788
7816
  space: "4",
@@ -7801,6 +7829,7 @@ const defaultProseConfig = {
7801
7829
  tdBorderDark: "muted-700"
7802
7830
  }
7803
7831
  };
7832
+
7804
7833
  const prose = plugin__default.withOptions(
7805
7834
  function(options) {
7806
7835
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -7808,9 +7837,7 @@ const prose = plugin__default.withOptions(
7808
7837
  prefix = `${prefix}-`;
7809
7838
  }
7810
7839
  return function({ addComponents, theme }) {
7811
- const config = theme(
7812
- "shurikenUi.prose"
7813
- );
7840
+ const config = theme(`shurikenUi.${key$f}`);
7814
7841
  addComponents({
7815
7842
  [`.${prefix}prose`]: {
7816
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}`]: {},
@@ -7831,14 +7858,15 @@ const prose = plugin__default.withOptions(
7831
7858
  return {
7832
7859
  theme: {
7833
7860
  shurikenUi: {
7834
- prose: defaultProseConfig
7861
+ [key$f]: defaultConfig$e
7835
7862
  }
7836
7863
  }
7837
7864
  };
7838
7865
  }
7839
7866
  );
7840
7867
 
7841
- const defaultRadioConfig = {
7868
+ const key$e = "radio";
7869
+ const defaultConfig$d = {
7842
7870
  outer: {
7843
7871
  size: "5"
7844
7872
  },
@@ -7881,6 +7909,7 @@ const defaultRadioConfig = {
7881
7909
  warning: "warning-500",
7882
7910
  danger: "danger-500"
7883
7911
  };
7912
+
7884
7913
  const radio = plugin__default.withOptions(
7885
7914
  function(options) {
7886
7915
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -7888,9 +7917,7 @@ const radio = plugin__default.withOptions(
7888
7917
  prefix = `${prefix}-`;
7889
7918
  }
7890
7919
  return function({ addComponents, theme }) {
7891
- const config = theme(
7892
- "shurikenUi.radio"
7893
- );
7920
+ const config = theme(`shurikenUi.${key$e}`);
7894
7921
  addComponents({
7895
7922
  [`.${prefix}radio`]: {
7896
7923
  [`@apply relative inline-flex items-start gap-1`]: {},
@@ -7953,14 +7980,15 @@ const radio = plugin__default.withOptions(
7953
7980
  return {
7954
7981
  theme: {
7955
7982
  shurikenUi: {
7956
- radio: defaultRadioConfig
7983
+ [key$e]: defaultConfig$d
7957
7984
  }
7958
7985
  }
7959
7986
  };
7960
7987
  }
7961
7988
  );
7962
7989
 
7963
- const defaultSelectConfig = {
7990
+ const key$d = "select";
7991
+ const defaultConfig$c = {
7964
7992
  labelFloat: {
7965
7993
  text: "primary-500",
7966
7994
  size: "5",
@@ -8129,6 +8157,7 @@ const defaultSelectConfig = {
8129
8157
  }
8130
8158
  }
8131
8159
  };
8160
+
8132
8161
  const select = plugin__default.withOptions(
8133
8162
  function(options) {
8134
8163
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -8136,9 +8165,7 @@ const select = plugin__default.withOptions(
8136
8165
  prefix = `${prefix}-`;
8137
8166
  }
8138
8167
  return function({ addComponents, theme }) {
8139
- const config = theme(
8140
- "shurikenUi.select"
8141
- );
8168
+ const config = theme(`shurikenUi.${key$d}`);
8142
8169
  addComponents({
8143
8170
  [`.${prefix}select-wrapper`]: {
8144
8171
  [`@apply relative`]: {},
@@ -8420,20 +8447,22 @@ const select = plugin__default.withOptions(
8420
8447
  return {
8421
8448
  theme: {
8422
8449
  shurikenUi: {
8423
- select: defaultSelectConfig
8450
+ [key$d]: defaultConfig$c
8424
8451
  }
8425
8452
  }
8426
8453
  };
8427
8454
  }
8428
8455
  );
8429
8456
 
8430
- const defaultSlimscrollConfig = {
8457
+ const key$c = "slimscroll";
8458
+ const defaultConfig$b = {
8431
8459
  width: "[6px]",
8432
8460
  bg: "black/5",
8433
8461
  bgDark: "white/5",
8434
8462
  bgHover: "black/20",
8435
8463
  bgHoverDark: "white/20"
8436
8464
  };
8465
+
8437
8466
  const slimscroll = plugin__default.withOptions(
8438
8467
  function(options) {
8439
8468
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -8441,9 +8470,7 @@ const slimscroll = plugin__default.withOptions(
8441
8470
  prefix = `${prefix}-`;
8442
8471
  }
8443
8472
  return function({ addComponents, theme }) {
8444
- const config = theme(
8445
- "shurikenUi.slimscroll"
8446
- );
8473
+ const config = theme(`shurikenUi.${key$c}`);
8447
8474
  addComponents({
8448
8475
  [`.${prefix}slimscroll::-webkit-scrollbar, .${prefix}slimscroll-opaque::-webkit-scrollbar`]: {
8449
8476
  scrollBehavior: "smooth",
@@ -8466,14 +8493,15 @@ const slimscroll = plugin__default.withOptions(
8466
8493
  return {
8467
8494
  theme: {
8468
8495
  shurikenUi: {
8469
- slimscroll: defaultSlimscrollConfig
8496
+ [key$c]: defaultConfig$b
8470
8497
  }
8471
8498
  }
8472
8499
  };
8473
8500
  }
8474
8501
  );
8475
8502
 
8476
- const defaultSnackConfig = {
8503
+ const key$b = "snack";
8504
+ const defaultConfig$a = {
8477
8505
  rounded: "full",
8478
8506
  icon: {
8479
8507
  border: "muted-200",
@@ -8527,6 +8555,7 @@ const defaultSnackConfig = {
8527
8555
  bgDark: "muted-700"
8528
8556
  }
8529
8557
  };
8558
+
8530
8559
  const snack = plugin__default.withOptions(
8531
8560
  function(options) {
8532
8561
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -8534,9 +8563,7 @@ const snack = plugin__default.withOptions(
8534
8563
  prefix = `${prefix}-`;
8535
8564
  }
8536
8565
  return function({ addComponents, theme }) {
8537
- const config = theme(
8538
- "shurikenUi.snack"
8539
- );
8566
+ const config = theme(`shurikenUi.${key$b}`);
8540
8567
  addComponents({
8541
8568
  [`.${prefix}snack`]: {
8542
8569
  [`@apply inline-flex items-center gap-1 rounded-${config.rounded} outline-transparent`]: {},
@@ -8596,14 +8623,15 @@ const snack = plugin__default.withOptions(
8596
8623
  return {
8597
8624
  theme: {
8598
8625
  shurikenUi: {
8599
- snack: defaultSnackConfig
8626
+ [key$b]: defaultConfig$a
8600
8627
  }
8601
8628
  }
8602
8629
  };
8603
8630
  }
8604
8631
  );
8605
8632
 
8606
- const defaultSwitchBallConfig = {
8633
+ const key$a = "switchBall";
8634
+ const defaulConfig = {
8607
8635
  handle: {
8608
8636
  border: "muted-300",
8609
8637
  borderDark: "muted-600",
@@ -8651,6 +8679,7 @@ const defaultSwitchBallConfig = {
8651
8679
  warning: "warning-400",
8652
8680
  danger: "danger-400"
8653
8681
  };
8682
+
8654
8683
  const switchBall = plugin__default.withOptions(
8655
8684
  function(options) {
8656
8685
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -8658,9 +8687,7 @@ const switchBall = plugin__default.withOptions(
8658
8687
  prefix = `${prefix}-`;
8659
8688
  }
8660
8689
  return function({ addComponents, theme }) {
8661
- const config = theme(
8662
- "shurikenUi.switchBall"
8663
- );
8690
+ const config = theme(`shurikenUi.${key$a}`);
8664
8691
  addComponents({
8665
8692
  [`.${prefix}switch-ball`]: {
8666
8693
  [`@apply flex cursor-pointer items-center`]: {},
@@ -8720,14 +8747,15 @@ const switchBall = plugin__default.withOptions(
8720
8747
  return {
8721
8748
  theme: {
8722
8749
  shurikenUi: {
8723
- switchBall: defaultSwitchBallConfig
8750
+ [key$a]: defaulConfig
8724
8751
  }
8725
8752
  }
8726
8753
  };
8727
8754
  }
8728
8755
  );
8729
8756
 
8730
- const defaultSwitchThinConfig = {
8757
+ const key$9 = "switchThin";
8758
+ const defaultConfig$9 = {
8731
8759
  handle: {
8732
8760
  border: "muted-300",
8733
8761
  borderDark: "muted-600",
@@ -8770,6 +8798,7 @@ const defaultSwitchThinConfig = {
8770
8798
  warning: "warning-400",
8771
8799
  danger: "danger-400"
8772
8800
  };
8801
+
8773
8802
  const switchThin = plugin__default.withOptions(
8774
8803
  function(options) {
8775
8804
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -8777,9 +8806,7 @@ const switchThin = plugin__default.withOptions(
8777
8806
  prefix = `${prefix}-`;
8778
8807
  }
8779
8808
  return function({ addComponents, theme }) {
8780
- const config = theme(
8781
- "shurikenUi.switchThin"
8782
- );
8809
+ const config = theme(`shurikenUi.switchThin`);
8783
8810
  addComponents({
8784
8811
  [`.${prefix}switch-thin`]: {
8785
8812
  [`@apply flex cursor-pointer items-center`]: {},
@@ -8833,14 +8860,15 @@ const switchThin = plugin__default.withOptions(
8833
8860
  return {
8834
8861
  theme: {
8835
8862
  shurikenUi: {
8836
- switchThin: defaultSwitchThinConfig
8863
+ [key$9]: defaultConfig$9
8837
8864
  }
8838
8865
  }
8839
8866
  };
8840
8867
  }
8841
8868
  );
8842
8869
 
8843
- const defaultTabSliderConfig = {
8870
+ const key$8 = "tabSlider";
8871
+ const defaultConfig$8 = {
8844
8872
  track: {
8845
8873
  bg: "muted-100",
8846
8874
  bgDark: "muted-700",
@@ -8874,6 +8902,7 @@ const defaultTabSliderConfig = {
8874
8902
  track: "10"
8875
8903
  }
8876
8904
  };
8905
+
8877
8906
  const tabSlider = plugin__default.withOptions(
8878
8907
  function(options) {
8879
8908
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -8881,9 +8910,7 @@ const tabSlider = plugin__default.withOptions(
8881
8910
  prefix = `${prefix}-`;
8882
8911
  }
8883
8912
  return function({ addComponents, theme }) {
8884
- const config = theme(
8885
- "shurikenUi.tabSlider"
8886
- );
8913
+ const config = theme(`shurikenUi.${key$8}`);
8887
8914
  addComponents({
8888
8915
  [`.${prefix}tab-slider`]: {
8889
8916
  [`@apply relative`]: {},
@@ -8994,14 +9021,15 @@ const tabSlider = plugin__default.withOptions(
8994
9021
  return {
8995
9022
  theme: {
8996
9023
  shurikenUi: {
8997
- tabSlider: defaultTabSliderConfig
9024
+ [key$8]: defaultConfig$8
8998
9025
  }
8999
9026
  }
9000
9027
  };
9001
9028
  }
9002
9029
  );
9003
9030
 
9004
- const defaultTabsConfig = {
9031
+ const key$7 = "tabs";
9032
+ const defaultConfig$7 = {
9005
9033
  inner: {
9006
9034
  font: "sans",
9007
9035
  space: "6"
@@ -9034,6 +9062,7 @@ const defaultTabsConfig = {
9034
9062
  }
9035
9063
  }
9036
9064
  };
9065
+
9037
9066
  const tabs = plugin__default.withOptions(
9038
9067
  function(options) {
9039
9068
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -9041,7 +9070,7 @@ const tabs = plugin__default.withOptions(
9041
9070
  prefix = `${prefix}-`;
9042
9071
  }
9043
9072
  return function({ addComponents, theme }) {
9044
- const config = theme("shurikenUi.tabs");
9073
+ const config = theme(`shurikenUi.${key$7}`);
9045
9074
  addComponents({
9046
9075
  [`.${prefix}tabs`]: {
9047
9076
  [`@apply relative`]: {},
@@ -9096,14 +9125,15 @@ const tabs = plugin__default.withOptions(
9096
9125
  return {
9097
9126
  theme: {
9098
9127
  shurikenUi: {
9099
- tabs: defaultTabsConfig
9128
+ [key$7]: defaultConfig$7
9100
9129
  }
9101
9130
  }
9102
9131
  };
9103
9132
  }
9104
9133
  );
9105
9134
 
9106
- const defaultTagConfig = {
9135
+ const key$6 = "tag";
9136
+ const defaultConfig$6 = {
9107
9137
  space: "3",
9108
9138
  font: "sans",
9109
9139
  duration: "300",
@@ -9265,6 +9295,7 @@ const defaultTagConfig = {
9265
9295
  }
9266
9296
  }
9267
9297
  };
9298
+
9268
9299
  const tag = plugin__default.withOptions(
9269
9300
  function(options) {
9270
9301
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -9272,7 +9303,7 @@ const tag = plugin__default.withOptions(
9272
9303
  prefix = `${prefix}-`;
9273
9304
  }
9274
9305
  return function({ addComponents, theme }) {
9275
- const config = theme("shurikenUi.tag");
9306
+ const config = theme(`shurikenUi.${key$6}`);
9276
9307
  addComponents({
9277
9308
  [`.${prefix}tag`]: {
9278
9309
  [`@apply inline-block px-${config.space} font-${config.font} transition-shadow duration-${config.duration}`]: {},
@@ -9401,14 +9432,15 @@ const tag = plugin__default.withOptions(
9401
9432
  return {
9402
9433
  theme: {
9403
9434
  shurikenUi: {
9404
- tag: defaultTagConfig
9435
+ [key$6]: defaultConfig$6
9405
9436
  }
9406
9437
  }
9407
9438
  };
9408
9439
  }
9409
9440
  );
9410
9441
 
9411
- const defaultTextConfig = {
9442
+ const key$5 = "text";
9443
+ const defaultConfig$5 = {
9412
9444
  textXS: "xs",
9413
9445
  textSM: "sm",
9414
9446
  textMD: "base",
@@ -9434,6 +9466,7 @@ const defaultTextConfig = {
9434
9466
  textLeadSnug: "snug",
9435
9467
  textLeadLoose: "loose"
9436
9468
  };
9469
+
9437
9470
  const text$1 = plugin__default.withOptions(
9438
9471
  function(options) {
9439
9472
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -9441,7 +9474,7 @@ const text$1 = plugin__default.withOptions(
9441
9474
  prefix = `${prefix}-`;
9442
9475
  }
9443
9476
  return function({ addComponents, theme }) {
9444
- const config = theme("shurikenUi.text");
9477
+ const config = theme(`shurikenUi.${key$5}`);
9445
9478
  addComponents({
9446
9479
  [`.${prefix}text`]: {
9447
9480
  [`@apply font-sans`]: {},
@@ -9525,14 +9558,15 @@ const text$1 = plugin__default.withOptions(
9525
9558
  return {
9526
9559
  theme: {
9527
9560
  shurikenUi: {
9528
- text: defaultTextConfig
9561
+ [key$5]: defaultConfig$5
9529
9562
  }
9530
9563
  }
9531
9564
  };
9532
9565
  }
9533
9566
  );
9534
9567
 
9535
- const defaultTextareaConfig = {
9568
+ const key$4 = "textarea";
9569
+ const defaultConfig$4 = {
9536
9570
  labelFloat: {
9537
9571
  text: "primary-500",
9538
9572
  size: "5",
@@ -9649,6 +9683,7 @@ const defaultTextareaConfig = {
9649
9683
  }
9650
9684
  }
9651
9685
  };
9686
+
9652
9687
  const textarea = plugin__default.withOptions(
9653
9688
  function(options) {
9654
9689
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -9656,9 +9691,7 @@ const textarea = plugin__default.withOptions(
9656
9691
  prefix = `${prefix}-`;
9657
9692
  }
9658
9693
  return function({ addComponents, theme }) {
9659
- const config = theme(
9660
- "shurikenUi.textarea"
9661
- );
9694
+ const config = theme(`shurikenUi.${key$4}`);
9662
9695
  addComponents({
9663
9696
  [`.${prefix}textarea-wrapper`]: {
9664
9697
  [`@apply relative`]: {},
@@ -9848,14 +9881,15 @@ const textarea = plugin__default.withOptions(
9848
9881
  return {
9849
9882
  theme: {
9850
9883
  shurikenUi: {
9851
- textarea: defaultTextareaConfig
9884
+ [key$4]: defaultConfig$4
9852
9885
  }
9853
9886
  }
9854
9887
  };
9855
9888
  }
9856
9889
  );
9857
9890
 
9858
- const defaultThemeSwitchConfig = {
9891
+ const key$3 = "themeSwitch";
9892
+ const defaultConfig$3 = {
9859
9893
  bg: "muted-200",
9860
9894
  bgDark: "muted-700",
9861
9895
  rounded: "full",
@@ -9882,6 +9916,7 @@ const defaultThemeSwitchConfig = {
9882
9916
  duration: "300"
9883
9917
  }
9884
9918
  };
9919
+
9885
9920
  const themeSwitch = plugin__default.withOptions(
9886
9921
  function(options) {
9887
9922
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -9889,9 +9924,7 @@ const themeSwitch = plugin__default.withOptions(
9889
9924
  prefix = `${prefix}-`;
9890
9925
  }
9891
9926
  return function({ addComponents, theme }) {
9892
- const config = theme(
9893
- "shurikenUi.themeSwitch"
9894
- );
9927
+ const config = theme(`shurikenUi.${key$3}`);
9895
9928
  addComponents({
9896
9929
  [`.${prefix}theme-switch`]: {
9897
9930
  [`@apply bg-${config.bg} dark:bg-${config.bgDark} relative block h-6 w-14 scale-[0.8] rounded-${config.rounded}`]: {},
@@ -9930,14 +9963,15 @@ const themeSwitch = plugin__default.withOptions(
9930
9963
  return {
9931
9964
  theme: {
9932
9965
  shurikenUi: {
9933
- themeSwitch: defaultThemeSwitchConfig
9966
+ [key$3]: defaultConfig$3
9934
9967
  }
9935
9968
  }
9936
9969
  };
9937
9970
  }
9938
9971
  );
9939
9972
 
9940
- const defaultThemeToggleConfig = {
9973
+ const key$2 = "themeToggle";
9974
+ const defaultConfig$2 = {
9941
9975
  size: "9",
9942
9976
  rounded: "full",
9943
9977
  duration: "300",
@@ -9980,6 +10014,7 @@ const defaultThemeToggleConfig = {
9980
10014
  }
9981
10015
  }
9982
10016
  };
10017
+
9983
10018
  const themeToggle = plugin__default.withOptions(
9984
10019
  function(options) {
9985
10020
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -9987,9 +10022,7 @@ const themeToggle = plugin__default.withOptions(
9987
10022
  prefix = `${prefix}-`;
9988
10023
  }
9989
10024
  return function({ addComponents, theme }) {
9990
- const config = theme(
9991
- "shurikenUi.themeToggle"
9992
- );
10025
+ const config = theme(`shurikenUi.${key$2}`);
9993
10026
  addComponents({
9994
10027
  [`.${prefix}theme-toggle`]: {
9995
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}`]: {},
@@ -10037,14 +10070,15 @@ const themeToggle = plugin__default.withOptions(
10037
10070
  return {
10038
10071
  theme: {
10039
10072
  shurikenUi: {
10040
- themeToggle: defaultThemeToggleConfig
10073
+ [key$2]: defaultConfig$2
10041
10074
  }
10042
10075
  }
10043
10076
  };
10044
10077
  }
10045
10078
  );
10046
10079
 
10047
- const defaultToastConfig = {
10080
+ const key$1 = "toast";
10081
+ const defaultConfig$1 = {
10048
10082
  font: "sans",
10049
10083
  title: {
10050
10084
  heading: "sm",
@@ -10144,6 +10178,7 @@ const defaultToastConfig = {
10144
10178
  shadowSize: "xl"
10145
10179
  }
10146
10180
  };
10181
+
10147
10182
  const toast = plugin__default.withOptions(
10148
10183
  function(options) {
10149
10184
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -10151,9 +10186,7 @@ const toast = plugin__default.withOptions(
10151
10186
  prefix = `${prefix}-`;
10152
10187
  }
10153
10188
  return function({ addComponents, theme }) {
10154
- const config = theme(
10155
- "shurikenUi.toast"
10156
- );
10189
+ const config = theme(`shurikenUi.${key$1}`);
10157
10190
  addComponents({
10158
10191
  [`.${prefix}toast`]: {
10159
10192
  [`@apply relative flex font-${config.font} overflow-hidden`]: {},
@@ -10264,14 +10297,15 @@ const toast = plugin__default.withOptions(
10264
10297
  return {
10265
10298
  theme: {
10266
10299
  shurikenUi: {
10267
- toast: defaultToastConfig
10300
+ [key$1]: defaultConfig$1
10268
10301
  }
10269
10302
  }
10270
10303
  };
10271
10304
  }
10272
10305
  );
10273
10306
 
10274
- const defaultTooltipConfig = {
10307
+ const key = "tooltip";
10308
+ const defaultConfig = {
10275
10309
  font: "sans",
10276
10310
  bg: "[#1e293b]",
10277
10311
  bgDark: "[#ec4899]",
@@ -10280,6 +10314,7 @@ const defaultTooltipConfig = {
10280
10314
  minWidth: "3rem",
10281
10315
  maxWidth: "21rem"
10282
10316
  };
10317
+
10283
10318
  const tooltip = plugin__default.withOptions(
10284
10319
  function(options) {
10285
10320
  let { prefix } = defu.defu(options, defaultPluginOptions);
@@ -10287,9 +10322,7 @@ const tooltip = plugin__default.withOptions(
10287
10322
  prefix = `${prefix}-`;
10288
10323
  }
10289
10324
  return function({ addComponents, theme }) {
10290
- const config = theme(
10291
- "shurikenUi.tooltip"
10292
- );
10325
+ const config = theme(`shurikenUi.${key}`);
10293
10326
  const tooltip = `data-${prefix}tooltip`;
10294
10327
  const position = `data-${prefix}tooltip-position`;
10295
10328
  addComponents({
@@ -10451,6 +10484,9 @@ const tooltip = plugin__default.withOptions(
10451
10484
  }
10452
10485
  return {
10453
10486
  theme: {
10487
+ shurikenUi: {
10488
+ [key]: defaultConfig
10489
+ },
10454
10490
  extend: {
10455
10491
  keyframes: {
10456
10492
  [`${prefix}tooltip-x`]: {
@@ -10470,9 +10506,6 @@ const tooltip = plugin__default.withOptions(
10470
10506
  [`${prefix}tooltip-x`]: `${prefix}tooltip-x 300ms ease-out forwards`,
10471
10507
  [`${prefix}tooltip-y`]: `${prefix}tooltip-y 300ms ease-out forwards`
10472
10508
  }
10473
- },
10474
- shurikenUi: {
10475
- tooltip: defaultTooltipConfig
10476
10509
  }
10477
10510
  }
10478
10511
  };