@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,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/Size/SizeContainer.tsx
|
|
5
5
|
var i = ({ containerType: i, containerName: a, onChange: o }) => /* @__PURE__ */ r(t, {
|
|
6
6
|
label: "",
|
|
7
7
|
children: [/* @__PURE__ */ r(e, {
|
|
@@ -32,5 +32,4 @@ var i = ({ containerType: i, containerName: 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/Size/SizeFit.tsx
|
|
5
5
|
var i = ["object-fit"], a = ({ value: a, onChange: o }) => /* @__PURE__ */ n(t, {
|
|
6
6
|
label: "Object Fit",
|
|
7
7
|
keys: i,
|
|
@@ -35,5 +35,4 @@ var i = ["object-fit"], a = ({ value: a, onChange: o }) => /* @__PURE__ */ n(t,
|
|
|
35
35
|
]
|
|
36
36
|
})
|
|
37
37
|
});
|
|
38
|
-
//#endregion
|
|
39
38
|
export { a as default };
|
|
@@ -3,7 +3,7 @@ import t from "../../components/CategorySection/index.mjs";
|
|
|
3
3
|
import { useMemo as n } from "react";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
import { SizeOverflowScroll as i } from "@plitzi/plitzi-ui/icons";
|
|
6
|
-
|
|
6
|
+
// src/builder/components/StyleInspector/categories/Size/SizeOverflow.tsx
|
|
7
7
|
var a = ({ value: a, onChange: o }) => {
|
|
8
8
|
let s = n(() => [
|
|
9
9
|
{
|
|
@@ -45,5 +45,4 @@ var a = ({ value: a, onChange: o }) => {
|
|
|
45
45
|
})
|
|
46
46
|
});
|
|
47
47
|
};
|
|
48
|
-
//#endregion
|
|
49
48
|
export { a as default };
|
|
@@ -2,7 +2,7 @@ import e from "../../components/CategoryOption/index.mjs";
|
|
|
2
2
|
import t from "../../components/CategorySection/index.mjs";
|
|
3
3
|
import { useCallback as n } from "react";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/builder/components/StyleInspector/categories/Size/SizePosition.tsx
|
|
6
6
|
var a = ({ value: a, onChange: o }) => {
|
|
7
7
|
let s = a.split(" "), c = n((e) => (t) => {
|
|
8
8
|
let n = [...s];
|
|
@@ -26,5 +26,4 @@ var a = ({ value: a, onChange: o }) => {
|
|
|
26
26
|
})]
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
|
-
//#endregion
|
|
30
29
|
export { a as default };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import t from "
|
|
1
|
+
import e from "./SpacingEditor.mjs";
|
|
2
|
+
import t from "./SpacingMargin.mjs";
|
|
3
3
|
import { SPACING_KEYS as n } from "../../categoryKeys.mjs";
|
|
4
4
|
import r from "../../components/CategoryContainer/index.mjs";
|
|
5
|
-
import i from "
|
|
6
|
-
import a from "
|
|
5
|
+
import i from "../../hooks/useInspectorValues.mjs";
|
|
6
|
+
import a from "../../StyleInspectorContext.mjs";
|
|
7
7
|
import { memo as o, use as s, useCallback as c, useState as l } from "react";
|
|
8
8
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
9
9
|
var f = o(({ replaceTokens: o = !1, isCollapsed: f = !0, onCollapse: p }) => {
|
|
10
|
-
let [m, h] = l(!1), { setValue: g } = s(
|
|
10
|
+
let [m, h] = l(!1), { setValue: g } = s(a), _ = i({
|
|
11
11
|
keys: n.dot,
|
|
12
12
|
asValue: !0,
|
|
13
13
|
replaceTokens: o
|
|
@@ -41,13 +41,13 @@ var f = o(({ replaceTokens: o = !1, isCollapsed: f = !0, onCollapse: p }) => {
|
|
|
41
41
|
onCollapse: b,
|
|
42
42
|
children: /* @__PURE__ */ d("div", {
|
|
43
43
|
className: "flex flex-col",
|
|
44
|
-
children: [/* @__PURE__ */ u(
|
|
44
|
+
children: [/* @__PURE__ */ u(t, {
|
|
45
45
|
values: _,
|
|
46
46
|
fragmentSelected: v,
|
|
47
47
|
onSelectFragment: C,
|
|
48
48
|
isLinked: m,
|
|
49
49
|
onLinkSelected: x
|
|
50
|
-
}), v && /* @__PURE__ */ u(
|
|
50
|
+
}), v && /* @__PURE__ */ u(e, {
|
|
51
51
|
fragmentSelected: v,
|
|
52
52
|
onChange: S,
|
|
53
53
|
value: _[v]
|
|
@@ -55,5 +55,4 @@ var f = o(({ replaceTokens: o = !1, isCollapsed: f = !0, onCollapse: p }) => {
|
|
|
55
55
|
})
|
|
56
56
|
});
|
|
57
57
|
});
|
|
58
|
-
//#endregion
|
|
59
58
|
export { f as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import t from "
|
|
1
|
+
import e from "./SpacingNumber.mjs";
|
|
2
|
+
import t from "../../components/InspectorLabel/index.mjs";
|
|
3
3
|
import { useCallback as n } from "react";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/builder/components/StyleInspector/categories/Spacing/SpacingBox.tsx
|
|
6
6
|
var a = ({ property: a, className: o, values: s, fragmentSelected: c, onSelectFragment: l, children: u }) => {
|
|
7
7
|
let d = `${a}-top`, f = `${a}-left`, p = `${a}-right`, m = `${a}-bottom`, h = n((e) => () => l?.(e === c ? void 0 : e), [c, l]);
|
|
8
8
|
return /* @__PURE__ */ i("div", {
|
|
@@ -10,7 +10,7 @@ var a = ({ property: a, className: o, values: s, fragmentSelected: c, onSelectFr
|
|
|
10
10
|
children: [
|
|
11
11
|
/* @__PURE__ */ i("div", {
|
|
12
12
|
className: "flex items-center justify-center py-0.5",
|
|
13
|
-
children: [/* @__PURE__ */ r(
|
|
13
|
+
children: [/* @__PURE__ */ r(t, {
|
|
14
14
|
className: "absolute top-0 left-0 overflow-hidden rounded-br-md !p-0 text-[11px]",
|
|
15
15
|
size: "custom",
|
|
16
16
|
keyValue: [
|
|
@@ -20,7 +20,7 @@ var a = ({ property: a, className: o, values: s, fragmentSelected: c, onSelectFr
|
|
|
20
20
|
m
|
|
21
21
|
],
|
|
22
22
|
children: a.toUpperCase()
|
|
23
|
-
}), /* @__PURE__ */ r(
|
|
23
|
+
}), /* @__PURE__ */ r(e, {
|
|
24
24
|
value: s?.[d],
|
|
25
25
|
active: c === d,
|
|
26
26
|
onClick: h(d)
|
|
@@ -31,7 +31,7 @@ var a = ({ property: a, className: o, values: s, fragmentSelected: c, onSelectFr
|
|
|
31
31
|
children: [
|
|
32
32
|
/* @__PURE__ */ r("div", {
|
|
33
33
|
className: "flex items-center justify-center px-0.5",
|
|
34
|
-
children: /* @__PURE__ */ r(
|
|
34
|
+
children: /* @__PURE__ */ r(e, {
|
|
35
35
|
value: s?.[f],
|
|
36
36
|
active: c === f,
|
|
37
37
|
onClick: h(f)
|
|
@@ -40,7 +40,7 @@ var a = ({ property: a, className: o, values: s, fragmentSelected: c, onSelectFr
|
|
|
40
40
|
u,
|
|
41
41
|
/* @__PURE__ */ r("div", {
|
|
42
42
|
className: "flex items-center justify-center px-0.5",
|
|
43
|
-
children: /* @__PURE__ */ r(
|
|
43
|
+
children: /* @__PURE__ */ r(e, {
|
|
44
44
|
value: s?.[p],
|
|
45
45
|
active: c === p,
|
|
46
46
|
onClick: h(p)
|
|
@@ -50,7 +50,7 @@ var a = ({ property: a, className: o, values: s, fragmentSelected: c, onSelectFr
|
|
|
50
50
|
}),
|
|
51
51
|
/* @__PURE__ */ r("div", {
|
|
52
52
|
className: "flex items-center justify-center py-0.5",
|
|
53
|
-
children: /* @__PURE__ */ r(
|
|
53
|
+
children: /* @__PURE__ */ r(e, {
|
|
54
54
|
value: s?.[m],
|
|
55
55
|
active: c === m,
|
|
56
56
|
onClick: h(m)
|
|
@@ -59,5 +59,4 @@ var a = ({ property: a, className: o, values: s, fragmentSelected: c, onSelectFr
|
|
|
59
59
|
]
|
|
60
60
|
});
|
|
61
61
|
};
|
|
62
|
-
//#endregion
|
|
63
62
|
export { a as default };
|
|
@@ -10,7 +10,7 @@ import l from "@plitzi/plitzi-ui/icons/PaddingBottom";
|
|
|
10
10
|
import u from "@plitzi/plitzi-ui/icons/PaddingLeft";
|
|
11
11
|
import d from "@plitzi/plitzi-ui/icons/PaddingRight";
|
|
12
12
|
import f from "@plitzi/plitzi-ui/icons/PaddingTop";
|
|
13
|
-
|
|
13
|
+
// src/builder/components/StyleInspector/categories/Spacing/SpacingEditor.tsx
|
|
14
14
|
var p = {
|
|
15
15
|
"margin-top": /* @__PURE__ */ e(c, {}),
|
|
16
16
|
"margin-bottom": /* @__PURE__ */ e(a, {}),
|
|
@@ -151,5 +151,4 @@ var p = {
|
|
|
151
151
|
})]
|
|
152
152
|
});
|
|
153
153
|
};
|
|
154
|
-
//#endregion
|
|
155
154
|
export { m as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./SpacingBox.mjs";
|
|
2
2
|
import t from "./SpacingPadding.mjs";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/builder/components/StyleInspector/categories/Spacing/SpacingMargin.tsx
|
|
5
5
|
var r = ({ fragmentSelected: r, values: i, isLinked: a = !1, onLinkSelected: o, onSelectFragment: s }) => /* @__PURE__ */ n(e, {
|
|
6
6
|
property: "margin",
|
|
7
7
|
className: "relative flex cursor-pointer flex-col rounded-md border border-dashed border-gray-300 select-none dark:border-zinc-600",
|
|
@@ -16,5 +16,4 @@ var r = ({ fragmentSelected: r, values: i, isLinked: a = !1, onLinkSelected: o,
|
|
|
16
16
|
onLinkSelected: o
|
|
17
17
|
})
|
|
18
18
|
});
|
|
19
|
-
//#endregion
|
|
20
19
|
export { r as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import t from "clsx";
|
|
3
|
-
|
|
3
|
+
// src/builder/components/StyleInspector/categories/Spacing/SpacingNumber.tsx
|
|
4
4
|
var n = ({ value: n = "", active: r = !1, onClick: i }) => /* @__PURE__ */ e("div", {
|
|
5
5
|
className: t("mx-0.5 flex w-[30px] items-center justify-center rounded-md border px-0.5 text-xs", {
|
|
6
6
|
"border-transparent hover:border-blue-300 hover:bg-blue-100 hover:text-blue-400 dark:hover:bg-blue-900/50 dark:hover:text-blue-400": !r,
|
|
@@ -13,5 +13,4 @@ var n = ({ value: n = "", active: r = !1, onClick: i }) => /* @__PURE__ */ e("di
|
|
|
13
13
|
children: n.replace("px", "")
|
|
14
14
|
})
|
|
15
15
|
});
|
|
16
|
-
//#endregion
|
|
17
16
|
export { n as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e from "./SpacingBox.mjs";
|
|
2
2
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/builder/components/StyleInspector/categories/Spacing/SpacingPadding.tsx
|
|
4
4
|
var r = ({ fragmentSelected: r, values: i, isLinked: a = !1, onLinkSelected: o, onSelectFragment: s }) => /* @__PURE__ */ t(e, {
|
|
5
5
|
property: "padding",
|
|
6
6
|
className: "relative grow rounded-md border border-gray-300 bg-gray-50 dark:border-zinc-600 dark:bg-zinc-800/70",
|
|
@@ -14,5 +14,4 @@ var r = ({ fragmentSelected: r, values: i, isLinked: a = !1, onLinkSelected: o,
|
|
|
14
14
|
children: [a && /* @__PURE__ */ t("i", { className: "fa-solid fa-link text-sm" }), !a && /* @__PURE__ */ t("i", { className: "fa-solid fa-link-slash text-sm" })]
|
|
15
15
|
})
|
|
16
16
|
});
|
|
17
|
-
//#endregion
|
|
18
17
|
export { r as default };
|
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import t from "
|
|
3
|
-
import n from "
|
|
4
|
-
import r from "
|
|
5
|
-
import
|
|
6
|
-
import a from "
|
|
7
|
-
import o from "
|
|
8
|
-
import s from "
|
|
9
|
-
import c from "./
|
|
10
|
-
import ee from "
|
|
11
|
-
import l from "
|
|
12
|
-
import
|
|
13
|
-
import d from "
|
|
14
|
-
import f from "
|
|
15
|
-
import p from "
|
|
16
|
-
import m from "
|
|
17
|
-
import h from "
|
|
18
|
-
import g from "
|
|
1
|
+
import e from "./TypographyAlign.mjs";
|
|
2
|
+
import t from "./TypographyBreaking.mjs";
|
|
3
|
+
import n from "./TypographyClamp.mjs";
|
|
4
|
+
import { weights as r } from "./TypographyConstants.mjs";
|
|
5
|
+
import i from "./TypographyFigures.mjs";
|
|
6
|
+
import a from "./TypographyFont.mjs";
|
|
7
|
+
import o from "./TypographyStyle.mjs";
|
|
8
|
+
import s from "./TypographyTextShadow.mjs";
|
|
9
|
+
import c from "./TypographyTransform.mjs";
|
|
10
|
+
import ee from "../../../../hooks/useSpaceFonts.mjs";
|
|
11
|
+
import { TYPOGRAPHY_KEYS as l } from "../../categoryKeys.mjs";
|
|
12
|
+
import u from "../../components/CategoryAdvanced/index.mjs";
|
|
13
|
+
import d from "../../components/CategoryContainer/index.mjs";
|
|
14
|
+
import f from "../../components/CategoryOption/index.mjs";
|
|
15
|
+
import p from "../../components/CategorySection/index.mjs";
|
|
16
|
+
import m from "../../hooks/useInspectorValues.mjs";
|
|
17
|
+
import h from "../../hooks/usePropertyChange.mjs";
|
|
18
|
+
import g from "../../StyleInspectorContext.mjs";
|
|
19
19
|
import { memo as _, use as v, useCallback as y } from "react";
|
|
20
20
|
import { primaryFamily as b } from "@plitzi/sdk-shared/style";
|
|
21
21
|
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
22
|
-
|
|
22
|
+
// src/builder/components/StyleInspector/categories/Typography/Typography.tsx
|
|
23
23
|
var C = [
|
|
24
24
|
"letter-spacing",
|
|
25
25
|
"word-spacing",
|
|
26
26
|
"text-indent"
|
|
27
27
|
], w = _(({ replaceTokens: _ = !1, isCollapsed: w = !0, onCollapse: T }) => {
|
|
28
|
-
let E =
|
|
29
|
-
keys:
|
|
28
|
+
let E = ee(), { setValue: D } = v(g), { "font-family": O, "font-weight": k, "font-size": A, "font-style": j, "text-align": M, "text-decoration": N, "text-decoration-thickness": te, "text-underline-offset": P, "text-indent": F, "text-transform": I, "text-shadow": L, "white-space": R, "text-wrap": z, "word-break": B, "overflow-wrap": V, hyphens: H, "vertical-align": U, "text-overflow": W, "line-clamp": G, "line-height": K, color: q, "letter-spacing": J, "word-spacing": Y, direction: X, "font-variant-numeric": Z, "font-feature-settings": Q, "-webkit-text-fill-color": ne } = m({
|
|
29
|
+
keys: l.dot,
|
|
30
30
|
asValue: !0,
|
|
31
31
|
replaceTokens: _
|
|
32
|
-
}), re = y((e) => T?.("typography", e), [T]), ie = E.find((e) => e.family === b(typeof O == "string" ? O : "")), $ =
|
|
33
|
-
return /* @__PURE__ */ S(
|
|
34
|
-
title:
|
|
35
|
-
dotKeys:
|
|
36
|
-
advancedKeys:
|
|
32
|
+
}), re = y((e) => T?.("typography", e), [T]), ie = E.find((e) => e.family === b(typeof O == "string" ? O : "")), $ = h(), ae = y((e) => D(void 0, e), [D]);
|
|
33
|
+
return /* @__PURE__ */ S(d, {
|
|
34
|
+
title: l.title,
|
|
35
|
+
dotKeys: l.dot,
|
|
36
|
+
advancedKeys: l.advanced,
|
|
37
37
|
isCollapsed: w,
|
|
38
38
|
onCollapse: re,
|
|
39
39
|
children: [
|
|
40
|
-
/* @__PURE__ */ x(
|
|
40
|
+
/* @__PURE__ */ x(e, {
|
|
41
41
|
partialValue: M,
|
|
42
42
|
onChange: $("text-align")
|
|
43
43
|
}),
|
|
44
|
-
/* @__PURE__ */ x(
|
|
44
|
+
/* @__PURE__ */ x(a, {
|
|
45
45
|
partialValue: O,
|
|
46
46
|
onChange: $("font-family")
|
|
47
47
|
}),
|
|
48
|
-
/* @__PURE__ */ S(
|
|
48
|
+
/* @__PURE__ */ S(p, {
|
|
49
49
|
label: "",
|
|
50
|
-
children: [/* @__PURE__ */ x(
|
|
50
|
+
children: [/* @__PURE__ */ x(f, {
|
|
51
51
|
keys: ["font-weight"],
|
|
52
52
|
label: "Weight",
|
|
53
53
|
value: k,
|
|
54
54
|
onChange: $("font-weight"),
|
|
55
55
|
type: "select",
|
|
56
|
-
children: Object.keys(
|
|
56
|
+
children: Object.keys(r).map((e) => /* @__PURE__ */ x("option", {
|
|
57
57
|
value: e,
|
|
58
58
|
disabled: !ie?.weights.includes(Number(e)),
|
|
59
|
-
children:
|
|
59
|
+
children: r[Number(e)]
|
|
60
60
|
}, e))
|
|
61
|
-
}), /* @__PURE__ */ x(
|
|
61
|
+
}), /* @__PURE__ */ x(f, {
|
|
62
62
|
keys: ["color"],
|
|
63
63
|
label: "Color",
|
|
64
64
|
type: "color",
|
|
@@ -66,15 +66,15 @@ var C = [
|
|
|
66
66
|
onChange: $("color")
|
|
67
67
|
})]
|
|
68
68
|
}),
|
|
69
|
-
/* @__PURE__ */ S(
|
|
69
|
+
/* @__PURE__ */ S(p, {
|
|
70
70
|
label: "",
|
|
71
|
-
children: [/* @__PURE__ */ x(
|
|
71
|
+
children: [/* @__PURE__ */ x(f, {
|
|
72
72
|
keys: ["font-size"],
|
|
73
73
|
label: "Size",
|
|
74
74
|
value: A,
|
|
75
75
|
onChange: $("font-size"),
|
|
76
76
|
type: "metric"
|
|
77
|
-
}), /* @__PURE__ */ x(
|
|
77
|
+
}), /* @__PURE__ */ x(f, {
|
|
78
78
|
keys: ["line-height"],
|
|
79
79
|
label: "Line Height",
|
|
80
80
|
value: K,
|
|
@@ -82,32 +82,32 @@ var C = [
|
|
|
82
82
|
type: "metric"
|
|
83
83
|
})]
|
|
84
84
|
}),
|
|
85
|
-
/* @__PURE__ */ x(
|
|
85
|
+
/* @__PURE__ */ x(o, {
|
|
86
86
|
fontStyle: j,
|
|
87
87
|
textDecoration: N,
|
|
88
88
|
textDecorationThickness: te,
|
|
89
89
|
textUnderlineOffset: P,
|
|
90
90
|
onChange: $
|
|
91
91
|
}),
|
|
92
|
-
/* @__PURE__ */ S(
|
|
92
|
+
/* @__PURE__ */ S(p, {
|
|
93
93
|
label: "Spacing",
|
|
94
94
|
keys: C,
|
|
95
95
|
children: [
|
|
96
|
-
/* @__PURE__ */ x(
|
|
96
|
+
/* @__PURE__ */ x(f, {
|
|
97
97
|
keys: ["letter-spacing"],
|
|
98
98
|
label: "Letter",
|
|
99
99
|
value: J,
|
|
100
100
|
onChange: $("letter-spacing"),
|
|
101
101
|
type: "metric"
|
|
102
102
|
}),
|
|
103
|
-
/* @__PURE__ */ x(
|
|
103
|
+
/* @__PURE__ */ x(f, {
|
|
104
104
|
keys: ["word-spacing"],
|
|
105
105
|
label: "Word",
|
|
106
106
|
value: Y,
|
|
107
107
|
onChange: $("word-spacing"),
|
|
108
108
|
type: "metric"
|
|
109
109
|
}),
|
|
110
|
-
/* @__PURE__ */ x(
|
|
110
|
+
/* @__PURE__ */ x(f, {
|
|
111
111
|
keys: ["text-indent"],
|
|
112
112
|
label: "Indent",
|
|
113
113
|
value: F,
|
|
@@ -116,12 +116,12 @@ var C = [
|
|
|
116
116
|
})
|
|
117
117
|
]
|
|
118
118
|
}),
|
|
119
|
-
/* @__PURE__ */ x(
|
|
119
|
+
/* @__PURE__ */ x(c, {
|
|
120
120
|
textTransform: I,
|
|
121
121
|
direction: X,
|
|
122
122
|
onChange: $
|
|
123
123
|
}),
|
|
124
|
-
/* @__PURE__ */ x(
|
|
124
|
+
/* @__PURE__ */ x(t, {
|
|
125
125
|
whiteSpace: R,
|
|
126
126
|
textWrap: z,
|
|
127
127
|
wordBreak: B,
|
|
@@ -130,9 +130,9 @@ var C = [
|
|
|
130
130
|
verticalAlign: U,
|
|
131
131
|
onChange: $
|
|
132
132
|
}),
|
|
133
|
-
/* @__PURE__ */ S(
|
|
133
|
+
/* @__PURE__ */ S(p, {
|
|
134
134
|
label: "",
|
|
135
|
-
children: [/* @__PURE__ */ S(
|
|
135
|
+
children: [/* @__PURE__ */ S(f, {
|
|
136
136
|
keys: ["text-overflow"],
|
|
137
137
|
label: "Overflow",
|
|
138
138
|
value: W,
|
|
@@ -160,15 +160,15 @@ var C = [
|
|
|
160
160
|
children: "Inherit"
|
|
161
161
|
})
|
|
162
162
|
]
|
|
163
|
-
}), /* @__PURE__ */ x(
|
|
163
|
+
}), /* @__PURE__ */ x(n, {
|
|
164
164
|
value: G,
|
|
165
165
|
onChange: ae
|
|
166
166
|
})]
|
|
167
167
|
}),
|
|
168
|
-
/* @__PURE__ */ S(
|
|
168
|
+
/* @__PURE__ */ S(u, { children: [/* @__PURE__ */ x(s, {
|
|
169
169
|
value: L,
|
|
170
170
|
onChange: $("text-shadow")
|
|
171
|
-
}), /* @__PURE__ */ x(
|
|
171
|
+
}), /* @__PURE__ */ x(i, {
|
|
172
172
|
fontVariantNumeric: Z,
|
|
173
173
|
fontFeatureSettings: Q,
|
|
174
174
|
textFillColor: ne,
|
|
@@ -177,5 +177,4 @@ var C = [
|
|
|
177
177
|
]
|
|
178
178
|
});
|
|
179
179
|
});
|
|
180
|
-
//#endregion
|
|
181
180
|
export { w as default };
|
|
@@ -2,7 +2,7 @@ import e from "../../components/CategoryOption/index.mjs";
|
|
|
2
2
|
import t from "../../components/CategorySection/index.mjs";
|
|
3
3
|
import { useMemo as n } from "react";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/builder/components/StyleInspector/categories/Typography/TypographyAlign.tsx
|
|
6
6
|
var i = ({ partialValue: i, onChange: a }) => {
|
|
7
7
|
let o = n(() => [
|
|
8
8
|
{
|
|
@@ -40,5 +40,4 @@ var i = ({ partialValue: i, onChange: a }) => {
|
|
|
40
40
|
})
|
|
41
41
|
});
|
|
42
42
|
};
|
|
43
|
-
//#endregion
|
|
44
43
|
export { i 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 = ({ whiteSpace: o, textWrap: s, wordBreak: c, overflowWrap: l, hyphens: u, verticalAlign: d, onChange: f }) => /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a(
|
|
5
|
+
// src/builder/components/StyleInspector/categories/Typography/TypographyBreaking.tsx
|
|
6
|
+
var o = ({ whiteSpace: o, textWrap: s, wordBreak: c, overflowWrap: l, hyphens: u, verticalAlign: d, onChange: f }) => /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a(n, {
|
|
7
7
|
label: "",
|
|
8
|
-
children: [/* @__PURE__ */ a(
|
|
8
|
+
children: [/* @__PURE__ */ a(t, {
|
|
9
9
|
keys: ["white-space"],
|
|
10
10
|
label: "Breaking",
|
|
11
11
|
value: o,
|
|
@@ -37,7 +37,7 @@ var o = ({ whiteSpace: o, textWrap: s, wordBreak: c, overflowWrap: l, hyphens: u
|
|
|
37
37
|
children: "Break Spaces"
|
|
38
38
|
})
|
|
39
39
|
]
|
|
40
|
-
}), /* @__PURE__ */ a(
|
|
40
|
+
}), /* @__PURE__ */ a(t, {
|
|
41
41
|
keys: ["text-wrap"],
|
|
42
42
|
label: "Wrap",
|
|
43
43
|
value: s,
|
|
@@ -66,9 +66,9 @@ var o = ({ whiteSpace: o, textWrap: s, wordBreak: c, overflowWrap: l, hyphens: u
|
|
|
66
66
|
})
|
|
67
67
|
]
|
|
68
68
|
})]
|
|
69
|
-
}), /* @__PURE__ */ a(
|
|
69
|
+
}), /* @__PURE__ */ a(e, { children: [/* @__PURE__ */ a(n, {
|
|
70
70
|
label: "",
|
|
71
|
-
children: [/* @__PURE__ */ a(
|
|
71
|
+
children: [/* @__PURE__ */ a(t, {
|
|
72
72
|
keys: ["word-break"],
|
|
73
73
|
label: "Word Break",
|
|
74
74
|
value: c,
|
|
@@ -92,7 +92,7 @@ var o = ({ whiteSpace: o, textWrap: s, wordBreak: c, overflowWrap: l, hyphens: u
|
|
|
92
92
|
children: "Break Word"
|
|
93
93
|
})
|
|
94
94
|
]
|
|
95
|
-
}), /* @__PURE__ */ a(
|
|
95
|
+
}), /* @__PURE__ */ a(t, {
|
|
96
96
|
keys: ["overflow-wrap"],
|
|
97
97
|
label: "Overflow Wrap",
|
|
98
98
|
value: l,
|
|
@@ -113,9 +113,9 @@ var o = ({ whiteSpace: o, textWrap: s, wordBreak: c, overflowWrap: l, hyphens: u
|
|
|
113
113
|
})
|
|
114
114
|
]
|
|
115
115
|
})]
|
|
116
|
-
}), /* @__PURE__ */ a(
|
|
116
|
+
}), /* @__PURE__ */ a(n, {
|
|
117
117
|
label: "",
|
|
118
|
-
children: [/* @__PURE__ */ a(
|
|
118
|
+
children: [/* @__PURE__ */ a(t, {
|
|
119
119
|
keys: ["hyphens"],
|
|
120
120
|
label: "Hyphens",
|
|
121
121
|
value: u,
|
|
@@ -135,7 +135,7 @@ var o = ({ whiteSpace: o, textWrap: s, wordBreak: c, overflowWrap: l, hyphens: u
|
|
|
135
135
|
children: "Auto"
|
|
136
136
|
})
|
|
137
137
|
]
|
|
138
|
-
}), /* @__PURE__ */ a(
|
|
138
|
+
}), /* @__PURE__ */ a(t, {
|
|
139
139
|
keys: ["vertical-align"],
|
|
140
140
|
label: "Vertical Align",
|
|
141
141
|
value: d,
|
|
@@ -177,5 +177,4 @@ var o = ({ whiteSpace: o, textWrap: s, wordBreak: c, overflowWrap: l, hyphens: u
|
|
|
177
177
|
]
|
|
178
178
|
})]
|
|
179
179
|
})] })] });
|
|
180
|
-
//#endregion
|
|
181
180
|
export { o as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "../../components/CategoryOption/index.mjs";
|
|
2
2
|
import { useCallback as t } from "react";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/builder/components/StyleInspector/categories/Typography/TypographyClamp.tsx
|
|
5
5
|
var r = [
|
|
6
6
|
"line-clamp",
|
|
7
7
|
"-webkit-line-clamp",
|
|
@@ -27,5 +27,4 @@ var r = [
|
|
|
27
27
|
onChange: o
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
|
-
//#endregion
|
|
31
30
|
export { i as default };
|
package/dist/builder/components/StyleInspector/categories/Typography/TypographyConstants.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/builder/components/StyleInspector/categories/Typography/TypographyConstants.ts
|
|
2
2
|
var e = {
|
|
3
3
|
100: "Thin",
|
|
4
4
|
200: "Extra Light",
|
|
@@ -10,5 +10,4 @@ var e = {
|
|
|
10
10
|
800: "Extra Bold",
|
|
11
11
|
900: "Black"
|
|
12
12
|
};
|
|
13
|
-
//#endregion
|
|
14
13
|
export { e as weights };
|
|
@@ -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/Typography/TypographyFigures.tsx
|
|
5
5
|
var a = ({ fontVariantNumeric: a, fontFeatureSettings: o, textFillColor: s, onChange: c }) => /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ i(t, {
|
|
6
6
|
label: "",
|
|
7
7
|
children: [/* @__PURE__ */ i(e, {
|
|
@@ -57,5 +57,4 @@ var a = ({ fontVariantNumeric: a, fontFeatureSettings: o, textFillColor: s, onCh
|
|
|
57
57
|
type: "input"
|
|
58
58
|
})
|
|
59
59
|
})] });
|
|
60
|
-
//#endregion
|
|
61
60
|
export { a as default };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import t from "../../components/
|
|
3
|
-
import n from "
|
|
1
|
+
import e from "../../../../hooks/useSpaceFonts.mjs";
|
|
2
|
+
import t from "../../components/CategoryOption/index.mjs";
|
|
3
|
+
import n from "../../components/CategorySection/index.mjs";
|
|
4
4
|
import { useCallback as r } from "react";
|
|
5
5
|
import { fontFamilyStack as i, primaryFamily as a } from "@plitzi/sdk-shared/style";
|
|
6
6
|
import { jsx as o } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/builder/components/StyleInspector/categories/Typography/TypographyFont.tsx
|
|
8
8
|
var s = ({ partialValue: s, onChange: c }) => {
|
|
9
|
-
let l =
|
|
9
|
+
let l = e(), u = typeof s == "string" ? a(s) : "", d = r((e) => {
|
|
10
10
|
let t = l.find((t) => t.family === e);
|
|
11
11
|
c?.(t ? i(t) : e);
|
|
12
12
|
}, [l, c]);
|
|
13
|
-
return /* @__PURE__ */ o(
|
|
13
|
+
return /* @__PURE__ */ o(n, {
|
|
14
14
|
label: "Font",
|
|
15
15
|
keys: ["font-family"],
|
|
16
|
-
children: /* @__PURE__ */ o(
|
|
16
|
+
children: /* @__PURE__ */ o(t, {
|
|
17
17
|
value: u,
|
|
18
18
|
onChange: d,
|
|
19
19
|
type: "select",
|
|
@@ -25,5 +25,4 @@ var s = ({ partialValue: s, onChange: c }) => {
|
|
|
25
25
|
})
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
|
-
//#endregion
|
|
29
28
|
export { s as default };
|