nve-designsystem 3.2.0 → 3.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.
- package/chunks/chunk.2PCBEMQZ.js +163 -226
- package/chunks/chunk.36O46B5H.js +15 -15
- package/chunks/chunk.4TUIT776.js +78 -96
- package/chunks/chunk.5JY5FUCG.js +965 -1245
- package/chunks/chunk.5P45LHIX.js +668 -96
- package/chunks/chunk.6CTB5ZDJ.js +107 -100
- package/chunks/chunk.B4BZKR24.js +29 -39
- package/chunks/chunk.D5YQDJ7X.js +122 -166
- package/chunks/chunk.EA437WHD.js +5 -5
- package/chunks/chunk.GI7VDIWX.js +14 -15
- package/chunks/chunk.GMYPQTFK.js +18 -20
- package/chunks/chunk.HVTXQL7M.js +191 -215
- package/chunks/chunk.IKV4VH3T.js +18 -16
- package/chunks/chunk.IVVHNXMC.js +26 -27
- package/chunks/chunk.JHOXTQXA.js +65 -74
- package/chunks/chunk.JXOKFADN.js +63 -90
- package/chunks/chunk.K7JGTRV7.js +24 -23
- package/chunks/chunk.KPLQLAWP.js +132 -147
- package/chunks/chunk.LD4M4QGE.js +61 -74
- package/chunks/chunk.MSKEYBDI.js +53 -71
- package/chunks/chunk.NYIIDP5N.js +39 -45
- package/chunks/chunk.RWUUFNUL.js +91 -114
- package/chunks/chunk.SAPQLUO4.js +249 -228
- package/chunks/chunk.SI4ACBFK.js +139 -5
- package/chunks/chunk.TP2GB2HO.js +361 -460
- package/chunks/chunk.UDWRA64J.js +185 -223
- package/chunks/chunk.URTPIBTY.js +119 -151
- package/chunks/chunk.VESXC477.js +63 -66
- package/chunks/chunk.XA43ZQPC.js +198 -313
- package/chunks/chunk.XQ2OKYYA.js +25 -26
- package/chunks/chunk.XZNBUGX7.js +6 -6
- package/chunks/chunk.YHLNUJ7P.js +93 -116
- package/chunks/chunk.ZH2AND3P.js +340 -399
- package/chunks/chunk.ZL53POKZ.js +61 -156
- package/chunks/chunk.js +20 -0
- package/chunks/class-map.js +49 -45
- package/chunks/decorate.js +105 -0
- package/chunks/directive-helpers.js +5 -7
- package/chunks/if-defined.js +5 -5
- package/chunks/lit.js +525 -0
- package/chunks/live.js +24 -24
- package/chunks/nve-alert.component.js +163 -0
- package/chunks/nve-carousel-item.component.js +36 -0
- package/chunks/nve-carousel.component.js +41 -0
- package/chunks/nve-checkbox-group.component.js +114 -0
- package/chunks/nve-checkbox.component.js +28 -0
- package/chunks/nve-dialog.component.js +39 -0
- package/chunks/nve-divider.component.js +23 -0
- package/chunks/nve-drawer.component.js +40 -0
- package/chunks/nve-dropdown.component.js +83 -0
- package/chunks/nve-input.component.js +80 -0
- package/chunks/nve-label.component.js +89 -0
- package/chunks/nve-menu-item.component.js +35 -0
- package/chunks/nve-menu.component.js +17 -0
- package/chunks/nve-option.component.js +27 -0
- package/chunks/nve-popup.component.js +15 -0
- package/chunks/nve-radio-button.component.js +20 -0
- package/chunks/nve-radio-group.component.js +78 -0
- package/chunks/nve-radio.component.js +18 -0
- package/chunks/nve-select.component.js +58 -0
- package/chunks/nve-skeleton.component.js +20 -0
- package/chunks/nve-spinner.component.js +23 -0
- package/chunks/nve-tooltip.component.js +20 -0
- package/chunks/nve-warning-level.component.js +57 -0
- package/chunks/ref.js +75 -84
- package/chunks/shoelace.js +10006 -0
- package/chunks/static-html.js +27 -0
- package/chunks/unsafe-html.js +24 -20
- package/chunks/updateInvalidProperty.js +7 -7
- package/chunks/watch.js +20 -20
- package/components/nve-accordion/nve-accordion.component.js +24 -30
- package/components/nve-accordion-item/nve-accordion-item.component.js +30 -64
- package/components/nve-accordion-item/nve-accordion-item.styles.js +5 -5
- package/components/nve-alert/nve-alert.component.js +2 -227
- package/components/nve-alert/nve-alert.styles.js +45 -27
- package/components/nve-badge/nve-badge.component.js +41 -45
- package/components/nve-badge/nve-badge.styles.js +33 -31
- package/components/nve-button/nve-button.component.d.ts +110 -10
- package/components/nve-button/nve-button.component.js +146 -39
- package/components/nve-button/nve-button.styles.js +214 -157
- package/components/nve-carousel/nve-carousel.component.js +2 -47
- package/components/nve-carousel/nve-carousel.styles.js +6 -6
- package/components/nve-carousel-item/nve-carousel-item.component.js +2 -40
- package/components/nve-carousel-item/nve-carousel-item.styles.js +5 -5
- package/components/nve-carousel-thumbnail/nve-carousel-thumbnail.component.js +44 -54
- package/components/nve-carousel-thumbnail/nve-carousel-thumbnail.styles.js +5 -5
- package/components/nve-checkbox/nve-checkbox.component.js +2 -34
- package/components/nve-checkbox/nve-checkbox.styles.js +7 -7
- package/components/nve-checkbox-group/nve-checkbox-group.component.js +2 -152
- package/components/nve-checkbox-group/nve-checkbox-group.styles.js +5 -5
- package/components/nve-combobox/nve-combobox.component.js +222 -440
- package/components/nve-combobox/nve-combobox.styles.js +6 -6
- package/components/nve-darkmode-switch/nve-darkmode-switch.component.js +32 -38
- package/components/nve-dialog/nve-dialog-styles.js +6 -6
- package/components/nve-dialog/nve-dialog.component.js +2 -54
- package/components/nve-divider/nve-divider.component.js +2 -30
- package/components/nve-drawer/nve-drawer.component.js +2 -44
- package/components/nve-drawer/nve-drawer.styles.js +6 -6
- package/components/nve-dropdown/nve-dropdown.component.js +2 -79
- package/components/nve-dropdown/nve-dropdown.styles.js +5 -5
- package/components/nve-heading/nve-heading.component.d.ts +29 -0
- package/components/nve-heading/nve-heading.component.js +45 -0
- package/components/nve-heading/nve-heading.styles.d.ts +2 -0
- package/components/nve-heading/nve-heading.styles.js +41 -0
- package/components/nve-icon/nve-icon.component.js +145 -164
- package/components/nve-icon/nve-icon.styles.js +11 -6
- package/components/nve-icon/offline-icons.js +16 -13
- package/components/nve-input/nve-input.component.js +2 -100
- package/components/nve-input/nve-input.styles.js +5 -5
- package/components/nve-label/nve-label.component.js +2 -115
- package/components/nve-label/nve-label.styles.js +5 -5
- package/components/nve-link-card/nve-link-card.component.d.ts +5 -2
- package/components/nve-link-card/nve-link-card.component.js +44 -80
- package/components/nve-link-card/nve-link-card.styles.js +71 -66
- package/components/nve-menu/nve-menu.component.js +2 -22
- package/components/nve-menu/nve-menu.styles.js +5 -5
- package/components/nve-menu-item/nve-menu-item.component.js +2 -43
- package/components/nve-menu-item/nve-menu-item.styles.js +7 -7
- package/components/nve-message-card/nve-message-card.component.js +61 -91
- package/components/nve-message-card/nve-message-card.styles.js +24 -27
- package/components/nve-navigation-card/nve-navigation-card.component.d.ts +52 -0
- package/components/nve-navigation-card/nve-navigation-card.component.js +60 -0
- package/components/nve-navigation-card/nve-navigation-card.styles.d.ts +2 -0
- package/components/nve-navigation-card/nve-navigation-card.styles.js +112 -0
- package/components/nve-option/nve-option.component.js +2 -41
- package/components/nve-option/nve-option.styles.js +5 -5
- package/components/nve-paragraph/nve-paragraph.component.d.ts +26 -0
- package/components/nve-paragraph/nve-paragraph.component.js +26 -0
- package/components/nve-paragraph/nve-paragraph.styles.d.ts +2 -0
- package/components/nve-paragraph/nve-paragraph.styles.js +105 -0
- package/components/nve-popup/nve-popup.component.js +2 -22
- package/components/nve-radio/nve-radio.component.js +2 -23
- package/components/nve-radio/nve-radio.styles.js +5 -5
- package/components/nve-radio-button/nve-radio-button.component.js +2 -25
- package/components/nve-radio-button/nve-radio-button.styles.js +5 -5
- package/components/nve-radio-group/nve-radio-group.component.js +2 -119
- package/components/nve-radio-group/nve-radio-group.styles.js +5 -5
- package/components/nve-relative-time/nve-relative-time.component.js +21 -56
- package/components/nve-relative-time/nve-relative-time.styles.js +5 -5
- package/components/nve-select/nve-select.component.js +2 -80
- package/components/nve-select/nve-select.styles.js +5 -5
- package/components/nve-skeleton/nve-skeleton.component.js +2 -27
- package/components/nve-skeleton/nve-skeleton.styles.js +5 -5
- package/components/nve-spinner/nve-spinner.component.js +2 -31
- package/components/nve-stepper/nve-step/nve-step.component.js +113 -173
- package/components/nve-stepper/nve-step/nve-step.styles.js +12 -12
- package/components/nve-stepper/nve-stepper-mobile.component.js +37 -49
- package/components/nve-stepper/nve-stepper-mobile.styles.js +7 -7
- package/components/nve-stepper/nve-stepper.component.js +94 -139
- package/components/nve-stepper/nve-stepper.styles.js +5 -5
- package/components/nve-switch/nve-switch.component.js +75 -107
- package/components/nve-switch/nve-switch.styles.js +7 -7
- package/components/nve-tab/nve-tab.component.js +30 -42
- package/components/nve-tab/nve-tab.styles.js +7 -7
- package/components/nve-tab-group/nve-tab-group.component.js +180 -260
- package/components/nve-tab-group/nve-tab-group.styles.js +5 -5
- package/components/nve-tab-panel/nve-tab-panel.component.js +21 -31
- package/components/nve-tab-panel/nve-tab-panel.styles.js +5 -5
- package/components/nve-tag/nve-tag.component.d.ts +3 -3
- package/components/nve-tag/nve-tag.component.js +71 -72
- package/components/nve-tag/nve-tag.styles.js +23 -22
- package/components/nve-textarea/nve-textarea.component.d.ts +3 -1
- package/components/nve-textarea/nve-textarea.component.js +112 -173
- package/components/nve-textarea/nve-textarea.styles.js +10 -5
- package/components/nve-tooltip/nve-tooltip.component.js +2 -30
- package/components/nve-tooltip/nve-tooltip.styles.js +5 -5
- package/components/nve-warning-level/nve-warning-level.component.js +2 -78
- package/components/nve-warning-level/nve-warning-level.styles.js +7 -7
- package/css/global.css +13 -55
- package/css/nve.css +1048 -393
- package/css/nve_dark.css +406 -305
- package/css/rme.css +1050 -395
- package/css/rme_dark.css +408 -307
- package/css/shoelace-styles.css +539 -0
- package/css/varsom.css +1046 -391
- package/css/varsom_dark.css +404 -303
- package/custom-elements.json +2905 -12389
- package/fonts/LICENSE.txt +37 -0
- package/fonts/SourceSans3-VariableFont_wght.woff2 +0 -0
- package/interfaces/NveComponent.interface.js +0 -1
- package/nve-designsystem.d.ts +5 -0
- package/nve-designsystem.js +46 -86
- package/package.json +26 -8
- package/registerIcons/systemLibraryCustomization.js +23 -91
- package/vite-env.d.js +0 -1
- package/chunks/chunk.3RPBFEDE.js +0 -162
- package/chunks/chunk.JCXLDPQF.js +0 -225
- package/chunks/chunk.JQBT7BOV.js +0 -8446
- package/chunks/chunk.MAQXLKQ7.js +0 -598
- package/chunks/lit-element.js +0 -508
- package/chunks/property.js +0 -37
- package/chunks/query.js +0 -13
- package/chunks/state.js +0 -7
- package/chunks/static.js +0 -26
- package/nve-designsystem.css +0 -1
- package/vscode.css-custom-data.json +0 -621
- package/vscode.html-custom-data.json +0 -2354
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
Source Sans 3
|
|
2
|
+
Designed by Paul D. Hunt
|
|
3
|
+
|
|
4
|
+
License
|
|
5
|
+
Copyright 2010-2020 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries.
|
|
6
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1 . This license is copied below, and is also available with a FAQ at: https://openfontlicense.org
|
|
7
|
+
|
|
8
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
9
|
+
|
|
10
|
+
PREAMBLE
|
|
11
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.
|
|
12
|
+
|
|
13
|
+
The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.
|
|
14
|
+
|
|
15
|
+
DEFINITIONS
|
|
16
|
+
"Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.
|
|
17
|
+
|
|
18
|
+
"Reserved Font Name" refers to any names specified as such after the copyright statement(s).
|
|
19
|
+
|
|
20
|
+
"Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s).
|
|
21
|
+
"Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.
|
|
22
|
+
|
|
23
|
+
"Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.
|
|
24
|
+
|
|
25
|
+
PERMISSION & CONDITIONS
|
|
26
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
|
|
27
|
+
|
|
28
|
+
Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
|
|
29
|
+
Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.
|
|
30
|
+
No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.
|
|
31
|
+
The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.
|
|
32
|
+
The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.
|
|
33
|
+
TERMINATION
|
|
34
|
+
This license becomes null and void if any of the above conditions are not met.
|
|
35
|
+
|
|
36
|
+
DISCLAIMER
|
|
37
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/nve-designsystem.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/** Alle komponenter som er tilgjengelige, i alfabetisk rekkefølge. */
|
|
2
|
+
/** Denne filen blir genererert av pnpm run add-component */
|
|
1
3
|
export { default as NveAccordion } from './components/nve-accordion/nve-accordion.component';
|
|
2
4
|
export { default as NveAccordionItem } from './components/nve-accordion-item/nve-accordion-item.component';
|
|
3
5
|
export { default as NveAlert } from './components/nve-alert/nve-alert.component';
|
|
@@ -14,6 +16,7 @@ export { default as NveDialog } from './components/nve-dialog/nve-dialog.compone
|
|
|
14
16
|
export { default as NveDivider } from './components/nve-divider/nve-divider.component';
|
|
15
17
|
export { default as NveDrawer } from './components/nve-drawer/nve-drawer.component';
|
|
16
18
|
export { default as NveDropdown } from './components/nve-dropdown/nve-dropdown.component';
|
|
19
|
+
export { default as NveHeading } from './components/nve-heading/nve-heading.component';
|
|
17
20
|
export { default as NveIcon } from './components/nve-icon/nve-icon.component';
|
|
18
21
|
export { default as NveInput } from './components/nve-input/nve-input.component';
|
|
19
22
|
export { default as NveLabel } from './components/nve-label/nve-label.component';
|
|
@@ -21,7 +24,9 @@ export { default as NveLinkCard } from './components/nve-link-card/nve-link-card
|
|
|
21
24
|
export { default as NveMenu } from './components/nve-menu/nve-menu.component';
|
|
22
25
|
export { default as NveMenuItem } from './components/nve-menu-item/nve-menu-item.component';
|
|
23
26
|
export { default as NveMessageCard } from './components/nve-message-card/nve-message-card.component';
|
|
27
|
+
export { default as NveNavigationCard } from './components/nve-navigation-card/nve-navigation-card.component';
|
|
24
28
|
export { default as NveOption } from './components/nve-option/nve-option.component';
|
|
29
|
+
export { default as NveParagraph } from './components/nve-paragraph/nve-paragraph.component';
|
|
25
30
|
export { default as NvePopup } from './components/nve-popup/nve-popup.component';
|
|
26
31
|
export { default as NveRadio } from './components/nve-radio/nve-radio.component';
|
|
27
32
|
export { default as NveRadioButton } from './components/nve-radio-button/nve-radio-button.component';
|
package/nve-designsystem.js
CHANGED
|
@@ -1,86 +1,46 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import {
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
u as NveBadge,
|
|
48
|
-
m as NveButton,
|
|
49
|
-
x as NveCarousel,
|
|
50
|
-
N as NveCarouselItem,
|
|
51
|
-
n as NveCarouselThumbnail,
|
|
52
|
-
b as NveCheckbox,
|
|
53
|
-
T as NveCheckboxGroup,
|
|
54
|
-
g as NveCombobox,
|
|
55
|
-
k as NveDarkmodeSwitch,
|
|
56
|
-
I as NveDialog,
|
|
57
|
-
R as NveDivider,
|
|
58
|
-
B as NveDrawer,
|
|
59
|
-
L as NveDropdown,
|
|
60
|
-
P as NveIcon,
|
|
61
|
-
W as NveInput,
|
|
62
|
-
q as NveLabel,
|
|
63
|
-
z as NveLinkCard,
|
|
64
|
-
F as NveMenu,
|
|
65
|
-
J as NveMenuItem,
|
|
66
|
-
Q as NveMessageCard,
|
|
67
|
-
V as NveOption,
|
|
68
|
-
Y as NvePopup,
|
|
69
|
-
_ as NveRadio,
|
|
70
|
-
ee as NveRadioButton,
|
|
71
|
-
ae as NveRadioGroup,
|
|
72
|
-
te as NveRelativeTime,
|
|
73
|
-
le as NveSelect,
|
|
74
|
-
ue as NveSkeleton,
|
|
75
|
-
me as NveSpinner,
|
|
76
|
-
xe as NveStep,
|
|
77
|
-
Ne as NveStepper,
|
|
78
|
-
ne as NveSwitch,
|
|
79
|
-
be as NveTab,
|
|
80
|
-
Te as NveTabGroup,
|
|
81
|
-
ge as NveTabPanel,
|
|
82
|
-
ke as NveTag,
|
|
83
|
-
Ie as NveTextarea,
|
|
84
|
-
Re as NveTooltip,
|
|
85
|
-
Be as NveWarningLevel
|
|
86
|
-
};
|
|
1
|
+
import e from "./components/nve-accordion/nve-accordion.component.js";
|
|
2
|
+
import t from "./components/nve-accordion-item/nve-accordion-item.component.js";
|
|
3
|
+
import { t as n } from "./chunks/nve-alert.component.js";
|
|
4
|
+
import r from "./components/nve-icon/nve-icon.component.js";
|
|
5
|
+
import i from "./components/nve-badge/nve-badge.component.js";
|
|
6
|
+
import a from "./components/nve-button/nve-button.component.js";
|
|
7
|
+
import { t as o } from "./chunks/nve-carousel.component.js";
|
|
8
|
+
import { t as s } from "./chunks/nve-carousel-item.component.js";
|
|
9
|
+
import c from "./components/nve-carousel-thumbnail/nve-carousel-thumbnail.component.js";
|
|
10
|
+
import { t as l } from "./chunks/nve-checkbox.component.js";
|
|
11
|
+
import { t as u } from "./chunks/nve-label.component.js";
|
|
12
|
+
import { t as d } from "./chunks/nve-tooltip.component.js";
|
|
13
|
+
import { t as f } from "./chunks/nve-checkbox-group.component.js";
|
|
14
|
+
import { t as p } from "./chunks/nve-popup.component.js";
|
|
15
|
+
import { t as m } from "./chunks/nve-input.component.js";
|
|
16
|
+
import { t as h } from "./chunks/nve-menu.component.js";
|
|
17
|
+
import { t as g } from "./chunks/nve-option.component.js";
|
|
18
|
+
import _ from "./components/nve-combobox/nve-combobox.component.js";
|
|
19
|
+
import v from "./components/nve-darkmode-switch/nve-darkmode-switch.component.js";
|
|
20
|
+
import { t as y } from "./chunks/nve-dialog.component.js";
|
|
21
|
+
import { t as b } from "./chunks/nve-divider.component.js";
|
|
22
|
+
import { t as x } from "./chunks/nve-drawer.component.js";
|
|
23
|
+
import { t as S } from "./chunks/nve-dropdown.component.js";
|
|
24
|
+
import C from "./components/nve-heading/nve-heading.component.js";
|
|
25
|
+
import w from "./components/nve-link-card/nve-link-card.component.js";
|
|
26
|
+
import { t as T } from "./chunks/nve-menu-item.component.js";
|
|
27
|
+
import E from "./components/nve-message-card/nve-message-card.component.js";
|
|
28
|
+
import D from "./components/nve-navigation-card/nve-navigation-card.component.js";
|
|
29
|
+
import O from "./components/nve-paragraph/nve-paragraph.component.js";
|
|
30
|
+
import { t as k } from "./chunks/nve-radio.component.js";
|
|
31
|
+
import { t as A } from "./chunks/nve-radio-button.component.js";
|
|
32
|
+
import { t as j } from "./chunks/nve-radio-group.component.js";
|
|
33
|
+
import M from "./components/nve-relative-time/nve-relative-time.component.js";
|
|
34
|
+
import { t as N } from "./chunks/nve-select.component.js";
|
|
35
|
+
import { t as P } from "./chunks/nve-skeleton.component.js";
|
|
36
|
+
import { t as F } from "./chunks/nve-spinner.component.js";
|
|
37
|
+
import I from "./components/nve-stepper/nve-step/nve-step.component.js";
|
|
38
|
+
import L from "./components/nve-stepper/nve-stepper.component.js";
|
|
39
|
+
import R from "./components/nve-switch/nve-switch.component.js";
|
|
40
|
+
import z from "./components/nve-tab/nve-tab.component.js";
|
|
41
|
+
import B from "./components/nve-tab-group/nve-tab-group.component.js";
|
|
42
|
+
import V from "./components/nve-tab-panel/nve-tab-panel.component.js";
|
|
43
|
+
import H from "./components/nve-tag/nve-tag.component.js";
|
|
44
|
+
import U from "./components/nve-textarea/nve-textarea.component.js";
|
|
45
|
+
import { t as W } from "./chunks/nve-warning-level.component.js";
|
|
46
|
+
export { e as NveAccordion, t as NveAccordionItem, n as NveAlert, i as NveBadge, a as NveButton, o as NveCarousel, s as NveCarouselItem, c as NveCarouselThumbnail, l as NveCheckbox, f as NveCheckboxGroup, _ as NveCombobox, v as NveDarkmodeSwitch, y as NveDialog, b as NveDivider, x as NveDrawer, S as NveDropdown, C as NveHeading, r as NveIcon, m as NveInput, u as NveLabel, w as NveLinkCard, h as NveMenu, T as NveMenuItem, E as NveMessageCard, D as NveNavigationCard, g as NveOption, O as NveParagraph, p as NvePopup, k as NveRadio, A as NveRadioButton, j as NveRadioGroup, M as NveRelativeTime, N as NveSelect, P as NveSkeleton, F as NveSpinner, I as NveStep, L as NveStepper, R as NveSwitch, z as NveTab, B as NveTabGroup, V as NveTabPanel, H as NveTag, U as NveTextarea, d as NveTooltip, W as NveWarningLevel };
|
package/package.json
CHANGED
|
@@ -5,10 +5,17 @@
|
|
|
5
5
|
"name": "NVE",
|
|
6
6
|
"email": "nve@nve.no"
|
|
7
7
|
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/NVE/Designsystem"
|
|
11
|
+
},
|
|
8
12
|
"license": "MIT",
|
|
9
13
|
"homepage": "https://github.com/NVE/Designsystem/",
|
|
10
|
-
"version": "3.
|
|
11
|
-
"customElements": "custom-elements.json",
|
|
14
|
+
"version": "3.3.0",
|
|
15
|
+
"customElements": "dist/custom-elements.json",
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": "^24.16.0"
|
|
18
|
+
},
|
|
12
19
|
"exports": {
|
|
13
20
|
".": {
|
|
14
21
|
"import": "./nve-designsystem.js",
|
|
@@ -19,24 +26,35 @@
|
|
|
19
26
|
"./dist/vscode.css-custom-data.json": "./vscode.css-custom-data.json",
|
|
20
27
|
"./components/*": "./components/*",
|
|
21
28
|
"./registerIcons/*": "./registerIcons/*",
|
|
22
|
-
"./css/*": "./css/*"
|
|
29
|
+
"./css/*": "./css/*",
|
|
30
|
+
"./fonts/*": "./fonts/*"
|
|
23
31
|
},
|
|
24
32
|
"type": "module",
|
|
25
33
|
"types": "nve-designsystem.d.ts",
|
|
26
|
-
"scripts": {},
|
|
27
34
|
"dependencies": {
|
|
28
35
|
"@shoelace-style/shoelace": "^2.20.1",
|
|
29
|
-
"@tokens-studio/sd-transforms": "^2.0.1",
|
|
30
36
|
"fontfaceobserver": "^2.3.0",
|
|
31
|
-
"lit": "^3.3.
|
|
37
|
+
"lit": "^3.3.3"
|
|
32
38
|
},
|
|
33
39
|
"devDependencies": {},
|
|
34
40
|
"optionalDependencies": {
|
|
35
|
-
"@rollup/rollup-linux-x64-gnu": "^4.
|
|
41
|
+
"@rollup/rollup-linux-x64-gnu": "^4.60.3"
|
|
36
42
|
},
|
|
37
43
|
"config": {
|
|
38
44
|
"commitizen": {
|
|
39
45
|
"path": "./node_modules/cz-conventional-changelog"
|
|
40
46
|
}
|
|
41
|
-
}
|
|
47
|
+
},
|
|
48
|
+
"overrides": {
|
|
49
|
+
"minimatch": ">=10.2.1",
|
|
50
|
+
"minimist": ">=1.2.6",
|
|
51
|
+
"lodash": ">=4.18.0",
|
|
52
|
+
"tmp": ">=0.2.4",
|
|
53
|
+
"@vue/eslint-config-typescript": {
|
|
54
|
+
"@typescript-eslint/utils": "8.59.3",
|
|
55
|
+
"typescript-eslint": "8.59.3"
|
|
56
|
+
},
|
|
57
|
+
"koa": "2.16.4"
|
|
58
|
+
},
|
|
59
|
+
"scripts": {}
|
|
42
60
|
}
|
|
@@ -1,92 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
<svg width
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<svg xmlns
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<svg xmlns
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
<svg xmlns
|
|
21
|
-
|
|
22
|
-
"chevron-up": `
|
|
23
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M480-554 283-357l-43-43 240-240 240 240-43 43-197-197Z"/></svg>
|
|
24
|
-
`,
|
|
25
|
-
copy: `
|
|
26
|
-
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24">
|
|
27
|
-
<path d="M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z"/>
|
|
28
|
-
</svg>
|
|
29
|
-
`,
|
|
30
|
-
eye: `
|
|
31
|
-
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24">
|
|
32
|
-
<path d="M480-320q75 0 127.5-52.5T660-500q0-75-52.5-127.5T480-680q-75 0-127.5 52.5T300-500q0 75 52.5 127.5T480-320Zm0-72q-45 0-76.5-31.5T372-500q0-45 31.5-76.5T480-608q45 0 76.5 31.5T588-500q0 45-31.5 76.5T480-392Zm0 192q-146 0-266-81.5T40-500q54-137 174-218.5T480-800q146 0 266 81.5T920-500q-54 137-174 218.5T480-200Zm0-300Zm0 220q113 0 207.5-59.5T832-500q-50-101-144.5-160.5T480-720q-113 0-207.5 59.5T128-500q50 101 144.5 160.5T480-280Z"/>
|
|
33
|
-
</svg>
|
|
34
|
-
`,
|
|
35
|
-
"eye-slash": `
|
|
36
|
-
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24">
|
|
37
|
-
<path d="m644-428-58-58q9-47-27-88t-93-32l-58-58q17-8 34.5-12t37.5-4q75 0 127.5 52.5T660-500q0 20-4 37.5T644-428Zm128 126-58-56q38-29 67.5-63.5T832-500q-50-101-143.5-160.5T480-720q-29 0-57 4t-55 12l-62-62q41-17 84-25.5t90-8.5q151 0 269 83.5T920-500q-23 59-60.5 109.5T772-302Zm20 246L624-222q-35 11-70.5 16.5T480-200q-151 0-269-83.5T40-500q21-53 53-98.5t73-81.5L56-792l56-56 736 736-56 56ZM222-624q-29 26-53 57t-41 67q50 101 143.5 160.5T480-280q20 0 39-2.5t39-5.5l-36-38q-11 3-21 4.5t-21 1.5q-75 0-127.5-52.5T300-500q0-11 1.5-21t4.5-21l-84-82Zm319 93Zm-151 75Z"/>
|
|
38
|
-
</svg>
|
|
39
|
-
`,
|
|
40
|
-
eyedropper: `
|
|
41
|
-
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24">
|
|
42
|
-
<path d="M120-120v-190l358-358-58-56 58-56 76 76 124-124q5-5 12.5-8t15.5-3q8 0 15 3t13 8l94 94q5 6 8 13t3 15q0 8-3 15.5t-8 12.5L705-555l76 78-57 57-56-58-358 358H120Zm80-80h78l332-334-76-76-334 332v78Zm447-410 96-96-37-37-96 96 37 37Zm0 0-37-37 37 37Z"/>
|
|
43
|
-
</svg>
|
|
44
|
-
`,
|
|
45
|
-
"grip-vertical": `
|
|
46
|
-
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24">
|
|
47
|
-
<path d="M360-160q-33 0-56.5-23.5T280-240q0-33 23.5-56.5T360-320q33 0 56.5 23.5T440-240q0 33-23.5 56.5T360-160Zm240 0q-33 0-56.5-23.5T520-240q0-33 23.5-56.5T600-320q33 0 56.5 23.5T680-240q0 33-23.5 56.5T600-160ZM360-400q-33 0-56.5-23.5T280-480q0-33 23.5-56.5T360-560q33 0 56.5 23.5T440-480q0 33-23.5 56.5T360-400Zm240 0q-33 0-56.5-23.5T520-480q0-33 23.5-56.5T600-560q33 0 56.5 23.5T680-480q0 33-23.5 56.5T600-400ZM360-640q-33 0-56.5-23.5T280-720q0-33 23.5-56.5T360-800q33 0 56.5 23.5T440-720q0 33-23.5 56.5T360-640Zm240 0q-33 0-56.5-23.5T520-720q0-33 23.5-56.5T600-800q33 0 56.5 23.5T680-720q0 33-23.5 56.5T600-640Z"/>
|
|
48
|
-
</svg>
|
|
49
|
-
`,
|
|
50
|
-
indeterminate: `
|
|
51
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 -48 48 48"><path d="M12-22v-6h24v6H12Z" fill="currentColor"/></svg>
|
|
52
|
-
`,
|
|
53
|
-
"person-fill": `
|
|
54
|
-
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24">
|
|
55
|
-
<path d="M480-480q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM160-160v-112q0-34 17.5-62.5T224-378q62-31 126-46.5T480-440q66 0 130 15.5T736-378q29 15 46.5 43.5T800-272v112H160Zm80-80h480v-32q0-11-5.5-20T700-306q-54-27-109-40.5T480-360q-56 0-111 13.5T260-306q-9 5-14.5 14t-5.5 20v32Zm240-320q33 0 56.5-23.5T560-640q0-33-23.5-56.5T480-720q-33 0-56.5 23.5T400-640q0 33 23.5 56.5T480-560Zm0-80Zm0 400Z"/>
|
|
56
|
-
</svg>
|
|
57
|
-
`,
|
|
58
|
-
"play-fill": `
|
|
59
|
-
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24">
|
|
60
|
-
<path d="M320-200v-560l440 280-440 280Zm80-280Zm0 134 210-134-210-134v268Z"/>
|
|
61
|
-
</svg>
|
|
62
|
-
`,
|
|
63
|
-
"pause-fill": `
|
|
64
|
-
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24">
|
|
65
|
-
<path d="M520-200v-560h240v560H520Zm-320 0v-560h240v560H200Zm400-80h80v-400h-80v400Zm-320 0h80v-400h-80v400Zm0-400v400-400Zm320 0v400-400Z"/>
|
|
66
|
-
</svg>
|
|
67
|
-
`,
|
|
68
|
-
radio: `
|
|
69
|
-
<svg part="checked-icon" class="radio__icon" viewBox="0 0 16 16">
|
|
70
|
-
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
71
|
-
<g fill="currentColor">
|
|
72
|
-
<circle cx="8" cy="8" r="3.42857143"></circle>
|
|
73
|
-
</g>
|
|
74
|
-
</g>
|
|
75
|
-
</svg>
|
|
76
|
-
`,
|
|
77
|
-
"x-lg": `
|
|
78
|
-
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24">
|
|
79
|
-
<path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/>
|
|
80
|
-
</svg>
|
|
81
|
-
`,
|
|
82
|
-
/* Clear-ikon for input, select. Merk at denne er kun en x uten sirkel rundt, i motsetning til shoelace sin */
|
|
83
|
-
"x-circle-fill": `
|
|
84
|
-
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
85
|
-
<path d="M6.0625 15L5 13.9375L8.9375 10L5 6.0625L6.0625 5L10 8.9375L13.9375 5L15 6.0625L11.0625 10L15 13.9375L13.9375 15L10 11.0625L6.0625 15Z" fill="currentcolor" />
|
|
86
|
-
</svg>
|
|
87
|
-
`
|
|
88
|
-
};
|
|
89
|
-
export {
|
|
90
|
-
t as icons,
|
|
91
|
-
h as registerIconLibrary
|
|
1
|
+
import { n as e } from "../chunks/chunk.ZL53POKZ.js";
|
|
2
|
+
//#region src/registerIcons/systemLibraryCustomization.ts
|
|
3
|
+
var t = {
|
|
4
|
+
caret: "\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M12 15.375L6 9.37501L7.4 7.97501L12 12.575L16.6 7.97501L18 9.37501L12 15.375Z\" fill=\"currentColor\"/>\n </svg>\n ",
|
|
5
|
+
check: "\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\">\n <path d=\"M9.5501 18L3.8501 12.3L5.2751 10.875L9.5501 15.15L18.7251 5.97501L20.1501 7.40001L9.5501 18Z\" fill=\"currentColor\"/>\n </svg>\n ",
|
|
6
|
+
"chevron-down": "\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 -960 960 960\"><path d=\"M480-344 240-584l43-43 197 197 197-197 43 43-240 240Z\"/></svg>\n ",
|
|
7
|
+
"chevron-left": "\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 -960 960 960\"><path d=\"M561-240 320-481l241-241 43 43-198 198 198 198-43 43Z\"/></svg>\n ",
|
|
8
|
+
"chevron-right": "\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 -960 960 960\"><path d=\"M530-481 332-679l43-43 241 241-241 241-43-43 198-198Z\"/></svg>\n ",
|
|
9
|
+
"chevron-up": "\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 -960 960 960\"><path d=\"M480-554 283-357l-43-43 240-240 240 240-43 43-197-197Z\"/></svg>\n ",
|
|
10
|
+
copy: "\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 -960 960 960\" width=\"24\">\n <path d=\"M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z\"/>\n </svg>\n ",
|
|
11
|
+
eye: "\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 -960 960 960\" width=\"24\">\n <path d=\"M480-320q75 0 127.5-52.5T660-500q0-75-52.5-127.5T480-680q-75 0-127.5 52.5T300-500q0 75 52.5 127.5T480-320Zm0-72q-45 0-76.5-31.5T372-500q0-45 31.5-76.5T480-608q45 0 76.5 31.5T588-500q0 45-31.5 76.5T480-392Zm0 192q-146 0-266-81.5T40-500q54-137 174-218.5T480-800q146 0 266 81.5T920-500q-54 137-174 218.5T480-200Zm0-300Zm0 220q113 0 207.5-59.5T832-500q-50-101-144.5-160.5T480-720q-113 0-207.5 59.5T128-500q50 101 144.5 160.5T480-280Z\"/>\n </svg>\n ",
|
|
12
|
+
"eye-slash": "\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 -960 960 960\" width=\"24\">\n <path d=\"m644-428-58-58q9-47-27-88t-93-32l-58-58q17-8 34.5-12t37.5-4q75 0 127.5 52.5T660-500q0 20-4 37.5T644-428Zm128 126-58-56q38-29 67.5-63.5T832-500q-50-101-143.5-160.5T480-720q-29 0-57 4t-55 12l-62-62q41-17 84-25.5t90-8.5q151 0 269 83.5T920-500q-23 59-60.5 109.5T772-302Zm20 246L624-222q-35 11-70.5 16.5T480-200q-151 0-269-83.5T40-500q21-53 53-98.5t73-81.5L56-792l56-56 736 736-56 56ZM222-624q-29 26-53 57t-41 67q50 101 143.5 160.5T480-280q20 0 39-2.5t39-5.5l-36-38q-11 3-21 4.5t-21 1.5q-75 0-127.5-52.5T300-500q0-11 1.5-21t4.5-21l-84-82Zm319 93Zm-151 75Z\"/>\n </svg>\n ",
|
|
13
|
+
eyedropper: "\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 -960 960 960\" width=\"24\">\n <path d=\"M120-120v-190l358-358-58-56 58-56 76 76 124-124q5-5 12.5-8t15.5-3q8 0 15 3t13 8l94 94q5 6 8 13t3 15q0 8-3 15.5t-8 12.5L705-555l76 78-57 57-56-58-358 358H120Zm80-80h78l332-334-76-76-334 332v78Zm447-410 96-96-37-37-96 96 37 37Zm0 0-37-37 37 37Z\"/>\n </svg>\n ",
|
|
14
|
+
"grip-vertical": "\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 -960 960 960\" width=\"24\">\n <path d=\"M360-160q-33 0-56.5-23.5T280-240q0-33 23.5-56.5T360-320q33 0 56.5 23.5T440-240q0 33-23.5 56.5T360-160Zm240 0q-33 0-56.5-23.5T520-240q0-33 23.5-56.5T600-320q33 0 56.5 23.5T680-240q0 33-23.5 56.5T600-160ZM360-400q-33 0-56.5-23.5T280-480q0-33 23.5-56.5T360-560q33 0 56.5 23.5T440-480q0 33-23.5 56.5T360-400Zm240 0q-33 0-56.5-23.5T520-480q0-33 23.5-56.5T600-560q33 0 56.5 23.5T680-480q0 33-23.5 56.5T600-400ZM360-640q-33 0-56.5-23.5T280-720q0-33 23.5-56.5T360-800q33 0 56.5 23.5T440-720q0 33-23.5 56.5T360-640Zm240 0q-33 0-56.5-23.5T520-720q0-33 23.5-56.5T600-800q33 0 56.5 23.5T680-720q0 33-23.5 56.5T600-640Z\"/>\n </svg>\n ",
|
|
15
|
+
indeterminate: "\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 -48 48 48\"><path d=\"M12-22v-6h24v6H12Z\" fill=\"currentColor\"/></svg>\n ",
|
|
16
|
+
"person-fill": "\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 -960 960 960\" width=\"24\">\n <path d=\"M480-480q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM160-160v-112q0-34 17.5-62.5T224-378q62-31 126-46.5T480-440q66 0 130 15.5T736-378q29 15 46.5 43.5T800-272v112H160Zm80-80h480v-32q0-11-5.5-20T700-306q-54-27-109-40.5T480-360q-56 0-111 13.5T260-306q-9 5-14.5 14t-5.5 20v32Zm240-320q33 0 56.5-23.5T560-640q0-33-23.5-56.5T480-720q-33 0-56.5 23.5T400-640q0 33 23.5 56.5T480-560Zm0-80Zm0 400Z\"/>\n </svg>\n ",
|
|
17
|
+
"play-fill": "\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 -960 960 960\" width=\"24\">\n <path d=\"M320-200v-560l440 280-440 280Zm80-280Zm0 134 210-134-210-134v268Z\"/>\n </svg>\n ",
|
|
18
|
+
"pause-fill": "\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 -960 960 960\" width=\"24\">\n <path d=\"M520-200v-560h240v560H520Zm-320 0v-560h240v560H200Zm400-80h80v-400h-80v400Zm-320 0h80v-400h-80v400Zm0-400v400-400Zm320 0v400-400Z\"/>\n </svg>\n ",
|
|
19
|
+
radio: "\n <svg part=\"checked-icon\" class=\"radio__icon\" viewBox=\"0 0 16 16\">\n <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g fill=\"currentColor\">\n <circle cx=\"8\" cy=\"8\" r=\"3.42857143\"></circle>\n </g>\n </g>\n</svg>\n ",
|
|
20
|
+
"x-lg": "\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 -960 960 960\" width=\"24\">\n <path d=\"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z\"/>\n </svg>\n ",
|
|
21
|
+
"x-circle-fill": "\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M6.0625 15L5 13.9375L8.9375 10L5 6.0625L6.0625 5L10 8.9375L13.9375 5L15 6.0625L11.0625 10L15 13.9375L13.9375 15L10 11.0625L6.0625 15Z\" fill=\"currentcolor\" />\n </svg>\n "
|
|
92
22
|
};
|
|
23
|
+
//#endregion
|
|
24
|
+
export { t as icons, e as registerIconLibrary };
|
package/vite-env.d.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/chunks/chunk.3RPBFEDE.js
DELETED
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { _ as c, a as m } from "./chunk.4TUIT776.js";
|
|
2
|
-
var a = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakSet(), l = /* @__PURE__ */ new WeakMap(), y = class {
|
|
3
|
-
constructor(e, i) {
|
|
4
|
-
this.handleFormData = (t) => {
|
|
5
|
-
const s = this.options.disabled(this.host), r = this.options.name(this.host), o = this.options.value(this.host), d = this.host.tagName.toLowerCase() === "sl-button";
|
|
6
|
-
this.host.isConnected && !s && !d && typeof r == "string" && r.length > 0 && typeof o < "u" && (Array.isArray(o) ? o.forEach((p) => {
|
|
7
|
-
t.formData.append(r, p.toString());
|
|
8
|
-
}) : t.formData.append(r, o.toString()));
|
|
9
|
-
}, this.handleFormSubmit = (t) => {
|
|
10
|
-
var s;
|
|
11
|
-
const r = this.options.disabled(this.host), o = this.options.reportValidity;
|
|
12
|
-
this.form && !this.form.noValidate && ((s = a.get(this.form)) == null || s.forEach((d) => {
|
|
13
|
-
this.setUserInteracted(d, !0);
|
|
14
|
-
})), this.form && !this.form.noValidate && !r && !o(this.host) && (t.preventDefault(), t.stopImmediatePropagation());
|
|
15
|
-
}, this.handleFormReset = () => {
|
|
16
|
-
this.options.setValue(this.host, this.options.defaultValue(this.host)), this.setUserInteracted(this.host, !1), l.set(this.host, []);
|
|
17
|
-
}, this.handleInteraction = (t) => {
|
|
18
|
-
const s = l.get(this.host);
|
|
19
|
-
s.includes(t.type) || s.push(t.type), s.length === this.options.assumeInteractionOn.length && this.setUserInteracted(this.host, !0);
|
|
20
|
-
}, this.checkFormValidity = () => {
|
|
21
|
-
if (this.form && !this.form.noValidate) {
|
|
22
|
-
const t = this.form.querySelectorAll("*");
|
|
23
|
-
for (const s of t)
|
|
24
|
-
if (typeof s.checkValidity == "function" && !s.checkValidity())
|
|
25
|
-
return !1;
|
|
26
|
-
}
|
|
27
|
-
return !0;
|
|
28
|
-
}, this.reportFormValidity = () => {
|
|
29
|
-
if (this.form && !this.form.noValidate) {
|
|
30
|
-
const t = this.form.querySelectorAll("*");
|
|
31
|
-
for (const s of t)
|
|
32
|
-
if (typeof s.reportValidity == "function" && !s.reportValidity())
|
|
33
|
-
return !1;
|
|
34
|
-
}
|
|
35
|
-
return !0;
|
|
36
|
-
}, (this.host = e).addController(this), this.options = m({
|
|
37
|
-
form: (t) => {
|
|
38
|
-
const s = t.form;
|
|
39
|
-
if (s) {
|
|
40
|
-
const o = t.getRootNode().querySelector(`#${s}`);
|
|
41
|
-
if (o)
|
|
42
|
-
return o;
|
|
43
|
-
}
|
|
44
|
-
return t.closest("form");
|
|
45
|
-
},
|
|
46
|
-
name: (t) => t.name,
|
|
47
|
-
value: (t) => t.value,
|
|
48
|
-
defaultValue: (t) => t.defaultValue,
|
|
49
|
-
disabled: (t) => {
|
|
50
|
-
var s;
|
|
51
|
-
return (s = t.disabled) != null ? s : !1;
|
|
52
|
-
},
|
|
53
|
-
reportValidity: (t) => typeof t.reportValidity == "function" ? t.reportValidity() : !0,
|
|
54
|
-
checkValidity: (t) => typeof t.checkValidity == "function" ? t.checkValidity() : !0,
|
|
55
|
-
setValue: (t, s) => t.value = s,
|
|
56
|
-
assumeInteractionOn: ["sl-input"]
|
|
57
|
-
}, i);
|
|
58
|
-
}
|
|
59
|
-
hostConnected() {
|
|
60
|
-
const e = this.options.form(this.host);
|
|
61
|
-
e && this.attachForm(e), l.set(this.host, []), this.options.assumeInteractionOn.forEach((i) => {
|
|
62
|
-
this.host.addEventListener(i, this.handleInteraction);
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
hostDisconnected() {
|
|
66
|
-
this.detachForm(), l.delete(this.host), this.options.assumeInteractionOn.forEach((e) => {
|
|
67
|
-
this.host.removeEventListener(e, this.handleInteraction);
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
hostUpdated() {
|
|
71
|
-
const e = this.options.form(this.host);
|
|
72
|
-
e || this.detachForm(), e && this.form !== e && (this.detachForm(), this.attachForm(e)), this.host.hasUpdated && this.setValidity(this.host.validity.valid);
|
|
73
|
-
}
|
|
74
|
-
attachForm(e) {
|
|
75
|
-
e ? (this.form = e, a.has(this.form) ? a.get(this.form).add(this.host) : a.set(this.form, /* @__PURE__ */ new Set([this.host])), this.form.addEventListener("formdata", this.handleFormData), this.form.addEventListener("submit", this.handleFormSubmit), this.form.addEventListener("reset", this.handleFormReset), h.has(this.form) || (h.set(this.form, this.form.reportValidity), this.form.reportValidity = () => this.reportFormValidity()), n.has(this.form) || (n.set(this.form, this.form.checkValidity), this.form.checkValidity = () => this.checkFormValidity())) : this.form = void 0;
|
|
76
|
-
}
|
|
77
|
-
detachForm() {
|
|
78
|
-
if (!this.form) return;
|
|
79
|
-
const e = a.get(this.form);
|
|
80
|
-
e && (e.delete(this.host), e.size <= 0 && (this.form.removeEventListener("formdata", this.handleFormData), this.form.removeEventListener("submit", this.handleFormSubmit), this.form.removeEventListener("reset", this.handleFormReset), h.has(this.form) && (this.form.reportValidity = h.get(this.form), h.delete(this.form)), n.has(this.form) && (this.form.checkValidity = n.get(this.form), n.delete(this.form)), this.form = void 0));
|
|
81
|
-
}
|
|
82
|
-
setUserInteracted(e, i) {
|
|
83
|
-
i ? f.add(e) : f.delete(e), e.requestUpdate();
|
|
84
|
-
}
|
|
85
|
-
doAction(e, i) {
|
|
86
|
-
if (this.form) {
|
|
87
|
-
const t = document.createElement("button");
|
|
88
|
-
t.type = e, t.style.position = "absolute", t.style.width = "0", t.style.height = "0", t.style.clipPath = "inset(50%)", t.style.overflow = "hidden", t.style.whiteSpace = "nowrap", i && (t.name = i.name, t.value = i.value, ["formaction", "formenctype", "formmethod", "formnovalidate", "formtarget"].forEach((s) => {
|
|
89
|
-
i.hasAttribute(s) && t.setAttribute(s, i.getAttribute(s));
|
|
90
|
-
})), this.form.append(t), t.click(), t.remove();
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
/** Returns the associated `<form>` element, if one exists. */
|
|
94
|
-
getForm() {
|
|
95
|
-
var e;
|
|
96
|
-
return (e = this.form) != null ? e : null;
|
|
97
|
-
}
|
|
98
|
-
/** Resets the form, restoring all the control to their default value */
|
|
99
|
-
reset(e) {
|
|
100
|
-
this.doAction("reset", e);
|
|
101
|
-
}
|
|
102
|
-
/** Submits the form, triggering validation and form data injection. */
|
|
103
|
-
submit(e) {
|
|
104
|
-
this.doAction("submit", e);
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* Synchronously sets the form control's validity. Call this when you know the future validity but need to update
|
|
108
|
-
* the host element immediately, i.e. before Lit updates the component in the next update.
|
|
109
|
-
*/
|
|
110
|
-
setValidity(e) {
|
|
111
|
-
const i = this.host, t = !!f.has(i), s = !!i.required;
|
|
112
|
-
i.toggleAttribute("data-required", s), i.toggleAttribute("data-optional", !s), i.toggleAttribute("data-invalid", !e), i.toggleAttribute("data-valid", e), i.toggleAttribute("data-user-invalid", !e && t), i.toggleAttribute("data-user-valid", e && t);
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Updates the form control's validity based on the current value of `host.validity.valid`. Call this when anything
|
|
116
|
-
* that affects constraint validation changes so the component receives the correct validity states.
|
|
117
|
-
*/
|
|
118
|
-
updateValidity() {
|
|
119
|
-
const e = this.host;
|
|
120
|
-
this.setValidity(e.validity.valid);
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Dispatches a non-bubbling, cancelable custom event of type `sl-invalid`.
|
|
124
|
-
* If the `sl-invalid` event will be cancelled then the original `invalid`
|
|
125
|
-
* event (which may have been passed as argument) will also be cancelled.
|
|
126
|
-
* If no original `invalid` event has been passed then the `sl-invalid`
|
|
127
|
-
* event will be cancelled before being dispatched.
|
|
128
|
-
*/
|
|
129
|
-
emitInvalidEvent(e) {
|
|
130
|
-
const i = new CustomEvent("sl-invalid", {
|
|
131
|
-
bubbles: !1,
|
|
132
|
-
composed: !1,
|
|
133
|
-
cancelable: !0,
|
|
134
|
-
detail: {}
|
|
135
|
-
});
|
|
136
|
-
e || i.preventDefault(), this.host.dispatchEvent(i) || e?.preventDefault();
|
|
137
|
-
}
|
|
138
|
-
}, u = Object.freeze({
|
|
139
|
-
badInput: !1,
|
|
140
|
-
customError: !1,
|
|
141
|
-
patternMismatch: !1,
|
|
142
|
-
rangeOverflow: !1,
|
|
143
|
-
rangeUnderflow: !1,
|
|
144
|
-
stepMismatch: !1,
|
|
145
|
-
tooLong: !1,
|
|
146
|
-
tooShort: !1,
|
|
147
|
-
typeMismatch: !1,
|
|
148
|
-
valid: !0,
|
|
149
|
-
valueMissing: !1
|
|
150
|
-
}), V = Object.freeze(c(m({}, u), {
|
|
151
|
-
valid: !1,
|
|
152
|
-
valueMissing: !0
|
|
153
|
-
})), g = Object.freeze(c(m({}, u), {
|
|
154
|
-
valid: !1,
|
|
155
|
-
customError: !0
|
|
156
|
-
}));
|
|
157
|
-
export {
|
|
158
|
-
y as F,
|
|
159
|
-
V as a,
|
|
160
|
-
g as c,
|
|
161
|
-
u as v
|
|
162
|
-
};
|