@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 @@
|
|
|
1
|
+
{"version":3,"file":"CwSelect.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/select/CwSelect.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAMN,KAAK,cAAc,EACnB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAE1D,KAAK,IAAI,GAAG,aAAa,GAAG,cAAc,CAAC;AAkB3C,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBY,CAAC;AAEvB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,2GAA2G;AAC3G,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,MAAM,EAAE,KAEpB,CAAC;AAEF,+HAA+H;AAC/H,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAC;AAEF,oHAAoH;AACpH,eAAO,MAAM,cAAc,EAAE,KAc5B,CAAC"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { type InputStoryArgs } from "../../../../storybook/inputStoryArgs";
|
|
3
|
+
import { CwTagSelector, type CwTagSelectorOption, type CwTagSelectorProps } from "./CwTagSelector";
|
|
4
|
+
type Args = CwTagSelectorProps & InputStoryArgs;
|
|
5
|
+
declare const meta: {
|
|
6
|
+
title: string;
|
|
7
|
+
component: typeof CwTagSelector;
|
|
8
|
+
args: {
|
|
9
|
+
labelText: string;
|
|
10
|
+
options: CwTagSelectorOption[];
|
|
11
|
+
value: string[];
|
|
12
|
+
placeholder: string;
|
|
13
|
+
showSelectAll: false;
|
|
14
|
+
disabled: false;
|
|
15
|
+
onChange: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
16
|
+
direction: "row" | "column";
|
|
17
|
+
alignItems: "center" | "stretch" | "flex-end" | "flex-start";
|
|
18
|
+
labelWidth: typeof import("../../../../storybook/inputStoryArgs").LABEL_WIDTHS[number];
|
|
19
|
+
feedbackType: "none" | "danger" | "success" | "neutral" | "warning" | "info";
|
|
20
|
+
feedbackMessage: string;
|
|
21
|
+
button: "none" | "text" | "icon";
|
|
22
|
+
buttonVariant: "solid" | "outline" | "ghost";
|
|
23
|
+
buttonColor: "primary" | "danger" | "neutral";
|
|
24
|
+
};
|
|
25
|
+
argTypes: {
|
|
26
|
+
iconProps: {
|
|
27
|
+
control: false;
|
|
28
|
+
};
|
|
29
|
+
button: {
|
|
30
|
+
readonly table: {
|
|
31
|
+
readonly disable: true;
|
|
32
|
+
};
|
|
33
|
+
readonly control: false;
|
|
34
|
+
};
|
|
35
|
+
buttonVariant: {
|
|
36
|
+
readonly table: {
|
|
37
|
+
readonly disable: true;
|
|
38
|
+
};
|
|
39
|
+
readonly control: false;
|
|
40
|
+
};
|
|
41
|
+
buttonColor: {
|
|
42
|
+
readonly table: {
|
|
43
|
+
readonly disable: true;
|
|
44
|
+
};
|
|
45
|
+
readonly control: false;
|
|
46
|
+
};
|
|
47
|
+
alignProps: {
|
|
48
|
+
control: false;
|
|
49
|
+
};
|
|
50
|
+
labelProps: {
|
|
51
|
+
control: false;
|
|
52
|
+
};
|
|
53
|
+
feedback: {
|
|
54
|
+
control: false;
|
|
55
|
+
};
|
|
56
|
+
buttonProps: {
|
|
57
|
+
control: false;
|
|
58
|
+
};
|
|
59
|
+
direction: import("storybook/internal/csf").InputType;
|
|
60
|
+
alignItems: import("storybook/internal/csf").InputType;
|
|
61
|
+
labelText: import("storybook/internal/csf").InputType;
|
|
62
|
+
labelWidth: import("storybook/internal/csf").InputType;
|
|
63
|
+
feedbackType: import("storybook/internal/csf").InputType;
|
|
64
|
+
feedbackMessage: import("storybook/internal/csf").InputType;
|
|
65
|
+
};
|
|
66
|
+
parameters: {
|
|
67
|
+
docs: {
|
|
68
|
+
source: {
|
|
69
|
+
transform: (_code: string, storyContext: {
|
|
70
|
+
args: Record<string, unknown>;
|
|
71
|
+
}) => string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
76
|
+
id?: string | undefined;
|
|
77
|
+
options: CwTagSelectorOption[];
|
|
78
|
+
value: string[];
|
|
79
|
+
onChange: (selectedValues: string[]) => void;
|
|
80
|
+
labelProps?: import("../../../..").CwLabelProps | undefined;
|
|
81
|
+
iconProps?: import("../../../display/graphics/icon/CwIcon").CwIconProps | undefined;
|
|
82
|
+
alignProps?: import("../../../..").CwAlignProps | undefined;
|
|
83
|
+
placeholder?: string | undefined;
|
|
84
|
+
disabled?: boolean | undefined;
|
|
85
|
+
showSelectAll?: boolean | undefined;
|
|
86
|
+
feedback?: (import("../../../../common/interfaces/CwFormTypes").CwInputFeedback | import("../../../../common/interfaces/CwFormTypes").CwInputFeedback[]) | undefined;
|
|
87
|
+
className?: string | undefined;
|
|
88
|
+
style?: React.CSSProperties | undefined;
|
|
89
|
+
direction: "row" | "column";
|
|
90
|
+
alignItems: "center" | "stretch" | "flex-end" | "flex-start";
|
|
91
|
+
labelText: string;
|
|
92
|
+
labelWidth: typeof import("../../../../storybook/inputStoryArgs").LABEL_WIDTHS[number];
|
|
93
|
+
feedbackType: "none" | "danger" | "success" | "neutral" | "warning" | "info";
|
|
94
|
+
feedbackMessage: string;
|
|
95
|
+
button: "none" | "text" | "icon";
|
|
96
|
+
buttonVariant: "solid" | "outline" | "ghost";
|
|
97
|
+
buttonColor: "primary" | "danger" | "neutral";
|
|
98
|
+
}>, { args }: import("storybook/internal/csf").StoryContext<import("@storybook/react").ReactRenderer, {
|
|
99
|
+
id?: string | undefined;
|
|
100
|
+
options: CwTagSelectorOption[];
|
|
101
|
+
value: string[];
|
|
102
|
+
onChange: (selectedValues: string[]) => void;
|
|
103
|
+
labelProps?: import("../../../..").CwLabelProps | undefined;
|
|
104
|
+
iconProps?: import("../../../display/graphics/icon/CwIcon").CwIconProps | undefined;
|
|
105
|
+
alignProps?: import("../../../..").CwAlignProps | undefined;
|
|
106
|
+
placeholder?: string | undefined;
|
|
107
|
+
disabled?: boolean | undefined;
|
|
108
|
+
showSelectAll?: boolean | undefined;
|
|
109
|
+
feedback?: (import("../../../../common/interfaces/CwFormTypes").CwInputFeedback | import("../../../../common/interfaces/CwFormTypes").CwInputFeedback[]) | undefined;
|
|
110
|
+
className?: string | undefined;
|
|
111
|
+
style?: React.CSSProperties | undefined;
|
|
112
|
+
direction: "row" | "column";
|
|
113
|
+
alignItems: "center" | "stretch" | "flex-end" | "flex-start";
|
|
114
|
+
labelText: string;
|
|
115
|
+
labelWidth: typeof import("../../../../storybook/inputStoryArgs").LABEL_WIDTHS[number];
|
|
116
|
+
feedbackType: "none" | "danger" | "success" | "neutral" | "warning" | "info";
|
|
117
|
+
feedbackMessage: string;
|
|
118
|
+
button: "none" | "text" | "icon";
|
|
119
|
+
buttonVariant: "solid" | "outline" | "ghost";
|
|
120
|
+
buttonColor: "primary" | "danger" | "neutral";
|
|
121
|
+
}>) => import("react").JSX.Element)[];
|
|
122
|
+
render: (args: Args) => import("react").JSX.Element;
|
|
123
|
+
};
|
|
124
|
+
export default meta;
|
|
125
|
+
type Story = StoryObj<typeof meta>;
|
|
126
|
+
/** Selected options render as removable chips inside the field; the list filters as you type. */
|
|
127
|
+
export declare const Default: Story;
|
|
128
|
+
export declare const Column: Story;
|
|
129
|
+
/** `showSelectAll` adds a toggle at the top of the list. */
|
|
130
|
+
export declare const WithSelectAll: Story;
|
|
131
|
+
export declare const WithFeedback: Story;
|
|
132
|
+
//# sourceMappingURL=CwTagSelector.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwTagSelector.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/tag-selector/CwTagSelector.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAMN,KAAK,cAAc,EACnB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,KAAK,mBAAmB,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEnG,KAAK,IAAI,GAAG,kBAAkB,GAAG,cAAc,CAAC;AAoChD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BY,CAAC;AAEvB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,iGAAiG;AACjG,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,MAAM,EAAE,KAEpB,CAAC;AAEF,4DAA4D;AAC5D,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { CwToggle, type CwToggleProps } from "./CwToggle";
|
|
3
|
+
interface Args extends CwToggleProps {
|
|
4
|
+
/** Story-only: labelProps.text */
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
declare const meta: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: typeof CwToggle;
|
|
10
|
+
args: {
|
|
11
|
+
label: string;
|
|
12
|
+
checked: true;
|
|
13
|
+
direction: "row";
|
|
14
|
+
disabled: false;
|
|
15
|
+
};
|
|
16
|
+
argTypes: {
|
|
17
|
+
label: {
|
|
18
|
+
control: "text";
|
|
19
|
+
description: string;
|
|
20
|
+
table: {
|
|
21
|
+
category: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
labelProps: {
|
|
25
|
+
control: false;
|
|
26
|
+
};
|
|
27
|
+
direction: {
|
|
28
|
+
control: "inline-radio";
|
|
29
|
+
options: string[];
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
parameters: {
|
|
33
|
+
docs: {
|
|
34
|
+
source: {
|
|
35
|
+
transform: (_code: string, storyContext: {
|
|
36
|
+
args: Record<string, unknown>;
|
|
37
|
+
}) => string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
render: (args: Args) => import("react").JSX.Element;
|
|
42
|
+
};
|
|
43
|
+
export default meta;
|
|
44
|
+
type Story = StoryObj<typeof meta>;
|
|
45
|
+
/** Row is the default and the WinOps convention: the label sits beside the switch. */
|
|
46
|
+
export declare const Default: Story;
|
|
47
|
+
//# sourceMappingURL=CwToggle.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwToggle.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/toggle/CwToggle.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAE1D,UAAU,IAAK,SAAQ,aAAa;IACnC,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;CACd;AAWD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBY,CAAC;AAEvB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,sFAAsF;AACtF,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { type CwTreeNode } from "./CwTreeView";
|
|
3
|
+
type Folder = {
|
|
4
|
+
path: string;
|
|
5
|
+
};
|
|
6
|
+
declare const meta: {
|
|
7
|
+
title: string;
|
|
8
|
+
component: ({ data, onSelect, allowParentSelection, selectedId: initialSelectedId }: {
|
|
9
|
+
data: CwTreeNode<Folder>[];
|
|
10
|
+
onSelect: (node: CwTreeNode<Folder>) => void;
|
|
11
|
+
allowParentSelection?: boolean;
|
|
12
|
+
selectedId?: string | number | null;
|
|
13
|
+
}) => import("react").JSX.Element;
|
|
14
|
+
args: {
|
|
15
|
+
data: CwTreeNode<Folder>[];
|
|
16
|
+
allowParentSelection: false;
|
|
17
|
+
selectedId: null;
|
|
18
|
+
onSelect: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
19
|
+
};
|
|
20
|
+
argTypes: {
|
|
21
|
+
data: {
|
|
22
|
+
control: false;
|
|
23
|
+
};
|
|
24
|
+
selectedId: {
|
|
25
|
+
control: false;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
29
|
+
data: CwTreeNode<Folder>[];
|
|
30
|
+
onSelect: (node: CwTreeNode<Folder>) => void;
|
|
31
|
+
allowParentSelection?: boolean | undefined;
|
|
32
|
+
selectedId?: string | number | null | undefined;
|
|
33
|
+
}>) => import("react").JSX.Element)[];
|
|
34
|
+
};
|
|
35
|
+
export default meta;
|
|
36
|
+
type Story = StoryObj<typeof meta>;
|
|
37
|
+
/** Only leaves select by default; clicking a parent expands it. The search box filters the tree. */
|
|
38
|
+
export declare const Default: Story;
|
|
39
|
+
/** `selectedId` selects a node on mount and expands the path to it. */
|
|
40
|
+
export declare const Preselected: Story;
|
|
41
|
+
//# sourceMappingURL=CwTreeView.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwTreeView.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/choice/tree-view/CwTreeView.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAc,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE3D,KAAK,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAgC/B,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBiC,CAAC;AAE5C,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,oGAAoG;AACpG,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,uEAAuE;AACvE,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC"}
|
|
@@ -13,5 +13,9 @@ export interface CwInputProps {
|
|
|
13
13
|
required?: boolean;
|
|
14
14
|
error?: boolean;
|
|
15
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* Legacy text input with its own label markup, predating the design system.
|
|
18
|
+
* @deprecated Use {@link CwInputText} instead.
|
|
19
|
+
*/
|
|
16
20
|
export declare function CwInput(CwInputProps: React.PropsWithChildren<CwInputProps>): React.JSX.Element;
|
|
17
21
|
//# sourceMappingURL=CwInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwInput.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/any/CwInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,YAAY;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,wBAAgB,OAAO,CAAC,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAAC,YAAY,CAAC,qBA6C1E"}
|
|
1
|
+
{"version":3,"file":"CwInput.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/any/CwInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,YAAY;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAAC,YAAY,CAAC,qBA6C1E"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface
|
|
2
|
+
export interface CwColorPickerProps {
|
|
3
3
|
initialColor: string;
|
|
4
4
|
onChange: (color: string, rgb?: {
|
|
5
5
|
r: number;
|
|
@@ -12,6 +12,5 @@ interface ColorPickerProps {
|
|
|
12
12
|
}) => void;
|
|
13
13
|
previewText?: string;
|
|
14
14
|
}
|
|
15
|
-
export declare const CwColorPicker: React.FC<
|
|
16
|
-
export {};
|
|
15
|
+
export declare const CwColorPicker: React.FC<CwColorPickerProps>;
|
|
17
16
|
//# sourceMappingURL=CwColorPicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwColorPicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/color/CwColorPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAIxE,
|
|
1
|
+
{"version":3,"file":"CwColorPicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/color/CwColorPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAIxE,MAAM,WAAW,kBAAkB;IAClC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,GAAG,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACxH,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAmTtD,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { type CwColorPickerProps } from "./CwColorPicker";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").FC<CwColorPickerProps>;
|
|
6
|
+
args: {
|
|
7
|
+
initialColor: string;
|
|
8
|
+
previewText: string;
|
|
9
|
+
onChange: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
10
|
+
};
|
|
11
|
+
argTypes: {
|
|
12
|
+
initialColor: {
|
|
13
|
+
control: "color";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
parameters: {
|
|
17
|
+
docs: {
|
|
18
|
+
source: {
|
|
19
|
+
transform: (_code: string, storyContext: {
|
|
20
|
+
args: Record<string, unknown>;
|
|
21
|
+
}) => string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
render: (args: CwColorPickerProps) => import("react").JSX.Element;
|
|
26
|
+
};
|
|
27
|
+
export default meta;
|
|
28
|
+
type Story = StoryObj<typeof meta>;
|
|
29
|
+
/** The panel `CwInputColor` opens: saturation area, hue slider, hex field and preview. The lines below show the three values `onChange` emits. */
|
|
30
|
+
export declare const Default: Story;
|
|
31
|
+
//# sourceMappingURL=CwColorPicker.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwColorPicker.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/color/CwColorPicker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAK5D,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAyBzE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;CAa4B,CAAC;AAEvC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,kJAAkJ;AAClJ,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -26,7 +26,7 @@ export interface CwInputLayoutProps {
|
|
|
26
26
|
* layoutProps={{ direction: "row", align: "center" }}
|
|
27
27
|
* />
|
|
28
28
|
*/
|
|
29
|
-
interface CwInputColorProps {
|
|
29
|
+
export interface CwInputColorProps {
|
|
30
30
|
value: string;
|
|
31
31
|
onChange: (color: string) => void;
|
|
32
32
|
previewText?: string;
|
|
@@ -40,5 +40,4 @@ interface CwInputColorProps {
|
|
|
40
40
|
style?: React.CSSProperties;
|
|
41
41
|
}
|
|
42
42
|
export declare const CwInputColor: React.FC<CwInputColorProps>;
|
|
43
|
-
export {};
|
|
44
43
|
//# sourceMappingURL=CwInputColor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwInputColor.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/color/CwInputColor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAEpE,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,mDAAmD,CAAC;AAI/F,MAAM,WAAW,kBAAkB;IAClC,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC7B,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;CACnC;AACD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,
|
|
1
|
+
{"version":3,"file":"CwInputColor.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/color/CwInputColor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAEpE,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,mDAAmD,CAAC;AAI/F,MAAM,WAAW,kBAAkB;IAClC,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC7B,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;CACnC;AACD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,iBAAiB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC5B;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAsNpD,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { type CwInputColorProps } from "./CwInputColor";
|
|
3
|
+
interface Args extends CwInputColorProps {
|
|
4
|
+
/** Story-only: labelProps.text */
|
|
5
|
+
label: string;
|
|
6
|
+
/** Story-only: layoutProps.direction */
|
|
7
|
+
direction: "row" | "column";
|
|
8
|
+
/** Story-only: layoutProps.align */
|
|
9
|
+
align: "start" | "center" | "end";
|
|
10
|
+
}
|
|
11
|
+
declare const meta: {
|
|
12
|
+
title: string;
|
|
13
|
+
component: import("react").FC<CwInputColorProps>;
|
|
14
|
+
args: {
|
|
15
|
+
label: string;
|
|
16
|
+
direction: "row";
|
|
17
|
+
align: "center";
|
|
18
|
+
value: string;
|
|
19
|
+
previewText: string;
|
|
20
|
+
disabled: false;
|
|
21
|
+
readOnly: false;
|
|
22
|
+
onChange: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
23
|
+
};
|
|
24
|
+
argTypes: {
|
|
25
|
+
label: {
|
|
26
|
+
control: "text";
|
|
27
|
+
description: string;
|
|
28
|
+
table: {
|
|
29
|
+
category: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
direction: {
|
|
33
|
+
control: "inline-radio";
|
|
34
|
+
options: string[];
|
|
35
|
+
description: string;
|
|
36
|
+
table: {
|
|
37
|
+
category: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
align: {
|
|
41
|
+
control: "inline-radio";
|
|
42
|
+
options: string[];
|
|
43
|
+
description: string;
|
|
44
|
+
table: {
|
|
45
|
+
category: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
labelProps: {
|
|
49
|
+
control: false;
|
|
50
|
+
};
|
|
51
|
+
layoutProps: {
|
|
52
|
+
control: false;
|
|
53
|
+
};
|
|
54
|
+
value: {
|
|
55
|
+
control: "color";
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
59
|
+
label: string;
|
|
60
|
+
direction: "row" | "column";
|
|
61
|
+
align: "start" | "center" | "end";
|
|
62
|
+
value: string;
|
|
63
|
+
onChange: (color: string) => void;
|
|
64
|
+
previewText?: string | undefined;
|
|
65
|
+
disabled?: boolean | undefined;
|
|
66
|
+
readOnly?: boolean | undefined;
|
|
67
|
+
width?: string | undefined;
|
|
68
|
+
height?: string | undefined;
|
|
69
|
+
labelProps?: import("../../../..").CwLabelProps | undefined;
|
|
70
|
+
layoutProps?: import("./CwInputColor").CwInputLayoutProps | undefined;
|
|
71
|
+
className?: string | undefined;
|
|
72
|
+
style?: React.CSSProperties | undefined;
|
|
73
|
+
}>) => import("react").JSX.Element)[];
|
|
74
|
+
parameters: {
|
|
75
|
+
docs: {
|
|
76
|
+
source: {
|
|
77
|
+
transform: (_code: string, storyContext: {
|
|
78
|
+
args: Record<string, unknown>;
|
|
79
|
+
}) => string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
render: (args: Args) => import("react").JSX.Element;
|
|
84
|
+
};
|
|
85
|
+
export default meta;
|
|
86
|
+
type Story = StoryObj<typeof meta>;
|
|
87
|
+
/** A swatch that opens the color picker in a portal; `onChange` receives the hex string. */
|
|
88
|
+
export declare const Default: Story;
|
|
89
|
+
/** `readOnly` keeps the swatch visible and focusable but never opens the picker. */
|
|
90
|
+
export declare const ReadOnly: Story;
|
|
91
|
+
//# sourceMappingURL=CwInputColor.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwInputColor.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/color/CwInputColor.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAI5D,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEtE,UAAU,IAAK,SAAQ,iBAAiB;IACvC,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,SAAS,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC5B,oCAAoC;IACpC,KAAK,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;CAClC;AAwBD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA7BF,MAAM;mBAEF,KAAK,GAAG,QAAQ;eAEpB,OAAO,GAAG,QAAQ,GAAG,KAAK;;;;;;;;;;;;;;;;;;;;;;;CAuDZ,CAAC;AAEvB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,4FAA4F;AAC5F,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,oFAAoF;AACpF,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC"}
|
|
@@ -34,5 +34,9 @@ export interface CwInputDateTextProps extends Omit<React.HTMLProps<HTMLInputElem
|
|
|
34
34
|
* />
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
|
+
/**
|
|
38
|
+
* Text date input with a native picker fallback, predating the calendar pickers.
|
|
39
|
+
* @deprecated Use {@link CwDatePickerTemporal} (or {@link CwDatePicker} at a JS Date boundary) instead.
|
|
40
|
+
*/
|
|
37
41
|
export declare function CwInputDateText(props: CwInputDateTextProps): React.JSX.Element;
|
|
38
42
|
//# sourceMappingURL=CwInputDateText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwInputDateText.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/date-text/CwInputDateText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAY,aAAa,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAU,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAAW,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAW,YAAY,EAAE,MAAM,+BAA+B,CAAC;AA+CtE,MAAM,WAAW,oBAChB,SAAQ,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,aAAa,GAAG,cAAc,GAAG,UAAU,CAAC;IACnH,8BAA8B;IAC9B,UAAU,CAAC,EAAE,YAAY,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,CAAC;IACvE,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,qBA2H1D"}
|
|
1
|
+
{"version":3,"file":"CwInputDateText.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/date-text/CwInputDateText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAY,aAAa,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAU,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAAW,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAW,YAAY,EAAE,MAAM,+BAA+B,CAAC;AA+CtE,MAAM,WAAW,oBAChB,SAAQ,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,aAAa,GAAG,cAAc,GAAG,UAAU,CAAC;IACnH,8BAA8B;IAC9B,UAAU,CAAC,EAAE,YAAY,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,CAAC;IACvE,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,qBA2H1D"}
|