@tmorrow/cre8-wc 1.0.26 → 1.1.1

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 (200) 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.js +50 -215
  97. package/lib/components/modal/modal.styles.d.ts.map +1 -1
  98. package/lib/components/multi-select/multi-select.js +71 -532
  99. package/lib/components/multi-select/multi-select.styles.d.ts.map +1 -1
  100. package/lib/components/nav-container/nav-container.js +5 -40
  101. package/lib/components/nav-container/nav-container.styles.d.ts.map +1 -1
  102. package/lib/components/page-header/page-header.js +19 -54
  103. package/lib/components/page-header/page-header.styles.d.ts.map +1 -1
  104. package/lib/components/pagination/page-counter/page-counter.styles.d.ts.map +1 -1
  105. package/lib/components/pagination/pagination.js +102 -183
  106. package/lib/components/pagination/pagination.styles.d.ts.map +1 -1
  107. package/lib/components/percent-bar/percent-bar.js +22 -50
  108. package/lib/components/percent-bar/percent-bar.styles.d.ts.map +1 -1
  109. package/lib/components/popover/popover.js +51 -220
  110. package/lib/components/popover/popover.styles.d.ts.map +1 -1
  111. package/lib/components/primary-nav/primary-nav.js +17 -51
  112. package/lib/components/primary-nav/primary-nav.styles.d.ts.map +1 -1
  113. package/lib/components/primary-nav-item/primary-nav-item.js +24 -191
  114. package/lib/components/primary-nav-item/primary-nav-item.styles.d.ts.map +1 -1
  115. package/lib/components/progress-meter/progress-meter.js +23 -127
  116. package/lib/components/progress-meter/progress-meter.styles.d.ts.map +1 -1
  117. package/lib/components/progress-steps/progress-steps.styles.d.ts.map +1 -1
  118. package/lib/components/progress-steps-item/progress-steps-item.js +27 -118
  119. package/lib/components/progress-steps-item/progress-steps-item.styles.d.ts.map +1 -1
  120. package/lib/components/radio-field/radio-field.js +28 -64
  121. package/lib/components/radio-field/radio-field.styles.d.ts.map +1 -1
  122. package/lib/components/radio-field-item/radio-field-item.js +54 -189
  123. package/lib/components/radio-field-item/radio-field-item.styles.d.ts.map +1 -1
  124. package/lib/components/remove-tag/remove-tag.js +36 -129
  125. package/lib/components/remove-tag/remove-tag.styles.d.ts.map +1 -1
  126. package/lib/components/section/section.js +19 -50
  127. package/lib/components/section/section.styles.d.ts.map +1 -1
  128. package/lib/components/select/select.js +43 -416
  129. package/lib/components/select/select.styles.d.ts.map +1 -1
  130. package/lib/components/select-tile/select-tile.js +18 -442
  131. package/lib/components/select-tile/select-tile.styles.d.ts.map +1 -1
  132. package/lib/components/select-tile-list/select-tile-list.js +24 -62
  133. package/lib/components/select-tile-list/select-tile-list.styles.d.ts.map +1 -1
  134. package/lib/components/skeleton-loader/skeleton-loader.js +19 -73
  135. package/lib/components/skeleton-loader/skeleton-loader.styles.d.ts.map +1 -1
  136. package/lib/components/split-button/split-button.js +21 -37
  137. package/lib/components/split-button/split-button.styles.d.ts.map +1 -1
  138. package/lib/components/submenu/submenu.js +8 -18
  139. package/lib/components/submenu/submenu.styles.d.ts.map +1 -1
  140. package/lib/components/submenu-item/submenu-item.js +21 -42
  141. package/lib/components/submenu-item/submenu-item.styles.d.ts.map +1 -1
  142. package/lib/components/tab/tab.js +17 -100
  143. package/lib/components/tab/tab.styles.d.ts.map +1 -1
  144. package/lib/components/tab-panel/tab-panel.js +18 -52
  145. package/lib/components/tab-panel/tab-panel.styles.d.ts.map +1 -1
  146. package/lib/components/table/table.js +21 -73
  147. package/lib/components/table/table.styles.d.ts.map +1 -1
  148. package/lib/components/table-body/table-body.js +12 -24
  149. package/lib/components/table-body/table-body.styles.d.ts.map +1 -1
  150. package/lib/components/table-cell/table-cell.js +29 -69
  151. package/lib/components/table-cell/table-cell.styles.d.ts.map +1 -1
  152. package/lib/components/table-header/table-header.js +8 -39
  153. package/lib/components/table-header/table-header.styles.d.ts.map +1 -1
  154. package/lib/components/table-header-cell/table-header-cell.js +18 -37
  155. package/lib/components/table-header-cell/table-header-cell.styles.d.ts.map +1 -1
  156. package/lib/components/table-object/table-object.js +13 -32
  157. package/lib/components/table-object/table-object.styles.d.ts.map +1 -1
  158. package/lib/components/table-row/table-row.js +33 -139
  159. package/lib/components/table-row/table-row.styles.d.ts.map +1 -1
  160. package/lib/components/tabs/tabs.js +24 -339
  161. package/lib/components/tabs/tabs.styles.d.ts.map +1 -1
  162. package/lib/components/tag/tag.js +44 -159
  163. package/lib/components/tag/tag.styles.d.ts.map +1 -1
  164. package/lib/components/tag-list/tag-list.js +20 -51
  165. package/lib/components/tag-list/tag-list.styles.d.ts.map +1 -1
  166. package/lib/components/tertiary-nav/tertiary-nav.js +21 -54
  167. package/lib/components/tertiary-nav/tertiary-nav.styles.d.ts.map +1 -1
  168. package/lib/components/tertiary-nav-item/tertiary-nav-item.js +18 -68
  169. package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.d.ts.map +1 -1
  170. package/lib/components/text-link/text-link.js +20 -85
  171. package/lib/components/text-link/text-link.styles.d.ts.map +1 -1
  172. package/lib/components/text-passage/text-passage-light-dom.styles.d.ts.map +1 -1
  173. package/lib/components/text-passage/text-passage.js +17 -189
  174. package/lib/components/text-passage/text-passage.styles.d.ts.map +1 -1
  175. package/lib/components/tooltip/tooltip.js +57 -248
  176. package/lib/components/tooltip/tooltip.styles.d.ts.map +1 -1
  177. package/lib/components/utility-nav/utility-nav.js +23 -56
  178. package/lib/components/utility-nav/utility-nav.styles.d.ts.map +1 -1
  179. package/lib/components/utility-nav-item/utility-nav-item.js +28 -83
  180. package/lib/components/utility-nav-item/utility-nav-item.styles.d.ts.map +1 -1
  181. package/lib/design-tokens/brands/blue/css/tokens_blue.module.d.ts.map +1 -1
  182. package/lib/design-tokens/brands/bolt/tokens_bolt.theme.d.ts.map +1 -1
  183. package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.d.ts +3 -0
  184. package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.d.ts.map +1 -0
  185. package/lib/design-tokens/brands/cre8-legacy/css/tokens_cre8-legacy.module.d.ts.map +1 -1
  186. package/lib/design-tokens/brands/femmecubator/css/tokens_femmecubator2.module.d.ts.map +1 -1
  187. package/lib/design-tokens/brands/legacy/css/tokens_legacy.module.d.ts.map +1 -1
  188. package/lib/design-tokens/brands/marketing/css/tokens_marketing.module.d.ts.map +1 -1
  189. package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.d.ts +2 -2
  190. package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.d.ts.map +1 -1
  191. package/lib/design-tokens/brands/starbucks/tokens_starbucks.module.d.ts.map +1 -1
  192. package/lib/design-tokens/core/scss/theming/component.scss +5 -5
  193. package/lib/design-tokens/core/scss/theming/functions.scss +4 -0
  194. package/lib/design-tokens/core/scss/theming/spacing.scss +60 -60
  195. package/lib/design-tokens/core/scss/theming/variables.scss +11 -11
  196. package/lib/design-tokens/mixins/typography-usage.scss +277 -277
  197. package/lib/design-tokens/tokens_netflix.theme.d.ts.map +1 -1
  198. package/lib/{icon-DImqxDiW.js → icon-D22g8aWB.js} +35 -138
  199. package/lib/index.js +1 -1
  200. package/package.json +7 -6
