@dnanpm/styleguide 3.9.6 → 3.9.7

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 (73) hide show
  1. package/build/cjs/components/AccordionItem/AccordionItem.d.ts +5 -1
  2. package/build/cjs/components/AccordionItem/AccordionItem.js +17 -7
  3. package/build/cjs/components/ButtonIcon/ButtonIcon.d.ts +6 -0
  4. package/build/cjs/components/ButtonIcon/ButtonIcon.js +2 -2
  5. package/build/cjs/components/EmptyState/EmptyState.d.ts +4 -0
  6. package/build/cjs/components/EmptyState/EmptyState.js +2 -2
  7. package/build/cjs/components/Expander/Expander.js +8 -2
  8. package/build/cjs/components/Footer/Components/FooterComponents.js +2 -0
  9. package/build/cjs/components/Footer/Footer.js +4 -0
  10. package/build/cjs/components/Icon/Icon.d.ts +9 -1
  11. package/build/cjs/components/Icon/Icon.js +2 -2
  12. package/build/cjs/components/MainHeaderNavigation/ChildComponents/BusinessMenu.js +1 -0
  13. package/build/cjs/components/MainHeaderNavigation/ChildComponents/MainNavTooltipMenu.d.ts +7 -4
  14. package/build/cjs/components/MainHeaderNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.d.ts +3 -0
  15. package/build/cjs/components/MainHeaderNavigation/MainHeaderNavigation.d.ts +5 -5
  16. package/build/cjs/components/MainHeaderNavigation/context/NavContext.d.ts +5 -5
  17. package/build/cjs/components/MainHeaderNavigation/globalNavStyles.d.ts +27 -0
  18. package/build/cjs/components/MainNavigation/ChildComponents/BusinessMenu.js +1 -0
  19. package/build/cjs/components/MainNavigation/ChildComponents/HeaderNavigationElements.d.ts +3 -0
  20. package/build/cjs/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.d.ts +3 -0
  21. package/build/cjs/components/MainNavigation/globalNavStyles.d.ts +12 -0
  22. package/build/cjs/components/PixelLoader/PixelLoader.d.ts +4 -0
  23. package/build/cjs/components/PixelLoader/PixelLoader.js +1 -0
  24. package/build/cjs/components/PriorityNavigationItem/PriorityNavigationItem.js +1 -0
  25. package/build/cjs/components/ProgressIndicator/ProgressIndicator.d.ts +8 -0
  26. package/build/cjs/components/ProgressIndicator/ProgressIndicator.js +12 -5
  27. package/build/cjs/components/SecondaryNavigation/SecondaryNavigation.js +1 -0
  28. package/build/cjs/components/Selectbox/Selectbox.d.ts +18 -1
  29. package/build/cjs/components/Selectbox/Selectbox.js +18 -11
  30. package/build/cjs/components/TooltipMenu/ChildComponents/TooltipMenuExportedStyles.d.ts +6 -0
  31. package/build/cjs/themes/globalStyles.d.ts +9 -0
  32. package/build/cjs/themes/globalStyles.js +13 -4
  33. package/build/cjs/themes/styled.d.ts +21 -0
  34. package/build/cjs/themes/theme.d.ts +3 -0
  35. package/build/cjs/themes/themeComponents/color.d.ts +3 -0
  36. package/build/cjs/themes/themeComponents/color.js +3 -0
  37. package/build/es/components/AccordionItem/AccordionItem.d.ts +5 -1
  38. package/build/es/components/AccordionItem/AccordionItem.js +17 -7
  39. package/build/es/components/ButtonIcon/ButtonIcon.d.ts +6 -0
  40. package/build/es/components/ButtonIcon/ButtonIcon.js +2 -2
  41. package/build/es/components/EmptyState/EmptyState.d.ts +4 -0
  42. package/build/es/components/EmptyState/EmptyState.js +2 -2
  43. package/build/es/components/Expander/Expander.js +8 -2
  44. package/build/es/components/Footer/Components/FooterComponents.js +2 -0
  45. package/build/es/components/Footer/Footer.js +4 -0
  46. package/build/es/components/Icon/Icon.d.ts +9 -1
  47. package/build/es/components/Icon/Icon.js +2 -2
  48. package/build/es/components/MainHeaderNavigation/ChildComponents/BusinessMenu.js +1 -0
  49. package/build/es/components/MainHeaderNavigation/ChildComponents/MainNavTooltipMenu.d.ts +7 -4
  50. package/build/es/components/MainHeaderNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.d.ts +3 -0
  51. package/build/es/components/MainHeaderNavigation/MainHeaderNavigation.d.ts +5 -5
  52. package/build/es/components/MainHeaderNavigation/context/NavContext.d.ts +5 -5
  53. package/build/es/components/MainHeaderNavigation/globalNavStyles.d.ts +27 -0
  54. package/build/es/components/MainNavigation/ChildComponents/BusinessMenu.js +1 -0
  55. package/build/es/components/MainNavigation/ChildComponents/HeaderNavigationElements.d.ts +3 -0
  56. package/build/es/components/MainNavigation/ChildComponents/MainNavTooltipMenuExportedStyles.d.ts +3 -0
  57. package/build/es/components/MainNavigation/globalNavStyles.d.ts +12 -0
  58. package/build/es/components/PixelLoader/PixelLoader.d.ts +4 -0
  59. package/build/es/components/PixelLoader/PixelLoader.js +1 -0
  60. package/build/es/components/PriorityNavigationItem/PriorityNavigationItem.js +1 -0
  61. package/build/es/components/ProgressIndicator/ProgressIndicator.d.ts +8 -0
  62. package/build/es/components/ProgressIndicator/ProgressIndicator.js +12 -5
  63. package/build/es/components/SecondaryNavigation/SecondaryNavigation.js +1 -0
  64. package/build/es/components/Selectbox/Selectbox.d.ts +18 -1
  65. package/build/es/components/Selectbox/Selectbox.js +18 -11
  66. package/build/es/components/TooltipMenu/ChildComponents/TooltipMenuExportedStyles.d.ts +6 -0
  67. package/build/es/themes/globalStyles.d.ts +9 -0
  68. package/build/es/themes/globalStyles.js +13 -4
  69. package/build/es/themes/styled.d.ts +21 -0
  70. package/build/es/themes/theme.d.ts +3 -0
  71. package/build/es/themes/themeComponents/color.d.ts +3 -0
  72. package/build/es/themes/themeComponents/color.js +3 -0
  73. package/package.json +5 -5
