@solid-design-system/components 1.0.0 → 1.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 (39) hide show
  1. package/dist/components/es/button.js +1 -1
  2. package/dist/components/es/icon.js +3 -3
  3. package/dist/components/es/solid-components.js +1 -1
  4. package/dist/components/es/solid-components2.js +1 -0
  5. package/dist/components/es/spinner.js +1 -1
  6. package/dist/components/umd/solid-components.js +33 -33
  7. package/dist/custom-elements.json +1 -1
  8. package/dist/package/components/icon/icon.js +1 -1
  9. package/dist/package/components/icon/library.js +18 -0
  10. package/dist/package/solid-components.d.ts +1 -0
  11. package/dist/package/solid-components.js +4 -1
  12. package/dist/versioned-components/es/button.js +18 -18
  13. package/dist/versioned-components/es/icon.js +3 -3
  14. package/dist/versioned-components/es/include.js +1 -1
  15. package/dist/versioned-components/es/link.js +1 -1
  16. package/dist/versioned-components/es/solid-components.js +1 -1
  17. package/dist/versioned-components/es/solid-components2.js +1 -0
  18. package/dist/versioned-components/es/spinner.js +1 -1
  19. package/dist/versioned-package/components/button/button.d.ts +1 -1
  20. package/dist/versioned-package/components/button/button.js +18 -18
  21. package/dist/versioned-package/components/icon/icon.d.ts +1 -1
  22. package/dist/versioned-package/components/icon/icon.js +2 -2
  23. package/dist/versioned-package/components/icon/library.js +18 -0
  24. package/dist/versioned-package/components/include/include.d.ts +1 -1
  25. package/dist/versioned-package/components/include/include.js +1 -1
  26. package/dist/versioned-package/components/link/link.d.ts +1 -1
  27. package/dist/versioned-package/components/link/link.js +2 -2
  28. package/dist/versioned-package/components/spinner/spinner.d.ts +1 -1
  29. package/dist/versioned-package/components/spinner/spinner.js +1 -1
  30. package/dist/versioned-package/internal/form.js +1 -1
  31. package/dist/versioned-package/solid-components.d.ts +1 -0
  32. package/dist/versioned-package/solid-components.js +4 -1
  33. package/dist/vscode.html-custom-data.json +5 -5
  34. package/dist/web-types.json +6 -6
  35. package/package.json +11 -5
  36. package/dist/components/es/library.js +0 -1
  37. package/dist/components/es/library.system.js +0 -1
  38. package/dist/versioned-components/es/library.js +0 -1
  39. package/dist/versioned-components/es/library.system.js +0 -1
@@ -216,9 +216,9 @@ let SdButton = class extends SolidElement {
216
216
  }[this.size]
217
217
  )}>
218
218
  </slot>
219
- ${this.loading ? html`<sd-1-0-0-spinner
219
+ ${this.loading ? html`<sd-1-0-1-spinner
220
220
  class="${cx("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"
221
- ></sd-1-0-0-spinner>` : ""}
221
+ ></sd-1-0-1-spinner>` : ""}
222
222
  </${tag}>
