@wix/editor-react-components 1.2288.0 → 1.2290.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 (155) hide show
  1. package/dist/site/components/AccordionComponent/component.js +1 -1
  2. package/dist/site/components/AccordionComponent/manifest.js +1 -1
  3. package/dist/site/components/AnimatedIcon/manifest.js +1 -1
  4. package/dist/site/components/AudioPlayer/component.js +14 -1112
  5. package/dist/site/components/AudioPlayer/manifest.js +1 -1
  6. package/dist/site/components/BoxContainer/component.js +1 -1
  7. package/dist/site/components/BoxContainer/manifest.js +1 -1
  8. package/dist/site/components/Breadcrumbs/component.js +3 -117
  9. package/dist/site/components/Breadcrumbs/manifest.js +1 -1
  10. package/dist/site/components/Button/manifest.js +1 -1
  11. package/dist/site/components/CollapsibleText/component.js +1 -1
  12. package/dist/site/components/CollapsibleText/manifest.js +1 -1
  13. package/dist/site/components/DatePicker/DatePicker.d.ts +3 -0
  14. package/dist/site/components/DatePicker/DatePicker.types.d.ts +91 -0
  15. package/dist/site/components/DatePicker/component.d.ts +2 -0
  16. package/dist/site/components/DatePicker/component.js +5644 -0
  17. package/dist/site/components/DatePicker/component.preview.d.ts +2 -0
  18. package/dist/site/components/DatePicker/components/DatePickerCalendar.d.ts +5 -0
  19. package/dist/site/components/DatePicker/components/DatePickerField.d.ts +6 -0
  20. package/dist/site/components/DatePicker/components/DatePickerLabel.d.ts +6 -0
  21. package/dist/site/components/DatePicker/components/DatePickerTooltip.d.ts +5 -0
  22. package/dist/site/components/DatePicker/constants.d.ts +177 -0
  23. package/dist/site/components/DatePicker/css.css +349 -0
  24. package/dist/site/components/DatePicker/datePickerUtils.d.ts +26 -0
  25. package/dist/site/components/DatePicker/hooks/useDateConstraints.d.ts +12 -0
  26. package/dist/site/components/DatePicker/hooks/useDatePickerValue.d.ts +15 -0
  27. package/dist/site/components/DatePicker/hooks/useUnavailableDates.d.ts +3 -0
  28. package/dist/site/components/DatePicker/index.d.ts +2 -0
  29. package/dist/site/components/DatePicker/index.js +6 -0
  30. package/dist/site/components/DatePicker/manifest.d.ts +5 -0
  31. package/dist/site/components/DatePicker/manifest.js +370 -0
  32. package/dist/site/components/Dropdown/component.js +2 -4
  33. package/dist/site/components/Dropdown/manifest.js +1 -1
  34. package/dist/site/components/HTMLComponent/component.js +1 -1
  35. package/dist/site/components/HipaaIcon/component.js +1 -1
  36. package/dist/site/components/HipaaIcon/manifest.js +1 -1
  37. package/dist/site/components/LinkBar/component.js +1 -1
  38. package/dist/site/components/LinkBar/manifest.js +1 -1
  39. package/dist/site/components/Logo/component.js +1 -1
  40. package/dist/site/components/Logo/manifest.js +1 -1
  41. package/dist/site/components/Logo/sdk.js +1 -1
  42. package/dist/site/components/Lottie/component.js +1 -1
  43. package/dist/site/components/Lottie/manifest.js +1 -1
  44. package/dist/site/components/Menu/component.js +1 -1
  45. package/dist/site/components/Menu/manifest.js +1 -1
  46. package/dist/site/components/MultiStateBox/component.js +1 -1
  47. package/dist/site/components/MultiStateBox/manifest.js +1 -1
  48. package/dist/site/components/ProgressBar/component.js +1 -1
  49. package/dist/site/components/ProgressBar/manifest.js +1 -1
  50. package/dist/site/components/ProgressBar/sdk.js +1 -1
  51. package/dist/site/components/Repeater/component.js +1 -1
  52. package/dist/site/components/Repeater/manifest.js +1 -1
  53. package/dist/site/components/ShareButtons/component.js +1 -1
  54. package/dist/site/components/ShareButtons/manifest.js +1 -1
  55. package/dist/site/components/Tabs/component.js +1 -1
  56. package/dist/site/components/Tabs/manifest.js +1 -1
  57. package/dist/site/components/TextBox/component.js +2 -5
  58. package/dist/site/components/TextBox/manifest.js +1 -1
  59. package/dist/site/components/TextEffects3d/component.js +1 -1
  60. package/dist/site/components/TextEffects3d/manifest.js +1 -1
  61. package/dist/site/components/TextEffectsBauhaus/component.js +1 -1
  62. package/dist/site/components/TextEffectsBauhaus/manifest.js +1 -1
  63. package/dist/site/components/TextEffectsGlass/component.js +1 -1
  64. package/dist/site/components/TextEffectsGlass/manifest.js +1 -1
  65. package/dist/site/components/TextEffectsGlitch/component.js +1 -1
  66. package/dist/site/components/TextEffectsGlitch/manifest.js +1 -1
  67. package/dist/site/components/TextEffectsLetterPress/component.js +1 -1
  68. package/dist/site/components/TextEffectsLetterPress/manifest.js +1 -1
  69. package/dist/site/components/TextEffectsMatrix/component.js +1 -1
  70. package/dist/site/components/TextEffectsMatrix/manifest.js +1 -1
  71. package/dist/site/components/TextEffectsNeonSign/component.js +1 -1
  72. package/dist/site/components/TextEffectsNeonSign/manifest.js +1 -1
  73. package/dist/site/components/TextEffectsNoisy/component.js +1 -1
  74. package/dist/site/components/TextEffectsNoisy/manifest.js +1 -1
  75. package/dist/site/components/TextEffectsOutlineOut/component.js +2 -2
  76. package/dist/site/components/TextEffectsOutlineOut/manifest.js +1 -1
  77. package/dist/site/components/TextEffectsRetro/component.js +1 -1
  78. package/dist/site/components/TextEffectsRetro/manifest.js +1 -1
  79. package/dist/site/components/TextEffectsShook/component.js +1 -1
  80. package/dist/site/components/TextEffectsShook/manifest.js +1 -1
  81. package/dist/site/components/TextEffectsSticker/component.js +1 -1
  82. package/dist/site/components/TextEffectsSticker/manifest.js +2 -2
  83. package/dist/site/components/TextEffectsStriped/component.js +1 -1
  84. package/dist/site/components/TextEffectsStriped/manifest.js +1 -1
  85. package/dist/site/components/TextInput/component.js +173 -465
  86. package/dist/site/components/TextInput/manifest.js +1 -1
  87. package/dist/site/components/TimePicker/TimePicker.d.ts +3 -0
  88. package/dist/site/components/TimePicker/TimePicker.types.d.ts +29 -0
  89. package/dist/site/components/TimePicker/component.d.ts +2 -0
  90. package/dist/site/components/TimePicker/component.js +146 -0
  91. package/dist/site/components/TimePicker/component.preview.d.ts +2 -0
  92. package/dist/site/components/TimePicker/components/TimePickerField.d.ts +4 -0
  93. package/dist/site/components/TimePicker/constants.d.ts +32 -0
  94. package/dist/site/components/TimePicker/css.css +64 -0
  95. package/dist/site/components/TimePicker/hooks/useTimePickerValue.d.ts +10 -0
  96. package/dist/site/components/TimePicker/index.d.ts +2 -0
  97. package/dist/site/components/TimePicker/index.js +6 -0
  98. package/dist/site/components/TimePicker/manifest.d.ts +5 -0
  99. package/dist/site/components/TimePicker/manifest.js +113 -0
  100. package/dist/site/components/TimePicker/timePickerUtils.d.ts +15 -0
  101. package/dist/site/components/chunks/AnimatedIcon.js +1 -1
  102. package/dist/site/components/chunks/Button.js +1 -1
  103. package/dist/site/components/chunks/Button2.js +299 -0
  104. package/dist/site/components/chunks/DateField.js +6763 -0
  105. package/dist/site/components/chunks/DismissSmall.js +7 -0
  106. package/dist/site/components/chunks/Group.js +60 -101
  107. package/dist/site/components/chunks/I18nProvider.js +32 -2
  108. package/dist/site/components/chunks/InfoCircleSmall.js +7 -0
  109. package/dist/site/components/chunks/Input.js +341 -0
  110. package/dist/site/components/chunks/Patterns.js +1 -1
  111. package/dist/site/components/chunks/TextEffectsShared.js +1 -1
  112. package/dist/site/components/chunks/constants10.js +14 -12
  113. package/dist/site/components/chunks/constants11.js +9 -9
  114. package/dist/site/components/chunks/constants12.js +10 -8
  115. package/dist/site/components/chunks/constants13.js +9 -13
  116. package/dist/site/components/chunks/constants14.js +14 -17
  117. package/dist/site/components/chunks/constants15.js +17 -12
  118. package/dist/site/components/chunks/constants16.js +11 -13
  119. package/dist/site/components/chunks/constants17.js +20 -66
  120. package/dist/site/components/chunks/constants18.js +67 -17
  121. package/dist/site/components/chunks/constants19.js +15 -50
  122. package/dist/site/components/chunks/constants2.js +30 -50
  123. package/dist/site/components/chunks/constants20.js +43 -45
  124. package/dist/site/components/chunks/constants21.js +48 -297
  125. package/dist/site/components/chunks/constants22.js +299 -41
  126. package/dist/site/components/chunks/constants23.js +44 -29
  127. package/dist/site/components/chunks/constants24.js +32 -17
  128. package/dist/site/components/chunks/constants25.js +16 -402
  129. package/dist/site/components/chunks/constants26.js +393 -73
  130. package/dist/site/components/chunks/constants27.js +80 -15
  131. package/dist/site/components/chunks/constants28.js +11 -42
  132. package/dist/site/components/chunks/constants29.js +44 -23
  133. package/dist/site/components/chunks/constants3.js +49 -14
  134. package/dist/site/components/chunks/constants30.js +28 -10
  135. package/dist/site/components/chunks/constants31.js +10 -132
  136. package/dist/site/components/chunks/constants32.js +114 -46
  137. package/dist/site/components/chunks/constants33.js +154 -69
  138. package/dist/site/components/chunks/constants34.js +59 -81
  139. package/dist/site/components/chunks/constants35.js +73 -58
  140. package/dist/site/components/chunks/constants36.js +91 -0
  141. package/dist/site/components/chunks/constants37.js +72 -0
  142. package/dist/site/components/chunks/constants4.js +10 -19
  143. package/dist/site/components/chunks/constants5.js +14 -14
  144. package/dist/site/components/chunks/constants6.js +11 -10
  145. package/dist/site/components/chunks/constants7.js +14 -14
  146. package/dist/site/components/chunks/constants8.js +22 -65
  147. package/dist/site/components/chunks/constants9.js +65 -20
  148. package/dist/site/components/chunks/filterDOMProps.js +15 -9
  149. package/dist/site/components/chunks/manifestBase.js +1 -1
  150. package/dist/site/components/chunks/useFocusable.js +118 -0
  151. package/dist/site/components/chunks/useLocalizedStringFormatter.js +122 -0
  152. package/dist/site/components/chunks/usePress.js +825 -0
  153. package/dist/site/components/chunks/utils.js +1 -1
  154. package/dist/site/components/extensions.js +59 -49
  155. package/package.json +4 -3
