@umami/react-zen 0.87.0 → 0.89.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 +6 -5
- package/dist/index.d.ts +5 -1
- package/dist/index.js +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +2 -2
- package/styles.css +12 -11
package/dist/index.css
CHANGED
|
@@ -2766,30 +2766,31 @@ body a.Button_button__NDYwM {
|
|
|
2766
2766
|
}
|
|
2767
2767
|
|
|
2768
2768
|
/* virtual-css:css:190b71b0b870ea6c0882d0c839c39b19 */
|
|
2769
|
-
.
|
|
2769
|
+
.Dialog_dialog__YzZhN {
|
|
2770
2770
|
position: relative;
|
|
2771
2771
|
outline: none;
|
|
2772
|
+
overflow: auto;
|
|
2772
2773
|
}
|
|
2773
|
-
.
|
|
2774
|
+
.Dialog_title__NjZlN {
|
|
2774
2775
|
font-size: var(--font-size-4);
|
|
2775
2776
|
font-weight: 700;
|
|
2776
2777
|
margin-bottom: var(--spacing-3);
|
|
2777
2778
|
}
|
|
2778
|
-
.
|
|
2779
|
+
.Dialog_modal__YjEzN {
|
|
2779
2780
|
padding: var(--spacing-6);
|
|
2780
2781
|
box-shadow: var(--box-shadow-4);
|
|
2781
2782
|
background: var(--background-color);
|
|
2782
2783
|
border: var(--border);
|
|
2783
2784
|
border-radius: var(--border-radius);
|
|
2784
2785
|
}
|
|
2785
|
-
.
|
|
2786
|
+
.Dialog_menu__ZmFhN {
|
|
2786
2787
|
padding: var(--spacing-2);
|
|
2787
2788
|
box-shadow: var(--box-shadow-3);
|
|
2788
2789
|
background: var(--background-color);
|
|
2789
2790
|
border: var(--border);
|
|
2790
2791
|
border-radius: var(--border-radius);
|
|
2791
2792
|
}
|
|
2792
|
-
.
|
|
2793
|
+
.Dialog_sheet__NzkxM {
|
|
2793
2794
|
background: var(--background-color);
|
|
2794
2795
|
width: 100%;
|
|
2795
2796
|
height: 100%;
|
package/dist/index.d.ts
CHANGED
|
@@ -764,7 +764,8 @@ declare module '@umami/react-zen/SearchField' {
|
|
|
764
764
|
}
|
|
765
765
|
|
|
766
766
|
declare module '@umami/react-zen/Select' {
|
|
767
|
-
import {
|
|
767
|
+
import { ReactNode } from 'react';
|
|
768
|
+
import { PopoverProps, SelectProps as AriaSelectProps, SelectValueRenderProps } from 'react-aria-components';
|
|
768
769
|
import { ListProps } from '@umami/react-zen/List';
|
|
769
770
|
interface SelectProps extends AriaSelectProps<HTMLSelectElement> {
|
|
770
771
|
items?: any[];
|
|
@@ -777,6 +778,9 @@ declare module '@umami/react-zen/Select' {
|
|
|
777
778
|
onChange?: (e: any) => void;
|
|
778
779
|
listProps?: ListProps;
|
|
779
780
|
popoverProps?: PopoverProps;
|
|
781
|
+
renderValue?: ReactNode | ((values: SelectValueRenderProps<object> & {
|
|
782
|
+
defaultChildren: ReactNode;
|
|
783
|
+
}) => ReactNode);
|
|
780
784
|
}
|
|
781
785
|
const Select: import("react").ForwardRefExoticComponent<SelectProps & import("react").RefAttributes<any>>;
|
|
782
786
|
export { Select };
|
package/dist/index.js
CHANGED
|
@@ -29895,7 +29895,7 @@ var import_classnames14 = __toESM(require_classnames());
|
|
|
29895
29895
|
var import_classnames13 = __toESM(require_classnames());
|
|
29896
29896
|
|
|
29897
29897
|
// css-modules:E:\dev\umami-react-zen\src\components\Dialog.module.css
|
|
29898
|
-
var Dialog_default = { "dialog": "
|
|
29898
|
+
var Dialog_default = { "dialog": "Dialog_dialog__YzZhN", "title": "Dialog_title__NjZlN", "modal": "Dialog_modal__YjEzN", "menu": "Dialog_menu__ZmFhN", "sheet": "Dialog_sheet__NzkxM" };
|
|
29899
29899
|
|
|
29900
29900
|
// src/components/Dialog.tsx
|
|
29901
29901
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
@@ -31026,6 +31026,7 @@ var Select2 = (0, import_react189.forwardRef)(
|
|
|
31026
31026
|
onChange,
|
|
31027
31027
|
listProps,
|
|
31028
31028
|
popoverProps,
|
|
31029
|
+
renderValue,
|
|
31029
31030
|
className,
|
|
31030
31031
|
children,
|
|
31031
31032
|
...props
|
|
@@ -31045,7 +31046,7 @@ var Select2 = (0, import_react189.forwardRef)(
|
|
|
31045
31046
|
children: [
|
|
31046
31047
|
label && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Label2, { children: label }),
|
|
31047
31048
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: (0, import_classnames43.default)(input_default.input, className), children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Row, { justifyContent: "space-between", gap: "3", children: [
|
|
31048
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)($82d7e5349645de74$export$e288731fd71264f0, {}),
|
|
31049
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)($82d7e5349645de74$export$e288731fd71264f0, { children: renderValue }),
|
|
31049
31050
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { rotate: 90, size: "xs", className: input_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icons.Chevron, {}) }) })
|
|
31050
31051
|
] }) }),
|
|
31051
31052
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Popover2, { ...popoverProps, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Column, { className: Select_default.popover, children: [
|
package/dist/index.mjs
CHANGED
|
@@ -29784,7 +29784,7 @@ var import_classnames14 = __toESM(require_classnames());
|
|
|
29784
29784
|
var import_classnames13 = __toESM(require_classnames());
|
|
29785
29785
|
|
|
29786
29786
|
// css-modules:E:\dev\umami-react-zen\src\components\Dialog.module.css
|
|
29787
|
-
var Dialog_default = { "dialog": "
|
|
29787
|
+
var Dialog_default = { "dialog": "Dialog_dialog__YzZhN", "title": "Dialog_title__NjZlN", "modal": "Dialog_modal__YjEzN", "menu": "Dialog_menu__ZmFhN", "sheet": "Dialog_sheet__NzkxM" };
|
|
29788
29788
|
|
|
29789
29789
|
// src/components/Dialog.tsx
|
|
29790
29790
|
import { Fragment as Fragment2, jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
@@ -30919,6 +30919,7 @@ var Select2 = forwardRef9(
|
|
|
30919
30919
|
onChange,
|
|
30920
30920
|
listProps,
|
|
30921
30921
|
popoverProps,
|
|
30922
|
+
renderValue,
|
|
30922
30923
|
className,
|
|
30923
30924
|
children,
|
|
30924
30925
|
...props
|
|
@@ -30938,7 +30939,7 @@ var Select2 = forwardRef9(
|
|
|
30938
30939
|
children: [
|
|
30939
30940
|
label && /* @__PURE__ */ jsx53(Label2, { children: label }),
|
|
30940
30941
|
/* @__PURE__ */ jsx53($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: (0, import_classnames43.default)(input_default.input, className), children: /* @__PURE__ */ jsxs30(Row, { justifyContent: "space-between", gap: "3", children: [
|
|
30941
|
-
/* @__PURE__ */ jsx53($82d7e5349645de74$export$e288731fd71264f0, {}),
|
|
30942
|
+
/* @__PURE__ */ jsx53($82d7e5349645de74$export$e288731fd71264f0, { children: renderValue }),
|
|
30942
30943
|
/* @__PURE__ */ jsx53("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx53(Icon, { rotate: 90, size: "xs", className: input_default.icon, children: /* @__PURE__ */ jsx53(Icons.Chevron, {}) }) })
|
|
30943
30944
|
] }) }),
|
|
30944
30945
|
/* @__PURE__ */ jsx53(Popover2, { ...popoverProps, children: /* @__PURE__ */ jsxs30(Column, { className: Select_default.popover, children: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umami/react-zen",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.89.0",
|
|
4
4
|
"description": "Modern, minimalist React component library",
|
|
5
5
|
"author": "Umami <hello@umami.is>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@types/react": "^19.1.0",
|
|
75
75
|
"@types/react-dom": "^19.1.1",
|
|
76
76
|
"@umami/esbuild-plugin-css-modules": "0.4.0",
|
|
77
|
-
"@umami/shiso": "^0.
|
|
77
|
+
"@umami/shiso": "^0.51.0",
|
|
78
78
|
"babel-plugin-inline-react-svg": "^2.0.2",
|
|
79
79
|
"babel-plugin-syntax-hermes-parser": "^0.26.0",
|
|
80
80
|
"dts-bundle": "^0.7.3",
|
package/styles.css
CHANGED
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
--letter-spacing-4: 0.025em;
|
|
31
31
|
--letter-spacing-5: 0.05em;
|
|
32
32
|
|
|
33
|
-
--heading-size-1:
|
|
34
|
-
--heading-size-2:
|
|
35
|
-
--heading-size-3:
|
|
36
|
-
--heading-size-4:
|
|
37
|
-
--heading-size-5:
|
|
38
|
-
--heading-size-6:
|
|
33
|
+
--heading-size-1: 16px;
|
|
34
|
+
--heading-size-2: 20px;
|
|
35
|
+
--heading-size-3: 24px;
|
|
36
|
+
--heading-size-4: 32px;
|
|
37
|
+
--heading-size-5: 42px;
|
|
38
|
+
--heading-size-6: 60px;
|
|
39
39
|
|
|
40
40
|
/* Spacing */
|
|
41
41
|
|
|
@@ -3086,30 +3086,31 @@ body a.Button_button__NDYwM {
|
|
|
3086
3086
|
}
|
|
3087
3087
|
|
|
3088
3088
|
/* virtual-css:css:190b71b0b870ea6c0882d0c839c39b19 */
|
|
3089
|
-
.
|
|
3089
|
+
.Dialog_dialog__YzZhN {
|
|
3090
3090
|
position: relative;
|
|
3091
3091
|
outline: none;
|
|
3092
|
+
overflow: auto;
|
|
3092
3093
|
}
|
|
3093
|
-
.
|
|
3094
|
+
.Dialog_title__NjZlN {
|
|
3094
3095
|
font-size: var(--font-size-4);
|
|
3095
3096
|
font-weight: 700;
|
|
3096
3097
|
margin-bottom: var(--spacing-3);
|
|
3097
3098
|
}
|
|
3098
|
-
.
|
|
3099
|
+
.Dialog_modal__YjEzN {
|
|
3099
3100
|
padding: var(--spacing-6);
|
|
3100
3101
|
box-shadow: var(--box-shadow-4);
|
|
3101
3102
|
background: var(--background-color);
|
|
3102
3103
|
border: var(--border);
|
|
3103
3104
|
border-radius: var(--border-radius);
|
|
3104
3105
|
}
|
|
3105
|
-
.
|
|
3106
|
+
.Dialog_menu__ZmFhN {
|
|
3106
3107
|
padding: var(--spacing-2);
|
|
3107
3108
|
box-shadow: var(--box-shadow-3);
|
|
3108
3109
|
background: var(--background-color);
|
|
3109
3110
|
border: var(--border);
|
|
3110
3111
|
border-radius: var(--border-radius);
|
|
3111
3112
|
}
|
|
3112
|
-
.
|
|
3113
|
+
.Dialog_sheet__NzkxM {
|
|
3113
3114
|
background: var(--background-color);
|
|
3114
3115
|
width: 100%;
|
|
3115
3116
|
height: 100%;
|