@vaneui/ui 0.2.1-alpha.20250820100624.167a145 → 0.2.1-alpha.20250820170702.e0272da

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3160,7 +3160,10 @@ class ComponentTheme {
3160
3160
  const defaults = this.defaults;
3161
3161
  const extractedKeys = {};
3162
3162
  for (const category of this.categories) {
3163
- extractedKeys[category] = pickFirstTruthyKeyByCategory(componentProps, defaults, category);
3163
+ const key = pickFirstTruthyKeyByCategory(componentProps, defaults, category);
3164
+ if (key !== undefined) {
3165
+ extractedKeys[category] = key;
3166
+ }
3164
3167
  }
3165
3168
  const walk = (map) => {
3166
3169
  for (const key of Object.keys(map)) {
@@ -3177,7 +3180,11 @@ class ComponentTheme {
3177
3180
  // Apply extra classes based on extracted keys
3178
3181
  for (const [key, value] of Object.entries(extractedKeys)) {
3179
3182
  if (value && this.extraClasses[value]) {
3180
- classes.push(...this.extraClasses[value].split(/\s+/));
3183
+ const existingClasses = this.extraClasses[value];
3184
+ if (existingClasses !== undefined) {
3185
+ const cs = existingClasses.split(/\s+/);
3186
+ classes.push(...cs);
3187
+ }
3181
3188
  }
3182
3189
  }
3183
3190
  return classes.filter(Boolean);
@@ -3990,6 +3997,223 @@ DirectionTheme.defaultClasses = {
3990
3997
  columnReverse: "flex-col-reverse",
3991
3998
  };
3992
3999
 
4000
+ /**
4001
+ * Default props for all components using the existing ThemeDefaults type
4002
+ */
4003
+ const themeDefaults = {
4004
+ button: {
4005
+ md: true,
4006
+ inlineFlex: true,
4007
+ itemsCenter: true,
4008
+ justifyCenter: true,
4009
+ outline: true,
4010
+ default: true,
4011
+ rounded: true,
4012
+ sans: true,
4013
+ semibold: true,
4014
+ textCenter: true,
4015
+ noBorder: true,
4016
+ gap: true,
4017
+ padding: true,
4018
+ ring: true,
4019
+ shadow: true,
4020
+ },
4021
+ card: {
4022
+ md: true,
4023
+ flex: true,
4024
+ default: true,
4025
+ rounded: true,
4026
+ normal: true,
4027
+ column: true,
4028
+ border: true,
4029
+ gap: true,
4030
+ padding: true,
4031
+ },
4032
+ chip: {
4033
+ md: true,
4034
+ inlineFlex: true,
4035
+ itemsCenter: true,
4036
+ outline: true,
4037
+ secondary: true,
4038
+ rounded: true,
4039
+ mono: true,
4040
+ normal: true,
4041
+ noShadow: true,
4042
+ padding: true,
4043
+ gap: true,
4044
+ ring: true,
4045
+ },
4046
+ badge: {
4047
+ md: true,
4048
+ default: true,
4049
+ inlineFlex: true,
4050
+ outline: true,
4051
+ pill: true,
4052
+ sans: true,
4053
+ semibold: true,
4054
+ uppercase: true,
4055
+ noShadow: true,
4056
+ itemsCenter: true,
4057
+ padding: true,
4058
+ gap: true,
4059
+ ring: true,
4060
+ },
4061
+ container: {
4062
+ noRing: true,
4063
+ flex: true,
4064
+ md: true,
4065
+ itemsCenter: true,
4066
+ gap: true,
4067
+ sharp: true,
4068
+ },
4069
+ section: {
4070
+ md: true,
4071
+ flex: true,
4072
+ default: true,
4073
+ itemsStart: true,
4074
+ gap: true,
4075
+ padding: true,
4076
+ noBorder: true,
4077
+ noRing: true,
4078
+ noShadow: true,
4079
+ sharp: true,
4080
+ },
4081
+ stack: {
4082
+ md: true,
4083
+ flex: true,
4084
+ column: true,
4085
+ flexWrap: true,
4086
+ gap: true,
4087
+ padding: true,
4088
+ noBorder: true,
4089
+ noRing: true,
4090
+ sharp: true,
4091
+ },
4092
+ row: {
4093
+ row: true,
4094
+ md: true,
4095
+ flex: true,
4096
+ itemsCenter: true,
4097
+ gap: true,
4098
+ noBorder: true,
4099
+ noRing: true,
4100
+ sharp: true,
4101
+ },
4102
+ col: {
4103
+ column: true,
4104
+ md: true,
4105
+ flex: true,
4106
+ gap: true,
4107
+ noBorder: true,
4108
+ noRing: true,
4109
+ sharp: true,
4110
+ },
4111
+ grid2: {
4112
+ md: true,
4113
+ grid: true,
4114
+ gap: true,
4115
+ },
4116
+ grid3: {
4117
+ md: true,
4118
+ grid: true,
4119
+ gap: true,
4120
+ },
4121
+ grid4: {
4122
+ md: true,
4123
+ grid: true,
4124
+ gap: true,
4125
+ },
4126
+ divider: {
4127
+ md: true,
4128
+ default: true,
4129
+ noPadding: true,
4130
+ },
4131
+ label: {
4132
+ md: true,
4133
+ flex: true,
4134
+ gap: true,
4135
+ default: true,
4136
+ sans: true,
4137
+ medium: true,
4138
+ },
4139
+ img: {
4140
+ rounded: true,
4141
+ },
4142
+ code: {
4143
+ md: true,
4144
+ mono: true,
4145
+ semibold: true,
4146
+ rounded: true,
4147
+ inline: true,
4148
+ padding: true,
4149
+ default: true,
4150
+ ring: true,
4151
+ },
4152
+ text: {
4153
+ md: true,
4154
+ default: true,
4155
+ sans: true,
4156
+ textLeft: true,
4157
+ },
4158
+ title: {
4159
+ md: true,
4160
+ default: true,
4161
+ sans: true,
4162
+ semibold: true,
4163
+ textLeft: true,
4164
+ },
4165
+ pageTitle: {
4166
+ md: true,
4167
+ default: true,
4168
+ sans: true,
4169
+ semibold: true,
4170
+ textLeft: true,
4171
+ },
4172
+ sectionTitle: {
4173
+ md: true,
4174
+ default: true,
4175
+ sans: true,
4176
+ semibold: true,
4177
+ textLeft: true,
4178
+ },
4179
+ link: {
4180
+ underline: true,
4181
+ link: true,
4182
+ sans: true,
4183
+ },
4184
+ listItem: {
4185
+ sans: true,
4186
+ },
4187
+ list: {
4188
+ md: true,
4189
+ default: true,
4190
+ sans: true,
4191
+ normal: true,
4192
+ padding: true,
4193
+ disc: true,
4194
+ },
4195
+ checkbox: {
4196
+ input: {
4197
+ md: true,
4198
+ default: true,
4199
+ border: true,
4200
+ rounded: true,
4201
+ noRing: true,
4202
+ noShadow: true,
4203
+ filled: true,
4204
+ },
4205
+ check: {
4206
+ default: true,
4207
+ },
4208
+ wrapper: {
4209
+ md: true,
4210
+ inlineGrid: true,
4211
+ itemsCenter: true,
4212
+ justifyCenter: true,
4213
+ },
4214
+ },
4215
+ };
4216
+
3993
4217
  const defaultButtonTheme = new ComponentTheme("button", "w-fit h-fit cursor-pointer transition-all duration-200 whitespace-nowrap", {
3994
4218
  size: {
3995
4219
  px: new PxTheme({
@@ -4015,23 +4239,7 @@ const defaultButtonTheme = new ComponentTheme("button", "w-fit h-fit cursor-poin
4015
4239
  flexDirection: new DirectionTheme(),
4016
4240
  },
4017
4241
  typography: defaultTypographyTheme,
4018
- }, {
4019
- md: true,
4020
- inlineFlex: true,
4021
- itemsCenter: true,
4022
- justifyCenter: true,
4023
- outline: true,
4024
- default: true,
4025
- rounded: true,
4026
- sans: true,
4027
- semibold: true,
4028
- textCenter: true,
4029
- noBorder: true,
4030
- gap: true,
4031
- padding: true,
4032
- ring: true,
4033
- shadow: true,
4034
- }, BUTTON_CATEGORIES, (props, defaults) => {
4242
+ }, themeDefaults.button, BUTTON_CATEGORIES, (props, defaults) => {
4035
4243
  // Determine tag based on href prop
4036
4244
  return props.href ? "a" : "button";
4037
4245
  });
@@ -4059,21 +4267,7 @@ const defaultBadgeTheme = new ComponentTheme("span", "w-fit h-fit transition-all
4059
4267
  flexDirection: new DirectionTheme(),
4060
4268
  },
4061
4269
  typography: defaultTypographyTheme,
4062
- }, {
4063
- md: true,
4064
- default: true,
4065
- inlineFlex: true,
4066
- outline: true,
4067
- pill: true,
4068
- sans: true,
4069
- semibold: true,
4070
- uppercase: true,
4071
- noShadow: true,
4072
- itemsCenter: true,
4073
- padding: true,
4074
- gap: true,
4075
- ring: true,
4076
- }, BADGE_CATEGORIES, (props, defaults) => {
4270
+ }, themeDefaults.badge, BADGE_CATEGORIES, (props, defaults) => {
4077
4271
  return props.href ? "a" : "span";
4078
4272
  });
4079
4273
 
@@ -4100,20 +4294,7 @@ const defaultChipTheme = new ComponentTheme("span", "w-fit h-fit transition-all
4100
4294
  flexDirection: new DirectionTheme(),
4101
4295
  },
4102
4296
  typography: defaultTypographyTheme,
4103
- }, {
4104
- md: true,
4105
- inlineFlex: true,
4106
- itemsCenter: true,
4107
- outline: true,
4108
- secondary: true,
4109
- rounded: true,
4110
- mono: true,
4111
- normal: true,
4112
- noShadow: true,
4113
- padding: true,
4114
- gap: true,
4115
- ring: true,
4116
- }, CHIP_CATEGORIES, (props, defaults) => {
4297
+ }, themeDefaults.chip, CHIP_CATEGORIES, (props, defaults) => {
4117
4298
  return props.href ? "a" : "span";
4118
4299
  });
4119
4300
 
@@ -4140,16 +4321,7 @@ const defaultCodeTheme = new ComponentTheme("code", "", {
4140
4321
  flexDirection: new DirectionTheme(),
4141
4322
  },
4142
4323
  typography: defaultTypographyTheme,
4143
- }, {
4144
- inline: true,
4145
- outline: true,
4146
- default: true,
4147
- rounded: true,
4148
- mono: true,
4149
- padding: true,
4150
- gap: true,
4151
- ring: true,
4152
- }, CODE_CATEGORIES);
4324
+ }, themeDefaults.code, CODE_CATEGORIES);
4153
4325
 
