@autoguru/overdrive 4.44.4-next.1 → 4.44.5

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 (96) hide show
  1. package/dist/components/Actions/Actions.js +12 -15
  2. package/dist/components/Alert/Alert.js +8 -9
  3. package/dist/components/AutoSuggest/AutoSuggest.js +114 -126
  4. package/dist/components/Badge/Badge.js +8 -9
  5. package/dist/components/Box/useBox/useBox.d.ts +2 -2
  6. package/dist/components/Box/useBox/useBox.d.ts.map +1 -1
  7. package/dist/components/BulletList/Bullet.js +4 -5
  8. package/dist/components/BulletList/BulletList.js +4 -5
  9. package/dist/components/BulletText/BulletText.js +44 -47
  10. package/dist/components/Button/Button.js +23 -24
  11. package/dist/components/CheckBox/CheckBox.js +11 -12
  12. package/dist/components/DateTimePicker/CalendarGrid.js +7 -8
  13. package/dist/components/DateTimePicker/DateTimePicker.js +9 -10
  14. package/dist/components/DividerLine/DividerLine.js +16 -19
  15. package/dist/components/DropDown/DropDownOptionsList.js +15 -18
  16. package/dist/components/Flex/FlexInline.d.ts.map +1 -1
  17. package/dist/components/Flex/FlexInline.js +2 -2
  18. package/dist/components/Flex/FlexStack.d.ts.map +1 -1
  19. package/dist/components/Flex/FlexStack.js +2 -2
  20. package/dist/components/Flex/flex.d.ts +4 -4
  21. package/dist/components/Flex/flex.js +35 -41
  22. package/dist/components/HorizontalAutoScroller/HorizontalAutoScroller.js +12 -13
  23. package/dist/components/HorizontalAutoScroller/useHorizontalAutoScroller.js +7 -8
  24. package/dist/components/Icon/Icon.js +6 -7
  25. package/dist/components/Image/ImageServerProvider.js +17 -21
  26. package/dist/components/Inline/Inline.js +13 -15
  27. package/dist/components/IntentStripe/IntentStripe.js +10 -13
  28. package/dist/components/LinearProgressIndicator/LinearProgressIndicator.js +3 -4
  29. package/dist/components/Meta/Meta.js +18 -21
  30. package/dist/components/Modal/Modal.js +13 -14
  31. package/dist/components/NumberBubble/NumberBubble.d.ts.map +1 -1
  32. package/dist/components/NumberBubble/NumberBubble.js +2 -4
  33. package/dist/components/NumberInput/useNumberInputBehaviours.js +8 -9
  34. package/dist/components/OptionGrid/OptionGrid.js +53 -57
  35. package/dist/components/OptionList/OptionListItem.js +4 -5
  36. package/dist/components/OrderedList/OrderedList.js +14 -18
  37. package/dist/components/OutsideClick/OutsideClick.js +4 -5
  38. package/dist/components/OverdriveProvider/FallbackProvider.js +3 -4
  39. package/dist/components/OverdriveProvider/OverdriveProvider.js +8 -9
  40. package/dist/components/Pagination/Bubble.js +8 -9
  41. package/dist/components/Pagination/Pagination.js +56 -63
  42. package/dist/components/Portal/Portal.js +5 -6
  43. package/dist/components/ProgressBar/ProgressBar.js +16 -19
  44. package/dist/components/ProgressBarGroup/ProgressBarGroup.js +7 -8
  45. package/dist/components/ProgressSpinner/ProgressSpinner.js +23 -26
  46. package/dist/components/Radio/Radio.js +6 -7
  47. package/dist/components/Radio/RadioGroup.js +7 -8
  48. package/dist/components/Section/Section.js +12 -15
  49. package/dist/components/SimplePagination/SimplePagination.js +5 -6
  50. package/dist/components/SliderProgress/ProgressStep.js +9 -10
  51. package/dist/components/SliderProgress/SliderProgress.js +25 -28
  52. package/dist/components/Stack/Stack.js +9 -10
  53. package/dist/components/StandardModal/StandardModal.js +11 -12
  54. package/dist/components/StarRating/StarRating.js +32 -36
  55. package/dist/components/Stepper/Stepper.js +45 -50
  56. package/dist/components/Table/Table.js +20 -23
  57. package/dist/components/Table/TableCell.js +8 -9
  58. package/dist/components/Table/TableHeadCell.js +10 -11
  59. package/dist/components/Table/TableRow.js +10 -13
  60. package/dist/components/Table/TableRowGroup.js +8 -11
  61. package/dist/components/Table/context.js +5 -6
  62. package/dist/components/Tabs/Tab.js +6 -7
  63. package/dist/components/Tabs/TabList.js +5 -6
  64. package/dist/components/Tabs/TabPane.js +4 -5
  65. package/dist/components/Tabs/TabPanes.js +18 -21
  66. package/dist/components/Tabs/Tabs.js +7 -8
  67. package/dist/components/TextContainer/TextContainer.js +21 -24
  68. package/dist/components/Toaster/Toast.js +65 -98
  69. package/dist/components/Tooltip/Tooltip.js +10 -11
  70. package/dist/components/Tooltip/useTooltip/useTooltip.js +11 -13
  71. package/dist/components/private/CheckableBase/CheckableBase.js +12 -13
  72. package/dist/components/private/InputBase/HintText.js +7 -8
  73. package/dist/components/private/InputBase/NotchedBase.js +17 -18
  74. package/dist/components/private/InputBase/withEnhancedInput.js +182 -187
  75. package/dist/hooks/useAnimationEvents/useAnimationEvents.js +5 -6
  76. package/dist/hooks/useAttachedBoxes/useAttachedBoxes.js +9 -10
  77. package/dist/hooks/useMedia/useMedia.js +1 -2
  78. package/dist/hooks/useWindowHeightFill/useWindowHeightFill.js +8 -9
  79. package/dist/styles/sprinkles.css.d.ts +46 -46
  80. package/dist/styles/sprinkles.css.js +9 -18
  81. package/dist/styles/typography.js +28 -31
  82. package/dist/themes/helpers.js +13 -15
  83. package/dist/themes/makeTheme.js +8 -15
  84. package/dist/types/index.d.ts +3 -0
  85. package/dist/types/index.d.ts.map +1 -1
  86. package/dist/utils/css.js +1 -2
  87. package/dist/utils/dataAttrs.js +1 -2
  88. package/dist/utils/index.js +3 -9
  89. package/dist/utils/mapTokenToProperty.js +5 -14
  90. package/dist/utils/number.js +1 -2
  91. package/dist/utils/responsiveProps.css.js +1 -2
  92. package/dist/utils/sprinkles.js +1 -2
  93. package/package.json +2 -2
  94. package/dist/components/NumberBubble/NumberBubble.css.d.ts +0 -2
  95. package/dist/components/NumberBubble/NumberBubble.css.d.ts.map +0 -1
  96. package/dist/components/NumberBubble/NumberBubble.css.js +0 -14
