@telefonica/mistica 14.14.0 → 14.16.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.
- package/css/mistica.css +1 -1
- package/dist/avatar.css-mistica.js +1 -1
- package/dist/badge.css-mistica.js +3 -3
- package/dist/badge.js +19 -10
- package/dist/box.d.ts +1 -1
- package/dist/boxed.css-mistica.js +1 -1
- package/dist/button-layout.css-mistica.js +4 -4
- package/dist/button.css-mistica.js +19 -19
- package/dist/button.js +112 -112
- package/dist/callout.css-mistica.js +1 -1
- package/dist/card.css-mistica.js +23 -15
- package/dist/card.css.d.ts +4 -0
- package/dist/card.d.ts +3 -3
- package/dist/card.js +104 -95
- package/dist/carousel.css-mistica.js +13 -13
- package/dist/checkbox.css-mistica.js +5 -5
- package/dist/checkbox.js +10 -9
- package/dist/chip.css-mistica.js +4 -4
- package/dist/chip.d.ts +1 -0
- package/dist/chip.js +57 -41
- package/dist/circle.css-mistica.js +1 -1
- package/dist/credit-card-number-field.js +22 -19
- package/dist/cvv-field.js +60 -47
- package/dist/date-time-picker.d.ts +10 -0
- package/dist/date-time-picker.js +54 -35
- package/dist/dialog.css-mistica.js +3 -3
- package/dist/double-field.css-mistica.js +2 -2
- package/dist/empty-state-card.css-mistica.js +1 -1
- package/dist/empty-state.css-mistica.js +3 -3
- package/dist/feedback.css-mistica.js +3 -3
- package/dist/fixed-footer-layout.css-mistica.js +1 -1
- package/dist/fixed-footer-layout.js +79 -27
- package/dist/grid.css.d.ts +6 -6
- package/dist/hero.css-mistica.js +1 -1
- package/dist/highlighted-card.css-mistica.js +3 -3
- package/dist/hooks.d.ts +1 -1
- package/dist/icons/icon-cvv-amex.d.ts +1 -0
- package/dist/icons/icon-cvv-amex.js +5 -4
- package/dist/icons/icon-cvv-visa-mc.d.ts +1 -0
- package/dist/icons/icon-cvv-visa-mc.js +7 -6
- package/dist/image.css-mistica.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/list.css-mistica.js +7 -7
- package/dist/list.js +90 -91
- package/dist/loading-bar.css-mistica.js +4 -4
- package/dist/maybe-dismissable.css-mistica.js +3 -3
- package/dist/menu.css-mistica.js +1 -1
- package/dist/navigation-bar.css-mistica.js +11 -11
- package/dist/navigation-breadcrumbs.css-mistica.js +1 -1
- package/dist/package-version.js +1 -1
- package/dist/password-field.css-mistica.js +1 -1
- package/dist/popover.css-mistica.js +3 -3
- package/dist/progress-bar.css-mistica.js +1 -1
- package/dist/radio-button.css-mistica.js +14 -14
- package/dist/radio-button.js +34 -33
- package/dist/responsive-layout.css-mistica.js +2 -2
- package/dist/screen-reader-only.css-mistica.js +1 -1
- package/dist/search-field.js +8 -8
- package/dist/select.css-mistica.js +11 -11
- package/dist/select.js +145 -142
- package/dist/skins/blau.js +10 -0
- package/dist/skins/defaults.js +10 -0
- package/dist/skins/movistar-legacy.js +10 -0
- package/dist/skins/movistar.js +10 -0
- package/dist/skins/o2.js +10 -0
- package/dist/skins/telefonica.js +12 -2
- package/dist/skins/types/index.d.ts +24 -8
- package/dist/skins/vivo-new.js +10 -0
- package/dist/skins/vivo.js +10 -0
- package/dist/snackbar.css-mistica.js +3 -3
- package/dist/sprinkles.css-mistica.js +226 -190
- package/dist/sprinkles.css.d.ts +16 -16
- package/dist/stepper.css-mistica.js +3 -3
- package/dist/stepper.js +26 -26
- package/dist/switch-component.css-mistica.js +15 -15
- package/dist/switch-component.js +16 -15
- package/dist/tabs.css-mistica.js +7 -7
- package/dist/tabs.js +32 -28
- package/dist/tag.css-mistica.js +1 -1
- package/dist/tag.js +15 -14
- package/dist/text-field-base.css-mistica.js +6 -6
- package/dist/text-field-base.js +44 -44
- package/dist/text-field-components.css-mistica.js +6 -6
- package/dist/text-link.css-mistica.js +5 -5
- package/dist/text.d.ts +6 -8
- package/dist/text.js +8 -7
- package/dist/theme-context-provider.js +25 -24
- package/dist/theme.d.ts +5 -2
- package/dist/theme.js +73 -24
- package/dist/title.js +27 -24
- package/dist/tooltip.css-mistica.js +6 -6
- package/dist/touchable.css-mistica.js +3 -3
- package/dist/utils/aspect-ratio-support.css-mistica.js +2 -2
- package/dist/video.css-mistica.js +1 -1
- package/dist/video.d.ts +7 -1
- package/dist/video.js +116 -76
- package/dist-es/avatar.css-mistica.js +1 -1
- package/dist-es/badge.css-mistica.js +2 -2
- package/dist-es/badge.js +29 -20
- package/dist-es/boxed.css-mistica.js +1 -1
- package/dist-es/button-layout.css-mistica.js +3 -3
- package/dist-es/button.css-mistica.js +9 -9
- package/dist-es/button.js +154 -154
- package/dist-es/callout.css-mistica.js +1 -1
- package/dist-es/card.css-mistica.js +4 -2
- package/dist-es/card.js +151 -142
- package/dist-es/carousel.css-mistica.js +2 -2
- package/dist-es/checkbox.css-mistica.js +5 -5
- package/dist-es/checkbox.js +21 -20
- package/dist-es/chip.css-mistica.js +4 -4
- package/dist-es/chip.js +77 -61
- package/dist-es/circle.css-mistica.js +1 -1
- package/dist-es/credit-card-number-field.js +23 -20
- package/dist-es/cvv-field.js +74 -61
- package/dist-es/date-time-picker.js +66 -47
- package/dist-es/dialog.css-mistica.js +3 -3
- package/dist-es/double-field.css-mistica.js +2 -2
- package/dist-es/empty-state-card.css-mistica.js +1 -1
- package/dist-es/empty-state.css-mistica.js +2 -2
- package/dist-es/feedback.css-mistica.js +2 -2
- package/dist-es/fixed-footer-layout.css-mistica.js +1 -1
- package/dist-es/fixed-footer-layout.js +94 -42
- package/dist-es/hero.css-mistica.js +1 -1
- package/dist-es/highlighted-card.css-mistica.js +3 -3
- package/dist-es/icons/icon-cvv-amex.js +5 -4
- package/dist-es/icons/icon-cvv-visa-mc.js +9 -8
- package/dist-es/image.css-mistica.js +1 -1
- package/dist-es/list.css-mistica.js +2 -2
- package/dist-es/list.js +114 -115
- package/dist-es/loading-bar.css-mistica.js +2 -2
- package/dist-es/maybe-dismissable.css-mistica.js +2 -2
- package/dist-es/menu.css-mistica.js +1 -1
- package/dist-es/navigation-bar.css-mistica.js +8 -8
- package/dist-es/navigation-breadcrumbs.css-mistica.js +1 -1
- package/dist-es/package-version.js +1 -1
- package/dist-es/password-field.css-mistica.js +1 -1
- package/dist-es/popover.css-mistica.js +2 -2
- package/dist-es/progress-bar.css-mistica.js +1 -1
- package/dist-es/radio-button.css-mistica.js +8 -8
- package/dist-es/radio-button.js +38 -37
- package/dist-es/responsive-layout.css-mistica.js +2 -2
- package/dist-es/screen-reader-only.css-mistica.js +1 -1
- package/dist-es/search-field.js +7 -7
- package/dist-es/select.css-mistica.js +10 -10
- package/dist-es/select.js +173 -170
- package/dist-es/skins/blau.js +10 -0
- package/dist-es/skins/defaults.js +10 -0
- package/dist-es/skins/movistar-legacy.js +10 -0
- package/dist-es/skins/movistar.js +10 -0
- package/dist-es/skins/o2.js +10 -0
- package/dist-es/skins/telefonica.js +12 -2
- package/dist-es/skins/vivo-new.js +10 -0
- package/dist-es/skins/vivo.js +10 -0
- package/dist-es/snackbar.css-mistica.js +2 -2
- package/dist-es/sprinkles.css-mistica.js +226 -190
- package/dist-es/stepper.css-mistica.js +2 -2
- package/dist-es/stepper.js +50 -50
- package/dist-es/style.css +1 -1
- package/dist-es/switch-component.css-mistica.js +12 -12
- package/dist-es/switch-component.js +37 -36
- package/dist-es/tabs.css-mistica.js +6 -6
- package/dist-es/tabs.js +49 -45
- package/dist-es/tag.css-mistica.js +1 -1
- package/dist-es/tag.js +28 -27
- package/dist-es/text-field-base.css-mistica.js +2 -2
- package/dist-es/text-field-base.js +64 -64
- package/dist-es/text-field-components.css-mistica.js +2 -2
- package/dist-es/text-link.css-mistica.js +5 -5
- package/dist-es/text.js +11 -10
- package/dist-es/theme-context-provider.js +56 -55
- package/dist-es/theme.js +69 -20
- package/dist-es/title.js +36 -33
- package/dist-es/tooltip.css-mistica.js +3 -3
- package/dist-es/touchable.css-mistica.js +2 -2
- package/dist-es/utils/aspect-ratio-support.css-mistica.js +2 -2
- package/dist-es/video.css-mistica.js +1 -1
- package/dist-es/video.js +121 -81
- package/package.json +3 -2
- package/dist/cvv-field.css-mistica.js +0 -21
- package/dist/cvv-field.css.d.ts +0 -2
- package/dist/cvv-field.css.ts.vanilla.css-mistica.js +0 -11
- package/dist/icons/icon-creditcard.d.ts +0 -7
- package/dist/icons/icon-creditcard.js +0 -33
- package/dist/icons/icon-info-cvv.d.ts +0 -7
- package/dist/icons/icon-info-cvv.js +0 -26
- package/dist/icons/icon-search.d.ts +0 -7
- package/dist/icons/icon-search.js +0 -32
- package/dist-es/cvv-field.css-mistica.js +0 -4
- package/dist-es/cvv-field.css.ts.vanilla.css-mistica.js +0 -2
- package/dist-es/icons/icon-creditcard.js +0 -24
- package/dist-es/icons/icon-info-cvv.js +0 -17
- package/dist-es/icons/icon-search.js +0 -23
package/dist-es/cvv-field.js
CHANGED
|
@@ -77,56 +77,68 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
77
77
|
}
|
|
78
78
|
return target;
|
|
79
79
|
}
|
|
80
|
-
import { jsx as r,
|
|
81
|
-
import { useTheme as
|
|
82
|
-
import
|
|
83
|
-
import
|
|
84
|
-
import
|
|
85
|
-
import
|
|
86
|
-
import
|
|
87
|
-
import { useForm as
|
|
88
|
-
import { TextFieldBaseAutosuggest as
|
|
89
|
-
import { IntegerInput as
|
|
90
|
-
import
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
80
|
+
import { jsx as r, Fragment as A, jsxs as c } from "react/jsx-runtime";
|
|
81
|
+
import { useTheme as h } from "./hooks.js";
|
|
82
|
+
import w from "./icons/icon-cvv-visa-mc.js";
|
|
83
|
+
import b from "./icons/icon-cvv-amex.js";
|
|
84
|
+
import k from "./tooltip.js";
|
|
85
|
+
import D from "./icon-button.js";
|
|
86
|
+
import N from "./generated/mistica-icons/icon-information-regular.js";
|
|
87
|
+
import { useForm as R, useFieldProps as S } from "./form-context.js";
|
|
88
|
+
import { TextFieldBaseAutosuggest as $ } from "./text-field-base.js";
|
|
89
|
+
import { IntegerInput as q } from "./integer-field.js";
|
|
90
|
+
import C from "./inline.js";
|
|
91
|
+
import G from "./stack.js";
|
|
92
|
+
import H from "./box.js";
|
|
93
|
+
import J from "./divider.js";
|
|
94
|
+
import g from "./text.js";
|
|
95
|
+
import { vars as K } from "./skins/skin-contract.css-mistica.js";
|
|
96
|
+
const O = (param)=>{
|
|
97
|
+
let { acceptedCards: t } = param;
|
|
98
|
+
const { texts: e } = h();
|
|
99
|
+
return /* @__PURE__ */ r(A, {
|
|
100
|
+
children: /* @__PURE__ */ r(H, {
|
|
101
|
+
padding: 8,
|
|
102
|
+
children: /* @__PURE__ */ c(G, {
|
|
103
|
+
space: 8,
|
|
98
104
|
children: [
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
children: [
|
|
112
|
-
/* @__PURE__ */ r(w, {
|
|
113
|
-
size: 48,
|
|
114
|
-
role: "img"
|
|
105
|
+
/* @__PURE__ */ c(C, {
|
|
106
|
+
space: 16,
|
|
107
|
+
alignItems: "center",
|
|
108
|
+
children: [
|
|
109
|
+
/* @__PURE__ */ r(w, {
|
|
110
|
+
size: 48,
|
|
111
|
+
role: "img"
|
|
112
|
+
}),
|
|
113
|
+
/* @__PURE__ */ r(g, {
|
|
114
|
+
children: e.formCreditCardCvvTooltipVisaMc
|
|
115
|
+
})
|
|
116
|
+
]
|
|
115
117
|
}),
|
|
116
|
-
/* @__PURE__ */ r(
|
|
117
|
-
|
|
118
|
-
|
|
118
|
+
/* @__PURE__ */ r(J, {}),
|
|
119
|
+
(t == null ? void 0 : t.americanExpress) && /* @__PURE__ */ c(C, {
|
|
120
|
+
space: 16,
|
|
121
|
+
alignItems: "center",
|
|
122
|
+
children: [
|
|
123
|
+
/* @__PURE__ */ r(b, {
|
|
124
|
+
size: 48,
|
|
125
|
+
role: "img"
|
|
126
|
+
}),
|
|
127
|
+
/* @__PURE__ */ r(g, {
|
|
128
|
+
children: e.formCreditCardCvvTooltipAmex
|
|
129
|
+
})
|
|
130
|
+
]
|
|
119
131
|
})
|
|
120
132
|
]
|
|
121
133
|
})
|
|
122
|
-
|
|
134
|
+
})
|
|
123
135
|
});
|
|
124
|
-
},
|
|
125
|
-
var { disabled:
|
|
136
|
+
}, Q = (_param)=>{
|
|
137
|
+
var { disabled: t , error: e , helperText: I , name: n , optional: f , validate: s , onChange: x , onChangeValue: T , onBlur: F , acceptedCards: y = {
|
|
126
138
|
americanExpress: !0,
|
|
127
139
|
visa: !0,
|
|
128
140
|
masterCard: !0
|
|
129
|
-
} , maxLength: m = 4 , value: E , autoComplete:
|
|
141
|
+
} , maxLength: m = 4 , value: E , autoComplete: M = "cc-csc" , defaultValue: V } = _param, j = _object_without_properties(_param, [
|
|
130
142
|
"disabled",
|
|
131
143
|
"error",
|
|
132
144
|
"helperText",
|
|
@@ -142,36 +154,36 @@ const J = (param)=>{
|
|
|
142
154
|
"autoComplete",
|
|
143
155
|
"defaultValue"
|
|
144
156
|
]);
|
|
145
|
-
const { texts: l } =
|
|
146
|
-
name:
|
|
157
|
+
const { texts: l } = h(), { setFormError: z , jumpToNext: B } = R(), p = (o, i)=>o ? o.length !== m ? l.formCreditCardCvvError : s == null ? void 0 : s(o, i) : f ? "" : l.formFieldErrorIsMandatory, a = (o)=>o, u = S({
|
|
158
|
+
name: n,
|
|
147
159
|
value: E,
|
|
148
160
|
defaultValue: V,
|
|
149
161
|
processValue: a,
|
|
150
|
-
helperText:
|
|
162
|
+
helperText: I,
|
|
151
163
|
optional: f,
|
|
152
164
|
error: e,
|
|
153
|
-
disabled:
|
|
165
|
+
disabled: t,
|
|
154
166
|
onBlur: F,
|
|
155
167
|
validate: p,
|
|
156
|
-
onChange:
|
|
168
|
+
onChange: x,
|
|
157
169
|
onChangeValue: T
|
|
158
170
|
});
|
|
159
|
-
return /* @__PURE__ */ r(
|
|
171
|
+
return /* @__PURE__ */ r($, _object_spread_props(_object_spread({}, j, u), {
|
|
160
172
|
maxLength: m,
|
|
161
|
-
onChange: (
|
|
162
|
-
u.onChange(
|
|
163
|
-
const i =
|
|
173
|
+
onChange: (o)=>{
|
|
174
|
+
u.onChange(o);
|
|
175
|
+
const i = o.currentTarget.value, d = a(i);
|
|
164
176
|
if (d.length === m) {
|
|
165
177
|
const v = p(d, i);
|
|
166
178
|
v ? z({
|
|
167
|
-
name:
|
|
179
|
+
name: n,
|
|
168
180
|
error: v
|
|
169
|
-
}) :
|
|
181
|
+
}) : B(n);
|
|
170
182
|
}
|
|
171
183
|
},
|
|
172
|
-
endIcon: /* @__PURE__ */ r(
|
|
184
|
+
endIcon: /* @__PURE__ */ r(k, {
|
|
173
185
|
position: "top",
|
|
174
|
-
children: /* @__PURE__ */ r(
|
|
186
|
+
children: /* @__PURE__ */ r(O, {
|
|
175
187
|
acceptedCards: y
|
|
176
188
|
}),
|
|
177
189
|
targetLabel: l.formCreditCardCvvTooltipVisaMcButton,
|
|
@@ -180,7 +192,7 @@ const J = (param)=>{
|
|
|
180
192
|
width: 16,
|
|
181
193
|
height: 16
|
|
182
194
|
},
|
|
183
|
-
children: /* @__PURE__ */ r(
|
|
195
|
+
children: /* @__PURE__ */ r(D, {
|
|
184
196
|
size: 40,
|
|
185
197
|
style: {
|
|
186
198
|
display: "flex",
|
|
@@ -191,14 +203,15 @@ const J = (param)=>{
|
|
|
191
203
|
// (40 - 16) / 2
|
|
192
204
|
top: -12
|
|
193
205
|
},
|
|
194
|
-
children: /* @__PURE__ */ r(
|
|
195
|
-
size:
|
|
206
|
+
children: /* @__PURE__ */ r(N, {
|
|
207
|
+
size: 16,
|
|
208
|
+
color: K.colors.neutralMedium
|
|
196
209
|
})
|
|
197
210
|
})
|
|
198
211
|
})
|
|
199
212
|
}),
|
|
200
|
-
autoComplete:
|
|
201
|
-
inputComponent:
|
|
213
|
+
autoComplete: M,
|
|
214
|
+
inputComponent: q
|
|
202
215
|
}));
|
|
203
|
-
},
|
|
204
|
-
export {
|
|
216
|
+
}, lr = Q;
|
|
217
|
+
export { lr as default };
|
|
@@ -77,65 +77,84 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
77
77
|
}
|
|
78
78
|
return target;
|
|
79
79
|
}
|
|
80
|
-
import { jsxs as
|
|
80
|
+
import { jsxs as P, Fragment as R, jsx as r } from "react/jsx-runtime";
|
|
81
81
|
import * as d from "react";
|
|
82
82
|
import { TextFieldBaseAutosuggest as H } from "./text-field-base.js";
|
|
83
83
|
import S from "./generated/mistica-icons/icon-calendar-regular.js";
|
|
84
|
-
import
|
|
85
|
-
import
|
|
86
|
-
import { DEFAULT_WIDTH as
|
|
87
|
-
import
|
|
88
|
-
import { cancelEvent as
|
|
89
|
-
import { useTheme as
|
|
84
|
+
import F from "react-datetime";
|
|
85
|
+
import I from "./overlay.js";
|
|
86
|
+
import { DEFAULT_WIDTH as L } from "./text-field-components.css-mistica.js";
|
|
87
|
+
import g from "./icon-button.js";
|
|
88
|
+
import { cancelEvent as T, createChangeEvent as B } from "./utils/dom.js";
|
|
89
|
+
import { useTheme as E, useElementDimensions as V } from "./hooks.js";
|
|
90
90
|
import Y from "./generated/mistica-icons/icon-close-regular.js";
|
|
91
91
|
import { reactDatePicker as j } from "./date-time-picker.css-mistica.js";
|
|
92
92
|
import { vars as z } from "./skins/skin-contract.css-mistica.js";
|
|
93
|
-
|
|
94
|
-
import
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
import "moment/locale/es";
|
|
94
|
+
import "moment/locale/de";
|
|
95
|
+
import "moment/locale/pt-br";
|
|
96
|
+
import "moment/locale/en-gb";
|
|
97
|
+
const A = {
|
|
98
|
+
es: "es",
|
|
99
|
+
// spanish
|
|
100
|
+
ca: "es",
|
|
101
|
+
// catalan
|
|
102
|
+
eu: "es",
|
|
103
|
+
// euskera
|
|
104
|
+
gl: "es",
|
|
105
|
+
// gallego
|
|
106
|
+
de: "de",
|
|
107
|
+
// german
|
|
108
|
+
pt: "pt-br",
|
|
109
|
+
// portuguese
|
|
110
|
+
en: "en-gb"
|
|
111
|
+
}, O = (a)=>{
|
|
112
|
+
const i = a.toLocaleLowerCase().split("-")[0];
|
|
113
|
+
return A[i] || "en-gb";
|
|
114
|
+
}, ie = (_param)=>{
|
|
115
|
+
var { withTime: a , mode: i , isValidDate: h , optional: u } = _param, t = _object_without_properties(_param, [
|
|
97
116
|
"withTime",
|
|
98
117
|
"mode",
|
|
99
118
|
"isValidDate",
|
|
100
119
|
"optional"
|
|
101
120
|
]);
|
|
102
|
-
const [m,
|
|
103
|
-
t.disabled ||
|
|
104
|
-
},
|
|
105
|
-
var
|
|
106
|
-
const { top: e = 0 , bottom: o = 0 , left:
|
|
121
|
+
const [m, y] = d.useState(!1), { texts: x , i18n: { locale: b } } = E(), n = d.useRef(null), { height: k , ref: v } = V(), l = (e)=>{
|
|
122
|
+
t.disabled || y(e);
|
|
123
|
+
}, C = ()=>{
|
|
124
|
+
var f;
|
|
125
|
+
const { top: e = 0 , bottom: o = 0 , left: c = 0 } = ((f = n.current) == null ? void 0 : f.getBoundingClientRect()) || {}, M = 260 + o < window.innerHeight;
|
|
107
126
|
return {
|
|
108
|
-
width:
|
|
109
|
-
top:
|
|
110
|
-
left:
|
|
127
|
+
width: L,
|
|
128
|
+
top: M ? o : e - k,
|
|
129
|
+
left: c,
|
|
111
130
|
position: "absolute",
|
|
112
131
|
borderRadius: z.borderRadii.input,
|
|
113
132
|
overflow: "hidden",
|
|
114
133
|
boxShadow: "0px 5px 5px -3px rgba(0,0,0,0.2), 0px 8px 10px 1px rgba(0,0,0,0.14), 0px 3px 14px 2px rgba(0,0,0,0.12)"
|
|
115
134
|
};
|
|
116
|
-
},
|
|
135
|
+
}, s = ()=>{
|
|
117
136
|
var o;
|
|
118
137
|
const e = (o = n.current) == null ? void 0 : o.value;
|
|
119
138
|
return e ? new Date(e) : void 0;
|
|
120
|
-
},
|
|
121
|
-
var
|
|
122
|
-
const o = typeof e == "string" ? e :
|
|
123
|
-
n.current && (n.current.focus(), (
|
|
124
|
-
},
|
|
125
|
-
"aria-label":
|
|
139
|
+
}, D = (e)=>a ? e.format("yyyy-MM-DD HH:mm") : i === "year-month" ? e.format("yyyy-MM") : e.format("yyyy-MM-DD"), p = (e)=>{
|
|
140
|
+
var c;
|
|
141
|
+
const o = typeof e == "string" ? e : D(e);
|
|
142
|
+
n.current && (n.current.focus(), (c = t.onChange) == null || c.call(t, B(n.current, o)));
|
|
143
|
+
}, w = ()=>s() && u ? /* @__PURE__ */ r(g, {
|
|
144
|
+
"aria-label": x.clearButton,
|
|
126
145
|
size: 32,
|
|
127
146
|
onPress: ()=>{
|
|
128
|
-
|
|
147
|
+
p("");
|
|
129
148
|
},
|
|
130
149
|
children: /* @__PURE__ */ r(Y, {})
|
|
131
|
-
}) : /* @__PURE__ */ r(
|
|
150
|
+
}) : /* @__PURE__ */ r(g, {
|
|
132
151
|
disabled: t.disabled,
|
|
133
152
|
"aria-label": "",
|
|
134
153
|
size: 32,
|
|
135
|
-
onPress: ()=>
|
|
154
|
+
onPress: ()=>l(!m),
|
|
136
155
|
children: /* @__PURE__ */ r(S, {})
|
|
137
156
|
});
|
|
138
|
-
return /* @__PURE__ */ R
|
|
157
|
+
return /* @__PURE__ */ P(R, {
|
|
139
158
|
children: [
|
|
140
159
|
/* @__PURE__ */ r(H, _object_spread_props(_object_spread({}, t), {
|
|
141
160
|
style: {
|
|
@@ -144,40 +163,40 @@ const Z = (_param)=>{
|
|
|
144
163
|
required: !u,
|
|
145
164
|
type: "text",
|
|
146
165
|
autoComplete: "off",
|
|
147
|
-
shrinkLabel: !!
|
|
148
|
-
endIcon:
|
|
166
|
+
shrinkLabel: !!s(),
|
|
167
|
+
endIcon: w(),
|
|
149
168
|
inputRef: (e)=>{
|
|
150
169
|
var o;
|
|
151
170
|
(o = t == null ? void 0 : t.inputRef) == null || o.call(t, e), n.current = e;
|
|
152
171
|
},
|
|
153
172
|
readOnly: !0,
|
|
154
|
-
onKeyDown: ()=>
|
|
173
|
+
onKeyDown: ()=>l(!0),
|
|
155
174
|
onClick: ()=>{
|
|
156
|
-
|
|
175
|
+
l(!0);
|
|
157
176
|
}
|
|
158
177
|
})),
|
|
159
|
-
m && /* @__PURE__ */ r(
|
|
178
|
+
m && /* @__PURE__ */ r(I, {
|
|
160
179
|
onPress: (e)=>{
|
|
161
|
-
|
|
180
|
+
T(e), l(!1);
|
|
162
181
|
},
|
|
163
182
|
disableScroll: !0,
|
|
164
183
|
children: /* @__PURE__ */ r("div", {
|
|
165
|
-
ref:
|
|
166
|
-
style:
|
|
184
|
+
ref: v,
|
|
185
|
+
style: C(),
|
|
167
186
|
className: j,
|
|
168
|
-
children: /* @__PURE__ */ r(
|
|
169
|
-
initialViewMode:
|
|
170
|
-
dateFormat:
|
|
171
|
-
timeFormat:
|
|
172
|
-
initialValue:
|
|
173
|
-
locale:
|
|
187
|
+
children: /* @__PURE__ */ r(F, {
|
|
188
|
+
initialViewMode: i === "year-month" ? "months" : void 0,
|
|
189
|
+
dateFormat: i === "year-month" ? "YYYY-MM" : void 0,
|
|
190
|
+
timeFormat: a ? "HH:mm" : !1,
|
|
191
|
+
initialValue: s(),
|
|
192
|
+
locale: O(b),
|
|
174
193
|
input: !1,
|
|
175
|
-
onChange:
|
|
176
|
-
isValidDate:
|
|
194
|
+
onChange: p,
|
|
195
|
+
isValidDate: h
|
|
177
196
|
})
|
|
178
197
|
})
|
|
179
198
|
})
|
|
180
199
|
]
|
|
181
200
|
});
|
|
182
201
|
};
|
|
183
|
-
export {
|
|
202
|
+
export { ie as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./sprinkles.css.ts.vanilla.css-mistica.js";
|
|
2
2
|
import "./dialog.css.ts.vanilla.css-mistica.js";
|
|
3
|
-
var _ = "_3dl29lb", y = "_3dl29l6", f = "_3dl29ll
|
|
4
|
-
dialog: "_3dl29ld _1y2v1nf64 _1y2v1nf6a _1y2v1nf6g
|
|
5
|
-
default: "_3dl29ld _1y2v1nf64 _1y2v1nf6a _1y2v1nf6g
|
|
3
|
+
var _ = "_3dl29lb", y = "_3dl29l6", f = "_3dl29ll _1y2v1nf6y", a = "_3dl29lj _1y2v1nf6q _1y2v1nf9s", l = "_3dl29lm", d = "_3dl29l8 _1y2v1nf6w _1y2v1nf7b _1y2v1nf7q _1y2v1nf85 _1y2v1nf60 _1y2v1nfau _1y2v1nfbo", o = "_3dl29la _1y2v1nf30 _1y2v1nfaj", r = "_3dl29l5 _1y2v1nf61 _1y2v1nf64 _1y2v1nf6d _1y2v1nf6j _1y2v1nf6a _1y2v1nfau _1y2v1nfbo _1y2v1nfc3 _1y2v1nfb9 _1y2v1nf3b", t = {
|
|
4
|
+
dialog: "_3dl29ld _1y2v1nf64 _1y2v1nf6a _1y2v1nf6g _1y2v1nf7s _1y2v1nf87 _1y2v1nf70 _1y2v1nf7d",
|
|
5
|
+
default: "_3dl29ld _1y2v1nf64 _1y2v1nf6a _1y2v1nf6g _1y2v1nf6y _1y2v1nf7d _1y2v1nf7s _1y2v1nf87"
|
|
6
6
|
}, e = "_3dl29l3 _1y2v1nf5z";
|
|
7
7
|
export { _ as closedModalContent, y as closedOpactityLayer, f as dialogActions, a as dialogContent, l as iconContainer, d as modalCloseButtonContainer, o as modalContent, r as modalOpacityLayer, t as variants, e as wrapper };
|
|
@@ -2,7 +2,7 @@ import "./sprinkles.css.ts.vanilla.css-mistica.js";
|
|
|
2
2
|
import "./text-field-components.css.ts.vanilla.css-mistica.js";
|
|
3
3
|
import "./double-field.css.ts.vanilla.css-mistica.js";
|
|
4
4
|
var n = {
|
|
5
|
-
default: "skrulh1 _1y2v1nf64 _1y2v1nf69
|
|
6
|
-
fullWidth: "skrulh2 _1y2v1nf64 _1y2v1nf69
|
|
5
|
+
default: "skrulh1 _1y2v1nf64 _1y2v1nf69 _1y2v1nf8f",
|
|
6
|
+
fullWidth: "skrulh2 _1y2v1nf64 _1y2v1nf69 _1y2v1nf8f"
|
|
7
7
|
};
|
|
8
8
|
export { n as variants };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./sprinkles.css.ts.vanilla.css-mistica.js";
|
|
2
2
|
import "./empty-state-card.css.ts.vanilla.css-mistica.js";
|
|
3
|
-
var n = "_1azor6p0", o = "_1azor6p4
|
|
3
|
+
var n = "_1azor6p0", o = "_1azor6p4 _1y2v1nf8r _1y2v1nf97", v = "_1azor6p2 _1y2v1nf66 _1y2v1nf99";
|
|
4
4
|
export { n as container, o as iconContainer, v as image };
|
|
@@ -3,7 +3,7 @@ import "./empty-state.css.ts.vanilla.css-mistica.js";
|
|
|
3
3
|
var n = "_13fzrua2 _1y2v1nf64 _1y2v1nf5y", v = {
|
|
4
4
|
default: "_13fzrua3",
|
|
5
5
|
largeImage: "_13fzrua4"
|
|
6
|
-
}, e = "_13fzrua9
|
|
6
|
+
}, e = "_13fzrua9 _1y2v1nf8t _1y2v1nf99", f = "_13fzruac", _ = "_13fzrua7 _1y2v1nf8w", o = "_13fzrua5", t = "_13fzruab _1y2v1nf66", u = {
|
|
7
7
|
backgroundColor: "var(--_13fzrua0)"
|
|
8
8
|
};
|
|
9
|
-
export { n as container, v as contentVariants, e as iconContainer, f as inverseBorder, _ as largeImage, o as largeImageContainer,
|
|
9
|
+
export { n as container, v as contentVariants, e as iconContainer, f as inverseBorder, _ as largeImage, o as largeImageContainer, t as smallImage, u as vars };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./sprinkles.css.ts.vanilla.css-mistica.js";
|
|
2
2
|
import "./feedback.css.ts.vanilla.css-mistica.js";
|
|
3
|
-
var
|
|
4
|
-
export {
|
|
3
|
+
var n = "gx6h6a3 _1y2v1nf64 _1y2v1nf8w _1y2v1nf8f", r = "_1y2v1nfak _1y2v1nf64 _1y2v1nf6g", t = "gx6h6a1", v = "gx6h6a7", f = "gx6h6a5", o = "gx6h6a6", p = "gx6h6a4";
|
|
4
|
+
export { n as container, r as desktopContainer, t as desktopContent, v as feedbackData, f as feedbackDataAppear, o as feedbackDataAppearActive, p as innerContainer };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./sprinkles.css.ts.vanilla.css-mistica.js";
|
|
2
2
|
import "./fixed-footer-layout.css.ts.vanilla.css-mistica.js";
|
|
3
|
-
var v = "p5j8j58", a = "p5j8j56 _1y2v1nf31", j = "p5j8j54", t = "p5j8j53
|
|
3
|
+
var v = "p5j8j58", a = "p5j8j56 _1y2v1nf31", j = "p5j8j54", t = "p5j8j53 _1y2v1nf8f _1y2v1nf30", e = {
|
|
4
4
|
footerHeight: "var(--p5j8j50)",
|
|
5
5
|
backgroundColor: "var(--p5j8j51)"
|
|
6
6
|
}, p = "_1y2v1nf63";
|
|
@@ -1,65 +1,117 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _object_spread(target) {
|
|
15
|
+
for(var i = 1; i < arguments.length; i++){
|
|
16
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
+
var ownKeys = Object.keys(source);
|
|
18
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
ownKeys.forEach(function(key) {
|
|
24
|
+
_define_property(target, key, source[key]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
function ownKeys(object, enumerableOnly) {
|
|
30
|
+
var keys = Object.keys(object);
|
|
31
|
+
if (Object.getOwnPropertySymbols) {
|
|
32
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
33
|
+
if (enumerableOnly) {
|
|
34
|
+
symbols = symbols.filter(function(sym) {
|
|
35
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
keys.push.apply(keys, symbols);
|
|
39
|
+
}
|
|
40
|
+
return keys;
|
|
41
|
+
}
|
|
42
|
+
function _object_spread_props(target, source) {
|
|
43
|
+
source = source != null ? source : {};
|
|
44
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
45
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
46
|
+
} else {
|
|
47
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
48
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
return target;
|
|
52
|
+
}
|
|
53
|
+
import { jsxs as D, Fragment as L, jsx as c } from "react/jsx-runtime";
|
|
54
|
+
import * as l from "react";
|
|
55
|
+
import O from "classnames";
|
|
56
|
+
import W from "lodash/debounce";
|
|
57
|
+
import { isRunningAcceptanceTest as k } from "./utils/platform.js";
|
|
58
|
+
import { useScreenSize as z, useTheme as N, useElementDimensions as P, useWindowHeight as $, useScreenHeight as j, useIsomorphicLayoutEffect as _, useIsWithinIFrame as B } from "./hooks.js";
|
|
59
|
+
import { getScrollableParentElement as H, addPassiveEventListener as v, removePassiveEventListener as h, hasScroll as V, getScrollDistanceToBottom as q } from "./utils/dom.js";
|
|
60
|
+
import { container as G, vars as E, footer as J, withoutFooter as K, elevated as M, fixedFooter as Q } from "./fixed-footer-layout.css-mistica.js";
|
|
9
61
|
import { assignInlineVars as U } from "@vanilla-extract/dynamic";
|
|
10
|
-
|
|
11
|
-
const Y = 2, Z = (e)=>e === document.documentElement ? window : e, ee = (e)=>{
|
|
62
|
+
const X = 2, Y = (e)=>e === document.documentElement ? window : e, Z = (e)=>{
|
|
12
63
|
const n = setTimeout(e, 0);
|
|
13
64
|
return {
|
|
14
65
|
cancel: ()=>clearTimeout(n)
|
|
15
66
|
};
|
|
16
|
-
},
|
|
17
|
-
let { isFooterVisible: e = !0 , footer: n , footerHeight: x = "auto" , footerBgColor:
|
|
18
|
-
const [
|
|
19
|
-
|
|
20
|
-
o == null || o(
|
|
67
|
+
}, C = (param)=>{
|
|
68
|
+
let { isFooterVisible: e = !0 , footer: n , footerHeight: x = "auto" , footerBgColor: S , containerBgColor: m , children: T , onChangeFooterHeight: o } = param;
|
|
69
|
+
const [g, y] = l.useState(!1), u = l.useRef(null), { isTabletOrSmaller: w } = z(), { platformOverrides: d } = N(), { height: s , ref: F } = P(), b = B(), f = $(), I = j(), i = f - s > (b ? f : I) / X;
|
|
70
|
+
_(()=>{
|
|
71
|
+
o == null || o(s);
|
|
21
72
|
}, [
|
|
22
73
|
o,
|
|
23
|
-
|
|
24
|
-
]),
|
|
25
|
-
const
|
|
26
|
-
|
|
74
|
+
s
|
|
75
|
+
]), l.useEffect(()=>{
|
|
76
|
+
const a = H(u.current), R = ()=>k(d) || !i ? !1 : V(a) ? q(a) > 1 : !1, t = W(()=>{
|
|
77
|
+
y(R());
|
|
27
78
|
}, 50, {
|
|
28
79
|
leading: !0,
|
|
29
80
|
maxWait: 200
|
|
30
|
-
}),
|
|
31
|
-
return v(
|
|
32
|
-
t.cancel(), h(
|
|
81
|
+
}), A = Z(t), r = Y(a);
|
|
82
|
+
return v(r, "resize", t), v(r, "scroll", t), ()=>{
|
|
83
|
+
t.cancel(), h(r, "scroll", t), h(r, "resize", t), A.cancel();
|
|
33
84
|
};
|
|
34
85
|
}, [
|
|
35
|
-
|
|
36
|
-
|
|
86
|
+
i,
|
|
87
|
+
d
|
|
37
88
|
]);
|
|
38
|
-
const
|
|
39
|
-
return /* @__PURE__ */
|
|
89
|
+
const p = i;
|
|
90
|
+
return /* @__PURE__ */ D(L, {
|
|
40
91
|
children: [
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
ref:
|
|
92
|
+
/* @__PURE__ */ c("div", {
|
|
93
|
+
ref: u,
|
|
43
94
|
className: G,
|
|
44
|
-
style: U({
|
|
45
|
-
[
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
95
|
+
style: U(_object_spread_props(_object_spread({}, m && {
|
|
96
|
+
[E.backgroundColor]: m
|
|
97
|
+
}), {
|
|
98
|
+
[E.footerHeight]: p ? `${s}px` : "0px"
|
|
99
|
+
})),
|
|
100
|
+
children: T
|
|
49
101
|
}),
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
className:
|
|
102
|
+
/* @__PURE__ */ c("div", {
|
|
103
|
+
className: O(J, {
|
|
52
104
|
[K]: !e,
|
|
53
|
-
[M]:
|
|
54
|
-
[Q]:
|
|
105
|
+
[M]: g,
|
|
106
|
+
[Q]: p
|
|
55
107
|
}),
|
|
56
108
|
style: {
|
|
57
|
-
background:
|
|
109
|
+
background: w ? S : void 0
|
|
58
110
|
},
|
|
59
111
|
"data-testid": `fixed-footer${e ? "-visible" : "-hidden"}`,
|
|
60
112
|
"data-position-fixed": "bottom",
|
|
61
|
-
children: e && /* @__PURE__ */
|
|
62
|
-
ref:
|
|
113
|
+
children: e && /* @__PURE__ */ c("aside", {
|
|
114
|
+
ref: F,
|
|
63
115
|
"data-component-name": "FixedFooter",
|
|
64
116
|
style: {
|
|
65
117
|
height: x,
|
|
@@ -70,5 +122,5 @@ const Y = 2, Z = (e)=>e === document.documentElement ? window : e, ee = (e)=>{
|
|
|
70
122
|
})
|
|
71
123
|
]
|
|
72
124
|
});
|
|
73
|
-
},
|
|
74
|
-
export {
|
|
125
|
+
}, ce = C;
|
|
126
|
+
export { ce as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./sprinkles.css.ts.vanilla.css-mistica.js";
|
|
2
2
|
import "./responsive-layout.css.ts.vanilla.css-mistica.js";
|
|
3
3
|
import "./hero.css.ts.vanilla.css-mistica.js";
|
|
4
|
-
var v = "_16rbpto6 _1y2v1nf64 _1y2v1nf6q _1y2v1nf6k", a = "_16rbpto2 _1y2v1nf64", n = "_1y2v1nf6j
|
|
4
|
+
var v = "_16rbpto6 _1y2v1nf64 _1y2v1nf6q _1y2v1nf6k", a = "_16rbpto2 _1y2v1nf64", n = "_1y2v1nf6j _1y2v1nf8w", _ = "_1y2v1nf6a", i = "_16rbpto7", p = {
|
|
5
5
|
height: "var(--_16rbpto0)"
|
|
6
6
|
};
|
|
7
7
|
export { v as actions, a as container, n as containerDesktop, _ as containerMobile, i as layout, p as vars };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./sprinkles.css.ts.vanilla.css-mistica.js";
|
|
2
2
|
import "./highlighted-card.css.ts.vanilla.css-mistica.js";
|
|
3
3
|
var y = "wrb8722 _1y2v1nf64 _1y2v1nf69 _1y2v1nf6g _1y2v1nf6m", f = "wrb8725 _1y2v1nf64", _ = {
|
|
4
|
-
withImage: "wrb8728 wrb8727 _1y2v1nf64 _1y2v1nf6a _1y2v1nf6i
|
|
5
|
-
withoutImage: "wrb8729 wrb8727 _1y2v1nf64 _1y2v1nf6a _1y2v1nf6i
|
|
6
|
-
}, r = "_1y2v1nf6r
|
|
4
|
+
withImage: "wrb8728 wrb8727 _1y2v1nf64 _1y2v1nf6a _1y2v1nf6i _1y2v1nf6y _1y2v1nf7d _1y2v1nf7q",
|
|
5
|
+
withoutImage: "wrb8729 wrb8727 _1y2v1nf64 _1y2v1nf6a _1y2v1nf6i _1y2v1nf6y _1y2v1nf7d _1y2v1nf7q"
|
|
6
|
+
}, r = "_1y2v1nf6r _1y2v1nf76 _1y2v1nf7l _1y2v1nf80 _1y2v1nf64 _1y2v1nf6m _1y2v1nfaa _1y2v1nf8f _1y2v1nf5y";
|
|
7
7
|
export { y as container, f as imageContent, _ as textContainerVariant, r as touchableContainer };
|