@porsche-design-system/components-react 4.0.0-beta.0 → 4.0.0-beta.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/CHANGELOG.md +242 -7
- package/cjs/lib/components/accordion.wrapper.cjs +3 -3
- package/cjs/lib/components/scroller.wrapper.cjs +3 -3
- package/cjs/lib/components/table.wrapper.cjs +3 -3
- package/cjs/lib/components/tabs-bar.wrapper.cjs +3 -3
- package/cjs/lib/components/tabs.wrapper.cjs +3 -3
- package/esm/lib/components/accordion.wrapper.d.ts +29 -13
- package/esm/lib/components/accordion.wrapper.mjs +3 -3
- package/esm/lib/components/scroller.wrapper.d.ts +20 -4
- package/esm/lib/components/scroller.wrapper.mjs +3 -3
- package/esm/lib/components/table.wrapper.d.ts +10 -2
- package/esm/lib/components/table.wrapper.mjs +3 -3
- package/esm/lib/components/tabs-bar.wrapper.d.ts +19 -3
- package/esm/lib/components/tabs-bar.wrapper.mjs +3 -3
- package/esm/lib/components/tabs.wrapper.d.ts +19 -3
- package/esm/lib/components/tabs.wrapper.mjs +3 -3
- package/esm/lib/types.d.ts +137 -105
- package/package.json +13 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +691 -384
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +3 -12
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/accordion.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/scroller.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/table.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +15 -10
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.cjs +2 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-date.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-month.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-password.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-time.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-week.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.cjs +8 -11
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-option.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +3 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +8 -8
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +3 -2
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +691 -384
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +4 -11
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/accordion.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/scroller.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/table.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +15 -10
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.mjs +2 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-date.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-month.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-password.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-time.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-week.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.mjs +9 -12
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-option.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +8 -8
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +3 -2
- package/ssr/esm/lib/components/accordion.wrapper.d.ts +29 -13
- package/ssr/esm/lib/components/scroller.wrapper.d.ts +20 -4
- package/ssr/esm/lib/components/table.wrapper.d.ts +10 -2
- package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +19 -3
- package/ssr/esm/lib/components/tabs.wrapper.d.ts +19 -3
- package/ssr/esm/lib/dsr-components/accordion.d.ts +8 -2
- package/ssr/esm/lib/dsr-components/scroller.d.ts +5 -3
- package/ssr/esm/lib/dsr-components/stepper-horizontal.d.ts +3 -2
- package/ssr/esm/lib/dsr-components/tabs-bar.d.ts +6 -6
- package/ssr/esm/lib/dsr-components/tabs.d.ts +2 -1
- package/ssr/esm/lib/types.d.ts +137 -105
|
@@ -2,7 +2,7 @@ import type { BaseProps } from '../../BaseProps';
|
|
|
2
2
|
import type { ScrollerAlignScrollIndicator, SelectedAriaAttributes, ScrollerAriaAttribute, ScrollerScrollToPosition } from '../types';
|
|
3
3
|
export type PScrollerProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* @deprecated since v4.0.0, will be removed with next major release, has no effect anymore.
|
|
6
6
|
*/
|
|
7
7
|
alignScrollIndicator?: ScrollerAlignScrollIndicator;
|
|
8
8
|
/**
|
|
@@ -10,17 +10,25 @@ export type PScrollerProps = BaseProps & {
|
|
|
10
10
|
*/
|
|
11
11
|
aria?: SelectedAriaAttributes<ScrollerAriaAttribute>;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Displays with reduced spacing and smaller padding for a more condensed layout.
|
|
14
|
+
*/
|
|
15
|
+
compact?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated since v4.0.0, use native `scrollIntoView()` on the slotted element itself.
|
|
14
18
|
*/
|
|
15
19
|
scrollToPosition?: ScrollerScrollToPosition;
|
|
16
20
|
/**
|
|
17
21
|
* Specifies if scrollbar should be shown.
|
|
18
22
|
*/
|
|
19
23
|
scrollbar?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* @experimental Makes the indicator sticky at the top or bottom while scrolling depending on the scroll direction.
|
|
26
|
+
*/
|
|
27
|
+
sticky?: boolean;
|
|
20
28
|
};
|
|
21
29
|
export declare const PScroller: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
22
30
|
/**
|
|
23
|
-
*
|
|
31
|
+
* @deprecated since v4.0.0, will be removed with next major release, has no effect anymore.
|
|
24
32
|
*/
|
|
25
33
|
alignScrollIndicator?: ScrollerAlignScrollIndicator;
|
|
26
34
|
/**
|
|
@@ -28,13 +36,21 @@ export declare const PScroller: import("react").ForwardRefExoticComponent<Omit<i
|
|
|
28
36
|
*/
|
|
29
37
|
aria?: SelectedAriaAttributes<ScrollerAriaAttribute>;
|
|
30
38
|
/**
|
|
31
|
-
*
|
|
39
|
+
* Displays with reduced spacing and smaller padding for a more condensed layout.
|
|
40
|
+
*/
|
|
41
|
+
compact?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated since v4.0.0, use native `scrollIntoView()` on the slotted element itself.
|
|
32
44
|
*/
|
|
33
45
|
scrollToPosition?: ScrollerScrollToPosition;
|
|
34
46
|
/**
|
|
35
47
|
* Specifies if scrollbar should be shown.
|
|
36
48
|
*/
|
|
37
49
|
scrollbar?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* @experimental Makes the indicator sticky at the top or bottom while scrolling depending on the scroll direction.
|
|
52
|
+
*/
|
|
53
|
+
sticky?: boolean;
|
|
38
54
|
} & {
|
|
39
55
|
children?: import("react").ReactNode | undefined;
|
|
40
56
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -6,7 +6,7 @@ export type PTableProps = BaseProps & {
|
|
|
6
6
|
*/
|
|
7
7
|
caption?: string;
|
|
8
8
|
/**
|
|
9
|
-
* Displays
|
|
9
|
+
* Displays with reduced spacing and smaller padding for a more condensed layout.
|
|
10
10
|
*/
|
|
11
11
|
compact?: boolean;
|
|
12
12
|
/**
|
|
@@ -17,6 +17,10 @@ export type PTableProps = BaseProps & {
|
|
|
17
17
|
* Emitted when sorting is changed.
|
|
18
18
|
*/
|
|
19
19
|
onUpdate?: (event: CustomEvent<TableUpdateEventDetail>) => void;
|
|
20
|
+
/**
|
|
21
|
+
* @experimental Makes the scroll indicator sticky at the top or bottom while scrolling depending on the scroll direction.
|
|
22
|
+
*/
|
|
23
|
+
sticky?: boolean;
|
|
20
24
|
};
|
|
21
25
|
export declare const PTable: import("react").ForwardRefExoticComponent<Omit<import("react").DOMAttributes<{}>, "onChange" | "onInput" | "onToggle"> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
|
|
22
26
|
/**
|
|
@@ -24,7 +28,7 @@ export declare const PTable: import("react").ForwardRefExoticComponent<Omit<impo
|
|
|
24
28
|
*/
|
|
25
29
|
caption?: string;
|
|
26
30
|
/**
|
|
27
|
-
* Displays
|
|
31
|
+
* Displays with reduced spacing and smaller padding for a more condensed layout.
|
|
28
32
|
*/
|
|
29
33
|
compact?: boolean;
|
|
30
34
|
/**
|
|
@@ -35,6 +39,10 @@ export declare const PTable: import("react").ForwardRefExoticComponent<Omit<impo
|
|
|
35
39
|
* Emitted when sorting is changed.
|
|
36
40
|
*/
|
|
37
41
|
onUpdate?: (event: CustomEvent<TableUpdateEventDetail>) => void;
|
|
42
|
+
/**
|
|
43
|
+
* @experimental Makes the scroll indicator sticky at the top or bottom while scrolling depending on the scroll direction.
|
|
44
|
+
*/
|
|
45
|
+
sticky?: boolean;
|
|
38
46
|
} & {
|
|
39
47
|
children?: import("react").ReactNode | undefined;
|
|
40
48
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { TabsBarUpdateEventDetail, BreakpointCustomizable, TabsBarSize, TabsBarWeight } from '../types';
|
|
2
|
+
import type { TabsBarBackground, TabsBarUpdateEventDetail, BreakpointCustomizable, TabsBarSize, TabsBarWeight } from '../types';
|
|
3
3
|
export type PTabsBarProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Defines which tab to be visualized as selected (zero-based numbering), undefined if none should be selected.
|
|
6
6
|
*/
|
|
7
7
|
activeTabIndex?: number | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Defines the background color. Use `frosted` only on images, videos or gradients.
|
|
10
|
+
*/
|
|
11
|
+
background?: TabsBarBackground;
|
|
12
|
+
/**
|
|
13
|
+
* Displays with reduced spacing and smaller padding for a more condensed layout.
|
|
14
|
+
*/
|
|
15
|
+
compact?: boolean;
|
|
8
16
|
/**
|
|
9
17
|
* Emitted when active tab is changed.
|
|
10
18
|
*/
|
|
@@ -14,7 +22,7 @@ export type PTabsBarProps = BaseProps & {
|
|
|
14
22
|
*/
|
|
15
23
|
size?: BreakpointCustomizable<TabsBarSize>;
|
|
16
24
|
/**
|
|
17
|
-
*
|
|
25
|
+
* @deprecated Will be removed in the next major release. Has no effect anymore.
|
|
18
26
|
*/
|
|
19
27
|
weight?: TabsBarWeight;
|
|
20
28
|
};
|
|
@@ -23,6 +31,14 @@ export declare const PTabsBar: import("react").ForwardRefExoticComponent<Omit<im
|
|
|
23
31
|
* Defines which tab to be visualized as selected (zero-based numbering), undefined if none should be selected.
|
|
24
32
|
*/
|
|
25
33
|
activeTabIndex?: number | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Defines the background color. Use `frosted` only on images, videos or gradients.
|
|
36
|
+
*/
|
|
37
|
+
background?: TabsBarBackground;
|
|
38
|
+
/**
|
|
39
|
+
* Displays with reduced spacing and smaller padding for a more condensed layout.
|
|
40
|
+
*/
|
|
41
|
+
compact?: boolean;
|
|
26
42
|
/**
|
|
27
43
|
* Emitted when active tab is changed.
|
|
28
44
|
*/
|
|
@@ -32,7 +48,7 @@ export declare const PTabsBar: import("react").ForwardRefExoticComponent<Omit<im
|
|
|
32
48
|
*/
|
|
33
49
|
size?: BreakpointCustomizable<TabsBarSize>;
|
|
34
50
|
/**
|
|
35
|
-
*
|
|
51
|
+
* @deprecated Will be removed in the next major release. Has no effect anymore.
|
|
36
52
|
*/
|
|
37
53
|
weight?: TabsBarWeight;
|
|
38
54
|
} & {
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import type { BaseProps } from '../../BaseProps';
|
|
2
|
-
import type { TabsUpdateEventDetail, BreakpointCustomizable, TabsSize, TabsWeight } from '../types';
|
|
2
|
+
import type { TabsBackground, TabsUpdateEventDetail, BreakpointCustomizable, TabsSize, TabsWeight } from '../types';
|
|
3
3
|
export type PTabsProps = BaseProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Defines which tab to be visualized as selected (zero-based numbering).
|
|
6
6
|
*/
|
|
7
7
|
activeTabIndex?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Defines the background color. Use `frosted` only on images, videos or gradients.
|
|
10
|
+
*/
|
|
11
|
+
background?: TabsBackground;
|
|
12
|
+
/**
|
|
13
|
+
* Displays with reduced spacing and smaller padding for a more condensed layout.
|
|
14
|
+
*/
|
|
15
|
+
compact?: boolean;
|
|
8
16
|
/**
|
|
9
17
|
* Emitted when active tab is changed.
|
|
10
18
|
*/
|
|
@@ -14,7 +22,7 @@ export type PTabsProps = BaseProps & {
|
|
|
14
22
|
*/
|
|
15
23
|
size?: BreakpointCustomizable<TabsSize>;
|
|
16
24
|
/**
|
|
17
|
-
*
|
|
25
|
+
* @deprecated Will be removed in the next major release. Has no effect anymore.
|
|
18
26
|
*/
|
|
19
27
|
weight?: TabsWeight;
|
|
20
28
|
};
|
|
@@ -23,6 +31,14 @@ export declare const PTabs: import("react").ForwardRefExoticComponent<Omit<impor
|
|
|
23
31
|
* Defines which tab to be visualized as selected (zero-based numbering).
|
|
24
32
|
*/
|
|
25
33
|
activeTabIndex?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Defines the background color. Use `frosted` only on images, videos or gradients.
|
|
36
|
+
*/
|
|
37
|
+
background?: TabsBackground;
|
|
38
|
+
/**
|
|
39
|
+
* Displays with reduced spacing and smaller padding for a more condensed layout.
|
|
40
|
+
*/
|
|
41
|
+
compact?: boolean;
|
|
26
42
|
/**
|
|
27
43
|
* Emitted when active tab is changed.
|
|
28
44
|
*/
|
|
@@ -32,7 +48,7 @@ export declare const PTabs: import("react").ForwardRefExoticComponent<Omit<impor
|
|
|
32
48
|
*/
|
|
33
49
|
size?: BreakpointCustomizable<TabsSize>;
|
|
34
50
|
/**
|
|
35
|
-
*
|
|
51
|
+
* @deprecated Will be removed in the next major release. Has no effect anymore.
|
|
36
52
|
*/
|
|
37
53
|
weight?: TabsWeight;
|
|
38
54
|
} & {
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
2
|
/**
|
|
3
|
-
* @slot {"name": "
|
|
4
|
-
* @slot {"name": "", "description": "
|
|
3
|
+
* @slot {"name": "summary", "description": "Content for the accordion's summary section. Clicking toggles the accordion open and closed." }
|
|
4
|
+
* @slot {"name": "summary-before", "description": "Content or interactive elements placed before the accordion's summary section." }
|
|
5
|
+
* @slot {"name": "summary-after", "description": "Content or interactive elements placed after the accordion's summary section." }
|
|
6
|
+
* @slot {"name": "heading", "description": "Content for the accordion's heading section. Clicking toggles the accordion open and closed.", "isDeprecated": true }
|
|
7
|
+
* @slot {"name": "", "description": "Main content displayed when the accordion is expanded." }
|
|
5
8
|
*
|
|
6
9
|
* @controlled {"props": ["open"], "event": "update"}
|
|
7
10
|
*/
|
|
8
11
|
export declare class DSRAccordion extends Component<any> {
|
|
9
12
|
host: HTMLElement;
|
|
13
|
+
private hasSummary;
|
|
14
|
+
private hasSummaryBefore;
|
|
15
|
+
private hasSummaryAfter;
|
|
10
16
|
render(): JSX.Element;
|
|
11
17
|
}
|
|
@@ -4,9 +4,11 @@ import { Component } from 'react';
|
|
|
4
4
|
*/
|
|
5
5
|
export declare class DSRScroller extends Component<any> {
|
|
6
6
|
host: HTMLElement;
|
|
7
|
-
private
|
|
8
|
-
private
|
|
7
|
+
private isIndicatorPrevVisible;
|
|
8
|
+
private isIndicatorNextVisible;
|
|
9
9
|
private intersectionObserver;
|
|
10
|
-
private
|
|
10
|
+
private scrollArea;
|
|
11
|
+
private sentinelLeft;
|
|
12
|
+
private sentinelRight;
|
|
11
13
|
render(): JSX.Element;
|
|
12
14
|
}
|
|
@@ -4,8 +4,9 @@ import { Component } from 'react';
|
|
|
4
4
|
*/
|
|
5
5
|
export declare class DSRStepperHorizontal extends Component<any> {
|
|
6
6
|
host: HTMLElement;
|
|
7
|
+
private scroller;
|
|
7
8
|
private stepperHorizontalItems;
|
|
8
|
-
private
|
|
9
|
-
private
|
|
9
|
+
private slot;
|
|
10
|
+
private resizeObserver;
|
|
10
11
|
render(): JSX.Element;
|
|
11
12
|
}
|
|
@@ -6,12 +6,12 @@ import { Component } from 'react';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class DSRTabsBar extends Component<any> {
|
|
8
8
|
host: HTMLElement;
|
|
9
|
-
private
|
|
10
|
-
private
|
|
11
|
-
private
|
|
12
|
-
private
|
|
13
|
-
private direction;
|
|
9
|
+
private tabs;
|
|
10
|
+
private bar;
|
|
11
|
+
private scroller;
|
|
12
|
+
private slot;
|
|
14
13
|
private hasPTabsParent;
|
|
15
|
-
private
|
|
14
|
+
private isTabList;
|
|
15
|
+
private resizeObserver;
|
|
16
16
|
render(): JSX.Element;
|
|
17
17
|
}
|
package/ssr/esm/lib/types.d.ts
CHANGED
|
@@ -621,27 +621,6 @@ declare const FLAG_NAMES: readonly [
|
|
|
621
621
|
"za"
|
|
622
622
|
];
|
|
623
623
|
export type FlagName = typeof FLAG_NAMES[number];
|
|
624
|
-
declare const FORM_STATES: readonly [
|
|
625
|
-
"none",
|
|
626
|
-
"error",
|
|
627
|
-
"success"
|
|
628
|
-
];
|
|
629
|
-
export type FormState = (typeof FORM_STATES)[number];
|
|
630
|
-
declare const BUTTON_ARIA_ATTRIBUTES: readonly [
|
|
631
|
-
"aria-label",
|
|
632
|
-
"aria-description",
|
|
633
|
-
"aria-expanded",
|
|
634
|
-
"aria-pressed",
|
|
635
|
-
"aria-haspopup"
|
|
636
|
-
];
|
|
637
|
-
export type ButtonAriaAttribute = (typeof BUTTON_ARIA_ATTRIBUTES)[number];
|
|
638
|
-
declare const LINK_ARIA_ATTRIBUTES: readonly [
|
|
639
|
-
"aria-label",
|
|
640
|
-
"aria-description",
|
|
641
|
-
"aria-current",
|
|
642
|
-
"aria-haspopup"
|
|
643
|
-
];
|
|
644
|
-
export type LinkAriaAttribute = (typeof LINK_ARIA_ATTRIBUTES)[number];
|
|
645
624
|
declare const breakpoints: readonly [
|
|
646
625
|
"base",
|
|
647
626
|
"xs",
|
|
@@ -658,75 +637,6 @@ export type BreakpointValues<T> = {
|
|
|
658
637
|
base: T;
|
|
659
638
|
};
|
|
660
639
|
export type BreakpointCustomizable<T> = T | BreakpointValues<T>;
|
|
661
|
-
declare const LINK_TARGETS: readonly [
|
|
662
|
-
"_self",
|
|
663
|
-
"_blank",
|
|
664
|
-
"_parent",
|
|
665
|
-
"_top"
|
|
666
|
-
];
|
|
667
|
-
export type LinkTarget = (typeof LINK_TARGETS)[number] | string;
|
|
668
|
-
declare const SCROLLER_ARIA_ATTRIBUTES: readonly [
|
|
669
|
-
"role"
|
|
670
|
-
];
|
|
671
|
-
export type ScrollerAriaAttribute = (typeof SCROLLER_ARIA_ATTRIBUTES)[number];
|
|
672
|
-
export type ScrollerScrollToPosition = {
|
|
673
|
-
scrollPosition: number;
|
|
674
|
-
isSmooth?: boolean;
|
|
675
|
-
} | string;
|
|
676
|
-
declare const SCROLL_INDICATOR_POSITIONS: readonly [
|
|
677
|
-
"top",
|
|
678
|
-
"center"
|
|
679
|
-
];
|
|
680
|
-
export type ScrollerAlignScrollIndicator = (typeof SCROLL_INDICATOR_POSITIONS)[number];
|
|
681
|
-
export type MultiSelectState = FormState;
|
|
682
|
-
export type MultiSelectDropdownDirection = SelectComponentsDropdownDirection;
|
|
683
|
-
export type MultiSelectChangeEventDetail = {
|
|
684
|
-
name: string;
|
|
685
|
-
value: string[];
|
|
686
|
-
};
|
|
687
|
-
export type MultiSelectToggleEventDetail = {
|
|
688
|
-
open: boolean;
|
|
689
|
-
};
|
|
690
|
-
export type SelectState = FormState;
|
|
691
|
-
export type SelectDropdownDirection = SelectComponentsDropdownDirection;
|
|
692
|
-
export type SelectChangeEventDetail = {
|
|
693
|
-
name: string;
|
|
694
|
-
value: string;
|
|
695
|
-
};
|
|
696
|
-
export type SelectToggleEventDetail = {
|
|
697
|
-
open: boolean;
|
|
698
|
-
};
|
|
699
|
-
declare const SELECT_DROPDOWN_DIRECTIONS: readonly [
|
|
700
|
-
"down",
|
|
701
|
-
"up",
|
|
702
|
-
"auto"
|
|
703
|
-
];
|
|
704
|
-
export type SelectComponentsDropdownDirection = (typeof SELECT_DROPDOWN_DIRECTIONS)[number];
|
|
705
|
-
declare const TILE_ASPECT_RATIOS: readonly [
|
|
706
|
-
"1/1",
|
|
707
|
-
"4/3",
|
|
708
|
-
"3/4",
|
|
709
|
-
"16/9",
|
|
710
|
-
"9/16",
|
|
711
|
-
"auto"
|
|
712
|
-
];
|
|
713
|
-
export type TileAspectRatio = (typeof TILE_ASPECT_RATIOS)[number];
|
|
714
|
-
declare const TILE_SIZES: readonly [
|
|
715
|
-
"medium",
|
|
716
|
-
"large",
|
|
717
|
-
"inherit"
|
|
718
|
-
];
|
|
719
|
-
export type TileSize = (typeof TILE_SIZES)[number];
|
|
720
|
-
declare const TILE_WEIGHTS: readonly [
|
|
721
|
-
"regular",
|
|
722
|
-
"semi-bold"
|
|
723
|
-
];
|
|
724
|
-
export type TileWeight = (typeof TILE_WEIGHTS)[number];
|
|
725
|
-
declare const TILE_ALIGNS: readonly [
|
|
726
|
-
"top",
|
|
727
|
-
"bottom"
|
|
728
|
-
];
|
|
729
|
-
export type TileAlign = (typeof TILE_ALIGNS)[number];
|
|
730
640
|
declare const HEADING_SIZES: readonly [
|
|
731
641
|
"small",
|
|
732
642
|
"medium",
|
|
@@ -780,22 +690,29 @@ declare const TYPOGRAPHY_TEXT_WEIGHTS: readonly [
|
|
|
780
690
|
"bold"
|
|
781
691
|
];
|
|
782
692
|
export type TypographyTextWeight = (typeof TYPOGRAPHY_TEXT_WEIGHTS)[number];
|
|
783
|
-
declare const
|
|
784
|
-
"
|
|
785
|
-
"
|
|
693
|
+
declare const LINK_BUTTON_VARIANTS: readonly [
|
|
694
|
+
"primary",
|
|
695
|
+
"secondary"
|
|
786
696
|
];
|
|
787
|
-
export type
|
|
697
|
+
export type LinkButtonVariant = (typeof LINK_BUTTON_VARIANTS)[number];
|
|
788
698
|
declare const BUTTON_TYPES: readonly [
|
|
789
699
|
"button",
|
|
790
700
|
"submit",
|
|
791
701
|
"reset"
|
|
792
702
|
];
|
|
793
703
|
export type ButtonType = (typeof BUTTON_TYPES)[number];
|
|
794
|
-
declare const
|
|
795
|
-
"
|
|
796
|
-
"
|
|
704
|
+
declare const ALIGN_LABELS: readonly [
|
|
705
|
+
"start",
|
|
706
|
+
"end"
|
|
797
707
|
];
|
|
798
|
-
export type
|
|
708
|
+
export type AlignLabel = (typeof ALIGN_LABELS)[number];
|
|
709
|
+
declare const LINK_TARGETS: readonly [
|
|
710
|
+
"_self",
|
|
711
|
+
"_blank",
|
|
712
|
+
"_parent",
|
|
713
|
+
"_top"
|
|
714
|
+
];
|
|
715
|
+
export type LinkTarget = (typeof LINK_TARGETS)[number] | string;
|
|
799
716
|
export type LinkButtonIconName = IconName | "none";
|
|
800
717
|
export type ButtonVariant = LinkButtonVariant;
|
|
801
718
|
export type LinkVariant = LinkButtonVariant;
|
|
@@ -814,15 +731,99 @@ export type SelectedAriaAttributes<T extends keyof AriaAttributes> = Pick<AriaAt
|
|
|
814
731
|
export type SelectedAriaRole<T> = {
|
|
815
732
|
role: Extract<AriaRole, T>;
|
|
816
733
|
};
|
|
817
|
-
declare const
|
|
818
|
-
"
|
|
819
|
-
"
|
|
734
|
+
declare const FORM_STATES: readonly [
|
|
735
|
+
"none",
|
|
736
|
+
"error",
|
|
737
|
+
"success"
|
|
820
738
|
];
|
|
821
|
-
export type
|
|
739
|
+
export type FormState = (typeof FORM_STATES)[number];
|
|
740
|
+
declare const BUTTON_ARIA_ATTRIBUTES: readonly [
|
|
741
|
+
"aria-label",
|
|
742
|
+
"aria-description",
|
|
743
|
+
"aria-expanded",
|
|
744
|
+
"aria-pressed",
|
|
745
|
+
"aria-haspopup"
|
|
746
|
+
];
|
|
747
|
+
export type ButtonAriaAttribute = (typeof BUTTON_ARIA_ATTRIBUTES)[number];
|
|
748
|
+
declare const LINK_ARIA_ATTRIBUTES: readonly [
|
|
749
|
+
"aria-label",
|
|
750
|
+
"aria-description",
|
|
751
|
+
"aria-current",
|
|
752
|
+
"aria-haspopup"
|
|
753
|
+
];
|
|
754
|
+
export type LinkAriaAttribute = (typeof LINK_ARIA_ATTRIBUTES)[number];
|
|
755
|
+
export type MultiSelectState = FormState;
|
|
756
|
+
export type MultiSelectDropdownDirection = SelectComponentsDropdownDirection;
|
|
757
|
+
export type MultiSelectChangeEventDetail = {
|
|
758
|
+
name: string;
|
|
759
|
+
value: string[];
|
|
760
|
+
};
|
|
761
|
+
export type MultiSelectToggleEventDetail = {
|
|
762
|
+
open: boolean;
|
|
763
|
+
};
|
|
764
|
+
export type SelectState = FormState;
|
|
765
|
+
export type SelectDropdownDirection = SelectComponentsDropdownDirection;
|
|
766
|
+
export type SelectChangeEventDetail = {
|
|
767
|
+
name: string;
|
|
768
|
+
value: string;
|
|
769
|
+
};
|
|
770
|
+
export type SelectToggleEventDetail = {
|
|
771
|
+
open: boolean;
|
|
772
|
+
};
|
|
773
|
+
declare const SELECT_DROPDOWN_DIRECTIONS: readonly [
|
|
774
|
+
"down",
|
|
775
|
+
"up",
|
|
776
|
+
"auto"
|
|
777
|
+
];
|
|
778
|
+
export type SelectComponentsDropdownDirection = (typeof SELECT_DROPDOWN_DIRECTIONS)[number];
|
|
779
|
+
declare const TILE_ASPECT_RATIOS: readonly [
|
|
780
|
+
"1/1",
|
|
781
|
+
"4/3",
|
|
782
|
+
"3/4",
|
|
783
|
+
"16/9",
|
|
784
|
+
"9/16",
|
|
785
|
+
"auto"
|
|
786
|
+
];
|
|
787
|
+
export type TileAspectRatio = (typeof TILE_ASPECT_RATIOS)[number];
|
|
788
|
+
declare const TILE_SIZES: readonly [
|
|
789
|
+
"medium",
|
|
790
|
+
"large",
|
|
791
|
+
"inherit"
|
|
792
|
+
];
|
|
793
|
+
export type TileSize = (typeof TILE_SIZES)[number];
|
|
794
|
+
declare const TILE_WEIGHTS: readonly [
|
|
795
|
+
"regular",
|
|
796
|
+
"semi-bold"
|
|
797
|
+
];
|
|
798
|
+
export type TileWeight = (typeof TILE_WEIGHTS)[number];
|
|
799
|
+
declare const TILE_ALIGNS: readonly [
|
|
800
|
+
"top",
|
|
801
|
+
"bottom"
|
|
802
|
+
];
|
|
803
|
+
export type TileAlign = (typeof TILE_ALIGNS)[number];
|
|
804
|
+
declare const ACCORDIONS_BACKGROUNDS: readonly [
|
|
805
|
+
"canvas",
|
|
806
|
+
"surface",
|
|
807
|
+
"frosted",
|
|
808
|
+
"none"
|
|
809
|
+
];
|
|
810
|
+
export type AccordionBackground = (typeof ACCORDIONS_BACKGROUNDS)[number];
|
|
811
|
+
declare const ACCORDION_ALIGN_MARKERS: readonly [
|
|
812
|
+
"start",
|
|
813
|
+
"end"
|
|
814
|
+
];
|
|
815
|
+
export type AccordionAlignMarker = (typeof ACCORDION_ALIGN_MARKERS)[number];
|
|
822
816
|
export type AccordionUpdateEventDetail = {
|
|
823
817
|
open: boolean;
|
|
824
818
|
};
|
|
819
|
+
/** @deprecated */
|
|
825
820
|
export type AccordionHeadingTag = HeadingTag;
|
|
821
|
+
declare const ACCORDION_SIZES: readonly [
|
|
822
|
+
"small",
|
|
823
|
+
"medium"
|
|
824
|
+
];
|
|
825
|
+
/** @deprecated */
|
|
826
|
+
export type AccordionSize = (typeof ACCORDION_SIZES)[number];
|
|
826
827
|
declare const BANNER_STATES: readonly [
|
|
827
828
|
"info",
|
|
828
829
|
"success",
|
|
@@ -1208,6 +1209,21 @@ export type GroupDirection = (typeof GROUP_DIRECTIONS)[number];
|
|
|
1208
1209
|
export type RadioGroupState = FormState;
|
|
1209
1210
|
export type RadioGroupDirection = GroupDirection;
|
|
1210
1211
|
export type RadioGroupChangeEventDetail = Event;
|
|
1212
|
+
declare const SCROLLER_ALIGN_SCROLL_INDICATORS: readonly [
|
|
1213
|
+
"top",
|
|
1214
|
+
"center"
|
|
1215
|
+
];
|
|
1216
|
+
/** @deprecated */
|
|
1217
|
+
export type ScrollerAlignScrollIndicator = (typeof SCROLLER_ALIGN_SCROLL_INDICATORS)[number];
|
|
1218
|
+
declare const SCROLLER_ARIA_ATTRIBUTES: readonly [
|
|
1219
|
+
"role"
|
|
1220
|
+
];
|
|
1221
|
+
export type ScrollerAriaAttribute = (typeof SCROLLER_ARIA_ATTRIBUTES)[number];
|
|
1222
|
+
/** @deprecated */
|
|
1223
|
+
export type ScrollerScrollToPosition = {
|
|
1224
|
+
scrollPosition: number;
|
|
1225
|
+
isSmooth?: boolean;
|
|
1226
|
+
} | string;
|
|
1211
1227
|
export type SegmentedControlChangeEventDetail = {
|
|
1212
1228
|
value: string | number;
|
|
1213
1229
|
};
|
|
@@ -1277,27 +1293,43 @@ declare const TABS_SIZES: readonly [
|
|
|
1277
1293
|
"medium"
|
|
1278
1294
|
];
|
|
1279
1295
|
export type TabsSize = (typeof TABS_SIZES)[number];
|
|
1296
|
+
declare const TABS_BACKGROUNDS: readonly [
|
|
1297
|
+
"canvas",
|
|
1298
|
+
"surface",
|
|
1299
|
+
"frosted",
|
|
1300
|
+
"none"
|
|
1301
|
+
];
|
|
1302
|
+
export type TabsBackground = (typeof TABS_BACKGROUNDS)[number];
|
|
1280
1303
|
declare const TABS_WEIGHTS: readonly [
|
|
1281
1304
|
"regular",
|
|
1282
1305
|
"semi-bold"
|
|
1283
1306
|
];
|
|
1307
|
+
/** @deprecated */
|
|
1284
1308
|
export type TabsWeight = (typeof TABS_WEIGHTS)[number];
|
|
1285
1309
|
export type TabsUpdateEventDetail = {
|
|
1286
1310
|
activeTabIndex: number;
|
|
1287
1311
|
};
|
|
1312
|
+
declare const TABS_BAR_BACKGROUNDS: readonly [
|
|
1313
|
+
"canvas",
|
|
1314
|
+
"surface",
|
|
1315
|
+
"frosted",
|
|
1316
|
+
"none"
|
|
1317
|
+
];
|
|
1318
|
+
export type TabsBarBackground = (typeof TABS_BAR_BACKGROUNDS)[number];
|
|
1288
1319
|
declare const TABS_BAR_SIZES: readonly [
|
|
1289
1320
|
"small",
|
|
1290
1321
|
"medium"
|
|
1291
1322
|
];
|
|
1292
1323
|
export type TabsBarSize = (typeof TABS_BAR_SIZES)[number];
|
|
1324
|
+
export type TabsBarUpdateEventDetail = {
|
|
1325
|
+
activeTabIndex: number;
|
|
1326
|
+
};
|
|
1293
1327
|
declare const TABS_BAR_WEIGHTS: readonly [
|
|
1294
1328
|
"regular",
|
|
1295
1329
|
"semi-bold"
|
|
1296
1330
|
];
|
|
1331
|
+
/** @deprecated */
|
|
1297
1332
|
export type TabsBarWeight = (typeof TABS_BAR_WEIGHTS)[number];
|
|
1298
|
-
export type TabsBarUpdateEventDetail = {
|
|
1299
|
-
activeTabIndex: number;
|
|
1300
|
-
};
|
|
1301
1333
|
export type TagIcon = IconName | "none";
|
|
1302
1334
|
declare const TAG_VARIANTS: readonly [
|
|
1303
1335
|
"primary",
|