@@ -5,19 +5,16 @@ import flattenChildren from 'react-keyed-flatten-children';
5
5
  import { Column } from "../Columns/Column.js";
6
6
  import { Columns } from "../Columns/Columns.js";
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
- export const Actions = _ref => {
9
- let {
10
- children,
11
- noWrap,
12
- wrappingDirection
13
- } = _ref;
14
- return /*#__PURE__*/_jsx(Columns, {
15
- space: "3",
16
- noWrap: noWrap,
17
- wrappingDirection: wrappingDirection,
18
- children: Children.map(flattenChildren(children), child => /*#__PURE__*/_jsx(Column, {
19
- children: child
20
- }))
21
- });
22
- };
8
+ export const Actions = ({
9
+ children,
10
+ noWrap,
11
+ wrappingDirection
12
+ }) => /*#__PURE__*/_jsx(Columns, {
13
+ space: "3",
14
+ noWrap: noWrap,
15
+ wrappingDirection: wrappingDirection,
16
+ children: Children.map(flattenChildren(children), child => /*#__PURE__*/_jsx(Column, {
17
+ children: child
18
+ }))
19
+ });
23
20
  export default Actions;
@@ -18,15 +18,14 @@ const iconMapForIntent = {
18
18
  success: CheckCircleIcon,
19
19
  warning: AlertIcon
20
20
  };
