@wix/editor-react-components 1.2884.0 → 1.2886.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.
Files changed (41) hide show
  1. package/dist/site/components/Combobox/Combobox.d.ts +3 -0
  2. package/dist/site/components/{Dropdown/Dropdown.types.d.ts → Combobox/Combobox.types.d.ts} +8 -8
  3. package/dist/site/components/Combobox/component.d.ts +2 -0
  4. package/dist/site/components/{Dropdown → Combobox}/component.js +65 -58
  5. package/dist/site/components/{Dropdown → Combobox}/constants.d.ts +21 -21
  6. package/dist/site/components/{Dropdown → Combobox}/css.css +20 -20
  7. package/dist/site/components/Combobox/index.d.ts +2 -0
  8. package/dist/site/components/Combobox/index.js +6 -0
  9. package/dist/site/components/{Dropdown → Combobox}/manifest.js +12 -11
  10. package/dist/site/components/DatePicker/component.js +2 -2
  11. package/dist/site/components/DatePicker/constants.d.ts +1 -1
  12. package/dist/site/components/DatePicker/manifest.js +4 -3
  13. package/dist/site/components/TextField/TextField.d.ts +4 -0
  14. package/dist/site/components/{TextInput/TextInput.types.d.ts → TextField/TextField.types.d.ts} +4 -4
  15. package/dist/site/components/TextField/component.d.ts +1 -0
  16. package/dist/site/components/{TextInput → TextField}/component.js +8 -8
  17. package/dist/site/components/TextField/component.preview.d.ts +1 -0
  18. package/dist/site/components/{TextInput → TextField}/constants.d.ts +9 -9
  19. package/dist/site/components/{TextInput → TextField}/css.css +10 -10
  20. package/dist/site/components/TextField/index.d.ts +2 -0
  21. package/dist/site/components/TextField/index.js +6 -0
  22. package/dist/site/components/{TextInput → TextField}/manifest.js +12 -11
  23. package/dist/site/components/TimePicker/constants.d.ts +1 -1
  24. package/dist/site/components/TimePicker/manifest.js +2 -1
  25. package/dist/site/components/chunks/constants2.js +1 -1
  26. package/dist/site/components/chunks/constants3.js +10 -10
  27. package/dist/site/components/chunks/constants36.js +138 -70
  28. package/dist/site/components/chunks/constants37.js +70 -138
  29. package/dist/site/components/extensions.js +4 -4
  30. package/package.json +2 -2
  31. package/dist/site/components/Dropdown/Dropdown.d.ts +0 -3
  32. package/dist/site/components/Dropdown/component.d.ts +0 -2
  33. package/dist/site/components/Dropdown/index.d.ts +0 -2
  34. package/dist/site/components/Dropdown/index.js +0 -6
  35. package/dist/site/components/TextInput/TextInput.d.ts +0 -4
  36. package/dist/site/components/TextInput/component.d.ts +0 -1
  37. package/dist/site/components/TextInput/component.preview.d.ts +0 -1
  38. package/dist/site/components/TextInput/index.d.ts +0 -2
  39. package/dist/site/components/TextInput/index.js +0 -6
  40. /package/dist/site/components/{Dropdown → Combobox}/manifest.d.ts +0 -0
  41. /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 = "root__zQlRz";
182
- const inputWrapper = "inputWrapper__2KDrH";
183
- const input = "input__fyTfx";
184
- const label = "label__mbGIM";
185
- const helperText = "helperText__SfMAH";
186
- const errorMessage = "errorMessage__4XDzv";
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 TextInput = (props) => {
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
- TextInput as default
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-input";
3
- readonly label: "text-input-label";
4
- readonly input: "text-input-input";
5
- readonly helperText: "text-input-helper";
6
- readonly errorMessage: "text-input-error-message";
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: "textInput__input--hover";
15
+ readonly className: "textField__input--hover";
16
16
  };
17
17
  readonly focus: {
18
18
  readonly displayName: "Focus";
19
- readonly className: "textInput__input--focus";
19
+ readonly className: "textField__input--focus";
20
20
  };
21
21
  readonly error: {
22
22
  readonly displayName: "Error";
23
- readonly className: "textInput__input--error";
23
+ readonly className: "textField__input--error";
24
24
  };
25
25
  readonly disabled: {
26
26
  readonly displayName: "Disabled";
27
- readonly className: "textInput__input--disabled";
27
+ readonly className: "textField__input--disabled";
28
28
  };
29
29
  };
30
30
  };