4154
4326
  const isObject = (item) => {
4155
4327
  return item !== null && typeof item === 'object' && !Array.isArray(item);
@@ -4268,12 +4440,7 @@ class ListStyleTheme extends BaseTheme {
4268
4440
  }
4269
4441
  }
4270
4442
 
4271
- const typographyThemeDefaults = {
4272
- md: true,
4273
- default: true,
4274
- sans: true,
4275
- };
4276
- const createTypographyComponentTheme = (tag, base = "text-balance", textSizeMap = textSizeClasses, defaults = typographyThemeDefaults) => {
4443
+ const createTypographyComponentTheme = (tag, base = "text-balance", textSizeMap = textSizeClasses, defaults = {}) => {
4277
4444
  return new ComponentTheme(tag, base, {
4278
4445
  size: {
4279
4446
  text: new SizeTheme(textSizeMap),
@@ -4295,7 +4462,7 @@ const pageTitleTheme = createTypographyComponentTheme("h1", "text-balance tracki
4295
4462
  md: "text-5xl max-lg:text-4xl max-md:text-3xl",
4296
4463
  lg: "text-6xl max-lg:text-5xl max-md:text-4xl",
4297
4464
  xl: "text-7xl max-lg:text-6xl max-md:text-5xl"
4298
- }, mergeDefaults(typographyThemeDefaults, { semibold: true }));
4465
+ }, mergeDefaults(themeDefaults.pageTitle, { semibold: true }));
4299
4466
  // Section title specific theme
4300
4467
  const sectionTitleTheme = createTypographyComponentTheme("h2", "text-balance w-fit", {
4301
4468
  xs: "text-2xl max-lg:text-xl max-md:text-lg",
@@ -4303,11 +4470,11 @@ const sectionTitleTheme = createTypographyComponentTheme("h2", "text-balance w-f
4303
4470
  md: "text-4xl max-lg:text-3xl max-md:text-2xl",
4304
4471
  lg: "text-5xl max-lg:text-4xl max-md:text-3xl",
4305
4472
  xl: "text-6xl max-lg:text-5xl max-md:text-4xl"
4306
- }, mergeDefaults(typographyThemeDefaults, { semibold: true }));
4473
+ }, mergeDefaults(themeDefaults.sectionTitle, { semibold: true }));
4307
4474
  // Title specific theme
4308
- const titleTheme = createTypographyComponentTheme("h3", "text-balance w-fit", { xs: "text-lg", sm: "text-xl", md: "text-2xl", lg: "text-3xl", xl: "text-4xl" }, mergeDefaults(typographyThemeDefaults, { semibold: true }));
4475
+ const titleTheme = createTypographyComponentTheme("h3", "text-balance w-fit", { xs: "text-lg", sm: "text-xl", md: "text-2xl", lg: "text-3xl", xl: "text-4xl" }, mergeDefaults(themeDefaults.title, { semibold: true }));
4309
4476
  // Text specific theme
4310
- const textTheme = createTypographyComponentTheme("p", "p-0 m-0 w-fit", textSizeClasses);
4477
+ const textTheme = createTypographyComponentTheme("p", "p-0 m-0 w-fit", textSizeClasses, themeDefaults.text);
4311
4478
  // Link specific theme
4312
4479
  const linkTheme = new ComponentTheme("a", "hover:underline w-fit cursor-pointer", {
4313
4480
  size: {
@@ -4318,10 +4485,7 @@ const linkTheme = new ComponentTheme("a", "hover:underline w-fit cursor-pointer"
4318
4485
  },
4319
4486
  typography: defaultTypographyTheme,
4320
4487
  layout: defaultLayoutTheme,
4321
- }, {
4322
- link: true,
4323
- sans: true,
4324
- }, TYPOGRAPHY_CATEGORIES);
4488
+ }, themeDefaults.link, TYPOGRAPHY_CATEGORIES);
4325
4489
  // List specific theme
