@okshaun/components 2.0.2 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/icon-metadata.json +27 -0
  2. package/dist/index.js +2567 -1458
  3. package/dist/index.js.map +1 -1
  4. package/dist/panda.buildinfo.json +1008 -48
  5. package/dist/{preset-DAmO4B54.js → preset-BAn5LBiW.js} +738 -141
  6. package/dist/preset-BAn5LBiW.js.map +1 -0
  7. package/dist/preset.js +1 -1
  8. package/dist/specs/keyframes.json +11 -0
  9. package/dist/specs/recipes.json +153 -13
  10. package/dist/specs/tokens.json +5 -0
  11. package/dist/sprite.svg +1 -1
  12. package/dist/sprite.symbol.html +57 -2
  13. package/dist/styles.css +14752 -2108
  14. package/dist/svgs/barcode-off.svg +1 -0
  15. package/dist/svgs/spinner.svg +1 -0
  16. package/dist/types/index.d.ts +171 -190
  17. package/package.json +1 -1
  18. package/src/recipes/avatar.ts +1 -1
  19. package/src/recipes/badge.ts +17 -0
  20. package/src/recipes/breakpointIndicator.ts +11 -0
  21. package/src/recipes/button.ts +112 -2
  22. package/src/recipes/chip.ts +142 -17
  23. package/src/recipes/datePicker.ts +22 -0
  24. package/src/recipes/icon.ts +25 -6
  25. package/src/recipes/kbd.ts +53 -0
  26. package/src/recipes/list.ts +91 -1
  27. package/src/recipes/listItem.ts +43 -36
  28. package/src/recipes/listItemGroup.ts +8 -30
  29. package/src/recipes/modal.ts +36 -5
  30. package/src/recipes/recipes-regular.ts +2 -0
  31. package/src/recipes/recipes-slot.ts +1 -0
  32. package/src/recipes/select.ts +8 -1
  33. package/src/recipes/skeleton.ts +72 -0
  34. package/src/recipes/spinner.ts +27 -24
  35. package/src/recipes/textInput.ts +42 -1
  36. package/src/recipes/timePicker.ts +17 -0
  37. package/src/styles/primitives/animations.ts +3 -0
  38. package/src/styles/utilities/keyframes.ts +4 -0
  39. package/src/utils/mergeAriaDescribedBy.ts +7 -0
  40. package/dist/preset-DAmO4B54.js.map +0 -1
