@tmorrow/cre8-wc 1.1.4 → 1.1.7

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 (27) hide show
  1. package/lib/components/card/card.d.ts.map +1 -1
  2. package/lib/components/card/card.js +1 -1
  3. package/lib/components/card/card.js.map +1 -1
  4. package/lib/components/card/card.styles.d.ts +1 -1
  5. package/lib/components/card/card.styles.d.ts.map +1 -1
  6. package/lib/components/card/card.styles.js +339 -2
  7. package/lib/components/card/card.styles.js.map +1 -1
  8. package/lib/components/field/field.styles.d.ts.map +1 -1
  9. package/lib/components/field/field.styles.js +359 -1
  10. package/lib/components/field/field.styles.js.map +1 -1
  11. package/lib/components/inline-alert/inline-alert.styles.d.ts.map +1 -1
  12. package/lib/components/inline-alert/inline-alert.styles.js +392 -1
  13. package/lib/components/inline-alert/inline-alert.styles.js.map +1 -1
  14. package/lib/design-tokens/brands/cre8-a2ui/css/tokens_brand.css +2 -0
  15. package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.d.ts +1 -1
  16. package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.d.ts.map +1 -1
  17. package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.js +7 -3
  18. package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.js.map +1 -1
  19. package/lib/design-tokens/core/scss/theming/component.scss +1 -1
  20. package/lib/design-tokens/core/scss/theming/variables.css +39 -1
  21. package/lib/design-tokens/core/scss/theming/variables.scss +3 -1
  22. package/lib/scripts/generate-mcp-manifest.d.ts +8 -0
  23. package/lib/scripts/generate-mcp-manifest.d.ts.map +1 -0
  24. package/lib/scripts/generate-mcp-manifest.js +350 -0
  25. package/lib/scripts/generate-mcp-manifest.js.map +1 -0
  26. package/mcp-manifest.json +3844 -0
  27. package/package.json +7 -3
