@hortiview/shared-components 0.0.11176 → 0.0.11587

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 (190) hide show
  1. package/README.md +58 -8
  2. package/dist/BigLoadingSpinner-iegTbDcD.js +16 -0
  3. package/dist/GenericCard-6J558OgP.js +350 -0
  4. package/dist/ListAreaService-DOwtdRa4.js +109 -0
  5. package/dist/_MapCache-B75yWNNd.js +376 -0
  6. package/dist/_baseIsEqual-D0Dsajdb.js +317 -0
  7. package/dist/_getTag-BCf9b56Z.js +81 -0
  8. package/dist/animationframe-EMBh6XeO.js +54 -0
  9. package/dist/assets/HashTabView.css +1 -1
  10. package/dist/assets/Select.css +1 -0
  11. package/dist/component-DsB0poTj.js +571 -0
  12. package/dist/component-neHBNHRu.js +114 -0
  13. package/dist/components/AlertBanner/AlertBanner.d.ts +0 -1
  14. package/dist/components/AlertBanner/AlertBanner.js +15 -15
  15. package/dist/components/AlertBanner/AlertBanner.test.js +11 -9
  16. package/dist/components/BaseView/BaseView.d.ts +1 -1
  17. package/dist/components/BaseView/BaseView.js +27 -28
  18. package/dist/components/BaseView/BaseView.test.js +25 -25
  19. package/dist/components/BasicHeading/BasicHeading.d.ts +1 -0
  20. package/dist/components/BasicHeading/BasicHeading.js +17 -17
  21. package/dist/components/BasicHeading/BasicHeading.test.js +10 -10
  22. package/dist/components/BlockView/BlockView.d.ts +1 -0
  23. package/dist/components/BlockView/BlockView.js +24 -25
  24. package/dist/components/BlockView/BlockView.test.js +2 -2
  25. package/dist/components/ChipCard/ChipCard.js +1765 -15
  26. package/dist/components/ChipCard/ChipCard.test.js +2 -2
  27. package/dist/components/ContextMenu/ContextMenu.d.ts +3 -2
  28. package/dist/components/ContextMenu/ContextMenu.js +28 -28
  29. package/dist/components/ContextMenu/ContextMenu.test.js +2 -2
  30. package/dist/components/DeleteModal/DeleteModal.d.ts +0 -1
  31. package/dist/components/DeleteModal/DeleteModal.js +53 -51
  32. package/dist/components/DeleteModal/DeleteModal.test.js +2 -2
  33. package/dist/components/Disclaimer/Disclaimer.js +12 -11
  34. package/dist/components/Disclaimer/Disclaimer.test.js +2 -2
  35. package/dist/components/EmptyView/EmptyView.d.ts +1 -0
  36. package/dist/components/EmptyView/EmptyView.js +258 -19
  37. package/dist/components/EmptyView/EmptyView.test.js +2 -2
  38. package/dist/components/Filter/Filter.d.ts +1 -0
  39. package/dist/components/Filter/Filter.js +81 -77
  40. package/dist/components/Filter/Filter.test.js +2 -2
  41. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.d.ts +1 -0
  42. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +13 -11
  43. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.test.js +2 -2
  44. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.d.ts +3 -2
  45. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +5975 -6389
  46. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.test.js +2 -2
  47. package/dist/components/FormComponents/FormNumber/CustomTextField.d.ts +2 -1
  48. package/dist/components/FormComponents/FormNumber/CustomTextField.js +13 -14
  49. package/dist/components/FormComponents/FormNumber/FormNumber.d.ts +2 -1
  50. package/dist/components/FormComponents/FormNumber/FormNumber.js +2 -2
  51. package/dist/components/FormComponents/FormNumber/FormNumber.test.js +4 -4
  52. package/dist/components/FormComponents/FormRadio/FormRadio.d.ts +1 -0
  53. package/dist/components/FormComponents/FormRadio/FormRadio.js +4 -4
  54. package/dist/components/FormComponents/FormRadio/FormRadio.test.js +2 -2
  55. package/dist/components/FormComponents/FormSelect/FormSelect.d.ts +4 -7
  56. package/dist/components/FormComponents/FormSelect/FormSelect.js +100 -110
  57. package/dist/components/FormComponents/FormSelect/FormSelect.test.js +3 -3
  58. package/dist/components/FormComponents/FormSelect/SelectTooltipText.d.ts +1 -0
  59. package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +6 -5
  60. package/dist/components/FormComponents/FormSlider/FormSlider.d.ts +1 -0
  61. package/dist/components/FormComponents/FormSlider/FormSlider.js +1155 -27
  62. package/dist/components/FormComponents/FormSlider/FormSlider.test.js +2 -2
  63. package/dist/components/FormComponents/FormText/FormText.d.ts +2 -1
  64. package/dist/components/FormComponents/FormText/FormText.js +28 -28
  65. package/dist/components/FormComponents/FormText/FormText.test.js +13 -13
  66. package/dist/components/FormComponents/FormToggle/FormToggle.d.ts +2 -1
  67. package/dist/components/FormComponents/FormToggle/FormToggle.js +17 -15
  68. package/dist/components/FormComponents/FormToggle/FormToggle.test.js +2 -2
  69. package/dist/components/FormattedNumberDisplay/FormattedNumberDisplay.d.ts +2 -1
  70. package/dist/components/FormattedNumberDisplay/FormattedNumberDisplay.js +1 -1
  71. package/dist/components/GenericTable/GenericTable.d.ts +1 -0
  72. package/dist/components/GenericTable/GenericTable.js +10487 -76
  73. package/dist/components/GenericTable/GenericTable.test.js +2 -2
  74. package/dist/components/GenericTable/GenericTableService.d.ts +1 -0
  75. package/dist/components/GenericTable/GenericTableService.js +41 -41
  76. package/dist/components/GenericTable/Mobile/GenericCard.d.ts +1 -1
  77. package/dist/components/GenericTable/Mobile/GenericCard.js +4 -3
  78. package/dist/components/GenericTable/Mobile/GenericCard.test.js +3 -3
  79. package/dist/components/GenericTable/Mobile/GenericCardList.d.ts +1 -1
  80. package/dist/components/GenericTable/Mobile/GenericCardList.js +10 -8
  81. package/dist/components/GenericTable/Mobile/GenericCardList.test.js +2 -2
  82. package/dist/components/HashTabView/HashTabView.d.ts +6 -1
  83. package/dist/components/HashTabView/HashTabView.js +1805 -72
  84. package/dist/components/HashTabView/HashTabView.test.js +2 -2
  85. package/dist/components/HeaderFilter/HeaderFilter.d.ts +3 -2
  86. package/dist/components/HeaderFilter/HeaderFilter.js +14 -14
  87. package/dist/components/HeaderFilter/HeaderFilter.test.js +2 -2
  88. package/dist/components/HealthCheckFailed/HealthCheckFailed.js +19 -17
  89. package/dist/components/HealthCheckFailed/HealthCheckFailed.test.js +2 -2
  90. package/dist/components/Iconify/Iconify.d.ts +2 -3
  91. package/dist/components/Iconify/Iconify.js +44 -45
  92. package/dist/components/Iconify/Iconify.test.js +2 -2
  93. package/dist/components/InfoGroup/InfoGroup.d.ts +4 -3
  94. package/dist/components/InfoGroup/InfoGroup.js +30 -29
  95. package/dist/components/InfoGroup/InfoGroup.test.js +2 -2
  96. package/dist/components/ListArea/ListArea.d.ts +1 -1
  97. package/dist/components/ListArea/ListArea.js +29 -27
  98. package/dist/components/ListArea/ListArea.test.js +5 -5
  99. package/dist/components/ListArea/ListAreaService.d.ts +9 -8
  100. package/dist/components/ListArea/ListAreaService.js +7 -5
  101. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
  102. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +3 -3
  103. package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +506 -38
  104. package/dist/components/LoadingSpinner/Default/LoadingSpinner.test.js +2 -2
  105. package/dist/components/Modal/Modal.d.ts +2 -1
  106. package/dist/components/Modal/Modal.js +926 -10
  107. package/dist/components/ModulePadding/ModulePadding.d.ts +7 -0
  108. package/dist/components/ModulePadding/ModulePadding.js +28 -0
  109. package/dist/components/ModulePadding/ModulePadding.test.d.ts +1 -0
  110. package/dist/components/ModulePadding/ModulePadding.test.js +22 -0
  111. package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +0 -1
  112. package/dist/components/OverflowTooltip/OverflowTooltip.js +13 -14
  113. package/dist/components/OverflowTooltip/OverflowTooltip.test.js +4 -4
  114. package/dist/components/Scrollbar/Scrollbar.js +5 -6
  115. package/dist/components/Scrollbar/scrollbar.test.js +2 -2
  116. package/dist/components/SearchBar/SearchBar.js +11 -11
  117. package/dist/components/SearchBar/SearchBar.test.js +2 -2
  118. package/dist/components/Select/Select.d.ts +14 -0
  119. package/dist/components/Select/Select.js +34 -0
  120. package/dist/components/Select/Select.test.d.ts +1 -0
  121. package/dist/components/Select/Select.test.js +28 -0
  122. package/dist/components/VerticalDivider/VerticalDivider.js +4 -5
  123. package/dist/components/VerticalDivider/VerticalDivider.test.js +2 -2
  124. package/dist/floating-ui.dom-CeD8zknG.js +978 -0
  125. package/dist/get-7ACccM2X.js +114 -0
  126. package/dist/{get-BiqanC9_.js → get-DFv1gXfq.js} +1 -1
  127. package/dist/hooks/useBreakpoints.test.js +2 -2
  128. package/dist/hooks/useHelperText.d.ts +1 -0
  129. package/dist/hooks/useHelperText.js +1 -1
  130. package/dist/identity-DLWZln-X.js +1763 -0
  131. package/dist/{index-DzM8o582.js → index-CrcXCSzI.js} +1940 -1796
  132. package/dist/index.es-0lQcz8m1.js +444 -0
  133. package/dist/index.es-25EARqhH.js +2027 -0
  134. package/dist/index.es-3043KTnb.js +1066 -0
  135. package/dist/index.es-41ztjcFT.js +724 -0
  136. package/dist/index.es-6TJ1S8Jr.js +954 -0
  137. package/dist/index.es-8GOVkuo-.js +374 -0
  138. package/dist/index.es-B-_jXDuz.js +216 -0
  139. package/dist/index.es-BWgXLqXn.js +102 -0
  140. package/dist/index.es-BtjV0oNv.js +360 -0
  141. package/dist/index.es-BvrQnJ3j.js +509 -0
  142. package/dist/index.es-CF_xy2ns.js +674 -0
  143. package/dist/index.es-CL_Heu1n.js +54 -0
  144. package/dist/index.es-CiqbARoC.js +306 -0
  145. package/dist/index.es-D-CKRzIB.js +63 -0
  146. package/dist/index.es-D6N-XWHe.js +56 -0
  147. package/dist/index.es-DKDgy7Kt.js +45 -0
  148. package/dist/index.es-DntoATwO.js +159 -0
  149. package/dist/index.es-UHKFl8Da.js +7075 -0
  150. package/dist/index.es-d5xhUpJZ.js +3242 -0
  151. package/dist/index.es-da0cf7oE.js +569 -0
  152. package/dist/index.es-h2lMdt7G.js +107 -0
  153. package/dist/index.es-zr101OF5.js +4853 -0
  154. package/dist/{isArray-2zMxXFEr.js → isArray-DN9s620O.js} +3 -3
  155. package/dist/{isArray-C_5XvIlE.js → isArray-Dub1wGJM.js} +1 -1
  156. package/dist/isEmpty-B4GG2s-V.js +31 -0
  157. package/dist/isPlainObject-C273y67K.js +40 -0
  158. package/dist/isString-BW9UHONv.js +21 -0
  159. package/dist/keyboard-Bpt0aBqQ.js +107 -0
  160. package/dist/main.d.ts +3 -0
  161. package/dist/main.js +58 -54
  162. package/dist/orderBy-Bd48bw88.js +316 -0
  163. package/dist/{react-number-format.es-BD3_OvMU.js → react-number-format.es-BK1EpVXq.js} +151 -151
  164. package/dist/react-tooltip.min-DSY6KDqS.js +431 -0
  165. package/dist/{react.esm-FR1-H8iU.js → react.esm-DNwojocF.js} +5289 -4990
  166. package/dist/services/BlockService.d.ts +1 -0
  167. package/dist/services/NumberService.d.ts +1 -0
  168. package/dist/services/UtilService.d.ts +1 -0
  169. package/dist/services/UtilService.js +2 -2
  170. package/dist/services/services.test.js +1 -1
  171. package/dist/toString-CrgB_7Pe.js +54 -0
  172. package/dist/tslib.es6-BDCynO9F.js +162 -0
  173. package/dist/types/GenericTable.d.ts +2 -2
  174. package/dist/types/HashTab.d.ts +0 -1
  175. package/dist/types/ListElement.d.ts +0 -1
  176. package/dist/types/internal/ReactRouterTypes.d.ts +0 -1
  177. package/dist/uniqueId-NU3-C36A.js +18 -0
  178. package/dist/util-DA21pZXj.js +78 -0
  179. package/dist/{vi.CjhMlMwf-DWv7vrn7.js → vi.CjhMlMwf-BCJNwXvu.js} +1 -1
  180. package/package.json +15 -15
  181. package/dist/BigLoadingSpinner-C3wTbTD0.js +0 -17
  182. package/dist/GenericCard-B8x1DMa8.js +0 -81
  183. package/dist/ListAreaService-CRX4eEUJ.js +0 -108
  184. package/dist/_Map-Dtlps7IZ.js +0 -113
  185. package/dist/_overArg-_0pUmCsX.js +0 -14
  186. package/dist/get-P-5PYZOE.js +0 -426
  187. package/dist/isEmpty-BimaZd5G.js +0 -225
  188. package/dist/isString-BOHPtrlm.js +0 -44
  189. package/dist/orderBy-BVQIswlJ.js +0 -765
  190. package/dist/react-tooltip.min-c2wVkjF2.js +0 -1354
