@wix/editor-react-components 1.2289.0 → 1.2291.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 (145) hide show
  1. package/dist/site/components/AccordionComponent/component.js +1 -1
  2. package/dist/site/components/AccordionComponent/manifest.js +2 -2
  3. package/dist/site/components/AnimatedIcon/manifest.js +1 -1
  4. package/dist/site/components/AudioPlayer/component.js +12 -10
  5. package/dist/site/components/AudioPlayer/manifest.js +2 -2
  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 +2 -2
  9. package/dist/site/components/Breadcrumbs/manifest.js +2 -2
  10. package/dist/site/components/Button/manifest.js +2 -2
  11. package/dist/site/components/CollapsibleText/component.js +1 -1
  12. package/dist/site/components/CollapsibleText/manifest.js +2 -2
  13. package/dist/site/components/DatePicker/component.js +3290 -9827
  14. package/dist/site/components/DatePicker/manifest.js +1 -1
  15. package/dist/site/components/Dropdown/component.js +1 -1
  16. package/dist/site/components/Dropdown/manifest.js +2 -2
  17. package/dist/site/components/GoogleMap/manifest.js +1 -1
  18. package/dist/site/components/HTMLComponent/component.js +1 -1
  19. package/dist/site/components/HTMLComponent/manifest.js +1 -1
  20. package/dist/site/components/HipaaIcon/component.js +1 -1
  21. package/dist/site/components/HipaaIcon/manifest.js +1 -1
  22. package/dist/site/components/LinkBar/component.js +1 -1
  23. package/dist/site/components/LinkBar/manifest.js +2 -2
  24. package/dist/site/components/Logo/component.js +1 -1
  25. package/dist/site/components/Logo/manifest.js +1 -1
  26. package/dist/site/components/Logo/sdk.js +1 -1
  27. package/dist/site/components/Lottie/component.js +1 -1
  28. package/dist/site/components/Lottie/manifest.js +2 -2
  29. package/dist/site/components/Menu/component.js +1 -1
  30. package/dist/site/components/Menu/manifest.js +2 -2
  31. package/dist/site/components/MultiStateBox/component.js +1 -1
  32. package/dist/site/components/MultiStateBox/manifest.js +2 -2
  33. package/dist/site/components/ProgressBar/component.js +1 -1
  34. package/dist/site/components/ProgressBar/manifest.js +1 -1
  35. package/dist/site/components/ProgressBar/sdk.js +1 -1
  36. package/dist/site/components/Repeater/component.js +1 -1
  37. package/dist/site/components/Repeater/manifest.js +1 -1
  38. package/dist/site/components/ShareButtons/component.js +1 -1
  39. package/dist/site/components/ShareButtons/manifest.js +2 -2
  40. package/dist/site/components/Slideshow/manifest.js +1 -1
  41. package/dist/site/components/Tabs/component.js +1 -1
  42. package/dist/site/components/Tabs/manifest.js +2 -2
  43. package/dist/site/components/TestComp/manifest.js +1 -1
  44. package/dist/site/components/TextBox/component.js +1 -1
  45. package/dist/site/components/TextBox/manifest.js +1 -1
  46. package/dist/site/components/TextEffects3d/component.js +1 -1
  47. package/dist/site/components/TextEffects3d/manifest.js +1 -1
  48. package/dist/site/components/TextEffectsBauhaus/component.js +1 -1
  49. package/dist/site/components/TextEffectsBauhaus/manifest.js +1 -1
  50. package/dist/site/components/TextEffectsGlass/component.js +1 -1
  51. package/dist/site/components/TextEffectsGlass/manifest.js +1 -1
  52. package/dist/site/components/TextEffectsGlitch/component.js +1 -1
  53. package/dist/site/components/TextEffectsGlitch/manifest.js +1 -1
  54. package/dist/site/components/TextEffectsLetterPress/component.js +1 -1
  55. package/dist/site/components/TextEffectsLetterPress/manifest.js +1 -1
  56. package/dist/site/components/TextEffectsMatrix/component.js +1 -1
  57. package/dist/site/components/TextEffectsMatrix/manifest.js +1 -1
  58. package/dist/site/components/TextEffectsNeonSign/component.js +1 -1
  59. package/dist/site/components/TextEffectsNeonSign/manifest.js +1 -1
  60. package/dist/site/components/TextEffectsNoisy/component.js +1 -1
  61. package/dist/site/components/TextEffectsNoisy/manifest.js +1 -1
  62. package/dist/site/components/TextEffectsOutlineOut/component.js +2 -2
  63. package/dist/site/components/TextEffectsOutlineOut/manifest.js +1 -1
  64. package/dist/site/components/TextEffectsRetro/component.js +1 -1
  65. package/dist/site/components/TextEffectsRetro/manifest.js +1 -1
  66. package/dist/site/components/TextEffectsShook/component.js +1 -1
  67. package/dist/site/components/TextEffectsShook/manifest.js +1 -1
  68. package/dist/site/components/TextEffectsSticker/component.js +1 -1
  69. package/dist/site/components/TextEffectsSticker/manifest.js +2 -2
  70. package/dist/site/components/TextEffectsStriped/component.js +1 -1
  71. package/dist/site/components/TextEffectsStriped/manifest.js +1 -1
  72. package/dist/site/components/TextInput/TextInput.types.d.ts +3 -0
  73. package/dist/site/components/TextInput/component.js +190 -179
  74. package/dist/site/components/TextInput/component.preview.d.ts +4 -0
  75. package/dist/site/components/TextInput/constants.d.ts +27 -0
  76. package/dist/site/components/TextInput/css.css +36 -13
  77. package/dist/site/components/TextInput/manifest.js +103 -4
  78. package/dist/site/components/TimePicker/TimePicker.d.ts +3 -0
  79. package/dist/site/components/TimePicker/TimePicker.types.d.ts +29 -0
  80. package/dist/site/components/TimePicker/component.d.ts +2 -0
  81. package/dist/site/components/TimePicker/component.js +146 -0
  82. package/dist/site/components/TimePicker/component.preview.d.ts +2 -0
  83. package/dist/site/components/TimePicker/components/TimePickerField.d.ts +4 -0
  84. package/dist/site/components/TimePicker/constants.d.ts +32 -0
  85. package/dist/site/components/TimePicker/css.css +64 -0
  86. package/dist/site/components/TimePicker/hooks/useTimePickerValue.d.ts +10 -0
  87. package/dist/site/components/TimePicker/index.d.ts +2 -0
  88. package/dist/site/components/TimePicker/index.js +6 -0
  89. package/dist/site/components/TimePicker/manifest.d.ts +5 -0
  90. package/dist/site/components/TimePicker/manifest.js +113 -0
  91. package/dist/site/components/TimePicker/timePickerUtils.d.ts +15 -0
  92. package/dist/site/components/chunks/AnimatedIcon.js +1 -1
  93. package/dist/site/components/chunks/Button.js +1 -1
  94. package/dist/site/components/chunks/Button2.js +10 -829
  95. package/dist/site/components/chunks/DateField.js +6763 -0
  96. package/dist/site/components/chunks/Group.js +42 -155
  97. package/dist/site/components/chunks/I18nProvider.js +3 -3
  98. package/dist/site/components/chunks/Input.js +5 -5
  99. package/dist/site/components/chunks/Patterns.js +1 -1
  100. package/dist/site/components/chunks/TextEffectsShared.js +1 -1
  101. package/dist/site/components/chunks/constants10.js +14 -12
  102. package/dist/site/components/chunks/constants11.js +9 -9
  103. package/dist/site/components/chunks/constants12.js +10 -8
  104. package/dist/site/components/chunks/constants13.js +9 -13
  105. package/dist/site/components/chunks/constants14.js +14 -17
  106. package/dist/site/components/chunks/constants15.js +17 -12
  107. package/dist/site/components/chunks/constants16.js +11 -13
  108. package/dist/site/components/chunks/constants17.js +20 -66
  109. package/dist/site/components/chunks/constants18.js +66 -16
  110. package/dist/site/components/chunks/constants19.js +15 -50
  111. package/dist/site/components/chunks/constants2.js +30 -50
  112. package/dist/site/components/chunks/constants20.js +43 -45
  113. package/dist/site/components/chunks/constants21.js +48 -297
  114. package/dist/site/components/chunks/constants22.js +299 -41
  115. package/dist/site/components/chunks/constants23.js +44 -29
  116. package/dist/site/components/chunks/constants24.js +32 -17
  117. package/dist/site/components/chunks/constants25.js +16 -402
  118. package/dist/site/components/chunks/constants26.js +393 -73
  119. package/dist/site/components/chunks/constants27.js +80 -15
  120. package/dist/site/components/chunks/constants28.js +11 -42
  121. package/dist/site/components/chunks/constants29.js +44 -23
  122. package/dist/site/components/chunks/constants3.js +64 -13
  123. package/dist/site/components/chunks/constants30.js +28 -10
  124. package/dist/site/components/chunks/constants31.js +10 -132
  125. package/dist/site/components/chunks/constants32.js +112 -147
  126. package/dist/site/components/chunks/constants33.js +152 -49
  127. package/dist/site/components/chunks/constants34.js +53 -71
  128. package/dist/site/components/chunks/constants35.js +73 -77
  129. package/dist/site/components/chunks/constants36.js +76 -57
  130. package/dist/site/components/chunks/constants37.js +72 -0
  131. package/dist/site/components/chunks/constants4.js +10 -19
  132. package/dist/site/components/chunks/constants5.js +14 -14
  133. package/dist/site/components/chunks/constants6.js +11 -10
  134. package/dist/site/components/chunks/constants7.js +14 -14
  135. package/dist/site/components/chunks/constants8.js +22 -65
  136. package/dist/site/components/chunks/constants9.js +65 -20
  137. package/dist/site/components/chunks/filterDOMProps.js +7 -7
  138. package/dist/site/components/chunks/manifestBase.js +1 -1
  139. package/dist/site/components/chunks/manifestSdkMixins.js +3 -3
  140. package/dist/site/components/chunks/useFocusable.js +118 -0
  141. package/dist/site/components/chunks/useLocalizedStringFormatter.js +1 -1
  142. package/dist/site/components/chunks/usePress.js +825 -0
  143. package/dist/site/components/chunks/utils.js +1 -1
  144. package/dist/site/components/extensions.js +9 -4
  145. package/package.json +3 -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,73 @@
