@nvidia-elements/core 2.5.3 → 2.6.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.
- package/CHANGELOG.md +22 -0
- package/dist/accordion/accordion2.js +4 -4
- package/dist/alert/alert-group2.js +1 -1
- package/dist/alert/alert2.js +1 -1
- package/dist/avatar/avatar-group2.js +1 -1
- package/dist/avatar/avatar2.js +1 -1
- package/dist/badge/badge2.js +1 -1
- package/dist/breadcrumb/breadcrumb2.js +1 -1
- package/dist/bundles/index.d.ts +5 -0
- package/dist/bundles/index.js +2 -2
- package/dist/button/button2.js +1 -1
- package/dist/button-group/button-group2.js +1 -1
- package/dist/card/card2.js +4 -4
- package/dist/chat-message/chat-message2.js +1 -1
- package/dist/checkbox/checkbox-group2.js +1 -1
- package/dist/checkbox/checkbox2.js +1 -1
- package/dist/color/color2.js +1 -1
- package/dist/combobox/combobox2.js +1 -1
- package/dist/copy-button/copy-button2.js +1 -1
- package/dist/custom-elements-jsx.d.ts +3 -0
- package/dist/custom-elements-vue.d.ts +3 -0
- package/dist/custom-elements.json +40 -1
- package/dist/data.html.json +5 -0
- package/dist/date/date2.js +1 -1
- package/dist/datetime/datetime2.js +1 -1
- package/dist/dialog/dialog-footer2.js +1 -1
- package/dist/dialog/dialog-header2.js +1 -1
- package/dist/dialog/dialog2.js +1 -1
- package/dist/divider/divider2.js +1 -1
- package/dist/dot/dot2.js +1 -1
- package/dist/drawer/drawer-content2.js +1 -1
- package/dist/drawer/drawer-footer2.js +1 -1
- package/dist/drawer/drawer-header2.js +1 -1
- package/dist/drawer/drawer2.js +1 -1
- package/dist/dropdown/dropdown-footer2.js +1 -1
- package/dist/dropdown/dropdown-header2.js +1 -1
- package/dist/dropdown/dropdown2.js +1 -1
- package/dist/dropdown-group/dropdown-group.js +1 -1
- package/dist/dropzone/dropzone2.js +1 -1
- package/dist/file/file2.js +1 -1
- package/dist/format-bytes/format-bytes2.js +1 -1
- package/dist/format-datetime/format-datetime2.js +1 -1
- package/dist/format-number/format-number2.js +1 -1
- package/dist/format-relative-time/format-relative-time2.js +1 -1
- package/dist/format-truncate/format-truncate2.js +1 -1
- package/dist/forms/control/control2.js +1 -1
- package/dist/forms/control-group/control-group2.js +1 -1
- package/dist/forms/control-message/control-message2.js +1 -1
- package/dist/gauge/gauge2.js +1 -1
- package/dist/gauge/gauge2.js.map +1 -1
- package/dist/grid/cell/cell2.js +1 -1
- package/dist/grid/column/column2.js +1 -1
- package/dist/grid/footer/footer2.js +1 -1
- package/dist/grid/grid2.js +1 -1
- package/dist/grid/header/header2.js +1 -1
- package/dist/grid/placeholder/placeholder2.js +1 -1
- package/dist/grid/row/row2.js +1 -1
- package/dist/icon/icon.d.ts +5 -0
- package/dist/icon/icon2.js +32 -23
- package/dist/icon/icon2.js.map +1 -1
- package/dist/icon-button/icon-button2.js +1 -1
- package/dist/index.js +1 -1
- package/dist/input/input-group2.js +1 -1
- package/dist/input/input2.js +1 -1
- package/dist/internal/services/global.service.js +1 -1
- package/dist/logo/logo2.js +1 -1
- package/dist/menu/menu-item2.js +1 -1
- package/dist/menu/menu2.js +1 -1
- package/dist/month/month2.js +1 -1
- package/dist/notification/notification-group2.js +1 -1
- package/dist/notification/notification2.js +1 -1
- package/dist/page/page-panel/page-panel-content2.js +1 -1
- package/dist/page/page-panel/page-panel-footer2.js +1 -1
- package/dist/page/page-panel/page-panel-header2.js +1 -1
- package/dist/page/page-panel/page-panel2.js +1 -1
- package/dist/page/page.js +1 -1
- package/dist/page/page.js.map +1 -1
- package/dist/page/page2.js +1 -1
- package/dist/page-header/page-header2.js +1 -1
- package/dist/page-loader/page-loader2.js +1 -1
- package/dist/pagination/pagination2.js +1 -1
- package/dist/panel/panel2.js +4 -4
- package/dist/password/password2.js +1 -1
- package/dist/preferences-input/preferences-input2.js +1 -1
- package/dist/progress-bar/progress-bar.js.map +1 -1
- package/dist/progress-bar/progress-bar2.js +1 -1
- package/dist/progress-ring/progress-ring2.js +1 -1
- package/dist/progressive-filter-chip/progressive-filter-chip2.js +1 -1
- package/dist/pulse/pulse2.js +1 -1
- package/dist/radio/radio-group2.js +1 -1
- package/dist/radio/radio2.js +1 -1
- package/dist/range/range2.js +1 -1
- package/dist/resize-handle/resize-handle2.js +1 -1
- package/dist/search/search2.js +1 -1
- package/dist/select/select2.js +1 -1
- package/dist/skeleton/skeleton2.js +1 -1
- package/dist/sort-button/sort-button2.js +1 -1
- package/dist/sparkline/sparkline2.js +1 -1
- package/dist/star-rating/star-rating2.js +1 -1
- package/dist/steps/steps2.js +2 -2
- package/dist/switch/switch-group2.js +1 -1
- package/dist/switch/switch2.js +1 -1
- package/dist/tabs/tabs-group2.js +1 -1
- package/dist/tabs/tabs2.js +2 -2
- package/dist/tag/tag2.js +1 -1
- package/dist/textarea/textarea2.js +1 -1
- package/dist/time/time2.js +1 -1
- package/dist/toast/toast2.js +1 -1
- package/dist/toggletip/toggletip-footer2.js +1 -1
- package/dist/toggletip/toggletip-header2.js +1 -1
- package/dist/toggletip/toggletip2.js +1 -1
- package/dist/toolbar/toolbar2.js +1 -1
- package/dist/tooltip/tooltip2.js +1 -1
- package/dist/tree/tree-node2.js +1 -1
- package/dist/tree/tree2.js +1 -1
- package/dist/week/week2.js +1 -1
- package/package.json +1 -1
package/dist/icon/icon.d.ts
CHANGED
|
@@ -32,6 +32,11 @@ export declare class Icon extends LitElement {
|
|
|
32
32
|
* Sets the direction of the icon. Only supported by expand-panel/collapse-panel (horizontal axis) and arrow/caret/chevron icons (4-directions)
|
|
33
33
|
*/
|
|
34
34
|
direction?: 'up' | 'down' | 'left' | 'right';
|
|
35
|
+
/**
|
|
36
|
+
* Selects the outline or solid form of the named icon. Solid icons use an optional `-solid` asset and fall back to
|
|
37
|
+
* the outline form when that asset is unavailable.
|
|
38
|
+
*/
|
|
39
|
+
appearance?: 'outline' | 'solid';
|
|
35
40
|
/**
|
|
36
41
|
* The name of the icon SVG sprite to render.
|
|
37
42
|
*/
|
package/dist/icon/icon2.js
CHANGED
|
@@ -16,7 +16,7 @@ var f = class e extends o {
|
|
|
16
16
|
static {
|
|
17
17
|
this.metadata = {
|
|
18
18
|
tag: "nve-icon",
|
|
19
|
-
version: "2.
|
|
19
|
+
version: "2.6.1"
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
static {
|
|
@@ -35,18 +35,25 @@ var f = class e extends o {
|
|
|
35
35
|
return customElements.get(e.metadata.tag);
|
|
36
36
|
}
|
|
37
37
|
get #e() {
|
|
38
|
-
|
|
38
|
+
if (!this.name || this.name.endsWith(".svg") || this.appearance !== "solid" || this.name.endsWith("-solid")) return this.name;
|
|
39
|
+
let t = `${this.name}-solid`;
|
|
40
|
+
return e._iconsRegistry[t] ? t : this.name;
|
|
39
41
|
}
|
|
40
|
-
#t
|
|
41
|
-
|
|
42
|
+
get #t() {
|
|
43
|
+
let e = this.#e;
|
|
44
|
+
return c && globalThis._NVE_SSR_ICON_REGISTRY && e ? globalThis._NVE_SSR_ICON_REGISTRY[e] : this.svg;
|
|
45
|
+
}
|
|
46
|
+
#n;
|
|
47
|
+
#r = 0;
|
|
48
|
+
#i = (e) => this.#s(e);
|
|
42
49
|
render() {
|
|
43
|
-
return s`<div internal-host aria-hidden="true"><slot>${u(this.#
|
|
50
|
+
return s`<div internal-host aria-hidden="true"><slot>${u(this.#t)}</slot></div>`;
|
|
44
51
|
}
|
|
45
52
|
connectedCallback() {
|
|
46
|
-
super.connectedCallback(), t(this), this._internals.role = "img", this.#
|
|
53
|
+
super.connectedCallback(), t(this), this._internals.role = "img", this.#a();
|
|
47
54
|
}
|
|
48
55
|
disconnectedCallback() {
|
|
49
|
-
super.disconnectedCallback(), this.#
|
|
56
|
+
super.disconnectedCallback(), this.#o();
|
|
50
57
|
}
|
|
51
58
|
static async add(t) {
|
|
52
59
|
globalThis.customElements?.whenDefined && (await globalThis.customElements.whenDefined(e.metadata.tag), e._iconsRegistry = t, Object.keys(t).forEach((n) => globalThis?.document?.dispatchEvent(new CustomEvent(`${e.metadata.tag}-${n}`, { detail: t[n] }))));
|
|
@@ -59,24 +66,26 @@ var f = class e extends o {
|
|
|
59
66
|
});
|
|
60
67
|
}
|
|
61
68
|
async updated(e) {
|
|
62
|
-
super.updated(e), e.has("name") && (this.#
|
|
69
|
+
super.updated(e), (e.has("name") || e.has("appearance")) && (this.#o(), this.#a()), await this.#c();
|
|
63
70
|
}
|
|
64
|
-
#
|
|
65
|
-
|
|
71
|
+
#a() {
|
|
72
|
+
let t = this.#e;
|
|
73
|
+
!this.isConnected || !t || this.#n || (this.#n = `${e.metadata.tag}-${t}`, globalThis.document?.addEventListener(this.#n, this.#i));
|
|
66
74
|
}
|
|
67
|
-
#
|
|
68
|
-
this.#
|
|
75
|
+
#o() {
|
|
76
|
+
this.#n &&= (globalThis.document?.removeEventListener(this.#n, this.#i), void 0);
|
|
69
77
|
}
|
|
70
|
-
async #
|
|
71
|
-
this.isConnected && e.detail && this.svg !== await e.detail.svg() && this.#
|
|
78
|
+
async #s(e) {
|
|
79
|
+
this.isConnected && e.detail && this.svg !== await e.detail.svg() && this.#c();
|
|
72
80
|
}
|
|
73
|
-
async #
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
e._iconsRegistry[
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
81
|
+
async #c() {
|
|
82
|
+
let t = ++this.#r, n = this.#e;
|
|
83
|
+
if (!n) return;
|
|
84
|
+
let r = await (n.endsWith(".svg") ? fetch(n).then((e) => e.text()) : e._iconsRegistry[n]?.svg() ?? Promise.resolve(""));
|
|
85
|
+
t === this.#r && (e._iconsRegistry[n] = {
|
|
86
|
+
svg: () => r,
|
|
87
|
+
...e._iconsRegistry[n]
|
|
88
|
+
}, this.svg = r);
|
|
80
89
|
}
|
|
81
90
|
};
|
|
82
91
|
a([l({
|
|
@@ -88,13 +97,13 @@ a([l({
|
|
|
88
97
|
})], f.prototype, "size", void 0), a([l({
|
|
89
98
|
type: String,
|
|
90
99
|
reflect: !0
|
|
91
|
-
})], f.prototype, "direction", void 0), a([l({
|
|
100
|
+
})], f.prototype, "direction", void 0), a([l({ type: String })], f.prototype, "appearance", void 0), a([l({
|
|
92
101
|
type: String,
|
|
93
102
|
reflect: !0
|
|
94
103
|
})], f.prototype, "name", void 0), a([d()], f.prototype, "svg", void 0);
|
|
95
104
|
function p(t) {
|
|
96
105
|
if (typeof globalThis.customElements?.get == "function") {
|
|
97
|
-
let n = e(t.metadata.version), i = e("2.
|
|
106
|
+
let n = e(t.metadata.version), i = e("2.6.1");
|
|
98
107
|
n.minor <= i.minor && n.major <= i.major && (t._icons = {
|
|
99
108
|
...t._icons,
|
|
100
109
|
...r
|
package/dist/icon/icon2.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon2.js","names":["#iconString","#asyncRender","#addIconRegistryListener","#removeIconRegistryListener","#render","#iconRegistryEventName","#onIconRegistryUpdate"],"sources":["../../src/icon/icon.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { PropertyValues } from 'lit';\nimport { html, isServer, LitElement } from 'lit';\nimport { unsafeSVG } from 'lit/directives/unsafe-svg.js';\nimport { property } from 'lit/decorators/property.js';\nimport { state } from 'lit/decorators/state.js';\nimport type { Size } from '@nvidia-elements/core/internal';\nimport { attachInternals, parseVersion, useStyles } from '@nvidia-elements/core/internal';\nimport type { IconName, IconSVG } from './icons.js';\nimport { ICON_IMPORTS } from './icons.js';\nimport styles from './icon.css?inline';\n\nexport type { IconName, IconSVG } from './icons.js';\n\ndeclare global {\n var _NVE_SSR_ICON_REGISTRY: Record<string, string> | undefined;\n}\n\n/**\n * @element nve-icon\n * @since 0.1.3\n * @entrypoint \\@nvidia-elements/core/icon\n * @description An icon is a graphic symbol designed to visually show the purpose of an interface element.\n * @documentation https://nvidia.github.io/elements/docs/elements/icon/\n * @cssprop --color\n * @cssprop --width\n * @cssprop --height\n * @slot - Custom SVG content to override the named icon\n * @aria https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img\n */\nexport class Icon extends LitElement {\n /**\n * Visual treatment to represent current support status.\n */\n @property({ type: String, reflect: true }) status?: 'warning' | 'danger' | 'success' | 'accent';\n\n /**\n * Controls the bounding box size of the icon given a t-shirt style value.\n */\n @property({ type: String, reflect: true }) size?: Size | 'xs' | 'xl';\n\n /**\n * Sets the direction of the icon. Only supported by expand-panel/collapse-panel (horizontal axis) and arrow/caret/chevron icons (4-directions)\n */\n @property({ type: String, reflect: true }) direction?: 'up' | 'down' | 'left' | 'right';\n\n /**\n * The name of the icon SVG sprite to render.\n */\n @property({ type: String, reflect: true }) name?: IconName;\n\n @state() private svg: string;\n\n static styles = useStyles([styles]);\n\n static readonly metadata = {\n tag: 'nve-icon',\n version: '0.0.0'\n };\n\n static _icons: { [key: string]: IconSVG } = ICON_IMPORTS;\n\n // eslint-disable-next-line no-restricted-syntax\n private static get _iconsRegistry() {\n return this.registeredIcon?._icons ?? Icon._icons;\n }\n\n // eslint-disable-next-line no-restricted-syntax\n private static set _iconsRegistry(icons: { [key: string]: IconSVG }) {\n this.registeredIcon._icons = { ...Icon._iconsRegistry, ...icons };\n }\n\n // eslint-disable-next-line no-restricted-syntax\n private static get registeredIcon() {\n return customElements.get(Icon.metadata.tag) as typeof Icon;\n }\n\n /** @private */\n declare _internals: ElementInternals;\n\n get #iconString() {\n return isServer && globalThis._NVE_SSR_ICON_REGISTRY ? globalThis._NVE_SSR_ICON_REGISTRY[this.name!] : this.svg;\n }\n\n #iconRegistryEventName?: string;\n\n #onIconRegistryUpdate = (event: Event) => this.#asyncRender(event as CustomEvent<IconSVG>);\n\n render() {\n return html`\n <div internal-host aria-hidden=\"true\"><slot>${unsafeSVG(this.#iconString)}</slot></div>\n `;\n }\n\n connectedCallback() {\n super.connectedCallback();\n attachInternals(this);\n this._internals.role = 'img';\n this.#addIconRegistryListener();\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.#removeIconRegistryListener();\n }\n\n static async add(icons: { [key: string]: IconSVG }) {\n if (globalThis.customElements?.whenDefined) {\n await globalThis.customElements.whenDefined(Icon.metadata.tag);\n Icon._iconsRegistry = icons;\n Object.keys(icons).forEach(name =>\n globalThis?.document?.dispatchEvent(new CustomEvent(`${Icon.metadata.tag}-${name}`, { detail: icons[name] }))\n );\n }\n }\n\n static alias(aliases: { [key: string]: IconName | string }) {\n // whenDefined has no rejection state\n if (globalThis.customElements?.whenDefined) {\n /* eslint-disable @typescript-eslint/no-floating-promises */\n globalThis.customElements.whenDefined(Icon.metadata.tag).then(() => {\n Object.keys(aliases).forEach(alias => {\n Icon._iconsRegistry[alias] = Icon._iconsRegistry[aliases[alias]!]!;\n globalThis?.document?.dispatchEvent(\n new CustomEvent(`${Icon.metadata.tag}-${alias}`, { detail: Icon._iconsRegistry[alias] })\n );\n });\n });\n }\n }\n\n async updated(props: PropertyValues<this>) {\n super.updated(props);\n if (props.has('name')) {\n this.#removeIconRegistryListener();\n this.#addIconRegistryListener();\n }\n await this.#render();\n }\n\n #addIconRegistryListener() {\n if (!this.isConnected || !this.name || this.#iconRegistryEventName) return;\n this.#iconRegistryEventName = `${Icon.metadata.tag}-${this.name}`;\n globalThis.document?.addEventListener(this.#iconRegistryEventName, this.#onIconRegistryUpdate);\n }\n\n #removeIconRegistryListener() {\n if (!this.#iconRegistryEventName) return;\n globalThis.document?.removeEventListener(this.#iconRegistryEventName, this.#onIconRegistryUpdate);\n this.#iconRegistryEventName = undefined;\n }\n\n async #asyncRender(event: CustomEvent<IconSVG>) {\n if (this.isConnected && event.detail && this.svg !== (await event.detail.svg())) {\n this.#render();\n }\n }\n\n async #render() {\n if (!this.name) return;\n const svg = await (this.name.endsWith('.svg')\n ? fetch(this.name).then(res => res.text())\n : (Icon._iconsRegistry[this.name]?.svg() ?? Promise.resolve('')));\n Icon._iconsRegistry[this.name] = { svg: () => svg, ...Icon._iconsRegistry[this.name] };\n this.svg = svg;\n }\n}\n\nexport function mergeIcons(RegisteredIcon: typeof Icon) {\n if (typeof globalThis.customElements?.get === 'function') {\n const registered = parseVersion(RegisteredIcon.metadata.version);\n const current = parseVersion('0.0.0');\n\n // determine if an older icon already registered and if so, merge the icons with the latest svgs\n if (registered.minor <= current.minor && registered.major <= current.major) {\n RegisteredIcon._icons = { ...RegisteredIcon._icons, ...ICON_IMPORTS };\n }\n }\n}\n"],"mappings":";;;;;;;;;;;AAgCA,IAAa,IAAb,MAAa,UAAa,EAAW;;gBAuBnB,EAAU,CAAC,CAAM,CAAC;;;kBAEP;GACzB,KAAK;GACL,SAAS;EACX;;;gBAE4C;;CAG5C,WAAmB,iBAAiB;EAClC,OAAO,KAAK,gBAAgB,UAAU,EAAK;CAC7C;CAGA,WAAmB,eAAe,GAAmC;EACnE,KAAK,eAAe,SAAS;GAAE,GAAG,EAAK;GAAgB,GAAG;EAAM;CAClE;CAGA,WAAmB,iBAAiB;EAClC,OAAO,eAAe,IAAI,EAAK,SAAS,GAAG;CAC7C;CAKA,IAAIA,KAAc;EAChB,OAAO,KAAY,WAAW,yBAAyB,WAAW,uBAAuB,KAAK,QAAS,KAAK;CAC9G;CAEA;CAEA,MAAyB,MAAiB,KAAKC,GAAa,CAA6B;CAEzF,SAAS;EACP,OAAO,CAAI,+CACqC,EAAU,KAAKD,EAAW,EAAE;CAE9E;CAEA,oBAAoB;EAIlB,AAHA,MAAM,kBAAkB,GACxB,EAAgB,IAAI,GACpB,KAAK,WAAW,OAAO,OACvB,KAAKE,GAAyB;CAChC;CAEA,uBAAuB;EAErB,AADA,MAAM,qBAAqB,GAC3B,KAAKC,GAA4B;CACnC;CAEA,aAAa,IAAI,GAAmC;EAClD,AAAI,WAAW,gBAAgB,gBAC7B,MAAM,WAAW,eAAe,YAAY,EAAK,SAAS,GAAG,GAC7D,EAAK,iBAAiB,GACtB,OAAO,KAAK,CAAK,CAAC,CAAC,SAAQ,MACzB,YAAY,UAAU,cAAc,IAAI,YAAY,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Q,QAAQ,EAAE;EAEhE,AADA,EAAK,eAAe,KAAK,QAAQ;GAAE,WAAW;GAAK,GAAG,EAAK,eAAe,KAAK;EAAM,GACrF,KAAK,MAAM;CACb;AACF;GApIG,EAAS;CAAE,MAAM;CAAQ,SAAS;AAAK,CAAC,CAAA,GAAA,EAAA,WAAA,UAAA,KAAA,CAAA,MAKxC,EAAS;CAAE,MAAM;CAAQ,SAAS;AAAK,CAAC,CAAA,GAAA,EAAA,WAAA,QAAA,KAAA,CAAA,MAKxC,EAAS;CAAE,MAAM;CAAQ,SAAS;AAAK,CAAC,CAAA,GAAA,EAAA,WAAA,aAAA,KAAA,CAAA,MAKxC,EAAS;CAAE,MAAM;CAAQ,SAAS;AAAK,CAAC,CAAA,GAAA,EAAA,WAAA,QAAA,KAAA,CAAA,MAExC,EAAM,CAAA,GAAA,EAAA,WAAA,OAAA,KAAA,CAAA;AAqHT,SAAgB,EAAW,GAA6B;CACtD,IAAI,OAAO,WAAW,gBAAgB,OAAQ,YAAY;EACxD,IAAM,IAAa,EAAa,EAAe,SAAS,OAAO,GACzD,IAAU,EAAa,OAAO;EAGpC,AAAI,EAAW,SAAS,EAAQ,SAAS,EAAW,SAAS,EAAQ,UACnE,EAAe,SAAS;GAAE,GAAG,EAAe;GAAQ,GAAG;EAAa;CAExE;AACF"}
|
|
1
|
+
{"version":3,"file":"icon2.js","names":["#resolvedIconName","#iconString","#asyncRender","#addIconRegistryListener","#removeIconRegistryListener","#render","#iconRegistryEventName","#onIconRegistryUpdate","#renderRequest"],"sources":["../../src/icon/icon.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { PropertyValues } from 'lit';\nimport { html, isServer, LitElement } from 'lit';\nimport { unsafeSVG } from 'lit/directives/unsafe-svg.js';\nimport { property } from 'lit/decorators/property.js';\nimport { state } from 'lit/decorators/state.js';\nimport type { Size } from '@nvidia-elements/core/internal';\nimport { attachInternals, parseVersion, useStyles } from '@nvidia-elements/core/internal';\nimport type { IconName, IconSVG } from './icons.js';\nimport { ICON_IMPORTS } from './icons.js';\nimport styles from './icon.css?inline';\n\nexport type { IconName, IconSVG } from './icons.js';\n\ndeclare global {\n var _NVE_SSR_ICON_REGISTRY: Record<string, string> | undefined;\n}\n\n/**\n * @element nve-icon\n * @since 0.1.3\n * @entrypoint \\@nvidia-elements/core/icon\n * @description An icon is a graphic symbol designed to visually show the purpose of an interface element.\n * @documentation https://nvidia.github.io/elements/docs/elements/icon/\n * @cssprop --color\n * @cssprop --width\n * @cssprop --height\n * @slot - Custom SVG content to override the named icon\n * @aria https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img\n */\nexport class Icon extends LitElement {\n /**\n * Visual treatment to represent current support status.\n */\n @property({ type: String, reflect: true }) status?: 'warning' | 'danger' | 'success' | 'accent';\n\n /**\n * Controls the bounding box size of the icon given a t-shirt style value.\n */\n @property({ type: String, reflect: true }) size?: Size | 'xs' | 'xl';\n\n /**\n * Sets the direction of the icon. Only supported by expand-panel/collapse-panel (horizontal axis) and arrow/caret/chevron icons (4-directions)\n */\n @property({ type: String, reflect: true }) direction?: 'up' | 'down' | 'left' | 'right';\n\n /**\n * Selects the outline or solid form of the named icon. Solid icons use an optional `-solid` asset and fall back to\n * the outline form when that asset is unavailable.\n */\n @property({ type: String }) appearance?: 'outline' | 'solid';\n\n /**\n * The name of the icon SVG sprite to render.\n */\n @property({ type: String, reflect: true }) name?: IconName;\n\n @state() private svg: string;\n\n static styles = useStyles([styles]);\n\n static readonly metadata = {\n tag: 'nve-icon',\n version: '0.0.0'\n };\n\n static _icons: { [key: string]: IconSVG } = ICON_IMPORTS;\n\n // eslint-disable-next-line no-restricted-syntax\n private static get _iconsRegistry() {\n return this.registeredIcon?._icons ?? Icon._icons;\n }\n\n // eslint-disable-next-line no-restricted-syntax\n private static set _iconsRegistry(icons: { [key: string]: IconSVG }) {\n this.registeredIcon._icons = { ...Icon._iconsRegistry, ...icons };\n }\n\n // eslint-disable-next-line no-restricted-syntax\n private static get registeredIcon() {\n return customElements.get(Icon.metadata.tag) as typeof Icon;\n }\n\n /** @private */\n declare _internals: ElementInternals;\n\n get #resolvedIconName() {\n if (!this.name || this.name.endsWith('.svg') || this.appearance !== 'solid' || this.name.endsWith('-solid')) {\n return this.name;\n }\n\n const solidName = `${this.name}-solid`;\n return Icon._iconsRegistry[solidName] ? solidName : this.name;\n }\n\n get #iconString() {\n const iconName = this.#resolvedIconName;\n return isServer && globalThis._NVE_SSR_ICON_REGISTRY && iconName\n ? globalThis._NVE_SSR_ICON_REGISTRY[iconName]\n : this.svg;\n }\n\n #iconRegistryEventName?: string;\n\n #renderRequest = 0;\n\n #onIconRegistryUpdate = (event: Event) => this.#asyncRender(event as CustomEvent<IconSVG>);\n\n render() {\n return html`\n <div internal-host aria-hidden=\"true\"><slot>${unsafeSVG(this.#iconString)}</slot></div>\n `;\n }\n\n connectedCallback() {\n super.connectedCallback();\n attachInternals(this);\n this._internals.role = 'img';\n this.#addIconRegistryListener();\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.#removeIconRegistryListener();\n }\n\n static async add(icons: { [key: string]: IconSVG }) {\n if (globalThis.customElements?.whenDefined) {\n await globalThis.customElements.whenDefined(Icon.metadata.tag);\n Icon._iconsRegistry = icons;\n Object.keys(icons).forEach(name =>\n globalThis?.document?.dispatchEvent(new CustomEvent(`${Icon.metadata.tag}-${name}`, { detail: icons[name] }))\n );\n }\n }\n\n static alias(aliases: { [key: string]: IconName | string }) {\n // whenDefined has no rejection state\n if (globalThis.customElements?.whenDefined) {\n /* eslint-disable @typescript-eslint/no-floating-promises */\n globalThis.customElements.whenDefined(Icon.metadata.tag).then(() => {\n Object.keys(aliases).forEach(alias => {\n Icon._iconsRegistry[alias] = Icon._iconsRegistry[aliases[alias]!]!;\n globalThis?.document?.dispatchEvent(\n new CustomEvent(`${Icon.metadata.tag}-${alias}`, { detail: Icon._iconsRegistry[alias] })\n );\n });\n });\n }\n }\n\n async updated(props: PropertyValues<this>) {\n super.updated(props);\n if (props.has('name') || props.has('appearance')) {\n this.#removeIconRegistryListener();\n this.#addIconRegistryListener();\n }\n await this.#render();\n }\n\n #addIconRegistryListener() {\n const iconName = this.#resolvedIconName;\n if (!this.isConnected || !iconName || this.#iconRegistryEventName) return;\n this.#iconRegistryEventName = `${Icon.metadata.tag}-${iconName}`;\n globalThis.document?.addEventListener(this.#iconRegistryEventName, this.#onIconRegistryUpdate);\n }\n\n #removeIconRegistryListener() {\n if (!this.#iconRegistryEventName) return;\n globalThis.document?.removeEventListener(this.#iconRegistryEventName, this.#onIconRegistryUpdate);\n this.#iconRegistryEventName = undefined;\n }\n\n async #asyncRender(event: CustomEvent<IconSVG>) {\n if (this.isConnected && event.detail && this.svg !== (await event.detail.svg())) {\n this.#render();\n }\n }\n\n async #render() {\n const renderRequest = ++this.#renderRequest;\n const iconName = this.#resolvedIconName;\n if (!iconName) return;\n const svg = await (iconName.endsWith('.svg')\n ? fetch(iconName).then(res => res.text())\n : (Icon._iconsRegistry[iconName]?.svg() ?? Promise.resolve('')));\n if (renderRequest !== this.#renderRequest) return;\n Icon._iconsRegistry[iconName] = { svg: () => svg, ...Icon._iconsRegistry[iconName] };\n this.svg = svg;\n }\n}\n\nexport function mergeIcons(RegisteredIcon: typeof Icon) {\n if (typeof globalThis.customElements?.get === 'function') {\n const registered = parseVersion(RegisteredIcon.metadata.version);\n const current = parseVersion('0.0.0');\n\n // determine if an older icon already registered and if so, merge the icons with the latest svgs\n if (registered.minor <= current.minor && registered.major <= current.major) {\n RegisteredIcon._icons = { ...RegisteredIcon._icons, ...ICON_IMPORTS };\n }\n }\n}\n"],"mappings":";;;;;;;;;;;AAgCA,IAAa,IAAb,MAAa,UAAa,EAAW;;gBA6BnB,EAAU,CAAC,CAAM,CAAC;;;kBAEP;GACzB,KAAK;GACL,SAAS;EACX;;;gBAE4C;;CAG5C,WAAmB,iBAAiB;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;EAAU,GACnF,KAAK,MAAM;CACb;AACF;GA5JG,EAAS;CAAE,MAAM;CAAQ,SAAS;AAAK,CAAC,CAAA,GAAA,EAAA,WAAA,UAAA,KAAA,CAAA,MAKxC,EAAS;CAAE,MAAM;CAAQ,SAAS;AAAK,CAAC,CAAA,GAAA,EAAA,WAAA,QAAA,KAAA,CAAA,MAKxC,EAAS;CAAE,MAAM;CAAQ,SAAS;AAAK,CAAC,CAAA,GAAA,EAAA,WAAA,aAAA,KAAA,CAAA,MAMxC,EAAS,EAAE,MAAM,OAAO,CAAC,CAAA,GAAA,EAAA,WAAA,cAAA,KAAA,CAAA,MAKzB,EAAS;CAAE,MAAM;CAAQ,SAAS;AAAK,CAAC,CAAA,GAAA,EAAA,WAAA,QAAA,KAAA,CAAA,MAExC,EAAM,CAAA,GAAA,EAAA,WAAA,OAAA,KAAA,CAAA;AAuIT,SAAgB,EAAW,GAA6B;CACtD,IAAI,OAAO,WAAW,gBAAgB,OAAQ,YAAY;EACxD,IAAM,IAAa,EAAa,EAAe,SAAS,OAAO,GACzD,IAAU,EAAa,OAAO;EAGpC,AAAI,EAAW,SAAS,EAAQ,SAAS,EAAW,SAAS,EAAQ,UACnE,EAAe,SAAS;GAAE,GAAG,EAAe;GAAQ,GAAG;EAAa;CAExE;AACF"}
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { I18nService as e } from "./internal/services/i18n.service.js";
|
|
|
2
2
|
import { getThemeTokens as t } from "./internal/utils/dom.js";
|
|
3
3
|
import { statusIcons as n } from "./internal/types/index.js";
|
|
4
4
|
//#region src/index.ts
|
|
5
|
-
var r = "2.
|
|
5
|
+
var r = "2.6.1", i = "@nvidia-elements";
|
|
6
6
|
//#endregion
|
|
7
7
|
export { e as I18nService, i as SCOPE, r as VERSION, t as getThemeTokens, n as statusIcons };
|
|
8
8
|
|
package/dist/input/input2.js
CHANGED
|
@@ -19,7 +19,7 @@ var a = class {
|
|
|
19
19
|
i18nRegistry: {},
|
|
20
20
|
audit: {}
|
|
21
21
|
}
|
|
22
|
-
}, globalThis.NVE_ELEMENTS.state.versions = Array.from(/* @__PURE__ */ new Set([...globalThis.NVE_ELEMENTS.state.versions, "2.
|
|
22
|
+
}, globalThis.NVE_ELEMENTS.state.versions = Array.from(/* @__PURE__ */ new Set([...globalThis.NVE_ELEMENTS.state.versions, "2.6.1"])), globalThis.NVE_ELEMENTS.state.scopedRegistry ??= {}, globalThis.NVE_ELEMENTS.state.scopedRegistry["2.6.1"] = i(), globalThis.NVE_ELEMENTS.state.versions.length > 1 && globalThis.NVE_ELEMENTS.state.env !== "production" && console.warn(e(), `\n\n${JSON.stringify(globalThis.NVE_ELEMENTS.state.versions, null, 2)}`);
|
|
23
23
|
}
|
|
24
24
|
get state() {
|
|
25
25
|
return globalThis.NVE_ELEMENTS.state;
|
package/dist/logo/logo2.js
CHANGED
package/dist/menu/menu-item2.js
CHANGED
package/dist/menu/menu2.js
CHANGED
package/dist/month/month2.js
CHANGED
package/dist/page/page.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/page/page.css?inline
|
|
2
|
-
var e = ":host{--background: var(--nve-sys-layer-canvas-background);--color: var(--nve-sys-layer-canvas-color);--gap: var(--nve-ref-space-md);--padding: 0;display:block;height:
|
|
2
|
+
var e = ":host{--background: var(--nve-sys-layer-canvas-background);--color: var(--nve-sys-layer-canvas-color);--gap: var(--nve-ref-space-md);--padding: 0;display:block;height:100dvh;width:stretch;overflow:hidden}:host([document-scroll]){height:auto!important}[internal-host]{background:var(--background);color:var(--color);height:100%;display:grid;grid-template-rows:auto auto 1fr auto auto;grid-template-columns:auto auto 1fr auto auto;grid-template-areas:\"header header header header header\" \"left-aside subheader subheader subheader right-aside\" \"left-aside left main right right-aside\" \"left-aside left bottom right right-aside\" \"left-aside subfooter subfooter subfooter right-aside\" \"footer footer footer footer footer\"}slot{display:flex;background:var(--background);scroll-behavior:smooth;scrollbar-color:var(--nve-sys-scrollbar-thumb-color) var(--nve-sys-scrollbar-track-color);scrollbar-width:var(--nve-sys-scrollbar-width)}[name=header]{grid-area:header;flex-direction:column}[name=subheader]{grid-area:subheader;flex-direction:column}[name=left]{grid-area:left;height:100%}[name=right]{grid-area:right;height:100%}[name=bottom]{grid-area:bottom;height:fit-content;flex-direction:column}[name=left-aside],[name=right-aside]{position:relative;z-index:1}[name=left-aside]{grid-area:left-aside;height:100%}[name=right-aside]{grid-area:right-aside;height:100%}[name=subfooter]{grid-area:subfooter}[name=footer]{grid-area:footer}::slotted(nve-page-panel){--border: 0}::slotted(nve-toolbar[slot=\"footer\"]),::slotted(nve-toolbar[slot=\"subfooter\"]),::slotted(nve-page-panel[slot=\"footer\"]),::slotted(nve-page-panel[slot=\"subfooter\"]){border-block-start:var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted);width:100%}::slotted(nve-page-panel[slot=\"left\"]),::slotted(nve-page-panel[slot=\"left-aside\"]),::slotted(nve-toolbar[slot=\"left-aside\"]){border-inline-end:var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted)}::slotted(nve-page-panel[slot=\"right\"]),::slotted(nve-page-panel[slot=\"right-aside\"]),::slotted(nve-toolbar[slot=\"right-aside\"]){border-inline-start:var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted)}::slotted(nve-page-panel[slot=\"bottom\"]){border-block-start:var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted)}::slotted(nve-page-panel[slot=\"subheader\"]),::slotted(nve-toolbar[slot=\"subheader\"]){border-block-end:var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted)}::slotted(nve-toolbar){--border-radius: 0;--box-shadow: none}::slotted(nve-toolbar[slot=\"subheader\"]) ::slotted(nve-toolbar[slot=\"subfooter\"]),::slotted(nve-toolbar[slot=\"footer\"]){height:fit-content}::slotted(nve-toolbar[slot=\"left-aside\"]),::slotted(nve-toolbar[slot=\"right-aside\"]){--min-height: 100%}::slotted(nve-resize-handle[slot]){--background: transparent}::slotted(nve-resize-handle[slot=\"left\"]){margin-inline-start:calc(-1 * var(--nve-ref-border-width-md))}::slotted(nve-resize-handle[slot=\"right\"]){margin-inline-end:calc(-1 * var(--nve-ref-border-width-md))}slot:not([name]){gap:var(--gap);padding:var(--padding);display:flex;flex-direction:column;align-items:start;overflow:auto;slot{display:contents}}::slotted(main){width:100%;height:100%}";
|
|
3
3
|
//#endregion
|
|
4
4
|
export { e as default };
|
|
5
5
|
|
package/dist/page/page.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.js","names":[],"sources":["../../src/page/page.css?inline"],"sourcesContent":["/* SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. */\n/* SPDX-License-Identifier: Apache-2.0 */\n\n:host {\n --background: var(--nve-sys-layer-canvas-background);\n --color: var(--nve-sys-layer-canvas-color);\n --gap: var(--nve-ref-space-md);\n --padding: 0;\n display: block;\n height:
|
|
1
|
+
{"version":3,"file":"page.js","names":[],"sources":["../../src/page/page.css?inline"],"sourcesContent":["/* SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. */\n/* SPDX-License-Identifier: Apache-2.0 */\n\n:host {\n --background: var(--nve-sys-layer-canvas-background);\n --color: var(--nve-sys-layer-canvas-color);\n --gap: var(--nve-ref-space-md);\n --padding: 0;\n display: block;\n height: 100dvh;\n width: stretch;\n overflow: hidden;\n}\n\n:host([document-scroll]) {\n height: auto !important;\n}\n\n[internal-host] {\n background: var(--background);\n color: var(--color);\n height: 100%;\n display: grid;\n grid-template-rows: auto auto 1fr auto auto;\n grid-template-columns: auto auto 1fr auto auto;\n grid-template-areas:\n 'header header header header header'\n 'left-aside subheader subheader subheader right-aside'\n 'left-aside left main right right-aside'\n 'left-aside left bottom right right-aside'\n 'left-aside subfooter subfooter subfooter right-aside'\n 'footer footer footer footer footer';\n}\n\nslot {\n display: flex;\n background: var(--background);\n scroll-behavior: smooth;\n scrollbar-color: var(--nve-sys-scrollbar-thumb-color) var(--nve-sys-scrollbar-track-color);\n scrollbar-width: var(--nve-sys-scrollbar-width);\n}\n\n[name='header'] {\n grid-area: header;\n flex-direction: column;\n}\n\n[name='subheader'] {\n grid-area: subheader;\n flex-direction: column;\n}\n\n[name='left'] {\n grid-area: left;\n height: 100%;\n}\n\n[name='right'] {\n grid-area: right;\n height: 100%;\n}\n\n[name='bottom'] {\n grid-area: bottom;\n height: fit-content;\n flex-direction: column;\n}\n\n/** ensures sliding panels transition \"under\" aside slot */\n[name='left-aside'],\n[name='right-aside'] {\n position: relative;\n z-index: 1;\n}\n\n[name='left-aside'] {\n grid-area: left-aside;\n height: 100%;\n}\n\n[name='right-aside'] {\n grid-area: right-aside;\n height: 100%;\n}\n\n[name='subfooter'] {\n grid-area: subfooter;\n}\n\n[name='footer'] {\n grid-area: footer;\n}\n\n::slotted(nve-page-panel) {\n --border: 0;\n}\n\n::slotted(nve-toolbar[slot='footer']),\n::slotted(nve-toolbar[slot='subfooter']),\n::slotted(nve-page-panel[slot='footer']),\n::slotted(nve-page-panel[slot='subfooter']) {\n border-block-start: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted);\n width: 100%;\n}\n\n::slotted(nve-page-panel[slot='left']),\n::slotted(nve-page-panel[slot='left-aside']),\n::slotted(nve-toolbar[slot='left-aside']) {\n border-inline-end: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted);\n}\n\n::slotted(nve-page-panel[slot='right']),\n::slotted(nve-page-panel[slot='right-aside']),\n::slotted(nve-toolbar[slot='right-aside']) {\n border-inline-start: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted);\n}\n\n::slotted(nve-page-panel[slot='bottom']) {\n border-block-start: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted);\n}\n\n::slotted(nve-page-panel[slot='subheader']),\n::slotted(nve-toolbar[slot='subheader']) {\n border-block-end: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted);\n}\n\n::slotted(nve-toolbar) {\n --border-radius: 0;\n --box-shadow: none;\n}\n\n::slotted(nve-toolbar[slot='subheader']) ::slotted(nve-toolbar[slot='subfooter']),\n::slotted(nve-toolbar[slot='footer']) {\n height: fit-content;\n}\n\n::slotted(nve-toolbar[slot='left-aside']),\n::slotted(nve-toolbar[slot='right-aside']) {\n --min-height: 100%;\n}\n\n::slotted(nve-resize-handle[slot]) {\n --background: transparent;\n}\n\n::slotted(nve-resize-handle[slot='left']) {\n margin-inline-start: calc(-1 * var(--nve-ref-border-width-md));\n}\n\n::slotted(nve-resize-handle[slot='right']) {\n margin-inline-end: calc(-1 * var(--nve-ref-border-width-md));\n}\n\nslot:not([name]) {\n gap: var(--gap);\n padding: var(--padding);\n display: flex;\n flex-direction: column;\n align-items: start;\n overflow: auto;\n\n slot {\n display: contents;\n }\n}\n\n::slotted(main) {\n width: 100%;\n height: 100%;\n}\n"],"mappings":""}
|
package/dist/page/page2.js
CHANGED
package/dist/panel/panel2.js
CHANGED
|
@@ -21,7 +21,7 @@ var g = class extends f {
|
|
|
21
21
|
static {
|
|
22
22
|
this.metadata = {
|
|
23
23
|
tag: "nve-panel-header",
|
|
24
|
-
version: "2.
|
|
24
|
+
version: "2.6.1"
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
@@ -37,7 +37,7 @@ var g = class extends f {
|
|
|
37
37
|
static {
|
|
38
38
|
this.metadata = {
|
|
39
39
|
tag: "nve-panel-content",
|
|
40
|
-
version: "2.
|
|
40
|
+
version: "2.6.1"
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
@@ -50,7 +50,7 @@ var g = class extends f {
|
|
|
50
50
|
static {
|
|
51
51
|
this.metadata = {
|
|
52
52
|
tag: "nve-panel-footer",
|
|
53
|
-
version: "2.
|
|
53
|
+
version: "2.6.1"
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
@@ -69,7 +69,7 @@ var g = class extends f {
|
|
|
69
69
|
static {
|
|
70
70
|
this.metadata = {
|
|
71
71
|
tag: "nve-panel",
|
|
72
|
-
version: "2.
|
|
72
|
+
version: "2.6.1"
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
static {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress-bar.js","names":[],"sources":["../../src/progress-bar/progress-bar.css?inline"],"sourcesContent":["/* SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. */\n/* SPDX-License-Identifier: Apache-2.0 */\n\n:host {\n display: flex;\n width: 100%;\n line-height: 0;\n --height: var(--nve-ref-size-200);\n --opacity: 1;\n --accent-color: var(--nve-sys-interaction-color);\n --background: var(--nve-sys-interaction-background);\n}\n\n:host([status='accent']) {\n --accent-color: var(--nve-sys-accent-secondary-background);\n}\n\n:host([status='success']) {\n --accent-color: var(--nve-sys-support-success-color);\n}\n\n:host([status='warning']) {\n --accent-color: var(--nve-sys-support-warning-color);\n}\n\n:host([status='danger']) {\n --accent-color: var(--nve-sys-support-danger-color);\n}\n\nprogress {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n background: var(--background);\n border-radius: var(--nve-ref-border-radius-full);\n height: var(--height);\n opacity: var(--opacity);\n width: 100%;\n}\n\nprogress[value]::-webkit-progress-bar {\n background-color: inherit;\n border-radius: var(--nve-ref-border-radius-full);\n}\n\nprogress[value]::-webkit-progress-value {\n border-radius: var(--nve-ref-border-radius-full);\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n background-color: var(--accent-color);\n}\n\nprogress[value].full::-webkit-progress-value {\n border-top-right-radius: var(--nve-ref-border-radius-full);\n border-bottom-right-radius: var(--nve-ref-border-radius-full);\n}\n\nprogress[value].min-width::-webkit-progress-value {\n min-width: 5px;\n}\n\nprogress[value]::-moz-progress-bar {\n border-radius: var(--nve-ref-border-radius-full);\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n background-color: var(--accent-color);\n}\n\n:host(:not([value])) {\n --height: var(--nve-ref-size-100);\n --opacity: 0.75;\n}\n\nprogress.indeterminate {\n --accent-color-faded: color-mix(in srgb, var(--accent-color), transparent 90%);\n --indeterminate-gradient: linear-gradient(to right, var(--accent-color-faded) 10%, var(--accent-color));\n --indeterminate-gradient-reverse: linear-gradient(to left, var(--accent-color-faded) 10%, var(--accent-color));\n will-change: transform;\n background-image: var(--indeterminate-gradient);\n animation: indeterminate-animation calc(var(--nve-ref-animation-duration-400) * 3) infinite
|
|
1
|
+
{"version":3,"file":"progress-bar.js","names":[],"sources":["../../src/progress-bar/progress-bar.css?inline"],"sourcesContent":["/* SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. */\n/* SPDX-License-Identifier: Apache-2.0 */\n\n:host {\n display: flex;\n width: 100%;\n line-height: 0;\n --height: var(--nve-ref-size-200);\n --opacity: 1;\n --accent-color: var(--nve-sys-interaction-color);\n --background: var(--nve-sys-interaction-background);\n}\n\n:host([status='accent']) {\n --accent-color: var(--nve-sys-accent-secondary-background);\n}\n\n:host([status='success']) {\n --accent-color: var(--nve-sys-support-success-color);\n}\n\n:host([status='warning']) {\n --accent-color: var(--nve-sys-support-warning-color);\n}\n\n:host([status='danger']) {\n --accent-color: var(--nve-sys-support-danger-color);\n}\n\nprogress {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n background: var(--background);\n border-radius: var(--nve-ref-border-radius-full);\n height: var(--height);\n opacity: var(--opacity);\n width: 100%;\n}\n\nprogress[value]::-webkit-progress-bar {\n background-color: inherit;\n border-radius: var(--nve-ref-border-radius-full);\n}\n\nprogress[value]::-webkit-progress-value {\n border-radius: var(--nve-ref-border-radius-full);\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n background-color: var(--accent-color);\n}\n\nprogress[value].full::-webkit-progress-value {\n border-top-right-radius: var(--nve-ref-border-radius-full);\n border-bottom-right-radius: var(--nve-ref-border-radius-full);\n}\n\nprogress[value].min-width::-webkit-progress-value {\n min-width: 5px;\n}\n\nprogress[value]::-moz-progress-bar {\n border-radius: var(--nve-ref-border-radius-full);\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n background-color: var(--accent-color);\n}\n\n:host(:not([value])) {\n --height: var(--nve-ref-size-100);\n --opacity: 0.75;\n}\n\nprogress.indeterminate {\n --accent-color-faded: color-mix(in srgb, var(--accent-color), transparent 90%);\n --indeterminate-gradient: linear-gradient(to right, var(--accent-color-faded) 10%, var(--accent-color));\n --indeterminate-gradient-reverse: linear-gradient(to left, var(--accent-color-faded) 10%, var(--accent-color));\n will-change: transform;\n background-image: var(--indeterminate-gradient);\n animation: indeterminate-animation calc(var(--nve-ref-animation-duration-400) * 3) infinite\n cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n\nprogress[value].indeterminate::-webkit-progress-value {\n border-radius: var(--nve-ref-border-radius-none);\n background-color: transparent !important;\n}\n\n@keyframes indeterminate-animation {\n 0% {\n transform: scaleX(0.015);\n transform-origin: 0% 0%;\n }\n\n 25% {\n transform: scaleX(0.4);\n }\n\n 50% {\n transform: scaleX(0.015);\n transform-origin: 100% 0%;\n background-image: var(--indeterminate-gradient);\n }\n\n 50.1% {\n transform: scaleX(0.015);\n transform-origin: 100% 0%;\n background-image: var(--indeterminate-gradient-reverse);\n }\n\n 75% {\n transform: scaleX(0.4);\n }\n\n 100% {\n transform: scaleX(0.015);\n transform-origin: 0% 0%;\n background-image: var(--indeterminate-gradient-reverse);\n }\n}\n"],"mappings":""}
|
package/dist/pulse/pulse2.js
CHANGED
package/dist/radio/radio2.js
CHANGED
package/dist/range/range2.js
CHANGED
package/dist/search/search2.js
CHANGED
package/dist/select/select2.js
CHANGED