@@ -0,0 +1,674 @@
1
+ import { c as k, _ as s, P as e } from "./identity-DLWZln-X.js";
2
+ import i, { forwardRef as u, useRef as x, useImperativeHandle as b, useEffect as I } from "react";
3
+ import { b as m, g as $ } from "./index.es-da0cf7oE.js";
4
+ import { c as S } from "./tslib.es6-BDCynO9F.js";
5
+ function _(c) {
6
+ return c.toLowerCase();
7
+ }
8
+ var R = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g], w = /[^A-Z0-9]+/gi;
9
+ function A(c, l) {
10
+ l === void 0 && (l = {});
11
+ for (var g = l.splitRegexp, n = g === void 0 ? R : g, d = l.stripRegexp, o = d === void 0 ? w : d, r = l.transform, a = r === void 0 ? _ : r, t = l.delimiter, p = t === void 0 ? " " : t, y = H(H(c, n, "$1\0$2"), o, "\0"), T = 0, L = y.length; y.charAt(T) === "\0"; )
12
+ T++;
13
+ for (; y.charAt(L - 1) === "\0"; )
14
+ L--;
15
+ return y.slice(T, L).split("\0").map(a).join(p);
16
+ }
17
+ function H(c, l, g) {
18
+ return l instanceof RegExp ? c.replace(l, g) : l.reduce(function(n, d) {
19
+ return n.replace(d, g);
20
+ }, c);
21
+ }
22
+ function Z(c, l) {
23
+ return l === void 0 && (l = {}), A(c, S({ delimiter: "." }, l));
24
+ }
25
+ function O(c, l) {
26
+ return l === void 0 && (l = {}), Z(c, S({ delimiter: "-" }, l));
27
+ }
28
+ const z = {
29
+ /**
30
+ * If true the typography will be bold. Applies to 1body, body2, caption, subtitle1, subtitle2
31
+ *
32
+ * Defaults to **false**.
33
+ */
34
+ bold: e.bool,
35
+ /**
36
+ * Expects a string, accepts any valid markup.
37
+ *
38
+ * Defaults to **null**.
39
+ */
40
+ children: e.node,
41
+ /**
42
+ * The css class name to be passed through to the component markup.
43
+ *
44
+ * Defaults to **undefined**.
45
+ */
46
+ className: e.string,
47
+ /**
48
+ * The DOM element to display the typography.
49
+ *
50
+ * Defaults to **'span'**.
51
+ */
52
+ tag: e.oneOfType([e.string, e.elementType, e.instanceOf(i.Component)]),
53
+ /**
54
+ * Sets theme color for the typography. Does not apply to Link.
55
+ *
56
+ * Defaults to **undefined**.
57
+ */
58
+ themeColor: m(e.oneOf(["primary", "secondary", "error", "text-primary-on-background", "text-secondary-on-background", "text-hint-on-background", "text-disabled-on-background", "text-icon-on-background", "text-primary-on-light", "text-secondary-on-light", "text-hint-on-light", "text-disabled-on-light", "text-icon-on-light"]), ["textPrimaryOnBackground", "textSecondaryOnBackground", "textHintOnBackground", "textDisabledOnBackground", "textIconOnBackground", "textPrimaryOnLight", "textSecondaryOnLight", "textHintOnLight", "textDisabledOnLight", "textIconOnLight"], "Typography", "Please use one of 'primary','secondary','error','text-primary-on-background','text-secondary-on-background','text-hint-on-background','text-disabled-on-background','text-icon-on-background','text-primary-on-light','text-secondary-on-light','text-hint-on-light','text-disabled-on-light','text-icon-on-light'."),
59
+ /**
60
+ * Sets typography class for the element.
61
+ *
62
+ * Defaults to **'body1'**.
63
+ */
64
+ type: m(e.oneOf(["body1", "body1-bold", "body2", "body2-bold", "button", "caption", "caption-bold", "display1", "display2", "display3", "display4", "display5", "display6", "link", "overline", "subtitle1", "subtitle1-bold", "subtitle2", "subtitle2-bold"]), ["headline1", "headline2", "headline3", "headline4", "headline5", "headline6"], "Typography", "Please use one of 'body1','body1-bold','body2','body2-bold','button','caption','caption-bold','display1','display2','display3','display4','display5','display6','link','overline','subtitle1','subtitle1-bold','subtitle2','subtitle2-bold'.")
65
+ }, F = {
66
+ bold: !1,
67
+ children: null,
68
+ className: void 0,
69
+ tag: "span",
70
+ themeColor: void 0,
71
+ type: "body1"
72
+ }, G = {
73
+ /**
74
+ * If true the typography will be bold.
75
+ *
76
+ * Defaults to **false**.
77
+ */
78
+ bold: e.bool,
79
+ /**
80
+ * Expects a string, accepts any valid markup.
81
+ *
82
+ * Defaults to **null**.
83
+ */
84
+ children: e.node,
85
+ /**
86
+ * The css class name to be passed through to the component markup.
87
+ *
88
+ * Defaults to **undefined**.
89
+ */
90
+ className: e.string,
91
+ /**
92
+ * Sets font properties for body. Acceptable values range from 1 - 2. Higher levels produce smaller type.
93
+ *
94
+ * Defaults to **1**.
95
+ */
96
+ level: e.oneOf([1, 2]),
97
+ /**
98
+ * The DOM element to display the typography.
99
+ *
100
+ * Defaults to **'span'**.
101
+ */
102
+ tag: e.oneOfType([e.string, e.elementType, e.instanceOf(i.Component)]),
103
+ /**
104
+ * Sets theme color for the typography.
105
+ *
106
+ * Defaults to **undefined**.
107
+ */
108
+ themeColor: m(e.oneOf(["primary", "secondary", "error", "text-primary-on-background", "text-secondary-on-background", "text-hint-on-background", "text-disabled-on-background", "text-icon-on-background", "text-primary-on-light", "text-secondary-on-light", "text-hint-on-light", "text-disabled-on-light", "text-icon-on-light"]), ["textPrimaryOnBackground", "textSecondaryOnBackground", "textHintOnBackground", "textDisabledOnBackground", "textIconOnBackground", "textPrimaryOnLight", "textSecondaryOnLight", "textHintOnLight", "textDisabledOnLight", "textIconOnLight"], "TypoBody", "Please use one of 'primary','secondary','error','text-primary-on-background','text-secondary-on-background','text-hint-on-background','text-disabled-on-background','text-icon-on-background','text-primary-on-light','text-secondary-on-light','text-hint-on-light','text-disabled-on-light','text-icon-on-light'.")
109
+ }, U = {
110
+ bold: !1,
111
+ children: null,
112
+ className: void 0,
113
+ level: 1,
114
+ tag: "span",
115
+ themeColor: void 0
116
+ }, X = {
117
+ /**
118
+ * Expects a string, accepts any valid markup.
119
+ *
120
+ * Defaults to **null**.
121
+ */
122
+ children: e.node,
123
+ /**
124
+ * The css class name to be passed through to the component markup.
125
+ *
126
+ * Defaults to **undefined**.
127
+ */
128
+ className: e.string,
129
+ /**
130
+ * The DOM element to display the typography.
131
+ *
132
+ * Defaults to **'span'**.
133
+ */
134
+ tag: e.oneOfType([e.string, e.elementType, e.instanceOf(i.Component)]),
135
+ /**
136
+ * Sets theme color for the typography.
137
+ *
138
+ * Defaults to **undefined**.
139
+ */
140
+ themeColor: m(e.oneOf(["primary", "secondary", "error", "text-primary-on-background", "text-secondary-on-background", "text-hint-on-background", "text-disabled-on-background", "text-icon-on-background", "text-primary-on-light", "text-secondary-on-light", "text-hint-on-light", "text-disabled-on-light", "text-icon-on-light"]), ["textPrimaryOnBackground", "textSecondaryOnBackground", "textHintOnBackground", "textDisabledOnBackground", "textIconOnBackground", "textPrimaryOnLight", "textSecondaryOnLight", "textHintOnLight", "textDisabledOnLight", "textIconOnLight"], "TypoButton", "Please use one of 'primary','secondary','error','text-primary-on-background','text-secondary-on-background','text-hint-on-background','text-disabled-on-background','text-icon-on-background','text-primary-on-light','text-secondary-on-light','text-hint-on-light','text-disabled-on-light','text-icon-on-light'.")
141
+ }, j = {
142
+ children: null,
143
+ className: void 0,
144
+ tag: "span",
145
+ themeColor: void 0
146
+ }, q = {
147
+ /**
148
+ * If true the typography will be bold.
149
+ *
150
+ * Defaults to **false**.
151
+ */
152
+ bold: e.bool,
153
+ /**
154
+ * Expects a string, accepts any valid markup.
155
+ *
156
+ * Defaults to **null**.
157
+ */
158
+ children: e.node,
159
+ /**
160
+ * The css class name to be passed through to the component markup.
161
+ *
162
+ * Defaults to **undefined**.
163
+ */
164
+ className: e.string,
165
+ /**
166
+ * The DOM element to display the typography.
167
+ *
168
+ * Defaults to **'span'**.
169
+ */
170
+ tag: e.oneOfType([e.string, e.elementType, e.instanceOf(i.Component)]),
171
+ /**
172
+ * Sets theme color for the typography.
173
+ *
174
+ * Defaults to **undefined**.
175
+ */
176
+ themeColor: m(e.oneOf(["primary", "secondary", "error", "text-primary-on-background", "text-secondary-on-background", "text-hint-on-background", "text-disabled-on-background", "text-icon-on-background", "text-primary-on-light", "text-secondary-on-light", "text-hint-on-light", "text-disabled-on-light", "text-icon-on-light"]), ["textPrimaryOnBackground", "textSecondaryOnBackground", "textHintOnBackground", "textDisabledOnBackground", "textIconOnBackground", "textPrimaryOnLight", "textSecondaryOnLight", "textHintOnLight", "textDisabledOnLight", "textIconOnLight"], "TypoCaption", "Please use one of 'primary','secondary','error','text-primary-on-background','text-secondary-on-background','text-hint-on-background','text-disabled-on-background','text-icon-on-background','text-primary-on-light','text-secondary-on-light','text-hint-on-light','text-disabled-on-light','text-icon-on-light'.")
177
+ }, J = {
178
+ bold: !1,
179
+ children: null,
180
+ className: void 0,
181
+ tag: "span",
182
+ themeColor: void 0
183
+ }, K = {
184
+ /**
185
+ * Expects a string, accepts any valid markup.
186
+ *
187
+ * Defaults to **null**.
188
+ */
189
+ children: e.node,
190
+ /**
191
+ * The css class name to be passed through to the component markup.
192
+ *
193
+ * Defaults to **undefined**.
194
+ */
195
+ className: e.string,
196
+ /**
197
+ * Sets font properties for body. Acceptable values range from 1 to 6. Higher levels produce smaller type.
198
+ *
199
+ * Defaults to **1**.
200
+ */
201
+ level: e.oneOfType([e.oneOf([1, 2, 3, 4, 5, 6, "1", "2", "3", "4", "5", "6"]), e.oneOf([1, 2, 3, 4, 5, 6, "1", "2", "3", "4", "5", "6"])]),
202
+ /**
203
+ * The DOM element to display the typography.
204
+ *
205
+ * Defaults to **'span'**.
206
+ */
207
+ tag: e.oneOfType([e.string, e.elementType, e.instanceOf(i.Component)]),
208
+ /**
209
+ * Sets theme color for the typography.
210
+ *
211
+ * Defaults to **undefined**.
212
+ */
213
+ themeColor: m(e.oneOf(["primary", "secondary", "error", "text-primary-on-background", "text-secondary-on-background", "text-hint-on-background", "text-disabled-on-background", "text-icon-on-background", "text-primary-on-light", "text-secondary-on-light", "text-hint-on-light", "text-disabled-on-light", "text-icon-on-light"]), ["textPrimaryOnBackground", "textSecondaryOnBackground", "textHintOnBackground", "textDisabledOnBackground", "textIconOnBackground", "textPrimaryOnLight", "textSecondaryOnLight", "textHintOnLight", "textDisabledOnLight", "textIconOnLight"], "TypoDisplay", "Please use one of 'primary','secondary','error','text-primary-on-background','text-secondary-on-background','text-hint-on-background','text-disabled-on-background','text-icon-on-background','text-primary-on-light','text-secondary-on-light','text-hint-on-light','text-disabled-on-light','text-icon-on-light'.")
214
+ }, M = {
215
+ children: null,
216
+ className: void 0,
217
+ level: 1,
218
+ tag: "span",
219
+ themeColor: void 0
220
+ }, Q = {
221
+ /**
222
+ * Expects a string, accepts any valid markup.
223
+ *
224
+ * Defaults to **null**.
225
+ */
226
+ children: e.node,
227
+ /**
228
+ * The css class name to be passed through to the component markup.
229
+ *
230
+ * Defaults to **undefined**.
231
+ */
232
+ className: e.string,
233
+ /**
234
+ * Sets font properties for body. Acceptable values range from 1 to 6. Higher levels produce smaller type.
235
+ *
236
+ * Defaults to **1**.
237
+ */
238
+ level: e.oneOfType([e.oneOf([1, 2, 3, 4, 5, 6, "1", "2", "3", "4", "5", "6"]), e.oneOf([1, 2, 3, 4, 5, 6, "1", "2", "3", "4", "5", "6"])]),
239
+ /**
240
+ * The DOM element to display the typography.
241
+ *
242
+ * Defaults to **'span'**.
243
+ */
244
+ tag: e.oneOfType([e.string, e.elementType, e.instanceOf(i.Component)]),
245
+ /**
246
+ * Sets theme color for the typography.
247
+ *
248
+ * Defaults to **undefined**.
249
+ */
250
+ themeColor: m(e.oneOf(["primary", "secondary", "error", "text-primary-on-background", "text-secondary-on-background", "text-hint-on-background", "text-disabled-on-background", "text-icon-on-background", "text-primary-on-light", "text-secondary-on-light", "text-hint-on-light", "text-disabled-on-light", "text-icon-on-light"]), ["textPrimaryOnBackground", "textSecondaryOnBackground", "textHintOnBackground", "textDisabledOnBackground", "textIconOnBackground", "textPrimaryOnLight", "textSecondaryOnLight", "textHintOnLight", "textDisabledOnLight", "textIconOnLight"], "TypoHeadline", "Please use one of 'primary','secondary','error','text-primary-on-background','text-secondary-on-background','text-hint-on-background','text-disabled-on-background','text-icon-on-background','text-primary-on-light','text-secondary-on-light','text-hint-on-light','text-disabled-on-light','text-icon-on-light'.")
251
+ }, V = {
252
+ children: null,
253
+ className: void 0,
254
+ level: 1,
255
+ tag: "span",
256
+ themeColor: void 0
257
+ }, W = {
258
+ /**
259
+ * Expects a string, accepts any valid markup.
260
+ *
261
+ * Defaults to **null**.
262
+ */
263
+ children: e.node,
264
+ /**
265
+ * The css class name to be passed through to the component markup.
266
+ *
267
+ * Defaults to **undefined**.
268
+ */
269
+ className: e.string,
270
+ /**
271
+ * The DOM element to display the typography.
272
+ *
273
+ * Defaults to **'a'**.
274
+ */
275
+ tag: e.oneOfType([e.string, e.elementType, e.instanceOf(i.Component)])
276
+ }, Y = {
277
+ children: null,
278
+ className: void 0,
279
+ tag: "a"
280
+ }, ee = {
281
+ /**
282
+ * Expects a string, accepts any valid markup.
283
+ *
284
+ * Defaults to **null**.
285
+ */
286
+ children: e.node,
287
+ /**
288
+ * The css class name to be passed through to the component markup.
289
+ *
290
+ * Defaults to **undefined**.
291
+ */
292
+ className: e.string,
293
+ /**
294
+ * The DOM element to display the typography.
295
+ *
296
+ * Defaults to **'span'**.
297
+ */
298
+ tag: e.oneOfType([e.string, e.elementType, e.instanceOf(i.Component)]),
299
+ /**
300
+ * Sets theme color for the typography.
301
+ *
302
+ * Defaults to **undefined**.
303
+ */
304
+ themeColor: m(e.oneOf(["primary", "secondary", "error", "text-primary-on-background", "text-secondary-on-background", "text-hint-on-background", "text-disabled-on-background", "text-icon-on-background", "text-primary-on-light", "text-secondary-on-light", "text-hint-on-light", "text-disabled-on-light", "text-icon-on-light"]), ["textPrimaryOnBackground", "textSecondaryOnBackground", "textHintOnBackground", "textDisabledOnBackground", "textIconOnBackground", "textPrimaryOnLight", "textSecondaryOnLight", "textHintOnLight", "textDisabledOnLight", "textIconOnLight"], "TypoOverline", "Please use one of 'primary','secondary','error','text-primary-on-background','text-secondary-on-background','text-hint-on-background','text-disabled-on-background','text-icon-on-background','text-primary-on-light','text-secondary-on-light','text-hint-on-light','text-disabled-on-light','text-icon-on-light'.")
305
+ }, te = {
306
+ children: null,
307
+ className: void 0,
308
+ tag: "span",
309
+ themeColor: void 0
310
+ }, ne = {
311
+ /**
312
+ * If true the typography will be bold.
313
+ *
314
+ * Defaults to **false**.
315
+ */
316
+ bold: e.bool,
317
+ /**
318
+ * Expects a string, accepts any valid markup.
319
+ *
320
+ * Defaults to **null**.
321
+ */
322
+ children: e.node,
323
+ /**
324
+ * The css class name to be passed through to the component markup.
325
+ *
326
+ * Defaults to **undefined**.
327
+ */
328
+ className: e.string,
329
+ /**
330
+ * Sets font properties for body.
331
+ *
332
+ * Defaults to **1**.
333
+ */
334
+ level: e.oneOf([1, 2]),
335
+ /**
336
+ * The DOM element to display the typography.
337
+ *
338
+ * Defaults to **'span'**.
339
+ */
340
+ tag: e.oneOfType([e.string, e.elementType, e.instanceOf(i.Component)]),
341
+ /**
342
+ * Sets theme color for the typography.
343
+ *
344
+ * Defaults to **undefined**.
345
+ */
346
+ themeColor: m(e.oneOf(["primary", "secondary", "error", "text-primary-on-background", "text-secondary-on-background", "text-hint-on-background", "text-disabled-on-background", "text-icon-on-background", "text-primary-on-light", "text-secondary-on-light", "text-hint-on-light", "text-disabled-on-light", "text-icon-on-light"]), ["textPrimaryOnBackground", "textSecondaryOnBackground", "textHintOnBackground", "textDisabledOnBackground", "textIconOnBackground", "textPrimaryOnLight", "textSecondaryOnLight", "textHintOnLight", "textDisabledOnLight", "textIconOnLight"], "TypoSubtitle", "Please use one of 'primary','secondary','error','text-primary-on-background','text-secondary-on-background','text-hint-on-background','text-disabled-on-background','text-icon-on-background','text-primary-on-light','text-secondary-on-light','text-hint-on-light','text-disabled-on-light','text-icon-on-light'.")
347
+ }, oe = {
348
+ bold: !1,
349
+ children: null,
350
+ className: void 0,
351
+ level: 1,
352
+ tag: "span",
353
+ themeColor: void 0
354
+ }, f = /* @__PURE__ */ u((c, l) => {
355
+ const {
356
+ className: g,
357
+ children: n,
358
+ themeColor: d,
359
+ level: o,
360
+ bold: r,
361
+ tag: a,
362
+ ...t
363
+ } = c, p = x();
364
+ b(l, () => p.current, []);
365
+ const y = k("mdc-typography", `lmnt mdc-typography--body${o}`, r && `mdc-typography--body${o}-bold`, d && `mdc-theme--${O(d)}`, g), T = a;
366
+ return /* @__PURE__ */ i.createElement(T, s({
367
+ className: y
368
+ }, t, {
369
+ ref: p
370
+ }), n);
371
+ });
372
+ f.displayName = "TypoBody";
373
+ f.propTypes = G;
374
+ f.defaultProps = U;
375
+ const v = /* @__PURE__ */ u((c, l) => {
376
+ const {
377
+ className: g,
378
+ children: n,
379
+ themeColor: d,
380
+ tag: o,
381
+ ...r
382
+ } = c, a = k("mdc-typography", "lmnt mdc-typography--button", d && `mdc-theme--${O(d)}`, g), t = x();
383
+ b(l, () => t.current, []);
384
+ const p = o;
385
+ return /* @__PURE__ */ i.createElement(p, s({
386
+ ref: t,
387
+ className: a
388
+ }, r), n);
389
+ });
390
+ v.displayName = "TypoButton";
391
+ v.propTypes = X;
392
+ v.defaultProps = j;
393
+ const P = /* @__PURE__ */ u((c, l) => {
394
+ const {
395
+ className: g,
396
+ children: n,
397
+ themeColor: d,
398
+ tag: o,
399
+ bold: r,
400
+ ...a
401
+ } = c, t = k("mdc-typography", "lmnt mdc-typography--caption", r && "mdc-typography--caption-bold", d && `mdc-theme--${O(d)}`, g), p = x();
402
+ b(l, () => p.current, []);
403
+ const y = o;
404
+ return /* @__PURE__ */ i.createElement(y, s({
405
+ ref: p,
406
+ className: t
407
+ }, a), n);
408
+ });
409
+ P.displayName = "TypoCaption";
410
+ P.propTypes = q;
411
+ P.defaultProps = J;
412
+ const h = /* @__PURE__ */ u((c, l) => {
413
+ const {
414
+ className: g,
415
+ children: n,
416
+ themeColor: d,
417
+ level: o,
418
+ tag: r,
419
+ ...a
420
+ } = c, t = k("mdc-typography", `lmnt mdc-typography--headline${o}`, d && `mdc-theme--${O(d)}`, g), p = x();
421
+ b(l, () => p.current, []);
422
+ const y = r;
423
+ return /* @__PURE__ */ i.createElement(y, s({
424
+ ref: p,
425
+ className: t
426
+ }, a), n);
427
+ });
428
+ h.displayName = "TypoDisplay";
429
+ h.propTypes = K;
430
+ h.defaultProps = M;
431
+ const N = /* @__PURE__ */ u((c, l) => {
432
+ const {
433
+ className: g,
434
+ children: n,
435
+ themeColor: d,
436
+ level: o,
437
+ tag: r,
438
+ ...a
439
+ } = c;
440
+ I(() => $("TypoHeadline", "This component is being replaced with TypoDisplay and will be removed in a future version. Please use TypoDisplay instead."), []);
441
+ const t = k("mdc-typography", `lmnt mdc-typography--headline${o}`, d && `mdc-theme--${O(d)}`, g), p = x();
442
+ b(l, () => p.current, []);
443
+ const y = r;
444
+ return /* @__PURE__ */ i.createElement(y, s({
445
+ ref: p,
446
+ className: t
447
+ }, a), n);
448
+ });
449
+ N.displayName = "TypoHeadline";
450
+ N.propTypes = Q;
451
+ N.defaultProps = V;
452
+ const E = /* @__PURE__ */ u((c, l) => {
453
+ const {
454
+ className: g,
455
+ children: n,
456
+ themeColor: d,
457
+ tag: o,
458
+ ...r
459
+ } = c, a = k("mdc-typography lmnt-theme-link", d && `mdc-theme--${O(d)}`, g), t = x();
460
+ b(l, () => t.current, []);
461
+ const p = o;
462
+ return /* @__PURE__ */ i.createElement(p, s({
463
+ ref: t,
464
+ className: a
465
+ }, r), n);
466
+ });
467
+ E.displayName = "TypoLink";
468
+ E.propTypes = W;
469
+ E.defaultProps = Y;
470
+ const B = /* @__PURE__ */ u((c, l) => {
471
+ const {
472
+ className: g,
473
+ children: n,
474
+ themeColor: d,
475
+ tag: o,
476
+ ...r
477
+ } = c, a = k("mdc-typography", "lmnt mdc-typography--overline", d && `mdc-theme--${O(d)}`, g), t = x();
478
+ b(l, () => t.current, []);
479
+ const p = o;
480
+ return /* @__PURE__ */ i.createElement(p, s({
481
+ ref: t,
482
+ className: a
483
+ }, r), n);
484
+ });
485
+ B.displayName = "TypoOverline";
486
+ B.propTypes = ee;
487
+ B.defaultProps = te;
488
+ const C = /* @__PURE__ */ u((c, l) => {
489
+ const {
490
+ className: g,
491
+ children: n,
492
+ themeColor: d,
493
+ level: o,
494
+ tag: r,
495
+ bold: a,
496
+ ...t
497
+ } = c, p = k("mdc-typography", `lmnt mdc-typography--subtitle${o || ""}`, a && `mdc-typography--subtitle${o}-bold`, d && `mdc-theme--${O(d)}`, g), y = x();
498
+ b(l, () => y.current, []);
499
+ const T = r;
500
+ return /* @__PURE__ */ i.createElement(T, s({
501
+ ref: y,
502
+ className: p
503
+ }, t), n);
504
+ });
505
+ C.displayName = "TypoSubtitle";
506
+ C.propTypes = ne;
507
+ C.defaultProps = oe;
508
+ const D = /* @__PURE__ */ u((c, l) => {
509
+ const {
510
+ bold: g,
511
+ children: n,
512
+ type: d,
513
+ themeColor: o,
514
+ tag: r,
515
+ ...a
516
+ } = c, t = x();
517
+ switch (b(l, () => t.current, []), d) {
518
+ case "body1":
519
+ return /* @__PURE__ */ i.createElement(f, s({
520
+ level: 1,
521
+ tag: r,
522
+ ref: t,
523
+ themeColor: o
524
+ }, a), n);
525
+ case "body1-bold":
526
+ return /* @__PURE__ */ i.createElement(f, s({
527
+ bold: !0,
528
+ level: 1,
529
+ tag: r,
530
+ ref: t,
531
+ themeColor: o
532
+ }, a), n);
533
+ case "body2-bold":
534
+ return /* @__PURE__ */ i.createElement(f, s({
535
+ bold: !0,
536
+ level: 2,
537
+ tag: r,
538
+ ref: t,
539
+ themeColor: o
540
+ }, a), n);
541
+ case "body2":
542
+ return /* @__PURE__ */ i.createElement(f, s({
543
+ level: 2,
544
+ tag: r,
545
+ ref: t,
546
+ themeColor: o
547
+ }, a), n);
548
+ case "button":
549
+ return /* @__PURE__ */ i.createElement(v, s({
550
+ tag: r,
551
+ ref: t,
552
+ themeColor: o
553
+ }, a), n);
554
+ case "caption":
555
+ return /* @__PURE__ */ i.createElement(P, s({
556
+ tag: r,
557
+ ref: t,
558
+ themeColor: o
559
+ }, a), n);
560
+ case "caption-bold":
561
+ return /* @__PURE__ */ i.createElement(P, s({
562
+ bold: !0,
563
+ tag: r,
564
+ ref: t,
565
+ themeColor: o
566
+ }, a), n);
567
+ case "display1":
568
+ case "headline1":
569
+ return /* @__PURE__ */ i.createElement(h, s({
570
+ level: 1,
571
+ tag: r,
572
+ ref: t,
573
+ themeColor: o
574
+ }, a), n);
575
+ case "display2":
576
+ case "headline2":
577
+ return /* @__PURE__ */ i.createElement(h, s({
578
+ level: 2,
579
+ tag: r,
580
+ ref: t,
581
+ themeColor: o
582
+ }, a), n);
583
+ case "display3":
584
+ case "headline3":
585
+ return /* @__PURE__ */ i.createElement(h, s({
586
+ level: 3,
587
+ tag: r,
588
+ ref: t,
589
+ themeColor: o
590
+ }, a), n);
591
+ case "display4":
592
+ case "headline4":
593
+ return /* @__PURE__ */ i.createElement(h, s({
594
+ level: 4,
595
+ tag: r,
596
+ ref: t,
597
+ themeColor: o
598
+ }, a), n);
599
+ case "display5":
600
+ case "headline5":
601
+ return /* @__PURE__ */ i.createElement(h, s({
602
+ level: 5,
603
+ tag: r,
604
+ ref: t,
605
+ themeColor: o
606
+ }, a), n);
607
+ case "display6":
608
+ case "headline6":
609
+ return /* @__PURE__ */ i.createElement(h, s({
610
+ level: 6,
611
+ tag: r,
612
+ ref: t,
613
+ themeColor: o
614
+ }, a), n);
615
+ case "overline":
616
+ return /* @__PURE__ */ i.createElement(B, s({
617
+ tag: r,
618
+ ref: t,
619
+ themeColor: o
620
+ }, a), n);
621
+ case "subtitle1":
622
+ return /* @__PURE__ */ i.createElement(C, s({
623
+ tag: r,
624
+ ref: t,
625
+ themeColor: o
626
+ }, a, {
627
+ level: 1
628
+ }), n);
629
+ case "subtitle1-bold":
630
+ return /* @__PURE__ */ i.createElement(C, s({
631
+ bold: !0,
632
+ tag: r,
633
+ ref: t,
634
+ themeColor: o
635
+ }, a, {
636
+ level: 1
637
+ }), n);
638
+ case "subtitle2-bold":
639
+ return /* @__PURE__ */ i.createElement(C, s({
640
+ bold: !0,
641
+ tag: r,
642
+ ref: t,
643
+ themeColor: o
644
+ }, a, {
645
+ level: 2
646
+ }), n);
647
+ case "subtitle2":
648
+ return /* @__PURE__ */ i.createElement(C, s({
649
+ level: 2,
650
+ tag: r,
651
+ ref: t,
652
+ themeColor: o
653
+ }, a), n);
654
+ default:
655
+ return /* @__PURE__ */ i.createElement(f, s({
656
+ tag: r,
657
+ ref: t,
658
+ themeColor: o
659
+ }, a, {
660
+ level: 1
661
+ }), n);
662
+ }
663
+ });
664
+ D.displayName = "Typography";
665
+ D.propTypes = z;
666
+ D.defaultProps = F;
667
+ export {
668
+ h as T,
669
+ P as a,
670
+ f as b,
671
+ v as c,
672
+ C as d,
673
+ D as e
674
+ };