@cwellt_software/cwellt-reactjs-lib 1.5.4 → 1.5.5

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 (338) hide show
  1. package/dist/index.cjs.js +65 -20
  2. package/dist/index.css +1 -1
  3. package/dist/index.es.js +65 -20
  4. package/dist/src/common/functions/colorManipulation.d.ts.map +1 -1
  5. package/dist/src/common/functions/lazy.d.ts +13 -0
  6. package/dist/src/common/functions/lazy.d.ts.map +1 -0
  7. package/dist/src/common/styles/tokens/ColorContrast.stories.d.ts +11 -0
  8. package/dist/src/common/styles/tokens/ColorContrast.stories.d.ts.map +1 -0
  9. package/dist/src/common/styles/tokens/ColorPalette.stories.d.ts +22 -0
  10. package/dist/src/common/styles/tokens/ColorPalette.stories.d.ts.map +1 -0
  11. package/dist/src/common/styles/tokens/DarkModePreview.stories.d.ts +12 -0
  12. package/dist/src/common/styles/tokens/DarkModePreview.stories.d.ts.map +1 -0
  13. package/dist/src/components/control/action/button/CwButtonSplit.stories.d.ts +24 -0
  14. package/dist/src/components/control/action/button/CwButtonSplit.stories.d.ts.map +1 -0
  15. package/dist/src/components/control/action/button/CwButtonSwitch.stories.d.ts +39 -0
  16. package/dist/src/components/control/action/button/CwButtonSwitch.stories.d.ts.map +1 -0
  17. package/dist/src/components/control/action/contextmenu/CwAnchoredMenu.stories.d.ts +29 -0
  18. package/dist/src/components/control/action/contextmenu/CwAnchoredMenu.stories.d.ts.map +1 -0
  19. package/dist/src/components/control/action/contextmenu/CwContextMenu.stories.d.ts +24 -0
  20. package/dist/src/components/control/action/contextmenu/CwContextMenu.stories.d.ts.map +1 -0
  21. package/dist/src/components/control/action/search/CwSearchAsync.stories.d.ts +103 -0
  22. package/dist/src/components/control/action/search/CwSearchAsync.stories.d.ts.map +1 -0
  23. package/dist/src/components/control/action/search/CwSearchInput.stories.d.ts +452 -0
  24. package/dist/src/components/control/action/search/CwSearchInput.stories.d.ts.map +1 -0
  25. package/dist/src/components/control/choice/checkbox/CwCheck.stories.d.ts +47 -0
  26. package/dist/src/components/control/choice/checkbox/CwCheck.stories.d.ts.map +1 -0
  27. package/dist/src/components/control/choice/checkbox/CwCheckboxGroup.stories.d.ts +102 -0
  28. package/dist/src/components/control/choice/checkbox/CwCheckboxGroup.stories.d.ts.map +1 -0
  29. package/dist/src/components/control/choice/checkbox/CwRadioGroup.stories.d.ts +96 -0
  30. package/dist/src/components/control/choice/checkbox/CwRadioGroup.stories.d.ts.map +1 -0
  31. package/dist/src/components/control/choice/dropdown/CwPopoverButton.stories.d.ts +29 -0
  32. package/dist/src/components/control/choice/dropdown/CwPopoverButton.stories.d.ts.map +1 -0
  33. package/dist/src/components/control/choice/multi-filter/CwMultiFilter.stories.d.ts +53 -0
  34. package/dist/src/components/control/choice/multi-filter/CwMultiFilter.stories.d.ts.map +1 -0
  35. package/dist/src/components/control/choice/nav-menu/CwNavMenu.stories.d.ts +325 -0
  36. package/dist/src/components/control/choice/nav-menu/CwNavMenu.stories.d.ts.map +1 -0
  37. package/dist/src/components/control/choice/select/CwDropdown.stories.d.ts +653 -0
  38. package/dist/src/components/control/choice/select/CwDropdown.stories.d.ts.map +1 -0
  39. package/dist/src/components/control/choice/select/CwSelect.stories.d.ts +657 -0
  40. package/dist/src/components/control/choice/select/CwSelect.stories.d.ts.map +1 -0
  41. package/dist/src/components/control/choice/tag-selector/CwTagSelector.stories.d.ts +132 -0
  42. package/dist/src/components/control/choice/tag-selector/CwTagSelector.stories.d.ts.map +1 -0
  43. package/dist/src/components/control/choice/toggle/CwToggle.stories.d.ts +47 -0
  44. package/dist/src/components/control/choice/toggle/CwToggle.stories.d.ts.map +1 -0
  45. package/dist/src/components/control/choice/tree-view/CwTreeView.stories.d.ts +41 -0
  46. package/dist/src/components/control/choice/tree-view/CwTreeView.stories.d.ts.map +1 -0
  47. package/dist/src/components/control/input/color/CwColorPicker.stories.d.ts +31 -0
  48. package/dist/src/components/control/input/color/CwColorPicker.stories.d.ts.map +1 -0
  49. package/dist/src/components/control/input/color/CwInputColor.stories.d.ts +91 -0
  50. package/dist/src/components/control/input/color/CwInputColor.stories.d.ts.map +1 -0
  51. package/dist/src/components/control/input/digit/CwDigit.stories.d.ts +845 -0
  52. package/dist/src/components/control/input/digit/CwDigit.stories.d.ts.map +1 -0
  53. package/dist/src/components/control/input/file/CwFileUploadMultiple.stories.d.ts +78 -0
  54. package/dist/src/components/control/input/file/CwFileUploadMultiple.stories.d.ts.map +1 -0
  55. package/dist/src/components/control/input/image/CwInputImage.stories.d.ts +38 -0
  56. package/dist/src/components/control/input/image/CwInputImage.stories.d.ts.map +1 -0
  57. package/dist/src/components/control/input/image-area/CwImageArea.stories.d.ts +50 -0
  58. package/dist/src/components/control/input/image-area/CwImageArea.stories.d.ts.map +1 -0
  59. package/dist/src/components/control/input/new-dates/CwDatePicker.stories.d.ts +140 -0
  60. package/dist/src/components/control/input/new-dates/CwDatePicker.stories.d.ts.map +1 -0
  61. package/dist/src/components/control/input/new-dates/CwDateRangePicker.stories.d.ts +160 -0
  62. package/dist/src/components/control/input/new-dates/CwDateRangePicker.stories.d.ts.map +1 -0
  63. package/dist/src/components/control/input/new-dates/CwDateTimePicker.stories.d.ts +150 -0
  64. package/dist/src/components/control/input/new-dates/CwDateTimePicker.stories.d.ts.map +1 -0
  65. package/dist/src/components/control/input/new-dates/CwTimePicker.stories.d.ts +111 -0
  66. package/dist/src/components/control/input/new-dates/CwTimePicker.stories.d.ts.map +1 -0
  67. package/dist/src/components/control/input/phone/CwInputPhone.stories.d.ts +839 -0
  68. package/dist/src/components/control/input/phone/CwInputPhone.stories.d.ts.map +1 -0
  69. package/dist/src/components/control/input/text-area/CwTextArea.stories.d.ts +668 -0
  70. package/dist/src/components/control/input/text-area/CwTextArea.stories.d.ts.map +1 -0
  71. package/dist/src/components/control/input/weekday/CwWeekdaySelector.stories.d.ts +108 -0
  72. package/dist/src/components/control/input/weekday/CwWeekdaySelector.stories.d.ts.map +1 -0
  73. package/dist/src/components/custom/scheduler-new/presentation/Scheduler.stories.d.ts +41 -0
  74. package/dist/src/components/custom/scheduler-new/presentation/Scheduler.stories.d.ts.map +1 -0
  75. package/dist/src/components/custom/scheduler-new/presentation/components/timeline/DivisionLine.d.ts.map +1 -1
  76. package/dist/src/components/custom/scheduler-new/presentation/components/timeline/TimeLine.d.ts.map +1 -1
  77. package/dist/src/components/custom/scheduler-new/presentation/components/timeline/WeekEndLine.d.ts.map +1 -1
  78. package/dist/src/components/custom/scheduler-new/presentation/logic/separateEventsToInnerRows.d.ts +1 -1
  79. package/dist/src/components/custom/scheduler-new/presentation/logic/separateEventsToInnerRows.d.ts.map +1 -1
  80. package/dist/src/components/display/data/table/CwTable.stories.d.ts +59 -0
  81. package/dist/src/components/display/data/table/CwTable.stories.d.ts.map +1 -0
  82. package/dist/src/components/display/data/table-serverside/CwTableServerSide.stories.d.ts +53 -0
  83. package/dist/src/components/display/data/table-serverside/CwTableServerSide.stories.d.ts.map +1 -0
  84. package/dist/src/components/display/data/table_sortable/CwSortableTable.stories.d.ts +45 -0
  85. package/dist/src/components/display/data/table_sortable/CwSortableTable.stories.d.ts.map +1 -0
  86. package/dist/src/components/display/data/tooltip_manager/CwTooltipNew.stories.d.ts +52 -0
  87. package/dist/src/components/display/data/tooltip_manager/CwTooltipNew.stories.d.ts.map +1 -0
  88. package/dist/src/components/display/graphics/icon/CwIcon.stories.d.ts +37 -0
  89. package/dist/src/components/display/graphics/icon/CwIcon.stories.d.ts.map +1 -0
  90. package/dist/src/components/display/graphics/image-gallery/CwImageGallery.stories.d.ts +24 -0
  91. package/dist/src/components/display/graphics/image-gallery/CwImageGallery.stories.d.ts.map +1 -0
  92. package/dist/src/components/display/graphics/image-zoom/CwImageZoom.stories.d.ts +23 -0
  93. package/dist/src/components/display/graphics/image-zoom/CwImageZoom.stories.d.ts.map +1 -0
  94. package/dist/src/components/display/graphics/loading/CwLoading.stories.d.ts +44 -0
  95. package/dist/src/components/display/graphics/loading/CwLoading.stories.d.ts.map +1 -0
  96. package/dist/src/components/display/graphics/progress/CwProgress.stories.d.ts +61 -0
  97. package/dist/src/components/display/graphics/progress/CwProgress.stories.d.ts.map +1 -0
  98. package/dist/src/components/display/graphics/skeleton/CwSkeleton.stories.d.ts +52 -0
  99. package/dist/src/components/display/graphics/skeleton/CwSkeleton.stories.d.ts.map +1 -0
  100. package/dist/src/components/display/text/badge/CwBadge.stories.d.ts +36 -0
  101. package/dist/src/components/display/text/badge/CwBadge.stories.d.ts.map +1 -0
  102. package/dist/src/components/display/text/heading/CwHeading.stories.d.ts +23 -0
  103. package/dist/src/components/display/text/heading/CwHeading.stories.d.ts.map +1 -0
  104. package/dist/src/components/display/text/label/CwLabel.stories.d.ts +31 -0
  105. package/dist/src/components/display/text/label/CwLabel.stories.d.ts.map +1 -0
  106. package/dist/src/components/display/text/message/CwMessage.stories.d.ts +38 -0
  107. package/dist/src/components/display/text/message/CwMessage.stories.d.ts.map +1 -0
  108. package/dist/src/components/layout/card/CwCard.stories.d.ts +75 -0
  109. package/dist/src/components/layout/card/CwCard.stories.d.ts.map +1 -0
  110. package/dist/src/components/layout/card/CwCardList.stories.d.ts +52 -0
  111. package/dist/src/components/layout/card/CwCardList.stories.d.ts.map +1 -0
  112. package/dist/src/components/layout/confirmation-popup/CwConfirmationPopup.stories.d.ts +55 -0
  113. package/dist/src/components/layout/confirmation-popup/CwConfirmationPopup.stories.d.ts.map +1 -0
  114. package/dist/src/components/layout/dialog/CwDialog.stories.d.ts +62 -0
  115. package/dist/src/components/layout/dialog/CwDialog.stories.d.ts.map +1 -0
  116. package/dist/src/components/layout/list/details/CwExpandable.stories.d.ts +35 -0
  117. package/dist/src/components/layout/list/details/CwExpandable.stories.d.ts.map +1 -0
  118. package/dist/src/components/layout/list/key-value/CwKeyValueList.stories.d.ts +84 -0
  119. package/dist/src/components/layout/list/key-value/CwKeyValueList.stories.d.ts.map +1 -0
  120. package/dist/src/components/layout/list/sortable/CwSortableList.stories.d.ts +49 -0
  121. package/dist/src/components/layout/list/sortable/CwSortableList.stories.d.ts.map +1 -0
  122. package/dist/src/components/layout/master-detail/CwMasterDetail.stories.d.ts +71 -0
  123. package/dist/src/components/layout/master-detail/CwMasterDetail.stories.d.ts.map +1 -0
  124. package/dist/src/components/layout/modal/hover/CwModalHover.stories.d.ts +404 -0
  125. package/dist/src/components/layout/modal/hover/CwModalHover.stories.d.ts.map +1 -0
  126. package/dist/src/components/layout/table/grouped/CwTableGrouped.stories.d.ts +31 -0
  127. package/dist/src/components/layout/table/grouped/CwTableGrouped.stories.d.ts.map +1 -0
  128. package/dist/src/components/layout/tabs/CwTabs.stories.d.ts +36 -0
  129. package/dist/src/components/layout/tabs/CwTabs.stories.d.ts.map +1 -0
  130. package/dist/src/content/icons/IconLibrary.stories.d.ts +20 -0
  131. package/dist/src/content/icons/IconLibrary.stories.d.ts.map +1 -0
  132. package/dist/src/storybook/PaletteAndComponentMappingDecorator.d.ts +28 -0
  133. package/dist/src/storybook/PaletteAndComponentMappingDecorator.d.ts.map +1 -0
  134. package/dist/src/storybook/PaletteDecorator.d.ts +12 -0
  135. package/dist/src/storybook/PaletteDecorator.d.ts.map +1 -0
  136. package/dist/src/storybook/StoryValue.d.ts +11 -0
  137. package/dist/src/storybook/StoryValue.d.ts.map +1 -0
  138. package/dist/src/storybook/componentMappings.d.ts +39 -0
  139. package/dist/src/storybook/componentMappings.d.ts.map +1 -0
  140. package/dist/src/storybook/cssVarOverrideStore.d.ts +23 -0
  141. package/dist/src/storybook/cssVarOverrideStore.d.ts.map +1 -0
  142. package/dist/src/storybook/groupLayoutStoryArgs.d.ts +77 -0
  143. package/dist/src/storybook/groupLayoutStoryArgs.d.ts.map +1 -0
  144. package/dist/src/storybook/needsRefactor.d.ts +15 -0
  145. package/dist/src/storybook/needsRefactor.d.ts.map +1 -0
  146. package/dist/src/storybook/palettes.d.ts +35 -0
  147. package/dist/src/storybook/palettes.d.ts.map +1 -0
  148. package/dist/src/storybook/pickerStoryArgs.d.ts +63 -0
  149. package/dist/src/storybook/pickerStoryArgs.d.ts.map +1 -0
  150. package/dist/src/storybook/sampleImages.d.ts +11 -0
  151. package/dist/src/storybook/sampleImages.d.ts.map +1 -0
  152. package/dist/src/storybook/sampleRows.d.ts +12 -0
  153. package/dist/src/storybook/sampleRows.d.ts.map +1 -0
  154. package/dist/src/storybook/storySource.d.ts +1 -1
  155. package/dist/src/storybook/storySource.d.ts.map +1 -1
  156. package/dist/src/storybook/useCssVarOverride.d.ts +17 -0
  157. package/dist/src/storybook/useCssVarOverride.d.ts.map +1 -0
  158. package/dist/test/common/functions/colorManipulation.test.d.ts +2 -0
  159. package/dist/test/common/functions/colorManipulation.test.d.ts.map +1 -0
  160. package/dist/test/components/custom/new-scheduler/presentation/logic/separateEventsToInnerRows.test.d.ts +2 -0
  161. package/dist/test/components/custom/new-scheduler/presentation/logic/separateEventsToInnerRows.test.d.ts.map +1 -0
  162. package/dist/test/storybook/cssVarOverrideStore.test.d.ts +2 -0
  163. package/dist/test/storybook/cssVarOverrideStore.test.d.ts.map +1 -0
  164. package/dist/test/storybook/groupLayoutStoryArgs.test.d.ts +2 -0
  165. package/dist/test/storybook/groupLayoutStoryArgs.test.d.ts.map +1 -0
  166. package/package.json +1 -1
  167. package/dist/deprecated/components/MultiSelect_deprecated_.d.ts +0 -24
  168. package/dist/deprecated/components/MultiSelect_deprecated_.d.ts.map +0 -1
  169. package/dist/deprecated/components/dropdown/CwDropdownContainer.d.ts +0 -17
  170. package/dist/deprecated/components/dropdown/CwDropdownContainer.d.ts.map +0 -1
  171. package/dist/deprecated/components/multiselect/CwHeadFilter.d.ts +0 -17
  172. package/dist/deprecated/components/multiselect/CwHeadFilter.d.ts.map +0 -1
  173. package/dist/deprecated/components/multiselect/CwMultiselect.d.ts +0 -13
  174. package/dist/deprecated/components/multiselect/CwMultiselect.d.ts.map +0 -1
  175. package/dist/deprecated/components/multiselect/CwOptionList.d.ts +0 -14
  176. package/dist/deprecated/components/multiselect/CwOptionList.d.ts.map +0 -1
  177. package/dist/deprecated/components/tag/CwTag.d.ts +0 -15
  178. package/dist/deprecated/components/tag/CwTag.d.ts.map +0 -1
  179. package/dist/playground/main.d.ts +0 -4
  180. package/dist/playground/main.d.ts.map +0 -1
  181. package/dist/src/components/control/action/button/CwButtonBadge.d.ts +0 -63
  182. package/dist/src/components/control/action/button/CwButtonBadge.d.ts.map +0 -1
  183. package/dist/src/components/control/action/button/CwPopoverButton.d.ts +0 -33
  184. package/dist/src/components/control/action/button/CwPopoverButton.d.ts.map +0 -1
  185. package/dist/src/components/control/action/contextual-menu/CwContextualMenu.d.ts +0 -29
  186. package/dist/src/components/control/action/contextual-menu/CwContextualMenu.d.ts.map +0 -1
  187. package/dist/src/components/control/action/search/CwAsyncSearch.d.ts +0 -102
  188. package/dist/src/components/control/action/search/CwAsyncSearch.d.ts.map +0 -1
  189. package/dist/src/components/control/action/tooltip-dialog/CwTooltipDialog.d.ts +0 -19
  190. package/dist/src/components/control/action/tooltip-dialog/CwTooltipDialog.d.ts.map +0 -1
  191. package/dist/src/components/control/choice/deprecated/CwDropdown.d.ts +0 -19
  192. package/dist/src/components/control/choice/deprecated/CwDropdown.d.ts.map +0 -1
  193. package/dist/src/components/control/choice/deprecated/CwDropdownNavigation.d.ts +0 -21
  194. package/dist/src/components/control/choice/deprecated/CwDropdownNavigation.d.ts.map +0 -1
  195. package/dist/src/components/control/choice/deprecated/MultiSelect_deprecated_.d.ts +0 -24
  196. package/dist/src/components/control/choice/deprecated/MultiSelect_deprecated_.d.ts.map +0 -1
  197. package/dist/src/components/control/choice/dropdown/CwDropdown.d.ts +0 -19
  198. package/dist/src/components/control/choice/dropdown/CwDropdown.d.ts.map +0 -1
  199. package/dist/src/components/control/choice/dropdown/CwDropdownContainer.d.ts +0 -17
  200. package/dist/src/components/control/choice/dropdown/CwDropdownContainer.d.ts.map +0 -1
  201. package/dist/src/components/control/choice/dropdown/CwDropdownNavigation.d.ts +0 -21
  202. package/dist/src/components/control/choice/dropdown/CwDropdownNavigation.d.ts.map +0 -1
  203. package/dist/src/components/control/choice/multiselect/CwHeadFilter.d.ts +0 -17
  204. package/dist/src/components/control/choice/multiselect/CwHeadFilter.d.ts.map +0 -1
  205. package/dist/src/components/control/choice/multiselect/CwMultiselect.d.ts +0 -13
  206. package/dist/src/components/control/choice/multiselect/CwMultiselect.d.ts.map +0 -1
  207. package/dist/src/components/control/choice/multiselect/CwOptionList.d.ts +0 -14
  208. package/dist/src/components/control/choice/multiselect/CwOptionList.d.ts.map +0 -1
  209. package/dist/src/components/control/input/new-dates/CwDateTimePicker2.d.ts +0 -47
  210. package/dist/src/components/control/input/new-dates/CwDateTimePicker2.d.ts.map +0 -1
  211. package/dist/src/components/custom/scheduler-temporal/CwSchedulerComp2.d.ts +0 -24
  212. package/dist/src/components/custom/scheduler-temporal/CwSchedulerComp2.d.ts.map +0 -1
  213. package/dist/src/components/custom/scheduler-temporal/CwSuperSchedulerComp.d.ts +0 -86
  214. package/dist/src/components/custom/scheduler-temporal/CwSuperSchedulerComp.d.ts.map +0 -1
  215. package/dist/src/components/custom/scheduler-temporal/components/EventRender.d.ts +0 -10
  216. package/dist/src/components/custom/scheduler-temporal/components/EventRender.d.ts.map +0 -1
  217. package/dist/src/components/custom/scheduler-temporal/components/ResourceListRender.d.ts +0 -20
  218. package/dist/src/components/custom/scheduler-temporal/components/ResourceListRender.d.ts.map +0 -1
  219. package/dist/src/components/custom/scheduler-temporal/components/ResourceRender.d.ts +0 -14
  220. package/dist/src/components/custom/scheduler-temporal/components/ResourceRender.d.ts.map +0 -1
  221. package/dist/src/components/custom/scheduler-temporal/components/day_headers/DayHeader.d.ts +0 -11
  222. package/dist/src/components/custom/scheduler-temporal/components/day_headers/DayHeader.d.ts.map +0 -1
  223. package/dist/src/components/custom/scheduler-temporal/components/day_headers/MonthHeader.d.ts +0 -11
  224. package/dist/src/components/custom/scheduler-temporal/components/day_headers/MonthHeader.d.ts.map +0 -1
  225. package/dist/src/components/custom/scheduler-temporal/components/day_headers/MyDaysHeader.d.ts +0 -13
  226. package/dist/src/components/custom/scheduler-temporal/components/day_headers/MyDaysHeader.d.ts.map +0 -1
  227. package/dist/src/components/custom/scheduler-temporal/components/day_headers/WeekHeader.d.ts +0 -11
  228. package/dist/src/components/custom/scheduler-temporal/components/day_headers/WeekHeader.d.ts.map +0 -1
  229. package/dist/src/components/custom/scheduler-temporal/components/resources_title_list/ResourcesTitleList.d.ts +0 -14
  230. package/dist/src/components/custom/scheduler-temporal/components/resources_title_list/ResourcesTitleList.d.ts.map +0 -1
  231. package/dist/src/components/custom/scheduler-temporal/components/scheduler_content_area/SchedulerContentArea.d.ts +0 -23
  232. package/dist/src/components/custom/scheduler-temporal/components/scheduler_content_area/SchedulerContentArea.d.ts.map +0 -1
  233. package/dist/src/components/custom/scheduler-temporal/components/scheduler_header/SchedulerHeader.d.ts +0 -8
  234. package/dist/src/components/custom/scheduler-temporal/components/scheduler_header/SchedulerHeader.d.ts.map +0 -1
  235. package/dist/src/components/custom/scheduler-temporal/components/scheduler_timeline/SchedulerTimeLine.d.ts +0 -12
  236. package/dist/src/components/custom/scheduler-temporal/components/scheduler_timeline/SchedulerTimeLine.d.ts.map +0 -1
  237. package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeader.d.ts +0 -12
  238. package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeader.d.ts.map +0 -1
  239. package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeaderRow.d.ts +0 -10
  240. package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeaderRow.d.ts.map +0 -1
  241. package/dist/src/components/custom/scheduler-temporal/components/time_line/TimeLine.d.ts +0 -12
  242. package/dist/src/components/custom/scheduler-temporal/components/time_line/TimeLine.d.ts.map +0 -1
  243. package/dist/src/components/custom/scheduler-temporal/logic/dates/addMinutesToDateFromPx.d.ts +0 -2
  244. package/dist/src/components/custom/scheduler-temporal/logic/dates/addMinutesToDateFromPx.d.ts.map +0 -1
  245. package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDates.d.ts +0 -2
  246. package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDates.d.ts.map +0 -1
  247. package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDatesWithoutCeil.d.ts +0 -2
  248. package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDatesWithoutCeil.d.ts.map +0 -1
  249. package/dist/src/components/custom/scheduler-temporal/logic/dates/getFormatedTimeForHeader.d.ts +0 -7
  250. package/dist/src/components/custom/scheduler-temporal/logic/dates/getFormatedTimeForHeader.d.ts.map +0 -1
  251. package/dist/src/components/custom/scheduler-temporal/logic/dates/getMonthHeaderData.d.ts +0 -10
  252. package/dist/src/components/custom/scheduler-temporal/logic/dates/getMonthHeaderData.d.ts.map +0 -1
  253. package/dist/src/components/custom/scheduler-temporal/logic/dates/getUtcToday.d.ts +0 -2
  254. package/dist/src/components/custom/scheduler-temporal/logic/dates/getUtcToday.d.ts.map +0 -1
  255. package/dist/src/components/custom/scheduler-temporal/logic/dates/getWeekHeaderDataFromWeekRange.d.ts +0 -7
  256. package/dist/src/components/custom/scheduler-temporal/logic/dates/getWeekHeaderDataFromWeekRange.d.ts.map +0 -1
  257. package/dist/src/components/custom/scheduler-temporal/logic/dates/listOfDatesToWeeks.d.ts +0 -8
  258. package/dist/src/components/custom/scheduler-temporal/logic/dates/listOfDatesToWeeks.d.ts.map +0 -1
  259. package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisionType.d.ts +0 -2
  260. package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisionType.d.ts.map +0 -1
  261. package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisions.d.ts +0 -2
  262. package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisions.d.ts.map +0 -1
  263. package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterAndProcessResources.d.ts +0 -4
  264. package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterAndProcessResources.d.ts.map +0 -1
  265. package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterEvents.d.ts +0 -3
  266. package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterEvents.d.ts.map +0 -1
  267. package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterResources.d.ts +0 -3
  268. package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterResources.d.ts.map +0 -1
  269. package/dist/src/components/custom/scheduler-temporal/logic/filtering/hasSameProperties.d.ts +0 -3
  270. package/dist/src/components/custom/scheduler-temporal/logic/filtering/hasSameProperties.d.ts.map +0 -1
  271. package/dist/src/components/custom/scheduler-temporal/logic/onDrop/OnDrop.d.ts +0 -13
  272. package/dist/src/components/custom/scheduler-temporal/logic/onDrop/OnDrop.d.ts.map +0 -1
  273. package/dist/src/components/custom/scheduler-temporal/logic/pixels/getHeightLineScheduler.d.ts +0 -2
  274. package/dist/src/components/custom/scheduler-temporal/logic/pixels/getHeightLineScheduler.d.ts.map +0 -1
  275. package/dist/src/components/custom/scheduler-temporal/logic/pixels/getPixelsForEvent.d.ts +0 -7
  276. package/dist/src/components/custom/scheduler-temporal/logic/pixels/getPixelsForEvent.d.ts.map +0 -1
  277. package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightScheduler.d.ts +0 -3
  278. package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightScheduler.d.ts.map +0 -1
  279. package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightSchedulerPinned.d.ts +0 -2
  280. package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightSchedulerPinned.d.ts.map +0 -1
  281. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/doubleClickOnResource.d.ts +0 -4
  282. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/doubleClickOnResource.d.ts.map +0 -1
  283. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handlePropChanges.d.ts +0 -6
  284. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handlePropChanges.d.ts.map +0 -1
  285. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handleResourceChange.d.ts +0 -5
  286. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handleResourceChange.d.ts.map +0 -1
  287. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDragOver.d.ts +0 -2
  288. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDragOver.d.ts.map +0 -1
  289. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDropEventToResource.d.ts +0 -5
  290. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDropEventToResource.d.ts.map +0 -1
  291. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onResizeEvent.d.ts +0 -4
  292. package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onResizeEvent.d.ts.map +0 -1
  293. package/dist/src/components/custom/scheduler-temporal/logic/strings/compareStrings.d.ts +0 -2
  294. package/dist/src/components/custom/scheduler-temporal/logic/strings/compareStrings.d.ts.map +0 -1
  295. package/dist/src/components/custom/scheduler-temporal/logic/strings/getGUID.d.ts +0 -2
  296. package/dist/src/components/custom/scheduler-temporal/logic/strings/getGUID.d.ts.map +0 -1
  297. package/dist/src/components/custom/scheduler-temporal/logic/ui/checkIfSlotAvailable.d.ts +0 -3
  298. package/dist/src/components/custom/scheduler-temporal/logic/ui/checkIfSlotAvailable.d.ts.map +0 -1
  299. package/dist/src/components/custom/scheduler-temporal/logic/ui/getEventsOfResource.d.ts +0 -6
  300. package/dist/src/components/custom/scheduler-temporal/logic/ui/getEventsOfResource.d.ts.map +0 -1
  301. package/dist/src/components/custom/scheduler-temporal/logic/ui/getHasPropsChanged.d.ts +0 -4
  302. package/dist/src/components/custom/scheduler-temporal/logic/ui/getHasPropsChanged.d.ts.map +0 -1
  303. package/dist/src/components/custom/scheduler-temporal/logic/ui/getTimeHeaders.d.ts +0 -2
  304. package/dist/src/components/custom/scheduler-temporal/logic/ui/getTimeHeaders.d.ts.map +0 -1
  305. package/dist/src/components/custom/scheduler-temporal/logic/ui/isAllowedToMove.d.ts +0 -3
  306. package/dist/src/components/custom/scheduler-temporal/logic/ui/isAllowedToMove.d.ts.map +0 -1
  307. package/dist/src/components/custom/scheduler-temporal/logic/ui/shouldTriggerScroll.d.ts +0 -4
  308. package/dist/src/components/custom/scheduler-temporal/logic/ui/shouldTriggerScroll.d.ts.map +0 -1
  309. package/dist/src/components/custom/scheduler-temporal/logic/ui/updateResourceVisibility.d.ts +0 -3
  310. package/dist/src/components/custom/scheduler-temporal/logic/ui/updateResourceVisibility.d.ts.map +0 -1
  311. package/dist/src/components/custom/scheduler-temporal/state/CblDragAndDrop.d.ts +0 -11
  312. package/dist/src/components/custom/scheduler-temporal/state/CblDragAndDrop.d.ts.map +0 -1
  313. package/dist/src/components/custom/scheduler-temporal/state/CwSchedulerProps.d.ts +0 -43
  314. package/dist/src/components/custom/scheduler-temporal/state/CwSchedulerProps.d.ts.map +0 -1
  315. package/dist/src/components/custom/scheduler-temporal/state/Resource.d.ts +0 -14
  316. package/dist/src/components/custom/scheduler-temporal/state/Resource.d.ts.map +0 -1
  317. package/dist/src/components/custom/scheduler-temporal/state/State.d.ts +0 -25
  318. package/dist/src/components/custom/scheduler-temporal/state/State.d.ts.map +0 -1
  319. package/dist/src/components/custom/scheduler-temporal/state/cblEvent.d.ts +0 -18
  320. package/dist/src/components/custom/scheduler-temporal/state/cblEvent.d.ts.map +0 -1
  321. package/dist/src/components/custom/scheduler-temporal/state/cblEventCompProps.d.ts +0 -7
  322. package/dist/src/components/custom/scheduler-temporal/state/cblEventCompProps.d.ts.map +0 -1
  323. package/dist/src/components/custom/scheduler-temporal/state/resourceCompProps2.d.ts +0 -6
  324. package/dist/src/components/custom/scheduler-temporal/state/resourceCompProps2.d.ts.map +0 -1
  325. package/dist/src/components/display/graphics/skeleton/CwSkeletonCard.d.ts +0 -21
  326. package/dist/src/components/display/graphics/skeleton/CwSkeletonCard.d.ts.map +0 -1
  327. package/dist/src/components/display/text/tag/CwTag.d.ts +0 -15
  328. package/dist/src/components/display/text/tag/CwTag.d.ts.map +0 -1
  329. package/dist/src/components/display/text/tooltip/CwTooltip.d.ts +0 -11
  330. package/dist/src/components/display/text/tooltip/CwTooltip.d.ts.map +0 -1
  331. package/dist/src/components/layout/modal/legacy/cw_modal_confirm.d.ts +0 -16
  332. package/dist/src/components/layout/modal/legacy/cw_modal_confirm.d.ts.map +0 -1
  333. package/dist/src/components/layout/modal/legacy/cw_modal_iframe.d.ts +0 -21
  334. package/dist/src/components/layout/modal/legacy/cw_modal_iframe.d.ts.map +0 -1
  335. package/dist/test/components/display/graphics/skeleton/CwSkeletonCard.test.d.ts +0 -2
  336. package/dist/test/components/display/graphics/skeleton/CwSkeletonCard.test.d.ts.map +0 -1
  337. package/dist/test/jest.setup.d.ts +0 -2
  338. package/dist/test/jest.setup.d.ts.map +0 -1
