@procore/core-react 10.17.0-rc.7 → 10.17.1-rc.0

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 (146) hide show
  1. package/.storybook/preview-head.html +6 -0
  2. package/CHANGELOG.md +31 -0
  3. package/dist/esm/components/Button/Button.styles.js +13 -6
  4. package/dist/esm/components/Button/Button.styles.js.map +1 -1
  5. package/dist/esm/components/Calendar/Calendar.js +5 -3
  6. package/dist/esm/components/Calendar/Calendar.js.map +1 -1
  7. package/dist/esm/components/DateInput/DateInput.js +6 -0
  8. package/dist/esm/components/DateInput/DateInput.js.map +1 -1
  9. package/dist/esm/components/FileSelect/FileExplorer/FileExplorer.styles.d.ts +3 -2
  10. package/dist/esm/components/FileSelect/FileSelect.js +73 -25
  11. package/dist/esm/components/FileSelect/FileSelect.js.map +1 -1
  12. package/dist/esm/components/FileSelect/FileSelect.types.d.ts +2 -0
  13. package/dist/esm/components/FileSelect/LocalSource/LocalSource.js +101 -52
  14. package/dist/esm/components/FileSelect/LocalSource/LocalSource.js.map +1 -1
  15. package/dist/esm/components/FileSelect/LocalSource/LocalSource.types.d.ts +1 -0
  16. package/dist/esm/components/Form/Form.js +1 -0
  17. package/dist/esm/components/Form/Form.js.map +1 -1
  18. package/dist/esm/components/Modal/Modal.js +22 -5
  19. package/dist/esm/components/Modal/Modal.js.map +1 -1
  20. package/dist/esm/components/Modal/Modal.styles.d.ts +12 -2
  21. package/dist/esm/components/Modal/Modal.styles.js +33 -16
  22. package/dist/esm/components/Modal/Modal.styles.js.map +1 -1
  23. package/dist/esm/components/Modal/Modal.types.d.ts +6 -0
  24. package/dist/esm/components/NumberInput/NumberInput.utils.d.ts +1 -0
  25. package/dist/esm/components/NumberInput/NumberInput.utils.js +16 -2
  26. package/dist/esm/components/NumberInput/NumberInput.utils.js.map +1 -1
  27. package/dist/esm/components/SegmentedController/SegmentedController.styles.js +3 -3
  28. package/dist/esm/components/SegmentedController/SegmentedController.styles.js.map +1 -1
  29. package/dist/esm/components/Spinner/Spinner.d.ts +1 -0
  30. package/dist/esm/components/Spinner/Spinner.js +2 -1
  31. package/dist/esm/components/Spinner/Spinner.js.map +1 -1
  32. package/dist/esm/components/Spinner/Spinner.styles.d.ts +1 -0
  33. package/dist/esm/components/Spinner/Spinner.styles.js +14 -18
  34. package/dist/esm/components/Spinner/Spinner.styles.js.map +1 -1
  35. package/dist/esm/components/Switch/Switch.js +5 -4
  36. package/dist/esm/components/Switch/Switch.js.map +1 -1
  37. package/dist/esm/components/Switch/Switch.styles.d.ts +4 -3
  38. package/dist/esm/components/Switch/Switch.styles.js +8 -6
  39. package/dist/esm/components/Switch/Switch.styles.js.map +1 -1
  40. package/dist/esm/components/Thumbnail/DocumentIcon.js +97 -84
  41. package/dist/esm/components/Thumbnail/DocumentIcon.js.map +1 -1
  42. package/dist/esm/components/TieredDropdown/TieredDropdown.d.ts +4 -0
  43. package/dist/esm/components/TieredDropdown/TieredDropdown.helpers.d.ts +36 -0
  44. package/dist/esm/components/TieredDropdown/TieredDropdown.helpers.js +56 -0
  45. package/dist/esm/components/TieredDropdown/TieredDropdown.helpers.js.map +1 -0
  46. package/dist/esm/components/TieredDropdown/TieredDropdown.js +155 -0
  47. package/dist/esm/components/TieredDropdown/TieredDropdown.js.map +1 -0
  48. package/dist/esm/components/TieredDropdown/TieredDropdown.types.d.ts +25 -0
  49. package/dist/esm/components/TieredDropdown/TieredDropdown.types.js +2 -0
  50. package/dist/esm/components/TieredDropdown/TieredDropdown.types.js.map +1 -0
  51. package/dist/esm/components/TieredDropdown/index.d.ts +2 -0
  52. package/dist/esm/components/TieredDropdown/index.js +2 -0
  53. package/dist/esm/components/TieredDropdown/index.js.map +1 -0
  54. package/dist/esm/components/TieredDropdown/useSearch.d.ts +12 -0
  55. package/dist/esm/components/TieredDropdown/useSearch.js +50 -0
  56. package/dist/esm/components/TieredDropdown/useSearch.js.map +1 -0
  57. package/dist/esm/components/TieredSelect/LeafSelectionTieredSelect.js +4 -219
  58. package/dist/esm/components/TieredSelect/LeafSelectionTieredSelect.js.map +1 -1
  59. package/dist/esm/components/TieredSelect/TieredSelectMenu.d.ts +3 -0
  60. package/dist/esm/components/TieredSelect/TieredSelectMenu.js +243 -0
  61. package/dist/esm/components/TieredSelect/TieredSelectMenu.js.map +1 -0
  62. package/dist/esm/components/Tile/Tile.d.ts +12 -0
  63. package/dist/esm/components/Tile/Tile.js +85 -0
  64. package/dist/esm/components/Tile/Tile.js.map +1 -0
  65. package/dist/esm/components/Tile/Tile.styles.d.ts +20 -0
  66. package/dist/esm/components/Tile/Tile.styles.js +54 -0
  67. package/dist/esm/components/Tile/Tile.styles.js.map +1 -0
  68. package/dist/esm/components/Tile/Tile.types.d.ts +24 -0
  69. package/dist/esm/components/Tile/Tile.types.js +2 -0
  70. package/dist/esm/components/Tile/Tile.types.js.map +1 -0
  71. package/dist/esm/components/Tile/index.d.ts +1 -0
  72. package/dist/esm/components/Tile/index.js +2 -0
  73. package/dist/esm/components/Tile/index.js.map +1 -0
  74. package/dist/esm/components/Tile/mocks/iframe.d.ts +2 -0
  75. package/dist/esm/components/Tile/mocks/iframe.js +5 -0
  76. package/dist/esm/components/Tile/mocks/iframe.js.map +1 -0
  77. package/dist/esm/components/Tile/mocks/svg.d.ts +2 -0
  78. package/dist/esm/components/Tile/mocks/svg.js +247 -0
  79. package/dist/esm/components/Tile/mocks/svg.js.map +1 -0
  80. package/dist/esm/components/Title/Title.d.ts +9 -0
  81. package/dist/esm/components/Title/Title.js +66 -0
  82. package/dist/esm/components/Title/Title.js.map +1 -0
  83. package/dist/esm/components/Title/Title.styles.d.ts +7 -0
  84. package/dist/esm/components/Title/Title.styles.js +18 -0
  85. package/dist/esm/components/Title/Title.styles.js.map +1 -0
  86. package/dist/esm/components/Title/index.d.ts +1 -0
  87. package/dist/esm/components/Title/index.js +2 -0
  88. package/dist/esm/components/Title/index.js.map +1 -0
  89. package/dist/esm/components/_storyHelpers_/constants.js +2 -0
  90. package/dist/esm/components/_storyHelpers_/constants.js.map +1 -1
  91. package/dist/esm/effects/EventListener.js +14 -6
  92. package/dist/esm/effects/EventListener.js.map +1 -1
  93. package/dist/esm/index.d.ts +3 -0
  94. package/dist/esm/index.js +3 -0
  95. package/dist/esm/index.js.map +1 -1
  96. package/dist/esm/layouts/DetailPage/DetailPage.d.ts +3 -0
  97. package/dist/esm/layouts/DetailPage/DetailPage.js +3 -0
  98. package/dist/esm/layouts/DetailPage/DetailPage.js.map +1 -1
  99. package/dist/esm/layouts/Grid.d.ts +3 -0
  100. package/dist/esm/layouts/Grid.js +3 -0
  101. package/dist/esm/layouts/Grid.js.map +1 -1
  102. package/dist/esm/layouts/NextDetailPage/NextDetailPage.d.ts +4 -5
  103. package/dist/esm/layouts/NextDetailPage/NextDetailPage.js +10 -26
  104. package/dist/esm/layouts/NextDetailPage/NextDetailPage.js.map +1 -1
  105. package/dist/esm/layouts/NextDetailPage/NextDetailPage.styles.d.ts +1 -6
  106. package/dist/esm/layouts/NextDetailPage/NextDetailPage.styles.js +16 -21
  107. package/dist/esm/layouts/NextDetailPage/NextDetailPage.styles.js.map +1 -1
  108. package/dist/esm/layouts/NextDetailPage/NextDetailPageSection.js +1 -1
  109. package/dist/esm/layouts/NextDetailPage/NextDetailPageSection.js.map +1 -1
  110. package/dist/esm/layouts/NextDetailPage/RankedHeading.d.ts +6 -0
  111. package/dist/esm/layouts/NextDetailPage/RankedHeading.js +14 -0
  112. package/dist/esm/layouts/NextDetailPage/RankedHeading.js.map +1 -0
  113. package/dist/esm/layouts/NextDetailPage/index.d.ts +1 -0
  114. package/dist/esm/layouts/PageLayout/PageLayout.d.ts +9 -4
  115. package/dist/esm/layouts/PageLayout/PageLayout.js +30 -8
  116. package/dist/esm/layouts/PageLayout/PageLayout.js.map +1 -1
  117. package/dist/esm/layouts/PageLayout/PageLayout.styles.d.ts +8 -3
  118. package/dist/esm/layouts/PageLayout/PageLayout.styles.js +15 -9
  119. package/dist/esm/layouts/PageLayout/PageLayout.styles.js.map +1 -1
  120. package/dist/esm/locales/de-DE.json +10 -4
  121. package/dist/esm/locales/en-CA.json +6 -0
  122. package/dist/esm/locales/en-GB.json +6 -0
  123. package/dist/esm/locales/en.json +6 -0
  124. package/dist/esm/locales/es-ES.json +6 -0
  125. package/dist/esm/locales/es.json +6 -0
  126. package/dist/esm/locales/fr-CA.json +6 -0
  127. package/dist/esm/locales/fr-FR.json +7 -1
  128. package/dist/esm/state/I18n.d.ts +1 -1
  129. package/dist/esm/state/I18n.js.map +1 -1
  130. package/dist/esm/utils/CalendarHelpers.d.ts +3 -2
  131. package/dist/esm/utils/CalendarHelpers.js +30 -2
  132. package/dist/esm/utils/CalendarHelpers.js.map +1 -1
  133. package/dist/esm/utils/TinyMCE.js +2 -0
  134. package/dist/esm/utils/TinyMCE.js.map +1 -1
  135. package/dist/esm/utils/dateTime.js +2 -20
  136. package/dist/esm/utils/dateTime.js.map +1 -1
  137. package/dist/esm/utils/i18n.d.ts +1 -0
  138. package/dist/esm/utils/i18n.js +20 -0
  139. package/dist/esm/utils/i18n.js.map +1 -0
  140. package/dist/esm/utils/slotify.d.ts +11 -0
  141. package/dist/esm/utils/slotify.js +46 -0
  142. package/dist/esm/utils/slotify.js.map +1 -0
  143. package/dist/esm/utils/types.d.ts +1 -0
  144. package/dist/props/Modal.json +1 -1
  145. package/dist/props/allProps.json +1007 -894
  146. package/package.json +19 -19
