@plitzi/sdk-style 0.38.10 → 0.38.12

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 (173) hide show
  1. package/CHANGELOG.md +289 -0
  2. package/dist/StyleMap/helpers/isValueValid.mjs +5 -4
  3. package/dist/StyleMap/helpers/utils.mjs +13 -12
  4. package/dist/components/InputEasing/InputEasingButton.mjs +1 -1
  5. package/dist/components/InputEasing/InputEasingList.mjs +5 -5
  6. package/dist/components/Selector/Selector.mjs +2 -1
  7. package/dist/components/Selector/SelectorItem/ItemOptions.mjs +45 -41
  8. package/dist/components/Selector/SelectorItem/SelectorItem.mjs +4 -4
  9. package/dist/components/Selector/SelectorItem/helpers.d.ts +2 -0
  10. package/dist/components/Selector/SelectorItem/helpers.mjs +4 -0
  11. package/dist/components/StyleInspector/Inspector.mjs +185 -171
  12. package/dist/components/StyleInspector/InspectorSearchContext.d.ts +3 -0
  13. package/dist/components/StyleInspector/InspectorSearchContext.mjs +6 -0
  14. package/dist/components/StyleInspector/StyleInspector.mjs +213 -187
  15. package/dist/components/StyleInspector/categories/Background/Background.mjs +84 -177
  16. package/dist/components/StyleInspector/categories/Background/components/BackgroundAttachment/BackgroundAttachment.d.ts +8 -0
  17. package/dist/components/StyleInspector/categories/Background/components/BackgroundAttachment/BackgroundAttachment.mjs +53 -0
  18. package/dist/components/StyleInspector/categories/Background/components/BackgroundAttachment/index.d.ts +3 -0
  19. package/dist/components/StyleInspector/categories/Background/components/BackgroundAttachment/index.mjs +5 -0
  20. package/dist/components/StyleInspector/categories/Background/components/BackgroundLayer/BackgroundLayer.mjs +159 -153
  21. package/dist/components/StyleInspector/categories/Background/components/BackgroundLayer/helpers.d.ts +11 -0
  22. package/dist/components/StyleInspector/categories/Background/components/BackgroundLayer/helpers.mjs +45 -0
  23. package/dist/components/StyleInspector/categories/Background/components/BackgroundPosition/BackgroundPosition.mjs +26 -23
  24. package/dist/components/StyleInspector/categories/Background/components/BackgroundSize/BackgroundSize.mjs +65 -56
  25. package/dist/components/StyleInspector/categories/Background/components/BackgroundSize/helpers.d.ts +4 -0
  26. package/dist/components/StyleInspector/categories/Background/components/BackgroundSize/helpers.mjs +8 -0
  27. package/dist/components/StyleInspector/categories/Background/components/BackgroundTile/BackgroundTile.mjs +28 -27
  28. package/dist/components/StyleInspector/categories/Background/components/GradientCenter/GradientCenter.d.ts +8 -0
  29. package/dist/components/StyleInspector/categories/Background/components/GradientCenter/GradientCenter.mjs +28 -0
  30. package/dist/components/StyleInspector/categories/Background/components/GradientCenter/index.d.ts +3 -0
  31. package/dist/components/StyleInspector/categories/Background/components/GradientCenter/index.mjs +5 -0
  32. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientPreviewBar.d.ts +4 -2
  33. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientPreviewBar.mjs +19 -18
  34. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopBar.d.ts +4 -0
  35. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopBar.mjs +48 -80
  36. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopEditor.d.ts +5 -3
  37. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopEditor.mjs +51 -41
  38. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopHandle.d.ts +5 -1
  39. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopHandle.mjs +54 -32
  40. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopTrack.d.ts +3 -1
  41. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopTrack.mjs +14 -13
  42. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/helpers.d.ts +8 -0
  43. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/helpers.mjs +8 -0
  44. package/dist/components/StyleInspector/categories/Background/components/LayerGroup/LayerGroup.d.ts +8 -0
  45. package/dist/components/StyleInspector/categories/Background/components/LayerGroup/LayerGroup.mjs +11 -0
  46. package/dist/components/StyleInspector/categories/Background/components/LayerGroup/index.d.ts +3 -0
  47. package/dist/components/StyleInspector/categories/Background/components/LayerGroup/index.mjs +5 -0
  48. package/dist/components/StyleInspector/categories/Background/helpers/backgroundParser.d.ts +21 -7
  49. package/dist/components/StyleInspector/categories/Background/helpers/backgroundParser.mjs +114 -113
  50. package/dist/components/StyleInspector/categories/Background/helpers/layerValues.d.ts +8 -0
  51. package/dist/components/StyleInspector/categories/Background/helpers/layerValues.mjs +11 -0
  52. package/dist/components/StyleInspector/categories/Background/modes/ConicGradientMode.mjs +22 -79
  53. package/dist/components/StyleInspector/categories/Background/modes/ImageMode.mjs +16 -77
  54. package/dist/components/StyleInspector/categories/Background/modes/LinearGradientMode.mjs +19 -62
  55. package/dist/components/StyleInspector/categories/Background/modes/RadialGradientMode.mjs +58 -98
  56. package/dist/components/StyleInspector/categories/Background/modes/RawMode.d.ts +8 -0
  57. package/dist/components/StyleInspector/categories/Background/modes/RawMode.mjs +22 -0
  58. package/dist/components/StyleInspector/categories/Background/modes/helpers.d.ts +19 -0
  59. package/dist/components/StyleInspector/categories/Background/modes/helpers.mjs +54 -0
  60. package/dist/components/StyleInspector/categories/Border/Border.mjs +26 -43
  61. package/dist/components/StyleInspector/categories/Border/BorderPlacements.mjs +60 -51
  62. package/dist/components/StyleInspector/categories/Display/Display.mjs +65 -81
  63. package/dist/components/StyleInspector/categories/Display/DisplayGap.d.ts +14 -1
  64. package/dist/components/StyleInspector/categories/Display/DisplayGap.mjs +26 -13
  65. package/dist/components/StyleInspector/categories/DisplayFlexChild/DisplayFlexChild.mjs +33 -38
  66. package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadow.mjs +13 -36
  67. package/dist/components/StyleInspector/categories/Effects/Effects.mjs +120 -204
  68. package/dist/components/StyleInspector/categories/Effects/Filters/Filter.mjs +23 -31
  69. package/dist/components/StyleInspector/categories/Effects/Filters/FilterItem.d.ts +9 -5
  70. package/dist/components/StyleInspector/categories/Effects/Filters/FilterItem.mjs +57 -124
  71. package/dist/components/StyleInspector/categories/Effects/Filters/helpers.d.ts +25 -0
  72. package/dist/components/StyleInspector/categories/Effects/Filters/helpers.mjs +87 -0
  73. package/dist/components/StyleInspector/categories/Effects/Transform/Transform.mjs +18 -28
  74. package/dist/components/StyleInspector/categories/Effects/Transform/TransformItem.d.ts +1 -2
  75. package/dist/components/StyleInspector/categories/Effects/Transform/TransformItem.mjs +52 -76
  76. package/dist/components/StyleInspector/categories/Effects/Transform/transformFunctions.d.ts +5 -0
  77. package/dist/components/StyleInspector/categories/Effects/Transform/transformFunctions.mjs +8 -2
  78. package/dist/components/StyleInspector/categories/Effects/Transition/Transition.mjs +21 -37
  79. package/dist/components/StyleInspector/categories/Effects/Transition/TransitionEasing.d.ts +10 -0
  80. package/dist/components/StyleInspector/categories/Effects/Transition/TransitionEasing.mjs +92 -0
  81. package/dist/components/StyleInspector/categories/Effects/Transition/TransitionItem.d.ts +4 -4
  82. package/dist/components/StyleInspector/categories/Effects/Transition/TransitionItem.mjs +78 -359
  83. package/dist/components/StyleInspector/categories/Effects/Transition/helpers.d.ts +39 -0
  84. package/dist/components/StyleInspector/categories/Effects/Transition/helpers.mjs +268 -0
  85. package/dist/components/StyleInspector/categories/List/List.mjs +21 -70
  86. package/dist/components/StyleInspector/categories/ListItem/ListItem.mjs +21 -70
  87. package/dist/components/StyleInspector/categories/Others/Others.mjs +63 -85
  88. package/dist/components/StyleInspector/categories/Position/Position.mjs +67 -75
  89. package/dist/components/StyleInspector/categories/RawStyle/RawStyle.mjs +19 -18
  90. package/dist/components/StyleInspector/categories/Size/Size.mjs +65 -85
  91. package/dist/components/StyleInspector/categories/Spacing/Spacing.mjs +18 -27
  92. package/dist/components/StyleInspector/categories/Spacing/SpacingBox.d.ts +15 -0
  93. package/dist/components/StyleInspector/categories/Spacing/SpacingBox.mjs +63 -0
  94. package/dist/components/StyleInspector/categories/Spacing/SpacingMargin.d.ts +3 -11
  95. package/dist/components/StyleInspector/categories/Spacing/SpacingMargin.mjs +18 -70
  96. package/dist/components/StyleInspector/categories/Spacing/SpacingPadding.d.ts +3 -7
  97. package/dist/components/StyleInspector/categories/Spacing/SpacingPadding.mjs +16 -67
  98. package/dist/components/StyleInspector/categories/Typography/Typography.mjs +58 -67
  99. package/dist/components/StyleInspector/categories/Typography/TypographyFont.mjs +1 -1
  100. package/dist/components/StyleInspector/categories/Typography/TypographyStyle.mjs +1 -1
  101. package/dist/components/StyleInspector/categories/Typography/TypographyTextShadow.mjs +16 -40
  102. package/dist/components/StyleInspector/categories/Variables/Variables.mjs +38 -37
  103. package/dist/components/StyleInspector/categories/blendModes.d.ts +2 -0
  104. package/dist/components/StyleInspector/categories/blendModes.mjs +21 -0
  105. package/dist/components/StyleInspector/categories/listMarkers.d.ts +8 -0
  106. package/dist/components/StyleInspector/categories/listMarkers.mjs +25 -0
  107. package/dist/components/StyleInspector/categoryKeys.d.ts +45 -0
  108. package/dist/components/StyleInspector/categoryKeys.mjs +220 -0
  109. package/dist/components/StyleInspector/components/CategoryContainer/CategoryContainer.mjs +43 -38
  110. package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionIconGroup.mjs +2 -1
  111. package/dist/components/StyleInspector/components/CategorySection/CategorySection.mjs +30 -15
  112. package/dist/components/StyleInspector/components/ColorSwatch/ColorSwatch.d.ts +8 -0
  113. package/dist/components/StyleInspector/components/ColorSwatch/ColorSwatch.mjs +23 -0
  114. package/dist/components/StyleInspector/components/ColorSwatch/helpers.d.ts +3 -0
  115. package/dist/components/StyleInspector/components/ColorSwatch/helpers.mjs +9 -0
  116. package/dist/components/StyleInspector/components/ColorSwatch/index.d.ts +3 -0
  117. package/dist/components/StyleInspector/components/ColorSwatch/index.mjs +5 -0
  118. package/dist/components/StyleInspector/components/InspectorDots/InspectorDots.d.ts +1 -0
  119. package/dist/components/StyleInspector/components/InspectorDots/InspectorDots.mjs +11 -11
  120. package/dist/components/StyleInspector/components/InspectorFooter/InspectorFooter.d.ts +11 -0
  121. package/dist/components/StyleInspector/components/InspectorFooter/InspectorFooter.mjs +38 -0
  122. package/dist/components/StyleInspector/components/InspectorFooter/helpers.d.ts +2 -0
  123. package/dist/components/StyleInspector/components/InspectorFooter/helpers.mjs +11 -0
  124. package/dist/components/StyleInspector/components/InspectorFooter/index.d.ts +3 -0
  125. package/dist/components/StyleInspector/components/InspectorFooter/index.mjs +5 -0
  126. package/dist/components/StyleInspector/components/InspectorLabel/InspectorLabel.mjs +34 -31
  127. package/dist/components/StyleInspector/components/InspectorLabel/helpers.d.ts +17 -0
  128. package/dist/components/StyleInspector/components/InspectorLabel/helpers.mjs +16 -0
  129. package/dist/components/StyleInspector/components/InspectorSearch/InspectorSearch.d.ts +7 -0
  130. package/dist/components/StyleInspector/components/InspectorSearch/InspectorSearch.mjs +24 -0
  131. package/dist/components/StyleInspector/components/InspectorSearch/index.d.ts +3 -0
  132. package/dist/components/StyleInspector/components/InspectorSearch/index.mjs +5 -0
  133. package/dist/components/StyleInspector/components/ShadowItem/ShadowItem.d.ts +9 -0
  134. package/dist/components/StyleInspector/components/ShadowItem/ShadowItem.mjs +110 -0
  135. package/dist/components/StyleInspector/components/ShadowItem/index.d.ts +3 -0
  136. package/dist/components/StyleInspector/components/ShadowItem/index.mjs +5 -0
  137. package/dist/components/StyleInspector/components/ShadowList/ShadowList.d.ts +15 -0
  138. package/dist/components/StyleInspector/components/ShadowList/ShadowList.mjs +25 -0
  139. package/dist/components/StyleInspector/components/ShadowList/index.d.ts +3 -0
  140. package/dist/components/StyleInspector/components/ShadowList/index.mjs +5 -0
  141. package/dist/components/StyleInspector/components/TargetSummary/TargetSummary.d.ts +7 -0
  142. package/dist/components/StyleInspector/components/TargetSummary/TargetSummary.mjs +24 -0
  143. package/dist/components/StyleInspector/components/TargetSummary/index.d.ts +3 -0
  144. package/dist/components/StyleInspector/components/TargetSummary/index.mjs +5 -0
  145. package/dist/components/StyleInspector/components/ValueList/ValueList.d.ts +12 -0
  146. package/dist/components/StyleInspector/components/ValueList/ValueList.mjs +25 -0
  147. package/dist/components/StyleInspector/components/ValueList/index.d.ts +3 -0
  148. package/dist/components/StyleInspector/components/ValueList/index.mjs +5 -0
  149. package/dist/components/StyleInspector/components/ValueListItem/ValueListItem.d.ts +16 -0
  150. package/dist/components/StyleInspector/components/ValueListItem/ValueListItem.mjs +71 -0
  151. package/dist/components/StyleInspector/components/ValueListItem/index.d.ts +3 -0
  152. package/dist/components/StyleInspector/components/ValueListItem/index.mjs +5 -0
  153. package/dist/components/StyleInspector/cssValues.d.ts +13 -0
  154. package/dist/components/StyleInspector/cssValues.mjs +23 -0
  155. package/dist/components/StyleInspector/helpers.d.ts +17 -1
  156. package/dist/components/StyleInspector/helpers.mjs +9 -2
  157. package/dist/components/StyleInspector/hooks/useInspectorValues.mjs +42 -45
  158. package/dist/components/StyleInspector/hooks/usePropertyChange.d.ts +6 -0
  159. package/dist/components/StyleInspector/hooks/usePropertyChange.mjs +9 -0
  160. package/dist/components/StyleInspector/search.d.ts +11 -0
  161. package/dist/components/StyleInspector/search.mjs +14 -0
  162. package/dist/components/StyleInspector/shadowValue.d.ts +20 -0
  163. package/dist/components/StyleInspector/shadowValue.mjs +36 -0
  164. package/dist/components/StyleManager/StyleSelectorTag.mjs +1 -1
  165. package/package.json +225 -21
  166. package/dist/components/StyleInspector/categories/Display/DisplayGridGap.d.ts +0 -8
  167. package/dist/components/StyleInspector/categories/Display/DisplayGridGap.mjs +0 -27
  168. package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadowItem.d.ts +0 -8
  169. package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadowItem.mjs +0 -132
  170. package/dist/components/StyleInspector/categories/Effects/BoxShadow/helpers.d.ts +0 -2
  171. package/dist/components/StyleInspector/categories/Effects/BoxShadow/helpers.mjs +0 -18
  172. package/dist/components/StyleInspector/categories/Typography/TypographyTextShadowItem.d.ts +0 -8
  173. 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,81 +2,32 @@ 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 "../../components/CategoryContainer/index.mjs";
