@wix/editor-react-components 1.2632.0 → 1.2634.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/AccordionComponent/component.js +1 -1
- package/dist/site/components/AccordionComponent/manifest.js +1 -1
- package/dist/site/components/AudioPlayer/component.js +1 -1
- package/dist/site/components/AudioPlayer/manifest.js +1 -1
- package/dist/site/components/BoxContainer/component.js +1 -1
- package/dist/site/components/BoxContainer/manifest.js +1 -1
- package/dist/site/components/Breadcrumbs/component.js +1 -1
- package/dist/site/components/Breadcrumbs/manifest.js +1 -1
- package/dist/site/components/Checkbox/component.js +1 -1
- package/dist/site/components/Checkbox/manifest.js +1 -1
- package/dist/site/components/CheckboxGroup/component.js +1 -1
- package/dist/site/components/CheckboxGroup/manifest.js +1 -1
- package/dist/site/components/CollapsibleText/component.js +1 -1
- package/dist/site/components/CollapsibleText/manifest.js +1 -1
- package/dist/site/components/DatePicker/component.js +1 -1
- package/dist/site/components/DatePicker/manifest.js +1 -1
- package/dist/site/components/Dropdown/component.js +1 -1
- package/dist/site/components/Dropdown/manifest.js +1 -1
- package/dist/site/components/HTMLComponent/component.js +1 -1
- package/dist/site/components/HeadingTextBlock/HeadingTextBlock.d.ts +4 -0
- package/dist/site/components/HeadingTextBlock/component.d.ts +2 -0
- package/dist/site/components/HeadingTextBlock/component.js +142 -0
- package/dist/site/components/HeadingTextBlock/constants.d.ts +58 -0
- package/dist/site/components/HeadingTextBlock/css.css +71 -0
- package/dist/site/components/HeadingTextBlock/index.d.ts +2 -0
- package/dist/site/components/HeadingTextBlock/index.js +6 -0
- package/dist/site/components/HeadingTextBlock/manifest.d.ts +5 -0
- package/dist/site/components/HeadingTextBlock/manifest.js +251 -0
- package/dist/site/components/HeadingTextBlock/panels/orientation/constants.d.ts +4 -0
- package/dist/site/components/HeadingTextBlock/panels/orientation/extension.d.ts +4 -0
- package/dist/site/components/HeadingTextBlock/panels/orientation/panel.d.ts +3 -0
- package/dist/site/components/HeadingTextBlock/panels/orientation/test-utils.d.ts +5 -0
- package/dist/site/components/HeadingTextBlock/panels/orientation/translations/consts.d.ts +6 -0
- package/dist/site/components/HeadingTextBlock/types.d.ts +29 -0
- package/dist/site/components/chunks/constants33.js +59 -10
- package/dist/site/components/chunks/constants34.js +10 -206
- package/dist/site/components/chunks/constants35.js +182 -153
- package/dist/site/components/chunks/constants36.js +162 -49
- package/dist/site/components/chunks/constants37.js +51 -102
- package/dist/site/components/chunks/constants38.js +69 -39
- package/dist/site/components/chunks/constants39.js +72 -69
- package/dist/site/components/chunks/constants40.js +73 -77
- package/dist/site/components/chunks/constants41.js +75 -56
- package/dist/site/components/chunks/constants42.js +72 -0
- package/dist/site/components/extensions.js +41 -26
- package/package.json +2 -2
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import { C as CSS_PROPERTIES, L as LAYOUT, a as ACTIONS, b as DISPLAY_GROUPS, D as DATA, A as Archetype, E as ELEMENTS } from "../chunks/chunk-ZHYIPFVN.js";
|
|
2
|
+
import { g as getSelector } from "../chunks/manifest.js";
|
|
3
|
+
import { p as presets, D as DisplayNames, d as defaultValues, m as manifestClasses } from "../chunks/constants33.js";
|
|
4
|
+
const ORIENTATION_PANEL_ID = "2a2f4252-217b-413a-8717-a1d0e1cc2470";
|
|
5
|
+
const TEXT_CSS_PROPERTIES = {
|
|
6
|
+
display: {
|
|
7
|
+
display: {
|
|
8
|
+
displayValues: [
|
|
9
|
+
CSS_PROPERTIES.DISPLAY_VALUE.none,
|
|
10
|
+
CSS_PROPERTIES.DISPLAY_VALUE.block
|
|
11
|
+
]
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
font: {},
|
|
15
|
+
color: {},
|
|
16
|
+
lineHeight: {},
|
|
17
|
+
letterSpacing: {},
|
|
18
|
+
textAlign: {},
|
|
19
|
+
textTransform: {},
|
|
20
|
+
textDecorationLine: {},
|
|
21
|
+
textShadow: {}
|
|
22
|
+
};
|
|
23
|
+
const createInlineTextPart = (selector, displayName) => ({
|
|
24
|
+
elementType: ELEMENTS.ELEMENT_TYPE.inlineElement,
|
|
25
|
+
inlineElement: {
|
|
26
|
+
selector: getSelector(selector),
|
|
27
|
+
displayName,
|
|
28
|
+
behaviors: {
|
|
29
|
+
removable: true,
|
|
30
|
+
selectable: false
|
|
31
|
+
},
|
|
32
|
+
cssProperties: TEXT_CSS_PROPERTIES
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
const manifest = {
|
|
36
|
+
id: "83aedbba-6ee5-4358-8f2b-02683c4e3537",
|
|
37
|
+
type: "wixEditorElements.HeadingTextBlock",
|
|
38
|
+
description: "Semantic heading tag wrapping heading, title, subtitle, and caption in one tag",
|
|
39
|
+
editorElement: {
|
|
40
|
+
selector: getSelector(manifestClasses.root),
|
|
41
|
+
displayName: DisplayNames.root.elementDisplayName,
|
|
42
|
+
archetype: Archetype.Text,
|
|
43
|
+
data: {
|
|
44
|
+
direction: {
|
|
45
|
+
dataType: DATA.DATA_TYPE.direction
|
|
46
|
+
},
|
|
47
|
+
headingTag: {
|
|
48
|
+
dataType: DATA.DATA_TYPE.textEnum,
|
|
49
|
+
displayName: DisplayNames.root.data.headingTag.displayName,
|
|
50
|
+
[DATA.DATA_TYPE.textEnum]: {
|
|
51
|
+
options: [
|
|
52
|
+
{
|
|
53
|
+
value: "h1",
|
|
54
|
+
displayName: DisplayNames.root.data.headingTag.options.h1
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
value: "h2",
|
|
58
|
+
displayName: DisplayNames.root.data.headingTag.options.h2
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
value: "h3",
|
|
62
|
+
displayName: DisplayNames.root.data.headingTag.options.h3
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
value: "h4",
|
|
66
|
+
displayName: DisplayNames.root.data.headingTag.options.h4
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
value: "h5",
|
|
70
|
+
displayName: DisplayNames.root.data.headingTag.options.h5
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
value: "h6",
|
|
74
|
+
displayName: DisplayNames.root.data.headingTag.options.h6
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
defaultValue: defaultValues.headingTag
|
|
79
|
+
},
|
|
80
|
+
heading: {
|
|
81
|
+
dataType: DATA.DATA_TYPE.text,
|
|
82
|
+
displayName: DisplayNames.root.data.heading,
|
|
83
|
+
defaultValue: defaultValues.heading
|
|
84
|
+
},
|
|
85
|
+
title: {
|
|
86
|
+
dataType: DATA.DATA_TYPE.text,
|
|
87
|
+
displayName: DisplayNames.root.data.title,
|
|
88
|
+
defaultValue: defaultValues.title
|
|
89
|
+
},
|
|
90
|
+
subtitle: {
|
|
91
|
+
dataType: DATA.DATA_TYPE.text,
|
|
92
|
+
displayName: DisplayNames.root.data.subtitle,
|
|
93
|
+
defaultValue: defaultValues.subtitle
|
|
94
|
+
},
|
|
95
|
+
caption: {
|
|
96
|
+
dataType: DATA.DATA_TYPE.text,
|
|
97
|
+
displayName: DisplayNames.root.data.caption,
|
|
98
|
+
defaultValue: defaultValues.caption
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
elements: {
|
|
102
|
+
headingTextBlockHeading: createInlineTextPart(
|
|
103
|
+
manifestClasses.heading,
|
|
104
|
+
DisplayNames.root.elements.heading
|
|
105
|
+
),
|
|
106
|
+
headingTextBlockTitle: createInlineTextPart(
|
|
107
|
+
manifestClasses.title,
|
|
108
|
+
DisplayNames.root.elements.title
|
|
109
|
+
),
|
|
110
|
+
headingTextBlockSubtitle: createInlineTextPart(
|
|
111
|
+
manifestClasses.subtitle,
|
|
112
|
+
DisplayNames.root.elements.subtitle
|
|
113
|
+
),
|
|
114
|
+
headingTextBlockCaption: createInlineTextPart(
|
|
115
|
+
manifestClasses.caption,
|
|
116
|
+
DisplayNames.root.elements.caption
|
|
117
|
+
)
|
|
118
|
+
},
|
|
119
|
+
cssCustomProperties: {
|
|
120
|
+
"parts-row-gap": {
|
|
121
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.rowGap,
|
|
122
|
+
defaultValue: defaultValues.partsRowGap
|
|
123
|
+
},
|
|
124
|
+
"parts-column-gap": {
|
|
125
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.columnGap,
|
|
126
|
+
defaultValue: defaultValues.partsColumnGap
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
displayGroups: {
|
|
130
|
+
partsSpacing: {
|
|
131
|
+
displayName: DisplayNames.root.displayGroups.partsSpacing,
|
|
132
|
+
groupType: DISPLAY_GROUPS.GROUP_TYPE.gap,
|
|
133
|
+
gap: {
|
|
134
|
+
rowGap: "parts-row-gap",
|
|
135
|
+
columnGap: "parts-column-gap"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
partsOrder: {
|
|
139
|
+
groupType: DISPLAY_GROUPS.GROUP_TYPE.elements,
|
|
140
|
+
elements: {
|
|
141
|
+
items: [
|
|
142
|
+
"headingTextBlockHeading",
|
|
143
|
+
"headingTextBlockTitle",
|
|
144
|
+
"headingTextBlockSubtitle",
|
|
145
|
+
"headingTextBlockCaption"
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
textFieldsOrder: {
|
|
150
|
+
groupType: DISPLAY_GROUPS.GROUP_TYPE.data,
|
|
151
|
+
data: {
|
|
152
|
+
items: ["heading", "title", "subtitle", "caption"]
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
layout: {
|
|
157
|
+
resizeDirection: LAYOUT.RESIZE_DIRECTION.horizontalAndVertical,
|
|
158
|
+
contentResizeDirection: LAYOUT.CONTENT_RESIZE_DIRECTION.vertical
|
|
159
|
+
},
|
|
160
|
+
presets: {
|
|
161
|
+
[presets.vertical]: {
|
|
162
|
+
presetCssUrl: `./site/components/HeadingTextBlock/presets/${presets.vertical}.css`,
|
|
163
|
+
displayName: DisplayNames.root.presets.vertical,
|
|
164
|
+
presetDefaults: {
|
|
165
|
+
layout: {
|
|
166
|
+
resizeDirection: LAYOUT.RESIZE_DIRECTION.horizontalAndVertical,
|
|
167
|
+
contentResizeDirection: LAYOUT.CONTENT_RESIZE_DIRECTION.vertical
|
|
168
|
+
},
|
|
169
|
+
displayFilters: {
|
|
170
|
+
cssCustomProperties: {
|
|
171
|
+
hide: ["parts-column-gap"]
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
initialSize: {
|
|
176
|
+
width: {
|
|
177
|
+
sizingType: LAYOUT.SIZING_TYPE.pixels,
|
|
178
|
+
pixels: 400
|
|
179
|
+
},
|
|
180
|
+
height: {
|
|
181
|
+
sizingType: LAYOUT.SIZING_TYPE.content
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
[presets.horizontal]: {
|
|
186
|
+
presetCssUrl: `./site/components/HeadingTextBlock/presets/${presets.horizontal}.css`,
|
|
187
|
+
displayName: DisplayNames.root.presets.horizontal,
|
|
188
|
+
presetDefaults: {
|
|
189
|
+
layout: {
|
|
190
|
+
resizeDirection: LAYOUT.RESIZE_DIRECTION.horizontal,
|
|
191
|
+
contentResizeDirection: LAYOUT.CONTENT_RESIZE_DIRECTION.horizontalAndVertical
|
|
192
|
+
},
|
|
193
|
+
displayFilters: {
|
|
194
|
+
cssCustomProperties: {
|
|
195
|
+
hide: ["parts-row-gap"]
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
initialSize: {
|
|
200
|
+
width: {
|
|
201
|
+
sizingType: LAYOUT.SIZING_TYPE.pixels,
|
|
202
|
+
pixels: 400
|
|
203
|
+
},
|
|
204
|
+
height: {
|
|
205
|
+
sizingType: LAYOUT.SIZING_TYPE.content
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
customActions: {
|
|
211
|
+
layout: {
|
|
212
|
+
displayName: DisplayNames.root.customActions.layout,
|
|
213
|
+
execution: {
|
|
214
|
+
actionType: ACTIONS.ACTION_TYPE.panel,
|
|
215
|
+
panel: {
|
|
216
|
+
panelType: ACTIONS.PANEL_TYPE.panelId,
|
|
217
|
+
panelId: ORIENTATION_PANEL_ID
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
installation: {
|
|
224
|
+
presets: {
|
|
225
|
+
large: presets.vertical,
|
|
226
|
+
small: presets.vertical
|
|
227
|
+
},
|
|
228
|
+
initialSize: {
|
|
229
|
+
width: {
|
|
230
|
+
sizingType: LAYOUT.SIZING_TYPE.pixels,
|
|
231
|
+
pixels: 400
|
|
232
|
+
},
|
|
233
|
+
height: {
|
|
234
|
+
sizingType: LAYOUT.SIZING_TYPE.content
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
resources: {
|
|
239
|
+
client: {
|
|
240
|
+
componentUrl: "./site/components/HeadingTextBlock/component.tsx",
|
|
241
|
+
moduleSpecifier: "@wix/editor-react-components/HeadingTextBlock"
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
moduleConfiguration: {
|
|
245
|
+
package: { name: "@wix/editor-react-components", version: "^1.0.0" },
|
|
246
|
+
component: { path: "site/components/HeadingTextBlock" }
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
export {
|
|
250
|
+
manifest as default
|
|
251
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const TranslationKeys: {
|
|
2
|
+
readonly layoutRowOption: "custompanel_headingtextblock_layout_panel_row_option";
|
|
3
|
+
readonly layoutStackedOption: "custompanel_headingtextblock_layout_panel_stacked_option";
|
|
4
|
+
};
|
|
5
|
+
export type Translations = Record<keyof typeof TranslationKeys, string>;
|
|
6
|
+
export declare const DefaultTranslations: Translations;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Direction } from '@wix/editor-react-types';
|
|
2
|
+
export type HeadingTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
3
|
+
export type HeadingTextBlockProps = {
|
|
4
|
+
id: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
direction?: Direction;
|
|
7
|
+
headingTag?: HeadingTag;
|
|
8
|
+
heading?: string;
|
|
9
|
+
title?: string;
|
|
10
|
+
subtitle?: string;
|
|
11
|
+
caption?: string;
|
|
12
|
+
elementProps?: {
|
|
13
|
+
heading?: {
|
|
14
|
+
className?: string;
|
|
15
|
+
};
|
|
16
|
+
title?: {
|
|
17
|
+
className?: string;
|
|
18
|
+
};
|
|
19
|
+
subtitle?: {
|
|
20
|
+
className?: string;
|
|
21
|
+
};
|
|
22
|
+
caption?: {
|
|
23
|
+
className?: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
wix?: {
|
|
27
|
+
presetsWrapperProps?: Record<string, unknown>;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -1,15 +1,64 @@
|
|
|
1
|
-
const
|
|
1
|
+
const presets = {
|
|
2
|
+
horizontal: "horizontal",
|
|
3
|
+
vertical: "vertical"
|
|
4
|
+
};
|
|
5
|
+
const manifestClasses = {
|
|
6
|
+
root: "heading-text-block",
|
|
7
|
+
heading: "heading-text-block-heading",
|
|
8
|
+
title: "heading-text-block-title",
|
|
9
|
+
subtitle: "heading-text-block-subtitle",
|
|
10
|
+
caption: "heading-text-block-caption"
|
|
11
|
+
};
|
|
12
|
+
const defaultValues = {
|
|
13
|
+
headingTag: "h1",
|
|
14
|
+
heading: "",
|
|
15
|
+
title: "",
|
|
16
|
+
subtitle: "",
|
|
17
|
+
caption: "",
|
|
18
|
+
partsRowGap: "12px",
|
|
19
|
+
partsColumnGap: "12px"
|
|
20
|
+
};
|
|
2
21
|
const DisplayNames = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
22
|
+
root: {
|
|
23
|
+
elementDisplayName: "Heading Text Block",
|
|
24
|
+
data: {
|
|
25
|
+
headingTag: {
|
|
26
|
+
displayName: "Heading Tag",
|
|
27
|
+
options: {
|
|
28
|
+
h1: "H1",
|
|
29
|
+
h2: "H2",
|
|
30
|
+
h3: "H3",
|
|
31
|
+
h4: "H4",
|
|
32
|
+
h5: "H5",
|
|
33
|
+
h6: "H6"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
heading: "Heading",
|
|
37
|
+
title: "Title",
|
|
38
|
+
subtitle: "Subtitle",
|
|
39
|
+
caption: "Caption"
|
|
40
|
+
},
|
|
41
|
+
elements: {
|
|
42
|
+
heading: "Heading",
|
|
43
|
+
title: "Title",
|
|
44
|
+
subtitle: "Subtitle",
|
|
45
|
+
caption: "Caption"
|
|
46
|
+
},
|
|
47
|
+
displayGroups: {
|
|
48
|
+
partsSpacing: "Parts Spacing"
|
|
49
|
+
},
|
|
50
|
+
presets: {
|
|
51
|
+
horizontal: "Row",
|
|
52
|
+
vertical: "Stacked"
|
|
53
|
+
},
|
|
54
|
+
customActions: {
|
|
55
|
+
layout: "Layout"
|
|
56
|
+
}
|
|
10
57
|
}
|
|
11
58
|
};
|
|
12
59
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
60
|
+
DisplayNames as D,
|
|
61
|
+
defaultValues as d,
|
|
62
|
+
manifestClasses as m,
|
|
63
|
+
presets as p
|
|
15
64
|
};
|
|
@@ -1,211 +1,15 @@
|
|
|
1
|
-
const
|
|
2
|
-
root: {
|
|
3
|
-
hover: { displayName: "Hover", className: "dropdown--hover" },
|
|
4
|
-
disabled: { displayName: "Disabled", className: "dropdown--disabled" }
|
|
5
|
-
},
|
|
6
|
-
input: {
|
|
7
|
-
hover: { displayName: "Hover", className: "dropdown__input--hover" },
|
|
8
|
-
focus: { displayName: "Focus", className: "dropdown__input--focus" },
|
|
9
|
-
disabled: {
|
|
10
|
-
displayName: "Disabled",
|
|
11
|
-
className: "dropdown__input--disabled"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
trigger: {
|
|
15
|
-
hover: { displayName: "Hover", className: "dropdown__trigger--hover" },
|
|
16
|
-
selected: {
|
|
17
|
-
displayName: "Selected",
|
|
18
|
-
className: "dropdown__trigger--selected"
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
clearButton: {
|
|
22
|
-
hover: { displayName: "Hover", className: "dropdown__clear--hover" },
|
|
23
|
-
selected: {
|
|
24
|
-
displayName: "Selected",
|
|
25
|
-
className: "dropdown__clear--selected"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
option: {
|
|
29
|
-
hover: { displayName: "Hover", className: "dropdown__option--hover" },
|
|
30
|
-
selected: {
|
|
31
|
-
displayName: "Selected",
|
|
32
|
-
className: "dropdown__option--selected"
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
chip: {
|
|
36
|
-
hover: { displayName: "Hover", className: "dropdown__chip--hover" },
|
|
37
|
-
selected: {
|
|
38
|
-
displayName: "Selected",
|
|
39
|
-
className: "dropdown__chip--selected"
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
const FunctionalStateKeys = {
|
|
44
|
-
previewList: "previewList",
|
|
45
|
-
previewChips: "previewChips"
|
|
46
|
-
};
|
|
1
|
+
const ARIA_LABEL_NAMESPACE = "ariaLabels";
|
|
47
2
|
const DisplayNames = {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
values: "Selected values",
|
|
56
|
-
defaultValue: "Default value",
|
|
57
|
-
defaultValues: "Default values",
|
|
58
|
-
inputValue: "Search query",
|
|
59
|
-
open: "Open",
|
|
60
|
-
isDisabled: "Disabled",
|
|
61
|
-
placeholder: "Placeholder",
|
|
62
|
-
searchable: "Allow search",
|
|
63
|
-
multiple: "Allow multiple selection",
|
|
64
|
-
clearable: "Show clear button",
|
|
65
|
-
autoHighlight: "Highlight first match",
|
|
66
|
-
openOnInputClick: "Open list on click",
|
|
67
|
-
inline: "Show options inline",
|
|
68
|
-
grid: "Show options in a grid",
|
|
69
|
-
columns: "Columns",
|
|
70
|
-
limit: "Max visible options",
|
|
71
|
-
label: "Label",
|
|
72
|
-
required: "Required",
|
|
73
|
-
readOnly: "Read only",
|
|
74
|
-
description: "Helper text",
|
|
75
|
-
triggerMode: {
|
|
76
|
-
displayName: "Apply filter",
|
|
77
|
-
options: {
|
|
78
|
-
onSelection: "On selection",
|
|
79
|
-
onApply: "On button click"
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
applyButtonLabel: "Apply button text"
|
|
83
|
-
},
|
|
84
|
-
cssCustomProperties: {
|
|
85
|
-
width: "Width",
|
|
86
|
-
maxWidth: "Max width",
|
|
87
|
-
backgroundColor: "Background",
|
|
88
|
-
borderColor: "Border color",
|
|
89
|
-
borderWidth: "Border width",
|
|
90
|
-
paddingTop: "Padding top",
|
|
91
|
-
paddingBottom: "Padding bottom",
|
|
92
|
-
paddingInlineStart: "Padding start",
|
|
93
|
-
paddingInlineEnd: "Padding end",
|
|
94
|
-
gap: "Spacing",
|
|
95
|
-
boxShadow: "Shadow",
|
|
96
|
-
textAlign: "Value alignment",
|
|
97
|
-
font: "Value font",
|
|
98
|
-
textColor: "Value color",
|
|
99
|
-
labelFont: "Label font",
|
|
100
|
-
labelColor: "Label color",
|
|
101
|
-
helperFont: "Helper text font",
|
|
102
|
-
helperColor: "Helper text color",
|
|
103
|
-
optionTextColor: "Option text color",
|
|
104
|
-
optionHoverBackgroundColor: "Option hover background",
|
|
105
|
-
placeholderColor: "Placeholder color",
|
|
106
|
-
chipBackgroundColor: "Chip background",
|
|
107
|
-
chipTextColor: "Chip text color"
|
|
108
|
-
},
|
|
109
|
-
elements: {
|
|
110
|
-
label: "Label",
|
|
111
|
-
input: "Input",
|
|
112
|
-
trigger: "Button",
|
|
113
|
-
clearButton: "Clear button",
|
|
114
|
-
list: "List",
|
|
115
|
-
option: "Option",
|
|
116
|
-
chip: "Chip"
|
|
117
|
-
},
|
|
118
|
-
displayGroups: {
|
|
119
|
-
optionsGroup: "Manage options",
|
|
120
|
-
sizeGroup: "Size",
|
|
121
|
-
backgroundGroup: "Background",
|
|
122
|
-
cornersGroup: "Corner radius",
|
|
123
|
-
paddingGroup: "Padding"
|
|
124
|
-
}
|
|
3
|
+
data: {
|
|
4
|
+
onClick: "On Click",
|
|
5
|
+
onDblClick: "On Double Click",
|
|
6
|
+
onMouseIn: "On Mouse In",
|
|
7
|
+
onMouseOut: "On Mouse Out",
|
|
8
|
+
onFocus: "On Focus",
|
|
9
|
+
onBlur: "On Blur"
|
|
125
10
|
}
|
|
126
11
|
};
|
|
127
|
-
const defaultValues = {
|
|
128
|
-
placeholder: "Select a value",
|
|
129
|
-
inputValue: "",
|
|
130
|
-
open: false,
|
|
131
|
-
isDisabled: false,
|
|
132
|
-
searchable: false,
|
|
133
|
-
multiple: false,
|
|
134
|
-
clearable: false,
|
|
135
|
-
autoHighlight: false,
|
|
136
|
-
openOnInputClick: true,
|
|
137
|
-
inline: false,
|
|
138
|
-
grid: false,
|
|
139
|
-
columns: 2,
|
|
140
|
-
limit: -1,
|
|
141
|
-
label: "",
|
|
142
|
-
required: false,
|
|
143
|
-
readOnly: false,
|
|
144
|
-
name: "",
|
|
145
|
-
description: "",
|
|
146
|
-
triggerMode: "onSelection",
|
|
147
|
-
applyButtonLabel: "Apply",
|
|
148
|
-
noResultsText: "No results"
|
|
149
|
-
};
|
|
150
|
-
var TriggerModeValues = /* @__PURE__ */ ((TriggerModeValues2) => {
|
|
151
|
-
TriggerModeValues2["OnSelection"] = "onSelection";
|
|
152
|
-
TriggerModeValues2["OnApply"] = "onApply";
|
|
153
|
-
return TriggerModeValues2;
|
|
154
|
-
})(TriggerModeValues || {});
|
|
155
|
-
const ALL_VALUE = "";
|
|
156
|
-
const TestIds = {
|
|
157
|
-
root: "dropdown-root",
|
|
158
|
-
label: "dropdown-label",
|
|
159
|
-
requiredIndicator: "dropdown-required-indicator",
|
|
160
|
-
trigger: "dropdown-trigger",
|
|
161
|
-
listbox: "dropdown-listbox",
|
|
162
|
-
clear: "dropdown-clear",
|
|
163
|
-
applyButton: "dropdown-apply-button",
|
|
164
|
-
description: "dropdown-description",
|
|
165
|
-
errorMessage: "dropdown-error-message"
|
|
166
|
-
};
|
|
167
|
-
const selectors = {
|
|
168
|
-
root: "dropdown",
|
|
169
|
-
label: "dropdown-label",
|
|
170
|
-
input: "dropdown-input",
|
|
171
|
-
trigger: "dropdown-trigger",
|
|
172
|
-
clear: "dropdown-clear",
|
|
173
|
-
list: "dropdown-list",
|
|
174
|
-
option: "dropdown-option",
|
|
175
|
-
chip: "dropdown-chip"
|
|
176
|
-
};
|
|
177
|
-
const semanticClassNames = {
|
|
178
|
-
root: "dropdown",
|
|
179
|
-
label: "dropdown__label",
|
|
180
|
-
requiredIndicator: "dropdown__required-indicator",
|
|
181
|
-
input: "dropdown__input",
|
|
182
|
-
trigger: "dropdown__trigger",
|
|
183
|
-
clear: "dropdown__clear",
|
|
184
|
-
listbox: "dropdown__listbox",
|
|
185
|
-
option: "dropdown__option",
|
|
186
|
-
chips: "dropdown__chips",
|
|
187
|
-
chip: "dropdown__chip",
|
|
188
|
-
applyButton: "dropdown__apply-button",
|
|
189
|
-
errorMessage: "dropdown__error-message"
|
|
190
|
-
};
|
|
191
|
-
const ARIA_LABEL_NAMESPACE = "ariaLabels";
|
|
192
|
-
const AriaLabels = {
|
|
193
|
-
root: { key: "Dropdown_AriaLabel", default: "Dropdown" },
|
|
194
|
-
clear: { key: "Dropdown_AriaLabel_Clear", default: "Clear" },
|
|
195
|
-
removeItem: { key: "Dropdown_AriaLabel_RemoveItem", default: "Remove" }
|
|
196
|
-
};
|
|
197
|
-
const VALUE_MISSING_MESSAGE = "Please select an option.";
|
|
198
12
|
export {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
FunctionalStateKeys as F,
|
|
202
|
-
TestIds as T,
|
|
203
|
-
VALUE_MISSING_MESSAGE as V,
|
|
204
|
-
semanticClassNames as a,
|
|
205
|
-
TriggerModeValues as b,
|
|
206
|
-
ARIA_LABEL_NAMESPACE as c,
|
|
207
|
-
defaultValues as d,
|
|
208
|
-
AriaLabels as e,
|
|
209
|
-
DisplayNames as f,
|
|
210
|
-
selectors as s
|
|
13
|
+
ARIA_LABEL_NAMESPACE as A,
|
|
14
|
+
DisplayNames as D
|
|
211
15
|
};
|