223
223
  `;
224
224
  }
@@ -234,7 +234,7 @@ SdButton.styles = [
234
234
  cursor: pointer;
235
235
  }
236
236
 
237
- sd-1-0-0-spinner {
237
+ sd-1-0-1-spinner {
238
238
  --indicator-color: currentColor;
239
239
  --track-color: var(--tw-varcolor-200);
240
240
  }
@@ -253,11 +253,11 @@ SdButton.styles = [
253
253
  }
254
254
 
255
255
  /**
256
- * sd-1-0-0-icons should automatically resize correctly based on the button size.
256
+ * sd-1-0-1-icons should automatically resize correctly based on the button size.
257
257
  */
258
258
 
259
- ::slotted(sd-1-0-0-icon),
260
- sd-1-0-0-spinner {
259
+ ::slotted(sd-1-0-1-icon),
260
+ sd-1-0-1-spinner {
261
261
  font-size: calc(var(--tw-varspacing) / 2);
262
262
  }
263
263
 
@@ -268,30 +268,30 @@ SdButton.styles = [
268
268
  // * buttons and we style them here instead.
269
269
  // */
270
270
 
271
- // :host(.sd-1-0-0-button-group__button--first:not(.sd-1-0-0-button-group__button--last)) .button {
271
+ // :host(.sd-1-0-1-button-group__button--first:not(.sd-1-0-1-button-group__button--last)) .button {
272
272
  // border-start-end-radius: 0;
273
273
  // border-end-end-radius: 0;
274
274
  // }
275
275
 
276
- // :host(.sd-1-0-0-button-group__button--inner) .button {
276
+ // :host(.sd-1-0-1-button-group__button--inner) .button {
277
277
  // border-radius: 0;
278
278
  // }
279
279
 
280
- // :host(.sd-1-0-0-button-group__button--last:not(.sd-1-0-0-button-group__button--first)) .button {
280
+ // :host(.sd-1-0-1-button-group__button--last:not(.sd-1-0-1-button-group__button--first)) .button {
281
281
  // border-start-start-radius: 0;
282
282
  // border-end-start-radius: 0;
283
283
  // }
284
284
 
285
285
  // /* All except the first */
286
- // :host(.sd-1-0-0-button-group__button:not(.sd-1-0-0-button-group__button--first)) {
286
+ // :host(.sd-1-0-1-button-group__button:not(.sd-1-0-1-button-group__button--first)) {
287
287
  // margin-inline-start: calc(-1 * var(--sd-input-border-width));
288
288
  // }
289
289
 
290
290
  // /* Add a visual separator between solid buttons */
291
291
  // :host(
292
- // .sd-1-0-0-button-group__button:not(
293
- // .sd-1-0-0-button-group__button--first,
294
- // .sd-1-0-0-button-group__button--radio,
292
+ // .sd-1-0-1-button-group__button:not(
293
+ // .sd-1-0-1-button-group__button--first,
294
+ // .sd-1-0-1-button-group__button--radio,
295
295
  // [variant='default']
296
296
  // ):not(:hover)
297
297
  // )
@@ -306,13 +306,13 @@ SdButton.styles = [
306
306
  // }
307
307
 
308
308
  // /* Bump hovered, focused, and checked buttons up so their focus ring isn't clipped */
309
- // :host(.sd-1-0-0-button-group__button--hover) {
309
+ // :host(.sd-1-0-1-button-group__button--hover) {
310
310
  // z-index: 1;
311
311
  // }
312
312
 
313
313
  // /* Focus and checked are always on top */
314
- // :host(.sd-1-0-0-button-group__button--focus),
315
- // :host(.sd-1-0-0-button-group__button[checked]) {
314
+ // :host(.sd-1-0-1-button-group__button--focus),
315
+ // :host(.sd-1-0-1-button-group__button[checked]) {
316
316
  // z-index: 2;
317
317
  // }
318
318
  `
@@ -321,7 +321,7 @@ __decorateClass([
321
321
  query("a, button")
322
322
  ], SdButton.prototype, "button", 2);
323
323
  __decorateClass([
324
- queryAssignedElements({ selector: "sd-1-0-0-icon" })
324
+ queryAssignedElements({ selector: "sd-1-0-1-icon" })
325
325
  ], SdButton.prototype, "_iconsInDefaultSlot", 2);
