@alleninstitute/cortex-ui 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/README.md +101 -79
  2. package/dist/cjs/cortex-ui.cjs.js +3 -3
  3. package/dist/cjs/cui-divider.cjs.entry.js +49 -0
  4. package/dist/cjs/cui-icon.cjs.entry.js +100 -0
  5. package/dist/cjs/cui-progress.cjs.entry.js +46 -0
  6. package/dist/cjs/cui-tag.cjs.entry.js +4 -4
  7. package/dist/cjs/index-RBrlguTk.js +1565 -0
  8. package/dist/cjs/loader.cjs.js +2 -2
  9. package/dist/collection/collection-manifest.json +4 -1
  10. package/dist/collection/components/cui-divider/cui-divider.css +100 -0
  11. package/dist/collection/components/cui-divider/cui-divider.js +150 -0
  12. package/dist/collection/components/cui-icon/cui-icon.css +134 -0
  13. package/dist/collection/components/cui-icon/cui-icon.js +239 -0
  14. package/dist/collection/components/cui-progress/cui-progress.css +102 -0
  15. package/dist/collection/components/cui-progress/cui-progress.js +187 -0
  16. package/dist/collection/components/cui-tag/cui-tag.css +19 -19
  17. package/dist/collection/components/cui-tag/cui-tag.js +5 -5
  18. package/dist/components/cui-divider.d.ts +11 -0
  19. package/dist/components/cui-divider.js +1 -0
  20. package/dist/components/cui-icon.d.ts +11 -0
  21. package/dist/components/cui-icon.js +1 -0
  22. package/dist/components/cui-progress.d.ts +11 -0
  23. package/dist/components/cui-progress.js +1 -0
  24. package/dist/components/cui-tag.js +1 -1
  25. package/dist/components/index.js +1 -1
  26. package/dist/cortex-ui/cortex-ui.css +1 -1
  27. package/dist/cortex-ui/cortex-ui.esm.js +1 -1
  28. package/dist/cortex-ui/p-0e66a721.entry.js +1 -0
  29. package/dist/cortex-ui/p-1af73c5a.entry.js +1 -0
  30. package/dist/cortex-ui/p-2d2004f0.entry.js +1 -0
  31. package/dist/cortex-ui/p-8925abbe.entry.js +1 -0
  32. package/dist/cortex-ui/p-BZmInLSX.js +3 -0
  33. package/dist/esm/cortex-ui.js +4 -4
  34. package/dist/esm/cui-divider.entry.js +47 -0
  35. package/dist/esm/cui-icon.entry.js +98 -0
  36. package/dist/esm/cui-progress.entry.js +44 -0
  37. package/dist/esm/cui-tag.entry.js +4 -4
  38. package/dist/esm/index-BZmInLSX.js +1557 -0
  39. package/dist/esm/loader.js +3 -3
  40. package/dist/fonts/AllenInstituteHeadline-Bold.woff2 +0 -0
  41. package/dist/fonts/AllenInstituteHeadline-BoldItalic.woff2 +0 -0
  42. package/dist/fonts/AllenInstituteHeadline-Italic.woff2 +0 -0
  43. package/dist/fonts/AllenInstituteHeadline-Light.woff2 +0 -0
  44. package/dist/fonts/AllenInstituteHeadline-LightItalic.woff2 +0 -0
  45. package/dist/fonts/AllenInstituteHeadline-Medium.woff2 +0 -0
  46. package/dist/fonts/AllenInstituteHeadline-MediumItalic.woff2 +0 -0
  47. package/dist/fonts/AllenInstituteHeadline-Regular.woff2 +0 -0
  48. package/dist/fonts/AllenInstituteHeadline-Semibold.woff2 +0 -0
  49. package/dist/fonts/AllenInstituteHeadline-SemiboldItalic.woff2 +0 -0
  50. package/dist/fonts/AllenInstituteText-Bold.woff2 +0 -0
  51. package/dist/fonts/AllenInstituteText-BoldItalic.woff2 +0 -0
  52. package/dist/fonts/AllenInstituteText-Italic.woff2 +0 -0
  53. package/dist/fonts/AllenInstituteText-Light.woff2 +0 -0
  54. package/dist/fonts/AllenInstituteText-LightItalic.woff2 +0 -0
  55. package/dist/fonts/AllenInstituteText-Medium.woff2 +0 -0
  56. package/dist/fonts/AllenInstituteText-MediumItalic.woff2 +0 -0
  57. package/dist/fonts/AllenInstituteText-Regular.woff2 +0 -0
  58. package/dist/fonts/AllenInstituteText-Semibold.woff2 +0 -0
  59. package/dist/fonts/AllenInstituteText-SemiboldItalic.woff2 +0 -0
  60. package/dist/fonts.css +186 -0
  61. package/dist/types/components/cui-divider/cui-divider.d.ts +38 -0
  62. package/dist/types/components/cui-icon/cui-icon.d.ts +76 -0
  63. package/dist/types/components/cui-progress/cui-progress.d.ts +40 -0
  64. package/dist/types/components/cui-tag/cui-tag.d.ts +1 -1
  65. package/dist/types/components.d.ts +343 -5
  66. package/dist/types/stencil-public-runtime.d.ts +11 -0
  67. package/package.json +31 -22
  68. package/dist/cjs/index-Rxdz0vyq.js +0 -1337
  69. package/dist/collection/stories/assets/accessibility.svg +0 -1
  70. package/dist/collection/stories/assets/discord.svg +0 -1
  71. package/dist/collection/stories/assets/github.svg +0 -1
  72. package/dist/collection/stories/assets/tutorials.svg +0 -1
  73. package/dist/collection/stories/assets/youtube.svg +0 -1
  74. package/dist/cortex-ui/p-054ebfa8.entry.js +0 -1
  75. package/dist/cortex-ui/p-C70YK15K.js +0 -2
  76. package/dist/esm/index-C70YK15K.js +0 -1330
