@porsche-design-system/components-react 3.29.0-rc.4 → 3.29.0

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.
Files changed (58) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/cjs/lib/components/checkbox-wrapper.wrapper.cjs +1 -0
  3. package/cjs/lib/components/fieldset-wrapper.wrapper.cjs +1 -1
  4. package/cjs/lib/components/popover.wrapper.cjs +3 -4
  5. package/cjs/lib/components/select-wrapper.wrapper.cjs +1 -0
  6. package/cjs/lib/components/text-field-wrapper.wrapper.cjs +1 -0
  7. package/cjs/lib/components/textarea-wrapper.wrapper.cjs +1 -0
  8. package/esm/lib/components/checkbox-wrapper.wrapper.d.ts +1 -0
  9. package/esm/lib/components/checkbox-wrapper.wrapper.mjs +1 -0
  10. package/esm/lib/components/fieldset-wrapper.wrapper.d.ts +1 -1
  11. package/esm/lib/components/fieldset-wrapper.wrapper.mjs +1 -1
  12. package/esm/lib/components/popover.wrapper.d.ts +0 -16
  13. package/esm/lib/components/popover.wrapper.mjs +4 -5
  14. package/esm/lib/components/select-wrapper.wrapper.d.ts +1 -0
  15. package/esm/lib/components/select-wrapper.wrapper.mjs +1 -0
  16. package/esm/lib/components/text-field-wrapper.wrapper.d.ts +1 -0
  17. package/esm/lib/components/text-field-wrapper.wrapper.mjs +1 -0
  18. package/esm/lib/components/textarea-wrapper.wrapper.d.ts +1 -0
  19. package/esm/lib/components/textarea-wrapper.wrapper.mjs +1 -0
  20. package/package.json +7 -3
  21. package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +3 -0
  22. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/checkbox-wrapper.wrapper.cjs +1 -0
  23. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/fieldset-wrapper.wrapper.cjs +1 -1
  24. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/popover.wrapper.cjs +4 -5
  25. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/select-wrapper.wrapper.cjs +1 -0
  26. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/text-field-wrapper.wrapper.cjs +1 -0
  27. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/textarea-wrapper.wrapper.cjs +1 -0
  28. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.cjs +2 -0
  29. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.cjs +1 -1
  30. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +5 -5
  31. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.cjs +2 -0
  32. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.cjs +2 -0
  33. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.cjs +2 -0
  34. package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +3 -0
  35. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/checkbox-wrapper.wrapper.mjs +1 -0
  36. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/fieldset-wrapper.wrapper.mjs +1 -1
  37. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/popover.wrapper.mjs +5 -6
  38. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/select-wrapper.wrapper.mjs +1 -0
  39. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text-field-wrapper.wrapper.mjs +1 -0
  40. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/textarea-wrapper.wrapper.mjs +1 -0
  41. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.mjs +2 -0
  42. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.mjs +1 -1
  43. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +5 -5
  44. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.mjs +2 -0
  45. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.mjs +2 -0
  46. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea-wrapper.mjs +2 -0
  47. package/ssr/esm/lib/components/checkbox-wrapper.wrapper.d.ts +1 -0
  48. package/ssr/esm/lib/components/fieldset-wrapper.wrapper.d.ts +1 -1
  49. package/ssr/esm/lib/components/popover.wrapper.d.ts +0 -16
  50. package/ssr/esm/lib/components/select-wrapper.wrapper.d.ts +1 -0
  51. package/ssr/esm/lib/components/text-field-wrapper.wrapper.d.ts +1 -0
  52. package/ssr/esm/lib/components/textarea-wrapper.wrapper.d.ts +1 -0
  53. package/ssr/esm/lib/dsr-components/checkbox-wrapper.d.ts +2 -0
  54. package/ssr/esm/lib/dsr-components/fieldset-wrapper.d.ts +1 -1
  55. package/ssr/esm/lib/dsr-components/popover.d.ts +1 -0
  56. package/ssr/esm/lib/dsr-components/select-wrapper.d.ts +2 -0
  57. package/ssr/esm/lib/dsr-components/text-field-wrapper.d.ts +2 -0
  58. package/ssr/esm/lib/dsr-components/textarea-wrapper.d.ts +2 -0
package/CHANGELOG.md CHANGED
@@ -14,6 +14,20 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0),
14
14
 
15
15
  ## [Unreleased]
16
16
 
