@nuraly/lumenui 0.1.0 → 0.2.1

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 (312) hide show
  1. package/dist/nuralyui.bundle.js +23024 -17355
  2. package/dist/nuralyui.bundle.js.gz +0 -0
  3. package/dist/src/components/alert/alert.component.d.ts +8 -5
  4. package/dist/src/components/alert/alert.component.js +24 -20
  5. package/dist/src/components/alert/alert.style.d.ts +0 -7
  6. package/dist/src/components/alert/alert.style.js +48 -90
  7. package/dist/src/components/alert/bundle.js +82 -108
  8. package/dist/src/components/alert/bundle.js.gz +0 -0
  9. package/dist/src/components/badge/badge.component.d.ts +9 -8
  10. package/dist/src/components/badge/badge.component.js +17 -14
  11. package/dist/src/components/badge/badge.style.d.ts +0 -7
  12. package/dist/src/components/badge/badge.style.js +49 -107
  13. package/dist/src/components/badge/bundle.js +81 -119
  14. package/dist/src/components/badge/bundle.js.gz +0 -0
  15. package/dist/src/components/breadcrumb/breadcrumb.component.d.ts +8 -10
  16. package/dist/src/components/breadcrumb/breadcrumb.component.js +16 -15
  17. package/dist/src/components/breadcrumb/breadcrumb.style.d.ts +0 -7
  18. package/dist/src/components/breadcrumb/breadcrumb.style.js +42 -60
  19. package/dist/src/components/breadcrumb/bundle.js +96 -93
  20. package/dist/src/components/breadcrumb/bundle.js.gz +0 -0
  21. package/dist/src/components/button/bundle.js +221 -470
  22. package/dist/src/components/button/bundle.js.gz +0 -0
  23. package/dist/src/components/button/button.component.d.ts +2 -1
  24. package/dist/src/components/button/button.component.js +6 -6
  25. package/dist/src/components/button/button.style.d.ts +0 -7
  26. package/dist/src/components/button/button.style.js +167 -433
  27. package/dist/src/components/canvas/base-canvas.component.d.ts +2 -1
  28. package/dist/src/components/canvas/base-canvas.component.js +1 -0
  29. package/dist/src/components/canvas/bundle.js +16919 -9595
  30. package/dist/src/components/canvas/bundle.js.gz +0 -0
  31. package/dist/src/components/canvas/canvas.constants.d.ts +1 -1
  32. package/dist/src/components/canvas/canvas.constants.js +1 -1
  33. package/dist/src/components/canvas/chatbot-panel.style.js +31 -31
  34. package/dist/src/components/canvas/index.d.ts +2 -0
  35. package/dist/src/components/canvas/index.js +3 -0
  36. package/dist/src/components/canvas/whiteboard-canvas.component.d.ts +3 -1
  37. package/dist/src/components/canvas/whiteboard-canvas.component.js +19 -1
  38. package/dist/src/components/canvas/whiteboard-canvas.style.js +159 -138
  39. package/dist/src/components/canvas/whiteboard-node.component.d.ts +2 -1
  40. package/dist/src/components/canvas/whiteboard-node.component.js +2 -1
  41. package/dist/src/components/canvas/whiteboard-node.style.js +44 -44
  42. package/dist/src/components/canvas/workflow-canvas-only.d.ts +4 -0
  43. package/dist/src/components/canvas/workflow-canvas-only.js +5 -0
  44. package/dist/src/components/canvas/workflow-canvas.component.d.ts +3 -1
  45. package/dist/src/components/canvas/workflow-canvas.component.js +24 -2
  46. package/dist/src/components/canvas/workflow-canvas.style.js +776 -648
  47. package/dist/src/components/canvas/workflow-canvas.types.d.ts +113 -4
  48. package/dist/src/components/canvas/workflow-canvas.types.js +646 -3
  49. package/dist/src/components/canvas/workflow-node.component.d.ts +3 -2
  50. package/dist/src/components/canvas/workflow-node.component.js +5 -5
  51. package/dist/src/components/canvas/workflow-node.style.js +183 -181
  52. package/dist/src/components/card/bundle.js +43 -35
  53. package/dist/src/components/card/bundle.js.gz +0 -0
  54. package/dist/src/components/card/card.component.d.ts +6 -1
  55. package/dist/src/components/card/card.component.js +8 -2
  56. package/dist/src/components/card/card.style.js +26 -30
  57. package/dist/src/components/carousel/bundle.js +8 -8
  58. package/dist/src/components/carousel/bundle.js.gz +0 -0
  59. package/dist/src/components/carousel/carousel.component.d.ts +12 -0
  60. package/dist/src/components/carousel/carousel.component.js +16 -4
  61. package/dist/src/components/chatbot/bundle.js +422 -406
  62. package/dist/src/components/chatbot/bundle.js.gz +0 -0
  63. package/dist/src/components/chatbot/chatbot.component.d.ts +2 -1
  64. package/dist/src/components/chatbot/chatbot.component.js +1 -0
  65. package/dist/src/components/chatbot/chatbot.style.js +277 -277
  66. package/dist/src/components/checkbox/bundle.js +86 -245
  67. package/dist/src/components/checkbox/bundle.js.gz +0 -0
  68. package/dist/src/components/checkbox/checkbox.component.d.ts +5 -2
  69. package/dist/src/components/checkbox/checkbox.component.js +11 -13
  70. package/dist/src/components/checkbox/checkbox.style.js +56 -231
  71. package/dist/src/components/code-editor/bundle.js +151 -25
  72. package/dist/src/components/code-editor/bundle.js.gz +0 -0
  73. package/dist/src/components/code-editor/code-editor.component.d.ts +18 -56
  74. package/dist/src/components/code-editor/code-editor.component.js +141 -394
  75. package/dist/src/components/code-editor/code-editor.style.js +139 -15
  76. package/dist/src/components/collapse/bundle.js +97 -84
  77. package/dist/src/components/collapse/bundle.js.gz +0 -0
  78. package/dist/src/components/collapse/collapse.component.d.ts +7 -1
  79. package/dist/src/components/collapse/collapse.component.js +11 -2
  80. package/dist/src/components/collapse/collapse.style.js +60 -60
  81. package/dist/src/components/colorpicker/bundle.js +85 -48
  82. package/dist/src/components/colorpicker/bundle.js.gz +0 -0
  83. package/dist/src/components/colorpicker/color-holder.component.d.ts +2 -4
  84. package/dist/src/components/colorpicker/color-holder.component.js +5 -6
  85. package/dist/src/components/colorpicker/color-holder.style.js +11 -11
  86. package/dist/src/components/colorpicker/color-picker.component.d.ts +2 -1
  87. package/dist/src/components/colorpicker/color-picker.component.js +1 -0
  88. package/dist/src/components/colorpicker/color-picker.style.js +12 -12
  89. package/dist/src/components/colorpicker/default-color-sets.component.d.ts +2 -2
  90. package/dist/src/components/colorpicker/default-color-sets.component.js +4 -3
  91. package/dist/src/components/colorpicker/default-color-sets.style.js +5 -5
  92. package/dist/src/components/container/bundle.js +24 -14
  93. package/dist/src/components/container/bundle.js.gz +0 -0
  94. package/dist/src/components/container/container.component.d.ts +4 -1
  95. package/dist/src/components/container/container.component.js +7 -5
  96. package/dist/src/components/container/container.style.js +9 -9
  97. package/dist/src/components/datepicker/bundle.js +193 -177
  98. package/dist/src/components/datepicker/bundle.js.gz +0 -0
  99. package/dist/src/components/datepicker/datepicker.component.d.ts +2 -1
  100. package/dist/src/components/datepicker/datepicker.component.js +1 -0
  101. package/dist/src/components/datepicker/datepicker.style.js +65 -65
  102. package/dist/src/components/datepicker/datepicker.style.variables.js +91 -91
  103. package/dist/src/components/db-connection-select/bundle.js +7 -6
  104. package/dist/src/components/db-connection-select/bundle.js.gz +0 -0
  105. package/dist/src/components/db-connection-select/db-connection-select.component.d.ts +3 -0
  106. package/dist/src/components/db-connection-select/db-connection-select.component.js +4 -0
  107. package/dist/src/components/divider/bundle.js +61 -35
  108. package/dist/src/components/divider/bundle.js.gz +0 -0
  109. package/dist/src/components/divider/divider.component.d.ts +4 -6
  110. package/dist/src/components/divider/divider.component.js +10 -14
  111. package/dist/src/components/divider/divider.style.js +41 -31
  112. package/dist/src/components/document/bundle.js +50 -48
  113. package/dist/src/components/document/bundle.js.gz +0 -0
  114. package/dist/src/components/document/document.component.d.ts +12 -1
  115. package/dist/src/components/document/document.component.js +18 -6
  116. package/dist/src/components/document/document.style.js +21 -36
  117. package/dist/src/components/dropdown/bundle.js +117 -101
  118. package/dist/src/components/dropdown/bundle.js.gz +0 -0
  119. package/dist/src/components/dropdown/dropdown.component.d.ts +2 -1
  120. package/dist/src/components/dropdown/dropdown.component.js +1 -0
  121. package/dist/src/components/dropdown/dropdown.style.js +68 -68
  122. package/dist/src/components/file-upload/bundle.js +82 -76
  123. package/dist/src/components/file-upload/bundle.js.gz +0 -0
  124. package/dist/src/components/file-upload/file-upload.component.d.ts +2 -1
  125. package/dist/src/components/file-upload/file-upload.component.js +1 -0
  126. package/dist/src/components/file-upload/styles.js +59 -59
  127. package/dist/src/components/flex/bundle.js +18 -8
  128. package/dist/src/components/flex/bundle.js.gz +0 -0
  129. package/dist/src/components/flex/flex.component.d.ts +4 -1
  130. package/dist/src/components/flex/flex.component.js +7 -4
  131. package/dist/src/components/flex/flex.style.js +2 -2
  132. package/dist/src/components/form/bundle.js +22 -10
  133. package/dist/src/components/form/bundle.js.gz +0 -0
  134. package/dist/src/components/form/form.component.d.ts +4 -1
  135. package/dist/src/components/form/form.component.js +5 -1
  136. package/dist/src/components/form/form.style.js +2 -2
  137. package/dist/src/components/grid/bundle.js +26 -14
  138. package/dist/src/components/grid/bundle.js.gz +0 -0
  139. package/dist/src/components/grid/col.component.d.ts +4 -1
  140. package/dist/src/components/grid/col.component.js +4 -1
  141. package/dist/src/components/grid/col.style.js +2 -2
  142. package/dist/src/components/grid/row.component.d.ts +4 -1
  143. package/dist/src/components/grid/row.component.js +4 -1
  144. package/dist/src/components/grid/row.style.js +2 -2
  145. package/dist/src/components/icon/bundle.js +78 -252
  146. package/dist/src/components/icon/bundle.js.gz +0 -0
  147. package/dist/src/components/icon/icon-paths.d.ts +2 -0
  148. package/dist/src/components/icon/icon-paths.js +141 -0
  149. package/dist/src/components/icon/icon.component.d.ts +10 -12
  150. package/dist/src/components/icon/icon.component.js +42 -93
  151. package/dist/src/components/icon/icon.style.js +42 -130
  152. package/dist/src/components/icon/icon.variables.js +9 -9
  153. package/dist/src/components/iconpicker/bundle.js +859 -1511
  154. package/dist/src/components/iconpicker/bundle.js.gz +0 -0
  155. package/dist/src/components/iconpicker/icon-picker.component.d.ts +2 -1
  156. package/dist/src/components/iconpicker/icon-picker.component.js +1 -0
  157. package/dist/src/components/iconpicker/icon-picker.style.js +13 -13
  158. package/dist/src/components/image/bundle.js +43 -33
  159. package/dist/src/components/image/bundle.js.gz +0 -0
  160. package/dist/src/components/image/image.component.d.ts +10 -1
  161. package/dist/src/components/image/image.component.js +13 -3
  162. package/dist/src/components/image/image.style.js +19 -26
  163. package/dist/src/components/input/bundle.js +420 -644
  164. package/dist/src/components/input/bundle.js.gz +0 -0
  165. package/dist/src/components/input/input.component.d.ts +16 -3
  166. package/dist/src/components/input/input.component.js +43 -27
  167. package/dist/src/components/input/input.style.d.ts +1 -1
  168. package/dist/src/components/input/input.style.js +331 -634
  169. package/dist/src/components/kv-secret-select/bundle.js +2 -1
  170. package/dist/src/components/kv-secret-select/bundle.js.gz +0 -0
  171. package/dist/src/components/kv-secret-select/kv-secret-select.component.d.ts +3 -0
  172. package/dist/src/components/kv-secret-select/kv-secret-select.component.js +4 -0
  173. package/dist/src/components/label/bundle.js +37 -60
  174. package/dist/src/components/label/bundle.js.gz +0 -0
  175. package/dist/src/components/label/label.component.d.ts +8 -4
  176. package/dist/src/components/label/label.component.js +9 -14
  177. package/dist/src/components/label/label.style.js +17 -25
  178. package/dist/src/components/label/label.style.variables.js +18 -18
  179. package/dist/src/components/layout/bundle.js +86 -70
  180. package/dist/src/components/layout/bundle.js.gz +0 -0
  181. package/dist/src/components/layout/content.component.d.ts +2 -1
  182. package/dist/src/components/layout/content.component.js +2 -1
  183. package/dist/src/components/layout/content.style.js +3 -3
  184. package/dist/src/components/layout/footer.component.d.ts +2 -1
  185. package/dist/src/components/layout/footer.component.js +3 -2
  186. package/dist/src/components/layout/footer.style.js +7 -7
  187. package/dist/src/components/layout/header.component.d.ts +2 -1
  188. package/dist/src/components/layout/header.component.js +3 -2
  189. package/dist/src/components/layout/header.style.js +7 -7
  190. package/dist/src/components/layout/layout.component.d.ts +4 -7
  191. package/dist/src/components/layout/layout.component.js +9 -22
  192. package/dist/src/components/layout/layout.style.js +1 -1
  193. package/dist/src/components/layout/sider.component.d.ts +3 -1
  194. package/dist/src/components/layout/sider.component.js +3 -1
  195. package/dist/src/components/layout/sider.style.js +29 -29
  196. package/dist/src/components/menu/bundle.js +135 -125
  197. package/dist/src/components/menu/bundle.js.gz +0 -0
  198. package/dist/src/components/menu/menu.component.d.ts +2 -1
  199. package/dist/src/components/menu/menu.component.js +1 -0
  200. package/dist/src/components/menu/menu.style.js +87 -87
  201. package/dist/src/components/modal/bundle.js +105 -96
  202. package/dist/src/components/modal/bundle.js.gz +0 -0
  203. package/dist/src/components/modal/modal.component.d.ts +2 -1
  204. package/dist/src/components/modal/modal.component.js +1 -0
  205. package/dist/src/components/modal/modal.style.js +69 -71
  206. package/dist/src/components/panel/bundle.js +190 -391
  207. package/dist/src/components/panel/bundle.js.gz +0 -0
  208. package/dist/src/components/panel/panel.component.d.ts +2 -1
  209. package/dist/src/components/panel/panel.component.js +1 -0
  210. package/dist/src/components/panel/panel.style.js +65 -65
  211. package/dist/src/components/popconfirm/bundle.js +107 -93
  212. package/dist/src/components/popconfirm/bundle.js.gz +0 -0
  213. package/dist/src/components/popconfirm/popconfirm-manager.component.d.ts +2 -1
  214. package/dist/src/components/popconfirm/popconfirm-manager.component.js +1 -0
  215. package/dist/src/components/popconfirm/popconfirm-manager.style.js +16 -16
  216. package/dist/src/components/popconfirm/popconfirm.component.d.ts +2 -1
  217. package/dist/src/components/popconfirm/popconfirm.component.js +9 -5
  218. package/dist/src/components/popconfirm/popconfirm.style.js +43 -43
  219. package/dist/src/components/radio/bundle.js +56 -86
  220. package/dist/src/components/radio/bundle.js.gz +0 -0
  221. package/dist/src/components/radio/radio.component.d.ts +8 -2
  222. package/dist/src/components/radio/radio.component.js +17 -9
  223. package/dist/src/components/radio/radio.style.js +30 -77
  224. package/dist/src/components/radio-group/bundle.js +125 -89
  225. package/dist/src/components/radio-group/bundle.js.gz +0 -0
  226. package/dist/src/components/radio-group/radio-group.component.d.ts +5 -1
  227. package/dist/src/components/radio-group/radio-group.component.js +18 -10
  228. package/dist/src/components/radio-group/radio-group.style.js +44 -44
  229. package/dist/src/components/select/bundle.js +260 -367
  230. package/dist/src/components/select/bundle.js.gz +0 -0
  231. package/dist/src/components/select/select.component.d.ts +12 -17
  232. package/dist/src/components/select/select.component.js +35 -35
  233. package/dist/src/components/select/select.style.js +184 -324
  234. package/dist/src/components/skeleton/bundle.js +82 -162
  235. package/dist/src/components/skeleton/bundle.js.gz +0 -0
  236. package/dist/src/components/skeleton/skeleton.component.d.ts +10 -5
  237. package/dist/src/components/skeleton/skeleton.component.js +20 -7
  238. package/dist/src/components/skeleton/skeleton.style.js +34 -133
  239. package/dist/src/components/slider-input/bundle.js +89 -88
  240. package/dist/src/components/slider-input/bundle.js.gz +0 -0
  241. package/dist/src/components/slider-input/slider-input.component.d.ts +11 -0
  242. package/dist/src/components/slider-input/slider-input.component.js +20 -8
  243. package/dist/src/components/slider-input/slider-input.style.js +47 -47
  244. package/dist/src/components/slider-input/slider-input.style.variables.js +32 -32
  245. package/dist/src/components/table/bundle.js +149 -128
  246. package/dist/src/components/table/bundle.js.gz +0 -0
  247. package/dist/src/components/table/table.component.d.ts +2 -1
  248. package/dist/src/components/table/table.component.js +1 -0
  249. package/dist/src/components/table/table.style.js +79 -79
  250. package/dist/src/components/tabs/bundle.js +462 -663
  251. package/dist/src/components/tabs/bundle.js.gz +0 -0
  252. package/dist/src/components/tabs/tabs.component.d.ts +6 -1
  253. package/dist/src/components/tabs/tabs.component.js +8 -1
  254. package/dist/src/components/tabs/tabs.style.js +200 -201
  255. package/dist/src/components/tag/bundle.js +44 -36
  256. package/dist/src/components/tag/bundle.js.gz +0 -0
  257. package/dist/src/components/tag/tag.component.d.ts +7 -6
  258. package/dist/src/components/tag/tag.component.js +10 -19
  259. package/dist/src/components/tag/tag.style.js +20 -24
  260. package/dist/src/components/textarea/bundle.js +131 -94
  261. package/dist/src/components/textarea/bundle.js.gz +0 -0
  262. package/dist/src/components/textarea/textarea.component.d.ts +7 -1
  263. package/dist/src/components/textarea/textarea.component.js +10 -3
  264. package/dist/src/components/textarea/textarea.style.d.ts +1 -13
  265. package/dist/src/components/textarea/textarea.style.js +79 -91
  266. package/dist/src/components/timeline/bundle.js +71 -134
  267. package/dist/src/components/timeline/bundle.js.gz +0 -0
  268. package/dist/src/components/timeline/timeline.component.d.ts +9 -6
  269. package/dist/src/components/timeline/timeline.component.js +16 -13
  270. package/dist/src/components/timeline/timeline.style.d.ts +0 -7
  271. package/dist/src/components/timeline/timeline.style.js +41 -122
  272. package/dist/src/components/timepicker/bundle.js +196 -166
  273. package/dist/src/components/timepicker/bundle.js.gz +0 -0
  274. package/dist/src/components/timepicker/timepicker.component.d.ts +2 -1
  275. package/dist/src/components/timepicker/timepicker.component.js +1 -0
  276. package/dist/src/components/timepicker/timepicker.style.js +42 -42
  277. package/dist/src/components/timepicker/timepicker.style.variables.js +91 -91
  278. package/dist/src/components/toast/bundle.js +97 -81
  279. package/dist/src/components/toast/bundle.js.gz +0 -0
  280. package/dist/src/components/toast/toast.component.d.ts +2 -1
  281. package/dist/src/components/toast/toast.component.js +1 -0
  282. package/dist/src/components/toast/toast.style.js +62 -62
  283. package/dist/src/components/tooltips/bundle.js +10 -10
  284. package/dist/src/components/tooltips/bundle.js.gz +0 -0
  285. package/dist/src/components/tooltips/tooltips.component.d.ts +8 -0
  286. package/dist/src/components/tooltips/tooltips.component.js +9 -1
  287. package/dist/src/components/tooltips/tooltips.style.js +6 -6
  288. package/dist/src/components/video/bundle.js +47 -36
  289. package/dist/src/components/video/bundle.js.gz +0 -0
  290. package/dist/src/components/video/video.component.d.ts +12 -1
  291. package/dist/src/components/video/video.component.js +18 -6
  292. package/dist/src/components/video/video.style.js +18 -24
  293. package/package.json +25 -12
  294. package/packages/common/dist/VERSIONS.md +2 -2
  295. package/packages/common/dist/shared/base-mixin.d.ts +21 -19
  296. package/packages/common/dist/shared/base-mixin.d.ts.map +1 -1
  297. package/packages/common/dist/shared/base-mixin.js +102 -18
  298. package/packages/common/dist/shared/base-mixin.js.map +1 -1
  299. package/packages/common/dist/shared/index.d.ts +1 -0
  300. package/packages/common/dist/shared/index.d.ts.map +1 -1
  301. package/packages/common/dist/shared/index.js +2 -0
  302. package/packages/common/dist/shared/index.js.map +1 -1
  303. package/packages/common/dist/shared/style-injector.d.ts +11 -0
  304. package/packages/common/dist/shared/style-injector.d.ts.map +1 -0
  305. package/packages/common/dist/shared/style-injector.js +53 -0
  306. package/packages/common/dist/shared/style-injector.js.map +1 -0
  307. package/packages/common/dist/shared/theme-mixin.d.ts +2 -24
  308. package/packages/common/dist/shared/theme-mixin.d.ts.map +1 -1
  309. package/packages/common/dist/shared/theme-mixin.js +5 -38
  310. package/packages/common/dist/shared/theme-mixin.js.map +1 -1
  311. package/packages/themes/dist/default.css +0 -10
  312. package/packages/themes/dist/package.json +1 -1
