@pine-ds/core 3.4.2 → 3.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/pds-button2.js +1 -1
- package/components/pds-button2.js.map +1 -1
- package/dist/cjs/pds-button.cjs.entry.js +1 -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/collection/components/pds-accordion/stories/pds-accordion.stories.js +1 -1
- package/dist/collection/components/pds-alert/stories/pds-alert.stories.js +6 -6
- package/dist/collection/components/pds-box/stories/pds-box.stories.js +2 -2
- package/dist/collection/components/pds-button/pds-button.css +1 -0
- package/dist/collection/components/pds-button/stories/pds-button.stories.js +4 -4
- package/dist/collection/components/pds-checkbox/stories/pds-checkbox.stories.js +6 -6
- package/dist/collection/components/pds-chip/stories/pds-chip.stories.js +2 -2
- package/dist/collection/components/pds-copytext/stories/pds-copytext.stories.js +3 -3
- package/dist/collection/components/pds-image/stories/pds-image.stories.js +1 -1
- package/dist/collection/components/pds-input/stories/pds-input.stories.js +37 -37
- package/dist/collection/components/pds-link/stories/pds-link.stories.js +2 -2
- package/dist/collection/components/pds-loader/stories/pds-loader.stories.js +3 -3
- package/dist/collection/components/pds-modal/stories/pds-modal.stories.js +9 -9
- package/dist/collection/components/pds-progress/stories/pds-progress.stories.js +2 -2
- package/dist/collection/components/pds-radio/stories/pds-radio.stories.js +6 -6
- package/dist/collection/components/pds-row/stories/pds-row.stories.js +16 -12
- package/dist/collection/components/pds-select/stories/pds-select.stories.js +19 -19
- package/dist/collection/components/pds-sortable/stories/pds-sortable.stories.js +4 -4
- package/dist/collection/components/pds-switch/stories/pds-switch.stories.js +5 -5
- package/dist/collection/components/pds-table/stories/pds-table.stories.js +12 -12
- package/dist/collection/components/pds-textarea/stories/pds-textarea.stories.js +15 -15
- package/dist/collection/components/pds-toast/stories/pds-toast.stories.js +2 -2
- package/dist/collection/components/pds-tooltip/stories/pds-tooltip.stories.js +14 -14
- package/dist/docs.json +1 -1
- package/dist/esm/pds-button.entry.js +1 -1
- package/dist/esm/pds-button.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/pine-core/p-4a658a86.system.entry.js +2 -0
- package/dist/pine-core/p-4a658a86.system.entry.js.map +1 -0
- package/dist/pine-core/p-8896d43a.entry.js +2 -0
- package/dist/pine-core/p-8896d43a.entry.js.map +1 -0
- package/dist/pine-core/p-De9tROL-.system.js +1 -1
- package/dist/pine-core/p-Rj3B0bRw.system.js.map +1 -0
- package/dist/pine-core/pds-button.entry.esm.js.map +1 -1
- package/dist/pine-core/pine-core.esm.js +1 -1
- package/hydrate/index.js +1 -1
- package/hydrate/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/pine-core/p-2436cb86.system.entry.js +0 -2
- package/dist/pine-core/p-2436cb86.system.entry.js.map +0 -1
- package/dist/pine-core/p-987a7e4f.entry.js +0 -2
- package/dist/pine-core/p-987a7e4f.entry.js.map +0 -1
- package/dist/pine-core/p-DgMvQlxU.system.js.map +0 -1
|
@@ -42,16 +42,16 @@ const BaseTemplate = (args) => html`<pds-input
|
|
|
42
42
|
autocomplete="${args.autocomplete}"
|
|
43
43
|
component-id="${args.componentId}"
|
|
44
44
|
debounce="${args.debounce}"
|
|
45
|
-
disabled
|
|
45
|
+
?disabled=${args.disabled}
|
|
46
46
|
error-message="${args.errorMessage}"
|
|
47
|
-
full-width
|
|
47
|
+
?full-width=${args.fullWidth}
|
|
48
48
|
helper-message="${args.helperMessage}"
|
|
49
|
-
invalid
|
|
49
|
+
?invalid=${args.invalid}
|
|
50
50
|
label="${args.label}"
|
|
51
51
|
name="${args.name}"
|
|
52
52
|
placeholder="${args.placeholder}"
|
|
53
|
-
readonly
|
|
54
|
-
required
|
|
53
|
+
?readonly=${args.readonly}
|
|
54
|
+
?required=${args.required}
|
|
55
55
|
type="${args.type}"
|
|
56
56
|
value="${args.value}">
|
|
57
57
|
${args.prefix || ''}
|
|
@@ -151,15 +151,15 @@ export const withPrefixIcon = (args) => html`<pds-input
|
|
|
151
151
|
autocomplete="${args.autocomplete}"
|
|
152
152
|
component-id="pds-input-prefix-icon"
|
|
153
153
|
debounce="${args.debounce}"
|
|
154
|
-
disabled
|
|
154
|
+
?disabled=${args.disabled}
|
|
155
155
|
error-message="${args.errorMessage}"
|
|
156
156
|
helper-message="${args.helperMessage}"
|
|
157
|
-
invalid
|
|
157
|
+
?invalid=${args.invalid}
|
|
158
158
|
label="Email"
|
|
159
159
|
name="${args.name}"
|
|
160
160
|
placeholder="${args.placeholder}"
|
|
161
|
-
readonly
|
|
162
|
-
required
|
|
161
|
+
?readonly=${args.readonly}
|
|
162
|
+
?required=${args.required}
|
|
163
163
|
type="email"
|
|
164
164
|
value="${args.value}">
|
|
165
165
|
<pds-icon slot="prefix" name="mail" size="small"></pds-icon>
|
|
@@ -169,15 +169,15 @@ export const withSuffixButton = (args) => html`<pds-input
|
|
|
169
169
|
autocomplete="${args.autocomplete}"
|
|
170
170
|
component-id="pds-input-suffix-button"
|
|
171
171
|
debounce="${args.debounce}"
|
|
172
|
-
disabled
|
|
172
|
+
?disabled=${args.disabled}
|
|
173
173
|
error-message="${args.errorMessage}"
|
|
174
174
|
helper-message="${args.helperMessage}"
|
|
175
|
-
invalid
|
|
175
|
+
?invalid=${args.invalid}
|
|
176
176
|
label="Search"
|
|
177
177
|
name="${args.name}"
|
|
178
178
|
placeholder="${args.placeholder}"
|
|
179
|
-
readonly
|
|
180
|
-
required
|
|
179
|
+
?readonly=${args.readonly}
|
|
180
|
+
?required=${args.required}
|
|
181
181
|
type="text"
|
|
182
182
|
value="${args.value}">
|
|
183
183
|
<pds-button slot="suffix" variant="unstyled" class="pds-input__suffix">
|
|
@@ -189,15 +189,15 @@ export const withPrependSelect = (args) => html`<pds-input
|
|
|
189
189
|
autocomplete="${args.autocomplete}"
|
|
190
190
|
component-id="pds-input-prepend-select"
|
|
191
191
|
debounce="${args.debounce}"
|
|
192
|
-
disabled
|
|
192
|
+
?disabled=${args.disabled}
|
|
193
193
|
error-message="${args.errorMessage}"
|
|
194
194
|
helper-message="${args.helperMessage}"
|
|
195
|
-
invalid
|
|
195
|
+
?invalid=${args.invalid}
|
|
196
196
|
label="Amount"
|
|
197
197
|
name="${args.name}"
|
|
198
198
|
placeholder="${args.placeholder}"
|
|
199
|
-
readonly
|
|
200
|
-
required
|
|
199
|
+
?readonly=${args.readonly}
|
|
200
|
+
?required=${args.required}
|
|
201
201
|
type="text"
|
|
202
202
|
value="${args.value}">
|
|
203
203
|
<pds-select hide-label label="Currency" slot="prepend" class="pds-input__prepend" name="currency">
|
|
@@ -211,15 +211,15 @@ export const withAppendSelect = (args) => html`<pds-input
|
|
|
211
211
|
autocomplete="${args.autocomplete}"
|
|
212
212
|
component-id="pds-input-append-select"
|
|
213
213
|
debounce="${args.debounce}"
|
|
214
|
-
disabled
|
|
214
|
+
?disabled=${args.disabled}
|
|
215
215
|
error-message="${args.errorMessage}"
|
|
216
216
|
helper-message="${args.helperMessage}"
|
|
217
|
-
invalid
|
|
217
|
+
?invalid=${args.invalid}
|
|
218
218
|
label="Phone"
|
|
219
219
|
name="${args.name}"
|
|
220
220
|
placeholder="${args.placeholder}"
|
|
221
|
-
readonly
|
|
222
|
-
required
|
|
221
|
+
?readonly=${args.readonly}
|
|
222
|
+
?required=${args.required}
|
|
223
223
|
type="tel"
|
|
224
224
|
value="${args.value}">
|
|
225
225
|
<pds-select hide-label slot="append" class="pds-input__append" name="phone-type">
|
|
@@ -233,15 +233,15 @@ export const withPrefixAndAppend = (args) => html`<pds-input
|
|
|
233
233
|
autocomplete="${args.autocomplete}"
|
|
234
234
|
component-id="pds-input-prefix-append"
|
|
235
235
|
debounce="${args.debounce}"
|
|
236
|
-
disabled
|
|
236
|
+
?disabled=${args.disabled}
|
|
237
237
|
error-message="${args.errorMessage}"
|
|
238
238
|
helper-message="${args.helperMessage}"
|
|
239
|
-
invalid
|
|
239
|
+
?invalid=${args.invalid}
|
|
240
240
|
label="Amount"
|
|
241
241
|
name="${args.name}"
|
|
242
242
|
placeholder="${args.placeholder}"
|
|
243
|
-
readonly
|
|
244
|
-
required
|
|
243
|
+
?readonly=${args.readonly}
|
|
244
|
+
?required=${args.required}
|
|
245
245
|
type="text"
|
|
246
246
|
value="${args.value}">
|
|
247
247
|
<pds-icon slot="prefix" name="dollar" size="small"></pds-icon>
|
|
@@ -256,15 +256,15 @@ export const withPrependAndSuffix = (args) => html`<pds-input
|
|
|
256
256
|
autocomplete="${args.autocomplete}"
|
|
257
257
|
component-id="pds-input-prepend-suffix"
|
|
258
258
|
debounce="${args.debounce}"
|
|
259
|
-
disabled
|
|
259
|
+
?disabled=${args.disabled}
|
|
260
260
|
error-message="${args.errorMessage}"
|
|
261
261
|
helper-message="${args.helperMessage}"
|
|
262
|
-
invalid
|
|
262
|
+
?invalid=${args.invalid}
|
|
263
263
|
label="Amount"
|
|
264
264
|
name="${args.name}"
|
|
265
265
|
placeholder="${args.placeholder}"
|
|
266
|
-
readonly
|
|
267
|
-
required
|
|
266
|
+
?readonly=${args.readonly}
|
|
267
|
+
?required=${args.required}
|
|
268
268
|
type="text"
|
|
269
269
|
value="${args.value}">
|
|
270
270
|
<pds-select hide-label slot="prepend" class="pds-input__prepend" name="currency">
|
|
@@ -281,15 +281,15 @@ export const withActionLink = (args) => html`<pds-input
|
|
|
281
281
|
autocomplete="${args.autocomplete}"
|
|
282
282
|
component-id="pds-input-action-link"
|
|
283
283
|
debounce="${args.debounce}"
|
|
284
|
-
disabled
|
|
284
|
+
?disabled=${args.disabled}
|
|
285
285
|
error-message="${args.errorMessage}"
|
|
286
286
|
helper-message="${args.helperMessage}"
|
|
287
|
-
invalid
|
|
287
|
+
?invalid=${args.invalid}
|
|
288
288
|
label="Password"
|
|
289
289
|
name="${args.name}"
|
|
290
290
|
placeholder="${args.placeholder}"
|
|
291
|
-
readonly
|
|
292
|
-
required
|
|
291
|
+
?readonly=${args.readonly}
|
|
292
|
+
required
|
|
293
293
|
type="password"
|
|
294
294
|
value="${args.value}">
|
|
295
295
|
<pds-link href="#" slot="action">
|
|
@@ -301,15 +301,15 @@ export const withActionButton = (args) => html`<pds-input
|
|
|
301
301
|
autocomplete="${args.autocomplete}"
|
|
302
302
|
component-id="pds-input-action-button"
|
|
303
303
|
debounce="${args.debounce}"
|
|
304
|
-
disabled
|
|
304
|
+
?disabled=${args.disabled}
|
|
305
305
|
error-message="${args.errorMessage}"
|
|
306
306
|
helper-message="Choose a unique username"
|
|
307
|
-
invalid
|
|
307
|
+
?invalid=${args.invalid}
|
|
308
308
|
label="Username"
|
|
309
309
|
name="${args.name}"
|
|
310
310
|
placeholder="${args.placeholder}"
|
|
311
|
-
readonly
|
|
312
|
-
required
|
|
311
|
+
?readonly=${args.readonly}
|
|
312
|
+
?required=${args.required}
|
|
313
313
|
type="text"
|
|
314
314
|
value="${args.value}">
|
|
315
315
|
<pds-button slot="action" variant="unstyled">
|
|
@@ -14,8 +14,8 @@ export default {
|
|
|
14
14
|
title: 'components/Link'
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
const BaseTemplate = (args) => html`<pds-link color=${args.color} external=${args.external} font-size=${args.fontSize} href=${args.href} component-id=${args.componentId} variant=${args.variant}></pds-link>`;
|
|
18
|
-
const BaseTemplateWithSlot = (args) => html` <pds-link color=${args.color} external=${args.external} font-size=${args.fontSize} href=${args.href} component-id=${args.componentId} variant=${args.variant}>${args.slot}</pds-link>`;
|
|
17
|
+
const BaseTemplate = (args) => html`<pds-link color=${args.color} ?external=${args.external} font-size=${args.fontSize} href=${args.href} component-id=${args.componentId} variant=${args.variant}></pds-link>`;
|
|
18
|
+
const BaseTemplateWithSlot = (args) => html` <pds-link color=${args.color} ?external=${args.external} font-size=${args.fontSize} href=${args.href} component-id=${args.componentId} variant=${args.variant}>${args.slot}</pds-link>`;
|
|
19
19
|
|
|
20
20
|
export const Colors = BaseTemplate.bind();
|
|
21
21
|
Colors.args = {
|
|
@@ -13,8 +13,8 @@ export default {
|
|
|
13
13
|
|
|
14
14
|
const BaseTemplate = (args) => html`
|
|
15
15
|
<pds-loader
|
|
16
|
-
is-loading
|
|
17
|
-
show-label
|
|
16
|
+
?is-loading=${args.isLoading}
|
|
17
|
+
?show-label=${args.showLabel}
|
|
18
18
|
size="${args.size}"
|
|
19
19
|
variant="${args.variant}"
|
|
20
20
|
>
|
|
@@ -33,4 +33,4 @@ Default.args = {
|
|
|
33
33
|
export const Typing = BaseTemplate.bind();
|
|
34
34
|
Typing.args = {
|
|
35
35
|
variant: 'typing'
|
|
36
|
-
};
|
|
36
|
+
};
|
|
@@ -30,8 +30,8 @@ const BaseTemplate = (args) => html`
|
|
|
30
30
|
id="${args.componentId}"
|
|
31
31
|
component-id="${args.componentId}"
|
|
32
32
|
size="${args.size}"
|
|
33
|
-
?backdrop-dismiss
|
|
34
|
-
?open
|
|
33
|
+
?backdrop-dismiss=${args.backdropDismiss}
|
|
34
|
+
?open=${args.open}
|
|
35
35
|
>
|
|
36
36
|
<pds-modal-header>
|
|
37
37
|
<pds-box direction="column" fit padding="md">
|
|
@@ -100,8 +100,8 @@ const DestructiveTemplate = (args) => html`
|
|
|
100
100
|
id="${args.componentId}"
|
|
101
101
|
component-id="${args.componentId}"
|
|
102
102
|
size="${args.size}"
|
|
103
|
-
?backdrop-dismiss
|
|
104
|
-
?open
|
|
103
|
+
?backdrop-dismiss=${args.backdropDismiss}
|
|
104
|
+
?open=${args.open}
|
|
105
105
|
>
|
|
106
106
|
<pds-modal-header>
|
|
107
107
|
<pds-box direction="column" fit padding="md">
|
|
@@ -166,8 +166,8 @@ const CustomContentTemplate = (args) => html`
|
|
|
166
166
|
<pds-modal
|
|
167
167
|
id="${args.componentId}"
|
|
168
168
|
size="${args.size}"
|
|
169
|
-
?backdrop-dismiss
|
|
170
|
-
?open
|
|
169
|
+
?backdrop-dismiss=${args.backdropDismiss}
|
|
170
|
+
?open=${args.open}
|
|
171
171
|
>
|
|
172
172
|
|
|
173
173
|
<pds-modal-header>
|
|
@@ -254,8 +254,8 @@ const ScrollableTemplate = (args) => {
|
|
|
254
254
|
<pds-modal
|
|
255
255
|
id="${args.componentId}"
|
|
256
256
|
size="${args.size}"
|
|
257
|
-
?backdrop-dismiss
|
|
258
|
-
?open
|
|
257
|
+
?backdrop-dismiss=${args.backdropDismiss}
|
|
258
|
+
?open=${args.open}
|
|
259
259
|
>
|
|
260
260
|
<pds-modal-header>
|
|
261
261
|
<pds-box direction="column" fit padding="md">
|
|
@@ -338,7 +338,7 @@ const FullscreenTemplate = (args) => html`
|
|
|
338
338
|
id="${args.componentId}"
|
|
339
339
|
size=${args.size}
|
|
340
340
|
?backdrop-dismiss=${args.backdropDismiss}
|
|
341
|
-
?open
|
|
341
|
+
?open=${args.open}
|
|
342
342
|
>
|
|
343
343
|
<pds-modal-header>
|
|
344
344
|
<pds-box
|
|
@@ -9,12 +9,12 @@ export default {
|
|
|
9
9
|
|
|
10
10
|
const BaseTemplate = (args) =>
|
|
11
11
|
html`<pds-progress
|
|
12
|
-
animated=${args.animated}
|
|
12
|
+
?animated=${args.animated}
|
|
13
13
|
component-id=${args.componentId}
|
|
14
14
|
fill-color=${args.fillColor}
|
|
15
15
|
label=${args.label}
|
|
16
16
|
percent=${args.percent}
|
|
17
|
-
show-percent=${args.showPercent}
|
|
17
|
+
?show-percent=${args.showPercent}
|
|
18
18
|
></pds-progress>`;
|
|
19
19
|
|
|
20
20
|
|
|
@@ -25,16 +25,16 @@ const BaseTemplate = (args) =>
|
|
|
25
25
|
html` <pds-radio
|
|
26
26
|
component-id=${args.componentId}
|
|
27
27
|
label=${args.label}
|
|
28
|
-
checked=${args.checked}
|
|
29
|
-
disabled=${args.disabled}
|
|
28
|
+
?checked=${args.checked}
|
|
29
|
+
?disabled=${args.disabled}
|
|
30
30
|
error-message=${args.errorMessage}
|
|
31
31
|
helper-message=${args.helperMessage}
|
|
32
|
-
hide-label=${args.hideLabel}
|
|
32
|
+
?hide-label=${args.hideLabel}
|
|
33
33
|
name=${args.name}
|
|
34
|
-
indeterminate=${args.indeterminate}
|
|
35
|
-
required=${args.required}
|
|
34
|
+
?indeterminate=${args.indeterminate}
|
|
35
|
+
?required=${args.required}
|
|
36
36
|
value=${args.value}
|
|
37
|
-
invalid=${args.invalid}
|
|
37
|
+
?invalid=${args.invalid}
|
|
38
38
|
/>`;
|
|
39
39
|
|
|
40
40
|
export const Default = BaseTemplate.bind();
|
|
@@ -9,34 +9,38 @@ export default {
|
|
|
9
9
|
|
|
10
10
|
const BaseTemplate = (args) => html`
|
|
11
11
|
<pds-row
|
|
12
|
-
align-items="${args.alignItems}"
|
|
13
|
-
border
|
|
14
|
-
component-id="${args.componentId}"
|
|
12
|
+
align-items="${args.alignItems}"
|
|
13
|
+
?border=${args.border}
|
|
14
|
+
component-id="${args.componentId}"
|
|
15
15
|
col-gap="${args.colGap}"
|
|
16
16
|
justify-content="${args.justifyContent}"
|
|
17
17
|
min-height="${args.minHeight}"
|
|
18
18
|
no-wrap="${args.noWrap}"
|
|
19
19
|
>
|
|
20
|
-
<pds-box
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
<pds-box>
|
|
21
|
+
<pds-box border>Item 1</pds-box>
|
|
22
|
+
</pds-box>
|
|
23
|
+
<pds-box>
|
|
24
|
+
<pds-box border direction="column">
|
|
25
|
+
<p>Content 1</p>
|
|
26
|
+
<p>Content 2</p>
|
|
27
|
+
</pds-box>
|
|
24
28
|
</pds-box>
|
|
25
29
|
</pds-row>
|
|
26
30
|
`;
|
|
27
31
|
|
|
28
32
|
export const Default = BaseTemplate.bind();
|
|
29
33
|
Default.args = {
|
|
30
|
-
border:
|
|
34
|
+
border: true,
|
|
31
35
|
componentId: 'opt0',
|
|
32
36
|
colGap: '8px',
|
|
33
37
|
};
|
|
34
38
|
|
|
35
39
|
const GapTemplate = (args) => html`
|
|
36
40
|
<pds-row
|
|
37
|
-
align-items="${args.alignItems}"
|
|
38
|
-
border
|
|
39
|
-
component-id="${args.componentId}"
|
|
41
|
+
align-items="${args.alignItems}"
|
|
42
|
+
?border=${args.border}
|
|
43
|
+
component-id="${args.componentId}"
|
|
40
44
|
col-gap="${args.colGap}"
|
|
41
45
|
justify-content="${args.justifyContent}"
|
|
42
46
|
min-height="${args.minHeight}"
|
|
@@ -67,7 +71,7 @@ const GapTemplate = (args) => html`
|
|
|
67
71
|
|
|
68
72
|
export const Gap = GapTemplate.bind();
|
|
69
73
|
Gap.args = {
|
|
70
|
-
border:
|
|
74
|
+
border: false,
|
|
71
75
|
componentId: 'opt0',
|
|
72
76
|
colGap: 'sm',
|
|
73
77
|
};
|
|
@@ -50,15 +50,15 @@ const BaseTemplate = (args) =>
|
|
|
50
50
|
html`<pds-select
|
|
51
51
|
autocomplete="${args.autocomplete}"
|
|
52
52
|
component-id="${args.componentId}"
|
|
53
|
-
disabled
|
|
53
|
+
?disabled=${args.disabled}
|
|
54
54
|
error-message="${args.errorMessage}"
|
|
55
55
|
helper-message="${args.helperMessage}"
|
|
56
|
-
hide-label
|
|
57
|
-
invalid
|
|
56
|
+
?hide-label=${args.hideLabel}
|
|
57
|
+
?invalid=${args.invalid}
|
|
58
58
|
label="${args.label}"
|
|
59
|
-
multiple
|
|
59
|
+
?multiple=${args.multiple}
|
|
60
60
|
name="${args.name}"
|
|
61
|
-
required
|
|
61
|
+
?required=${args.required}
|
|
62
62
|
type="${args.type}"
|
|
63
63
|
value="${args.value}"
|
|
64
64
|
>
|
|
@@ -70,14 +70,14 @@ const OptgroupTemplate = (args) =>
|
|
|
70
70
|
html`<pds-select
|
|
71
71
|
autocomplete="${args.autocomplete}"
|
|
72
72
|
component-id="${args.componentId}"
|
|
73
|
-
disabled
|
|
73
|
+
?disabled=${args.disabled}
|
|
74
74
|
error-message="${args.errorMessage}"
|
|
75
75
|
helper-message="${args.helperMessage}"
|
|
76
|
-
invalid
|
|
76
|
+
?invalid=${args.invalid}
|
|
77
77
|
label="${args.label}"
|
|
78
|
-
multiple
|
|
78
|
+
?multiple=${args.multiple}
|
|
79
79
|
name="${args.name}"
|
|
80
|
-
required
|
|
80
|
+
?required=${args.required}
|
|
81
81
|
type="${args.type}"
|
|
82
82
|
value="${args.value}"
|
|
83
83
|
>
|
|
@@ -159,15 +159,15 @@ WithOptgroup.args = {
|
|
|
159
159
|
export const withActionLink = (args) => html`<pds-select
|
|
160
160
|
autocomplete="${args.autocomplete}"
|
|
161
161
|
component-id="pds-select-action-link"
|
|
162
|
-
disabled
|
|
162
|
+
?disabled=${args.disabled}
|
|
163
163
|
error-message="${args.errorMessage}"
|
|
164
164
|
helper-message="${args.helperMessage}"
|
|
165
|
-
hide-label
|
|
166
|
-
invalid
|
|
165
|
+
?hide-label=${args.hideLabel}
|
|
166
|
+
?invalid=${args.invalid}
|
|
167
167
|
label="Timezone"
|
|
168
|
-
multiple
|
|
168
|
+
?multiple=${args.multiple}
|
|
169
169
|
name="timezone"
|
|
170
|
-
required
|
|
170
|
+
?required=${args.required}
|
|
171
171
|
type="${args.type}"
|
|
172
172
|
value="${args.value}">
|
|
173
173
|
<pds-link href="#" slot="action">
|
|
@@ -179,15 +179,15 @@ export const withActionLink = (args) => html`<pds-select
|
|
|
179
179
|
export const withActionButton = (args) => html`<pds-select
|
|
180
180
|
autocomplete="${args.autocomplete}"
|
|
181
181
|
component-id="pds-select-action-button"
|
|
182
|
-
disabled
|
|
182
|
+
?disabled=${args.disabled}
|
|
183
183
|
error-message="${args.errorMessage}"
|
|
184
184
|
helper-message="${args.helperMessage}"
|
|
185
|
-
hide-label
|
|
186
|
-
invalid
|
|
185
|
+
?hide-label=${args.hideLabel}
|
|
186
|
+
?invalid=${args.invalid}
|
|
187
187
|
label="Country"
|
|
188
|
-
multiple
|
|
188
|
+
?multiple=${args.multiple}
|
|
189
189
|
name="country"
|
|
190
|
-
required
|
|
190
|
+
?required=${args.required}
|
|
191
191
|
type="${args.type}"
|
|
192
192
|
value="${args.value}">
|
|
193
193
|
<pds-button slot="action" variant="unstyled">
|
|
@@ -15,21 +15,21 @@ export default {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
const BaseTemplate = (args) => html`
|
|
18
|
-
<pds-sortable border
|
|
18
|
+
<pds-sortable ?border=${args.border} component-id="${args.componentId}" ?dividers=${args.dividers} handle-type="${args.handleType}">
|
|
19
19
|
<pds-sortable-item>Item 1</pds-sortable-item>
|
|
20
20
|
<pds-sortable-item>Item 2</pds-sortable-item>
|
|
21
21
|
<pds-sortable-item>Item 3</pds-sortable-item>
|
|
22
22
|
</pds-sortable>`;
|
|
23
23
|
|
|
24
24
|
const HandleTemplate = (args) => html`
|
|
25
|
-
<pds-sortable border
|
|
25
|
+
<pds-sortable ?border=${args.border} component-id="${args.componentId}" ?dividers=${args.dividers} handle-type="${args.handleType}">
|
|
26
26
|
<pds-sortable-item>Item 1</pds-sortable-item>
|
|
27
27
|
<pds-sortable-item>Item 2</pds-sortable-item>
|
|
28
28
|
<pds-sortable-item>Item 3</pds-sortable-item>
|
|
29
29
|
</pds-sortable>`;
|
|
30
30
|
|
|
31
31
|
const ActionsTemplate = (args) => html`
|
|
32
|
-
<pds-sortable border
|
|
32
|
+
<pds-sortable ?border=${args.border} component-id="${args.componentId}" ?dividers=${args.dividers} handle-type="${args.handleType}">
|
|
33
33
|
<pds-sortable-item enable-actions>
|
|
34
34
|
<div>Item 1</div>
|
|
35
35
|
<div slot="sortable-item-actions">
|
|
@@ -51,7 +51,7 @@ const ActionsTemplate = (args) => html`
|
|
|
51
51
|
</pds-sortable>`;
|
|
52
52
|
|
|
53
53
|
const FullDemoTemplate = (args) => html`
|
|
54
|
-
<pds-sortable border
|
|
54
|
+
<pds-sortable ?border=${args.border} component-id="${args.componentId}" ?dividers=${args.dividers} handle-type="${args.handleType}">
|
|
55
55
|
<pds-sortable-item enable-actions>
|
|
56
56
|
<div>
|
|
57
57
|
<div><strong>Item 1</strong></div>
|
|
@@ -21,17 +21,17 @@ export default {
|
|
|
21
21
|
|
|
22
22
|
const BaseTemplate = (args) => html`
|
|
23
23
|
<pds-switch
|
|
24
|
-
checked=${args.checked}
|
|
24
|
+
?checked=${args.checked}
|
|
25
25
|
component-id=${args.componentId}
|
|
26
|
-
disabled=${args.disabled}
|
|
26
|
+
?disabled=${args.disabled}
|
|
27
27
|
error-message=${args.errorMessage}
|
|
28
28
|
helper-message=${args.helperMessage}
|
|
29
|
-
invalid=${args.invalid}
|
|
29
|
+
?invalid=${args.invalid}
|
|
30
30
|
label=${args.label}
|
|
31
|
-
hide-label=${args.hideLabel}
|
|
31
|
+
?hide-label=${args.hideLabel}
|
|
32
32
|
name=${args.name}
|
|
33
33
|
onChange=${args.onChange}
|
|
34
|
-
required=${args.required}
|
|
34
|
+
?required=${args.required}
|
|
35
35
|
type=${args.type}
|
|
36
36
|
/>
|
|
37
37
|
`;
|
|
@@ -16,11 +16,11 @@ export default {
|
|
|
16
16
|
|
|
17
17
|
const BaseTemplate = (args) => html`
|
|
18
18
|
<pds-table
|
|
19
|
-
compact
|
|
19
|
+
?compact=${args.compact}
|
|
20
20
|
component-id="${args.componentId}"
|
|
21
|
-
fixed-column
|
|
22
|
-
responsive
|
|
23
|
-
selectable
|
|
21
|
+
?fixed-column=${args.fixedColumn}
|
|
22
|
+
?responsive=${args.responsive}
|
|
23
|
+
?selectable=${args.selectable}
|
|
24
24
|
>
|
|
25
25
|
<pds-table-head>
|
|
26
26
|
<pds-table-head-cell>Column Title</pds-table-head-cell>
|
|
@@ -48,11 +48,11 @@ const BaseTemplate = (args) => html`
|
|
|
48
48
|
|
|
49
49
|
const ResponsiveTemplate = (args) => html`
|
|
50
50
|
<pds-table
|
|
51
|
-
compact
|
|
51
|
+
?compact=${args.compact}
|
|
52
52
|
component-id="${args.componentId}"
|
|
53
|
-
fixed-column
|
|
54
|
-
responsive
|
|
55
|
-
selectable
|
|
53
|
+
?fixed-column=${args.fixedColumn}
|
|
54
|
+
?responsive=${args.responsive}
|
|
55
|
+
?selectable=${args.selectable}
|
|
56
56
|
>
|
|
57
57
|
<pds-table-head>
|
|
58
58
|
<pds-table-head-cell>Column Title</pds-table-head-cell>
|
|
@@ -116,11 +116,11 @@ const ResponsiveTemplate = (args) => html`
|
|
|
116
116
|
|
|
117
117
|
const SortableTemplate = (args) => html`
|
|
118
118
|
<pds-table
|
|
119
|
-
compact
|
|
119
|
+
?compact=${args.compact}
|
|
120
120
|
component-id="${args.componentId}"
|
|
121
|
-
fixed-column
|
|
122
|
-
responsive
|
|
123
|
-
selectable
|
|
121
|
+
?fixed-column=${args.fixedColumn}
|
|
122
|
+
?responsive=${args.responsive}
|
|
123
|
+
?selectable=${args.selectable}
|
|
124
124
|
>
|
|
125
125
|
<pds-table-head>
|
|
126
126
|
<pds-table-head-cell sortable=${args.sortable}>Name</pds-table-head-cell>
|
|
@@ -37,18 +37,18 @@ export default {
|
|
|
37
37
|
|
|
38
38
|
const BaseTemplate = (args) => html`<pds-textarea
|
|
39
39
|
autocomplete="${args.autocomplete}"
|
|
40
|
-
clear-on-edit
|
|
40
|
+
?clear-on-edit=${args.clearOnEdit}
|
|
41
41
|
component-id="${args.componentId}"
|
|
42
|
-
disabled
|
|
42
|
+
?disabled=${args.disabled}
|
|
43
43
|
error-message="${args.errorMessage}"
|
|
44
44
|
helper-message="${args.helperMessage}"
|
|
45
|
-
invalid
|
|
45
|
+
?invalid=${args.invalid}
|
|
46
46
|
label="${args.label}"
|
|
47
47
|
name="${args.name}"
|
|
48
48
|
onChange="${args.onChange}"
|
|
49
49
|
placeholder="${args.placeholder}"
|
|
50
|
-
readonly
|
|
51
|
-
required
|
|
50
|
+
?readonly=${args.readonly}
|
|
51
|
+
?required=${args.required}
|
|
52
52
|
rows="${args.rows}"
|
|
53
53
|
value="${args.value}"
|
|
54
54
|
data-tooltip-id="foo"
|
|
@@ -134,18 +134,18 @@ Autocomplete.args = {
|
|
|
134
134
|
|
|
135
135
|
export const withActionLink = (args) => html`<pds-textarea
|
|
136
136
|
autocomplete="${args.autocomplete}"
|
|
137
|
-
clear-on-edit
|
|
137
|
+
?clear-on-edit=${args.clearOnEdit}
|
|
138
138
|
component-id="pds-textarea-action-link"
|
|
139
|
-
disabled
|
|
139
|
+
?disabled=${args.disabled}
|
|
140
140
|
error-message="${args.errorMessage}"
|
|
141
141
|
helper-message="${args.helperMessage}"
|
|
142
|
-
invalid
|
|
142
|
+
?invalid=${args.invalid}
|
|
143
143
|
label="Notes"
|
|
144
144
|
name="${args.name}"
|
|
145
145
|
onChange="${args.onChange}"
|
|
146
146
|
placeholder="${args.placeholder}"
|
|
147
|
-
readonly
|
|
148
|
-
required
|
|
147
|
+
?readonly=${args.readonly}
|
|
148
|
+
?required=${args.required}
|
|
149
149
|
rows="3"
|
|
150
150
|
value="${args.value}"
|
|
151
151
|
data-tooltip-id="foo"
|
|
@@ -157,18 +157,18 @@ export const withActionLink = (args) => html`<pds-textarea
|
|
|
157
157
|
|
|
158
158
|
export const withActionButton = (args) => html`<pds-textarea
|
|
159
159
|
autocomplete="${args.autocomplete}"
|
|
160
|
-
clear-on-edit
|
|
160
|
+
?clear-on-edit=${args.clearOnEdit}
|
|
161
161
|
component-id="pds-textarea-action-button"
|
|
162
|
-
disabled
|
|
162
|
+
?disabled=${args.disabled}
|
|
163
163
|
error-message="${args.errorMessage}"
|
|
164
164
|
helper-message="${args.helperMessage}"
|
|
165
|
-
invalid
|
|
165
|
+
?invalid=${args.invalid}
|
|
166
166
|
label="Description"
|
|
167
167
|
name="${args.name}"
|
|
168
168
|
onChange="${args.onChange}"
|
|
169
169
|
placeholder="${args.placeholder}"
|
|
170
|
-
readonly
|
|
171
|
-
required
|
|
170
|
+
?readonly=${args.readonly}
|
|
171
|
+
?required=${args.required}
|
|
172
172
|
rows="4"
|
|
173
173
|
value="${args.value}"
|
|
174
174
|
data-tooltip-id="foo"
|
|
@@ -18,7 +18,7 @@ export default {
|
|
|
18
18
|
|
|
19
19
|
const BaseTemplate = (args) => html`
|
|
20
20
|
<pds-toast
|
|
21
|
-
|
|
21
|
+
?dismissible=${args.dismissible}
|
|
22
22
|
component-id="${args.componentId}"
|
|
23
23
|
duration="${args.duration}"
|
|
24
24
|
icon="${args.icon || ''}"
|
|
@@ -29,7 +29,7 @@ const BaseTemplate = (args) => html`
|
|
|
29
29
|
|
|
30
30
|
const WithLinkTemplate = (args) => html`
|
|
31
31
|
<pds-toast
|
|
32
|
-
|
|
32
|
+
?dismissible=${args.dismissible}
|
|
33
33
|
component-id="${args.componentId}"
|
|
34
34
|
duration="${args.duration}"
|
|
35
35
|
icon="${args.icon || ''}"
|