17
+ ## [3.29.0] - 2025-08-20
18
+
19
+ ## [3.29.0-rc.5] - 2025-08-19
20
+
21
+ ### Changed
22
+
23
+ - `Checkbox`, `Multi Select`, `Select`, `Pin Code`, `Textarea`: removed slotted anchor styles
24
+ ([#3981](https://github.com/porsche-design-system/porsche-design-system/pull/3981))
25
+
26
+ ### Fixed
27
+
28
+ - `Popover`: support for custom slotted button & improvements
29
+ ([#3976](https://github.com/porsche-design-system/porsche-design-system/pull/3976))
30
+
17
31
  ## [3.29.0-rc.4] - 2025-08-15
18
32
 
19
33
  ### Added
@@ -6,6 +6,7 @@ var react = require('react');
6
6
  var hooks = require('../../hooks.cjs');
7
7
  var utils = require('../../utils.cjs');
8
8
 
9
+ /** @deprecated since v3.29.0, will be removed with next major release. Please use `p-checkbox` instead. */
9
10
  const PCheckboxWrapper = /*#__PURE__*/ react.forwardRef(({ hideLabel = false, label = '', loading = false, message = '', state = 'none', theme, className, ...rest }, ref) => {
10
11
  const elementRef = react.useRef(undefined);
11
12
  const WebComponentTag = hooks.usePrefix('p-checkbox-wrapper');
@@ -6,7 +6,7 @@ var react = require('react');
6
6
  var hooks = require('../../hooks.cjs');
7
7
  var utils = require('../../utils.cjs');
8
8
 
9
- /** @deprecated since v3.0.0, will be removed with next major release. Please use "p-fieldset" instead. */
9
+ /** @deprecated since v3.0.0, will be removed with next major release. Please use `p-fieldset` instead. */
10
10
  const PFieldsetWrapper = /*#__PURE__*/ react.forwardRef(({ label = '', labelSize = 'medium', message = '', required = false, state = 'none', theme, className, ...rest }, ref) => {
11
11
  const elementRef = react.useRef(undefined);
12
12
  const WebComponentTag = hooks.usePrefix('p-fieldset-wrapper');
@@ -6,14 +6,13 @@ var react = require('react');
6
6
  var hooks = require('../../hooks.cjs');
7
7
  var utils = require('../../utils.cjs');
8
8
 
9
- const PPopover = /*#__PURE__*/ react.forwardRef(({ aria, description, direction = 'bottom', onDismiss, open = false, theme, className, ...rest }, ref) => {
9
+ const PPopover = /*#__PURE__*/ react.forwardRef(({ aria, description, direction = 'bottom', theme, className, ...rest }, ref) => {
10
10
  const elementRef = react.useRef(undefined);
11
- hooks.useEventCallback(elementRef, 'dismiss', onDismiss);
12
11
  const WebComponentTag = hooks.usePrefix('p-popover');
13
- const propsToSync = [aria, description, direction, open, theme || hooks.useTheme()];
12
+ const propsToSync = [aria, description, direction, theme || hooks.useTheme()];
14
13
  hooks.useBrowserLayoutEffect(() => {
15
14
  const { current } = elementRef;
16
- ['aria', 'description', 'direction', 'open', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
15
+ ['aria', 'description', 'direction', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
17
16
  }, propsToSync);
18
17
  const props = {
19
18
  ...rest,
@@ -6,6 +6,7 @@ var react = require('react');
6
6
  var hooks = require('../../hooks.cjs');
7
7
  var utils = require('../../utils.cjs');
8
8
 
9
+ /** @deprecated since v3.29.0, will be removed with next major release. Please use `p-select` instead. */
9
10
  const PSelectWrapper = /*#__PURE__*/ react.forwardRef(({ description = '', dropdownDirection = 'auto', filter = false, hideLabel = false, label = '', message = '', native = false, state = 'none', theme, className, ...rest }, ref) => {
10
11
  const elementRef = react.useRef(undefined);
11
12
  const WebComponentTag = hooks.usePrefix('p-select-wrapper');
@@ -6,6 +6,7 @@ var react = require('react');
6
6
  var hooks = require('../../hooks.cjs');
7
7
  var utils = require('../../utils.cjs');
8
8
 
9
+ /** @deprecated since v3.29.0, will be removed with next major release. Please use one of the specific input components instead: `p-input-date`, `p-input-email`, `p-input-number`, `p-input-password`, `p-input-search`, `p-input-tel`, `p-input-text`, `p-input-time` or `p-input-url`. */
9
10
  const PTextFieldWrapper = /*#__PURE__*/ react.forwardRef(({ actionIcon, actionLoading = false, description = '', hideLabel = false, label = '', message = '', onAction, showCharacterCount, showCounter = true, showPasswordToggle = true, state = 'none', submitButton = true, theme, unit = '', unitPosition = 'prefix', className, ...rest }, ref) => {
10
11
  const elementRef = react.useRef(undefined);
11
12
  hooks.useEventCallback(elementRef, 'action', onAction);
@@ -6,6 +6,7 @@ var react = require('react');
6
6
  var hooks = require('../../hooks.cjs');
7
7
  var utils = require('../../utils.cjs');
8
8
 
9
+ /** @deprecated since v3.29.0, will be removed with next major release. Please use `p-textarea` instead. */
9
10
  const PTextareaWrapper = /*#__PURE__*/ react.forwardRef(({ description = '', hideLabel = false, label = '', message = '', showCharacterCount, showCounter = true, state = 'none', theme, className, ...rest }, ref) => {
10
11
  const elementRef = react.useRef(undefined);
11
12
  const WebComponentTag = hooks.usePrefix('p-textarea-wrapper');
@@ -26,6 +26,7 @@ export type PCheckboxWrapperProps = BaseProps & {
26
26
  */
27
27
  theme?: Theme;
28
28
  };
29
+ /** @deprecated since v3.29.0, will be removed with next major release. Please use `p-checkbox` instead. */
29
30
  export declare const PCheckboxWrapper: import("react").ForwardRefExoticComponent<import("react").DOMAttributes<{}> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
30
31
  /**
31
32
  * Show or hide label. For better accessibility it's recommended to show the label.
@@ -4,6 +4,7 @@ import { forwardRef, useRef } from 'react';
4
4
  import { usePrefix, useTheme, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
5
5
  import { syncRef } from '../../utils.mjs';
6
6
 
7
+ /** @deprecated since v3.29.0, will be removed with next major release. Please use `p-checkbox` instead. */
7
8
  const PCheckboxWrapper = /*#__PURE__*/ forwardRef(({ hideLabel = false, label = '', loading = false, message = '', state = 'none', theme, className, ...rest }, ref) => {
8
9
  const elementRef = useRef(undefined);
9
10
  const WebComponentTag = usePrefix('p-checkbox-wrapper');
@@ -26,7 +26,7 @@ export type PFieldsetWrapperProps = BaseProps & {
26
26
  */
27
27
  theme?: Theme;
28
28
  };
29
- /** @deprecated since v3.0.0, will be removed with next major release. Please use "p-fieldset" instead. */
29
+ /** @deprecated since v3.0.0, will be removed with next major release. Please use `p-fieldset` instead. */
30
30
  export declare const PFieldsetWrapper: import("react").ForwardRefExoticComponent<import("react").DOMAttributes<{}> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
31
31
  /**
32
32
  * The label text.
@@ -4,7 +4,7 @@ import { forwardRef, useRef } from 'react';
4
4
  import { usePrefix, useTheme, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
5
5
  import { syncRef } from '../../utils.mjs';
6
6
 
7
- /** @deprecated since v3.0.0, will be removed with next major release. Please use "p-fieldset" instead. */
7
+ /** @deprecated since v3.0.0, will be removed with next major release. Please use `p-fieldset` instead. */
8
8
  const PFieldsetWrapper = /*#__PURE__*/ forwardRef(({ label = '', labelSize = 'medium', message = '', required = false, state = 'none', theme, className, ...rest }, ref) => {
9
9
  const elementRef = useRef(undefined);
10
10
  const WebComponentTag = usePrefix('p-fieldset-wrapper');
@@ -13,14 +13,6 @@ export type PPopoverProps = BaseProps & {
13
13
  * Preferred direction in which popover should open, given there is enough space in viewport. Otherwise, it will be opened in the direction with most available space.
14
14
  */
15
15
  direction?: PopoverDirection;
16
- /**
17
- * Emitted when the component requests to be dismissed.
18
- */
19
- onDismiss?: (event: CustomEvent<void>) => void;
20
- /**
21
- * If true, the popover is open.
22
- */
23
- open?: boolean;
24
16
  /**
25
17
  * Adapts the popover color depending on the theme.
26
18
  */
@@ -39,14 +31,6 @@ export declare const PPopover: import("react").ForwardRefExoticComponent<import(
39
31
  * Preferred direction in which popover should open, given there is enough space in viewport. Otherwise, it will be opened in the direction with most available space.
40
32
  */
41
33
  direction?: PopoverDirection;
42
- /**
43
- * Emitted when the component requests to be dismissed.
44
- */
45
- onDismiss?: (event: CustomEvent<void>) => void;
46
- /**
47
- * If true, the popover is open.
48
- */
49
- open?: boolean;
50
34
  /**
51
35
  * Adapts the popover color depending on the theme.
52
36
  */
@@ -1,17 +1,16 @@
1
1
  "use client";
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { forwardRef, useRef } from 'react';
4
- import { useEventCallback, usePrefix, useTheme, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
4
+ import { usePrefix, useTheme, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
5
5
  import { syncRef } from '../../utils.mjs';
6
6
 
7
- const PPopover = /*#__PURE__*/ forwardRef(({ aria, description, direction = 'bottom', onDismiss, open = false, theme, className, ...rest }, ref) => {
7
+ const PPopover = /*#__PURE__*/ forwardRef(({ aria, description, direction = 'bottom', theme, className, ...rest }, ref) => {
8
8
  const elementRef = useRef(undefined);
9
- useEventCallback(elementRef, 'dismiss', onDismiss);
10
9
  const WebComponentTag = usePrefix('p-popover');
11
- const propsToSync = [aria, description, direction, open, theme || useTheme()];
10
+ const propsToSync = [aria, description, direction, theme || useTheme()];
12
11
  useBrowserLayoutEffect(() => {
13
12
  const { current } = elementRef;
14
- ['aria', 'description', 'direction', 'open', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
13
+ ['aria', 'description', 'direction', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
15
14
  }, propsToSync);
16
15
  const props = {
17
16
  ...rest,
@@ -38,6 +38,7 @@ export type PSelectWrapperProps = BaseProps & {
38
38
  */
39
39
  theme?: Theme;
40
40
  };
41
+ /** @deprecated since v3.29.0, will be removed with next major release. Please use `p-select` instead. */
41
42
  export declare const PSelectWrapper: import("react").ForwardRefExoticComponent<import("react").DOMAttributes<{}> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
42
43
  /**
43
44
  * The description text.
@@ -4,6 +4,7 @@ import { forwardRef, useRef } from 'react';
4
4
  import { usePrefix, useTheme, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
5
5
  import { syncRef } from '../../utils.mjs';
6
6
 
7
+ /** @deprecated since v3.29.0, will be removed with next major release. Please use `p-select` instead. */
7
8
  const PSelectWrapper = /*#__PURE__*/ forwardRef(({ description = '', dropdownDirection = 'auto', filter = false, hideLabel = false, label = '', message = '', native = false, state = 'none', theme, className, ...rest }, ref) => {
8
9
  const elementRef = useRef(undefined);
9
10
  const WebComponentTag = usePrefix('p-select-wrapper');
@@ -62,6 +62,7 @@ export type PTextFieldWrapperProps = BaseProps & {
62
62
  */
63
63
  unitPosition?: TextFieldWrapperUnitPosition;
64
64
  };
65
+ /** @deprecated since v3.29.0, will be removed with next major release. Please use one of the specific input components instead: `p-input-date`, `p-input-email`, `p-input-number`, `p-input-password`, `p-input-search`, `p-input-tel`, `p-input-text`, `p-input-time` or `p-input-url`. */
65
66
  export declare const PTextFieldWrapper: import("react").ForwardRefExoticComponent<import("react").DOMAttributes<{}> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
66
67
  /**
67
68
  * Action icon can be set to `locate` for `input type="search"` in order to display an action button.
@@ -4,6 +4,7 @@ import { forwardRef, useRef } from 'react';
4
4
  import { useEventCallback, usePrefix, useTheme, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
5
5
  import { syncRef } from '../../utils.mjs';
6
6
 
7
+ /** @deprecated since v3.29.0, will be removed with next major release. Please use one of the specific input components instead: `p-input-date`, `p-input-email`, `p-input-number`, `p-input-password`, `p-input-search`, `p-input-tel`, `p-input-text`, `p-input-time` or `p-input-url`. */
7
8
  const PTextFieldWrapper = /*#__PURE__*/ forwardRef(({ actionIcon, actionLoading = false, description = '', hideLabel = false, label = '', message = '', onAction, showCharacterCount, showCounter = true, showPasswordToggle = true, state = 'none', submitButton = true, theme, unit = '', unitPosition = 'prefix', className, ...rest }, ref) => {
8
9
  const elementRef = useRef(undefined);
9
10
  useEventCallback(elementRef, 'action', onAction);
@@ -34,6 +34,7 @@ export type PTextareaWrapperProps = BaseProps & {
34
34
  */
35
35
  theme?: Theme;
36
36
  };
37
+ /** @deprecated since v3.29.0, will be removed with next major release. Please use `p-textarea` instead. */
37
38
  export declare const PTextareaWrapper: import("react").ForwardRefExoticComponent<import("react").DOMAttributes<{}> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
38
39
  /**
39
40
  * The description text.
@@ -4,6 +4,7 @@ import { forwardRef, useRef } from 'react';
4
4
  import { usePrefix, useTheme, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
5
5
  import { syncRef } from '../../utils.mjs';
6
6
 
7
+ /** @deprecated since v3.29.0, will be removed with next major release. Please use `p-textarea` instead. */
7
8
  const PTextareaWrapper = /*#__PURE__*/ forwardRef(({ description = '', hideLabel = false, label = '', message = '', showCharacterCount, showCounter = true, state = 'none', theme, className, ...rest }, ref) => {
8
9
  const elementRef = useRef(undefined);
9
10
  const WebComponentTag = usePrefix('p-textarea-wrapper');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@porsche-design-system/components-react",
3
- "version": "3.29.0-rc.4",
3
+ "version": "3.29.0",
4
4
  "description": "Porsche Design System is a component library designed to help developers create the best experience for software or services distributed by Dr. Ing. h.c. F. Porsche AG.",
5
5
  "keywords": [
6
6
  "porsche",
@@ -17,14 +17,15 @@
17
17
  "license": "SEE LICENSE IN LICENSE",
18
18
  "homepage": "https://designsystem.porsche.com",
19
19
  "dependencies": {
20
- "@porsche-design-system/components-js": "3.29.0-rc.4"
20
+ "@porsche-design-system/components-js": "3.29.0"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "ag-grid-community": ">= 33.0.0 <35.0.0",
24
24
  "ag-grid-enterprise": ">= 33.0.0 <35.0.0",
25
25
  "ag-grid-react": ">= 33.0.0 <35.0.0",
26
26
  "react": ">=19.0.0 <20.0.0",
27
- "react-dom": ">=19.0.0 <20.0.0"
27
+ "react-dom": ">=19.0.0 <20.0.0",
28
+ "tailwindcss": ">= 4.0.0 <5.0.0"
28
29
  },
29
30
  "peerDependenciesMeta": {
30
31
  "ag-grid-community": {
@@ -35,6 +36,9 @@
35
36
  },
36
37
  "ag-grid-react": {
37
38
  "optional": true
39
+ },
40
+ "tailwindcss": {
41
+ "optional": true
38
42
  }
39
43
  },
40
44
  "main": "cjs/public-api.cjs",
@@ -9256,6 +9256,9 @@ const getComponentCss$y = (theme) => {
9256
9256
  ...hostHiddenStyles,
9257
9257
  }),
9258
9258
  },
9259
+ 'slot[name="button"]': {
9260
+ display: 'block',
9261
+ },
9259
9262
  ...preventFoucOfNestedElementsStyles,
9260
9263
  p: {
9261
9264
  ...textSmallStyle,
@@ -7,6 +7,7 @@ var hooks = require('../../hooks.cjs');
7
7
  var utils = require('../../utils.cjs');
8
8
  var checkboxWrapper = require('../dsr-components/checkbox-wrapper.cjs');
9
9
 
10
+ /** @deprecated since v3.29.0, will be removed with next major release. Please use `p-checkbox` instead. */
10
11
  const PCheckboxWrapper = /*#__PURE__*/ react.forwardRef(({ hideLabel = false, label = '', loading = false, message = '', state = 'none', theme, className, children, ...rest }, ref) => {
11
12
  const elementRef = react.useRef(undefined);
12
13
  const WebComponentTag = hooks.usePrefix('p-checkbox-wrapper');
@@ -7,7 +7,7 @@ var hooks = require('../../hooks.cjs');
7
7
  var utils = require('../../utils.cjs');
8
8
  var fieldsetWrapper = require('../dsr-components/fieldset-wrapper.cjs');
9
9
 
10
- /** @deprecated since v3.0.0, will be removed with next major release. Please use "p-fieldset" instead. */
10
+ /** @deprecated since v3.0.0, will be removed with next major release. Please use `p-fieldset` instead. */
11
11
  const PFieldsetWrapper = /*#__PURE__*/ react.forwardRef(({ label = '', labelSize = 'medium', message = '', required = false, state = 'none', theme, className, children, ...rest }, ref) => {
12
12
  const elementRef = react.useRef(undefined);
13
13
  const WebComponentTag = hooks.usePrefix('p-fieldset-wrapper');
@@ -7,21 +7,20 @@ var hooks = require('../../hooks.cjs');
7
7
  var utils = require('../../utils.cjs');
8
8
  var popover = require('../dsr-components/popover.cjs');
9
9
 
10
- const PPopover = /*#__PURE__*/ react.forwardRef(({ aria, description, direction = 'bottom', onDismiss, open = false, theme, className, children, ...rest }, ref) => {
10
+ const PPopover = /*#__PURE__*/ react.forwardRef(({ aria, description, direction = 'bottom', theme, className, children, ...rest }, ref) => {
11
11
  const elementRef = react.useRef(undefined);
12
- hooks.useEventCallback(elementRef, 'dismiss', onDismiss);
13
12
  const WebComponentTag = hooks.usePrefix('p-popover');
14
- const propsToSync = [aria, description, direction, open, theme || hooks.useTheme()];
13
+ const propsToSync = [aria, description, direction, theme || hooks.useTheme()];
15
14
  hooks.useBrowserLayoutEffect(() => {
16
15
  const { current } = elementRef;
17
- ['aria', 'description', 'direction', 'open', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
16
+ ['aria', 'description', 'direction', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
18
17
  }, propsToSync);
19
18
  const props = {
20
19
  ...rest,
21
20
  // @ts-ignore
22
21
  ...(!process.browser
23
22
  ? {
24
- children: (jsxRuntime.jsx(popover.DSRPopover, { aria, description, direction, open, theme: theme || hooks.useTheme(), children })),
23
+ children: (jsxRuntime.jsx(popover.DSRPopover, { aria, description, direction, theme: theme || hooks.useTheme(), children })),
25
24
  }
26
25
  : {
27
26
  children,
@@ -7,6 +7,7 @@ var hooks = require('../../hooks.cjs');
7
7
  var utils = require('../../utils.cjs');
8
8
  var selectWrapper = require('../dsr-components/select-wrapper.cjs');
9
9
 
10
+ /** @deprecated since v3.29.0, will be removed with next major release. Please use `p-select` instead. */
10
11
  const PSelectWrapper = /*#__PURE__*/ react.forwardRef(({ description = '', dropdownDirection = 'auto', filter = false, hideLabel = false, label = '', message = '', native = false, state = 'none', theme, className, children, ...rest }, ref) => {
11
12
  const elementRef = react.useRef(undefined);
12
13
  const WebComponentTag = hooks.usePrefix('p-select-wrapper');
@@ -7,6 +7,7 @@ var hooks = require('../../hooks.cjs');
7
7
  var utils = require('../../utils.cjs');
8
8
  var textFieldWrapper = require('../dsr-components/text-field-wrapper.cjs');
9
9
 
10
+ /** @deprecated since v3.29.0, will be removed with next major release. Please use one of the specific input components instead: `p-input-date`, `p-input-email`, `p-input-number`, `p-input-password`, `p-input-search`, `p-input-tel`, `p-input-text`, `p-input-time` or `p-input-url`. */
10
11
  const PTextFieldWrapper = /*#__PURE__*/ react.forwardRef(({ actionIcon, actionLoading = false, description = '', hideLabel = false, label = '', message = '', onAction, showCharacterCount, showCounter = true, showPasswordToggle = true, state = 'none', submitButton = true, theme, unit = '', unitPosition = 'prefix', className, children, ...rest }, ref) => {
11
12
  const elementRef = react.useRef(undefined);
12
13
  hooks.useEventCallback(elementRef, 'action', onAction);
@@ -7,6 +7,7 @@ var hooks = require('../../hooks.cjs');
7
7
  var utils = require('../../utils.cjs');
8
8
  var textareaWrapper = require('../dsr-components/textarea-wrapper.cjs');
9
9
 
10
+ /** @deprecated since v3.29.0, will be removed with next major release. Please use `p-textarea` instead. */
10
11
  const PTextareaWrapper = /*#__PURE__*/ react.forwardRef(({ description = '', hideLabel = false, label = '', message = '', showCharacterCount, showCounter = true, state = 'none', theme, className, children, ...rest }, ref) => {
11
12
  const elementRef = react.useRef(undefined);
12
13
  const WebComponentTag = hooks.usePrefix('p-textarea-wrapper');
@@ -15,6 +15,8 @@ var spinner_wrapper = require('../components/spinner.wrapper.cjs');
15
15
  * @slot {"name": "label", "description": "Shows a label. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
16
16
  * @slot {"name": "", "description": "Default slot for the input." }
17
17
  * @slot {"name": "message", "description": "Shows a state message. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
18
+ *
19
+ * @deprecated since v3.29.0, will be removed with next major release. Please use `p-checkbox` instead.
18
20
  */
19
21
  class DSRCheckboxWrapper extends react.Component {
20
22
  host;
@@ -13,7 +13,7 @@ var required = require('./required.cjs');
13
13
  * @slot {"name": "", "description": "Default slot for the main content." }
14
14
  * @slot {"name": "message", "description": "Shows a state message. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
15
15
  *
16
- * @deprecated since v3.0.0, will be removed with next major release. Please use "p-fieldset" instead.
16
+ * @deprecated since v3.0.0, will be removed with next major release. Please use `p-fieldset` instead.
17
17
  */
18
18
  class DSRFieldsetWrapper extends react.Component {
19
19
  host;
@@ -15,23 +15,23 @@ var icon_wrapper = require('../components/icon.wrapper.cjs');
15
15
  */
16
16
  class DSRPopover extends react.Component {
17
17
  host;
18
+ isOpen = false;
18
19
  popover;
19
20
  button;
20
21
  slottedButton;
21
22
  arrow;
22
23
  cleanUpAutoUpdate;
23
24
  hasNativePopoverSupport = utilsEntry.getHasNativePopoverSupport();
25
+ // TODO: This should be updated when slot is changed
24
26
  hasSlottedButton;
25
27
  render() {
26
28
  const { namedSlotChildren} = splitChildren.splitChildren(this.props.children);
27
29
  const hasSlottedButton = namedSlotChildren.filter(({ props: { slot } }) => slot === 'button').length > 0;
28
30
  const style = minifyCss.minifyCss(stylesEntry.getPopoverCss(this.props.theme).replace(/(:host {[\S\s]+?})[\S\s]+(button {[\S\s]+?})[\S\s]+(.icon {[\S\s]+?})[\S\s]+(.label {[\S\s]+?})[\S\s]+/, '$1\n$2\n$3\n$4'));
29
- return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [hasSlottedButton ? (jsxRuntime.jsx("div", { children: jsxRuntime.jsx("slot", { name: "button" }) })) : (jsxRuntime.jsxs("button", { type: "button", ...utilsEntry.parseAndGetAriaAttributes({
31
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [hasSlottedButton ? (jsxRuntime.jsx("slot", { name: "button" })) : (jsxRuntime.jsxs("button", { type: "button", ...utilsEntry.parseAndGetAriaAttributes({
30
32
  ...utilsEntry.parseAndGetAriaAttributes(this.props.aria),
31
- ...{ 'aria-expanded': this.props.open },
32
- }), children: [jsxRuntime.jsx(icon_wrapper.PIcon, { className: "icon", name: "information", theme: this.props.theme }), jsxRuntime.jsx("span", { className: "label", children: "More information" })] })), this.props.open && (jsxRuntime.jsxs("div", { popover: "auto", onToggle: (e) => {
33
- this.props.onTogglePopover(e);
34
- }, children: [jsxRuntime.jsx("div", { className: "arrow" }), jsxRuntime.jsx("div", { className: "content", children: this.props.description ? jsxRuntime.jsx("p", { children: this.props.description }) : jsxRuntime.jsx("slot", {}) })] }))] })] }), this.props.children] }));
33
+ ...{ 'aria-expanded': this.props.isOpen },
34
+ }), children: [jsxRuntime.jsx(icon_wrapper.PIcon, { className: "icon", name: "information", theme: this.props.theme }), jsxRuntime.jsx("span", { className: "label", children: "More information" })] })), this.props.isOpen && (jsxRuntime.jsxs("div", { popover: "auto", children: [jsxRuntime.jsx("div", { className: "arrow" }), jsxRuntime.jsx("div", { className: "content", children: this.props.description ? jsxRuntime.jsx("p", { children: this.props.description }) : jsxRuntime.jsx("slot", {}) })] }))] })] }), this.props.children] }));
35
35
  }
36
36
  }
37
37
 
@@ -17,6 +17,8 @@ var selectWrapperDropdown_wrapper = require('../components/select-wrapper-dropdo
17
17
  * @slot {"name": "description", "description": "Shows a description. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
18
18
  * @slot {"name": "", "description": "Default slot for the `select` tag." }
19
19
  * @slot {"name": "message", "description": "Shows a state message. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
20
+ *
21
+ * @deprecated since v3.29.0, will be removed with next major release. Please use `p-select` instead.
20
22
  */
21
23
  class DSRSelectWrapper extends react.Component {
22
24
  host;
@@ -17,6 +17,8 @@ var icon_wrapper = require('../components/icon.wrapper.cjs');
17
17
  * @slot {"name": "description", "description": "Shows a description. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
18
18
  * @slot {"name": "", "description": "Default slot for the input." }
19
19
  * @slot {"name": "message", "description": "Shows a state message. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
20
+ *
21
+ * @deprecated since v3.29.0, will be removed with next major release. Please use one of the specific input components instead: `p-input-date`, `p-input-email`, `p-input-number`, `p-input-password`, `p-input-search`, `p-input-tel`, `p-input-text`, `p-input-time` or `p-input-url`.
20
22
  */
21
23
  class DSRTextFieldWrapper extends react.Component {
22
24
  host;
@@ -13,6 +13,8 @@ var stateMessage = require('./state-message.cjs');
13
13
  * @slot {"name": "description", "description": "Shows a description. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
14
14
  * @slot {"name": "", "description": "Default slot for the textarea." }
15
15
  * @slot {"name": "message", "description": "Shows a state message. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
16
+ *
17
+ * @deprecated since v3.29.0, will be removed with next major release. Please use `p-textarea` instead.
16
18
  */
17
19
  class DSRTextareaWrapper extends react.Component {
18
20
  host;
@@ -9254,6 +9254,9 @@ const getComponentCss$y = (theme) => {
9254
9254
  ...hostHiddenStyles,
9255
9255
  }),
9256
9256
  },
9257
+ 'slot[name="button"]': {
9258
+ display: 'block',
9259
+ },
9257
9260
  ...preventFoucOfNestedElementsStyles,
9258
9261
  p: {
9259
9262
  ...textSmallStyle,
@@ -5,6 +5,7 @@ import { usePrefix, useTheme, useBrowserLayoutEffect, useMergedClass } from '../
5
5
  import { syncRef } from '../../utils.mjs';
6
6
  import { DSRCheckboxWrapper } from '../dsr-components/checkbox-wrapper.mjs';
7
7
 
8
+ /** @deprecated since v3.29.0, will be removed with next major release. Please use `p-checkbox` instead. */
8
9
  const PCheckboxWrapper = /*#__PURE__*/ forwardRef(({ hideLabel = false, label = '', loading = false, message = '', state = 'none', theme, className, children, ...rest }, ref) => {
9
10
  const elementRef = useRef(undefined);
10
11
  const WebComponentTag = usePrefix('p-checkbox-wrapper');
@@ -5,7 +5,7 @@ import { usePrefix, useTheme, useBrowserLayoutEffect, useMergedClass } from '../
5
5
  import { syncRef } from '../../utils.mjs';
6
6
  import { DSRFieldsetWrapper } from '../dsr-components/fieldset-wrapper.mjs';
7
7
 
8
- /** @deprecated since v3.0.0, will be removed with next major release. Please use "p-fieldset" instead. */
8
+ /** @deprecated since v3.0.0, will be removed with next major release. Please use `p-fieldset` instead. */
9
9
  const PFieldsetWrapper = /*#__PURE__*/ forwardRef(({ label = '', labelSize = 'medium', message = '', required = false, state = 'none', theme, className, children, ...rest }, ref) => {
10
10
  const elementRef = useRef(undefined);
11
11
  const WebComponentTag = usePrefix('p-fieldset-wrapper');
@@ -1,25 +1,24 @@
1
1
  "use client";
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { forwardRef, useRef } from 'react';
4
- import { useEventCallback, usePrefix, useTheme, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
4
+ import { usePrefix, useTheme, useBrowserLayoutEffect, useMergedClass } from '../../hooks.mjs';
5
5
  import { syncRef } from '../../utils.mjs';
6
6
  import { DSRPopover } from '../dsr-components/popover.mjs';
7
7
 
8
- const PPopover = /*#__PURE__*/ forwardRef(({ aria, description, direction = 'bottom', onDismiss, open = false, theme, className, children, ...rest }, ref) => {
8
+ const PPopover = /*#__PURE__*/ forwardRef(({ aria, description, direction = 'bottom', theme, className, children, ...rest }, ref) => {
9
9
  const elementRef = useRef(undefined);
10
- useEventCallback(elementRef, 'dismiss', onDismiss);
11
10
  const WebComponentTag = usePrefix('p-popover');
12
- const propsToSync = [aria, description, direction, open, theme || useTheme()];
11
+ const propsToSync = [aria, description, direction, theme || useTheme()];
13
12
  useBrowserLayoutEffect(() => {
14
13
  const { current } = elementRef;
15
- ['aria', 'description', 'direction', 'open', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
14
+ ['aria', 'description', 'direction', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
16
15
  }, propsToSync);
17
16
  const props = {
18
17
  ...rest,
19
18
  // @ts-ignore
20
19
  ...(!process.browser
21
20
  ? {
22
- children: (jsx(DSRPopover, { aria, description, direction, open, theme: theme || useTheme(), children })),
21
+ children: (jsx(DSRPopover, { aria, description, direction, theme: theme || useTheme(), children })),
23
22
  }
24
23
  : {
25
24
  children,
@@ -5,6 +5,7 @@ import { usePrefix, useTheme, useBrowserLayoutEffect, useMergedClass } from '../
5
5
  import { syncRef } from '../../utils.mjs';
6
6
  import { DSRSelectWrapper } from '../dsr-components/select-wrapper.mjs';
7
7
 
8
+ /** @deprecated since v3.29.0, will be removed with next major release. Please use `p-select` instead. */
8
9
  const PSelectWrapper = /*#__PURE__*/ forwardRef(({ description = '', dropdownDirection = 'auto', filter = false, hideLabel = false, label = '', message = '', native = false, state = 'none', theme, className, children, ...rest }, ref) => {
9
10
  const elementRef = useRef(undefined);
10
11
  const WebComponentTag = usePrefix('p-select-wrapper');
@@ -5,6 +5,7 @@ import { useEventCallback, usePrefix, useTheme, useBrowserLayoutEffect, useMerge
5
5
  import { syncRef } from '../../utils.mjs';
6
6
  import { DSRTextFieldWrapper } from '../dsr-components/text-field-wrapper.mjs';
7
7
 
8
+ /** @deprecated since v3.29.0, will be removed with next major release. Please use one of the specific input components instead: `p-input-date`, `p-input-email`, `p-input-number`, `p-input-password`, `p-input-search`, `p-input-tel`, `p-input-text`, `p-input-time` or `p-input-url`. */
8
9
  const PTextFieldWrapper = /*#__PURE__*/ forwardRef(({ actionIcon, actionLoading = false, description = '', hideLabel = false, label = '', message = '', onAction, showCharacterCount, showCounter = true, showPasswordToggle = true, state = 'none', submitButton = true, theme, unit = '', unitPosition = 'prefix', className, children, ...rest }, ref) => {
9
10
  const elementRef = useRef(undefined);
10
11
  useEventCallback(elementRef, 'action', onAction);
@@ -5,6 +5,7 @@ import { usePrefix, useTheme, useBrowserLayoutEffect, useMergedClass } from '../
5
5
  import { syncRef } from '../../utils.mjs';
6
6
  import { DSRTextareaWrapper } from '../dsr-components/textarea-wrapper.mjs';
7
7
 
8
+ /** @deprecated since v3.29.0, will be removed with next major release. Please use `p-textarea` instead. */
8
9
  const PTextareaWrapper = /*#__PURE__*/ forwardRef(({ description = '', hideLabel = false, label = '', message = '', showCharacterCount, showCounter = true, state = 'none', theme, className, children, ...rest }, ref) => {
9
10
  const elementRef = useRef(undefined);
10
11
  const WebComponentTag = usePrefix('p-textarea-wrapper');
@@ -13,6 +13,8 @@ import { PSpinner } from '../components/spinner.wrapper.mjs';
13
13
  * @slot {"name": "label", "description": "Shows a label. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
14
14
  * @slot {"name": "", "description": "Default slot for the input." }
15
15
  * @slot {"name": "message", "description": "Shows a state message. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
16
+ *
17
+ * @deprecated since v3.29.0, will be removed with next major release. Please use `p-checkbox` instead.
16
18
  */
17
19
  class DSRCheckboxWrapper extends Component {
18
20
  host;
@@ -11,7 +11,7 @@ import { Required } from './required.mjs';
11
11
  * @slot {"name": "", "description": "Default slot for the main content." }
12
12
  * @slot {"name": "message", "description": "Shows a state message. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
13
13
  *
14
- * @deprecated since v3.0.0, will be removed with next major release. Please use "p-fieldset" instead.
14
+ * @deprecated since v3.0.0, will be removed with next major release. Please use `p-fieldset` instead.
15
15
  */
16
16
  class DSRFieldsetWrapper extends Component {
17
17
  host;
@@ -13,23 +13,23 @@ import { PIcon } from '../components/icon.wrapper.mjs';
13
13
  */
14
14
  class DSRPopover extends Component {
15
15
  host;
16
+ isOpen = false;
16
17
  popover;
17
18
  button;
18
19
  slottedButton;
19
20
  arrow;
20
21
  cleanUpAutoUpdate;
21
22
  hasNativePopoverSupport = getHasNativePopoverSupport();
23
+ // TODO: This should be updated when slot is changed
22
24
  hasSlottedButton;
23
25
  render() {
24
26
  const { namedSlotChildren} = splitChildren(this.props.children);
25
27
  const hasSlottedButton = namedSlotChildren.filter(({ props: { slot } }) => slot === 'button').length > 0;
26
28
  const style = minifyCss(getComponentCss$y(this.props.theme).replace(/(:host {[\S\s]+?})[\S\s]+(button {[\S\s]+?})[\S\s]+(.icon {[\S\s]+?})[\S\s]+(.label {[\S\s]+?})[\S\s]+/, '$1\n$2\n$3\n$4'));
27
- return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [hasSlottedButton ? (jsx("div", { children: jsx("slot", { name: "button" }) })) : (jsxs("button", { type: "button", ...parseAndGetAriaAttributes({
29
+ return (jsxs(Fragment, { children: [jsxs("template", { shadowroot: "open", shadowrootmode: "open", children: [jsx("style", { dangerouslySetInnerHTML: { __html: style } }), jsxs(Fragment, { children: [hasSlottedButton ? (jsx("slot", { name: "button" })) : (jsxs("button", { type: "button", ...parseAndGetAriaAttributes({
28
30
  ...parseAndGetAriaAttributes(this.props.aria),
29
- ...{ 'aria-expanded': this.props.open },
30
- }), children: [jsx(PIcon, { className: "icon", name: "information", theme: this.props.theme }), jsx("span", { className: "label", children: "More information" })] })), this.props.open && (jsxs("div", { popover: "auto", onToggle: (e) => {
31
- this.props.onTogglePopover(e);
32
- }, children: [jsx("div", { className: "arrow" }), jsx("div", { className: "content", children: this.props.description ? jsx("p", { children: this.props.description }) : jsx("slot", {}) })] }))] })] }), this.props.children] }));
31
+ ...{ 'aria-expanded': this.props.isOpen },
32
+ }), children: [jsx(PIcon, { className: "icon", name: "information", theme: this.props.theme }), jsx("span", { className: "label", children: "More information" })] })), this.props.isOpen && (jsxs("div", { popover: "auto", children: [jsx("div", { className: "arrow" }), jsx("div", { className: "content", children: this.props.description ? jsx("p", { children: this.props.description }) : jsx("slot", {}) })] }))] })] }), this.props.children] }));
33
33
  }
34
34
  }
35
35
 
@@ -15,6 +15,8 @@ import { PSelectWrapperDropdown } from '../components/select-wrapper-dropdown.wr
15
15
  * @slot {"name": "description", "description": "Shows a description. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
16
16
  * @slot {"name": "", "description": "Default slot for the `select` tag." }
17
17
  * @slot {"name": "message", "description": "Shows a state message. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
18
+ *
19
+ * @deprecated since v3.29.0, will be removed with next major release. Please use `p-select` instead.
18
20
  */
19
21
  class DSRSelectWrapper extends Component {
20
22
  host;
@@ -15,6 +15,8 @@ import { PIcon } from '../components/icon.wrapper.mjs';
15
15
  * @slot {"name": "description", "description": "Shows a description. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
16
16
  * @slot {"name": "", "description": "Default slot for the input." }
17
17
  * @slot {"name": "message", "description": "Shows a state message. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
18
+ *
19
+ * @deprecated since v3.29.0, will be removed with next major release. Please use one of the specific input components instead: `p-input-date`, `p-input-email`, `p-input-number`, `p-input-password`, `p-input-search`, `p-input-tel`, `p-input-text`, `p-input-time` or `p-input-url`.
18
20
  */
19
21
  class DSRTextFieldWrapper extends Component {
20
22
  host;
@@ -11,6 +11,8 @@ import { StateMessage } from './state-message.mjs';
11
11
  * @slot {"name": "description", "description": "Shows a description. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
12
12
  * @slot {"name": "", "description": "Default slot for the textarea." }
13
13
  * @slot {"name": "message", "description": "Shows a state message. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
14
+ *
15
+ * @deprecated since v3.29.0, will be removed with next major release. Please use `p-textarea` instead.
14
16
  */
15
17
  class DSRTextareaWrapper extends Component {
16
18
  host;
@@ -26,6 +26,7 @@ export type PCheckboxWrapperProps = BaseProps & {
26
26
  */
27
27
  theme?: Theme;
28
28
  };
29
+ /** @deprecated since v3.29.0, will be removed with next major release. Please use `p-checkbox` instead. */
29
30
  export declare const PCheckboxWrapper: import("react").ForwardRefExoticComponent<import("react").DOMAttributes<{}> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
30
31
  /**
31
32
  * Show or hide label. For better accessibility it's recommended to show the label.
@@ -26,7 +26,7 @@ export type PFieldsetWrapperProps = BaseProps & {
26
26
  */
27
27
  theme?: Theme;
28
28
  };
29
- /** @deprecated since v3.0.0, will be removed with next major release. Please use "p-fieldset" instead. */
29
+ /** @deprecated since v3.0.0, will be removed with next major release. Please use `p-fieldset` instead. */
30
30
  export declare const PFieldsetWrapper: import("react").ForwardRefExoticComponent<import("react").DOMAttributes<{}> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
31
31
  /**
32
32
  * The label text.
@@ -13,14 +13,6 @@ export type PPopoverProps = BaseProps & {
13
13
  * Preferred direction in which popover should open, given there is enough space in viewport. Otherwise, it will be opened in the direction with most available space.
14
14
  */
15
15
  direction?: PopoverDirection;
16
- /**
17
- * Emitted when the component requests to be dismissed.
18
- */
19
- onDismiss?: (event: CustomEvent<void>) => void;
20
- /**
21
- * If true, the popover is open.
22
- */
23
- open?: boolean;
24
16
  /**
25
17
  * Adapts the popover color depending on the theme.
26
18
  */
@@ -39,14 +31,6 @@ export declare const PPopover: import("react").ForwardRefExoticComponent<import(
39
31
  * Preferred direction in which popover should open, given there is enough space in viewport. Otherwise, it will be opened in the direction with most available space.
40
32
  */
41
33
  direction?: PopoverDirection;
42
- /**
43
- * Emitted when the component requests to be dismissed.
44
- */
45
- onDismiss?: (event: CustomEvent<void>) => void;
46
- /**
47
- * If true, the popover is open.
48
- */
49
- open?: boolean;
50
34
  /**
51
35
  * Adapts the popover color depending on the theme.
52
36
  */
@@ -38,6 +38,7 @@ export type PSelectWrapperProps = BaseProps & {
38
38
  */
39
39
  theme?: Theme;
40
40
  };
41
+ /** @deprecated since v3.29.0, will be removed with next major release. Please use `p-select` instead. */
41
42
  export declare const PSelectWrapper: import("react").ForwardRefExoticComponent<import("react").DOMAttributes<{}> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
42
43
  /**
43
44
  * The description text.
@@ -62,6 +62,7 @@ export type PTextFieldWrapperProps = BaseProps & {
62
62
  */
63
63
  unitPosition?: TextFieldWrapperUnitPosition;
64
64
  };
65
+ /** @deprecated since v3.29.0, will be removed with next major release. Please use one of the specific input components instead: `p-input-date`, `p-input-email`, `p-input-number`, `p-input-password`, `p-input-search`, `p-input-tel`, `p-input-text`, `p-input-time` or `p-input-url`. */
65
66
  export declare const PTextFieldWrapper: import("react").ForwardRefExoticComponent<import("react").DOMAttributes<{}> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
66
67
  /**
67
68
  * Action icon can be set to `locate` for `input type="search"` in order to display an action button.
@@ -34,6 +34,7 @@ export type PTextareaWrapperProps = BaseProps & {
34
34
  */
35
35
  theme?: Theme;
36
36
  };
37
+ /** @deprecated since v3.29.0, will be removed with next major release. Please use `p-textarea` instead. */
37
38
  export declare const PTextareaWrapper: import("react").ForwardRefExoticComponent<import("react").DOMAttributes<{}> & Pick<import("react").HTMLAttributes<{}>, "suppressHydrationWarning" | "autoFocus" | "className" | "dir" | "hidden" | "id" | "inert" | "lang" | "slot" | "style" | "tabIndex" | "title" | "translate" | "role"> & {
38
39
  /**
39
40
  * The description text.
@@ -3,6 +3,8 @@ import { Component } from 'react';
3
3
  * @slot {"name": "label", "description": "Shows a label. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
4
4
  * @slot {"name": "", "description": "Default slot for the input." }
5
5
  * @slot {"name": "message", "description": "Shows a state message. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
6
+ *
7
+ * @deprecated since v3.29.0, will be removed with next major release. Please use `p-checkbox` instead.
6
8
  */
7
9
  export declare class DSRCheckboxWrapper extends Component<any> {
8
10
  host: HTMLElement;
@@ -4,7 +4,7 @@ import { Component } from 'react';
4
4
  * @slot {"name": "", "description": "Default slot for the main content." }
5
5
  * @slot {"name": "message", "description": "Shows a state message. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
6
6
  *
7
- * @deprecated since v3.0.0, will be removed with next major release. Please use "p-fieldset" instead.
7
+ * @deprecated since v3.0.0, will be removed with next major release. Please use `p-fieldset` instead.
8
8
  */
9
9
  export declare class DSRFieldsetWrapper extends Component<any> {
10
10
  host: HTMLElement;
@@ -5,6 +5,7 @@ import { Component } from 'react';
5
5
  */
6
6
  export declare class DSRPopover extends Component<any> {
7
7
  host: HTMLElement;
8
+ private isOpen;
8
9
  private popover;
9
10
  private button;
10
11
  private slottedButton;
@@ -4,6 +4,8 @@ import { Component } from 'react';
4
4
  * @slot {"name": "description", "description": "Shows a description. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
5
5
  * @slot {"name": "", "description": "Default slot for the `select` tag." }
6
6
  * @slot {"name": "message", "description": "Shows a state message. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
7
+ *
8
+ * @deprecated since v3.29.0, will be removed with next major release. Please use `p-select` instead.
7
9
  */
8
10
  export declare class DSRSelectWrapper extends Component<any> {
9
11
  host: HTMLElement;
@@ -4,6 +4,8 @@ import { Component } from 'react';
4
4
  * @slot {"name": "description", "description": "Shows a description. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
5
5
  * @slot {"name": "", "description": "Default slot for the input." }
6
6
  * @slot {"name": "message", "description": "Shows a state message. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
7
+ *
8
+ * @deprecated since v3.29.0, will be removed with next major release. Please use one of the specific input components instead: `p-input-date`, `p-input-email`, `p-input-number`, `p-input-password`, `p-input-search`, `p-input-tel`, `p-input-text`, `p-input-time` or `p-input-url`.
7
9
  */
8
10
  export declare class DSRTextFieldWrapper extends Component<any> {
9
11
  host: HTMLElement;
@@ -4,6 +4,8 @@ import { Component } from 'react';
4
4
  * @slot {"name": "description", "description": "Shows a description. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
5
5
  * @slot {"name": "", "description": "Default slot for the textarea." }
6
6
  * @slot {"name": "message", "description": "Shows a state message. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." }
7
+ *
8
+ * @deprecated since v3.29.0, will be removed with next major release. Please use `p-textarea` instead.
7
9
  */
8
10
  export declare class DSRTextareaWrapper extends Component<any> {
9
11
  host: HTMLElement;