@redvars/peacock 3.2.7 → 3.2.8

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 (109) hide show
  1. package/dist/PeacockComponent-DMrFEGDh.js +80 -0
  2. package/dist/PeacockComponent-DMrFEGDh.js.map +1 -0
  3. package/dist/breadcrumb-item-DkhwoMAH.js +6879 -0
  4. package/dist/breadcrumb-item-DkhwoMAH.js.map +1 -0
  5. package/dist/button-BtpAXuLN.js +1180 -0
  6. package/dist/button-BtpAXuLN.js.map +1 -0
  7. package/dist/button-group.js +7 -6
  8. package/dist/button-group.js.map +1 -1
  9. package/dist/button.js +5 -0
  10. package/dist/button.js.map +1 -0
  11. package/dist/{class-map-BmCohX9p.js → class-map-CbncA34D.js} +2 -3
  12. package/dist/class-map-CbncA34D.js.map +1 -0
  13. package/dist/code-highlighter.js +9 -8
  14. package/dist/code-highlighter.js.map +1 -1
  15. package/dist/custom-elements.json +28 -0
  16. package/dist/index.js +87 -35
  17. package/dist/index.js.map +1 -1
  18. package/dist/number-counter.js +7 -6
  19. package/dist/number-counter.js.map +1 -1
  20. package/dist/peacock-loader.js +963 -38
  21. package/dist/peacock-loader.js.map +1 -1
  22. package/dist/src/PeacockComponent.d.ts +1 -0
  23. package/dist/{state-CV1fRmOT.js → state-CEVpI7Vv.js} +2 -2
  24. package/dist/{state-CV1fRmOT.js.map → state-CEVpI7Vv.js.map} +1 -1
  25. package/dist/{style-map-CdmclYgz.js → style-map-mOmZwsJT.js} +2 -3
  26. package/dist/style-map-mOmZwsJT.js.map +1 -0
  27. package/dist/tsconfig.tsbuildinfo +1 -1
  28. package/dist/{unsafe-html-BS8X6Gto.js → unsafe-html-Ca00SXpn.js} +2 -3
  29. package/dist/unsafe-html-Ca00SXpn.js.map +1 -0
  30. package/package.json +1 -1
  31. package/readme.md +2 -2
  32. package/src/PeacockComponent.ts +3 -0
  33. package/src/button/button/button.ts +3 -1
  34. package/src/button/button-group/button-group.ts +2 -0
  35. package/src/code-highlighter/code-highlighter.ts +2 -0
  36. package/src/number-counter/number-counter.ts +2 -0
  37. package/dist/BaseButton.js +0 -209
  38. package/dist/BaseButton.js.map +0 -1
  39. package/dist/BaseInput.js +0 -27
  40. package/dist/BaseInput.js.map +0 -1
  41. package/dist/accordion-item.js +0 -191
  42. package/dist/accordion-item.js.map +0 -1
  43. package/dist/accordion.js +0 -142
  44. package/dist/accordion.js.map +0 -1
  45. package/dist/avatar.js +0 -106
  46. package/dist/avatar.js.map +0 -1
  47. package/dist/badge.js +0 -84
  48. package/dist/badge.js.map +0 -1
  49. package/dist/base-progress.js +0 -33
  50. package/dist/base-progress.js.map +0 -1
  51. package/dist/breadcrumb-item.js +0 -160
  52. package/dist/breadcrumb-item.js.map +0 -1
  53. package/dist/breadcrumb.js +0 -84
  54. package/dist/breadcrumb.js.map +0 -1
  55. package/dist/checkbox.js +0 -530
  56. package/dist/checkbox.js.map +0 -1
  57. package/dist/chip.js +0 -303
  58. package/dist/chip.js.map +0 -1
  59. package/dist/class-map-BmCohX9p.js.map +0 -1
  60. package/dist/clock.js +0 -83
  61. package/dist/clock.js.map +0 -1
  62. package/dist/container.js +0 -135
  63. package/dist/container.js.map +0 -1
  64. package/dist/directive-Cuw6h7YA.js +0 -9
  65. package/dist/directive-Cuw6h7YA.js.map +0 -1
  66. package/dist/divider.js +0 -126
  67. package/dist/divider.js.map +0 -1
  68. package/dist/elevation.js +0 -79
  69. package/dist/elevation.js.map +0 -1
  70. package/dist/empty-state.js +0 -171
  71. package/dist/empty-state.js.map +0 -1
  72. package/dist/field.js +0 -416
  73. package/dist/field.js.map +0 -1
  74. package/dist/focus-ring.js +0 -107
  75. package/dist/focus-ring.js.map +0 -1
  76. package/dist/icon.js +0 -183
  77. package/dist/icon.js.map +0 -1
  78. package/dist/link.js +0 -91
  79. package/dist/link.js.map +0 -1
  80. package/dist/lit-element-CA46RFZ_.js +0 -28
  81. package/dist/lit-element-CA46RFZ_.js.map +0 -1
  82. package/dist/menu-item.js +0 -232
  83. package/dist/menu-item.js.map +0 -1
  84. package/dist/menu-list.js +0 -108
  85. package/dist/menu-list.js.map +0 -1
  86. package/dist/menu.js +0 -117
  87. package/dist/menu.js.map +0 -1
  88. package/dist/property-DNVWDdPC.js +0 -45
  89. package/dist/property-DNVWDdPC.js.map +0 -1
  90. package/dist/query-QBcUV-L_.js +0 -15
  91. package/dist/query-QBcUV-L_.js.map +0 -1
  92. package/dist/ripple.js +0 -128
  93. package/dist/ripple.js.map +0 -1
  94. package/dist/skeleton.js +0 -113
  95. package/dist/skeleton.js.map +0 -1
  96. package/dist/spinner.js +0 -93
  97. package/dist/spinner.js.map +0 -1
  98. package/dist/spread-axRTFMoH.js +0 -32
  99. package/dist/spread-axRTFMoH.js.map +0 -1
  100. package/dist/style-map-CdmclYgz.js.map +0 -1
  101. package/dist/switch-DqxIiVsB.js +0 -2738
  102. package/dist/switch-DqxIiVsB.js.map +0 -1
  103. package/dist/tag.js +0 -323
  104. package/dist/tag.js.map +0 -1
  105. package/dist/tooltip.js +0 -1857
  106. package/dist/tooltip.js.map +0 -1
  107. package/dist/unsafe-html-BS8X6Gto.js.map +0 -1
  108. package/dist/utils-DGMeCC48.js +0 -273
  109. package/dist/utils-DGMeCC48.js.map +0 -1
