@hortiview/shared-components 2.8.6 → 2.8.7
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.
- package/CHANGELOG.md +6 -0
- package/dist/{AlertBanner-DlgFtlZm.js → AlertBanner-D-NTP_6i.js} +3 -3
- package/dist/{BigLoadingSpinner-B_HFhx2F.js → BigLoadingSpinner-CCxsMWnc.js} +1 -1
- package/dist/{GenericCard-Cv8qaFLu.js → GenericCard-DOKyENNm.js} +3 -3
- package/dist/{ListAreaService-D9HRsvH0.js → ListAreaService-CI-s1Xx5.js} +5 -5
- package/dist/{OfflineView-Bw-sbsym.js → OfflineView-DHtzNLwt.js} +3 -3
- package/dist/_Map-BmafU0dj.js +113 -0
- package/dist/components/AlertBanner/AlertBanner.js +4 -4
- package/dist/components/AlertBanner/AlertBanner.test.js +1 -1
- package/dist/components/AlertBanner/LinkBanner.js +3 -3
- package/dist/components/BaseView/BaseView.js +2 -2
- package/dist/components/BasicHeading/BasicHeading.js +2 -2
- package/dist/components/BasicHeading/BasicHeading.test.js +1 -1
- package/dist/components/BlockView/BlockView.js +1 -1
- package/dist/components/ChipCard/ChipCard.js +499 -390
- package/dist/components/ContextMenu/ContextMenu.js +4 -4
- package/dist/components/DeleteModal/DeleteModal.js +5 -5
- package/dist/components/DetailContentWrapper/DetailContentWrapper.js +1 -1
- package/dist/components/Disclaimer/Disclaimer.js +3 -3
- package/dist/components/EmptyView/EmptyView.js +161 -125
- package/dist/components/Filter/Filter.js +11 -11
- package/dist/components/Filter/Filter.test.js +51 -35
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +1 -1
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +10 -10
- package/dist/components/FormComponents/FormNumber/CustomTextField.js +3 -3
- package/dist/components/FormComponents/FormRadio/FormRadio.js +1 -1
- package/dist/components/FormComponents/FormSelect/FormSelect.js +2 -2
- package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +2 -2
- package/dist/components/FormComponents/FormSlider/FormSlider.js +540 -535
- package/dist/components/FormComponents/FormText/FormText.js +2 -2
- package/dist/components/FormComponents/FormToggle/FormToggle.js +4 -4
- package/dist/components/GenericTable/GenericTable.js +8246 -7153
- package/dist/components/GenericTable/Mobile/GenericCard.js +4 -4
- package/dist/components/GenericTable/Mobile/GenericCard.test.js +1 -1
- package/dist/components/GenericTable/Mobile/GenericCardList.js +4 -4
- package/dist/components/HashTabView/HashTabView.js +552 -541
- package/dist/components/HeaderFilter/HeaderFilter.js +1 -1
- package/dist/components/Iconify/Iconify.js +2 -2
- package/dist/components/InfoCard/InfoCard.js +4 -4
- package/dist/components/InfoGroup/InfoGroup.js +3 -3
- package/dist/components/ListArea/ListArea.js +16 -16
- package/dist/components/ListArea/ListArea.test.js +20 -20
- package/dist/components/ListArea/ListAreaService.js +6 -6
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +1 -1
- package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +164 -178
- package/dist/components/Modal/Modal.js +305 -312
- package/dist/components/ModulePadding/ModulePadding.js +8 -8
- package/dist/components/OfflineView/OfflineView.js +4 -4
- package/dist/components/OfflineView/OfflineView.test.js +1 -1
- package/dist/components/OnboardingBanner/OnboardingBanner.js +13 -13
- package/dist/components/OverflowTooltip/OverflowTooltip.js +1 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.test.js +1 -1
- package/dist/components/SearchBar/SearchBar.js +2 -2
- package/dist/components/SearchBar/SearchBar.test.js +1 -1
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Stepper/Stepper.js +1 -1
- package/dist/components/Stepper/components/StepperButton.js +1 -1
- package/dist/components/Stepper/components/StepperHeader.js +2 -2
- package/dist/components/Stepper/components/StepperIndicator.js +1 -1
- package/dist/defineProperty-CmuOyxyf.js +318 -0
- package/dist/es.string.iterator-DrqCBub-.js +581 -0
- package/dist/find-B-dm7n_F.js +88 -0
- package/dist/{get-CqneoueQ.js → get-DuK51wnj.js} +1 -1
- package/dist/get-u1nFMLdT.js +377 -0
- package/dist/hooks/useHelperText.js +1 -1
- package/dist/identity-BIZAN_pL.js +213 -0
- package/dist/includes-Bt-Stz_B.js +110 -0
- package/dist/index-Cpb-8cAN.js +2465 -0
- package/dist/index.es-0QJC9VS2.js +325 -0
- package/dist/{index.es-CyjMwj5g.js → index.es-45NOgWlB.js} +93 -101
- package/dist/index.es-B6ZgiW2s.js +3790 -0
- package/dist/{index.es-1zrFd4Te.js → index.es-BGordhUK.js} +352 -323
- package/dist/index.es-BRtk0Q33.js +42 -0
- package/dist/index.es-BXj90wb_.js +402 -0
- package/dist/index.es-Bg8hxXM8.js +912 -0
- package/dist/index.es-Bgjh6euR.js +292 -0
- package/dist/index.es-Bo1Rhtyb.js +80 -0
- package/dist/{index.es-BaX-8joZ.js → index.es-CK4oZMKs.js} +3329 -3232
- package/dist/{index.es-nQ0lMwpE.js → index.es-CKdJX75f.js} +74 -78
- package/dist/index.es-CmF6xAUJ.js +48 -0
- package/dist/{index.es-p4O33fMu.js → index.es-Cq04gn3U.js} +321 -305
- package/dist/{index.es-Cdu6tjUC.js → index.es-D1IpdMde.js} +87 -95
- package/dist/index.es-DDYCugj-.js +166 -0
- package/dist/{index.es-jFaPNuBO.js → index.es-DENZVv7_.js} +427 -444
- package/dist/{index.es-Dnrk7XL6.js → index.es-DObVvepK.js} +158 -166
- package/dist/index.es-DeF-y7fd.js +122 -0
- package/dist/{index.es-ks_RnHLh.js → index.es-Dfju71Pi.js} +27 -37
- package/dist/index.es-DqSY-ePE.js +4923 -0
- package/dist/index.es-DwzB1d7_.js +1061 -0
- package/dist/index.es-IXyb5F6n.js +457 -0
- package/dist/index.es-t7hFwQSs.js +67 -0
- package/dist/isArray-DN9s620O.js +83 -0
- package/dist/{isArray-CSaAxHlq.js → isArray-Dub1wGJM.js} +1 -1
- package/dist/{isEmpty-SkzPhavO.js → isEmpty-CxD71Jv8.js} +4 -5
- package/dist/{isString-CZsZiWgW.js → isString-BNaBRq3S.js} +2 -2
- package/dist/isTypedArray-Dw_IY7Zq.js +212 -0
- package/dist/keyboard-B-WUULl-.js +173 -0
- package/dist/main.js +2 -2
- package/dist/map-Dbvlv_6y.js +707 -0
- package/dist/omit-uTAyrUTm.js +645 -0
- package/dist/orderBy-BXxEvUw6.js +571 -0
- package/dist/parse-int-qVAoFbOL.js +75 -0
- package/dist/services/UtilService.js +7 -7
- package/dist/slicedToArray-BWk2gTCn.js +436 -0
- package/dist/{toString-BFJes2_D.js → toString-CrgB_7Pe.js} +1 -1
- package/dist/{uniqueId-DrPMzA-E.js → uniqueId-NU3-C36A.js} +1 -1
- package/package.json +3 -3
- package/dist/_baseIsEqual-Df2URKWm.js +0 -240
- package/dist/_getAllKeys-BQWmkEw5.js +0 -86
- package/dist/_getTag-BkGSRa18.js +0 -79
- package/dist/_setToString-B6E13pDg.js +0 -580
- package/dist/get-DQr2KQKm.js +0 -113
- package/dist/index-D5m--65X.js +0 -1491
- package/dist/index.es-8MVlRCi4.js +0 -1066
- package/dist/index.es-BbaCXS9-.js +0 -45
- package/dist/index.es-BikIx4uw.js +0 -3242
- package/dist/index.es-CDMu_yu0.js +0 -954
- package/dist/index.es-ChSlnpSq.js +0 -309
- package/dist/index.es-D66OkZJH.js +0 -4853
- package/dist/index.es-DFFyENnI.js +0 -63
- package/dist/index.es-DTMwaJ6B.js +0 -56
- package/dist/index.es-DgTJmbgD.js +0 -268
- package/dist/index.es-DmsyeHLO.js +0 -306
- package/dist/index.es-Dw1eih7R.js +0 -159
- package/dist/index.es-eKuwB1ll.js +0 -54
- package/dist/index.es-qxTN-Bb2.js +0 -107
- package/dist/index.es-xnSvM9b9.js +0 -444
- package/dist/isArray-DDZrq40X.js +0 -456
- package/dist/keyboard-Bpt0aBqQ.js +0 -107
- package/dist/omit-BN3qeeaj.js +0 -364
- package/dist/orderBy-D4LvP9Az.js +0 -316
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { b as
|
|
4
|
-
import { c as
|
|
5
|
-
function
|
|
6
|
-
return
|
|
1
|
+
import { _ as k, c as $, a as m, P as e } from "./index-Cpb-8cAN.js";
|
|
2
|
+
import c, { forwardRef as O, useRef as C, useImperativeHandle as T, useEffect as M } from "react";
|
|
3
|
+
import { b as P, f as Q } from "./index.es-BXj90wb_.js";
|
|
4
|
+
import { c as W } from "./tslib.es6-BDCynO9F.js";
|
|
5
|
+
function V(t) {
|
|
6
|
+
return t.toLowerCase();
|
|
7
7
|
}
|
|
8
|
-
var
|
|
9
|
-
function
|
|
8
|
+
var Y = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g], ee = /[^A-Z0-9]+/gi;
|
|
9
|
+
function te(t, l) {
|
|
10
10
|
l === void 0 && (l = {});
|
|
11
|
-
for (var g = l.splitRegexp,
|
|
12
|
-
|
|
13
|
-
for (;
|
|
14
|
-
|
|
15
|
-
return
|
|
11
|
+
for (var g = l.splitRegexp, r = g === void 0 ? Y : g, s = l.stripRegexp, u = s === void 0 ? ee : s, p = l.transform, n = p === void 0 ? V : p, x = l.delimiter, d = x === void 0 ? " " : x, h = X(X(t, r, "$1\0$2"), u, "\0"), a = 0, o = h.length; h.charAt(a) === "\0"; )
|
|
12
|
+
a++;
|
|
13
|
+
for (; h.charAt(o - 1) === "\0"; )
|
|
14
|
+
o--;
|
|
15
|
+
return h.slice(a, o).split("\0").map(n).join(d);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
return l instanceof RegExp ?
|
|
19
|
-
return
|
|
20
|
-
},
|
|
17
|
+
function X(t, l, g) {
|
|
18
|
+
return l instanceof RegExp ? t.replace(l, g) : l.reduce(function(r, s) {
|
|
19
|
+
return r.replace(s, g);
|
|
20
|
+
}, t);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
return l === void 0 && (l = {}),
|
|
22
|
+
function ne(t, l) {
|
|
23
|
+
return l === void 0 && (l = {}), te(t, W({ delimiter: "." }, l));
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
return l === void 0 && (l = {}),
|
|
25
|
+
function B(t, l) {
|
|
26
|
+
return l === void 0 && (l = {}), ne(t, W({ delimiter: "-" }, l));
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
var oe = {
|
|
29
29
|
/**
|
|
30
30
|
* If true the typography will be bold. Applies to 1body, body2, caption, subtitle1, subtitle2
|
|
31
31
|
*
|
|
@@ -44,32 +44,37 @@ const z = {
|
|
|
44
44
|
* Defaults to **undefined**.
|
|
45
45
|
*/
|
|
46
46
|
className: e.string,
|
|
47
|
+
/**
|
|
48
|
+
* Forces consistent padding when using different html tags.
|
|
49
|
+
*
|
|
50
|
+
* Defaults to **false**.
|
|
51
|
+
*/
|
|
52
|
+
fixedPadding: e.bool,
|
|
47
53
|
/**
|
|
48
54
|
* The DOM element to display the typography.
|
|
49
55
|
*
|
|
50
56
|
* Defaults to **'span'**.
|
|
51
57
|
*/
|
|
52
|
-
tag: e.oneOfType([e.string, e.elementType, e.instanceOf(
|
|
58
|
+
tag: e.oneOfType([e.string, e.elementType, e.instanceOf(c.Component)]),
|
|
53
59
|
/**
|
|
54
60
|
* Sets theme color for the typography. Does not apply to Link.
|
|
55
61
|
*
|
|
56
62
|
* Defaults to **undefined**.
|
|
57
63
|
*/
|
|
58
|
-
themeColor:
|
|
64
|
+
themeColor: P(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
65
|
/**
|
|
60
66
|
* Sets typography class for the element.
|
|
61
67
|
*
|
|
62
68
|
* Defaults to **'body1'**.
|
|
63
69
|
*/
|
|
64
|
-
type:
|
|
65
|
-
},
|
|
66
|
-
bold: !1,
|
|
70
|
+
type: P(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'.")
|
|
71
|
+
}, ae = {
|
|
67
72
|
children: null,
|
|
68
|
-
|
|
73
|
+
fixedPadding: !1,
|
|
69
74
|
tag: "span",
|
|
70
75
|
themeColor: void 0,
|
|
71
76
|
type: "body1"
|
|
72
|
-
},
|
|
77
|
+
}, re = {
|
|
73
78
|
/**
|
|
74
79
|
* If true the typography will be bold.
|
|
75
80
|
*
|
|
@@ -88,6 +93,12 @@ const z = {
|
|
|
88
93
|
* Defaults to **undefined**.
|
|
89
94
|
*/
|
|
90
95
|
className: e.string,
|
|
96
|
+
/**
|
|
97
|
+
* Forces consistent padding when using different html tags.
|
|
98
|
+
*
|
|
99
|
+
* Defaults to **false**.
|
|
100
|
+
*/
|
|
101
|
+
fixedPadding: e.bool,
|
|
91
102
|
/**
|
|
92
103
|
* Sets font properties for body. Acceptable values range from 1 - 2. Higher levels produce smaller type.
|
|
93
104
|
*
|
|
@@ -99,21 +110,22 @@ const z = {
|
|
|
99
110
|
*
|
|
100
111
|
* Defaults to **'span'**.
|
|
101
112
|
*/
|
|
102
|
-
tag: e.oneOfType([e.string, e.elementType, e.instanceOf(
|
|
113
|
+
tag: e.oneOfType([e.string, e.elementType, e.instanceOf(c.Component)]),
|
|
103
114
|
/**
|
|
104
115
|
* Sets theme color for the typography.
|
|
105
116
|
*
|
|
106
117
|
* Defaults to **undefined**.
|
|
107
118
|
*/
|
|
108
|
-
themeColor:
|
|
109
|
-
},
|
|
119
|
+
themeColor: P(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'.")
|
|
120
|
+
}, de = {
|
|
110
121
|
bold: !1,
|
|
111
122
|
children: null,
|
|
112
123
|
className: void 0,
|
|
124
|
+
fixedPadding: !1,
|
|
113
125
|
level: 1,
|
|
114
126
|
tag: "span",
|
|
115
127
|
themeColor: void 0
|
|
116
|
-
},
|
|
128
|
+
}, ie = {
|
|
117
129
|
/**
|
|
118
130
|
* Expects a string, accepts any valid markup.
|
|
119
131
|
*
|
|
@@ -126,24 +138,31 @@ const z = {
|
|
|
126
138
|
* Defaults to **undefined**.
|
|
127
139
|
*/
|
|
128
140
|
className: e.string,
|
|
141
|
+
/**
|
|
142
|
+
* Forces consistent padding when using different html tags.
|
|
143
|
+
*
|
|
144
|
+
* Defaults to **false**.
|
|
145
|
+
*/
|
|
146
|
+
fixedPadding: e.bool,
|
|
129
147
|
/**
|
|
130
148
|
* The DOM element to display the typography.
|
|
131
149
|
*
|
|
132
150
|
* Defaults to **'span'**.
|
|
133
151
|
*/
|
|
134
|
-
tag: e.oneOfType([e.string, e.elementType, e.instanceOf(
|
|
152
|
+
tag: e.oneOfType([e.string, e.elementType, e.instanceOf(c.Component)]),
|
|
135
153
|
/**
|
|
136
154
|
* Sets theme color for the typography.
|
|
137
155
|
*
|
|
138
156
|
* Defaults to **undefined**.
|
|
139
157
|
*/
|
|
140
|
-
themeColor:
|
|
141
|
-
},
|
|
158
|
+
themeColor: P(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'.")
|
|
159
|
+
}, le = {
|
|
142
160
|
children: null,
|
|
143
161
|
className: void 0,
|
|
162
|
+
fixedPadding: !1,
|
|
144
163
|
tag: "span",
|
|
145
164
|
themeColor: void 0
|
|
146
|
-
},
|
|
165
|
+
}, ce = {
|
|
147
166
|
/**
|
|
148
167
|
* If true the typography will be bold.
|
|
149
168
|
*
|
|
@@ -162,25 +181,32 @@ const z = {
|
|
|
162
181
|
* Defaults to **undefined**.
|
|
163
182
|
*/
|
|
164
183
|
className: e.string,
|
|
184
|
+
/**
|
|
185
|
+
* Forces consistent padding when using different html tags.
|
|
186
|
+
*
|
|
187
|
+
* Defaults to **false**.
|
|
188
|
+
*/
|
|
189
|
+
fixedPadding: e.bool,
|
|
165
190
|
/**
|
|
166
191
|
* The DOM element to display the typography.
|
|
167
192
|
*
|
|
168
193
|
* Defaults to **'span'**.
|
|
169
194
|
*/
|
|
170
|
-
tag: e.oneOfType([e.string, e.elementType, e.instanceOf(
|
|
195
|
+
tag: e.oneOfType([e.string, e.elementType, e.instanceOf(c.Component)]),
|
|
171
196
|
/**
|
|
172
197
|
* Sets theme color for the typography.
|
|
173
198
|
*
|
|
174
199
|
* Defaults to **undefined**.
|
|
175
200
|
*/
|
|
176
|
-
themeColor:
|
|
177
|
-
},
|
|
201
|
+
themeColor: P(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'.")
|
|
202
|
+
}, ge = {
|
|
178
203
|
bold: !1,
|
|
179
204
|
children: null,
|
|
180
205
|
className: void 0,
|
|
206
|
+
fixedPadding: !1,
|
|
181
207
|
tag: "span",
|
|
182
208
|
themeColor: void 0
|
|
183
|
-
},
|
|
209
|
+
}, se = {
|
|
184
210
|
/**
|
|
185
211
|
* Expects a string, accepts any valid markup.
|
|
186
212
|
*
|
|
@@ -193,6 +219,12 @@ const z = {
|
|
|
193
219
|
* Defaults to **undefined**.
|
|
194
220
|
*/
|
|
195
221
|
className: e.string,
|
|
222
|
+
/**
|
|
223
|
+
* Forces consistent padding when using different html tags.
|
|
224
|
+
*
|
|
225
|
+
* Defaults to **false**.
|
|
226
|
+
*/
|
|
227
|
+
fixedPadding: e.bool,
|
|
196
228
|
/**
|
|
197
229
|
* Sets font properties for body. Acceptable values range from 1 to 6. Higher levels produce smaller type.
|
|
198
230
|
*
|
|
@@ -204,20 +236,21 @@ const z = {
|
|
|
204
236
|
*
|
|
205
237
|
* Defaults to **'span'**.
|
|
206
238
|
*/
|
|
207
|
-
tag: e.oneOfType([e.string, e.elementType, e.instanceOf(
|
|
239
|
+
tag: e.oneOfType([e.string, e.elementType, e.instanceOf(c.Component)]),
|
|
208
240
|
/**
|
|
209
241
|
* Sets theme color for the typography.
|
|
210
242
|
*
|
|
211
243
|
* Defaults to **undefined**.
|
|
212
244
|
*/
|
|
213
|
-
themeColor:
|
|
214
|
-
},
|
|
245
|
+
themeColor: P(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'.")
|
|
246
|
+
}, he = {
|
|
215
247
|
children: null,
|
|
216
248
|
className: void 0,
|
|
249
|
+
fixedPadding: !1,
|
|
217
250
|
level: 1,
|
|
218
251
|
tag: "span",
|
|
219
252
|
themeColor: void 0
|
|
220
|
-
},
|
|
253
|
+
}, pe = {
|
|
221
254
|
/**
|
|
222
255
|
* Expects a string, accepts any valid markup.
|
|
223
256
|
*
|
|
@@ -230,6 +263,12 @@ const z = {
|
|
|
230
263
|
* Defaults to **undefined**.
|
|
231
264
|
*/
|
|
232
265
|
className: e.string,
|
|
266
|
+
/**
|
|
267
|
+
* Forces consistent padding when using different html tags.
|
|
268
|
+
*
|
|
269
|
+
* Defaults to **false**.
|
|
270
|
+
*/
|
|
271
|
+
fixedPadding: e.bool,
|
|
233
272
|
/**
|
|
234
273
|
* Sets font properties for body. Acceptable values range from 1 to 6. Higher levels produce smaller type.
|
|
235
274
|
*
|
|
@@ -241,20 +280,21 @@ const z = {
|
|
|
241
280
|
*
|
|
242
281
|
* Defaults to **'span'**.
|
|
243
282
|
*/
|
|
244
|
-
tag: e.oneOfType([e.string, e.elementType, e.instanceOf(
|
|
283
|
+
tag: e.oneOfType([e.string, e.elementType, e.instanceOf(c.Component)]),
|
|
245
284
|
/**
|
|
246
285
|
* Sets theme color for the typography.
|
|
247
286
|
*
|
|
248
287
|
* Defaults to **undefined**.
|
|
249
288
|
*/
|
|
250
|
-
themeColor:
|
|
251
|
-
},
|
|
289
|
+
themeColor: P(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'.")
|
|
290
|
+
}, xe = {
|
|
252
291
|
children: null,
|
|
253
292
|
className: void 0,
|
|
293
|
+
fixedPadding: !1,
|
|
254
294
|
level: 1,
|
|
255
295
|
tag: "span",
|
|
256
296
|
themeColor: void 0
|
|
257
|
-
},
|
|
297
|
+
}, me = {
|
|
258
298
|
/**
|
|
259
299
|
* Expects a string, accepts any valid markup.
|
|
260
300
|
*
|
|
@@ -267,17 +307,24 @@ const z = {
|
|
|
267
307
|
* Defaults to **undefined**.
|
|
268
308
|
*/
|
|
269
309
|
className: e.string,
|
|
310
|
+
/**
|
|
311
|
+
* Forces consistent padding when using different html tags.
|
|
312
|
+
*
|
|
313
|
+
* Defaults to **false**.
|
|
314
|
+
*/
|
|
315
|
+
fixedPadding: e.bool,
|
|
270
316
|
/**
|
|
271
317
|
* The DOM element to display the typography.
|
|
272
318
|
*
|
|
273
319
|
* Defaults to **'a'**.
|
|
274
320
|
*/
|
|
275
|
-
tag: e.oneOfType([e.string, e.elementType, e.instanceOf(
|
|
276
|
-
},
|
|
321
|
+
tag: e.oneOfType([e.string, e.elementType, e.instanceOf(c.Component)])
|
|
322
|
+
}, ye = {
|
|
277
323
|
children: null,
|
|
278
324
|
className: void 0,
|
|
325
|
+
fixedPadding: !1,
|
|
279
326
|
tag: "a"
|
|
280
|
-
},
|
|
327
|
+
}, ue = {
|
|
281
328
|
/**
|
|
282
329
|
* Expects a string, accepts any valid markup.
|
|
283
330
|
*
|
|
@@ -290,24 +337,31 @@ const z = {
|
|
|
290
337
|
* Defaults to **undefined**.
|
|
291
338
|
*/
|
|
292
339
|
className: e.string,
|
|
340
|
+
/**
|
|
341
|
+
* Forces consistent padding when using different html tags.
|
|
342
|
+
*
|
|
343
|
+
* Defaults to **false**.
|
|
344
|
+
*/
|
|
345
|
+
fixedPadding: e.bool,
|
|
293
346
|
/**
|
|
294
347
|
* The DOM element to display the typography.
|
|
295
348
|
*
|
|
296
349
|
* Defaults to **'span'**.
|
|
297
350
|
*/
|
|
298
|
-
tag: e.oneOfType([e.string, e.elementType, e.instanceOf(
|
|
351
|
+
tag: e.oneOfType([e.string, e.elementType, e.instanceOf(c.Component)]),
|
|
299
352
|
/**
|
|
300
353
|
* Sets theme color for the typography.
|
|
301
354
|
*
|
|
302
355
|
* Defaults to **undefined**.
|
|
303
356
|
*/
|
|
304
|
-
themeColor:
|
|
305
|
-
},
|
|
357
|
+
themeColor: P(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'.")
|
|
358
|
+
}, fe = {
|
|
306
359
|
children: null,
|
|
307
360
|
className: void 0,
|
|
361
|
+
fixedPadding: !1,
|
|
308
362
|
tag: "span",
|
|
309
363
|
themeColor: void 0
|
|
310
|
-
},
|
|
364
|
+
}, be = {
|
|
311
365
|
/**
|
|
312
366
|
* If true the typography will be bold.
|
|
313
367
|
*
|
|
@@ -326,6 +380,12 @@ const z = {
|
|
|
326
380
|
* Defaults to **undefined**.
|
|
327
381
|
*/
|
|
328
382
|
className: e.string,
|
|
383
|
+
/**
|
|
384
|
+
* Forces consistent padding when using different html tags.
|
|
385
|
+
*
|
|
386
|
+
* Defaults to **false**.
|
|
387
|
+
*/
|
|
388
|
+
fixedPadding: e.bool,
|
|
329
389
|
/**
|
|
330
390
|
* Sets font properties for body.
|
|
331
391
|
*
|
|
@@ -337,338 +397,307 @@ const z = {
|
|
|
337
397
|
*
|
|
338
398
|
* Defaults to **'span'**.
|
|
339
399
|
*/
|
|
340
|
-
tag: e.oneOfType([e.string, e.elementType, e.instanceOf(
|
|
400
|
+
tag: e.oneOfType([e.string, e.elementType, e.instanceOf(c.Component)]),
|
|
341
401
|
/**
|
|
342
402
|
* Sets theme color for the typography.
|
|
343
403
|
*
|
|
344
404
|
* Defaults to **undefined**.
|
|
345
405
|
*/
|
|
346
|
-
themeColor:
|
|
347
|
-
},
|
|
406
|
+
themeColor: P(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'.")
|
|
407
|
+
}, ve = {
|
|
348
408
|
bold: !1,
|
|
349
409
|
children: null,
|
|
350
410
|
className: void 0,
|
|
411
|
+
fixedPadding: !1,
|
|
351
412
|
level: 1,
|
|
352
413
|
tag: "span",
|
|
353
414
|
themeColor: void 0
|
|
354
|
-
},
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
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);
|
|
415
|
+
}, Pe = ["className", "children", "themeColor", "level", "bold", "tag", "fixedPadding"], L = de, D = /* @__PURE__ */ O(function(t, l) {
|
|
416
|
+
var g = t.className, r = g === void 0 ? L.className : g, s = t.children, u = s === void 0 ? L.children : s, p = t.themeColor, n = p === void 0 ? L.themeColor : p, x = t.level, d = x === void 0 ? L.level : x, h = t.bold, a = h === void 0 ? L.bold : h, o = t.tag, i = o === void 0 ? L.tag : o, y = t.fixedPadding, f = y === void 0 ? L.fixedPadding : y, b = k(t, Pe), v = C();
|
|
417
|
+
T(l, function() {
|
|
418
|
+
return v.current;
|
|
419
|
+
}, []);
|
|
420
|
+
var j = i, F = $("mdc-typography", "lmnt mdc-typography--body".concat(d), f && "typography--fixed-padding", a && "mdc-typography--body".concat(d, "-bold"), n && "mdc-theme--".concat(B(n)), r);
|
|
421
|
+
return /* @__PURE__ */ c.createElement(j, m({
|
|
422
|
+
className: F
|
|
423
|
+
}, b, {
|
|
424
|
+
ref: v
|
|
425
|
+
}), u);
|
|
389
426
|
});
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
}
|
|
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);
|
|
427
|
+
D.displayName = "TypoBody";
|
|
428
|
+
D.propTypes = re;
|
|
429
|
+
var ke = ["className", "children", "themeColor", "fixedPadding", "tag"], R = le, G = /* @__PURE__ */ O(function(t, l) {
|
|
430
|
+
var g = t.className, r = g === void 0 ? R.className : g, s = t.children, u = s === void 0 ? R.children : s, p = t.themeColor, n = p === void 0 ? R.themeColor : p, x = t.fixedPadding, d = x === void 0 ? R.fixedPadding : x, h = t.tag, a = h === void 0 ? R.tag : h, o = k(t, ke), i = $("mdc-typography", "lmnt mdc-typography--button", d && "typography--fixed-padding", n && "mdc-theme--".concat(B(n)), r), y = C();
|
|
431
|
+
T(l, function() {
|
|
432
|
+
return y.current;
|
|
433
|
+
}, []);
|
|
434
|
+
var f = a;
|
|
435
|
+
return /* @__PURE__ */ c.createElement(f, m({
|
|
436
|
+
ref: y,
|
|
437
|
+
className: i
|
|
438
|
+
}, o), u);
|
|
408
439
|
});
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
}
|
|
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);
|
|
440
|
+
G.displayName = "TypoButton";
|
|
441
|
+
G.propTypes = ie;
|
|
442
|
+
var Oe = ["className", "children", "themeColor", "tag", "bold", "fixedPadding"], H = ge, z = /* @__PURE__ */ O(function(t, l) {
|
|
443
|
+
var g = t.className, r = g === void 0 ? H.className : g, s = t.children, u = s === void 0 ? H.children : s, p = t.themeColor, n = p === void 0 ? H.themeColor : p, x = t.tag, d = x === void 0 ? H.tag : x, h = t.bold, a = h === void 0 ? H.bold : h, o = t.fixedPadding, i = o === void 0 ? H.fixedPadding : o, y = k(t, Oe), f = $("mdc-typography", "lmnt mdc-typography--caption", i && "typography--fixed-padding", a && "mdc-typography--caption-bold", n && "mdc-theme--".concat(B(n)), r), b = C();
|
|
444
|
+
T(l, function() {
|
|
445
|
+
return b.current;
|
|
446
|
+
}, []);
|
|
447
|
+
var v = d;
|
|
448
|
+
return /* @__PURE__ */ c.createElement(v, m({
|
|
449
|
+
ref: b,
|
|
450
|
+
className: f
|
|
451
|
+
}, y), u);
|
|
427
452
|
});
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
}
|
|
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);
|
|
453
|
+
z.displayName = "TypoCaption";
|
|
454
|
+
z.propTypes = ce;
|
|
455
|
+
var Ce = ["className", "children", "themeColor", "level", "tag", "fixedPadding"], S = he, N = /* @__PURE__ */ O(function(t, l) {
|
|
456
|
+
var g = t.className, r = g === void 0 ? S.className : g, s = t.children, u = s === void 0 ? S.children : s, p = t.themeColor, n = p === void 0 ? S.themeColor : p, x = t.level, d = x === void 0 ? S.level : x, h = t.tag, a = h === void 0 ? S.tag : h, o = t.fixedPadding, i = o === void 0 ? S.fixedPadding : o, y = k(t, Ce), f = C();
|
|
457
|
+
T(l, function() {
|
|
458
|
+
return f.current;
|
|
459
|
+
}, []);
|
|
460
|
+
var b = a, v = $("mdc-typography", "lmnt mdc-typography--headline".concat(d), i && "typography--fixed-padding", n && "mdc-theme--".concat(B(n)), i && "typography--fixed-padding", r);
|
|
461
|
+
return /* @__PURE__ */ c.createElement(b, m({
|
|
462
|
+
ref: f,
|
|
463
|
+
className: v
|
|
464
|
+
}, y), u);
|
|
448
465
|
});
|
|
449
|
-
N.displayName = "
|
|
450
|
-
N.propTypes =
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
}, r), n);
|
|
466
|
+
N.displayName = "TypoDisplay";
|
|
467
|
+
N.propTypes = se;
|
|
468
|
+
var Te = ["className", "children", "themeColor", "fixedPadding", "level", "tag"], _ = xe, q = /* @__PURE__ */ O(function(t, l) {
|
|
469
|
+
var g = t.className, r = g === void 0 ? _.className : g, s = t.children, u = s === void 0 ? _.children : s, p = t.themeColor, n = p === void 0 ? _.themeColor : p, x = t.fixedPadding, d = x === void 0 ? _.fixedPadding : x, h = t.level, a = h === void 0 ? _.level : h, o = t.tag, i = o === void 0 ? _.tag : o, y = k(t, Te);
|
|
470
|
+
M(function() {
|
|
471
|
+
return Q("TypoHeadline", "This component is being replaced with TypoDisplay and will be removed in a future version. Please use TypoDisplay instead.");
|
|
472
|
+
}, []);
|
|
473
|
+
var f = $("mdc-typography", "lmnt mdc-typography--headline".concat(a), d && "typography--fixed-padding", n && "mdc-theme--".concat(B(n)), r), b = C();
|
|
474
|
+
T(l, function() {
|
|
475
|
+
return b.current;
|
|
476
|
+
}, []);
|
|
477
|
+
var v = i;
|
|
478
|
+
return /* @__PURE__ */ c.createElement(v, m({
|
|
479
|
+
ref: b,
|
|
480
|
+
className: f
|
|
481
|
+
}, y), u);
|
|
466
482
|
});
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
const p = o;
|
|
480
|
-
return /* @__PURE__ */ i.createElement(p, s({
|
|
481
|
-
ref: t,
|
|
482
|
-
className: a
|
|
483
|
-
}, r), n);
|
|
483
|
+
q.displayName = "TypoHeadline";
|
|
484
|
+
q.propTypes = pe;
|
|
485
|
+
var Ne = ["className", "children", "themeColor", "fixedPadding", "tag"], w = ye, J = /* @__PURE__ */ O(function(t, l) {
|
|
486
|
+
var g = t.className, r = g === void 0 ? w.className : g, s = t.children, u = s === void 0 ? w.children : s, p = t.themeColor, n = p === void 0 ? w.themeColor : p, x = t.fixedPadding, d = x === void 0 ? w.fixedPadding : x, h = t.tag, a = h === void 0 ? w.tag : h, o = k(t, Ne), i = $("mdc-typography lmnt-theme-link", d && "typography--fixed-padding", n && "mdc-theme--".concat(B(n)), r), y = C();
|
|
487
|
+
T(l, function() {
|
|
488
|
+
return y.current;
|
|
489
|
+
}, []);
|
|
490
|
+
var f = a;
|
|
491
|
+
return /* @__PURE__ */ c.createElement(f, m({
|
|
492
|
+
ref: y,
|
|
493
|
+
className: i
|
|
494
|
+
}, o), u);
|
|
484
495
|
});
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
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({
|
|
496
|
+
J.displayName = "TypoLink";
|
|
497
|
+
J.propTypes = me;
|
|
498
|
+
var $e = ["className", "children", "themeColor", "fixedPadding", "tag"], A = fe, U = /* @__PURE__ */ O(function(t, l) {
|
|
499
|
+
var g = t.className, r = g === void 0 ? A.className : g, s = t.children, u = s === void 0 ? A.children : s, p = t.themeColor, n = p === void 0 ? A.themeColor : p, x = t.fixedPadding, d = x === void 0 ? A.fixedPadding : x, h = t.tag, a = h === void 0 ? A.tag : h, o = k(t, $e), i = $("mdc-typography", "lmnt mdc-typography--overline", d && "typography--fixed-padding", n && "mdc-theme--".concat(B(n)), r), y = C();
|
|
500
|
+
T(l, function() {
|
|
501
|
+
return y.current;
|
|
502
|
+
}, []);
|
|
503
|
+
var f = a;
|
|
504
|
+
return /* @__PURE__ */ c.createElement(f, m({
|
|
501
505
|
ref: y,
|
|
502
|
-
className:
|
|
503
|
-
},
|
|
506
|
+
className: i
|
|
507
|
+
}, o), u);
|
|
508
|
+
});
|
|
509
|
+
U.displayName = "TypoOverline";
|
|
510
|
+
U.propTypes = ue;
|
|
511
|
+
var Be = ["className", "children", "themeColor", "fixedPadding", "level", "tag", "bold"], E = ve, I = /* @__PURE__ */ O(function(t, l) {
|
|
512
|
+
var g = t.className, r = g === void 0 ? E.className : g, s = t.children, u = s === void 0 ? E.children : s, p = t.themeColor, n = p === void 0 ? E.themeColor : p, x = t.fixedPadding, d = x === void 0 ? E.fixedPadding : x, h = t.level, a = h === void 0 ? E.level : h, o = t.tag, i = o === void 0 ? E.tag : o, y = t.bold, f = y === void 0 ? E.bold : y, b = k(t, Be), v = $("mdc-typography", "lmnt mdc-typography--subtitle".concat(a || ""), d && "typography--fixed-padding", f && "mdc-typography--subtitle".concat(a || "", "-bold"), n && "mdc-theme--".concat(B(n)), r), j = C();
|
|
513
|
+
T(l, function() {
|
|
514
|
+
return j.current;
|
|
515
|
+
}, []);
|
|
516
|
+
var F = i;
|
|
517
|
+
return /* @__PURE__ */ c.createElement(F, m({
|
|
518
|
+
ref: j,
|
|
519
|
+
className: v
|
|
520
|
+
}, b), u);
|
|
504
521
|
});
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
themeColor: o,
|
|
514
|
-
tag: r,
|
|
515
|
-
...a
|
|
516
|
-
} = c, t = x();
|
|
517
|
-
switch (b(l, () => t.current, []), d) {
|
|
522
|
+
I.displayName = "TypoSubtitle";
|
|
523
|
+
I.propTypes = be;
|
|
524
|
+
var Le = ["bold", "children", "type", "themeColor", "fixedPadding", "tag"], Z = ae, K = /* @__PURE__ */ O(function(t, l) {
|
|
525
|
+
t.bold;
|
|
526
|
+
var g = t.children, r = g === void 0 ? Z.children : g, s = t.type, u = s === void 0 ? Z.type : s, p = t.themeColor, n = p === void 0 ? Z.themeColor : p, x = t.fixedPadding, d = x === void 0 ? Z.fixedPadding : x, h = t.tag, a = h === void 0 ? Z.tag : h, o = k(t, Le), i = C();
|
|
527
|
+
switch (T(l, function() {
|
|
528
|
+
return i.current;
|
|
529
|
+
}, []), u) {
|
|
518
530
|
case "body1":
|
|
519
|
-
return /* @__PURE__ */
|
|
531
|
+
return /* @__PURE__ */ c.createElement(D, m({
|
|
520
532
|
level: 1,
|
|
521
|
-
tag:
|
|
522
|
-
ref:
|
|
523
|
-
themeColor:
|
|
524
|
-
},
|
|
533
|
+
tag: a,
|
|
534
|
+
ref: i,
|
|
535
|
+
themeColor: n
|
|
536
|
+
}, o), r);
|
|
525
537
|
case "body1-bold":
|
|
526
|
-
return /* @__PURE__ */
|
|
538
|
+
return /* @__PURE__ */ c.createElement(D, m({
|
|
527
539
|
bold: !0,
|
|
528
540
|
level: 1,
|
|
529
|
-
tag:
|
|
530
|
-
ref:
|
|
531
|
-
|
|
532
|
-
|
|
541
|
+
tag: a,
|
|
542
|
+
ref: i,
|
|
543
|
+
fixedPadding: d,
|
|
544
|
+
themeColor: n
|
|
545
|
+
}, o), r);
|
|
533
546
|
case "body2-bold":
|
|
534
|
-
return /* @__PURE__ */
|
|
547
|
+
return /* @__PURE__ */ c.createElement(D, m({
|
|
535
548
|
bold: !0,
|
|
536
549
|
level: 2,
|
|
537
|
-
tag:
|
|
538
|
-
ref:
|
|
539
|
-
|
|
540
|
-
|
|
550
|
+
tag: a,
|
|
551
|
+
ref: i,
|
|
552
|
+
fixedPadding: d,
|
|
553
|
+
themeColor: n
|
|
554
|
+
}, o), r);
|
|
541
555
|
case "body2":
|
|
542
|
-
return /* @__PURE__ */
|
|
556
|
+
return /* @__PURE__ */ c.createElement(D, m({
|
|
543
557
|
level: 2,
|
|
544
|
-
tag:
|
|
545
|
-
ref:
|
|
546
|
-
|
|
547
|
-
|
|
558
|
+
tag: a,
|
|
559
|
+
ref: i,
|
|
560
|
+
fixedPadding: d,
|
|
561
|
+
themeColor: n
|
|
562
|
+
}, o), r);
|
|
548
563
|
case "button":
|
|
549
|
-
return /* @__PURE__ */
|
|
550
|
-
tag:
|
|
551
|
-
ref:
|
|
552
|
-
|
|
553
|
-
|
|
564
|
+
return /* @__PURE__ */ c.createElement(G, m({
|
|
565
|
+
tag: a,
|
|
566
|
+
ref: i,
|
|
567
|
+
fixedPadding: d,
|
|
568
|
+
themeColor: n
|
|
569
|
+
}, o), r);
|
|
554
570
|
case "caption":
|
|
555
|
-
return /* @__PURE__ */
|
|
556
|
-
tag:
|
|
557
|
-
ref:
|
|
558
|
-
|
|
559
|
-
|
|
571
|
+
return /* @__PURE__ */ c.createElement(z, m({
|
|
572
|
+
tag: a,
|
|
573
|
+
ref: i,
|
|
574
|
+
fixedPadding: d,
|
|
575
|
+
themeColor: n
|
|
576
|
+
}, o), r);
|
|
560
577
|
case "caption-bold":
|
|
561
|
-
return /* @__PURE__ */
|
|
578
|
+
return /* @__PURE__ */ c.createElement(z, m({
|
|
562
579
|
bold: !0,
|
|
563
|
-
tag:
|
|
564
|
-
ref:
|
|
565
|
-
|
|
566
|
-
|
|
580
|
+
tag: a,
|
|
581
|
+
ref: i,
|
|
582
|
+
fixedPadding: d,
|
|
583
|
+
themeColor: n
|
|
584
|
+
}, o), r);
|
|
567
585
|
case "display1":
|
|
568
586
|
case "headline1":
|
|
569
|
-
return /* @__PURE__ */
|
|
587
|
+
return /* @__PURE__ */ c.createElement(N, m({
|
|
570
588
|
level: 1,
|
|
571
|
-
tag:
|
|
572
|
-
ref:
|
|
573
|
-
|
|
574
|
-
|
|
589
|
+
tag: a,
|
|
590
|
+
ref: i,
|
|
591
|
+
fixedPadding: d,
|
|
592
|
+
themeColor: n
|
|
593
|
+
}, o), r);
|
|
575
594
|
case "display2":
|
|
576
595
|
case "headline2":
|
|
577
|
-
return /* @__PURE__ */
|
|
596
|
+
return /* @__PURE__ */ c.createElement(N, m({
|
|
578
597
|
level: 2,
|
|
579
|
-
tag:
|
|
580
|
-
ref:
|
|
581
|
-
|
|
582
|
-
|
|
598
|
+
tag: a,
|
|
599
|
+
ref: i,
|
|
600
|
+
fixedPadding: d,
|
|
601
|
+
themeColor: n
|
|
602
|
+
}, o), r);
|
|
583
603
|
case "display3":
|
|
584
604
|
case "headline3":
|
|
585
|
-
return /* @__PURE__ */
|
|
605
|
+
return /* @__PURE__ */ c.createElement(N, m({
|
|
586
606
|
level: 3,
|
|
587
|
-
tag:
|
|
588
|
-
ref:
|
|
589
|
-
|
|
590
|
-
|
|
607
|
+
tag: a,
|
|
608
|
+
ref: i,
|
|
609
|
+
fixedPadding: d,
|
|
610
|
+
themeColor: n
|
|
611
|
+
}, o), r);
|
|
591
612
|
case "display4":
|
|
592
613
|
case "headline4":
|
|
593
|
-
return /* @__PURE__ */
|
|
614
|
+
return /* @__PURE__ */ c.createElement(N, m({
|
|
594
615
|
level: 4,
|
|
595
|
-
tag:
|
|
596
|
-
ref:
|
|
597
|
-
|
|
598
|
-
|
|
616
|
+
tag: a,
|
|
617
|
+
ref: i,
|
|
618
|
+
fixedPadding: d,
|
|
619
|
+
themeColor: n
|
|
620
|
+
}, o), r);
|
|
599
621
|
case "display5":
|
|
600
622
|
case "headline5":
|
|
601
|
-
return /* @__PURE__ */
|
|
623
|
+
return /* @__PURE__ */ c.createElement(N, m({
|
|
602
624
|
level: 5,
|
|
603
|
-
tag:
|
|
604
|
-
ref:
|
|
605
|
-
|
|
606
|
-
|
|
625
|
+
tag: a,
|
|
626
|
+
ref: i,
|
|
627
|
+
fixedPadding: d,
|
|
628
|
+
themeColor: n
|
|
629
|
+
}, o), r);
|
|
607
630
|
case "display6":
|
|
608
631
|
case "headline6":
|
|
609
|
-
return /* @__PURE__ */
|
|
632
|
+
return /* @__PURE__ */ c.createElement(N, m({
|
|
610
633
|
level: 6,
|
|
611
|
-
tag:
|
|
612
|
-
ref:
|
|
613
|
-
|
|
614
|
-
|
|
634
|
+
tag: a,
|
|
635
|
+
ref: i,
|
|
636
|
+
fixedPadding: d,
|
|
637
|
+
themeColor: n
|
|
638
|
+
}, o), r);
|
|
615
639
|
case "overline":
|
|
616
|
-
return /* @__PURE__ */
|
|
617
|
-
tag:
|
|
618
|
-
ref:
|
|
619
|
-
|
|
620
|
-
|
|
640
|
+
return /* @__PURE__ */ c.createElement(U, m({
|
|
641
|
+
tag: a,
|
|
642
|
+
ref: i,
|
|
643
|
+
fixedPadding: d,
|
|
644
|
+
themeColor: n
|
|
645
|
+
}, o), r);
|
|
621
646
|
case "subtitle1":
|
|
622
|
-
return /* @__PURE__ */
|
|
623
|
-
tag:
|
|
624
|
-
ref:
|
|
625
|
-
|
|
626
|
-
|
|
647
|
+
return /* @__PURE__ */ c.createElement(I, m({
|
|
648
|
+
tag: a,
|
|
649
|
+
ref: i,
|
|
650
|
+
fixedPadding: d,
|
|
651
|
+
themeColor: n
|
|
652
|
+
}, o, {
|
|
627
653
|
level: 1
|
|
628
|
-
}),
|
|
654
|
+
}), r);
|
|
629
655
|
case "subtitle1-bold":
|
|
630
|
-
return /* @__PURE__ */
|
|
656
|
+
return /* @__PURE__ */ c.createElement(I, m({
|
|
631
657
|
bold: !0,
|
|
632
|
-
tag:
|
|
633
|
-
ref:
|
|
634
|
-
|
|
635
|
-
|
|
658
|
+
tag: a,
|
|
659
|
+
ref: i,
|
|
660
|
+
fixedPadding: d,
|
|
661
|
+
themeColor: n
|
|
662
|
+
}, o, {
|
|
636
663
|
level: 1
|
|
637
|
-
}),
|
|
664
|
+
}), r);
|
|
638
665
|
case "subtitle2-bold":
|
|
639
|
-
return /* @__PURE__ */
|
|
666
|
+
return /* @__PURE__ */ c.createElement(I, m({
|
|
640
667
|
bold: !0,
|
|
641
|
-
tag:
|
|
642
|
-
ref:
|
|
643
|
-
|
|
644
|
-
|
|
668
|
+
tag: a,
|
|
669
|
+
ref: i,
|
|
670
|
+
fixedPadding: d,
|
|
671
|
+
themeColor: n
|
|
672
|
+
}, o, {
|
|
645
673
|
level: 2
|
|
646
|
-
}),
|
|
674
|
+
}), r);
|
|
647
675
|
case "subtitle2":
|
|
648
|
-
return /* @__PURE__ */
|
|
676
|
+
return /* @__PURE__ */ c.createElement(I, m({
|
|
649
677
|
level: 2,
|
|
650
|
-
tag:
|
|
651
|
-
ref:
|
|
652
|
-
|
|
653
|
-
|
|
678
|
+
tag: a,
|
|
679
|
+
ref: i,
|
|
680
|
+
fixedPadding: d,
|
|
681
|
+
themeColor: n
|
|
682
|
+
}, o), r);
|
|
654
683
|
default:
|
|
655
|
-
return /* @__PURE__ */
|
|
656
|
-
tag:
|
|
657
|
-
ref:
|
|
658
|
-
|
|
659
|
-
|
|
684
|
+
return /* @__PURE__ */ c.createElement(D, m({
|
|
685
|
+
tag: a,
|
|
686
|
+
ref: i,
|
|
687
|
+
fixedPadding: d,
|
|
688
|
+
themeColor: n
|
|
689
|
+
}, o, {
|
|
660
690
|
level: 1
|
|
661
|
-
}),
|
|
691
|
+
}), r);
|
|
662
692
|
}
|
|
663
693
|
});
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
D.defaultProps = F;
|
|
694
|
+
K.displayName = "Typography";
|
|
695
|
+
K.propTypes = oe;
|
|
667
696
|
export {
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
697
|
+
D as T,
|
|
698
|
+
z as a,
|
|
699
|
+
N as b,
|
|
700
|
+
G as c,
|
|
701
|
+
I as d,
|
|
702
|
+
K as e
|
|
674
703
|
};
|