@@ -1,8 +1,8 @@
1
- import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-C70YK15K.js';
2
- export { s as setNonce } from './index-C70YK15K.js';
1
+ import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-BZmInLSX.js';
2
+ export { s as setNonce } from './index-BZmInLSX.js';
3
3
 
4
4
  /*
5
- Stencil Client Patch Browser v4.43.5 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Browser v4.44.0 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
 
8
8
  var patchBrowser = () => {
@@ -16,5 +16,5 @@ var patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(async (options) => {
18
18
  await globalScripts();
19
- return bootstrapLazy([["cui-tag",[[1,"cui-tag",{"label":[1],"variant":[1],"size":[1]}]]]], options);
19
+ return bootstrapLazy([["cui-divider",[[1,"cui-divider",{"orientation":[513],"spacing":[513],"variant":[1],"importance":[1]}]]],["cui-icon",[[257,"cui-icon",{"icon":[1],"variant":[1],"importance":[1],"size":[1],"label":[1]},null,{"icon":[{"onIconChange":0}],"label":[{"onLabelChange":0}]}]]],["cui-progress",[[1,"cui-progress",{"label":[1],"value":[2],"max":[2],"indeterminate":[4],"size":[1],"showValue":[4,"show-value"]}]]],["cui-tag",[[1,"cui-tag",{"label":[1],"variant":[1],"size":[1]}]]]], options);
20
20
  });
@@ -0,0 +1,47 @@
1
+ import { r as registerInstance, h } from './index-BZmInLSX.js';
2
+
3
+ const cuiDividerCss = () => `:host{display:block;--cui-divider-gap:var(--cui-spacing-m);margin-block:var(--cui-divider-gap)}:host([hidden]){display:none}:host([spacing=none]){--cui-divider-gap:0}:host([spacing=small]){--cui-divider-gap:var(--cui-spacing-s)}:host([spacing=large]){--cui-divider-gap:var(--cui-spacing-l)}:host([orientation=vertical]){display:inline-flex;align-self:stretch;min-height:var(--cui-spacing-l);margin-block:0;margin-inline:var(--cui-divider-gap)}.cui-divider{box-sizing:border-box;margin:0;border:none}.cui-divider--horizontal{width:100%;height:var(--cui-border-width-s)}.cui-divider--vertical{width:var(--cui-border-width-s);height:auto;align-self:stretch}.cui-divider--base{background-color:var(--cui-base-divider-primary)}.cui-divider--base.cui-divider--secondary{background-color:var(--cui-base-divider-secondary)}.cui-divider--accent{background-color:var(--cui-accent-divider-primary-default)}.cui-divider--accent.cui-divider--secondary{background-color:var(--cui-accent-divider-secondary-default)}.cui-divider--highlight{background-color:var(--cui-highlight-divider-primary-default)}.cui-divider--highlight.cui-divider--secondary{background-color:var(--cui-highlight-divider-secondary-default)}.cui-divider--info{background-color:var(--cui-info-divider-primary-default)}.cui-divider--info.cui-divider--secondary{background-color:var(--cui-info-divider-secondary-default)}.cui-divider--negative{background-color:var(--cui-negative-divider-primary-default)}.cui-divider--negative.cui-divider--secondary{background-color:var(--cui-negative-divider-secondary-default)}.cui-divider--neutral{background-color:var(--cui-neutral-divider-primary-default)}.cui-divider--neutral.cui-divider--secondary{background-color:var(--cui-neutral-divider-secondary-default)}.cui-divider--positive{background-color:var(--cui-positive-divider-primary-default)}.cui-divider--positive.cui-divider--secondary{background-color:var(--cui-positive-divider-secondary-default)}.cui-divider--warning{background-color:var(--cui-warning-divider-primary-default)}.cui-divider--warning.cui-divider--secondary{background-color:var(--cui-warning-divider-secondary-default)}`;
4
+
5
+ const CuiDivider = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ // `orientation` and `spacing` are reflected because they size and space the host's own
9
+ // box, and only an attribute can reach `:host()` from the stylesheet. `variant` and
10
+ // `importance` are not: they only colour the rule, which the modifier classes handle.
11
+ /**
12
+ * Which way the rule runs. A vertical divider stretches to the height of the flex row
13
+ * it sits in.
14
+ */
15
+ this.orientation = 'horizontal';
16
+ /** Space reserved on either side of the rule, along the axis it separates. */
17
+ this.spacing = 'medium';
18
+ /**
19
+ * Which intent's `divider` colour the rule is drawn in. `base` is the intent-free rule for
20
+ * ordinary page chrome; the seven intents tint a divider that sits inside a component
21
+ * already carrying that intent, such as a rule between rows of a negative-intent alert.
22
+ */
23
+ this.variant = 'base';
24
+ /**
25
+ * Which of the two `divider` importances the rule is drawn from. Match it to the importance of
26
+ * the surface the divider sits on — `secondary` on a quiet tint, `primary` on a saturated fill —
27
+ * rather than treating it as a loudness control: on a secondary surface the primary rule is the
28
+ * *less* perceivable of the two. For `base`, whose surface is the page itself, `primary` is
29
+ * simply the stronger of the two rules.
30
+ */
31
+ this.importance = 'primary';
32
+ }
33
+ render() {
34
+ return (
35
+ // A native <hr> carries the separator role to assistive technology for free, and
36
+ // is the one element that means "boundary" rather than "a box that looks like one".
37
+ h("hr", { key: 'd33f3260a5f708f379428a7d338e6329248f23ff', part: "base", class: {
38
+ 'cui-divider': true,
39
+ [`cui-divider--${this.orientation}`]: true,
40
+ [`cui-divider--${this.variant}`]: true,
41
+ [`cui-divider--${this.importance}`]: true,
42
+ }, "aria-orientation": this.orientation === 'vertical' ? 'vertical' : undefined }));
43
+ }
44
+ };
45
+ CuiDivider.style = cuiDividerCss();
46
+
47
+ export { CuiDivider as cui_divider };
@@ -0,0 +1,98 @@
1
+ import { r as registerInstance, h, a as getElement } from './index-BZmInLSX.js';
2
+
3
+ const cuiIconCss = () => `@charset "UTF-8";:host{display:inline-flex}:host([hidden]){display:none}.cui-icon{display:inline-flex;align-items:center;justify-content:center;line-height:1}::slotted(:not([data-cui-icon-glyph])){display:none}.cui-icon--xxs{font-size:var(--cui-icon-size, var(--cui-font-size-xxs))}.cui-icon--xs{font-size:var(--cui-icon-size, var(--cui-font-size-xs))}.cui-icon--s{font-size:var(--cui-icon-size, var(--cui-font-size-s))}.cui-icon--m{font-size:var(--cui-icon-size, var(--cui-font-size-m))}.cui-icon--l{font-size:var(--cui-icon-size, var(--cui-font-size-l))}.cui-icon--xl{font-size:var(--cui-icon-size, var(--cui-font-size-xl))}.cui-icon--xxl{font-size:var(--cui-icon-size, var(--cui-font-size-xxl))}.cui-icon--display-s{font-size:var(--cui-icon-size, var(--cui-font-size-display-s))}.cui-icon--display-m{font-size:var(--cui-icon-size, var(--cui-font-size-display-m))}.cui-icon--display-l{font-size:var(--cui-icon-size, var(--cui-font-size-display-l))}.cui-icon--base.cui-icon--primary{color:var(--cui-icon-color, var(--cui-base-text-primary))}.cui-icon--base.cui-icon--secondary{color:var(--cui-icon-color, var(--cui-base-text-secondary))}.cui-icon--accent.cui-icon--primary{color:var(--cui-icon-color, var(--cui-accent-text-primary-default))}.cui-icon--accent.cui-icon--secondary{color:var(--cui-icon-color, var(--cui-accent-text-secondary-default))}.cui-icon--highlight.cui-icon--primary{color:var(--cui-icon-color, var(--cui-highlight-text-primary-default))}.cui-icon--highlight.cui-icon--secondary{color:var(--cui-icon-color, var(--cui-highlight-text-secondary-default))}.cui-icon--info.cui-icon--primary{color:var(--cui-icon-color, var(--cui-info-text-primary-default))}.cui-icon--info.cui-icon--secondary{color:var(--cui-icon-color, var(--cui-info-text-secondary-default))}.cui-icon--negative.cui-icon--primary{color:var(--cui-icon-color, var(--cui-negative-text-primary-default))}.cui-icon--negative.cui-icon--secondary{color:var(--cui-icon-color, var(--cui-negative-text-secondary-default))}.cui-icon--neutral.cui-icon--primary{color:var(--cui-icon-color, var(--cui-neutral-text-primary-default))}.cui-icon--neutral.cui-icon--secondary{color:var(--cui-icon-color, var(--cui-neutral-text-secondary-default))}.cui-icon--positive.cui-icon--primary{color:var(--cui-icon-color, var(--cui-positive-text-primary-default))}.cui-icon--positive.cui-icon--secondary{color:var(--cui-icon-color, var(--cui-positive-text-secondary-default))}.cui-icon--warning.cui-icon--primary{color:var(--cui-icon-color, var(--cui-warning-text-primary-default))}.cui-icon--warning.cui-icon--secondary{color:var(--cui-icon-color, var(--cui-warning-text-secondary-default))}`;
4
+
5
+ const CuiIcon = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ /**
9
+ * Semantic colour set. `base` is the intent-free choice for ordinary content and is correct on
10
+ * a plain page background; the intents are for an icon that sits on that intent's surface.
11
+ * This is styling, not semantics — never let colour be the only thing conveying meaning.
12
+ */
13
+ this.variant = 'base';
14
+ /**
15
+ * Which rung of the `text` token family to use. It tracks the surface the icon sits on:
16
+ * `primary` belongs on that variant's primary surface, `secondary` on its secondary surface or
17
+ * on a plain background. Pairing an intent's `primary` text with a plain page background is
18
+ * outside the token system's design and will not be legible.
19
+ */
20
+ this.importance = 'secondary';
21
+ /** Size of the glyph, from the font-size token scale. */
22
+ this.size = 'm';
23
+ }
24
+ connectedCallback() {
25
+ // Both the glyph and the host's ARIA are applied here rather than from render(): the
26
+ // glyph has to live in the light DOM for the consumer's document-level Font Awesome CSS
27
+ // to match it (selectors do not cross a shadow boundary, though @font-face and custom
28
+ // properties do), and setting the host's ARIA imperatively keeps it out of reach of the
29
+ // vdom, which on first render would otherwise overwrite a <Host> attribute with the
30
+ // same-named host *property* whenever a consumer also wrote that attribute in markup.
31
+ this.syncGlyph();
32
+ this.syncAria();
33
+ }
34
+ onIconChange() {
35
+ this.syncGlyph();
36
+ }
37
+ onLabelChange() {
38
+ this.syncAria();
39
+ }
40
+ /**
41
+ * Creates or updates the light-DOM glyph. Queries rather than caching a node reference, so it
42
+ * is idempotent: connectedCallback fires again every time the host is moved in the DOM, and a
43
+ * cached reference can also go stale (see below).
44
+ */
45
+ syncGlyph() {
46
+ var _a;
47
+ const existing = this.el.querySelector(':scope > [data-cui-icon-glyph]');
48
+ // Font Awesome's SVG-and-JS build rewrites our <i> into an <svg> that it owns, and
49
+ // rebuilds the class list while doing so. Rewriting that node's classes would do nothing,
50
+ // so drop it and let Font Awesome convert a fresh <i> instead.
51
+ if (existing && existing.tagName !== 'I') {
52
+ existing.remove();
53
+ }
54
+ let glyph = this.el.querySelector(':scope > i[data-cui-icon-glyph]');
55
+ if (!glyph) {
56
+ glyph = document.createElement('i');
57
+ glyph.setAttribute('data-cui-icon-glyph', '');
58
+ // The glyph is always hidden in its own right; the host carries the accessible name.
59
+ glyph.setAttribute('aria-hidden', 'true');
60
+ this.el.appendChild(glyph);
61
+ }
62
+ glyph.className = (_a = this.icon) !== null && _a !== void 0 ? _a : '';
63
+ }
64
+ /** An icon is either named or hidden — never both, and never named with an empty string. */
65
+ syncAria() {
66
+ var _a;
67
+ const name = (_a = this.label) === null || _a === void 0 ? void 0 : _a.trim();
68
+ if (name) {
69
+ this.el.setAttribute('role', 'img');
70
+ this.el.setAttribute('aria-label', name);
71
+ this.el.removeAttribute('aria-hidden');
72
+ return;
73
+ }
74
+ this.el.setAttribute('aria-hidden', 'true');
75
+ this.el.removeAttribute('role');
76
+ this.el.removeAttribute('aria-label');
77
+ }
78
+ render() {
79
+ return (h("span", { key: '76b54ef28027419bfbb5500c5cf4a88a7d01131e', part: "base", class: {
80
+ 'cui-icon': true,
81
+ [`cui-icon--${this.variant}`]: true,
82
+ [`cui-icon--${this.importance}`]: true,
83
+ [`cui-icon--${this.size}`]: true,
84
+ } }, h("slot", { key: '8c4d13ffa3b1cfe3e4d7d47c29127784d62381ff' })));
85
+ }
86
+ get el() { return getElement(this); }
87
+ static get watchers() { return {
88
+ "icon": [{
89
+ "onIconChange": 0
90
+ }],
91
+ "label": [{
92
+ "onLabelChange": 0
93
+ }]
94
+ }; }
95
+ };
96
+ CuiIcon.style = cuiIconCss();
97
+
98
+ export { CuiIcon as cui_icon };
@@ -0,0 +1,44 @@
1
+ import { r as registerInstance, h } from './index-BZmInLSX.js';
2
+
3
+ const cuiProgressCss = () => `:host{display:block;--cui-progress-track-color:var(--cui-base-bg-level-2);--cui-progress-indicator-color:var(--cui-accent-surface-primary-default)}:host([hidden]){display:none}.cui-progress{font-family:var(--cui-font-family-base);display:flex;align-items:center;gap:var(--cui-spacing-s)}.cui-progress__bar{flex:1 1 auto;display:block;width:100%;border:none;-webkit-appearance:none;appearance:none;border-radius:var(--cui-border-radius-full);background-color:var(--cui-progress-track-color);box-shadow:inset 0 0 0 var(--cui-border-width-s) var(--cui-base-border-secondary)}.cui-progress__bar::-webkit-progress-bar{border-radius:var(--cui-border-radius-full);background-color:var(--cui-progress-track-color);box-shadow:inset 0 0 0 var(--cui-border-width-s) var(--cui-base-border-secondary)}.cui-progress__bar::-webkit-progress-value{border-radius:var(--cui-border-radius-full);background-color:var(--cui-progress-indicator-color);transition:width var(--cui-transition-base)}.cui-progress__bar::-moz-progress-bar{border-radius:var(--cui-border-radius-full);background-color:var(--cui-progress-indicator-color)}.cui-progress__bar:indeterminate{background-image:linear-gradient(to right, var(--cui-progress-indicator-color), var(--cui-progress-indicator-color));background-repeat:no-repeat;background-size:40% 100%;animation:cui-progress-sweep 1.5s linear infinite}.cui-progress__bar:indeterminate::-webkit-progress-bar{background-image:linear-gradient(to right, var(--cui-progress-indicator-color), var(--cui-progress-indicator-color));background-repeat:no-repeat;background-size:40% 100%;animation:cui-progress-sweep 1.5s linear infinite}.cui-progress__bar:indeterminate::-webkit-progress-value{display:none}.cui-progress__bar:indeterminate::-moz-progress-bar{background-color:transparent}.cui-progress__value{flex:0 0 auto;color:var(--cui-base-text-secondary);font-size:var(--cui-font-size-s);font-weight:var(--cui-font-weight-medium);font-variant-numeric:tabular-nums}.cui-progress--small .cui-progress__bar{height:var(--cui-spacing-xs)}.cui-progress--medium .cui-progress__bar{height:var(--cui-spacing-s)}.cui-progress--large .cui-progress__bar{height:var(--cui-spacing-m)}@keyframes cui-progress-sweep{from{background-position-x:-66.67%}to{background-position-x:166.67%}}@media (prefers-reduced-motion: reduce){.cui-progress__bar::-webkit-progress-value{transition:none}.cui-progress__bar:indeterminate{animation-duration:3s}.cui-progress__bar:indeterminate::-webkit-progress-bar{animation-duration:3s}}`;
4
+
5
+ const CuiProgress = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ /** How much of the task is done, clamped to the range `0`–`max`. */
9
+ this.value = 0;
10
+ /** The value that counts as complete. */
11
+ this.max = 100;
12
+ /**
13
+ * Animates continuously instead of showing a value. Use it only while the total amount
14
+ * of work is genuinely unknown — prefer a real `value` whenever the work reports one.
15
+ */
16
+ this.indeterminate = false;
17
+ /** Thickness of the bar. */
18
+ this.size = 'medium';
19
+ /** Renders the completed percentage as text beside the bar. Ignored when indeterminate. */
20
+ this.showValue = false;
21
+ }
22
+ /** `max` is only meaningful above zero; anything else falls back to a percentage scale. */
23
+ get resolvedMax() {
24
+ return Number.isFinite(this.max) && this.max > 0 ? this.max : 100;
25
+ }
26
+ get clampedValue() {
27
+ if (!Number.isFinite(this.value))
28
+ return 0;
29
+ return Math.min(Math.max(this.value, 0), this.resolvedMax);
30
+ }
31
+ get percent() {
32
+ return (this.clampedValue / this.resolvedMax) * 100;
33
+ }
34
+ render() {
35
+ const { indeterminate, showValue } = this;
36
+ return (h("div", { key: '546c0fb27b6e91a1d153d01ae154c272be633b14', part: "base", class: {
37
+ 'cui-progress': true,
38
+ [`cui-progress--${this.size}`]: true,
39
+ } }, h("progress", { key: '313a769b9ea6c2059816e40c744a74749a55c07b', part: "bar", class: "cui-progress__bar", "aria-label": this.label, max: this.resolvedMax, value: indeterminate ? undefined : this.clampedValue }), showValue && !indeterminate && (h("span", { key: '1a2edab01738734b397b426d826cfa2dcd4cf89b', part: "value", class: "cui-progress__value" }, Math.round(this.percent), "%"))));
40
+ }
41
+ };
42
+ CuiProgress.style = cuiProgressCss();
43
+
44
+ export { CuiProgress as cui_progress };
@@ -1,16 +1,16 @@
1
- import { r as registerInstance, h } from './index-C70YK15K.js';
1
+ import { r as registerInstance, h } from './index-BZmInLSX.js';
2
2
 