@@ -22,6 +22,9 @@ export declare const LogoLink: import("styled-components").StyledComponent<"a",
22
22
  sky: string;
23
23
  orange: string;
24
24
  };
25
+ active: {
26
+ pink: string;
27
+ };
25
28
  hover: {
26
29
  pink: string;
27
30
  };
@@ -185,6 +188,9 @@ export declare const DesktopMenuContainer: import("styled-components").StyledCom
185
188
  sky: string;
186
189
  orange: string;
187
190
  };
191
+ active: {
192
+ pink: string;
193
+ };
188
194
  hover: {
189
195
  pink: string;
190
196
  };
@@ -350,6 +356,9 @@ export declare const MobileMenuButton: import("styled-components").StyledCompone
350
356
  sky: string;
351
357
  orange: string;
352
358
  };
359
+ active: {
360
+ pink: string;
361
+ };
353
362
  hover: {
354
363
  pink: string;
355
364
  };
@@ -513,6 +522,9 @@ export declare const HeaderIconContainer: import("styled-components").StyledComp
513
522
  sky: string;
514
523
  orange: string;
515
524
  };
525
+ active: {
526
+ pink: string;
527
+ };
516
528
  hover: {
517
529
  pink: string;
518
530
  };
@@ -678,6 +690,9 @@ export declare const MenuItem: import("styled-components").StyledComponent<"li",
678
690
  sky: string;
679
691
  orange: string;
680
692
  };
693
+ active: {
694
+ pink: string;
695
+ };
681
696
  hover: {
682
697
  pink: string;
683
698
  };
@@ -844,6 +859,9 @@ export declare const MenuLink: import("styled-components").StyledComponent<"a",
844
859
  sky: string;
845
860
  orange: string;
846
861
  };
862
+ active: {
863
+ pink: string;
864
+ };
847
865
  hover: {
848
866
  pink: string;
849
867
  };
@@ -1009,6 +1027,9 @@ export declare const MenuLinkWithChildren: import("styled-components").StyledCom
1009
1027
  sky: string;
