@procore/core-react 11.8.0-rc.5 → 11.8.0-rc.8

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 (139) hide show
  1. package/dist/Dropdown/Dropdown.js +4 -0
  2. package/dist/Dropdown/Dropdown.js.map +1 -1
  3. package/dist/Field/Field.d.ts +12 -0
  4. package/dist/Field/Field.js +50 -0
  5. package/dist/Field/Field.js.map +1 -0
  6. package/dist/Field/Field.styles.d.ts +3 -0
  7. package/dist/Field/Field.styles.js +11 -0
  8. package/dist/Field/Field.styles.js.map +1 -0
  9. package/dist/Field/index.d.ts +1 -0
  10. package/dist/Field/index.js +2 -0
  11. package/dist/Field/index.js.map +1 -0
  12. package/dist/Form/Form.js +6 -3
  13. package/dist/Form/Form.js.map +1 -1
  14. package/dist/Form/Form.styles.d.ts +5 -2
  15. package/dist/Form/Form.styles.js +6 -4
  16. package/dist/Form/Form.styles.js.map +1 -1
  17. package/dist/Modal/storyHelpers.d.ts +1 -1
  18. package/dist/Modal/storyHelpers.js +6 -2
  19. package/dist/Modal/storyHelpers.js.map +1 -1
  20. package/dist/PageLayout/PageLayout.utils.js +2 -1
  21. package/dist/PageLayout/PageLayout.utils.js.map +1 -1
  22. package/dist/Select/Select.js +4 -0
  23. package/dist/Select/Select.js.map +1 -1
  24. package/dist/Semantic/Semantic.d.ts +4 -0
  25. package/dist/Semantic/Semantic.js +5 -1
  26. package/dist/Semantic/Semantic.js.map +1 -1
  27. package/dist/Semantic/Semantic.styles.d.ts +9 -0
  28. package/dist/Semantic/Semantic.styles.js +26 -8
  29. package/dist/Semantic/Semantic.styles.js.map +1 -1
  30. package/dist/Semantic/index.d.ts +1 -1
  31. package/dist/Semantic/index.js +1 -1
  32. package/dist/Semantic/index.js.map +1 -1
  33. package/dist/SuperSelect/SuperSelect.components.d.ts +36 -0
  34. package/dist/SuperSelect/SuperSelect.components.js +249 -0
  35. package/dist/SuperSelect/SuperSelect.components.js.map +1 -0
  36. package/dist/SuperSelect/SuperSelect.d.ts +142 -46
  37. package/dist/SuperSelect/SuperSelect.js +50 -203
  38. package/dist/SuperSelect/SuperSelect.js.map +1 -1
  39. package/dist/SuperSelect/SuperSelect.presets.d.ts +2 -0
  40. package/dist/SuperSelect/SuperSelect.presets.js +104 -0
  41. package/dist/SuperSelect/SuperSelect.presets.js.map +1 -0
  42. package/dist/SuperSelect/SuperSelect.styles.d.ts +61 -26
  43. package/dist/SuperSelect/SuperSelect.styles.js +127 -25
  44. package/dist/SuperSelect/SuperSelect.styles.js.map +1 -1
  45. package/dist/SuperSelect/SuperSelect.types.d.ts +19 -61
  46. package/dist/SuperSelect/SuperSelect.types.js.map +1 -1
  47. package/dist/SuperSelect/useSuperSelect.d.ts +417 -47
  48. package/dist/SuperSelect/useSuperSelect.js +230 -116
  49. package/dist/SuperSelect/useSuperSelect.js.map +1 -1
  50. package/dist/ThumbnailGrid/ThumbnailGrid.js +0 -1
  51. package/dist/ThumbnailGrid/ThumbnailGrid.js.map +1 -1
  52. package/dist/TieredSelect/LeafSelectionTieredSelect.js +10 -3
  53. package/dist/TieredSelect/LeafSelectionTieredSelect.js.map +1 -1
  54. package/dist/TieredSelect/TierSelectionTieredSelect.js +11 -4
  55. package/dist/TieredSelect/TierSelectionTieredSelect.js.map +1 -1
  56. package/dist/TieredSelect/TieredSelectMenu.js +1 -1
  57. package/dist/TieredSelect/TieredSelectMenu.js.map +1 -1
  58. package/dist/Typeahead/Typeahead.js +1 -1
  59. package/dist/Typeahead/Typeahead.js.map +1 -1
  60. package/dist/Typography/Typography.styles.d.ts +1 -2
  61. package/dist/Typography/Typography.styles.js +6 -3
  62. package/dist/Typography/Typography.styles.js.map +1 -1
  63. package/dist/Typography/Typography.types.d.ts +1 -1
  64. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  65. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +22 -22
  66. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  67. package/dist/_typedoc/Banner/Banner.types.json +13 -13
  68. package/dist/_typedoc/Box/Box.types.json +68 -68
  69. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  70. package/dist/_typedoc/Button/Button.types.json +11 -11
  71. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  72. package/dist/_typedoc/Card/Card.types.json +6 -6
  73. package/dist/_typedoc/Checkbox/Checkbox.types.json +7 -7
  74. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  75. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  76. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  77. package/dist/_typedoc/DetailPage/DetailPage.types.json +4 -4
  78. package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
  79. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +29 -29
  80. package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -41
  81. package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
  82. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  83. package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
  84. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  85. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  86. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  87. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  88. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  89. package/dist/_typedoc/Form/Form.types.json +694 -694
  90. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  91. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
  92. package/dist/_typedoc/Input/Input.types.json +2 -2
  93. package/dist/_typedoc/Link/Link.types.json +4 -4
  94. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  95. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  96. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +71 -71
  97. package/dist/_typedoc/Modal/Modal.types.json +28 -28
  98. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
  99. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  100. package/dist/_typedoc/NumberInput/NumberInput.types.json +43 -43
  101. package/dist/_typedoc/PageLayout/PageLayout.types.json +22 -22
  102. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  103. package/dist/_typedoc/Panel/Panel.types.json +27 -27
  104. package/dist/_typedoc/Pill/Pill.types.json +1 -1
  105. package/dist/_typedoc/PillSelect/PillSelect.types.json +46 -46
  106. package/dist/_typedoc/Popover/Popover.types.json +10 -10
  107. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
  108. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  109. package/dist/_typedoc/Required/Required.types.json +5 -5
  110. package/dist/_typedoc/Search/Search.types.json +18 -18
  111. package/dist/_typedoc/Section/Section.types.json +14 -14
  112. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +20 -20
  113. package/dist/_typedoc/Select/Select.types.json +31 -31
  114. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  115. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  116. package/dist/_typedoc/Switch/Switch.types.json +3 -3
  117. package/dist/_typedoc/Table/Table.types.json +94 -94
  118. package/dist/_typedoc/Tabs/Tabs.types.json +17 -17
  119. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +10 -10
  120. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  121. package/dist/_typedoc/TextEditor/TextEditor.types.json +7 -7
  122. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +3 -3
  123. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  124. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
  125. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
  126. package/dist/_typedoc/Tile/Tile.types.json +30 -30
  127. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  128. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +3 -3
  129. package/dist/_typedoc/Token/Token.types.json +4 -4
  130. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  131. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  132. package/dist/_typedoc/Tree/Tree.types.json +86 -86
  133. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  134. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  135. package/dist/_typedoc/_utils/types.json +3 -3
  136. package/package.json +5 -3
  137. package/dist/SuperSelect/SuperSelectDraggableOptions.d.ts +0 -12
  138. package/dist/SuperSelect/SuperSelectDraggableOptions.js +0 -61
  139. package/dist/SuperSelect/SuperSelectDraggableOptions.js.map +0 -1
