@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,44 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { CwLoading } from "./CwLoading";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof CwLoading;
|
|
6
|
+
args: {
|
|
7
|
+
isLoading: true;
|
|
8
|
+
text: string;
|
|
9
|
+
size: "regular";
|
|
10
|
+
iconPosition: "outside";
|
|
11
|
+
animation: string;
|
|
12
|
+
};
|
|
13
|
+
argTypes: {
|
|
14
|
+
size: {
|
|
15
|
+
control: "inline-radio";
|
|
16
|
+
options: string[];
|
|
17
|
+
};
|
|
18
|
+
iconPosition: {
|
|
19
|
+
control: "inline-radio";
|
|
20
|
+
options: string[];
|
|
21
|
+
};
|
|
22
|
+
children: {
|
|
23
|
+
control: false;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
27
|
+
isLoading?: boolean | undefined;
|
|
28
|
+
text?: string | undefined;
|
|
29
|
+
size?: ("small" | "large" | "regular") | undefined;
|
|
30
|
+
iconPosition?: ("inside" | "outside") | undefined;
|
|
31
|
+
iconName?: string | undefined;
|
|
32
|
+
animation?: string | undefined;
|
|
33
|
+
children?: import("react").ReactNode;
|
|
34
|
+
}>) => import("react").JSX.Element)[];
|
|
35
|
+
};
|
|
36
|
+
export default meta;
|
|
37
|
+
type Story = StoryObj<typeof meta>;
|
|
38
|
+
/** Wrapping content: the block dims and the spinner sits over it while `isLoading` is true. Toggle it off to see the content. */
|
|
39
|
+
export declare const Default: Story;
|
|
40
|
+
/** With a text next to the spinner. */
|
|
41
|
+
export declare const WithText: Story;
|
|
42
|
+
/** No children: the spinner alone, for an inline loading slot. */
|
|
43
|
+
export declare const Standalone: Story;
|
|
44
|
+
//# sourceMappingURL=CwLoading.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwLoading.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/display/graphics/loading/CwLoading.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAYxC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBwB,CAAC;AAEnC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,iIAAiI;AACjI,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,uCAAuC;AACvC,eAAO,MAAM,QAAQ,EAAE,KAOtB,CAAC;AAEF,kEAAkE;AAClE,eAAO,MAAM,UAAU,EAAE,KASxB,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { CwProgress } from "./CwProgress";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof CwProgress;
|
|
6
|
+
args: {
|
|
7
|
+
value: number;
|
|
8
|
+
label: string;
|
|
9
|
+
indeterminate: false;
|
|
10
|
+
size: "regular";
|
|
11
|
+
layout: "row";
|
|
12
|
+
color: "primary";
|
|
13
|
+
monoValue: false;
|
|
14
|
+
prominent: false;
|
|
15
|
+
};
|
|
16
|
+
argTypes: {
|
|
17
|
+
value: {
|
|
18
|
+
control: {
|
|
19
|
+
type: "range";
|
|
20
|
+
min: number;
|
|
21
|
+
max: number;
|
|
22
|
+
step: number;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
size: {
|
|
26
|
+
control: "inline-radio";
|
|
27
|
+
options: string[];
|
|
28
|
+
};
|
|
29
|
+
layout: {
|
|
30
|
+
control: "inline-radio";
|
|
31
|
+
options: string[];
|
|
32
|
+
};
|
|
33
|
+
color: {
|
|
34
|
+
control: "inline-radio";
|
|
35
|
+
options: readonly ["primary", "success", "warning", "danger", "info"];
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
39
|
+
value?: number | undefined;
|
|
40
|
+
indeterminate?: boolean | undefined;
|
|
41
|
+
label?: string | undefined;
|
|
42
|
+
rightLabel?: string | undefined;
|
|
43
|
+
size?: ("small" | "large" | "regular") | undefined;
|
|
44
|
+
layout?: "row" | "column" | undefined;
|
|
45
|
+
color?: ("primary" | "danger" | "success" | "warning" | "info") | undefined;
|
|
46
|
+
monoValue?: boolean | undefined;
|
|
47
|
+
prominent?: boolean | undefined;
|
|
48
|
+
className?: string | undefined;
|
|
49
|
+
}>) => import("react").JSX.Element)[];
|
|
50
|
+
};
|
|
51
|
+
export default meta;
|
|
52
|
+
type Story = StoryObj<typeof meta>;
|
|
53
|
+
/** A measured operation: `value` 0-100 with the percent on the right. Drag the value control. */
|
|
54
|
+
export declare const Default: Story;
|
|
55
|
+
/** `indeterminate` sweeps when the total is unknown; reduced-motion users get a static partial fill. */
|
|
56
|
+
export declare const Indeterminate: Story;
|
|
57
|
+
/** `rightLabel` replaces the percent; `monoValue` keeps digits from jumping; `prominent` enlarges the value. */
|
|
58
|
+
export declare const ValueLabels: Story;
|
|
59
|
+
/** Every color at the selected value. */
|
|
60
|
+
export declare const Colors: Story;
|
|
61
|
+
//# sourceMappingURL=CwProgress.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwProgress.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/display/graphics/progress/CwProgress.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI1C,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0ByB,CAAC;AAEpC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,iGAAiG;AACjG,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,wGAAwG;AACxG,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAC;AAEF,gHAAgH;AAChH,eAAO,MAAM,WAAW,EAAE,KASzB,CAAC;AAEF,yCAAyC;AACzC,eAAO,MAAM,MAAM,EAAE,KASpB,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { CwSkeleton } from "./CwSkeleton";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof CwSkeleton;
|
|
6
|
+
args: {
|
|
7
|
+
variant: "text";
|
|
8
|
+
count: number;
|
|
9
|
+
};
|
|
10
|
+
argTypes: {
|
|
11
|
+
variant: {
|
|
12
|
+
control: "inline-radio";
|
|
13
|
+
options: string[];
|
|
14
|
+
};
|
|
15
|
+
count: {
|
|
16
|
+
control: {
|
|
17
|
+
type: "number";
|
|
18
|
+
min: number;
|
|
19
|
+
max: number;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
width: {
|
|
23
|
+
control: "text";
|
|
24
|
+
};
|
|
25
|
+
height: {
|
|
26
|
+
control: "text";
|
|
27
|
+
};
|
|
28
|
+
radius: {
|
|
29
|
+
control: "text";
|
|
30
|
+
};
|
|
31
|
+
gap: {
|
|
32
|
+
control: "text";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
36
|
+
variant?: ("text" | "circle" | "rect") | undefined;
|
|
37
|
+
width?: string | undefined;
|
|
38
|
+
height?: string | undefined;
|
|
39
|
+
count?: number | undefined;
|
|
40
|
+
radius?: string | undefined;
|
|
41
|
+
gap?: string | undefined;
|
|
42
|
+
}>) => import("react").JSX.Element)[];
|
|
43
|
+
};
|
|
44
|
+
export default meta;
|
|
45
|
+
type Story = StoryObj<typeof meta>;
|
|
46
|
+
/** Text lines while content loads; with `count` above 1 the last line is shorter, like real text. */
|
|
47
|
+
export declare const Default: Story;
|
|
48
|
+
/** The three shapes side by side. */
|
|
49
|
+
export declare const Variants: Story;
|
|
50
|
+
/** Composed into the shape of the content it stands in for: an avatar and two lines. */
|
|
51
|
+
export declare const Composed: Story;
|
|
52
|
+
//# sourceMappingURL=CwSkeleton.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwSkeleton.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/display/graphics/skeleton/CwSkeleton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsByB,CAAC;AAEpC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,qGAAqG;AACrG,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,qCAAqC;AACrC,eAAO,MAAM,QAAQ,EAAE,KAatB,CAAC;AAEF,wFAAwF;AACxF,eAAO,MAAM,QAAQ,EAAE,KAUtB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("react").FC<import("./CwBadge").CwBadgeProps>;
|
|
5
|
+
args: {
|
|
6
|
+
count: number;
|
|
7
|
+
color: "danger";
|
|
8
|
+
variant: "solid";
|
|
9
|
+
size: "medium";
|
|
10
|
+
max: number;
|
|
11
|
+
showZero: false;
|
|
12
|
+
loading: false;
|
|
13
|
+
};
|
|
14
|
+
argTypes: {
|
|
15
|
+
size: {
|
|
16
|
+
control: "inline-radio";
|
|
17
|
+
options: string[];
|
|
18
|
+
};
|
|
19
|
+
content: {
|
|
20
|
+
control: false;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export default meta;
|
|
25
|
+
type Story = StoryObj<typeof meta>;
|
|
26
|
+
/** A count in a circle; two digits make it a pill, `max` caps it as `99+`. */
|
|
27
|
+
export declare const Default: Story;
|
|
28
|
+
/** No `count` and no `content`: an attention dot. `label` names it for assistive technology. */
|
|
29
|
+
export declare const Dot: Story;
|
|
30
|
+
/** `loading` swaps the circle for a spinner while the count is being fetched. */
|
|
31
|
+
export declare const Loading: Story;
|
|
32
|
+
/** The real use: overlaid on a `CwButton` through its `badge` prop, mixing both variants. */
|
|
33
|
+
export declare const OnButton: Story;
|
|
34
|
+
/** Every color crossed with every variant. */
|
|
35
|
+
export declare const Matrix: Story;
|
|
36
|
+
//# sourceMappingURL=CwBadge.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwBadge.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/display/text/badge/CwBadge.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAO5D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;CAgBsB,CAAC;AAEjC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,8EAA8E;AAC9E,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,gGAAgG;AAChG,eAAO,MAAM,GAAG,EAAE,KAGjB,CAAC;AAEF,iFAAiF;AACjF,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,6FAA6F;AAC7F,eAAO,MAAM,QAAQ,EAAE,KAUtB,CAAC;AAEF,8CAA8C;AAC9C,eAAO,MAAM,MAAM,EAAE,KAapB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { CwHeadingMain } from "./CwHeadingMain";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof CwHeadingMain;
|
|
6
|
+
args: {
|
|
7
|
+
children: string;
|
|
8
|
+
};
|
|
9
|
+
argTypes: {
|
|
10
|
+
children: {
|
|
11
|
+
control: "text";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
/** `CwHeadingMain` renders an `h2` in the heading wrapper. Any heading attribute passes through. */
|
|
18
|
+
export declare const Main: Story;
|
|
19
|
+
/** `CwHeadingSecond` is the same wrapper around an `h3`, for a section inside the page. */
|
|
20
|
+
export declare const Second: Story;
|
|
21
|
+
/** Both levels as they sit on a page. */
|
|
22
|
+
export declare const Hierarchy: Story;
|
|
23
|
+
//# sourceMappingURL=CwHeading.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwHeading.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/display/text/heading/CwHeading.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,QAAA,MAAM,IAAI;;;;;;;;;;;CAS4B,CAAC;AAEvC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,oGAAoG;AACpG,eAAO,MAAM,IAAI,EAAE,KAAU,CAAC;AAE9B,2FAA2F;AAC3F,eAAO,MAAM,MAAM,EAAE,KAEpB,CAAC;AAEF,yCAAyC;AACzC,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { CwLabel } from "./CwLabel";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof CwLabel;
|
|
6
|
+
args: {
|
|
7
|
+
text: string;
|
|
8
|
+
labelWidth: "8rem";
|
|
9
|
+
justify: "left";
|
|
10
|
+
};
|
|
11
|
+
argTypes: {
|
|
12
|
+
labelWidth: {
|
|
13
|
+
control: "select";
|
|
14
|
+
options: string[];
|
|
15
|
+
};
|
|
16
|
+
justify: {
|
|
17
|
+
control: "inline-radio";
|
|
18
|
+
options: string[];
|
|
19
|
+
};
|
|
20
|
+
children: {
|
|
21
|
+
control: false;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export default meta;
|
|
26
|
+
type Story = StoryObj<typeof meta>;
|
|
27
|
+
/** The label every input renders through `labelProps`; `labelWidth` reserves a column so fields line up. */
|
|
28
|
+
export declare const Default: Story;
|
|
29
|
+
/** How it is normally reached: as `labelProps` on an input, with the width shared by the form. */
|
|
30
|
+
export declare const OnAnInput: Story;
|
|
31
|
+
//# sourceMappingURL=CwLabel.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwLabel.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/display/text/label/CwLabel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;CAasB,CAAC;AAEjC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,4GAA4G;AAC5G,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,kGAAkG;AAClG,eAAO,MAAM,SAAS,EAAE,KAQvB,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { CwMessageType } from "./CwMessage";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").FC<import("./CwMessage").CwMessageProps>;
|
|
6
|
+
args: {
|
|
7
|
+
message: string;
|
|
8
|
+
messageType: CwMessageType.SUCCESS;
|
|
9
|
+
duration: number;
|
|
10
|
+
onClose: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
11
|
+
};
|
|
12
|
+
argTypes: {
|
|
13
|
+
messageType: {
|
|
14
|
+
control: "select";
|
|
15
|
+
options: CwMessageType[];
|
|
16
|
+
labels: {
|
|
17
|
+
"check-circle": string;
|
|
18
|
+
"info-bubble": string;
|
|
19
|
+
warning: string;
|
|
20
|
+
"close-circle": string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
onClick: {
|
|
24
|
+
control: false;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export default meta;
|
|
29
|
+
type Story = StoryObj<typeof meta>;
|
|
30
|
+
/** The message element itself. It calls `onClose` after `duration`; consumers rarely render it directly. */
|
|
31
|
+
export declare const Default: Story;
|
|
32
|
+
/** The four types side by side. */
|
|
33
|
+
export declare const Types: Story;
|
|
34
|
+
/** `CwDisplayMessage(message, type)`: the global toast, fire and forget, for outcomes the user does not act on. */
|
|
35
|
+
export declare const Toast: Story;
|
|
36
|
+
/** `useCwMessage()`: the same element placed inline, for a message the user must act on, next to what it concerns. */
|
|
37
|
+
export declare const Inline: Story;
|
|
38
|
+
//# sourceMappingURL=CwMessage.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwMessage.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/display/text/message/CwMessage.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAA+B,aAAa,EAAgB,MAAM,aAAa,CAAC;AAIvF,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;CAcwB,CAAC;AAEnC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,4GAA4G;AAC5G,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,mCAAmC;AACnC,eAAO,MAAM,KAAK,EAAE,KASnB,CAAC;AAEF,mHAAmH;AACnH,eAAO,MAAM,KAAK,EAAE,KAYnB,CAAC;AAYF,sHAAsH;AACtH,eAAO,MAAM,MAAM,EAAE,KAIpB,CAAC"}
|
|
@@ -3,28 +3,28 @@ import './cw-chip.css';
|
|
|
3
3
|
export type ChipColorScheme = 'primary' | 'danger' | 'warning' | 'success' | 'info' | 'neutral' | 'custom';
|
|
4
4
|
export type ChipVariant = 'soft' | 'solid' | 'outline' | 'ghost';
|
|
5
5
|
export interface CwChipProps {
|
|
6
|
-
|
|
6
|
+
/**Text content of the chip */
|
|
7
7
|
label?: string;
|
|
8
|
-
|
|
8
|
+
/**Predefined color of the chip */
|
|
9
9
|
color?: ChipColorScheme;
|
|
10
10
|
/**
|
|
11
11
|
* Predefined color scheme of the chip
|
|
12
12
|
* @deprecated Use `color` instead. Still honoured, but `color` wins when both are passed.
|
|
13
13
|
*/
|
|
14
14
|
colorScheme?: ChipColorScheme;
|
|
15
|
-
|
|
15
|
+
/**Custom color (only used when the color is 'custom') */
|
|
16
16
|
customColor?: string;
|
|
17
|
-
|
|
17
|
+
/**Visual variant of the chip */
|
|
18
18
|
variant?: ChipVariant;
|
|
19
|
-
|
|
19
|
+
/**Additional CSS class name */
|
|
20
20
|
className?: string;
|
|
21
|
-
|
|
21
|
+
/**Whether to show a close icon */
|
|
22
22
|
closable?: boolean;
|
|
23
|
-
|
|
23
|
+
/**Handler for close icon click, required if closable is true */
|
|
24
24
|
onClose?: () => void;
|
|
25
|
-
|
|
25
|
+
/**Optional icon */
|
|
26
26
|
icon?: string;
|
|
27
|
-
|
|
27
|
+
/**Additional inline styles */
|
|
28
28
|
style?: React.CSSProperties;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwChip.d.ts","sourceRoot":"","sources":["../../../../../../src/components/display/text/tag/CwChip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,eAAe,CAAC;AAEvB,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC3G,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AAEjE,MAAM,WAAW,WAAW;IAC3B,
|
|
1
|
+
{"version":3,"file":"CwChip.d.ts","sourceRoot":"","sources":["../../../../../../src/components/display/text/tag/CwChip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,eAAe,CAAC;AAEvB,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC3G,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AAEjE,MAAM,WAAW,WAAW;IAC3B,8BAA8B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACd,kCAAkC;IACnC,KAAK,CAAC,EAAE,eAAe,CAAC;IACvB;;;OAGG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,yDAAyD;IAC1D,WAAW,CAAC,EAAE,MAAM,CAAC;IACpB,gCAAgC;IACjC,OAAO,CAAC,EAAE,WAAW,CAAC;IACrB,+BAA+B;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IAClB,kCAAkC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAClB,gEAAgE;IACjE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,mBAAmB;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACb,8BAA8B;IAC/B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC3B;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAsExC,CAAC"}
|