@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.
Files changed (149) hide show
  1. package/CHANGELOG.md +180 -0
  2. package/dist/components/InputEasing/InputEasingButton.mjs +1 -1
  3. package/dist/components/InputEasing/InputEasingList.mjs +5 -5
  4. package/dist/components/Selector/Selector.mjs +2 -1
  5. package/dist/components/Selector/SelectorItem/ItemOptions.mjs +45 -41
  6. package/dist/components/Selector/SelectorItem/SelectorItem.mjs +4 -4
  7. package/dist/components/Selector/SelectorItem/helpers.d.ts +2 -0
  8. package/dist/components/Selector/SelectorItem/helpers.mjs +4 -0
  9. package/dist/components/StyleInspector/Inspector.mjs +185 -171
  10. package/dist/components/StyleInspector/InspectorSearchContext.d.ts +3 -0
  11. package/dist/components/StyleInspector/InspectorSearchContext.mjs +6 -0
  12. package/dist/components/StyleInspector/StyleInspector.mjs +154 -128
  13. package/dist/components/StyleInspector/categories/Background/Background.mjs +82 -114
  14. package/dist/components/StyleInspector/categories/Background/components/BackgroundAttachment/BackgroundAttachment.d.ts +8 -0
  15. package/dist/components/StyleInspector/categories/Background/components/BackgroundAttachment/BackgroundAttachment.mjs +53 -0
  16. package/dist/components/StyleInspector/categories/Background/components/BackgroundAttachment/index.d.ts +3 -0
  17. package/dist/components/StyleInspector/categories/Background/components/BackgroundAttachment/index.mjs +5 -0
  18. package/dist/components/StyleInspector/categories/Background/components/BackgroundLayer/BackgroundLayer.mjs +159 -153
  19. package/dist/components/StyleInspector/categories/Background/components/BackgroundLayer/helpers.d.ts +11 -0
  20. package/dist/components/StyleInspector/categories/Background/components/BackgroundLayer/helpers.mjs +45 -0
  21. package/dist/components/StyleInspector/categories/Background/components/BackgroundPosition/BackgroundPosition.mjs +26 -23
  22. package/dist/components/StyleInspector/categories/Background/components/BackgroundSize/BackgroundSize.mjs +65 -56
  23. package/dist/components/StyleInspector/categories/Background/components/BackgroundSize/helpers.d.ts +4 -0
  24. package/dist/components/StyleInspector/categories/Background/components/BackgroundSize/helpers.mjs +8 -0
  25. package/dist/components/StyleInspector/categories/Background/components/BackgroundTile/BackgroundTile.mjs +28 -27
  26. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientPreviewBar.d.ts +4 -2
  27. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientPreviewBar.mjs +19 -18
  28. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopBar.d.ts +4 -0
  29. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopBar.mjs +48 -80
  30. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopEditor.d.ts +5 -3
  31. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopEditor.mjs +51 -41
  32. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopHandle.d.ts +5 -1
  33. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopHandle.mjs +54 -32
  34. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopTrack.d.ts +3 -1
  35. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopTrack.mjs +14 -13
  36. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/helpers.d.ts +8 -0
  37. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/helpers.mjs +8 -0
  38. package/dist/components/StyleInspector/categories/Background/components/LayerGroup/LayerGroup.d.ts +8 -0
  39. package/dist/components/StyleInspector/categories/Background/components/LayerGroup/LayerGroup.mjs +11 -0
  40. package/dist/components/StyleInspector/categories/Background/components/LayerGroup/index.d.ts +3 -0
  41. package/dist/components/StyleInspector/categories/Background/components/LayerGroup/index.mjs +5 -0
  42. package/dist/components/StyleInspector/categories/Background/helpers/backgroundParser.d.ts +21 -7
  43. package/dist/components/StyleInspector/categories/Background/helpers/backgroundParser.mjs +114 -113
  44. package/dist/components/StyleInspector/categories/Background/helpers/layerValues.d.ts +8 -0
  45. package/dist/components/StyleInspector/categories/Background/helpers/layerValues.mjs +11 -0
  46. package/dist/components/StyleInspector/categories/Background/modes/ConicGradientMode.mjs +52 -87
  47. package/dist/components/StyleInspector/categories/Background/modes/ImageMode.mjs +16 -77
  48. package/dist/components/StyleInspector/categories/Background/modes/LinearGradientMode.mjs +19 -62
  49. package/dist/components/StyleInspector/categories/Background/modes/RadialGradientMode.mjs +79 -97
  50. package/dist/components/StyleInspector/categories/Background/modes/RawMode.d.ts +8 -0
  51. package/dist/components/StyleInspector/categories/Background/modes/RawMode.mjs +22 -0
  52. package/dist/components/StyleInspector/categories/Background/modes/helpers.d.ts +19 -0
  53. package/dist/components/StyleInspector/categories/Background/modes/helpers.mjs +54 -0
  54. package/dist/components/StyleInspector/categories/Border/Border.mjs +26 -43
  55. package/dist/components/StyleInspector/categories/Border/BorderPlacements.mjs +60 -51
  56. package/dist/components/StyleInspector/categories/Display/Display.mjs +32 -49
  57. package/dist/components/StyleInspector/categories/DisplayFlexChild/DisplayFlexChild.mjs +33 -38
  58. package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadow.mjs +21 -33
  59. package/dist/components/StyleInspector/categories/Effects/Effects.mjs +131 -154
  60. package/dist/components/StyleInspector/categories/Effects/Filters/Filter.mjs +23 -31
  61. package/dist/components/StyleInspector/categories/Effects/Filters/FilterItem.d.ts +9 -5
  62. package/dist/components/StyleInspector/categories/Effects/Filters/FilterItem.mjs +57 -124
  63. package/dist/components/StyleInspector/categories/Effects/Filters/helpers.d.ts +25 -0
  64. package/dist/components/StyleInspector/categories/Effects/Filters/helpers.mjs +87 -0
  65. package/dist/components/StyleInspector/categories/Effects/Transform/Transform.mjs +18 -28
  66. package/dist/components/StyleInspector/categories/Effects/Transform/TransformItem.d.ts +1 -2
  67. package/dist/components/StyleInspector/categories/Effects/Transform/TransformItem.mjs +52 -76
  68. package/dist/components/StyleInspector/categories/Effects/Transform/transformFunctions.d.ts +5 -0
  69. package/dist/components/StyleInspector/categories/Effects/Transform/transformFunctions.mjs +8 -2
  70. package/dist/components/StyleInspector/categories/Effects/Transition/Transition.mjs +21 -37
  71. package/dist/components/StyleInspector/categories/Effects/Transition/TransitionEasing.d.ts +10 -0
  72. package/dist/components/StyleInspector/categories/Effects/Transition/TransitionEasing.mjs +92 -0
  73. package/dist/components/StyleInspector/categories/Effects/Transition/TransitionItem.d.ts +4 -4
  74. package/dist/components/StyleInspector/categories/Effects/Transition/TransitionItem.mjs +78 -359
  75. package/dist/components/StyleInspector/categories/Effects/Transition/helpers.d.ts +39 -0
  76. package/dist/components/StyleInspector/categories/Effects/Transition/helpers.mjs +268 -0
  77. package/dist/components/StyleInspector/categories/List/List.mjs +39 -38
  78. package/dist/components/StyleInspector/categories/ListItem/ListItem.mjs +29 -29
  79. package/dist/components/StyleInspector/categories/Others/Others.mjs +66 -88
  80. package/dist/components/StyleInspector/categories/Position/Position.mjs +67 -75
  81. package/dist/components/StyleInspector/categories/RawStyle/RawStyle.mjs +19 -18
  82. package/dist/components/StyleInspector/categories/Size/Size.mjs +68 -88
  83. package/dist/components/StyleInspector/categories/Spacing/Spacing.mjs +18 -27
  84. package/dist/components/StyleInspector/categories/Spacing/SpacingMargin.mjs +2 -2
  85. package/dist/components/StyleInspector/categories/Spacing/SpacingPadding.mjs +4 -3
  86. package/dist/components/StyleInspector/categories/Typography/Typography.mjs +88 -98
  87. package/dist/components/StyleInspector/categories/Typography/TypographyFont.mjs +1 -1
  88. package/dist/components/StyleInspector/categories/Typography/TypographyStyle.mjs +1 -1
  89. package/dist/components/StyleInspector/categories/Typography/TypographyTextShadow.mjs +26 -39
  90. package/dist/components/StyleInspector/categories/Variables/Variables.mjs +38 -37
  91. package/dist/components/StyleInspector/categoryKeys.d.ts +45 -0
  92. package/dist/components/StyleInspector/categoryKeys.mjs +220 -0
  93. package/dist/components/StyleInspector/components/CategoryContainer/CategoryContainer.mjs +43 -38
  94. package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionIconGroup.mjs +2 -1
  95. package/dist/components/StyleInspector/components/CategorySection/CategorySection.mjs +30 -15
  96. package/dist/components/StyleInspector/components/ColorSwatch/ColorSwatch.d.ts +8 -0
  97. package/dist/components/StyleInspector/components/ColorSwatch/ColorSwatch.mjs +23 -0
  98. package/dist/components/StyleInspector/components/ColorSwatch/helpers.d.ts +3 -0
  99. package/dist/components/StyleInspector/components/ColorSwatch/helpers.mjs +9 -0
  100. package/dist/components/StyleInspector/components/ColorSwatch/index.d.ts +3 -0
  101. package/dist/components/StyleInspector/components/ColorSwatch/index.mjs +5 -0
  102. package/dist/components/StyleInspector/components/InspectorDots/InspectorDots.d.ts +1 -0
  103. package/dist/components/StyleInspector/components/InspectorDots/InspectorDots.mjs +11 -11
  104. package/dist/components/StyleInspector/components/InspectorFooter/InspectorFooter.d.ts +11 -0
  105. package/dist/components/StyleInspector/components/InspectorFooter/InspectorFooter.mjs +38 -0
  106. package/dist/components/StyleInspector/components/InspectorFooter/helpers.d.ts +2 -0
  107. package/dist/components/StyleInspector/components/InspectorFooter/helpers.mjs +11 -0
  108. package/dist/components/StyleInspector/components/InspectorFooter/index.d.ts +3 -0
  109. package/dist/components/StyleInspector/components/InspectorFooter/index.mjs +5 -0
  110. package/dist/components/StyleInspector/components/InspectorLabel/InspectorLabel.mjs +34 -31
  111. package/dist/components/StyleInspector/components/InspectorLabel/helpers.d.ts +17 -0
  112. package/dist/components/StyleInspector/components/InspectorLabel/helpers.mjs +16 -0
  113. package/dist/components/StyleInspector/components/InspectorSearch/InspectorSearch.d.ts +7 -0
  114. package/dist/components/StyleInspector/components/InspectorSearch/InspectorSearch.mjs +24 -0
  115. package/dist/components/StyleInspector/components/InspectorSearch/index.d.ts +3 -0
  116. package/dist/components/StyleInspector/components/InspectorSearch/index.mjs +5 -0
  117. package/dist/components/StyleInspector/components/ShadowItem/ShadowItem.d.ts +9 -0
  118. package/dist/components/StyleInspector/components/ShadowItem/ShadowItem.mjs +110 -0
  119. package/dist/components/StyleInspector/components/ShadowItem/index.d.ts +3 -0
  120. package/dist/components/StyleInspector/components/ShadowItem/index.mjs +5 -0
  121. package/dist/components/StyleInspector/components/TargetSummary/TargetSummary.d.ts +7 -0
  122. package/dist/components/StyleInspector/components/TargetSummary/TargetSummary.mjs +24 -0
  123. package/dist/components/StyleInspector/components/TargetSummary/index.d.ts +3 -0
  124. package/dist/components/StyleInspector/components/TargetSummary/index.mjs +5 -0
  125. package/dist/components/StyleInspector/components/ValueList/ValueList.d.ts +12 -0
  126. package/dist/components/StyleInspector/components/ValueList/ValueList.mjs +25 -0
  127. package/dist/components/StyleInspector/components/ValueList/index.d.ts +3 -0
  128. package/dist/components/StyleInspector/components/ValueList/index.mjs +5 -0
  129. package/dist/components/StyleInspector/components/ValueListItem/ValueListItem.d.ts +16 -0
  130. package/dist/components/StyleInspector/components/ValueListItem/ValueListItem.mjs +71 -0
  131. package/dist/components/StyleInspector/components/ValueListItem/index.d.ts +3 -0
  132. package/dist/components/StyleInspector/components/ValueListItem/index.mjs +5 -0
  133. package/dist/components/StyleInspector/cssValues.d.ts +15 -0
  134. package/dist/components/StyleInspector/cssValues.mjs +27 -0
  135. package/dist/components/StyleInspector/helpers.d.ts +17 -1
  136. package/dist/components/StyleInspector/helpers.mjs +9 -2
  137. package/dist/components/StyleInspector/hooks/useInspectorValues.mjs +42 -45
  138. package/dist/components/StyleInspector/search.d.ts +11 -0
  139. package/dist/components/StyleInspector/search.mjs +14 -0
  140. package/dist/components/StyleInspector/shadowValue.d.ts +20 -0
  141. package/dist/components/StyleInspector/shadowValue.mjs +36 -0
  142. package/dist/components/StyleManager/StyleSelectorTag.mjs +1 -1
  143. package/package.json +185 -17
  144. package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadowItem.d.ts +0 -8
  145. package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadowItem.mjs +0 -132
  146. package/dist/components/StyleInspector/categories/Effects/BoxShadow/helpers.d.ts +0 -2
  147. package/dist/components/StyleInspector/categories/Effects/BoxShadow/helpers.mjs +0 -18
  148. package/dist/components/StyleInspector/categories/Typography/TypographyTextShadowItem.d.ts +0 -8
  149. 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 "../../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";
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 _ = "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,
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: 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
- },
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__ */ l(d, {}),
25
+ icon: /* @__PURE__ */ u(d, {}),
37
26
  description: "",