@@ -11,114 +11,127 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import React from 'react';
13
13
  function Unknown(props) {
14
- return (React.createElement("svg", __assign({}, props, { viewBox: "0 0 18 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }),
15
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 0H12L18 6V24H0V0Z", fill: "#E3E6E7" }),
16
- "packages/core-react/src/components/DocumentIcons.tsx",
17
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 0L18 6H12V0Z", fill: "#F9FAFA" }),
18
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 6L18 12V6H12Z", fill: "#C8CDD0" }),
19
- React.createElement("path", { d: "M7.68147 16.1815C7.68147 15.3033 7.78209 14.6039 7.98335 14.0833C8.18461 13.5627 8.55161 13.0515 9.08435 12.5497C9.62301 12.0417 9.98113 11.6308 10.1587 11.3172C10.3363 10.9973 10.4251 10.6617 10.4251 10.3105C10.4251 9.25045 9.96337 8.72043 9.03996 8.72043C8.60192 8.72043 8.24972 8.8647 7.98335 9.15323C7.7229 9.43548 7.58676 9.82751 7.57492 10.3293H5C5.01184 9.13127 5.37588 8.19355 6.09212 7.51613C6.81428 6.83871 7.79689 6.5 9.03996 6.5C10.2949 6.5 11.2686 6.82303 11.9612 7.46909C12.6537 8.10887 13 9.01523 13 10.1882C13 10.7213 12.8875 11.2263 12.6626 11.703C12.4377 12.1734 12.044 12.6971 11.4817 13.2742L10.7625 13.9987C10.3126 14.4565 10.0551 14.9928 9.99001 15.6075L9.95449 16.1815H7.68147ZM7.42397 19.0699C7.42397 18.6496 7.55716 18.3047 7.82353 18.0349C8.09582 17.759 8.4421 17.621 8.86238 17.621C9.28265 17.621 9.62597 17.759 9.89234 18.0349C10.1646 18.3047 10.3008 18.6496 10.3008 19.0699C10.3008 19.4839 10.1676 19.8257 9.90122 20.0954C9.64077 20.3651 9.29449 20.5 8.86238 20.5C8.43026 20.5 8.08102 20.3651 7.81465 20.0954C7.5542 19.8257 7.42397 19.4839 7.42397 19.0699Z", fill: "#939CA1" })));
14
+ return (React.createElement("svg", __assign({}, props, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none" }),
15
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3 0H15L21 6V24H3V0Z", fill: "#D6DADC" }),
16
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 0L21 6H15V0Z", fill: "#EEF0F1" }),
17
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 6L21 12V6H15Z", fill: "#ACB5B9" }),
18
+ React.createElement("path", { d: "M10.3925 12.3347C10.3925 11.9288 10.4718 11.4314 10.69 11.075C10.8538 10.8075 11.1576 10.4993 11.9626 10.4993C12.9321 10.4993 13.2676 10.7795 13.385 10.9179C13.527 11.0854 13.6075 11.3503 13.6075 11.7099C13.6075 12.2888 13.2431 12.7633 12.6054 13.0819C11.748 13.5102 11.2551 14.1878 11.0249 14.5764C10.7883 14.9758 10.729 15.393 10.729 15.7154V16.6667H13.1215V15.7953C13.2275 15.6435 13.3977 15.4564 13.6376 15.3366C14.7196 14.796 16 13.6303 16 11.7099C16 11.0281 15.8562 10.0629 15.1758 9.2606C14.4707 8.42921 13.3857 8 11.9626 8C10.3751 8 9.29573 8.71368 8.67448 9.72835C8.10765 10.6541 8 11.6992 8 12.3347H10.3925Z", fill: "#75838A" }),
19
+ React.createElement("path", { d: "M11.9591 21.3386C12.8222 21.3386 13.5219 20.6389 13.5219 19.7757C13.5219 18.9126 12.8222 18.2129 11.9591 18.2129C11.0959 18.2129 10.3962 18.9126 10.3962 19.7757C10.3962 20.6389 11.0959 21.3386 11.9591 21.3386Z", fill: "#75838A" })));
20
20
  }
21
21
  function Image(props) {
22
- return (React.createElement("svg", __assign({}, props, { viewBox: "3 3 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }),
23
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3 0H15L21 6V24H3V0Z", fill: "#9F7AB8" }),
24
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 0L21 6H15V0Z", fill: "#CEBDDB" }),
25
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 6L21 12V6H15Z", fill: "#6C4785" }),
26
- React.createElement("path", { d: "M9.5 16C10.3284 16 11 15.3284 11 14.5C11 13.6716 10.3284 13 9.5 13C8.67157 13 8 13.6716 8 14.5C8 15.3284 8.67157 16 9.5 16Z", fill: "#2B1C3C" }),
27
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5 20V10H19V20H5ZM17 12H7V18H9L12 16L13 17L17 13V12Z", fill: "#2B1C3C" })));
22
+ return (React.createElement("svg", __assign({}, props, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none" }),
23
+ React.createElement("g", null,
24
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3 0H15L21 6V24H3V0Z", fill: "#AE76BC" }),
25
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M18 10H6V19H18V10ZM7.8 16.75H16.2L13.3125 12.25L11.2453 15.5108L9.9 13.25L7.8 16.75Z", fill: "#3D2244" }),
26
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 0L21 6H15V0Z", fill: "#E1CCE6" }),
27
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 6L21 12V6H15Z", fill: "#7B4389" }))));
28
28
  }
29
29
  function Drawing(props) {
30
- return (React.createElement("svg", __assign({}, props, { viewBox: "3 3 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }),
31
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3 0H15L21 6V24H3V0Z", fill: "#4D7AE6" }),
32
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 0L21 6H15V0Z", fill: "#AABDEE" }),
33
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 6L21 12V6H15Z", fill: "#2549AD" }),
34
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 12H19V22H5V8H15V12ZM17 14V20H12V18H10V20H7V16H12V14H7V10H9V12H11V10H13V14H17Z", fill: "#0D1C41" })));
30
+ return (React.createElement("svg", __assign({}, props, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none" }),
31
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3 0H15L21 6V24H3V0Z", fill: "#79A3EC" }),
32
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 6L21 12V6H15Z", fill: "#1952B3" }),
33
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 0L21 6H15V0Z", fill: "#BCD1F5" }),
34
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5 8V21H19V13.0556H16V8H5ZM11 11.5V10L14 9.94444V15H17V19H11V16.5H9V19H7V15H11V13H7V10H9V11.5H11Z", fill: "#133D86" })));
35
35
  }
36
36
  function Zip(props) {
37
- return (React.createElement("svg", __assign({}, props, { viewBox: "3 3 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }),
38
- React.createElement("rect", { x: "3", width: "18", height: "24", rx: "2", fill: "#C9CDD0" }),
39
- React.createElement("path", { d: "M10 0H12V2H10V0Z", fill: "#242729" }),
40
- React.createElement("path", { d: "M10 4H12V6H10V4Z", fill: "#242729" }),
41
- React.createElement("path", { d: "M12 2H14V4H12V2Z", fill: "#242729" }),
42
- React.createElement("path", { d: "M12 6H14V8H12V6Z", fill: "#242729" }),
43
- React.createElement("path", { d: "M10 8H12V10H10V8Z", fill: "#242729" }),
44
- React.createElement("path", { d: "M10 12H12V14H10V12Z", fill: "#242729" }),
45
- React.createElement("path", { d: "M12 10H14V12H12V10Z", fill: "#242729" }),
46
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.8673 15C10.3697 15 9.94773 15.3659 9.87736 15.8586L9.16307 20.8586C9.07701 21.461 9.54447 22 10.153 22H13.847C14.4555 22 14.923 21.461 14.837 20.8586L14.1227 15.8586C14.0523 15.3659 13.6304 15 13.1327 15H10.8673ZM11 20V17H13V20H11Z", fill: "#242729" })));
37
+ return (React.createElement("svg", __assign({}, props, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none" }),
38
+ React.createElement("rect", { x: "3", width: "18", height: "24", rx: "2", fill: "#E3E6E8" }),
39
+ React.createElement("path", { d: "M10 0H12V2H10V0Z", fill: "#2F3437" }),
40
+ React.createElement("path", { d: "M10 4H12V6H10V4Z", fill: "#2F3437" }),
41
+ React.createElement("path", { d: "M12 2H14V4H12V2Z", fill: "#2F3437" }),
42
+ React.createElement("path", { d: "M12 6H14V8H12V6Z", fill: "#2F3437" }),
43
+ React.createElement("path", { d: "M10 8H12V10H10V8Z", fill: "#2F3437" }),
44
+ React.createElement("path", { d: "M10 12H12V14H10V12Z", fill: "#2F3437" }),
45
+ React.createElement("path", { d: "M12 10H14V12H12V10Z", fill: "#2F3437" }),
46
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.8673 15C10.3697 15 9.94773 15.3659 9.87736 15.8586L9.16307 20.8586C9.07701 21.461 9.54447 22 10.153 22H13.847C14.4555 22 14.923 21.461 14.837 20.8586L14.1227 15.8586C14.0523 15.3659 13.6304 15 13.1327 15H10.8673ZM11 20V17H13V20H11Z", fill: "#2F3437" })));
47
47
  }
48
48
  function Email(props) {
49
- return (React.createElement("svg", __assign({}, props, { viewBox: "3 3 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }),
50
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3 0H15L21 6V24H3V0Z", fill: "#FADD59" }),
51
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 0L21 6H15V0Z", fill: "#FDEEA4" }),
52
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 6L21 12V6H15Z", fill: "#C7AA38" }),
53
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5 13L12 18L19 13V20H5V13Z", fill: "#4B400F" }),
54
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 16L19 11V10H5V11L12 16Z", fill: "#4B400F" })));
49
+ return (React.createElement("svg", __assign({}, props, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none" }),
50
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3 0H15L21 6V24H3V0Z", fill: "#FFDD33" }),
51
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 0L21 6H15V0Z", fill: "#FFF2B3" }),
52
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 6L21 12V6H15Z", fill: "#CCAA00" }),
53
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M18 10H6V10.9643L12.0073 14.9553L18 10.9643V10ZM18 12.3921L11.9928 16.3409L6 12.2363V19H18V12.3921Z", fill: "#665500" })));
55
54
  }
56
55
  function Excel(props) {
57
- return (React.createElement("svg", __assign({}, props, { viewBox: "3 3 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }),
58
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3 0H15L21 6V24H3V0Z", fill: "#80DC66" }),
59
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 0L21 6H15V0Z", fill: "#BBEEAF" }),
60
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 6L21 12V6H15Z", fill: "#55AA3B" }),
61
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5 8H19V22H5V8ZM17 10H13V12H17V10ZM11 10H7V12H11V10ZM7 16V14H11V16H7ZM13 16V14H17V16H13ZM7 18V20H11V18H7ZM13 18V20H17V18H13Z", fill: "#164214" })));
56
+ return (React.createElement("svg", __assign({}, props, { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" }),
57
+ React.createElement("g", null,
58
+ React.createElement("g", null,
59
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3 0H15L21 6V24H3V0Z", fill: "#2FD926" }),
60
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 0L21 6H15V0Z", fill: "#82E87D" }),
61
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 6L21 12V6H15Z", fill: "#2AC322" }),
62
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.5 21V9H18.5V21H5.5ZM12.6842 10.4118H17.1316V12.5294H12.6842V10.4118ZM11.3158 10.4118H6.86842V12.5294H11.3158V10.4118ZM11.3158 13.9412H6.86842V16.0588H11.3158V13.9412ZM11.3158 17.4706H6.86842V19.5882H11.3158V17.4706ZM12.6842 19.5882V17.4706H17.1316V19.5882H12.6842ZM12.6842 16.0588V13.9412H17.1316V16.0588H12.6842Z", fill: "#13570F" })))));
62
63
  }
63
64
  function Gantt(props) {
64
- return (React.createElement("svg", __assign({}, props, { viewBox: "3 3 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }),
65
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3 0H15L21 6V24H3V0Z", fill: "#80DC66" }),
66
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 0L21 6H15V0Z", fill: "#BBEEAF" }),
67
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 6L21 12V6H15Z", fill: "#55AA3B" }),
68
- React.createElement("path", { d: "M5 9.5C5 8.67157 5.67157 8 6.5 8H11.5C12.3284 8 13 8.67157 13 9.5C13 10.3284 12.3284 11 11.5 11H9V13H17.5C18.3284 13 19 13.6716 19 14.5C19 15.3284 18.3284 16 17.5 16H17V18H17.5C18.3284 18 19 18.6716 19 19.5C19 20.3284 18.3284 21 17.5 21H12.5C11.6716 21 11 20.3284 11 19.5C11 18.6716 11.6716 18 12.5 18H15V16H6.5C5.67157 16 5 15.3284 5 14.5C5 13.6716 5.67157 13 6.5 13H7V11H6.5C5.67157 11 5 10.3284 5 9.5Z", fill: "#164214" })));
65
+ return (React.createElement("svg", __assign({}, props, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none" }),
66
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3 0H15L21 6V24H3V0Z", fill: "#59E052" }),
67
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 0L21 6H15V0Z", fill: "#82E87D" }),
68
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 6L21 12V6H15Z", fill: "#2AC322" }),
69
+ React.createElement("path", { d: "M5.66669 8.66666C5.66669 7.93028 6.26364 7.33333 7.00002 7.33333H11C11.7364 7.33333 12.3334 7.93028 12.3334 8.66666C12.3334 9.40304 11.7364 9.99999 11 9.99999H9.66669V12.6667H17C17.7364 12.6667 18.3334 13.2636 18.3334 14C18.3334 14.7364 17.7364 15.3333 17 15.3333H15.6667V18H17C17.7364 18 18.3334 18.5969 18.3334 19.3333C18.3334 20.0697 17.7364 20.6667 17 20.6667H13C12.2636 20.6667 11.6667 20.0697 11.6667 19.3333C11.6667 18.5969 12.2636 18 13 18H14.3334V15.3333H7.00002C6.26364 15.3333 5.66669 14.7364 5.66669 14C5.66669 13.2636 6.26364 12.6667 7.00002 12.6667H8.33335V9.99999H7.00002C6.26364 9.99999 5.66669 9.40304 5.66669 8.66666Z", fill: "#13570F" })));
69
70
  }
70
71
  function Ini(props) {
71
- return (React.createElement("svg", __assign({}, props, { viewBox: "3 3 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }),
72
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3 0H15L21 6V24H3V0Z", fill: "#939CA1" }),
73
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 0L21 6H15V0Z", fill: "#C9CDD0" }),
74
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 6L21 12V6H15Z", fill: "#60696E" }),
75
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.444 11.9799L18 12.5567V15.4428L15.9371 15.9088L15.444 16.0196L16.23 18.5567L13.77 20L12 18.0397L10.23 20L7.77 18.5567L8.556 16.0196L6 15.4428V12.5567L8.556 11.9799L7.77 9.44335L10.23 8L12 9.96029L13.77 8L16.23 9.44335L15.444 11.9799ZM14 14C14 15.1046 13.1046 16 12 16C10.8954 16 10 15.1046 10 14C10 12.8954 10.8954 12 12 12C13.1046 12 14 12.8954 14 14Z", fill: "#242729" })));
72
+ return (React.createElement("svg", __assign({}, props, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none" }),
73
+ React.createElement("g", { id: "FileCog" },
74
+ React.createElement("g", null,
75
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3 0H15L21 6V24H3V0Z", fill: "#919CA1" }),
76
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 0L21 6H15V0Z", fill: "#ACB5B9" }),
77
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 6L21 12V6H15Z", fill: "#5E696E" })),
78
+ React.createElement("path", { d: "M16.1573 13.2666L16.1581 13.2801C16.0799 13.0944 15.9988 12.9034 15.8968 12.7246C15.7949 12.5458 15.6834 12.3865 15.5637 12.2251L15.5749 12.2326L16.2663 10.4817L13.7392 9L12.5966 10.4817L12.6049 10.4839C12.2149 10.4314 11.8169 10.4257 11.417 10.4772L11.4223 10.4742L10.266 9.00436L7.73704 10.4833L8.42897 12.2317L8.43416 12.2286C8.19015 12.5537 7.99609 12.9056 7.84599 13.2739L7.84819 13.2656L6.00186 13.5248L6 16.4854L7.8427 16.7544L7.84189 16.7408C7.92006 16.9266 8.00042 17.104 8.10235 17.2828C8.20429 17.4617 8.3218 17.6314 8.4467 17.7898L8.43551 17.7823L7.8397 19.2879L7.74629 19.5249L10.2674 20.996L11.4181 19.5166L11.3957 19.5016C11.7939 19.5564 12.1918 19.5621 12.5969 19.5075L12.5813 19.5166L13.7384 21L16.257 19.5271C16.257 19.5271 16.2186 19.4234 16.1622 19.288L15.565 17.7788L15.5599 17.7818C15.8039 17.4567 16.0031 17.1018 16.1554 16.7252L16.157 16.7523L17.9974 16.4826L18 13.5355C18 13.5355 17.8913 13.5149 17.7507 13.4989L16.1573 13.2666ZM13.0463 16.8462C12.0441 17.4323 10.7581 17.0833 10.1795 16.0681C9.60086 15.0529 9.94544 13.7504 10.9477 13.1643C11.9499 12.5782 13.2359 12.9272 13.8145 13.9424C14.3932 14.9575 14.0486 16.2601 13.0463 16.8462Z", fill: "#2F3437" }))));
76
79
  }
77
80
  function Mov(props) {
78
- return (React.createElement("svg", __assign({}, props, { viewBox: "3 3 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }),
79
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3 0H15L21 6V24H3V0Z", fill: "#9F7AB8" }),
80
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 0L21 6H15V0Z", fill: "#CEBDDB" }),
81
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 6L21 12V6H15Z", fill: "#6C4785" }),
82
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M18 14C18 17.3137 15.3137 20 12 20C8.68629 20 6 17.3137 6 14C6 10.6863 8.68629 8 12 8C15.3137 8 18 10.6863 18 14ZM11.46 11.72C11.0645 11.4233 10.5 11.7056 10.5 12.2V15.8C10.5 16.2944 11.0645 16.5767 11.46 16.28L13.86 14.48C14.18 14.24 14.18 13.76 13.86 13.52L11.46 11.72Z", fill: "#281A32" })));
81
+ return (React.createElement("svg", __assign({}, props, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none" }),
82
+ React.createElement("g", { id: "FileTriangleRight" },
83
+ React.createElement("g", null,
84
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3 0H15L21 6V24H3V0Z", fill: "#AE76BC" }),
85
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 0L21 6H15V0Z", fill: "#E1CCE6" }),
86
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 6L21 12V6H15Z", fill: "#7B4389" }),
87
+ React.createElement("path", { d: "M9 19V9L16.5 14.3333L9 19Z", fill: "#3D2244" })))));
83
88
  }
84
89
  function Pdf(props) {
85
- return (React.createElement("svg", __assign({}, props, { viewBox: "3 3 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }),
86
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3 0H15L21 6V24H3V0Z", fill: "#D55752" }),
87
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 0L21 6H15V0Z", fill: "#E7A9A8" }),
88
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 6L21 12V6H15Z", fill: "#A52B24" }),
89
- React.createElement("path", { d: "M5 10H11V16H5V10Z", fill: "#3D0F0C" }),
90
- React.createElement("path", { d: "M13 10H19V12H13V10Z", fill: "#3D0F0C" }),
91
- React.createElement("path", { d: "M13 14H19V16H13V14Z", fill: "#3D0F0C" }),
92
- React.createElement("path", { d: "M5 18H19V20H5V18Z", fill: "#3D0F0C" })));
90
+ return (React.createElement("svg", __assign({}, props, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none" }),
91
+ React.createElement("g", { id: "FileDetail" },
92
+ React.createElement("g", null,
93
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3 0H15L21 6V24H3V0Z", fill: "#EB474D" }),
94
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 0L21 6H15V0Z", fill: "#F7BABC" }),
95
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 6L21 12V6H15Z", fill: "#B8141A" })),
96
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13 10H19V12H13V10ZM13 14H19V16H13V14ZM19 18H5V20H19V18ZM11 10H5V16H11V10Z", fill: "#5C0A0D" }))));
93
97
  }
94
98
  function Powerpoint(props) {
95
- return (React.createElement("svg", __assign({}, props, { viewBox: "3 3 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }),
96
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3 0H15L21 6V24H3V0Z", fill: "#EE7C45" }),
97
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 0L21 6H15V0Z", fill: "#F5BC9E" }),
98
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 6L21 12V6H15Z", fill: "#BD4B20" }),
99
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M16 18V13H19V21H10V18H16Z", fill: "#471B06" }),
100
- React.createElement("path", { d: "M5 9H14V16H5V9Z", fill: "#471B06" })));
99
+ return (React.createElement("svg", __assign({}, props, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none" }),
100
+ React.createElement("g", { id: "FileDetailSquaresStacked" },
101
+ React.createElement("g", null,
102
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3 0H15L21 6V24H3V0Z", fill: "#FF7433" }),
103
+ React.createElement("g", null,
104
+ React.createElement("path", { d: "M6 11.5H7.5V19H14.5V20.5H6V11.5Z", fill: "#662000" }),
105
+ React.createElement("path", { d: "M9 9H17.5V17.5H9V9Z", fill: "#662000" })),
106
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 0L21 6H15V0Z", fill: "#FFCBB3" }),
107
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 6L21 12V6H15Z", fill: "#CC4100" })))));
101
108
  }
102
109
  function Word(props) {
103
- return (React.createElement("svg", __assign({}, props, { viewBox: "3 0 18 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }),
104
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3 0H15L21 6V24H3V0Z", fill: "#567CDF" }),
105
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 0L21 6H15V0Z", fill: "#AABDEE" }),
106
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 6L21 12V6H15Z", fill: "#2549AD" }),
107
- React.createElement("path", { d: "M5 10H13V12H5V10Z", fill: "#0D1C41" }),
108
- React.createElement("path", { d: "M5 18H13V20H5V18Z", fill: "#0D1C41" }),
109
- React.createElement("path", { d: "M5 14H19V16H5V14Z", fill: "#0D1C41" })));
110
+ return (React.createElement("svg", __assign({}, props, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none" }),
111
+ React.createElement("g", { id: "FileDetailWords" },
112
+ React.createElement("g", null,
113
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3 0H15L21 6V24H3V0Z", fill: "#BCD1F5" }),
114
+ React.createElement("g", null,
115
+ React.createElement("path", { d: "M6 10H15.5V12H6V10Z", fill: "#133D86" }),
116
+ React.createElement("path", { d: "M6 14H18V16H6V14Z", fill: "#133D86" }),
117
+ React.createElement("path", { d: "M6 18H16V20H6V18Z", fill: "#133D86" })),
118
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 0L21 6H15V0Z", fill: "#D2E0F9" }),
119
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 6L21 12V6H15Z", fill: "#79A3EC" })))));
110
120
  }
111
121
  function Xml(props) {
112
- return (React.createElement("svg", __assign({}, props, { viewBox: "3 3 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }),
113
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3 0H15L21 6V24H3V0Z", fill: "#939CA1" }),
114
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 0L21 6H15V0Z", fill: "#C9CDD0" }),
115
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 6L21 12V6H15Z", fill: "#60696E" }),
116
- React.createElement("path", { d: "M5 10H8V12H5V10Z", fill: "#242729" }),
117
- React.createElement("path", { d: "M10 10H19V12H10V10Z", fill: "#242729" }),
118
- React.createElement("path", { d: "M5 14H8V16H5V14Z", fill: "#242729" }),
119
- React.createElement("path", { d: "M10 14H19V16H10V14Z", fill: "#242729" }),
120
- React.createElement("path", { d: "M5 18H8V20H5V18Z", fill: "#242729" }),
121
- React.createElement("path", { d: "M10 18H19V20H10V18Z", fill: "#242729" })));
122
+ return (React.createElement("svg", __assign({}, props, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none" }),
123
+ React.createElement("g", { id: "FileDetailListBulleted" },
124
+ React.createElement("g", null,
125
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3 0H15L21 6V24H3V0Z", fill: "#ACB5B9" }),
126
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 0L21 6H15V0Z", fill: "#D6DADC" }),
127
+ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 6L21 12V6H15Z", fill: "#919CA1" }),
128
+ React.createElement("g", null,
129
+ React.createElement("path", { d: "M6 10L8 10V12H6V10Z", fill: "#2F3437" }),
130
+ React.createElement("path", { d: "M10 10L18 10V12H10V10Z", fill: "#2F3437" }),
131
+ React.createElement("path", { d: "M6 14H8V16H6V14Z", fill: "#2F3437" }),
132
+ React.createElement("path", { d: "M10 14H18V16H10V14Z", fill: "#2F3437" }),
133
+ React.createElement("path", { d: "M6 18H8V20H6V18Z", fill: "#2F3437" }),
134
+ React.createElement("path", { d: "M10 18H18V20H10V18Z", fill: "#2F3437" }))))));
122
135
  }
123
136
  var documentIcons = {
124
137
  image: Image,
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentIcon.js","sourceRoot":"","sources":["../../../../src/components/Thumbnail/DocumentIcon.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAyBzB,SAAS,OAAO,CAAC,KAAwB;IACvC,OAAO,CACL,wCACM,KAAK,IACT,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B;QAElC,8BACE,QAAQ,EAAC,SAAS,EAClB,QAAQ,EAAC,S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IAChB,GAAG,EAAE,GAAG;IACR,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE,KAAK;IACZ,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,UAAU,EAAE,UAAU;IACtB,IAAI,EAAE,IAAI;IACV,GAAG,EAAE,GAAG;CACT,CAAA;AAED,MAAM,UAAU,YAAY,CAAC,EAMT;QALlB,SAAS,eAAA,EACT,iBAAiB,EAAjB,SAAS,mBAAG,KAAK,KAAA,EACjB,cAAW,EAAX,MAAM,mBAAG,EAAE,KAAA,EACX,OAAO,aAAA,EACP,aAAU,EAAV,KAAK,mBAAG,EAAE,KAAA;IAEV,IAAM,IAAI,GAAG,aAAa,CAAC,OAAO,CAAC,IAAI,aAAa,CAAC,OAAO,CAAA;IAE5D,OAAO,CACL,oBAAC,IAAI,IACH,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,GACZ,CACH,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"DocumentIcon.js","sourceRoot":"","sources":["../../../../src/components/Thumbnail/DocumentIcon.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAyBzB,SAAS,OAAO,CAAC,KAAwB;IACvC,OAAO,CACL,wCACM,KAAK,IACT,KAAK,EAAC,4BAA4B,EAClC,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM;QAEX,8BACE,QAAQ,EAAC,SAAS,EAClB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,sBAAsB,EACxB,IAAI,EAAC,SAAS,GACd;QACF,8BACE,QAAQ,EAAC,SAAS,EAClB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,kBAAkB,EACpB,IAAI,EAAC,SAAS,GACd;QACF,8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,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,UAAU,EAAE,UAAU;IACtB,IAAI,EAAE,IAAI;IACV,GAAG,EAAE,GAAG;CACT,CAAA;AAED,MAAM,UAAU,YAAY,CAAC,EAMT;QALlB,SAAS,eAAA,EACT,iBAAiB,EAAjB,SAAS,mBAAG,KAAK,KAAA,EACjB,cAAW,EAAX,MAAM,mBAAG,EAAE,KAAA,EACX,OAAO,aAAA,EACP,aAAU,EAAV,KAAK,mBAAG,EAAE,KAAA;IAEV,IAAM,IAAI,GAAG,aAAa,CAAC,OAAO,CAAC,IAAI,aAAa,CAAC,OAAO,CAAA;IAE5D,OAAO,CACL,oBAAC,IAAI,IACH,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,GACZ,CACH,CAAA;AACH,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { TieredDropdownProps } from './TieredDropdown.types';
3
+ export declare const TieredDropdown: React.ForwardRefExoticComponent<TieredDropdownProps & React.RefAttributes<HTMLDivElement>>;
4
+ export default TieredDropdown;
@@ -0,0 +1,36 @@
1
+ import { Id } from '../TieredSelect/TieredSelect.types';
2
+ export declare const empty: any[];
3
+ export declare const hideKeys: {
4
+ overlay: string[];
5
+ target: string[];
6
+ };
7
+ export declare function defaultGetGroupId<T extends {
8
+ groupId: Id;
9
+ }>(tier: T): Id;
10
+ export declare function defaultGetId<T extends {
11
+ id: Id;
12
+ }>(tier: T): Id;
13
+ export declare function defaultGetLabel<T extends {
14
+ label: string;
15
+ }>(tier: T): string;
16
+ export declare function defaultGetNextGroupId<T extends {
17
+ nextGroupId?: Id;
18
+ }>(tier: T): Id;
19
+ export declare function noop(): void;
20
+ export declare function always(): boolean;
21
+ /**
22
+ * Helper function to find path in tiered structure
23
+ * @param optionsByNextGroupId
24
+ * @param item
25
+ * @param getGroupId
26
+ * @param getNextGroupId
27
+ * @returns
28
+ */
29
+ export declare function findPath<T>(optionsByNextGroupId: Record<string | number, any>, item: T, getGroupId: (t: T) => Id): T[];
30
+ /**
31
+ * Helper function to generate a path key
32
+ * @param path
33
+ * @param getLabel
34
+ * @returns
35
+ */
36
+ export declare function getPathKey<T>(path: T[] | undefined, getLabel: (tier: T) => string | undefined): string;
@@ -0,0 +1,56 @@
1
+ export var empty = [];
2
+ export var hideKeys = {
3
+ overlay: ['Escape', 'Esc'],
4
+ target: ['Escape', 'Esc'],
5
+ };
6
+ export function defaultGetGroupId(tier) {
7
+ return tier.groupId;
8
+ }
9
+ export function defaultGetId(tier) {
10
+ return tier.id;
11
+ }
12
+ export function defaultGetLabel(tier) {
13
+ return tier.label;
14
+ }
15
+ export function defaultGetNextGroupId(tier) {
16
+ return tier.nextGroupId;
17
+ }
18
+ export function noop() { }
19
+ export function always() {
20
+ return true;
21
+ }
22
+ /**
23
+ * Helper function to find path in tiered structure
24
+ * @param optionsByNextGroupId
25
+ * @param item
26
+ * @param getGroupId
27
+ * @param getNextGroupId
28
+ * @returns
29
+ */
30
+ export function findPath(optionsByNextGroupId, item, getGroupId) {
31
+ var path = [item];
32
+ var currentItem = item;
33
+ while (getGroupId(currentItem)) {
34
+ var groupId = getGroupId(currentItem);
35
+ if (groupId) {
36
+ var parent_1 = optionsByNextGroupId[groupId];
37
+ path.push(parent_1);
38
+ currentItem = parent_1;
39
+ }
40
+ else {
41
+ break;
42
+ }
43
+ }
44
+ return path.reverse();
45
+ }
46
+ /**
47
+ * Helper function to generate a path key
48
+ * @param path
49
+ * @param getLabel
50
+ * @returns
51
+ */
52
+ export function getPathKey(path, getLabel) {
53
+ if (path === void 0) { path = []; }
54
+ return path.map(function (node) { return getLabel(node); }).join(' > ');
55
+ }
56
+ //# sourceMappingURL=TieredDropdown.helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TieredDropdown.helpers.js","sourceRoot":"","sources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AAU,CACxB,IAAc,EACd,QAAyC;IADzC,qBAAA,EAAA,SAAc;IAGd,OAAO,IAAI,CAAC,GAAG,CAAC,UAAC,IAAI,IAAK,OAAA,QAAQ,CAAC,IAAI,CAAC,EAAd,CAAc,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;AACvD,CAAC"}
@@ -0,0 +1,155 @@
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 React from 'react';
24
+ import Button from '../Button';
25
+ import OverlayTrigger from '../OverlayTrigger';
26
+ import { TieredSelectMenu } from '../TieredSelect/TieredSelectMenu';
27
+ import { TieredSelectContext } from '../TieredSelect/TieredSelect';
28
+ import { useSearch } from './useSearch';
29
+ import { always, defaultGetGroupId, defaultGetId, defaultGetLabel, defaultGetNextGroupId, empty, findPath, getPathKey, hideKeys, noop, } from './TieredDropdown.helpers';
30
+ var TieredDropdownInternal = React.forwardRef(function TieredDropdownInternal(_a, ref) {
31
+ var _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.loading, loading = _c === void 0 ? false : _c, onKeyDown = _a.onKeyDown, _d = _a.options, options = _d === void 0 ? empty : _d, _e = _a.value, value = _e === void 0 ? empty : _e, props = __rest(_a, ["disabled", "loading", "onKeyDown", "options", "value"]);
32
+ var _f = React.useContext(TieredSelectContext), afterHide = _f.afterHide, afterShow = _f.afterShow, beforeHide = _f.beforeHide, beforeShow = _f.beforeShow, block = _f.block, getLabel = _f.getLabel, getGroupId = _f.getGroupId, getNextGroupId = _f.getNextGroupId, isLeaf = _f.isLeaf, onChange = _f.onChange, onNavigate = _f.onNavigate, onSearch = _f.onSearch, tabIndex = _f.tabIndex;
33
+ var searchablePaths = React.useMemo(function () {
34
+ if (onSearch) {
35
+ return empty;
36
+ }
37
+ var paths = empty;
38
+ var optionsByNextGroupId = options.reduce(function (map, option) {
39
+ var _a;
40
+ var nextGroupId = getNextGroupId(option);
41
+ if (nextGroupId) {
42
+ return __assign(__assign({}, map), (_a = {}, _a[nextGroupId] = option, _a));
43
+ }
44
+ return map;
45
+ }, {});
46
+ options.forEach(function (item) {
47
+ if (!getNextGroupId(item)) {
48
+ var path = findPath(optionsByNextGroupId, item, getGroupId);
49
+ var pathKey = getPathKey(path, getLabel);
50
+ paths.push({
51
+ path: path,
52
+ pathKey: pathKey,
53
+ label: pathKey,
54
+ node: item,
55
+ });
56
+ }
57
+ });
58
+ return paths;
59
+ }, [getGroupId, getLabel, getNextGroupId, onSearch, options]);
60
+ var _g = useSearch({
61
+ items: searchablePaths,
62
+ keysToSearch: ['pathKey'],
63
+ }), searchTerm = _g.searchTerm, filteredItems = _g.filteredItems, setSearch = _g.setSearch;
64
+ var menuOptions = React.useMemo(function () {
65
+ return searchTerm.length > 0 ? filteredItems : options;
66
+ }, [filteredItems, options, searchTerm.length]);
67
+ var tieredSelectMenuRef = React.useRef(null);
68
+ var _h = React.useState(null), currentTier = _h[0], setCurrentTier = _h[1];
69
+ // internal value used for navigation
70
+ var _j = React.useState(value), internalValue = _j[0], setInternalValue = _j[1];
71
+ var internalOnNavigate = React.useCallback(function (nextGroupId, value) {
72
+ setInternalValue(value);
73
+ setCurrentTier(nextGroupId);
74
+ onNavigate === null || onNavigate === void 0 ? void 0 : onNavigate(nextGroupId, value);
75
+ }, [onNavigate]);
76
+ var internalOnSearch = React.useCallback(function (event) {
77
+ if (onSearch === undefined) {
78
+ setSearch(event.target.value);
79
+ }
80
+ else {
81
+ onSearch(event);
82
+ }
83
+ }, [onSearch, setSearch]);
84
+ /**
85
+ * Emulates on select
86
+ */
87
+ var internalOnChange = React.useCallback(function (selection) {
88
+ if (searchTerm.length > 0) {
89
+ onChange === null || onChange === void 0 ? void 0 : onChange(__assign(__assign({}, selection), { value: selection.item.path, item: selection.item.node }));
90
+ }
91
+ else {
92
+ onChange === null || onChange === void 0 ? void 0 : onChange(selection);
93
+ }
94
+ }, [onChange, searchTerm]);
95
+ /**
96
+ * Used to reset state after selection
97
+ */
98
+ var internalAfterHide = React.useCallback(function () {
99
+ setCurrentTier(null);
100
+ setInternalValue(empty);
101
+ afterHide && afterHide();
102
+ }, [afterHide]);
103
+ // if value prop changes, update value state, current tier, and set button label
104
+ // else open to root
105
+ React.useEffect(function () {
106
+ var lastEntryInValue = value[value.length - 1];
107
+ if (value.length > 0) {
108
+ setInternalValue(value);
109
+ // show children of last tier in value if not a leaf node
110
+ // otherwise we want to show the parent of the last tier in value
111
+ if (isLeaf && !isLeaf(lastEntryInValue)) {
112
+ setCurrentTier(getNextGroupId(lastEntryInValue));
113
+ }
114
+ else {
115
+ setCurrentTier(getGroupId(lastEntryInValue));
116
+ }
117
+ }
118
+ else {
119
+ setCurrentTier(null);
120
+ setInternalValue(empty);
121
+ }
122
+ }, [getGroupId, getNextGroupId, isLeaf, value]);
123
+ return (React.createElement(OverlayTrigger, { afterHide: internalAfterHide, afterShow: afterShow, beforeHide: beforeHide, beforeShow: function (e) {
124
+ return beforeShow && beforeShow(e);
125
+ }, canFlip: true, hideKeys: hideKeys, overlay: React.createElement(TieredSelectMenu, __assign({ currentTier: currentTier, options: menuOptions, loading: loading, menuRef: tieredSelectMenuRef, onNavigate: internalOnNavigate, onSearch: internalOnSearch, onChange: internalOnChange, value: internalValue, previousValue: empty }, props)), placement: "bottom-left", ref: ref, trigger: "click" },
126
+ React.createElement(Button, { "data-qa": props['data-qa'], block: block, className: props.className, disabled: disabled, icon: props.icon, iconRight: props.iconRight, loading: loading, size: props.size, style: props.style, tabIndex: tabIndex, variant: props.variant }, props.children)));
127
+ });
128
+ export var TieredDropdown = React.forwardRef(function TieredDropdown(_a, ref) {
129
+ var _b = _a.afterHide, afterHide = _b === void 0 ? noop : _b, _c = _a.afterShow, afterShow = _c === void 0 ? noop : _c, _d = _a.beforeHide, beforeHide = _d === void 0 ? always : _d, _e = _a.beforeShow, beforeShow = _e === void 0 ? always : _e, block = _a.block, _f = _a.getGroupId, getGroupId = _f === void 0 ? defaultGetGroupId : _f, _g = _a.getId, getId = _g === void 0 ? defaultGetId : _g, _h = _a.getLabel, getLabel = _h === void 0 ? defaultGetLabel : _h, _j = _a.getNextGroupId, getNextGroupId = _j === void 0 ? defaultGetNextGroupId : _j, _k = _a.i18nScope, i18nScope = _k === void 0 ? 'core.tieredDropdown' : _k, _l = _a.onSelect, onSelect = _l === void 0 ? noop : _l, onNavigate = _a.onNavigate, onScrollBottom = _a.onScrollBottom, onSearch = _a.onSearch, tabIndex = _a.tabIndex, props = __rest(_a, ["afterHide", "afterShow", "beforeHide", "beforeShow", "block", "getGroupId", "getId", "getLabel", "getNextGroupId", "i18nScope", "onSelect", "onNavigate", "onScrollBottom", "onSearch", "tabIndex"]);
130
+ var isLeaf = React.useCallback(function (tier) {
131
+ return !getNextGroupId(tier);
132
+ }, [getNextGroupId]);
133
+ return (React.createElement(TieredSelectContext.Provider, { value: {
134
+ afterHide: afterHide,
135
+ afterShow: afterShow,
136
+ beforeHide: beforeHide,
137
+ beforeShow: beforeShow,
138
+ block: block,
139
+ getGroupId: getGroupId,
140
+ getId: getId,
141
+ getLabel: getLabel,
142
+ getNextGroupId: getNextGroupId,
143
+ getValueString: function () { return ''; },
144
+ i18nScope: i18nScope,
145
+ isLeaf: isLeaf,
146
+ onChange: onSelect,
147
+ onNavigate: onNavigate,
148
+ onScrollBottom: onScrollBottom,
149
+ onSearch: onSearch,
150
+ tabIndex: tabIndex,
151
+ } },
152
+ React.createElement(TieredDropdownInternal, __assign({ ref: ref }, props, { value: empty }))));
153
+ });
154
+ export default TieredDropdown;
155
+ //# sourceMappingURL=TieredDropdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TieredDropdown.js","sourceRoot":"","sources":["../../../../src/components/TieredDropdown/TieredDropdown.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAM,MAAM,WAAW,CAAA;AAE9B,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AAMlE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAMvC,OAAO,EACL,MAAM,EACN,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,qBAAqB,EACrB,KAAK,EACL,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,IAAI,GACL,MAAM,0BAA0B,CAAA;AAEjC,IAAM,sBAAsB,GAAG,KAAK,CAAC,UAAU,CAG7C,SAAS,sBAAsB,CAC/B,EAOC,EACD,GAAG;IAPD,IAAA,gBAAgB,EAAhB,QAAQ,mBAAG,KAAK,KAAA,EAChB,eAAe,EAAf,OAAO,mBAAG,KAAK,KAAA,EACf,SAAS,eAAA,EACT,eAAe,EAAf,OAAO,mBAAG,KAAK,KAAA,EACf,aAAa,EAAb,KAAK,mBAAG,KAAK,KAAA,EACV,KAAK,cANV,wDAOC,CADS;IAIJ,IAAA,KAcF,KAAK,CAAC,UAAU,CAAC,mBAAmB,CAAC,EAbvC,SAAS,eAAA,EACT,SAAS,eAAA,EACT,UAAU,gBAAA,EACV,UAAU,gBAAA,EACV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,MAAM,KAAA,EACnB,KAAK,WAAA,EACL,kBAA8B,EAA9B,UAAU,mBAAG,iBAAiB,KAAA,EAC9B,aAAoB,EAApB,KAAK,mBAAG,YAAY,KAAA,EACpB,gBAA0B,EAA1B,QAAQ,mBAAG,eAAe,KAAA,EAC1B,sBAAsC,EAAtC,cAAc,mBAAG,qBAAqB,KAAA,EACtC,iBAAiC,EAAjC,SAAS,mBAAG,qBAAqB,KAAA,EACjC,gBAAe,EAAf,QAAQ,mBAAG,IAAI,KAAA,EACf,UAAU,gBAAA,EACV,cAAc,oBAAA,EACd,QAAQ,cAAA,EACR,QAAQ,cAAA,EACL,KAAK,cAhBV,qMAiBC,CADS;IAIV,IAAM,MAAM,GAAG,KAAK,CAAC,WAAW,CAC9B,UAAU,IAAU;QAClB,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAA;IAC9B,CAAC,EACD,CAAC,cAAc,CAAC,CACjB,CAAA;IAED,OAAO,CACL,oBAAC,mBAAmB,CAAC,QAAQ,IAC3B,KAAK,EAAE;YACL,SAAS,WAAA;YACT,SAAS,WAAA;YACT,UAAU,YAAA;YACV,UAAU,YAAA;YACV,KAAK,OAAA;YACL,UAAU,YAAA;YACV,KAAK,OAAA;YACL,QAAQ,UAAA;YACR,cAAc,gBAAA;YACd,cAAc,EAAE,cAAM,OAAA,EAAE,EAAF,CAAE;YACxB,SAAS,WAAA;YACT,MAAM,QAAA;YACN,QAAQ,EAAE,QAAQ;YAClB,UAAU,YAAA;YACV,cAAc,gBAAA;YACd,QAAQ,UAAA;YACR,QAAQ,UAAA;SACT;QAED,oBAAC,sBAAsB,aAAC,GAAG,EAAE,GAAG,IAAM,KAAK,IAAE,KAAK,EAAE,KAAK,IAAI,CAChC,CAChC,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,cAAc,CAAA"}
@@ -0,0 +1,25 @@
1
+ import { ButtonProps } from '../Button';
2
+ import { ButtonVariant } from '../Button/Button.types';
3
+ import { TieredSelectProps } from '../TieredSelect';
4
+ declare type Div = React.ComponentPropsWithoutRef<'div'>;
5
+ declare type TriggerProps = Pick<ButtonProps, 'block' | 'disabled' | 'icon' | 'iconRight' | 'loading' | 'size'>;
6
+ export declare type SearchablePath<T = any> = {
7
+ label: string;
8
+ node: T;
9
+ path: T[];
10
+ pathKey: string;
11
+ };
12
+ export interface InternalTieredDropdownProps<T = any> extends Omit<Div, 'onSelect' | 'onChange'>, TriggerProps {
13
+ children: React.ReactText;
14
+ ['data-qa']?: string;
15
+ options?: T[];
16
+ value?: T[];
17
+ variant?: ButtonVariant;
18
+ }
19
+ export interface TieredDropdownProps extends Omit<TieredSelectProps, 'onChange' | 'getValueString' | 'value'>, TriggerProps {
20
+ onSelect: TieredSelectProps['onChange'];
21
+ children: InternalTieredDropdownProps['children'];
22
+ ['data-qa']?: string;
23
+ variant?: InternalTieredDropdownProps['variant'];
24
+ }
25
+ export {};