@@ -5,3 +5,7 @@ export declare const H2: React.ForwardRefExoticComponent<HeadingAttributes & Rea
5
5
  export declare const H3: React.ForwardRefExoticComponent<HeadingAttributes & React.RefAttributes<HTMLHeadingElement>>;
6
6
  export declare const P: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
7
7
  export declare const UL: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLUListElement> & React.RefAttributes<HTMLUListElement>>;
8
+ export declare const Label: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLLabelElement> & {
9
+ htmlFor?: string | undefined;
10
+ block?: boolean | undefined;
11
+ } & React.RefAttributes<HTMLLabelElement>>;
@@ -10,7 +10,7 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import React from 'react';
13
- import { StyledH1, StyledH2, StyledH3, StyledP, StyledUL, } from './Semantic.styles';
13
+ import { StyledH1, StyledH2, StyledH3, StyledLabel, StyledP, StyledUL, } from './Semantic.styles';
14
14
  export var H1 = React.forwardRef(function H1(props, ref) {
15
15
  return React.createElement(StyledH1, __assign({}, props, { ref: ref }));
16
16
  });
@@ -26,9 +26,13 @@ export var P = React.forwardRef(function P(props, ref) {
26
26
  export var UL = React.forwardRef(function UL(props, ref) {
27
27
  return React.createElement(StyledUL, __assign({}, props, { ref: ref }));
28
28
  });
29
+ export var Label = React.forwardRef(function Label(props, ref) {
30
+ return React.createElement(StyledLabel, __assign({}, props, { ref: ref }));
31
+ });
29
32
  H1.displayName = 'H1';
30
33
  H2.displayName = 'H2';
31
34
  H3.displayName = 'H3';
32
35
  P.displayName = 'P';
33
36
  UL.displayName = 'UL';
37
+ Label.displayName = 'Label';
34
38
  //# sourceMappingURL=Semantic.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Semantic.js","sourceRoot":"","sources":["../../src/Semantic/Semantic.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,QAAQ,GACT,MAAM,mBAAmB,CAAA;AAE1B,MAAM,CAAC,IAAM,EAAE,GAAG,KAAK,CAAC,UAAU,CAChC,SAAS,EAAE,CAAC,KAAK,EAAE,GAAG;IACpB,OAAO,oBAAC,QAAQ,eAAK,KAAK,IAAE,GAAG,EAAE,GAAG,IAAI,CAAA;AAC1C,CAAC,CACF,CAAA;AAED,MAAM,CAAC,IAAM,EAAE,GAAG,KAAK,CAAC,UAAU,CAChC,SAAS,EAAE,CAAC,KAAK,EAAE,GAAG;IACpB,OAAO,oBAAC,QAAQ,eAAK,KAAK,IAAE,GAAG,EAAE,GAAG,IAAI,CAAA;AAC1C,CAAC,CACF,CAAA;AAED,MAAM,CAAC,IAAM,EAAE,GAAG,KAAK,CAAC,UAAU,CAChC,SAAS,EAAE,CAAC,KAAK,EAAE,GAAG;IACpB,OAAO,oBAAC,QAAQ,eAAK,KAAK,IAAE,GAAG,EAAE,GAAG,IAAI,CAAA;AAC1C,CAAC,CACF,CAAA;AAED,MAAM,CAAC,IAAM,CAAC,GAAG,KAAK,CAAC,UAAU,CAG/B,SAAS,CAAC,CAAC,KAAK,E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GAAG;IACpB,OAAO,oBAAC,QAAQ,eAAK,KAAK,IAAE,GAAG,EAAE,GAAG,IAAI,CAAA;AAC1C,CAAC,CACF,CAAA;AAED,MAAM,CAAC,IAAM,CAAC,GAAG,KAAK,CAAC,UAAU,CAG/B,SAAS,CAAC,CAAC,KAAK,EAAE,GAAG;IACrB,OAAO,oBAAC,OAAO,eAAK,KAAK,IAAE,GAAG,EAAE,GAAG,IAAI,CAAA;AACzC,CAAC,CAAC,CAAA;AAEF,MAAM,CAAC,IAAM,EAAE,GAAG,KAAK,CAAC,UAAU,CAGhC,SAAS,EAAE,CAAC,KAAK,EAAE,GAAG;IACtB,OAAO,oBAAC,QAAQ,eAAK,KAAK,IAAE,GAAG,EAAE,GAAG,IAAI,CAAA;AAC1C,CAAC,CAAC,CAAA;AAEF,MAAM,CAAC,IAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAGnC,SAAS,KAAK,CAAC,KAAK,EAAE,GAAG;IACzB,OAAO,oBAAC,WAAW,eAAK,KAAK,IAAE,GAAG,EAAE,GAAG,IAAI,CAAA;AAC7C,CAAC,CAAC,CAAA;AAEF,EAAE,CAAC,WAAW,GAAG,IAAI,CAAA;AAErB,EAAE,CAAC,WAAW,GAAG,IAAI,CAAA;AAErB,EAAE,CAAC,WAAW,GAAG,IAAI,CAAA;AAErB,CAAC,CAAC,WAAW,GAAG,GAAG,CAAA;AAEnB,EAAE,CAAC,WAAW,GAAG,IAAI,CAAA;AAErB,KAAK,CAAC,WAAW,GAAG,OAAO,CAAA"}
@@ -1,8 +1,17 @@
1
+ /// <reference types="react" />
2
+ import { TypographyProps } from '../Typography';
1
3
  export declare const StyledH1: import("styled-components").StyledComponent<"h1", any, {}, never>;
2
4
  export declare const StyledH2: import("styled-components").StyledComponent<"h2", any, {}, never>;
3
5
  export declare const StyledH3: import("styled-components").StyledComponent<"h3", any, {}, never>;
6
+ /** Small icons align with font and line height */
7
+ export declare function getSmallIconBodyTextRules(): import("styled-components").FlattenSimpleInterpolation;
4
8
  export declare const StyledP: import("styled-components").StyledComponent<"p", any, {}, never>;
5
9
  export declare const StyledUL: import("styled-components").StyledComponent<"ul", any, {}, never>;
10
+ export declare const StyledLabel: import("styled-components").StyledComponent<"span", any, import("../Typography/Typography.styles").StyledTypographyProps & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
11
+ ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
12
+ } & TypographyProps> & {
13
+ [others: string]: any;
14
+ }, string | number>;
6
15
  /**
7
16
  * An unstyled `button`, browser reset
8
17
  */
@@ -3,7 +3,8 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
3
3
  return cooked;
4
4
  };
