@spectrum-web-components/core 0.0.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 (76) hide show
  1. package/README.md +7 -0
  2. package/dist/components/alert-banner/AlertBanner.base.d.ts +38 -0
  3. package/dist/components/alert-banner/AlertBanner.base.js +66 -0
  4. package/dist/components/alert-banner/AlertBanner.base.js.map +1 -0
  5. package/dist/components/alert-banner/index.d.ts +12 -0
  6. package/dist/components/alert-banner/index.js +5 -0
  7. package/dist/components/alert-banner/index.js.map +1 -0
  8. package/dist/components/asset/Asset.base.d.ts +5 -0
  9. package/dist/components/asset/Asset.base.js +22 -0
  10. package/dist/components/asset/Asset.base.js.map +1 -0
  11. package/dist/components/asset/index.d.ts +12 -0
  12. package/dist/components/asset/index.js +5 -0
  13. package/dist/components/asset/index.js.map +1 -0
  14. package/dist/components/badge/Badge.base.d.ts +84 -0
  15. package/dist/components/badge/Badge.base.js +74 -0
  16. package/dist/components/badge/Badge.base.js.map +1 -0
  17. package/dist/components/badge/Badge.types.d.ts +21 -0
  18. package/dist/components/badge/Badge.types.js +50 -0
  19. package/dist/components/badge/Badge.types.js.map +1 -0
  20. package/dist/components/badge/index.d.ts +13 -0
  21. package/dist/components/badge/index.js +12 -0
  22. package/dist/components/badge/index.js.map +1 -0
  23. package/dist/components/divider/Divider.base.d.ts +33 -0
  24. package/dist/components/divider/Divider.base.js +35 -0
  25. package/dist/components/divider/Divider.base.js.map +1 -0
  26. package/dist/components/divider/Divider.types.d.ts +4 -0
  27. package/dist/components/divider/Divider.types.js +6 -0
  28. package/dist/components/divider/Divider.types.js.map +1 -0
  29. package/dist/components/divider/index.d.ts +13 -0
  30. package/dist/components/divider/index.js +8 -0
  31. package/dist/components/divider/index.js.map +1 -0
  32. package/dist/components/progress-circle/ProgressCircle.base.d.ts +76 -0
  33. package/dist/components/progress-circle/ProgressCircle.base.js +63 -0
  34. package/dist/components/progress-circle/ProgressCircle.base.js.map +1 -0
  35. package/dist/components/progress-circle/ProgressCircle.types.d.ts +7 -0
  36. package/dist/components/progress-circle/ProgressCircle.types.js +14 -0
  37. package/dist/components/progress-circle/ProgressCircle.types.js.map +1 -0
  38. package/dist/components/progress-circle/index.d.ts +13 -0
  39. package/dist/components/progress-circle/index.js +9 -0
  40. package/dist/components/progress-circle/index.js.map +1 -0
  41. package/dist/components/status-light/StatusLight.base.d.ts +64 -0
  42. package/dist/components/status-light/StatusLight.base.js +46 -0
  43. package/dist/components/status-light/StatusLight.base.js.map +1 -0
  44. package/dist/components/status-light/StatusLight.types.d.ts +21 -0
  45. package/dist/components/status-light/StatusLight.types.js +45 -0
  46. package/dist/components/status-light/StatusLight.types.js.map +1 -0
  47. package/dist/components/status-light/index.d.ts +13 -0
  48. package/dist/components/status-light/index.js +13 -0
  49. package/dist/components/status-light/index.js.map +1 -0
  50. package/dist/node_modules/@lit-labs/observers/mutation-controller.js +30 -0
  51. package/dist/node_modules/@lit-labs/observers/mutation-controller.js.map +1 -0
  52. package/dist/shared/base/Base.d.ts +17 -0
  53. package/dist/shared/base/Base.js +144 -0
  54. package/dist/shared/base/Base.js.map +1 -0
  55. package/dist/shared/base/define-element.d.ts +16 -0
  56. package/dist/shared/base/define-element.js +11 -0
  57. package/dist/shared/base/define-element.js.map +1 -0
  58. package/dist/shared/base/index.d.ts +15 -0
  59. package/dist/shared/base/index.js +13 -0
  60. package/dist/shared/base/index.js.map +1 -0
  61. package/dist/shared/base/sizedMixin.d.ts +20 -0
  62. package/dist/shared/base/sizedMixin.js +50 -0
  63. package/dist/shared/base/sizedMixin.js.map +1 -0
  64. package/dist/shared/base/version.d.ts +1 -0
  65. package/dist/shared/base/version.js +5 -0
  66. package/dist/shared/base/version.js.map +1 -0
  67. package/dist/shared/get-label-from-slot.d.ts +12 -0
  68. package/dist/shared/get-label-from-slot.js +10 -0
  69. package/dist/shared/get-label-from-slot.js.map +1 -0
  70. package/dist/shared/observe-slot-presence.d.ts +12 -0
  71. package/dist/shared/observe-slot-presence.js +53 -0
  72. package/dist/shared/observe-slot-presence.js.map +1 -0
  73. package/dist/shared/observe-slot-text.d.ts +11 -0
  74. package/dist/shared/observe-slot-text.js +74 -0
  75. package/dist/shared/observe-slot-text.js.map +1 -0
  76. package/package.json +76 -0