4326
4490
  const listItemTheme = new ComponentTheme("li", "", {
4327
4491
  size: {
@@ -4331,8 +4495,7 @@ const listItemTheme = new ComponentTheme("li", "", {
4331
4495
  text: AppearanceTheme.createTheme({ base: textAppearanceClasses }),
4332
4496
  },
4333
4497
  typography: defaultTypographyTheme,
4334
- }, {}, //keep empty to apply parent style
4335
- TYPOGRAPHY_CATEGORIES);
4498
+ }, themeDefaults.listItem, TYPOGRAPHY_CATEGORIES);
4336
4499
  // List specific theme
4337
4500
  const listTheme = new ComponentTheme("ul", "list-inside", {
4338
4501
  size: {
@@ -4345,14 +4508,7 @@ const listTheme = new ComponentTheme("ul", "list-inside", {
4345
4508
  typography: defaultTypographyTheme,
4346
4509
  layout: defaultLayoutTheme,
4347
4510
  listStyle: new ListStyleTheme(),
4348
- }, {
4349
- md: true,
4350
- default: true,
4351
- sans: true,
4352
- normal: true,
4353
- padding: true,
4354
- disc: true,
4355
- }, LIST_CATEGORIES, (props, defaults) => {
4511
+ }, themeDefaults.list, LIST_CATEGORIES, (props, defaults) => {
4356
4512
  // Determine tag based on list style from props and defaults
4357
4513
  const componentProps = props;
4358
4514
  const defaultsRecord = defaults;
@@ -4419,17 +4575,7 @@ const defaultCardTheme = new ComponentTheme("div", "", {
4419
4575
  ring: AppearanceTheme.createTheme({ base: ringAppearanceClasses }),
4420
4576
  },
4421
4577
  typography: defaultTypographyTheme,
4422
- }, {
4423
- md: true,
4424
- flex: true,
4425
- default: true,
4426
- rounded: true,
4427
- normal: true,
4428
- column: true,
4429
- border: true,
4430
- gap: true,
4431
- padding: true,
4432
- }, CARD_CATEGORIES, (props, defaults) => {
4578
+ }, themeDefaults.card, CARD_CATEGORIES, (props, defaults) => {
4433
4579
  return props.href ? "a" : "div";
4434
4580
  });
4435
4581
 
@@ -4452,16 +4598,7 @@ const defaultRowTheme = new ComponentTheme("div", "", {
4452
4598
  ring: GenericVariantTheme.createUIElementRingTheme(),
4453
4599
  shadow: GenericVariantTheme.createLayoutShadowTheme(),
4454
4600
  }
4455
- }, {
4456
- row: true,
4457
- md: true,
4458
- flex: true,
4459
- itemsCenter: true,
4460
- gap: true,
4461
- noBorder: true,
4462
- noRing: true,
4463
- sharp: true,
4464
- }, ROW_CATEGORIES, (props, defaults) => {
4601
+ }, themeDefaults.row, ROW_CATEGORIES, (props, defaults) => {
4465
4602
  // Determine tag based on href prop
4466
4603
  return props.href ? "a" : "div";
4467
4604
  });
@@ -4476,11 +4613,7 @@ const defaultDividerTheme = new ComponentTheme("div", "h-px w-full", {
4476
4613
  }),
4477
4614
  },
4478
4615
  layout: defaultLayoutTheme,
4479
- }, {
4480
- md: true,
4481
- default: true,
4482
- noPadding: true,
4483
- }, DIVIDER_CATEGORIES);
4616
+ }, themeDefaults.divider, DIVIDER_CATEGORIES);
4484
4617
 