@@ -1 +1 @@
1
- {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../components/card/card.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C;;;;;;;;;;;;;;;;;;;EAmBE;AACF,qBAAa,QAAS,SAAQ,WAAW;IACrC,MAAM,CAAC,MAAM,4BAAY;IAE3B;;;;;;OAMG;IAEC,OAAO,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,iBAAiB,CAAC;IAExD;;;OAGG;IAEC,KAAK,CAAC,EAAE,QAAQ,CAAC;IAErB,MAAM;CAoBP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF;AAED,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../components/card/card.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C;;;;;;;;;;;;;;;;;;;EAmBE;AACF,qBAAa,QAAS,SAAQ,WAAW;IACvC,MAAM,CAAC,MAAM,4BAAY;IAEzB;;;;;;OAMG;IAEH,OAAO,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,iBAAiB,CAAC;IAEpD;;;OAGG;IAEH,KAAK,CAAC,EAAE,QAAQ,CAAC;IAEjB,MAAM;CAoBP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF;AAED,eAAe,QAAQ,CAAC"}
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  import { html, } from 'lit';
8
8
  import { property } from 'lit/decorators.js';
9
9
  import { Cre8Element } from '../cre8-element';
10
- import styles from './card.styles.js';
10
+ import { styles } from './card.styles.js';
11
11
  /** The card component acts a general container element sectioned off by slots: `header`, `body`, `footer`.
12
12
  *
13
13
  * # How to Use
@@ -1 +1 @@
1
- {"version":3,"file":"card.js","sourceRoot":"","sources":["../../../components/card/card.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,GAAI,MAAM,KAAK,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,MAAM,MAAM,kBAAkB,CAAC;AAEtC;;;;;;;;;;;;;;;;;;;EAmBE;AACF,MAAM,OAAO,QAAS,SAAQ,WAAW;IAoBvC,MAAM;QACF,MAAM,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,CAAC,aAAa,EAAE;YAChE,mBAAmB,EAAE,IAAI,CAAC,OAAO,KAAK,MAAM;YAC5C,yBAAyB,EAAE,IAAI,CAAC,OAAO,KAAK,YAAY;YACxD,8BAA8B,EAAE,IAAI,CAAC,OAAO,KAAK,iBAAiB;YAClE,2BAA2B,EAAE,IAAI,CAAC,KAAK,KAAK,QAAQ;SACvD,CAAC,CAAC;QAEH,OAAO,IAAI,CAAA;oBACG,mBAAmB;UAC7B,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC;eACxB,IAAI,CAAA,kFAAkF;;;;UAIzF,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC;eACxB,IAAI,CAAA,kFAAkF;;KAE9F,CAAC;IACJ,CAAC;;AAtCQ,eAAM,GAAG,CAAC,MAAM,CAAC,CAAC;AAUvB;IADH,QAAQ,EAAE;yCAC6C;AAOpD;IADH,QAAQ,EAAE;uCACU;AAwBvB,IAAI,cAAc,CAAC,GAAG,CAAC,WAAW,CAAC,KAAK,SAAS,EAAE,CAAC;IAChD,cAAc,CAAC,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AACjD,CAAC;AAQD,eAAe,QAAQ,CAAC","sourcesContent":["import { html, } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { Cre8Element } from '../cre8-element';\nimport styles from './card.styles.js';\n\n/** The card component acts a general container element sectioned off by slots: `header`, `body`, `footer`.\n*\n* # How to Use\n* 1. Wrap the card component tags around any html template code which has been properly imported into the file.\n* 2. Decide the layout that best fits the designs assigned to your work.\n* Generally, we recommend visual elements appear in the `header` (optional slot),\n* while `body` remains reserved for custom html content that gives further context and meaning to the `header`.\n* 3. The card defaults to a column and includes a `horizontal` directional variant.\n* If you have a card where the layout of the content is more aligned horizontally,\n* using the `horizontal` variant will ease the construction of your component\n* 4. Finally, we typically recommend reserving the footer for any interactive elements\n* such as buttons for navigating to further information.\n*\n*\n* NOTE: Adjusting props not mentioned above may result in unpredictable states\n*\n* @slot body - The card's body content\n* @slot header - (Optional) Content in the card's header\n* @slot footer - (Optional) Content in the card's footer\n*/\nexport class Cre8Card extends Cre8Element {\n static styles = [styles];\n\n /**\n * Style variants\n * - **bare** renders a card without a border and without padding around the content\n * - **horizontal** renders a card with header, body, footer oriented in a row rather than a column\n * - **horizontal-bare** renders a card with header, body, footer oriented in a row rather than a column\n * without a border and without padding around the content\n */\n @property()\n variant?: 'bare' | 'horizontal' | 'horizontal-bare';\n\n /**\n * Alignment variant\n * - **center** renders a card that has center aligned content/text\n */\n @property()\n align?: 'center';\n\n render() {\n const componentClassNames = this.componentClassNames('cre8-c-card', {\n 'cre8-c-card--bare': this.variant === 'bare',\n 'cre8-c-card--horizontal': this.variant === 'horizontal',\n 'cre8-c-card--horizontal-bare': this.variant === 'horizontal-bare',\n 'cre8-c-card--align-center': this.align === 'center',\n });\n\n return html`\n <div class=\"${componentClassNames}\" part=\"card\">\n ${this.slotNotEmpty('header')\n && html`<div class=\"cre8-c-card__header\" part=\"header\"><slot name=\"header\"></slot></div>`}\n <div class=\"cre8-c-card__body\" part=\"body\">\n <slot></slot>\n </div>\n ${this.slotNotEmpty('footer')\n && html`<div class=\"cre8-c-card__footer\" part=\"footer\"><slot name=\"footer\"></slot></div>`}\n </div>\n `;\n }\n}\n\nif (customElements.get('cre8-card') === undefined) {\n customElements.define('cre8-card', Cre8Card);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'cre8-card': Cre8Card;\n }\n}\n\nexport default Cre8Card;\n"]}
1
+ {"version":3,"file":"card.js","sourceRoot":"","sources":["../../../components/card/card.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,GAAG,MAAM,KAAK,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C;;;;;;;;;;;;;;;;;;;EAmBE;AACF,MAAM,OAAO,QAAS,SAAQ,WAAW;IAoBvC,MAAM;QACJ,MAAM,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,CAAC,aAAa,EAAE;YAClE,mBAAmB,EAAE,IAAI,CAAC,OAAO,KAAK,MAAM;YAC5C,yBAAyB,EAAE,IAAI,CAAC,OAAO,KAAK,YAAY;YACxD,8BAA8B,EAAE,IAAI,CAAC,OAAO,KAAK,iBAAiB;YAClE,2BAA2B,EAAE,IAAI,CAAC,KAAK,KAAK,QAAQ;SACrD,CAAC,CAAC;QAEH,OAAO,IAAI,CAAA;oBACK,mBAAmB;UAC7B,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC;eAC5B,IAAI,CAAA,kFAAkF;;;;UAIrF,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC;eAC5B,IAAI,CAAA,kFAAkF;;KAE1F,CAAC;IACJ,CAAC;;AAtCM,eAAM,GAAG,CAAC,MAAM,CAAC,CAAC;AAUzB;IADC,QAAQ,EAAE;yCACyC;AAOpD;IADC,QAAQ,EAAE;uCACM;AAwBnB,IAAI,cAAc,CAAC,GAAG,CAAC,WAAW,CAAC,KAAK,SAAS,EAAE,CAAC;IAClD,cAAc,CAAC,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AAC/C,CAAC;AAQD,eAAe,QAAQ,CAAC","sourcesContent":["import { html, } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { Cre8Element } from '../cre8-element';\nimport { styles } from './card.styles.js';\n\n/** The card component acts a general container element sectioned off by slots: `header`, `body`, `footer`.\n*\n* # How to Use\n* 1. Wrap the card component tags around any html template code which has been properly imported into the file.\n* 2. Decide the layout that best fits the designs assigned to your work.\n* Generally, we recommend visual elements appear in the `header` (optional slot),\n* while `body` remains reserved for custom html content that gives further context and meaning to the `header`.\n* 3. The card defaults to a column and includes a `horizontal` directional variant.\n* If you have a card where the layout of the content is more aligned horizontally,\n* using the `horizontal` variant will ease the construction of your component\n* 4. Finally, we typically recommend reserving the footer for any interactive elements\n* such as buttons for navigating to further information.\n*\n*\n* NOTE: Adjusting props not mentioned above may result in unpredictable states\n*\n* @slot body - The card's body content\n* @slot header - (Optional) Content in the card's header\n* @slot footer - (Optional) Content in the card's footer\n*/\nexport class Cre8Card extends Cre8Element {\n static styles = [styles];\n\n /**\n * Style variants\n * - **bare** renders a card without a border and without padding around the content\n * - **horizontal** renders a card with header, body, footer oriented in a row rather than a column\n * - **horizontal-bare** renders a card with header, body, footer oriented in a row rather than a column\n * without a border and without padding around the content\n */\n @property()\n variant?: 'bare' | 'horizontal' | 'horizontal-bare';\n\n /**\n * Alignment variant\n * - **center** renders a card that has center aligned content/text\n */\n @property()\n align?: 'center';\n\n render() {\n const componentClassNames = this.componentClassNames('cre8-c-card', {\n 'cre8-c-card--bare': this.variant === 'bare',\n 'cre8-c-card--horizontal': this.variant === 'horizontal',\n 'cre8-c-card--horizontal-bare': this.variant === 'horizontal-bare',\n 'cre8-c-card--align-center': this.align === 'center',\n });\n\n return html`\n <div class=\"${componentClassNames}\" part=\"card\">\n ${this.slotNotEmpty('header')\n && html`<div class=\"cre8-c-card__header\" part=\"header\"><slot name=\"header\"></slot></div>`}\n <div class=\"cre8-c-card__body\" part=\"body\">\n <slot></slot>\n </div>\n ${this.slotNotEmpty('footer')\n && html`<div class=\"cre8-c-card__footer\" part=\"footer\"><slot name=\"footer\"></slot></div>`}\n </div>\n `;\n }\n}\n\nif (customElements.get('cre8-card') === undefined) {\n customElements.define('cre8-card', Cre8Card);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'cre8-card': Cre8Card;\n }\n}\n\nexport default Cre8Card;\n"]}
@@ -1,3 +1,3 @@
1
1
  declare const styles: import("lit").CSSResult;
2
- export default styles;
2
+ export { styles };
3
3
  //# sourceMappingURL=card.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"card.styles.d.ts","sourceRoot":"","sources":["../../../components/card/card.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAAovF,CAAC;AACjwF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"card.styles.d.ts","sourceRoot":"","sources":["../../../components/card/card.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAiVV,CAAC;AACH,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -1,4 +1,341 @@
1
1
  import { css } from 'lit';
2
- const styles = css `*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{display:block}.cre8-c-card{overflow:hidden;display:flex;flex-direction:column;height:100%;width:100%;padding:1.5rem;gap:1rem;border-color:var(--cre8-color-border-default);border-style:var(--cre8-border-style-default);border-width:var(--cre8-border-width-default);border-radius:var(--cre8-border-radius-default);background:var(--cre8-color-bg-default)}.cre8-c-card--horizontal{flex-direction:row;align-items:center;justify-content:center}.cre8-c-card--bare{border:0;padding:0;gap:0;box-shadow:none}.cre8-c-card--horizontal-bare{flex-direction:row;border:0;padding:0;gap:0;box-shadow:none;align-items:center;justify-content:center}.cre8-c-card--align-center{text-align:center;align-items:center;justify-content:center}::slotted(img){width:100%}.cre8-c-card__header{display:block;flex:none}.cre8-c-card__body{display:block;flex:1 1 auto}.cre8-c-card__footer{display:block;flex:none}.cre8-c-card--bare .cre8-c-card__footer{padding:0}.cre8-c-card--horizontal-bare .cre8-c-card__footer{padding:0}`;
3
- export default styles;
2
+ const styles = css `/**
3
+ * Border-Box http:/paulirish.com/2012/box-sizing-border-box-ftw/
4
+ */
5
+ *,
6
+ ::slotted(*),
7
+ *:before,
8
+ *:after {
9
+ box-sizing: border-box;
10
+ }
11
+
12
+ :root {
13
+ --size-base-unit: 0.5rem;
14
+ }
15
+
16
+ /**
17
+ * RTL support for values logical properties can't automatically adjust for
18
+ * 1) Percentage based horizontal translate values need to be flipped
19
+ * 2) Background gradients using "to-right" or "to-left" need to be switched to using deg values.
20
+ * 3) Inverse items that have 45degs
21
+ */
22
+ [dir=rtl] {
23
+ --rtlTranslateX: 50%;
24
+ /* 1 */
25
+ --rtlGradientToRight: 270deg;
26
+ /* 2 */
27
+ --rtlRotate45Inverse: -45deg;
28
+ /* 3 */
29
+ }
30
+
31
+ /**
32
+ * Visible focus outline for elements on a light background
33
+ */
34
+ /**
35
+ * Visible focus outline for elements with an error status
36
+ */
37
+ /**
38
+ * Visible focus outline for elements on a dark background
39
+ */
40
+ /**
41
+ * Focus state for themes that need a dashed outline for focus
42
+ * state
43
+ **/
44
+ /**
45
+ * Invisible focus outline for elements that need a more visible
46
+ * focus state for high-contrast mode
47
+ */
48
+ /**
49
+ * Visually hidden from display
50
+ */
51
+ /*
52
+ =======
53
+ Animations
54
+ =======
55
+ */
56
+ :host {
57
+ --cre8-z-index-1: 1;
58
+ --cre8-z-index-50: 50;
59
+ --cre8-z-index-100: 100;
60
+ --cre8-z-index-200: 200;
61
+ --cre8-z-index-1030: 1030;
62
+ --cre8-anim-fade-quick: 0.35s;
63
+ --cre8-anim-ease: ease;
64
+ }
65
+
66
+ @keyframes fadeIn {
67
+ 100% {
68
+ opacity: 1;
69
+ }
70
+ }
71
+ @keyframes slideIn {
72
+ 100% {
73
+ transform: translateX(0);
74
+ }
75
+ }
76
+ @keyframes slideInFwd {
77
+ 100% {
78
+ width: 272px;
79
+ height: 272px;
80
+ }
81
+ }
82
+ @keyframes slideOutRight {
83
+ 100% {
84
+ width: 272px;
85
+ height: 272px;
86
+ }
87
+ }
88
+ @keyframes slideUp {
89
+ 100% {
90
+ transform: translateY(0);
91
+ }
92
+ }
93
+ @media (width >= 481px) {
94
+ @keyframes slideInFwd {
95
+ 100% {
96
+ width: 417px;
97
+ height: 417px;
98
+ }
99
+ }
100
+ @keyframes slideOutRight {
101
+ 100% {
102
+ width: 417px;
103
+ height: 417px;
104
+ }
105
+ }
106
+ }
107
+ @media (width >= 48rem) {
108
+ @keyframes slideInFwd {
109
+ 100% {
110
+ width: 330px;
111
+ height: 330px;
112
+ }
113
+ }
114
+ @keyframes slideOutRight {
115
+ 100% {
116
+ width: 330px;
117
+ height: 330px;
118
+ transform: translateX(calc(100vw - 45px));
119
+ }
120
+ }
121
+ }
122
+ @media (width >= 60rem) {
123
+ @keyframes slideInFwd {
124
+ 100% {
125
+ width: 460px;
126
+ height: 460px;
127
+ }
128
+ }
129
+ @keyframes slideOutRight {
130
+ 100% {
131
+ width: 460px;
132
+ height: 460px;
133
+ transform: translateX(calc(100vw - 45px));
134
+ }
135
+ }
136
+ }
137
+ @media (width >= 75rem) {
138
+ @keyframes slideInFwd {
139
+ 100% {
140
+ width: 592px;
141
+ height: 591px;
142
+ }
143
+ }
144
+ @keyframes slideOutRight {
145
+ 100% {
146
+ width: 592px;
147
+ height: 591px;
148
+ transform: translateX(calc(100vw - 45px));
149
+ }
150
+ }
151
+ }
152
+ @media (width >= 87.5rem) {
153
+ @keyframes slideOutRight {
154
+ 100% {
155
+ width: 592px;
156
+ height: 591px;
157
+ transform: translateX(calc(100vw - 120px));
158
+ }
159
+ }
160
+ }
161
+ @media (width >= 2200px) {
162
+ @keyframes slideOutRight {
163
+ 100% {
164
+ width: 592px;
165
+ height: 591px;
166
+ transform: translateX(calc(100vw - 592px));
167
+ }
168
+ }
169
+ }
170
+ span.ripple {
171
+ position: absolute;
172
+ border-radius: 50%;
173
+ transform: scale(0);
174
+ animation: ripple 600ms linear;
175
+ background-color: var(--ripple-bg-color);
176
+ }
177
+
178
+ @keyframes ripple {
179
+ to {
180
+ transform: scale(4);
181
+ opacity: 1;
182
+ }
183
+ }
184
+ :root {
185
+ --size-base-unit: 0.5rem;
186
+ }
187
+
188
+ /**
189
+ * RTL support for values logical properties can't automatically adjust for
190
+ * 1) Percentage based horizontal translate values need to be flipped
191
+ * 2) Background gradients using "to-right" or "to-left" need to be switched to using deg values.
192
+ * 3) Inverse items that have 45degs
193
+ */
194
+ [dir=rtl] {
195
+ --rtlTranslateX: 50%;
196
+ /* 1 */
197
+ --rtlGradientToRight: 270deg;
198
+ /* 2 */
199
+ --rtlRotate45Inverse: -45deg;
200
+ /* 3 */
201
+ }
202
+
203
+ /**
204
+ * Visible focus outline for elements on a light background
205
+ */
206
+ /**
207
+ * Visible focus outline for elements with an error status
208
+ */
209
+ /**
210
+ * Visible focus outline for elements on a dark background
211
+ */
212
+ /**
213
+ * Focus state for themes that need a dashed outline for focus
214
+ * state
215
+ **/
216
+ /**
217
+ * Invisible focus outline for elements that need a more visible
218
+ * focus state for high-contrast mode
219
+ */
220
+ /**
221
+ * Visually hidden from display
222
+ */
223
+ :host {
224
+ display: block;
225
+ }
226
+
227
+ /**
228
+ * 1) A card is an organized block that typically contains a title, image,
229
+ * text, and/or calls to action. It is made up of an optional header slot, required
230
+ * body slot, and optional footer slot to place other Components and content within.
231
+ */
232
+ .cre8-c-card {
233
+ overflow: hidden;
234
+ display: flex;
235
+ flex-direction: column;
236
+ height: 100%;
237
+ width: 100%;
238
+ padding: 1.5rem;
239
+ gap: 1rem;
240
+ border-color: var(--cre8-color-border-default);
241
+ border-style: var(--cre8-border-style-default);
242
+ border-width: var(--cre8-border-width-default);
243
+ border-radius: var(--cre8-border-radius-container);
244
+ background: var(--cre8-color-bg-default);
245
+ }
246
+
247
+ /**
248
+ * Horizontal card
249
+ * 1) Organized block with flex-direction set to row so that header => footer appears
250
+ * from left to right rather than top to bottom
251
+ */
252
+ .cre8-c-card--horizontal {
253
+ flex-direction: row;
254
+ align-items: center;
255
+ justify-content: center;
256
+ }
257
+
258
+ /**
259
+ * Bare card
260
+ * 1) Organized block without a border, background, or padding
261
+ */
262
+ .cre8-c-card--bare {
263
+ border: 0;
264
+ padding: 0;
265
+ gap: 0;
266
+ box-shadow: none;
267
+ }
268
+
269
+ /**
270
+ * Horizontal-bare card
271
+ * 1) Organized block with flex-direction set to row so that header => footer appears
272
+ * from left to right rather than top to bottom without a border, background, or padding
273
+ */
274
+ .cre8-c-card--horizontal-bare {
275
+ flex-direction: row;
276
+ border: 0;
277
+ padding: 0;
278
+ gap: 0;
279
+ box-shadow: none;
280
+ align-items: center;
281
+ justify-content: center;
282
+ }
283
+
284
+ /**
285
+ * Center aligned card
286
+ * 1) Center content and text within the card
287
+ */
288
+ .cre8-c-card--align-center {
289
+ text-align: center;
290
+ /* 1 */
291
+ align-items: center;
292
+ /* 1 */
293
+ justify-content: center;
294
+ /* 1 */
295
+ }
296
+
297
+ /**
298
+ * Slotted image within a card
299
+ * 1) Make the image full width
300
+ */
301
+ ::slotted(img) {
302
+ width: 100%;
303
+ }
304
+
305
+ /**
306
+ * Card header
307
+ * 1) Remove flex so that body always takes up remaining space
308
+ */
309
+ .cre8-c-card__header {
310
+ display: block;
311
+ flex: none;
312
+ /* 1 */
313
+ }
314
+
315
+ /**
316
+ * Card body
317
+ * 1) Flex applied to always fill the remaining space of the card
318
+ */
319
+ .cre8-c-card__body {
320
+ display: block;
321
+ flex: 1 1 auto;
322
+ /* 1 */
323
+ }
324
+
325
+ /**
326
+ * Card footer
327
+ * 1) Remove flex so that body always takes up remaining space
328
+ */
329
+ .cre8-c-card__footer {
330
+ display: block;
331
+ flex: none;
332
+ /* 1 */
333
+ }
334
+ .cre8-c-card--bare .cre8-c-card__footer {
335
+ padding: 0;
336
+ }
337
+ .cre8-c-card--horizontal-bare .cre8-c-card__footer {
338
+ padding: 0;
339
+ }`;
340
+ export { styles };
4
341
  //# sourceMappingURL=card.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"card.styles.js","sourceRoot":"","sources":["../../../components/card/card.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,MAAM,MAAM,GAAG,GAAG,CAAA,8uFAA8uF,CAAC;AACjwF,eAAe,MAAM,CAAC","sourcesContent":["import { css } from 'lit';\nconst styles = css`*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{display:block}.cre8-c-card{overflow:hidden;display:flex;flex-direction:column;height:100%;width:100%;padding:1.5rem;gap:1rem;border-color:var(--cre8-color-border-default);border-style:var(--cre8-border-style-default);border-width:var(--cre8-border-width-default);border-radius:var(--cre8-border-radius-default);background:var(--cre8-color-bg-default)}.cre8-c-card--horizontal{flex-direction:row;align-items:center;justify-content:center}.cre8-c-card--bare{border:0;padding:0;gap:0;box-shadow:none}.cre8-c-card--horizontal-bare{flex-direction:row;border:0;padding:0;gap:0;box-shadow:none;align-items:center;justify-content:center}.cre8-c-card--align-center{text-align:center;align-items:center;justify-content:center}::slotted(img){width:100%}.cre8-c-card__header{display:block;flex:none}.cre8-c-card__body{display:block;flex:1 1 auto}.cre8-c-card__footer{display:block;flex:none}.cre8-c-card--bare .cre8-c-card__footer{padding:0}.cre8-c-card--horizontal-bare .cre8-c-card__footer{padding:0}`;\nexport default styles;\n"]}
1
+ {"version":3,"file":"card.styles.js","sourceRoot":"","sources":["../../../components/card/card.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiVhB,CAAC;AACH,OAAO,EAAE,MAAM,EAAE,CAAC","sourcesContent":["import { css } from 'lit';\nconst styles = css`/**\n * Border-Box http:/paulirish.com/2012/box-sizing-border-box-ftw/\n */\n*,\n::slotted(*),\n*:before,\n*:after {\n box-sizing: border-box;\n}\n\n:root {\n --size-base-unit: 0.5rem;\n}\n\n/**\n * RTL support for values logical properties can't automatically adjust for\n * 1) Percentage based horizontal translate values need to be flipped\n * 2) Background gradients using \"to-right\" or \"to-left\" need to be switched to using deg values.\n * 3) Inverse items that have 45degs\n */\n[dir=rtl] {\n --rtlTranslateX: 50%;\n /* 1 */\n --rtlGradientToRight: 270deg;\n /* 2 */\n --rtlRotate45Inverse: -45deg;\n /* 3 */\n}\n\n/**\n * Visible focus outline for elements on a light background\n */\n/**\n * Visible focus outline for elements with an error status\n */\n/**\n * Visible focus outline for elements on a dark background\n */\n/**\n* Focus state for themes that need a dashed outline for focus\n* state\n**/\n/**\n * Invisible focus outline for elements that need a more visible\n * focus state for high-contrast mode\n */\n/**\n * Visually hidden from display\n */\n/*\n=======\nAnimations\n=======\n*/\n:host {\n --cre8-z-index-1: 1;\n --cre8-z-index-50: 50;\n --cre8-z-index-100: 100;\n --cre8-z-index-200: 200;\n --cre8-z-index-1030: 1030;\n --cre8-anim-fade-quick: 0.35s;\n --cre8-anim-ease: ease;\n}\n\n@keyframes fadeIn {\n 100% {\n opacity: 1;\n }\n}\n@keyframes slideIn {\n 100% {\n transform: translateX(0);\n }\n}\n@keyframes slideInFwd {\n 100% {\n width: 272px;\n height: 272px;\n }\n}\n@keyframes slideOutRight {\n 100% {\n width: 272px;\n height: 272px;\n }\n}\n@keyframes slideUp {\n 100% {\n transform: translateY(0);\n }\n}\n@media (width >= 481px) {\n @keyframes slideInFwd {\n 100% {\n width: 417px;\n height: 417px;\n }\n }\n @keyframes slideOutRight {\n 100% {\n width: 417px;\n height: 417px;\n }\n }\n}\n@media (width >= 48rem) {\n @keyframes slideInFwd {\n 100% {\n width: 330px;\n height: 330px;\n }\n }\n @keyframes slideOutRight {\n 100% {\n width: 330px;\n height: 330px;\n transform: translateX(calc(100vw - 45px));\n }\n }\n}\n@media (width >= 60rem) {\n @keyframes slideInFwd {\n 100% {\n width: 460px;\n height: 460px;\n }\n }\n @keyframes slideOutRight {\n 100% {\n width: 460px;\n height: 460px;\n transform: translateX(calc(100vw - 45px));\n }\n }\n}\n@media (width >= 75rem) {\n @keyframes slideInFwd {\n 100% {\n width: 592px;\n height: 591px;\n }\n }\n @keyframes slideOutRight {\n 100% {\n width: 592px;\n height: 591px;\n transform: translateX(calc(100vw - 45px));\n }\n }\n}\n@media (width >= 87.5rem) {\n @keyframes slideOutRight {\n 100% {\n width: 592px;\n height: 591px;\n transform: translateX(calc(100vw - 120px));\n }\n }\n}\n@media (width >= 2200px) {\n @keyframes slideOutRight {\n 100% {\n width: 592px;\n height: 591px;\n transform: translateX(calc(100vw - 592px));\n }\n }\n}\nspan.ripple {\n position: absolute;\n border-radius: 50%;\n transform: scale(0);\n animation: ripple 600ms linear;\n background-color: var(--ripple-bg-color);\n}\n\n@keyframes ripple {\n to {\n transform: scale(4);\n opacity: 1;\n }\n}\n:root {\n --size-base-unit: 0.5rem;\n}\n\n/**\n * RTL support for values logical properties can't automatically adjust for\n * 1) Percentage based horizontal translate values need to be flipped\n * 2) Background gradients using \"to-right\" or \"to-left\" need to be switched to using deg values.\n * 3) Inverse items that have 45degs\n */\n[dir=rtl] {\n --rtlTranslateX: 50%;\n /* 1 */\n --rtlGradientToRight: 270deg;\n /* 2 */\n --rtlRotate45Inverse: -45deg;\n /* 3 */\n}\n\n/**\n * Visible focus outline for elements on a light background\n */\n/**\n * Visible focus outline for elements with an error status\n */\n/**\n * Visible focus outline for elements on a dark background\n */\n/**\n* Focus state for themes that need a dashed outline for focus\n* state\n**/\n/**\n * Invisible focus outline for elements that need a more visible\n * focus state for high-contrast mode\n */\n/**\n * Visually hidden from display\n */\n:host {\n display: block;\n}\n\n/**\n * 1) A card is an organized block that typically contains a title, image,\n * text, and/or calls to action. It is made up of an optional header slot, required\n * body slot, and optional footer slot to place other Components and content within.\n */\n.cre8-c-card {\n overflow: hidden;\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n padding: 1.5rem;\n gap: 1rem;\n border-color: var(--cre8-color-border-default);\n border-style: var(--cre8-border-style-default);\n border-width: var(--cre8-border-width-default);\n border-radius: var(--cre8-border-radius-container);\n background: var(--cre8-color-bg-default);\n}\n\n/**\n * Horizontal card\n * 1) Organized block with flex-direction set to row so that header => footer appears\n * from left to right rather than top to bottom\n */\n.cre8-c-card--horizontal {\n flex-direction: row;\n align-items: center;\n justify-content: center;\n}\n\n/**\n * Bare card\n * 1) Organized block without a border, background, or padding\n */\n.cre8-c-card--bare {\n border: 0;\n padding: 0;\n gap: 0;\n box-shadow: none;\n}\n\n/**\n * Horizontal-bare card\n * 1) Organized block with flex-direction set to row so that header => footer appears\n * from left to right rather than top to bottom without a border, background, or padding\n */\n.cre8-c-card--horizontal-bare {\n flex-direction: row;\n border: 0;\n padding: 0;\n gap: 0;\n box-shadow: none;\n align-items: center;\n justify-content: center;\n}\n\n/**\n * Center aligned card\n * 1) Center content and text within the card\n */\n.cre8-c-card--align-center {\n text-align: center;\n /* 1 */\n align-items: center;\n /* 1 */\n justify-content: center;\n /* 1 */\n}\n\n/**\n * Slotted image within a card\n * 1) Make the image full width\n */\n::slotted(img) {\n width: 100%;\n}\n\n/**\n * Card header\n * 1) Remove flex so that body always takes up remaining space\n */\n.cre8-c-card__header {\n display: block;\n flex: none;\n /* 1 */\n}\n\n/**\n * Card body\n * 1) Flex applied to always fill the remaining space of the card\n */\n.cre8-c-card__body {\n display: block;\n flex: 1 1 auto;\n /* 1 */\n}\n\n/**\n * Card footer\n * 1) Remove flex so that body always takes up remaining space\n */\n.cre8-c-card__footer {\n display: block;\n flex: none;\n /* 1 */\n}\n.cre8-c-card--bare .cre8-c-card__footer {\n padding: 0;\n}\n.cre8-c-card--horizontal-bare .cre8-c-card__footer {\n padding: 0;\n}`;\nexport { styles };\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"field.styles.d.ts","sourceRoot":"","sources":["../../../components/field/field.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAA+qJ,CAAC;AAC5rJ,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"field.styles.d.ts","sourceRoot":"","sources":["../../../components/field/field.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAsWkC,CAAC;AAC/C,eAAe,MAAM,CAAC"}