326
326
  __decorateClass([
327
327
  state()
@@ -384,7 +384,7 @@ __decorateClass([
384
384
  watch("disabled", { waitUntilFirstUpdate: true })
385
385
  ], SdButton.prototype, "handleDisabledChange", 1);
386
386
  SdButton = __decorateClass([
387
- customElement("sd-1-0-0-button")
387
+ customElement("sd-1-0-1-button")
388
388
  ], SdButton);
389
389
  export {
390
390
  SdButton as default
@@ -17,6 +17,6 @@ export default class SdIcon extends SolidElement {
17
17
  }
18
18
  declare global {
19
19
  interface HTMLElementTagNameMap {
20
- 'sd-1-0-0-icon': SdIcon;
20
+ 'sd-1-0-1-icon': SdIcon;
21
21
  }
22
22
  }
@@ -1,6 +1,6 @@
1
1
  import { css, html } from "lit";
2
2
  import { state, property, customElement } from "lit/decorators.js";
3
- import { unwatchIcon, getIconLibrary, watchIcon } from "./library.js";
3
+ import { watchIcon, unwatchIcon, getIconLibrary } from "./library.js";
4
4
  import { requestIcon } from "./request.js";
5
5
  import { unsafeSVG } from "lit/directives/unsafe-svg.js";
6
6
  import { watch } from "../../internal/watch.js";
@@ -122,7 +122,7 @@ __decorateClass([
122
122
  watch(["name", "src", "library"])
123
123
  ], SdIcon.prototype, "setIcon", 1);
124
124
  SdIcon = __decorateClass([
125
- customElement("sd-1-0-0-icon")
125
+ customElement("sd-1-0-1-icon")
126
126
  ], SdIcon);
127
127
  export {
128
128
  SdIcon as default
@@ -10,8 +10,26 @@ function unwatchIcon(icon) {
10
10
  function getIconLibrary(name) {
11
11
  return registry.find((lib) => lib.name === name);
12
12
  }
13
+ function registerIconLibrary(name, options) {
14
+ unregisterIconLibrary(name);
15
+ registry.push({
16
+ name,
17
+ resolver: options.resolver,
18
+ mutator: options.mutator
19
+ });
20
+ watchedIcons.forEach((icon) => {
21
+ if (icon.library === name) {
22
+ icon.setIcon();
23
+ }
24
+ });
25
+ }
26
+ function unregisterIconLibrary(name) {
27
+ registry = registry.filter((lib) => lib.name !== name);
28
+ }
13
29
  export {
14
30
  getIconLibrary,
31
+ registerIconLibrary,
32
+ unregisterIconLibrary,
15
33
  unwatchIcon,
16
34
  watchIcon
17
35
  };
@@ -11,6 +11,6 @@ export default class SdInclude extends SolidElement {
11
11
  }
12
12
  declare global {
13
13
  interface HTMLElementTagNameMap {
14
- 'sd-1-0-0-include': SdInclude;
14
+ 'sd-1-0-1-include': SdInclude;
15
15
  }
16
16
  }
@@ -65,7 +65,7 @@ __decorateClass([
65
65
  watch("src")
66
66
  ], SdInclude.prototype, "handleSrcChange", 1);
67
67
  SdInclude = __decorateClass([
68
- customElement("sd-1-0-0-include")
68
+ customElement("sd-1-0-1-include")
69
69
  ], SdInclude);
70
70
  export {
71
71
  SdInclude as default
@@ -17,6 +17,6 @@ export default class SdLink extends SolidElement {
17
17
  }
18
18
  declare global {
19
19
  interface HTMLElementTagNameMap {
20
- 'sd-1-0-0-link': SdLink;
20
+ 'sd-1-0-1-link': SdLink;
21
21
  }
22
22
  }
@@ -76,7 +76,7 @@ let SdLink = class extends SolidElement {
76
76
  };
77
77
  SdLink.styles = [
78
78
  SolidElement.styles,
79
- css`::slotted(sd-1-0-0-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-1-0-0-icon){font-size:1rem}:host([size=lg][standalone]) ::slotted(sd-1-0-0-icon){font-size:1.5rem}`
79
+ css`::slotted(sd-1-0-1-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-1-0-1-icon){font-size:1rem}:host([size=lg][standalone]) ::slotted(sd-1-0-1-icon){font-size:1.5rem}`
80
80
  ];
81
81
  __decorateClass([
82
82
  query("a")
@@ -100,7 +100,7 @@ __decorateClass([
100
100
  property()
101
101
  ], SdLink.prototype, "download", 2);
102
102
  SdLink = __decorateClass([
103
- customElement("sd-1-0-0-link")
103
+ customElement("sd-1-0-1-link")
104
104
  ], SdLink);
105
105
  export {
106
106
  SdLink as default
@@ -7,6 +7,6 @@ export default class SdSpinner extends SolidElement {
7
7
  }
8
8
  declare global {
9
9
  interface HTMLElementTagNameMap {
10
- 'sd-1-0-0-spinner': SdSpinner;
10
+ 'sd-1-0-1-spinner': SdSpinner;
11
11
  }
12
12
  }
@@ -39,7 +39,7 @@ __decorateClass([
39
39
  property({ reflect: true })
40
40
  ], SdSpinner.prototype, "color", 2);
41
41
  SdSpinner = __decorateClass([
42
- customElement("sd-1-0-0-spinner")
42
+ customElement("sd-1-0-1-spinner")
43
43
  ], SdSpinner);
44
44
  export {
45
45
  SdSpinner as default
@@ -90,7 +90,7 @@ class FormControlController {
90
90
  const disabled = this.options.disabled(this.host);
91
91
  const name = this.options.name(this.host);
92
92
  const value = this.options.value(this.host);
93
- const isButton = this.host.tagName.toLowerCase() === "sd-1-0-0-button";
93
+ const isButton = this.host.tagName.toLowerCase() === "sd-1-0-1-button";
94
94
  if (!disabled && !isButton && typeof name === "string" && name.length > 0 && typeof value !== "undefined") {
95
95
  if (Array.isArray(value)) {
96
96
  value.forEach((val) => {
@@ -3,4 +3,5 @@ export { default as SdIcon } from './components/icon/icon';
3
3
  export { default as SdInclude } from './components/include/include';
4
4
  export { default as SdLink } from './components/link/link';
5
5
  export { default as SdSpinner } from './components/spinner/spinner';
6
+ export * from './utilities/icon-library';
6
7
  export * from './utilities/localize';
@@ -3,6 +3,7 @@ import { default as default3 } from "./components/icon/icon.js";
3
3
  import { default as default4 } from "./components/include/include.js";
4
4
  import { default as default5 } from "./components/link/link.js";
5
5
  import { default as default6 } from "./components/spinner/spinner.js";
6
+ import { registerIconLibrary, unregisterIconLibrary } from "./components/icon/library.js";
6
7
  import { LocalizeController } from "./utilities/localize.js";
7
8
  export {
8
9
  LocalizeController,
@@ -10,5 +11,7 @@ export {
10
11
  default3 as SdIcon,
11
12
  default4 as SdInclude,
12
13
  default5 as SdLink,
13
- default6 as SdSpinner
14
+ default6 as SdSpinner,
15
+ registerIconLibrary,
16
+ unregisterIconLibrary
14
17
  };
@@ -330,7 +330,7 @@
330
330
  "references": []
331
331
  },
332
332
  {
333
- "name": "sd-1-0-0-button",
333
+ "name": "sd-1-0-1-button",
334
334
  "description": "Buttons represent actions that are available to the user.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-blur** - Emitted when the button loses focus.\n- **sd-focus** - Emitted when the button gains focus.\n\n### **Methods:**\n - **click()** - Simulates a click on the button.\n- **focus(options: _FocusOptions_)** - Sets focus on the button.\n- **blur()** - Removes focus from the button.\n- **checkValidity()** - Checks for validity but does not show the browser's validation message.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The button's label.\n- **icon-left** - A prefix icon or similar element.\n- **icon-right** - A suffix icon or similar element.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **icon-left** - The container that wraps the left icon area.\n- **label** - The button's label.\n- **icon-right** - The container that wraps the right icon area.",
335
335
  "attributes": [
336
336
  {
@@ -502,7 +502,7 @@
502
502
  "references": []
503
503
  },
504
504
  {
505
- "name": "sd-1-0-0-icon",
505
+ "name": "sd-1-0-1-icon",
506
506
  "description": "Icons are symbols that can be used to represent various options within an application.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-load** - Emitted when the icon has loaded.\n- **sd-error** - Emitted when the icon fails to load due to an error.",
507
507
  "attributes": [
508
508
  {
@@ -544,7 +544,7 @@
544
544
  "references": []
545
545
  },
546
546
  {
547
- "name": "sd-1-0-0-include",
547
+ "name": "sd-1-0-1-include",
548
548
  "description": "Includes give you the power to embed external HTML files into the page.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-load** - Emitted when the included file is loaded.\n- **sd-error** - Emitted when the included file fails to load due to an error.",
549
549
  "attributes": [
550
550
  {
@@ -576,7 +576,7 @@
576
576
  "references": []
577
577
  },
578
578
  {
579
- "name": "sd-1-0-0-link",
579
+ "name": "sd-1-0-1-link",
580
580
  "description": "A link component.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-blur** - Emitted when the link loses focus.\n- **sd-focus** - Emitted when the link gains focus.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the button.\n- **blur()** - Removes focus from the button.\n\n### **Slots:**\n - _default_ - The default slot.\n- **icon-left** - The icon to display on the left side of the link.\n- **icon-right** - The icon to display on the right side of the link.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **icon-left** - The container that wraps the left icon area.\n- **label** - The link's label.\n- **icon-right** - The container that wraps the right icon area.",
581
581
  "attributes": [
582
582
  {
@@ -636,7 +636,7 @@
636
636
  "references": []
637
637
  },
638
638
  {
639
- "name": "sd-1-0-0-spinner",
639
+ "name": "sd-1-0-1-spinner",
640
640
  "description": "Spinners are used to show the progress of an indeterminate operation.\n\n\n---\n\n\n",
641
641
  "attributes": [
642
642
  {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json.schemastore.org/web-types",
3
3
  "name": "@solid-design-system/components",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "description-markup": "markdown",
6
6
  "framework-config": {
7
7
  "enable-when": {
@@ -768,7 +768,7 @@
768
768
  ]
769
769
  },
770
770
  {
771
- "name": "sd-1-0-0-button",
771
+ "name": "sd-1-0-1-button",
772
772
  "description": "",
773
773
  "doc-url": "https://solid.union-investment.com/[storybook-link]/button",
774
774
  "js": {
@@ -1107,7 +1107,7 @@
1107
1107
  ]
1108
1108
  },
1109
1109
  {
1110
- "name": "sd-1-0-0-icon",
1110
+ "name": "sd-1-0-1-icon",
1111
1111
  "description": "",
1112
1112
  "doc-url": "https://solid.union-investment.com/[storybook-link]/icon",
1113
1113
  "js": {
@@ -1216,7 +1216,7 @@
1216
1216
  ]
1217
1217
  },
1218
1218
  {
1219
- "name": "sd-1-0-0-include",
1219
+ "name": "sd-1-0-1-include",
1220
1220
  "description": "",
1221
1221
  "doc-url": "https://solid.union-investment.com/[storybook-link]/include",
1222
1222
  "js": {
@@ -1287,7 +1287,7 @@
1287
1287
  ]
1288
1288
  },
1289
1289
  {
1290
- "name": "sd-1-0-0-link",
1290
+ "name": "sd-1-0-1-link",
1291
1291
  "description": "",
1292
1292
  "doc-url": "https://solid.union-investment.com/[storybook-link]/link",
1293
1293
  "js": {
@@ -1414,7 +1414,7 @@
1414
1414
  ]
1415
1415
  },
1416
1416
  {
1417
- "name": "sd-1-0-0-spinner",
1417
+ "name": "sd-1-0-1-spinner",
1418
1418
  "description": "",
1419
1419
  "doc-url": "https://solid.union-investment.com/[storybook-link]/spinner",
1420
1420
  "js": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@solid-design-system/components",
3
3
  "description": "Solid Design System: Components",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "homepage": "https://solid-design-system.fe.union-investment.de/x.x.x/storybook/",
6
6
  "author": {
7
7
  "name": "Union Investment"
@@ -66,7 +66,7 @@
66
66
  "test.watch": "web-test-runner --watch --group default",
67
67
  "storybook": "storybook dev -p 6999",
68
68
  "chromatic": "npx chromatic -b build.chromatic",
69
- "postversion": "pnpm build.npm",
69
+ "postversion": "pnpm build.npm && node scripts/node-write-sizes.mjs",
70
70
  "release": "semantic-release --tagFormat 'components/${version}' -e semantic-release-monorepo",
71
71
  "release.dry": "semantic-release -d --tagFormat 'components/${version}' -e semantic-release-monorepo"
72
72
  },
@@ -154,7 +154,7 @@
154
154
  [
155
155
  "@semantic-release/changelog",
156
156
  {
157
- "changelogFile": "src/docs/General/changelog.mdx"
157
+ "changelogFile": "src/docs/General/Changelog.mdx"
158
158
  }
159
159
  ],
160
160
  [
@@ -168,7 +168,7 @@
168
168
  {
169
169
  "message": "chore(release/components): ${nextRelease.version} [skip actions]\n\n${nextRelease.notes}",
170
170
  "assets": [
171
- "src/docs/General/changelog.mdx",
171
+ "src/docs/General/Changelog.mdx",
172
172
  "package.json"
173
173
  ]
174
174
  }
@@ -181,5 +181,11 @@
181
181
  ]
182
182
  ]
183
183
  },
184
- "readme": "README.md"
184
+ "readme": "README.md",
185
+ "meta": {
186
+ "bundleSizeInKb": {
187
+ "uncompressed": 61,
188
+ "gzip": 18
189
+ }
190
+ }
185
191
  }
@@ -1 +0,0 @@
1
- import r from"./library.system.js";let n=[r],t=[];function e(r){t.push(r)}function o(r){t=t.filter((n=>n!==r))}function a(r){return n.find((n=>n.name===r))}function i(r,e){s(r),n.push({name:r,resolver:e.resolver,mutator:e.mutator}),t.forEach((n=>{n.library===r&&n.setIcon()}))}function s(r){n=n.filter((n=>n.name!==r))}export{a as getIconLibrary,i as registerIconLibrary,s as unregisterIconLibrary,o as unwatchIcon,e as watchIcon};
@@ -1 +0,0 @@
1
- const n={"chevron-down":'\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M20.257 6.333l-8.257 9.173-8.257-9.173c-0.181-0.181-0.431-0.292-0.707-0.292-0.552 0-1 0.448-1 1 0 0.238 0.083 0.456 0.222 0.628l-0.001-0.002 9 10c0.184 0.204 0.449 0.331 0.743 0.331s0.56-0.127 0.743-0.33l0.001-0.001 9-10c0.137-0.17 0.22-0.388 0.22-0.626 0-0.552-0.448-1-1-1-0.276 0-0.526 0.112-0.707 0.293v0z"></path>\n </svg>\n ',"chevron-up":'\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12.743 6.333c-0.188-0.195-0.452-0.316-0.743-0.316s-0.555 0.121-0.743 0.315l-0 0-9 10c-0.137 0.17-0.22 0.388-0.22 0.626 0 0.552 0.448 1 1 1 0.276 0 0.526-0.112 0.707-0.293v0l8.257-9.173 8.257 9.173c0.181 0.181 0.431 0.292 0.707 0.292 0.552 0 1-0.448 1-1 0-0.238-0.083-0.456-0.222-0.628l0.001 0.002z"></path>\n </svg>\n '},s={name:"system",resolver:s=>s in n?`data:image/svg+xml,${encodeURIComponent(n[s])}`:"",mutator:n=>n.setAttribute("fill","currentColor")};export{s as default,n as icons};
@@ -1 +0,0 @@
1
- import r from"./library.system.js";let n=[r],t=[];function e(r){t.push(r)}function o(r){t=t.filter((n=>n!==r))}function a(r){return n.find((n=>n.name===r))}function i(r,e){s(r),n.push({name:r,resolver:e.resolver,mutator:e.mutator}),t.forEach((n=>{n.library===r&&n.setIcon()}))}function s(r){n=n.filter((n=>n.name!==r))}export{a as getIconLibrary,i as registerIconLibrary,s as unregisterIconLibrary,o as unwatchIcon,e as watchIcon};
@@ -1 +0,0 @@
1
- const n={"chevron-down":'\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M20.257 6.333l-8.257 9.173-8.257-9.173c-0.181-0.181-0.431-0.292-0.707-0.292-0.552 0-1 0.448-1 1 0 0.238 0.083 0.456 0.222 0.628l-0.001-0.002 9 10c0.184 0.204 0.449 0.331 0.743 0.331s0.56-0.127 0.743-0.33l0.001-0.001 9-10c0.137-0.17 0.22-0.388 0.22-0.626 0-0.552-0.448-1-1-1-0.276 0-0.526 0.112-0.707 0.293v0z"></path>\n </svg>\n ',"chevron-up":'\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12.743 6.333c-0.188-0.195-0.452-0.316-0.743-0.316s-0.555 0.121-0.743 0.315l-0 0-9 10c-0.137 0.17-0.22 0.388-0.22 0.626 0 0.552 0.448 1 1 1 0.276 0 0.526-0.112 0.707-0.293v0l8.257-9.173 8.257 9.173c0.181 0.181 0.431 0.292 0.707 0.292 0.552 0 1-0.448 1-1 0-0.238-0.083-0.456-0.222-0.628l0.001 0.002z"></path>\n </svg>\n '},s={name:"system",resolver:s=>s in n?`data:image/svg+xml,${encodeURIComponent(n[s])}`:"",mutator:n=>n.setAttribute("fill","currentColor")};export{s as default,n as icons};