6
- import { memo as a, use as o, useCallback as s, useMemo as c } from "react";
7
- import { jsx as l } from "react/jsx-runtime";
8
- import u from "@plitzi/plitzi-ui/icons/XMark";
9
- import d from "@plitzi/plitzi-ui/icons/ListCircles";
10
- import f from "@plitzi/plitzi-ui/icons/ListDots";
11
- import p from "@plitzi/plitzi-ui/icons/ListLetters";
12
- import m from "@plitzi/plitzi-ui/icons/ListNumbers";
13
- import h from "@plitzi/plitzi-ui/icons/ListRoman";
14
- import g from "@plitzi/plitzi-ui/icons/ListSquares";
15
- //#region src/components/StyleInspector/categories/List/List.tsx
16
- var _ = "none", v = "circle", y = "decimal", b = "disc", x = "square", S = "lower-alpha", C = "lower-roman", w = ["list-style"], T = a(({ replaceTokens: a = !1, isCollapsed: T = !0, onCollapse: E }) => {
17
- let { setValue: D } = o(e), { "list-style": O } = t({
18
- keys: w,
5
+ import { LIST_KEYS as i } from "../../categoryKeys.mjs";
6
+ import a from "../../components/CategoryContainer/index.mjs";
7
+ import { listMarkerItems as o } from "../listMarkers.mjs";
8
+ import { memo as s, use as c, useCallback as l, useMemo as u } from "react";
9
+ import { jsx as d } from "react/jsx-runtime";
10
+ var f = s(({ replaceTokens: s = !1, isCollapsed: f = !0, onCollapse: p }) => {
11
+ let { setValue: m } = c(e), { "list-style": h } = t({
12
+ keys: i.dot,
19
13
  asValue: !0,
20
- replaceTokens: a
21
- }), k = s((e) => E?.("list", e), [E]), A = s((e) => D("list-style", e), [D]), j = c(() => [
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
- },
34
- {
35
- value: v,
36
- icon: /* @__PURE__ */ l(d, {}),
37
- description: "",
38
- active: O === v
39
- },
40
- {
41
- value: x,
42
- icon: /* @__PURE__ */ l(g, {}),
43
- description: "",
44
- active: O === x
45
- },
46
- {
47
- value: y,
48
- icon: /* @__PURE__ */ l(m, {}),
49
- description: "",
50
- active: O === y
51
- },
52
- {
53
- value: S,
54
- icon: /* @__PURE__ */ l(p, {}),
55
- description: "",
56
- active: O === S
57
- },
58
- {
59
- value: C,
60
- icon: /* @__PURE__ */ l(h, {}),
61
- description: "",
62
- active: O === C
63
- }
64
- ], [O]);
65
- return /* @__PURE__ */ l(i, {
66
- title: "List",
67
- dotKeys: w,
68
- isCollapsed: T,
69
- onCollapse: k,
70
- children: /* @__PURE__ */ l(r, {
71
- keys: w,
14
+ replaceTokens: s
15
+ }), g = l((e) => p?.("list", e), [p]), _ = l((e) => m("list-style", e), [m]), v = u(() => o(h), [h]);
16
+ return /* @__PURE__ */ d(a, {
17
+ title: i.title,
18
+ dotKeys: i.dot,
19
+ isCollapsed: f,
20
+ onCollapse: g,
21
+ children: /* @__PURE__ */ d(r, {
22
+ keys: i.dot,
72
23
  label: "Style",
73
- children: /* @__PURE__ */ l(n, {
74
- onChange: A,
24
+ children: /* @__PURE__ */ d(n, {
25
+ onChange: _,
75
26
  type: "iconGroup",
76
- items: j
27
+ items: v
77
28
  })
78
29
  })
79
30
  });
80
31
  });
81
32
  //#endregion
82
- export { T as default };
33
+ export { f as default };
@@ -2,81 +2,32 @@ 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 "../../components/CategoryContainer/index.mjs";
6
- import { memo as a, use as o, useCallback as s, useMemo as c } from "react";
7
- import { jsx as l } from "react/jsx-runtime";
8
- import u from "@plitzi/plitzi-ui/icons/XMark";
9
- import d from "@plitzi/plitzi-ui/icons/ListCircles";
10
- import f from "@plitzi/plitzi-ui/icons/ListDots";
11
- import p from "@plitzi/plitzi-ui/icons/ListLetters";
12
- import m from "@plitzi/plitzi-ui/icons/ListNumbers";
13
- import h from "@plitzi/plitzi-ui/icons/ListRoman";
14
- import g from "@plitzi/plitzi-ui/icons/ListSquares";
15
- //#region src/components/StyleInspector/categories/ListItem/ListItem.tsx
16
- var _ = ["list-style-type"], v = a(({ replaceTokens: a = !1, isCollapsed: v = !0, onCollapse: y }) => {
17
- let { setValue: b } = o(e), { "list-style-type": x } = t({
18
- keys: _,
5
+ import { LIST_ITEM_KEYS as i } from "../../categoryKeys.mjs";
6
+ import a from "../../components/CategoryContainer/index.mjs";
7
+ import { listMarkerItems as o } from "../listMarkers.mjs";
8
+ import { memo as s, use as c, useCallback as l, useMemo as u } from "react";
9
+ import { jsx as d } from "react/jsx-runtime";
10
+ var f = s(({ replaceTokens: s = !1, isCollapsed: f = !0, onCollapse: p }) => {
11
+ let { setValue: m } = c(e), { "list-style-type": h } = t({
12
+ keys: i.dot,
19
13
  asValue: !0,
20
- replaceTokens: a
21
- }), S = s((e) => y?.("listItem", e), [y]), C = s((e) => b("list-style-type", e), [b]), w = c(() => [
22
- {
23
- value: "none",
24
- icon: /* @__PURE__ */ l(u, {}),
25
- description: "",
26
- active: x === "none"
27
- },
28
- {
29
- value: "disc",
30
- icon: /* @__PURE__ */ l(f, {}),
31
- description: "",
32
- active: x === "disc"
33
- },
34
- {
35
- value: "circle",
36
- icon: /* @__PURE__ */ l(d, {}),
37
- description: "",
38
- active: x === "circle"
39
- },
40
- {
41
- value: "square",
42
- icon: /* @__PURE__ */ l(g, {}),
43
- description: "",
44
- active: x === "square"
45
- },
46
- {
47
- value: "decimal",
48
- icon: /* @__PURE__ */ l(m, {}),
49
- description: "",
50
- active: x === "decimal"
51
- },
52
- {
53
- value: "lower-alpha",
54
- icon: /* @__PURE__ */ l(p, {}),
55
- description: "",
56
- active: x === "lower-alpha"
57
- },
58
- {
59
- value: "lower-roman",
60
- icon: /* @__PURE__ */ l(h, {}),
61
- description: "",
62
- active: x === "lower-roman"
63
- }
64
- ], [x]);
65
- return /* @__PURE__ */ l(i, {
66
- title: "List Item",
67
- dotKeys: _,
68
- isCollapsed: v,
69
- onCollapse: S,
70
- children: /* @__PURE__ */ l(r, {
71
- keys: _,
14
+ replaceTokens: s
15
+ }), g = l((e) => p?.("listItem", e), [p]), _ = l((e) => m("list-style-type", e), [m]), v = u(() => o(h), [h]);
16
+ return /* @__PURE__ */ d(a, {
17
+ title: i.title,
18
+ dotKeys: i.dot,
19
+ isCollapsed: f,
20
+ onCollapse: g,
21
+ children: /* @__PURE__ */ d(r, {
22
+ keys: i.dot,
72
23
  label: "Style",
73
- children: /* @__PURE__ */ l(n, {
74
- onChange: C,
24
+ children: /* @__PURE__ */ d(n, {
25
+ onChange: _,
75
26
  type: "iconGroup",
76
- items: w
27
+ items: v
77
28
  })
78
29
  })
79
30
  });
80
31
  });
81
32
  //#endregion
82
- export { v as default };
33
+ export { f as default };
@@ -1,104 +1,82 @@
1
- import e from "../../StyleInspectorContext.mjs";
2
- import t from "../../hooks/useInspectorValues.mjs";
1
+ import e from "../../hooks/useInspectorValues.mjs";
2
+ import { OTHERS_KEYS as t } from "../../categoryKeys.mjs";
3
3
  import n from "../../components/CategoryAdvanced/index.mjs";
4
4
  import r from "../../components/CategoryContainer/index.mjs";
5
- import i from "./OthersForm.mjs";
6
- import a from "./OthersInteraction.mjs";
7
- import o from "./OthersOutline.mjs";
8
- import s from "./OthersScrollbar.mjs";
9
- import c from "./OthersScrollSnap.mjs";
10
- import l from "./OthersSvg.mjs";
11
- import u from "./OthersTable.mjs";
12
- import { memo as d, use as f, useCallback as p } from "react";
5
+ import i from "../../hooks/usePropertyChange.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, useCallback as p } from "react";
13
14
  import { jsx as m, jsxs as h } from "react/jsx-runtime";
14
- //#region src/components/StyleInspector/categories/Others/Others.tsx
15
- var g = /* @__PURE__ */ "pointer-events.user-select.touch-action.resize.appearance.scroll-behavior.overscroll-behavior.scroll-snap-type.scroll-snap-align.scroll-snap-stop.scroll-padding-top.scroll-margin-top.accent-color.caret-color.color-scheme.scrollbar-width.scrollbar-color.outline-width.outline-style.outline-color.outline-offset.border-collapse.border-spacing.table-layout.fill.stroke.stroke-width".split("."), _ = [
16
- "touch-action",
17
- "resize",
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,
15
+ var g = f(({ replaceTokens: f = !1, isCollapsed: g = !0, onCollapse: _ }) => {
16
+ let { "pointer-events": v, "user-select": y, "touch-action": b, resize: x, appearance: S, "scroll-behavior": C, "overscroll-behavior": w, "scroll-snap-type": T, "scroll-snap-align": E, "scroll-snap-stop": D, "scroll-padding-top": O, "scroll-margin-top": k, "accent-color": A, "caret-color": j, "color-scheme": M, "scrollbar-width": N, "scrollbar-color": P, "outline-width": F, "outline-style": I, "outline-color": L, "outline-offset": R, "border-collapse": z, "border-spacing": B, "table-layout": V, fill: H, stroke: U, "stroke-width": W } = e({
17
+ keys: t.dot,
40
18
  asValue: !0,
41
- replaceTokens: d
42
- }), J = p((e) => y?.("others", e), [y]), Y = p((e) => (t) => b(e, t), [b]);
19
+ replaceTokens: f
20
+ }), G = p((e) => _?.("others", e), [_]), K = i();
43
21
  return /* @__PURE__ */ h(r, {
44
- title: "Others",
45
- dotKeys: g,
46
- advancedKeys: _,
47
- isCollapsed: v,
48
- onCollapse: J,
22
+ title: t.title,
23
+ dotKeys: t.dot,
24
+ advancedKeys: t.advanced,
25
+ isCollapsed: g,
26
+ onCollapse: G,
49
27
  children: [
50
- /* @__PURE__ */ m(a, {
51
- pointerEvents: x,
52
- userSelect: S,
53
- touchAction: C,
54
- resize: w,
55
- appearance: T,
56
- scrollBehavior: E,
57
- overscrollBehavior: D,
58
- onChange: Y
59
- }),
60
28
  /* @__PURE__ */ m(o, {
61
- outlineWidth: R,
62
- outlineStyle: z,
63
- outlineColor: B,
64
- outlineOffset: V,
65
- onChange: Y
29
+ pointerEvents: v,
30
+ userSelect: y,
31
+ touchAction: b,
32
+ resize: x,
33
+ appearance: S,
34
+ scrollBehavior: C,
35
+ overscrollBehavior: w,
36
+ onChange: K
37
+ }),
38
+ /* @__PURE__ */ m(s, {
39
+ outlineWidth: F,
40
+ outlineStyle: I,
41
+ outlineColor: L,
42
+ outlineOffset: R,
43
+ onChange: K
66
44
  }),
67
45
  /* @__PURE__ */ h(n, { children: [
68
- /* @__PURE__ */ m(s, {
69
- scrollbarWidth: I,
70
- scrollbarColor: L,
71
- onChange: Y
72
- }),
73
46
  /* @__PURE__ */ m(c, {
74
- scrollSnapType: O,
75
- scrollSnapAlign: k,
76
- scrollSnapStop: A,
77
- scrollPaddingTop: j,
78
- scrollMarginTop: M,
79
- onChange: Y
47
+ scrollbarWidth: N,
48
+ scrollbarColor: P,
49
+ onChange: K
50
+ }),
51
+ /* @__PURE__ */ m(l, {
52
+ scrollSnapType: T,
53
+ scrollSnapAlign: E,
54
+ scrollSnapStop: D,
55
+ scrollPaddingTop: O,
56
+ scrollMarginTop: k,
57
+ onChange: K
80
58
  }),
81
- /* @__PURE__ */ m(i, {
82
- accentColor: N,
83
- caretColor: P,
84
- colorScheme: F,
85
- onChange: Y
59
+ /* @__PURE__ */ m(a, {
60
+ accentColor: A,
61
+ caretColor: j,
62
+ colorScheme: M,
63
+ onChange: K
86
64
  }),
87
- /* @__PURE__ */ m(u, {
88
- borderCollapse: H,
89
- borderSpacing: U,
90
- tableLayout: W,
91
- onChange: Y
65
+ /* @__PURE__ */ m(d, {
66
+ borderCollapse: z,
67
+ borderSpacing: B,
68
+ tableLayout: V,
69
+ onChange: K
92
70
  }),
93
- /* @__PURE__ */ m(l, {
94
- fill: G,
95
- stroke: K,
96
- strokeWidth: q,
97
- onChange: Y
71
+ /* @__PURE__ */ m(u, {
72
+ fill: H,
73
+ stroke: U,
74
+ strokeWidth: W,
75
+ onChange: K
98
76
  })
99
77
  ] })
100
78
  ]
101
79
  });
102
80
  });
103
81
  //#endregion
104
- export { v as default };
82
+ export { g as default };