package/dist/index.es.js CHANGED
@@ -93,13 +93,27 @@ function colorToHSL(color) {
93
93
  l: Math.round(l * 100)
94
94
  };
95
95
  }
96
+ const HEX_CACHE_LIMIT = 500;
97
+ const hexCache = new Map();
98
+ let canvasContext = null;
96
99
  function colorToHEX(color) {
97
- const canvas = document.createElement('canvas');
98
- const context = canvas.getContext('2d');
99
- if (!context)
100
- throw new Error('Could not create canvas context');
101
- context.fillStyle = color;
102
- return context.fillStyle;
100
+ const cached = hexCache.get(color);
101
+ if (cached !== undefined)
102
+ return cached;
103
+ if (!canvasContext) {
104
+ canvasContext = document.createElement('canvas').getContext('2d');
105
+ if (!canvasContext)
106
+ throw new Error('Could not create canvas context');
107
+ }
108
+ // A reused context keeps its previous fillStyle when the new color is invalid; reset it to the
109
+ // fresh-canvas default so an invalid color still gives black instead of the last valid color.
110
+ canvasContext.fillStyle = '#000000';
111
+ canvasContext.fillStyle = color;
112
+ const hex = canvasContext.fillStyle;
113
+ if (hexCache.size >= HEX_CACHE_LIMIT)
114
+ hexCache.clear();
115
+ hexCache.set(color, hex);
116
+ return hex;
103
117
  }
