@redis-ui/styles 21.8.0 → 21.10.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 +104 -49
  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 +14 -10
  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 +14 -10
  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,24 +7872,28 @@ 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
- borderRadius: "0.3rem",
7878
- padding: "0.4rem 1rem",
7879
- height: "2.4rem",
7880
- lineHeight: "1.64rem"
7878
+ borderRadius: "0.5rem",
7879
+ padding: "0.9rem 1.6rem",
7880
+ height: "3.4rem",
7881
+ lineHeight: "1.4rem",
7882
+ fontSize: "1.4rem"
7881
7883
  },
7882
7884
  medium: {
7883
7885
  borderRadius: "0.5rem",
7884
- padding: "0.55rem 1.2rem",
7885
- height: "3rem",
7886
- lineHeight: "1.91rem"
7886
+ padding: "1.4rem 2.8rem",
7887
+ height: "4.4rem",
7888
+ lineHeight: "1.4rem",
7889
+ fontSize: "1.4rem"
7887
7890
  },
7888
7891
  large: {
7889
7892
  borderRadius: "0.5rem",
7890
- padding: "0.8rem 1.6rem",
7891
- height: "3.6rem",
7892
- lineHeight: "1.91rem"
7893
+ padding: "1.8rem 3.2rem",
7894
+ height: "5.4rem",
7895
+ lineHeight: "1.6rem",
7896
+ fontSize: "1.6rem"
7893
7897
  }
7894
7898
  },
7895
7899
  variants: {
@@ -8372,21 +8376,25 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
8372
8376
  regular: {
8373
8377
  normal: {
8374
8378
  bgColor: V.semantic.color.background.neutral100,
8375
- textColor: V.semantic.color.text.secondary950
8379
+ textColor: V.semantic.color.text.secondary950,
8380
+ borderColor: V.semantic.color.border.secondary200
8376
8381
  },
8377
8382
  disabled: {
8378
8383
  bgColor: V.semantic.color.background.secondary200,
8379
- textColor: V.semantic.color.text.secondary500
8384
+ textColor: V.semantic.color.text.secondary500,
8385
+ borderColor: V.semantic.color.border.secondary200
8380
8386
  }
8381
8387
  },
8382
8388
  flat: {
8383
8389
  normal: {
8384
8390
  bgColor: V.semantic.color.background.neutral100,
8385
- textColor: V.semantic.color.text.secondary950
8391
+ textColor: V.semantic.color.text.secondary950,
8392
+ borderColor: V.semantic.color.border.secondary200
8386
8393
  },
8387
8394
  disabled: {
8388
8395
  bgColor: V.semantic.color.background.secondary200,
8389
- textColor: V.semantic.color.text.secondary500
8396
+ textColor: V.semantic.color.text.secondary500,
8397
+ borderColor: V.semantic.color.border.secondary200
8390
8398
  }
8391
8399
  }
8392
8400
  },
@@ -8633,12 +8641,14 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
8633
8641
  borderWidth: "1px 0"
8634
8642
  }
8635
8643
  },