@@ -1,14 +1,14 @@
1
- .root__zQlRz {
1
+ .root__Y9X01 {
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  min-width: max-content !important;
5
5
  }
6
- .root__zQlRz .inputWrapper__2KDrH {
6
+ .root__Y9X01 .inputWrapper__V6hJ5 {
7
7
  flex: 1;
8
8
  display: flex;
9
9
  position: relative;
10
10
  }
11
- .root__zQlRz .input__fyTfx {
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
- .root__zQlRz .input__fyTfx::placeholder {
21
+ .root__Y9X01 .input__vXtLV::placeholder {
22
22
  color: var(--placeholderTextColor);
23
23
  opacity: 1;
24
24
  }
25
- .root__zQlRz .input__fyTfx:disabled, .root__zQlRz .input__fyTfx.textInput__input--disabled {
25
+ .root__Y9X01 .input__vXtLV:disabled, .root__Y9X01 .input__vXtLV.textField__input--disabled {
26
26
  cursor: not-allowed;
27
27
  }
28
- .root__zQlRz .label__mbGIM,
29
- .root__zQlRz .helperText__SfMAH,
30
- .root__zQlRz .errorMessage__4XDzv {
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
- .root__zQlRz .helperText__SfMAH,
36
- .root__zQlRz .errorMessage__4XDzv {
35
+ .root__Y9X01 .helperText__9ngR5,
36
+ .root__Y9X01 .errorMessage__42dH- {
37
37
  margin-inline: 0;
38
38
  margin-bottom: 0;
39
39
  }
@@ -0,0 +1,2 @@
1
+ export * from './component';
2
+ export { default, default as TextField } from './component';
@@ -0,0 +1,6 @@
1
+ 'use client';
2
+
3
+ import TextField from './component.js';
4
+
5
+ export { TextField };
6
+ export default TextField;
@@ -8,11 +8,11 @@ const designState = (s, pseudoClass) => ({
8
8
  ...pseudoClass ? { pseudoClass } : {}
9
9
  });
10
10
  const manifest = {
11
- id: "e4b0ddb2-7550-46ef-bdc9-8d72d7e8519b",
12
- type: "wixEditorElements.TextInput__DEV__v6",
13
- description: "TextInput",
11
+ id: "f1b7ccea-ee58-4f52-a1f8-bdb036749bd7",
12
+ type: "wixEditorElements.TextField",
13
+ description: "TextField",
14
14
  installation: {
15
- presets: { small: "baseTextInput", large: "baseTextInput" },
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/TextInput/component.tsx",
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/TextInput/component.preview.tsx",
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
- baseTextInput: {
52
- displayName: "Base Text Input",
53
- presetCssUrl: "./site/components/TextInput/presets/baseTextInput.css",
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: "TextInput" },
369
- cssFile: { path: "TextInput/css" }
369
+ component: { path: "TextField" },
370
+ cssFile: { path: "TextField/css" }
370
371
  }
371
372
  };
372
373
  export {
@@ -1,4 +1,4 @@
1
- export declare const COMPONENT_TYPE = "wixEditorElements.TimePicker__DEV__v8";
1
+ export declare const COMPONENT_TYPE = "wixEditorElements.TimePicker";
2
2
  export declare const DisplayNames: {
3
3
  root: {
4
4
  elementDisplayName: string;
@@ -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: "bf0b381a-2eb3-46bc-b76f-0ea73689a67a",
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,4 +1,4 @@
1
- const COMPONENT_TYPE = "wixEditorElements.TimePicker__DEV__v8";
1
+ const COMPONENT_TYPE = "wixEditorElements.TimePicker";
2
2
  const DisplayNames = {
3
3
  root: {
4
4
  elementDisplayName: "Time Picker",
@@ -1,27 +1,27 @@
1
1
  const componentClassNames = {
2
- root: "text-input",
3
- label: "text-input-label",
4
- input: "text-input-input",
5
- helperText: "text-input-helper",
6
- errorMessage: "text-input-error-message"
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: "textInput__input--hover" },
14
- focus: { displayName: "Focus", className: "textInput__input--focus" },
15
- error: { displayName: "Error", className: "textInput__input--error" },
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: "textInput__input--disabled"
18
+ className: "textField__input--disabled"
19
19
  }
20
20
  }
21
21
  };
22
22
  const DisplayNames = {
23
23
  root: {
24
- elementDisplayName: "TextInput",
24
+ elementDisplayName: "TextField",
25
25
  elements: {
26
26
  label: "Label",
27
27
  input: "Input",
@@ -1,97 +1,165 @@
1
- const COMPONENT_TYPE = "wixEditorElements.Dropdown__DEV__v6";
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: "Dropdown",
4
+ elementDisplayName: "Date Picker",
27
5
  data: {
28
- options: "Options",
29
- optionLabel: "Label",
30
- optionValue: "Value",
31
- value: "Selected value",
32
- disabled: "Disabled",
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
- // Tooltip copy for the Design panel's info icon on these data props —
40
- // https://wix.slack.com/archives/C0BBFFEG6HL/p1791456026776399
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
- cssCustomProperties: {
47
- placeholderColor: "Placeholder color",
48
- optionsGap: "Space between options"
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
- presets: {
59
- baseDropdown: "Base Dropdown"
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
- displayGroups: {
62
- optionsGroup: "Manage options"
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 TestIds = {
67
- root: "dropdown-root",
68
- label: "dropdown-label",
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: "Dropdown_AriaLabel",
86
- default: "Dropdown"
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
- AriaLabels as A,
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
- DisplayNames as a,
96
- editorElementClassNames as e
160
+ AriaLabels as a,
161
+ DisplayNames as b,
162
+ Descriptions as c,
163
+ defaultValues as d,
164
+ selectors as s
97
165
  };