@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
@@ -0,0 +1,72 @@
1
+ const DISPLAY_NAMES = {
2
+ component: "Accordion",
3
+ elements: {
4
+ accordionItems: "Accordion items",
5
+ itemContent: "Item content",
6
+ itemTitles: "Item titles"
7
+ },
8
+ actions: {
9
+ manageAccordion: "Manage Accordion",
10
+ animatedIcon: "Customize Icon"
11
+ },
12
+ data: {
13
+ items: "Item",
14
+ title: "Title",
15
+ activeItem: "Active Item",
16
+ allowMultipleOpen: "Allow multiple open items",
17
+ defaultState: "Choose the default state"
18
+ },
19
+ defaultStateOptions: {
20
+ allClosed: "All items closed",
21
+ firstOpened: "First item opened",
22
+ allOpened: "All items opened"
23
+ },
24
+ displayGroups: {
25
+ accordionItems: "Accordion Items"
26
+ },
27
+ layout: {
28
+ itemsGap: "Space between items"
29
+ }
30
+ };
31
+ const DEFAULT_PROPS = {
32
+ items: [],
33
+ defaultOpen: "none",
34
+ allowMultipleOpen: false,
35
+ titleHtmlTag: "h3"
36
+ };
37
+ const accordionManifestDefaults = {
38
+ data: { ...DEFAULT_PROPS },
39
+ style: {
40
+ itemsGap: "0px"
41
+ }
42
+ };
43
+ const CONTAINER_INITIAL_HEIGHT = 240;
44
+ const DesignStates = {
45
+ accordionItem: {
46
+ hover: {
47
+ displayName: "Hover",
48
+ className: "accordion-component__accordion-item--hover"
49
+ },
50
+ selected: {
51
+ displayName: "Selected",
52
+ className: "accordion-component__accordion-item--selected"
53
+ }
54
+ },
55
+ itemTitle: {
56
+ hover: {
57
+ displayName: "Hover",
58
+ className: "accordion-component__item-title--hover"
59
+ },
60
+ selected: {
61
+ displayName: "Selected",
62
+ className: "accordion-component__item-title--selected"
63
+ }
64
+ }
65
+ };
66
+ export {
67
+ CONTAINER_INITIAL_HEIGHT as C,
68
+ DEFAULT_PROPS as D,
69
+ DesignStates as a,
70
+ DISPLAY_NAMES as b,
71
+ accordionManifestDefaults as c
72
+ };
@@ -1,31 +1,22 @@
1
- import { S as SharedDisplayNames } from "./constants8.js";
1
+ import { S as SharedDisplayNames } from "./constants9.js";
2
2
  const TestIds = {
3
3
  viewer: {
4
- container: "TextEffectsSticker-container",
5
- text: "TextEffectsSticker-text"
4
+ container: "TextEffectsStriped-container",
5
+ text: "TextEffectsStriped-text"
6
6
  }
7
7
  };
8
- const COMPONENT_ID = "5a8d2f7c-e1b3-4c9a-8d6e-2f4b7a9c1e3d";
9
- const TEXT_TWIST_PANEL_ID = "c5f84f6c-3d1f-4287-af95-800fc31b581e";
10
8
  const DisplayNames = {
11
9
  ...SharedDisplayNames,
12
10
  cssCustomProperties: {
13
- fill: "Color",
14
- fillOpacity: "opacity",
15
- strokeWidth: "width",
16
- stroke: "Color",
17
- outerStrokeAngle: "Angle",
18
- outerStrokeDistance: "Distance",
19
- shadowColor: "Color",
20
- shadowOpacity: "Opacity",
21
- shadowAngle: "Angle",
22
- shadowBlur: "Blur",
23
- shadowDistance: "Distance"
11
+ stripeAngle: "Angle",
12
+ stripeSize: "Size",
13
+ innerAnimationSpeed: "Speed",
14
+ disableInnerAnimation: "Animation",
15
+ textEffectsColor1: "Color 1",
16
+ textEffectsColor2: "Color 2"
24
17
  }
25
18
  };
26
19
  export {
27
- COMPONENT_ID as C,
28
20
  DisplayNames as D,
29
- TestIds as T,
30
- TEXT_TWIST_PANEL_ID as a
21
+ TestIds as T
31
22
  };
