@luster-ui/ui 1.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.
Files changed (176) hide show
  1. package/PUBLISHING.md +469 -0
  2. package/README.md +423 -0
  3. package/dist/cjs/index-Couc0LVo.js +1571 -0
  4. package/dist/cjs/index.cjs.js +2 -0
  5. package/dist/cjs/loader.cjs.js +12 -0
  6. package/dist/cjs/luster-accordion_19.cjs.entry.js +555 -0
  7. package/dist/cjs/luster-card.cjs.entry.js +25 -0
  8. package/dist/cjs/luster.cjs.js +24 -0
  9. package/dist/collection/collection-manifest.json +32 -0
  10. package/dist/collection/components/luster-accordion/luster-accordion.css +76 -0
  11. package/dist/collection/components/luster-accordion/luster-accordion.js +160 -0
  12. package/dist/collection/components/luster-accordion/luster-accordion.stories.js +88 -0
  13. package/dist/collection/components/luster-activity-item/luster-activity-item.css +102 -0
  14. package/dist/collection/components/luster-activity-item/luster-activity-item.js +188 -0
  15. package/dist/collection/components/luster-activity-item/luster-activity-item.stories.js +94 -0
  16. package/dist/collection/components/luster-alert/luster-alert.css +71 -0
  17. package/dist/collection/components/luster-alert/luster-alert.js +171 -0
  18. package/dist/collection/components/luster-alert/luster-alert.stories.js +82 -0
  19. package/dist/collection/components/luster-article-card/luster-article-card.css +120 -0
  20. package/dist/collection/components/luster-article-card/luster-article-card.js +192 -0
  21. package/dist/collection/components/luster-article-card/luster-article-card.stories.js +82 -0
  22. package/dist/collection/components/luster-badge/luster-badge.css +38 -0
  23. package/dist/collection/components/luster-badge/luster-badge.js +87 -0
  24. package/dist/collection/components/luster-badge/luster-badge.stories.js +86 -0
  25. package/dist/collection/components/luster-button/luster-button.css +121 -0
  26. package/dist/collection/components/luster-button/luster-button.js +179 -0
  27. package/dist/collection/components/luster-button/luster-button.stories.js +103 -0
  28. package/dist/collection/components/luster-card/luster-card.css +29 -0
  29. package/dist/collection/components/luster-card/luster-card.js +92 -0
  30. package/dist/collection/components/luster-card/luster-card.stories.js +67 -0
  31. package/dist/collection/components/luster-checkbox/luster-checkbox.css +42 -0
  32. package/dist/collection/components/luster-checkbox/luster-checkbox.js +162 -0
  33. package/dist/collection/components/luster-checkbox/luster-checkbox.stories.js +78 -0
  34. package/dist/collection/components/luster-color-swatch/luster-color-swatch.css +33 -0
  35. package/dist/collection/components/luster-color-swatch/luster-color-swatch.js +108 -0
  36. package/dist/collection/components/luster-color-swatch/luster-color-swatch.stories.js +58 -0
  37. package/dist/collection/components/luster-feature-quote/luster-feature-quote.css +84 -0
  38. package/dist/collection/components/luster-feature-quote/luster-feature-quote.js +108 -0
  39. package/dist/collection/components/luster-feature-quote/luster-feature-quote.stories.js +52 -0
  40. package/dist/collection/components/luster-hero/luster-hero.css +119 -0
  41. package/dist/collection/components/luster-hero/luster-hero.js +129 -0
  42. package/dist/collection/components/luster-hero/luster-hero.stories.js +72 -0
  43. package/dist/collection/components/luster-input/luster-input.css +72 -0
  44. package/dist/collection/components/luster-input/luster-input.js +332 -0
  45. package/dist/collection/components/luster-input/luster-input.stories.js +106 -0
  46. package/dist/collection/components/luster-modal/luster-modal.css +103 -0
  47. package/dist/collection/components/luster-modal/luster-modal.js +215 -0
  48. package/dist/collection/components/luster-modal/luster-modal.stories.js +78 -0
  49. package/dist/collection/components/luster-navbar/luster-navbar.css +151 -0
  50. package/dist/collection/components/luster-navbar/luster-navbar.js +87 -0
  51. package/dist/collection/components/luster-navbar/luster-navbar.stories.js +41 -0
  52. package/dist/collection/components/luster-profile-card/luster-profile-card.css +89 -0
  53. package/dist/collection/components/luster-profile-card/luster-profile-card.js +194 -0
  54. package/dist/collection/components/luster-profile-card/luster-profile-card.stories.js +56 -0
  55. package/dist/collection/components/luster-resource-table/luster-resource-table.css +141 -0
  56. package/dist/collection/components/luster-resource-table/luster-resource-table.js +78 -0
  57. package/dist/collection/components/luster-resource-table/luster-resource-table.stories.js +44 -0
  58. package/dist/collection/components/luster-sidebar/luster-sidebar.css +152 -0
  59. package/dist/collection/components/luster-sidebar/luster-sidebar.js +78 -0
  60. package/dist/collection/components/luster-sidebar/luster-sidebar.stories.js +34 -0
  61. package/dist/collection/components/luster-stat-card/luster-stat-card.css +82 -0
  62. package/dist/collection/components/luster-stat-card/luster-stat-card.js +194 -0
  63. package/dist/collection/components/luster-stat-card/luster-stat-card.stories.js +75 -0
  64. package/dist/collection/components/luster-tabs/luster-tabs.css +35 -0
  65. package/dist/collection/components/luster-tabs/luster-tabs.js +116 -0
  66. package/dist/collection/components/luster-tabs/luster-tabs.stories.js +56 -0
  67. package/dist/collection/components/luster-toggle/luster-toggle.css +48 -0
  68. package/dist/collection/components/luster-toggle/luster-toggle.js +120 -0
  69. package/dist/collection/components/luster-toggle/luster-toggle.stories.js +66 -0
  70. package/dist/components/index.d.ts +33 -0
  71. package/dist/components/index.js +1 -0
  72. package/dist/components/luster-accordion.d.ts +11 -0
  73. package/dist/components/luster-accordion.js +1 -0
  74. package/dist/components/luster-activity-item.d.ts +11 -0
  75. package/dist/components/luster-activity-item.js +1 -0
  76. package/dist/components/luster-alert.d.ts +11 -0
  77. package/dist/components/luster-alert.js +1 -0
  78. package/dist/components/luster-article-card.d.ts +11 -0
  79. package/dist/components/luster-article-card.js +1 -0
  80. package/dist/components/luster-badge.d.ts +11 -0
  81. package/dist/components/luster-badge.js +1 -0
  82. package/dist/components/luster-badge2.js +1 -0
  83. package/dist/components/luster-button.d.ts +11 -0
  84. package/dist/components/luster-button.js +1 -0
  85. package/dist/components/luster-button2.js +1 -0
  86. package/dist/components/luster-card.d.ts +11 -0
  87. package/dist/components/luster-card.js +1 -0
  88. package/dist/components/luster-checkbox.d.ts +11 -0
  89. package/dist/components/luster-checkbox.js +1 -0
  90. package/dist/components/luster-color-swatch.d.ts +11 -0
  91. package/dist/components/luster-color-swatch.js +1 -0
  92. package/dist/components/luster-feature-quote.d.ts +11 -0
  93. package/dist/components/luster-feature-quote.js +1 -0
  94. package/dist/components/luster-hero.d.ts +11 -0
  95. package/dist/components/luster-hero.js +1 -0
  96. package/dist/components/luster-input.d.ts +11 -0
  97. package/dist/components/luster-input.js +1 -0
  98. package/dist/components/luster-modal.d.ts +11 -0
  99. package/dist/components/luster-modal.js +1 -0
  100. package/dist/components/luster-navbar.d.ts +11 -0
  101. package/dist/components/luster-navbar.js +1 -0
  102. package/dist/components/luster-profile-card.d.ts +11 -0
  103. package/dist/components/luster-profile-card.js +1 -0
  104. package/dist/components/luster-resource-table.d.ts +11 -0
  105. package/dist/components/luster-resource-table.js +1 -0
  106. package/dist/components/luster-sidebar.d.ts +11 -0
  107. package/dist/components/luster-sidebar.js +1 -0
  108. package/dist/components/luster-stat-card.d.ts +11 -0
  109. package/dist/components/luster-stat-card.js +1 -0
  110. package/dist/components/luster-tabs.d.ts +11 -0
  111. package/dist/components/luster-tabs.js +1 -0
  112. package/dist/components/luster-toggle.d.ts +11 -0
  113. package/dist/components/luster-toggle.js +1 -0
  114. package/dist/components/luster-toggle2.js +1 -0
  115. package/dist/esm/index-CeYIN8dN.js +1563 -0
  116. package/dist/esm/index.js +1 -0
  117. package/dist/esm/loader.js +10 -0
  118. package/dist/esm/luster-accordion_19.entry.js +535 -0
  119. package/dist/esm/luster-card.entry.js +23 -0
  120. package/dist/esm/luster.js +20 -0
  121. package/dist/index.cjs.js +1 -0
  122. package/dist/index.js +1 -0
  123. package/dist/luster/index.esm.js +0 -0
  124. package/dist/luster/luster.css +313 -0
  125. package/dist/luster/luster.esm.js +1 -0
  126. package/dist/luster/p-3c4ce897.entry.js +1 -0
  127. package/dist/luster/p-CeYIN8dN.js +2 -0
  128. package/dist/luster/p-e368ec08.entry.js +1 -0
  129. package/dist/types/.stencil/luster-accordion/luster-accordion.d.ts +13 -0
  130. package/dist/types/.stencil/luster-accordion/luster-accordion.stories.d.ts +10 -0
  131. package/dist/types/.stencil/luster-activity-item/luster-activity-item.d.ts +11 -0
  132. package/dist/types/.stencil/luster-activity-item/luster-activity-item.stories.d.ts +9 -0
  133. package/dist/types/.stencil/luster-alert/luster-alert.d.ts +13 -0
  134. package/dist/types/.stencil/luster-alert/luster-alert.stories.d.ts +10 -0
  135. package/dist/types/.stencil/luster-article-card/luster-article-card.d.ts +11 -0
  136. package/dist/types/.stencil/luster-article-card/luster-article-card.stories.d.ts +8 -0
  137. package/dist/types/.stencil/luster-badge/luster-badge.d.ts +6 -0
  138. package/dist/types/.stencil/luster-badge/luster-badge.stories.d.ts +12 -0
  139. package/dist/types/.stencil/luster-button/luster-button.d.ts +12 -0
  140. package/dist/types/.stencil/luster-button/luster-button.stories.d.ts +13 -0
  141. package/dist/types/.stencil/luster-card/luster-card.d.ts +6 -0
  142. package/dist/types/.stencil/luster-card/luster-card.stories.d.ts +10 -0
  143. package/dist/types/.stencil/luster-checkbox/luster-checkbox.d.ts +13 -0
  144. package/dist/types/.stencil/luster-checkbox/luster-checkbox.stories.d.ts +10 -0
  145. package/dist/types/.stencil/luster-color-swatch/luster-color-swatch.d.ts +7 -0
  146. package/dist/types/.stencil/luster-color-swatch/luster-color-swatch.stories.d.ts +8 -0
  147. package/dist/types/.stencil/luster-feature-quote/luster-feature-quote.d.ts +7 -0
  148. package/dist/types/.stencil/luster-feature-quote/luster-feature-quote.stories.d.ts +8 -0
  149. package/dist/types/.stencil/luster-hero/luster-hero.d.ts +8 -0
  150. package/dist/types/.stencil/luster-hero/luster-hero.stories.d.ts +8 -0
  151. package/dist/types/.stencil/luster-input/luster-input.d.ts +25 -0
  152. package/dist/types/.stencil/luster-input/luster-input.stories.d.ts +9 -0
  153. package/dist/types/.stencil/luster-modal/luster-modal.d.ts +17 -0
  154. package/dist/types/.stencil/luster-modal/luster-modal.stories.d.ts +8 -0
  155. package/dist/types/.stencil/luster-navbar/luster-navbar.d.ts +6 -0
  156. package/dist/types/.stencil/luster-navbar/luster-navbar.stories.d.ts +6 -0
  157. package/dist/types/.stencil/luster-profile-card/luster-profile-card.d.ts +11 -0
  158. package/dist/types/.stencil/luster-profile-card/luster-profile-card.stories.d.ts +7 -0
  159. package/dist/types/.stencil/luster-resource-table/luster-resource-table.d.ts +14 -0
  160. package/dist/types/.stencil/luster-resource-table/luster-resource-table.stories.d.ts +6 -0
  161. package/dist/types/.stencil/luster-sidebar/luster-sidebar.d.ts +9 -0
  162. package/dist/types/.stencil/luster-sidebar/luster-sidebar.stories.d.ts +8 -0
  163. package/dist/types/.stencil/luster-stat-card/luster-stat-card.d.ts +11 -0
  164. package/dist/types/.stencil/luster-stat-card/luster-stat-card.stories.d.ts +8 -0
  165. package/dist/types/.stencil/luster-tabs/luster-tabs.d.ts +15 -0
  166. package/dist/types/.stencil/luster-tabs/luster-tabs.stories.d.ts +7 -0
  167. package/dist/types/.stencil/luster-toggle/luster-toggle.d.ts +11 -0
  168. package/dist/types/.stencil/luster-toggle/luster-toggle.stories.d.ts +9 -0
  169. package/dist/types/components.d.ts +1355 -0
  170. package/dist/types/stencil-public-runtime.d.ts +1860 -0
  171. package/loader/cdn.js +1 -0
  172. package/loader/index.cjs.js +1 -0
  173. package/loader/index.d.ts +24 -0
  174. package/loader/index.es2017.js +1 -0
  175. package/loader/index.js +2 -0
  176. package/package.json +73 -0
