@plitzi/sdk-style 0.32.20 → 0.32.22

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
@@ -0,0 +1,9 @@
1
+ import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
2
+ export type OthersFormProps = {
3
+ accentColor?: StyleValue;
4
+ caretColor?: StyleValue;
5
+ colorScheme?: StyleValue;
6
+ onChange?: (category: StyleCategory) => (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
7
+ };
8
+ declare const OthersForm: ({ accentColor, caretColor, colorScheme, onChange }: OthersFormProps) => import("react").JSX.Element;
9
+ export default OthersForm;
@@ -0,0 +1,48 @@
1
+ import e from "../../components/CategoryOption/index.mjs";
2
+ import t from "../../components/CategorySection/index.mjs";
3
+ import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
4
+ //#region src/components/StyleInspector/categories/Others/OthersForm.tsx
5
+ var a = ({ accentColor: a, caretColor: o, colorScheme: s, onChange: c }) => /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ i(t, {
6
+ label: "",
7
+ children: [/* @__PURE__ */ r(e, {
8
+ keys: ["accent-color"],
9
+ label: "Accent",
10
+ type: "color",
11
+ value: a,
12
+ onChange: c?.("accent-color")
13
+ }), /* @__PURE__ */ r(e, {
14
+ keys: ["caret-color"],
15
+ label: "Caret",
16
+ type: "color",
17
+ value: o,
18
+ onChange: c?.("caret-color")
19
+ })]
20
+ }), /* @__PURE__ */ r(t, {
21
+ label: "Color Scheme",
22
+ keys: ["color-scheme"],
23
+ children: /* @__PURE__ */ i(e, {
24
+ value: s,
25
+ onChange: c?.("color-scheme"),
26
+ type: "select",
27
+ children: [
28
+ /* @__PURE__ */ r("option", {
29
+ value: "normal",
30
+ children: "Normal"
31
+ }),
32
+ /* @__PURE__ */ r("option", {
33
+ value: "light",
34
+ children: "Light"
35
+ }),
36
+ /* @__PURE__ */ r("option", {
37
+ value: "dark",
38
+ children: "Dark"
39
+ }),
40
+ /* @__PURE__ */ r("option", {
41
+ value: "light dark",
42
+ children: "Light Dark"
43
+ })
44
+ ]
45
+ })
46
+ })] });
47
+ //#endregion
48
+ export { a as default };
@@ -0,0 +1,13 @@
1
+ import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
2
+ export type OthersInteractionProps = {
3
+ pointerEvents?: StyleValue;
4
+ userSelect?: StyleValue;
5
+ touchAction?: StyleValue;
6
+ resize?: StyleValue;
7
+ appearance?: StyleValue;
8
+ scrollBehavior?: StyleValue;
9
+ overscrollBehavior?: StyleValue;
10
+ onChange?: (category: StyleCategory) => (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
11
+ };
12
+ declare const OthersInteraction: ({ pointerEvents, userSelect, touchAction, resize, appearance, scrollBehavior, overscrollBehavior, onChange }: OthersInteractionProps) => import("react").JSX.Element;
13
+ export default OthersInteraction;
@@ -0,0 +1,162 @@
1
+ import e from "../../components/CategoryOption/index.mjs";
2
+ import t from "../../components/CategorySection/index.mjs";
3
+ import n from "../../components/CategoryAdvanced/index.mjs";
4
+ import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
5
+ //#region src/components/StyleInspector/categories/Others/OthersInteraction.tsx
6
+ var o = ({ pointerEvents: o, userSelect: s, touchAction: c, resize: l, appearance: u, scrollBehavior: d, overscrollBehavior: f, onChange: p }) => /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a(t, {
7
+ label: "",
8
+ children: [/* @__PURE__ */ a(e, {
9
+ keys: ["pointer-events"],
10
+ label: "Pointer",
11
+ value: o,
12
+ onChange: p?.("pointer-events"),
13
+ type: "select",
14
+ children: [/* @__PURE__ */ i("option", {
15
+ value: "auto",
16
+ children: "Auto"
17
+ }), /* @__PURE__ */ i("option", {
18
+ value: "none",
19
+ children: "None"
20
+ })]
21
+ }), /* @__PURE__ */ a(e, {
22
+ keys: ["user-select"],
23
+ label: "Selection",
24
+ value: s,
25
+ onChange: p?.("user-select"),
26
+ type: "select",
27
+ children: [
28
+ /* @__PURE__ */ i("option", {
29
+ value: "auto",
30
+ children: "Auto"
31
+ }),
32
+ /* @__PURE__ */ i("option", {
33
+ value: "none",
34
+ children: "None"
35
+ }),
36
+ /* @__PURE__ */ i("option", {
37
+ value: "text",
38
+ children: "Text"
39
+ }),
40
+ /* @__PURE__ */ i("option", {
41
+ value: "all",
42
+ children: "All"
43
+ }),
44
+ /* @__PURE__ */ i("option", {
45
+ value: "contain",
46
+ children: "Contain"
47
+ })
48
+ ]
49
+ })]
50
+ }), /* @__PURE__ */ a(n, { children: [
51
+ /* @__PURE__ */ a(t, {
52
+ label: "",
53
+ children: [/* @__PURE__ */ a(e, {
54
+ keys: ["touch-action"],
55
+ label: "Touch",
56
+ value: c,
57
+ onChange: p?.("touch-action"),
58
+ type: "select",
59
+ children: [
60
+ /* @__PURE__ */ i("option", {
61
+ value: "auto",
62
+ children: "Auto"
63
+ }),
64
+ /* @__PURE__ */ i("option", {
65
+ value: "none",
66
+ children: "None"
67
+ }),
68
+ /* @__PURE__ */ i("option", {
69
+ value: "pan-x",
70
+ children: "Pan X"
71
+ }),
72
+ /* @__PURE__ */ i("option", {
73
+ value: "pan-y",
74
+ children: "Pan Y"
75
+ }),
76
+ /* @__PURE__ */ i("option", {
77
+ value: "manipulation",
78
+ children: "Manipulation"
79
+ })
80
+ ]
81
+ }), /* @__PURE__ */ a(e, {
82
+ keys: ["resize"],
83
+ label: "Resize",
84
+ value: l,
85
+ onChange: p?.("resize"),
86
+ type: "select",
87
+ children: [
88
+ /* @__PURE__ */ i("option", {
89
+ value: "none",
90
+ children: "None"
91
+ }),
92
+ /* @__PURE__ */ i("option", {
93
+ value: "both",
94
+ children: "Both"
95
+ }),
96
+ /* @__PURE__ */ i("option", {
97
+ value: "horizontal",
98
+ children: "Horizontal"
99
+ }),
100
+ /* @__PURE__ */ i("option", {
101
+ value: "vertical",
102
+ children: "Vertical"
103
+ })
104
+ ]
105
+ })]
106
+ }),
107
+ /* @__PURE__ */ a(t, {
108
+ label: "",
109
+ children: [/* @__PURE__ */ a(e, {
110
+ keys: ["scroll-behavior"],
111
+ label: "Scroll",
112
+ value: d,
113
+ onChange: p?.("scroll-behavior"),
114
+ type: "select",
115
+ children: [/* @__PURE__ */ i("option", {
116
+ value: "auto",
117
+ children: "Auto"
118
+ }), /* @__PURE__ */ i("option", {
119
+ value: "smooth",
120
+ children: "Smooth"
121
+ })]
122
+ }), /* @__PURE__ */ a(e, {
123
+ keys: ["overscroll-behavior"],
124
+ label: "Overscroll",
125
+ value: f,
126
+ onChange: p?.("overscroll-behavior"),
127
+ type: "select",
128
+ children: [
129
+ /* @__PURE__ */ i("option", {
130
+ value: "auto",
131
+ children: "Auto"
132
+ }),
133
+ /* @__PURE__ */ i("option", {
134
+ value: "contain",
135
+ children: "Contain"
136
+ }),
137
+ /* @__PURE__ */ i("option", {
138
+ value: "none",
139
+ children: "None"
140
+ })
141
+ ]
142
+ })]
143
+ }),
144
+ /* @__PURE__ */ i(t, {
145
+ label: "Appearance",
146
+ keys: ["appearance"],
147
+ children: /* @__PURE__ */ a(e, {
148
+ value: u,
149
+ onChange: p?.("appearance"),
150
+ type: "select",
151
+ children: [/* @__PURE__ */ i("option", {
152
+ value: "auto",
153
+ children: "Auto"
154
+ }), /* @__PURE__ */ i("option", {
155
+ value: "none",
156
+ children: "None"
157
+ })]
158
+ })
159
+ })
160
+ ] })] });
161
+ //#endregion
162
+ export { o as default };
@@ -0,0 +1,10 @@
1
+ import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
2
+ export type OthersOutlineProps = {
3
+ outlineWidth?: StyleValue;
4
+ outlineStyle?: StyleValue;
5
+ outlineColor?: StyleValue;
6
+ outlineOffset?: StyleValue;
7
+ onChange?: (category: StyleCategory) => (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
8
+ };
9
+ declare const OthersOutline: ({ outlineWidth, outlineStyle, outlineColor, outlineOffset, onChange }: OthersOutlineProps) => import("react").JSX.Element;
10
+ export default OthersOutline;
@@ -0,0 +1,75 @@
1
+ import e from "../../components/CategoryOption/index.mjs";
2
+ import t from "../../components/CategorySection/index.mjs";
3
+ import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
4
+ //#region src/components/StyleInspector/categories/Others/OthersOutline.tsx
5
+ var a = ({ outlineWidth: a, outlineStyle: o, outlineColor: s, outlineOffset: c, onChange: l }) => /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ i(t, {
6
+ label: "",
7
+ children: [/* @__PURE__ */ i(e, {
8
+ keys: ["outline-style"],
9
+ label: "Outline",
10
+ value: o,
11
+ onChange: l?.("outline-style"),
12
+ type: "select",
13
+ children: [
14
+ /* @__PURE__ */ r("option", {
15
+ value: "none",
16
+ children: "None"
17
+ }),
18
+ /* @__PURE__ */ r("option", {
19
+ value: "solid",
20
+ children: "Solid"
21
+ }),
22
+ /* @__PURE__ */ r("option", {
23
+ value: "dashed",
24
+ children: "Dashed"
25
+ }),
26
+ /* @__PURE__ */ r("option", {
27
+ value: "dotted",
28
+ children: "Dotted"
29
+ }),
30
+ /* @__PURE__ */ r("option", {
31
+ value: "double",
32
+ children: "Double"
33
+ }),
34
+ /* @__PURE__ */ r("option", {
35
+ value: "groove",
36
+ children: "Groove"
37
+ }),
38
+ /* @__PURE__ */ r("option", {
39
+ value: "ridge",
40
+ children: "Ridge"
41
+ }),
42
+ /* @__PURE__ */ r("option", {
43
+ value: "inset",
44
+ children: "Inset"
45
+ }),
46
+ /* @__PURE__ */ r("option", {
47
+ value: "outset",
48
+ children: "Outset"
49
+ })
50
+ ]
51
+ }), /* @__PURE__ */ r(e, {
52
+ keys: ["outline-color"],
53
+ label: "Color",
54
+ type: "color",
55
+ value: s,
56
+ onChange: l?.("outline-color")
57
+ })]
58
+ }), /* @__PURE__ */ i(t, {
59
+ label: "",
60
+ children: [/* @__PURE__ */ r(e, {
61
+ keys: ["outline-width"],
62
+ label: "Width",
63
+ value: a,
64
+ onChange: l?.("outline-width"),
65
+ type: "metric"
66
+ }), /* @__PURE__ */ r(e, {
67
+ keys: ["outline-offset"],
68
+ label: "Offset",
69
+ value: c,
70
+ onChange: l?.("outline-offset"),
71
+ type: "metric"
72
+ })]
73
+ })] });
74
+ //#endregion
75
+ export { a as default };
@@ -0,0 +1,9 @@
1
+ import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
2
+ export type OthersSvgProps = {
3
+ fill?: StyleValue;
4
+ stroke?: StyleValue;
5
+ strokeWidth?: StyleValue;
6
+ onChange?: (category: StyleCategory) => (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
7
+ };
8
+ declare const OthersSvg: ({ fill, stroke, strokeWidth, onChange }: OthersSvgProps) => import("react").JSX.Element;
9
+ export default OthersSvg;
@@ -0,0 +1,31 @@
1
+ import e from "../../components/CategoryOption/index.mjs";
2
+ import t from "../../components/CategorySection/index.mjs";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ //#region src/components/StyleInspector/categories/Others/OthersSvg.tsx
5
+ var i = ({ fill: i, stroke: a, strokeWidth: o, onChange: s }) => /* @__PURE__ */ r(t, {
6
+ label: "",
7
+ children: [
8
+ /* @__PURE__ */ n(e, {
9
+ keys: ["fill"],
10
+ label: "Fill",
11
+ type: "color",
12
+ value: i,
13
+ onChange: s?.("fill")
14
+ }),
15
+ /* @__PURE__ */ n(e, {
16
+ keys: ["stroke"],
17
+ label: "Stroke",
18
+ type: "color",
19
+ value: a,
20
+ onChange: s?.("stroke")
21
+ }),
22
+ /* @__PURE__ */ n(e, {
23
+ keys: ["stroke-width"],
24
+ label: "Width",
25
+ value: o,
26
+ onChange: s?.("stroke-width")
27
+ })
28
+ ]
29
+ });
30
+ //#endregion
31
+ export { i as default };
@@ -0,0 +1,9 @@
1
+ import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
2
+ export type OthersTableProps = {
3
+ borderCollapse?: StyleValue;
4
+ borderSpacing?: StyleValue;
5
+ tableLayout?: StyleValue;
6
+ onChange?: (category: StyleCategory) => (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
7
+ };
8
+ declare const OthersTable: ({ borderCollapse, borderSpacing, tableLayout, onChange }: OthersTableProps) => import("react").JSX.Element;
9
+ export default OthersTable;
@@ -0,0 +1,44 @@
1
+ import e from "../../components/CategoryOption/index.mjs";
2
+ import t from "../../components/CategorySection/index.mjs";
3
+ import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
4
+ //#region src/components/StyleInspector/categories/Others/OthersTable.tsx
5
+ var a = ({ borderCollapse: a, borderSpacing: o, tableLayout: s, onChange: c }) => /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ i(t, {
6
+ label: "",
7
+ children: [/* @__PURE__ */ i(e, {
8
+ keys: ["border-collapse"],
9
+ label: "Collapse",
10
+ value: a,
11
+ onChange: c?.("border-collapse"),
12
+ type: "select",
13
+ children: [/* @__PURE__ */ r("option", {
14
+ value: "separate",
15
+ children: "Separate"
16
+ }), /* @__PURE__ */ r("option", {
17
+ value: "collapse",
18
+ children: "Collapse"
19
+ })]
20
+ }), /* @__PURE__ */ i(e, {
21
+ keys: ["table-layout"],
22
+ label: "Table Layout",
23
+ value: s,
24
+ onChange: c?.("table-layout"),
25
+ type: "select",
26
+ children: [/* @__PURE__ */ r("option", {
27
+ value: "auto",
28
+ children: "Auto"
29
+ }), /* @__PURE__ */ r("option", {
30
+ value: "fixed",
31
+ children: "Fixed"
32
+ })]
33
+ })]
34
+ }), /* @__PURE__ */ r(t, {
35
+ label: "Cell Spacing",
36
+ keys: ["border-spacing"],
37
+ children: /* @__PURE__ */ r(e, {
38
+ value: o,
39
+ onChange: c?.("border-spacing"),
40
+ type: "metric"
41
+ })
42
+ })] });
43
+ //#endregion
44
+ export { a as default };
@@ -0,0 +1,3 @@
1
+ import { default as Others } from './Others';
2
+ export * from './Others';
3
+ export default Others;
@@ -0,0 +1,5 @@
1
+ import e from "./Others.mjs";
2
+ //#region src/components/StyleInspector/categories/Others/index.ts
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -2,20 +2,21 @@ 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 "./PositionAdvanced.mjs";
7
- import o from "./PositionAdvancedButtons.mjs";
8
- import s from "./PositionClear.mjs";
9
- import c from "./PositionFloat.mjs";
10
- import { memo as l, use as u, useCallback as d, useMemo as f } from "react";
11
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
12
- import h from "@plitzi/plitzi-ui/icons/XMark";
13
- import g from "@plitzi/plitzi-ui/icons/ListNumbers";
14
- import _ from "@plitzi/plitzi-ui/icons/PositionAbsolute";
15
- import v from "@plitzi/plitzi-ui/icons/PositionFixed";
16
- import y from "@plitzi/plitzi-ui/icons/PositionRelative";
5
+ import i from "../../components/CategoryAdvanced/index.mjs";
6
+ import a from "../../components/CategoryContainer/index.mjs";
7
+ import o from "./PositionAdvanced.mjs";
8
+ import s from "./PositionAdvancedButtons.mjs";
9
+ import c from "./PositionClear.mjs";
10
+ import l from "./PositionFloat.mjs";
11
+ import { memo as u, use as d, useCallback as f, useMemo as p } from "react";
12
+ import { jsx as m, jsxs as h } from "react/jsx-runtime";
13
+ import g from "@plitzi/plitzi-ui/icons/XMark";
14
+ import _ from "@plitzi/plitzi-ui/icons/ListNumbers";
15
+ import v from "@plitzi/plitzi-ui/icons/PositionAbsolute";
16
+ import y from "@plitzi/plitzi-ui/icons/PositionFixed";
17
+ import b from "@plitzi/plitzi-ui/icons/PositionRelative";
17
18
  //#region src/components/StyleInspector/categories/Position/Position.tsx