@@ -304,6 +304,10 @@ const keyframes = defineKeyframes({
304
304
  "0%": { transform: "translateX(-100%)", opacity: "0" },
305
305
  "100%": { transform: "translateX(0)", opacity: "1" }
306
306
  },
307
+ skeletonWave: {
308
+ "0%": { transform: "translateX(-100%)" },
309
+ "100%": { transform: "translateX(100%)" }
310
+ },
307
311
  // Modal animations
308
312
  modalFadeIn: {
309
313
  "0%": { opacity: "0" },
@@ -558,6 +562,9 @@ const animations = defineTokens.animations({
558
562
  pulse: {
559
563
  value: "pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"
560
564
  },
565
+ skeletonWave: {
566
+ value: "skeletonWave 1.6s linear infinite"
567
+ },
561
568
  bounce: {
562
569
  value: "bounce 1s infinite"
563
570
  }
@@ -4573,6 +4580,15 @@ const boxRecipe = defineRecipe({
4573
4580
  jsx: ["Box"],
4574
4581
  base: {}
4575
4582
  });
4583
+ const breakpointIndicatorRecipe = defineRecipe({
4584
+ className: "breakpointIndicator",
4585
+ jsx: ["BreakpointIndicator"],
4586
+ base: {
4587
+ display: "inline-flex",
4588
+ alignItems: "center",
4589
+ justifyContent: "center"
4590
+ }
4591
+ });
4576
4592
  const interactiveHoverStyles = {
4577
4593
  cursor: "pointer",
4578
4594
  transition: "all",
@@ -4833,16 +4849,112 @@ const highlightTextRecipe = defineRecipe({
4833
4849
  },
4834
4850
  variants: {}
4835
4851
  });
4836
- const iconBase = {
4837
- w: "24",
4838
- aspectRatio: "square",
4839
- fill: "icon.decorative"
4840
- };
4852
+ const sizeVariants = Object.fromEntries(
4853
+ Object.keys(numericSizes).map((key) => [key, { w: key }])
4854
+ );
4841
4855
  const iconRecipe = defineRecipe({
4842
4856
  className: "icon",
4843
4857
  jsx: ["Icon"],
4844
- base: iconBase
4858
+ base: {
4859
+ aspectRatio: "square",
4860
+ fill: "icon.decorative",
4861
+ flexShrink: 0,
4862
+ // Default size. Does not affect variant class names, so it is safe here.
4863
+ w: "24"
4864
+ },
4865
+ variants: {
4866
+ size: {
4867
+ ...sizeVariants,
4868
+ sm: { w: "16" },
4869
+ md: { w: "20" },
4870
+ lg: { w: "24" },
4871
+ xl: { w: "28" }
4872
+ }
4873
+ },
4874
+ // No default size variant: a default here would be hard to override in
4875
+ // other recipes.
4876
+ defaultVariants: {}
4845
4877
  });
4878
+ const listDensity = {
4879
+ compact: {
4880
+ groupLabel: {
4881
+ px: "10",
4882
+ pt: "8",
4883
+ pb: "2",
4884
+ fontSize: "12"
4885
+ },
4886
+ divider: {
4887
+ my: "4",
4888
+ mx: "10"
4889
+ },
4890
+ row: {
4891
+ py: "3",
4892
+ px: "10"
4893
+ },
4894
+ icon: {
4895
+ w: "24",
4896
+ h: "24"
4897
+ },
4898
+ beforeSlot: {
4899
+ mr: "3"
4900
+ },
4901
+ afterSlot: {
4902
+ ml: "3"
4903
+ }
4904
+ },
4905
+ comfortable: {
4906
+ groupLabel: {
4907
+ px: "12",
4908
+ pt: "12",
4909
+ pb: "4",
4910
+ fontSize: "14"
4911
+ },
4912
+ divider: {
4913
+ my: "6",
4914
+ mx: "12"
4915
+ },
4916
+ row: {
4917
+ py: "7",
4918
+ px: "12"
4919
+ },
4920
+ icon: {
4921
+ w: "24",
4922
+ h: "24"
4923
+ },
4924
+ beforeSlot: {
4925
+ mr: "3"
4926
+ },
4927
+ afterSlot: {
4928
+ ml: "3"
4929
+ }
4930
+ },
4931
+ spacious: {
4932
+ groupLabel: {
4933
+ px: "16",
4934
+ pt: "16",
4935
+ pb: "6",
4936
+ fontSize: "16"
4937
+ },
4938
+ divider: {
4939
+ my: "8",
4940
+ mx: "16"
4941
+ },
4942
+ row: {
4943
+ py: "9",
4944
+ px: "16"
4945
+ },
4946
+ icon: {
4947
+ w: "28",
4948
+ h: "28"
4949
+ },
4950
+ beforeSlot: {
4951
+ mr: "4"
4952
+ },
4953
+ afterSlot: {
4954
+ ml: "4"
4955
+ }
4956
+ }
4957
+ };
4846
4958
  const listRecipe = defineRecipe({
4847
4959
  className: "list",
4848
4960
  jsx: ["List"],
@@ -4853,7 +4965,16 @@ const listRecipe = defineRecipe({
4853
4965
  justifyContent: "start",
4854
4966
  gap: "0"
4855
4967
  },
4856
- variants: {}
4968
+ variants: {
4969
+ density: {
4970
+ compact: {},
4971
+ comfortable: {},
4972
+ spacious: {}
4973
+ }
4974
+ },
4975
+ defaultVariants: {
4976
+ density: "compact"
4977
+ }
4857
4978
  });
4858
4979
  const radioInputBase = {
4859
4980
  display: "flex",
@@ -4878,6 +4999,75 @@ const radioInputRecipe = defineRecipe({
4878
4999
  base: radioInputBase,
4879
5000
  variants: {}
4880
5001
  });
5002
+ const skeletonBase = {
5003
+ position: "relative",
5004
+ display: "inline-flex",
5005
+ overflow: "hidden",
5006
+ verticalAlign: "middle",
5007
+ pointerEvents: "none",
5008
+ userSelect: "none",
5009
+ color: "transparent",
5010
+ bg: "bg.neutral",
5011
+ "&::after": {
5012
+ content: '""',
5013
+ position: "absolute",
5014
+ inset: "0",
5015
+ transform: "translateX(-100%)",
5016
+ bg: "bg.neutral.hovered",
5017
+ opacity: "0.45",
5018
+ pointerEvents: "none"
5019
+ },
5020
+ "@media (prefers-reduced-motion: reduce)": {
5021
+ animation: "none",
5022
+ "&::after": {
5023
+ animation: "none"
5024
+ }
5025
+ }
5026
+ };
5027
+ const skeletonRecipe = defineRecipe({
5028
+ className: "skeleton",
5029
+ jsx: ["Skeleton"],
5030
+ base: skeletonBase,
5031
+ variants: {
5032
+ variant: {
5033
+ text: {
5034
+ h: "4",
5035
+ w: "full",
5036
+ borderRadius: "full"
5037
+ },
5038
+ circular: {
5039
+ borderRadius: "full",
5040
+ aspectRatio: "square"
5041
+ },
5042
+ rounded: {
5043
+ borderRadius: "8"
5044
+ },
5045
+ rectangular: {
5046
+ borderRadius: "2"
5047
+ }
5048
+ },
5049
+ animation: {
5050
+ pulse: {
5051
+ animation: "pulse"
5052
+ },
5053
+ wave: {
5054
+ "&::after": {
5055
+ animation: "skeletonWave"
5056
+ }
5057
+ },
5058
+ false: {
5059
+ animation: "none",
5060
+ "&::after": {
5061
+ display: "none"
5062
+ }
5063
+ }
5064
+ }
5065
+ },
5066
+ defaultVariants: {
5067
+ variant: "text",
5068
+ animation: "pulse"
5069
+ }
5070
+ });
4881
5071
  const tagRecipe = defineRecipe({
4882
5072
  className: "tag",
4883
5073
  jsx: ["Tag"],
@@ -5465,6 +5655,7 @@ const toggleInputRecipe = defineRecipe({
5465
5655
  const regularRecipes = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5466
5656
  __proto__: null,
5467
5657
  boxRecipe,
5658
+ breakpointIndicatorRecipe,
5468
5659
  cardRecipe,
5469
5660
  checkboxInputRecipe,
5470
5661
  codeRecipe,
@@ -5477,6 +5668,7 @@ const regularRecipes = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
5477
5668
  listRecipe,
5478
5669
  preRecipe,
5479
5670
  radioInputRecipe,
5671
+ skeletonRecipe,
5480
5672
  tagRecipe,
5481
5673
  textRecipe,
5482
5674
  textareaRecipe,
@@ -5489,7 +5681,7 @@ const avatarRecipe = defineSlotRecipe({
5489
5681
  slots: ["root", "image", "fallback", "presence", "status"],
5490
5682
  staticCss: [
5491
5683
  {
5492
- size: ["xs", "sm", "md", "lx", "xl", "2xl"],
5684
+ size: ["xs", "sm", "md", "lg", "xl", "2xl"],
5493
5685
  shape: ["circle", "square", "hexagon"]
5494
5686
  }
5495
5687
  ],
@@ -5729,6 +5921,13 @@ const badgeRecipe = defineSlotRecipe({
5729
5921
  fontSize: "14",
5730
5922
  p: "5"
5731
5923
  }
5924
+ },
5925
+ xl: {
5926
+ indicator: {
5927
+ h: "12",
5928
+ fontSize: "16",
5929
+ p: "6"
5930
+ }
5732
5931
  }
5733
5932
  },
5734
5933
  // When standalone (no children), don't use absolute positioning
@@ -5852,6 +6051,16 @@ const badgeRecipe = defineSlotRecipe({
5852
6051
  h: "fit"
5853
6052
  }
5854
6053
  }
6054
+ },
6055
+ {
6056
+ dot: false,
6057
+ size: "xl",
6058
+ css: {
6059
+ indicator: {
6060
+ minW: "28",
6061
+ h: "fit"
6062
+ }
6063
+ }
5855
6064
  }
5856
6065
  ],
5857
6066
  defaultVariants: {
@@ -5956,6 +6165,20 @@ const baseButtonStyles = {
5956
6165
  outlineColor: "border.focused"
5957
6166
  }
5958
6167
  },
6168
+ mainContent: {
6169
+ display: "flex",
6170
+ alignItems: "center",
6171
+ width: "fit",
6172
+ height: "fit"
6173
+ },
6174
+ slot: {
6175
+ display: "inline-flex",
6176
+ alignItems: "center",
6177
+ transitionDuration: "fast",
6178
+ transitionProperty: "fill",
6179
+ transitionTimingFunction: "default",
6180
+ flex: "0 0 auto"
6181
+ },
5959
6182
  icon: {
5960
6183
  aspectRatio: "square",
5961
6184
  transitionDuration: "fast",
@@ -5976,7 +6199,8 @@ const buttonVariants = {
5976
6199
  bg: "bg.neutral.pressed"
5977
6200
  }
5978
6201
  },
5979
- icon: iconDefaultStyles
6202
+ icon: iconDefaultStyles,
6203
+ slot: iconDefaultStyles
5980
6204
  },
5981
6205
  primary: {
5982
6206
  container: {
@@ -5995,6 +6219,13 @@ const buttonVariants = {
5995
6219
  _groupDisabled: {
5996
6220
  fill: "icon.decorative.inverse.subtle"
5997
6221
  }
6222
+ },
6223
+ slot: {
6224
+ ...iconInverseStyles,
6225
+ fill: "icon.decorative.inverse.subtle",
6226
+ _groupDisabled: {
6227
+ fill: "icon.decorative.inverse.subtle"
6228
+ }
5998
6229
  }
5999
6230
  },
6000
6231
  ghost: {
@@ -6010,7 +6241,8 @@ const buttonVariants = {
6010
6241
  color: "text"
6011
6242
  }
6012
6243
  },
6013
- icon: iconDefaultStyles
6244
+ icon: iconDefaultStyles,
6245
+ slot: iconDefaultStyles
6014
6246
  },
6015
6247
  subtle: {
6016
6248
  container: {
@@ -6025,7 +6257,8 @@ const buttonVariants = {
6025
6257
  color: "text"
6026
6258
  }
6027
6259
  },
6028
- icon: iconDefaultStyles
6260
+ icon: iconDefaultStyles,
6261
+ slot: iconDefaultStyles
6029
6262
  },
6030
6263
  hollow: {
6031
6264
  container: {
@@ -6042,7 +6275,8 @@ const buttonVariants = {
6042
6275
  borderColor: "border.disabled"
6043
6276
  }
6044
6277
  },
6045
- icon: iconDefaultStyles
6278
+ icon: iconDefaultStyles,
6279
+ slot: iconDefaultStyles
6046
6280
  },
6047
6281
  danger: {
6048
6282
  container: {
@@ -6060,6 +6294,12 @@ const buttonVariants = {
6060
6294
  _groupDisabled: {
6061
6295
  fill: "icon.decorative.inverse"
6062
6296
  }
6297
+ },
6298
+ slot: {
6299
+ ...iconInverseStyles,
6300
+ _groupDisabled: {
6301
+ fill: "icon.decorative.inverse"
6302
+ }
6063
6303
  }
6064
6304
  },
6065
6305
  selected: {
@@ -6083,6 +6323,15 @@ const buttonVariants = {
6083
6323
  _groupDisabled: {
6084
6324
  fill: "icon.selected"
6085
6325
  }
6326
+ },
6327
+ slot: {
6328
+ fill: "icon.selected",
6329
+ mixBlendMode: { base: "multiply", _dark: "screen" },
6330
+ _groupHover: { fill: "icon.selected" },
6331
+ _groupActive: { fill: "icon.selected" },
6332
+ _groupDisabled: {
6333
+ fill: "icon.selected"
6334
+ }
6086
6335
  }
6087
6336
  },
6088
6337
  selectedBold: {
@@ -6104,6 +6353,15 @@ const buttonVariants = {
6104
6353
  _groupDisabled: {
6105
6354
  fill: "icon.inverse"
6106
6355
  }
6356
+ },
6357
+ slot: {
6358
+ fill: "icon.inverse",
6359
+ mixBlendMode: { base: "screen", _dark: "multiply" },
6360
+ _groupHover: { fill: "icon.inverse" },
6361
+ _groupActive: { fill: "icon.inverse" },
6362
+ _groupDisabled: {
6363
+ fill: "icon.inverse"
6364
+ }
6107
6365
  }
6108
6366
  },
6109
6367
  selectedSubtle: {
@@ -6127,6 +6385,15 @@ const buttonVariants = {
6127
6385
  _groupDisabled: {
6128
6386
  fill: "icon.selected"
6129
6387
  }
6388
+ },
6389
+ slot: {
6390
+ fill: "icon.selected",
6391
+ mixBlendMode: { base: "multiply", _dark: "screen" },
6392
+ _groupHover: { fill: "icon.selected" },
6393
+ _groupActive: { fill: "icon.selected" },
6394
+ _groupDisabled: {
6395
+ fill: "icon.selected"
6396
+ }
6130
6397
  }
6131
6398
  }
6132
6399
  }
@@ -6138,6 +6405,11 @@ const buttonSizes = {
6138
6405
  py: "1",
6139
6406
  px: "8"
6140
6407
  },
6408
+ slot: {
6409
+ w: "16",
6410
+ h: "16",
6411
+ px: "4"
6412
+ },
6141
6413
  icon: {
6142
6414
  w: "22",
6143
6415
  h: "22"
@@ -6149,6 +6421,11 @@ const buttonSizes = {
6149
6421
  py: "3",
6150
6422
  px: "12"
6151
6423
  },
6424
+ slot: {
6425
+ w: "20",
6426
+ h: "20",
6427
+ px: "6"
6428
+ },
6152
6429
  icon: {
6153
6430
  w: "24",
6154
6431
  h: "24"
@@ -6160,6 +6437,11 @@ const buttonSizes = {
6160
6437
  py: "7",
6161
6438
  px: "14"
6162
6439
  },
6440
+ slot: {
6441
+ w: "24",
6442
+ h: "24",
6443
+ px: "8"
6444
+ },
6163
6445
  icon: {
6164
6446
  w: "24",
6165
6447
  h: "24"
@@ -6171,6 +6453,11 @@ const buttonSizes = {
6171
6453
  py: "9",
6172
6454
  px: "16"
6173
6455
  },
6456
+ slot: {
6457
+ w: "28",
6458
+ h: "28",
6459
+ px: "10"
6460
+ },
6174
6461
  icon: {
6175
6462
  w: "28",
6176
6463
  h: "28"
@@ -6180,7 +6467,7 @@ const buttonSizes = {
6180
6467
  const buttonRecipe = defineSlotRecipe({
6181
6468
  className: "button",
6182
6469
  jsx: ["Button"],
6183
- slots: ["container", "icon"],
6470
+ slots: ["container", "mainContent", "slot", "icon"],
6184
6471
  base: baseButtonStyles,
6185
6472
  variants: {
6186
6473
  ...buttonVariants,
@@ -6258,7 +6545,7 @@ const buttonRecipe = defineSlotRecipe({
6258
6545
  const iconButtonRecipe = defineSlotRecipe({
6259
6546
  className: "iconButton",
6260
6547
  jsx: ["IconButton"],
6261
- slots: ["container", "icon"],
6548
+ slots: ["container", "mainContent", "slot", "icon"],
6262
6549
  base: baseButtonStyles,
6263
6550
  variants: {
6264
6551
  ...buttonVariants,
@@ -6268,6 +6555,14 @@ const iconButtonRecipe = defineSlotRecipe({
6268
6555
  fontSize: "14",
6269
6556
  p: "1"
6270
6557
  },
6558
+ slot: {
6559
+ w: "22",
6560
+ h: "22"
6561
+ },
6562
+ mainContent: {
6563
+ width: "fit",
6564
+ height: "fit"
6565
+ },
6271
6566
  icon: {
6272
6567
  w: "22",
6273
6568
  h: "22"
@@ -6278,6 +6573,14 @@ const iconButtonRecipe = defineSlotRecipe({
6278
6573
  fontSize: "16",
6279
6574
  p: "3"
6280
6575
  },
6576
+ slot: {
6577
+ w: "24",
6578
+ h: "24"
6579
+ },
6580
+ mainContent: {
6581
+ width: "fit",
6582
+ height: "fit"
6583
+ },
6281
6584
  icon: {
6282
6585
  w: "24",
6283
6586
  h: "24"
@@ -6288,6 +6591,14 @@ const iconButtonRecipe = defineSlotRecipe({
6288
6591
  fontSize: "16",
6289
6592
  p: "7"
6290
6593
  },
6594
+ slot: {
6595
+ w: "24",
6596
+ h: "24"
6597
+ },
6598
+ mainContent: {
6599
+ width: "fit",
6600
+ height: "fit"
6601
+ },
6291
6602
  icon: {
6292
6603
  w: "24",
6293
6604
  h: "24"
@@ -6298,6 +6609,14 @@ const iconButtonRecipe = defineSlotRecipe({
6298
6609
  fontSize: "20",
6299
6610
  p: "9"
6300
6611
  },
6612
+ slot: {
6613
+ w: "28",
6614
+ h: "28"
6615
+ },
6616
+ mainContent: {
6617
+ width: "fit",
6618
+ height: "fit"
6619
+ },
6301
6620
  icon: {
6302
6621
  w: "28",
6303
6622
  h: "28"
@@ -6397,22 +6716,27 @@ const checkboxRecipe = defineSlotRecipe({
6397
6716
  const chipBase = {
6398
6717
  container: {
6399
6718
  position: "relative",
6719
+ display: "inline-flex",
6720
+ alignItems: "center",
6721
+ gap: "1",
6722
+ width: "fit-content",
6723
+ verticalAlign: "middle"
6724
+ },
6725
+ body: {
6400
6726
  display: "inline-flex",
6401
6727
  alignItems: "center",
6402
6728
  appearance: "none",
6403
- width: "fit",
6729
+ border: "none",
6404
6730
  borderRadius: "999",
6405
6731
  fontFamily: "sans",
6406
6732
  lineHeight: "default",
6407
6733
  fontWeight: "medium",
6408
6734
  whiteSpace: "nowrap",
6409
- verticalAlign: "middle",
6410
6735
  cursor: "pointer",
6411
6736
  transitionDuration: "fast",
6412
- transitionProperty: "background, color",
6737
+ transitionProperty: "background, color, border-color, box-shadow",
6413
6738
  transitionTimingFunction: "default",
6414
6739
  userSelect: "none",
6415
- border: "none",
6416
6740
  outlineWidth: "2",
6417
6741
  outlineStyle: "solid",
6418
6742
  outlineColor: "transparent",
@@ -6458,6 +6782,50 @@ const chipBase = {
6458
6782
  }
6459
6783
  }
6460
6784
  },
6785
+ mainContent: {
6786
+ display: "inline-flex",
6787
+ alignItems: "center",
6788
+ gap: "inherit",
6789
+ minW: 0
6790
+ },
6791
+ slot: {
6792
+ display: "inline-flex",
6793
+ alignItems: "center",
6794
+ justifyContent: "center",
6795
+ flexShrink: 0
6796
+ },
6797
+ dismissButton: {
6798
+ display: "inline-flex",
6799
+ alignItems: "center",
6800
+ justifyContent: "center",
6801
+ border: "none",
6802
+ borderRadius: "full",
6803
+ bg: "transparent",
6804
+ color: "inherit",
6805
+ cursor: "pointer",
6806
+ transitionDuration: "fast",
6807
+ transitionProperty: "background, color",
6808
+ transitionTimingFunction: "default",
6809
+ outlineWidth: "2",
6810
+ outlineStyle: "solid",
6811
+ outlineColor: "transparent",
6812
+ _hover: {
6813
+ bg: "bg.neutral.hovered"
6814
+ },
6815
+ _active: {
6816
+ bg: "bg.neutral.pressed"
6817
+ },
6818
+ _focusVisible: {
6819
+ outlineColor: "border.focused"
6820
+ },
6821
+ _disabled: {
6822
+ cursor: "not-allowed",
6823
+ color: "text.disabled"
6824
+ },
6825
+ "[data-selected=true] &": {
6826
+ color: "text.inverse"
6827
+ }
6828
+ },
6461
6829
  chipIcon: {
6462
6830
  fill: "icon.decorative",
6463
6831
  aspectRatio: "square",
@@ -6478,55 +6846,118 @@ const chipBase = {
6478
6846
  const chipRecipe = defineSlotRecipe({
6479
6847
  className: "chip",
6480
6848
  jsx: ["Chip"],
6481
- slots: ["container", "chipIcon"],
6849
+ slots: [
6850
+ "container",
6851
+ "body",
6852
+ "mainContent",
6853
+ "dismissButton",
6854
+ "slot",
6855
+ "chipIcon"
6856
+ ],
6482
6857
  base: chipBase,
6483
6858
  variants: {
6484
6859
  size: {
6485
6860
  sm: {
6486
- container: {
6861
+ body: {
6487
6862
  gap: "2",
6488
6863
  h: "20",
6489
6864
  px: "6",
6490
6865
  py: "0",
6491
6866
  fontSize: "14"
6492
6867
  },
6868
+ mainContent: {
6869
+ gap: "2"
6870
+ },
6871
+ slot: {
6872
+ gap: "2"
6873
+ },
6493
6874
  chipIcon: {
6494
6875
  w: "20",
6495
6876
  h: "20"
6877
+ },
6878
+ dismissButton: {
6879
+ w: "20",
6880
+ h: "20"
6496
6881
  }
6497
6882
  },
6498
6883
  md: {
6499
- container: {
6884
+ body: {
6500
6885
  gap: "4",
6501
6886
  h: "24",
6502
6887
  px: "8",
6503
6888
  py: "1",
6504
6889
  fontSize: "14"
6505
6890
  },
6891
+ mainContent: {
6892
+ gap: "4"
6893
+ },
6894
+ slot: {
6895
+ gap: "4"
6896
+ },
6506
6897
  chipIcon: {
6507
6898
  w: "20",
6508
6899
  h: "20"
6900
+ },
6901
+ dismissButton: {
6902
+ w: "24",
6903
+ h: "24"
6509
6904
  }
6510
6905
  },
6511
6906
  lg: {
6512
- container: {
6907
+ body: {
6513
6908
  gap: "4",
6514
6909
  h: "32",
6515
6910
  px: "10",
6516
6911
  py: "4",
6517
6912
  fontSize: "16"
6518
6913
  },
6914
+ mainContent: {
6915
+ gap: "4"
6916
+ },
6917
+ slot: {
6918
+ gap: "4"
6919
+ },
6920
+ chipIcon: {
6921
+ w: "24",
6922
+ h: "24"
6923
+ },
6924
+ dismissButton: {
6925
+ w: "32",
6926
+ h: "32"
6927
+ }
6928
+ },
6929
+ xl: {
6930
+ body: {
6931
+ gap: "4",
6932
+ h: "40",
6933
+ px: "12",
6934
+ py: "5",
6935
+ fontSize: "16"
6936
+ },
6937
+ mainContent: {
6938
+ gap: "4"
6939
+ },
6940
+ slot: {
6941
+ gap: "4"
6942
+ },
6519
6943
  chipIcon: {
6520
6944
  w: "24",
6521
6945
  h: "24"
6946
+ },
6947
+ dismissButton: {
6948
+ w: "40",
6949
+ h: "40"
6522
6950
  }
6523
6951
  }
6524
6952
  },
6525
6953
  before: {
6526
- true: { container: {} }
6954
+ true: { body: {} }
6527
6955
  },
6528
6956
  after: {
6529
- true: { container: {} }
6957
+ true: { body: {} }
6958
+ },
6959
+ dismissable: {
6960
+ true: { body: {} }
6530
6961
  }
6531
6962
  },
6532
6963
  compoundVariants: [
@@ -6534,42 +6965,56 @@ const chipRecipe = defineSlotRecipe({
6534
6965
  size: "sm",
6535
6966
  before: true,
6536
6967
  css: {
6537
- container: { ps: "2" }
6968
+ body: { ps: "2" }
6538
6969
  }
6539
6970
  },
6540
6971
  {
6541
6972
  size: "sm",
6542
6973
  after: true,
6543
6974
  css: {
6544
- container: { pe: "2" }
6975
+ body: { pe: "2" }
6545
6976
  }
6546
6977
  },
6547
6978
  {
6548
6979
  size: "md",
6549
6980
  before: true,
6550
6981
  css: {
6551
- container: { ps: "2" }
6982
+ body: { ps: "2" }
6552
6983
  }
6553
6984
  },
6554
6985
  {
6555
6986
  size: "md",
6556
6987
  after: true,
6557
6988
  css: {
6558
- container: { pe: "2" }
6989
+ body: { pe: "2" }
6559
6990
  }
6560
6991
  },
6561
6992
  {
6562
6993
  size: "lg",
6563
6994
  before: true,
6564
6995
  css: {
6565
- container: { ps: "4" }
6996
+ body: { ps: "4" }
6566
6997
  }
6567
6998
  },
6568
6999
  {
6569
7000
  size: "lg",
6570
7001
  after: true,
6571
7002
  css: {
6572
- container: { pe: "4" }
7003
+ body: { pe: "4" }
7004
+ }
7005
+ },
7006
+ {
7007
+ size: "xl",
7008
+ before: true,
7009
+ css: {
7010
+ body: { ps: "4" }
7011
+ }
7012
+ },
7013
+ {
7014
+ size: "xl",
7015
+ after: true,
7016
+ css: {
7017
+ body: { pe: "4" }
6573
7018
  }
6574
7019
  }
6575
7020
  ],
@@ -6640,6 +7085,25 @@ const datePickerBase = {
6640
7085
  borderColor: "border.danger",
6641
7086
  outlineColor: "border.danger"
6642
7087
  }
7088
+ },
7089
+ _invalid: {
7090
+ bg: "bg.danger",
7091
+ borderColor: "border.danger",
7092
+ color: "text.danger",
7093
+ _hover: {
7094
+ bg: "bg.danger.hovered",
7095
+ borderColor: "border.danger"
7096
+ },
7097
+ _focusWithin: {
7098
+ bg: "bg.danger",
7099
+ borderColor: "border.danger",
7100
+ outlineColor: "border.danger"
7101
+ },
7102
+ _open: {
7103
+ bg: "bg.danger",
7104
+ borderColor: "border.danger",
7105
+ outlineColor: "border.danger"
7106
+ }
6643
7107
  }
6644
7108
  },
6645
7109
  segment: {
@@ -6661,6 +7125,9 @@ const datePickerBase = {
6661
7125
  },
6662
7126
  _groupDisabled: {
6663
7127
  color: "text.disabled"
7128
+ },
7129
+ _invalid: {
7130
+ color: "text.danger"
6664
7131
  }
6665
7132
  },
6666
7133
  separator: {
@@ -6859,11 +7326,63 @@ const formFieldRecipe = defineSlotRecipe({
6859
7326
  size: "md"
6860
7327
  }
6861
7328
  });
7329
+ const kbdBase = {
7330
+ container: {
7331
+ display: "inline-flex",
7332
+ alignItems: "center",
7333
+ gap: "1",
7334
+ verticalAlign: "middle"
7335
+ },
7336
+ key: {
7337
+ display: "inline-flex",
7338
+ alignItems: "center",
7339
+ justifyContent: "center",
7340
+ minH: "6",
7341
+ minW: "6",
7342
+ px: "2",
7343
+ borderWidth: "1",
7344
+ borderStyle: "solid",
7345
+ borderColor: "border.subtle",
7346
+ borderRadius: "6",
7347
+ bg: "bg.neutral",
7348
+ color: "text",
7349
+ fontFamily: "mono",
7350
+ fontSize: "12",
7351
+ lineHeight: "none",
7352
+ fontWeight: "medium",
7353
+ letterSpacing: "wide",
7354
+ whiteSpace: "nowrap",
7355
+ boxShadow: "sm"
7356
+ }
7357
+ };
7358
+ const kbdRecipe = defineSlotRecipe({
7359
+ className: "kbd",
7360
+ jsx: ["Kbd"],
7361
+ slots: ["container", "key"],
7362
+ base: kbdBase,
7363
+ variants: {
7364
+ symbol: {
7365
+ true: {
7366
+ key: {
7367
+ minW: "7",
7368
+ px: "2.5",
7369
+ fontSize: "14",
7370
+ letterSpacing: "normal"
7371
+ }
7372
+ }
7373
+ }
7374
+ },
7375
+ defaultVariants: {
7376
+ symbol: false
7377
+ }
7378
+ });
6862
7379
  const listItemRecipe = defineSlotRecipe({
6863
7380
  className: "listItem",
6864
7381
  jsx: ["ListItem"],
6865
7382
  slots: [
6866
7383
  "wrapper",
7384
+ "beforeSlot",
7385
+ "afterSlot",
6867
7386
  "icon",
6868
7387
  "itemMain",
6869
7388
  "itemLabel",
@@ -6902,12 +7421,27 @@ const listItemRecipe = defineSlotRecipe({
6902
7421
  '&[data-active="true"]': {
6903
7422
  bg: "bg.neutral.hovered"
6904
7423
  },
7424
+ '&[data-disabled="true"]': {
7425
+ opacity: "0.4",
7426
+ cursor: "not-allowed",
7427
+ pointerEvents: "none"
7428
+ },
6905
7429
  _disabled: {
6906
7430
  opacity: "0.4",
6907
7431
  cursor: "not-allowed",
6908
7432
  pointerEvents: "none"
6909
7433
  }
6910
7434
  },
7435
+ beforeSlot: {
7436
+ display: "flex",
7437
+ alignItems: "center",
7438
+ flexShrink: "0"
7439
+ },
7440
+ afterSlot: {
7441
+ display: "flex",
7442
+ alignItems: "center",
7443
+ flexShrink: "0"
7444
+ },
6911
7445
  divider: {
6912
7446
  width: "full"
6913
7447
  },
@@ -6983,10 +7517,7 @@ const listItemRecipe = defineSlotRecipe({
6983
7517
  },
6984
7518
  density: {
6985
7519
  compact: {
6986
- wrapper: {
6987
- py: "3",
6988
- px: "10"
6989
- },
7520
+ wrapper: listDensity.compact.row,
6990
7521
  itemLabel: {
6991
7522
  textStyle: "sans.md",
6992
7523
  color: "text"
@@ -6995,20 +7526,13 @@ const listItemRecipe = defineSlotRecipe({
6995
7526
  textStyle: "sans.xs",
6996
7527
  lineHeight: "tight"
6997
7528
  },
6998
- icon: {
6999
- w: "24",
7000
- h: "24"
7001
- },
7002
- divider: {
7003
- py: "3",
7004
- px: "10"
7005
- }
7529
+ icon: listDensity.compact.icon,
7530
+ beforeSlot: listDensity.compact.beforeSlot,
7531
+ afterSlot: listDensity.compact.afterSlot,
7532
+ divider: listDensity.compact.divider
7006
7533
  },
7007
7534
  comfortable: {
7008
- wrapper: {
7009
- py: "7",
7010
- px: "12"
7011
- },
7535
+ wrapper: listDensity.comfortable.row,
7012
7536
  itemLabel: {
7013
7537
  textStyle: "sans.md",
7014
7538
  color: "text"
@@ -7017,20 +7541,13 @@ const listItemRecipe = defineSlotRecipe({
7017
7541
  textStyle: "sans.xs",
7018
7542
  lineHeight: "tight"
7019
7543
  },
7020
- icon: {
7021
- w: "24",
7022
- h: "24"
7023
- },
7024
- divider: {
7025
- py: "7",
7026
- px: "12"
7027
- }
7544
+ icon: listDensity.comfortable.icon,
7545
+ beforeSlot: listDensity.comfortable.beforeSlot,
7546
+ afterSlot: listDensity.comfortable.afterSlot,
7547
+ divider: listDensity.comfortable.divider
7028
7548
  },
7029
7549
  spacious: {
7030
- wrapper: {
7031
- py: "9",
7032
- px: "16"
7033
- },
7550
+ wrapper: listDensity.spacious.row,
7034
7551
  itemLabel: {
7035
7552
  textStyle: "sans.lg",
7036
7553
  color: "text"
@@ -7039,14 +7556,10 @@ const listItemRecipe = defineSlotRecipe({
7039
7556
  textStyle: "sans.sm",
7040
7557
  lineHeight: "tight"
7041
7558
  },
7042
- icon: {
7043
- w: "28",
7044
- h: "28"
7045
- },
7046
- divider: {
7047
- py: "9",
7048
- px: "16"
7049
- }
7559
+ icon: listDensity.spacious.icon,
7560
+ beforeSlot: listDensity.spacious.beforeSlot,
7561
+ afterSlot: listDensity.spacious.afterSlot,
7562
+ divider: listDensity.spacious.divider
7050
7563
  }
7051
7564
  },
7052
7565
  selected: {
@@ -7085,7 +7598,8 @@ const listItemRecipe = defineSlotRecipe({
7085
7598
  css: {
7086
7599
  wrapper: {
7087
7600
  ps: "5"
7088
- }
7601
+ },
7602
+ beforeSlot: listDensity.compact.beforeSlot
7089
7603
  }
7090
7604
  },
7091
7605
  {
@@ -7094,7 +7608,8 @@ const listItemRecipe = defineSlotRecipe({
7094
7608
  css: {
7095
7609
  wrapper: {
7096
7610
  pe: "5"
7097
- }
7611
+ },
7612
+ afterSlot: listDensity.compact.afterSlot
7098
7613
  }
7099
7614
  },
7100
7615
  {
@@ -7103,7 +7618,8 @@ const listItemRecipe = defineSlotRecipe({
7103
7618
  css: {
7104
7619
  wrapper: {
7105
7620
  ps: "5"
7106
- }
7621
+ },
7622
+ beforeSlot: listDensity.compact.beforeSlot
7107
7623
  }
7108
7624
  },
7109
7625
  {
@@ -7112,7 +7628,8 @@ const listItemRecipe = defineSlotRecipe({
7112
7628
  css: {
7113
7629
  wrapper: {
7114
7630
  ps: "7"
7115
- }
7631
+ },
7632
+ beforeSlot: listDensity.comfortable.beforeSlot
7116
7633
  }
7117
7634
  },
7118
7635
  {
@@ -7121,7 +7638,8 @@ const listItemRecipe = defineSlotRecipe({
7121
7638
  css: {
7122
7639
  wrapper: {
7123
7640
  pe: "7"
7124
- }
7641
+ },
7642
+ afterSlot: listDensity.comfortable.afterSlot
7125
7643
  }
7126
7644
  },
7127
7645
  {
@@ -7130,7 +7648,8 @@ const listItemRecipe = defineSlotRecipe({
7130
7648
  css: {
7131
7649
  wrapper: {
7132
7650
  ps: "7"
7133
- }
7651
+ },
7652
+ beforeSlot: listDensity.comfortable.beforeSlot
7134
7653
  }
7135
7654
  },
7136
7655
  {
@@ -7139,7 +7658,8 @@ const listItemRecipe = defineSlotRecipe({
7139
7658
  css: {
7140
7659
  wrapper: {
7141
7660
  ps: "9"
7142
- }
7661
+ },
7662
+ beforeSlot: listDensity.spacious.beforeSlot
7143
7663
  }
7144
7664
  },
7145
7665
  {
@@ -7148,7 +7668,8 @@ const listItemRecipe = defineSlotRecipe({
7148
7668
  css: {
7149
7669
  wrapper: {
7150
7670
  pe: "9"
7151
- }
7671
+ },
7672
+ afterSlot: listDensity.spacious.afterSlot
7152
7673
  }
7153
7674
  },
7154
7675
  {
@@ -7157,7 +7678,8 @@ const listItemRecipe = defineSlotRecipe({
7157
7678
  css: {
7158
7679
  wrapper: {
7159
7680
  ps: "9"
7160
- }
7681
+ },
7682
+ beforeSlot: listDensity.spacious.beforeSlot
7161
7683
  }
7162
7684
  }
7163
7685
  ],
@@ -7186,40 +7708,16 @@ const listItemGroupRecipe = defineSlotRecipe({
7186
7708
  variants: {
7187
7709
  density: {
7188
7710
  compact: {
7189
- groupLabel: {
7190
- px: "10",
7191
- pt: "8",
7192
- pb: "2",
7193
- fontSize: "12"
7194
- },
7195
- divider: {
7196
- my: "4",
7197
- mx: "10"
7198
- }
7711
+ groupLabel: listDensity.compact.groupLabel,
7712
+ divider: listDensity.compact.divider
7199
7713
  },
7200
7714
  comfortable: {
7201
- groupLabel: {
7202
- px: "12",
7203
- pt: "12",
7204
- pb: "4",
7205
- fontSize: "14"
7206
- },
7207
- divider: {
7208
- my: "6",
7209
- mx: "12"
7210
- }
7715
+ groupLabel: listDensity.comfortable.groupLabel,
7716
+ divider: listDensity.comfortable.divider
7211
7717
  },
7212
7718
  spacious: {
7213
- groupLabel: {
7214
- px: "16",
7215
- pt: "16",
7216
- pb: "6",
7217
- fontSize: "16"
7218
- },
7219
- divider: {
7220
- my: "8",
7221
- mx: "16"
7222
- }
7719
+ groupLabel: listDensity.spacious.groupLabel,
7720
+ divider: listDensity.spacious.divider
7223
7721
  }
7224
7722
  }
7225
7723
  },
@@ -7356,6 +7854,17 @@ const menuRecipe = defineSlotRecipe({
7356
7854
  }
7357
7855
  });
7358
7856
  const modalBase = {
7857
+ positionWrapper: {
7858
+ position: "fixed",
7859
+ inset: "0",
7860
+ display: "flex",
7861
+ alignItems: "center",
7862
+ justifyContent: "center",
7863
+ overflowY: "auto",
7864
+ pointerEvents: "none",
7865
+ padding: "16",
7866
+ zIndex: "1101"
7867
+ },
7359
7868
  overlay: {
7360
7869
  position: "fixed",
7361
7870
  inset: "0",
@@ -7370,9 +7879,7 @@ const modalBase = {
7370
7879
  }
7371
7880
  },
7372
7881
  container: {
7373
- position: "fixed",
7374
- top: "50%",
7375
- left: "50%",
7882
+ position: "relative",
7376
7883
  display: "flex",
7377
7884
  flexDirection: "column",
7378
7885
  width: "full",
@@ -7381,10 +7888,10 @@ const modalBase = {
7381
7888
  borderRadius: "12",
7382
7889
  boxShadow: "overlay",
7383
7890
  outline: "none",
7384
- zIndex: "1101",
7891
+ pointerEvents: "auto",
7385
7892
  // Initial state matches animation start
7386
7893
  opacity: "0",
7387
- transform: "[translate(-50%, -50%) scale(0.95) translateY(-10px)]",
7894
+ transform: "[scale(0.95) translateY(-10px)]",
7388
7895
  // Animation handled via data-state
7389
7896
  animation: "modalScaleIn 150ms ease-out forwards",
7390
7897
  '&[data-state="closing"]': {
@@ -7428,6 +7935,26 @@ const modalBase = {
7428
7935
  }
7429
7936
  };
7430
7937
  const modalVariants = {
7938
+ position: {
7939
+ centered: {
7940
+ positionWrapper: {
7941
+ alignItems: "center",
7942
+ justifyContent: "center"
7943
+ }
7944
+ },
7945
+ top: {
7946
+ positionWrapper: {
7947
+ alignItems: "flex-start",
7948
+ justifyContent: "center"
7949
+ }
7950
+ },
7951
+ bottom: {
7952
+ positionWrapper: {
7953
+ alignItems: "flex-end",
7954
+ justifyContent: "center"
7955
+ }
7956
+ }
7957
+ },
7431
7958
  size: {
7432
7959
  sm: {
7433
7960
  container: {
@@ -7489,6 +8016,7 @@ const modalRecipe = defineSlotRecipe({
7489
8016
  className: "modal",
7490
8017
  jsx: ["Modal", "ModalHeader", "ModalBody", "ModalFooter"],
7491
8018
  slots: [
8019
+ "positionWrapper",
7492
8020
  "overlay",
7493
8021
  "container",
7494
8022
  "header",
@@ -7500,6 +8028,7 @@ const modalRecipe = defineSlotRecipe({
7500
8028
  base: modalBase,
7501
8029
  variants: modalVariants,
7502
8030
  defaultVariants: {
8031
+ position: "centered",
7503
8032
  variant: "default",
7504
8033
  size: "md"
7505
8034
  }
@@ -7645,6 +8174,12 @@ const selectBase = {
7645
8174
  placeholder: {
7646
8175
  color: "text.subtlest"
7647
8176
  },
8177
+ chips: {
8178
+ flex: 1,
8179
+ minWidth: "0",
8180
+ alignItems: "center",
8181
+ color: "text"
8182
+ },
7648
8183
  // The chevron/arrow icon
7649
8184
  icon: {
7650
8185
  display: "flex",
@@ -7710,7 +8245,7 @@ const selectVariants = {
7710
8245
  const selectRecipe = defineSlotRecipe({
7711
8246
  className: "select",
7712
8247
  jsx: ["Select", "SelectTrigger"],
7713
- slots: ["trigger", "value", "placeholder", "icon"],
8248
+ slots: ["trigger", "value", "placeholder", "chips", "icon"],
7714
8249
  base: selectBase,
7715
8250
  variants: selectVariants,
7716
8251
  defaultVariants: {
@@ -7718,52 +8253,58 @@ const selectRecipe = defineSlotRecipe({
7718
8253
  }
7719
8254
  });
7720
8255
  const spinnerBase = {
7721
- spinnerDiv: {
8256
+ container: {
8257
+ position: "relative",
8258
+ display: "grid",
8259
+ placeContent: "center",
8260
+ zIndex: "100",
8261
+ w: "fit",
8262
+ h: "fit",
8263
+ flex: "0"
8264
+ },
8265
+ spinnerSvg: {
7722
8266
  aspectRatio: "square",
7723
- rounded: "100",
7724
- borderWidth: "3",
7725
- borderStyle: "solid",
7726
- borderColor: "transparent",
7727
- borderTopColor: "icon",
7728
- borderBottomColor: "icon",
7729
8267
  animation: "spin",
7730
- isolation: "isolate"
8268
+ fill: "icon",
8269
+ isolation: "isolate",
8270
+ flex: "0"
7731
8271
  }
7732
8272
  };
7733
8273
  const spinnerVariants = {
7734
8274
  size: {
7735
8275
  xs: {
7736
- spinnerDiv: {
7737
- height: "16",
7738
- minHeight: "16",
7739
- borderWidth: "2"
8276
+ spinnerSvg: {
8277
+ h: "16",
8278
+ w: "16",
8279
+ minHeight: "16"
7740
8280
  }
7741
8281
  },
7742
8282
  sm: {
7743
- spinnerDiv: {
7744
- height: "20",
7745
- minHeight: "20",
7746
- borderWidth: "2"
8283
+ spinnerSvg: {
8284
+ h: "20",
8285
+ w: "20",
8286
+ minHeight: "20"
7747
8287
  }
7748
8288
  },
7749
8289
  md: {
7750
- spinnerDiv: {
7751
- height: "24",
8290
+ spinnerSvg: {
8291
+ h: "24",
8292
+ w: "24",
7752
8293
  minHeight: "24"
7753
8294
  }
7754
8295
  },
7755
8296
  lg: {
7756
- spinnerDiv: {
7757
- height: "32",
8297
+ spinnerSvg: {
8298
+ h: "32",
8299
+ w: "32",
7758
8300
  minHeight: "32"
7759
8301
  }
7760
8302
  }
7761
8303
  },
7762
8304
  inverse: {
7763
8305
  true: {
7764
- spinnerDiv: {
7765
- borderTopColor: "icon.inverse",
7766
- borderBottomColor: "icon.inverse"
8306
+ spinnerSvg: {
8307
+ fill: "icon.inverse"
7767
8308
  }
7768
8309
  }
7769
8310
  },
@@ -7772,11 +8313,8 @@ const spinnerVariants = {
7772
8313
  container: {
7773
8314
  position: "absolute",
7774
8315
  inset: "0",
7775
- display: "grid",
7776
- placeContent: "center",
7777
8316
  width: "full",
7778
- height: "full",
7779
- zIndex: "100"
8317
+ height: "full"
7780
8318
  }
7781
8319
  }
7782
8320
  }
@@ -7784,7 +8322,7 @@ const spinnerVariants = {
7784
8322
  const spinnerRecipe = defineSlotRecipe({
7785
8323
  className: "spinner",
7786
8324
  jsx: ["Spinner"],
7787
- slots: ["container", "spinnerDiv"],
8325
+ slots: ["container", "spinnerSvg"],
7788
8326
  base: spinnerBase,
7789
8327
  variants: spinnerVariants,
7790
8328
  defaultVariants: {
@@ -7794,6 +8332,8 @@ const spinnerRecipe = defineSlotRecipe({
7794
8332
  const textInputBase = {
7795
8333
  container: {
7796
8334
  position: "relative",
8335
+ display: "flex",
8336
+ alignItems: "center",
7797
8337
  width: "full",
7798
8338
  bg: "surface",
7799
8339
  borderWidth: "{sizes.1}",
@@ -7829,6 +8369,25 @@ const textInputBase = {
7829
8369
  // let FormField handle disabled state opacity
7830
8370
  }
7831
8371
  },
8372
+ slot: {
8373
+ display: "inline-flex",
8374
+ alignItems: "center",
8375
+ transitionDuration: "fast",
8376
+ transitionProperty: "all",
8377
+ transitionTimingFunction: "default",
8378
+ flex: "0 0 auto",
8379
+ fill: "icon.decorative.subtle",
8380
+ pointerEvents: "none",
8381
+ zIndex: 1
8382
+ },
8383
+ buttonSlot: {
8384
+ display: "inline-flex",
8385
+ alignItems: "center",
8386
+ flex: "0 0 auto",
8387
+ px: "0",
8388
+ zIndex: 1,
8389
+ m: "-1"
8390
+ },
7832
8391
  input: {
7833
8392
  width: "full",
7834
8393
  bg: "surface",
@@ -7859,6 +8418,11 @@ const textInputVariants = {
7859
8418
  px: "{sizes.8}",
7860
8419
  fontSize: "{sizes.14}"
7861
8420
  },
8421
+ slot: {
8422
+ w: "16",
8423
+ h: "16",
8424
+ px: "4"
8425
+ },
7862
8426
  icon: {
7863
8427
  mx: "2",
7864
8428
  w: "{sizes.22}"
@@ -7870,6 +8434,11 @@ const textInputVariants = {
7870
8434
  px: "{sizes.10}",
7871
8435
  fontSize: "{sizes.16}"
7872
8436
  },
8437
+ slot: {
8438
+ w: "20",
8439
+ h: "20",
8440
+ px: "6"
8441
+ },
7873
8442
  icon: {
7874
8443
  mx: "3",
7875
8444
  w: "{sizes.24}"
@@ -7881,6 +8450,11 @@ const textInputVariants = {
7881
8450
  px: "{sizes.12}",
7882
8451
  fontSize: "{sizes.16}"
7883
8452
  },
8453
+ slot: {
8454
+ w: "24",
8455
+ h: "24",
8456
+ px: "8"
8457
+ },
7884
8458
  icon: {
7885
8459
  mx: "5",
7886
8460
  w: "{sizes.24}"
@@ -7892,6 +8466,11 @@ const textInputVariants = {
7892
8466
  px: "{sizes.16}",
7893
8467
  fontSize: "{sizes.20}"
7894
8468
  },
8469
+ slot: {
8470
+ w: "28",
8471
+ h: "28",
8472
+ px: "10"
8473
+ },
7895
8474
  icon: {
7896
8475
  mx: "7",
7897
8476
  w: "{sizes.28}"
@@ -7982,7 +8561,7 @@ const textInputCompoundVariants = [
7982
8561
  const textInputRecipe = defineSlotRecipe({
7983
8562
  className: "textInput",
7984
8563
  jsx: ["TextInput", "Textinput"],
7985
- slots: ["container", "input", "icon"],
8564
+ slots: ["container", "input", "slot", "buttonSlot", "icon"],
7986
8565
  base: textInputBase,
7987
8566
  variants: textInputVariants,
7988
8567
  compoundVariants: textInputCompoundVariants,
@@ -8049,6 +8628,20 @@ const timePickerBase = {
8049
8628
  borderColor: "border.danger",
8050
8629
  outlineColor: "border.danger"
8051
8630
  }
8631
+ },
8632
+ _invalid: {
8633
+ borderColor: "border.danger",
8634
+ _hover: {
8635
+ borderColor: "border.danger"
8636
+ },
8637
+ _focusWithin: {
8638
+ borderColor: "border.danger",
8639
+ outlineColor: "border.danger"
8640
+ },
8641
+ _open: {
8642
+ borderColor: "border.danger",
8643
+ outlineColor: "border.danger"
8644
+ }
8052
8645
  }
8053
8646
  },
8054
8647
  // Individual focusable segment span (HH, MM, AM/PM)
@@ -8071,6 +8664,9 @@ const timePickerBase = {
8071
8664
  },
8072
8665
  _groupDisabled: {
8073
8666
  color: "text.disabled"
8667
+ },
8668
+ _invalid: {
8669
+ color: "text.danger"
8074
8670
  }
8075
8671
  },
8076
8672
  // The ":" separator between time segments
@@ -8334,6 +8930,7 @@ const slotRecipes = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
8334
8930
  datePickerRecipe,
8335
8931
  formFieldRecipe,
8336
8932
  iconButtonRecipe,
8933
+ kbdRecipe,
8337
8934
  listItemGroupRecipe,
8338
8935
  listItemRecipe,
8339
8936
  menuRecipe,
@@ -9320,4 +9917,4 @@ export {
9320
9917
  containerSizes as c,
9321
9918
  okshaunPreset as o
9322
9919
  };
9323
- //# sourceMappingURL=preset-DAmO4B54.js.map
9920
+ //# sourceMappingURL=preset-BAn5LBiW.js.map