@descope/web-components-ui 1.0.273 → 1.0.274

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/cjs/index.cjs.js +125 -90
  2. package/dist/cjs/index.cjs.js.map +1 -1
  3. package/dist/index.d.ts +2 -2
  4. package/dist/index.esm.js +172 -93
  5. package/dist/index.esm.js.map +1 -1
  6. package/dist/umd/2481.js +1 -1
  7. package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js +1 -1
  8. package/dist/umd/descope-grid-index-js.js +1 -1
  9. package/package.json +1 -1
  10. package/src/components/button-selection-group-fields/descope-button-selection-group-item/ButtonSelectionGroupItemClass.js +5 -0
  11. package/src/components/descope-grid/GridClass.js +7 -5
  12. package/src/components/descope-password/PasswordClass.js +2 -4
  13. package/src/darkTheme.js +48 -0
  14. package/src/helpers/themeHelpers/colorsHelpers.js +2 -0
  15. package/src/index.d.ts +2 -2
  16. package/src/index.js +1 -0
  17. package/src/theme/components/badge.js +1 -1
  18. package/src/theme/components/button.js +7 -5
  19. package/src/theme/components/buttonSelectionGroup/buttonSelectionGroupItem.js +9 -4
  20. package/src/theme/components/comboBox.js +1 -1
  21. package/src/theme/components/container.js +1 -1
  22. package/src/theme/components/divider.js +1 -1
  23. package/src/theme/components/grid.js +10 -10
  24. package/src/theme/components/inputWrapper.js +10 -10
  25. package/src/theme/components/loader/loaderLinear.js +1 -1
  26. package/src/theme/components/modal.js +1 -1
  27. package/src/theme/components/multiSelectComboBox.js +2 -2
  28. package/src/theme/components/password.js +1 -0
  29. package/src/theme/components/switchToggle.js +3 -4
  30. package/src/theme/components/text.js +2 -2
  31. package/src/theme/components/textArea.js +0 -7
  32. package/src/theme/globals.js +34 -8
package/dist/index.d.ts CHANGED
@@ -7,8 +7,8 @@ export {
7
7
  componentsThemeManager,
8
8
  } from './helpers/themeHelpers';
9
9
  export { genColor } from './helpers/themeHelpers/colorsHelpers';
10
- export { defaultTheme, themeVars } from './theme';
11
-
10
+ export { defaultTheme, themeVars } from './defaultTheme';
11
+ export { default as darkTheme } from './darkTheme';
12
12
  export { ButtonClass } from './components/descope-button';
13
13
  export { CheckboxClass } from './components/boolean-fields/descope-checkbox';
14
14
  export { SwitchToggleClass } from './components/boolean-fields/descope-switch-toggle';
package/dist/index.esm.js CHANGED
@@ -3173,10 +3173,7 @@ const PasswordClass = compose(
3173
3173
  labelRequiredIndicator: { ...requiredIndicator$7, property: 'content' },
3174
3174
  errorMessageTextColor: { ...errorMessage$7, property: 'color' },
3175
3175
 
3176
- inputValueTextColor: [
3177
- { ...inputElement$2, property: 'color' },
3178
- { ...revealButtonIcon, property: 'color' },
3179
- ],
3176
+ inputValueTextColor: { ...inputElement$2, property: 'color' },
3180
3177
  inputPlaceholderTextColor: { ...inputElementPlaceholder, property: 'color' },
3181
3178
 
3182
3179
  revealButtonOffset: [
@@ -3184,6 +3181,7 @@ const PasswordClass = compose(
3184
3181
  { ...revealButtonContainer, property: 'margin-left' },
3185
3182
  ],
3186
3183
  revealButtonSize: { ...revealButtonContainer, property: 'font-size' },
3184
+ revealButtonColor: { ...revealButtonIcon, property: 'color' },
3187
3185
  },
3188
3186
  }),
3189
3187
  draggableMixin,
