@wavemaker/foundation-css 11.14.2-rc.6311 → 11.14.4-rc.647538

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 (397) hide show
  1. package/cjs/foundation-css.cjs +5743 -5598
  2. package/cjs/src_tokens_mobile_components_accordion_accordion_json.foundation-css.cjs +4 -4
  3. package/cjs/src_tokens_mobile_components_anchor_anchor_json.foundation-css.cjs +4 -4
  4. package/cjs/src_tokens_mobile_components_audio_audio_json.foundation-css.cjs +4 -4
  5. package/cjs/src_tokens_mobile_components_badge_badge_json.foundation-css.cjs +3 -3
  6. package/cjs/src_tokens_mobile_components_barcodescanner_barcodescanner_json.foundation-css.cjs +4 -4
  7. package/cjs/src_tokens_mobile_components_bottomsheet_bottomsheet_json.foundation-css.cjs +4 -4
  8. package/cjs/src_tokens_mobile_components_breadcrumb_breadcrumb_json.foundation-css.cjs +3 -3
  9. package/cjs/src_tokens_mobile_components_button-group_button-group_json.foundation-css.cjs +4 -4
  10. package/cjs/src_tokens_mobile_components_button_button_json.foundation-css.cjs +4 -4
  11. package/cjs/src_tokens_mobile_components_calendar_calendar_json.foundation-css.cjs +4 -4
  12. package/cjs/src_tokens_mobile_components_camera_camera_json.foundation-css.cjs +4 -4
  13. package/cjs/src_tokens_mobile_components_cards_cards_json.foundation-css.cjs +4 -4
  14. package/cjs/src_tokens_mobile_components_carousel_carousel_json.foundation-css.cjs +4 -4
  15. package/cjs/src_tokens_mobile_components_checkbox_checkbox_json.foundation-css.cjs +4 -4
  16. package/cjs/src_tokens_mobile_components_checkboxset_checkboxset_json.foundation-css.cjs +4 -4
  17. package/cjs/src_tokens_mobile_components_chips_chips_json.foundation-css.cjs +4 -4
  18. package/cjs/src_tokens_mobile_components_container_container_json.foundation-css.cjs +4 -4
  19. package/cjs/src_tokens_mobile_components_currency_currency_json.foundation-css.cjs +3 -3
  20. package/cjs/src_tokens_mobile_components_datetime_datetime_json.foundation-css.cjs +4 -4
  21. package/cjs/src_tokens_mobile_components_dropdown-menu_dropdown-menu_json.foundation-css.cjs +4 -4
  22. package/cjs/src_tokens_mobile_components_fileupload_fileupload_json.foundation-css.cjs +4 -4
  23. package/cjs/src_tokens_mobile_components_form-control_form-control_json.foundation-css.cjs +14 -0
  24. package/cjs/src_tokens_mobile_components_form-input_form-input_json.foundation-css.cjs +14 -0
  25. package/cjs/src_tokens_mobile_components_grid-layout_grid-layout_json.foundation-css.cjs +3 -3
  26. package/cjs/src_tokens_mobile_components_icon_icon_json.foundation-css.cjs +4 -4
  27. package/cjs/src_tokens_mobile_components_label_label_json.foundation-css.cjs +4 -4
  28. package/cjs/src_tokens_mobile_components_left-nav_left-nav_json.foundation-css.cjs +4 -4
  29. package/cjs/src_tokens_mobile_components_list_list_json.foundation-css.cjs +4 -4
  30. package/cjs/src_tokens_mobile_components_login_login_json.foundation-css.cjs +4 -4
  31. package/cjs/src_tokens_mobile_components_lottie_lottie_json.foundation-css.cjs +4 -4
  32. package/cjs/src_tokens_mobile_components_message_message_json.foundation-css.cjs +4 -4
  33. package/cjs/src_tokens_mobile_components_modal-dialog_modal-dialog_json.foundation-css.cjs +4 -4
  34. package/cjs/src_tokens_mobile_components_nav_nav_json.foundation-css.cjs +4 -4
  35. package/cjs/src_tokens_mobile_components_page-content_page-content_json.foundation-css.cjs +4 -4
  36. package/cjs/src_tokens_mobile_components_page-layout_page-layout_json.foundation-css.cjs +3 -3
  37. package/cjs/src_tokens_mobile_components_pagination_pagination_json.foundation-css.cjs +3 -3
  38. package/cjs/src_tokens_mobile_components_panel_panel_json.foundation-css.cjs +4 -4
  39. package/cjs/src_tokens_mobile_components_picture_picture_json.foundation-css.cjs +4 -4
  40. package/cjs/src_tokens_mobile_components_popover_popover_json.foundation-css.cjs +4 -4
  41. package/cjs/src_tokens_mobile_components_progress-bar_progress-bar_json.foundation-css.cjs +4 -4
  42. package/cjs/src_tokens_mobile_components_progress-circle_progress-circle_json.foundation-css.cjs +4 -4
  43. package/cjs/src_tokens_mobile_components_radioset_radioset_json.foundation-css.cjs +4 -4
  44. package/cjs/src_tokens_mobile_components_rating_rating_json.foundation-css.cjs +4 -4
  45. package/cjs/src_tokens_mobile_components_richtext-editor_richtext-editor_json.foundation-css.cjs +3 -3
  46. package/cjs/src_tokens_mobile_components_scrollbar_scrollbar_json.foundation-css.cjs +3 -3
  47. package/cjs/src_tokens_mobile_components_search_search_json.foundation-css.cjs +4 -4
  48. package/cjs/src_tokens_mobile_components_select_select_json.foundation-css.cjs +4 -4
  49. package/cjs/src_tokens_mobile_components_slider_slider_json.foundation-css.cjs +4 -4
  50. package/cjs/src_tokens_mobile_components_spinner_spinner_json.foundation-css.cjs +4 -4
  51. package/cjs/src_tokens_mobile_components_switch_switch_json.foundation-css.cjs +4 -4
  52. package/cjs/src_tokens_mobile_components_tabbar_tabbar_json.foundation-css.cjs +4 -4
  53. package/cjs/src_tokens_mobile_components_tabs_tabs_json.foundation-css.cjs +4 -4
  54. package/cjs/src_tokens_mobile_components_textarea_textarea_json.foundation-css.cjs +4 -4
  55. package/cjs/src_tokens_mobile_components_tile_tile_json.foundation-css.cjs +4 -4
  56. package/cjs/src_tokens_mobile_components_toast_toast_json.foundation-css.cjs +3 -3
  57. package/cjs/src_tokens_mobile_components_toggle_toggle_json.foundation-css.cjs +4 -4
  58. package/cjs/src_tokens_mobile_components_video_video_json.foundation-css.cjs +4 -4
  59. package/cjs/src_tokens_mobile_components_webview_webview_json.foundation-css.cjs +4 -4
  60. package/cjs/src_tokens_mobile_components_wizard_wizard_json.foundation-css.cjs +4 -4
  61. package/cjs/src_tokens_web_components_accordion_accordion_json.foundation-css.cjs +4 -4
  62. package/cjs/src_tokens_web_components_anchor_anchor_json.foundation-css.cjs +4 -4
  63. package/cjs/src_tokens_web_components_audio_audio_json.foundation-css.cjs +4 -4
  64. package/cjs/src_tokens_web_components_badge_badge_json.foundation-css.cjs +4 -4
  65. package/cjs/src_tokens_web_components_breadcrumb_breadcrumb_json.foundation-css.cjs +4 -4
  66. package/cjs/src_tokens_web_components_button-group_button-group_json.foundation-css.cjs +4 -4
  67. package/cjs/src_tokens_web_components_button_button_json.foundation-css.cjs +4 -4
  68. package/cjs/src_tokens_web_components_calendar_calendar_json.foundation-css.cjs +4 -4
  69. package/cjs/src_tokens_web_components_cards_cards_json.foundation-css.cjs +4 -4
  70. package/cjs/src_tokens_web_components_carousel_carousel_json.foundation-css.cjs +4 -4
  71. package/cjs/src_tokens_web_components_checkbox_checkbox_json.foundation-css.cjs +4 -4
  72. package/cjs/src_tokens_web_components_checkboxset_checkboxset_json.foundation-css.cjs +4 -4
  73. package/cjs/src_tokens_web_components_chips_chips_json.foundation-css.cjs +4 -4
  74. package/cjs/src_tokens_web_components_color-picker_color-picker_json.foundation-css.cjs +4 -4
  75. package/cjs/src_tokens_web_components_container_container_json.foundation-css.cjs +4 -4
  76. package/cjs/src_tokens_web_components_currency_currency_json.foundation-css.cjs +4 -4
  77. package/cjs/src_tokens_web_components_data-table_data-table_json.foundation-css.cjs +4 -4
  78. package/cjs/src_tokens_web_components_date_date_json.foundation-css.cjs +4 -4
  79. package/cjs/src_tokens_web_components_dropdown-menu_dropdown-menu_json.foundation-css.cjs +4 -4
  80. package/cjs/src_tokens_web_components_fileupload_fileupload_json.foundation-css.cjs +4 -4
  81. package/cjs/src_tokens_web_components_form-controls_form-controls_json.foundation-css.cjs +4 -4
  82. package/cjs/src_tokens_web_components_grid-layout_grid-layout_json.foundation-css.cjs +4 -4
  83. package/cjs/src_tokens_web_components_icon_icon_json.foundation-css.cjs +4 -4
  84. package/cjs/src_tokens_web_components_iframe_iframe_json.foundation-css.cjs +4 -4
  85. package/cjs/src_tokens_web_components_label_label_json.foundation-css.cjs +4 -4
  86. package/cjs/src_tokens_web_components_list_list_json.foundation-css.cjs +4 -4
  87. package/cjs/src_tokens_web_components_message_message_json.foundation-css.cjs +4 -4
  88. package/cjs/src_tokens_web_components_modal-dialog_modal-dialog_json.foundation-css.cjs +4 -4
  89. package/cjs/src_tokens_web_components_nav_nav_json.foundation-css.cjs +4 -4
  90. package/cjs/src_tokens_web_components_page-content_page-content_json.foundation-css.cjs +4 -4
  91. package/cjs/src_tokens_web_components_page-footer_page-footer_json.foundation-css.cjs +4 -4
  92. package/cjs/src_tokens_web_components_page-header_page-header_json.foundation-css.cjs +4 -4
  93. package/cjs/src_tokens_web_components_page-left-nav_page-left-nav_json.foundation-css.cjs +4 -4
  94. package/cjs/src_tokens_web_components_page-right-nav_page-right-nav_json.foundation-css.cjs +4 -4
  95. package/cjs/src_tokens_web_components_page-top-nav_page-top-nav_json.foundation-css.cjs +4 -4
  96. package/cjs/src_tokens_web_components_pagination_pagination_json.foundation-css.cjs +4 -4
  97. package/cjs/src_tokens_web_components_panel_panel_json.foundation-css.cjs +4 -4
  98. package/cjs/src_tokens_web_components_picture_picture_json.foundation-css.cjs +4 -4
  99. package/cjs/src_tokens_web_components_popover_popover_json.foundation-css.cjs +4 -4
  100. package/cjs/src_tokens_web_components_progress-bar_progress-bar_json.foundation-css.cjs +4 -4
  101. package/cjs/src_tokens_web_components_progress-circle_progress-circle_json.foundation-css.cjs +4 -4
  102. package/cjs/src_tokens_web_components_radioset_radioset_json.foundation-css.cjs +4 -4
  103. package/cjs/src_tokens_web_components_rating_rating_json.foundation-css.cjs +4 -4
  104. package/cjs/src_tokens_web_components_richtext-editor_richtext-editor_json.foundation-css.cjs +4 -4
  105. package/cjs/src_tokens_web_components_scrollbar_scrollbar_json.foundation-css.cjs +4 -4
  106. package/cjs/src_tokens_web_components_search_search_json.foundation-css.cjs +4 -4
  107. package/cjs/src_tokens_web_components_spinner_spinner_json.foundation-css.cjs +4 -4
  108. package/cjs/src_tokens_web_components_switch_switch_json.foundation-css.cjs +4 -4
  109. package/cjs/src_tokens_web_components_tabs_tabs_json.foundation-css.cjs +4 -4
  110. package/cjs/src_tokens_web_components_tile_tile_json.foundation-css.cjs +4 -4
  111. package/cjs/src_tokens_web_components_time_time_json.foundation-css.cjs +4 -4
  112. package/cjs/src_tokens_web_components_toast_toast_json.foundation-css.cjs +4 -4
  113. package/cjs/src_tokens_web_components_toggle_toggle_json.foundation-css.cjs +4 -4
  114. package/cjs/src_tokens_web_components_video_video_json.foundation-css.cjs +4 -4
  115. package/cjs/src_tokens_web_components_wizard_wizard_json.foundation-css.cjs +4 -4
  116. package/foundation/foundation.css +2 -2
  117. package/foundation/foundation.min.css +1 -1
  118. package/native_mobile.index.d.ts +2 -27
  119. package/native_mobile.index.js +5 -39
  120. package/native_mobile.index.js.map +1 -1
  121. package/npm-shrinkwrap.json +498 -202
  122. package/package-lock.json +498 -202
  123. package/package.json +1 -1
  124. package/src/styles/mobile/components/basic/icon.less +4 -4
  125. package/src/styles/mobile/components/basic/progress-bar.less +2 -2
  126. package/src/styles/mobile/components/basic/progress-circle.less +0 -3
  127. package/src/styles/mobile/components/basic/search.less +3 -3
  128. package/src/styles/mobile/components/container/accordion.less +17 -41
  129. package/src/styles/mobile/components/container/panel.less +1 -4
  130. package/src/styles/mobile/components/container/tabs/tab-header.less +6 -3
  131. package/src/styles/mobile/components/container/tile.less +1 -1
  132. package/src/styles/mobile/components/container/wizard.less +2 -2
  133. package/src/styles/mobile/components/container.less +6 -45
  134. package/src/styles/mobile/components/data/card.less +6 -1
  135. package/src/styles/mobile/components/data/form.less +104 -160
  136. package/src/styles/mobile/components/data/list.less +44 -10
  137. package/src/styles/mobile/components/input/checkbox.less +10 -3
  138. package/src/styles/mobile/components/input/checkboxset.less +9 -1
  139. package/src/styles/mobile/components/input/chips.less +4 -4
  140. package/src/styles/mobile/components/input/radioset.less +6 -2
  141. package/src/styles/mobile/components/input/toggle.less +5 -5
  142. package/src/styles/mobile/components/navigation/appnavbar.less +17 -53
  143. package/src/styles/mobile/components/navigation/menu.less +1 -5
  144. package/src/styles/mobile/components/navigation/popover.less +0 -26
  145. package/src/styles/mobile/components/page/page-content.less +1 -1
  146. package/src/styles/mobile/components/tokens.light.css +102 -135
  147. package/src/styles/mobile/components/variables/accordion.variant.less +1 -7
  148. package/src/styles/mobile/components/variables/button.variant.less +1 -1
  149. package/src/styles/mobile/components/variables/checkbox.variant.less +2 -3
  150. package/src/styles/mobile/components/variables/checkboxset.variant.less +1 -4
  151. package/src/styles/mobile/components/variables/chips.variant.less +1 -2
  152. package/src/styles/mobile/components/variables/container.variant.less +6 -6
  153. package/src/styles/mobile/components/variables/form-input.variant.less +14 -0
  154. package/src/styles/mobile/components/variables/radioset.variant.less +1 -2
  155. package/src/styles/mobile/components/variables/tabbar.variant.less +1 -3
  156. package/src/styles/mobile/components/variables/tabs.variant.less +2 -7
  157. package/src/styles/mobile/components/variables/toggle.variant.less +1 -2
  158. package/src/styles/mobile/components/variables/wizard.variant.less +1 -4
  159. package/src/styles/mobile/studio/advanced/login.less +5 -8
  160. package/src/styles/mobile/studio/basic/anchor.less +4 -15
  161. package/src/styles/mobile/studio/basic/button.less +2 -20
  162. package/src/styles/mobile/studio/basic/{button-group.less → buttongroup.less} +19 -18
  163. package/src/styles/mobile/studio/basic/message.less +5 -34
  164. package/src/styles/mobile/studio/basic/search.less +6 -30
  165. package/src/styles/mobile/studio/container/tabs/tab-header.less +34 -0
  166. package/src/styles/mobile/studio/container/wizard.less +1 -3
  167. package/src/styles/mobile/studio/data/cards.less +36 -0
  168. package/src/styles/mobile/studio/device/barcodescanner.less +3 -0
  169. package/src/styles/mobile/studio/input/checkbox.less +89 -64
  170. package/src/styles/mobile/studio/input/checkboxset.less +98 -61
  171. package/src/styles/mobile/studio/input/epoch/datetime-picker-modal.less +7 -7
  172. package/src/styles/mobile/studio/input/form.less +74 -143
  173. package/src/styles/mobile/studio/input/radioset.less +6 -1
  174. package/src/styles/mobile/studio/input/rating.less +12 -19
  175. package/src/styles/mobile/studio/input/switch.less +3 -12
  176. package/src/styles/mobile/studio/input/toggle.less +7 -10
  177. package/src/styles/mobile/studio/navigation/menu.less +17 -19
  178. package/src/styles/mobile/studio/page/page-content.less +4 -0
  179. package/src/styles/mobile/studio/page/tabbar.less +19 -0
  180. package/src/styles/mobile/studio/slider.less +27 -0
  181. package/src/styles/mobile/studio/styles.less +24 -17
  182. package/src/tokens/mobile/components/accordion/accordion.json +36 -216
  183. package/src/tokens/mobile/components/anchor/anchor.json +12 -60
  184. package/src/tokens/mobile/components/audio/audio.json +1 -5
  185. package/src/tokens/mobile/components/barcodescanner/barcodescanner.json +17 -85
  186. package/src/tokens/mobile/components/bottomsheet/bottomsheet.json +19 -95
  187. package/src/tokens/mobile/components/button/button.json +36 -175
  188. package/src/tokens/mobile/components/button-group/button-group.json +3 -15
  189. package/src/tokens/mobile/components/calendar/calendar.json +37 -185
  190. package/src/tokens/mobile/components/camera/camera.json +8 -40
  191. package/src/tokens/mobile/components/cards/cards.json +10 -50
  192. package/src/tokens/mobile/components/carousel/carousel.json +29 -145
  193. package/src/tokens/mobile/components/checkbox/checkbox.json +24 -112
  194. package/src/tokens/mobile/components/checkboxset/checkboxset.json +33 -177
  195. package/src/tokens/mobile/components/chips/chips.json +47 -231
  196. package/src/tokens/mobile/components/container/container.json +29 -105
  197. package/src/tokens/mobile/components/datetime/datetime.json +23 -115
  198. package/src/tokens/mobile/components/dropdown-menu/dropdown-menu.json +25 -160
  199. package/src/tokens/mobile/components/fileupload/fileupload.json +12 -60
  200. package/src/tokens/mobile/components/form-control/form-control.json +217 -0
  201. package/src/tokens/mobile/components/form-input/form-input.json +153 -0
  202. package/src/tokens/mobile/components/icon/icon.json +6 -30
  203. package/src/tokens/mobile/components/label/label.json +13 -65
  204. package/src/tokens/mobile/components/left-nav/left-nav.json +6 -30
  205. package/src/tokens/mobile/components/list/list.json +145 -107
  206. package/src/tokens/mobile/components/login/login.json +8 -40
  207. package/src/tokens/mobile/components/lottie/lottie.json +2 -10
  208. package/src/tokens/mobile/components/message/message.json +23 -115
  209. package/src/tokens/mobile/components/modal-dialog/modal-dialog.json +27 -135
  210. package/src/tokens/mobile/components/nav/nav.json +12 -60
  211. package/src/tokens/mobile/components/page-content/page-content.json +2 -14
  212. package/src/tokens/mobile/components/panel/panel.json +54 -150
  213. package/src/tokens/mobile/components/picture/picture.json +9 -45
  214. package/src/tokens/mobile/components/popover/popover.json +25 -212
  215. package/src/tokens/mobile/components/progress-bar/progress-bar.json +12 -60
  216. package/src/tokens/mobile/components/progress-circle/progress-circle.json +4 -50
  217. package/src/tokens/mobile/components/radioset/radioset.json +28 -136
  218. package/src/tokens/mobile/components/rating/rating.json +10 -50
  219. package/src/tokens/mobile/components/search/search.json +45 -221
  220. package/src/tokens/mobile/components/select/select.json +16 -80
  221. package/src/tokens/mobile/components/slider/slider.json +11 -55
  222. package/src/tokens/mobile/components/spinner/spinner.json +9 -45
  223. package/src/tokens/mobile/components/switch/switch.json +16 -80
  224. package/src/tokens/mobile/components/tabbar/tabbar.json +33 -161
  225. package/src/tokens/mobile/components/tabs/tabs.json +36 -158
  226. package/src/tokens/mobile/components/textarea/textarea.json +1 -5
  227. package/src/tokens/mobile/components/tile/tile.json +8 -36
  228. package/src/tokens/mobile/components/toggle/toggle.json +17 -81
  229. package/src/tokens/mobile/components/video/video.json +2 -10
  230. package/src/tokens/mobile/components/webview/webview.json +1 -5
  231. package/src/tokens/mobile/components/wizard/wizard.json +64 -332
  232. package/src/tokens/mobile/global/border-style/border-style.json +42 -0
  233. package/src/tokens/web/components/accordion/accordion.json +31 -113
  234. package/src/tokens/web/components/anchor/anchor.json +13 -25
  235. package/src/tokens/web/components/audio/audio.json +2 -3
  236. package/src/tokens/web/components/badge/badge.json +11 -22
  237. package/src/tokens/web/components/breadcrumb/breadcrumb.json +22 -35
  238. package/src/tokens/web/components/button/button.json +27 -53
  239. package/src/tokens/web/components/button-group/button-group.json +2 -3
  240. package/src/tokens/web/components/calendar/calendar.json +23 -45
  241. package/src/tokens/web/components/cards/cards.json +15 -29
  242. package/src/tokens/web/components/carousel/carousel.json +15 -30
  243. package/src/tokens/web/components/checkbox/checkbox.json +24 -47
  244. package/src/tokens/web/components/checkboxset/checkboxset.json +1 -2
  245. package/src/tokens/web/components/chips/chips.json +36 -71
  246. package/src/tokens/web/components/color-picker/color-picker.json +3 -5
  247. package/src/tokens/web/components/container/container.json +5 -10
  248. package/src/tokens/web/components/currency/currency.json +7 -13
  249. package/src/tokens/web/components/data-table/data-table.json +47 -95
  250. package/src/tokens/web/components/date/date.json +26 -51
  251. package/src/tokens/web/components/dropdown-menu/dropdown-menu.json +17 -34
  252. package/src/tokens/web/components/fileupload/fileupload.json +37 -73
  253. package/src/tokens/web/components/form-controls/form-controls.json +42 -81
  254. package/src/tokens/web/components/grid-layout/grid-layout.json +4 -7
  255. package/src/tokens/web/components/icon/icon.json +7 -13
  256. package/src/tokens/web/components/iframe/iframe.json +3 -5
  257. package/src/tokens/web/components/label/label.json +10 -19
  258. package/src/tokens/web/components/list/list.json +13 -25
  259. package/src/tokens/web/components/message/message.json +15 -29
  260. package/src/tokens/web/components/modal-dialog/modal-dialog.json +24 -47
  261. package/src/tokens/web/components/nav/nav.json +17 -34
  262. package/src/tokens/web/components/page-content/page-content.json +2 -3
  263. package/src/tokens/web/components/page-footer/page-footer.json +11 -21
  264. package/src/tokens/web/components/page-header/page-header.json +11 -21
  265. package/src/tokens/web/components/page-left-nav/page-left-nav.json +47 -93
  266. package/src/tokens/web/components/page-right-nav/page-right-nav.json +47 -93
  267. package/src/tokens/web/components/page-top-nav/page-top-nav.json +9 -17
  268. package/src/tokens/web/components/pagination/pagination.json +30 -61
  269. package/src/tokens/web/components/panel/panel.json +32 -75
  270. package/src/tokens/web/components/picture/picture.json +9 -17
  271. package/src/tokens/web/components/popover/popover.json +26 -51
  272. package/src/tokens/web/components/progress-bar/progress-bar.json +8 -15
  273. package/src/tokens/web/components/progress-circle/progress-circle.json +4 -7
  274. package/src/tokens/web/components/radioset/radioset.json +17 -33
  275. package/src/tokens/web/components/rating/rating.json +11 -21
  276. package/src/tokens/web/components/richtext-editor/richtext-editor.json +99 -199
  277. package/src/tokens/web/components/scrollbar/scrollbar.json +8 -15
  278. package/src/tokens/web/components/search/search.json +32 -63
  279. package/src/tokens/web/components/spinner/spinner.json +8 -15
  280. package/src/tokens/web/components/switch/switch.json +13 -25
  281. package/src/tokens/web/components/tabs/tabs.json +25 -49
  282. package/src/tokens/web/components/tile/tile.json +5 -10
  283. package/src/tokens/web/components/time/time.json +34 -63
  284. package/src/tokens/web/components/toast/toast.json +28 -55
  285. package/src/tokens/web/components/toggle/toggle.json +13 -25
  286. package/src/tokens/web/components/video/video.json +3 -5
  287. package/src/tokens/web/components/wizard/wizard.json +51 -101
  288. package/src/utils/style-dictionary-utils.d.ts +1 -1
  289. package/src/utils/style-dictionary-utils.js +3 -44
  290. package/src/utils/style-dictionary-utils.js.map +1 -1
  291. package/cjs/src_tokens_mobile_components_form-controls_form-controls_json.foundation-css.cjs +0 -14
  292. package/cjs/src_tokens_mobile_components_form-wrapper_form-wrapper_json.foundation-css.cjs +0 -14
  293. package/cjs/src_tokens_mobile_components_navbar_navbar_json.foundation-css.cjs +0 -14
  294. package/src/styles/mobile/components/variables/form-controls.variant.less +0 -14
  295. package/src/styles/mobile/studio/advanced/styles.less +0 -2
  296. package/src/styles/mobile/studio/basic/icon.less +0 -21
  297. package/src/styles/mobile/studio/basic/label.less +0 -28
  298. package/src/styles/mobile/studio/basic/progress-bar.less +0 -6
  299. package/src/styles/mobile/studio/basic/progress-circle.less +0 -9
  300. package/src/styles/mobile/studio/basic/spinner.less +0 -6
  301. package/src/styles/mobile/studio/basic/styles.less +0 -11
  302. package/src/styles/mobile/studio/container/accordion.less +0 -26
  303. package/src/styles/mobile/studio/container/container.less +0 -18
  304. package/src/styles/mobile/studio/container/grid.less +0 -8
  305. package/src/styles/mobile/studio/container/panel.less +0 -46
  306. package/src/styles/mobile/studio/container/styles.less +0 -6
  307. package/src/styles/mobile/studio/container/tabs.less +0 -113
  308. package/src/styles/mobile/studio/container/tile.less +0 -7
  309. package/src/styles/mobile/studio/data/card.less +0 -25
  310. package/src/styles/mobile/studio/data/form.less +0 -22
  311. package/src/styles/mobile/studio/data/list.less +0 -3
  312. package/src/styles/mobile/studio/data/styles.less +0 -3
  313. package/src/styles/mobile/studio/device/barcode.less +0 -23
  314. package/src/styles/mobile/studio/device/camera.less +0 -4
  315. package/src/styles/mobile/studio/device/styles.less +0 -2
  316. package/src/styles/mobile/studio/dialogs/alert-dialog.less +0 -10
  317. package/src/styles/mobile/studio/dialogs/base-dialog.less +0 -31
  318. package/src/styles/mobile/studio/dialogs/confirm-dialog.less +0 -26
  319. package/src/styles/mobile/studio/dialogs/styles.less +0 -3
  320. package/src/styles/mobile/studio/input/calendar.less +0 -8
  321. package/src/styles/mobile/studio/input/chips.less +0 -11
  322. package/src/styles/mobile/studio/input/currency.less +0 -16
  323. package/src/styles/mobile/studio/input/date.less +0 -7
  324. package/src/styles/mobile/studio/input/number.less +0 -6
  325. package/src/styles/mobile/studio/input/select.less +0 -6
  326. package/src/styles/mobile/studio/input/slider.less +0 -49
  327. package/src/styles/mobile/studio/input/styles.less +0 -17
  328. package/src/styles/mobile/studio/input/text.less +0 -6
  329. package/src/styles/mobile/studio/input/textarea.less +0 -5
  330. package/src/styles/mobile/studio/layouts/appnavbar.less +0 -71
  331. package/src/styles/mobile/studio/layouts/content.less +0 -5
  332. package/src/styles/mobile/studio/layouts/page-content.less +0 -11
  333. package/src/styles/mobile/studio/layouts/page.less +0 -5
  334. package/src/styles/mobile/studio/layouts/styles.less +0 -5
  335. package/src/styles/mobile/studio/layouts/tabbar.less +0 -36
  336. package/src/styles/mobile/studio/navigation/nav.less +0 -3
  337. package/src/styles/mobile/studio/navigation/popover.less +0 -3
  338. package/src/styles/mobile/studio/navigation/styles.less +0 -3
  339. package/src/tokens/mobile/components/form-controls/form-controls.json +0 -263
  340. package/src/tokens/mobile/components/form-wrapper/form-wrapper.json +0 -369
  341. package/src/tokens/mobile/components/navbar/navbar.json +0 -341
  342. package/src/tokens/web/components/accordion/Token.Readme.md +0 -30
  343. package/src/tokens/web/components/anchor/Token.Readme.md +0 -20
  344. package/src/tokens/web/components/audio/Token.Readme.md +0 -9
  345. package/src/tokens/web/components/badge/Token.Readme.md +0 -19
  346. package/src/tokens/web/components/breadcrumb/Token.Readme.md +0 -21
  347. package/src/tokens/web/components/button/Token.Readme.md +0 -29
  348. package/src/tokens/web/components/button-group/Token.Readme.md +0 -9
  349. package/src/tokens/web/components/calendar/Token.Readme.md +0 -30
  350. package/src/tokens/web/components/cards/Token.Readme.md +0 -22
  351. package/src/tokens/web/components/carousel/Token.Readme.md +0 -20
  352. package/src/tokens/web/components/checkbox/Token.Readme.md +0 -24
  353. package/src/tokens/web/components/checkboxset/Token.Readme.md +0 -9
  354. package/src/tokens/web/components/chips/Token.Readme.md +0 -43
  355. package/src/tokens/web/components/color-picker/Token.Readme.md +0 -10
  356. package/src/tokens/web/components/container/Token.Readme.md +0 -13
  357. package/src/tokens/web/components/currency/Token.Readme.md +0 -14
  358. package/src/tokens/web/components/data-table/Token.Readme.md +0 -54
  359. package/src/tokens/web/components/date/Token.Readme.md +0 -33
  360. package/src/tokens/web/components/dropdown-menu/Token.Readme.md +0 -25
  361. package/src/tokens/web/components/fileupload/Token.Readme.md +0 -44
  362. package/src/tokens/web/components/form-controls/Token.Readme.md +0 -47
  363. package/src/tokens/web/components/grid-layout/Token.Readme.md +0 -11
  364. package/src/tokens/web/components/icon/Token.Readme.md +0 -14
  365. package/src/tokens/web/components/iframe/Token.Readme.md +0 -10
  366. package/src/tokens/web/components/label/Token.Readme.md +0 -17
  367. package/src/tokens/web/components/list/Token.Readme.md +0 -19
  368. package/src/tokens/web/components/message/Token.Readme.md +0 -22
  369. package/src/tokens/web/components/modal-dialog/Token.Readme.md +0 -31
  370. package/src/tokens/web/components/nav/Token.Readme.md +0 -25
  371. package/src/tokens/web/components/page-content/Token.Readme.md +0 -9
  372. package/src/tokens/web/components/page-footer/Token.Readme.md +0 -18
  373. package/src/tokens/web/components/page-header/Token.Readme.md +0 -18
  374. package/src/tokens/web/components/page-left-nav/Token.Readme.md +0 -54
  375. package/src/tokens/web/components/page-right-nav/Token.Readme.md +0 -53
  376. package/src/tokens/web/components/page-top-nav/Token.Readme.md +0 -16
  377. package/src/tokens/web/components/pagination/Token.Readme.md +0 -35
  378. package/src/tokens/web/components/panel/Token.Readme.md +0 -39
  379. package/src/tokens/web/components/picture/Token.Readme.md +0 -16
  380. package/src/tokens/web/components/popover/Token.Readme.md +0 -33
  381. package/src/tokens/web/components/progress-bar/Token.Readme.md +0 -15
  382. package/src/tokens/web/components/progress-circle/Token.Readme.md +0 -11
  383. package/src/tokens/web/components/radioset/Token.Readme.md +0 -24
  384. package/src/tokens/web/components/rating/Token.Readme.md +0 -14
  385. package/src/tokens/web/components/richtext-editor/Token.Readme.md +0 -106
  386. package/src/tokens/web/components/scrollbar/Token.Readme.md +0 -15
  387. package/src/tokens/web/components/search/Token.Readme.md +0 -39
  388. package/src/tokens/web/components/spinner/Token.Readme.md +0 -15
  389. package/src/tokens/web/components/switch/Token.Readme.md +0 -20
  390. package/src/tokens/web/components/tabs/Token.Readme.md +0 -32
  391. package/src/tokens/web/components/tile/Token.Readme.md +0 -13
  392. package/src/tokens/web/components/time/Token.Readme.md +0 -37
  393. package/src/tokens/web/components/toast/Token.Readme.md +0 -35
  394. package/src/tokens/web/components/toggle/Token.Readme.md +0 -20
  395. package/src/tokens/web/components/video/Token.Readme.md +0 -10
  396. package/src/tokens/web/components/wizard/Token.Readme.md +0 -58
  397. /package/src/styles/mobile/studio/advanced/{carousel.less → carousel/carousel.less} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"style-dictionary-utils.js","sourceRoot":"./","sources":["src/utils/style-dictionary-utils.js"],"names":[],"mappings":";;;;;;;;;;;AACA,sEAAsE;AACtE,uFAAuF;AACvF,6EAA6E;AAC7E,SAAS,iBAAiB,CAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO;IACvD,mCAAmC;IACnC,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,C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,QAAQ,CAAC,CAAC;IAC/C,MAAM,SAAS,GAAG,UAAU,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAEvE,2DAA2D;IAC3D,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC;QAC7B,gBAAgB;QAChB,aAAa;QACb,UAAU;QACV,SAAS;QACT,QAAQ;QACR,SAAS;QACT,eAAe;QACf,SAAS;QACT,OAAO;KACR,CAAC,CAAC;IAEH,uFAAuF;IACvF,MAAM,QAAQ,GAAG,CAAC,OAAO,EAAE,EAAE,CAC3B,OAAO,CAAC,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAEzE,8CAA8C;IAC9C,MAAM,YAAY,GAAG,SAAS;SAC3B,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;SAC1D,GAAG,CAAC,QAAQ,CAAC;SACb,IAAI,CAAC,GAAG,CAAC,CAAC;IAEb,OAAO,YAAY,CAAC;AACtB,CAAC,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,CAAC","sourcesContent":["\n// If `opacity` exists, we apply a `color-mix` formula to blend colors\n// If `multiple` exists, we apply the `calc()` function to multiply the reference value\n// Otherwise, we simply replace the reference with its corresponding variable\nfunction processTokenValue(value, refs, multiple, opacity) {\n // Remove `mapping` from token.name\n const cleanName = refs.name.replace(/mapping-?/g, '');\n if (opacity) {\n return `color-mix(in srgb, var(--${cleanName}), transparent calc(100% - ${opacity}))`;\n } else if (multiple) {\n return value.replace(refs.value, `calc(var(--${cleanName}) * ${multiple})`);\n } else {\n return value.replace(refs.value, `var(--${cleanName})`);\n }\n}\n\n// Helper function to resolve references for both `multiple` and `opacity` and return the updated value\nfunction resolveTokenReferences(token, unfilteredTokens, usesReferences, getReferences) {\n let multiple = token.original?.attributes?.multiple;\n let opacity = token.original?.attributes?.opacity;\n\n // Resolve references in `multiple` and `opacity`\n multiple = resolveAndReplaceReferences(multiple, unfilteredTokens, usesReferences, getReferences);\n opacity = resolveAndReplaceReferences(opacity, unfilteredTokens, usesReferences, getReferences);\n\n return { multiple, opacity };\n}\n\n// Helper function to resolve references and return the token name\nfunction resolveAndReplaceReferences(attribute, unfilteredTokens, usesReferences, getReferences) {\n if (attribute && usesReferences(attribute, unfilteredTokens)) {\n const refs = getReferences(attribute, unfilteredTokens);\n refs.forEach(ref => {\n // Replace the reference with the resolved token name\n attribute = `var(--${ref.name})`;\n });\n }\n return attribute;\n}\n\n\nconst cssVarCalcMixFormatter = (usesReferences, getReferences, fs) => ({\n name: 'wm-calc-colormix-format',\n format: function ({ dictionary, options }) {\n const { selector, tokenReadmePath } = options;\n // Prepare Markdown table only if enabled\n const tableRows = ['| Token | Description |', '|-------|------------|'];\n \n // Generate CSS variable definitions\n const variables = dictionary.allTokens\n .map((token) => {\n // Remove `mapping` from token.name\n const cleanName = token.name.replace(/mapping-?/g, '');\n let value = getProcessedTokenValue(token, dictionary, usesReferences, getReferences);\n\n // Add to table if token has a description and table generation is enabled\n if (tokenReadmePath && token?.attributes?.description) {\n const pathName = token.path\n .slice(1) // ignore first key (btn, data-table etc.,)\n .filter(key => key !== 'mapping') // remove 'mapping'\n .join('.');\n\n // Keep full description but handle <br> tags properly for table\n let safeDescription = token?.attributes?.description\n .replace(/\\|/g, '\\\\|') // escape pipe characters\n .replace(/<br\\s*\\/?>/gi, '<br>') // keep <br> tags as HTML for proper rendering\n .trim();\n\n tableRows.push(`| ${pathName} | ${safeDescription} |`);\n }\n\n return `--${cleanName}: ${value};`;\n })\n .join(`\\n`);\n\n // Write the table if tokens has description\n if (tokenReadmePath && tableRows.length > 2 && fs) {\n tableRows.unshift(\n `<!-- AUTO-GENERATED FILE. Do not edit manually. -->`,\n ``,\n `# Token Reference Table`,\n ``,\n `This table lists all tokens for this component:`,\n ``\n );\n fs.writeFileSync(tokenReadmePath, tableRows.join('\\n'), 'utf8');\n console.log(`Token description table generated: ${tokenReadmePath}`);\n }\n\n // Return correctly formatted output based on selector\n return selector && selector.trim()\n ? `${selector} {\\n${variables}\\n}\\n` // Wrap in selector\n : `${variables}\\n`; // No selector, no closing bracket\n },\n}\n);\n\n\nfunction getProcessedTokenValue(token, dictionary, usesReferences, getReferences) {\n let value = String(token.value);\n // Checking if the token has references\n if (usesReferences(token.original.value, dictionary.unfilteredTokens)) {\n const refs = getReferences(token.original.value, dictionary.unfilteredTokens);\n\n refs.forEach((ref) => {\n // Resolve references for `multiple` and `opacity`\n const { multiple, opacity } = resolveTokenReferences(token, dictionary.unfilteredTokens, usesReferences, getReferences);\n // Process the value based on resolved references\n value = processTokenValue(value, ref, multiple, opacity);\n });\n } else {\n value = token.original.value || token.value\n }\n return value;\n}\n\nconst componentVariantsFormatter = (usesReferences, getReferences, platform, options = {}) => ({\n name: 'css/component-variants',\n format: function ({ dictionary, file, ...rest }) {\n const componentRootKey = Object.keys(dictionary.tokens)[0];\n if (!componentRootKey) {\n console.warn(`[Style Dictionary] Could not derive component name from source ${file.destination}`);\n return '';\n }\n\n const groupedVariants = groupTokensByVariantType(dictionary, componentRootKey, platform);\n const cssBlocks = Object.values(groupedVariants).map(group =>\n generateCssBlockFromGroup(group, dictionary, usesReferences, getReferences, platform)\n );\n\n // --- README GENERATION ---\n const generateReadmeFn = options.generateComponentReadme;\n if (generateReadmeFn) {\n generateReadmeFn(\n componentRootKey,\n groupedVariants,\n platform,\n dictionary,\n {...rest.options}\n );\n }\n // --- END README GENERATION ---\n\n return cssBlocks.join('\\n\\n');\n }\n});\n\nconst groupTokensByVariantType = (dictionary, componentRootKey, platform) => {\n const groups = {};\n const isMobile = platform === 'mobile';\n const mappingStore = {};\n\n dictionary.allTokens.forEach((token) => {\n const path = token.path;\n const appearanceIndex = path.indexOf('appearances');\n const variantGroupIndex = path.indexOf('variantGroups');\n const stateIndex = path.indexOf('states');\n const isState = stateIndex !== -1;\n const state = isState ? path[stateIndex + 1] : null;\n\n const appearance = appearanceIndex !== -1 ? path[appearanceIndex + 1] : null;\n const groupType = variantGroupIndex !== -1 ? path[variantGroupIndex + 1] : null;\n const variant = variantGroupIndex !== -1 ? path[variantGroupIndex + 2] : null;\n\n const isVariantToken = appearance && groupType && variant;\n const isTopLevelMapping = appearanceIndex === -1 && path[1] === 'mapping';\n const isAppearanceMapping = appearanceIndex !== -1 && path[appearanceIndex + 2] === 'mapping';\n\n let key, type, group;\n\n if (isVariantToken) {\n key = `${componentRootKey}-${appearance}-${groupType}-${variant}${isState ? `-${state}` : ''}`;\n type = isState ? 'state-variant' : 'variant';\n group = {\n type,\n component: componentRootKey,\n appearance,\n groupType,\n variant,\n state,\n };\n if (!groups[key]) {\n groups[key] = { ...group, tokens: [] };\n \n if (isMobile && mappingStore[appearance]) {\n groups[key].tokens.push(...mappingStore[appearance]);\n }\n } \n } else if (isTopLevelMapping) {\n key = `${componentRootKey}-mapping${isState ? `-${state}` : ''}`;\n type = isState ? 'state-mapping' : 'mapping';\n group = {\n type,\n component: componentRootKey,\n appearance: 'mapping',\n state,\n isRootMapping: true,\n };\n } else if (isAppearanceMapping) {\n const appearanceDef = dictionary.tokens?.[componentRootKey]?.appearances?.[appearance];\n const hasVariants = appearanceDef?.variantGroups && Object.keys(appearanceDef.variantGroups).length > 0;\n // If mobile + variants exist, skip creating this class — mapping will be merged\n if (isMobile && hasVariants && !isState) {\n mappingStore[appearance] ??= [];\n mappingStore[appearance].push(token);\n return; // skip adding mapping like .btn-outlined\n }\n // Else proceed to generate a separate class for mapping\n key = `${componentRootKey}-${appearance}-mapping${isState ? `-${state}` : ''}`;\n type = isState ? 'state-mapping' : 'mapping';\n group = {\n type,\n component: componentRootKey,\n appearance,\n state,\n };\n\n if (isMobile && !isState) {\n mappingStore[appearance] ??= [];\n mappingStore[appearance].push(token);\n }\n }\n\n if (key) {\n groups[key] ??= { ...group, tokens: [] };\n groups[key].tokens.push(token);\n }\n });\n\n return groups;\n};\n\n// output: a selector string based on the group type and state\nconst getStateSelector = (dictionary, component, appearance, state, groupType, variant, type, platform, isRootMapping) => {\n const meta = dictionary.unfilteredTokens?.[component]?.meta;\n const appearanceMeta = meta?.appearances?.[appearance];\n const selectors = [];\n\n if (type === 'state-variant') {\n selectors.push(\n appearanceMeta?.variantGroups?.[groupType]?.[variant]?.states?.[state]?.selector?.[platform]\n );\n }\n\n if (type === 'state-mapping' || type === 'state-variant') {\n selectors.push(\n appearanceMeta?.mapping?.states?.[state]?.selector?.[platform],\n meta?.mapping?.states?.[state]?.selector?.[platform]\n );\n }\n const selector =\n (platform === \"mobile\" && (type === \"state-variant\" || (type == \"state-mapping\" && !isRootMapping))\n ? `${meta?.mapping?.selector?.[platform]}${selectors.find(Boolean)}`\n : selectors.find(Boolean)) || `:${state}`;\n\n // Return the first defined selector or fallback to pseudo-class\n return selector;\n};\n\nconst getSelectorFromGroup = (group, dictionary, platform) => {\n const { component, appearance, type, groupType, variant, state, isRootMapping } = group;\n\n const meta = dictionary.unfilteredTokens?.[component]?.meta;\n const appearanceMeta = meta?.appearances?.[appearance];\n\n const defaultBase = `.${component}-${appearance}`;\n const rootMappingSelector = meta?.mapping?.selector?.[platform] || `.${component}`;\n const appearanceMappingSelector = appearanceMeta?.mapping?.selector?.[platform] || defaultBase;\n\n const getCombinedVariantSelector = () => {\n const selector = appearanceMeta?.variantGroups?.[groupType]?.[variant]?.selector?.[platform];\n if (platform === 'mobile') {\n return selector || `${[\n appearanceMappingSelector || [component, appearance].filter(Boolean).join('-'),\n variant\n ].filter(Boolean).join('-')}`;\n }\n return selector\n ? expandSelectors(platform, appearanceMappingSelector, selector)\n : expandSelectors(platform, appearanceMappingSelector, `.${component}-${variant}`);\n };\n\n const getStateSelectorWrapper = () =>\n getStateSelector(dictionary, component, appearance, state, groupType, variant, type, platform, isRootMapping);\n\n switch (type) {\n case 'mapping':\n return isRootMapping ? rootMappingSelector : appearanceMappingSelector;\n\n case 'variant':\n return getCombinedVariantSelector();\n\n case 'state-mapping':\n return isRootMapping\n ? expandSelectors(platform, rootMappingSelector, getStateSelectorWrapper())\n : expandSelectors(platform, appearanceMappingSelector, getStateSelectorWrapper());\n\n case 'state-variant':\n return expandSelectors(platform, getCombinedVariantSelector(), getStateSelectorWrapper());\n\n default:\n return '';\n }\n};\n\nconst expandSelectors = (platform, baseSelectors, stateSelectors = ['']) => {\n if (platform == \"web\") {\n const bases = baseSelectors.split(',').filter(Boolean);\n const states = stateSelectors.split(',').filter(Boolean);\n\n const combos = [];\n for (const base of bases) {\n for (const state of states) {\n combos.push(`${base}${state}`);\n }\n }\n return combos.join(',');\n } else {\n return `${baseSelectors}${stateSelectors}`\n }\n};\n\n\n// takes a group object and a dictionary, and returns a CSS block\n// Example output:\n// .btn-filled-status-primary {\n// --wm-btn-filled-status-primary-color: #fff;\n//}\nconst generateCssBlockFromGroup = (group, dictionary, usesReferences, getReferences, platform) => {\n const { tokens, component, appearance, groupType, variant } = group;\n\n let selector = getSelectorFromGroup(group, dictionary, platform);\n if (platform === 'web' && selector) {\n selector = selector\n .split(',')\n .map(s => s.startsWith('.wm-app') ? s : `.wm-app ${s}`)\n .join(', ');\n }\n if (!selector) return '';\n\n const cssProps = tokens\n .map((token) => {\n const value = getProcessedTokenValue(token, dictionary, usesReferences, getReferences);\n const baseProp = getBasePropertyName(token.path, component, appearance, groupType, variant);\n const cssVarName = `--wm-${component}${baseProp ? `-${baseProp}` : ''}`.replace(/-+$/, '');\n return ` ${cssVarName}: ${value};`;\n })\n .join('\\n');\n\n\n if (platform === 'web') {\n\n return `${selector} {\\n${cssProps}\\n}`;\n\n } else {\n const selectors = selector.split(',').map(s => s.trim()).filter(Boolean);\n\n //if there are multiple selectors extract custom variant from the first selector and apply it to subsequent selectors\n if (selectors.length > 1) {\n const firstSelector = selectors[0];\n const hasCustomAppearance = /^\\.[\\w-]+\\./.test(firstSelector);\n if (hasCustomAppearance) {\n // Extract base selector (e.g., \".btn-success\" from \".btn-success.app-button-disabled\")\n const baseMatch = firstSelector.match(/^(\\.[\\w-]+)\\./);\n const baseSelector = baseMatch ? baseMatch[1] : '';\n\n // Apply base selector to all subsequent selectors\n selectors.forEach((selector, i) => {\n if (baseSelector && !selector.startsWith(baseSelector)) {\n selectors[i] = `${baseSelector}${selector}`;\n }\n });\n\n }\n\n }\n\n return `${selectors.join(',\\n')} {\\n${cssProps}\\n}`;\n }\n};\n\n\n/**\n * Derives a clean CSS variable suffix from the token path.\n * Removes known structural segments like component name, appearance, state, variant, etc.\n *\n * @param tokenPath - The full token path array\n * @param componentRootKey - e.g., \"btn\"\n * @param appearance - e.g., \"filled\"\n * @param groupType - e.g., \"status\" or \"size\"\n * @param variant - e.g., \"primary\", \"lg\"\n * @returns A kebab-case string like \"color-background\" to append to --wm-btn\n */\nconst getBasePropertyName = (tokenPath, componentRootKey, appearance, groupType, variant) => {\n const stateIndex = tokenPath.indexOf('states');\n const stateName = stateIndex !== -1 ? tokenPath[stateIndex + 1] : null;\n\n // All known structural segments to exclude from final name\n const ignoreSegments = new Set([\n componentRootKey,\n 'appearances',\n appearance,\n 'mapping',\n 'states',\n stateName,\n 'variantGroups',\n groupType,\n variant\n ]);\n\n // Sanitize helper: removes illegal characters like @ and trims leading/trailing dashes\n const sanitize = (segment) =>\n segment.replace(/[^a-zA-Z0-9-_]/g, '-').replace(/^-+|-+$/g, '').trim();\n\n // Build property name from remaining segments\n const propertyName = tokenPath\n .filter(segment => segment && !ignoreSegments.has(segment))\n .map(sanitize)\n .join('-');\n\n return propertyName;\n};\n\nexport { cssVarCalcMixFormatter, componentVariantsFormatter, getSelectorFromGroup };\n\n"]}
