@declarion/react 0.6.12 → 0.6.13

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.
@@ -5,124 +5,124 @@ export type IconProps = {
5
5
  style?: CSSProperties;
6
6
  };
7
7
  export declare const Icon: {
8
- readonly home: FC<IconProps>;
9
- readonly inbox: FC<IconProps>;
10
- readonly flow: FC<IconProps>;
11
- readonly pipeline: FC<IconProps>;
12
- readonly leads: FC<IconProps>;
13
- readonly company: FC<IconProps>;
14
- readonly activity: FC<IconProps>;
15
- readonly users: FC<IconProps>;
16
- readonly tenant: FC<IconProps>;
17
- readonly shield: FC<IconProps>;
18
- readonly key: FC<IconProps>;
19
- readonly group: FC<IconProps>;
20
- readonly idp: FC<IconProps>;
21
- readonly audit: FC<IconProps>;
22
- readonly log: FC<IconProps>;
23
- readonly handlers: FC<IconProps>;
24
- readonly jobs: FC<IconProps>;
25
- readonly sched: FC<IconProps>;
26
- readonly entity: FC<IconProps>;
27
- readonly field: FC<IconProps>;
28
- readonly action: FC<IconProps>;
29
- readonly code: FC<IconProps>;
30
- readonly search: FC<IconProps>;
31
- readonly filter: FC<IconProps>;
32
- readonly columns: FC<IconProps>;
33
- readonly plus: FC<IconProps>;
34
- readonly minus: FC<IconProps>;
35
- readonly sort: FC<IconProps>;
36
- readonly more: FC<IconProps>;
37
- readonly x: FC<IconProps>;
38
- readonly check: FC<IconProps>;
39
- readonly down: FC<IconProps>;
40
- readonly up: FC<IconProps>;
41
- readonly right: FC<IconProps>;
42
- readonly left: FC<IconProps>;
43
- readonly cheveron: FC<IconProps>;
44
- readonly back: FC<IconProps>;
45
- readonly calendar: FC<IconProps>;
46
- readonly clock: FC<IconProps>;
47
- readonly lock: FC<IconProps>;
48
- readonly email: FC<IconProps>;
49
- readonly link: FC<IconProps>;
50
- readonly hash: FC<IconProps>;
51
- readonly eye: FC<IconProps>;
52
- readonly eyeOff: FC<IconProps>;
53
- readonly copy: FC<IconProps>;
54
- readonly trash: FC<IconProps>;
55
- readonly edit: FC<IconProps>;
56
- readonly save: FC<IconProps>;
57
- readonly refresh: FC<IconProps>;
58
- readonly download: FC<IconProps>;
59
- readonly upload: FC<IconProps>;
60
- readonly paperclip: FC<IconProps>;
61
- readonly tag: FC<IconProps>;
62
- readonly bolt: FC<IconProps>;
63
- readonly bell: FC<IconProps>;
64
- readonly ai: FC<IconProps>;
65
- readonly sparkle: FC<IconProps>;
66
- readonly command: FC<IconProps>;
67
- readonly menu: FC<IconProps>;
68
- readonly dot: FC<IconProps>;
69
- readonly globe: FC<IconProps>;
70
- readonly folder: FC<IconProps>;
71
- readonly file: FC<IconProps>;
72
- readonly branch: FC<IconProps>;
73
- readonly sun: FC<IconProps>;
74
- readonly moon: FC<IconProps>;
75
- readonly settings: FC<IconProps>;
76
- readonly logout: FC<IconProps>;
77
- readonly loader: FC<IconProps>;
78
- readonly grid: FC<IconProps>;
79
- readonly star: FC<IconProps>;
80
- readonly warning: FC<IconProps>;
81
- readonly info: FC<IconProps>;
82
- readonly building: FC<IconProps>;
83
- readonly device: FC<IconProps>;
84
- readonly arrowUp: FC<IconProps>;
85
- readonly arrowDown: FC<IconProps>;
86
- readonly external: FC<IconProps>;
87
- readonly dbtable: FC<IconProps>;
88
- readonly "users-round": FC<IconProps>;
89
- readonly user: FC<IconProps>;
90
- readonly "user-plus": FC<IconProps>;
91
- readonly "shield-check": FC<IconProps>;
92
- readonly "shield-plus": FC<IconProps>;
93
- readonly "key-round": FC<IconProps>;
94
- readonly "list-checks": FC<IconProps>;
95
- readonly list: FC<IconProps>;
96
- readonly "play-circle": FC<IconProps>;
97
- readonly play: FC<IconProps>;
98
- readonly layers: FC<IconProps>;
99
- readonly layout: FC<IconProps>;
100
- readonly "layout-dashboard": FC<IconProps>;
101
- readonly database: FC<IconProps>;
102
- readonly zap: FC<IconProps>;
103
- readonly cpu: FC<IconProps>;
104
- readonly "circle-dot": FC<IconProps>;
105
- readonly "toggle-right": FC<IconProps>;
106
- readonly sliders: FC<IconProps>;
107
- readonly "sliders-horizontal": FC<IconProps>;
108
- readonly box: FC<IconProps>;
109
- readonly "columns-3": FC<IconProps>;
110
- readonly "settings-2": FC<IconProps>;
111
- readonly "file-diff": FC<IconProps>;
112
- readonly "git-branch": FC<IconProps>;
113
- readonly "log-in": FC<IconProps>;
114
- readonly "plus-circle": FC<IconProps>;
115
- readonly repeat: FC<IconProps>;
116
- readonly ban: FC<IconProps>;
117
- readonly "trash-2": FC<IconProps>;
118
- readonly "shopping-cart": FC<IconProps>;
119
- readonly "credit-card": FC<IconProps>;
120
- readonly package: FC<IconProps>;
121
- readonly boxes: FC<IconProps>;
122
- readonly tags: FC<IconProps>;
123
- readonly "wallet-cards": FC<IconProps>;
124
- readonly "receipt-text": FC<IconProps>;
125
- readonly "badge-dollar-sign": FC<IconProps>;
126
- readonly "undo-2": FC<IconProps>;
8
+ action: FC<IconProps>;
9
+ activity: FC<IconProps>;
10
+ ai: FC<IconProps>;
11
+ arrowDown: FC<IconProps>;
12
+ arrowUp: FC<IconProps>;
13
+ audit: FC<IconProps>;
14
+ back: FC<IconProps>;
15
+ "badge-dollar-sign": FC<IconProps>;
16
+ ban: FC<IconProps>;
17
+ bell: FC<IconProps>;
18
+ bolt: FC<IconProps>;
19
+ box: FC<IconProps>;
20
+ boxes: FC<IconProps>;
21
+ branch: FC<IconProps>;
22
+ building: FC<IconProps>;
23
+ calendar: FC<IconProps>;
24
+ check: FC<IconProps>;
25
+ cheveron: FC<IconProps>;
26
+ "circle-dot": FC<IconProps>;
27
+ clock: FC<IconProps>;
28
+ code: FC<IconProps>;
29
+ columns: FC<IconProps>;
30
+ "columns-3": FC<IconProps>;
31
+ command: FC<IconProps>;
32
+ company: FC<IconProps>;
33
+ copy: FC<IconProps>;
34
+ cpu: FC<IconProps>;
35
+ "credit-card": FC<IconProps>;
36
+ database: FC<IconProps>;
37
+ dbtable: FC<IconProps>;
38
+ device: FC<IconProps>;
39
+ dot: FC<IconProps>;
40
+ down: FC<IconProps>;
41
+ download: FC<IconProps>;
42
+ edit: FC<IconProps>;
43
+ email: FC<IconProps>;
44
+ entity: FC<IconProps>;
45
+ external: FC<IconProps>;
46
+ eye: FC<IconProps>;
47
+ eyeOff: FC<IconProps>;
48
+ field: FC<IconProps>;
49
+ file: FC<IconProps>;
50
+ "file-diff": FC<IconProps>;
51
+ filter: FC<IconProps>;
52
+ flow: FC<IconProps>;
53
+ folder: FC<IconProps>;
54
+ "git-branch": FC<IconProps>;
55
+ globe: FC<IconProps>;
56
+ grid: FC<IconProps>;
57
+ group: FC<IconProps>;
58
+ handlers: FC<IconProps>;
59
+ hash: FC<IconProps>;
60
+ home: FC<IconProps>;
61
+ idp: FC<IconProps>;
62
+ inbox: FC<IconProps>;
63
+ info: FC<IconProps>;
64
+ jobs: FC<IconProps>;
65
+ key: FC<IconProps>;
66
+ "key-round": FC<IconProps>;
67
+ layers: FC<IconProps>;
68
+ layout: FC<IconProps>;
69
+ "layout-dashboard": FC<IconProps>;
70
+ leads: FC<IconProps>;
71
+ left: FC<IconProps>;
72
+ link: FC<IconProps>;
73
+ list: FC<IconProps>;
74
+ "list-checks": FC<IconProps>;
75
+ loader: FC<IconProps>;
76
+ lock: FC<IconProps>;
77
+ log: FC<IconProps>;
78
+ "log-in": FC<IconProps>;
79
+ logout: FC<IconProps>;
80
+ menu: FC<IconProps>;
81
+ minus: FC<IconProps>;
82
+ moon: FC<IconProps>;
83
+ more: FC<IconProps>;
84
+ package: FC<IconProps>;
85
+ paperclip: FC<IconProps>;
86
+ pipeline: FC<IconProps>;
87
+ play: FC<IconProps>;
88
+ "play-circle": FC<IconProps>;
89
+ plus: FC<IconProps>;
90
+ "plus-circle": FC<IconProps>;
91
+ "receipt-text": FC<IconProps>;
92
+ refresh: FC<IconProps>;
93
+ repeat: FC<IconProps>;
94
+ right: FC<IconProps>;
95
+ save: FC<IconProps>;
96
+ sched: FC<IconProps>;
97
+ search: FC<IconProps>;
98
+ settings: FC<IconProps>;
99
+ "settings-2": FC<IconProps>;
100
+ shield: FC<IconProps>;
101
+ "shield-check": FC<IconProps>;
102
+ "shield-plus": FC<IconProps>;
103
+ "shopping-cart": FC<IconProps>;
104
+ sliders: FC<IconProps>;
105
+ "sliders-horizontal": FC<IconProps>;
106
+ sort: FC<IconProps>;
107
+ sparkle: FC<IconProps>;
108
+ star: FC<IconProps>;
109
+ sun: FC<IconProps>;
110
+ tag: FC<IconProps>;
111
+ tags: FC<IconProps>;
112
+ tenant: FC<IconProps>;
113
+ "toggle-right": FC<IconProps>;
114
+ trash: FC<IconProps>;
115
+ "trash-2": FC<IconProps>;
116
+ "undo-2": FC<IconProps>;
117
+ up: FC<IconProps>;
118
+ upload: FC<IconProps>;
119
+ user: FC<IconProps>;
120
+ "user-plus": FC<IconProps>;
121
+ users: FC<IconProps>;
122
+ "users-round": FC<IconProps>;
123
+ "wallet-cards": FC<IconProps>;
124
+ warning: FC<IconProps>;
125
+ x: FC<IconProps>;
126
+ zap: FC<IconProps>;
127
127
  };