5
5
  import styled, { css } from 'styled-components';
6
- import { getTypographyIntent, semiboldRules, } from '../Typography/Typography.styles';
6
+ import { StyledRequiredContainer } from '../Required/Required.styles';
7
+ import { getTypographyIntent, semiboldRules, StyledTypography, } from '../Typography/Typography.styles';
7
8
  import { colors } from '../_styles/colors';
8
9
  import { spacing } from '../_styles/spacing';
9
10
  export var StyledH1 = styled.h1(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n ", "\n margin: 0;\n"], ["\n color: ", ";\n ", "\n margin: 0;\n"])), colors.gray15, getTypographyIntent('h1'));
@@ -12,22 +13,39 @@ export var StyledH3 = styled.h3(templateObject_3 || (templateObject_3 = __makeTe
12
13
  var topMarginRules = function () {
13
14
  return css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n & + &,\n p + &,\n ul + & {\n margin-top: ", "px;\n }\n "], ["\n & + &,\n p + &,\n ul + & {\n margin-top: ", "px;\n }\n "])), spacing.lg);
14
15
  };
15
- export var StyledP = styled.p(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n color: ", ";\n ", "\n ", "\n ", "\n"], ["\n color: ", ";\n ", "\n ", "\n ", "\n"])), colors.gray15, getTypographyIntent('body'), topMarginRules, semiboldRules);
16
- export var StyledUL = styled.ul(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n color: ", ";\n margin: 0;\n padding: 0;\n ", "\n ", "\n\n padding-left: ", "px;\n\n & > li {\n list-style-type: disc;\n }\n"], ["\n color: ", ";\n margin: 0;\n padding: 0;\n ", "\n ", "\n\n padding-left: ", "px;\n\n & > li {\n list-style-type: disc;\n }\n"
16
+ // Should this be on Typography? body | label
17
+ /** Small icons align with font and line height */
18
+ export function getSmallIconBodyTextRules() {
19
+ var space = spacing.xs;
20
+ var spaceWhenTouch = spacing.sm;
21
+ return css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n & > [data-qa^='ci'] {\n height: 16px;\n width: 16px;\n vertical-align: middle;\n margin-left: ", "px;\n\n &[tabindex='0'] {\n margin-left: ", "px;\n }\n\n &:first-child {\n margin-left: 0;\n margin-right: ", "px;\n vertical-align: sub;\n\n &[tabindex='0'] {\n margin-right: ", "px;\n }\n }\n }\n "], ["\n & > [data-qa^='ci'] {\n height: 16px;\n width: 16px;\n vertical-align: middle;\n margin-left: ", "px;\n\n &[tabindex='0'] {\n margin-left: ", "px;\n }\n\n &:first-child {\n margin-left: 0;\n margin-right: ", "px;\n vertical-align: sub;\n\n &[tabindex='0'] {\n margin-right: ", "px;\n }\n }\n }\n "])), space, spaceWhenTouch, space, spaceWhenTouch);
22
+ }
23
+ export var StyledP = styled.p(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n color: ", ";\n ", "\n ", "\n ", "\n"], ["\n color: ", ";\n ", "\n ", "\n ", "\n"])), colors.gray15, getTypographyIntent('body'), topMarginRules, semiboldRules);
24
+ export var StyledUL = styled.ul(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n color: ", ";\n margin: 0;\n padding: 0;\n ", "\n ", "\n\n padding-left: ", "px;\n\n & > li {\n list-style-type: disc;\n }\n"], ["\n color: ", ";\n margin: 0;\n padding: 0;\n ", "\n ", "\n\n padding-left: ", "px;\n\n & > li {\n list-style-type: disc;\n }\n"])), colors.gray15, getTypographyIntent('body'), topMarginRules, spacing.lg);
25
+ function enforceLabelTypography(props) {
26
+ return {
27
+ as: props.as || 'label',
28
+ intent: 'label',
29
+ };
30
+ }
31
+ export var StyledLabel = styled(StyledTypography).attrs(enforceLabelTypography)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", "\n ", "\n\n > ", " {\n margin-left: ", "px;\n vertical-align: top;\n }\n"], ["\n ", "\n ", "\n\n > ", " {\n margin-left: ", "px;\n vertical-align: top;\n }\n"
17
32
  /**
18
33
  * An unstyled `button`, browser reset
19
34
  */
20
- ])), colors.gray15, getTypographyIntent('body'), topMarginRules, spacing.lg);
35
+ ])), function (_a) {
36
+ var _b = _a.block, block = _b === void 0 ? false : _b;
37
+ return block && "display: block;";
38
+ }, getSmallIconBodyTextRules, StyledRequiredContainer, spacing.xs);
21
39
  /**
22
40
  * An unstyled `button`, browser reset
23
41
  */
