@cwellt_software/cwellt-reactjs-lib 1.5.3 → 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.
- package/dist/index.cjs.js +85 -26
- package/dist/index.css +1 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.es.js +85 -26
- package/dist/src/common/functions/colorManipulation.d.ts.map +1 -1
- package/dist/src/common/functions/lazy.d.ts +13 -0
- package/dist/src/common/functions/lazy.d.ts.map +1 -0
- package/dist/src/common/styles/tokens/ColorContrast.stories.d.ts +11 -0
- package/dist/src/common/styles/tokens/ColorContrast.stories.d.ts.map +1 -0
- package/dist/src/common/styles/tokens/ColorPalette.stories.d.ts +22 -0
- package/dist/src/common/styles/tokens/ColorPalette.stories.d.ts.map +1 -0
- package/dist/src/common/styles/tokens/DarkModePreview.stories.d.ts +12 -0
- package/dist/src/common/styles/tokens/DarkModePreview.stories.d.ts.map +1 -0
- package/dist/src/components/control/action/button/CwButton.stories.d.ts +28 -0
- package/dist/src/components/control/action/button/CwButton.stories.d.ts.map +1 -0
- package/dist/src/components/control/action/button/CwButtonSplit.stories.d.ts +24 -0
- package/dist/src/components/control/action/button/CwButtonSplit.stories.d.ts.map +1 -0
- package/dist/src/components/control/action/button/CwButtonSwitch.stories.d.ts +39 -0
- package/dist/src/components/control/action/button/CwButtonSwitch.stories.d.ts.map +1 -0
- package/dist/src/components/control/action/contextmenu/CwAnchoredMenu.stories.d.ts +29 -0
- package/dist/src/components/control/action/contextmenu/CwAnchoredMenu.stories.d.ts.map +1 -0
- package/dist/src/components/control/action/contextmenu/CwContextMenu.stories.d.ts +24 -0
- package/dist/src/components/control/action/contextmenu/CwContextMenu.stories.d.ts.map +1 -0
- package/dist/src/components/control/action/search/CwSearchAsync.stories.d.ts +103 -0
- package/dist/src/components/control/action/search/CwSearchAsync.stories.d.ts.map +1 -0
- package/dist/src/components/control/action/search/CwSearchInput.stories.d.ts +452 -0
- package/dist/src/components/control/action/search/CwSearchInput.stories.d.ts.map +1 -0
- package/dist/src/components/control/choice/checkbox/CwCheck.stories.d.ts +47 -0
- package/dist/src/components/control/choice/checkbox/CwCheck.stories.d.ts.map +1 -0
- package/dist/src/components/control/choice/checkbox/CwCheckboxGroup.stories.d.ts +102 -0
- package/dist/src/components/control/choice/checkbox/CwCheckboxGroup.stories.d.ts.map +1 -0
- package/dist/src/components/control/choice/checkbox/CwRadioGroup.stories.d.ts +96 -0
- package/dist/src/components/control/choice/checkbox/CwRadioGroup.stories.d.ts.map +1 -0
- package/dist/src/components/control/choice/dropdown/CwPopoverButton.stories.d.ts +29 -0
- package/dist/src/components/control/choice/dropdown/CwPopoverButton.stories.d.ts.map +1 -0
- package/dist/src/components/control/choice/multi-filter/CwMultiFilter.d.ts +11 -0
- package/dist/src/components/control/choice/multi-filter/CwMultiFilter.d.ts.map +1 -1
- package/dist/src/components/control/choice/multi-filter/CwMultiFilter.stories.d.ts +53 -0
- package/dist/src/components/control/choice/multi-filter/CwMultiFilter.stories.d.ts.map +1 -0
- package/dist/src/components/control/choice/nav-menu/CwNavMenu.stories.d.ts +325 -0
- package/dist/src/components/control/choice/nav-menu/CwNavMenu.stories.d.ts.map +1 -0
- package/dist/src/components/control/choice/select/CwDropdown.stories.d.ts +653 -0
- package/dist/src/components/control/choice/select/CwDropdown.stories.d.ts.map +1 -0
- package/dist/src/components/control/choice/select/CwSelect.stories.d.ts +657 -0
- package/dist/src/components/control/choice/select/CwSelect.stories.d.ts.map +1 -0
- package/dist/src/components/control/choice/tag-selector/CwTagSelector.stories.d.ts +132 -0
- package/dist/src/components/control/choice/tag-selector/CwTagSelector.stories.d.ts.map +1 -0
- package/dist/src/components/control/choice/toggle/CwToggle.stories.d.ts +47 -0
- package/dist/src/components/control/choice/toggle/CwToggle.stories.d.ts.map +1 -0
- package/dist/src/components/control/choice/tree-view/CwTreeView.stories.d.ts +41 -0
- package/dist/src/components/control/choice/tree-view/CwTreeView.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/color/CwColorPicker.stories.d.ts +31 -0
- package/dist/src/components/control/input/color/CwColorPicker.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/color/CwInputColor.stories.d.ts +91 -0
- package/dist/src/components/control/input/color/CwInputColor.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/digit/CwDigit.stories.d.ts +845 -0
- package/dist/src/components/control/input/digit/CwDigit.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/file/CwFileUploadMultiple.stories.d.ts +78 -0
- package/dist/src/components/control/input/file/CwFileUploadMultiple.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/image/CwInputImage.stories.d.ts +38 -0
- package/dist/src/components/control/input/image/CwInputImage.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/image-area/CwImageArea.stories.d.ts +50 -0
- package/dist/src/components/control/input/image-area/CwImageArea.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/new-dates/CwDatePicker.stories.d.ts +140 -0
- package/dist/src/components/control/input/new-dates/CwDatePicker.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/new-dates/CwDateRangePicker.stories.d.ts +160 -0
- package/dist/src/components/control/input/new-dates/CwDateRangePicker.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/new-dates/CwDateTimePicker.stories.d.ts +150 -0
- package/dist/src/components/control/input/new-dates/CwDateTimePicker.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/new-dates/CwTimePicker.stories.d.ts +111 -0
- package/dist/src/components/control/input/new-dates/CwTimePicker.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/phone/CwInputPhone.stories.d.ts +839 -0
- package/dist/src/components/control/input/phone/CwInputPhone.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/text/CwInputText.stories.d.ts +840 -0
- package/dist/src/components/control/input/text/CwInputText.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/text-area/CwTextArea.stories.d.ts +668 -0
- package/dist/src/components/control/input/text-area/CwTextArea.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/weekday/CwWeekdaySelector.stories.d.ts +108 -0
- package/dist/src/components/control/input/weekday/CwWeekdaySelector.stories.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-new/presentation/Scheduler.stories.d.ts +41 -0
- package/dist/src/components/custom/scheduler-new/presentation/Scheduler.stories.d.ts.map +1 -0
- package/dist/src/components/custom/scheduler-new/presentation/components/timeline/DivisionLine.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/timeline/TimeLine.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/components/timeline/WeekEndLine.d.ts.map +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/logic/separateEventsToInnerRows.d.ts +1 -1
- package/dist/src/components/custom/scheduler-new/presentation/logic/separateEventsToInnerRows.d.ts.map +1 -1
- package/dist/src/components/display/data/table/CwTable.stories.d.ts +59 -0
- package/dist/src/components/display/data/table/CwTable.stories.d.ts.map +1 -0
- package/dist/src/components/display/data/table-serverside/CwTableServerSide.stories.d.ts +53 -0
- package/dist/src/components/display/data/table-serverside/CwTableServerSide.stories.d.ts.map +1 -0
- package/dist/src/components/display/data/table_sortable/CwSortableTable.stories.d.ts +45 -0
- package/dist/src/components/display/data/table_sortable/CwSortableTable.stories.d.ts.map +1 -0
- package/dist/src/components/display/data/tooltip_manager/CwTooltipNew.stories.d.ts +52 -0
- package/dist/src/components/display/data/tooltip_manager/CwTooltipNew.stories.d.ts.map +1 -0
- package/dist/src/components/display/graphics/icon/CwIcon.stories.d.ts +37 -0
- package/dist/src/components/display/graphics/icon/CwIcon.stories.d.ts.map +1 -0
- package/dist/src/components/display/graphics/image-gallery/CwImageGallery.stories.d.ts +24 -0
- package/dist/src/components/display/graphics/image-gallery/CwImageGallery.stories.d.ts.map +1 -0
- package/dist/src/components/display/graphics/image-zoom/CwImageZoom.stories.d.ts +23 -0
- package/dist/src/components/display/graphics/image-zoom/CwImageZoom.stories.d.ts.map +1 -0
- package/dist/src/components/display/graphics/loading/CwLoading.stories.d.ts +44 -0
- package/dist/src/components/display/graphics/loading/CwLoading.stories.d.ts.map +1 -0
- package/dist/src/components/display/graphics/progress/CwProgress.stories.d.ts +61 -0
- package/dist/src/components/display/graphics/progress/CwProgress.stories.d.ts.map +1 -0
- package/dist/src/components/display/graphics/skeleton/CwSkeleton.stories.d.ts +52 -0
- package/dist/src/components/display/graphics/skeleton/CwSkeleton.stories.d.ts.map +1 -0
- package/dist/src/components/display/text/badge/CwBadge.stories.d.ts +36 -0
- package/dist/src/components/display/text/badge/CwBadge.stories.d.ts.map +1 -0
- package/dist/src/components/display/text/heading/CwHeading.stories.d.ts +23 -0
- package/dist/src/components/display/text/heading/CwHeading.stories.d.ts.map +1 -0
- package/dist/src/components/display/text/label/CwLabel.stories.d.ts +31 -0
- package/dist/src/components/display/text/label/CwLabel.stories.d.ts.map +1 -0
- package/dist/src/components/display/text/message/CwMessage.stories.d.ts +38 -0
- package/dist/src/components/display/text/message/CwMessage.stories.d.ts.map +1 -0
- package/dist/src/components/display/text/note/CwNote.stories.d.ts +51 -0
- package/dist/src/components/display/text/note/CwNote.stories.d.ts.map +1 -0
- package/dist/src/components/display/text/tag/CwChip.stories.d.ts +29 -0
- package/dist/src/components/display/text/tag/CwChip.stories.d.ts.map +1 -0
- package/dist/src/components/layout/card/CwCard.stories.d.ts +75 -0
- package/dist/src/components/layout/card/CwCard.stories.d.ts.map +1 -0
- package/dist/src/components/layout/card/CwCardList.stories.d.ts +52 -0
- package/dist/src/components/layout/card/CwCardList.stories.d.ts.map +1 -0
- package/dist/src/components/layout/confirmation-popup/CwConfirmationPopup.stories.d.ts +55 -0
- package/dist/src/components/layout/confirmation-popup/CwConfirmationPopup.stories.d.ts.map +1 -0
- package/dist/src/components/layout/dialog/CwDialog.stories.d.ts +62 -0
- package/dist/src/components/layout/dialog/CwDialog.stories.d.ts.map +1 -0
- package/dist/src/components/layout/list/details/CwExpandable.stories.d.ts +35 -0
- package/dist/src/components/layout/list/details/CwExpandable.stories.d.ts.map +1 -0
- package/dist/src/components/layout/list/key-value/CwKeyValueList.stories.d.ts +84 -0
- package/dist/src/components/layout/list/key-value/CwKeyValueList.stories.d.ts.map +1 -0
- package/dist/src/components/layout/list/sortable/CwSortableList.stories.d.ts +49 -0
- package/dist/src/components/layout/list/sortable/CwSortableList.stories.d.ts.map +1 -0
- package/dist/src/components/layout/master-detail/CwMasterDetail.stories.d.ts +71 -0
- package/dist/src/components/layout/master-detail/CwMasterDetail.stories.d.ts.map +1 -0
- package/dist/src/components/layout/modal/hover/CwModalHover.stories.d.ts +404 -0
- package/dist/src/components/layout/modal/hover/CwModalHover.stories.d.ts.map +1 -0
- package/dist/src/components/layout/table/grouped/CwTableGrouped.stories.d.ts +31 -0
- package/dist/src/components/layout/table/grouped/CwTableGrouped.stories.d.ts.map +1 -0
- package/dist/src/components/layout/tabs/CwTabs.stories.d.ts +36 -0
- package/dist/src/components/layout/tabs/CwTabs.stories.d.ts.map +1 -0
- package/dist/src/content/icons/IconLibrary.stories.d.ts +20 -0
- package/dist/src/content/icons/IconLibrary.stories.d.ts.map +1 -0
- package/dist/src/playground/pages/SelectorsPage.d.ts.map +1 -1
- package/dist/src/storybook/PaletteAndComponentMappingDecorator.d.ts +28 -0
- package/dist/src/storybook/PaletteAndComponentMappingDecorator.d.ts.map +1 -0
- package/dist/src/storybook/PaletteDecorator.d.ts +12 -0
- package/dist/src/storybook/PaletteDecorator.d.ts.map +1 -0
- package/dist/src/storybook/StoryValue.d.ts +11 -0
- package/dist/src/storybook/StoryValue.d.ts.map +1 -0
- package/dist/src/storybook/componentMappings.d.ts +39 -0
- package/dist/src/storybook/componentMappings.d.ts.map +1 -0
- package/dist/src/storybook/cssVarOverrideStore.d.ts +23 -0
- package/dist/src/storybook/cssVarOverrideStore.d.ts.map +1 -0
- package/dist/src/storybook/groupLayoutStoryArgs.d.ts +77 -0
- package/dist/src/storybook/groupLayoutStoryArgs.d.ts.map +1 -0
- package/dist/src/storybook/inputStoryArgs.d.ts +68 -0
- package/dist/src/storybook/inputStoryArgs.d.ts.map +1 -0
- package/dist/src/storybook/layoutStoryArgs.d.ts +60 -0
- package/dist/src/storybook/layoutStoryArgs.d.ts.map +1 -0
- package/dist/src/storybook/needsRefactor.d.ts +15 -0
- package/dist/src/storybook/needsRefactor.d.ts.map +1 -0
- package/dist/src/storybook/palettes.d.ts +35 -0
- package/dist/src/storybook/palettes.d.ts.map +1 -0
- package/dist/src/storybook/pickerStoryArgs.d.ts +63 -0
- package/dist/src/storybook/pickerStoryArgs.d.ts.map +1 -0
- package/dist/src/storybook/sampleImages.d.ts +11 -0
- package/dist/src/storybook/sampleImages.d.ts.map +1 -0
- package/dist/src/storybook/sampleRows.d.ts +12 -0
- package/dist/src/storybook/sampleRows.d.ts.map +1 -0
- package/dist/src/storybook/storySource.d.ts +22 -0
- package/dist/src/storybook/storySource.d.ts.map +1 -0
- package/dist/src/storybook/useCssVarOverride.d.ts +17 -0
- package/dist/src/storybook/useCssVarOverride.d.ts.map +1 -0
- package/dist/test/common/functions/colorManipulation.test.d.ts +2 -0
- package/dist/test/common/functions/colorManipulation.test.d.ts.map +1 -0
- package/dist/test/components/custom/new-scheduler/presentation/logic/separateEventsToInnerRows.test.d.ts +2 -0
- package/dist/test/components/custom/new-scheduler/presentation/logic/separateEventsToInnerRows.test.d.ts.map +1 -0
- package/dist/test/storybook/cssVarOverrideStore.test.d.ts +2 -0
- package/dist/test/storybook/cssVarOverrideStore.test.d.ts.map +1 -0
- package/dist/test/storybook/groupLayoutStoryArgs.test.d.ts +2 -0
- package/dist/test/storybook/groupLayoutStoryArgs.test.d.ts.map +1 -0
- package/dist/test/storybook/inputStoryArgs.test.d.ts +2 -0
- package/dist/test/storybook/inputStoryArgs.test.d.ts.map +1 -0
- package/dist/test/storybook/layoutStoryArgs.test.d.ts +2 -0
- package/dist/test/storybook/layoutStoryArgs.test.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/deprecated/components/MultiSelect_deprecated_.d.ts +0 -24
- package/dist/deprecated/components/MultiSelect_deprecated_.d.ts.map +0 -1
- package/dist/deprecated/components/dropdown/CwDropdownContainer.d.ts +0 -17
- package/dist/deprecated/components/dropdown/CwDropdownContainer.d.ts.map +0 -1
- package/dist/deprecated/components/multiselect/CwHeadFilter.d.ts +0 -17
- package/dist/deprecated/components/multiselect/CwHeadFilter.d.ts.map +0 -1
- package/dist/deprecated/components/multiselect/CwMultiselect.d.ts +0 -13
- package/dist/deprecated/components/multiselect/CwMultiselect.d.ts.map +0 -1
- package/dist/deprecated/components/multiselect/CwOptionList.d.ts +0 -14
- package/dist/deprecated/components/multiselect/CwOptionList.d.ts.map +0 -1
- package/dist/deprecated/components/tag/CwTag.d.ts +0 -15
- package/dist/deprecated/components/tag/CwTag.d.ts.map +0 -1
- package/dist/playground/main.d.ts +0 -4
- package/dist/playground/main.d.ts.map +0 -1
- package/dist/src/components/control/action/button/CwButtonBadge.d.ts +0 -63
- package/dist/src/components/control/action/button/CwButtonBadge.d.ts.map +0 -1
- package/dist/src/components/control/action/button/CwPopoverButton.d.ts +0 -33
- package/dist/src/components/control/action/button/CwPopoverButton.d.ts.map +0 -1
- package/dist/src/components/control/action/contextual-menu/CwContextualMenu.d.ts +0 -29
- package/dist/src/components/control/action/contextual-menu/CwContextualMenu.d.ts.map +0 -1
- package/dist/src/components/control/action/search/CwAsyncSearch.d.ts +0 -102
- package/dist/src/components/control/action/search/CwAsyncSearch.d.ts.map +0 -1
- package/dist/src/components/control/action/tooltip-dialog/CwTooltipDialog.d.ts +0 -19
- package/dist/src/components/control/action/tooltip-dialog/CwTooltipDialog.d.ts.map +0 -1
- package/dist/src/components/control/choice/deprecated/CwDropdown.d.ts +0 -19
- package/dist/src/components/control/choice/deprecated/CwDropdown.d.ts.map +0 -1
- package/dist/src/components/control/choice/deprecated/CwDropdownNavigation.d.ts +0 -21
- package/dist/src/components/control/choice/deprecated/CwDropdownNavigation.d.ts.map +0 -1
- package/dist/src/components/control/choice/deprecated/MultiSelect_deprecated_.d.ts +0 -24
- package/dist/src/components/control/choice/deprecated/MultiSelect_deprecated_.d.ts.map +0 -1
- package/dist/src/components/control/choice/dropdown/CwDropdown.d.ts +0 -19
- package/dist/src/components/control/choice/dropdown/CwDropdown.d.ts.map +0 -1
- package/dist/src/components/control/choice/dropdown/CwDropdownContainer.d.ts +0 -17
- package/dist/src/components/control/choice/dropdown/CwDropdownContainer.d.ts.map +0 -1
- package/dist/src/components/control/choice/dropdown/CwDropdownNavigation.d.ts +0 -21
- package/dist/src/components/control/choice/dropdown/CwDropdownNavigation.d.ts.map +0 -1
- package/dist/src/components/control/choice/multiselect/CwHeadFilter.d.ts +0 -17
- package/dist/src/components/control/choice/multiselect/CwHeadFilter.d.ts.map +0 -1
- package/dist/src/components/control/choice/multiselect/CwMultiselect.d.ts +0 -13
- package/dist/src/components/control/choice/multiselect/CwMultiselect.d.ts.map +0 -1
- package/dist/src/components/control/choice/multiselect/CwOptionList.d.ts +0 -14
- package/dist/src/components/control/choice/multiselect/CwOptionList.d.ts.map +0 -1
- package/dist/src/components/control/input/new-dates/CwDateTimePicker2.d.ts +0 -47
- package/dist/src/components/control/input/new-dates/CwDateTimePicker2.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/CwSchedulerComp2.d.ts +0 -24
- package/dist/src/components/custom/scheduler-temporal/CwSchedulerComp2.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/CwSuperSchedulerComp.d.ts +0 -86
- package/dist/src/components/custom/scheduler-temporal/CwSuperSchedulerComp.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/EventRender.d.ts +0 -10
- package/dist/src/components/custom/scheduler-temporal/components/EventRender.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/ResourceListRender.d.ts +0 -20
- package/dist/src/components/custom/scheduler-temporal/components/ResourceListRender.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/ResourceRender.d.ts +0 -14
- package/dist/src/components/custom/scheduler-temporal/components/ResourceRender.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/DayHeader.d.ts +0 -11
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/DayHeader.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/MonthHeader.d.ts +0 -11
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/MonthHeader.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/MyDaysHeader.d.ts +0 -13
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/MyDaysHeader.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/WeekHeader.d.ts +0 -11
- package/dist/src/components/custom/scheduler-temporal/components/day_headers/WeekHeader.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/resources_title_list/ResourcesTitleList.d.ts +0 -14
- package/dist/src/components/custom/scheduler-temporal/components/resources_title_list/ResourcesTitleList.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_content_area/SchedulerContentArea.d.ts +0 -23
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_content_area/SchedulerContentArea.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_header/SchedulerHeader.d.ts +0 -8
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_header/SchedulerHeader.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_timeline/SchedulerTimeLine.d.ts +0 -12
- package/dist/src/components/custom/scheduler-temporal/components/scheduler_timeline/SchedulerTimeLine.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeader.d.ts +0 -12
- package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeader.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeaderRow.d.ts +0 -10
- package/dist/src/components/custom/scheduler-temporal/components/time_headers/TimeHeaderRow.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/components/time_line/TimeLine.d.ts +0 -12
- package/dist/src/components/custom/scheduler-temporal/components/time_line/TimeLine.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/dates/addMinutesToDateFromPx.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/dates/addMinutesToDateFromPx.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDates.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDates.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDatesWithoutCeil.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/dates/daysBetweenTwoDatesWithoutCeil.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getFormatedTimeForHeader.d.ts +0 -7
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getFormatedTimeForHeader.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getMonthHeaderData.d.ts +0 -10
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getMonthHeaderData.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getUtcToday.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getUtcToday.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getWeekHeaderDataFromWeekRange.d.ts +0 -7
- package/dist/src/components/custom/scheduler-temporal/logic/dates/getWeekHeaderDataFromWeekRange.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/dates/listOfDatesToWeeks.d.ts +0 -8
- package/dist/src/components/custom/scheduler-temporal/logic/dates/listOfDatesToWeeks.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisionType.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisionType.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisions.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/divisions/calculateDivisions.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterAndProcessResources.d.ts +0 -4
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterAndProcessResources.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterEvents.d.ts +0 -3
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterEvents.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterResources.d.ts +0 -3
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/filterResources.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/hasSameProperties.d.ts +0 -3
- package/dist/src/components/custom/scheduler-temporal/logic/filtering/hasSameProperties.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/onDrop/OnDrop.d.ts +0 -13
- package/dist/src/components/custom/scheduler-temporal/logic/onDrop/OnDrop.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/getHeightLineScheduler.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/getHeightLineScheduler.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/getPixelsForEvent.d.ts +0 -7
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/getPixelsForEvent.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightScheduler.d.ts +0 -3
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightScheduler.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightSchedulerPinned.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/pixels/heightSchedulerPinned.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/doubleClickOnResource.d.ts +0 -4
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/doubleClickOnResource.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handlePropChanges.d.ts +0 -6
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handlePropChanges.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handleResourceChange.d.ts +0 -5
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/handleResourceChange.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDragOver.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDragOver.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDropEventToResource.d.ts +0 -5
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onDropEventToResource.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onResizeEvent.d.ts +0 -4
- package/dist/src/components/custom/scheduler-temporal/logic/state_handle/onResizeEvent.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/strings/compareStrings.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/strings/compareStrings.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/strings/getGUID.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/strings/getGUID.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/ui/checkIfSlotAvailable.d.ts +0 -3
- package/dist/src/components/custom/scheduler-temporal/logic/ui/checkIfSlotAvailable.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getEventsOfResource.d.ts +0 -6
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getEventsOfResource.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getHasPropsChanged.d.ts +0 -4
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getHasPropsChanged.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getTimeHeaders.d.ts +0 -2
- package/dist/src/components/custom/scheduler-temporal/logic/ui/getTimeHeaders.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/ui/isAllowedToMove.d.ts +0 -3
- package/dist/src/components/custom/scheduler-temporal/logic/ui/isAllowedToMove.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/ui/shouldTriggerScroll.d.ts +0 -4
- package/dist/src/components/custom/scheduler-temporal/logic/ui/shouldTriggerScroll.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/logic/ui/updateResourceVisibility.d.ts +0 -3
- package/dist/src/components/custom/scheduler-temporal/logic/ui/updateResourceVisibility.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/state/CblDragAndDrop.d.ts +0 -11
- package/dist/src/components/custom/scheduler-temporal/state/CblDragAndDrop.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/state/CwSchedulerProps.d.ts +0 -43
- package/dist/src/components/custom/scheduler-temporal/state/CwSchedulerProps.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/state/Resource.d.ts +0 -14
- package/dist/src/components/custom/scheduler-temporal/state/Resource.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/state/State.d.ts +0 -25
- package/dist/src/components/custom/scheduler-temporal/state/State.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/state/cblEvent.d.ts +0 -18
- package/dist/src/components/custom/scheduler-temporal/state/cblEvent.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/state/cblEventCompProps.d.ts +0 -7
- package/dist/src/components/custom/scheduler-temporal/state/cblEventCompProps.d.ts.map +0 -1
- package/dist/src/components/custom/scheduler-temporal/state/resourceCompProps2.d.ts +0 -6
- package/dist/src/components/custom/scheduler-temporal/state/resourceCompProps2.d.ts.map +0 -1
- package/dist/src/components/display/graphics/skeleton/CwSkeletonCard.d.ts +0 -21
- package/dist/src/components/display/graphics/skeleton/CwSkeletonCard.d.ts.map +0 -1
- package/dist/src/components/display/text/tag/CwTag.d.ts +0 -15
- package/dist/src/components/display/text/tag/CwTag.d.ts.map +0 -1
- package/dist/src/components/display/text/tooltip/CwTooltip.d.ts +0 -11
- package/dist/src/components/display/text/tooltip/CwTooltip.d.ts.map +0 -1
- package/dist/src/components/layout/modal/legacy/cw_modal_confirm.d.ts +0 -16
- package/dist/src/components/layout/modal/legacy/cw_modal_confirm.d.ts.map +0 -1
- package/dist/src/components/layout/modal/legacy/cw_modal_iframe.d.ts +0 -21
- package/dist/src/components/layout/modal/legacy/cw_modal_iframe.d.ts.map +0 -1
- package/dist/test/components/display/graphics/skeleton/CwSkeletonCard.test.d.ts +0 -2
- package/dist/test/components/display/graphics/skeleton/CwSkeletonCard.test.d.ts.map +0 -1
- package/dist/test/jest.setup.d.ts +0 -2
- package/dist/test/jest.setup.d.ts.map +0 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { type CwTableGroupedData, type CwTableGroupedProps } from "./CwTableGrouped";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").FC<CwTableGroupedProps>;
|
|
6
|
+
args: {
|
|
7
|
+
tableData: CwTableGroupedData;
|
|
8
|
+
};
|
|
9
|
+
argTypes: {
|
|
10
|
+
tableData: {
|
|
11
|
+
control: false;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
parameters: {
|
|
15
|
+
docs: {
|
|
16
|
+
description: {
|
|
17
|
+
component: string;
|
|
18
|
+
};
|
|
19
|
+
story: {
|
|
20
|
+
inline: boolean;
|
|
21
|
+
height: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
decorators: import("@storybook/react").Decorator[];
|
|
26
|
+
};
|
|
27
|
+
export default meta;
|
|
28
|
+
type Story = StoryObj<typeof meta>;
|
|
29
|
+
/** One collapsed row per group; click it to expand its rows. The first row of an open group carries a soft inset shadow. */
|
|
30
|
+
export declare const Default: Story;
|
|
31
|
+
//# sourceMappingURL=CwTableGrouped.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwTableGrouped.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layout/table/grouped/CwTableGrouped.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAkB,KAAK,kBAAkB,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AA6BrG,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;CAiB2B,CAAC;AAEtC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,4HAA4H;AAC5H,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { CwTabs, type Tab } from "./CwTabs";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof CwTabs;
|
|
6
|
+
args: {
|
|
7
|
+
tabs: Tab[];
|
|
8
|
+
defaultActiveKey: string;
|
|
9
|
+
tabsPosition: "top";
|
|
10
|
+
onTabClick: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
11
|
+
};
|
|
12
|
+
argTypes: {
|
|
13
|
+
tabs: {
|
|
14
|
+
control: false;
|
|
15
|
+
};
|
|
16
|
+
tabsPosition: {
|
|
17
|
+
control: "inline-radio";
|
|
18
|
+
options: string[];
|
|
19
|
+
};
|
|
20
|
+
tabsListWidth: {
|
|
21
|
+
control: "text";
|
|
22
|
+
};
|
|
23
|
+
contentHeight: {
|
|
24
|
+
control: "text";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export default meta;
|
|
29
|
+
type Story = StoryObj<typeof meta>;
|
|
30
|
+
/** Icons, a counter badge and a colored attention badge on the tab titles; the active tab carries the primary underline. */
|
|
31
|
+
export declare const Default: Story;
|
|
32
|
+
/** `tabsPosition="left"` puts the list in a column; `tabsListWidth` fixes its width. */
|
|
33
|
+
export declare const Left: Story;
|
|
34
|
+
/** A tab whose content is another CwTabs: the inner list loses its own background and gets a bottom border. */
|
|
35
|
+
export declare const Nested: Story;
|
|
36
|
+
//# sourceMappingURL=CwTabs.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwTabs.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/tabs/CwTabs.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,MAAM,EAAoB,KAAK,GAAG,EAAE,MAAM,UAAU,CAAC;AAS9D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;CAemB,CAAC;AAE9B,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,4HAA4H;AAC5H,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,wFAAwF;AACxF,eAAO,MAAM,IAAI,EAAE,KAElB,CAAC;AAEF,+GAA+G;AAC/G,eAAO,MAAM,MAAM,EAAE,KAYpB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
/**
|
|
3
|
+
* The same page the playground shows, mounted here so the catalogue is browsable next to the
|
|
4
|
+
* component docs: every glyph of the icon font, grouped by category, searchable by name or
|
|
5
|
+
* codepoint, with style variants cross-linked. Click a card to copy its id in the selected format.
|
|
6
|
+
*/
|
|
7
|
+
declare const meta: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: import("react").FC<{}>;
|
|
10
|
+
parameters: {
|
|
11
|
+
layout: string;
|
|
12
|
+
controls: {
|
|
13
|
+
disable: boolean;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
type Story = StoryObj<typeof meta>;
|
|
19
|
+
export declare const All: Story;
|
|
20
|
+
//# sourceMappingURL=IconLibrary.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconLibrary.stories.d.ts","sourceRoot":"","sources":["../../../../src/content/icons/IconLibrary.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D;;;;GAIG;AACH,QAAA,MAAM,IAAI;;;;;;;;;CAI8B,CAAC;AAEzC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,GAAG,EAAE,KAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectorsPage.d.ts","sourceRoot":"","sources":["../../../../src/playground/pages/SelectorsPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAiIxC,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"SelectorsPage.d.ts","sourceRoot":"","sources":["../../../../src/playground/pages/SelectorsPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAiIxC,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAogBjC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Decorator } from "@storybook/react-vite";
|
|
2
|
+
/**
|
|
3
|
+
* Applies the toolbar-selected palette AND the toolbar-selected component mapping as ONE merged set of
|
|
4
|
+
* custom-property overrides on `document.documentElement`, through a single `useCssVarOverride` call
|
|
5
|
+
* (see that file for the "wrapper element wouldn't reach it" / `useLayoutEffect` ordering reasoning).
|
|
6
|
+
*
|
|
7
|
+
* This replaces two previously independent decorators (`withPalette` + `withComponentMapping`), each
|
|
8
|
+
* calling `useCssVarOverride` on its own slice of overrides. That let one decorator's cleanup - which
|
|
9
|
+
* runs whenever ITS OWN global changes - `removeProperty` a css var that the OTHER decorator's
|
|
10
|
+
* still-active selection was also currently setting, and since the other decorator's effect never
|
|
11
|
+
* re-ran (its own global hadn't changed), the var was left however the first decorator's reapply left
|
|
12
|
+
* it. Concretely: with palette HLV and component mapping SecondaryLed both selected, switching the
|
|
13
|
+
* palette to TJS ran only the palette effect's cleanup + reapply; SecondaryLed's overrides on shared
|
|
14
|
+
* keys (e.g. `--cw-icon-content`) were silently dropped from the canvas until the mapping toolbar was
|
|
15
|
+
* re-toggled, even though SecondaryLed was still selected.
|
|
16
|
+
*
|
|
17
|
+
* Fix: read both `palette` and `componentMapping` globals here, merge them into one
|
|
18
|
+
* `Record<string, string>`, and apply that merged object through ONE effect. Any change to either
|
|
19
|
+
* toolbar recomputes and reapplies the full correct merged state, and the effect's cleanup only ever
|
|
20
|
+
* removes keys that belonged to the previous merged state - never a key a still-active selection needs.
|
|
21
|
+
*
|
|
22
|
+
* Precedence (later spread wins on key collision):
|
|
23
|
+
* 1. Palette primitives (`palette.overrides`)
|
|
24
|
+
* 2. Palette-bundled component overrides (`palette.componentOverrides`)
|
|
25
|
+
* 3. Explicit Component Mapping toolbar overrides (`componentMapping.overrides`)
|
|
26
|
+
*/
|
|
27
|
+
export declare const withPaletteAndComponentMapping: Decorator;
|
|
28
|
+
//# sourceMappingURL=PaletteAndComponentMappingDecorator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaletteAndComponentMappingDecorator.d.ts","sourceRoot":"","sources":["../../../src/storybook/PaletteAndComponentMappingDecorator.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAKvD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,8BAA8B,EAAE,SAmB5C,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Decorator } from "@storybook/react-vite";
|
|
2
|
+
/**
|
|
3
|
+
* Applies the toolbar-selected palette as one set of custom-property overrides on
|
|
4
|
+
* `document.documentElement`, through a single `useCssVarOverride` call (see that file for the
|
|
5
|
+
* "wrapper element wouldn't reach it" / `useLayoutEffect` ordering reasoning).
|
|
6
|
+
*
|
|
7
|
+
* A palette carries its primitives and, optionally, its own component re-assignments
|
|
8
|
+
* (`componentOverrides`); the latter win on a key collision. There is no separate component-mapping
|
|
9
|
+
* toolbar: which family a component reads is each palette's decision.
|
|
10
|
+
*/
|
|
11
|
+
export declare const withPalette: Decorator;
|
|
12
|
+
//# sourceMappingURL=PaletteDecorator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaletteDecorator.d.ts","sourceRoot":"","sources":["../../../src/storybook/PaletteDecorator.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAIvD;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,EAAE,SAYzB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* One quiet line under a story's component showing what the component handed back: the picked
|
|
4
|
+
* date, the selected days, the chosen files. The Actions panel logs the same, but this is what a
|
|
5
|
+
* designer or a consumer actually looks at.
|
|
6
|
+
*/
|
|
7
|
+
export declare function StoryValue({ label, children }: {
|
|
8
|
+
label?: string;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=StoryValue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StoryValue.d.ts","sourceRoot":"","sources":["../../../src/storybook/StoryValue.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EAAE,KAAe,EAAE,QAAQ,EAAE,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAMhG"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Example component-assignment remaps for the Storybook "Component Mapping" toolbar - a dev/QA tool
|
|
3
|
+
* to eyeball what icons, solid/outline buttons and table headers/row-selected states would look like
|
|
4
|
+
* if they were assigned to a different semantic family, before locking the assignment in Figma.
|
|
5
|
+
*
|
|
6
|
+
* These override the LAYER-3 tokens in cw-theme.css (the "# Component assignments" section) - the
|
|
7
|
+
* layer components actually consume (CwIcon, CwButton, CwTable). Unlike the "Palette" toolbar (which
|
|
8
|
+
* overrides layer-1 primitives and cascades upward through every layer), this tool stays scoped to
|
|
9
|
+
* layer 3, so it previews a re-mapping of which family a component reads without touching what any
|
|
10
|
+
* family's colors are.
|
|
11
|
+
*
|
|
12
|
+
* Values here point at real existing tokens (layer 1, 2 or 3), never invented ones - per project
|
|
13
|
+
* convention, library stories stay domain-neutral (no real client names, no real client colors).
|
|
14
|
+
*
|
|
15
|
+
* ⚠️ The layer-3 vars alone (--cw-icon-content, --cw-button-solid-*, ...) have zero consumers today -
|
|
16
|
+
* cw-button.css / the generic `button` rule in cw-elements.css still read the OLD bridge tokens
|
|
17
|
+
* (--cw-color-icons, --cw-color-icons-variant, --cw-color-button-background/-content/-hover-*)
|
|
18
|
+
* directly, not through their new layer-3 successor (verified by grepping src/ for
|
|
19
|
+
* `var(--cw-icon-content` etc: no hits). So each mapping below also overrides the matching OLD token,
|
|
20
|
+
* which is what actually renders - the layer-3 override stays too, so this keeps working once
|
|
21
|
+
* CwIcon/CwButton are migrated to consume the new names directly (the "consumption flip").
|
|
22
|
+
* `--cw-button-outline-content` now has a real consumer: .cw-button-outline in cw-button.css reads it
|
|
23
|
+
* directly (its non-hover/rest-state color), so that mapping below is live, not aspirational -
|
|
24
|
+
* overriding the old shared bridge token (--cw-color-primary-variant) directly would still recolor
|
|
25
|
+
* everything else on the primary family (toggle, loading, pickers, file-upload, ...), which is exactly
|
|
26
|
+
* why the button now reads its own layer-3 token instead. `--cw-button-outline-hover-content` and the
|
|
27
|
+
* table header/row-selected pair are still layer-3-only: the hover state and CwTable hardcode
|
|
28
|
+
* surface-container/primary-container literally (0 consumers of those tokens, old or new) - see
|
|
29
|
+
* the comments in cw-colors.css/cw-theme.css. Both stay ready for their own future consumption flip.
|
|
30
|
+
*/
|
|
31
|
+
export type ComponentMappingOverrides = Record<string, string>;
|
|
32
|
+
export interface NamedComponentMapping {
|
|
33
|
+
label: string;
|
|
34
|
+
overrides: ComponentMappingOverrides;
|
|
35
|
+
}
|
|
36
|
+
/** Keyed by the Storybook toolbar item id. "Default" is cw-theme.css as shipped - no overrides. */
|
|
37
|
+
export declare const STORYBOOK_COMPONENT_MAPPINGS: Record<string, NamedComponentMapping>;
|
|
38
|
+
export declare const DEFAULT_COMPONENT_MAPPING_KEY = "Default";
|
|
39
|
+
//# sourceMappingURL=componentMappings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"componentMappings.d.ts","sourceRoot":"","sources":["../../../src/storybook/componentMappings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE/D,MAAM,WAAW,qBAAqB;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,yBAAyB,CAAC;CACrC;AAkDD,mGAAmG;AACnG,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAI9E,CAAC;AAEF,eAAO,MAAM,6BAA6B,YAAY,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared bookkeeping behind useCssVarOverride. Several instances run at once on a docs page
|
|
3
|
+
* (autodocs renders every story of the component, each with its own decorator), all writing the same
|
|
4
|
+
* root variables. The original inline value of a variable is therefore captured once, by the first
|
|
5
|
+
* holder that touches it, and restored once, by the last holder that lets go of it. An instance that
|
|
6
|
+
* captured "what was there" after a sibling had already applied the palette would otherwise restore
|
|
7
|
+
* that sibling's palette on cleanup, and switching back to Default would keep showing it.
|
|
8
|
+
*/
|
|
9
|
+
/** The slice of CSSStyleDeclaration the store needs; a plain object works in tests. */
|
|
10
|
+
export interface StyleTarget {
|
|
11
|
+
getPropertyValue(name: string): string;
|
|
12
|
+
getPropertyPriority(name: string): string;
|
|
13
|
+
setProperty(name: string, value: string, priority?: string): void;
|
|
14
|
+
removeProperty(name: string): void;
|
|
15
|
+
}
|
|
16
|
+
export declare function createCssVarOverrideStore(): {
|
|
17
|
+
apply: (style: StyleTarget, overrides: Record<string, string>) => () => void;
|
|
18
|
+
};
|
|
19
|
+
/** The one store every decorator instance on the page shares. */
|
|
20
|
+
export declare const cssVarOverrideStore: {
|
|
21
|
+
apply: (style: StyleTarget, overrides: Record<string, string>) => () => void;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=cssVarOverrideStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cssVarOverrideStore.d.ts","sourceRoot":"","sources":["../../../src/storybook/cssVarOverrideStore.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,uFAAuF;AACvF,MAAM,WAAW,WAAW;IAC3B,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACvC,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1C,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClE,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAQD,wBAAgB,yBAAyB;mBAIlB,WAAW,aAAa,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAG,MAAM,IAAI;EA+BjF;AAED,iEAAiE;AACjE,eAAO,MAAM,mBAAmB;mBAlCT,WAAW,aAAa,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAG,MAAM,IAAI;CAkCpB,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flat story controls for the group components (CwRadioGroup, CwCheckboxGroup): the two nested
|
|
3
|
+
* layout axes of CwGroupLayoutProps (`groupLayout` = label vs options block, `itemLayout` = flow
|
|
4
|
+
* of the options), plus the label and feedback objects they share. Same idea as layoutStoryArgs
|
|
5
|
+
* and inputStoryArgs: one control per meaningful field, the real object props stay in the docs
|
|
6
|
+
* table without a control, and the snippet shows the real props. Reuse from a group story:
|
|
7
|
+
*
|
|
8
|
+
* args: { ...groupStoryDefaults, options: [...] },
|
|
9
|
+
* argTypes: { ...groupStoryArgTypesFor({ group: {...}, item: {...} }), ...hiddenGroupPropControls },
|
|
10
|
+
* render: (args) => <CwSomethingGroup {...toGroupProps(args)} />,
|
|
11
|
+
* parameters: groupStorySource("CwSomethingGroup"),
|
|
12
|
+
*/
|
|
13
|
+
import type { ArgTypes } from "@storybook/react-vite";
|
|
14
|
+
import type { CwInputFeedback } from "../common/interfaces/CwFormTypes";
|
|
15
|
+
import type { CwGroupLayoutProps, CwLayoutProps } from "../common/interfaces/CwLayoutProps";
|
|
16
|
+
import type { CwLabelProps } from "../components/display/text/label/CwLabel";
|
|
17
|
+
declare const DEFAULT = "default";
|
|
18
|
+
type Direction = NonNullable<CwLayoutProps["direction"]>;
|
|
19
|
+
type Align = NonNullable<CwLayoutProps["align"]>;
|
|
20
|
+
type Gap = NonNullable<CwLayoutProps["gap"]>;
|
|
21
|
+
declare const FEEDBACK_TYPES: readonly ["none", "danger", "warning", "success", "info", "neutral"];
|
|
22
|
+
export interface GroupStoryArgs {
|
|
23
|
+
groupDirection: typeof DEFAULT | Direction;
|
|
24
|
+
groupAlign: typeof DEFAULT | Align;
|
|
25
|
+
groupGap: typeof DEFAULT | Gap;
|
|
26
|
+
itemDirection: typeof DEFAULT | Direction;
|
|
27
|
+
itemGap: typeof DEFAULT | Gap;
|
|
28
|
+
labelText: string;
|
|
29
|
+
feedbackType: (typeof FEEDBACK_TYPES)[number];
|
|
30
|
+
feedbackMessage: string;
|
|
31
|
+
}
|
|
32
|
+
export declare const groupStoryDefaults: GroupStoryArgs;
|
|
33
|
+
/** The values each axis really styles; a field left out gets no control. */
|
|
34
|
+
export interface SupportedGroupLayout {
|
|
35
|
+
group?: {
|
|
36
|
+
direction?: readonly Direction[];
|
|
37
|
+
align?: readonly Align[];
|
|
38
|
+
gap?: readonly Gap[];
|
|
39
|
+
};
|
|
40
|
+
item?: {
|
|
41
|
+
direction?: readonly Direction[];
|
|
42
|
+
gap?: readonly Gap[];
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export declare function groupStoryArgTypesFor(supported: SupportedGroupLayout): ArgTypes<GroupStoryArgs>;
|
|
46
|
+
/** The real object props keep their row in the docs table but get no control of their own. */
|
|
47
|
+
export declare const hiddenGroupPropControls: {
|
|
48
|
+
groupLayout: {
|
|
49
|
+
control: false;
|
|
50
|
+
};
|
|
51
|
+
itemLayout: {
|
|
52
|
+
control: false;
|
|
53
|
+
};
|
|
54
|
+
labelProps: {
|
|
55
|
+
control: false;
|
|
56
|
+
};
|
|
57
|
+
feedback: {
|
|
58
|
+
control: false;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export interface GroupObjectProps extends CwGroupLayoutProps {
|
|
62
|
+
labelProps: CwLabelProps | undefined;
|
|
63
|
+
feedback: CwInputFeedback | undefined;
|
|
64
|
+
}
|
|
65
|
+
/** Translates the flat story args into the component's object props and drops the flat keys. */
|
|
66
|
+
export declare function toGroupProps<T extends Partial<GroupStoryArgs>>(args: T): Omit<T, keyof GroupStoryArgs> & GroupObjectProps;
|
|
67
|
+
export declare function groupStorySource(componentName: string, componentDefaults?: Record<string, unknown>): {
|
|
68
|
+
docs: {
|
|
69
|
+
source: {
|
|
70
|
+
transform: (_code: string, storyContext: {
|
|
71
|
+
args: Record<string, unknown>;
|
|
72
|
+
}) => string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
export {};
|
|
77
|
+
//# sourceMappingURL=groupLayoutStoryArgs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"groupLayoutStoryArgs.d.ts","sourceRoot":"","sources":["../../../src/storybook/groupLayoutStoryArgs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAC5F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAG7E,QAAA,MAAM,OAAO,YAAY,CAAC;AAC1B,KAAK,SAAS,GAAG,WAAW,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC;AACzD,KAAK,KAAK,GAAG,WAAW,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC;AACjD,KAAK,GAAG,GAAG,WAAW,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;AAC7C,QAAA,MAAM,cAAc,sEAAuE,CAAC;AAE5F,MAAM,WAAW,cAAc;IAC9B,cAAc,EAAE,OAAO,OAAO,GAAG,SAAS,CAAC;IAC3C,UAAU,EAAE,OAAO,OAAO,GAAG,KAAK,CAAC;IACnC,QAAQ,EAAE,OAAO,OAAO,GAAG,GAAG,CAAC;IAC/B,aAAa,EAAE,OAAO,OAAO,GAAG,SAAS,CAAC;IAC1C,OAAO,EAAE,OAAO,OAAO,GAAG,GAAG,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;IAC9C,eAAe,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,kBAAkB,EAAE,cAShC,CAAC;AAOF,4EAA4E;AAC5E,MAAM,WAAW,oBAAoB;IACpC,KAAK,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,SAAS,SAAS,EAAE,CAAC;QAAC,KAAK,CAAC,EAAE,SAAS,KAAK,EAAE,CAAC;QAAC,GAAG,CAAC,EAAE,SAAS,GAAG,EAAE,CAAA;KAAE,CAAC;IAC7F,IAAI,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,SAAS,SAAS,EAAE,CAAC;QAAC,GAAG,CAAC,EAAE,SAAS,GAAG,EAAE,CAAA;KAAE,CAAC;CAClE;AAED,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,oBAAoB,GAAG,QAAQ,CAAC,cAAc,CAAC,CAiB/F;AAED,8FAA8F;AAC9F,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;CAKhB,CAAC;AAErB,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB;IAC3D,UAAU,EAAE,YAAY,GAAG,SAAS,CAAC;IACrC,QAAQ,EAAE,eAAe,GAAG,SAAS,CAAC;CACtC;AAOD,gGAAgG;AAChG,wBAAgB,YAAY,CAAC,CAAC,SAAS,OAAO,CAAC,cAAc,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,MAAM,cAAc,CAAC,GAAG,gBAAgB,CAYzH;AAED,wBAAgB,gBAAgB,CAAC,aAAa,EAAE,MAAM,EAAE,iBAAiB,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM;;;;;;;;EAEtG"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flat, self-explanatory story controls for the object props every input shares
|
|
3
|
+
* (alignProps, labelProps, feedback, buttonProps), and the translation back to the real props.
|
|
4
|
+
*
|
|
5
|
+
* Storybook's object editor shows keys but neither the valid values nor what they do, so the stories
|
|
6
|
+
* expose one control per meaningful field instead and hide the raw object props from the controls
|
|
7
|
+
* (they stay in the docs table with their real type). Reuse from any input story:
|
|
8
|
+
*
|
|
9
|
+
* args: { ...inputStoryDefaults, placeholder: "..." },
|
|
10
|
+
* argTypes: { ...inputStoryArgTypes, ...hiddenObjectPropControls },
|
|
11
|
+
* render: (args) => <CwSomething {...toInputProps(args)} />
|
|
12
|
+
*/
|
|
13
|
+
import type { ArgTypes } from "@storybook/react-vite";
|
|
14
|
+
import type { CwInputFeedback } from "../common/interfaces/CwFormTypes";
|
|
15
|
+
import type { CwButtonProps } from "../components/control/action/button/CwButton";
|
|
16
|
+
import type { CwLabelProps } from "../components/display/text/label/CwLabel";
|
|
17
|
+
import type { CwAlignProps } from "../components/layout/align/CwAlign";
|
|
18
|
+
export declare const LABEL_WIDTHS: readonly ["6rem", "7rem", "8rem", "9rem", "10rem", "12rem", "15rem"];
|
|
19
|
+
declare const FEEDBACK_TYPES: readonly ["none", "danger", "warning", "success", "info", "neutral"];
|
|
20
|
+
declare const ALIGN_ITEMS: readonly ["stretch", "center", "flex-start", "flex-end"];
|
|
21
|
+
export interface InputStoryArgs {
|
|
22
|
+
direction: "row" | "column";
|
|
23
|
+
alignItems: (typeof ALIGN_ITEMS)[number];
|
|
24
|
+
labelText: string;
|
|
25
|
+
labelWidth: (typeof LABEL_WIDTHS)[number];
|
|
26
|
+
feedbackType: (typeof FEEDBACK_TYPES)[number];
|
|
27
|
+
feedbackMessage: string;
|
|
28
|
+
button: "none" | "text" | "icon";
|
|
29
|
+
buttonVariant: "solid" | "outline" | "ghost";
|
|
30
|
+
buttonColor: "primary" | "danger" | "neutral";
|
|
31
|
+
}
|
|
32
|
+
export declare const inputStoryDefaults: InputStoryArgs;
|
|
33
|
+
export declare const inputStoryArgTypes: ArgTypes<InputStoryArgs>;
|
|
34
|
+
/** The real object props keep their row in the docs table but get no control of their own. */
|
|
35
|
+
export declare const hiddenObjectPropControls: {
|
|
36
|
+
alignProps: {
|
|
37
|
+
control: false;
|
|
38
|
+
};
|
|
39
|
+
labelProps: {
|
|
40
|
+
control: false;
|
|
41
|
+
};
|
|
42
|
+
feedback: {
|
|
43
|
+
control: false;
|
|
44
|
+
};
|
|
45
|
+
buttonProps: {
|
|
46
|
+
control: false;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export interface InputObjectProps {
|
|
50
|
+
alignProps: CwAlignProps | undefined;
|
|
51
|
+
labelProps: CwLabelProps | undefined;
|
|
52
|
+
feedback: CwInputFeedback | undefined;
|
|
53
|
+
buttonProps: CwButtonProps | undefined;
|
|
54
|
+
}
|
|
55
|
+
/** Docs "Show code" / Code panel: the real props, minus the component defaults (see storySource). */
|
|
56
|
+
export declare function inputStorySource(componentName: string, componentDefaults?: Record<string, unknown>): {
|
|
57
|
+
docs: {
|
|
58
|
+
source: {
|
|
59
|
+
transform: (_code: string, storyContext: {
|
|
60
|
+
args: Record<string, unknown>;
|
|
61
|
+
}) => string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
/** Translates the flat story args into the component's object props and drops the flat keys. */
|
|
66
|
+
export declare function toInputProps<T extends Partial<InputStoryArgs>>(args: T): Omit<T, keyof InputStoryArgs> & InputObjectProps;
|
|
67
|
+
export {};
|
|
68
|
+
//# sourceMappingURL=inputStoryArgs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inputStoryArgs.d.ts","sourceRoot":"","sources":["../../../src/storybook/inputStoryArgs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAClF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAGvE,eAAO,MAAM,YAAY,sEAAuE,CAAC;AACjG,QAAA,MAAM,cAAc,sEAAuE,CAAC;AAC5F,QAAA,MAAM,WAAW,0DAA2D,CAAC;AAE7E,MAAM,WAAW,cAAc;IAC9B,SAAS,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC5B,UAAU,EAAE,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;IAC1C,YAAY,EAAE,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;IAC9C,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACjC,aAAa,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;IAC7C,WAAW,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;CAC9C;AAED,eAAO,MAAM,kBAAkB,EAAE,cAUhC,CAAC;AAOF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,cAAc,CAUvD,CAAC;AAEF,8FAA8F;AAC9F,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;CAKjB,CAAC;AAErB,MAAM,WAAW,gBAAgB;IAChC,UAAU,EAAE,YAAY,GAAG,SAAS,CAAC;IACrC,UAAU,EAAE,YAAY,GAAG,SAAS,CAAC;IACrC,QAAQ,EAAE,eAAe,GAAG,SAAS,CAAC;IACtC,WAAW,EAAE,aAAa,GAAG,SAAS,CAAC;CACvC;AAED,qGAAqG;AACrG,wBAAgB,gBAAgB,CAAC,aAAa,EAAE,MAAM,EAAE,iBAAiB,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM;;;;;;;;EAEtG;AAED,gGAAgG;AAChG,wBAAgB,YAAY,CAAC,CAAC,SAAS,OAAO,CAAC,cAAc,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,MAAM,cAAc,CAAC,GAAG,gBAAgB,CAwBzH"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flat story controls for the `layout` prop (CwLayoutProps) shared by CwNote, CwCard, CwRadioGroup,
|
|
3
|
+
* CwCheckboxGroup, CwKeyValueList..., and the translation back to the object. "default" means the
|
|
4
|
+
* field is not set, so the component keeps its own behaviour. Reuse from any story:
|
|
5
|
+
*
|
|
6
|
+
* args: { ...layoutStoryDefaults, ... },
|
|
7
|
+
* argTypes: { ...layoutStoryArgTypes, ...hiddenLayoutPropControls },
|
|
8
|
+
* render: (args) => <CwSomething {...toLayoutProps(args)} />,
|
|
9
|
+
* parameters: layoutStorySource("CwSomething"),
|
|
10
|
+
*/
|
|
11
|
+
import type { ArgTypes } from "@storybook/react-vite";
|
|
12
|
+
import type { CwLayoutProps } from "../common/interfaces/CwLayoutProps";
|
|
13
|
+
declare const DEFAULT = "default";
|
|
14
|
+
declare const DIRECTIONS: readonly ["default", "row", "column"];
|
|
15
|
+
declare const ALIGNS: readonly ["default", "start", "center", "end", "stretch"];
|
|
16
|
+
declare const JUSTIFIES: readonly ["default", "start", "center", "end", "between", "around"];
|
|
17
|
+
declare const GAPS: readonly ["default", "none", "small", "medium", "large"];
|
|
18
|
+
export interface LayoutStoryArgs {
|
|
19
|
+
layoutDirection: (typeof DIRECTIONS)[number];
|
|
20
|
+
layoutAlign: (typeof ALIGNS)[number];
|
|
21
|
+
layoutJustify: (typeof JUSTIFIES)[number];
|
|
22
|
+
layoutGap: (typeof GAPS)[number];
|
|
23
|
+
}
|
|
24
|
+
export declare const layoutStoryDefaults: LayoutStoryArgs;
|
|
25
|
+
/** The values a component actually styles, per layout field. A field left out gets no control (not supported yet). */
|
|
26
|
+
export interface SupportedLayout {
|
|
27
|
+
direction?: readonly Exclude<(typeof DIRECTIONS)[number], typeof DEFAULT>[];
|
|
28
|
+
align?: readonly Exclude<(typeof ALIGNS)[number], typeof DEFAULT>[];
|
|
29
|
+
justify?: readonly Exclude<(typeof JUSTIFIES)[number], typeof DEFAULT>[];
|
|
30
|
+
gap?: readonly Exclude<(typeof GAPS)[number], typeof DEFAULT>[];
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Controls for the layout fields the component styles. CwLayoutProps declares more than most
|
|
34
|
+
* components implement (CwNote has no `justify`, no `align: stretch`), and a radio that does
|
|
35
|
+
* nothing is worse than no radio: pass what the component's css handles.
|
|
36
|
+
*/
|
|
37
|
+
export declare function layoutStoryArgTypesFor(supported: SupportedLayout): ArgTypes<LayoutStoryArgs>;
|
|
38
|
+
/** Every field with every value, for a component that implements CwLayoutProps in full. */
|
|
39
|
+
export declare const layoutStoryArgTypes: ArgTypes<LayoutStoryArgs>;
|
|
40
|
+
/** The real `layout` prop keeps its row in the docs table but gets no control of its own. */
|
|
41
|
+
export declare const hiddenLayoutPropControls: {
|
|
42
|
+
layout: {
|
|
43
|
+
control: false;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
/** Translates the flat story args into `layout` (undefined when every field is left at default) and drops the flat keys. */
|
|
47
|
+
export declare function toLayoutProps<T extends Partial<LayoutStoryArgs>>(args: T): Omit<T, keyof LayoutStoryArgs> & {
|
|
48
|
+
layout: CwLayoutProps | undefined;
|
|
49
|
+
};
|
|
50
|
+
export declare function layoutStorySource(componentName: string, componentDefaults?: Record<string, unknown>): {
|
|
51
|
+
docs: {
|
|
52
|
+
source: {
|
|
53
|
+
transform: (_code: string, storyContext: {
|
|
54
|
+
args: Record<string, unknown>;
|
|
55
|
+
}) => string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export {};
|
|
60
|
+
//# sourceMappingURL=layoutStoryArgs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layoutStoryArgs.d.ts","sourceRoot":"","sources":["../../../src/storybook/layoutStoryArgs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAGxE,QAAA,MAAM,OAAO,YAAY,CAAC;AAC1B,QAAA,MAAM,UAAU,uCAAsC,CAAC;AACvD,QAAA,MAAM,MAAM,2DAA0D,CAAC;AACvE,QAAA,MAAM,SAAS,qEAAoE,CAAC;AACpF,QAAA,MAAM,IAAI,0DAAyD,CAAC;AAEpE,MAAM,WAAW,eAAe;IAC/B,eAAe,EAAE,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;IAC7C,WAAW,EAAE,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;IACrC,aAAa,EAAE,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IAC1C,SAAS,EAAE,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC;CACjC;AAED,eAAO,MAAM,mBAAmB,EAAE,eAKjC,CAAC;AAIF,sHAAsH;AACtH,MAAM,WAAW,eAAe;IAC/B,SAAS,CAAC,EAAE,SAAS,OAAO,CAAC,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,OAAO,CAAC,EAAE,CAAC;IAC5E,KAAK,CAAC,EAAE,SAAS,OAAO,CAAC,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,OAAO,CAAC,EAAE,CAAC;IACpE,OAAO,CAAC,EAAE,SAAS,OAAO,CAAC,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,OAAO,CAAC,EAAE,CAAC;IACzE,GAAG,CAAC,EAAE,SAAS,OAAO,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,OAAO,CAAC,EAAE,CAAC;CAChE;AASD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,eAAe,GAAG,QAAQ,CAAC,eAAe,CAAC,CAW5F;AAED,2FAA2F;AAC3F,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,eAAe,CAAuC,CAAC;AAElG,6FAA6F;AAC7F,eAAO,MAAM,wBAAwB;;;;CAEjB,CAAC;AAErB,4HAA4H;AAC5H,wBAAgB,aAAa,CAAC,CAAC,SAAS,OAAO,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,MAAM,eAAe,CAAC,GAAG;IAAE,MAAM,EAAE,aAAa,GAAG,SAAS,CAAA;CAAE,CAYjJ;AAED,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,MAAM,EAAE,iBAAiB,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM;;;;;;;;EAEvG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Decorator } from "@storybook/react-vite";
|
|
2
|
+
/**
|
|
3
|
+
* For a component that still ships but should not be picked for new code. The decorator paints a
|
|
4
|
+
* solid warning note above every story (canvas and docs); the docs description leads with the same
|
|
5
|
+
* line, the component's own summary follows.
|
|
6
|
+
*/
|
|
7
|
+
export declare const withNeedsRefactorNote: Decorator;
|
|
8
|
+
export declare function needsRefactorDocs(summary: string): {
|
|
9
|
+
docs: {
|
|
10
|
+
description: {
|
|
11
|
+
component: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=needsRefactor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"needsRefactor.d.ts","sourceRoot":"","sources":["../../../src/storybook/needsRefactor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAKvD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,SAKnC,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM;;;;;;EAQhD"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Example palettes for the Storybook "Palette" toolbar - a dev/QA tool to eyeball contrast and the
|
|
3
|
+
* dark-mode preview against non-default brand colors before deciding on real per-client values.
|
|
4
|
+
*
|
|
5
|
+
* These override the PRIMITIVE tokens (--cw-color-{family}-{step} in cw-palette.css), the layer a
|
|
6
|
+
* customer's brand colors actually replace. The old --cw-color-* tokens in cw-colors.css are bridge
|
|
7
|
+
* aliases that read the primitives via var() (e.g. --cw-color-primary: var(--cw-color-primary-main)),
|
|
8
|
+
* and the theme/component tokens in cw-theme.css route through those old tokens in turn - so
|
|
9
|
+
* overriding the primitives cascades upward through all three layers from one place.
|
|
10
|
+
*
|
|
11
|
+
* The neutral scale's translucent primitives (--cw-color-neutral-090-25/-15) are color-mix()
|
|
12
|
+
* derivatives of --cw-color-neutral-090, so overriding -090 alone already cascades into them -
|
|
13
|
+
* no separate override entries needed for the translucent variants.
|
|
14
|
+
*
|
|
15
|
+
* Values here are invented placeholders, not real client colors - per project convention, library
|
|
16
|
+
* stories stay domain-neutral (no real client names, no real client colors).
|
|
17
|
+
*/
|
|
18
|
+
export type PaletteOverrides = Record<string, string>;
|
|
19
|
+
/** Layer-3 component-assignment tokens a palette re-points, by token name. */
|
|
20
|
+
export type ComponentOverrides = Record<string, string>;
|
|
21
|
+
export interface NamedPalette {
|
|
22
|
+
label: string;
|
|
23
|
+
overrides: PaletteOverrides;
|
|
24
|
+
/**
|
|
25
|
+
* Layer-3 component-assignment overrides bundled with this palette - applied automatically whenever
|
|
26
|
+
* the palette is selected, on top of `overrides`, so a client's brand doesn't just recolor the
|
|
27
|
+
* primitives but also carries its own icon/button re-assignment. Which family a component reads is
|
|
28
|
+
* each palette's decision; there is no generic mapping.
|
|
29
|
+
*/
|
|
30
|
+
componentOverrides?: ComponentOverrides;
|
|
31
|
+
}
|
|
32
|
+
/** Keyed by the Storybook toolbar item id. "Default" is the library's own palette - no overrides. */
|
|
33
|
+
export declare const STORYBOOK_PALETTES: Record<string, NamedPalette>;
|
|
34
|
+
export declare const DEFAULT_PALETTE_KEY = "Default";
|
|
35
|
+
//# sourceMappingURL=palettes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"palettes.d.ts","sourceRoot":"","sources":["../../../src/storybook/palettes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEtD,8EAA8E;AAC9E,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAExD,MAAM,WAAW,YAAY;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,gBAAgB,CAAC;IAC5B;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACxC;AA6LD,qGAAqG;AACrG,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAK3D,CAAC;AAEF,eAAO,MAAM,mBAAmB,YAAY,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flat story controls shared by the date and time pickers: label and layout (they take labelProps
|
|
3
|
+
* and alignProps but no button), plus the translation back to the real props. Feedback is only on
|
|
4
|
+
* the single-date pickers, so each story decides whether to expose it.
|
|
5
|
+
*/
|
|
6
|
+
import type { ArgTypes } from "@storybook/react-vite";
|
|
7
|
+
import type { CwInputFeedback } from "../common/interfaces/CwFormTypes";
|
|
8
|
+
import type { CwLabelProps } from "../components/display/text/label/CwLabel";
|
|
9
|
+
import type { CwAlignProps } from "../components/layout/align/CwAlign";
|
|
10
|
+
import { LABEL_WIDTHS } from "./inputStoryArgs";
|
|
11
|
+
declare const FEEDBACK_TYPES: readonly ["none", "danger", "warning", "success", "info", "neutral"];
|
|
12
|
+
export interface PickerStoryArgs {
|
|
13
|
+
direction: "row" | "column";
|
|
14
|
+
labelText: string;
|
|
15
|
+
labelWidth: (typeof LABEL_WIDTHS)[number];
|
|
16
|
+
feedbackType: (typeof FEEDBACK_TYPES)[number];
|
|
17
|
+
feedbackMessage: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const pickerStoryDefaults: PickerStoryArgs;
|
|
20
|
+
export declare const pickerStoryArgTypes: ArgTypes<PickerStoryArgs>;
|
|
21
|
+
/** For pickers without a `feedback` prop. */
|
|
22
|
+
export declare const hiddenFeedbackControls: {
|
|
23
|
+
feedbackType: {
|
|
24
|
+
table: {
|
|
25
|
+
disable: true;
|
|
26
|
+
};
|
|
27
|
+
control: false;
|
|
28
|
+
};
|
|
29
|
+
feedbackMessage: {
|
|
30
|
+
table: {
|
|
31
|
+
disable: true;
|
|
32
|
+
};
|
|
33
|
+
control: false;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export declare const hiddenPickerPropControls: {
|
|
37
|
+
alignProps: {
|
|
38
|
+
control: false;
|
|
39
|
+
};
|
|
40
|
+
labelProps: {
|
|
41
|
+
control: false;
|
|
42
|
+
};
|
|
43
|
+
feedback: {
|
|
44
|
+
control: false;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export interface PickerObjectProps {
|
|
48
|
+
alignProps: CwAlignProps | undefined;
|
|
49
|
+
labelProps: CwLabelProps | undefined;
|
|
50
|
+
feedback: CwInputFeedback | undefined;
|
|
51
|
+
}
|
|
52
|
+
export declare function toPickerProps<T extends Partial<PickerStoryArgs>>(args: T): Omit<T, keyof PickerStoryArgs> & PickerObjectProps;
|
|
53
|
+
export declare function pickerStorySource(componentName: string, componentDefaults?: Record<string, unknown>): {
|
|
54
|
+
docs: {
|
|
55
|
+
source: {
|
|
56
|
+
transform: (_code: string, storyContext: {
|
|
57
|
+
args: Record<string, unknown>;
|
|
58
|
+
}) => string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export {};
|
|
63
|
+
//# sourceMappingURL=pickerStoryArgs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pickerStoryArgs.d.ts","sourceRoot":"","sources":["../../../src/storybook/pickerStoryArgs.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGhD,QAAA,MAAM,cAAc,sEAAuE,CAAC;AAE5F,MAAM,WAAW,eAAe;IAC/B,SAAS,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;IAC1C,YAAY,EAAE,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;IAC9C,eAAe,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,mBAAmB,EAAE,eAMjC,CAAC;AAMF,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,eAAe,CAMzD,CAAC;AAEF,6CAA6C;AAC7C,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;CAGf,CAAC;AAErB,eAAO,MAAM,wBAAwB;;;;;;;;;;CAIjB,CAAC;AAErB,MAAM,WAAW,iBAAiB;IACjC,UAAU,EAAE,YAAY,GAAG,SAAS,CAAC;IACrC,UAAU,EAAE,YAAY,GAAG,SAAS,CAAC;IACrC,QAAQ,EAAE,eAAe,GAAG,SAAS,CAAC;CACtC;AAED,wBAAgB,aAAa,CAAC,CAAC,SAAS,OAAO,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,MAAM,eAAe,CAAC,GAAG,iBAAiB,CAQ7H;AAED,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,MAAM,EAAE,iBAAiB,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM;;;;;;;;EAEvG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated placeholder pictures for stories that need an image and must not ship an asset:
|
|
3
|
+
* a tinted rectangle with a label, as an SVG data URL.
|
|
4
|
+
*/
|
|
5
|
+
export declare function sampleImage(label: string, fill: string, width?: number, height?: number): string;
|
|
6
|
+
export declare const SAMPLE_IMAGES: {
|
|
7
|
+
src: string;
|
|
8
|
+
alt: string;
|
|
9
|
+
filename: string;
|
|
10
|
+
}[];
|
|
11
|
+
//# sourceMappingURL=sampleImages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sampleImages.d.ts","sourceRoot":"","sources":["../../../src/storybook/sampleImages.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,SAAM,EAAE,MAAM,SAAM,GAAG,MAAM,CAO1F;AAED,eAAO,MAAM,aAAa;;;;GAKzB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Domain-neutral rows for the table stories. */
|
|
2
|
+
export interface ProjectRow {
|
|
3
|
+
key: string;
|
|
4
|
+
name: string;
|
|
5
|
+
owner: string;
|
|
6
|
+
stage: string;
|
|
7
|
+
budget: number;
|
|
8
|
+
updated: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const PROJECT_ROWS: ProjectRow[];
|
|
11
|
+
export declare const formatBudget: (budget: number) => string;
|
|
12
|
+
//# sourceMappingURL=sampleRows.d.ts.map
|