21
- export const Alert = _ref => {
22
- let {
23
- children,
24
- className = '',
25
- intent = 'success',
26
- inline = false,
27
- onRequestClose,
28
- dismissible = typeof onRequestClose === 'function'
29
- } = _ref;
21
+ export const Alert = ({
22
+ children,
23
+ className = '',
24
+ intent = 'success',
25
+ inline = false,
26
+ onRequestClose,
27
+ dismissible = typeof onRequestClose === 'function'
28
+ }) => {
30
29
  return /*#__PURE__*/_jsxs(Box, {
31
30
  className: clsx(className, sprinklesLegacyText({
32
31
  color: intent
@@ -383,74 +383,71 @@ const AutoSuggestInput = /*#__PURE__*/forwardRef(function AutoSuggestInput(_ref3
383
383
  })]
384
384
  });
385
385
  });
386
- const SuggestionsList = _ref4 => {
387
- let {
388
- className = '',
389
- suggestionListId,
390
- placeholder,
391
- highlightIndex,
392
- suggestions,
393
- highlightRef,
394
- itemRenderer,
395
- onChange,
396
- dispatch,
397
- suggestionListRef
398
- } = _ref4;
399
- return /*#__PURE__*/_jsxs(Box, {
400
- as: "ul",
401
- ref: suggestionListRef,
402
- backgroundColour: "white",
403
- className: [styles.suggestionList.defaults, className],
404
- id: suggestionListId,
405
- "aria-label": placeholder,
406
- role: "listbox",
407
- children: [/*#__PURE__*/_jsx("div", {
408
- className: styles.spacer
409
- }), suggestions.map((suggestion, idx) => {
410
- const highlight = highlightIndex === idx;
411
- return /*#__PURE__*/_jsx(Box, {
412
- as: "li",
413
- ref: highlight ? highlightRef : undefined,
414
- id: getSuggestionId(suggestionListId, idx),
415
- role: "option",
416
- "aria-selected": highlight,
417
- "aria-label": suggestion.text,
418
- className: clsx(styles.suggestionListItem.default, {
419
- [styles.suggestionListItem.skipped]: suggestion.skip
420
- }),
421
- onMouseDown: event => /* This is so a blur doesnt fire from the input when you click */
422
- event.preventDefault(),
423
- onMouseMove: () => {
424
- if (suggestion.skip) return;
386
+ const SuggestionsList = ({
387
+ className = '',
388
+ suggestionListId,
389
+ placeholder,
390
+ highlightIndex,
391
+ suggestions,
392
+ highlightRef,
393
+ itemRenderer,
394
+ onChange,
395
+ dispatch,
396
+ suggestionListRef
397
+ }) => /*#__PURE__*/_jsxs(Box, {
398
+ as: "ul",
399
+ ref: suggestionListRef,
400
+ backgroundColour: "white",
401
+ className: [styles.suggestionList.defaults, className],
402
+ id: suggestionListId,
403
+ "aria-label": placeholder,
404
+ role: "listbox",
405
+ children: [/*#__PURE__*/_jsx("div", {
406
+ className: styles.spacer
407
+ }), suggestions.map((suggestion, idx) => {
408
+ const highlight = highlightIndex === idx;
409
+ return /*#__PURE__*/_jsx(Box, {
410
+ as: "li",
411
+ ref: highlight ? highlightRef : undefined,
412
+ id: getSuggestionId(suggestionListId, idx),
413
+ role: "option",
414
+ "aria-selected": highlight,
415
+ "aria-label": suggestion.text,
416
+ className: clsx(styles.suggestionListItem.default, {
417
+ [styles.suggestionListItem.skipped]: suggestion.skip
418
+ }),
419
+ onMouseDown: event => /* This is so a blur doesnt fire from the input when you click */
420
+ event.preventDefault(),
421
+ onMouseMove: () => {
422
+ if (suggestion.skip) return;
425
423
 
426
- /*
427
- This has to be mouse move, so if you're hovering an item, and then arrow keys, we =
428
- dont want yo trigger a mouse enter and highlight it instead
429
- */
430
- dispatch({
431
- type: ActionTypes.SUGGESTION_MOUSE_ENTER,
432
- index: idx
433
- });
434
- },
435
- onClick: () => {
436
- if (suggestion.skip) return;
437
- if (typeof onChange === 'function') onChange(suggestion);
438
- dispatch({
439
- type: ActionTypes.SUGGESTION_MOUSE_CLICK
440
- });
441
- },
442
- children: typeof itemRenderer === 'function' && itemRenderer({
443
- suggestions,
444
- highlight,
445
- value: suggestion
446
- })
447
- }, suggestion.text.concat(String(idx)));
448
- }), /*#__PURE__*/_jsx("div", {
449
- className: styles.spacer
450
- })]
451
- });
452
- };
453
- const AutoSuggestInputPrimitive = withEnhancedInput(_ref5 => {
424
+ /*
425
+ This has to be mouse move, so if you're hovering an item, and then arrow keys, we =
426
+ dont want yo trigger a mouse enter and highlight it instead
427
+ */
428
+ dispatch({
429
+ type: ActionTypes.SUGGESTION_MOUSE_ENTER,
430
+ index: idx
431
+ });
432
+ },
433
+ onClick: () => {
434
+ if (suggestion.skip) return;
435
+ if (typeof onChange === 'function') onChange(suggestion);
436
+ dispatch({
437
+ type: ActionTypes.SUGGESTION_MOUSE_CLICK
438
+ });
439
+ },
440
+ children: typeof itemRenderer === 'function' && itemRenderer({
441
+ suggestions,
442
+ highlight,
443
+ value: suggestion
444
+ })
445
+ }, suggestion.text.concat(String(idx)));
446
+ }), /*#__PURE__*/_jsx("div", {
447
+ className: styles.spacer
448
+ })]
449
+ });
450
+ const AutoSuggestInputPrimitive = withEnhancedInput(_ref4 => {
454
451
  let {
455
452
  field: {
456
453
  className: fieldClassName
@@ -464,9 +461,9 @@ const AutoSuggestInputPrimitive = withEnhancedInput(_ref5 => {
464
461
  isFocused,
465
462
  className,
466
463
  size
467
- } = _ref5,
468
- field = _objectWithoutProperties(_ref5.field, _excluded4),
469
- rest = _objectWithoutProperties(_ref5, _excluded5);
464
+ } = _ref4,
465
+ field = _objectWithoutProperties(_ref4.field, _excluded4),
466
+ rest = _objectWithoutProperties(_ref4, _excluded5);
470
467
  let focusTimeout;
471
468
  const ref = useRef(null);
472
469
  const focusHandler = useCallback(() => {
@@ -540,62 +537,53 @@ const AutoSuggestInputPrimitive = withEnhancedInput(_ref5 => {
540
537
  withSuffixIcon: false
541
538
  });
542
539
  const getSuggestionId = (id, index) => `${id}-option-${index}`;
543
- const SuggestionListFlyout = _ref6 => {
544
- let {
545
- id,
546
- alignment,
547
- isOpen,
548
- triggerOffset,
549
- triggerRef,
550
- autoWidth,
551
- children
552
- } = _ref6;
553
- return /*#__PURE__*/_jsx(Positioner, {
554
- id: id,
555
- triggerRef: triggerRef,
556
- alignment: alignment,
557
- isOpen: isOpen,
558
- triggerOffset: triggerOffset,
559
- role: "listbox",
560
- children: /*#__PURE__*/_jsx(Box, {
561
- borderWidth: "1",
562
- borderColour: "gray",
563
- borderRadius: "md",
564
- backgroundColour: "white",
565
- boxShadow: "4",
566
- style: {
567
- width: triggerRef.current && !autoWidth ? triggerRef.current.clientWidth : undefined
568
- },
569
- onMouseDown: event => event.preventDefault(),
570
- children: children
571
- })
572
- });
573
- };
574
- const defaultItemRenderer = _ref7 => {
575
- let {
576
- value,
577
- highlight
578
- } = _ref7;
579
- return /*#__PURE__*/_jsx(DefaultSuggestion, {
580
- highlight: highlight,
581
- text: value.text
582
- });
583
- };
584
- const DefaultSuggestion = _ref8 => {
585
- let {
586
- text,
587
- highlight
588
- } = _ref8;
589
- return /*#__PURE__*/_jsx("div", {
590
- className: clsx(styles.suggestion, {
591
- [styles.suggestionHighlight]: highlight
592
- }),
593
- children: /*#__PURE__*/_jsx(Text, {
594
- as: "span",
595
- children: text
596
- })
597
- });
598
- };
540
+ const SuggestionListFlyout = ({
541
+ id,
542
+ alignment,
543
+ isOpen,
544
+ triggerOffset,
545
+ triggerRef,
546
+ autoWidth,
547
+ children
548
+ }) => /*#__PURE__*/_jsx(Positioner, {
549
+ id: id,
550
+ triggerRef: triggerRef,
551
+ alignment: alignment,
552
+ isOpen: isOpen,
553
+ triggerOffset: triggerOffset,
554
+ role: "listbox",
555
+ children: /*#__PURE__*/_jsx(Box, {
556
+ borderWidth: "1",
557
+ borderColour: "gray",
558
+ borderRadius: "md",
559
+ backgroundColour: "white",
560
+ boxShadow: "4",
561
+ style: {
562
+ width: triggerRef.current && !autoWidth ? triggerRef.current.clientWidth : undefined
563
+ },
564
+ onMouseDown: event => event.preventDefault(),
565
+ children: children
566
+ })
567
+ });
568
+ const defaultItemRenderer = ({
569
+ value,
570
+ highlight
571
+ }) => /*#__PURE__*/_jsx(DefaultSuggestion, {
572
+ highlight: highlight,
573
+ text: value.text
574
+ });
575
+ const DefaultSuggestion = ({
576
+ text,
577
+ highlight
578
+ }) => /*#__PURE__*/_jsx("div", {
579
+ className: clsx(styles.suggestion, {
580
+ [styles.suggestionHighlight]: highlight
581
+ }),
582
+ children: /*#__PURE__*/_jsx(Text, {
583
+ as: "span",
584
+ children: text
585
+ })
586
+ });
599
587
  const getNextIndex = (direction, currentIndex, suggestions) => {
600
588
  if (!Array.isArray(suggestions) || suggestions.length === 0) return -1;
601
589
  const maxIndex = suggestions.length - 1;
@@ -11,15 +11,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
11
11
  *
12
12
  * To apply badge styling to an element directly the `styledBadge` recipe can be used.
13
13
  */
14
- export const Badge = _ref => {
15
- let {
16
- label,
17
- colour = 'neutral',
18
- look = 'standard',
19
- size = 'standard',
20
- className,
21
- testId
22
- } = _ref;
14
+ export const Badge = ({
15
+ label,
16
+ colour = 'neutral',
17
+ look = 'standard',
18
+ size = 'standard',
19
+ className,
20
+ testId
21
+ }) => {
23
22
  !['string', 'number'].includes(typeof label) ? process.env.NODE_ENV !== "production" ? invariant(false, 'Badge `label` can only contain strings or numbers') : invariant(false) : void 0;
24
23
  const inverted = look === 'inverted';
25
24
  return /*#__PURE__*/_jsx(Box, {
@@ -1,8 +1,8 @@
1
1
  import type { AllHTMLAttributes, ElementType } from 'react';
2
2
  import { type ElementStylesProps } from '../../../styles/elementStyles';
3
- import type { ConsistentComponentProps, OdComponent } from '../../../types';
3
+ import type { ConsistentComponentProps, DataAttributes, OdComponent } from '../../../types';
4
4
  type FilteredAttributes = Omit<AllHTMLAttributes<HTMLElement>, 'as' | 'className' | 'color' | 'height' | 'is' | 'size' | 'width'>;
5
- export interface UseBoxProps extends FilteredAttributes, ConsistentComponentProps, OdComponent, ElementStylesProps {
5
+ export interface UseBoxProps extends FilteredAttributes, ConsistentComponentProps, OdComponent, ElementStylesProps, DataAttributes {
6
6
  }
7
7
  export declare const useBox: ({ as, className: incomingClassName, odComponent, testId, display, height, maxWidth, minWidth, overflow, overflowX, overflowY, pointerEvents, position, size, userSelect, useVar, width, bg, backgroundColor, backgroundColour, boxShadow, color, colour, fg, opacity, fontSize, fontWeight, lineHeight, text, textAlign, textTransform, textWrap, wordBreak, borderRadius, borderColor, borderColorX, borderColorY, borderStyle, borderWidth, borderWidthX, borderWidthY, borderBottomColor, borderBottomStyle, borderBottomWidth, borderLeftColor, borderLeftStyle, borderLeftWidth, borderRightColor, borderRightStyle, borderRightWidth, borderStyleBottom, borderStyleLeft, borderStyleRight, borderStyleTop, borderTopColor, borderTopStyle, borderTopWidth, borderWidthTop, borderWidthRight, borderWidthBottom, borderWidthLeft, borderColour, borderColourX, borderColourY, borderBottomColour, borderLeftColour, borderRightColour, borderTopColour, alignContent, alignItems, alignSelf, columnGap, flexDirection, flexGrow, flexShrink, flexWrap, gap, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumns, justifyContent, placeItems, rowGap, order, m, mb, ml, mr, mt, mx, my, margin, marginX, marginY, marginBottom, marginLeft, marginRight, marginTop, p, pb, pl, pr, pt, px, py, padding, paddingX, paddingY, paddingBottom, paddingLeft, paddingRight, paddingTop, ...elementProps }: UseBoxProps) => {
8
8
  Component: ElementType;
@@ -1 +1 @@
1
- {"version":3,"file":"useBox.d.ts","sourceRoot":"","sources":["../../../../lib/components/Box/useBox/useBox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,EAEN,KAAK,kBAAkB,EACvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,wBAAwB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG5E,KAAK,kBAAkB,GAAG,IAAI,CAC7B,iBAAiB,CAAC,WAAW,CAAC,EAC9B,IAAI,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,IAAI,GAAG,MAAM,GAAG,OAAO,CACjE,CAAC;AAEF,MAAM,WAAW,WAChB,SAAQ,kBAAkB,EACzB,wBAAwB,EACxB,WAAW,EACX,kBAAkB;CAAG;AAEvB,eAAO,MAAM,MAAM,GAAI,+0CA8HpB,WAAW;eAqIK,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI7B,CAAC"}
1
+ {"version":3,"file":"useBox.d.ts","sourceRoot":"","sources":["../../../../lib/components/Box/useBox/useBox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,EAEN,KAAK,kBAAkB,EACvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACX,wBAAwB,EACxB,cAAc,EACd,WAAW,EACX,MAAM,gBAAgB,CAAC;AAGxB,KAAK,kBAAkB,GAAG,IAAI,CAC7B,iBAAiB,CAAC,WAAW,CAAC,EAC9B,IAAI,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,IAAI,GAAG,MAAM,GAAG,OAAO,CACjE,CAAC;AAEF,MAAM,WAAW,WAChB,SAAQ,kBAAkB,EACzB,wBAAwB,EACxB,WAAW,EACX,kBAAkB,EAClB,cAAc;CAAG;AAEnB,eAAO,MAAM,MAAM,GAAI,+0CA8HpB,WAAW;eAqIK,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI7B,CAAC"}
@@ -27,12 +27,11 @@ const getBulletCls = (styles, type) => {
27
27
  }
28
28
  }
29
29
  };
30
- export const Bullet = _ref => {
30
+ export const Bullet = ({
31
+ children,
32
+ className
33
+ }) => {
31
34
  var _getBulletCls;
32
- let {
33
- children,
34
- className
35
- } = _ref;
36
35
  return /*#__PURE__*/_jsx(Box, {
37
36
  as: "li",
38
37
  className: [styles.root.default, (_getBulletCls = getBulletCls(styles, bulletMap[useContext(BulletListContext)])) !== null && _getBulletCls !== void 0 ? _getBulletCls : '', {
@@ -7,11 +7,10 @@ import { Box } from "../Box/index.js";
7
7
  import * as styles from "./BulletList.css.js";
8
8
  import { BulletListContext, bulletMap } from "./context.js";
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
- export const BulletList = _ref => {
11
- let {
12
- children,
13
- className
14
- } = _ref;
10
+ export const BulletList = ({
11
+ children,
12
+ className
13
+ }) => {
15
14
  const stack = useContext(BulletListContext);
16
15
  return /*#__PURE__*/_jsx(Box, {
17
16
  as: "ul",
@@ -6,51 +6,48 @@ import { Inline } from "../Inline/Inline.js";
6
6
  import { Text } from "../Text/Text.js";
7
7
  import * as styles from "./BulletText.css.js";
8
8
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
- export const BulletText = _ref => {
10
- let {
11
- as,
12
- variant = 'primary',
13
- children,
14
- bullet: Bullet = '•'
15
- } = _ref;
16
- return /*#__PURE__*/_jsxs(Inline, {
17
- as: as,
18
- noWrap: true,
19
- space: "3",
20
- alignX: "start",
21
- alignY: "center",
22
- children: [/*#__PURE__*/isValidElement(Bullet) ? /*#__PURE__*/_jsx(Box, {
23
- position: "relative",
24
- flexShrink: 0,
9
+ export const BulletText = ({
10
+ as,
11
+ variant = 'primary',
12
+ children,
13
+ bullet: Bullet = '•'
14
+ }) => /*#__PURE__*/_jsxs(Inline, {
15
+ as: as,
16
+ noWrap: true,
17
+ space: "3",
18
+ alignX: "start",
19
+ alignY: "center",
20
+ children: [/*#__PURE__*/isValidElement(Bullet) ? /*#__PURE__*/_jsx(Box, {
21
+ position: "relative",
22
+ flexShrink: 0,
23
+ children: Bullet
24
+ }) : /*#__PURE__*/_jsx(Box, {
25
+ position: "relative",
26
+ flexShrink: "0",
27
+ display: "flex",
28
+ alignItems: "center",
29
+ justifyContent: "center",
30
+ className: [styles.bullet, {
31
+ [styles.primary]: variant === 'primary',
32
+ [styles.secondary]: variant !== 'primary'
33
+ }],
34
+ borderRadius: "pill",
35
+ children: /*#__PURE__*/_jsx(Text, {
36
+ className: {
37
+ [styles.primaryText]: variant === 'primary',
38
+ [styles.secondaryText]: variant !== 'primary'
39
+ },
40
+ as: "span",
41
+ size: "2",
25
42
  children: Bullet
26
- }) : /*#__PURE__*/_jsx(Box, {
27
- position: "relative",
28
- flexShrink: "0",
29
- display: "flex",
30
- alignItems: "center",
31
- justifyContent: "center",
32
- className: [styles.bullet, {
33
- [styles.primary]: variant === 'primary',
34
- [styles.secondary]: variant !== 'primary'
35
- }],
36
- borderRadius: "pill",
37
- children: /*#__PURE__*/_jsx(Text, {
38
- className: {
39
- [styles.primaryText]: variant === 'primary',
40
- [styles.secondaryText]: variant !== 'primary'
41
- },
42
- as: "span",
43
- size: "2",
44
- children: Bullet
45
- })
46
- }), /*#__PURE__*/_jsx(Box, {
47
- flexGrow: "1",
48
- children: /*#__PURE__*/_jsx(Text, {
49
- as: "span",
50
- size: "4",
51
- display: "block",
52
- children: children
53
- })
54
- })]
55
- });
56
- };
43
+ })
44
+ }), /*#__PURE__*/_jsx(Box, {
45
+ flexGrow: "1",
46
+ children: /*#__PURE__*/_jsx(Text, {
47
+ as: "span",
48
+ size: "4",
49
+ display: "block",
50
+ children: children
51
+ })
52
+ })]
53
+ });
@@ -34,30 +34,29 @@ const fontWeight = {
34
34
  small: 'semiBold',
35
35
  medium: 'semiBold'
36
36
  };
37
- export const Button = /*#__PURE__*/forwardRef((_ref, ref) => {
38
- let {
39
- children,
40
- className = '',
41
- disabled = false,
42
- id,
43
- as: Component = 'button',
44
- withDoubleClicks = false,
45
- isLoading = false,
46
- isFullWidth = false,
47
- lang,
48
- minimal = false,
49
- onBlur,
50
- onClick: incomingOnClick,
51
- onFocus,
52
- onMouseEnter,
53
- onMouseLeave,
54
- rounded = false,
55
- size = 'medium',
56
- type = 'button',
57
- variant = 'secondary',
58
- 'aria-label': ariaLabel,
59
- testId
60
- } = _ref;
37
+ export const Button = /*#__PURE__*/forwardRef(({
38
+ children,
39
+ className = '',
40
+ disabled = false,
41
+ id,
42
+ as: Component = 'button',
43
+ withDoubleClicks = false,
44
+ isLoading = false,
45
+ isFullWidth = false,
46
+ lang,
47
+ minimal = false,
48
+ onBlur,
49
+ onClick: incomingOnClick,
50
+ onFocus,
51
+ onMouseEnter,
52
+ onMouseLeave,
53
+ rounded = false,
54
+ size = 'medium',
55
+ type = 'button',
56
+ variant = 'secondary',
57
+ 'aria-label': ariaLabel,
58
+ testId
59
+ }, ref) => {
61
60
  const language = _objectSpread(_objectSpread({}, defaultEnglish), lang);
62
61
  const {
63
62
  isSingleIconChild,
@@ -14,18 +14,17 @@ import { CheckableBase } from "../private/CheckableBase/CheckableBase.js";
14
14
  import { checkableIndicator } from "../private/CheckableBase/CheckableBase.css.js";
15
15
  import * as styles from "./CheckBox.css.js";
16
16
  import { jsx as _jsx } from "react/jsx-runtime";
17
- export const CheckBox = /*#__PURE__*/forwardRef((_ref, ref) => {
18
- let {
19
- value,
20
- className = '',
21
- name = '',
22
- disabled = false,
23
- checked = false,
24
- isIndeterminate = false,
25
- onClick = noop,
26
- onChange = noop,
27
- children
28
- } = _ref;
17
+ export const CheckBox = /*#__PURE__*/forwardRef(({
18
+ value,
19
+ className = '',
20
+ name = '',
21
+ disabled = false,
22
+ checked = false,
23
+ isIndeterminate = false,
24
+ onClick = noop,
25
+ onChange = noop,
26
+ children
27
+ }, ref) => {
29
28
  const internalRef = useRef(null);
30
29
  useEffect(() => {
31
30
  if (internalRef.current) {
@@ -12,11 +12,10 @@ import { useCalendarCell, useCalendarGrid, useLocale } from 'react-aria';
12
12
  import { dataAttrs } from "../../utils/dataAttrs.js";
13
13
  import { calendarGridStyle, styledCell, tdStyle, thStyle } from "./DateTimePicker.css.js";
14
14
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
- const CalendarCell = _ref => {
16
- let {
17
- state,
18
- date
19
- } = _ref;
15
+ const CalendarCell = ({
16
+ state,
17
+ date
18
+ }) => {
20
19
  const ref = useRef(null);
21
20
  const {
22
21
  cellProps,
@@ -44,11 +43,11 @@ const CalendarCell = _ref => {
44
43
  }))
45
44
  }));
46
45
  };
47
- export const CalendarGrid = _ref2 => {
46
+ export const CalendarGrid = _ref => {
48
47
  let {
49
48
  state
50
- } = _ref2,
51
- props = _objectWithoutProperties(_ref2, _excluded);
49
+ } = _ref,
50
+ props = _objectWithoutProperties(_ref, _excluded);
52
51
  const {
53
52
  locale
54
53
  } = useLocale();
@@ -52,17 +52,16 @@ function createCalendar(identifier) {
52
52
  * This component implements the react-aria `useCalendar` hook and supports controlled state as well
53
53
  * ([docs](https://react-spectrum.adobe.com/react-aria/useCalendar.html))
54
54
  */
55
- export const DateTimePicker = _ref => {
55
+ export const DateTimePicker = ({
56
+ allowPastDate = false,
57
+ calendar,
58
+ lang,
59
+ onChange,
60
+ timeOptions,
61
+ title,
62
+ testId
63
+ }) => {
56
64
  var _lang$dateLabel, _lang$prevLabel, _lang$nextLabel, _lang$timeLabel;
57
- let {
58
- allowPastDate = false,
59
- calendar,
60
- lang,
61
- onChange,
62
- timeOptions,
63
- title,
64
- testId
65
- } = _ref;
66
65
  const selectedDate = useRef(null);
67
66
  const selectedTimeOption = useRef(null);
68
67
  const handleChange = () => {