@aivenio/aquarium 1.80.1 → 2.1.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/README.md +10 -2
- package/dist/atoms.cjs +150 -41
- package/dist/atoms.mjs +149 -41
- package/dist/src/atoms/DataList/DataList.d.ts +1 -0
- package/dist/src/atoms/DataList/DataList.js +4 -3
- package/dist/src/atoms/Modal/Modal.d.ts +287 -3
- package/dist/src/atoms/Modal/Modal.js +121 -31
- package/dist/src/atoms/Select/Select.js +3 -2
- package/dist/src/icons/disasterRecovery.d.ts +9 -0
- package/dist/src/icons/disasterRecovery.js +11 -0
- package/dist/src/icons/index.d.ts +1 -0
- package/dist/src/icons/index.js +2 -1
- package/dist/src/molecules/DataList/DataList.d.ts +11 -11
- package/dist/src/molecules/DataList/DataList.js +41 -21
- package/dist/src/molecules/DataList/DataListComponents.d.ts +8 -1
- package/dist/src/molecules/DataList/DataListComponents.js +13 -5
- package/dist/src/molecules/DataList/DataListGroup.d.ts +5 -4
- package/dist/src/molecules/DataList/DataListGroup.js +24 -20
- package/dist/src/molecules/DataList/DataListSkeleton.js +2 -2
- package/dist/src/molecules/Drawer/Drawer.d.ts +1 -1
- package/dist/src/molecules/Drawer/Drawer.js +37 -53
- package/dist/src/molecules/Modal/Modal.d.ts +3 -8
- package/dist/src/molecules/Modal/Modal.js +31 -50
- package/dist/src/molecules/Modal/ModalTitle.d.ts +5 -0
- package/dist/src/molecules/Modal/ModalTitle.js +20 -0
- package/dist/styles.css +25 -4
- package/dist/system.cjs +780 -647
- package/dist/system.mjs +745 -612
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/types/tailwindGenerated.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
@@ -82,7 +82,7 @@ This project requires certain environment variables to be set before commands su
|
|
82
82
|
|
83
83
|
### Developing in the context of your app
|
84
84
|
|
85
|
-
To develop Aquarium components in the context of an application, it is easier to run a locally modified version of Aquarium in your application
|
85
|
+
To develop Aquarium components in the context of an application, it is easier to run a locally modified version of Aquarium in your application.
|
86
86
|
There are two ways to do this: [npm link](https://docs.npmjs.com/cli/v7/commands/npm-link), or copying the module into your app. This allows you to make changes to components and instantly see the change in the context of the app.
|
87
87
|
|
88
88
|
#### `npm link`
|
@@ -113,7 +113,15 @@ cd <path to ds> \
|
|
113
113
|
|
114
114
|
#### `npm pack`
|
115
115
|
|
116
|
-
Copy module is a hack which doesn't work when the dependencies have changed on the DS side since the last install in your app side.
|
116
|
+
Copy module is a hack which doesn't work when the dependencies have changed on the DS side since the last install in your app side.
|
117
|
+
|
118
|
+
You can use `pack-and-install.sh` utility script to create local release package and install it to your local application.
|
119
|
+
|
120
|
+
```sh
|
121
|
+
APP_PATH=<path to your app> ./pack-and-install.sh && <run dev/build command for your app>
|
122
|
+
```
|
123
|
+
|
124
|
+
Or if you want, you can also run `npm pack` command manually and then install that to your app.
|
117
125
|
|
118
126
|
```sh
|
119
127
|
cd <path to ds> \
|
package/dist/atoms.cjs
CHANGED
@@ -1431,6 +1431,22 @@ var require_deliveryLocation = __commonJS({
|
|
1431
1431
|
}
|
1432
1432
|
});
|
1433
1433
|
|
1434
|
+
// src/icons/disasterRecovery.js
|
1435
|
+
var require_disasterRecovery = __commonJS({
|
1436
|
+
"src/icons/disasterRecovery.js"(exports) {
|
1437
|
+
"use strict";
|
1438
|
+
var data = {
|
1439
|
+
"body": '<mask id="svgIDa" fill="#fff"><path d="m13.838 8.734 1.983.731.515-1.396-1.983-.73zm-4.947.96 1.983.73.515-1.396-1.983-.73zM8.077 1.7l-3.73 10.128c.561-.45 1.211-.795 1.963-.814l2.693-7.312 9.639 3.55-1.388 3.773c.533.013 1.04.208 1.458.55l1.934-5.248zm4.88 9.491 1.983.73.515-1.395-1.984-.73zM9.772 7.237l1.984.73.514-1.395-1.983-.73zM2.748 15.91c.725.065 1.48-.262 2.082-.897l.219-.236c.184-.203.572-.627.9-.902.033.572.254 1.073.428 1.336a1.95 1.95 0 001.472.89c.759.067 1.616-.305 2.246-.968l.213-.231c.21-.23.655-.715 1.024-1.02a2.85 2.85 0 00.429 1.326c.346.523.87.837 1.474.89.761.064 1.622-.305 2.251-.968.065-.067.133-.143.205-.22.193-.211.655-.715 1.038-1.027a2.85 2.85 0 00.429 1.325c.369.557.912.892 1.528.944q.09.008.177.008c.665 0 1.346-.32 1.892-.894l-1.13-1.074c-.253.268-.564.426-.804.406-.088-.008-.22-.042-.361-.255-.096-.143-.263-.614-.107-.923l.237-.465-.34-.396a1.38 1.38 0 00-1.048-.499h-.024c-.912 0-1.734.814-2.63 1.797a9 9 0 01-.19.205c-.294.31-.692.504-.983.48-.093-.007-.203-.038-.31-.2-.095-.145-.262-.613-.106-.922l.229-.46-.343-.395a1.38 1.38 0 00-1.048-.5h-.02c-.986 0-1.89.991-2.62 1.79l-.198.212c-.292.31-.692.502-.978.481-.09-.008-.2-.039-.307-.2-.096-.143-.262-.614-.106-.923l.236-.465-.34-.395a1.4 1.4 0 00-1.066-.512h-.02c-.952 0-1.8.928-2.48 1.676-.074.078-.141.154-.201.219-.257.27-.577.434-.811.41-.088-.007-.218-.041-.356-.25l-1.3.864c.367.554.907.886 1.518.938m16.068 2.834c-.088-.008-.22-.042-.361-.255-.096-.143-.263-.613-.107-.923l.237-.465-.34-.395a1.38 1.38 0 00-1.048-.5h-.024c-.912 0-1.734.814-2.633 1.797a9 9 0 01-.19.205c-.294.31-.697.505-.983.481-.093-.008-.202-.039-.309-.2-.096-.145-.262-.613-.107-.923l.237-.465-.343-.395a1.38 1.38 0 00-1.048-.5h-.02c-.91 0-1.727.812-2.62 1.79l-.196.212c-.291.307-.691.505-.977.481-.091-.008-.2-.039-.307-.2-.096-.143-.263-.613-.107-.923l.237-.465-.34-.395a1.4 1.4 0 00-1.066-.512H6.38c-.952 0-1.8.928-2.48 1.676-.073.078-.14.154-.2.219-.258.27-.578.429-.811.41-.091-.007-.221-.041-.36-.25l-1.299.864c.367.554.907.887 1.518.939.72.06 1.48-.263 2.082-.897q.101-.111.219-.237c.184-.203.572-.626.9-.902a2.9 2.9 0 00.428 1.336c.346.523.871.837 1.472.89.756.064 1.616-.305 2.246-.968l.21-.229c.21-.228.655-.715 1.024-1.019a2.85 2.85 0 00.43 1.326c.345.523.87.837 1.473.89.757.064 1.622-.305 2.252-.968l.205-.22c.192-.211.655-.718 1.037-1.03.037.57.255 1.066.429 1.326.37.556.912.891 1.529.943q.091.008.176.008c.666 0 1.347-.32 1.893-.894l-1.134-1.069c-.252.268-.561.424-.803.406"/></mask><path fill="none" stroke="currentColor" stroke-miterlimit="16" stroke-width="1.6" d="m13.838 8.734 1.983.731.515-1.396-1.983-.73zm-4.947.96 1.983.73.515-1.396-1.983-.73zM8.077 1.7l-3.73 10.128c.561-.45 1.211-.795 1.963-.814l2.693-7.312 9.639 3.55-1.388 3.773c.533.013 1.04.208 1.458.55l1.934-5.248zm4.88 9.491 1.983.73.515-1.395-1.984-.73zM9.772 7.237l1.984.73.514-1.395-1.983-.73zM2.748 15.91c.725.065 1.48-.262 2.082-.897l.219-.236c.184-.203.572-.627.9-.902.033.572.254 1.073.428 1.336a1.95 1.95 0 001.472.89c.759.067 1.616-.305 2.246-.968l.213-.231c.21-.23.655-.715 1.024-1.02a2.85 2.85 0 00.429 1.326c.346.523.87.837 1.474.89.761.064 1.622-.305 2.251-.968.065-.067.133-.143.205-.22.193-.211.655-.715 1.038-1.027a2.85 2.85 0 00.429 1.325c.369.557.912.892 1.528.944q.09.008.177.008c.665 0 1.346-.32 1.892-.894l-1.13-1.074c-.253.268-.564.426-.804.406-.088-.008-.22-.042-.361-.255-.096-.143-.263-.614-.107-.923l.237-.465-.34-.396a1.38 1.38 0 00-1.048-.499h-.024c-.912 0-1.734.814-2.63 1.797a9 9 0 01-.19.205c-.294.31-.692.504-.983.48-.093-.007-.203-.038-.31-.2-.095-.145-.262-.613-.106-.922l.229-.46-.343-.395a1.38 1.38 0 00-1.048-.5h-.02c-.986 0-1.89.991-2.62 1.79l-.198.212c-.292.31-.692.502-.978.481-.09-.008-.2-.039-.307-.2-.096-.143-.262-.614-.106-.923l.236-.465-.34-.395a1.4 1.4 0 00-1.066-.512h-.02c-.952 0-1.8.928-2.48 1.676-.074.078-.141.154-.201.219-.257.27-.577.434-.811.41-.088-.007-.218-.041-.356-.25l-1.3.864c.367.554.907.886 1.518.938Zm16.068 2.834c-.088-.008-.22-.042-.361-.255-.096-.143-.263-.613-.107-.923l.237-.465-.34-.395a1.38 1.38 0 00-1.048-.5h-.024c-.912 0-1.734.814-2.633 1.797a9 9 0 01-.19.205c-.294.31-.697.505-.983.481-.093-.008-.202-.039-.309-.2-.096-.145-.262-.613-.107-.923l.237-.465-.343-.395a1.38 1.38 0 00-1.048-.5h-.02c-.91 0-1.727.812-2.62 1.79l-.196.212c-.291.307-.691.505-.977.481-.091-.008-.2-.039-.307-.2-.096-.143-.263-.613-.107-.923l.237-.465-.34-.395a1.4 1.4 0 00-1.066-.512H6.38c-.952 0-1.8.928-2.48 1.676-.073.078-.14.154-.2.219-.258.27-.578.429-.811.41-.091-.007-.221-.041-.36-.25l-1.299.864c.367.554.907.887 1.518.939.72.06 1.48-.263 2.082-.897q.101-.111.219-.237c.184-.203.572-.626.9-.902a2.9 2.9 0 00.428 1.336c.346.523.871.837 1.472.89.756.064 1.616-.305 2.246-.968l.21-.229c.21-.228.655-.715 1.024-1.019a2.85 2.85 0 00.43 1.326c.345.523.87.837 1.473.89.757.064 1.622-.305 2.252-.968l.205-.22c.192-.211.655-.718 1.037-1.03.037.57.255 1.066.429 1.326.37.556.912.891 1.529.943q.091.008.176.008c.666 0 1.347-.32 1.893-.894l-1.134-1.069c-.252.268-.561.424-.803.406Z" mask="url(#svgIDa)"/>',
|
1440
|
+
"left": 0,
|
1441
|
+
"top": 0,
|
1442
|
+
"width": 22,
|
1443
|
+
"height": 22
|
1444
|
+
};
|
1445
|
+
exports.__esModule = true;
|
1446
|
+
exports.default = data;
|
1447
|
+
}
|
1448
|
+
});
|
1449
|
+
|
1434
1450
|
// src/icons/document.js
|
1435
1451
|
var require_document = __commonJS({
|
1436
1452
|
"src/icons/document.js"(exports) {
|
@@ -4207,6 +4223,7 @@ __export(atoms_exports, {
|
|
4207
4223
|
getTitleContent: () => getTitleContent,
|
4208
4224
|
getValues: () => getValues,
|
4209
4225
|
isOptionDisabledBuiltin: () => isOptionDisabledBuiltin,
|
4226
|
+
modalStyles: () => modalStyles,
|
4210
4227
|
rowClassNames: () => rowClassNames
|
4211
4228
|
});
|
4212
4229
|
module.exports = __toCommonJS(atoms_exports);
|
@@ -6239,6 +6256,7 @@ var import_dataflow03 = __toESM(require_dataflow03());
|
|
6239
6256
|
var import_dbBackup = __toESM(require_dbBackup());
|
6240
6257
|
var import_delete = __toESM(require_delete());
|
6241
6258
|
var import_deliveryLocation = __toESM(require_deliveryLocation());
|
6259
|
+
var import_disasterRecovery = __toESM(require_disasterRecovery());
|
6242
6260
|
var import_document = __toESM(require_document());
|
6243
6261
|
var import_dot = __toESM(require_dot());
|
6244
6262
|
var import_doubleCaretHorizontal = __toESM(require_doubleCaretHorizontal());
|
@@ -8066,7 +8084,7 @@ var Cell = (_a) => {
|
|
8066
8084
|
cellClassNames,
|
8067
8085
|
getBodyCellClassNames(false, stickyColumn),
|
8068
8086
|
getAlignClassNames2(align),
|
8069
|
-
tw("border-default
|
8087
|
+
tw("border-default"),
|
8070
8088
|
className
|
8071
8089
|
)
|
8072
8090
|
}));
|
@@ -8077,18 +8095,21 @@ var Row = (_a) => {
|
|
8077
8095
|
disabled,
|
8078
8096
|
header,
|
8079
8097
|
subgroup,
|
8080
|
-
active
|
8098
|
+
active,
|
8099
|
+
isLast
|
8081
8100
|
} = _b, rest = __objRest(_b, [
|
8082
8101
|
"className",
|
8083
8102
|
"disabled",
|
8084
8103
|
"header",
|
8085
8104
|
"subgroup",
|
8086
|
-
"active"
|
8105
|
+
"active",
|
8106
|
+
"isLast"
|
8087
8107
|
]);
|
8088
8108
|
return /* @__PURE__ */ import_react29.default.createElement("div", __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, rest), {
|
8089
8109
|
role: subgroup ? "rowgroup" : "row"
|
8090
8110
|
}), { inert: disabled ? "" : void 0 }), {
|
8091
8111
|
className: classNames(tw("contents"), className, {
|
8112
|
+
"[&>*]:border-b-transparent": isLast,
|
8092
8113
|
"children:opacity-70": disabled,
|
8093
8114
|
"[&>*]:bg-primary-active": active,
|
8094
8115
|
"[&>*]:hover:bg-muted": !disabled && !header
|
@@ -8569,6 +8590,102 @@ var Link = (_a) => {
|
|
8569
8590
|
|
8570
8591
|
// src/atoms/Modal/Modal.tsx
|
8571
8592
|
var import_react36 = __toESM(require("react"));
|
8593
|
+
var import_tailwind_variants = require("tailwind-variants");
|
8594
|
+
var modalStyles = (0, import_tailwind_variants.tv)({
|
8595
|
+
slots: {
|
8596
|
+
overlay: "inset-0 overflow-y-auto z-modal fixed",
|
8597
|
+
backdrop: "-z-10 fixed min-w-full min-h-full bg-body-intense opacity-70",
|
8598
|
+
dialog: "bg-popover-content max-h-full flex flex-col",
|
8599
|
+
header: "pl-7 pr-[64px] py-6 gap-3 flex items-center",
|
8600
|
+
headerImage: "h-[120px] min-h-[120px] w-full",
|
8601
|
+
titleContainer: "flex flex-col grow",
|
8602
|
+
title: "",
|
8603
|
+
closeButtonContainer: "absolute top-[24px] right-[28px]",
|
8604
|
+
body: "px-7 grow overflow-y-auto text-default",
|
8605
|
+
footer: "px-7 py-6",
|
8606
|
+
actions: "flex gap-4 justify-end"
|
8607
|
+
},
|
8608
|
+
variants: {
|
8609
|
+
kind: {
|
8610
|
+
dialog: {
|
8611
|
+
overlay: "py-7 justify-center flex items-center",
|
8612
|
+
dialog: "relative w-full rounded mx-7"
|
8613
|
+
},
|
8614
|
+
drawer: {
|
8615
|
+
overlay: "overflow-x-hidden",
|
8616
|
+
dialog: "absolute h-full",
|
8617
|
+
title: "text-ellipsis overflow-x-hidden whitespace-nowrap"
|
8618
|
+
}
|
8619
|
+
},
|
8620
|
+
size: {
|
8621
|
+
sm: "",
|
8622
|
+
md: "",
|
8623
|
+
full: "",
|
8624
|
+
screen: {
|
8625
|
+
overlay: "py-0",
|
8626
|
+
dialog: "w-dvw h-dvh mx-0 rounded-none",
|
8627
|
+
header: "border-b-1 border-muted mb-6"
|
8628
|
+
}
|
8629
|
+
},
|
8630
|
+
noFooter: {
|
8631
|
+
true: {
|
8632
|
+
body: "pb-6"
|
8633
|
+
}
|
8634
|
+
},
|
8635
|
+
backgroundImage: {
|
8636
|
+
true: {
|
8637
|
+
headerImage: "object-cover"
|
8638
|
+
},
|
8639
|
+
false: {
|
8640
|
+
headerImage: "bg-default"
|
8641
|
+
}
|
8642
|
+
}
|
8643
|
+
},
|
8644
|
+
compoundVariants: [
|
8645
|
+
{
|
8646
|
+
kind: "dialog",
|
8647
|
+
size: "sm",
|
8648
|
+
class: {
|
8649
|
+
dialog: "max-w-[600px]"
|
8650
|
+
}
|
8651
|
+
},
|
8652
|
+
{
|
8653
|
+
kind: "dialog",
|
8654
|
+
size: "md",
|
8655
|
+
class: {
|
8656
|
+
dialog: "max-w-[940px]"
|
8657
|
+
}
|
8658
|
+
},
|
8659
|
+
{
|
8660
|
+
kind: "dialog",
|
8661
|
+
size: "full",
|
8662
|
+
class: {
|
8663
|
+
dialog: "min-h-full"
|
8664
|
+
}
|
8665
|
+
},
|
8666
|
+
{
|
8667
|
+
kind: "drawer",
|
8668
|
+
size: "sm",
|
8669
|
+
class: {
|
8670
|
+
dialog: "w-[360px]"
|
8671
|
+
}
|
8672
|
+
},
|
8673
|
+
{
|
8674
|
+
kind: "drawer",
|
8675
|
+
size: "md",
|
8676
|
+
class: {
|
8677
|
+
dialog: "w-[560px]"
|
8678
|
+
}
|
8679
|
+
},
|
8680
|
+
{
|
8681
|
+
kind: "drawer",
|
8682
|
+
size: "full",
|
8683
|
+
class: {
|
8684
|
+
dialog: "w-[1080px]"
|
8685
|
+
}
|
8686
|
+
}
|
8687
|
+
]
|
8688
|
+
});
|
8572
8689
|
var Modal = (_a) => {
|
8573
8690
|
var _b = _a, {
|
8574
8691
|
children,
|
@@ -8581,80 +8698,64 @@ var Modal = (_a) => {
|
|
8581
8698
|
"className",
|
8582
8699
|
"open"
|
8583
8700
|
]);
|
8701
|
+
const { overlay } = modalStyles({ kind });
|
8584
8702
|
return open ? /* @__PURE__ */ import_react36.default.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8585
|
-
className:
|
8586
|
-
tw("inset-0 overflow-y-auto z-modal fixed"),
|
8587
|
-
{
|
8588
|
-
"py-7 justify-center flex items-center": kind === "dialog"
|
8589
|
-
},
|
8590
|
-
className
|
8591
|
-
)
|
8703
|
+
className: overlay({ className })
|
8592
8704
|
}), children) : null;
|
8593
8705
|
};
|
8594
8706
|
Modal.BackDrop = (_a) => {
|
8595
8707
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
8708
|
+
const { backdrop } = modalStyles();
|
8596
8709
|
return /* @__PURE__ */ import_react36.default.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8597
|
-
className:
|
8710
|
+
className: backdrop({ className })
|
8598
8711
|
}));
|
8599
8712
|
};
|
8600
8713
|
Modal.Dialog = import_react36.default.forwardRef(
|
8601
8714
|
(_a, ref) => {
|
8602
|
-
var _b = _a, { kind = "dialog", children, className, size = "
|
8603
|
-
const
|
8604
|
-
const dialogClasses = classNames("relative w-full rounded mx-7", {
|
8605
|
-
"max-w-[600px]": size === "sm",
|
8606
|
-
"max-w-[940px]": size === "md",
|
8607
|
-
"min-h-full": size === "full"
|
8608
|
-
});
|
8609
|
-
const drawerClasses = classNames("absolute h-full", {
|
8610
|
-
"w-[360px]": size === "sm",
|
8611
|
-
"w-[560px]": size === "md",
|
8612
|
-
"w-[1080px]": size === "full"
|
8613
|
-
});
|
8715
|
+
var _b = _a, { kind = "dialog", children, className, size = "md" } = _b, rest = __objRest(_b, ["kind", "children", "className", "size"]);
|
8716
|
+
const { dialog } = modalStyles({ kind, size });
|
8614
8717
|
return /* @__PURE__ */ import_react36.default.createElement("div", __spreadProps(__spreadValues({
|
8615
8718
|
ref,
|
8616
8719
|
"aria-modal": "true"
|
8617
8720
|
}, rest), {
|
8618
|
-
className:
|
8721
|
+
className: dialog({ className })
|
8619
8722
|
}), children);
|
8620
8723
|
}
|
8621
8724
|
);
|
8622
8725
|
Modal.Header = (_a) => {
|
8623
|
-
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
8726
|
+
var _b = _a, { kind = "dialog", size = "md", children, className } = _b, rest = __objRest(_b, ["kind", "size", "children", "className"]);
|
8727
|
+
const { header } = modalStyles({ kind, size });
|
8624
8728
|
return /* @__PURE__ */ import_react36.default.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8625
|
-
className:
|
8729
|
+
className: header({ className })
|
8626
8730
|
}), children);
|
8627
8731
|
};
|
8628
8732
|
Modal.HeaderImage = (_a) => {
|
8629
8733
|
var _b = _a, { backgroundImage, className } = _b, rest = __objRest(_b, ["backgroundImage", "className"]);
|
8630
|
-
const
|
8734
|
+
const { headerImage } = modalStyles({ backgroundImage: Boolean(backgroundImage) });
|
8631
8735
|
return backgroundImage ? /* @__PURE__ */ import_react36.default.createElement("img", __spreadProps(__spreadValues({
|
8632
8736
|
"aria-hidden": true,
|
8633
8737
|
src: backgroundImage != null ? backgroundImage : void 0
|
8634
8738
|
}, rest), {
|
8635
|
-
className:
|
8739
|
+
className: headerImage({ className })
|
8636
8740
|
})) : /* @__PURE__ */ import_react36.default.createElement("div", {
|
8637
|
-
className:
|
8741
|
+
className: headerImage({ className })
|
8638
8742
|
});
|
8639
8743
|
};
|
8640
8744
|
Modal.CloseButtonContainer = (_a) => {
|
8641
8745
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
8746
|
+
const { closeButtonContainer } = modalStyles();
|
8642
8747
|
return /* @__PURE__ */ import_react36.default.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8643
|
-
className:
|
8748
|
+
className: closeButtonContainer({ className })
|
8644
8749
|
}));
|
8645
8750
|
};
|
8646
8751
|
Modal.Title = (_a) => {
|
8647
8752
|
var _b = _a, { kind = "dialog", children, className } = _b, rest = __objRest(_b, ["kind", "children", "className"]);
|
8753
|
+
const { title } = modalStyles({ kind });
|
8648
8754
|
return /* @__PURE__ */ import_react36.default.createElement(Typography, __spreadValues({
|
8649
8755
|
htmlTag: "h2",
|
8650
8756
|
variant: "subheading",
|
8651
8757
|
color: "intense",
|
8652
|
-
className:
|
8653
|
-
tw({
|
8654
|
-
"text-ellipsis overflow-x-hidden whitespace-nowrap": kind === "drawer"
|
8655
|
-
}),
|
8656
|
-
className
|
8657
|
-
)
|
8758
|
+
className: title({ className })
|
8658
8759
|
}, rest), children);
|
8659
8760
|
};
|
8660
8761
|
Modal.Subtitle = (_a) => {
|
@@ -8666,27 +8767,31 @@ Modal.Subtitle = (_a) => {
|
|
8666
8767
|
};
|
8667
8768
|
Modal.TitleContainer = (_a) => {
|
8668
8769
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
8770
|
+
const { titleContainer } = modalStyles();
|
8669
8771
|
return /* @__PURE__ */ import_react36.default.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8670
|
-
className:
|
8772
|
+
className: titleContainer({ className })
|
8671
8773
|
}), children);
|
8672
8774
|
};
|
8673
8775
|
Modal.Body = (_a) => {
|
8674
8776
|
var _b = _a, { children, className, noFooter = false, maxHeight, style } = _b, rest = __objRest(_b, ["children", "className", "noFooter", "maxHeight", "style"]);
|
8777
|
+
const { body } = modalStyles();
|
8675
8778
|
return /* @__PURE__ */ import_react36.default.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8676
|
-
className:
|
8779
|
+
className: body({ noFooter, className }),
|
8677
8780
|
style: __spreadValues({ maxHeight }, style)
|
8678
8781
|
}), children);
|
8679
8782
|
};
|
8680
8783
|
Modal.Footer = (_a) => {
|
8681
8784
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
8785
|
+
const { footer } = modalStyles();
|
8682
8786
|
return /* @__PURE__ */ import_react36.default.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8683
|
-
className:
|
8787
|
+
className: footer({ className })
|
8684
8788
|
}), children);
|
8685
8789
|
};
|
8686
8790
|
Modal.Actions = (_a) => {
|
8687
8791
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
8792
|
+
const { actions } = modalStyles();
|
8688
8793
|
return /* @__PURE__ */ import_react36.default.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8689
|
-
className:
|
8794
|
+
className: actions({ className })
|
8690
8795
|
}), children);
|
8691
8796
|
};
|
8692
8797
|
|
@@ -9098,6 +9203,7 @@ var Group2 = import_react43.default.forwardRef((_a, ref) => {
|
|
9098
9203
|
)
|
9099
9204
|
}, props), children);
|
9100
9205
|
});
|
9206
|
+
var endAdornmentSize = { width: 14, height: 14 };
|
9101
9207
|
var Item4 = import_react43.default.forwardRef(
|
9102
9208
|
(_a, ref) => {
|
9103
9209
|
var _b = _a, { highlighted, selected, className, children } = _b, props = __objRest(_b, ["highlighted", "selected", "className", "children"]);
|
@@ -9110,8 +9216,10 @@ var Item4 = import_react43.default.forwardRef(
|
|
9110
9216
|
})
|
9111
9217
|
}, props), /* @__PURE__ */ import_react43.default.createElement("span", {
|
9112
9218
|
className: tw("grow flex gap-x-3")
|
9113
|
-
}, children), selected
|
9219
|
+
}, children), selected ? /* @__PURE__ */ import_react43.default.createElement(InlineIcon, __spreadValues({
|
9114
9220
|
icon: import_tick4.default
|
9221
|
+
}, endAdornmentSize)) : /* @__PURE__ */ import_react43.default.createElement("div", {
|
9222
|
+
style: endAdornmentSize
|
9115
9223
|
}));
|
9116
9224
|
}
|
9117
9225
|
);
|
@@ -9323,5 +9431,6 @@ var Switch = import_react45.default.forwardRef(
|
|
9323
9431
|
getTitleContent,
|
9324
9432
|
getValues,
|
9325
9433
|
isOptionDisabledBuiltin,
|
9434
|
+
modalStyles,
|
9326
9435
|
rowClassNames
|
9327
9436
|
});
|