@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,31 +1,31 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
3
|
-
import n from "
|
|
4
|
-
import r from "
|
|
5
|
-
import i from "
|
|
6
|
-
import a from "./
|
|
7
|
-
import o from "./
|
|
8
|
-
import s from "
|
|
9
|
-
import c from "
|
|
10
|
-
import l from "
|
|
11
|
-
import u from "
|
|
12
|
-
import d from "
|
|
1
|
+
import e from "./OthersForm.mjs";
|
|
2
|
+
import t from "./OthersInteraction.mjs";
|
|
3
|
+
import n from "./OthersOutline.mjs";
|
|
4
|
+
import r from "./OthersScrollbar.mjs";
|
|
5
|
+
import i from "./OthersScrollSnap.mjs";
|
|
6
|
+
import a from "./OthersSvg.mjs";
|
|
7
|
+
import o from "./OthersTable.mjs";
|
|
8
|
+
import { OTHERS_KEYS as s } from "../../categoryKeys.mjs";
|
|
9
|
+
import c from "../../components/CategoryAdvanced/index.mjs";
|
|
10
|
+
import l from "../../components/CategoryContainer/index.mjs";
|
|
11
|
+
import u from "../../hooks/useInspectorValues.mjs";
|
|
12
|
+
import d from "../../hooks/usePropertyChange.mjs";
|
|
13
13
|
import { memo as f, useCallback as p } from "react";
|
|
14
14
|
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
15
15
|
var g = f(({ replaceTokens: f = !1, isCollapsed: g = !0, onCollapse: _ }) => {
|
|
16
|
-
let { "pointer-events": v, "user-select": y, "touch-action": b, resize: x, appearance: S, "scroll-behavior": C, "overscroll-behavior": w, "scroll-snap-type": T, "scroll-snap-align": E, "scroll-snap-stop": D, "scroll-padding-top": O, "scroll-margin-top": k, "accent-color": A, "caret-color": j, "color-scheme": M, "scrollbar-width": N, "scrollbar-color": P, "outline-width": F, "outline-style": I, "outline-color": L, "outline-offset": R, "border-collapse": z, "border-spacing": B, "table-layout": V, fill: H, stroke: U, "stroke-width": W } =
|
|
17
|
-
keys:
|
|
16
|
+
let { "pointer-events": v, "user-select": y, "touch-action": b, resize: x, appearance: S, "scroll-behavior": C, "overscroll-behavior": w, "scroll-snap-type": T, "scroll-snap-align": E, "scroll-snap-stop": D, "scroll-padding-top": O, "scroll-margin-top": k, "accent-color": A, "caret-color": j, "color-scheme": M, "scrollbar-width": N, "scrollbar-color": P, "outline-width": F, "outline-style": I, "outline-color": L, "outline-offset": R, "border-collapse": z, "border-spacing": B, "table-layout": V, fill: H, stroke: U, "stroke-width": W } = u({
|
|
17
|
+
keys: s.dot,
|
|
18
18
|
asValue: !0,
|
|
19
19
|
replaceTokens: f
|
|
20
|
-
}), G = p((e) => _?.("others", e), [_]), K =
|
|
21
|
-
return /* @__PURE__ */ h(
|
|
22
|
-
title:
|
|
23
|
-
dotKeys:
|
|
24
|
-
advancedKeys:
|
|
20
|
+
}), G = p((e) => _?.("others", e), [_]), K = d();
|
|
21
|
+
return /* @__PURE__ */ h(l, {
|
|
22
|
+
title: s.title,
|
|
23
|
+
dotKeys: s.dot,
|
|
24
|
+
advancedKeys: s.advanced,
|
|
25
25
|
isCollapsed: g,
|
|
26
26
|
onCollapse: G,
|
|
27
27
|
children: [
|
|
28
|
-
/* @__PURE__ */ m(
|
|
28
|
+
/* @__PURE__ */ m(t, {
|
|
29
29
|
pointerEvents: v,
|
|
30
30
|
userSelect: y,
|
|
31
31
|
touchAction: b,
|
|
@@ -35,20 +35,20 @@ var g = f(({ replaceTokens: f = !1, isCollapsed: g = !0, onCollapse: _ }) => {
|
|
|
35
35
|
overscrollBehavior: w,
|
|
36
36
|
onChange: K
|
|
37
37
|
}),
|
|
38
|
-
/* @__PURE__ */ m(
|
|
38
|
+
/* @__PURE__ */ m(n, {
|
|
39
39
|
outlineWidth: F,
|
|
40
40
|
outlineStyle: I,
|
|
41
41
|
outlineColor: L,
|
|
42
42
|
outlineOffset: R,
|
|
43
43
|
onChange: K
|
|
44
44
|
}),
|
|
45
|
-
/* @__PURE__ */ h(
|
|
46
|
-
/* @__PURE__ */ m(
|
|
45
|
+
/* @__PURE__ */ h(c, { children: [
|
|
46
|
+
/* @__PURE__ */ m(r, {
|
|
47
47
|
scrollbarWidth: N,
|
|
48
48
|
scrollbarColor: P,
|
|
49
49
|
onChange: K
|
|
50
50
|
}),
|
|
51
|
-
/* @__PURE__ */ m(
|
|
51
|
+
/* @__PURE__ */ m(i, {
|
|
52
52
|
scrollSnapType: T,
|
|
53
53
|
scrollSnapAlign: E,
|
|
54
54
|
scrollSnapStop: D,
|
|
@@ -56,19 +56,19 @@ var g = f(({ replaceTokens: f = !1, isCollapsed: g = !0, onCollapse: _ }) => {
|
|
|
56
56
|
scrollMarginTop: k,
|
|
57
57
|
onChange: K
|
|
58
58
|
}),
|
|
59
|
-
/* @__PURE__ */ m(
|
|
59
|
+
/* @__PURE__ */ m(e, {
|
|
60
60
|
accentColor: A,
|
|
61
61
|
caretColor: j,
|
|
62
62
|
colorScheme: M,
|
|
63
63
|
onChange: K
|
|
64
64
|
}),
|
|
65
|
-
/* @__PURE__ */ m(
|
|
65
|
+
/* @__PURE__ */ m(o, {
|
|
66
66
|
borderCollapse: z,
|
|
67
67
|
borderSpacing: B,
|
|
68
68
|
tableLayout: V,
|
|
69
69
|
onChange: K
|
|
70
70
|
}),
|
|
71
|
-
/* @__PURE__ */ m(
|
|
71
|
+
/* @__PURE__ */ m(a, {
|
|
72
72
|
fill: H,
|
|
73
73
|
stroke: U,
|
|
74
74
|
strokeWidth: W,
|
|
@@ -78,5 +78,4 @@ var g = f(({ replaceTokens: f = !1, isCollapsed: g = !0, onCollapse: _ }) => {
|
|
|
78
78
|
]
|
|
79
79
|
});
|
|
80
80
|
});
|
|
81
|
-
//#endregion
|
|
82
81
|
export { g as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "../../components/CategoryOption/index.mjs";
|
|
2
2
|
import t from "../../components/CategorySection/index.mjs";
|
|
3
3
|
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/builder/components/StyleInspector/categories/Others/OthersForm.tsx
|
|
5
5
|
var a = ({ accentColor: a, caretColor: o, colorScheme: s, onChange: c }) => /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ i(t, {
|
|
6
6
|
label: "",
|
|
7
7
|
children: [/* @__PURE__ */ r(e, {
|
|
@@ -44,5 +44,4 @@ var a = ({ accentColor: a, caretColor: o, colorScheme: s, onChange: c }) => /* @
|
|
|
44
44
|
]
|
|
45
45
|
})
|
|
46
46
|
})] });
|
|
47
|
-
//#endregion
|
|
48
47
|
export { a as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import e from "../../components/
|
|
2
|
-
import t from "../../components/
|
|
3
|
-
import n from "../../components/
|
|
1
|
+
import e from "../../components/CategoryAdvanced/index.mjs";
|
|
2
|
+
import t from "../../components/CategoryOption/index.mjs";
|
|
3
|
+
import n from "../../components/CategorySection/index.mjs";
|
|
4
4
|
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
-
|
|
6
|
-
var o = ({ pointerEvents: o, userSelect: s, touchAction: c, resize: l, appearance: u, scrollBehavior: d, overscrollBehavior: f, onChange: p }) => /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a(
|
|
5
|
+
// src/builder/components/StyleInspector/categories/Others/OthersInteraction.tsx
|
|
6
|
+
var o = ({ pointerEvents: o, userSelect: s, touchAction: c, resize: l, appearance: u, scrollBehavior: d, overscrollBehavior: f, onChange: p }) => /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a(n, {
|
|
7
7
|
label: "",
|
|
8
|
-
children: [/* @__PURE__ */ a(
|
|
8
|
+
children: [/* @__PURE__ */ a(t, {
|
|
9
9
|
keys: ["pointer-events"],
|
|
10
10
|
label: "Pointer",
|
|
11
11
|
value: o,
|
|
@@ -18,7 +18,7 @@ var o = ({ pointerEvents: o, userSelect: s, touchAction: c, resize: l, appearanc
|
|
|
18
18
|
value: "none",
|
|
19
19
|
children: "None"
|
|
20
20
|
})]
|
|
21
|
-
}), /* @__PURE__ */ a(
|
|
21
|
+
}), /* @__PURE__ */ a(t, {
|
|
22
22
|
keys: ["user-select"],
|
|
23
23
|
label: "Selection",
|
|
24
24
|
value: s,
|
|
@@ -47,10 +47,10 @@ var o = ({ pointerEvents: o, userSelect: s, touchAction: c, resize: l, appearanc
|
|
|
47
47
|
})
|
|
48
48
|
]
|
|
49
49
|
})]
|
|
50
|
-
}), /* @__PURE__ */ a(
|
|
51
|
-
/* @__PURE__ */ a(
|
|
50
|
+
}), /* @__PURE__ */ a(e, { children: [
|
|
51
|
+
/* @__PURE__ */ a(n, {
|
|
52
52
|
label: "",
|
|
53
|
-
children: [/* @__PURE__ */ a(
|
|
53
|
+
children: [/* @__PURE__ */ a(t, {
|
|
54
54
|
keys: ["touch-action"],
|
|
55
55
|
label: "Touch",
|
|
56
56
|
value: c,
|
|
@@ -78,7 +78,7 @@ var o = ({ pointerEvents: o, userSelect: s, touchAction: c, resize: l, appearanc
|
|
|
78
78
|
children: "Manipulation"
|
|
79
79
|
})
|
|
80
80
|
]
|
|
81
|
-
}), /* @__PURE__ */ a(
|
|
81
|
+
}), /* @__PURE__ */ a(t, {
|
|
82
82
|
keys: ["resize"],
|
|
83
83
|
label: "Resize",
|
|
84
84
|
value: l,
|
|
@@ -104,9 +104,9 @@ var o = ({ pointerEvents: o, userSelect: s, touchAction: c, resize: l, appearanc
|
|
|
104
104
|
]
|
|
105
105
|
})]
|
|
106
106
|
}),
|
|
107
|
-
/* @__PURE__ */ a(
|
|
107
|
+
/* @__PURE__ */ a(n, {
|
|
108
108
|
label: "",
|
|
109
|
-
children: [/* @__PURE__ */ a(
|
|
109
|
+
children: [/* @__PURE__ */ a(t, {
|
|
110
110
|
keys: ["scroll-behavior"],
|
|
111
111
|
label: "Scroll",
|
|
112
112
|
value: d,
|
|
@@ -119,7 +119,7 @@ var o = ({ pointerEvents: o, userSelect: s, touchAction: c, resize: l, appearanc
|
|
|
119
119
|
value: "smooth",
|
|
120
120
|
children: "Smooth"
|
|
121
121
|
})]
|
|
122
|
-
}), /* @__PURE__ */ a(
|
|
122
|
+
}), /* @__PURE__ */ a(t, {
|
|
123
123
|
keys: ["overscroll-behavior"],
|
|
124
124
|
label: "Overscroll",
|
|
125
125
|
value: f,
|
|
@@ -141,10 +141,10 @@ var o = ({ pointerEvents: o, userSelect: s, touchAction: c, resize: l, appearanc
|
|
|
141
141
|
]
|
|
142
142
|
})]
|
|
143
143
|
}),
|
|
144
|
-
/* @__PURE__ */ i(
|
|
144
|
+
/* @__PURE__ */ i(n, {
|
|
145
145
|
label: "Appearance",
|
|
146
146
|
keys: ["appearance"],
|
|
147
|
-
children: /* @__PURE__ */ a(
|
|
147
|
+
children: /* @__PURE__ */ a(t, {
|
|
148
148
|
value: u,
|
|
149
149
|
onChange: p?.("appearance"),
|
|
150
150
|
type: "select",
|
|
@@ -158,5 +158,4 @@ var o = ({ pointerEvents: o, userSelect: s, touchAction: c, resize: l, appearanc
|
|
|
158
158
|
})
|
|
159
159
|
})
|
|
160
160
|
] })] });
|
|
161
|
-
//#endregion
|
|
162
161
|
export { o as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "../../components/CategoryOption/index.mjs";
|
|
2
2
|
import t from "../../components/CategorySection/index.mjs";
|
|
3
3
|
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/builder/components/StyleInspector/categories/Others/OthersOutline.tsx
|
|
5
5
|
var a = ({ outlineWidth: a, outlineStyle: o, outlineColor: s, outlineOffset: c, onChange: l }) => /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ i(t, {
|
|
6
6
|
label: "",
|
|
7
7
|
children: [/* @__PURE__ */ i(e, {
|
|
@@ -76,5 +76,4 @@ var a = ({ outlineWidth: a, outlineStyle: o, outlineColor: s, outlineOffset: c,
|
|
|
76
76
|
type: "metric"
|
|
77
77
|
})]
|
|
78
78
|
})] });
|
|
79
|
-
//#endregion
|
|
80
79
|
export { a as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "../../components/CategoryOption/index.mjs";
|
|
2
2
|
import t from "../../components/CategorySection/index.mjs";
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/builder/components/StyleInspector/categories/Others/OthersScrollSnap.tsx
|
|
5
5
|
var i = ({ scrollSnapType: i, scrollSnapAlign: a, scrollSnapStop: o, scrollPaddingTop: s, scrollMarginTop: c, onChange: l }) => /* @__PURE__ */ r(t, {
|
|
6
6
|
label: "Scroll snap",
|
|
7
7
|
children: [
|
|
@@ -89,5 +89,4 @@ var i = ({ scrollSnapType: i, scrollSnapAlign: a, scrollSnapStop: o, scrollPaddi
|
|
|
89
89
|
})
|
|
90
90
|
]
|
|
91
91
|
});
|
|
92
|
-
//#endregion
|
|
93
92
|
export { i as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "../../components/CategoryOption/index.mjs";
|
|
2
2
|
import t from "../../components/CategorySection/index.mjs";
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/builder/components/StyleInspector/categories/Others/OthersScrollbar.tsx
|
|
5
5
|
var i = ({ scrollbarWidth: i, scrollbarColor: a, onChange: o }) => /* @__PURE__ */ r(t, {
|
|
6
6
|
label: "",
|
|
7
7
|
children: [/* @__PURE__ */ r(e, {
|
|
@@ -32,5 +32,4 @@ var i = ({ scrollbarWidth: i, scrollbarColor: a, onChange: o }) => /* @__PURE__
|
|
|
32
32
|
type: "input"
|
|
33
33
|
})]
|
|
34
34
|
});
|
|
35
|
-
//#endregion
|
|
36
35
|
export { i as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "../../components/CategoryOption/index.mjs";
|
|
2
2
|
import t from "../../components/CategorySection/index.mjs";
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/builder/components/StyleInspector/categories/Others/OthersSvg.tsx
|
|
5
5
|
var i = ({ fill: i, stroke: a, strokeWidth: o, onChange: s }) => /* @__PURE__ */ r(t, {
|
|
6
6
|
label: "",
|
|
7
7
|
children: [
|
|
@@ -27,5 +27,4 @@ var i = ({ fill: i, stroke: a, strokeWidth: o, onChange: s }) => /* @__PURE__ */
|
|
|
27
27
|
})
|
|
28
28
|
]
|
|
29
29
|
});
|
|
30
|
-
//#endregion
|
|
31
30
|
export { i as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "../../components/CategoryOption/index.mjs";
|
|
2
2
|
import t from "../../components/CategorySection/index.mjs";
|
|
3
3
|
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/builder/components/StyleInspector/categories/Others/OthersTable.tsx
|
|
5
5
|
var a = ({ borderCollapse: a, borderSpacing: o, tableLayout: s, onChange: c }) => /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ i(t, {
|
|
6
6
|
label: "",
|
|
7
7
|
children: [/* @__PURE__ */ i(e, {
|
|
@@ -40,5 +40,4 @@ var a = ({ borderCollapse: a, borderSpacing: o, tableLayout: s, onChange: c }) =
|
|
|
40
40
|
type: "metric"
|
|
41
41
|
})
|
|
42
42
|
})] });
|
|
43
|
-
//#endregion
|
|
44
43
|
export { a as default };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import t from "
|
|
3
|
-
import n from "
|
|
4
|
-
import r from "
|
|
1
|
+
import e from "./PositionAdvanced.mjs";
|
|
2
|
+
import t from "./PositionAdvancedButtons.mjs";
|
|
3
|
+
import n from "./PositionClear.mjs";
|
|
4
|
+
import r from "./PositionFloat.mjs";
|
|
5
5
|
import { POSITION_KEYS as i } from "../../categoryKeys.mjs";
|
|
6
6
|
import a from "../../components/CategoryAdvanced/index.mjs";
|
|
7
7
|
import o from "../../components/CategoryContainer/index.mjs";
|
|
8
|
-
import s from "
|
|
9
|
-
import c from "
|
|
10
|
-
import l from "
|
|
11
|
-
import u from "
|
|
8
|
+
import s from "../../components/CategoryOption/index.mjs";
|
|
9
|
+
import c from "../../components/CategorySection/index.mjs";
|
|
10
|
+
import l from "../../hooks/useInspectorValues.mjs";
|
|
11
|
+
import u from "../../StyleInspectorContext.mjs";
|
|
12
12
|
import { memo as d, use as f, useCallback as p, useMemo as m } from "react";
|
|
13
13
|
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
14
14
|
import _ from "@plitzi/plitzi-ui/icons/XMark";
|
|
@@ -16,7 +16,7 @@ import v from "@plitzi/plitzi-ui/icons/ListNumbers";
|
|
|
16
16
|
import y from "@plitzi/plitzi-ui/icons/PositionAbsolute";
|
|
17
17
|
import b from "@plitzi/plitzi-ui/icons/PositionFixed";
|
|
18
18
|
import x from "@plitzi/plitzi-ui/icons/PositionRelative";
|
|
19
|
-
|
|
19
|
+
// src/builder/components/StyleInspector/categories/Position/Position.tsx
|
|
20
20
|
var S = [
|
|
21
21
|
"position",
|
|
22
22
|
"top",
|
|
@@ -24,7 +24,7 @@ var S = [
|
|
|
24
24
|
"left",
|
|
25
25
|
"right"
|
|
26
26
|
], C = d(({ replaceTokens: d = !1, isCollapsed: C = !0, onCollapse: w }) => {
|
|
27
|
-
let { setValue: T } = f(
|
|
27
|
+
let { setValue: T } = f(u), { position: E, top: D, bottom: O, left: k, right: A, float: j, clear: M, "z-index": N } = l({
|
|
28
28
|
keys: i.dot,
|
|
29
29
|
asValue: !0,
|
|
30
30
|
replaceTokens: d
|
|
@@ -81,34 +81,34 @@ var S = [
|
|
|
81
81
|
children: /* @__PURE__ */ g("div", {
|
|
82
82
|
className: "flex flex-col gap-2",
|
|
83
83
|
children: [
|
|
84
|
-
/* @__PURE__ */ h(
|
|
84
|
+
/* @__PURE__ */ h(c, {
|
|
85
85
|
keys: S,
|
|
86
86
|
label: "Position",
|
|
87
|
-
children: /* @__PURE__ */ h(
|
|
87
|
+
children: /* @__PURE__ */ h(s, {
|
|
88
88
|
onChange: I("position"),
|
|
89
89
|
type: "iconGroup",
|
|
90
90
|
items: L
|
|
91
91
|
})
|
|
92
92
|
}),
|
|
93
|
-
(E === "fixed" || E === "absolute") && /* @__PURE__ */ h(
|
|
93
|
+
(E === "fixed" || E === "absolute") && /* @__PURE__ */ h(t, {
|
|
94
94
|
value: P,
|
|
95
95
|
onChange: I("position-path")
|
|
96
96
|
}),
|
|
97
|
-
/* @__PURE__ */ h(
|
|
97
|
+
/* @__PURE__ */ h(e, {
|
|
98
98
|
value: P,
|
|
99
99
|
onChange: I
|
|
100
100
|
}),
|
|
101
|
-
/* @__PURE__ */ g(a, { children: [/* @__PURE__ */ h(
|
|
101
|
+
/* @__PURE__ */ g(a, { children: [/* @__PURE__ */ h(r, {
|
|
102
102
|
value: j,
|
|
103
103
|
onChange: I("float")
|
|
104
|
-
}), /* @__PURE__ */ h(
|
|
104
|
+
}), /* @__PURE__ */ h(n, {
|
|
105
105
|
value: M,
|
|
106
106
|
onChange: I("clear")
|
|
107
107
|
})] }),
|
|
108
|
-
/* @__PURE__ */ h(
|
|
108
|
+
/* @__PURE__ */ h(c, {
|
|
109
109
|
keys: ["z-index"],
|
|
110
110
|
label: "Z-Index",
|
|
111
|
-
children: /* @__PURE__ */ h(
|
|
111
|
+
children: /* @__PURE__ */ h(s, {
|
|
112
112
|
onChange: I("z-index"),
|
|
113
113
|
type: "input",
|
|
114
114
|
value: N
|
|
@@ -118,5 +118,4 @@ var S = [
|
|
|
118
118
|
})
|
|
119
119
|
});
|
|
120
120
|
});
|
|
121
|
-
//#endregion
|
|
122
121
|
export { C as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "../../components/CategoryOption/index.mjs";
|
|
2
2
|
import t from "../../components/CategorySection/index.mjs";
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/builder/components/StyleInspector/categories/Position/PositionAdvanced.tsx
|
|
5
5
|
var i = [{
|
|
6
6
|
label: "PX",
|
|
7
7
|
value: "px"
|
|
@@ -84,5 +84,4 @@ var i = [{
|
|
|
84
84
|
})
|
|
85
85
|
});
|
|
86
86
|
};
|
|
87
|
-
//#endregion
|
|
88
87
|
export { o as default };
|
package/dist/builder/components/StyleInspector/categories/Position/PositionAdvancedButtons.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import l from "@plitzi/plitzi-ui/icons/PositionRight";
|
|
|
11
11
|
import u from "@plitzi/plitzi-ui/icons/PositionTop";
|
|
12
12
|
import d from "@plitzi/plitzi-ui/icons/PositionTopLeft";
|
|
13
13
|
import f from "@plitzi/plitzi-ui/icons/PositionTopRight";
|
|
14
|
-
|
|
14
|
+
// src/builder/components/StyleInspector/categories/Position/PositionAdvancedButtons.tsx
|
|
15
15
|
var p = ({ value: p, onChange: m }) => {
|
|
16
16
|
let { top: h, bottom: g, left: _, right: v } = p ?? {}, y = n(() => [
|
|
17
17
|
{
|
|
@@ -128,5 +128,4 @@ var p = ({ value: p, onChange: m }) => {
|
|
|
128
128
|
})
|
|
129
129
|
});
|
|
130
130
|
};
|
|
131
|
-
//#endregion
|
|
132
131
|
export { p as default };
|
|
@@ -6,7 +6,7 @@ import i from "@plitzi/plitzi-ui/icons/XMark";
|
|
|
6
6
|
import a from "@plitzi/plitzi-ui/icons/ClearBoth";
|
|
7
7
|
import o from "@plitzi/plitzi-ui/icons/ClearLeft";
|
|
8
8
|
import s from "@plitzi/plitzi-ui/icons/ClearRight";
|
|
9
|
-
|
|
9
|
+
// src/builder/components/StyleInspector/categories/Position/PositionClear.tsx
|
|
10
10
|
var c = ({ value: c, onChange: l }) => {
|
|
11
11
|
let u = n(() => [
|
|
12
12
|
{
|
|
@@ -44,5 +44,4 @@ var c = ({ value: c, onChange: l }) => {
|
|
|
44
44
|
})
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
//#endregion
|
|
48
47
|
export { c as default };
|
|
@@ -5,7 +5,7 @@ import { jsx as r } from "react/jsx-runtime";
|
|
|
5
5
|
import i from "@plitzi/plitzi-ui/icons/XMark";
|
|
6
6
|
import a from "@plitzi/plitzi-ui/icons/FloatLeft";
|
|
7
7
|
import o from "@plitzi/plitzi-ui/icons/FloatRight";
|
|
8
|
-
|
|
8
|
+
// src/builder/components/StyleInspector/categories/Position/PositionFloat.tsx
|
|
9
9
|
var s = ({ value: s, onChange: c }) => {
|
|
10
10
|
let l = n(() => [
|
|
11
11
|
{
|
|
@@ -37,5 +37,4 @@ var s = ({ value: s, onChange: c }) => {
|
|
|
37
37
|
})
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
|
-
//#endregion
|
|
41
40
|
export { s as default };
|
|
@@ -4,9 +4,9 @@ import n from "../../components/CategoryContainer/index.mjs";
|
|
|
4
4
|
import { useCallback as r, useMemo as i } from "react";
|
|
5
5
|
import { jsx as a } from "react/jsx-runtime";
|
|
6
6
|
import o from "@plitzi/plitzi-ui/CodeMirror";
|
|
7
|
-
import { useTheme as s } from "@plitzi/sdk-shared/theme";
|
|
7
|
+
import { useTheme as s } from "@plitzi/sdk-shared/theme/react";
|
|
8
8
|
import c from "clsx";
|
|
9
|
-
|
|
9
|
+
// src/builder/components/StyleInspector/categories/RawStyle/RawStyle.tsx
|
|
10
10
|
var l = ({ selectors: l, isCollapsed: u, onCollapse: d }) => {
|
|
11
11
|
let { resolvedTheme: f } = s(), p = i(() => e(l ?? [], !1).join("\n\n"), [l]), m = r((e) => d?.("rawStyle", e), [d]);
|
|
12
12
|
return /* @__PURE__ */ a(n, {
|
|
@@ -24,5 +24,4 @@ var l = ({ selectors: l, isCollapsed: u, onCollapse: d }) => {
|
|
|
24
24
|
})
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
|
-
//#endregion
|
|
28
27
|
export { l as default };
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import t from "
|
|
3
|
-
import n from "
|
|
4
|
-
import
|
|
5
|
-
import i from "../../
|
|
6
|
-
import a from "../../components/
|
|
7
|
-
import o from "../../
|
|
8
|
-
import s from "
|
|
9
|
-
import c from "
|
|
10
|
-
import l from "
|
|
11
|
-
import u from "
|
|
1
|
+
import e from "./SizeContainer.mjs";
|
|
2
|
+
import t from "./SizeFit.mjs";
|
|
3
|
+
import n from "./SizeOverflow.mjs";
|
|
4
|
+
import r from "./SizePosition.mjs";
|
|
5
|
+
import { SIZE_KEYS as i } from "../../categoryKeys.mjs";
|
|
6
|
+
import a from "../../components/CategoryAdvanced/index.mjs";
|
|
7
|
+
import o from "../../components/CategoryContainer/index.mjs";
|
|
8
|
+
import s from "../../components/CategoryOption/index.mjs";
|
|
9
|
+
import c from "../../components/CategorySection/index.mjs";
|
|
10
|
+
import l from "../../hooks/useInspectorValues.mjs";
|
|
11
|
+
import u from "../../hooks/usePropertyChange.mjs";
|
|
12
12
|
import { memo as d, useCallback as f } from "react";
|
|
13
13
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
14
|
-
|
|
14
|
+
// src/builder/components/StyleInspector/categories/Size/Size.tsx
|
|
15
15
|
var h = ["width", "height"], g = ["min-width", "min-height"], _ = ["max-width", "max-height"], v = d(({ replaceTokens: d = !1, isCollapsed: v = !0, onCollapse: y }) => {
|
|
16
|
-
let { width: b, height: x, "min-width": S, "min-height": C, "max-width": w, "max-height": T, "aspect-ratio": E, "box-sizing": D, overflow: O, "object-position": k, "object-fit": A, "container-type": j, "container-name": M } =
|
|
17
|
-
keys:
|
|
16
|
+
let { width: b, height: x, "min-width": S, "min-height": C, "max-width": w, "max-height": T, "aspect-ratio": E, "box-sizing": D, overflow: O, "object-position": k, "object-fit": A, "container-type": j, "container-name": M } = l({
|
|
17
|
+
keys: i.dot,
|
|
18
18
|
asValue: !0,
|
|
19
19
|
replaceTokens: d
|
|
20
|
-
}), N = f((e) => y?.("size", e), [y]), P =
|
|
21
|
-
return /* @__PURE__ */ m(
|
|
22
|
-
title:
|
|
23
|
-
dotKeys:
|
|
24
|
-
advancedKeys:
|
|
20
|
+
}), N = f((e) => y?.("size", e), [y]), P = u();
|
|
21
|
+
return /* @__PURE__ */ m(o, {
|
|
22
|
+
title: i.title,
|
|
23
|
+
dotKeys: i.dot,
|
|
24
|
+
advancedKeys: i.advanced,
|
|
25
25
|
isCollapsed: v,
|
|
26
26
|
onCollapse: N,
|
|
27
27
|
children: [
|
|
28
|
-
/* @__PURE__ */ m(
|
|
28
|
+
/* @__PURE__ */ m(c, {
|
|
29
29
|
label: "Size",
|
|
30
30
|
keys: h,
|
|
31
|
-
children: [/* @__PURE__ */ p(
|
|
31
|
+
children: [/* @__PURE__ */ p(s, {
|
|
32
32
|
keys: ["width"],
|
|
33
33
|
preffix: "W",
|
|
34
34
|
value: b,
|
|
35
35
|
onChange: P("width"),
|
|
36
36
|
type: "metric"
|
|
37
|
-
}), /* @__PURE__ */ p(
|
|
37
|
+
}), /* @__PURE__ */ p(s, {
|
|
38
38
|
keys: ["height"],
|
|
39
39
|
preffix: "H",
|
|
40
40
|
value: x,
|
|
@@ -42,16 +42,16 @@ var h = ["width", "height"], g = ["min-width", "min-height"], _ = ["max-width",
|
|
|
42
42
|
type: "metric"
|
|
43
43
|
})]
|
|
44
44
|
}),
|
|
45
|
-
/* @__PURE__ */ m(
|
|
45
|
+
/* @__PURE__ */ m(c, {
|
|
46
46
|
label: "Min Size",
|
|
47
47
|
keys: g,
|
|
48
|
-
children: [/* @__PURE__ */ p(
|
|
48
|
+
children: [/* @__PURE__ */ p(s, {
|
|
49
49
|
keys: ["min-width"],
|
|
50
50
|
preffix: "W",
|
|
51
51
|
value: S,
|
|
52
52
|
onChange: P("min-width"),
|
|
53
53
|
type: "metric"
|
|
54
|
-
}), /* @__PURE__ */ p(
|
|
54
|
+
}), /* @__PURE__ */ p(s, {
|
|
55
55
|
keys: ["min-height"],
|
|
56
56
|
preffix: "H",
|
|
57
57
|
value: C,
|
|
@@ -59,16 +59,16 @@ var h = ["width", "height"], g = ["min-width", "min-height"], _ = ["max-width",
|
|
|
59
59
|
type: "metric"
|
|
60
60
|
})]
|
|
61
61
|
}),
|
|
62
|
-
/* @__PURE__ */ m(
|
|
62
|
+
/* @__PURE__ */ m(c, {
|
|
63
63
|
label: "Max Size",
|
|
64
64
|
keys: _,
|
|
65
|
-
children: [/* @__PURE__ */ p(
|
|
65
|
+
children: [/* @__PURE__ */ p(s, {
|
|
66
66
|
keys: ["max-width"],
|
|
67
67
|
preffix: "W",
|
|
68
68
|
value: w,
|
|
69
69
|
onChange: P("max-width"),
|
|
70
70
|
type: "metric"
|
|
71
|
-
}), /* @__PURE__ */ p(
|
|
71
|
+
}), /* @__PURE__ */ p(s, {
|
|
72
72
|
keys: ["max-height"],
|
|
73
73
|
preffix: "H",
|
|
74
74
|
value: T,
|
|
@@ -76,14 +76,14 @@ var h = ["width", "height"], g = ["min-width", "min-height"], _ = ["max-width",
|
|
|
76
76
|
type: "metric"
|
|
77
77
|
})]
|
|
78
78
|
}),
|
|
79
|
-
/* @__PURE__ */ p(
|
|
79
|
+
/* @__PURE__ */ p(a, { children: /* @__PURE__ */ m(c, {
|
|
80
80
|
label: "",
|
|
81
|
-
children: [/* @__PURE__ */ p(
|
|
81
|
+
children: [/* @__PURE__ */ p(s, {
|
|
82
82
|
keys: ["aspect-ratio"],
|
|
83
83
|
label: "Ratio",
|
|
84
84
|
value: E,
|
|
85
85
|
onChange: P("aspect-ratio")
|
|
86
|
-
}), /* @__PURE__ */ m(
|
|
86
|
+
}), /* @__PURE__ */ m(s, {
|
|
87
87
|
keys: ["box-sizing"],
|
|
88
88
|
label: "Box Sizing",
|
|
89
89
|
value: D,
|
|
@@ -98,20 +98,20 @@ var h = ["width", "height"], g = ["min-width", "min-height"], _ = ["max-width",
|
|
|
98
98
|
})]
|
|
99
99
|
})]
|
|
100
100
|
}) }),
|
|
101
|
-
/* @__PURE__ */ p(
|
|
101
|
+
/* @__PURE__ */ p(n, {
|
|
102
102
|
value: O,
|
|
103
103
|
onChange: P
|
|
104
104
|
}),
|
|
105
|
-
/* @__PURE__ */ m(
|
|
106
|
-
/* @__PURE__ */ p(
|
|
105
|
+
/* @__PURE__ */ m(a, { children: [
|
|
106
|
+
/* @__PURE__ */ p(r, {
|
|
107
107
|
value: k,
|
|
108
108
|
onChange: P
|
|
109
109
|
}),
|
|
110
|
-
/* @__PURE__ */ p(
|
|
110
|
+
/* @__PURE__ */ p(t, {
|
|
111
111
|
value: A,
|
|
112
112
|
onChange: P
|
|
113
113
|
}),
|
|
114
|
-
/* @__PURE__ */ p(
|
|
114
|
+
/* @__PURE__ */ p(e, {
|
|
115
115
|
containerType: j,
|
|
116
116
|
containerName: M,
|
|
117
117
|
onChange: P
|
|
@@ -120,5 +120,4 @@ var h = ["width", "height"], g = ["min-width", "min-height"], _ = ["max-width",
|
|
|
120
120
|
]
|
|
121
121
|
});
|
|
122
122
|
});
|
|
123
|
-
//#endregion
|
|
124
123
|
export { v as default };
|