4485
4618
  const defaultContainerTheme = new ComponentTheme("div", "flex-col mx-auto w-full", {
4486
4619
  size: {
@@ -4508,14 +4641,7 @@ const defaultContainerTheme = new ComponentTheme("div", "flex-col mx-auto w-full
4508
4641
  ring: AppearanceTheme.createTheme({ base: ringAppearanceClasses }),
4509
4642
  shadow: GenericVariantTheme.createLayoutShadowTheme(),
4510
4643
  }
4511
- }, {
4512
- noRing: true,
4513
- flex: true,
4514
- md: true,
4515
- itemsCenter: true,
4516
- gap: true,
4517
- sharp: true,
4518
- }, CONTAINER_CATEGORIES, (props, defaults) => {
4644
+ }, themeDefaults.container, CONTAINER_CATEGORIES, (props, defaults) => {
4519
4645
  return props.href ? "a" : "div";
4520
4646
  });
4521
4647
 
@@ -4537,15 +4663,7 @@ const defaultColTheme = new ComponentTheme("div", "", {
4537
4663
  ring: GenericVariantTheme.createUIElementRingTheme(),
4538
4664
  shadow: GenericVariantTheme.createLayoutShadowTheme(),
4539
4665
  }
4540
- }, {
4541
- column: true,
4542
- md: true,
4543
- flex: true,
4544
- gap: true,
4545
- noBorder: true,
4546
- noRing: true,
4547
- sharp: true,
4548
- }, COL_CATEGORIES, (props, defaults) => {
4666
+ }, themeDefaults.col, COL_CATEGORIES, (props, defaults) => {
4549
4667
  return props.href ? "a" : "div";
4550
4668
  });