18
- var b = [
19
+ var x = [
19
20
  "position",
20
21
  "top",
21
22
  "bottom",
@@ -24,101 +25,101 @@ var b = [
24
25
  "clear",
25
26
  "left",
26
27
  "right"
27
- ], x = [
28
+ ], S = [
28
29
  "position",
29
30
  "top",
30
31
  "bottom",
31
32
  "left",
32
33
  "right"
33
- ], S = l(({ replaceTokens: l = !1, isCollapsed: S = !0, onCollapse: C }) => {
34
- let { setValue: w } = u(e), { position: T, top: E, bottom: D, left: O, right: k, float: A, clear: j, "z-index": M } = t({
35
- keys: b,
34
+ ], C = ["float", "clear"], w = u(({ replaceTokens: u = !1, isCollapsed: w = !0, onCollapse: T }) => {
35
+ let { setValue: E } = d(e), { position: D, top: O, bottom: k, left: A, right: j, float: M, clear: N, "z-index": P } = t({
36
+ keys: x,
36
37
  asValue: !0,
37
- replaceTokens: l
38
- }), N = f(() => ({
39
- top: E,
40
- bottom: D,
41
- left: O,
42
- right: k
38
+ replaceTokens: u
39
+ }), F = p(() => ({
40
+ top: O,
41
+ bottom: k,
42
+ left: A,
43
+ right: j
43
44
  }), [
44
- E,
45
- D,
46
45
  O,
47
- k
48
- ]), P = d((e) => C?.("position", e), [C]), F = d((e) => (t) => {
49
- w(e === "position-path" ? void 0 : e, t);
50
- }, [w]), I = f(() => [
46
+ k,
47
+ A,
48
+ j
49
+ ]), I = f((e) => T?.("position", e), [T]), L = f((e) => (t) => {
50
+ E(e === "position-path" ? void 0 : e, t);
51
+ }, [E]), R = p(() => [
51
52
  {
52
53
  value: "static",
53
- icon: /* @__PURE__ */ p(h, {}),
54
+ icon: /* @__PURE__ */ m(g, {}),
54
55
  description: "Static",
55
- active: T === "static"
56
+ active: D === "static"
56
57
  },
57
58
  {
58
59
  value: "relative",
59
- icon: /* @__PURE__ */ p(y, {}),
60
+ icon: /* @__PURE__ */ m(b, {}),
60
61
  description: "Relative",
61
- active: T === "relative"
62
+ active: D === "relative"
62
63
  },
63
64
  {
64
65
  value: "absolute",
65
- icon: /* @__PURE__ */ p(_, {}),
66
+ icon: /* @__PURE__ */ m(v, {}),
66
67
  description: "Absolute",
67
- active: T === "absolute"
68
+ active: D === "absolute"
68
69
  },
69
70
  {
70
71
  value: "fixed",
71
- icon: /* @__PURE__ */ p(v, {}),
72
+ icon: /* @__PURE__ */ m(y, {}),
72
73
  description: "Fixed",
73
- active: T === "fixed"
74
+ active: D === "fixed"
74
75
  },
75
76
  {
76
77
  value: "sticky",
77
- icon: /* @__PURE__ */ p(g, {}),
78
+ icon: /* @__PURE__ */ m(_, {}),
78
79
  description: "Sticky",
79
- active: T === "sticky"
80
+ active: D === "sticky"
80
81
  }
81
- ], [T]);
82
- return /* @__PURE__ */ p(i, {
82
+ ], [D]);
83
+ return /* @__PURE__ */ m(a, {
83
84
  title: "Position",
84
- dotKeys: b,
85
- isCollapsed: S,
86
- onCollapse: P,
87
- children: /* @__PURE__ */ m("div", {
85
+ dotKeys: x,
86
+ advancedKeys: C,
87
+ isCollapsed: w,
88
+ onCollapse: I,
89
+ children: /* @__PURE__ */ h("div", {
88
90
  className: "flex flex-col gap-2",
89
91
  children: [
90
- /* @__PURE__ */ p(r, {
91
- keys: x,
92
+ /* @__PURE__ */ m(r, {
93
+ keys: S,
92
94
  label: "Position",
93
- children: /* @__PURE__ */ p(n, {
94
- onChange: F("position"),
95
+ children: /* @__PURE__ */ m(n, {
96
+ onChange: L("position"),
95
97
  type: "iconGroup",
96
- items: I
98
+ items: R
97
99
  })
98
100
  }),
99
- (T === "fixed" || T === "absolute") && /* @__PURE__ */ p(o, {
100
- value: N,
101
- onChange: F("position-path")
102
- }),
103
- /* @__PURE__ */ p(a, {
104
- value: N,
105
- onChange: F
101
+ (D === "fixed" || D === "absolute") && /* @__PURE__ */ m(s, {
102
+ value: F,
103
+ onChange: L("position-path")
106
104
  }),
107
- /* @__PURE__ */ p(c, {
108
- value: A,
109
- onChange: F("float")
105
+ /* @__PURE__ */ m(o, {
106
+ value: F,
107
+ onChange: L
110
108
  }),
111
- /* @__PURE__ */ p(s, {
112
- value: j,
113
- onChange: F("clear")
114
- }),
115
- /* @__PURE__ */ p(r, {
109
+ /* @__PURE__ */ h(i, { children: [/* @__PURE__ */ m(l, {
110
+ value: M,
111
+ onChange: L("float")
112
+ }), /* @__PURE__ */ m(c, {
113
+ value: N,
114
+ onChange: L("clear")
115
+ })] }),
116
+ /* @__PURE__ */ m(r, {
116
117
  keys: ["z-index"],
117
118
  label: "Z-Index",
118
- children: /* @__PURE__ */ p(n, {
119
- onChange: F("z-index"),
119
+ children: /* @__PURE__ */ m(n, {
120
+ onChange: L("z-index"),
120
121
  type: "input",
121
- value: M
122
+ value: P
122
123
  })
123
124
  })
124
125
  ]
@@ -126,4 +127,4 @@ var b = [
126
127
  });
127
128
  });
128
129
  //#endregion
129
- export { S as default };
130
+ export { w as default };