@redis-ui/styles 21.8.0 → 21.9.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 (32) hide show
  1. package/dist/index.js +82 -31
  2. package/dist/index.umd.cjs +1 -1
  3. package/dist/themes/themeDarkNext/theme/components/actionIconButton.js +6 -2
  4. package/dist/themes/themeDarkNext/theme/components/button.js +3 -1
  5. package/dist/themes/themeDarkNext/theme/components/chip.js +8 -4
  6. package/dist/themes/themeDarkNext/theme/components/input.js +4 -0
  7. package/dist/themes/themeDarkNext/theme/components/menu.js +1 -0
  8. package/dist/themes/themeDarkNext/theme/components/modal.js +3 -1
  9. package/dist/themes/themeDarkNext/theme/components/popover.js +2 -0
  10. package/dist/themes/themeDarkNext/theme/components/select.js +4 -0
  11. package/dist/themes/themeDarkNext/theme/components/tabs.js +1 -0
  12. package/dist/themes/themeDarkNext/theme/components/toast.js +2 -1
  13. package/dist/themes/themeDarkNext/theme/components/tooltip.js +7 -6
  14. package/dist/themes/themeLightNext/theme/components/button.js +3 -1
  15. package/dist/themes/themeLightNext/theme/components/chip.js +8 -4
  16. package/dist/themes/themeLightNext/theme/components/input.js +4 -0
  17. package/dist/themes/themeLightNext/theme/components/menu.js +1 -0
  18. package/dist/themes/themeLightNext/theme/components/modal.js +3 -1
  19. package/dist/themes/themeLightNext/theme/components/popover.js +2 -0
  20. package/dist/themes/themeLightNext/theme/components/select.js +4 -0
  21. package/dist/themes/themeLightNext/theme/components/tabs.js +4 -0
  22. package/dist/themes/themeLightNext/theme/components/toast.js +2 -1
  23. package/dist/themes/themeLightNext/theme/components/tooltip.js +8 -7
  24. package/dist/themes/types/theme/components/button.types.d.ts +2 -0
  25. package/dist/themes/types/theme/components/chip.types.d.ts +1 -0
  26. package/dist/themes/types/theme/components/input.types.d.ts +9 -5
  27. package/dist/themes/types/theme/components/menu.types.d.ts +1 -0
  28. package/dist/themes/types/theme/components/modal.types.d.ts +2 -0
  29. package/dist/themes/types/theme/components/popover.types.d.ts +2 -0
  30. package/dist/themes/types/theme/components/select.types.d.ts +10 -6
  31. package/dist/themes/types/theme/components/tooltip.types.d.ts +1 -0
  32. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -7872,6 +7872,7 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
7872
7872
  separator: { textColor: V.semantic.color.text.secondary500 }
7873
7873
  }, H = N(V.semantic.color.background.primary400, .55), Ir = {
7874
7874
  gap: "0.2rem",
7875
+ pressTransform: "translateY(1px)",
7875
7876
  sizes: {
7876
7877
  small: {
7877
7878
  borderRadius: "0.3rem",
@@ -7889,7 +7890,8 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
7889
7890
  borderRadius: "0.5rem",
7890
7891
  padding: "0.8rem 1.6rem",
7891
7892
  height: "3.6rem",
7892
- lineHeight: "1.91rem"
7893
+ lineHeight: "1.91rem",
7894
+ fontSize: "1.6rem"
7893
7895
  }
7894
7896
  },
7895
7897
  variants: {
@@ -8372,21 +8374,25 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
8372
8374
  regular: {
8373
8375
  normal: {
8374
8376
  bgColor: V.semantic.color.background.neutral100,
8375
- textColor: V.semantic.color.text.secondary950
8377
+ textColor: V.semantic.color.text.secondary950,
8378
+ borderColor: V.semantic.color.border.secondary200
8376
8379
  },
8377
8380
  disabled: {
8378
8381
  bgColor: V.semantic.color.background.secondary200,
8379
- textColor: V.semantic.color.text.secondary500
8382
+ textColor: V.semantic.color.text.secondary500,
8383
+ borderColor: V.semantic.color.border.secondary200
8380
8384
  }
8381
8385
  },
8382
8386
  flat: {
8383
8387
  normal: {
8384
8388
  bgColor: V.semantic.color.background.neutral100,
8385
- textColor: V.semantic.color.text.secondary950
8389
+ textColor: V.semantic.color.text.secondary950,
8390
+ borderColor: V.semantic.color.border.secondary200
8386
8391
  },
8387
8392
  disabled: {
8388
8393
  bgColor: V.semantic.color.background.secondary200,
8389
- textColor: V.semantic.color.text.secondary500
8394
+ textColor: V.semantic.color.text.secondary500,
8395
+ borderColor: V.semantic.color.border.secondary200
8390
8396
  }
8391
8397
  }
8392
8398
  },
@@ -8633,12 +8639,14 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
8633
8639
  borderWidth: "1px 0"
8634
8640
  }
