@pingux/astro 2.143.0-alpha.0 → 2.143.0-alpha.1

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 (195) hide show
  1. package/lib/cjs/components/AccordionGridGroup/AccordionGrid.styles.js +1 -2
  2. package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.stories.js +86 -5
  3. package/lib/cjs/components/AccordionGridItem/AccordionGridItemHeader.js +7 -5
  4. package/lib/cjs/components/AccordionGroup/AccordionGroup.js +5 -3
  5. package/lib/cjs/components/AccordionGroup/AccordionGroup.stories.js +3 -6
  6. package/lib/cjs/components/AccordionItem/AccordionItem.js +8 -4
  7. package/lib/cjs/components/AstroProvider/AstroProvider.js +3 -3
  8. package/lib/cjs/components/Breadcrumbs/Breadcrumbs.js +6 -2
  9. package/lib/cjs/components/Button/Button.stories.js +6 -3
  10. package/lib/cjs/components/Button/Buttons.styles.d.ts +40 -0
  11. package/lib/cjs/components/Button/Buttons.styles.js +2 -0
  12. package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.stories.js +5 -1
  13. package/lib/cjs/components/CopyText/CopyButton.js +4 -1
  14. package/lib/cjs/components/CopyText/CopyText.js +2 -1
  15. package/lib/cjs/components/GridList/GridList.stories.js +0 -1
  16. package/lib/cjs/components/Icon/Icon.js +2 -1
  17. package/lib/cjs/components/Icon/Icon.stories.js +1 -1
  18. package/lib/cjs/components/IconBadge/IconBadge.js +4 -4
  19. package/lib/cjs/components/IconBadge/IconBadge.stories.js +2 -2
  20. package/lib/cjs/components/Input/Input.styles.js +3 -0
  21. package/lib/cjs/components/ListView/ListView.stories.js +27 -10
  22. package/lib/cjs/components/ListView/ListViewItem.js +1 -1
  23. package/lib/cjs/components/Loader/Loader.js +71 -5
  24. package/lib/cjs/components/Loader/Loader.stories.js +17 -2
  25. package/lib/cjs/components/Loader/Loader.styles.d.ts +7 -0
  26. package/lib/cjs/components/Loader/Loader.styles.js +11 -1
  27. package/lib/cjs/components/MultivaluesField/CondensedMultivaluesField.js +6 -4
  28. package/lib/cjs/components/MultivaluesField/DefaultMultivaluesField.js +26 -15
  29. package/lib/cjs/components/PageHeader/PageHeader.js +5 -2
  30. package/lib/cjs/components/PanelHeader/PanelHeader.js +43 -10
  31. package/lib/cjs/components/PanelHeader/PanelHeader.stories.js +9 -4
  32. package/lib/cjs/components/PanelHeader/PanelHeader.styles.js +5 -0
  33. package/lib/cjs/components/PanelHeader/PanelHeader.test.js +22 -0
  34. package/lib/cjs/components/RequirementsList/RequirementsList.js +11 -8
  35. package/lib/cjs/components/Stepper/Step.js +1 -1
  36. package/lib/cjs/components/Stepper/Stepper.styles.js +1 -0
  37. package/lib/cjs/components/Switch/Switch.js +12 -2
  38. package/lib/cjs/components/Switch/Switch.styles.js +1 -1
  39. package/lib/cjs/components/SwitchField/SwitchField.js +7 -2
  40. package/lib/cjs/components/Tabs/Tabs.stories.js +23 -7
  41. package/lib/cjs/components/Text/Text.stories.d.ts +1 -0
  42. package/lib/cjs/components/Text/Text.stories.js +354 -1
  43. package/lib/cjs/components/Text/Text.styles.d.ts +10 -0
  44. package/lib/cjs/components/Text/Text.styles.js +5 -0
  45. package/lib/cjs/components/TextField/TextField.stories.js +12 -2
  46. package/lib/cjs/hooks/useCircularLoader/useCircularLoader.d.ts +23 -0
  47. package/lib/cjs/hooks/useCircularLoader/useCircularLoader.js +80 -0
  48. package/lib/cjs/hooks/useCircularLoader/useCircularLoader.test.d.ts +1 -0
  49. package/lib/cjs/hooks/useCircularLoader/useCircularLoader.test.js +136 -0
  50. package/lib/cjs/hooks/useField/useField.d.ts +6 -6
  51. package/lib/cjs/hooks/useGetTheme/useGetTheme.d.ts +75 -0
  52. package/lib/cjs/hooks/usePagination/usePagination.d.ts +4 -4
  53. package/lib/cjs/styles/colors.d.ts +6 -0
  54. package/lib/cjs/styles/colors.js +4 -1
  55. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.d.ts +36 -0
  56. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +23 -2
  57. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/icons.d.ts +5 -0
  58. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/index.d.ts +17 -0
  59. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/index.js +7 -1
  60. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.d.ts +66 -0
  61. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +18 -0
  62. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.d.ts +15 -0
  63. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.js +18 -1
  64. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/input.d.ts +0 -8
  65. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/input.js +9 -9
  66. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/links.d.ts +14 -0
  67. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/links.js +15 -0
  68. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +5 -0
  69. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +5 -0
  70. package/lib/cjs/styles/themes/astro/customProperties/icons.d.ts +5 -0
  71. package/lib/cjs/styles/themes/astro/customProperties/icons.js +11 -4
  72. package/lib/cjs/styles/themes/astro/customProperties/index.d.ts +18 -0
  73. package/lib/cjs/styles/themes/astro/customProperties/index.js +26 -1
  74. package/lib/cjs/styles/themes/next-gen/codeView/codeView.d.ts +2 -0
  75. package/lib/cjs/styles/themes/next-gen/codeView/codeView.js +4 -2
  76. package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +37 -0
  77. package/lib/cjs/styles/themes/next-gen/colors/colors.js +5 -2
  78. package/lib/cjs/styles/themes/next-gen/colors/iconWrapper.js +14 -35
  79. package/lib/cjs/styles/themes/next-gen/colors/twoTone.d.ts +37 -0
  80. package/lib/cjs/styles/themes/next-gen/colors/twoTone.js +46 -0
  81. package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +4 -1
  82. package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +6 -3
  83. package/lib/cjs/styles/themes/next-gen/customProperties/customSizes.d.ts +10 -0
  84. package/lib/cjs/styles/themes/next-gen/customProperties/customSizes.js +22 -0
  85. package/lib/cjs/styles/themes/next-gen/customProperties/icons.d.ts +5 -0
  86. package/lib/cjs/styles/themes/next-gen/customProperties/icons.js +10 -3
  87. package/lib/cjs/styles/themes/next-gen/customProperties/index.d.ts +17 -0
  88. package/lib/cjs/styles/themes/next-gen/customProperties/index.js +26 -4
  89. package/lib/cjs/styles/themes/next-gen/customProperties/tShirtSizes.js +4 -4
  90. package/lib/cjs/styles/themes/next-gen/forms.d.ts +42 -0
  91. package/lib/cjs/styles/themes/next-gen/forms.js +5 -0
  92. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +1151 -857
  93. package/lib/cjs/styles/themes/next-gen/next-gen.js +1 -1
  94. package/lib/cjs/styles/themes/next-gen/text.js +2 -2
  95. package/lib/cjs/styles/themes/next-gen/variants/accordion.d.ts +16 -0
  96. package/lib/cjs/styles/themes/next-gen/variants/accordion.js +26 -0
  97. package/lib/cjs/styles/themes/next-gen/variants/badges.d.ts +0 -17
  98. package/lib/cjs/styles/themes/next-gen/variants/badges.js +1 -3
  99. package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +151 -105
  100. package/lib/cjs/styles/themes/next-gen/variants/button.js +38 -7
  101. package/lib/cjs/styles/themes/next-gen/variants/cards.js +1 -1
  102. package/lib/cjs/styles/themes/next-gen/variants/input.js +16 -5
  103. package/lib/cjs/styles/themes/next-gen/variants/label.js +5 -3
  104. package/lib/cjs/styles/themes/next-gen/variants/links.d.ts +4 -2
  105. package/lib/cjs/styles/themes/next-gen/variants/listview.js +1 -1
  106. package/lib/cjs/styles/themes/next-gen/variants/panelHeader.d.ts +16 -0
  107. package/lib/cjs/styles/themes/next-gen/variants/panelHeader.js +26 -0
  108. package/lib/cjs/styles/themes/next-gen/variants/stepper.d.ts +66 -0
  109. package/lib/cjs/styles/themes/next-gen/variants/stepper.js +74 -0
  110. package/lib/cjs/styles/themes/next-gen/variants/switch.d.ts +36 -0
  111. package/lib/cjs/styles/themes/next-gen/variants/switch.js +44 -0
  112. package/lib/cjs/styles/themes/next-gen/variants/text.d.ts +62 -0
  113. package/lib/cjs/styles/themes/next-gen/variants/text.js +67 -7
  114. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +900 -743
  115. package/lib/cjs/styles/themes/next-gen/variants/variants.js +88 -38
  116. package/lib/cjs/types/loader.d.ts +5 -2
  117. package/lib/cjs/types/shared/style.d.ts +2 -0
  118. package/lib/components/AccordionGridGroup/AccordionGrid.styles.js +1 -2
  119. package/lib/components/AccordionGridGroup/AccordionGridGroup.stories.js +86 -5
  120. package/lib/components/AccordionGridItem/AccordionGridItemHeader.js +6 -4
  121. package/lib/components/AccordionGroup/AccordionGroup.js +5 -3
  122. package/lib/components/AccordionGroup/AccordionGroup.stories.js +3 -6
  123. package/lib/components/AccordionItem/AccordionItem.js +8 -4
  124. package/lib/components/AstroProvider/AstroProvider.js +3 -3
  125. package/lib/components/Breadcrumbs/Breadcrumbs.js +7 -3
  126. package/lib/components/Button/Button.stories.js +4 -1
  127. package/lib/components/Button/Buttons.styles.js +2 -0
  128. package/lib/components/CollapsiblePanel/CollapsiblePanel.stories.js +5 -1
  129. package/lib/components/CopyText/CopyButton.js +4 -1
  130. package/lib/components/CopyText/CopyText.js +2 -1
  131. package/lib/components/GridList/GridList.stories.js +0 -1
  132. package/lib/components/Icon/Icon.js +2 -1
  133. package/lib/components/Icon/Icon.stories.js +1 -1
  134. package/lib/components/IconBadge/IconBadge.js +4 -4
  135. package/lib/components/IconBadge/IconBadge.stories.js +2 -2
  136. package/lib/components/Input/Input.styles.js +3 -0
  137. package/lib/components/ListView/ListView.stories.js +28 -11
  138. package/lib/components/ListView/ListViewItem.js +1 -1
  139. package/lib/components/Loader/Loader.js +71 -3
  140. package/lib/components/Loader/Loader.stories.js +13 -0
  141. package/lib/components/Loader/Loader.styles.js +11 -1
  142. package/lib/components/MultivaluesField/CondensedMultivaluesField.js +6 -4
  143. package/lib/components/MultivaluesField/DefaultMultivaluesField.js +27 -16
  144. package/lib/components/PageHeader/PageHeader.js +5 -2
  145. package/lib/components/PanelHeader/PanelHeader.js +44 -11
  146. package/lib/components/PanelHeader/PanelHeader.stories.js +9 -4
  147. package/lib/components/PanelHeader/PanelHeader.styles.js +5 -0
  148. package/lib/components/PanelHeader/PanelHeader.test.js +23 -1
  149. package/lib/components/RequirementsList/RequirementsList.js +7 -4
  150. package/lib/components/Stepper/Step.js +1 -1
  151. package/lib/components/Stepper/Stepper.styles.js +1 -0
  152. package/lib/components/Switch/Switch.js +12 -2
  153. package/lib/components/Switch/Switch.styles.js +1 -1
  154. package/lib/components/SwitchField/SwitchField.js +7 -2
  155. package/lib/components/Tabs/Tabs.stories.js +23 -7
  156. package/lib/components/Text/Text.stories.js +352 -0
  157. package/lib/components/Text/Text.styles.js +5 -0
  158. package/lib/components/TextField/TextField.stories.js +12 -2
  159. package/lib/hooks/useCircularLoader/useCircularLoader.js +71 -0
  160. package/lib/hooks/useCircularLoader/useCircularLoader.test.js +129 -0
  161. package/lib/styles/colors.js +4 -1
  162. package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +23 -2
  163. package/lib/styles/themeOverrides/nextGenDarkMode/customProperties/index.js +7 -1
  164. package/lib/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +18 -0
  165. package/lib/styles/themeOverrides/nextGenDarkMode/variants/forms.js +18 -1
  166. package/lib/styles/themeOverrides/nextGenDarkMode/variants/input.js +9 -9
  167. package/lib/styles/themeOverrides/nextGenDarkMode/variants/links.js +15 -0
  168. package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +5 -0
  169. package/lib/styles/themes/astro/customProperties/icons.js +12 -5
  170. package/lib/styles/themes/astro/customProperties/index.js +26 -1
  171. package/lib/styles/themes/next-gen/codeView/codeView.js +4 -2
  172. package/lib/styles/themes/next-gen/colors/colors.js +5 -2
  173. package/lib/styles/themes/next-gen/colors/iconWrapper.js +14 -35
  174. package/lib/styles/themes/next-gen/colors/twoTone.js +38 -0
  175. package/lib/styles/themes/next-gen/convertedComponentList.js +6 -3
  176. package/lib/styles/themes/next-gen/customProperties/customSizes.js +14 -0
  177. package/lib/styles/themes/next-gen/customProperties/icons.js +10 -3
  178. package/lib/styles/themes/next-gen/customProperties/index.js +26 -2
  179. package/lib/styles/themes/next-gen/customProperties/tShirtSizes.js +4 -4
  180. package/lib/styles/themes/next-gen/forms.js +5 -0
  181. package/lib/styles/themes/next-gen/next-gen.js +1 -1
  182. package/lib/styles/themes/next-gen/text.js +2 -2
  183. package/lib/styles/themes/next-gen/variants/accordion.js +18 -0
  184. package/lib/styles/themes/next-gen/variants/badges.js +1 -3
  185. package/lib/styles/themes/next-gen/variants/button.js +38 -7
  186. package/lib/styles/themes/next-gen/variants/cards.js +1 -1
  187. package/lib/styles/themes/next-gen/variants/input.js +16 -5
  188. package/lib/styles/themes/next-gen/variants/label.js +5 -3
  189. package/lib/styles/themes/next-gen/variants/listview.js +1 -1
  190. package/lib/styles/themes/next-gen/variants/panelHeader.js +18 -0
  191. package/lib/styles/themes/next-gen/variants/stepper.js +66 -0
  192. package/lib/styles/themes/next-gen/variants/switch.js +36 -0
  193. package/lib/styles/themes/next-gen/variants/text.js +67 -7
  194. package/lib/styles/themes/next-gen/variants/variants.js +82 -37
  195. package/package.json +1 -1