8644
+ focusRing: `0 0 0 3px ${V.semantic.color.border.informative100}`,
8636
8645
  states: {
8637
8646
  normal: {
8638
8647
  bgColor: V.semantic.color.background.secondary0,
8639
8648
  textColor: V.semantic.color.text.secondary950,
8640
8649
  borderColor: V.semantic.color.border.secondary400
8641
8650
  },
8651
+ hover: { borderColor: V.semantic.color.border.secondary500 },
8642
8652
  focused: { borderColor: V.semantic.color.border.secondary950 },
8643
8653
  success: { borderColor: V.semantic.color.border.success500 },
8644
8654
  error: { borderColor: V.semantic.color.border.primary400 },
@@ -8862,6 +8872,7 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
8862
8872
  minWidth: "16rem",
8863
8873
  maxWidth: "40rem",
8864
8874
  bgColor: V.semantic.color.background.secondary0,
8875
+ borderColor: V.semantic.color.border.secondary200,
8865
8876
  shadow: V.core.shadow.shadow400,
8866
8877
  borderRadius: "0.8rem",
8867
8878
  arrow: {
@@ -8925,6 +8936,7 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
8925
8936
  borderRadius: "0.8rem",
8926
8937
  shadow: V.core.shadow.shadow600,
8927
8938
  bgColor: V.semantic.color.background.secondary0,
8939
+ borderColor: V.semantic.color.border.secondary200,
8928
8940
  header: {
8929
8941
  blockPadding: "0 1.6rem",
8930
8942
  closeIconColor: V.semantic.color.icon.secondary500,
@@ -8944,9 +8956,14 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
8944
8956
  blockPadding: "4rem 0",
8945
8957
  buttonsGap: "0.8rem"
8946
8958
  },
8947
- overlay: { bgColor: N(V.semantic.color.background.secondary950, .55) }
8959
+ overlay: {
8960
+ bgColor: N(V.semantic.color.background.secondary950, .55),
8961
+ backdropFilter: "blur(4px)"
8962
+ }
8948
8963
  }, oi = { iconColor: V.semantic.color.icon.secondary500 }, si = {
8949
8964
  bgColor: V.semantic.color.background.secondary0,
8965
+ textColor: V.semantic.color.text.secondary500,
8966
+ borderColor: V.semantic.color.border.secondary200,
8950
8967
  shadow: V.core.shadow.shadow400,
8951
8968
  borderRadius: "0.8rem",
8952
8969
  minWidth: "10rem",
@@ -9155,12 +9172,14 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
9155
9172
  arrow: { iconColor: V.semantic.color.icon.secondary500 },
9156
9173
  value: { gap: "0.8rem" },
9157
9174
  multiValue: { margin: "0 0 0 -0.6rem" },
9175
+ focusRing: `0 0 0 3px ${V.semantic.color.border.informative100}`,
9158
9176
  states: {
9159
9177
  normal: {
9160
9178
  bgColor: V.semantic.color.background.secondary0,
9161
9179
  borderColor: V.semantic.color.border.secondary400,
9162
9180
  textColor: V.semantic.color.text.secondary950
9163
9181
  },
9182
+ hover: { borderColor: V.semantic.color.border.secondary500 },
9164
9183
  focused: { borderColor: V.semantic.color.border.secondary950 },
9165
9184
  opened: { borderColor: V.semantic.color.border.secondary950 },
9166
9185
  success: { borderColor: V.semantic.color.border.success500 },
@@ -9854,6 +9873,7 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
9854
9873
  padding: "2px 0 4px",
9855
9874
  letterSpacing: "0.11px"
9856
9875
  },
9876
+ hover: { textColor: V.semantic.color.text.secondary950 },
9857
9877
  active: {
9858
9878
  textColor: V.semantic.color.text.secondary950,
9859
9879
  fontWeight: V.core.font.fontWeight.semiBold,
@@ -9887,7 +9907,10 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
9887
9907
  borderWidth: "1px",
9888
9908
  borderColor: V.semantic.color.border.transparent
9889
9909
  },
9890
- hover: { bgColor: V.semantic.color.background.neutral100 },
9910
+ hover: {
9911
+ textColor: V.semantic.color.text.secondary950,
9912
+ bgColor: V.semantic.color.background.neutral100
9913
+ },
9891
9914
  active: {
9892
9915
  textColor: V.semantic.color.text.secondary950,
9893
9916
  bgColor: V.semantic.color.background.neutral100,
@@ -10098,7 +10121,7 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
10098
10121
  }, ki = {
10099
10122
  width: "clamp(400px, 33vw, 640px)",
10100
10123
  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)",
10124
+ shadow: V.core.shadow.shadow400,
10102
10125
  gap: "1.2rem",
10103
10126
  actions: {
10104
10127
  gap: "0.8rem",
@@ -10162,18 +10185,19 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
10162
10185
  borderRadius: "99rem"
10163
10186
  }
10164
10187
  }, 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",
10188
+ textColor: V.semantic.color.text.secondary0,
10189
+ contentTextColor: V.semantic.color.text.secondary0,
10190
+ bgColor: V.semantic.color.background.secondary950,
10191
+ shadow: "none",
10192
+ borderRadius: "0.2rem",
10169
10193
  minWidth: "initial",
10170
10194
  maxWidth: "30rem",
10171
- blockPadding: "0.9rem",
10172
- inlinePadding: "1.1rem",
10195
+ blockPadding: "0.6rem",
10196
+ inlinePadding: "1rem",
10173
10197
  arrow: {
10174
10198
  width: "16px",
10175
10199
  height: "8px",
10176
- shadow: `0 1px 0 ${V.semantic.color.border.secondary400}`
10200
+ shadow: "0 0 0 transparent"
10177
10201
  }
10178
10202
  }, Mi = {
10179
10203
  levelOffset: "1.8rem",
@@ -10627,12 +10651,20 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
10627
10651
  primary: {
10628
10652
  normal: {
10629
10653
  bgColor: K.semantic.color.background.primary950,
10654
+ borderColor: K.semantic.color.border.primary400,
10630
10655
  textColor: K.semantic.color.text.secondary0
10631
10656
  },
10632
- hover: { bgColor: K.semantic.color.background.primary800 },
10633
- active: { bgColor: K.semantic.color.background.primary600 },
10657
+ hover: {
10658
+ bgColor: K.semantic.color.background.primary800,
10659
+ borderColor: K.semantic.color.border.primary600
10660
+ },
10661
+ active: {
10662
+ bgColor: K.semantic.color.background.primary600,
10663
+ borderColor: K.semantic.color.border.primary600
10664
+ },
10634
10665
  disabled: {
10635
10666
  bgColor: K.semantic.color.background.secondary700,
10667
+ borderColor: K.semantic.color.border.secondary700,
10636
10668
  textColor: K.semantic.color.text.secondary400
10637
10669
  }
10638
10670
  },
@@ -10866,24 +10898,28 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
10866
10898
  separator: { textColor: K.semantic.color.text.secondary400 }
10867
10899
  }, q = N(K.semantic.color.background.primary300, .55), qi = {
10868
10900
  gap: "0.2rem",
10901
+ pressTransform: "translateY(1px)",
10869
10902
  sizes: {
10870
10903
  small: {
10871
- borderRadius: "0.3rem",
10872
- padding: "0.4rem 1rem",
10873
- height: "2.4rem",
10874
- lineHeight: "1.64rem"
10904
+ borderRadius: "0.5rem",
10905
+ padding: "0.9rem 1.6rem",
10906
+ height: "3.4rem",
10907
+ lineHeight: "1.4rem",
10908
+ fontSize: "1.4rem"
10875
10909
  },
10876
10910
  medium: {
10877
10911
  borderRadius: "0.5rem",
10878
- padding: "0.55rem 1.2rem",
10879
- height: "3rem",
10880
- lineHeight: "1.91rem"
10912
+ padding: "1.4rem 2.8rem",
10913
+ height: "4.4rem",
10914
+ lineHeight: "1.4rem",
10915
+ fontSize: "1.4rem"
10881
10916
  },
10882
10917
  large: {
10883
10918
  borderRadius: "0.5rem",
10884
- padding: "0.8rem 1.6rem",
10885
- height: "3.6rem",
10886
- lineHeight: "1.91rem"
10919
+ padding: "1.8rem 3.2rem",
10920
+ height: "5.4rem",
10921
+ lineHeight: "1.6rem",
10922
+ fontSize: "1.6rem"
10887
10923
  }
10888
10924
  },
10889
10925
  variants: {
@@ -11366,21 +11402,25 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
11366
11402
  regular: {
11367
11403
  normal: {
11368
11404
  bgColor: K.semantic.color.background.secondary900,
11369
- textColor: K.semantic.color.text.secondary0
11405
+ textColor: K.semantic.color.text.secondary0,
11406
+ borderColor: K.semantic.color.border.secondary700
11370
11407
  },
11371
11408
  disabled: {
11372
11409
  bgColor: K.semantic.color.background.secondary700,
11373
- textColor: K.semantic.color.text.secondary400
11410
+ textColor: K.semantic.color.text.secondary400,
11411
+ borderColor: K.semantic.color.border.secondary700
11374
11412
  }
11375
11413
  },
11376
11414
  flat: {
11377
11415
  normal: {
11378
11416
  bgColor: K.semantic.color.background.secondary900,
11379
- textColor: K.semantic.color.text.secondary0
11417
+ textColor: K.semantic.color.text.secondary0,
11418
+ borderColor: K.semantic.color.border.secondary700
11380
11419
  },
11381
11420
  disabled: {
11382
11421
  bgColor: K.semantic.color.background.secondary700,
11383
- textColor: K.semantic.color.text.secondary400
11422
+ textColor: K.semantic.color.text.secondary400,
11423
+ borderColor: K.semantic.color.border.secondary700
11384
11424
  }
11385
11425
  }
11386
11426
  },
@@ -11627,12 +11667,14 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
11627
11667
  borderWidth: "1px 0"
11628
11668
  }
