@plitzi/sdk-style 0.32.19 → 0.32.21

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 (39) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/components/StyleInspector/Inspector.mjs +137 -131
  3. package/dist/components/StyleInspector/categories/Background/Background.mjs +151 -69
  4. package/dist/components/StyleInspector/categories/Effects/Effects.mjs +257 -84
  5. package/dist/components/StyleInspector/categories/Effects/Filters/Filter.d.ts +3 -1
  6. package/dist/components/StyleInspector/categories/Effects/Filters/Filter.mjs +17 -17
  7. package/dist/components/StyleInspector/categories/Others/Others.d.ts +7 -0
  8. package/dist/components/StyleInspector/categories/Others/Others.mjs +103 -0
  9. package/dist/components/StyleInspector/categories/Others/OthersForm.d.ts +9 -0
  10. package/dist/components/StyleInspector/categories/Others/OthersForm.mjs +48 -0
  11. package/dist/components/StyleInspector/categories/Others/OthersInteraction.d.ts +13 -0
  12. package/dist/components/StyleInspector/categories/Others/OthersInteraction.mjs +162 -0
  13. package/dist/components/StyleInspector/categories/Others/OthersOutline.d.ts +10 -0
  14. package/dist/components/StyleInspector/categories/Others/OthersOutline.mjs +75 -0
  15. package/dist/components/StyleInspector/categories/Others/OthersSvg.d.ts +9 -0
  16. package/dist/components/StyleInspector/categories/Others/OthersSvg.mjs +31 -0
  17. package/dist/components/StyleInspector/categories/Others/OthersTable.d.ts +9 -0
  18. package/dist/components/StyleInspector/categories/Others/OthersTable.mjs +44 -0
  19. package/dist/components/StyleInspector/categories/Others/index.d.ts +3 -0
  20. package/dist/components/StyleInspector/categories/Others/index.mjs +5 -0
  21. package/dist/components/StyleInspector/categories/Position/Position.mjs +70 -69
  22. package/dist/components/StyleInspector/categories/Size/Size.mjs +82 -52
  23. package/dist/components/StyleInspector/categories/Typography/Typography.mjs +139 -158
  24. package/dist/components/StyleInspector/categories/Typography/TypographyBreaking.d.ts +12 -0
  25. package/dist/components/StyleInspector/categories/Typography/TypographyBreaking.mjs +181 -0
  26. package/dist/components/StyleInspector/categories/Typography/TypographyClamp.d.ts +7 -0
  27. package/dist/components/StyleInspector/categories/Typography/TypographyClamp.mjs +35 -0
  28. package/dist/components/StyleInspector/categories/Typography/TypographyStyle.d.ts +3 -1
  29. package/dist/components/StyleInspector/categories/Typography/TypographyStyle.mjs +47 -32
  30. package/dist/components/StyleInspector/categories/Typography/TypographyTransform.mjs +10 -11
  31. package/dist/components/StyleInspector/components/CategoryAdvanced/CategoryAdvanced.d.ts +6 -0
  32. package/dist/components/StyleInspector/components/CategoryAdvanced/CategoryAdvanced.mjs +6 -0
  33. package/dist/components/StyleInspector/components/CategoryAdvanced/CategoryAdvancedContext.d.ts +2 -0
  34. package/dist/components/StyleInspector/components/CategoryAdvanced/CategoryAdvancedContext.mjs +5 -0
  35. package/dist/components/StyleInspector/components/CategoryAdvanced/index.d.ts +4 -0
  36. package/dist/components/StyleInspector/components/CategoryAdvanced/index.mjs +6 -0
  37. package/dist/components/StyleInspector/components/CategoryContainer/CategoryContainer.d.ts +2 -1
  38. package/dist/components/StyleInspector/components/CategoryContainer/CategoryContainer.mjs +52 -25
  39. package/package.json +60 -4
@@ -2,219 +2,266 @@ 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 a from "./BoxShadow/index.mjs";
7
- import o from "./Filters/Filter.mjs";
8
- import s from "./Transform/index.mjs";
9
- import c from "./Transition/index.mjs";
10
- import { memo as l, use as u, useCallback as d } from "react";
11
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
5
+ import i from "../../components/CategoryAdvanced/index.mjs";
6
+ import a from "../../components/CategoryContainer/index.mjs";
7
+ import o from "./BoxShadow/index.mjs";
8
+ import s from "./Filters/Filter.mjs";
9
+ import c from "./Transform/index.mjs";
10
+ import l from "./Transition/index.mjs";
11
+ import { memo as u, use as d, useCallback as f } from "react";
12
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
12
13
  //#region src/components/StyleInspector/categories/Effects/Effects.tsx
