@plitzi/sdk-style 0.38.10 → 0.38.11
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/CHANGELOG.md +180 -0
- package/dist/components/InputEasing/InputEasingButton.mjs +1 -1
- package/dist/components/InputEasing/InputEasingList.mjs +5 -5
- package/dist/components/Selector/Selector.mjs +2 -1
- package/dist/components/Selector/SelectorItem/ItemOptions.mjs +45 -41
- package/dist/components/Selector/SelectorItem/SelectorItem.mjs +4 -4
- package/dist/components/Selector/SelectorItem/helpers.d.ts +2 -0
- package/dist/components/Selector/SelectorItem/helpers.mjs +4 -0
- package/dist/components/StyleInspector/Inspector.mjs +185 -171
- package/dist/components/StyleInspector/InspectorSearchContext.d.ts +3 -0
- package/dist/components/StyleInspector/InspectorSearchContext.mjs +6 -0
- package/dist/components/StyleInspector/StyleInspector.mjs +154 -128
- package/dist/components/StyleInspector/categories/Background/Background.mjs +82 -114
- package/dist/components/StyleInspector/categories/Background/components/BackgroundAttachment/BackgroundAttachment.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundAttachment/BackgroundAttachment.mjs +53 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundAttachment/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundAttachment/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundLayer/BackgroundLayer.mjs +159 -153
- package/dist/components/StyleInspector/categories/Background/components/BackgroundLayer/helpers.d.ts +11 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundLayer/helpers.mjs +45 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundPosition/BackgroundPosition.mjs +26 -23
- package/dist/components/StyleInspector/categories/Background/components/BackgroundSize/BackgroundSize.mjs +65 -56
- package/dist/components/StyleInspector/categories/Background/components/BackgroundSize/helpers.d.ts +4 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundSize/helpers.mjs +8 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundTile/BackgroundTile.mjs +28 -27
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientPreviewBar.d.ts +4 -2
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientPreviewBar.mjs +19 -18
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopBar.d.ts +4 -0
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopBar.mjs +48 -80
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopEditor.d.ts +5 -3
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopEditor.mjs +51 -41
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopHandle.d.ts +5 -1
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopHandle.mjs +54 -32
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopTrack.d.ts +3 -1
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopTrack.mjs +14 -13
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/helpers.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/helpers.mjs +8 -0
- package/dist/components/StyleInspector/categories/Background/components/LayerGroup/LayerGroup.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Background/components/LayerGroup/LayerGroup.mjs +11 -0
- package/dist/components/StyleInspector/categories/Background/components/LayerGroup/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/Background/components/LayerGroup/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/Background/helpers/backgroundParser.d.ts +21 -7
- package/dist/components/StyleInspector/categories/Background/helpers/backgroundParser.mjs +114 -113
- package/dist/components/StyleInspector/categories/Background/helpers/layerValues.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Background/helpers/layerValues.mjs +11 -0
- package/dist/components/StyleInspector/categories/Background/modes/ConicGradientMode.mjs +52 -87
- package/dist/components/StyleInspector/categories/Background/modes/ImageMode.mjs +16 -77
- package/dist/components/StyleInspector/categories/Background/modes/LinearGradientMode.mjs +19 -62
- package/dist/components/StyleInspector/categories/Background/modes/RadialGradientMode.mjs +79 -97
- package/dist/components/StyleInspector/categories/Background/modes/RawMode.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Background/modes/RawMode.mjs +22 -0
- package/dist/components/StyleInspector/categories/Background/modes/helpers.d.ts +19 -0
- package/dist/components/StyleInspector/categories/Background/modes/helpers.mjs +54 -0
- package/dist/components/StyleInspector/categories/Border/Border.mjs +26 -43
- package/dist/components/StyleInspector/categories/Border/BorderPlacements.mjs +60 -51
- package/dist/components/StyleInspector/categories/Display/Display.mjs +32 -49
- package/dist/components/StyleInspector/categories/DisplayFlexChild/DisplayFlexChild.mjs +33 -38
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadow.mjs +21 -33
- package/dist/components/StyleInspector/categories/Effects/Effects.mjs +131 -154
- package/dist/components/StyleInspector/categories/Effects/Filters/Filter.mjs +23 -31
- package/dist/components/StyleInspector/categories/Effects/Filters/FilterItem.d.ts +9 -5
- package/dist/components/StyleInspector/categories/Effects/Filters/FilterItem.mjs +57 -124
- package/dist/components/StyleInspector/categories/Effects/Filters/helpers.d.ts +25 -0
- package/dist/components/StyleInspector/categories/Effects/Filters/helpers.mjs +87 -0
- package/dist/components/StyleInspector/categories/Effects/Transform/Transform.mjs +18 -28
- package/dist/components/StyleInspector/categories/Effects/Transform/TransformItem.d.ts +1 -2
- package/dist/components/StyleInspector/categories/Effects/Transform/TransformItem.mjs +52 -76
- package/dist/components/StyleInspector/categories/Effects/Transform/transformFunctions.d.ts +5 -0
- package/dist/components/StyleInspector/categories/Effects/Transform/transformFunctions.mjs +8 -2
- package/dist/components/StyleInspector/categories/Effects/Transition/Transition.mjs +21 -37
- package/dist/components/StyleInspector/categories/Effects/Transition/TransitionEasing.d.ts +10 -0
- package/dist/components/StyleInspector/categories/Effects/Transition/TransitionEasing.mjs +92 -0
- package/dist/components/StyleInspector/categories/Effects/Transition/TransitionItem.d.ts +4 -4
- package/dist/components/StyleInspector/categories/Effects/Transition/TransitionItem.mjs +78 -359
- package/dist/components/StyleInspector/categories/Effects/Transition/helpers.d.ts +39 -0
- package/dist/components/StyleInspector/categories/Effects/Transition/helpers.mjs +268 -0
- package/dist/components/StyleInspector/categories/List/List.mjs +39 -38
- package/dist/components/StyleInspector/categories/ListItem/ListItem.mjs +29 -29
- package/dist/components/StyleInspector/categories/Others/Others.mjs +66 -88
- package/dist/components/StyleInspector/categories/Position/Position.mjs +67 -75
- package/dist/components/StyleInspector/categories/RawStyle/RawStyle.mjs +19 -18
- package/dist/components/StyleInspector/categories/Size/Size.mjs +68 -88
- package/dist/components/StyleInspector/categories/Spacing/Spacing.mjs +18 -27
- package/dist/components/StyleInspector/categories/Spacing/SpacingMargin.mjs +2 -2
- package/dist/components/StyleInspector/categories/Spacing/SpacingPadding.mjs +4 -3
- package/dist/components/StyleInspector/categories/Typography/Typography.mjs +88 -98
- package/dist/components/StyleInspector/categories/Typography/TypographyFont.mjs +1 -1
- package/dist/components/StyleInspector/categories/Typography/TypographyStyle.mjs +1 -1
- package/dist/components/StyleInspector/categories/Typography/TypographyTextShadow.mjs +26 -39
- package/dist/components/StyleInspector/categories/Variables/Variables.mjs +38 -37
- package/dist/components/StyleInspector/categoryKeys.d.ts +45 -0
- package/dist/components/StyleInspector/categoryKeys.mjs +220 -0
- package/dist/components/StyleInspector/components/CategoryContainer/CategoryContainer.mjs +43 -38
- package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionIconGroup.mjs +2 -1
- package/dist/components/StyleInspector/components/CategorySection/CategorySection.mjs +30 -15
- package/dist/components/StyleInspector/components/ColorSwatch/ColorSwatch.d.ts +8 -0
- package/dist/components/StyleInspector/components/ColorSwatch/ColorSwatch.mjs +23 -0
- package/dist/components/StyleInspector/components/ColorSwatch/helpers.d.ts +3 -0
- package/dist/components/StyleInspector/components/ColorSwatch/helpers.mjs +9 -0
- package/dist/components/StyleInspector/components/ColorSwatch/index.d.ts +3 -0
- package/dist/components/StyleInspector/components/ColorSwatch/index.mjs +5 -0
- package/dist/components/StyleInspector/components/InspectorDots/InspectorDots.d.ts +1 -0
- package/dist/components/StyleInspector/components/InspectorDots/InspectorDots.mjs +11 -11
- package/dist/components/StyleInspector/components/InspectorFooter/InspectorFooter.d.ts +11 -0
- package/dist/components/StyleInspector/components/InspectorFooter/InspectorFooter.mjs +38 -0
- package/dist/components/StyleInspector/components/InspectorFooter/helpers.d.ts +2 -0
- package/dist/components/StyleInspector/components/InspectorFooter/helpers.mjs +11 -0
- package/dist/components/StyleInspector/components/InspectorFooter/index.d.ts +3 -0
- package/dist/components/StyleInspector/components/InspectorFooter/index.mjs +5 -0
- package/dist/components/StyleInspector/components/InspectorLabel/InspectorLabel.mjs +34 -31
- package/dist/components/StyleInspector/components/InspectorLabel/helpers.d.ts +17 -0
- package/dist/components/StyleInspector/components/InspectorLabel/helpers.mjs +16 -0
- package/dist/components/StyleInspector/components/InspectorSearch/InspectorSearch.d.ts +7 -0
- package/dist/components/StyleInspector/components/InspectorSearch/InspectorSearch.mjs +24 -0
- package/dist/components/StyleInspector/components/InspectorSearch/index.d.ts +3 -0
- package/dist/components/StyleInspector/components/InspectorSearch/index.mjs +5 -0
- package/dist/components/StyleInspector/components/ShadowItem/ShadowItem.d.ts +9 -0
- package/dist/components/StyleInspector/components/ShadowItem/ShadowItem.mjs +110 -0
- package/dist/components/StyleInspector/components/ShadowItem/index.d.ts +3 -0
- package/dist/components/StyleInspector/components/ShadowItem/index.mjs +5 -0
- package/dist/components/StyleInspector/components/TargetSummary/TargetSummary.d.ts +7 -0
- package/dist/components/StyleInspector/components/TargetSummary/TargetSummary.mjs +24 -0
- package/dist/components/StyleInspector/components/TargetSummary/index.d.ts +3 -0
- package/dist/components/StyleInspector/components/TargetSummary/index.mjs +5 -0
- package/dist/components/StyleInspector/components/ValueList/ValueList.d.ts +12 -0
- package/dist/components/StyleInspector/components/ValueList/ValueList.mjs +25 -0
- package/dist/components/StyleInspector/components/ValueList/index.d.ts +3 -0
- package/dist/components/StyleInspector/components/ValueList/index.mjs +5 -0
- package/dist/components/StyleInspector/components/ValueListItem/ValueListItem.d.ts +16 -0
- package/dist/components/StyleInspector/components/ValueListItem/ValueListItem.mjs +71 -0
- package/dist/components/StyleInspector/components/ValueListItem/index.d.ts +3 -0
- package/dist/components/StyleInspector/components/ValueListItem/index.mjs +5 -0
- package/dist/components/StyleInspector/cssValues.d.ts +15 -0
- package/dist/components/StyleInspector/cssValues.mjs +27 -0
- package/dist/components/StyleInspector/helpers.d.ts +17 -1
- package/dist/components/StyleInspector/helpers.mjs +9 -2
- package/dist/components/StyleInspector/hooks/useInspectorValues.mjs +42 -45
- package/dist/components/StyleInspector/search.d.ts +11 -0
- package/dist/components/StyleInspector/search.mjs +14 -0
- package/dist/components/StyleInspector/shadowValue.d.ts +20 -0
- package/dist/components/StyleInspector/shadowValue.mjs +36 -0
- package/dist/components/StyleManager/StyleSelectorTag.mjs +1 -1
- package/package.json +185 -17
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadowItem.d.ts +0 -8
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadowItem.mjs +0 -132
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/helpers.d.ts +0 -2
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/helpers.mjs +0 -18
- package/dist/components/StyleInspector/categories/Typography/TypographyTextShadowItem.d.ts +0 -8
- package/dist/components/StyleInspector/categories/Typography/TypographyTextShadowItem.mjs +0 -83
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import { splitBySpaceOutsideParens as e } from "../../../cssValues.mjs";
|
|
2
|
+
//#region src/components/StyleInspector/categories/Effects/Transition/helpers.ts
|
|
3
|
+
var t = {
|
|
4
|
+
property: "opacity",
|
|
5
|
+
duration: "200ms",
|
|
6
|
+
easing: "ease",
|
|
7
|
+
delay: "0ms"
|
|
8
|
+
}, n = /^[-+]?(\d|\.\d)[\d.]*m?s$/i, r = /* @__PURE__ */ new Set([
|
|
9
|
+
"ease",
|
|
10
|
+
"ease-in",
|
|
11
|
+
"ease-out",
|
|
12
|
+
"ease-in-out",
|
|
13
|
+
"linear",
|
|
14
|
+
"step-start",
|
|
15
|
+
"step-end"
|
|
16
|
+
]), i = /^(cubic-bezier|steps|linear)\(/i, a = (t) => {
|
|
17
|
+
let a = [], o, s;
|
|
18
|
+
for (let c of e(t.trim())) if (n.test(c)) a.push(c);
|
|
19
|
+
else if (r.has(c.toLowerCase()) || i.test(c)) o = c;
|
|
20
|
+
else if (s === void 0 && /^[a-z-]+$/i.test(c)) s = c;
|
|
21
|
+
else return;
|
|
22
|
+
if (!(a.length > 2 || !s && a.length === 0)) return {
|
|
23
|
+
property: s ?? "all",
|
|
24
|
+
duration: a[0] ?? "0s",
|
|
25
|
+
easing: o ?? "ease",
|
|
26
|
+
delay: a[1] ?? "0s"
|
|
27
|
+
};
|
|
28
|
+
}, o = ({ property: e, duration: t, delay: n }) => /^[-+]?0*\.?0*m?s$/i.test(n) ? `${e} ${t}` : `${e} ${t} after ${n}`, s = ({ property: e, duration: t, easing: n, delay: r }) => `${e} ${t} ${n} ${r}`, c = /* @__PURE__ */ new Set([
|
|
29
|
+
"ease",
|
|
30
|
+
"linear",
|
|
31
|
+
"ease-in",
|
|
32
|
+
"ease-out",
|
|
33
|
+
"ease-in-out"
|
|
34
|
+
]), l = (e) => c.has(e) ? e.charAt(0).toUpperCase() + e.slice(1) : e.replace(/([A-Z])/g, " $1").replace(/^./, (e) => e.toUpperCase()), u = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, d = (e, t) => {
|
|
35
|
+
let n = t[e];
|
|
36
|
+
return c.has(e) || !n ? e : u(n);
|
|
37
|
+
}, f = (e) => Object.keys(e).map((t) => ({
|
|
38
|
+
label: l(t),
|
|
39
|
+
value: d(t, e)
|
|
40
|
+
})), p = /^cubic-bezier\(\s*([-\d.]+)\s*,\s*([-\d.]+)\s*,\s*([-\d.]+)\s*,\s*([-\d.]+)\s*\)$/i, m = (e, t) => {
|
|
41
|
+
let n = p.exec(e.trim());
|
|
42
|
+
return n ? [
|
|
43
|
+
Number(n[1]),
|
|
44
|
+
Number(n[2]),
|
|
45
|
+
Number(n[3]),
|
|
46
|
+
Number(n[4])
|
|
47
|
+
] : t[e.trim()];
|
|
48
|
+
}, h = [
|
|
49
|
+
{
|
|
50
|
+
label: "Common",
|
|
51
|
+
options: [
|
|
52
|
+
{
|
|
53
|
+
label: "All Properties",
|
|
54
|
+
value: "all"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
label: "Opacity",
|
|
58
|
+
value: "opacity"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
label: "Transform",
|
|
62
|
+
value: "transform"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
label: "Filter",
|
|
66
|
+
value: "filter"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
label: "Margin",
|
|
70
|
+
value: "margin"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
label: "Padding",
|
|
74
|
+
value: "padding"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
label: "Border",
|
|
78
|
+
value: "border"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
label: "Flex",
|
|
82
|
+
value: "flex"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
label: "Color & background",
|
|
88
|
+
options: [
|
|
89
|
+
{
|
|
90
|
+
label: "Color",
|
|
91
|
+
value: "color"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
label: "Background Color",
|
|
95
|
+
value: "background-color"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
label: "Background Position",
|
|
99
|
+
value: "background-position"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
label: "Box Shadow",
|
|
103
|
+
value: "box-shadow"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
label: "Text Shadow",
|
|
107
|
+
value: "text-shadow"
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
label: "Size",
|
|
113
|
+
options: [
|
|
114
|
+
{
|
|
115
|
+
label: "Width",
|
|
116
|
+
value: "width"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
label: "Height",
|
|
120
|
+
value: "height"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
label: "Max Width",
|
|
124
|
+
value: "max-width"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
label: "Max Height",
|
|
128
|
+
value: "max-height"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
label: "Min Width",
|
|
132
|
+
value: "min-width"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
label: "Min Height",
|
|
136
|
+
value: "min-height"
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
label: "Borders",
|
|
142
|
+
options: [
|
|
143
|
+
{
|
|
144
|
+
label: "Border Radius",
|
|
145
|
+
value: "border-radius"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
label: "Border Color",
|
|
149
|
+
value: "border-color"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
label: "Border Width",
|
|
153
|
+
value: "border-width"
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
label: "Typography",
|
|
159
|
+
options: [
|
|
160
|
+
{
|
|
161
|
+
label: "Font Size",
|
|
162
|
+
value: "font-size"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
label: "Line Height",
|
|
166
|
+
value: "line-height"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
label: "Letter Spacing",
|
|
170
|
+
value: "letter-spacing"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
label: "Text Indent",
|
|
174
|
+
value: "text-indent"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
label: "Word Spacing",
|
|
178
|
+
value: "word-spacing"
|
|
179
|
+
}
|
|
180
|
+
]
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
label: "Position",
|
|
184
|
+
options: [
|
|
185
|
+
{
|
|
186
|
+
label: "Top",
|
|
187
|
+
value: "top"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
label: "Left",
|
|
191
|
+
value: "left"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
label: "Bottom",
|
|
195
|
+
value: "bottom"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
label: "Right",
|
|
199
|
+
value: "right"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
label: "Z Index",
|
|
203
|
+
value: "z-index"
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
label: "Margin",
|
|
209
|
+
options: [
|
|
210
|
+
{
|
|
211
|
+
label: "Margin Top",
|
|
212
|
+
value: "margin-top"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
label: "Margin Right",
|
|
216
|
+
value: "margin-right"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
label: "Margin Bottom",
|
|
220
|
+
value: "margin-bottom"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
label: "Margin Left",
|
|
224
|
+
value: "margin-left"
|
|
225
|
+
}
|
|
226
|
+
]
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
label: "Padding",
|
|
230
|
+
options: [
|
|
231
|
+
{
|
|
232
|
+
label: "Padding Top",
|
|
233
|
+
value: "padding-top"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
label: "Padding Right",
|
|
237
|
+
value: "padding-right"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
label: "Padding Bottom",
|
|
241
|
+
value: "padding-bottom"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
label: "Padding Left",
|
|
245
|
+
value: "padding-left"
|
|
246
|
+
}
|
|
247
|
+
]
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
label: "Flex",
|
|
251
|
+
options: [
|
|
252
|
+
{
|
|
253
|
+
label: "Flex Grow",
|
|
254
|
+
value: "flex-grow"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
label: "Flex Shrink",
|
|
258
|
+
value: "flex-shrink"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
label: "Flex Basis",
|
|
262
|
+
value: "flex-basis"
|
|
263
|
+
}
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
], g = (e) => h.some((t) => t.options.some((t) => t.value === e));
|
|
267
|
+
//#endregion
|
|
268
|
+
export { t as DEFAULT_TRANSITION, h as TRANSITION_PROPERTY_GROUPS, u as bezierCss, d as easingCss, m as easingCurve, f as easingOptions, g as isListedProperty, a as parseTransition, s as serializeTransition, o as transitionSummary };
|
|
@@ -2,75 +2,76 @@ import e from "../../StyleInspectorContext.mjs";
|
|
|
2
2
|
import t from "../../hooks/useInspectorValues.mjs";
|
|
3
3
|
import n from "../../components/CategoryOption/index.mjs";
|
|
4
4
|
import r from "../../components/CategorySection/index.mjs";
|
|
5
|
-
import i from "../../
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import u from "
|
|
9
|
-
import d from "@plitzi/plitzi-ui/icons/
|
|
10
|
-
import f from "@plitzi/plitzi-ui/icons/
|
|
11
|
-
import p from "@plitzi/plitzi-ui/icons/
|
|
12
|
-
import m from "@plitzi/plitzi-ui/icons/
|
|
13
|
-
import h from "@plitzi/plitzi-ui/icons/
|
|
14
|
-
import g from "@plitzi/plitzi-ui/icons/
|
|
5
|
+
import { LIST_KEYS as i } from "../../categoryKeys.mjs";
|
|
6
|
+
import a from "../../components/CategoryContainer/index.mjs";
|
|
7
|
+
import { memo as o, use as s, useCallback as c, useMemo as l } from "react";
|
|
8
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
9
|
+
import d from "@plitzi/plitzi-ui/icons/XMark";
|
|
10
|
+
import f from "@plitzi/plitzi-ui/icons/ListCircles";
|
|
11
|
+
import p from "@plitzi/plitzi-ui/icons/ListDots";
|
|
12
|
+
import m from "@plitzi/plitzi-ui/icons/ListLetters";
|
|
13
|
+
import h from "@plitzi/plitzi-ui/icons/ListNumbers";
|
|
14
|
+
import g from "@plitzi/plitzi-ui/icons/ListRoman";
|
|
15
|
+
import _ from "@plitzi/plitzi-ui/icons/ListSquares";
|
|
15
16
|
//#region src/components/StyleInspector/categories/List/List.tsx
|
|
16
|
-
var
|
|
17
|
-
let { setValue: D } =
|
|
18
|
-
keys:
|
|
17
|
+
var v = "none", y = "circle", b = "decimal", x = "disc", S = "square", C = "lower-alpha", w = "lower-roman", T = o(({ replaceTokens: o = !1, isCollapsed: T = !0, onCollapse: E }) => {
|
|
18
|
+
let { setValue: D } = s(e), { "list-style": O } = t({
|
|
19
|
+
keys: i.dot,
|
|
19
20
|
asValue: !0,
|
|
20
|
-
replaceTokens:
|
|
21
|
-
}), k =
|
|
22
|
-
{
|
|
23
|
-
value: _,
|
|
24
|
-
icon: /* @__PURE__ */ l(u, {}),
|
|
25
|
-
description: "",
|
|
26
|
-
active: O === _
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
value: b,
|
|
30
|
-
icon: /* @__PURE__ */ l(f, {}),
|
|
31
|
-
description: "",
|
|
32
|
-
active: O === b
|
|
33
|
-
},
|
|
21
|
+
replaceTokens: o
|
|
22
|
+
}), k = c((e) => E?.("list", e), [E]), A = c((e) => D("list-style", e), [D]), j = l(() => [
|
|
34
23
|
{
|
|
35
24
|
value: v,
|
|
36
|
-
icon: /* @__PURE__ */
|
|
25
|
+
icon: /* @__PURE__ */ u(d, {}),
|
|
37
26
|
description: "",
|
|
38
27
|
active: O === v
|
|
39
28
|
},
|
|
40
29
|
{
|
|
41
30
|
value: x,
|
|
42
|
-
icon: /* @__PURE__ */
|
|
31
|
+
icon: /* @__PURE__ */ u(p, {}),
|
|
43
32
|
description: "",
|
|
44
33
|
active: O === x
|
|
45
34
|
},
|
|
46
35
|
{
|
|
47
36
|
value: y,
|
|
48
|
-
icon: /* @__PURE__ */
|
|
37
|
+
icon: /* @__PURE__ */ u(f, {}),
|
|
49
38
|
description: "",
|
|
50
39
|
active: O === y
|
|
51
40
|
},
|
|
52
41
|
{
|
|
53
42
|
value: S,
|
|
54
|
-
icon: /* @__PURE__ */
|
|
43
|
+
icon: /* @__PURE__ */ u(_, {}),
|
|
55
44
|
description: "",
|
|
56
45
|
active: O === S
|
|
57
46
|
},
|
|
47
|
+
{
|
|
48
|
+
value: b,
|
|
49
|
+
icon: /* @__PURE__ */ u(h, {}),
|
|
50
|
+
description: "",
|
|
51
|
+
active: O === b
|
|
52
|
+
},
|
|
58
53
|
{
|
|
59
54
|
value: C,
|
|
60
|
-
icon: /* @__PURE__ */
|
|
55
|
+
icon: /* @__PURE__ */ u(m, {}),
|
|
61
56
|
description: "",
|
|
62
57
|
active: O === C
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
value: w,
|
|
61
|
+
icon: /* @__PURE__ */ u(g, {}),
|
|
62
|
+
description: "",
|
|
63
|
+
active: O === w
|
|
63
64
|
}
|
|
64
65
|
], [O]);
|
|
65
|
-
return /* @__PURE__ */
|
|
66
|
-
title:
|
|
67
|
-
dotKeys:
|
|
66
|
+
return /* @__PURE__ */ u(a, {
|
|
67
|
+
title: i.title,
|
|
68
|
+
dotKeys: i.dot,
|
|
68
69
|
isCollapsed: T,
|
|
69
70
|
onCollapse: k,
|
|
70
|
-
children: /* @__PURE__ */
|
|
71
|
-
keys:
|
|
71
|
+
children: /* @__PURE__ */ u(r, {
|
|
72
|
+
keys: i.dot,
|
|
72
73
|
label: "Style",
|
|
73
|
-
children: /* @__PURE__ */
|
|
74
|
+
children: /* @__PURE__ */ u(n, {
|
|
74
75
|
onChange: A,
|
|
75
76
|
type: "iconGroup",
|
|
76
77
|
items: j
|
|
@@ -2,75 +2,75 @@ import e from "../../StyleInspectorContext.mjs";
|
|
|
2
2
|
import t from "../../hooks/useInspectorValues.mjs";
|
|
3
3
|
import n from "../../components/CategoryOption/index.mjs";
|
|
4
4
|
import r from "../../components/CategorySection/index.mjs";
|
|
5
|
-
import i from "../../
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import u from "
|
|
9
|
-
import d from "@plitzi/plitzi-ui/icons/
|
|
10
|
-
import f from "@plitzi/plitzi-ui/icons/
|
|
11
|
-
import p from "@plitzi/plitzi-ui/icons/
|
|
12
|
-
import m from "@plitzi/plitzi-ui/icons/
|
|
13
|
-
import h from "@plitzi/plitzi-ui/icons/
|
|
14
|
-
import g from "@plitzi/plitzi-ui/icons/
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
let { setValue: b } =
|
|
18
|
-
keys:
|
|
5
|
+
import { LIST_ITEM_KEYS as i } from "../../categoryKeys.mjs";
|
|
6
|
+
import a from "../../components/CategoryContainer/index.mjs";
|
|
7
|
+
import { memo as o, use as s, useCallback as c, useMemo as l } from "react";
|
|
8
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
9
|
+
import d from "@plitzi/plitzi-ui/icons/XMark";
|
|
10
|
+
import f from "@plitzi/plitzi-ui/icons/ListCircles";
|
|
11
|
+
import p from "@plitzi/plitzi-ui/icons/ListDots";
|
|
12
|
+
import m from "@plitzi/plitzi-ui/icons/ListLetters";
|
|
13
|
+
import h from "@plitzi/plitzi-ui/icons/ListNumbers";
|
|
14
|
+
import g from "@plitzi/plitzi-ui/icons/ListRoman";
|
|
15
|
+
import _ from "@plitzi/plitzi-ui/icons/ListSquares";
|
|
16
|
+
var v = o(({ replaceTokens: o = !1, isCollapsed: v = !0, onCollapse: y }) => {
|
|
17
|
+
let { setValue: b } = s(e), { "list-style-type": x } = t({
|
|
18
|
+
keys: i.dot,
|
|
19
19
|
asValue: !0,
|
|
20
|
-
replaceTokens:
|
|
21
|
-
}), S =
|
|
20
|
+
replaceTokens: o
|
|
21
|
+
}), S = c((e) => y?.("listItem", e), [y]), C = c((e) => b("list-style-type", e), [b]), w = l(() => [
|
|
22
22
|
{
|
|
23
23
|
value: "none",
|
|
24
|
-
icon: /* @__PURE__ */
|
|
24
|
+
icon: /* @__PURE__ */ u(d, {}),
|
|
25
25
|
description: "",
|
|
26
26
|
active: x === "none"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
value: "disc",
|
|
30
|
-
icon: /* @__PURE__ */
|
|
30
|
+
icon: /* @__PURE__ */ u(p, {}),
|
|
31
31
|
description: "",
|
|
32
32
|
active: x === "disc"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
value: "circle",
|
|
36
|
-
icon: /* @__PURE__ */
|
|
36
|
+
icon: /* @__PURE__ */ u(f, {}),
|
|
37
37
|
description: "",
|
|
38
38
|
active: x === "circle"
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
value: "square",
|
|
42
|
-
icon: /* @__PURE__ */
|
|
42
|
+
icon: /* @__PURE__ */ u(_, {}),
|
|
43
43
|
description: "",
|
|
44
44
|
active: x === "square"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
value: "decimal",
|
|
48
|
-
icon: /* @__PURE__ */
|
|
48
|
+
icon: /* @__PURE__ */ u(h, {}),
|
|
49
49
|
description: "",
|
|
50
50
|
active: x === "decimal"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
value: "lower-alpha",
|
|
54
|
-
icon: /* @__PURE__ */
|
|
54
|
+
icon: /* @__PURE__ */ u(m, {}),
|
|
55
55
|
description: "",
|
|
56
56
|
active: x === "lower-alpha"
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
value: "lower-roman",
|
|
60
|
-
icon: /* @__PURE__ */
|
|
60
|
+
icon: /* @__PURE__ */ u(g, {}),
|
|
61
61
|
description: "",
|
|
62
62
|
active: x === "lower-roman"
|
|
63
63
|
}
|
|
64
64
|
], [x]);
|
|
65
|
-
return /* @__PURE__ */
|
|
66
|
-
title:
|
|
67
|
-
dotKeys:
|
|
65
|
+
return /* @__PURE__ */ u(a, {
|
|
66
|
+
title: i.title,
|
|
67
|
+
dotKeys: i.dot,
|
|
68
68
|
isCollapsed: v,
|
|
69
69
|
onCollapse: S,
|
|
70
|
-
children: /* @__PURE__ */
|
|
71
|
-
keys:
|
|
70
|
+
children: /* @__PURE__ */ u(r, {
|
|
71
|
+
keys: i.dot,
|
|
72
72
|
label: "Style",
|
|
73
|
-
children: /* @__PURE__ */
|
|
73
|
+
children: /* @__PURE__ */ u(n, {
|
|
74
74
|
onChange: C,
|
|
75
75
|
type: "iconGroup",
|
|
76
76
|
items: w
|
|
@@ -1,104 +1,82 @@
|
|
|
1
1
|
import e from "../../StyleInspectorContext.mjs";
|
|
2
2
|
import t from "../../hooks/useInspectorValues.mjs";
|
|
3
|
-
import n from "../../
|
|
4
|
-
import r from "../../components/
|
|
5
|
-
import i from "
|
|
6
|
-
import a from "./
|
|
7
|
-
import o from "./
|
|
8
|
-
import s from "./
|
|
9
|
-
import c from "./
|
|
10
|
-
import l from "./
|
|
11
|
-
import u from "./
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
var
|
|
16
|
-
"touch-action",
|
|
17
|
-
|
|
18
|
-
"appearance",
|
|
19
|
-
"scroll-behavior",
|
|
20
|
-
"overscroll-behavior",
|
|
21
|
-
"scroll-snap-type",
|
|
22
|
-
"scroll-snap-align",
|
|
23
|
-
"scroll-snap-stop",
|
|
24
|
-
"scroll-padding-top",
|
|
25
|
-
"scroll-margin-top",
|
|
26
|
-
"accent-color",
|
|
27
|
-
"caret-color",
|
|
28
|
-
"color-scheme",
|
|
29
|
-
"scrollbar-width",
|
|
30
|
-
"scrollbar-color",
|
|
31
|
-
"border-collapse",
|
|
32
|
-
"border-spacing",
|
|
33
|
-
"table-layout",
|
|
34
|
-
"fill",
|
|
35
|
-
"stroke",
|
|
36
|
-
"stroke-width"
|
|
37
|
-
], v = d(({ replaceTokens: d = !1, isCollapsed: v = !0, onCollapse: y }) => {
|
|
38
|
-
let { setValue: b } = f(e), { "pointer-events": x, "user-select": S, "touch-action": C, resize: w, appearance: T, "scroll-behavior": E, "overscroll-behavior": D, "scroll-snap-type": O, "scroll-snap-align": k, "scroll-snap-stop": A, "scroll-padding-top": j, "scroll-margin-top": M, "accent-color": N, "caret-color": P, "color-scheme": F, "scrollbar-width": I, "scrollbar-color": L, "outline-width": R, "outline-style": z, "outline-color": B, "outline-offset": V, "border-collapse": H, "border-spacing": U, "table-layout": W, fill: G, stroke: K, "stroke-width": q } = t({
|
|
39
|
-
keys: g,
|
|
3
|
+
import { OTHERS_KEYS as n } from "../../categoryKeys.mjs";
|
|
4
|
+
import r from "../../components/CategoryAdvanced/index.mjs";
|
|
5
|
+
import i from "../../components/CategoryContainer/index.mjs";
|
|
6
|
+
import a from "./OthersForm.mjs";
|
|
7
|
+
import o from "./OthersInteraction.mjs";
|
|
8
|
+
import s from "./OthersOutline.mjs";
|
|
9
|
+
import c from "./OthersScrollbar.mjs";
|
|
10
|
+
import l from "./OthersScrollSnap.mjs";
|
|
11
|
+
import u from "./OthersSvg.mjs";
|
|
12
|
+
import d from "./OthersTable.mjs";
|
|
13
|
+
import { memo as f, use as p, useCallback as m } from "react";
|
|
14
|
+
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
15
|
+
var _ = f(({ replaceTokens: f = !1, isCollapsed: _ = !0, onCollapse: v }) => {
|
|
16
|
+
let { setValue: y } = p(e), { "pointer-events": b, "user-select": x, "touch-action": S, resize: C, appearance: w, "scroll-behavior": T, "overscroll-behavior": E, "scroll-snap-type": D, "scroll-snap-align": O, "scroll-snap-stop": k, "scroll-padding-top": A, "scroll-margin-top": j, "accent-color": M, "caret-color": N, "color-scheme": P, "scrollbar-width": F, "scrollbar-color": I, "outline-width": L, "outline-style": R, "outline-color": z, "outline-offset": B, "border-collapse": V, "border-spacing": H, "table-layout": U, fill: W, stroke: G, "stroke-width": K } = t({
|
|
17
|
+
keys: n.dot,
|
|
40
18
|
asValue: !0,
|
|
41
|
-
replaceTokens:
|
|
42
|
-
}),
|
|
43
|
-
return /* @__PURE__ */
|
|
44
|
-
title:
|
|
45
|
-
dotKeys:
|
|
46
|
-
advancedKeys:
|
|
47
|
-
isCollapsed:
|
|
48
|
-
onCollapse:
|
|
19
|
+
replaceTokens: f
|
|
20
|
+
}), q = m((e) => v?.("others", e), [v]), J = m((e) => (t) => y(e, t), [y]);
|
|
21
|
+
return /* @__PURE__ */ g(i, {
|
|
22
|
+
title: n.title,
|
|
23
|
+
dotKeys: n.dot,
|
|
24
|
+
advancedKeys: n.advanced,
|
|
25
|
+
isCollapsed: _,
|
|
26
|
+
onCollapse: q,
|
|
49
27
|
children: [
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
pointerEvents:
|
|
52
|
-
userSelect:
|
|
53
|
-
touchAction:
|
|
54
|
-
resize:
|
|
55
|
-
appearance:
|
|
56
|
-
scrollBehavior:
|
|
57
|
-
overscrollBehavior:
|
|
58
|
-
onChange:
|
|
28
|
+
/* @__PURE__ */ h(o, {
|
|
29
|
+
pointerEvents: b,
|
|
30
|
+
userSelect: x,
|
|
31
|
+
touchAction: S,
|
|
32
|
+
resize: C,
|
|
33
|
+
appearance: w,
|
|
34
|
+
scrollBehavior: T,
|
|
35
|
+
overscrollBehavior: E,
|
|
36
|
+
onChange: J
|
|
59
37
|
}),
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
-
outlineWidth:
|
|
62
|
-
outlineStyle:
|
|
63
|
-
outlineColor:
|
|
64
|
-
outlineOffset:
|
|
65
|
-
onChange:
|
|
38
|
+
/* @__PURE__ */ h(s, {
|
|
39
|
+
outlineWidth: L,
|
|
40
|
+
outlineStyle: R,
|
|
41
|
+
outlineColor: z,
|
|
42
|
+
outlineOffset: B,
|
|
43
|
+
onChange: J
|
|
66
44
|
}),
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
-
scrollbarWidth:
|
|
70
|
-
scrollbarColor:
|
|
71
|
-
onChange:
|
|
45
|
+
/* @__PURE__ */ g(r, { children: [
|
|
46
|
+
/* @__PURE__ */ h(c, {
|
|
47
|
+
scrollbarWidth: F,
|
|
48
|
+
scrollbarColor: I,
|
|
49
|
+
onChange: J
|
|
72
50
|
}),
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
-
scrollSnapType:
|
|
75
|
-
scrollSnapAlign:
|
|
76
|
-
scrollSnapStop:
|
|
77
|
-
scrollPaddingTop:
|
|
78
|
-
scrollMarginTop:
|
|
79
|
-
onChange:
|
|
51
|
+
/* @__PURE__ */ h(l, {
|
|
52
|
+
scrollSnapType: D,
|
|
53
|
+
scrollSnapAlign: O,
|
|
54
|
+
scrollSnapStop: k,
|
|
55
|
+
scrollPaddingTop: A,
|
|
56
|
+
scrollMarginTop: j,
|
|
57
|
+
onChange: J
|
|
80
58
|
}),
|
|
81
|
-
/* @__PURE__ */
|
|
82
|
-
accentColor:
|
|
83
|
-
caretColor:
|
|
84
|
-
colorScheme:
|
|
85
|
-
onChange:
|
|
59
|
+
/* @__PURE__ */ h(a, {
|
|
60
|
+
accentColor: M,
|
|
61
|
+
caretColor: N,
|
|
62
|
+
colorScheme: P,
|
|
63
|
+
onChange: J
|
|
86
64
|
}),
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
-
borderCollapse:
|
|
89
|
-
borderSpacing:
|
|
90
|
-
tableLayout:
|
|
91
|
-
onChange:
|
|
65
|
+
/* @__PURE__ */ h(d, {
|
|
66
|
+
borderCollapse: V,
|
|
67
|
+
borderSpacing: H,
|
|
68
|
+
tableLayout: U,
|
|
69
|
+
onChange: J
|
|
92
70
|
}),
|
|
93
|
-
/* @__PURE__ */
|
|
94
|
-
fill:
|
|
95
|
-
stroke:
|
|
96
|
-
strokeWidth:
|
|
97
|
-
onChange:
|
|
71
|
+
/* @__PURE__ */ h(u, {
|
|
72
|
+
fill: W,
|
|
73
|
+
stroke: G,
|
|
74
|
+
strokeWidth: K,
|
|
75
|
+
onChange: J
|
|
98
76
|
})
|
|
99
77
|
] })
|
|
100
78
|
]
|
|
101
79
|
});
|
|
102
80
|
});
|
|
103
81
|
//#endregion
|
|
104
|
-
export {
|
|
82
|
+
export { _ as default };
|