baseui 11.0.3 → 11.1.2
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/a11y/index.d.ts +1 -1
- package/accordion/index.d.ts +25 -28
- package/app-nav-bar/app-nav-bar.js +33 -40
- package/app-nav-bar/app-nav-bar.js.flow +46 -62
- package/app-nav-bar/index.d.ts +9 -8
- package/app-nav-bar/styled-components.js +83 -29
- package/app-nav-bar/styled-components.js.flow +59 -9
- package/app-nav-bar/types.js.flow +2 -0
- package/aspect-ratio-box/index.d.ts +2 -4
- package/avatar/index.d.ts +6 -12
- package/badge/badge.js +109 -0
- package/badge/badge.js.flow +91 -0
- package/badge/constants.js +54 -0
- package/badge/constants.js.flow +52 -0
- package/badge/hint-dot.js +96 -0
- package/badge/hint-dot.js.flow +68 -0
- package/badge/index.d.ts +97 -0
- package/badge/index.js +80 -0
- package/badge/index.js.flow +20 -0
- package/badge/notification-circle.js +103 -0
- package/badge/notification-circle.js.flow +81 -0
- package/badge/package.json +4 -0
- package/badge/styled-components.js +242 -0
- package/badge/styled-components.js.flow +325 -0
- package/badge/types.js +11 -0
- package/badge/types.js.flow +59 -0
- package/badge/utils.js +33 -0
- package/badge/utils.js.flow +23 -0
- package/banner/banner.js +283 -0
- package/banner/banner.js.flow +253 -0
- package/banner/constants.js +35 -0
- package/banner/constants.js.flow +33 -0
- package/banner/index.d.ts +75 -0
- package/banner/index.js +44 -0
- package/banner/index.js.flow +16 -0
- package/banner/package.json +4 -0
- package/banner/styled-components.js +131 -0
- package/banner/styled-components.js.flow +119 -0
- package/banner/types.js +11 -0
- package/banner/types.js.flow +66 -0
- package/block/index.d.ts +4 -4
- package/breadcrumbs/breadcrumbs.js +5 -1
- package/breadcrumbs/breadcrumbs.js.flow +2 -2
- package/breadcrumbs/index.d.ts +5 -5
- package/button/button.js +2 -1
- package/button/button.js.flow +1 -0
- package/button/index.d.ts +19 -29
- package/button-group/index.d.ts +18 -24
- package/card/index.d.ts +16 -14
- package/checkbox/index.d.ts +17 -21
- package/combobox/index.d.ts +7 -11
- package/data-table/index.d.ts +7 -10
- package/datepicker/index.d.ts +42 -63
- package/datepicker/utils/date-helpers.js +1 -1
- package/datepicker/utils/date-helpers.js.flow +1 -1
- package/dnd-list/index.d.ts +22 -35
- package/drawer/index.d.ts +22 -27
- package/es/app-nav-bar/app-nav-bar.js +9 -19
- package/es/app-nav-bar/styled-components.js +64 -13
- package/es/badge/badge.js +70 -0
- package/es/badge/constants.js +42 -0
- package/es/badge/hint-dot.js +55 -0
- package/es/badge/index.js +11 -0
- package/es/badge/notification-circle.js +65 -0
- package/es/badge/styled-components.js +296 -0
- package/es/badge/types.js +8 -0
- package/es/badge/utils.js +17 -0
- package/es/banner/banner.js +213 -0
- package/es/banner/constants.js +24 -0
- package/es/banner/index.js +9 -0
- package/es/banner/styled-components.js +122 -0
- package/es/banner/types.js +8 -0
- package/es/breadcrumbs/breadcrumbs.js +5 -1
- package/es/button/button.js +1 -0
- package/es/datepicker/utils/date-helpers.js +1 -1
- package/es/file-uploader/file-uploader.js +8 -5
- package/es/helper/helper-steps.js +3 -1
- package/es/input/base-input.js +18 -11
- package/es/input/input.js +15 -10
- package/es/input/masked-input.js +5 -2
- package/es/input/utils.js +4 -2
- package/es/locale/tr_TR.js +115 -0
- package/es/notification/notification.js +16 -1
- package/es/payment-card/custom-cards.config.js +22 -0
- package/es/payment-card/icons/uatp.js +52 -0
- package/es/payment-card/payment-card.js +8 -3
- package/es/popover/popover.js +2 -1
- package/es/popover/stateful-container.js +2 -0
- package/es/popover/styled-components.js +2 -1
- package/es/progress-steps/numbered-step.js +2 -2
- package/es/select/select-component.js +38 -21
- package/es/table-semantic/styled-components.js +14 -0
- package/es/table-semantic/table-builder.js +12 -5
- package/es/textarea/textarea.js +15 -9
- package/es/themes/dark-theme/color-component-tokens.js +8 -0
- package/es/themes/light-theme/color-component-tokens.js +8 -0
- package/es/tree-view/tree-label.js +9 -1
- package/esm/app-nav-bar/app-nav-bar.js +32 -38
- package/esm/app-nav-bar/styled-components.js +79 -28
- package/esm/badge/badge.js +97 -0
- package/esm/badge/constants.js +42 -0
- package/esm/badge/hint-dot.js +83 -0
- package/esm/badge/index.js +11 -0
- package/esm/badge/notification-circle.js +91 -0
- package/esm/badge/styled-components.js +235 -0
- package/esm/badge/types.js +8 -0
- package/esm/badge/utils.js +17 -0
- package/esm/banner/banner.js +271 -0
- package/esm/banner/constants.js +24 -0
- package/esm/banner/index.js +9 -0
- package/esm/banner/styled-components.js +113 -0
- package/esm/banner/types.js +8 -0
- package/esm/breadcrumbs/breadcrumbs.js +5 -1
- package/esm/button/button.js +2 -1
- package/esm/datepicker/utils/date-helpers.js +1 -1
- package/esm/file-uploader/file-uploader.js +23 -8
- package/esm/helper/helper-steps.js +3 -1
- package/esm/input/base-input.js +18 -11
- package/esm/input/input.js +15 -10
- package/esm/input/masked-input.js +6 -3
- package/esm/input/utils.js +4 -2
- package/esm/locale/tr_TR.js +115 -0
- package/esm/notification/notification.js +17 -1
- package/esm/payment-card/custom-cards.config.js +22 -0
- package/esm/payment-card/icons/uatp.js +53 -0
- package/esm/payment-card/payment-card.js +9 -7
- package/esm/popover/popover.js +2 -1
- package/esm/popover/stateful-container.js +2 -0
- package/esm/popover/styled-components.js +3 -2
- package/esm/progress-steps/numbered-step.js +2 -2
- package/esm/select/select-component.js +75 -57
- package/esm/table-semantic/styled-components.js +31 -18
- package/esm/table-semantic/table-builder.js +34 -23
- package/esm/textarea/textarea.js +15 -9
- package/esm/themes/dark-theme/color-component-tokens.js +8 -0
- package/esm/themes/light-theme/color-component-tokens.js +8 -0
- package/esm/tree-view/tree-label.js +10 -2
- package/file-uploader/file-uploader.js +23 -8
- package/file-uploader/file-uploader.js.flow +18 -5
- package/file-uploader/index.d.ts +11 -11
- package/file-uploader/types.js.flow +3 -0
- package/flex-grid/index.d.ts +3 -3
- package/form-control/index.d.ts +7 -19
- package/header-navigation/index.d.ts +8 -9
- package/heading/index.d.ts +3 -4
- package/helper/helper-steps.js +19 -13
- package/helper/helper-steps.js.flow +3 -1
- package/helper/index.d.ts +7 -7
- package/helpers/base-provider.d.ts +16 -0
- package/helpers/overrides.d.ts +23 -0
- package/icon/index.d.ts +32 -32
- package/index.d.ts +34 -99
- package/input/base-input.js +18 -11
- package/input/base-input.js.flow +18 -6
- package/input/index.d.ts +29 -32
- package/input/input.js +15 -10
- package/input/input.js.flow +10 -5
- package/input/masked-input.js +6 -3
- package/input/masked-input.js.flow +3 -0
- package/input/types.js.flow +4 -0
- package/input/utils.js +4 -2
- package/input/utils.js.flow +2 -1
- package/layer/index.d.ts +6 -11
- package/layout-grid/index.d.ts +25 -7
- package/link/index.d.ts +2 -2
- package/list/index.d.ts +26 -31
- package/{locale.ts → locale/index.d.ts} +8 -0
- package/locale/tr_TR.js +123 -0
- package/locale/tr_TR.js.flow +124 -0
- package/map-marker/index.d.ts +41 -47
- package/menu/index.d.ts +27 -37
- package/modal/index.d.ts +28 -38
- package/notification/index.d.ts +2 -3
- package/notification/notification.js +18 -1
- package/notification/notification.js.flow +15 -1
- package/overrides.ts +2 -22
- package/package.json +26 -17
- package/pagination/index.d.ts +22 -26
- package/payment-card/custom-cards.config.js +30 -0
- package/payment-card/custom-cards.config.js.flow +29 -0
- package/payment-card/icons/uatp.js +67 -0
- package/payment-card/icons/uatp.js.flow +62 -0
- package/payment-card/index.d.ts +8 -8
- package/payment-card/payment-card.js +12 -7
- package/payment-card/payment-card.js.flow +12 -0
- package/phone-input/index.d.ts +261 -269
- package/pin-code/index.d.ts +11 -18
- package/popover/index.d.ts +39 -55
- package/popover/popover.js +2 -1
- package/popover/popover.js.flow +2 -1
- package/popover/stateful-container.js +2 -0
- package/popover/stateful-container.js.flow +2 -0
- package/popover/styled-components.js +3 -2
- package/popover/styled-components.js.flow +2 -1
- package/popover/types.js.flow +1 -0
- package/progress-bar/index.d.ts +11 -12
- package/progress-steps/index.d.ts +16 -16
- package/progress-steps/numbered-step.js.flow +2 -2
- package/radio/index.d.ts +12 -15
- package/rating/index.d.ts +9 -12
- package/select/index.d.ts +33 -36
- package/select/select-component.js +72 -54
- package/select/select-component.js.flow +35 -30
- package/side-navigation/index.d.ts +11 -13
- package/skeleton/index.d.ts +1 -1
- package/slider/index.d.ts +17 -26
- package/snackbar/index.d.ts +8 -8
- package/spinner/index.d.ts +2 -2
- package/styles/index.d.ts +82 -2
- package/table/index.d.ts +16 -16
- package/table-grid/index.d.ts +6 -8
- package/table-semantic/index.d.ts +26 -32
- package/table-semantic/styled-components.js +33 -19
- package/table-semantic/styled-components.js.flow +12 -0
- package/table-semantic/table-builder.js +38 -22
- package/table-semantic/table-builder.js.flow +32 -17
- package/table-semantic/types.js.flow +1 -0
- package/tabs/index.d.ts +20 -23
- package/tabs-motion/index.d.ts +23 -23
- package/tag/index.d.ts +14 -18
- package/textarea/index.d.ts +11 -14
- package/textarea/textarea.js +15 -9
- package/textarea/textarea.js.flow +11 -5
- package/textarea/types.js.flow +1 -0
- package/theme.ts +36 -777
- package/themes/dark-theme/color-component-tokens.js +8 -0
- package/themes/dark-theme/color-component-tokens.js.flow +9 -0
- package/themes/index.d.ts +765 -0
- package/themes/light-theme/color-component-tokens.js +8 -0
- package/themes/light-theme/color-component-tokens.js.flow +9 -0
- package/themes/types.js.flow +9 -0
- package/timepicker/index.d.ts +5 -8
- package/timezonepicker/index.d.ts +5 -8
- package/toast/index.d.ts +26 -40
- package/tokens/index.d.ts +1 -1
- package/tooltip/index.d.ts +7 -9
- package/tree-view/index.d.ts +15 -19
- package/tree-view/tree-label.js +10 -2
- package/tree-view/tree-label.js.flow +4 -4
- package/typography/index.d.ts +37 -37
|
@@ -25,6 +25,14 @@ var tagHoverBackground = "rgba(0, 0, 0, 0.08)";
|
|
|
25
25
|
var _default = function _default() {
|
|
26
26
|
var themePrimitives = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _colorTokens.default;
|
|
27
27
|
return {
|
|
28
|
+
bannerActionLowInfo: themePrimitives.accent100,
|
|
29
|
+
bannerActionLowNegative: themePrimitives.negative100,
|
|
30
|
+
bannerActionLowPositive: themePrimitives.positive100,
|
|
31
|
+
bannerActionLowWarning: themePrimitives.warning200,
|
|
32
|
+
bannerActionHighInfo: themePrimitives.accent500,
|
|
33
|
+
bannerActionHighNegative: themePrimitives.negative500,
|
|
34
|
+
bannerActionHighPositive: themePrimitives.positive500,
|
|
35
|
+
bannerActionHighWarning: themePrimitives.warning200,
|
|
28
36
|
// Buttons
|
|
29
37
|
buttonPrimaryFill: themePrimitives.primary,
|
|
30
38
|
buttonPrimaryText: themePrimitives.white,
|
|
@@ -16,6 +16,15 @@ const tagHoverBackground = `rgba(0, 0, 0, 0.08)`;
|
|
|
16
16
|
// Due to the legacy `createTheme` type the value need to be
|
|
17
17
|
// overrideable through primitives (`foundation` )
|
|
18
18
|
export default (themePrimitives: ColorTokensT = colorTokens): ComponentColorTokensT => ({
|
|
19
|
+
bannerActionLowInfo: themePrimitives.accent100,
|
|
20
|
+
bannerActionLowNegative: themePrimitives.negative100,
|
|
21
|
+
bannerActionLowPositive: themePrimitives.positive100,
|
|
22
|
+
bannerActionLowWarning: themePrimitives.warning200,
|
|
23
|
+
bannerActionHighInfo: themePrimitives.accent500,
|
|
24
|
+
bannerActionHighNegative: themePrimitives.negative500,
|
|
25
|
+
bannerActionHighPositive: themePrimitives.positive500,
|
|
26
|
+
bannerActionHighWarning: themePrimitives.warning200,
|
|
27
|
+
|
|
19
28
|
// Buttons
|
|
20
29
|
buttonPrimaryFill: themePrimitives.primary,
|
|
21
30
|
buttonPrimaryText: themePrimitives.white,
|
package/themes/types.js.flow
CHANGED
|
@@ -173,6 +173,15 @@ export type SemanticColorTokensT = {|
|
|
|
173
173
|
|};
|
|
174
174
|
|
|
175
175
|
export type ComponentColorTokensT = {|
|
|
176
|
+
bannerActionLowInfo: string,
|
|
177
|
+
bannerActionLowNegative: string,
|
|
178
|
+
bannerActionLowPositive: string,
|
|
179
|
+
bannerActionLowWarning: string,
|
|
180
|
+
bannerActionHighInfo: string,
|
|
181
|
+
bannerActionHighNegative: string,
|
|
182
|
+
bannerActionHighPositive: string,
|
|
183
|
+
bannerActionHighWarning: string,
|
|
184
|
+
|
|
176
185
|
// Buttons
|
|
177
186
|
buttonPrimaryFill: string,
|
|
178
187
|
buttonPrimaryText: string,
|
package/timepicker/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {Option} from '../select';
|
|
3
|
-
import {SIZE} from '../input';
|
|
4
|
-
import {Override} from '../overrides';
|
|
2
|
+
import { Option } from '../select';
|
|
3
|
+
import { SIZE } from '../input';
|
|
4
|
+
import { Override } from '../overrides';
|
|
5
5
|
|
|
6
6
|
export interface TimePickerOverrides {
|
|
7
7
|
Select?: Override<any>;
|
|
@@ -19,7 +19,7 @@ export interface TimePickerProps {
|
|
|
19
19
|
placeholder?: string;
|
|
20
20
|
step?: number;
|
|
21
21
|
value?: Date | null;
|
|
22
|
-
size?: SIZE[keyof SIZE];
|
|
22
|
+
size?: typeof SIZE[keyof typeof SIZE];
|
|
23
23
|
minTime?: Date;
|
|
24
24
|
maxTime?: Date;
|
|
25
25
|
ignoreMinMaxDateComponent?: boolean;
|
|
@@ -28,10 +28,7 @@ export interface TimePickerState {
|
|
|
28
28
|
steps: number[];
|
|
29
29
|
value?: Option;
|
|
30
30
|
}
|
|
31
|
-
export class TimePicker extends React.Component<
|
|
32
|
-
TimePickerProps,
|
|
33
|
-
TimePickerState
|
|
34
|
-
> {
|
|
31
|
+
export class TimePicker extends React.Component<TimePickerProps, TimePickerState> {
|
|
35
32
|
handleChange(steps: number): void;
|
|
36
33
|
buildSteps(): number[];
|
|
37
34
|
buildSelectedOption(value: Date, format: string): object;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {Option} from '../select';
|
|
3
|
-
import {SIZE} from '../input';
|
|
4
|
-
import {Override} from '../overrides';
|
|
2
|
+
import { Option } from '../select';
|
|
3
|
+
import { SIZE } from '../input';
|
|
4
|
+
import { Override } from '../overrides';
|
|
5
5
|
|
|
6
6
|
export interface Timezone {
|
|
7
7
|
id: string;
|
|
@@ -22,16 +22,13 @@ export interface TimezonePickerProps {
|
|
|
22
22
|
onChange?: (value: Timezone) => any;
|
|
23
23
|
overrides?: TimezoneOverrides;
|
|
24
24
|
value?: string;
|
|
25
|
-
size?: SIZE[keyof SIZE];
|
|
25
|
+
size?: typeof SIZE[keyof typeof SIZE];
|
|
26
26
|
includeAbbreviations?: boolean;
|
|
27
27
|
}
|
|
28
28
|
export interface TimezonePickerState {
|
|
29
29
|
timezones: Option[];
|
|
30
30
|
value?: string;
|
|
31
31
|
}
|
|
32
|
-
export class TimezonePicker extends React.Component<
|
|
33
|
-
TimezonePickerProps,
|
|
34
|
-
TimezonePickerState
|
|
35
|
-
> {
|
|
32
|
+
export class TimezonePicker extends React.Component<TimezonePickerProps, TimezonePickerState> {
|
|
36
33
|
buildTimezones(compareDate: Date): string[];
|
|
37
34
|
}
|
package/toast/index.d.ts
CHANGED
|
@@ -1,54 +1,46 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {StyletronComponent} from 'styletron-react';
|
|
3
|
-
import {Override} from '../overrides';
|
|
2
|
+
import { StyletronComponent } from 'styletron-react';
|
|
3
|
+
import { Override } from '../overrides';
|
|
4
4
|
|
|
5
|
-
export
|
|
5
|
+
export declare const KIND: {
|
|
6
6
|
info: 'info';
|
|
7
7
|
positive: 'positive';
|
|
8
8
|
warning: 'warning';
|
|
9
9
|
negative: 'negative';
|
|
10
|
-
}
|
|
11
|
-
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export declare const PLACEMENT: {
|
|
12
13
|
topLeft: 'topLeft';
|
|
13
14
|
top: 'top';
|
|
14
15
|
topRight: 'topRight';
|
|
15
16
|
bottomRight: 'bottomRight';
|
|
16
17
|
bottom: 'bottom';
|
|
17
18
|
bottomLeft: 'bottomLeft';
|
|
18
|
-
}
|
|
19
|
-
export
|
|
19
|
+
};
|
|
20
|
+
export declare const TYPE: {
|
|
20
21
|
inline: 'inline';
|
|
21
22
|
toast: 'toast';
|
|
22
|
-
}
|
|
23
|
+
};
|
|
23
24
|
|
|
24
25
|
export interface IToaster {
|
|
25
26
|
getRef: () => React.Ref<typeof ToasterContainer>;
|
|
26
27
|
show: (children: React.ReactNode, props: Readonly<ToastProps>) => React.Key;
|
|
27
28
|
info: (children: React.ReactNode, props: Readonly<ToastProps>) => React.Key;
|
|
28
|
-
positive: (
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
) => React.Key;
|
|
32
|
-
warning: (
|
|
33
|
-
children: React.ReactNode,
|
|
34
|
-
props: Readonly<ToastProps>,
|
|
35
|
-
) => React.Key;
|
|
36
|
-
negative: (
|
|
37
|
-
children: React.ReactNode,
|
|
38
|
-
props: Readonly<ToastProps>,
|
|
39
|
-
) => React.Key;
|
|
29
|
+
positive: (children: React.ReactNode, props: Readonly<ToastProps>) => React.Key;
|
|
30
|
+
warning: (children: React.ReactNode, props: Readonly<ToastProps>) => React.Key;
|
|
31
|
+
negative: (children: React.ReactNode, props: Readonly<ToastProps>) => React.Key;
|
|
40
32
|
update: (key: React.Key, props: Readonly<ToastProps>) => void;
|
|
41
33
|
clear: (key?: React.Key) => void;
|
|
42
34
|
}
|
|
43
35
|
|
|
44
|
-
export const toaster: IToaster;
|
|
36
|
+
export declare const toaster: IToaster;
|
|
45
37
|
|
|
46
38
|
export interface ToasterContainerState {
|
|
47
39
|
isMounted: boolean;
|
|
48
40
|
toasts: Readonly<ToastProps>;
|
|
49
41
|
}
|
|
50
42
|
export interface ToasterSharedStylePropsArg {
|
|
51
|
-
$placement?: PLACEMENT[keyof PLACEMENT];
|
|
43
|
+
$placement?: typeof PLACEMENT[keyof typeof PLACEMENT];
|
|
52
44
|
}
|
|
53
45
|
export interface ToasterOverrides {
|
|
54
46
|
Root?: Override<ToasterSharedStylePropsArg>;
|
|
@@ -58,7 +50,7 @@ export interface ToasterOverrides {
|
|
|
58
50
|
}
|
|
59
51
|
export interface ToasterProps {
|
|
60
52
|
overrides?: ToasterOverrides;
|
|
61
|
-
placement?: PLACEMENT[keyof PLACEMENT];
|
|
53
|
+
placement?: typeof PLACEMENT[keyof typeof PLACEMENT];
|
|
62
54
|
usePortal?: boolean;
|
|
63
55
|
autoHideDuration?: number;
|
|
64
56
|
}
|
|
@@ -66,7 +58,7 @@ export class ToasterContainer extends React.Component<
|
|
|
66
58
|
Readonly<ToasterProps>,
|
|
67
59
|
ToasterContainerState
|
|
68
60
|
> {
|
|
69
|
-
getToastProps(props: ToastProps): Readonly<ToastProps> & {key: React.Key};
|
|
61
|
+
getToastProps(props: ToastProps): Readonly<ToastProps> & { key: React.Key };
|
|
70
62
|
show(props: ToastProps): React.Key;
|
|
71
63
|
update(key: React.Key, props: ToastProps): void;
|
|
72
64
|
dismiss(key: React.Key): void;
|
|
@@ -74,13 +66,13 @@ export class ToasterContainer extends React.Component<
|
|
|
74
66
|
clear(key: React.Key): void;
|
|
75
67
|
internalOnClose(key: React.Key): void;
|
|
76
68
|
getOnCloseHandler(key: React.Key, onClose?: () => any): () => any;
|
|
77
|
-
renderToast(toastProps: ToastProps & {key: React.Key}): React.ReactNode;
|
|
78
|
-
getSharedProps(): {$placement: PLACEMENT[keyof PLACEMENT]};
|
|
69
|
+
renderToast(toastProps: ToastProps & { key: React.Key }): React.ReactNode;
|
|
70
|
+
getSharedProps(): { $placement: typeof PLACEMENT[keyof typeof PLACEMENT] };
|
|
79
71
|
}
|
|
80
72
|
|
|
81
73
|
export interface SharedStylePropsArg {
|
|
82
|
-
$kind?: KIND[keyof KIND];
|
|
83
|
-
$type?: TYPE[keyof TYPE];
|
|
74
|
+
$kind?: typeof KIND[keyof typeof KIND];
|
|
75
|
+
$type?: typeof TYPE[keyof typeof TYPE];
|
|
84
76
|
$closeable?: boolean;
|
|
85
77
|
$isRendered?: boolean;
|
|
86
78
|
$isVisible?: boolean;
|
|
@@ -99,12 +91,10 @@ export interface ToastOverrides {
|
|
|
99
91
|
export interface ToastProps {
|
|
100
92
|
autoHideDuration?: number;
|
|
101
93
|
autoFocus?: Boolean;
|
|
102
|
-
children?:
|
|
103
|
-
| ((args: {dismiss: () => void}) => React.ReactNode)
|
|
104
|
-
| React.ReactNode;
|
|
94
|
+
children?: ((args: { dismiss: () => void }) => React.ReactNode) | React.ReactNode;
|
|
105
95
|
closeable?: boolean;
|
|
106
|
-
kind?: KIND[keyof KIND];
|
|
107
|
-
notificationType?: TYPE[keyof TYPE];
|
|
96
|
+
kind?: typeof KIND[keyof typeof KIND];
|
|
97
|
+
notificationType?: typeof TYPE[keyof typeof TYPE];
|
|
108
98
|
onClose?: () => any;
|
|
109
99
|
onBlur?: (e: Event) => any;
|
|
110
100
|
onFocus?: (e: Event) => any;
|
|
@@ -128,10 +118,6 @@ export class Toast extends React.Component<ToastProps, ToastPrivateState> {
|
|
|
128
118
|
getSharedProps(): Readonly<SharedStylePropsArg>;
|
|
129
119
|
}
|
|
130
120
|
|
|
131
|
-
export const Root: StyletronComponent<any>;
|
|
132
|
-
export const Body: StyletronComponent<any>;
|
|
133
|
-
export const CloseIconSvg: StyletronComponent<any>;
|
|
134
|
-
|
|
135
|
-
export const KIND: KIND;
|
|
136
|
-
export const PLACEMENT: PLACEMENT;
|
|
137
|
-
export const TYPE: TYPE;
|
|
121
|
+
export declare const Root: StyletronComponent<any>;
|
|
122
|
+
export declare const Body: StyletronComponent<any>;
|
|
123
|
+
export declare const CloseIconSvg: StyletronComponent<any>;
|
package/tokens/index.d.ts
CHANGED
package/tooltip/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {StyletronComponent} from 'styletron-react';
|
|
2
|
+
import { StyletronComponent } from 'styletron-react';
|
|
3
3
|
import {
|
|
4
4
|
ACCESSIBILITY_TYPE,
|
|
5
5
|
PLACEMENT,
|
|
@@ -11,18 +11,16 @@ import {
|
|
|
11
11
|
} from '../popover';
|
|
12
12
|
|
|
13
13
|
export type StatefulTooltipProps = StatefulPopoverProps;
|
|
14
|
-
export const StatefulTooltip: React.FC<StatefulTooltipProps>;
|
|
14
|
+
export declare const StatefulTooltip: React.FC<StatefulTooltipProps>;
|
|
15
15
|
|
|
16
16
|
export type StatefulTooltipContainerProps = StatefulPopoverContainerProps;
|
|
17
|
-
export class StatefulContainer extends React.Component<
|
|
18
|
-
StatefulTooltipContainerProps
|
|
19
|
-
> {}
|
|
17
|
+
export class StatefulContainer extends React.Component<StatefulTooltipContainerProps> {}
|
|
20
18
|
|
|
21
|
-
export {ACCESSIBILITY_TYPE, PLACEMENT, TRIGGER_TYPE};
|
|
19
|
+
export { ACCESSIBILITY_TYPE, PLACEMENT, TRIGGER_TYPE };
|
|
22
20
|
|
|
23
21
|
export type TooltipProps = PopoverProps;
|
|
24
22
|
export class Tooltip extends React.Component<TooltipProps> {}
|
|
25
23
|
|
|
26
|
-
export const StyledArrow: StyletronComponent<any>;
|
|
27
|
-
export const StyledBody: StyletronComponent<any>;
|
|
28
|
-
export const StyledInner: StyletronComponent<any>;
|
|
24
|
+
export declare const StyledArrow: StyletronComponent<any>;
|
|
25
|
+
export declare const StyledBody: StyletronComponent<any>;
|
|
26
|
+
export declare const StyledInner: StyletronComponent<any>;
|
package/tree-view/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {StyletronComponent} from 'styletron-react';
|
|
3
|
-
import {Override} from '../overrides';
|
|
2
|
+
import { StyletronComponent } from 'styletron-react';
|
|
3
|
+
import { Override } from '../overrides';
|
|
4
4
|
|
|
5
5
|
export interface TreeViewOverrides extends TreeLabelOverrides {
|
|
6
6
|
Root?: Override<{}>;
|
|
7
|
-
TreeItemList?: Override<{$isChildNode?: boolean}>;
|
|
8
|
-
TreeItem?: Override<{$isLeafNode?: boolean}>;
|
|
7
|
+
TreeItemList?: Override<{ $isChildNode?: boolean }>;
|
|
8
|
+
TreeItem?: Override<{ $isLeafNode?: boolean }>;
|
|
9
9
|
TreeLabel?: Override<TreeLabelProps>;
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -56,26 +56,22 @@ export interface TreeViewProps {
|
|
|
56
56
|
singleExpanded?: boolean;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
export const TreeView: React.FC<TreeViewProps>;
|
|
59
|
+
export declare const TreeView: React.FC<TreeViewProps>;
|
|
60
60
|
|
|
61
|
-
export const StatefulTreeView: React.FC<TreeViewProps>;
|
|
61
|
+
export declare const StatefulTreeView: React.FC<TreeViewProps>;
|
|
62
62
|
|
|
63
|
-
export const TreeLabel: React.FC<TreeLabelProps>;
|
|
63
|
+
export declare const TreeLabel: React.FC<TreeLabelProps>;
|
|
64
64
|
|
|
65
|
-
export const StyledTreeItemList: StyletronComponent<any>;
|
|
66
|
-
export const StyledTreeItem: StyletronComponent<any>;
|
|
67
|
-
export const StyledItemContent: StyletronComponent<any>;
|
|
68
|
-
export const StyledIconContainer: StyletronComponent<any>;
|
|
65
|
+
export declare const StyledTreeItemList: StyletronComponent<any>;
|
|
66
|
+
export declare const StyledTreeItem: StyletronComponent<any>;
|
|
67
|
+
export declare const StyledItemContent: StyletronComponent<any>;
|
|
68
|
+
export declare const StyledIconContainer: StyletronComponent<any>;
|
|
69
69
|
|
|
70
70
|
type TGetId = (node: TreeNode) => string | number;
|
|
71
|
-
type toggleIsExpandedT = (
|
|
72
|
-
data: TreeNode[],
|
|
73
|
-
toggledNode: TreeNode,
|
|
74
|
-
getId?: TGetId,
|
|
75
|
-
) => TreeNode[];
|
|
71
|
+
type toggleIsExpandedT = (data: TreeNode[], toggledNode: TreeNode, getId?: TGetId) => TreeNode[];
|
|
76
72
|
|
|
77
|
-
export const toggleIsExpanded: toggleIsExpandedT;
|
|
78
|
-
export const TreeLabelInteractable: React.FC<{
|
|
79
|
-
overrides?: {LabelInteractable: Override<any>};
|
|
73
|
+
export declare const toggleIsExpanded: toggleIsExpandedT;
|
|
74
|
+
export declare const TreeLabelInteractable: React.FC<{
|
|
75
|
+
overrides?: { LabelInteractable: Override<any> };
|
|
80
76
|
children?: React.ReactNode;
|
|
81
77
|
}>;
|
package/tree-view/tree-label.js
CHANGED
|
@@ -89,8 +89,16 @@ var TreeLabel = function TreeLabel(_ref) {
|
|
|
89
89
|
/*#__PURE__*/
|
|
90
90
|
// $FlowExpectedError[cannot-spread-inexact]
|
|
91
91
|
_react.default.createElement(TreeItemContent, _extends({}, sharedProps, props), hasChildren && /*#__PURE__*/_react.default.createElement(IconContainer, _extends({}, sharedProps, (0, _overrides.getOverrideProps)(IconContainerOverride)), !isExpanded ? /*#__PURE__*/_react.default.createElement(_themeProvider.ThemeContext.Consumer, null, function (theme) {
|
|
92
|
-
return theme.direction === 'rtl' ? /*#__PURE__*/_react.default.createElement(Left, _extends({
|
|
93
|
-
|
|
92
|
+
return theme.direction === 'rtl' ? /*#__PURE__*/_react.default.createElement(Left, _extends({
|
|
93
|
+
size: 16
|
|
94
|
+
}, sharedProps, LeftProps)) : /*#__PURE__*/_react.default.createElement(Right, _extends({
|
|
95
|
+
size: 16
|
|
96
|
+
}, sharedProps, RightProps));
|
|
97
|
+
}) : /*#__PURE__*/_react.default.createElement(CollapseIcon, _extends({
|
|
98
|
+
size: 16
|
|
99
|
+
}, sharedProps, (0, _overrides.getOverrideProps)(CollapseIconOverride)))), !hasChildren && LeafIcon && /*#__PURE__*/_react.default.createElement(LeafIconContainer, _extends({}, sharedProps, (0, _overrides.getOverrideProps)(LeafIconContainerOverride)), /*#__PURE__*/_react.default.createElement(LeafIcon, _extends({
|
|
100
|
+
size: 16
|
|
101
|
+
}, sharedProps, (0, _overrides.getOverrideProps)(LeafIconOverride)))), typeof label === 'function' ? label(node) : label)
|
|
94
102
|
);
|
|
95
103
|
};
|
|
96
104
|
|
|
@@ -55,20 +55,20 @@ const TreeLabel: React$ComponentType<TreeLabelT> = ({
|
|
|
55
55
|
<ThemeContext.Consumer>
|
|
56
56
|
{(theme) =>
|
|
57
57
|
theme.direction === 'rtl' ? (
|
|
58
|
-
<Left {...sharedProps} {...LeftProps} />
|
|
58
|
+
<Left size={16} {...sharedProps} {...LeftProps} />
|
|
59
59
|
) : (
|
|
60
|
-
<Right {...sharedProps} {...RightProps} />
|
|
60
|
+
<Right size={16} {...sharedProps} {...RightProps} />
|
|
61
61
|
)
|
|
62
62
|
}
|
|
63
63
|
</ThemeContext.Consumer>
|
|
64
64
|
) : (
|
|
65
|
-
<CollapseIcon {...sharedProps} {...getOverrideProps(CollapseIconOverride)} />
|
|
65
|
+
<CollapseIcon size={16} {...sharedProps} {...getOverrideProps(CollapseIconOverride)} />
|
|
66
66
|
)}
|
|
67
67
|
</IconContainer>
|
|
68
68
|
)}
|
|
69
69
|
{!hasChildren && LeafIcon && (
|
|
70
70
|
<LeafIconContainer {...sharedProps} {...getOverrideProps(LeafIconContainerOverride)}>
|
|
71
|
-
<LeafIcon {...sharedProps} {...getOverrideProps(LeafIconOverride)} />
|
|
71
|
+
<LeafIcon size={16} {...sharedProps} {...getOverrideProps(LeafIconOverride)} />
|
|
72
72
|
</LeafIconContainer>
|
|
73
73
|
)}
|
|
74
74
|
{typeof label === 'function' ? label(node) : label}
|
package/typography/index.d.ts
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {BlockProps} from '../block';
|
|
2
|
+
import { BlockProps } from '../block';
|
|
3
3
|
|
|
4
|
-
export const DisplayLarge: React.FC<BlockProps>;
|
|
5
|
-
export const DisplayMedium: React.FC<BlockProps>;
|
|
6
|
-
export const DisplaySmall: React.FC<BlockProps>;
|
|
7
|
-
export const DisplayXSmall: React.FC<BlockProps>;
|
|
8
|
-
export const HeadingXXLarge: React.FC<BlockProps>;
|
|
9
|
-
export const HeadingXLarge: React.FC<BlockProps>;
|
|
10
|
-
export const HeadingLarge: React.FC<BlockProps>;
|
|
11
|
-
export const HeadingMedium: React.FC<BlockProps>;
|
|
12
|
-
export const HeadingSmall: React.FC<BlockProps>;
|
|
13
|
-
export const HeadingXSmall: React.FC<BlockProps>;
|
|
14
|
-
export const LabelLarge: React.FC<BlockProps>;
|
|
15
|
-
export const LabelMedium: React.FC<BlockProps>;
|
|
16
|
-
export const LabelSmall: React.FC<BlockProps>;
|
|
17
|
-
export const LabelXSmall: React.FC<BlockProps>;
|
|
18
|
-
export const ParagraphLarge: React.FC<BlockProps>;
|
|
19
|
-
export const ParagraphMedium: React.FC<BlockProps>;
|
|
20
|
-
export const ParagraphSmall: React.FC<BlockProps>;
|
|
21
|
-
export const ParagraphXSmall: React.FC<BlockProps>;
|
|
22
|
-
export const MonoDisplayLarge: React.FC<BlockProps>;
|
|
23
|
-
export const MonoDisplayMedium: React.FC<BlockProps>;
|
|
24
|
-
export const MonoDisplaySmall: React.FC<BlockProps>;
|
|
25
|
-
export const MonoDisplayXSmall: React.FC<BlockProps>;
|
|
26
|
-
export const MonoHeadingXXLarge: React.FC<BlockProps>;
|
|
27
|
-
export const MonoHeadingXLarge: React.FC<BlockProps>;
|
|
28
|
-
export const MonoHeadingLarge: React.FC<BlockProps>;
|
|
29
|
-
export const MonoHeadingMedium: React.FC<BlockProps>;
|
|
30
|
-
export const MonoHeadingSmall: React.FC<BlockProps>;
|
|
31
|
-
export const MonoHeadingXSmall: React.FC<BlockProps>;
|
|
32
|
-
export const MonoLabelLarge: React.FC<BlockProps>;
|
|
33
|
-
export const MonoLabelMedium: React.FC<BlockProps>;
|
|
34
|
-
export const MonoLabelSmall: React.FC<BlockProps>;
|
|
35
|
-
export const MonoLabelXSmall: React.FC<BlockProps>;
|
|
36
|
-
export const MonoParagraphLarge: React.FC<BlockProps>;
|
|
37
|
-
export const MonoParagraphMedium: React.FC<BlockProps>;
|
|
38
|
-
export const MonoParagraphSmall: React.FC<BlockProps>;
|
|
39
|
-
export const MonoParagraphXSmall: React.FC<BlockProps>;
|
|
4
|
+
export declare const DisplayLarge: React.FC<BlockProps>;
|
|
5
|
+
export declare const DisplayMedium: React.FC<BlockProps>;
|
|
6
|
+
export declare const DisplaySmall: React.FC<BlockProps>;
|
|
7
|
+
export declare const DisplayXSmall: React.FC<BlockProps>;
|
|
8
|
+
export declare const HeadingXXLarge: React.FC<BlockProps>;
|
|
9
|
+
export declare const HeadingXLarge: React.FC<BlockProps>;
|
|
10
|
+
export declare const HeadingLarge: React.FC<BlockProps>;
|
|
11
|
+
export declare const HeadingMedium: React.FC<BlockProps>;
|
|
12
|
+
export declare const HeadingSmall: React.FC<BlockProps>;
|
|
13
|
+
export declare const HeadingXSmall: React.FC<BlockProps>;
|
|
14
|
+
export declare const LabelLarge: React.FC<BlockProps>;
|
|
15
|
+
export declare const LabelMedium: React.FC<BlockProps>;
|
|
16
|
+
export declare const LabelSmall: React.FC<BlockProps>;
|
|
17
|
+
export declare const LabelXSmall: React.FC<BlockProps>;
|
|
18
|
+
export declare const ParagraphLarge: React.FC<BlockProps>;
|
|
19
|
+
export declare const ParagraphMedium: React.FC<BlockProps>;
|
|
20
|
+
export declare const ParagraphSmall: React.FC<BlockProps>;
|
|
21
|
+
export declare const ParagraphXSmall: React.FC<BlockProps>;
|
|
22
|
+
export declare const MonoDisplayLarge: React.FC<BlockProps>;
|
|
23
|
+
export declare const MonoDisplayMedium: React.FC<BlockProps>;
|
|
24
|
+
export declare const MonoDisplaySmall: React.FC<BlockProps>;
|
|
25
|
+
export declare const MonoDisplayXSmall: React.FC<BlockProps>;
|
|
26
|
+
export declare const MonoHeadingXXLarge: React.FC<BlockProps>;
|
|
27
|
+
export declare const MonoHeadingXLarge: React.FC<BlockProps>;
|
|
28
|
+
export declare const MonoHeadingLarge: React.FC<BlockProps>;
|
|
29
|
+
export declare const MonoHeadingMedium: React.FC<BlockProps>;
|
|
30
|
+
export declare const MonoHeadingSmall: React.FC<BlockProps>;
|
|
31
|
+
export declare const MonoHeadingXSmall: React.FC<BlockProps>;
|
|
32
|
+
export declare const MonoLabelLarge: React.FC<BlockProps>;
|
|
33
|
+
export declare const MonoLabelMedium: React.FC<BlockProps>;
|
|
34
|
+
export declare const MonoLabelSmall: React.FC<BlockProps>;
|
|
35
|
+
export declare const MonoLabelXSmall: React.FC<BlockProps>;
|
|
36
|
+
export declare const MonoParagraphLarge: React.FC<BlockProps>;
|
|
37
|
+
export declare const MonoParagraphMedium: React.FC<BlockProps>;
|
|
38
|
+
export declare const MonoParagraphSmall: React.FC<BlockProps>;
|
|
39
|
+
export declare const MonoParagraphXSmall: React.FC<BlockProps>;
|