@umami/react-zen 0.4.0 → 0.5.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/dist/index.css +69 -0
- package/dist/index.d.ts +29 -10
- package/dist/index.js +1578 -1157
- package/dist/index.mjs +786 -365
- package/dist/zen.css +15 -6
- package/package.json +2 -2
package/dist/index.css
CHANGED
|
@@ -141,6 +141,7 @@
|
|
|
141
141
|
background: var(--background-color);
|
|
142
142
|
border: var(--border);
|
|
143
143
|
border-radius: var(--border-radius);
|
|
144
|
+
outline: none;
|
|
144
145
|
}
|
|
145
146
|
.Dialog_title {
|
|
146
147
|
font-size: var(--font-size-lg);
|
|
@@ -148,6 +149,68 @@
|
|
|
148
149
|
margin-bottom: var(--spacing-3);
|
|
149
150
|
}
|
|
150
151
|
|
|
152
|
+
/* src/components/Box.module.css */
|
|
153
|
+
.Box_font-size-xs {
|
|
154
|
+
font-size: var(--font-size-xs);
|
|
155
|
+
}
|
|
156
|
+
.Box_font-size-sm {
|
|
157
|
+
font-size: var(--font-size-sm);
|
|
158
|
+
}
|
|
159
|
+
.Box_font-size-md {
|
|
160
|
+
font-size: var(--font-size-md);
|
|
161
|
+
}
|
|
162
|
+
.Box_font-size-lg {
|
|
163
|
+
font-size: var(--font-size-lg);
|
|
164
|
+
}
|
|
165
|
+
.Box_font-size-xl {
|
|
166
|
+
font-size: var(--font-size-xl);
|
|
167
|
+
}
|
|
168
|
+
.Box_border-radius-sm {
|
|
169
|
+
border-radius: var(--border-radius-sm);
|
|
170
|
+
}
|
|
171
|
+
.Box_border-radius-md {
|
|
172
|
+
border-radius: var(--border-radius-md);
|
|
173
|
+
}
|
|
174
|
+
.Box_border-radius-lg {
|
|
175
|
+
border-radius: var(--border-radius-lg);
|
|
176
|
+
}
|
|
177
|
+
.Box_border-radius-full {
|
|
178
|
+
border-radius: 100%;
|
|
179
|
+
}
|
|
180
|
+
.Box_gap-xs {
|
|
181
|
+
gap: var(--gap-xs);
|
|
182
|
+
}
|
|
183
|
+
.Box_gap-sm {
|
|
184
|
+
gap: var(--gap-sm);
|
|
185
|
+
}
|
|
186
|
+
.Box_gap-md {
|
|
187
|
+
gap: var(--gap-md);
|
|
188
|
+
}
|
|
189
|
+
.Box_gap-lg {
|
|
190
|
+
gap: var(--gap-lg);
|
|
191
|
+
}
|
|
192
|
+
.Box_gap-xl {
|
|
193
|
+
gap: var(--gap-xl);
|
|
194
|
+
}
|
|
195
|
+
.Box_shadow-1 {
|
|
196
|
+
box-shadow: var(--box-shadow-1);
|
|
197
|
+
}
|
|
198
|
+
.Box_shadow-2 {
|
|
199
|
+
box-shadow: var(--box-shadow-2);
|
|
200
|
+
}
|
|
201
|
+
.Box_shadow-3 {
|
|
202
|
+
box-shadow: var(--box-shadow-3);
|
|
203
|
+
}
|
|
204
|
+
.Box_shadow-4 {
|
|
205
|
+
box-shadow: var(--box-shadow-4);
|
|
206
|
+
}
|
|
207
|
+
.Box_shadow-5 {
|
|
208
|
+
box-shadow: var(--box-shadow-5);
|
|
209
|
+
}
|
|
210
|
+
.Box_shadow-6 {
|
|
211
|
+
box-shadow: var(--box-shadow-6);
|
|
212
|
+
}
|
|
213
|
+
|
|
151
214
|
/* src/components/Flexbox.module.css */
|
|
152
215
|
.Flexbox_flexbox {
|
|
153
216
|
display: flex;
|
|
@@ -516,6 +579,10 @@
|
|
|
516
579
|
font-size: 1.1rem;
|
|
517
580
|
padding: 1rem 1.25rem;
|
|
518
581
|
}
|
|
582
|
+
.Button_button.Button_xl {
|
|
583
|
+
font-size: 1.3rem;
|
|
584
|
+
padding: 1.25rem 1.5rem;
|
|
585
|
+
}
|
|
519
586
|
.Button_button a {
|
|
520
587
|
color: inherit;
|
|
521
588
|
}
|
|
@@ -799,6 +866,7 @@
|
|
|
799
866
|
padding: var(--padding);
|
|
800
867
|
line-height: 1.5rem;
|
|
801
868
|
flex: 1;
|
|
869
|
+
outline: none;
|
|
802
870
|
}
|
|
803
871
|
.Field_input::placeholder {
|
|
804
872
|
color: var(--font-muted-color);
|
|
@@ -1143,6 +1211,7 @@
|
|
|
1143
1211
|
border-radius: var(--border-radius);
|
|
1144
1212
|
gap: var(--gap);
|
|
1145
1213
|
cursor: pointer;
|
|
1214
|
+
outline: none;
|
|
1146
1215
|
}
|
|
1147
1216
|
.MenuItem_item:hover {
|
|
1148
1217
|
background: var(--highlight-bg-color);
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Generated by dts-bundle v0.7.3
|
|
2
2
|
// Dependencies for this module:
|
|
3
3
|
// ../react-aria-components
|
|
4
|
+
// ../@radix-ui/react-slot
|
|
4
5
|
// ../react
|
|
5
6
|
// ../@radix-ui/react-accordion
|
|
6
7
|
// ../@radix-ui/react-toast
|
|
@@ -8,13 +9,15 @@
|
|
|
8
9
|
// ../@radix-ui/react-toolbar
|
|
9
10
|
|
|
10
11
|
declare module '@umami/react-zen' {
|
|
11
|
-
import { DialogTrigger, FileTrigger, MenuTrigger, TooltipTrigger } from 'react-aria-components';
|
|
12
|
+
import { DialogTrigger, FileTrigger, MenuTrigger, SubmenuTrigger, TooltipTrigger } from 'react-aria-components';
|
|
13
|
+
import { Slot } from '@radix-ui/react-slot';
|
|
12
14
|
import { useDebounce } from '@umami/react-zen/hooks/useDebounce';
|
|
13
15
|
import { useTheme } from '@umami/react-zen/hooks/useTheme';
|
|
14
16
|
import { useToast } from '@umami/react-zen/hooks/useToast';
|
|
15
17
|
import { Accordion, AccordionItem, AccordionHeader, AccordionContent } from '@umami/react-zen/Accordion';
|
|
16
18
|
import { AlertBanner } from '@umami/react-zen/AlertBanner';
|
|
17
19
|
import { AlertDialog } from '@umami/react-zen/AlertDialog';
|
|
20
|
+
import { Box } from '@umami/react-zen/Box';
|
|
18
21
|
import { Breadcrumbs, Breadcrumb } from '@umami/react-zen/Breadcrumbs';
|
|
19
22
|
import { Button } from '@umami/react-zen/Button';
|
|
20
23
|
import { Calendar } from '@umami/react-zen/Calendar';
|
|
@@ -62,7 +65,7 @@ declare module '@umami/react-zen' {
|
|
|
62
65
|
import { ToggleGroup, ToggleGroupItem } from '@umami/react-zen/ToggleGroup';
|
|
63
66
|
import { Tooltip } from '@umami/react-zen/Tooltip';
|
|
64
67
|
import { ZenProvider } from '@umami/react-zen/ZenProvider';
|
|
65
|
-
export { useDebounce, useTheme, useToast, Accordion, AccordionContent, AccordionItem, AccordionHeader, AlertBanner, AlertDialog, Breadcrumb, Breadcrumbs, Button, Calendar, Checkbox, Column, Combobox, ConfirmationDialog, DataTable, DataColumn, Dialog, DialogTrigger, Dots, FileTrigger, Flexbox, Heading, Icon, Icons, InlineEditField, Label, List, ListItem, Loading, LoadingButton, Menu, MenuItem, MenuTrigger, Modal, PasswordField, Page, Popover, ProgressBar, ProgressCircle, Radio, RadioGroup, Row, SearchField, Select, Slider, Spinner, StatusLight, Switch, Table, TableHeader, TableBody, TableRow, TableColumn, TableCell, Tab, Tabs, TabList, TabPanel, Text, TextOverflow, TextField, TextArea, Toast, ToastProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipTrigger, ZenProvider, };
|
|
68
|
+
export { useDebounce, useTheme, useToast, Accordion, AccordionContent, AccordionItem, AccordionHeader, AlertBanner, AlertDialog, Box, Breadcrumb, Breadcrumbs, Button, Calendar, Checkbox, Column, Combobox, ConfirmationDialog, DataTable, DataColumn, Dialog, DialogTrigger, Dots, FileTrigger, Flexbox, Heading, Icon, Icons, InlineEditField, Label, List, ListItem, Loading, LoadingButton, Menu, MenuItem, MenuTrigger, Modal, PasswordField, Page, Popover, ProgressBar, ProgressCircle, Radio, RadioGroup, Row, SearchField, Select, Slider, Slot, Spinner, StatusLight, SubmenuTrigger, Switch, Table, TableHeader, TableBody, TableRow, TableColumn, TableCell, Tab, Tabs, TabList, TabPanel, Text, TextOverflow, TextField, TextArea, Toast, ToastProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipTrigger, ZenProvider, };
|
|
66
69
|
}
|
|
67
70
|
|
|
68
71
|
declare module '@umami/react-zen/hooks/useDebounce' {
|
|
@@ -150,6 +153,23 @@ declare module '@umami/react-zen/AlertDialog' {
|
|
|
150
153
|
export type { AlertDialogProps };
|
|
151
154
|
}
|
|
152
155
|
|
|
156
|
+
declare module '@umami/react-zen/Box' {
|
|
157
|
+
import { ReactNode, HTMLProps } from 'react';
|
|
158
|
+
interface BoxProps extends HTMLProps<HTMLDivElement> {
|
|
159
|
+
className?: string;
|
|
160
|
+
fontSize?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
161
|
+
gap?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
162
|
+
borderRadius?: 'sm' | 'md' | 'lg' | 'full';
|
|
163
|
+
shadow?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
164
|
+
spacing?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
165
|
+
asChild?: boolean;
|
|
166
|
+
children?: ReactNode;
|
|
167
|
+
}
|
|
168
|
+
function Box({ className, spacing, fontSize, borderRadius, shadow, gap, asChild, children, ...props }: BoxProps): import("react").JSX.Element;
|
|
169
|
+
export { Box };
|
|
170
|
+
export type { BoxProps };
|
|
171
|
+
}
|
|
172
|
+
|
|
153
173
|
declare module '@umami/react-zen/Breadcrumbs' {
|
|
154
174
|
import { BreadcrumbsProps, BreadcrumbProps } from 'react-aria-components';
|
|
155
175
|
function Breadcrumbs({ children, className, ...props }: BreadcrumbsProps<any>): import("react").JSX.Element;
|
|
@@ -162,7 +182,7 @@ declare module '@umami/react-zen/Button' {
|
|
|
162
182
|
import { ButtonProps as _ButtonProps } from 'react-aria-components';
|
|
163
183
|
interface ButtonProps extends _ButtonProps {
|
|
164
184
|
variant?: 'primary' | 'secondary' | 'outline' | 'quiet' | 'danger' | 'zero';
|
|
165
|
-
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
185
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
166
186
|
asChild?: boolean;
|
|
167
187
|
slot?: string;
|
|
168
188
|
}
|
|
@@ -255,7 +275,8 @@ declare module '@umami/react-zen/Dots' {
|
|
|
255
275
|
|
|
256
276
|
declare module '@umami/react-zen/Flexbox' {
|
|
257
277
|
import { CSSProperties, ReactNode } from 'react';
|
|
258
|
-
|
|
278
|
+
import { BoxProps } from '@umami/react-zen/Box';
|
|
279
|
+
export interface FlexboxProps extends BoxProps {
|
|
259
280
|
direction?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
260
281
|
wrap?: 'wrap' | 'nowrap' | 'wrap-reverse';
|
|
261
282
|
justifyContent?: 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'left' | 'right' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch' | 'safe center' | 'unsafe center';
|
|
@@ -264,17 +285,14 @@ declare module '@umami/react-zen/Flexbox' {
|
|
|
264
285
|
alignItems?: 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'self-start' | 'self-end' | 'stretch' | 'baseline' | 'first baseline' | 'last baseline' | 'safe center' | 'unsafe center';
|
|
265
286
|
alignSelf?: 'center' | 'start' | 'end' | 'self-start' | 'self-end' | 'flex-start' | 'flex-end' | 'baseline' | 'first baseline' | 'last baseline' | 'stretch' | 'safe center' | 'unsafe center';
|
|
266
287
|
inline?: boolean;
|
|
267
|
-
gap?: string | number;
|
|
268
|
-
order?: number;
|
|
269
288
|
grow?: number;
|
|
270
289
|
shrink?: number;
|
|
271
290
|
basis?: string | number;
|
|
272
|
-
spacing?: number;
|
|
273
291
|
style?: CSSProperties;
|
|
274
292
|
className?: string;
|
|
275
293
|
children?: ReactNode;
|
|
276
294
|
}
|
|
277
|
-
export function Flexbox({ inline, direction, wrap, justifyContent, justifyItems, alignContent, alignItems, alignSelf,
|
|
295
|
+
export function Flexbox({ inline, direction, wrap, justifyContent, justifyItems, alignContent, alignItems, alignSelf, grow, shrink, basis, spacing, style, className, children, ...props }: FlexboxProps): import("react").JSX.Element;
|
|
278
296
|
}
|
|
279
297
|
|
|
280
298
|
declare module '@umami/react-zen/Heading' {
|
|
@@ -370,7 +388,6 @@ declare module '@umami/react-zen/ListItem' {
|
|
|
370
388
|
function ListItem({ children, className, ...props }: ListBoxItemProps<any>): import("react").JSX.Element;
|
|
371
389
|
export { ListItem };
|
|
372
390
|
export type { ListBoxItemProps as ListItemProps };
|
|
373
|
-
export default ListItem;
|
|
374
391
|
}
|
|
375
392
|
|
|
376
393
|
declare module '@umami/react-zen/Loading' {
|
|
@@ -410,12 +427,14 @@ declare module '@umami/react-zen/MenuItem' {
|
|
|
410
427
|
function MenuItem({ children, className, ...props }: MenuItemProps<any>): import("react").JSX.Element;
|
|
411
428
|
export { MenuItem };
|
|
412
429
|
export type { MenuItemProps };
|
|
430
|
+
export default MenuItem;
|
|
413
431
|
}
|
|
414
432
|
|
|
415
433
|
declare module '@umami/react-zen/Modal' {
|
|
434
|
+
import { ReactNode } from 'react';
|
|
416
435
|
interface ModalProps {
|
|
417
436
|
className?: string;
|
|
418
|
-
children?:
|
|
437
|
+
children?: ReactNode;
|
|
419
438
|
}
|
|
420
439
|
function Modal({ children, className, ...props }: ModalProps): import("react").JSX.Element;
|
|
421
440
|
export { Modal };
|