@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
|
@@ -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
|
} & {
|
|
@@ -4,14 +4,14 @@ import { forwardRef, useRef } from 'react';
|
|
|
4
4
|
import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
6
|
|
|
7
|
-
const PTabsBar = /*#__PURE__*/ forwardRef(({ activeTabIndex, onUpdate, size = 'small', weight = 'regular', className, ...rest }, ref) => {
|
|
7
|
+
const PTabsBar = /*#__PURE__*/ forwardRef(({ activeTabIndex, background = 'none', compact, onUpdate, size = 'small', weight = 'regular', className, ...rest }, ref) => {
|
|
8
8
|
const elementRef = useRef(undefined);
|
|
9
9
|
useEventCallback(elementRef, 'update', onUpdate);
|
|
10
10
|
const WebComponentTag = usePrefix('p-tabs-bar');
|
|
11
|
-
const propsToSync = [activeTabIndex, size, weight];
|
|
11
|
+
const propsToSync = [activeTabIndex, background, compact, size, weight];
|
|
12
12
|
useBrowserLayoutEffect(() => {
|
|
13
13
|
const { current } = elementRef;
|
|
14
|
-
['activeTabIndex', 'size', 'weight'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
14
|
+
['activeTabIndex', 'background', 'compact', 'size', 'weight'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
15
15
|
}, propsToSync);
|
|
16
16
|
const props = {
|
|
17
17
|
...rest,
|
|
@@ -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
|
} & {
|
|
@@ -4,14 +4,14 @@ import { forwardRef, useRef } from 'react';
|
|
|
4
4
|
import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
|
|
5
5
|
import { syncRef } from '../../utils.mjs';
|
|
6
6
|
|
|
7
|
-
const PTabs = /*#__PURE__*/ forwardRef(({ activeTabIndex = 0, onUpdate, size = 'small', weight = 'regular', className, ...rest }, ref) => {
|
|
7
|
+
const PTabs = /*#__PURE__*/ forwardRef(({ activeTabIndex = 0, background = 'none', compact, onUpdate, size = 'small', weight = 'regular', className, ...rest }, ref) => {
|
|
8
8
|
const elementRef = useRef(undefined);
|
|
9
9
|
useEventCallback(elementRef, 'update', onUpdate);
|
|
10
10
|
const WebComponentTag = usePrefix('p-tabs');
|
|
11
|
-
const propsToSync = [activeTabIndex, size, weight];
|
|
11
|
+
const propsToSync = [activeTabIndex, background, compact, size, weight];
|
|
12
12
|
useBrowserLayoutEffect(() => {
|
|
13
13
|
const { current } = elementRef;
|
|
14
|
-
['activeTabIndex', 'size', 'weight'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
14
|
+
['activeTabIndex', 'background', 'compact', 'size', 'weight'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
15
15
|
}, propsToSync);
|
|
16
16
|
const props = {
|
|
17
17
|
...rest,
|
package/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",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@porsche-design-system/components-react",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.2",
|
|
4
4
|
"description": "Porsche Design System is a component library designed to help developers create the best experience for software or services distributed by Dr. Ing. h.c. F. Porsche AG.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"porsche",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"license": "SEE LICENSE IN LICENSE",
|
|
18
18
|
"homepage": "https://designsystem.porsche.com",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@porsche-design-system/components-js": "4.0.0-beta.
|
|
20
|
+
"@porsche-design-system/components-js": "4.0.0-beta.2"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"ag-grid-community": ">= 35.0.0 <36.0.0",
|
|
@@ -96,6 +96,17 @@
|
|
|
96
96
|
"types": "./testing/index.d.ts",
|
|
97
97
|
"default": "./testing/index.cjs"
|
|
98
98
|
},
|
|
99
|
+
"./styles": {
|
|
100
|
+
"sass": "./scss/_index.scss",
|
|
101
|
+
"types": "./emotion/esm/index.d.ts",
|
|
102
|
+
"import": "./emotion/esm/index.mjs",
|
|
103
|
+
"default": "./emotion/cjs/index.cjs"
|
|
104
|
+
},
|
|
105
|
+
"./styles/vanilla-extract": {
|
|
106
|
+
"types": "./vanilla-extract/esm/index.d.ts",
|
|
107
|
+
"import": "./vanilla-extract/esm/index.mjs",
|
|
108
|
+
"default": "./vanilla-extract/cjs/index.cjs"
|
|
109
|
+
},
|
|
99
110
|
"./tailwindcss": "./tailwindcss/index.css",
|
|
100
111
|
"./tailwindcss/index.css": "./tailwindcss/index.css",
|
|
101
112
|
"./tailwindcss/index": "./tailwindcss/index.css",
|