@wix/editor-react-components 1.2885.0 → 1.2887.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/dist/site/components/Combobox/Combobox.d.ts +3 -0
- package/dist/site/components/{Dropdown/Dropdown.types.d.ts → Combobox/Combobox.types.d.ts} +8 -8
- package/dist/site/components/Combobox/component.d.ts +2 -0
- package/dist/site/components/{Dropdown → Combobox}/component.js +65 -58
- package/dist/site/components/{Dropdown → Combobox}/constants.d.ts +21 -21
- package/dist/site/components/{Dropdown → Combobox}/css.css +20 -20
- package/dist/site/components/Combobox/index.d.ts +2 -0
- package/dist/site/components/Combobox/index.js +6 -0
- package/dist/site/components/{Dropdown → Combobox}/manifest.js +12 -11
- package/dist/site/components/DatePicker/component.js +2 -2
- package/dist/site/components/DatePicker/constants.d.ts +1 -1
- package/dist/site/components/DatePicker/manifest.js +4 -3
- package/dist/site/components/TextField/TextField.d.ts +4 -0
- package/dist/site/components/{TextInput/TextInput.types.d.ts → TextField/TextField.types.d.ts} +4 -4
- package/dist/site/components/TextField/component.d.ts +1 -0
- package/dist/site/components/{TextInput → TextField}/component.js +8 -8
- package/dist/site/components/TextField/component.preview.d.ts +1 -0
- package/dist/site/components/{TextInput → TextField}/constants.d.ts +9 -9
- package/dist/site/components/{TextInput → TextField}/css.css +10 -10
- package/dist/site/components/TextField/index.d.ts +2 -0
- package/dist/site/components/TextField/index.js +6 -0
- package/dist/site/components/{TextInput → TextField}/manifest.js +12 -11
- package/dist/site/components/TextMarquee/component.js +2 -0
- package/dist/site/components/TextMarquee/css.css +1 -1
- package/dist/site/components/TextMarquee/manifest.js +5 -0
- package/dist/site/components/TimePicker/constants.d.ts +1 -1
- package/dist/site/components/TimePicker/manifest.js +2 -1
- package/dist/site/components/chunks/constants2.js +1 -1
- package/dist/site/components/chunks/constants3.js +10 -10
- package/dist/site/components/chunks/constants36.js +138 -70
- package/dist/site/components/chunks/constants37.js +70 -138
- package/dist/site/components/extensions.js +4 -4
- package/package.json +2 -2
- package/dist/site/components/Dropdown/Dropdown.d.ts +0 -3
- package/dist/site/components/Dropdown/component.d.ts +0 -2
- package/dist/site/components/Dropdown/index.d.ts +0 -2
- package/dist/site/components/Dropdown/index.js +0 -6
- package/dist/site/components/TextInput/TextInput.d.ts +0 -4
- package/dist/site/components/TextInput/component.d.ts +0 -1
- package/dist/site/components/TextInput/component.preview.d.ts +0 -1
- package/dist/site/components/TextInput/index.d.ts +0 -2
- package/dist/site/components/TextInput/index.js +0 -6
- /package/dist/site/components/{Dropdown → Combobox}/manifest.d.ts +0 -0
- /package/dist/site/components/{TextInput → TextField}/manifest.d.ts +0 -0
|
@@ -178,12 +178,12 @@ const $bcdf0525bf22703d$export$2c73285ae9390cec = /* @__PURE__ */ $f39a9eba43920
|
|
|
178
178
|
]
|
|
179
179
|
}, renderProps.children));
|
|
180
180
|
});
|
|
181
|
-
const root = "
|
|
182
|
-
const inputWrapper = "
|
|
183
|
-
const input = "
|
|
184
|
-
const label = "
|
|
185
|
-
const helperText = "
|
|
186
|
-
const errorMessage = "
|
|
181
|
+
const root = "root__Y9X01";
|
|
182
|
+
const inputWrapper = "inputWrapper__V6hJ5";
|
|
183
|
+
const input = "input__vXtLV";
|
|
184
|
+
const label = "label__8LasD";
|
|
185
|
+
const helperText = "helperText__9ngR5";
|
|
186
|
+
const errorMessage = "errorMessage__42dH-";
|
|
187
187
|
const style = {
|
|
188
188
|
root,
|
|
189
189
|
inputWrapper,
|
|
@@ -194,7 +194,7 @@ const style = {
|
|
|
194
194
|
};
|
|
195
195
|
const noop = () => {
|
|
196
196
|
};
|
|
197
|
-
const
|
|
197
|
+
const TextField2 = (props) => {
|
|
198
198
|
var _a, _b, _c, _d;
|
|
199
199
|
const {
|
|
200
200
|
id,
|
|
@@ -328,5 +328,5 @@ const TextInput = (props) => {
|
|
|
328
328
|
);
|
|
329
329
|
};
|
|
330
330
|
export {
|
|
331
|
-
|
|
331
|
+
TextField2 as default
|
|
332
332
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './TextField';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const componentClassNames: {
|
|
2
|
-
readonly root: "text-
|
|
3
|
-
readonly label: "text-
|
|
4
|
-
readonly input: "text-
|
|
5
|
-
readonly helperText: "text-
|
|
6
|
-
readonly errorMessage: "text-
|
|
2
|
+
readonly root: "text-field";
|
|
3
|
+
readonly label: "text-field-label";
|
|
4
|
+
readonly input: "text-field-input";
|
|
5
|
+
readonly helperText: "text-field-helper";
|
|
6
|
+
readonly errorMessage: "text-field-error-message";
|
|
7
7
|
};
|
|
8
8
|
export declare const FunctionalStateKeys: {
|
|
9
9
|
readonly previewError: "previewError";
|
|
@@ -12,19 +12,19 @@ export declare const DesignStates: {
|
|
|
12
12
|
readonly input: {
|
|
13
13
|
readonly hover: {
|
|
14
14
|
readonly displayName: "Hover";
|
|
15
|
-
readonly className: "
|
|
15
|
+
readonly className: "textField__input--hover";
|
|
16
16
|
};
|
|
17
17
|
readonly focus: {
|
|
18
18
|
readonly displayName: "Focus";
|
|
19
|
-
readonly className: "
|
|
19
|
+
readonly className: "textField__input--focus";
|
|
20
20
|
};
|
|
21
21
|
readonly error: {
|
|
22
22
|
readonly displayName: "Error";
|
|
23
|
-
readonly className: "
|
|
23
|
+
readonly className: "textField__input--error";
|
|
24
24
|
};
|
|
25
25
|
readonly disabled: {
|
|
26
26
|
readonly displayName: "Disabled";
|
|
27
|
-
readonly className: "
|
|
27
|
+
readonly className: "textField__input--disabled";
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
.
|
|
1
|
+
.root__Y9X01 {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
min-width: max-content !important;
|
|
5
5
|
}
|
|
6
|
-
.
|
|
6
|
+
.root__Y9X01 .inputWrapper__V6hJ5 {
|
|
7
7
|
flex: 1;
|
|
8
8
|
display: flex;
|
|
9
9
|
position: relative;
|
|
10
10
|
}
|
|
11
|
-
.
|
|
11
|
+
.root__Y9X01 .input__vXtLV {
|
|
12
12
|
appearance: none;
|
|
13
13
|
border-style: solid;
|
|
14
14
|
box-sizing: content-box !important;
|
|
@@ -18,22 +18,22 @@
|
|
|
18
18
|
flex: 1;
|
|
19
19
|
text-overflow: ellipsis;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.root__Y9X01 .input__vXtLV::placeholder {
|
|
22
22
|
color: var(--placeholderTextColor);
|
|
23
23
|
opacity: 1;
|
|
24
24
|
}
|
|
25
|
-
.
|
|
25
|
+
.root__Y9X01 .input__vXtLV:disabled, .root__Y9X01 .input__vXtLV.textField__input--disabled {
|
|
26
26
|
cursor: not-allowed;
|
|
27
27
|
}
|
|
28
|
-
.
|
|
29
|
-
.
|
|
30
|
-
.
|
|
28
|
+
.root__Y9X01 .label__8LasD,
|
|
29
|
+
.root__Y9X01 .helperText__9ngR5,
|
|
30
|
+
.root__Y9X01 .errorMessage__42dH- {
|
|
31
31
|
display: block;
|
|
32
32
|
contain: inline-size;
|
|
33
33
|
overflow-wrap: anywhere;
|
|
34
34
|
}
|
|
35
|
-
.
|
|
36
|
-
.
|
|
35
|
+
.root__Y9X01 .helperText__9ngR5,
|
|
36
|
+
.root__Y9X01 .errorMessage__42dH- {
|
|
37
37
|
margin-inline: 0;
|
|
38
38
|
margin-bottom: 0;
|
|
39
39
|
}
|
|
@@ -8,11 +8,11 @@ const designState = (s, pseudoClass) => ({
|
|
|
8
8
|
...pseudoClass ? { pseudoClass } : {}
|
|
9
9
|
});
|
|
10
10
|
const manifest = {
|
|
11
|
-
id: "
|
|
12
|
-
type: "wixEditorElements.
|
|
13
|
-
description: "
|
|
11
|
+
id: "f1b7ccea-ee58-4f52-a1f8-bdb036749bd7",
|
|
12
|
+
type: "wixEditorElements.TextField",
|
|
13
|
+
description: "TextField",
|
|
14
14
|
installation: {
|
|
15
|
-
presets: { small: "
|
|
15
|
+
presets: { small: "baseTextField", large: "baseTextField" },
|
|
16
16
|
initialSize: {
|
|
17
17
|
width: {
|
|
18
18
|
sizingType: LAYOUT.SIZING_TYPE.pixels,
|
|
@@ -25,7 +25,8 @@ const manifest = {
|
|
|
25
25
|
},
|
|
26
26
|
resources: {
|
|
27
27
|
client: {
|
|
28
|
-
componentUrl: "./site/components/
|
|
28
|
+
componentUrl: "./site/components/TextField/component.tsx",
|
|
29
|
+
moduleSpecifier: "@wix/editor-react-components/TextField",
|
|
29
30
|
dependencies: {
|
|
30
31
|
serviceDependencies: [
|
|
31
32
|
"@wix/site-service-locale",
|
|
@@ -34,7 +35,7 @@ const manifest = {
|
|
|
34
35
|
}
|
|
35
36
|
},
|
|
36
37
|
editor: {
|
|
37
|
-
componentUrl: "./site/components/
|
|
38
|
+
componentUrl: "./site/components/TextField/component.preview.tsx",
|
|
38
39
|
dependencies: {
|
|
39
40
|
serviceDependencies: [
|
|
40
41
|
"@wix/site-service-locale",
|
|
@@ -48,9 +49,9 @@ const manifest = {
|
|
|
48
49
|
displayName: DisplayNames.root.elementDisplayName,
|
|
49
50
|
archetype: Archetype.TextInput,
|
|
50
51
|
presets: {
|
|
51
|
-
|
|
52
|
-
displayName: "Base Text
|
|
53
|
-
presetCssUrl: "./site/components/
|
|
52
|
+
baseTextField: {
|
|
53
|
+
displayName: "Base Text Field",
|
|
54
|
+
presetCssUrl: "./site/components/TextField/presets/baseTextField.css",
|
|
54
55
|
presetDefaults: {
|
|
55
56
|
elements: {
|
|
56
57
|
input: {
|
|
@@ -365,8 +366,8 @@ const manifest = {
|
|
|
365
366
|
},
|
|
366
367
|
moduleConfiguration: {
|
|
367
368
|
package: { name: "@wix/editor-react-components", version: "^1.0.0" },
|
|
368
|
-
component: { path: "
|
|
369
|
-
cssFile: { path: "
|
|
369
|
+
component: { path: "TextField" },
|
|
370
|
+
cssFile: { path: "TextField/css" }
|
|
370
371
|
}
|
|
371
372
|
};
|
|
372
373
|
export {
|
|
@@ -120,6 +120,7 @@ const MarqueeUnit = (props) => {
|
|
|
120
120
|
isBuilder
|
|
121
121
|
} = props;
|
|
122
122
|
const compRef = React__default.useRef(null);
|
|
123
|
+
const letterSpacing = styleProperties == null ? void 0 : styleProperties["letter-spacing"];
|
|
123
124
|
const isSemanticElement = isOriginal && index === 0 && (!isDecorative || singleTextItem.resolvedLink);
|
|
124
125
|
React__default.useEffect(() => {
|
|
125
126
|
if (index === 0 && isOriginal) {
|
|
@@ -133,6 +134,7 @@ const MarqueeUnit = (props) => {
|
|
|
133
134
|
}
|
|
134
135
|
}, [
|
|
135
136
|
styleProperties == null ? void 0 : styleProperties.font,
|
|
137
|
+
letterSpacing,
|
|
136
138
|
index,
|
|
137
139
|
isOriginal,
|
|
138
140
|
setWidth,
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
.marqueeText__nbkgh {
|
|
123
123
|
font: var(--font);
|
|
124
124
|
text-decoration: var(--font-decoration, none);
|
|
125
|
-
letter-spacing: var(--letter-spacing,
|
|
125
|
+
letter-spacing: var(--letter-spacing, inherit);
|
|
126
126
|
text-transform: var(--text-transform, none);
|
|
127
127
|
background-color: var(--textHighlight, none);
|
|
128
128
|
display: block;
|
|
@@ -136,6 +136,11 @@ const manifest = {
|
|
|
136
136
|
}
|
|
137
137
|
},
|
|
138
138
|
cssCustomProperties: {
|
|
139
|
+
"letter-spacing": {
|
|
140
|
+
displayName: "Letter spacing",
|
|
141
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.letterSpacing,
|
|
142
|
+
defaultValue: "inherit"
|
|
143
|
+
},
|
|
139
144
|
spaceBetweenItems: {
|
|
140
145
|
displayName: running_text.settings.space_between_items,
|
|
141
146
|
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.columnGap,
|
|
@@ -5,7 +5,7 @@ import { m as manifestKeyboard, a as manifestFocusable } from "../chunks/manifes
|
|
|
5
5
|
const basePresetName = "baseTimePicker";
|
|
6
6
|
const keyboardEvents = manifestKeyboard();
|
|
7
7
|
const manifest = {
|
|
8
|
-
id: "
|
|
8
|
+
id: "18ff7012-495d-4ce2-a1e5-d28eda545f41",
|
|
9
9
|
type: COMPONENT_TYPE,
|
|
10
10
|
description: Descriptions.component,
|
|
11
11
|
installation: {
|
|
@@ -359,6 +359,7 @@ const manifest = {
|
|
|
359
359
|
resources: {
|
|
360
360
|
client: {
|
|
361
361
|
componentUrl: "./site/components/TimePicker/component.tsx",
|
|
362
|
+
moduleSpecifier: "@wix/editor-react-components/TimePicker",
|
|
362
363
|
dependencies: {
|
|
363
364
|
serviceDependencies: [
|
|
364
365
|
"@wix/site-service-locale",
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
const componentClassNames = {
|
|
2
|
-
root: "text-
|
|
3
|
-
label: "text-
|
|
4
|
-
input: "text-
|
|
5
|
-
helperText: "text-
|
|
6
|
-
errorMessage: "text-
|
|
2
|
+
root: "text-field",
|
|
3
|
+
label: "text-field-label",
|
|
4
|
+
input: "text-field-input",
|
|
5
|
+
helperText: "text-field-helper",
|
|
6
|
+
errorMessage: "text-field-error-message"
|
|
7
7
|
};
|
|
8
8
|
const FunctionalStateKeys = {
|
|
9
9
|
previewError: "previewError"
|
|
10
10
|
};
|
|
11
11
|
const DesignStates = {
|
|
12
12
|
input: {
|
|
13
|
-
hover: { displayName: "Hover", className: "
|
|
14
|
-
focus: { displayName: "Focus", className: "
|
|
15
|
-
error: { displayName: "Error", className: "
|
|
13
|
+
hover: { displayName: "Hover", className: "textField__input--hover" },
|
|
14
|
+
focus: { displayName: "Focus", className: "textField__input--focus" },
|
|
15
|
+
error: { displayName: "Error", className: "textField__input--error" },
|
|
16
16
|
disabled: {
|
|
17
17
|
displayName: "Disabled",
|
|
18
|
-
className: "
|
|
18
|
+
className: "textField__input--disabled"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
const DisplayNames = {
|
|
23
23
|
root: {
|
|
24
|
-
elementDisplayName: "
|
|
24
|
+
elementDisplayName: "TextField",
|
|
25
25
|
elements: {
|
|
26
26
|
label: "Label",
|
|
27
27
|
input: "Input",
|
|
@@ -1,97 +1,165 @@
|
|
|
1
|
-
const COMPONENT_TYPE = "wixEditorElements.
|
|
2
|
-
const DesignStates = {
|
|
3
|
-
input: {
|
|
4
|
-
hover: { displayName: "Hover", className: "dropdown__input--hover" },
|
|
5
|
-
focus: { displayName: "Focus", className: "dropdown__input--focus" },
|
|
6
|
-
error: { displayName: "Error", className: "dropdown__input--error" },
|
|
7
|
-
disabled: {
|
|
8
|
-
displayName: "Disabled",
|
|
9
|
-
className: "dropdown__input--disabled"
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
option: {
|
|
13
|
-
hover: { displayName: "Hover", className: "dropdown__option--hover" },
|
|
14
|
-
selected: {
|
|
15
|
-
displayName: "Selected",
|
|
16
|
-
className: "dropdown__option--selected"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
const FunctionalStateKeys = {
|
|
21
|
-
previewList: "previewList",
|
|
22
|
-
previewError: "previewError"
|
|
23
|
-
};
|
|
1
|
+
const COMPONENT_TYPE = "wixEditorElements.DatePicker";
|
|
24
2
|
const DisplayNames = {
|
|
25
3
|
root: {
|
|
26
|
-
elementDisplayName: "
|
|
4
|
+
elementDisplayName: "Date Picker",
|
|
27
5
|
data: {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
placeholder: "Placeholder",
|
|
6
|
+
value: "Selected date",
|
|
7
|
+
onValueChange: "On Value Change",
|
|
8
|
+
onOpenChange: "On Open Change",
|
|
9
|
+
onKeyDown: "On Key Down",
|
|
10
|
+
onKeyUp: "On Key Up",
|
|
34
11
|
label: "Label",
|
|
35
|
-
readOnly: "Read only",
|
|
36
12
|
helperText: "Helper text",
|
|
37
|
-
errorMessage: "Error message"
|
|
13
|
+
errorMessage: "Error message",
|
|
14
|
+
readOnly: "Read only",
|
|
15
|
+
disabled: "Disabled"
|
|
38
16
|
},
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
descriptions: {
|
|
42
|
-
value: "This field's current value. Connect it to your context to save the data your visitors provide. A value typed in this panel stays fixed.",
|
|
43
|
-
helperText: "A hint shown under this field, like a format example. It's always visible, so keep it short.",
|
|
44
|
-
errorMessage: "The message shown when this field is invalid. Connect it to your context so it appears only when something's wrong. A message typed in this panel always shows."
|
|
17
|
+
presets: {
|
|
18
|
+
baseDatePicker: "Base Date Picker"
|
|
45
19
|
},
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
20
|
+
designStates: {
|
|
21
|
+
hover: "Hover",
|
|
22
|
+
focus: "Focus",
|
|
23
|
+
disabled: "Disabled",
|
|
24
|
+
error: "Error",
|
|
25
|
+
selected: "Selected",
|
|
26
|
+
today: "Today"
|
|
49
27
|
},
|
|
50
28
|
elements: {
|
|
51
29
|
label: "Label",
|
|
52
|
-
input: "Input",
|
|
53
|
-
list: "List",
|
|
54
|
-
option: "Option",
|
|
55
30
|
helperText: "Helper text",
|
|
56
|
-
errorMessage: "Error message"
|
|
31
|
+
errorMessage: "Error message",
|
|
32
|
+
dateInput: "Date input",
|
|
33
|
+
calendarButton: "Calendar button",
|
|
34
|
+
popover: "Popover",
|
|
35
|
+
calendarHeader: "Calendar header",
|
|
36
|
+
weekdays: "Weekdays",
|
|
37
|
+
dates: "Dates"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
const Descriptions = {
|
|
42
|
+
root: {
|
|
43
|
+
data: {
|
|
44
|
+
value: "This field's current value. Connect it to your context to save the data your visitors provide. A value typed in this panel stays fixed.",
|
|
45
|
+
helperText: "A hint shown under this field, like a format example. It's always visible, so keep it short.",
|
|
46
|
+
errorMessage: "The message shown when this field is invalid. Connect it to your context so it appears only when something's wrong. A message typed in this panel always shows.",
|
|
47
|
+
onKeyDown: "Fires before the date picker handles the key, also while the calendar is open. preventDefault() cancels that handling. Cancelling Escape or Tab can trap keyboard focus. Cancelling arrows, Page Up/Down, Home, End, Backspace, Delete or digits stops visitors editing the date by keyboard.",
|
|
48
|
+
onKeyUp: "Fires when a key is released, including while the calendar is open. It only reports the key: calling preventDefault() doesn't change how the date picker responds."
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const defaultValues = {
|
|
53
|
+
label: "",
|
|
54
|
+
helperText: "",
|
|
55
|
+
readOnly: false,
|
|
56
|
+
disabled: false
|
|
57
|
+
};
|
|
58
|
+
const DesignStates = {
|
|
59
|
+
root: {
|
|
60
|
+
disabled: {
|
|
61
|
+
displayName: DisplayNames.root.designStates.disabled,
|
|
62
|
+
className: "datePicker--disabled"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
dateInput: {
|
|
66
|
+
hover: {
|
|
67
|
+
displayName: DisplayNames.root.designStates.hover,
|
|
68
|
+
className: "datePicker__date-input--hover"
|
|
57
69
|
},
|
|
58
|
-
|
|
59
|
-
|
|
70
|
+
focus: {
|
|
71
|
+
displayName: DisplayNames.root.designStates.focus,
|
|
72
|
+
className: "datePicker__date-input--focus"
|
|
73
|
+
},
|
|
74
|
+
error: {
|
|
75
|
+
displayName: DisplayNames.root.designStates.error,
|
|
76
|
+
className: "datePicker__date-input--error"
|
|
77
|
+
},
|
|
78
|
+
disabled: {
|
|
79
|
+
displayName: DisplayNames.root.designStates.disabled,
|
|
80
|
+
className: "datePicker__date-input--disabled"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
calendarButton: {
|
|
84
|
+
hover: {
|
|
85
|
+
displayName: DisplayNames.root.designStates.hover,
|
|
86
|
+
className: "datePicker__calendar-button--hover"
|
|
87
|
+
},
|
|
88
|
+
selected: {
|
|
89
|
+
displayName: DisplayNames.root.designStates.selected,
|
|
90
|
+
className: "datePicker__calendar-button--selected"
|
|
60
91
|
},
|
|
61
|
-
|
|
62
|
-
|
|
92
|
+
focus: {
|
|
93
|
+
displayName: DisplayNames.root.designStates.focus,
|
|
94
|
+
className: "datePicker__calendar-button--focus"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
dates: {
|
|
98
|
+
hover: {
|
|
99
|
+
displayName: DisplayNames.root.designStates.hover,
|
|
100
|
+
className: "datePicker__date--hover"
|
|
101
|
+
},
|
|
102
|
+
selected: {
|
|
103
|
+
displayName: DisplayNames.root.designStates.selected,
|
|
104
|
+
className: "datePicker__date--selected"
|
|
105
|
+
},
|
|
106
|
+
today: {
|
|
107
|
+
displayName: DisplayNames.root.designStates.today,
|
|
108
|
+
className: "datePicker__date--today"
|
|
109
|
+
},
|
|
110
|
+
focus: {
|
|
111
|
+
displayName: DisplayNames.root.designStates.focus,
|
|
112
|
+
className: "datePicker__date--focus"
|
|
63
113
|
}
|
|
64
114
|
}
|
|
65
115
|
};
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
input: "dropdown-input",
|
|
70
|
-
list: "dropdown-list",
|
|
71
|
-
helperText: "dropdown-helper-text",
|
|
72
|
-
errorMessage: "dropdown-error-message"
|
|
73
|
-
};
|
|
74
|
-
const editorElementClassNames = {
|
|
75
|
-
root: "dropdown",
|
|
76
|
-
label: "dropdown-label",
|
|
77
|
-
input: "dropdown-input",
|
|
78
|
-
list: "dropdown-list",
|
|
79
|
-
option: "dropdown-option",
|
|
80
|
-
helperText: "dropdown-helper-text",
|
|
81
|
-
errorMessage: "dropdown-error-message"
|
|
116
|
+
const FunctionalStateKeys = {
|
|
117
|
+
previewCalendarOpen: "previewCalendarOpen",
|
|
118
|
+
previewError: "previewError"
|
|
82
119
|
};
|
|
120
|
+
const ARIA_LABEL_NAMESPACE = "ariaLabels";
|
|
83
121
|
const AriaLabels = {
|
|
84
122
|
root: {
|
|
85
|
-
legacyKey: "
|
|
86
|
-
default: "
|
|
123
|
+
legacyKey: "datePicker_aria_label",
|
|
124
|
+
default: "Date picker"
|
|
125
|
+
},
|
|
126
|
+
openCalendar: {
|
|
127
|
+
legacyKey: "datePicker_open_calendar",
|
|
128
|
+
default: "Open calendar"
|
|
87
129
|
}
|
|
88
130
|
};
|
|
131
|
+
const TestIds = {
|
|
132
|
+
root: "datepicker-root",
|
|
133
|
+
group: "datepicker-group",
|
|
134
|
+
field: "datepicker-field",
|
|
135
|
+
calendarButton: "datepicker-calendar-button",
|
|
136
|
+
calendar: "datepicker-calendar",
|
|
137
|
+
helperText: "datepicker-helper-text",
|
|
138
|
+
errorMessage: "datepicker-error-message"
|
|
139
|
+
};
|
|
140
|
+
const selectors = {
|
|
141
|
+
root: "datePicker",
|
|
142
|
+
label: "datePicker__label",
|
|
143
|
+
helperText: "datePicker__helper-text",
|
|
144
|
+
dateInput: "datePicker__date-input",
|
|
145
|
+
segment: "datePicker__segment",
|
|
146
|
+
calendarButton: "datePicker__calendar-button",
|
|
147
|
+
popover: "datePicker__popover",
|
|
148
|
+
calendarHeader: "datePicker__calendar-header",
|
|
149
|
+
navButton: "datePicker__nav-button",
|
|
150
|
+
weekday: "datePicker__weekday",
|
|
151
|
+
date: "datePicker__date",
|
|
152
|
+
errorMessage: "datePicker__error-message"
|
|
153
|
+
};
|
|
89
154
|
export {
|
|
90
|
-
|
|
155
|
+
ARIA_LABEL_NAMESPACE as A,
|
|
91
156
|
COMPONENT_TYPE as C,
|
|
92
157
|
DesignStates as D,
|
|
93
158
|
FunctionalStateKeys as F,
|
|
94
159
|
TestIds as T,
|
|
95
|
-
|
|
96
|
-
|
|
160
|
+
AriaLabels as a,
|
|
161
|
+
DisplayNames as b,
|
|
162
|
+
Descriptions as c,
|
|
163
|
+
defaultValues as d,
|
|
164
|
+
selectors as s
|
|
97
165
|
};
|