128
128
  export type IconName = keyof typeof Icon;
@@ -1,9 +1,20 @@
1
- import type { CSSProperties } from "react";
1
+ import { type CSSProperties } from "react";
2
2
  interface DynamicIconProps {
3
3
  name: string;
4
4
  size?: number | string;
5
5
  className?: string;
6
6
  style?: CSSProperties;
7
7
  }
8
+ /**
9
+ * Resolve and render a DSL `icon:` name. Subscribes to the icon registry via
10
+ * useSyncExternalStore so a late or replaced registry (identity switch
11
+ * re-fetch) re-renders every mounted icon (plan §5).
12
+ *
13
+ * Precedence (plan §1):
14
+ * 1. registry entry for `name` (svg | url | lucide) - consumer-declared DATA
15
+ * 2. built-in glyph `Icon[name]` (the bundled ~119)
16
+ * 3. literal `lucide:<name>` prefix - lazy Lucide
17
+ * 4. fallback `folder`
18
+ */
8
19
  export declare function DynamicIcon({ name, size, className, style }: DynamicIconProps): import("react").JSX.Element;
9
20
  export {};
@@ -0,0 +1,16 @@
1
+ import { type CSSProperties } from "react";
2
+ interface LucideIconProps {
3
+ /** Lucide icon name, e.g. "route-off". */
4
+ name: string;
5
+ size?: number;
6
+ className?: string;
7
+ style?: CSSProperties;
8
+ }
9
+ /**
10
+ * Render a Lucide glyph by name, loading both the import map and the icon's
11
+ * chunk lazily on first use (lucide-react stays out of the eager bundle). An
12
+ * unknown Lucide name falls back to the built-in `folder` glyph - the same miss
13
+ * behaviour as the rest of the resolver (plan §6).
14
+ */
15
+ export declare function LucideIcon({ name, size, className, style }: LucideIconProps): import("react").JSX.Element | null;
16
+ export {};