@@ -6894,6 +6892,7 @@ class RawSelectItem extends createBaseClass({
6894
6892
  `;
6895
6893
 
6896
6894
  forwardAttrs(this, this.baseElement, { includeAttrs: ['size', 'variant'] });
6895
+ forwardAttrs(this.baseElement, this, { includeAttrs: ['focused', 'active'] });
6897
6896
  }
6898
6897
 
6899
6898
  handleFocus() {
@@ -6942,6 +6941,10 @@ const ButtonSelectionGroupItemClass = compose(
6942
6941
  selector: () => ButtonClass.componentName,
6943
6942
  property: ButtonClass.cssVarList.borderRadius,
6944
6943
  },
6944
+ outlineColor: {
6945
+ selector: () => ButtonClass.componentName,
6946
+ property: ButtonClass.cssVarList.outlineColor,
6947
+ },
6945
6948
  },
6946
6949
  }),
6947
6950
  draggableMixin,
@@ -7452,12 +7455,11 @@ const GridClass = compose(
7452
7455
  ],
7453
7456
  sortIndicatorsColor: { ...sortIndicators, property: 'color' },
7454
7457
  activeSortIndicator: { ...activeSortIndicator, property: 'color' },
7455
- inputBorderColor: { ...host$1, property: 'border-color' },
7456
- inputBorderWidth: { ...host$1, property: 'border-width' },
7457
- inputBorderStyle: { ...host$1, property: 'border-style' },
7458
- inputBorderRadius: { ...host$1, property: 'border-radius' },
7458
+ borderColor: { ...host$1, property: 'border-color' },
7459
+ borderWidth: { ...host$1, property: 'border-width' },
7460
+ borderStyle: { ...host$1, property: 'border-style' },
7461
+ borderRadius: { ...host$1, property: 'border-radius' },
7459
7462
  selectedBackgroundColor: { ...selectedRow, property: 'background-color' },
7460
- selectedTextColor: { ...selectedRow, property: 'color' },
7461
7463
  headerRowTextColor: { ...headerRowCell, property: 'color' },
7462
7464
  separatorColor: [
7463
7465
  { ...firstRow, property: 'border-bottom-color' },
@@ -7482,6 +7484,9 @@ const GridClass = compose(
7482
7484
  }
7483
7485
  vaadin-grid-cell-content {
7484
7486
  display: flex;
7487
+ }
7488
+ vaadin-grid::part(selected-row-cell) {
7489
+ background-image: none;
7485
7490
  }
7486
7491
  `,
7487
7492
  excludeAttrsSync: ['columns', 'tabindex'],
@@ -8645,6 +8650,7 @@ const createHelperVars = (theme, prefix) => {
8645
8650
  return [res.theme, res.useVars, res.vars];
8646
8651
  };
8647
8652
 
8653
+ // TODO: fix generated colors strategy
8648
8654
  const genDark = (c, percentage = 0.5) => c.darken(percentage).hex();
8649
8655
  const genLight = (c, percentage = 0.5) => c.lighten(percentage).hex();
8650
8656
  const genContrast = (c, percentage = 0.9) => {
@@ -8662,6 +8668,7 @@ const genColor = (color) => {
8662
8668
  main: mainColor.hex(),
8663
8669
  dark: color.dark || genDark(mainColor),
8664
8670
  light: color.light || genLight(mainColor),
8671
+ highlight: color.highlight || genLight(mainColor),
8665
8672
  contrast: color.contrast || genContrast(mainColor),
8666
8673
  };
8667
8674
  };
@@ -8678,16 +8685,42 @@ const genColors = (colors) => {
8678
8685
 
8679
8686
  const direction = 'ltr';
8680
8687
 
8681
- const colors = genColors({
8688
+ const colors$1 = genColors({
8682
8689
  surface: {
8683
- main: 'lightgray',
8684
- light: '#fff',
8685
- dark: '#000',
8686
- },
8687
- primary: '#006af5',
8688
- secondary: '#7D14EB',
8689
- success: 'green',
8690
- error: '#e21d12',
8690
+ main: '#ffffff',
8691
+ dark: '#636c74',
8692
+ light: '#cfd3d7',
8693
+ highlight: '#f4f5f6',
8694
+ contrast: '#181a1c',
8695
+ },
8696
+ primary: {
8697
+ main: '#006af5',
8698
+ dark: '#004094',
8699
+ light: '#71aeff',
8700
+ highlight: '#f0f6ff',
8701
+ contrast: '#ffffff',
8702
+ },
8703
+ secondary: {
8704
+ main: '#802ed6',
8705
+ dark: '#6410bc',
8706
+ light: '#be89f5',
8707
+ highlight: '#ede7f6',
8708
+ contrast: '#ffffff',
8709
+ },
8710
+ success: {
8711
+ main: '#008000',
8712
+ dark: '#005700',
8713
+ light: '#8bc38b',
8714
+ highlight: '#f5faf5',
8715
+ contrast: '#ffffff',
8716
+ },
8717
+ error: {
8718
+ main: '#e21d12',
8719
+ dark: '#b3170f',
8720
+ light: '#f4807a',
8721
+ highlight: '#fef1f1',
8722
+ contrast: '#ffffff',
8723
+ },
8691
8724
  });
8692
8725
 
8693
8726
  const fonts = {
@@ -8816,7 +8849,7 @@ const shadow = {
8816
8849
  };
8817
8850
 
8818
8851
  const globals = {
8819
- colors,
8852
+ colors: colors$1,
8820
8853
  typography,
8821
8854
  spacing,
8822
8855
  border,
@@ -8827,15 +8860,15 @@ const globals = {
8827
8860
  };
8828
8861
  const vars$y = getThemeVars(globals);
8829
8862
 
8830
- const globalRefs$i = getThemeRefs(globals);
8863
+ const globalRefs$h = getThemeRefs(globals);
8831
8864
  const compVars$4 = ButtonClass.cssVarList;
8832
8865
 
8833
8866
  const mode = {
8834
- primary: globalRefs$i.colors.primary,
8835
- secondary: globalRefs$i.colors.secondary,
8836
- success: globalRefs$i.colors.success,
8837
- error: globalRefs$i.colors.error,
8838
- surface: globalRefs$i.colors.surface,
8867
+ primary: globalRefs$h.colors.primary,
8868
+ secondary: globalRefs$h.colors.secondary,
8869
+ success: globalRefs$h.colors.success,
8870
+ error: globalRefs$h.colors.error,
8871
+ surface: globalRefs$h.colors.surface,
8839
8872
  };
8840
8873
 
8841
8874
  const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars({ mode }, componentName$I);
@@ -8843,15 +8876,15 @@ const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars({ mode }, c
8843
8876
  const button = {
8844
8877
  ...helperTheme$3,
8845
8878
 
8846
- [compVars$4.fontFamily]: globalRefs$i.fonts.font1.family,
8879
+ [compVars$4.fontFamily]: globalRefs$h.fonts.font1.family,
8847
8880
 
8848
8881
  [compVars$4.cursor]: 'pointer',
8849
8882
  [compVars$4.hostHeight]: '3em',
8850
8883
  [compVars$4.hostWidth]: 'auto',
8851
- [compVars$4.hostDirection]: globalRefs$i.direction,
8884
+ [compVars$4.hostDirection]: globalRefs$h.direction,
8852
8885
 
8853
- [compVars$4.borderRadius]: globalRefs$i.radius.sm,
8854
- [compVars$4.borderWidth]: globalRefs$i.border.xs,
8886
+ [compVars$4.borderRadius]: globalRefs$h.radius.sm,
8887
+ [compVars$4.borderWidth]: globalRefs$h.border.xs,
8855
8888
  [compVars$4.borderStyle]: 'solid',
8856
8889
  [compVars$4.borderColor]: 'transparent',
8857
8890
 
@@ -8894,10 +8927,10 @@ const button = {
8894
8927
  },
8895
8928
 
8896
8929
  _disabled: {
8897
- [helperVars$3.main]: globalRefs$i.colors.surface.main,
8898
- [helperVars$3.dark]: globalRefs$i.colors.surface.dark,
8899
- [helperVars$3.light]: globalRefs$i.colors.surface.light,
8900
- [helperVars$3.contrast]: globalRefs$i.colors.surface.light,
8930
+ [helperVars$3.main]: globalRefs$h.colors.surface.light,
8931
+ [helperVars$3.dark]: globalRefs$h.colors.surface.dark,
8932
+ [helperVars$3.light]: globalRefs$h.colors.surface.light,
8933
+ [helperVars$3.contrast]: globalRefs$h.colors.surface.main,
8901
8934
  },
8902
8935
 
8903
8936
  variant: {
@@ -8917,12 +8950,14 @@ const button = {
8917
8950
 
8918
8951
  outline: {
8919
8952
  [compVars$4.labelTextColor]: helperRefs$3.main,
8920
- [compVars$4.borderColor]: 'currentColor',
8953
+ [compVars$4.borderColor]: helperRefs$3.main,
8921
8954
  _hover: {
8922
8955
  [compVars$4.labelTextColor]: helperRefs$3.dark,
8956
+ [compVars$4.borderColor]: helperRefs$3.dark,
8923
8957
  },
8924
8958
  _active: {
8925
8959
  [compVars$4.labelTextColor]: helperRefs$3.main,
8960
+ [compVars$4.borderColor]: helperRefs$3.main,
8926
8961
  },
8927
8962
  },
8928
8963
 
@@ -8933,13 +8968,13 @@ const button = {
8933
8968
  [compVars$4.labelTextDecoration]: 'underline',
8934
8969
  },
8935
8970
  _active: {
8936
- [compVars$4.labelTextColor]: helperRefs$3.dark,
8971
+ [compVars$4.labelTextColor]: helperRefs$3.main,
8937
8972
  },
8938
8973
  },
8939
8974
  },
8940
8975
 
8941
8976
  _focused: {
8942
- [compVars$4.outlineColor]: globalRefs$i.colors.surface.main,
8977
+ [compVars$4.outlineColor]: helperRefs$3.light,
8943
8978
  },
8944
8979
  };
8945
8980
 
@@ -8955,21 +8990,21 @@ var button$1 = /*#__PURE__*/Object.freeze({
8955
8990
  });
8956
8991
 
8957
8992
  const componentName = getComponentName('input-wrapper');
8958
- const globalRefs$h = getThemeRefs(globals);
8993
+ const globalRefs$g = getThemeRefs(globals);
8959
8994
 
8960
8995
  const [theme$1, refs, vars$w] = createHelperVars(
8961
8996
  {
8962
- labelTextColor: globalRefs$h.colors.surface.contrast,
8963
- valueTextColor: globalRefs$h.colors.surface.contrast,
8964
- placeholderTextColor: globalRefs$h.colors.surface.main,
8997
+ labelTextColor: globalRefs$g.colors.surface.dark,
8998
+ valueTextColor: globalRefs$g.colors.surface.contrast,
8999
+ placeholderTextColor: globalRefs$g.colors.surface.dark,
8965
9000
  requiredIndicator: "'*'",
8966
- errorMessageTextColor: globalRefs$h.colors.error.main,
9001
+ errorMessageTextColor: globalRefs$g.colors.error.main,
8967
9002
 
8968
- borderWidth: globalRefs$h.border.xs,
8969
- borderRadius: globalRefs$h.radius.xs,
9003
+ borderWidth: globalRefs$g.border.xs,
9004
+ borderRadius: globalRefs$g.radius.xs,
8970
9005
  borderColor: 'transparent',
8971
9006
 
8972
- outlineWidth: globalRefs$h.border.sm,
9007
+ outlineWidth: globalRefs$g.border.sm,
8973
9008
  outlineStyle: 'solid',
8974
9009
  outlineColor: 'transparent',
8975
9010
  outlineOffset: '0px', // we need to keep the px unit even for 0 value, as this var is used for calc in different component classes
@@ -8980,11 +9015,11 @@ const [theme$1, refs, vars$w] = createHelperVars(
8980
9015
  horizontalPadding: '0.5em',
8981
9016
  verticalPadding: '0.5em',
8982
9017
 
8983
- backgroundColor: globalRefs$h.colors.surface.light,
9018
+ backgroundColor: globalRefs$g.colors.surface.main,
8984
9019
 
8985
- fontFamily: globalRefs$h.fonts.font1.family,
9020
+ fontFamily: globalRefs$g.fonts.font1.family,
8986
9021
 
8987
- direction: globalRefs$h.direction,
9022
+ direction: globalRefs$g.direction,
8988
9023
 
8989
9024
  overlayOpacity: '0.3',
8990
9025
 
@@ -9000,27 +9035,27 @@ const [theme$1, refs, vars$w] = createHelperVars(
9000
9035
  },
9001
9036
 
9002
9037
  _focused: {
9003
- outlineColor: globalRefs$h.colors.surface.main,
9038
+ outlineColor: globalRefs$g.colors.surface.light,
9004
9039
  _invalid: {
9005
- outlineColor: globalRefs$h.colors.error.main,
9040
+ outlineColor: globalRefs$g.colors.error.main,
9006
9041
  },
9007
9042
  },
9008
9043
 
9009
9044
  _bordered: {
9010
- outlineWidth: globalRefs$h.border.xs,
9011
- borderColor: globalRefs$h.colors.surface.main,
9045
+ outlineWidth: globalRefs$g.border.xs,
9046
+ borderColor: globalRefs$g.colors.surface.light,
9012
9047
  borderStyle: 'solid',
9013
9048
  _invalid: {
9014
- borderColor: globalRefs$h.colors.error.main,
9049
+ borderColor: globalRefs$g.colors.error.main,
9015
9050
  },
9016
9051
  },
9017
9052
 
9018
9053
  _disabled: {
9019
- labelTextColor: globalRefs$h.colors.surface.main,
9020
- borderColor: globalRefs$h.colors.surface.main,
9021
- valueTextColor: globalRefs$h.colors.surface.dark,
9022
- placeholderTextColor: globalRefs$h.colors.surface.dark,
9023
- backgroundColor: globalRefs$h.colors.surface.light,
9054
+ labelTextColor: globalRefs$g.colors.surface.light,
9055
+ borderColor: globalRefs$g.colors.surface.light,
9056
+ valueTextColor: globalRefs$g.colors.surface.light,
9057
+ placeholderTextColor: globalRefs$g.colors.surface.light,
9058
+ backgroundColor: globalRefs$g.colors.surface.main,
9024
9059
  },
9025
9060
  },
9026
9061
  componentName
@@ -9071,7 +9106,7 @@ var textField$1 = /*#__PURE__*/Object.freeze({
9071
9106
  vars: vars$v
9072
9107
  });
9073
9108
 
9074
- const globalRefs$g = getThemeRefs(globals);
9109
+ const globalRefs$f = getThemeRefs(globals);
9075
9110
  const vars$u = PasswordClass.cssVarList;
9076
9111
 
9077
9112
  const password = {
@@ -9095,8 +9130,9 @@ const password = {
9095
9130
  [vars$u.inputOutlineStyle]: refs.outlineStyle,
9096
9131
  [vars$u.inputOutlineColor]: refs.outlineColor,
9097
9132
  [vars$u.inputOutlineOffset]: refs.outlineOffset,
9098
- [vars$u.revealButtonOffset]: globalRefs$g.spacing.md,
9133
+ [vars$u.revealButtonOffset]: globalRefs$f.spacing.md,
9099
9134
  [vars$u.revealButtonSize]: refs.toggleButtonSize,
9135
+ [vars$u.revealButtonColor]: refs.placeholderTextColor,
9100
9136
  };
9101
9137
 
9102
9138
  var password$1 = /*#__PURE__*/Object.freeze({
@@ -9169,7 +9205,6 @@ var emailField$1 = /*#__PURE__*/Object.freeze({
9169
9205
  vars: vars$s
9170
9206
  });
9171
9207
 
9172
- const globalRefs$f = getThemeRefs(globals);
9173
9208
  const vars$r = TextAreaClass.cssVarList;
9174
9209
 
9175
9210
  const textArea = {
@@ -9200,10 +9235,6 @@ const textArea = {
9200
9235
  center: { [vars$r.inputTextAlign]: 'center' },
9201
9236
  },
9202
9237
 
9203
- _disabled: {
9204
- [vars$r.inputBackgroundColor]: globalRefs$f.colors.surface.light,
9205
- },
9206
-
9207
9238
  _readonly: {
9208
9239
  [vars$r.inputResizeType]: 'none',
9209
9240
  },
@@ -9275,7 +9306,7 @@ const switchToggle = {
9275
9306
  [vars$p.trackBorderStyle]: refs.borderStyle,
9276
9307
  [vars$p.trackBorderWidth]: refs.borderWidth, // var `trackBorderWidth` used outside the theme for `left` margin calculation
9277
9308
  [vars$p.trackBorderColor]: refs.borderColor,
9278
- [vars$p.trackBackgroundColor]: 'none',
9309
+ [vars$p.trackBackgroundColor]: refs.backgroundColor,
9279
9310
  [vars$p.trackBorderRadius]: globalRefs$e.radius.md,
9280
9311
  [vars$p.trackWidth]: '2.5em', // var `trackWidth` used outside the theme for `left` margin calculation
9281
9312
  [vars$p.trackHeight]: checkboxHeight,
@@ -9284,7 +9315,7 @@ const switchToggle = {
9284
9315
  [vars$p.knobRadius]: '50%',
9285
9316
  [vars$p.knobTopOffset]: '1px',
9286
9317
  [vars$p.knobLeftOffset]: knobMargin,
9287
- [vars$p.knobColor]: refs.valueTextColor,
9318
+ [vars$p.knobColor]: refs.labelTextColor,
9288
9319
  [vars$p.knobTransitionDuration]: '0.3s',
9289
9320
 
9290
9321
  [vars$p.labelTextColor]: refs.labelTextColor,
@@ -9296,7 +9327,6 @@ const switchToggle = {
9296
9327
 
9297
9328
  _checked: {
9298
9329
  [vars$p.trackBorderColor]: refs.borderColor,
9299
- [vars$p.trackBackgroundColor]: refs.backgroundColor,
9300
9330
  [vars$p.knobLeftOffset]: `calc(100% - var(${vars$p.knobSize}) - ${knobMargin})`,
9301
9331
  [vars$p.knobColor]: refs.valueTextColor,
9302
9332
  [vars$p.knobTextColor]: refs.valueTextColor,
@@ -9304,7 +9334,7 @@ const switchToggle = {
9304
9334
 
9305
9335
  _disabled: {
9306
9336
  [vars$p.knobColor]: globalRefs$e.colors.surface.light,
9307
- [vars$p.trackBorderColor]: globalRefs$e.colors.surface.main,
9337
+ [vars$p.trackBorderColor]: globalRefs$e.colors.surface.light,
9308
9338
  [vars$p.trackBackgroundColor]: globalRefs$e.colors.surface.main,
9309
9339
  [vars$p.labelTextColor]: refs.labelTextColor,
9310
9340
  _checked: {
@@ -9357,7 +9387,7 @@ const container = {
9357
9387
 
9358
9388
  [compVars$3.hostWidth]: '100%',
9359
9389
  [compVars$3.boxShadow]: 'none',
9360
- [compVars$3.backgroundColor]: globalRefs$d.colors.surface.light,
9390
+ [compVars$3.backgroundColor]: globalRefs$d.colors.surface.main,
9361
9391
  [compVars$3.color]: globalRefs$d.colors.surface.contrast,
9362
9392
  [compVars$3.borderRadius]: '0px',
9363
9393
  [compVars$3.hostDirection]: globalRefs$d.direction,
@@ -9528,10 +9558,10 @@ const text = {
9528
9558
 
9529
9559
  mode: {
9530
9560
  primary: {
9531
- [vars$k.textColor]: globalRefs$c.colors.primary.main,
9561
+ [vars$k.textColor]: globalRefs$c.colors.surface.contrast,
9532
9562
  },
9533
9563
  secondary: {
9534
- [vars$k.textColor]: globalRefs$c.colors.secondary.main,
9564
+ [vars$k.textColor]: globalRefs$c.colors.surface.dark,
9535
9565
  },
9536
9566
  error: {
9537
9567
  [vars$k.textColor]: globalRefs$c.colors.error.main,
@@ -9630,7 +9660,7 @@ const divider = {
9630
9660
  [compVars$2.flexDirection]: 'row',
9631
9661
  [compVars$2.alignSelf]: 'stretch',
9632
9662
  [compVars$2.hostWidth]: '100%',
9633
- [compVars$2.stripeColor]: globalRefs$a.colors.surface.main,
9663
+ [compVars$2.stripeColor]: globalRefs$a.colors.surface.light,
9634
9664
  [compVars$2.stripeColorOpacity]: '0.5',
9635
9665
  [compVars$2.stripeHorizontalThickness]: helperRefs$1.thickness,
9636
9666
  [compVars$2.labelTextWidth]: 'fit-content',
@@ -9712,7 +9742,7 @@ const loaderLinear = {
9712
9742
  [vars$g.barColor]: globalRefs$9.colors.surface.contrast,
9713
9743
  [vars$g.barWidth]: '20%',
9714
9744
 
9715
- [vars$g.barBackgroundColor]: globalRefs$9.colors.surface.main,
9745
+ [vars$g.barBackgroundColor]: globalRefs$9.colors.surface.light,
9716
9746
  [vars$g.barBorderRadius]: '4px',
9717
9747
 
9718
9748
  [vars$g.animationDuration]: '2s',
@@ -9826,7 +9856,7 @@ const comboBox = {
9826
9856
  [vars$e.inputBackgroundColor]: refs.backgroundColor,
9827
9857
  [vars$e.inputHorizontalPadding]: refs.horizontalPadding,
9828
9858
  [vars$e.inputHeight]: refs.inputHeight,
9829
- [vars$e.inputDropdownButtonColor]: globalRefs$7.colors.surface.main,
9859
+ [vars$e.inputDropdownButtonColor]: globalRefs$7.colors.surface.dark,
9830
9860
  [vars$e.inputDropdownButtonCursor]: 'pointer',
9831
9861
  [vars$e.inputDropdownButtonSize]: refs.toggleButtonSize,
9832
9862
  [vars$e.inputDropdownButtonOffset]: globalRefs$7.spacing.xs,
@@ -10032,20 +10062,25 @@ const vars$8 = ButtonSelectionGroupItemClass.cssVarList;
10032
10062
 
10033
10063
  const buttonSelectionGroupItem = {
10034
10064
  [vars$8.hostDirection]: 'inherit',
10035
- [vars$8.backgroundColor]: globalRefs$6.colors.surface.light,
10065
+ [vars$8.backgroundColor]: globalRefs$6.colors.surface.main,
10036
10066
  [vars$8.labelTextColor]: globalRefs$6.colors.surface.contrast,
10037
- [vars$8.borderColor]: globalRefs$6.colors.surface.main,
10067
+ [vars$8.borderColor]: globalRefs$6.colors.surface.light,
10038
10068
  [vars$8.borderStyle]: 'solid',
10039
10069
  [vars$8.borderRadius]: globalRefs$6.radius.sm,
10070
+ [vars$8.outlineColor]: 'transparent',
10040
10071
 
10041
10072
  _hover: {
10042
- [vars$8.backgroundColor]: '#f4f5f5', // can we take it from the palette?
10073
+ [vars$8.backgroundColor]: globalRefs$6.colors.surface.highlight,
10074
+ },
10075
+
10076
+ _focused: {
10077
+ [vars$8.outlineColor]: globalRefs$6.colors.surface.light,
10043
10078
  },
10044
10079
 
10045
10080
  _selected: {
10046
10081
  [vars$8.borderColor]: globalRefs$6.colors.surface.contrast,
10047
10082
  [vars$8.backgroundColor]: globalRefs$6.colors.surface.contrast,
10048
- [vars$8.labelTextColor]: globalRefs$6.colors.surface.light,
10083
+ [vars$8.labelTextColor]: globalRefs$6.colors.surface.main,
10049
10084
  },
10050
10085
  };
10051
10086
 
@@ -10096,7 +10131,7 @@ const globalRefs$4 = getThemeRefs(globals);
10096
10131
  const compVars = ModalClass.cssVarList;
10097
10132
 
10098
10133
  const modal = {
10099
- [compVars.overlayBackgroundColor]: globalRefs$4.colors.surface.light,
10134
+ [compVars.overlayBackgroundColor]: globalRefs$4.colors.surface.main,
10100
10135
  [compVars.overlayShadow]: globalRefs$4.shadow.wide['2xl'],
10101
10136
  [compVars.overlayWidth]: '540px',
10102
10137
  };
@@ -10119,28 +10154,28 @@ const grid = {
10119
10154
  [vars$4.hostHeight]: '100%',
10120
10155
  [vars$4.hostMinHeight]: '400px',
10121
10156
  [vars$4.fontWeight]: '400',
10122
- [vars$4.backgroundColor]: globalRefs$3.colors.surface.light,
10157
+ [vars$4.backgroundColor]: globalRefs$3.colors.surface.main,
10123
10158
 
10124
10159
  [vars$4.fontSize]: refs.fontSize,
10125
10160
  [vars$4.fontFamily]: refs.fontFamily,
10126
10161
 
10127
- [vars$4.sortIndicatorsColor]: globalRefs$3.colors.surface.main,
10162
+ [vars$4.sortIndicatorsColor]: globalRefs$3.colors.surface.light,
10128
10163
  [vars$4.activeSortIndicator]: globalRefs$3.colors.surface.dark,
10129
- [vars$4.resizeHandleColor]: globalRefs$3.colors.surface.main,
10164
+ [vars$4.resizeHandleColor]: globalRefs$3.colors.surface.light,
10130
10165
 
10131
- [vars$4.inputBorderWidth]: refs.borderWidth,
10132
- [vars$4.inputBorderStyle]: refs.borderStyle,
10133
- [vars$4.inputBorderRadius]: refs.borderRadius,
10134
- [vars$4.inputBorderColor]: 'transparent',
10166
+ [vars$4.borderWidth]: refs.borderWidth,
10167
+ [vars$4.borderStyle]: refs.borderStyle,
10168
+ [vars$4.borderRadius]: refs.borderRadius,
10169
+ [vars$4.borderColor]: 'transparent',
10135
10170
 
10136
10171
  [vars$4.headerRowTextColor]: globalRefs$3.colors.surface.dark,
10137
- [vars$4.separatorColor]: globalRefs$3.colors.surface.main,
10172
+ [vars$4.separatorColor]: globalRefs$3.colors.surface.light,
10138
10173
 
10139
10174
  [vars$4.valueTextColor]: globalRefs$3.colors.surface.contrast,
10140
- [vars$4.selectedBackgroundColor]: globalRefs$3.colors.primary.contrast,
10175
+ [vars$4.selectedBackgroundColor]: globalRefs$3.colors.surface.highlight,
10141
10176
 
10142
10177
  _bordered: {
10143
- [vars$4.inputBorderColor]: refs.borderColor,
10178
+ [vars$4.borderColor]: refs.borderColor,
10144
10179
  },
10145
10180
  };
10146
10181
 
@@ -10230,7 +10265,7 @@ const multiSelectComboBox = {
10230
10265
  [vars$2.inputHorizontalPadding]: refs.horizontalPadding,
10231
10266
  [vars$2.inputVerticalPadding]: refs.verticalPadding,
10232
10267
  [vars$2.inputHeight]: refs.inputHeight,
10233
- [vars$2.inputDropdownButtonColor]: globalRefs$1.colors.surface.main,
10268
+ [vars$2.inputDropdownButtonColor]: globalRefs$1.colors.surface.dark,
10234
10269
  [vars$2.inputDropdownButtonCursor]: 'pointer',
10235
10270
  [vars$2.inputDropdownButtonSize]: refs.toggleButtonSize,
10236
10271
  [vars$2.inputDropdownButtonOffset]: globalRefs$1.spacing.xs,
@@ -10238,7 +10273,7 @@ const multiSelectComboBox = {
10238
10273
  [vars$2.overlayItemPaddingInlineEnd]: globalRefs$1.spacing.lg,
10239
10274
  [vars$2.chipFontSize]: refs.chipFontSize,
10240
10275
  [vars$2.chipTextColor]: globalRefs$1.colors.surface.contrast,
10241
- [vars$2.chipBackgroundColor]: globalRefs$1.colors.surface.main,
10276
+ [vars$2.chipBackgroundColor]: globalRefs$1.colors.surface.light,
10242
10277
 
10243
10278
  _readonly: {
10244
10279
  [vars$2.inputDropdownButtonCursor]: 'default',
@@ -10299,7 +10334,7 @@ const badge = {
10299
10334
  default: {
10300
10335
  [vars$1.textColor]: globalRefs.colors.surface.dark,
10301
10336
  _bordered: {
10302
- [vars$1.borderColor]: globalRefs.colors.surface.main,
10337
+ [vars$1.borderColor]: globalRefs.colors.surface.light,
10303
10338
  },
10304
10339
  },
10305
10340
  primary: {
@@ -10383,5 +10418,49 @@ const vars = Object.keys(components).reduce(
10383
10418
  const defaultTheme = { globals, components: theme };
10384
10419
  const themeVars = { globals: vars$y, components: vars };
10385
10420
 
10386
- export { BadgeClass, ButtonClass, ButtonMultiSelectionGroupClass, ButtonSelectionGroupClass, CheckboxClass, ComboBoxClass, ContainerClass, DividerClass, EmailFieldClass, GridClass, ImageClass, LinkClass, LoaderLinearClass, LoaderRadialClass, LogoClass, ModalClass, MultiSelectComboBoxClass, NewPasswordClass, NotificationClass, NotpImageClass, NumberFieldClass, PasscodeClass, PasswordClass, PhoneFieldClass, PhoneFieldInputBoxClass, RecaptchaClass, SwitchToggleClass, TextAreaClass, TextClass, TextFieldClass, TotpImageClass, UploadFileClass, componentsThemeManager, createComponentsTheme, defaultTheme, genColor, globalsThemeToStyle, themeToStyle, themeVars };
10421
+ const colors = {
10422
+ surface: {
10423
+ main: '#181a1c',
10424
+ dark: '#bec4ca',
10425
+ light: '#555f68',
10426
+ highlight: '#22262a',
10427
+ contrast: '#f5f6f7',
10428
+ },
10429
+ primary: {
10430
+ main: '#1f80ff',
10431
+ dark: '#71aeff',
10432
+ light: '#004094',
10433
+ highlight: '#00214d',
10434
+ contrast: '#000000',
10435
+ },
10436
+ secondary: {
10437
+ main: '#a665eb',
10438
+ dark: '#b9a0f3',
10439
+ light: '#683ae6',
10440
+ highlight: '#361299',
10441
+ contrast: '#000000',
10442
+ },
10443
+ success: {
10444
+ main: '#27963c',
10445
+ dark: '#8bc3a2',
10446
+ light: '#004d0f',
10447
+ highlight: '#001f00',
10448
+ contrast: '#000000',
10449
+ },
10450
+ error: {
10451
+ main: '#f85249',
10452
+ dark: '#fa7c75',
10453
+ light: '#c51107',
10454
+ highlight: '#4a0603',
10455
+ contrast: '#000000',
10456
+ },
10457
+ };
10458
+
10459
+ const darkTheme = merge({}, defaultTheme, {
10460
+ globals: {
10461
+ colors,
10462
+ },
10463
+ });
10464
+
10465
+ export { BadgeClass, ButtonClass, ButtonMultiSelectionGroupClass, ButtonSelectionGroupClass, CheckboxClass, ComboBoxClass, ContainerClass, DividerClass, EmailFieldClass, GridClass, ImageClass, LinkClass, LoaderLinearClass, LoaderRadialClass, LogoClass, ModalClass, MultiSelectComboBoxClass, NewPasswordClass, NotificationClass, NotpImageClass, NumberFieldClass, PasscodeClass, PasswordClass, PhoneFieldClass, PhoneFieldInputBoxClass, RecaptchaClass, SwitchToggleClass, TextAreaClass, TextClass, TextFieldClass, TotpImageClass, UploadFileClass, componentsThemeManager, createComponentsTheme, darkTheme, defaultTheme, genColor, globalsThemeToStyle, themeToStyle, themeVars };
10387
10466
  //# sourceMappingURL=index.esm.js.map