@umami/react-zen 0.135.0 → 0.137.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 +37 -24
- package/dist/index.d.mts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +38 -20
- package/dist/index.mjs +53 -35
- package/package.json +1 -1
- package/styles.css +37 -24
package/dist/index.css
CHANGED
|
@@ -3054,7 +3054,7 @@
|
|
|
3054
3054
|
}
|
|
3055
3055
|
|
|
3056
3056
|
/* virtual-css:css:616ae3b49446388ff62e911490fa55d8 */
|
|
3057
|
-
.
|
|
3057
|
+
.Button_button__ZGNlZ {
|
|
3058
3058
|
display: flex;
|
|
3059
3059
|
align-items: center;
|
|
3060
3060
|
justify-content: center;
|
|
@@ -3073,89 +3073,102 @@
|
|
|
3073
3073
|
line-height: 1.5;
|
|
3074
3074
|
--button-height: calc(1.5 * var(--font-size) + 2 * var(--padding-y)) ;
|
|
3075
3075
|
}
|
|
3076
|
-
.
|
|
3076
|
+
.Button_button__ZGNlZ:disabled {
|
|
3077
3077
|
color: var(--font-color-muted);
|
|
3078
3078
|
pointer-events: none;
|
|
3079
3079
|
}
|
|
3080
|
-
.
|
|
3080
|
+
.Button_button__ZGNlZ:hover {
|
|
3081
3081
|
color: var(--font-color);
|
|
3082
3082
|
background: color-mix(in srgb, var(--base-color-3), 5% var(--dark-color));
|
|
3083
3083
|
}
|
|
3084
|
-
.
|
|
3084
|
+
.Button_button__ZGNlZ[data-pressed] {
|
|
3085
3085
|
background: color-mix(in srgb, var(--base-color-3), 10% var(--dark-color));
|
|
3086
3086
|
}
|
|
3087
|
-
.
|
|
3087
|
+
.Button_button__ZGNlZ.Button_variant-primary__YjM5O {
|
|
3088
3088
|
color: var(--primary-font-color) !important;
|
|
3089
3089
|
background: var(--primary-color);
|
|
3090
3090
|
}
|
|
3091
|
-
.
|
|
3091
|
+
.Button_button__ZGNlZ.Button_variant-primary__YjM5O:hover {
|
|
3092
3092
|
background: color-mix(in srgb, var(--primary-color), 10% var(--primary-font-color));
|
|
3093
3093
|
}
|
|
3094
|
-
.
|
|
3094
|
+
.Button_button__ZGNlZ.Button_variant-primary__YjM5O[data-pressed] {
|
|
3095
3095
|
background: color-mix(in srgb, var(--primary-color), 20% var(--primary-font-color));
|
|
3096
3096
|
}
|
|
3097
|
-
.
|
|
3097
|
+
.Button_button__ZGNlZ.Button_variant-primary__YjM5O:disabled {
|
|
3098
3098
|
color: var(--primary-font-color);
|
|
3099
3099
|
background: var(--base-color-9);
|
|
3100
3100
|
}
|
|
3101
|
-
.
|
|
3101
|
+
.Button_button__ZGNlZ.Button_variant-outline__YTkyM {
|
|
3102
3102
|
background: var(--background-color);
|
|
3103
3103
|
border: var(--border);
|
|
3104
3104
|
box-shadow: var(--box-shadow-1);
|
|
3105
3105
|
}
|
|
3106
|
-
.
|
|
3106
|
+
.Button_button__ZGNlZ.Button_variant-outline__YTkyM:hover {
|
|
3107
3107
|
border-color: var(--border-color-3);
|
|
3108
3108
|
}
|
|
3109
|
-
.
|
|
3109
|
+
.Button_button__ZGNlZ.Button_variant-outline__YTkyM[data-pressed] {
|
|
3110
3110
|
background: var(--highlight-color);
|
|
3111
3111
|
}
|
|
3112
|
-
.
|
|
3112
|
+
.Button_button__ZGNlZ.Button_variant-outline__YTkyM:disabled {
|
|
3113
3113
|
background: var(--base-color-2);
|
|
3114
3114
|
}
|
|
3115
|
-
.
|
|
3115
|
+
.Button_button__ZGNlZ.Button_variant-quiet__YzZjO {
|
|
3116
3116
|
background: transparent;
|
|
3117
3117
|
}
|
|
3118
|
-
.
|
|
3118
|
+
.Button_button__ZGNlZ.Button_variant-quiet__YzZjO:hover {
|
|
3119
3119
|
background: var(--highlight-color);
|
|
3120
3120
|
}
|
|
3121
|
-
.
|
|
3121
|
+
.Button_button__ZGNlZ.Button_variant-quiet__YzZjO[data-pressed] {
|
|
3122
3122
|
background: color-mix(in srgb, var(--highlight-color), 5% var(--dark-color));
|
|
3123
3123
|
}
|
|
3124
|
-
.
|
|
3124
|
+
.Button_button__ZGNlZ.Button_variant-danger__ZGY0M {
|
|
3125
3125
|
color: var(--light-color);
|
|
3126
3126
|
background: var(--danger-color);
|
|
3127
3127
|
}
|
|
3128
|
-
.
|
|
3128
|
+
.Button_button__ZGNlZ.Button_variant-danger__ZGY0M:hover {
|
|
3129
3129
|
background: color-mix(in srgb, var(--danger-color), 6% black);
|
|
3130
3130
|
}
|
|
3131
|
-
.
|
|
3131
|
+
.Button_button__ZGNlZ.Button_variant-danger__ZGY0M[data-pressed] {
|
|
3132
3132
|
background: color-mix(in srgb, var(--danger-color), 12% black);
|
|
3133
3133
|
}
|
|
3134
|
-
.
|
|
3134
|
+
.Button_button__ZGNlZ.Button_variant-danger__ZGY0M:disabled {
|
|
3135
3135
|
color: var(--primary-font-color);
|
|
3136
3136
|
background: var(--base-color-8);
|
|
3137
3137
|
}
|
|
3138
|
-
.
|
|
3138
|
+
.Button_button__ZGNlZ.Button_variant-zero__ZjhhZ {
|
|
3139
|
+
border: 0;
|
|
3140
|
+
background: transparent;
|
|
3141
|
+
}
|
|
3142
|
+
.Button_button__ZGNlZ.Button_variant-zero__ZjhhZ:hover {
|
|
3143
|
+
background: transparent;
|
|
3144
|
+
}
|
|
3145
|
+
.Button_button__ZGNlZ.Button_variant-zero__ZjhhZ[data-pressed] {
|
|
3146
|
+
background: transparent;
|
|
3147
|
+
}
|
|
3148
|
+
.Button_button__ZGNlZ.Button_variant-zero__ZjhhZ:disabled {
|
|
3149
|
+
background: transparent;
|
|
3150
|
+
}
|
|
3151
|
+
.Button_button__ZGNlZ.Button_sm__ODlkM {
|
|
3139
3152
|
font-size: calc(0.9 * var(--font-size));
|
|
3140
3153
|
padding: calc(0.5 * var(--padding-y)) calc(0.75 * var(--padding-x));
|
|
3141
3154
|
min-height: calc(0.9 * var(--button-height));
|
|
3142
3155
|
}
|
|
3143
|
-
.
|
|
3156
|
+
.Button_button__ZGNlZ.Button_md__ZTU2M {
|
|
3144
3157
|
font-size: var(--font-size);
|
|
3145
3158
|
padding: var(--padding);
|
|
3146
3159
|
min-height: var(--button-height);
|
|
3147
3160
|
}
|
|
3148
|
-
.
|
|
3161
|
+
.Button_button__ZGNlZ.Button_lg__NWJjO {
|
|
3149
3162
|
font-size: calc(1.25 * var(--font-size));
|
|
3150
3163
|
padding: var(--padding-y) calc(1.25 * var(--padding-x));
|
|
3151
3164
|
min-height: calc(1.25 * var(--button-height));
|
|
3152
3165
|
}
|
|
3153
|
-
.
|
|
3166
|
+
.Button_button__ZGNlZ.Button_xl__MmYwY {
|
|
3154
3167
|
font-size: calc(1.5 * var(--font-size));
|
|
3155
3168
|
padding: calc(1.25 * var(--padding-y)) calc(1.25 * var(--padding-x));
|
|
3156
3169
|
min-height: calc(1.5 * var(--button-height));
|
|
3157
3170
|
}
|
|
3158
|
-
body a.
|
|
3171
|
+
body a.Button_button__ZGNlZ {
|
|
3159
3172
|
color: inherit;
|
|
3160
3173
|
text-decoration: none;
|
|
3161
3174
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -172,10 +172,9 @@ interface FormFieldArrayProps extends Omit<HTMLAttributes<HTMLDivElement>, 'chil
|
|
|
172
172
|
declare function FormFieldArray({ name, description, label, rules, className, children, ...props }: FormFieldArrayProps): react.JSX.Element;
|
|
173
173
|
|
|
174
174
|
interface ButtonProps extends ButtonProps$1 {
|
|
175
|
-
variant?: 'primary' | '
|
|
175
|
+
variant?: 'primary' | 'outline' | 'quiet' | 'danger' | 'wrapper';
|
|
176
176
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
177
177
|
asChild?: boolean;
|
|
178
|
-
slot?: string;
|
|
179
178
|
children?: ReactNode;
|
|
180
179
|
}
|
|
181
180
|
declare function Button({ variant, size, asChild, preventFocusOnPress, className, children, ...props }: ButtonProps): react.JSX.Element;
|
|
@@ -444,8 +443,11 @@ interface ListProps extends ListBoxProps<any> {
|
|
|
444
443
|
separatorProperty?: string;
|
|
445
444
|
highlightColor?: string;
|
|
446
445
|
showCheckmark?: boolean;
|
|
446
|
+
label?: string;
|
|
447
|
+
value?: string[];
|
|
448
|
+
onChange?: (value: string[]) => void;
|
|
447
449
|
}
|
|
448
|
-
declare function List({ items, idProperty, labelProperty, separatorProperty, highlightColor, showCheckmark, className, style, children, ...props }: ListProps): react.JSX.Element;
|
|
450
|
+
declare function List({ items, idProperty, labelProperty, separatorProperty, highlightColor, showCheckmark, label, value, onChange, className, selectedKeys, defaultSelectedKeys, onSelectionChange, style, children, ...props }: ListProps): react.JSX.Element;
|
|
449
451
|
interface ListItemProps extends ListBoxItemProps<any> {
|
|
450
452
|
showCheckmark?: boolean;
|
|
451
453
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -172,10 +172,9 @@ interface FormFieldArrayProps extends Omit<HTMLAttributes<HTMLDivElement>, 'chil
|
|
|
172
172
|
declare function FormFieldArray({ name, description, label, rules, className, children, ...props }: FormFieldArrayProps): react.JSX.Element;
|
|
173
173
|
|
|
174
174
|
interface ButtonProps extends ButtonProps$1 {
|
|
175
|
-
variant?: 'primary' | '
|
|
175
|
+
variant?: 'primary' | 'outline' | 'quiet' | 'danger' | 'wrapper';
|
|
176
176
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
177
177
|
asChild?: boolean;
|
|
178
|
-
slot?: string;
|
|
179
178
|
children?: ReactNode;
|
|
180
179
|
}
|
|
181
180
|
declare function Button({ variant, size, asChild, preventFocusOnPress, className, children, ...props }: ButtonProps): react.JSX.Element;
|
|
@@ -444,8 +443,11 @@ interface ListProps extends ListBoxProps<any> {
|
|
|
444
443
|
separatorProperty?: string;
|
|
445
444
|
highlightColor?: string;
|
|
446
445
|
showCheckmark?: boolean;
|
|
446
|
+
label?: string;
|
|
447
|
+
value?: string[];
|
|
448
|
+
onChange?: (value: string[]) => void;
|
|
447
449
|
}
|
|
448
|
-
declare function List({ items, idProperty, labelProperty, separatorProperty, highlightColor, showCheckmark, className, style, children, ...props }: ListProps): react.JSX.Element;
|
|
450
|
+
declare function List({ items, idProperty, labelProperty, separatorProperty, highlightColor, showCheckmark, label, value, onChange, className, selectedKeys, defaultSelectedKeys, onSelectionChange, style, children, ...props }: ListProps): react.JSX.Element;
|
|
449
451
|
interface ListItemProps extends ListBoxItemProps<any> {
|
|
450
452
|
showCheckmark?: boolean;
|
|
451
453
|
}
|
package/dist/index.js
CHANGED
|
@@ -26421,12 +26421,12 @@ function FormFieldArray({
|
|
|
26421
26421
|
var import_classnames9 = __toESM(require_classnames());
|
|
26422
26422
|
|
|
26423
26423
|
// css-modules:E:\dev\umami-react-zen\src\components\Button.module.css
|
|
26424
|
-
var Button_default = { "button": "
|
|
26424
|
+
var Button_default = { "button": "Button_button__ZGNlZ", "variant-primary": "Button_variant-primary__YjM5O", "variant-outline": "Button_variant-outline__YTkyM", "variant-quiet": "Button_variant-quiet__YzZjO", "variant-danger": "Button_variant-danger__ZGY0M", "variant-zero": "Button_variant-zero__ZjhhZ", "sm": "Button_sm__ODlkM", "md": "Button_md__ZTU2M", "lg": "Button_lg__NWJjO", "xl": "Button_xl__MmYwY" };
|
|
26425
26425
|
|
|
26426
26426
|
// src/components/Button.tsx
|
|
26427
26427
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
26428
26428
|
function Button2({
|
|
26429
|
-
variant
|
|
26429
|
+
variant,
|
|
26430
26430
|
size = "md",
|
|
26431
26431
|
asChild,
|
|
26432
26432
|
preventFocusOnPress = true,
|
|
@@ -26444,7 +26444,7 @@ function Button2({
|
|
|
26444
26444
|
className: (0, import_classnames9.default)(
|
|
26445
26445
|
Button_default.button,
|
|
26446
26446
|
className,
|
|
26447
|
-
variant && Button_default[variant],
|
|
26447
|
+
variant && Button_default[`variant-${variant}`],
|
|
26448
26448
|
size && Button_default[size]
|
|
26449
26449
|
),
|
|
26450
26450
|
children
|
|
@@ -31251,29 +31251,47 @@ function List({
|
|
|
31251
31251
|
separatorProperty = "separatpr",
|
|
31252
31252
|
highlightColor,
|
|
31253
31253
|
showCheckmark = true,
|
|
31254
|
+
label,
|
|
31255
|
+
value,
|
|
31256
|
+
onChange,
|
|
31254
31257
|
className,
|
|
31258
|
+
selectedKeys,
|
|
31259
|
+
defaultSelectedKeys,
|
|
31260
|
+
onSelectionChange,
|
|
31255
31261
|
style,
|
|
31256
31262
|
children,
|
|
31257
31263
|
...props
|
|
31258
31264
|
}) {
|
|
31259
|
-
|
|
31260
|
-
|
|
31261
|
-
{
|
|
31262
|
-
|
|
31263
|
-
...props,
|
|
31264
|
-
items,
|
|
31265
|
-
className: (0, import_classnames33.default)(List_default.list, className, !showCheckmark && List_default.hideCheckmark),
|
|
31266
|
-
style: { ...style, ...getHighlightColor(highlightColor) },
|
|
31267
|
-
children: children || items?.map((item) => {
|
|
31268
|
-
const id = item[idProperty] || item.toString();
|
|
31269
|
-
const label = item[labelProperty] || item.toString();
|
|
31270
|
-
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_react183.Fragment, { children: [
|
|
31271
|
-
item[separatorProperty] && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { className: List_default.separator }),
|
|
31272
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ListItem, { id, className: List_default.item, children: label })
|
|
31273
|
-
] }, id);
|
|
31274
|
-
})
|
|
31265
|
+
const handleSelectionChange = (keys) => {
|
|
31266
|
+
onSelectionChange?.(keys);
|
|
31267
|
+
if (keys !== "all") {
|
|
31268
|
+
onChange?.([...keys].map(String));
|
|
31275
31269
|
}
|
|
31276
|
-
|
|
31270
|
+
};
|
|
31271
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
|
|
31272
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Label2, { children: label }),
|
|
31273
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
31274
|
+
$eed445e0843c11d0$export$41f133550aa26f48,
|
|
31275
|
+
{
|
|
31276
|
+
"aria-label": "list",
|
|
31277
|
+
...props,
|
|
31278
|
+
selectedKeys: value || selectedKeys,
|
|
31279
|
+
defaultSelectedKeys: value || defaultSelectedKeys,
|
|
31280
|
+
items,
|
|
31281
|
+
className: (0, import_classnames33.default)(List_default.list, className, !showCheckmark && List_default.hideCheckmark),
|
|
31282
|
+
onSelectionChange: handleSelectionChange,
|
|
31283
|
+
style: { ...style, ...getHighlightColor(highlightColor) },
|
|
31284
|
+
children: children || items?.map((item) => {
|
|
31285
|
+
const id = item[idProperty] || item.toString();
|
|
31286
|
+
const label2 = item[labelProperty] || item.toString();
|
|
31287
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_react183.Fragment, { children: [
|
|
31288
|
+
item[separatorProperty] && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { className: List_default.separator }),
|
|
31289
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ListItem, { id, className: List_default.item, children: label2 })
|
|
31290
|
+
] }, id);
|
|
31291
|
+
})
|
|
31292
|
+
}
|
|
31293
|
+
)
|
|
31294
|
+
] });
|
|
31277
31295
|
}
|
|
31278
31296
|
function ListItem({
|
|
31279
31297
|
id,
|
package/dist/index.mjs
CHANGED
|
@@ -26306,12 +26306,12 @@ function FormFieldArray({
|
|
|
26306
26306
|
var import_classnames9 = __toESM(require_classnames());
|
|
26307
26307
|
|
|
26308
26308
|
// css-modules:E:\dev\umami-react-zen\src\components\Button.module.css
|
|
26309
|
-
var Button_default = { "button": "
|
|
26309
|
+
var Button_default = { "button": "Button_button__ZGNlZ", "variant-primary": "Button_variant-primary__YjM5O", "variant-outline": "Button_variant-outline__YTkyM", "variant-quiet": "Button_variant-quiet__YzZjO", "variant-danger": "Button_variant-danger__ZGY0M", "variant-zero": "Button_variant-zero__ZjhhZ", "sm": "Button_sm__ODlkM", "md": "Button_md__ZTU2M", "lg": "Button_lg__NWJjO", "xl": "Button_xl__MmYwY" };
|
|
26310
26310
|
|
|
26311
26311
|
// src/components/Button.tsx
|
|
26312
26312
|
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
26313
26313
|
function Button2({
|
|
26314
|
-
variant
|
|
26314
|
+
variant,
|
|
26315
26315
|
size = "md",
|
|
26316
26316
|
asChild,
|
|
26317
26317
|
preventFocusOnPress = true,
|
|
@@ -26329,7 +26329,7 @@ function Button2({
|
|
|
26329
26329
|
className: (0, import_classnames9.default)(
|
|
26330
26330
|
Button_default.button,
|
|
26331
26331
|
className,
|
|
26332
|
-
variant && Button_default[variant],
|
|
26332
|
+
variant && Button_default[`variant-${variant}`],
|
|
26333
26333
|
size && Button_default[size]
|
|
26334
26334
|
),
|
|
26335
26335
|
children
|
|
@@ -31128,7 +31128,7 @@ function getHighlightColor(color) {
|
|
|
31128
31128
|
var List_default = { "list": "List_list__ZTQ5M", "separator": "List_separator__Zjk5Y", "section": "List_section__MDgwZ", "header": "List_header__MjUxO", "item": "List_item__NTg2Z", "checkmark": "List_checkmark__M2M5Y", "hideCheckmark": "List_hideCheckmark__YmNlM" };
|
|
31129
31129
|
|
|
31130
31130
|
// src/components/List.tsx
|
|
31131
|
-
import { jsx as jsx48, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
31131
|
+
import { Fragment as Fragment8, jsx as jsx48, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
31132
31132
|
function List({
|
|
31133
31133
|
items,
|
|
31134
31134
|
idProperty = "id",
|
|
@@ -31136,29 +31136,47 @@ function List({
|
|
|
31136
31136
|
separatorProperty = "separatpr",
|
|
31137
31137
|
highlightColor,
|
|
31138
31138
|
showCheckmark = true,
|
|
31139
|
+
label,
|
|
31140
|
+
value,
|
|
31141
|
+
onChange,
|
|
31139
31142
|
className,
|
|
31143
|
+
selectedKeys,
|
|
31144
|
+
defaultSelectedKeys,
|
|
31145
|
+
onSelectionChange,
|
|
31140
31146
|
style,
|
|
31141
31147
|
children,
|
|
31142
31148
|
...props
|
|
31143
31149
|
}) {
|
|
31144
|
-
|
|
31145
|
-
|
|
31146
|
-
{
|
|
31147
|
-
|
|
31148
|
-
...props,
|
|
31149
|
-
items,
|
|
31150
|
-
className: (0, import_classnames33.default)(List_default.list, className, !showCheckmark && List_default.hideCheckmark),
|
|
31151
|
-
style: { ...style, ...getHighlightColor(highlightColor) },
|
|
31152
|
-
children: children || items?.map((item) => {
|
|
31153
|
-
const id = item[idProperty] || item.toString();
|
|
31154
|
-
const label = item[labelProperty] || item.toString();
|
|
31155
|
-
return /* @__PURE__ */ jsxs25(Fragment7, { children: [
|
|
31156
|
-
item[separatorProperty] && /* @__PURE__ */ jsx48($431f98aba6844401$export$1ff3c3f08ae963c0, { className: List_default.separator }),
|
|
31157
|
-
/* @__PURE__ */ jsx48(ListItem, { id, className: List_default.item, children: label })
|
|
31158
|
-
] }, id);
|
|
31159
|
-
})
|
|
31150
|
+
const handleSelectionChange = (keys) => {
|
|
31151
|
+
onSelectionChange?.(keys);
|
|
31152
|
+
if (keys !== "all") {
|
|
31153
|
+
onChange?.([...keys].map(String));
|
|
31160
31154
|
}
|
|
31161
|
-
|
|
31155
|
+
};
|
|
31156
|
+
return /* @__PURE__ */ jsxs25(Fragment8, { children: [
|
|
31157
|
+
label && /* @__PURE__ */ jsx48(Label2, { children: label }),
|
|
31158
|
+
/* @__PURE__ */ jsx48(
|
|
31159
|
+
$eed445e0843c11d0$export$41f133550aa26f48,
|
|
31160
|
+
{
|
|
31161
|
+
"aria-label": "list",
|
|
31162
|
+
...props,
|
|
31163
|
+
selectedKeys: value || selectedKeys,
|
|
31164
|
+
defaultSelectedKeys: value || defaultSelectedKeys,
|
|
31165
|
+
items,
|
|
31166
|
+
className: (0, import_classnames33.default)(List_default.list, className, !showCheckmark && List_default.hideCheckmark),
|
|
31167
|
+
onSelectionChange: handleSelectionChange,
|
|
31168
|
+
style: { ...style, ...getHighlightColor(highlightColor) },
|
|
31169
|
+
children: children || items?.map((item) => {
|
|
31170
|
+
const id = item[idProperty] || item.toString();
|
|
31171
|
+
const label2 = item[labelProperty] || item.toString();
|
|
31172
|
+
return /* @__PURE__ */ jsxs25(Fragment7, { children: [
|
|
31173
|
+
item[separatorProperty] && /* @__PURE__ */ jsx48($431f98aba6844401$export$1ff3c3f08ae963c0, { className: List_default.separator }),
|
|
31174
|
+
/* @__PURE__ */ jsx48(ListItem, { id, className: List_default.item, children: label2 })
|
|
31175
|
+
] }, id);
|
|
31176
|
+
})
|
|
31177
|
+
}
|
|
31178
|
+
)
|
|
31179
|
+
] });
|
|
31162
31180
|
}
|
|
31163
31181
|
function ListItem({
|
|
31164
31182
|
id,
|
|
@@ -31321,12 +31339,12 @@ function NavMenuItem({ isSelected, className, children, ...props }) {
|
|
|
31321
31339
|
// src/components/PasswordField.tsx
|
|
31322
31340
|
import { useState as useState15 } from "react";
|
|
31323
31341
|
var import_classnames39 = __toESM(require_classnames());
|
|
31324
|
-
import { Fragment as
|
|
31342
|
+
import { Fragment as Fragment9, jsx as jsx54, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
31325
31343
|
function PasswordField({ label, className, ...props }) {
|
|
31326
31344
|
const [show, setShow] = useState15(false);
|
|
31327
31345
|
const type = show ? "text" : "password";
|
|
31328
31346
|
const handleShowPassword = () => setShow((state) => !state);
|
|
31329
|
-
return /* @__PURE__ */ jsxs29(
|
|
31347
|
+
return /* @__PURE__ */ jsxs29(Fragment9, { children: [
|
|
31330
31348
|
label && /* @__PURE__ */ jsx54(Label2, { children: label }),
|
|
31331
31349
|
/* @__PURE__ */ jsxs29($bcdf0525bf22703d$export$2c73285ae9390cec, { "aria-label": "Password", ...props, className: (0, import_classnames39.default)(TextField_default.field, className), children: [
|
|
31332
31350
|
/* @__PURE__ */ jsx54($3985021b0ad6602f$export$f5b8910cec6cf069, { type }),
|
|
@@ -31354,10 +31372,10 @@ var import_classnames41 = __toESM(require_classnames());
|
|
|
31354
31372
|
var ProgressBar_default = { "progressbar": "ProgressBar_progressbar__YzdlO", "track": "ProgressBar_track__YzgzY", "fill": "ProgressBar_fill__ZTJlM", "value": "ProgressBar_value__NDk1Z" };
|
|
31355
31373
|
|
|
31356
31374
|
// src/components/ProgressBar.tsx
|
|
31357
|
-
import { Fragment as
|
|
31375
|
+
import { Fragment as Fragment10, jsx as jsx56, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
31358
31376
|
function ProgressBar2({ className, showPercentage, ...props }) {
|
|
31359
31377
|
return /* @__PURE__ */ jsx56($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames41.default)(ProgressBar_default.progressbar, className), children: ({ percentage = 0, valueText }) => {
|
|
31360
|
-
return /* @__PURE__ */ jsxs30(
|
|
31378
|
+
return /* @__PURE__ */ jsxs30(Fragment10, { children: [
|
|
31361
31379
|
/* @__PURE__ */ jsx56("div", { className: ProgressBar_default.track, children: /* @__PURE__ */ jsx56("div", { className: ProgressBar_default.fill, style: { width: `${percentage}%` } }) }),
|
|
31362
31380
|
showPercentage && /* @__PURE__ */ jsx56("div", { className: ProgressBar_default.value, children: valueText })
|
|
31363
31381
|
] });
|
|
@@ -31371,13 +31389,13 @@ var import_classnames42 = __toESM(require_classnames());
|
|
|
31371
31389
|
var ProgressCircle_default = { "progresscircle": "ProgressCircle_progresscircle__NGMyY", "track": "ProgressCircle_track__YzY2M", "fill": "ProgressCircle_fill__ZmMzM", "value": "ProgressCircle_value__YjM0Y" };
|
|
31372
31390
|
|
|
31373
31391
|
// src/components/ProgressCircle.tsx
|
|
31374
|
-
import { Fragment as
|
|
31392
|
+
import { Fragment as Fragment11, jsx as jsx57, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
31375
31393
|
function ProgressCircle({ className, showPercentage, ...props }) {
|
|
31376
31394
|
return /* @__PURE__ */ jsx57($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames42.default)(ProgressCircle_default.progresscircle, className), children: ({ percentage = 0, valueText }) => {
|
|
31377
31395
|
const radius = 45;
|
|
31378
31396
|
const circumference = radius * 2 * Math.PI;
|
|
31379
31397
|
const offset = circumference - percentage / 100 * circumference;
|
|
31380
|
-
return /* @__PURE__ */ jsxs31(
|
|
31398
|
+
return /* @__PURE__ */ jsxs31(Fragment11, { children: [
|
|
31381
31399
|
/* @__PURE__ */ jsxs31("svg", { viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
31382
31400
|
/* @__PURE__ */ jsx57("circle", { className: ProgressCircle_default.track, cx: "50", cy: "50", r: "45" }),
|
|
31383
31401
|
/* @__PURE__ */ jsx57(
|
|
@@ -31432,7 +31450,7 @@ function Radio2({ children, className, ...props }) {
|
|
|
31432
31450
|
// src/components/SearchField.tsx
|
|
31433
31451
|
import { useState as useState16, useEffect as useEffect12 } from "react";
|
|
31434
31452
|
var import_classnames44 = __toESM(require_classnames());
|
|
31435
|
-
import { Fragment as
|
|
31453
|
+
import { Fragment as Fragment12, jsx as jsx59, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
31436
31454
|
function SearchField2({
|
|
31437
31455
|
label,
|
|
31438
31456
|
placeholder,
|
|
@@ -31463,7 +31481,7 @@ function SearchField2({
|
|
|
31463
31481
|
onSearch?.(searchValue);
|
|
31464
31482
|
}
|
|
31465
31483
|
}, [searchValue, delay]);
|
|
31466
|
-
return /* @__PURE__ */ jsxs33(
|
|
31484
|
+
return /* @__PURE__ */ jsxs33(Fragment12, { children: [
|
|
31467
31485
|
label && /* @__PURE__ */ jsx59(Label2, { children: label }),
|
|
31468
31486
|
/* @__PURE__ */ jsxs33(
|
|
31469
31487
|
$440f4836bcb56932$export$b94867ecbd698f21,
|
|
@@ -31661,7 +31679,7 @@ var import_classnames47 = __toESM(require_classnames());
|
|
|
31661
31679
|
var Slider_default = { "slider": "Slider_slider__MjBhO", "header": "Slider_header__ZTE2M", "track": "Slider_track__ODk5M", "fill": "Slider_fill__YzdhM", "thumb": "Slider_thumb__NGEzM" };
|
|
31662
31680
|
|
|
31663
31681
|
// src/components/Slider.tsx
|
|
31664
|
-
import { Fragment as
|
|
31682
|
+
import { Fragment as Fragment13, jsx as jsx62, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
31665
31683
|
function Slider2({ className, showValue = true, label, ...props }) {
|
|
31666
31684
|
return /* @__PURE__ */ jsxs36($6f909507e6374d18$export$472062a354075cee, { ...props, className: (0, import_classnames47.default)(Slider_default.slider, className), children: [
|
|
31667
31685
|
/* @__PURE__ */ jsxs36("div", { className: Slider_default.header, children: [
|
|
@@ -31670,7 +31688,7 @@ function Slider2({ className, showValue = true, label, ...props }) {
|
|
|
31670
31688
|
] }),
|
|
31671
31689
|
/* @__PURE__ */ jsx62($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
|
|
31672
31690
|
const isHorizontal = state.orientation === "horizontal";
|
|
31673
|
-
return /* @__PURE__ */ jsxs36(
|
|
31691
|
+
return /* @__PURE__ */ jsxs36(Fragment13, { children: [
|
|
31674
31692
|
/* @__PURE__ */ jsx62(
|
|
31675
31693
|
"div",
|
|
31676
31694
|
{
|
|
@@ -31715,10 +31733,10 @@ var import_classnames49 = __toESM(require_classnames());
|
|
|
31715
31733
|
var Switch_default = { "switch": "Switch_switch__NzI0O", "track": "Switch_track__ZWU0O", "knob": "Switch_knob__YjFmZ" };
|
|
31716
31734
|
|
|
31717
31735
|
// src/components/Switch.tsx
|
|
31718
|
-
import { Fragment as
|
|
31736
|
+
import { Fragment as Fragment14, jsx as jsx64, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
31719
31737
|
function Switch2({ label, children, className, ...props }) {
|
|
31720
31738
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31721
|
-
return /* @__PURE__ */ jsxs38(
|
|
31739
|
+
return /* @__PURE__ */ jsxs38(Fragment14, { children: [
|
|
31722
31740
|
label && /* @__PURE__ */ jsx64(Label2, { children: label }),
|
|
31723
31741
|
/* @__PURE__ */ jsxs38(
|
|
31724
31742
|
$8e59e948500a8fe1$export$b5d5cf8927ab7262,
|
|
@@ -31810,10 +31828,10 @@ var import_classnames51 = __toESM(require_classnames());
|
|
|
31810
31828
|
var Toggle_default = { "toggle": "Toggle_toggle__OWVjZ" };
|
|
31811
31829
|
|
|
31812
31830
|
// src/components/Toggle.tsx
|
|
31813
|
-
import { Fragment as
|
|
31831
|
+
import { Fragment as Fragment15, jsx as jsx67, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
31814
31832
|
function Toggle({ label, children, className, ...props }) {
|
|
31815
31833
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
31816
|
-
return /* @__PURE__ */ jsxs40(
|
|
31834
|
+
return /* @__PURE__ */ jsxs40(Fragment15, { children: [
|
|
31817
31835
|
label && /* @__PURE__ */ jsx67(Label2, { children: label }),
|
|
31818
31836
|
/* @__PURE__ */ jsx67(
|
|
31819
31837
|
$efde0372d7a700fe$export$d2b052e7b4be1756,
|
package/package.json
CHANGED
package/styles.css
CHANGED
|
@@ -3372,7 +3372,7 @@ li {
|
|
|
3372
3372
|
}
|
|
3373
3373
|
|
|
3374
3374
|
/* virtual-css:css:616ae3b49446388ff62e911490fa55d8 */
|
|
3375
|
-
.
|
|
3375
|
+
.Button_button__ZGNlZ {
|
|
3376
3376
|
display: flex;
|
|
3377
3377
|
align-items: center;
|
|
3378
3378
|
justify-content: center;
|
|
@@ -3391,89 +3391,102 @@ li {
|
|
|
3391
3391
|
line-height: 1.5;
|
|
3392
3392
|
--button-height: calc(1.5 * var(--font-size) + 2 * var(--padding-y)) ;
|
|
3393
3393
|
}
|
|
3394
|
-
.
|
|
3394
|
+
.Button_button__ZGNlZ:disabled {
|
|
3395
3395
|
color: var(--font-color-muted);
|
|
3396
3396
|
pointer-events: none;
|
|
3397
3397
|
}
|
|
3398
|
-
.
|
|
3398
|
+
.Button_button__ZGNlZ:hover {
|
|
3399
3399
|
color: var(--font-color);
|
|
3400
3400
|
background: color-mix(in srgb, var(--base-color-3), 5% var(--dark-color));
|
|
3401
3401
|
}
|
|
3402
|
-
.
|
|
3402
|
+
.Button_button__ZGNlZ[data-pressed] {
|
|
3403
3403
|
background: color-mix(in srgb, var(--base-color-3), 10% var(--dark-color));
|
|
3404
3404
|
}
|
|
3405
|
-
.
|
|
3405
|
+
.Button_button__ZGNlZ.Button_variant-primary__YjM5O {
|
|
3406
3406
|
color: var(--primary-font-color) !important;
|
|
3407
3407
|
background: var(--primary-color);
|
|
3408
3408
|
}
|
|
3409
|
-
.
|
|
3409
|
+
.Button_button__ZGNlZ.Button_variant-primary__YjM5O:hover {
|
|
3410
3410
|
background: color-mix(in srgb, var(--primary-color), 10% var(--primary-font-color));
|
|
3411
3411
|
}
|
|
3412
|
-
.
|
|
3412
|
+
.Button_button__ZGNlZ.Button_variant-primary__YjM5O[data-pressed] {
|
|
3413
3413
|
background: color-mix(in srgb, var(--primary-color), 20% var(--primary-font-color));
|
|
3414
3414
|
}
|
|
3415
|
-
.
|
|
3415
|
+
.Button_button__ZGNlZ.Button_variant-primary__YjM5O:disabled {
|
|
3416
3416
|
color: var(--primary-font-color);
|
|
3417
3417
|
background: var(--base-color-9);
|
|
3418
3418
|
}
|
|
3419
|
-
.
|
|
3419
|
+
.Button_button__ZGNlZ.Button_variant-outline__YTkyM {
|
|
3420
3420
|
background: var(--background-color);
|
|
3421
3421
|
border: var(--border);
|
|
3422
3422
|
box-shadow: var(--box-shadow-1);
|
|
3423
3423
|
}
|
|
3424
|
-
.
|
|
3424
|
+
.Button_button__ZGNlZ.Button_variant-outline__YTkyM:hover {
|
|
3425
3425
|
border-color: var(--border-color-3);
|
|
3426
3426
|
}
|
|
3427
|
-
.
|
|
3427
|
+
.Button_button__ZGNlZ.Button_variant-outline__YTkyM[data-pressed] {
|
|
3428
3428
|
background: var(--highlight-color);
|
|
3429
3429
|
}
|
|
3430
|
-
.
|
|
3430
|
+
.Button_button__ZGNlZ.Button_variant-outline__YTkyM:disabled {
|
|
3431
3431
|
background: var(--base-color-2);
|
|
3432
3432
|
}
|
|
3433
|
-
.
|
|
3433
|
+
.Button_button__ZGNlZ.Button_variant-quiet__YzZjO {
|
|
3434
3434
|
background: transparent;
|
|
3435
3435
|
}
|
|
3436
|
-
.
|
|
3436
|
+
.Button_button__ZGNlZ.Button_variant-quiet__YzZjO:hover {
|
|
3437
3437
|
background: var(--highlight-color);
|
|
3438
3438
|
}
|
|
3439
|
-
.
|
|
3439
|
+
.Button_button__ZGNlZ.Button_variant-quiet__YzZjO[data-pressed] {
|
|
3440
3440
|
background: color-mix(in srgb, var(--highlight-color), 5% var(--dark-color));
|
|
3441
3441
|
}
|
|
3442
|
-
.
|
|
3442
|
+
.Button_button__ZGNlZ.Button_variant-danger__ZGY0M {
|
|
3443
3443
|
color: var(--light-color);
|
|
3444
3444
|
background: var(--danger-color);
|
|
3445
3445
|
}
|
|
3446
|
-
.
|
|
3446
|
+
.Button_button__ZGNlZ.Button_variant-danger__ZGY0M:hover {
|
|
3447
3447
|
background: color-mix(in srgb, var(--danger-color), 6% black);
|
|
3448
3448
|
}
|
|
3449
|
-
.
|
|
3449
|
+
.Button_button__ZGNlZ.Button_variant-danger__ZGY0M[data-pressed] {
|
|
3450
3450
|
background: color-mix(in srgb, var(--danger-color), 12% black);
|
|
3451
3451
|
}
|
|
3452
|
-
.
|
|
3452
|
+
.Button_button__ZGNlZ.Button_variant-danger__ZGY0M:disabled {
|
|
3453
3453
|
color: var(--primary-font-color);
|
|
3454
3454
|
background: var(--base-color-8);
|
|
3455
3455
|
}
|
|
3456
|
-
.
|
|
3456
|
+
.Button_button__ZGNlZ.Button_variant-zero__ZjhhZ {
|
|
3457
|
+
border: 0;
|
|
3458
|
+
background: transparent;
|
|
3459
|
+
}
|
|
3460
|
+
.Button_button__ZGNlZ.Button_variant-zero__ZjhhZ:hover {
|
|
3461
|
+
background: transparent;
|
|
3462
|
+
}
|
|
3463
|
+
.Button_button__ZGNlZ.Button_variant-zero__ZjhhZ[data-pressed] {
|
|
3464
|
+
background: transparent;
|
|
3465
|
+
}
|
|
3466
|
+
.Button_button__ZGNlZ.Button_variant-zero__ZjhhZ:disabled {
|
|
3467
|
+
background: transparent;
|
|
3468
|
+
}
|
|
3469
|
+
.Button_button__ZGNlZ.Button_sm__ODlkM {
|
|
3457
3470
|
font-size: calc(0.9 * var(--font-size));
|
|
3458
3471
|
padding: calc(0.5 * var(--padding-y)) calc(0.75 * var(--padding-x));
|
|
3459
3472
|
min-height: calc(0.9 * var(--button-height));
|
|
3460
3473
|
}
|
|
3461
|
-
.
|
|
3474
|
+
.Button_button__ZGNlZ.Button_md__ZTU2M {
|
|
3462
3475
|
font-size: var(--font-size);
|
|
3463
3476
|
padding: var(--padding);
|
|
3464
3477
|
min-height: var(--button-height);
|
|
3465
3478
|
}
|
|
3466
|
-
.
|
|
3479
|
+
.Button_button__ZGNlZ.Button_lg__NWJjO {
|
|
3467
3480
|
font-size: calc(1.25 * var(--font-size));
|
|
3468
3481
|
padding: var(--padding-y) calc(1.25 * var(--padding-x));
|
|
3469
3482
|
min-height: calc(1.25 * var(--button-height));
|
|
3470
3483
|
}
|
|
3471
|
-
.
|
|
3484
|
+
.Button_button__ZGNlZ.Button_xl__MmYwY {
|
|
3472
3485
|
font-size: calc(1.5 * var(--font-size));
|
|
3473
3486
|
padding: calc(1.25 * var(--padding-y)) calc(1.25 * var(--padding-x));
|
|
3474
3487
|
min-height: calc(1.5 * var(--button-height));
|
|
3475
3488
|
}
|
|
3476
|
-
body a.
|
|
3489
|
+
body a.Button_button__ZGNlZ {
|
|
3477
3490
|
color: inherit;
|
|
3478
3491
|
text-decoration: none;
|
|
3479
3492
|
}
|