@cwellt_software/cwellt-reactjs-lib 1.5.2 → 1.5.4
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/new-cw-icons/css/new-cw-icons.css +6 -0
- package/dist/index.cjs.js +278 -89
- package/dist/index.css +2 -2
- package/dist/index.d.ts +133 -16
- package/dist/index.es.js +278 -90
- package/dist/src/components/control/action/button/CwButton.d.ts +5 -0
- package/dist/src/components/control/action/button/CwButton.d.ts.map +1 -1
- package/dist/src/components/control/action/button/CwButton.stories.d.ts +28 -0
- package/dist/src/components/control/action/button/CwButton.stories.d.ts.map +1 -0
- package/dist/src/components/control/action/button/CwButtonBadge.d.ts +63 -0
- package/dist/src/components/control/action/button/CwButtonBadge.d.ts.map +1 -0
- package/dist/src/components/control/choice/checkbox/CwCheckboxGroup.d.ts.map +1 -1
- package/dist/src/components/control/choice/checkbox/CwRadioGroup.d.ts.map +1 -1
- package/dist/src/components/control/choice/multi-filter/CwMultiFilter.d.ts +11 -0
- package/dist/src/components/control/choice/multi-filter/CwMultiFilter.d.ts.map +1 -1
- package/dist/src/components/control/choice/select/CwDropdown.d.ts.map +1 -1
- package/dist/src/components/control/choice/tag-selector/CwTagSelector.d.ts.map +1 -1
- package/dist/src/components/control/input/digit/CwDigit.d.ts +6 -0
- package/dist/src/components/control/input/digit/CwDigit.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDatePicker.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDatePickerTemporal.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDateRangePicker.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwDateRangePickerTemporal.d.ts.map +1 -1
- package/dist/src/components/control/input/new-dates/CwTimePicker.d.ts.map +1 -1
- package/dist/src/components/control/input/text/CwInputText.stories.d.ts +840 -0
- package/dist/src/components/control/input/text/CwInputText.stories.d.ts.map +1 -0
- package/dist/src/components/control/input/weekday/CwWeekdaySelector.d.ts +16 -44
- package/dist/src/components/control/input/weekday/CwWeekdaySelector.d.ts.map +1 -1
- package/dist/src/components/control/input/weekday/weekdayNames.d.ts +14 -0
- package/dist/src/components/control/input/weekday/weekdayNames.d.ts.map +1 -0
- package/dist/src/components/control/input/weekday/weekdays.d.ts +65 -0
- package/dist/src/components/control/input/weekday/weekdays.d.ts.map +1 -0
- package/dist/src/components/display/graphics/progress/CwProgress.d.ts +3 -1
- package/dist/src/components/display/graphics/progress/CwProgress.d.ts.map +1 -1
- package/dist/src/components/display/text/badge/CwBadge.d.ts +48 -0
- package/dist/src/components/display/text/badge/CwBadge.d.ts.map +1 -0
- package/dist/src/components/display/text/badge/badgeContent.d.ts +33 -0
- package/dist/src/components/display/text/badge/badgeContent.d.ts.map +1 -0
- package/dist/src/components/display/text/note/CwNote.stories.d.ts +51 -0
- package/dist/src/components/display/text/note/CwNote.stories.d.ts.map +1 -0
- package/dist/src/components/display/text/tag/CwChip.d.ts +16 -8
- package/dist/src/components/display/text/tag/CwChip.d.ts.map +1 -1
- package/dist/src/components/display/text/tag/CwChip.stories.d.ts +29 -0
- package/dist/src/components/display/text/tag/CwChip.stories.d.ts.map +1 -0
- package/dist/src/components/layout/tabs/CwTabs.d.ts +7 -1
- package/dist/src/components/layout/tabs/CwTabs.d.ts.map +1 -1
- package/dist/src/index.d.ts +3 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/playground/PlaygroundApp.d.ts.map +1 -1
- package/dist/src/playground/pages/CwBadgePage.d.ts +3 -0
- package/dist/src/playground/pages/CwBadgePage.d.ts.map +1 -0
- package/dist/src/playground/pages/CwChipPage.d.ts +3 -0
- package/dist/src/playground/pages/CwChipPage.d.ts.map +1 -0
- package/dist/src/playground/pages/CwDigitPage.d.ts +3 -0
- package/dist/src/playground/pages/CwDigitPage.d.ts.map +1 -0
- package/dist/src/playground/pages/CwWeekdaySelectorPage.d.ts +3 -0
- package/dist/src/playground/pages/CwWeekdaySelectorPage.d.ts.map +1 -0
- package/dist/src/playground/pages/FormControlLayoutsPage.d.ts +3 -0
- package/dist/src/playground/pages/FormControlLayoutsPage.d.ts.map +1 -0
- package/dist/src/playground/pages/ProgressPage.d.ts.map +1 -1
- package/dist/src/playground/pages/SelectorsPage.d.ts.map +1 -1
- package/dist/src/storybook/inputStoryArgs.d.ts +68 -0
- package/dist/src/storybook/inputStoryArgs.d.ts.map +1 -0
- package/dist/src/storybook/layoutStoryArgs.d.ts +60 -0
- package/dist/src/storybook/layoutStoryArgs.d.ts.map +1 -0
- package/dist/src/storybook/storySource.d.ts +22 -0
- package/dist/src/storybook/storySource.d.ts.map +1 -0
- package/dist/test/components/control/input/weekday/weekdayNames.test.d.ts +2 -0
- package/dist/test/components/control/input/weekday/weekdayNames.test.d.ts.map +1 -0
- package/dist/test/components/control/input/weekday/weekdays.test.d.ts +2 -0
- package/dist/test/components/control/input/weekday/weekdays.test.d.ts.map +1 -0
- package/dist/test/components/display/text/badge/badgeContent.test.d.ts +2 -0
- package/dist/test/components/display/text/badge/badgeContent.test.d.ts.map +1 -0
- package/dist/test/storybook/inputStoryArgs.test.d.ts +2 -0
- package/dist/test/storybook/inputStoryArgs.test.d.ts.map +1 -0
- package/dist/test/storybook/layoutStoryArgs.test.d.ts +2 -0
- package/dist/test/storybook/layoutStoryArgs.test.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwInputText.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/text/CwInputText.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAMN,KAAK,cAAc,EACnB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEnE,KAAK,IAAI,GAAG,gBAAgB,GAAG,cAAc,CAAC;AAO9C,QAAA,MAAM,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UAAU,EAAE,KAQxB,CAAC;AAEF,wGAAwG;AACxG,eAAO,MAAM,YAAY,EAAE,KAQ1B,CAAC"}
|
|
@@ -1,52 +1,24 @@
|
|
|
1
1
|
import { type FC } from "react";
|
|
2
|
+
import type { CwInputFeedback } from "../../../../common/interfaces/CwFormTypes";
|
|
3
|
+
import type { CwLayoutProps } from "../../../../common/interfaces/CwLayoutProps";
|
|
4
|
+
import { type CwLabelProps } from "../../../../components/display/text/label/CwLabel";
|
|
2
5
|
interface CwWeekdaySelectorProps {
|
|
3
6
|
value?: string;
|
|
4
7
|
onChange?: (value: string) => void;
|
|
5
8
|
disabled?: boolean;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
export declare class Weekdays {
|
|
22
|
-
private static readonly WEEKDAYS_STANDARD_ARRAY_FULL;
|
|
23
|
-
private static readonly WEEKDAYS_STANDARD_ARRAY_EMPTY;
|
|
24
|
-
private static readonly WEEKDAYS_STANDARD_STRING_FULL;
|
|
25
|
-
private static readonly WEEKDAYS_STANDARD_STRING_EMPTY;
|
|
26
|
-
static readonly WEEKDAYS_TO_USA_LETTER_FORMAT: Map<string, string>;
|
|
27
|
-
static readonly WEEKDAYS_TO_USA_SHORT_FORMAT: Map<string, string>;
|
|
28
|
-
static readonly WEEKDAY_MAP: {
|
|
29
|
-
[key: number]: Weekday;
|
|
30
|
-
};
|
|
31
|
-
private days;
|
|
32
|
-
constructor(days?: Weekday[] | string);
|
|
33
|
-
includes(day: Weekday): boolean;
|
|
34
|
-
static fromString(value: string): Weekdays;
|
|
35
|
-
static isValidToday(validFrom: Date, validUntil: Date, validWeekdays: Weekdays): boolean;
|
|
36
|
-
private normalize;
|
|
37
|
-
toString(): string;
|
|
38
|
-
toStringFormatted(limiters?: {
|
|
39
|
-
startExistingDay: string;
|
|
40
|
-
endExsitingDay: string;
|
|
41
|
-
startMissingDay: string;
|
|
42
|
-
endMissingDay: string;
|
|
43
|
-
separator: string;
|
|
44
|
-
}, format?: Map<string, string>): string;
|
|
45
|
-
toArray(): Weekday[];
|
|
46
|
-
isEmpty(): boolean;
|
|
47
|
-
isFull(): boolean;
|
|
48
|
-
static getFullWeek(): Weekday[];
|
|
49
|
-
static getEmptyWeek(): Weekday[];
|
|
9
|
+
/** Props for the label; undefined == no label
|
|
10
|
+
* @example labelProps={{ text: "Operating days" }} */
|
|
11
|
+
labelProps?: CwLabelProps;
|
|
12
|
+
/** Label placement relative to the day strip: "row" (default, label beside) | "column" (label above).
|
|
13
|
+
* Honors align and gap. */
|
|
14
|
+
layout?: CwLayoutProps;
|
|
15
|
+
/** Messages shown below the day strip; accepts a single message or an array */
|
|
16
|
+
feedback?: CwInputFeedback | CwInputFeedback[];
|
|
17
|
+
/** BCP-47 tag driving the day letters and their tooltips (default "en-GB"): "es" renders
|
|
18
|
+
* LMXJVSD, "de" renders MDMDFSS. From a date-fns locale object, pass its `code`. */
|
|
19
|
+
locale?: string;
|
|
20
|
+
/** Additional CSS class name for the root element */
|
|
21
|
+
className?: string;
|
|
50
22
|
}
|
|
51
23
|
export declare const CwWeekdaySelector: FC<CwWeekdaySelectorProps>;
|
|
52
24
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwWeekdaySelector.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/weekday/CwWeekdaySelector.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"CwWeekdaySelector.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/weekday/CwWeekdaySelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,mDAAmD,CAAC;AAK/F,UAAU,sBAAsB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;0DACsD;IACtD,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B;+BAC2B;IAC3B,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,eAAe,GAAG,eAAe,EAAE,CAAC;IAC/C;wFACoF;IACpF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAoExD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface WeekdayName {
|
|
2
|
+
/** Narrow label for the day: "M" in English, "X" for Spanish miercoles. */
|
|
3
|
+
letter: string;
|
|
4
|
+
/** Full day name, used as the accessible name and the tooltip. */
|
|
5
|
+
full: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Day names in the fixed MTWRFSU order the selector renders, resolved through Intl so every
|
|
9
|
+
* locale gets its own letters (es -> LMXJVSD, de -> MDMDFSS) with no table to maintain.
|
|
10
|
+
*
|
|
11
|
+
* @param localeCode BCP-47 tag, e.g. "en-GB" | "es" | "de"
|
|
12
|
+
*/
|
|
13
|
+
export declare function getWeekdayNames(localeCode: string): Record<string, WeekdayName>;
|
|
14
|
+
//# sourceMappingURL=weekdayNames.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"weekdayNames.d.ts","sourceRoot":"","sources":["../../../../../../src/components/control/input/weekday/weekdayNames.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC3B,2EAA2E;IAC3E,MAAM,EAAE,MAAM,CAAC;IACf,kEAAkE;IAClE,IAAI,EAAE,MAAM,CAAC;CACb;AAOD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAU/E"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export type Weekday = "M" | "T" | "W" | "R" | "F" | "S" | "U" | "m" | "t" | "w" | "r" | "f" | "s" | "u";
|
|
2
|
+
/**
|
|
3
|
+
* This class represents a week where days can be selected or unselected
|
|
4
|
+
* @remark Selected days are in UPPERCASE, unselected days are in lowercase
|
|
5
|
+
* ```
|
|
6
|
+
* Monday = "M" | "m"
|
|
7
|
+
* Tuesday = "T" | "t"
|
|
8
|
+
* Wednesday = "W" | "w"
|
|
9
|
+
* thuRsday = "R" | "r"
|
|
10
|
+
* Friday = "F" | "f"
|
|
11
|
+
* Saturday = "S" | "s"
|
|
12
|
+
* sUnday = "U" | "u"
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare class Weekdays {
|
|
16
|
+
private static readonly WEEKDAYS_STANDARD_ARRAY_FULL;
|
|
17
|
+
private static readonly WEEKDAYS_STANDARD_ARRAY_EMPTY;
|
|
18
|
+
private static readonly WEEKDAYS_STANDARD_STRING_FULL;
|
|
19
|
+
private static readonly WEEKDAYS_STANDARD_STRING_EMPTY;
|
|
20
|
+
static readonly WEEKDAYS_TO_USA_SHORT_FORMAT: Map<string, string>;
|
|
21
|
+
static readonly WEEKDAY_MAP: {
|
|
22
|
+
[key: number]: Weekday;
|
|
23
|
+
};
|
|
24
|
+
private static readonly DAY_NUMBER_BY_CODE;
|
|
25
|
+
private days;
|
|
26
|
+
constructor(days?: Weekday[] | string);
|
|
27
|
+
includes(day: Weekday): boolean;
|
|
28
|
+
static fromString(value: string): Weekdays;
|
|
29
|
+
static isValidToday(validFrom: Date, validUntil: Date, validWeekdays: Weekdays): boolean;
|
|
30
|
+
private normalize;
|
|
31
|
+
toString(): string;
|
|
32
|
+
toStringFormatted(limiters?: {
|
|
33
|
+
startExistingDay: string;
|
|
34
|
+
endExistingDay: string;
|
|
35
|
+
startMissingDay: string;
|
|
36
|
+
endMissingDay: string;
|
|
37
|
+
separator: string;
|
|
38
|
+
}, format?: Map<string, string>): string;
|
|
39
|
+
toArray(): Weekday[];
|
|
40
|
+
isEmpty(): boolean;
|
|
41
|
+
isFull(): boolean;
|
|
42
|
+
static getFullWeek(): Weekday[];
|
|
43
|
+
static getEmptyWeek(): Weekday[];
|
|
44
|
+
/** A week with nothing selected. */
|
|
45
|
+
static empty(): Weekdays;
|
|
46
|
+
/**
|
|
47
|
+
* Like {@link fromString}, but yields an empty week instead of throwing on anything invalid.
|
|
48
|
+
* For UI fed straight from a backend field that can arrive null, empty or partial.
|
|
49
|
+
*/
|
|
50
|
+
static tryFromString(value: string | null | undefined): Weekdays;
|
|
51
|
+
/** Selected flags in MTWRFSU order (Monday first). */
|
|
52
|
+
toBooleans(): boolean[];
|
|
53
|
+
/** @param flags selected flags in MTWRFSU order; missing entries count as unselected */
|
|
54
|
+
static fromBooleans(flags: ReadonlyArray<boolean>): Weekdays;
|
|
55
|
+
/** 7-character mask in MTWRFSU order where "1" means selected, e.g. "1100100". */
|
|
56
|
+
toMask(): string;
|
|
57
|
+
/** @param mask 7-character mask in MTWRFSU order where "1" means selected; a shorter, empty or
|
|
58
|
+
* missing mask counts the absent days as unselected */
|
|
59
|
+
static fromMask(mask: string | null | undefined): Weekdays;
|
|
60
|
+
/** Selected days as Date.getDay() numbers (0 = Sunday), in MTWRFSU order. */
|
|
61
|
+
toDayNumbers(): number[];
|
|
62
|
+
/** @param days Date.getDay() numbers (0 = Sunday) */
|
|
63
|
+
static fromDayNumbers(days: ReadonlyArray<number>): Weekdays;
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=week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MAAM,EAAE,MAAM,CAAyC,GACjE,MAAM;IAgBT,OAAO,IAAI,OAAO,EAAE;IAIpB,OAAO,IAAI,OAAO;IAIlB,MAAM,IAAI,OAAO;IAIjB,MAAM,CAAC,WAAW,IAAI,OAAO,EAAE;IAI/B,MAAM,CAAC,YAAY,IAAI,OAAO,EAAE;IAIhC,oCAAoC;IACpC,MAAM,CAAC,KAAK,IAAI,QAAQ;IAIxB;;;OAGG;IACH,MAAM,CAAC,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,QAAQ;IAShE,sDAAsD;IACtD,UAAU,IAAI,OAAO,EAAE;IAIvB,wFAAwF;IACxF,MAAM,CAAC,YAAY,CAAC,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,GAAG,QAAQ;IAO5D,kFAAkF;IAClF,MAAM,IAAI,MAAM;IAIhB;4DACwD;IACxD,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,QAAQ;IAI1D,6EAA6E;IAC7E,YAAY,IAAI,MAAM,EAAE;IAMxB,qDAAqD;IACrD,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,QAAQ;CAM5D"}
|
|
@@ -20,6 +20,8 @@ export interface CwProgressProps {
|
|
|
20
20
|
monoValue?: boolean;
|
|
21
21
|
/** Larger, bolder value label. */
|
|
22
22
|
prominent?: boolean;
|
|
23
|
+
/** Extra classes on the outermost element, e.g. a layout utility like `cw-flex-grow`. */
|
|
24
|
+
className?: string;
|
|
23
25
|
}
|
|
24
26
|
/**
|
|
25
27
|
* CwProgress - a determinate or indeterminate progress bar.
|
|
@@ -31,6 +33,6 @@ export interface CwProgressProps {
|
|
|
31
33
|
* <CwProgress value={62} label="Import" color="success" />
|
|
32
34
|
* <CwProgress indeterminate label="Uploading" />
|
|
33
35
|
*/
|
|
34
|
-
export declare function CwProgress({ value, indeterminate, label, rightLabel, size, layout, color, monoValue, prominent }: CwProgressProps): React.JSX.Element;
|
|
36
|
+
export declare function CwProgress({ value, indeterminate, label, rightLabel, size, layout, color, monoValue, prominent, className }: CwProgressProps): React.JSX.Element;
|
|
35
37
|
export {};
|
|
36
38
|
//# sourceMappingURL=CwProgress.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwProgress.d.ts","sourceRoot":"","sources":["../../../../../../src/components/display/graphics/progress/CwProgress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,KAAK,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;AAG3E,KAAK,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AAGlD,MAAM,WAAW,eAAe;IAC/B,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2GAA2G;IAC3G,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uGAAuG;IACvG,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mCAAmC;IACnC,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,0DAA0D;IAC1D,MAAM,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC1B,yCAAyC;IACzC,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,gFAAgF;IAChF,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kCAAkC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CwProgress.d.ts","sourceRoot":"","sources":["../../../../../../src/components/display/graphics/progress/CwProgress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,KAAK,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;AAG3E,KAAK,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AAGlD,MAAM,WAAW,eAAe;IAC/B,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2GAA2G;IAC3G,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uGAAuG;IACvG,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mCAAmC;IACnC,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,0DAA0D;IAC1D,MAAM,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC1B,yCAAyC;IACzC,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,gFAAgF;IAChF,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kCAAkC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,yFAAyF;IACzF,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,EAC1B,KAAK,EACL,aAAqB,EACrB,KAAK,EACL,UAAU,EACV,IAAgB,EAChB,MAAc,EACd,KAAiB,EACjB,SAAiB,EACjB,SAAiB,EACjB,SAAS,EACT,EAAE,eAAe,qBA2DjB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type BadgeColorScheme = 'primary' | 'danger' | 'warning' | 'success' | 'info' | 'neutral';
|
|
3
|
+
export type BadgeVariant = 'soft' | 'solid';
|
|
4
|
+
export type BadgeSize = 'small' | 'medium' | 'large';
|
|
5
|
+
export interface CwBadgeProps {
|
|
6
|
+
/** Number shown inside the badge. Omit (with no `content`) to render a dot */
|
|
7
|
+
count?: number;
|
|
8
|
+
/** Text shown instead of a count, e.g. `"!"`. Wins over `count` */
|
|
9
|
+
content?: React.ReactNode;
|
|
10
|
+
/** Predefined color scheme, sharing CwChip's token pairs */
|
|
11
|
+
color?: BadgeColorScheme;
|
|
12
|
+
/** Visual variant: filled accent (`solid`) or the muted container tone (`soft`) */
|
|
13
|
+
variant?: BadgeVariant;
|
|
14
|
+
/** Circle diameter at one digit: `small` 1rem, `medium` 1.25rem, `large` 1.5rem */
|
|
15
|
+
size?: BadgeSize;
|
|
16
|
+
/** Render the badge when `count` is 0 (default true, matching today's counters) */
|
|
17
|
+
showZero?: boolean;
|
|
18
|
+
/** Replace the whole badge with a spinner; it always renders while loading */
|
|
19
|
+
loading?: boolean;
|
|
20
|
+
/** Highest value rendered as a number; anything above shows `"{max}+"` */
|
|
21
|
+
max?: number;
|
|
22
|
+
/** Accessible name. Needed for a dot or a spinner, which carry no text; without it a text-less
|
|
23
|
+
* badge is hidden from assistive technology */
|
|
24
|
+
label?: string;
|
|
25
|
+
/** Additional CSS class name */
|
|
26
|
+
className?: string;
|
|
27
|
+
/** Additional inline styles */
|
|
28
|
+
style?: React.CSSProperties;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* CwBadge - the small coloured circle with a number, used for alert and notification counts.
|
|
32
|
+
*
|
|
33
|
+
* Always **in flow** (`inline-flex`); it never positions itself, so overlaying it on an icon
|
|
34
|
+
* button is the caller's job. One digit stays a circle, wider content such as `"99+"` grows into
|
|
35
|
+
* a pill. With neither `count` nor `content` it renders as a dot.
|
|
36
|
+
*
|
|
37
|
+
* Precedence: `loading` > `content` > `count` > dot. While loading the badge renders regardless
|
|
38
|
+
* of `showZero`, and the spinner replaces it - circle, background and padding come off.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* <CwBadge count={3} color="danger" />
|
|
42
|
+
* <CwBadge count={0} showZero={false} />
|
|
43
|
+
* <CwBadge count={128} max={99} color="warning" variant="soft" />
|
|
44
|
+
* <CwBadge color="warning" label="Unresolved findings" />
|
|
45
|
+
* <CwBadge count={0} loading />
|
|
46
|
+
*/
|
|
47
|
+
export declare const CwBadge: React.FC<CwBadgeProps>;
|
|
48
|
+
//# sourceMappingURL=CwBadge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwBadge.d.ts","sourceRoot":"","sources":["../../../../../../src/components/display/text/badge/CwBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AACjG,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,CAAC;AAC5C,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAErD,MAAM,WAAW,YAAY;IAC5B,8EAA8E;IAC9E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mEAAmE;IACnE,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,4DAA4D;IAC5D,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,mFAAmF;IACnF,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,mFAAmF;IACnF,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,mFAAmF;IACnF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8EAA8E;IAC9E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0EAA0E;IAC1E,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;mDAC+C;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAyC1C,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Normalises a raw count into the integer the badge represents: a non-negative whole number.
|
|
3
|
+
* Both the display string and the `showZero` decision derive from this.
|
|
4
|
+
*/
|
|
5
|
+
export declare function normalizeBadgeCount(count: number): number;
|
|
6
|
+
/**
|
|
7
|
+
* Formats a badge count into its display string. Both arguments are normalised, `max` with a
|
|
8
|
+
* floor of 1 - below that every non-zero count would overflow.
|
|
9
|
+
*
|
|
10
|
+
* @param count Raw count to display.
|
|
11
|
+
* @param max Highest value shown as a number; anything above renders `"{max}+"`.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* formatBadgeCount(7, 99); // "7"
|
|
15
|
+
* formatBadgeCount(100, 99); // "99+"
|
|
16
|
+
* formatBadgeCount(12, 9); // "9+"
|
|
17
|
+
*/
|
|
18
|
+
export declare function formatBadgeCount(count: number, max: number): string;
|
|
19
|
+
export interface BadgeAria {
|
|
20
|
+
role?: 'img' | 'status';
|
|
21
|
+
'aria-label'?: string;
|
|
22
|
+
'aria-hidden'?: 'true';
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Resolves the badge's accessibility attributes. A text-less badge with no label is hidden rather
|
|
26
|
+
* than announced as an empty element; the button or tab around it usually names the thing.
|
|
27
|
+
*
|
|
28
|
+
* @param label Caller-supplied accessible name.
|
|
29
|
+
* @param loading Whether the badge is showing its spinner.
|
|
30
|
+
* @param hasText Whether the badge renders a count or content.
|
|
31
|
+
*/
|
|
32
|
+
export declare function resolveBadgeAria(label: string | undefined, loading: boolean, hasText: boolean): BadgeAria;
|
|
33
|
+
//# sourceMappingURL=badgeContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badgeContent.d.ts","sourceRoot":"","sources":["../../../../../../src/components/display/text/badge/badgeContent.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAKnE;AAED,MAAM,WAAW,SAAS;IACzB,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,CAKzG"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { type LayoutStoryArgs } from "../../../../storybook/layoutStoryArgs";
|
|
3
|
+
import { type CwNoteProps } from "./CwNote";
|
|
4
|
+
type Args = CwNoteProps & LayoutStoryArgs;
|
|
5
|
+
declare const meta: {
|
|
6
|
+
title: string;
|
|
7
|
+
component: import("react").FC<CwNoteProps>;
|
|
8
|
+
args: {
|
|
9
|
+
content: string;
|
|
10
|
+
color: "warning";
|
|
11
|
+
variant: "soft";
|
|
12
|
+
fontSize: "regular";
|
|
13
|
+
icon: string;
|
|
14
|
+
layoutDirection: "row" | "column" | "default";
|
|
15
|
+
layoutAlign: "start" | "center" | "end" | "stretch" | "default";
|
|
16
|
+
layoutJustify: "start" | "center" | "end" | "between" | "around" | "default";
|
|
17
|
+
layoutGap: "none" | "small" | "medium" | "large" | "default";
|
|
18
|
+
};
|
|
19
|
+
argTypes: {
|
|
20
|
+
fontSize: {
|
|
21
|
+
control: "inline-radio";
|
|
22
|
+
options: string[];
|
|
23
|
+
};
|
|
24
|
+
layout: {
|
|
25
|
+
control: false;
|
|
26
|
+
};
|
|
27
|
+
layoutDirection: import("storybook/internal/csf").InputType;
|
|
28
|
+
layoutAlign: import("storybook/internal/csf").InputType;
|
|
29
|
+
layoutJustify: import("storybook/internal/csf").InputType;
|
|
30
|
+
layoutGap: import("storybook/internal/csf").InputType;
|
|
31
|
+
};
|
|
32
|
+
render: (args: Args) => import("react").JSX.Element;
|
|
33
|
+
parameters: {
|
|
34
|
+
docs: {
|
|
35
|
+
source: {
|
|
36
|
+
transform: (_code: string, storyContext: {
|
|
37
|
+
args: Record<string, unknown>;
|
|
38
|
+
}) => string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export default meta;
|
|
44
|
+
type Story = StoryObj<typeof meta>;
|
|
45
|
+
export declare const Default: Story;
|
|
46
|
+
export declare const WithoutIcon: Story;
|
|
47
|
+
export declare const Column: Story;
|
|
48
|
+
export declare const RichContent: Story;
|
|
49
|
+
/** Every color crossed with every variant. */
|
|
50
|
+
export declare const Matrix: Story;
|
|
51
|
+
//# sourceMappingURL=CwNote.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwNote.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/display/text/note/CwNote.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAMN,KAAK,eAAe,EACpB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAEpD,KAAK,IAAI,GAAG,WAAW,GAAG,eAAe,CAAC;AAK1C,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBY,CAAC;AAEvB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAEpB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAkBzB,CAAC;AAEF,8CAA8C;AAC9C,eAAO,MAAM,MAAM,EAAE,KAapB,CAAC"}
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './cw-chip.css';
|
|
3
|
-
export type ChipColorScheme = 'danger' | 'warning' | 'success' | 'info' | 'neutral' | 'custom';
|
|
4
|
-
export type ChipVariant = 'soft' | 'solid' | 'outline';
|
|
3
|
+
export type ChipColorScheme = 'primary' | 'danger' | 'warning' | 'success' | 'info' | 'neutral' | 'custom';
|
|
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
|
-
/*** Predefined color
|
|
8
|
+
/*** Predefined color of the chip **/
|
|
9
|
+
color?: ChipColorScheme;
|
|
10
|
+
/**
|
|
11
|
+
* Predefined color scheme of the chip
|
|
12
|
+
* @deprecated Use `color` instead. Still honoured, but `color` wins when both are passed.
|
|
13
|
+
*/
|
|
9
14
|
colorScheme?: ChipColorScheme;
|
|
10
|
-
/*** Custom color (only used when
|
|
15
|
+
/*** Custom color (only used when the color is 'custom') **/
|
|
11
16
|
customColor?: string;
|
|
12
17
|
/*** Visual variant of the chip **/
|
|
13
18
|
variant?: ChipVariant;
|
|
@@ -25,11 +30,14 @@ export interface CwChipProps {
|
|
|
25
30
|
/**
|
|
26
31
|
* CwChip - A simple chip/tag component for displaying labels or categories
|
|
27
32
|
*
|
|
33
|
+
* The colour comes from `color`; the older `colorScheme` spelling is deprecated but still
|
|
34
|
+
* honoured, and `color` wins when both are passed.
|
|
35
|
+
*
|
|
28
36
|
* @example
|
|
29
|
-
* <CwChip label="Active"
|
|
30
|
-
* <CwChip label="High Priority"
|
|
31
|
-
* <CwChip label="Custom"
|
|
32
|
-
* <CwChip label="Outlined"
|
|
37
|
+
* <CwChip label="Active" color="success" />
|
|
38
|
+
* <CwChip label="High Priority" color="danger" variant="solid" />
|
|
39
|
+
* <CwChip label="Custom" color="custom" customColor="#8a2be2" />
|
|
40
|
+
* <CwChip label="Outlined" color="info" variant="outline" />
|
|
33
41
|
* <CwChip label="Removable" closable onClose={() => console.log('closed')} />
|
|
34
42
|
**/
|
|
35
43
|
export declare const CwChip: React.FC<CwChipProps>;
|
|
@@ -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,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;
|
|
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,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qCAAqC;IACrC,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;;OAGG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,4DAA4D;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mCAAmC;IACnC,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,kCAAkC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mEAAmE;IACnE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,sBAAsB;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iCAAiC;IACjC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC5B;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAsExC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react-vite";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("react").FC<import("./CwChip").CwChipProps>;
|
|
5
|
+
args: {
|
|
6
|
+
label: string;
|
|
7
|
+
color: "success";
|
|
8
|
+
variant: "soft";
|
|
9
|
+
closable: false;
|
|
10
|
+
};
|
|
11
|
+
argTypes: {
|
|
12
|
+
onClose: {
|
|
13
|
+
if: {
|
|
14
|
+
arg: string;
|
|
15
|
+
truthy: true;
|
|
16
|
+
};
|
|
17
|
+
action: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default meta;
|
|
22
|
+
type Story = StoryObj<typeof meta>;
|
|
23
|
+
export declare const Default: Story;
|
|
24
|
+
export declare const WithIcon: Story;
|
|
25
|
+
export declare const IconOnly: Story;
|
|
26
|
+
export declare const CustomColor: Story;
|
|
27
|
+
/** Every color crossed with every variant. */
|
|
28
|
+
export declare const Matrix: Story;
|
|
29
|
+
//# sourceMappingURL=CwChip.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwChip.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/display/text/tag/CwChip.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAM5D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;CAaqB,CAAC;AAEhC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC;AAEF,8CAA8C;AAC9C,eAAO,MAAM,MAAM,EAAE,KAapB,CAAC"}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { type BadgeColorScheme } from "../../display/text/badge/CwBadge";
|
|
2
3
|
export interface Tab {
|
|
3
4
|
key: string;
|
|
4
5
|
title: string;
|
|
5
6
|
content: React.ReactNode;
|
|
6
7
|
icon?: React.ReactNode | string;
|
|
7
8
|
iconClassName?: string;
|
|
9
|
+
/** Counter shown next to the title. Omit (with a `badgeColor`) for an attention dot */
|
|
8
10
|
badge?: number | string;
|
|
9
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Badge colour scheme, e.g. `"warning"`.
|
|
13
|
+
* @deprecated Passing a raw CSS colour is deprecated - use one of the scheme names instead.
|
|
14
|
+
*/
|
|
15
|
+
badgeColor?: BadgeColorScheme | string;
|
|
10
16
|
}
|
|
11
17
|
export interface CwTabsProps {
|
|
12
18
|
id?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CwTabs.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/tabs/CwTabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CwTabs.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/tabs/CwTabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAW,KAAK,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AASlF,MAAM,WAAW,GAAG;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,uFAAuF;IACvF,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;OAGG;IACH,UAAU,CAAC,EAAE,gBAAgB,GAAG,MAAM,CAAC;CACvC;AAED,MAAM,WAAW,WAAW;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,wFAAwF;IACxF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,YAAY,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CAEvB;AAgBD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,wBAAgB,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,qBAqEvE"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export { CwHeadingMain } from "./components/display/text/heading/CwHeadingMain";
|
|
|
7
7
|
export { CwHeadingSecond } from "./components/display/text/heading/CwHeadingSecond";
|
|
8
8
|
export { CwLabel, type CwLabelProps } from "./components/display/text/label/CwLabel";
|
|
9
9
|
export { CwChip, type ChipColorScheme, type ChipVariant, type CwChipProps } from "./components/display/text/tag/CwChip";
|
|
10
|
+
export { CwBadge, type BadgeColorScheme, type BadgeVariant, type BadgeSize, type CwBadgeProps } from "./components/display/text/badge/CwBadge";
|
|
10
11
|
export { CwDisplayMessage, CwMessage, CwMessageManager, CwMessageType, useCwMessage, type CwMessageProps } from "./components/display/text/message/CwMessage";
|
|
11
12
|
export { CwNote, type CwNoteProps } from "./components/display/text/note/CwNote";
|
|
12
13
|
export { CwImageGallery, type ImageItem } from "./components/display/graphics/image-gallery/CwImageGallery";
|
|
@@ -55,7 +56,8 @@ export { CwTime, type CwInputTimeProps } from "./components/control/input/time/C
|
|
|
55
56
|
export { CwInputDateText, type CwInputDateTextProps } from "./components/control/input/date-text/CwInputDateText";
|
|
56
57
|
export { CwInputImage, type CwInputImageProps } from "./components/control/input/image/CwInputImage";
|
|
57
58
|
export { CwImageArea, type CwImageAreaMethods, type CwImageAreaProps } from "./components/control/input/image-area/CwImageArea";
|
|
58
|
-
export { CwWeekdaySelector
|
|
59
|
+
export { CwWeekdaySelector } from "./components/control/input/weekday/CwWeekdaySelector";
|
|
60
|
+
export { Weekdays, type Weekday } from "./components/control/input/weekday/weekdays";
|
|
59
61
|
export { CwCheck } from "./components/control/choice/checkbox/CwCheck";
|
|
60
62
|
export { CwCheckbox } from "./components/control/choice/checkbox/CwCheckbox";
|
|
61
63
|
export { CwCheckboxGroup } from "./components/control/choice/checkbox/CwCheckboxGroup";
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAOA,OAAO,aAAa,CAAC;AAKrB,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAG/E,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAQhG,OAAO,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AAGpF,OA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AAE,MAAM,0EAA0E,CAAC;AAC/G,OAAO,EAAE,aAAa,EAAE,MAAM,oEAAoE,CAAC;AAGnG,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAC5D,YAAY,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAEjE,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,oDAAoD,CAAC;AACzG,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,0DAA0D,CAAC;AAC/G,YAAY,EAAE,cAAc,EAAE,MAAM,4EAA4E,CAAC;AAIjH,OAAO,EAAE,aAAa,EAAE,MAAM,oDAAoD,CAAC;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAC;AAE5F,OAAO,EACN,aAAa,EACb,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,cAAc,EACd,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,CAAC;AAEF,OAAO,EACN,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,kBAAkB,EAClB,qBAAqB,EACrB,WAAW,EACX,eAAe,EACf,WAAW,EACX,qBAAqB,EACrB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,MAAM,qEAAqE,CAAC;AAG7E,YAAY,EACX,iBAAiB,EACjB,MAAM,+EAA+E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlaygroundApp.d.ts","sourceRoot":"","sources":["../../../src/playground/PlaygroundApp.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PlaygroundApp.d.ts","sourceRoot":"","sources":["../../../src/playground/PlaygroundApp.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AA4BjD,OAAO,kBAAkB,CAAC;AA2E1B,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAwBjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwBadgePage.d.ts","sourceRoot":"","sources":["../../../../src/playground/pages/CwBadgePage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAgExC,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAkN/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwChipPage.d.ts","sourceRoot":"","sources":["../../../../src/playground/pages/CwChipPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAiC1B,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAuF9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwDigitPage.d.ts","sourceRoot":"","sources":["../../../../src/playground/pages/CwDigitPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAuJ/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CwWeekdaySelectorPage.d.ts","sourceRoot":"","sources":["../../../../src/playground/pages/CwWeekdaySelectorPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAmGzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormControlLayoutsPage.d.ts","sourceRoot":"","sources":["../../../../src/playground/pages/FormControlLayoutsPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AA0XxC,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAsB1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressPage.d.ts","sourceRoot":"","sources":["../../../../src/playground/pages/ProgressPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"ProgressPage.d.ts","sourceRoot":"","sources":["../../../../src/playground/pages/ProgressPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAuEhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectorsPage.d.ts","sourceRoot":"","sources":["../../../../src/playground/pages/SelectorsPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAiIxC,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"SelectorsPage.d.ts","sourceRoot":"","sources":["../../../../src/playground/pages/SelectorsPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAiIxC,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAogBjC,CAAC"}
|