@plitzi/sdk-style 0.30.19

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.
Files changed (333) hide show
  1. package/CHANGELOG.md +1398 -0
  2. package/dist/BuilderStyleContextProvider.d.ts +12 -0
  3. package/dist/BuilderStyleContextProvider.mjs +209 -0
  4. package/dist/SdkStyleContextProvider.d.ts +8 -0
  5. package/dist/SdkStyleContextProvider.mjs +16 -0
  6. package/dist/StyleAdvanceEditor.d.ts +2 -0
  7. package/dist/StyleAdvanceEditor.mjs +88 -0
  8. package/dist/StyleContext.d.ts +3 -0
  9. package/dist/StyleContext.mjs +5 -0
  10. package/dist/StyleHelper.d.ts +7 -0
  11. package/dist/StyleHelper.mjs +45 -0
  12. package/dist/StyleMap/StyleMap.d.ts +52 -0
  13. package/dist/StyleMap/StyleMap.mjs +61 -0
  14. package/dist/StyleMap/helpers/getStyleItem.d.ts +3 -0
  15. package/dist/StyleMap/helpers/getStyleItem.mjs +5 -0
  16. package/dist/StyleMap/helpers/isValueValid.d.ts +12 -0
  17. package/dist/StyleMap/helpers/isValueValid.mjs +7 -0
  18. package/dist/StyleMap/helpers/utils.d.ts +6 -0
  19. package/dist/StyleMap/helpers/utils.mjs +51 -0
  20. package/dist/StyleMap/index.d.ts +3 -0
  21. package/dist/StyleMap/index.mjs +5 -0
  22. package/dist/StyleMap/methods/addSelector.d.ts +8 -0
  23. package/dist/StyleMap/methods/addSelector.mjs +24 -0
  24. package/dist/StyleMap/methods/updateSelector.d.ts +8 -0
  25. package/dist/StyleMap/methods/updateSelector.mjs +13 -0
  26. package/dist/StyleReducer.d.ts +82 -0
  27. package/dist/StyleReducer.mjs +101 -0
  28. package/dist/_virtual/_rolldown/runtime.mjs +11 -0
  29. package/dist/components/InputEasing/BezierEasing.d.ts +1 -0
  30. package/dist/components/InputEasing/BezierEasing.mjs +34 -0
  31. package/dist/components/InputEasing/Curve.d.ts +9 -0
  32. package/dist/components/InputEasing/Curve.mjs +11 -0
  33. package/dist/components/InputEasing/Grid.d.ts +8 -0
  34. package/dist/components/InputEasing/Grid.mjs +51 -0
  35. package/dist/components/InputEasing/InputEasing.d.ts +31 -0
  36. package/dist/components/InputEasing/InputEasing.mjs +121 -0
  37. package/dist/components/InputEasing/InputEasingButton.d.ts +9 -0
  38. package/dist/components/InputEasing/InputEasingButton.mjs +16 -0
  39. package/dist/components/InputEasing/InputEasingHelper.d.ts +1 -0
  40. package/dist/components/InputEasing/InputEasingHelper.mjs +179 -0
  41. package/dist/components/InputEasing/InputEasingList.d.ts +6 -0
  42. package/dist/components/InputEasing/InputEasingList.mjs +291 -0
  43. package/dist/components/InputEasing/Progress.d.ts +10 -0
  44. package/dist/components/InputEasing/Progress.mjs +15 -0
  45. package/dist/components/InputEasing/index.d.ts +3 -0
  46. package/dist/components/InputEasing/index.mjs +5 -0
  47. package/dist/components/Selector/Selector.d.ts +16 -0
  48. package/dist/components/Selector/Selector.mjs +171 -0
  49. package/dist/components/Selector/SelectorHelper.d.ts +1 -0
  50. package/dist/components/Selector/SelectorHelper.mjs +4 -0
  51. package/dist/components/Selector/SelectorItem/ItemOptions.d.ts +9 -0
  52. package/dist/components/Selector/SelectorItem/ItemOptions.mjs +57 -0
  53. package/dist/components/Selector/SelectorItem/SelectorItem.d.ts +15 -0
  54. package/dist/components/Selector/SelectorItem/SelectorItem.mjs +50 -0
  55. package/dist/components/Selector/SelectorItem/index.d.ts +3 -0
  56. package/dist/components/Selector/SelectorItem/index.mjs +5 -0
  57. package/dist/components/Selector/SelectorSuggestions/SelectorSuggestions.d.ts +9 -0
  58. package/dist/components/Selector/SelectorSuggestions/SelectorSuggestions.mjs +23 -0
  59. package/dist/components/Selector/SelectorSuggestions/SuggestionsCreator.d.ts +7 -0
  60. package/dist/components/Selector/SelectorSuggestions/SuggestionsCreator.mjs +20 -0
  61. package/dist/components/Selector/SelectorSuggestions/SuggestionsList.d.ts +7 -0
  62. package/dist/components/Selector/SelectorSuggestions/SuggestionsList.mjs +25 -0
  63. package/dist/components/Selector/SelectorSuggestions/index.d.ts +3 -0
  64. package/dist/components/Selector/SelectorSuggestions/index.mjs +5 -0
  65. package/dist/components/Selector/index.d.ts +3 -0
  66. package/dist/components/Selector/index.mjs +5 -0
  67. package/dist/components/StyleInspector/Inspector.d.ts +15 -0
  68. package/dist/components/StyleInspector/Inspector.mjs +178 -0
  69. package/dist/components/StyleInspector/StyleInspector.d.ts +21 -0
  70. package/dist/components/StyleInspector/StyleInspector.mjs +201 -0
  71. package/dist/components/StyleInspector/StyleInspectorContext.d.ts +23 -0
  72. package/dist/components/StyleInspector/StyleInspectorContext.mjs +5 -0
  73. package/dist/components/StyleInspector/StyleInspectorProvider.d.ts +17 -0
  74. package/dist/components/StyleInspector/StyleInspectorProvider.mjs +86 -0
  75. package/dist/components/StyleInspector/categories/Background/Background.d.ts +7 -0
  76. package/dist/components/StyleInspector/categories/Background/Background.mjs +142 -0
  77. package/dist/components/StyleInspector/categories/Background/components/BackgroundLayer/BackgroundLayer.d.ts +12 -0
  78. package/dist/components/StyleInspector/categories/Background/components/BackgroundLayer/BackgroundLayer.mjs +171 -0
  79. package/dist/components/StyleInspector/categories/Background/components/BackgroundLayer/index.d.ts +3 -0
  80. package/dist/components/StyleInspector/categories/Background/components/BackgroundLayer/index.mjs +5 -0
  81. package/dist/components/StyleInspector/categories/Background/components/BackgroundPosition/BackgroundPosition.d.ts +7 -0
  82. package/dist/components/StyleInspector/categories/Background/components/BackgroundPosition/BackgroundPosition.mjs +39 -0
  83. package/dist/components/StyleInspector/categories/Background/components/BackgroundPosition/index.d.ts +3 -0
  84. package/dist/components/StyleInspector/categories/Background/components/BackgroundPosition/index.mjs +5 -0
  85. package/dist/components/StyleInspector/categories/Background/components/BackgroundSize/BackgroundSize.d.ts +7 -0
  86. package/dist/components/StyleInspector/categories/Background/components/BackgroundSize/BackgroundSize.mjs +86 -0
  87. package/dist/components/StyleInspector/categories/Background/components/BackgroundSize/index.d.ts +3 -0
  88. package/dist/components/StyleInspector/categories/Background/components/BackgroundSize/index.mjs +5 -0
  89. package/dist/components/StyleInspector/categories/Background/components/BackgroundTile/BackgroundTile.d.ts +7 -0
  90. package/dist/components/StyleInspector/categories/Background/components/BackgroundTile/BackgroundTile.mjs +47 -0
  91. package/dist/components/StyleInspector/categories/Background/components/BackgroundTile/index.d.ts +3 -0
  92. package/dist/components/StyleInspector/categories/Background/components/BackgroundTile/index.mjs +5 -0
  93. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientPreviewBar.d.ts +7 -0
  94. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientPreviewBar.mjs +20 -0
  95. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopBar.d.ts +7 -0
  96. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopBar.mjs +94 -0
  97. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopEditor.d.ts +10 -0
  98. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopEditor.mjs +48 -0
  99. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopHandle.d.ts +11 -0
  100. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopHandle.mjs +44 -0
  101. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopTrack.d.ts +9 -0
  102. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/GradientStopTrack.mjs +27 -0
  103. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/index.d.ts +3 -0
  104. package/dist/components/StyleInspector/categories/Background/components/GradientStopBar/index.mjs +5 -0
  105. package/dist/components/StyleInspector/categories/Background/helpers/backgroundParser.d.ts +56 -0
  106. package/dist/components/StyleInspector/categories/Background/helpers/backgroundParser.mjs +182 -0
  107. package/dist/components/StyleInspector/categories/Background/helpers/normalizeLeft.d.ts +2 -0
  108. package/dist/components/StyleInspector/categories/Background/helpers/normalizeLeft.mjs +10 -0
  109. package/dist/components/StyleInspector/categories/Background/helpers/parseToBgLayers.d.ts +5 -0
  110. package/dist/components/StyleInspector/categories/Background/helpers/parseToBgLayers.mjs +19 -0
  111. package/dist/components/StyleInspector/categories/Background/index.d.ts +3 -0
  112. package/dist/components/StyleInspector/categories/Background/index.mjs +5 -0
  113. package/dist/components/StyleInspector/categories/Background/modes/ConicGradientMode.d.ts +7 -0
  114. package/dist/components/StyleInspector/categories/Background/modes/ConicGradientMode.mjs +100 -0
  115. package/dist/components/StyleInspector/categories/Background/modes/ImageMode.d.ts +7 -0
  116. package/dist/components/StyleInspector/categories/Background/modes/ImageMode.mjs +80 -0
  117. package/dist/components/StyleInspector/categories/Background/modes/LinearGradientMode.d.ts +7 -0
  118. package/dist/components/StyleInspector/categories/Background/modes/LinearGradientMode.mjs +76 -0
  119. package/dist/components/StyleInspector/categories/Background/modes/RadialGradientMode.d.ts +7 -0
  120. package/dist/components/StyleInspector/categories/Background/modes/RadialGradientMode.mjs +120 -0
  121. package/dist/components/StyleInspector/categories/Border/Border.d.ts +7 -0
  122. package/dist/components/StyleInspector/categories/Border/Border.mjs +126 -0
  123. package/dist/components/StyleInspector/categories/Border/BorderColor.d.ts +8 -0
  124. package/dist/components/StyleInspector/categories/Border/BorderColor.mjs +34 -0
  125. package/dist/components/StyleInspector/categories/Border/BorderPlacements.d.ts +7 -0
  126. package/dist/components/StyleInspector/categories/Border/BorderPlacements.mjs +55 -0
  127. package/dist/components/StyleInspector/categories/Border/BorderRadius.d.ts +8 -0
  128. package/dist/components/StyleInspector/categories/Border/BorderRadius.mjs +132 -0
  129. package/dist/components/StyleInspector/categories/Border/BorderStyle.d.ts +8 -0
  130. package/dist/components/StyleInspector/categories/Border/BorderStyle.mjs +63 -0
  131. package/dist/components/StyleInspector/categories/Border/BorderWidth.d.ts +8 -0
  132. package/dist/components/StyleInspector/categories/Border/BorderWidth.mjs +34 -0
  133. package/dist/components/StyleInspector/categories/Border/index.d.ts +3 -0
  134. package/dist/components/StyleInspector/categories/Border/index.mjs +5 -0
  135. package/dist/components/StyleInspector/categories/Display/Display.d.ts +7 -0
  136. package/dist/components/StyleInspector/categories/Display/Display.mjs +120 -0
  137. package/dist/components/StyleInspector/categories/Display/DisplayElements.d.ts +7 -0
  138. package/dist/components/StyleInspector/categories/Display/DisplayElements.mjs +64 -0
  139. package/dist/components/StyleInspector/categories/Display/DisplayFlex.d.ts +8 -0
  140. package/dist/components/StyleInspector/categories/Display/DisplayFlex.mjs +46 -0
  141. package/dist/components/StyleInspector/categories/Display/DisplayFlexAlignContent.d.ts +9 -0
  142. package/dist/components/StyleInspector/categories/Display/DisplayFlexAlignContent.mjs +97 -0
  143. package/dist/components/StyleInspector/categories/Display/DisplayFlexAlignItems.d.ts +9 -0
  144. package/dist/components/StyleInspector/categories/Display/DisplayFlexAlignItems.mjs +102 -0
  145. package/dist/components/StyleInspector/categories/Display/DisplayFlexDirection.d.ts +8 -0
  146. package/dist/components/StyleInspector/categories/Display/DisplayFlexDirection.mjs +46 -0
  147. package/dist/components/StyleInspector/categories/Display/DisplayFlexJustify.d.ts +9 -0
  148. package/dist/components/StyleInspector/categories/Display/DisplayFlexJustify.mjs +88 -0
  149. package/dist/components/StyleInspector/categories/Display/DisplayGap.d.ts +8 -0
  150. package/dist/components/StyleInspector/categories/Display/DisplayGap.mjs +27 -0
  151. package/dist/components/StyleInspector/categories/Display/DisplayGridGap.d.ts +8 -0
  152. package/dist/components/StyleInspector/categories/Display/DisplayGridGap.mjs +27 -0
  153. package/dist/components/StyleInspector/categories/Display/DisplayGridTemplate.d.ts +12 -0
  154. package/dist/components/StyleInspector/categories/Display/DisplayGridTemplate.mjs +83 -0
  155. package/dist/components/StyleInspector/categories/Display/index.d.ts +3 -0
  156. package/dist/components/StyleInspector/categories/Display/index.mjs +5 -0
  157. package/dist/components/StyleInspector/categories/DisplayFlexChild/DisplayAlignSelf.d.ts +8 -0
  158. package/dist/components/StyleInspector/categories/DisplayFlexChild/DisplayAlignSelf.mjs +60 -0
  159. package/dist/components/StyleInspector/categories/DisplayFlexChild/DisplayFlexChild.d.ts +8 -0
  160. package/dist/components/StyleInspector/categories/DisplayFlexChild/DisplayFlexChild.mjs +125 -0
  161. package/dist/components/StyleInspector/categories/DisplayFlexChild/DisplayOrder.d.ts +7 -0
  162. package/dist/components/StyleInspector/categories/DisplayFlexChild/DisplayOrder.mjs +51 -0
  163. package/dist/components/StyleInspector/categories/DisplayFlexChild/index.d.ts +3 -0
  164. package/dist/components/StyleInspector/categories/DisplayFlexChild/index.mjs +5 -0
  165. package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadow.d.ts +7 -0
  166. package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadow.mjs +37 -0
  167. package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadowItem.d.ts +8 -0
  168. package/dist/components/StyleInspector/categories/Effects/BoxShadow/BoxShadowItem.mjs +130 -0
  169. package/dist/components/StyleInspector/categories/Effects/BoxShadow/index.d.ts +3 -0
  170. package/dist/components/StyleInspector/categories/Effects/BoxShadow/index.mjs +5 -0
  171. package/dist/components/StyleInspector/categories/Effects/Effects.d.ts +7 -0
  172. package/dist/components/StyleInspector/categories/Effects/Effects.mjs +247 -0
  173. package/dist/components/StyleInspector/categories/Effects/Filters/Filter.d.ts +7 -0
  174. package/dist/components/StyleInspector/categories/Effects/Filters/Filter.mjs +37 -0
  175. package/dist/components/StyleInspector/categories/Effects/Filters/FilterItem.d.ts +8 -0
  176. package/dist/components/StyleInspector/categories/Effects/Filters/FilterItem.mjs +129 -0
  177. package/dist/components/StyleInspector/categories/Effects/Filters/index.d.ts +3 -0
  178. package/dist/components/StyleInspector/categories/Effects/Filters/index.mjs +5 -0
  179. package/dist/components/StyleInspector/categories/Effects/Transform/Transform.d.ts +7 -0
  180. package/dist/components/StyleInspector/categories/Effects/Transform/Transform.mjs +37 -0
  181. package/dist/components/StyleInspector/categories/Effects/Transform/TransformItem.d.ts +8 -0
  182. package/dist/components/StyleInspector/categories/Effects/Transform/TransformItem.mjs +148 -0
  183. package/dist/components/StyleInspector/categories/Effects/Transform/index.d.ts +3 -0
  184. package/dist/components/StyleInspector/categories/Effects/Transform/index.mjs +5 -0
  185. package/dist/components/StyleInspector/categories/Effects/Transition/Transition.d.ts +7 -0
  186. package/dist/components/StyleInspector/categories/Effects/Transition/Transition.mjs +41 -0
  187. package/dist/components/StyleInspector/categories/Effects/Transition/TransitionItem.d.ts +8 -0
  188. package/dist/components/StyleInspector/categories/Effects/Transition/TransitionItem.mjs +365 -0
  189. package/dist/components/StyleInspector/categories/Effects/Transition/index.d.ts +3 -0
  190. package/dist/components/StyleInspector/categories/Effects/Transition/index.mjs +5 -0
  191. package/dist/components/StyleInspector/categories/Effects/index.d.ts +3 -0
  192. package/dist/components/StyleInspector/categories/Effects/index.mjs +5 -0
  193. package/dist/components/StyleInspector/categories/List/List.d.ts +7 -0
  194. package/dist/components/StyleInspector/categories/List/List.mjs +82 -0
  195. package/dist/components/StyleInspector/categories/List/index.d.ts +3 -0
  196. package/dist/components/StyleInspector/categories/List/index.mjs +5 -0
  197. package/dist/components/StyleInspector/categories/ListItem/ListItem.d.ts +7 -0
  198. package/dist/components/StyleInspector/categories/ListItem/ListItem.mjs +82 -0
  199. package/dist/components/StyleInspector/categories/ListItem/index.d.ts +3 -0
  200. package/dist/components/StyleInspector/categories/ListItem/index.mjs +5 -0
  201. package/dist/components/StyleInspector/categories/Position/Position.d.ts +7 -0
  202. package/dist/components/StyleInspector/categories/Position/Position.mjs +129 -0
  203. package/dist/components/StyleInspector/categories/Position/PositionAdvanced.d.ts +7 -0
  204. package/dist/components/StyleInspector/categories/Position/PositionAdvanced.mjs +88 -0
  205. package/dist/components/StyleInspector/categories/Position/PositionAdvancedButtons.d.ts +7 -0
  206. package/dist/components/StyleInspector/categories/Position/PositionAdvancedButtons.mjs +132 -0
  207. package/dist/components/StyleInspector/categories/Position/PositionClear.d.ts +7 -0
  208. package/dist/components/StyleInspector/categories/Position/PositionClear.mjs +45 -0
  209. package/dist/components/StyleInspector/categories/Position/PositionFloat.d.ts +7 -0
  210. package/dist/components/StyleInspector/categories/Position/PositionFloat.mjs +38 -0
  211. package/dist/components/StyleInspector/categories/Position/index.d.ts +3 -0
  212. package/dist/components/StyleInspector/categories/Position/index.mjs +5 -0
  213. package/dist/components/StyleInspector/categories/RawStyle/RawStyle.d.ts +8 -0
  214. package/dist/components/StyleInspector/categories/RawStyle/RawStyle.mjs +27 -0
  215. package/dist/components/StyleInspector/categories/RawStyle/index.d.ts +3 -0
  216. package/dist/components/StyleInspector/categories/RawStyle/index.mjs +5 -0
  217. package/dist/components/StyleInspector/categories/Size/Size.d.ts +7 -0
  218. package/dist/components/StyleInspector/categories/Size/Size.mjs +101 -0
  219. package/dist/components/StyleInspector/categories/Size/SizeFit.d.ts +7 -0
  220. package/dist/components/StyleInspector/categories/Size/SizeFit.mjs +39 -0
  221. package/dist/components/StyleInspector/categories/Size/SizeOverflow.d.ts +7 -0
  222. package/dist/components/StyleInspector/categories/Size/SizeOverflow.mjs +49 -0
  223. package/dist/components/StyleInspector/categories/Size/SizePosition.d.ts +7 -0
  224. package/dist/components/StyleInspector/categories/Size/SizePosition.mjs +30 -0
  225. package/dist/components/StyleInspector/categories/Size/index.d.ts +3 -0
  226. package/dist/components/StyleInspector/categories/Size/index.mjs +5 -0
  227. package/dist/components/StyleInspector/categories/Spacing/Spacing.d.ts +7 -0
  228. package/dist/components/StyleInspector/categories/Spacing/Spacing.mjs +72 -0
  229. package/dist/components/StyleInspector/categories/Spacing/SpacingEditor.d.ts +8 -0
  230. package/dist/components/StyleInspector/categories/Spacing/SpacingEditor.mjs +155 -0
  231. package/dist/components/StyleInspector/categories/Spacing/SpacingMargin.d.ts +19 -0
  232. package/dist/components/StyleInspector/categories/Spacing/SpacingMargin.mjs +72 -0
  233. package/dist/components/StyleInspector/categories/Spacing/SpacingNumber.d.ts +8 -0
  234. package/dist/components/StyleInspector/categories/Spacing/SpacingNumber.mjs +17 -0
  235. package/dist/components/StyleInspector/categories/Spacing/SpacingPadding.d.ts +15 -0
  236. package/dist/components/StyleInspector/categories/Spacing/SpacingPadding.mjs +69 -0
  237. package/dist/components/StyleInspector/categories/Spacing/index.d.ts +3 -0
  238. package/dist/components/StyleInspector/categories/Spacing/index.mjs +5 -0
  239. package/dist/components/StyleInspector/categories/Typography/Typography.d.ts +11 -0
  240. package/dist/components/StyleInspector/categories/Typography/Typography.mjs +224 -0
  241. package/dist/components/StyleInspector/categories/Typography/TypographyAlign.d.ts +7 -0
  242. package/dist/components/StyleInspector/categories/Typography/TypographyAlign.mjs +41 -0
  243. package/dist/components/StyleInspector/categories/Typography/TypographyConstants.d.ts +5 -0
  244. package/dist/components/StyleInspector/categories/Typography/TypographyConstants.mjs +172 -0
  245. package/dist/components/StyleInspector/categories/Typography/TypographyFont.d.ts +10 -0
  246. package/dist/components/StyleInspector/categories/Typography/TypographyFont.mjs +22 -0
  247. package/dist/components/StyleInspector/categories/Typography/TypographyStyle.d.ts +8 -0
  248. package/dist/components/StyleInspector/categories/Typography/TypographyStyle.mjs +64 -0
  249. package/dist/components/StyleInspector/categories/Typography/TypographyTextShadow.d.ts +7 -0
  250. package/dist/components/StyleInspector/categories/Typography/TypographyTextShadow.mjs +43 -0
  251. package/dist/components/StyleInspector/categories/Typography/TypographyTextShadowItem.d.ts +8 -0
  252. package/dist/components/StyleInspector/categories/Typography/TypographyTextShadowItem.mjs +83 -0
  253. package/dist/components/StyleInspector/categories/Typography/TypographyTransform.d.ts +8 -0
  254. package/dist/components/StyleInspector/categories/Typography/TypographyTransform.mjs +68 -0
  255. package/dist/components/StyleInspector/categories/Typography/index.d.ts +3 -0
  256. package/dist/components/StyleInspector/categories/Typography/index.mjs +5 -0
  257. package/dist/components/StyleInspector/categories/Variables/Variables.d.ts +7 -0
  258. package/dist/components/StyleInspector/categories/Variables/Variables.mjs +55 -0
  259. package/dist/components/StyleInspector/categories/Variables/index.d.ts +3 -0
  260. package/dist/components/StyleInspector/categories/Variables/index.mjs +5 -0
  261. package/dist/components/StyleInspector/components/CategoryContainer/CategoryContainer.d.ts +13 -0
  262. package/dist/components/StyleInspector/components/CategoryContainer/CategoryContainer.mjs +27 -0
  263. package/dist/components/StyleInspector/components/CategoryContainer/index.d.ts +3 -0
  264. package/dist/components/StyleInspector/components/CategoryContainer/index.mjs +5 -0
  265. package/dist/components/StyleInspector/components/CategoryOption/CategoryOption.d.ts +39 -0
  266. package/dist/components/StyleInspector/components/CategoryOption/CategoryOption.mjs +30 -0
  267. package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionColor.d.ts +8 -0
  268. package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionColor.mjs +16 -0
  269. package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionIconGroup.d.ts +15 -0
  270. package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionIconGroup.mjs +27 -0
  271. package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionInput.d.ts +8 -0
  272. package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionInput.mjs +14 -0
  273. package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionMetricInput.d.ts +18 -0
  274. package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionMetricInput.mjs +69 -0
  275. package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionSelect.d.ts +10 -0
  276. package/dist/components/StyleInspector/components/CategoryOption/categoryTypes/OptionSelect.mjs +13 -0
  277. package/dist/components/StyleInspector/components/CategoryOption/index.d.ts +3 -0
  278. package/dist/components/StyleInspector/components/CategoryOption/index.mjs +5 -0
  279. package/dist/components/StyleInspector/components/CategorySection/CategorySection.d.ts +12 -0
  280. package/dist/components/StyleInspector/components/CategorySection/CategorySection.mjs +18 -0
  281. package/dist/components/StyleInspector/components/CategorySection/index.d.ts +3 -0
  282. package/dist/components/StyleInspector/components/CategorySection/index.mjs +5 -0
  283. package/dist/components/StyleInspector/components/InspectorDots/InspectorDots.d.ts +6 -0
  284. package/dist/components/StyleInspector/components/InspectorDots/InspectorDots.mjs +32 -0
  285. package/dist/components/StyleInspector/components/InspectorDots/index.d.ts +3 -0
  286. package/dist/components/StyleInspector/components/InspectorDots/index.mjs +5 -0
  287. package/dist/components/StyleInspector/components/InspectorLabel/InspectorLabel.d.ts +11 -0
  288. package/dist/components/StyleInspector/components/InspectorLabel/InspectorLabel.mjs +40 -0
  289. package/dist/components/StyleInspector/components/InspectorLabel/index.d.ts +3 -0
  290. package/dist/components/StyleInspector/components/InspectorLabel/index.mjs +5 -0
  291. package/dist/components/StyleInspector/hooks/useInspectorValues.d.ts +21 -0
  292. package/dist/components/StyleInspector/hooks/useInspectorValues.mjs +55 -0
  293. package/dist/components/StyleInspector/hooks/useStyleBinding.d.ts +6 -0
  294. package/dist/components/StyleInspector/hooks/useStyleBinding.mjs +20 -0
  295. package/dist/components/StyleInspector/hooks/useStyleInherit.d.ts +12 -0
  296. package/dist/components/StyleInspector/hooks/useStyleInherit.mjs +33 -0
  297. package/dist/components/StyleInspector/index.d.ts +3 -0
  298. package/dist/components/StyleInspector/index.mjs +5 -0
  299. package/dist/components/StyleManager/ManagerSelector.d.ts +11 -0
  300. package/dist/components/StyleManager/ManagerSelector.mjs +137 -0
  301. package/dist/components/StyleManager/StyleManager.d.ts +2 -0
  302. package/dist/components/StyleManager/StyleManager.mjs +47 -0
  303. package/dist/components/StyleManager/StyleSelectorTag.d.ts +12 -0
  304. package/dist/components/StyleManager/StyleSelectorTag.mjs +43 -0
  305. package/dist/components/StyleManager/index.d.ts +3 -0
  306. package/dist/components/StyleManager/index.mjs +5 -0
  307. package/dist/components/index.d.ts +3 -0
  308. package/dist/components/index.mjs +6 -0
  309. package/dist/helpers/calculateInheriting.d.ts +121 -0
  310. package/dist/helpers/calculateInheriting.mjs +141 -0
  311. package/dist/helpers/formatCssFromSelector.d.ts +8 -0
  312. package/dist/helpers/formatCssFromSelector.mjs +54 -0
  313. package/dist/helpers/generateStyleSelector.d.ts +9 -0
  314. package/dist/helpers/generateStyleSelector.mjs +19 -0
  315. package/dist/helpers/index.d.ts +10 -0
  316. package/dist/helpers/index.mjs +18 -0
  317. package/dist/helpers/processCssTokens.d.ts +8 -0
  318. package/dist/helpers/processCssTokens.mjs +16 -0
  319. package/dist/helpers/processSelector.d.ts +4 -0
  320. package/dist/helpers/processSelector.mjs +39 -0
  321. package/dist/helpers/processSelectorAttributes.d.ts +17 -0
  322. package/dist/helpers/processSelectorAttributes.mjs +94 -0
  323. package/dist/helpers/processSelectorName.d.ts +3 -0
  324. package/dist/helpers/processSelectorName.mjs +19 -0
  325. package/dist/helpers/processSelectorVariables.d.ts +7 -0
  326. package/dist/helpers/processSelectorVariables.mjs +30 -0
  327. package/dist/index.d.ts +18 -0
  328. package/dist/index.mjs +16 -0
  329. package/dist/models/SelectorForm/SelectorForm.d.ts +21 -0
  330. package/dist/models/SelectorForm/SelectorForm.mjs +73 -0
  331. package/dist/models/SelectorForm/index.d.ts +3 -0
  332. package/dist/models/SelectorForm/index.mjs +5 -0
  333. package/package.json +849 -0
