@umami/react-zen 0.60.0 → 0.61.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 +86 -85
- package/dist/index.d.ts +16 -9
- package/dist/index.js +168 -157
- package/dist/index.mjs +91 -80
- package/package.json +1 -1
- package/styles.css +93 -89
package/dist/index.css
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/* virtual-css:css:c1c264103e87c7a7d9c345a7e75f073b */
|
|
2
|
-
.Form_form__ZjMwZ {
|
|
3
|
-
position: relative;
|
|
4
|
-
font-size: var(--font-size);
|
|
5
|
-
}
|
|
6
|
-
.Form_text__NDc1Y {
|
|
7
|
-
text-align: center;
|
|
8
|
-
margin: auto;
|
|
9
|
-
}
|
|
10
|
-
.Form_icon__ZGE1Z {
|
|
11
|
-
align-self: flex-start;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
1
|
/* virtual-css:css:fd9059b0b8139e56f974f8291736b4c8 */
|
|
15
2
|
.Icon_icon__YWI0Z {
|
|
16
3
|
display: inline-block;
|
|
@@ -37,7 +24,7 @@
|
|
|
37
24
|
}
|
|
38
25
|
|
|
39
26
|
/* virtual-css:css:1f23037feb6ff5b206a7d955b2a6ff41 */
|
|
40
|
-
.
|
|
27
|
+
.AlertBanner_banner__NDQ0Z {
|
|
41
28
|
display: flex;
|
|
42
29
|
align-items: center;
|
|
43
30
|
padding: var(--padding);
|
|
@@ -50,44 +37,35 @@
|
|
|
50
37
|
color: var(--font-color);
|
|
51
38
|
gap: var(--spacing-3);
|
|
52
39
|
}
|
|
53
|
-
.
|
|
40
|
+
.AlertBanner_message__MzQ3Y {
|
|
54
41
|
display: flex;
|
|
55
42
|
flex-direction: column;
|
|
56
43
|
flex: 1;
|
|
57
44
|
}
|
|
58
|
-
.
|
|
45
|
+
.AlertBanner_title__MDI0M {
|
|
59
46
|
font-weight: 700;
|
|
60
47
|
}
|
|
61
|
-
.
|
|
48
|
+
.AlertBanner_close__YzE5M {
|
|
62
49
|
color: var(--font-color-muted);
|
|
63
50
|
}
|
|
64
|
-
.
|
|
51
|
+
.AlertBanner_close__YzE5M:hover {
|
|
65
52
|
color: var(--font-color);
|
|
66
53
|
cursor: pointer;
|
|
67
54
|
}
|
|
68
|
-
.
|
|
69
|
-
color: var(--danger-
|
|
70
|
-
|
|
71
|
-
border: 0;
|
|
72
|
-
}
|
|
73
|
-
.AlertBanner_error__YWZmN .AlertBanner_close__MzEwM {
|
|
74
|
-
color: var(--danger-font-color);
|
|
75
|
-
}
|
|
76
|
-
.AlertBanner_info__ZmE3M {
|
|
77
|
-
color: var(--primary-font-color);
|
|
78
|
-
background-color: var(--primary-color);
|
|
79
|
-
border: 0;
|
|
55
|
+
.AlertBanner_error__NDVmM {
|
|
56
|
+
color: var(--danger-color);
|
|
57
|
+
border: 1px solid var(--danger-color);
|
|
80
58
|
}
|
|
81
|
-
.
|
|
82
|
-
color: var(--
|
|
59
|
+
.AlertBanner_error__NDVmM .AlertBanner_close__YzE5M {
|
|
60
|
+
color: var(--danger-color);
|
|
83
61
|
}
|
|
84
|
-
.
|
|
62
|
+
.AlertBanner_start__YTlmZ {
|
|
85
63
|
text-align: start;
|
|
86
64
|
}
|
|
87
|
-
.
|
|
65
|
+
.AlertBanner_end__ZmJlM {
|
|
88
66
|
text-align: end;
|
|
89
67
|
}
|
|
90
|
-
.
|
|
68
|
+
.AlertBanner_center__Y2ZmN {
|
|
91
69
|
text-align: center;
|
|
92
70
|
}
|
|
93
71
|
|
|
@@ -2211,18 +2189,31 @@
|
|
|
2211
2189
|
}
|
|
2212
2190
|
}
|
|
2213
2191
|
|
|
2192
|
+
/* virtual-css:css:c1c264103e87c7a7d9c345a7e75f073b */
|
|
2193
|
+
.Form_form__ZjMwZ {
|
|
2194
|
+
position: relative;
|
|
2195
|
+
font-size: var(--font-size);
|
|
2196
|
+
}
|
|
2197
|
+
.Form_text__NDc1Y {
|
|
2198
|
+
text-align: center;
|
|
2199
|
+
margin: auto;
|
|
2200
|
+
}
|
|
2201
|
+
.Form_icon__ZGE1Z {
|
|
2202
|
+
align-self: flex-start;
|
|
2203
|
+
}
|
|
2204
|
+
|
|
2214
2205
|
/* virtual-css:css:b910a97cb1b22b0482f1309d736856b2 */
|
|
2215
|
-
.
|
|
2206
|
+
.FormField_field__YTM1N {
|
|
2216
2207
|
display: flex;
|
|
2217
2208
|
flex-direction: column;
|
|
2218
2209
|
}
|
|
2219
|
-
.
|
|
2210
|
+
.FormField_description__ZjFiM {
|
|
2220
2211
|
line-height: 1.8rem;
|
|
2221
2212
|
font-size: var(--font-size);
|
|
2222
2213
|
}
|
|
2223
|
-
.
|
|
2214
|
+
.FormField_error__NWZhM {
|
|
2224
2215
|
color: var(--danger-color);
|
|
2225
|
-
line-height:
|
|
2216
|
+
line-height: 2rem;
|
|
2226
2217
|
font-weight: 600;
|
|
2227
2218
|
}
|
|
2228
2219
|
|
|
@@ -2735,12 +2726,12 @@ body a.Button_button__ZjBiN {
|
|
|
2735
2726
|
}
|
|
2736
2727
|
|
|
2737
2728
|
/* virtual-css:css:a3f0bcbc602e66499a3823844c11db39 */
|
|
2738
|
-
.
|
|
2729
|
+
.Code_code__YTUzN {
|
|
2739
2730
|
font-family: var(--font-family-code);
|
|
2740
2731
|
font-size: var(--font-size-2);
|
|
2741
2732
|
font-weight: var(--font-weight-medium);
|
|
2742
2733
|
color: var(--font-color);
|
|
2743
|
-
background: var(--
|
|
2734
|
+
background: var(--layer-color-1);
|
|
2744
2735
|
border-radius: var(--border-radius);
|
|
2745
2736
|
padding: var(--spacing-1);
|
|
2746
2737
|
}
|
|
@@ -2928,18 +2919,19 @@ body a.Button_button__ZjBiN {
|
|
|
2928
2919
|
}
|
|
2929
2920
|
|
|
2930
2921
|
/* virtual-css:css:ac55918cdbb6b3a9ac9deedf05ce3806 */
|
|
2931
|
-
.
|
|
2922
|
+
.input_field__Zjk2M {
|
|
2923
|
+
position: relative;
|
|
2932
2924
|
min-width: 240px;
|
|
2933
2925
|
}
|
|
2934
|
-
.
|
|
2935
|
-
.
|
|
2926
|
+
.input_field__Zjk2M,
|
|
2927
|
+
.input_row__NTFhN {
|
|
2936
2928
|
position: relative;
|
|
2937
2929
|
}
|
|
2938
|
-
.
|
|
2939
|
-
.
|
|
2930
|
+
.input_field__Zjk2M[data-readonly] .input_input__NTExY,
|
|
2931
|
+
.input_field__Zjk2M[data-disabled] .input_input__NTExY {
|
|
2940
2932
|
background: var(--input-disabled-color);
|
|
2941
2933
|
}
|
|
2942
|
-
.
|
|
2934
|
+
.input_input__NTExY {
|
|
2943
2935
|
font-size: var(--font-size);
|
|
2944
2936
|
color: var(--font-color);
|
|
2945
2937
|
border: var(--border);
|
|
@@ -2950,37 +2942,38 @@ body a.Button_button__ZjBiN {
|
|
|
2950
2942
|
line-height: 1.5rem;
|
|
2951
2943
|
width: 100%;
|
|
2952
2944
|
}
|
|
2953
|
-
.
|
|
2945
|
+
.input_input__NTExY:focus {
|
|
2954
2946
|
border-color: transparent;
|
|
2955
2947
|
outline: var(--outline);
|
|
2956
2948
|
}
|
|
2957
|
-
.
|
|
2949
|
+
.input_input__NTExY::placeholder {
|
|
2958
2950
|
color: var(--font-color-muted);
|
|
2959
2951
|
}
|
|
2960
|
-
.
|
|
2952
|
+
.input_input__NTExY:disabled {
|
|
2961
2953
|
color: var(--font-color-muted);
|
|
2962
2954
|
}
|
|
2963
|
-
.
|
|
2964
|
-
.
|
|
2955
|
+
.input_input__NTExY::-webkit-search-cancel-button,
|
|
2956
|
+
.input_input__NTExY::-webkit-search-decoration {
|
|
2965
2957
|
-webkit-appearance: none;
|
|
2966
2958
|
}
|
|
2967
|
-
.
|
|
2959
|
+
.input_icon__ZGI5Y {
|
|
2968
2960
|
color: var(--font-color-muted);
|
|
2969
2961
|
background: var(--background-color);
|
|
2970
2962
|
}
|
|
2971
|
-
.
|
|
2963
|
+
.input_icon__ZGI5Y:hover {
|
|
2972
2964
|
color: var(--font-color);
|
|
2973
2965
|
cursor: pointer;
|
|
2974
2966
|
}
|
|
2975
2967
|
|
|
2976
2968
|
/* virtual-css:css:f85c857d13f820fa4badfb09996080b9 */
|
|
2977
|
-
.
|
|
2969
|
+
.TextField_allowCopy__NmUxY {
|
|
2978
2970
|
padding-right: 32px;
|
|
2979
2971
|
}
|
|
2980
|
-
.
|
|
2972
|
+
.TextField_icon__OTcxO {
|
|
2981
2973
|
position: absolute;
|
|
2982
|
-
top: var(--
|
|
2983
|
-
right: var(--
|
|
2974
|
+
top: var(--spacing-4);
|
|
2975
|
+
right: var(--spacing-3);
|
|
2976
|
+
background: none;
|
|
2984
2977
|
}
|
|
2985
2978
|
|
|
2986
2979
|
/* virtual-css:css:603e8ab63f869366a7b9c81da6a1d757 */
|
|
@@ -3047,14 +3040,17 @@ body a.Button_button__ZjBiN {
|
|
|
3047
3040
|
}
|
|
3048
3041
|
|
|
3049
3042
|
/* virtual-css:css:e32e6d85b42dfdfd441346c5ed822361 */
|
|
3050
|
-
.
|
|
3043
|
+
.DataTable_datatable__ZmQ3Z {
|
|
3051
3044
|
position: relative;
|
|
3052
3045
|
font-size: var(--font-size);
|
|
3053
3046
|
color: var(--font-color);
|
|
3054
3047
|
}
|
|
3055
|
-
.
|
|
3048
|
+
.DataTable_cell__NzZlM {
|
|
3056
3049
|
align-items: center;
|
|
3057
3050
|
}
|
|
3051
|
+
.DataTable_hidden__M2MxN {
|
|
3052
|
+
display: none;
|
|
3053
|
+
}
|
|
3058
3054
|
|
|
3059
3055
|
/* virtual-css:css:e66162403f9946d7217dc462fee28120 */
|
|
3060
3056
|
.Dots_dots__NzQ0Z {
|
|
@@ -3175,7 +3171,7 @@ body a.Button_button__ZjBiN {
|
|
|
3175
3171
|
}
|
|
3176
3172
|
|
|
3177
3173
|
/* virtual-css:css:3130df15a3cfaee8cb812b182afb7ee1 */
|
|
3178
|
-
.
|
|
3174
|
+
.Menu_menu__YmUyN {
|
|
3179
3175
|
min-width: 200px;
|
|
3180
3176
|
border: var(--border);
|
|
3181
3177
|
border-radius: var(--border-radius);
|
|
@@ -3184,19 +3180,19 @@ body a.Button_button__ZjBiN {
|
|
|
3184
3180
|
background: var(--background-color);
|
|
3185
3181
|
overflow: hidden;
|
|
3186
3182
|
}
|
|
3187
|
-
.
|
|
3183
|
+
.Menu_separator__NDFlO {
|
|
3188
3184
|
border-bottom: var(--border);
|
|
3189
|
-
margin: var(--spacing-
|
|
3185
|
+
margin: var(--spacing-2) calc(-1 * var(--spacing-3));
|
|
3190
3186
|
}
|
|
3191
|
-
.
|
|
3187
|
+
.Menu_section__YjJjY:not(:last-child) {
|
|
3192
3188
|
margin-bottom: var(--spacing-4);
|
|
3193
3189
|
}
|
|
3194
|
-
.
|
|
3190
|
+
.Menu_header__NDVjN {
|
|
3195
3191
|
font-size: var(--font-size-2);
|
|
3196
3192
|
font-weight: var(--font-weight-bold);
|
|
3197
3193
|
padding: var(--padding);
|
|
3198
3194
|
}
|
|
3199
|
-
.
|
|
3195
|
+
.Menu_item__YjBiN {
|
|
3200
3196
|
display: flex;
|
|
3201
3197
|
align-items: center;
|
|
3202
3198
|
gap: var(--gap);
|
|
@@ -3209,23 +3205,23 @@ body a.Button_button__ZjBiN {
|
|
|
3209
3205
|
outline: none;
|
|
3210
3206
|
width: 100%;
|
|
3211
3207
|
}
|
|
3212
|
-
.
|
|
3213
|
-
.
|
|
3208
|
+
.Menu_item__YjBiN[data-focus],
|
|
3209
|
+
.Menu_item__YjBiN[data-focus-visible] {
|
|
3214
3210
|
outline: var(--outline);
|
|
3215
3211
|
background: var(--highlight-color);
|
|
3216
3212
|
}
|
|
3217
|
-
.
|
|
3213
|
+
.Menu_item__YjBiN:hover {
|
|
3218
3214
|
background: var(--highlight-color);
|
|
3219
3215
|
}
|
|
3220
|
-
.
|
|
3216
|
+
.Menu_item__YjBiN[data-selected] {
|
|
3221
3217
|
font-weight: bold;
|
|
3222
3218
|
}
|
|
3223
|
-
.
|
|
3219
|
+
.Menu_item__YjBiN[data-selected] .Menu_check__YmVhZ {
|
|
3224
3220
|
display: flex;
|
|
3225
3221
|
justify-content: flex-end;
|
|
3226
3222
|
flex: 1;
|
|
3227
3223
|
}
|
|
3228
|
-
.
|
|
3224
|
+
.Menu_check__YmVhZ {
|
|
3229
3225
|
display: none;
|
|
3230
3226
|
}
|
|
3231
3227
|
|
|
@@ -3507,24 +3503,29 @@ body a.Button_button__ZjBiN {
|
|
|
3507
3503
|
}
|
|
3508
3504
|
|
|
3509
3505
|
/* virtual-css:css:3ce2e85ef9035a94276951bdf0511402 */
|
|
3510
|
-
.
|
|
3506
|
+
.SearchField_search__MzkwY {
|
|
3511
3507
|
position: absolute;
|
|
3512
|
-
top:
|
|
3513
|
-
left:
|
|
3508
|
+
top: 0;
|
|
3509
|
+
left: var(--spacing-3);
|
|
3510
|
+
bottom: 0;
|
|
3511
|
+
height: 100%;
|
|
3512
|
+
background: none;
|
|
3514
3513
|
}
|
|
3515
|
-
.
|
|
3516
|
-
padding-left:
|
|
3517
|
-
padding-right:
|
|
3514
|
+
.SearchField_input__OGFiY {
|
|
3515
|
+
padding-left: var(--spacing-7);
|
|
3516
|
+
padding-right: var(--spacing-7);
|
|
3518
3517
|
}
|
|
3519
|
-
.
|
|
3518
|
+
.SearchField_close__NmJkM {
|
|
3519
|
+
display: flex;
|
|
3520
|
+
align-items: center;
|
|
3521
|
+
justify-content: center;
|
|
3520
3522
|
position: absolute;
|
|
3521
|
-
top:
|
|
3522
|
-
right:
|
|
3523
|
-
|
|
3523
|
+
top: 0;
|
|
3524
|
+
right: var(--spacing-3);
|
|
3525
|
+
bottom: 0;
|
|
3526
|
+
height: 100%;
|
|
3527
|
+
border: 0;
|
|
3524
3528
|
background: none;
|
|
3525
|
-
border-radius: var(--border-radius-full);
|
|
3526
|
-
padding: 0;
|
|
3527
|
-
margin: 0 var(--spacing-2);
|
|
3528
3529
|
}
|
|
3529
3530
|
|
|
3530
3531
|
/* virtual-css:css:851dd5366a20c382ffec60997ee93e35 */
|
package/dist/index.d.ts
CHANGED
|
@@ -97,7 +97,10 @@ declare module '@umami/react-zen/forms/Form' {
|
|
|
97
97
|
|
|
98
98
|
declare module '@umami/react-zen/forms/FormButtons' {
|
|
99
99
|
import { RowProps } from '@umami/react-zen/Row';
|
|
100
|
-
export
|
|
100
|
+
export interface FormButtonsProps extends RowProps {
|
|
101
|
+
fill?: boolean;
|
|
102
|
+
}
|
|
103
|
+
export function FormButtons({ fill, children, ...props }: FormButtonsProps): import("react").JSX.Element;
|
|
101
104
|
}
|
|
102
105
|
|
|
103
106
|
declare module '@umami/react-zen/forms/FormField' {
|
|
@@ -130,7 +133,7 @@ declare module '@umami/react-zen/forms/FormResetButton' {
|
|
|
130
133
|
|
|
131
134
|
declare module '@umami/react-zen/forms/FormSubmitButton' {
|
|
132
135
|
import { LoadingButtonProps } from '@umami/react-zen/LoadingButton';
|
|
133
|
-
function FormSubmitButton({ variant,
|
|
136
|
+
function FormSubmitButton({ variant, isDisabled, isLoading, children, ...props }: LoadingButtonProps): import("react").JSX.Element;
|
|
134
137
|
export { FormSubmitButton };
|
|
135
138
|
}
|
|
136
139
|
|
|
@@ -166,7 +169,7 @@ declare module '@umami/react-zen/toast/ToastProvider' {
|
|
|
166
169
|
children: ReactNode;
|
|
167
170
|
}
|
|
168
171
|
export const ToastContext: import("react").Context<{}>;
|
|
169
|
-
export function ToastProvider({ children, ...
|
|
172
|
+
export function ToastProvider({ children, ...props }: ToastProviderProps): import("react").JSX.Element;
|
|
170
173
|
}
|
|
171
174
|
|
|
172
175
|
declare module '@umami/react-zen/hooks/useDebounce' {
|
|
@@ -224,7 +227,7 @@ declare module '@umami/react-zen/AlertBanner' {
|
|
|
224
227
|
title?: ReactNode;
|
|
225
228
|
description?: ReactNode;
|
|
226
229
|
icon?: ReactNode;
|
|
227
|
-
variant?: 'error'
|
|
230
|
+
variant?: 'error';
|
|
228
231
|
align?: 'start' | 'center' | 'end';
|
|
229
232
|
allowClose?: boolean;
|
|
230
233
|
onClose?: () => void;
|
|
@@ -436,6 +439,9 @@ declare module '@umami/react-zen/DataTable' {
|
|
|
436
439
|
interface DataColumnProps extends ColumnProps {
|
|
437
440
|
id: string;
|
|
438
441
|
label?: ReactNode;
|
|
442
|
+
align?: 'start' | 'center' | 'end';
|
|
443
|
+
as?: string;
|
|
444
|
+
hidden?: boolean;
|
|
439
445
|
}
|
|
440
446
|
function DataColumn(props: DataColumnProps): null;
|
|
441
447
|
export { DataTable, DataColumn };
|
|
@@ -752,7 +758,7 @@ declare module '@umami/react-zen/SearchField' {
|
|
|
752
758
|
declare module '@umami/react-zen/Select' {
|
|
753
759
|
import { SelectProps as AriaSelectProps } from 'react-aria-components';
|
|
754
760
|
interface SelectProps extends AriaSelectProps<HTMLSelectElement> {
|
|
755
|
-
items
|
|
761
|
+
items?: any[];
|
|
756
762
|
value?: string;
|
|
757
763
|
label?: string;
|
|
758
764
|
onChange?: (e: any) => void;
|
|
@@ -838,18 +844,19 @@ declare module '@umami/react-zen/Switch' {
|
|
|
838
844
|
declare module '@umami/react-zen/Table' {
|
|
839
845
|
import { CellProps, ColumnProps, RowProps, TableProps, TableBodyProps, TableHeaderProps } from 'react-aria-components';
|
|
840
846
|
interface TableColumnProps extends ColumnProps {
|
|
841
|
-
|
|
847
|
+
align?: 'start' | 'center' | 'end';
|
|
842
848
|
}
|
|
843
849
|
interface TableCellProps extends CellProps {
|
|
844
|
-
|
|
850
|
+
align?: 'start' | 'center' | 'end';
|
|
845
851
|
}
|
|
846
852
|
function Table({ children, className, ...props }: TableProps): import("react").JSX.Element;
|
|
847
853
|
function TableHeader({ children, className, ...props }: TableHeaderProps<any>): import("react").JSX.Element;
|
|
848
854
|
function TableBody({ children, className, ...props }: TableBodyProps<any>): import("react").JSX.Element;
|
|
849
855
|
function TableRow({ children, className, ...props }: RowProps<any>): import("react").JSX.Element;
|
|
850
|
-
function TableColumn({ children, className,
|
|
851
|
-
function TableCell({ children, className,
|
|
856
|
+
function TableColumn({ children, className, align, ...props }: TableColumnProps): import("react").JSX.Element;
|
|
857
|
+
function TableCell({ children, className, align, ...props }: TableCellProps): import("react").JSX.Element;
|
|
852
858
|
export { Table, TableHeader, TableBody, TableRow, TableColumn, TableCell };
|
|
859
|
+
export type { TableCellProps, TableColumnProps, TableBodyProps };
|
|
853
860
|
}
|
|
854
861
|
|
|
855
862
|
declare module '@umami/react-zen/Tabs' {
|