@porsche-design-system/components-react 3.0.0-rc.1 → 3.0.0-rc.3
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 +54 -0
- package/bin/patchRemixRunProcessBrowserGlobalIdentifier.js +35 -26
- package/esm/lib/components/icon.wrapper.js +1 -1
- package/esm/lib/components/scroller.wrapper.js +3 -3
- package/lib/components/accordion.wrapper.d.ts +2 -2
- package/lib/components/banner.wrapper.d.ts +2 -2
- package/lib/components/button-group.wrapper.d.ts +2 -2
- package/lib/components/button-pure.wrapper.d.ts +2 -2
- package/lib/components/button-tile.wrapper.d.ts +2 -2
- package/lib/components/button.wrapper.d.ts +2 -2
- package/lib/components/carousel.wrapper.d.ts +2 -2
- package/lib/components/checkbox-wrapper.wrapper.d.ts +2 -2
- package/lib/components/content-wrapper.wrapper.d.ts +2 -2
- package/lib/components/crest.wrapper.d.ts +2 -2
- package/lib/components/display.wrapper.d.ts +2 -2
- package/lib/components/divider.wrapper.d.ts +2 -2
- package/lib/components/fieldset-wrapper.wrapper.d.ts +2 -2
- package/lib/components/fieldset.wrapper.d.ts +2 -2
- package/lib/components/flex-item.wrapper.d.ts +2 -2
- package/lib/components/flex.wrapper.d.ts +2 -2
- package/lib/components/grid-item.wrapper.d.ts +2 -2
- package/lib/components/grid.wrapper.d.ts +2 -2
- package/lib/components/heading.wrapper.d.ts +2 -2
- package/lib/components/headline.wrapper.d.ts +2 -2
- package/lib/components/icon.wrapper.d.ts +2 -2
- package/lib/components/icon.wrapper.js +1 -1
- package/lib/components/inline-notification.wrapper.d.ts +2 -2
- package/lib/components/link-pure.wrapper.d.ts +2 -2
- package/lib/components/link-social.wrapper.d.ts +2 -2
- package/lib/components/link-tile-model-signature.wrapper.d.ts +2 -2
- package/lib/components/link-tile.wrapper.d.ts +2 -2
- package/lib/components/link.wrapper.d.ts +2 -2
- package/lib/components/marque.wrapper.d.ts +2 -2
- package/lib/components/modal.wrapper.d.ts +2 -2
- package/lib/components/model-signature.wrapper.d.ts +2 -2
- package/lib/components/pagination.wrapper.d.ts +2 -2
- package/lib/components/popover.wrapper.d.ts +2 -2
- package/lib/components/radio-button-wrapper.wrapper.d.ts +2 -2
- package/lib/components/scroller.wrapper.d.ts +17 -9
- package/lib/components/scroller.wrapper.js +3 -3
- package/lib/components/segmented-control-item.wrapper.d.ts +2 -2
- package/lib/components/segmented-control.wrapper.d.ts +2 -2
- package/lib/components/select-wrapper.wrapper.d.ts +2 -2
- package/lib/components/spinner.wrapper.d.ts +2 -2
- package/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -2
- package/lib/components/stepper-horizontal.wrapper.d.ts +2 -2
- package/lib/components/switch.wrapper.d.ts +2 -2
- package/lib/components/table-body.wrapper.d.ts +2 -2
- package/lib/components/table-cell.wrapper.d.ts +2 -2
- package/lib/components/table-head-cell.wrapper.d.ts +2 -2
- package/lib/components/table-head-row.wrapper.d.ts +2 -2
- package/lib/components/table-head.wrapper.d.ts +2 -2
- package/lib/components/table-row.wrapper.d.ts +2 -2
- package/lib/components/table.wrapper.d.ts +2 -2
- package/lib/components/tabs-bar.wrapper.d.ts +2 -2
- package/lib/components/tabs-item.wrapper.d.ts +2 -2
- package/lib/components/tabs.wrapper.d.ts +2 -2
- package/lib/components/tag-dismissible.wrapper.d.ts +2 -2
- package/lib/components/tag.wrapper.d.ts +2 -2
- package/lib/components/text-field-wrapper.wrapper.d.ts +2 -2
- package/lib/components/text-list-item.wrapper.d.ts +2 -2
- package/lib/components/text-list.wrapper.d.ts +2 -2
- package/lib/components/text.wrapper.d.ts +2 -2
- package/lib/components/textarea-wrapper.wrapper.d.ts +2 -2
- package/lib/components/toast.wrapper.d.ts +2 -2
- package/lib/components/wordmark.wrapper.d.ts +2 -2
- package/lib/types.d.ts +210 -191
- package/package.json +2 -2
- package/ssr/components/dist/styles/esm/styles-entry.js +203 -88
- package/ssr/components/dist/utils/esm/utils-entry.js +45 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/icon.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/scroller.wrapper.js +4 -4
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/select-wrapper-dropdown.wrapper.js +38 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal.wrapper.js +0 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +2 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.js +34 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +6 -3
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/wordmark.js +1 -1
- package/ssr/esm/components/dist/styles/esm/styles-entry.js +203 -89
- package/ssr/esm/components/dist/utils/esm/utils-entry.js +40 -8
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/icon.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/scroller.wrapper.js +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/select-wrapper-dropdown.wrapper.js +36 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/stepper-horizontal.wrapper.js +0 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.js +32 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +6 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/wordmark.js +1 -1
- package/ssr/lib/components/accordion.wrapper.d.ts +2 -2
- package/ssr/lib/components/banner.wrapper.d.ts +2 -2
- package/ssr/lib/components/button-group.wrapper.d.ts +2 -2
- package/ssr/lib/components/button-pure.wrapper.d.ts +2 -2
- package/ssr/lib/components/button-tile.wrapper.d.ts +2 -2
- package/ssr/lib/components/button.wrapper.d.ts +2 -2
- package/ssr/lib/components/carousel.wrapper.d.ts +2 -2
- package/ssr/lib/components/checkbox-wrapper.wrapper.d.ts +2 -2
- package/ssr/lib/components/content-wrapper.wrapper.d.ts +2 -2
- package/ssr/lib/components/crest.wrapper.d.ts +2 -2
- package/ssr/lib/components/display.wrapper.d.ts +2 -2
- package/ssr/lib/components/divider.wrapper.d.ts +2 -2
- package/ssr/lib/components/fieldset-wrapper.wrapper.d.ts +2 -2
- package/ssr/lib/components/fieldset.wrapper.d.ts +2 -2
- package/ssr/lib/components/flex-item.wrapper.d.ts +2 -2
- package/ssr/lib/components/flex.wrapper.d.ts +2 -2
- package/ssr/lib/components/grid-item.wrapper.d.ts +2 -2
- package/ssr/lib/components/grid.wrapper.d.ts +2 -2
- package/ssr/lib/components/heading.wrapper.d.ts +2 -2
- package/ssr/lib/components/headline.wrapper.d.ts +2 -2
- package/ssr/lib/components/icon.wrapper.d.ts +2 -2
- package/ssr/lib/components/inline-notification.wrapper.d.ts +2 -2
- package/ssr/lib/components/link-pure.wrapper.d.ts +2 -2
- package/ssr/lib/components/link-social.wrapper.d.ts +2 -2
- package/ssr/lib/components/link-tile-model-signature.wrapper.d.ts +2 -2
- package/ssr/lib/components/link-tile.wrapper.d.ts +2 -2
- package/ssr/lib/components/link.wrapper.d.ts +2 -2
- package/ssr/lib/components/marque.wrapper.d.ts +2 -2
- package/ssr/lib/components/modal.wrapper.d.ts +2 -2
- package/ssr/lib/components/model-signature.wrapper.d.ts +2 -2
- package/ssr/lib/components/pagination.wrapper.d.ts +2 -2
- package/ssr/lib/components/popover.wrapper.d.ts +2 -2
- package/ssr/lib/components/radio-button-wrapper.wrapper.d.ts +2 -2
- package/ssr/lib/components/scroller.wrapper.d.ts +17 -9
- package/ssr/lib/components/segmented-control-item.wrapper.d.ts +2 -2
- package/ssr/lib/components/segmented-control.wrapper.d.ts +2 -2
- package/ssr/lib/components/select-wrapper-dropdown.wrapper.d.ts +30 -0
- package/ssr/lib/components/select-wrapper.wrapper.d.ts +2 -2
- package/ssr/lib/components/spinner.wrapper.d.ts +2 -2
- package/ssr/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -2
- package/ssr/lib/components/stepper-horizontal.wrapper.d.ts +2 -2
- package/ssr/lib/components/switch.wrapper.d.ts +2 -2
- package/ssr/lib/components/table-body.wrapper.d.ts +2 -2
- package/ssr/lib/components/table-cell.wrapper.d.ts +2 -2
- package/ssr/lib/components/table-head-cell.wrapper.d.ts +2 -2
- package/ssr/lib/components/table-head-row.wrapper.d.ts +2 -2
- package/ssr/lib/components/table-head.wrapper.d.ts +2 -2
- package/ssr/lib/components/table-row.wrapper.d.ts +2 -2
- package/ssr/lib/components/table.wrapper.d.ts +2 -2
- package/ssr/lib/components/tabs-bar.wrapper.d.ts +2 -2
- package/ssr/lib/components/tabs-item.wrapper.d.ts +2 -2
- package/ssr/lib/components/tabs.wrapper.d.ts +2 -2
- package/ssr/lib/components/tag-dismissible.wrapper.d.ts +2 -2
- package/ssr/lib/components/tag.wrapper.d.ts +2 -2
- package/ssr/lib/components/text-field-wrapper.wrapper.d.ts +2 -2
- package/ssr/lib/components/text-list-item.wrapper.d.ts +2 -2
- package/ssr/lib/components/text-list.wrapper.d.ts +2 -2
- package/ssr/lib/components/text.wrapper.d.ts +2 -2
- package/ssr/lib/components/textarea-wrapper.wrapper.d.ts +2 -2
- package/ssr/lib/components/toast.wrapper.d.ts +2 -2
- package/ssr/lib/components/wordmark.wrapper.d.ts +2 -2
- package/ssr/lib/dsr-components/select-wrapper.d.ts +0 -1
- package/ssr/lib/types.d.ts +210 -191
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,60 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
9
9
|
|
|
10
10
|
### [Unreleased]
|
|
11
11
|
|
|
12
|
+
### [3.0.0-rc.3] - 2023-05-10
|
|
13
|
+
|
|
14
|
+
#### Fixed
|
|
15
|
+
|
|
16
|
+
- `Tabs Bar` focus behavior via keyboard navigation
|
|
17
|
+
([#2546](https://github.com/porsche-design-system/porsche-design-system/pull/2546))
|
|
18
|
+
- Rendering of `Wordmark` in Safari ([#2542](https://github.com/porsche-design-system/porsche-design-system/pull/2542))
|
|
19
|
+
- Disabled dragging/ghosting of icons
|
|
20
|
+
([#2536](https://github.com/porsche-design-system/porsche-design-system/pull/2536))
|
|
21
|
+
|
|
22
|
+
#### Changed
|
|
23
|
+
|
|
24
|
+
- Styles: `dropShadow{Low|Medium|High}Style`s use `box-shadow` instead of `filter: drop-shadow()` to fix glitches
|
|
25
|
+
together with `frostedGlassStyle` in Firefox
|
|
26
|
+
([#2545](https://github.com/porsche-design-system/porsche-design-system/pull/2545))
|
|
27
|
+
- Size of icon and height of `Accordion`
|
|
28
|
+
([#2536](https://github.com/porsche-design-system/porsche-design-system/pull/2536))
|
|
29
|
+
|
|
30
|
+
### [3.0.0-rc.2] - 2023-05-09
|
|
31
|
+
|
|
32
|
+
#### Fixed
|
|
33
|
+
|
|
34
|
+
- `Checkbox Wrapper` Safari visual state change while hovering
|
|
35
|
+
([#2508](https://github.com/porsche-design-system/porsche-design-system/pull/2508))
|
|
36
|
+
- `Checkbox Wrapper` keyboard arrow navigation
|
|
37
|
+
([#2508](https://github.com/porsche-design-system/porsche-design-system/pull/2508))
|
|
38
|
+
- `Modal` fix hover state of dismiss button
|
|
39
|
+
([#2510](https://github.com/porsche-design-system/porsche-design-system/pull/2510))
|
|
40
|
+
- `Link Pure`, `Button Pure`: adjust offset of `:hover` and `active` styles
|
|
41
|
+
([#2511](https://github.com/porsche-design-system/porsche-design-system/pull/2511))
|
|
42
|
+
- `Tabs Bar`, `Tabs` ([#2521](https://github.com/porsche-design-system/porsche-design-system/pull/2521)):
|
|
43
|
+
- `focus` state of tabpanel
|
|
44
|
+
- Indicator bar height
|
|
45
|
+
- Optimize icon/text alignment of `Link Pure` and `Button Pure` in Safari
|
|
46
|
+
- `Select Wrapper` multiline option height and scaling behavior
|
|
47
|
+
([#2524](https://github.com/porsche-design-system/porsche-design-system/pull/2524))
|
|
48
|
+
- Fixed accessibility issues of `Tabs`, `Tabs Bar` and `Stepper Horizontal` to comply with v.4.7.0 of `axe-core`
|
|
49
|
+
([#2530](https://github.com/porsche-design-system/porsche-design-system/pull/2530))
|
|
50
|
+
- React: `patchRemixRunProcessBrowserGlobalIdentifier` binary now supports Remix 1.16.0
|
|
51
|
+
([#2537](https://github.com/porsche-design-system/porsche-design-system/pull/2537))
|
|
52
|
+
- Angular: added optional modifier to optional properties for better type checking in strict mode
|
|
53
|
+
([#2544](https://github.com/porsche-design-system/porsche-design-system/pull/2544))
|
|
54
|
+
|
|
55
|
+
#### Added
|
|
56
|
+
|
|
57
|
+
- Deprecation warning to `Icon` component if `lazy` prop is used
|
|
58
|
+
([#2521](https://github.com/porsche-design-system/porsche-design-system/pull/2521))
|
|
59
|
+
- `aria` prop to `Scroller` component
|
|
60
|
+
([#2530](https://github.com/porsche-design-system/porsche-design-system/pull/2530))
|
|
61
|
+
|
|
62
|
+
#### Changed
|
|
63
|
+
|
|
64
|
+
- Model signature asset of 718 model ([#2532](https://github.com/porsche-design-system/porsche-design-system/pull/2532))
|
|
65
|
+
|
|
12
66
|
### [3.0.0-rc.1] - 2023-04-19
|
|
13
67
|
|
|
14
68
|
#### Added
|
|
@@ -26,32 +26,41 @@ var fs__namespace = /*#__PURE__*/_interopNamespaceDefault(fs);
|
|
|
26
26
|
|
|
27
27
|
const patchRemixRunProcessBrowserGlobalIdentifier = () => {
|
|
28
28
|
const packageEntry = require.resolve('@remix-run/dev');
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
.
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
fs__namespace.
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
29
|
+
const compilerDirPaths = [
|
|
30
|
+
path__namespace.resolve(packageEntry, '../compiler'),
|
|
31
|
+
path__namespace.resolve(packageEntry, '../compiler/js'), // since 1.16.0 the file was moved into js sub-folder
|
|
32
|
+
].filter(fs__namespace.existsSync);
|
|
33
|
+
const filePaths = compilerDirPaths
|
|
34
|
+
.map((compilerDirPath) => fs__namespace.readdirSync(compilerDirPath).map((fileName) => `${compilerDirPath}/${fileName}`))
|
|
35
|
+
.flat()
|
|
36
|
+
// file is currently called compileBrowser.js
|
|
37
|
+
// since 1.16.0 the file is called compiler.js
|
|
38
|
+
.filter((fileName) => fileName.match(/\/(?:compileBrowser|compiler)\.js$/));
|
|
39
|
+
filePaths.forEach((filePath) => {
|
|
40
|
+
const filePathBackup = filePath.replace(/\.js$/, '-original$&');
|
|
41
|
+
if (!fs__namespace.existsSync(filePathBackup)) {
|
|
42
|
+
fs__namespace.copyFileSync(filePath, filePathBackup);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
fs__namespace.copyFileSync(filePathBackup, filePath);
|
|
46
|
+
}
|
|
47
|
+
const fileContent = fs__namespace.readFileSync(filePath, 'utf8');
|
|
48
|
+
// we want to extend the define config
|
|
49
|
+
// https://github.com/remix-run/remix/blob/main/packages/remix-dev/compiler/js/compiler.ts#L221-L226
|
|
50
|
+
if (fileContent.match(/define: \{/)) {
|
|
51
|
+
// prepending should be safer than appending because JSON.stringify() might be multiline like in source
|
|
52
|
+
// https://github.com/remix-run/remix/blob/05ffb6e2db8f2a0e09caffad6e9b3c897c34cb7d/packages/remix-dev/compiler/compileBrowser.ts#L159-L163
|
|
53
|
+
const newFileContent = fileContent.replace(/"process\.env\.NODE_ENV": JSON\.stringify\(.*/, '"process.browser": "true", // added by Porsche Design System\'s patchRemixRunProcessBrowserGlobalIdentifier.js\n $&');
|
|
54
|
+
const prettyFilePath = filePath.replace(packageEntry.substring(0, packageEntry.indexOf('/node_modules')), '.');
|
|
55
|
+
if (newFileContent.includes('"process.browser": "true"')) {
|
|
56
|
+
console.log(`Successfully patched ${prettyFilePath}`);
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
console.error(`Patching ${prettyFilePath} failed`);
|
|
60
|
+
}
|
|
61
|
+
fs__namespace.writeFileSync(filePath, newFileContent);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
55
64
|
};
|
|
56
65
|
patchRemixRunProcessBrowserGlobalIdentifier();
|
|
57
66
|
|
|
@@ -3,7 +3,7 @@ import { forwardRef, useRef } from 'react';
|
|
|
3
3
|
import { usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.js';
|
|
4
4
|
import { syncRef } from '../../utils.js';
|
|
5
5
|
|
|
6
|
-
const PIcon = forwardRef(({ aria, color = 'primary', lazy
|
|
6
|
+
const PIcon = forwardRef(({ aria, color = 'primary', lazy, name = 'arrow-right', size = 'small', source, theme = 'light', className, ...rest }, ref) => {
|
|
7
7
|
const elementRef = useRef();
|
|
8
8
|
const WebComponentTag = usePrefix('p-icon');
|
|
9
9
|
const propsToSync = [aria, color, lazy, name, size, source, theme];
|
|
@@ -3,13 +3,13 @@ import { forwardRef, useRef } from 'react';
|
|
|
3
3
|
import { usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.js';
|
|
4
4
|
import { syncRef } from '../../utils.js';
|
|
5
5
|
|
|
6
|
-
const PScroller = forwardRef(({ alignScrollIndicator = 'center', gradientColor = 'background-base', gradientColorScheme, scrollIndicatorPosition, scrollToPosition, scrollbar = false, theme = 'light', className, ...rest }, ref) => {
|
|
6
|
+
const PScroller = forwardRef(({ alignScrollIndicator = 'center', aria, gradientColor = 'background-base', gradientColorScheme, scrollIndicatorPosition, scrollToPosition, scrollbar = false, theme = 'light', className, ...rest }, ref) => {
|
|
7
7
|
const elementRef = useRef();
|
|
8
8
|
const WebComponentTag = usePrefix('p-scroller');
|
|
9
|
-
const propsToSync = [alignScrollIndicator, gradientColor, gradientColorScheme, scrollIndicatorPosition, scrollToPosition, scrollbar, theme];
|
|
9
|
+
const propsToSync = [alignScrollIndicator, aria, gradientColor, gradientColorScheme, scrollIndicatorPosition, scrollToPosition, scrollbar, theme];
|
|
10
10
|
useBrowserLayoutEffect(() => {
|
|
11
11
|
const { current } = elementRef;
|
|
12
|
-
['alignScrollIndicator', 'gradientColor', 'gradientColorScheme', 'scrollIndicatorPosition', 'scrollToPosition', 'scrollbar', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
12
|
+
['alignScrollIndicator', 'aria', 'gradientColor', 'gradientColorScheme', 'scrollIndicatorPosition', 'scrollToPosition', 'scrollbar', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
13
13
|
}, propsToSync);
|
|
14
14
|
const props = {
|
|
15
15
|
...rest,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { AccordionUpdateEvent, BreakpointCustomizable, AccordionSize, AccordionTag, Theme } from '../types';
|
|
3
|
-
export type PAccordionProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PAccordionProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Displays the Accordion as compact version with thinner border and smaller paddings.
|
|
6
6
|
*/
|
|
@@ -34,7 +34,7 @@ export type PAccordionProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
34
34
|
*/
|
|
35
35
|
theme?: Theme;
|
|
36
36
|
};
|
|
37
|
-
export declare const PAccordion: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
37
|
+
export declare const PAccordion: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
38
38
|
/**
|
|
39
39
|
* Displays the Accordion as compact version with thinner border and smaller paddings.
|
|
40
40
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { BannerState, Theme, BannerWidth } from '../types';
|
|
3
|
-
export type PBannerProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PBannerProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Description of the banner.
|
|
6
6
|
*/
|
|
@@ -39,7 +39,7 @@ export type PBannerProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
39
39
|
*/
|
|
40
40
|
width?: BannerWidth;
|
|
41
41
|
};
|
|
42
|
-
export declare const PBanner: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
42
|
+
export declare const PBanner: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
43
43
|
/**
|
|
44
44
|
* Description of the banner.
|
|
45
45
|
*/
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { BreakpointCustomizable, ButtonGroupDirection } from '../types';
|
|
3
|
-
export type PButtonGroupProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PButtonGroupProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Defines the direction of the main and cross axis. The default is ’{base: ‘column’, xs: ‘row’}' showing buttons vertically stacked on mobile viewports and side-by-side in a horizontal row from breakpoint ‘xs’. You always need to provide a base value when using breakpoints.
|
|
6
6
|
*/
|
|
7
7
|
direction?: BreakpointCustomizable<ButtonGroupDirection>;
|
|
8
8
|
};
|
|
9
|
-
export declare const PButtonGroup: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
9
|
+
export declare const PButtonGroup: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
10
10
|
/**
|
|
11
11
|
* Defines the direction of the main and cross axis. The default is ’{base: ‘column’, xs: ‘row’}' showing buttons vertically stacked on mobile viewports and side-by-side in a horizontal row from breakpoint ‘xs’. You always need to provide a base value when using breakpoints.
|
|
12
12
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { BreakpointCustomizable, ButtonPureAlignLabel, SelectedAriaAttributes, ButtonPureAriaAttribute, ButtonPureIcon, ButtonPureSize, Theme, ButtonPureType, ButtonPureWeight } from '../types';
|
|
3
|
-
export type PButtonPureProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PButtonPureProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Display button in active state.
|
|
6
6
|
*/
|
|
@@ -55,7 +55,7 @@ export type PButtonPureProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> &
|
|
|
55
55
|
*/
|
|
56
56
|
weight?: ButtonPureWeight;
|
|
57
57
|
};
|
|
58
|
-
export declare const PButtonPure: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
58
|
+
export declare const PButtonPure: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
59
59
|
/**
|
|
60
60
|
* Display button in active state.
|
|
61
61
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { ButtonTileAlign, SelectedAriaAttributes, ButtonTileAriaAttribute, BreakpointCustomizable, ButtonTileAspectRatio, ButtonTileIcon, ButtonTileSize, ButtonTileType, ButtonTileWeight } from '../types';
|
|
3
|
-
export type PButtonTileProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PButtonTileProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Alignment of button and description.
|
|
6
6
|
*/
|
|
@@ -58,7 +58,7 @@ export type PButtonTileProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> &
|
|
|
58
58
|
*/
|
|
59
59
|
weight?: BreakpointCustomizable<ButtonTileWeight>;
|
|
60
60
|
};
|
|
61
|
-
export declare const PButtonTile: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
61
|
+
export declare const PButtonTile: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
62
62
|
/**
|
|
63
63
|
* Alignment of button and description.
|
|
64
64
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { SelectedAriaAttributes, ButtonAriaAttribute, BreakpointCustomizable, ButtonIcon, Theme, ButtonType, ButtonVariant } from '../types';
|
|
3
|
-
export type PButtonProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PButtonProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Add ARIA attributes.
|
|
6
6
|
*/
|
|
@@ -38,7 +38,7 @@ export type PButtonProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
38
38
|
*/
|
|
39
39
|
variant?: ButtonVariant;
|
|
40
40
|
};
|
|
41
|
-
export declare const PButton: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
41
|
+
export declare const PButton: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
42
42
|
/**
|
|
43
43
|
* Add ARIA attributes.
|
|
44
44
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { CarouselAlignHeader, BreakpointCustomizable, CarouselInternationalization, CarouselUpdateEvent, Theme, CarouselWidth } from '../types';
|
|
3
|
-
export type PCarouselProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PCarouselProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Defines which slide to be active (zero-based numbering).
|
|
6
6
|
*/
|
|
@@ -59,7 +59,7 @@ export type PCarouselProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
59
59
|
*/
|
|
60
60
|
wrapContent?: boolean;
|
|
61
61
|
};
|
|
62
|
-
export declare const PCarousel: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
62
|
+
export declare const PCarousel: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
63
63
|
/**
|
|
64
64
|
* Defines which slide to be active (zero-based numbering).
|
|
65
65
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { BreakpointCustomizable, CheckboxWrapperState, Theme } from '../types';
|
|
3
|
-
export type PCheckboxWrapperProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PCheckboxWrapperProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Show or hide label. For better accessibility it's recommended to show the label.
|
|
6
6
|
*/
|
|
@@ -26,7 +26,7 @@ export type PCheckboxWrapperProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange
|
|
|
26
26
|
*/
|
|
27
27
|
theme?: Theme;
|
|
28
28
|
};
|
|
29
|
-
export declare const PCheckboxWrapper: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
29
|
+
export declare const PCheckboxWrapper: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
30
30
|
/**
|
|
31
31
|
* Show or hide label. For better accessibility it's recommended to show the label.
|
|
32
32
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { ContentWrapperBackgroundColor, Theme, ContentWrapperWidth } from '../types';
|
|
3
|
-
export type PContentWrapperProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PContentWrapperProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Has no effect anymore
|
|
6
6
|
* @deprecated since v3.0.0, will be removed with next major release
|
|
@@ -17,7 +17,7 @@ export type PContentWrapperProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'
|
|
|
17
17
|
width?: ContentWrapperWidth;
|
|
18
18
|
};
|
|
19
19
|
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Grid instead. */
|
|
20
|
-
export declare const PContentWrapper: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
20
|
+
export declare const PContentWrapper: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
21
21
|
/**
|
|
22
22
|
* Has no effect anymore
|
|
23
23
|
* @deprecated since v3.0.0, will be removed with next major release
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { SelectedAriaAttributes, CrestAriaAttribute, CrestTarget } from '../types';
|
|
3
|
-
export type PCrestProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PCrestProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Add ARIA attributes.
|
|
6
6
|
*/
|
|
@@ -14,7 +14,7 @@ export type PCrestProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
14
14
|
*/
|
|
15
15
|
target?: CrestTarget;
|
|
16
16
|
};
|
|
17
|
-
export declare const PCrest: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
17
|
+
export declare const PCrest: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
18
18
|
/**
|
|
19
19
|
* Add ARIA attributes.
|
|
20
20
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { DisplayAlign, DisplayColor, BreakpointCustomizable, DisplaySize, DisplayTag, Theme } from '../types';
|
|
3
|
-
export type PDisplayProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PDisplayProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Text alignment of the component.
|
|
6
6
|
*/
|
|
@@ -26,7 +26,7 @@ export type PDisplayProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
26
26
|
*/
|
|
27
27
|
theme?: Theme;
|
|
28
28
|
};
|
|
29
|
-
export declare const PDisplay: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
29
|
+
export declare const PDisplay: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
30
30
|
/**
|
|
31
31
|
* Text alignment of the component.
|
|
32
32
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { DividerColor, BreakpointCustomizable, DividerDirection, DividerOrientation, Theme } from '../types';
|
|
3
|
-
export type PDividerProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PDividerProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Defines color depending on theme.
|
|
6
6
|
*/
|
|
@@ -18,7 +18,7 @@ export type PDividerProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
18
18
|
*/
|
|
19
19
|
theme?: Theme;
|
|
20
20
|
};
|
|
21
|
-
export declare const PDivider: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
21
|
+
export declare const PDivider: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
22
22
|
/**
|
|
23
23
|
* Defines color depending on theme.
|
|
24
24
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { FieldsetWrapperLabelSize, FieldsetWrapperState, Theme } from '../types';
|
|
3
|
-
export type PFieldsetWrapperProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PFieldsetWrapperProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* The label text.
|
|
6
6
|
*/
|
|
@@ -27,7 +27,7 @@ export type PFieldsetWrapperProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange
|
|
|
27
27
|
theme?: Theme;
|
|
28
28
|
};
|
|
29
29
|
/** @deprecated since v3.0.0, will be removed with next major release. Please use "p-fieldset" instead. */
|
|
30
|
-
export declare const PFieldsetWrapper: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
30
|
+
export declare const PFieldsetWrapper: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
31
31
|
/**
|
|
32
32
|
* The label text.
|
|
33
33
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { FieldsetLabelSize, FieldsetState, Theme } from '../types';
|
|
3
|
-
export type PFieldsetProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PFieldsetProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* The label text.
|
|
6
6
|
*/
|
|
@@ -26,7 +26,7 @@ export type PFieldsetProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
26
26
|
*/
|
|
27
27
|
theme?: Theme;
|
|
28
28
|
};
|
|
29
|
-
export declare const PFieldset: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
29
|
+
export declare const PFieldset: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
30
30
|
/**
|
|
31
31
|
* The label text.
|
|
32
32
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { BreakpointCustomizable, FlexItemAlignSelf, FlexItemFlex, FlexItemGrow, FlexItemOffset, FlexItemShrink, FlexItemWidth } from '../types';
|
|
3
|
-
export type PFlexItemProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PFlexItemProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Defines how this flex item is aligned along the cross axis. This overwrites the cross axis alignment set by the container. Corresponds to the "alignSelf" css property.
|
|
6
6
|
*/
|
|
@@ -27,7 +27,7 @@ export type PFlexItemProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
27
27
|
width?: BreakpointCustomizable<FlexItemWidth>;
|
|
28
28
|
};
|
|
29
29
|
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Flex instead. */
|
|
30
|
-
export declare const PFlexItem: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
30
|
+
export declare const PFlexItem: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
31
31
|
/**
|
|
32
32
|
* Defines how this flex item is aligned along the cross axis. This overwrites the cross axis alignment set by the container. Corresponds to the "alignSelf" css property.
|
|
33
33
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { BreakpointCustomizable, FlexAlignContent, FlexAlignItems, FlexDirection, FlexInline, FlexJustifyContent, FlexWrap } from '../types';
|
|
3
|
-
export type PFlexProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PFlexProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* This aligns a flex container's individual lines when there is extra space in the cross-axis, similar to how "justifyContent" aligns individual items along the main axis.
|
|
6
6
|
*/
|
|
@@ -27,7 +27,7 @@ export type PFlexProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
27
27
|
wrap?: BreakpointCustomizable<FlexWrap>;
|
|
28
28
|
};
|
|
29
29
|
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Flex instead. */
|
|
30
|
-
export declare const PFlex: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
30
|
+
export declare const PFlex: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
31
31
|
/**
|
|
32
32
|
* This aligns a flex container's individual lines when there is extra space in the cross-axis, similar to how "justifyContent" aligns individual items along the main axis.
|
|
33
33
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { BreakpointCustomizable, GridItemOffset, GridItemSize } from '../types';
|
|
3
|
-
export type PGridItemProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PGridItemProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* The offset of the column. Can be between 0 and 11. Also defines the offset of the column for specific breakpoints, like {base: 6, l: 3}. You always need to provide a base value when doing this.
|
|
6
6
|
*/
|
|
@@ -11,7 +11,7 @@ export type PGridItemProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
11
11
|
size?: BreakpointCustomizable<GridItemSize>;
|
|
12
12
|
};
|
|
13
13
|
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Grid instead. */
|
|
14
|
-
export declare const PGridItem: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
14
|
+
export declare const PGridItem: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
15
15
|
/**
|
|
16
16
|
* The offset of the column. Can be between 0 and 11. Also defines the offset of the column for specific breakpoints, like {base: 6, l: 3}. You always need to provide a base value when doing this.
|
|
17
17
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { BreakpointCustomizable, GridDirection, GridGutter, GridWrap } from '../types';
|
|
3
|
-
export type PGridProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PGridProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Defines the direction of the main and cross axis. The default "row" defines the main axis as horizontal left to right. Also defines the direction for specific breakpoints, like {base: "column", l: "row"}. You always need to provide a base value when doing this.
|
|
6
6
|
*/
|
|
@@ -16,7 +16,7 @@ export type PGridProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
16
16
|
wrap?: BreakpointCustomizable<GridWrap>;
|
|
17
17
|
};
|
|
18
18
|
/** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Grid instead. */
|
|
19
|
-
export declare const PGrid: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
19
|
+
export declare const PGrid: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
20
20
|
/**
|
|
21
21
|
* Defines the direction of the main and cross axis. The default "row" defines the main axis as horizontal left to right. Also defines the direction for specific breakpoints, like {base: "column", l: "row"}. You always need to provide a base value when doing this.
|
|
22
22
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { HeadingAlign, HeadingColor, BreakpointCustomizable, HeadingSize, HeadingTag, Theme } from '../types';
|
|
3
|
-
export type PHeadingProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PHeadingProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Text alignment of the component.
|
|
6
6
|
*/
|
|
@@ -26,7 +26,7 @@ export type PHeadingProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
26
26
|
*/
|
|
27
27
|
theme?: Theme;
|
|
28
28
|
};
|
|
29
|
-
export declare const PHeading: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
29
|
+
export declare const PHeading: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
30
30
|
/**
|
|
31
31
|
* Text alignment of the component.
|
|
32
32
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { HeadlineAlign, HeadlineColor, HeadlineTag, Theme, HeadlineVariant } from '../types';
|
|
3
|
-
export type PHeadlineProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PHeadlineProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Text alignment of the component.
|
|
6
6
|
*/
|
|
@@ -27,7 +27,7 @@ export type PHeadlineProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
27
27
|
variant?: HeadlineVariant;
|
|
28
28
|
};
|
|
29
29
|
/** @deprecated since v3.0.0, will be removed with next major release. Please use "p-heading" instead. */
|
|
30
|
-
export declare const PHeadline: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
30
|
+
export declare const PHeadline: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
31
31
|
/**
|
|
32
32
|
* Text alignment of the component.
|
|
33
33
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { SelectedAriaAttributes, IconAriaAttribute, IconColor, IconName, IconSize, Theme } from '../types';
|
|
3
|
-
export type PIconProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PIconProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Add ARIA attributes.
|
|
6
6
|
*/
|
|
@@ -31,7 +31,7 @@ export type PIconProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
31
31
|
*/
|
|
32
32
|
theme?: Theme;
|
|
33
33
|
};
|
|
34
|
-
export declare const PIcon: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
34
|
+
export declare const PIcon: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
35
35
|
/**
|
|
36
36
|
* Add ARIA attributes.
|
|
37
37
|
*/
|
|
@@ -5,7 +5,7 @@ var react = require('react');
|
|
|
5
5
|
var hooks = require('../../hooks.js');
|
|
6
6
|
var utils = require('../../utils.js');
|
|
7
7
|
|
|
8
|
-
const PIcon = react.forwardRef(({ aria, color = 'primary', lazy
|
|
8
|
+
const PIcon = react.forwardRef(({ aria, color = 'primary', lazy, name = 'arrow-right', size = 'small', source, theme = 'light', className, ...rest }, ref) => {
|
|
9
9
|
const elementRef = react.useRef();
|
|
10
10
|
const WebComponentTag = hooks.usePrefix('p-icon');
|
|
11
11
|
const propsToSync = [aria, color, lazy, name, size, source, theme];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { InlineNotificationActionIcon, InlineNotificationState, Theme } from '../types';
|
|
3
|
-
export type PInlineNotificationProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PInlineNotificationProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Action icon of the inline-notification.
|
|
6
6
|
*/
|
|
@@ -46,7 +46,7 @@ export type PInlineNotificationProps = Omit<HTMLAttributes<{}>, 'color' | 'onCha
|
|
|
46
46
|
*/
|
|
47
47
|
theme?: Theme;
|
|
48
48
|
};
|
|
49
|
-
export declare const PInlineNotification: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
49
|
+
export declare const PInlineNotification: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
50
50
|
/**
|
|
51
51
|
* Action icon of the inline-notification.
|
|
52
52
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { BreakpointCustomizable, LinkPureAlignLabel, SelectedAriaAttributes, LinkPureAriaAttribute, LinkPureIcon, LinkPureSize, LinkPureTarget, Theme, LinkPureWeight } from '../types';
|
|
3
|
-
export type PLinkPureProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PLinkPureProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Display link in active state.
|
|
6
6
|
*/
|
|
@@ -63,7 +63,7 @@ export type PLinkPureProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> & {
|
|
|
63
63
|
*/
|
|
64
64
|
weight?: LinkPureWeight;
|
|
65
65
|
};
|
|
66
|
-
export declare const PLinkPure: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
66
|
+
export declare const PLinkPure: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
67
67
|
/**
|
|
68
68
|
* Display link in active state.
|
|
69
69
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { BreakpointCustomizable, LinkSocialIcon, LinkSocialTarget, Theme } from '../types';
|
|
3
|
-
export type PLinkSocialProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PLinkSocialProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Show or hide label.
|
|
6
6
|
*/
|
|
@@ -31,7 +31,7 @@ export type PLinkSocialProps = Omit<HTMLAttributes<{}>, 'color' | 'onChange'> &
|
|
|
31
31
|
theme?: Theme;
|
|
32
32
|
};
|
|
33
33
|
/** @deprecated since v3.0.0, will be removed with next major release. Use `p-link` with corresponding social icon instead. */
|
|
34
|
-
export declare const PLinkSocial: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
34
|
+
export declare const PLinkSocial: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
35
35
|
/**
|
|
36
36
|
* Show or hide label.
|
|
37
37
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import type { BreakpointCustomizable, LinkTileModelSignatureAspectRatio, LinkTileModelSignatureHeadingTag, LinkTileModelSignatureLinkDirection, LinkTileModelSignatureModel, LinkTileModelSignatureWeight } from '../types';
|
|
3
|
-
export type PLinkTileModelSignatureProps = Omit<HTMLAttributes<{}>, 'color'
|
|
3
|
+
export type PLinkTileModelSignatureProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Aspect ratio of the link-tile-model-signature.
|
|
6
6
|
*/
|
|
@@ -30,7 +30,7 @@ export type PLinkTileModelSignatureProps = Omit<HTMLAttributes<{}>, 'color' | 'o
|
|
|
30
30
|
*/
|
|
31
31
|
weight?: BreakpointCustomizable<LinkTileModelSignatureWeight>;
|
|
32
32
|
};
|
|
33
|
-
export declare const PLinkTileModelSignature: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"
|
|
33
|
+
export declare const PLinkTileModelSignature: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
34
34
|
/**
|
|
35
35
|
* Aspect ratio of the link-tile-model-signature.
|
|
36
36
|
*/
|