@alea-design/ui 0.1.1 → 0.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/README.md +7 -1
- package/dist/components/accordion/Accordion.js +29 -0
- package/dist/components/ai/AI.d.ts +5 -1
- package/dist/components/ai/AI.js +187 -0
- package/dist/components/app/AppParts.d.ts +16 -4
- package/dist/components/app/AppParts.js +134 -0
- package/dist/components/button/Button.d.ts +1 -1
- package/dist/components/button/Button.js +137 -0
- package/dist/components/button/Groups.d.ts +1 -1
- package/dist/components/button/Groups.js +112 -0
- package/dist/components/card/Card.d.ts +3 -2
- package/dist/components/card/Card.js +47 -0
- package/dist/components/chat/Chat.d.ts +4 -2
- package/dist/components/chat/Chat.js +275 -0
- package/dist/components/choice/Choice.js +69 -0
- package/dist/components/color/Color.d.ts +3 -3
- package/dist/components/color/Color.js +98 -0
- package/dist/components/combobox/Autocomplete.d.ts +5 -5
- package/dist/components/combobox/Autocomplete.js +126 -0
- package/dist/components/combobox/ComboBox.d.ts +4 -4
- package/dist/components/combobox/ComboBox.js +112 -0
- package/dist/components/combobox/Highlight.js +50 -0
- package/dist/components/command/CommandPalette.d.ts +10 -3
- package/dist/components/command/CommandPalette.js +56 -0
- package/dist/components/content/Content.d.ts +1 -1
- package/dist/components/content/Content.js +125 -0
- package/dist/components/data/Data.js +79 -0
- package/dist/components/date/Date.js +109 -0
- package/dist/components/display/Display.d.ts +5 -3
- package/dist/components/display/Display.js +89 -0
- package/dist/components/display/Display2.d.ts +3 -1
- package/dist/components/display/Display2.js +75 -0
- package/dist/components/emoji/EmojiPicker.js +52 -0
- package/dist/components/emoji/emoji-data.js +27 -0
- package/dist/components/extras/CodeSteps.d.ts +3 -0
- package/dist/components/extras/CodeSteps.js +19 -0
- package/dist/components/extras/Extras.d.ts +1 -1
- package/dist/components/extras/Extras.js +116 -0
- package/dist/components/feedback/Feedback.d.ts +11 -8
- package/dist/components/feedback/Feedback.js +185 -0
- package/dist/components/feedback/Spinner.js +18 -0
- package/dist/components/feedback/Status.d.ts +6 -2
- package/dist/components/feedback/Status.js +48 -0
- package/dist/components/field/Field.d.ts +1 -1
- package/dist/components/field/Field.js +187 -0
- package/dist/components/field/FieldLoading.d.ts +1 -1
- package/dist/components/field/FieldLoading.js +18 -0
- package/dist/components/filter/FilterBar.js +96 -0
- package/dist/components/form/Form.d.ts +5 -5
- package/dist/components/form/Form.js +53 -0
- package/dist/components/icon/Icon.d.ts +2 -2
- package/dist/components/icon/Icon.js +66 -0
- package/dist/components/icon/icon-cells.js +39 -0
- package/dist/components/icon/icon-contexts.d.ts +1 -1
- package/dist/components/icon/icon-contexts.js +38 -0
- package/dist/components/icon/icon-names.d.ts +1 -1
- package/dist/components/icon/icon-names.js +376 -0
- package/dist/components/layout/Bento.d.ts +1 -1
- package/dist/components/layout/Bento.js +38 -0
- package/dist/components/layout/Layout.d.ts +1 -1
- package/dist/components/layout/Layout.js +54 -0
- package/dist/components/layout/Layout2.d.ts +36 -6
- package/dist/components/layout/Layout2.js +105 -0
- package/dist/components/layout/Layout3.js +35 -0
- package/dist/components/layout/Responsive.d.ts +1 -1
- package/dist/components/layout/Responsive.js +32 -0
- package/dist/components/list/List.d.ts +3 -2
- package/dist/components/list/List.js +82 -0
- package/dist/components/list/Lists2.d.ts +6 -4
- package/dist/components/list/Lists2.js +60 -0
- package/dist/components/media/Media.d.ts +8 -4
- package/dist/components/media/Media.js +188 -0
- package/dist/components/menu/Menu.d.ts +23 -12
- package/dist/components/menu/Menu.js +68 -0
- package/dist/components/more/More.d.ts +7 -7
- package/dist/components/more/More.js +182 -0
- package/dist/components/navigation/Navbar.d.ts +1 -1
- package/dist/components/navigation/Navbar.js +27 -0
- package/dist/components/navigation/Navigation.js +121 -0
- package/dist/components/navigation/Navigation2.d.ts +6 -2
- package/dist/components/navigation/Navigation2.js +355 -0
- package/dist/components/overlay/Drawer.d.ts +11 -6
- package/dist/components/overlay/Drawer.js +39 -0
- package/dist/components/overlay/Modal.d.ts +6 -3
- package/dist/components/overlay/Modal.js +27 -0
- package/dist/components/overlay/Overlay.d.ts +14 -9
- package/dist/components/overlay/Overlay.js +76 -0
- package/dist/components/overlay/Sheet.d.ts +11 -5
- package/dist/components/overlay/Sheet.js +52 -0
- package/dist/components/page/Page.d.ts +5 -5
- package/dist/components/page/Page.js +132 -0
- package/dist/components/page/PageParts.d.ts +5 -5
- package/dist/components/page/PageParts.js +109 -0
- package/dist/components/picker/Picker.d.ts +11 -11
- package/dist/components/picker/Picker.js +294 -0
- package/dist/components/picker/Wheel.js +132 -0
- package/dist/components/rating/Rating.d.ts +2 -1
- package/dist/components/rating/Rating.js +66 -0
- package/dist/components/select/Select.d.ts +8 -6
- package/dist/components/select/Select.js +146 -0
- package/dist/components/shell/AppShell.d.ts +3 -3
- package/dist/components/shell/AppShell.js +56 -0
- package/dist/components/shell/AppSidebar.d.ts +5 -5
- package/dist/components/shell/AppSidebar.js +62 -0
- package/dist/components/slider/Slider.d.ts +2 -1
- package/dist/components/slider/Slider.js +36 -0
- package/dist/components/surface/Surface.d.ts +16 -0
- package/dist/components/surface/Surface.js +7 -0
- package/dist/components/table/Table.d.ts +4 -3
- package/dist/components/table/Table.js +58 -0
- package/dist/components/tabs/Tabs.d.ts +1 -0
- package/dist/components/tabs/Tabs.js +120 -0
- package/dist/components/theme/Theme.d.ts +11 -6
- package/dist/components/theme/Theme.js +186 -0
- package/dist/components/theme/lens.js +104 -0
- package/dist/components/tree/Tree.js +303 -0
- package/dist/components/typography/Typography.js +43 -0
- package/dist/components/upload/Upload.js +71 -0
- package/dist/components/work/Ops.js +24 -0
- package/dist/components/work/Work.d.ts +4 -2
- package/dist/components/work/Work.js +241 -0
- package/dist/css/accordion.css +1 -0
- package/dist/css/ai.css +1 -0
- package/dist/css/app.css +1 -0
- package/dist/css/base.css +1 -0
- package/dist/css/button.css +1 -0
- package/dist/css/card.css +1 -0
- package/dist/css/chat.css +1 -0
- package/dist/css/choice.css +1 -0
- package/dist/css/color.css +1 -0
- package/dist/css/combobox.css +1 -0
- package/dist/css/command.css +1 -0
- package/dist/css/content.css +1 -0
- package/dist/css/data.css +1 -0
- package/dist/css/date.css +1 -0
- package/dist/css/display.css +1 -0
- package/dist/css/emoji.css +1 -0
- package/dist/css/extras.css +1 -0
- package/dist/css/feedback.css +1 -0
- package/dist/css/field.css +1 -0
- package/dist/css/filter.css +1 -0
- package/dist/css/form.css +1 -0
- package/dist/css/groups.json +346 -0
- package/dist/css/icon.css +1 -0
- package/dist/css/layout.css +1 -0
- package/dist/css/list.css +1 -0
- package/dist/css/media.css +1 -0
- package/dist/css/menu.css +1 -0
- package/dist/css/more.css +1 -0
- package/dist/css/navigation.css +1 -0
- package/dist/css/overlay.css +1 -0
- package/dist/css/page.css +1 -0
- package/dist/css/picker.css +1 -0
- package/dist/css/rating.css +1 -0
- package/dist/css/select.css +1 -0
- package/dist/css/shell.css +1 -0
- package/dist/css/slider.css +1 -0
- package/dist/css/surface.css +1 -0
- package/dist/css/table.css +1 -0
- package/dist/css/tabs.css +1 -0
- package/dist/css/tree.css +1 -0
- package/dist/css/typography.css +1 -0
- package/dist/css/upload.css +1 -0
- package/dist/css/work.css +1 -0
- package/dist/i18n/strings.js +842 -0
- package/dist/index.d.ts +71 -70
- package/dist/index.js +398 -7436
- package/dist/styles.css +1 -1
- package/dist/utils/Blueprint.js +131 -0
- package/dist/utils/DotField.js +32 -0
- package/dist/utils/attr.d.ts +1 -1
- package/dist/utils/attr.js +18 -0
- package/dist/utils/blueprintScene.js +161 -0
- package/dist/utils/controlled.js +11 -0
- package/dist/utils/cx.js +11 -0
- package/dist/utils/inert.js +9 -0
- package/dist/utils/refs.d.ts +3 -0
- package/dist/utils/refs.js +11 -0
- package/dist/utils/responsive.js +12 -0
- package/dist/utils/scrollEdges.js +31 -0
- package/dist/utils/space.js +10 -0
- package/dist/utils/vocabulary.d.ts +6 -0
- package/dist/utils/vocabulary.js +17 -0
- package/package.json +12 -8
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const r = [
|
|
3
|
+
"search",
|
|
4
|
+
"x",
|
|
5
|
+
"check",
|
|
6
|
+
"chevron-down",
|
|
7
|
+
"chevron-up",
|
|
8
|
+
"chevron-left",
|
|
9
|
+
"chevron-right",
|
|
10
|
+
"chevrons-left",
|
|
11
|
+
"chevrons-right",
|
|
12
|
+
"arrow-left",
|
|
13
|
+
"arrow-right",
|
|
14
|
+
"arrow-up",
|
|
15
|
+
"arrow-down",
|
|
16
|
+
"arrow-up-right",
|
|
17
|
+
"plus",
|
|
18
|
+
"minus",
|
|
19
|
+
"ellipsis",
|
|
20
|
+
"ellipsis-vertical",
|
|
21
|
+
"menu",
|
|
22
|
+
"grip-vertical",
|
|
23
|
+
"more-horizontal",
|
|
24
|
+
"house",
|
|
25
|
+
"settings",
|
|
26
|
+
"user",
|
|
27
|
+
"users",
|
|
28
|
+
"bell",
|
|
29
|
+
"mail",
|
|
30
|
+
"message-square",
|
|
31
|
+
"calendar",
|
|
32
|
+
"clock",
|
|
33
|
+
"star",
|
|
34
|
+
"heart",
|
|
35
|
+
"bookmark",
|
|
36
|
+
"share-2",
|
|
37
|
+
"link-2",
|
|
38
|
+
"external-link",
|
|
39
|
+
"eye",
|
|
40
|
+
"eye-off",
|
|
41
|
+
"lock",
|
|
42
|
+
"lock-open",
|
|
43
|
+
"key",
|
|
44
|
+
"shield",
|
|
45
|
+
"shield-check",
|
|
46
|
+
"log-in",
|
|
47
|
+
"log-out",
|
|
48
|
+
"info",
|
|
49
|
+
"circle-alert",
|
|
50
|
+
"circle-check",
|
|
51
|
+
"circle-x",
|
|
52
|
+
"triangle-alert",
|
|
53
|
+
"circle-help",
|
|
54
|
+
"ban",
|
|
55
|
+
"trash-2",
|
|
56
|
+
"pencil",
|
|
57
|
+
"copy",
|
|
58
|
+
"clipboard",
|
|
59
|
+
"download",
|
|
60
|
+
"upload",
|
|
61
|
+
"file",
|
|
62
|
+
"file-text",
|
|
63
|
+
"folder",
|
|
64
|
+
"image",
|
|
65
|
+
"paperclip",
|
|
66
|
+
"save",
|
|
67
|
+
"printer",
|
|
68
|
+
"filter",
|
|
69
|
+
"sliders-horizontal",
|
|
70
|
+
"list",
|
|
71
|
+
"list-ordered",
|
|
72
|
+
"layout-grid",
|
|
73
|
+
"table-2",
|
|
74
|
+
"columns-3",
|
|
75
|
+
"kanban",
|
|
76
|
+
"sun",
|
|
77
|
+
"moon",
|
|
78
|
+
"monitor",
|
|
79
|
+
"smartphone",
|
|
80
|
+
"tablet",
|
|
81
|
+
"laptop",
|
|
82
|
+
"bold",
|
|
83
|
+
"italic",
|
|
84
|
+
"underline",
|
|
85
|
+
"strikethrough",
|
|
86
|
+
"code",
|
|
87
|
+
"heading-2",
|
|
88
|
+
"quote",
|
|
89
|
+
"align-left",
|
|
90
|
+
"align-center",
|
|
91
|
+
"align-right",
|
|
92
|
+
"link",
|
|
93
|
+
"play",
|
|
94
|
+
"pause",
|
|
95
|
+
"skip-forward",
|
|
96
|
+
"volume-2",
|
|
97
|
+
"mic",
|
|
98
|
+
"camera",
|
|
99
|
+
"video",
|
|
100
|
+
"refresh-cw",
|
|
101
|
+
"rotate-ccw",
|
|
102
|
+
"loader-circle",
|
|
103
|
+
"zoom-in",
|
|
104
|
+
"zoom-out",
|
|
105
|
+
"maximize-2",
|
|
106
|
+
"minimize-2",
|
|
107
|
+
"move",
|
|
108
|
+
"map-pin",
|
|
109
|
+
"globe",
|
|
110
|
+
"compass",
|
|
111
|
+
"navigation",
|
|
112
|
+
"shopping-cart",
|
|
113
|
+
"shopping-bag",
|
|
114
|
+
"credit-card",
|
|
115
|
+
"wallet",
|
|
116
|
+
"tag",
|
|
117
|
+
"gift",
|
|
118
|
+
"package",
|
|
119
|
+
"truck",
|
|
120
|
+
"chart-line",
|
|
121
|
+
"chart-bar",
|
|
122
|
+
"chart-pie",
|
|
123
|
+
"trending-up",
|
|
124
|
+
"trending-down",
|
|
125
|
+
"activity",
|
|
126
|
+
"gauge",
|
|
127
|
+
"palette",
|
|
128
|
+
"paintbrush",
|
|
129
|
+
"type",
|
|
130
|
+
"contrast",
|
|
131
|
+
"swatch-book",
|
|
132
|
+
"pipette",
|
|
133
|
+
"layers",
|
|
134
|
+
"component",
|
|
135
|
+
"frame",
|
|
136
|
+
"figma",
|
|
137
|
+
"github",
|
|
138
|
+
"sparkles",
|
|
139
|
+
"zap",
|
|
140
|
+
"rocket",
|
|
141
|
+
"flag",
|
|
142
|
+
"award",
|
|
143
|
+
"trophy",
|
|
144
|
+
"target",
|
|
145
|
+
"lightbulb",
|
|
146
|
+
"thumbs-up",
|
|
147
|
+
"thumbs-down",
|
|
148
|
+
"smile",
|
|
149
|
+
"frown",
|
|
150
|
+
"inbox",
|
|
151
|
+
"send",
|
|
152
|
+
"archive",
|
|
153
|
+
"reply",
|
|
154
|
+
"circle",
|
|
155
|
+
"square",
|
|
156
|
+
"triangle",
|
|
157
|
+
"hexagon",
|
|
158
|
+
"dot",
|
|
159
|
+
"cloud",
|
|
160
|
+
"wifi",
|
|
161
|
+
"battery",
|
|
162
|
+
"cpu",
|
|
163
|
+
"database",
|
|
164
|
+
"server",
|
|
165
|
+
"hard-drive",
|
|
166
|
+
"terminal",
|
|
167
|
+
"book-open",
|
|
168
|
+
"graduation-cap",
|
|
169
|
+
"briefcase",
|
|
170
|
+
"building-2",
|
|
171
|
+
"phone",
|
|
172
|
+
"qr-code",
|
|
173
|
+
"scan-line",
|
|
174
|
+
"toggle-left",
|
|
175
|
+
"toggle-right",
|
|
176
|
+
"ruler",
|
|
177
|
+
"snowflake",
|
|
178
|
+
"arrow-down-left",
|
|
179
|
+
"store",
|
|
180
|
+
"cloud-upload",
|
|
181
|
+
"handshake",
|
|
182
|
+
"layout-list",
|
|
183
|
+
"leaf",
|
|
184
|
+
"life-buoy",
|
|
185
|
+
"newspaper",
|
|
186
|
+
"piggy-bank"
|
|
187
|
+
], i = {
|
|
188
|
+
search: () => import("lucide-react/dist/esm/icons/search.js"),
|
|
189
|
+
x: () => import("lucide-react/dist/esm/icons/x.js"),
|
|
190
|
+
check: () => import("lucide-react/dist/esm/icons/check.js"),
|
|
191
|
+
"chevron-down": () => import("lucide-react/dist/esm/icons/chevron-down.js"),
|
|
192
|
+
"chevron-up": () => import("lucide-react/dist/esm/icons/chevron-up.js"),
|
|
193
|
+
"chevron-left": () => import("lucide-react/dist/esm/icons/chevron-left.js"),
|
|
194
|
+
"chevron-right": () => import("lucide-react/dist/esm/icons/chevron-right.js"),
|
|
195
|
+
"chevrons-left": () => import("lucide-react/dist/esm/icons/chevrons-left.js"),
|
|
196
|
+
"chevrons-right": () => import("lucide-react/dist/esm/icons/chevrons-right.js"),
|
|
197
|
+
"arrow-left": () => import("lucide-react/dist/esm/icons/arrow-left.js"),
|
|
198
|
+
"arrow-right": () => import("lucide-react/dist/esm/icons/arrow-right.js"),
|
|
199
|
+
"arrow-up": () => import("lucide-react/dist/esm/icons/arrow-up.js"),
|
|
200
|
+
"arrow-down": () => import("lucide-react/dist/esm/icons/arrow-down.js"),
|
|
201
|
+
"arrow-up-right": () => import("lucide-react/dist/esm/icons/arrow-up-right.js"),
|
|
202
|
+
plus: () => import("lucide-react/dist/esm/icons/plus.js"),
|
|
203
|
+
minus: () => import("lucide-react/dist/esm/icons/minus.js"),
|
|
204
|
+
ellipsis: () => import("lucide-react/dist/esm/icons/ellipsis.js"),
|
|
205
|
+
"ellipsis-vertical": () => import("lucide-react/dist/esm/icons/ellipsis-vertical.js"),
|
|
206
|
+
menu: () => import("lucide-react/dist/esm/icons/menu.js"),
|
|
207
|
+
"grip-vertical": () => import("lucide-react/dist/esm/icons/grip-vertical.js"),
|
|
208
|
+
"more-horizontal": () => import("lucide-react/dist/esm/icons/more-horizontal.js"),
|
|
209
|
+
house: () => import("lucide-react/dist/esm/icons/house.js"),
|
|
210
|
+
settings: () => import("lucide-react/dist/esm/icons/settings.js"),
|
|
211
|
+
user: () => import("lucide-react/dist/esm/icons/user.js"),
|
|
212
|
+
users: () => import("lucide-react/dist/esm/icons/users.js"),
|
|
213
|
+
bell: () => import("lucide-react/dist/esm/icons/bell.js"),
|
|
214
|
+
mail: () => import("lucide-react/dist/esm/icons/mail.js"),
|
|
215
|
+
"message-square": () => import("lucide-react/dist/esm/icons/message-square.js"),
|
|
216
|
+
calendar: () => import("lucide-react/dist/esm/icons/calendar.js"),
|
|
217
|
+
clock: () => import("lucide-react/dist/esm/icons/clock.js"),
|
|
218
|
+
star: () => import("lucide-react/dist/esm/icons/star.js"),
|
|
219
|
+
heart: () => import("lucide-react/dist/esm/icons/heart.js"),
|
|
220
|
+
bookmark: () => import("lucide-react/dist/esm/icons/bookmark.js"),
|
|
221
|
+
"share-2": () => import("lucide-react/dist/esm/icons/share-2.js"),
|
|
222
|
+
"link-2": () => import("lucide-react/dist/esm/icons/link-2.js"),
|
|
223
|
+
"external-link": () => import("lucide-react/dist/esm/icons/external-link.js"),
|
|
224
|
+
eye: () => import("lucide-react/dist/esm/icons/eye.js"),
|
|
225
|
+
"eye-off": () => import("lucide-react/dist/esm/icons/eye-off.js"),
|
|
226
|
+
lock: () => import("lucide-react/dist/esm/icons/lock.js"),
|
|
227
|
+
"lock-open": () => import("lucide-react/dist/esm/icons/lock-open.js"),
|
|
228
|
+
key: () => import("lucide-react/dist/esm/icons/key.js"),
|
|
229
|
+
shield: () => import("lucide-react/dist/esm/icons/shield.js"),
|
|
230
|
+
"shield-check": () => import("lucide-react/dist/esm/icons/shield-check.js"),
|
|
231
|
+
"log-in": () => import("lucide-react/dist/esm/icons/log-in.js"),
|
|
232
|
+
"log-out": () => import("lucide-react/dist/esm/icons/log-out.js"),
|
|
233
|
+
info: () => import("lucide-react/dist/esm/icons/info.js"),
|
|
234
|
+
"circle-alert": () => import("lucide-react/dist/esm/icons/circle-alert.js"),
|
|
235
|
+
"circle-check": () => import("lucide-react/dist/esm/icons/circle-check.js"),
|
|
236
|
+
"circle-x": () => import("lucide-react/dist/esm/icons/circle-x.js"),
|
|
237
|
+
"triangle-alert": () => import("lucide-react/dist/esm/icons/triangle-alert.js"),
|
|
238
|
+
"circle-help": () => import("lucide-react/dist/esm/icons/circle-help.js"),
|
|
239
|
+
ban: () => import("lucide-react/dist/esm/icons/ban.js"),
|
|
240
|
+
"trash-2": () => import("lucide-react/dist/esm/icons/trash-2.js"),
|
|
241
|
+
pencil: () => import("lucide-react/dist/esm/icons/pencil.js"),
|
|
242
|
+
copy: () => import("lucide-react/dist/esm/icons/copy.js"),
|
|
243
|
+
clipboard: () => import("lucide-react/dist/esm/icons/clipboard.js"),
|
|
244
|
+
download: () => import("lucide-react/dist/esm/icons/download.js"),
|
|
245
|
+
upload: () => import("lucide-react/dist/esm/icons/upload.js"),
|
|
246
|
+
file: () => import("lucide-react/dist/esm/icons/file.js"),
|
|
247
|
+
"file-text": () => import("lucide-react/dist/esm/icons/file-text.js"),
|
|
248
|
+
folder: () => import("lucide-react/dist/esm/icons/folder.js"),
|
|
249
|
+
image: () => import("lucide-react/dist/esm/icons/image.js"),
|
|
250
|
+
paperclip: () => import("lucide-react/dist/esm/icons/paperclip.js"),
|
|
251
|
+
save: () => import("lucide-react/dist/esm/icons/save.js"),
|
|
252
|
+
printer: () => import("lucide-react/dist/esm/icons/printer.js"),
|
|
253
|
+
filter: () => import("lucide-react/dist/esm/icons/filter.js"),
|
|
254
|
+
"sliders-horizontal": () => import("lucide-react/dist/esm/icons/sliders-horizontal.js"),
|
|
255
|
+
list: () => import("lucide-react/dist/esm/icons/list.js"),
|
|
256
|
+
"list-ordered": () => import("lucide-react/dist/esm/icons/list-ordered.js"),
|
|
257
|
+
"layout-grid": () => import("lucide-react/dist/esm/icons/layout-grid.js"),
|
|
258
|
+
"table-2": () => import("lucide-react/dist/esm/icons/table-2.js"),
|
|
259
|
+
"columns-3": () => import("lucide-react/dist/esm/icons/columns-3.js"),
|
|
260
|
+
kanban: () => import("lucide-react/dist/esm/icons/kanban.js"),
|
|
261
|
+
sun: () => import("lucide-react/dist/esm/icons/sun.js"),
|
|
262
|
+
moon: () => import("lucide-react/dist/esm/icons/moon.js"),
|
|
263
|
+
monitor: () => import("lucide-react/dist/esm/icons/monitor.js"),
|
|
264
|
+
smartphone: () => import("lucide-react/dist/esm/icons/smartphone.js"),
|
|
265
|
+
tablet: () => import("lucide-react/dist/esm/icons/tablet.js"),
|
|
266
|
+
laptop: () => import("lucide-react/dist/esm/icons/laptop.js"),
|
|
267
|
+
bold: () => import("lucide-react/dist/esm/icons/bold.js"),
|
|
268
|
+
italic: () => import("lucide-react/dist/esm/icons/italic.js"),
|
|
269
|
+
underline: () => import("lucide-react/dist/esm/icons/underline.js"),
|
|
270
|
+
strikethrough: () => import("lucide-react/dist/esm/icons/strikethrough.js"),
|
|
271
|
+
code: () => import("lucide-react/dist/esm/icons/code.js"),
|
|
272
|
+
"heading-2": () => import("lucide-react/dist/esm/icons/heading-2.js"),
|
|
273
|
+
quote: () => import("lucide-react/dist/esm/icons/quote.js"),
|
|
274
|
+
"align-left": () => import("lucide-react/dist/esm/icons/align-left.js"),
|
|
275
|
+
"align-center": () => import("lucide-react/dist/esm/icons/align-center.js"),
|
|
276
|
+
"align-right": () => import("lucide-react/dist/esm/icons/align-right.js"),
|
|
277
|
+
link: () => import("lucide-react/dist/esm/icons/link.js"),
|
|
278
|
+
play: () => import("lucide-react/dist/esm/icons/play.js"),
|
|
279
|
+
pause: () => import("lucide-react/dist/esm/icons/pause.js"),
|
|
280
|
+
"skip-forward": () => import("lucide-react/dist/esm/icons/skip-forward.js"),
|
|
281
|
+
"volume-2": () => import("lucide-react/dist/esm/icons/volume-2.js"),
|
|
282
|
+
mic: () => import("lucide-react/dist/esm/icons/mic.js"),
|
|
283
|
+
camera: () => import("lucide-react/dist/esm/icons/camera.js"),
|
|
284
|
+
video: () => import("lucide-react/dist/esm/icons/video.js"),
|
|
285
|
+
"refresh-cw": () => import("lucide-react/dist/esm/icons/refresh-cw.js"),
|
|
286
|
+
"rotate-ccw": () => import("lucide-react/dist/esm/icons/rotate-ccw.js"),
|
|
287
|
+
"loader-circle": () => import("lucide-react/dist/esm/icons/loader-circle.js"),
|
|
288
|
+
"zoom-in": () => import("lucide-react/dist/esm/icons/zoom-in.js"),
|
|
289
|
+
"zoom-out": () => import("lucide-react/dist/esm/icons/zoom-out.js"),
|
|
290
|
+
"maximize-2": () => import("lucide-react/dist/esm/icons/maximize-2.js"),
|
|
291
|
+
"minimize-2": () => import("lucide-react/dist/esm/icons/minimize-2.js"),
|
|
292
|
+
move: () => import("lucide-react/dist/esm/icons/move.js"),
|
|
293
|
+
"map-pin": () => import("lucide-react/dist/esm/icons/map-pin.js"),
|
|
294
|
+
globe: () => import("lucide-react/dist/esm/icons/globe.js"),
|
|
295
|
+
compass: () => import("lucide-react/dist/esm/icons/compass.js"),
|
|
296
|
+
navigation: () => import("lucide-react/dist/esm/icons/navigation.js"),
|
|
297
|
+
"shopping-cart": () => import("lucide-react/dist/esm/icons/shopping-cart.js"),
|
|
298
|
+
"shopping-bag": () => import("lucide-react/dist/esm/icons/shopping-bag.js"),
|
|
299
|
+
"credit-card": () => import("lucide-react/dist/esm/icons/credit-card.js"),
|
|
300
|
+
wallet: () => import("lucide-react/dist/esm/icons/wallet.js"),
|
|
301
|
+
tag: () => import("lucide-react/dist/esm/icons/tag.js"),
|
|
302
|
+
gift: () => import("lucide-react/dist/esm/icons/gift.js"),
|
|
303
|
+
package: () => import("lucide-react/dist/esm/icons/package.js"),
|
|
304
|
+
truck: () => import("lucide-react/dist/esm/icons/truck.js"),
|
|
305
|
+
"chart-line": () => import("lucide-react/dist/esm/icons/chart-line.js"),
|
|
306
|
+
"chart-bar": () => import("lucide-react/dist/esm/icons/chart-bar.js"),
|
|
307
|
+
"chart-pie": () => import("lucide-react/dist/esm/icons/chart-pie.js"),
|
|
308
|
+
"trending-up": () => import("lucide-react/dist/esm/icons/trending-up.js"),
|
|
309
|
+
"trending-down": () => import("lucide-react/dist/esm/icons/trending-down.js"),
|
|
310
|
+
activity: () => import("lucide-react/dist/esm/icons/activity.js"),
|
|
311
|
+
gauge: () => import("lucide-react/dist/esm/icons/gauge.js"),
|
|
312
|
+
palette: () => import("lucide-react/dist/esm/icons/palette.js"),
|
|
313
|
+
paintbrush: () => import("lucide-react/dist/esm/icons/paintbrush.js"),
|
|
314
|
+
type: () => import("lucide-react/dist/esm/icons/type.js"),
|
|
315
|
+
contrast: () => import("lucide-react/dist/esm/icons/contrast.js"),
|
|
316
|
+
"swatch-book": () => import("lucide-react/dist/esm/icons/swatch-book.js"),
|
|
317
|
+
pipette: () => import("lucide-react/dist/esm/icons/pipette.js"),
|
|
318
|
+
layers: () => import("lucide-react/dist/esm/icons/layers.js"),
|
|
319
|
+
component: () => import("lucide-react/dist/esm/icons/component.js"),
|
|
320
|
+
frame: () => import("lucide-react/dist/esm/icons/frame.js"),
|
|
321
|
+
figma: () => import("lucide-react/dist/esm/icons/figma.js"),
|
|
322
|
+
github: () => import("lucide-react/dist/esm/icons/github.js"),
|
|
323
|
+
sparkles: () => import("lucide-react/dist/esm/icons/sparkles.js"),
|
|
324
|
+
zap: () => import("lucide-react/dist/esm/icons/zap.js"),
|
|
325
|
+
rocket: () => import("lucide-react/dist/esm/icons/rocket.js"),
|
|
326
|
+
flag: () => import("lucide-react/dist/esm/icons/flag.js"),
|
|
327
|
+
award: () => import("lucide-react/dist/esm/icons/award.js"),
|
|
328
|
+
trophy: () => import("lucide-react/dist/esm/icons/trophy.js"),
|
|
329
|
+
target: () => import("lucide-react/dist/esm/icons/target.js"),
|
|
330
|
+
lightbulb: () => import("lucide-react/dist/esm/icons/lightbulb.js"),
|
|
331
|
+
"thumbs-up": () => import("lucide-react/dist/esm/icons/thumbs-up.js"),
|
|
332
|
+
"thumbs-down": () => import("lucide-react/dist/esm/icons/thumbs-down.js"),
|
|
333
|
+
smile: () => import("lucide-react/dist/esm/icons/smile.js"),
|
|
334
|
+
frown: () => import("lucide-react/dist/esm/icons/frown.js"),
|
|
335
|
+
inbox: () => import("lucide-react/dist/esm/icons/inbox.js"),
|
|
336
|
+
send: () => import("lucide-react/dist/esm/icons/send.js"),
|
|
337
|
+
archive: () => import("lucide-react/dist/esm/icons/archive.js"),
|
|
338
|
+
reply: () => import("lucide-react/dist/esm/icons/reply.js"),
|
|
339
|
+
circle: () => import("lucide-react/dist/esm/icons/circle.js"),
|
|
340
|
+
square: () => import("lucide-react/dist/esm/icons/square.js"),
|
|
341
|
+
triangle: () => import("lucide-react/dist/esm/icons/triangle.js"),
|
|
342
|
+
hexagon: () => import("lucide-react/dist/esm/icons/hexagon.js"),
|
|
343
|
+
dot: () => import("lucide-react/dist/esm/icons/dot.js"),
|
|
344
|
+
cloud: () => import("lucide-react/dist/esm/icons/cloud.js"),
|
|
345
|
+
wifi: () => import("lucide-react/dist/esm/icons/wifi.js"),
|
|
346
|
+
battery: () => import("lucide-react/dist/esm/icons/battery.js"),
|
|
347
|
+
cpu: () => import("lucide-react/dist/esm/icons/cpu.js"),
|
|
348
|
+
database: () => import("lucide-react/dist/esm/icons/database.js"),
|
|
349
|
+
server: () => import("lucide-react/dist/esm/icons/server.js"),
|
|
350
|
+
"hard-drive": () => import("lucide-react/dist/esm/icons/hard-drive.js"),
|
|
351
|
+
terminal: () => import("lucide-react/dist/esm/icons/terminal.js"),
|
|
352
|
+
"book-open": () => import("lucide-react/dist/esm/icons/book-open.js"),
|
|
353
|
+
"graduation-cap": () => import("lucide-react/dist/esm/icons/graduation-cap.js"),
|
|
354
|
+
briefcase: () => import("lucide-react/dist/esm/icons/briefcase.js"),
|
|
355
|
+
"building-2": () => import("lucide-react/dist/esm/icons/building-2.js"),
|
|
356
|
+
phone: () => import("lucide-react/dist/esm/icons/phone.js"),
|
|
357
|
+
"qr-code": () => import("lucide-react/dist/esm/icons/qr-code.js"),
|
|
358
|
+
"scan-line": () => import("lucide-react/dist/esm/icons/scan-line.js"),
|
|
359
|
+
"toggle-left": () => import("lucide-react/dist/esm/icons/toggle-left.js"),
|
|
360
|
+
"toggle-right": () => import("lucide-react/dist/esm/icons/toggle-right.js"),
|
|
361
|
+
ruler: () => import("lucide-react/dist/esm/icons/ruler.js"),
|
|
362
|
+
snowflake: () => import("lucide-react/dist/esm/icons/snowflake.js"),
|
|
363
|
+
"arrow-down-left": () => import("lucide-react/dist/esm/icons/arrow-down-left.js"),
|
|
364
|
+
store: () => import("lucide-react/dist/esm/icons/store.js"),
|
|
365
|
+
"cloud-upload": () => import("lucide-react/dist/esm/icons/cloud-upload.js"),
|
|
366
|
+
handshake: () => import("lucide-react/dist/esm/icons/handshake.js"),
|
|
367
|
+
"layout-list": () => import("lucide-react/dist/esm/icons/layout-list.js"),
|
|
368
|
+
leaf: () => import("lucide-react/dist/esm/icons/leaf.js"),
|
|
369
|
+
"life-buoy": () => import("lucide-react/dist/esm/icons/life-buoy.js"),
|
|
370
|
+
newspaper: () => import("lucide-react/dist/esm/icons/newspaper.js"),
|
|
371
|
+
"piggy-bank": () => import("lucide-react/dist/esm/icons/piggy-bank.js")
|
|
372
|
+
};
|
|
373
|
+
export {
|
|
374
|
+
i as ICON_LOADERS,
|
|
375
|
+
r as ICON_NAMES
|
|
376
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ElementType, type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
-
import { type Responsive, type Space } from './Layout';
|
|
2
|
+
import { type Responsive, type Space } from './Layout.js';
|
|
3
3
|
export interface BentoGridProps extends HTMLAttributes<HTMLElement> {
|
|
4
4
|
/** Columns per breakpoint. Default { base: 1, sm: 2, lg: 4 }. */
|
|
5
5
|
columns?: Responsive<number>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as t, jsxs as j } from "react/jsx-runtime";
|
|
3
|
+
import { createElement as m } from "react";
|
|
4
|
+
import { cx as p } from "../../utils/cx.js";
|
|
5
|
+
import { responsiveVars as d } from "./Layout.js";
|
|
6
|
+
const B = (a) => `var(--alea-space-${String(a).replace(".", "-")})`;
|
|
7
|
+
function G({ columns: a = { base: 1, sm: 2, lg: 4 }, rowHeight: c = 200, gap: l = 4, as: e = "div", className: n, style: o, ...i }) {
|
|
8
|
+
return m(e, {
|
|
9
|
+
...i,
|
|
10
|
+
className: p("alea-bento alea-r-gap alea-r-cols", n),
|
|
11
|
+
style: { "--alea-bento-row": `${c}px`, ...d("alea-gap", l, B), ...d("alea-cols", a, (s) => `repeat(${s}, minmax(0, 1fr))`), ...o }
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function H({ colSpan: a, rowSpan: c, eyebrow: l, title: e, description: n, icon: o, visual: i, href: s, variant: u = "default", padding: b = "normal", headingLevel: N = 3, as: v = "article", className: $, style: f, children: x, ...g }) {
|
|
15
|
+
const h = `h${N}`;
|
|
16
|
+
return m(
|
|
17
|
+
v,
|
|
18
|
+
{
|
|
19
|
+
...g,
|
|
20
|
+
className: p("alea-card alea-bento-card", a !== void 0 && "alea-r-span", c !== void 0 && "alea-r-rspan", $),
|
|
21
|
+
"data-variant": u,
|
|
22
|
+
"data-padding": b,
|
|
23
|
+
"data-interactive": s ? !0 : void 0,
|
|
24
|
+
style: { ...d("alea-span", a, (r) => `span ${r} / span ${r}`), ...d("alea-rspan", c, (r) => `span ${r} / span ${r}`), ...f }
|
|
25
|
+
},
|
|
26
|
+
i ? /* @__PURE__ */ t("div", { className: "alea-bento-visual", children: i }) : null,
|
|
27
|
+
e || n || l ? /* @__PURE__ */ j("div", { className: "alea-bento-text", children: [
|
|
28
|
+
l ? /* @__PURE__ */ t("p", { className: "alea-bento-eyebrow", children: l }) : null,
|
|
29
|
+
e ? m(h, { className: "alea-bento-title" }, o ? /* @__PURE__ */ t("span", { className: "alea-bento-icon", "aria-hidden": "true", children: o }) : null, s ? /* @__PURE__ */ t("a", { href: s, className: "alea-card-link alea-focus-ring", children: e }) : e) : null,
|
|
30
|
+
n ? /* @__PURE__ */ t("p", { className: "alea-bento-desc", children: n }) : null
|
|
31
|
+
] }) : null,
|
|
32
|
+
x
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
H as BentoCard,
|
|
37
|
+
G as BentoGrid
|
|
38
|
+
};
|
|
@@ -2,7 +2,7 @@ import { type ElementType, type HTMLAttributes, type ReactNode } from 'react';
|
|
|
2
2
|
import { type SeparatorProps } from 'react-aria-components';
|
|
3
3
|
/** Steps of the 4 px space scale (--alea-space-*). */
|
|
4
4
|
export type Space = 0 | 0.5 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 12 | 16 | 20 | 24;
|
|
5
|
-
import type { Breakpoint, Responsive } from '../../utils/responsive';
|
|
5
|
+
import type { Breakpoint, Responsive } from '../../utils/responsive.js';
|
|
6
6
|
export type { Breakpoint, Responsive };
|
|
7
7
|
/** CSS variables --{name}-{bp} for a responsive value; the CSS picks the right one per breakpoint. */
|
|
8
8
|
export declare function responsiveVars<T>(name: string, value: Responsive<T> | undefined, toCss: (v: T) => string): Record<string, string>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as $, jsx as u } from "react/jsx-runtime";
|
|
3
|
+
import { createElement as m } from "react";
|
|
4
|
+
import { Separator as g } from "react-aria-components";
|
|
5
|
+
import { cx as c } from "../../utils/cx.js";
|
|
6
|
+
const o = (a) => `var(--alea-space-${String(a).replace(".", "-")})`, x = ["base", "sm", "md", "lg", "xl"], N = (a) => typeof a == "object" && a !== null && !Array.isArray(a);
|
|
7
|
+
function f(a, e, t) {
|
|
8
|
+
if (e === void 0) return {};
|
|
9
|
+
const i = {};
|
|
10
|
+
let l;
|
|
11
|
+
for (const n of x) {
|
|
12
|
+
const r = N(e) ? e[n] : n === "base" ? e : void 0;
|
|
13
|
+
r !== void 0 && (l = t(r)), l !== void 0 && (i[`--${a}-${n}`] = l);
|
|
14
|
+
}
|
|
15
|
+
return i;
|
|
16
|
+
}
|
|
17
|
+
const y = (a) => a === void 0 ? {} : { paddingBlock: Array.isArray(a) ? `${o(a[0])} ${o(a[1])}` : o(a) };
|
|
18
|
+
function k({ as: a = "div", gap: e = 4, align: t, justify: i, paddingBlock: l, className: n, style: r, ...s }) {
|
|
19
|
+
return m(a, { ...s, className: c("alea-stack alea-r-gap", n), "data-align": t, "data-justify": i, style: { ...f("alea-gap", e, o), ...y(l), ...r } });
|
|
20
|
+
}
|
|
21
|
+
function z({ as: a = "div", gap: e = 2, align: t = "center", justify: i, wrap: l = !0, paddingBlock: n, className: r, style: s, ...d }) {
|
|
22
|
+
return m(a, { ...d, className: c("alea-inline alea-r-gap", r), "data-align": t, "data-justify": i, "data-wrap": l || void 0, style: { ...f("alea-gap", e, o), ...y(n), ...s } });
|
|
23
|
+
}
|
|
24
|
+
function A({ as: a = "div", gap: e = 4, direction: t = "row", align: i, justify: l, wrap: n, paddingBlock: r, className: s, style: d, ...v }) {
|
|
25
|
+
return m(a, { ...v, className: c("alea-flex alea-r-gap alea-r-dir", s), "data-align": i, "data-justify": l, "data-wrap": n || void 0, style: { ...f("alea-gap", e, o), ...f("alea-dir", t, String), ...y(r), ...d } });
|
|
26
|
+
}
|
|
27
|
+
function w({ as: a = "div", columns: e = "auto", minItemWidth: t = 240, gap: i = 4, stretch: l, className: n, style: r, ...s }) {
|
|
28
|
+
const d = (p) => p === "auto" ? `repeat(${l ? "auto-fit" : "auto-fill"}, minmax(min(${t}px, 100%), 1fr))` : `repeat(${p}, minmax(0, 1fr))`, v = (typeof e == "object" ? Object.values(e) : [e]).some((p) => typeof p == "number" && p >= 6);
|
|
29
|
+
return m(a, { ...s, "data-many": v || void 0, className: c("alea-grid alea-r-gap alea-r-cols", n), style: { ...f("alea-gap", i, o), ...f("alea-cols", e, d), ...r } });
|
|
30
|
+
}
|
|
31
|
+
function B({ as: a = "div", span: e, start: t, className: i, style: l, ...n }) {
|
|
32
|
+
return m(a, { ...n, className: c("alea-grid-item", e !== void 0 && "alea-r-span", t !== void 0 && "alea-r-start", i), style: { ...f("alea-span", e, (r) => r === "full" ? "1 / -1" : `span ${r} / span ${r}`), ...f("alea-start", t, String), ...l } });
|
|
33
|
+
}
|
|
34
|
+
function G({ as: a = "div", size: e = "xl", className: t, ...i }) {
|
|
35
|
+
return m(a, { ...i, className: c("alea-container", t), "data-size": e });
|
|
36
|
+
}
|
|
37
|
+
function I({ orientation: a = "horizontal", spacing: e = 0, label: t, labelPosition: i = "center", variant: l, className: n, style: r, ...s }) {
|
|
38
|
+
const d = a === "horizontal" ? `${o(e)} 0` : `0 ${o(e)}`;
|
|
39
|
+
return t && a === "horizontal" ? /* @__PURE__ */ $("div", { className: c("alea-divider-labeled", n), "data-position": i, "data-variant": l, style: { margin: d, ...r }, children: [
|
|
40
|
+
/* @__PURE__ */ u(g, { ...s, className: "alea-divider" }),
|
|
41
|
+
/* @__PURE__ */ u("span", { className: "alea-divider-label", children: t }),
|
|
42
|
+
/* @__PURE__ */ u(g, { ...s, className: "alea-divider", "aria-hidden": "true" })
|
|
43
|
+
] }) : /* @__PURE__ */ u(g, { ...s, orientation: a, "data-variant": l, className: c("alea-divider", n), style: { margin: d, ...r } });
|
|
44
|
+
}
|
|
45
|
+
export {
|
|
46
|
+
G as Container,
|
|
47
|
+
I as Divider,
|
|
48
|
+
A as Flex,
|
|
49
|
+
w as Grid,
|
|
50
|
+
B as GridItem,
|
|
51
|
+
z as Inline,
|
|
52
|
+
k as Stack,
|
|
53
|
+
f as responsiveVars
|
|
54
|
+
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { type CSSProperties, type ReactNode } from 'react';
|
|
2
|
+
import { type SurfaceRadius } from '../surface/Surface.js';
|
|
3
|
+
import type { Tone } from '../display/Display.js';
|
|
2
4
|
export interface AspectRatioProps {
|
|
3
5
|
/** width / height, e.g. 16 / 9. Default 16 / 9. */
|
|
4
6
|
ratio?: number;
|
|
@@ -36,14 +38,40 @@ export interface MasonryProps {
|
|
|
36
38
|
}
|
|
37
39
|
/** Cards of different heights packed into columns. Reading order follows the columns top to bottom. */
|
|
38
40
|
export declare function Masonry({ children, columnWidth, gap, className, asList }: MasonryProps): import("react").JSX.Element;
|
|
41
|
+
export interface ImageTileProps {
|
|
42
|
+
/** The picture. Without one (or if it fails to load) the tile shows its gradient, so a grid never has holes. */
|
|
43
|
+
src?: string;
|
|
44
|
+
/** Describes the picture; with a gradient it names the tile for screen readers. Empty only when the title already says it. */
|
|
45
|
+
alt?: string;
|
|
46
|
+
/** A title over the bottom of the tile. */
|
|
47
|
+
title?: string;
|
|
48
|
+
/** A line under the title. */
|
|
49
|
+
subtitle?: string;
|
|
50
|
+
/** Makes the whole tile a link. */
|
|
51
|
+
href?: string;
|
|
52
|
+
/** cover (default) fills the tile and crops; contain shows the whole picture inside it. */
|
|
53
|
+
fit?: 'cover' | 'contain';
|
|
54
|
+
/** The gradient behind a missing picture: accent (default, the brand gradient), or neutral, success, warning, danger, info. */
|
|
55
|
+
tone?: Tone;
|
|
56
|
+
/** Width / height. The tile keeps this shape (the gradient needs one: default 1 without a picture, the picture's own shape with one). */
|
|
57
|
+
ratio?: number;
|
|
58
|
+
/** Corner radius token: none, sm, md (default), lg, xl, 2xl or 3xl. */
|
|
59
|
+
radius?: SurfaceRadius;
|
|
60
|
+
/** Extra class names for the root element. */
|
|
61
|
+
className?: string;
|
|
62
|
+
}
|
|
63
|
+
/** One picture with an optional caption and a gradient when there is no picture: the tile of ImageList, for your own grids and cards. */
|
|
64
|
+
export declare function ImageTile({ src, alt, title, subtitle, href, fit, tone, ratio, radius, className }: ImageTileProps): import("react").JSX.Element;
|
|
39
65
|
export interface ImageListProps {
|
|
40
|
-
/**
|
|
66
|
+
/** Pictures: src (optional: a tile without one shows its gradient), alt, and an optional title, subtitle, link, fit and gradient tone. */
|
|
41
67
|
items: Array<{
|
|
42
|
-
src
|
|
68
|
+
src?: string;
|
|
43
69
|
alt: string;
|
|
44
70
|
title?: string;
|
|
45
71
|
subtitle?: string;
|
|
46
72
|
href?: string;
|
|
73
|
+
fit?: ImageTileProps['fit'];
|
|
74
|
+
tone?: Tone;
|
|
47
75
|
}>;
|
|
48
76
|
/** grid (same size) or masonry (keeps each image's shape). Default grid. */
|
|
49
77
|
variant?: 'grid' | 'masonry';
|
|
@@ -51,11 +79,13 @@ export interface ImageListProps {
|
|
|
51
79
|
minItemWidth?: number;
|
|
52
80
|
/** Tile ratio in grid. Default 1. */
|
|
53
81
|
ratio?: number;
|
|
82
|
+
/** Corner radius token of the tiles. Default md. */
|
|
83
|
+
radius?: SurfaceRadius;
|
|
54
84
|
/** Extra class names for the root element. */
|
|
55
85
|
className?: string;
|
|
56
86
|
}
|
|
57
87
|
/** A gallery of images with optional captions. */
|
|
58
|
-
export declare function ImageList({ items, variant, minItemWidth, ratio, className }: ImageListProps): import("react").JSX.Element;
|
|
88
|
+
export declare function ImageList({ items, variant, minItemWidth, ratio, radius, className }: ImageListProps): import("react").JSX.Element;
|
|
59
89
|
export interface FieldsetProps {
|
|
60
90
|
/** The group's name, read before each field in it. */
|
|
61
91
|
legend: ReactNode;
|
|
@@ -88,8 +118,8 @@ export interface RibbonProps {
|
|
|
88
118
|
/** The ribbon's text: New, Popular, -20%. */
|
|
89
119
|
text: ReactNode;
|
|
90
120
|
children: ReactNode;
|
|
91
|
-
/** Color meaning: accent, success, warning, danger or neutral. */
|
|
92
|
-
tone?: 'accent' | 'success' | 'warning' | 'danger' | 'neutral';
|
|
121
|
+
/** Color meaning: accent, success, warning, danger, info or neutral. */
|
|
122
|
+
tone?: 'accent' | 'success' | 'warning' | 'danger' | 'info' | 'neutral';
|
|
93
123
|
/** start or end (default) corner. */
|
|
94
124
|
placement?: 'start' | 'end';
|
|
95
125
|
/** Extra class names for the root element. */
|
|
@@ -106,7 +136,7 @@ export interface IndicatorProps {
|
|
|
106
136
|
/** What it means, for screen readers ("3 unread messages", "Online"). */
|
|
107
137
|
label: string;
|
|
108
138
|
/** Color meaning: accent, success, warning, danger or neutral. */
|
|
109
|
-
tone?: 'accent' | 'success' | 'warning' | 'danger' | 'neutral';
|
|
139
|
+
tone?: 'accent' | 'success' | 'warning' | 'danger' | 'info' | 'neutral';
|
|
110
140
|
/** Which corner. Default top end. */
|
|
111
141
|
position?: 'top-end' | 'top-start' | 'bottom-end' | 'bottom-start';
|
|
112
142
|
/** Pulse to draw attention. Respects reduced motion. */
|