package/dist/chip.js DELETED
@@ -1,303 +0,0 @@
1
- import { _ as __decorate, n } from './property-DNVWDdPC.js';
2
- import { i, a as i$1, b, A } from './lit-element-CA46RFZ_.js';
3
- import { e } from './class-map-BmCohX9p.js';
4
- import './directive-Cuw6h7YA.js';
5
-
6
- var css_248z$2 = i`* {
7
- box-sizing: border-box;
8
- }
9
-
10
- .screen-reader-only {
11
- display: none !important;
12
- }
13
-
14
- :host {
15
- display: inline-block;
16
- --chip-container-color: var(--color-surface);
17
- --chip-label-text-color: var(--color-on-surface);
18
- --chip-outline-color: var(--color-outline);
19
- --chip-container-shape: var(--shape-corner-small);
20
- }
21
-
22
- :host-context([data-theme=dark]) {
23
- --chip-hover-color: var(--color-primary-30);
24
- }
25
-
26
- .chip {
27
- position: relative;
28
- display: inline-flex;
29
- flex-direction: column;
30
- align-items: center;
31
- justify-content: center;
32
- height: var(--chip-height, var(--_chip-height, 2rem));
33
- padding: 0 var(--_container-padding, 1rem);
34
- width: 100%;
35
- border-radius: var(--chip-container-shape);
36
- }
37
- .chip .tag-content {
38
- position: relative;
39
- z-index: 1;
40
- overflow: hidden;
41
- text-overflow: ellipsis;
42
- white-space: nowrap;
43
- max-width: 100%;
44
- display: flex;
45
- align-items: center;
46
- justify-content: center;
47
- color: var(--chip-label-text-color);
48
- font-family: var(--typography-label-small-font-family) !important;
49
- font-size: var(--typography-label-small-font-size) !important;
50
- font-weight: var(--typography-label-small-font-weight) !important;
51
- line-height: var(--typography-label-small-line-height) !important;
52
- letter-spacing: var(--typography-label-small-letter-spacing) !important;
53
- gap: 0.5rem;
54
- }
55
- .chip .tag-content .tag-image {
56
- width: 1.125rem;
57
- height: 1.125rem;
58
- border-radius: 100%;
59
- background: var(--chip-hover-color);
60
- }
61
- .chip .close-btn {
62
- border-radius: 12px;
63
- padding: 0;
64
- margin: 0;
65
- border: none;
66
- background: transparent;
67
- line-height: 0;
68
- cursor: pointer;
69
- --icon-size: 1rem;
70
- }
71
- .chip .close-btn .close-btn-icon {
72
- --icon-size: 1rem;
73
- }
74
- .chip .close-btn:hover {
75
- background: var(--chip-hover-color);
76
- }
77
- .chip .close-btn:hover .close-btn-icon {
78
- color: var(--background);
79
- }
80
- .chip {
81
- /**
82
- * Tag background layers
83
- */
84
- }
85
- .chip .background {
86
- display: block;
87
- position: absolute;
88
- width: 100%;
89
- height: 100%;
90
- border-radius: inherit;
91
- background: var(--chip-container-color);
92
- pointer-events: none;
93
- }
94
- .chip .outline {
95
- display: block;
96
- position: absolute;
97
- width: 100%;
98
- height: 100%;
99
- border-radius: inherit;
100
- border: 1px solid var(--chip-outline-color);
101
- }
102
- .chip .elevation {
103
- --elevation-level: 0;
104
- transition-duration: 280ms;
105
- border-radius: inherit;
106
- }
107
- .chip.dismissible .tag-content {
108
- padding-inline-end: 0.25rem;
109
- }
110
- .chip.selected {
111
- color: var(--background);
112
- background: var(--chip-hover-color);
113
- }
114
- .chip.selected .close-btn-icon {
115
- color: var(--background);
116
- }`;
117
-
118
- var css_248z$1 = i`:host([color=red]) {
119
- --chip-container-color: var(--color-red-container);
120
- --chip-outline-color: var(--color-on-red-container);
121
- }
122
-
123
- :host([color=green]) {
124
- --chip-container-color: var(--color-green-container);
125
- --chip-label-text-color: var(--color-on-green-container);
126
- --chip-outline-color: var(--color-on-green-container);
127
- }
128
-
129
- :host([color=blue]) {
130
- --chip-container-color: var(--color-blue-container);
131
- --chip-label-text-color: var(--color-on-blue-container);
132
- --chip-outline-color: var(--color-on-blue-container);
133
- }
134
-
135
- :host([color=yellow]) {
136
- --chip-container-color: var(--color-yellow-container);
137
- --chip-label-text-color: var(--color-on-yellow-container);
138
- --chip-outline-color: var(--color-on-yellow-container);
139
- }
140
-
141
- :host([color=purple]) {
142
- --chip-container-color: var(--color-purple-container);
143
- --chip-label-text-color: var(--color-on-purple-container);
144
- --chip-outline-color: var(--color-on-purple-container);
145
- }`;
146
-
147
- var css_248z = i`.tag {
148
- font-family: var(--font-family-sans) !important;
149
- }
150
-
151
- .tag.size-xs,
152
- .tag.size-extra-small {
153
- --_button-height: 2rem;
154
- --_button-icon-size: 1.25rem;
155
- --_container-padding: 0.75rem;
156
- font-size: 0.875rem !important;
157
- font-weight: var(--font-weight-medium) !important;
158
- line-height: 1.25rem !important;
159
- letter-spacing: 0.1px !important;
160
- }
161
-
162
- .tag.size-sm,
163
- .tag.size-small {
164
- --_button-height: 2.5rem;
165
- --_button-icon-size: 1.25rem;
166
- --_container-padding: 1rem;
167
- font-size: 0.875rem !important;
168
- font-weight: var(--font-weight-medium) !important;
169
- line-height: 1.25rem !important;
170
- letter-spacing: 0.1px !important;
171
- }
172
-
173
- .button.size-md,
174
- .button.size-medium {
175
- --_button-height: 3.5rem;
176
- --_button-icon-size: 1.5rem;
177
- --_container-padding: 1.5rem;
178
- font-size: 1rem !important;
179
- font-weight: var(--font-weight-medium) !important;
180
- line-height: 1.5rem !important;
181
- letter-spacing: 0.15px !important;
182
- }
183
-
184
- .button.size-lg,
185
- .button.size-large {
186
- --_button-height: 6rem;
187
- --_button-icon-size: 2rem;
188
- --_container-padding: 3rem;
189
- font-size: 1.5rem !important;
190
- font-weight: var(--font-weight-regular) !important;
191
- line-height: 2rem !important;
192
- letter-spacing: 0 !important;
193
- }
194
-
195
- .button.size-xl {
196
- --_button-height: 8.5rem;
197
- --_button-icon-size: 2.5rem;
198
- --_container-padding: 4rem;
199
- font-size: 2rem !important;
200
- font-weight: var(--font-weight-regular) !important;
201
- line-height: 2.5rem !important;
202
- letter-spacing: 0 !important;
203
- }`;
204
-
205
- /**
206
- * @label Chip
207
- * @tag base-chip
208
- * @rawTag chip
209
- * @summary
210
- *
211
- * @example
212
- * ```html
213
- * <base-tag>Link</base-tag>
214
- * ```
215
- * @tags display
216
- */
217
- class Chip extends i$1 {
218
- constructor() {
219
- super(...arguments);
220
- /** If true, the tag will have a close icon. */
221
- this.dismissible = false;
222
- /** Tag color. */
223
- this.color = 'default';
224
- /** Tag value. */
225
- this.value = '';
226
- /** If true, the tag will be selected. */
227
- this.selected = false;
228
- }
229
- _dismissClickHandler(e) {
230
- e.stopPropagation();
231
- const detail = { value: this.value || this.textContent?.trim() };
232
- // Custom Event: tag--dismiss
233
- this.dispatchEvent(new CustomEvent('tag--dismiss', {
234
- detail,
235
- bubbles: true,
236
- composed: true,
237
- }));
238
- }
239
- _renderCloseButton() {
240
- if (!this.dismissible)
241
- return null;
242
- return b `
243
- <button
244
- class="close-btn"
245
- @click=${this._dismissClickHandler}
246
- aria-label="Dismiss"
247
- >
248
- <base-icon class="close-btn-icon" name="close"></base-icon>
249
- </button>
250
- `;
251
- }
252
- _renderImage() {
253
- if (this.imageSrc)
254
- return b `<img
255
- src=${this.imageSrc}
256
- class="tag-image"
257
- alt="Tag Logo"
258
- />`;
259
- return A;
260
- }
261
- render() {
262
- const classes = {
263
- chip: true,
264
- selected: this.selected,
265
- dismissible: this.dismissible,
266
- [`color-${this.color}`]: true,
267
- };
268
- return b `
269
- <div class="${e(classes)}">
270
- <base-elevation class="elevation"></base-elevation>
271
- <div class="background"></div>
272
- <div class="outline"></div>
273
-
274
- <div class="tag-content">
275
- <slot name="icon"></slot>
276
- <slot></slot>
277
- ${this._renderCloseButton()}
278
- </div>
279
- </div>
280
- `;
281
- }
282
- }
283
- // Define styles (Lit handles Scoping via Shadow DOM by default)
284
- // You would typically import your tag.scss.js here or use the css tag
285
- Chip.styles = [css_248z$2, css_248z$1, css_248z];
286
- __decorate([
287
- n({ type: Boolean })
288
- ], Chip.prototype, "dismissible", void 0);
289
- __decorate([
290
- n({ type: String, reflect: true })
291
- ], Chip.prototype, "color", void 0);
292
- __decorate([
293
- n({ type: String, reflect: true })
294
- ], Chip.prototype, "value", void 0);
295
- __decorate([
296
- n({ type: Boolean, reflect: true })
297
- ], Chip.prototype, "selected", void 0);
298
- __decorate([
299
- n({ type: String })
300
- ], Chip.prototype, "imageSrc", void 0);
301
-
302
- export { Chip };
303
- //# sourceMappingURL=chip.js.map
package/dist/chip.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"chip.js","sources":["../../src/chip/chip/chip.ts"],"sourcesContent":["import { html, LitElement, nothing } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport styles from './chip.scss';\nimport colorStyles from './chip-colors.scss';\nimport sizeStyles from './chip-sizes.scss';\n\n/**\n * @label Chip\n * @tag base-chip\n * @rawTag chip\n * @summary\n *\n * @example\n * ```html\n * <base-tag>Link</base-tag>\n * ```\n * @tags display\n */\nexport class Chip extends LitElement {\n // Define styles (Lit handles Scoping via Shadow DOM by default)\n // You would typically import your tag.scss.js here or use the css tag\n static styles = [styles, colorStyles, sizeStyles];\n\n /** If true, the tag will have a close icon. */\n @property({ type: Boolean }) dismissible = false;\n\n /** Tag color. */\n @property({ type: String, reflect: true }) color?:\n | 'default'\n | 'blue'\n | 'green'\n | 'red'\n | 'yellow' = 'default';\n\n /** Tag value. */\n @property({ type: String, reflect: true }) value = '';\n\n /** If true, the tag will be selected. */\n @property({ type: Boolean, reflect: true }) selected = false;\n\n /** Image source. */\n @property({ type: String }) imageSrc?: string;\n\n private _dismissClickHandler(e: MouseEvent) {\n e.stopPropagation();\n const detail = { value: this.value || this.textContent?.trim() };\n\n // Custom Event: tag--dismiss\n this.dispatchEvent(\n new CustomEvent('tag--dismiss', {\n detail,\n bubbles: true,\n composed: true,\n }),\n );\n }\n\n private _renderCloseButton() {\n if (!this.dismissible) return null;\n\n return html`\n <button\n class=\"close-btn\"\n @click=${this._dismissClickHandler}\n aria-label=\"Dismiss\"\n >\n <base-icon class=\"close-btn-icon\" name=\"close\"></base-icon>\n </button>\n `;\n }\n\n private _renderImage() {\n if (this.imageSrc)\n return html`<img\n src=${this.imageSrc}\n class=\"tag-image\"\n alt=\"Tag Logo\"\n />`;\n return nothing;\n }\n\n render() {\n const classes = {\n chip: true,\n selected: this.selected,\n dismissible: this.dismissible,\n [`color-${this.color}`]: true,\n };\n\n return html`\n <div class=\"${classMap(classes)}\">\n <base-elevation class=\"elevation\"></base-elevation>\n <div class=\"background\"></div>\n <div class=\"outline\"></div>\n\n <div class=\"tag-content\">\n <slot name=\"icon\"></slot>\n <slot></slot>\n ${this._renderCloseButton()}\n </div>\n </div>\n `;\n }\n}\n"],"names":["LitElement","html","nothing","classMap","styles","colorStyles","sizeStyles","property"],"mappings":"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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"class-map-BmCohX9p.js","sources":["../node_modules/lit-html/directives/class-map.js"],"sourcesContent":["import{noChange as t}from\"../lit-html.js\";import{directive as s,Directive as i,PartType as r}from\"../directive.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const e=s(class extends i{constructor(t){if(super(t),t.type!==r.ATTRIBUTE||\"class\"!==t.name||t.strings?.length>2)throw Error(\"`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.\")}render(t){return\" \"+Object.keys(t).filter(s=>t[s]).join(\" \")+\" \"}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(\" \").split(/\\s/).filter(t=>\"\"!==t)));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)))}return t}});export{e as classMap};\n//# sourceMappingURL=class-map.js.map\n"],"names":["s","t","r"],"mappings":";;;AACA;AACA;AACA;AACA;AACA,GAAQ,MAAC,CAAC,CAACA,GAAC,CAAC,cAAc,CAAC,CAAC,WAAW,CAACC,GAAC,CAAC,CAAC,GAAG,KAAK,CAACA,GAAC,CAAC,CAACA,GAAC,CAAC,IAAI,GAAGC,CAAC,CAAC,SAAS,EAAE,OAAO,GAAGD,GAAC,CAAC,IAAI,EAAEA,GAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,oGAAoG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAM,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,MAAM,CAAC,IAAI,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAC,CAAC,OAAOA,CAAC,CAAC,CAAC;;;;","x_google_ignoreList":[0]}
package/dist/clock.js DELETED
@@ -1,83 +0,0 @@
1
- import { _ as __decorate, n } from './property-DNVWDdPC.js';
2
- import { i, a as i$1, b } from './lit-element-CA46RFZ_.js';
3
-
4
- var css_248z = i`* {
5
- box-sizing: border-box;
6
- }
7
-
8
- .screen-reader-only {
9
- display: none !important;
10
- }
11
-
12
- :host {
13
- display: inline-block;
14
- }
15
-
16
- .current-time {
17
- font-family: var(--typography-body-medium-font-family) !important;
18
- font-size: var(--typography-body-medium-font-size) !important;
19
- font-weight: var(--typography-body-medium-font-weight) !important;
20
- line-height: var(--typography-body-medium-line-height) !important;
21
- letter-spacing: var(--typography-body-medium-letter-spacing) !important;
22
- }`;
23
-
24
- class ClockController {
25
- constructor(host, timeout = 1000) {
26
- this.value = new Date();
27
- this.host = host;
28
- this.host.addController(this);
29
- this.timeout = timeout;
30
- }
31
- hostConnected() {
32
- // Start a timer when the host is connected
33
- this._timerID = setInterval(() => {
34
- this.value = new Date();
35
- // Update the host with new value
36
- this.host.requestUpdate();
37
- }, this.timeout);
38
- }
39
- hostDisconnected() {
40
- // Clear the timer when the host is disconnected
41
- clearInterval(this._timerID);
42
- this._timerID = undefined;
43
- }
44
- }
45
-
46
- /**
47
- * @label Clock
48
- * @tag base-clock
49
- * @rawTag clock
50
- *
51
- * @summary Displays the current time in a given timezone.
52
- * @overview
53
- * - Clocks are used to display the current time in a specified timezone.
54
- * - They can be displayed in various formats, including 12-hour and 24-hour time.
55
- *
56
- * @example
57
- * ```html
58
- * <base-clock></base-clock>
59
- * ```
60
- * @tags display
61
- */
62
- class Clock extends i$1 {
63
- constructor() {
64
- super(...arguments);
65
- this.clockController = new ClockController(this, 100);
66
- }
67
- __formatDate(date) {
68
- return date.toLocaleTimeString('en-US', {
69
- timeZone: this.timezone,
70
- });
71
- }
72
- render() {
73
- const currentDate = this.__formatDate(this.clockController.value);
74
- return b `<div class="current-time">${currentDate}</div>`;
75
- }
76
- }
77
- Clock.styles = [css_248z];
78
- __decorate([
79
- n()
80
- ], Clock.prototype, "timezone", void 0);
81
-
82
- export { Clock };
83
- //# sourceMappingURL=clock.js.map
package/dist/clock.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"clock.js","sources":["../../src/clock/ClockController.ts","../../src/clock/clock.ts"],"sourcesContent":["import { ReactiveController, ReactiveControllerHost } from 'lit';\n\nexport class ClockController implements ReactiveController {\n host: ReactiveControllerHost;\n\n value = new Date();\n\n timeout: number;\n\n private _timerID?: any;\n\n constructor(host: ReactiveControllerHost, timeout = 1000) {\n this.host = host;\n this.host.addController(this);\n this.timeout = timeout;\n }\n\n hostConnected() {\n // Start a timer when the host is connected\n this._timerID = setInterval(() => {\n this.value = new Date();\n // Update the host with new value\n this.host.requestUpdate();\n }, this.timeout);\n }\n\n hostDisconnected() {\n // Clear the timer when the host is disconnected\n clearInterval(this._timerID);\n this._timerID = undefined;\n }\n}\n","import { html, LitElement } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport styles from './clock.scss';\nimport { ClockController } from './ClockController.js';\n\n/**\n * @label Clock\n * @tag base-clock\n * @rawTag clock\n *\n * @summary Displays the current time in a given timezone.\n * @overview\n * - Clocks are used to display the current time in a specified timezone.\n * - They can be displayed in various formats, including 12-hour and 24-hour time.\n *\n * @example\n * ```html\n * <base-clock></base-clock>\n * ```\n * @tags display\n */\nexport class Clock extends LitElement {\n static styles = [styles];\n\n clockController = new ClockController(this, 100);\n\n @property() timezone?: string;\n\n __formatDate(date: Date) {\n return date.toLocaleTimeString('en-US', {\n timeZone: this.timezone,\n });\n }\n\n render() {\n const currentDate = this.__formatDate(this.clockController.value);\n return html`<div class=\"current-time\">${currentDate}</div>`;\n }\n}\n"],"names":["LitElement","html","styles","property"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;MAEa,eAAe,CAAA;AAS1B,IAAA,WAAA,CAAY,IAA4B,EAAE,OAAO,GAAG,IAAI,EAAA;AANxD,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,IAAI,EAAE;AAOhB,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI;AAChB,QAAA,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC;AAC7B,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO;IACxB;IAEA,aAAa,GAAA;;AAEX,QAAA,IAAI,CAAC,QAAQ,GAAG,WAAW,CAAC,MAAK;AAC/B,YAAA,IAAI,CAAC,KAAK,GAAG,IAAI,IAAI,EAAE;;AAEvB,YAAA,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;AAC3B,QAAA,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC;IAClB;IAEA,gBAAgB,GAAA;;AAEd,QAAA,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC;AAC5B,QAAA,IAAI,CAAC,QAAQ,GAAG,SAAS;IAC3B;AACD;;AC1BD;;;;;;;;;;;;;;;AAeG;AACG,MAAO,KAAM,SAAQA,GAAU,CAAA;AAArC,IAAA,WAAA,GAAA;;QAGE,IAAA,CAAA,eAAe,GAAG,IAAI,eAAe,CAAC,IAAI,EAAE,GAAG,CAAC;IAclD;AAVE,IAAA,YAAY,CAAC,IAAU,EAAA;AACrB,QAAA,OAAO,IAAI,CAAC,kBAAkB,CAAC,OAAO,EAAE;YACtC,QAAQ,EAAE,IAAI,CAAC,QAAQ;AACxB,SAAA,CAAC;IACJ;IAEA,MAAM,GAAA;AACJ,QAAA,MAAM,WAAW,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC;AACjE,QAAA,OAAOC,CAAI,CAAA,CAAA,0BAAA,EAA6B,WAAW,QAAQ;IAC7D;;AAfO,KAAA,CAAA,MAAM,GAAG,CAACC,QAAM,CAAC;AAIZ,UAAA,CAAA;AAAX,IAAAC,CAAQ;AAAqB,CAAA,EAAA,KAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;;;;"}
package/dist/container.js DELETED
@@ -1,135 +0,0 @@
1
- import { _ as __decorate, n } from './property-DNVWDdPC.js';
2
- import { i, a as i$1, b } from './lit-element-CA46RFZ_.js';
3
- import { e } from './class-map-BmCohX9p.js';
4
- import './directive-Cuw6h7YA.js';
5
-
6
- var css_248z = i`* {
7
- box-sizing: border-box;
8
- }
9
-
10
- .screen-reader-only {
11
- display: none !important;
12
- }
13
-
14
- :host {
15
- display: block;
16
- }
17
-
18
- .container-wrapper {
19
- container: containerwrapper/inline-size;
20
- }
21
- .container-wrapper.size-max .container {
22
- max-width: var(--container-max);
23
- }
24
- .container-wrapper.size-xl .container {
25
- max-width: var(--container-xl);
26
- }
27
- .container-wrapper.size-sm .container {
28
- max-width: var(--container-sm);
29
- }
30
- .container-wrapper.size-md .container {
31
- max-width: var(--container-md);
32
- }
33
- .container-wrapper.size-lg .container {
34
- max-width: var(--container-lg);
35
- }
36
-
37
- .container {
38
- margin: auto;
39
- width: 100%;
40
- }
41
- .container .content {
42
- padding: v(--spacing-200);
43
- }
44
-
45
- :host(.debug) {
46
- border-width: 0 1px;
47
- border-color: var(--color-red);
48
- border-style: solid;
49
- background: var(--color-red-50);
50
- }
51
- :host(.debug) .container {
52
- border-width: 0 1px;
53
- border-color: var(--color-blue);
54
- border-style: solid;
55
- background: var(--color-blue-100);
56
- }
57
- :host(.debug) .container .content {
58
- border-width: 0 1px;
59
- border-color: var(--color-green);
60
- border-style: solid;
61
- background: var(--color-green-100);
62
- }
63
-
64
- .content {
65
- margin-inline: 0;
66
- }
67
-
68
- @container containerwrapper (min-width: 672px) {
69
- .content {
70
- margin-inline: var(--spacing-200);
71
- }
72
- }
73
- @container containerwrapper (min-width: 1056px) {
74
- .content {
75
- margin-inline: var(--spacing-200);
76
- }
77
- }
78
- @container containerwrapper (min-width: 1312px) {
79
- .content {
80
- margin-inline: var(--spacing-200);
81
- }
82
- }
83
- @container containerwrapper (min-width: 1584px) {
84
- .content {
85
- margin-inline: var(--spacing-300);
86
- }
87
- }`;
88
-
89
- /**
90
- * @label Container
91
- * @tag base-container
92
- * @rawTag container
93
- * @summary The Avatar component is used to represent user, and displays the profile picture, initials or fallback icon.
94
- *
95
- * @cssprop --avatar-border-radius - Controls the border radius of the avatar.
96
- * @cssprop --avatar-background-color - Controls the color of the avatar.
97
- * @cssprop --avatar-size - Controls the size of the avatar.
98
- * @cssprop --avatar-text-color - Controls the color of the text inside the avatar.
99
- *
100
- *
101
- * @example
102
- * ```html
103
- * <base-container>Container</base-avatar>
104
- * ```
105
- *
106
- * @tags display
107
- */
108
- class Container extends i$1 {
109
- constructor() {
110
- super(...arguments);
111
- this.size = 'full';
112
- }
113
- render() {
114
- const wrapperClasses = {
115
- 'container-wrapper': true,
116
- [`size-${this.size}`]: true,
117
- };
118
- return b `
119
- <div class=${e(wrapperClasses)}>
120
- <div class="container">
121
- <div class="content">
122
- <slot></slot>
123
- </div>
124
- </div>
125
- </div>
126
- `;
127
- }
128
- }
129
- Container.styles = [css_248z];
130
- __decorate([
131
- n({ type: String, reflect: true })
132
- ], Container.prototype, "size", void 0);
133
-
134
- export { Container };
135
- //# sourceMappingURL=container.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"container.js","sources":["../../src/container/container.ts"],"sourcesContent":["import { LitElement, html, css } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport styles from './container.scss';\n\ntype ContainerSize = 'max' | 'xl' | 'lg' | 'md' | 'sm' | 'full';\n\n/**\n * @label Container\n * @tag base-container\n * @rawTag container\n * @summary The Avatar component is used to represent user, and displays the profile picture, initials or fallback icon.\n *\n * @cssprop --avatar-border-radius - Controls the border radius of the avatar.\n * @cssprop --avatar-background-color - Controls the color of the avatar.\n * @cssprop --avatar-size - Controls the size of the avatar.\n * @cssprop --avatar-text-color - Controls the color of the text inside the avatar.\n *\n *\n * @example\n * ```html\n * <base-container>Container</base-avatar>\n * ```\n *\n * @tags display\n */\nexport class Container extends LitElement {\n @property({ type: String, reflect: true })\n size: ContainerSize = 'full';\n\n static styles = [styles];\n\n render() {\n const wrapperClasses = {\n 'container-wrapper': true,\n [`size-${this.size}`]: true,\n };\n\n return html`\n <div class=${classMap(wrapperClasses)}>\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n </div>\n `;\n }\n}"],"names":["LitElement","html","classMap","styles","property"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA;;;;;;;;;;;;;;;;;;AAkBG;AACG,MAAO,SAAU,SAAQA,GAAU,CAAA;AAAzC,IAAA,WAAA,GAAA;;QAEE,IAAA,CAAA,IAAI,GAAkB,MAAM;IAoB9B;IAhBE,MAAM,GAAA;AACJ,QAAA,MAAM,cAAc,GAAG;AACrB,YAAA,mBAAmB,EAAE,IAAI;AACzB,YAAA,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAA,CAAE,GAAG,IAAI;SAC5B;AAED,QAAA,OAAOC,CAAI,CAAA;mBACIC,CAAQ,CAAC,cAAc,CAAC,CAAA;;;;;;;KAOtC;IACH;;AAjBO,SAAA,CAAA,MAAM,GAAG,CAACC,QAAM,CAAC;AAFxB,UAAA,CAAA;IADCC,CAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE;AACZ,CAAA,EAAA,SAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;;;;"}
@@ -1,9 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2017 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */
6
- const t={ATTRIBUTE:1,CHILD:2,ELEMENT:6},e=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
7
-
8
- export { e, i, t };
9
- //# sourceMappingURL=directive-Cuw6h7YA.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"directive-Cuw6h7YA.js","sources":["../node_modules/lit-html/directive.js"],"sourcesContent":["/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}export{i as Directive,t as PartType,e as directive};\n//# sourceMappingURL=directive.js.map\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACK,MAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAwC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;;;;","x_google_ignoreList":[0]}
package/dist/divider.js DELETED
@@ -1,126 +0,0 @@
1
- import { _ as __decorate, n } from './property-DNVWDdPC.js';
2
- import { i, a as i$1, b } from './lit-element-CA46RFZ_.js';
3
- import { r } from './state-CV1fRmOT.js';
4
- import { e } from './class-map-BmCohX9p.js';
5
- import { o as observerSlotChangesWithCallback } from './utils-DGMeCC48.js';
6
- import './directive-Cuw6h7YA.js';
7
-
8
- var css_248z = i`* {
9
- box-sizing: border-box;
10
- }
11
-
12
- .screen-reader-only {
13
- display: none !important;
14
- }
15
-
16
- :host {
17
- display: block;
18
- --divider-color: var(--color-outline-variant);
19
- --divider-spacing: var(--spacing-200);
20
- --divider-line-thinkness: 2px;
21
- }
22
-
23
- .divider {
24
- display: flex;
25
- margin: 0;
26
- font-family: var(--typography-body-medium-font-family) !important;
27
- font-size: var(--typography-body-medium-font-size) !important;
28
- font-weight: var(--typography-body-medium-font-weight) !important;
29
- line-height: var(--typography-body-medium-line-height) !important;
30
- letter-spacing: var(--typography-body-medium-letter-spacing) !important;
31
- color: var(--divider-color);
32
- --_line-border: var(--divider-line-thinkness) solid var(--divider-color);
33
- }
34
- .divider:not(.vertical) {
35
- width: 100%;
36
- padding: var(--divider-spacing) 0;
37
- align-items: center;
38
- justify-content: center;
39
- }
40
- .divider:not(.vertical) .line {
41
- width: 100%;
42
- border-top: var(--_line-border);
43
- }
44
- .divider:not(.vertical).slot-has-content .slot-container {
45
- padding: 0 var(--spacing-200);
46
- }
47
- .divider.vertical {
48
- height: 100%;
49
- padding: 0 var(--divider-spacing);
50
- flex-direction: column;
51
- align-items: center;
52
- justify-content: center;
53
- }
54
- .divider.vertical .line {
55
- height: 100%;
56
- border-right: var(--_line-border);
57
- }
58
- .divider.vertical.slot-has-content .slot-container {
59
- padding: var(--spacing-200) 0;
60
- }
61
-
62
- :host(:not([vertical])) {
63
- width: auto;
64
- }
65
-
66
- :host([vertical]) {
67
- height: auto;
68
- }`;
69
-
70
- /**
71
- * @label Divider
72
- * @tag base-divider
73
- * @rawTag divider
74
- *
75
- * @summary The divider component is used to visually separate content.
76
- * @overview
77
- * - Dividers are used to separate content into clear groups, making it easier for users to scan and understand the information presented.
78
- * - They can be oriented either vertically or horizontally, depending on the layout requirements.
79
- *
80
- * @cssprop --divider-color - Controls the color of the divider.
81
- * @cssprop --divider-padding - Controls the padding of the divider.
82
- *
83
- * @example
84
- * ```html
85
- * <base-divider style="width: 12rem;">or</base-divider>
86
- * ```
87
- * @tags display
88
- */
89
- class Divider extends i$1 {
90
- constructor() {
91
- super(...arguments);
92
- this.vertical = false;
93
- this.slotHasContent = false;
94
- }
95
- firstUpdated() {
96
- observerSlotChangesWithCallback(this.renderRoot.querySelector('slot'), hasContent => {
97
- this.slotHasContent = hasContent;
98
- this.requestUpdate();
99
- });
100
- }
101
- render() {
102
- return b `<div
103
- class=${e({
104
- divider: true,
105
- vertical: this.vertical,
106
- 'slot-has-content': this.slotHasContent,
107
- })}
108
- >
109
- <div class="line"></div>
110
- <div class="slot-container">
111
- <slot></slot>
112
- </div>
113
- <div class="line"></div>
114
- </div>`;
115
- }
116
- }
117
- Divider.styles = [css_248z];
118
- __decorate([
119
- n({ type: Boolean, reflect: true })
120
- ], Divider.prototype, "vertical", void 0);
121
- __decorate([
122
- r()
123
- ], Divider.prototype, "slotHasContent", void 0);
124
-
125
- export { Divider };
126
- //# sourceMappingURL=divider.js.map