@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,83 @@
1
+ import e from "../../components/CategoryOption/index.mjs";
2
+ import t from "../../components/CategorySection/index.mjs";
3
+ import { useCallback as n, useRef as r } from "react";
4
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
+ import o from "@plitzi/plitzi-ui/ContainerFloating";
6
+ import s from "@plitzi/plitzi-ui/Icon";
7
+ //#region src/components/StyleInspector/categories/Typography/TypographyTextShadowItem.tsx
8
+ var c = ({ value: c = "", onRemove: l, onChange: u }) => {
9
+ let [d = "2px", f = "2px", p = "0px", m = "black"] = c.split(" "), h = r({
10
+ posX: d,
11
+ posY: f,
12
+ blur: p,
13
+ color: m
14
+ });
15
+ h.current = {
16
+ posX: d,
17
+ posY: f,
18
+ blur: p,
19
+ color: m
20
+ };
21
+ let g = n((e) => (t) => {
22
+ let n = { ...h.current };
23
+ n[e] = t;
24
+ let { posX: r, posY: i, blur: a, color: o } = n;
25
+ u?.(`${r} ${i} ${a} ${o}`);
26
+ }, [u]);
27
+ return /* @__PURE__ */ a(o, {
28
+ className: "w-full",
29
+ closeOnClick: !1,
30
+ children: [/* @__PURE__ */ a(o.Trigger, {
31
+ className: "flex w-full cursor-pointer items-center justify-between rounded-sm border border-gray-300 bg-white px-2 py-0.5 select-none hover:bg-gray-100 dark:border-zinc-600 dark:bg-zinc-800 dark:hover:bg-zinc-700/60",
32
+ children: [/* @__PURE__ */ a("div", {
33
+ className: "flex items-center",
34
+ children: [/* @__PURE__ */ i("div", {
35
+ className: "mr-1 h-5 w-5 rounded-sm",
36
+ style: { backgroundColor: m }
37
+ }), /* @__PURE__ */ i("div", { children: c })]
38
+ }), /* @__PURE__ */ i("div", {
39
+ className: "flex",
40
+ children: /* @__PURE__ */ i(s, {
41
+ size: "xs",
42
+ icon: "fas fa-trash-alt",
43
+ onClick: l,
44
+ intent: "danger",
45
+ title: "Remove"
46
+ })
47
+ })]
48
+ }), /* @__PURE__ */ i(o.Content, {
49
+ className: "w-[260px]",
50
+ children: /* @__PURE__ */ a("div", {
51
+ className: "flex w-full flex-col gap-2 p-2",
52
+ children: [/* @__PURE__ */ a(t, { children: [
53
+ /* @__PURE__ */ i(e, {
54
+ className: "min-w-0",
55
+ label: "Pos X",
56
+ value: d,
57
+ onChange: g("posX"),
58
+ type: "metric"
59
+ }),
60
+ /* @__PURE__ */ i(e, {
61
+ label: "Pos Y",
62
+ value: f,
63
+ onChange: g("posY"),
64
+ type: "metric"
65
+ }),
66
+ /* @__PURE__ */ i(e, {
67
+ label: "Blur",
68
+ value: p,
69
+ onChange: g("blur"),
70
+ type: "metric"
71
+ })
72
+ ] }), /* @__PURE__ */ i(t, { children: /* @__PURE__ */ i(e, {
73
+ label: "Color",
74
+ value: m,
75
+ onChange: g("color"),
76
+ type: "color"
77
+ }) })]
78
+ })
79
+ })]
80
+ });
81
+ };
82
+ //#endregion
83
+ export { c as default };
@@ -0,0 +1,8 @@
1
+ import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
2
+ export type TypographyTransformProps = {
3
+ textTransform?: StyleValue;
4
+ direction?: StyleValue;
5
+ onChange?: (category: StyleCategory) => (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
6
+ };
7
+ declare const TypographyTransform: ({ textTransform, direction, onChange }: TypographyTransformProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default TypographyTransform;
@@ -0,0 +1,68 @@
1
+ import e from "../../components/CategoryOption/index.mjs";
2
+ import t from "../../components/CategorySection/index.mjs";
3
+ import { useMemo as n } from "react";
4
+ import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
5
+ import o from "@plitzi/plitzi-ui/icons/XMark";
6
+ import s from "@plitzi/plitzi-ui/icons/TextDirectionLtr";
7
+ import c from "@plitzi/plitzi-ui/icons/TextDirectionRtl";
8
+ //#region src/components/StyleInspector/categories/Typography/TypographyTransform.tsx
9
+ var l = ({ textTransform: l, direction: u, onChange: d }) => {
10
+ let f = n(() => [
11
+ {
12
+ value: "none",
13
+ icon: /* @__PURE__ */ i(o, {}),
14
+ description: "None",
15
+ active: l === "none"
16
+ },
17
+ {
18
+ value: "uppercase",
19
+ icon: /* @__PURE__ */ i("span", { children: "AA" }),
20
+ size: "custom",
21
+ description: "All Caps",
22
+ active: l === "uppercase"
23
+ },
24
+ {
25
+ value: "capitalize",
26
+ icon: /* @__PURE__ */ i("span", { children: "Aa" }),
27
+ size: "custom",
28
+ description: "Capitalize Every Word",
29
+ active: l === "capitalize"
30
+ },
31
+ {
32
+ value: "lowercase",
33
+ icon: /* @__PURE__ */ i("span", { children: "aa" }),
34
+ size: "custom",
35
+ description: "Lower Case",
36
+ active: l === "lowercase"
37
+ }
38
+ ], [l]), p = n(() => [{
39
+ value: "ltr",
40
+ icon: /* @__PURE__ */ i(s, {}),
41
+ description: "Left To Right",
42
+ active: u === "ltr"
43
+ }, {
44
+ value: "rtl",
45
+ icon: /* @__PURE__ */ i(c, {}),
46
+ description: "Right To Left",
47
+ active: u === "rtl"
48
+ }], [u]);
49
+ return /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i(t, {
50
+ label: "Capitalize",
51
+ keys: ["text-transform"],
52
+ children: /* @__PURE__ */ i(e, {
53
+ onChange: d?.("text-transform"),
54
+ type: "iconGroup",
55
+ items: f
56
+ })
57
+ }), /* @__PURE__ */ i(t, {
58
+ label: "Direction",
59
+ keys: ["direction"],
60
+ children: /* @__PURE__ */ i(e, {
61
+ onChange: d?.("direction"),
62
+ type: "iconGroup",
63
+ items: p
64
+ })
65
+ })] });
66
+ };
67
+ //#endregion
68
+ export { l as default };
@@ -0,0 +1,3 @@
1
+ import { default as Typography } from './Typography';
2
+ export * from './Typography';
3
+ export default Typography;
@@ -0,0 +1,5 @@
1
+ import e from "./Typography.mjs";
2
+ //#region src/components/StyleInspector/categories/Typography/index.ts
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,7 @@
1
+ export type VariablesProps = {
2
+ replaceTokens?: boolean;
3
+ isCollapsed?: boolean;
4
+ onCollapse?: (category: string, isCollapsed: boolean) => void;
5
+ };
6
+ declare const Variables: ({ isCollapsed, onCollapse }: VariablesProps) => import("react/jsx-runtime").JSX.Element | undefined;
7
+ export default Variables;
@@ -0,0 +1,55 @@
1
+ import e from "../../StyleInspectorContext.mjs";
2
+ import t from "../../components/CategoryContainer/index.mjs";
3
+ import { use as n, useCallback as r } from "react";
4
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
+ import o, { useModal as s } from "@plitzi/plitzi-ui/Modal";
6
+ import c from "@plitzi/sdk-shared/builder/contexts/BuilderContext";
7
+ import { useToast as l } from "@plitzi/plitzi-ui/Toast";
8
+ import u from "@plitzi/sdk-variables/components/StyleVariables";
9
+ //#region src/components/StyleInspector/categories/Variables/Variables.tsx
10
+ var d = ({ isCollapsed: d, onCollapse: f }) => {
11
+ let { displayMode: p, selector: m } = n(e), { builderHandler: h } = n(c), { showDialog: g } = s(), { addToast: _ } = l(), v = r((e) => f?.("variables", e), [f]), y = r((e) => {
12
+ if (!m) return;
13
+ let { name: t, category: n, value: r } = e;
14
+ m.variables?.[n]?.[t] ? _(/* @__PURE__ */ a("span", { children: [
15
+ "Variable with the name ",
16
+ /* @__PURE__ */ i("b", { children: t }),
17
+ " already exists"
18
+ ] }), {
19
+ appeareance: "warning",
20
+ autoDismiss: !0,
21
+ placement: "top-right"
22
+ }) : h("styleAddSelectorVariable", p, m.name, n, t, r);
23
+ }, [
24
+ _,
25
+ h,
26
+ p,
27
+ m
28
+ ]), b = r((e) => {
29
+ m && h("styleUpdateSelectorVariable", p, m.name, e.category, e.name, e.value);
30
+ }, [
31
+ h,
32
+ p,
33
+ m
34
+ ]), x = r(async (e, t) => {
35
+ m && await g(/* @__PURE__ */ i(o.Header, { children: /* @__PURE__ */ i("h4", { children: "Remove Style Variable" }) }), /* @__PURE__ */ i(o.Body, { children: /* @__PURE__ */ i("h4", { children: "Do you want to remove this item ?" }) }), void 0, { size: "sm" }, t) && h("styleRemoveSelectorVariable", p, m.name, e, t);
36
+ }, [
37
+ h,
38
+ p,
39
+ m,
40
+ g
41
+ ]);
42
+ if (m) return /* @__PURE__ */ i(t, {
43
+ title: "Variables",
44
+ isCollapsed: d,
45
+ onCollapse: v,
46
+ children: /* @__PURE__ */ i(u, {
47
+ variables: m.variables,
48
+ onAdd: y,
49
+ onUpdate: b,
50
+ onRemove: x
51
+ })
52
+ });
53
+ };
54
+ //#endregion
55
+ export { d as default };
@@ -0,0 +1,3 @@
1
+ import { default as Variables } from './Variables';
2
+ export * from './Variables';
3
+ export default Variables;
@@ -0,0 +1,5 @@
1
+ import e from "./Variables.mjs";
2
+ //#region src/components/StyleInspector/categories/Variables/index.ts
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,13 @@
1
+ import { StyleCategory } from '@plitzi/sdk-shared';
2
+ import { ReactNode } from 'react';
3
+ export type CategoryContainerProps = {
4
+ className?: string;
5
+ classNameContent?: string;
6
+ children?: ReactNode;
7
+ title?: string;
8
+ dotKeys?: StyleCategory[];
9
+ isCollapsed?: boolean;
10
+ onCollapse: (collapsed: boolean) => void;
11
+ };
12
+ declare const CategoryContainer: ({ className, classNameContent, children, title, dotKeys, isCollapsed, onCollapse }: CategoryContainerProps) => import("react/jsx-runtime").JSX.Element;
13
+ export default CategoryContainer;
@@ -0,0 +1,27 @@
1
+ import e from "../InspectorDots/index.mjs";
2
+ import t from "clsx";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ import i from "@plitzi/plitzi-ui/Icon";
5
+ import a from "@plitzi/plitzi-ui/ContainerCollapsable";
6
+ //#region src/components/StyleInspector/components/CategoryContainer/CategoryContainer.tsx
7
+ var o = ({ className: o, classNameContent: s, children: c, title: l = "Title", dotKeys: u, isCollapsed: d = !0, onCollapse: f }) => /* @__PURE__ */ r(a, {
8
+ className: o,
9
+ collapsed: d,
10
+ onChange: f,
11
+ children: [/* @__PURE__ */ n(a.Header, {
12
+ className: t("h-8", {
13
+ "border-b border-gray-200 hover:bg-slate-100 dark:border-zinc-700 dark:hover:bg-zinc-700/50": d,
14
+ "bg-slate-100 dark:bg-zinc-700/50": !d
15
+ }),
16
+ title: l,
17
+ placement: "right",
18
+ iconCollapsed: /* @__PURE__ */ n(i, { icon: "fa-solid fa-angle-down" }),
19
+ iconExpanded: /* @__PURE__ */ n(i, { icon: "fa-solid fa-angle-up" }),
20
+ children: /* @__PURE__ */ n(e, { styleKeys: u })
21
+ }), /* @__PURE__ */ n(a.Content, {
22
+ className: t("flex flex-col gap-3 p-2", { "border-b border-gray-200 dark:border-zinc-700": !d }, s),
23
+ children: c
24
+ })]
25
+ });
26
+ //#endregion
27
+ export { o as default };
@@ -0,0 +1,3 @@
1
+ import { default as CategoryContainer } from './CategoryContainer';
2
+ export * from './CategoryContainer';
3
+ export default CategoryContainer;
@@ -0,0 +1,5 @@
1
+ import e from "./CategoryContainer.mjs";
2
+ //#region src/components/StyleInspector/components/CategoryContainer/index.ts
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,39 @@
1
+ import { OptionIconGroupProps } from './categoryTypes/OptionIconGroup';
2
+ import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
3
+ import { ReactNode } from 'react';
4
+ export type CategoryOptionType = 'input' | 'select' | 'iconGroup';
5
+ type CategoryOptionPropsBase = {
6
+ className?: string;
7
+ direction?: 'column' | 'row';
8
+ keys?: StyleCategory[];
9
+ label?: ReactNode;
10
+ onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
11
+ };
12
+ export type CategoryOptionProps = (CategoryOptionPropsBase & {
13
+ type: 'iconGroup';
14
+ items: OptionIconGroupProps['items'];
15
+ }) | (CategoryOptionPropsBase & {
16
+ type: 'select';
17
+ children?: ReactNode;
18
+ }) | (CategoryOptionPropsBase & {
19
+ type: 'metric';
20
+ value?: StyleValue;
21
+ preffix?: string;
22
+ units?: {
23
+ label: string;
24
+ value: string;
25
+ }[];
26
+ allowedWords?: string[];
27
+ step?: number;
28
+ min?: number;
29
+ max?: number;
30
+ allowVariables?: boolean;
31
+ }) | (CategoryOptionPropsBase & {
32
+ type: 'color';
33
+ value?: StyleValue;
34
+ }) | (CategoryOptionPropsBase & {
35
+ type?: 'input' | 'select';
36
+ value?: StyleValue;
37
+ });
38
+ declare const CategoryOption: (props: CategoryOptionProps) => import("react/jsx-runtime").JSX.Element;
39
+ export default CategoryOption;
@@ -0,0 +1,30 @@
1
+ import e from "../InspectorLabel/index.mjs";
2
+ import t from "./categoryTypes/OptionColor.mjs";
3
+ import n from "./categoryTypes/OptionIconGroup.mjs";
4
+ import r from "./categoryTypes/OptionInput.mjs";
5
+ import i from "./categoryTypes/OptionMetricInput.mjs";
6
+ import a from "./categoryTypes/OptionSelect.mjs";
7
+ import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
8
+ import l from "@plitzi/plitzi-ui/Flex";
9
+ //#region src/components/StyleInspector/components/CategoryOption/CategoryOption.tsx
10
+ var u = (u) => {
11
+ let { direction: d = "column", label: f, keys: p, type: m = "input", ...h } = u;
12
+ return /* @__PURE__ */ c(l, {
13
+ className: "w-full min-w-0",
14
+ direction: d,
15
+ gap: 1,
16
+ children: [f && /* @__PURE__ */ s(e, {
17
+ className: "!min-w-0",
18
+ keyValue: p,
19
+ children: f
20
+ }), /* @__PURE__ */ c(o, { children: [
21
+ m === "iconGroup" && /* @__PURE__ */ s(n, { ...h }),
22
+ m === "input" && /* @__PURE__ */ s(r, { ...h }),
23
+ m === "select" && /* @__PURE__ */ s(a, { ...h }),
24
+ m === "color" && /* @__PURE__ */ s(t, { ...h }),
25
+ m === "metric" && /* @__PURE__ */ s(i, { ...h })
26
+ ] })]
27
+ });
28
+ };
29
+ //#endregion
30
+ export { u as default };
@@ -0,0 +1,8 @@
1
+ import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
2
+ export type OptionColorProps = {
3
+ className?: string;
4
+ value?: StyleValue;
5
+ onChange?: (value: StyleValue | Record<StyleCategory, StyleValue>) => void;
6
+ };
7
+ declare const OptionColor: ({ className, value, onChange }: OptionColorProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default OptionColor;
@@ -0,0 +1,16 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import t from "@plitzi/plitzi-ui/ColorPicker";
3
+ //#region src/components/StyleInspector/components/CategoryOption/categoryTypes/OptionColor.tsx
4
+ var n = ["inherit"], r = ({ className: r, value: i, onChange: a }) => /* @__PURE__ */ e(t, {
5
+ size: "xs",
6
+ className: {
7
+ root: "w-full min-w-0",
8
+ input: r
9
+ },
10
+ value: i,
11
+ onChange: a,
12
+ allowVariables: !0,
13
+ allowedWords: n
14
+ });
15
+ //#endregion
16
+ export { r as default };
@@ -0,0 +1,15 @@
1
+ import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
2
+ import { ReactNode } from 'react';
3
+ export type OptionIconGroupProps = {
4
+ items?: {
5
+ icon: ReactNode;
6
+ value: StyleValue | Record<StyleCategory, StyleValue> | boolean;
7
+ description?: string;
8
+ isVisible?: boolean;
9
+ active?: boolean;
10
+ size?: 'md' | 'sm' | 'xs' | 'custom';
11
+ }[];
12
+ onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
13
+ };
14
+ declare const OptionIconGroup: ({ items, onChange }: OptionIconGroupProps) => import("react/jsx-runtime").JSX.Element;
15
+ export default OptionIconGroup;
@@ -0,0 +1,27 @@
1
+ import e from "clsx";
2
+ import { useCallback as t, useMemo as n } from "react";
3
+ import { jsx as r } from "react/jsx-runtime";
4
+ import i from "@plitzi/plitzi-ui/IconGroup";
5
+ //#region src/components/StyleInspector/components/CategoryOption/categoryTypes/OptionIconGroup.tsx
6
+ var a = ({ items: a = [], onChange: o }) => {
7
+ let s = n(() => a.filter((e) => typeof e.isVisible != "boolean" || e.isVisible), [a]), c = t((e) => () => o?.(e), [o]);
8
+ return /* @__PURE__ */ r(i, {
9
+ className: "w-full px-1.5 py-1",
10
+ gap: 1,
11
+ size: "md",
12
+ children: s.map((t, n) => /* @__PURE__ */ r(i.Icon, {
13
+ size: t.size,
14
+ className: e("cursor-pointer rounded-sm p-0.5", {
15
+ "bg-zinc-300 dark:bg-zinc-800": t.active,
16
+ "text-xs": typeof t.icon == "string",
17
+ "h-5 w-5": t.size !== "custom"
18
+ }),
19
+ active: t.active,
20
+ onClick: c(t.value),
21
+ icon: typeof t.icon == "string" ? t.icon : void 0,
22
+ children: typeof t.icon != "string" && t.icon
23
+ }, n))
24
+ });
25
+ };
26
+ //#endregion
27
+ export { a as default };
@@ -0,0 +1,8 @@
1
+ import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
2
+ export type OptionInputProps = {
3
+ className?: string;
4
+ value?: StyleValue;
5
+ onChange?: (value: StyleValue | Record<StyleCategory, StyleValue>) => void;
6
+ };
7
+ declare const OptionInput: ({ value, className, onChange }: OptionInputProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default OptionInput;
@@ -0,0 +1,14 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import t from "@plitzi/plitzi-ui/Input";
3
+ //#region src/components/StyleInspector/components/CategoryOption/categoryTypes/OptionInput.tsx
4
+ var n = ({ value: n, className: r, onChange: i }) => /* @__PURE__ */ e(t, {
5
+ size: "xs",
6
+ value: n,
7
+ onChange: i,
8
+ className: {
9
+ root: "w-full min-w-0",
10
+ input: r
11
+ }
12
+ });
13
+ //#endregion
14
+ export { n as default };
@@ -0,0 +1,18 @@
1
+ import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
2
+ export type OptionMetricInputProps = {
3
+ className?: string;
4
+ value?: StyleValue;
5
+ preffix?: string;
6
+ min?: number;
7
+ max?: number;
8
+ step?: number;
9
+ units?: {
10
+ label: string;
11
+ value: string;
12
+ }[];
13
+ allowedWords?: string[];
14
+ allowVariables?: boolean;
15
+ onChange?: (value: StyleValue | Record<StyleCategory, StyleValue>) => void;
16
+ };
17
+ declare const OptionMetricInput: ({ value, className, preffix, min, max, step, units, allowedWords, allowVariables, onChange }: OptionMetricInputProps) => import("react/jsx-runtime").JSX.Element;
18
+ export default OptionMetricInput;
@@ -0,0 +1,69 @@
1
+ import e from "clsx";
2
+ import { useCallback as t } from "react";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ import i from "@plitzi/plitzi-ui/MetricInput";
5
+ //#region src/components/StyleInspector/components/CategoryOption/categoryTypes/OptionMetricInput.tsx
6
+ var a = ({ value: a, className: o, preffix: s = "", min: c, max: l, step: u, units: d = [
7
+ {
8
+ label: "PX",
9
+ value: "px"
10
+ },
11
+ {
12
+ label: "VW",
13
+ value: "vw"
14
+ },
15
+ {
16
+ label: "VH",
17
+ value: "vh"
18
+ },
19
+ {
20
+ label: "%",
21
+ value: "%"
22
+ },
23
+ {
24
+ label: "EM",
25
+ value: "em"
26
+ },
27
+ {
28
+ label: "REM",
29
+ value: "rem"
30
+ },
31
+ {
32
+ label: "DVH",
33
+ value: "dvh"
34
+ },
35
+ {
36
+ label: "DVW",
37
+ value: "dvw"
38
+ },
39
+ {
40
+ label: "LVH",
41
+ value: "lvh"
42
+ },
43
+ {
44
+ label: "LVW",
45
+ value: "lvw"
46
+ }
47
+ ], allowedWords: f = ["auto", "none"], allowVariables: p = !0, onChange: m }) => {
48
+ let h = t((e) => m?.(e), [m]);
49
+ return /* @__PURE__ */ r("div", {
50
+ className: "flex items-center gap-1",
51
+ children: [s && /* @__PURE__ */ r("span", {
52
+ className: "text-xs",
53
+ children: [s, ":"]
54
+ }), /* @__PURE__ */ n(i, {
55
+ size: "xs",
56
+ value: a,
57
+ min: c,
58
+ max: l,
59
+ step: u,
60
+ units: d,
61
+ allowedWords: f,
62
+ allowVariables: p,
63
+ onChange: h,
64
+ className: e("w-full min-w-0", o)
65
+ })]
66
+ });
67
+ };
68
+ //#endregion
69
+ export { a as default };
@@ -0,0 +1,10 @@
1
+ import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
2
+ import { ReactNode } from 'react';
3
+ export type OptionSelectProps = {
4
+ className?: string;
5
+ children?: ReactNode;
6
+ value?: StyleValue;
7
+ onChange?: (value: StyleValue | Record<StyleCategory, StyleValue>) => void;
8
+ };
9
+ declare const OptionSelect: ({ children, className, value, onChange }: OptionSelectProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default OptionSelect;
@@ -0,0 +1,13 @@
1
+ import e from "clsx";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ import n from "@plitzi/plitzi-ui/Select";
4
+ //#region src/components/StyleInspector/components/CategoryOption/categoryTypes/OptionSelect.tsx
5
+ var r = ({ children: r, className: i, value: a, onChange: o }) => /* @__PURE__ */ t(n, {
6
+ size: "xs",
7
+ value: a,
8
+ onChange: o,
9
+ className: e("w-full min-w-0", i),
10
+ children: r
11
+ });
12
+ //#endregion
13
+ export { r as default };
@@ -0,0 +1,3 @@
1
+ import { default as CategoryOption } from './CategoryOption';
2
+ export * from './CategoryOption';
3
+ export default CategoryOption;
@@ -0,0 +1,5 @@
1
+ import e from "./CategoryOption.mjs";
2
+ //#region src/components/StyleInspector/components/CategoryOption/index.ts
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,12 @@
1
+ import { StyleCategory } from '@plitzi/sdk-shared';
2
+ import { ReactNode } from 'react';
3
+ export type CategoryOptionType = 'text' | 'select' | 'iconGroup';
4
+ export type CategoryOptionProps = {
5
+ className?: string;
6
+ children?: ReactNode;
7
+ label?: ReactNode;
8
+ direction?: 'column' | 'row';
9
+ keys?: StyleCategory[];
10
+ };
11
+ declare const CategorySection: ({ children, className, direction, label, keys }: CategoryOptionProps) => import("react/jsx-runtime").JSX.Element;
12
+ export default CategorySection;
@@ -0,0 +1,18 @@
1
+ import e from "../InspectorLabel/index.mjs";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ import r from "@plitzi/plitzi-ui/Flex";
4
+ //#region src/components/StyleInspector/components/CategorySection/CategorySection.tsx
5
+ var i = ({ children: i, className: a, direction: o = "row", label: s, keys: c }) => /* @__PURE__ */ n(r, {
6
+ direction: o,
7
+ gap: 2,
8
+ justify: s && o === "row" ? "between" : void 0,
9
+ items: o === "row" ? "center" : void 0,
10
+ className: a,
11
+ children: [s && /* @__PURE__ */ t(e, {
12
+ className: o === "row" ? "w-18" : "w-full",
13
+ keyValue: c,
14
+ children: s
15
+ }), i]
16
+ });
17
+ //#endregion
18
+ export { i as default };
@@ -0,0 +1,3 @@
1
+ import { default as CategorySection } from './CategorySection';
2
+ export * from './CategorySection';
3
+ export default CategorySection;
@@ -0,0 +1,5 @@
1
+ import e from "./CategorySection.mjs";
2
+ //#region src/components/StyleInspector/components/CategorySection/index.ts
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,6 @@
1
+ import { StyleCategory } from '@plitzi/sdk-shared';
2
+ export type InspectorDotsProps = {
3
+ styleKeys?: StyleCategory[];
4
+ };
5
+ declare const InspectorDots: ({ styleKeys }: InspectorDotsProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default InspectorDots;