@@ -6,7 +6,7 @@ import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/insta
6
6
  import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
7
7
  import React, { forwardRef, useCallback } from 'react';
8
8
  import { mergeProps, useBreadcrumbs } from 'react-aria';
9
- import { useLocalOrForwardRef, usePropWarning } from '../../hooks';
9
+ import { useGetTheme, useLocalOrForwardRef, usePropWarning } from '../../hooks';
10
10
  import { Box, Icon } from '../../index';
11
11
  import BreadcrumbItem from './BreadcrumbItem';
12
12
  import { jsx as ___EmotionJSX } from "@emotion/react";
@@ -16,6 +16,9 @@ var Breadcrumbs = /*#__PURE__*/forwardRef(function (props, ref) {
16
16
  iconProps = props.iconProps,
17
17
  onAction = props.onAction,
18
18
  others = _objectWithoutProperties(props, _excluded);
19
+ var _useGetTheme = useGetTheme(),
20
+ breadcrumbIconSize = _useGetTheme.breadcrumbIconSize,
21
+ breadcrumbIconMargin = _useGetTheme.breadcrumbIconMargin;
19
22
 
20
23
  // the following filters undefined values passed as a child
21
24
  var filteredChildren = _Array$isArray(children) ? _filterInstanceProperty(children).call(children, function (child) {
@@ -36,12 +39,13 @@ var Breadcrumbs = /*#__PURE__*/forwardRef(function (props, ref) {
36
39
  onAction: onAction
37
40
  }, child.props), child.props.children), icon && !isCurrentItem && ___EmotionJSX(Icon, _extends({
38
41
  "aria-hidden": "true",
39
- mx: 5,
40
- size: "xs",
42
+ mx: breadcrumbIconMargin,
43
+ size: breadcrumbIconSize,
41
44
  title: {
42
45
  name: 'Breadcrumb Separator'
43
46
  }
44
47
  }, iconProps, {
48
+ color: "text.primary",
45
49
  icon: icon
46
50
  })));
47
51
  }, [_Array$isArray(children) && children.length, filteredChildren, icon, iconProps, onAction]);