1010
1028
  orange: string;
1011
1029
  };
1030
+ active: {
1031
+ pink: string;
1032
+ };
1012
1033
  hover: {
1013
1034
  pink: string;
1014
1035
  };
@@ -1174,6 +1195,9 @@ export declare const MenuList: import("styled-components").StyledComponent<"ul",
1174
1195
  sky: string;
1175
1196
  orange: string;
1176
1197
  };
1198
+ active: {
1199
+ pink: string;
1200
+ };
1177
1201
  hover: {
1178
1202
  pink: string;
1179
1203
  };
@@ -1339,6 +1363,9 @@ export declare const FeaturedBlock: import("styled-components").StyledComponent<
1339
1363
  sky: string;
1340
1364
  orange: string;
1341
1365
  };
1366
+ active: {
1367
+ pink: string;
1368
+ };
1342
1369
  hover: {
1343
1370
  pink: string;
1344
1371
  };
@@ -7,6 +7,7 @@ import NavContext from '../context/NavContext.js';
7
7
  const BusinessMenuLink = styled.a `
8
8
  color: ${p => (p.isActive ? theme.color.text.pink : theme.color.text.black)};
9
9
  display: block;
10
+ text-decoration: none;
10
11
  margin: ${p => !p.isMobileMenu
11
12
  ? `0 ${getMultipliedSize(theme.base.baseWidth, 1)}`
12
13
  : `${getMultipliedSize(theme.base.baseWidth, 1.25)} ${getMultipliedSize(theme.base.baseWidth, 2)} `};
@@ -24,6 +24,9 @@ export declare const IconContainer: import("styled-components").StyledComponent<
24
24
  sky: string;
25
25
  orange: string;
26
26
  };
27
+ active: {
28
+ pink: string;
29
+ };
27
30
  hover: {
28
31
  pink: string;
29
32
  };
@@ -22,6 +22,9 @@ declare const TooltipWrapper: import("styled-components").StyledComponent<"butto
22
22
  sky: string;
23
23
  orange: string;
24
24
  };
25
+ active: {
26
+ pink: string;
27
+ };
25
28
  hover: {
26
29
  pink: string;
27
30
  };
@@ -22,6 +22,9 @@ export declare const MenuItem: import("styled-components").StyledComponent<"li",
22
22
  sky: string;
23
23
  orange: string;
24
24
  };
25
+ active: {
26
+ pink: string;
27
+ };
25
28
  hover: {
26
29
  pink: string;
27
30
  };
@@ -187,6 +190,9 @@ export declare const MenuLink: import("styled-components").StyledComponent<"a",
187
190
  sky: string;
188
191
  orange: string;
189
192
  };
193
+ active: {
194
+ pink: string;
195
+ };
190
196
  hover: {
191
197
  pink: string;
192
198
  };
@@ -352,6 +358,9 @@ export declare const MenuLinkWithChildren: import("styled-components").StyledCom
352
358
  sky: string;
353
359
  orange: string;
354
360
  };
361
+ active: {
362
+ pink: string;
363
+ };
355
364
  hover: {
356
365
  pink: string;
357
366
  };
@@ -518,6 +527,9 @@ export declare const MenuList: import("styled-components").StyledComponent<"ul",
518
527
  sky: string;
519
528
  orange: string;
520
529
  };
530
+ active: {
531
+ pink: string;
532
+ };
521
533
  hover: {
522
534
  pink: string;
523
535
  };
@@ -14,6 +14,10 @@ interface Props {
14
14
  * Allows to pass testid string for testing purposes
15
15
  */
16
16
  'data-testid'?: string;
17
+ /**
18
+ * Allows to pass a label for screen readers
19
+ */
20
+ label?: string;
17
21
  }
18
22
  /** @visibleName Pixel Loader */
19
23
  declare const PixelLoader: ({ className, "data-testid": dataTestId, ...props }: Props) => React.JSX.Element;
@@ -33,6 +33,7 @@ const Pixel = styled.div `
33
33
  const PixelLoader = (_a) => {
34
34
  var { className, 'data-testid': dataTestId } = _a, props = __rest(_a, ["className", 'data-testid']);
35
35
  return (React__default.createElement(PixelLoaderWrapper, { className: className, "data-testid": dataTestId },
36
+ props.label && React__default.createElement("span", { className: "visually-hidden" }, props.label),
36
37
  React__default.createElement(Pixel, { color: props.color, delay: "-0.27" }),
37
38
  React__default.createElement(Pixel, { color: props.color, delay: "-0.18" }),
38
39
  React__default.createElement(Pixel, { color: props.color, delay: "-0.09" }),
@@ -36,6 +36,7 @@ const Element = styled.li `
36
36
  `}
37
37
 
38
38
  & > a {
39
+ text-decoration: none;
39
40
  &:focus-visible {
40
41
  border-radius: ${theme.radius.s};
41
42
  border: 2px solid ${theme.color.focus.light};
@@ -34,6 +34,14 @@ interface Props {
34
34
  * Allows to pass testid string for testing purposes
35
35
  */
36
36
  'data-testid'?: string;
37
+ /**
38
+ * Screen reader label describing the purpose of the ProgressIndicator,
39
+ */
40
+ ariaLabel?: string;
41
+ /**
42
+ * Screen reader label describing the completed step,
43
+ */
44
+ completedStepLabel?: string;
37
45
  }
38
46
  /** @visibleName Progress Indicator */
39
47
  declare const ProgressIndicator: ({ activeStep, "data-testid": dataTestId, ...props }: Props) => React.JSX.Element;
@@ -86,14 +86,19 @@ const ProgressIndicatorItemNumber = styled.div `
86
86
  ${({ isActive, isError }) => getBackgroundColor({ isActive, isError })}
87
87
  `;
88
88
  const ProgressIndicatorItemLabel = styled.div `
89
- display: none;
90
89
  font-size: ${({ small }) => (small ? theme.fontSize.xs : theme.fontSize.s)};
91
90
  line-height: ${({ small }) => (small ? theme.lineHeight.xs : theme.lineHeight.s)};
92
91
  font-weight: ${theme.fontWeight.bold};
93
92
  color: ${({ isActive }) => (isActive ? theme.color.text.black : theme.color.text.gray)};
94
93
 
95
94
  ${media.sm `
96
- display: initial;
95
+ &.visually-hidden {
96
+ width: auto;
97
+ height: auto;
98
+ overflow: visible;
99
+ clip: auto;
100
+ opacity: 1;
101
+ }
97
102
  `}
98
103
  `;
99
104
  /** @visibleName Progress Indicator */
@@ -115,10 +120,12 @@ const ProgressIndicator = (_a) => {
115
120
  };
116
121
  return (React__default.createElement(ProgressIndicatorItem, { key: id, small: props.small, "aria-current": isActive ? 'step' : 'false' },
117
122
  index > 0 && (React__default.createElement(ProgressIndicatorItemConnector, { small: props.small, isActive: isActive, isCompleted: isCompleted })),
118
- React__default.createElement(ProgressIndicatorItemNumber, { small: props.small, onClick: handleClick, isActive: isActive, isCompleted: isCompleted, isError: isError, isClickable: isCompleted && Boolean(props.onStepClick) }, isCompleted || isError ? (React__default.createElement(Icon, { icon: isError ? Warning : Check, color: isError ? theme.color.text.white : theme.color.text.pink, size: "1rem" })) : (stepNumber)),
119
- label && (React__default.createElement(ProgressIndicatorItemLabel, { small: props.small, onClick: handleClick, isActive: isActive }, label))));
123
+ React__default.createElement(ProgressIndicatorItemNumber, { small: props.small, onClick: handleClick, isActive: isActive, isCompleted: isCompleted, isError: isError, isClickable: isCompleted && Boolean(props.onStepClick) }, isCompleted || isError ? (React__default.createElement(React__default.Fragment, null,
124
+ isCompleted && props.completedStepLabel && (React__default.createElement("span", { className: "visually-hidden" }, props.completedStepLabel)),
125
+ React__default.createElement(Icon, { icon: isError ? Warning : Check, color: isError ? theme.color.text.white : theme.color.text.pink, size: "1rem" }))) : (stepNumber)),
126
+ label && (React__default.createElement(ProgressIndicatorItemLabel, { small: props.small, onClick: handleClick, isActive: isActive, className: "visually-hidden" }, label))));
120
127
  });