8635
8641
  },
8642
+ focusRing: `0 0 0 3px ${V.semantic.color.border.informative100}`,
8636
8643
  states: {
8637
8644
  normal: {
8638
8645
  bgColor: V.semantic.color.background.secondary0,
8639
8646
  textColor: V.semantic.color.text.secondary950,
8640
8647
  borderColor: V.semantic.color.border.secondary400
8641
8648
  },
8649
+ hover: { borderColor: V.semantic.color.border.secondary500 },
8642
8650
  focused: { borderColor: V.semantic.color.border.secondary950 },
8643
8651
  success: { borderColor: V.semantic.color.border.success500 },
8644
8652
  error: { borderColor: V.semantic.color.border.primary400 },
@@ -8862,6 +8870,7 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
8862
8870
  minWidth: "16rem",
8863
8871
  maxWidth: "40rem",
8864
8872
  bgColor: V.semantic.color.background.secondary0,
8873
+ borderColor: V.semantic.color.border.secondary200,
8865
8874
  shadow: V.core.shadow.shadow400,
8866
8875
  borderRadius: "0.8rem",
8867
8876
  arrow: {
@@ -8925,6 +8934,7 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
8925
8934
  borderRadius: "0.8rem",
8926
8935
  shadow: V.core.shadow.shadow600,
8927
8936
  bgColor: V.semantic.color.background.secondary0,
8937
+ borderColor: V.semantic.color.border.secondary200,
8928
8938
  header: {
8929
8939
  blockPadding: "0 1.6rem",
8930
8940
  closeIconColor: V.semantic.color.icon.secondary500,
@@ -8944,9 +8954,14 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
8944
8954
  blockPadding: "4rem 0",
8945
8955
  buttonsGap: "0.8rem"
8946
8956
  },
8947
- overlay: { bgColor: N(V.semantic.color.background.secondary950, .55) }
8957
+ overlay: {
8958
+ bgColor: N(V.semantic.color.background.secondary950, .55),
8959
+ backdropFilter: "blur(4px)"
8960
+ }
8948
8961
  }, oi = { iconColor: V.semantic.color.icon.secondary500 }, si = {
8949
8962
  bgColor: V.semantic.color.background.secondary0,
8963
+ textColor: V.semantic.color.text.secondary500,
8964
+ borderColor: V.semantic.color.border.secondary200,
8950
8965
  shadow: V.core.shadow.shadow400,
8951
8966
  borderRadius: "0.8rem",
8952
8967
  minWidth: "10rem",
@@ -9155,12 +9170,14 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
9155
9170
  arrow: { iconColor: V.semantic.color.icon.secondary500 },
9156
9171
  value: { gap: "0.8rem" },
9157
9172
  multiValue: { margin: "0 0 0 -0.6rem" },
9173
+ focusRing: `0 0 0 3px ${V.semantic.color.border.informative100}`,
9158
9174
  states: {
9159
9175
  normal: {
9160
9176
  bgColor: V.semantic.color.background.secondary0,
9161
9177
  borderColor: V.semantic.color.border.secondary400,
9162
9178
  textColor: V.semantic.color.text.secondary950
9163
9179
  },
9180
+ hover: { borderColor: V.semantic.color.border.secondary500 },
9164
9181
  focused: { borderColor: V.semantic.color.border.secondary950 },
9165
9182
  opened: { borderColor: V.semantic.color.border.secondary950 },
9166
9183
  success: { borderColor: V.semantic.color.border.success500 },
@@ -9854,6 +9871,7 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
9854
9871
  padding: "2px 0 4px",
9855
9872
  letterSpacing: "0.11px"
9856
9873
  },
9874
+ hover: { textColor: V.semantic.color.text.secondary950 },
9857
9875
  active: {
9858
9876
  textColor: V.semantic.color.text.secondary950,
9859
9877
  fontWeight: V.core.font.fontWeight.semiBold,
@@ -9887,7 +9905,10 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
9887
9905
  borderWidth: "1px",
9888
9906
  borderColor: V.semantic.color.border.transparent
9889
9907
  },
9890
- hover: { bgColor: V.semantic.color.background.neutral100 },
9908
+ hover: {
9909
+ textColor: V.semantic.color.text.secondary950,
9910
+ bgColor: V.semantic.color.background.neutral100
9911
+ },
9891
9912
  active: {
9892
9913
  textColor: V.semantic.color.text.secondary950,
9893
9914
  bgColor: V.semantic.color.background.neutral100,
@@ -10098,7 +10119,7 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
10098
10119
  }, ki = {
10099
10120
  width: "clamp(400px, 33vw, 640px)",
10100
10121
  padding: "12px max(12px, calc(20 * (100vw / 1920)))",
10101
- shadow: "0 1px 10px 0 rgba(0, 0, 0, 0.1), 0 2px 15px 0 rgba(0, 0, 0, 0.05)",
10122
+ shadow: V.core.shadow.shadow400,
10102
10123
  gap: "1.2rem",
10103
10124
  actions: {
10104
10125
  gap: "0.8rem",
@@ -10162,18 +10183,19 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
10162
10183
  borderRadius: "99rem"
10163
10184
  }
10164
10185
  }, ji = {
10165
- textColor: V.semantic.color.text.secondary500,
10166
- bgColor: V.semantic.color.background.secondary0,
10167
- shadow: `0 0 0 1px ${V.semantic.color.border.secondary400}, ${V.core.shadow.shadow400}`,
10168
- borderRadius: "0.5rem",
10186
+ textColor: V.semantic.color.text.secondary0,
10187
+ contentTextColor: V.semantic.color.text.secondary0,
10188
+ bgColor: V.semantic.color.background.secondary950,
10189
+ shadow: "none",
10190
+ borderRadius: "0.2rem",
10169
10191
  minWidth: "initial",
10170
10192
  maxWidth: "30rem",
10171
- blockPadding: "0.9rem",
10172
- inlinePadding: "1.1rem",
10193
+ blockPadding: "0.6rem",
10194
+ inlinePadding: "1rem",
10173
10195
  arrow: {
10174
10196
  width: "16px",
10175
10197
  height: "8px",
10176
- shadow: `0 1px 0 ${V.semantic.color.border.secondary400}`
10198
+ shadow: "0 0 0 transparent"
10177
10199
  }
10178
10200
  }, Mi = {
10179
10201
  levelOffset: "1.8rem",
@@ -10627,12 +10649,20 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
10627
10649
  primary: {
10628
10650
  normal: {
10629
10651
  bgColor: K.semantic.color.background.primary950,
10652
+ borderColor: K.semantic.color.border.primary400,
10630
10653
  textColor: K.semantic.color.text.secondary0
10631
10654
  },
10632
- hover: { bgColor: K.semantic.color.background.primary800 },
10633
- active: { bgColor: K.semantic.color.background.primary600 },
10655
+ hover: {
10656
+ bgColor: K.semantic.color.background.primary800,
10657
+ borderColor: K.semantic.color.border.primary600
10658
+ },
10659
+ active: {
10660
+ bgColor: K.semantic.color.background.primary600,
10661
+ borderColor: K.semantic.color.border.primary600
10662
+ },
10634
10663
  disabled: {
10635
10664
  bgColor: K.semantic.color.background.secondary700,
10665
+ borderColor: K.semantic.color.border.secondary700,
10636
10666
  textColor: K.semantic.color.text.secondary400
10637
10667
  }
10638
10668
  },
@@ -10866,6 +10896,7 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
10866
10896
  separator: { textColor: K.semantic.color.text.secondary400 }
10867
10897
  }, q = N(K.semantic.color.background.primary300, .55), qi = {
10868
10898
  gap: "0.2rem",
10899
+ pressTransform: "translateY(1px)",
10869
10900
  sizes: {
10870
10901
  small: {
10871
10902
  borderRadius: "0.3rem",
@@ -10883,7 +10914,8 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
10883
10914
  borderRadius: "0.5rem",
10884
10915
  padding: "0.8rem 1.6rem",
10885
10916
  height: "3.6rem",
10886
- lineHeight: "1.91rem"
10917
+ lineHeight: "1.91rem",
10918
+ fontSize: "1.6rem"
10887
10919
  }
10888
10920
  },
10889
10921
  variants: {
@@ -11366,21 +11398,25 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
11366
11398
  regular: {
11367
11399
  normal: {
11368
11400
  bgColor: K.semantic.color.background.secondary900,
11369
- textColor: K.semantic.color.text.secondary0
11401
+ textColor: K.semantic.color.text.secondary0,
11402
+ borderColor: K.semantic.color.border.secondary700
11370
11403
  },
11371
11404
  disabled: {
11372
11405
  bgColor: K.semantic.color.background.secondary700,
11373
- textColor: K.semantic.color.text.secondary400
11406
+ textColor: K.semantic.color.text.secondary400,
11407
+ borderColor: K.semantic.color.border.secondary700
11374
11408
  }
11375
11409
  },
11376
11410
  flat: {
11377
11411
  normal: {
11378
11412
  bgColor: K.semantic.color.background.secondary900,
11379
- textColor: K.semantic.color.text.secondary0
11413
+ textColor: K.semantic.color.text.secondary0,
11414
+ borderColor: K.semantic.color.border.secondary700
11380
11415
  },
11381
11416
  disabled: {
11382
11417
  bgColor: K.semantic.color.background.secondary700,
11383
- textColor: K.semantic.color.text.secondary400
11418
+ textColor: K.semantic.color.text.secondary400,
11419
+ borderColor: K.semantic.color.border.secondary700
11384
11420
  }
11385
11421
  }
11386
11422
  },
@@ -11627,12 +11663,14 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
11627
11663
  borderWidth: "1px 0"
11628
11664
  }
11629
11665
  },
11666
+ focusRing: `0 0 0 3px ${K.semantic.color.border.secondary700}`,
11630
11667
  states: {
11631
11668
  normal: {
11632
11669
  bgColor: K.semantic.color.background.secondary950,
11633
11670
  textColor: K.semantic.color.text.secondary0,
11634
11671
  borderColor: K.semantic.color.border.secondary500
11635
11672
  },
11673
+ hover: { borderColor: K.semantic.color.border.secondary400 },
11636
11674
  focused: { borderColor: K.semantic.color.border.secondary0 },
11637
11675
  success: { borderColor: K.semantic.color.border.success500 },
11638
11676
  error: { borderColor: K.semantic.color.border.primary300 },
@@ -11856,6 +11894,7 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
11856
11894
  minWidth: "16rem",
11857
11895
  maxWidth: "40rem",
11858
11896
  bgColor: K.semantic.color.background.secondary950,
11897
+ borderColor: K.semantic.color.border.secondary700,
11859
11898
  shadow: K.core.shadow.shadow400,
11860
11899
  borderRadius: "0.8rem",
11861
11900
  arrow: {
@@ -11919,6 +11958,7 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
11919
11958
  borderRadius: "0.8rem",
11920
11959
  shadow: K.core.shadow.shadow600,
11921
11960
  bgColor: K.semantic.color.background.secondary950,
11961
+ borderColor: K.semantic.color.border.secondary700,
11922
11962
  header: {
11923
11963
  blockPadding: "0 1.6rem",
11924
11964
  closeIconColor: K.semantic.color.icon.secondary400,
@@ -11938,9 +11978,14 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
11938
11978
  blockPadding: "4rem 0",
11939
11979
  buttonsGap: "0.8rem"
11940
11980
  },
11941
- overlay: { bgColor: N(K.semantic.color.background.secondary950, .55) }
11981
+ overlay: {
11982
+ bgColor: N(K.semantic.color.background.secondary950, .55),
11983
+ backdropFilter: "blur(4px)"
11984
+ }
11942
11985
  }, _a = { iconColor: K.semantic.color.icon.secondary400 }, va = {
11943
11986
  bgColor: K.semantic.color.background.secondary950,
11987
+ textColor: K.semantic.color.text.secondary300,
11988
+ borderColor: K.semantic.color.border.secondary700,
11944
11989
  shadow: K.core.shadow.shadow400,
11945
11990
  borderRadius: "0.8rem",
11946
11991
  minWidth: "10rem",
@@ -12149,12 +12194,14 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
12149
12194
  arrow: { iconColor: K.semantic.color.icon.secondary400 },
12150
12195
  value: { gap: "0.8rem" },
12151
12196
  multiValue: { margin: "0 0 0 -0.6rem" },
12197
+ focusRing: `0 0 0 3px ${K.semantic.color.border.secondary700}`,
12152
12198
  states: {
12153
12199
  normal: {
12154
12200
  bgColor: K.semantic.color.background.secondary950,
12155
12201
  borderColor: K.semantic.color.border.secondary500,
12156
12202
  textColor: K.semantic.color.text.secondary0
12157
12203
  },
12204
+ hover: { borderColor: K.semantic.color.border.secondary400 },
12158
12205
  focused: { borderColor: K.semantic.color.border.secondary0 },
12159
12206
  opened: { borderColor: K.semantic.color.border.secondary0 },
12160
12207
  success: { borderColor: K.semantic.color.border.success500 },
@@ -12883,7 +12930,10 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
12883
12930
  borderWidth: "1px",
12884
12931
  borderColor: K.semantic.color.border.transparent
12885
12932
  },
12886
- hover: { bgColor: K.semantic.color.background.secondary900 },
12933
+ hover: {
12934
+ textColor: K.semantic.color.text.secondary0,
12935
+ bgColor: K.semantic.color.background.secondary900
12936
+ },
12887
12937
  active: {
12888
12938
  textColor: K.semantic.color.text.secondary0,
12889
12939
  bgColor: K.semantic.color.background.secondary900,
@@ -13094,7 +13144,7 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
13094
13144
  }, Va = {
13095
13145
  width: "clamp(400px, 33vw, 640px)",
13096
13146
  padding: "12px max(12px, calc(20 * (100vw / 1920)))",
13097
- shadow: "0 1px 10px 0 rgba(0, 0, 0, 0.1), 0 2px 15px 0 rgba(0, 0, 0, 0.05)",
13147
+ shadow: K.core.shadow.shadow400,
13098
13148
  gap: "1.2rem",
13099
13149
  actions: {
13100
13150
  gap: "0.8rem",
@@ -13158,18 +13208,19 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
13158
13208
  borderRadius: "99rem"
13159
13209
  }
13160
13210
  }, Ua = {
13161
- textColor: K.semantic.color.text.secondary300,
13211
+ textColor: K.semantic.color.text.secondary0,
13212
+ contentTextColor: K.semantic.color.text.secondary0,
13162
13213
  bgColor: K.semantic.color.background.secondary950,
13163
- shadow: `0 0 0 1px ${K.semantic.color.border.secondary500}, ${K.core.shadow.shadow400}`,
13164
- borderRadius: "0.5rem",
13214
+ shadow: `0 0 0 1px ${K.semantic.color.border.secondary700}`,
13215
+ borderRadius: "0.2rem",
13165
13216
  minWidth: "initial",
13166
13217
  maxWidth: "30rem",
13167
- blockPadding: "0.9rem",
13168
- inlinePadding: "1.1rem",
13218
+ blockPadding: "0.6rem",
13219
+ inlinePadding: "1rem",
13169
13220
  arrow: {
13170
13221
  width: "16px",
13171
13222
  height: "8px",
13172
- shadow: `0 1px 0 ${K.semantic.color.border.secondary500}`
13223
+ shadow: `0 1px 0 ${K.semantic.color.border.secondary700}`
13173
13224
  }
13174
13225
  }, Wa = {
13175
13226
  levelOffset: "1.8rem",