24
42
  export function getUnstyledButton() {
25
- return css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n border: none;\n background: none;\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n padding: 0;\n text-transform: none;\n -webkit-appearance: button;\n "], ["\n border: none;\n background: none;\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n padding: 0;\n text-transform: none;\n -webkit-appearance: button;\n "])));
43
+ return css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n border: none;\n background: none;\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n padding: 0;\n text-transform: none;\n -webkit-appearance: button;\n "], ["\n border: none;\n background: none;\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n padding: 0;\n text-transform: none;\n -webkit-appearance: button;\n "])));
26
44
  }
27
45
  /**
28
46
  * An unstyled `button`, browser reset
29
47
  */
30
- export var StyledUnstyledButton = styled.button(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"
48
+ export var StyledUnstyledButton = styled.button(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"
31
49
  /**
32
50
  * An a styled component a
33
51
  */
@@ -35,6 +53,6 @@ export var StyledUnstyledButton = styled.button(templateObject_8 || (templateObj
35
53
  /**
36
54
  * An a styled component a
37
55
  */
38
- export var StyledAnchor = styled.a(templateObject_9 || (templateObject_9 = __makeTemplateObject([""], [""])));
39
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
56
+ export var StyledAnchor = styled.a(templateObject_11 || (templateObject_11 = __makeTemplateObject([""], [""])));
57
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11;
40
58
  //# sourceMappingURL=Semantic.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Semantic.styles.js","sourceRoot":"","sources":["../../src/Semantic/Semantic.styles.ts"],"names":[],"mappings":";;;;AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EACL,mBAAmB,EACnB,aAAa,GACd,MAAM,iCAAiC,CAAA;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAE5C,MAAM,CAAC,IAAM,QAAQ,GAAG,MAAM,CAAC,EAAE,6GAAA,aACtB,EAAa,OACpB,EAAyB,kBAE5B,KAHU,MAAM,CAAC,MAAM,EACpB,mBAAmB,CAAC,IAAI,CAAC,CAE5B,CAAA;AACD,MAAM,CAAC,IAAM,QAAQ,GAAG,MAAM,CAAC,EAAE,6GAAA,aACtB,EAAa,OACpB,EAAyB,kBAE5B,KAHU,MAAM,CAAC,MAAM,EACpB,mBAAmB,CA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, P, UL } from './Semantic';
@@ -1,2 +1,2 @@
1
- export { H1, H2, H3, P, UL } from './Semantic';
1
+ export { H1, H2, H3, Label, P, UL } from './Semantic';
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Semantic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,YAAY,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Semantic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,YAAY,CAAA"}
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import { DivAttributes } from '../_utils/types';
3
+ import { SuperSelectMenuItemProps } from './SuperSelect.types';
4
+ export declare const Overlay: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<HTMLElement>>;
5
+ export declare const SingleTrigger: (props: React.PropsWithChildren<any>) => JSX.Element;
6
+ export declare const MultiTrigger: (props: React.PropsWithChildren<any>) => JSX.Element | null;
7
+ export declare const Trigger: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<HTMLDivElement>>;
8
+ export declare const Indicators: (props: React.PropsWithChildren<any>) => JSX.Element;
9
+ export declare const Label: React.ForwardRefExoticComponent<{
10
+ hoverable: boolean;
11
+ } & React.RefAttributes<HTMLDivElement>>;
12
+ export declare const Loading: () => JSX.Element;
13
+ export declare const ArrowContainer: (props: React.PropsWithChildren<any>) => JSX.Element;
14
+ export declare const Arrow: ({ up, down, left, right, width, height, border, }: any) => JSX.Element;
15
+ export declare const Clear: () => JSX.Element;
16
+ export declare const MultiInputContainer: (props: React.PropsWithChildren<{}>) => JSX.Element;
17
+ export declare const MultiInput: (props: React.PropsWithChildren<any>) => JSX.Element;
18
+ export declare const MultiValue: (props: React.PropsWithChildren<any>) => JSX.Element;
19
+ export declare const MultiValueContainer: (props: React.PropsWithChildren<any>) => JSX.Element;
20
+ export declare const SearchContainer: (props: React.PropsWithChildren<any>) => JSX.Element;
21
+ export declare const Search: (props: React.PropsWithChildren<any>) => JSX.Element;
22
+ export declare const Header: (props: React.PropsWithChildren<any>) => JSX.Element;
23
+ export declare const Footer: (props: React.PropsWithChildren<any>) => JSX.Element;
24
+ export declare const EmptyMessage: (props: any) => JSX.Element;
25
+ export declare const Options: (props: React.PropsWithChildren<{}> & DivAttributes) => JSX.Element;
26
+ export declare const Group: (props: React.PropsWithChildren<{}>) => JSX.Element;
27
+ export declare const Item: React.ForwardRefExoticComponent<SuperSelectMenuItemProps & React.RefAttributes<HTMLDivElement>>;
28
+ export declare const OptionGroupHeader: ({ optgroup }: any) => JSX.Element;
29
+ export declare const OptionLabel: ({ option }: any) => JSX.Element;
30
+ export declare const OptionContent: ({ option }: any) => JSX.Element;
31
+ export declare const DraggableOptionContent: ({ index, option }: any) => JSX.Element;
32
+ export declare const DragHandle: (props: React.PropsWithChildren<any>) => JSX.Element;
33
+ export declare const CheckboxContainer: (props: React.PropsWithChildren<any>) => JSX.Element;
34
+ export declare const Checkbox: (props: React.PropsWithChildren<any>) => JSX.Element;
35
+ export declare const CheckmarkContainer: (props: React.PropsWithChildren<any>) => JSX.Element;
36
+ export declare const Checkmark: (props: React.PropsWithChildren<any>) => JSX.Element;
@@ -0,0 +1,249 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { Check, Clear as ClearIcon, Grip } from '@procore/core-icons';
24
+ import React from 'react';
25
+ import { Draggable } from 'react-beautiful-dnd';
26
+ import { FakeCheckbox } from '../Checkbox/Checkbox';
27
+ import { Spinner } from '../Spinner/Spinner';
28
+ import { Token } from '../Token/Token';
29
+ import { Tooltip } from '../Tooltip/Tooltip';
30
+ import { Typeahead } from '../Typeahead/Typeahead';
31
+ import { OverflowObserver } from '../_hooks/OverflowObserver';
32
+ import { colors } from '../_styles/colors';
33
+ import { InternalDragDropContext } from './SuperSelect';
34
+ import { draggableOptionIdSymbol } from './SuperSelect.constants';
35
+ import { StyledArrow, StyledArrowContainer, StyledArrowFill, StyledArrowOutline, StyledCheckboxContainer, StyledCheckmarkContainer, StyledClearIcon, StyledDraggableWrapper, StyledEmptyMessage, StyledFooter, StyledGrip, StyledGroup, StyledHeader, StyledIndicators, StyledItem, StyledItemLabel, StyledLabel, StyledMultiInput, StyledMultiInputContainer, StyledMultiValue, StyledMultiValueContainer, StyledOptionGroupLabel, StyledOptions, StyledOverlay, StyledSearchContainer, StyledTrigger, } from './SuperSelect.styles';
36
+ import { useSuperSelectContext } from './useSuperSelect';
37
+ export var Overlay = React.forwardRef(function (props, ref) {
38
+ return React.createElement(StyledOverlay, __assign({ ref: ref }, props));
39
+ });
40
+ export var SingleTrigger = function (props) {
41
+ var ctx = useSuperSelectContext();
42
+ return (React.createElement(OverflowObserver, null, function (_a) {
43
+ var isOverflowingX = _a.isOverflowingX, ref = _a.ref;
44
+ var showTooltip = !ctx.config.disabled && isOverflowingX && !ctx.state.open;
45
+ var label = ctx.state.selectedLabel || ctx.config.placeholder;
46
+ var labelComponent = (React.createElement(ctx.components.Label, __assign({}, props, { ref: ref, hoverable: showTooltip })));
47
+ return (React.createElement(Tooltip, { trigger: showTooltip ? 'hover' : 'none', overlay: label }, labelComponent));
48
+ }));
49
+ };
50
+ export var MultiTrigger = function (props) {
51
+ var _a;
52
+ var ctx = useSuperSelectContext();
53
+ if (ctx.config.multiple && Array.isArray(ctx.state.value)) {
54
+ return (React.createElement(ctx.components.MultiValueContainer, __assign({}, props), (_a = ctx.state.value) === null || _a === void 0 ? void 0 :
55
+ _a.map(function (val, j) {
56
+ var option = ctx.state.sourceOptions.find(function (o) { return ctx.option.value(o) === val; });
57
+ return (option && React.createElement(ctx.components.MultiValue, { index: j, option: option }));
58
+ }),
59
+ React.createElement(ctx.components.MultiInputContainer, null,
60
+ React.createElement(ctx.components.MultiInput, __assign({}, ctx.props.multiInput())))));
61
+ }
62
+ return null;
63
+ };
64
+ export var Trigger = React.forwardRef(function (props, ref) {
65
+ var ctx = useSuperSelectContext();
66
+ var searchRef = React.useRef(null);
67
+ React.useEffect(function () {
68
+ var _a;
69
+ (_a = searchRef.current) === null || _a === void 0 ? void 0 : _a.focus();
70
+ }, [ctx.state.value]);
71
+ var TriggerComponent = StyledTrigger;
72
+ return (React.createElement(TriggerComponent, __assign({ ref: ref }, props),
73
+ ctx.config.multiple ? (React.createElement(ctx.components.MultiTrigger, null)) : (React.createElement(ctx.components.SingleTrigger, null)),
74
+ React.createElement(ctx.components.Indicators, null)));
75
+ });
76
+ export var Indicators = function (props) {
77
+ var ctx = useSuperSelectContext();
78
+ var hasValue = Array.isArray(ctx.state.value)
79
+ ? ctx.state.value.length > 0
80
+ : ctx.state.value;
81
+ return (React.createElement(StyledIndicators, null,
82
+ hasValue && React.createElement(ctx.components.Clear, null),
83
+ ctx.config.loading ? (React.createElement(ctx.components.Loading, null)) : (React.createElement(ctx.components.ArrowContainer, null,
84
+ React.createElement(ctx.components.Arrow, { up: ctx.state.open, down: !ctx.state.open, width: 8, height: 4 })))));
85
+ };
86
+ export var Label = React.forwardRef(function (_a, ref) {
87
+ var hoverable = _a.hoverable, props = __rest(_a, ["hoverable"]);
88
+ var ctx = useSuperSelectContext();
89
+ return (React.createElement(StyledLabel, __assign({}, props, ctx.props.label(), { ref: ref, "$hoverable": hoverable }), ctx.state.selectedLabel || ctx.config.placeholder));
90
+ });
91
+ export var Loading = function () {
92
+ return React.createElement(Spinner, { color: "blue50", size: "xs" });
93
+ };
94
+ export var ArrowContainer = function (props) {
95
+ return React.createElement(StyledArrowContainer, __assign({}, props));
96
+ };
97
+ export var Arrow = function (_a) {
98
+ var up = _a.up, down = _a.down, left = _a.left, right = _a.right, _b = _a.width, width = _b === void 0 ? 12 : _b, _c = _a.height, height = _c === void 0 ? 12 : _c, _d = _a.border, border = _d === void 0 ? 0 : _d;
99
+ var outline = '';
100
+ var fill = '';
101
+ if (up) {
102
+ outline = "0,".concat(height, " ").concat(width, ",").concat(height, " {width / 2},0");
103
+ // prettier-ignore
104
+ fill = "".concat(border, ",").concat(height, " ").concat(width - border, ",").concat(height, " ").concat(width / 2, ",").concat(border * 2);
105
+ }
106
+ else if (down) {
107
+ outline = "0,0 ".concat(width, ",0 ").concat(width / 2, ",").concat(height);
108
+ // prettier-ignore
109
+ fill = "".concat(border, ",0 ").concat(width - border, ",0 ").concat(width / 2, ",").concat(height - border * 2);
110
+ }
111
+ else if (left) {
112
+ outline = "".concat(width, ",0 ").concat(width, ",").concat(height, " 0,").concat(height / 2);
113
+ // prettier-ignore
114
+ fill = "".concat(width, ",").concat(border, " ").concat(width, ",").concat(height - border, " ").concat(border * 2, ",").concat(height / 2);
115
+ }
116
+ else if (right) {
117
+ outline = "0,0 0,".concat(height, " ").concat(width, ",").concat(height / 2);
118
+ // prettier-ignore
119
+ fill = "0,".concat(border, " 0,").concat(height - border, " ").concat(width - border * 2, ",").concat(height / 2);
120
+ }
121
+ return (React.createElement(StyledArrow, null,
122
+ React.createElement("svg", { height: height, width: width, focusable: "false" },
123
+ border > 0 && React.createElement(StyledArrowOutline, { points: outline }),
124
+ React.createElement(StyledArrowFill, { points: fill }))));
125
+ };
126
+ export var Clear = function () {
127
+ var ctx = useSuperSelectContext();
128
+ return (React.createElement(StyledClearIcon, __assign({}, ctx.props.clear(), { size: "sm", variant: "tertiary", disabled: ctx.config.disabled, icon: React.createElement(ClearIcon, null), tabIndex: -1 })));
129
+ };
130
+ export var MultiInputContainer = function (props) {
131
+ return React.createElement(StyledMultiInputContainer, null, props.children);
132
+ };
133
+ export var MultiInput = function (props) {
134
+ return React.createElement(StyledMultiInput, __assign({}, props));
135
+ };
136
+ export var MultiValue = function (props) {
137
+ var ctx = useSuperSelectContext();
138
+ return (React.createElement(StyledMultiValue, null,
139
+ React.createElement(Token, { focused: ctx.state.activeTokenIndex === props.index },
140
+ React.createElement(Token.Label, null, ctx.option.label(props.option)),
141
+ React.createElement(Token.Remove, __assign({}, ctx.props.tokenClear(props.index))))));
142
+ };
143
+ export var MultiValueContainer = function (props) {
144
+ return React.createElement(StyledMultiValueContainer, __assign({}, props));
145
+ };
146
+ export var SearchContainer = function (props) {
147
+ return React.createElement(StyledSearchContainer, __assign({}, props));
148
+ };
149
+ export var Search = function (props) {
150
+ return React.createElement(Typeahead, __assign({}, props));
151
+ };
152
+ export var Header = function (props) {
153
+ return React.createElement(StyledHeader, __assign({}, props));
154
+ };
155
+ export var Footer = function (props) {
156
+ return React.createElement(StyledFooter, __assign({}, props, { padding: "md lg" }));
157
+ };
158
+ export var EmptyMessage = function (props) {
159
+ return React.createElement(StyledEmptyMessage, __assign({}, props));
160
+ };
161
+ export var Options = function (props) {
162
+ var ctx = useSuperSelectContext();
163
+ return React.createElement(StyledOptions, __assign({}, props, ctx.props.menu()));
164
+ };
165
+ export var Group = function (props) {
166
+ var ctx = useSuperSelectContext();
167
+ return (React.createElement(StyledGroup, __assign({}, props, ctx.props.item(), { role: "separator", "aria-disabled": true })));
168
+ };
169
+ export var Item = React.forwardRef(function (_a, ref) {
170
+ var _b;
171
+ var children = _a.children, _c = _a.isDragging, isDragging = _c === void 0 ? false : _c, props = __rest(_a, ["children", "isDragging"]);
172
+ var ctx = useSuperSelectContext();
173
+ var isDraggingOver = React.useContext(InternalDragDropContext).isDraggingOver;
174
+ var _d = React.useState(0), size = _d[0], setSize = _d[1];
175
+ var knownSize = (_b = props['data-known-size']) !== null && _b !== void 0 ? _b : 0;
176
+ React.useEffect(function () {
177
+ setSize(function (prevSize) { return (knownSize === 0 ? prevSize : knownSize); });
178
+ }, [knownSize]);
179
+ var index = props['data-index'];
180
+ var option = ctx.state.options[index];
181
+ if (!option) {
182
+ return null;
183
+ }
184
+ var isDisabled = ctx.option.isDisabled(option);
185
+ var isSelected = ctx.option.isSelected(option);
186
+ var isOptgroup = ctx.option.isOptgroup(option);
187
+ var value = ctx === null || ctx === void 0 ? void 0 : ctx.option.value(option);
188
+ function setNode(node) {
189
+ if (ctx) {
190
+ ctx.refs.navigationList.current[index] = node;
191
+ }
192
+ }
193
+ if (isOptgroup) {
194
+ return React.createElement(ctx.components.Group, __assign({}, props), children);
195
+ }
196
+ return (React.createElement(StyledItem, __assign({}, props, ctx.props.item({
197
+ onClick: function () { return ctx.state.onSelect(option); },
198
+ }), { "$disabled": ctx.option.isDisabled(option), "$emptyMinHeight": size, "$highlighted": ctx.state.activeMenuIndex === index, "$isDraggable": !isDisabled, "$isDragging": isDragging, "$isDraggingDisabled": Boolean(ctx.state.searchValue), "$isDraggingOver": isDraggingOver, "$selected": isSelected, "aria-posinset": index + 1, "aria-selected": ctx.state.activeMenuIndex === index, "aria-setsize": ctx.state.options.length || 0, id: "item-".concat(value), ref: setNode, role: "option" }),
199
+ ctx.config.selectionStyle === 'checkbox' && (React.createElement(ctx.components.CheckboxContainer, null,
200
+ React.createElement(ctx.components.Checkbox, { disabled: isDisabled, checked: isSelected }))),
201
+ children,
202
+ ctx.config.selectionStyle === 'checkmark' && (React.createElement(ctx.components.CheckmarkContainer, null, isSelected && React.createElement(ctx.components.Checkmark, null)))));
203
+ });
204
+ export var OptionGroupHeader = function (_a) {
205
+ var optgroup = _a.optgroup;
206
+ return React.createElement(StyledOptionGroupLabel, null, optgroup.label);
207
+ };
208
+ export var OptionLabel = function (_a) {
209
+ var option = _a.option;
210
+ var ctx = useSuperSelectContext();
211
+ return (React.createElement(StyledItemLabel, { "$draggable": ctx.config.draggable }, ctx.option.label(option)));
212
+ };
213
+ export var OptionContent = function (_a) {
214
+ var option = _a.option;
215
+ var ctx = useSuperSelectContext();
216
+ if (ctx.option.isOptgroup(option)) {
217
+ return React.createElement(ctx.components.OptionGroupHeader, { optgroup: option });
218
+ }
219
+ return React.createElement(ctx.components.OptionLabel, { option: option });
220
+ };
221
+ export var DraggableOptionContent = function (_a) {
222
+ var index = _a.index, option = _a.option;
223
+ var ctx = useSuperSelectContext();
224
+ var disabled = ctx.option.isDisabled(option);
225
+ var isOptgroup = ctx.option.isOptgroup(option);
226
+ var optionId = isOptgroup ? option.id : option[draggableOptionIdSymbol];
227
+ return (React.createElement(Draggable, { draggableId: optionId, index: index, key: optionId, isDragDisabled: isOptgroup || disabled || Boolean(ctx.state.searchValue) }, function (provided) {
228
+ return (React.createElement(StyledDraggableWrapper, __assign({ ref: provided.innerRef }, provided.draggableProps, provided.dragHandleProps),
229
+ !isOptgroup && React.createElement(ctx.components.DragHandle, null),
230
+ React.createElement(ctx.components.OptionContent, { index: index, option: option })));
231
+ }));
232
+ };
233
+ export var DragHandle = function (props) {
234
+ return (React.createElement(StyledGrip, __assign({}, props),
235
+ React.createElement(Grip, { color: colors.gray45 })));
236
+ };
237
+ export var CheckboxContainer = function (props) {
238
+ return React.createElement(StyledCheckboxContainer, __assign({}, props));
239
+ };
240
+ export var Checkbox = function (props) {
241
+ return React.createElement(FakeCheckbox, __assign({}, props));
242
+ };
243
+ export var CheckmarkContainer = function (props) {
244
+ return React.createElement(StyledCheckmarkContainer, __assign({}, props));
245
+ };
246
+ export var Checkmark = function (props) {
247
+ return React.createElement(Check, __assign({}, props, { size: "sm" }));
248
+ };
249
+ //# sourceMappingURL=SuperSelect.components.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SuperSelect.components.js","sourceRoot":"","sources":["../../src/SuperSelect/SuperSelect.components.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,IAAI,SAAS,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AACrE,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,EACL,WAAW,EACX,oBAAoB,EACpB,eAAe,EACf,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,EACxB,eAAe,EACf,sBAAsB,EACtB,kBAAkB,EAClB,YAAY,EACZ,UAAU,EACV,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,yBAAyB,EACzB,gBAAgB,EAChB,yBAAyB,EACzB,sBAAsB,EACtB,aAAa,EACb,aAAa,EACb,qBAAqB,EACrB,aAAa,GACd,MAAM,sBAAsB,CAAA;AAK7B,OAAO,EAAE,qBAAqB,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