121
- return (React__default.createElement(ProgressIndicatorWrapper, { className: props.className, "data-testid": dataTestId }, progressIndicatorItems));
128
+ return (React__default.createElement(ProgressIndicatorWrapper, { className: props.className, "data-testid": dataTestId, "aria-label": props.ariaLabel, role: "list" }, progressIndicatorItems));
122
129
  };
123
130
 
124
131
  export { ProgressIndicator as default };
@@ -88,6 +88,7 @@ const SecondaryNavigationListElement = styled.li `
88
88
  margin: 0 ${getMultipliedSize(theme.base.baseWidth, 2)};
89
89
 
90
90
  a {
91
+ text-decoration: none;
91
92
  padding: 1rem 0;
92
93
  justify-content: start;
93
94
  color: ${({ isActive }) => (isActive ? theme.color.text.pink : theme.color.text.black)};
@@ -1,5 +1,6 @@
1
+ import type { ComponentType } from 'react';
1
2
  import React from 'react';
2
- import type { GroupBase, OptionsOrGroups, Props as ReactSelectProps } from 'react-select';
3
+ import type { GroupBase, OptionProps, OptionsOrGroups, Props as ReactSelectProps } from 'react-select';
3
4
  interface SelectboxOption {
4
5
  label: string;
5
6
  value: string;
@@ -114,6 +115,22 @@ interface Props<Option extends SelectboxOption = SelectboxOption, IsMulti extend
114
115
  * Allows to pass testid string for testing purposes
115
116
  */
116
117
  'data-testid'?: string;
118
+ /**
119
+ * Screen reader label describing the purpose of the SelectBox,
120
+ */
121
+ ariaLabel?: string;
122
+ /**
123
+ * Allows to pass a screen reader label for the loading indicator
124
+ */
125
+ loadingLabel?: string;
126
+ /**
127
+ * Allows to pass custom styles
128
+ */
129
+ styles?: ReactSelectProps<Option, IsMulti, Group>['styles'];
130
+ /**
131
+ * Allows to pass custom option component
132
+ */
133
+ optionComponent?: ComponentType<OptionProps<Option, IsMulti, Group>>;
117
134
  }
118
135
  declare const SelectBox: <Option extends SelectboxOption = SelectboxOption, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ noOptionsText, "data-testid": dataTestId, ...props }: Props<Option, IsMulti, Group>) => React.JSX.Element;
119
136
  export default SelectBox;
@@ -41,7 +41,7 @@ const getStyles = () => ({
41
41
  color: theme.color.text.black,
42
42
  backgroundColor: theme.color.background.sand.E02,
43
43
  } })),
44
- placeholder: styles => (Object.assign(Object.assign({}, styles), { color: theme.color.text.black + theme.color.transparency.T40 })),
44
+ placeholder: styles => (Object.assign(Object.assign({}, styles), { color: theme.color.text.black + theme.color.transparency.T50 })),
45
45
  indicatorSeparator: styles => (Object.assign(Object.assign({}, styles), { width: 0, backgroundColor: 'transparent', border: 'none' })),
46
46
  clearIndicator: styles => (Object.assign(Object.assign({}, styles), { cursor: 'pointer', color: theme.color.text.black, padding: 0, marginLeft: getMultipliedSize(theme.base.baseHeight, 1), ':hover': {
47
47
  color: theme.color.text.black,
@@ -76,8 +76,15 @@ const IndicatorsContainer = (_a) => {
76
76
  };
77
77
  const ClearIndicator = (_a) => {
78
78
  var clearIndicatorProps = __rest(_a, []);
79
- return components.ClearIndicator && (React__default.createElement(components.ClearIndicator, { clearValue: clearIndicatorProps.clearValue, cx: clearIndicatorProps.cx, getClassNames: clearIndicatorProps.getClassNames, getStyles: clearIndicatorProps.getStyles, getValue: clearIndicatorProps.getValue, hasValue: clearIndicatorProps.hasValue, innerProps: clearIndicatorProps.innerProps, isFocused: clearIndicatorProps.isFocused, isMulti: clearIndicatorProps.isMulti, isRtl: clearIndicatorProps.isRtl, options: clearIndicatorProps.options, selectOption: clearIndicatorProps.selectOption, selectProps: clearIndicatorProps.selectProps, setValue: clearIndicatorProps.setValue, theme: clearIndicatorProps.theme },
80
- React__default.createElement(Icon, { icon: Close })));
79
+ const onHandleKeyDown = (e) => {
80
+ if (e.key === 'Enter' || e.key === ' ') {
81
+ e.preventDefault();
82
+ e.stopPropagation();
83
+ clearIndicatorProps.clearValue();
84
+ }
85
+ };
86
+ return (components.ClearIndicator && (React__default.createElement(components.ClearIndicator, { clearValue: clearIndicatorProps.clearValue, cx: clearIndicatorProps.cx, getClassNames: clearIndicatorProps.getClassNames, getStyles: clearIndicatorProps.getStyles, getValue: clearIndicatorProps.getValue, hasValue: clearIndicatorProps.hasValue, innerProps: Object.assign(Object.assign({}, clearIndicatorProps.innerProps), { tabIndex: 0, role: 'button', onKeyDown: e => onHandleKeyDown(e) }), isFocused: clearIndicatorProps.isFocused, isMulti: clearIndicatorProps.isMulti, isRtl: clearIndicatorProps.isRtl, options: clearIndicatorProps.options, selectOption: clearIndicatorProps.selectOption, selectProps: clearIndicatorProps.selectProps, setValue: clearIndicatorProps.setValue, theme: clearIndicatorProps.theme },
87
+ React__default.createElement(Icon, { icon: Close }))));
81
88
  };
82
89
  const DropdownIndicator = (_a) => {
83
90
  var { selectProps } = _a, dropdownIndicatorProps = __rest(_a, ["selectProps"]);
@@ -93,15 +100,15 @@ const DropdownIndicator = (_a) => {
93
100
  const SelectBox = (_a) => {
94
101
  var { noOptionsText = '', 'data-testid': dataTestId } = _a, props = __rest(_a, ["noOptionsText", 'data-testid']);
95
102
  const getNoOptionsText = () => noOptionsText;
96
- return !props.isLoading ? (React__default.createElement(FieldContainer, { className: props.className, "data-testid": dataTestId },
103
+ const errorId = props.inputId ? `${props.inputId}-error` : undefined;
104
+ const allComponents = Object.assign({ MultiValueRemove,
105
+ IndicatorsContainer,
106
+ ClearIndicator,
107
+ DropdownIndicator }, (props.optionComponent ? { Option: props.optionComponent } : {}));
108
+ return !props.isLoading ? (React__default.createElement(FieldContainer, { className: props.className, "data-testid": dataTestId, "aria-label": props.ariaLabel },
97
109
  props.label && (React__default.createElement(LabelText, { htmlFor: props.inputId, status: (props.error && 'error') || undefined, isMandatory: props.isRequired }, props.label)),
98
- React__default.createElement(Select, { inputId: props.inputId, styles: getStyles(), theme: customTheme, components: {
99
- MultiValueRemove,
100
- IndicatorsContainer,
101
- ClearIndicator,
102
- DropdownIndicator,
103
- }, options: props.options, classNamePrefix: "react_select", onChange: props.onChange, onInputChange: props.onInputChange, value: props.value, placeholder: props.placeholder, noOptionsMessage: getNoOptionsText, menuPortalTarget: props.menuPortalTarget, menuPlacement: props.menuPlacement, isSearchable: Boolean(props.isSearchable), isClearable: Boolean(props.isClearable), isMulti: props.isMulti, isDisabled: Boolean(props.isDisabled), hideSelectedOptions: false, closeMenuOnSelect: !props.isMulti, errorState: props.error }),
104
- props.error && props.errorMessage && React__default.createElement(ErrorMessage, null, props.errorMessage))) : (React__default.createElement(PixelLoader, null));
110
+ React__default.createElement(Select, { inputId: props.inputId, styles: props.styles || getStyles(), theme: customTheme, components: allComponents, options: props.options, classNamePrefix: "react_select", onChange: props.onChange, onInputChange: props.onInputChange, value: props.value, placeholder: props.placeholder, noOptionsMessage: getNoOptionsText, menuPortalTarget: props.menuPortalTarget, menuPlacement: props.menuPlacement, isSearchable: Boolean(props.isSearchable), isClearable: Boolean(props.isClearable), isMulti: props.isMulti, isDisabled: Boolean(props.isDisabled), hideSelectedOptions: false, closeMenuOnSelect: !props.isMulti, errorState: props.error, "aria-labelledby": props.error ? errorId : undefined }),
111
+ props.error && props.errorMessage && (React__default.createElement(ErrorMessage, { id: errorId }, props.errorMessage)))) : (React__default.createElement(PixelLoader, { label: props.loadingLabel }));
105
112
  };
106
113
 
107
114
  export { SelectBox as default };
@@ -22,6 +22,9 @@ export declare const Tail: import("styled-components").StyledComponent<"div", {
22
22
  sky: string;
23
23
  orange: string;
24
24
  };
25
+ active: {
26
+ pink: string;
27
+ };
25
28
  hover: {
26
29
  pink: string;
27
30
  };
@@ -189,6 +192,9 @@ export declare const TailShadow: import("styled-components").StyledComponent<"di
189
192
  sky: string;
190
193
  orange: string;
191
194
  };
195
+ active: {
196
+ pink: string;
197
+ };
192
198
  hover: {
193
199
  pink: string;
194
200
  };
@@ -23,6 +23,9 @@ export declare const globalStyles: import("styled-components").FlattenInterpolat
23
23
  sky: string;
24
24
  orange: string;
25
25
  };
26
+ active: {
27
+ pink: string;
28
+ };
26
29
  hover: {
27
30
  pink: string;
28
31
  };
@@ -186,6 +189,9 @@ export declare const CheckboxAndRadioInputCore: import("styled-components").Styl
186
189
  sky: string;
187
190
  orange: string;
188
191
  };
192
+ active: {
193
+ pink: string;
194
+ };
189
195
  hover: {
190
196
  pink: string;
191
197
  };
@@ -349,6 +355,9 @@ declare const _default: import("styled-components").GlobalStyleComponent<{}, {
349
355
  sky: string;
350
356
  orange: string;
351
357
  };
358
+ active: {
359
+ pink: string;
360
+ };
352
361
  hover: {
353
362
  pink: string;
354
363
  };
@@ -22,18 +22,19 @@ const globalStyles = css `
22
22
 
