@nuraly/runtime 0.1.0

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 (970) hide show
  1. package/README.md +778 -0
  2. package/components/index.ts +13 -0
  3. package/components/ui/components/Event/EventAttribute/EventAttribute.style.ts +11 -0
  4. package/components/ui/components/Event/EventAttribute/EventAttribute.ts +28 -0
  5. package/components/ui/components/Event/EventLabel/EventLabel.ts +19 -0
  6. package/components/ui/components/Event/EventValue/EventValue.ts +79 -0
  7. package/components/ui/components/ToastContainer/ToastContainer.ts +126 -0
  8. package/components/ui/components/advanced/AIChat/AIChat.helper.ts +22 -0
  9. package/components/ui/components/advanced/AIChat/AIChat.style.ts +52 -0
  10. package/components/ui/components/advanced/AIChat/AIChat.ts +143 -0
  11. package/components/ui/components/advanced/CodeEditor/CodeEditor.ts +489 -0
  12. package/components/ui/components/advanced/Collapse/Collapse.ts +86 -0
  13. package/components/ui/components/advanced/Collections/Collections.style.ts +21 -0
  14. package/components/ui/components/advanced/Collections/Collections.ts +125 -0
  15. package/components/ui/components/advanced/MicroApp/MicroApp.ts +98 -0
  16. package/components/ui/components/advanced/RefComponent/RefComponent.ts +86 -0
  17. package/components/ui/components/advanced/RichText/RichText.ts +98 -0
  18. package/components/ui/components/advanced/RichText/RichTextEditor.ts +536 -0
  19. package/components/ui/components/base/BaseElement/base-change-detection.ts +18 -0
  20. package/components/ui/components/base/BaseElement/calculateStyles.ts +31 -0
  21. package/components/ui/components/base/BaseElement/drag-events.helpers.ts +71 -0
  22. package/components/ui/components/base/BaseElement/execute-event.helpers.ts +45 -0
  23. package/components/ui/components/base/BaseElement/handler-component-error.ts +28 -0
  24. package/components/ui/components/base/BaseElement/input-handler.helpers.ts +358 -0
  25. package/components/ui/components/base/BaseElement/interactions.helpers.ts +14 -0
  26. package/components/ui/components/base/BaseElement.ts +711 -0
  27. package/components/ui/components/display/Badge/Badge.ts +61 -0
  28. package/components/ui/components/display/BoxModel/BoxModel.ts +372 -0
  29. package/components/ui/components/display/Code/Code.ts +103 -0
  30. package/components/ui/components/display/Divider/Divider.ts +98 -0
  31. package/components/ui/components/display/Icon/Icon.ts +60 -0
  32. package/components/ui/components/display/Image/Image.ts +75 -0
  33. package/components/ui/components/display/Table/Table.style.ts +0 -0
  34. package/components/ui/components/display/Table/Table.ts +178 -0
  35. package/components/ui/components/display/Tag/Tag.ts +49 -0
  36. package/components/ui/components/display/TextLabel/TextLabel.style.ts +21 -0
  37. package/components/ui/components/display/TextLabel/TextLabel.ts +72 -0
  38. package/components/ui/components/display/Video/Video.ts +46 -0
  39. package/components/ui/components/inputs/Button/Button.style.ts +0 -0
  40. package/components/ui/components/inputs/Button/Button.ts +79 -0
  41. package/components/ui/components/inputs/Checkbox/Checkbox.ts +76 -0
  42. package/components/ui/components/inputs/ColorPicker/colorpicker.ts +65 -0
  43. package/components/ui/components/inputs/DatePicker/DatePicker.ts +60 -0
  44. package/components/ui/components/inputs/Dropdown/Dropdown.ts +128 -0
  45. package/components/ui/components/inputs/FileUpload/FileUpload.ts +43 -0
  46. package/components/ui/components/inputs/IconButton/iconbutton.ts +54 -0
  47. package/components/ui/components/inputs/IconPicker/IconPicker.style.ts +109 -0
  48. package/components/ui/components/inputs/IconPicker/IconPicker.ts +61 -0
  49. package/components/ui/components/inputs/InsertDropdown/InsertDropdown.ts +75 -0
  50. package/components/ui/components/inputs/NumberInput/NumberInput.ts +84 -0
  51. package/components/ui/components/inputs/RadioButton/Radio-button.ts +69 -0
  52. package/components/ui/components/inputs/Select/Select.ts +65 -0
  53. package/components/ui/components/inputs/Slider/Slider.ts +63 -0
  54. package/components/ui/components/inputs/TextInput/TextInput.style.ts +0 -0
  55. package/components/ui/components/inputs/TextInput/TextInput.ts +153 -0
  56. package/components/ui/components/inputs/Textarea/Textarea.ts +110 -0
  57. package/components/ui/components/inputs/UsersDropdown/UsersDropdown.ts +30 -0
  58. package/components/ui/components/layout/Card/Card.ts +46 -0
  59. package/components/ui/components/layout/Containers/Container.style.ts +34 -0
  60. package/components/ui/components/layout/Containers/Container.ts +127 -0
  61. package/components/ui/components/layout/Panel/Panel.ts +156 -0
  62. package/components/ui/components/layout/Panel/index.ts +1 -0
  63. package/components/ui/components/layout/Tabs/Tabs.style.ts +5 -0
  64. package/components/ui/components/layout/Tabs/Tabs.ts +120 -0
  65. package/components/ui/components/navigation/EmbedURL/EmbedURL.ts +108 -0
  66. package/components/ui/components/navigation/Link/Link.ts +83 -0
  67. package/components/ui/components/navigation/Menu/Menu.ts +92 -0
  68. package/components/ui/components/runtime/MicroApp/MicroApp.ts +485 -0
  69. package/components/ui/components/runtime/MicroApp/MicroAppDataLoader.ts +240 -0
  70. package/components/ui/components/utility/Border/Border.ts +643 -0
  71. package/components/ui/components/utility/BoxShadow/BoxShadow.ts +253 -0
  72. package/components/ui/components/utility/Document/Document.ts +47 -0
  73. package/components/ui/components/utility/Export-Import/Export-Import.ts +122 -0
  74. package/components/ui/components/utility/Function/InvokeFunction.ts +63 -0
  75. package/components/ui/components/utility/Handlers/Handlers.style.ts +0 -0
  76. package/components/ui/components/utility/Handlers/Handlers.ts +200 -0
  77. package/components/ui/components/wrappers/ComponentTitle/ComponentTitle.ts +95 -0
  78. package/components/ui/components/wrappers/GenerikWrapper/DragWrapper/DragWrapper.style.ts +17 -0
  79. package/components/ui/components/wrappers/GenerikWrapper/DragWrapper/DragWrapper.ts +230 -0
  80. package/components/ui/components/wrappers/GenerikWrapper/GenerikWrapper.style.ts +135 -0
  81. package/components/ui/components/wrappers/GenerikWrapper/GenerikWrapper.ts +230 -0
  82. package/components/ui/components/wrappers/GenerikWrapper/QuickActionWrapper/QuickActionWrapper.style.ts +99 -0
  83. package/components/ui/components/wrappers/GenerikWrapper/QuickActionWrapper/QuickActionWrapper.ts +94 -0
  84. package/components/ui/components/wrappers/GenerikWrapper/ResizeWrapper/ResizeWrapper.style.ts +102 -0
  85. package/components/ui/components/wrappers/GenerikWrapper/ResizeWrapper/ResizeWrapper.ts +258 -0
  86. package/components/ui/components/wrappers/PreviewWrapper.ts +28 -0
  87. package/components/ui/components/wrappers/RectangleSelection/RectangleSelection.ts +154 -0
  88. package/components/ui/nuraly-ui/.storybook/main.ts +31 -0
  89. package/components/ui/nuraly-ui/.storybook/manager.ts +17 -0
  90. package/components/ui/nuraly-ui/.storybook/preview.ts +94 -0
  91. package/components/ui/nuraly-ui/LICENSE +28 -0
  92. package/components/ui/nuraly-ui/README.md +248 -0
  93. package/components/ui/nuraly-ui/examples/README.md +413 -0
  94. package/components/ui/nuraly-ui/packages/common/README.md +137 -0
  95. package/components/ui/nuraly-ui/packages/common/dist/constants/index.js +2 -0
  96. package/components/ui/nuraly-ui/packages/common/dist/constants.js +7 -0
  97. package/components/ui/nuraly-ui/packages/common/dist/controllers/index.js +2 -0
  98. package/components/ui/nuraly-ui/packages/common/dist/controllers.js +22 -0
  99. package/components/ui/nuraly-ui/packages/common/dist/index.js +27 -0
  100. package/components/ui/nuraly-ui/packages/common/dist/mixins/index.js +3 -0
  101. package/components/ui/nuraly-ui/packages/common/dist/mixins.js +29 -0
  102. package/components/ui/nuraly-ui/packages/common/dist/shared/base-mixin.js +38 -0
  103. package/components/ui/nuraly-ui/packages/common/dist/shared/constants.js +2 -0
  104. package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/dropdown.controller.js +341 -0
  105. package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/dropdown.interface.js +2 -0
  106. package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/index.js +4 -0
  107. package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/theme.controller.js +133 -0
  108. package/components/ui/nuraly-ui/packages/common/dist/shared/dependency-mixin.js +141 -0
  109. package/components/ui/nuraly-ui/packages/common/dist/shared/event-handler-mixin.js +95 -0
  110. package/components/ui/nuraly-ui/packages/common/dist/shared/index.js +17 -0
  111. package/components/ui/nuraly-ui/packages/common/dist/shared/theme-mixin.js +194 -0
  112. package/components/ui/nuraly-ui/packages/common/dist/shared/themes.js +85 -0
  113. package/components/ui/nuraly-ui/packages/common/dist/shared/utils.js +85 -0
  114. package/components/ui/nuraly-ui/packages/common/dist/shared/validation.types.js +17 -0
  115. package/components/ui/nuraly-ui/packages/common/dist/themes/index.js +2 -0
  116. package/components/ui/nuraly-ui/packages/common/dist/themes.js +23 -0
  117. package/components/ui/nuraly-ui/packages/common/dist/utils/index.js +2 -0
  118. package/components/ui/nuraly-ui/packages/common/dist/utils.js +22 -0
  119. package/components/ui/nuraly-ui/packages/forms/README.md +84 -0
  120. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/LICENSE +15 -0
  121. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/README.md +294 -0
  122. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/copy/copy-sync.js +171 -0
  123. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/copy/copy.js +175 -0
  124. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/copy/index.js +7 -0
  125. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/empty/index.js +39 -0
  126. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/file.js +66 -0
  127. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/index.js +23 -0
  128. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/link.js +64 -0
  129. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/symlink-paths.js +101 -0
  130. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/symlink-type.js +34 -0
  131. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/symlink.js +67 -0
  132. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/fs/index.js +146 -0
  133. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/index.js +16 -0
  134. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/index.js +16 -0
  135. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
  136. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
  137. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/output-json.js +12 -0
  138. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
  139. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/mkdirs/make-dir.js +27 -0
  140. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
  141. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/move/index.js +7 -0
  142. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/move/move-sync.js +55 -0
  143. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/move/move.js +59 -0
  144. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/output-file/index.js +31 -0
  145. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/path-exists/index.js +12 -0
  146. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/remove/index.js +17 -0
  147. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/util/async.js +29 -0
  148. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/util/stat.js +159 -0
  149. package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/util/utimes.js +36 -0
  150. package/components/ui/nuraly-ui/packages/layout/README.md +77 -0
  151. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/LICENSE +15 -0
  152. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/README.md +294 -0
  153. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/copy/copy-sync.js +171 -0
  154. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/copy/copy.js +175 -0
  155. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/copy/index.js +7 -0
  156. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/empty/index.js +39 -0
  157. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/file.js +66 -0
  158. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/index.js +23 -0
  159. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/link.js +64 -0
  160. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/symlink-paths.js +101 -0
  161. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/symlink-type.js +34 -0
  162. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/symlink.js +67 -0
  163. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/fs/index.js +146 -0
  164. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/index.js +16 -0
  165. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/index.js +16 -0
  166. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
  167. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
  168. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/output-json.js +12 -0
  169. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
  170. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/mkdirs/make-dir.js +27 -0
  171. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
  172. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/move/index.js +7 -0
  173. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/move/move-sync.js +55 -0
  174. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/move/move.js +59 -0
  175. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/output-file/index.js +31 -0
  176. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/path-exists/index.js +12 -0
  177. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/remove/index.js +17 -0
  178. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/util/async.js +29 -0
  179. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/util/stat.js +159 -0
  180. package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/util/utimes.js +36 -0
  181. package/components/ui/nuraly-ui/packages/themes/README.md +146 -0
  182. package/components/ui/nuraly-ui/packages/themes/scripts/build.js +444 -0
  183. package/components/ui/nuraly-ui/rollup.config.js +144 -0
  184. package/components/ui/nuraly-ui/src/components/alert/README.md +236 -0
  185. package/components/ui/nuraly-ui/src/components/alert/alert.component.ts +225 -0
  186. package/components/ui/nuraly-ui/src/components/alert/alert.stories.ts +466 -0
  187. package/components/ui/nuraly-ui/src/components/alert/alert.style.ts +192 -0
  188. package/components/ui/nuraly-ui/src/components/alert/alert.types.ts +57 -0
  189. package/components/ui/nuraly-ui/src/components/alert/index.ts +8 -0
  190. package/components/ui/nuraly-ui/src/components/alert/react.ts +17 -0
  191. package/components/ui/nuraly-ui/src/components/badge/README.md +319 -0
  192. package/components/ui/nuraly-ui/src/components/badge/badge.component.ts +314 -0
  193. package/components/ui/nuraly-ui/src/components/badge/badge.stories.ts +582 -0
  194. package/components/ui/nuraly-ui/src/components/badge/badge.style.ts +250 -0
  195. package/components/ui/nuraly-ui/src/components/badge/badge.types.ts +100 -0
  196. package/components/ui/nuraly-ui/src/components/badge/index.ts +1 -0
  197. package/components/ui/nuraly-ui/src/components/badge/react.ts +9 -0
  198. package/components/ui/nuraly-ui/src/components/breadcrumb/README.md +243 -0
  199. package/components/ui/nuraly-ui/src/components/breadcrumb/breadcrumb.component.ts +280 -0
  200. package/components/ui/nuraly-ui/src/components/breadcrumb/breadcrumb.stories.ts +389 -0
  201. package/components/ui/nuraly-ui/src/components/breadcrumb/breadcrumb.style.ts +154 -0
  202. package/components/ui/nuraly-ui/src/components/breadcrumb/breadcrumb.types.ts +66 -0
  203. package/components/ui/nuraly-ui/src/components/breadcrumb/index.ts +1 -0
  204. package/components/ui/nuraly-ui/src/components/breadcrumb/react.ts +11 -0
  205. package/components/ui/nuraly-ui/src/components/button/README.md +331 -0
  206. package/components/ui/nuraly-ui/src/components/button/button.component.ts +317 -0
  207. package/components/ui/nuraly-ui/src/components/button/button.stories.ts +861 -0
  208. package/components/ui/nuraly-ui/src/components/button/button.style.ts +520 -0
  209. package/components/ui/nuraly-ui/src/components/button/button.types.ts +68 -0
  210. package/components/ui/nuraly-ui/src/components/button/controllers/base.controller.ts +99 -0
  211. package/components/ui/nuraly-ui/src/components/button/controllers/index.ts +10 -0
  212. package/components/ui/nuraly-ui/src/components/button/controllers/keyboard.controller.ts +89 -0
  213. package/components/ui/nuraly-ui/src/components/button/controllers/link.controller.ts +86 -0
  214. package/components/ui/nuraly-ui/src/components/button/controllers/ripple.controller.ts +79 -0
  215. package/components/ui/nuraly-ui/src/components/button/index.ts +1 -0
  216. package/components/ui/nuraly-ui/src/components/button/interfaces/base-controller.interface.ts +67 -0
  217. package/components/ui/nuraly-ui/src/components/button/interfaces/index.ts +1 -0
  218. package/components/ui/nuraly-ui/src/components/button/react.ts +11 -0
  219. package/components/ui/nuraly-ui/src/components/button/test/nr-button_test.ts +90 -0
  220. package/components/ui/nuraly-ui/src/components/canvas/canvas.component.ts +306 -0
  221. package/components/ui/nuraly-ui/src/components/canvas/demo/canvas-demo.ts +18 -0
  222. package/components/ui/nuraly-ui/src/components/canvas/index.ts +1 -0
  223. package/components/ui/nuraly-ui/src/components/canvas/react.ts +13 -0
  224. package/components/ui/nuraly-ui/src/components/card/card.component.ts +50 -0
  225. package/components/ui/nuraly-ui/src/components/card/card.stories.ts +360 -0
  226. package/components/ui/nuraly-ui/src/components/card/card.style.ts +62 -0
  227. package/components/ui/nuraly-ui/src/components/card/card.types.ts +17 -0
  228. package/components/ui/nuraly-ui/src/components/card/index.ts +2 -0
  229. package/components/ui/nuraly-ui/src/components/card/react.ts +12 -0
  230. package/components/ui/nuraly-ui/src/components/carousel/carousel.component.ts +116 -0
  231. package/components/ui/nuraly-ui/src/components/carousel/carousel.style.ts +69 -0
  232. package/components/ui/nuraly-ui/src/components/carousel/demo/carousel-demo.ts +59 -0
  233. package/components/ui/nuraly-ui/src/components/carousel/index.ts +1 -0
  234. package/components/ui/nuraly-ui/src/components/carousel/react.ts +12 -0
  235. package/components/ui/nuraly-ui/src/components/chatbot/README.md +527 -0
  236. package/components/ui/nuraly-ui/src/components/chatbot/chatbot.component.ts +730 -0
  237. package/components/ui/nuraly-ui/src/components/chatbot/chatbot.stories.ts +2549 -0
  238. package/components/ui/nuraly-ui/src/components/chatbot/chatbot.style.ts +1272 -0
  239. package/components/ui/nuraly-ui/src/components/chatbot/chatbot.types.ts +269 -0
  240. package/components/ui/nuraly-ui/src/components/chatbot/controllers/index.ts +9 -0
  241. package/components/ui/nuraly-ui/src/components/chatbot/controllers/scroll.controller.ts +59 -0
  242. package/components/ui/nuraly-ui/src/components/chatbot/core/README.md +550 -0
  243. package/components/ui/nuraly-ui/src/components/chatbot/core/chatbot-core.controller.ts +918 -0
  244. package/components/ui/nuraly-ui/src/components/chatbot/core/event-bus.ts +104 -0
  245. package/components/ui/nuraly-ui/src/components/chatbot/core/handlers/file-handler.ts +79 -0
  246. package/components/ui/nuraly-ui/src/components/chatbot/core/handlers/index.ts +12 -0
  247. package/components/ui/nuraly-ui/src/components/chatbot/core/handlers/message-handler.ts +117 -0
  248. package/components/ui/nuraly-ui/src/components/chatbot/core/handlers/module-handler.ts +49 -0
  249. package/components/ui/nuraly-ui/src/components/chatbot/core/handlers/state-handler.ts +152 -0
  250. package/components/ui/nuraly-ui/src/components/chatbot/core/handlers/suggestion-handler.ts +38 -0
  251. package/components/ui/nuraly-ui/src/components/chatbot/core/handlers/thread-handler.ts +153 -0
  252. package/components/ui/nuraly-ui/src/components/chatbot/core/index.ts +47 -0
  253. package/components/ui/nuraly-ui/src/components/chatbot/core/services/index.ts +11 -0
  254. package/components/ui/nuraly-ui/src/components/chatbot/core/services/localization.service.ts +20 -0
  255. package/components/ui/nuraly-ui/src/components/chatbot/core/services/plugin.service.ts +103 -0
  256. package/components/ui/nuraly-ui/src/components/chatbot/core/services/provider.service.ts +342 -0
  257. package/components/ui/nuraly-ui/src/components/chatbot/core/services/storage.service.ts +122 -0
  258. package/components/ui/nuraly-ui/src/components/chatbot/core/services/validation.service.ts +107 -0
  259. package/components/ui/nuraly-ui/src/components/chatbot/core/types.ts +456 -0
  260. package/components/ui/nuraly-ui/src/components/chatbot/file-upload-validation.stories.ts +278 -0
  261. package/components/ui/nuraly-ui/src/components/chatbot/index.ts +27 -0
  262. package/components/ui/nuraly-ui/src/components/chatbot/locales/generated/ar.ts +19 -0
  263. package/components/ui/nuraly-ui/src/components/chatbot/locales/generated/fr.ts +19 -0
  264. package/components/ui/nuraly-ui/src/components/chatbot/locales/locale-codes.ts +25 -0
  265. package/components/ui/nuraly-ui/src/components/chatbot/plugins/analytics-plugin.ts +63 -0
  266. package/components/ui/nuraly-ui/src/components/chatbot/plugins/chat-plugin.ts +76 -0
  267. package/components/ui/nuraly-ui/src/components/chatbot/plugins/flight-card-plugin.ts +636 -0
  268. package/components/ui/nuraly-ui/src/components/chatbot/plugins/flight-card.stories.ts +929 -0
  269. package/components/ui/nuraly-ui/src/components/chatbot/plugins/index.ts +14 -0
  270. package/components/ui/nuraly-ui/src/components/chatbot/plugins/markdown-plugin.stories.ts +155 -0
  271. package/components/ui/nuraly-ui/src/components/chatbot/plugins/markdown-plugin.ts +103 -0
  272. package/components/ui/nuraly-ui/src/components/chatbot/plugins/persistence-plugin.ts +97 -0
  273. package/components/ui/nuraly-ui/src/components/chatbot/plugins/print-job-card-plugin.ts +537 -0
  274. package/components/ui/nuraly-ui/src/components/chatbot/plugins/print-job-card.stories.ts +649 -0
  275. package/components/ui/nuraly-ui/src/components/chatbot/providers/custom-api-provider.ts +239 -0
  276. package/components/ui/nuraly-ui/src/components/chatbot/providers/index.ts +11 -0
  277. package/components/ui/nuraly-ui/src/components/chatbot/providers/mock-provider.ts +433 -0
  278. package/components/ui/nuraly-ui/src/components/chatbot/providers/openai-provider.ts +239 -0
  279. package/components/ui/nuraly-ui/src/components/chatbot/react.ts +57 -0
  280. package/components/ui/nuraly-ui/src/components/chatbot/storage/index.ts +8 -0
  281. package/components/ui/nuraly-ui/src/components/chatbot/storage/storage-implementations.ts +167 -0
  282. package/components/ui/nuraly-ui/src/components/chatbot/templates/chatbot-main.template.ts +157 -0
  283. package/components/ui/nuraly-ui/src/components/chatbot/templates/file-preview-modal.template.ts +90 -0
  284. package/components/ui/nuraly-ui/src/components/chatbot/templates/file-upload-area.template.ts +43 -0
  285. package/components/ui/nuraly-ui/src/components/chatbot/templates/index.ts +14 -0
  286. package/components/ui/nuraly-ui/src/components/chatbot/templates/input-box.template.ts +267 -0
  287. package/components/ui/nuraly-ui/src/components/chatbot/templates/message.template.ts +240 -0
  288. package/components/ui/nuraly-ui/src/components/chatbot/templates/suggestion.template.ts +57 -0
  289. package/components/ui/nuraly-ui/src/components/chatbot/templates/thread-sidebar.template.ts +67 -0
  290. package/components/ui/nuraly-ui/src/components/chatbot/templates/url-modal.template.ts +121 -0
  291. package/components/ui/nuraly-ui/src/components/checkbox/checkbox.component.ts +173 -0
  292. package/components/ui/nuraly-ui/src/components/checkbox/checkbox.stories.ts +521 -0
  293. package/components/ui/nuraly-ui/src/components/checkbox/checkbox.style.ts +324 -0
  294. package/components/ui/nuraly-ui/src/components/checkbox/checkbox.types.ts +5 -0
  295. package/components/ui/nuraly-ui/src/components/checkbox/index.ts +1 -0
  296. package/components/ui/nuraly-ui/src/components/checkbox/mixins/checkbox-event-mixin.ts +180 -0
  297. package/components/ui/nuraly-ui/src/components/checkbox/mixins/checkbox-focus-mixin.ts +99 -0
  298. package/components/ui/nuraly-ui/src/components/checkbox/mixins/index.ts +27 -0
  299. package/components/ui/nuraly-ui/src/components/checkbox/react.ts +12 -0
  300. package/components/ui/nuraly-ui/src/components/checkbox/test/checkbox_test.ts +97 -0
  301. package/components/ui/nuraly-ui/src/components/collapse/collapse.component.ts +315 -0
  302. package/components/ui/nuraly-ui/src/components/collapse/collapse.stories.ts +738 -0
  303. package/components/ui/nuraly-ui/src/components/collapse/collapse.style.ts +236 -0
  304. package/components/ui/nuraly-ui/src/components/collapse/collapse.type.ts +95 -0
  305. package/components/ui/nuraly-ui/src/components/collapse/controllers/accordion.controller.ts +169 -0
  306. package/components/ui/nuraly-ui/src/components/collapse/controllers/animation.controller.ts +129 -0
  307. package/components/ui/nuraly-ui/src/components/collapse/controllers/base.controller.ts +114 -0
  308. package/components/ui/nuraly-ui/src/components/collapse/controllers/index.ts +15 -0
  309. package/components/ui/nuraly-ui/src/components/collapse/controllers/keyboard.controller.ts +212 -0
  310. package/components/ui/nuraly-ui/src/components/collapse/index.ts +1 -0
  311. package/components/ui/nuraly-ui/src/components/collapse/react.ts +13 -0
  312. package/components/ui/nuraly-ui/src/components/colorpicker/color-holder.component.ts +104 -0
  313. package/components/ui/nuraly-ui/src/components/colorpicker/color-holder.style.ts +46 -0
  314. package/components/ui/nuraly-ui/src/components/colorpicker/color-picker.component.ts +398 -0
  315. package/components/ui/nuraly-ui/src/components/colorpicker/color-picker.stories.ts +888 -0
  316. package/components/ui/nuraly-ui/src/components/colorpicker/color-picker.style.ts +86 -0
  317. package/components/ui/nuraly-ui/src/components/colorpicker/color-picker.types.ts +64 -0
  318. package/components/ui/nuraly-ui/src/components/colorpicker/controllers/base.controller.ts +64 -0
  319. package/components/ui/nuraly-ui/src/components/colorpicker/controllers/dropdown.controller.ts +268 -0
  320. package/components/ui/nuraly-ui/src/components/colorpicker/controllers/event.controller.ts +147 -0
  321. package/components/ui/nuraly-ui/src/components/colorpicker/controllers/index.ts +3 -0
  322. package/components/ui/nuraly-ui/src/components/colorpicker/default-color-sets.component.ts +119 -0
  323. package/components/ui/nuraly-ui/src/components/colorpicker/default-color-sets.style.ts +35 -0
  324. package/components/ui/nuraly-ui/src/components/colorpicker/index.ts +2 -0
  325. package/components/ui/nuraly-ui/src/components/colorpicker/interfaces/index.ts +67 -0
  326. package/components/ui/nuraly-ui/src/components/colorpicker/react.ts +13 -0
  327. package/components/ui/nuraly-ui/src/components/console/react.ts +12 -0
  328. package/components/ui/nuraly-ui/src/components/datepicker/README.md +60 -0
  329. package/components/ui/nuraly-ui/src/components/datepicker/controllers/calendar.controller.ts +252 -0
  330. package/components/ui/nuraly-ui/src/components/datepicker/controllers/index.ts +11 -0
  331. package/components/ui/nuraly-ui/src/components/datepicker/controllers/keyboard.controller.ts +290 -0
  332. package/components/ui/nuraly-ui/src/components/datepicker/controllers/month-year-dropdown.controller.ts +108 -0
  333. package/components/ui/nuraly-ui/src/components/datepicker/controllers/positioning.controller.ts +278 -0
  334. package/components/ui/nuraly-ui/src/components/datepicker/controllers/selection.controller.ts +303 -0
  335. package/components/ui/nuraly-ui/src/components/datepicker/datepicker.component.ts +659 -0
  336. package/components/ui/nuraly-ui/src/components/datepicker/datepicker.constant.ts +81 -0
  337. package/components/ui/nuraly-ui/src/components/datepicker/datepicker.stories.ts +461 -0
  338. package/components/ui/nuraly-ui/src/components/datepicker/datepicker.style.ts +456 -0
  339. package/components/ui/nuraly-ui/src/components/datepicker/datepicker.style.variables.ts +119 -0
  340. package/components/ui/nuraly-ui/src/components/datepicker/datepicker.types.ts +154 -0
  341. package/components/ui/nuraly-ui/src/components/datepicker/index.ts +3 -0
  342. package/components/ui/nuraly-ui/src/components/datepicker/interfaces/base-controller.interface.ts +42 -0
  343. package/components/ui/nuraly-ui/src/components/datepicker/interfaces/datepicker-controllers.interface.ts +128 -0
  344. package/components/ui/nuraly-ui/src/components/datepicker/interfaces/index.ts +15 -0
  345. package/components/ui/nuraly-ui/src/components/datepicker/react.ts +24 -0
  346. package/components/ui/nuraly-ui/src/components/datepicker/templates/days.template.ts +57 -0
  347. package/components/ui/nuraly-ui/src/components/datepicker/templates/dropdown.template.ts +61 -0
  348. package/components/ui/nuraly-ui/src/components/datepicker/templates/headers.template.ts +7 -0
  349. package/components/ui/nuraly-ui/src/components/datepicker/templates/months.template.ts +16 -0
  350. package/components/ui/nuraly-ui/src/components/datepicker/templates/years.template.ts +18 -0
  351. package/components/ui/nuraly-ui/src/components/datepicker/test/datepicker_test.ts +124 -0
  352. package/components/ui/nuraly-ui/src/components/datepicker/utils/day.helper.ts +56 -0
  353. package/components/ui/nuraly-ui/src/components/datepicker/utils/formatter.ts +8 -0
  354. package/components/ui/nuraly-ui/src/components/datepicker/utils/index.ts +11 -0
  355. package/components/ui/nuraly-ui/src/components/datepicker/utils/locale.helper.ts +152 -0
  356. package/components/ui/nuraly-ui/src/components/datepicker/utils/month.helper.ts +26 -0
  357. package/components/ui/nuraly-ui/src/components/datepicker/utils/string.helper.ts +3 -0
  358. package/components/ui/nuraly-ui/src/components/divider/divider.component.ts +172 -0
  359. package/components/ui/nuraly-ui/src/components/divider/divider.stories.ts +271 -0
  360. package/components/ui/nuraly-ui/src/components/divider/divider.style.ts +139 -0
  361. package/components/ui/nuraly-ui/src/components/divider/divider.types.ts +59 -0
  362. package/components/ui/nuraly-ui/src/components/divider/index.ts +2 -0
  363. package/components/ui/nuraly-ui/src/components/divider/react.ts +9 -0
  364. package/components/ui/nuraly-ui/src/components/document/demo/document-demo.ts +28 -0
  365. package/components/ui/nuraly-ui/src/components/document/document.component.ts +133 -0
  366. package/components/ui/nuraly-ui/src/components/document/document.stories.ts +266 -0
  367. package/components/ui/nuraly-ui/src/components/document/document.style.ts +210 -0
  368. package/components/ui/nuraly-ui/src/components/document/document.types.ts +83 -0
  369. package/components/ui/nuraly-ui/src/components/document/index.ts +2 -0
  370. package/components/ui/nuraly-ui/src/components/document/react.ts +15 -0
  371. package/components/ui/nuraly-ui/src/components/dropdown/controllers/base.controller.ts +85 -0
  372. package/components/ui/nuraly-ui/src/components/dropdown/controllers/dropdown.controller.ts +476 -0
  373. package/components/ui/nuraly-ui/src/components/dropdown/controllers/index.ts +2 -0
  374. package/components/ui/nuraly-ui/src/components/dropdown/dropdown.component.ts +348 -0
  375. package/components/ui/nuraly-ui/src/components/dropdown/dropdown.stories.ts +1271 -0
  376. package/components/ui/nuraly-ui/src/components/dropdown/dropdown.style.ts +462 -0
  377. package/components/ui/nuraly-ui/src/components/dropdown/dropdown.types.ts +109 -0
  378. package/components/ui/nuraly-ui/src/components/dropdown/index.ts +2 -0
  379. package/components/ui/nuraly-ui/src/components/dropdown/interfaces/controller-interfaces.ts +98 -0
  380. package/components/ui/nuraly-ui/src/components/dropdown/interfaces/index.ts +1 -0
  381. package/components/ui/nuraly-ui/src/components/dropdown/react.ts +14 -0
  382. package/components/ui/nuraly-ui/src/components/dropdown/templates/nr-dropdown-item.style.ts +35 -0
  383. package/components/ui/nuraly-ui/src/components/dropdown/templates/nr-dropdown-item.ts +47 -0
  384. package/components/ui/nuraly-ui/src/components/dropdown/templates/nr-dropdown-menu.style.ts +50 -0
  385. package/components/ui/nuraly-ui/src/components/dropdown/templates/nr-dropdown-menu.ts +52 -0
  386. package/components/ui/nuraly-ui/src/components/file-upload/demo/file-upload-demo.ts +151 -0
  387. package/components/ui/nuraly-ui/src/components/file-upload/file-upload.component.ts +371 -0
  388. package/components/ui/nuraly-ui/src/components/file-upload/index.ts +1 -0
  389. package/components/ui/nuraly-ui/src/components/file-upload/react.ts +14 -0
  390. package/components/ui/nuraly-ui/src/components/file-upload/readme.md +98 -0
  391. package/components/ui/nuraly-ui/src/components/file-upload/styles.ts +284 -0
  392. package/components/ui/nuraly-ui/src/components/file-upload/types.ts +10 -0
  393. package/components/ui/nuraly-ui/src/components/file-upload/utils.ts +23 -0
  394. package/components/ui/nuraly-ui/src/components/flex/README.md +235 -0
  395. package/components/ui/nuraly-ui/src/components/flex/flex.component.ts +186 -0
  396. package/components/ui/nuraly-ui/src/components/flex/flex.stories.ts +486 -0
  397. package/components/ui/nuraly-ui/src/components/flex/flex.style.ts +101 -0
  398. package/components/ui/nuraly-ui/src/components/flex/flex.types.ts +70 -0
  399. package/components/ui/nuraly-ui/src/components/flex/index.ts +2 -0
  400. package/components/ui/nuraly-ui/src/components/flex/react.ts +9 -0
  401. package/components/ui/nuraly-ui/src/components/form/README.md +152 -0
  402. package/components/ui/nuraly-ui/src/components/form/controllers/submission.controller.ts +243 -0
  403. package/components/ui/nuraly-ui/src/components/form/controllers/validation.controller.ts +268 -0
  404. package/components/ui/nuraly-ui/src/components/form/form.component.ts +699 -0
  405. package/components/ui/nuraly-ui/src/components/form/form.stories.ts +794 -0
  406. package/components/ui/nuraly-ui/src/components/form/form.style.ts +69 -0
  407. package/components/ui/nuraly-ui/src/components/form/form.types.ts +104 -0
  408. package/components/ui/nuraly-ui/src/components/form/index.ts +15 -0
  409. package/components/ui/nuraly-ui/src/components/form/interfaces/validation.interface.ts +139 -0
  410. package/components/ui/nuraly-ui/src/components/grid/README.md +196 -0
  411. package/components/ui/nuraly-ui/src/components/grid/col.component.ts +262 -0
  412. package/components/ui/nuraly-ui/src/components/grid/col.style.ts +117 -0
  413. package/components/ui/nuraly-ui/src/components/grid/grid.stories.ts +442 -0
  414. package/components/ui/nuraly-ui/src/components/grid/grid.types.ts +89 -0
  415. package/components/ui/nuraly-ui/src/components/grid/index.ts +3 -0
  416. package/components/ui/nuraly-ui/src/components/grid/react.ts +16 -0
  417. package/components/ui/nuraly-ui/src/components/grid/row.component.ts +203 -0
  418. package/components/ui/nuraly-ui/src/components/grid/row.style.ts +68 -0
  419. package/components/ui/nuraly-ui/src/components/icon/icon.component.ts +219 -0
  420. package/components/ui/nuraly-ui/src/components/icon/icon.stories.ts +160 -0
  421. package/components/ui/nuraly-ui/src/components/icon/icon.style.ts +214 -0
  422. package/components/ui/nuraly-ui/src/components/icon/icon.types.ts +4 -0
  423. package/components/ui/nuraly-ui/src/components/icon/icon.variables.ts +132 -0
  424. package/components/ui/nuraly-ui/src/components/icon/index.ts +1 -0
  425. package/components/ui/nuraly-ui/src/components/icon/mixins/clickable-mixin.ts +154 -0
  426. package/components/ui/nuraly-ui/src/components/icon/mixins/index.ts +7 -0
  427. package/components/ui/nuraly-ui/src/components/icon/react.ts +8 -0
  428. package/components/ui/nuraly-ui/src/components/iconpicker/README.md +106 -0
  429. package/components/ui/nuraly-ui/src/components/iconpicker/controllers/event.controller.ts +94 -0
  430. package/components/ui/nuraly-ui/src/components/iconpicker/controllers/index.ts +9 -0
  431. package/components/ui/nuraly-ui/src/components/iconpicker/controllers/search.controller.ts +76 -0
  432. package/components/ui/nuraly-ui/src/components/iconpicker/controllers/selection.controller.ts +50 -0
  433. package/components/ui/nuraly-ui/src/components/iconpicker/icon-picker.component.ts +324 -0
  434. package/components/ui/nuraly-ui/src/components/iconpicker/icon-picker.constant.ts +33 -0
  435. package/components/ui/nuraly-ui/src/components/iconpicker/icon-picker.stories.ts +255 -0
  436. package/components/ui/nuraly-ui/src/components/iconpicker/icon-picker.style.ts +217 -0
  437. package/components/ui/nuraly-ui/src/components/iconpicker/icon-picker.types.ts +56 -0
  438. package/components/ui/nuraly-ui/src/components/iconpicker/index.ts +9 -0
  439. package/components/ui/nuraly-ui/src/components/iconpicker/interfaces/icon-picker.interface.ts +14 -0
  440. package/components/ui/nuraly-ui/src/components/iconpicker/interfaces/index.ts +7 -0
  441. package/components/ui/nuraly-ui/src/components/iconpicker/react.ts +22 -0
  442. package/components/ui/nuraly-ui/src/components/iconpicker/utils/icon-filter.utils.ts +119 -0
  443. package/components/ui/nuraly-ui/src/components/iconpicker/utils/icon-loader.utils.ts +129 -0
  444. package/components/ui/nuraly-ui/src/components/iconpicker/utils/index.ts +8 -0
  445. package/components/ui/nuraly-ui/src/components/iconpicker/utils/lucide-icons.ts +1624 -0
  446. package/components/ui/nuraly-ui/src/components/image/image.component.ts +136 -0
  447. package/components/ui/nuraly-ui/src/components/image/image.stories.ts +236 -0
  448. package/components/ui/nuraly-ui/src/components/image/image.style.ts +83 -0
  449. package/components/ui/nuraly-ui/src/components/image/image.types.ts +83 -0
  450. package/components/ui/nuraly-ui/src/components/image/index.ts +2 -0
  451. package/components/ui/nuraly-ui/src/components/image/react.ts +15 -0
  452. package/components/ui/nuraly-ui/src/components/input/README.md +432 -0
  453. package/components/ui/nuraly-ui/src/components/input/controllers/base.controller.ts +114 -0
  454. package/components/ui/nuraly-ui/src/components/input/controllers/event.controller.ts +421 -0
  455. package/components/ui/nuraly-ui/src/components/input/controllers/index.ts +32 -0
  456. package/components/ui/nuraly-ui/src/components/input/controllers/state.controller.ts +313 -0
  457. package/components/ui/nuraly-ui/src/components/input/controllers/validation.controller.ts +806 -0
  458. package/components/ui/nuraly-ui/src/components/input/index.ts +2 -0
  459. package/components/ui/nuraly-ui/src/components/input/input.component.ts +557 -0
  460. package/components/ui/nuraly-ui/src/components/input/input.stories.ts +1759 -0
  461. package/components/ui/nuraly-ui/src/components/input/input.style.ts +812 -0
  462. package/components/ui/nuraly-ui/src/components/input/input.types.ts +195 -0
  463. package/components/ui/nuraly-ui/src/components/input/mixins/focus-mixin.ts +112 -0
  464. package/components/ui/nuraly-ui/src/components/input/mixins/index.ts +14 -0
  465. package/components/ui/nuraly-ui/src/components/input/mixins/number-mixin.ts +167 -0
  466. package/components/ui/nuraly-ui/src/components/input/mixins/selection-mixin.ts +125 -0
  467. package/components/ui/nuraly-ui/src/components/input/react.ts +15 -0
  468. package/components/ui/nuraly-ui/src/components/input/test/nr-input_test.ts +163 -0
  469. package/components/ui/nuraly-ui/src/components/input/utils/index.ts +8 -0
  470. package/components/ui/nuraly-ui/src/components/input/utils/input-renderers.ts +217 -0
  471. package/components/ui/nuraly-ui/src/components/input/utils/input-validation.utils.ts +133 -0
  472. package/components/ui/nuraly-ui/src/components/input/validation.ts +3 -0
  473. package/components/ui/nuraly-ui/src/components/label/index.ts +1 -0
  474. package/components/ui/nuraly-ui/src/components/label/label.component.ts +52 -0
  475. package/components/ui/nuraly-ui/src/components/label/label.stories.ts +311 -0
  476. package/components/ui/nuraly-ui/src/components/label/label.style.ts +70 -0
  477. package/components/ui/nuraly-ui/src/components/label/label.style.variables.ts +35 -0
  478. package/components/ui/nuraly-ui/src/components/label/label.types.ts +48 -0
  479. package/components/ui/nuraly-ui/src/components/label/react.ts +11 -0
  480. package/components/ui/nuraly-ui/src/components/layout/README.md +200 -0
  481. package/components/ui/nuraly-ui/src/components/layout/content.component.ts +45 -0
  482. package/components/ui/nuraly-ui/src/components/layout/content.style.ts +17 -0
  483. package/components/ui/nuraly-ui/src/components/layout/footer.component.ts +54 -0
  484. package/components/ui/nuraly-ui/src/components/layout/footer.style.ts +17 -0
  485. package/components/ui/nuraly-ui/src/components/layout/header.component.ts +55 -0
  486. package/components/ui/nuraly-ui/src/components/layout/header.style.ts +19 -0
  487. package/components/ui/nuraly-ui/src/components/layout/index.ts +18 -0
  488. package/components/ui/nuraly-ui/src/components/layout/layout.component.ts +87 -0
  489. package/components/ui/nuraly-ui/src/components/layout/layout.stories.ts +616 -0
  490. package/components/ui/nuraly-ui/src/components/layout/layout.style.ts +23 -0
  491. package/components/ui/nuraly-ui/src/components/layout/layout.types.ts +90 -0
  492. package/components/ui/nuraly-ui/src/components/layout/react.ts +41 -0
  493. package/components/ui/nuraly-ui/src/components/layout/sider.component.ts +294 -0
  494. package/components/ui/nuraly-ui/src/components/layout/sider.style.ts +104 -0
  495. package/components/ui/nuraly-ui/src/components/menu/README.md +390 -0
  496. package/components/ui/nuraly-ui/src/components/menu/controllers/accessibility.controller.ts +257 -0
  497. package/components/ui/nuraly-ui/src/components/menu/controllers/base.controller.ts +123 -0
  498. package/components/ui/nuraly-ui/src/components/menu/controllers/index.ts +10 -0
  499. package/components/ui/nuraly-ui/src/components/menu/controllers/keyboard.controller.ts +360 -0
  500. package/components/ui/nuraly-ui/src/components/menu/controllers/state.controller.ts +268 -0
  501. package/components/ui/nuraly-ui/src/components/menu/index.ts +3 -0
  502. package/components/ui/nuraly-ui/src/components/menu/interfaces/controller.interface.ts +56 -0
  503. package/components/ui/nuraly-ui/src/components/menu/interfaces/index.ts +7 -0
  504. package/components/ui/nuraly-ui/src/components/menu/menu.component.ts +341 -0
  505. package/components/ui/nuraly-ui/src/components/menu/menu.constants.ts +12 -0
  506. package/components/ui/nuraly-ui/src/components/menu/menu.stories.ts +807 -0
  507. package/components/ui/nuraly-ui/src/components/menu/menu.style.ts +358 -0
  508. package/components/ui/nuraly-ui/src/components/menu/menu.types.ts +60 -0
  509. package/components/ui/nuraly-ui/src/components/menu/react.ts +11 -0
  510. package/components/ui/nuraly-ui/src/components/modal/controllers/index.ts +8 -0
  511. package/components/ui/nuraly-ui/src/components/modal/controllers/modal-drag-controller.ts +139 -0
  512. package/components/ui/nuraly-ui/src/components/modal/controllers/modal-keyboard-controller.ts +152 -0
  513. package/components/ui/nuraly-ui/src/components/modal/index.ts +10 -0
  514. package/components/ui/nuraly-ui/src/components/modal/modal-manager.ts +209 -0
  515. package/components/ui/nuraly-ui/src/components/modal/modal.component.ts +475 -0
  516. package/components/ui/nuraly-ui/src/components/modal/modal.stories.ts +823 -0
  517. package/components/ui/nuraly-ui/src/components/modal/modal.style.ts +369 -0
  518. package/components/ui/nuraly-ui/src/components/modal/modal.types.ts +148 -0
  519. package/components/ui/nuraly-ui/src/components/modal/react.ts +16 -0
  520. package/components/ui/nuraly-ui/src/components/panel/README.md +218 -0
  521. package/components/ui/nuraly-ui/src/components/panel/controllers/index.ts +8 -0
  522. package/components/ui/nuraly-ui/src/components/panel/controllers/panel-drag-controller.ts +151 -0
  523. package/components/ui/nuraly-ui/src/components/panel/controllers/panel-resize-controller.ts +153 -0
  524. package/components/ui/nuraly-ui/src/components/panel/index.ts +9 -0
  525. package/components/ui/nuraly-ui/src/components/panel/panel.component.ts +760 -0
  526. package/components/ui/nuraly-ui/src/components/panel/panel.stories.ts +978 -0
  527. package/components/ui/nuraly-ui/src/components/panel/panel.style.ts +499 -0
  528. package/components/ui/nuraly-ui/src/components/panel/panel.types.ts +89 -0
  529. package/components/ui/nuraly-ui/src/components/panel/react.ts +18 -0
  530. package/components/ui/nuraly-ui/src/components/popconfirm/README.md +403 -0
  531. package/components/ui/nuraly-ui/src/components/popconfirm/index.ts +2 -0
  532. package/components/ui/nuraly-ui/src/components/popconfirm/popconfirm.component.ts +336 -0
  533. package/components/ui/nuraly-ui/src/components/popconfirm/popconfirm.stories.ts +491 -0
  534. package/components/ui/nuraly-ui/src/components/popconfirm/popconfirm.style.ts +207 -0
  535. package/components/ui/nuraly-ui/src/components/popconfirm/popconfirm.types.ts +66 -0
  536. package/components/ui/nuraly-ui/src/components/popconfirm/react.ts +14 -0
  537. package/components/ui/nuraly-ui/src/components/radio/README.md +95 -0
  538. package/components/ui/nuraly-ui/src/components/radio/index.ts +2 -0
  539. package/components/ui/nuraly-ui/src/components/radio/radio.component.ts +186 -0
  540. package/components/ui/nuraly-ui/src/components/radio/radio.stories.ts +317 -0
  541. package/components/ui/nuraly-ui/src/components/radio/radio.style.ts +150 -0
  542. package/components/ui/nuraly-ui/src/components/radio/radio.types.ts +14 -0
  543. package/components/ui/nuraly-ui/src/components/radio/react.ts +20 -0
  544. package/components/ui/nuraly-ui/src/components/radio-group/controllers/focus.controller.ts +251 -0
  545. package/components/ui/nuraly-ui/src/components/radio-group/controllers/group.controller.ts +198 -0
  546. package/components/ui/nuraly-ui/src/components/radio-group/controllers/index.ts +11 -0
  547. package/components/ui/nuraly-ui/src/components/radio-group/controllers/keyboard.controller.ts +122 -0
  548. package/components/ui/nuraly-ui/src/components/radio-group/controllers/ripple.controller.ts +248 -0
  549. package/components/ui/nuraly-ui/src/components/radio-group/controllers/validation.controller.ts +189 -0
  550. package/components/ui/nuraly-ui/src/components/radio-group/index.ts +2 -0
  551. package/components/ui/nuraly-ui/src/components/radio-group/interfaces/base-controller.interface.ts +87 -0
  552. package/components/ui/nuraly-ui/src/components/radio-group/interfaces/focus-controller.interface.ts +45 -0
  553. package/components/ui/nuraly-ui/src/components/radio-group/interfaces/index.ts +14 -0
  554. package/components/ui/nuraly-ui/src/components/radio-group/interfaces/ripple-controller.interface.ts +35 -0
  555. package/components/ui/nuraly-ui/src/components/radio-group/interfaces/selection-controller.interface.ts +51 -0
  556. package/components/ui/nuraly-ui/src/components/radio-group/interfaces/validation-controller.interface.ts +53 -0
  557. package/components/ui/nuraly-ui/src/components/radio-group/radio-group.component.ts +426 -0
  558. package/components/ui/nuraly-ui/src/components/radio-group/radio-group.stories.ts +1334 -0
  559. package/components/ui/nuraly-ui/src/components/radio-group/radio-group.style.ts +248 -0
  560. package/components/ui/nuraly-ui/src/components/radio-group/radio-group.types.ts +43 -0
  561. package/components/ui/nuraly-ui/src/components/radio-group/radio.constant.ts +1 -0
  562. package/components/ui/nuraly-ui/src/components/radio-group/react.ts +18 -0
  563. package/components/ui/nuraly-ui/src/components/radio-group/test/radio_test.ts +87 -0
  564. package/components/ui/nuraly-ui/src/components/select/README.md +316 -0
  565. package/components/ui/nuraly-ui/src/components/select/controllers/base.controller.ts +93 -0
  566. package/components/ui/nuraly-ui/src/components/select/controllers/dropdown.controller.ts +415 -0
  567. package/components/ui/nuraly-ui/src/components/select/controllers/event.controller.ts +118 -0
  568. package/components/ui/nuraly-ui/src/components/select/controllers/focus.controller.ts +255 -0
  569. package/components/ui/nuraly-ui/src/components/select/controllers/index.ts +8 -0
  570. package/components/ui/nuraly-ui/src/components/select/controllers/keyboard.controller.ts +407 -0
  571. package/components/ui/nuraly-ui/src/components/select/controllers/search.controller.ts +187 -0
  572. package/components/ui/nuraly-ui/src/components/select/controllers/selection.controller.ts +238 -0
  573. package/components/ui/nuraly-ui/src/components/select/controllers/validation.controller.ts +236 -0
  574. package/components/ui/nuraly-ui/src/components/select/index.ts +36 -0
  575. package/components/ui/nuraly-ui/src/components/select/interfaces/base-controller.interface.ts +155 -0
  576. package/components/ui/nuraly-ui/src/components/select/interfaces/controller-interfaces.ts +105 -0
  577. package/components/ui/nuraly-ui/src/components/select/interfaces/index.ts +2 -0
  578. package/components/ui/nuraly-ui/src/components/select/react.ts +30 -0
  579. package/components/ui/nuraly-ui/src/components/select/select.component.ts +804 -0
  580. package/components/ui/nuraly-ui/src/components/select/select.constant.ts +142 -0
  581. package/components/ui/nuraly-ui/src/components/select/select.stories.ts +1653 -0
  582. package/components/ui/nuraly-ui/src/components/select/select.style.ts +593 -0
  583. package/components/ui/nuraly-ui/src/components/select/select.types.ts +120 -0
  584. package/components/ui/nuraly-ui/src/components/skeleton/README.md +373 -0
  585. package/components/ui/nuraly-ui/src/components/skeleton/index.ts +2 -0
  586. package/components/ui/nuraly-ui/src/components/skeleton/react.ts +10 -0
  587. package/components/ui/nuraly-ui/src/components/skeleton/skeleton.component.ts +385 -0
  588. package/components/ui/nuraly-ui/src/components/skeleton/skeleton.stories.ts +425 -0
  589. package/components/ui/nuraly-ui/src/components/skeleton/skeleton.style.ts +224 -0
  590. package/components/ui/nuraly-ui/src/components/skeleton/skeleton.types.ts +90 -0
  591. package/components/ui/nuraly-ui/src/components/slider-input/README.md +145 -0
  592. package/components/ui/nuraly-ui/src/components/slider-input/index.ts +2 -0
  593. package/components/ui/nuraly-ui/src/components/slider-input/react.ts +12 -0
  594. package/components/ui/nuraly-ui/src/components/slider-input/slider-input.component.ts +184 -0
  595. package/components/ui/nuraly-ui/src/components/slider-input/slider-input.stories.ts +361 -0
  596. package/components/ui/nuraly-ui/src/components/slider-input/slider-input.style.ts +171 -0
  597. package/components/ui/nuraly-ui/src/components/slider-input/slider-input.style.variables.ts +59 -0
  598. package/components/ui/nuraly-ui/src/components/slider-input/slider-input.types.ts +24 -0
  599. package/components/ui/nuraly-ui/src/components/slider-input/utils/debounce.ts +7 -0
  600. package/components/ui/nuraly-ui/src/components/slider-input/utils/index.ts +1 -0
  601. package/components/ui/nuraly-ui/src/components/table/controllers/base.controller.ts +99 -0
  602. package/components/ui/nuraly-ui/src/components/table/controllers/filter.controller.ts +163 -0
  603. package/components/ui/nuraly-ui/src/components/table/controllers/index.ts +11 -0
  604. package/components/ui/nuraly-ui/src/components/table/controllers/pagination.controller.ts +83 -0
  605. package/components/ui/nuraly-ui/src/components/table/controllers/selection.controller.ts +143 -0
  606. package/components/ui/nuraly-ui/src/components/table/controllers/sort.controller.ts +115 -0
  607. package/components/ui/nuraly-ui/src/components/table/index.ts +1 -0
  608. package/components/ui/nuraly-ui/src/components/table/interfaces/index.ts +7 -0
  609. package/components/ui/nuraly-ui/src/components/table/interfaces/table-host.interface.ts +53 -0
  610. package/components/ui/nuraly-ui/src/components/table/react.ts +14 -0
  611. package/components/ui/nuraly-ui/src/components/table/table.component.ts +344 -0
  612. package/components/ui/nuraly-ui/src/components/table/table.stories.ts +1072 -0
  613. package/components/ui/nuraly-ui/src/components/table/table.style.ts +689 -0
  614. package/components/ui/nuraly-ui/src/components/table/table.types.ts +91 -0
  615. package/components/ui/nuraly-ui/src/components/table/templates/actions.template.ts +22 -0
  616. package/components/ui/nuraly-ui/src/components/table/templates/column-filter.template.ts +88 -0
  617. package/components/ui/nuraly-ui/src/components/table/templates/content.template.ts +257 -0
  618. package/components/ui/nuraly-ui/src/components/table/templates/empty.template.ts +49 -0
  619. package/components/ui/nuraly-ui/src/components/table/templates/filter.template.ts +35 -0
  620. package/components/ui/nuraly-ui/src/components/table/templates/index.ts +7 -0
  621. package/components/ui/nuraly-ui/src/components/table/templates/loading.template.ts +56 -0
  622. package/components/ui/nuraly-ui/src/components/table/templates/pagination.template.ts +70 -0
  623. package/components/ui/nuraly-ui/src/components/tabs/controllers/base.controller.ts +136 -0
  624. package/components/ui/nuraly-ui/src/components/tabs/controllers/dragdrop.controller.ts +251 -0
  625. package/components/ui/nuraly-ui/src/components/tabs/controllers/editable.controller.ts +292 -0
  626. package/components/ui/nuraly-ui/src/components/tabs/controllers/event.controller.ts +294 -0
  627. package/components/ui/nuraly-ui/src/components/tabs/controllers/index.ts +42 -0
  628. package/components/ui/nuraly-ui/src/components/tabs/controllers/keyboard.controller.ts +276 -0
  629. package/components/ui/nuraly-ui/src/components/tabs/controllers/popout.controller.ts +516 -0
  630. package/components/ui/nuraly-ui/src/components/tabs/index.ts +11 -0
  631. package/components/ui/nuraly-ui/src/components/tabs/react.ts +52 -0
  632. package/components/ui/nuraly-ui/src/components/tabs/tabs.component.ts +499 -0
  633. package/components/ui/nuraly-ui/src/components/tabs/tabs.constant.ts +30 -0
  634. package/components/ui/nuraly-ui/src/components/tabs/tabs.stories.ts +1334 -0
  635. package/components/ui/nuraly-ui/src/components/tabs/tabs.style.ts +569 -0
  636. package/components/ui/nuraly-ui/src/components/tabs/tabs.types.ts +261 -0
  637. package/components/ui/nuraly-ui/src/components/tag/README.md +22 -0
  638. package/components/ui/nuraly-ui/src/components/tag/index.ts +1 -0
  639. package/components/ui/nuraly-ui/src/components/tag/react.ts +13 -0
  640. package/components/ui/nuraly-ui/src/components/tag/tag.component.ts +167 -0
  641. package/components/ui/nuraly-ui/src/components/tag/tag.stories.ts +50 -0
  642. package/components/ui/nuraly-ui/src/components/tag/tag.style.ts +89 -0
  643. package/components/ui/nuraly-ui/src/components/tag/tag.types.ts +30 -0
  644. package/components/ui/nuraly-ui/src/components/textarea/README.md +314 -0
  645. package/components/ui/nuraly-ui/src/components/textarea/controllers/base.controller.ts +142 -0
  646. package/components/ui/nuraly-ui/src/components/textarea/controllers/event.controller.ts +484 -0
  647. package/components/ui/nuraly-ui/src/components/textarea/controllers/index.ts +16 -0
  648. package/components/ui/nuraly-ui/src/components/textarea/controllers/validation.controller.ts +347 -0
  649. package/components/ui/nuraly-ui/src/components/textarea/index.ts +19 -0
  650. package/components/ui/nuraly-ui/src/components/textarea/react.ts +16 -0
  651. package/components/ui/nuraly-ui/src/components/textarea/textarea.component.ts +716 -0
  652. package/components/ui/nuraly-ui/src/components/textarea/textarea.stories.ts +453 -0
  653. package/components/ui/nuraly-ui/src/components/textarea/textarea.style.ts +387 -0
  654. package/components/ui/nuraly-ui/src/components/textarea/textarea.types.ts +113 -0
  655. package/components/ui/nuraly-ui/src/components/timeline/README.md +340 -0
  656. package/components/ui/nuraly-ui/src/components/timeline/index.ts +1 -0
  657. package/components/ui/nuraly-ui/src/components/timeline/react.ts +9 -0
  658. package/components/ui/nuraly-ui/src/components/timeline/timeline.component.ts +235 -0
  659. package/components/ui/nuraly-ui/src/components/timeline/timeline.stories.ts +313 -0
  660. package/components/ui/nuraly-ui/src/components/timeline/timeline.style.ts +235 -0
  661. package/components/ui/nuraly-ui/src/components/timeline/timeline.types.ts +75 -0
  662. package/components/ui/nuraly-ui/src/components/timepicker/README.md +238 -0
  663. package/components/ui/nuraly-ui/src/components/timepicker/controllers/formatting.controller.ts +230 -0
  664. package/components/ui/nuraly-ui/src/components/timepicker/controllers/index.ts +9 -0
  665. package/components/ui/nuraly-ui/src/components/timepicker/controllers/selection.controller.ts +213 -0
  666. package/components/ui/nuraly-ui/src/components/timepicker/controllers/validation.controller.ts +240 -0
  667. package/components/ui/nuraly-ui/src/components/timepicker/index.ts +12 -0
  668. package/components/ui/nuraly-ui/src/components/timepicker/interfaces/timepicker.interface.ts +122 -0
  669. package/components/ui/nuraly-ui/src/components/timepicker/test/timepicker.test.ts +249 -0
  670. package/components/ui/nuraly-ui/src/components/timepicker/timepicker.component.ts +786 -0
  671. package/components/ui/nuraly-ui/src/components/timepicker/timepicker.constants.ts +94 -0
  672. package/components/ui/nuraly-ui/src/components/timepicker/timepicker.stories.ts +643 -0
  673. package/components/ui/nuraly-ui/src/components/timepicker/timepicker.style.ts +569 -0
  674. package/components/ui/nuraly-ui/src/components/timepicker/timepicker.style.variables.ts +122 -0
  675. package/components/ui/nuraly-ui/src/components/timepicker/timepicker.types.ts +183 -0
  676. package/components/ui/nuraly-ui/src/components/timepicker/utils/time.utils.ts +288 -0
  677. package/components/ui/nuraly-ui/src/components/toast/README.md +535 -0
  678. package/components/ui/nuraly-ui/src/components/toast/controllers/base.controller.ts +105 -0
  679. package/components/ui/nuraly-ui/src/components/toast/controllers/index.ts +8 -0
  680. package/components/ui/nuraly-ui/src/components/toast/index.ts +10 -0
  681. package/components/ui/nuraly-ui/src/components/toast/react.ts +19 -0
  682. package/components/ui/nuraly-ui/src/components/toast/toast.component.ts +394 -0
  683. package/components/ui/nuraly-ui/src/components/toast/toast.stories.ts +895 -0
  684. package/components/ui/nuraly-ui/src/components/toast/toast.style.ts +339 -0
  685. package/components/ui/nuraly-ui/src/components/toast/toast.types.ts +155 -0
  686. package/components/ui/nuraly-ui/src/components/tooltips/demo/tooltips-demo.ts +128 -0
  687. package/components/ui/nuraly-ui/src/components/tooltips/index.ts +1 -0
  688. package/components/ui/nuraly-ui/src/components/tooltips/react.ts +0 -0
  689. package/components/ui/nuraly-ui/src/components/tooltips/test/tooltips_test.ts +175 -0
  690. package/components/ui/nuraly-ui/src/components/tooltips/tooltips.component.ts +282 -0
  691. package/components/ui/nuraly-ui/src/components/tooltips/tooltips.constant.ts +15 -0
  692. package/components/ui/nuraly-ui/src/components/tooltips/tooltips.style.ts +103 -0
  693. package/components/ui/nuraly-ui/src/components/tooltips/tooltips.variables.ts +14 -0
  694. package/components/ui/nuraly-ui/src/components/video/index.ts +2 -0
  695. package/components/ui/nuraly-ui/src/components/video/react.ts +17 -0
  696. package/components/ui/nuraly-ui/src/components/video/video.component.ts +179 -0
  697. package/components/ui/nuraly-ui/src/components/video/video.stories.ts +289 -0
  698. package/components/ui/nuraly-ui/src/components/video/video.style.ts +124 -0
  699. package/components/ui/nuraly-ui/src/components/video/video.types.ts +102 -0
  700. package/components/ui/nuraly-ui/src/helpers/ThemeHandler.ts +68 -0
  701. package/components/ui/nuraly-ui/src/helpers/test.ts +8 -0
  702. package/components/ui/nuraly-ui/src/introduction.stories.ts +161 -0
  703. package/components/ui/nuraly-ui/src/shared/README.md +87 -0
  704. package/components/ui/nuraly-ui/src/shared/base-mixin.ts +48 -0
  705. package/components/ui/nuraly-ui/src/shared/constants.ts +0 -0
  706. package/components/ui/nuraly-ui/src/shared/controllers/dropdown.controller.ts +393 -0
  707. package/components/ui/nuraly-ui/src/shared/controllers/dropdown.interface.ts +39 -0
  708. package/components/ui/nuraly-ui/src/shared/controllers/index.ts +3 -0
  709. package/components/ui/nuraly-ui/src/shared/controllers/theme.controller.ts +158 -0
  710. package/components/ui/nuraly-ui/src/shared/dependency-mixin.ts +174 -0
  711. package/components/ui/nuraly-ui/src/shared/event-handler-mixin.ts +190 -0
  712. package/components/ui/nuraly-ui/src/shared/index.ts +20 -0
  713. package/components/ui/nuraly-ui/src/shared/theme-mixin.ts +227 -0
  714. package/components/ui/nuraly-ui/src/shared/themes/README.md +135 -0
  715. package/components/ui/nuraly-ui/src/shared/themes/editor/README.md +202 -0
  716. package/components/ui/nuraly-ui/src/shared/themes/editor.stories.ts +366 -0
  717. package/components/ui/nuraly-ui/src/shared/themes/index.ts +132 -0
  718. package/components/ui/nuraly-ui/src/shared/utils.ts +94 -0
  719. package/components/ui/nuraly-ui/src/shared/validation.types.ts +118 -0
  720. package/components/ui/nuraly-ui/tools/bump-versions.js +83 -0
  721. package/components/ui/nuraly-ui/web-dev-server.config.js +25 -0
  722. package/components/ui/nuraly-ui/web-test-runner.config.js +124 -0
  723. package/dist/CodeEditor-Ch2tv9BE.js +106211 -0
  724. package/dist/SmartAttributeHandler-hoSLpm1Y.js +153 -0
  725. package/dist/abap-B2diVmjb.js +1314 -0
  726. package/dist/apex-3NuJ-nsI.js +315 -0
  727. package/dist/assets/editor.worker-vBWydyGC.js +11 -0
  728. package/dist/assets/html.worker-BSmGlhXp.js +458 -0
  729. package/dist/assets/json.worker-Dqnoedz4.js +42 -0
  730. package/dist/assets/ts.worker-DyHHPhrh.js +37021 -0
  731. package/dist/azcli-XGXuUsMB.js +74 -0
  732. package/dist/bat-B8Vhm634.js +95 -0
  733. package/dist/bicep-Cc8X5S_k.js +108 -0
  734. package/dist/cameligo-Bo3wBh9T.js +168 -0
  735. package/dist/clojure-CPoQlpIK.js +754 -0
  736. package/dist/coffee-BxvTGz39.js +228 -0
  737. package/dist/cpp-5RpEV7vC.js +390 -0
  738. package/dist/csharp-slXXP3fo.js +320 -0
  739. package/dist/csp-B98p6-gH.js +57 -0
  740. package/dist/css-BDsDSAin.js +186 -0
  741. package/dist/cssMode-Bt2uK8XM.js +1446 -0
  742. package/dist/cypher-Dc4IMouD.js +262 -0
  743. package/dist/dart-LhvE3yD2.js +270 -0
  744. package/dist/dockerfile-CwzplJeZ.js +132 -0
  745. package/dist/ecl-DxW3FiJi.js +454 -0
  746. package/dist/elixir-BI40g7TU.js +489 -0
  747. package/dist/flow9-tR2v0bGz.js +141 -0
  748. package/dist/freemarker2-DNc2IxPf.js +643 -0
  749. package/dist/fsharp-BLAma0OT.js +210 -0
  750. package/dist/go-nYcD3y4Z.js +208 -0
  751. package/dist/graphql-Dp1cHWmP.js +141 -0
  752. package/dist/handlebars-CIbFckEw.js +391 -0
  753. package/dist/hcl-6NT8Kbna.js +177 -0
  754. package/dist/html-nRs_fneU.js +281 -0
  755. package/dist/htmlMode-BjehA1YF.js +1456 -0
  756. package/dist/ini-BZCOLrEc.js +68 -0
  757. package/dist/java-DAMcfJbX.js +221 -0
  758. package/dist/javascript-Bn0HduZA.js +75 -0
  759. package/dist/jsonMode-CfGfcJRX.js +1866 -0
  760. package/dist/julia-CQ46G71H.js +496 -0
  761. package/dist/kotlin-CEjVo_6E.js +245 -0
  762. package/dist/less-DreV99nP.js +168 -0
  763. package/dist/lexon-DBVJhqLb.js +151 -0
  764. package/dist/liquid-m4D_LCnC.js +238 -0
  765. package/dist/lua-Dcc_j6L-.js +157 -0
  766. package/dist/m3-B9SlZL4n.js +210 -0
  767. package/dist/markdown-CuGw9_MP.js +202 -0
  768. package/dist/mdx-CakMRbCr.js +171 -0
  769. package/dist/micro-app-entry-CI1Rupdh.js +17479 -0
  770. package/dist/micro-app.bundle.js +8 -0
  771. package/dist/mips-BUWqP-OH.js +194 -0
  772. package/dist/msdax-DtkouYCg.js +377 -0
  773. package/dist/mysql-IkAsWSmF.js +876 -0
  774. package/dist/objective-c-B2-ronfg.js +188 -0
  775. package/dist/pascal-Bsnz2eJA.js +245 -0
  776. package/dist/pascaligo-D_sMUn0Q.js +158 -0
  777. package/dist/perl-BPzHt9SS.js +599 -0
  778. package/dist/pgsql-DlTJB0PD.js +847 -0
  779. package/dist/php-Dmq5OjwK.js +471 -0
  780. package/dist/pla-HJcccrBy.js +131 -0
  781. package/dist/postiats-OQn6DKv-.js +544 -0
  782. package/dist/powerquery-DKaMYC8w.js +890 -0
  783. package/dist/powershell-DWeJHik1.js +233 -0
  784. package/dist/protobuf-CBn_IseU.js +422 -0
  785. package/dist/pug-BoRpCINl.js +393 -0
  786. package/dist/python-oJwaiPUY.js +259 -0
  787. package/dist/qsharp-4rGyVZOw.js +282 -0
  788. package/dist/r-DsgLhBOb.js +245 -0
  789. package/dist/razor-u_dd4rqc.js +512 -0
  790. package/dist/redis-B2fdL4Bg.js +298 -0
  791. package/dist/redshift-DoaeyCkH.js +806 -0
  792. package/dist/restructuredtext-D-6OFBY9.js +162 -0
  793. package/dist/ruby-D1DD6baV.js +444 -0
  794. package/dist/rust-DssUV39M.js +337 -0
  795. package/dist/sb-Dmb6tAdv.js +110 -0
  796. package/dist/scala-Co3ETaym.js +353 -0
  797. package/dist/scheme-CMrqXTty.js +114 -0
  798. package/dist/scss-DkGudv8Q.js +244 -0
  799. package/dist/shell-BHN2BI4L.js +224 -0
  800. package/dist/solidity-b-R-raGB.js +1351 -0
  801. package/dist/sophia-Y4GjyxNB.js +190 -0
  802. package/dist/sparql-CDAPZb88.js +193 -0
  803. package/dist/sql-DkkpPiUq.js +818 -0
  804. package/dist/st-CSPV91Ej.js +415 -0
  805. package/dist/style.css +1 -0
  806. package/dist/swift-DdSC5O48.js +315 -0
  807. package/dist/systemverilog-CI03XpAv.js +556 -0
  808. package/dist/tcl-B8DayMSI.js +232 -0
  809. package/dist/tsMode-DlZ38d3D.js +813 -0
  810. package/dist/twig-B1AUPVB_.js +323 -0
  811. package/dist/typescript-Bjs2N5Be.js +328 -0
  812. package/dist/vb-BIC7ccdG.js +364 -0
  813. package/dist/wgsl-Bv2xeo60.js +420 -0
  814. package/dist/xml-BCveATLl.js +95 -0
  815. package/dist/yaml-BfWQPJQi.js +184 -0
  816. package/handlers/compiler.ts +362 -0
  817. package/handlers/context-setup.ts +349 -0
  818. package/handlers/handler-executor.ts +348 -0
  819. package/handlers/index.ts +184 -0
  820. package/handlers/runtime-api/applications.ts +18 -0
  821. package/handlers/runtime-api/component-properties.ts +78 -0
  822. package/handlers/runtime-api/components.ts +63 -0
  823. package/handlers/runtime-api/editor.ts +29 -0
  824. package/handlers/runtime-api/functions.ts +42 -0
  825. package/handlers/runtime-api/index.ts +221 -0
  826. package/handlers/runtime-api/navigation.ts +52 -0
  827. package/handlers/runtime-api/pages.ts +45 -0
  828. package/handlers/runtime-api/storage.ts +95 -0
  829. package/handlers/runtime-api/toast.ts +108 -0
  830. package/handlers/runtime-api/variables.ts +400 -0
  831. package/index.ts +188 -0
  832. package/micro-app/README.md +565 -0
  833. package/micro-app/index.ts +29 -0
  834. package/micro-app/messaging/MicroAppMessageBus.ts +246 -0
  835. package/micro-app/state/MicroAppPageManager.ts +275 -0
  836. package/micro-app/state/MicroAppRuntimeContext.ts +423 -0
  837. package/micro-app/state/MicroAppStoreContext.ts +441 -0
  838. package/micro-app/state/SharedVariableRegistry.ts +187 -0
  839. package/micro-app/state/VariableScopeManager.ts +310 -0
  840. package/micro-app/utils/ComponentNamespaceManager.ts +88 -0
  841. package/micro-app-entry.ts +34 -0
  842. package/package.json +119 -0
  843. package/redux/actions/aitchat.ts +17 -0
  844. package/redux/actions/application/addPageToApplicationAction.ts +14 -0
  845. package/redux/actions/application/addTempApplication.ts +8 -0
  846. package/redux/actions/application/closeShareApplicationModalAction.ts +5 -0
  847. package/redux/actions/application/index.ts +20 -0
  848. package/redux/actions/application/loadApplicationPermissionAction.ts +10 -0
  849. package/redux/actions/application/resetPermissionMessage.ts +8 -0
  850. package/redux/actions/application/setApplication.ts +5 -0
  851. package/redux/actions/application/setApplicationPermissionAction.ts +6 -0
  852. package/redux/actions/application/setDefaultApplicationPageIfNotSet.ts +12 -0
  853. package/redux/actions/application/setPermissionMessage.ts +8 -0
  854. package/redux/actions/application/showCreateApplicationModalAction.ts +5 -0
  855. package/redux/actions/application/showShareApplicationModalAction.ts +5 -0
  856. package/redux/actions/application/updateApplication.ts +16 -0
  857. package/redux/actions/component/addComponentAction.ts +90 -0
  858. package/redux/actions/component/addComponentAsChildOf.ts +29 -0
  859. package/redux/actions/component/addComponentToCurrentPageAction.ts +32 -0
  860. package/redux/actions/component/copyComponentAction.ts +12 -0
  861. package/redux/actions/component/deleteComponentAction.ts +52 -0
  862. package/redux/actions/component/index.ts +22 -0
  863. package/redux/actions/component/moveDraggedComponent.ts +130 -0
  864. package/redux/actions/component/moveDraggedComponentInside.ts +64 -0
  865. package/redux/actions/component/moveDraggedComponentIntoCurrentPageRoot.ts +50 -0
  866. package/redux/actions/component/setCurrentComponentIdAction.ts +6 -0
  867. package/redux/actions/component/setDraggingComponentInfo.ts +14 -0
  868. package/redux/actions/component/setHoveredComponentAction.ts +5 -0
  869. package/redux/actions/component/setHoveredComponentIdAction.ts +5 -0
  870. package/redux/actions/component/update-component-name.ts +63 -0
  871. package/redux/actions/component/updateComponentAttributes.ts +192 -0
  872. package/redux/actions/component.ts +25 -0
  873. package/redux/actions/debug/index.ts +1 -0
  874. package/redux/actions/debug/store.ts +72 -0
  875. package/redux/actions/editor/closeCreateApplicationModalAction.ts +5 -0
  876. package/redux/actions/editor/closeEditorTab.ts +9 -0
  877. package/redux/actions/editor/index.ts +12 -0
  878. package/redux/actions/editor/openEditorTab.ts +12 -0
  879. package/redux/actions/editor/setCurrentEditorTab.ts +8 -0
  880. package/redux/actions/editor/setEnvirementMode.ts +8 -0
  881. package/redux/actions/environment.ts +5 -0
  882. package/redux/actions/index.ts +28 -0
  883. package/redux/actions/kernel/index.ts +1 -0
  884. package/redux/actions/kernel/set-property.ts +0 -0
  885. package/redux/actions/page/addPageAction.ts +7 -0
  886. package/redux/actions/page/deletePageAction.ts +13 -0
  887. package/redux/actions/page/index.ts +12 -0
  888. package/redux/actions/page/removeComponentToCurrentPageAction.ts +32 -0
  889. package/redux/actions/page/setContextMenuEvent.ts +5 -0
  890. package/redux/actions/page/setCurrentPageAction.ts +6 -0
  891. package/redux/actions/page/setCurrentPageViewPort.ts +5 -0
  892. package/redux/actions/page/setResizing.ts +5 -0
  893. package/redux/actions/page/setShowBorder.ts +5 -0
  894. package/redux/actions/page/updatePageAction.ts +20 -0
  895. package/redux/actions/page/updatePageInfo.ts +5 -0
  896. package/redux/actions/page/updatePageStyleAttributes.ts +13 -0
  897. package/redux/actions/page/updatePageZoom.ts +5 -0
  898. package/redux/handlers/aichat/create-chat.handler.ts +22 -0
  899. package/redux/handlers/api-urls.ts +8 -0
  900. package/redux/handlers/applications/handler.ts +78 -0
  901. package/redux/handlers/applications/index.ts +1 -0
  902. package/redux/handlers/components/add-component.handler.ts +30 -0
  903. package/redux/handlers/components/delete-component.handler.ts +21 -0
  904. package/redux/handlers/components/index.ts +6 -0
  905. package/redux/handlers/components/interfaces/add-component.request.ts +4 -0
  906. package/redux/handlers/components/interfaces/index.ts +2 -0
  907. package/redux/handlers/components/interfaces/update-component.reques.ts +3 -0
  908. package/redux/handlers/components/refresh-component.ts +25 -0
  909. package/redux/handlers/components/update-component.handler.ts +32 -0
  910. package/redux/handlers/components/validation-handler.ts +45 -0
  911. package/redux/handlers/functions/build-function-handler.ts +10 -0
  912. package/redux/handlers/functions/deploy-function-handler.ts +10 -0
  913. package/redux/handlers/functions/index.ts +13 -0
  914. package/redux/handlers/functions/invoke-function-handler.ts +13 -0
  915. package/redux/handlers/functions/load-functions-handler.ts +10 -0
  916. package/redux/handlers/functions/update-function-handler.ts +13 -0
  917. package/redux/handlers/index.ts +10 -0
  918. package/redux/handlers/pages/deletePageHandler.ts +23 -0
  919. package/redux/handlers/pages/handler.ts +59 -0
  920. package/redux/handlers/pages/index.ts +4 -0
  921. package/redux/handlers/pages/page.interface.ts +14 -0
  922. package/redux/handlers/pages/refresh-pages.ts +26 -0
  923. package/redux/handlers/providers/interface.ts +7 -0
  924. package/redux/index.ts +8 -0
  925. package/redux/store/actions/component.ts +9 -0
  926. package/redux/store/apps.ts +160 -0
  927. package/redux/store/component/component.interface.ts +90 -0
  928. package/redux/store/component/helper.ts +78 -0
  929. package/redux/store/component/index.ts +51 -0
  930. package/redux/store/component/runtime-store.ts +0 -0
  931. package/redux/store/component/store.ts +306 -0
  932. package/redux/store/context.ts +138 -0
  933. package/redux/store/debug.ts +28 -0
  934. package/redux/store/environment.ts +20 -0
  935. package/redux/store/index.ts +77 -0
  936. package/redux/store/interfaces/component.interfaces.ts +4 -0
  937. package/redux/store/page.ts +105 -0
  938. package/redux/store/provider.ts +24 -0
  939. package/redux/store/ssr/server-data.ts +4 -0
  940. package/redux/store/toast.ts +26 -0
  941. package/state/editor.ts +370 -0
  942. package/state/index.ts +27 -0
  943. package/state/runtime-context.ts +784 -0
  944. package/types/IRuntimeContext.ts +203 -0
  945. package/types/core.types.ts +28 -0
  946. package/types/database.types.ts +395 -0
  947. package/types/index.ts +7 -0
  948. package/utils/RuntimeContextHelpers.ts +454 -0
  949. package/utils/api-calls-utils.ts +9 -0
  950. package/utils/change-detection.ts +58 -0
  951. package/utils/clipboard-utils.ts +113 -0
  952. package/utils/constants.ts +2 -0
  953. package/utils/envirement.ts +2 -0
  954. package/utils/handler-security-rules.ts +153 -0
  955. package/utils/handler-validator.ts +447 -0
  956. package/utils/index.ts +67 -0
  957. package/utils/local-storage.ts +26 -0
  958. package/utils/logger.ts +90 -0
  959. package/utils/memoize.ts +15 -0
  960. package/utils/naming-generator.ts +6 -0
  961. package/utils/object.utils.ts +15 -0
  962. package/utils/performance-utils.ts +589 -0
  963. package/utils/randomness.ts +3 -0
  964. package/utils/register-components.ts +49 -0
  965. package/utils/render-util.ts +173 -0
  966. package/utils/runtime-helpers.ts +57 -0
  967. package/utils/styleUtil.ts +7 -0
  968. package/utils/time.ts +7 -0
  969. package/utils/validation-error-formatter.ts +11 -0
  970. package/vite.config.ts +83 -0
