@salesforce/design-system-react 11.0.0-alpha.7 → 11.0.0-alpha.8
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/cjs/components/color-picker/color-picker.cjs +1 -1
- package/dist/cjs/components/color-picker/color-picker.cjs.map +1 -1
- package/dist/cjs/components/combobox/combobox.cjs +1 -1
- package/dist/cjs/components/combobox/combobox.cjs.map +1 -1
- package/dist/cjs/components/filter/filter.cjs +1 -1
- package/dist/cjs/components/filter/filter.cjs.map +1 -1
- package/dist/cjs/components/modal/check-props.cjs +2 -0
- package/dist/cjs/components/modal/check-props.cjs.map +1 -0
- package/dist/cjs/components/modal/component.cjs +2 -0
- package/dist/cjs/components/modal/component.cjs.map +1 -0
- package/dist/cjs/components/modal/index.cjs +1 -1
- package/dist/cjs/components/modal/index.cjs.map +1 -1
- package/dist/cjs/components/popover/component.cjs +2 -0
- package/dist/cjs/components/popover/component.cjs.map +1 -0
- package/dist/cjs/components/popover/edit-dialog.cjs +1 -1
- package/dist/cjs/components/popover/edit-dialog.cjs.map +1 -1
- package/dist/cjs/components/popover/popover.cjs +1 -1
- package/dist/cjs/components/popover/popover.cjs.map +1 -1
- package/dist/cjs/components/slider/check-props.cjs +1 -1
- package/dist/cjs/components/slider/check-props.cjs.map +1 -1
- package/dist/cjs/components/slider/index.cjs +1 -1
- package/dist/cjs/components/slider/index.cjs.map +1 -1
- package/dist/cjs/components/spinner/check-props.cjs +2 -0
- package/dist/cjs/components/spinner/check-props.cjs.map +1 -0
- package/dist/cjs/components/spinner/component.cjs +2 -0
- package/dist/cjs/components/spinner/component.cjs.map +1 -0
- package/dist/cjs/components/spinner/index.cjs +1 -1
- package/dist/cjs/components/spinner/index.cjs.map +1 -1
- package/dist/cjs/components/tree/check-props.cjs +1 -1
- package/dist/cjs/components/tree/check-props.cjs.map +1 -1
- package/dist/cjs/components/tree/tree.cjs +1 -1
- package/dist/cjs/components/tree/tree.cjs.map +1 -1
- package/dist/cjs/components/vertical-navigation/index.cjs +1 -1
- package/dist/cjs/components/vertical-navigation/index.cjs.map +1 -1
- package/dist/cjs/components/welcome-mat/index.cjs +1 -1
- package/dist/cjs/components/welcome-mat/index.cjs.map +1 -1
- package/dist/es/components/color-picker/color-picker.js +1 -1
- package/dist/es/components/color-picker/color-picker.js.map +1 -1
- package/dist/es/components/combobox/combobox.js +2 -2
- package/dist/es/components/combobox/combobox.js.map +1 -1
- package/dist/es/components/filter/filter.js +1 -1
- package/dist/es/components/filter/filter.js.map +1 -1
- package/dist/es/components/modal/check-props.js +22 -0
- package/dist/es/components/modal/check-props.js.map +1 -0
- package/dist/es/components/modal/component.js +35 -0
- package/dist/es/components/modal/component.js.map +1 -0
- package/dist/es/components/modal/index.js +118 -104
- package/dist/es/components/modal/index.js.map +1 -1
- package/dist/es/components/popover/component.js +59 -0
- package/dist/es/components/popover/component.js.map +1 -0
- package/dist/es/components/popover/edit-dialog.js +1 -1
- package/dist/es/components/popover/edit-dialog.js.map +1 -1
- package/dist/es/components/popover/popover.js +235 -191
- package/dist/es/components/popover/popover.js.map +1 -1
- package/dist/es/components/slider/check-props.js +1 -1
- package/dist/es/components/slider/check-props.js.map +1 -1
- package/dist/es/components/slider/index.js +63 -60
- package/dist/es/components/slider/index.js.map +1 -1
- package/dist/es/components/spinner/check-props.js +13 -0
- package/dist/es/components/spinner/check-props.js.map +1 -0
- package/dist/es/components/spinner/component.js +17 -0
- package/dist/es/components/spinner/component.js.map +1 -0
- package/dist/es/components/spinner/index.js +43 -29
- package/dist/es/components/spinner/index.js.map +1 -1
- package/dist/es/components/tree/check-props.js +1 -1
- package/dist/es/components/tree/check-props.js.map +1 -1
- package/dist/es/components/tree/tree.js +79 -73
- package/dist/es/components/tree/tree.js.map +1 -1
- package/dist/es/components/vertical-navigation/index.js +17 -16
- package/dist/es/components/vertical-navigation/index.js.map +1 -1
- package/dist/es/components/welcome-mat/index.js +51 -50
- package/dist/es/components/welcome-mat/index.js.map +1 -1
- package/dist/types/components/color-picker/color-picker.d.ts.map +1 -1
- package/dist/types/components/modal/check-props.d.ts +3 -0
- package/dist/types/components/modal/check-props.d.ts.map +1 -0
- package/dist/types/components/modal/index.d.ts +21 -13
- package/dist/types/components/modal/index.d.ts.map +1 -1
- package/dist/types/components/popover/popover.d.ts +24 -14
- package/dist/types/components/popover/popover.d.ts.map +1 -1
- package/dist/types/components/slider/check-props.d.ts.map +1 -1
- package/dist/types/components/slider/index.d.ts +9 -7
- package/dist/types/components/slider/index.d.ts.map +1 -1
- package/dist/types/components/spinner/check-props.d.ts +3 -0
- package/dist/types/components/spinner/check-props.d.ts.map +1 -0
- package/dist/types/components/spinner/index.d.ts +18 -9
- package/dist/types/components/spinner/index.d.ts.map +1 -1
- package/dist/types/components/tree/check-props.d.ts.map +1 -1
- package/dist/types/components/tree/tree.d.ts +8 -4
- package/dist/types/components/tree/tree.d.ts.map +1 -1
- package/dist/types/components/vertical-navigation/index.d.ts +7 -7
- package/dist/types/components/vertical-navigation/index.d.ts.map +1 -1
- package/dist/types/components/welcome-mat/index.d.ts +5 -6
- package/dist/types/components/welcome-mat/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CSSProperties, ReactNode, MouseEvent, KeyboardEvent } from 'react';
|
|
2
2
|
export type ModalAlign = 'top' | 'center';
|
|
3
3
|
export type ModalSize = 'small' | 'medium' | 'large';
|
|
4
4
|
export type ModalPrompt = 'success' | 'warning' | 'error' | 'wrench' | 'offline' | 'info';
|
|
@@ -38,13 +38,23 @@ export interface ModalProps {
|
|
|
38
38
|
assistiveText?: ModalAssistiveText;
|
|
39
39
|
/** Modal content. */
|
|
40
40
|
children: ReactNode;
|
|
41
|
-
/** Custom CSS classes for the
|
|
41
|
+
/** Custom CSS classes for the root `section.slds-modal` node. */
|
|
42
42
|
className?: string | string[] | Record<string, boolean>;
|
|
43
|
-
/** Custom CSS classes for the
|
|
43
|
+
/** Custom CSS classes for the `.slds-modal__container` node. */
|
|
44
|
+
classNameContainer?: string | string[] | Record<string, boolean>;
|
|
45
|
+
/** Custom CSS classes for the `.slds-modal__content` (body) node. */
|
|
46
|
+
classNameContent?: string | string[] | Record<string, boolean>;
|
|
47
|
+
/** Custom CSS classes for the `footer.slds-modal__footer` node. */
|
|
48
|
+
classNameFooter?: string | string[] | Record<string, boolean>;
|
|
49
|
+
/** Custom CSS classes for the `header.slds-modal__header` node. */
|
|
50
|
+
classNameHeader?: string | string[] | Record<string, boolean>;
|
|
51
|
+
/** Custom CSS classes for the portal DOM node that react-modal appends to `parentSelector()`. */
|
|
52
|
+
classNamePortal?: string | string[] | Record<string, boolean>;
|
|
53
|
+
/** @deprecated Use `classNameContainer`. */
|
|
44
54
|
containerClassName?: string | string[] | Record<string, boolean>;
|
|
45
|
-
/**
|
|
55
|
+
/** @deprecated Use `classNameContent`. */
|
|
46
56
|
contentClassName?: string | string[] | Record<string, boolean>;
|
|
47
|
-
/**
|
|
57
|
+
/** @deprecated Use `styleContent`. */
|
|
48
58
|
contentStyle?: CSSProperties;
|
|
49
59
|
/** If true, modal footer buttons render left and right. */
|
|
50
60
|
directional?: boolean;
|
|
@@ -60,11 +70,11 @@ export interface ModalProps {
|
|
|
60
70
|
onRequestClose?: (event: ModalRequestCloseEvent, data: ModalRequestCloseData) => void;
|
|
61
71
|
/** Modal footer content, typically buttons. */
|
|
62
72
|
footer?: ReactNode | ReactNode[];
|
|
63
|
-
/**
|
|
73
|
+
/** @deprecated Use `classNameFooter`. */
|
|
64
74
|
footerClassName?: string | string[] | Record<string, boolean>;
|
|
65
75
|
/** Allows for a custom modal header that does not scroll with modal content. */
|
|
66
76
|
header?: ReactNode;
|
|
67
|
-
/**
|
|
77
|
+
/** @deprecated Use `classNameHeader`. */
|
|
68
78
|
headerClassName?: string | string[] | Record<string, boolean>;
|
|
69
79
|
/** Unique identifier for the modal. The id is automatically generated if not provided. */
|
|
70
80
|
id?: string;
|
|
@@ -72,22 +82,20 @@ export interface ModalProps {
|
|
|
72
82
|
isOpen: boolean;
|
|
73
83
|
/** Function whose return value is the mount node to insert the Modal element into. */
|
|
74
84
|
parentSelector?: () => HTMLElement;
|
|
75
|
-
/**
|
|
85
|
+
/** @deprecated Use `classNamePortal`. */
|
|
76
86
|
portalClassName?: string | string[] | Record<string, boolean>;
|
|
77
87
|
/** Styles the modal as a prompt. */
|
|
78
88
|
prompt?: ModalPrompt;
|
|
79
89
|
/** Specifies the modal's width. */
|
|
80
90
|
size?: ModalSize;
|
|
91
|
+
/** Custom styles for the `.slds-modal__content` (body) node. */
|
|
92
|
+
styleContent?: CSSProperties;
|
|
81
93
|
/** Content underneath the heading in the modal header. */
|
|
82
94
|
tagline?: ReactNode;
|
|
83
|
-
/** Content underneath the title in the modal header. @deprecated Use heading instead */
|
|
84
|
-
title?: ReactNode;
|
|
85
95
|
/** Text heading at the top of a modal. */
|
|
86
96
|
heading?: ReactNode;
|
|
87
97
|
/** Allows adding additional notifications within the modal. */
|
|
88
98
|
toast?: ReactNode;
|
|
89
|
-
/** @deprecated Use assistiveText.closeButton instead */
|
|
90
|
-
closeButtonAssistiveText?: string;
|
|
91
99
|
}
|
|
92
100
|
/**
|
|
93
101
|
* The Modal component is used for the Lightning Design System Modal and Notification > Prompt components.
|
|
@@ -100,6 +108,6 @@ export interface ModalProps {
|
|
|
100
108
|
* settings.setAppElement('#mount');
|
|
101
109
|
* ```
|
|
102
110
|
*/
|
|
103
|
-
declare const Modal:
|
|
111
|
+
declare const Modal: import("react").ForwardRefExoticComponent<ModalProps & import("react").RefAttributes<HTMLElement>>;
|
|
104
112
|
export default Modal;
|
|
105
113
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/modal/index.tsx"],"names":[],"mappings":"AAKA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/modal/index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AAe,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9D,0FAA0F;IAC1F,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6CAA6C;IAC7C,MAAM,EAAE,OAAO,CAAC;IAChB,sFAAsF;IACtF,cAAc,CAAC,EAAE,MAAM,WAAW,CAAC;IACnC,yCAAyC;IACzC,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9D,oCAAoC;IACpC,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,mCAAmC;IACnC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,gEAAgE;IAChE,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,0DAA0D;IAC1D,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,+DAA+D;IAC/D,KAAK,CAAC,EAAE,SAAS,CAAC;CAClB;AAOD;;;;;;;;;;GAUG;AACH,QAAA,MAAM,KAAK,oGAsZV,CAAC;eAIa,KAAK"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { type ReactNode, type
|
|
2
|
-
import { POPOVER } from '../../utilities/constants';
|
|
1
|
+
import React, { type ReactNode, type MouseEvent, type KeyboardEvent, type FocusEvent, type CSSProperties } from 'react';
|
|
3
2
|
/**
|
|
4
3
|
* Popover alignment options
|
|
5
4
|
*/
|
|
@@ -64,21 +63,26 @@ export interface PopoverProps {
|
|
|
64
63
|
children: ReactNode;
|
|
65
64
|
/** Popover body content */
|
|
66
65
|
body: ReactNode;
|
|
67
|
-
/** CSS classes for
|
|
66
|
+
/** CSS classes for the `.slds-popover__body` element */
|
|
68
67
|
classNameBody?: string | string[] | Record<string, boolean>;
|
|
69
|
-
/** CSS classes for
|
|
68
|
+
/** CSS classes for the `.slds-popover__footer` element */
|
|
70
69
|
classNameFooter?: string | string[] | Record<string, boolean>;
|
|
71
|
-
/** @deprecated Use classNameFooter */
|
|
70
|
+
/** @deprecated Use `classNameFooter`. */
|
|
72
71
|
footerClassName?: string | string[] | Record<string, boolean>;
|
|
73
|
-
/**
|
|
72
|
+
/**
|
|
73
|
+
* CSS classes for the root element: the `div` that wraps the trigger. To style the
|
|
74
|
+
* `.slds-popover` dialog (for example `slds-popover_large`), use `classNameDialog`.
|
|
75
|
+
*/
|
|
74
76
|
className?: string | string[] | Record<string, boolean>;
|
|
75
|
-
/** CSS classes for
|
|
77
|
+
/** CSS classes for the `.slds-popover` dialog element */
|
|
78
|
+
classNameDialog?: string | string[] | Record<string, boolean>;
|
|
79
|
+
/** @deprecated Use `classNameDialog`, which lands on the same element. */
|
|
76
80
|
contentsClassName?: string | string[] | Record<string, boolean>;
|
|
77
81
|
/** Disable the popover */
|
|
78
82
|
disabled?: boolean;
|
|
79
83
|
/** Footer content */
|
|
80
84
|
footer?: ReactNode;
|
|
81
|
-
/**
|
|
85
|
+
/** @deprecated Use `styleFooter`. */
|
|
82
86
|
footerStyle?: CSSProperties;
|
|
83
87
|
/** Walkthrough footer actions */
|
|
84
88
|
footerWalkthroughActions?: ReactNode | ReactNode[];
|
|
@@ -131,9 +135,13 @@ export interface PopoverProps {
|
|
|
131
135
|
position?: PopoverPosition;
|
|
132
136
|
/** Walkthrough step text */
|
|
133
137
|
stepText?: string;
|
|
134
|
-
/**
|
|
138
|
+
/** Styles for the root element: the `div` that wraps the trigger. To style the dialog, use `styleDialog`. */
|
|
135
139
|
style?: CSSProperties;
|
|
136
|
-
/**
|
|
140
|
+
/** Styles for the `.slds-popover` dialog element */
|
|
141
|
+
styleDialog?: CSSProperties;
|
|
142
|
+
/** Styles for the `.slds-popover__footer` element */
|
|
143
|
+
styleFooter?: CSSProperties;
|
|
144
|
+
/** @deprecated Use `className`, which lands on the same element. */
|
|
137
145
|
triggerClassName?: string | string[] | Record<string, boolean>;
|
|
138
146
|
/** Popover variant */
|
|
139
147
|
variant?: PopoverVariant;
|
|
@@ -143,9 +151,11 @@ export interface PopoverProps {
|
|
|
143
151
|
closeButtonAssistiveText?: string;
|
|
144
152
|
}
|
|
145
153
|
export declare const PopoverNubbinPositions: string[];
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
154
|
+
/**
|
|
155
|
+
* The Popover component is a non-modal dialog. It should be paired with a clickable
|
|
156
|
+
* trigger such as a Button. It traps focus from the page and must be exited if focus
|
|
157
|
+
* needs to be outside the Popover.
|
|
158
|
+
*/
|
|
159
|
+
declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<HTMLDivElement>>;
|
|
150
160
|
export default Popover;
|
|
151
161
|
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../../components/popover/popover.tsx"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../../components/popover/popover.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAQb,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,MAAM,OAAO,CAAC;AAsCf;;GAEG;AACH,MAAM,MAAM,YAAY,GACrB,KAAK,GACL,UAAU,GACV,WAAW,GACX,OAAO,GACP,WAAW,GACX,cAAc,GACd,QAAQ,GACR,aAAa,GACb,cAAc,GACd,MAAM,GACN,UAAU,GACV,aAAa,CAAC;AAEjB;;GAEG;AACH,MAAM,MAAM,eAAe,GAC1B,UAAU,GAAG,yBAAyB,GAAG,UAAU,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,cAAc,GACvB,MAAM,GACN,OAAO,GACP,SAAS,GACT,aAAa,GACb,oBAAoB,GACpB,SAAS,CAAC;AAEb;;GAEG;AACH,MAAM,WAAW,oBAAoB;I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AAC,EAAE,MAAM,CAAC;IACzB,gDAAgD;IAChD,wBAAwB,CAAC,EAAE,MAAM,CAAC;CAClC;AAGD,eAAO,MAAM,sBAAsB,UAOlC,CAAC;AAMF;;;;GAIG;AACH,QAAA,MAAM,OAAO,qFA6pBZ,CAAC;eAIa,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-props.d.ts","sourceRoot":"","sources":["../../../../components/slider/check-props.js"],"names":[],"mappings":"AAQA,QAAA,IAAI,UAAU,YAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"check-props.d.ts","sourceRoot":"","sources":["../../../../components/slider/check-props.js"],"names":[],"mappings":"AAQA,QAAA,IAAI,UAAU,YAAmC,CAAC;eAsCnC,UAAU"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { SLIDER } from '../../utilities/constants';
|
|
1
|
+
import { type ChangeEvent, type FormEvent, type ReactNode } from 'react';
|
|
3
2
|
/**
|
|
4
3
|
* Slider size options
|
|
5
4
|
*/
|
|
@@ -34,7 +33,9 @@ export interface SliderProps {
|
|
|
34
33
|
* * `label`: Visually hidden label. Use instead of `labels.label`.
|
|
35
34
|
*/
|
|
36
35
|
assistiveText?: SliderAssistiveText;
|
|
37
|
-
/** CSS classes for the
|
|
36
|
+
/** CSS classes for the root `.slds-form-element` div */
|
|
37
|
+
className?: string | string[] | Record<string, boolean>;
|
|
38
|
+
/** @deprecated Use `className`, which lands on the same element. */
|
|
38
39
|
classNameContainer?: string | string[] | Record<string, boolean>;
|
|
39
40
|
/** Initial value for uncontrolled usage */
|
|
40
41
|
defaultValue?: number;
|
|
@@ -77,9 +78,10 @@ export interface SliderProps {
|
|
|
77
78
|
/** Display vertically */
|
|
78
79
|
vertical?: boolean;
|
|
79
80
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
/**
|
|
82
|
+
* The ability to style sliders with CSS varies across browsers.
|
|
83
|
+
* Using this component ensures sliders look the same everywhere.
|
|
84
|
+
*/
|
|
85
|
+
declare const Slider: import("react").ForwardRefExoticComponent<SliderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
84
86
|
export default Slider;
|
|
85
87
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/slider/index.tsx"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/slider/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAKN,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,MAAM,OAAO,CAAC;AAOf;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,mBAAmB;IACnC,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC5B,oEAAoE;IACpE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,oBAAoB;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC3B,iCAAiC;IACjC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxD,oEAAoE;IACpE,kBAAkB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjE,2CAA2C;IAC3C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wBAAwB;IACxB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,mCAAmC;IACnC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,sBAAsB;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gCAAgC;IAChC,QAAQ,CAAC,EAAE,CACV,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,EACpC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,KACnB,IAAI,CAAC;IACV,4BAA4B;IAC5B,OAAO,CAAC,EAAE,CACT,KAAK,EAAE,SAAS,CAAC,gBAAgB,CAAC,EAClC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,KACnB,IAAI,CAAC;IACV,yBAAyB;IACzB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,kCAAkC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uBAAuB;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yBAAyB;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAMD;;;GAGG;AACH,QAAA,MAAM,MAAM,wGAkJX,CAAC;eAIa,MAAM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-props.d.ts","sourceRoot":"","sources":["../../../../components/spinner/check-props.js"],"names":[],"mappings":"AAOA,QAAA,IAAI,UAAU,YAAmC,CAAC;eAuBnC,UAAU"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { SPINNER } from '../../utilities/constants';
|
|
1
|
+
import { type CSSProperties } from 'react';
|
|
3
2
|
/**
|
|
4
3
|
* Spinner size options
|
|
5
4
|
*/
|
|
@@ -21,9 +20,16 @@ export interface SpinnerAssistiveText {
|
|
|
21
20
|
export interface SpinnerProps {
|
|
22
21
|
/** Assistive text for accessibility */
|
|
23
22
|
assistiveText?: SpinnerAssistiveText;
|
|
24
|
-
/**
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
/**
|
|
24
|
+
* CSS classes for the root element: the `.slds-spinner_container` div, or the
|
|
25
|
+
* `.slds-spinner` div when `hasContainer` is `false`.
|
|
26
|
+
*/
|
|
27
|
+
className?: string | string[] | Record<string, boolean>;
|
|
28
|
+
/** CSS classes for the `.slds-spinner` div */
|
|
29
|
+
classNameSpinner?: string | string[] | Record<string, boolean>;
|
|
30
|
+
/** @deprecated Use `className`, which lands on the container when `hasContainer` is `true`. */
|
|
31
|
+
containerClassName?: string | string[] | Record<string, boolean>;
|
|
32
|
+
/** @deprecated Use `style`, which lands on the container when `hasContainer` is `true`. */
|
|
27
33
|
containerStyle?: CSSProperties;
|
|
28
34
|
/** Render inside a container div */
|
|
29
35
|
hasContainer?: boolean;
|
|
@@ -37,12 +43,15 @@ export interface SpinnerProps {
|
|
|
37
43
|
isInput?: boolean;
|
|
38
44
|
/** Size of the spinner */
|
|
39
45
|
size?: SpinnerSize;
|
|
46
|
+
/** Styles for the root element (see `className`) */
|
|
47
|
+
style?: CSSProperties;
|
|
40
48
|
/** Color variant */
|
|
41
49
|
variant?: SpinnerVariant;
|
|
42
50
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
51
|
+
/**
|
|
52
|
+
* Spinners are CSS loading indicators that should be shown when retrieving data
|
|
53
|
+
* or performing slow computations.
|
|
54
|
+
*/
|
|
55
|
+
declare const Spinner: import("react").ForwardRefExoticComponent<SpinnerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
47
56
|
export default Spinner;
|
|
48
57
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/spinner/index.tsx"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/spinner/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAyB,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAMlE;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEhF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACpC,kCAAkC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC5B,uCAAuC;IACvC,aAAa,CAAC,EAAE,oBAAoB,CAAC;IACrC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxD,8CAA8C;IAC9C,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/D,+FAA+F;IAC/F,kBAAkB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjE,2FAA2F;IAC3F,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,oCAAoC;IACpC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,wBAAwB;IACxB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,qCAAqC;IACrC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oCAAoC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0BAA0B;IAC1B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,oDAAoD;IACpD,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,oBAAoB;IACpB,OAAO,CAAC,EAAE,cAAc,CAAC;CACzB;AAID;;;GAGG;AACH,QAAA,MAAM,OAAO,yGAgFZ,CAAC;eAIa,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-props.d.ts","sourceRoot":"","sources":["../../../../components/tree/check-props.js"],"names":[],"mappings":"AASA,QAAA,IAAI,UAAU,YAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"check-props.d.ts","sourceRoot":"","sources":["../../../../components/tree/check-props.js"],"names":[],"mappings":"AASA,QAAA,IAAI,UAAU,YAAmC,CAAC;eAwDnC,UAAU"}
|
|
@@ -6,9 +6,11 @@ export interface TreeProps {
|
|
|
6
6
|
* * `heading`: Visually hidden tree heading. Set this or `labels.heading`.
|
|
7
7
|
*/
|
|
8
8
|
assistiveText?: TreeAssistiveText;
|
|
9
|
-
/** Class names for the
|
|
9
|
+
/** Class names for the root `.slds-tree_container` div */
|
|
10
10
|
className?: string | string[] | Record<string, boolean>;
|
|
11
|
-
/** Class names for the top-level ul element */
|
|
11
|
+
/** Class names for the top-level `ul.slds-tree` element */
|
|
12
|
+
classNameList?: string | string[] | Record<string, boolean>;
|
|
13
|
+
/** @deprecated Use `classNameList`. */
|
|
12
14
|
listClassName?: string | string[] | Record<string, boolean>;
|
|
13
15
|
/** Function to get child nodes from a parent node */
|
|
14
16
|
getNodes?: (node: {
|
|
@@ -54,7 +56,9 @@ export interface TreeProps {
|
|
|
54
56
|
onScroll?: (event: React.UIEvent<HTMLUListElement>, data: TreeScrollData) => void;
|
|
55
57
|
/** Search term to highlight in node labels */
|
|
56
58
|
searchTerm?: string;
|
|
57
|
-
/** Styles for the top-level ul element */
|
|
59
|
+
/** Styles for the top-level `ul.slds-tree` element */
|
|
60
|
+
styleList?: React.CSSProperties;
|
|
61
|
+
/** @deprecated Use `styleList`. */
|
|
58
62
|
listStyle?: React.CSSProperties;
|
|
59
63
|
}
|
|
60
64
|
type ReactNode = React.ReactNode;
|
|
@@ -63,6 +67,6 @@ type ReactNode = React.ReactNode;
|
|
|
63
67
|
* A branch can be expanded or collapsed.
|
|
64
68
|
* This is a controlled component, since visual state is present in the nodes data.
|
|
65
69
|
*/
|
|
66
|
-
declare const Tree: React.
|
|
70
|
+
declare const Tree: React.ForwardRefExoticComponent<TreeProps & React.RefAttributes<HTMLDivElement>>;
|
|
67
71
|
export default Tree;
|
|
68
72
|
//# sourceMappingURL=tree.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["../../../../components/tree/tree.tsx"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["../../../../components/tree/tree.tsx"],"names":[],"mappings":"AAGA,OAAO,KAMN,MAAM,OAAO,CAAC;AAcf,OAAO,EACN,QAAQ,EAER,iBAAiB,EACjB,UAAU,EACV,kBAAkB,EAClB,qBAAqB,EACrB,cAAc,EACd,cAAc,EACd,cAAc,EACd,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,SAAS;IACzB;;;OAGG;IACH,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxD,2DAA2D;IAC3D,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5D,uCAAuC;IACvC,aAAa,CAAC,EAAE,MAAM,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,CAAC,SAAS,CAAC;AAoCjC;;;;GAIG;AACH,QAAA,MAAM,IAAI,kFAqOT,CAAC;eAIa,IAAI"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { VERTICAL_NAVIGATION } from '../../utilities/constants';
|
|
1
|
+
import { type MouseEvent, type ReactElement } from 'react';
|
|
3
2
|
import type { BadgeProps } from '../badge';
|
|
4
3
|
import type { IconProps } from '../icon';
|
|
5
4
|
/**
|
|
@@ -40,7 +39,7 @@ export interface NavigationSelectData {
|
|
|
40
39
|
export interface VerticalNavigationProps {
|
|
41
40
|
/** Array of navigation categories */
|
|
42
41
|
categories: NavigationCategory[];
|
|
43
|
-
/** CSS classes */
|
|
42
|
+
/** CSS classes for the root `nav.slds-nav-vertical` element */
|
|
44
43
|
className?: string | string[] | Record<string, boolean>;
|
|
45
44
|
/** HTML id */
|
|
46
45
|
id?: string;
|
|
@@ -49,9 +48,10 @@ export interface VerticalNavigationProps {
|
|
|
49
48
|
/** Currently selected item ID */
|
|
50
49
|
selectedId?: string;
|
|
51
50
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
/**
|
|
52
|
+
* Vertical Navigation represents a list of links that either take the user
|
|
53
|
+
* to another page or parts of the page the user is in.
|
|
54
|
+
*/
|
|
55
|
+
declare const VerticalNavigation: import("react").ForwardRefExoticComponent<VerticalNavigationProps & import("react").RefAttributes<HTMLElement>>;
|
|
56
56
|
export default VerticalNavigation;
|
|
57
57
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/vertical-navigation/index.tsx"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/vertical-navigation/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAIN,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,M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|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
2
|
import { type ModalRequestCloseData, type ModalRequestCloseEvent, type ModalRequestCloseTrigger } from '../modal';
|
|
3
|
-
import { WELCOME_MAT } from '../../utilities/constants';
|
|
4
3
|
/**
|
|
5
4
|
* Welcome mat variant types
|
|
6
5
|
*/
|
|
@@ -29,7 +28,7 @@ export type WelcomeMatRequestCloseData = ModalRequestCloseData;
|
|
|
29
28
|
*/
|
|
30
29
|
export type WelcomeMatRequestCloseEvent = ModalRequestCloseEvent;
|
|
31
30
|
interface WelcomeMatBaseProps {
|
|
32
|
-
/** CSS classes */
|
|
31
|
+
/** CSS classes for the root `.slds-welcome-mat` div */
|
|
33
32
|
className?: string | string[] | Record<string, boolean>;
|
|
34
33
|
/** HTML id */
|
|
35
34
|
id?: string;
|
|
@@ -95,9 +94,9 @@ export type WelcomeMatVariantProps = {
|
|
|
95
94
|
* Props for the WelcomeMat component
|
|
96
95
|
*/
|
|
97
96
|
export type WelcomeMatProps = WelcomeMatBaseProps & WelcomeMatVariantProps;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
97
|
+
/**
|
|
98
|
+
* A Welcome Mat provides a series of unordered items a user can click to learn about a thematic topic.
|
|
99
|
+
*/
|
|
100
|
+
declare const WelcomeMat: React.ForwardRefExoticComponent<WelcomeMatProps & React.RefAttributes<HTMLDivElement>>;
|
|
102
101
|
export default WelcomeMat;
|
|
103
102
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/welcome-mat/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/welcome-mat/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAKb,KAAK,SAAS,EAEd,MAAM,OAAO,CAAC;AAEf,OAAc,EACb,KAAK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