@@ -0,0 +1,119 @@
1
+ :host { display: block; }
2
+
3
+ .hero {
4
+ position: relative;
5
+ min-height: 320px;
6
+ border-radius: var(--dc-round-4);
7
+ overflow: hidden;
8
+ display: flex;
9
+ align-items: flex-end;
10
+ }
11
+
12
+ .hero__bg {
13
+ position: absolute;
14
+ inset: 0;
15
+ }
16
+
17
+ .hero__bg-img {
18
+ width: 100%;
19
+ height: 100%;
20
+ object-fit: cover;
21
+ object-position: center;
22
+ }
23
+
24
+ .hero__bg-overlay {
25
+ position: absolute;
26
+ inset: 0;
27
+ background: var(--dc-overlay-surface);
28
+ }
29
+
30
+ .hero__bg-gradient {
31
+ position: absolute;
32
+ inset: 0;
33
+ background: linear-gradient(
34
+ to top,
35
+ var(--dc-image-overlay-bottom) 0%,
36
+ var(--dc-image-overlay-top) 50%,
37
+ transparent 100%
38
+ );
39
+ }
40
+
41
+ /* Parallax glow effect when no image */
42
+ .hero--parallax .hero__bg::before {
43
+ content: '';
44
+ position: absolute;
45
+ inset: 0;
46
+ background:
47
+ radial-gradient(ellipse at 20% 30%, var(--dc-hero-glow-primary) 0%, transparent 50%),
48
+ radial-gradient(ellipse at 80% 60%, var(--dc-hero-glow-dim) 0%, transparent 40%),
49
+ radial-gradient(ellipse at 50% 80%, var(--dc-hero-glow-secondary) 0%, transparent 40%),
50
+ var(--dc-surface-container);
51
+ z-index: 1;
52
+ }
53
+
54
+ .hero__content {
55
+ position: relative;
56
+ z-index: 2;
57
+ padding: var(--dc-space-10) var(--dc-space-10) var(--dc-space-8);
58
+ display: flex;
59
+ flex-direction: column;
60
+ gap: var(--dc-space-4);
61
+ width: 100%;
62
+ }
63
+
64
+ .hero__section {
65
+ font-size: var(--dc-label-sm);
66
+ font-weight: 700;
67
+ color: var(--dc-primary);
68
+ letter-spacing: var(--dc-tracking-wider);
69
+ text-transform: uppercase;
70
+ }
71
+
72
+ .hero__title {
73
+ font-family: var(--dc-font-display);
74
+ font-size: var(--dc-display-md);
75
+ font-weight: 800;
76
+ color: var(--dc-on-surface);
77
+ letter-spacing: var(--dc-tracking-tight);
78
+ line-height: 1.05;
79
+ margin: 0;
80
+ max-width: 560px;
81
+ }
82
+
83
+ .hero__subtitle {
84
+ font-size: var(--dc-body-md);
85
+ color: var(--dc-on-surface-variant);
86
+ max-width: 480px;
87
+ margin: 0;
88
+ line-height: 1.6;
89
+ }
90
+
91
+ .hero__actions {
92
+ display: flex;
93
+ gap: var(--dc-space-3);
94
+ flex-wrap: wrap;
95
+ }
96
+
97
+ .hero__layer-badge {
98
+ position: absolute;
99
+ top: var(--dc-space-4);
100
+ right: var(--dc-space-4);
101
+ z-index: 2;
102
+ display: flex;
103
+ flex-direction: column;
104
+ align-items: flex-end;
105
+ gap: 2px;
106
+ }
107
+
108
+ .hero__layer-text {
109
+ font-size: var(--dc-label-sm);
110
+ font-weight: 600;
111
+ color: var(--dc-hero-badge-text);
112
+ letter-spacing: var(--dc-tracking-wide);
113
+ }
114
+
115
+ .hero__layer-sub {
116
+ font-size: 10px;
117
+ color: var(--dc-hero-badge-sub);
118
+ font-family: monospace;
119
+ }
@@ -0,0 +1,129 @@
1
+ import { h } from "@stencil/core";
2
+ export class DcHero {
3
+ constructor() {
4
+ this.heading = '';
5
+ this.subtitle = '';
6
+ this.section = '';
7
+ this.imageUrl = '';
8
+ this.parallax = false;
9
+ }
10
+ render() {
11
+ return (h("section", { key: '1cb214e7059158e7153d468b9fa840ce98f10aeb', class: `hero ${this.parallax ? 'hero--parallax' : ''}` }, h("div", { key: '4547dbead7926629a4e915ea8cf33d56679baa49', class: "hero__bg" }, this.imageUrl && (h("img", { key: 'c07cc9f3c5416a05f6034ae5d4ac0a8ada6f6f8f', class: "hero__bg-img", src: this.imageUrl, alt: "", "aria-hidden": "true" })), h("div", { key: 'e81099f7d4601beac31e59058488195ac4a0fc22', class: "hero__bg-overlay" }), h("div", { key: 'e5cc125505c0b58ad75d31417b07d298743407ec', class: "hero__bg-gradient" })), h("div", { key: '74a713512ea9aba2e79202814b21d50017169576', class: "hero__content" }, this.section && (h("span", { key: '7d05f909669493c03fabc623b6716a8bd86e2493', class: "hero__section" }, this.section)), h("h1", { key: '4fdfe3e350c16222b084490593fb231d090b490a', class: "hero__title" }, this.heading), this.subtitle && (h("p", { key: 'f30209ac7d84bfe259b0852b2779c50bc1a9f4bd', class: "hero__subtitle" }, this.subtitle)), h("div", { key: 'b2f9656bdb0a921d95b328771457ac841ed03df9', class: "hero__actions" }, h("slot", { key: '758806782726fc7e4b66b037afe554e524d05c74' }))), h("div", { key: 'b6468db237dfc6b2e859117bd1419c746a8e0032', class: "hero__layer-badge" }, h("span", { key: '2bc5f3dc8f6b16bfb3ac18c76d8cd656e48c4bfa', class: "hero__layer-text" }, "Parallax Layer 01"), h("span", { key: '87d7d56dc8964cfd479e5cfea348424158f6fa7d', class: "hero__layer-sub" }, "depth: 0.3"))));
12
+ }
13
+ static get is() { return "luster-hero"; }
14
+ static get encapsulation() { return "shadow"; }
15
+ static get originalStyleUrls() {
16
+ return {
17
+ "$": ["luster-hero.css"]
18
+ };
19
+ }
20
+ static get styleUrls() {
21
+ return {
22
+ "$": ["luster-hero.css"]
23
+ };
24
+ }
25
+ static get properties() {
26
+ return {
27
+ "heading": {
28
+ "type": "string",
29
+ "mutable": false,
30
+ "complexType": {
31
+ "original": "string",
32
+ "resolved": "string",
33
+ "references": {}
34
+ },
35
+ "required": false,
36
+ "optional": false,
37
+ "docs": {
38
+ "tags": [],
39
+ "text": ""
40
+ },
41
+ "getter": false,
42
+ "setter": false,
43
+ "reflect": false,
44
+ "attribute": "heading",
45
+ "defaultValue": "''"
46
+ },
47
+ "subtitle": {
48
+ "type": "string",
49
+ "mutable": false,
50
+ "complexType": {
51
+ "original": "string",
52
+ "resolved": "string",
53
+ "references": {}
54
+ },
55
+ "required": false,
56
+ "optional": false,
57
+ "docs": {
58
+ "tags": [],
59
+ "text": ""
60
+ },
61
+ "getter": false,
62
+ "setter": false,
63
+ "reflect": false,
64
+ "attribute": "subtitle",
65
+ "defaultValue": "''"
66
+ },
67
+ "section": {
68
+ "type": "string",
69
+ "mutable": false,
70
+ "complexType": {
71
+ "original": "string",
72
+ "resolved": "string",
73
+ "references": {}
74
+ },
75
+ "required": false,
76
+ "optional": false,
77
+ "docs": {
78
+ "tags": [],
79
+ "text": ""
80
+ },
81
+ "getter": false,
82
+ "setter": false,
83
+ "reflect": false,
84
+ "attribute": "section",
85
+ "defaultValue": "''"
86
+ },
87
+ "imageUrl": {
88
+ "type": "string",
89
+ "mutable": false,
90
+ "complexType": {
91
+ "original": "string",
92
+ "resolved": "string",
93
+ "references": {}
94
+ },
95
+ "required": false,
96
+ "optional": false,
97
+ "docs": {
98
+ "tags": [],
99
+ "text": ""
100
+ },
101
+ "getter": false,
102
+ "setter": false,
103
+ "reflect": false,
104
+ "attribute": "image-url",
105
+ "defaultValue": "''"
106
+ },
107
+ "parallax": {
108
+ "type": "boolean",
109
+ "mutable": false,
110
+ "complexType": {
111
+ "original": "boolean",
112
+ "resolved": "boolean",
113
+ "references": {}
114
+ },
115
+ "required": false,
116
+ "optional": false,
117
+ "docs": {
118
+ "tags": [],
119
+ "text": ""
120
+ },
121
+ "getter": false,
122
+ "setter": false,
123
+ "reflect": false,
124
+ "attribute": "parallax",
125
+ "defaultValue": "false"
126
+ }
127
+ };
128
+ }
129
+ }
@@ -0,0 +1,72 @@
1
+ import { html } from "lit";
2
+ const meta = {
3
+ title: 'Layout/Hero',
4
+ tags: ['autodocs'],
5
+ parameters: {
6
+ docs: {
7
+ description: {
8
+ component: 'Banner hero de topo de página com suporte a imagem de fundo e parallax. Props: `heading`, `subtitle`, `section`, `image-url`, `parallax`.',
9
+ },
10
+ },
11
+ layout: 'fullscreen',
12
+ },
13
+ argTypes: {
14
+ heading: { control: 'text', description: 'Título principal' },
15
+ subtitle: { control: 'text', description: 'Subtítulo / descrição' },
16
+ section: { control: 'text', description: 'Rótulo de seção acima do título' },
17
+ imageUrl: { control: 'text', description: 'URL da imagem de fundo' },
18
+ parallax: {
19
+ control: 'boolean',
20
+ description: 'Ativa indicador de camada parallax',
21
+ table: { defaultValue: { summary: 'false' } },
22
+ },
23
+ },
24
+ args: {
25
+ heading: 'Design without limits',
26
+ subtitle: 'An editorial design system built for modern publishing teams.',
27
+ section: 'FOUNDATIONS',
28
+ imageUrl: '',
29
+ parallax: false,
30
+ },
31
+ };
32
+ export default meta;
33
+ const render = (args) => html `
34
+ <luster-hero
35
+ heading="${args.heading}"
36
+ subtitle="${args.subtitle}"
37
+ section="${args.section}"
38
+ image-url="${args.imageUrl}"
39
+ ?parallax="${args.parallax}"
40
+ >
41
+ <luster-button variant="primary">Get Started</luster-button>
42
+ <luster-button variant="secondary">View Docs</luster-button>
43
+ </luster-hero>
44
+ `;
45
+ export const Default = { render };
46
+ export const WithParallax = {
47
+ name: 'With Parallax Badge',
48
+ args: { parallax: true },
49
+ render,
50
+ };
51
+ export const MinimalHero = {
52
+ name: 'Minimal',
53
+ args: { section: '', subtitle: '' },
54
+ render,
55
+ };
56
+ export const FullPage = {
57
+ name: 'Full Page Layout',
58
+ render: () => html `
59
+ <div>
60
+ <luster-navbar></luster-navbar>
61
+ <luster-hero
62
+ heading="The Digital Curator"
63
+ subtitle="Editorial-first Web Components built for modern publishing."
64
+ section="DESIGN SYSTEM"
65
+ ?parallax="${true}"
66
+ >
67
+ <luster-button variant="primary">Explore Components</luster-button>
68
+ <luster-button variant="secondary">Read Docs</luster-button>
69
+ </luster-hero>
70
+ </div>
71
+ `,
72
+ };
@@ -0,0 +1,72 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ .input-wrapper {
6
+ display: flex;
7
+ flex-direction: column;
8
+ gap: var(--dc-space-2);
9
+ }
10
+
11
+ .input__label {
12
+ font-family: var(--dc-font-body);
13
+ font-size: var(--dc-label-md);
14
+ font-weight: 600;
15
+ color: var(--dc-on-surface-variant);
16
+ letter-spacing: var(--dc-tracking-wide);
17
+ text-transform: uppercase;
18
+ }
19
+
20
+ .input__field-box {
21
+ position: relative;
22
+ border-radius: var(--dc-round-2);
23
+ border: 1px solid var(--dc-border-faint);
24
+ background: var(--dc-surface-container-lowest);
25
+ transition: border-color var(--dc-transition-base), box-shadow var(--dc-transition-base);
26
+ overflow: hidden;
27
+ }
28
+
29
+ .input-wrapper--focused .input__field-box {
30
+ border-color: var(--dc-primary);
31
+ box-shadow: 0 0 0 3px var(--dc-focus-ring);
32
+ }
33
+
34
+ .input-wrapper--error .input__field-box {
35
+ border-color: var(--dc-error);
36
+ box-shadow: 0 0 0 3px var(--dc-error-focus-ring);
37
+ }
38
+
39
+ .input-wrapper--disabled {
40
+ opacity: 0.5;
41
+ pointer-events: none;
42
+ }
43
+
44
+ .input__field {
45
+ display: block;
46
+ width: 100%;
47
+ padding: var(--dc-space-2) var(--dc-space-4);
48
+ background: transparent;
49
+ border: none;
50
+ outline: none;
51
+ color: var(--dc-on-surface);
52
+ font-family: var(--dc-font-body);
53
+ font-size: var(--dc-body-md);
54
+ height: 44px;
55
+ }
56
+
57
+ .input__field::placeholder {
58
+ color: var(--dc-on-surface-variant);
59
+ opacity: 0.6;
60
+ }
61
+
62
+ .input__message {
63
+ display: flex;
64
+ align-items: center;
65
+ gap: var(--dc-space-1);
66
+ font-size: var(--dc-label-sm);
67
+ color: var(--dc-on-surface-variant);
68
+ }
69
+
70
+ .input__message--error {
71
+ color: var(--dc-error);
72
+ }