1
+ {"version":3,"file":"style-dictionary-utils.js","sourceRoot":"./","sources":["src/utils/style-dictionary-utils.js"],"names":[],"mappings":";;;;;;;;;;;AACA,sEAAsE;AACtE,uFAAuF;AACvF,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C,CAAC;IAEb,OAAO,YAAY,CAAC;AACtB,CAAC,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,CAAC","sourcesContent":["\n// If `opacity` exists, we apply a `color-mix` formula to blend colors\n// If `multiple` exists, we apply the `calc()` function to multiply the reference value\n// Otherwise, we simply replace the reference with its corresponding variable\nfunction processTokenValue(value, refs, multiple, opacity) {\n // Remove `mapping` from token.name\n const cleanName = refs.name.replace(/mapping-?/g, '');\n if (opacity) {\n return `color-mix(in srgb, var(--${cleanName}), transparent calc(100% - ${opacity}))`;\n } else if (multiple) {\n return value.replace(refs.value, `calc(var(--${cleanName}) * ${multiple})`);\n } else {\n return value.replace(refs.value, `var(--${cleanName})`);\n }\n}\n\n// Helper function to resolve references for both `multiple` and `opacity` and return the updated value\nfunction resolveTokenReferences(token, unfilteredTokens, usesReferences, getReferences) {\n let multiple = token.original?.attributes?.multiple;\n let opacity = token.original?.attributes?.opacity;\n\n // Resolve references in `multiple` and `opacity`\n multiple = resolveAndReplaceReferences(multiple, unfilteredTokens, usesReferences, getReferences);\n opacity = resolveAndReplaceReferences(opacity, unfilteredTokens, usesReferences, getReferences);\n\n return { multiple, opacity };\n}\n\n// Helper function to resolve references and return the token name\nfunction resolveAndReplaceReferences(attribute, unfilteredTokens, usesReferences, getReferences) {\n if (attribute && usesReferences(attribute, unfilteredTokens)) {\n const refs = getReferences(attribute, unfilteredTokens);\n refs.forEach(ref => {\n // Replace the reference with the resolved token name\n attribute = `var(--${ref.name})`;\n });\n }\n return attribute;\n}\n\n\nconst cssVarCalcMixFormatter = (usesReferences, getReferences) => ({\n name: 'wm-calc-colormix-format',\n format: function ({ dictionary, options }) {\n const { selector } = options;\n // Generate CSS variable definitions\n const variables = dictionary.allTokens\n .map((token) => {\n // Remove `mapping` from token.name\n const cleanName = token.name.replace(/mapping-?/g, '');\n let value = getProcessedTokenValue(token, dictionary, usesReferences, getReferences);\n return `--${cleanName}: ${value};`;\n })\n .join(`\\n`);\n\n // Return correctly formatted output based on selector\n return selector && selector.trim()\n ? `${selector} {\\n${variables}\\n}\\n` // Wrap in selector\n : `${variables}\\n`; // No selector, no closing bracket\n },\n}\n);\n\n\nfunction getProcessedTokenValue(token, dictionary, usesReferences, getReferences) {\n let value = String(token.value);\n // Checking if the token has references\n if (usesReferences(token.original.value, dictionary.unfilteredTokens)) {\n const refs = getReferences(token.original.value, dictionary.unfilteredTokens);\n\n refs.forEach((ref) => {\n // Resolve references for `multiple` and `opacity`\n const { multiple, opacity } = resolveTokenReferences(token, dictionary.unfilteredTokens, usesReferences, getReferences);\n // Process the value based on resolved references\n value = processTokenValue(value, ref, multiple, opacity);\n });\n } else {\n value = token.original.value || token.value\n }\n return value;\n}\n\nconst componentVariantsFormatter = (usesReferences, getReferences, platform, options = {}) => ({\n name: 'css/component-variants',\n format: function ({ dictionary, file, ...rest }) {\n const componentRootKey = Object.keys(dictionary.tokens)[0];\n if (!componentRootKey) {\n console.warn(`[Style Dictionary] Could not derive component name from source ${file.destination}`);\n return '';\n }\n\n const groupedVariants = groupTokensByVariantType(dictionary, componentRootKey, platform);\n const cssBlocks = Object.values(groupedVariants).map(group =>\n generateCssBlockFromGroup(group, dictionary, usesReferences, getReferences, platform)\n );\n\n // --- README GENERATION ---\n const generateReadmeFn = options.generateComponentReadme;\n if (generateReadmeFn) {\n generateReadmeFn(\n componentRootKey,\n groupedVariants,\n platform,\n dictionary,\n {...rest.options}\n );\n }\n // --- END README GENERATION ---\n\n return cssBlocks.join('\\n\\n');\n }\n});\n\nconst groupTokensByVariantType = (dictionary, componentRootKey, platform) => {\n const groups = {};\n const isMobile = platform === 'mobile';\n const mappingStore = {};\n\n dictionary.allTokens.forEach((token) => {\n const path = token.path;\n const appearanceIndex = path.indexOf('appearances');\n const variantGroupIndex = path.indexOf('variantGroups');\n const stateIndex = path.indexOf('states');\n const isState = stateIndex !== -1;\n const state = isState ? path[stateIndex + 1] : null;\n\n const appearance = appearanceIndex !== -1 ? path[appearanceIndex + 1] : null;\n const groupType = variantGroupIndex !== -1 ? path[variantGroupIndex + 1] : null;\n const variant = variantGroupIndex !== -1 ? path[variantGroupIndex + 2] : null;\n\n const isVariantToken = appearance && groupType && variant;\n const isTopLevelMapping = appearanceIndex === -1 && path[1] === 'mapping';\n const isAppearanceMapping = appearanceIndex !== -1 && path[appearanceIndex + 2] === 'mapping';\n\n let key, type, group;\n\n if (isVariantToken) {\n key = `${componentRootKey}-${appearance}-${groupType}-${variant}${isState ? `-${state}` : ''}`;\n type = isState ? 'state-variant' : 'variant';\n group = {\n type,\n component: componentRootKey,\n appearance,\n groupType,\n variant,\n state,\n };\n if (!groups[key]) {\n groups[key] = { ...group, tokens: [] };\n \n if (isMobile && mappingStore[appearance]) {\n groups[key].tokens.push(...mappingStore[appearance]);\n }\n } \n } else if (isTopLevelMapping) {\n key = `${componentRootKey}-mapping${isState ? `-${state}` : ''}`;\n type = isState ? 'state-mapping' : 'mapping';\n group = {\n type,\n component: componentRootKey,\n appearance: 'mapping',\n state,\n isRootMapping: true,\n };\n } else if (isAppearanceMapping) {\n const appearanceDef = dictionary.tokens?.[componentRootKey]?.appearances?.[appearance];\n const hasVariants = appearanceDef?.variantGroups && Object.keys(appearanceDef.variantGroups).length > 0;\n // If mobile + variants exist, skip creating this class — mapping will be merged\n if (isMobile && hasVariants && !isState) {\n mappingStore[appearance] ??= [];\n mappingStore[appearance].push(token);\n return; // skip adding mapping like .btn-outlined\n }\n // Else proceed to generate a separate class for mapping\n key = `${componentRootKey}-${appearance}-mapping${isState ? `-${state}` : ''}`;\n type = isState ? 'state-mapping' : 'mapping';\n group = {\n type,\n component: componentRootKey,\n appearance,\n state,\n };\n\n if (isMobile && !isState) {\n mappingStore[appearance] ??= [];\n mappingStore[appearance].push(token);\n }\n }\n\n if (key) {\n groups[key] ??= { ...group, tokens: [] };\n groups[key].tokens.push(token);\n }\n });\n\n return groups;\n};\n\n// output: a selector string based on the group type and state\nconst getStateSelector = (dictionary, component, appearance, state, groupType, variant, type, platform, isRootMapping) => {\n const meta = dictionary.unfilteredTokens?.[component]?.meta;\n const appearanceMeta = meta?.appearances?.[appearance];\n const selectors = [];\n\n if (type === 'state-variant') {\n selectors.push(\n appearanceMeta?.variantGroups?.[groupType]?.[variant]?.states?.[state]?.selector?.[platform]\n );\n }\n\n if (type === 'state-mapping' || type === 'state-variant') {\n selectors.push(\n appearanceMeta?.mapping?.states?.[state]?.selector?.[platform],\n meta?.mapping?.states?.[state]?.selector?.[platform]\n );\n }\n const selector =\n (platform === \"mobile\" && (type === \"state-variant\" || (type == \"state-mapping\" && !isRootMapping))\n ? `${meta?.mapping?.selector?.[platform]}${selectors.find(Boolean)}`\n : selectors.find(Boolean)) || `:${state}`;\n\n // Return the first defined selector or fallback to pseudo-class\n return selector;\n};\n\nconst getSelectorFromGroup = (group, dictionary, platform) => {\n const { component, appearance, type, groupType, variant, state, isRootMapping } = group;\n\n const meta = dictionary.unfilteredTokens?.[component]?.meta;\n const appearanceMeta = meta?.appearances?.[appearance];\n\n const defaultBase = `.${component}-${appearance}`;\n const rootMappingSelector = meta?.mapping?.selector?.[platform] || `.${component}`;\n const appearanceMappingSelector = appearanceMeta?.mapping?.selector?.[platform] || defaultBase;\n\n const getCombinedVariantSelector = () => {\n const selector = appearanceMeta?.variantGroups?.[groupType]?.[variant]?.selector?.[platform];\n if (platform === 'mobile') {\n return selector || `${[\n appearanceMappingSelector || [component, appearance].filter(Boolean).join('-'),\n variant\n ].filter(Boolean).join('-')}`;\n }\n return selector\n ? expandSelectors(platform, appearanceMappingSelector, selector)\n : expandSelectors(platform, appearanceMappingSelector, `.${component}-${variant}`);\n };\n\n const getStateSelectorWrapper = () =>\n getStateSelector(dictionary, component, appearance, state, groupType, variant, type, platform, isRootMapping);\n\n switch (type) {\n case 'mapping':\n return isRootMapping ? rootMappingSelector : appearanceMappingSelector;\n\n case 'variant':\n return getCombinedVariantSelector();\n\n case 'state-mapping':\n return isRootMapping\n ? expandSelectors(platform, rootMappingSelector, getStateSelectorWrapper())\n : expandSelectors(platform, appearanceMappingSelector, getStateSelectorWrapper());\n\n case 'state-variant':\n return expandSelectors(platform, getCombinedVariantSelector(), getStateSelectorWrapper());\n\n default:\n return '';\n }\n};\n\nconst expandSelectors = (platform, baseSelectors, stateSelectors = ['']) => {\n if (platform == \"web\") {\n const bases = baseSelectors.split(',').filter(Boolean);\n const states = stateSelectors.split(',').filter(Boolean);\n\n const combos = [];\n for (const base of bases) {\n for (const state of states) {\n combos.push(`${base}${state}`);\n }\n }\n return combos.join(',');\n } else {\n return `${baseSelectors}${stateSelectors}`\n }\n};\n\n\n// takes a group object and a dictionary, and returns a CSS block\n// Example output:\n// .btn-filled-status-primary {\n// --wm-btn-filled-status-primary-color: #fff;\n//}\nconst generateCssBlockFromGroup = (group, dictionary, usesReferences, getReferences, platform) => {\n const { tokens, component, appearance, groupType, variant } = group;\n\n let selector = getSelectorFromGroup(group, dictionary, platform);\n if (platform === 'web' && selector) {\n selector = selector\n .split(',')\n .map(s => s.startsWith('.wm-app') ? s : `.wm-app ${s}`)\n .join(', ');\n }\n if (!selector) return '';\n\n const cssProps = tokens\n .map((token) => {\n const value = getProcessedTokenValue(token, dictionary, usesReferences, getReferences);\n const baseProp = getBasePropertyName(token.path, component, appearance, groupType, variant);\n const cssVarName = `--wm-${component}${baseProp ? `-${baseProp}` : ''}`.replace(/-+$/, '');\n return ` ${cssVarName}: ${value};`;\n })\n .join('\\n');\n\n return `${selector} {\\n${cssProps}\\n}`;\n};\n\n\n/**\n * Derives a clean CSS variable suffix from the token path.\n * Removes known structural segments like component name, appearance, state, variant, etc.\n *\n * @param tokenPath - The full token path array\n * @param componentRootKey - e.g., \"btn\"\n * @param appearance - e.g., \"filled\"\n * @param groupType - e.g., \"status\" or \"size\"\n * @param variant - e.g., \"primary\", \"lg\"\n * @returns A kebab-case string like \"color-background\" to append to --wm-btn\n */\nconst getBasePropertyName = (tokenPath, componentRootKey, appearance, groupType, variant) => {\n const stateIndex = tokenPath.indexOf('states');\n const stateName = stateIndex !== -1 ? tokenPath[stateIndex + 1] : null;\n\n // All known structural segments to exclude from final name\n const ignoreSegments = new Set([\n componentRootKey,\n 'appearances',\n appearance,\n 'mapping',\n 'states',\n stateName,\n 'variantGroups',\n groupType,\n variant\n ]);\n\n // Sanitize helper: removes illegal characters like @ and trims leading/trailing dashes\n const sanitize = (segment) =>\n segment.replace(/[^a-zA-Z0-9-_]/g, '-').replace(/^-+|-+$/g, '').trim();\n\n // Build property name from remaining segments\n const propertyName = tokenPath\n .filter(segment => segment && !ignoreSegments.has(segment))\n .map(sanitize)\n .join('-');\n\n return propertyName;\n};\n\nexport { cssVarCalcMixFormatter, componentVariantsFormatter, getSelectorFromGroup };\n\n"]}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- (this["webpackChunk_wavemaker_foundation_css"] = this["webpackChunk_wavemaker_foundation_css"] || []).push([["src_tokens_mobile_components_form-controls_form-controls_json"],{
3
-
4
- /***/ "./src/tokens/mobile/components/form-controls/form-controls.json":
5
- /*!***********************************************************************!*\
6
- !*** ./src/tokens/mobile/components/form-controls/form-controls.json ***!
7
- \***********************************************************************/
8
- /***/ ((module) => {
9
-
10
- module.exports = /*#__PURE__*/JSON.parse('{"form-controls":{"meta":{"mapping":{"selector":{"mobile":".app-input"},"states":{"focused":{"selector":{"mobile":"-focused"}},"disabled":{"selector":{"mobile":"-disabled"}}},"appearances":{}}},"mapping":{"opacity":{"value":"1px","type":"radius","attributes":{"subtype":"opacity","description":"Controls the transparency of form controls (input fields, text areas, select boxes, and other form elements where users enter data). A value of 1 means fully opaque (completely visible), while lower values make the form controls more transparent.<br>CSS variable: --wm-form-controls-opacity"}},"min-height":{"value":"48px","type":"space","attributes":{"subtype":"space","description":"Controls the minimum height of form controls (input fields, text areas, select boxes, and other form elements). This ensures form fields are always tall enough to be easily clickable and readable. Acceptable units: px, em, rem.<br>CSS variable: --wm-form-controls-min-height"}},"padding":{"vertical":{"value":"{space.2.value}","type":"space","attributes":{"subtype":"space","description":"Controls the internal vertical spacing inside form controls (the space between the form field content and its top/bottom borders). This creates breathing room around the text that users type in the form fields.<br>CSS variable: --wm-form-controls-padding-vertical"}},"horizontal":{"value":"{space.2.value}","type":"space","attributes":{"subtype":"space","description":"Controls the internal horizontal spacing inside form controls (the space between the form field content and its left/right borders). This creates breathing room around the text that users type in the form fields.<br>CSS variable: --wm-form-controls-padding-horizontal"}}},"border":{"color":{"value":"{color.outline.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the color of borders around form controls (input fields, text areas, select boxes, and other form elements). This determines what color the border lines appear in that outline the form fields.<br>CSS variable: --wm-form-controls-border-color"}},"radius":{"value":"{radius.sm.value}","type":"radius","attributes":{"subtype":"radius","description":"Controls the corner rounding of form controls (input fields, text areas, select boxes, and other form elements). This makes the form field corners slightly rounded for a softer appearance.<br>CSS variable: --wm-form-controls-border-radius"}},"style":{"value":"{border.style.base.value}","type":"style","attributes":{"subtype":"border-style","description":"Sets the visual style of borders around form controls (input fields, text areas, select boxes, and other form elements). \'solid\' creates a continuous line, \'dashed\' creates a broken line, \'dotted\' creates a dotted line, \'none\' removes borders completely.<br>CSS variable: --wm-form-controls-border-style"}},"width":{"value":"{border.width.base.value}","type":"space","attributes":{"subtype":"border-width","description":"Controls the thickness of borders around form controls (input fields, text areas, select boxes, and other form elements). This determines how thick the border lines appear around the form fields.<br>CSS variable: --wm-form-controls-border-width"}}},"placeholder":{"color":{"value":"{color.on-surface.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the color of placeholder text in form controls (the gray text that appears in empty input fields to show users what to enter, like \'Enter your name\' or \'Select an option\'). This determines what color the hint text appears in.<br>CSS variable: --wm-form-controls-placeholder-color"}}},"background":{"value":"{color.outline.variant.value}","type":"color","attributes":{"subtype":"color","description":"Sets the background color of form controls (input fields, text areas, select boxes, and other form elements where users enter data). This is the main background color that appears behind the form field content.<br>CSS variable: --wm-form-controls-background"}},"color":{"value":"{color.black.@.value}","type":"color"},"label":{"color":{"value":"{color.on-surface.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the text color of form control labels (the text labels that appear next to or above input fields to describe what information should be entered). This determines what color the label text appears in.<br>CSS variable: --wm-form-controls-label-color"}},"background":{"value":"{color.transparent.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the background color of form control labels (the text labels that appear next to or above input fields). When transparent, only the label text is visible. When filled with a color, the label appears with a colored background.<br>CSS variable: --wm-form-controls-label-background"}},"font":{"size":{"value":"{label.large.font-size.value}","type":"font","attributes":{"subtype":"font-size","description":"Controls how large form control labels appear (the text labels that appear next to or above input fields). This affects the size of the label text that users see.<br>CSS variable: --wm-form-controls-label-font-size"}},"weight":{"value":"{label.large.font-weight.value}","type":"font","attributes":{"subtype":"font-weight","description":"Controls how thick or bold form control labels appear (the text labels that appear next to or above input fields). \'normal\' makes it regular weight, \'bold\' makes it thicker, and numbers (100-900) provide fine control over thickness.<br>CSS variable: --wm-form-controls-label-font-weight"}},"family":{"value":"{label.large.font-family.value}","type":"font","attributes":{"subtype":"font-family","description":"Sets the typeface (font style) for form control labels (the text labels that appear next to or above input fields). This determines whether the label text appears in Arial, Times New Roman, or other font styles.<br>CSS variable: --wm-form-controls-label-font-family"}}},"margin":{"vertical":{"value":"{space.1.value}","type":"space","attributes":{"subtype":"space","description":"Controls the vertical spacing around form control labels (the space above and below the label text). This creates visual separation between labels and form fields.<br>CSS variable: --wm-form-controls-label-margin-vertical"}},"horizontal":{"value":"{space.1.value}","type":"space","attributes":{"subtype":"space","description":"Controls the horizontal spacing around form control labels (the space to the left and right of the label text). This creates visual separation between labels and form fields.<br>CSS variable: --wm-form-controls-label-margin-horizontal"}}}},"states":{"focused":{"border":{"color":{"value":"{color.primary.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the color of borders around form controls when they are in the focused state (when the user clicks or tabs into the form field). This determines what color the border appears in when the field is active and ready for input.<br>CSS variable: --wm-form-controls-border-color (focused state)"}},"width":{"value":"{border.width.base.value}","type":"space","attributes":{"subtype":"border-width","description":"Controls the thickness of borders around form controls when they are in the focused state (when the user clicks or tabs into the form field). This determines how thick the border lines appear when the field is active.<br>CSS variable: --wm-form-controls-border-width (focused state)"}}},"background":{"value":"{color.outline.variant.value}","type":"color","attributes":{"subtype":"color","description":"Sets the background color of form controls when they are in the focused state (when the user clicks or tabs into the form field). This is the background color that appears when the field is active and ready for input.<br>CSS variable: --wm-form-controls-background (focused state)"}},"color":{"value":"{color.black.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the text color of form controls when they are in the focused state (when the user clicks or tabs into the form field). This determines what color the text that users type appears in when the field is active.<br>CSS variable: --wm-form-controls-color (focused state)"}}},"disabled":{"border":{"color":{"value":"{color.shadow.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the color of borders around form controls when they are in the disabled state (when the form field is not interactive and users cannot enter data). This determines what color the border appears in when the field is disabled.<br>CSS variable: --wm-form-controls-border-color (disabled state)"}},"width":{"value":"{border.width.base.value}","type":"space","attributes":{"subtype":"border-width","description":"Controls the thickness of borders around form controls when they are in the disabled state (when the form field is not interactive). This determines how thick the border lines appear when the field is disabled.<br>CSS variable: --wm-form-controls-border-width (disabled state)"}}},"background":{"value":"{color.surface.dim.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the background color of form controls when they are in the disabled state (when the form field is not interactive and users cannot enter data). This is the background color that appears when the field is disabled.<br>CSS variable: --wm-form-controls-background (disabled state)"}},"color":{"value":"{color.scrim.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the text color of form controls when they are in the disabled state (when the form field is not interactive). This determines what color the text appears in when the field is disabled.<br>CSS variable: --wm-form-controls-color (disabled state)"}},"opacity":{"value":"0.67","type":"radius","attributes":{"subtype":"opacity","description":"Controls the transparency of form controls when they are in the disabled state (when the form field is not interactive). A value of 0.67 makes the form controls appear dimmed to indicate they are disabled. Lower values make them more transparent.<br>CSS variable: --wm-form-controls-opacity (disabled state)"}}}}},"appearances":{}}}');
11
-
12
- /***/ })
13
-
14
- }]);
@@ -1,14 +0,0 @@
1
- "use strict";
2
- (this["webpackChunk_wavemaker_foundation_css"] = this["webpackChunk_wavemaker_foundation_css"] || []).push([["src_tokens_mobile_components_form-wrapper_form-wrapper_json"],{
3
-
4
- /***/ "./src/tokens/mobile/components/form-wrapper/form-wrapper.json":
5
- /*!*********************************************************************!*\
6
- !*** ./src/tokens/mobile/components/form-wrapper/form-wrapper.json ***!
7
- \*********************************************************************/
8
- /***/ ((module) => {
9
-
10
- module.exports = /*#__PURE__*/JSON.parse('{"form":{"meta":{"mapping":{"selector":{"mobile":".app-form"}},"appearances":{}},"mapping":{"background":{"value":"{color.outline.variant.value}","type":"color","attributes":{"subtype":"color","description":"Sets the background color of form wrapper components (containers that wrap form elements with header, body, and footer sections). This is the main background color that appears behind the entire form wrapper.<br>CSS variable: --wm-form-background"}},"padding":{"value":"{space.3.value}","type":"space","attributes":{"subtype":"space","description":"Controls the internal spacing inside form wrapper components (the space between the form wrapper content and its borders). This creates breathing room around the entire form wrapper container.<br>CSS variable: --wm-form-padding"}},"margin":{"value":"{space.2.value}","type":"space","attributes":{"subtype":"space","description":"Controls the external spacing around form wrapper components (the space outside the form wrapper borders). This creates visual separation between the form wrapper and other elements on the page.<br>CSS variable: --wm-form-margin"}},"border":{"radius":{"value":"{radius.sm.value}","type":"radius","attributes":{"subtype":"radius","description":"Controls the corner rounding of form wrapper components (containers that wrap form elements). This makes the form wrapper corners slightly rounded for a softer appearance.<br>CSS variable: --wm-form-border-radius"}},"width":{"value":"{border.width.base.value}","type":"space","attributes":{"subtype":"border-width","description":"Controls the thickness of borders around form wrapper components (containers that wrap form elements). This determines how thick the border lines appear around the form wrapper.<br>CSS variable: --wm-form-border-width"}},"style":{"value":"{border.style.base.value}","type":"radius","attributes":{"subtype":"border-style","description":"Sets the visual style of borders around form wrapper components (containers that wrap form elements). \'solid\' creates a continuous line, \'dashed\' creates a broken line, \'dotted\' creates a dotted line.<br>CSS variable: --wm-form-border-style"}},"color":{"@":{"value":"{color.transparent.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the color of borders around form wrapper components (containers that wrap form elements). When transparent, borders are not visible. When filled with a color, the border appears with the specified color.<br>CSS variable: --wm-form-border-color"}}}},"header":{"padding":{"vertical":{"value":"{space.2.value}","type":"space","attributes":{"subtype":"space","description":"Controls the internal vertical spacing inside form wrapper headers (the top section that contains the form title and subtitle). This creates breathing room around the header content.<br>CSS variable: --wm-form-header-padding-vertical"}},"horizontal":{"value":"{space.2.value}","type":"space","attributes":{"subtype":"space","description":"Controls the internal horizontal spacing inside form wrapper headers (the top section that contains the form title and subtitle). This creates breathing room around the header content.<br>CSS variable: --wm-form-header-padding-horizontal"}}},"border":{"color":{"value":"{color.transparent.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the color of borders around form wrapper headers (the top section that contains the form title and subtitle). When transparent, borders are not visible. When filled with a color, the border appears with the specified color.<br>CSS variable: --wm-form-header-border-color"}},"radius":{"value":"{radius.sm.value}","type":"radius","attributes":{"subtype":"radius","description":"Controls the corner rounding of form wrapper headers (the top section that contains the form title and subtitle). This makes the header corners slightly rounded for a softer appearance.<br>CSS variable: --wm-form-header-border-radius"}},"style":{"value":"{border.style.base.value}","type":"radius","attributes":{"subtype":"border-style","description":"Sets the visual style of borders around form wrapper headers (the top section that contains the form title and subtitle). \'solid\' creates a continuous line, \'dashed\' creates a broken line, \'dotted\' creates a dotted line, \'none\' removes borders completely.<br>CSS variable: --wm-form-header-border-style"}},"width":{"value":"{border.width.base.value}","type":"space","attributes":{"subtype":"border-width","description":"Controls the thickness of borders around form wrapper headers (the top section that contains the form title and subtitle). This determines how thick the border lines appear around the header.<br>CSS variable: --wm-form-header-border-width"}}},"title":{"color":{"value":"{color.on-surface.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the text color of form wrapper header titles (the main heading text that appears at the top of the form). This determines what color the title text appears in.<br>CSS variable: --wm-form-header-title-color"}},"font":{"size":{"value":"{h4.font-size.value}","type":"font","attributes":{"subtype":"font-size","description":"Controls how large form wrapper header titles appear (the main heading text that appears at the top of the form). This affects the size of the title text that users see.<br>CSS variable: --wm-form-header-title-font-size"}},"weight":{"value":"{font.weight.700.value}","type":"font","attributes":{"subtype":"font-weight","description":"Controls how thick or bold form wrapper header titles appear (the main heading text that appears at the top of the form). \'normal\' makes it regular weight, \'bold\' makes it thicker, and numbers (100-900) provide fine control over thickness.<br>CSS variable: --wm-form-header-title-font-weight"}},"family":{"value":"{font.family.brand.value}","type":"font","attributes":{"subtype":"font-family","description":"Sets the typeface (font style) for form wrapper header titles (the main heading text that appears at the top of the form). This determines whether the title text appears in Arial, Times New Roman, or other font styles.<br>CSS variable: --wm-form-header-title-font-family"}}},"margin":{"vertical":{"value":"{space.1.value}","type":"space","attributes":{"subtype":"space","description":"Controls the vertical spacing around form wrapper header titles (the space above and below the title text). This creates visual separation between the title and other header elements.<br>CSS variable: --wm-form-header-title-margin-vertical"}},"horizontal":{"value":"{space.1.value}","type":"space","attributes":{"subtype":"space","description":"Controls the horizontal spacing around form wrapper header titles (the space to the left and right of the title text). This creates visual separation between the title and other header elements.<br>CSS variable: --wm-form-header-title-margin-horizontal"}}}},"sub-title":{"color":{"value":"{color.on-surface.variant.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the text color of form wrapper header subtitles (the secondary heading text that appears below the main title). This determines what color the subtitle text appears in.<br>CSS variable: --wm-form-header-sub-title-color"}},"font":{"size":{"value":"{h6.font-size.value}","type":"font","attributes":{"subtype":"font-size","description":"Controls how large form wrapper header subtitles appear (the secondary heading text that appears below the main title). This affects the size of the subtitle text that users see.<br>CSS variable: --wm-form-header-sub-title-font-size"}},"weight":{"value":"{font.weight.500.value}","type":"font","attributes":{"subtype":"font-weight","description":"Controls how thick or bold form wrapper header subtitles appear (the secondary heading text that appears below the main title). \'normal\' makes it regular weight, \'bold\' makes it thicker, and numbers (100-900) provide fine control over thickness.<br>CSS variable: --wm-form-header-sub-title-font-weight"}},"family":{"value":"{font.family.brand.value}","type":"font","attributes":{"subtype":"font-family","description":"Sets the typeface (font style) for form wrapper header subtitles (the secondary heading text that appears below the main title). This determines whether the subtitle text appears in Arial, Times New Roman, or other font styles.<br>CSS variable: --wm-form-header-sub-title-font-family"}}},"margin":{"vertical":{"value":"{space.1.value}","type":"space","attributes":{"subtype":"space","description":"Controls the vertical spacing around form wrapper header subtitles (the space above and below the subtitle text). This creates visual separation between the subtitle and other header elements.<br>CSS variable: --wm-form-header-sub-title-margin-vertical"}},"horizontal":{"value":"{space.1.value}","type":"space","attributes":{"subtype":"space","description":"Controls the horizontal spacing around form wrapper header subtitles (the space to the left and right of the subtitle text). This creates visual separation between the subtitle and other header elements.<br>CSS variable: --wm-form-header-sub-title-margin-horizontal"}}}},"background":{"value":"{color.transparent.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the background color of form wrapper headers (the top section that contains the form title and subtitle). When transparent, only the header content is visible. When filled with a color, the header appears with a colored background.<br>CSS variable: --wm-form-header-background"}}},"body":{"background":{"value":"{color.transparent.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the background color of form wrapper body sections (the main content area where form fields are displayed). When transparent, only the body content is visible. When filled with a color, the body appears with a colored background.<br>CSS variable: --wm-form-body-background"}},"padding":{"vertical":{"value":"{space.1.value}","type":"space","attributes":{"subtype":"space","description":"Controls the internal vertical spacing inside form wrapper body sections (the main content area where form fields are displayed). This creates breathing room around the body content.<br>CSS variable: --wm-form-body-padding-vertical"}},"horizontal":{"value":"{space.1.value}","type":"space","attributes":{"subtype":"space","description":"Controls the internal horizontal spacing inside form wrapper body sections (the main content area where form fields are displayed). This creates breathing room around the body content.<br>CSS variable: --wm-form-body-padding-horizontal"}}},"border":{"color":{"value":"{color.transparent.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the color of borders around form wrapper body sections (the main content area where form fields are displayed). When transparent, borders are not visible. When filled with a color, the border appears with the specified color.<br>CSS variable: --wm-form-body-border-color"}},"radius":{"value":"{radius.sm.value}","type":"radius","attributes":{"subtype":"radius","description":"Controls the corner rounding of form wrapper body sections (the main content area where form fields are displayed). This makes the body corners slightly rounded for a softer appearance.<br>CSS variable: --wm-form-body-border-radius"}},"style":{"value":"{border.style.base.value}","type":"style","attributes":{"subtype":"border-style","description":"Sets the visual style of borders around form wrapper body sections (the main content area where form fields are displayed). \'solid\' creates a continuous line, \'dashed\' creates a broken line, \'dotted\' creates a dotted line, \'none\' removes borders completely.<br>CSS variable: --wm-form-body-border-style"}},"width":{"value":"{border.width.base.value}","type":"space","attributes":{"subtype":"border-width","description":"Controls the thickness of borders around form wrapper body sections (the main content area where form fields are displayed). This determines how thick the border lines appear around the body.<br>CSS variable: --wm-form-body-border-width"}}}},"footer":{"background":{"value":"{color.transparent.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the background color of form wrapper footer sections (the bottom section that typically contains action buttons like Submit or Cancel). When transparent, only the footer content is visible. When filled with a color, the footer appears with a colored background.<br>CSS variable: --wm-form-footer-background"}},"border":{"color":{"value":"{color.transparent.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the color of borders around form wrapper footer sections (the bottom section that typically contains action buttons). When transparent, borders are not visible. When filled with a color, the border appears with the specified color.<br>CSS variable: --wm-form-footer-border-color"}},"radius":{"value":"{radius.sm.value}","type":"radius","attributes":{"subtype":"radius","description":"Controls the corner rounding of form wrapper footer sections (the bottom section that typically contains action buttons). This makes the footer corners slightly rounded for a softer appearance.<br>CSS variable: --wm-form-footer-border-radius"}},"style":{"value":"{border.style.base.value}","type":"radius","attributes":{"subtype":"border-style","description":"Sets the visual style of borders around form wrapper footer sections (the bottom section that typically contains action buttons). \'solid\' creates a continuous line, \'dashed\' creates a broken line, \'dotted\' creates a dotted line, \'none\' removes borders completely.<br>CSS variable: --wm-form-footer-border-style"}},"width":{"value":"{border.width.base.value}","type":"space","attributes":{"subtype":"border-width","description":"Controls the thickness of borders around form wrapper footer sections (the bottom section that typically contains action buttons). This determines how thick the border lines appear around the footer.<br>CSS variable: --wm-form-footer-border-width"}}},"padding":{"vertical":{"value":"{space.1.value}","type":"space","attributes":{"subtype":"space","description":"Controls the internal vertical spacing inside form wrapper footer sections (the bottom section that typically contains action buttons). This creates breathing room around the footer content.<br>CSS variable: --wm-form-footer-padding-vertical"}},"horizontal":{"value":"{space.1.value}","type":"space","attributes":{"subtype":"space","description":"Controls the internal horizontal spacing inside form wrapper footer sections (the bottom section that typically contains action buttons). This creates breathing room around the footer content.<br>CSS variable: --wm-form-footer-padding-horizontal"}}}}},"appearances":{}}}');
11
-
12
- /***/ })
13
-
14
- }]);
@@ -1,14 +0,0 @@
1
- "use strict";
2
- (this["webpackChunk_wavemaker_foundation_css"] = this["webpackChunk_wavemaker_foundation_css"] || []).push([["src_tokens_mobile_components_navbar_navbar_json"],{
3
-
4
- /***/ "./src/tokens/mobile/components/navbar/navbar.json":
5
- /*!*********************************************************!*\
6
- !*** ./src/tokens/mobile/components/navbar/navbar.json ***!
7
- \*********************************************************/
8
- /***/ ((module) => {
9
-
10
- module.exports = /*#__PURE__*/JSON.parse('{"navbar":{"meta":{"mapping":{"selector":{"mobile":".app-appnavbar"}}},"mapping":{"height":{"value":"80px","type":"space","attributes":{"subtype":"space","description":"Controls the height of navigation bars (top bars that contain navigation elements, icons, and content). This determines how tall the navbar appears. Acceptable units: px.<br>CSS variable: --wm-navbar-height"}},"background-color":{"value":"{color.surface.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the background color of navigation bars (top bars that contain navigation elements, icons, and content). This is the main background color that appears behind the navbar content.<br>CSS variable: --wm-navbar-background-color"}},"padding":{"left":{"value":"{space.3.value}","type":"space","attributes":{"subtype":"space","description":"Controls the left padding (horizontal spacing) inside navigation bars. This creates breathing room on the left side of the navbar content. Acceptable units: px.<br>CSS variable: --wm-navbar-padding-left"}},"right":{"value":"{space.3.value}","type":"space","attributes":{"subtype":"space","description":"Controls the right padding (horizontal spacing) inside navigation bars. This creates breathing room on the right side of the navbar content. Acceptable units: px.<br>CSS variable: --wm-navbar-padding-right"}},"top":{"value":"{space.3.value}","type":"space","attributes":{"subtype":"space","description":"Controls the top padding (vertical spacing) inside navigation bars. This creates breathing room above the navbar content. Acceptable units: px.<br>CSS variable: --wm-navbar-padding-top"}},"bottom":{"value":"{space.3.value}","type":"space","attributes":{"subtype":"space","description":"Controls the bottom padding (vertical spacing) inside navigation bars. This creates breathing room below the navbar content. Acceptable units: px.<br>CSS variable: --wm-navbar-padding-bottom"}}},"left-icon":{"color":{"value":"{color.on-surface.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the color of left icons in navigation bars (icons that appear on the left side of the navbar). This determines what color the left icons appear in.<br>CSS variable: --wm-navbar-left-icon-color"}},"size":{"value":"{icon.size.@.value}","type":"space","attributes":{"subtype":"icon-size","description":"Controls the size of left icons in navigation bars. This affects how large the left icons appear. Acceptable units: px.<br>CSS variable: --wm-navbar-left-icon-size"}}},"back-icon":{"color":{"value":"{color.on-surface.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the color of back icons in navigation bars (icons that navigate back to the previous screen). This determines what color the back icons appear in.<br>CSS variable: --wm-navbar-back-icon-color"}},"size":{"value":"{icon.size.@.value}","type":"space","attributes":{"subtype":"icon-size","description":"Controls the size of back icons in navigation bars. This affects how large the back icons appear. Acceptable units: px.<br>CSS variable: --wm-navbar-back-icon-size"}}},"menu-icon":{"color":{"value":"{color.on-surface.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the color of menu icons in navigation bars (icons that open navigation menus). This determines what color the menu icons appear in.<br>CSS variable: --wm-navbar-menu-icon-color"}},"size":{"value":"{icon.size.@.value}","type":"space","attributes":{"subtype":"icon-size","description":"Controls the size of menu icons in navigation bars. This affects how large the menu icons appear. Acceptable units: px.<br>CSS variable: --wm-navbar-menu-icon-size"}}},"popover-icon":{"color":{"value":"{color.on-surface.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the color of popover icons in navigation bars (icons that open popover menus). This determines what color the popover icons appear in.<br>CSS variable: --wm-navbar-popover-icon-color"}},"size":{"value":"{icon.size.@.value}","type":"space","attributes":{"subtype":"icon-size","description":"Controls the size of popover icons in navigation bars. This affects how large the popover icons appear. Acceptable units: px.<br>CSS variable: --wm-navbar-popover-icon-size"}}},"image":{"width":{"value":"32px","type":"space","attributes":{"subtype":"space","description":"Controls the width of images in navigation bars (logos or images that appear in the navbar). This determines how wide the navbar images appear. Acceptable units: px.<br>CSS variable: --wm-navbar-image-width"}},"height":{"value":"32px","type":"space","attributes":{"subtype":"space","description":"Controls the height of images in navigation bars (logos or images that appear in the navbar). This determines how tall the navbar images appear. Acceptable units: px.<br>CSS variable: --wm-navbar-image-height"}}},"content":{"color":{"value":"{color.on-surface.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the text color of navigation bar content (the main text that appears in the navbar). This determines what color the navbar content text appears in, which should contrast well with the background for readability.<br>CSS variable: --wm-navbar-content-color"}},"font":{"size":{"value":"{body.large.font-size.value}","type":"font","attributes":{"subtype":"font-size","description":"Controls the size of navigation bar content text. This affects how large the navbar content text appears.<br>CSS variable: --wm-navbar-content-font-size"}},"family":{"value":"{body.large.font-family.value}","type":"font","attributes":{"subtype":"font-family","description":"Sets the typeface (font style) for navigation bar content text. This determines whether the navbar content text appears in Arial, Times New Roman, or other font styles.<br>CSS variable: --wm-navbar-content-font-family"}},"weight":{"value":"{body.large.font-weight.value}","type":"font","attributes":{"subtype":"font-weight","description":"Controls how thick or bold navigation bar content text appears. \'normal\' makes it regular weight, \'bold\' makes it thicker, and numbers (100-900) provide fine control over thickness.<br>CSS variable: --wm-navbar-content-font-weight"}}}},"badge":{"background-color":{"value":"transparent","type":"color","attributes":{"subtype":"color","description":"Sets the background color of badges in navigation bars (small indicators that appear on navbar elements). When transparent, only the badge text is visible. When filled with a color, the badge appears with a colored background.<br>CSS variable: --wm-navbar-badge-background-color"}},"color":{"value":"{color.primary.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the text color of badges in navigation bars. This determines what color the badge text appears in, typically matching the primary theme color.<br>CSS variable: --wm-navbar-badge-color"}},"margin-left":{"value":"4px","type":"space","attributes":{"subtype":"space","description":"Controls the left margin (horizontal spacing) of badges in navigation bars. This creates spacing to the left of badges, separating them from adjacent content. Acceptable units: px.<br>CSS variable: --wm-navbar-badge-margin-left"}}},"anchor":{"padding":{"right":{"value":"0px","type":"space","attributes":{"subtype":"space","description":"Controls the right padding (horizontal spacing) inside navigation bar anchor elements (clickable links in the navbar). This creates breathing room on the right side of the anchor content. Acceptable units: px.<br>CSS variable: --wm-navbar-anchor-padding-right"}},"left":{"value":"0px","type":"space","attributes":{"subtype":"space","description":"Controls the left padding (horizontal spacing) inside navigation bar anchor elements. This creates breathing room on the left side of the anchor content. Acceptable units: px.<br>CSS variable: --wm-navbar-anchor-padding-left"}},"top":{"value":"0px","type":"space","attributes":{"subtype":"space","description":"Controls the top padding (vertical spacing) inside navigation bar anchor elements. This creates breathing room above the anchor content. Acceptable units: px.<br>CSS variable: --wm-navbar-anchor-padding-top"}},"bottom":{"value":"0px","type":"space","attributes":{"subtype":"space","description":"Controls the bottom padding (vertical spacing) inside navigation bar anchor elements. This creates breathing room below the anchor content. Acceptable units: px.<br>CSS variable: --wm-navbar-anchor-padding-bottom"}}},"text":{"color":{"value":"{color.on-surface.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the text color of navigation bar anchor text (clickable link text in the navbar). This determines what color the anchor text appears in, which should contrast well with the background for readability.<br>CSS variable: --wm-navbar-anchor-text-color"}},"font":{"size":{"value":"{body.large.font-size.value}","type":"font","attributes":{"subtype":"font-size","description":"Controls the size of navigation bar anchor text. This affects how large the anchor text appears.<br>CSS variable: --wm-navbar-anchor-text-font-size"}},"family":{"value":"{body.large.font-family.value}","type":"font","attributes":{"subtype":"font-family","description":"Sets the typeface (font style) for navigation bar anchor text. This determines whether the anchor text appears in Arial, Times New Roman, or other font styles.<br>CSS variable: --wm-navbar-anchor-text-font-family"}},"weight":{"value":"{body.large.font-weight.value}","type":"font","attributes":{"subtype":"font-weight","description":"Controls how thick or bold navigation bar anchor text appears. \'normal\' makes it regular weight, \'bold\' makes it thicker, and numbers (100-900) provide fine control over thickness.<br>CSS variable: --wm-navbar-anchor-text-font-weight"}}}},"icon":{"color":{"value":"{color.on-surface.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the color of icons in navigation bar anchor elements. This determines what color the anchor icons appear in.<br>CSS variable: --wm-navbar-anchor-icon-color"}},"size":{"value":"{icon.size.@.value}","type":"space","attributes":{"subtype":"icon-size","description":"Controls the size of icons in navigation bar anchor elements. This affects how large the anchor icons appear. Acceptable units: px.<br>CSS variable: --wm-navbar-anchor-icon-size"}}}},"button":{"color":{"value":"{color.on-surface.@.value}","type":"color","attributes":{"subtype":"color","description":"Sets the text color of buttons in navigation bars. This determines what color the button text appears in, which should contrast well with the background for readability.<br>CSS variable: --wm-navbar-button-color"}},"font":{"size":{"value":"{body.large.font-size.value}","type":"font","attributes":{"subtype":"font-size","description":"Controls the size of button text in navigation bars. This affects how large the button text appears.<br>CSS variable: --wm-navbar-button-font-size"}},"family":{"value":"{body.large.font-family.value}","type":"font","attributes":{"subtype":"font-family","description":"Sets the typeface (font style) for button text in navigation bars. This determines whether the button text appears in Arial, Times New Roman, or other font styles.<br>CSS variable: --wm-navbar-button-font-family"}},"weight":{"value":"{body.large.font-weight.value}","type":"font","attributes":{"subtype":"font-weight","description":"Controls how thick or bold button text in navigation bars appears. \'normal\' makes it regular weight, \'bold\' makes it thicker, and numbers (100-900) provide fine control over thickness.<br>CSS variable: --wm-navbar-button-font-weight"}}}}}}}');
11
-
12
- /***/ })
13
-
14
- }]);
@@ -1,14 +0,0 @@
1
- .app-input-focused {
2
- --wm-form-controls-border-color: var(--wm-color-primary);
3
- --wm-form-controls-border-width: var(--wm-border-width-base);
4
- --wm-form-controls-background: var(--wm-color-outline-variant);
5
- --wm-form-controls-color: var(--wm-color-black);
6
- }
7
-
8
- .app-input-disabled {
9
- --wm-form-controls-border-color: var(--wm-color-shadow);
10
- --wm-form-controls-border-width: var(--wm-border-width-base);
11
- --wm-form-controls-background: var(--wm-color-surface-dim);
12
- --wm-form-controls-color: var(--wm-color-scrim);
13
- --wm-form-controls-opacity: 0.67;
14
- }
@@ -1,2 +0,0 @@
1
- @import url('./carousel.less');
2
- @import url('./login.less');
@@ -1,21 +0,0 @@
1
- .app-icon,
2
- .app-icon-wrapper {
3
- position: relative;
4
- display: inline-flex;
5
- justify-content: center;
6
- align-items: center;
7
- padding: 0;
8
- gap: var(--wm-icon-gap);
9
- font-style: normal;
10
- color: var(--wm-icon-color);
11
- i {
12
- font-style: normal;
13
- }
14
- }
15
- .app-icon {
16
- font-size: var(--wm-icon-font-size);
17
- min-width: var(--wm-icon-min-width);
18
- width: var(--wm-icon-width);
19
- height: var(--wm-icon-height);
20
- }
21
-
@@ -1,28 +0,0 @@
1
- .app-label {
2
- &.h1,
3
- &.h2,
4
- &.h3,
5
- &.h4,
6
- &.h5,
7
- &.h6 {
8
- padding-left: var(--wm-label-padding-left);
9
- padding-right: var(--wm-label-padding-right);
10
- padding-top: var(--wm-label-padding-top);
11
- padding-bottom: var(--wm-label-padding-bottom);
12
- margin: var(--wm-label-margin);
13
- }
14
- border-radius: var(--wm-label-border-radius);
15
-
16
- &.label-primary,
17
- &.label-danger,
18
- &.label-default,
19
- &.label-success,
20
- &.label-warning,
21
- &.label-info {
22
- padding-top: var(--wm-label-padding-top);
23
- padding-bottom: var(--wm-label-padding-bottom);
24
- padding-left: var(--wm-label-padding-left);
25
- padding-right: var(--wm-label-padding-right);
26
- margin: var(--wm-label-margin);
27
- }
28
- }
@@ -1,6 +0,0 @@
1
- .app-progress {
2
-
3
- &-label {
4
- display: none;
5
- }
6
- }
@@ -1,9 +0,0 @@
1
- .app-progress.circle {
2
- background-color: transparent;
3
- width: var(--wm-progress-circle-width) !important;
4
- height: var(--wm-progress-circle-height) !important;
5
- path {
6
- stroke-linecap: butt;
7
- stroke-width: 16px;
8
- }
9
- }
@@ -1,6 +0,0 @@
1
- .app-spinner {
2
- .spinner-message {
3
- background-color: inherit;
4
- border-color: transparent;
5
- }
6
- }
@@ -1,11 +0,0 @@
1
- @import url('./anchor.less');
2
- @import url('./button.less');
3
- @import url('./button-group.less');
4
- @import url('./icon.less');
5
- @import url('./label.less');
6
- @import url('./message.less');
7
- @import url('./picture.less');
8
- @import url('./progress-bar.less');
9
- @import url('./progress-circle.less');
10
- @import url('./search.less');
11
- @import url('./spinner.less');
@@ -1,26 +0,0 @@
1
- .app-accordion{
2
- .panel-heading {
3
- border-bottom-width: var(--wm-accordion-header-border-bottom-width);
4
- display: flex;
5
- flex-direction: row;
6
- align-self: center;
7
- .panel-title {
8
- flex: 1;
9
- align-self: center;
10
- }
11
- .panel-actions {
12
- top: auto;
13
- right: auto;
14
- position: static;
15
- .label {
16
- border-style: solid;
17
- }
18
- .badge {
19
- line-height: var(--wm-accordion-badge-height);
20
- }
21
- }
22
- }
23
- .panel-body {
24
- padding: 0px;
25
- }
26
- }
@@ -1,18 +0,0 @@
1
- .app-page-content .app-default-container {
2
- border: 1px dotted rgba(168, 168, 168, .4) !important;
3
- }
4
-
5
- .app-container{
6
- border-style: var(--wm-container-border-style);
7
- box-shadow: var(--wm-container-box-shadow);
8
- background-color: var(--wm-container-background-color);
9
- padding-right: var(--wm-container-padding-right);
10
- padding-left: var(--wm-container-padding-left);
11
- padding-bottom: var(--wm-container-padding-bottom);
12
- padding-top: var(--wm-container-padding-top);
13
-
14
- border-radius: var(--wm-container-border-radius);
15
- border-width: var(--wm-container-border-width);
16
- border-color: var(--wm-container-border-color);
17
- opacity: var(--wm-container-opacity);
18
- }
@@ -1,8 +0,0 @@
1
- .app-grid-layout {
2
- .table-header-row .app-label {
3
- font-weight: bold;
4
- }
5
- .app-grid-column {
6
- background-color: transparent;
7
- }
8
- }
@@ -1,46 +0,0 @@
1
- .app-panel {
2
- .panel-heading {
3
- background-color: var(--wm-panel-heading-background);
4
- .app-icon.panel-icon {
5
- font-size: 32px;
6
- }
7
- .heading {
8
- font-size: var(--wm-panel-heading-font-size);
9
- font-weight: var(--wm-panel-heading-font-weight);
10
- }
11
- .description {
12
- font-size: var(--wm-panel-heading-description-font-size);
13
- }
14
- .panel-title {
15
- display: flex;
16
- align-content: center;
17
- a {
18
- flex: 1;
19
- display: block;
20
- }
21
- .app-badge {
22
- width: 24px;
23
- height: 24px;
24
- display: inline-block;
25
- padding: 6px 4px;
26
- border-radius: 24px;
27
- }
28
- .panel-actions {
29
- display: block;
30
- align-self: center;
31
- }
32
- }
33
- }
34
- .panel-content {
35
- .panel-body {
36
- padding: 0px;
37
- }
38
- }
39
- .app-panel-footer {
40
- min-height: 64px; //TODO Add styling tokens
41
- margin-top: 8px; //TODO Add styling tokens
42
- border-radius: 6px; //TODO Add styling tokens
43
- }
44
- }
45
-
46
-
@@ -1,6 +0,0 @@
1
- @import url('./accordion.less');
2
- @import url('./grid.less');
3
- @import url('./panel.less');
4
- @import url('./tabs.less');
5
- @import url('./wizard.less');
6
- @import url('./container.less');
@@ -1,113 +0,0 @@
1
- .app-tabs {
2
- width: 100%;
3
- display: flex;
4
- flex-direction: column;
5
- justify-content: flex-start;
6
- background: var(--wm-tabs-background);
7
-
8
- >.tabs-list {
9
- position: absolute;
10
- top: 0;
11
- right: 0;
12
- z-index: 121;
13
- font-size: 0;
14
- color: var(--wm-tabs-item-heading-text, #000);
15
- background-color: var(--wm-tabs-background);
16
- padding: var(--wm-tabs-border-width, 4px) 0;
17
- }
18
-
19
- >.nav-tabs {
20
- display: flex;
21
- align-items: stretch;
22
- border-bottom: var(--wm-tabs-border-width) var(--wm-tabs-border-style) var(--wm-tabs-border-color);
23
-
24
- >.tab-header {
25
- display: inline-flex;
26
- align-items: center;
27
- margin: 0px;
28
- background-color: var(--wm-tabs-item-heading-background);
29
-
30
- .tab-heading {
31
-
32
-
33
- background-color: transparent;
34
- color: var(--wm-tabs-item-heading-text);
35
-
36
- .app-icon {
37
- color: var(--wm-tabs-item-heading-icon);
38
- }
39
-
40
- display: flex;
41
- justify-content: center;
42
- align-items: center;
43
- height: 100%;
44
- min-height: var(--wm-tabs-item-heading-line-height);
45
- padding: var(--wm-tabs-item-heading-padding, 8px);
46
- font-size: var(--wm-tabs-item-heading-font-size);
47
- font-weight: var(--wm-tabs-item-heading-font-weight);
48
- line-height: var(--wm-tabs-item-heading-line-height);
49
-
50
- &:after {
51
- content: "";
52
- position: absolute;
53
- bottom: 0;
54
- height: var(--wm-tabs-item-heading-indicator-height);
55
- width: 100%;
56
- background: var(--wm-tabs-item-heading-indicator-background);
57
- transform: scale(0);
58
- transition: all 0.2s ease-in-out;
59
- }
60
- }
61
-
62
- &.active {
63
-
64
-
65
- background-color: var(--wm-tabs-item-heading-background);
66
- color: var(--wm-tabs-item-heading-text);
67
-
68
- .app-icon {
69
- color: var(--wm-tabs-item-heading-icon);
70
- }
71
-
72
- .tab-heading {
73
-
74
-
75
-
76
- &:after {
77
- background: var(--wm-tabs-item-heading-indicator-background);
78
- transform: scale(1);
79
- transition: all 0.2s ease-in-out;
80
- }
81
- }
82
- }
83
-
84
- &.disabled {
85
- .tab-heading {
86
- opacity: 0.5;
87
- cursor: not-allowed;
88
-
89
- &:after {
90
- display: none;
91
- }
92
- }
93
- }
94
- }
95
- }
96
-
97
- >.tab-content {
98
- background: var(--wm-tabs-background);
99
- padding: var(--wm-tabs-item-heading-padding, 8px);
100
- }
101
-
102
- .tab-pane {
103
- .tab-body {
104
- border-color: transparent;
105
- }
106
- }
107
-
108
- }
109
-
110
- .nav-tabs>li.active>a {
111
- background-color: transparent;
112
- border-color: transparent;
113
- }
@@ -1,7 +0,0 @@
1
- .app-tile {
2
-
3
- }
4
-
5
- .h1.app-label.tile-template-text {
6
- color: var(--wm-tile-color);
7
- }