@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,224 @@
1
+ import e from "../../StyleInspectorContext.mjs";
2
+ import t from "../../hooks/useInspectorValues.mjs";
3
+ import n from "../../components/CategoryOption/index.mjs";
4
+ import r from "../../components/CategorySection/index.mjs";
5
+ import i from "../../components/CategoryContainer/index.mjs";
6
+ import a from "./TypographyAlign.mjs";
7
+ import { defaultFonts as o, weights as s } from "./TypographyConstants.mjs";
8
+ import c from "./TypographyFont.mjs";
9
+ import l from "./TypographyStyle.mjs";
10
+ import u from "./TypographyTextShadow.mjs";
11
+ import d from "./TypographyTransform.mjs";
12
+ import { memo as f, use as p, useCallback as m } from "react";
13
+ import { jsx as h, jsxs as g } from "react/jsx-runtime";
14
+ //#region src/components/StyleInspector/categories/Typography/Typography.tsx
15
+ var _ = [
16
+ "font-family",
17
+ "font-weight",
18
+ "font-size",
19
+ "line-height",
20
+ "color",
21
+ "text-align",
22
+ "font-style",
23
+ "text-decoration",
24
+ "letter-spacing",
25
+ "text-indent",
26
+ "text-transform",
27
+ "direction",
28
+ "text-shadow",
29
+ "white-space",
30
+ "text-wrap",
31
+ "text-overflow"
32
+ ], v = ["letter-spacing", "text-indent"], y = f(({ replaceTokens: f = !1, isCollapsed: y = !0, fonts: b, onCollapse: x }) => {
33
+ let { setValue: S } = p(e), { "font-family": C, "font-weight": w, "font-size": T, "font-style": E, "text-align": D, "text-decoration": O, "text-indent": k, "text-transform": A, "text-shadow": j, "white-space": M, "text-wrap": N, "text-overflow": P, "line-height": F, color: I, "letter-spacing": L, direction: R } = t({
34
+ keys: _,
35
+ asValue: !0,
36
+ replaceTokens: f
37
+ }), z = m((e) => x?.("typography", e), [x]), B = [...b ?? [], ...o].find((e) => e.name === C), V = m((e) => (t) => S(e, t), [S]);
38
+ return /* @__PURE__ */ g(i, {
39
+ title: "Typography",
40
+ dotKeys: _,
41
+ isCollapsed: y,
42
+ onCollapse: z,
43
+ children: [
44
+ /* @__PURE__ */ h(a, {
45
+ partialValue: D,
46
+ onChange: V("text-align")
47
+ }),
48
+ /* @__PURE__ */ h(c, {
49
+ partialValue: C,
50
+ fonts: b,
51
+ onChange: V("font-family")
52
+ }),
53
+ /* @__PURE__ */ h(r, {
54
+ label: "Weight",
55
+ keys: ["font-weight"],
56
+ children: /* @__PURE__ */ h(n, {
57
+ value: w,
58
+ onChange: V("font-weight"),
59
+ type: "select",
60
+ children: Object.keys(s).map((e) => /* @__PURE__ */ h("option", {
61
+ value: e,
62
+ disabled: !B || !B.weights.includes(e),
63
+ children: s[Number(e)]
64
+ }, e))
65
+ })
66
+ }),
67
+ /* @__PURE__ */ g(r, {
68
+ label: "",
69
+ children: [/* @__PURE__ */ h(n, {
70
+ keys: ["font-size"],
71
+ label: "Size",
72
+ value: T,
73
+ onChange: V("font-size"),
74
+ type: "metric"
75
+ }), /* @__PURE__ */ h(n, {
76
+ keys: ["line-height"],
77
+ label: "Line Height",
78
+ value: F,
79
+ onChange: V("line-height"),
80
+ type: "metric"
81
+ })]
82
+ }),
83
+ /* @__PURE__ */ h(r, {
84
+ label: "Color",
85
+ keys: ["color"],
86
+ children: /* @__PURE__ */ h(n, {
87
+ type: "color",
88
+ value: I,
89
+ onChange: V("color")
90
+ })
91
+ }),
92
+ /* @__PURE__ */ h(l, {
93
+ fontStyle: E,
94
+ textDecoration: O,
95
+ onChange: V
96
+ }),
97
+ /* @__PURE__ */ g(r, {
98
+ label: "Letter",
99
+ keys: v,
100
+ children: [/* @__PURE__ */ h(n, {
101
+ keys: ["letter-spacing"],
102
+ label: "Spacing",
103
+ value: L,
104
+ onChange: V("letter-spacing"),
105
+ type: "metric"
106
+ }), /* @__PURE__ */ h(n, {
107
+ keys: ["text-indent"],
108
+ label: "Indent",
109
+ value: k,
110
+ onChange: V("text-indent"),
111
+ type: "metric"
112
+ })]
113
+ }),
114
+ /* @__PURE__ */ h(d, {
115
+ textTransform: A,
116
+ direction: R,
117
+ onChange: V
118
+ }),
119
+ /* @__PURE__ */ h(r, {
120
+ label: "Breaking",
121
+ keys: ["white-space"],
122
+ children: /* @__PURE__ */ g(n, {
123
+ value: M,
124
+ onChange: V("white-space"),
125
+ type: "select",
126
+ children: [
127
+ /* @__PURE__ */ h("option", {
128
+ value: "normal",
129
+ children: "Normal"
130
+ }),
131
+ /* @__PURE__ */ h("option", {
132
+ value: "nowrap",
133
+ children: "No Wrap"
134
+ }),
135
+ /* @__PURE__ */ h("option", {
136
+ value: "pre",
137
+ children: "Pre"
138
+ }),
139
+ /* @__PURE__ */ h("option", {
140
+ value: "pre-wrap",
141
+ children: "Pre Wrap"
142
+ }),
143
+ /* @__PURE__ */ h("option", {
144
+ value: "pre-line",
145
+ children: "Pre Line"
146
+ }),
147
+ /* @__PURE__ */ h("option", {
148
+ value: "break-spaces",
149
+ children: "Break Spaces"
150
+ })
151
+ ]
152
+ })
153
+ }),
154
+ /* @__PURE__ */ h(r, {
155
+ label: "Wrap",
156
+ keys: ["text-wrap"],
157
+ children: /* @__PURE__ */ g(n, {
158
+ value: N,
159
+ onChange: V("text-wrap"),
160
+ type: "select",
161
+ children: [
162
+ /* @__PURE__ */ h("option", {
163
+ value: "wrap",
164
+ children: "Wrap"
165
+ }),
166
+ /* @__PURE__ */ h("option", {
167
+ value: "nowrap",
168
+ children: "No Wrap"
169
+ }),
170
+ /* @__PURE__ */ h("option", {
171
+ value: "balance",
172
+ children: "Balance"
173
+ }),
174
+ /* @__PURE__ */ h("option", {
175
+ value: "pretty",
176
+ children: "Pretty"
177
+ }),
178
+ /* @__PURE__ */ h("option", {
179
+ value: "stable",
180
+ children: "Stable"
181
+ })
182
+ ]
183
+ })
184
+ }),
185
+ /* @__PURE__ */ h(r, {
186
+ label: "Overflow",
187
+ keys: ["text-overflow"],
188
+ children: /* @__PURE__ */ g(n, {
189
+ value: P,
190
+ onChange: V("text-overflow"),
191
+ type: "select",
192
+ children: [
193
+ /* @__PURE__ */ h("option", {
194
+ value: "clip",
195
+ children: "Clip"
196
+ }),
197
+ /* @__PURE__ */ h("option", {
198
+ value: "ellipsis",
199
+ children: "Ellipsis"
200
+ }),
201
+ /* @__PURE__ */ h("option", {
202
+ value: "string",
203
+ children: "String"
204
+ }),
205
+ /* @__PURE__ */ h("option", {
206
+ value: "initial",
207
+ children: "Initial"
208
+ }),
209
+ /* @__PURE__ */ h("option", {
210
+ value: "inherit",
211
+ children: "Inherit"
212
+ })
213
+ ]
214
+ })
215
+ }),
216
+ /* @__PURE__ */ h(u, {
217
+ value: j,
218
+ onChange: V("text-shadow")
219
+ })
220
+ ]
221
+ });
222
+ });
223
+ //#endregion
224
+ export { y as default };
@@ -0,0 +1,7 @@
1
+ import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
2
+ export type TypographyAlignProps = {
3
+ partialValue?: StyleValue;
4
+ onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
5
+ };
6
+ declare const TypographyAlign: ({ partialValue, onChange }: TypographyAlignProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default TypographyAlign;
@@ -0,0 +1,41 @@
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 { jsx as r } from "react/jsx-runtime";
5
+ //#region src/components/StyleInspector/categories/Typography/TypographyAlign.tsx
6
+ var i = ({ partialValue: i, onChange: a }) => /* @__PURE__ */ r(t, {
7
+ label: "Align",
8
+ keys: ["text-align"],
9
+ children: /* @__PURE__ */ r(e, {
10
+ onChange: a,
11
+ type: "iconGroup",
12
+ items: n(() => [
13
+ {
14
+ value: "left",
15
+ icon: "fa-solid fa-align-left",
16
+ description: "Left",
17
+ active: i === "left"
18
+ },
19
+ {
20
+ value: "center",
21
+ icon: "fa-solid fa-align-center",
22
+ description: "Center",
23
+ active: i === "center"
24
+ },
25
+ {
26
+ value: "right",
27
+ icon: "fa-solid fa-align-right",
28
+ description: "Right",
29
+ active: i === "right"
30
+ },
31
+ {
32
+ value: "justify",
33
+ icon: "fa-solid fa-align-justify",
34
+ description: "Justify",
35
+ active: i === "justify"
36
+ }
37
+ ], [i])
38
+ })
39
+ });
40
+ //#endregion
41
+ export { i as default };
@@ -0,0 +1,5 @@
1
+ export declare const defaultFonts: {
2
+ name: string;
3
+ weights: string[];
4
+ }[];
5
+ export declare const weights: Record<number, string>;
@@ -0,0 +1,172 @@
1
+ //#region src/components/StyleInspector/categories/Typography/TypographyConstants.ts
2
+ var e = [
3
+ {
4
+ name: "Arial",
5
+ weights: ["400", "700"]
6
+ },
7
+ {
8
+ name: "Bitter",
9
+ weights: ["400", "700"]
10
+ },
11
+ {
12
+ name: "Changa One",
13
+ weights: ["400"]
14
+ },
15
+ {
16
+ name: "Droid Sans",
17
+ weights: ["400", "700"]
18
+ },
19
+ {
20
+ name: "Droid Serif",
21
+ weights: ["400", "700"]
22
+ },
23
+ {
24
+ name: "Exo",
25
+ weights: [
26
+ "100",
27
+ "200",
28
+ "300",
29
+ "400",
30
+ "500",
31
+ "600",
32
+ "700"
33
+ ]
34
+ },
35
+ {
36
+ name: "Georgia",
37
+ weights: ["400", "700"]
38
+ },
39
+ {
40
+ name: "Great Vibes",
41
+ weights: ["400"]
42
+ },
43
+ {
44
+ name: "Impact",
45
+ weights: ["700"]
46
+ },
47
+ {
48
+ name: "Inconsolata",
49
+ weights: ["400", "700"]
50
+ },
51
+ {
52
+ name: "Lato",
53
+ weights: [
54
+ "100",
55
+ "300",
56
+ "400",
57
+ "700",
58
+ "900"
59
+ ]
60
+ },
61
+ {
62
+ name: "Merriweather",
63
+ weights: [
64
+ "300",
65
+ "400",
66
+ "700",
67
+ "900"
68
+ ]
69
+ },
70
+ {
71
+ name: "Montserrat",
72
+ weights: [
73
+ "100",
74
+ "200",
75
+ "300",
76
+ "400",
77
+ "500",
78
+ "600",
79
+ "700"
80
+ ]
81
+ },
82
+ {
83
+ name: "Open Sans",
84
+ weights: [
85
+ "300",
86
+ "400",
87
+ "600",
88
+ "700",
89
+ "800"
90
+ ]
91
+ },
92
+ {
93
+ name: "Oswald",
94
+ weights: [
95
+ "200",
96
+ "300",
97
+ "400",
98
+ "500",
99
+ "600",
100
+ "700"
101
+ ]
102
+ },
103
+ {
104
+ name: "PT Sans",
105
+ weights: ["400", "700"]
106
+ },
107
+ {
108
+ name: "Palatino Linotype",
109
+ weights: ["400", "700"]
110
+ },
111
+ {
112
+ name: "Tahoma",
113
+ weights: ["400", "700"]
114
+ },
115
+ {
116
+ name: "Times New Roman",
117
+ weights: ["400", "700"]
118
+ },
119
+ {
120
+ name: "Trebuchet MS",
121
+ weights: ["400", "700"]
122
+ },
123
+ {
124
+ name: "Ubuntu",
125
+ weights: [
126
+ "300",
127
+ "400",
128
+ "500",
129
+ "700"
130
+ ]
131
+ },
132
+ {
133
+ name: "Varela",
134
+ weights: ["400"]
135
+ },
136
+ {
137
+ name: "Varela Round",
138
+ weights: ["400"]
139
+ },
140
+ {
141
+ name: "Verdana",
142
+ weights: ["400", "700"]
143
+ },
144
+ {
145
+ name: "Vollkorn",
146
+ weights: ["400", "700"]
147
+ },
148
+ {
149
+ name: "system-ui",
150
+ weights: [
151
+ "100",
152
+ "200",
153
+ "300",
154
+ "400",
155
+ "500",
156
+ "600",
157
+ "700"
158
+ ]
159
+ }
160
+ ], t = {
161
+ 100: "Thin",
162
+ 200: "Extra Light",
163
+ 300: "Light",
164
+ 400: "Normal",
165
+ 500: "Medium",
166
+ 600: "Semi Bold",
167
+ 700: "Bold",
168
+ 800: "Extra Bold",
169
+ 900: "Black"
170
+ };
171
+ //#endregion
172
+ export { e as defaultFonts, t as weights };
@@ -0,0 +1,10 @@
1
+ import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
2
+ export type TypographyFontProps = {
3
+ partialValue?: StyleValue;
4
+ fonts?: {
5
+ name: string;
6
+ }[];
7
+ onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
8
+ };
9
+ declare const TypographyFont: ({ partialValue, fonts, onChange }: TypographyFontProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default TypographyFont;
@@ -0,0 +1,22 @@
1
+ import e from "../../components/CategoryOption/index.mjs";
2
+ import t from "../../components/CategorySection/index.mjs";
3
+ import { defaultFonts as n } from "./TypographyConstants.mjs";
4
+ import { useMemo as r } from "react";
5
+ import { jsx as i } from "react/jsx-runtime";
6
+ //#region src/components/StyleInspector/categories/Typography/TypographyFont.tsx
7
+ var a = ({ partialValue: a, fonts: o, onChange: s }) => (o = r(() => [...o ?? [], ...n], [o]), /* @__PURE__ */ i(t, {
8
+ label: "F. Family",
9
+ keys: ["font-family"],
10
+ children: /* @__PURE__ */ i(e, {
11
+ value: a,
12
+ onChange: s,
13
+ type: "select",
14
+ children: o.map((e) => /* @__PURE__ */ i("option", {
15
+ style: { fontFamily: e.name },
16
+ value: e.name,
17
+ children: e.name
18
+ }, e.name))
19
+ })
20
+ }));
21
+ //#endregion
22
+ export { a as default };
@@ -0,0 +1,8 @@
1
+ import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
2
+ export type TypographyStyleProps = {
3
+ fontStyle?: StyleValue;
4
+ textDecoration?: StyleValue;
5
+ onChange?: (category: StyleCategory) => (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
6
+ };
7
+ declare const TypographyStyle: ({ fontStyle, textDecoration, onChange }: TypographyStyleProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default TypographyStyle;
@@ -0,0 +1,64 @@
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/TextDecorationOverline";
7
+ //#region src/components/StyleInspector/categories/Typography/TypographyStyle.tsx
8
+ var c = ({ fontStyle: c, textDecoration: l, onChange: u }) => {
9
+ let d = n(() => [{
10
+ value: "normal",
11
+ icon: "fa-solid fa-font",
12
+ description: "Normal",
13
+ active: c === "normal"
14
+ }, {
15
+ value: "italic",
16
+ icon: "fa-solid fa-italic",
17
+ description: "Italic",
18
+ active: c === "italic"
19
+ }], [c]), f = n(() => [
20
+ {
21
+ value: "none",
22
+ icon: /* @__PURE__ */ i(o, {}),
23
+ description: "None",
24
+ active: l === "none"
25
+ },
26
+ {
27
+ value: "line-through",
28
+ icon: "fa-solid fa-strikethrough",
29
+ description: "Strikethrough",
30
+ active: l === "line-through"
31
+ },
32
+ {
33
+ value: "underline",
34
+ icon: "fa-solid fa-underline",
35
+ description: "Underline",
36
+ active: l === "underline"
37
+ },
38
+ {
39
+ value: "overline",
40
+ icon: /* @__PURE__ */ i(s, {}),
41
+ description: "Overline",
42
+ active: l === "overline"
43
+ }
44
+ ], [l]);
45
+ return /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i(t, {
46
+ label: "Italicize",
47
+ keys: ["font-style"],
48
+ children: /* @__PURE__ */ i(e, {
49
+ onChange: u?.("font-style"),
50
+ type: "iconGroup",
51
+ items: d
52
+ })
53
+ }), /* @__PURE__ */ i(t, {
54
+ label: "Decoration",
55
+ keys: ["text-decoration"],
56
+ children: /* @__PURE__ */ i(e, {
57
+ onChange: u?.("text-decoration"),
58
+ type: "iconGroup",
59
+ items: f
60
+ })
61
+ })] });
62
+ };
63
+ //#endregion
64
+ export { c as default };
@@ -0,0 +1,7 @@
1
+ import { StyleCategory, StyleValue } from '@plitzi/sdk-shared';
2
+ export type TypographyTextShadowProps = {
3
+ value?: StyleValue;
4
+ onChange?: (value: StyleValue | Record<StyleCategory, StyleValue> | boolean) => void;
5
+ };
6
+ declare const TypographyTextShadow: ({ value, onChange }: TypographyTextShadowProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default TypographyTextShadow;
@@ -0,0 +1,43 @@
1
+ import e from "../../components/InspectorLabel/index.mjs";
2
+ import t from "../../components/CategorySection/index.mjs";
3
+ import n from "./TypographyTextShadowItem.mjs";
4
+ import { useCallback as r } from "react";
5
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
+ //#region src/components/StyleInspector/categories/Typography/TypographyTextShadow.tsx
7
+ var o = ({ value: o, onChange: s }) => {
8
+ let c = r((e) => (t) => {
9
+ t.stopPropagation(), t.preventDefault();
10
+ let n = o.split(",").toSpliced(e, 1);
11
+ s?.(n.length > 0 ? n.join(",") : "");
12
+ }, [s, o]), l = r((e) => (t) => {
13
+ let n = o.split(",");
14
+ n[e] = t, s?.(n.join(","));
15
+ }, [s, o]), u = r(() => {
16
+ let e = o === "" ? [] : o.split(",");
17
+ e.push("2px 2px 5px black"), s?.(e.join(","));
18
+ }, [s, o]), d = [];
19
+ return o !== "" && (d = o.split(",")), /* @__PURE__ */ a(t, {
20
+ direction: "column",
21
+ children: [/* @__PURE__ */ a("div", {
22
+ className: "flex w-full justify-between",
23
+ children: [/* @__PURE__ */ i(e, {
24
+ keyValue: ["text-shadow"],
25
+ children: "Text Shadow"
26
+ }), /* @__PURE__ */ i("button", {
27
+ className: "cursor-pointer",
28
+ type: "button",
29
+ onClick: u,
30
+ children: /* @__PURE__ */ i("i", { className: "fas fa-plus" })
31
+ })]
32
+ }), d.length > 0 && /* @__PURE__ */ i("div", {
33
+ className: "mt-1",
34
+ children: d.map((e, t) => /* @__PURE__ */ i(n, {
35
+ value: e,
36
+ onChange: l(t),
37
+ onRemove: c(t)
38
+ }, t))
39
+ })]
40
+ });
41
+ };
42
+ //#endregion
43
+ export { o as default };
@@ -0,0 +1,8 @@
1
+ import { MouseEvent } from 'react';
2
+ export type TypographyTextShadowItemProps = {
3
+ value?: string;
4
+ onChange?: (value: string) => void;
5
+ onRemove?: (e: MouseEvent) => void;
6
+ };
7
+ declare const TypographyTextShadowItem: ({ value, onRemove, onChange }: TypographyTextShadowItemProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default TypographyTextShadowItem;