13
- var m = [
14
+ var h = [
14
15
  "opacity",
16
+ "visibility",
15
17
  "cursor",
16
18
  "transition",
17
19
  "box-shadow",
18
20
  "filter",
19
- "transform"
20
- ], h = l(({ replaceTokens: l = !1, isCollapsed: h = !0, onCollapse: g }) => {
21
- let { setValue: _ } = u(e), { opacity: v, cursor: y, transition: b, "box-shadow": x, filter: S, transform: C } = t({
22
- keys: m,
21
+ "backdrop-filter",
22
+ "mix-blend-mode",
23
+ "isolation",
24
+ "clip-path",
25
+ "transform",
26
+ "transform-origin",
27
+ "perspective",
28
+ "will-change"
29
+ ], g = [
30
+ "transform-origin",
31
+ "perspective",
32
+ "backdrop-filter",
33
+ "mix-blend-mode",
34
+ "isolation",
35
+ "clip-path",
36
+ "will-change"
37
+ ], _ = u(({ replaceTokens: u = !1, isCollapsed: _ = !0, onCollapse: v }) => {
38
+ let { setValue: y } = d(e), { opacity: b, visibility: x, cursor: S, transition: C, "box-shadow": w, filter: T, "backdrop-filter": E, "mix-blend-mode": D, isolation: O, "clip-path": k, transform: A, "transform-origin": j, perspective: M, "will-change": N } = t({
39
+ keys: h,
23
40
  asValue: !0,
24
41
  strictMode: !0,
25
42
  defaultValues: {
26
43
  opacity: "1",
44
+ visibility: "visible",
27
45
  cursor: "auto",
28
46
  transition: void 0,
29
47
  "box-shadow": void 0,
30
48
  filter: void 0,
31
- transform: void 0
49
+ "backdrop-filter": void 0,
50
+ "mix-blend-mode": "normal",
51
+ isolation: "auto",
52
+ "clip-path": void 0,
53
+ transform: void 0,
54
+ "transform-origin": void 0,
55
+ perspective: void 0,
56
+ "will-change": void 0
32
57
  },
33
- replaceTokens: l
34
- }), w = d((e) => g?.("effects", e), [g]), T = d((e) => (t) => _(e, t), [_]);
35
- return /* @__PURE__ */ f(i, {
58
+ replaceTokens: u
59
+ }), P = f((e) => v?.("effects", e), [v]), F = f((e) => (t) => y(e, t), [y]);
60
+ return /* @__PURE__ */ p(a, {
36
61
  title: "Effects",
37
- dotKeys: m,
38
- isCollapsed: h,
39
- onCollapse: w,
40
- children: /* @__PURE__ */ p("div", {
62
+ dotKeys: h,
63
+ advancedKeys: g,
64
+ isCollapsed: _,
65
+ onCollapse: P,
66
+ children: /* @__PURE__ */ m("div", {
41
67
  className: "flex flex-col gap-2",
42
68
  children: [
43
- /* @__PURE__ */ f(r, {
44
- label: "Opacity",
45
- keys: ["opacity"],
46
- children: /* @__PURE__ */ f(n, {
47
- value: v,
48
- onChange: T("opacity"),
69
+ /* @__PURE__ */ m(r, {
70
+ label: "",
71
+ children: [/* @__PURE__ */ p(n, {
72
+ keys: ["opacity"],
73
+ label: "Opacity",
74
+ value: b,
75
+ onChange: F("opacity"),
49
76
  type: "metric"
50
- })
77
+ }), /* @__PURE__ */ m(n, {
78
+ keys: ["visibility"],
79
+ label: "Visibility",
80
+ value: x,
81
+ onChange: F("visibility"),
82
+ type: "select",
83
+ children: [
84
+ /* @__PURE__ */ p("option", {
85
+ value: "visible",
86
+ children: "Visible"
87
+ }),
88
+ /* @__PURE__ */ p("option", {
89
+ value: "hidden",
90
+ children: "Hidden"
91
+ }),
92
+ /* @__PURE__ */ p("option", {
93
+ value: "collapse",
94
+ children: "Collapse"
95
+ })
96
+ ]
97
+ })]
51
98
  }),
52
- /* @__PURE__ */ f(r, {
99
+ /* @__PURE__ */ p(r, {
53
100
  label: "Cursor",
54
101
  keys: ["cursor"],
55
- children: /* @__PURE__ */ p(n, {
56
- value: y,
57
- onChange: T("cursor"),
102
+ children: /* @__PURE__ */ m(n, {
103
+ value: S,
104
+ onChange: F("cursor"),
58
105
  type: "select",
59
106
  children: [
60
- /* @__PURE__ */ p("optgroup", {
107
+ /* @__PURE__ */ m("optgroup", {
61
108
  label: "General",
62
109
  children: [
63
- /* @__PURE__ */ f("option", {
110
+ /* @__PURE__ */ p("option", {
64
111
  value: "auto",
65
112
  children: "Auto"
66
113
  }),
67
- /* @__PURE__ */ f("option", {
114
+ /* @__PURE__ */ p("option", {
68
115
  value: "default",
69
116
  children: "Default"
70
117
  }),
71
- /* @__PURE__ */ f("option", {
118
+ /* @__PURE__ */ p("option", {
72
119
  value: "none",
73
120
  children: "None"
74
121
  })
75
122
  ]
76
123
  }),
77
- /* @__PURE__ */ p("optgroup", {
124
+ /* @__PURE__ */ m("optgroup", {
78
125
  label: "Links & Status",
79
126
  children: [
80
- /* @__PURE__ */ f("option", {
127
+ /* @__PURE__ */ p("option", {
81
128
  value: "pointer",
82
129
  children: "Pointer"
83
130
  }),
84
- /* @__PURE__ */ f("option", {
131
+ /* @__PURE__ */ p("option", {
85
132
  value: "not-allowed",
86
133
  children: "Not Allowed"
87
134
  }),
88
- /* @__PURE__ */ f("option", {
135
+ /* @__PURE__ */ p("option", {
89
136
  value: "wait",
90
137
  children: "Wait"
91
138
  }),
92
- /* @__PURE__ */ f("option", {
139
+ /* @__PURE__ */ p("option", {
93
140
  value: "progress",
94
141
  children: "Progress"
95
142
  }),
96
- /* @__PURE__ */ f("option", {
143
+ /* @__PURE__ */ p("option", {
97
144
  value: "help",
98
145
  children: "Help"
99
146
  }),
100
- /* @__PURE__ */ f("option", {
147
+ /* @__PURE__ */ p("option", {
101
148
  value: "context-menu",
102
149
  children: "Context Menu"
103
150
  })
104
151
  ]
105
152
  }),
106
- /* @__PURE__ */ p("optgroup", {
153
+ /* @__PURE__ */ m("optgroup", {
107
154
  label: "Selection",
108
155
  children: [
109
- /* @__PURE__ */ f("option", {
156
+ /* @__PURE__ */ p("option", {
110
157
  value: "cell",
111
158
  children: "Cell"
112
159
  }),
113
- /* @__PURE__ */ f("option", {
160
+ /* @__PURE__ */ p("option", {
114
161
  value: "crosshair",
115
162
  children: "Crosshair"
116
163
  }),
117
- /* @__PURE__ */ f("option", {
164
+ /* @__PURE__ */ p("option", {
118
165
  value: "text",
119
166
  children: "Text"
120
167
  }),
121
- /* @__PURE__ */ f("option", {
168
+ /* @__PURE__ */ p("option", {
122
169
  value: "vertical-text",
123
170
  children: "Vertical Text"
124
171
  })
125
172
  ]
126
173
  }),
127
- /* @__PURE__ */ p("optgroup", {
174
+ /* @__PURE__ */ m("optgroup", {
128
175
  label: "Drag & Drop",
129
176
  children: [
130
- /* @__PURE__ */ f("option", {
177
+ /* @__PURE__ */ p("option", {
131
178
  value: "grab",
132
179
  children: "Grab"
133
180
  }),
134
- /* @__PURE__ */ f("option", {
181
+ /* @__PURE__ */ p("option", {
135
182
  value: "grabbing",
136
183
  children: "Grabbing"
137
184
  }),
138
- /* @__PURE__ */ f("option", {
185
+ /* @__PURE__ */ p("option", {
139
186
  value: "alias",
140
187
  children: "Alias"
141
188
  }),
142
- /* @__PURE__ */ f("option", {
189
+ /* @__PURE__ */ p("option", {
143
190
  value: "copy",
144
191
  children: "Copy"
145
192
  }),
146
- /* @__PURE__ */ f("option", {
193
+ /* @__PURE__ */ p("option", {
147
194
  value: "move",
148
195
  children: "Move"
149
196
  })
150
197
  ]
151
198
  }),
152
- /* @__PURE__ */ p("optgroup", {
199
+ /* @__PURE__ */ m("optgroup", {
153
200
  label: "Zoom",
154
- children: [/* @__PURE__ */ f("option", {
201
+ children: [/* @__PURE__ */ p("option", {
155
202
  value: "zoom-in",
156
203
  children: "Zoom In"
157
- }), /* @__PURE__ */ f("option", {
204
+ }), /* @__PURE__ */ p("option", {
158
205
  value: "zoom-out",
159
206
  children: "Zoom Out"
160
207
  })]
161
208
  }),
162
- /* @__PURE__ */ p("optgroup", {
209
+ /* @__PURE__ */ m("optgroup", {
163
210
  label: "Resize",
164
211
  children: [
165
- /* @__PURE__ */ f("option", {
212
+ /* @__PURE__ */ p("option", {
166
213
  value: "col-resize",
167
214
  children: "Col Resize"
168
215
  }),
169
- /* @__PURE__ */ f("option", {
216
+ /* @__PURE__ */ p("option", {
170
217
  value: "row-resize",
171
218
  children: "Row Resize"
172
219
  }),
173
- /* @__PURE__ */ f("option", {
220
+ /* @__PURE__ */ p("option", {
174
221
  value: "nesw-resize",
175
222
  children: "NESW Resize"
176
223
  }),
177
- /* @__PURE__ */ f("option", {
224
+ /* @__PURE__ */ p("option", {
178
225
  value: "nwse-resize",
179
226
  children: "NWSE Resize"
180
227
  }),
181
- /* @__PURE__ */ f("option", {
228
+ /* @__PURE__ */ p("option", {
182
229
  value: "ew-resize",
183
230
  children: "EW Resize"
184
231
  }),
185
- /* @__PURE__ */ f("option", {
232
+ /* @__PURE__ */ p("option", {
186
233
  value: "ns-resize",
187
234
  children: "NS Resize"
188
235
  }),
189
- /* @__PURE__ */ f("option", {
236
+ /* @__PURE__ */ p("option", {
190
237
  value: "n-resize",
191
238
  children: "N Resize"
192
239
  }),
193
- /* @__PURE__ */ f("option", {
240
+ /* @__PURE__ */ p("option", {
194
241
  value: "w-resize",
195
242
  children: "W Resize"
196
243
  }),
197
- /* @__PURE__ */ f("option", {
244
+ /* @__PURE__ */ p("option", {
198
245
  value: "s-resize",
199
246
  children: "S Resize"
200
247
  }),
201
- /* @__PURE__ */ f("option", {
248
+ /* @__PURE__ */ p("option", {
202
249
  value: "e-resize",
203
250
  children: "E Resize"
204
251
  }),
205
- /* @__PURE__ */ f("option", {
252
+ /* @__PURE__ */ p("option", {
206
253
  value: "nw-resize",
207
254
  children: "NW Resize"
208
255
  }),
209
- /* @__PURE__ */ f("option", {
256
+ /* @__PURE__ */ p("option", {
210
257
  value: "ne-resize",
211
258
  children: "NE Resize"
212
259
  }),
213
- /* @__PURE__ */ f("option", {
260
+ /* @__PURE__ */ p("option", {
214
261
  value: "sw-resize",
215
262
  children: "SW Resize"
216
263
  }),
217
- /* @__PURE__ */ f("option", {
264
+ /* @__PURE__ */ p("option", {
218
265
  value: "se-resize",
219
266
  children: "SE Resize"
220
267
  })
@@ -223,25 +270,151 @@ var m = [
223
270
  ]
224
271
  })
225
272
  }),
226
- /* @__PURE__ */ f(a, {
227
- onChange: T("box-shadow"),
228
- value: x
273
+ /* @__PURE__ */ p(o, {
274
+ onChange: F("box-shadow"),
275
+ value: w
276
+ }),
277
+ /* @__PURE__ */ p(c, {
278
+ onChange: F("transform"),
279
+ value: A
229
280
  }),
230
- /* @__PURE__ */ f(s, {
231
- onChange: T("transform"),
281
+ /* @__PURE__ */ p(i, { children: /* @__PURE__ */ m(r, {
282
+ label: "",
283
+ children: [/* @__PURE__ */ p(n, {
284
+ keys: ["transform-origin"],
285
+ label: "Origin",
286
+ value: j,
287
+ onChange: F("transform-origin")
288
+ }), /* @__PURE__ */ p(n, {
289
+ keys: ["perspective"],
290
+ label: "Perspective",
291
+ value: M,
292
+ onChange: F("perspective"),
293
+ type: "metric"
294
+ })]
295
+ }) }),
296
+ /* @__PURE__ */ p(l, {
297
+ onChange: F("transition"),
232
298
  value: C
233
299
  }),
234
- /* @__PURE__ */ f(c, {
235
- onChange: T("transition"),
236
- value: b
300
+ /* @__PURE__ */ p(s, {
301
+ onChange: F("filter"),
302
+ value: T
237
303
  }),
238
- /* @__PURE__ */ f(o, {
239
- onChange: T("filter"),
240
- value: S
241
- })
304
+ /* @__PURE__ */ m(i, { children: [
305
+ /* @__PURE__ */ p(s, {
306
+ styleKey: "backdrop-filter",
307
+ label: "Backdrop Filters",
308
+ onChange: F("backdrop-filter"),
309
+ value: E
310
+ }),
311
+ /* @__PURE__ */ m(r, {
312
+ label: "",
313
+ children: [/* @__PURE__ */ m(n, {
314
+ keys: ["mix-blend-mode"],
315
+ label: "Blend",
316
+ value: D,
317
+ onChange: F("mix-blend-mode"),
318
+ type: "select",
319
+ children: [
320
+ /* @__PURE__ */ p("option", {
321
+ value: "normal",
322
+ children: "Normal"
323
+ }),
324
+ /* @__PURE__ */ p("option", {
325
+ value: "multiply",
326
+ children: "Multiply"
327
+ }),
328
+ /* @__PURE__ */ p("option", {
329
+ value: "screen",
330
+ children: "Screen"
331
+ }),
332
+ /* @__PURE__ */ p("option", {
333
+ value: "overlay",
334
+ children: "Overlay"
335
+ }),
336
+ /* @__PURE__ */ p("option", {
337
+ value: "darken",
338
+ children: "Darken"
339
+ }),
340
+ /* @__PURE__ */ p("option", {
341
+ value: "lighten",
342
+ children: "Lighten"
343
+ }),
344
+ /* @__PURE__ */ p("option", {
345
+ value: "color-dodge",
346
+ children: "Color Dodge"
347
+ }),
348
+ /* @__PURE__ */ p("option", {
349
+ value: "color-burn",
350
+ children: "Color Burn"
351
+ }),
352
+ /* @__PURE__ */ p("option", {
353
+ value: "hard-light",
354
+ children: "Hard Light"
355
+ }),
356
+ /* @__PURE__ */ p("option", {
357
+ value: "soft-light",
358
+ children: "Soft Light"
359
+ }),
360
+ /* @__PURE__ */ p("option", {
361
+ value: "difference",
362
+ children: "Difference"
363
+ }),
364
+ /* @__PURE__ */ p("option", {
365
+ value: "exclusion",
366
+ children: "Exclusion"
367
+ }),
368
+ /* @__PURE__ */ p("option", {
369
+ value: "hue",
370
+ children: "Hue"
371
+ }),
372
+ /* @__PURE__ */ p("option", {
373
+ value: "saturation",
374
+ children: "Saturation"
375
+ }),
376
+ /* @__PURE__ */ p("option", {
377
+ value: "color",
378
+ children: "Color"
379
+ }),
380
+ /* @__PURE__ */ p("option", {
381
+ value: "luminosity",
382
+ children: "Luminosity"
383
+ })
384
+ ]
385
+ }), /* @__PURE__ */ m(n, {
386
+ keys: ["isolation"],
387
+ label: "Isolation",
388
+ value: O,
389
+ onChange: F("isolation"),
390
+ type: "select",
391
+ children: [/* @__PURE__ */ p("option", {
392
+ value: "auto",
393
+ children: "Auto"
394
+ }), /* @__PURE__ */ p("option", {
395
+ value: "isolate",
396
+ children: "Isolate"
397
+ })]
398
+ })]
399
+ }),
400
+ /* @__PURE__ */ m(r, {
401
+ label: "",
402
+ children: [/* @__PURE__ */ p(n, {
403
+ keys: ["clip-path"],
404
+ label: "Clip Path",
405
+ value: k,
406
+ onChange: F("clip-path")
407
+ }), /* @__PURE__ */ p(n, {
408
+ keys: ["will-change"],
409
+ label: "Will Change",
410
+ value: N,
411
+ onChange: F("will-change")
412
+ })]
413
+ })
414
+ ] })
242
415
  ]
243
416
  })
244
417
  });
245
418
  });
246
419
  //#endregion
247
- export { h as default };
420
+ export { _ as default };
@@ -1,7 +1,9 @@
1
1
  import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
2
2
  export type FilterProps = {
3
+ styleKey?: StyleCategory;
4
+ label?: string;
3
5
  value?: StyleValue;
4
6
  onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
5
7
  };
6
- declare const Filter: ({ value, onChange }: FilterProps) => import("react").JSX.Element;
8
+ declare const Filter: ({ styleKey, label, value, onChange }: FilterProps) => import("react").JSX.Element;
7
9
  export default Filter;
@@ -4,32 +4,32 @@ import { useCallback as n } from "react";
4
4
  import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
5
5
  import o from "@plitzi/plitzi-ui/Icon";
6
6
  //#region src/components/StyleInspector/categories/Effects/Filters/Filter.tsx
7
- var s = ({ value: s, onChange: c }) => {
8
- let l = [];
9
- s && s !== "" && (l = s.split(" "));
10
- let u = (e) => (t) => {
11
- t.stopPropagation(), t.preventDefault(), l.splice(e, 1), l.length > 0 ? c?.(l.join(" ")) : c?.("");
12
- }, d = (e) => (t) => {
13
- t !== l[e] && (l[e] = t, c?.(l.join(" ")));
14
- }, f = n(() => {
15
- s ? c?.(`${s} blur(5px)`) : c?.("blur(5px)");
16
- }, [s, c]);
7
+ var s = ({ styleKey: s = "filter", label: c = "Filters", value: l, onChange: u }) => {
8
+ let d = [];
9
+ l && l !== "" && (d = l.split(" "));
10
+ let f = (e) => (t) => {
11
+ t.stopPropagation(), t.preventDefault(), d.splice(e, 1), d.length > 0 ? u?.(d.join(" ")) : u?.("");
12
+ }, p = (e) => (t) => {
13
+ t !== d[e] && (d[e] = t, u?.(d.join(" ")));
14
+ }, m = n(() => {
15
+ l ? u?.(`${l} blur(5px)`) : u?.("blur(5px)");
16
+ }, [l, u]);
17
17
  return /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a("div", {
18
18
  className: "flex w-full justify-between",
19
19
  children: [/* @__PURE__ */ i(e, {
20
- keyValue: ["filter"],
21
- children: "Filters"
20
+ keyValue: [s],
21
+ children: c
22
22
  }), /* @__PURE__ */ i(o, {
23
23
  className: "cursor-pointer",
24
24
  icon: "fas fa-plus",
25
- onClick: f
25
+ onClick: m
26
26
  })]
27
- }), l.length > 0 && /* @__PURE__ */ i("div", {
27
+ }), d.length > 0 && /* @__PURE__ */ i("div", {
28
28
  className: "flex flex-col gap-2",
29
- children: l.map((e, n) => /* @__PURE__ */ i(t, {
29
+ children: d.map((e, n) => /* @__PURE__ */ i(t, {
30
30
  value: e,
31
- onChange: d(n),
32
- onRemove: u(n)
31
+ onChange: p(n),
32
+ onRemove: f(n)
33
33
  }, n))
34
34
  })] });
35
35
  };
@@ -0,0 +1,7 @@
1
+ export type OthersProps = {
2
+ replaceTokens?: boolean;
3
+ isCollapsed?: boolean;
4
+ onCollapse?: (category: string, isCollapsed: boolean) => void;
5
+ };
6
+ declare const _default: import('react').MemoExoticComponent<({ replaceTokens, isCollapsed, onCollapse }: OthersProps) => import("react").JSX.Element>;
7
+ export default _default;
@@ -0,0 +1,103 @@
1
+ import e from "../../StyleInspectorContext.mjs";
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 "./OthersSvg.mjs";
9
+ import c from "./OthersTable.mjs";
10
+ import { memo as l, use as u, useCallback as d } from "react";
11
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
12
+ //#region src/components/StyleInspector/categories/Others/Others.tsx
13
+ var m = [
14
+ "pointer-events",
15
+ "user-select",
16
+ "touch-action",
17
+ "resize",
18
+ "appearance",
19
+ "scroll-behavior",
20
+ "overscroll-behavior",
21
+ "accent-color",
22
+ "caret-color",
23
+ "color-scheme",
24
+ "outline-width",
25
+ "outline-style",
26
+ "outline-color",
27
+ "outline-offset",
28
+ "border-collapse",
29
+ "border-spacing",
30
+ "table-layout",
31
+ "fill",
32
+ "stroke",
33
+ "stroke-width"
34
+ ], h = [
35
+ "touch-action",
36
+ "resize",
37
+ "appearance",
38
+ "scroll-behavior",
39
+ "overscroll-behavior",
40
+ "accent-color",
41
+ "caret-color",
42
+ "color-scheme",
43
+ "border-collapse",
44
+ "border-spacing",
45
+ "table-layout",
46
+ "fill",
47
+ "stroke",
48
+ "stroke-width"
49
+ ], g = l(({ replaceTokens: l = !1, isCollapsed: g = !0, onCollapse: _ }) => {
50
+ let { setValue: v } = u(e), { "pointer-events": y, "user-select": b, "touch-action": x, resize: S, appearance: C, "scroll-behavior": w, "overscroll-behavior": T, "accent-color": E, "caret-color": D, "color-scheme": O, "outline-width": k, "outline-style": A, "outline-color": j, "outline-offset": M, "border-collapse": N, "border-spacing": P, "table-layout": F, fill: I, stroke: L, "stroke-width": R } = t({
51
+ keys: m,
52
+ asValue: !0,
53
+ replaceTokens: l
54
+ }), z = d((e) => _?.("others", e), [_]), B = d((e) => (t) => v(e, t), [v]);
55
+ return /* @__PURE__ */ p(r, {
56
+ title: "Others",
57
+ dotKeys: m,
58
+ advancedKeys: h,
59
+ isCollapsed: g,
60
+ onCollapse: z,
61
+ children: [
62
+ /* @__PURE__ */ f(a, {
63
+ pointerEvents: y,
64
+ userSelect: b,
65
+ touchAction: x,
66
+ resize: S,
67
+ appearance: C,
68
+ scrollBehavior: w,
69
+ overscrollBehavior: T,
70
+ onChange: B
71
+ }),
72
+ /* @__PURE__ */ f(o, {
73
+ outlineWidth: k,
74
+ outlineStyle: A,
75
+ outlineColor: j,
76
+ outlineOffset: M,
77
+ onChange: B
78
+ }),
79
+ /* @__PURE__ */ p(n, { children: [
80
+ /* @__PURE__ */ f(i, {
81
+ accentColor: E,
82
+ caretColor: D,
83
+ colorScheme: O,
84
+ onChange: B
85
+ }),
86
+ /* @__PURE__ */ f(c, {
87
+ borderCollapse: N,
88
+ borderSpacing: P,
89
+ tableLayout: F,
90
+ onChange: B
91
+ }),
92
+ /* @__PURE__ */ f(s, {
93
+ fill: I,
94
+ stroke: L,
95
+ strokeWidth: R,
96
+ onChange: B
97
+ })
98
+ ] })
99
+ ]
100
+ });
101
+ });
102
+ //#endregion
103
+ export { g as default };