@cwellt_software/cwellt-reactjs-lib 1.5.4 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/content/icons/IconLibrary.stories.tsx +18 -0
- package/dist/index.cjs.js +117 -93
- package/dist/index.css +2 -2
- package/dist/index.d.ts +63 -42
- package/dist/index.es.js +117 -93
- 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/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.d.ts +1 -1
- package/dist/src/components/control/action/contextmenu/CwAnchoredMenu.d.ts.map +1 -1
- 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.d.ts +2 -3
- package/dist/src/components/control/action/contextmenu/CwContextMenu.d.ts.map +1 -1
- 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/CwDropdownFilter.d.ts +4 -0
- package/dist/src/components/control/choice/dropdown/CwDropdownFilter.d.ts.map +1 -1
- 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.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/any/CwInput.d.ts +4 -0
- package/dist/src/components/control/input/any/CwInput.d.ts.map +1 -1
- package/dist/src/components/control/input/color/CwColorPicker.d.ts +2 -3
- package/dist/src/components/control/input/color/CwColorPicker.d.ts.map +1 -1
- 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.d.ts +1 -2
- package/dist/src/components/control/input/color/CwInputColor.d.ts.map +1 -1
- 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/date-text/CwInputDateText.d.ts +4 -0
- package/dist/src/components/control/input/date-text/CwInputDateText.d.ts.map +1 -1
- 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.d.ts +1 -2
- package/dist/src/components/control/input/file/CwFileUploadMultiple.d.ts.map +1 -1
- 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.d.ts +0 -1
- package/dist/src/components/control/input/new-dates/CwDatePicker.d.ts.map +1 -1
- 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/CwDatePickerTemporal.d.ts +0 -1
- package/dist/src/components/control/input/new-dates/CwDatePickerTemporal.d.ts.map +1 -1
- 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/CwDateRangePickerTemporal.d.ts +0 -1
- package/dist/src/components/control/input/new-dates/CwDateRangePickerTemporal.d.ts.map +1 -1
- 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/CwDateTimePickerCompact.d.ts +0 -1
- package/dist/src/components/control/input/new-dates/CwDateTimePickerCompact.d.ts.map +1 -1
- 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.d.ts +3 -4
- package/dist/src/components/control/input/text/CwInputText.d.ts.map +1 -1
- package/dist/src/components/control/input/text-area/CwTextArea.d.ts +1 -1
- package/dist/src/components/control/input/text-area/CwTextArea.d.ts.map +1 -1
- 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.d.ts +1 -2
- package/dist/src/components/control/input/weekday/CwWeekdaySelector.d.ts.map +1 -1
- 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/display/data/accordion/CwAccordionContainer.d.ts +2 -4
- package/dist/src/components/display/data/accordion/CwAccordionContainer.d.ts.map +1 -1
- package/dist/src/components/display/data/accordion/CwAccordionContainer.stories.d.ts +27 -0
- package/dist/src/components/display/data/accordion/CwAccordionContainer.stories.d.ts.map +1 -0
- package/dist/src/components/display/data/generic_tooltip/CwGenericTooltip.d.ts +4 -0
- package/dist/src/components/display/data/generic_tooltip/CwGenericTooltip.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/CwTooltip.d.ts +1 -2
- package/dist/src/components/display/data/tooltip_manager/CwTooltip.d.ts.map +1 -1
- 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.d.ts +1 -1
- package/dist/src/components/display/graphics/loading/CwLoading.d.ts.map +1 -1
- 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/tag/CwChip.d.ts +9 -9
- package/dist/src/components/display/text/tag/CwChip.d.ts.map +1 -1
- package/dist/src/components/layout/align/CwAlign.stories.d.ts +439 -0
- package/dist/src/components/layout/align/CwAlign.stories.d.ts.map +1 -0
- package/dist/src/components/layout/card/CwCard.d.ts +17 -17
- package/dist/src/components/layout/card/CwCard.d.ts.map +1 -1
- 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.d.ts +5 -0
- package/dist/src/components/layout/confirmation-popup/CwConfirmationPopup.d.ts.map +1 -1
- 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.d.ts +1 -1
- package/dist/src/components/layout/dialog/CwDialog.d.ts.map +1 -1
- 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.d.ts +2 -1
- package/dist/src/components/layout/list/details/CwExpandable.d.ts.map +1 -1
- 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.d.ts +2 -1
- package/dist/src/components/layout/modal/hover/CwModalHover.d.ts.map +1 -1
- 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.d.ts +1 -0
- package/dist/src/components/layout/table/grouped/CwTableGrouped.d.ts.map +1 -1
- 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/ShadowRecipesPage.d.ts +3 -0
- package/dist/src/playground/pages/ShadowRecipesPage.d.ts.map +1 -0
- 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 +29 -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/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 +1 -1
- package/dist/src/storybook/storySource.d.ts.map +1 -1
- package/dist/src/storybook/useCssVarOverride.d.ts +17 -0
- package/dist/src/storybook/useCssVarOverride.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/package.json +11 -3
|
@@ -0,0 +1 @@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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BY,CAAC;AAEvB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,iFAAiF;AACjF,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,MAAM,EAAE,KAEpB,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,qBAAqB,EAAE,KAEnC,CAAC;AAEF,qHAAqH;AACrH,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC"}
|
|
@@ -22,7 +22,7 @@ export interface CwFileUploadMultipleLabels {
|
|
|
22
22
|
* (or if `accept` is empty).
|
|
23
23
|
*/
|
|
24
24
|
export declare function fileMatchesAccept(fileName: string, fileType: string, accept: string): boolean;
|
|
25
|
-
interface CwFileUploadMultipleProps {
|
|
25
|
+
export interface CwFileUploadMultipleProps {
|
|
26
26
|
name?: string;
|
|
27
27
|
accept?: string;
|
|
28
28
|
multiple?: boolean;
|
|
@@ -41,5 +41,4 @@ interface CwFileUploadMultipleProps {
|
|
|
41
41
|
labels?: Partial<CwFileUploadMultipleLabels>;
|
|
42
42
|
}
|
|
43
43
|
export declare function CwFileUploadMultiple(fileUploadProps: React.PropsWithChildren<CwFileUploadMultipleProps>): React.JSX.Element;
|
|
44
|
-
export {};
|
|
45
44
|
//# sourceMappingURL=CwFileUploadMultiple.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwFileUploadMultiple.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/file/CwFileUploadMultiple.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAM7D,MAAM,WAAW,0BAA0B;IAE1C,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1C,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAEzC,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC;IACxD,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1D,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACzD,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;CAC1C;AAmBD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAsB7F;AAED,
|
|
1
|
+
{"version":3,"file":"CwFileUploadMultiple.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/file/CwFileUploadMultiple.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAM7D,MAAM,WAAW,0BAA0B;IAE1C,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1C,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAA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CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC,0BAA0B,CAAC,CAAC;CAC7C;AAED,wBAAgB,oBAAoB,CAAC,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC,yBAAyB,CAAC,qBA+UvG"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { CwFileUploadMultiple, type CwFileUploadMultipleProps } from "./CwFileUploadMultiple";
|
|
3
|
+
declare const ACCEPT_PRESETS: {
|
|
4
|
+
readonly "Documents (.pdf, .jpg, .png)": ".pdf,.jpg,.png";
|
|
5
|
+
readonly "Images (image/*)": "image/*";
|
|
6
|
+
readonly "PDF only (application/pdf)": "application/pdf";
|
|
7
|
+
readonly "Anything (*)": "*";
|
|
8
|
+
};
|
|
9
|
+
interface Args extends Omit<CwFileUploadMultipleProps, "accept"> {
|
|
10
|
+
/** Story-only: a readable preset for `accept` */
|
|
11
|
+
acceptPreset: keyof typeof ACCEPT_PRESETS;
|
|
12
|
+
}
|
|
13
|
+
declare const meta: {
|
|
14
|
+
title: string;
|
|
15
|
+
component: typeof CwFileUploadMultiple;
|
|
16
|
+
args: {
|
|
17
|
+
acceptPreset: "Documents (.pdf, .jpg, .png)";
|
|
18
|
+
multiple: true;
|
|
19
|
+
maxFileSize: number;
|
|
20
|
+
disabled: false;
|
|
21
|
+
hideClearAll: false;
|
|
22
|
+
confirmLabel: string;
|
|
23
|
+
confirmDisabled: false;
|
|
24
|
+
onSelect: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
25
|
+
onError: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
26
|
+
onConfirm: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
27
|
+
};
|
|
28
|
+
argTypes: {
|
|
29
|
+
acceptPreset: {
|
|
30
|
+
control: "select";
|
|
31
|
+
options: string[];
|
|
32
|
+
description: string;
|
|
33
|
+
};
|
|
34
|
+
labels: {
|
|
35
|
+
control: false;
|
|
36
|
+
};
|
|
37
|
+
allowedTypes: {
|
|
38
|
+
control: false;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
42
|
+
acceptPreset: keyof typeof ACCEPT_PRESETS;
|
|
43
|
+
disabled?: boolean | undefined;
|
|
44
|
+
multiple?: boolean | undefined;
|
|
45
|
+
name?: string | undefined;
|
|
46
|
+
className?: string | undefined;
|
|
47
|
+
onError?: ((error: string) => void) | undefined;
|
|
48
|
+
onSelect?: ((files: FileList | null) => void) | undefined;
|
|
49
|
+
onConfirm?: ((files: FileList) => void) | undefined;
|
|
50
|
+
labels?: Partial<import("./CwFileUploadMultiple").CwFileUploadMultipleLabels> | undefined;
|
|
51
|
+
confirmLabel?: string | undefined;
|
|
52
|
+
statusText?: string | undefined;
|
|
53
|
+
maxFileSize?: number | undefined;
|
|
54
|
+
allowedTypes?: string[] | undefined;
|
|
55
|
+
confirmDisabled?: boolean | undefined;
|
|
56
|
+
hideClearAll?: boolean | undefined;
|
|
57
|
+
initialFileName?: string | undefined;
|
|
58
|
+
}>) => import("react").JSX.Element)[];
|
|
59
|
+
parameters: {
|
|
60
|
+
docs: {
|
|
61
|
+
source: {
|
|
62
|
+
transform: (_code: string, storyContext: {
|
|
63
|
+
args: Record<string, unknown>;
|
|
64
|
+
}) => string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
render: (args: Args) => import("react").JSX.Element;
|
|
69
|
+
};
|
|
70
|
+
export default meta;
|
|
71
|
+
type Story = StoryObj<typeof meta>;
|
|
72
|
+
/** Drop zone plus file list. Pick or drop files, then Upload: the two lines below show what `onSelect` and `onConfirm` receive. A .txt shows the format error. */
|
|
73
|
+
export declare const Default: Story;
|
|
74
|
+
/** `multiple={false}`: one file, "Change file" replaces it. */
|
|
75
|
+
export declare const SingleFile: Story;
|
|
76
|
+
/** Every visible text comes from `labels`, so consumers translate without touching the component. */
|
|
77
|
+
export declare const TranslatedLabels: Story;
|
|
78
|
+
//# sourceMappingURL=CwFileUploadMultiple.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwFileUploadMultiple.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/file/CwFileUploadMultiple.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAK5D,OAAO,EAAE,oBAAoB,EAAE,KAAK,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAE9F,QAAA,MAAM,cAAc;;;;;CAKV,CAAC;AAEX,UAAU,IAAK,SAAQ,IAAI,CAAC,yBAAyB,EAAE,QAAQ,CAAC;IAC/D,iDAAiD;IACjD,YAAY,EAAE,MAAM,OAAO,cAAc,CAAC;CAC1C;AA8BD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA/BK,MAAM,OAAO,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4DpB,CAAC;AAEvB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,kKAAkK;AAClK,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,+DAA+D;AAC/D,eAAO,MAAM,UAAU,EAAE,KAExB,CAAC;AAEF,qGAAqG;AACrG,eAAO,MAAM,gBAAgB,EAAE,KAW9B,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { CwInputImage, type CwInputImageProps } from "./CwInputImage";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof CwInputImage;
|
|
6
|
+
args: {
|
|
7
|
+
size: "medium";
|
|
8
|
+
allowedImageFormats: string[];
|
|
9
|
+
onChange: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
10
|
+
onError: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
11
|
+
};
|
|
12
|
+
argTypes: {
|
|
13
|
+
labels: {
|
|
14
|
+
control: false;
|
|
15
|
+
};
|
|
16
|
+
size: {
|
|
17
|
+
control: "inline-radio";
|
|
18
|
+
options: string[];
|
|
19
|
+
};
|
|
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: CwInputImageProps) => import("react").JSX.Element;
|
|
31
|
+
};
|
|
32
|
+
export default meta;
|
|
33
|
+
type Story = StoryObj<typeof meta>;
|
|
34
|
+
/** Drop, paste or browse an image; `onChange` gets a data URL and the original File. The preview beside it is the story's. */
|
|
35
|
+
export declare const Default: Story;
|
|
36
|
+
/** Only PNG accepted; any other type raises `onError`. */
|
|
37
|
+
export declare const PngOnly: Story;
|
|
38
|
+
//# sourceMappingURL=CwInputImage.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwInputImage.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/image/CwInputImage.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAI5D,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAkBtE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe2B,CAAC;AAEtC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,8HAA8H;AAC9H,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,0DAA0D;AAC1D,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { type CwImageAreaProps } from "./CwImageArea";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<CwImageAreaProps & import("react").RefAttributes<import("./CwImageArea").CwImageAreaMethods>>;
|
|
6
|
+
args: {
|
|
7
|
+
src: string;
|
|
8
|
+
alt: string;
|
|
9
|
+
width: number;
|
|
10
|
+
selectionAreaAttenuation: number;
|
|
11
|
+
onSelectionSuccess: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
12
|
+
};
|
|
13
|
+
argTypes: {
|
|
14
|
+
src: {
|
|
15
|
+
control: false;
|
|
16
|
+
};
|
|
17
|
+
initialSelectionArea: {
|
|
18
|
+
control: false;
|
|
19
|
+
};
|
|
20
|
+
selectionAreaStyle: {
|
|
21
|
+
control: false;
|
|
22
|
+
};
|
|
23
|
+
alignProps: {
|
|
24
|
+
control: false;
|
|
25
|
+
};
|
|
26
|
+
onSelectionStart: {
|
|
27
|
+
control: false;
|
|
28
|
+
};
|
|
29
|
+
onSelectionEnd: {
|
|
30
|
+
control: false;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
parameters: {
|
|
34
|
+
docs: {
|
|
35
|
+
source: {
|
|
36
|
+
transform: (_code: string, storyContext: {
|
|
37
|
+
args: Record<string, unknown>;
|
|
38
|
+
}) => string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
render: (args: CwImageAreaProps & import("react").RefAttributes<import("./CwImageArea").CwImageAreaMethods>) => import("react").JSX.Element;
|
|
43
|
+
};
|
|
44
|
+
export default meta;
|
|
45
|
+
type Story = StoryObj<typeof meta>;
|
|
46
|
+
/** Drag a rectangle over the picture; the cropped area comes back as base64 (shown beside it by the story). */
|
|
47
|
+
export declare const Default: Story;
|
|
48
|
+
/** `aspectratio` locks the selection to a fixed ratio, here 16:9. */
|
|
49
|
+
export declare const FixedRatio: Story;
|
|
50
|
+
//# sourceMappingURL=CwImageArea.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwImageArea.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/image-area/CwImageArea.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAK5D,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAiCnE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoB0B,CAAC;AAErC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,+GAA+G;AAC/G,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,qEAAqE;AACrE,eAAO,MAAM,UAAU,EAAE,KAExB,CAAC"}
|
|
@@ -2,7 +2,6 @@ import { type DayPickerLocale } from "react-day-picker/locale";
|
|
|
2
2
|
import type { CwInputFeedback } from "../../../../common/interfaces/CwFormTypes";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { Matcher } from "react-day-picker";
|
|
5
|
-
import "react-day-picker/dist/style.css";
|
|
6
5
|
import { CwLabelProps } from "../../../display/text/label/CwLabel";
|
|
7
6
|
import { CwAlignProps } from "../../../layout/align/CwAlign";
|
|
8
7
|
export type DateMatcher = Matcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwDatePicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDatePicker.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,KAAmE,MAAM,OAAO,CAAC;AACxF,OAAO,EAAa,OAAO,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"CwDatePicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDatePicker.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,KAAmE,MAAM,OAAO,CAAC;AACxF,OAAO,EAAa,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,EAAW,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAW,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAKtE,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC;AAElC,MAAM,WAAW,iBAAiB;IACjC,4BAA4B;IAC5B,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,iCAAiC;IACjC,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;IAG3C,8BAA8B;IAC9B,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,8BAA8B;IAC9B,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,yCAAyC;IACzC,aAAa,CAAC,EAAE,IAAI,EAAE,CAAC;IACvB,yDAAyD;IACzD,eAAe,CAAC,EAAE,WAAW,CAAC;IAC9B,mDAAmD;IACnD,YAAY,CAAC,EAAE,IAAI,CAAC;IAGpB,gCAAgC;IAChC,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,0BAA0B;IAC1B,UAAU,CAAC,EAAE,YAAY,CAAC;IAG1B,iCAAiC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yDAAyD;IACzD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,sBAAsB;IACtB,aAAa,CAAC,EAAE,aAAa,GAAG,UAAU,GAAG,WAAW,GAAG,cAAc,CAAC;IAG1E,+CAA+C;IAC/C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,+GAA+G;IAC/G,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,eAAe,GAAG,eAAe,EAAE,CAAC;CAC/C;AAGD,wBAAgB,YAAY,CAAC,EAC5B,KAAK,EACL,QAAQ,EACR,OAAO,EACP,OAAO,EACP,aAAa,EACb,eAAe,EACf,YAAY,EACZ,UAAU,EACV,UAAU,EACV,WAA6B,EAC7B,aAA4B,EAC5B,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAgB,EAChB,aAA6B,EAC7B,cAAkB,EAClB,eAAuB,EACvB,MAAgC,EAChC,UAAoB,EACpB,cAAc,EACd,YAAY,EACZ,QAAQ,GACR,EAAE,QAAQ,CAAC,iBAAiB,CAAC,qBAqT7B"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { type PickerStoryArgs } from "../../../../storybook/pickerStoryArgs";
|
|
3
|
+
import { CwDatePickerTemporal, type CwDatePickerTemporalProps } from "./CwDatePickerTemporal";
|
|
4
|
+
type Args = CwDatePickerTemporalProps & PickerStoryArgs;
|
|
5
|
+
declare const meta: {
|
|
6
|
+
title: string;
|
|
7
|
+
component: typeof CwDatePickerTemporal;
|
|
8
|
+
args: {
|
|
9
|
+
labelText: string;
|
|
10
|
+
value: Temporal.PlainDate;
|
|
11
|
+
placeholder: string;
|
|
12
|
+
showClear: true;
|
|
13
|
+
showTodayButton: true;
|
|
14
|
+
numberOfMonths: number;
|
|
15
|
+
popupPosition: "left-bottom";
|
|
16
|
+
disabled: false;
|
|
17
|
+
required: false;
|
|
18
|
+
onChange: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
19
|
+
direction: "row" | "column";
|
|
20
|
+
labelWidth: typeof import("../../../../storybook/inputStoryArgs").LABEL_WIDTHS[number];
|
|
21
|
+
feedbackType: "none" | "danger" | "success" | "neutral" | "warning" | "info";
|
|
22
|
+
feedbackMessage: string;
|
|
23
|
+
};
|
|
24
|
+
argTypes: {
|
|
25
|
+
value: {
|
|
26
|
+
control: false;
|
|
27
|
+
};
|
|
28
|
+
minDate: {
|
|
29
|
+
control: false;
|
|
30
|
+
};
|
|
31
|
+
maxDate: {
|
|
32
|
+
control: false;
|
|
33
|
+
};
|
|
34
|
+
disabledDates: {
|
|
35
|
+
control: false;
|
|
36
|
+
};
|
|
37
|
+
disabledMatcher: {
|
|
38
|
+
control: false;
|
|
39
|
+
};
|
|
40
|
+
defaultMonth: {
|
|
41
|
+
control: false;
|
|
42
|
+
};
|
|
43
|
+
locale: {
|
|
44
|
+
control: false;
|
|
45
|
+
};
|
|
46
|
+
alignProps: {
|
|
47
|
+
control: false;
|
|
48
|
+
};
|
|
49
|
+
labelProps: {
|
|
50
|
+
control: false;
|
|
51
|
+
};
|
|
52
|
+
feedback: {
|
|
53
|
+
control: false;
|
|
54
|
+
};
|
|
55
|
+
direction: import("storybook/internal/csf").InputType;
|
|
56
|
+
labelText: import("storybook/internal/csf").InputType;
|
|
57
|
+
labelWidth: import("storybook/internal/csf").InputType;
|
|
58
|
+
feedbackType: import("storybook/internal/csf").InputType;
|
|
59
|
+
feedbackMessage: import("storybook/internal/csf").InputType;
|
|
60
|
+
};
|
|
61
|
+
parameters: {
|
|
62
|
+
docs: {
|
|
63
|
+
source: {
|
|
64
|
+
transform: (_code: string, storyContext: {
|
|
65
|
+
args: Record<string, unknown>;
|
|
66
|
+
}) => string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
71
|
+
value?: Temporal.PlainDate | undefined;
|
|
72
|
+
onChange: (date: Temporal.PlainDate | undefined) => void;
|
|
73
|
+
minDate?: Temporal.PlainDate | undefined;
|
|
74
|
+
maxDate?: Temporal.PlainDate | undefined;
|
|
75
|
+
disabledDates?: Temporal.PlainDate[] | undefined;
|
|
76
|
+
disabledMatcher?: import("./CwDatePickerTemporal").DateMatcher | undefined;
|
|
77
|
+
defaultMonth?: Temporal.PlainYearMonth | undefined;
|
|
78
|
+
labelProps?: import("../../../..").CwLabelProps | undefined;
|
|
79
|
+
alignProps?: import("../../../..").CwAlignProps | undefined;
|
|
80
|
+
placeholder?: string | undefined;
|
|
81
|
+
displayFormat?: string | undefined;
|
|
82
|
+
disabled?: boolean | undefined;
|
|
83
|
+
required?: boolean | undefined;
|
|
84
|
+
className?: string | undefined;
|
|
85
|
+
showClear?: boolean | undefined;
|
|
86
|
+
popupPosition?: "left-bottom" | "left-top" | "right-top" | "right-bottom" | undefined;
|
|
87
|
+
numberOfMonths?: number | undefined;
|
|
88
|
+
showTodayButton?: boolean | undefined;
|
|
89
|
+
yearRangeStart?: number | undefined;
|
|
90
|
+
yearRangeEnd?: number | undefined;
|
|
91
|
+
locale?: import("react-day-picker").DayPickerLocale | undefined;
|
|
92
|
+
todayLabel?: string | undefined;
|
|
93
|
+
feedback?: (import("../../../../common/interfaces/CwFormTypes").CwInputFeedback | import("../../../../common/interfaces/CwFormTypes").CwInputFeedback[]) | undefined;
|
|
94
|
+
direction: "row" | "column";
|
|
95
|
+
labelText: string;
|
|
96
|
+
labelWidth: typeof import("../../../../storybook/inputStoryArgs").LABEL_WIDTHS[number];
|
|
97
|
+
feedbackType: "none" | "danger" | "success" | "neutral" | "warning" | "info";
|
|
98
|
+
feedbackMessage: string;
|
|
99
|
+
}>, { args }: import("storybook/internal/csf").StoryContext<import("@storybook/react").ReactRenderer, {
|
|
100
|
+
value?: Temporal.PlainDate | undefined;
|
|
101
|
+
onChange: (date: Temporal.PlainDate | undefined) => void;
|
|
102
|
+
minDate?: Temporal.PlainDate | undefined;
|
|
103
|
+
maxDate?: Temporal.PlainDate | undefined;
|
|
104
|
+
disabledDates?: Temporal.PlainDate[] | undefined;
|
|
105
|
+
disabledMatcher?: import("./CwDatePickerTemporal").DateMatcher | undefined;
|
|
106
|
+
defaultMonth?: Temporal.PlainYearMonth | undefined;
|
|
107
|
+
labelProps?: import("../../../..").CwLabelProps | undefined;
|
|
108
|
+
alignProps?: import("../../../..").CwAlignProps | undefined;
|
|
109
|
+
placeholder?: string | undefined;
|
|
110
|
+
displayFormat?: string | undefined;
|
|
111
|
+
disabled?: boolean | undefined;
|
|
112
|
+
required?: boolean | undefined;
|
|
113
|
+
className?: string | undefined;
|
|
114
|
+
showClear?: boolean | undefined;
|
|
115
|
+
popupPosition?: "left-bottom" | "left-top" | "right-top" | "right-bottom" | undefined;
|
|
116
|
+
numberOfMonths?: number | undefined;
|
|
117
|
+
showTodayButton?: boolean | undefined;
|
|
118
|
+
yearRangeStart?: number | undefined;
|
|
119
|
+
yearRangeEnd?: number | undefined;
|
|
120
|
+
locale?: import("react-day-picker").DayPickerLocale | undefined;
|
|
121
|
+
todayLabel?: string | undefined;
|
|
122
|
+
feedback?: (import("../../../../common/interfaces/CwFormTypes").CwInputFeedback | import("../../../../common/interfaces/CwFormTypes").CwInputFeedback[]) | undefined;
|
|
123
|
+
direction: "row" | "column";
|
|
124
|
+
labelText: string;
|
|
125
|
+
labelWidth: typeof import("../../../../storybook/inputStoryArgs").LABEL_WIDTHS[number];
|
|
126
|
+
feedbackType: "none" | "danger" | "success" | "neutral" | "warning" | "info";
|
|
127
|
+
feedbackMessage: string;
|
|
128
|
+
}>) => import("react").JSX.Element)[];
|
|
129
|
+
render: (args: Args) => import("react").JSX.Element;
|
|
130
|
+
};
|
|
131
|
+
export default meta;
|
|
132
|
+
type Story = StoryObj<typeof meta>;
|
|
133
|
+
/** `CwDatePickerTemporal` is the picker for new code: value and `onChange` are `Temporal.PlainDate`. */
|
|
134
|
+
export declare const Default: Story;
|
|
135
|
+
/** Days outside `minDate`/`maxDate` cannot be picked; the year dropdown is widened for a birth date. */
|
|
136
|
+
export declare const Bounded: Story;
|
|
137
|
+
export declare const WithFeedback: Story;
|
|
138
|
+
/** The `Date`-valued `CwDatePicker`, for a JS `Date` boundary that cannot be avoided. Same UX. */
|
|
139
|
+
export declare const LegacyDate: Story;
|
|
140
|
+
//# sourceMappingURL=CwDatePicker.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwDatePicker.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDatePicker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAMN,KAAK,eAAe,EACpB,MAAM,uCAAuC,CAAC;AAG/C,OAAO,EAAE,oBAAoB,EAAE,KAAK,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAE9F,KAAK,IAAI,GAAG,yBAAyB,GAAG,eAAe,CAAC;AAqBxD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCY,CAAC;AAEvB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,wGAAwG;AACxG,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,wGAAwG;AACxG,eAAO,MAAM,OAAO,EAAE,KAUrB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAC;AAEF,kGAAkG;AAClG,eAAO,MAAM,UAAU,EAAE,KAGxB,CAAC"}
|
|
@@ -2,7 +2,6 @@ import { type DayPickerLocale } from "react-day-picker/locale";
|
|
|
2
2
|
import type { CwInputFeedback } from "../../../../common/interfaces/CwFormTypes";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { Matcher } from "react-day-picker";
|
|
5
|
-
import "react-day-picker/dist/style.css";
|
|
6
5
|
import { CwLabelProps } from "../../../display/text/label/CwLabel";
|
|
7
6
|
import { CwAlignProps } from "../../../layout/align/CwAlign";
|
|
8
7
|
export type DateMatcher = Matcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwDatePickerTemporal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDatePickerTemporal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,KAAK,eAAe,EAAC,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,2CAA2C,CAAC;AAC/E,OAAO,KAAiE,MAAM,OAAO,CAAC;AACtF,OAAO,EAAY,OAAO,EAAC,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"CwDatePickerTemporal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDatePickerTemporal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,KAAK,eAAe,EAAC,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,2CAA2C,CAAC;AAC/E,OAAO,KAAiE,MAAM,OAAO,CAAC;AACtF,OAAO,EAAY,OAAO,EAAC,MAAM,kBAAkB,CAAC;AAEpD,OAAO,EAAU,YAAY,EAAC,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAU,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAMpE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AAM,CAAC;IACtB,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,eAAe,GAAG,eAAe,EAAE,CAAC;CAC/C;AAGD,wBAAgB,oBAAoB,CAAC,EACpC,KAAK,EACL,QAAQ,EACR,OAAO,EACP,OAAO,EACP,aAAa,EACb,eAAe,EACf,YAAY,EACZ,UAAU,EACV,UAAU,EACV,WAA6B,EAC7B,aAA4B,EAC5B,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAgB,EAChB,aAA6B,EAC7B,cAAkB,EAClB,eAAuB,EACvB,MAAgC,EAChC,UAAoB,EACpB,cAAc,EACd,YAAY,EACZ,QAAQ,GACR,EAAE,QAAQ,CAAC,yBAAyB,CAAC,qBAmOrC"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { type PickerStoryArgs } from "../../../../storybook/pickerStoryArgs";
|
|
3
|
+
import { CwDateRangePickerTemporal, type CwDateRangePickerTemporalProps, type DateRangeValueTemporal } from "./CwDateRangePickerTemporal";
|
|
4
|
+
type Args = CwDateRangePickerTemporalProps & PickerStoryArgs;
|
|
5
|
+
declare const meta: {
|
|
6
|
+
title: string;
|
|
7
|
+
component: typeof CwDateRangePickerTemporal;
|
|
8
|
+
args: {
|
|
9
|
+
labelText: string;
|
|
10
|
+
value: DateRangeValueTemporal;
|
|
11
|
+
showClear: true;
|
|
12
|
+
showPresets: false;
|
|
13
|
+
numberOfMonths: number;
|
|
14
|
+
popupPosition: "left-bottom";
|
|
15
|
+
disabled: false;
|
|
16
|
+
required: false;
|
|
17
|
+
onChange: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
18
|
+
direction: "row" | "column";
|
|
19
|
+
labelWidth: typeof import("../../../../storybook/inputStoryArgs").LABEL_WIDTHS[number];
|
|
20
|
+
feedbackType: "none" | "danger" | "success" | "neutral" | "warning" | "info";
|
|
21
|
+
feedbackMessage: string;
|
|
22
|
+
};
|
|
23
|
+
argTypes: {
|
|
24
|
+
value: {
|
|
25
|
+
control: false;
|
|
26
|
+
};
|
|
27
|
+
minDate: {
|
|
28
|
+
control: false;
|
|
29
|
+
};
|
|
30
|
+
maxDate: {
|
|
31
|
+
control: false;
|
|
32
|
+
};
|
|
33
|
+
disabledDates: {
|
|
34
|
+
control: false;
|
|
35
|
+
};
|
|
36
|
+
disabledMatcher: {
|
|
37
|
+
control: false;
|
|
38
|
+
};
|
|
39
|
+
defaultMonth: {
|
|
40
|
+
control: false;
|
|
41
|
+
};
|
|
42
|
+
presetKeys: {
|
|
43
|
+
control: false;
|
|
44
|
+
};
|
|
45
|
+
customPresets: {
|
|
46
|
+
control: false;
|
|
47
|
+
};
|
|
48
|
+
locale: {
|
|
49
|
+
control: false;
|
|
50
|
+
};
|
|
51
|
+
feedbackType: {
|
|
52
|
+
table: {
|
|
53
|
+
disable: true;
|
|
54
|
+
};
|
|
55
|
+
control: false;
|
|
56
|
+
};
|
|
57
|
+
feedbackMessage: {
|
|
58
|
+
table: {
|
|
59
|
+
disable: true;
|
|
60
|
+
};
|
|
61
|
+
control: false;
|
|
62
|
+
};
|
|
63
|
+
alignProps: {
|
|
64
|
+
control: false;
|
|
65
|
+
};
|
|
66
|
+
labelProps: {
|
|
67
|
+
control: false;
|
|
68
|
+
};
|
|
69
|
+
feedback: {
|
|
70
|
+
control: false;
|
|
71
|
+
};
|
|
72
|
+
direction: import("storybook/internal/csf").InputType;
|
|
73
|
+
labelText: import("storybook/internal/csf").InputType;
|
|
74
|
+
labelWidth: import("storybook/internal/csf").InputType;
|
|
75
|
+
};
|
|
76
|
+
parameters: {
|
|
77
|
+
docs: {
|
|
78
|
+
source: {
|
|
79
|
+
transform: (_code: string, storyContext: {
|
|
80
|
+
args: Record<string, unknown>;
|
|
81
|
+
}) => string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
86
|
+
value?: DateRangeValueTemporal | undefined;
|
|
87
|
+
onChange: (range: DateRangeValueTemporal | undefined) => void;
|
|
88
|
+
minDate?: Temporal.PlainDate | undefined;
|
|
89
|
+
maxDate?: Temporal.PlainDate | undefined;
|
|
90
|
+
disabledDates?: Temporal.PlainDate[] | undefined;
|
|
91
|
+
disabledMatcher?: import("./CwDateRangePickerTemporal").DateMatcher | undefined;
|
|
92
|
+
maxRangeDays?: number | undefined;
|
|
93
|
+
defaultMonth?: Temporal.PlainYearMonth | undefined;
|
|
94
|
+
labelProps?: import("../../../..").CwLabelProps | undefined;
|
|
95
|
+
alignProps?: import("../../../..").CwAlignProps | undefined;
|
|
96
|
+
placeholderFrom?: string | undefined;
|
|
97
|
+
placeholderTo?: string | undefined;
|
|
98
|
+
displayFormat?: string | undefined;
|
|
99
|
+
disabled?: boolean | undefined;
|
|
100
|
+
required?: boolean | undefined;
|
|
101
|
+
className?: string | undefined;
|
|
102
|
+
showClear?: boolean | undefined;
|
|
103
|
+
popupPosition?: "left-bottom" | "left-top" | "right-top" | "right-bottom" | undefined;
|
|
104
|
+
numberOfMonths?: number | undefined;
|
|
105
|
+
yearRangeStart?: number | undefined;
|
|
106
|
+
yearRangeEnd?: number | undefined;
|
|
107
|
+
locale?: import("react-day-picker").DayPickerLocale | undefined;
|
|
108
|
+
showPresets?: boolean | undefined;
|
|
109
|
+
presetKeys?: string[] | undefined;
|
|
110
|
+
customPresets?: import("./dateRangePresetsTemporal").DateRangePresetTemporal[] | undefined;
|
|
111
|
+
direction: "row" | "column";
|
|
112
|
+
labelText: string;
|
|
113
|
+
labelWidth: typeof import("../../../../storybook/inputStoryArgs").LABEL_WIDTHS[number];
|
|
114
|
+
feedbackType: "none" | "danger" | "success" | "neutral" | "warning" | "info";
|
|
115
|
+
feedbackMessage: string;
|
|
116
|
+
}>, { args }: import("storybook/internal/csf").StoryContext<import("@storybook/react").ReactRenderer, {
|
|
117
|
+
value?: DateRangeValueTemporal | undefined;
|
|
118
|
+
onChange: (range: DateRangeValueTemporal | undefined) => void;
|
|
119
|
+
minDate?: Temporal.PlainDate | undefined;
|
|
120
|
+
maxDate?: Temporal.PlainDate | undefined;
|
|
121
|
+
disabledDates?: Temporal.PlainDate[] | undefined;
|
|
122
|
+
disabledMatcher?: import("./CwDateRangePickerTemporal").DateMatcher | undefined;
|
|
123
|
+
maxRangeDays?: number | undefined;
|
|
124
|
+
defaultMonth?: Temporal.PlainYearMonth | undefined;
|
|
125
|
+
labelProps?: import("../../../..").CwLabelProps | undefined;
|
|
126
|
+
alignProps?: import("../../../..").CwAlignProps | undefined;
|
|
127
|
+
placeholderFrom?: string | undefined;
|
|
128
|
+
placeholderTo?: string | undefined;
|
|
129
|
+
displayFormat?: string | undefined;
|
|
130
|
+
disabled?: boolean | undefined;
|
|
131
|
+
required?: boolean | undefined;
|
|
132
|
+
className?: string | undefined;
|
|
133
|
+
showClear?: boolean | undefined;
|
|
134
|
+
popupPosition?: "left-bottom" | "left-top" | "right-top" | "right-bottom" | undefined;
|
|
135
|
+
numberOfMonths?: number | undefined;
|
|
136
|
+
yearRangeStart?: number | undefined;
|
|
137
|
+
yearRangeEnd?: number | undefined;
|
|
138
|
+
locale?: import("react-day-picker").DayPickerLocale | undefined;
|
|
139
|
+
showPresets?: boolean | undefined;
|
|
140
|
+
presetKeys?: string[] | undefined;
|
|
141
|
+
customPresets?: import("./dateRangePresetsTemporal").DateRangePresetTemporal[] | undefined;
|
|
142
|
+
direction: "row" | "column";
|
|
143
|
+
labelText: string;
|
|
144
|
+
labelWidth: typeof import("../../../../storybook/inputStoryArgs").LABEL_WIDTHS[number];
|
|
145
|
+
feedbackType: "none" | "danger" | "success" | "neutral" | "warning" | "info";
|
|
146
|
+
feedbackMessage: string;
|
|
147
|
+
}>) => import("react").JSX.Element)[];
|
|
148
|
+
render: (args: Args) => import("react").JSX.Element;
|
|
149
|
+
};
|
|
150
|
+
export default meta;
|
|
151
|
+
type Story = StoryObj<typeof meta>;
|
|
152
|
+
/** Two months side by side; `value` and `onChange` carry `{ from, to }` as `Temporal.PlainDate`. */
|
|
153
|
+
export declare const Default: Story;
|
|
154
|
+
/** `showPresets` with `presetKeys` from the preset library adds one-click ranges beside the calendar. */
|
|
155
|
+
export declare const WithPresets: Story;
|
|
156
|
+
/** `maxRangeDays` caps the span; days beyond it are disabled once `from` is set. */
|
|
157
|
+
export declare const LimitedSpan: Story;
|
|
158
|
+
/** The `Date`-valued `CwDateRangePicker`, for a JS `Date` boundary that cannot be avoided. */
|
|
159
|
+
export declare const LegacyDate: Story;
|
|
160
|
+
//# sourceMappingURL=CwDateRangePicker.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwDateRangePicker.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDateRangePicker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAON,KAAK,eAAe,EACpB,MAAM,uCAAuC,CAAC;AAG/C,OAAO,EAAE,yBAAyB,EAAE,KAAK,8BAA8B,EAAE,KAAK,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAE1I,KAAK,IAAI,GAAG,8BAA8B,GAAG,eAAe,CAAC;AAqC7D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCY,CAAC;AAEvB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,oGAAoG;AACpG,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,yGAAyG;AACzG,eAAO,MAAM,WAAW,EAAE,KAOzB,CAAC;AAEF,oFAAoF;AACpF,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC;AAEF,8FAA8F;AAC9F,eAAO,MAAM,UAAU,EAAE,KAGxB,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { type DayPickerLocale } from "react-day-picker/locale";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Matcher } from "react-day-picker";
|
|
4
|
-
import "react-day-picker/dist/style.css";
|
|
5
4
|
import { CwLabelProps } from "../../../../components/display/text/label/CwLabel";
|
|
6
5
|
import { CwAlignProps } from "../../../../components/layout/align/CwAlign";
|
|
7
6
|
import { type DateRangePresetTemporal } from "./dateRangePresetsTemporal";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwDateRangePickerTemporal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDateRangePickerTemporal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAA4D,MAAM,OAAO,CAAC;AACjF,OAAO,EAAwB,OAAO,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"CwDateRangePickerTemporal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDateRangePickerTemporal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAA4D,MAAM,OAAO,CAAC;AACjF,OAAO,EAAwB,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEjE,OAAO,EAAW,YAAY,EAAE,MAAM,mDAAmD,CAAC;AAC1F,OAAO,EAAW,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAKpF,OAAO,EAAE,KAAK,uBAAuB,EAA4B,MAAM,4BAA4B,CAAC;AAGpG,MAAM,MAAM,WAAW,GAAG,OAAO,CA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