@uniformdev/design-system 19.161.2-alpha.1 → 19.162.2-alpha.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -66,6 +66,10 @@ var Theme = ({ disableReset = false, disableGlobalReset = false }) => {
66
66
 
67
67
  --action-destructive-default: var(--brand-secondary-5);
68
68
  --action-destructive-hover: #e07571;
69
+ --action-destructive-active: rbga(210, 50, 45, 0.05); /* #d2322d */
70
+ --action-destructive-disabled: #f87171;
71
+
72
+
69
73
 
70
74
  /* tertiary action */
71
75
  --tertiary-action-default: var(--gray-700);
@@ -934,16 +938,16 @@ var buttonPrimary = css8`
934
938
  })}
935
939
  `;
936
940
  var buttonDestructive = css8`
937
- background: var(--brand-secondary-5);
941
+ background: var(--action-destructive-default);
938
942
  color: var(--white);
939
943
 
940
944
  &:disabled {
941
- background: var(--gray-300);
942
945
  color: var(--white);
946
+ opacity: var(--opacity-50);
943
947
  }
944
948
 
945
949
  ${buttonRippleEffect({
946
- hoverColor: "var(--brand-secondary-5)",
950
+ hoverColor: "var(--action-destructive-default)",
947
951
  activeColor: "var(--action-destructive-hover)"
948
952
  })}
949
953
  `;
@@ -1021,19 +1025,20 @@ var buttonGhost = css8`
1021
1025
  `;
1022
1026
  var buttonGhostDestructive = css8`
1023
1027
  background: transparent;
1024
- color: var(--brand-secondary-5);
1028
+ color: var(--action-destructive-default);
1025
1029
 
1026
1030
  &:hover {
1027
- color: var(--brand-secondary-5);
1031
+ outline: 1px solid var(--action-destructive-hover);
1032
+ color: var(--action-destructive-hover);
1028
1033
  }
1029
1034
 
1030
1035
  &:disabled {
1031
1036
  background: transparent;
1032
- border-color: var(--gray-400);
1033
- color: var(--gray-400);
1037
+ color: var(--action-destructive-disabled);
1038
+ opacity: var(--opacity-50);
1034
1039
  }
1035
1040
 
1036
- ${buttonRippleEffect({ hoverColor: "var(--white)", activeColor: "var(--gray-100)" })}
1041
+ ${buttonRippleEffect({ hoverColor: "var(--white)", activeColor: "var(--action-destructive-active)" })}
1037
1042
  `;
1038
1043
  var buttonTertiary = css8`
1039
1044
  background: var(--tertiary-action-default);
@@ -1150,7 +1155,7 @@ var toastContainerStyles = css10`
1150
1155
  ${functionalColors}
1151
1156
 
1152
1157
  --toastify-color-light: white;
1153
- --toastify-color-info: var(--utility-caution-icon);
1158
+ --toastify-color-info: var(--utility-info-icon);
1154
1159
  --toastify-color-success: var(--utility-success-icon);
1155
1160
  --toastify-color-warning: var(--utility-caution-icon);
1156
1161
  --toastify-color-error: var(--utility-danger-icon);
@@ -13116,10 +13121,11 @@ function convertComboBoxGroupsToSelectableGroups(args) {
13116
13121
  return { groupedOptions, selectedOptions };
13117
13122
  }
13118
13123
  function getComboBoxSelectedSelectableGroups(selectedValues) {
13119
- const selectedOptionValues = selectedValues.flatMap(
13124
+ const selectedValuesNormalized = selectedValues ? Array.isArray(selectedValues) ? selectedValues : [selectedValues] : null;
13125
+ const selectedOptionValues = selectedValuesNormalized == null ? void 0 : selectedValuesNormalized.flatMap(
13120
13126
  (selectedValue) => Array.isArray(selectedValue.value) ? selectedValue.value : [selectedValue.value]
13121
13127
  );
13122
- return new Set(selectedOptionValues.filter((value) => value !== void 0));
13128
+ return new Set(selectedOptionValues == null ? void 0 : selectedOptionValues.filter((value) => value !== void 0));
13123
13129
  }
13124
13130
  function flatMapOptionValues(options) {
13125
13131
  return options.flatMap((option) => {
package/dist/index.d.mts CHANGED
@@ -2,7 +2,7 @@ import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-na
2
2
  import { DecoratorFn } from '@storybook/react';
3
3
  import * as React$1 from 'react';
4
4
  import React__default, { RefObject, HTMLAttributes, MutableRefObject, ReactNode, ImgHTMLAttributes, SVGProps, InputHTMLAttributes, CSSProperties, Ref, PropsWithChildren, ButtonHTMLAttributes, FocusEventHandler, ChangeEvent, HtmlHTMLAttributes } from 'react';
5
- import { GroupBase, Props, MultiValue } from 'react-select';
5
+ import { GroupBase, Props, MultiValue, SingleValue } from 'react-select';
6
6
  export { ActionMeta, FormatOptionLabelContext, FormatOptionLabelMeta, GetOptionLabel, GetOptionValue, GroupBase, GroupHeadingProps, GroupProps, MenuListProps, MenuPlacement, MultiValue, MultiValueGenericProps, MultiValueProps, MultiValueRemoveProps, OnChangeValue, OptionContext, OptionProps, Options, OptionsOrGroups } from 'react-select';
7
7
  import * as _emotion_react from '@emotion/react';
8
8
  import { SerializedStyles } from '@emotion/react';
@@ -21949,7 +21949,7 @@ declare function convertComboBoxGroupsToSelectableGroups(args: ConvertComboBoxGr
21949
21949
  * Finds all selected values in a combo box where there are multiple selectable groups
21950
21950
  * (and selecting a group should select all of its virtual children)
21951
21951
  */
21952
- declare function getComboBoxSelectedSelectableGroups(selectedValues: MultiValue<ComboBoxSelectableItem>): Set<string>;
21952
+ declare function getComboBoxSelectedSelectableGroups(selectedValues: MultiValue<ComboBoxSelectableItem> | SingleValue<ComboBoxSelectableItem>): Set<string>;
21953
21953
 
21954
21954
  type InputInlineSelectOption = {
21955
21955
  /** sets the display name of the option */
@@ -22297,7 +22297,7 @@ declare const Textarea: React$1.ForwardRefExoticComponent<React$1.TextareaHTMLAt
22297
22297
 
22298
22298
  type WarningMessageProps = React.HTMLAttributes<HTMLSpanElement> & {
22299
22299
  /** sets the error message value */
22300
- message?: string;
22300
+ message?: ReactNode;
22301
22301
  /** sets the test id for test automation (optional) */
22302
22302
  testId?: string;
22303
22303
  };
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-na
2
2
  import { DecoratorFn } from '@storybook/react';
3
3
  import * as React$1 from 'react';
4
4
  import React__default, { RefObject, HTMLAttributes, MutableRefObject, ReactNode, ImgHTMLAttributes, SVGProps, InputHTMLAttributes, CSSProperties, Ref, PropsWithChildren, ButtonHTMLAttributes, FocusEventHandler, ChangeEvent, HtmlHTMLAttributes } from 'react';
5
- import { GroupBase, Props, MultiValue } from 'react-select';
5
+ import { GroupBase, Props, MultiValue, SingleValue } from 'react-select';
6
6
  export { ActionMeta, FormatOptionLabelContext, FormatOptionLabelMeta, GetOptionLabel, GetOptionValue, GroupBase, GroupHeadingProps, GroupProps, MenuListProps, MenuPlacement, MultiValue, MultiValueGenericProps, MultiValueProps, MultiValueRemoveProps, OnChangeValue, OptionContext, OptionProps, Options, OptionsOrGroups } from 'react-select';
7
7
  import * as _emotion_react from '@emotion/react';
8
8
  import { SerializedStyles } from '@emotion/react';
@@ -21949,7 +21949,7 @@ declare function convertComboBoxGroupsToSelectableGroups(args: ConvertComboBoxGr
21949
21949
  * Finds all selected values in a combo box where there are multiple selectable groups
21950
21950
  * (and selecting a group should select all of its virtual children)
21951
21951
  */
21952
- declare function getComboBoxSelectedSelectableGroups(selectedValues: MultiValue<ComboBoxSelectableItem>): Set<string>;
21952
+ declare function getComboBoxSelectedSelectableGroups(selectedValues: MultiValue<ComboBoxSelectableItem> | SingleValue<ComboBoxSelectableItem>): Set<string>;
21953
21953
 
21954
21954
  type InputInlineSelectOption = {
21955
21955
  /** sets the display name of the option */
@@ -22297,7 +22297,7 @@ declare const Textarea: React$1.ForwardRefExoticComponent<React$1.TextareaHTMLAt
22297
22297
 
22298
22298
  type WarningMessageProps = React.HTMLAttributes<HTMLSpanElement> & {
22299
22299
  /** sets the error message value */
22300
- message?: string;
22300
+ message?: ReactNode;
22301
22301
  /** sets the test id for test automation (optional) */
22302
22302
  testId?: string;
22303
22303
  };
package/dist/index.js CHANGED
@@ -1673,6 +1673,10 @@ var Theme = ({ disableReset = false, disableGlobalReset = false }) => {
1673
1673
 
1674
1674
  --action-destructive-default: var(--brand-secondary-5);
1675
1675
  --action-destructive-hover: #e07571;
1676
+ --action-destructive-active: rbga(210, 50, 45, 0.05); /* #d2322d */
1677
+ --action-destructive-disabled: #f87171;
1678
+
1679
+
1676
1680
 
1677
1681
  /* tertiary action */
1678
1682
  --tertiary-action-default: var(--gray-700);
@@ -2572,16 +2576,16 @@ var buttonPrimary = import_react10.css`
2572
2576
  })}
2573
2577
  `;
2574
2578
  var buttonDestructive = import_react10.css`
2575
- background: var(--brand-secondary-5);
2579
+ background: var(--action-destructive-default);
2576
2580
  color: var(--white);
2577
2581
 
2578
2582
  &:disabled {
2579
- background: var(--gray-300);
2580
2583
  color: var(--white);
2584
+ opacity: var(--opacity-50);
2581
2585
  }
2582
2586
 
2583
2587
  ${buttonRippleEffect({
2584
- hoverColor: "var(--brand-secondary-5)",
2588
+ hoverColor: "var(--action-destructive-default)",
2585
2589
  activeColor: "var(--action-destructive-hover)"
2586
2590
  })}
2587
2591
  `;
@@ -2659,19 +2663,20 @@ var buttonGhost = import_react10.css`
2659
2663
  `;
2660
2664
  var buttonGhostDestructive = import_react10.css`
2661
2665
  background: transparent;
2662
- color: var(--brand-secondary-5);
2666
+ color: var(--action-destructive-default);
2663
2667
 
2664
2668
  &:hover {
2665
- color: var(--brand-secondary-5);
2669
+ outline: 1px solid var(--action-destructive-hover);
2670
+ color: var(--action-destructive-hover);
2666
2671
  }
2667
2672
 
2668
2673
  &:disabled {
2669
2674
  background: transparent;
2670
- border-color: var(--gray-400);
2671
- color: var(--gray-400);
2675
+ color: var(--action-destructive-disabled);
2676
+ opacity: var(--opacity-50);
2672
2677
  }
2673
2678
 
2674
- ${buttonRippleEffect({ hoverColor: "var(--white)", activeColor: "var(--gray-100)" })}
2679
+ ${buttonRippleEffect({ hoverColor: "var(--white)", activeColor: "var(--action-destructive-active)" })}
2675
2680
  `;
2676
2681
  var buttonTertiary = import_react10.css`
2677
2682
  background: var(--tertiary-action-default);
@@ -2799,7 +2804,7 @@ var toastContainerStyles = import_react12.css`
2799
2804
  ${functionalColors}
2800
2805
 
2801
2806
  --toastify-color-light: white;
2802
- --toastify-color-info: var(--utility-caution-icon);
2807
+ --toastify-color-info: var(--utility-info-icon);
2803
2808
  --toastify-color-success: var(--utility-success-icon);
2804
2809
  --toastify-color-warning: var(--utility-caution-icon);
2805
2810
  --toastify-color-error: var(--utility-danger-icon);
@@ -14830,10 +14835,11 @@ function convertComboBoxGroupsToSelectableGroups(args) {
14830
14835
  return { groupedOptions, selectedOptions };
14831
14836
  }
14832
14837
  function getComboBoxSelectedSelectableGroups(selectedValues) {
14833
- const selectedOptionValues = selectedValues.flatMap(
14838
+ const selectedValuesNormalized = selectedValues ? Array.isArray(selectedValues) ? selectedValues : [selectedValues] : null;
14839
+ const selectedOptionValues = selectedValuesNormalized == null ? void 0 : selectedValuesNormalized.flatMap(
14834
14840
  (selectedValue) => Array.isArray(selectedValue.value) ? selectedValue.value : [selectedValue.value]
14835
14841
  );
14836
- return new Set(selectedOptionValues.filter((value) => value !== void 0));
14842
+ return new Set(selectedOptionValues == null ? void 0 : selectedOptionValues.filter((value) => value !== void 0));
14837
14843
  }
14838
14844
  function flatMapOptionValues(options) {
14839
14845
  return options.flatMap((option) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/design-system",
3
- "version": "19.161.2-alpha.1+d59167950a",
3
+ "version": "19.162.2-alpha.11+5544f3f2ca",
4
4
  "description": "Uniform design system components",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -24,8 +24,8 @@
24
24
  "@storybook/react": "6.5.16",
25
25
  "@types/react": "18.2.40",
26
26
  "@types/react-dom": "18.2.17",
27
- "@uniformdev/canvas": "^19.161.2-alpha.1+d59167950a",
28
- "@uniformdev/richtext": "^19.161.2-alpha.1+d59167950a",
27
+ "@uniformdev/canvas": "^19.162.2-alpha.11+5544f3f2ca",
28
+ "@uniformdev/richtext": "^19.162.2-alpha.11+5544f3f2ca",
29
29
  "autoprefixer": "10.4.16",
30
30
  "hygen": "6.2.11",
31
31
  "postcss": "8.4.38",
@@ -72,5 +72,5 @@
72
72
  "publishConfig": {
73
73
  "access": "public"
74
74
  },
75
- "gitHead": "d59167950aa13607d01052f435e2e6b440e8cee6"
75
+ "gitHead": "5544f3f2ca31829767dbe8511c21b1192a811443"
76
76
  }