@plitzi/sdk-style 0.39.1 → 0.39.3
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 +19 -0
- package/dist/SdkStyleContextProvider.mjs +2 -3
- package/dist/StyleContext.mjs +1 -2
- package/dist/StyleHelper.mjs +1 -2
- package/dist/StyleMap/StyleMap.mjs +1 -2
- package/dist/StyleMap/helpers/getStyleItem.mjs +1 -2
- package/dist/StyleMap/helpers/isValueValid.mjs +1 -2
- package/dist/StyleMap/helpers/utils.mjs +1 -2
- package/dist/StyleMap/index.mjs +1 -2
- package/dist/StyleMap/methods/addSelector.mjs +2 -3
- package/dist/StyleMap/methods/updateSelector.mjs +1 -2
- package/dist/StyleReducer.mjs +1 -2
- package/dist/_virtual/_rolldown/runtime.mjs +1 -2
- package/dist/builder/BuilderStyleContextProvider.mjs +2 -3
- package/dist/builder/StyleAdvanceEditor.mjs +3 -4
- package/dist/builder/components/InputEasing/BezierEasing.mjs +1 -2
- package/dist/builder/components/InputEasing/Curve.mjs +1 -2
- package/dist/builder/components/InputEasing/Grid.mjs +1 -2
- package/dist/builder/components/InputEasing/InputEasing.mjs +1 -2
- package/dist/builder/components/InputEasing/InputEasingButton.mjs +1 -2
- package/dist/builder/components/InputEasing/InputEasingHelper.mjs +1 -2
- package/dist/builder/components/InputEasing/InputEasingList.mjs +1 -2
- package/dist/builder/components/InputEasing/Progress.mjs +1 -2
- package/dist/builder/components/InputEasing/index.mjs +1 -2
- package/dist/builder/components/Selector/Selector.mjs +1 -2
- package/dist/builder/components/Selector/SelectorHelper.mjs +1 -2
- package/dist/builder/components/Selector/SelectorItem/ItemOptions.mjs +12 -13
- package/dist/builder/components/Selector/SelectorItem/SelectorItem.mjs +1 -2
- package/dist/builder/components/Selector/SelectorItem/helpers.mjs +1 -2
- package/dist/builder/components/Selector/SelectorItem/index.mjs +1 -2
- package/dist/builder/components/Selector/SelectorSuggestions/SelectorSuggestions.mjs +1 -2
- package/dist/builder/components/Selector/SelectorSuggestions/SuggestionsCreator.mjs +1 -2
- package/dist/builder/components/Selector/SelectorSuggestions/SuggestionsList.mjs +1 -2
- package/dist/builder/components/Selector/SelectorSuggestions/index.mjs +1 -2
- package/dist/builder/components/Selector/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/Inspector.mjs +151 -152
- package/dist/builder/components/StyleInspector/InspectorSearchContext.mjs +1 -2
- package/dist/builder/components/StyleInspector/StyleInspector.mjs +14 -15
- package/dist/builder/components/StyleInspector/StyleInspectorContext.mjs +0 -1
- package/dist/builder/components/StyleInspector/StyleInspectorProvider.mjs +7 -8
- package/dist/builder/components/StyleInspector/categories/Background/Background.mjs +32 -33
- package/dist/builder/components/StyleInspector/categories/Background/components/BackgroundAttachment/BackgroundAttachment.mjs +8 -9
- package/dist/builder/components/StyleInspector/categories/Background/components/BackgroundAttachment/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/components/BackgroundLayer/BackgroundLayer.mjs +36 -37
- package/dist/builder/components/StyleInspector/categories/Background/components/BackgroundLayer/helpers.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/components/BackgroundLayer/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/components/BackgroundPosition/BackgroundPosition.mjs +11 -12
- package/dist/builder/components/StyleInspector/categories/Background/components/BackgroundPosition/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/components/BackgroundSize/BackgroundSize.mjs +18 -19
- package/dist/builder/components/StyleInspector/categories/Background/components/BackgroundSize/helpers.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/components/BackgroundSize/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/components/BackgroundTile/BackgroundTile.mjs +8 -9
- package/dist/builder/components/StyleInspector/categories/Background/components/BackgroundTile/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/components/GradientCenter/GradientCenter.mjs +8 -9
- package/dist/builder/components/StyleInspector/categories/Background/components/GradientCenter/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/components/GradientStopBar/GradientPreviewBar.mjs +6 -7
- package/dist/builder/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopBar.mjs +14 -15
- package/dist/builder/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopEditor.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopHandle.mjs +11 -12
- package/dist/builder/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopTrack.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/components/GradientStopBar/helpers.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/components/GradientStopBar/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/components/LayerGroup/LayerGroup.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/components/LayerGroup/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/helpers/backgroundParser.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/helpers/layerValues.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/helpers/normalizeLeft.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/helpers/parseToBgLayers.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Background/modes/ConicGradientMode.mjs +6 -7
- package/dist/builder/components/StyleInspector/categories/Background/modes/ImageMode.mjs +6 -7
- package/dist/builder/components/StyleInspector/categories/Background/modes/LinearGradientMode.mjs +11 -12
- package/dist/builder/components/StyleInspector/categories/Background/modes/RadialGradientMode.mjs +19 -20
- package/dist/builder/components/StyleInspector/categories/Background/modes/RawMode.mjs +6 -7
- package/dist/builder/components/StyleInspector/categories/Background/modes/helpers.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Border/Border.mjs +19 -20
- package/dist/builder/components/StyleInspector/categories/Border/BorderColor.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Border/BorderPlacements.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Border/BorderRadius.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Border/BorderStyle.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Border/BorderWidth.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Border/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Display/Display.mjs +26 -27
- package/dist/builder/components/StyleInspector/categories/Display/DisplayElements.mjs +7 -2
- package/dist/builder/components/StyleInspector/categories/Display/DisplayFlex.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Display/DisplayFlexAlignContent.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Display/DisplayFlexAlignItems.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Display/DisplayFlexDirection.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Display/DisplayFlexJustify.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Display/DisplayGap.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Display/DisplayGridTemplate.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Display/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/DisplayFlexChild/DisplayAlignSelf.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/DisplayFlexChild/DisplayFlexChild.mjs +21 -22
- package/dist/builder/components/StyleInspector/categories/DisplayFlexChild/DisplayOrder.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/DisplayFlexChild/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Effects/BoxShadow/BoxShadow.mjs +6 -7
- package/dist/builder/components/StyleInspector/categories/Effects/BoxShadow/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Effects/Effects.mjs +36 -37
- package/dist/builder/components/StyleInspector/categories/Effects/Filters/Filter.mjs +14 -15
- package/dist/builder/components/StyleInspector/categories/Effects/Filters/FilterItem.mjs +20 -21
- package/dist/builder/components/StyleInspector/categories/Effects/Filters/helpers.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Effects/Filters/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Effects/Transform/Transform.mjs +8 -9
- package/dist/builder/components/StyleInspector/categories/Effects/Transform/TransformItem.mjs +17 -18
- package/dist/builder/components/StyleInspector/categories/Effects/Transform/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Effects/Transform/transformFunctions.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Effects/Transition/Transition.mjs +9 -10
- package/dist/builder/components/StyleInspector/categories/Effects/Transition/TransitionEasing.mjs +21 -22
- package/dist/builder/components/StyleInspector/categories/Effects/Transition/TransitionItem.mjs +21 -22
- package/dist/builder/components/StyleInspector/categories/Effects/Transition/helpers.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Effects/Transition/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Effects/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/List/List.mjs +10 -11
- package/dist/builder/components/StyleInspector/categories/List/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/ListItem/ListItem.mjs +10 -11
- package/dist/builder/components/StyleInspector/categories/ListItem/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Others/Others.mjs +27 -28
- package/dist/builder/components/StyleInspector/categories/Others/OthersForm.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Others/OthersInteraction.mjs +16 -17
- package/dist/builder/components/StyleInspector/categories/Others/OthersOutline.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Others/OthersScrollSnap.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Others/OthersScrollbar.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Others/OthersSvg.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Others/OthersTable.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Others/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Position/Position.mjs +18 -19
- package/dist/builder/components/StyleInspector/categories/Position/PositionAdvanced.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Position/PositionAdvancedButtons.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Position/PositionClear.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Position/PositionFloat.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Position/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/RawStyle/RawStyle.mjs +2 -3
- package/dist/builder/components/StyleInspector/categories/RawStyle/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Size/Size.mjs +36 -37
- package/dist/builder/components/StyleInspector/categories/Size/SizeContainer.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Size/SizeFit.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Size/SizeOverflow.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Size/SizePosition.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Size/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Spacing/Spacing.mjs +7 -8
- package/dist/builder/components/StyleInspector/categories/Spacing/SpacingBox.mjs +8 -9
- package/dist/builder/components/StyleInspector/categories/Spacing/SpacingEditor.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Spacing/SpacingMargin.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Spacing/SpacingNumber.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Spacing/SpacingPadding.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Spacing/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Typography/Typography.mjs +48 -49
- package/dist/builder/components/StyleInspector/categories/Typography/TypographyAlign.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Typography/TypographyBreaking.mjs +13 -14
- package/dist/builder/components/StyleInspector/categories/Typography/TypographyClamp.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Typography/TypographyConstants.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Typography/TypographyFigures.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Typography/TypographyFont.mjs +7 -8
- package/dist/builder/components/StyleInspector/categories/Typography/TypographyStyle.mjs +10 -11
- package/dist/builder/components/StyleInspector/categories/Typography/TypographyTextShadow.mjs +8 -9
- package/dist/builder/components/StyleInspector/categories/Typography/TypographyTransform.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Typography/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/Variables/Variables.mjs +7 -8
- package/dist/builder/components/StyleInspector/categories/Variables/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/blendModes.mjs +1 -2
- package/dist/builder/components/StyleInspector/categories/listMarkers.mjs +1 -2
- package/dist/builder/components/StyleInspector/categoryKeys.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/AncestorRules/AncestorRuleChip.mjs +0 -1
- package/dist/builder/components/StyleInspector/components/AncestorRules/AncestorRules.mjs +0 -1
- package/dist/builder/components/StyleInspector/components/AncestorRules/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/CategoryAdvanced/CategoryAdvanced.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/CategoryAdvanced/CategoryAdvancedContext.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/CategoryAdvanced/index.mjs +5 -6
- package/dist/builder/components/StyleInspector/components/CategoryContainer/CategoryContainer.mjs +6 -7
- package/dist/builder/components/StyleInspector/components/CategoryContainer/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/CategoryOption/CategoryOption.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/CategoryOption/categoryTypes/OptionColor.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/CategoryOption/categoryTypes/OptionIconGroup.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/CategoryOption/categoryTypes/OptionInput.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/CategoryOption/categoryTypes/OptionMetricInput.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/CategoryOption/categoryTypes/OptionSelect.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/CategoryOption/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/CategorySection/CategorySection.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/CategorySection/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/ColorSwatch/ColorSwatch.mjs +5 -6
- package/dist/builder/components/StyleInspector/components/ColorSwatch/helpers.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/ColorSwatch/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/InspectorDots/InspectorDots.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/InspectorDots/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/InspectorFooter/InspectorFooter.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/InspectorFooter/helpers.mjs +2 -10
- package/dist/builder/components/StyleInspector/components/InspectorFooter/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/InspectorLabel/InspectorLabel.mjs +3 -4
- package/dist/builder/components/StyleInspector/components/InspectorLabel/helpers.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/InspectorLabel/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/InspectorSearch/InspectorSearch.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/InspectorSearch/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/ShadowItem/ShadowItem.mjs +18 -19
- package/dist/builder/components/StyleInspector/components/ShadowItem/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/ShadowList/ShadowList.mjs +8 -9
- package/dist/builder/components/StyleInspector/components/ShadowList/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/TargetSummary/TargetSummary.mjs +0 -1
- package/dist/builder/components/StyleInspector/components/TargetSummary/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/ValueList/ValueList.mjs +0 -1
- package/dist/builder/components/StyleInspector/components/ValueList/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/components/ValueListItem/ValueListItem.mjs +0 -1
- package/dist/builder/components/StyleInspector/components/ValueListItem/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/cssValues.mjs +1 -2
- package/dist/builder/components/StyleInspector/helpers.mjs +1 -2
- package/dist/builder/components/StyleInspector/hooks/useInspectorValues.mjs +1 -2
- package/dist/builder/components/StyleInspector/hooks/usePropertyChange.mjs +1 -2
- package/dist/builder/components/StyleInspector/hooks/useStyleBinding.mjs +1 -2
- package/dist/builder/components/StyleInspector/hooks/useStyleInherit.mjs +1 -2
- package/dist/builder/components/StyleInspector/index.mjs +1 -2
- package/dist/builder/components/StyleInspector/search.mjs +1 -2
- package/dist/builder/components/StyleInspector/shadowValue.mjs +1 -2
- package/dist/builder/components/StyleManager/ManagerSelector.mjs +0 -1
- package/dist/builder/components/StyleManager/StyleManager.mjs +1 -2
- package/dist/builder/components/StyleManager/StyleSelectorTag.mjs +0 -1
- package/dist/builder/components/StyleManager/index.mjs +1 -2
- package/dist/builder/components/index.mjs +1 -2
- package/dist/builder/hooks/useSpaceFonts.mjs +1 -2
- package/dist/builder/index.mjs +3 -3
- package/dist/builder/models/SelectorForm/SelectorForm.mjs +1 -2
- package/dist/builder/models/SelectorForm/index.mjs +1 -2
- package/dist/helpers/calculateInheriting.mjs +2 -3
- package/dist/helpers/formatCssFromSelector.mjs +1 -2
- package/dist/helpers/generateStyleSelector.mjs +1 -2
- package/dist/helpers/index.mjs +11 -12
- package/dist/helpers/processCssTokens.mjs +1 -2
- package/dist/helpers/processSelector.mjs +1 -2
- package/dist/helpers/processSelectorAttributes.mjs +1 -2
- package/dist/helpers/processSelectorName.mjs +1 -2
- package/dist/helpers/processSelectorVariables.mjs +1 -2
- package/dist/index.mjs +11 -11
- package/package.json +15 -12
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "
|
|
3
|
-
import
|
|
4
|
-
import i from "
|
|
1
|
+
import e from "./FilterItem.mjs";
|
|
2
|
+
import { FILTER_SPECS as t, serializeFilter as n } from "./helpers.mjs";
|
|
3
|
+
import r from "../../../components/ValueList/index.mjs";
|
|
4
|
+
import { splitBySpaceOutsideParens as i } from "../../../cssValues.mjs";
|
|
5
5
|
import { useCallback as a } from "react";
|
|
6
6
|
import { jsx as o } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/builder/components/StyleInspector/categories/Effects/Filters/Filter.tsx
|
|
8
8
|
var s = ({ styleKey: s = "filter", label: c = "Filters", value: l, onChange: u }) => {
|
|
9
|
-
let d = typeof l == "string" && l !== "" ?
|
|
9
|
+
let d = typeof l == "string" && l !== "" ? i(l) : [], f = s === "backdrop-filter" ? "Backdrop filter" : "Filter", p = a((e) => u?.(e.length > 0 ? e.join(" ") : ""), [u]), m = (e) => () => p(d.filter((t, n) => n !== e)), h = (e) => (t) => {
|
|
10
10
|
t !== d[e] && p(d.map((n, r) => r === e ? t : n));
|
|
11
11
|
};
|
|
12
|
-
return /* @__PURE__ */ o(
|
|
12
|
+
return /* @__PURE__ */ o(r, {
|
|
13
13
|
label: c,
|
|
14
14
|
keys: [s],
|
|
15
15
|
addLabel: `Add ${f.toLowerCase()}`,
|
|
16
|
-
onAdd: () => p([...d,
|
|
16
|
+
onAdd: () => p([...d, n({
|
|
17
17
|
name: "blur",
|
|
18
|
-
amount:
|
|
18
|
+
amount: t.blur.default
|
|
19
19
|
})]),
|
|
20
|
-
children: d.length > 0 && d.map((
|
|
21
|
-
value:
|
|
20
|
+
children: d.length > 0 && d.map((t, n) => /* @__PURE__ */ o(e, {
|
|
21
|
+
value: t,
|
|
22
22
|
title: f,
|
|
23
|
-
onChange: h(
|
|
24
|
-
onRemove: m(
|
|
25
|
-
},
|
|
23
|
+
onChange: h(n),
|
|
24
|
+
onRemove: m(n)
|
|
25
|
+
}, n))
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
|
-
//#endregion
|
|
29
28
|
export { s as default };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import { FILTER_GROUPS as e, FILTER_SPECS as t, parseFilter as n, serializeFilter as r } from "./helpers.mjs";
|
|
2
|
+
import i from "../../../components/CategoryOption/index.mjs";
|
|
3
|
+
import a from "../../../components/ValueListItem/index.mjs";
|
|
4
|
+
import { asText as o } from "../../../cssValues.mjs";
|
|
5
5
|
import { useCallback as s, useRef as c } from "react";
|
|
6
6
|
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
7
|
-
|
|
8
|
-
var f = Object.entries(
|
|
9
|
-
let _ =
|
|
7
|
+
// src/builder/components/StyleInspector/categories/Effects/Filters/FilterItem.tsx
|
|
8
|
+
var f = Object.entries(t), p = ({ value: p, title: m, onRemove: h, onChange: g }) => {
|
|
9
|
+
let _ = n(p), v = c(_);
|
|
10
10
|
v.current = _;
|
|
11
|
-
let y = _ ?
|
|
12
|
-
let n = e
|
|
13
|
-
Object.hasOwn(
|
|
11
|
+
let y = _ ? t[_.name] : void 0, b = s((e) => {
|
|
12
|
+
let n = o(e);
|
|
13
|
+
Object.hasOwn(t, n) && g(r({
|
|
14
14
|
name: n,
|
|
15
|
-
amount:
|
|
15
|
+
amount: t[n].default
|
|
16
16
|
}));
|
|
17
|
-
}, [g]), x = s((
|
|
18
|
-
v.current && g(
|
|
17
|
+
}, [g]), x = s((e) => {
|
|
18
|
+
v.current && g(r({
|
|
19
19
|
...v.current,
|
|
20
|
-
amount: e
|
|
20
|
+
amount: o(e)
|
|
21
21
|
}));
|
|
22
|
-
}, [g]), S = s((
|
|
23
|
-
return /* @__PURE__ */ d(
|
|
22
|
+
}, [g]), S = s((e) => g(o(e)), [g]);
|
|
23
|
+
return /* @__PURE__ */ d(a, {
|
|
24
24
|
summary: p,
|
|
25
25
|
title: m,
|
|
26
26
|
removeLabel: `Remove ${m.toLowerCase()}`,
|
|
27
27
|
onRemove: h,
|
|
28
|
-
children: [!_ && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(
|
|
28
|
+
children: [!_ && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(i, {
|
|
29
29
|
label: "Value",
|
|
30
30
|
type: "input",
|
|
31
31
|
value: p,
|
|
@@ -35,19 +35,19 @@ var f = Object.entries(i), p = ({ value: p, title: m, onRemove: h, onChange: g }
|
|
|
35
35
|
children: "A function the editor has no control for, so it is edited as written."
|
|
36
36
|
})] }), _ && y && /* @__PURE__ */ d("div", {
|
|
37
37
|
className: "grid grid-cols-2 gap-2",
|
|
38
|
-
children: [/* @__PURE__ */ u(
|
|
38
|
+
children: [/* @__PURE__ */ u(i, {
|
|
39
39
|
label: "Function",
|
|
40
40
|
type: "select",
|
|
41
41
|
value: _.name,
|
|
42
42
|
onChange: b,
|
|
43
|
-
children:
|
|
43
|
+
children: e.map((e) => /* @__PURE__ */ u("optgroup", {
|
|
44
44
|
label: e,
|
|
45
45
|
children: f.filter(([, t]) => t.group === e).map(([e, t]) => /* @__PURE__ */ u("option", {
|
|
46
46
|
value: e,
|
|
47
47
|
children: t.label
|
|
48
48
|
}, e))
|
|
49
49
|
}, e))
|
|
50
|
-
}), /* @__PURE__ */ u(
|
|
50
|
+
}), /* @__PURE__ */ u(i, {
|
|
51
51
|
label: "Amount",
|
|
52
52
|
type: "metric",
|
|
53
53
|
value: _.amount,
|
|
@@ -59,5 +59,4 @@ var f = Object.entries(i), p = ({ value: p, title: m, onRemove: h, onChange: g }
|
|
|
59
59
|
})]
|
|
60
60
|
});
|
|
61
61
|
};
|
|
62
|
-
//#endregion
|
|
63
62
|
export { p as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/builder/components/StyleInspector/categories/Effects/Filters/helpers.ts
|
|
2
2
|
var e = [{
|
|
3
3
|
label: "%",
|
|
4
4
|
value: "%"
|
|
@@ -83,5 +83,4 @@ var e = [{
|
|
|
83
83
|
amount: n[2].trim()
|
|
84
84
|
};
|
|
85
85
|
}, a = ({ name: e, amount: t }) => `${e}(${t})`;
|
|
86
|
-
//#endregion
|
|
87
86
|
export { n as FILTER_GROUPS, t as FILTER_SPECS, i as parseFilter, a as serializeFilter };
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
3
|
-
import a from "
|
|
1
|
+
import { DEFAULT_FUNCTION as e, createFunctionValue as t, parseTransforms as n, serializeTransforms as r } from "./transformFunctions.mjs";
|
|
2
|
+
import i from "./TransformItem.mjs";
|
|
3
|
+
import a from "../../../components/ValueList/index.mjs";
|
|
4
4
|
import { useCallback as o } from "react";
|
|
5
5
|
import { jsx as s } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/builder/components/StyleInspector/categories/Effects/Transform/Transform.tsx
|
|
7
7
|
var c = ["transform"], l = ({ value: l, onChange: u }) => {
|
|
8
|
-
let d =
|
|
8
|
+
let d = n(typeof l == "string" ? l : ""), f = o((e) => u?.(e.length > 0 ? r(e) : ""), [u]), p = (e) => () => f(d.filter((t, n) => n !== e)), m = (e) => (t) => {
|
|
9
9
|
f(d.map((n, r) => r === e ? t : n));
|
|
10
10
|
}, h = o(() => {
|
|
11
|
-
f([...d,
|
|
11
|
+
f([...d, t(e)]);
|
|
12
12
|
}, [f, d]);
|
|
13
|
-
return /* @__PURE__ */ s(
|
|
13
|
+
return /* @__PURE__ */ s(a, {
|
|
14
14
|
label: "2D & 3D Transforms",
|
|
15
15
|
keys: c,
|
|
16
16
|
addLabel: "Add transform",
|
|
17
17
|
onAdd: h,
|
|
18
|
-
children: d.length > 0 && d.map((e, t) => /* @__PURE__ */ s(
|
|
18
|
+
children: d.length > 0 && d.map((e, t) => /* @__PURE__ */ s(i, {
|
|
19
19
|
value: e,
|
|
20
20
|
onChange: m(t),
|
|
21
21
|
onRemove: p(t)
|
|
22
22
|
}, t))
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
|
-
//#endregion
|
|
26
25
|
export { l as default };
|
package/dist/builder/components/StyleInspector/categories/Effects/Transform/TransformItem.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { TRANSFORM_FUNCTION_GROUPS as e, createFunctionValue as t, getFunctionSpec as n, serializeTransform as r, unitsForKind as i } from "./transformFunctions.mjs";
|
|
2
|
+
import a from "../../../components/CategoryOption/index.mjs";
|
|
3
|
+
import o from "../../../components/ValueListItem/index.mjs";
|
|
4
4
|
import { useCallback as s, useMemo as c } from "react";
|
|
5
5
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/builder/components/StyleInspector/categories/Effects/Transform/TransformItem.tsx
|
|
7
7
|
var d = ({ value: d, onRemove: f, onChange: p }) => {
|
|
8
|
-
let m =
|
|
8
|
+
let m = n(d.name), h = c(() => m ? m.args : d.args.map((e, t) => ({
|
|
9
9
|
label: `#${t + 1}`,
|
|
10
10
|
kind: "length",
|
|
11
11
|
default: "0px"
|
|
12
|
-
})), [m, d.args]), g = c(() => h.map((e, t) => d.args[t] ?? e.default), [h, d.args]), _ = s((e) => p?.(
|
|
12
|
+
})), [m, d.args]), g = c(() => h.map((e, t) => d.args[t] ?? e.default), [h, d.args]), _ = s((e) => p?.(t(e)), [p]), v = s((e) => (t) => {
|
|
13
13
|
let n = h.map((n, r) => r === e ? t : d.args[r] ?? n.default);
|
|
14
14
|
p?.({
|
|
15
15
|
name: d.name,
|
|
@@ -20,21 +20,21 @@ var d = ({ value: d, onRemove: f, onChange: p }) => {
|
|
|
20
20
|
p,
|
|
21
21
|
d.args,
|
|
22
22
|
d.name
|
|
23
|
-
]), y =
|
|
23
|
+
]), y = r({
|
|
24
24
|
name: d.name,
|
|
25
25
|
args: g
|
|
26
26
|
});
|
|
27
|
-
return /* @__PURE__ */ u(
|
|
27
|
+
return /* @__PURE__ */ u(o, {
|
|
28
28
|
summary: y,
|
|
29
29
|
title: "Transform",
|
|
30
30
|
removeLabel: "Remove transform",
|
|
31
31
|
onRemove: f,
|
|
32
|
-
children: [/* @__PURE__ */ u(
|
|
32
|
+
children: [/* @__PURE__ */ u(a, {
|
|
33
33
|
label: "Function",
|
|
34
34
|
value: d.name,
|
|
35
35
|
onChange: _,
|
|
36
36
|
type: "select",
|
|
37
|
-
children: [
|
|
37
|
+
children: [e.map((e) => /* @__PURE__ */ l("optgroup", {
|
|
38
38
|
label: e.category,
|
|
39
39
|
children: e.specs.map((e) => /* @__PURE__ */ l("option", {
|
|
40
40
|
value: e.name,
|
|
@@ -49,17 +49,16 @@ var d = ({ value: d, onRemove: f, onChange: p }) => {
|
|
|
49
49
|
})]
|
|
50
50
|
}), /* @__PURE__ */ l("div", {
|
|
51
51
|
className: "grid grid-cols-2 gap-2",
|
|
52
|
-
children: h.map((
|
|
53
|
-
label:
|
|
54
|
-
value: g[
|
|
55
|
-
onChange: v(
|
|
52
|
+
children: h.map((e, t) => /* @__PURE__ */ l(a, {
|
|
53
|
+
label: e.label,
|
|
54
|
+
value: g[t],
|
|
55
|
+
onChange: v(t),
|
|
56
56
|
type: "metric",
|
|
57
|
-
units:
|
|
58
|
-
step:
|
|
57
|
+
units: i(e.kind),
|
|
58
|
+
step: e.kind === "number" ? .1 : 1,
|
|
59
59
|
min: -Infinity
|
|
60
|
-
}, `${
|
|
60
|
+
}, `${e.label}-${t}`))
|
|
61
61
|
})]
|
|
62
62
|
});
|
|
63
63
|
};
|
|
64
|
-
//#endregion
|
|
65
64
|
export { d as default };
|
package/dist/builder/components/StyleInspector/categories/Effects/Transform/transformFunctions.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/builder/components/StyleInspector/categories/Effects/Transform/transformFunctions.ts
|
|
2
2
|
var e = (e) => ({
|
|
3
3
|
label: e,
|
|
4
4
|
kind: "length",
|
|
@@ -193,5 +193,4 @@ var e = (e) => ({
|
|
|
193
193
|
specs: [t]
|
|
194
194
|
}), e;
|
|
195
195
|
}, []);
|
|
196
|
-
//#endregion
|
|
197
196
|
export { i as DEFAULT_FUNCTION, r as TRANSFORM_FUNCTIONS, m as TRANSFORM_FUNCTION_GROUPS, p as createFunctionValue, c as getFunctionSpec, u as parseTransforms, d as serializeTransform, f as serializeTransforms, o as unitsForKind };
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import i from "
|
|
1
|
+
import { DEFAULT_TRANSITION as e, serializeTransition as t } from "./helpers.mjs";
|
|
2
|
+
import n from "./TransitionItem.mjs";
|
|
3
|
+
import r from "../../../components/ValueList/index.mjs";
|
|
4
|
+
import { splitByCommaOutsideParens as i } from "../../../cssValues.mjs";
|
|
5
5
|
import { useCallback as a } from "react";
|
|
6
6
|
import { jsx as o } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/builder/components/StyleInspector/categories/Effects/Transition/Transition.tsx
|
|
8
8
|
var s = ["transition"], c = ({ value: c, onChange: l }) => {
|
|
9
|
-
let u = typeof c == "string" && c !== "" ?
|
|
9
|
+
let u = typeof c == "string" && c !== "" ? i(c).map((e) => e.trim()) : [], d = a((e) => l?.(e.length > 0 ? e.join(", ") : ""), [l]), f = (e) => () => d(u.filter((t, n) => n !== e)), p = (e) => (t) => {
|
|
10
10
|
t !== u[e] && d(u.map((n, r) => r === e ? t : n));
|
|
11
11
|
};
|
|
12
|
-
return /* @__PURE__ */ o(
|
|
12
|
+
return /* @__PURE__ */ o(r, {
|
|
13
13
|
label: "Transitions",
|
|
14
14
|
keys: s,
|
|
15
15
|
addLabel: "Add transition",
|
|
16
|
-
onAdd: () => d([...u,
|
|
17
|
-
children: u.length > 0 && u.map((e, t) => /* @__PURE__ */ o(
|
|
16
|
+
onAdd: () => d([...u, t(e)]),
|
|
17
|
+
children: u.length > 0 && u.map((e, t) => /* @__PURE__ */ o(n, {
|
|
18
18
|
value: e,
|
|
19
19
|
onChange: p(t),
|
|
20
20
|
onRemove: f(t)
|
|
21
21
|
}, t))
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
|
-
//#endregion
|
|
25
24
|
export { c as default };
|
package/dist/builder/components/StyleInspector/categories/Effects/Transition/TransitionEasing.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
1
|
+
import { bezierCss as e, easingCss as t, easingCurve as n, easingOptions as r } from "./helpers.mjs";
|
|
2
|
+
import i from "../../../../InputEasing/index.mjs";
|
|
3
|
+
import { easingGenerics as a } from "../../../../InputEasing/InputEasingHelper.mjs";
|
|
4
|
+
import o from "../../../../InputEasing/InputEasingList.mjs";
|
|
5
|
+
import s from "../../../components/CategoryOption/index.mjs";
|
|
6
|
+
import { asText as c } from "../../../cssValues.mjs";
|
|
7
7
|
import { useCallback as l, useEffect as u, useMemo as d, useState as f } from "react";
|
|
8
8
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
9
|
-
|
|
10
|
-
var h =
|
|
11
|
-
let [v, y] = f(!1), [b, x] = f(!1), [S, C] = f(0), w =
|
|
9
|
+
// src/builder/components/StyleInspector/categories/Effects/Transition/TransitionEasing.tsx
|
|
10
|
+
var h = r(a), g = 1600, _ = ({ value: r, onChange: _ }) => {
|
|
11
|
+
let [v, y] = f(!1), [b, x] = f(!1), [S, C] = f(0), w = n(r, a), T = h.some((e) => e.value === r);
|
|
12
12
|
u(() => {
|
|
13
13
|
if (!b) {
|
|
14
14
|
C(0);
|
|
@@ -19,15 +19,15 @@ var h = c(e), g = 1600, _ = ({ value: c, onChange: _ }) => {
|
|
|
19
19
|
};
|
|
20
20
|
return e = requestAnimationFrame(n), () => cancelAnimationFrame(e);
|
|
21
21
|
}, [b]);
|
|
22
|
-
let E = l((e) => _(
|
|
23
|
-
let [
|
|
24
|
-
_(
|
|
25
|
-
t,
|
|
22
|
+
let E = l((e) => _(c(e)), [_]), D = l((e) => _(t(e, a)), [_]), O = l((t) => {
|
|
23
|
+
let [n = 0, r = 0, i = 1, a = 1] = t;
|
|
24
|
+
_(e([
|
|
26
25
|
n,
|
|
27
26
|
r,
|
|
28
|
-
i
|
|
27
|
+
i,
|
|
28
|
+
a
|
|
29
29
|
]));
|
|
30
|
-
}, [_]), k = l(() => y((e) => !e), []), A = l(() => x((e) => !e), []), j = d(() => `Custom — ${
|
|
30
|
+
}, [_]), k = l(() => y((e) => !e), []), A = l(() => x((e) => !e), []), j = d(() => `Custom — ${r}`, [r]);
|
|
31
31
|
return /* @__PURE__ */ m("div", {
|
|
32
32
|
className: "flex flex-col gap-2",
|
|
33
33
|
children: [
|
|
@@ -35,13 +35,13 @@ var h = c(e), g = 1600, _ = ({ value: c, onChange: _ }) => {
|
|
|
35
35
|
className: "flex items-end gap-2",
|
|
36
36
|
children: [/* @__PURE__ */ p("div", {
|
|
37
37
|
className: "min-w-0 grow",
|
|
38
|
-
children: /* @__PURE__ */ m(
|
|
38
|
+
children: /* @__PURE__ */ m(s, {
|
|
39
39
|
label: "Easing",
|
|
40
40
|
type: "select",
|
|
41
|
-
value:
|
|
41
|
+
value: r,
|
|
42
42
|
onChange: E,
|
|
43
43
|
children: [!T && /* @__PURE__ */ p("option", {
|
|
44
|
-
value:
|
|
44
|
+
value: r,
|
|
45
45
|
children: j
|
|
46
46
|
}), h.map((e) => /* @__PURE__ */ p("option", {
|
|
47
47
|
value: e.value,
|
|
@@ -60,12 +60,12 @@ var h = c(e), g = 1600, _ = ({ value: c, onChange: _ }) => {
|
|
|
60
60
|
}),
|
|
61
61
|
v && !w && /* @__PURE__ */ m("p", {
|
|
62
62
|
className: "m-0 text-[11px] text-zinc-500 dark:text-zinc-400",
|
|
63
|
-
children: [
|
|
63
|
+
children: [r, " is not a curve, so there is nothing to drag. Pick a preset to start from one."]
|
|
64
64
|
}),
|
|
65
65
|
v && w && /* @__PURE__ */ m("div", {
|
|
66
66
|
className: "flex flex-col items-center gap-2 rounded-md border border-gray-200 p-2 dark:border-zinc-700",
|
|
67
67
|
children: [
|
|
68
|
-
/* @__PURE__ */ p(
|
|
68
|
+
/* @__PURE__ */ p(i, {
|
|
69
69
|
value: w,
|
|
70
70
|
progress: S,
|
|
71
71
|
width: 200,
|
|
@@ -79,7 +79,7 @@ var h = c(e), g = 1600, _ = ({ value: c, onChange: _ }) => {
|
|
|
79
79
|
onClick: A,
|
|
80
80
|
children: [/* @__PURE__ */ p("i", { className: b ? "fa-solid fa-pause" : "fa-solid fa-play" }), b ? "Pause preview" : "Preview"]
|
|
81
81
|
}),
|
|
82
|
-
/* @__PURE__ */ p(
|
|
82
|
+
/* @__PURE__ */ p(o, {
|
|
83
83
|
className: "w-full border-r-0",
|
|
84
84
|
onChange: D
|
|
85
85
|
})
|
|
@@ -88,5 +88,4 @@ var h = c(e), g = 1600, _ = ({ value: c, onChange: _ }) => {
|
|
|
88
88
|
]
|
|
89
89
|
});
|
|
90
90
|
};
|
|
91
|
-
//#endregion
|
|
92
91
|
export { _ as default };
|
package/dist/builder/components/StyleInspector/categories/Effects/Transition/TransitionItem.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import c from "
|
|
1
|
+
import { TRANSITION_PROPERTY_GROUPS as e, isListedProperty as t, parseTransition as n, serializeTransition as r, transitionSummary as i } from "./helpers.mjs";
|
|
2
|
+
import a from "./TransitionEasing.mjs";
|
|
3
|
+
import o from "../../../components/CategoryOption/index.mjs";
|
|
4
|
+
import s from "../../../components/ValueListItem/index.mjs";
|
|
5
|
+
import { asText as c } from "../../../cssValues.mjs";
|
|
6
6
|
import { useCallback as l, useRef as u } from "react";
|
|
7
7
|
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/builder/components/StyleInspector/categories/Effects/Transition/TransitionItem.tsx
|
|
9
9
|
var m = [{
|
|
10
10
|
label: "MS",
|
|
11
11
|
value: "ms"
|
|
@@ -13,22 +13,22 @@ var m = [{
|
|
|
13
13
|
label: "S",
|
|
14
14
|
value: "s"
|
|
15
15
|
}], h = ({ value: h, onRemove: g, onChange: _ }) => {
|
|
16
|
-
let v =
|
|
16
|
+
let v = n(h), y = u(v);
|
|
17
17
|
y.current = v;
|
|
18
|
-
let b = l((
|
|
19
|
-
let
|
|
20
|
-
|
|
21
|
-
...
|
|
22
|
-
[
|
|
18
|
+
let b = l((e) => (t) => {
|
|
19
|
+
let n = y.current;
|
|
20
|
+
n && _(r({
|
|
21
|
+
...n,
|
|
22
|
+
[e]: c(t)
|
|
23
23
|
}));
|
|
24
|
-
}, [_]), x = l((e) => b("easing")(e), [b]), S = l((
|
|
25
|
-
return /* @__PURE__ */ p(
|
|
24
|
+
}, [_]), x = l((e) => b("easing")(e), [b]), S = l((e) => _(c(e)), [_]), C = v ? i(v) : h;
|
|
25
|
+
return /* @__PURE__ */ p(s, {
|
|
26
26
|
summary: C,
|
|
27
27
|
title: "Transition",
|
|
28
28
|
removeLabel: "Remove transition",
|
|
29
29
|
onRemove: g,
|
|
30
30
|
children: [
|
|
31
|
-
!v && /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(
|
|
31
|
+
!v && /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(o, {
|
|
32
32
|
label: "Value",
|
|
33
33
|
type: "input",
|
|
34
34
|
value: h,
|
|
@@ -37,18 +37,18 @@ var m = [{
|
|
|
37
37
|
className: "m-0 text-[11px] text-zinc-500 dark:text-zinc-400",
|
|
38
38
|
children: "Not a single transition the editor can split into parts (a token, for one), so it is edited as written."
|
|
39
39
|
})] }),
|
|
40
|
-
v && /* @__PURE__ */ p(
|
|
40
|
+
v && /* @__PURE__ */ p(o, {
|
|
41
41
|
label: "Property",
|
|
42
42
|
type: "select",
|
|
43
43
|
value: v.property,
|
|
44
44
|
onChange: b("property"),
|
|
45
|
-
children: [!
|
|
45
|
+
children: [!t(v.property) && /* @__PURE__ */ f("optgroup", {
|
|
46
46
|
label: "Current",
|
|
47
47
|
children: /* @__PURE__ */ f("option", {
|
|
48
48
|
value: v.property,
|
|
49
49
|
children: v.property
|
|
50
50
|
})
|
|
51
|
-
}),
|
|
51
|
+
}), e.map((e) => /* @__PURE__ */ f("optgroup", {
|
|
52
52
|
label: e.label,
|
|
53
53
|
children: e.options.map((e) => /* @__PURE__ */ f("option", {
|
|
54
54
|
value: e.value,
|
|
@@ -58,14 +58,14 @@ var m = [{
|
|
|
58
58
|
}),
|
|
59
59
|
v && /* @__PURE__ */ p("div", {
|
|
60
60
|
className: "grid grid-cols-2 gap-2",
|
|
61
|
-
children: [/* @__PURE__ */ f(
|
|
61
|
+
children: [/* @__PURE__ */ f(o, {
|
|
62
62
|
label: "Duration",
|
|
63
63
|
type: "metric",
|
|
64
64
|
value: v.duration,
|
|
65
65
|
units: m,
|
|
66
66
|
min: 0,
|
|
67
67
|
onChange: b("duration")
|
|
68
|
-
}), /* @__PURE__ */ f(
|
|
68
|
+
}), /* @__PURE__ */ f(o, {
|
|
69
69
|
label: "Delay",
|
|
70
70
|
type: "metric",
|
|
71
71
|
value: v.delay,
|
|
@@ -74,12 +74,11 @@ var m = [{
|
|
|
74
74
|
onChange: b("delay")
|
|
75
75
|
})]
|
|
76
76
|
}),
|
|
77
|
-
v && /* @__PURE__ */ f(
|
|
77
|
+
v && /* @__PURE__ */ f(a, {
|
|
78
78
|
value: v.easing,
|
|
79
79
|
onChange: x
|
|
80
80
|
})
|
|
81
81
|
]
|
|
82
82
|
});
|
|
83
83
|
};
|
|
84
|
-
//#endregion
|
|
85
84
|
export { h as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { splitBySpaceOutsideParens as e } from "../../../cssValues.mjs";
|
|
2
|
-
|
|
2
|
+
// src/builder/components/StyleInspector/categories/Effects/Transition/helpers.ts
|
|
3
3
|
var t = {
|
|
4
4
|
property: "opacity",
|
|
5
5
|
duration: "200ms",
|
|
@@ -264,5 +264,4 @@ var t = {
|
|
|
264
264
|
]
|
|
265
265
|
}
|
|
266
266
|
], g = (e) => h.some((t) => t.options.some((t) => t.value === e));
|
|
267
|
-
//#endregion
|
|
268
267
|
export { t as DEFAULT_TRANSITION, h as TRANSITION_PROPERTY_GROUPS, u as bezierCss, d as easingCss, m as easingCurve, f as easingOptions, g as isListedProperty, a as parseTransition, s as serializeTransition, o as transitionSummary };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import e from "../../
|
|
2
|
-
import t from "../../
|
|
1
|
+
import { LIST_KEYS as e } from "../../categoryKeys.mjs";
|
|
2
|
+
import t from "../../components/CategoryContainer/index.mjs";
|
|
3
3
|
import n from "../../components/CategoryOption/index.mjs";
|
|
4
4
|
import r from "../../components/CategorySection/index.mjs";
|
|
5
|
-
import
|
|
6
|
-
import a from "../../
|
|
5
|
+
import i from "../../hooks/useInspectorValues.mjs";
|
|
6
|
+
import a from "../../StyleInspectorContext.mjs";
|
|
7
7
|
import { listMarkerItems as o } from "../listMarkers.mjs";
|
|
8
8
|
import { memo as s, use as c, useCallback as l, useMemo as u } from "react";
|
|
9
9
|
import { jsx as d } from "react/jsx-runtime";
|
|
10
10
|
var f = s(({ replaceTokens: s = !1, isCollapsed: f = !0, onCollapse: p }) => {
|
|
11
|
-
let { setValue: m } = c(
|
|
12
|
-
keys:
|
|
11
|
+
let { setValue: m } = c(a), { "list-style": h } = i({
|
|
12
|
+
keys: e.dot,
|
|
13
13
|
asValue: !0,
|
|
14
14
|
replaceTokens: s
|
|
15
15
|
}), g = l((e) => p?.("list", e), [p]), _ = l((e) => m("list-style", e), [m]), v = u(() => o(h), [h]);
|
|
16
|
-
return /* @__PURE__ */ d(
|
|
17
|
-
title:
|
|
18
|
-
dotKeys:
|
|
16
|
+
return /* @__PURE__ */ d(t, {
|
|
17
|
+
title: e.title,
|
|
18
|
+
dotKeys: e.dot,
|
|
19
19
|
isCollapsed: f,
|
|
20
20
|
onCollapse: g,
|
|
21
21
|
children: /* @__PURE__ */ d(r, {
|
|
22
|
-
keys:
|
|
22
|
+
keys: e.dot,
|
|
23
23
|
label: "Style",
|
|
24
24
|
children: /* @__PURE__ */ d(n, {
|
|
25
25
|
onChange: _,
|
|
@@ -29,5 +29,4 @@ var f = s(({ replaceTokens: s = !1, isCollapsed: f = !0, onCollapse: p }) => {
|
|
|
29
29
|
})
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
|
-
//#endregion
|
|
33
32
|
export { f as default };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import e from "../../
|
|
2
|
-
import t from "../../
|
|
1
|
+
import { LIST_ITEM_KEYS as e } from "../../categoryKeys.mjs";
|
|
2
|
+
import t from "../../components/CategoryContainer/index.mjs";
|
|
3
3
|
import n from "../../components/CategoryOption/index.mjs";
|
|
4
4
|
import r from "../../components/CategorySection/index.mjs";
|
|
5
|
-
import
|
|
6
|
-
import a from "../../
|
|
5
|
+
import i from "../../hooks/useInspectorValues.mjs";
|
|
6
|
+
import a from "../../StyleInspectorContext.mjs";
|
|
7
7
|
import { listMarkerItems as o } from "../listMarkers.mjs";
|
|
8
8
|
import { memo as s, use as c, useCallback as l, useMemo as u } from "react";
|
|
9
9
|
import { jsx as d } from "react/jsx-runtime";
|
|
10
10
|
var f = s(({ replaceTokens: s = !1, isCollapsed: f = !0, onCollapse: p }) => {
|
|
11
|
-
let { setValue: m } = c(
|
|
12
|
-
keys:
|
|
11
|
+
let { setValue: m } = c(a), { "list-style-type": h } = i({
|
|
12
|
+
keys: e.dot,
|
|
13
13
|
asValue: !0,
|
|
14
14
|
replaceTokens: s
|
|
15
15
|
}), g = l((e) => p?.("listItem", e), [p]), _ = l((e) => m("list-style-type", e), [m]), v = u(() => o(h), [h]);
|
|
16
|
-
return /* @__PURE__ */ d(
|
|
17
|
-
title:
|
|
18
|
-
dotKeys:
|
|
16
|
+
return /* @__PURE__ */ d(t, {
|
|
17
|
+
title: e.title,
|
|
18
|
+
dotKeys: e.dot,
|
|
19
19
|
isCollapsed: f,
|
|
20
20
|
onCollapse: g,
|
|
21
21
|
children: /* @__PURE__ */ d(r, {
|
|
22
|
-
keys:
|
|
22
|
+
keys: e.dot,
|
|
23
23
|
label: "Style",
|
|
24
24
|
children: /* @__PURE__ */ d(n, {
|
|
25
25
|
onChange: _,
|
|
@@ -29,5 +29,4 @@ var f = s(({ replaceTokens: s = !1, isCollapsed: f = !0, onCollapse: p }) => {
|
|
|
29
29
|
})
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
|
-
//#endregion
|
|
33
32
|
export { f as default };
|