@@ -38,6 +38,8 @@ import { property, customElement, state } from 'lit/decorators.js';
38
38
  * @fires value-change - Fired when selection changes
39
39
  * @fires create-entry - Fired when user submits the create form
40
40
  * @fires test-connection - Fired when user clicks Test Connection
41
+ *
42
+ * @csspart container - The root nr-select wrapper
41
43
  */
42
44
  let NrDbConnectionSelect = class NrDbConnectionSelect extends LitElement {
43
45
  constructor() {
@@ -327,6 +329,7 @@ let NrDbConnectionSelect = class NrDbConnectionSelect extends LitElement {
327
329
  }));
328
330
  return html `
329
331
  <nr-select
332
+ part="container"
330
333
  .value=${this.value}
331
334
  .options=${options}
332
335
  placeholder=${this.placeholder}
@@ -515,6 +518,7 @@ NrDbConnectionSelect.styles = css `
515
518
  margin-bottom: 0;
516
519
  }
517
520
  `;
521
+ NrDbConnectionSelect.useShadowDom = true;
518
522
  __decorate([
519
523
  property({ type: String })
520
524
  ], NrDbConnectionSelect.prototype, "dbType", void 0);
@@ -1,4 +1,20 @@
1
- import{css as i,LitElement as r,html as t}from"lit";import{property as e,customElement as d}from"lit/decorators.js";import{classMap as a}from"lit/directives/class-map.js";import{styleMap as n}from"lit/directives/style-map.js";import{NuralyUIBaseMixin as o}from"@nuralyui/common/mixins";var l=i`
1
+ import{css as t,html as e,LitElement as i}from"lit";import{property as r,customElement as o}from"lit/decorators.js";import{classMap as s}from"lit/directives/class-map.js";import{styleMap as d}from"lit/directives/style-map.js";
2
+ /**
3
+ * @license
4
+ * Copyright 2023 Nuraly, Laabidi Aymen
5
+ * SPDX-License-Identifier: MIT
6
+ */const n=t=>class extends t{constructor(){super(...arguments),this.handleSystemThemeChange=()=>{this.closest("[data-theme]")||document.documentElement.hasAttribute("data-theme")||this.requestUpdate()}}connectedCallback(){super.connectedCallback(),this.setupThemeObserver(),this.setupDesignSystemObserver(),this.setupSystemThemeListener()}disconnectedCallback(){var t,e,i;super.disconnectedCallback(),null===(t=this.themeObserver)||void 0===t||t.disconnect(),null===(e=this.designSystemObserver)||void 0===e||e.disconnect(),null===(i=this.mediaQuery)||void 0===i||i.removeEventListener("change",this.handleSystemThemeChange)}get currentTheme(){var t,e;const i=(null===(t=this.closest("[data-theme]"))||void 0===t?void 0:t.getAttribute("data-theme"))||document.documentElement.getAttribute("data-theme");return i||((null===(e=window.matchMedia)||void 0===e?void 0:e.call(window,"(prefers-color-scheme: dark)").matches)?"dark":"light")}get currentDesignSystem(){var t;const e=(null===(t=this.closest("[design-system]"))||void 0===t?void 0:t.getAttribute("design-system"))||document.documentElement.getAttribute("design-system");return"carbon"===e?e:"default"}setupThemeObserver(){this.themeObserver=new MutationObserver(()=>{this.requestUpdate()}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}setupDesignSystemObserver(){this.designSystemObserver=new MutationObserver(()=>{this.requestUpdate()}),this.designSystemObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["design-system"]})}setupSystemThemeListener(){window.matchMedia&&(this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.mediaQuery.addEventListener("change",this.handleSystemThemeChange))}},a=()=>{var t;return void 0!==globalThis.litElementVersions||"undefined"!=typeof process&&"development"===(null===(t=process.env)||void 0===t?void 0:t.NODE_ENV)||"undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname)},l=t=>class extends t{constructor(){super(...arguments),this.requiredComponents=[]}validateDependencies(){if(a())for(const t of this.requiredComponents)if(!this.isComponentAvailable(t))throw new Error(`Required component "${t}" is not registered. Please import and register the component before using ${this.tagName.toLowerCase()}. Example: import '@nuralyui/${t}';`)}validateDependenciesWithHandler(t){if(!a())return!0;let e=!0;for(const i of this.requiredComponents)if(!this.isComponentAvailable(i)){e=!1;const r=new Error(`Required component "${i}" is not registered. Please import and register the component before using ${this.tagName.toLowerCase()}.`);t?t(i,r):console.error(r.message)}return e}isComponentAvailable(t){return!!customElements.get(t)}getMissingDependencies(){return this.requiredComponents.filter(t=>!this.isComponentAvailable(t))}areDependenciesAvailable(){return this.requiredComponents.every(t=>this.isComponentAvailable(t))}addRequiredComponent(t){this.requiredComponents.includes(t)||this.requiredComponents.push(t)}removeRequiredComponent(t){const e=this.requiredComponents.indexOf(t);e>-1&&this.requiredComponents.splice(e,1)}},h=t=>class extends t{dispatchCustomEvent(t,e){this.dispatchEvent(new CustomEvent(t,{detail:e,bubbles:!0,composed:!0}))}dispatchEventWithMetadata(t,e){var i;const r=Object.assign(Object.assign({},e),{timestamp:Date.now(),componentName:(null===(i=this.tagName)||void 0===i?void 0:i.toLowerCase())||"unknown"});this.dispatchCustomEvent(t,r)}dispatchInputEvent(t,e){const i=Object.assign({target:e.target||this,value:e.value,originalEvent:e.originalEvent},e);this.dispatchCustomEvent(t,i)}dispatchFocusEvent(t,e){const i=Object.assign({target:e.target||this,value:e.value,focused:e.focused,cursorPosition:e.cursorPosition,selectedText:e.selectedText},e);this.dispatchCustomEvent(t,i)}dispatchValidationEvent(t,e){var i;const r=Object.assign({target:e.target||this,value:e.value,isValid:null!==(i=e.isValid)&&void 0!==i&&i,error:e.error},e);this.dispatchCustomEvent(t,r)}dispatchActionEvent(t,e){const i=Object.assign({target:e.target||this,action:e.action,previousValue:e.previousValue,newValue:e.newValue},e);this.dispatchCustomEvent(t,i)}isReadonlyKeyAllowed(t){if(t.ctrlKey||t.metaKey){return["KeyA","KeyC"].includes(t.code)}return["Tab","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(t.key)}isActivationKey(t){return"Enter"===t.key||" "===t.key}},c=new Set,v=new Map;
7
+ /**
8
+ * @license
9
+ * Copyright 2023 Nuraly, Laabidi Aymen
10
+ * SPDX-License-Identifier: MIT
11
+ */
12
+ /**
13
+ * @license
14
+ * Copyright 2023 Nuraly, Laabidi Aymen
15
+ * SPDX-License-Identifier: MIT
16
+ */
17
+ const p=t=>{class e extends t{constructor(){super(...arguments),this.t=null}createRenderRoot(){return this.constructor.useShadowDom?super.createRenderRoot():this}connectedCallback(){const t=this.constructor.useShadowDom;if(!t&&null===this.t)for(this.t=[];this.firstChild;)this.t.push(this.removeChild(this.firstChild));if(super.connectedCallback(),!t){const t=this.constructor,e=this.tagName.toLowerCase(),i=t.styles;if(i){const t=u(i);t&&function(t,e,i){var r;if(!v.has(t)){const i=new CSSStyleSheet;i.replaceSync(e),v.set(t,i)}const o=v.get(t),s=`doc:${t}`;if(c.has(s)||(document.adoptedStyleSheets=[...document.adoptedStyleSheets,o],c.add(s)),i){let e=i;for(;e;){const i=e.getRootNode();if(!(i instanceof ShadowRoot))break;{const s=`shadow:${((null===(r=i.host)||void 0===r?void 0:r.tagName)||"").toLowerCase()}:${t}`;c.has(s)||(i.adoptedStyleSheets=[...i.adoptedStyleSheets,o],c.add(s)),e=i.host}}}}(e,t,this)}}}get lightChildren(){return this.t?this.t.filter(t=>!(t instanceof Element&&t.hasAttribute("slot"))):[]}lightChildrenNamed(t){return this.t?this.t.filter(e=>e instanceof Element&&e.getAttribute("slot")===t):[]}}return e.useShadowDom=!1,e};function u(t){return Array.isArray(t)?t.map(t=>u(t)).filter(Boolean).join("\n"):t&&"string"==typeof t.cssText?t.cssText:"string"==typeof t?t:""}var m=t`
2
18
  :host {
3
19
  display: block;
4
20
  box-sizing: border-box;
@@ -6,7 +22,7 @@ import{css as i,LitElement as r,html as t}from"lit";import{property as e,customE
6
22
 
7
23
  :host([type="vertical"]) {
8
24
  display: inline-flex;
9
- align-self: stretch; /* Stretch to parent height in flex containers */
25
+ align-self: stretch;
10
26
  height: auto;
11
27
  }
12
28
 
@@ -14,8 +30,8 @@ import{css as i,LitElement as r,html as t}from"lit";import{property as e,customE
14
30
  box-sizing: border-box;
15
31
  margin: 0;
16
32
  padding: 0;
17
- color: var(--nuraly-divider-text-color);
18
- font-size: var(--nuraly-divider-font-size);
33
+ color: var(--nr-text, #161616);
34
+ font-size: 1rem;
19
35
  line-height: 1.5715;
20
36
  list-style: none;
21
37
  font-family: inherit;
@@ -27,18 +43,18 @@ import{css as i,LitElement as r,html as t}from"lit";import{property as e,customE
27
43
  clear: both;
28
44
  width: 100%;
29
45
  min-width: 100%;
30
- margin: var(--nuraly-divider-margin-vertical, 10px) 0;
31
- border-block-start: 1px var(--nuraly-divider-variant-style, solid) var(--nuraly-divider-color, rgba(5, 5, 5, 0.3));
46
+ margin: 10px 0;
47
+ border-block-start: 1px solid var(--nr-border, #e0e0e0);
32
48
  }
33
49
 
34
50
  /* Horizontal with text */
35
51
  .divider--horizontal.divider--with-text {
36
52
  display: flex;
37
53
  align-items: center;
38
- margin: var(--nuraly-divider-margin-vertical) 0;
39
- color: var(--nuraly-divider-text-color);
54
+ margin: 10px 0;
55
+ color: var(--nr-text, #161616);
40
56
  font-weight: 500;
41
- font-size: var(--nuraly-divider-font-size);
57
+ font-size: 1rem;
42
58
  white-space: nowrap;
43
59
  text-align: center;
44
60
  border-block-start: 0;
@@ -48,7 +64,7 @@ import{css as i,LitElement as r,html as t}from"lit";import{property as e,customE
48
64
  .divider--horizontal.divider--with-text::after {
49
65
  position: relative;
50
66
  width: 50%;
51
- border-block-start: 1px var(--nuraly-divider-variant-style, solid) var(--nuraly-divider-color, rgba(5, 5, 5, 0.3));
67
+ border-block-start: 1px solid var(--nr-border, #e0e0e0);
52
68
  border-block-end: 0;
53
69
  transform: translateY(50%);
54
70
  content: '';
@@ -56,7 +72,7 @@ import{css as i,LitElement as r,html as t}from"lit";import{property as e,customE
56
72
 
57
73
  /* Text positioning */
58
74
  .divider--start::before {
59
- width: var(--nuraly-divider-orientation-margin-left, 5%);
75
+ width: 5%;
60
76
  }
61
77
 
62
78
  .divider--start::after {
@@ -68,15 +84,15 @@ import{css as i,LitElement as r,html as t}from"lit";import{property as e,customE
68
84
  }
69
85
 
70
86
  .divider--end::after {
71
- width: var(--nuraly-divider-orientation-margin-right, 5%);
87
+ width: 5%;
72
88
  }
73
89
 
74
90
  /* Text wrapper */
75
91
  .divider__text {
76
92
  display: inline-block;
77
- padding: 0 var(--nuraly-divider-text-padding, 1em);
78
- color: var(--nuraly-divider-text-color, rgba(0, 0, 0, 0.88));
79
- font-size: var(--nuraly-divider-font-size, 1rem);
93
+ padding: 0 1em;
94
+ color: var(--nr-text, #161616);
95
+ font-size: 1rem;
80
96
  }
81
97
 
82
98
  /* Plain text style */
@@ -90,54 +106,64 @@ import{css as i,LitElement as r,html as t}from"lit";import{property as e,customE
90
106
  top: -0.06em;
91
107
  display: inline-block;
92
108
  height: 0.9em;
93
- margin: 0 var(--nuraly-divider-margin-horizontal, 8px);
109
+ margin: 0 8px;
94
110
  vertical-align: middle;
95
111
  border-top: 0;
96
- border-inline-start: 1px var(--nuraly-divider-variant-style, solid) var(--nuraly-divider-color, rgba(5, 5, 5, 0.3));
112
+ border-inline-start: 1px solid var(--nr-border, #e0e0e0);
97
113
  }
98
114
 
99
115
  /* Full height vertical divider when in flex container */
100
- :host([type="vertical"]) {
101
- height: 100%;
102
- }
103
-
104
116
  :host([type="vertical"]) .divider--vertical {
105
117
  height: 100%;
106
118
  align-self: stretch;
107
119
  top: 0;
108
120
  vertical-align: top;
109
- border-inline-start-color: var(--nuraly-divider-color, rgba(5, 5, 5, 0.3));
121
+ border-inline-start-color: var(--nr-border, #e0e0e0);
110
122
  }
111
123
 
112
124
  /* Variant styles */
113
- .divider--solid {
114
- --nuraly-divider-variant-style: solid;
125
+ .divider--dashed.divider--horizontal {
126
+ border-block-start-style: dashed;
127
+ }
128
+
129
+ .divider--dashed.divider--with-text::before,
130
+ .divider--dashed.divider--with-text::after {
131
+ border-block-start-style: dashed;
132
+ }
133
+
134
+ .divider--dashed.divider--vertical {
135
+ border-inline-start-style: dashed;
136
+ }
137
+
138
+ .divider--dotted.divider--horizontal {
139
+ border-block-start-style: dotted;
115
140
  }
116
141
 
117
- .divider--dashed {
118
- --nuraly-divider-variant-style: dashed;
142
+ .divider--dotted.divider--with-text::before,
143
+ .divider--dotted.divider--with-text::after {
144
+ border-block-start-style: dotted;
119
145
  }
120
146
 
121
- .divider--dotted {
122
- --nuraly-divider-variant-style: dotted;
147
+ .divider--dotted.divider--vertical {
148
+ border-inline-start-style: dotted;
123
149
  }
124
150
 
125
151
  /* Size variations (horizontal only) */
126
152
  .divider--horizontal.divider--small {
127
- margin: var(--nuraly-divider-margin-vertical-small) 0;
153
+ margin: 4px 0;
128
154
  }
129
155
 
130
156
  .divider--horizontal.divider--middle {
131
- margin: var(--nuraly-divider-margin-vertical-middle) 0;
157
+ margin: 16px 0;
132
158
  }
133
159
 
134
160
  .divider--horizontal.divider--large {
135
- margin: var(--nuraly-divider-margin-vertical-large) 0;
161
+ margin: 24px 0;
136
162
  }
137
- `,v=function(i,r,t,e){for(var d,a=arguments.length,n=a<3?r:null===e?e=Object.getOwnPropertyDescriptor(r,t):e,o=i.length-1;o>=0;o--)(d=i[o])&&(n=(a<3?d(n):a>3?d(r,t,n):d(r,t))||n);return a>3&&n&&Object.defineProperty(r,t,n),n};let s=class extends(o(r)){constructor(){super(...arguments),this.type="horizontal",this.dashed=!1,this.variant="solid",this.orientation="center",this.plain=!0}get hasText(){var i;const r=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelector("slot");return((null==r?void 0:r.assignedNodes({flatten:!0}))||[]).some(i=>{var r;return i.nodeType===Node.TEXT_NODE&&(null===(r=i.textContent)||void 0===r?void 0:r.trim())||i.nodeType===Node.ELEMENT_NODE})}render(){const i=this.dashed?"dashed":this.variant,r="horizontal"===this.type,e="vertical"===this.type,d={divider:!0,"divider--horizontal":r,"divider--vertical":e,"divider--with-text":r&&this.hasText,"divider--plain":this.plain,[`divider--${i}`]:!0,[`divider--${this.orientation}`]:r&&this.hasText,[`divider--${this.size}`]:r&&!!this.size},o={};if(void 0!==this.orientationMargin&&r&&this.hasText){const i="number"==typeof this.orientationMargin?`${this.orientationMargin}px`:this.orientationMargin;"start"===this.orientation?o["--nuraly-divider-orientation-margin-left"]=i:"end"===this.orientation&&(o["--nuraly-divider-orientation-margin-right"]=i)}return e?t`<div class=${a(d)}></div>`:this.hasText?t`
138
- <div class=${a(d)} style=${n(o)}>
139
- <span class="divider__text">
163
+ `,b=function(t,e,i,r){for(var o,s=arguments.length,d=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,n=t.length-1;n>=0;n--)(o=t[n])&&(d=(s<3?o(d):s>3?o(e,i,d):o(e,i))||d);return s>3&&d&&Object.defineProperty(e,i,d),d};let f=class extends((t=>l(n(h(p(t)))))(i)){constructor(){super(...arguments),this.type="horizontal",this.dashed=!1,this.variant="solid",this.orientation="center",this.plain=!0}get hasText(){return Array.from(this.childNodes).some(t=>{var e;return t.nodeType===Node.TEXT_NODE&&(null===(e=t.textContent)||void 0===e?void 0:e.trim())||t.nodeType===Node.ELEMENT_NODE})}render(){const t=this.dashed?"dashed":this.variant,i="horizontal"===this.type,r="vertical"===this.type,o={divider:!0,"divider--horizontal":i,"divider--vertical":r,"divider--with-text":i&&this.hasText,"divider--plain":this.plain,[`divider--${t}`]:!0,[`divider--${this.orientation}`]:i&&this.hasText,[`divider--${this.size}`]:i&&!!this.size},n={};if(void 0!==this.orientationMargin&&i&&this.hasText){const t="number"==typeof this.orientationMargin?`${this.orientationMargin}px`:this.orientationMargin;"start"===this.orientation?n["--nuraly-divider-orientation-margin-left"]=t:"end"===this.orientation&&(n["--nuraly-divider-orientation-margin-right"]=t)}return r?e`<div part="divider" class=${s(o)}></div>`:this.hasText?e`
164
+ <div part="divider" class=${s(o)} style=${d(n)}>
165
+ <span part="text" class="divider__text">
140
166
  <slot></slot>
141
167
  </span>
142
168
  </div>
143
- `:t`<div class=${a(d)}></div>`}};s.styles=l,v([e({type:String})],s.prototype,"type",void 0),v([e({type:Boolean})],s.prototype,"dashed",void 0),v([e({type:String})],s.prototype,"variant",void 0),v([e({type:String})],s.prototype,"orientation",void 0),v([e({type:String,attribute:"orientation-margin"})],s.prototype,"orientationMargin",void 0),v([e({type:Boolean})],s.prototype,"plain",void 0),v([e({type:String})],s.prototype,"size",void 0),s=v([d("nr-divider")],s);export{s as NrDividerElement};
169
+ `:e`<div part="divider" class=${s(o)}></div>`}};f.styles=m,f.useShadowDom=!0,b([r({type:String})],f.prototype,"type",void 0),b([r({type:Boolean})],f.prototype,"dashed",void 0),b([r({type:String})],f.prototype,"variant",void 0),b([r({type:String})],f.prototype,"orientation",void 0),b([r({type:String,attribute:"orientation-margin"})],f.prototype,"orientationMargin",void 0),b([r({type:Boolean})],f.prototype,"plain",void 0),b([r({type:String})],f.prototype,"size",void 0),f=b([o("nr-divider")],f);export{f as NrDividerElement};
@@ -1,6 +1,6 @@
1
1
  import { LitElement } from "lit";
2
2
  import { DividerType, DividerOrientation, DividerVariant, DividerSize } from "./divider.types.js";
3
- declare const NrDividerElement_base: (new (...args: any[]) => import("@nuralyui/common/mixins").DependencyAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").ThemeAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").EventHandlerCapable) & typeof LitElement;
3
+ declare const NrDividerElement_base: (new (...args: any[]) => import("@nuralyui/common/mixins").DependencyAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").ThemeAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").EventHandlerCapable) & (new (...args: any[]) => import("packages/common/src/shared/base-mixin.js").LightDomContent) & typeof LitElement;
4
4
  /**
5
5
  * @element nr-divider
6
6
  *
@@ -20,11 +20,8 @@ declare const NrDividerElement_base: (new (...args: any[]) => import("@nuralyui/
20
20
  *
21
21
  * @slot - The title/text content to display in the divider
22
22
  *
23
- * @cssprop --nuraly-divider-color - Border color
24
- * @cssprop --nuraly-divider-text-color - Text color
25
- * @cssprop --nuraly-divider-font-size - Font size for title
26
- * @cssprop --nuraly-divider-margin - Vertical margin for horizontal divider
27
- * @cssprop --nuraly-divider-orientation-margin - Margin between text and edge
23
+ * @csspart divider - The root divider element
24
+ * @csspart text - The span wrapping the slot text content (present only when text is provided)
28
25
  *
29
26
  * @example
30
27
  * ```html
@@ -43,6 +40,7 @@ declare const NrDividerElement_base: (new (...args: any[]) => import("@nuralyui/
43
40
  */
44
41
  export declare class NrDividerElement extends NrDividerElement_base {
45
42
  static styles: import("lit").CSSResult;
43
+ static useShadowDom: boolean;
46
44
  /**
47
45
  * The direction type of divider
48
46
  * @type {DividerType}
@@ -29,11 +29,8 @@ import styles from "./divider.style.js";
29
29
  *
30
30
  * @slot - The title/text content to display in the divider
31
31
  *
32
- * @cssprop --nuraly-divider-color - Border color
33
- * @cssprop --nuraly-divider-text-color - Text color
34
- * @cssprop --nuraly-divider-font-size - Font size for title
35
- * @cssprop --nuraly-divider-margin - Vertical margin for horizontal divider
36
- * @cssprop --nuraly-divider-orientation-margin - Margin between text and edge
32
+ * @csspart divider - The root divider element
33
+ * @csspart text - The span wrapping the slot text content (present only when text is provided)
37
34
  *
38
35
  * @example
39
36
  * ```html
@@ -84,12 +81,10 @@ let NrDividerElement = class NrDividerElement extends NuralyUIBaseMixin(LitEleme
84
81
  * Check if divider has text content
85
82
  */
86
83
  get hasText() {
87
- var _a;
88
- const slot = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot');
89
- const nodes = (slot === null || slot === void 0 ? void 0 : slot.assignedNodes({ flatten: true })) || [];
90
- return nodes.some(node => {
84
+ const children = Array.from(this.childNodes);
85
+ return children.some(node => {
91
86
  var _a;
92
- return node.nodeType === Node.TEXT_NODE && ((_a = node.textContent) === null || _a === void 0 ? void 0 : _a.trim()) ||
87
+ return (node.nodeType === Node.TEXT_NODE && ((_a = node.textContent) === null || _a === void 0 ? void 0 : _a.trim())) ||
93
88
  node.nodeType === Node.ELEMENT_NODE;
94
89
  });
95
90
  }
@@ -123,16 +118,16 @@ let NrDividerElement = class NrDividerElement extends NuralyUIBaseMixin(LitEleme
123
118
  }
124
119
  // Vertical divider (no text support)
125
120
  if (isVertical) {
126
- return html `<div class=${classMap(classes)}></div>`;
121
+ return html `<div part="divider" class=${classMap(classes)}></div>`;
127
122
  }
128
123
  // Horizontal divider without text
129
124
  if (!this.hasText) {
130
- return html `<div class=${classMap(classes)}></div>`;
125
+ return html `<div part="divider" class=${classMap(classes)}></div>`;
131
126
  }
132
127
  // Horizontal divider with text
133
128
  return html `
134
- <div class=${classMap(classes)} style=${styleMap(orientationMarginStyle)}>
135
- <span class="divider__text">
129
+ <div part="divider" class=${classMap(classes)} style=${styleMap(orientationMarginStyle)}>
130
+ <span part="text" class="divider__text">
136
131
  <slot></slot>
137
132
  </span>
138
133
  </div>
@@ -140,6 +135,7 @@ let NrDividerElement = class NrDividerElement extends NuralyUIBaseMixin(LitEleme
140
135
  }
141
136
  };
142
137
  NrDividerElement.styles = styles;
138
+ NrDividerElement.useShadowDom = true;
143
139
  __decorate([
144
140
  property({ type: String })
145
141
  ], NrDividerElement.prototype, "type", void 0);
@@ -1,4 +1,4 @@
1
- import { css } from "lit";
1
+ import { css } from 'lit';
2
2
  export default css `
3
3
  :host {
4
4
  display: block;
@@ -7,7 +7,7 @@ export default css `
7
7
 
8
8
  :host([type="vertical"]) {
9
9
  display: inline-flex;
10
- align-self: stretch; /* Stretch to parent height in flex containers */
10
+ align-self: stretch;
11
11
  height: auto;
12
12
  }
13
13
 
@@ -15,8 +15,8 @@ export default css `
15
15
  box-sizing: border-box;
16
16
  margin: 0;
17
17
  padding: 0;
18
- color: var(--nuraly-divider-text-color);
19
- font-size: var(--nuraly-divider-font-size);
18
+ color: var(--nr-text, #161616);
19
+ font-size: 1rem;
20
20
  line-height: 1.5715;
21
21
  list-style: none;
22
22
  font-family: inherit;
@@ -28,18 +28,18 @@ export default css `
28
28
  clear: both;
29
29
  width: 100%;
30
30
  min-width: 100%;
31
- margin: var(--nuraly-divider-margin-vertical, 10px) 0;
32
- border-block-start: 1px var(--nuraly-divider-variant-style, solid) var(--nuraly-divider-color, rgba(5, 5, 5, 0.3));
31
+ margin: 10px 0;
32
+ border-block-start: 1px solid var(--nr-border, #e0e0e0);
33
33
  }
34
34
 
35
35
  /* Horizontal with text */
36
36
  .divider--horizontal.divider--with-text {
37
37
  display: flex;
38
38
  align-items: center;
39
- margin: var(--nuraly-divider-margin-vertical) 0;
40
- color: var(--nuraly-divider-text-color);
39
+ margin: 10px 0;
40
+ color: var(--nr-text, #161616);
41
41
  font-weight: 500;
42
- font-size: var(--nuraly-divider-font-size);
42
+ font-size: 1rem;
43
43
  white-space: nowrap;
44
44
  text-align: center;
45
45
  border-block-start: 0;
@@ -49,7 +49,7 @@ export default css `
49
49
  .divider--horizontal.divider--with-text::after {
50
50
  position: relative;
51
51
  width: 50%;
52
- border-block-start: 1px var(--nuraly-divider-variant-style, solid) var(--nuraly-divider-color, rgba(5, 5, 5, 0.3));
52
+ border-block-start: 1px solid var(--nr-border, #e0e0e0);
53
53
  border-block-end: 0;
54
54
  transform: translateY(50%);
55
55
  content: '';
@@ -57,7 +57,7 @@ export default css `
57
57
 
58
58
  /* Text positioning */
59
59
  .divider--start::before {
60
- width: var(--nuraly-divider-orientation-margin-left, 5%);
60
+ width: 5%;
61
61
  }
62
62
 
63
63
  .divider--start::after {
@@ -69,15 +69,15 @@ export default css `
69
69
  }
70
70
 
71
71
  .divider--end::after {
72
- width: var(--nuraly-divider-orientation-margin-right, 5%);
72
+ width: 5%;
73
73
  }
74
74
 
75
75
  /* Text wrapper */
76
76
  .divider__text {
77
77
  display: inline-block;
78
- padding: 0 var(--nuraly-divider-text-padding, 1em);
79
- color: var(--nuraly-divider-text-color, rgba(0, 0, 0, 0.88));
80
- font-size: var(--nuraly-divider-font-size, 1rem);
78
+ padding: 0 1em;
79
+ color: var(--nr-text, #161616);
80
+ font-size: 1rem;
81
81
  }
82
82
 
83
83
  /* Plain text style */
@@ -91,49 +91,59 @@ export default css `
91
91
  top: -0.06em;
92
92
  display: inline-block;
93
93
  height: 0.9em;
94
- margin: 0 var(--nuraly-divider-margin-horizontal, 8px);
94
+ margin: 0 8px;
95
95
  vertical-align: middle;
96
96
  border-top: 0;
97
- border-inline-start: 1px var(--nuraly-divider-variant-style, solid) var(--nuraly-divider-color, rgba(5, 5, 5, 0.3));
97
+ border-inline-start: 1px solid var(--nr-border, #e0e0e0);
98
98
  }
99
99
 
100
100
  /* Full height vertical divider when in flex container */
101
- :host([type="vertical"]) {
102
- height: 100%;
103
- }
104
-
105
101
  :host([type="vertical"]) .divider--vertical {
106
102
  height: 100%;
107
103
  align-self: stretch;
108
104
  top: 0;
109
105
  vertical-align: top;
110
- border-inline-start-color: var(--nuraly-divider-color, rgba(5, 5, 5, 0.3));
106
+ border-inline-start-color: var(--nr-border, #e0e0e0);
111
107
  }
112
108
 
113
109
  /* Variant styles */
114
- .divider--solid {
115
- --nuraly-divider-variant-style: solid;
110
+ .divider--dashed.divider--horizontal {
111
+ border-block-start-style: dashed;
112
+ }
113
+
114
+ .divider--dashed.divider--with-text::before,
115
+ .divider--dashed.divider--with-text::after {
116
+ border-block-start-style: dashed;
117
+ }
118
+
119
+ .divider--dashed.divider--vertical {
120
+ border-inline-start-style: dashed;
121
+ }
122
+
123
+ .divider--dotted.divider--horizontal {
124
+ border-block-start-style: dotted;
116
125
  }
117
126
 
118
- .divider--dashed {
119
- --nuraly-divider-variant-style: dashed;
127
+ .divider--dotted.divider--with-text::before,
128
+ .divider--dotted.divider--with-text::after {
129
+ border-block-start-style: dotted;
120
130
  }
121
131
 
122
- .divider--dotted {
123
- --nuraly-divider-variant-style: dotted;
132
+ .divider--dotted.divider--vertical {
133
+ border-inline-start-style: dotted;
124
134
  }
125
135
 
126
136
  /* Size variations (horizontal only) */
127
137
  .divider--horizontal.divider--small {
128
- margin: var(--nuraly-divider-margin-vertical-small) 0;
138
+ margin: 4px 0;
129
139
  }
130
140
 
131
141
  .divider--horizontal.divider--middle {
132
- margin: var(--nuraly-divider-margin-vertical-middle) 0;
142
+ margin: 16px 0;
133
143
  }
134
144
 
135
145
  .divider--horizontal.divider--large {
136
- margin: var(--nuraly-divider-margin-vertical-large) 0;
146
+ margin: 24px 0;
137
147
  }
138
148
  `;
139
149
  //# sourceMappingURL=divider.style.js.map