@pine-ds/core 3.5.1 → 3.6.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.
- package/components/mock-pds-modal.js +9 -4
- package/components/mock-pds-modal.js.map +1 -1
- package/components/pds-box2.js +164 -4
- package/components/pds-box2.js.map +1 -1
- package/components/pds-button2.js +51 -2
- package/components/pds-button2.js.map +1 -1
- package/components/pds-modal-content.js +128 -11
- package/components/pds-modal-content.js.map +1 -1
- package/components/pds-modal.js +13 -3
- package/components/pds-modal.js.map +1 -1
- package/components/pds-row.js +8 -2
- package/components/pds-row.js.map +1 -1
- package/components/pds-textarea.js +111 -7
- package/components/pds-textarea.js.map +1 -1
- package/components/pds-toast.js +3 -3
- package/components/pds-tooltip.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mock-pds-modal.cjs.entry.js +8 -4
- package/dist/cjs/mock-pds-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/mock-pds-modal.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-box.cjs.entry.js +82 -2
- package/dist/cjs/pds-box.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-box.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-button.cjs.entry.js +50 -1
- package/dist/cjs/pds-button.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-button.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-modal-content.cjs.entry.js +128 -11
- package/dist/cjs/pds-modal-content.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-modal-content.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-modal.cjs.entry.js +12 -3
- package/dist/cjs/pds-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-modal.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-row.cjs.entry.js +6 -2
- package/dist/cjs/pds-row.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-row.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-textarea.cjs.entry.js +108 -6
- package/dist/cjs/pds-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-textarea.entry.cjs.js.map +1 -1
- package/dist/cjs/pds-toast.cjs.entry.js +3 -3
- package/dist/cjs/pds-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/pine-core.cjs.js +1 -1
- package/dist/collection/components/pds-box/pds-box.css +1607 -3
- package/dist/collection/components/pds-box/pds-box.js +2222 -127
- package/dist/collection/components/pds-box/pds-box.js.map +1 -1
- package/dist/collection/components/pds-button/pds-button.js +59 -1
- package/dist/collection/components/pds-button/pds-button.js.map +1 -1
- package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.css +4 -6
- package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js +128 -11
- package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js.map +1 -1
- package/dist/collection/components/pds-modal/pds-modal.css +42 -1
- package/dist/collection/components/pds-modal/pds-modal.js +34 -2
- package/dist/collection/components/pds-modal/pds-modal.js.map +1 -1
- package/dist/collection/components/pds-modal/stories/pds-modal.stories.js +245 -0
- package/dist/collection/components/pds-modal/test/mock-pds-modal.js +30 -3
- package/dist/collection/components/pds-modal/test/mock-pds-modal.js.map +1 -1
- package/dist/collection/components/pds-row/pds-row.js +56 -2
- package/dist/collection/components/pds-row/pds-row.js.map +1 -1
- package/dist/collection/components/pds-textarea/pds-textarea.css +51 -11
- package/dist/collection/components/pds-textarea/pds-textarea.js +127 -4
- package/dist/collection/components/pds-textarea/pds-textarea.js.map +1 -1
- package/dist/collection/components/pds-textarea/stories/pds-textarea.stories.js +13 -0
- package/dist/collection/components/pds-toast/pds-toast.js +3 -3
- package/dist/collection/components/pds-tooltip/pds-tooltip.js +2 -2
- package/dist/docs.json +4845 -447
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mock-pds-modal.entry.js +8 -4
- package/dist/esm/mock-pds-modal.entry.js.map +1 -1
- package/dist/esm/pds-box.entry.js +82 -2
- package/dist/esm/pds-box.entry.js.map +1 -1
- package/dist/esm/pds-button.entry.js +50 -1
- package/dist/esm/pds-button.entry.js.map +1 -1
- package/dist/esm/pds-modal-content.entry.js +128 -11
- package/dist/esm/pds-modal-content.entry.js.map +1 -1
- package/dist/esm/pds-modal.entry.js +12 -3
- package/dist/esm/pds-modal.entry.js.map +1 -1
- package/dist/esm/pds-row.entry.js +6 -2
- package/dist/esm/pds-row.entry.js.map +1 -1
- package/dist/esm/pds-textarea.entry.js +108 -6
- package/dist/esm/pds-textarea.entry.js.map +1 -1
- package/dist/esm/pds-toast.entry.js +3 -3
- package/dist/esm/pds-tooltip.entry.js +2 -2
- package/dist/esm/pine-core.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mock-pds-modal.entry.js +1 -1
- package/dist/esm-es5/mock-pds-modal.entry.js.map +1 -1
- package/dist/esm-es5/pds-box.entry.js +1 -1
- package/dist/esm-es5/pds-box.entry.js.map +1 -1
- package/dist/esm-es5/pds-button.entry.js +1 -1
- package/dist/esm-es5/pds-button.entry.js.map +1 -1
- package/dist/esm-es5/pds-modal-content.entry.js +1 -1
- package/dist/esm-es5/pds-modal-content.entry.js.map +1 -1
- package/dist/esm-es5/pds-modal.entry.js +1 -1
- package/dist/esm-es5/pds-modal.entry.js.map +1 -1
- package/dist/esm-es5/pds-row.entry.js +1 -1
- package/dist/esm-es5/pds-row.entry.js.map +1 -1
- package/dist/esm-es5/pds-textarea.entry.js +1 -1
- package/dist/esm-es5/pds-textarea.entry.js.map +1 -1
- package/dist/esm-es5/pds-toast.entry.js +1 -1
- package/dist/esm-es5/pds-tooltip.entry.js +1 -1
- package/dist/esm-es5/pine-core.js +1 -1
- package/dist/pine-core/mock-pds-modal.entry.esm.js.map +1 -1
- package/dist/pine-core/p-318fd0cf.entry.js +2 -0
- package/dist/pine-core/p-318fd0cf.entry.js.map +1 -0
- package/dist/pine-core/{p-c4d6fe50.system.entry.js → p-346561a6.system.entry.js} +2 -2
- package/dist/pine-core/p-346561a6.system.entry.js.map +1 -0
- package/dist/pine-core/p-3gYSFJIn.system.js.map +1 -0
- package/dist/pine-core/{p-IG5YumI3.system.js.map → p-3pEJO0vO.system.js.map} +1 -1
- package/dist/pine-core/p-41d1b164.entry.js +2 -0
- package/dist/pine-core/p-41d1b164.entry.js.map +1 -0
- package/dist/pine-core/{p-02326ac3.entry.js → p-4c81420c.entry.js} +2 -2
- package/dist/pine-core/p-52cb152b.system.entry.js +2 -0
- package/dist/pine-core/p-52cb152b.system.entry.js.map +1 -0
- package/dist/pine-core/p-540cfd70.entry.js +2 -0
- package/dist/pine-core/p-540cfd70.entry.js.map +1 -0
- package/dist/pine-core/{p-11d4036e.entry.js → p-5f5b19f4.entry.js} +2 -2
- package/dist/pine-core/p-6d4d4705.system.entry.js +2 -0
- package/dist/pine-core/p-6d4d4705.system.entry.js.map +1 -0
- package/dist/pine-core/{p-68b5665a.entry.js → p-84949a12.entry.js} +2 -2
- package/dist/pine-core/p-84949a12.entry.js.map +1 -0
- package/dist/pine-core/{p-7a95a90f.system.entry.js → p-8726c99d.system.entry.js} +2 -2
- package/dist/pine-core/{p-2kXtbFXu.system.js.map → p-BZoPY2dP.system.js.map} +1 -1
- package/dist/pine-core/p-C0zqu7Gr.system.js.map +1 -0
- package/dist/pine-core/p-CHJgq_z7.system.js.map +1 -0
- package/dist/pine-core/p-Co5XZmTN.system.js.map +1 -0
- package/dist/pine-core/p-Czoq9yJM.system.js.map +1 -0
- package/dist/pine-core/p-De9tROL-.system.js +1 -1
- package/dist/pine-core/p-EYhpJx2s.system.js.map +1 -0
- package/dist/pine-core/p-WkrM7Vv0.system.js.map +1 -0
- package/dist/pine-core/p-a9895385.system.entry.js +2 -0
- package/dist/pine-core/p-a9895385.system.entry.js.map +1 -0
- package/dist/pine-core/{p-5aed29fe.system.entry.js → p-b2b1b7a9.system.entry.js} +2 -2
- package/dist/pine-core/p-b2b1b7a9.system.entry.js.map +1 -0
- package/dist/pine-core/p-c0df3222.entry.js +2 -0
- package/dist/pine-core/p-c0df3222.entry.js.map +1 -0
- package/dist/pine-core/{p-884b9ae6.system.entry.js → p-d8d8fe07.system.entry.js} +2 -2
- package/dist/pine-core/p-dc19ce6c.system.entry.js +2 -0
- package/dist/pine-core/p-dc19ce6c.system.entry.js.map +1 -0
- package/dist/pine-core/p-e08f492a.entry.js +2 -0
- package/dist/pine-core/p-e08f492a.entry.js.map +1 -0
- package/dist/pine-core/{p-79e2782b.entry.js → p-ecb9edf8.entry.js} +2 -2
- package/dist/pine-core/p-ecb9edf8.entry.js.map +1 -0
- package/dist/pine-core/p-fcb39155.system.entry.js +2 -0
- package/dist/pine-core/p-fcb39155.system.entry.js.map +1 -0
- package/dist/pine-core/pds-box.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-button.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-modal-content.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-modal.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-row.entry.esm.js.map +1 -1
- package/dist/pine-core/pds-textarea.entry.esm.js.map +1 -1
- package/dist/pine-core/pine-core.esm.js +1 -1
- package/dist/types/components/pds-box/pds-box.d.ts +393 -3
- package/dist/types/components/pds-button/pds-button.d.ts +4 -0
- package/dist/types/components/pds-modal/pds-modal-content/pds-modal-content.d.ts +18 -1
- package/dist/types/components/pds-modal/pds-modal.d.ts +5 -0
- package/dist/types/components/pds-modal/test/mock-pds-modal.d.ts +5 -0
- package/dist/types/components/pds-row/pds-row.d.ts +8 -0
- package/dist/types/components/pds-textarea/pds-textarea.d.ts +20 -0
- package/dist/types/components.d.ts +822 -8
- package/hydrate/index.js +489 -39
- package/hydrate/index.mjs +489 -39
- package/package.json +2 -2
- package/dist/pine-core/p-0485aa93.system.entry.js +0 -2
- package/dist/pine-core/p-0485aa93.system.entry.js.map +0 -1
- package/dist/pine-core/p-0d9e28a2.entry.js +0 -2
- package/dist/pine-core/p-0d9e28a2.entry.js.map +0 -1
- package/dist/pine-core/p-2186e5d4.system.entry.js +0 -2
- package/dist/pine-core/p-2186e5d4.system.entry.js.map +0 -1
- package/dist/pine-core/p-48b658fc.system.entry.js +0 -2
- package/dist/pine-core/p-48b658fc.system.entry.js.map +0 -1
- package/dist/pine-core/p-5aed29fe.system.entry.js.map +0 -1
- package/dist/pine-core/p-68b5665a.entry.js.map +0 -1
- package/dist/pine-core/p-79e2782b.entry.js.map +0 -1
- package/dist/pine-core/p-96a89cd5.system.entry.js +0 -2
- package/dist/pine-core/p-96a89cd5.system.entry.js.map +0 -1
- package/dist/pine-core/p-BOHu_LEs.system.js.map +0 -1
- package/dist/pine-core/p-CD_nPb2F.system.js.map +0 -1
- package/dist/pine-core/p-DAwJ242E.system.js.map +0 -1
- package/dist/pine-core/p-DJekRkSL.system.js.map +0 -1
- package/dist/pine-core/p-DNYl_6t_.system.js.map +0 -1
- package/dist/pine-core/p-Dt10r3RZ.system.js.map +0 -1
- package/dist/pine-core/p-IIl2cTlj.system.js.map +0 -1
- package/dist/pine-core/p-a24c46e4.entry.js +0 -2
- package/dist/pine-core/p-a24c46e4.entry.js.map +0 -1
- package/dist/pine-core/p-c4d6fe50.system.entry.js.map +0 -1
- package/dist/pine-core/p-c6badcf8.entry.js +0 -2
- package/dist/pine-core/p-c6badcf8.entry.js.map +0 -1
- package/dist/pine-core/p-d714f68f.system.entry.js +0 -2
- package/dist/pine-core/p-d714f68f.system.entry.js.map +0 -1
- package/dist/pine-core/p-e5ca5b8e.entry.js +0 -2
- package/dist/pine-core/p-e5ca5b8e.entry.js.map +0 -1
- package/dist/pine-core/p-fb4058e6.entry.js +0 -2
- package/dist/pine-core/p-fb4058e6.entry.js.map +0 -1
- /package/dist/pine-core/{p-02326ac3.entry.js.map → p-4c81420c.entry.js.map} +0 -0
- /package/dist/pine-core/{p-11d4036e.entry.js.map → p-5f5b19f4.entry.js.map} +0 -0
- /package/dist/pine-core/{p-7a95a90f.system.entry.js.map → p-8726c99d.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-884b9ae6.system.entry.js.map → p-d8d8fe07.system.entry.js.map} +0 -0
|
@@ -2,18 +2,88 @@ import { BoxColumnType, BoxTShirtSizeType, BoxShadowSizeType } from '../../utils
|
|
|
2
2
|
export declare class PdsBox {
|
|
3
3
|
/**
|
|
4
4
|
* Defines how items within the box are aligned.
|
|
5
|
-
* @defaultValue
|
|
5
|
+
* @defaultValue stretch
|
|
6
6
|
*/
|
|
7
7
|
alignItems?: `start` | `center` | `end` | `baseline` | `stretch`;
|
|
8
|
+
/**
|
|
9
|
+
* Defines how items within the box are aligned at the XS breakpoint.
|
|
10
|
+
* @defaultValue stretch
|
|
11
|
+
*/
|
|
12
|
+
alignItemsXs?: `start` | `center` | `end` | `baseline` | `stretch`;
|
|
13
|
+
/**
|
|
14
|
+
* Defines how items within the box are aligned at the SM breakpoint.
|
|
15
|
+
* @defaultValue stretch
|
|
16
|
+
*/
|
|
17
|
+
alignItemsSm?: `start` | `center` | `end` | `baseline` | `stretch`;
|
|
18
|
+
/**
|
|
19
|
+
* Defines how items within the box are aligned at the MD breakpoint.
|
|
20
|
+
* @defaultValue stretch
|
|
21
|
+
*/
|
|
22
|
+
alignItemsMd?: `start` | `center` | `end` | `baseline` | `stretch`;
|
|
23
|
+
/**
|
|
24
|
+
* Defines how items within the box are aligned at the LG breakpoint.
|
|
25
|
+
* @defaultValue stretch
|
|
26
|
+
*/
|
|
27
|
+
alignItemsLg?: `start` | `center` | `end` | `baseline` | `stretch`;
|
|
28
|
+
/**
|
|
29
|
+
* Defines how items within the box are aligned at the XL breakpoint.
|
|
30
|
+
* @defaultValue stretch
|
|
31
|
+
*/
|
|
32
|
+
alignItemsXl?: `start` | `center` | `end` | `baseline` | `stretch`;
|
|
8
33
|
/**
|
|
9
34
|
* Defines how the box is aligned within its container.
|
|
10
|
-
* @defaultValue
|
|
35
|
+
* @defaultValue stretch
|
|
11
36
|
*/
|
|
12
37
|
alignSelf?: `start` | `center` | `end` | `baseline` | `stretch`;
|
|
38
|
+
/**
|
|
39
|
+
* Defines how the box is aligned within its container at the XS breakpoint.
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
alignSelfXs?: `start` | `center` | `end` | `baseline` | `stretch`;
|
|
43
|
+
/**
|
|
44
|
+
* Defines how the box is aligned within its container at the SM breakpoint.
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
alignSelfSm?: `start` | `center` | `end` | `baseline` | `stretch`;
|
|
48
|
+
/**
|
|
49
|
+
* Defines how the box is aligned within its container at the MD breakpoint.
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
alignSelfMd?: `start` | `center` | `end` | `baseline` | `stretch`;
|
|
53
|
+
/**
|
|
54
|
+
* Defines how the box is aligned within its container at the LG breakpoint.
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
alignSelfLg?: `start` | `center` | `end` | `baseline` | `stretch`;
|
|
58
|
+
/**
|
|
59
|
+
* Defines how the box is aligned within its container at the XL breakpoint.
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
alignSelfXl?: `start` | `center` | `end` | `baseline` | `stretch`;
|
|
13
63
|
/**
|
|
14
64
|
* If `true`, the box will be sized to fit its contents.
|
|
15
65
|
*/
|
|
16
66
|
auto?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* If `true`, the box will be sized to fit its contents at the XS breakpoint.
|
|
69
|
+
*/
|
|
70
|
+
autoXs?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* If `true`, the box will be sized to fit its contents at the SM breakpoint.
|
|
73
|
+
*/
|
|
74
|
+
autoSm?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* If `true`, the box will be sized to fit its contents at the MD breakpoint.
|
|
77
|
+
*/
|
|
78
|
+
autoMd?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* If `true`, the box will be sized to fit its contents at the LG breakpoint.
|
|
81
|
+
*/
|
|
82
|
+
autoLg?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* If `true`, the box will be sized to fit its contents at the XL breakpoint.
|
|
85
|
+
*/
|
|
86
|
+
autoXl?: boolean;
|
|
17
87
|
/**
|
|
18
88
|
* Defines the background-color of the box.
|
|
19
89
|
*/
|
|
@@ -45,16 +115,86 @@ export declare class PdsBox {
|
|
|
45
115
|
* If `true`, sets the box `max-width` to `100%`.
|
|
46
116
|
*/
|
|
47
117
|
fit?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* If `true`, sets the box `max-width` to `100%` at the XS breakpoint.
|
|
120
|
+
*/
|
|
121
|
+
fitXs?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* If `true`, sets the box `max-width` to `100%` at the SM breakpoint.
|
|
124
|
+
*/
|
|
125
|
+
fitSm?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* If `true`, sets the box `max-width` to `100%` at the MD breakpoint.
|
|
128
|
+
*/
|
|
129
|
+
fitMd?: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* If `true`, sets the box `max-width` to `100%` at the LG breakpoint.
|
|
132
|
+
*/
|
|
133
|
+
fitLg?: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* If `true`, sets the box `max-width` to `100%` at the XL breakpoint.
|
|
136
|
+
*/
|
|
137
|
+
fitXl?: boolean;
|
|
48
138
|
/**
|
|
49
139
|
* Defines the spacing between the box items.
|
|
50
140
|
* @defaultValue none
|
|
51
141
|
*/
|
|
52
142
|
gap?: BoxTShirtSizeType;
|
|
143
|
+
/**
|
|
144
|
+
* Defines the spacing between the box items at the XS breakpoint.
|
|
145
|
+
* @defaultValue none
|
|
146
|
+
*/
|
|
147
|
+
gapXs?: BoxTShirtSizeType;
|
|
148
|
+
/**
|
|
149
|
+
* Defines the spacing between the box items at the SM breakpoint.
|
|
150
|
+
* @defaultValue none
|
|
151
|
+
*/
|
|
152
|
+
gapSm?: BoxTShirtSizeType;
|
|
153
|
+
/**
|
|
154
|
+
* Defines the spacing between the box items at the MD breakpoint.
|
|
155
|
+
* @defaultValue none
|
|
156
|
+
*/
|
|
157
|
+
gapMd?: BoxTShirtSizeType;
|
|
158
|
+
/**
|
|
159
|
+
* Defines the spacing between the box items at the LG breakpoint.
|
|
160
|
+
* @defaultValue none
|
|
161
|
+
*/
|
|
162
|
+
gapLg?: BoxTShirtSizeType;
|
|
163
|
+
/**
|
|
164
|
+
* Defines the spacing between the box items at the XL breakpoint.
|
|
165
|
+
* @defaultValue none
|
|
166
|
+
*/
|
|
167
|
+
gapXl?: BoxTShirtSizeType;
|
|
53
168
|
/**
|
|
54
169
|
* Defines whether flex items are forced onto one line or can wrap onto multiple lines.
|
|
55
170
|
* @defaultValue false
|
|
56
171
|
*/
|
|
57
172
|
wrap?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* Defines whether flex items can wrap onto multiple lines at the XS breakpoint.
|
|
175
|
+
* @defaultValue false
|
|
176
|
+
*/
|
|
177
|
+
wrapXs?: boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Defines whether flex items can wrap onto multiple lines at the SM breakpoint.
|
|
180
|
+
* @defaultValue false
|
|
181
|
+
*/
|
|
182
|
+
wrapSm?: boolean;
|
|
183
|
+
/**
|
|
184
|
+
* Defines whether flex items can wrap onto multiple lines at the MD breakpoint.
|
|
185
|
+
* @defaultValue false
|
|
186
|
+
*/
|
|
187
|
+
wrapMd?: boolean;
|
|
188
|
+
/**
|
|
189
|
+
* Defines whether flex items can wrap onto multiple lines at the LG breakpoint.
|
|
190
|
+
* @defaultValue false
|
|
191
|
+
*/
|
|
192
|
+
wrapLg?: boolean;
|
|
193
|
+
/**
|
|
194
|
+
* Defines whether flex items can wrap onto multiple lines at the XL breakpoint.
|
|
195
|
+
* @defaultValue false
|
|
196
|
+
*/
|
|
197
|
+
wrapXl?: boolean;
|
|
58
198
|
/**
|
|
59
199
|
* Defines how a box will grow or shrink to fit the space available in its container.
|
|
60
200
|
* Can be a predefined value ('none', 'grow', 'shrink') or a custom flex value (e.g., '1', '0 1 auto').
|
|
@@ -65,27 +205,152 @@ export declare class PdsBox {
|
|
|
65
205
|
* Defines the horizontal alignment of the box items.
|
|
66
206
|
* @defaultValue start
|
|
67
207
|
*/
|
|
68
|
-
justifyContent?: `start` | `center` | `end` | `space-between` | `space-around`;
|
|
208
|
+
justifyContent?: `start` | `center` | `end` | `space-between` | `space-around` | `space-evenly`;
|
|
209
|
+
/**
|
|
210
|
+
* Defines the horizontal alignment of the box items at the XS breakpoint.
|
|
211
|
+
* @defaultValue start
|
|
212
|
+
*/
|
|
213
|
+
justifyContentXs?: `start` | `center` | `end` | `space-between` | `space-around` | `space-evenly`;
|
|
214
|
+
/**
|
|
215
|
+
* Defines the horizontal alignment of the box items at the SM breakpoint.
|
|
216
|
+
* @defaultValue start
|
|
217
|
+
*/
|
|
218
|
+
justifyContentSm?: `start` | `center` | `end` | `space-between` | `space-around` | `space-evenly`;
|
|
219
|
+
/**
|
|
220
|
+
* Defines the horizontal alignment of the box items at the MD breakpoint.
|
|
221
|
+
* @defaultValue start
|
|
222
|
+
*/
|
|
223
|
+
justifyContentMd?: `start` | `center` | `end` | `space-between` | `space-around` | `space-evenly`;
|
|
224
|
+
/**
|
|
225
|
+
* Defines the horizontal alignment of the box items at the LG breakpoint.
|
|
226
|
+
* @defaultValue start
|
|
227
|
+
*/
|
|
228
|
+
justifyContentLg?: `start` | `center` | `end` | `space-between` | `space-around` | `space-evenly`;
|
|
229
|
+
/**
|
|
230
|
+
* Defines the horizontal alignment of the box items at the XL breakpoint.
|
|
231
|
+
* @defaultValue start
|
|
232
|
+
*/
|
|
233
|
+
justifyContentXl?: `start` | `center` | `end` | `space-between` | `space-around` | `space-evenly`;
|
|
69
234
|
/**
|
|
70
235
|
* Defines the box's outer top spacing.
|
|
71
236
|
* @defaultValue none
|
|
72
237
|
*/
|
|
73
238
|
marginBlockStart?: BoxTShirtSizeType;
|
|
239
|
+
/**
|
|
240
|
+
* Defines the box's outer top spacing at the XS breakpoint.
|
|
241
|
+
* @defaultValue none
|
|
242
|
+
*/
|
|
243
|
+
marginBlockStartXs?: BoxTShirtSizeType;
|
|
244
|
+
/**
|
|
245
|
+
* Defines the box's outer top spacing at the SM breakpoint.
|
|
246
|
+
* @defaultValue none
|
|
247
|
+
*/
|
|
248
|
+
marginBlockStartSm?: BoxTShirtSizeType;
|
|
249
|
+
/**
|
|
250
|
+
* Defines the box's outer top spacing at the MD breakpoint.
|
|
251
|
+
* @defaultValue none
|
|
252
|
+
*/
|
|
253
|
+
marginBlockStartMd?: BoxTShirtSizeType;
|
|
254
|
+
/**
|
|
255
|
+
* Defines the box's outer top spacing at the LG breakpoint.
|
|
256
|
+
* @defaultValue none
|
|
257
|
+
*/
|
|
258
|
+
marginBlockStartLg?: BoxTShirtSizeType;
|
|
259
|
+
/**
|
|
260
|
+
* Defines the box's outer top spacing at the XL breakpoint.
|
|
261
|
+
* @defaultValue none
|
|
262
|
+
*/
|
|
263
|
+
marginBlockStartXl?: BoxTShirtSizeType;
|
|
74
264
|
/**
|
|
75
265
|
* Defines the box's outer left spacing.
|
|
76
266
|
* @defaultValue none
|
|
77
267
|
*/
|
|
78
268
|
marginInlineStart?: BoxTShirtSizeType;
|
|
269
|
+
/**
|
|
270
|
+
* Defines the box's outer left spacing at the XS breakpoint.
|
|
271
|
+
* @defaultValue none
|
|
272
|
+
*/
|
|
273
|
+
marginInlineStartXs?: BoxTShirtSizeType;
|
|
274
|
+
/**
|
|
275
|
+
* Defines the box's outer left spacing at the SM breakpoint.
|
|
276
|
+
* @defaultValue none
|
|
277
|
+
*/
|
|
278
|
+
marginInlineStartSm?: BoxTShirtSizeType;
|
|
279
|
+
/**
|
|
280
|
+
* Defines the box's outer left spacing at the MD breakpoint.
|
|
281
|
+
* @defaultValue none
|
|
282
|
+
*/
|
|
283
|
+
marginInlineStartMd?: BoxTShirtSizeType;
|
|
284
|
+
/**
|
|
285
|
+
* Defines the box's outer left spacing at the LG breakpoint.
|
|
286
|
+
* @defaultValue none
|
|
287
|
+
*/
|
|
288
|
+
marginInlineStartLg?: BoxTShirtSizeType;
|
|
289
|
+
/**
|
|
290
|
+
* Defines the box's outer left spacing at the XL breakpoint.
|
|
291
|
+
* @defaultValue none
|
|
292
|
+
*/
|
|
293
|
+
marginInlineStartXl?: BoxTShirtSizeType;
|
|
79
294
|
/**
|
|
80
295
|
* Defines the box's outer right spacing.
|
|
81
296
|
* @defaultValue none
|
|
82
297
|
*/
|
|
83
298
|
marginInlineEnd?: BoxTShirtSizeType;
|
|
299
|
+
/**
|
|
300
|
+
* Defines the box's outer right spacing at the XS breakpoint.
|
|
301
|
+
* @defaultValue none
|
|
302
|
+
*/
|
|
303
|
+
marginInlineEndXs?: BoxTShirtSizeType;
|
|
304
|
+
/**
|
|
305
|
+
* Defines the box's outer right spacing at the SM breakpoint.
|
|
306
|
+
* @defaultValue none
|
|
307
|
+
*/
|
|
308
|
+
marginInlineEndSm?: BoxTShirtSizeType;
|
|
309
|
+
/**
|
|
310
|
+
* Defines the box's outer right spacing at the MD breakpoint.
|
|
311
|
+
* @defaultValue none
|
|
312
|
+
*/
|
|
313
|
+
marginInlineEndMd?: BoxTShirtSizeType;
|
|
314
|
+
/**
|
|
315
|
+
* Defines the box's outer right spacing at the LG breakpoint.
|
|
316
|
+
* @defaultValue none
|
|
317
|
+
*/
|
|
318
|
+
marginInlineEndLg?: BoxTShirtSizeType;
|
|
319
|
+
/**
|
|
320
|
+
* Defines the box's outer right spacing at the XL breakpoint.
|
|
321
|
+
* @defaultValue none
|
|
322
|
+
*/
|
|
323
|
+
marginInlineEndXl?: BoxTShirtSizeType;
|
|
84
324
|
/**
|
|
85
325
|
* Defines the box's outer bottom spacing.
|
|
86
326
|
* @defaultValue none
|
|
87
327
|
*/
|
|
88
328
|
marginBlockEnd?: BoxTShirtSizeType;
|
|
329
|
+
/**
|
|
330
|
+
* Defines the box's outer bottom spacing at the XS breakpoint.
|
|
331
|
+
* @defaultValue none
|
|
332
|
+
*/
|
|
333
|
+
marginBlockEndXs?: BoxTShirtSizeType;
|
|
334
|
+
/**
|
|
335
|
+
* Defines the box's outer bottom spacing at the SM breakpoint.
|
|
336
|
+
* @defaultValue none
|
|
337
|
+
*/
|
|
338
|
+
marginBlockEndSm?: BoxTShirtSizeType;
|
|
339
|
+
/**
|
|
340
|
+
* Defines the box's outer bottom spacing at the MD breakpoint.
|
|
341
|
+
* @defaultValue none
|
|
342
|
+
*/
|
|
343
|
+
marginBlockEndMd?: BoxTShirtSizeType;
|
|
344
|
+
/**
|
|
345
|
+
* Defines the box's outer bottom spacing at the LG breakpoint.
|
|
346
|
+
* @defaultValue none
|
|
347
|
+
*/
|
|
348
|
+
marginBlockEndLg?: BoxTShirtSizeType;
|
|
349
|
+
/**
|
|
350
|
+
* Defines the box's outer bottom spacing at the XL breakpoint.
|
|
351
|
+
* @defaultValue none
|
|
352
|
+
*/
|
|
353
|
+
marginBlockEndXl?: BoxTShirtSizeType;
|
|
89
354
|
/**
|
|
90
355
|
* The minimum height of the row. Used in conjunction with alignment props
|
|
91
356
|
*/
|
|
@@ -123,26 +388,151 @@ export declare class PdsBox {
|
|
|
123
388
|
* @defaultValue none
|
|
124
389
|
*/
|
|
125
390
|
padding?: BoxTShirtSizeType;
|
|
391
|
+
/**
|
|
392
|
+
* Defines the spacing between the box items at the XS breakpoint.
|
|
393
|
+
* @defaultValue none
|
|
394
|
+
*/
|
|
395
|
+
paddingXs?: BoxTShirtSizeType;
|
|
396
|
+
/**
|
|
397
|
+
* Defines the spacing between the box items at the SM breakpoint.
|
|
398
|
+
* @defaultValue none
|
|
399
|
+
*/
|
|
400
|
+
paddingSm?: BoxTShirtSizeType;
|
|
401
|
+
/**
|
|
402
|
+
* Defines the spacing between the box items at the MD breakpoint.
|
|
403
|
+
* @defaultValue none
|
|
404
|
+
*/
|
|
405
|
+
paddingMd?: BoxTShirtSizeType;
|
|
406
|
+
/**
|
|
407
|
+
* Defines the spacing between the box items at the LG breakpoint.
|
|
408
|
+
* @defaultValue none
|
|
409
|
+
*/
|
|
410
|
+
paddingLg?: BoxTShirtSizeType;
|
|
411
|
+
/**
|
|
412
|
+
* Defines the spacing between the box items at the XL breakpoint.
|
|
413
|
+
* @defaultValue none
|
|
414
|
+
*/
|
|
415
|
+
paddingXl?: BoxTShirtSizeType;
|
|
126
416
|
/**
|
|
127
417
|
* Defines the top spacing.
|
|
128
418
|
* @defaultValue none
|
|
129
419
|
*/
|
|
130
420
|
paddingBlockStart?: BoxTShirtSizeType;
|
|
421
|
+
/**
|
|
422
|
+
* Defines the top spacing at the XS breakpoint.
|
|
423
|
+
* @defaultValue none
|
|
424
|
+
*/
|
|
425
|
+
paddingBlockStartXs?: BoxTShirtSizeType;
|
|
426
|
+
/**
|
|
427
|
+
* Defines the top spacing at the SM breakpoint.
|
|
428
|
+
* @defaultValue none
|
|
429
|
+
*/
|
|
430
|
+
paddingBlockStartSm?: BoxTShirtSizeType;
|
|
431
|
+
/**
|
|
432
|
+
* Defines the top spacing at the MD breakpoint.
|
|
433
|
+
* @defaultValue none
|
|
434
|
+
*/
|
|
435
|
+
paddingBlockStartMd?: BoxTShirtSizeType;
|
|
436
|
+
/**
|
|
437
|
+
* Defines the top spacing at the LG breakpoint.
|
|
438
|
+
* @defaultValue none
|
|
439
|
+
*/
|
|
440
|
+
paddingBlockStartLg?: BoxTShirtSizeType;
|
|
441
|
+
/**
|
|
442
|
+
* Defines the top spacing at the XL breakpoint.
|
|
443
|
+
* @defaultValue none
|
|
444
|
+
*/
|
|
445
|
+
paddingBlockStartXl?: BoxTShirtSizeType;
|
|
131
446
|
/**
|
|
132
447
|
* Defines the bottom spacing.
|
|
133
448
|
* @defaultValue none
|
|
134
449
|
*/
|
|
135
450
|
paddingBlockEnd?: BoxTShirtSizeType;
|
|
451
|
+
/**
|
|
452
|
+
* Defines the bottom spacing at the XS breakpoint.
|
|
453
|
+
* @defaultValue none
|
|
454
|
+
*/
|
|
455
|
+
paddingBlockEndXs?: BoxTShirtSizeType;
|
|
456
|
+
/**
|
|
457
|
+
* Defines the bottom spacing at the SM breakpoint.
|
|
458
|
+
* @defaultValue none
|
|
459
|
+
*/
|
|
460
|
+
paddingBlockEndSm?: BoxTShirtSizeType;
|
|
461
|
+
/**
|
|
462
|
+
* Defines the bottom spacing at the MD breakpoint.
|
|
463
|
+
* @defaultValue none
|
|
464
|
+
*/
|
|
465
|
+
paddingBlockEndMd?: BoxTShirtSizeType;
|
|
466
|
+
/**
|
|
467
|
+
* Defines the bottom spacing at the LG breakpoint.
|
|
468
|
+
* @defaultValue none
|
|
469
|
+
*/
|
|
470
|
+
paddingBlockEndLg?: BoxTShirtSizeType;
|
|
471
|
+
/**
|
|
472
|
+
* Defines the bottom spacing at the XL breakpoint.
|
|
473
|
+
* @defaultValue none
|
|
474
|
+
*/
|
|
475
|
+
paddingBlockEndXl?: BoxTShirtSizeType;
|
|
136
476
|
/**
|
|
137
477
|
* Defines the left spacing.
|
|
138
478
|
* @defaultValue none
|
|
139
479
|
*/
|
|
140
480
|
paddingInlineStart?: BoxTShirtSizeType;
|
|
481
|
+
/**
|
|
482
|
+
* Defines the left spacing at the XS breakpoint.
|
|
483
|
+
* @defaultValue none
|
|
484
|
+
*/
|
|
485
|
+
paddingInlineStartXs?: BoxTShirtSizeType;
|
|
486
|
+
/**
|
|
487
|
+
* Defines the left spacing at the SM breakpoint.
|
|
488
|
+
* @defaultValue none
|
|
489
|
+
*/
|
|
490
|
+
paddingInlineStartSm?: BoxTShirtSizeType;
|
|
491
|
+
/**
|
|
492
|
+
* Defines the left spacing at the MD breakpoint.
|
|
493
|
+
* @defaultValue none
|
|
494
|
+
*/
|
|
495
|
+
paddingInlineStartMd?: BoxTShirtSizeType;
|
|
496
|
+
/**
|
|
497
|
+
* Defines the left spacing at the LG breakpoint.
|
|
498
|
+
* @defaultValue none
|
|
499
|
+
*/
|
|
500
|
+
paddingInlineStartLg?: BoxTShirtSizeType;
|
|
501
|
+
/**
|
|
502
|
+
* Defines the left spacing at the XL breakpoint.
|
|
503
|
+
* @defaultValue none
|
|
504
|
+
*/
|
|
505
|
+
paddingInlineStartXl?: BoxTShirtSizeType;
|
|
141
506
|
/**
|
|
142
507
|
* Defines the right spacing.
|
|
143
508
|
* @defaultValue none
|
|
144
509
|
*/
|
|
145
510
|
paddingInlineEnd?: BoxTShirtSizeType;
|
|
511
|
+
/**
|
|
512
|
+
* Defines the right spacing at the XS breakpoint.
|
|
513
|
+
* @defaultValue none
|
|
514
|
+
*/
|
|
515
|
+
paddingInlineEndXs?: BoxTShirtSizeType;
|
|
516
|
+
/**
|
|
517
|
+
* Defines the right spacing at the SM breakpoint.
|
|
518
|
+
* @defaultValue none
|
|
519
|
+
*/
|
|
520
|
+
paddingInlineEndSm?: BoxTShirtSizeType;
|
|
521
|
+
/**
|
|
522
|
+
* Defines the right spacing at the MD breakpoint.
|
|
523
|
+
* @defaultValue none
|
|
524
|
+
*/
|
|
525
|
+
paddingInlineEndMd?: BoxTShirtSizeType;
|
|
526
|
+
/**
|
|
527
|
+
* Defines the right spacing at the LG breakpoint.
|
|
528
|
+
* @defaultValue none
|
|
529
|
+
*/
|
|
530
|
+
paddingInlineEndLg?: BoxTShirtSizeType;
|
|
531
|
+
/**
|
|
532
|
+
* Defines the right spacing at the XL breakpoint.
|
|
533
|
+
* @defaultValue none
|
|
534
|
+
*/
|
|
535
|
+
paddingInlineEndXl?: BoxTShirtSizeType;
|
|
146
536
|
/**
|
|
147
537
|
* Defines the box shadow.
|
|
148
538
|
* @defaultValue none
|
|
@@ -71,6 +71,10 @@ export declare class PdsButton {
|
|
|
71
71
|
*/
|
|
72
72
|
variant: 'primary' | 'secondary' | 'accent' | 'disclosure' | 'destructive' | 'unstyled';
|
|
73
73
|
pdsClick: EventEmitter;
|
|
74
|
+
/**
|
|
75
|
+
* Listen for Enter key presses on form inputs to trigger submit
|
|
76
|
+
*/
|
|
77
|
+
handleFormKeyDown(event: KeyboardEvent): void;
|
|
74
78
|
private handleClick;
|
|
75
79
|
private classNames;
|
|
76
80
|
private hasSlotContent;
|
|
@@ -6,17 +6,34 @@ declare global {
|
|
|
6
6
|
export declare class PdsModalContent {
|
|
7
7
|
el: HTMLPdsModalContentElement;
|
|
8
8
|
/**
|
|
9
|
-
* The border style for the content area.
|
|
9
|
+
* The border style for the content area. When not explicitly set, automatically determined based on scroll state.
|
|
10
10
|
* @default 'none'
|
|
11
11
|
*/
|
|
12
12
|
border: 'none' | 'both' | 'top' | 'bottom';
|
|
13
13
|
contentMaxHeight: string;
|
|
14
|
+
/**
|
|
15
|
+
* Tracks whether the border prop was explicitly set by the user
|
|
16
|
+
*/
|
|
17
|
+
private userSetBorder;
|
|
18
|
+
componentWillLoad(): void;
|
|
14
19
|
componentDidLoad(): void;
|
|
15
20
|
disconnectedCallback(): void;
|
|
21
|
+
/**
|
|
22
|
+
* Handle scroll events
|
|
23
|
+
*/
|
|
24
|
+
private handleScroll;
|
|
25
|
+
/**
|
|
26
|
+
* Handle resize events
|
|
27
|
+
*/
|
|
28
|
+
private handleResize;
|
|
16
29
|
/**
|
|
17
30
|
* Calculates the max-height based on header and footer heights
|
|
18
31
|
*/
|
|
19
32
|
private mutationObserver;
|
|
33
|
+
/**
|
|
34
|
+
* Updates border visibility based on scroll state (only if not user-defined)
|
|
35
|
+
*/
|
|
36
|
+
private updateBorders;
|
|
20
37
|
/**
|
|
21
38
|
* Calculates the max-height based on header and footer heights
|
|
22
39
|
*/
|
|
@@ -23,6 +23,11 @@ export declare class PdsModal {
|
|
|
23
23
|
* @default 'md'
|
|
24
24
|
*/
|
|
25
25
|
size: 'sm' | 'md' | 'lg' | 'fullscreen';
|
|
26
|
+
/**
|
|
27
|
+
* Whether the modal content should be scrollable
|
|
28
|
+
* @default true
|
|
29
|
+
*/
|
|
30
|
+
scrollable: boolean;
|
|
26
31
|
/**
|
|
27
32
|
* Emitted when the modal is opened
|
|
28
33
|
*/
|
|
@@ -20,6 +20,11 @@ export declare class MockPdsModal {
|
|
|
20
20
|
* The size of the modal
|
|
21
21
|
*/
|
|
22
22
|
size: 'sm' | 'md' | 'lg' | 'fullscreen';
|
|
23
|
+
/**
|
|
24
|
+
* Whether the modal content should be scrollable
|
|
25
|
+
* @default true
|
|
26
|
+
*/
|
|
27
|
+
scrollable: boolean;
|
|
23
28
|
/**
|
|
24
29
|
* Whether the modal can be dismissed by clicking the backdrop
|
|
25
30
|
*/
|
|
@@ -13,6 +13,14 @@ export declare class PdsRow {
|
|
|
13
13
|
* Defines the spacing between the row items.
|
|
14
14
|
*/
|
|
15
15
|
colGap?: BoxTShirtSizeType | null;
|
|
16
|
+
/**
|
|
17
|
+
* Defines the spacing between the row items vertically.
|
|
18
|
+
*/
|
|
19
|
+
colGapBlock?: BoxTShirtSizeType | null;
|
|
20
|
+
/**
|
|
21
|
+
* Defines the spacing between the row items horizontally.
|
|
22
|
+
*/
|
|
23
|
+
colGapInline?: BoxTShirtSizeType | null;
|
|
16
24
|
/**
|
|
17
25
|
* A unique identifier used for the underlying component `id` attribute.
|
|
18
26
|
*/
|
|
@@ -9,6 +9,8 @@ export declare class PdsTextarea {
|
|
|
9
9
|
private inheritedAttributes;
|
|
10
10
|
private originalPdsInput?;
|
|
11
11
|
private internals?;
|
|
12
|
+
private resizeObserver?;
|
|
13
|
+
private characterCounter?;
|
|
12
14
|
el: HTMLPdsTextareaElement;
|
|
13
15
|
/**
|
|
14
16
|
* Emitted when the input loses focus.
|
|
@@ -99,6 +101,10 @@ export declare class PdsTextarea {
|
|
|
99
101
|
* Sets number of rows of text visible without needing to scroll in the textarea.
|
|
100
102
|
*/
|
|
101
103
|
rows?: number;
|
|
104
|
+
/**
|
|
105
|
+
* Specifies the maximum number of characters allowed in the textarea. When set, displays a character counter.
|
|
106
|
+
*/
|
|
107
|
+
maxLength?: number;
|
|
102
108
|
/**
|
|
103
109
|
* The value of the textarea.
|
|
104
110
|
*/
|
|
@@ -113,6 +119,7 @@ export declare class PdsTextarea {
|
|
|
113
119
|
* Update the native input element when the value changes
|
|
114
120
|
*/
|
|
115
121
|
protected valueChanged(): void;
|
|
122
|
+
protected maxLengthChanged(): void;
|
|
116
123
|
/**
|
|
117
124
|
* Emits an `pdsInput` event.
|
|
118
125
|
*/
|
|
@@ -128,8 +135,21 @@ export declare class PdsTextarea {
|
|
|
128
135
|
private onTextareaChange;
|
|
129
136
|
private textareaClassNames;
|
|
130
137
|
connectedCallback(): void;
|
|
138
|
+
disconnectedCallback(): void;
|
|
131
139
|
componentWillLoad(): void;
|
|
132
140
|
componentDidLoad(): void;
|
|
141
|
+
/**
|
|
142
|
+
* Sets up ResizeObserver to track textarea resize for character counter positioning
|
|
143
|
+
*/
|
|
144
|
+
private setupResizeObserver;
|
|
145
|
+
/**
|
|
146
|
+
* Updates character counter position to stay within textarea boundaries during resize
|
|
147
|
+
*/
|
|
148
|
+
private updateCharacterCounterPosition;
|
|
149
|
+
/**
|
|
150
|
+
* Renders the character counter when maxLength is set
|
|
151
|
+
*/
|
|
152
|
+
private renderCharacterCounter;
|
|
133
153
|
private renderAction;
|
|
134
154
|
/**
|
|
135
155
|
* Updates the form value using ElementInternals API
|