@kanso-protocol/empty-state 0.1.0 → 0.5.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.
|
@@ -36,7 +36,7 @@ class KpEmptyStateComponent {
|
|
|
36
36
|
<div class="kp-es__actions">
|
|
37
37
|
<ng-content select="[kpEmptyStateActions]"/>
|
|
38
38
|
</div>
|
|
39
|
-
`, isInline: true, styles: [":host{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--kp-es-gap-it);box-sizing:border-box;padding:var(--kp-es-pad-v) 24px;width:100%;min-width:320px;font-family:var(--kp-font-family-sans, \"Onest\", system-ui, sans-serif)}.kp-es__illustration{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:var(--kp-es-ill-size);height:var(--kp-es-ill-size);border-radius:50%;background:var(--kp-color-empty-state-illustration-bg
|
|
39
|
+
`, isInline: true, styles: [":host{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--kp-es-gap-it);box-sizing:border-box;padding:var(--kp-es-pad-v) 24px;width:100%;min-width:320px;font-family:var(--kp-font-family-sans, \"Onest\", system-ui, sans-serif)}.kp-es__illustration{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:var(--kp-es-ill-size);height:var(--kp-es-ill-size);border-radius:50%;background:var(--kp-color-empty-state-illustration-bg);color:var(--kp-color-empty-state-illustration-icon)}.kp-es__illustration ::ng-deep svg{width:var(--kp-es-ill-icon);height:var(--kp-es-ill-icon)}.kp-es__text{display:flex;flex-direction:column;align-items:center;gap:var(--kp-es-gap-td);max-width:400px;text-align:center}.kp-es__title{margin:0;font-size:var(--kp-es-title-size);line-height:var(--kp-es-title-lh);font-weight:500;color:var(--kp-color-empty-state-fg-title)}.kp-es__desc{margin:0;font-size:var(--kp-es-desc-size);line-height:var(--kp-es-desc-lh);color:var(--kp-color-empty-state-fg-description)}.kp-es__actions{display:inline-flex;align-items:center;gap:8px;margin-top:calc(var(--kp-es-gap-ta) - var(--kp-es-gap-it))}.kp-es__actions:empty{display:none}:host(.kp-es--sm){--kp-es-ill-size: 48px;--kp-es-ill-icon: 24px;--kp-es-gap-it: 16px;--kp-es-gap-td: 4px;--kp-es-gap-ta: 16px;--kp-es-pad-v: 32px;--kp-es-title-size: 16px;--kp-es-title-lh: 24px;--kp-es-desc-size: 14px;--kp-es-desc-lh: 20px}:host(.kp-es--md){--kp-es-ill-size: 64px;--kp-es-ill-icon: 32px;--kp-es-gap-it: 20px;--kp-es-gap-td: 6px;--kp-es-gap-ta: 20px;--kp-es-pad-v: 48px;--kp-es-title-size: 18px;--kp-es-title-lh: 28px;--kp-es-desc-size: 16px;--kp-es-desc-lh: 24px}:host(.kp-es--lg){--kp-es-ill-size: 80px;--kp-es-ill-icon: 40px;--kp-es-gap-it: 24px;--kp-es-gap-td: 8px;--kp-es-gap-ta: 24px;--kp-es-pad-v: 64px;--kp-es-title-size: 20px;--kp-es-title-lh: 28px;--kp-es-desc-size: 16px;--kp-es-desc-lh: 24px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
40
40
|
}
|
|
41
41
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: KpEmptyStateComponent, decorators: [{
|
|
42
42
|
type: Component,
|
|
@@ -57,7 +57,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.7", ngImpor
|
|
|
57
57
|
<div class="kp-es__actions">
|
|
58
58
|
<ng-content select="[kpEmptyStateActions]"/>
|
|
59
59
|
</div>
|
|
60
|
-
`, styles: [":host{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--kp-es-gap-it);box-sizing:border-box;padding:var(--kp-es-pad-v) 24px;width:100%;min-width:320px;font-family:var(--kp-font-family-sans, \"Onest\", system-ui, sans-serif)}.kp-es__illustration{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:var(--kp-es-ill-size);height:var(--kp-es-ill-size);border-radius:50%;background:var(--kp-color-empty-state-illustration-bg
|
|
60
|
+
`, styles: [":host{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--kp-es-gap-it);box-sizing:border-box;padding:var(--kp-es-pad-v) 24px;width:100%;min-width:320px;font-family:var(--kp-font-family-sans, \"Onest\", system-ui, sans-serif)}.kp-es__illustration{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:var(--kp-es-ill-size);height:var(--kp-es-ill-size);border-radius:50%;background:var(--kp-color-empty-state-illustration-bg);color:var(--kp-color-empty-state-illustration-icon)}.kp-es__illustration ::ng-deep svg{width:var(--kp-es-ill-icon);height:var(--kp-es-ill-icon)}.kp-es__text{display:flex;flex-direction:column;align-items:center;gap:var(--kp-es-gap-td);max-width:400px;text-align:center}.kp-es__title{margin:0;font-size:var(--kp-es-title-size);line-height:var(--kp-es-title-lh);font-weight:500;color:var(--kp-color-empty-state-fg-title)}.kp-es__desc{margin:0;font-size:var(--kp-es-desc-size);line-height:var(--kp-es-desc-lh);color:var(--kp-color-empty-state-fg-description)}.kp-es__actions{display:inline-flex;align-items:center;gap:8px;margin-top:calc(var(--kp-es-gap-ta) - var(--kp-es-gap-it))}.kp-es__actions:empty{display:none}:host(.kp-es--sm){--kp-es-ill-size: 48px;--kp-es-ill-icon: 24px;--kp-es-gap-it: 16px;--kp-es-gap-td: 4px;--kp-es-gap-ta: 16px;--kp-es-pad-v: 32px;--kp-es-title-size: 16px;--kp-es-title-lh: 24px;--kp-es-desc-size: 14px;--kp-es-desc-lh: 20px}:host(.kp-es--md){--kp-es-ill-size: 64px;--kp-es-ill-icon: 32px;--kp-es-gap-it: 20px;--kp-es-gap-td: 6px;--kp-es-gap-ta: 20px;--kp-es-pad-v: 48px;--kp-es-title-size: 18px;--kp-es-title-lh: 28px;--kp-es-desc-size: 16px;--kp-es-desc-lh: 24px}:host(.kp-es--lg){--kp-es-ill-size: 80px;--kp-es-ill-icon: 40px;--kp-es-gap-it: 24px;--kp-es-gap-td: 8px;--kp-es-gap-ta: 24px;--kp-es-pad-v: 64px;--kp-es-title-size: 20px;--kp-es-title-lh: 28px;--kp-es-desc-size: 16px;--kp-es-desc-lh: 24px}\n"] }]
|
|
61
61
|
}], propDecorators: { size: [{
|
|
62
62
|
type: Input
|
|
63
63
|
}], title: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kanso-protocol-empty-state.mjs","sources":["../../../../../packages/components/empty-state/src/empty-state.component.ts","../../../../../packages/components/empty-state/src/kanso-protocol-empty-state.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\n\nexport type KpEmptyStateSize = 'sm' | 'md' | 'lg';\n\n/**\n * Kanso Protocol — EmptyState\n *\n * Centered placeholder for empty lists, missing data, or zero-result\n * screens. Composes a circular illustration container, title,\n * description, and an actions row. Project the illustration via\n * `[kpEmptyStateIcon]` and footer buttons via `[kpEmptyStateActions]`.\n */\n@Component({\n selector: 'kp-empty-state',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { '[class]': 'hostClasses' },\n template: `\n @if (showIllustration) {\n <div class=\"kp-es__illustration\">\n <ng-content select=\"[kpEmptyStateIcon]\"/>\n </div>\n }\n\n <div class=\"kp-es__text\">\n <h3 class=\"kp-es__title\">{{ title }}</h3>\n @if (showDescription) {\n <p class=\"kp-es__desc\">{{ description }}</p>\n }\n </div>\n\n <div class=\"kp-es__actions\">\n <ng-content select=\"[kpEmptyStateActions]\"/>\n </div>\n `,\n styles: [`\n :host {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: var(--kp-es-gap-it);\n box-sizing: border-box;\n padding: var(--kp-es-pad-v) 24px;\n width: 100%;\n min-width: 320px;\n font-family: var(--kp-font-family-sans, 'Onest', system-ui, sans-serif);\n }\n\n .kp-es__illustration {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 auto;\n width: var(--kp-es-ill-size);\n height: var(--kp-es-ill-size);\n border-radius: 50%;\n background: var(--kp-color-empty-state-illustration-bg
|
|
1
|
+
{"version":3,"file":"kanso-protocol-empty-state.mjs","sources":["../../../../../packages/components/empty-state/src/empty-state.component.ts","../../../../../packages/components/empty-state/src/kanso-protocol-empty-state.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\n\nexport type KpEmptyStateSize = 'sm' | 'md' | 'lg';\n\n/**\n * Kanso Protocol — EmptyState\n *\n * Centered placeholder for empty lists, missing data, or zero-result\n * screens. Composes a circular illustration container, title,\n * description, and an actions row. Project the illustration via\n * `[kpEmptyStateIcon]` and footer buttons via `[kpEmptyStateActions]`.\n */\n@Component({\n selector: 'kp-empty-state',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { '[class]': 'hostClasses' },\n template: `\n @if (showIllustration) {\n <div class=\"kp-es__illustration\">\n <ng-content select=\"[kpEmptyStateIcon]\"/>\n </div>\n }\n\n <div class=\"kp-es__text\">\n <h3 class=\"kp-es__title\">{{ title }}</h3>\n @if (showDescription) {\n <p class=\"kp-es__desc\">{{ description }}</p>\n }\n </div>\n\n <div class=\"kp-es__actions\">\n <ng-content select=\"[kpEmptyStateActions]\"/>\n </div>\n `,\n styles: [`\n :host {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: var(--kp-es-gap-it);\n box-sizing: border-box;\n padding: var(--kp-es-pad-v) 24px;\n width: 100%;\n min-width: 320px;\n font-family: var(--kp-font-family-sans, 'Onest', system-ui, sans-serif);\n }\n\n .kp-es__illustration {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 auto;\n width: var(--kp-es-ill-size);\n height: var(--kp-es-ill-size);\n border-radius: 50%;\n background: var(--kp-color-empty-state-illustration-bg);\n color: var(--kp-color-empty-state-illustration-icon);\n }\n .kp-es__illustration ::ng-deep svg {\n width: var(--kp-es-ill-icon);\n height: var(--kp-es-ill-icon);\n }\n\n .kp-es__text {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--kp-es-gap-td);\n max-width: 400px;\n text-align: center;\n }\n .kp-es__title {\n margin: 0;\n font-size: var(--kp-es-title-size);\n line-height: var(--kp-es-title-lh);\n font-weight: 500;\n color: var(--kp-color-empty-state-fg-title);\n }\n .kp-es__desc {\n margin: 0;\n font-size: var(--kp-es-desc-size);\n line-height: var(--kp-es-desc-lh);\n color: var(--kp-color-empty-state-fg-description);\n }\n\n .kp-es__actions {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n margin-top: calc(var(--kp-es-gap-ta) - var(--kp-es-gap-it));\n }\n .kp-es__actions:empty { display: none; }\n\n /* Sizes */\n :host(.kp-es--sm) {\n --kp-es-ill-size: 48px;\n --kp-es-ill-icon: 24px;\n --kp-es-gap-it: 16px;\n --kp-es-gap-td: 4px;\n --kp-es-gap-ta: 16px;\n --kp-es-pad-v: 32px;\n --kp-es-title-size: 16px;\n --kp-es-title-lh: 24px;\n --kp-es-desc-size: 14px;\n --kp-es-desc-lh: 20px;\n }\n :host(.kp-es--md) {\n --kp-es-ill-size: 64px;\n --kp-es-ill-icon: 32px;\n --kp-es-gap-it: 20px;\n --kp-es-gap-td: 6px;\n --kp-es-gap-ta: 20px;\n --kp-es-pad-v: 48px;\n --kp-es-title-size: 18px;\n --kp-es-title-lh: 28px;\n --kp-es-desc-size: 16px;\n --kp-es-desc-lh: 24px;\n }\n :host(.kp-es--lg) {\n --kp-es-ill-size: 80px;\n --kp-es-ill-icon: 40px;\n --kp-es-gap-it: 24px;\n --kp-es-gap-td: 8px;\n --kp-es-gap-ta: 24px;\n --kp-es-pad-v: 64px;\n --kp-es-title-size: 20px;\n --kp-es-title-lh: 28px;\n --kp-es-desc-size: 16px;\n --kp-es-desc-lh: 24px;\n }\n `],\n})\nexport class KpEmptyStateComponent {\n @Input() size: KpEmptyStateSize = 'md';\n @Input() title = '';\n @Input() description = '';\n @Input() showIllustration = true;\n @Input() showDescription = true;\n\n get hostClasses(): string {\n return `kp-es kp-es--${this.size}`;\n }\n}\n","/**\n * Generated bundle index.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EAAA,QAAA,EACxB;;;;;;;;;;;;;;;;;AAiBT,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,q4DAAA,CAAA,EAAA;;sBAqGA;;sBACA;;sBACA;;sBACA;;sBACA;;;AC3IH;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kanso-protocol/empty-state",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/core": "^18.0.0",
|
|
7
7
|
"@angular/common": "^18.0.0",
|
|
8
|
-
"@kanso-protocol/core": "
|
|
8
|
+
"@kanso-protocol/core": ">=0.5.3"
|
|
9
9
|
},
|
|
10
10
|
"description": "Kanso Protocol — empty-state (component).",
|
|
11
11
|
"author": "GregNBlack",
|