@@ -0,0 +1,64 @@
1
+ import e from "../../components/CategoryOption/index.mjs";
2
+ import t from "../../components/CategorySection/index.mjs";
3
+ import { useCallback as n, useMemo as r } from "react";
4
+ import { jsx as i } from "react/jsx-runtime";
5
+ import a from "@plitzi/plitzi-ui/icons/DisplayBlock";
6
+ import o from "@plitzi/plitzi-ui/icons/DisplayFlex";
7
+ import s from "@plitzi/plitzi-ui/icons/DisplayGrid";
8
+ import c from "@plitzi/plitzi-ui/icons/DisplayInline";
9
+ import l from "@plitzi/plitzi-ui/icons/DisplayInlineBlock";
10
+ //#region src/components/StyleInspector/categories/Display/DisplayElements.tsx
11
+ var u = [
12
+ "display",
13
+ "flex-direction",
14
+ "align-items",
15
+ "justify-content",
16
+ "flex-wrap"
17
+ ], d = ({ value: d = "block", onChange: f }) => /* @__PURE__ */ i(t, {
18
+ keys: u,
19
+ label: "Display",
20
+ children: /* @__PURE__ */ i(e, {
21
+ onChange: n((e) => f?.("display", e), [f]),
22
+ type: "iconGroup",
23
+ items: r(() => [
24
+ {
25
+ value: "block",
26
+ icon: /* @__PURE__ */ i(a, {}),
27
+ description: "Block elements start on a new line and take up the full available width.",
28
+ active: d === "block"
29
+ },
30
+ {
31
+ value: "flex",
32
+ icon: /* @__PURE__ */ i(o, {}),
33
+ description: "Flex lays out its child elements on a horizontal or vertical axis.",
34
+ active: d === "flex"
35
+ },
36
+ {
37
+ value: "grid",
38
+ icon: /* @__PURE__ */ i(s, {}),
39
+ description: "Grid lets place you items within rows and columns.",
40
+ active: d === "grid"
41
+ },
42
+ {
43
+ value: "inline-block",
44
+ icon: /* @__PURE__ */ i(l, {}),
45
+ description: "Inline-block behaves like inline, but accepts width and height properties.",
46
+ active: d === "inline-block"
47
+ },
48
+ {
49
+ value: "inline",
50
+ icon: /* @__PURE__ */ i(c, {}),
51
+ description: "Inline is the default for text content. The text's font size and line height determine its size",
52
+ active: d === "inline"
53
+ },
54
+ {
55
+ value: "none",
56
+ icon: "fa-solid fa-eye-slash",
57
+ description: "None hides elements.",
58
+ active: d === "none"
59
+ }
60
+ ], [d])
61
+ })
62
+ });
63
+ //#endregion
64
+ export { d as default };
@@ -0,0 +1,8 @@
1
+ import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
2
+ export type DisplayFlexProps = {
3
+ value?: StyleValue;
4
+ isReverse: boolean;
5
+ onChange?: (type: StyleCategory, value: StyleValue) => void;
6
+ };
7
+ declare const DisplayFlex: ({ value, isReverse, onChange }: DisplayFlexProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default DisplayFlex;
@@ -0,0 +1,46 @@
1
+ import e from "../../components/CategoryOption/index.mjs";
2
+ import t from "../../components/CategorySection/index.mjs";
3
+ import { useCallback as n, useMemo as r } from "react";
4
+ import { jsx as i } from "react/jsx-runtime";
5
+ import a from "@plitzi/plitzi-ui/icons/ArrowReverse";
6
+ //#region src/components/StyleInspector/categories/Display/DisplayFlex.tsx
7
+ var o = ["flex-wrap"], s = ({ value: s, isReverse: c = !1, onChange: l }) => /* @__PURE__ */ i(t, {
8
+ label: "Children",
9
+ keys: o,
10
+ children: /* @__PURE__ */ i(e, {
11
+ onChange: n((e) => {
12
+ typeof e == "boolean" ? e ? l?.("flex-wrap", `${s}-reverse`) : l?.("flex-wrap", s.replace("-reverse", "")) : l?.("flex-wrap", e);
13
+ }, [l, s]),
14
+ type: "iconGroup",
15
+ items: r(() => [
16
+ {
17
+ value: c ? "nowrap-reverse" : "nowrap",
18
+ icon: /* @__PURE__ */ i("div", {
19
+ className: "px-1 text-xs whitespace-nowrap select-none",
20
+ children: "Don't Wrap"
21
+ }),
22
+ description: "",
23
+ active: s === "nowrap" || s === "nowrap-reverse",
24
+ size: "custom"
25
+ },
26
+ {
27
+ value: c ? "wrap-reverse" : "wrap",
28
+ icon: /* @__PURE__ */ i("div", {
29
+ className: "px-1 text-xs select-none",
30
+ children: "Wrap"
31
+ }),
32
+ description: "",
33
+ active: s === "wrap" || s === "wrap-reverse",
34
+ size: "custom"
35
+ },
36
+ {
37
+ value: !c,
38
+ icon: /* @__PURE__ */ i(a, {}),
39
+ description: "Reverse Wrap",
40
+ active: c
41
+ }
42
+ ], [s, c])
43
+ })
44
+ });
45
+ //#endregion
46
+ export { s as default };
@@ -0,0 +1,9 @@
1
+ import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
2
+ export type DisplayFlexAlignContentProps = {
3
+ value?: StyleValue;
4
+ isReverse?: boolean;
5
+ isRow?: boolean;
6
+ onChange?: (type: StyleCategory, value: StyleValue) => void;
7
+ };
8
+ declare const DisplayFlexAlignContent: ({ value, isReverse, isRow, onChange }: DisplayFlexAlignContentProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default DisplayFlexAlignContent;
@@ -0,0 +1,97 @@
1
+ import e from "../../components/CategoryOption/index.mjs";
2
+ import t from "../../components/CategorySection/index.mjs";
3
+ import { useCallback as n, useMemo as r } from "react";
4
+ import { jsx as i } from "react/jsx-runtime";
5
+ import a from "@plitzi/plitzi-ui/icons/AlignContentCenterColumn";
6
+ import o from "@plitzi/plitzi-ui/icons/AlignContentCenterRow";
7
+ import s from "@plitzi/plitzi-ui/icons/AlignContentEndColumn";
8
+ import c from "@plitzi/plitzi-ui/icons/AlignContentEndReverseColumn";
9
+ import l from "@plitzi/plitzi-ui/icons/AlignContentEndReverseRow";
10
+ import u from "@plitzi/plitzi-ui/icons/AlignContentEndRow";
11
+ import d from "@plitzi/plitzi-ui/icons/AlignContentSpaceAroundColumn";
12
+ import f from "@plitzi/plitzi-ui/icons/AlignContentSpaceAroundRow";
13
+ import p from "@plitzi/plitzi-ui/icons/AlignContentSpaceBetweenColumn";
14
+ import m from "@plitzi/plitzi-ui/icons/AlignContentSpaceBetweenRow";
15
+ import h from "@plitzi/plitzi-ui/icons/AlignContentStartColumn";
16
+ import g from "@plitzi/plitzi-ui/icons/AlignContentStartReverseColumn";
17
+ import _ from "@plitzi/plitzi-ui/icons/AlignContentStartReverseRow";
18
+ import v from "@plitzi/plitzi-ui/icons/AlignContentStartRow";
19
+ import y from "@plitzi/plitzi-ui/icons/AlignContentStretchColumn";
20
+ import b from "@plitzi/plitzi-ui/icons/AlignContentStretchRow";
21
+ //#region src/components/StyleInspector/categories/Display/DisplayFlexAlignContent.tsx
22
+ var x = ["align-content"], S = ({ value: S, isReverse: C = !1, isRow: w = !1, onChange: T }) => {
23
+ let E = n((e) => T?.("align-content", e), [T]), D = n((e, t, n) => {
24
+ switch (e) {
25
+ case "flex-start":
26
+ if (t && !n) return /* @__PURE__ */ i(v, {});
27
+ if (t && n) return /* @__PURE__ */ i(_, {});
28
+ if (!t && !n) return /* @__PURE__ */ i(h, {});
29
+ if (!t && n) return /* @__PURE__ */ i(g, {});
30
+ break;
31
+ case "center": return i(t ? o : a, {});
32
+ case "flex-end":
33
+ if (t && !n) return /* @__PURE__ */ i(u, {});
34
+ if (t && n) return /* @__PURE__ */ i(l, {});
35
+ if (!t && !n) return /* @__PURE__ */ i(s, {});
36
+ if (!t && n) return /* @__PURE__ */ i(c, {});
37
+ break;
38
+ case "stretch": return i(t ? b : y, {});
39
+ case "space-between": return i(t ? m : p, {});
40
+ case "space-around": return i(t ? f : d, {});
41
+ default: return;
42
+ }
43
+ }, []);
44
+ return /* @__PURE__ */ i(t, {
45
+ keys: x,
46
+ label: "Align",
47
+ children: /* @__PURE__ */ i(e, {
48
+ onChange: E,
49
+ type: "iconGroup",
50
+ items: r(() => [
51
+ {
52
+ value: "flex-start",
53
+ icon: D("flex-start", w, C),
54
+ description: "Align Rows: Start",
55
+ active: S === "flex-start"
56
+ },
57
+ {
58
+ value: "center",
59
+ icon: D("center", w, C),
60
+ description: "Align Rows: Center",
61
+ active: S === "center"
62
+ },
63
+ {
64
+ value: "flex-end",
65
+ icon: D("flex-end", w, C),
66
+ description: "Align Rows: End",
67
+ active: S === "flex-end"
68
+ },
69
+ {
70
+ value: "stretch",
71
+ icon: D("stretch", w, C),
72
+ description: "Align Rows: Stretch",
73
+ active: S === "stretch"
74
+ },
75
+ {
76
+ value: "space-between",
77
+ icon: D("space-between", w, C),
78
+ description: "Align Rows: Space Between",
79
+ active: S === "space-between"
80
+ },
81
+ {
82
+ value: "space-around",
83
+ icon: D("space-around", w, C),
84
+ description: "Align Rows: Space Around",
85
+ active: S === "space-around"
86
+ }
87
+ ], [
88
+ D,
89
+ w,
90
+ C,
91
+ S
92
+ ])
93
+ })
94
+ });
95
+ };
96
+ //#endregion
97
+ export { S as default };
@@ -0,0 +1,9 @@
1
+ import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
2
+ export type DisplayFlexAlignItemsProps = {
3
+ value?: StyleValue;
4
+ isReverse: boolean;
5
+ isRow: boolean;
6
+ onChange?: (type: StyleCategory, value: StyleValue) => void;
7
+ };
8
+ declare const DisplayFlexAlignItems: ({ value, isReverse, isRow, onChange }: DisplayFlexAlignItemsProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default DisplayFlexAlignItems;
@@ -0,0 +1,102 @@
1
+ import e from "../../components/CategoryOption/index.mjs";
2
+ import t from "../../components/CategorySection/index.mjs";
3
+ import { useCallback as n, useMemo as r } from "react";
4
+ import { jsx as i } from "react/jsx-runtime";
5
+ import a from "@plitzi/plitzi-ui/icons/AlignItemsBaselineColumn";
6
+ import o from "@plitzi/plitzi-ui/icons/AlignItemsBaselineColumnReverse";
7
+ import s from "@plitzi/plitzi-ui/icons/AlignItemsBaselineRow";
8
+ import c from "@plitzi/plitzi-ui/icons/AlignItemsBaselineRowReverse";
9
+ import l from "@plitzi/plitzi-ui/icons/AlignItemsCenterColumn";
10
+ import u from "@plitzi/plitzi-ui/icons/AlignItemsCenterColumnReverse";
11
+ import d from "@plitzi/plitzi-ui/icons/AlignItemsCenterRow";
12
+ import f from "@plitzi/plitzi-ui/icons/AlignItemsCenterRowReverse";
13
+ import p from "@plitzi/plitzi-ui/icons/AlignItemsEndColumn";
14
+ import m from "@plitzi/plitzi-ui/icons/AlignItemsEndColumnReverse";
15
+ import h from "@plitzi/plitzi-ui/icons/AlignItemsEndRow";
16
+ import g from "@plitzi/plitzi-ui/icons/AlignItemsEndRowReverse";
17
+ import _ from "@plitzi/plitzi-ui/icons/AlignItemsStartColumn";
18
+ import v from "@plitzi/plitzi-ui/icons/AlignItemsStartColumnReverse";
19
+ import y from "@plitzi/plitzi-ui/icons/AlignItemsStartRow";
20
+ import b from "@plitzi/plitzi-ui/icons/AlignItemsStartRowReverse";
21
+ import x from "@plitzi/plitzi-ui/icons/AlignItemsStretchColumn";
22
+ import S from "@plitzi/plitzi-ui/icons/AlignItemsStretchRow";
23
+ //#region src/components/StyleInspector/categories/Display/DisplayFlexAlignItems.tsx
24
+ var C = ["align-items"], w = ({ value: w, isReverse: T = !1, isRow: E = !1, onChange: D }) => {
25
+ let O = n((e) => D?.("align-items", e), [D]), k = n((e, t, n) => {
26
+ switch (e) {
27
+ case "flex-start":
28
+ if (t && !n) return /* @__PURE__ */ i(y, {});
29
+ if (t && n) return /* @__PURE__ */ i(b, {});
30
+ if (!t && !n) return /* @__PURE__ */ i(_, {});
31
+ if (!t && n) return /* @__PURE__ */ i(v, {});
32
+ break;
33
+ case "center":
34
+ if (t && !n) return /* @__PURE__ */ i(d, {});
35
+ if (t && n) return /* @__PURE__ */ i(f, {});
36
+ if (!t && !n) return /* @__PURE__ */ i(l, {});
37
+ if (!t && n) return /* @__PURE__ */ i(u, {});
38
+ break;
39
+ case "flex-end":
40
+ if (t && !n) return /* @__PURE__ */ i(h, {});
41
+ if (t && n) return /* @__PURE__ */ i(g, {});
42
+ if (!t && !n) return /* @__PURE__ */ i(p, {});
43
+ if (!t && n) return /* @__PURE__ */ i(m, {});
44
+ break;
45
+ case "stretch": return i(t ? S : x, {});
46
+ case "baseline":
47
+ if (t && !n) return /* @__PURE__ */ i(s, {});
48
+ if (t && n) return /* @__PURE__ */ i(c, {});
49
+ if (!t && !n) return /* @__PURE__ */ i(a, {});
50
+ if (!t && n) return /* @__PURE__ */ i(o, {});
51
+ break;
52
+ default: return;
53
+ }
54
+ }, []);
55
+ return /* @__PURE__ */ i(t, {
56
+ keys: C,
57
+ label: "Align",
58
+ children: /* @__PURE__ */ i(e, {
59
+ onChange: O,
60
+ type: "iconGroup",
61
+ items: r(() => [
62
+ {
63
+ value: "flex-start",
64
+ icon: k("flex-start", E, T),
65
+ description: "Align Start",
66
+ active: w === "flex-start"
67
+ },
68
+ {
69
+ value: "center",
70
+ icon: k("center", E, T),
71
+ description: "Align Center",
72
+ active: w === "center"
73
+ },
74
+ {
75
+ value: "flex-end",
76
+ icon: k("flex-end", E, T),
77
+ description: "Align End",
78
+ active: w === "flex-end"
79
+ },
80
+ {
81
+ value: "stretch",
82
+ icon: k("stretch", E, T),
83
+ description: "Align Stretch",
84
+ active: w === "stretch"
85
+ },
86
+ {
87
+ value: "baseline",
88
+ icon: k("baseline", E, T),
89
+ description: "Align Baseline",
90
+ active: w === "space-between"
91
+ }
92
+ ], [
93
+ w,
94
+ T,
95
+ E,
96
+ k
97
+ ])
98
+ })
99
+ });
100
+ };
101
+ //#endregion
102
+ export { w as default };
@@ -0,0 +1,8 @@
1
+ import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
2
+ export type DisplayFlexDirectionProps = {
3
+ value?: StyleValue;
4
+ isReverse: boolean;
5
+ onChange?: (type: StyleCategory, value: StyleValue) => void;
6
+ };
7
+ declare const DisplayFlexDirection: ({ value, isReverse, onChange }: DisplayFlexDirectionProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default DisplayFlexDirection;
@@ -0,0 +1,46 @@
1
+ import e from "../../components/CategoryOption/index.mjs";
2
+ import t from "../../components/CategorySection/index.mjs";
3
+ import { useCallback as n, useMemo as r } from "react";
4
+ import { jsx as i } from "react/jsx-runtime";
5
+ import a from "@plitzi/plitzi-ui/icons/ArrowReverse";
6
+ //#region src/components/StyleInspector/categories/Display/DisplayFlexDirection.tsx
7
+ var o = ["flex-direction"], s = ({ value: s = "row", isReverse: c = !1, onChange: l }) => /* @__PURE__ */ i(t, {
8
+ keys: o,
9
+ label: "Direction",
10
+ children: /* @__PURE__ */ i(e, {
11
+ onChange: n((e) => {
12
+ typeof e == "boolean" ? e ? l?.("flex-direction", `${s}-reverse`) : l?.("flex-direction", s.replace("-reverse", "")) : l?.("flex-direction", e);
13
+ }, [l, s]),
14
+ type: "iconGroup",
15
+ items: r(() => [
16
+ {
17
+ value: c ? "row-reverse" : "row",
18
+ icon: /* @__PURE__ */ i("div", {
19
+ className: "px-1 text-xs select-none",
20
+ children: "Horizontal"
21
+ }),
22
+ description: "",
23
+ active: s === "row" || s === "row-reverse",
24
+ size: "custom"
25
+ },
26
+ {
27
+ value: c ? "column-reverse" : "column",
28
+ icon: /* @__PURE__ */ i("div", {
29
+ className: "px-1 text-xs select-none",
30
+ children: "Vertical"
31
+ }),
32
+ description: "",
33
+ active: s === "column" || s === "column-reverse",
34
+ size: "custom"
35
+ },
36
+ {
37
+ value: !c,
38
+ icon: /* @__PURE__ */ i(a, {}),
39
+ description: "Reverse Direction",
40
+ active: c
41
+ }
42
+ ], [s, c])
43
+ })
44
+ });
45
+ //#endregion
46
+ export { s as default };
@@ -0,0 +1,9 @@
1
+ import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
2
+ export type DisplayFlexJustifyProps = {
3
+ value?: StyleValue;
4
+ isReverse: boolean;
5
+ isRow: boolean;
6
+ onChange?: (type: StyleCategory, value: StyleValue) => void;
7
+ };
8
+ declare const DisplayFlexJustify: ({ value, isReverse, isRow, onChange }: DisplayFlexJustifyProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default DisplayFlexJustify;
@@ -0,0 +1,88 @@
1
+ import e from "../../components/CategoryOption/index.mjs";
2
+ import t from "../../components/CategorySection/index.mjs";
3
+ import { useCallback as n, useMemo as r } from "react";
4
+ import { jsx as i } from "react/jsx-runtime";
5
+ import a from "@plitzi/plitzi-ui/icons/JustifyContentCenterColumn";
6
+ import o from "@plitzi/plitzi-ui/icons/JustifyContentCenterRow";
7
+ import s from "@plitzi/plitzi-ui/icons/JustifyContentEndColumn";
8
+ import c from "@plitzi/plitzi-ui/icons/JustifyContentEndColumnReverse";
9
+ import l from "@plitzi/plitzi-ui/icons/JustifyContentEndRow";
10
+ import u from "@plitzi/plitzi-ui/icons/JustifyContentEndRowReverse";
11
+ import d from "@plitzi/plitzi-ui/icons/JustifyContentSpaceAroundColumn";
12
+ import f from "@plitzi/plitzi-ui/icons/JustifyContentSpaceAroundRow";
13
+ import p from "@plitzi/plitzi-ui/icons/JustifyContentSpaceBetweenColumn";
14
+ import m from "@plitzi/plitzi-ui/icons/JustifyContentSpaceBetweenRow";
15
+ import h from "@plitzi/plitzi-ui/icons/JustifyContentStartColumn";
16
+ import g from "@plitzi/plitzi-ui/icons/JustifyContentStartColumnReverse";
17
+ import _ from "@plitzi/plitzi-ui/icons/JustifyContentStartRow";
18
+ import v from "@plitzi/plitzi-ui/icons/JustifyContentStartRowReverse";
19
+ //#region src/components/StyleInspector/categories/Display/DisplayFlexJustify.tsx
20
+ var y = ["justify-content"], b = ({ value: b, isReverse: x = !1, isRow: S = !1, onChange: C }) => {
21
+ let w = n((e) => C?.("justify-content", e), [C]), T = n((e, t, n) => {
22
+ switch (e) {
23
+ case "flex-start":
24
+ if (t && !n) return /* @__PURE__ */ i(_, {});
25
+ if (t && n) return /* @__PURE__ */ i(v, {});
26
+ if (!t && !n) return /* @__PURE__ */ i(h, {});
27
+ if (!t && n) return /* @__PURE__ */ i(g, {});
28
+ break;
29
+ case "center": return i(t ? o : a, {});
30
+ case "flex-end":
31
+ if (t && !n) return /* @__PURE__ */ i(l, {});
32
+ if (t && n) return /* @__PURE__ */ i(u, {});
33
+ if (!t && !n) return /* @__PURE__ */ i(s, {});
34
+ if (!t && n) return /* @__PURE__ */ i(c, {});
35
+ break;
36
+ case "space-between": return i(t ? m : p, {});
37
+ case "space-around": return i(t ? f : d, {});
38
+ default: return;
39
+ }
40
+ }, []);
41
+ return /* @__PURE__ */ i(t, {
42
+ label: "Justify",
43
+ keys: y,
44
+ children: /* @__PURE__ */ i(e, {
45
+ onChange: w,
46
+ type: "iconGroup",
47
+ items: r(() => [
48
+ {
49
+ value: "flex-start",
50
+ icon: T("flex-start", S, x),
51
+ description: "Justify Start",
52
+ active: b === "flex-start"
53
+ },
54
+ {
55
+ value: "center",
56
+ icon: T("center", S, x),
57
+ description: "Justify Center",
58
+ active: b === "center"
59
+ },
60
+ {
61
+ value: "flex-end",
62
+ icon: T("flex-end", S, x),
63
+ description: "Justify End",
64
+ active: b === "flex-end"
65
+ },
66
+ {
67
+ value: "space-between",
68
+ icon: T("space-between", S, x),
69
+ description: "Justify Space Between - distribute evenly from start to end",
70
+ active: b === "space-between"
71
+ },
72
+ {
73
+ value: "space-around",
74
+ icon: T("space-around", S, x),
75
+ description: "Justify Space Around - distribute evenly, why space around all children",
76
+ active: b === "space-around"
77
+ }
78
+ ], [
79
+ T,
80
+ S,
81
+ x,
82
+ b
83
+ ])
84
+ })
85
+ });
86
+ };
87
+ //#endregion
88
+ export { b as default };
@@ -0,0 +1,8 @@
1
+ import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
2
+ export type DisplayGapProps = {
3
+ rowGap?: StyleValue;
4
+ columnGap?: StyleValue;
5
+ onChange?: (type: StyleCategory, value: StyleValue) => void;
6
+ };
7
+ declare const DisplayGap: ({ rowGap, columnGap, onChange }: DisplayGapProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default DisplayGap;
@@ -0,0 +1,27 @@
1
+ import e from "../../components/CategoryOption/index.mjs";
2
+ import t from "../../components/CategorySection/index.mjs";
3
+ import { useCallback as n } from "react";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ //#region src/components/StyleInspector/categories/Display/DisplayGap.tsx
6
+ var a = ["row-gap", "column-gap"], o = ["row-gap"], s = ["column-gap"], c = ({ rowGap: c = "0px", columnGap: l = "0px", onChange: u }) => {
7
+ let d = n((e) => u?.("row-gap", e), [u]), f = n((e) => u?.("column-gap", e), [u]);
8
+ return /* @__PURE__ */ i(t, {
9
+ label: "Gap",
10
+ keys: a,
11
+ children: [/* @__PURE__ */ r(e, {
12
+ keys: o,
13
+ label: "Row",
14
+ value: c,
15
+ onChange: d,
16
+ type: "metric"
17
+ }), /* @__PURE__ */ r(e, {
18
+ keys: s,
19
+ label: "Column",
20
+ value: l,
21
+ onChange: f,
22
+ type: "metric"
23
+ })]
24
+ });
25
+ };
26
+ //#endregion
27
+ export { c as default };
@@ -0,0 +1,8 @@
1
+ import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
2
+ export type DisplayGridGapProps = {
3
+ rowGap?: StyleValue;
4
+ columnGap?: StyleValue;
5
+ onChange?: (type: StyleCategory, value: StyleValue) => void;
6
+ };
7
+ declare const DisplayGridGap: ({ rowGap, columnGap, onChange }: DisplayGridGapProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default DisplayGridGap;
@@ -0,0 +1,27 @@
1
+ import e from "../../components/CategoryOption/index.mjs";
2
+ import t from "../../components/CategorySection/index.mjs";
3
+ import { useCallback as n } from "react";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ //#region src/components/StyleInspector/categories/Display/DisplayGridGap.tsx
6
+ var a = ["grid-row-gap", "grid-column-gap"], o = ["grid-row-gap"], s = ["grid-column-gap"], c = ({ rowGap: c = "0px", columnGap: l = "0px", onChange: u }) => {
7
+ let d = n((e) => u?.("grid-row-gap", e), [u]), f = n((e) => u?.("grid-column-gap", e), [u]);
8
+ return /* @__PURE__ */ i(t, {
9
+ label: "Gap",
10
+ keys: a,
11
+ children: [/* @__PURE__ */ r(e, {
12
+ keys: o,
13
+ label: "Row",
14
+ value: c,
15
+ onChange: d,
16
+ type: "metric"
17
+ }), /* @__PURE__ */ r(e, {
18
+ keys: s,
19
+ label: "Column",
20
+ value: l,
21
+ onChange: f,
22
+ type: "metric"
23
+ })]
24
+ });
25
+ };
26
+ //#endregion
27
+ export { c as default };
@@ -0,0 +1,12 @@
1
+ import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
2
+ export type DisplayGridTemplateProps = {
3
+ templateAreas?: StyleValue;
4
+ templateColumns?: StyleValue;
5
+ templateRows?: StyleValue;
6
+ templateAutoFlow?: StyleValue;
7
+ templateAutoRows?: StyleValue;
8
+ templateAutoColumns?: StyleValue;
9
+ onChange?: (type: StyleCategory, value: StyleValue) => void;
10
+ };
11
+ declare const DisplayGridTemplate: ({ templateAreas, templateColumns, templateRows, templateAutoFlow, templateAutoRows, templateAutoColumns, onChange }: DisplayGridTemplateProps) => import("react/jsx-runtime").JSX.Element;
12
+ export default DisplayGridTemplate;
@@ -0,0 +1,83 @@
1
+ import e from "../../components/CategoryOption/index.mjs";
2
+ import t from "../../components/CategorySection/index.mjs";
3
+ import { useCallback as n, useMemo as r } from "react";
4
+ import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
5
+ //#region src/components/StyleInspector/categories/Display/DisplayGridTemplate.tsx
6
+ var s = ["grid-auto-flow"], c = ["grid-template-columns", "grid-template-rows"], l = ["grid-auto-columns", "grid-auto-rows"], u = ({ templateAreas: u = "none", templateColumns: d = "none", templateRows: f = "none", templateAutoFlow: p = "row", templateAutoRows: m = "none", templateAutoColumns: h = "none", onChange: g }) => {
7
+ let _ = n((e) => g?.("grid-template-areas", e), [g]), v = n((e) => g?.("grid-template-rows", e), [g]), y = n((e) => g?.("grid-template-columns", e), [g]), b = n((e) => g?.("grid-auto-rows", e), [g]), x = n((e) => g?.("grid-auto-columns", e), [g]), S = n((e) => g?.("grid-auto-flow", e), [g]);
8
+ return /* @__PURE__ */ o(i, { children: [
9
+ /* @__PURE__ */ a(t, {
10
+ label: "Direction",
11
+ keys: s,
12
+ children: /* @__PURE__ */ a(e, {
13
+ type: "iconGroup",
14
+ items: r(() => [{
15
+ value: "row",
16
+ icon: /* @__PURE__ */ a("div", {
17
+ className: "px-1 text-xs whitespace-nowrap select-none",
18
+ children: "Row"
19
+ }),
20
+ description: "",
21
+ active: p === "row",
22
+ size: "custom"
23
+ }, {
24
+ value: "column",
25
+ icon: /* @__PURE__ */ a("div", {
26
+ className: "px-1 text-xs select-none",
27
+ children: "Column"
28
+ }),
29
+ description: "",
30
+ active: p === "column",
31
+ size: "custom"
32
+ }], [p]),
33
+ onChange: S
34
+ })
35
+ }),
36
+ /* @__PURE__ */ o(t, {
37
+ label: "Template",
38
+ keys: c,
39
+ children: [
40
+ /* @__PURE__ */ a(e, {
41
+ keys: ["grid-template-areas"],
42
+ label: "Area",
43
+ value: u,
44
+ onChange: _,
45
+ type: "metric"
46
+ }),
47
+ /* @__PURE__ */ a(e, {
48
+ keys: ["grid-template-rows"],
49
+ label: "Row",
50
+ value: f,
51
+ onChange: v,
52
+ type: "input"
53
+ }),
54
+ /* @__PURE__ */ a(e, {
55
+ keys: ["grid-template-columns"],
56
+ label: "Column",
57
+ value: d,
58
+ onChange: y,
59
+ type: "input"
60
+ })
61
+ ]
62
+ }),
63
+ /* @__PURE__ */ o(t, {
64
+ label: "Default",
65
+ keys: l,
66
+ children: [/* @__PURE__ */ a(e, {
67
+ keys: ["grid-auto-rows"],
68
+ label: "Row",
69
+ value: m,
70
+ onChange: b,
71
+ type: "metric"
72
+ }), /* @__PURE__ */ a(e, {
73
+ keys: ["grid-auto-columns"],
74
+ label: "Column",
75
+ value: h,
76
+ onChange: x,
77
+ type: "metric"
78
+ })]
79
+ })
80
+ ] });
81
+ };
82
+ //#endregion
83
+ export { u as default };