104
118
  function getHSLColor(color, alpha = 1) {
105
119
  const hsl = colorToHSL(color);
@@ -8997,18 +9011,16 @@ const getNow$1 = (isUtc) => {
8997
9011
  return now;
8998
9012
  };
8999
9013
  const TimeLine = ({ left, top = "0px", height, color, width = "2px", zIndexNumber = 0, isHeader, isUtc = false }) => {
9000
- const [currentTime, setCurrentTime] = useState(getNow$1(isUtc));
9014
+ const [currentTime, setCurrentTime] = useState(() => getNow$1(isUtc));
9001
9015
  useEffect(() => {
9016
+ if (!isHeader) {
9017
+ return;
9018
+ }
9002
9019
  const interval = setInterval(() => {
9003
9020
  setCurrentTime(getNow$1(isUtc));
9004
- }, 60000); // Actualiza cada minuto
9021
+ }, 60000);
9005
9022
  return () => clearInterval(interval);
9006
- }, [isUtc]);
9007
- const timeString = currentTime.toLocaleTimeString([], {
9008
- hour: '2-digit',
9009
- minute: '2-digit',
9010
- hour12: false
9011
- });
9023
+ }, [isUtc, isHeader]);
9012
9024
  return (jsx("div", { style: {
9013
9025
  position: "absolute",
9014
9026
  top: top,
@@ -9020,7 +9032,11 @@ const TimeLine = ({ left, top = "0px", height, color, width = "2px", zIndexNumbe
9020
9032
  zIndex: zIndexNumber,
9021
9033
  }, className: styles$3["scheduler-timeline-now"], children: isHeader && (jsx("span", { style: {
9022
9034
  color: color,
9023
- }, className: styles$3["scheduler-timeline-label"], children: timeString })) }));
9035
+ }, className: styles$3["scheduler-timeline-label"], children: currentTime.toLocaleTimeString([], {
9036
+ hour: '2-digit',
9037
+ minute: '2-digit',
9038
+ hour12: false
9039
+ }) })) }));
9024
9040
  };
