@tmorrow/cre8-wc 1.0.26 → 1.1.2

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 (202) hide show
  1. package/cdn/cre8-wc.esm.js +9082 -15604
  2. package/cdn/cre8-wc.esm.js.map +1 -1
  3. package/cdn/cre8-wc.min.js +1231 -8308
  4. package/cdn/cre8-wc.min.js.map +1 -1
  5. package/lib/cdn-entry.d.ts +20 -2
  6. package/lib/cdn-entry.d.ts.map +1 -1
  7. package/lib/components/accordion/accordion.js +18 -64
  8. package/lib/components/accordion/accordion.styles.d.ts.map +1 -1
  9. package/lib/components/accordion-item/accordion-item.js +35 -238
  10. package/lib/components/accordion-item/accordion-item.styles.d.ts.map +1 -1
  11. package/lib/components/alert/alert.js +56 -221
  12. package/lib/components/alert/alert.styles.d.ts.map +1 -1
  13. package/lib/components/badge/badge.js +33 -164
  14. package/lib/components/badge/badge.styles.d.ts.map +1 -1
  15. package/lib/components/band/band.js +11 -261
  16. package/lib/components/band/band.styles.d.ts.map +1 -1
  17. package/lib/components/breadcrumbs/breadcrumbs.js +14 -33
  18. package/lib/components/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -1
  19. package/lib/components/breadcrumbs-item/breadcrumbs-item.js +10 -45
  20. package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.d.ts.map +1 -1
  21. package/lib/components/button/button.js +14 -14
  22. package/lib/components/button-group/button-group.js +10 -261
  23. package/lib/components/button-group/button-group.styles.d.ts.map +1 -1
  24. package/lib/components/card/card.js +17 -130
  25. package/lib/components/card/card.styles.d.ts.map +1 -1
  26. package/lib/components/chart/chart.js +137 -223
  27. package/lib/components/chart/chart.styles.d.ts.map +1 -1
  28. package/lib/components/checkbox-field/checkbox-field.js +26 -59
  29. package/lib/components/checkbox-field/checkbox-field.styles.d.ts.map +1 -1
  30. package/lib/components/checkbox-field-item/checkbox-field-item.js +38 -205
  31. package/lib/components/checkbox-field-item/checkbox-field-item.styles.d.ts.map +1 -1
  32. package/lib/components/danger-button/danger-button.js +53 -582
  33. package/lib/components/danger-button/danger-button.styles.d.ts.map +1 -1
  34. package/lib/components/date-picker/calendar/calendar.styles.d.ts.map +1 -1
  35. package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.d.ts.map +1 -1
  36. package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.d.ts.map +1 -1
  37. package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.d.ts.map +1 -1
  38. package/lib/components/date-picker/date-picker.js +262 -499
  39. package/lib/components/date-picker/date-picker.styles.d.ts.map +1 -1
  40. package/lib/components/divider/divider.js +20 -61
  41. package/lib/components/divider/divider.styles.d.ts.map +1 -1
  42. package/lib/components/dropdown/dropdown.js +34 -107
  43. package/lib/components/dropdown/dropdown.styles.d.ts.map +1 -1
  44. package/lib/components/dropdown-item/dropdown-item.js +18 -49
  45. package/lib/components/dropdown-item/dropdown-item.styles.d.ts.map +1 -1
  46. package/lib/components/feature/feature.js +19 -81
  47. package/lib/components/feature/feature.styles.d.ts.map +1 -1
  48. package/lib/components/field/field.js +12 -146
  49. package/lib/components/field/field.styles.d.ts.map +1 -1
  50. package/lib/components/field-note/field-note.js +22 -66
  51. package/lib/components/field-note/field-note.styles.d.ts.map +1 -1
  52. package/lib/components/footer/footer.js +10 -29
  53. package/lib/components/footer/footer.styles.d.ts.map +1 -1
  54. package/lib/components/global-nav/global-nav.js +20 -43
  55. package/lib/components/global-nav/global-nav.styles.d.ts.map +1 -1
  56. package/lib/components/global-nav-item/global-nav-item.js +26 -105
  57. package/lib/components/global-nav-item/global-nav-item.styles.d.ts.map +1 -1
  58. package/lib/components/grid/grid.js +15 -337
  59. package/lib/components/grid/grid.styles.d.ts.map +1 -1
  60. package/lib/components/grid-item/grid-item.js +7 -15
  61. package/lib/components/grid-item/grid-item.styles.d.ts.map +1 -1
  62. package/lib/components/header/header.js +17 -80
  63. package/lib/components/header/header.styles.d.ts.map +1 -1
  64. package/lib/components/heading/heading.js +16 -153
  65. package/lib/components/heading/heading.styles.d.ts.map +1 -1
  66. package/lib/components/hero/hero.js +17 -149
  67. package/lib/components/hero/hero.styles.d.ts.map +1 -1
  68. package/lib/components/icon/icon.js +1 -1
  69. package/lib/components/icon/icon.styles.d.ts.map +1 -1
  70. package/lib/components/inline-alert/inline-alert.js +53 -214
  71. package/lib/components/inline-alert/inline-alert.styles.d.ts.map +1 -1
  72. package/lib/components/layout/layout.js +20 -53
  73. package/lib/components/layout/layout.styles.d.ts.map +1 -1
  74. package/lib/components/layout-container/layout-container.js +20 -43
  75. package/lib/components/layout-container/layout-container.styles.d.ts.map +1 -1
  76. package/lib/components/layout-section/layout-section.js +20 -29
  77. package/lib/components/layout-section/layout-section.styles.d.ts.map +1 -1
  78. package/lib/components/linelength-container/linelength-container.js +7 -15
  79. package/lib/components/linelength-container/linelength-container.styles.d.ts.map +1 -1
  80. package/lib/components/link/link.js +33 -228
  81. package/lib/components/link/link.styles.d.ts.map +1 -1
  82. package/lib/components/link-list/link-list.js +23 -129
  83. package/lib/components/link-list/link-list.styles.d.ts.map +1 -1
  84. package/lib/components/link-list-item/link-list-item.js +19 -80
  85. package/lib/components/link-list-item/link-list-item.styles.d.ts.map +1 -1
  86. package/lib/components/list/list.js +17 -67
  87. package/lib/components/list/list.styles.d.ts.map +1 -1
  88. package/lib/components/list-item/list-item.js +11 -16
  89. package/lib/components/list-item/list-item.styles.d.ts.map +1 -1
  90. package/lib/components/loading-spinner/loading-spinner.js +13 -157
  91. package/lib/components/loading-spinner/loading-spinner.styles.d.ts.map +1 -1
  92. package/lib/components/logo/logo.js +20 -30
  93. package/lib/components/logo/logo.styles.d.ts.map +1 -1
  94. package/lib/components/main/main.js +18 -42
  95. package/lib/components/main/main.styles.d.ts.map +1 -1
  96. package/lib/components/modal/modal.d.ts +1 -0
  97. package/lib/components/modal/modal.d.ts.map +1 -1
  98. package/lib/components/modal/modal.js +52 -217
  99. package/lib/components/modal/modal.styles.d.ts.map +1 -1
  100. package/lib/components/multi-select/multi-select.js +71 -532
  101. package/lib/components/multi-select/multi-select.styles.d.ts.map +1 -1
  102. package/lib/components/nav-container/nav-container.js +5 -40
  103. package/lib/components/nav-container/nav-container.styles.d.ts.map +1 -1
  104. package/lib/components/page-header/page-header.js +19 -54
  105. package/lib/components/page-header/page-header.styles.d.ts.map +1 -1
  106. package/lib/components/pagination/page-counter/page-counter.styles.d.ts.map +1 -1
  107. package/lib/components/pagination/pagination.js +102 -183
  108. package/lib/components/pagination/pagination.styles.d.ts.map +1 -1
  109. package/lib/components/percent-bar/percent-bar.js +22 -50
  110. package/lib/components/percent-bar/percent-bar.styles.d.ts.map +1 -1
  111. package/lib/components/popover/popover.js +51 -220
  112. package/lib/components/popover/popover.styles.d.ts.map +1 -1
  113. package/lib/components/primary-nav/primary-nav.js +17 -51
  114. package/lib/components/primary-nav/primary-nav.styles.d.ts.map +1 -1
  115. package/lib/components/primary-nav-item/primary-nav-item.js +24 -191
  116. package/lib/components/primary-nav-item/primary-nav-item.styles.d.ts.map +1 -1
  117. package/lib/components/progress-meter/progress-meter.js +23 -127
  118. package/lib/components/progress-meter/progress-meter.styles.d.ts.map +1 -1
  119. package/lib/components/progress-steps/progress-steps.styles.d.ts.map +1 -1
  120. package/lib/components/progress-steps-item/progress-steps-item.js +27 -118
  121. package/lib/components/progress-steps-item/progress-steps-item.styles.d.ts.map +1 -1
  122. package/lib/components/radio-field/radio-field.js +28 -64
  123. package/lib/components/radio-field/radio-field.styles.d.ts.map +1 -1
  124. package/lib/components/radio-field-item/radio-field-item.js +54 -189
  125. package/lib/components/radio-field-item/radio-field-item.styles.d.ts.map +1 -1
  126. package/lib/components/remove-tag/remove-tag.js +36 -129
  127. package/lib/components/remove-tag/remove-tag.styles.d.ts.map +1 -1
  128. package/lib/components/section/section.js +19 -50
  129. package/lib/components/section/section.styles.d.ts.map +1 -1
  130. package/lib/components/select/select.js +43 -416
  131. package/lib/components/select/select.styles.d.ts.map +1 -1
  132. package/lib/components/select-tile/select-tile.js +18 -442
  133. package/lib/components/select-tile/select-tile.styles.d.ts.map +1 -1
  134. package/lib/components/select-tile-list/select-tile-list.js +24 -62
  135. package/lib/components/select-tile-list/select-tile-list.styles.d.ts.map +1 -1
  136. package/lib/components/skeleton-loader/skeleton-loader.js +19 -73
  137. package/lib/components/skeleton-loader/skeleton-loader.styles.d.ts.map +1 -1
  138. package/lib/components/split-button/split-button.js +21 -37
  139. package/lib/components/split-button/split-button.styles.d.ts.map +1 -1
  140. package/lib/components/submenu/submenu.js +8 -18
  141. package/lib/components/submenu/submenu.styles.d.ts.map +1 -1
  142. package/lib/components/submenu-item/submenu-item.js +21 -42
  143. package/lib/components/submenu-item/submenu-item.styles.d.ts.map +1 -1
  144. package/lib/components/tab/tab.js +17 -100
  145. package/lib/components/tab/tab.styles.d.ts.map +1 -1
  146. package/lib/components/tab-panel/tab-panel.js +18 -52
  147. package/lib/components/tab-panel/tab-panel.styles.d.ts.map +1 -1
  148. package/lib/components/table/table.js +21 -73
  149. package/lib/components/table/table.styles.d.ts.map +1 -1
  150. package/lib/components/table-body/table-body.js +12 -24
  151. package/lib/components/table-body/table-body.styles.d.ts.map +1 -1
  152. package/lib/components/table-cell/table-cell.js +29 -69
  153. package/lib/components/table-cell/table-cell.styles.d.ts.map +1 -1
  154. package/lib/components/table-header/table-header.js +8 -39
  155. package/lib/components/table-header/table-header.styles.d.ts.map +1 -1
  156. package/lib/components/table-header-cell/table-header-cell.js +18 -37
  157. package/lib/components/table-header-cell/table-header-cell.styles.d.ts.map +1 -1
  158. package/lib/components/table-object/table-object.js +13 -32
  159. package/lib/components/table-object/table-object.styles.d.ts.map +1 -1
  160. package/lib/components/table-row/table-row.js +33 -139
  161. package/lib/components/table-row/table-row.styles.d.ts.map +1 -1
  162. package/lib/components/tabs/tabs.js +24 -339
  163. package/lib/components/tabs/tabs.styles.d.ts.map +1 -1
  164. package/lib/components/tag/tag.js +44 -159
  165. package/lib/components/tag/tag.styles.d.ts.map +1 -1
  166. package/lib/components/tag-list/tag-list.js +20 -51
  167. package/lib/components/tag-list/tag-list.styles.d.ts.map +1 -1
  168. package/lib/components/tertiary-nav/tertiary-nav.js +21 -54
  169. package/lib/components/tertiary-nav/tertiary-nav.styles.d.ts.map +1 -1
  170. package/lib/components/tertiary-nav-item/tertiary-nav-item.js +18 -68
  171. package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.d.ts.map +1 -1
  172. package/lib/components/text-link/text-link.js +20 -85
  173. package/lib/components/text-link/text-link.styles.d.ts.map +1 -1
  174. package/lib/components/text-passage/text-passage-light-dom.styles.d.ts.map +1 -1
  175. package/lib/components/text-passage/text-passage.js +17 -189
  176. package/lib/components/text-passage/text-passage.styles.d.ts.map +1 -1
  177. package/lib/components/tooltip/tooltip.js +57 -248
  178. package/lib/components/tooltip/tooltip.styles.d.ts.map +1 -1
  179. package/lib/components/utility-nav/utility-nav.js +23 -56
  180. package/lib/components/utility-nav/utility-nav.styles.d.ts.map +1 -1
  181. package/lib/components/utility-nav-item/utility-nav-item.js +28 -83
  182. package/lib/components/utility-nav-item/utility-nav-item.styles.d.ts.map +1 -1
  183. package/lib/design-tokens/brands/blue/css/tokens_blue.module.d.ts.map +1 -1
  184. package/lib/design-tokens/brands/bolt/tokens_bolt.theme.d.ts.map +1 -1
  185. package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.d.ts +3 -0
  186. package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.d.ts.map +1 -0
  187. package/lib/design-tokens/brands/cre8-legacy/css/tokens_cre8-legacy.module.d.ts.map +1 -1
  188. package/lib/design-tokens/brands/femmecubator/css/tokens_femmecubator2.module.d.ts.map +1 -1
  189. package/lib/design-tokens/brands/legacy/css/tokens_legacy.module.d.ts.map +1 -1
  190. package/lib/design-tokens/brands/marketing/css/tokens_marketing.module.d.ts.map +1 -1
  191. package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.d.ts +2 -2
  192. package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.d.ts.map +1 -1
  193. package/lib/design-tokens/brands/starbucks/tokens_starbucks.module.d.ts.map +1 -1
  194. package/lib/design-tokens/core/scss/theming/component.scss +5 -5
  195. package/lib/design-tokens/core/scss/theming/functions.scss +4 -0
  196. package/lib/design-tokens/core/scss/theming/spacing.scss +60 -60
  197. package/lib/design-tokens/core/scss/theming/variables.scss +11 -11
  198. package/lib/design-tokens/mixins/typography-usage.scss +277 -277
  199. package/lib/design-tokens/tokens_netflix.theme.d.ts.map +1 -1
  200. package/lib/{icon-DImqxDiW.js → icon-D22g8aWB.js} +35 -138
  201. package/lib/index.js +1 -1
  202. package/package.json +14 -8
