@wix/editor-react-components 1.2289.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.
- package/dist/site/components/AccordionComponent/component.js +1 -1
- package/dist/site/components/AccordionComponent/manifest.js +1 -1
- package/dist/site/components/AnimatedIcon/manifest.js +1 -1
- package/dist/site/components/AudioPlayer/component.js +12 -10
- package/dist/site/components/AudioPlayer/manifest.js +1 -1
- package/dist/site/components/BoxContainer/component.js +1 -1
- package/dist/site/components/BoxContainer/manifest.js +1 -1
- package/dist/site/components/Breadcrumbs/component.js +2 -2
- package/dist/site/components/Breadcrumbs/manifest.js +1 -1
- package/dist/site/components/Button/manifest.js +1 -1
- package/dist/site/components/CollapsibleText/component.js +1 -1
- package/dist/site/components/CollapsibleText/manifest.js +1 -1
- package/dist/site/components/DatePicker/component.js +3290 -9827
- package/dist/site/components/DatePicker/manifest.js +1 -1
- package/dist/site/components/Dropdown/component.js +1 -1
- package/dist/site/components/Dropdown/manifest.js +1 -1
- package/dist/site/components/HTMLComponent/component.js +1 -1
- package/dist/site/components/HipaaIcon/component.js +1 -1
- package/dist/site/components/HipaaIcon/manifest.js +1 -1
- package/dist/site/components/LinkBar/component.js +1 -1
- package/dist/site/components/LinkBar/manifest.js +1 -1
- package/dist/site/components/Logo/component.js +1 -1
- package/dist/site/components/Logo/manifest.js +1 -1
- package/dist/site/components/Logo/sdk.js +1 -1
- package/dist/site/components/Lottie/component.js +1 -1
- package/dist/site/components/Lottie/manifest.js +1 -1
- package/dist/site/components/Menu/component.js +1 -1
- package/dist/site/components/Menu/manifest.js +1 -1
- package/dist/site/components/MultiStateBox/component.js +1 -1
- package/dist/site/components/MultiStateBox/manifest.js +1 -1
- package/dist/site/components/ProgressBar/component.js +1 -1
- package/dist/site/components/ProgressBar/manifest.js +1 -1
- package/dist/site/components/ProgressBar/sdk.js +1 -1
- package/dist/site/components/Repeater/component.js +1 -1
- package/dist/site/components/Repeater/manifest.js +1 -1
- package/dist/site/components/ShareButtons/component.js +1 -1
- package/dist/site/components/ShareButtons/manifest.js +1 -1
- package/dist/site/components/Tabs/component.js +1 -1
- package/dist/site/components/Tabs/manifest.js +1 -1
- package/dist/site/components/TextBox/component.js +1 -1
- package/dist/site/components/TextBox/manifest.js +1 -1
- package/dist/site/components/TextEffects3d/component.js +1 -1
- package/dist/site/components/TextEffects3d/manifest.js +1 -1
- package/dist/site/components/TextEffectsBauhaus/component.js +1 -1
- package/dist/site/components/TextEffectsBauhaus/manifest.js +1 -1
- package/dist/site/components/TextEffectsGlass/component.js +1 -1
- package/dist/site/components/TextEffectsGlass/manifest.js +1 -1
- package/dist/site/components/TextEffectsGlitch/component.js +1 -1
- package/dist/site/components/TextEffectsGlitch/manifest.js +1 -1
- package/dist/site/components/TextEffectsLetterPress/component.js +1 -1
- package/dist/site/components/TextEffectsLetterPress/manifest.js +1 -1
- package/dist/site/components/TextEffectsMatrix/component.js +1 -1
- package/dist/site/components/TextEffectsMatrix/manifest.js +1 -1
- package/dist/site/components/TextEffectsNeonSign/component.js +1 -1
- package/dist/site/components/TextEffectsNeonSign/manifest.js +1 -1
- package/dist/site/components/TextEffectsNoisy/component.js +1 -1
- package/dist/site/components/TextEffectsNoisy/manifest.js +1 -1
- package/dist/site/components/TextEffectsOutlineOut/component.js +2 -2
- package/dist/site/components/TextEffectsOutlineOut/manifest.js +1 -1
- package/dist/site/components/TextEffectsRetro/component.js +1 -1
- package/dist/site/components/TextEffectsRetro/manifest.js +1 -1
- package/dist/site/components/TextEffectsShook/component.js +1 -1
- package/dist/site/components/TextEffectsShook/manifest.js +1 -1
- package/dist/site/components/TextEffectsSticker/component.js +1 -1
- package/dist/site/components/TextEffectsSticker/manifest.js +2 -2
- package/dist/site/components/TextEffectsStriped/component.js +1 -1
- package/dist/site/components/TextEffectsStriped/manifest.js +1 -1
- package/dist/site/components/TextInput/component.js +171 -170
- package/dist/site/components/TextInput/manifest.js +1 -1
- package/dist/site/components/TimePicker/TimePicker.d.ts +3 -0
- package/dist/site/components/TimePicker/TimePicker.types.d.ts +29 -0
- package/dist/site/components/TimePicker/component.d.ts +2 -0
- package/dist/site/components/TimePicker/component.js +146 -0
- package/dist/site/components/TimePicker/component.preview.d.ts +2 -0
- package/dist/site/components/TimePicker/components/TimePickerField.d.ts +4 -0
- package/dist/site/components/TimePicker/constants.d.ts +32 -0
- package/dist/site/components/TimePicker/css.css +64 -0
- package/dist/site/components/TimePicker/hooks/useTimePickerValue.d.ts +10 -0
- package/dist/site/components/TimePicker/index.d.ts +2 -0
- package/dist/site/components/TimePicker/index.js +6 -0
- package/dist/site/components/TimePicker/manifest.d.ts +5 -0
- package/dist/site/components/TimePicker/manifest.js +113 -0
- package/dist/site/components/TimePicker/timePickerUtils.d.ts +15 -0
- package/dist/site/components/chunks/AnimatedIcon.js +1 -1
- package/dist/site/components/chunks/Button.js +1 -1
- package/dist/site/components/chunks/Button2.js +10 -829
- package/dist/site/components/chunks/DateField.js +6763 -0
- package/dist/site/components/chunks/Group.js +42 -155
- package/dist/site/components/chunks/I18nProvider.js +3 -3
- package/dist/site/components/chunks/Input.js +5 -5
- package/dist/site/components/chunks/Patterns.js +1 -1
- package/dist/site/components/chunks/TextEffectsShared.js +1 -1
- package/dist/site/components/chunks/constants10.js +14 -12
- package/dist/site/components/chunks/constants11.js +9 -9
- package/dist/site/components/chunks/constants12.js +10 -8
- package/dist/site/components/chunks/constants13.js +9 -13
- package/dist/site/components/chunks/constants14.js +14 -17
- package/dist/site/components/chunks/constants15.js +17 -12
- package/dist/site/components/chunks/constants16.js +11 -13
- package/dist/site/components/chunks/constants17.js +20 -66
- package/dist/site/components/chunks/constants18.js +67 -17
- package/dist/site/components/chunks/constants19.js +15 -50
- package/dist/site/components/chunks/constants2.js +30 -50
- package/dist/site/components/chunks/constants20.js +43 -45
- package/dist/site/components/chunks/constants21.js +48 -297
- package/dist/site/components/chunks/constants22.js +299 -41
- package/dist/site/components/chunks/constants23.js +44 -29
- package/dist/site/components/chunks/constants24.js +32 -17
- package/dist/site/components/chunks/constants25.js +16 -402
- package/dist/site/components/chunks/constants26.js +393 -73
- package/dist/site/components/chunks/constants27.js +80 -15
- package/dist/site/components/chunks/constants28.js +11 -42
- package/dist/site/components/chunks/constants29.js +44 -23
- package/dist/site/components/chunks/constants3.js +49 -14
- package/dist/site/components/chunks/constants30.js +28 -10
- package/dist/site/components/chunks/constants31.js +10 -132
- package/dist/site/components/chunks/constants32.js +112 -147
- package/dist/site/components/chunks/constants33.js +152 -49
- package/dist/site/components/chunks/constants34.js +53 -71
- package/dist/site/components/chunks/constants35.js +73 -77
- package/dist/site/components/chunks/constants36.js +76 -57
- package/dist/site/components/chunks/constants37.js +72 -0
- package/dist/site/components/chunks/constants4.js +10 -19
- package/dist/site/components/chunks/constants5.js +14 -14
- package/dist/site/components/chunks/constants6.js +11 -10
- package/dist/site/components/chunks/constants7.js +14 -14
- package/dist/site/components/chunks/constants8.js +22 -65
- package/dist/site/components/chunks/constants9.js +65 -20
- package/dist/site/components/chunks/filterDOMProps.js +7 -7
- package/dist/site/components/chunks/manifestBase.js +1 -1
- package/dist/site/components/chunks/useFocusable.js +118 -0
- package/dist/site/components/chunks/useLocalizedStringFormatter.js +1 -1
- package/dist/site/components/chunks/usePress.js +825 -0
- package/dist/site/components/chunks/utils.js +1 -1
- package/dist/site/components/extensions.js +9 -4
- package/package.json +3 -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 "./
|
|
1
|
+
import { S as SharedDisplayNames } from "./constants9.js";
|
|
2
2
|
const TestIds = {
|
|
3
3
|
viewer: {
|
|
4
|
-
container: "
|
|
5
|
-
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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 "./
|
|
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: "
|
|
7
|
-
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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 "./
|
|
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: "
|
|
5
|
-
|
|
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
|
-
|
|
14
|
-
|
|
14
|
+
strokeWidth: "width",
|
|
15
|
+
stroke: "Color",
|
|
15
16
|
bevelAngle: "Angle",
|
|
16
|
-
bevelDepth: "Layer size",
|
|
17
17
|
layerCount: "Number of layers",
|
|
18
|
-
|
|
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 "./
|
|
1
|
+
import { S as SharedDisplayNames } from "./constants9.js";
|
|
2
2
|
const TestIds = {
|
|
3
3
|
viewer: {
|
|
4
|
-
container: "
|
|
5
|
-
text: "
|
|
4
|
+
container: "TextEffectsRetro-container",
|
|
5
|
+
text: "TextEffectsRetro-text"
|
|
6
6
|
}
|
|
7
7
|
};
|
|
8
|
-
const
|
|
9
|
-
|
|
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
|
-
|
|
21
|
-
|
|
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
|
-
|
|
29
|
-
TEXT_TWIST_PANEL_ID as b
|
|
29
|
+
TEXT_TWIST_PANEL_ID as a
|
|
30
30
|
};
|
|
@@ -1,73 +1,30 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
patternUnit: "text-effects-shared-pattern-unit"
|
|
4
|
+
container: "TextEffectsOutlineOut-container",
|
|
5
|
+
text: "TextEffectsOutlineOut-text"
|
|
41
6
|
}
|
|
42
7
|
};
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
-
|
|
68
|
-
|
|
25
|
+
COMPONENT_ID as C,
|
|
26
|
+
DisplayNames as D,
|
|
69
27
|
TestIds as T,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
dataHooks as d
|
|
28
|
+
angleConfig as a,
|
|
29
|
+
TEXT_TWIST_PANEL_ID as b
|
|
73
30
|
};
|
|
@@ -1,28 +1,73 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
5
|
-
|
|
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
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
24
|
-
|
|
67
|
+
DEFAULT_TEXT_DIRECTION as D,
|
|
68
|
+
SharedDisplayNames as S,
|
|
25
69
|
TestIds as T,
|
|
26
|
-
|
|
27
|
-
|
|
70
|
+
DEFAULT_HTML_TAG as a,
|
|
71
|
+
blendModes as b,
|
|
72
|
+
dataHooks as d
|
|
28
73
|
};
|
|
@@ -474,12 +474,12 @@ export {
|
|
|
474
474
|
$64fa3d84918910a7$export$4d86445c2cf5e3 as f,
|
|
475
475
|
$65484d02dcb7eb3e$export$457c3d6518dd4c6f as g,
|
|
476
476
|
$64fa3d84918910a7$export$2881499e37b75b9a as h,
|
|
477
|
-
$
|
|
478
|
-
$
|
|
479
|
-
$c7eafbbe1ea5834e$export$
|
|
480
|
-
$
|
|
481
|
-
$
|
|
482
|
-
$
|
|
483
|
-
$
|
|
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
484
|
$f39a9eba43920ace$export$8dc98ba7eadeaa56 as p
|
|
485
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 "./
|
|
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
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7 } from "./I18nProvider.js";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
const $a747a10fe70a57da$var$localeSymbol = Symbol.for("react-aria.i18n.locale");
|
|
4
4
|
const $a747a10fe70a57da$var$stringsSymbol = Symbol.for("react-aria.i18n.strings");
|