@@ -13,10 +13,10 @@ var _excluded = ["isConfigured"];
13
13
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
14
14
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
15
15
  import React from 'react';
16
- import CreateIcon from '@pingux/mdi-react/CreateIcon';
17
16
  import PlusIcon from '@pingux/mdi-react/PlusIcon';
18
17
  import { withDesign } from 'storybook-addon-designs';
19
18
  import DocsLayout from '../../../.storybook/storybookDocsLayout';
19
+ import { useGetTheme } from '../../hooks';
20
20
  import { Box, Button, Icon, Text } from '../../index';
21
21
  import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks';
22
22
  import ButtonReadme from './Button.mdx';
@@ -159,6 +159,9 @@ export var ColorBlockButton = function ColorBlockButton(args) {
159
159
  // Change `isConfigured` property in storybook controls
160
160
  var isConfigured = args.isConfigured,
161
161
  props = _objectWithoutProperties(args, _excluded);
162
+ var _useGetTheme = useGetTheme(),
163
+ icons = _useGetTheme.icons;
164
+ var CreateIcon = icons.CreateIcon;
162
165
  return ___EmotionJSX(Box, null, ___EmotionJSX(Button, _extends({
163
166
  mb: "sm"
164
167
  }, props, {
@@ -174,6 +174,7 @@ export var link = _objectSpread(_objectSpread({}, text), {}, {
174
174
  },
175
175
  '&.is-focused': _objectSpread({}, focusWithCroppedOutline)
176
176
  });
177
+ var listBoxLink = _objectSpread({}, link);
177
178
  var defaultVariant = _objectSpread(_objectSpread({}, base), {}, {
178
179
  bg: 'white',
179
180
  border: '1px solid',
@@ -298,6 +299,7 @@ export default {
298
299
  inlinePrimaryWithIcon: inlinePrimaryWithIcon,
299
300
  inlineWithIcon: inlineWithIcon,
300
301
  link: link,
302
+ listBoxLink: listBoxLink,
301
303
  paginationMenu: paginationMenu,
302
304
  primary: primary,
303
305
  primaryWithIcon: primaryWithIcon,
@@ -1,3 +1,4 @@
1
+ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
1
2
  import React from 'react';
2
3
  import { withDesign } from 'storybook-addon-designs';
3
4
  import DocsLayout from '../../../.storybook/storybookDocsLayout';
@@ -37,7 +38,10 @@ export default {
37
38
  }
38
39
  };
39
40
  export var Default = function Default(args) {
40
- return ___EmotionJSX(CollapsiblePanel, args);
41
+ return ___EmotionJSX(CollapsiblePanel, _extends({}, args, {
42
+ listTitle: "Panel Title",
43
+ selectedFilterCount: 1000
44
+ }));
41
45
  };
42
46
  Default.parameters = {
43
47
  design: {
@@ -3,19 +3,22 @@ import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectW
3
3
  var _excluded = ["iconProps"];
4
4
  import React, { forwardRef } from 'react';
5
5
  import ContentCopy from '@pingux/mdi-react/ContentCopyIcon';
6
+ import { useGetTheme } from '../../hooks';
6
7
  import Icon from '../Icon';
7
8
  import IconButton from '../IconButton';
8
9
  import { jsx as ___EmotionJSX } from "@emotion/react";
9
10
  var CopyButton = /*#__PURE__*/forwardRef(function (props, ref) {
10
11
  var iconProps = props.iconProps,
11
12
  others = _objectWithoutProperties(props, _excluded);
13
+ var _useGetTheme = useGetTheme(),
14
+ copyButtonSize = _useGetTheme.copyButtonSize;
12
15
  return ___EmotionJSX(IconButton, _extends({
13
16
  ref: ref,
14
17
  "aria-label": "copy to clipboard",
15
18
  variant: "copyButton"
16
19
  }, others), ___EmotionJSX(Icon, _extends({
17
20
  icon: ContentCopy,
18
- size: "xs",
21
+ size: copyButtonSize,
19
22
  color: "text.secondary",
20
23
  title: {
21
24
  name: 'Content Copy Icon'
@@ -136,7 +136,8 @@ var CopyText = /*#__PURE__*/forwardRef(function (props, ref) {
136
136
  isRow: true,
137
137
  variant: "copyText.copy"
138
138
  }, others, {
139
- role: "presentation"
139
+ role: "presentation",
140
+ gap: "sm"
140
141
  }), mode !== 'rightText' && content, ___EmotionJSX(CopyButton, _extends({
141
142
  onPress: copyToClipboard
142
143
  }, focusProps, iconButtonProps)), mode === 'rightText' && content)));
@@ -93,7 +93,6 @@ var ExampleComponent = function ExampleComponent(_ref) {
93
93
  variant: "inverted"
94
94
  }, ___EmotionJSX(Icon, {
95
95
  icon: MinusIcon,
96
- size: "md",
97
96
  title: {
98
97
  name: 'Dots Vertical Icon'
99
98
  }
@@ -32,6 +32,7 @@ var Icon = /*#__PURE__*/forwardRef(function (props, ref) {
32
32
  sizes: theme.tShirtSizes
33
33
  }),
34
34
  sizeProps = _useTShirtSize.sizeProps;
35
+ var defaultIconColor = theme.defaultIconColor;
35
36
  var resolvedTitle = title !== null && title !== void 0 ? title : _typeof(IconComponent) === 'object' && 'type' in IconComponent ? {
36
37
  name: IconComponent.type.name
37
38
  } : '';
@@ -43,7 +44,7 @@ var Icon = /*#__PURE__*/forwardRef(function (props, ref) {
43
44
  variant: variant,
44
45
  size: sizeProps.size,
45
46
  sx: _objectSpread({
46
- fill: color,
47
+ fill: color || defaultIconColor,
47
48
  minWidth: sizeProps.size
48
49
  }, sx)
49
50
  }, others));
@@ -94,7 +94,7 @@ export var SVGIcons = function SVGIcons(args) {
94
94
  };
95
95
  return ___EmotionJSX(Icon, _extends({}, args, {
96
96
  icon: SVGComponent,
97
- color: "active",
97
+ color: "magenta !important",
98
98
  size: "sm"
99
99
  }));
100
100
  };
@@ -14,6 +14,7 @@ var _excluded = ["children", "sx", "circleColor", "baseSize", "circleSize"];
14
14
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
15
15
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
16
16
  import React, { forwardRef } from 'react';
17
+ import { useGetTheme } from '../../hooks';
17
18
  import { Box } from '../../index';
18
19
  import { jsx as ___EmotionJSX } from "@emotion/react";
19
20
  var IconBadge = /*#__PURE__*/forwardRef(function (props, ref) {
@@ -27,6 +28,8 @@ var IconBadge = /*#__PURE__*/forwardRef(function (props, ref) {
27
28
  _React$Children$toArr2 = _slicedToArray(_React$Children$toArr, 2),
28
29
  firstIcon = _React$Children$toArr2[0],
29
30
  secondIcon = _React$Children$toArr2[1];
31
+ var _useGetTheme = useGetTheme(),
32
+ iconBadgeCircleColor = _useGetTheme.iconBadgeCircleColor;
30
33
  return ___EmotionJSX(Box, _extends({
31
34
  ref: ref,
32
35
  as: "span",
@@ -48,11 +51,8 @@ var IconBadge = /*#__PURE__*/forwardRef(function (props, ref) {
48
51
  width: "".concat(circleSize, "px"),
49
52
  alignItems: 'center',
50
53
  justifyContent: 'center',
51
- backgroundColor: circleColor
54
+ backgroundColor: circleColor || iconBadgeCircleColor
52
55
  }
53
56
  }, secondIcon));
54
57
  });
55
- IconBadge.defaultProps = {
56
- circleColor: 'white'
57
- };
58
58
  export default IconBadge;
@@ -27,14 +27,14 @@ export var Default = function Default(args) {
27
27
  }), ___EmotionJSX(Icon, {
28
28
  icon: GroupIcon,
29
29
  size: "25px",
30
- color: "accent.40",
30
+ color: "badge.iconBadgeFill",
31
31
  title: {
32
32
  name: 'Group Icon'
33
33
  }
34
34
  }), ___EmotionJSX(Icon, {
35
35
  icon: ArrowIcon,
36
36
  size: "13px",
37
- color: "accent.40",
37
+ color: "badge.iconBadgeFill",
38
38
  title: {
39
39
  name: 'Arrow Icon'
40
40
  }
@@ -214,6 +214,9 @@ input.multivaluesWrapper = _objectSpread(_objectSpread({}, input.fieldControlWra
214
214
  bg: 'success.bright'
215
215
  }), _defineProperty(_objectSpread2, "&.is-".concat(statuses.WARNING, "::after"), {
216
216
  bg: 'warning.bright'
217
+ }), _defineProperty(_objectSpread2, '&.is-read-only', {
218
+ boxShadow: 'inset 0 0 0 100px #e5e9f8',
219
+ border: 'none'
217
220
  }), _objectSpread2));
218
221
  input.numberField = _objectSpread(_objectSpread({}, input), {}, {
219
222
  pr: '28px'
@@ -37,7 +37,7 @@ import FormSelectIcon from '@pingux/mdi-react/FormSelectIcon';
37
37
  import { action } from '@storybook/addon-actions';
38
38
  import isChromatic from 'chromatic/isChromatic';
39
39
  import DocsLayout from '../../../.storybook/storybookDocsLayout';
40
- import { Box, Button, Item, ListView, ListViewItem, ListViewItemChart, ListViewItemMenu, ListViewItemSwitchField, SearchField, Text } from '../..';
40
+ import { Box, Button, IconWrapper, Item, ListView, ListViewItem, ListViewItemChart, ListViewItemMenu, ListViewItemSwitchField, SearchField, Text } from '../..';
41
41
  import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks';
42
42
  import animals from '../../utils/devUtils/constants/animals';
43
43
  import loadingStates from '../../utils/devUtils/constants/loadingStates';
@@ -101,7 +101,7 @@ var actions = {
101
101
  var ExpandableChildren = function ExpandableChildren() {
102
102
  return ___EmotionJSX(Box, {
103
103
  sx: {
104
- my: 'lg'
104
+ my: '20px'
105
105
  }
106
106
  }, ___EmotionJSX(SearchField, {
107
107
  maxWidth: "400px",
@@ -115,18 +115,32 @@ var ExpandableChildren = function ExpandableChildren() {
115
115
  }, "Lorem ipsum dolor sit amet consectetur. Viverra nulla nec velit sollicitudin sed nisi mi gravida. Maecenas vestibulum pretium dictum dictum tempus. Sit et rutrum hendrerit facilisi turpis tellus elementum. Egestas consectetur in ac id. Sit aliquam et ut pellentesque in at blandit sed. Sapien morbi cras eleifend lectus."));
116
116
  };
117
117
  var ExampleContent = function ExampleContent(contentProps) {
118
- var text = contentProps.text;
118
+ var text = contentProps.text,
119
+ icon = contentProps.icon;
119
120
  return ___EmotionJSX(Box, {
120
121
  isRow: true,
121
122
  sx: {
122
123
  alignItems: 'center'
123
- }
124
- }, ___EmotionJSX(Text, {
124
+ },
125
+ gap: "md"
126
+ }, ___EmotionJSX(IconWrapper, {
127
+ icon: icon,
128
+ size: "sm",
129
+ title: {
130
+ name: "".concat(text, "}")
131
+ },
132
+ isCircle: true,
133
+ color: "cyan"
134
+ }), ___EmotionJSX(Text, {
125
135
  variant: "itemTitle"
126
136
  }, text));
127
137
  };
128
138
  var Controls = function Controls() {
129
- return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(ListViewItemSwitchField, null), ___EmotionJSX(ListViewItemMenu, null, ___EmotionJSX(Item, {
139
+ return ___EmotionJSX(Box, {
140
+ gap: "md",
141
+ isRow: true,
142
+ alignItems: "center"
143
+ }, ___EmotionJSX(ListViewItemSwitchField, null), ___EmotionJSX(ListViewItemMenu, null, ___EmotionJSX(Item, {
130
144
  key: "enable"
131
145
  }, "Enable user"), ___EmotionJSX(Item, {
132
146
  key: "disable"
@@ -149,6 +163,7 @@ export var Default = function Default(_ref) {
149
163
  iconProps: {
150
164
  color: 'text.secondary'
151
165
  },
166
+ "data-id": "test1111",
152
167
  iconWrapperProps: item.iconWrapperProps
153
168
  }, ___EmotionJSX(Controls, null)));
154
169
  });
@@ -169,7 +184,8 @@ export var WithExpandableItems = function WithExpandableItems(_ref2) {
169
184
  key: item.name,
170
185
  textValue: item.name
171
186
  }, ___EmotionJSX(ExampleContent, {
172
- text: item.name
187
+ text: item.name,
188
+ icon: item.icon
173
189
  }), ___EmotionJSX(ExpandableChildren, null));
174
190
  });
175
191
  };
@@ -208,7 +224,8 @@ export var ControlledExpandableItems = function ControlledExpandableItems(_ref3)
208
224
  key: item.name,
209
225
  textValue: item.name
210
226
  }, ___EmotionJSX(ExampleContent, {
211
- text: item.name
227
+ text: item.name,
228
+ icon: item.icon
212
229
  }), ___EmotionJSX(ExpandableChildren, null));
213
230
  }));
214
231
  };
@@ -272,7 +289,7 @@ export var InfiniteLoadingList = function InfiniteLoadingList(args) {
272
289
  }), new _Promise(function (_resolve, reject) {
273
290
  return _setTimeout(function () {
274
291
  return reject(new Error('timeout'));
275
- }, 3000);
292
+ }, 8000);
276
293
  })]);
277
294
  case 5:
278
295
  res = _context2.sent;
@@ -282,7 +299,7 @@ export var InfiniteLoadingList = function InfiniteLoadingList(args) {
282
299
  json = _context2.sent;
283
300
  _context2.next = 11;
284
301
  return new _Promise(function (resolve) {
285
- return _setTimeout(resolve, cursor ? 2000 : 3000);
302
+ return _setTimeout(resolve, cursor ? 8000 : 8000);
286
303
  });
287
304
  case 11:
288
305
  return _context2.abrupt("return", {
@@ -338,7 +355,7 @@ export var InfiniteLoadingList = function InfiniteLoadingList(args) {
338
355
  }
339
356
  }, ___EmotionJSX(ListView, _extends({}, actions, {
340
357
  items: list.items,
341
- loadingState: list.loadingState,
358
+ loadingState: "loadingMore",
342
359
  onLoadMore: list.loadMore
343
360
  }), function (item) {
344
361
  return ___EmotionJSX(Item, {
@@ -77,7 +77,7 @@ var ListViewItem = function ListViewItem(props) {
77
77
  hasInsetSeparator: hasInsetSeparator,
78
78
  isPressed: isPressed,
79
79
  isFirstItem: item.index === 0,
80
- isLastItem: item.index === state.collection.size - 1
80
+ isLastItem: item.index === state.collection.size - 1 && !state.isLoading
81
81
  }),
82
82
  classNames = _useStatusClasses.classNames;
83
83
 
@@ -1,13 +1,81 @@
1
+ import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
2
+ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
3
+ import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
4
+ import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
5
+ import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
6
+ import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
7
+ import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
8
+ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
1
9
  import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
10
+ import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
2
11
  import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
3
- var _excluded = ["size", "dotProps"];
12
+ var _excluded = ["dotProps", "progress", "strokeColor", "strokeBaseColor"];
13
+ import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
14
+ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
15
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context4, _context5; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context4 = ownKeys(Object(source), !0)).call(_context4, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context5 = ownKeys(Object(source))).call(_context5, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
4
16
  import React, { forwardRef } from 'react';
17
+ import { useGetTheme } from '../../hooks';
18
+ import useCircularLoader from '../../hooks/useCircularLoader/useCircularLoader';
5
19
  import Box from '../Box';
6
20
  import { jsx as ___EmotionJSX } from "@emotion/react";
7
21
  var Loader = /*#__PURE__*/forwardRef(function (props, ref) {
8
- var size = props.size,
9
- dotProps = props.dotProps,
22
+ var dotProps = props.dotProps,
23
+ _props$progress = props.progress,
24
+ progress = _props$progress === void 0 ? 75 : _props$progress,
25
+ strokeColor = props.strokeColor,
26
+ strokeBaseColor = props.strokeBaseColor,
10
27
  others = _objectWithoutProperties(props, _excluded);
28
+ var _useGetTheme = useGetTheme(),
29
+ activeColor = _useGetTheme.activeColor,
30
+ backgroundBaseColor = _useGetTheme.backgroundBaseColor,
31
+ themeState = _useGetTheme.themeState,
32
+ defaultLoaderSize = _useGetTheme.defaultLoaderSize;
33
+ var _useCircularLoader = useCircularLoader(_objectSpread(_objectSpread({}, props), {}, {
34
+ defaultLoaderSize: defaultLoaderSize,
35
+ isAstro: themeState.isAstro
36
+ })),
37
+ center = _useCircularLoader.center,
38
+ radius = _useCircularLoader.radius,
39
+ strokeWidth = _useCircularLoader.strokeWidth,
40
+ dashLength = _useCircularLoader.dashLength,
41
+ gapLength = _useCircularLoader.gapLength,
42
+ size = _useCircularLoader.size,
43
+ isCircle = _useCircularLoader.isCircle;
44
+ if (isCircle) {
45
+ var _context, _context2, _context3;
46
+ return ___EmotionJSX(Box, _extends({
47
+ ref: ref,
48
+ variant: "loader.circleContainer",
49
+ role: "alert",
50
+ "aria-live": "assertive",
51
+ "aria-label": "Loading in progress"
52
+ }, others), ___EmotionJSX(Box, {
53
+ variant: "loader.circleSpinner",
54
+ p: strokeWidth
55
+ }, ___EmotionJSX("svg", {
56
+ width: size,
57
+ height: size,
58
+ viewBox: _concatInstanceProperty(_context = "0 0 ".concat(size, " ")).call(_context, size)
59
+ }, ___EmotionJSX("circle", {
60
+ cx: center,
61
+ cy: center,
62
+ r: radius,
63
+ fill: "none",
64
+ stroke: strokeBaseColor || backgroundBaseColor,
65
+ strokeWidth: strokeWidth
66
+ }), ___EmotionJSX("circle", {
67
+ cx: center,
68
+ cy: center,
69
+ r: radius,
70
+ fill: "none",
71
+ stroke: strokeColor || activeColor,
72
+ strokeWidth: strokeWidth,
73
+ strokeDasharray: _concatInstanceProperty(_context2 = "".concat(dashLength, " ")).call(_context2, gapLength),
74
+ strokeLinecap: "round" // For rounded corners
75
+ ,
76
+ transform: _concatInstanceProperty(_context3 = "rotate(-90 ".concat(center, " ")).call(_context3, center, ")")
77
+ }))));
78
+ }
11
79
  return ___EmotionJSX(Box, _extends({
12
80
  ref: ref,
13
81
  isRow: true,
@@ -69,4 +69,17 @@ export var CustomSize = function CustomSize(args) {
69
69
  return ___EmotionJSX(Loader, _extends({}, args, {
70
70
  size: 32
71
71
  }));
72
+ };
73
+ export var Circular = function Circular(args) {
74
+ return ___EmotionJSX(Loader, _extends({}, args, {
75
+ size: 120,
76
+ isCircle: true
77
+ }));
78
+ };
79
+ export var CustomCircular = function CustomCircular(args) {
80
+ return ___EmotionJSX(Loader, _extends({}, args, {
81
+ size: "lg",
82
+ isCircle: true,
83
+ strokeColor: "magenta"
84
+ }));
72
85
  };
@@ -8,7 +8,7 @@ import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/obje
8
8
  import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
9
9
  import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
10
10
  import _taggedTemplateLiteral from "@babel/runtime-corejs3/helpers/esm/taggedTemplateLiteral";
11
- var _templateObject, _templateObject2, _context, _context2, _context3, _context4, _context5;
11
+ var _templateObject, _templateObject2, _context, _context2, _context3, _context4, _context5, _templateObject3;
12
12
  import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
13
13
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
14
14
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context6, _context7; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context6 = ownKeys(Object(source), !0)).call(_context6, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context7 = ownKeys(Object(source))).call(_context7, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -56,7 +56,17 @@ var dotCenter = _objectSpread(_objectSpread({}, dot), {}, {
56
56
  var dotRight = _objectSpread(_objectSpread({}, dot), {}, {
57
57
  animation: _concatInstanceProperty(_context4 = _concatInstanceProperty(_context5 = "".concat(wait, " 0.4s, ")).call(_context5, pulse, " ")).call(_context4, animationSettings, " 0.4s")
58
58
  });
59
+ var spin = keyframes(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"])));
60
+ var circleContainer = {
61
+ justifyContent: 'center',
62
+ alignItems: 'center'
63
+ };
64
+ var circleSpinner = {
65
+ animation: "".concat(spin, " .75s linear infinite")
66
+ };
59
67
  export default {
68
+ circleContainer: circleContainer,
69
+ circleSpinner: circleSpinner,
60
70
  dotLeft: dotLeft,
61
71
  dotCenter: dotCenter,
62
72
  dotRight: dotRight,
@@ -20,8 +20,6 @@ import _reduceInstanceProperty from "@babel/runtime-corejs3/core-js-stable/insta
20
20
  import _flatMapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/flat-map";
21
21
  import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react';
22
22
  import { DismissButton, FocusScope, mergeProps, useOverlayPosition } from 'react-aria';
23
- import MenuDown from '@pingux/mdi-react/MenuDownIcon';
24
- import MenuUp from '@pingux/mdi-react/MenuUpIcon';
25
23
  import { useFilter } from '@react-aria/i18n';
26
24
  import { useFocusWithin } from '@react-aria/interactions';
27
25
  import { useLayoutEffect, useResizeObserver } from '@react-aria/utils';
@@ -30,7 +28,7 @@ import { useListState } from '@react-stately/list';
30
28
  import PropTypes from 'prop-types';
31
29
  import { Box, Button, Icon, Loader, PopoverContainer, ScrollBox, Text, TextField } from '../..';
32
30
  import { MultivaluesContext } from '../../context/MultivaluesContext';
33
- import { useInputLoader, usePropWarning } from '../../hooks';
31
+ import { useGetTheme, useInputLoader, usePropWarning } from '../../hooks';
34
32
  import loadingStates from '../../utils/devUtils/constants/loadingStates';
35
33
  import { getPendoID } from '../../utils/devUtils/constants/pendoID';
36
34
  import { isIterableProp } from '../../utils/devUtils/props/isIterable';
@@ -100,6 +98,10 @@ var CondensedMultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
100
98
  var inputWrapperRef = useRef();
101
99
  var inputRef = useRef();
102
100
  var buttonRef = useRef();
101
+ var _useGetTheme = useGetTheme(),
102
+ icons = _useGetTheme.icons;
103
+ var MenuDown = icons.MenuDown,
104
+ MenuUp = icons.MenuUp;
103
105
  var _useFocusWithin = useFocusWithin({
104
106
  onFocusWithinChange: setFocusWithin
105
107
  }),
@@ -302,7 +304,7 @@ var CondensedMultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
302
304
  var listbox = ___EmotionJSX(FocusScope, null, filterString === '' && !hasNoSelectAll && ___EmotionJSX(Button, {
303
305
  onPress: handleSelection,
304
306
  ref: buttonRef,
305
- variant: "link",
307
+ variant: "listBoxLink",
306
308
  mt: "sm",
307
309
  ml: "14px",
308
310
  sx: {
@@ -32,7 +32,7 @@ import { useListState } from '@react-stately/list';
32
32
  import PropTypes from 'prop-types';
33
33
  import { Badge, Box, Icon, IconButton, Loader, PopoverContainer, ScrollBox, Text, TextField } from '../..';
34
34
  import { MultivaluesContext } from '../../context/MultivaluesContext';
35
- import { useInputLoader, usePropWarning } from '../../hooks';
35
+ import { useGetTheme, useInputLoader, usePropWarning } from '../../hooks';
36
36
  import loadingStates from '../../utils/devUtils/constants/loadingStates';
37
37
  import { getPendoID } from '../../utils/devUtils/constants/pendoID';
38
38
  import { isIterableProp } from '../../utils/devUtils/props/isIterable';
@@ -100,6 +100,9 @@ var DefaultMultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
100
100
  _useState10 = _slicedToArray(_useState9, 2),
101
101
  activeDescendant = _useState10[0],
102
102
  setActiveDescendant = _useState10[1];
103
+ var _useGetTheme = useGetTheme(),
104
+ themeState = _useGetTheme.themeState;
105
+ var isOnyx = themeState.isOnyx;
103
106
  useEffect(function () {
104
107
  if (mode !== 'non-restrictive') {
105
108
  setItems(initialItems);
@@ -334,6 +337,15 @@ var DefaultMultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
334
337
  inputRef.current.focus();
335
338
  }
336
339
  };
340
+ var readOnlyFieldBadge = function readOnlyFieldBadge(key, name) {
341
+ return ___EmotionJSX(Badge, {
342
+ key: key,
343
+ label: name,
344
+ variant: "readOnlyFieldBadge",
345
+ bg: "gray-700",
346
+ tabIndex: 0
347
+ });
348
+ };
337
349
  var readOnlyTextItem = function readOnlyTextItem(key, name) {
338
350
  return ___EmotionJSX(Text, {
339
351
  key: key,
@@ -362,6 +374,12 @@ var DefaultMultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
362
374
  }) : _mapInstanceProperty(initialItems).call(initialItems, function (item) {
363
375
  return readOnlyTextItem(item.key, item.name);
364
376
  }));
377
+ var onyxReadOnlyInputEntry = isReadOnly && ___EmotionJSX(Box, {
378
+ isRow: true,
379
+ gap: "xs"
380
+ }, _mapInstanceProperty(initialItems).call(initialItems, function (item) {
381
+ return readOnlyFieldBadge(item.key, item.name);
382
+ }));
365
383
  var readOnlyItems = !isReadOnly && _mapInstanceProperty(readOnlyKeys).call(readOnlyKeys, function (key) {
366
384
  var item = _findInstanceProperty(initialItems).call(initialItems, function (el) {
367
385
  return el.key === key;
@@ -371,13 +389,6 @@ var DefaultMultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
371
389
  key: item.key,
372
390
  label: item.name,
373
391
  variant: "readOnlyBadge",
374
- bg: "white",
375
- textProps: {
376
- sx: {
377
- color: 'text.primary',
378
- tabIndex: '-1'
379
- }
380
- },
381
392
  as: "li",
382
393
  tabIndex: 0
383
394
  });
@@ -409,7 +420,6 @@ var DefaultMultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
409
420
  "aria-describedby": "selectedKeysState"
410
421
  }, item.buttonProps), ___EmotionJSX(Icon, {
411
422
  icon: Clear,
412
- color: "white",
413
423
  size: 14,
414
424
  title: {
415
425
  name: 'Clear Icon'
@@ -468,6 +478,9 @@ var DefaultMultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
468
478
  if (!hasCustomValue) setFilterString('');
469
479
  };
470
480
  var inputProps = _objectSpread(_objectSpread({}, customInputProps), {}, {
481
+ containerProps: _objectSpread(_objectSpread({}, containerProps), {}, {
482
+ variant: 'forms.input.multivaluesFieldContainer'
483
+ }),
471
484
  controlProps: {
472
485
  'aria-activedescendant': activeDescendant,
473
486
  'aria-controls': (_listBoxRef$current2 = listBoxRef.current) === null || _listBoxRef$current2 === void 0 ? void 0 : _listBoxRef$current2.id,
@@ -484,11 +497,7 @@ var DefaultMultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
484
497
  placeholder: placeholder,
485
498
  wrapperProps: {
486
499
  ref: inputWrapperRef,
487
- variant: 'forms.input.multivaluesWrapper',
488
- sx: isReadOnly && {
489
- boxShadow: 'inset 0 0 0 100px #e5e9f8',
490
- border: 'none'
491
- }
500
+ variant: 'forms.input.multivaluesWrapper'
492
501
  },
493
502
  status: status
494
503
  });
@@ -502,7 +511,9 @@ var DefaultMultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
502
511
  }));
503
512
  return ___EmotionJSX(MultivaluesContext.Provider, {
504
513
  value: setActiveDescendant
505
- }, ___EmotionJSX(Box, containerProps, ___EmotionJSX(TextField, _extends({
514
+ }, ___EmotionJSX(Box, _extends({}, containerProps, {
515
+ id: "cont"
516
+ }), ___EmotionJSX(TextField, _extends({
506
517
  onBlur: handleBlur,
507
518
  onChange: function onChange(e) {
508
519
  if (!isOpen) setIsOpen(true);
@@ -536,7 +547,7 @@ var DefaultMultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
536
547
  p: 0,
537
548
  flexWrap: 'wrap'
538
549
  }
539
- }, selectedItems), readOnlyInputEntry, selectionManager.selectedKeys.size > 0 && visuallyHidden)
550
+ }, selectedItems), isOnyx ? onyxReadOnlyInputEntry : readOnlyInputEntry, selectionManager.selectedKeys.size > 0 && visuallyHidden)
540
551
  } // eslint-disable-line
541
552
  ,
542
553
  value: filterString,