@pine-ds/core 3.31.1 → 4.0.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/pds-box2.js +1 -1
- package/components/pds-chip2.js +1 -1
- package/components/pds-combobox.js +2 -2
- package/components/pds-text2.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pds-box.cjs.entry.js +10 -2
- package/dist/cjs/pds-chip.cjs.entry.js +62 -14
- package/dist/cjs/pds-combobox.cjs.entry.js +6 -6
- package/dist/cjs/pds-text.cjs.entry.js +1 -1
- package/dist/cjs/pine-core.cjs.js +1 -1
- package/dist/collection/components/pds-box/pds-box.css +32 -0
- package/dist/collection/components/pds-box/pds-box.js +85 -1
- package/dist/collection/components/pds-box/stories/pds-box.stories.js +5 -0
- package/dist/collection/components/pds-chip/pds-chip.css +18 -0
- package/dist/collection/components/pds-chip/pds-chip.js +79 -39
- package/dist/collection/components/pds-chip/stories/pds-chip.stories.js +12 -0
- package/dist/collection/components/pds-combobox/pds-combobox.js +6 -6
- package/dist/collection/components/pds-text/pds-text.css +5 -0
- package/dist/docs.json +103 -22
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pds-box.entry.js +10 -2
- package/dist/esm/pds-chip.entry.js +63 -15
- package/dist/esm/pds-combobox.entry.js +6 -6
- package/dist/esm/pds-text.entry.js +1 -1
- package/dist/esm/pine-core.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/pds-box.entry.js +1 -1
- package/dist/esm-es5/pds-chip.entry.js +1 -1
- package/dist/esm-es5/pds-combobox.entry.js +1 -1
- package/dist/esm-es5/pds-text.entry.js +1 -1
- package/dist/esm-es5/pine-core.js +1 -1
- package/dist/pine-core/{p-1b1ec833.system.entry.js → p-43d6ab33.system.entry.js} +1 -1
- package/dist/pine-core/p-6bc9b904.system.entry.js +1 -0
- package/dist/pine-core/p-7b97974e.system.entry.js +1 -0
- package/dist/pine-core/{p-87ba6d2b.entry.js → p-8249e027.entry.js} +1 -1
- package/dist/pine-core/p-8cb0eed9.entry.js +1 -0
- package/dist/pine-core/p-B1rytYxP.system.js +1 -1
- package/dist/pine-core/p-a8a1ae32.system.entry.js +1 -0
- package/dist/pine-core/{p-0aa85901.entry.js → p-ab0b992b.entry.js} +1 -1
- package/dist/pine-core/p-b8f288e8.entry.js +1 -0
- package/dist/pine-core/pine-core.esm.js +1 -1
- package/dist/types/components/pds-box/pds-box.d.ts +20 -0
- package/dist/types/components/pds-chip/pds-chip.d.ts +16 -6
- package/dist/types/components.d.ts +41 -9
- package/dist/types/{private/tmp/claude-501/-Users-qjason-Documents-GitHub/dc3bfd4f-fc9e-49b8-b152-4257ab4ca83c/scratchpad/pine-publish-backfill → home/runner/work/pine/pine}/libs/core/.stencil/scripts/vscode-custom-data-generator.d.ts +1 -1
- package/dist/vscode.html-data.json +31 -3
- package/hydrate/index.js +463 -405
- package/hydrate/index.mjs +463 -405
- package/package.json +2 -2
- package/dist/pine-core/p-3e3b3bf6.system.entry.js +0 -1
- package/dist/pine-core/p-79598750.system.entry.js +0 -1
- package/dist/pine-core/p-a9ef5295.entry.js +0 -1
- package/dist/pine-core/p-c52ad43b.system.entry.js +0 -1
- package/dist/pine-core/p-eb42ca18.entry.js +0 -1
|
@@ -92,10 +92,30 @@ export declare class PdsBox {
|
|
|
92
92
|
* If `true`, the box will have a border.
|
|
93
93
|
*/
|
|
94
94
|
border?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* If `true`, the box will have a border on the block-end edge. If `false`, the block-end edge will have no border.
|
|
97
|
+
* Overrides `border` for this edge.
|
|
98
|
+
*/
|
|
99
|
+
borderBlockEnd?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* If `true`, the box will have a border on the block-start edge. If `false`, the block-start edge will have no border.
|
|
102
|
+
* Overrides `border` for this edge.
|
|
103
|
+
*/
|
|
104
|
+
borderBlockStart?: boolean;
|
|
95
105
|
/**
|
|
96
106
|
* Defines the border color of the box.
|
|
97
107
|
*/
|
|
98
108
|
borderColor?: string;
|
|
109
|
+
/**
|
|
110
|
+
* If `true`, the box will have a border on the inline-end edge. If `false`, the inline-end edge will have no border.
|
|
111
|
+
* Overrides `border` for this edge.
|
|
112
|
+
*/
|
|
113
|
+
borderInlineEnd?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* If `true`, the box will have a border on the inline-start edge. If `false`, the inline-start edge will have no border.
|
|
116
|
+
* Overrides `border` for this edge.
|
|
117
|
+
*/
|
|
118
|
+
borderInlineStart?: boolean;
|
|
99
119
|
/**
|
|
100
120
|
* Defines how rounded the box corners are.
|
|
101
121
|
* @defaultValue none
|
|
@@ -5,6 +5,12 @@ import type { ChipSentimentType, ChipSizeType, ChipVariantType } from "../../uti
|
|
|
5
5
|
* @part button
|
|
6
6
|
*/
|
|
7
7
|
export declare class PdsChip {
|
|
8
|
+
el: HTMLPdsChipElement;
|
|
9
|
+
/** The label span that clips; the overflow anchor for the truncation tooltip. */
|
|
10
|
+
private labelTextEl?;
|
|
11
|
+
/** The node the tooltip is currently bound to, so a remount can re-bind. */
|
|
12
|
+
private tooltipBoundEl?;
|
|
13
|
+
private truncationCleanup;
|
|
8
14
|
/**
|
|
9
15
|
* A unique identifier used for the underlying component `id` attribute.
|
|
10
16
|
*/
|
|
@@ -19,12 +25,6 @@ export declare class PdsChip {
|
|
|
19
25
|
* The name of the icon to display before the chip text.
|
|
20
26
|
*/
|
|
21
27
|
icon?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Determines whether the chip should be displayed in a larger size. DEPRECATED.
|
|
24
|
-
* @defaultValue false
|
|
25
|
-
* @deprecated Use `size` prop instead. Set `size="lg"` for the large variant.
|
|
26
|
-
*/
|
|
27
|
-
large: boolean;
|
|
28
28
|
/**
|
|
29
29
|
* Sets the size of the chip.
|
|
30
30
|
* @defaultValue 'md'
|
|
@@ -63,16 +63,26 @@ export declare class PdsChip {
|
|
|
63
63
|
* @defaultValue 'Remove'
|
|
64
64
|
*/
|
|
65
65
|
dismissLabel: string;
|
|
66
|
+
/**
|
|
67
|
+
* Sets the maximum width of the chip, truncating the label with an ellipsis when it overflows.
|
|
68
|
+
* Accepts any CSS length (e.g. '200px', '20ch'). The slot is documented as label text — slotting richer markup may not truncate the way you expect.
|
|
69
|
+
*/
|
|
70
|
+
maxWidth?: string;
|
|
66
71
|
/**
|
|
67
72
|
* Event emitted when the close button is clicked on a tag variant chip.
|
|
68
73
|
*/
|
|
69
74
|
pdsTagCloseClick: EventEmitter<void>;
|
|
75
|
+
componentDidRender(): void;
|
|
76
|
+
disconnectedCallback(): void;
|
|
77
|
+
private initTruncationTooltip;
|
|
78
|
+
private destroyTruncationTooltip;
|
|
70
79
|
private handleCloseClick;
|
|
71
80
|
private get effectiveSize();
|
|
72
81
|
private classNames;
|
|
73
82
|
private get effectiveVariant();
|
|
74
83
|
private get iconSize();
|
|
75
84
|
private setChipContent;
|
|
85
|
+
private get hostStyles();
|
|
76
86
|
private renderCloseButton;
|
|
77
87
|
render(): any;
|
|
78
88
|
}
|
|
@@ -272,10 +272,26 @@ export namespace Components {
|
|
|
272
272
|
* @default false
|
|
273
273
|
*/
|
|
274
274
|
"border"?: boolean;
|
|
275
|
+
/**
|
|
276
|
+
* If `true`, the box will have a border on the block-end edge. If `false`, the block-end edge will have no border. Overrides `border` for this edge.
|
|
277
|
+
*/
|
|
278
|
+
"borderBlockEnd"?: boolean;
|
|
279
|
+
/**
|
|
280
|
+
* If `true`, the box will have a border on the block-start edge. If `false`, the block-start edge will have no border. Overrides `border` for this edge.
|
|
281
|
+
*/
|
|
282
|
+
"borderBlockStart"?: boolean;
|
|
275
283
|
/**
|
|
276
284
|
* Defines the border color of the box.
|
|
277
285
|
*/
|
|
278
286
|
"borderColor"?: string;
|
|
287
|
+
/**
|
|
288
|
+
* If `true`, the box will have a border on the inline-end edge. If `false`, the inline-end edge will have no border. Overrides `border` for this edge.
|
|
289
|
+
*/
|
|
290
|
+
"borderInlineEnd"?: boolean;
|
|
291
|
+
/**
|
|
292
|
+
* If `true`, the box will have a border on the inline-start edge. If `false`, the inline-start edge will have no border. Overrides `border` for this edge.
|
|
293
|
+
*/
|
|
294
|
+
"borderInlineStart"?: boolean;
|
|
279
295
|
/**
|
|
280
296
|
* Defines how rounded the box corners are.
|
|
281
297
|
* @defaultValue none
|
|
@@ -880,11 +896,9 @@ export namespace Components {
|
|
|
880
896
|
*/
|
|
881
897
|
"icon"?: string;
|
|
882
898
|
/**
|
|
883
|
-
*
|
|
884
|
-
* @defaultValue false
|
|
885
|
-
* @deprecated Use `size` prop instead. Set `size="lg"` for the large variant.
|
|
899
|
+
* Sets the maximum width of the chip, truncating the label with an ellipsis when it overflows. Accepts any CSS length (e.g. '200px', '20ch'). The slot is documented as label text — slotting richer markup may not truncate the way you expect.
|
|
886
900
|
*/
|
|
887
|
-
"
|
|
901
|
+
"maxWidth"?: string;
|
|
888
902
|
/**
|
|
889
903
|
* HTTP method to use for the remove action. Adds data-method and data-turbo-method attributes for Rails/Turbo compatibility. Only applies when removeUrl is provided.
|
|
890
904
|
*/
|
|
@@ -3538,10 +3552,26 @@ declare namespace LocalJSX {
|
|
|
3538
3552
|
* @default false
|
|
3539
3553
|
*/
|
|
3540
3554
|
"border"?: boolean;
|
|
3555
|
+
/**
|
|
3556
|
+
* If `true`, the box will have a border on the block-end edge. If `false`, the block-end edge will have no border. Overrides `border` for this edge.
|
|
3557
|
+
*/
|
|
3558
|
+
"borderBlockEnd"?: boolean;
|
|
3559
|
+
/**
|
|
3560
|
+
* If `true`, the box will have a border on the block-start edge. If `false`, the block-start edge will have no border. Overrides `border` for this edge.
|
|
3561
|
+
*/
|
|
3562
|
+
"borderBlockStart"?: boolean;
|
|
3541
3563
|
/**
|
|
3542
3564
|
* Defines the border color of the box.
|
|
3543
3565
|
*/
|
|
3544
3566
|
"borderColor"?: string;
|
|
3567
|
+
/**
|
|
3568
|
+
* If `true`, the box will have a border on the inline-end edge. If `false`, the inline-end edge will have no border. Overrides `border` for this edge.
|
|
3569
|
+
*/
|
|
3570
|
+
"borderInlineEnd"?: boolean;
|
|
3571
|
+
/**
|
|
3572
|
+
* If `true`, the box will have a border on the inline-start edge. If `false`, the inline-start edge will have no border. Overrides `border` for this edge.
|
|
3573
|
+
*/
|
|
3574
|
+
"borderInlineStart"?: boolean;
|
|
3545
3575
|
/**
|
|
3546
3576
|
* Defines how rounded the box corners are.
|
|
3547
3577
|
* @defaultValue none
|
|
@@ -4156,11 +4186,9 @@ declare namespace LocalJSX {
|
|
|
4156
4186
|
*/
|
|
4157
4187
|
"icon"?: string;
|
|
4158
4188
|
/**
|
|
4159
|
-
*
|
|
4160
|
-
* @defaultValue false
|
|
4161
|
-
* @deprecated Use `size` prop instead. Set `size="lg"` for the large variant.
|
|
4189
|
+
* Sets the maximum width of the chip, truncating the label with an ellipsis when it overflows. Accepts any CSS length (e.g. '200px', '20ch'). The slot is documented as label text — slotting richer markup may not truncate the way you expect.
|
|
4162
4190
|
*/
|
|
4163
|
-
"
|
|
4191
|
+
"maxWidth"?: string;
|
|
4164
4192
|
/**
|
|
4165
4193
|
* Event emitted when the close button is clicked on a tag variant chip.
|
|
4166
4194
|
*/
|
|
@@ -5939,7 +5967,11 @@ declare namespace LocalJSX {
|
|
|
5939
5967
|
"autoXl": boolean;
|
|
5940
5968
|
"backgroundColor": string;
|
|
5941
5969
|
"border": boolean;
|
|
5970
|
+
"borderBlockEnd": boolean;
|
|
5971
|
+
"borderBlockStart": boolean;
|
|
5942
5972
|
"borderColor": string;
|
|
5973
|
+
"borderInlineEnd": boolean;
|
|
5974
|
+
"borderInlineStart": boolean;
|
|
5943
5975
|
"borderRadius": `none` | `xs`| `sm` | `md` | `lg` | `circle`;
|
|
5944
5976
|
"direction": `row` | `column`;
|
|
5945
5977
|
"display": `flex` | `inline-flex` | `block` | `inline-block`;
|
|
@@ -6072,7 +6104,6 @@ declare namespace LocalJSX {
|
|
|
6072
6104
|
"componentId": string;
|
|
6073
6105
|
"dot": boolean;
|
|
6074
6106
|
"icon": string;
|
|
6075
|
-
"large": boolean;
|
|
6076
6107
|
"size": ChipSizeType;
|
|
6077
6108
|
"sentiment": ChipSentimentType;
|
|
6078
6109
|
"variant": ChipVariantType;
|
|
@@ -6080,6 +6111,7 @@ declare namespace LocalJSX {
|
|
|
6080
6111
|
"removeHttpMethod": 'get' | 'post' | 'put' | 'patch' | 'delete';
|
|
6081
6112
|
"removeTarget": '_blank' | '_self' | '_parent' | '_top';
|
|
6082
6113
|
"dismissLabel": string;
|
|
6114
|
+
"maxWidth": string;
|
|
6083
6115
|
}
|
|
6084
6116
|
interface PdsComboboxAttributes {
|
|
6085
6117
|
"componentId": string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JsonDocs } from '
|
|
1
|
+
import { JsonDocs } from '../../../../../../../../../stencil-public-runtime';
|
|
2
2
|
export declare function generateVSCodeCustomData(docs: JsonDocs, outputPath: string): void;
|
|
3
3
|
export default function vscodeCustomDataOutputTarget(outputPath?: string): {
|
|
4
4
|
type: "docs-custom";
|
|
@@ -580,6 +580,20 @@
|
|
|
580
580
|
"value": "If `true`, the box will have a border.\n\n**Default:** `false`"
|
|
581
581
|
}
|
|
582
582
|
},
|
|
583
|
+
{
|
|
584
|
+
"name": "border-block-end",
|
|
585
|
+
"description": {
|
|
586
|
+
"kind": "markdown",
|
|
587
|
+
"value": "If `true`, the box will have a border on the block-end edge. If `false`, the block-end edge will have no border.\nOverrides `border` for this edge."
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"name": "border-block-start",
|
|
592
|
+
"description": {
|
|
593
|
+
"kind": "markdown",
|
|
594
|
+
"value": "If `true`, the box will have a border on the block-start edge. If `false`, the block-start edge will have no border.\nOverrides `border` for this edge."
|
|
595
|
+
}
|
|
596
|
+
},
|
|
583
597
|
{
|
|
584
598
|
"name": "border-color",
|
|
585
599
|
"description": {
|
|
@@ -587,6 +601,20 @@
|
|
|
587
601
|
"value": "Defines the border color of the box."
|
|
588
602
|
}
|
|
589
603
|
},
|
|
604
|
+
{
|
|
605
|
+
"name": "border-inline-end",
|
|
606
|
+
"description": {
|
|
607
|
+
"kind": "markdown",
|
|
608
|
+
"value": "If `true`, the box will have a border on the inline-end edge. If `false`, the inline-end edge will have no border.\nOverrides `border` for this edge."
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"name": "border-inline-start",
|
|
613
|
+
"description": {
|
|
614
|
+
"kind": "markdown",
|
|
615
|
+
"value": "If `true`, the box will have a border on the inline-start edge. If `false`, the inline-start edge will have no border.\nOverrides `border` for this edge."
|
|
616
|
+
}
|
|
617
|
+
},
|
|
590
618
|
{
|
|
591
619
|
"name": "border-radius",
|
|
592
620
|
"description": {
|
|
@@ -7032,7 +7060,7 @@
|
|
|
7032
7060
|
"name": "pds-chip",
|
|
7033
7061
|
"description": {
|
|
7034
7062
|
"kind": "markdown",
|
|
7035
|
-
"value": "Chips are used to inform users about the status of an object or to associate properties with a parent. Commonly used in tabular data to indicate status.\n\n**Examples:**\n[Default](https://pine-design-system.netlify.app/?path=/docs/components-chip--docs#default), [Sentiment](https://pine-design-system.netlify.app/?path=/docs/components-chip--docs#sentiment), [Dot](https://pine-design-system.netlify.app/?path=/docs/components-chip--docs#dot), [Icon](https://pine-design-system.netlify.app/?path=/docs/components-chip--docs#icon), [Dropdown](https://pine-design-system.netlify.app/?path=/docs/components-chip--docs#dropdown), [Tag](https://pine-design-system.netlify.app/?path=/docs/components-chip--docs#tag), [Sizes](https://pine-design-system.netlify.app/?path=/docs/components-chip--docs#sizes)\n\n**Slots:**\n- `(default)` - The chip's label text.\n\n**CSS Parts:**\n- `button` - No description\n\n**Events:**\n- `pdsTagCloseClick` - Event emitted when the close button is clicked on a tag variant chip."
|
|
7063
|
+
"value": "Chips are used to inform users about the status of an object or to associate properties with a parent. Commonly used in tabular data to indicate status.\n\n**Examples:**\n[Default](https://pine-design-system.netlify.app/?path=/docs/components-chip--docs#default), [Sentiment](https://pine-design-system.netlify.app/?path=/docs/components-chip--docs#sentiment), [Dot](https://pine-design-system.netlify.app/?path=/docs/components-chip--docs#dot), [Icon](https://pine-design-system.netlify.app/?path=/docs/components-chip--docs#icon), [Dropdown](https://pine-design-system.netlify.app/?path=/docs/components-chip--docs#dropdown), [Tag](https://pine-design-system.netlify.app/?path=/docs/components-chip--docs#tag), [Sizes](https://pine-design-system.netlify.app/?path=/docs/components-chip--docs#sizes), [Truncating a long label](https://pine-design-system.netlify.app/?path=/docs/components-chip--docs#truncating-a-long-label)\n\n**Slots:**\n- `(default)` - The chip's label text.\n\n**CSS Parts:**\n- `button` - No description\n\n**Events:**\n- `pdsTagCloseClick` - Event emitted when the close button is clicked on a tag variant chip."
|
|
7036
7064
|
},
|
|
7037
7065
|
"attributes": [
|
|
7038
7066
|
{
|
|
@@ -7064,10 +7092,10 @@
|
|
|
7064
7092
|
}
|
|
7065
7093
|
},
|
|
7066
7094
|
{
|
|
7067
|
-
"name": "
|
|
7095
|
+
"name": "max-width",
|
|
7068
7096
|
"description": {
|
|
7069
7097
|
"kind": "markdown",
|
|
7070
|
-
"value": "
|
|
7098
|
+
"value": "Sets the maximum width of the chip, truncating the label with an ellipsis when it overflows.\nAccepts any CSS length (e.g. '200px', '20ch'). The slot is documented as label text — slotting richer markup may not truncate the way you expect."
|
|
7071
7099
|
}
|
|
7072
7100
|
},
|
|
7073
7101
|
{
|