@plitzi/sdk-style 0.33.2 → 0.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/dist/BuilderStyleContextProvider.d.ts +11 -2
- package/dist/BuilderStyleContextProvider.mjs +76 -54
- package/dist/SdkStyleContextProvider.mjs +4 -4
- package/dist/StyleAdvanceEditor.mjs +30 -30
- package/dist/StyleMap/StyleMap.d.ts +14 -1
- package/dist/StyleMap/StyleMap.mjs +24 -2
- package/dist/StyleMap/helpers/isValueValid.mjs +1 -1
- package/dist/StyleReducer.d.ts +15 -4
- package/dist/StyleReducer.mjs +39 -18
- package/dist/components/InputEasing/InputEasing.mjs +21 -21
- package/dist/components/InputEasing/InputEasingButton.mjs +5 -5
- package/dist/components/InputEasing/InputEasingList.mjs +76 -76
- package/dist/components/Selector/Selector.mjs +29 -29
- package/dist/components/Selector/SelectorItem/ItemOptions.mjs +16 -16
- package/dist/components/Selector/SelectorItem/SelectorItem.mjs +10 -10
- package/dist/components/StyleInspector/Inspector.mjs +33 -33
- package/dist/components/StyleInspector/StyleInspector.mjs +45 -45
- package/dist/components/StyleInspector/StyleInspectorProvider.mjs +14 -14
- package/dist/components/StyleInspector/categories/Background/components/BackgroundLayer/BackgroundLayer.mjs +46 -46
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopBar.mjs +20 -20
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopHandle.mjs +11 -11
- package/dist/components/StyleInspector/categories/Border/BorderPlacements.mjs +20 -20
- package/dist/components/StyleInspector/categories/DisplayFlexChild/DisplayAlignSelf.mjs +12 -12
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadow.mjs +22 -21
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadowItem.mjs +66 -65
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/helpers.d.ts +2 -0
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/helpers.mjs +18 -0
- package/dist/components/StyleInspector/categories/Effects/Transition/TransitionItem.mjs +15 -15
- package/dist/components/StyleInspector/categories/RawStyle/RawStyle.mjs +16 -16
- package/dist/components/StyleInspector/categories/Spacing/SpacingEditor.mjs +12 -12
- package/dist/components/StyleInspector/categories/Spacing/SpacingNumber.mjs +5 -5
- package/dist/components/StyleInspector/categories/Typography/Typography.d.ts +1 -5
- package/dist/components/StyleInspector/categories/Typography/Typography.mjs +58 -57
- package/dist/components/StyleInspector/categories/Typography/TypographyConstants.d.ts +0 -4
- package/dist/components/StyleInspector/categories/Typography/TypographyConstants.mjs +2 -160
- package/dist/components/StyleInspector/categories/Typography/TypographyFont.d.ts +1 -4
- package/dist/components/StyleInspector/categories/Typography/TypographyFont.mjs +24 -17
- package/dist/components/StyleInspector/components/CategoryContainer/CategoryContainer.mjs +15 -15
- package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionIconGroup.mjs +17 -17
- package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionMetricInput.mjs +8 -8
- package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionSelect.mjs +4 -4
- package/dist/components/StyleInspector/components/InspectorLabel/InspectorLabel.mjs +13 -13
- package/dist/components/StyleInspector/hooks/useInspectorValues.mjs +13 -13
- package/dist/components/StyleInspector/hooks/useStyleBinding.mjs +12 -12
- package/dist/components/StyleInspector/hooks/useStyleInherit.mjs +3 -3
- package/dist/components/StyleManager/ManagerSelector.mjs +35 -35
- package/dist/components/StyleManager/StyleManager.mjs +12 -12
- package/dist/components/StyleManager/StyleSelectorTag.mjs +20 -20
- package/dist/helpers/calculateInheriting.mjs +2 -2
- package/dist/helpers/generateStyleSelector.mjs +1 -1
- package/dist/helpers/processSelectorAttributes.mjs +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.mjs +2 -0
- package/dist/hooks/useSpaceFonts.d.ts +10 -0
- package/dist/hooks/useSpaceFonts.mjs +10 -0
- package/dist/index.mjs +16 -16
- package/package.json +26 -9
package/dist/StyleReducer.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import e from "./
|
|
2
|
-
import
|
|
1
|
+
import { generateCache as e } from "./StyleHelper.mjs";
|
|
2
|
+
import t from "./StyleMap/index.mjs";
|
|
3
3
|
import { get as n, set as r } from "@plitzi/plitzi-ui/helpers";
|
|
4
4
|
import { produce as i } from "immer";
|
|
5
5
|
//#region src/StyleReducer.ts
|
|
@@ -15,6 +15,9 @@ var a = {
|
|
|
15
15
|
STYLE_ADD_VARIABLE: "STYLE_ADD_VARIABLE",
|
|
16
16
|
STYLE_UPDATE_VARIABLE: "STYLE_UPDATE_VARIABLE",
|
|
17
17
|
STYLE_REMOVE_VARIABLE: "STYLE_REMOVE_VARIABLE",
|
|
18
|
+
STYLE_ADD_FONT: "STYLE_ADD_FONT",
|
|
19
|
+
STYLE_UPDATE_FONT: "STYLE_UPDATE_FONT",
|
|
20
|
+
STYLE_REMOVE_FONT: "STYLE_REMOVE_FONT",
|
|
18
21
|
STYLE_ADD_TEMPLATE: "STYLE_ADD_TEMPLATE",
|
|
19
22
|
STYLE_UPDATE_SETTINGS: "STYLE_UPDATE_SETTINGS"
|
|
20
23
|
}, o = (o, s) => {
|
|
@@ -26,73 +29,91 @@ var a = {
|
|
|
26
29
|
case a.STYLE_ADD_SELECTOR: {
|
|
27
30
|
let { displayMode: n, selectorType: a, selector: c, path: l, value: u, params: d } = s;
|
|
28
31
|
return i(o, (i) => {
|
|
29
|
-
|
|
32
|
+
t.addSelector(i, n, c, a, l, u, d) && r(i, "cache", e(i));
|
|
30
33
|
});
|
|
31
34
|
}
|
|
32
35
|
case a.STYLE_UPDATE_SELECTOR: {
|
|
33
36
|
let { displayMode: n, selector: a, path: c, value: l, params: u } = s;
|
|
34
37
|
return i(o, (i) => {
|
|
35
|
-
|
|
38
|
+
t.updateSelector(i, n, a, c, l, u) && r(i, "cache", e(i));
|
|
36
39
|
});
|
|
37
40
|
}
|
|
38
41
|
case a.STYLE_REMOVE_SELECTOR: {
|
|
39
42
|
let { displayMode: n, selector: a } = s;
|
|
40
43
|
return i(o, (i) => {
|
|
41
|
-
|
|
44
|
+
t.removeSelector(i, n, a) && r(i, "cache", e(i));
|
|
42
45
|
});
|
|
43
46
|
}
|
|
44
47
|
case a.STYLE_REMOVE_SELECTORS: {
|
|
45
48
|
let { displayMode: n, selectors: a } = s;
|
|
46
49
|
return i(o, (i) => {
|
|
47
|
-
a.reduce((
|
|
50
|
+
a.reduce((e, r) => t.removeSelector(i, n, r) || e, !1) && r(i, "cache", e(i));
|
|
48
51
|
});
|
|
49
52
|
}
|
|
50
53
|
case a.STYLE_ADD_SELECTOR_VARIABLE: {
|
|
51
54
|
let { displayMode: n, selector: a, category: c, name: l, value: u } = s;
|
|
52
55
|
return i(o, (i) => {
|
|
53
|
-
|
|
56
|
+
t.addSelectorVariable(i, n, a, c, l, u) && r(i, "cache", e(i));
|
|
54
57
|
});
|
|
55
58
|
}
|
|
56
59
|
case a.STYLE_UPDATE_SELECTOR_VARIABLE: {
|
|
57
60
|
let { displayMode: n, selector: a, category: c, name: l, value: u } = s;
|
|
58
61
|
return i(o, (i) => {
|
|
59
|
-
|
|
62
|
+
t.updateSelectorVariable(i, n, a, c, l, u) && r(i, "cache", e(i));
|
|
60
63
|
});
|
|
61
64
|
}
|
|
62
65
|
case a.STYLE_REMOVE_SELECTOR_VARIABLE: {
|
|
63
66
|
let { displayMode: n, selector: a, category: c, name: l } = s;
|
|
64
67
|
return i(o, (i) => {
|
|
65
|
-
|
|
68
|
+
t.removeSelectorVariable(i, n, a, c, l) && r(i, "cache", e(i));
|
|
66
69
|
});
|
|
67
70
|
}
|
|
68
71
|
case a.STYLE_ADD_VARIABLE: {
|
|
69
72
|
let { category: n, name: a, value: c } = s;
|
|
70
73
|
return i(o, (i) => {
|
|
71
|
-
|
|
74
|
+
t.addVariable(i, n, a, c) && r(i, "cache", e(i));
|
|
72
75
|
});
|
|
73
76
|
}
|
|
74
77
|
case a.STYLE_UPDATE_VARIABLE: {
|
|
75
78
|
let { category: n, name: a, value: c } = s;
|
|
76
79
|
return i(o, (i) => {
|
|
77
|
-
|
|
80
|
+
t.updateVariable(i, n, a, c) && r(i, "cache", e(i));
|
|
78
81
|
});
|
|
79
82
|
}
|
|
80
83
|
case a.STYLE_REMOVE_VARIABLE: {
|
|
81
84
|
let { category: n, name: a } = s;
|
|
82
85
|
return i(o, (i) => {
|
|
83
|
-
|
|
86
|
+
t.removeVariable(i, n, a) && r(i, "cache", e(i));
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
case a.STYLE_ADD_FONT: {
|
|
90
|
+
let { font: e } = s;
|
|
91
|
+
return i(o, (n) => {
|
|
92
|
+
t.addFont(n, e);
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
case a.STYLE_UPDATE_FONT: {
|
|
96
|
+
let { family: e, font: n } = s;
|
|
97
|
+
return i(o, (r) => {
|
|
98
|
+
t.updateFont(r, e, n);
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
case a.STYLE_REMOVE_FONT: {
|
|
102
|
+
let { family: e } = s;
|
|
103
|
+
return i(o, (n) => {
|
|
104
|
+
t.removeFont(n, e);
|
|
84
105
|
});
|
|
85
106
|
}
|
|
86
107
|
case a.STYLE_ADD_TEMPLATE: {
|
|
87
|
-
let { platform:
|
|
108
|
+
let { platform: t } = s;
|
|
88
109
|
return i(o, (r) => {
|
|
89
110
|
let i = n(r, "platform", {});
|
|
90
|
-
Object.keys(
|
|
91
|
-
i[
|
|
92
|
-
...n(i,
|
|
93
|
-
...e
|
|
111
|
+
Object.keys(t).forEach((e) => {
|
|
112
|
+
i[e] = {
|
|
113
|
+
...n(i, e, {}),
|
|
114
|
+
...t[e]
|
|
94
115
|
};
|
|
95
|
-
}), r.platform = i, r.cache =
|
|
116
|
+
}), r.platform = i, r.cache = e(r);
|
|
96
117
|
});
|
|
97
118
|
}
|
|
98
119
|
case a.STYLE_UPDATE_SETTINGS: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import e from "./Curve.mjs";
|
|
2
2
|
import t from "./Grid.mjs";
|
|
3
3
|
import n from "./Progress.mjs";
|
|
4
|
-
import r from "
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
4
|
+
import { Component as r, createRef as i } from "react";
|
|
5
|
+
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
+
import c from "clsx";
|
|
7
7
|
//#region src/components/InputEasing/InputEasing.tsx
|
|
8
8
|
var l = [
|
|
9
9
|
.25,
|
|
@@ -15,12 +15,12 @@ var l = [
|
|
|
15
15
|
5,
|
|
16
16
|
25,
|
|
17
17
|
18
|
|
18
|
-
], d = class extends
|
|
18
|
+
], d = class extends r {
|
|
19
19
|
props;
|
|
20
20
|
state;
|
|
21
21
|
constructor(e) {
|
|
22
22
|
super(e), this.props = e, this.state = {
|
|
23
|
-
inputRef:
|
|
23
|
+
inputRef: i(),
|
|
24
24
|
handle: void 0
|
|
25
25
|
};
|
|
26
26
|
}
|
|
@@ -59,53 +59,53 @@ var l = [
|
|
|
59
59
|
window.removeEventListener("mousemove", this.handleMouseMove), window.removeEventListener("mouseup", this.handleMouseUp);
|
|
60
60
|
};
|
|
61
61
|
render() {
|
|
62
|
-
let { children:
|
|
62
|
+
let { children: r, value: i = l, width: u = 300, height: d = 300, handleRadius: f = 5, className: p = "", progress: m = 0, readOnly: h = !1 } = this.props, { inputRef: g } = this.state, _ = {
|
|
63
63
|
xFrom: this.x(0),
|
|
64
64
|
yFrom: this.y(0),
|
|
65
65
|
xTo: this.x(1),
|
|
66
66
|
yTo: this.y(1)
|
|
67
|
-
}, v = this.x(0), y = this.y(0), b = this.x(
|
|
68
|
-
return /* @__PURE__ */
|
|
69
|
-
className:
|
|
67
|
+
}, v = this.x(0), y = this.y(0), b = this.x(i[0]), x = this.y(i[1]), S = Math.atan2(x - y, b - v), C = b - f * Math.cos(S), w = x - f * Math.sin(S), T = this.x(1), E = this.y(1), D = this.x(i[2]), O = this.y(i[3]), k = Math.atan2(O - E, D - T), A = D - f * Math.cos(k), j = O - f * Math.sin(k);
|
|
68
|
+
return /* @__PURE__ */ s("svg", {
|
|
69
|
+
className: c("overflow-visible select-none", p),
|
|
70
70
|
ref: g,
|
|
71
71
|
width: u,
|
|
72
72
|
height: d,
|
|
73
73
|
children: [
|
|
74
|
-
/* @__PURE__ */
|
|
75
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ o(t, { ..._ }),
|
|
75
|
+
/* @__PURE__ */ o(n, {
|
|
76
76
|
..._,
|
|
77
|
-
value:
|
|
77
|
+
value: i,
|
|
78
78
|
progress: m
|
|
79
79
|
}),
|
|
80
|
-
/* @__PURE__ */
|
|
80
|
+
/* @__PURE__ */ o(e, {
|
|
81
81
|
..._,
|
|
82
|
-
value:
|
|
82
|
+
value: i
|
|
83
83
|
}),
|
|
84
|
-
|
|
85
|
-
!h && /* @__PURE__ */
|
|
84
|
+
r,
|
|
85
|
+
!h && /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ s("g", {
|
|
86
86
|
className: "group",
|
|
87
|
-
children: [/* @__PURE__ */
|
|
87
|
+
children: [/* @__PURE__ */ o("line", {
|
|
88
88
|
x1: C,
|
|
89
89
|
y1: w,
|
|
90
90
|
x2: v,
|
|
91
91
|
y2: y,
|
|
92
92
|
className: "stroke-blue-400 stroke-[3px] group-hover:stroke-[4px]"
|
|
93
|
-
}), /* @__PURE__ */
|
|
93
|
+
}), /* @__PURE__ */ o("circle", {
|
|
94
94
|
cx: b,
|
|
95
95
|
cy: x,
|
|
96
96
|
r: f,
|
|
97
97
|
onMouseDown: this.handleMouseDown("bottom"),
|
|
98
98
|
className: "cursor-pointer fill-blue-400 stroke-blue-400 stroke-[3px] group-hover:fill-white group-hover:stroke-[6px]"
|
|
99
99
|
})]
|
|
100
|
-
}), /* @__PURE__ */
|
|
100
|
+
}), /* @__PURE__ */ s("g", {
|
|
101
101
|
className: "group",
|
|
102
|
-
children: [/* @__PURE__ */
|
|
102
|
+
children: [/* @__PURE__ */ o("line", {
|
|
103
103
|
x1: A,
|
|
104
104
|
y1: j,
|
|
105
105
|
x2: T,
|
|
106
106
|
y2: E,
|
|
107
107
|
className: "stroke-blue-400 stroke-[3px] group-hover:stroke-[4px]"
|
|
108
|
-
}), /* @__PURE__ */
|
|
108
|
+
}), /* @__PURE__ */ o("circle", {
|
|
109
109
|
cx: D,
|
|
110
110
|
cy: O,
|
|
111
111
|
r: f,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import t from "clsx";
|
|
3
3
|
//#region src/components/InputEasing/InputEasingButton.tsx
|
|
4
|
-
var n = ({ children: n, title: r = "", className: i = "", onClick: a }) => /* @__PURE__ */
|
|
4
|
+
var n = ({ children: n, title: r = "", className: i = "", onClick: a }) => /* @__PURE__ */ e("button", {
|
|
5
5
|
type: "button",
|
|
6
6
|
title: r,
|
|
7
7
|
onClick: a,
|
|
8
|
-
className:
|
|
9
|
-
children: /* @__PURE__ */
|
|
8
|
+
className: t("m-1 h-6 w-6 rounded-sm p-1 hover:bg-gray-100", i),
|
|
9
|
+
children: /* @__PURE__ */ e("svg", {
|
|
10
10
|
viewBox: "0 0 30 30",
|
|
11
11
|
className: "overflow-visible",
|
|
12
12
|
children: n
|
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
import e from "./InputEasingButton.mjs";
|
|
2
|
-
import t from "
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
2
|
+
import { useCallback as t } from "react";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
import i from "clsx";
|
|
5
5
|
//#region src/components/InputEasing/InputEasingList.tsx
|
|
6
6
|
var a = ({ className: a = "", onChange: o }) => {
|
|
7
|
-
let s =
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
className:
|
|
7
|
+
let s = t((e) => () => o?.(e), [o]);
|
|
8
|
+
return /* @__PURE__ */ r("div", {
|
|
9
|
+
className: i("flex flex-col border-r border-gray-300", a),
|
|
10
10
|
children: [
|
|
11
|
-
/* @__PURE__ */
|
|
11
|
+
/* @__PURE__ */ r("div", {
|
|
12
12
|
className: "flex flex-col",
|
|
13
|
-
children: [/* @__PURE__ */
|
|
13
|
+
children: [/* @__PURE__ */ n("div", {
|
|
14
14
|
className: "bg-blue-400 p-1 text-xs text-white",
|
|
15
15
|
children: "Default"
|
|
16
|
-
}), /* @__PURE__ */
|
|
16
|
+
}), /* @__PURE__ */ r("div", {
|
|
17
17
|
className: "flex flex-wrap",
|
|
18
18
|
children: [
|
|
19
|
-
/* @__PURE__ */
|
|
19
|
+
/* @__PURE__ */ n(e, {
|
|
20
20
|
title: "Linear",
|
|
21
21
|
onClick: s("linear"),
|
|
22
|
-
children: /* @__PURE__ */
|
|
22
|
+
children: /* @__PURE__ */ n("path", {
|
|
23
23
|
d: "M30,0 C22.5,7.5 7.5,22.5 0,30",
|
|
24
24
|
className: "fill-transparent stroke-current stroke-2"
|
|
25
25
|
})
|
|
26
26
|
}),
|
|
27
|
-
/* @__PURE__ */
|
|
27
|
+
/* @__PURE__ */ n(e, {
|
|
28
28
|
title: "Ease",
|
|
29
29
|
onClick: s("ease"),
|
|
30
|
-
children: /* @__PURE__ */
|
|
30
|
+
children: /* @__PURE__ */ n("path", {
|
|
31
31
|
d: "M30,0 C7.5,0 7.5,27 0,30",
|
|
32
32
|
className: "fill-transparent stroke-current stroke-2"
|
|
33
33
|
})
|
|
34
34
|
}),
|
|
35
|
-
/* @__PURE__ */
|
|
35
|
+
/* @__PURE__ */ n(e, {
|
|
36
36
|
title: "Ease-in",
|
|
37
37
|
onClick: s("ease-in"),
|
|
38
|
-
children: /* @__PURE__ */
|
|
38
|
+
children: /* @__PURE__ */ n("path", {
|
|
39
39
|
d: "M30,0 C30,0 12.6,30 0,30",
|
|
40
40
|
className: "fill-transparent stroke-current stroke-2"
|
|
41
41
|
})
|
|
42
42
|
}),
|
|
43
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ n(e, {
|
|
44
44
|
title: "Ease-out",
|
|
45
45
|
onClick: s("ease-out"),
|
|
46
|
-
children: /* @__PURE__ */
|
|
46
|
+
children: /* @__PURE__ */ n("path", {
|
|
47
47
|
d: "M30,0 C17.4,0 0,30 0,30",
|
|
48
48
|
className: "fill-transparent stroke-current stroke-2"
|
|
49
49
|
})
|
|
50
50
|
}),
|
|
51
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ n(e, {
|
|
52
52
|
title: "Ease-in-out",
|
|
53
53
|
onClick: s("ease-in-out"),
|
|
54
|
-
children: /* @__PURE__ */
|
|
54
|
+
children: /* @__PURE__ */ n("path", {
|
|
55
55
|
d: "M30,0 C17.4,0 12.6,30 0,30",
|
|
56
56
|
className: "fill-transparent stroke-current stroke-2"
|
|
57
57
|
})
|
|
@@ -59,74 +59,74 @@ var a = ({ className: a = "", onChange: o }) => {
|
|
|
59
59
|
]
|
|
60
60
|
})]
|
|
61
61
|
}),
|
|
62
|
-
/* @__PURE__ */
|
|
62
|
+
/* @__PURE__ */ r("div", {
|
|
63
63
|
className: "flex flex-col",
|
|
64
|
-
children: [/* @__PURE__ */
|
|
64
|
+
children: [/* @__PURE__ */ n("div", {
|
|
65
65
|
className: "bg-blue-400 p-1 text-xs text-white",
|
|
66
66
|
children: "Ease In"
|
|
67
|
-
}), /* @__PURE__ */
|
|
67
|
+
}), /* @__PURE__ */ r("div", {
|
|
68
68
|
className: "flex flex-wrap",
|
|
69
69
|
children: [
|
|
70
|
-
/* @__PURE__ */
|
|
70
|
+
/* @__PURE__ */ n(e, {
|
|
71
71
|
title: "Ease In Quad",
|
|
72
72
|
onClick: s("easeInQuad"),
|
|
73
|
-
children: /* @__PURE__ */
|
|
73
|
+
children: /* @__PURE__ */ n("path", {
|
|
74
74
|
d: "M30,0 C20.400000000000002,14.1 16.5,27.45 0,30",
|
|
75
75
|
className: "fill-transparent stroke-current stroke-2"
|
|
76
76
|
})
|
|
77
77
|
}),
|
|
78
|
-
/* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ n(e, {
|
|
79
79
|
title: "Ease In Cubic",
|
|
80
80
|
onClick: s("easeInCubic"),
|
|
81
|
-
children: /* @__PURE__ */
|
|
81
|
+
children: /* @__PURE__ */ n("path", {
|
|
82
82
|
d: "M30,0 C20.25,24.3 16.5,28.35 0,30",
|
|
83
83
|
className: "fill-transparent stroke-current stroke-2"
|
|
84
84
|
})
|
|
85
85
|
}),
|
|
86
|
-
/* @__PURE__ */
|
|
86
|
+
/* @__PURE__ */ n(e, {
|
|
87
87
|
title: "Ease In Quart",
|
|
88
88
|
onClick: s("easeInQuart"),
|
|
89
|
-
children: /* @__PURE__ */
|
|
89
|
+
children: /* @__PURE__ */ n("path", {
|
|
90
90
|
d: "M30,0 C25.65,28.2 22.65,28.5 0,30",
|
|
91
91
|
className: "fill-transparent stroke-current stroke-2"
|
|
92
92
|
})
|
|
93
93
|
}),
|
|
94
|
-
/* @__PURE__ */
|
|
94
|
+
/* @__PURE__ */ n(e, {
|
|
95
95
|
title: "Ease In Quint",
|
|
96
96
|
onClick: s("easeInQuint"),
|
|
97
|
-
children: /* @__PURE__ */
|
|
97
|
+
children: /* @__PURE__ */ n("path", {
|
|
98
98
|
d: "M30,0 C25.65,28.2 22.65,28.5 0,30",
|
|
99
99
|
className: "fill-transparent stroke-current stroke-2"
|
|
100
100
|
})
|
|
101
101
|
}),
|
|
102
|
-
/* @__PURE__ */
|
|
102
|
+
/* @__PURE__ */ n(e, {
|
|
103
103
|
title: "Ease In Sine",
|
|
104
104
|
onClick: s("easeInSine"),
|
|
105
|
-
children: /* @__PURE__ */
|
|
105
|
+
children: /* @__PURE__ */ n("path", {
|
|
106
106
|
d: "M30,0 C22.35,8.55 14.1,30 0,30",
|
|
107
107
|
className: "fill-transparent stroke-current stroke-2"
|
|
108
108
|
})
|
|
109
109
|
}),
|
|
110
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ n(e, {
|
|
111
111
|
title: "Ease In Expo",
|
|
112
112
|
onClick: s("easeInExpo"),
|
|
113
|
-
children: /* @__PURE__ */
|
|
113
|
+
children: /* @__PURE__ */ n("path", {
|
|
114
114
|
d: "M30,0 C23.85,28.95 28.5,28.5 0,30",
|
|
115
115
|
className: "fill-transparent stroke-current stroke-2"
|
|
116
116
|
})
|
|
117
117
|
}),
|
|
118
|
-
/* @__PURE__ */
|
|
118
|
+
/* @__PURE__ */ n(e, {
|
|
119
119
|
title: "Ease In Circ",
|
|
120
120
|
onClick: s("easeInCirc"),
|
|
121
|
-
children: /* @__PURE__ */
|
|
121
|
+
children: /* @__PURE__ */ n("path", {
|
|
122
122
|
d: "M30,0 C29.4,19.95 18,28.8 0,30",
|
|
123
123
|
className: "fill-transparent stroke-current stroke-2"
|
|
124
124
|
})
|
|
125
125
|
}),
|
|
126
|
-
/* @__PURE__ */
|
|
126
|
+
/* @__PURE__ */ n(e, {
|
|
127
127
|
title: "Ease In Back",
|
|
128
128
|
onClick: s("easeInBack"),
|
|
129
|
-
children: /* @__PURE__ */
|
|
129
|
+
children: /* @__PURE__ */ n("path", {
|
|
130
130
|
d: "M30,0 C22.05,28.65 18,38.4 0,30",
|
|
131
131
|
className: "fill-transparent stroke-current stroke-2"
|
|
132
132
|
})
|
|
@@ -134,74 +134,74 @@ var a = ({ className: a = "", onChange: o }) => {
|
|
|
134
134
|
]
|
|
135
135
|
})]
|
|
136
136
|
}),
|
|
137
|
-
/* @__PURE__ */
|
|
137
|
+
/* @__PURE__ */ r("div", {
|
|
138
138
|
className: "flex flex-col",
|
|
139
|
-
children: [/* @__PURE__ */
|
|
139
|
+
children: [/* @__PURE__ */ n("div", {
|
|
140
140
|
className: "bg-blue-400 p-1 text-xs text-white",
|
|
141
141
|
children: "Ease Out"
|
|
142
|
-
}), /* @__PURE__ */
|
|
142
|
+
}), /* @__PURE__ */ r("div", {
|
|
143
143
|
className: "flex flex-wrap",
|
|
144
144
|
children: [
|
|
145
|
-
/* @__PURE__ */
|
|
145
|
+
/* @__PURE__ */ n(e, {
|
|
146
146
|
title: "Ease Out Quad",
|
|
147
147
|
onClick: s("easeOutQuad"),
|
|
148
|
-
children: /* @__PURE__ */
|
|
148
|
+
children: /* @__PURE__ */ n("path", {
|
|
149
149
|
d: "M30,0 C13.5,1.8000000000000007 7.5,16.2 0,30",
|
|
150
150
|
className: "fill-transparent stroke-current stroke-2"
|
|
151
151
|
})
|
|
152
152
|
}),
|
|
153
|
-
/* @__PURE__ */
|
|
153
|
+
/* @__PURE__ */ n(e, {
|
|
154
154
|
title: "Ease Out Cubic",
|
|
155
155
|
onClick: s("easeOutCubic"),
|
|
156
|
-
children: /* @__PURE__ */
|
|
156
|
+
children: /* @__PURE__ */ n("path", {
|
|
157
157
|
d: "M30,0 C10.649999999999999,0 6.45,11.7 0,30",
|
|
158
158
|
className: "fill-transparent stroke-current stroke-2"
|
|
159
159
|
})
|
|
160
160
|
}),
|
|
161
|
-
/* @__PURE__ */
|
|
161
|
+
/* @__PURE__ */ n(e, {
|
|
162
162
|
title: "Ease Out Quart",
|
|
163
163
|
onClick: s("easeOutQuart"),
|
|
164
|
-
children: /* @__PURE__ */
|
|
164
|
+
children: /* @__PURE__ */ n("path", {
|
|
165
165
|
d: "M30,0 C13.2,0 4.95,4.800000000000001 0,30",
|
|
166
166
|
className: "fill-transparent stroke-current stroke-2"
|
|
167
167
|
})
|
|
168
168
|
}),
|
|
169
|
-
/* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ n(e, {
|
|
170
170
|
title: "Ease Out Quint",
|
|
171
171
|
onClick: s("easeOutQuint"),
|
|
172
|
-
children: /* @__PURE__ */
|
|
172
|
+
children: /* @__PURE__ */ n("path", {
|
|
173
173
|
d: "M30,0 C9.6,0 6.9,0 0,30",
|
|
174
174
|
className: "fill-transparent stroke-current stroke-2"
|
|
175
175
|
})
|
|
176
176
|
}),
|
|
177
|
-
/* @__PURE__ */
|
|
177
|
+
/* @__PURE__ */ n(e, {
|
|
178
178
|
title: "Ease Out Sine",
|
|
179
179
|
onClick: s("easeOutSine"),
|
|
180
|
-
children: /* @__PURE__ */
|
|
180
|
+
children: /* @__PURE__ */ n("path", {
|
|
181
181
|
d: "M30,0 C16.95,0 11.700000000000001,12.75 0,30",
|
|
182
182
|
className: "fill-transparent stroke-current stroke-2"
|
|
183
183
|
})
|
|
184
184
|
}),
|
|
185
|
-
/* @__PURE__ */
|
|
185
|
+
/* @__PURE__ */ n(e, {
|
|
186
186
|
title: "Ease Out Expo",
|
|
187
187
|
onClick: s("easeOutExpo"),
|
|
188
|
-
children: /* @__PURE__ */
|
|
188
|
+
children: /* @__PURE__ */ n("path", {
|
|
189
189
|
d: "M30,0 C6.6,0 5.7,0 0,30",
|
|
190
190
|
className: "fill-transparent stroke-current stroke-2"
|
|
191
191
|
})
|
|
192
192
|
}),
|
|
193
|
-
/* @__PURE__ */
|
|
193
|
+
/* @__PURE__ */ n(e, {
|
|
194
194
|
title: "Ease Out Circ",
|
|
195
195
|
onClick: s("easeOutCirc"),
|
|
196
|
-
children: /* @__PURE__ */
|
|
196
|
+
children: /* @__PURE__ */ n("path", {
|
|
197
197
|
d: "M30,0 C4.95,0 2.25,5.400000000000002 0,30",
|
|
198
198
|
className: "fill-transparent stroke-current stroke-2"
|
|
199
199
|
})
|
|
200
200
|
}),
|
|
201
|
-
/* @__PURE__ */
|
|
201
|
+
/* @__PURE__ */ n(e, {
|
|
202
202
|
title: "Ease Out Back",
|
|
203
203
|
onClick: s("easeOutBack"),
|
|
204
|
-
children: /* @__PURE__ */
|
|
204
|
+
children: /* @__PURE__ */ n("path", {
|
|
205
205
|
d: "M30,0 C9.6,-8.25 5.25,3.4499999999999993 0,30",
|
|
206
206
|
className: "fill-transparent stroke-current stroke-2"
|
|
207
207
|
})
|
|
@@ -209,74 +209,74 @@ var a = ({ className: a = "", onChange: o }) => {
|
|
|
209
209
|
]
|
|
210
210
|
})]
|
|
211
211
|
}),
|
|
212
|
-
/* @__PURE__ */
|
|
212
|
+
/* @__PURE__ */ r("div", {
|
|
213
213
|
className: "flex flex-col",
|
|
214
|
-
children: [/* @__PURE__ */
|
|
214
|
+
children: [/* @__PURE__ */ n("div", {
|
|
215
215
|
className: "bg-blue-400 p-1 text-xs text-white",
|
|
216
216
|
children: "Ease In Out"
|
|
217
|
-
}), /* @__PURE__ */
|
|
217
|
+
}), /* @__PURE__ */ r("div", {
|
|
218
218
|
className: "flex flex-wrap",
|
|
219
219
|
children: [
|
|
220
|
-
/* @__PURE__ */
|
|
220
|
+
/* @__PURE__ */ n(e, {
|
|
221
221
|
title: "Ease In Out Quad",
|
|
222
222
|
onClick: s("easeInOutQuad"),
|
|
223
|
-
children: /* @__PURE__ */
|
|
223
|
+
children: /* @__PURE__ */ n("path", {
|
|
224
224
|
d: "M30,0 C15.450000000000001,1.3500000000000014 13.65,29.1 0,30",
|
|
225
225
|
className: "fill-transparent stroke-current stroke-2"
|
|
226
226
|
})
|
|
227
227
|
}),
|
|
228
|
-
/* @__PURE__ */
|
|
228
|
+
/* @__PURE__ */ n(e, {
|
|
229
229
|
title: "Ease In Out Cubic",
|
|
230
230
|
onClick: s("easeInOutCubic"),
|
|
231
|
-
children: /* @__PURE__ */
|
|
231
|
+
children: /* @__PURE__ */ n("path", {
|
|
232
232
|
d: "M30,0 C10.649999999999999,0 19.35,28.65 0,30",
|
|
233
233
|
className: "fill-transparent stroke-current stroke-2"
|
|
234
234
|
})
|
|
235
235
|
}),
|
|
236
|
-
/* @__PURE__ */
|
|
236
|
+
/* @__PURE__ */ n(e, {
|
|
237
237
|
title: "Ease In Out Quart",
|
|
238
238
|
onClick: s("easeInOutQuart"),
|
|
239
|
-
children: /* @__PURE__ */
|
|
239
|
+
children: /* @__PURE__ */ n("path", {
|
|
240
240
|
d: "M30,0 C5.25,0 23.1,30 0,30",
|
|
241
241
|
className: "fill-transparent stroke-current stroke-2"
|
|
242
242
|
})
|
|
243
243
|
}),
|
|
244
|
-
/* @__PURE__ */
|
|
244
|
+
/* @__PURE__ */ n(e, {
|
|
245
245
|
title: "Ease In Out Quint",
|
|
246
246
|
onClick: s("easeInOutQuint"),
|
|
247
|
-
children: /* @__PURE__ */
|
|
247
|
+
children: /* @__PURE__ */ n("path", {
|
|
248
248
|
d: "M30,0 C2.1,0 25.8,30 0,30",
|
|
249
249
|
className: "fill-transparent stroke-current stroke-2"
|
|
250
250
|
})
|
|
251
251
|
}),
|
|
252
|
-
/* @__PURE__ */
|
|
252
|
+
/* @__PURE__ */ n(e, {
|
|
253
253
|
title: "Ease In Out Sine",
|
|
254
254
|
onClick: s("easeInOutSine"),
|
|
255
|
-
children: /* @__PURE__ */
|
|
255
|
+
children: /* @__PURE__ */ n("path", {
|
|
256
256
|
d: "M30,0 C16.5,1.5 13.35,28.5 0,30",
|
|
257
257
|
className: "fill-transparent stroke-current stroke-2"
|
|
258
258
|
})
|
|
259
259
|
}),
|
|
260
|
-
/* @__PURE__ */
|
|
260
|
+
/* @__PURE__ */ n(e, {
|
|
261
261
|
title: "Ease In Out Expo",
|
|
262
262
|
onClick: s("easeInOutExpo"),
|
|
263
|
-
children: /* @__PURE__ */
|
|
263
|
+
children: /* @__PURE__ */ n("path", {
|
|
264
264
|
d: "M30,0 C0,0 30,30 0,30",
|
|
265
265
|
className: "fill-transparent stroke-current stroke-2"
|
|
266
266
|
})
|
|
267
267
|
}),
|
|
268
|
-
/* @__PURE__ */
|
|
268
|
+
/* @__PURE__ */ n(e, {
|
|
269
269
|
title: "Ease In Out Circ",
|
|
270
270
|
onClick: s("easeInOutCirc"),
|
|
271
|
-
children: /* @__PURE__ */
|
|
271
|
+
children: /* @__PURE__ */ n("path", {
|
|
272
272
|
d: "M30,0 C4.5,4.199999999999999 23.55,25.95 0,30",
|
|
273
273
|
className: "fill-transparent stroke-current stroke-2"
|
|
274
274
|
})
|
|
275
275
|
}),
|
|
276
|
-
/* @__PURE__ */
|
|
276
|
+
/* @__PURE__ */ n(e, {
|
|
277
277
|
title: "Ease In Out Back",
|
|
278
278
|
onClick: s("easeInOutBack"),
|
|
279
|
-
children: /* @__PURE__ */
|
|
279
|
+
children: /* @__PURE__ */ n("path", {
|
|
280
280
|
d: "M30,0 C7.95,-16.5 20.400000000000002,46.5 0,30",
|
|
281
281
|
className: "fill-transparent stroke-current stroke-2"
|
|
282
282
|
})
|