11629
11669
  },
11670
+ focusRing: `0 0 0 3px ${K.semantic.color.border.secondary700}`,
11630
11671
  states: {
11631
11672
  normal: {
11632
11673
  bgColor: K.semantic.color.background.secondary950,
11633
11674
  textColor: K.semantic.color.text.secondary0,
11634
11675
  borderColor: K.semantic.color.border.secondary500
11635
11676
  },
11677
+ hover: { borderColor: K.semantic.color.border.secondary400 },
11636
11678
  focused: { borderColor: K.semantic.color.border.secondary0 },
11637
11679
  success: { borderColor: K.semantic.color.border.success500 },
11638
11680
  error: { borderColor: K.semantic.color.border.primary300 },
@@ -11856,6 +11898,7 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
11856
11898
  minWidth: "16rem",
11857
11899
  maxWidth: "40rem",
11858
11900
  bgColor: K.semantic.color.background.secondary950,
11901
+ borderColor: K.semantic.color.border.secondary700,
11859
11902
  shadow: K.core.shadow.shadow400,
11860
11903
  borderRadius: "0.8rem",
11861
11904
  arrow: {
@@ -11919,6 +11962,7 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
11919
11962
  borderRadius: "0.8rem",
11920
11963
  shadow: K.core.shadow.shadow600,
11921
11964
  bgColor: K.semantic.color.background.secondary950,
11965
+ borderColor: K.semantic.color.border.secondary700,
11922
11966
  header: {
11923
11967
  blockPadding: "0 1.6rem",
11924
11968
  closeIconColor: K.semantic.color.icon.secondary400,
@@ -11938,9 +11982,14 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
11938
11982
  blockPadding: "4rem 0",
11939
11983
  buttonsGap: "0.8rem"
11940
11984
  },
11941
- overlay: { bgColor: N(K.semantic.color.background.secondary950, .55) }
11985
+ overlay: {
11986
+ bgColor: N(K.semantic.color.background.secondary950, .55),
11987
+ backdropFilter: "blur(4px)"
11988
+ }
11942
11989
  }, _a = { iconColor: K.semantic.color.icon.secondary400 }, va = {
11943
11990
  bgColor: K.semantic.color.background.secondary950,
11991
+ textColor: K.semantic.color.text.secondary300,
11992
+ borderColor: K.semantic.color.border.secondary700,
11944
11993
  shadow: K.core.shadow.shadow400,
11945
11994
  borderRadius: "0.8rem",
11946
11995
  minWidth: "10rem",
@@ -12149,12 +12198,14 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
12149
12198
  arrow: { iconColor: K.semantic.color.icon.secondary400 },
12150
12199
  value: { gap: "0.8rem" },
12151
12200
  multiValue: { margin: "0 0 0 -0.6rem" },
12201
+ focusRing: `0 0 0 3px ${K.semantic.color.border.secondary700}`,
12152
12202
  states: {
12153
12203
  normal: {
12154
12204
  bgColor: K.semantic.color.background.secondary950,
12155
12205
  borderColor: K.semantic.color.border.secondary500,
12156
12206
  textColor: K.semantic.color.text.secondary0
12157
12207
  },
12208
+ hover: { borderColor: K.semantic.color.border.secondary400 },
12158
12209
  focused: { borderColor: K.semantic.color.border.secondary0 },
12159
12210
  opened: { borderColor: K.semantic.color.border.secondary0 },
12160
12211
  success: { borderColor: K.semantic.color.border.success500 },
@@ -12883,7 +12934,10 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
12883
12934
  borderWidth: "1px",
12884
12935
  borderColor: K.semantic.color.border.transparent
12885
12936
  },
12886
- hover: { bgColor: K.semantic.color.background.secondary900 },
12937
+ hover: {
12938
+ textColor: K.semantic.color.text.secondary0,
12939
+ bgColor: K.semantic.color.background.secondary900
12940
+ },
12887
12941
  active: {
12888
12942
  textColor: K.semantic.color.text.secondary0,
12889
12943
  bgColor: K.semantic.color.background.secondary900,
@@ -13094,7 +13148,7 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
13094
13148
  }, Va = {
13095
13149
  width: "clamp(400px, 33vw, 640px)",
13096
13150
  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)",
13151
+ shadow: K.core.shadow.shadow400,
13098
13152
  gap: "1.2rem",
13099
13153
  actions: {
13100
13154
  gap: "0.8rem",
@@ -13158,18 +13212,19 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
13158
13212
  borderRadius: "99rem"
13159
13213
  }
13160
13214
  }, Ua = {
13161
- textColor: K.semantic.color.text.secondary300,
13215
+ textColor: K.semantic.color.text.secondary0,
13216
+ contentTextColor: K.semantic.color.text.secondary0,
13162
13217
  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",
13218
+ shadow: `0 0 0 1px ${K.semantic.color.border.secondary700}`,
13219
+ borderRadius: "0.2rem",
13165
13220
  minWidth: "initial",
13166
13221
  maxWidth: "30rem",
13167
- blockPadding: "0.9rem",
13168
- inlinePadding: "1.1rem",
13222
+ blockPadding: "0.6rem",
13223
+ inlinePadding: "1rem",
13169
13224
  arrow: {
13170
13225
  width: "16px",
13171
13226
  height: "8px",
13172
- shadow: `0 1px 0 ${K.semantic.color.border.secondary500}`
13227
+ shadow: `0 1px 0 ${K.semantic.color.border.secondary700}`
13173
13228
  }
13174
13229
  }, Wa = {
13175
13230
  levelOffset: "1.8rem",