4551
4669
 
@@ -4570,17 +4688,7 @@ const defaultStackTheme = new ComponentTheme("div", "", {
4570
4688
  ring: GenericVariantTheme.createUIElementRingTheme(),
4571
4689
  shadow: GenericVariantTheme.createLayoutShadowTheme(),
4572
4690
  }
4573
- }, {
4574
- md: true,
4575
- flex: true,
4576
- column: true,
4577
- flexWrap: true,
4578
- gap: true,
4579
- padding: true,
4580
- noBorder: true,
4581
- noRing: true,
4582
- sharp: true,
4583
- }, STACK_CATEGORIES, (props, defaults) => {
4691
+ }, themeDefaults.stack, STACK_CATEGORIES, (props, defaults) => {
4584
4692
  return props.href ? "a" : "div";
4585
4693
  });
4586
4694
 
@@ -4618,26 +4726,10 @@ const defaultSectionTheme = new ComponentTheme("div", "w-full flex-col", {
4618
4726
  ring: new RingTheme(),
4619
4727
  radius: RadiusTheme.createLayoutTheme(),
4620
4728
  },
4621
- }, {
4622
- md: true,
4623
- flex: true,
4624
- default: true,
4625
- itemsStart: true,
4626
- gap: true,
4627
- padding: true,
4628
- noBorder: true,
4629
- noRing: true,
4630
- noShadow: true,
4631
- sharp: true,
4632
- }, SECTION_CATEGORIES, (props, defaults) => {
4729
+ }, themeDefaults.section, SECTION_CATEGORIES, (props, defaults) => {
4633
4730
  return props.href ? "a" : "div";
4634
4731
  });