3
- const cuiTagCss = () => `:host{display:inline-block}.cui-tag{font-family:var(--cui-font-family-base);display:inline-flex;align-items:center;justify-content:center;border-radius:var(--cui-radius-sm);font-weight:var(--cui-font-weight-semibold);white-space:nowrap}.cui-tag--small{padding:var(--cui-spacing-xxs) var(--cui-spacing-sm);font-size:var(--cui-font-size-xs)}.cui-tag--medium{padding:var(--cui-spacing-xs) var(--cui-spacing-md);font-size:var(--cui-font-size-sm)}.cui-tag--default{background-color:var(--cui-accent-bg);color:var(--cui-accent-text)}.cui-tag--highlight{background-color:var(--cui-highlight-bg);color:var(--cui-highlight-text)}.cui-tag--info{background-color:var(--cui-info-bg);color:var(--cui-info-text)}.cui-tag--negative{background-color:var(--cui-negative-bg);color:var(--cui-negative-text)}.cui-tag--neutral{background-color:var(--cui-neutral-bg);color:var(--cui-neutral-text)}.cui-tag--positive{background-color:var(--cui-positive-bg);color:var(--cui-positive-text)}.cui-tag--warning{background-color:var(--cui-warning-bg);color:var(--cui-warning-text)}`;
3
+ const cuiTagCss = () => `:host{display:inline-block}.cui-tag{font-family:var(--cui-font-family-base);display:inline-flex;align-items:center;justify-content:center;border-radius:var(--cui-border-radius-m);font-weight:var(--cui-font-weight-semibold);white-space:nowrap}.cui-tag--small{padding:var(--cui-spacing-xxs) var(--cui-spacing-s);font-size:var(--cui-font-size-xs)}.cui-tag--medium{padding:var(--cui-spacing-xs) var(--cui-spacing-m);font-size:var(--cui-font-size-s)}.cui-tag--accent{background-color:var(--cui-accent-surface-secondary-default);color:var(--cui-accent-text-secondary-default)}.cui-tag--highlight{background-color:var(--cui-highlight-surface-secondary-default);color:var(--cui-highlight-text-secondary-default)}.cui-tag--info{background-color:var(--cui-info-surface-secondary-default);color:var(--cui-info-text-secondary-default)}.cui-tag--negative{background-color:var(--cui-negative-surface-secondary-default);color:var(--cui-negative-text-secondary-default)}.cui-tag--neutral{background-color:var(--cui-neutral-surface-secondary-default);color:var(--cui-neutral-text-secondary-default)}.cui-tag--positive{background-color:var(--cui-positive-surface-secondary-default);color:var(--cui-positive-text-secondary-default)}.cui-tag--warning{background-color:var(--cui-warning-surface-secondary-default);color:var(--cui-warning-text-secondary-default)}`;
4
4
 
5
5
  const CuiTag = class {
6
6
  constructor(hostRef) {
7
7
  registerInstance(this, hostRef);
8
8
  this.label = '';
9
- this.variant = 'default';
9
+ this.variant = 'neutral';
10
10
  this.size = 'medium';
11
11
  }
12
12
  render() {
13
- return (h("span", { key: 'd2bab55fc1472bb8f004ef648103478070bb4723', class: {
13
+ return (h("span", { key: '35b8ea2176d1923abcda801fee775a9cd46a2fec', class: {
14
14
  'cui-tag': true,
15
15
  [`cui-tag--${this.variant}`]: true,
16
16
  [`cui-tag--${this.size}`]: true,