38
27
  active: O === v
39
28
  },
40
29
  {
41
30
  value: x,
42
- icon: /* @__PURE__ */ l(g, {}),
31
+ icon: /* @__PURE__ */ u(p, {}),
43
32
  description: "",
44
33
  active: O === x
45
34
  },
46
35
  {
47
36
  value: y,
48
- icon: /* @__PURE__ */ l(m, {}),
37
+ icon: /* @__PURE__ */ u(f, {}),
49
38
  description: "",
50
39
  active: O === y
51
40
  },
52
41
  {
53
42
  value: S,
54
- icon: /* @__PURE__ */ l(p, {}),
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__ */ l(h, {}),
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__ */ l(i, {
66
- title: "List",
67
- dotKeys: w,
66
+ return /* @__PURE__ */ u(a, {
67
+ title: i.title,
68
+ dotKeys: i.dot,
68
69
  isCollapsed: T,
69
70
  onCollapse: k,
70
- children: /* @__PURE__ */ l(r, {
71
- keys: w,
71
+ children: /* @__PURE__ */ u(r, {
72
+ keys: i.dot,
72
73
  label: "Style",
73
- children: /* @__PURE__ */ l(n, {
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 "../../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 { 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: a
21
- }), S = s((e) => y?.("listItem", e), [y]), C = s((e) => b("list-style-type", e), [b]), w = c(() => [
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__ */ l(u, {}),
24
+ icon: /* @__PURE__ */ u(d, {}),
25
25
  description: "",
26
26
  active: x === "none"
27
27
  },
28
28
  {
29
29
  value: "disc",
30
- icon: /* @__PURE__ */ l(f, {}),
30
+ icon: /* @__PURE__ */ u(p, {}),
31
31
  description: "",
32
32
  active: x === "disc"
33
33
  },
34
34
  {
35
35
  value: "circle",
36
- icon: /* @__PURE__ */ l(d, {}),
36
+ icon: /* @__PURE__ */ u(f, {}),
37
37
  description: "",
38
38
  active: x === "circle"
39
39
  },
40
40
  {
41
41
  value: "square",
42
- icon: /* @__PURE__ */ l(g, {}),
42
+ icon: /* @__PURE__ */ u(_, {}),
43
43
  description: "",
44
44
  active: x === "square"
45
45
  },
46
46
  {
47
47
  value: "decimal",
48
- icon: /* @__PURE__ */ l(m, {}),
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__ */ l(p, {}),
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__ */ l(h, {}),
60
+ icon: /* @__PURE__ */ u(g, {}),
61
61
  description: "",
62
62
  active: x === "lower-roman"
63
63
  }
64
64
  ], [x]);
65
- return /* @__PURE__ */ l(i, {
66
- title: "List Item",
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__ */ l(r, {
71
- keys: _,
70
+ children: /* @__PURE__ */ u(r, {
71
+ keys: i.dot,
72
72
  label: "Style",
73
- children: /* @__PURE__ */ l(n, {
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 "../../components/CategoryAdvanced/index.mjs";
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";
13
- 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,
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: d
42
- }), J = p((e) => y?.("others", e), [y]), Y = p((e) => (t) => b(e, t), [b]);
43
- return /* @__PURE__ */ h(r, {
44
- title: "Others",
45
- dotKeys: g,
46
- advancedKeys: _,
47
- isCollapsed: v,
48
- onCollapse: J,
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__ */ 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
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__ */ m(o, {
61
- outlineWidth: R,
62
- outlineStyle: z,
63
- outlineColor: B,
64
- outlineOffset: V,
65
- onChange: Y
38
+ /* @__PURE__ */ h(s, {
39
+ outlineWidth: L,
40
+ outlineStyle: R,
41
+ outlineColor: z,
42
+ outlineOffset: B,
43
+ onChange: J
66
44
  }),
67
- /* @__PURE__ */ h(n, { children: [
68
- /* @__PURE__ */ m(s, {
69
- scrollbarWidth: I,
70
- scrollbarColor: L,
71
- onChange: Y
45
+ /* @__PURE__ */ g(r, { children: [
46
+ /* @__PURE__ */ h(c, {
47
+ scrollbarWidth: F,
48
+ scrollbarColor: I,
49
+ onChange: J
72
50
  }),
73
- /* @__PURE__ */ m(c, {
74
- scrollSnapType: O,
75
- scrollSnapAlign: k,
76
- scrollSnapStop: A,
77
- scrollPaddingTop: j,
78
- scrollMarginTop: M,
79
- onChange: Y
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__ */ m(i, {
82
- accentColor: N,
83
- caretColor: P,
84
- colorScheme: F,
85
- onChange: Y
59
+ /* @__PURE__ */ h(a, {
60
+ accentColor: M,
61
+ caretColor: N,
62
+ colorScheme: P,
63
+ onChange: J
86
64
  }),
87
- /* @__PURE__ */ m(u, {
88
- borderCollapse: H,
89
- borderSpacing: U,
90
- tableLayout: W,
91
- onChange: Y
65
+ /* @__PURE__ */ h(d, {
66
+ borderCollapse: V,
67
+ borderSpacing: H,
68
+ tableLayout: U,
69
+ onChange: J
92
70
  }),
93
- /* @__PURE__ */ m(l, {
94
- fill: G,
95
- stroke: K,
96
- strokeWidth: q,
97
- onChange: Y
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 { v as default };
82
+ export { _ as default };