@@ -0,0 +1,76 @@
1
+ import { PropertyValues } from 'lit';
2
+ import { SpectrumElement } from '../../shared/base/index.js';
3
+ import { ProgressCircleStaticColor } from './ProgressCircle.types.js';
4
+ declare const ProgressCircleBase_base: typeof SpectrumElement & {
5
+ new (...args: any[]): import('../../shared/base/index.js').SizedElementInterface;
6
+ prototype: import('../../shared/base/index.js').SizedElementInterface;
7
+ } & import('../../shared/base/sizedMixin.js').SizedElementConstructor;
8
+ /**
9
+ * A progress circle component that visually represents the completion progress of a task.
10
+ * Can be used in both determinate (with specific progress value) and indeterminate (loading) states.
11
+ *
12
+ * @attribute {ElementSize} size - The size of the progress circle.
13
+ *
14
+ * @todo Why do we support both the slot and the label attribute? Should we deprecate the slot?
15
+ *
16
+ * @todo Figure out why our tool chain doesn't respect the line breaks in this slot description.
17
+ *
18
+ * @slot - Accessible label for the progress circle.
19
+ *
20
+ * Used to provide context about what is loading or progressing.
21
+ *
22
+ * @fires progress-change - Dispatched when the progress value changes
23
+ */
24
+ export declare abstract class ProgressCircleBase extends ProgressCircleBase_base {
25
+ /**
26
+ * @internal
27
+ *
28
+ * A readonly array of the valid static colors for the progress circle.
29
+ *
30
+ * This is an actual internal property, intended not for customer use
31
+ * but for use in internal validation logic, stories, tests, etc.
32
+ *
33
+ * Because S1 and S2 support different static colors, the value of this
34
+ * property must be set in each subclass.
35
+ */
36
+ static readonly STATIC_COLORS: readonly string[];
37
+ /**
38
+ * @internal
39
+ *
40
+ * Static color variant for use on different backgrounds.
41
+ *
42
+ * This is a public property, but its valid values vary between S1 and S2,
43
+ * so the property (and its docs) need to be redefined in each subclass.
44
+ *
45
+ * The type declared here is a union of the valid values for S1 and S2,
46
+ * and should be narrowed in each subclass.
47
+ */
48
+ staticColor?: ProgressCircleStaticColor;
49
+ /**
50
+ * Whether the progress circle shows indeterminate progress (loading state).
51
+ *
52
+ * When true, displays an animated loading indicator instead of a specific progress value.
53
+ */
54
+ indeterminate: boolean;
55
+ /**
56
+ * Accessible label for the progress circle.
57
+ *
58
+ * Used to provide context about what is loading or progressing.
59
+ */
60
+ label: string;
61
+ /**
62
+ * Progress value from 0 to 100.
63
+ *
64
+ * Only relevant when indeterminate is false.
65
+ */
66
+ progress: number;
67
+ /**
68
+ * @internal
69
+ */
70
+ private slotEl;
71
+ protected makeRotation(rotation: number): string | undefined;
72
+ protected handleSlotchange(): void;
73
+ protected firstUpdated(changes: PropertyValues): void;
74
+ protected updated(changes: PropertyValues): void;
75
+ }
76
+ export {};
@@ -0,0 +1,63 @@
1
+ import { property as l, query as n } from "lit/decorators.js";
2
+ import { SizedMixin as b, SpectrumElement as h } from "@spectrum-web-components/core/shared/base/index.js";
3
+ import { getLabelFromSlot as d } from "@spectrum-web-components/core/shared/get-label-from-slot.js";
4
+ import { PROGRESS_CIRCLE_VALID_SIZES as u } from "./ProgressCircle.types.js";
5
+ var c = Object.defineProperty, r = (a, e, s, m) => {
6
+ for (var t = void 0, o = a.length - 1, p; o >= 0; o--)
7
+ (p = a[o]) && (t = p(e, s, t) || t);
8
+ return t && c(e, s, t), t;
9
+ };
10
+ class i extends b(h, {
11
+ validSizes: u
12
+ }) {
13
+ constructor() {
14
+ super(...arguments), this.indeterminate = !1, this.label = "", this.progress = 0;
15
+ }
16
+ makeRotation(e) {
17
+ return this.indeterminate ? void 0 : `transform: rotate(${e}deg);`;
18
+ }
19
+ handleSlotchange() {
20
+ const e = d(this.label, this.slotEl);
21
+ e && (this.label = e);
22
+ }
23
+ firstUpdated(e) {
24
+ super.firstUpdated(e), this.hasAttribute("role") || this.setAttribute("role", "progressbar");
25
+ }
26
+ updated(e) {
27
+ super.updated(e), !this.indeterminate && e.has("progress") ? this.setAttribute("aria-valuenow", "" + this.progress) : this.hasAttribute("aria-valuenow") && this.removeAttribute("aria-valuenow"), e.has("label") && (this.label.length ? this.setAttribute("aria-label", this.label) : e.get("label") === this.getAttribute("aria-label") && this.removeAttribute("aria-label"));
28
+ const s = () => !!(this.label || this.getAttribute("aria-label") || this.getAttribute("aria-labelledby") || this.slotEl.assignedNodes().length);
29
+ window.__swc.DEBUG && !s() && this.getAttribute("role") === "progressbar" && window.__swc?.warn(
30
+ this,
31
+ "<sp-progress-circle> elements need one of the following to be accessible:",
32
+ "https://opensource.adobe.com/spectrum-web-components/components/progress-circle/#accessibility",
33
+ {
34
+ type: "accessibility",
35
+ issues: [
36
+ 'value supplied to the "label" attribute, which will be displayed visually as part of the element, or',
37
+ "text content supplied directly to the <sp-progress-circle> element, or",
38
+ 'value supplied to the "aria-label" attribute, which will only be provided to screen readers, or',
39
+ 'an element ID reference supplied to the "aria-labelledby" attribute, which will be provided by screen readers and will need to be managed manually by the parent application.'
40
+ ]
41
+ }
42
+ );
43
+ }
44
+ }
45
+ r([
46
+ l({ type: String, reflect: !0, attribute: "static-color" })
47
+ ], i.prototype, "staticColor");
48
+ r([
49
+ l({ type: Boolean, reflect: !0 })
50
+ ], i.prototype, "indeterminate");
51
+ r([
52
+ l({ type: String })
53
+ ], i.prototype, "label");
54
+ r([
55
+ l({ type: Number })
56
+ ], i.prototype, "progress");
57
+ r([
58
+ n("slot")
59
+ ], i.prototype, "slotEl");
60
+ export {
61
+ i as ProgressCircleBase
62
+ };
63
+ //# sourceMappingURL=ProgressCircle.base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProgressCircle.base.js","sources":["../../../components/progress-circle/ProgressCircle.base.ts"],"sourcesContent":["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport { PropertyValues } from 'lit';\nimport { property, query } from 'lit/decorators.js';\n\nimport {\n SizedMixin,\n SpectrumElement,\n} from '@spectrum-web-components/core/shared/base/index.js';\nimport { getLabelFromSlot } from '@spectrum-web-components/core/shared/get-label-from-slot.js';\n\nimport {\n PROGRESS_CIRCLE_VALID_SIZES,\n ProgressCircleStaticColor,\n} from './ProgressCircle.types.js';\n\n/**\n * A progress circle component that visually represents the completion progress of a task.\n * Can be used in both determinate (with specific progress value) and indeterminate (loading) states.\n *\n * @attribute {ElementSize} size - The size of the progress circle.\n *\n * @todo Why do we support both the slot and the label attribute? Should we deprecate the slot?\n *\n * @todo Figure out why our tool chain doesn't respect the line breaks in this slot description.\n *\n * @slot - Accessible label for the progress circle.\n *\n * Used to provide context about what is loading or progressing.\n *\n * @fires progress-change - Dispatched when the progress value changes\n */\nexport abstract class ProgressCircleBase extends SizedMixin(SpectrumElement, {\n validSizes: PROGRESS_CIRCLE_VALID_SIZES,\n}) {\n // ─────────────────────────\n // API TO OVERRIDE\n // ─────────────────────────\n\n /**\n * @internal\n *\n * A readonly array of the valid static colors for the progress circle.\n *\n * This is an actual internal property, intended not for customer use\n * but for use in internal validation logic, stories, tests, etc.\n *\n * Because S1 and S2 support different static colors, the value of this\n * property must be set in each subclass.\n */\n static readonly STATIC_COLORS: readonly string[];\n\n /**\n * @internal\n *\n * Static color variant for use on different backgrounds.\n *\n * This is a public property, but its valid values vary between S1 and S2,\n * so the property (and its docs) need to be redefined in each subclass.\n *\n * The type declared here is a union of the valid values for S1 and S2,\n * and should be narrowed in each subclass.\n */\n @property({ type: String, reflect: true, attribute: 'static-color' })\n public staticColor?: ProgressCircleStaticColor;\n\n // ──────────────────\n // SHARED API\n // ──────────────────\n\n /**\n * Whether the progress circle shows indeterminate progress (loading state).\n *\n * When true, displays an animated loading indicator instead of a specific progress value.\n */\n @property({ type: Boolean, reflect: true })\n public indeterminate = false;\n\n /**\n * Accessible label for the progress circle.\n *\n * Used to provide context about what is loading or progressing.\n */\n @property({ type: String })\n public label = '';\n\n /**\n * Progress value from 0 to 100.\n *\n * Only relevant when indeterminate is false.\n */\n @property({ type: Number })\n public progress = 0;\n\n // ──────────────────────\n // IMPLEMENTATION\n // ──────────────────────\n\n /**\n * @internal\n */\n @query('slot')\n private slotEl!: HTMLSlotElement;\n\n protected makeRotation(rotation: number): string | undefined {\n return this.indeterminate\n ? undefined\n : `transform: rotate(${rotation}deg);`;\n }\n\n protected handleSlotchange(): void {\n const labelFromSlot = getLabelFromSlot(this.label, this.slotEl);\n if (labelFromSlot) {\n this.label = labelFromSlot;\n }\n }\n\n protected override firstUpdated(changes: PropertyValues): void {\n super.firstUpdated(changes);\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'progressbar');\n }\n }\n\n protected override updated(changes: PropertyValues): void {\n super.updated(changes);\n if (!this.indeterminate && changes.has('progress')) {\n this.setAttribute('aria-valuenow', '' + this.progress);\n } else if (this.hasAttribute('aria-valuenow')) {\n this.removeAttribute('aria-valuenow');\n }\n if (changes.has('label')) {\n if (this.label.length) {\n this.setAttribute('aria-label', this.label);\n } else if (\n changes.get('label') === this.getAttribute('aria-label')\n ) {\n this.removeAttribute('aria-label');\n }\n }\n\n const hasAccessibleName = (): boolean => {\n return Boolean(\n this.label ||\n this.getAttribute('aria-label') ||\n this.getAttribute('aria-labelledby') ||\n this.slotEl.assignedNodes().length\n );\n };\n\n if (window.__swc.DEBUG) {\n if (\n !hasAccessibleName() &&\n this.getAttribute('role') === 'progressbar'\n ) {\n window.__swc?.warn(\n this,\n '<sp-progress-circle> elements need one of the following to be accessible:',\n 'https://opensource.adobe.com/spectrum-web-components/components/progress-circle/#accessibility',\n {\n type: 'accessibility',\n issues: [\n 'value supplied to the \"label\" attribute, which will be displayed visually as part of the element, or',\n 'text content supplied directly to the <sp-progress-circle> element, or',\n 'value supplied to the \"aria-label\" attribute, which will only be provided to screen readers, or',\n 'an element ID reference supplied to the \"aria-labelledby\" attribute, which will be provided by screen readers and will need to be managed manually by the parent application.',\n ],\n }\n );\n }\n }\n }\n}\n"],"names":["ProgressCircleBase","SizedMixin","SpectrumElement","PROGRESS_CIRCLE_VALID_SIZES","rotation","labelFromSlot","getLabelFromSlot","changes","hasAccessibleName","__decorateClass","property","query"],"mappings":";;;;;;;;;AAyCO,MAAeA,UAA2BC,EAAWC,GAAiB;AAAA,EACzE,YAAYC;AAChB,CAAC,EAAE;AAAA,EAFI,cAAA;AAAA,UAAA,GAAA,SAAA,GA4CH,KAAO,gBAAgB,IAQvB,KAAO,QAAQ,IAQf,KAAO,WAAW;AAAA,EAAA;AAAA,EAYR,aAAaC,GAAsC;AACzD,WAAO,KAAK,gBACN,SACA,qBAAqBA,CAAQ;AAAA,EACvC;AAAA,EAEU,mBAAyB;AAC/B,UAAMC,IAAgBC,EAAiB,KAAK,OAAO,KAAK,MAAM;AAC9D,IAAID,MACA,KAAK,QAAQA;AAAA,EAErB;AAAA,EAEmB,aAAaE,GAA+B;AAC3D,UAAM,aAAaA,CAAO,GACrB,KAAK,aAAa,MAAM,KACzB,KAAK,aAAa,QAAQ,aAAa;AAAA,EAE/C;AAAA,EAEmB,QAAQA,GAA+B;AACtD,UAAM,QAAQA,CAAO,GACjB,CAAC,KAAK,iBAAiBA,EAAQ,IAAI,UAAU,IAC7C,KAAK,aAAa,iBAAiB,KAAK,KAAK,QAAQ,IAC9C,KAAK,aAAa,eAAe,KACxC,KAAK,gBAAgB,eAAe,GAEpCA,EAAQ,IAAI,OAAO,MACf,KAAK,MAAM,SACX,KAAK,aAAa,cAAc,KAAK,KAAK,IAE1CA,EAAQ,IAAI,OAAO,MAAM,KAAK,aAAa,YAAY,KAEvD,KAAK,gBAAgB,YAAY;AAIzC,UAAMC,IAAoB,MACf,GACH,KAAK,SACD,KAAK,aAAa,YAAY,KAC9B,KAAK,aAAa,iBAAiB,KACnC,KAAK,OAAO,gBAAgB;AAIxC,IAAI,OAAO,MAAM,SAET,CAACA,EAAA,KACD,KAAK,aAAa,MAAM,MAAM,iBAE9B,OAAO,OAAO;AAAA,MACV;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,QACI,MAAM;AAAA,QACN,QAAQ;AAAA,UACJ;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QAAA;AAAA,MACJ;AAAA,IACJ;AAAA,EAIhB;AACJ;AA5GWC,EAAA;AAAA,EADNC,EAAS,EAAE,MAAM,QAAQ,SAAS,IAAM,WAAW,gBAAgB;AAAA,GA/BlDV,EAgCX,WAAA,aAAA;AAYAS,EAAA;AAAA,EADNC,EAAS,EAAE,MAAM,SAAS,SAAS,IAAM;AAAA,GA3CxBV,EA4CX,WAAA,eAAA;AAQAS,EAAA;AAAA,EADNC,EAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GAnDRV,EAoDX,WAAA,OAAA;AAQAS,EAAA;AAAA,EADNC,EAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GA3DRV,EA4DX,WAAA,UAAA;AAUCS,EAAA;AAAA,EADPE,EAAM,MAAM;AAAA,GArEKX,EAsEV,WAAA,QAAA;"}
@@ -0,0 +1,7 @@
1
+ import { ElementSize } from '../../shared/base/index.js';
2
+ export declare const PROGRESS_CIRCLE_VALID_SIZES: ElementSize[];
3
+ export declare const PROGRESS_CIRCLE_STATIC_COLORS_S1: readonly ["white"];
4
+ export declare const PROGRESS_CIRCLE_STATIC_COLORS_S2: readonly ["white", "black"];
5
+ export type ProgressCircleStaticColorS1 = (typeof PROGRESS_CIRCLE_STATIC_COLORS_S1)[number];
6
+ export type ProgressCircleStaticColorS2 = (typeof PROGRESS_CIRCLE_STATIC_COLORS_S2)[number];
7
+ export type ProgressCircleStaticColor = ProgressCircleStaticColorS1 | ProgressCircleStaticColorS2;
@@ -0,0 +1,14 @@
1
+ const R = [
2
+ "s",
3
+ "m",
4
+ "l"
5
+ ], S = ["white"], _ = [
6
+ ...S,
7
+ "black"
8
+ ];
9
+ export {
10
+ S as PROGRESS_CIRCLE_STATIC_COLORS_S1,
11
+ _ as PROGRESS_CIRCLE_STATIC_COLORS_S2,
12
+ R as PROGRESS_CIRCLE_VALID_SIZES
13
+ };
14
+ //# sourceMappingURL=ProgressCircle.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProgressCircle.types.js","sources":["../../../components/progress-circle/ProgressCircle.types.ts"],"sourcesContent":["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport type { ElementSize } from '@spectrum-web-components/core/shared/base/index.js';\n\nexport const PROGRESS_CIRCLE_VALID_SIZES: ElementSize[] = [\n 's',\n 'm',\n 'l',\n] as const;\nexport const PROGRESS_CIRCLE_STATIC_COLORS_S1 = ['white'] as const;\nexport const PROGRESS_CIRCLE_STATIC_COLORS_S2 = [\n ...PROGRESS_CIRCLE_STATIC_COLORS_S1,\n 'black',\n] as const;\n\nexport type ProgressCircleStaticColorS1 =\n (typeof PROGRESS_CIRCLE_STATIC_COLORS_S1)[number];\nexport type ProgressCircleStaticColorS2 =\n (typeof PROGRESS_CIRCLE_STATIC_COLORS_S2)[number];\nexport type ProgressCircleStaticColor =\n | ProgressCircleStaticColorS1\n | ProgressCircleStaticColorS2;\n"],"names":["PROGRESS_CIRCLE_VALID_SIZES","PROGRESS_CIRCLE_STATIC_COLORS_S1","PROGRESS_CIRCLE_STATIC_COLORS_S2"],"mappings":"AAcO,MAAMA,IAA6C;AAAA,EACtD;AAAA,EACA;AAAA,EACA;AACJ,GACaC,IAAmC,CAAC,OAAO,GAC3CC,IAAmC;AAAA,EAC5C,GAAGD;AAAA,EACH;AACJ;"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Copyright 2025 Adobe. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+ export * from './ProgressCircle.base.js';
13
+ export * from './ProgressCircle.types.js';
@@ -0,0 +1,9 @@
1
+ import { ProgressCircleBase as R } from "./ProgressCircle.base.js";
2
+ import { PROGRESS_CIRCLE_STATIC_COLORS_S1 as r, PROGRESS_CIRCLE_STATIC_COLORS_S2 as E, PROGRESS_CIRCLE_VALID_SIZES as I } from "./ProgressCircle.types.js";
3
+ export {
4
+ r as PROGRESS_CIRCLE_STATIC_COLORS_S1,
5
+ E as PROGRESS_CIRCLE_STATIC_COLORS_S2,
6
+ I as PROGRESS_CIRCLE_VALID_SIZES,
7
+ R as ProgressCircleBase
8
+ };
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1,64 @@
1
+ import { PropertyValues } from 'lit';
2
+ import { SpectrumElement } from '../../shared/base';
3
+ import { StatusLightVariant } from './StatusLight.types.js';
4
+ declare const StatusLightBase_base: typeof SpectrumElement & {
5
+ new (...args: any[]): import('../../shared/base').SizedElementInterface;
6
+ prototype: import('../../shared/base').SizedElementInterface;
7
+ } & import('../../shared/base/sizedMixin.js').SizedElementConstructor;
8
+ /**
9
+ * A status light is a great way to convey semantic meaning and the condition of an entity, such as statuses and categories. It provides visual indicators through colored dots accompanied by descriptive text.
10
+ *
11
+ * @slot - The text label of the status light.
12
+ */
13
+ export declare abstract class StatusLightBase extends StatusLightBase_base {
14
+ /**
15
+ * @internal
16
+ *
17
+ * A readonly array of the valid color variants for the status light.
18
+ *
19
+ * This is an actual internal property, intended not for customer use
20
+ * but for use in internal validation logic, stories, tests, etc.
21
+ *
22
+ * Because S1 and S2 support different color variants, the value of this
23
+ * property must be set in each subclass.
24
+ */
25
+ static readonly VARIANTS_COLOR: readonly string[];
26
+ /**
27
+ * @internal
28
+ *
29
+ * A readonly array of the valid semantic variants for the status light.
30
+ *
31
+ * This is an actual internal property, intended not for customer use
32
+ * but for use in internal validation logic, stories, tests, etc.
33
+ *
34
+ * Because S1 and S2 support different semantic variants, the value of this
35
+ * property must be set in each subclass.
36
+ */
37
+ static readonly VARIANTS_SEMANTIC: readonly string[];
38
+ /**
39
+ * @internal
40
+ *
41
+ * A readonly array of all valid variants for the status light.
42
+ *
43
+ * This is an actual internal property, intended not for customer use
44
+ * but for use in internal validation logic, stories, tests, etc.
45
+ *
46
+ * Because S1 and S2 support different variants, the value of this
47
+ * property must be set in each subclass.
48
+ */
49
+ static readonly VARIANTS: readonly string[];
50
+ /**
51
+ * @internal
52
+ *
53
+ * The variant of the status light.
54
+ *
55
+ * This is a public property, but its valid values vary between S1 and S2,
56
+ * so the property (and its docs) need to be redefined in each subclass.
57
+ *
58
+ * The type declared here is a union of the valid values for S1 and S2,
59
+ * and should be narrowed in each subclass.
60
+ */
61
+ variant: StatusLightVariant;
62
+ protected updated(changes: PropertyValues): void;
63
+ }
64
+ export {};
@@ -0,0 +1,46 @@
1
+ import { property as n } from "lit/decorators.js";
2
+ import { SizedMixin as a, SpectrumElement as p } from "@spectrum-web-components/core/shared/base";
3
+ var u = Object.defineProperty, c = (o, s, e, l) => {
4
+ for (var t = void 0, i = o.length - 1, r; i >= 0; i--)
5
+ (r = o[i]) && (t = r(s, e, t) || t);
6
+ return t && u(s, e, t), t;
7
+ };
8
+ class d extends a(p, {
9
+ noDefaultSize: !0
10
+ }) {
11
+ constructor() {
12
+ super(...arguments), this.variant = "info";
13
+ }
14
+ // ──────────────────────
15
+ // IMPLEMENTATION
16
+ // ──────────────────────
17
+ updated(s) {
18
+ if (super.updated(s), window.__swc?.DEBUG) {
19
+ const e = this.constructor;
20
+ e.VARIANTS.includes(this.variant) || window.__swc.warn(
21
+ this,
22
+ `<${this.localName}> element expects the "variant" attribute to be one of the following:`,
23
+ "https://opensource.adobe.com/spectrum-web-components/components/status-light/#variants",
24
+ {
25
+ issues: [...e.VARIANTS]
26
+ }
27
+ ), this.hasAttribute("disabled") && !("disabled" in this) && window.__swc.warn(
28
+ this,
29
+ `<${this.localName}> element does not support the disabled state.`,
30
+ "https://opensource.adobe.com/spectrum-web-components/components/status-light/#states",
31
+ {
32
+ issues: [
33
+ "disabled is not a supported property in Spectrum 2"
34
+ ]
35
+ }
36
+ );
37
+ }
38
+ }
39
+ }
40
+ c([
41
+ n({ type: String, reflect: !0 })
42
+ ], d.prototype, "variant");
43
+ export {
44
+ d as StatusLightBase
45
+ };
46
+ //# sourceMappingURL=StatusLight.base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StatusLight.base.js","sources":["../../../components/status-light/StatusLight.base.ts"],"sourcesContent":["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport { PropertyValues } from 'lit';\nimport { property } from 'lit/decorators.js';\n\nimport {\n SizedMixin,\n SpectrumElement,\n} from '@spectrum-web-components/core/shared/base';\n\nimport { type StatusLightVariant } from './StatusLight.types.js';\n\n/**\n * A status light is a great way to convey semantic meaning and the condition of an entity, such as statuses and categories. It provides visual indicators through colored dots accompanied by descriptive text.\n *\n * @slot - The text label of the status light.\n */\nexport abstract class StatusLightBase extends SizedMixin(SpectrumElement, {\n noDefaultSize: true,\n}) {\n // ─────────────────────────\n // API TO OVERRIDE\n // ─────────────────────────\n\n /**\n * @internal\n *\n * A readonly array of the valid color variants for the status light.\n *\n * This is an actual internal property, intended not for customer use\n * but for use in internal validation logic, stories, tests, etc.\n *\n * Because S1 and S2 support different color variants, the value of this\n * property must be set in each subclass.\n */\n static readonly VARIANTS_COLOR: readonly string[];\n\n /**\n * @internal\n *\n * A readonly array of the valid semantic variants for the status light.\n *\n * This is an actual internal property, intended not for customer use\n * but for use in internal validation logic, stories, tests, etc.\n *\n * Because S1 and S2 support different semantic variants, the value of this\n * property must be set in each subclass.\n */\n static readonly VARIANTS_SEMANTIC: readonly string[];\n\n /**\n * @internal\n *\n * A readonly array of all valid variants for the status light.\n *\n * This is an actual internal property, intended not for customer use\n * but for use in internal validation logic, stories, tests, etc.\n *\n * Because S1 and S2 support different variants, the value of this\n * property must be set in each subclass.\n */\n static readonly VARIANTS: readonly string[];\n\n /**\n * @internal\n *\n * The variant of the status light.\n *\n * This is a public property, but its valid values vary between S1 and S2,\n * so the property (and its docs) need to be redefined in each subclass.\n *\n * The type declared here is a union of the valid values for S1 and S2,\n * and should be narrowed in each subclass.\n */\n @property({ type: String, reflect: true })\n public variant: StatusLightVariant = 'info';\n\n // ──────────────────────\n // IMPLEMENTATION\n // ──────────────────────\n\n protected override updated(changes: PropertyValues): void {\n super.updated(changes);\n if (window.__swc?.DEBUG) {\n const constructor = this.constructor as typeof StatusLightBase;\n if (!constructor.VARIANTS.includes(this.variant)) {\n window.__swc.warn(\n this,\n `<${this.localName}> element expects the \"variant\" attribute to be one of the following:`,\n 'https://opensource.adobe.com/spectrum-web-components/components/status-light/#variants',\n {\n issues: [...constructor.VARIANTS],\n }\n );\n }\n // Check disabled property if it exists (S1 only)\n if (this.hasAttribute('disabled') && !('disabled' in this)) {\n window.__swc.warn(\n this,\n `<${this.localName}> element does not support the disabled state.`,\n 'https://opensource.adobe.com/spectrum-web-components/components/status-light/#states',\n {\n issues: [\n 'disabled is not a supported property in Spectrum 2',\n ],\n }\n );\n }\n }\n }\n}\n"],"names":["StatusLightBase","SizedMixin","SpectrumElement","changes","constructor","__decorateClass","property"],"mappings":";;;;;;;AA0BO,MAAeA,UAAwBC,EAAWC,GAAiB;AAAA,EACtE,eAAe;AACnB,CAAC,EAAE;AAAA,EAFI,cAAA;AAAA,UAAA,GAAA,SAAA,GA0DH,KAAO,UAA8B;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA,EAMlB,QAAQC,GAA+B;AAEtD,QADA,MAAM,QAAQA,CAAO,GACjB,OAAO,OAAO,OAAO;AACrB,YAAMC,IAAc,KAAK;AACzB,MAAKA,EAAY,SAAS,SAAS,KAAK,OAAO,KAC3C,OAAO,MAAM;AAAA,QACT;AAAA,QACA,IAAI,KAAK,SAAS;AAAA,QAClB;AAAA,QACA;AAAA,UACI,QAAQ,CAAC,GAAGA,EAAY,QAAQ;AAAA,QAAA;AAAA,MACpC,GAIJ,KAAK,aAAa,UAAU,KAAK,EAAE,cAAc,SACjD,OAAO,MAAM;AAAA,QACT;AAAA,QACA,IAAI,KAAK,SAAS;AAAA,QAClB;AAAA,QACA;AAAA,UACI,QAAQ;AAAA,YACJ;AAAA,UAAA;AAAA,QACJ;AAAA,MACJ;AAAA,IAGZ;AAAA,EACJ;AACJ;AAnCWC,EAAA;AAAA,EADNC,EAAS,EAAE,MAAM,QAAQ,SAAS,IAAM;AAAA,GAzDvBN,EA0DX,WAAA,SAAA;"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Copyright 2025 Adobe. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+ export declare const STATUSLIGHT_VARIANTS_SEMANTIC: readonly ["neutral", "info", "positive", "negative", "notice"];
13
+ export declare const STATUSLIGHT_VARIANTS_SEMANTIC_S1: readonly ["neutral", "info", "positive", "negative", "notice", "accent"];
14
+ export declare const STATUSLIGHT_VARIANTS_SEMANTIC_S2: readonly ["neutral", "info", "positive", "negative", "notice"];
15
+ export declare const STATUSLIGHT_VARIANTS_COLOR_S1: readonly ["fuchsia", "indigo", "magenta", "purple", "seafoam", "yellow", "chartreuse", "celery", "cyan"];
16
+ export declare const STATUSLIGHT_VARIANTS_COLOR_S2: readonly ["fuchsia", "indigo", "magenta", "purple", "seafoam", "yellow", "chartreuse", "celery", "cyan", "pink", "turquoise", "brown", "cinnamon", "silver"];
17
+ export declare const STATUSLIGHT_VARIANTS_S1: readonly ["neutral", "info", "positive", "negative", "notice", "accent", "fuchsia", "indigo", "magenta", "purple", "seafoam", "yellow", "chartreuse", "celery", "cyan"];
18
+ export declare const STATUSLIGHT_VARIANTS_S2: readonly ["neutral", "info", "positive", "negative", "notice", "fuchsia", "indigo", "magenta", "purple", "seafoam", "yellow", "chartreuse", "celery", "cyan", "pink", "turquoise", "brown", "cinnamon", "silver"];
19
+ export type StatusLightVariantS1 = (typeof STATUSLIGHT_VARIANTS_S1)[number];
20
+ export type StatusLightVariantS2 = (typeof STATUSLIGHT_VARIANTS_S2)[number];
21
+ export type StatusLightVariant = StatusLightVariantS1 | StatusLightVariantS2;
@@ -0,0 +1,45 @@
1
+ const T = [
2
+ "neutral",
3
+ "info",
4
+ "positive",
5
+ "negative",
6
+ "notice"
7
+ ], A = [
8
+ ...T,
9
+ "accent"
10
+ ], n = [
11
+ ...T
12
+ ], S = [
13
+ "fuchsia",
14
+ "indigo",
15
+ "magenta",
16
+ "purple",
17
+ "seafoam",
18
+ "yellow",
19
+ "chartreuse",
20
+ "celery",
21
+ "cyan"
22
+ ], _ = [
23
+ ...S,
24
+ "pink",
25
+ "turquoise",
26
+ "brown",
27
+ "cinnamon",
28
+ "silver"
29
+ ], e = [
30
+ ...A,
31
+ ...S
32
+ ], o = [
33
+ ...n,
34
+ ..._
35
+ ];
36
+ export {
37
+ S as STATUSLIGHT_VARIANTS_COLOR_S1,
38
+ _ as STATUSLIGHT_VARIANTS_COLOR_S2,
39
+ e as STATUSLIGHT_VARIANTS_S1,
40
+ o as STATUSLIGHT_VARIANTS_S2,
41
+ T as STATUSLIGHT_VARIANTS_SEMANTIC,
42
+ A as STATUSLIGHT_VARIANTS_SEMANTIC_S1,
43
+ n as STATUSLIGHT_VARIANTS_SEMANTIC_S2
44
+ };
45
+ //# sourceMappingURL=StatusLight.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StatusLight.types.js","sources":["../../../components/status-light/StatusLight.types.ts"],"sourcesContent":["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/*\n * @todo The S1 types can be removed once we are no longer maintaining 1st-gen.\n */\n\nexport const STATUSLIGHT_VARIANTS_SEMANTIC = [\n 'neutral',\n 'info',\n 'positive',\n 'negative',\n 'notice',\n] as const;\n\nexport const STATUSLIGHT_VARIANTS_SEMANTIC_S1 = [\n ...STATUSLIGHT_VARIANTS_SEMANTIC,\n 'accent',\n] as const;\n\nexport const STATUSLIGHT_VARIANTS_SEMANTIC_S2 = [\n ...STATUSLIGHT_VARIANTS_SEMANTIC,\n] as const;\n\nexport const STATUSLIGHT_VARIANTS_COLOR_S1 = [\n 'fuchsia',\n 'indigo',\n 'magenta',\n 'purple',\n 'seafoam',\n 'yellow',\n 'chartreuse',\n 'celery',\n 'cyan',\n] as const;\n\nexport const STATUSLIGHT_VARIANTS_COLOR_S2 = [\n ...STATUSLIGHT_VARIANTS_COLOR_S1,\n 'pink',\n 'turquoise',\n 'brown',\n 'cinnamon',\n 'silver',\n] as const;\n\nexport const STATUSLIGHT_VARIANTS_S1 = [\n ...STATUSLIGHT_VARIANTS_SEMANTIC_S1,\n ...STATUSLIGHT_VARIANTS_COLOR_S1,\n] as const;\n\nexport const STATUSLIGHT_VARIANTS_S2 = [\n ...STATUSLIGHT_VARIANTS_SEMANTIC_S2,\n ...STATUSLIGHT_VARIANTS_COLOR_S2,\n] as const;\n\nexport type StatusLightVariantS1 = (typeof STATUSLIGHT_VARIANTS_S1)[number];\nexport type StatusLightVariantS2 = (typeof STATUSLIGHT_VARIANTS_S2)[number];\nexport type StatusLightVariant = StatusLightVariantS1 | StatusLightVariantS2;\n"],"names":["STATUSLIGHT_VARIANTS_SEMANTIC","STATUSLIGHT_VARIANTS_SEMANTIC_S1","STATUSLIGHT_VARIANTS_SEMANTIC_S2","STATUSLIGHT_VARIANTS_COLOR_S1","STATUSLIGHT_VARIANTS_COLOR_S2","STATUSLIGHT_VARIANTS_S1","STATUSLIGHT_VARIANTS_S2"],"mappings":"AAgBO,MAAMA,IAAgC;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,GAEaC,IAAmC;AAAA,EAC5C,GAAGD;AAAA,EACH;AACJ,GAEaE,IAAmC;AAAA,EAC5C,GAAGF;AACP,GAEaG,IAAgC;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,GAEaC,IAAgC;AAAA,EACzC,GAAGD;AAAA,EACH;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,GAEaE,IAA0B;AAAA,EACnC,GAAGJ;AAAA,EACH,GAAGE;AACP,GAEaG,IAA0B;AAAA,EACnC,GAAGJ;AAAA,EACH,GAAGE;AACP;"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Copyright 2025 Adobe. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+ export * from './StatusLight.base.js';
13
+ export * from './StatusLight.types.js';
@@ -0,0 +1,13 @@
1
+ import { StatusLightBase as A } from "./StatusLight.base.js";
2
+ import { STATUSLIGHT_VARIANTS_COLOR_S1 as I, STATUSLIGHT_VARIANTS_COLOR_S2 as L, STATUSLIGHT_VARIANTS_S1 as N, STATUSLIGHT_VARIANTS_S2 as R, STATUSLIGHT_VARIANTS_SEMANTIC as G, STATUSLIGHT_VARIANTS_SEMANTIC_S1 as H, STATUSLIGHT_VARIANTS_SEMANTIC_S2 as U } from "./StatusLight.types.js";
3
+ export {
4
+ I as STATUSLIGHT_VARIANTS_COLOR_S1,
5
+ L as STATUSLIGHT_VARIANTS_COLOR_S2,
6
+ N as STATUSLIGHT_VARIANTS_S1,
7
+ R as STATUSLIGHT_VARIANTS_S2,
8
+ G as STATUSLIGHT_VARIANTS_SEMANTIC,
9
+ H as STATUSLIGHT_VARIANTS_SEMANTIC_S1,
10
+ U as STATUSLIGHT_VARIANTS_SEMANTIC_S2,
11
+ A as StatusLightBase
12
+ };
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1,30 @@
1
+ class a {
2
+ constructor(t, { target: s, config: e, callback: i, skipInitial: h }) {
3
+ this.t = /* @__PURE__ */ new Set(), this.o = !1, this.i = !1, this.h = t, s !== null && this.t.add(s ?? t), this.l = e, this.o = h ?? this.o, this.callback = i, window.MutationObserver ? (this.u = new MutationObserver(((o) => {
4
+ this.handleChanges(o), this.h.requestUpdate();
5
+ })), t.addController(this)) : console.warn("MutationController error: browser does not support MutationObserver.");
6
+ }
7
+ handleChanges(t) {
8
+ this.value = this.callback?.(t, this.u);
9
+ }
10
+ hostConnected() {
11
+ for (const t of this.t) this.observe(t);
12
+ }
13
+ hostDisconnected() {
14
+ this.disconnect();
15
+ }
16
+ async hostUpdated() {
17
+ const t = this.u.takeRecords();
18
+ (t.length || !this.o && this.i) && this.handleChanges(t), this.i = !1;
19
+ }
20
+ observe(t) {
21
+ this.t.add(t), this.u.observe(t, this.l), this.i = !0, this.h.requestUpdate();
22
+ }
23
+ disconnect() {
24
+ this.u.disconnect();
25
+ }
26
+ }
27
+ export {
28
+ a as MutationController
29
+ };
30
+ //# sourceMappingURL=mutation-controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutation-controller.js","sources":["../../../../../../../node_modules/@lit-labs/observers/mutation-controller.js"],"sourcesContent":["class t{constructor(t,{target:s,config:i,callback:h,skipInitial:o}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,null!==s&&this.t.add(s??t),this.l=i,this.o=o??this.o,this.callback=h,window.MutationObserver?(this.u=new MutationObserver((t=>{this.handleChanges(t),this.h.requestUpdate()})),t.addController(this)):console.warn(\"MutationController error: browser does not support MutationObserver.\")}handleChanges(t){this.value=this.callback?.(t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){const t=this.u.takeRecords();(t.length||!this.o&&this.i)&&this.handleChanges(t),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}disconnect(){this.u.disconnect()}}export{t as MutationController};\n//# sourceMappingURL=mutation-controller.js.map\n"],"names":["t","i","h","o"],"mappings":"AAAA,MAAMA,EAAC;AAAA,EAAC,YAAY,GAAE,EAAC,QAAO,GAAE,QAAOC,GAAE,UAASC,GAAE,aAAYC,EAAC,GAAE;AAAC,SAAK,IAAE,oBAAI,OAAI,KAAK,IAAE,IAAG,KAAK,IAAE,IAAG,KAAK,IAAE,GAAS,MAAP,QAAU,KAAK,EAAE,IAAI,KAAG,CAAC,GAAE,KAAK,IAAEF,GAAE,KAAK,IAAEE,KAAG,KAAK,GAAE,KAAK,WAASD,GAAE,OAAO,oBAAkB,KAAK,IAAE,IAAI,kBAAkB,CAAAF,MAAG;AAAC,WAAK,cAAcA,CAAC,GAAE,KAAK,EAAE;IAAe,EAAC,GAAG,EAAE,cAAc,IAAI,KAAG,QAAQ,KAAK,sEAAsE;AAAA,EAAC;AAAA,EAAC,cAAc,GAAE;AAAC,SAAK,QAAM,KAAK,WAAW,GAAE,KAAK,CAAC;AAAA,EAAC;AAAA,EAAC,gBAAe;AAAC,eAAU,KAAK,KAAK,EAAE,MAAK,QAAQ,CAAC;AAAA,EAAC;AAAA,EAAC,mBAAkB;AAAC,SAAK,WAAU;AAAA,EAAE;AAAA,EAAC,MAAM,cAAa;AAAC,UAAM,IAAE,KAAK,EAAE,YAAW;AAAG,KAAC,EAAE,UAAQ,CAAC,KAAK,KAAG,KAAK,MAAI,KAAK,cAAc,CAAC,GAAE,KAAK,IAAE;AAAA,EAAE;AAAA,EAAC,QAAQ,GAAE;AAAC,SAAK,EAAE,IAAI,CAAC,GAAE,KAAK,EAAE,QAAQ,GAAE,KAAK,CAAC,GAAE,KAAK,IAAE,IAAG,KAAK,EAAE,cAAa;AAAA,EAAE;AAAA,EAAC,aAAY;AAAC,SAAK,EAAE;EAAY;AAAC;","x_google_ignoreList":[0]}
@@ -0,0 +1,17 @@
1
+ import { LitElement, ReactiveElement } from 'lit';
2
+ type Constructor<T = Record<string, unknown>> = {
3
+ new (...args: any[]): T;
4
+ prototype: T;
5
+ };
6
+ export interface SpectrumInterface {
7
+ shadowRoot: ShadowRoot;
8
+ isLTR: boolean;
9
+ hasVisibleFocusInTree(): boolean;
10
+ dir: 'ltr' | 'rtl';
11
+ }
12
+ export declare function SpectrumMixin<T extends Constructor<ReactiveElement>>(constructor: T): T & Constructor<SpectrumInterface>;
13
+ declare const SpectrumElement_base: typeof LitElement & Constructor<SpectrumInterface>;
14
+ export declare class SpectrumElement extends SpectrumElement_base {
15
+ static VERSION: string;
16
+ }
17
+ export {};