@porsche-design-system/components-react 3.7.0-rc.0 → 3.7.0-rc.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 +39 -0
- package/LICENSE.md +115 -0
- package/cjs/lib/components/pin-code.wrapper.cjs +26 -0
- package/cjs/lib/components/radio-button-wrapper.wrapper.cjs +3 -3
- package/cjs/public-api.cjs +2 -0
- package/esm/lib/components/accordion.wrapper.d.ts +1 -1
- package/esm/lib/components/banner.wrapper.d.ts +1 -1
- package/esm/lib/components/button-pure.wrapper.d.ts +1 -1
- package/esm/lib/components/button-tile.wrapper.d.ts +1 -1
- package/esm/lib/components/button.wrapper.d.ts +1 -1
- package/esm/lib/components/carousel.wrapper.d.ts +1 -1
- package/esm/lib/components/checkbox-wrapper.wrapper.d.ts +1 -1
- package/esm/lib/components/content-wrapper.wrapper.d.ts +1 -1
- package/esm/lib/components/display.wrapper.d.ts +1 -1
- package/esm/lib/components/divider.wrapper.d.ts +1 -1
- package/esm/lib/components/fieldset-wrapper.wrapper.d.ts +1 -1
- package/esm/lib/components/fieldset.wrapper.d.ts +1 -1
- package/esm/lib/components/flyout.wrapper.d.ts +1 -1
- package/esm/lib/components/heading.wrapper.d.ts +1 -1
- package/esm/lib/components/headline.wrapper.d.ts +1 -1
- package/esm/lib/components/icon.wrapper.d.ts +1 -1
- package/esm/lib/components/index.d.ts +1 -0
- package/esm/lib/components/inline-notification.wrapper.d.ts +1 -1
- package/esm/lib/components/link-pure.wrapper.d.ts +1 -1
- package/esm/lib/components/link-social.wrapper.d.ts +1 -1
- package/esm/lib/components/link-tile.wrapper.d.ts +1 -1
- package/esm/lib/components/link.wrapper.d.ts +1 -1
- package/esm/lib/components/modal.wrapper.d.ts +4 -2
- package/esm/lib/components/model-signature.wrapper.d.ts +1 -1
- package/esm/lib/components/multi-select.wrapper.d.ts +1 -1
- package/esm/lib/components/pagination.wrapper.d.ts +1 -1
- package/esm/lib/components/pin-code.wrapper.d.ts +120 -0
- package/esm/lib/components/pin-code.wrapper.mjs +24 -0
- package/esm/lib/components/popover.wrapper.d.ts +1 -1
- package/esm/lib/components/radio-button-wrapper.wrapper.d.ts +9 -1
- package/esm/lib/components/radio-button-wrapper.wrapper.mjs +3 -3
- package/esm/lib/components/scroller.wrapper.d.ts +1 -1
- package/esm/lib/components/segmented-control.wrapper.d.ts +1 -1
- package/esm/lib/components/select-wrapper.wrapper.d.ts +1 -1
- package/esm/lib/components/spinner.wrapper.d.ts +1 -1
- package/esm/lib/components/stepper-horizontal.wrapper.d.ts +1 -1
- package/esm/lib/components/switch.wrapper.d.ts +1 -1
- package/esm/lib/components/table.wrapper.d.ts +1 -1
- package/esm/lib/components/tabs-bar.wrapper.d.ts +1 -1
- package/esm/lib/components/tabs.wrapper.d.ts +1 -1
- package/esm/lib/components/tag-dismissible.wrapper.d.ts +1 -1
- package/esm/lib/components/tag.wrapper.d.ts +1 -1
- package/esm/lib/components/text-field-wrapper.wrapper.d.ts +1 -1
- package/esm/lib/components/text-list.wrapper.d.ts +1 -1
- package/esm/lib/components/text.wrapper.d.ts +1 -1
- package/esm/lib/components/textarea-wrapper.wrapper.d.ts +1 -1
- package/esm/lib/components/toast.wrapper.d.ts +1 -1
- package/esm/lib/components/wordmark.wrapper.d.ts +1 -1
- package/esm/lib/types.d.ts +18 -2
- package/esm/public-api.mjs +1 -0
- package/package.json +2 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +1027 -250
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +19 -17
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/pin-code.wrapper.cjs +40 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/radio-button-wrapper.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.cjs +2 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +8 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.cjs +2 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +6 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +96 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.cjs +68 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.cjs +2 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/public-api.cjs +2 -0
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +993 -217
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +19 -17
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/pin-code.wrapper.mjs +38 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/radio-button-wrapper.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +5 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +10 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +3 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +5 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +8 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +94 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.mjs +68 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.mjs +2 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.mjs +1 -0
- package/ssr/esm/lib/components/index.d.ts +1 -0
- package/ssr/esm/lib/components/modal.wrapper.d.ts +4 -2
- package/ssr/esm/lib/components/pin-code.wrapper.d.ts +120 -0
- package/ssr/esm/lib/components/radio-button-wrapper.wrapper.d.ts +8 -0
- package/ssr/esm/lib/dsr-components/carousel.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/pin-code.d.ts +9 -0
- package/ssr/esm/lib/types.d.ts +18 -2
- package/LICENSE +0 -59
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,45 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
14
14
|
|
|
15
15
|
### [Unreleased]
|
|
16
16
|
|
|
17
|
+
### [3.7.0-rc.2] - 2023-09-28
|
|
18
|
+
|
|
19
|
+
#### Added
|
|
20
|
+
|
|
21
|
+
- Styles: `gridStyles` and `pds-grid` support basic usage inside `Flyout` component
|
|
22
|
+
([#2756](https://github.com/porsche-design-system/porsche-design-system/pull/2756))
|
|
23
|
+
|
|
24
|
+
#### Fixed
|
|
25
|
+
|
|
26
|
+
- Overlay issues of header/footer in `Flyout` component
|
|
27
|
+
([#2786](https://github.com/porsche-design-system/porsche-design-system/pull/2786))
|
|
28
|
+
|
|
29
|
+
### [3.7.0-rc.1] - 2023-09-20
|
|
30
|
+
|
|
31
|
+
#### Added
|
|
32
|
+
|
|
33
|
+
- **[EXPERIMENTAL]** Prop `loading` for `Radio Button Wrapper`
|
|
34
|
+
([#2774](https://github.com/porsche-design-system/porsche-design-system/pull/2774))
|
|
35
|
+
- Theme property supports `auto` for all themeable components, reflecting `prefers-color-scheme` based on OS system
|
|
36
|
+
settings ([#2719](https://github.com/porsche-design-system/porsche-design-system/pull/2719))
|
|
37
|
+
- `hyphens` CSS property can now be overwritten in `Button Tile`, `Link Tile` and `Link Tile Model Signature` components
|
|
38
|
+
([#2758](https://github.com/porsche-design-system/porsche-design-system/pull/2758))
|
|
39
|
+
- Partials that produce innerHTML support `{ format: 'sha256' }` option for whitelisting in
|
|
40
|
+
[Content-Security-Policy (CSP)](must-know/security/content-security-policy)
|
|
41
|
+
([#2773](https://github.com/porsche-design-system/porsche-design-system/pull/2773))
|
|
42
|
+
- `Pin Code` ([#2691](https://github.com/porsche-design-system/porsche-design-system/pull/2691))
|
|
43
|
+
|
|
44
|
+
#### Fixed
|
|
45
|
+
|
|
46
|
+
- Dragging of `Carousel` can become stucked
|
|
47
|
+
([#2768](https://github.com/porsche-design-system/porsche-design-system/pull/2768))
|
|
48
|
+
- Color of `message` for `Fieldset`, `Fieldset Wrapper`, `Text Field Wrapper` and `Textarea Wrapper` in dark theme
|
|
49
|
+
([#2769](https://github.com/porsche-design-system/porsche-design-system/pull/2769))
|
|
50
|
+
|
|
51
|
+
#### Changed
|
|
52
|
+
|
|
53
|
+
- Usage of `getInitialStyles()` partial is required and validated with an exception
|
|
54
|
+
([#2749](https://github.com/porsche-design-system/porsche-design-system/pull/2749))
|
|
55
|
+
|
|
17
56
|
### [3.7.0-rc.0] - 2023-09-05
|
|
18
57
|
|
|
19
58
|
#### Added
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
Copyright (c) 2022 Dr. Ing. h.c. F. Porsche AG
|
|
2
|
+
|
|
3
|
+
The Porsche Design System source code is licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the License at
|
|
5
|
+
[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0).
|
|
6
|
+
|
|
7
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an
|
|
8
|
+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
|
9
|
+
language governing permissions and limitations under the License.
|
|
10
|
+
|
|
11
|
+
All Porsche specific design assets like fonts, icons, marque, etc. are licensed under the Porsche Design System Assets
|
|
12
|
+
License Agreement.
|
|
13
|
+
|
|
14
|
+
By accessing, using or contributing to the Design System of Porsche ('Porsche Design System'), you agree to the
|
|
15
|
+
following Porsche Design System Assets License Agreement agreement ('Agreement') with Dr. Ing. h.c. F. Porsche AG,
|
|
16
|
+
Germany ('Porsche AG') and its affiliates (“we”, “our”, “us” or "Porsche"). Porsche reserves the right to change and
|
|
17
|
+
update this licensing agreement at any time.
|
|
18
|
+
|
|
19
|
+
### License
|
|
20
|
+
|
|
21
|
+
Subject to the terms of this Agreement, Porsche grants you a limited, worldwide, royalty-free, non-assignable,
|
|
22
|
+
non-transferable, non-sublicensable, and non-exclusive license to use the Porsche Design System Assets solely to
|
|
23
|
+
develop, test, and distribute software applications, websites, and interfaces on behalf of Porsche that are available
|
|
24
|
+
via www.porsche.com or any associated websites or other Porsche software (“Applications”).
|
|
25
|
+
|
|
26
|
+
### License Restrictions
|
|
27
|
+
|
|
28
|
+
You may not use the Porsche Design System Assets (i) to develop, test, or distribute an external, stand-alone
|
|
29
|
+
Application (“External Application”) unless such External Application is not identical to and is dissimilar and visually
|
|
30
|
+
distinct from Porsche products and services, as determined by Porsche in its sole discretion, (ii) to mislead consumers
|
|
31
|
+
as to Porsche’s sponsorship of, affiliation with, or endorsement of you, your organization, or your Application, and
|
|
32
|
+
(iii) for any purpose not expressly permitted by this License Agreement. For clarity, any Application that embeds
|
|
33
|
+
directly inside the Porsche Admin or other Porsche interface that allows for the embedding of Applications (“Embedded
|
|
34
|
+
Application”), as determined by Porsche in its sole discretion, may be visually similar, but not identical, to Porsche
|
|
35
|
+
products and services. You may not modify, adapt, redistribute, or create derivative works of the Porsche Design System
|
|
36
|
+
Assets or any part of the Porsche Design System Assets.
|
|
37
|
+
|
|
38
|
+
### Ownership of Intellectual Property
|
|
39
|
+
|
|
40
|
+
You agree that Porsche owns all legal right, title and interest in and to the Porsche products and services, including
|
|
41
|
+
the Porsche Design System and the Porsche Design System Assets, including any Intellectual Property Rights inherent
|
|
42
|
+
therein and related thereto. “Intellectual Property Rights” means any and all rights under patent law, copyright law,
|
|
43
|
+
trade secret law, trademark law, and any and all other proprietary rights. Porsche reserves all rights not expressly
|
|
44
|
+
granted to you.
|
|
45
|
+
|
|
46
|
+
### Termination
|
|
47
|
+
|
|
48
|
+
Porsche may terminate this Agreement: (a) if you breach any of the terms of this Agreement or (b) if Porsche ceases to
|
|
49
|
+
make the Porsche Design System Assets generally available. Either party may terminate this Agreement at any time, with
|
|
50
|
+
or without cause. Upon termination, your Porsche Design System Assets license will also terminate. This means that you
|
|
51
|
+
must cease using the Porsche Design System Assets and delete all copies of the Porsche Design System Assets. All terms
|
|
52
|
+
of this Agreement will survive the termination or expiration of this Agreement, except for your license right granted in
|
|
53
|
+
Section 1.
|
|
54
|
+
|
|
55
|
+
### No Warranty
|
|
56
|
+
|
|
57
|
+
THE Porsche Design System Assets ARE PROVIDED “AS IS” AND “WITH ALL FAULTS”. PORSCHE AND ITS THIRD PARTY LICENSORS
|
|
58
|
+
DISCLAIM ALL REPRESENTATIONS, WARRANTIES AND GUARANTEES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING IMPLIED
|
|
59
|
+
WARRANTIES OF MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR ANY PURPOSE. PORSCHE MAKES NO REPRESENTATION,
|
|
60
|
+
WARRANTY OR GUARANTEE RELATED TO RELIABILITY, ACCURACY, OR COMPLETENESS OF THE Porsche Design System Assets OR THAT YOUR
|
|
61
|
+
USE OF THE Porsche Design System Assets WILL BE SECURE, TIMELY, UNINTERRUPTED OR ERROR-FREE. THE Porsche Design System
|
|
62
|
+
Assets MAY NOT MEET YOUR REQUIREMENTS OR EXPECTATIONS.
|
|
63
|
+
|
|
64
|
+
### Limitation of Liability
|
|
65
|
+
|
|
66
|
+
IN NO EVENT SHALL PORSCHE BE LIABLE FOR ANY LOSS OF USE, LOST DATA, FAILURE OF SECURITY MECHANISMS, INTERRUPTION OF
|
|
67
|
+
BUSINESS, OR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY KIND (INCLUDING LOST PROFITS OR LOST
|
|
68
|
+
DATA), REGARDLESS OF THE FORM OF ACTION, WHETHER IN CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR
|
|
69
|
+
OTHERWISE, EVEN IF INFORMED OF THE POSSIBILITY OF SUCH DAMAGES IN ADVANCE. PORSCHE SHALL NOT BE LIABLE FOR ANY DAMAGES
|
|
70
|
+
THAT YOU MAY SUFFER IN CONNECTION WITH THE PERFORMANCE OF THE Porsche Design System Assets. NOTWITHSTANDING ANY OTHER
|
|
71
|
+
PROVISION OF THIS AGREEMENT, PORSCHE’S ENTIRE LIABILITY TO YOU UNDER THIS AGREEMENT SHALL NOT EXCEED FIVE HUNDRED US
|
|
72
|
+
DOLLARS ($500). THE ABOVE WARRANTY DISCLAIMERS AND LIMITATIONS OF LIABILITY APPLY TO THE MAXIMUM EXTENT PERMITTED BY
|
|
73
|
+
LAW, BUT YOU MAY HAVE OTHER STATUTORY RIGHTS, WHICH THIS AGREEMENT CANNOT CHANGE. The limitations in this Section 6 will
|
|
74
|
+
survive and apply even if any limited remedy specified in this Agreement is found to have failed of its essential
|
|
75
|
+
purpose.
|
|
76
|
+
|
|
77
|
+
### Applications; Indemnification
|
|
78
|
+
|
|
79
|
+
You are solely responsible for your Applications, your use of Porsche Design System Assets, and your compliance with
|
|
80
|
+
this Agreement. You agree to indemnify, defend and hold Porsche and its affiliates and their respective directors,
|
|
81
|
+
officers, employees, successors, assigns, insurers, independent contractors and agents harmless from and against any and
|
|
82
|
+
all claims, costs, damages, losses, liabilities and expenses (including reasonable attorneys’ fees and costs) arising
|
|
83
|
+
out of any claim relating to (a) your Applications, (b) your use of the Porsche Design System Assets or (c) your breach
|
|
84
|
+
of this Agreement. Porsche may participate in defending the claim at its own expense. You may not settle any claim
|
|
85
|
+
without Porsche’s prior written consent. If you distribute your Applications to others, you agree to require the end
|
|
86
|
+
users to agree that Porsche has no liability, warranty, or support or other obligations related to your Applications.
|
|
87
|
+
|
|
88
|
+
#### General
|
|
89
|
+
|
|
90
|
+
1. Severability If any provision of this Agreement is, for any reason, held to be invalid, illegal or unenforceable in
|
|
91
|
+
any respect, then such invalidity, illegality or unenforceability will not affect any other provision of this
|
|
92
|
+
Agreement, and this Agreement will be construed as if such invalid, illegal or unenforceable provision had never been
|
|
93
|
+
contained within this Agreement.
|
|
94
|
+
|
|
95
|
+
2. No Waiver The failure of either party to insist upon or enforce strict performance by the other party of any
|
|
96
|
+
provision of this Agreement or to exercise any right under this Agreement shall not be construed as a waiver or
|
|
97
|
+
relinquishment to any extent of such party’s right to assert or rely upon any such provision or right in that or any
|
|
98
|
+
other instance; rather, the same shall be and remain in full force and effect. Each waiver shall be set forth in a
|
|
99
|
+
written instrument signed by the waiving party.
|
|
100
|
+
|
|
101
|
+
3. Entire Agreement This Agreement, including all guidelines and other documents linked or otherwise incorporated or
|
|
102
|
+
referenced herein, sets forth the entire agreement and supersedes any and all prior agreements, written or oral, of
|
|
103
|
+
the parties with respect to the subject matter hereof (including any prior version of this Agreement).
|
|
104
|
+
|
|
105
|
+
4. Assignment All the terms and provisions of this Agreement shall be binding upon and inure to the benefit of the
|
|
106
|
+
parties to the Agreement and to their respective heirs, successors, permitted assigns and legal representatives.
|
|
107
|
+
Porsche shall be permitted to assign this Agreement without notice to or consent from you. You shall have no right to
|
|
108
|
+
assign or otherwise transfer the Agreement, or any of your rights or obligations hereunder, to any third party
|
|
109
|
+
without Porsche’s prior written consent, to be given or withheld in Porsche’s sole discretion.
|
|
110
|
+
|
|
111
|
+
5. Applicable Law This Agreement will be governed by and construed in accordance with the laws of Germany, excluding
|
|
112
|
+
conflicts of law rules and principles. Each party submits to the personal and exclusive jurisdiction of the courts
|
|
113
|
+
located in Stuttgart, Germany. Nothing in this Agreement limits Porsche’s rights to seek equitable relief.
|
|
114
|
+
|
|
115
|
+
Last updated: February 20, 2022
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
var react = require('react');
|
|
6
|
+
var hooks = require('../../hooks.cjs');
|
|
7
|
+
var utils = require('../../utils.cjs');
|
|
8
|
+
|
|
9
|
+
const PPinCode = react.forwardRef(({ description = '', disabled = false, hideLabel = false, label = '', length = 4, loading = false, message = '', name, onUpdate, required = false, state = 'none', theme = 'light', type = 'number', value = '', className, ...rest }, ref) => {
|
|
10
|
+
const elementRef = react.useRef();
|
|
11
|
+
hooks.useEventCallback(elementRef, 'update', onUpdate);
|
|
12
|
+
const WebComponentTag = hooks.usePrefix('p-pin-code');
|
|
13
|
+
const propsToSync = [description, disabled, hideLabel, label, length, loading, message, name, required, state, theme, type, value];
|
|
14
|
+
hooks.useBrowserLayoutEffect(() => {
|
|
15
|
+
const { current } = elementRef;
|
|
16
|
+
['description', 'disabled', 'hideLabel', 'label', 'length', 'loading', 'message', 'name', 'required', 'state', 'theme', 'type', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
17
|
+
}, propsToSync);
|
|
18
|
+
const props = {
|
|
19
|
+
...rest,
|
|
20
|
+
class: hooks.useMergedClass(elementRef, className),
|
|
21
|
+
ref: utils.syncRef(elementRef, ref)
|
|
22
|
+
};
|
|
23
|
+
return jsxRuntime.jsx(WebComponentTag, { ...props });
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
exports.PPinCode = PPinCode;
|
|
@@ -6,13 +6,13 @@ var react = require('react');
|
|
|
6
6
|
var hooks = require('../../hooks.cjs');
|
|
7
7
|
var utils = require('../../utils.cjs');
|
|
8
8
|
|
|
9
|
-
const PRadioButtonWrapper = react.forwardRef(({ hideLabel = false, label = '', message = '', state = 'none', theme = 'light', className, ...rest }, ref) => {
|
|
9
|
+
const PRadioButtonWrapper = react.forwardRef(({ hideLabel = false, label = '', loading = false, message = '', state = 'none', theme = 'light', className, ...rest }, ref) => {
|
|
10
10
|
const elementRef = react.useRef();
|
|
11
11
|
const WebComponentTag = hooks.usePrefix('p-radio-button-wrapper');
|
|
12
|
-
const propsToSync = [hideLabel, label, message, state, theme];
|
|
12
|
+
const propsToSync = [hideLabel, label, loading, message, state, theme];
|
|
13
13
|
hooks.useBrowserLayoutEffect(() => {
|
|
14
14
|
const { current } = elementRef;
|
|
15
|
-
['hideLabel', 'label', 'message', 'state', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
15
|
+
['hideLabel', 'label', 'loading', 'message', 'state', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
16
16
|
}, propsToSync);
|
|
17
17
|
const props = {
|
|
18
18
|
...rest,
|
package/cjs/public-api.cjs
CHANGED
|
@@ -35,6 +35,7 @@ var modelSignature_wrapper = require('./lib/components/model-signature.wrapper.c
|
|
|
35
35
|
var multiSelect_wrapper = require('./lib/components/multi-select.wrapper.cjs');
|
|
36
36
|
var multiSelectOption_wrapper = require('./lib/components/multi-select-option.wrapper.cjs');
|
|
37
37
|
var pagination_wrapper = require('./lib/components/pagination.wrapper.cjs');
|
|
38
|
+
var pinCode_wrapper = require('./lib/components/pin-code.wrapper.cjs');
|
|
38
39
|
var popover_wrapper = require('./lib/components/popover.wrapper.cjs');
|
|
39
40
|
var radioButtonWrapper_wrapper = require('./lib/components/radio-button-wrapper.wrapper.cjs');
|
|
40
41
|
var scroller_wrapper = require('./lib/components/scroller.wrapper.cjs');
|
|
@@ -108,6 +109,7 @@ exports.PModelSignature = modelSignature_wrapper.PModelSignature;
|
|
|
108
109
|
exports.PMultiSelect = multiSelect_wrapper.PMultiSelect;
|
|
109
110
|
exports.PMultiSelectOption = multiSelectOption_wrapper.PMultiSelectOption;
|
|
110
111
|
exports.PPagination = pagination_wrapper.PPagination;
|
|
112
|
+
exports.PPinCode = pinCode_wrapper.PPinCode;
|
|
111
113
|
exports.PPopover = popover_wrapper.PPopover;
|
|
112
114
|
exports.PRadioButtonWrapper = radioButtonWrapper_wrapper.PRadioButtonWrapper;
|
|
113
115
|
exports.PScroller = scroller_wrapper.PScroller;
|
|
@@ -66,7 +66,7 @@ export declare const PAccordion: import("react").ForwardRefExoticComponent<Omit<
|
|
|
66
66
|
/**
|
|
67
67
|
* Adapts the color when used on dark background.
|
|
68
68
|
*/
|
|
69
|
-
theme?: "light" | "dark" | undefined;
|
|
69
|
+
theme?: "auto" | "light" | "dark" | undefined;
|
|
70
70
|
} & {
|
|
71
71
|
children?: import("react").ReactNode;
|
|
72
72
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -71,7 +71,7 @@ export declare const PBanner: import("react").ForwardRefExoticComponent<Omit<HTM
|
|
|
71
71
|
/**
|
|
72
72
|
* Adapts the banner color depending on the theme.
|
|
73
73
|
*/
|
|
74
|
-
theme?: "light" | "dark" | undefined;
|
|
74
|
+
theme?: "auto" | "light" | "dark" | undefined;
|
|
75
75
|
/**
|
|
76
76
|
* Has no effect anymore
|
|
77
77
|
* @deprecated since v3.0.0, will be removed with next major release
|
|
@@ -99,7 +99,7 @@ export declare const PButtonPure: import("react").ForwardRefExoticComponent<Omit
|
|
|
99
99
|
/**
|
|
100
100
|
* Adapts the button color depending on the theme.
|
|
101
101
|
*/
|
|
102
|
-
theme?: "light" | "dark" | undefined;
|
|
102
|
+
theme?: "auto" | "light" | "dark" | undefined;
|
|
103
103
|
/**
|
|
104
104
|
* Specifies the type of the button.
|
|
105
105
|
*/
|
|
@@ -78,7 +78,7 @@ export declare const PButtonTile: import("react").ForwardRefExoticComponent<Omit
|
|
|
78
78
|
/**
|
|
79
79
|
* Adapts the description and button theme when used on light background image.
|
|
80
80
|
*/
|
|
81
|
-
background?: "light" | "dark" | undefined;
|
|
81
|
+
background?: "auto" | "light" | "dark" | undefined;
|
|
82
82
|
/**
|
|
83
83
|
* Displays the button-tile as compact version with description and button icon only.
|
|
84
84
|
*/
|
|
@@ -66,7 +66,7 @@ export declare const PButton: import("react").ForwardRefExoticComponent<Omit<HTM
|
|
|
66
66
|
/**
|
|
67
67
|
* Adapts the button color depending on the theme.
|
|
68
68
|
*/
|
|
69
|
-
theme?: "light" | "dark" | undefined;
|
|
69
|
+
theme?: "auto" | "light" | "dark" | undefined;
|
|
70
70
|
/**
|
|
71
71
|
* Specifies the type of the button.
|
|
72
72
|
*/
|
|
@@ -115,7 +115,7 @@ export declare const PCarousel: import("react").ForwardRefExoticComponent<Omit<H
|
|
|
115
115
|
/**
|
|
116
116
|
* Adapts the color when used on dark background.
|
|
117
117
|
*/
|
|
118
|
-
theme?: "light" | "dark" | undefined;
|
|
118
|
+
theme?: "auto" | "light" | "dark" | undefined;
|
|
119
119
|
/**
|
|
120
120
|
* Defines the outer spacings between the carousel and the left and right screen sides.
|
|
121
121
|
*/
|
|
@@ -50,7 +50,7 @@ export declare const PCheckboxWrapper: import("react").ForwardRefExoticComponent
|
|
|
50
50
|
/**
|
|
51
51
|
* Adapts the color depending on the theme.
|
|
52
52
|
*/
|
|
53
|
-
theme?: "light" | "dark" | undefined;
|
|
53
|
+
theme?: "auto" | "light" | "dark" | undefined;
|
|
54
54
|
} & {
|
|
55
55
|
children?: import("react").ReactNode;
|
|
56
56
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -27,7 +27,7 @@ export declare const PContentWrapper: import("react").ForwardRefExoticComponent<
|
|
|
27
27
|
* Has no effect anymore
|
|
28
28
|
* @deprecated since v3.0.0, will be removed with next major release
|
|
29
29
|
*/
|
|
30
|
-
theme?: "light" | "dark" | undefined;
|
|
30
|
+
theme?: "auto" | "light" | "dark" | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* Defines the outer spacings between the content area and the left and right screen sides, as well as centering its content and setting a max-width.
|
|
33
33
|
*/
|
|
@@ -50,7 +50,7 @@ export declare const PDisplay: import("react").ForwardRefExoticComponent<Omit<HT
|
|
|
50
50
|
/**
|
|
51
51
|
* Adapts the text color depending on the theme. Has no effect when "inherit" is set as color prop.
|
|
52
52
|
*/
|
|
53
|
-
theme?: "light" | "dark" | undefined;
|
|
53
|
+
theme?: "auto" | "light" | "dark" | undefined;
|
|
54
54
|
} & {
|
|
55
55
|
children?: import("react").ReactNode;
|
|
56
56
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -34,5 +34,5 @@ export declare const PDivider: import("react").ForwardRefExoticComponent<Omit<HT
|
|
|
34
34
|
/**
|
|
35
35
|
* Adapts color depending on theme.
|
|
36
36
|
*/
|
|
37
|
-
theme?: "light" | "dark" | undefined;
|
|
37
|
+
theme?: "auto" | "light" | "dark" | undefined;
|
|
38
38
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -51,7 +51,7 @@ export declare const PFieldsetWrapper: import("react").ForwardRefExoticComponent
|
|
|
51
51
|
/**
|
|
52
52
|
* Adapts color depending on theme.
|
|
53
53
|
*/
|
|
54
|
-
theme?: "light" | "dark" | undefined;
|
|
54
|
+
theme?: "auto" | "light" | "dark" | undefined;
|
|
55
55
|
} & {
|
|
56
56
|
children?: import("react").ReactNode;
|
|
57
57
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -50,7 +50,7 @@ export declare const PFieldset: import("react").ForwardRefExoticComponent<Omit<H
|
|
|
50
50
|
/**
|
|
51
51
|
* Adapts color depending on theme.
|
|
52
52
|
*/
|
|
53
|
-
theme?: "light" | "dark" | undefined;
|
|
53
|
+
theme?: "auto" | "light" | "dark" | undefined;
|
|
54
54
|
} & {
|
|
55
55
|
children?: import("react").ReactNode;
|
|
56
56
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -42,7 +42,7 @@ export declare const PFlyout: import("react").ForwardRefExoticComponent<Omit<HTM
|
|
|
42
42
|
/**
|
|
43
43
|
* Adapts the flyout color depending on the theme.
|
|
44
44
|
*/
|
|
45
|
-
theme?: "light" | "dark" | undefined;
|
|
45
|
+
theme?: "auto" | "light" | "dark" | undefined;
|
|
46
46
|
} & {
|
|
47
47
|
children?: import("react").ReactNode;
|
|
48
48
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -50,7 +50,7 @@ export declare const PHeading: import("react").ForwardRefExoticComponent<Omit<HT
|
|
|
50
50
|
/**
|
|
51
51
|
* Adapts the text color depending on the theme. Has no effect when "inherit" is set as color prop.
|
|
52
52
|
*/
|
|
53
|
-
theme?: "light" | "dark" | undefined;
|
|
53
|
+
theme?: "auto" | "light" | "dark" | undefined;
|
|
54
54
|
} & {
|
|
55
55
|
children?: import("react").ReactNode;
|
|
56
56
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -47,7 +47,7 @@ export declare const PHeadline: import("react").ForwardRefExoticComponent<Omit<H
|
|
|
47
47
|
/**
|
|
48
48
|
* Adapts the text color depending on the theme. Has no effect when "inherit" is set as color prop.
|
|
49
49
|
*/
|
|
50
|
-
theme?: "light" | "dark" | undefined;
|
|
50
|
+
theme?: "auto" | "light" | "dark" | undefined;
|
|
51
51
|
/**
|
|
52
52
|
* Predefined style of the headline.
|
|
53
53
|
*/
|
|
@@ -60,5 +60,5 @@ export declare const PIcon: import("react").ForwardRefExoticComponent<Omit<HTMLA
|
|
|
60
60
|
/**
|
|
61
61
|
* Adapts the color depending on the theme. Has no effect when "inherit" is set as color prop.
|
|
62
62
|
*/
|
|
63
|
-
theme?: "light" | "dark" | undefined;
|
|
63
|
+
theme?: "auto" | "light" | "dark" | undefined;
|
|
64
64
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -32,6 +32,7 @@ export * from './model-signature.wrapper';
|
|
|
32
32
|
export * from './multi-select.wrapper';
|
|
33
33
|
export * from './multi-select-option.wrapper';
|
|
34
34
|
export * from './pagination.wrapper';
|
|
35
|
+
export * from './pin-code.wrapper';
|
|
35
36
|
export * from './popover.wrapper';
|
|
36
37
|
export * from './radio-button-wrapper.wrapper';
|
|
37
38
|
export * from './scroller.wrapper';
|
|
@@ -90,7 +90,7 @@ export declare const PInlineNotification: import("react").ForwardRefExoticCompon
|
|
|
90
90
|
/**
|
|
91
91
|
* Adapts the inline-notification color depending on the theme.
|
|
92
92
|
*/
|
|
93
|
-
theme?: "light" | "dark" | undefined;
|
|
93
|
+
theme?: "auto" | "light" | "dark" | undefined;
|
|
94
94
|
} & {
|
|
95
95
|
children?: import("react").ReactNode;
|
|
96
96
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -115,7 +115,7 @@ export declare const PLinkPure: import("react").ForwardRefExoticComponent<Omit<H
|
|
|
115
115
|
/**
|
|
116
116
|
* Adapts the button color depending on the theme.
|
|
117
117
|
*/
|
|
118
|
-
theme?: "light" | "dark" | undefined;
|
|
118
|
+
theme?: "auto" | "light" | "dark" | undefined;
|
|
119
119
|
/**
|
|
120
120
|
* Shows an underline under the label.
|
|
121
121
|
*/
|
|
@@ -59,7 +59,7 @@ export declare const PLinkSocial: import("react").ForwardRefExoticComponent<Omit
|
|
|
59
59
|
/**
|
|
60
60
|
* Adapts the link color when used on dark background.
|
|
61
61
|
*/
|
|
62
|
-
theme?: "light" | "dark" | undefined;
|
|
62
|
+
theme?: "auto" | "light" | "dark" | undefined;
|
|
63
63
|
} & {
|
|
64
64
|
children?: import("react").ReactNode;
|
|
65
65
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -74,7 +74,7 @@ export declare const PLinkTile: import("react").ForwardRefExoticComponent<Omit<H
|
|
|
74
74
|
/**
|
|
75
75
|
* Adapts the description and link theme when used on light background image.
|
|
76
76
|
*/
|
|
77
|
-
background?: "light" | "dark" | undefined;
|
|
77
|
+
background?: "auto" | "light" | "dark" | undefined;
|
|
78
78
|
/**
|
|
79
79
|
* Displays the link-tile as compact version with description and link icon only.
|
|
80
80
|
*/
|
|
@@ -78,7 +78,7 @@ export declare const PLink: import("react").ForwardRefExoticComponent<Omit<HTMLA
|
|
|
78
78
|
/**
|
|
79
79
|
* Adapts the link color when used on dark background.
|
|
80
80
|
*/
|
|
81
|
-
theme?: "light" | "dark" | undefined;
|
|
81
|
+
theme?: "auto" | "light" | "dark" | undefined;
|
|
82
82
|
/**
|
|
83
83
|
* The style variant of the link.
|
|
84
84
|
*/
|
|
@@ -10,7 +10,8 @@ export type PModalProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
|
10
10
|
*/
|
|
11
11
|
disableBackdropClick?: boolean;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* If true, the modal will not have a dismiss button.
|
|
14
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `dismissButton` instead.
|
|
14
15
|
*/
|
|
15
16
|
disableCloseButton?: boolean;
|
|
16
17
|
/**
|
|
@@ -48,7 +49,8 @@ export declare const PModal: import("react").ForwardRefExoticComponent<Omit<HTML
|
|
|
48
49
|
*/
|
|
49
50
|
disableBackdropClick?: boolean | undefined;
|
|
50
51
|
/**
|
|
51
|
-
*
|
|
52
|
+
* If true, the modal will not have a dismiss button.
|
|
53
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `dismissButton` instead.
|
|
52
54
|
*/
|
|
53
55
|
disableCloseButton?: boolean | undefined;
|
|
54
56
|
/**
|
|
@@ -34,5 +34,5 @@ export declare const PModelSignature: import("react").ForwardRefExoticComponent<
|
|
|
34
34
|
/**
|
|
35
35
|
* Adapts color depending on theme.
|
|
36
36
|
*/
|
|
37
|
-
theme?: "light" | "dark" | undefined;
|
|
37
|
+
theme?: "auto" | "light" | "dark" | undefined;
|
|
38
38
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -94,7 +94,7 @@ export declare const PMultiSelect: import("react").ForwardRefExoticComponent<Omi
|
|
|
94
94
|
/**
|
|
95
95
|
* Adapts the select color depending on the theme.
|
|
96
96
|
*/
|
|
97
|
-
theme?: "light" | "dark" | undefined;
|
|
97
|
+
theme?: "auto" | "light" | "dark" | undefined;
|
|
98
98
|
/**
|
|
99
99
|
* The selected values.
|
|
100
100
|
*/
|
|
@@ -102,7 +102,7 @@ export declare const PPagination: import("react").ForwardRefExoticComponent<Omit
|
|
|
102
102
|
/**
|
|
103
103
|
* Adapts the color when used on dark background.
|
|
104
104
|
*/
|
|
105
|
-
theme?: "light" | "dark" | undefined;
|
|
105
|
+
theme?: "auto" | "light" | "dark" | undefined;
|
|
106
106
|
/**
|
|
107
107
|
* The total count of items.
|
|
108
108
|
*/
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
|
+
import type { BreakpointCustomizable, PinCodeLength, PinCodeUpdateEvent, PinCodeState, Theme, PinCodeType } from '../types';
|
|
3
|
+
export type PPinCodeProps = Omit<HTMLAttributes<{}>, 'color'> & {
|
|
4
|
+
/**
|
|
5
|
+
* The description text.
|
|
6
|
+
*/
|
|
7
|
+
description?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Disables the Pin Code. No events will be triggered while disabled state is active.
|
|
10
|
+
*/
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Show or hide label and description text. For better accessibility it is recommended to show the label.
|
|
14
|
+
*/
|
|
15
|
+
hideLabel?: BreakpointCustomizable<boolean>;
|
|
16
|
+
/**
|
|
17
|
+
* The label text.
|
|
18
|
+
*/
|
|
19
|
+
label?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Number of characters of the Pin Code.
|
|
22
|
+
*/
|
|
23
|
+
length?: PinCodeLength;
|
|
24
|
+
/**
|
|
25
|
+
* Disables the Pin Code and shows a loading indicator. No events will be triggered while loading state is active.
|
|
26
|
+
*/
|
|
27
|
+
loading?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The message styled depending on validation state.
|
|
30
|
+
*/
|
|
31
|
+
message?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Name of the control.
|
|
34
|
+
*/
|
|
35
|
+
name?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Emitted when selected element changes.
|
|
38
|
+
*/
|
|
39
|
+
onUpdate?: (event: CustomEvent<PinCodeUpdateEvent>) => void;
|
|
40
|
+
/**
|
|
41
|
+
* Marks the Pin Code as required.
|
|
42
|
+
*/
|
|
43
|
+
required?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* The validation state.
|
|
46
|
+
*/
|
|
47
|
+
state?: PinCodeState;
|
|
48
|
+
/**
|
|
49
|
+
* Adapts the color depending on the theme.
|
|
50
|
+
*/
|
|
51
|
+
theme?: Theme;
|
|
52
|
+
/**
|
|
53
|
+
* Pin Code type.
|
|
54
|
+
*/
|
|
55
|
+
type?: PinCodeType;
|
|
56
|
+
/**
|
|
57
|
+
* Sets the initial value of the Pin Code.
|
|
58
|
+
*/
|
|
59
|
+
value?: string;
|
|
60
|
+
};
|
|
61
|
+
export declare const PPinCode: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<{}>, "color"> & {
|
|
62
|
+
/**
|
|
63
|
+
* The description text.
|
|
64
|
+
*/
|
|
65
|
+
description?: string | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Disables the Pin Code. No events will be triggered while disabled state is active.
|
|
68
|
+
*/
|
|
69
|
+
disabled?: boolean | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Show or hide label and description text. For better accessibility it is recommended to show the label.
|
|
72
|
+
*/
|
|
73
|
+
hideLabel?: BreakpointCustomizable<boolean> | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* The label text.
|
|
76
|
+
*/
|
|
77
|
+
label?: string | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Number of characters of the Pin Code.
|
|
80
|
+
*/
|
|
81
|
+
length?: 4 | 6 | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Disables the Pin Code and shows a loading indicator. No events will be triggered while loading state is active.
|
|
84
|
+
*/
|
|
85
|
+
loading?: boolean | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* The message styled depending on validation state.
|
|
88
|
+
*/
|
|
89
|
+
message?: string | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* Name of the control.
|
|
92
|
+
*/
|
|
93
|
+
name?: string | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Emitted when selected element changes.
|
|
96
|
+
*/
|
|
97
|
+
onUpdate?: ((event: CustomEvent<PinCodeUpdateEvent>) => void) | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* Marks the Pin Code as required.
|
|
100
|
+
*/
|
|
101
|
+
required?: boolean | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* The validation state.
|
|
104
|
+
*/
|
|
105
|
+
state?: "none" | "success" | "error" | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* Adapts the color depending on the theme.
|
|
108
|
+
*/
|
|
109
|
+
theme?: "auto" | "light" | "dark" | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Pin Code type.
|
|
112
|
+
*/
|
|
113
|
+
type?: "number" | "password" | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* Sets the initial value of the Pin Code.
|
|
116
|
+
*/
|
|
117
|
+
value?: string | undefined;
|
|
118
|
+
} & {
|
|
119
|
+
children?: import("react").ReactNode;
|
|
120
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { forwardRef, useRef } from 'react';
|
|
4
|
+
import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
|
|
5
|
+
import { syncRef } from '../../utils.mjs';
|
|
6
|
+
|
|
7
|
+
const PPinCode = forwardRef(({ description = '', disabled = false, hideLabel = false, label = '', length = 4, loading = false, message = '', name, onUpdate, required = false, state = 'none', theme = 'light', type = 'number', value = '', className, ...rest }, ref) => {
|
|
8
|
+
const elementRef = useRef();
|
|
9
|
+
useEventCallback(elementRef, 'update', onUpdate);
|
|
10
|
+
const WebComponentTag = usePrefix('p-pin-code');
|
|
11
|
+
const propsToSync = [description, disabled, hideLabel, label, length, loading, message, name, required, state, theme, type, value];
|
|
12
|
+
useBrowserLayoutEffect(() => {
|
|
13
|
+
const { current } = elementRef;
|
|
14
|
+
['description', 'disabled', 'hideLabel', 'label', 'length', 'loading', 'message', 'name', 'required', 'state', 'theme', 'type', 'value'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
15
|
+
}, propsToSync);
|
|
16
|
+
const props = {
|
|
17
|
+
...rest,
|
|
18
|
+
class: useMergedClass(elementRef, className),
|
|
19
|
+
ref: syncRef(elementRef, ref)
|
|
20
|
+
};
|
|
21
|
+
return jsx(WebComponentTag, { ...props });
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export { PPinCode };
|