1
- import { S as SharedDisplayNames } from "./constants8.js";
2
- const TestIds = {
3
- viewer: {
4
- container: "TextEffectsStriped-container",
5
- text: "TextEffectsStriped-text"
1
+ const selectors = {
2
+ root: "textInput"
3
+ };
4
+ const DesignStates = {
5
+ root: {
6
+ hover: { displayName: "Hover", className: "textInput--hover" },
7
+ focus: { displayName: "Focus", className: "textInput--focus" },
8
+ error: { displayName: "Error", className: "textInput--error" },
9
+ disabled: { displayName: "Disabled", className: "textInput--disabled" }
6
10
  }
7
11
  };
8
12
  const DisplayNames = {
9
- ...SharedDisplayNames,
13
+ root: {
14
+ elementDisplayName: "TextInput"
15
+ },
10
16
  cssCustomProperties: {
11
- stripeAngle: "Angle",
12
- stripeSize: "Size",
13
- innerAnimationSpeed: "Speed",
14
- disableInnerAnimation: "Animation",
15
- textEffectsColor1: "Color 1",
16
- textEffectsColor2: "Color 2"
17
+ textColor: "Text color",
18
+ placeholderTextColor: "Placeholder text color",
19
+ requiredTextColor: "Required text color",
20
+ prefixFont: "Prefix font",
21
+ labelFont: "Label font",
22
+ labelTextColor: "Label text color",
23
+ labelMarginBottom: "Label bottom margin",
24
+ labelPaddingInlineStart: "Label left padding",
25
+ labelPaddingInlineEnd: "Label right padding",
26
+ align: "Alignment",
27
+ labelAlign: "Label alignment",
28
+ inputAlign: "Input alignment"
29
+ },
30
+ data: {
31
+ value: "Value",
32
+ isDisabled: "Disabled",
33
+ name: "Name",
34
+ minLength: "Minimum length",
35
+ autocompleteToken: "Autocomplete type",
36
+ numberSpinnerHidden: "Hide number spinner",
37
+ labelDirection: "Label direction",
38
+ inputDirection: "Input direction",
39
+ inputType: "Input type",
40
+ maxLength: "Maximum length",
41
+ min: "Minimum value",
42
+ max: "Maximum value",
43
+ pattern: "Pattern validation",
44
+ phoneFormat: "Phone format",
45
+ label: "Label text",
46
+ placeholder: "Placeholder text",
47
+ tooltip: "Tooltip",
48
+ autoComplete: "Autocomplete",
49
+ readOnly: "Read only",
50
+ required: "Required",
51
+ errorMessageType: "Error message format",
52
+ prefix: "Prefix",
53
+ step: "Step"
54
+ },
55
+ options: {
56
+ text: "Text",
57
+ number: "Number",
58
+ email: "Email",
59
+ url: "URL",
60
+ tel: "Phone number",
61
+ password: "Password",
62
+ center: "Center",
63
+ start: "Left",
64
+ end: "Right",
65
+ inline: "Inline",
66
+ tooltip: "Tooltip"
17
67
  }
18
68
  };
19
69
  export {
20
70
  DisplayNames as D,
21
- TestIds as T
71
+ DesignStates as a,
72
+ selectors as s
22
73
  };
@@ -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,172 +1,137 @@
1
+ const DesignStates = {
2
+ root: {
3
+ hover: { displayName: "Hover", className: "dropdown--hover" },
4
+ disabled: { displayName: "Disabled", className: "dropdown--disabled" }
5
+ }
6
+ };
1
7
  const DisplayNames = {
2
8
  root: {
3
- elementDisplayName: "Date Picker",
9
+ elementDisplayName: "Dropdown",
4
10
  data: {
5
- value: "Selected date",
6
- endValue: "Selected end date",
7
- onEndChange: "On End Change",
8
- selectionMode: {
9
- displayName: "Selection",
10
- options: {
11
- single: "Single date",
12
- range: "Date range"
13
- }
14
- },
15
- granularity: {
16
- displayName: "Time precision",
17
- options: {
18
- day: "Date only",
19
- hour: "Date and hour",
20
- minute: "Date and time"
21
- }
22
- },
23
- tooltip: "Tooltip",
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",
24
29
  label: "Label",
25
- description: "Helper text",
26
- minDate: "Earliest date",
27
- maxDate: "Latest date",
28
- unavailableDates: "Unavailable dates",
29
- unavailableFrom: "From",
30
- unavailableTo: "To",
31
- allowPastDates: "Allow past dates",
32
- allowFutureDates: "Allow future dates",
33
30
  required: "Required",
34
31
  readOnly: "Read only",
35
- disabled: "Disabled",
36
- clearable: "Show clear button"
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"
37
41
  },
38
- designStates: {
39
- hover: "Hover",
40
- focus: "Focus",
41
- disabled: "Disabled",
42
- selected: "Selected"
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"
43
62
  },
44
- elements: {
45
- label: "Label",
46
- dateInput: "Date input",
47
- calendarButton: "Calendar button",
48
- popover: "Popover",
49
- calendar: "Calendar",
50
- calendarDay: "Calendar day",
51
- today: "Today"
63
+ displayGroups: {
64
+ optionsGroup: "Manage options",
65
+ sizeGroup: "Size",
66
+ backgroundGroup: "Background",
67
+ cornersGroup: "Corner radius",
68
+ paddingGroup: "Padding"
52
69
  }
53
70
  }
54
71
  };
55
72
  const defaultValues = {
56
- selectionMode: "single",
57
- granularity: "day",
58
- tooltip: "",
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,
59
86
  label: "",
60
- description: "",
61
- allowPastDates: true,
62
- allowFutureDates: true,
63
87
  required: false,
64
88
  readOnly: false,
65
- disabled: false,
66
- clearable: false
67
- };
68
- var SelectionModeValues = /* @__PURE__ */ ((SelectionModeValues2) => {
69
- SelectionModeValues2["Single"] = "single";
70
- SelectionModeValues2["Range"] = "range";
71
- return SelectionModeValues2;
72
- })(SelectionModeValues || {});
73
- var GranularityValues = /* @__PURE__ */ ((GranularityValues2) => {
74
- GranularityValues2["Day"] = "day";
75
- GranularityValues2["Hour"] = "hour";
76
- GranularityValues2["Minute"] = "minute";
77
- return GranularityValues2;
78
- })(GranularityValues || {});
79
- const DesignStates = {
80
- root: {
81
- hover: {
82
- displayName: DisplayNames.root.designStates.hover,
83
- className: "datePicker--hover"
84
- },
85
- focus: {
86
- displayName: DisplayNames.root.designStates.focus,
87
- className: "datePicker--focus"
88
- },
89
- disabled: {
90
- displayName: DisplayNames.root.designStates.disabled,
91
- className: "datePicker--disabled"
92
- }
93
- },
94
- dateInput: {
95
- hover: {
96
- displayName: DisplayNames.root.designStates.hover,
97
- className: "datePicker__group--hover"
98
- },
99
- focus: {
100
- displayName: DisplayNames.root.designStates.focus,
101
- className: "datePicker__group--focus"
102
- },
103
- disabled: {
104
- displayName: DisplayNames.root.designStates.disabled,
105
- className: "datePicker__group--disabled"
106
- }
107
- },
108
- calendarButton: {
109
- hover: {
110
- displayName: DisplayNames.root.designStates.hover,
111
- className: "datePicker__calendar-button--hover"
112
- },
113
- selected: {
114
- displayName: DisplayNames.root.designStates.selected,
115
- className: "datePicker__calendar-button--selected"
116
- }
117
- },
118
- calendarDay: {
119
- hover: {
120
- displayName: DisplayNames.root.designStates.hover,
121
- className: "datePicker__day--hover"
122
- },
123
- selected: {
124
- displayName: DisplayNames.root.designStates.selected,
125
- className: "datePicker__day--selected"
126
- },
127
- disabled: {
128
- displayName: DisplayNames.root.designStates.disabled,
129
- className: "datePicker__day--disabled"
130
- }
131
- }
132
- };
133
- const PREVIEW_CALENDAR_OPEN = "previewCalendarOpen";
134
- const EMPTY_VALUE = "";
135
- const ARIA_LABEL_NAMESPACE = "ariaLabels";
136
- const AriaLabels = {
137
- root: { key: "datePicker_aria_label", default: "Date picker" },
138
- clear: { key: "datePicker_clear_button", default: "Clear" },
139
- openCalendar: { key: "datePicker_open_calendar", default: "Open calendar" }
89
+ name: "",
90
+ description: "",
91
+ triggerMode: "onSelection",
92
+ applyButtonLabel: "Apply",
93
+ noResultsText: "No results"
140
94
  };
95
+ var TriggerModeValues = /* @__PURE__ */ ((TriggerModeValues2) => {
96
+ TriggerModeValues2["OnSelection"] = "onSelection";
97
+ TriggerModeValues2["OnApply"] = "onApply";
98
+ return TriggerModeValues2;
99
+ })(TriggerModeValues || {});
100
+ const ALL_VALUE = "";
141
101
  const TestIds = {
142
- root: "datepicker-root",
143
- group: "datepicker-group",
144
- field: "datepicker-field",
145
- endField: "datepicker-end-field",
146
- calendarButton: "datepicker-calendar-button",
147
- clearButton: "datepicker-clear-button",
148
- calendar: "datepicker-calendar",
149
- tooltipButton: "datepicker-tooltip-button"
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"
150
109
  };
151
110
  const selectors = {
152
- root: "datePicker",
153
- label: "datePicker__label",
154
- group: "datePicker__group",
155
- calendarButton: "datePicker__calendar-button",
156
- popover: "datePicker__popover",
157
- calendar: "datePicker__calendar",
158
- day: "datePicker__day"
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" }
159
125
  };
160
126
  export {
161
- ARIA_LABEL_NAMESPACE as A,
127
+ ALL_VALUE as A,
162
128
  DesignStates as D,
163
- EMPTY_VALUE as E,
164
- GranularityValues as G,
165
- PREVIEW_CALENDAR_OPEN as P,
166
- SelectionModeValues as S,
167
129
  TestIds as T,
168
- AriaLabels as a,
169
- DisplayNames as b,
130
+ TriggerModeValues as a,
131
+ ARIA_LABEL_NAMESPACE as b,
132
+ AriaLabels as c,
170
133
  defaultValues as d,
171
- selectors as s
134
+ selectors as e,
135
+ DisplayNames as f,
136
+ semanticClassNames as s
172
137
  };