@plitzi/sdk-style 0.38.9 → 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.
- package/CHANGELOG.md +189 -0
- package/dist/components/InputEasing/InputEasingButton.mjs +1 -1
- package/dist/components/InputEasing/InputEasingList.mjs +5 -5
- package/dist/components/Selector/Selector.mjs +2 -1
- package/dist/components/Selector/SelectorItem/ItemOptions.mjs +45 -41
- package/dist/components/Selector/SelectorItem/SelectorItem.mjs +4 -4
- package/dist/components/Selector/SelectorItem/helpers.d.ts +2 -0
- package/dist/components/Selector/SelectorItem/helpers.mjs +4 -0
- package/dist/components/StyleInspector/Inspector.mjs +185 -171
- package/dist/components/StyleInspector/InspectorSearchContext.d.ts +3 -0
- package/dist/components/StyleInspector/InspectorSearchContext.mjs +6 -0
- package/dist/components/StyleInspector/StyleInspector.mjs +154 -128
- package/dist/components/StyleInspector/categories/Background/Background.mjs +82 -114
- package/dist/components/StyleInspector/categories/Background/components/BackgroundAttachment/BackgroundAttachment.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundAttachment/BackgroundAttachment.mjs +53 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundAttachment/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundAttachment/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundLayer/BackgroundLayer.mjs +159 -153
- package/dist/components/StyleInspector/categories/Background/components/BackgroundLayer/helpers.d.ts +11 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundLayer/helpers.mjs +45 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundPosition/BackgroundPosition.mjs +26 -23
- package/dist/components/StyleInspector/categories/Background/components/BackgroundSize/BackgroundSize.mjs +65 -56
- package/dist/components/StyleInspector/categories/Background/components/BackgroundSize/helpers.d.ts +4 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundSize/helpers.mjs +8 -0
- package/dist/components/StyleInspector/categories/Background/components/BackgroundTile/BackgroundTile.mjs +28 -27
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientPreviewBar.d.ts +4 -2
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientPreviewBar.mjs +19 -18
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopBar.d.ts +4 -0
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopBar.mjs +48 -80
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopEditor.d.ts +5 -3
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopEditor.mjs +51 -41
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopHandle.d.ts +5 -1
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopHandle.mjs +54 -32
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopTrack.d.ts +3 -1
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopTrack.mjs +14 -13
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/helpers.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/helpers.mjs +8 -0
- package/dist/components/StyleInspector/categories/Background/components/LayerGroup/LayerGroup.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Background/components/LayerGroup/LayerGroup.mjs +11 -0
- package/dist/components/StyleInspector/categories/Background/components/LayerGroup/index.d.ts +3 -0
- package/dist/components/StyleInspector/categories/Background/components/LayerGroup/index.mjs +5 -0
- package/dist/components/StyleInspector/categories/Background/helpers/backgroundParser.d.ts +21 -7
- package/dist/components/StyleInspector/categories/Background/helpers/backgroundParser.mjs +114 -113
- package/dist/components/StyleInspector/categories/Background/helpers/layerValues.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Background/helpers/layerValues.mjs +11 -0
- package/dist/components/StyleInspector/categories/Background/modes/ConicGradientMode.mjs +52 -87
- package/dist/components/StyleInspector/categories/Background/modes/ImageMode.mjs +16 -77
- package/dist/components/StyleInspector/categories/Background/modes/LinearGradientMode.mjs +19 -62
- package/dist/components/StyleInspector/categories/Background/modes/RadialGradientMode.mjs +79 -97
- package/dist/components/StyleInspector/categories/Background/modes/RawMode.d.ts +8 -0
- package/dist/components/StyleInspector/categories/Background/modes/RawMode.mjs +22 -0
- package/dist/components/StyleInspector/categories/Background/modes/helpers.d.ts +19 -0
- package/dist/components/StyleInspector/categories/Background/modes/helpers.mjs +54 -0
- package/dist/components/StyleInspector/categories/Border/Border.mjs +26 -43
- package/dist/components/StyleInspector/categories/Border/BorderPlacements.mjs +60 -51
- package/dist/components/StyleInspector/categories/Display/Display.mjs +32 -49
- package/dist/components/StyleInspector/categories/DisplayFlexChild/DisplayFlexChild.mjs +33 -38
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadow.mjs +21 -33
- package/dist/components/StyleInspector/categories/Effects/Effects.mjs +131 -154
- package/dist/components/StyleInspector/categories/Effects/Filters/Filter.mjs +23 -31
- package/dist/components/StyleInspector/categories/Effects/Filters/FilterItem.d.ts +9 -5
- package/dist/components/StyleInspector/categories/Effects/Filters/FilterItem.mjs +57 -124
- package/dist/components/StyleInspector/categories/Effects/Filters/helpers.d.ts +25 -0
- package/dist/components/StyleInspector/categories/Effects/Filters/helpers.mjs +87 -0
- package/dist/components/StyleInspector/categories/Effects/Transform/Transform.mjs +18 -28
- package/dist/components/StyleInspector/categories/Effects/Transform/TransformItem.d.ts +1 -2
- package/dist/components/StyleInspector/categories/Effects/Transform/TransformItem.mjs +52 -76
- package/dist/components/StyleInspector/categories/Effects/Transform/transformFunctions.d.ts +5 -0
- package/dist/components/StyleInspector/categories/Effects/Transform/transformFunctions.mjs +8 -2
- package/dist/components/StyleInspector/categories/Effects/Transition/Transition.mjs +21 -37
- package/dist/components/StyleInspector/categories/Effects/Transition/TransitionEasing.d.ts +10 -0
- package/dist/components/StyleInspector/categories/Effects/Transition/TransitionEasing.mjs +92 -0
- package/dist/components/StyleInspector/categories/Effects/Transition/TransitionItem.d.ts +4 -4
- package/dist/components/StyleInspector/categories/Effects/Transition/TransitionItem.mjs +78 -359
- package/dist/components/StyleInspector/categories/Effects/Transition/helpers.d.ts +39 -0
- package/dist/components/StyleInspector/categories/Effects/Transition/helpers.mjs +268 -0
- package/dist/components/StyleInspector/categories/List/List.mjs +39 -38
- package/dist/components/StyleInspector/categories/ListItem/ListItem.mjs +29 -29
- package/dist/components/StyleInspector/categories/Others/Others.mjs +66 -88
- package/dist/components/StyleInspector/categories/Position/Position.mjs +67 -75
- package/dist/components/StyleInspector/categories/RawStyle/RawStyle.mjs +19 -18
- package/dist/components/StyleInspector/categories/Size/Size.mjs +68 -88
- package/dist/components/StyleInspector/categories/Spacing/Spacing.mjs +18 -27
- package/dist/components/StyleInspector/categories/Spacing/SpacingMargin.mjs +2 -2
- package/dist/components/StyleInspector/categories/Spacing/SpacingPadding.mjs +4 -3
- package/dist/components/StyleInspector/categories/Typography/Typography.mjs +88 -98
- package/dist/components/StyleInspector/categories/Typography/TypographyFont.mjs +1 -1
- package/dist/components/StyleInspector/categories/Typography/TypographyStyle.mjs +1 -1
- package/dist/components/StyleInspector/categories/Typography/TypographyTextShadow.mjs +26 -39
- package/dist/components/StyleInspector/categories/Variables/Variables.mjs +38 -37
- package/dist/components/StyleInspector/categoryKeys.d.ts +45 -0
- package/dist/components/StyleInspector/categoryKeys.mjs +220 -0
- package/dist/components/StyleInspector/components/CategoryContainer/CategoryContainer.mjs +43 -38
- package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionIconGroup.mjs +2 -1
- package/dist/components/StyleInspector/components/CategorySection/CategorySection.mjs +30 -15
- package/dist/components/StyleInspector/components/ColorSwatch/ColorSwatch.d.ts +8 -0
- package/dist/components/StyleInspector/components/ColorSwatch/ColorSwatch.mjs +23 -0
- package/dist/components/StyleInspector/components/ColorSwatch/helpers.d.ts +3 -0
- package/dist/components/StyleInspector/components/ColorSwatch/helpers.mjs +9 -0
- package/dist/components/StyleInspector/components/ColorSwatch/index.d.ts +3 -0
- package/dist/components/StyleInspector/components/ColorSwatch/index.mjs +5 -0
- package/dist/components/StyleInspector/components/InspectorDots/InspectorDots.d.ts +1 -0
- package/dist/components/StyleInspector/components/InspectorDots/InspectorDots.mjs +11 -11
- package/dist/components/StyleInspector/components/InspectorFooter/InspectorFooter.d.ts +11 -0
- package/dist/components/StyleInspector/components/InspectorFooter/InspectorFooter.mjs +38 -0
- package/dist/components/StyleInspector/components/InspectorFooter/helpers.d.ts +2 -0
- package/dist/components/StyleInspector/components/InspectorFooter/helpers.mjs +11 -0
- package/dist/components/StyleInspector/components/InspectorFooter/index.d.ts +3 -0
- package/dist/components/StyleInspector/components/InspectorFooter/index.mjs +5 -0
- package/dist/components/StyleInspector/components/InspectorLabel/InspectorLabel.mjs +34 -31
- package/dist/components/StyleInspector/components/InspectorLabel/helpers.d.ts +17 -0
- package/dist/components/StyleInspector/components/InspectorLabel/helpers.mjs +16 -0
- package/dist/components/StyleInspector/components/InspectorSearch/InspectorSearch.d.ts +7 -0
- package/dist/components/StyleInspector/components/InspectorSearch/InspectorSearch.mjs +24 -0
- package/dist/components/StyleInspector/components/InspectorSearch/index.d.ts +3 -0
- package/dist/components/StyleInspector/components/InspectorSearch/index.mjs +5 -0
- package/dist/components/StyleInspector/components/ShadowItem/ShadowItem.d.ts +9 -0
- package/dist/components/StyleInspector/components/ShadowItem/ShadowItem.mjs +110 -0
- package/dist/components/StyleInspector/components/ShadowItem/index.d.ts +3 -0
- package/dist/components/StyleInspector/components/ShadowItem/index.mjs +5 -0
- package/dist/components/StyleInspector/components/TargetSummary/TargetSummary.d.ts +7 -0
- package/dist/components/StyleInspector/components/TargetSummary/TargetSummary.mjs +24 -0
- package/dist/components/StyleInspector/components/TargetSummary/index.d.ts +3 -0
- package/dist/components/StyleInspector/components/TargetSummary/index.mjs +5 -0
- package/dist/components/StyleInspector/components/ValueList/ValueList.d.ts +12 -0
- package/dist/components/StyleInspector/components/ValueList/ValueList.mjs +25 -0
- package/dist/components/StyleInspector/components/ValueList/index.d.ts +3 -0
- package/dist/components/StyleInspector/components/ValueList/index.mjs +5 -0
- package/dist/components/StyleInspector/components/ValueListItem/ValueListItem.d.ts +16 -0
- package/dist/components/StyleInspector/components/ValueListItem/ValueListItem.mjs +71 -0
- package/dist/components/StyleInspector/components/ValueListItem/index.d.ts +3 -0
- package/dist/components/StyleInspector/components/ValueListItem/index.mjs +5 -0
- package/dist/components/StyleInspector/cssValues.d.ts +15 -0
- package/dist/components/StyleInspector/cssValues.mjs +27 -0
- package/dist/components/StyleInspector/helpers.d.ts +17 -1
- package/dist/components/StyleInspector/helpers.mjs +9 -2
- package/dist/components/StyleInspector/hooks/useInspectorValues.mjs +42 -45
- package/dist/components/StyleInspector/search.d.ts +11 -0
- package/dist/components/StyleInspector/search.mjs +14 -0
- package/dist/components/StyleInspector/shadowValue.d.ts +20 -0
- package/dist/components/StyleInspector/shadowValue.mjs +36 -0
- package/dist/components/StyleManager/StyleSelectorTag.mjs +1 -1
- package/package.json +185 -17
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadowItem.d.ts +0 -8
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadowItem.mjs +0 -132
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/helpers.d.ts +0 -2
- package/dist/components/StyleInspector/categories/Effects/BoxShadow/helpers.mjs +0 -18
- package/dist/components/StyleInspector/categories/Typography/TypographyTextShadowItem.d.ts +0 -8
- package/dist/components/StyleInspector/categories/Typography/TypographyTextShadowItem.mjs +0 -83
|
@@ -1,50 +1,51 @@
|
|
|
1
|
-
import e from "../../../../
|
|
2
|
-
import t from "../../../../components/
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import a from "
|
|
6
|
-
import o from "@plitzi/plitzi-ui/icons/
|
|
7
|
-
import s from "@plitzi/plitzi-ui/icons/
|
|
8
|
-
import c from "@plitzi/plitzi-ui/icons/
|
|
1
|
+
import { asText as e } from "../../../../cssValues.mjs";
|
|
2
|
+
import t from "../../../../components/CategoryOption/index.mjs";
|
|
3
|
+
import n from "../../../../components/CategorySection/index.mjs";
|
|
4
|
+
import { useCallback as r, useMemo as i } from "react";
|
|
5
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
6
|
+
import o from "@plitzi/plitzi-ui/icons/BackgroundTileX";
|
|
7
|
+
import s from "@plitzi/plitzi-ui/icons/BackgroundTileXY";
|
|
8
|
+
import c from "@plitzi/plitzi-ui/icons/BackgroundTileY";
|
|
9
|
+
import l from "@plitzi/plitzi-ui/icons/XMark";
|
|
9
10
|
//#region src/components/StyleInspector/categories/Background/components/BackgroundTile/BackgroundTile.tsx
|
|
10
|
-
var
|
|
11
|
-
let
|
|
11
|
+
var u = ({ layer: u, onChange: d }) => {
|
|
12
|
+
let f = i(() => [
|
|
12
13
|
{
|
|
13
14
|
value: "repeat",
|
|
14
|
-
icon: /* @__PURE__ */
|
|
15
|
+
icon: /* @__PURE__ */ a(s, {}),
|
|
15
16
|
description: "Horizontally and Vertically",
|
|
16
|
-
active:
|
|
17
|
+
active: u.repeat === "repeat"
|
|
17
18
|
},
|
|
18
19
|
{
|
|
19
20
|
value: "repeat-x",
|
|
20
|
-
icon: /* @__PURE__ */
|
|
21
|
+
icon: /* @__PURE__ */ a(o, {}),
|
|
21
22
|
description: "Horizontally",
|
|
22
|
-
active:
|
|
23
|
+
active: u.repeat === "repeat-x"
|
|
23
24
|
},
|
|
24
25
|
{
|
|
25
26
|
value: "repeat-y",
|
|
26
|
-
icon: /* @__PURE__ */
|
|
27
|
+
icon: /* @__PURE__ */ a(c, {}),
|
|
27
28
|
description: "Vertically",
|
|
28
|
-
active:
|
|
29
|
+
active: u.repeat === "repeat-y"
|
|
29
30
|
},
|
|
30
31
|
{
|
|
31
32
|
value: "no-repeat",
|
|
32
|
-
icon: /* @__PURE__ */
|
|
33
|
+
icon: /* @__PURE__ */ a(l, {}),
|
|
33
34
|
description: "Don't tile",
|
|
34
|
-
active:
|
|
35
|
+
active: u.repeat === "no-repeat"
|
|
35
36
|
}
|
|
36
|
-
], [
|
|
37
|
-
...
|
|
38
|
-
repeat:
|
|
39
|
-
}), [
|
|
40
|
-
return /* @__PURE__ */
|
|
37
|
+
], [u.repeat]), p = r((t) => d?.({
|
|
38
|
+
...u,
|
|
39
|
+
repeat: e(t)
|
|
40
|
+
}), [u, d]);
|
|
41
|
+
return /* @__PURE__ */ a(n, {
|
|
41
42
|
label: "Tile",
|
|
42
|
-
children: /* @__PURE__ */
|
|
43
|
+
children: /* @__PURE__ */ a(t, {
|
|
43
44
|
type: "iconGroup",
|
|
44
|
-
items:
|
|
45
|
-
onChange:
|
|
45
|
+
items: f,
|
|
46
|
+
onChange: p
|
|
46
47
|
})
|
|
47
48
|
});
|
|
48
49
|
};
|
|
49
50
|
//#endregion
|
|
50
|
-
export {
|
|
51
|
+
export { u as default };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { MouseEvent } from 'react';
|
|
1
|
+
import { MouseEvent, ReactNode } from 'react';
|
|
2
2
|
type GradientPreviewBarProps = {
|
|
3
3
|
gradientCSS: string;
|
|
4
|
+
children?: ReactNode;
|
|
4
5
|
onClick: (e: MouseEvent<HTMLDivElement>) => void;
|
|
5
6
|
};
|
|
6
|
-
|
|
7
|
+
/** The stops drawn on a bar over a checkerboard, with their handles on it; a click on the bar adds a stop there. */
|
|
8
|
+
declare const GradientPreviewBar: ({ gradientCSS, children, onClick }: GradientPreviewBarProps) => import('react').JSX.Element;
|
|
7
9
|
export default GradientPreviewBar;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { resolveTokens as e } from "../../../../cssValues.mjs";
|
|
2
|
+
import t from "../../../../StyleInspectorContext.mjs";
|
|
3
|
+
import { CHECKERBOARD as n } from "../../../../components/ColorSwatch/helpers.mjs";
|
|
4
|
+
import { use as r, useMemo as i } from "react";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
2
6
|
//#region src/components/StyleInspector/categories/Background/components/GradientStopBar/GradientPreviewBar.tsx
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
})
|
|
15
|
-
|
|
16
|
-
style: { background: n }
|
|
17
|
-
})]
|
|
18
|
-
});
|
|
7
|
+
var s = ({ gradientCSS: s, children: c, onClick: l }) => {
|
|
8
|
+
let { variables: u } = r(t), d = i(() => ({ background: e(s, u) }), [s, u]);
|
|
9
|
+
return /* @__PURE__ */ o("div", {
|
|
10
|
+
className: "relative h-7 w-full cursor-copy rounded-md ring-1 ring-black/15 ring-inset dark:ring-white/20",
|
|
11
|
+
style: n,
|
|
12
|
+
title: "Click the bar to add a stop",
|
|
13
|
+
onClick: l,
|
|
14
|
+
children: [/* @__PURE__ */ a("div", {
|
|
15
|
+
className: "absolute inset-0 rounded-md",
|
|
16
|
+
style: d
|
|
17
|
+
}), c]
|
|
18
|
+
});
|
|
19
|
+
};
|
|
19
20
|
//#endregion
|
|
20
|
-
export {
|
|
21
|
+
export { s as default };
|
|
@@ -3,5 +3,9 @@ export type GradientStopBarProps = {
|
|
|
3
3
|
stops: GradientStop[];
|
|
4
4
|
onChange?: (stops: GradientStop[]) => void;
|
|
5
5
|
};
|
|
6
|
+
/**
|
|
7
|
+
* A gradient's stops: the bar that draws them with a handle per stop, and the selected stop's color and position. A
|
|
8
|
+
* click on the bar adds a stop there in the color around it; a gradient keeps at least two.
|
|
9
|
+
*/
|
|
6
10
|
declare const GradientStopBar: ({ stops, onChange }: GradientStopBarProps) => import('react').JSX.Element;
|
|
7
11
|
export default GradientStopBar;
|
|
@@ -1,94 +1,62 @@
|
|
|
1
1
|
import { newStopId as e } from "../../helpers/backgroundParser.mjs";
|
|
2
2
|
import t from "./GradientPreviewBar.mjs";
|
|
3
3
|
import n from "./GradientStopEditor.mjs";
|
|
4
|
-
import r from "./
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import d from "@plitzi/plitzi-ui/Icon";
|
|
4
|
+
import { colorNear as r, sortStops as i, stopsPreview as a } from "./helpers.mjs";
|
|
5
|
+
import o from "./GradientStopTrack.mjs";
|
|
6
|
+
import { useCallback as s, useMemo as c, useRef as l, useState as u } from "react";
|
|
7
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
9
8
|
//#region src/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopBar.tsx
|
|
10
|
-
|
|
11
|
-
let
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
let h = o(p);
|
|
16
|
-
h.current = p;
|
|
17
|
-
let [g, _] = s(p[0]?.id ?? ""), v = a(() => [...p].sort((e, t) => f(e.position) - f(t.position)), [p]), y = a(() => `linear-gradient(90deg, ${v.map((e) => e.position ? `${e.color} ${e.position}` : e.color).join(", ")})`, [v]), b = p.find((e) => e.id === g) ?? p[0], x = i((t) => {
|
|
18
|
-
let { left: n, width: r } = t.currentTarget.getBoundingClientRect(), i = Math.round(Math.max(0, Math.min(100, (t.clientX - n) / r * 100))), a = h.current, o = [...a].sort((e, t) => Math.abs(f(e.position) - i) - Math.abs(f(t.position) - i)).at(0), s = {
|
|
9
|
+
var p = 10, m = ({ stops: m, onChange: h }) => {
|
|
10
|
+
let g = l(m);
|
|
11
|
+
g.current = m;
|
|
12
|
+
let [_, v] = u(m[0]?.id ?? ""), y = c(() => a(m), [m]), b = m.find((e) => e.id === _) ?? m.at(0), x = s((t) => {
|
|
13
|
+
let n = g.current, a = {
|
|
19
14
|
id: e(),
|
|
20
|
-
color:
|
|
21
|
-
position: `${
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
}, [
|
|
25
|
-
|
|
15
|
+
color: r(n, t),
|
|
16
|
+
position: `${t}%`
|
|
17
|
+
};
|
|
18
|
+
h?.(i([...n, a])), v(a.id);
|
|
19
|
+
}, [h]), S = s((e) => {
|
|
20
|
+
let { left: t, width: n } = e.currentTarget.getBoundingClientRect(), r = n - p * 2;
|
|
21
|
+
x(Math.round(Math.max(0, Math.min(100, (e.clientX - t - p) / r * 100))));
|
|
22
|
+
}, [x]), C = s(() => x(50), [x]), w = s((e) => {
|
|
23
|
+
b && h?.(g.current.map((t) => t.id === b.id ? {
|
|
26
24
|
...t,
|
|
27
25
|
color: e
|
|
28
26
|
} : t));
|
|
29
|
-
}, [
|
|
30
|
-
|
|
31
|
-
}, [m]), w = i((e) => {
|
|
32
|
-
b && m?.(h.current.map((t) => t.id === b.id ? {
|
|
27
|
+
}, [h, b]), T = s((e) => {
|
|
28
|
+
b && h?.(i(g.current.map((t) => t.id === b.id ? {
|
|
33
29
|
...t,
|
|
34
|
-
position:
|
|
35
|
-
} : t)
|
|
36
|
-
}, [
|
|
37
|
-
if (
|
|
38
|
-
let
|
|
39
|
-
|
|
40
|
-
}, [
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
position: "50%"
|
|
45
|
-
}, n = [...h.current, t].sort((e, t) => f(e.position) - f(t.position));
|
|
46
|
-
m?.(n), _(t.id);
|
|
47
|
-
}, [m]);
|
|
48
|
-
return /* @__PURE__ */ l("div", {
|
|
30
|
+
position: e
|
|
31
|
+
} : t)));
|
|
32
|
+
}, [h, b]), E = s((e) => h?.(i(e)), [h]), D = s((e) => {
|
|
33
|
+
if (g.current.length <= 2) return;
|
|
34
|
+
let t = g.current.filter((t) => t.id !== e);
|
|
35
|
+
h?.(t), v(t[0]?.id ?? "");
|
|
36
|
+
}, [h]), O = s(() => {
|
|
37
|
+
b && D(b.id);
|
|
38
|
+
}, [D, b]);
|
|
39
|
+
return /* @__PURE__ */ f("div", {
|
|
49
40
|
className: "flex flex-col gap-2",
|
|
50
|
-
children: [
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
selectedId: g,
|
|
60
|
-
onChange: C,
|
|
61
|
-
onSelect: _
|
|
62
|
-
})
|
|
63
|
-
}),
|
|
64
|
-
b && /* @__PURE__ */ c(n, {
|
|
65
|
-
stop: b,
|
|
66
|
-
showRemove: p.length > 2,
|
|
67
|
-
onColorChange: S,
|
|
68
|
-
onPositionChange: w,
|
|
69
|
-
onRemove: T
|
|
70
|
-
}),
|
|
71
|
-
/* @__PURE__ */ l("div", {
|
|
72
|
-
className: "flex flex-wrap gap-1",
|
|
73
|
-
children: [v.map((e) => /* @__PURE__ */ c("button", {
|
|
74
|
-
type: "button",
|
|
75
|
-
className: u("h-5 w-5 cursor-pointer rounded-sm border shadow-sm", g === e.id ? "border-blue-500 ring-1 ring-blue-300 dark:ring-blue-700" : "border-gray-300 hover:border-gray-400 dark:border-zinc-600"),
|
|
76
|
-
style: { backgroundColor: e.color },
|
|
77
|
-
onClick: () => _(e.id),
|
|
78
|
-
title: `${e.color} • ${e.position}`
|
|
79
|
-
}, e.id)), /* @__PURE__ */ c("button", {
|
|
80
|
-
type: "button",
|
|
81
|
-
className: "flex h-5 w-5 cursor-pointer items-center justify-center rounded-sm border border-dashed border-gray-300 text-gray-400 hover:border-blue-400 hover:text-blue-500 dark:border-zinc-600 dark:text-zinc-500",
|
|
82
|
-
title: "Add stop at 50%",
|
|
83
|
-
onClick: E,
|
|
84
|
-
children: /* @__PURE__ */ c(d, {
|
|
85
|
-
icon: "fas fa-plus",
|
|
86
|
-
size: "xs"
|
|
87
|
-
})
|
|
88
|
-
})]
|
|
41
|
+
children: [/* @__PURE__ */ d(t, {
|
|
42
|
+
gradientCSS: y,
|
|
43
|
+
onClick: S,
|
|
44
|
+
children: /* @__PURE__ */ d(o, {
|
|
45
|
+
stops: m,
|
|
46
|
+
selectedId: b?.id ?? "",
|
|
47
|
+
onChange: E,
|
|
48
|
+
onSelect: v,
|
|
49
|
+
onRemove: D
|
|
89
50
|
})
|
|
90
|
-
|
|
51
|
+
}), b && /* @__PURE__ */ d(n, {
|
|
52
|
+
stop: b,
|
|
53
|
+
canRemove: m.length > 2,
|
|
54
|
+
onColorChange: w,
|
|
55
|
+
onPositionChange: T,
|
|
56
|
+
onAdd: C,
|
|
57
|
+
onRemove: O
|
|
58
|
+
})]
|
|
91
59
|
});
|
|
92
60
|
};
|
|
93
61
|
//#endregion
|
|
94
|
-
export {
|
|
62
|
+
export { m as default };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { GradientStop } from '../../helpers/backgroundParser';
|
|
2
2
|
type GradientStopEditorProps = {
|
|
3
3
|
stop: GradientStop;
|
|
4
|
-
|
|
4
|
+
canRemove: boolean;
|
|
5
5
|
onColorChange: (color: string) => void;
|
|
6
|
-
onPositionChange: (value:
|
|
6
|
+
onPositionChange: (value: string) => void;
|
|
7
|
+
onAdd: () => void;
|
|
7
8
|
onRemove: () => void;
|
|
8
9
|
};
|
|
9
|
-
|
|
10
|
+
/** The selected stop's color and position, and the two buttons that change how many stops there are. */
|
|
11
|
+
declare const GradientStopEditor: ({ stop, canRemove, onColorChange, onPositionChange, onAdd, onRemove }: GradientStopEditorProps) => import('react').JSX.Element;
|
|
10
12
|
export default GradientStopEditor;
|
|
@@ -1,48 +1,58 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
-
import n from "@plitzi/plitzi-ui/
|
|
3
|
-
import r from "@plitzi/plitzi-ui/
|
|
4
|
-
import i from "@plitzi/plitzi-ui/MetricInput";
|
|
2
|
+
import n from "@plitzi/plitzi-ui/ColorPicker";
|
|
3
|
+
import r from "@plitzi/plitzi-ui/MetricInput";
|
|
5
4
|
//#region src/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopEditor.tsx
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
var i = [{
|
|
6
|
+
label: "%",
|
|
7
|
+
value: "%"
|
|
8
|
+
}, {
|
|
9
|
+
label: "PX",
|
|
10
|
+
value: "px"
|
|
11
|
+
}], a = ({ stop: a, canRemove: o, onColorChange: s, onPositionChange: c, onAdd: l, onRemove: u }) => /* @__PURE__ */ t("div", {
|
|
12
|
+
className: "flex flex-col gap-1.5",
|
|
13
|
+
children: [/* @__PURE__ */ e(n, {
|
|
14
|
+
size: "xs",
|
|
15
|
+
className: { root: "w-full min-w-0" },
|
|
16
|
+
value: a.color,
|
|
17
|
+
allowVariables: !0,
|
|
18
|
+
showAlpha: !0,
|
|
19
|
+
onChange: s
|
|
20
|
+
}), /* @__PURE__ */ t("div", {
|
|
21
|
+
className: "flex items-center gap-1.5",
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ e("span", {
|
|
24
|
+
className: "text-xs text-zinc-500 dark:text-zinc-400",
|
|
25
|
+
children: "At"
|
|
26
|
+
}),
|
|
27
|
+
/* @__PURE__ */ e(r, {
|
|
12
28
|
size: "xs",
|
|
13
|
-
className:
|
|
14
|
-
value: a.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
29
|
+
className: "w-24 shrink-0",
|
|
30
|
+
value: a.position,
|
|
31
|
+
units: i,
|
|
32
|
+
allowedWords: [],
|
|
33
|
+
min: -Infinity,
|
|
34
|
+
onChange: c
|
|
35
|
+
}),
|
|
36
|
+
/* @__PURE__ */ e("span", { className: "grow" }),
|
|
37
|
+
/* @__PURE__ */ e("button", {
|
|
38
|
+
type: "button",
|
|
39
|
+
className: "flex h-6 w-6 shrink-0 cursor-pointer items-center justify-center rounded-md text-zinc-500 hover:bg-gray-100 hover:text-zinc-900 dark:text-zinc-400 dark:hover:bg-zinc-800 dark:hover:text-zinc-100",
|
|
40
|
+
title: "Add a stop",
|
|
41
|
+
"aria-label": "Add a stop",
|
|
42
|
+
onClick: l,
|
|
43
|
+
children: /* @__PURE__ */ e("i", { className: "fa-solid fa-plus text-xs" })
|
|
44
|
+
}),
|
|
45
|
+
/* @__PURE__ */ e("button", {
|
|
46
|
+
type: "button",
|
|
47
|
+
className: "flex h-6 w-6 shrink-0 cursor-pointer items-center justify-center rounded-md text-zinc-500 hover:bg-red-500/10 hover:text-red-600 disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:bg-transparent disabled:hover:text-zinc-500 dark:text-zinc-400 dark:hover:text-red-400",
|
|
48
|
+
title: o ? "Remove this stop" : "A gradient needs two stops",
|
|
49
|
+
"aria-label": "Remove this stop",
|
|
50
|
+
disabled: !o,
|
|
51
|
+
onClick: u,
|
|
52
|
+
children: /* @__PURE__ */ e("i", { className: "fa-solid fa-trash-can text-xs" })
|
|
18
53
|
})
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
size: "xs",
|
|
22
|
-
className: "w-20 shrink-0",
|
|
23
|
-
value: a.position,
|
|
24
|
-
units: [{
|
|
25
|
-
label: "%",
|
|
26
|
-
value: "%"
|
|
27
|
-
}, {
|
|
28
|
-
label: "PX",
|
|
29
|
-
value: "px"
|
|
30
|
-
}],
|
|
31
|
-
allowedWords: [],
|
|
32
|
-
min: Infinity,
|
|
33
|
-
onChange: c
|
|
34
|
-
}),
|
|
35
|
-
o && /* @__PURE__ */ e("button", {
|
|
36
|
-
type: "button",
|
|
37
|
-
className: "shrink-0 cursor-pointer rounded p-0.5 text-gray-400 hover:text-red-500 dark:text-zinc-500 dark:hover:text-red-400",
|
|
38
|
-
title: "Remove stop",
|
|
39
|
-
onClick: l,
|
|
40
|
-
children: /* @__PURE__ */ e(n, {
|
|
41
|
-
icon: "fas fa-times",
|
|
42
|
-
size: "xs"
|
|
43
|
-
})
|
|
44
|
-
})
|
|
45
|
-
]
|
|
54
|
+
]
|
|
55
|
+
})]
|
|
46
56
|
});
|
|
47
57
|
//#endregion
|
|
48
58
|
export { a as default };
|
|
@@ -6,6 +6,10 @@ type GradientStopHandleProps = {
|
|
|
6
6
|
trackRef: RefObject<HTMLDivElement | null>;
|
|
7
7
|
onPositionChange: (stopId: string, pct: number) => void;
|
|
8
8
|
onSelect: (stopId: string) => void;
|
|
9
|
+
onRemove: (stopId: string) => void;
|
|
9
10
|
};
|
|
10
|
-
|
|
11
|
+
/**
|
|
12
|
+
* A stop on the gradient: dragged along it, or moved with the arrow keys (Shift for ten at a time); Delete removes it.
|
|
13
|
+
*/
|
|
14
|
+
declare const GradientStopHandle: ({ stop, selected, trackRef, onPositionChange, onSelect, onRemove }: GradientStopHandleProps) => import('react').JSX.Element;
|
|
11
15
|
export default GradientStopHandle;
|
|
@@ -1,44 +1,66 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { resolveTokens as e } from "../../../../cssValues.mjs";
|
|
2
|
+
import t from "../../../../StyleInspectorContext.mjs";
|
|
3
|
+
import { stopPct as n } from "./helpers.mjs";
|
|
4
|
+
import r from "../../helpers/normalizeLeft.mjs";
|
|
5
|
+
import { use as i, useCallback as a, useLayoutEffect as o, useMemo as s, useRef as c } from "react";
|
|
6
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
7
|
+
import u from "clsx";
|
|
5
8
|
//#region src/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopHandle.tsx
|
|
6
|
-
var
|
|
7
|
-
let
|
|
8
|
-
let t =
|
|
9
|
+
var d = ({ stop: d, selected: f, trackRef: p, onPositionChange: m, onSelect: h, onRemove: g }) => {
|
|
10
|
+
let { variables: _ } = i(t), v = c(null), y = c(!1), b = c(!1), x = s(() => r(d.position.split(" ")[0] ?? "", p.current?.getBoundingClientRect().width ?? Infinity), [d.position, p]), S = s(() => e(d.color, _), [d.color, _]), C = a((e) => {
|
|
11
|
+
let t = p.current;
|
|
9
12
|
if (!t) return 0;
|
|
10
13
|
let { left: n, width: r } = t.getBoundingClientRect();
|
|
11
14
|
return Math.round(Math.max(0, Math.min(100, (e - n) / r * 100)));
|
|
12
|
-
}, [
|
|
13
|
-
|
|
14
|
-
!
|
|
15
|
-
}, [
|
|
16
|
-
let
|
|
17
|
-
e.preventDefault(),
|
|
18
|
-
}, [
|
|
19
|
-
|
|
20
|
-
}, [
|
|
21
|
-
if (
|
|
22
|
-
let t =
|
|
23
|
-
|
|
15
|
+
}, [p]);
|
|
16
|
+
o(() => {
|
|
17
|
+
!y.current && v.current && (v.current.style.left = x);
|
|
18
|
+
}, [x]);
|
|
19
|
+
let w = a((e) => {
|
|
20
|
+
e.preventDefault(), e.stopPropagation(), b.current = !1, y.current = !0, v.current?.setPointerCapture(e.pointerId), v.current?.focus(), h(d.id);
|
|
21
|
+
}, [h, d.id]), T = a((e) => {
|
|
22
|
+
y.current && v.current && (b.current = !0, v.current.style.left = `${C(e.clientX)}%`);
|
|
23
|
+
}, [C]), E = a((e) => {
|
|
24
|
+
if (y.current && (y.current = !1, b.current && v.current)) {
|
|
25
|
+
let t = C(e.clientX);
|
|
26
|
+
v.current.style.left = `${t}%`, m(d.id, t);
|
|
24
27
|
}
|
|
25
28
|
}, [
|
|
29
|
+
C,
|
|
30
|
+
m,
|
|
31
|
+
d.id
|
|
32
|
+
]), D = a((e) => {
|
|
33
|
+
let t = e.shiftKey ? 10 : 1;
|
|
34
|
+
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
|
|
35
|
+
e.preventDefault();
|
|
36
|
+
let r = n(d.position) + (e.key === "ArrowLeft" ? -t : t);
|
|
37
|
+
m(d.id, Math.max(0, Math.min(100, r)));
|
|
38
|
+
} else (e.key === "Delete" || e.key === "Backspace") && (e.preventDefault(), e.stopPropagation(), g(d.id));
|
|
39
|
+
}, [
|
|
40
|
+
m,
|
|
26
41
|
g,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
]);
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
-
ref:
|
|
32
|
-
|
|
42
|
+
d.id,
|
|
43
|
+
d.position
|
|
44
|
+
]), O = a((e) => e.stopPropagation(), []);
|
|
45
|
+
return /* @__PURE__ */ l("button", {
|
|
46
|
+
ref: v,
|
|
47
|
+
type: "button",
|
|
48
|
+
className: u("pointer-events-auto absolute top-1/2 h-5 w-5 -translate-x-1/2 -translate-y-1/2 cursor-grab rounded-full border-2 shadow-md outline-none active:cursor-grabbing", {
|
|
49
|
+
"ring-primary-500 dark:ring-primary-400 z-10 border-white ring-2": f,
|
|
50
|
+
"z-0 border-white/90 hover:border-white": !f
|
|
51
|
+
}),
|
|
33
52
|
style: {
|
|
34
|
-
left:
|
|
35
|
-
backgroundColor:
|
|
53
|
+
left: x,
|
|
54
|
+
backgroundColor: S
|
|
36
55
|
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
56
|
+
title: `${d.color} · ${d.position || "auto"} — drag, or use the arrow keys`,
|
|
57
|
+
"aria-label": `Color stop ${d.color} at ${d.position || "auto"}`,
|
|
58
|
+
onPointerDown: w,
|
|
59
|
+
onPointerMove: T,
|
|
60
|
+
onPointerUp: E,
|
|
61
|
+
onKeyDown: D,
|
|
62
|
+
onClick: O
|
|
41
63
|
});
|
|
42
64
|
};
|
|
43
65
|
//#endregion
|
|
44
|
-
export {
|
|
66
|
+
export { d as default };
|
|
@@ -4,6 +4,8 @@ type GradientStopTrackProps = {
|
|
|
4
4
|
selectedId: string;
|
|
5
5
|
onChange?: (stops: GradientStop[]) => void;
|
|
6
6
|
onSelect: (id: string) => void;
|
|
7
|
+
onRemove: (id: string) => void;
|
|
7
8
|
};
|
|
8
|
-
|
|
9
|
+
/** The handles, laid over the bar inset by half a handle, so a stop at 0% or 100% stays whole and grabbable. */
|
|
10
|
+
declare const GradientStopTrack: ({ stops, selectedId, onChange, onSelect, onRemove }: GradientStopTrackProps) => import('react').JSX.Element;
|
|
9
11
|
export default GradientStopTrack;
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import e from "./GradientStopHandle.mjs";
|
|
2
2
|
import { useCallback as t, useRef as n } from "react";
|
|
3
|
-
import { jsx as r
|
|
3
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopTrack.tsx
|
|
5
|
-
var
|
|
6
|
-
let l = n(null), u = n(
|
|
7
|
-
u.current =
|
|
5
|
+
var i = ({ stops: i, selectedId: a, onChange: o, onSelect: s, onRemove: c }) => {
|
|
6
|
+
let l = n(null), u = n(i);
|
|
7
|
+
u.current = i;
|
|
8
8
|
let d = t((e, t) => {
|
|
9
|
-
|
|
9
|
+
o?.(u.current.map((n) => n.id === e ? {
|
|
10
10
|
...n,
|
|
11
11
|
position: `${t}%`
|
|
12
12
|
} : n));
|
|
13
|
-
}, [
|
|
14
|
-
return /* @__PURE__ */
|
|
13
|
+
}, [o]);
|
|
14
|
+
return /* @__PURE__ */ r("div", {
|
|
15
15
|
ref: l,
|
|
16
|
-
className: "
|
|
17
|
-
children:
|
|
16
|
+
className: "pointer-events-none absolute inset-y-0 right-2.5 left-2.5 select-none",
|
|
17
|
+
children: i.map((t) => /* @__PURE__ */ r(e, {
|
|
18
18
|
trackRef: l,
|
|
19
19
|
stop: t,
|
|
20
|
-
selected:
|
|
20
|
+
selected: a === t.id,
|
|
21
21
|
onPositionChange: d,
|
|
22
|
-
onSelect:
|
|
23
|
-
|
|
22
|
+
onSelect: s,
|
|
23
|
+
onRemove: c
|
|
24
|
+
}, t.id))
|
|
24
25
|
});
|
|
25
26
|
};
|
|
26
27
|
//#endregion
|
|
27
|
-
export {
|
|
28
|
+
export { i as default };
|
package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/helpers.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GradientStop } from '../../helpers/backgroundParser';
|
|
2
|
+
/** Where a stop sits along the bar, in percent — its first position when it has two, 0 when it has none. */
|
|
3
|
+
export declare const stopPct: (position: string) => number;
|
|
4
|
+
export declare const sortStops: (stops: GradientStop[]) => GradientStop[];
|
|
5
|
+
/** The stops drawn left to right on the bar, whatever the gradient's own direction or shape. */
|
|
6
|
+
export declare const stopsPreview: (stops: GradientStop[]) => string;
|
|
7
|
+
/** The color the stops have at a point of the bar — the closest stop's — for a stop added there. */
|
|
8
|
+
export declare const colorNear: (stops: GradientStop[], pct: number) => string;
|
package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/helpers.mjs
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { serializeStop as e } from "../../helpers/backgroundParser.mjs";
|
|
2
|
+
//#region src/components/StyleInspector/categories/Background/components/GradientStopBar/helpers.ts
|
|
3
|
+
var t = (e) => {
|
|
4
|
+
let t = parseFloat(e);
|
|
5
|
+
return isNaN(t) ? 0 : Math.max(0, Math.min(100, t));
|
|
6
|
+
}, n = (e) => [...e].sort((e, n) => t(e.position) - t(n.position)), r = (t) => `linear-gradient(90deg, ${n(t).map(e).join(", ")})`, i = (e, n) => [...e].sort((e, r) => Math.abs(t(e.position) - n) - Math.abs(t(r.position) - n)).at(0)?.color ?? "#808080";
|
|
7
|
+
//#endregion
|
|
8
|
+
export { i as colorNear, n as sortStops, t as stopPct, r as stopsPreview };
|
package/dist/components/StyleInspector/categories/Background/components/LayerGroup/LayerGroup.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type LayerGroupProps = {
|
|
3
|
+
title: string;
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
};
|
|
6
|
+
/** A titled group of a layer's controls — what it draws, then where it goes — so a long editor reads in two halves. */
|
|
7
|
+
declare const LayerGroup: ({ title, children }: LayerGroupProps) => import('react').JSX.Element;
|
|
8
|
+
export default LayerGroup;
|
package/dist/components/StyleInspector/categories/Background/components/LayerGroup/LayerGroup.mjs
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
//#region src/components/StyleInspector/categories/Background/components/LayerGroup/LayerGroup.tsx
|
|
3
|
+
var n = ({ title: n, children: r }) => /* @__PURE__ */ t("div", {
|
|
4
|
+
className: "flex flex-col gap-2",
|
|
5
|
+
children: [/* @__PURE__ */ e("span", {
|
|
6
|
+
className: "text-[11px] font-semibold tracking-wide text-zinc-500 uppercase dark:text-zinc-400",
|
|
7
|
+
children: n
|
|
8
|
+
}), r]
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { n as default };
|