@wix/editor-react-components 1.2280.0 → 1.2282.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 +2 -2
- package/dist/site/components/AnimatedIcon/manifest.js +1 -1
- package/dist/site/components/AudioPlayer/component.js +1 -1
- package/dist/site/components/AudioPlayer/manifest.js +2 -2
- 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 +2 -2
- package/dist/site/components/Breadcrumbs/manifest.js +2 -2
- package/dist/site/components/Button/manifest.js +5 -3
- package/dist/site/components/CollapsibleText/component.js +1 -1
- package/dist/site/components/CollapsibleText/manifest.js +4 -3
- package/dist/site/components/Dropdown/component.js +28 -30348
- package/dist/site/components/Dropdown/manifest.js +2 -2
- package/dist/site/components/GoogleMap/manifest.js +1 -1
- package/dist/site/components/HTMLComponent/component.js +1 -1
- package/dist/site/components/HTMLComponent/manifest.js +1 -1
- package/dist/site/components/HipaaIcon/component.js +1 -1
- package/dist/site/components/HipaaIcon/manifest.js +1 -1
- package/dist/site/components/Image3/manifest.js +3 -1
- package/dist/site/components/Line/manifest.js +3 -1
- package/dist/site/components/LinkBar/component.js +1 -1
- package/dist/site/components/LinkBar/manifest.js +2 -2
- package/dist/site/components/Logo/component.js +1 -1
- package/dist/site/components/Logo/manifest.js +1 -1
- package/dist/site/components/Logo/sdk.js +1 -1
- package/dist/site/components/Lottie/component.js +1 -1
- package/dist/site/components/Lottie/manifest.js +2 -2
- package/dist/site/components/Menu/component.js +2 -2
- package/dist/site/components/Menu/manifest.js +2 -2
- package/dist/site/components/MultiStateBox/component.js +1 -1
- package/dist/site/components/MultiStateBox/manifest.js +2 -2
- package/dist/site/components/ProgressBar/component.js +1 -1
- package/dist/site/components/ProgressBar/manifest.js +1 -1
- package/dist/site/components/ProgressBar/sdk.js +1 -1
- package/dist/site/components/Repeater/component.js +1 -1
- package/dist/site/components/Repeater/manifest.js +1 -1
- package/dist/site/components/ShareButtons/component.js +2 -2
- package/dist/site/components/ShareButtons/manifest.js +2 -2
- package/dist/site/components/SiteLogo/panels/customizeLogo/bi.d.ts +1 -0
- package/dist/site/components/Slideshow/manifest.js +1 -1
- package/dist/site/components/SvgImage/manifest.js +3 -1
- package/dist/site/components/Tabs/component.js +1 -1
- package/dist/site/components/Tabs/manifest.js +2 -2
- package/dist/site/components/TestComp/manifest.js +1 -1
- package/dist/site/components/TextBox/TextBox.d.ts +3 -0
- package/dist/site/components/TextBox/TextBox.types.d.ts +20 -0
- package/dist/site/components/TextBox/component.d.ts +2 -0
- package/dist/site/components/TextBox/component.js +146 -0
- package/dist/site/components/TextBox/component.preview.d.ts +4 -0
- package/dist/site/components/TextBox/constants.d.ts +79 -0
- package/dist/site/components/TextBox/css.css +137 -0
- package/dist/site/components/TextBox/index.d.ts +2 -0
- package/dist/site/components/TextBox/index.js +6 -0
- package/dist/site/components/TextBox/manifest.d.ts +5 -0
- package/dist/site/components/TextBox/manifest.js +219 -0
- package/dist/site/components/WRichText/manifest.js +3 -1
- package/dist/site/components/chunks/AnimatedIcon.js +1 -1
- package/dist/site/components/chunks/Button.js +1 -1
- package/dist/site/components/chunks/constants17.js +67 -17
- package/dist/site/components/chunks/constants18.js +15 -50
- package/dist/site/components/chunks/constants19.js +43 -45
- package/dist/site/components/chunks/constants20.js +48 -297
- package/dist/site/components/chunks/constants21.js +299 -41
- package/dist/site/components/chunks/constants22.js +44 -29
- package/dist/site/components/chunks/constants23.js +32 -17
- package/dist/site/components/chunks/constants24.js +16 -402
- package/dist/site/components/chunks/constants25.js +393 -73
- package/dist/site/components/chunks/constants26.js +80 -15
- package/dist/site/components/chunks/constants27.js +11 -42
- package/dist/site/components/chunks/constants28.js +44 -23
- package/dist/site/components/chunks/constants29.js +28 -10
- package/dist/site/components/chunks/constants30.js +10 -132
- package/dist/site/components/chunks/constants31.js +114 -46
- package/dist/site/components/chunks/constants32.js +53 -71
- package/dist/site/components/chunks/constants33.js +73 -77
- package/dist/site/components/chunks/constants34.js +76 -57
- package/dist/site/components/chunks/constants35.js +72 -0
- package/dist/site/components/chunks/index10.js +30414 -3
- package/dist/site/components/chunks/index11.js +5 -0
- package/dist/site/components/chunks/manifestSdkMixins.js +3 -3
- package/dist/site/components/chunks/utils.js +1 -1
- package/dist/site/components/extensions.js +24 -19
- package/package.json +3 -2
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
.root__dlp5n {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
display: flex;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
max-width: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.field__i7dfL {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.root__dlp5n .field__i7dfL {
|
|
17
|
+
gap: var(--gap, 8px);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.labelRow__qwrwd {
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
align-self: var(--labelAlignment, flex-start);
|
|
24
|
+
gap: 6px;
|
|
25
|
+
max-width: 100%;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.label__GIRwe {
|
|
29
|
+
margin: 0;
|
|
30
|
+
padding: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.tooltipButton__tOobd {
|
|
34
|
+
flex: none;
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
display: inline-flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
width: 16px;
|
|
40
|
+
height: 16px;
|
|
41
|
+
margin: 0;
|
|
42
|
+
padding: 0;
|
|
43
|
+
border: none;
|
|
44
|
+
background: transparent;
|
|
45
|
+
color: inherit;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
opacity: 0.65;
|
|
48
|
+
}
|
|
49
|
+
.tooltipButton__tOobd:hover, .tooltipButton__tOobd:focus-visible {
|
|
50
|
+
opacity: 1;
|
|
51
|
+
}
|
|
52
|
+
.tooltipButton__tOobd:focus-visible {
|
|
53
|
+
outline: none;
|
|
54
|
+
border-radius: 50%;
|
|
55
|
+
box-shadow: 0 0 0 2px #116dff;
|
|
56
|
+
}
|
|
57
|
+
.tooltipButton__tOobd svg {
|
|
58
|
+
width: 16px;
|
|
59
|
+
height: 16px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.tooltip__6OlB9 {
|
|
63
|
+
max-width: 220px;
|
|
64
|
+
padding: 6px 10px;
|
|
65
|
+
font: var(--wst-paragraph-2-font, normal normal normal 12px/1.4em madefor-text, sans-serif);
|
|
66
|
+
color: var(--wst-primary-background-color, #fff);
|
|
67
|
+
background: var(--wst-paragraph-2-color, #2b2b2b);
|
|
68
|
+
border-radius: 6px;
|
|
69
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.input__JG8Be {
|
|
73
|
+
flex: 1 1 auto;
|
|
74
|
+
box-sizing: border-box;
|
|
75
|
+
width: 100%;
|
|
76
|
+
min-height: 0;
|
|
77
|
+
margin: 0;
|
|
78
|
+
resize: none;
|
|
79
|
+
border-style: solid;
|
|
80
|
+
border-color: var(--input-border);
|
|
81
|
+
border-width: var(--borderWidth, 1px);
|
|
82
|
+
font: inherit;
|
|
83
|
+
transition: border-color 0.2s linear;
|
|
84
|
+
--input-border: var(--borderColor, color-mix(in srgb, #000 60%, transparent));
|
|
85
|
+
}
|
|
86
|
+
.input__JG8Be::placeholder {
|
|
87
|
+
color: var(--placeholderTextColor, #939393);
|
|
88
|
+
opacity: 1;
|
|
89
|
+
}
|
|
90
|
+
.input__JG8Be:focus {
|
|
91
|
+
outline: none;
|
|
92
|
+
}
|
|
93
|
+
.input__JG8Be[data-readonly] {
|
|
94
|
+
cursor: default;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.input__JG8Be:hover,
|
|
98
|
+
.root__dlp5n.textbox--hover .input__JG8Be {
|
|
99
|
+
--input-border: var(--borderColor, #000);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.input__JG8Be:focus,
|
|
103
|
+
.root__dlp5n.textbox--focus .input__JG8Be {
|
|
104
|
+
--input-border: var(--borderColor, #116dff);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.input__JG8Be[data-invalid],
|
|
108
|
+
.root__dlp5n.textbox--invalid .input__JG8Be {
|
|
109
|
+
--input-border: var(--borderColor, #e62214);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.input__JG8Be[data-disabled] {
|
|
113
|
+
cursor: default;
|
|
114
|
+
--input-border: var(
|
|
115
|
+
--borderColor,
|
|
116
|
+
color-mix(
|
|
117
|
+
in srgb,
|
|
118
|
+
var(--wst-system-disabled-color, #939393) 60%,
|
|
119
|
+
transparent
|
|
120
|
+
)
|
|
121
|
+
);
|
|
122
|
+
}.textbox {
|
|
123
|
+
--gap: 8px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.textbox__input {
|
|
127
|
+
border-radius: 4px;
|
|
128
|
+
padding: 8px 12px;
|
|
129
|
+
background-color: #fff;
|
|
130
|
+
color: #000;
|
|
131
|
+
}
|
|
132
|
+
.fallbackDirection__HeRgn:not([dir]) {
|
|
133
|
+
direction: var(--wix-opt-in-direction);
|
|
134
|
+
}
|
|
135
|
+
.presetWrapper__J1yzj {
|
|
136
|
+
display: contents;
|
|
137
|
+
}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { E as ELEMENTS, b as DISPLAY_GROUPS, C as CSS_PROPERTIES, N as NativeStateType, D as DATA, L as LAYOUT, A as Archetype } from "../chunks/chunk-JPMZBG44.js";
|
|
2
|
+
import { D as DisplayNames, d as defaultValues, b as DesignStates, s as selectors } from "../chunks/constants17.js";
|
|
3
|
+
import { w as withSpec, g as getSelector } from "../chunks/manifest.js";
|
|
4
|
+
import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
|
|
5
|
+
import { m as manifestFocusable, a as manifestChangeable } from "../chunks/manifestSdkMixins.js";
|
|
6
|
+
const manifest = {
|
|
7
|
+
id: "002d94d7-bec7-4082-8d00-fe4ede12024d",
|
|
8
|
+
type: "wixEditorElements.TextBox__DEV__v3",
|
|
9
|
+
description: "A multi-line text field where visitors can enter longer, free-form text. The value can be set in the editor or bound to a text data-context field.",
|
|
10
|
+
installation: {
|
|
11
|
+
initialSize: {
|
|
12
|
+
width: {
|
|
13
|
+
sizingType: LAYOUT.SIZING_TYPE.pixels,
|
|
14
|
+
pixels: 280
|
|
15
|
+
},
|
|
16
|
+
height: {
|
|
17
|
+
sizingType: LAYOUT.SIZING_TYPE.pixels,
|
|
18
|
+
pixels: 100
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
editorElement: {
|
|
23
|
+
selector: getSelector(selectors.root),
|
|
24
|
+
displayName: DisplayNames.root.elementDisplayName,
|
|
25
|
+
archetype: Archetype.TextInput,
|
|
26
|
+
layout: {
|
|
27
|
+
resizeDirection: LAYOUT.RESIZE_DIRECTION.horizontalAndVertical,
|
|
28
|
+
contentResizeDirection: LAYOUT.CONTENT_RESIZE_DIRECTION.vertical,
|
|
29
|
+
disableStretching: false,
|
|
30
|
+
disablePositioning: false
|
|
31
|
+
},
|
|
32
|
+
data: {
|
|
33
|
+
value: {
|
|
34
|
+
dataType: DATA.DATA_TYPE.text,
|
|
35
|
+
displayName: DisplayNames.root.data.value,
|
|
36
|
+
defaultValue: defaultValues.value,
|
|
37
|
+
[DATA.DATA_TYPE.text]: {
|
|
38
|
+
maxLength: 4e3
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
label: {
|
|
42
|
+
dataType: DATA.DATA_TYPE.text,
|
|
43
|
+
displayName: DisplayNames.root.data.label,
|
|
44
|
+
defaultValue: defaultValues.label,
|
|
45
|
+
[DATA.DATA_TYPE.text]: {
|
|
46
|
+
maxLength: 400
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
tooltip: {
|
|
50
|
+
dataType: DATA.DATA_TYPE.text,
|
|
51
|
+
displayName: DisplayNames.root.data.tooltip,
|
|
52
|
+
defaultValue: defaultValues.tooltip,
|
|
53
|
+
[DATA.DATA_TYPE.text]: {
|
|
54
|
+
maxLength: 400
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
placeholder: {
|
|
58
|
+
dataType: DATA.DATA_TYPE.text,
|
|
59
|
+
displayName: DisplayNames.root.data.placeholder,
|
|
60
|
+
defaultValue: defaultValues.placeholder,
|
|
61
|
+
[DATA.DATA_TYPE.text]: {
|
|
62
|
+
maxLength: 4e3
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
minLength: {
|
|
66
|
+
dataType: DATA.DATA_TYPE.number,
|
|
67
|
+
displayName: DisplayNames.root.data.minLength
|
|
68
|
+
},
|
|
69
|
+
maxLength: {
|
|
70
|
+
dataType: DATA.DATA_TYPE.number,
|
|
71
|
+
displayName: DisplayNames.root.data.maxLength
|
|
72
|
+
},
|
|
73
|
+
required: {
|
|
74
|
+
dataType: DATA.DATA_TYPE.booleanValue,
|
|
75
|
+
displayName: DisplayNames.root.data.required,
|
|
76
|
+
defaultValue: defaultValues.required
|
|
77
|
+
},
|
|
78
|
+
readOnly: {
|
|
79
|
+
dataType: DATA.DATA_TYPE.booleanValue,
|
|
80
|
+
displayName: DisplayNames.root.data.readOnly,
|
|
81
|
+
defaultValue: defaultValues.readOnly
|
|
82
|
+
},
|
|
83
|
+
disabled: {
|
|
84
|
+
dataType: DATA.DATA_TYPE.booleanValue,
|
|
85
|
+
displayName: DisplayNames.root.data.disabled,
|
|
86
|
+
defaultValue: defaultValues.disabled
|
|
87
|
+
},
|
|
88
|
+
a11y: {
|
|
89
|
+
dataType: DATA.DATA_TYPE.a11y,
|
|
90
|
+
[DATA.DATA_TYPE.a11y]: {
|
|
91
|
+
attributes: [DATA.A11Y_ATTRIBUTES.ariaLabel]
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
direction: {
|
|
95
|
+
dataType: DATA.DATA_TYPE.direction
|
|
96
|
+
},
|
|
97
|
+
...manifestChangeable(),
|
|
98
|
+
...manifestFocusable()
|
|
99
|
+
},
|
|
100
|
+
states: {
|
|
101
|
+
hover: withSpec({
|
|
102
|
+
spec: IS_SUPPORT_DESIGN_STATE_SPEC,
|
|
103
|
+
displayName: DesignStates.root.hover.displayName,
|
|
104
|
+
className: DesignStates.root.hover.className,
|
|
105
|
+
pseudoClass: NativeStateType.hover
|
|
106
|
+
}),
|
|
107
|
+
focus: withSpec({
|
|
108
|
+
spec: IS_SUPPORT_DESIGN_STATE_SPEC,
|
|
109
|
+
displayName: DesignStates.root.focus.displayName,
|
|
110
|
+
className: DesignStates.root.focus.className,
|
|
111
|
+
pseudoClass: NativeStateType.focus
|
|
112
|
+
}),
|
|
113
|
+
disabled: withSpec({
|
|
114
|
+
spec: IS_SUPPORT_DESIGN_STATE_SPEC,
|
|
115
|
+
displayName: DesignStates.root.disabled.displayName,
|
|
116
|
+
className: DesignStates.root.disabled.className,
|
|
117
|
+
pseudoClass: NativeStateType.disabled,
|
|
118
|
+
props: { disabled: true }
|
|
119
|
+
}),
|
|
120
|
+
invalid: withSpec({
|
|
121
|
+
spec: IS_SUPPORT_DESIGN_STATE_SPEC,
|
|
122
|
+
displayName: DesignStates.root.invalid.displayName,
|
|
123
|
+
className: DesignStates.root.invalid.className,
|
|
124
|
+
pseudoClass: NativeStateType.invalid
|
|
125
|
+
})
|
|
126
|
+
},
|
|
127
|
+
cssCustomProperties: {
|
|
128
|
+
gap: {
|
|
129
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.rowGap,
|
|
130
|
+
displayName: DisplayNames.root.cssCustomProperties.gap,
|
|
131
|
+
defaultValue: "8px"
|
|
132
|
+
},
|
|
133
|
+
labelAlignment: {
|
|
134
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.justifyContent,
|
|
135
|
+
displayName: DisplayNames.root.cssCustomProperties.labelAlignment
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
elements: {
|
|
139
|
+
input: {
|
|
140
|
+
elementType: ELEMENTS.ELEMENT_TYPE.inlineElement,
|
|
141
|
+
inlineElement: {
|
|
142
|
+
displayName: DisplayNames.input.elementDisplayName,
|
|
143
|
+
selector: getSelector(selectors.input),
|
|
144
|
+
behaviors: {
|
|
145
|
+
selectable: false,
|
|
146
|
+
removable: false
|
|
147
|
+
},
|
|
148
|
+
cssProperties: {
|
|
149
|
+
color: {},
|
|
150
|
+
font: {},
|
|
151
|
+
background: {},
|
|
152
|
+
borderRadius: {
|
|
153
|
+
defaultValue: "4px"
|
|
154
|
+
},
|
|
155
|
+
boxShadow: {}
|
|
156
|
+
},
|
|
157
|
+
cssCustomProperties: {
|
|
158
|
+
placeholderTextColor: {
|
|
159
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.color,
|
|
160
|
+
displayName: DisplayNames.input.cssCustomProperties.placeholderTextColor
|
|
161
|
+
},
|
|
162
|
+
borderColor: {
|
|
163
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.borderColor,
|
|
164
|
+
displayName: DisplayNames.input.cssCustomProperties.borderColor
|
|
165
|
+
},
|
|
166
|
+
borderWidth: {
|
|
167
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.borderWidth,
|
|
168
|
+
displayName: DisplayNames.input.cssCustomProperties.borderWidth,
|
|
169
|
+
defaultValue: "1px"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
displayGroups: {
|
|
173
|
+
borderGroup: {
|
|
174
|
+
displayName: DisplayNames.input.displayGroups.borderGroup,
|
|
175
|
+
groupType: DISPLAY_GROUPS.GROUP_TYPE.border,
|
|
176
|
+
border: {
|
|
177
|
+
color: "borderColor",
|
|
178
|
+
width: "borderWidth"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
label: {
|
|
185
|
+
elementType: ELEMENTS.ELEMENT_TYPE.inlineElement,
|
|
186
|
+
inlineElement: {
|
|
187
|
+
displayName: DisplayNames.label.elementDisplayName,
|
|
188
|
+
selector: getSelector(selectors.label),
|
|
189
|
+
behaviors: {
|
|
190
|
+
selectable: false,
|
|
191
|
+
removable: false
|
|
192
|
+
},
|
|
193
|
+
cssProperties: {
|
|
194
|
+
color: {},
|
|
195
|
+
font: {}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
resources: {
|
|
202
|
+
client: {
|
|
203
|
+
componentUrl: "./site/components/TextBox/component.tsx",
|
|
204
|
+
dependencies: {
|
|
205
|
+
serviceDependencies: ["@wix/viewer-service-environment"]
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
editor: {
|
|
209
|
+
componentUrl: "./site/components/TextBox/component.preview.tsx"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
moduleConfiguration: {
|
|
213
|
+
package: { name: "@wix/editor-react-components", version: "^1.0.0" },
|
|
214
|
+
component: { path: "site/components/TextBox" }
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
export {
|
|
218
|
+
manifest as default
|
|
219
|
+
};
|
|
@@ -74,7 +74,9 @@ const manifest = {
|
|
|
74
74
|
INTERACTIONS.TRIGGER_TYPE.pageVisible,
|
|
75
75
|
INTERACTIONS.TRIGGER_TYPE.animationEnd,
|
|
76
76
|
INTERACTIONS.TRIGGER_TYPE.viewProgress,
|
|
77
|
-
INTERACTIONS.TRIGGER_TYPE.pointerMove
|
|
77
|
+
INTERACTIONS.TRIGGER_TYPE.pointerMove,
|
|
78
|
+
INTERACTIONS.TRIGGER_TYPE.click,
|
|
79
|
+
INTERACTIONS.TRIGGER_TYPE.hover
|
|
78
80
|
],
|
|
79
81
|
effectGroups: [INTERACTIONS.EFFECT_GROUP.UNKNOWN_EFFECT_GROUP]
|
|
80
82
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useRef, useImperativeHandle, useCallback, useMemo } from "react";
|
|
3
3
|
import { p as parseSvg } from "./parseSvg.js";
|
|
4
|
-
import { A as AnimatedSvgIds, a as AnimatedDataAttributes, b as AnimationDirection, T as TestIds, D as DEFAULT_ANIMATION_DURATION } from "./
|
|
4
|
+
import { A as AnimatedSvgIds, a as AnimatedDataAttributes, b as AnimationDirection, T as TestIds, D as DEFAULT_ANIMATION_DURATION } from "./constants20.js";
|
|
5
5
|
import { c as cn } from "./index8.js";
|
|
6
6
|
const AnimatedSvg = forwardRef(
|
|
7
7
|
({ svgContent, reducedMotion = false, duration }, ref) => {
|
|
@@ -7,7 +7,7 @@ import { a as getDataAttributes, g as getQaDataAttributes } from "./dataUtils.js
|
|
|
7
7
|
import { f as formatClassNames } from "./classNames.js";
|
|
8
8
|
import { I as IconAnimationTriggers } from "./Button.types.js";
|
|
9
9
|
import AnimatedIconWithReducedMotion from "../AnimatedIcon/component.js";
|
|
10
|
-
import { T as TRANSITION_DURATION, S as SEMANTIC_CLASS_NAMES, a as TestIds } from "./
|
|
10
|
+
import { T as TRANSITION_DURATION, S as SEMANTIC_CLASS_NAMES, a as TestIds } from "./constants19.js";
|
|
11
11
|
import { d as activateByEnterButton, a as activateBySpaceOrEnterButton, r as removeAriaPrefix, g as getAccessibilityAttributesSpread } from "./a11y.js";
|
|
12
12
|
import { i as isValidLink } from "./Link.js";
|
|
13
13
|
const root = "root__IB9QF";
|
|
@@ -1,24 +1,74 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
const DisplayNames = {
|
|
2
|
+
root: {
|
|
3
|
+
elementDisplayName: "Text Box",
|
|
4
|
+
data: {
|
|
5
|
+
value: "Default text",
|
|
6
|
+
label: "Label",
|
|
7
|
+
tooltip: "Tooltip",
|
|
8
|
+
placeholder: "Placeholder",
|
|
9
|
+
required: "Required",
|
|
10
|
+
readOnly: "Read only",
|
|
11
|
+
disabled: "Disabled",
|
|
12
|
+
minLength: "Minimum characters",
|
|
13
|
+
maxLength: "Maximum characters"
|
|
14
|
+
},
|
|
15
|
+
cssCustomProperties: {
|
|
16
|
+
gap: "Space between label and field",
|
|
17
|
+
labelAlignment: "Label alignment"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
input: {
|
|
21
|
+
elementDisplayName: "Input",
|
|
22
|
+
cssCustomProperties: {
|
|
23
|
+
placeholderTextColor: "Placeholder text color",
|
|
24
|
+
borderColor: "Border color",
|
|
25
|
+
borderWidth: "Border width"
|
|
26
|
+
},
|
|
27
|
+
displayGroups: {
|
|
28
|
+
borderGroup: "Border"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
label: {
|
|
32
|
+
elementDisplayName: "Label"
|
|
33
|
+
}
|
|
13
34
|
};
|
|
14
35
|
const DesignStates = {
|
|
15
36
|
root: {
|
|
16
|
-
hover: { displayName: "Hover", className: "
|
|
17
|
-
|
|
37
|
+
hover: { displayName: "Hover", className: "textbox--hover" },
|
|
38
|
+
focus: { displayName: "Focus", className: "textbox--focus" },
|
|
39
|
+
disabled: { displayName: "Disabled", className: "textbox--disabled" },
|
|
40
|
+
invalid: { displayName: "Error", className: "textbox--invalid" }
|
|
18
41
|
}
|
|
19
42
|
};
|
|
43
|
+
const defaultValues = {
|
|
44
|
+
value: "",
|
|
45
|
+
label: "Label",
|
|
46
|
+
tooltip: "",
|
|
47
|
+
placeholder: "Enter your text here...",
|
|
48
|
+
required: false,
|
|
49
|
+
readOnly: false,
|
|
50
|
+
disabled: false
|
|
51
|
+
};
|
|
52
|
+
const TestIds = {
|
|
53
|
+
root: "textbox-root",
|
|
54
|
+
input: "textbox-input",
|
|
55
|
+
label: "textbox-label",
|
|
56
|
+
tooltipButton: "textbox-tooltip-button"
|
|
57
|
+
};
|
|
58
|
+
const selectors = {
|
|
59
|
+
root: "textbox",
|
|
60
|
+
input: "textbox__input",
|
|
61
|
+
label: "textbox__label"
|
|
62
|
+
};
|
|
63
|
+
const semanticClassNames = {
|
|
64
|
+
input: "textbox__input",
|
|
65
|
+
label: "textbox__label"
|
|
66
|
+
};
|
|
20
67
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
68
|
+
DisplayNames as D,
|
|
69
|
+
TestIds as T,
|
|
70
|
+
semanticClassNames as a,
|
|
71
|
+
DesignStates as b,
|
|
72
|
+
defaultValues as d,
|
|
73
|
+
selectors as s
|
|
24
74
|
};
|
|
@@ -1,59 +1,24 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const classes = {
|
|
2
|
+
tabs: "tabs",
|
|
3
|
+
tabMenu: "tab-menu",
|
|
4
|
+
tabMenuItemsWrapper: "tab-menu-items-wrapper",
|
|
5
|
+
tabMenuItems: "tab-menu-items",
|
|
6
|
+
menuItem: "menu-item",
|
|
7
|
+
scrollButton: "scroll-button",
|
|
8
|
+
tabContentContainer: "tab-content-container",
|
|
9
|
+
tabContentItem: "tab-content-item"
|
|
4
10
|
};
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
root: "button",
|
|
8
|
-
buttonLabel: "button__label"
|
|
11
|
+
const OVERFLOW_BEHAVIOR = {
|
|
12
|
+
WRAP: "wrap"
|
|
9
13
|
};
|
|
10
14
|
const DesignStates = {
|
|
11
15
|
root: {
|
|
12
|
-
hover: { displayName: "Hover", className: "
|
|
13
|
-
disabled: { displayName: "Disabled", className: "
|
|
14
|
-
},
|
|
15
|
-
label: {
|
|
16
|
-
hover: { displayName: "Hover", className: "button__label--hover" },
|
|
17
|
-
disabled: { displayName: "Disabled", className: "button__label--disabled" }
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
const DisplayNames = {
|
|
21
|
-
root: {
|
|
22
|
-
elementDisplayName: "Button",
|
|
23
|
-
data: {
|
|
24
|
-
disabled: "Disabled"
|
|
25
|
-
},
|
|
26
|
-
cssProperties: {
|
|
27
|
-
gap: "Space between text and icon"
|
|
28
|
-
},
|
|
29
|
-
cssCustomProperties: {
|
|
30
|
-
"content-horizontal-alignment": "Alignment",
|
|
31
|
-
"icon-position": "Icon position"
|
|
32
|
-
},
|
|
33
|
-
presets: {
|
|
34
|
-
baseButton: "Base Button"
|
|
35
|
-
},
|
|
36
|
-
iconPosition: {
|
|
37
|
-
beforeText: "Before text",
|
|
38
|
-
afterText: "After text",
|
|
39
|
-
belowText: "Below text",
|
|
40
|
-
aboveText: "Above text"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
label: {
|
|
44
|
-
elementDisplayName: "Text",
|
|
45
|
-
cssProperties: {
|
|
46
|
-
font: "Typography"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
data: {
|
|
50
|
-
iconCollapsed: "Display icon"
|
|
16
|
+
hover: { displayName: "Hover", className: "tabs--hover" },
|
|
17
|
+
disabled: { displayName: "Disabled", className: "tabs--disabled" }
|
|
51
18
|
}
|
|
52
19
|
};
|
|
53
20
|
export {
|
|
54
21
|
DesignStates as D,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
TestIds as a,
|
|
58
|
-
DisplayNames as b
|
|
22
|
+
OVERFLOW_BEHAVIOR as O,
|
|
23
|
+
classes as c
|
|
59
24
|
};
|
|
@@ -1,61 +1,59 @@
|
|
|
1
|
-
const DEFAULT_ANIMATION_DURATION = 0.2;
|
|
2
|
-
const AnimatedSvgIds = {
|
|
3
|
-
animatedSvg: "animatedSvg",
|
|
4
|
-
animatedTagPath: "animatedPath",
|
|
5
|
-
animateTagForward: "animateForward",
|
|
6
|
-
animateTagBackward: "animateBackward"
|
|
7
|
-
};
|
|
8
|
-
var AnimationDirection = /* @__PURE__ */ ((AnimationDirection2) => {
|
|
9
|
-
AnimationDirection2["FORWARD"] = "Forward";
|
|
10
|
-
AnimationDirection2["BACKWARD"] = "Backward";
|
|
11
|
-
return AnimationDirection2;
|
|
12
|
-
})(AnimationDirection || {});
|
|
13
|
-
const AnimatedDataAttributes = {
|
|
14
|
-
[
|
|
15
|
-
"Forward"
|
|
16
|
-
/* FORWARD */
|
|
17
|
-
]: "data-animated-end-path",
|
|
18
|
-
[
|
|
19
|
-
"Backward"
|
|
20
|
-
/* BACKWARD */
|
|
21
|
-
]: "data-animated-start-path"
|
|
22
|
-
};
|
|
23
1
|
const TestIds = {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
2
|
+
buttonContent: "buttonContent",
|
|
3
|
+
buttonLabel: "stylablebutton-label"
|
|
4
|
+
};
|
|
5
|
+
const TRANSITION_DURATION = 400;
|
|
6
|
+
const SEMANTIC_CLASS_NAMES = {
|
|
7
|
+
root: "button",
|
|
8
|
+
buttonLabel: "button__label"
|
|
27
9
|
};
|
|
28
10
|
const DesignStates = {
|
|
29
11
|
root: {
|
|
30
|
-
hover: { displayName: "Hover", className: "
|
|
31
|
-
disabled: { displayName: "Disabled", className: "
|
|
32
|
-
|
|
12
|
+
hover: { displayName: "Hover", className: "button--hover" },
|
|
13
|
+
disabled: { displayName: "Disabled", className: "button--disabled" }
|
|
14
|
+
},
|
|
15
|
+
label: {
|
|
16
|
+
hover: { displayName: "Hover", className: "button__label--hover" },
|
|
17
|
+
disabled: { displayName: "Disabled", className: "button__label--disabled" }
|
|
33
18
|
}
|
|
34
19
|
};
|
|
35
20
|
const DisplayNames = {
|
|
36
21
|
root: {
|
|
37
|
-
elementDisplayName: "
|
|
38
|
-
customActions: {
|
|
39
|
-
animatedIcon: {
|
|
40
|
-
displayName: "Icon"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
22
|
+
elementDisplayName: "Button",
|
|
43
23
|
data: {
|
|
44
|
-
|
|
24
|
+
disabled: "Disabled"
|
|
25
|
+
},
|
|
26
|
+
cssProperties: {
|
|
27
|
+
gap: "Space between text and icon"
|
|
45
28
|
},
|
|
46
29
|
cssCustomProperties: {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
30
|
+
"content-horizontal-alignment": "Alignment",
|
|
31
|
+
"icon-position": "Icon position"
|
|
32
|
+
},
|
|
33
|
+
presets: {
|
|
34
|
+
baseButton: "Base Button"
|
|
35
|
+
},
|
|
36
|
+
iconPosition: {
|
|
37
|
+
beforeText: "Before text",
|
|
38
|
+
afterText: "After text",
|
|
39
|
+
belowText: "Below text",
|
|
40
|
+
aboveText: "Above text"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
label: {
|
|
44
|
+
elementDisplayName: "Text",
|
|
45
|
+
cssProperties: {
|
|
46
|
+
font: "Typography"
|
|
50
47
|
}
|
|
48
|
+
},
|
|
49
|
+
data: {
|
|
50
|
+
iconCollapsed: "Display icon"
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
export {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
DesignStates as c,
|
|
60
|
-
DisplayNames as d
|
|
54
|
+
DesignStates as D,
|
|
55
|
+
SEMANTIC_CLASS_NAMES as S,
|
|
56
|
+
TRANSITION_DURATION as T,
|
|
57
|
+
TestIds as a,
|
|
58
|
+
DisplayNames as b
|
|
61
59
|
};
|