@@ -1,26 +1,26 @@
1
- import { S as SharedDisplayNames } from "./constants8.js";
2
- const COMPONENT_ID = "edce3e51-3d93-4b6a-abd5-778f5071b73d";
3
- const TEXT_TWIST_PANEL_ID = "8ec92f08-c639-4240-8408-1aaaedbc5712";
1
+ import { S as SharedDisplayNames } from "./constants9.js";
4
2
  const TestIds = {
5
3
  viewer: {
6
- container: "text-effects-shook-container",
7
- layer: "text-effects-shook-layer",
8
- text: "text-effects-shook-text"
4
+ container: "TextEffectsSticker-container",
5
+ text: "TextEffectsSticker-text"
9
6
  }
10
7
  };
8
+ const COMPONENT_ID = "5a8d2f7c-e1b3-4c9a-8d6e-2f4b7a9c1e3d";
9
+ const TEXT_TWIST_PANEL_ID = "c5f84f6c-3d1f-4287-af95-800fc31b581e";
11
10
  const DisplayNames = {
12
11
  ...SharedDisplayNames,
13
12
  cssCustomProperties: {
13
+ fill: "Color",
14
+ fillOpacity: "opacity",
14
15
  strokeWidth: "width",
15
16
  stroke: "Color",
16
- bevelAngle: "Angle",
17
- layerCount: "Number of layers",
18
- layerSpacing: "Space between layers",
19
- textEffectsColor1: "Color 1",
20
- textEffectsColor2: "Color 2",
21
- textEffectsColor3: "Color 3",
22
- textEffectsColor4: "Color 4",
23
- textEffectsColor5: "Color 5"
17
+ outerStrokeAngle: "Angle",
18
+ outerStrokeDistance: "Distance",
19
+ shadowColor: "Color",
20
+ shadowOpacity: "Opacity",
21
+ shadowAngle: "Angle",
22
+ shadowBlur: "Blur",
23
+ shadowDistance: "Distance"
24
24
  }
25
25
  };
