@ui-organized/angular 0.0.0-stage → 6.0.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/LICENSE +201 -0
- package/README.md +166 -2
- package/dist/LICENSE +201 -0
- package/dist/README.md +167 -0
- package/dist/fesm2022/ui-organized-angular-icons-heroicons.mjs +179 -0
- package/dist/fesm2022/ui-organized-angular-icons-heroicons.mjs.map +1 -0
- package/dist/fesm2022/ui-organized-angular-icons-lucide.mjs +130 -0
- package/dist/fesm2022/ui-organized-angular-icons-lucide.mjs.map +1 -0
- package/dist/fesm2022/ui-organized-angular-icons-tabler.mjs +159 -0
- package/dist/fesm2022/ui-organized-angular-icons-tabler.mjs.map +1 -0
- package/dist/fesm2022/ui-organized-angular.mjs +32267 -0
- package/dist/fesm2022/ui-organized-angular.mjs.map +1 -0
- package/dist/overlay.css +23 -0
- package/dist/styles.css +6045 -0
- package/dist/types/ui-organized-angular-icons-heroicons.d.ts +53 -0
- package/dist/types/ui-organized-angular-icons-lucide.d.ts +53 -0
- package/dist/types/ui-organized-angular-icons-tabler.d.ts +53 -0
- package/dist/types/ui-organized-angular.d.ts +10359 -0
- package/overlay.css +23 -0
- package/package.json +114 -3
- package/styles.css +6045 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { IconSet as IconSet$1, RegisterIconsOptions } from '@ui-organized/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This package's icon-set registry: the shared mechanism from
|
|
5
|
+
* `@ui-organized/core`, bound to **SVG markup** rather than to components.
|
|
6
|
+
*
|
|
7
|
+
* The registry itself — why it exists, why it is keyed on `globalThis`, and why
|
|
8
|
+
* each framework gets its own — is documented in core. All that happens here is
|
|
9
|
+
* fixing the stored type, and choosing a key distinct from the other three
|
|
10
|
+
* packages' so none of them can read another's icons.
|
|
11
|
+
*
|
|
12
|
+
* ── Why an Angular icon is a string ─────────────────────────────────────────
|
|
13
|
+
*
|
|
14
|
+
* The other three libraries store components, and Angular could too — but
|
|
15
|
+
* Angular instantiates a component onto an element of its own, so an icon
|
|
16
|
+
* rendered that way comes out as
|
|
17
|
+
* `<span class="icon"><ng-icon><svg/></ng-icon></span>` where the others render
|
|
18
|
+
* `<span class="icon"><svg/></span>`. `.icon` is `display: inline-flex` with
|
|
19
|
+
* centring, so the intermediate element becomes the flex item and the SVG stops
|
|
20
|
+
* being what is laid out. One element deeper is a different DOM, and this whole
|
|
21
|
+
* package exists to produce the same one.
|
|
22
|
+
*
|
|
23
|
+
* Core's registry is generic over the stored type precisely so a framework can
|
|
24
|
+
* answer this differently. Storing markup lets `Icon` create the `<svg>` itself
|
|
25
|
+
* and put it directly inside the span.
|
|
26
|
+
*
|
|
27
|
+
* It also turns out to be the *better* contract for stroke. Every
|
|
28
|
+
* `@ng-icons/*` pack ships its icons with
|
|
29
|
+
* `style="stroke-width:var(--ng-icon__stroke-width, 2)"`, so a single custom
|
|
30
|
+
* property drives the weight for lucide, tabler and heroicons alike — where the
|
|
31
|
+
* React adapters need three different prop shapes because lucide takes
|
|
32
|
+
* `strokeWidth`, tabler takes `stroke` and heroicons takes `width`/`height`.
|
|
33
|
+
*/
|
|
34
|
+
type IconMarkup = string;
|
|
35
|
+
type IconSet = IconSet$1<IconMarkup>;
|
|
36
|
+
|
|
37
|
+
declare const heroiconsIcons: IconSet;
|
|
38
|
+
/**
|
|
39
|
+
* Make Heroicons icons available to `<Icon name>` under their own names.
|
|
40
|
+
*
|
|
41
|
+
* Pass them as imported and the names follow from the exports
|
|
42
|
+
* (`heroCamera` → `"camera"`), or key them by native name yourself where
|
|
43
|
+
* the export can't be read back unambiguously (`{ h1: heroH1 }`).
|
|
44
|
+
* Only what you register reaches your bundle.
|
|
45
|
+
*
|
|
46
|
+
* ```ts
|
|
47
|
+
* import { heroCamera, heroRocketLaunch } from "@ng-icons/heroicons/outline";
|
|
48
|
+
* registerIcons({ heroCamera, heroRocketLaunch });
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
declare function registerIcons(icons: Record<string, IconMarkup>, options?: RegisterIconsOptions): void;
|
|
52
|
+
|
|
53
|
+
export { heroiconsIcons, registerIcons };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { IconSet as IconSet$1, RegisterIconsOptions } from '@ui-organized/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This package's icon-set registry: the shared mechanism from
|
|
5
|
+
* `@ui-organized/core`, bound to **SVG markup** rather than to components.
|
|
6
|
+
*
|
|
7
|
+
* The registry itself — why it exists, why it is keyed on `globalThis`, and why
|
|
8
|
+
* each framework gets its own — is documented in core. All that happens here is
|
|
9
|
+
* fixing the stored type, and choosing a key distinct from the other three
|
|
10
|
+
* packages' so none of them can read another's icons.
|
|
11
|
+
*
|
|
12
|
+
* ── Why an Angular icon is a string ─────────────────────────────────────────
|
|
13
|
+
*
|
|
14
|
+
* The other three libraries store components, and Angular could too — but
|
|
15
|
+
* Angular instantiates a component onto an element of its own, so an icon
|
|
16
|
+
* rendered that way comes out as
|
|
17
|
+
* `<span class="icon"><ng-icon><svg/></ng-icon></span>` where the others render
|
|
18
|
+
* `<span class="icon"><svg/></span>`. `.icon` is `display: inline-flex` with
|
|
19
|
+
* centring, so the intermediate element becomes the flex item and the SVG stops
|
|
20
|
+
* being what is laid out. One element deeper is a different DOM, and this whole
|
|
21
|
+
* package exists to produce the same one.
|
|
22
|
+
*
|
|
23
|
+
* Core's registry is generic over the stored type precisely so a framework can
|
|
24
|
+
* answer this differently. Storing markup lets `Icon` create the `<svg>` itself
|
|
25
|
+
* and put it directly inside the span.
|
|
26
|
+
*
|
|
27
|
+
* It also turns out to be the *better* contract for stroke. Every
|
|
28
|
+
* `@ng-icons/*` pack ships its icons with
|
|
29
|
+
* `style="stroke-width:var(--ng-icon__stroke-width, 2)"`, so a single custom
|
|
30
|
+
* property drives the weight for lucide, tabler and heroicons alike — where the
|
|
31
|
+
* React adapters need three different prop shapes because lucide takes
|
|
32
|
+
* `strokeWidth`, tabler takes `stroke` and heroicons takes `width`/`height`.
|
|
33
|
+
*/
|
|
34
|
+
type IconMarkup = string;
|
|
35
|
+
type IconSet = IconSet$1<IconMarkup>;
|
|
36
|
+
|
|
37
|
+
declare const lucideIcons: IconSet;
|
|
38
|
+
/**
|
|
39
|
+
* Make Lucide icons available to `<Icon name>` under their own Lucide names.
|
|
40
|
+
*
|
|
41
|
+
* Pass them as imported and the names follow from the exports
|
|
42
|
+
* (`lucideCamera` → `"camera"`), or key them by native name yourself where
|
|
43
|
+
* the export can't be read back unambiguously (`{ "arrow-down-0-1": lucideArrowDown01 }`).
|
|
44
|
+
* Only what you register reaches your bundle.
|
|
45
|
+
*
|
|
46
|
+
* ```ts
|
|
47
|
+
* import { lucideCamera, lucideRocket } from "@ng-icons/lucide";
|
|
48
|
+
* registerIcons({ lucideCamera, lucideRocket });
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
declare function registerIcons(icons: Record<string, IconMarkup>, options?: RegisterIconsOptions): void;
|
|
52
|
+
|
|
53
|
+
export { lucideIcons, registerIcons };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { IconSet as IconSet$1, RegisterIconsOptions } from '@ui-organized/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This package's icon-set registry: the shared mechanism from
|
|
5
|
+
* `@ui-organized/core`, bound to **SVG markup** rather than to components.
|
|
6
|
+
*
|
|
7
|
+
* The registry itself — why it exists, why it is keyed on `globalThis`, and why
|
|
8
|
+
* each framework gets its own — is documented in core. All that happens here is
|
|
9
|
+
* fixing the stored type, and choosing a key distinct from the other three
|
|
10
|
+
* packages' so none of them can read another's icons.
|
|
11
|
+
*
|
|
12
|
+
* ── Why an Angular icon is a string ─────────────────────────────────────────
|
|
13
|
+
*
|
|
14
|
+
* The other three libraries store components, and Angular could too — but
|
|
15
|
+
* Angular instantiates a component onto an element of its own, so an icon
|
|
16
|
+
* rendered that way comes out as
|
|
17
|
+
* `<span class="icon"><ng-icon><svg/></ng-icon></span>` where the others render
|
|
18
|
+
* `<span class="icon"><svg/></span>`. `.icon` is `display: inline-flex` with
|
|
19
|
+
* centring, so the intermediate element becomes the flex item and the SVG stops
|
|
20
|
+
* being what is laid out. One element deeper is a different DOM, and this whole
|
|
21
|
+
* package exists to produce the same one.
|
|
22
|
+
*
|
|
23
|
+
* Core's registry is generic over the stored type precisely so a framework can
|
|
24
|
+
* answer this differently. Storing markup lets `Icon` create the `<svg>` itself
|
|
25
|
+
* and put it directly inside the span.
|
|
26
|
+
*
|
|
27
|
+
* It also turns out to be the *better* contract for stroke. Every
|
|
28
|
+
* `@ng-icons/*` pack ships its icons with
|
|
29
|
+
* `style="stroke-width:var(--ng-icon__stroke-width, 2)"`, so a single custom
|
|
30
|
+
* property drives the weight for lucide, tabler and heroicons alike — where the
|
|
31
|
+
* React adapters need three different prop shapes because lucide takes
|
|
32
|
+
* `strokeWidth`, tabler takes `stroke` and heroicons takes `width`/`height`.
|
|
33
|
+
*/
|
|
34
|
+
type IconMarkup = string;
|
|
35
|
+
type IconSet = IconSet$1<IconMarkup>;
|
|
36
|
+
|
|
37
|
+
declare const tablerIcons: IconSet;
|
|
38
|
+
/**
|
|
39
|
+
* Make Tabler icons available to `<Icon name>` under their own Tabler names.
|
|
40
|
+
*
|
|
41
|
+
* Pass them as imported and the names follow from the exports
|
|
42
|
+
* (`tablerCamera` → `"camera"`), or key them by native name yourself where
|
|
43
|
+
* the export can't be read back unambiguously (`{ "crop-16-9": tablerCrop169 }`).
|
|
44
|
+
* Only what you register reaches your bundle.
|
|
45
|
+
*
|
|
46
|
+
* ```ts
|
|
47
|
+
* import { tablerCamera, tablerRocket } from "@ng-icons/tabler-icons";
|
|
48
|
+
* registerIcons({ tablerCamera, tablerRocket });
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
declare function registerIcons(icons: Record<string, IconMarkup>, options?: RegisterIconsOptions): void;
|
|
52
|
+
|
|
53
|
+
export { registerIcons, tablerIcons };
|