@@ -1,33 +1,54 @@
1
- const HIPAA_SETTINGS_PANEL_ID = "e4a7c1d3-8f2b-4e6a-9d5c-3b1f7a2e8c4d";
1
+ const presets = {
2
+ horizontal: "horizontal",
3
+ vertical: "vertical"
4
+ };
2
5
  const DisplayNames = {
3
6
  root: {
4
- elementDisplayName: "HIPAA Certification",
7
+ elementDisplayName: "Social Bar",
8
+ presets: {
9
+ horizontal: "Horizontal",
10
+ vertical: "Vertical"
11
+ },
12
+ cssCustomProperties: {
13
+ "item-size": "Size",
14
+ "row-gap": "Vertical space between icons",
15
+ "column-gap": "Horizontal space between icons",
16
+ "justify-content": "Alignment"
17
+ },
18
+ data: {
19
+ items: "Social",
20
+ icon: "Icon",
21
+ link: "Links to"
22
+ },
23
+ actions: {
24
+ manageItems: "Manage Social Bar"
25
+ },
5
26
  customActions: {
6
- hipaaSettings: "HIPAA Settings"
27
+ orientation: "Change Orientation"
7
28
  },
8
- cssProperties: {
9
- color: "Icon Color",
10
- backgroundColor: "Background Color"
29
+ displayGroups: {
30
+ gapGroup: {
31
+ displayName: "Space between icons"
32
+ },
33
+ iconsGroup: {
34
+ displayName: "Icons"
35
+ }
11
36
  }
12
37
  }
13
38
  };
14
- const TRANSLATIONS_NAMESPACE = "hipaaIcon";
15
- const TranslationKeys = {
16
- ariaLabelCompliant: "hipaaIcon_aria_label_compliant",
17
- ariaLabelActivate: "hipaaIcon_aria_label_activate",
18
- activateHeading: "hipaaIcon_activate_heading",
19
- activateDescription: "hipaaIcon_activate_description"
20
- };
21
- const DefaultTranslations = {
22
- ariaLabelCompliant: "HIPAA Compliant",
23
- ariaLabelActivate: "HIPAA Certification",
24
- activateHeading: "Activate HIPAA",
25
- activateDescription: "Go to Manage > Purchase & Activate HIPAA Compliance"
39
+ const DesignStates = {
40
+ root: {
41
+ hover: { displayName: "Hover", className: "link-bar--hover" }
42
+ }
26
43
  };
44
+ const ARIA_LABEL_NAMESPACE = "ariaLabels";
45
+ const ARIA_LABEL_KEY = "LinkBar_AriaLabel_SocialBarContainer";
46
+ const ARIA_LABEL_DEFAULT = "Social Bar";
27
47
  export {
28
- DefaultTranslations as D,
29
- HIPAA_SETTINGS_PANEL_ID as H,
30
- TranslationKeys as T,
31
- TRANSLATIONS_NAMESPACE as a,
32
- DisplayNames as b
48
+ ARIA_LABEL_NAMESPACE as A,
49
+ DesignStates as D,
50
+ ARIA_LABEL_KEY as a,
51
+ ARIA_LABEL_DEFAULT as b,
52
+ DisplayNames as c,
53
+ presets as p
33
54
  };
@@ -1,22 +1,57 @@
1
- import { S as SharedDisplayNames } from "./constants8.js";
2
- const TestIds = {
3
- viewer: {
4
- container: "TextEffectsStriped-container",
5
- text: "TextEffectsStriped-text"
6
- }
1
+ const selectors = {
2
+ root: "textInput"
7
3
  };
8
4
  const DisplayNames = {
9
- ...SharedDisplayNames,
5
+ root: {
6
+ elementDisplayName: "TextInput"
7
+ },
10
8
  cssCustomProperties: {
11
- stripeAngle: "Angle",
12
- stripeSize: "Size",
13
- innerAnimationSpeed: "Speed",
14
- disableInnerAnimation: "Animation",
15
- textEffectsColor1: "Color 1",
16
- textEffectsColor2: "Color 2"
9
+ textColor: "Text color",
10
+ placeholderTextColor: "Placeholder text color",
11
+ requiredTextColor: "Required text color",
12
+ prefixFont: "Prefix font",
13
+ labelFont: "Label font",
14
+ labelTextColor: "Label text color",
15
+ labelMarginBottom: "Label bottom margin",
16
+ labelPaddingInlineStart: "Label left padding",
17
+ labelPaddingInlineEnd: "Label right padding",
18
+ align: "Alignment",
19
+ labelAlign: "Label alignment",
20
+ inputAlign: "Input alignment"
21
+ },
22
+ data: {
23
+ labelDirection: "Label direction",
24
+ inputDirection: "Input direction",
25
+ inputType: "Input type",
26
+ maxLength: "Maximum length",
27
+ min: "Minimum value",
28
+ max: "Maximum value",
29
+ pattern: "Pattern validation",
30
+ phoneFormat: "Phone format",
31
+ label: "Label text",
32
+ placeholder: "Placeholder text",
33
+ autoComplete: "Autocomplete",
34
+ readOnly: "Read only",
35
+ required: "Required",
36
+ errorMessageType: "Error message format",
37
+ prefix: "Prefix",
38
+ step: "Step"
39
+ },
40
+ options: {
41
+ text: "Text",
42
+ number: "Number",
43
+ email: "Email",
44
+ url: "URL",
45
+ tel: "Phone number",
46
+ password: "Password",
47
+ center: "Center",
48
+ start: "Left",
49
+ end: "Right",
50
+ inline: "Inline",
51
+ tooltip: "Tooltip"
17
52
  }
18
53
  };
19
54
  export {
20
55
  DisplayNames as D,
21
- TestIds as T
56
+ selectors as s
22
57
  };
@@ -1,15 +1,33 @@
1
- const ARIA_LABEL_NAMESPACE = "ariaLabels";
1
+ const HIPAA_SETTINGS_PANEL_ID = "e4a7c1d3-8f2b-4e6a-9d5c-3b1f7a2e8c4d";
2
2
  const DisplayNames = {
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"
3
+ root: {
4
+ elementDisplayName: "HIPAA Certification",
5
+ customActions: {
6
+ hipaaSettings: "HIPAA Settings"
7
+ },
8
+ cssProperties: {
9
+ color: "Icon Color",
10
+ backgroundColor: "Background Color"
11
+ }
10
12
  }
11
13
  };
14
+ const TRANSLATIONS_NAMESPACE = "hipaaIcon";
15
+ const TranslationKeys = {
16
+ ariaLabelCompliant: "hipaaIcon_aria_label_compliant",
17
+ ariaLabelActivate: "hipaaIcon_aria_label_activate",
18
+ activateHeading: "hipaaIcon_activate_heading",
19
+ activateDescription: "hipaaIcon_activate_description"
20
+ };
21
+ const DefaultTranslations = {
22
+ ariaLabelCompliant: "HIPAA Compliant",
23
+ ariaLabelActivate: "HIPAA Certification",
24
+ activateHeading: "Activate HIPAA",
25
+ activateDescription: "Go to Manage > Purchase & Activate HIPAA Compliance"
26
+ };
12
27
  export {
13
- ARIA_LABEL_NAMESPACE as A,
14
- DisplayNames as D
28
+ DefaultTranslations as D,
29
+ HIPAA_SETTINGS_PANEL_ID as H,
30
+ TranslationKeys as T,
31
+ TRANSLATIONS_NAMESPACE as a,
32
+ DisplayNames as b
15
33
  };
@@ -1,137 +1,15 @@
1
- const DesignStates = {
2
- root: {
3
- hover: { displayName: "Hover", className: "dropdown--hover" },
4
- disabled: { displayName: "Disabled", className: "dropdown--disabled" }
5
- }
6
- };
1
+ const ARIA_LABEL_NAMESPACE = "ariaLabels";
7
2
  const DisplayNames = {
8
- root: {
9
- elementDisplayName: "Dropdown",
10
- data: {
11
- options: "Options",
12
- optionLabel: "Label",
13
- optionValue: "Value",
14
- value: "Selected value",
15
- values: "Selected values",
16
- inputValue: "Search query",
17
- open: "Open",
18
- isDisabled: "Disabled",
19
- placeholder: "Placeholder",
20
- searchable: "Allow search",
21
- multiple: "Allow multiple selection",
22
- clearable: "Show clear button",
23
- autoHighlight: "Highlight first match",
24
- openOnInputClick: "Open list on click",
25
- inline: "Show options inline",
26
- grid: "Show options in a grid",
27
- columns: "Columns",
28
- limit: "Max visible options",
29
- label: "Label",
30
- required: "Required",
31
- readOnly: "Read only",
32
- description: "Helper text",
33
- triggerMode: {
34
- displayName: "Apply filter",
35
- options: {
36
- onSelection: "On selection",
37
- onApply: "On button click"
38
- }
39
- },
40
- applyButtonLabel: "Apply button text"
41
- },
42
- cssCustomProperties: {
43
- width: "Width",
44
- maxWidth: "Max width",
45
- backgroundColor: "Background",
46
- borderColor: "Border color",
47
- borderWidth: "Border width",
48
- paddingTop: "Padding top",
49
- paddingBottom: "Padding bottom",
50
- paddingInlineStart: "Padding start",
51
- paddingInlineEnd: "Padding end",
52
- gap: "Spacing",
53
- textAlign: "Value alignment",
54
- font: "Value font",
55
- textColor: "Value color",
56
- labelFont: "Label font",
57
- labelColor: "Label color",
58
- helperFont: "Helper text font",
59
- helperColor: "Helper text color",
60
- optionTextColor: "Option text color",
61
- optionHoverBackgroundColor: "Option hover background"
62
- },
63
- displayGroups: {
64
- optionsGroup: "Manage options",
65
- sizeGroup: "Size",
66
- backgroundGroup: "Background",
67
- cornersGroup: "Corner radius",
68
- paddingGroup: "Padding"
69
- }
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"
70
10
  }
71
11
  };
72
- const defaultValues = {
73
- placeholder: "Select a value",
74
- inputValue: "",
75
- open: false,
76
- isDisabled: false,
77
- searchable: false,
78
- multiple: false,
79
- clearable: false,
80
- autoHighlight: false,
81
- openOnInputClick: true,
82
- inline: false,
83
- grid: false,
84
- columns: 3,
85
- limit: -1,
86
- label: "",
87
- required: false,
88
- readOnly: false,
89
- name: "",
90
- description: "",
91
- triggerMode: "onSelection",
92
- applyButtonLabel: "Apply",
93
- noResultsText: "No results"
94
- };
95
- var TriggerModeValues = /* @__PURE__ */ ((TriggerModeValues2) => {
96
- TriggerModeValues2["OnSelection"] = "onSelection";
97
- TriggerModeValues2["OnApply"] = "onApply";
98
- return TriggerModeValues2;
99
- })(TriggerModeValues || {});
100
- const ALL_VALUE = "";
101
- const TestIds = {
102
- root: "dropdown-root",
103
- label: "dropdown-label",
104
- trigger: "dropdown-trigger",
105
- listbox: "dropdown-listbox",
106
- clear: "dropdown-clear",
107
- applyButton: "dropdown-apply-button",
108
- description: "dropdown-description"
109
- };
110
- const selectors = {
111
- root: "dropdown"
112
- };
113
- const semanticClassNames = {
114
- root: "dropdown",
115
- trigger: "dropdown__trigger",
116
- listbox: "dropdown__listbox",
117
- option: "dropdown__option",
118
- applyButton: "dropdown__apply-button"
119
- };
120
- const ARIA_LABEL_NAMESPACE = "ariaLabels";
121
- const AriaLabels = {
122
- root: { key: "Dropdown_AriaLabel", default: "Dropdown" },
123
- clear: { key: "Dropdown_AriaLabel_Clear", default: "Clear" },
124
- removeItem: { key: "Dropdown_AriaLabel_RemoveItem", default: "Remove" }
125
- };
126
12
  export {
127
- ALL_VALUE as A,
128
- DesignStates as D,
129
- TestIds as T,
130
- TriggerModeValues as a,
131
- ARIA_LABEL_NAMESPACE as b,
132
- AriaLabels as c,
133
- defaultValues as d,
134
- selectors as e,
135
- DisplayNames as f,
136
- semanticClassNames as s
13
+ ARIA_LABEL_NAMESPACE as A,
14
+ DisplayNames as D
137
15
  };
@@ -1,69 +1,137 @@
1
- const manifestClasses = {
2
- root: "collapsible-text",
3
- text: "text",
4
- expandControl: "expand-control"
1
+ const DesignStates = {
2
+ root: {
3
+ hover: { displayName: "Hover", className: "dropdown--hover" },
4
+ disabled: { displayName: "Disabled", className: "dropdown--disabled" }
5
+ }
5
6
  };
6
7
  const DisplayNames = {
7
8
  root: {
8
- elementDisplayName: "Collapsible Text",
9
- actions: {
10
- settings: "Settings",
11
- design: "Design"
12
- },
9
+ elementDisplayName: "Dropdown",
13
10
  data: {
14
- expandMode: {
15
- displayName: "Choose what the button does",
11
+ options: "Options",
12
+ optionLabel: "Label",
13
+ optionValue: "Value",
14
+ value: "Selected value",
15
+ values: "Selected values",
16
+ inputValue: "Search query",
17
+ open: "Open",
18
+ isDisabled: "Disabled",
19
+ placeholder: "Placeholder",
20
+ searchable: "Allow search",
21
+ multiple: "Allow multiple selection",
22
+ clearable: "Show clear button",
23
+ autoHighlight: "Highlight first match",
24
+ openOnInputClick: "Open list on click",
25
+ inline: "Show options inline",
26
+ grid: "Show options in a grid",
27
+ columns: "Columns",
28
+ limit: "Max visible options",
29
+ label: "Label",
30
+ required: "Required",
31
+ readOnly: "Read only",
32
+ description: "Helper text",
33
+ triggerMode: {
34
+ displayName: "Apply filter",
16
35
  options: {
17
- button: "Expands",
18
- link: "Links"
36
+ onSelection: "On selection",
37
+ onApply: "On button click"
19
38
  }
20
39
  },
21
- text: "Text",
22
- readMoreText: "Expand button text",
23
- readLessText: "Collapse button text",
24
- linkText: "Link text"
25
- },
26
- elements: {
27
- text: "Text",
28
- button: "Button"
40
+ applyButtonLabel: "Apply button text"
29
41
  },
30
42
  cssCustomProperties: {
31
- maxLines: "Lines displayed",
32
- expandControlSpacing: "Space between text and button",
33
- paragraphAlign: "Paragraph Alignment",
34
- textColor: "Text color",
35
- textFont: "Font",
36
- textLineHeight: "Line spacing",
37
- textTextDecoration: "Text Decoration",
38
- textTextTransform: "Case"
43
+ width: "Width",
44
+ maxWidth: "Max width",
45
+ backgroundColor: "Background",
46
+ borderColor: "Border color",
47
+ borderWidth: "Border width",
48
+ paddingTop: "Padding top",
49
+ paddingBottom: "Padding bottom",
50
+ paddingInlineStart: "Padding start",
51
+ paddingInlineEnd: "Padding end",
52
+ gap: "Spacing",
53
+ textAlign: "Value alignment",
54
+ font: "Value font",
55
+ textColor: "Value color",
56
+ labelFont: "Label font",
57
+ labelColor: "Label color",
58
+ helperFont: "Helper text font",
59
+ helperColor: "Helper text color",
60
+ optionTextColor: "Option text color",
61
+ optionHoverBackgroundColor: "Option hover background"
62
+ },
63
+ displayGroups: {
64
+ optionsGroup: "Manage options",
65
+ sizeGroup: "Size",
66
+ backgroundGroup: "Background",
67
+ cornersGroup: "Corner radius",
68
+ paddingGroup: "Padding"
39
69
  }
40
70
  }
41
71
  };
42
72
  const defaultValues = {
43
- expandMode: "button"
73
+ placeholder: "Select a value",
74
+ inputValue: "",
75
+ open: false,
76
+ isDisabled: false,
77
+ searchable: false,
78
+ multiple: false,
79
+ clearable: false,
80
+ autoHighlight: false,
81
+ openOnInputClick: true,
82
+ inline: false,
83
+ grid: false,
84
+ columns: 3,
85
+ limit: -1,
86
+ label: "",
87
+ required: false,
88
+ readOnly: false,
89
+ name: "",
90
+ description: "",
91
+ triggerMode: "onSelection",
92
+ applyButtonLabel: "Apply",
93
+ noResultsText: "No results"
44
94
  };
45
- var ExpandModeValues = /* @__PURE__ */ ((ExpandModeValues2) => {
46
- ExpandModeValues2["Link"] = "link";
47
- ExpandModeValues2["Expand"] = "button";
48
- return ExpandModeValues2;
49
- })(ExpandModeValues || {});
95
+ var TriggerModeValues = /* @__PURE__ */ ((TriggerModeValues2) => {
96
+ TriggerModeValues2["OnSelection"] = "onSelection";
97
+ TriggerModeValues2["OnApply"] = "onApply";
98
+ return TriggerModeValues2;
99
+ })(TriggerModeValues || {});
100
+ const ALL_VALUE = "";
50
101
  const TestIds = {
51
- root: "collapsible-text-root",
52
- textWrapper: "collapsible-text-text-wrapper"
102
+ root: "dropdown-root",
103
+ label: "dropdown-label",
104
+ trigger: "dropdown-trigger",
105
+ listbox: "dropdown-listbox",
106
+ clear: "dropdown-clear",
107
+ applyButton: "dropdown-apply-button",
108
+ description: "dropdown-description"
109
+ };
110
+ const selectors = {
111
+ root: "dropdown"
53
112
  };
54
- const FALLBACK_LINE_HEIGHT = 22.4;
55
- const LINE_HEIGHT_ROUNDING_ERROR_TOLERANCE = 1;
56
113
  const semanticClassNames = {
57
- root: "collapsible-text",
58
- text: "collapsible-text__text"
114
+ root: "dropdown",
115
+ trigger: "dropdown__trigger",
116
+ listbox: "dropdown__listbox",
117
+ option: "dropdown__option",
118
+ applyButton: "dropdown__apply-button"
119
+ };
120
+ const ARIA_LABEL_NAMESPACE = "ariaLabels";
121
+ const AriaLabels = {
122
+ root: { key: "Dropdown_AriaLabel", default: "Dropdown" },
123
+ clear: { key: "Dropdown_AriaLabel_Clear", default: "Clear" },
124
+ removeItem: { key: "Dropdown_AriaLabel_RemoveItem", default: "Remove" }
59
125
  };
60
126
  export {
61
- DisplayNames as D,
62
- ExpandModeValues as E,
63
- FALLBACK_LINE_HEIGHT as F,
64
- LINE_HEIGHT_ROUNDING_ERROR_TOLERANCE as L,
127
+ ALL_VALUE as A,
128
+ DesignStates as D,
65
129
  TestIds as T,
130
+ TriggerModeValues as a,
131
+ ARIA_LABEL_NAMESPACE as b,
132
+ AriaLabels as c,
66
133
  defaultValues as d,
67
- manifestClasses as m,
134
+ selectors as e,
135
+ DisplayNames as f,
68
136
  semanticClassNames as s
69
137
  };