@@ -1,279 +1,28 @@
1
- import { css as l, html as d } from "lit";
2
- import { property as u } from "lit/decorators.js";
1
+ import { css as o, html as l } from "lit";
2
+ import { property as p } from "lit/decorators.js";
3
3
  import { Cre8Element as h } from "../cre8-element.js";
4
- const p = l`/**
5
- * Border-Box http:/paulirish.com/2012/box-sizing-border-box-ftw/
6
- */
7
- *,
8
- ::slotted(*),
9
- *:before,
10
- *:after {
11
- box-sizing: border-box;
12
- }
13
-
14
- :root {
15
- --size-base-unit: 0.5rem;
16
- }
17
-
18
- /**
19
- * RTL support for values logical properties can't automatically adjust for
20
- * 1) Percentage based horizontal translate values need to be flipped
21
- * 2) Background gradients using "to-right" or "to-left" need to be switched to using deg values.
22
- * 3) Inverse items that have 45degs
23
- */
24
- [dir=rtl] {
25
- --rtlTranslateX: 50%;
26
- /* 1 */
27
- --rtlGradientToRight: 270deg;
28
- /* 2 */
29
- --rtlRotate45Inverse: -45deg;
30
- /* 3 */
31
- }
32
-
33
- /**
34
- * Visible focus outline for elements on a light background
35
- */
36
- /**
37
- * Visible focus outline for elements with an error status
38
- */
39
- /**
40
- * Visible focus outline for elements on a dark background
41
- */
42
- /**
43
- * Focus state for themes that need a dashed outline for focus
44
- * state
45
- **/
46
- /**
47
- * Invisible focus outline for elements that need a more visible
48
- * focus state for high-contrast mode
49
- */
50
- /**
51
- * Visually hidden from display
52
- */
53
- /*
54
- =======
55
- Animations
56
- =======
57
- */
58
- :host {
59
- --cre8-z-index-1: 1;
60
- --cre8-z-index-50: 50;
61
- --cre8-z-index-100: 100;
62
- --cre8-z-index-200: 200;
63
- --cre8-z-index-1030: 1030;
64
- --cre8-anim-fade-quick: 0.35s;
65
- --cre8-anim-ease: ease;
66
- }
67
-
68
- @keyframes fadeIn {
69
- 100% {
70
- opacity: 1;
71
- }
72
- }
73
- @keyframes slideIn {
74
- 100% {
75
- transform: translateX(0);
76
- }
77
- }
78
- @keyframes slideInFwd {
79
- 100% {
80
- width: 272px;
81
- height: 272px;
82
- }
83
- }
84
- @keyframes slideOutRight {
85
- 100% {
86
- width: 272px;
87
- height: 272px;
88
- }
89
- }
90
- @keyframes slideUp {
91
- 100% {
92
- transform: translateY(0);
93
- }
94
- }
95
- @media (width >= 481px) {
96
- @keyframes slideInFwd {
97
- 100% {
98
- width: 417px;
99
- height: 417px;
100
- }
101
- }
102
- @keyframes slideOutRight {
103
- 100% {
104
- width: 417px;
105
- height: 417px;
106
- }
107
- }
108
- }
109
- @media (width >= 48rem) {
110
- @keyframes slideInFwd {
111
- 100% {
112
- width: 330px;
113
- height: 330px;
114
- }
115
- }
116
- @keyframes slideOutRight {
117
- 100% {
118
- width: 330px;
119
- height: 330px;
120
- transform: translateX(calc(100vw - 45px));
121
- }
122
- }
123
- }
124
- @media (width >= 60rem) {
125
- @keyframes slideInFwd {
126
- 100% {
127
- width: 460px;
128
- height: 460px;
129
- }
130
- }
131
- @keyframes slideOutRight {
132
- 100% {
133
- width: 460px;
134
- height: 460px;
135
- transform: translateX(calc(100vw - 45px));
136
- }
137
- }
138
- }
139
- @media (width >= 75rem) {
140
- @keyframes slideInFwd {
141
- 100% {
142
- width: 592px;
143
- height: 591px;
144
- }
145
- }
146
- @keyframes slideOutRight {
147
- 100% {
148
- width: 592px;
149
- height: 591px;
150
- transform: translateX(calc(100vw - 45px));
151
- }
152
- }
153
- }
154
- @media (width >= 87.5rem) {
155
- @keyframes slideOutRight {
156
- 100% {
157
- width: 592px;
158
- height: 591px;
159
- transform: translateX(calc(100vw - 120px));
160
- }
161
- }
162
- }
163
- @media (width >= 2200px) {
164
- @keyframes slideOutRight {
165
- 100% {
166
- width: 592px;
167
- height: 591px;
168
- transform: translateX(calc(100vw - 592px));
169
- }
170
- }
171
- }
172
- span.ripple {
173
- position: absolute;
174
- border-radius: 50%;
175
- transform: scale(0);
176
- animation: ripple 600ms linear;
177
- background-color: var(--ripple-bg-color);
178
- }
179
-
180
- @keyframes ripple {
181
- to {
182
- transform: scale(4);
183
- opacity: 1;
184
- }
185
- }
186
- :root {
187
- --size-base-unit: 0.5rem;
188
- }
189
-
190
- /**
191
- * RTL support for values logical properties can't automatically adjust for
192
- * 1) Percentage based horizontal translate values need to be flipped
193
- * 2) Background gradients using "to-right" or "to-left" need to be switched to using deg values.
194
- * 3) Inverse items that have 45degs
195
- */
196
- [dir=rtl] {
197
- --rtlTranslateX: 50%;
198
- /* 1 */
199
- --rtlGradientToRight: 270deg;
200
- /* 2 */
201
- --rtlRotate45Inverse: -45deg;
202
- /* 3 */
203
- }
204
-
205
- /**
206
- * Visible focus outline for elements on a light background
207
- */
208
- /**
209
- * Visible focus outline for elements with an error status
210
- */
211
- /**
212
- * Visible focus outline for elements on a dark background
213
- */
214
- /**
215
- * Focus state for themes that need a dashed outline for focus
216
- * state
217
- **/
218
- /**
219
- * Invisible focus outline for elements that need a more visible
220
- * focus state for high-contrast mode
221
- */
222
- /**
223
- * Visually hidden from display
224
- */
225
- /*------------------------------------*\
226
- #BUTTON-GROUP
227
- \*------------------------------------*/
228
- :host {
229
- display: inline-flex;
230
- }
231
-
232
- /**
233
- * 1) Button Group
234
- */
235
- .cre8-c-button-group {
236
- display: flex;
237
- flex-wrap: wrap;
238
- gap: 16px;
239
- }
240
-
241
- /**
242
- * Button group for Modals
243
- */
244
- .cre8-c-button-group--responsive-full-width {
245
- flex-direction: column;
246
- --cre8-button-width: 100%;
247
- }
248
- @media all and (min-width: 768px) {
249
- .cre8-c-button-group--responsive-full-width {
250
- flex-direction: row;
251
- --cre8-button-width: auto;
252
- }
253
- }
254
- /* sourceMappingURL=button-group.module.css.map */
255
- `;
256
- var c = Object.defineProperty, f = (o, t, a, m) => {
257
- for (var e = void 0, i = o.length - 1, n; i >= 0; i--)
258
- (n = o[i]) && (e = n(t, a, e) || e);
259
- return e && c(t, a, e), e;
4
+ const m = o`*,::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:inline-flex}.cre8-c-button-group{display:flex;flex-wrap:wrap;gap:1rem}.cre8-c-button-group--responsive-full-width{flex-direction:column;--cre8-button-width: 100%}@media all and (min-width: 768px){.cre8-c-button-group--responsive-full-width{flex-direction:row;--cre8-button-width: auto}}`;
5
+ var c = Object.defineProperty, f = (a, t, d, x) => {
6
+ for (var e = void 0, i = a.length - 1, n; i >= 0; i--)
7
+ (n = a[i]) && (e = n(t, d, e) || e);
8
+ return e && c(t, d, e), e;
260
9
  };
261
10
  const s = class s extends h {
262
11
  render() {
263
12
  const t = this.componentClassNames("cre8-c-button-group", {
264
13
  "cre8-c-button-group--responsive-full-width": this.orientation === "responsive-full-width"
265
14
  });
266
- return d`
15
+ return l`
267
16
  <div class="${t}">
268
17
  <slot></slot>
269
18
  </div>
270
19
  `;
271
20
  }
272
21
  };
273
- s.styles = [p];
22
+ s.styles = [m];
274
23
  let r = s;
275
24
  f([
276
- u()
25
+ p()
277
26
  ], r.prototype, "orientation");
278
27
  customElements.get("cre8-button-group") === void 0 && customElements.define("cre8-button-group", r);
279
28
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"button-group.styles.d.ts","sourceRoot":"","sources":["../../../components/button-group/button-group.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBA2PX,CAAC;AACF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"button-group.styles.d.ts","sourceRoot":"","sources":["../../../components/button-group/button-group.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAA4jE,CAAC;AACzkE,eAAe,MAAM,CAAC"}
@@ -1,126 +1,13 @@
1
- import { css as h, html as o } from "lit";
2
- import { property as l } from "lit/decorators.js";
1
+ import { css as h, html as i } from "lit";
2
+ import { property as n } from "lit/decorators.js";
3
3
  import { Cre8Element as p } from "../cre8-element.js";
4
- const f = h`@import '../../design-tokens/core/scss/theming/component';
5
-
6
- // #CARD
7
-
8
- :host {
9
- display: block;
10
- }
11
-
12
- /**
13
- * 1) A card is an organized block that typically contains a title, image,
14
- * text, and/or calls to action. It is made up of an optional header slot, required
15
- * body slot, and optional footer slot to place other Components and content within.
16
- */
17
- .cre8-c-card {
18
- overflow: hidden;
19
- display: flex;
20
- flex-direction: column;
21
- height: 100%;
22
- width: 100%;
23
- padding: calc(8px * 3);
24
- gap: calc(8px * 2);
25
- border-color: var(--cre8-color-border-default);
26
- border-style: var(--cre8-border-style-default);
27
- border-width: var(--cre8-border-width-default);
28
- border-radius: var(--cre8-border-radius-default);
29
- background: var(--cre8-color-bg-default);
30
- }
31
- /**
32
- * Horizontal card
33
- * 1) Organized block with flex-direction set to row so that header => footer appears
34
- * from left to right rather than top to bottom
35
- */
36
- .cre8-c-card--horizontal{
37
- flex-direction: row;
38
- align-items: center;
39
- justify-content: center;
40
- }
41
- /**
42
- * Bare card
43
- * 1) Organized block without a border, background, or padding
44
- */
45
- .cre8-c-card--bare {
46
- border: 0;
47
- padding: 0;
48
- gap: 0;
49
- box-shadow: none;
50
- }
51
- /**
52
- * Horizontal-bare card
53
- * 1) Organized block with flex-direction set to row so that header => footer appears
54
- * from left to right rather than top to bottom without a border, background, or padding
55
- */
56
- .cre8-c-card--horizontal-bare{
57
- flex-direction: row;
58
- border: 0;
59
- padding: 0;
60
- gap: 0;
61
- box-shadow: none;
62
- align-items: center;
63
- justify-content: center;
64
- }
65
- /**
66
- * Center aligned card
67
- * 1) Center content and text within the card
68
- */
69
- .cre8-c-card--align-center {
70
- text-align: center; /* 1 */
71
- align-items: center; /* 1 */
72
- justify-content: center; /* 1 */
73
- }
74
-
75
- /**
76
- * Slotted image within a card
77
- * 1) Make the image full width
78
- */
79
- ::slotted(img) {
80
- width: 100%;
81
- }
82
-
83
- /**
84
- * Card header
85
- * 1) Remove flex so that body always takes up remaining space
86
- */
87
- .cre8-c-card__header {
88
- display: block;
89
- flex: none; /* 1 */
90
- }
91
-
92
- /**
93
- * Card body
94
- * 1) Flex applied to always fill the remaining space of the card
95
- */
96
- .cre8-c-card__body {
97
- display: block;
98
- flex: 1 1 auto; /* 1 */
99
-
100
- }
101
-
102
- /**
103
- * Card footer
104
- * 1) Remove flex so that body always takes up remaining space
105
- */
106
- .cre8-c-card__footer {
107
- display: block;
108
- flex: none; /* 1 */
109
-
110
- .cre8-c-card--bare & {
111
- padding: 0;
112
- }
113
- .cre8-c-card--horizontal-bare & {
114
- padding: 0;
115
- }
116
- }
117
- `;
118
- var b = Object.defineProperty, s = (d, t, i, m) => {
119
- for (var e = void 0, a = d.length - 1, n; a >= 0; a--)
120
- (n = d[a]) && (e = n(t, i, e) || e);
121
- return e && b(t, i, e), e;
4
+ const m = h`*,::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}`;
5
+ var f = Object.defineProperty, l = (o, t, s, x) => {
6
+ for (var e = void 0, a = o.length - 1, c; a >= 0; a--)
7
+ (c = o[a]) && (e = c(t, s, e) || e);
8
+ return e && f(t, s, e), e;
122
9
  };
123
- const c = class c extends p {
10
+ const d = class d extends p {
124
11
  render() {
125
12
  const t = this.componentClassNames("cre8-c-card", {
126
13
  "cre8-c-card--bare": this.variant === "bare",
@@ -128,24 +15,24 @@ const c = class c extends p {
128
15
  "cre8-c-card--horizontal-bare": this.variant === "horizontal-bare",
129
16
  "cre8-c-card--align-center": this.align === "center"
130
17
  });
131
- return o`
18
+ return i`
132
19
  <div class="${t}" part="card">
133
- ${this.slotNotEmpty("header") && o`<div class="cre8-c-card__header" part="header"><slot name="header"></slot></div>`}
20
+ ${this.slotNotEmpty("header") && i`<div class="cre8-c-card__header" part="header"><slot name="header"></slot></div>`}
134
21
  <div class="cre8-c-card__body" part="body">
135
22
  <slot></slot>
136
23
  </div>
137
- ${this.slotNotEmpty("footer") && o`<div class="cre8-c-card__footer" part="footer"><slot name="footer"></slot></div>`}
24
+ ${this.slotNotEmpty("footer") && i`<div class="cre8-c-card__footer" part="footer"><slot name="footer"></slot></div>`}
138
25
  </div>
139
26
  `;
140
27
  }
141
28
  };
142
- c.styles = [f];
143
- let r = c;
144
- s([
145
- l()
29
+ d.styles = [m];
30
+ let r = d;
31
+ l([
32
+ n()
146
33
  ], r.prototype, "variant");
147
- s([
148
- l()
34
+ l([
35
+ n()
149
36
  ], r.prototype, "align");
150
37
  customElements.get("cre8-card") === void 0 && customElements.define("cre8-card", r);
151
38
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"card.styles.d.ts","sourceRoot":"","sources":["../../../components/card/card.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAiHX,CAAC;AACF,eAAe,MAAM,CAAC"}
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"}