26
26
  export {
@@ -1,25 +1,26 @@
1
- import { S as SharedDisplayNames } from "./constants8.js";
1
+ import { S as SharedDisplayNames } from "./constants9.js";
2
+ const COMPONENT_ID = "edce3e51-3d93-4b6a-abd5-778f5071b73d";
3
+ const TEXT_TWIST_PANEL_ID = "8ec92f08-c639-4240-8408-1aaaedbc5712";
2
4
  const TestIds = {
3
5
  viewer: {
4
- container: "TextEffectsRetro-container",
5
- text: "TextEffectsRetro-text"
6
+ container: "text-effects-shook-container",
7
+ layer: "text-effects-shook-layer",
8
+ text: "text-effects-shook-text"
6
9
  }
7
10
  };
8
- const COMPONENT_ID = "2f4c7e1a-d8b3-4c5f-a9d2-6b8e3f1a7c4d";
9
- const TEXT_TWIST_PANEL_ID = "4b11b85b-e246-4c9e-a4da-8334bfeb5748";
10
11
  const DisplayNames = {
11
12
  ...SharedDisplayNames,
12
13
  cssCustomProperties: {
13
- disableInnerAnimation: "Animation",
14
- innerAnimationSpeed: "Speed",
14
+ strokeWidth: "width",
15
+ stroke: "Color",
15
16
  bevelAngle: "Angle",
16
- bevelDepth: "Layer size",
17
17
  layerCount: "Number of layers",
18
- shadowBlur: "Blur",
18
+ layerSpacing: "Space between layers",
19
19
  textEffectsColor1: "Color 1",
20
20
  textEffectsColor2: "Color 2",
21
21
  textEffectsColor3: "Color 3",
22
- textEffectsColor4: "Color 4"
22
+ textEffectsColor4: "Color 4",
23
+ textEffectsColor5: "Color 5"
23
24
  }
24
25
  };
25
26
  export {
@@ -1,30 +1,30 @@
1
- import { S as SharedDisplayNames } from "./constants8.js";
1
+ import { S as SharedDisplayNames } from "./constants9.js";
2
2
  const TestIds = {
3
3
  viewer: {
4
- container: "TextEffectsOutlineOut-container",
5
- text: "TextEffectsOutlineOut-text"
4
+ container: "TextEffectsRetro-container",
5
+ text: "TextEffectsRetro-text"
6
6
  }
7
7
  };
8
- const angleConfig = {
9
- start: 0,
10
- end: 360,
11
- step: 45
12
- };
13
- const COMPONENT_ID = "6b9e3a8d-f2c4-4d7b-9e1a-3c5f8b2d6a4e";
14
- const TEXT_TWIST_PANEL_ID = "44be09da-8986-4aec-8a43-545549885828";
8
+ const COMPONENT_ID = "2f4c7e1a-d8b3-4c5f-a9d2-6b8e3f1a7c4d";
9
+ const TEXT_TWIST_PANEL_ID = "4b11b85b-e246-4c9e-a4da-8334bfeb5748";
15
10
  const DisplayNames = {
16
11
  ...SharedDisplayNames,
17
12
  cssCustomProperties: {
13
+ disableInnerAnimation: "Animation",
14
+ innerAnimationSpeed: "Speed",
15
+ bevelAngle: "Angle",
16
+ bevelDepth: "Layer size",
17
+ layerCount: "Number of layers",
18
+ shadowBlur: "Blur",
18
19
  textEffectsColor1: "Color 1",
19
20
  textEffectsColor2: "Color 2",
20
- bevelAngle: "Bevel angle",
21
- layerBlendMode: "Blend mode"
21
+ textEffectsColor3: "Color 3",
22
+ textEffectsColor4: "Color 4"
22
23
  }
23
24
  };
24
25
  export {
25
26
  COMPONENT_ID as C,
26
27
  DisplayNames as D,
27
28
  TestIds as T,
28
- angleConfig as a,
29
- TEXT_TWIST_PANEL_ID as b
29
+ TEXT_TWIST_PANEL_ID as a
30
30
  };
@@ -1,73 +1,30 @@
1
- const SharedDisplayNames = {
2
- root: {
3
- displayName: "Text Effects"
4
- },
5
- data: {
6
- text: "Text",
7
- link: "Link",
8
- isDecorative: "Decorative",
9
- textDirection: "Text Direction",
10
- patternScope: "Pattern Scope",
11
- a11y: "Accessibility"
12
- },
13
- cssProperties: {
14
- font: "Font",
15
- color: "Color",
16
- textLineHeight: "Line spacing",
17
- letterSpacing: "Letter spacing"
18
- },
19
- patternCssCustomProperties: {
20
- rotationIntensity: "Rotation Intensity",
21
- offsetIntensity: "Offset Intensity",
22
- patternPreset: "Pattern Preset",
23
- isCapitalize: "Capitalize"
24
- },
25
- textDirection: {
26
- inherit: "Inherit",
27
- ltr: "Left to Right",
28
- rtl: "Right to Left"
29
- },
30
- patternScope: {
31
- none: "None",
32
- character: "Character",
33
- word: "Word"
34
- }
35
- };
1
+ import { S as SharedDisplayNames } from "./constants9.js";
36
2
  const TestIds = {
37
3
  viewer: {
38
- link: "text-effects-shared-link",
39
- visuallyHidden: "text-effects-shared-visually-hidden",
40
- patternUnit: "text-effects-shared-pattern-unit"
4
+ container: "TextEffectsOutlineOut-container",
5
+ text: "TextEffectsOutlineOut-text"
41
6
  }
42
7
  };
43
- const DEFAULT_HTML_TAG = "div";
44
- const DEFAULT_TEXT_DIRECTION = "inherit";
45
- const dataHooks = {
46
- root: "text-effect"
8
+ const angleConfig = {
9
+ start: 0,
10
+ end: 360,
11
+ step: 45
12
+ };
13
+ const COMPONENT_ID = "6b9e3a8d-f2c4-4d7b-9e1a-3c5f8b2d6a4e";
14
+ const TEXT_TWIST_PANEL_ID = "44be09da-8986-4aec-8a43-545549885828";
15
+ const DisplayNames = {
16
+ ...SharedDisplayNames,
17
+ cssCustomProperties: {
18
+ textEffectsColor1: "Color 1",
19
+ textEffectsColor2: "Color 2",
20
+ bevelAngle: "Bevel angle",
21
+ layerBlendMode: "Blend mode"
22
+ }
47
23
  };
48
- const blendModes = [
49
- "normal",
50
- "color",
51
- "color-burn",
52
- "color-dodge",
53
- "darken",
54
- "difference",
55
- "exclusion",
56
- "hard-light",
57
- "hue",
58
- "lighten",
59
- "luminosity",
60
- "multiply",
61
- "overlay",
62
- "saturation",
63
- "screen",
64
- "soft-light"
65
- ];
66
24
  export {
67
- DEFAULT_TEXT_DIRECTION as D,
68
- SharedDisplayNames as S,
25
+ COMPONENT_ID as C,
26
+ DisplayNames as D,
69
27
  TestIds as T,
70
- DEFAULT_HTML_TAG as a,
71
- blendModes as b,
72
- dataHooks as d
28
+ angleConfig as a,
29
+ TEXT_TWIST_PANEL_ID as b
73
30
  };
@@ -1,28 +1,73 @@
1
- import { S as SharedDisplayNames } from "./constants8.js";
1
+ const SharedDisplayNames = {
2
+ root: {
3
+ displayName: "Text Effects"
4
+ },
5
+ data: {
6
+ text: "Text",
7
+ link: "Link",
8
+ isDecorative: "Decorative",
9
+ textDirection: "Text Direction",
10
+ patternScope: "Pattern Scope",
11
+ a11y: "Accessibility"
12
+ },
13
+ cssProperties: {
14
+ font: "Font",
15
+ color: "Color",
16
+ textLineHeight: "Line spacing",
17
+ letterSpacing: "Letter spacing"
18
+ },
19
+ patternCssCustomProperties: {
20
+ rotationIntensity: "Rotation Intensity",
21
+ offsetIntensity: "Offset Intensity",
22
+ patternPreset: "Pattern Preset",
23
+ isCapitalize: "Capitalize"
24
+ },
25
+ textDirection: {
26
+ inherit: "Inherit",
27
+ ltr: "Left to Right",
28
+ rtl: "Right to Left"
29
+ },
30
+ patternScope: {
31
+ none: "None",
32
+ character: "Character",
33
+ word: "Word"
34
+ }
35
+ };
2
36
  const TestIds = {
3
37
  viewer: {
4
- container: "TextEffectsNoisy-container",
5
- text: "TextEffectsNoisy-text"
38
+ link: "text-effects-shared-link",
39
+ visuallyHidden: "text-effects-shared-visually-hidden",
40
+ patternUnit: "text-effects-shared-pattern-unit"
6
41
  }
7
42
  };
8
- const noiseIntensityConfig = {
9
- start: 1,
10
- end: 53,
11
- step: 1
12
- };
13
- const COMPONENT_ID = "3f9c1e82-a7d6-4b5e-8c2a-9d4f6e3b7a1c";
14
- const TEXT_TWIST_PANEL_ID = "0bba51ec-ca53-4662-acf6-ea71ffbb4f55";
15
- const DisplayNames = {
16
- ...SharedDisplayNames,
17
- cssCustomProperties: {
18
- textEffectsColor1: "Color",
19
- squigglyLevel: "Noise intensity"
20
- }
43
+ const DEFAULT_HTML_TAG = "div";
44
+ const DEFAULT_TEXT_DIRECTION = "inherit";
45
+ const dataHooks = {
46
+ root: "text-effect"
21
47
  };
48
+ const blendModes = [
49
+ "normal",
50
+ "color",
51
+ "color-burn",
52
+ "color-dodge",
53
+ "darken",
54
+ "difference",
55
+ "exclusion",
56
+ "hard-light",
57
+ "hue",
58
+ "lighten",
59
+ "luminosity",
60
+ "multiply",
61
+ "overlay",
62
+ "saturation",
63
+ "screen",
64
+ "soft-light"
65
+ ];
22
66
  export {
23
- COMPONENT_ID as C,
24
- DisplayNames as D,
67
+ DEFAULT_TEXT_DIRECTION as D,
68
+ SharedDisplayNames as S,
25
69
  TestIds as T,
26
- TEXT_TWIST_PANEL_ID as a,
27
- noiseIntensityConfig as n
70
+ DEFAULT_HTML_TAG as a,
71
+ blendModes as b,
72
+ dataHooks as d
28
73
  };
@@ -393,6 +393,9 @@ function $f39a9eba43920ace$export$86427a43e3e48ebb(fn) {
393
393
  Wrapper.displayName = fn.displayName || fn.name;
394
394
  return forwardRef(Wrapper);
395
395
  }
396
+ function $f39a9eba43920ace$export$b5d7cc18bb8d2b59() {
397
+ return useContext($f39a9eba43920ace$export$94b6d0abf7d33e8c);
398
+ }
396
399
  const $8e9d2fae0ecb9001$var$DOMPropNames = /* @__PURE__ */ new Set([
397
400
  "id"
398
401
  ]);
@@ -465,15 +468,18 @@ export {
465
468
  $8e9d2fae0ecb9001$export$457c3d6518dd4c6f as $,
466
469
  $f39a9eba43920ace$export$86427a43e3e48ebb as a,
467
470
  $64fa3d84918910a7$export$29f1550f4b0d4415 as b,
468
- $64fa3d84918910a7$export$4d86445c2cf5e3 as c,
469
- $64fa3d84918910a7$export$fabf2dc03a41866e as d,
470
- $64fa3d84918910a7$export$9d4c57ee4c6ffdd8 as e,
471
- $64fa3d84918910a7$export$ef03459518577ad4 as f,
471
+ $64fa3d84918910a7$export$fabf2dc03a41866e as c,
472
+ $64fa3d84918910a7$export$9d4c57ee4c6ffdd8 as d,
473
+ $64fa3d84918910a7$export$ef03459518577ad4 as e,
474
+ $64fa3d84918910a7$export$4d86445c2cf5e3 as f,
472
475
  $65484d02dcb7eb3e$export$457c3d6518dd4c6f as g,
473
476
  $64fa3d84918910a7$export$2881499e37b75b9a as h,
474
- $c7eafbbe1ea5834e$export$619500959fc48b26 as i,
475
- $f39a9eba43920ace$export$8dc98ba7eadeaa56 as j,
476
- $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c as k,
477
- $3ef42575df84b30b$export$9d1611c77c2fe928 as l,
478
- $c7eafbbe1ea5834e$export$535bd6ca7f90a273 as m
477
+ $df56164dff5785e2$export$4338b53315abf666 as i,
478
+ $c7eafbbe1ea5834e$export$535bd6ca7f90a273 as j,
479
+ $c7eafbbe1ea5834e$export$619500959fc48b26 as k,
480
+ $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c as l,
481
+ $f39a9eba43920ace$export$b5d7cc18bb8d2b59 as m,
482
+ $3ef42575df84b30b$export$9d1611c77c2fe928 as n,
483
+ $64fa3d84918910a7$export$c62b8e45d58ddad9 as o,
484
+ $f39a9eba43920ace$export$8dc98ba7eadeaa56 as p
479
485
  };
@@ -1,5 +1,5 @@
1
1
  import { L as LAYOUT, D as DATA, I as INTERACTIONS, C as CSS_PROPERTIES } from "./chunk-JPMZBG44.js";
2
- import { S as SharedDisplayNames } from "./constants8.js";
2
+ import { S as SharedDisplayNames } from "./constants9.js";
3
3
  const MAX_PATTERNS = 15;
4
4
  const PatternConfig = {
5
5
  MAX_PATTERNS
@@ -0,0 +1,118 @@
1
+ import { P as $1e74c67db218ce67$export$f8168d8dd8fd66e6, c as $bbaa08b3cd72f041$export$9d1611c77c2fe928, n as $f192c2f16961cbe0$export$80f3e147d781571c, M as $b7115c395c64f7b5$export$4debdb1a3f0fa79e } from "./Group.js";
2
+ import React__default, { useRef, useCallback, useMemo, useEffect, useContext } from "react";
3
+ function $8dba16319206abb6$export$48d1ea6320830260(handler) {
4
+ if (!handler) return void 0;
5
+ let shouldStopPropagation = true;
6
+ return (e) => {
7
+ let event = {
8
+ ...e,
9
+ preventDefault() {
10
+ e.preventDefault();
11
+ },
12
+ isDefaultPrevented() {
13
+ return e.isDefaultPrevented();
14
+ },
15
+ stopPropagation() {
16
+ if (shouldStopPropagation && process.env.NODE_ENV !== "production") console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.");
17
+ else shouldStopPropagation = true;
18
+ },
19
+ continuePropagation() {
20
+ shouldStopPropagation = false;
21
+ },
22
+ isPropagationStopped() {
23
+ return shouldStopPropagation;
24
+ }
25
+ };
26
+ handler(event);
27
+ if (shouldStopPropagation) e.stopPropagation();
28
+ };
29
+ }
30
+ function $8296dad1a4c5e0dc$export$8f71654801c2f7cd(props) {
31
+ return {
32
+ keyboardProps: props.isDisabled ? {} : {
33
+ onKeyDown: $8dba16319206abb6$export$48d1ea6320830260(props.onKeyDown),
34
+ onKeyUp: $8dba16319206abb6$export$48d1ea6320830260(props.onKeyUp)
35
+ }
36
+ };
37
+ }
38
+ function $03e8ab2d84d7657a$export$4338b53315abf666(ref) {
39
+ const objRef = useRef(null);
40
+ const cleanupRef = useRef(void 0);
41
+ const refEffect = useCallback((instance) => {
42
+ if (typeof ref === "function") {
43
+ const refCallback = ref;
44
+ const refCleanup = refCallback(instance);
45
+ return () => {
46
+ if (typeof refCleanup === "function") refCleanup();
47
+ else refCallback(null);
48
+ };
49
+ } else if (ref) {
50
+ ref.current = instance;
51
+ return () => {
52
+ ref.current = null;
53
+ };
54
+ }
55
+ }, [
56
+ ref
57
+ ]);
58
+ return useMemo(() => ({
59
+ get current() {
60
+ return objRef.current;
61
+ },
62
+ set current(value) {
63
+ objRef.current = value;
64
+ if (cleanupRef.current) {
65
+ cleanupRef.current();
66
+ cleanupRef.current = void 0;
67
+ }
68
+ if (value != null) cleanupRef.current = refEffect(value);
69
+ }
70
+ }), [
71
+ refEffect
72
+ ]);
73
+ }
74
+ let $d1116acdf220c2da$export$f9762fab77588ecb = /* @__PURE__ */ React__default.createContext(null);
75
+ function $d1116acdf220c2da$var$useFocusableContext(ref) {
76
+ let context = useContext($d1116acdf220c2da$export$f9762fab77588ecb) || {};
77
+ $b7115c395c64f7b5$export$4debdb1a3f0fa79e(context, ref);
78
+ let { ref: _, ...otherProps } = context;
79
+ return otherProps;
80
+ }
81
+ const $d1116acdf220c2da$export$13f3202a3e5ddd5 = /* @__PURE__ */ React__default.forwardRef(function FocusableProvider(props, ref) {
82
+ let { children, ...otherProps } = props;
83
+ let objRef = $03e8ab2d84d7657a$export$4338b53315abf666(ref);
84
+ let context = {
85
+ ...otherProps,
86
+ ref: objRef
87
+ };
88
+ return /* @__PURE__ */ React__default.createElement($d1116acdf220c2da$export$f9762fab77588ecb.Provider, {
89
+ value: context
90
+ }, children);
91
+ });
92
+ function $d1116acdf220c2da$export$4c014de7c8940b4c(props, domRef) {
93
+ let { focusProps } = $1e74c67db218ce67$export$f8168d8dd8fd66e6(props);
94
+ let { keyboardProps } = $8296dad1a4c5e0dc$export$8f71654801c2f7cd(props);
95
+ let interactions = $bbaa08b3cd72f041$export$9d1611c77c2fe928(focusProps, keyboardProps);
96
+ let domProps = $d1116acdf220c2da$var$useFocusableContext(domRef);
97
+ let interactionProps = props.isDisabled ? {} : domProps;
98
+ let autoFocusRef = useRef(props.autoFocus);
99
+ useEffect(() => {
100
+ if (autoFocusRef.current && domRef.current) $f192c2f16961cbe0$export$80f3e147d781571c(domRef.current);
101
+ autoFocusRef.current = false;
102
+ }, [
103
+ domRef
104
+ ]);
105
+ let tabIndex = props.excludeFromTabOrder ? -1 : 0;
106
+ if (props.isDisabled) tabIndex = void 0;
107
+ return {
108
+ focusableProps: $bbaa08b3cd72f041$export$9d1611c77c2fe928({
109
+ ...interactions,
110
+ tabIndex
111
+ }, interactionProps)
112
+ };
113
+ }
114
+ export {
115
+ $d1116acdf220c2da$export$4c014de7c8940b4c as $,
116
+ $d1116acdf220c2da$export$13f3202a3e5ddd5 as a,
117
+ $8296dad1a4c5e0dc$export$8f71654801c2f7cd as b
118
+ };