@declarion/react 0.6.11 → 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.
- package/README.md +31 -0
- package/dist-lib/{DraggableChildrenTable-CdzxxoTe.js → DraggableChildrenTable-rb6uaMOV.js} +52 -51
- package/dist-lib/DynamicIcon-DCRdxxZ7.js +260 -0
- package/dist-lib/components/layout/Rail.d.ts +1 -2
- package/dist-lib/components/primitives/Icons.d.ts +119 -119
- package/dist-lib/components/shared/DynamicIcon.d.ts +12 -1
- package/dist-lib/components/shared/LucideIcon.d.ts +16 -0
- package/dist-lib/{dataTableStyles-zH3M7xdm.js → dataTableStyles-EMyLDQRB.js} +1291 -1986
- package/dist-lib/icons.d.ts +4 -0
- package/dist-lib/icons.js +2 -0
- package/dist-lib/index.d.ts +2 -0
- package/dist-lib/index.js +4987 -4971
- package/dist-lib/stores/icon-registry.d.ts +40 -0
- package/dist-lib/types/schema.d.ts +11 -0
- package/package.json +7 -1
|
@@ -5,124 +5,124 @@ export type IconProps = {
|
|
|
5
5
|
style?: CSSProperties;
|
|
6
6
|
};
|
|
7
7
|
export declare const Icon: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
|
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 {};
|