@cloudoperators/juno-ui-components 2.37.0 → 2.38.1
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/build/index.js +71 -59
- package/build/src/components/AppShell/AppShell.component.d.ts +6 -6
- package/build/src/components/AppShell/AppShell.component.d.ts.map +1 -1
- package/build/src/components/Checkbox/Checkbox.component.d.ts +5 -5
- package/build/src/components/Checkbox/Checkbox.component.d.ts.map +1 -1
- package/build/src/components/CheckboxGroup/CheckboxGroup.component.d.ts +7 -8
- package/build/src/components/CheckboxGroup/CheckboxGroup.component.d.ts.map +1 -1
- package/build/src/components/CheckboxGroup/CheckboxGroup.stories.d.ts +7 -0
- package/build/src/components/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
- package/build/src/components/ComboBox/ComboBox.component.d.ts +7 -8
- package/build/src/components/ComboBox/ComboBox.component.d.ts.map +1 -1
- package/build/src/components/ContentContainer/ContentContainer.component.d.ts +3 -3
- package/build/src/components/ContentContainer/ContentContainer.component.d.ts.map +1 -1
- package/build/src/components/ContentHeading/ContentHeading.component.d.ts +3 -3
- package/build/src/components/ContentHeading/ContentHeading.component.d.ts.map +1 -1
- package/build/src/components/DataGridToolbar/DataGridToolbar.component.d.ts +1 -1
- package/build/src/components/DataGridToolbar/DataGridToolbar.component.d.ts.map +1 -1
- package/build/src/components/DataGridToolbar/DataGridToolbar.stories.d.ts +5 -2
- package/build/src/components/DataGridToolbar/DataGridToolbar.stories.d.ts.map +1 -1
- package/build/src/components/DateTimePicker/DateTimePicker.component.d.ts +21 -40
- package/build/src/components/DateTimePicker/DateTimePicker.component.d.ts.map +1 -1
- package/build/src/components/FormHint/FormHint.component.d.ts +1 -1
- package/build/src/components/FormHint/FormHint.component.d.ts.map +1 -1
- package/build/src/components/Icon/Icon.component.d.ts +1 -1
- package/build/src/components/Icon/Icon.component.d.ts.map +1 -1
- package/build/src/components/JsonViewer/JsonViewer.component.d.ts +2 -0
- package/build/src/components/JsonViewer/JsonViewer.component.d.ts.map +1 -1
- package/build/src/components/MainTabs/MainTabs.component.d.ts +2 -6
- package/build/src/components/MainTabs/MainTabs.component.d.ts.map +1 -1
- package/build/src/components/MainTabs/MainTabs.stories.d.ts +5 -0
- package/build/src/components/MainTabs/MainTabs.stories.d.ts.map +1 -1
- package/build/src/components/Modal/Modal.component.d.ts +3 -4
- package/build/src/components/Modal/Modal.component.d.ts.map +1 -1
- package/build/src/components/Modal/Modal.stories.d.ts +5 -0
- package/build/src/components/Modal/Modal.stories.d.ts.map +1 -1
- package/build/src/components/ModalFooter/ModalFooter.component.d.ts +2 -2
- package/build/src/components/NativeSelect/NativeSelect.component.d.ts +3 -3
- package/build/src/components/NativeSelect/NativeSelect.component.d.ts.map +1 -1
- package/build/src/components/Navigation/Navigation.component.d.ts +7 -9
- package/build/src/components/Navigation/Navigation.component.d.ts.map +1 -1
- package/build/src/components/Navigation/Navigation.stories.d.ts +6 -4
- package/build/src/components/Navigation/Navigation.stories.d.ts.map +1 -1
- package/build/src/components/NavigationItem/NavigationItem.component.d.ts +2 -2
- package/build/src/components/NavigationItem/NavigationItem.component.d.ts.map +1 -1
- package/build/src/components/PageHeader/PageHeader.component.d.ts +5 -5
- package/build/src/components/PageHeader/PageHeader.component.d.ts.map +1 -1
- package/build/src/components/PageHeader/PageHeader.stories.d.ts.map +1 -1
- package/build/src/components/Pagination/Pagination.stories.d.ts.map +1 -1
- package/build/src/components/Panel/Panel.component.d.ts +2 -2
- package/build/src/components/Panel/Panel.component.d.ts.map +1 -1
- package/build/src/components/PanelBody/PanelBody.component.d.ts +2 -2
- package/build/src/components/PanelBody/PanelBody.component.d.ts.map +1 -1
- package/build/src/components/Pill/Pill.component.d.ts +2 -2
- package/build/src/components/Pill/Pill.component.d.ts.map +1 -1
- package/build/src/components/Pill/Pill.stories.d.ts +16 -1
- package/build/src/components/Pill/Pill.stories.d.ts.map +1 -1
- package/build/src/components/PopupMenu/PopupMenu.component.d.ts +8 -8
- package/build/src/components/PopupMenu/PopupMenu.component.d.ts.map +1 -1
- package/build/src/components/PopupMenu/PopupMenu.stories.d.ts.map +1 -1
- package/build/src/components/Radio/Radio.component.d.ts +5 -7
- package/build/src/components/Radio/Radio.component.d.ts.map +1 -1
- package/build/src/components/RadioGroup/RadioGroup.component.d.ts +6 -6
- package/build/src/components/RadioGroup/RadioGroup.component.d.ts.map +1 -1
- package/build/src/components/RadioGroup/RadioGroup.stories.d.ts +7 -0
- package/build/src/components/RadioGroup/RadioGroup.stories.d.ts.map +1 -1
- package/build/src/components/SearchInput/SearchInput.component.d.ts +6 -6
- package/build/src/components/SearchInput/SearchInput.component.d.ts.map +1 -1
- package/build/src/components/SecretText/SecretText.component.d.ts +6 -8
- package/build/src/components/SecretText/SecretText.component.d.ts.map +1 -1
- package/build/src/components/Select/Select.component.d.ts +8 -8
- package/build/src/components/Select/Select.component.d.ts.map +1 -1
- package/build/src/components/SelectOption/SelectOption.stories.d.ts +8 -1
- package/build/src/components/SelectOption/SelectOption.stories.d.ts.map +1 -1
- package/build/src/components/SideNavigation/SideNavigation.component.d.ts +4 -6
- package/build/src/components/SideNavigation/SideNavigation.component.d.ts.map +1 -1
- package/build/src/components/SideNavigationItem/SideNavigationItem.component.d.ts +1 -1
- package/build/src/components/StyleProvider/StyleProvider.component.d.ts +2 -2
- package/build/src/components/StyleProvider/StyleProvider.component.d.ts.map +1 -1
- package/build/src/components/Switch/Switch.component.d.ts +4 -4
- package/build/src/components/Switch/Switch.component.d.ts.map +1 -1
- package/build/src/components/TabList/TabList.component.d.ts +1 -2
- package/build/src/components/TabList/TabList.component.d.ts.map +1 -1
- package/build/src/components/TabList/TabList.stories.d.ts +6 -1
- package/build/src/components/TabList/TabList.stories.d.ts.map +1 -1
- package/build/src/components/TabNavigation/TabNavigation.component.d.ts +4 -6
- package/build/src/components/TabNavigation/TabNavigation.component.d.ts.map +1 -1
- package/build/src/components/TabNavigationItem/TabNavigationItem.component.d.ts +1 -1
- package/build/src/components/Tabs/Tabs.component.d.ts +2 -6
- package/build/src/components/Tabs/Tabs.component.d.ts.map +1 -1
- package/build/src/components/Tabs/Tabs.stories.d.ts +5 -0
- package/build/src/components/Tabs/Tabs.stories.d.ts.map +1 -1
- package/build/src/components/TextInput/TextInput.component.d.ts +6 -6
- package/build/src/components/TextInput/TextInput.component.d.ts.map +1 -1
- package/build/src/components/Textarea/Textarea.component.d.ts +6 -6
- package/build/src/components/Textarea/Textarea.component.d.ts.map +1 -1
- package/build/src/components/ThemeToggle/ThemeToggle.component.d.ts +1 -1
- package/build/src/components/ThemeToggle/ThemeToggle.component.d.ts.map +1 -1
- package/build/src/components/Toast/Toast.component.d.ts +1 -1
- package/build/src/components/Toast/Toast.component.d.ts.map +1 -1
- package/build/src/components/TopNavigation/TopNavigation.component.d.ts +4 -6
- package/build/src/components/TopNavigation/TopNavigation.component.d.ts.map +1 -1
- package/build/src/components/TopNavigationItem/TopNavigationItem.component.d.ts +1 -1
- package/package.json +4 -4
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
2
|
import { default as flatpickr } from 'flatpickr';
|
|
3
3
|
import { DateOption, DateLimit } from 'flatpickr/dist/types/options';
|
|
4
|
-
import { CustomLocale } from 'flatpickr/dist/types/locale';
|
|
4
|
+
import { key as LocaleKey, CustomLocale } from 'flatpickr/dist/types/locale';
|
|
5
5
|
/** A all-purpose date and time picker component. Highly configurable, based on Flatpickr. */
|
|
6
6
|
export declare const DateTimePicker: React.FC<DateTimePickerProps>;
|
|
7
7
|
type DateChangeHandler = (dates?: Date[], dateStr?: string, instance?: flatpickr.Instance) => void;
|
|
8
|
-
type LegacyEventHandler = (...args: unknown[]) => any;
|
|
9
|
-
type BackwardCompatibleDateChangeHandler = DateChangeHandler | LegacyEventHandler;
|
|
10
|
-
type DateTimePickerDate = DateOption | DateOption[] | string | unknown[] | object | number;
|
|
11
8
|
export interface DateTimePickerProps extends Omit<React.HTMLAttributes<HTMLInputElement>, "defaultValue" | "onFocus" | "onBlur" | "onChange"> {
|
|
12
9
|
/** Whether the DateTimePicker input element allows direct user keyboard input. Default is `false`. */
|
|
13
10
|
allowInput?: boolean;
|
|
@@ -23,23 +20,20 @@ export interface DateTimePickerProps extends Omit<React.HTMLAttributes<HTMLInput
|
|
|
23
20
|
dateFormat?: string;
|
|
24
21
|
/**
|
|
25
22
|
* Sets the default date of the DateTimePicker. Same as `value`, only here for compatibility with the original Flatpickr library. If both `value` and `defaultDate` are being passed, `value` will win. Date Objects, timestamps, ISO date strings, chronological date strings `YYYY-MM-DD HH:MM` (must be compatible to current `dateFormat`), and the shortcut `today` are all accepted.
|
|
26
|
-
* Some prop types have been deprecated: Use DateOption and DateOption[] for future compatibility
|
|
27
23
|
*/
|
|
28
|
-
defaultDate?:
|
|
24
|
+
defaultDate?: string | number | Date | DateOption[];
|
|
29
25
|
/** The initial value of the hour input element. Only effective if time is enabled. Note this will only set the hour input element to the value specified. Setting this options will not set a selected value on the DateTimePicker. */
|
|
30
26
|
defaultHour?: number;
|
|
31
27
|
/** The initial value of the minute input element. Only effective if time is enabled. Note this will only set the minute input element to the value specified. Setting this options will not set a selected value on the DateTimePicker. */
|
|
32
28
|
defaultMinute?: number;
|
|
33
29
|
/**
|
|
34
30
|
* Same as value, defaultDate
|
|
35
|
-
* Some prop types have been deprecated: Use DateOption and DateOption[] for future compatibility
|
|
36
31
|
*/
|
|
37
|
-
defaultValue?:
|
|
32
|
+
defaultValue?: string | number | Date | DateOption[];
|
|
38
33
|
/**
|
|
39
34
|
* Pass an array of dates, date strings, date ranges or functions to disable dates. More on disabling dates: https://flatpickr.js.org/examples/#disabling-specific-dates
|
|
40
|
-
* Some prop types have been deprecated: Use DateLimit<DateOption>[] for future compatibility
|
|
41
35
|
*/
|
|
42
|
-
disable?: DateLimit<DateOption>[]
|
|
36
|
+
disable?: DateLimit<DateOption>[];
|
|
43
37
|
/** Whether the DateTimePicker is disabled */
|
|
44
38
|
disabled?: boolean;
|
|
45
39
|
/** Whether to show seconds when showing a time picker. */
|
|
@@ -47,9 +41,9 @@ export interface DateTimePickerProps extends Omit<React.HTMLAttributes<HTMLInput
|
|
|
47
41
|
/** Whether to show a time picker. */
|
|
48
42
|
enableTime?: boolean;
|
|
49
43
|
/** A text to render when the DateTimePicker has an error or could not be validated. */
|
|
50
|
-
errortext?:
|
|
44
|
+
errortext?: ReactNode;
|
|
51
45
|
/** A helptext to render to explain meaning and significance of the DateTimePicker. */
|
|
52
|
-
helptext?:
|
|
46
|
+
helptext?: ReactNode;
|
|
53
47
|
/** The step for the hour input. Only has an effect when a time picker is enabled via `enableTime`. */
|
|
54
48
|
hourIncrement?: number;
|
|
55
49
|
/** The id of the DateTimePicker input element. If none is passed, an automatically generated id will be used. */
|
|
@@ -60,19 +54,16 @@ export interface DateTimePickerProps extends Omit<React.HTMLAttributes<HTMLInput
|
|
|
60
54
|
label?: string;
|
|
61
55
|
/**
|
|
62
56
|
* Localization string or object. Can be used to set starting day of the week, e.g. Mondays instead of Sundays. More on localization: https://flatpickr.js.org/localization/
|
|
63
|
-
* Some prop types have been deprecated: Use LocaleKey and Partial<CustomLocale> for future compatibility
|
|
64
57
|
*/
|
|
65
|
-
locale?: Partial<CustomLocale
|
|
58
|
+
locale?: LocaleKey | Partial<CustomLocale>;
|
|
66
59
|
/**
|
|
67
60
|
* The maximum / latest date a user can select (inclusive).
|
|
68
|
-
* Some prop types have been deprecated: Use DateOption for future compatibility
|
|
69
61
|
*/
|
|
70
|
-
maxDate?: DateOption
|
|
62
|
+
maxDate?: DateOption;
|
|
71
63
|
/**
|
|
72
64
|
* The minimum / earliest date a user can select (inclusive).
|
|
73
|
-
* Some prop types have been deprecated: Use DateOption for future compatibility
|
|
74
65
|
*/
|
|
75
|
-
minDate?: DateOption
|
|
66
|
+
minDate?: DateOption;
|
|
76
67
|
/** The step for the minute input. Only has an effect when a time picker is enabled via `enableTime`. */
|
|
77
68
|
minuteIncrement?: number;
|
|
78
69
|
/** The mode of the Datepicker. */
|
|
@@ -85,49 +76,40 @@ export interface DateTimePickerProps extends Omit<React.HTMLAttributes<HTMLInput
|
|
|
85
76
|
noCalendar?: boolean;
|
|
86
77
|
/**
|
|
87
78
|
* A handler to be executed when the DateTimePicker input element looses focus.
|
|
88
|
-
* Some prop types have been deprecated: For future compatibility use function with signature (dates?: Date[], dateStr?: string, instance?: flatpickr.Instance) => void
|
|
89
79
|
*/
|
|
90
|
-
onBlur?:
|
|
80
|
+
onBlur?: DateChangeHandler;
|
|
91
81
|
/**
|
|
92
82
|
* A handler to be executed when the selected date(s), date range or time changes
|
|
93
|
-
* Some prop types have been deprecated: For future compatibility use function with signature (dates?: Date[], dateStr?: string, instance?: flatpickr.Instance) => void
|
|
94
83
|
*/
|
|
95
|
-
onChange?:
|
|
84
|
+
onChange?: DateChangeHandler;
|
|
96
85
|
/**
|
|
97
86
|
* A handler to be executed when the DateTimePicker value is reset by clicking the clear icon. The onChnage handler will be fired in this event too, onClear is more specific.
|
|
98
|
-
* Some prop types have been deprecated: For future compatibility use function with signature (dates?: Date[], dateStr?: string, instance?: flatpickr.Instance) => void
|
|
99
87
|
*/
|
|
100
|
-
onClear?:
|
|
88
|
+
onClear?: DateChangeHandler;
|
|
101
89
|
/**
|
|
102
90
|
* A handler to be executed when the DateTimePicker calendar closes
|
|
103
|
-
* Some prop types have been deprecated: For future compatibility use function with signature (dates?: Date[], dateStr?: string, instance?: flatpickr.Instance) => void
|
|
104
91
|
*/
|
|
105
|
-
onClose?:
|
|
92
|
+
onClose?: DateChangeHandler;
|
|
106
93
|
/**
|
|
107
94
|
* A handler to be executed when the DateTimePicker input element receives focus.
|
|
108
|
-
* Some prop types have been deprecated: For future compatibility use function with signature (dates?: Date[], dateStr?: string, instance?: flatpickr.Instance) => void
|
|
109
95
|
*/
|
|
110
|
-
onFocus?:
|
|
96
|
+
onFocus?: DateChangeHandler;
|
|
111
97
|
/**
|
|
112
98
|
* A handler to be executed when the selected month changes
|
|
113
|
-
* Some prop types have been deprecated: For future compatibility use function with signature (dates?: Date[], dateStr?: string, instance?: flatpickr.Instance) => void
|
|
114
99
|
*/
|
|
115
|
-
onMonthChange?:
|
|
100
|
+
onMonthChange?: DateChangeHandler;
|
|
116
101
|
/**
|
|
117
102
|
* A handler to be executed when the DateTimePicker calendar opens
|
|
118
|
-
* Some prop types have been deprecated: For future compatibility use function with signature (dates?: Date[], dateStr?: string, instance?: flatpickr.Instance) => void
|
|
119
103
|
*/
|
|
120
|
-
onOpen?:
|
|
104
|
+
onOpen?: DateChangeHandler;
|
|
121
105
|
/**
|
|
122
106
|
* A handler to be executed when the DateTimePicker component is ready
|
|
123
|
-
* Some prop types have been deprecated: For future compatibility use function with signature (dates?: Date[], dateStr?: string, instance?: flatpickr.Instance) => void
|
|
124
107
|
*/
|
|
125
|
-
onReady?:
|
|
108
|
+
onReady?: DateChangeHandler;
|
|
126
109
|
/**
|
|
127
110
|
* A handler to be executed when the selected year changes
|
|
128
|
-
* Some prop types have been deprecated: For future compatibility use function with signature (dates?: Date[], dateStr?: string, instance?: flatpickr.Instance) => void
|
|
129
111
|
*/
|
|
130
|
-
onYearChange?:
|
|
112
|
+
onYearChange?: DateChangeHandler;
|
|
131
113
|
/** The placeholder of the DateTimePicker input element */
|
|
132
114
|
placeholder?: string;
|
|
133
115
|
/** Whether the DateTimePicker should be marked as required. Requires a `Label` to be set. */
|
|
@@ -137,16 +119,15 @@ export interface DateTimePickerProps extends Omit<React.HTMLAttributes<HTMLInput
|
|
|
137
119
|
/** The number of months to show in the date picker */
|
|
138
120
|
showMonths?: number;
|
|
139
121
|
/** A text to render when the DateTimePicker was successfully validated */
|
|
140
|
-
successtext?:
|
|
122
|
+
successtext?: ReactNode;
|
|
141
123
|
/** Displays time picker in 24 hour mode without AM/PM selection when enabled. Requires `enableTime` to be set, too. Default is `false`. */
|
|
142
124
|
time_24hr?: boolean;
|
|
143
125
|
/** Whether the DateTimePicker has been successfully validated */
|
|
144
126
|
valid?: boolean;
|
|
145
127
|
/**
|
|
146
128
|
* The value of the datepicker. Date Objects, timestamps, ISO date strings, chronological date strings `YYYY-MM-DD HH:MM` (must be compatible to current `dateFormat`), and the shortcut `today` are all accepted.
|
|
147
|
-
* Some prop types have been deprecated: Use DateOption and DateOption[] for future compatibility
|
|
148
129
|
*/
|
|
149
|
-
value?:
|
|
130
|
+
value?: string | number | Date | DateOption[];
|
|
150
131
|
/** Whether to render week numbers. Default is `false`. */
|
|
151
132
|
weekNumbers?: boolean;
|
|
152
133
|
/** The width of the datepicker input. Either 'full' (default) or 'auto'. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTimePicker.component.d.ts","sourceRoot":"","sources":["../../../../src/components/DateTimePicker/DateTimePicker.component.tsx"],"names":[],"mappings":"AAKA,OAAO,
|
|
1
|
+
{"version":3,"file":"DateTimePicker.component.d.ts","sourceRoot":"","sources":["../../../../src/components/DateTimePicker/DateTimePicker.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAA+C,SAAS,EAAE,MAAM,OAAO,CAAA;AACrF,OAAO,SAAS,MAAM,WAAW,CAAA;AAIjC,OAAO,EAAW,UAAU,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAC7E,OAAO,EAAE,GAAG,IAAI,SAAS,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAE5E,OAAO,uBAAuB,CAAA;AA2E9B,6FAA6F;AAE7F,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAkbxD,CAAA;AAGD,KAAK,iBAAiB,GAAG,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,SAAS,CAAC,QAAQ,KAAK,IAAI,CAAA;AAElG,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE,cAAc,GAA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;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,UAAU,EAAE,CAAA;IAC7C,0DAA0D;IAC1D,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,6KAA6K;IAC7K,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B"}
|
|
@@ -10,7 +10,7 @@ export interface FormHintProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
10
10
|
* The text to render as a hint for a form element.
|
|
11
11
|
* Overridden by children, if provided.
|
|
12
12
|
*/
|
|
13
|
-
text?: ReactNode
|
|
13
|
+
text?: ReactNode;
|
|
14
14
|
/**
|
|
15
15
|
* The variant of the hint ("help", "error", or "success") determining its appearance.
|
|
16
16
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormHint.component.d.ts","sourceRoot":"","sources":["../../../../src/components/FormHint/FormHint.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAOxC,KAAK,eAAe,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAA;AAEnD,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACzE;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"FormHint.component.d.ts","sourceRoot":"","sources":["../../../../src/components/FormHint/FormHint.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAOxC,KAAK,eAAe,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAA;AAEnD,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACzE;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAA;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,eAAe,CAAA;IAEzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAaD;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAqB5C,CAAA"}
|
|
@@ -62,6 +62,6 @@ export interface IconProps extends Omit<React.HTMLProps<HTMLAnchorElement> | Rea
|
|
|
62
62
|
className?: string;
|
|
63
63
|
href?: string;
|
|
64
64
|
disabled?: boolean;
|
|
65
|
-
onClick?: React.MouseEventHandler<
|
|
65
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
66
66
|
}
|
|
67
67
|
//# sourceMappingURL=Icon.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Icon/Icon.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAgC,MAAM,OAAO,CAAA;AAuFpD,oBAAY,cAAc;IAExB,UAAU,eAAe;IAEzB,aAAa,kBAAkB;IAE/B,SAAS,cAAc;IAEvB,iBAAiB,sBAAsB;IAEvC,iBAAiB,sBAAsB;IAEvC,IAAI,SAAS;IAEb,aAAa,kBAAkB;IAE/B,MAAM,WAAW;IAEjB,KAAK,UAAU;IAEf,WAAW,gBAAgB;IAE3B,WAAW,gBAAgB;IAE3B,YAAY,iBAAiB;IAE7B,KAAK,UAAU;IAEf,OAAO,YAAY;IAEnB,WAAW,gBAAgB;IAE3B,MAAM,WAAW;IAEjB,SAAS,cAAc;IAEvB,OAAO,YAAY;IAEnB,aAAa,kBAAkB;IAE/B,WAAW,gBAAgB;IAE3B,GAAG,QAAQ;IAEX,QAAQ,aAAa;IAErB,IAAI,SAAS;IAEb,KAAK,UAAU;IAEf,YAAY,iB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AC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC7F,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAA;CACrD"}
|
|
@@ -16,6 +16,8 @@ export interface JsonViewerProps extends Omit<React.HTMLProps<HTMLDivElement>, "
|
|
|
16
16
|
showRoot?: boolean;
|
|
17
17
|
/** dark, light or map of colors
|
|
18
18
|
*
|
|
19
|
+
* @param dark dark theme
|
|
20
|
+
* @param light light theme
|
|
19
21
|
* @param base00 background
|
|
20
22
|
* @param base01 NOT used
|
|
21
23
|
* @param base02 border, NaN,null, undefined background
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonViewer.component.d.ts","sourceRoot":"","sources":["../../../../src/components/JsonViewer/JsonViewer.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAsC,MAAM,OAAO,CAAA;AAC1D,OAAO,KAAK,MAAM,MAAM,UAAU,CAAA;AAElC,OAAO,EAAsC,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AA0B3F,eAAO,MAAM,iBAAiB,UAAW,OAAO,KAAG,kBAiBlD,CAAA;AA4SD,qDAAqD;AACrD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAqDhD,CAAA;AAED,KAAK,SAAS,GAAG,MAAM,GAAG,OAAO,CAAA;AAEjC,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACpF,oCAAoC;IAEpC,IAAI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AAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
|
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { TabListProps } from '../TabList/TabList.component';
|
|
3
|
-
import { TabPanelProps } from '../TabPanel/TabPanel.component';
|
|
4
2
|
/**
|
|
5
3
|
Main Tabs are used at the top of the content area when using the tabs to switch the complete content area content. If you only want to have tabs for parts of the content use 'Tabs' instead and place them in the part of the content where the tabbed content should live. You will probably want to use a 'Container' inside the TabPanels to get nice padding.
|
|
6
4
|
*/
|
|
7
5
|
export declare const MainTabs: React.FC<MainTabsProps>;
|
|
8
|
-
export type OnSelectHander = (value: number) => void;
|
|
9
|
-
export type MainTabElement = React.ReactElement<TabListProps> | React.ReactElement<TabPanelProps> | MainTabElement[] | null | undefined;
|
|
10
6
|
export interface MainTabsProps extends Omit<React.HTMLAttributes<HTMLElement>, "onSelect"> {
|
|
11
7
|
/** All the child elements of MainTabs: Tab(s) inside a TabList and TabPanel(s) */
|
|
12
|
-
children?:
|
|
8
|
+
children?: React.ReactNode;
|
|
13
9
|
/** The index of the Tab to be selected by default in "Uncontrolled Mode" (default) where Tabs handle their state internally. Do not use in "Controlled Mode".*/
|
|
14
10
|
defaultIndex?: number;
|
|
15
11
|
/** The index of the Tab to be selected by default. This enables "Controlled Mode" where the developer takes over control of the Tabs state and behaviour. Requires onSelect to be set.*/
|
|
16
12
|
selectedIndex?: number;
|
|
17
13
|
/** Handler required in "Controlled Mode" */
|
|
18
|
-
onSelect?:
|
|
14
|
+
onSelect?: (value: number) => void;
|
|
19
15
|
/** Add a custom className to the whole Tabs construct */
|
|
20
16
|
className?: string;
|
|
21
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MainTabs.component.d.ts","sourceRoot":"","sources":["../../../../src/components/MainTabs/MainTabs.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"MainTabs.component.d.ts","sourceRoot":"","sources":["../../../../src/components/MainTabs/MainTabs.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAoB5C,CAAA;AAED,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC;IACxF,kFAAkF;IAClF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,gKAAgK;IAChK,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,yLAAyL;IACzL,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,4CAA4C;IAE5C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MainTabs.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/MainTabs/MainTabs.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAKlD,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA
|
|
1
|
+
{"version":3,"file":"MainTabs.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/MainTabs/MainTabs.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAKlD,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;AAE/C,wBAqBC;AASD,UAAU,aAAa;IACrB,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAA;IACpC,SAAS,EAAE,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE,CAAA;CAC/C;AAuBD,KAAK,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;AAG9C,UAAU,uBAAuB;IAC/B,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAA;IACrC,SAAS,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE,CAAA;IAC/C,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,EAAE,eAAe,CAAA;CAC3B;AAED,eAAO,MAAM,OAAO;2CA3C4B,aAAa;;;;;CAsD5D,CAAA;AAED,eAAO,MAAM,UAAU;oEA5C4D,uBAAuB;;;;;;;CA6DzG,CAAA"}
|
|
@@ -15,7 +15,6 @@ To make the modal less intrusive and effectively un-modal it, pass `closeOnBackd
|
|
|
15
15
|
*/
|
|
16
16
|
export declare const Modal: React.FC<ModalProps>;
|
|
17
17
|
type ModalSize = "small" | "large";
|
|
18
|
-
type CancelEventHandler = (event: React.MouseEvent<EventTarget, MouseEvent> | KeyboardEvent) => void;
|
|
19
18
|
export interface ModalProps extends Omit<React.HTMLProps<HTMLDivElement>, "size"> {
|
|
20
19
|
/** The aria-label of the modal. Use only if the modal does NOT have a `title` or `heading`. */
|
|
21
20
|
ariaLabel?: string;
|
|
@@ -38,7 +37,7 @@ export interface ModalProps extends Omit<React.HTMLProps<HTMLDivElement>, "size"
|
|
|
38
37
|
/** The children of the modal. These will be rendered as the modal content. To render custom buttons at the bottom, see `modalFooter` below.*/
|
|
39
38
|
children?: React.ReactNode;
|
|
40
39
|
/** Optional. Pass a `<ModalFooter />` component with custom content as required. Will default to using the `<ModalFooter/>` component internally. */
|
|
41
|
-
modalFooter?:
|
|
40
|
+
modalFooter?: React.ReactElement;
|
|
42
41
|
/** Whether the modal can be closed using an "X"-Button at the top right. Defaults to true. */
|
|
43
42
|
closeable?: boolean;
|
|
44
43
|
/** Pass to remove default padding from the content area of the modal */
|
|
@@ -46,9 +45,9 @@ export interface ModalProps extends Omit<React.HTMLProps<HTMLDivElement>, "size"
|
|
|
46
45
|
/** Custom className to add to the modal */
|
|
47
46
|
className?: string;
|
|
48
47
|
/** A handler to execute once the modal is confirmed by clicking the confrim button if exists. Note that we do not close the modal automatically. */
|
|
49
|
-
onConfirm?: React.MouseEventHandler<
|
|
48
|
+
onConfirm?: React.MouseEventHandler<HTMLElement>;
|
|
50
49
|
/** A handler to execute once the modal is cancelled or dismissed using the x-Close button, Cancel-button or pressing ESC */
|
|
51
|
-
onCancel?:
|
|
50
|
+
onCancel?: (event: React.MouseEvent<HTMLElement> | KeyboardEvent) => void;
|
|
52
51
|
/** Whether the modal should be closed when the backdrop is clicked. Essentially 'un-modals' the modal. */
|
|
53
52
|
closeOnBackdropClick?: boolean;
|
|
54
53
|
/** Whether the modal can be closed by hitting the ESC key */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/Modal.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA6C,MAAM,OAAO,CAAA;AAIjE,OAAO,EAAQ,UAAU,EAAE,MAAM,wBAAwB,CAAA;AA6DzD;;;;;;;;;;;;EAYE;AACF,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA2ItC,CAAA;AAED,KAAK,SAAS,GAAG,OAAO,GAAG,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Modal.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/Modal.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA6C,MAAM,OAAO,CAAA;AAIjE,OAAO,EAAQ,UAAU,EAAE,MAAM,wBAAwB,CAAA;AA6DzD;;;;;;;;;;;;EAYE;AACF,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA2ItC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AsM;IACtM,YAAY,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,CAAA;CACjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/Modal.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmB,MAAM,OAAO,CAAA;AACvC,OAAO,EAAS,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAiCrD,KAAK,aAAa,GAAG;IACnB,cAAc,EAAE,OAAO,CAAA;CACxB,GAAG,UAAU,CAAA;AAEd,KAAK,aAAa,GAAG,MAAM,KAAK,CAAC,SAAS,CAAA
|
|
1
|
+
{"version":3,"file":"Modal.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/Modal.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmB,MAAM,OAAO,CAAA;AACvC,OAAO,EAAS,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAiCrD,KAAK,aAAa,GAAG;IACnB,cAAc,EAAE,OAAO,CAAA;CACxB,GAAG,UAAU,CAAA;AAEd,KAAK,aAAa,GAAG,MAAM,KAAK,CAAC,SAAS,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAoBnB,aAAa;;AAlBpC,wBAmBC;AAED,eAAO,MAAM,OAAO;0CA7C2B,aAAa;;;;CAkD3D,CAAA;AAED,eAAO,MAAM,mBAAmB;0CApDe,aAAa;;;;;;CA2D3D,CAAA;AAED,eAAO,MAAM,eAAe;0CA7DmB,aAAa;;;;;CAmE3D,CAAA;AAED,eAAO,MAAM,cAAc;0CArEoB,aAAa;;;;;;;;CA8E3D,CAAA;AAED,eAAO,MAAM,YAAY;0CAhFsB,aAAa;;;;;;CAwF3D,CAAA;AAED,eAAO,MAAM,oBAAoB;0CA1Fc,aAAa;;;;;;CAiG3D,CAAA;AAED,eAAO,MAAM,KAAK;0CAnG6B,aAAa;;;;;;;CAyH3D,CAAA;AAED,eAAO,MAAM,iBAAiB;0CA3HiB,aAAa;;;;;;;CA+I3D,CAAA;AAED,eAAO,MAAM,iBAAiB;0CAjJiB,aAAa;;;;;;CAgK3D,CAAA;AAED,eAAO,MAAM,mBAAmB;0CAlKe,aAAa;;;;;;CA0L3D,CAAA;AAED,eAAO,MAAM,oBAAoB;0CA5Lc,aAAa;;;;;;;;CA0O3D,CAAA"}
|
|
@@ -21,8 +21,8 @@ export interface ModalFooterProps extends React.HTMLProps<HTMLDivElement> {
|
|
|
21
21
|
/** A custom className. Useful to configure flex items alignment when passing custom content as children. */
|
|
22
22
|
className?: string;
|
|
23
23
|
/** Handler to execute once the confirming button is clicked */
|
|
24
|
-
onConfirm?: React.MouseEventHandler<
|
|
24
|
+
onConfirm?: React.MouseEventHandler<HTMLElement>;
|
|
25
25
|
/** Handler to execute once the cancelling button is clicked */
|
|
26
|
-
onCancel?: React.MouseEventHandler<
|
|
26
|
+
onCancel?: React.MouseEventHandler<HTMLElement>;
|
|
27
27
|
}
|
|
28
28
|
//# sourceMappingURL=ModalFooter.component.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React, ReactNode,
|
|
1
|
+
import { default as React, ReactNode, ChangeEventHandler, MouseEventHandler, FC } from 'react';
|
|
2
2
|
export interface NativeSelectProps extends React.SelectHTMLAttributes<HTMLSelectElement> {
|
|
3
3
|
/**
|
|
4
4
|
* Name of the select element.
|
|
@@ -45,12 +45,12 @@ export interface NativeSelectProps extends React.SelectHTMLAttributes<HTMLSelect
|
|
|
45
45
|
* Event handler for the change event of the select element.
|
|
46
46
|
* Triggered when the user changes the selected option.
|
|
47
47
|
*/
|
|
48
|
-
onChange?:
|
|
48
|
+
onChange?: ChangeEventHandler<HTMLSelectElement>;
|
|
49
49
|
/**
|
|
50
50
|
* Event handler for the click event on the select element.
|
|
51
51
|
* Triggered when the user clicks on the select element.
|
|
52
52
|
*/
|
|
53
|
-
onClick?:
|
|
53
|
+
onClick?: MouseEventHandler<HTMLSelectElement>;
|
|
54
54
|
/**
|
|
55
55
|
* Additional CSS classes to apply to the outer wrapper of the select component for custom styling.
|
|
56
56
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeSelect.component.d.ts","sourceRoot":"","sources":["../../../../src/components/NativeSelect/NativeSelect.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"NativeSelect.component.d.ts","sourceRoot":"","sources":["../../../../src/components/NativeSelect/NativeSelect.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAGZ,SAAS,EAET,kBAAkB,EAElB,iBAAiB,EACjB,EAAE,EACH,MAAM,OAAO,CAAA;AA+Ed,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IACtF;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;OAGG;IAEH,QAAQ,CAAC,EAAE,kBAAkB,CAAC,iBAAiB,CAAC,CAAA;IAEhD;;;OAGG;IAEH,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAA;IAE9C;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAmCD;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA4D9C,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
type ItemChangeHandler = (value:
|
|
3
|
-
type AddItemFunction = (key:
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
type ItemChangeHandler = (value: ReactNode) => void;
|
|
3
|
+
type AddItemFunction = (key: ReactNode, children: ReactNode, label: string, value: string) => void;
|
|
4
4
|
export interface NavigationContextType {
|
|
5
|
-
activeItem?:
|
|
5
|
+
activeItem?: ReactNode;
|
|
6
6
|
addItem?: AddItemFunction;
|
|
7
7
|
handleActiveItemChange?: ItemChangeHandler;
|
|
8
8
|
navigationDisabled?: boolean;
|
|
@@ -13,19 +13,17 @@ export declare const NavigationContext: React.Context<NavigationContextType | un
|
|
|
13
13
|
export declare const Navigation: React.FC<NavigationProps>;
|
|
14
14
|
export interface NavigationProps extends React.HTMLAttributes<HTMLUListElement> {
|
|
15
15
|
/** The currently active item. Pass the `value`, `label` prop, or the child string of the respective NavigationItem. */
|
|
16
|
-
activeItem?:
|
|
16
|
+
activeItem?: ReactNode;
|
|
17
17
|
/** The aria label of the navigation */
|
|
18
18
|
ariaLabel?: string;
|
|
19
19
|
/** The child navigation items of the navigation */
|
|
20
|
-
children?:
|
|
20
|
+
children?: ReactNode;
|
|
21
21
|
/** Pass a custom className to the navigation parent element */
|
|
22
22
|
className?: string;
|
|
23
23
|
/** Whether the navigation is disabled. Will disable all children. */
|
|
24
24
|
disabled?: boolean;
|
|
25
|
-
/** Handler to execute when the active item changes.
|
|
25
|
+
/** Handler to execute when the active item changes. */
|
|
26
26
|
onActiveItemChange?: ItemChangeHandler;
|
|
27
|
-
/** Handler to execute when the active item changes.Alias to `onActiveItemChange`. */
|
|
28
|
-
onChange?: React.FormEventHandler<EventTarget>;
|
|
29
27
|
}
|
|
30
28
|
export {};
|
|
31
29
|
//# sourceMappingURL=Navigation.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navigation.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Navigation/Navigation.component.tsx"],"names":[],"mappings":"AAKA,OAAO,
|
|
1
|
+
{"version":3,"file":"Navigation.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Navigation/Navigation.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAsC,SAAS,EAAE,MAAM,OAAO,CAAA;AAG5E,KAAK,iBAAiB,GAAG,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAA;AAGnD,KAAK,eAAe,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;AAIlG,MAAM,WAAW,qBAAqB;IACpC,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,OAAO,CAAC,EAAE,eAAe,CAAA;IACzB,sBAAsB,CAAC,EAAE,iBAAiB,CAAA;IAC1C,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,eAAO,MAAM,iBAAiB,kDAA8D,CAAA;AAY5F,sRAAsR;AACtR,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAwFhD,CAAA;AAED,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC;IAC7E,uHAAuH;IACvH,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,uDAAuD;IACvD,kBAAkB,CAAC,EAAE,iBAAiB,CAAA;CACvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navigation.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Navigation/Navigation.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,SAAS,MAAM,YAAY,CAAA;AAClC,OAAO,EAAc,eAAe,EAAE,MAAM,SAAS,CAAA
|
|
1
|
+
{"version":3,"file":"Navigation.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Navigation/Navigation.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,SAAS,MAAM,YAAY,CAAA;AAClC,OAAO,EAAc,eAAe,EAAE,MAAM,SAAS,CAAA;;;;;;;;;;;;;;;;;;;;;;;AAGrD,wBAiBC;AAOD,eAAO,MAAM,mBAAmB;;iCALU,eAAe;;;;;;;;;CAkBxD,CAAA;AAED,eAAO,MAAM,mBAAmB;;iCApBU,eAAe;;;;;;;;CA6BxD,CAAA;AAED,eAAO,MAAM,2BAA2B;;iCA/BE,eAAe;;;;;;;;CA8CxD,CAAA;AAED,eAAO,MAAM,UAAU;;iCAhDmB,eAAe;;;;;;;;CAyDxD,CAAA;AAED,eAAO,MAAM,qBAAqB;;iCA3DQ,eAAe;;;;;;;;;CAqExD,CAAA;AAGD,eAAO,MAAM,qBAAqB;;iCAxEQ,eAAe;;;;;;;;;CAkFxD,CAAA;AAGD,eAAO,MAAM,qBAAqB;;iCArFQ,eAAe;;;;;;;;;CAqGxD,CAAA;AAED,eAAO,MAAM,QAAQ;;iCAvGqB,eAAe;;;;;;;;;CAmHxD,CAAA;AAED,eAAO,MAAM,YAAY;;iCArHiB,eAAe;;;;;;;;CAoIxD,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
2
|
import { KnownIcons } from '../Icon/Icon.component';
|
|
3
3
|
/** A generic Navigation Item component. For internal use only. Use to wrap more semantic, role-specific navigation item components such as `SidenavigationItem`, `TabNavigationItem` , `TopNavigationItem` around. */
|
|
4
4
|
export declare const NavigationItem: React.FC<NavigationItemProps>;
|
|
@@ -12,7 +12,7 @@ export interface NavigationItemProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
12
12
|
/** Pass custom classNames to the item itself. */
|
|
13
13
|
className?: string;
|
|
14
14
|
/** The child string of the item. Will override `label` when passed. */
|
|
15
|
-
children?:
|
|
15
|
+
children?: ReactNode;
|
|
16
16
|
/** Whether the item is disabled */
|
|
17
17
|
disabled?: boolean;
|
|
18
18
|
/** An icon to render in the item */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationItem.component.d.ts","sourceRoot":"","sources":["../../../../src/components/NavigationItem/NavigationItem.component.tsx"],"names":[],"mappings":"AAKA,OAAO,
|
|
1
|
+
{"version":3,"file":"NavigationItem.component.d.ts","sourceRoot":"","sources":["../../../../src/components/NavigationItem/NavigationItem.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAmC,SAAS,EAAE,MAAM,OAAO,CAAA;AAGzE,OAAO,EAAQ,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAYzD,sNAAsN;AACtN,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAgIxD,CAAA;AAED,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC5E,wIAAwI;IACxI,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,wCAAwC;IACxC,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,uEAAuE;IACvE,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,oCAAoC;IACpC,IAAI,CAAC,EAAE,UAAU,CAAA;IAEjB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iHAAiH;IACjH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kDAAkD;IAClD,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAA;IAC9C,qMAAqM;IACrM,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,wEAAwE;IACxE,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
1
|
+
import { default as React, ReactElement, ReactNode } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* The PageHeader component renders a header to the application.
|
|
4
4
|
* In order to customize the header Logo, PageHeader accepts a `logo` prop that expects a custom component: `logo={<CustomLogo />}` Ideally, the custom logo component should return an `<img />` or an inline `<svg>` element. When using `svg`, make sure the file does not contain any unnecessary cruft. `Svgo` is a great tool to optimize `svg` files. Make sure the `viewBox` element is not removed when optimizing a file for usage a a header logo.
|
|
@@ -7,13 +7,13 @@ import { default as React } from 'react';
|
|
|
7
7
|
export declare const PageHeader: React.FC<PageHeaderProps>;
|
|
8
8
|
export interface PageHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
9
9
|
/** Heading (typically the name of the application) */
|
|
10
|
-
heading?: string |
|
|
10
|
+
heading?: string | ReactElement;
|
|
11
11
|
/** Add custom class name */
|
|
12
12
|
className?: string;
|
|
13
|
-
logo?: boolean |
|
|
13
|
+
logo?: boolean | ReactElement;
|
|
14
14
|
/** Optional: onClick handler for brand logo/page title. To be used to navigate to the home page. */
|
|
15
|
-
onClick?: React.MouseEventHandler<
|
|
15
|
+
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
16
16
|
/** Children to render in the header such as user name, avatar, log-in/out button, etc. */
|
|
17
|
-
children?:
|
|
17
|
+
children?: ReactNode;
|
|
18
18
|
}
|
|
19
19
|
//# sourceMappingURL=PageHeader.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageHeader.component.d.ts","sourceRoot":"","sources":["../../../../src/components/PageHeader/PageHeader.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AA+
|
|
1
|
+
{"version":3,"file":"PageHeader.component.d.ts","sourceRoot":"","sources":["../../../../src/components/PageHeader/PageHeader.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AA+CtD;;;;GAIG;AAEH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA8BhD,CAAA;AAED,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC3E,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,GAAG,YAAY,CAAA;IAC/B,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,GAAG,YAAY,CAAA;IAC7B,qGAAqG;IACrG,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAA;IACjD,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageHeader.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/PageHeader/PageHeader.stories.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,IAAI,EAAW,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAO/D,OAAO,EAAc,eAAe,EAAE,MAAM,SAAS,CAAA;AAgBrD,KAAK,KAAK,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAA;AAEtC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"PageHeader.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/PageHeader/PageHeader.stories.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,IAAI,EAAW,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAO/D,OAAO,EAAc,eAAe,EAAE,MAAM,SAAS,CAAA;AAgBrD,KAAK,KAAK,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAA;AAEtC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,eAAe,CAuB/B,CAAA;AACD,eAAe,IAAI,CAAA;AAMnB,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAUzB,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,KAKpC,CAAA;AAED,eAAO,MAAM,qBAAqB,EAAE,KAInC,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAA;AAED,eAAO,MAAM,0BAA0B,EAAE,KAMxC,CAAA;AAED,eAAO,MAAM,6BAA6B,EAAE,KAM3C,CAAA;AAED,eAAO,MAAM,4BAA4B,EAAE,KAK1C,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,KAMrC,CAAA;AAED,eAAO,MAAM,0BAA0B,EAAE,KAMxC,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,KAMvC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/Pagination.stories.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"Pagination.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/Pagination.stories.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;wBAiC/D,IAAI,CAAC,OAAO,UAAU,CAAC;AA9B5B,wBA8B4B;AAI5B,eAAO,MAAM,OAAO;;;;;;;CAOnB,CAAA;AAED,eAAO,MAAM,oBAAoB;;;;;;;CAOhC,CAAA;AAED,eAAO,MAAM,oBAAoB;;;;;;;CAOhC,CAAA;AAED,eAAO,MAAM,mBAAmB;;;;;;;CAO/B,CAAA;AAED,eAAO,MAAM,kBAAkB;;;;;CAK9B,CAAA;AAED,eAAO,MAAM,kBAAkB;;;;;CAK9B,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC, HTMLAttributes, ReactNode,
|
|
1
|
+
import { FC, HTMLAttributes, ReactNode, MouseEventHandler } from 'react';
|
|
2
2
|
type PanelSize = "default" | "large";
|
|
3
3
|
export interface PanelProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
/**
|
|
@@ -20,7 +20,7 @@ export interface PanelProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
20
20
|
/**
|
|
21
21
|
* Handler called when the close button is clicked.
|
|
22
22
|
*/
|
|
23
|
-
onClose?:
|
|
23
|
+
onClose?: MouseEventHandler<HTMLElement>;
|
|
24
24
|
/**
|
|
25
25
|
* Additional CSS classes to apply to the panel for custom styling.
|
|
26
26
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Panel/Panel.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAA+B,EAAE,EAAE,cAAc,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"Panel.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Panel/Panel.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAA+B,EAAE,EAAE,cAAc,EAAE,SAAS,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAsDxH,KAAK,SAAS,GAAG,SAAS,GAAG,OAAO,CAAA;AAEpC,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,cAAc,CAAC;IAChE;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IAEH,OAAO,CAAC,EAAE,iBAAiB,CAAC,WAAW,CAAC,CAAA;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED;;;GAGG;AACH,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CA8DhC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React, ReactNode, HTMLAttributes } from 'react';
|
|
1
|
+
import { default as React, ReactNode, ReactElement, HTMLAttributes } from 'react';
|
|
2
2
|
export interface PanelBodyProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
/**
|
|
4
4
|
* Additional CSS classes to apply to the panel body for custom styling.
|
|
@@ -13,7 +13,7 @@ export interface PanelBodyProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
13
13
|
* Optional footer component to be rendered below the main content.
|
|
14
14
|
* The footer can include buttons or other control elements.
|
|
15
15
|
*/
|
|
16
|
-
footer?:
|
|
16
|
+
footer?: ReactElement;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* A PanelBody component is used to encapsulate the main content of a panel.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PanelBody.component.d.ts","sourceRoot":"","sources":["../../../../src/components/PanelBody/PanelBody.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"PanelBody.component.d.ts","sourceRoot":"","sources":["../../../../src/components/PanelBody/PanelBody.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAOtE,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,cAAc,CAAC;IACpE;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;;OAGG;IACH,MAAM,CAAC,EAAE,YAAY,CAAA;CACtB;AAED;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAO9C,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React, FC } from 'react';
|
|
2
|
-
type EventHandler = (
|
|
2
|
+
type EventHandler = (event: React.MouseEvent<HTMLElement>, id: string) => void;
|
|
3
3
|
/**
|
|
4
4
|
A Pill to represent a value, or key and value. Can e.g. be used to represent selected filter values in a filter component. Can optionally be closed. On close the uid, if provided, or the pillKey is returned in the callback.
|
|
5
5
|
*/
|
|
@@ -15,7 +15,7 @@ export interface PillProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "o
|
|
|
15
15
|
pillValue: string;
|
|
16
16
|
/** The visible label to describe the pill value. If not set pillValue is used. Optional. */
|
|
17
17
|
pillValueLabel?: string;
|
|
18
|
-
/**
|
|
18
|
+
/** Add custom classNames */
|
|
19
19
|
className?: string;
|
|
20
20
|
/** Whether the pill should be closeable */
|
|
21
21
|
closeable?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pill.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Pill/Pill.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Pill.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Pill/Pill.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAIjC,KAAK,YAAY,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;AAyC9E;;GAEG;AACH,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CAuC9B,CAAA;AAED,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,SAAS,CAAC;IACtF,0EAA0E;IAC1E,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,8GAA8G;IAC9G,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,wFAAwF;IACxF,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,6GAA6G;IAC7G,SAAS,EAAE,MAAM,CAAA;IACjB,4FAA4F;IAC5F,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,yIAAyI;IACzI,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,2KAA2K;IAC3K,OAAO,CAAC,EAAE,YAAY,CAAA;CACvB"}
|