@@ -0,0 +1,1334 @@
1
+ import type { Meta, StoryObj } from '@storybook/web-components';
2
+ import { html } from 'lit';
3
+ import { action } from '@storybook/addon-actions';
4
+ // Import the built components
5
+ import './index.js';
6
+ import '../button/index.js';
7
+ import '../icon/index.js';
8
+
9
+ const meta: Meta = {
10
+ title: 'Data Entry/Radio Group',
11
+ component: 'nr-radio-group',
12
+ parameters: {
13
+ layout: 'centered',
14
+ },
15
+ tags: ['autodocs'],
16
+ argTypes: {
17
+ options: {
18
+ control: { type: 'object' },
19
+ description: 'Array of radio button options',
20
+ },
21
+ value: {
22
+ control: { type: 'text' },
23
+ description: 'Currently selected value',
24
+ },
25
+ type: {
26
+ control: { type: 'select' },
27
+ options: ['default', 'button'],
28
+ description: 'Radio group display type',
29
+ },
30
+ position: {
31
+ control: { type: 'select' },
32
+ options: ['left', 'right'],
33
+ description: 'Position of radio buttons relative to labels',
34
+ },
35
+ direction: {
36
+ control: { type: 'select' },
37
+ options: ['vertical', 'horizontal'],
38
+ description: 'Layout direction of radio group',
39
+ },
40
+ autoWidth: {
41
+ control: { type: 'boolean' },
42
+ description: 'Remove minimum width from button-type radio groups',
43
+ },
44
+ },
45
+ args: {
46
+ options: [
47
+ { value: 'option1', label: 'Option 1' },
48
+ { value: 'option2', label: 'Option 2' },
49
+ { value: 'option3', label: 'Option 3' }
50
+ ],
51
+ value: 'option1',
52
+ type: 'default',
53
+ position: 'left',
54
+ direction: 'vertical',
55
+ autoWidth: false,
56
+ },
57
+ };
58
+
59
+ export default meta;
60
+ type Story = StoryObj;
61
+
62
+ export const Default: Story = {
63
+ args: {
64
+ options: [
65
+ { value: 'default1', label: 'First Option' },
66
+ { value: 'default2', label: 'Second Option' },
67
+ { value: 'default3', label: 'Third Option' }
68
+ ],
69
+ value: 'default1',
70
+ },
71
+ render: (args) => html`
72
+ <nr-radio-group
73
+ .options="${args.options}"
74
+ value="${args.value}"
75
+ type="${args.type}"
76
+ position="${args.position}"
77
+ direction="${args.direction}"
78
+ ?auto-width="${args.autoWidth}"
79
+ @change="${action('change')}"
80
+ ></nr-radio-group>
81
+ `,
82
+ };
83
+
84
+ export const HorizontalLayout: Story = {
85
+ args: {
86
+ options: [
87
+ { value: 'small', label: 'Small' },
88
+ { value: 'medium', label: 'Medium' },
89
+ { value: 'large', label: 'Large' }
90
+ ],
91
+ value: 'medium',
92
+ direction: 'horizontal',
93
+ },
94
+ render: (args) => html`
95
+ <nr-radio-group
96
+ .options="${args.options}"
97
+ value="${args.value}"
98
+ type="${args.type}"
99
+ position="${args.position}"
100
+ direction="${args.direction}"
101
+ @change="${action('horizontal-change')}"
102
+ ></nr-radio-group>
103
+ `,
104
+ };
105
+
106
+ export const RightPosition: Story = {
107
+ args: {
108
+ options: [
109
+ { value: 'yes', label: 'Yes' },
110
+ { value: 'no', label: 'No' },
111
+ { value: 'maybe', label: 'Maybe' }
112
+ ],
113
+ value: 'no',
114
+ position: 'right',
115
+ },
116
+ render: (args) => html`
117
+ <nr-radio-group
118
+ .options="${args.options}"
119
+ value="${args.value}"
120
+ type="${args.type}"
121
+ position="${args.position}"
122
+ direction="${args.direction}"
123
+ @change="${action('right-position-change')}"
124
+ ></nr-radio-group>
125
+ `,
126
+ };
127
+
128
+ /**
129
+ * ## Radio Group Sizes
130
+ *
131
+ * Radio groups support three sizes: small, medium (default), and large.
132
+ * The size affects both the radio buttons and their labels for consistent scaling.
133
+ */
134
+ export const Sizes: Story = {
135
+ parameters: {
136
+ docs: {
137
+ description: {
138
+ story: 'Comprehensive comparison of radio group sizes in different layouts and styles. Small, Medium (default), and Large sizes adapt to both default and button styles.',
139
+ },
140
+ },
141
+ },
142
+ render: () => html`
143
+ <div style="display: flex; flex-direction: column; gap: 3rem;">
144
+ <!-- Default Style - All Sizes -->
145
+ <div>
146
+ <h3 style="margin: 0 0 1.5rem 0; font-size: 1.125rem; font-weight: 600;">Default Style</h3>
147
+
148
+ <!-- Small -->
149
+ <div style="margin-bottom: 2rem;">
150
+ <h4 style="margin: 0 0 1rem 0; font-size: 1rem; font-weight: 600;">Small</h4>
151
+ <div style="display: flex; gap: 3rem;">
152
+ <div>
153
+ <p style="margin: 0 0 0.5rem 0; font-size: 0.875rem; color: #6f6f6f;">Vertical</p>
154
+ <nr-radio-group
155
+ size="small"
156
+ direction="vertical"
157
+ .options="${[
158
+ { value: 'small-v1', label: 'Option 1' },
159
+ { value: 'small-v2', label: 'Option 2' },
160
+ { value: 'small-v3', label: 'Option 3' }
161
+ ]}"
162
+ value="small-v1"
163
+ @change="${action('small-vertical-change')}"
164
+ ></nr-radio-group>
165
+ </div>
166
+ <div>
167
+ <p style="margin: 0 0 0.5rem 0; font-size: 0.875rem; color: #6f6f6f;">Horizontal</p>
168
+ <nr-radio-group
169
+ size="small"
170
+ direction="horizontal"
171
+ .options="${[
172
+ { value: 'small-h1', label: 'Option 1' },
173
+ { value: 'small-h2', label: 'Option 2' },
174
+ { value: 'small-h3', label: 'Option 3' }
175
+ ]}"
176
+ value="small-h1"
177
+ @change="${action('small-horizontal-change')}"
178
+ ></nr-radio-group>
179
+ </div>
180
+ </div>
181
+ <p style="font-size: 0.875rem; color: #6f6f6f; margin-top: 12px;">
182
+ Use in compact layouts or when space is limited
183
+ </p>
184
+ </div>
185
+
186
+ <!-- Medium -->
187
+ <div style="margin-bottom: 2rem;">
188
+ <h4 style="margin: 0 0 1rem 0; font-size: 1rem; font-weight: 600;">Medium (Default)</h4>
189
+ <div style="display: flex; gap: 3rem;">
190
+ <div>
191
+ <p style="margin: 0 0 0.5rem 0; font-size: 0.875rem; color: #6f6f6f;">Vertical</p>
192
+ <nr-radio-group
193
+ size="medium"
194
+ direction="vertical"
195
+ .options="${[
196
+ { value: 'medium-v1', label: 'Option 1' },
197
+ { value: 'medium-v2', label: 'Option 2' },
198
+ { value: 'medium-v3', label: 'Option 3' }
199
+ ]}"
200
+ value="medium-v1"
201
+ @change="${action('medium-vertical-change')}"
202
+ ></nr-radio-group>
203
+ </div>
204
+ <div>
205
+ <p style="margin: 0 0 0.5rem 0; font-size: 0.875rem; color: #6f6f6f;">Horizontal</p>
206
+ <nr-radio-group
207
+ size="medium"
208
+ direction="horizontal"
209
+ .options="${[
210
+ { value: 'medium-h1', label: 'Option 1' },
211
+ { value: 'medium-h2', label: 'Option 2' },
212
+ { value: 'medium-h3', label: 'Option 3' }
213
+ ]}"
214
+ value="medium-h1"
215
+ @change="${action('medium-horizontal-change')}"
216
+ ></nr-radio-group>
217
+ </div>
218
+ </div>
219
+ <p style="font-size: 0.875rem; color: #6f6f6f; margin-top: 12px;">
220
+ Default size - most common for forms and standard interfaces
221
+ </p>
222
+ </div>
223
+
224
+ <!-- Large -->
225
+ <div>
226
+ <h4 style="margin: 0 0 1rem 0; font-size: 1rem; font-weight: 600;">Large</h4>
227
+ <div style="display: flex; gap: 3rem;">
228
+ <div>
229
+ <p style="margin: 0 0 0.5rem 0; font-size: 0.875rem; color: #6f6f6f;">Vertical</p>
230
+ <nr-radio-group
231
+ size="large"
232
+ direction="vertical"
233
+ .options="${[
234
+ { value: 'large-v1', label: 'Option 1' },
235
+ { value: 'large-v2', label: 'Option 2' },
236
+ { value: 'large-v3', label: 'Option 3' }
237
+ ]}"
238
+ value="large-v1"
239
+ @change="${action('large-vertical-change')}"
240
+ ></nr-radio-group>
241
+ </div>
242
+ <div>
243
+ <p style="margin: 0 0 0.5rem 0; font-size: 0.875rem; color: #6f6f6f;">Horizontal</p>
244
+ <nr-radio-group
245
+ size="large"
246
+ direction="horizontal"
247
+ .options="${[
248
+ { value: 'large-h1', label: 'Option 1' },
249
+ { value: 'large-h2', label: 'Option 2' },
250
+ { value: 'large-h3', label: 'Option 3' }
251
+ ]}"
252
+ value="large-h1"
253
+ @change="${action('large-horizontal-change')}"
254
+ ></nr-radio-group>
255
+ </div>
256
+ </div>
257
+ <p style="font-size: 0.875rem; color: #6f6f6f; margin-top: 12px;">
258
+ Use for mobile interfaces, touch screens, or when radio groups need more prominence
259
+ </p>
260
+ </div>
261
+ </div>
262
+
263
+ <!-- Button Style - All Sizes -->
264
+ <div>
265
+ <h3 style="margin: 0 0 1.5rem 0; font-size: 1.125rem; font-weight: 600;">Button Style</h3>
266
+
267
+ <div style="display: flex; flex-direction: column; gap: 2rem;">
268
+ <!-- Small -->
269
+ <div>
270
+ <h4 style="margin: 0 0 1rem 0; font-size: 1rem; font-weight: 600;">Small</h4>
271
+ <nr-radio-group
272
+ size="small"
273
+ type="button"
274
+ direction="horizontal"
275
+ .options="${[
276
+ { value: 'btn-small-1', label: 'Left', icon: 'align-left' },
277
+ { value: 'btn-small-2', label: 'Center', icon: 'align-center' },
278
+ { value: 'btn-small-3', label: 'Right', icon: 'align-right' }
279
+ ]}"
280
+ value="btn-small-2"
281
+ @change="${action('button-small-change')}"
282
+ ></nr-radio-group>
283
+ </div>
284
+
285
+ <!-- Medium -->
286
+ <div>
287
+ <h4 style="margin: 0 0 1rem 0; font-size: 1rem; font-weight: 600;">Medium (Default)</h4>
288
+ <nr-radio-group
289
+ size="medium"
290
+ type="button"
291
+ direction="horizontal"
292
+ .options="${[
293
+ { value: 'btn-medium-1', label: 'Left', icon: 'align-left' },
294
+ { value: 'btn-medium-2', label: 'Center', icon: 'align-center' },
295
+ { value: 'btn-medium-3', label: 'Right', icon: 'align-right' }
296
+ ]}"
297
+ value="btn-medium-2"
298
+ @change="${action('button-medium-change')}"
299
+ ></nr-radio-group>
300
+ </div>
301
+
302
+ <!-- Large -->
303
+ <div>
304
+ <h4 style="margin: 0 0 1rem 0; font-size: 1rem; font-weight: 600;">Large</h4>
305
+ <nr-radio-group
306
+ size="large"
307
+ type="button"
308
+ direction="horizontal"
309
+ .options="${[
310
+ { value: 'btn-large-1', label: 'Left', icon: 'align-left' },
311
+ { value: 'btn-large-2', label: 'Center', icon: 'align-center' },
312
+ { value: 'btn-large-3', label: 'Right', icon: 'align-right' }
313
+ ]}"
314
+ value="btn-large-2"
315
+ @change="${action('button-large-change')}"
316
+ ></nr-radio-group>
317
+ </div>
318
+ </div>
319
+ </div>
320
+
321
+ <!-- Side-by-Side Comparison -->
322
+ <div>
323
+ <h3 style="margin: 0 0 1.5rem 0; font-size: 1.125rem; font-weight: 600;">Side-by-Side Comparison</h3>
324
+ <div style="display: flex; gap: 3rem; align-items: flex-start;">
325
+ <div>
326
+ <p style="margin: 0 0 0.5rem 0; font-size: 0.875rem; font-weight: 500;">Small</p>
327
+ <nr-radio-group
328
+ size="small"
329
+ direction="vertical"
330
+ .options="${[
331
+ { value: 'compare-s1', label: 'Option 1' },
332
+ { value: 'compare-s2', label: 'Option 2' }
333
+ ]}"
334
+ value="compare-s1"
335
+ ></nr-radio-group>
336
+ </div>
337
+ <div>
338
+ <p style="margin: 0 0 0.5rem 0; font-size: 0.875rem; font-weight: 500;">Medium</p>
339
+ <nr-radio-group
340
+ size="medium"
341
+ direction="vertical"
342
+ .options="${[
343
+ { value: 'compare-m1', label: 'Option 1' },
344
+ { value: 'compare-m2', label: 'Option 2' }
345
+ ]}"
346
+ value="compare-m1"
347
+ ></nr-radio-group>
348
+ </div>
349
+ <div>
350
+ <p style="margin: 0 0 0.5rem 0; font-size: 0.875rem; font-weight: 500;">Large</p>
351
+ <nr-radio-group
352
+ size="large"
353
+ direction="vertical"
354
+ .options="${[
355
+ { value: 'compare-l1', label: 'Option 1' },
356
+ { value: 'compare-l2', label: 'Option 2' }
357
+ ]}"
358
+ value="compare-l1"
359
+ ></nr-radio-group>
360
+ </div>
361
+ </div>
362
+ </div>
363
+ </div>
364
+ `,
365
+ };
366
+
367
+ export const ButtonStyle: Story = {
368
+ args: {
369
+ options: [
370
+ { value: 'left', label: 'Left', icon: 'align-left' },
371
+ { value: 'center', label: 'Center', icon: 'align-center' },
372
+ { value: 'right', label: 'Right', icon: 'align-right' }
373
+ ],
374
+ value: 'center',
375
+ type: 'button',
376
+ },
377
+ render: (args) => html`
378
+ <nr-radio-group
379
+ .options="${args.options}"
380
+ value="${args.value}"
381
+ type="${args.type}"
382
+ position="${args.position}"
383
+ direction="${args.direction}"
384
+ @change="${action('button-change')}"
385
+ ></nr-radio-group>
386
+ `,
387
+ };
388
+
389
+ export const InteractiveExample: Story = {
390
+ args: {
391
+ options: [
392
+ { value: 'option1', label: 'First Choice' },
393
+ { value: 'option2', label: 'Second Choice' },
394
+ { value: 'option3', label: 'Third Choice' }
395
+ ],
396
+ value: 'option1',
397
+ },
398
+ render: (args) => html`
399
+ <div>
400
+ <h3>Interactive Radio Example</h3>
401
+ <p>Click on options and check the Actions tab to see events:</p>
402
+ <nr-radio-group
403
+ .options="${args.options}"
404
+ value="${args.value}"
405
+ type="${args.type}"
406
+ position="${args.position}"
407
+ direction="${args.direction}"
408
+ @change="${action('interactive-change')}"
409
+ ></nr-radio-group>
410
+ <div style="
411
+ margin-top: 16px;
412
+ padding: 12px;
413
+ background: #f4f4f4;
414
+ border-left: 4px solid #0f62fe;
415
+ font-weight: bold;
416
+ ">
417
+ Check the <strong>Actions</strong> tab in Storybook to see the change events!
418
+ </div>
419
+ </div>
420
+ `,
421
+ };
422
+
423
+ export const WithDisabledOptions: Story = {
424
+ args: {
425
+ options: [
426
+ { value: 'enabled1', label: 'Enabled Option' },
427
+ { value: 'disabled1', label: 'Disabled Option', disabled: true },
428
+ { value: 'enabled2', label: 'Another Enabled Option' }
429
+ ],
430
+ value: 'enabled1',
431
+ },
432
+ render: (args) => html`
433
+ <nr-radio-group
434
+ .options="${args.options}"
435
+ value="${args.value}"
436
+ type="${args.type}"
437
+ position="${args.position}"
438
+ direction="${args.direction}"
439
+ @change="${action('disabled-options-change')}"
440
+ ></nr-radio-group>
441
+ `,
442
+ };
443
+
444
+ export const WithValidationStates: Story = {
445
+ args: {
446
+ options: [
447
+ { value: 'valid', label: 'Valid Option' },
448
+ {
449
+ value: 'error',
450
+ label: 'Option with Error',
451
+ state: 'error',
452
+ message: 'This option has an error message'
453
+ },
454
+ {
455
+ value: 'warning',
456
+ label: 'Option with Warning',
457
+ state: 'warning',
458
+ message: 'This option has a warning message'
459
+ }
460
+ ],
461
+ value: 'valid',
462
+ },
463
+ render: (args) => html`
464
+ <nr-radio-group
465
+ .options="${args.options}"
466
+ value="${args.value}"
467
+ type="${args.type}"
468
+ position="${args.position}"
469
+ direction="${args.direction}"
470
+ @change="${action('validation-change')}"
471
+ ></nr-radio-group>
472
+ `,
473
+ };
474
+
475
+ export const HorizontalButtonGroup: Story = {
476
+ args: {
477
+ options: [
478
+ { value: 'view', label: 'View', icon: 'eye' },
479
+ { value: 'edit', label: 'Edit', icon: 'edit' },
480
+ { value: 'delete', label: 'Delete', icon: 'trash' }
481
+ ],
482
+ value: 'view',
483
+ type: 'button',
484
+ direction: 'horizontal',
485
+ },
486
+ render: (args) => html`
487
+ <nr-radio-group
488
+ .options="${args.options}"
489
+ value="${args.value}"
490
+ type="${args.type}"
491
+ position="${args.position}"
492
+ direction="${args.direction}"
493
+ @change="${(e: CustomEvent) => console.log('Radio changed:', e.detail)}"
494
+ ></nr-radio-group>
495
+ `,
496
+ };
497
+
498
+ export const LongOptionsList: Story = {
499
+ args: {
500
+ options: [
501
+ { value: 'option1', label: 'First Option with a very long description' },
502
+ { value: 'option2', label: 'Second Option' },
503
+ { value: 'option3', label: 'Third Option' },
504
+ { value: 'option4', label: 'Fourth Option with some additional text' },
505
+ { value: 'option5', label: 'Fifth Option' }
506
+ ],
507
+ value: 'option3',
508
+ },
509
+ render: (args) => html`
510
+ <div style="width: 300px;">
511
+ <nr-radio-group
512
+ .options="${args.options}"
513
+ value="${args.value}"
514
+ type="${args.type}"
515
+ position="${args.position}"
516
+ direction="${args.direction}"
517
+ @change="${(e: CustomEvent) => console.log('Radio changed:', e.detail)}"
518
+ ></nr-radio-group>
519
+ </div>
520
+ `,
521
+ };
522
+
523
+ export const ThemeVariations: Story = {
524
+ render: () => html`
525
+ <div style="display: flex; gap: 40px; align-items: flex-start;">
526
+ <div>
527
+ <h3>Light Theme</h3>
528
+ <nr-radio-group
529
+ .options="${[
530
+ { value: 'light1', label: 'Option 1' },
531
+ { value: 'light2', label: 'Option 2' },
532
+ { value: 'light3', label: 'Option 3' }
533
+ ]}"
534
+ default-value="light1"
535
+ @change="${(e: CustomEvent) => console.log('Light theme radio changed:', e.detail)}"
536
+ ></nr-radio-group>
537
+ </div>
538
+
539
+ <div data-theme="dark" style="background: #1a1a1a; padding: 20px; border-radius: 8px;">
540
+ <h3 style="color: white; margin-top: 0;">Dark Theme</h3>
541
+ <nr-radio-group
542
+ .options="${[
543
+ { value: 'dark1', label: 'Option 1' },
544
+ { value: 'dark2', label: 'Option 2' },
545
+ { value: 'dark3', label: 'Option 3' }
546
+ ]}"
547
+ default-value="dark2"
548
+ @change="${(e: CustomEvent) => console.log('Dark theme radio changed:', e.detail)}"
549
+ ></nr-radio-group>
550
+ </div>
551
+ </div>
552
+ `,
553
+ };
554
+
555
+ export const Interactive: Story = {
556
+ render: () => html`
557
+ <div>
558
+ <style>
559
+ .demo-container {
560
+ display: flex;
561
+ flex-direction: column;
562
+ gap: 20px;
563
+ max-width: 600px;
564
+ }
565
+ .result {
566
+ padding: 10px;
567
+ background: #f5f5f5;
568
+ border-radius: 4px;
569
+ font-family: monospace;
570
+ }
571
+ .form-section {
572
+ border: 1px solid #ddd;
573
+ padding: 20px;
574
+ border-radius: 8px;
575
+ }
576
+ .form-section h4 {
577
+ margin-top: 0;
578
+ }
579
+ </style>
580
+ <div class="demo-container">
581
+ <div class="form-section">
582
+ <h4>User Preferences</h4>
583
+ <label>Theme Preference:</label>
584
+ <nr-radio-group
585
+ id="theme-radio"
586
+ .options="${[
587
+ { value: 'auto', label: 'Auto (System)' },
588
+ { value: 'light', label: 'Light' },
589
+ { value: 'dark', label: 'Dark' }
590
+ ]}"
591
+ default-value="auto"
592
+ direction="horizontal"
593
+ @change="${(e: CustomEvent) => {
594
+ const result = document.getElementById('theme-result');
595
+ if (result) result.textContent = JSON.stringify(e.detail, null, 2);
596
+ }}"
597
+ ></nr-radio-group>
598
+ <div id="theme-result" class="result">No selection yet</div>
599
+ </div>
600
+
601
+ <div class="form-section">
602
+ <h4>Notification Settings</h4>
603
+ <label>Notification Frequency:</label>
604
+ <nr-radio-group
605
+ id="notification-radio"
606
+ .options="${[
607
+ { value: 'realtime', label: 'Real-time' },
608
+ { value: 'daily', label: 'Daily Summary' },
609
+ { value: 'weekly', label: 'Weekly Summary' },
610
+ { value: 'never', label: 'Never' }
611
+ ]}"
612
+ default-value="daily"
613
+ @change="${(e: CustomEvent) => {
614
+ const result = document.getElementById('notification-result');
615
+ if (result) result.textContent = JSON.stringify(e.detail, null, 2);
616
+ }}"
617
+ ></nr-radio-group>
618
+ <div id="notification-result" class="result">No selection yet</div>
619
+ </div>
620
+
621
+ <div class="form-section">
622
+ <h4>Button Style Actions</h4>
623
+ <label>Choose Action:</label>
624
+ <nr-radio-group
625
+ id="action-radio"
626
+ .options="${[
627
+ { value: 'save', label: 'Save', icon: 'save' },
628
+ { value: 'export', label: 'Export', icon: 'download' },
629
+ { value: 'share', label: 'Share', icon: 'share' }
630
+ ]}"
631
+ default-value="save"
632
+ type="button"
633
+ @change="${(e: CustomEvent) => {
634
+ const result = document.getElementById('action-result');
635
+ if (result) result.textContent = JSON.stringify(e.detail, null, 2);
636
+ }}"
637
+ ></nr-radio-group>
638
+ <div id="action-result" class="result">No selection yet</div>
639
+ </div>
640
+ </div>
641
+ </div>
642
+ `,
643
+ };
644
+
645
+ export const WithSlots: Story = {
646
+ parameters: {
647
+ docs: {
648
+ description: {
649
+ story: 'Radio buttons can use slots for custom HTML content in each option. This allows for rich content like icons, images, formatting, and complex layouts within radio options.'
650
+ }
651
+ }
652
+ },
653
+ render: () => html`
654
+ <div style="display: flex; flex-direction: column; gap: 30px; max-width: 800px;">
655
+ <div>
656
+ <h3>Custom HTML Content with Slots</h3>
657
+ <p>Each radio option can contain custom HTML content using slots:</p>
658
+
659
+ <!-- Basic HTML content slots -->
660
+ <nr-radio-group
661
+ .options="${[
662
+ { value: 'basic1', label: '' },
663
+ { value: 'basic2', label: '' },
664
+ { value: 'basic3', label: '' }
665
+ ]}"
666
+ value="basic1"
667
+ type="slot"
668
+ @change="${action('slot-basic-change')}"
669
+ >
670
+ <div slot="basic1">
671
+ <strong>Premium Plan</strong><br>
672
+ <small style="color: #666;">$29/month - All features included</small>
673
+ </div>
674
+ <div slot="basic2">
675
+ <strong>Standard Plan</strong><br>
676
+ <small style="color: #666;">$19/month - Core features</small>
677
+ </div>
678
+ <div slot="basic3">
679
+ <strong>Basic Plan</strong><br>
680
+ <small style="color: #666;">$9/month - Essential features</small>
681
+ </div>
682
+ </nr-radio-group>
683
+ </div>
684
+
685
+ <div>
686
+ <h3>Rich Content with Icons and Badges</h3>
687
+ <nr-radio-group
688
+ .options="${[
689
+ { value: 'pro', label: '' },
690
+ { value: 'team', label: '' },
691
+ { value: 'enterprise', label: '' }
692
+ ]}"
693
+ value="pro"
694
+ type="slot"
695
+ @change="${action('slot-rich-change')}"
696
+ >
697
+ <div slot="pro" style="display: flex; align-items: center; gap: 12px; padding: 8px;">
698
+ <nr-icon name="user" style="--nuraly-icon-color: #1677ff;"></nr-icon>
699
+ <div>
700
+ <div style="font-weight: 600;">Professional</div>
701
+ <div style="font-size: 12px; color: #666;">Perfect for freelancers</div>
702
+ </div>
703
+ <span style="background: #e6f7ff; color: #1677ff; padding: 2px 8px; border-radius: 12px; font-size: 11px; margin-left: auto;">POPULAR</span>
704
+ </div>
705
+ <div slot="team" style="display: flex; align-items: center; gap: 12px; padding: 8px;">
706
+ <nr-icon name="users" style="--nuraly-icon-color: #52c41a;"></nr-icon>
707
+ <div>
708
+ <div style="font-weight: 600;">Team</div>
709
+ <div style="font-size: 12px; color: #666;">Great for small teams</div>
710
+ </div>
711
+ </div>
712
+ <div slot="enterprise" style="display: flex; align-items: center; gap: 12px; padding: 8px;">
713
+ <nr-icon name="building" style="--nuraly-icon-color: #722ed1;"></nr-icon>
714
+ <div>
715
+ <div style="font-weight: 600;">Enterprise</div>
716
+ <div style="font-size: 12px; color: #666;">For large organizations</div>
717
+ </div>
718
+ <span style="background: #f9f0ff; color: #722ed1; padding: 2px 8px; border-radius: 12px; font-size: 11px; margin-left: auto;">CUSTOM</span>
719
+ </div>
720
+ </nr-radio-group>
721
+ </div>
722
+
723
+ <div>
724
+ <h3>Complex Layout Example</h3>
725
+ <nr-radio-group
726
+ .options="${[
727
+ { value: 'starter', label: '' },
728
+ { value: 'growth', label: '' },
729
+ { value: 'scale', label: '' }
730
+ ]}"
731
+ value="growth"
732
+ type="slot"
733
+ @change="${action('slot-complex-change')}"
734
+ >
735
+ <div slot="starter" style="border: 2px solid #d9d9d9; border-radius: 8px; padding: 16px; margin: 4px 0;">
736
+ <div style="display: flex; justify-content: between; align-items: flex-start; margin-bottom: 8px;">
737
+ <h4 style="margin: 0; color: #1677ff;">Starter</h4>
738
+ <div style="font-size: 24px; font-weight: bold; margin-left: auto;">$0</div>
739
+ </div>
740
+ <ul style="margin: 0; padding-left: 16px; font-size: 14px; color: #666;">
741
+ <li>Up to 3 projects</li>
742
+ <li>Basic analytics</li>
743
+ <li>Community support</li>
744
+ </ul>
745
+ </div>
746
+ <div slot="growth" style="border: 2px solid #1677ff; border-radius: 8px; padding: 16px; margin: 4px 0; position: relative;">
747
+ <div style="position: absolute; top: -10px; right: 16px; background: #1677ff; color: white; padding: 4px 12px; border-radius: 12px; font-size: 12px;">RECOMMENDED</div>
748
+ <div style="display: flex; justify-content: between; align-items: flex-start; margin-bottom: 8px;">
749
+ <h4 style="margin: 0; color: #1677ff;">Growth</h4>
750
+ <div style="font-size: 24px; font-weight: bold; margin-left: auto;">$29</div>
751
+ </div>
752
+ <ul style="margin: 0; padding-left: 16px; font-size: 14px; color: #666;">
753
+ <li>Unlimited projects</li>
754
+ <li>Advanced analytics</li>
755
+ <li>Priority support</li>
756
+ <li>Custom integrations</li>
757
+ </ul>
758
+ </div>
759
+ <div slot="scale" style="border: 2px solid #d9d9d9; border-radius: 8px; padding: 16px; margin: 4px 0;">
760
+ <div style="display: flex; justify-content: between; align-items: flex-start; margin-bottom: 8px;">
761
+ <h4 style="margin: 0; color: #1677ff;">Scale</h4>
762
+ <div style="font-size: 24px; font-weight: bold; margin-left: auto;">$99</div>
763
+ </div>
764
+ <ul style="margin: 0; padding-left: 16px; font-size: 14px; color: #666;">
765
+ <li>Everything in Growth</li>
766
+ <li>White-label solution</li>
767
+ <li>Dedicated support</li>
768
+ <li>Custom development</li>
769
+ </ul>
770
+ </div>
771
+ </nr-radio-group>
772
+ </div>
773
+ </div>
774
+ `,
775
+ };
776
+
777
+ /**
778
+ * ## Auto Width Buttons
779
+ *
780
+ * By default, button-type radio groups have a minimum width for consistent sizing.
781
+ * You can use the `auto-width` attribute to make buttons size to their content.
782
+ */
783
+ export const AutoWidth: Story = {
784
+ parameters: {
785
+ docs: {
786
+ description: {
787
+ story: 'Comparison of default button sizing vs auto-width sizing. Auto-width is useful when you have buttons with varying text lengths and want them to be sized optimally.',
788
+ },
789
+ },
790
+ },
791
+ render: () => html`
792
+ <div style="display: flex; flex-direction: column; gap: 3rem;">
793
+ <!-- Default Button Width -->
794
+ <div>
795
+ <h3 style="margin: 0 0 1rem 0; font-size: 1.125rem; font-weight: 600;">Default Min-Width (5rem)</h3>
796
+ <p style="margin: 0 0 1rem 0; color: #6f6f6f; font-size: 0.875rem;">
797
+ Buttons have consistent minimum widths for better visual alignment
798
+ </p>
799
+ <nr-radio-group
800
+ type="button"
801
+ direction="horizontal"
802
+ value="no"
803
+ .options="${[
804
+ { value: 'yes', label: 'Yes' },
805
+ { value: 'no', label: 'No' },
806
+ { value: 'maybe', label: 'Maybe' },
807
+ { value: 'definitely-not', label: 'Definitely Not' }
808
+ ]}"
809
+ @change="${action('default-width-change')}"
810
+ ></nr-radio-group>
811
+ </div>
812
+
813
+ <!-- Auto Width -->
814
+ <div>
815
+ <h3 style="margin: 0 0 1rem 0; font-size: 1.125rem; font-weight: 600;">Auto Width</h3>
816
+ <p style="margin: 0 0 1rem 0; color: #6f6f6f; font-size: 0.875rem;">
817
+ Buttons size to their content for optimal space usage
818
+ </p>
819
+ <nr-radio-group
820
+ type="button"
821
+ direction="horizontal"
822
+ value="no"
823
+ auto-width
824
+ .options="${[
825
+ { value: 'yes', label: 'Yes' },
826
+ { value: 'no', label: 'No' },
827
+ { value: 'maybe', label: 'Maybe' },
828
+ { value: 'definitely-not', label: 'Definitely Not' }
829
+ ]}"
830
+ @change="${action('auto-width-change')}"
831
+ ></nr-radio-group>
832
+ </div>
833
+
834
+ <!-- Different Sizes Comparison -->
835
+ <div>
836
+ <h3 style="margin: 0 0 1rem 0; font-size: 1.125rem; font-weight: 600;">Size Comparison with Auto Width</h3>
837
+
838
+ <div style="display: flex; flex-direction: column; gap: 2rem;">
839
+ <div>
840
+ <h4 style="margin: 0 0 0.5rem 0; font-size: 1rem; font-weight: 600;">Small</h4>
841
+ <nr-radio-group
842
+ type="button"
843
+ direction="horizontal"
844
+ size="small"
845
+ value="sm"
846
+ auto-width
847
+ .options="${[
848
+ { value: 'xs', label: 'XS' },
849
+ { value: 'sm', label: 'Small' },
850
+ { value: 'md', label: 'Medium' },
851
+ { value: 'lg', label: 'Large' },
852
+ { value: 'xl', label: 'Extra Large' }
853
+ ]}"
854
+ @change="${action('small-auto-width-change')}"
855
+ ></nr-radio-group>
856
+ </div>
857
+
858
+ <div>
859
+ <h4 style="margin: 0 0 0.5rem 0; font-size: 1rem; font-weight: 600;">Medium</h4>
860
+ <nr-radio-group
861
+ type="button"
862
+ direction="horizontal"
863
+ size="medium"
864
+ value="sm"
865
+ auto-width
866
+ .options="${[
867
+ { value: 'xs', label: 'XS' },
868
+ { value: 'sm', label: 'Small' },
869
+ { value: 'md', label: 'Medium' },
870
+ { value: 'lg', label: 'Large' },
871
+ { value: 'xl', label: 'Extra Large' }
872
+ ]}"
873
+ @change="${action('medium-auto-width-change')}"
874
+ ></nr-radio-group>
875
+ </div>
876
+
877
+ <div>
878
+ <h4 style="margin: 0 0 0.5rem 0; font-size: 1rem; font-weight: 600;">Large</h4>
879
+ <nr-radio-group
880
+ type="button"
881
+ direction="horizontal"
882
+ size="large"
883
+ value="sm"
884
+ auto-width
885
+ .options="${[
886
+ { value: 'xs', label: 'XS' },
887
+ { value: 'sm', label: 'Small' },
888
+ { value: 'md', label: 'Medium' },
889
+ { value: 'lg', label: 'Large' },
890
+ { value: 'xl', label: 'Extra Large' }
891
+ ]}"
892
+ @change="${action('large-auto-width-change')}"
893
+ ></nr-radio-group>
894
+ </div>
895
+ </div>
896
+ </div>
897
+ </div>
898
+ `,
899
+ };
900
+
901
+ /**
902
+ * ## Auto Width User Stories
903
+ *
904
+ * Real-world scenarios where auto-width provides better user experience and visual design.
905
+ */
906
+ export const AutoWidthUserStories: Story = {
907
+ parameters: {
908
+ docs: {
909
+ description: {
910
+ story: 'Collection of common use cases where auto-width radio groups provide better UX and visual design than fixed-width buttons.',
911
+ },
912
+ },
913
+ },
914
+ render: () => html`
915
+ <div style="display: flex; flex-direction: column; gap: 4rem;">
916
+
917
+ <!-- User Story 1: Yes/No Questions -->
918
+ <div style="padding: 2rem; border: 1px solid #e0e0e0; border-radius: 8px; background: #fafafa;">
919
+ <h3 style="margin: 0 0 1rem 0; color: #2563eb; font-weight: 600;">📋 User Story 1: Survey Yes/No Questions</h3>
920
+ <p style="margin: 0 0 1.5rem 0; color: #374151; line-height: 1.6;">
921
+ <strong>As a</strong> survey designer<br>
922
+ <strong>I want</strong> compact Yes/No buttons that don't waste space<br>
923
+ <strong>So that</strong> I can fit more questions on screen and reduce scrolling
924
+ </p>
925
+
926
+ <div style="display: flex; flex-direction: column; gap: 1.5rem;">
927
+ <div>
928
+ <h4 style="margin: 0 0 0.5rem 0; font-size: 0.875rem; font-weight: 600;">Do you enjoy using this component library?</h4>
929
+ <nr-radio-group
930
+ type="button"
931
+ direction="horizontal"
932
+ auto-width
933
+ value="yes"
934
+ .options="${[
935
+ { value: 'yes', label: 'Yes' },
936
+ { value: 'no', label: 'No' }
937
+ ]}"
938
+ @change="${action('survey-1-change')}"
939
+ ></nr-radio-group>
940
+ </div>
941
+
942
+ <div>
943
+ <h4 style="margin: 0 0 0.5rem 0; font-size: 0.875rem; font-weight: 600;">Would you recommend it to others?</h4>
944
+ <nr-radio-group
945
+ type="button"
946
+ direction="horizontal"
947
+ auto-width
948
+ value="definitely"
949
+ .options="${[
950
+ { value: 'definitely', label: 'Definitely' },
951
+ { value: 'probably', label: 'Probably' },
952
+ { value: 'maybe', label: 'Maybe' },
953
+ { value: 'no', label: 'No' }
954
+ ]}"
955
+ @change="${action('survey-2-change')}"
956
+ ></nr-radio-group>
957
+ </div>
958
+ </div>
959
+ </div>
960
+
961
+ <!-- User Story 2: Size Selector -->
962
+ <div style="padding: 2rem; border: 1px solid #e0e0e0; border-radius: 8px; background: #fafafa;">
963
+ <h3 style="margin: 0 0 1rem 0; color: #2563eb; font-weight: 600;">👕 User Story 2: E-commerce Size Selector</h3>
964
+ <p style="margin: 0 0 1.5rem 0; color: #374151; line-height: 1.6;">
965
+ <strong>As an</strong> e-commerce customer<br>
966
+ <strong>I want</strong> size buttons that are clearly readable but not overly wide<br>
967
+ <strong>So that</strong> I can quickly scan and select my size without visual clutter
968
+ </p>
969
+
970
+ <div>
971
+ <h4 style="margin: 0 0 1rem 0; font-size: 1rem; font-weight: 600;">Select Size:</h4>
972
+ <nr-radio-group
973
+ type="button"
974
+ direction="horizontal"
975
+ auto-width
976
+ value="m"
977
+ .options="${[
978
+ { value: 'xs', label: 'XS' },
979
+ { value: 's', label: 'S' },
980
+ { value: 'm', label: 'M' },
981
+ { value: 'l', label: 'L' },
982
+ { value: 'xl', label: 'XL' },
983
+ { value: 'xxl', label: 'XXL' }
984
+ ]}"
985
+ @change="${action('size-selector-change')}"
986
+ ></nr-radio-group>
987
+ </div>
988
+ </div>
989
+
990
+ <!-- User Story 3: Rating Scale -->
991
+ <div style="padding: 2rem; border: 1px solid #e0e0e0; border-radius: 8px; background: #fafafa;">
992
+ <h3 style="margin: 0 0 1rem 0; color: #2563eb; font-weight: 600;">⭐ User Story 3: Compact Rating Scale</h3>
993
+ <p style="margin: 0 0 1.5rem 0; color: #374151; line-height: 1.6;">
994
+ <strong>As a</strong> UX researcher<br>
995
+ <strong>I want</strong> a horizontal rating scale that doesn't dominate the form<br>
996
+ <strong>So that</strong> users focus on the question content rather than large buttons
997
+ </p>
998
+
999
+ <div>
1000
+ <h4 style="margin: 0 0 1rem 0; font-size: 1rem; font-weight: 600;">How satisfied are you with our service?</h4>
1001
+ <nr-radio-group
1002
+ type="button"
1003
+ direction="horizontal"
1004
+ auto-width
1005
+ value="4"
1006
+ .options="${[
1007
+ { value: '1', label: '1' },
1008
+ { value: '2', label: '2' },
1009
+ { value: '3', label: '3' },
1010
+ { value: '4', label: '4' },
1011
+ { value: '5', label: '5' }
1012
+ ]}"
1013
+ @change="${action('rating-change')}"
1014
+ ></nr-radio-group>
1015
+ <div style="display: flex; justify-content: space-between; margin-top: 0.5rem; font-size: 0.75rem; color: #6b7280;">
1016
+ <span>Very Unsatisfied</span>
1017
+ <span>Very Satisfied</span>
1018
+ </div>
1019
+ </div>
1020
+ </div>
1021
+
1022
+ <!-- User Story 4: Navigation Filters -->
1023
+ <div style="padding: 2rem; border: 1px solid #e0e0e0; border-radius: 8px; background: #fafafa;">
1024
+ <h3 style="margin: 0 0 1rem 0; color: #2563eb; font-weight: 600;">🔍 User Story 4: Content Filter Navigation</h3>
1025
+ <p style="margin: 0 0 1.5rem 0; color: #374151; line-height: 1.6;">
1026
+ <strong>As a</strong> content manager<br>
1027
+ <strong>I want</strong> filter buttons that adapt to their labels<br>
1028
+ <strong>So that</strong> the interface looks clean regardless of text length variations
1029
+ </p>
1030
+
1031
+ <div>
1032
+ <h4 style="margin: 0 0 1rem 0; font-size: 1rem; font-weight: 600;">Filter by Status:</h4>
1033
+ <nr-radio-group
1034
+ type="button"
1035
+ direction="horizontal"
1036
+ auto-width
1037
+ value="published"
1038
+ .options="${[
1039
+ { value: 'all', label: 'All' },
1040
+ { value: 'draft', label: 'Draft' },
1041
+ { value: 'published', label: 'Published' },
1042
+ { value: 'archived', label: 'Archived' },
1043
+ { value: 'pending-review', label: 'Pending Review' }
1044
+ ]}"
1045
+ @change="${action('filter-change')}"
1046
+ ></nr-radio-group>
1047
+ </div>
1048
+ </div>
1049
+
1050
+ <!-- User Story 5: Payment Method -->
1051
+ <div style="padding: 2rem; border: 1px solid #e0e0e0; border-radius: 8px; background: #fafafa;">
1052
+ <h3 style="margin: 0 0 1rem 0; color: #2563eb; font-weight: 600;">💳 User Story 5: Payment Method Selection</h3>
1053
+ <p style="margin: 0 0 1.5rem 0; color: #374151; line-height: 1.6;">
1054
+ <strong>As a</strong> checkout flow designer<br>
1055
+ <strong>I want</strong> payment method buttons to be proportional to their labels<br>
1056
+ <strong>So that</strong> the checkout process feels streamlined and professional
1057
+ </p>
1058
+
1059
+ <div>
1060
+ <h4 style="margin: 0 0 1rem 0; font-size: 1rem; font-weight: 600;">Choose Payment Method:</h4>
1061
+ <nr-radio-group
1062
+ type="button"
1063
+ direction="horizontal"
1064
+ auto-width
1065
+ value="card"
1066
+ .options="${[
1067
+ { value: 'card', label: 'Card' },
1068
+ { value: 'paypal', label: 'PayPal' },
1069
+ { value: 'apple-pay', label: 'Apple Pay' },
1070
+ { value: 'bank', label: 'Bank Transfer' }
1071
+ ]}"
1072
+ @change="${action('payment-change')}"
1073
+ ></nr-radio-group>
1074
+ </div>
1075
+ </div>
1076
+
1077
+ <!-- User Story 6: Dashboard Time Range -->
1078
+ <div style="padding: 2rem; border: 1px solid #e0e0e0; border-radius: 8px; background: #fafafa;">
1079
+ <h3 style="margin: 0 0 1rem 0; color: #2563eb; font-weight: 600;">📊 User Story 6: Dashboard Time Range Selector</h3>
1080
+ <p style="margin: 0 0 1.5rem 0; color: #374151; line-height: 1.6;">
1081
+ <strong>As a</strong> dashboard user<br>
1082
+ <strong>I want</strong> time range buttons that don't take up excessive header space<br>
1083
+ <strong>So that</strong> more screen real estate is available for data visualization
1084
+ </p>
1085
+
1086
+ <div>
1087
+ <h4 style="margin: 0 0 1rem 0; font-size: 1rem; font-weight: 600;">Time Range:</h4>
1088
+ <nr-radio-group
1089
+ type="button"
1090
+ direction="horizontal"
1091
+ auto-width
1092
+ value="7d"
1093
+ .options="${[
1094
+ { value: '1d', label: '1D' },
1095
+ { value: '7d', label: '7D' },
1096
+ { value: '30d', label: '30D' },
1097
+ { value: '90d', label: '90D' },
1098
+ { value: '1y', label: '1Y' },
1099
+ { value: 'all', label: 'All Time' }
1100
+ ]}"
1101
+ @change="${action('timerange-change')}"
1102
+ ></nr-radio-group>
1103
+ </div>
1104
+ </div>
1105
+
1106
+ <!-- Summary Box -->
1107
+ <div style="padding: 2rem; border: 2px solid #dbeafe; border-radius: 8px; background: #eff6ff;">
1108
+ <h3 style="margin: 0 0 1rem 0; color: #1d4ed8; font-weight: 600;">💡 When to Use Auto-Width</h3>
1109
+ <ul style="margin: 0; padding-left: 1.5rem; color: #374151; line-height: 1.6;">
1110
+ <li><strong>Short labels:</strong> Yes/No, numbers, abbreviations (XS, S, M, L)</li>
1111
+ <li><strong>Mixed lengths:</strong> When some options are short and others longer</li>
1112
+ <li><strong>Space constraints:</strong> Mobile interfaces, compact dashboards, sidebars</li>
1113
+ <li><strong>Visual hierarchy:</strong> When buttons shouldn't dominate the layout</li>
1114
+ <li><strong>Form efficiency:</strong> Surveys, filters, quick selectors</li>
1115
+ </ul>
1116
+
1117
+ <h3 style="margin: 2rem 0 1rem 0; color: #1d4ed8; font-weight: 600;">⚠️ When to Keep Default Width</h3>
1118
+ <ul style="margin: 0; padding-left: 1.5rem; color: #374151; line-height: 1.6;">
1119
+ <li><strong>Consistent alignment:</strong> When visual uniformity is important</li>
1120
+ <li><strong>Touch targets:</strong> Mobile apps where larger buttons improve usability</li>
1121
+ <li><strong>Similar length labels:</strong> When all options are roughly the same length</li>
1122
+ <li><strong>Emphasis:</strong> When buttons should be prominent UI elements</li>
1123
+ </ul>
1124
+ </div>
1125
+ </div>
1126
+ `,
1127
+ };
1128
+
1129
+ /**
1130
+ * ## Auto Width Icon-Only Groups
1131
+ *
1132
+ * Icon-only radio groups with auto-width for compact toolbars and action buttons.
1133
+ */
1134
+ export const AutoWidthIconOnly: Story = {
1135
+ parameters: {
1136
+ docs: {
1137
+ description: {
1138
+ story: 'Icon-only radio groups with auto-width are perfect for toolbars, formatting controls, and compact UI elements where space is at a premium.',
1139
+ },
1140
+ },
1141
+ },
1142
+ render: () => html`
1143
+ <div style="display: flex; flex-direction: column; gap: 3rem;">
1144
+
1145
+ <!-- Text Alignment Toolbar -->
1146
+ <div>
1147
+ <h3 style="margin: 0 0 1rem 0; font-size: 1.125rem; font-weight: 600;">Text Alignment Toolbar</h3>
1148
+ <p style="margin: 0 0 1rem 0; color: #6f6f6f; font-size: 0.875rem;">
1149
+ Compact icon-only buttons for text alignment controls
1150
+ </p>
1151
+ <nr-radio-group
1152
+ type="button"
1153
+ direction="horizontal"
1154
+ auto-width
1155
+ value="left"
1156
+ .options="${[
1157
+ { value: 'left', label: '', icon: 'align-left' },
1158
+ { value: 'center', label: '', icon: 'align-center' },
1159
+ { value: 'right', label: '', icon: 'align-right' },
1160
+ { value: 'justify', label: '', icon: 'align-justify' }
1161
+ ]}"
1162
+ @change="${action('text-align-change')}"
1163
+ ></nr-radio-group>
1164
+ </div>
1165
+
1166
+ <!-- View Mode Selector -->
1167
+ <div>
1168
+ <h3 style="margin: 0 0 1rem 0; font-size: 1.125rem; font-weight: 600;">View Mode Selector</h3>
1169
+ <p style="margin: 0 0 1rem 0; color: #6f6f6f; font-size: 0.875rem;">
1170
+ Switch between different view modes using only icons
1171
+ </p>
1172
+ <nr-radio-group
1173
+ type="button"
1174
+ direction="horizontal"
1175
+ auto-width
1176
+ value="grid"
1177
+ .options="${[
1178
+ { value: 'list', label: '', icon: 'list' },
1179
+ { value: 'grid', label: '', icon: 'grid' },
1180
+ { value: 'card', label: '', icon: 'card' },
1181
+ { value: 'table', label: '', icon: 'table' }
1182
+ ]}"
1183
+ @change="${action('view-mode-change')}"
1184
+ ></nr-radio-group>
1185
+ </div>
1186
+
1187
+ <!-- Media Controls -->
1188
+ <div>
1189
+ <h3 style="margin: 0 0 1rem 0; font-size: 1.125rem; font-weight: 600;">Media Controls</h3>
1190
+ <p style="margin: 0 0 1rem 0; color: #6f6f6f; font-size: 0.875rem;">
1191
+ Playback controls with auto-width for optimal spacing
1192
+ </p>
1193
+ <nr-radio-group
1194
+ type="button"
1195
+ direction="horizontal"
1196
+ auto-width
1197
+ value="play"
1198
+ .options="${[
1199
+ { value: 'previous', label: '', icon: 'skip-back' },
1200
+ { value: 'play', label: '', icon: 'play' },
1201
+ { value: 'pause', label: '', icon: 'pause' },
1202
+ { value: 'next', label: '', icon: 'skip-forward' }
1203
+ ]}"
1204
+ @change="${action('media-controls-change')}"
1205
+ ></nr-radio-group>
1206
+ </div>
1207
+
1208
+ <!-- Size Comparison: Different Sizes -->
1209
+ <div>
1210
+ <h3 style="margin: 0 0 1rem 0; font-size: 1.125rem; font-weight: 600;">Size Variations</h3>
1211
+
1212
+ <div style="display: flex; flex-direction: column; gap: 2rem;">
1213
+ <div>
1214
+ <h4 style="margin: 0 0 0.5rem 0; font-size: 1rem; font-weight: 600;">Small</h4>
1215
+ <nr-radio-group
1216
+ type="button"
1217
+ direction="horizontal"
1218
+ size="small"
1219
+ auto-width
1220
+ value="bold"
1221
+ .options="${[
1222
+ { value: 'bold', label: '', icon: 'bold' },
1223
+ { value: 'italic', label: '', icon: 'italic' },
1224
+ { value: 'underline', label: '', icon: 'underline' },
1225
+ { value: 'strikethrough', label: '', icon: 'strikethrough' }
1226
+ ]}"
1227
+ @change="${action('small-format-change')}"
1228
+ ></nr-radio-group>
1229
+ </div>
1230
+
1231
+ <div>
1232
+ <h4 style="margin: 0 0 0.5rem 0; font-size: 1rem; font-weight: 600;">Medium</h4>
1233
+ <nr-radio-group
1234
+ type="button"
1235
+ direction="horizontal"
1236
+ size="medium"
1237
+ auto-width
1238
+ value="bold"
1239
+ .options="${[
1240
+ { value: 'bold', label: '', icon: 'bold' },
1241
+ { value: 'italic', label: '', icon: 'italic' },
1242
+ { value: 'underline', label: '', icon: 'underline' },
1243
+ { value: 'strikethrough', label: '', icon: 'strikethrough' }
1244
+ ]}"
1245
+ @change="${action('medium-format-change')}"
1246
+ ></nr-radio-group>
1247
+ </div>
1248
+
1249
+ <div>
1250
+ <h4 style="margin: 0 0 0.5rem 0; font-size: 1rem; font-weight: 600;">Large</h4>
1251
+ <nr-radio-group
1252
+ type="button"
1253
+ direction="horizontal"
1254
+ size="large"
1255
+ auto-width
1256
+ value="bold"
1257
+ .options="${[
1258
+ { value: 'bold', label: '', icon: 'bold' },
1259
+ { value: 'italic', label: '', icon: 'italic' },
1260
+ { value: 'underline', label: '', icon: 'underline' },
1261
+ { value: 'strikethrough', label: '', icon: 'strikethrough' }
1262
+ ]}"
1263
+ @change="${action('large-format-change')}"
1264
+ ></nr-radio-group>
1265
+ </div>
1266
+ </div>
1267
+ </div>
1268
+
1269
+ <!-- Chart Type Selector -->
1270
+ <div>
1271
+ <h3 style="margin: 0 0 1rem 0; font-size: 1.125rem; font-weight: 600;">Chart Type Selector</h3>
1272
+ <p style="margin: 0 0 1rem 0; color: #6f6f6f; font-size: 0.875rem;">
1273
+ Select chart types using visual icons only
1274
+ </p>
1275
+ <nr-radio-group
1276
+ type="button"
1277
+ direction="horizontal"
1278
+ auto-width
1279
+ value="bar-chart"
1280
+ .options="${[
1281
+ { value: 'bar-chart', label: '', icon: 'bar-chart' },
1282
+ { value: 'line-chart', label: '', icon: 'line-chart' },
1283
+ { value: 'pie-chart', label: '', icon: 'pie-chart' },
1284
+ { value: 'area-chart', label: '', icon: 'area-chart' },
1285
+ { value: 'scatter-plot', label: '', icon: 'scatter-plot' }
1286
+ ]}"
1287
+ @change="${action('chart-type-change')}"
1288
+ ></nr-radio-group>
1289
+ </div>
1290
+
1291
+ <!-- Zoom Controls -->
1292
+ <div>
1293
+ <h3 style="margin: 0 0 1rem 0; font-size: 1.125rem; font-weight: 600;">Zoom Controls</h3>
1294
+ <p style="margin: 0 0 1rem 0; color: #6f6f6f; font-size: 0.875rem;">
1295
+ Minimal zoom control buttons with perfect spacing
1296
+ </p>
1297
+ <nr-radio-group
1298
+ type="button"
1299
+ direction="horizontal"
1300
+ auto-width
1301
+ value="100"
1302
+ .options="${[
1303
+ { value: '50', label: '', icon: 'zoom-out' },
1304
+ { value: '100', label: '', icon: 'maximize' },
1305
+ { value: 'fit', label: '', icon: 'maximize-2' },
1306
+ { value: '200', label: '', icon: 'zoom-in' }
1307
+ ]}"
1308
+ @change="${action('zoom-change')}"
1309
+ ></nr-radio-group>
1310
+ </div>
1311
+
1312
+ <!-- Usage Guidelines -->
1313
+ <div style="padding: 2rem; border: 2px solid #dbeafe; border-radius: 8px; background: #eff6ff;">
1314
+ <h3 style="margin: 0 0 1rem 0; color: #1d4ed8; font-weight: 600;">💡 Icon-Only Design Guidelines</h3>
1315
+ <ul style="margin: 0; padding-left: 1.5rem; color: #374151; line-height: 1.6;">
1316
+ <li><strong>Use recognizable icons:</strong> Choose universally understood icons (play, pause, align, etc.)</li>
1317
+ <li><strong>Provide tooltips:</strong> Always include tooltip attributes for accessibility</li>
1318
+ <li><strong>Consistent icon style:</strong> Use icons from the same icon set for visual harmony</li>
1319
+ <li><strong>Appropriate sizing:</strong> Ensure icons are large enough to be easily clickable</li>
1320
+ <li><strong>Context matters:</strong> Icon-only works best in toolbars and repeated UI patterns</li>
1321
+ </ul>
1322
+
1323
+ <h3 style="margin: 2rem 0 1rem 0; color: #1d4ed8; font-weight: 600;">🎯 Best Use Cases</h3>
1324
+ <ul style="margin: 0; padding-left: 1.5rem; color: #374151; line-height: 1.6;">
1325
+ <li><strong>Toolbars:</strong> Text formatting, drawing tools, media controls</li>
1326
+ <li><strong>View switchers:</strong> List/grid views, chart types, layout modes</li>
1327
+ <li><strong>Quick actions:</strong> Save, edit, delete, share, favorite</li>
1328
+ <li><strong>Toggle states:</strong> On/off, enabled/disabled, visible/hidden</li>
1329
+ <li><strong>Navigation:</strong> Previous/next, directional controls</li>
1330
+ </ul>
1331
+ </div>
1332
+ </div>
1333
+ `,
1334
+ };