@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,150 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { type PickerStoryArgs } from "../../../../storybook/pickerStoryArgs";
|
|
3
|
+
import { CwDateTimePickerTemporal, type CwDateTimePickerTemporalProps } from "./CwDateTimePickerTemporal";
|
|
4
|
+
type Args = CwDateTimePickerTemporalProps & PickerStoryArgs;
|
|
5
|
+
declare const meta: {
|
|
6
|
+
title: string;
|
|
7
|
+
component: typeof CwDateTimePickerTemporal;
|
|
8
|
+
args: {
|
|
9
|
+
labelText: string;
|
|
10
|
+
value: Temporal.PlainDateTime;
|
|
11
|
+
timeInterval: 15;
|
|
12
|
+
showClear: true;
|
|
13
|
+
showNowButton: 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
|
+
minDateTime: {
|
|
29
|
+
control: false;
|
|
30
|
+
};
|
|
31
|
+
maxDateTime: {
|
|
32
|
+
control: false;
|
|
33
|
+
};
|
|
34
|
+
disabledDates: {
|
|
35
|
+
control: false;
|
|
36
|
+
};
|
|
37
|
+
disabledMatcher: {
|
|
38
|
+
control: false;
|
|
39
|
+
};
|
|
40
|
+
locale: {
|
|
41
|
+
control: false;
|
|
42
|
+
};
|
|
43
|
+
timeInterval: {
|
|
44
|
+
control: "inline-radio";
|
|
45
|
+
options: number[];
|
|
46
|
+
};
|
|
47
|
+
feedbackType: {
|
|
48
|
+
table: {
|
|
49
|
+
disable: true;
|
|
50
|
+
};
|
|
51
|
+
control: false;
|
|
52
|
+
};
|
|
53
|
+
feedbackMessage: {
|
|
54
|
+
table: {
|
|
55
|
+
disable: true;
|
|
56
|
+
};
|
|
57
|
+
control: false;
|
|
58
|
+
};
|
|
59
|
+
alignProps: {
|
|
60
|
+
control: false;
|
|
61
|
+
};
|
|
62
|
+
labelProps: {
|
|
63
|
+
control: false;
|
|
64
|
+
};
|
|
65
|
+
feedback: {
|
|
66
|
+
control: false;
|
|
67
|
+
};
|
|
68
|
+
direction: import("storybook/internal/csf").InputType;
|
|
69
|
+
labelText: import("storybook/internal/csf").InputType;
|
|
70
|
+
labelWidth: import("storybook/internal/csf").InputType;
|
|
71
|
+
};
|
|
72
|
+
parameters: {
|
|
73
|
+
docs: {
|
|
74
|
+
source: {
|
|
75
|
+
transform: (_code: string, storyContext: {
|
|
76
|
+
args: Record<string, unknown>;
|
|
77
|
+
}) => string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
82
|
+
value?: Temporal.PlainDateTime | undefined;
|
|
83
|
+
onChange: (datetime: Temporal.PlainDateTime | undefined) => void;
|
|
84
|
+
minDateTime?: Temporal.PlainDateTime | undefined;
|
|
85
|
+
maxDateTime?: Temporal.PlainDateTime | undefined;
|
|
86
|
+
disabledDates?: Temporal.PlainDate[] | undefined;
|
|
87
|
+
disabledMatcher?: import("./CwDatePicker").DateMatcher | undefined;
|
|
88
|
+
timeInterval?: 5 | 10 | 15 | 30 | 60 | undefined;
|
|
89
|
+
minTime?: string | undefined;
|
|
90
|
+
maxTime?: string | undefined;
|
|
91
|
+
labelProps?: import("../../../..").CwLabelProps | undefined;
|
|
92
|
+
alignProps?: import("../../../..").CwAlignProps | undefined;
|
|
93
|
+
datePlaceholder?: string | undefined;
|
|
94
|
+
timePlaceholder?: string | undefined;
|
|
95
|
+
disabled?: boolean | undefined;
|
|
96
|
+
required?: boolean | undefined;
|
|
97
|
+
className?: string | undefined;
|
|
98
|
+
showClear?: boolean | undefined;
|
|
99
|
+
popupPosition?: "left-bottom" | "left-top" | "right-top" | "right-bottom" | undefined;
|
|
100
|
+
numberOfMonths?: number | undefined;
|
|
101
|
+
showNowButton?: boolean | undefined;
|
|
102
|
+
nowLabel?: string | undefined;
|
|
103
|
+
locale?: import("react-day-picker").DayPickerLocale | undefined;
|
|
104
|
+
direction: "row" | "column";
|
|
105
|
+
labelText: string;
|
|
106
|
+
labelWidth: typeof import("../../../../storybook/inputStoryArgs").LABEL_WIDTHS[number];
|
|
107
|
+
feedbackType: "none" | "danger" | "success" | "neutral" | "warning" | "info";
|
|
108
|
+
feedbackMessage: string;
|
|
109
|
+
}>, { args }: import("storybook/internal/csf").StoryContext<import("@storybook/react").ReactRenderer, {
|
|
110
|
+
value?: Temporal.PlainDateTime | undefined;
|
|
111
|
+
onChange: (datetime: Temporal.PlainDateTime | undefined) => void;
|
|
112
|
+
minDateTime?: Temporal.PlainDateTime | undefined;
|
|
113
|
+
maxDateTime?: Temporal.PlainDateTime | undefined;
|
|
114
|
+
disabledDates?: Temporal.PlainDate[] | undefined;
|
|
115
|
+
disabledMatcher?: import("./CwDatePicker").DateMatcher | undefined;
|
|
116
|
+
timeInterval?: 5 | 10 | 15 | 30 | 60 | undefined;
|
|
117
|
+
minTime?: string | undefined;
|
|
118
|
+
maxTime?: string | undefined;
|
|
119
|
+
labelProps?: import("../../../..").CwLabelProps | undefined;
|
|
120
|
+
alignProps?: import("../../../..").CwAlignProps | undefined;
|
|
121
|
+
datePlaceholder?: string | undefined;
|
|
122
|
+
timePlaceholder?: string | undefined;
|
|
123
|
+
disabled?: boolean | undefined;
|
|
124
|
+
required?: boolean | undefined;
|
|
125
|
+
className?: string | undefined;
|
|
126
|
+
showClear?: boolean | undefined;
|
|
127
|
+
popupPosition?: "left-bottom" | "left-top" | "right-top" | "right-bottom" | undefined;
|
|
128
|
+
numberOfMonths?: number | undefined;
|
|
129
|
+
showNowButton?: boolean | undefined;
|
|
130
|
+
nowLabel?: string | undefined;
|
|
131
|
+
locale?: import("react-day-picker").DayPickerLocale | undefined;
|
|
132
|
+
direction: "row" | "column";
|
|
133
|
+
labelText: string;
|
|
134
|
+
labelWidth: typeof import("../../../../storybook/inputStoryArgs").LABEL_WIDTHS[number];
|
|
135
|
+
feedbackType: "none" | "danger" | "success" | "neutral" | "warning" | "info";
|
|
136
|
+
feedbackMessage: string;
|
|
137
|
+
}>) => import("react").JSX.Element)[];
|
|
138
|
+
render: (args: Args) => import("react").JSX.Element;
|
|
139
|
+
};
|
|
140
|
+
export default meta;
|
|
141
|
+
type Story = StoryObj<typeof meta>;
|
|
142
|
+
/** Date field plus time field; value and `onChange` are `Temporal.PlainDateTime`. */
|
|
143
|
+
export declare const Default: Story;
|
|
144
|
+
/** `minTime`/`maxTime` restrict the time list to office hours. */
|
|
145
|
+
export declare const OfficeHours: Story;
|
|
146
|
+
/** The `Date`-valued `CwDateTimePicker`, for a JS `Date` boundary that cannot be avoided. */
|
|
147
|
+
export declare const LegacyDate: Story;
|
|
148
|
+
/** `CwDateTimePickerCompact`: one field for date and time, `Date`-valued. */
|
|
149
|
+
export declare const Compact: Story;
|
|
150
|
+
//# sourceMappingURL=CwDateTimePicker.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwDateTimePicker.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDateTimePicker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAON,KAAK,eAAe,EACpB,MAAM,uCAAuC,CAAC;AAI/C,OAAO,EAAE,wBAAwB,EAAE,KAAK,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAE1G,KAAK,IAAI,GAAG,6BAA6B,GAAG,eAAe,CAAC;AA0B5D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCY,CAAC;AAEvB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,qFAAqF;AACrF,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,kEAAkE;AAClE,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC;AAEF,6FAA6F;AAC7F,eAAO,MAAM,UAAU,EAAE,KAGxB,CAAC;AAaF,6EAA6E;AAC7E,eAAO,MAAM,OAAO,EAAE,KAGrB,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Matcher } from "react-day-picker";
|
|
3
3
|
import { type DayPickerLocale } from "react-day-picker/locale";
|
|
4
|
-
import "react-day-picker/dist/style.css";
|
|
5
4
|
import { CwLabelProps } from "../../../display/text/label/CwLabel";
|
|
6
5
|
import { CwAlignProps } from "../../../layout/align/CwAlign";
|
|
7
6
|
export type DateMatcher = Matcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwDateTimePickerCompact.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDateTimePickerCompact.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA4D,MAAM,OAAO,CAAC;AACjF,OAAO,EAAa,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"CwDateTimePickerCompact.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwDateTimePickerCompact.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA4D,MAAM,OAAO,CAAC;AACjF,OAAO,EAAa,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,EAAW,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAW,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAOtE,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC;AAElC,MAAM,WAAW,4BAA4B;IAC5C,gCAAgC;IAChC,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,qCAAqC;IACrC,QAAQ,EAAE,CAAC,QAAQ,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;IAG/C,kCAAkC;IAClC,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,kCAAkC;IAClC,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,yCAAyC;IACzC,aAAa,CAAC,EAAE,IAAI,EAAE,CAAC;IACvB,yDAAyD;IACzD,eAAe,CAAC,EAAE,WAAW,CAAC;IAG9B,2DAA2D;IAC3D,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IACrC,gDAAgD;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gDAAgD;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,gCAAgC;IAChC,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,0BAA0B;IAC1B,UAAU,CAAC,EAAE,YAAY,CAAC;IAG1B,iCAAiC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,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;IACpB,sBAAsB;IACtB,aAAa,CAAC,EAAE,aAAa,GAAG,UAAU,GAAG,WAAW,GAAG,cAAc,CAAC;IAE1E,+CAA+C;IAC/C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sEAAsE;IACtE,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mHAAmH;IACnH,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,uBAAuB,CAAC,EACvC,KAAK,EACL,QAAQ,EACR,WAAW,EACX,WAAW,EACX,aAAa,EACb,eAAe,EACf,YAAiB,EACjB,OAAO,EACP,OAAO,EACP,UAAU,EACV,UAAU,EACV,WAAgC,EAChC,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAgB,EAChB,aAA6B,EAC7B,cAAkB,EAClB,eAAuB,EACvB,QAAgB,EAChB,SAAkB,EAClB,MAAgC,EAChC,cAAc,EACd,YAAY,GACZ,EAAE,QAAQ,CAAC,4BAA4B,CAAC,qBA8YxC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { type PickerStoryArgs } from "../../../../storybook/pickerStoryArgs";
|
|
3
|
+
import { CwTimePicker, type CwTimePickerProps } from "./CwTimePicker";
|
|
4
|
+
type Args = CwTimePickerProps & PickerStoryArgs;
|
|
5
|
+
declare const meta: {
|
|
6
|
+
title: string;
|
|
7
|
+
component: typeof CwTimePicker;
|
|
8
|
+
args: {
|
|
9
|
+
labelText: string;
|
|
10
|
+
value: string;
|
|
11
|
+
interval: 15;
|
|
12
|
+
showClear: true;
|
|
13
|
+
useNative: false;
|
|
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
|
+
interval: {
|
|
25
|
+
control: "inline-radio";
|
|
26
|
+
options: number[];
|
|
27
|
+
};
|
|
28
|
+
feedbackType: {
|
|
29
|
+
table: {
|
|
30
|
+
disable: true;
|
|
31
|
+
};
|
|
32
|
+
control: false;
|
|
33
|
+
};
|
|
34
|
+
feedbackMessage: {
|
|
35
|
+
table: {
|
|
36
|
+
disable: true;
|
|
37
|
+
};
|
|
38
|
+
control: false;
|
|
39
|
+
};
|
|
40
|
+
alignProps: {
|
|
41
|
+
control: false;
|
|
42
|
+
};
|
|
43
|
+
labelProps: {
|
|
44
|
+
control: false;
|
|
45
|
+
};
|
|
46
|
+
feedback: {
|
|
47
|
+
control: false;
|
|
48
|
+
};
|
|
49
|
+
direction: import("storybook/internal/csf").InputType;
|
|
50
|
+
labelText: import("storybook/internal/csf").InputType;
|
|
51
|
+
labelWidth: import("storybook/internal/csf").InputType;
|
|
52
|
+
};
|
|
53
|
+
parameters: {
|
|
54
|
+
docs: {
|
|
55
|
+
source: {
|
|
56
|
+
transform: (_code: string, storyContext: {
|
|
57
|
+
args: Record<string, unknown>;
|
|
58
|
+
}) => string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
63
|
+
value?: string | undefined;
|
|
64
|
+
onChange: (time: string | undefined) => void;
|
|
65
|
+
interval?: 5 | 10 | 15 | 30 | 60 | undefined;
|
|
66
|
+
minTime?: string | undefined;
|
|
67
|
+
maxTime?: string | undefined;
|
|
68
|
+
labelProps?: import("../../../..").CwLabelProps | undefined;
|
|
69
|
+
alignProps?: import("../../../..").CwAlignProps | undefined;
|
|
70
|
+
placeholder?: string | undefined;
|
|
71
|
+
disabled?: boolean | undefined;
|
|
72
|
+
required?: boolean | undefined;
|
|
73
|
+
className?: string | undefined;
|
|
74
|
+
showClear?: boolean | undefined;
|
|
75
|
+
popupPosition?: "left-bottom" | "left-top" | "right-bottom" | "right-top" | undefined;
|
|
76
|
+
useNative?: boolean | undefined;
|
|
77
|
+
direction: "row" | "column";
|
|
78
|
+
labelText: string;
|
|
79
|
+
labelWidth: typeof import("../../../../storybook/inputStoryArgs").LABEL_WIDTHS[number];
|
|
80
|
+
feedbackType: "none" | "danger" | "success" | "neutral" | "warning" | "info";
|
|
81
|
+
feedbackMessage: string;
|
|
82
|
+
}>, { args }: import("storybook/internal/csf").StoryContext<import("@storybook/react").ReactRenderer, {
|
|
83
|
+
value?: string | undefined;
|
|
84
|
+
onChange: (time: string | undefined) => void;
|
|
85
|
+
interval?: 5 | 10 | 15 | 30 | 60 | undefined;
|
|
86
|
+
minTime?: string | undefined;
|
|
87
|
+
maxTime?: string | undefined;
|
|
88
|
+
labelProps?: import("../../../..").CwLabelProps | undefined;
|
|
89
|
+
alignProps?: import("../../../..").CwAlignProps | undefined;
|
|
90
|
+
placeholder?: string | undefined;
|
|
91
|
+
disabled?: boolean | undefined;
|
|
92
|
+
required?: boolean | undefined;
|
|
93
|
+
className?: string | undefined;
|
|
94
|
+
showClear?: boolean | undefined;
|
|
95
|
+
popupPosition?: "left-bottom" | "left-top" | "right-bottom" | "right-top" | undefined;
|
|
96
|
+
useNative?: boolean | undefined;
|
|
97
|
+
direction: "row" | "column";
|
|
98
|
+
labelText: string;
|
|
99
|
+
labelWidth: typeof import("../../../../storybook/inputStoryArgs").LABEL_WIDTHS[number];
|
|
100
|
+
feedbackType: "none" | "danger" | "success" | "neutral" | "warning" | "info";
|
|
101
|
+
feedbackMessage: string;
|
|
102
|
+
}>) => import("react").JSX.Element)[];
|
|
103
|
+
render: (args: Args) => import("react").JSX.Element;
|
|
104
|
+
};
|
|
105
|
+
export default meta;
|
|
106
|
+
type Story = StoryObj<typeof meta>;
|
|
107
|
+
/** A `HH:mm` string in and out; the list steps by `interval`. */
|
|
108
|
+
export declare const Default: Story;
|
|
109
|
+
/** `minTime`/`maxTime` bound the list. */
|
|
110
|
+
export declare const Bounded: Story;
|
|
111
|
+
//# sourceMappingURL=CwTimePicker.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwTimePicker.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/new-dates/CwTimePicker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAON,KAAK,eAAe,EACpB,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEtE,KAAK,IAAI,GAAG,iBAAiB,GAAG,eAAe,CAAC;AAwBhD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BY,CAAC;AAEvB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,iEAAiE;AACjE,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,0CAA0C;AAC1C,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC"}
|