4635
4732
 
4636
- const gridDefaults = {
4637
- md: true,
4638
- gap: true,
4639
- grid: true,
4640
- };
4641
4733
  const gridSubThemes = {
4642
4734
  size: {
4643
4735
  gap: new GapTheme({
@@ -4657,16 +4749,17 @@ const gridSubThemes = {
4657
4749
  flexDirection: new DirectionTheme(),
4658
4750
  },
4659
4751
  };
4660
- const defaultGrid2Theme = new ComponentTheme("div", "grid-cols-1 md:grid-cols-2", gridSubThemes, gridDefaults, GRID_CATEGORIES, (props, defaults) => {
4752
+ const defaultGrid2Theme = new ComponentTheme("div", "grid-cols-1 md:grid-cols-2", gridSubThemes, themeDefaults.grid2, GRID_CATEGORIES, (props, defaults) => {
4661
4753
  return props.href ? "a" : "div";
4662
4754
  });
4663
- const defaultGrid3Theme = new ComponentTheme("div", "grid-cols-1 md:grid-cols-3", gridSubThemes, gridDefaults, GRID_CATEGORIES, (props, defaults) => {
4755
+ const defaultGrid3Theme = new ComponentTheme("div", "grid-cols-1 md:grid-cols-3", gridSubThemes, themeDefaults.grid3, GRID_CATEGORIES, (props, defaults) => {
4664
4756
  return props.href ? "a" : "div";
4665
4757
  });
4666
- const defaultGrid4Theme = new ComponentTheme("div", "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4", gridSubThemes, gridDefaults, GRID_CATEGORIES, (props, defaults) => {
4758
+ const defaultGrid4Theme = new ComponentTheme("div", "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4", gridSubThemes, themeDefaults.grid4, GRID_CATEGORIES, (props, defaults) => {
4667
4759
  return props.href ? "a" : "div";
4668
4760
  });
4669
4761
 
4762
+ var _a, _b, _c;
4670
4763
  const defaultCheckboxTheme = new ComponentTheme("input", "peer col-start-1 row-start-1 cursor-pointer appearance-none ring-transparent", {
4671
4764
  size: {
4672
4765
  size: new SizeTheme({
@@ -4698,25 +4791,14 @@ const defaultCheckboxTheme = new ComponentTheme("input", "peer col-start-1 row-s
4698
4791
  check: GenericVariantTheme.createCheckedAppearanceTheme(),
4699
4792
  shadow: GenericVariantTheme.createUIElementShadowTheme(),
4700
4793
  }
4701
- }, {
4702
- md: true,
4703
- default: true,
4704
- border: true,
4705
- rounded: true,
4706
- noRing: true,
4707
- noShadow: true,
4708
- filled: true,
4709
- }, CHECKBOX_CATEGORIES);
4794
+ }, ((_a = themeDefaults.checkbox) === null || _a === void 0 ? void 0 : _a.input) || {}, CHECKBOX_CATEGORIES);
4710
4795
  const defaultCheckTheme = new ComponentTheme("span", "invisible col-start-1 row-start-1 peer-checked:visible", {
4711
4796
  checkElement: () => jsxRuntime.jsx("svg", { viewBox: "0 0 14 14", fill: "none", children: jsxRuntime.jsx("path", { d: "M3 8L6 11L11 3.5", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", fill: "none", stroke: "currentColor" }) }),
4712
4797
  appearance: {
4713
4798
  color: GenericVariantTheme.createUIElementTextTheme()
4714
4799
  },
4715
4800
  layout: defaultLayoutTheme,
4716
- }, {
4717
- default: true,
4718
- filled: true,
4719
- }, CHECKBOX_CATEGORIES);
4801
+ }, ((_b = themeDefaults.checkbox) === null || _b === void 0 ? void 0 : _b.check) || {}, CHECKBOX_CATEGORIES);
4720
4802
  const defaultCheckboxWrapperTheme = new ComponentTheme("span", "", {
4721
4803
  size: {
4722
4804
  height: new SizeTheme({
@@ -4728,12 +4810,7 @@ const defaultCheckboxWrapperTheme = new ComponentTheme("span", "", {
4728
4810
  })
4729
4811
  },
4730
4812
  layout: defaultLayoutTheme,
4731
- }, {
4732
- md: true,
4733
- inlineGrid: true,
4734
- itemsCenter: true,
4735
- justifyCenter: true,
4736
- }, CHECKBOX_CATEGORIES);
4813
+ }, ((_c = themeDefaults.checkbox) === null || _c === void 0 ? void 0 : _c.wrapper) || {}, CHECKBOX_CATEGORIES);
4737
4814
 
4738
4815
  const defaultLabelTheme = new ComponentTheme("label", "has-[input]:cursor-pointer cursor-default", {
4739
4816
  size: {
@@ -4749,14 +4826,7 @@ const defaultLabelTheme = new ComponentTheme("label", "has-[input]:cursor-pointe
4749
4826
  wrap: new WrapTheme(),
4750
4827
  flexDirection: new DirectionTheme(),
4751
4828
  },
4752
- }, {
4753
- md: true,
4754
- flex: true,
4755
- gap: true,
4756
- default: true,
4757
- sans: true,
4758
- medium: true,
4759
- }, LABEL_CATEGORIES);
4829
+ }, themeDefaults.label, LABEL_CATEGORIES);
4760
4830
 
4761
4831
  const defaultImgTheme = new ComponentTheme("img", "object-cover", // Default to cover for better image display
4762
4832
  {
@@ -4771,12 +4841,7 @@ const defaultImgTheme = new ComponentTheme("img", "object-cover", // Default to
4771
4841
  ring: GenericVariantTheme.createUIElementRingTheme(),
4772
4842
  shadow: GenericVariantTheme.createLayoutShadowTheme()
4773
4843
  }
4774
- }, {
4775
- rounded: true,
4776
- noShadow: true,
4777
- noBorder: true,
4778
- noRing: true,
4779
- }, IMG_CATEGORIES);
4844
+ }, themeDefaults.img, IMG_CATEGORIES);
4780
4845
 
4781
4846
  const defaultTheme = {
4782
4847
  button: defaultButtonTheme,
@@ -5106,5 +5171,6 @@ exports.VISUAL_CORE = VISUAL_CORE;
5106
5171
  exports.VISUAL_DECORATION = VISUAL_DECORATION;
5107
5172
  exports.VISUAL_FULL = VISUAL_FULL;
5108
5173
  exports.defaultTheme = defaultTheme;
5174
+ exports.themeDefaults = themeDefaults;
5109
5175
  exports.useTheme = useTheme;
5110
5176
  //# sourceMappingURL=index.js.map