23
23
  a {
24
24
  color: ${theme.color.text.pink};
25
- text-decoration: none;
25
+ text-decoration: underline;
26
+ text-underline-offset: 0.2em;
27
+ -webkit-text-decoration-skip: ink;
28
+ text-decoration-skip-ink: auto;
29
+ text-decoration-thickness: from-font;
26
30
  }
27
31
 
28
32
  a:hover {
29
33
  color: ${theme.color.hover.pink};
30
- text-decoration: underline;
31
- cursor: pointer;
32
34
  }
33
35
 
34
36
  a:active {
35
37
  color: ${theme.color.hover.pink};
36
- text-decoration: none;
37
38
  }
38
39
 
39
40
  b,
@@ -175,6 +176,14 @@ const globalStyles = css `
175
176
  code {
176
177
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
177
178
  }
179
+
180
+ .visually-hidden {
181
+ width: 1px;
182
+ height: 1px;
183
+ overflow: hidden;
184
+ clip: rect(0, 0, 0, 0);
185
+ opacity: 0;
186
+ }
178
187
  `;
179
188
  const CheckboxAndRadioInputCore = styled.input `
180
189
  display: inline-grid;
@@ -22,6 +22,9 @@ declare const styled: import("styled-components").ThemedStyledInterface<{
22
22
  sky: string;
23
23
  orange: string;
24
24
  };
25
+ active: {
26
+ pink: string;
27
+ };
25
28
  hover: {
26
29
  pink: string;
27
30
  };
@@ -184,6 +187,9 @@ declare const styled: import("styled-components").ThemedStyledInterface<{
184
187
  sky: string;
185
188
  orange: string;
186
189
  };
190
+ active: {
191
+ pink: string;
192
+ };
187
193
  hover: {
188
194
  pink: string;
189
195
  };
@@ -346,6 +352,9 @@ declare const styled: import("styled-components").ThemedStyledInterface<{
346
352
  sky: string;
347
353
  orange: string;
348
354
  };
355
+ active: {
356
+ pink: string;
357
+ };
349
358
  hover: {
350
359
  pink: string;
351
360
  };
@@ -508,6 +517,9 @@ declare const styled: import("styled-components").ThemedStyledInterface<{
508
517
  sky: string;
509
518
  orange: string;
510
519
  };
520
+ active: {
521
+ pink: string;
522
+ };
511
523
  hover: {
512
524
  pink: string;
513
525
  };
@@ -670,6 +682,9 @@ declare const styled: import("styled-components").ThemedStyledInterface<{
670
682
  sky: string;
671
683
  orange: string;
672
684
  };
685
+ active: {
686
+ pink: string;
687
+ };
673
688
  hover: {
674
689
  pink: string;
675
690
  };
@@ -832,6 +847,9 @@ declare const styled: import("styled-components").ThemedStyledInterface<{
832
847
  sky: string;
833
848
  orange: string;
834
849
  };
850
+ active: {
851
+ pink: string;
852
+ };
835
853
  hover: {
836
854
  pink: string;
837
855
  };
@@ -994,6 +1012,9 @@ declare const styled: import("styled-components").ThemedStyledInterface<{
994
1012
  sky: string;
995
1013
  orange: string;
996
1014
  };
1015
+ active: {
1016
+ pink: string;
1017
+ };
997
1018
  hover: {
998
1019
  pink: string;
999
1020
  };
@@ -22,6 +22,9 @@ declare const theme: {
22
22
  sky: string;
23
23
  orange: string;
24
24
  };
25
+ active: {
26
+ pink: string;
27
+ };
25
28
  hover: {
26
29
  pink: string;
27
30
  };
@@ -10,6 +10,9 @@ declare const color: {
10
10
  sky: string;
11
11
  orange: string;
12
12
  };
13
+ active: {
14
+ pink: string;
15
+ };
13
16
  hover: {
14
17
  pink: string;
15
18
  };
@@ -12,6 +12,9 @@ const accentColors = {
12
12
  const color = {
13
13
  default: defaultColors,
14
14
  accent: accentColors,
15
+ active: {
16
+ pink: '#F7007F',
17
+ },
15
18
  hover: {
16
19
  pink: '#AE005A',
17
20
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dnanpm/styleguide",
3
3
  "sideEffects": false,
4
- "version": "v3.9.6",
4
+ "version": "v3.9.7",
5
5
  "main": "build/cjs/index.js",
6
6
  "module": "build/es/index.js",
7
7
  "jsnext:main": "build/es/index.js",
@@ -42,7 +42,7 @@
42
42
  "devDependencies": {
43
43
  "@babel/core": "^7.26.0",
44
44
  "@babel/preset-env": "^7.26.0",
45
- "@babel/preset-react": "^7.25.9",
45
+ "@babel/preset-react": "^7.26.3",
46
46
  "@babel/preset-typescript": "^7.26.0",
47
47
  "@dnanpm/icons": "2.0.7",
48
48
  "@rollup/plugin-commonjs": "^28.0.1",
@@ -71,7 +71,7 @@
71
71
  "eslint-config-prettier": "^8.10.0",
72
72
  "eslint-plugin-import": "2.31.0",
73
73
  "eslint-plugin-jsdoc": "^39.9.1",
74
- "eslint-plugin-jsx-a11y": "^6.10.1",
74
+ "eslint-plugin-jsx-a11y": "^6.10.2",
75
75
  "eslint-plugin-prefer-arrow": "^1.2.3",
76
76
  "eslint-plugin-react": "^7.37.4",
77
77
  "eslint-plugin-react-hooks": "^4.6.2",
@@ -84,14 +84,14 @@
84
84
  "react-docgen": "^5.4.3",
85
85
  "react-docgen-typescript": "^2.2.2",
86
86
  "react-dom": "^18.3.1",
87
- "react-styleguidist": "^13.1.3",
87
+ "react-styleguidist": "^13.1.4",
88
88
  "rollup": "^3.29.4",
89
89
  "rollup-plugin-import-css": "^3.5.8",
90
90
  "style-loader": "^3.3.3",
91
91
  "styled-components": "^5.3.11",
92
92
  "ts-jest": "^29.2.6",
93
93
  "ts-node": "^10.9.2",
94
- "tslib": "^2.8.0",
94
+ "tslib": "^2.8.1",
95
95
  "typescript": "^5.1.6",
96
96
  "webpack": "^5.95.0"
97
97
  },