@solid-design-system/components 1.6.0 → 1.7.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/dist/custom-elements.json +1 -1
- package/dist/versioned-components/es/accordion-group.js +1 -1
- package/dist/versioned-components/es/accordion.js +1 -1
- package/dist/versioned-components/es/badge.js +1 -1
- package/dist/versioned-components/es/brandshape.js +1 -1
- package/dist/versioned-components/es/button.js +2 -2
- package/dist/versioned-components/es/divider.js +1 -1
- package/dist/versioned-components/es/icon.js +1 -1
- package/dist/versioned-components/es/include.js +1 -1
- package/dist/versioned-components/es/link.js +1 -1
- package/dist/versioned-components/es/spinner.js +1 -1
- package/dist/versioned-components/es/teaser.js +1 -1
- package/dist/versioned-package/components/accordion/accordion.d.ts +1 -1
- package/dist/versioned-package/components/accordion/accordion.js +2 -2
- package/dist/versioned-package/components/accordion-group/accordion-group.d.ts +1 -1
- package/dist/versioned-package/components/accordion-group/accordion-group.js +3 -3
- package/dist/versioned-package/components/badge/badge.d.ts +1 -1
- package/dist/versioned-package/components/badge/badge.js +1 -1
- package/dist/versioned-package/components/brandshape/brandshape.d.ts +1 -1
- package/dist/versioned-package/components/brandshape/brandshape.js +1 -1
- package/dist/versioned-package/components/button/button.d.ts +1 -1
- package/dist/versioned-package/components/button/button.js +4 -4
- package/dist/versioned-package/components/divider/divider.d.ts +1 -1
- package/dist/versioned-package/components/divider/divider.js +2 -2
- package/dist/versioned-package/components/icon/icon.d.ts +1 -1
- package/dist/versioned-package/components/icon/icon.js +1 -1
- package/dist/versioned-package/components/include/include.d.ts +1 -1
- package/dist/versioned-package/components/include/include.js +1 -1
- package/dist/versioned-package/components/link/link.d.ts +1 -1
- package/dist/versioned-package/components/link/link.js +2 -2
- package/dist/versioned-package/components/spinner/spinner.d.ts +1 -1
- package/dist/versioned-package/components/spinner/spinner.js +1 -1
- package/dist/versioned-package/components/teaser/teaser.js +1 -1
- package/dist/versioned-package/internal/form.js +1 -1
- package/dist/vscode.html-custom-data.json +11 -11
- package/dist/web-types.json +12 -12
- package/package.json +25 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as t,i as e}from"./lit-element.js";import{S as i,n as r,e as s}from"./solid-element.js";import{t as a}from"./state.js";import{i as o}from"./query.js";import{H as n}from"./slot.js";import{t as l}from"./classix.js";var h=Object.defineProperty,d=Object.getOwnPropertyDescriptor,p=(t,e,i,r)=>{for(var s,a=r>1?void 0:r?d(e,i):e,o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r?s(e,i,a):s(a))||a);return r&&a&&h(e,i,a),a};let c=class extends i{constructor(){super(...arguments),this.variant="white",this.breakpoint=448,this.inset=!1,this.hasSlotController=new n(this,"[default]","media","meta","headline")}connectedCallback(){super.connectedCallback(),0===this.breakpoint?this._orientation="horizontal":9999===this.breakpoint?this._orientation="vertical":window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.updateOrientation())),this.resizeObserver.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver&&this.resizeObserver.disconnect()}updated(t){super.updated(t),t.has("breakpoint")&&this.updateOrientation()}updateOrientation(){this._orientation=this.offsetWidth>=this.breakpoint?"horizontal":"vertical"}render(){"white border-neutral-300"===this.variant&&(this.inset=!0);const e=this.hasSlotController.test("[default]"),i=this.hasSlotController.test("media"),r=this.hasSlotController.test("meta");return this.hasSlotController.test("headline"),t`<div class="${l("flex",{white:"bg-white","white border-neutral-300":"bg-white border border-neutral-300","neutral-100":"bg-neutral-100",primary:"bg-primary text-white","primary-100":"bg-primary-100"}[this.variant],"vertical"===this._orientation&&"flex-col","horizontal"===this._orientation&&"flex-row gap-8","horizontal"===this._orientation&&this.inset&&"py-8 px-10")}" part="base"><div style="${"horizontal"===this._orientation?"width: var(--distribution-media, 100%);":""}" class="${l(!this.inset&&"vertical"===this._orientation&&"mb-4",!i&&"hidden")}" part="media"><slot name="media"></slot></div><div style="${"horizontal"===this._orientation?"width: var(--distribution-content, 100%); "+(this.inset?"width: var(--distribution-content, calc(100% - 2rem));":""):""}" class="${l("flex flex-col text-left","horizontal"===this._orientation&&"flex flex-col","vertical"===this._orientation&&this.inset&&"m-4")}" part="content"><div part="meta" class="${l("gap-2 mb-4",!r&&"hidden")}"><slot name="meta"></slot></div><div part="headline" class="${l("text-lg font-bold m-0","primary"===this.variant?"text-white":"text-black")}"><slot name="headline">Always insert one semantically correct heading element here (e. g. <h2>)</slot></div><div part="main" class="${l(!e&&"hidden")}"><slot></slot></div></div></div>`}};c.styles=[i.styles,e`:host{display:block}::slotted(*){margin:0}::slotted([slot=headline]){font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700;margin:0!important}`],p([r({reflect:!0})],c.prototype,"variant",2),p([r({reflect:!0,type:Number})],c.prototype,"breakpoint",2),p([r({type:Boolean,reflect:!0})],c.prototype,"inset",2),p([o('[part="base"]')],c.prototype,"teaser",2),p([a()],c.prototype,"_orientation",2),c=p([s("sd-1-
|
|
1
|
+
import{x as t,i as e}from"./lit-element.js";import{S as i,n as r,e as s}from"./solid-element.js";import{t as a}from"./state.js";import{i as o}from"./query.js";import{H as n}from"./slot.js";import{t as l}from"./classix.js";var h=Object.defineProperty,d=Object.getOwnPropertyDescriptor,p=(t,e,i,r)=>{for(var s,a=r>1?void 0:r?d(e,i):e,o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r?s(e,i,a):s(a))||a);return r&&a&&h(e,i,a),a};let c=class extends i{constructor(){super(...arguments),this.variant="white",this.breakpoint=448,this.inset=!1,this.hasSlotController=new n(this,"[default]","media","meta","headline")}connectedCallback(){super.connectedCallback(),0===this.breakpoint?this._orientation="horizontal":9999===this.breakpoint?this._orientation="vertical":window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.updateOrientation())),this.resizeObserver.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver&&this.resizeObserver.disconnect()}updated(t){super.updated(t),t.has("breakpoint")&&this.updateOrientation()}updateOrientation(){this._orientation=this.offsetWidth>=this.breakpoint?"horizontal":"vertical"}render(){"white border-neutral-300"===this.variant&&(this.inset=!0);const e=this.hasSlotController.test("[default]"),i=this.hasSlotController.test("media"),r=this.hasSlotController.test("meta");return this.hasSlotController.test("headline"),t`<div class="${l("flex",{white:"bg-white","white border-neutral-300":"bg-white border border-neutral-300","neutral-100":"bg-neutral-100",primary:"bg-primary text-white","primary-100":"bg-primary-100"}[this.variant],"vertical"===this._orientation&&"flex-col","horizontal"===this._orientation&&"flex-row gap-8","horizontal"===this._orientation&&this.inset&&"py-8 px-10")}" part="base"><div style="${"horizontal"===this._orientation?"width: var(--distribution-media, 100%);":""}" class="${l(!this.inset&&"vertical"===this._orientation&&"mb-4",!i&&"hidden")}" part="media"><slot name="media"></slot></div><div style="${"horizontal"===this._orientation?"width: var(--distribution-content, 100%); "+(this.inset?"width: var(--distribution-content, calc(100% - 2rem));":""):""}" class="${l("flex flex-col text-left","horizontal"===this._orientation&&"flex flex-col","vertical"===this._orientation&&this.inset&&"m-4")}" part="content"><div part="meta" class="${l("gap-2 mb-4",!r&&"hidden")}"><slot name="meta"></slot></div><div part="headline" class="${l("text-lg font-bold m-0","primary"===this.variant?"text-white":"text-black")}"><slot name="headline">Always insert one semantically correct heading element here (e. g. <h2>)</slot></div><div part="main" class="${l(!e&&"hidden")}"><slot></slot></div></div></div>`}};c.styles=[i.styles,e`:host{display:block}::slotted(*){margin:0}::slotted([slot=headline]){font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700;margin:0!important}`],p([r({reflect:!0})],c.prototype,"variant",2),p([r({reflect:!0,type:Number})],c.prototype,"breakpoint",2),p([r({type:Boolean,reflect:!0})],c.prototype,"inset",2),p([o('[part="base"]')],c.prototype,"teaser",2),p([a()],c.prototype,"_orientation",2),c=p([s("sd-1-7-0-teaser")],c);export{c as default};
|
|
@@ -105,7 +105,7 @@ let SdAccordion = class extends SolidElement {
|
|
|
105
105
|
)}" role="button" aria-expanded="${this.open ? "true" : "false"}" aria-controls="content" tabindex="0" @click="${this.handleSummaryClick}" @keydown="${this.handleSummaryKeyDown}"><slot name="summary" part="summary" class="flex flex-auto items-center text-left">${this.summary}</slot><span part="summary-icon" class="${cx(
|
|
106
106
|
"flex flex-grow-0 flex-shrink-0 flex-auto items-center transition-all ease-in-out duration-300 text-xl",
|
|
107
107
|
this.open && "rotate-180"
|
|
108
|
-
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-1-
|
|
108
|
+
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-1-7-0-icon library="system" name="chevron-down"></sd-1-7-0-icon></slot><slot name="collapse-icon" class="${cx(!this.open && "hidden")}"><sd-1-7-0-icon library="system" name="chevron-down"></sd-1-7-0-icon></slot></span></header><div part="content" id="content" class="overflow-hidden"><slot class="block px-4 py-6" role="region" aria-labelledby="header"></slot></div></div>`;
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
111
|
SdAccordion.styles = [
|
|
@@ -131,7 +131,7 @@ __decorateClass([
|
|
|
131
131
|
watch("open", { waitUntilFirstUpdate: true })
|
|
132
132
|
], SdAccordion.prototype, "handleOpenChange", 1);
|
|
133
133
|
SdAccordion = __decorateClass([
|
|
134
|
-
customElement("sd-1-
|
|
134
|
+
customElement("sd-1-7-0-accordion")
|
|
135
135
|
], SdAccordion);
|
|
136
136
|
setDefaultAnimation("accordion.show", {
|
|
137
137
|
keyframes: [
|
|
@@ -47,16 +47,16 @@ let SdAccordionGroup = class extends SolidElement {
|
|
|
47
47
|
SdAccordionGroup.styles = [
|
|
48
48
|
componentStyles,
|
|
49
49
|
SolidElement.styles,
|
|
50
|
-
css`:host{display:block}::slotted(sd-1-
|
|
50
|
+
css`:host{display:block}::slotted(sd-1-7-0-accordion:not(:first-of-type)){margin-top:-1px}`
|
|
51
51
|
];
|
|
52
52
|
__decorateClass([
|
|
53
|
-
queryAssignedElements({ selector: "sd-1-
|
|
53
|
+
queryAssignedElements({ selector: "sd-1-7-0-accordion" })
|
|
54
54
|
], SdAccordionGroup.prototype, "_accordionsInDefaultSlot", 2);
|
|
55
55
|
__decorateClass([
|
|
56
56
|
property({ attribute: "close-others", type: Boolean })
|
|
57
57
|
], SdAccordionGroup.prototype, "closeOthers", 2);
|
|
58
58
|
SdAccordionGroup = __decorateClass([
|
|
59
|
-
customElement("sd-1-
|
|
59
|
+
customElement("sd-1-7-0-accordion-group")
|
|
60
60
|
], SdAccordionGroup);
|
|
61
61
|
export {
|
|
62
62
|
SdAccordionGroup as default
|
|
@@ -122,7 +122,7 @@ __decorateClass([
|
|
|
122
122
|
state()
|
|
123
123
|
], SdBrandshape.prototype, "componentBreakpoint", 2);
|
|
124
124
|
SdBrandshape = __decorateClass([
|
|
125
|
-
customElement("sd-1-
|
|
125
|
+
customElement("sd-1-7-0-brandshape")
|
|
126
126
|
], SdBrandshape);
|
|
127
127
|
export {
|
|
128
128
|
SdBrandshape as default
|
|
@@ -190,19 +190,19 @@ let SdButton = class extends SolidElement {
|
|
|
190
190
|
md: "ml-2",
|
|
191
191
|
lg: "ml-2"
|
|
192
192
|
}[this.size]
|
|
193
|
-
)}"></slot>${this.loading ? html`<sd-1-
|
|
193
|
+
)}"></slot>${this.loading ? html`<sd-1-7-0-spinner class="${cx("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-1-7-0-spinner>` : ""}</${tag}>`;
|
|
194
194
|
}
|
|
195
195
|
};
|
|
196
196
|
SdButton.styles = [
|
|
197
197
|
componentStyles,
|
|
198
198
|
SolidElement.styles,
|
|
199
|
-
css`:host{display:inline-block;position:relative;width:auto;cursor:pointer}sd-1-
|
|
199
|
+
css`:host{display:inline-block;position:relative;width:auto;cursor:pointer}sd-1-7-0-spinner{--indicator-color:currentColor;--track-color:var(--tw-varcolor-200)}::slotted(sd-1-7-0-badge){position:absolute;top:0;right:0;translate:50% -50%;pointer-events:none}::slotted(sd-1-7-0-icon),sd-1-7-0-spinner{font-size:calc(var(--tw-varspacing)/ 2)}`
|
|
200
200
|
];
|
|
201
201
|
__decorateClass([
|
|
202
202
|
query("a, button")
|
|
203
203
|
], SdButton.prototype, "button", 2);
|
|
204
204
|
__decorateClass([
|
|
205
|
-
queryAssignedElements({ selector: "sd-1-
|
|
205
|
+
queryAssignedElements({ selector: "sd-1-7-0-icon" })
|
|
206
206
|
], SdButton.prototype, "_iconsInDefaultSlot", 2);
|
|
207
207
|
__decorateClass([
|
|
208
208
|
state()
|
|
@@ -265,7 +265,7 @@ __decorateClass([
|
|
|
265
265
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
266
266
|
], SdButton.prototype, "handleDisabledChange", 1);
|
|
267
267
|
SdButton = __decorateClass([
|
|
268
|
-
customElement("sd-1-
|
|
268
|
+
customElement("sd-1-7-0-button")
|
|
269
269
|
], SdButton);
|
|
270
270
|
export {
|
|
271
271
|
SdButton as default
|
|
@@ -34,7 +34,7 @@ let SdDivider = class extends SolidElement {
|
|
|
34
34
|
SdDivider.styles = [
|
|
35
35
|
componentStyles,
|
|
36
36
|
SolidElement.styles,
|
|
37
|
-
css`:host{margin:0}:host(sd-1-
|
|
37
|
+
css`:host{margin:0}:host(sd-1-7-0-divider[orientation=horizontal]){display:block}:host(sd-1-7-0-divider[orientation=vertical]){display:inline-block}`
|
|
38
38
|
];
|
|
39
39
|
__decorateClass([
|
|
40
40
|
property({ reflect: true })
|
|
@@ -43,7 +43,7 @@ __decorateClass([
|
|
|
43
43
|
property({ type: Boolean, reflect: true })
|
|
44
44
|
], SdDivider.prototype, "inverted", 2);
|
|
45
45
|
SdDivider = __decorateClass([
|
|
46
|
-
customElement("sd-1-
|
|
46
|
+
customElement("sd-1-7-0-divider")
|
|
47
47
|
], SdDivider);
|
|
48
48
|
export {
|
|
49
49
|
SdDivider as default
|
|
@@ -76,7 +76,7 @@ let SdLink = class extends SolidElement {
|
|
|
76
76
|
};
|
|
77
77
|
SdLink.styles = [
|
|
78
78
|
SolidElement.styles,
|
|
79
|
-
css`::slotted(sd-1-
|
|
79
|
+
css`::slotted(sd-1-7-0-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-1-7-0-icon){font-size:1rem}:host([size=lg][standalone]) ::slotted(sd-1-7-0-icon){font-size:1.5rem}`
|
|
80
80
|
];
|
|
81
81
|
__decorateClass([
|
|
82
82
|
query("a")
|
|
@@ -100,7 +100,7 @@ __decorateClass([
|
|
|
100
100
|
property()
|
|
101
101
|
], SdLink.prototype, "download", 2);
|
|
102
102
|
SdLink = __decorateClass([
|
|
103
|
-
customElement("sd-1-
|
|
103
|
+
customElement("sd-1-7-0-link")
|
|
104
104
|
], SdLink);
|
|
105
105
|
export {
|
|
106
106
|
SdLink as default
|
|
@@ -90,7 +90,7 @@ class FormControlController {
|
|
|
90
90
|
const disabled = this.options.disabled(this.host);
|
|
91
91
|
const name = this.options.name(this.host);
|
|
92
92
|
const value = this.options.value(this.host);
|
|
93
|
-
const isButton = this.host.tagName.toLowerCase() === "sd-1-
|
|
93
|
+
const isButton = this.host.tagName.toLowerCase() === "sd-1-7-0-button";
|
|
94
94
|
if (!disabled && !isButton && typeof name === "string" && name.length > 0 && typeof value !== "undefined") {
|
|
95
95
|
if (Array.isArray(value)) {
|
|
96
96
|
value.forEach((val) => {
|
|
@@ -499,7 +499,7 @@
|
|
|
499
499
|
"references": []
|
|
500
500
|
},
|
|
501
501
|
{
|
|
502
|
-
"name": "sd-1-
|
|
502
|
+
"name": "sd-1-7-0-accordion-group",
|
|
503
503
|
"description": "Short summary of the component's intended use.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - The default slot where `<sd-accordion>` elements are placed.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
504
504
|
"attributes": [
|
|
505
505
|
{
|
|
@@ -511,7 +511,7 @@
|
|
|
511
511
|
"references": []
|
|
512
512
|
},
|
|
513
513
|
{
|
|
514
|
-
"name": "sd-1-
|
|
514
|
+
"name": "sd-1-7-0-accordion",
|
|
515
515
|
"description": "Accordion shows a brief summary and expands to show additional content.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-show** - Emitted when the accordion opens.\n- **sd-after-show** - Emitted after the accordion opens and all animations are complete.\n- **sd-hide** - Emitted when the accordion closes.\n- **sd-after-hide** - Emitted after the accordion closes and all animations are complete.\n\n### **Methods:**\n - **show()** - Shows the accordion.\n- **hide()** - Hides the accordion\n\n### **Slots:**\n - _default_ - The accordion main content.\n- **summary** - The accordion summary. Alternatively, you can use the `summary` attribute.\n- **expand-icon** - Optional expand icon to use instead of the default. Works best with `<sd-icon>`.\n- **collapse-icon** - Optional collapse icon to use instead of the default. Works best with `<sd-icon>`.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **header** - The header that wraps both the summary and the expand/collapse icon.\n- **summary** - The container that wraps the summary.\n- **summary-icon** - The container that wraps the expand/collapse icons.\n- **content** - The accordion content.",
|
|
516
516
|
"attributes": [
|
|
517
517
|
{
|
|
@@ -528,7 +528,7 @@
|
|
|
528
528
|
"references": []
|
|
529
529
|
},
|
|
530
530
|
{
|
|
531
|
-
"name": "sd-1-
|
|
531
|
+
"name": "sd-1-7-0-badge",
|
|
532
532
|
"description": "Badges are used to draw attention and display statuses or counts.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - The badge's content.\n\n### **CSS Parts:**\n - **base** - The badge's base wrapper.\n- **content** - The badge's main content.",
|
|
533
533
|
"attributes": [
|
|
534
534
|
{
|
|
@@ -570,7 +570,7 @@
|
|
|
570
570
|
"references": []
|
|
571
571
|
},
|
|
572
572
|
{
|
|
573
|
-
"name": "sd-1-
|
|
573
|
+
"name": "sd-1-7-0-brandshape",
|
|
574
574
|
"description": "The Brandshape highlights a piece of content.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - The content inside the brandshape.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **content** - Middle content wrapper.\n- **shape-top** - Top shape.\n- **shape-middle** - Middle shape.\n- **shape-bottom** - Bottom shape.",
|
|
575
575
|
"attributes": [
|
|
576
576
|
{
|
|
@@ -607,7 +607,7 @@
|
|
|
607
607
|
"references": []
|
|
608
608
|
},
|
|
609
609
|
{
|
|
610
|
-
"name": "sd-1-
|
|
610
|
+
"name": "sd-1-7-0-button",
|
|
611
611
|
"description": "Buttons represent actions that are available to the user.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-blur** - Emitted when the button loses focus.\n- **sd-focus** - Emitted when the button gains focus.\n\n### **Methods:**\n - **click()** - Simulates a click on the button.\n- **focus(options: _FocusOptions_)** - Sets focus on the button.\n- **blur()** - Removes focus from the button.\n- **checkValidity()** - Checks for validity but does not show the browser's validation message.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The button's label.\n- **icon-left** - A prefix icon or similar element.\n- **icon-right** - A suffix icon or similar element.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **icon-left** - The container that wraps the left icon area.\n- **label** - The button's label.\n- **icon-right** - The container that wraps the right icon area.",
|
|
612
612
|
"attributes": [
|
|
613
613
|
{
|
|
@@ -779,7 +779,7 @@
|
|
|
779
779
|
"references": []
|
|
780
780
|
},
|
|
781
781
|
{
|
|
782
|
-
"name": "sd-1-
|
|
782
|
+
"name": "sd-1-7-0-divider",
|
|
783
783
|
"description": "Dividers are used to visually separate or group elements.\n\n\n---\n\n\n",
|
|
784
784
|
"attributes": [
|
|
785
785
|
{
|
|
@@ -803,7 +803,7 @@
|
|
|
803
803
|
"references": []
|
|
804
804
|
},
|
|
805
805
|
{
|
|
806
|
-
"name": "sd-1-
|
|
806
|
+
"name": "sd-1-7-0-icon",
|
|
807
807
|
"description": "Icons are symbols that can be used to represent various options within an application.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-load** - Emitted when the icon has loaded.\n- **sd-error** - Emitted when the icon fails to load due to an error.",
|
|
808
808
|
"attributes": [
|
|
809
809
|
{
|
|
@@ -845,7 +845,7 @@
|
|
|
845
845
|
"references": []
|
|
846
846
|
},
|
|
847
847
|
{
|
|
848
|
-
"name": "sd-1-
|
|
848
|
+
"name": "sd-1-7-0-include",
|
|
849
849
|
"description": "Includes give you the power to embed external HTML files into the page.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-load** - Emitted when the included file is loaded.\n- **sd-error** - Emitted when the included file fails to load due to an error.",
|
|
850
850
|
"attributes": [
|
|
851
851
|
{
|
|
@@ -877,7 +877,7 @@
|
|
|
877
877
|
"references": []
|
|
878
878
|
},
|
|
879
879
|
{
|
|
880
|
-
"name": "sd-1-
|
|
880
|
+
"name": "sd-1-7-0-link",
|
|
881
881
|
"description": "A link component.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-blur** - Emitted when the link loses focus.\n- **sd-focus** - Emitted when the link gains focus.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the button.\n- **blur()** - Removes focus from the button.\n\n### **Slots:**\n - _default_ - The default slot.\n- **icon-left** - The icon to display on the left side of the link.\n- **icon-right** - The icon to display on the right side of the link.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **icon-left** - The container that wraps the left icon area.\n- **label** - The link's label.\n- **icon-right** - The container that wraps the right icon area.",
|
|
882
882
|
"attributes": [
|
|
883
883
|
{
|
|
@@ -937,7 +937,7 @@
|
|
|
937
937
|
"references": []
|
|
938
938
|
},
|
|
939
939
|
{
|
|
940
|
-
"name": "sd-1-
|
|
940
|
+
"name": "sd-1-7-0-spinner",
|
|
941
941
|
"description": "Spinners are used to show the progress of an indeterminate operation.\n\n\n---\n\n\n",
|
|
942
942
|
"attributes": [
|
|
943
943
|
{
|
|
@@ -959,7 +959,7 @@
|
|
|
959
959
|
"references": []
|
|
960
960
|
},
|
|
961
961
|
{
|
|
962
|
-
"name": "sd-1-
|
|
962
|
+
"name": "sd-1-7-0-teaser",
|
|
963
963
|
"description": "Teasers group information into flexible containers so users can browse a collection of related items and actions.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - An optional main content slot.\n- **media** - An optional media slot.\n- **meta** - An optional meta slot.\n- **headline** - headline slot.\n\n### **CSS Properties:**\n - **--distribution-media** - The distribution ratio of the media. _(default: undefined)_\n- **--distribution-content** - The distribution ratio of the content. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **media** - The container that wraps the media.\n- **content** - The container that wraps the content.\n- **meta** - The container that wraps the meta.\n- **headline** - The container that wraps the headline.\n- **main** - The container that wraps the main content.",
|
|
964
964
|
"attributes": [
|
|
965
965
|
{
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@solid-design-system/components",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.7.0",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework-config": {
|
|
7
7
|
"enable-when": {
|
|
@@ -1136,7 +1136,7 @@
|
|
|
1136
1136
|
]
|
|
1137
1137
|
},
|
|
1138
1138
|
{
|
|
1139
|
-
"name": "sd-1-
|
|
1139
|
+
"name": "sd-1-7-0-accordion-group",
|
|
1140
1140
|
"description": "",
|
|
1141
1141
|
"doc-url": "https://solid.union-investment.com/[storybook-link]/accordion-group",
|
|
1142
1142
|
"js": {
|
|
@@ -1166,7 +1166,7 @@
|
|
|
1166
1166
|
]
|
|
1167
1167
|
},
|
|
1168
1168
|
{
|
|
1169
|
-
"name": "sd-1-
|
|
1169
|
+
"name": "sd-1-7-0-accordion",
|
|
1170
1170
|
"description": "",
|
|
1171
1171
|
"doc-url": "https://solid.union-investment.com/[storybook-link]/accordion",
|
|
1172
1172
|
"js": {
|
|
@@ -1249,7 +1249,7 @@
|
|
|
1249
1249
|
]
|
|
1250
1250
|
},
|
|
1251
1251
|
{
|
|
1252
|
-
"name": "sd-1-
|
|
1252
|
+
"name": "sd-1-7-0-badge",
|
|
1253
1253
|
"description": "",
|
|
1254
1254
|
"doc-url": "https://solid.union-investment.com/[storybook-link]/badge",
|
|
1255
1255
|
"js": {
|
|
@@ -1303,7 +1303,7 @@
|
|
|
1303
1303
|
]
|
|
1304
1304
|
},
|
|
1305
1305
|
{
|
|
1306
|
-
"name": "sd-1-
|
|
1306
|
+
"name": "sd-1-7-0-brandshape",
|
|
1307
1307
|
"description": "",
|
|
1308
1308
|
"doc-url": "https://solid.union-investment.com/[storybook-link]/brandshape",
|
|
1309
1309
|
"js": {
|
|
@@ -1392,7 +1392,7 @@
|
|
|
1392
1392
|
]
|
|
1393
1393
|
},
|
|
1394
1394
|
{
|
|
1395
|
-
"name": "sd-1-
|
|
1395
|
+
"name": "sd-1-7-0-button",
|
|
1396
1396
|
"description": "",
|
|
1397
1397
|
"doc-url": "https://solid.union-investment.com/[storybook-link]/button",
|
|
1398
1398
|
"js": {
|
|
@@ -1731,7 +1731,7 @@
|
|
|
1731
1731
|
]
|
|
1732
1732
|
},
|
|
1733
1733
|
{
|
|
1734
|
-
"name": "sd-1-
|
|
1734
|
+
"name": "sd-1-7-0-divider",
|
|
1735
1735
|
"description": "",
|
|
1736
1736
|
"doc-url": "https://solid.union-investment.com/[storybook-link]/divider",
|
|
1737
1737
|
"js": {
|
|
@@ -1771,7 +1771,7 @@
|
|
|
1771
1771
|
]
|
|
1772
1772
|
},
|
|
1773
1773
|
{
|
|
1774
|
-
"name": "sd-1-
|
|
1774
|
+
"name": "sd-1-7-0-icon",
|
|
1775
1775
|
"description": "",
|
|
1776
1776
|
"doc-url": "https://solid.union-investment.com/[storybook-link]/icon",
|
|
1777
1777
|
"js": {
|
|
@@ -1880,7 +1880,7 @@
|
|
|
1880
1880
|
]
|
|
1881
1881
|
},
|
|
1882
1882
|
{
|
|
1883
|
-
"name": "sd-1-
|
|
1883
|
+
"name": "sd-1-7-0-include",
|
|
1884
1884
|
"description": "",
|
|
1885
1885
|
"doc-url": "https://solid.union-investment.com/[storybook-link]/include",
|
|
1886
1886
|
"js": {
|
|
@@ -1951,7 +1951,7 @@
|
|
|
1951
1951
|
]
|
|
1952
1952
|
},
|
|
1953
1953
|
{
|
|
1954
|
-
"name": "sd-1-
|
|
1954
|
+
"name": "sd-1-7-0-link",
|
|
1955
1955
|
"description": "",
|
|
1956
1956
|
"doc-url": "https://solid.union-investment.com/[storybook-link]/link",
|
|
1957
1957
|
"js": {
|
|
@@ -2078,7 +2078,7 @@
|
|
|
2078
2078
|
]
|
|
2079
2079
|
},
|
|
2080
2080
|
{
|
|
2081
|
-
"name": "sd-1-
|
|
2081
|
+
"name": "sd-1-7-0-spinner",
|
|
2082
2082
|
"description": "",
|
|
2083
2083
|
"doc-url": "https://solid.union-investment.com/[storybook-link]/spinner",
|
|
2084
2084
|
"js": {
|
|
@@ -2108,7 +2108,7 @@
|
|
|
2108
2108
|
]
|
|
2109
2109
|
},
|
|
2110
2110
|
{
|
|
2111
|
-
"name": "sd-1-
|
|
2111
|
+
"name": "sd-1-7-0-teaser",
|
|
2112
2112
|
"description": "",
|
|
2113
2113
|
"doc-url": "https://solid.union-investment.com/[storybook-link]/teaser",
|
|
2114
2114
|
"js": {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solid-design-system/components",
|
|
3
3
|
"description": "Solid Design System: Components",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.7.0",
|
|
5
5
|
"homepage": "https://solid-design-system.fe.union-investment.de/x.x.x/storybook/",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Union Investment"
|
|
@@ -26,6 +26,12 @@
|
|
|
26
26
|
"./versioned/*": {
|
|
27
27
|
"import": "./dist/versioned-package/components/*",
|
|
28
28
|
"types": "./dist/versioned-package/solid-components.d.ts"
|
|
29
|
+
},
|
|
30
|
+
"./unversioned-styles": {
|
|
31
|
+
"import": "./dist/styles/solid-styles.css"
|
|
32
|
+
},
|
|
33
|
+
"./versioned-styles": {
|
|
34
|
+
"import": "./dist/versioned-styles/solid-styles.css"
|
|
29
35
|
}
|
|
30
36
|
},
|
|
31
37
|
"files": [
|
|
@@ -44,20 +50,20 @@
|
|
|
44
50
|
"scripts": {
|
|
45
51
|
"start": "echo '❌ Please use `pnpm dev` instead.'",
|
|
46
52
|
"dev": "pnpm storybook",
|
|
47
|
-
"build": "pnpm build.components && pnpm build.package && pnpm build.storybook && node ./scripts/node-version-components.cjs",
|
|
53
|
+
"build": "pnpm build.components && pnpm build.package && pnpm build.storybook && node ./scripts/node-version-components.cjs && pnpm build.styles",
|
|
48
54
|
"build.cdn": "pnpm build.components && pnpm build.storybook && node ./scripts/node-version-components.cjs",
|
|
49
55
|
"build.npm": "pnpm build.components && pnpm build.package && node ./scripts/node-version-components.cjs",
|
|
50
56
|
"build.components": "vite build --config vite.config.js",
|
|
57
|
+
"build.styles": "vite build --config vite.config.styles.js",
|
|
51
58
|
"build.package": "pnpm build.package/create-index && vite build --config vite.config.package.js && pnpm build.package/remove-index",
|
|
52
59
|
"build.package/create-index": "node scripts/node-generate-package-index.cjs && echo '✅ Index created'",
|
|
53
60
|
"build.package/remove-index": "node -e \"require('fs').unlinkSync('src/solid-components.package.ts')\" && echo '✅ Index removed'",
|
|
54
|
-
"build.storybook": "storybook build --output-dir dist/storybook &&
|
|
55
|
-
"build.chromatic": "pnpm build.storybook &&
|
|
61
|
+
"build.storybook": "storybook build --output-dir dist/storybook && vite-node scripts/node-optimize-storybook.js",
|
|
62
|
+
"build.chromatic": "pnpm build.storybook && node ./scripts/node-optimize-chromatic.cjs",
|
|
56
63
|
"preview": "vite preview",
|
|
57
|
-
"verify": "pnpm ts.verify && pnpm build && echo '✅ Build verified' &&
|
|
64
|
+
"verify": "pnpm ts.verify && pnpm build && echo '✅ Build verified' && node ./scripts/node-optimize-chromatic.cjs && echo '✅ Chromatic optimization verified' && pnpm test.verify && echo '✅ Test verified'",
|
|
58
65
|
"ts.verify": "tsc --noEmit --project ./tsconfig.json && echo '✅ TypeScript verified'",
|
|
59
66
|
"plop": "plop --plopfile scripts/plop/plopfile.js",
|
|
60
|
-
"ci.optimize-chromatic": "node ./scripts/storybook/optimize-chromatic.cjs",
|
|
61
67
|
"test": "pnpm build.components && web-test-runner --group default",
|
|
62
68
|
"test.verify": "web-test-runner --group default",
|
|
63
69
|
"test.component": "web-test-runner -- --watch --group",
|
|
@@ -85,17 +91,17 @@
|
|
|
85
91
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
86
92
|
"@semantic-release/changelog": "^6.0.3",
|
|
87
93
|
"@semantic-release/git": "^10.0.1",
|
|
88
|
-
"@storybook/addon-essentials": "^7.
|
|
89
|
-
"@storybook/addon-interactions": "^7.
|
|
90
|
-
"@storybook/addon-links": "^7.
|
|
91
|
-
"@storybook/addon-mdx-gfm": "^7.
|
|
92
|
-
"@storybook/addons": "^7.
|
|
93
|
-
"@storybook/blocks": "^7.
|
|
94
|
-
"@storybook/jest": "^0.1
|
|
94
|
+
"@storybook/addon-essentials": "^7.3.2",
|
|
95
|
+
"@storybook/addon-interactions": "^7.3.2",
|
|
96
|
+
"@storybook/addon-links": "^7.3.2",
|
|
97
|
+
"@storybook/addon-mdx-gfm": "^7.3.2",
|
|
98
|
+
"@storybook/addons": "^7.3.2",
|
|
99
|
+
"@storybook/blocks": "^7.3.2",
|
|
100
|
+
"@storybook/jest": "^0.2.1",
|
|
95
101
|
"@storybook/testing-library": "^0.2.0",
|
|
96
|
-
"@storybook/theming": "^7.
|
|
97
|
-
"@storybook/web-components": "^7.
|
|
98
|
-
"@storybook/web-components-vite": "^7.
|
|
102
|
+
"@storybook/theming": "^7.3.2",
|
|
103
|
+
"@storybook/web-components": "^7.3.2",
|
|
104
|
+
"@storybook/web-components-vite": "^7.3.2",
|
|
99
105
|
"@types/mocha": "^10.0.1",
|
|
100
106
|
"@types/sinon": "^10.0.15",
|
|
101
107
|
"@web/test-runner": "^0.16.1",
|
|
@@ -119,17 +125,19 @@
|
|
|
119
125
|
"prettier": "^2.8.8",
|
|
120
126
|
"react": "^18.2.0",
|
|
121
127
|
"react-dom": "^18.2.0",
|
|
128
|
+
"rollup-plugin-copy": "^3.4.0",
|
|
122
129
|
"rollup-plugin-summary": "^2.0.0",
|
|
123
130
|
"semantic-release": "^19.0.5",
|
|
124
131
|
"semantic-release-monorepo": "^7.0.5",
|
|
125
132
|
"sinon": "^15.1.0",
|
|
126
|
-
"storybook": "^7.
|
|
133
|
+
"storybook": "^7.3.2",
|
|
127
134
|
"storybook-addon-designs": "7.0.0-beta.2",
|
|
128
135
|
"tailwindcss": "^3.3.2",
|
|
129
136
|
"terser": "^5.17.7",
|
|
130
137
|
"typescript": "5.0.4",
|
|
131
138
|
"user-agent-data-types": "^0.3.1",
|
|
132
139
|
"vite": "^4.3.9",
|
|
140
|
+
"vite-node": "^0.34.2",
|
|
133
141
|
"vite-plugin-cem": "^0.5.0",
|
|
134
142
|
"vite-tsconfig-paths": "^4.2.0"
|
|
135
143
|
},
|