@umami/react-zen 0.36.0 → 0.37.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 +9 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +15 -8
- package/dist/index.mjs +15 -8
- package/package.json +2 -2
- package/styles.css +9 -2
package/dist/index.css
CHANGED
|
@@ -2572,7 +2572,7 @@ body a.Button_button__N2NhN {
|
|
|
2572
2572
|
}
|
|
2573
2573
|
|
|
2574
2574
|
/* virtual-css:css:e93e399a7d084c43e7eb6d4a64b3f486 */
|
|
2575
|
-
.
|
|
2575
|
+
.Dialog_dialog__OTZlZ {
|
|
2576
2576
|
position: relative;
|
|
2577
2577
|
padding: var(--spacing-6);
|
|
2578
2578
|
box-shadow: var(--box-shadow-4);
|
|
@@ -2581,7 +2581,14 @@ body a.Button_button__N2NhN {
|
|
|
2581
2581
|
border-radius: var(--border-radius);
|
|
2582
2582
|
outline: none;
|
|
2583
2583
|
}
|
|
2584
|
-
.
|
|
2584
|
+
.Dialog_dialog__OTZlZ.Dialog_fullscreen__YmVhY {
|
|
2585
|
+
width: 100vw;
|
|
2586
|
+
height: 100vh;
|
|
2587
|
+
border: 0;
|
|
2588
|
+
border-radius: 0;
|
|
2589
|
+
box-shadow: none;
|
|
2590
|
+
}
|
|
2591
|
+
.Dialog_title__Yzc2Y {
|
|
2585
2592
|
font-size: var(--font-size-4);
|
|
2586
2593
|
font-weight: 700;
|
|
2587
2594
|
margin-bottom: var(--spacing-3);
|
package/dist/index.d.ts
CHANGED
|
@@ -411,8 +411,9 @@ declare module '@umami/react-zen/Dialog' {
|
|
|
411
411
|
import { DialogProps as AriaDialogProps } from 'react-aria-components';
|
|
412
412
|
interface DialogProps extends AriaDialogProps {
|
|
413
413
|
title?: ReactNode;
|
|
414
|
+
variant?: 'fullscreen';
|
|
414
415
|
}
|
|
415
|
-
function Dialog({ title, children, className, ...props }: DialogProps): import("react").JSX.Element;
|
|
416
|
+
function Dialog({ title, variant, children, className, ...props }: DialogProps): import("react").JSX.Element;
|
|
416
417
|
export { Dialog };
|
|
417
418
|
export type { DialogProps };
|
|
418
419
|
}
|
package/dist/index.js
CHANGED
|
@@ -30411,17 +30411,24 @@ var import_classnames14 = __toESM(require_classnames());
|
|
|
30411
30411
|
var import_classnames13 = __toESM(require_classnames());
|
|
30412
30412
|
|
|
30413
30413
|
// css-modules:/Users/mikecao/Development/umami-software/react-zen/src/components/Dialog.module.css
|
|
30414
|
-
var Dialog_default = { "dialog": "
|
|
30414
|
+
var Dialog_default = { "dialog": "Dialog_dialog__OTZlZ", "fullscreen": "Dialog_fullscreen__YmVhY", "title": "Dialog_title__Yzc2Y" };
|
|
30415
30415
|
|
|
30416
30416
|
// src/components/Dialog.tsx
|
|
30417
30417
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
30418
|
-
function Dialog({ title, children, className, ...props }) {
|
|
30419
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
30420
|
-
|
|
30421
|
-
|
|
30422
|
-
|
|
30423
|
-
|
|
30424
|
-
|
|
30418
|
+
function Dialog({ title, variant, children, className, ...props }) {
|
|
30419
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
30420
|
+
$de32f1b87079253c$export$3ddf2d174ce01153,
|
|
30421
|
+
{
|
|
30422
|
+
...props,
|
|
30423
|
+
className: (0, import_classnames13.default)(Dialog_default.dialog, variant && Dialog_default[variant], className),
|
|
30424
|
+
children: ({ close }) => {
|
|
30425
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
|
|
30426
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: Dialog_default.title, children: title }),
|
|
30427
|
+
typeof children === "function" ? children({ close }) : children
|
|
30428
|
+
] });
|
|
30429
|
+
}
|
|
30430
|
+
}
|
|
30431
|
+
);
|
|
30425
30432
|
}
|
|
30426
30433
|
|
|
30427
30434
|
// src/components/Row.tsx
|
package/dist/index.mjs
CHANGED
|
@@ -30312,17 +30312,24 @@ var import_classnames14 = __toESM(require_classnames());
|
|
|
30312
30312
|
var import_classnames13 = __toESM(require_classnames());
|
|
30313
30313
|
|
|
30314
30314
|
// css-modules:/Users/mikecao/Development/umami-software/react-zen/src/components/Dialog.module.css
|
|
30315
|
-
var Dialog_default = { "dialog": "
|
|
30315
|
+
var Dialog_default = { "dialog": "Dialog_dialog__OTZlZ", "fullscreen": "Dialog_fullscreen__YmVhY", "title": "Dialog_title__Yzc2Y" };
|
|
30316
30316
|
|
|
30317
30317
|
// src/components/Dialog.tsx
|
|
30318
30318
|
import { Fragment as Fragment2, jsx as jsx20, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
30319
|
-
function Dialog({ title, children, className, ...props }) {
|
|
30320
|
-
return /* @__PURE__ */ jsx20(
|
|
30321
|
-
|
|
30322
|
-
|
|
30323
|
-
|
|
30324
|
-
|
|
30325
|
-
|
|
30319
|
+
function Dialog({ title, variant, children, className, ...props }) {
|
|
30320
|
+
return /* @__PURE__ */ jsx20(
|
|
30321
|
+
$de32f1b87079253c$export$3ddf2d174ce01153,
|
|
30322
|
+
{
|
|
30323
|
+
...props,
|
|
30324
|
+
className: (0, import_classnames13.default)(Dialog_default.dialog, variant && Dialog_default[variant], className),
|
|
30325
|
+
children: ({ close }) => {
|
|
30326
|
+
return /* @__PURE__ */ jsxs10(Fragment2, { children: [
|
|
30327
|
+
title && /* @__PURE__ */ jsx20("div", { className: Dialog_default.title, children: title }),
|
|
30328
|
+
typeof children === "function" ? children({ close }) : children
|
|
30329
|
+
] });
|
|
30330
|
+
}
|
|
30331
|
+
}
|
|
30332
|
+
);
|
|
30326
30333
|
}
|
|
30327
30334
|
|
|
30328
30335
|
// src/components/Row.tsx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umami/react-zen",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.0",
|
|
4
4
|
"description": "React components built by Umami",
|
|
5
5
|
"author": "Umami <hello@umami.is>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@fontsource/jetbrains-mono": "^5.0.18",
|
|
50
50
|
"@react-spring/web": "^9.7.5",
|
|
51
51
|
"@umami/esbuild-plugin-css-modules": "0.2.0",
|
|
52
|
-
"@umami/shiso": "^0.
|
|
52
|
+
"@umami/shiso": "^0.22.0",
|
|
53
53
|
"classnames": "^2.5.1",
|
|
54
54
|
"dts-bundle": "^0.7.3",
|
|
55
55
|
"glob": "^10.3.10",
|
package/styles.css
CHANGED
|
@@ -2840,7 +2840,7 @@ body a.Button_button__N2NhN {
|
|
|
2840
2840
|
}
|
|
2841
2841
|
|
|
2842
2842
|
/* virtual-css:css:e93e399a7d084c43e7eb6d4a64b3f486 */
|
|
2843
|
-
.
|
|
2843
|
+
.Dialog_dialog__OTZlZ {
|
|
2844
2844
|
position: relative;
|
|
2845
2845
|
padding: var(--spacing-6);
|
|
2846
2846
|
box-shadow: var(--box-shadow-4);
|
|
@@ -2849,7 +2849,14 @@ body a.Button_button__N2NhN {
|
|
|
2849
2849
|
border-radius: var(--border-radius);
|
|
2850
2850
|
outline: none;
|
|
2851
2851
|
}
|
|
2852
|
-
.
|
|
2852
|
+
.Dialog_dialog__OTZlZ.Dialog_fullscreen__YmVhY {
|
|
2853
|
+
width: 100vw;
|
|
2854
|
+
height: 100vh;
|
|
2855
|
+
border: 0;
|
|
2856
|
+
border-radius: 0;
|
|
2857
|
+
box-shadow: none;
|
|
2858
|
+
}
|
|
2859
|
+
.Dialog_title__Yzc2Y {
|
|
2853
2860
|
font-size: var(--font-size-4);
|
|
2854
2861
|
font-weight: 700;
|
|
2855
2862
|
margin-bottom: var(--spacing-3);
|