@@ -1,184 +1,17 @@
1
- import { css as m, html as l, nothing as u } from "lit";
1
+ import { css as f, html as a, nothing as b } from "lit";
2
2
  import { ifDefined as o } from "lit-html/directives/if-defined.js";
3
- import { property as c, query as p } from "lit/decorators.js";
4
- import { nanoid as a } from "nanoid";
5
- import { s as k } from "../../icon-DImqxDiW.js";
3
+ import { property as r, query as u } from "lit/decorators.js";
4
+ import { nanoid as d } from "nanoid";
5
+ import { s as x } from "../../icon-D22g8aWB.js";
6
6
  import "../field-note/field-note.js";
7
- import { Cre8FormElement as x } from "../cre8-form-element.js";
8
- const y = m`
9
- @import '../../design-tokens/core/scss/theming/component.scss';
10
- @import '../../design-tokens/core/scss/theming/visibility.scss';
11
-
12
- /*------------------------------------*\
13
- #CHECKBOX-FIELD-ITEM
14
- \*------------------------------------*/
15
-
16
- :host {
17
- display: inline-flex;
18
- flex-wrap: wrap;
19
- }
20
-
21
- /**
22
- * 1) Form field that is composed of a checkbox input, label, and an optional field note.
23
- */
24
- .cre8-c-checkbox-field-item {
25
- display: flex;
26
- position: relative;
27
- align-items: center;
28
- margin-bottom: calc(8px * 1);
29
- min-height: calc(8px * 3);
30
-
31
- /**
32
- * Checkbox field item within last cre8-checkbox-field-item wrapper in a fieldset
33
- * 1) Remove margin bottom on last item
34
- */
35
- :host(:last-child) & {
36
- margin-bottom: 0; /* 1 */
37
- }
38
- }
39
-
40
- /**
41
- * Checkbox field item input
42
- */
43
- .cre8-c-checkbox-field-item__input {
44
- opacity: 0;
45
- cursor: pointer;
46
- position: absolute;
47
- top: 0;
48
- left: 0;
49
- height: calc(8px * 3);
50
- min-width: calc(8px * 3);
51
- margin: 0;
52
- z-index: 1;
53
-
54
- /**
55
- * Checkbox field item input error
56
- */
57
- .cre8-c-checkbox-field-item--disabled & {
58
- cursor: not-allowed;
59
- }
60
- }
61
-
62
- /**
63
- * Checkbox field item custom checkbox container
64
- */
65
- .cre8-c-checkbox-field-item__custom-checkbox {
66
- display: flex;
67
- position: absolute;
68
- top: 0;
69
- left: 0;
70
- height: calc(8px * 3);
71
- width: calc(8px * 3);
72
- cursor: pointer;
73
- align-items: center;
74
- justify-content: center;
75
- border-radius: var(--cre8-border-radius-small);
76
- border-width: var(--cre8-border-width-default);
77
- border-style: var(--cre8-border-style-default);
78
- background-color: var(--cre8-color-bg-default);
79
- border-color: var(--cre8-color-border-strong);
80
-
81
- /**
82
- * Checkbox field item custom checkbox focus visible custom outline
83
- */
84
- .cre8-c-checkbox-field-item__input:focus-visible + & {
85
- @include focus;
86
-
87
- .cre8-c-checkbox-field-item--error & {
88
- @include focusError;
89
- }
90
- }
91
-
92
- /**
93
- * Checkbox field item custom checkbox within checkbox field with error
94
- */
95
- .cre8-c-checkbox-field-item--error & {
96
- background-color: var(--cre8-color-bg-default);
97
- border-color: var(--cre8-color-border-error);
98
- }
99
-
100
- /**
101
- * Checkbox field item custom checkbox within checkbox field with disabled
102
- */
103
- .cre8-c-checkbox-field-item--disabled & {
104
- cursor: not-allowed;
105
- background-color: var(--cre8-color-bg-disabled);
106
- border-color: var(--cre8-color-border-disabled);
107
- }
108
- }
109
-
110
- /**
111
- * Checkbox field item custom checkbox when item is checked
112
- */
113
- .cre8-c-checkbox-field-item__input:checked + .cre8-c-checkbox-field-item__custom-checkbox {
114
- background-color: var(--cre8-color-bg-brand-strong);
115
-
116
- /**
117
- * Checkbox field item custom checkbox when item is checked with error
118
- */
119
- .cre8-c-checkbox-field-item--error & {
120
- background-color: var(--cre8-color-bg-default);
121
- }
122
-
123
- /**
124
- * Checkbox field item custom checkbox when item is checked with disabled
125
- */
126
- .cre8-c-checkbox-field-item--disabled & {
127
- background-color: var(--cre8-color-bg-disabled);
128
- }
129
- }
130
-
131
- /**
132
- * Checkbox field item checkmark icon
133
- */
134
- .cre8-c-checkbox-field-item__icon {
135
- display: none;
136
- color: var(--cre8-color-content-knockout);
137
-
138
- /**
139
- * Checkbox field item icon within checkbox field with error
140
- */
141
- .cre8-c-checkbox-field-item--error & {
142
- color: var(--cre8-color-content-error);
143
- }
144
-
145
- /**
146
- * Checkbox field item icon within checkbox field disabled
147
- */
148
- .cre8-c-checkbox-field-item--disabled & {
149
- color: var(--cre8-color-content-disabled);
150
- }
151
-
152
- /**
153
- * Checkbox field item icon will display in the box if the input is checked
154
- */
155
- .cre8-c-checkbox-field-item__input:checked + .cre8-c-checkbox-field-item__custom-checkbox & {
156
- display: flex;
157
- }
158
- }
159
-
160
- /**
161
- * Checkbox field item input
162
- */
163
- .cre8-c-checkbox-field-item__label {
164
- margin-left: calc(8px * 4);
165
- @include cre8-typography-label-small;
166
- }
167
-
168
- /**
169
- * Checkbox field item field notes
170
- */
171
- .cre8-c-checkbox-field-item__field-note,
172
- .cre8-c-checkbox-field-item__field-note-success,
173
- .cre8-c-checkbox-field-item__field-note-error {
174
- flex-basis: 100%;
175
- }`;
176
- var v = Object.defineProperty, i = (n, t, s, b) => {
177
- for (var r = void 0, d = n.length - 1, f; d >= 0; d--)
178
- (f = n[d]) && (r = f(t, s, r) || r);
179
- return r && v(t, s, r), r;
7
+ import { Cre8FormElement as k } from "../cre8-form-element.js";
8
+ const y = f`*,::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}.cre8-u-is-hidden{display:none !important;visibility:hidden !important}.cre8-u-is-vishidden{position:absolute !important;overflow:hidden;width:1px;height:1px;padding:0;border:0;clip:rect(1px, 1px, 1px, 1px)}@media all and (min-width: 23.4375rem){.cre8-u-hide-sm{display:none !important}}@media all and (min-width: 35rem){.cre8-u-hide-sm-2{display:none !important}}@media all and (min-width: 48rem){.cre8-u-hide-md{display:none !important}}@media all and (min-width: 60rem){.cre8-u-hide-lg{display:none !important}}@media all and (min-width: 75rem){.cre8-u-hide-xl{display:none !important}}@media all and (max-width: 23.4375rem){.cre8-u-show-sm{display:none !important}}@media all and (max-width: 35rem){.cre8-u-show-sm-2{display:none !important}}@media all and (max-width: 48rem){.cre8-u-show-md{display:none !important}}@media all and (max-width: 60rem){.cre8-u-show-lg{display:none !important}}@media all and (max-width: 75rem){.cre8-u-show-xl{display:none !important}}:host{display:inline-flex;flex-wrap:wrap}.cre8-c-checkbox-field-item{display:flex;position:relative;align-items:center;margin-bottom:0.5rem;min-height:1.5rem}:host(:last-child) .cre8-c-checkbox-field-item{margin-bottom:0}.cre8-c-checkbox-field-item__input{opacity:0;cursor:pointer;position:absolute;top:0;left:0;height:1.5rem;min-width:1.5rem;margin:0;z-index:1}.cre8-c-checkbox-field-item--disabled .cre8-c-checkbox-field-item__input{cursor:not-allowed}.cre8-c-checkbox-field-item__custom-checkbox{display:flex;position:absolute;top:0;left:0;height:1.5rem;width:1.5rem;cursor:pointer;align-items:center;justify-content:center;border-radius:var(--cre8-border-radius-small);border-width:var(--cre8-border-width-default);border-style:var(--cre8-border-style-default);background-color:var(--cre8-color-bg-default);border-color:var(--cre8-color-border-strong)}.cre8-c-checkbox-field-item__input:focus-visible+.cre8-c-checkbox-field-item__custom-checkbox{outline:var(--cre8-border-width-focus) solid var(--cre8-color-border-active-outline);outline-offset:0.125rem}.cre8-c-checkbox-field-item--error .cre8-c-checkbox-field-item__input:focus-visible+.cre8-c-checkbox-field-item__custom-checkbox{outline:var(--cre8-border-width-focus) solid var(--cre8-color-border-error);outline-offset:0.125rem}.cre8-c-checkbox-field-item--error .cre8-c-checkbox-field-item__custom-checkbox{background-color:var(--cre8-color-bg-default);border-color:var(--cre8-color-border-error)}.cre8-c-checkbox-field-item--disabled .cre8-c-checkbox-field-item__custom-checkbox{cursor:not-allowed;background-color:var(--cre8-color-bg-disabled);border-color:var(--cre8-color-border-disabled)}.cre8-c-checkbox-field-item__input:checked+.cre8-c-checkbox-field-item__custom-checkbox{background-color:var(--cre8-color-bg-brand-strong)}.cre8-c-checkbox-field-item--error .cre8-c-checkbox-field-item__input:checked+.cre8-c-checkbox-field-item__custom-checkbox{background-color:var(--cre8-color-bg-default)}.cre8-c-checkbox-field-item--disabled .cre8-c-checkbox-field-item__input:checked+.cre8-c-checkbox-field-item__custom-checkbox{background-color:var(--cre8-color-bg-disabled)}.cre8-c-checkbox-field-item__icon{display:none;color:var(--cre8-color-content-knockout)}.cre8-c-checkbox-field-item--error .cre8-c-checkbox-field-item__icon{color:var(--cre8-color-content-error)}.cre8-c-checkbox-field-item--disabled .cre8-c-checkbox-field-item__icon{color:var(--cre8-color-content-disabled)}.cre8-c-checkbox-field-item__input:checked+.cre8-c-checkbox-field-item__custom-checkbox .cre8-c-checkbox-field-item__icon{display:flex}.cre8-c-checkbox-field-item__label{margin-left:2rem;font-family:var(--cre8-typography-label-small-font-family);font-size:var(--cre8-typography-label-small-font-size);font-weight:var(--cre8-typography-label-small-font-weight);line-height:var(--cre8-typography-label-small-line-height);text-decoration:var(--cre8-typography-label-small-text-decoration);text-transform:var(--cre8-typography-label-small-text-transform)}.cre8-c-checkbox-field-item__field-note,.cre8-c-checkbox-field-item__field-note-success,.cre8-c-checkbox-field-item__field-note-error{flex-basis:100%}`;
9
+ var g = Object.defineProperty, i = (h, t, s, m) => {
10
+ for (var c = void 0, l = h.length - 1, p; l >= 0; l--)
11
+ (p = h[l]) && (c = p(t, s, c) || c);
12
+ return c && g(t, s, c), c;
180
13
  };
181
- const h = class h extends x {
14
+ const n = class n extends k {
182
15
  constructor() {
183
16
  super(...arguments), this.type = "checkbox", this.errorText = "Error", this.successText = "Success";
184
17
  }
@@ -222,7 +55,7 @@ const h = class h extends x {
222
55
  _handleOnChange(t) {
223
56
  const s = t.target;
224
57
  this.value = s.value, this._internals.setFormValue(this.value);
225
- const b = new CustomEvent("change", {
58
+ const m = new CustomEvent("change", {
226
59
  detail: {
227
60
  name: this.name,
228
61
  value: this.value
@@ -230,7 +63,7 @@ const h = class h extends x {
230
63
  bubbles: !0,
231
64
  composed: !0
232
65
  });
233
- this.dispatchEvent(b);
66
+ this.dispatchEvent(m);
234
67
  }
235
68
  /**
236
69
  * Form reset callback
@@ -253,7 +86,7 @@ const h = class h extends x {
253
86
  * Initialize aria attributes
254
87
  */
255
88
  initializeAria() {
256
- this.fieldId = this.fieldId || a(), (this.fieldNote || this.slotNotEmpty("fieldNote")) && (this.ariaDescribedBy = this.ariaDescribedBy || a()), (this.successNote || this.errorNote) && (this.validationAriaDescribedBy = this.validationAriaDescribedBy || a());
89
+ this.fieldId = this.fieldId || d(), (this.fieldNote || this.slotNotEmpty("fieldNote")) && (this.ariaDescribedBy = this.ariaDescribedBy || d()), (this.successNote || this.errorNote) && (this.validationAriaDescribedBy = this.validationAriaDescribedBy || d());
257
90
  }
258
91
  /**
259
92
  * Aria describedby string based on field notes and error/success notes
@@ -272,14 +105,14 @@ const h = class h extends x {
272
105
  * 2. If there is a errorNote, then return the field note with the error message and state.
273
106
  */
274
107
  renderSuccessErrorFieldNote() {
275
- return this.successNote ? l`<cre8-field-note
108
+ return this.successNote ? a`<cre8-field-note
276
109
  ?isSuccess=${this.isSuccess}
277
110
  id=${this.validationAriaDescribedBy}
278
111
  class="cre8-c-checkbox-field-item__field-note-success"
279
112
  iconName="success"
280
113
  >
281
114
  <span class="cre8-u-is-vishidden">${this.successText}</span> ${this.successNote}
282
- </cre8-field-note>` : this.errorNote ? l` <cre8-field-note
115
+ </cre8-field-note>` : this.errorNote ? a` <cre8-field-note
283
116
  ?isError=${this.isError}
284
117
  id=${this.validationAriaDescribedBy}
285
118
  class="cre8-c-checkbox-field-item__field-note-error"
@@ -294,7 +127,7 @@ const h = class h extends x {
294
127
  "cre8-c-checkbox-field-item--success": this.isSuccess,
295
128
  "cre8-c-checkbox-field-item--disabled": this.disabled
296
129
  });
297
- return l`
130
+ return a`
298
131
  <div role=${o(this.getRole())} class="${t}">
299
132
  <input class="cre8-c-checkbox-field-item__input"
300
133
  type="checkbox"
@@ -310,67 +143,67 @@ const h = class h extends x {
310
143
  @change=${this._handleOnChange}
311
144
  />
312
145
  <span class="cre8-c-checkbox-field-item__custom-checkbox">
313
- <cre8-icon svg='${k}' class="cre8-c-checkbox-field-item__icon" aria-label="checkbox"
146
+ <cre8-icon svg='${x}' class="cre8-c-checkbox-field-item__icon" aria-label="checkbox"
314
147
  aria-hidden="${!this.checked}"></cre8-icon>
315
148
  </span>
316
149
  <label class="cre8-c-checkbox-field-item__label" for=${this.fieldId}>${this.label}</label>
317
150
  </div>
318
- ${this.fieldNote || this.slotNotEmpty("fieldNote") ? l`<cre8-field-note id=${this.ariaDescribedBy} class="cre8-c-checkbox-field-item__field-note"
151
+ ${this.fieldNote || this.slotNotEmpty("fieldNote") ? a`<cre8-field-note id=${this.ariaDescribedBy} class="cre8-c-checkbox-field-item__field-note"
319
152
  ><slot name="fieldNote">${this.fieldNote}</slot></cre8-field-note
320
- >` : u}
153
+ >` : b}
321
154
  ${this.renderSuccessErrorFieldNote()}
322
155
  `;
323
156
  }
324
157
  };
325
- h.styles = [y];
326
- let e = h;
158
+ n.styles = [y];
159
+ let e = n;
327
160
  i([
328
- c({ type: String })
161
+ r({ type: String })
329
162
  ], e.prototype, "label");
330
163
  i([
331
- c({ type: Boolean, reflect: !0 })
164
+ r({ type: Boolean, reflect: !0 })
332
165
  ], e.prototype, "isError");
333
166
  i([
334
- c()
167
+ r()
335
168
  ], e.prototype, "errorText");
336
169
  i([
337
- c()
170
+ r()
338
171
  ], e.prototype, "errorNote");
339
172
  i([
340
- c({ type: Boolean, reflect: !0 })
173
+ r({ type: Boolean, reflect: !0 })
341
174
  ], e.prototype, "isSuccess");
342
175
  i([
343
- c()
176
+ r()
344
177
  ], e.prototype, "successText");
345
178
  i([
346
- c()
179
+ r()
347
180
  ], e.prototype, "successNote");
348
181
  i([
349
- c({ type: Boolean, reflect: !0 })
182
+ r({ type: Boolean, reflect: !0 })
350
183
  ], e.prototype, "disabled");
351
184
  i([
352
- c({ type: Boolean, reflect: !0 })
185
+ r({ type: Boolean, reflect: !0 })
353
186
  ], e.prototype, "checked");
354
187
  i([
355
- c()
188
+ r()
356
189
  ], e.prototype, "fieldId");
357
190
  i([
358
- c()
191
+ r()
359
192
  ], e.prototype, "fieldNote");
360
193
  i([
361
- c()
194
+ r()
362
195
  ], e.prototype, "ariaDescribedBy");
363
196
  i([
364
- c()
197
+ r()
365
198
  ], e.prototype, "validationAriaDescribedBy");
366
199
  i([
367
- c({ type: Boolean, reflect: !0 })
200
+ r({ type: Boolean, reflect: !0 })
368
201
  ], e.prototype, "required");
369
202
  i([
370
- c()
203
+ r()
371
204
  ], e.prototype, "fieldNoteIconName");
372
205
  i([
373
- p("input")
206
+ u("input")
374
207
  ], e.prototype, "field");
375
208
  customElements.get("cre8-checkbox-field-item") === void 0 && customElements.define("cre8-checkbox-field-item", e);
376
209
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox-field-item.styles.d.ts","sourceRoot":"","sources":["../../../components/checkbox-field-item/checkbox-field-item.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAuKV,CAAC;AACH,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"checkbox-field-item.styles.d.ts","sourceRoot":"","sources":["../../../components/checkbox-field-item/checkbox-field-item.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAAmyL,CAAC;AAChzL,eAAe,MAAM,CAAC"}