9025
9041
 
9026
9042
  function isToday(startDate, endDate) {
@@ -9215,7 +9231,7 @@ const eventsCollide = (event1, event2) => {
9215
9231
  return eventInsideOther || eventCollideStart || eventCollideEnd;
9216
9232
  };
9217
9233
  // Function to separate events into non-colliding rows
9218
- const separateEventsToInnerRows = (events) => {
9234
+ const computeInnerRows = (events) => {
9219
9235
  const sortedEvents = [...events].sort((a, b) => {
9220
9236
  const aOrder = a.order ?? Number.MAX_SAFE_INTEGER;
9221
9237
  const bOrder = b.order ?? Number.MAX_SAFE_INTEGER;
@@ -9240,15 +9256,44 @@ const separateEventsToInnerRows = (events) => {
9240
9256
  }
9241
9257
  return rows;
9242
9258
  };
9259
+ // The scheduler asks for the same row's lanes several times per repaint (total height, virtual-list
9260
+ // item size, row render). Row event arrays keep their identity until their events change, so the
9261
+ // array itself is the cache key.
9262
+ const innerRowsCache = new WeakMap();
9263
+ const separateEventsToInnerRows = (events) => {
9264
+ const cached = innerRowsCache.get(events);
9265
+ if (cached) {
9266
+ return cached;
9267
+ }
9268
+ const rows = computeInnerRows(events);
9269
+ innerRowsCache.set(events, rows);
9270
+ return rows;
9271
+ };
9243
9272
 
9244
9273
  const DivisionLine = ({ left, top = "0px", height, isDayBoundary }) => {
9245
- const color = isDayBoundary ? "rgba(255,255,255,1)" : "rgba(255,255,255,0.8)";
9246
- const width = isDayBoundary ? "2px" : "1px";
9247
- return (jsx(TimeLine, { color: color, left: left + "%", height: height, width: width, top: top }));
9274
+ return (jsx("div", { style: {
9275
+ position: "absolute",
9276
+ top: top,
9277
+ height: height,
9278
+ left: left + "%",
9279
+ width: isDayBoundary ? "2px" : "1px",
9280
+ background: isDayBoundary ? "rgba(255,255,255,1)" : "rgba(255,255,255,0.8)",
9281
+ pointerEvents: "none",
9282
+ zIndex: 0,
9283
+ } }));
9248
9284
  };
9249
9285
 
9250
9286
  const WeekEndLine = ({ left, top = "0px", height, widthPercentage }) => {
9251
- return (jsx(TimeLine, { color: "rgba(0,0,0,0.05)", left: left + "%", height: height, width: widthPercentage + "%", top: top }));
9287
+ return (jsx("div", { style: {
9288
+ position: "absolute",
9289
+ top: top,
9290
+ height: height,
9291
+ left: left + "%",
9292
+ width: widthPercentage + "%",
9293
+ background: "rgba(0,0,0,0.05)",
9294
+ pointerEvents: "none",
9295
+ zIndex: 0,
9296
+ } }));
9252
9297
  };
9253
9298
 
9254
9299
  var styles$1 = {"scheduler-row-header":"scheduler-row-module__scheduler-row-header__S-iv4"};
@@ -1 +1 @@
1
- {"version":3,"file":"colorManipulation.d.ts","sourceRoot":"","sources":["../../../../src/common/functions/colorManipulation.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GAAG,MAAM,CAAC;AAwCzB,wBAAgB,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAOpD;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,GAAE,MAAU,GAAG,MAAM,CAGxE;AA0BD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CA2C1D"}
1
+ {"version":3,"file":"colorManipulation.d.ts","sourceRoot":"","sources":["../../../../src/common/functions/colorManipulation.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GAAG,MAAM,CAAC;AA4CzB,wBAAgB,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAkBpD;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,GAAE,MAAU,GAAG,MAAM,CAGxE;AA0BD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CA2C1D"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * A value the caller can either hand over directly or describe as a thunk to build on demand.
3
+ *
4
+ * Building React content for every item of a large collection costs memory and CPU even when
5
+ * most of it is never seen: a virtualised scheduler paints a few dozen of its hundreds of rows,
6
+ * and a tooltip only matters while the pointer rests on it. Accepting a thunk lets the caller
7
+ * defer that work to the component that knows whether it is needed, without forcing every
8
+ * existing caller to change - a plain value still works.
9
+ */
10
+ export type Lazy<T> = T | (() => T);
11
+ /** Calls `value` when it is a thunk, otherwise returns it unchanged. */
12
+ export declare function resolveLazy<T>(value: Lazy<T> | undefined): T | undefined;
13
+ //# sourceMappingURL=lazy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../../../src/common/functions/lazy.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,MAAM,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;AAEpC,wEAAwE;AACxE,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,CAAC,GAAG,SAAS,CAExE"}
@@ -0,0 +1,11 @@
1
+ import type { StoryObj } from "@storybook/react-vite";
2
+ declare const meta: {
3
+ title: string;
4
+ parameters: {
5
+ layout: string;
6
+ };
7
+ };
8
+ export default meta;
9
+ type Story = StoryObj<typeof meta>;
10
+ export declare const Contrast: Story;
11
+ //# sourceMappingURL=ColorContrast.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColorContrast.stories.d.ts","sourceRoot":"","sources":["../../../../../src/common/styles/tokens/ColorContrast.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAoW5D,QAAA,MAAM,IAAI;;;;;CAGM,CAAC;AAEjB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,QAAQ,EAAE,KAGtB,CAAC"}
@@ -0,0 +1,22 @@
1
+ import type { StoryObj } from "@storybook/react-vite";
2
+ declare const meta: {
3
+ title: string;
4
+ parameters: {
5
+ layout: string;
6
+ };
7
+ };
8
+ export default meta;
9
+ type Story = StoryObj<typeof meta>;
10
+ /** The old cw-colors.css tokens - now bridge aliases, several changing resolved value on purpose. */
11
+ export declare const OldTokens: Story;
12
+ export declare const Primitives: Story;
13
+ /** themes/cw-theme.css - theme + component-assignment tokens. Light values only; each routes
14
+ * through the old token above it when one exists, so a customer's runtime override still reaches
15
+ * these new consumers. Dark values are stored as comments in the CSS, not shown here. */
16
+ export declare const ThemeTokens: Story;
17
+ /** Also defined in cw-theme.css, alongside the theme tokens above - its own story because it is a
18
+ * distinct layer (3), not a subsection of layer 2. Already shipped in this branch, not a future task. */
19
+ export declare const ComponentAssignments: Story;
20
+ /** Also defined in cw-theme.css. Own story because it renders a shadow, not a color swatch. */
21
+ export declare const ShadowTokens: Story;
22
+ //# sourceMappingURL=ColorPalette.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColorPalette.stories.d.ts","sourceRoot":"","sources":["../../../../../src/common/styles/tokens/ColorPalette.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AA8Y5D,QAAA,MAAM,IAAI;;;;;CAGM,CAAC;AAEjB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAcnC,qGAAqG;AACrG,eAAO,MAAM,SAAS,EAAE,KAYvB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAYxB,CAAC;AAEF;;yFAEyF;AACzF,eAAO,MAAM,WAAW,EAAE,KAYzB,CAAC;AAEF;yGACyG;AACzG,eAAO,MAAM,oBAAoB,EAAE,KAYlC,CAAC;AAOF,+FAA+F;AAC/F,eAAO,MAAM,YAAY,EAAE,KAW1B,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { StoryObj } from "@storybook/react-vite";
2
+ declare const meta: {
3
+ title: string;
4
+ parameters: {
5
+ layout: string;
6
+ };
7
+ tags: string[];
8
+ };
9
+ export default meta;
10
+ type Story = StoryObj<typeof meta>;
11
+ export declare const CwButtonPreview: Story;
12
+ //# sourceMappingURL=DarkModePreview.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DarkModePreview.stories.d.ts","sourceRoot":"","sources":["../../../../../src/common/styles/tokens/DarkModePreview.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AA6N5D,QAAA,MAAM,IAAI;;;;;;CAQM,CAAC;AAEjB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,eAAe,EAAE,KAG7B,CAAC"}
@@ -0,0 +1,24 @@
1
+ import type { StoryObj } from "@storybook/react-vite";
2
+ import { CwButtonSplit, type CwButtonSplitAction } from "./CwButtonSplit";
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof CwButtonSplit;
6
+ args: {
7
+ text: string;
8
+ icon: string;
9
+ actions: CwButtonSplitAction[];
10
+ variant: "solid";
11
+ color: "primary";
12
+ size: "medium";
13
+ disabled: false;
14
+ placement: "bottom-end";
15
+ onClick: import("storybook/test").Mock<(...args: any[]) => any>;
16
+ onSelect: import("storybook/test").Mock<(...args: any[]) => any>;
17
+ };
18
+ };
19
+ export default meta;
20
+ type Story = StoryObj<typeof meta>;
21
+ export declare const Default: Story;
22
+ /** Every variant crossed with every color; open a menu to see the ghost rows take the same color. */
23
+ export declare const Matrix: Story;
24
+ //# sourceMappingURL=CwButtonSplit.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CwButtonSplit.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/action/button/CwButtonSplit.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,aAAa,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAW1E,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;CAe4B,CAAC;AAEvC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,qGAAqG;AACrG,eAAO,MAAM,MAAM,EAAE,KAapB,CAAC"}
@@ -0,0 +1,39 @@
1
+ import type { StoryObj } from "@storybook/react-vite";
2
+ import { CwButtonSwitch, type CwButtonSwitchProps } from "./CwButtonSwitch";
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof CwButtonSwitch;
6
+ args: {
7
+ options: {
8
+ value: string;
9
+ label: string;
10
+ icon: string;
11
+ }[];
12
+ value: string;
13
+ size: "medium";
14
+ color: "primary";
15
+ iconOnly: false;
16
+ direction: "row";
17
+ disabled: false;
18
+ "aria-label": string;
19
+ onChange: import("storybook/test").Mock<(...args: any[]) => any>;
20
+ };
21
+ parameters: {
22
+ docs: {
23
+ source: {
24
+ transform: (_code: string, storyContext: {
25
+ args: Record<string, unknown>;
26
+ }) => string;
27
+ };
28
+ };
29
+ };
30
+ render: (args: CwButtonSwitchProps) => import("react").JSX.Element;
31
+ };
32
+ export default meta;
33
+ type Story = StoryObj<typeof meta>;
34
+ export declare const Default: Story;
35
+ /** Icons only; each option's label becomes the tooltip and the accessible name. */
36
+ export declare const IconOnly: Story;
37
+ /** One segment disabled on its own, independent of the whole control. */
38
+ export declare const DisabledSegment: Story;
39
+ //# sourceMappingURL=CwButtonSwitch.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CwButtonSwitch.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/action/button/CwButtonSwitch.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAI5D,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAsB5E,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB6B,CAAC;AAExC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,mFAAmF;AACnF,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,eAAe,EAAE,KAS7B,CAAC"}
@@ -0,0 +1,29 @@
1
+ import type { StoryObj } from "@storybook/react-vite";
2
+ import { type MenuOption } from "./CwAnchoredMenu";
3
+ declare const meta: {
4
+ title: string;
5
+ component: import("react").FC<import("./CwAnchoredMenu").CwAnchoredMenuProps>;
6
+ args: {
7
+ options: MenuOption[];
8
+ placement: "bottom";
9
+ onSelect: import("storybook/test").Mock<(...args: any[]) => any>;
10
+ onOpenChange: import("storybook/test").Mock<(...args: any[]) => any>;
11
+ onContextMenu: import("storybook/test").Mock<(...args: any[]) => any>;
12
+ };
13
+ argTypes: {
14
+ open: {
15
+ control: false;
16
+ };
17
+ children: {
18
+ control: false;
19
+ };
20
+ };
21
+ render: (args: import("./CwAnchoredMenu").CwAnchoredMenuProps) => import("react").JSX.Element;
22
+ };
23
+ export default meta;
24
+ type Story = StoryObj<typeof meta>;
25
+ /** Anchored to the trigger with an arrow; flips to the opposite side when the viewport runs out. */
26
+ export declare const Default: Story;
27
+ /** Plain strings work too; the string is both label and key. */
28
+ export declare const StringOptions: Story;
29
+ //# sourceMappingURL=CwAnchoredMenu.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CwAnchoredMenu.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/action/contextmenu/CwAnchoredMenu.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAQnE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;CAuB6B,CAAC;AAExC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,oGAAoG;AACpG,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,gEAAgE;AAChE,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAC"}
@@ -0,0 +1,24 @@
1
+ import type { StoryObj } from "@storybook/react-vite";
2
+ declare const meta: {
3
+ title: string;
4
+ component: import("react").FC<import("./CwContextMenu").CwContextMenuProps>;
5
+ args: {
6
+ options: string[];
7
+ offset: {
8
+ x: number;
9
+ y: number;
10
+ };
11
+ onSelect: import("storybook/test").Mock<(...args: any[]) => any>;
12
+ };
13
+ argTypes: {
14
+ children: {
15
+ control: false;
16
+ };
17
+ };
18
+ render: (args: import("./CwContextMenu").CwContextMenuProps) => import("react").JSX.Element;
19
+ };
20
+ export default meta;
21
+ type Story = StoryObj<typeof meta>;
22
+ /** Opens at the pointer on right-click; closes on selection, outside click or Escape. */
23
+ export declare const Default: Story;
24
+ //# sourceMappingURL=CwContextMenu.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CwContextMenu.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/action/contextmenu/CwContextMenu.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAI5D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;CAkB4B,CAAC;AAEvC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,yFAAyF;AACzF,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
@@ -0,0 +1,103 @@
1
+ import type { StoryObj } from "@storybook/react-vite";
2
+ import { type CwSearchAsyncOption, type CwSearchAsyncProps } from "./CwSearchAsync";
3
+ interface Args extends CwSearchAsyncProps {
4
+ /** Story-only: labelProps.text */
5
+ label: string;
6
+ /** Story-only: alignProps.flexDirection */
7
+ direction: "row" | "column";
8
+ }
9
+ declare const meta: {
10
+ title: string;
11
+ component: import("react").FC<CwSearchAsyncProps>;
12
+ args: {
13
+ label: string;
14
+ direction: "row";
15
+ onSearch: (text: string, signal: AbortSignal) => Promise<CwSearchAsyncOption[]>;
16
+ onChange: import("storybook/test").Mock<(...args: any[]) => any>;
17
+ placeholder: string;
18
+ minChars: number;
19
+ debounceMs: number;
20
+ disabled: false;
21
+ required: false;
22
+ width: string;
23
+ };
24
+ argTypes: {
25
+ label: {
26
+ control: "text";
27
+ description: string;
28
+ table: {
29
+ category: string;
30
+ };
31
+ };
32
+ direction: {
33
+ control: "inline-radio";
34
+ options: string[];
35
+ description: string;
36
+ table: {
37
+ category: string;
38
+ };
39
+ };
40
+ labelProps: {
41
+ control: false;
42
+ };
43
+ alignProps: {
44
+ control: false;
45
+ };
46
+ icon: {
47
+ control: false;
48
+ };
49
+ onSearch: {
50
+ control: false;
51
+ };
52
+ onResolveInitial: {
53
+ control: false;
54
+ };
55
+ onResolveSelection: {
56
+ control: false;
57
+ };
58
+ value: {
59
+ control: false;
60
+ };
61
+ searchTrigger: {
62
+ control: false;
63
+ };
64
+ };
65
+ decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
66
+ label: string;
67
+ direction: "row" | "column";
68
+ onSearch: (text: string, signal: AbortSignal) => Promise<CwSearchAsyncOption[]>;
69
+ onChange: (id: CwSearchAsyncOption["id"] | null) => void;
70
+ value?: CwSearchAsyncOption["id"] | undefined;
71
+ onResolveInitial?: ((id: CwSearchAsyncOption["id"], signal: AbortSignal) => Promise<CwSearchAsyncOption>) | undefined;
72
+ onResolveSelection?: ((option: CwSearchAsyncOption, signal: AbortSignal) => Promise<CwSearchAsyncOption>) | undefined;
73
+ icon?: import("../../../display/graphics/icon/CwIcon").CwIconProps | undefined;
74
+ placeholder?: string | undefined;
75
+ minChars?: number | undefined;
76
+ debounceMs?: number | undefined;
77
+ disabled?: boolean | undefined;
78
+ required?: boolean | undefined;
79
+ initialDisplayText?: string | undefined;
80
+ searchTrigger?: number | undefined;
81
+ labelProps?: import("../../../..").CwLabelProps | undefined;
82
+ alignProps?: import("../../../..").CwAlignProps | undefined;
83
+ width?: string | undefined;
84
+ className?: string | undefined;
85
+ }>) => import("react").JSX.Element)[];
86
+ parameters: {
87
+ docs: {
88
+ source: {
89
+ transform: (_code: string, storyContext: {
90
+ args: Record<string, unknown>;
91
+ }) => string;
92
+ };
93
+ };
94
+ };
95
+ render: (args: Args) => import("react").JSX.Element;
96
+ };
97
+ export default meta;
98
+ type Story = StoryObj<typeof meta>;
99
+ /** Debounced `onSearch` with an AbortSignal; two-line rows when an option has a `subLabel`, and `inputLabel` in the field once chosen. */
100
+ export declare const Default: Story;
101
+ /** A preselected `value` is resolved to its display text through `onResolveInitial`. */
102
+ export declare const Preselected: Story;
103
+ //# sourceMappingURL=CwSearchAsync.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CwSearchAsync.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/action/search/CwSearchAsync.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAiB,KAAK,mBAAmB,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAwBnG,UAAU,IAAK,SAAQ,kBAAkB;IACxC,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,SAAS,EAAE,KAAK,GAAG,QAAQ,CAAC;CAC5B;AAUD,QAAA,MAAM,IAAI;;;;;;yBA3BkB,MAAM,UAAU,WAAW,KAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAchF,MAAM;mBAEF,KAAK,GAAG,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CN,CAAC;AAEvB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,0IAA0I;AAC1I,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,wFAAwF;AACxF,eAAO,MAAM,WAAW,EAAE,KAKzB,CAAC"}