@aivenio/aquarium 2.16.0 → 2.18.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/atoms.cjs +1965 -2435
- package/dist/atoms.mjs +1179 -1649
- package/dist/charts.cjs +266 -400
- package/dist/charts.mjs +238 -379
- package/dist/src/atoms/Skeleton/Skeleton.js +48 -0
- package/dist/src/icons/collapsePanel.d.ts +9 -0
- package/dist/src/icons/collapsePanel.js +11 -0
- package/dist/src/icons/expandPanel.d.ts +9 -0
- package/dist/src/icons/expandPanel.js +11 -0
- package/dist/src/icons/index.d.ts +2 -0
- package/dist/src/icons/index.js +3 -1
- package/dist/src/molecules/Avatar/Avatar.js +2 -2
- package/dist/src/molecules/Badge/Badge.js +2 -2
- package/dist/src/molecules/Banner/Banner.js +2 -2
- package/dist/src/molecules/Card/Card.js +2 -2
- package/dist/src/molecules/Card/Compact.js +2 -2
- package/dist/src/molecules/Checkbox/Checkbox.js +2 -2
- package/dist/src/molecules/Chip/Chip.js +2 -2
- package/dist/src/molecules/Combobox/Combobox.js +2 -2
- package/dist/src/molecules/DataList/DataList.js +3 -2
- package/dist/src/molecules/DataList/DataListComponents.js +3 -2
- package/dist/src/molecules/DataList/DataListGroup.js +7 -4
- package/dist/src/molecules/DataList/DataListSkeleton.js +2 -2
- package/dist/src/molecules/DataTable/DataTable.js +6 -4
- package/dist/src/molecules/DatePicker/Button.d.ts +6 -0
- package/dist/src/molecules/DatePicker/Button.js +44 -1
- package/dist/src/molecules/DatePicker/DatePicker.d.ts +7 -2
- package/dist/src/molecules/DatePicker/DatePicker.js +21 -8
- package/dist/src/molecules/DatePicker/DateRangePicker.d.ts +3 -2
- package/dist/src/molecules/DatePicker/DateRangePicker.js +18 -8
- package/dist/src/molecules/Input/Input.js +2 -2
- package/dist/src/molecules/ItemList/ItemList.js +11 -7
- package/dist/src/molecules/MultiInput/MultiInput.js +2 -2
- package/dist/src/molecules/MultiSelect/MultiSelect.js +2 -2
- package/dist/src/molecules/NativeSelect/NativeSelect.js +2 -2
- package/dist/src/molecules/ProgressBar/ProgressBar.js +2 -2
- package/dist/src/molecules/RadioButton/RadioButton.js +2 -2
- package/dist/src/molecules/Select/Select.js +2 -2
- package/dist/src/molecules/Switch/Switch.js +2 -2
- package/dist/src/molecules/Textarea/Textarea.js +2 -2
- package/dist/src/molecules/Timeline/Timeline.js +2 -2
- package/dist/src/molecules/index.d.ts +1 -1
- package/dist/src/molecules/index.js +2 -2
- package/dist/src/utils/createComponent.d.ts +3 -1
- package/dist/src/utils/form/Label/Label.js +2 -2
- package/dist/src/utils/table/types.d.ts +0 -1
- package/dist/src/utils/table/types.js +1 -3
- package/dist/styles.css +6 -0
- package/dist/system.cjs +3412 -4195
- package/dist/system.mjs +2629 -3412
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/types/tailwindGenerated.d.ts +1 -1
- package/package.json +48 -45
- package/dist/src/molecules/Skeleton/Skeleton.js +0 -29
- /package/dist/src/{molecules → atoms}/Skeleton/Skeleton.d.ts +0 -0
package/dist/atoms.mjs
CHANGED
@@ -1,38 +1,9 @@
|
|
1
1
|
var __create = Object.create;
|
2
2
|
var __defProp = Object.defineProperty;
|
3
|
-
var __defProps = Object.defineProperties;
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
6
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
7
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
8
5
|
var __getProtoOf = Object.getPrototypeOf;
|
9
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
10
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
11
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
12
|
-
var __spreadValues = (a, b) => {
|
13
|
-
for (var prop in b ||= {})
|
14
|
-
if (__hasOwnProp.call(b, prop))
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
16
|
-
if (__getOwnPropSymbols)
|
17
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
18
|
-
if (__propIsEnum.call(b, prop))
|
19
|
-
__defNormalProp(a, prop, b[prop]);
|
20
|
-
}
|
21
|
-
return a;
|
22
|
-
};
|
23
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
24
|
-
var __objRest = (source, exclude) => {
|
25
|
-
var target = {};
|
26
|
-
for (var prop in source)
|
27
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
28
|
-
target[prop] = source[prop];
|
29
|
-
if (source != null && __getOwnPropSymbols)
|
30
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
31
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
32
|
-
target[prop] = source[prop];
|
33
|
-
}
|
34
|
-
return target;
|
35
|
-
};
|
36
7
|
var __commonJS = (cb, mod) => function __require() {
|
37
8
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
38
9
|
};
|
@@ -45,6 +16,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
45
16
|
return to;
|
46
17
|
};
|
47
18
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
20
|
+
// file that has been converted to a CommonJS file using a Babel-
|
21
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
22
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
48
23
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
49
24
|
mod
|
50
25
|
));
|
@@ -1169,6 +1144,22 @@ var require_coinsHand = __commonJS({
|
|
1169
1144
|
}
|
1170
1145
|
});
|
1171
1146
|
|
1147
|
+
// src/icons/collapsePanel.js
|
1148
|
+
var require_collapsePanel = __commonJS({
|
1149
|
+
"src/icons/collapsePanel.js"(exports) {
|
1150
|
+
"use strict";
|
1151
|
+
var data = {
|
1152
|
+
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M8.182 10h9.09m-9.09 0 3.636 3.636M8.182 10l3.636-3.636M2.727 2.727v14.546"/>',
|
1153
|
+
"left": 0,
|
1154
|
+
"top": 0,
|
1155
|
+
"width": 20,
|
1156
|
+
"height": 20
|
1157
|
+
};
|
1158
|
+
exports.__esModule = true;
|
1159
|
+
exports.default = data;
|
1160
|
+
}
|
1161
|
+
});
|
1162
|
+
|
1172
1163
|
// src/icons/comment.js
|
1173
1164
|
var require_comment = __commonJS({
|
1174
1165
|
"src/icons/comment.js"(exports) {
|
@@ -1761,6 +1752,22 @@ var require_expandAll = __commonJS({
|
|
1761
1752
|
}
|
1762
1753
|
});
|
1763
1754
|
|
1755
|
+
// src/icons/expandPanel.js
|
1756
|
+
var require_expandPanel = __commonJS({
|
1757
|
+
"src/icons/expandPanel.js"(exports) {
|
1758
|
+
"use strict";
|
1759
|
+
var data = {
|
1760
|
+
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11.818 10h-9.09m9.09 0-3.636 3.636M11.818 10 8.182 6.364m9.091-3.637v14.546"/>',
|
1761
|
+
"left": 0,
|
1762
|
+
"top": 0,
|
1763
|
+
"width": 20,
|
1764
|
+
"height": 20
|
1765
|
+
};
|
1766
|
+
exports.__esModule = true;
|
1767
|
+
exports.default = data;
|
1768
|
+
}
|
1769
|
+
});
|
1770
|
+
|
1764
1771
|
// src/icons/export.js
|
1765
1772
|
var require_export = __commonJS({
|
1766
1773
|
"src/icons/export.js"(exports) {
|
@@ -5948,18 +5955,20 @@ function getPxMapping(breakpoints2) {
|
|
5948
5955
|
if (!minWidthInPx.endsWith("px")) {
|
5949
5956
|
throw new Error(`Unexpected breakpoint value found: '${minWidthInPx}'. Expecting it to be in px unit.`);
|
5950
5957
|
}
|
5951
|
-
return
|
5958
|
+
return {
|
5959
|
+
...acc,
|
5952
5960
|
[key]: parseInt(minWidthInPx, 10)
|
5953
|
-
}
|
5961
|
+
};
|
5954
5962
|
}, {});
|
5955
5963
|
}
|
5956
5964
|
function getMatches(windowSize) {
|
5957
5965
|
const mapping = getPxMapping(allBreakpoints);
|
5958
5966
|
return Object.keys(allBreakpoints).reduce((acc, key) => {
|
5959
5967
|
const isMatch = !isUndefined(windowSize) && windowSize.width > 0 ? windowSize.width > mapping[key] : key === "default" ? true : false;
|
5960
|
-
return
|
5968
|
+
return {
|
5969
|
+
...acc,
|
5961
5970
|
[key]: isMatch
|
5962
|
-
}
|
5971
|
+
};
|
5963
5972
|
}, {});
|
5964
5973
|
}
|
5965
5974
|
function selectBreakpointValue(value, matches) {
|
@@ -5992,9 +6001,8 @@ import { isUndefined as isUndefined3 } from "lodash-es";
|
|
5992
6001
|
|
5993
6002
|
// src/molecules/Element/Element.tsx
|
5994
6003
|
import React from "react";
|
5995
|
-
var Element = (
|
5996
|
-
|
5997
|
-
const Component = component != null ? component : "div";
|
6004
|
+
var Element = ({ component, ...rest }) => {
|
6005
|
+
const Component = component ?? "div";
|
5998
6006
|
return React.createElement(Component, rest);
|
5999
6007
|
};
|
6000
6008
|
|
@@ -6036,99 +6044,57 @@ var createSimpleComponent = (Component, defaultProps, displayName) => {
|
|
6036
6044
|
const Curried = (props) => {
|
6037
6045
|
const propsClassName = hasClassName(props) ? props.className : "";
|
6038
6046
|
const className = defaultClassName || propsClassName ? classNames(defaultClassName, propsClassName) : void 0;
|
6039
|
-
return /* @__PURE__ */ React2.createElement(Component,
|
6047
|
+
return /* @__PURE__ */ React2.createElement(Component, { ...defaultProps, ...props, className });
|
6040
6048
|
};
|
6041
6049
|
Curried.displayName = displayName;
|
6042
6050
|
return Curried;
|
6043
6051
|
};
|
6044
6052
|
|
6045
6053
|
// src/molecules/Box/Box.tsx
|
6046
|
-
var Box = (
|
6047
|
-
|
6048
|
-
|
6049
|
-
|
6050
|
-
|
6051
|
-
|
6052
|
-
|
6053
|
-
|
6054
|
-
|
6055
|
-
|
6056
|
-
|
6057
|
-
|
6058
|
-
|
6059
|
-
|
6060
|
-
|
6061
|
-
|
6062
|
-
|
6063
|
-
|
6064
|
-
|
6065
|
-
|
6066
|
-
|
6067
|
-
|
6068
|
-
|
6069
|
-
|
6070
|
-
|
6071
|
-
|
6072
|
-
|
6073
|
-
|
6074
|
-
|
6075
|
-
|
6076
|
-
|
6077
|
-
|
6078
|
-
|
6079
|
-
|
6080
|
-
|
6081
|
-
|
6082
|
-
|
6083
|
-
|
6084
|
-
|
6085
|
-
|
6086
|
-
|
6087
|
-
|
6088
|
-
|
6089
|
-
|
6090
|
-
"style",
|
6091
|
-
"color",
|
6092
|
-
"borderColor",
|
6093
|
-
"borderRadius",
|
6094
|
-
"borderWidth",
|
6095
|
-
"justifyContent",
|
6096
|
-
"justifySelf",
|
6097
|
-
"alignContent",
|
6098
|
-
"alignItems",
|
6099
|
-
"alignSelf",
|
6100
|
-
"flexDirection",
|
6101
|
-
"flexWrap",
|
6102
|
-
"flex",
|
6103
|
-
"grow",
|
6104
|
-
"shrink",
|
6105
|
-
"display",
|
6106
|
-
"padding",
|
6107
|
-
"paddingX",
|
6108
|
-
"paddingY",
|
6109
|
-
"paddingTop",
|
6110
|
-
"paddingRight",
|
6111
|
-
"paddingBottom",
|
6112
|
-
"paddingLeft",
|
6113
|
-
"margin",
|
6114
|
-
"marginX",
|
6115
|
-
"marginY",
|
6116
|
-
"marginTop",
|
6117
|
-
"marginRight",
|
6118
|
-
"marginBottom",
|
6119
|
-
"marginLeft",
|
6120
|
-
"backgroundColor",
|
6121
|
-
"width",
|
6122
|
-
"height",
|
6123
|
-
"maxWidth",
|
6124
|
-
"maxHeight",
|
6125
|
-
"minWidth",
|
6126
|
-
"minHeight",
|
6127
|
-
"gap",
|
6128
|
-
"colGap",
|
6129
|
-
"rowGap",
|
6130
|
-
"className"
|
6131
|
-
]);
|
6054
|
+
var Box = ({
|
6055
|
+
style,
|
6056
|
+
color,
|
6057
|
+
borderColor,
|
6058
|
+
borderRadius,
|
6059
|
+
borderWidth,
|
6060
|
+
justifyContent,
|
6061
|
+
justifySelf,
|
6062
|
+
alignContent,
|
6063
|
+
alignItems,
|
6064
|
+
alignSelf,
|
6065
|
+
flexDirection,
|
6066
|
+
flexWrap,
|
6067
|
+
flex,
|
6068
|
+
grow,
|
6069
|
+
shrink,
|
6070
|
+
display,
|
6071
|
+
padding,
|
6072
|
+
paddingX,
|
6073
|
+
paddingY,
|
6074
|
+
paddingTop,
|
6075
|
+
paddingRight,
|
6076
|
+
paddingBottom,
|
6077
|
+
paddingLeft,
|
6078
|
+
margin,
|
6079
|
+
marginX,
|
6080
|
+
marginY,
|
6081
|
+
marginTop,
|
6082
|
+
marginRight,
|
6083
|
+
marginBottom,
|
6084
|
+
marginLeft,
|
6085
|
+
backgroundColor,
|
6086
|
+
width,
|
6087
|
+
height,
|
6088
|
+
maxWidth,
|
6089
|
+
maxHeight,
|
6090
|
+
minWidth,
|
6091
|
+
minHeight,
|
6092
|
+
gap,
|
6093
|
+
colGap,
|
6094
|
+
rowGap,
|
6095
|
+
className,
|
6096
|
+
...rest
|
6097
|
+
}) => {
|
6132
6098
|
const styles = useStyle({
|
6133
6099
|
padding,
|
6134
6100
|
display,
|
@@ -6164,19 +6130,20 @@ var Box = (_a) => {
|
|
6164
6130
|
rowGap
|
6165
6131
|
});
|
6166
6132
|
const finalClassname = classNames2(className, {
|
6167
|
-
[`border-${borderColor
|
6168
|
-
[`text-${color
|
6169
|
-
[`bg-${backgroundColor
|
6133
|
+
[`border-${borderColor ?? ""}`]: Boolean(borderColor),
|
6134
|
+
[`text-${color ?? ""}`]: Boolean(color),
|
6135
|
+
[`bg-${backgroundColor ?? ""}`]: Boolean(backgroundColor)
|
6170
6136
|
});
|
6171
6137
|
return /* @__PURE__ */ React3.createElement(
|
6172
6138
|
Element,
|
6173
|
-
|
6174
|
-
style:
|
6175
|
-
className: finalClassname !== "" ? finalClassname : void 0
|
6176
|
-
|
6139
|
+
{
|
6140
|
+
style: { ...styles, ...style },
|
6141
|
+
className: finalClassname !== "" ? finalClassname : void 0,
|
6142
|
+
...rest
|
6143
|
+
}
|
6177
6144
|
);
|
6178
6145
|
};
|
6179
|
-
var FlexBox = (props) => /* @__PURE__ */ React3.createElement(Box,
|
6146
|
+
var FlexBox = (props) => /* @__PURE__ */ React3.createElement(Box, { display: "flex", ...props });
|
6180
6147
|
FlexBox.displayName = "Box.Flex";
|
6181
6148
|
Box.Flex = FlexBox;
|
6182
6149
|
var BorderBox = createSimpleComponent(Box, { className: "rounded border", borderColor: "muted" }, "BorderBox");
|
@@ -6188,47 +6155,40 @@ import { animated, useTransition } from "@react-spring/web";
|
|
6188
6155
|
// src/atoms/Toast/Toast.tsx
|
6189
6156
|
import React6 from "react";
|
6190
6157
|
import classNames3 from "classnames";
|
6191
|
-
var Toast = (
|
6192
|
-
|
6193
|
-
|
6194
|
-
|
6195
|
-
|
6196
|
-
|
6197
|
-
|
6198
|
-
|
6199
|
-
|
6200
|
-
|
6201
|
-
|
6202
|
-
|
6203
|
-
|
6204
|
-
|
6205
|
-
|
6206
|
-
|
6207
|
-
|
6208
|
-
|
6209
|
-
|
6210
|
-
|
6211
|
-
|
6212
|
-
|
6213
|
-
|
6214
|
-
|
6215
|
-
|
6216
|
-
|
6217
|
-
|
6218
|
-
|
6219
|
-
|
6220
|
-
|
6221
|
-
|
6222
|
-
|
6223
|
-
|
6224
|
-
|
6225
|
-
}),
|
6226
|
-
className
|
6227
|
-
)
|
6228
|
-
}),
|
6229
|
-
children
|
6230
|
-
);
|
6231
|
-
};
|
6158
|
+
var Toast = ({
|
6159
|
+
children,
|
6160
|
+
className,
|
6161
|
+
variant,
|
6162
|
+
...rest
|
6163
|
+
}) => /* @__PURE__ */ React6.createElement(
|
6164
|
+
"div",
|
6165
|
+
{
|
6166
|
+
...rest,
|
6167
|
+
className: classNames3(
|
6168
|
+
"Aquarium-Toast",
|
6169
|
+
tw("typography-small rounded grid grid-cols-[1fr_auto] items-center gap-x-6 gap-y-2 p-4", {
|
6170
|
+
"bg-body-intense text-opposite-default": variant === "default",
|
6171
|
+
"bg-danger-intense text-white": variant === "danger"
|
6172
|
+
}),
|
6173
|
+
className
|
6174
|
+
)
|
6175
|
+
},
|
6176
|
+
children
|
6177
|
+
);
|
6178
|
+
var Dismiss = ({ children, className, variant, ...rest }) => /* @__PURE__ */ React6.createElement(
|
6179
|
+
"div",
|
6180
|
+
{
|
6181
|
+
...rest,
|
6182
|
+
className: classNames3(
|
6183
|
+
tw("self-start [&>button]:p-0 flex", {
|
6184
|
+
"[&>button]:text-muted": variant === "default",
|
6185
|
+
"[&>button]:text-danger-muted": variant === "danger"
|
6186
|
+
}),
|
6187
|
+
className
|
6188
|
+
)
|
6189
|
+
},
|
6190
|
+
children
|
6191
|
+
);
|
6232
6192
|
Toast.Dismiss = Dismiss;
|
6233
6193
|
|
6234
6194
|
// src/icons/index.js
|
@@ -6302,6 +6262,7 @@ var import_codeFile = __toESM(require_codeFile());
|
|
6302
6262
|
var import_code = __toESM(require_code());
|
6303
6263
|
var import_cog = __toESM(require_cog());
|
6304
6264
|
var import_coinsHand = __toESM(require_coinsHand());
|
6265
|
+
var import_collapsePanel = __toESM(require_collapsePanel());
|
6305
6266
|
var import_comment = __toESM(require_comment());
|
6306
6267
|
var import_confirm = __toESM(require_confirm());
|
6307
6268
|
var import_console = __toESM(require_console());
|
@@ -6339,6 +6300,7 @@ var import_endorsed = __toESM(require_endorsed());
|
|
6339
6300
|
var import_envelope = __toESM(require_envelope());
|
6340
6301
|
var import_error = __toESM(require_error());
|
6341
6302
|
var import_expandAll = __toESM(require_expandAll());
|
6303
|
+
var import_expandPanel = __toESM(require_expandPanel());
|
6342
6304
|
var import_export = __toESM(require_export());
|
6343
6305
|
var import_eyeOff = __toESM(require_eyeOff());
|
6344
6306
|
var import_eyeOpen = __toESM(require_eyeOpen());
|
@@ -6521,9 +6483,8 @@ var THEME_MAPPING = {
|
|
6521
6483
|
columnGap: "gap"
|
6522
6484
|
};
|
6523
6485
|
function resolveTailwindThemeValue(key, val) {
|
6524
|
-
var _a;
|
6525
6486
|
const resolvedKey = key in THEME_MAPPING ? THEME_MAPPING[key] : key;
|
6526
|
-
const found =
|
6487
|
+
const found = get(tailwind_theme_default, [resolvedKey, val], void 0) ?? get(tailwind_theme_default, [resolvedKey, ...(val ?? "").toString().split("-")], void 0);
|
6527
6488
|
if (!isUndefined4(found)) {
|
6528
6489
|
return found;
|
6529
6490
|
}
|
@@ -6536,77 +6497,54 @@ function useStyle(styles) {
|
|
6536
6497
|
const isStylesObject = isPlainObject2(property) && "value" in property;
|
6537
6498
|
const value = isStylesObject ? property.value : property;
|
6538
6499
|
const resolvedValue = selectBreakpointValue(value, context2.breakpointMatches);
|
6539
|
-
const transformer = isUndefined4(property
|
6500
|
+
const transformer = isUndefined4(property?.transformer) ? (val) => resolveTailwindThemeValue(key, val) : (
|
6501
|
+
// Even if transformer is set, we pass it through the default transformer
|
6502
|
+
// which will resolve possible tailwind theme mapping values
|
6503
|
+
(val) => resolveTailwindThemeValue(key, property.transformer(val))
|
6504
|
+
);
|
6540
6505
|
const cssPropertyValue = transformer(resolvedValue);
|
6541
6506
|
if (isUndefined4(cssPropertyValue)) {
|
6542
6507
|
return acc;
|
6543
6508
|
}
|
6544
|
-
return
|
6509
|
+
return {
|
6510
|
+
...acc,
|
6545
6511
|
[key]: cssPropertyValue
|
6546
|
-
}
|
6512
|
+
};
|
6547
6513
|
}, {});
|
6548
6514
|
}
|
6549
6515
|
|
6550
6516
|
// src/molecules/Tailwindify/Tailwindify.tsx
|
6551
6517
|
function Tailwindify(Component) {
|
6552
|
-
return (
|
6553
|
-
|
6554
|
-
|
6555
|
-
|
6556
|
-
|
6557
|
-
|
6558
|
-
|
6559
|
-
|
6560
|
-
|
6561
|
-
|
6562
|
-
|
6563
|
-
|
6564
|
-
|
6565
|
-
|
6566
|
-
|
6567
|
-
|
6568
|
-
|
6569
|
-
|
6570
|
-
|
6571
|
-
|
6572
|
-
|
6573
|
-
|
6574
|
-
|
6575
|
-
|
6576
|
-
|
6577
|
-
|
6578
|
-
|
6579
|
-
|
6580
|
-
|
6581
|
-
|
6582
|
-
"className",
|
6583
|
-
"style",
|
6584
|
-
"children",
|
6585
|
-
"padding",
|
6586
|
-
"paddingX",
|
6587
|
-
"paddingY",
|
6588
|
-
"paddingTop",
|
6589
|
-
"paddingRight",
|
6590
|
-
"paddingBottom",
|
6591
|
-
"paddingLeft",
|
6592
|
-
"margin",
|
6593
|
-
"marginX",
|
6594
|
-
"marginY",
|
6595
|
-
"marginTop",
|
6596
|
-
"marginRight",
|
6597
|
-
"marginBottom",
|
6598
|
-
"marginLeft",
|
6599
|
-
"space",
|
6600
|
-
"spaceX",
|
6601
|
-
"spaceY",
|
6602
|
-
"backgroundColor",
|
6603
|
-
"width",
|
6604
|
-
"height",
|
6605
|
-
"maxWidth",
|
6606
|
-
"maxHeight",
|
6607
|
-
"minWidth",
|
6608
|
-
"minHeight"
|
6609
|
-
]);
|
6518
|
+
return ({
|
6519
|
+
className,
|
6520
|
+
style,
|
6521
|
+
children,
|
6522
|
+
padding,
|
6523
|
+
paddingX,
|
6524
|
+
paddingY,
|
6525
|
+
paddingTop,
|
6526
|
+
paddingRight,
|
6527
|
+
paddingBottom,
|
6528
|
+
paddingLeft,
|
6529
|
+
margin,
|
6530
|
+
marginX,
|
6531
|
+
marginY,
|
6532
|
+
marginTop,
|
6533
|
+
marginRight,
|
6534
|
+
marginBottom,
|
6535
|
+
marginLeft,
|
6536
|
+
space,
|
6537
|
+
spaceX,
|
6538
|
+
spaceY,
|
6539
|
+
backgroundColor,
|
6540
|
+
width,
|
6541
|
+
height,
|
6542
|
+
maxWidth,
|
6543
|
+
maxHeight,
|
6544
|
+
minWidth,
|
6545
|
+
minHeight,
|
6546
|
+
...otherProps
|
6547
|
+
}) => {
|
6610
6548
|
const tailwindifyStyle = useStyle({
|
6611
6549
|
padding,
|
6612
6550
|
paddingTop: isUndefined5(paddingY) ? paddingTop : paddingY,
|
@@ -6626,10 +6564,15 @@ function Tailwindify(Component) {
|
|
6626
6564
|
minWidth,
|
6627
6565
|
minHeight
|
6628
6566
|
});
|
6629
|
-
const finalStyle =
|
6630
|
-
|
6567
|
+
const finalStyle = {
|
6568
|
+
...tailwindifyStyle,
|
6569
|
+
...style
|
6570
|
+
};
|
6571
|
+
const componentProps = {
|
6572
|
+
// Casting to skip TS error https://github.com/microsoft/TypeScript/issues/35858
|
6573
|
+
...otherProps,
|
6631
6574
|
style: finalStyle
|
6632
|
-
}
|
6575
|
+
};
|
6633
6576
|
const childrenWithProps = React10.Children.map(children, (child, index) => {
|
6634
6577
|
if (!React10.isValidElement(child)) {
|
6635
6578
|
return child;
|
@@ -6651,10 +6594,10 @@ function Tailwindify(Component) {
|
|
6651
6594
|
return child;
|
6652
6595
|
}
|
6653
6596
|
const childStyle = get2(child, ["props", "style"], {});
|
6654
|
-
const newProps =
|
6597
|
+
const newProps = { ...childProps, style: { ...childStyle, ...additionalStyle } };
|
6655
6598
|
return React10.cloneElement(child, newProps);
|
6656
6599
|
});
|
6657
|
-
return /* @__PURE__ */ React10.createElement(Component,
|
6600
|
+
return /* @__PURE__ */ React10.createElement(Component, { className, ...componentProps }, childrenWithProps);
|
6658
6601
|
};
|
6659
6602
|
}
|
6660
6603
|
|
@@ -6687,7 +6630,7 @@ var Flexbox = Tailwindify(
|
|
6687
6630
|
rowGap
|
6688
6631
|
});
|
6689
6632
|
const HtmlElement = htmlTag;
|
6690
|
-
return /* @__PURE__ */ React11.createElement(HtmlElement, { style:
|
6633
|
+
return /* @__PURE__ */ React11.createElement(HtmlElement, { style: { ...hookStyle, ...style }, className }, children);
|
6691
6634
|
}
|
6692
6635
|
);
|
6693
6636
|
|
@@ -6697,15 +6640,13 @@ import {
|
|
6697
6640
|
Icon as IconifyIconComponent,
|
6698
6641
|
InlineIcon as IconifyInlineIconComponent
|
6699
6642
|
} from "@iconify/react";
|
6700
|
-
var Icon = React12.forwardRef((
|
6701
|
-
var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
|
6643
|
+
var Icon = React12.forwardRef(({ color, className, ...rest }, ref) => {
|
6702
6644
|
const classes2 = classNames("Aquarium-Icon", className, color && `text-${String(color)}`);
|
6703
|
-
return /* @__PURE__ */ React12.createElement(IconifyIconComponent,
|
6645
|
+
return /* @__PURE__ */ React12.createElement(IconifyIconComponent, { ref: ref ?? void 0, className: classes2 !== "" ? classes2 : void 0, ...rest });
|
6704
6646
|
});
|
6705
|
-
var InlineIcon = React12.forwardRef((
|
6706
|
-
var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
|
6647
|
+
var InlineIcon = React12.forwardRef(({ color, className, ...rest }, ref) => {
|
6707
6648
|
const classes2 = classNames("Aquarium-InlineIcon", color && `text-${String(color)}`);
|
6708
|
-
return /* @__PURE__ */ React12.createElement("span", { className: classNames(tw("children:inline-block inline-flex justify-center items-center"), className) }, /* @__PURE__ */ React12.createElement(IconifyInlineIconComponent,
|
6649
|
+
return /* @__PURE__ */ React12.createElement("span", { className: classNames(tw("children:inline-block inline-flex justify-center items-center"), className) }, /* @__PURE__ */ React12.createElement(IconifyInlineIconComponent, { ref: ref ?? void 0, className: classes2 !== "" ? classes2 : void 0, ...rest }));
|
6709
6650
|
});
|
6710
6651
|
|
6711
6652
|
// src/molecules/Tooltip/Tooltip.tsx
|
@@ -6834,14 +6775,12 @@ function useTooltipTriggerState(props = {}) {
|
|
6834
6775
|
}
|
6835
6776
|
|
6836
6777
|
// src/molecules/Tooltip/Tooltip.tsx
|
6837
|
-
var Tooltip = (
|
6838
|
-
var _b = _a, { inline = true, delay = 200 } = _b, props = __objRest(_b, ["inline", "delay"]);
|
6839
|
-
var _a2;
|
6778
|
+
var Tooltip = ({ inline = true, delay = 200, ...props }) => {
|
6840
6779
|
const { placement: _placement = "top", content, disabled: isDisabled, shouldFlip = true } = props;
|
6841
|
-
const display =
|
6780
|
+
const display = props.display ?? (inline ? "inline-block" : "block");
|
6842
6781
|
const triggerRef = React13.useRef(null);
|
6843
6782
|
const overlayRef = React13.useRef(null);
|
6844
|
-
const state = useTooltipTriggerState(
|
6783
|
+
const state = useTooltipTriggerState({ isDisabled, delay, ...props });
|
6845
6784
|
const { triggerProps, tooltipProps } = useTooltipTrigger(props, state, triggerRef);
|
6846
6785
|
const { overlayProps, arrowProps, placement } = useOverlayPosition({
|
6847
6786
|
placement: _placement.replace("-", " "),
|
@@ -6855,44 +6794,37 @@ var Tooltip = (_a) => {
|
|
6855
6794
|
onFocusWithinChange: (isFocusWithin) => isFocusWithin ? state.open() : state.close()
|
6856
6795
|
});
|
6857
6796
|
const handleClick = (e) => {
|
6858
|
-
|
6859
|
-
|
6860
|
-
(_b2 = triggerProps.onClick) == null ? void 0 : _b2.call(triggerProps, e);
|
6797
|
+
props.onClick?.(e);
|
6798
|
+
triggerProps.onClick?.(e);
|
6861
6799
|
};
|
6862
6800
|
const handleMouseDown = (e) => {
|
6863
|
-
|
6864
|
-
|
6865
|
-
(_b2 = triggerProps.onMouseDown) == null ? void 0 : _b2.call(triggerProps, e);
|
6801
|
+
props.onMouseDown?.(e);
|
6802
|
+
triggerProps.onMouseDown?.(e);
|
6866
6803
|
};
|
6867
6804
|
const handleMouseUp = (e) => {
|
6868
|
-
|
6869
|
-
|
6870
|
-
(_b2 = triggerProps.onMouseUp) == null ? void 0 : _b2.call(triggerProps, e);
|
6805
|
+
props.onMouseUp?.(e);
|
6806
|
+
triggerProps.onMouseUp?.(e);
|
6871
6807
|
};
|
6872
6808
|
const handlePointerDown = (e) => {
|
6873
|
-
|
6874
|
-
|
6875
|
-
(_b2 = triggerProps.onPointerDown) == null ? void 0 : _b2.call(triggerProps, e);
|
6809
|
+
props.onPointerDown?.(e);
|
6810
|
+
triggerProps.onPointerDown?.(e);
|
6876
6811
|
};
|
6877
6812
|
const handlePointerUp = (e) => {
|
6878
|
-
|
6879
|
-
|
6880
|
-
(_b2 = triggerProps.onPointerUp) == null ? void 0 : _b2.call(triggerProps, e);
|
6813
|
+
props.onPointerUp?.(e);
|
6814
|
+
triggerProps.onPointerUp?.(e);
|
6881
6815
|
};
|
6882
6816
|
return /* @__PURE__ */ React13.createElement(
|
6883
6817
|
"div",
|
6884
|
-
|
6885
|
-
className: display
|
6886
|
-
|
6818
|
+
{
|
6819
|
+
className: display,
|
6820
|
+
...triggerProps,
|
6887
6821
|
onFocus: (e) => {
|
6888
|
-
|
6889
|
-
|
6890
|
-
(_b2 = focusWithinProps.onFocus) == null ? void 0 : _b2.call(focusWithinProps, e);
|
6822
|
+
triggerProps.onFocus?.(e);
|
6823
|
+
focusWithinProps.onFocus?.(e);
|
6891
6824
|
},
|
6892
6825
|
onBlur: (e) => {
|
6893
|
-
|
6894
|
-
|
6895
|
-
(_b2 = focusWithinProps.onBlur) == null ? void 0 : _b2.call(focusWithinProps, e);
|
6826
|
+
triggerProps.onBlur?.(e);
|
6827
|
+
focusWithinProps.onBlur?.(e);
|
6896
6828
|
},
|
6897
6829
|
onClick: handleClick,
|
6898
6830
|
onMouseDown: handleMouseDown,
|
@@ -6900,39 +6832,39 @@ var Tooltip = (_a) => {
|
|
6900
6832
|
onPointerDown: handlePointerDown,
|
6901
6833
|
onPointerUp: handlePointerUp,
|
6902
6834
|
ref: triggerRef
|
6903
|
-
}
|
6835
|
+
},
|
6904
6836
|
props.children,
|
6905
6837
|
state.isOpen && /* @__PURE__ */ React13.createElement(
|
6906
6838
|
TooltipWrapper,
|
6907
|
-
|
6839
|
+
{
|
6908
6840
|
ref: overlayRef,
|
6909
6841
|
state,
|
6910
6842
|
placement,
|
6911
|
-
arrowProps
|
6912
|
-
|
6843
|
+
arrowProps,
|
6844
|
+
...mergeProps(tooltipProps, overlayProps)
|
6845
|
+
},
|
6913
6846
|
content
|
6914
6847
|
)
|
6915
6848
|
);
|
6916
6849
|
};
|
6917
6850
|
var TooltipWrapper = React13.forwardRef(
|
6918
|
-
(
|
6919
|
-
var _b = _a, { state, placement, arrowProps } = _b, props = __objRest(_b, ["state", "placement", "arrowProps"]);
|
6920
|
-
var _a2;
|
6851
|
+
({ state, placement, arrowProps, ...props }, forwardedRef) => {
|
6921
6852
|
const ref = React13.useRef(null);
|
6922
6853
|
React13.useImperativeHandle(forwardedRef, () => ref.current);
|
6923
6854
|
const { tooltipProps } = useTooltip(props, state);
|
6924
|
-
const arrowStyle = getArrowStyle(ref.current, placement,
|
6855
|
+
const arrowStyle = getArrowStyle(ref.current, placement, arrowProps.style ?? {});
|
6925
6856
|
return /* @__PURE__ */ React13.createElement(OverlayContainer, null, /* @__PURE__ */ React13.createElement(
|
6926
6857
|
"div",
|
6927
|
-
|
6858
|
+
{
|
6928
6859
|
ref,
|
6929
6860
|
className: classNames(
|
6930
6861
|
"Aquarium-Tooltip",
|
6931
6862
|
tw("p-3 rounded-sm typography-caption max-w-[320px] bg-body-intense text-opposite-default")
|
6932
|
-
)
|
6933
|
-
|
6863
|
+
),
|
6864
|
+
...mergeProps(props, tooltipProps)
|
6865
|
+
},
|
6934
6866
|
props.children,
|
6935
|
-
/* @__PURE__ */ React13.createElement(Arrow,
|
6867
|
+
/* @__PURE__ */ React13.createElement(Arrow, { ...arrowProps, style: arrowStyle })
|
6936
6868
|
));
|
6937
6869
|
}
|
6938
6870
|
);
|
@@ -6953,22 +6885,22 @@ var getArrowStyle = (element, position, { left, top }) => {
|
|
6953
6885
|
};
|
6954
6886
|
switch (position) {
|
6955
6887
|
case "top": {
|
6956
|
-
return { left: Math.min(limits.right, Math.max((left
|
6888
|
+
return { left: Math.min(limits.right, Math.max((left ?? 0) - ARROW_SIZE, limits.left)), bottom: -ARROW_SIZE };
|
6957
6889
|
}
|
6958
6890
|
case "bottom": {
|
6959
|
-
return { left: Math.min(limits.right, Math.max((left
|
6891
|
+
return { left: Math.min(limits.right, Math.max((left ?? 0) - ARROW_SIZE, limits.left)), top: -ARROW_SIZE };
|
6960
6892
|
}
|
6961
6893
|
case "left": {
|
6962
|
-
return { right: -ARROW_SIZE, top: Math.min(limits.bottom, Math.max((top
|
6894
|
+
return { right: -ARROW_SIZE, top: Math.min(limits.bottom, Math.max((top ?? 0) - ARROW_SIZE, limits.top)) };
|
6963
6895
|
}
|
6964
6896
|
case "right": {
|
6965
|
-
return { left: -ARROW_SIZE, top: Math.min(limits.bottom, Math.max((top
|
6897
|
+
return { left: -ARROW_SIZE, top: Math.min(limits.bottom, Math.max((top ?? 0) - ARROW_SIZE, limits.top)) };
|
6966
6898
|
}
|
6967
6899
|
}
|
6968
6900
|
return { left, top };
|
6969
6901
|
};
|
6970
6902
|
var Arrow = (props) => {
|
6971
|
-
return /* @__PURE__ */ React13.createElement("div",
|
6903
|
+
return /* @__PURE__ */ React13.createElement("div", { className: tw("absolute w-3 h-3 bg-body-intense rotate-45"), ...props });
|
6972
6904
|
};
|
6973
6905
|
|
6974
6906
|
// src/utils/constants.ts
|
@@ -7008,34 +6940,21 @@ var LoadingSpinner = ({ size = "20px" }) => {
|
|
7008
6940
|
};
|
7009
6941
|
var asButton = (Component, isDropdownButton) => {
|
7010
6942
|
return React14.forwardRef(
|
7011
|
-
(
|
7012
|
-
|
7013
|
-
|
7014
|
-
|
7015
|
-
|
7016
|
-
|
7017
|
-
|
7018
|
-
|
7019
|
-
|
7020
|
-
|
7021
|
-
|
7022
|
-
|
7023
|
-
|
7024
|
-
|
7025
|
-
|
7026
|
-
"kind",
|
7027
|
-
"icon",
|
7028
|
-
"iconPlacement",
|
7029
|
-
"tooltip",
|
7030
|
-
"tooltipPlacement",
|
7031
|
-
"disabled",
|
7032
|
-
"loading",
|
7033
|
-
"fullWidth",
|
7034
|
-
"dense",
|
7035
|
-
"UNSAFE_className",
|
7036
|
-
"aria-label",
|
7037
|
-
"children"
|
7038
|
-
]);
|
6943
|
+
({
|
6944
|
+
kind = "primary",
|
6945
|
+
icon,
|
6946
|
+
iconPlacement = "left",
|
6947
|
+
tooltip,
|
6948
|
+
tooltipPlacement,
|
6949
|
+
disabled,
|
6950
|
+
loading: loading2 = false,
|
6951
|
+
fullWidth = false,
|
6952
|
+
dense = false,
|
6953
|
+
UNSAFE_className,
|
6954
|
+
"aria-label": ariaLabel,
|
6955
|
+
children,
|
6956
|
+
...props
|
6957
|
+
}, ref) => {
|
7039
6958
|
const hasChildren = React14.Children.count(children) > 0;
|
7040
6959
|
const isIconOnlyButton = !hasChildren && !!icon;
|
7041
6960
|
const isGhost = !isIconOnlyButton && (kind === "ghost" || kind === "secondary-ghost");
|
@@ -7076,9 +6995,9 @@ var asButton = (Component, isDropdownButton) => {
|
|
7076
6995
|
};
|
7077
6996
|
const buttonComponent = /* @__PURE__ */ React14.createElement(
|
7078
6997
|
Component,
|
7079
|
-
|
7080
|
-
ref
|
7081
|
-
|
6998
|
+
{
|
6999
|
+
ref,
|
7000
|
+
...props,
|
7082
7001
|
className: classNames(
|
7083
7002
|
"Aquarium-Button",
|
7084
7003
|
{
|
@@ -7089,6 +7008,7 @@ var asButton = (Component, isDropdownButton) => {
|
|
7089
7008
|
},
|
7090
7009
|
UNSAFE_className,
|
7091
7010
|
!isIconOnlyButton && COLOR_CLASSNAMES[kind],
|
7011
|
+
// adding inline-block here for the case of using it with anchor tag
|
7092
7012
|
tw(
|
7093
7013
|
"inline-block border-0 rounded-sm transition whitespace-nowrap focus:outline-none relative text-center",
|
7094
7014
|
{
|
@@ -7102,12 +7022,13 @@ var asButton = (Component, isDropdownButton) => {
|
|
7102
7022
|
"block w-full": fullWidth && !isIconOnlyButton,
|
7103
7023
|
"cursor-not-allowed": !!disabled || !!loading2,
|
7104
7024
|
"icon-stroke-2": !isIconOnlyButton
|
7025
|
+
// the main reason we changed icon stroke-width to 2px on buttons which have both text + icon together inside because the font sizes we use currently are big and bold (for both default and dense sizes), so the discrepancy was too big. And that's why we use default stroke-width for icon only button.
|
7105
7026
|
}
|
7106
7027
|
)
|
7107
7028
|
),
|
7108
|
-
"aria-label": isIconOnlyButton ? ariaLabel
|
7029
|
+
"aria-label": isIconOnlyButton ? ariaLabel ?? tooltip : ariaLabel,
|
7109
7030
|
disabled: disabled || loading2
|
7110
|
-
}
|
7031
|
+
},
|
7111
7032
|
loading2 && !isGhost ? /* @__PURE__ */ React14.createElement(React14.Fragment, null, /* @__PURE__ */ React14.createElement("div", { className: tw("absolute left-1/2 top-0 bottom-0 flex"), style: { transform: "translate(-50%)" } }, /* @__PURE__ */ React14.createElement(LoadingSpinner, { size: iconSize })), /* @__PURE__ */ React14.createElement("div", { className: tw({ invisible: loading2 }) }, buttonContent())) : buttonContent()
|
7112
7033
|
);
|
7113
7034
|
return tooltip ? /* @__PURE__ */ React14.createElement(Tooltip, { content: tooltip, placement: tooltipPlacement }, buttonComponent) : buttonComponent;
|
@@ -7116,40 +7037,40 @@ var asButton = (Component, isDropdownButton) => {
|
|
7116
7037
|
};
|
7117
7038
|
var Button = asButton("button");
|
7118
7039
|
Button.displayName = "Button";
|
7119
|
-
var PrimaryButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button,
|
7040
|
+
var PrimaryButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button, { ref, ...props, kind: "primary" }));
|
7120
7041
|
PrimaryButton.displayName = "Button.Primary";
|
7121
7042
|
Button.Primary = PrimaryButton;
|
7122
|
-
var SecondaryButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button,
|
7043
|
+
var SecondaryButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button, { ref, ...props, kind: "secondary" }));
|
7123
7044
|
SecondaryButton.displayName = "Button.Secondary";
|
7124
7045
|
Button.Secondary = SecondaryButton;
|
7125
|
-
var GhostButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button,
|
7046
|
+
var GhostButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button, { ref, ...props, kind: "ghost" }));
|
7126
7047
|
GhostButton.displayName = "Button.Ghost";
|
7127
7048
|
Button.Ghost = GhostButton;
|
7128
|
-
var SecondaryGhostButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button,
|
7049
|
+
var SecondaryGhostButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button, { ref, ...props, kind: "secondary-ghost" }));
|
7129
7050
|
SecondaryGhostButton.displayName = "Button.SecondaryGhost";
|
7130
7051
|
Button.SecondaryGhost = SecondaryGhostButton;
|
7131
|
-
var TextButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button,
|
7052
|
+
var TextButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button, { ref, ...props, kind: "text" }));
|
7132
7053
|
TextButton.displayName = "Button.Text";
|
7133
7054
|
Button.Text = TextButton;
|
7134
|
-
var IconButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button,
|
7055
|
+
var IconButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button, { ref, ...props, kind: "ghost", loading: false, fullWidth: false }));
|
7135
7056
|
IconButton.displayName = "Button.Icon";
|
7136
7057
|
Button.Icon = IconButton;
|
7137
7058
|
var ExternalLinkButton = asButton("a");
|
7138
7059
|
ExternalLinkButton.displayName = "Button.ExternalLink";
|
7139
7060
|
Button.ExternalLink = ExternalLinkButton;
|
7140
|
-
var IconExternalLinkButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(ExternalLinkButton,
|
7061
|
+
var IconExternalLinkButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(ExternalLinkButton, { ref, ...props, kind: "ghost", loading: false, fullWidth: false }));
|
7141
7062
|
IconExternalLinkButton.displayName = "Button.IconExternalLink";
|
7142
7063
|
Button.IconExternalLink = IconExternalLinkButton;
|
7143
7064
|
var DropdownButton = asButton("button", true);
|
7144
7065
|
DropdownButton.displayName = "Button.Dropdown";
|
7145
7066
|
Button.Dropdown = DropdownButton;
|
7146
|
-
var PrimaryDropdownButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(DropdownButton,
|
7067
|
+
var PrimaryDropdownButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(DropdownButton, { ref, ...props, kind: "primary" }));
|
7147
7068
|
PrimaryDropdownButton.displayName = "Button.PrimaryDropdown";
|
7148
7069
|
Button.PrimaryDropdown = PrimaryDropdownButton;
|
7149
|
-
var SecondaryDropdownButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(DropdownButton,
|
7070
|
+
var SecondaryDropdownButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(DropdownButton, { ref, ...props, kind: "secondary" }));
|
7150
7071
|
SecondaryDropdownButton.displayName = "Button.SecondaryDropdown";
|
7151
7072
|
Button.SecondaryDropdown = SecondaryDropdownButton;
|
7152
|
-
var GhostDropdownButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(DropdownButton,
|
7073
|
+
var GhostDropdownButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(DropdownButton, { ref, ...props, kind: "ghost" }));
|
7153
7074
|
GhostDropdownButton.displayName = "Button.GhostDropdownButton";
|
7154
7075
|
Button.GhostDropdown = GhostDropdownButton;
|
7155
7076
|
|
@@ -7157,31 +7078,25 @@ Button.GhostDropdown = GhostDropdownButton;
|
|
7157
7078
|
import React15 from "react";
|
7158
7079
|
import { isUndefined as isUndefined6 } from "lodash-es";
|
7159
7080
|
var typographies = Object.fromEntries(Object.keys(tokens_default.typography).map((key) => [key, `typography-${key}`]));
|
7160
|
-
var Typography = (
|
7161
|
-
|
7162
|
-
|
7163
|
-
|
7164
|
-
|
7165
|
-
|
7166
|
-
|
7167
|
-
|
7168
|
-
|
7169
|
-
"children",
|
7170
|
-
"variant",
|
7171
|
-
"color",
|
7172
|
-
"htmlTag",
|
7173
|
-
"className",
|
7174
|
-
"fontWeight"
|
7175
|
-
]);
|
7081
|
+
var Typography = ({
|
7082
|
+
children,
|
7083
|
+
variant = "default",
|
7084
|
+
color,
|
7085
|
+
htmlTag = "div",
|
7086
|
+
className,
|
7087
|
+
fontWeight,
|
7088
|
+
...rest
|
7089
|
+
}) => {
|
7176
7090
|
const HtmlElement = htmlTag;
|
7177
7091
|
const resolvedColorName = isUndefined6(color) || color === "current" ? "default" : color;
|
7178
7092
|
const style = useStyle({ fontWeight });
|
7179
7093
|
return /* @__PURE__ */ React15.createElement(
|
7180
7094
|
HtmlElement,
|
7181
|
-
|
7095
|
+
{
|
7182
7096
|
className: classNames(typographies[variant], `text-${resolvedColorName.toString()}`, className),
|
7183
|
-
style
|
7184
|
-
|
7097
|
+
style,
|
7098
|
+
...rest
|
7099
|
+
},
|
7185
7100
|
children
|
7186
7101
|
);
|
7187
7102
|
};
|
@@ -7215,104 +7130,73 @@ var alertTypes = {
|
|
7215
7130
|
color: "success-default"
|
7216
7131
|
}
|
7217
7132
|
};
|
7218
|
-
var Alert = (
|
7219
|
-
|
7220
|
-
|
7221
|
-
|
7222
|
-
|
7223
|
-
|
7224
|
-
|
7225
|
-
|
7226
|
-
|
7227
|
-
|
7228
|
-
"
|
7229
|
-
|
7230
|
-
|
7231
|
-
|
7232
|
-
|
7233
|
-
|
7234
|
-
|
7235
|
-
|
7236
|
-
|
7237
|
-
|
7238
|
-
|
7239
|
-
|
7240
|
-
|
7241
|
-
|
7242
|
-
|
7243
|
-
|
7244
|
-
|
7245
|
-
|
7246
|
-
|
7247
|
-
|
7248
|
-
|
7249
|
-
|
7250
|
-
|
7251
|
-
|
7252
|
-
|
7253
|
-
|
7254
|
-
|
7255
|
-
|
7256
|
-
|
7257
|
-
|
7258
|
-
|
7259
|
-
|
7260
|
-
|
7261
|
-
|
7262
|
-
|
7263
|
-
|
7264
|
-
|
7265
|
-
}
|
7266
|
-
|
7267
|
-
|
7268
|
-
|
7269
|
-
|
7270
|
-
|
7271
|
-
var _b = _a, {
|
7272
|
-
children,
|
7273
|
-
className,
|
7274
|
-
type
|
7275
|
-
} = _b, rest = __objRest(_b, [
|
7276
|
-
"children",
|
7277
|
-
"className",
|
7278
|
-
"type"
|
7279
|
-
]);
|
7280
|
-
return /* @__PURE__ */ React16.createElement(
|
7281
|
-
"div",
|
7282
|
-
__spreadProps(__spreadValues({}, rest), {
|
7283
|
-
role: type === "error" || type === "warning" ? "alert" : "status",
|
7284
|
-
className: classNames(
|
7285
|
-
tw("relative flex px-[60px] justify-center", {
|
7286
|
-
"bg-status-danger": type === "error",
|
7287
|
-
"bg-status-announcement": type === "information",
|
7288
|
-
"bg-status-success": type === "success",
|
7289
|
-
"bg-status-warning": type === "warning"
|
7290
|
-
}),
|
7291
|
-
className
|
7292
|
-
)
|
7293
|
-
}),
|
7294
|
-
children
|
7295
|
-
);
|
7296
|
-
};
|
7133
|
+
var Alert = ({
|
7134
|
+
children,
|
7135
|
+
className,
|
7136
|
+
type,
|
7137
|
+
dense,
|
7138
|
+
...rest
|
7139
|
+
}) => /* @__PURE__ */ React16.createElement(
|
7140
|
+
"div",
|
7141
|
+
{
|
7142
|
+
...rest,
|
7143
|
+
role: type === "error" || type === "warning" ? "alert" : "status",
|
7144
|
+
className: classNames(
|
7145
|
+
tw("rounded grid grid-cols-[auto_1fr_auto] items-center gap-x-3 gap-y-2", {
|
7146
|
+
"bg-status-danger": type === "error",
|
7147
|
+
"bg-status-info": type === "information",
|
7148
|
+
"bg-status-success": type === "success",
|
7149
|
+
"bg-status-warning": type === "warning",
|
7150
|
+
"bg-status-announcement": type === "announcement",
|
7151
|
+
"p-4": Boolean(dense),
|
7152
|
+
"p-5": !dense
|
7153
|
+
}),
|
7154
|
+
className
|
7155
|
+
)
|
7156
|
+
},
|
7157
|
+
children
|
7158
|
+
);
|
7159
|
+
Alert.Title = ({ children, className, ...rest }) => /* @__PURE__ */ React16.createElement(Typography, { ...rest, variant: "default-strong", color: "intense", className: classNames(tw("col-start-2"), className) }, children);
|
7160
|
+
Alert.Description = ({ children, className, ...rest }) => /* @__PURE__ */ React16.createElement(Typography, { ...rest, variant: "small", color: "default", className: classNames(tw("col-start-2"), className) }, children);
|
7161
|
+
Alert.Actions = ({ children, className, ...rest }) => /* @__PURE__ */ React16.createElement("div", { ...rest, className: classNames(tw("flex gap-4 col-start-2"), className) }, children);
|
7162
|
+
Alert.Icon = ({ type, dense, ...rest }) => /* @__PURE__ */ React16.createElement("div", { className: tw("h-[20px] col-start-1 row-start-1", { "self-start": !dense }) }, /* @__PURE__ */ React16.createElement(Icon, { ...rest, icon: alertTypes[type].icon, color: alertTypes[type].color, fontSize: 20 }));
|
7163
|
+
Alert.Dismiss = ({ type, ...rest }) => /* @__PURE__ */ React16.createElement("div", { className: tw("h-[20px] col-start-3 row-start-1") }, /* @__PURE__ */ React16.createElement(Button.Icon, { ...rest, UNSAFE_className: tw("-m-2"), tooltip: "Dismiss", icon: import_cross2.default }));
|
7164
|
+
var Banner = ({
|
7165
|
+
children,
|
7166
|
+
className,
|
7167
|
+
type,
|
7168
|
+
...rest
|
7169
|
+
}) => /* @__PURE__ */ React16.createElement(
|
7170
|
+
"div",
|
7171
|
+
{
|
7172
|
+
...rest,
|
7173
|
+
role: type === "error" || type === "warning" ? "alert" : "status",
|
7174
|
+
className: classNames(
|
7175
|
+
tw("relative flex px-[60px] justify-center", {
|
7176
|
+
"bg-status-danger": type === "error",
|
7177
|
+
"bg-status-announcement": type === "information",
|
7178
|
+
"bg-status-success": type === "success",
|
7179
|
+
"bg-status-warning": type === "warning"
|
7180
|
+
}),
|
7181
|
+
className
|
7182
|
+
)
|
7183
|
+
},
|
7184
|
+
children
|
7185
|
+
);
|
7297
7186
|
Alert.Banner = Banner;
|
7298
7187
|
Alert.Banner.displayName = "Alert.Banner";
|
7299
|
-
Banner.Content = (
|
7300
|
-
|
7301
|
-
|
7302
|
-
|
7303
|
-
|
7304
|
-
className
|
7305
|
-
|
7306
|
-
|
7307
|
-
|
7308
|
-
|
7309
|
-
);
|
7310
|
-
};
|
7188
|
+
Banner.Content = ({ className, ...props }) => /* @__PURE__ */ React16.createElement(
|
7189
|
+
"div",
|
7190
|
+
{
|
7191
|
+
className: classNames(
|
7192
|
+
tw("flex flex-row flex-wrap gap-x-3 items-center justify-center py-4 text-center z-10"),
|
7193
|
+
className
|
7194
|
+
),
|
7195
|
+
...props
|
7196
|
+
}
|
7197
|
+
);
|
7311
7198
|
Banner.Content.displayName = "Alert.Banner.Content";
|
7312
|
-
Banner.Dismiss = (
|
7313
|
-
var _b = _a, { type } = _b, rest = __objRest(_b, ["type"]);
|
7314
|
-
return /* @__PURE__ */ React16.createElement("div", { className: tw("h-[20px] absolute right-4 top-[18px]") }, /* @__PURE__ */ React16.createElement(Button.Icon, __spreadProps(__spreadValues({}, rest), { UNSAFE_className: tw("-m-2"), tooltip: "Dismiss", icon: import_cross2.default })));
|
7315
|
-
};
|
7199
|
+
Banner.Dismiss = ({ type, ...rest }) => /* @__PURE__ */ React16.createElement("div", { className: tw("h-[20px] absolute right-4 top-[18px]") }, /* @__PURE__ */ React16.createElement(Button.Icon, { ...rest, UNSAFE_className: tw("-m-2"), tooltip: "Dismiss", icon: import_cross2.default }));
|
7316
7200
|
Banner.Dismiss.displayName = "Alert.Banner.Dismiss";
|
7317
7201
|
var ILLUSTRATION_COLORS = {
|
7318
7202
|
information: { stroke: tw("stroke-primary-muted"), fill: tw("fill-primary-10") },
|
@@ -7320,10 +7204,9 @@ var ILLUSTRATION_COLORS = {
|
|
7320
7204
|
warning: { stroke: tw("stroke-warning-100"), fill: tw("fill-warning-20") },
|
7321
7205
|
error: { stroke: tw("stroke-error-100"), fill: tw("fill-error-10") }
|
7322
7206
|
};
|
7323
|
-
var IllustrationLeft = (
|
7324
|
-
var _b = _a, { type } = _b, props = __objRest(_b, ["type"]);
|
7207
|
+
var IllustrationLeft = ({ type, ...props }) => {
|
7325
7208
|
const clipPathId = useId();
|
7326
|
-
return /* @__PURE__ */ React16.createElement("svg",
|
7209
|
+
return /* @__PURE__ */ React16.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 120, height: 48, fill: "none", ...props }, /* @__PURE__ */ React16.createElement("g", { clipPath: `url(#${clipPathId})` }, /* @__PURE__ */ React16.createElement(
|
7327
7210
|
"path",
|
7328
7211
|
{
|
7329
7212
|
className: ILLUSTRATION_COLORS[type].fill,
|
@@ -7340,10 +7223,9 @@ var IllustrationLeft = (_a) => {
|
|
7340
7223
|
};
|
7341
7224
|
Banner.IllustrationLeft = IllustrationLeft;
|
7342
7225
|
Banner.IllustrationLeft.displayName = "Alert.Banner.IllustrationLeft";
|
7343
|
-
var IllustrationRight = (
|
7344
|
-
var _b = _a, { type } = _b, props = __objRest(_b, ["type"]);
|
7226
|
+
var IllustrationRight = ({ type, ...props }) => {
|
7345
7227
|
const clipPathId = useId();
|
7346
|
-
return /* @__PURE__ */ React16.createElement("svg",
|
7228
|
+
return /* @__PURE__ */ React16.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 120, height: 48, fill: "none", ...props }, /* @__PURE__ */ React16.createElement("g", { clipPath: `url(#${clipPathId})` }, /* @__PURE__ */ React16.createElement(
|
7347
7229
|
"path",
|
7348
7230
|
{
|
7349
7231
|
className: ILLUSTRATION_COLORS[type].fill,
|
@@ -7363,221 +7245,137 @@ Banner.IllustrationRight.displayName = "Alert.Banner.IllustrationRight";
|
|
7363
7245
|
|
7364
7246
|
// src/atoms/Banner/Banner.tsx
|
7365
7247
|
import React17 from "react";
|
7366
|
-
var Banner2 = (
|
7367
|
-
|
7368
|
-
|
7369
|
-
|
7370
|
-
|
7371
|
-
|
7372
|
-
|
7373
|
-
|
7374
|
-
|
7375
|
-
|
7376
|
-
|
7377
|
-
|
7378
|
-
|
7379
|
-
|
7380
|
-
|
7381
|
-
|
7382
|
-
|
7383
|
-
|
7384
|
-
|
7385
|
-
|
7386
|
-
|
7387
|
-
|
7388
|
-
|
7389
|
-
|
7390
|
-
|
7391
|
-
|
7392
|
-
|
7393
|
-
|
7394
|
-
|
7395
|
-
|
7396
|
-
|
7397
|
-
|
7398
|
-
|
7399
|
-
|
7400
|
-
|
7401
|
-
|
7402
|
-
|
7403
|
-
|
7404
|
-
|
7405
|
-
|
7406
|
-
|
7407
|
-
|
7408
|
-
|
7409
|
-
|
7410
|
-
|
7411
|
-
|
7412
|
-
|
7413
|
-
|
7414
|
-
|
7415
|
-
|
7416
|
-
|
7417
|
-
|
7418
|
-
|
7419
|
-
|
7420
|
-
|
7421
|
-
|
7422
|
-
|
7423
|
-
|
7424
|
-
|
7425
|
-
)
|
7426
|
-
|
7427
|
-
|
7428
|
-
|
7429
|
-
|
7430
|
-
|
7431
|
-
|
7432
|
-
|
7433
|
-
};
|
7434
|
-
|
7435
|
-
|
7436
|
-
|
7437
|
-
};
|
7438
|
-
Banner2.DismissContainer = (_a) => {
|
7439
|
-
var _b = _a, { layout, children, className } = _b, rest = __objRest(_b, ["layout", "children", "className"]);
|
7440
|
-
return /* @__PURE__ */ React17.createElement(
|
7441
|
-
"div",
|
7442
|
-
__spreadProps(__spreadValues({}, rest), {
|
7443
|
-
className: classNames(
|
7444
|
-
className,
|
7445
|
-
tw({ "self-start": layout === "vertical", "self-center": layout === "horizontal" })
|
7446
|
-
)
|
7447
|
-
}),
|
7448
|
-
children
|
7449
|
-
);
|
7450
|
-
};
|
7451
|
-
|
7452
|
-
// src/atoms/Card/Card.tsx
|
7453
|
-
import React20 from "react";
|
7454
|
-
import { isNumber } from "lodash-es";
|
7455
|
-
|
7456
|
-
// src/molecules/Typography/Typography.tsx
|
7457
|
-
import React18 from "react";
|
7248
|
+
var Banner2 = ({
|
7249
|
+
children,
|
7250
|
+
className,
|
7251
|
+
layout,
|
7252
|
+
variant,
|
7253
|
+
...rest
|
7254
|
+
}) => /* @__PURE__ */ React17.createElement(
|
7255
|
+
"div",
|
7256
|
+
{
|
7257
|
+
...rest,
|
7258
|
+
className: classNames(
|
7259
|
+
className,
|
7260
|
+
tw(`rounded flex justify-between gap-7 flex-nowrap p-6`, {
|
7261
|
+
"items-center": layout === "horizontal",
|
7262
|
+
"bg-muted": variant === "default",
|
7263
|
+
"bg-body border border-muted": variant === "outlined"
|
7264
|
+
})
|
7265
|
+
)
|
7266
|
+
},
|
7267
|
+
children
|
7268
|
+
);
|
7269
|
+
Banner2.Title = ({ children, className, layout, ...rest }) => /* @__PURE__ */ React17.createElement(
|
7270
|
+
Typography,
|
7271
|
+
{
|
7272
|
+
...rest,
|
7273
|
+
variant: "subheading",
|
7274
|
+
color: "intense",
|
7275
|
+
className: classNames(
|
7276
|
+
className,
|
7277
|
+
tw({
|
7278
|
+
"mb-3": layout === "vertical"
|
7279
|
+
})
|
7280
|
+
)
|
7281
|
+
},
|
7282
|
+
children
|
7283
|
+
);
|
7284
|
+
Banner2.Description = ({ flexGrow, children, className, ...rest }) => /* @__PURE__ */ React17.createElement(Typography, { ...rest, variant: "default", className: classNames(className, tw({ "flex-grow": flexGrow })) }, children);
|
7285
|
+
Banner2.ContentContainer = ({ layout, children, className, ...rest }) => /* @__PURE__ */ React17.createElement(
|
7286
|
+
"div",
|
7287
|
+
{
|
7288
|
+
...rest,
|
7289
|
+
className: classNames(
|
7290
|
+
className,
|
7291
|
+
tw("flex w-full", {
|
7292
|
+
"flex-col": layout === "vertical",
|
7293
|
+
"flex-row flex-nowrap gap-7 items-center": layout === "horizontal"
|
7294
|
+
})
|
7295
|
+
)
|
7296
|
+
},
|
7297
|
+
children
|
7298
|
+
);
|
7299
|
+
Banner2.ImageContainer = ({ children, ...rest }) => /* @__PURE__ */ React17.createElement(Box, { ...rest, display: "inline-flex", alignItems: "center", margin: "-6", marginLeft: "0" }, children);
|
7300
|
+
Banner2.Actions = ({ children, className, layout, ...rest }) => /* @__PURE__ */ React17.createElement("div", { ...rest, className: classNames(className, tw("flex gap-4", { "mt-5": layout === "vertical" })) }, children);
|
7301
|
+
Banner2.DismissContainer = ({ layout, children, className, ...rest }) => /* @__PURE__ */ React17.createElement(
|
7302
|
+
"div",
|
7303
|
+
{
|
7304
|
+
...rest,
|
7305
|
+
className: classNames(
|
7306
|
+
className,
|
7307
|
+
tw({ "self-start": layout === "vertical", "self-center": layout === "horizontal" })
|
7308
|
+
)
|
7309
|
+
},
|
7310
|
+
children
|
7311
|
+
);
|
7312
|
+
|
7313
|
+
// src/atoms/Card/Card.tsx
|
7314
|
+
import React20 from "react";
|
7315
|
+
import { isNumber } from "lodash-es";
|
7316
|
+
|
7317
|
+
// src/molecules/Typography/Typography.tsx
|
7318
|
+
import React18 from "react";
|
7458
7319
|
import classNames4 from "classnames";
|
7459
|
-
var Typography2 = (props) => /* @__PURE__ */ React18.createElement(Typography,
|
7320
|
+
var Typography2 = (props) => /* @__PURE__ */ React18.createElement(Typography, { ...props });
|
7460
7321
|
Typography2.displayName = "Typography";
|
7461
|
-
Typography2.LargeHeading = (
|
7462
|
-
var _b = _a, { htmlTag = "h1" } = _b, props = __objRest(_b, ["htmlTag"]);
|
7463
|
-
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "large-heading" }));
|
7464
|
-
};
|
7322
|
+
Typography2.LargeHeading = ({ htmlTag = "h1", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "large-heading" });
|
7465
7323
|
Typography2.LargeHeading.displayName = "Typography.LargeHeading";
|
7466
|
-
Typography2.Heading = (
|
7467
|
-
var _b = _a, { htmlTag = "h1", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
|
7468
|
-
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "heading" }));
|
7469
|
-
};
|
7324
|
+
Typography2.Heading = ({ htmlTag = "h1", fontWeight, ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "heading" });
|
7470
7325
|
Typography2.Heading.displayName = "Typography.Heading";
|
7471
|
-
Typography2.Subheading = (
|
7472
|
-
var _b = _a, { htmlTag = "h2", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
|
7473
|
-
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "subheading" }));
|
7474
|
-
};
|
7326
|
+
Typography2.Subheading = ({ htmlTag = "h2", fontWeight, ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "subheading" });
|
7475
7327
|
Typography2.Subheading.displayName = "Typography.Subheading";
|
7476
|
-
Typography2.LargeStrong = (
|
7477
|
-
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
7478
|
-
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "large-strong" }));
|
7479
|
-
};
|
7328
|
+
Typography2.LargeStrong = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "large-strong" });
|
7480
7329
|
Typography2.LargeStrong.displayName = "Typography.LargeStrong";
|
7481
|
-
Typography2.Large = (
|
7482
|
-
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
7483
|
-
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "large" }));
|
7484
|
-
};
|
7330
|
+
Typography2.Large = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "large" });
|
7485
7331
|
Typography2.Large.displayName = "Typography.Large";
|
7486
|
-
Typography2.DefaultStrong = (
|
7487
|
-
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
7488
|
-
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "default-strong" }));
|
7489
|
-
};
|
7332
|
+
Typography2.DefaultStrong = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "default-strong" });
|
7490
7333
|
Typography2.DefaultStrong.displayName = "Typography.DefaultStrong";
|
7491
|
-
Typography2.Default = (
|
7492
|
-
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
7493
|
-
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "default" }));
|
7494
|
-
};
|
7334
|
+
Typography2.Default = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "default" });
|
7495
7335
|
Typography2.Default.displayName = "Typography.Default";
|
7496
|
-
Typography2.Paragraph = (
|
7497
|
-
var _b = _a, { htmlTag = "p", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
|
7498
|
-
return /* @__PURE__ */ React18.createElement(Typography2.Default, __spreadProps(__spreadValues({}, props), { htmlTag }));
|
7499
|
-
};
|
7336
|
+
Typography2.Paragraph = ({ htmlTag = "p", fontWeight, ...props }) => /* @__PURE__ */ React18.createElement(Typography2.Default, { ...props, htmlTag });
|
7500
7337
|
Typography2.P = Typography2.Paragraph;
|
7501
7338
|
Typography2.Paragraph.displayName = "Typography.Paragraph";
|
7502
|
-
Typography2.Small = (
|
7503
|
-
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
7504
|
-
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "small" }));
|
7505
|
-
};
|
7339
|
+
Typography2.Small = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "small" });
|
7506
7340
|
Typography2.Small.displayName = "Typography.Small";
|
7507
|
-
Typography2.SmallStrong = (
|
7508
|
-
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
7509
|
-
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "small-strong" }));
|
7510
|
-
};
|
7341
|
+
Typography2.SmallStrong = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "small-strong" });
|
7511
7342
|
Typography2.SmallStrong.displayName = "Typography.SmallStrong";
|
7512
|
-
Typography2.Strong = (
|
7513
|
-
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
7514
|
-
return /* @__PURE__ */ React18.createElement("strong", __spreadValues({ className: classNames4(tw("font-semibold"), className) }, props));
|
7515
|
-
};
|
7343
|
+
Typography2.Strong = ({ className, ...props }) => /* @__PURE__ */ React18.createElement("strong", { className: classNames4(tw("font-semibold"), className), ...props });
|
7516
7344
|
Typography2.Strong.displayName = "Typography.Strong";
|
7517
|
-
Typography2.Caption = (
|
7518
|
-
var _b = _a, { htmlTag = "div", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
|
7519
|
-
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "caption" }));
|
7520
|
-
};
|
7345
|
+
Typography2.Caption = ({ htmlTag = "div", fontWeight, ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "caption" });
|
7521
7346
|
Typography2.Caption.displayName = "Typography.Caption";
|
7522
|
-
Typography2.Code = (
|
7523
|
-
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
7524
|
-
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "code" }));
|
7525
|
-
};
|
7347
|
+
Typography2.Code = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "code" });
|
7526
7348
|
Typography2.Code.displayName = "Typography.Code";
|
7527
|
-
Typography2.CodeStrong = (
|
7528
|
-
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
7529
|
-
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "code-strong" }));
|
7530
|
-
};
|
7349
|
+
Typography2.CodeStrong = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "code-strong" });
|
7531
7350
|
Typography2.CodeStrong.displayName = "Typography.CodeStrong";
|
7532
|
-
Typography2.CodeSmall = (
|
7533
|
-
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
7534
|
-
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "code-small" }));
|
7535
|
-
};
|
7351
|
+
Typography2.CodeSmall = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "code-small" });
|
7536
7352
|
Typography2.CodeSmall.displayName = "Typography.Code";
|
7537
|
-
Typography2.CodeSmallStrong = (
|
7538
|
-
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
7539
|
-
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "code-small-strong" }));
|
7540
|
-
};
|
7353
|
+
Typography2.CodeSmallStrong = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "code-small-strong" });
|
7541
7354
|
Typography2.CodeSmallStrong.displayName = "Typography.CodeSmallStrong";
|
7542
|
-
Typography2.LargeText = (
|
7543
|
-
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
7544
|
-
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "large-strong" }));
|
7545
|
-
};
|
7355
|
+
Typography2.LargeText = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "large-strong" });
|
7546
7356
|
Typography2.LargeText.displayName = "Typography.LargeText";
|
7547
|
-
Typography2.MediumText = (
|
7548
|
-
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
7549
|
-
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "default-strong" }));
|
7550
|
-
};
|
7357
|
+
Typography2.MediumText = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "default-strong" });
|
7551
7358
|
Typography2.MediumText.displayName = "Typography.MediumText";
|
7552
|
-
Typography2.Text = (
|
7553
|
-
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
7554
|
-
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "default" }));
|
7555
|
-
};
|
7359
|
+
Typography2.Text = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "default" });
|
7556
7360
|
Typography2.Text.displayName = "Typography.Text";
|
7557
|
-
Typography2.SmallText = (
|
7558
|
-
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
7559
|
-
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "small" }));
|
7560
|
-
};
|
7361
|
+
Typography2.SmallText = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "small" });
|
7561
7362
|
Typography2.SmallText.displayName = "Typography.SmallText";
|
7562
|
-
Typography2.SmallTextBold = (
|
7563
|
-
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
7564
|
-
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "small-strong" }));
|
7565
|
-
};
|
7363
|
+
Typography2.SmallTextBold = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "small-strong" });
|
7566
7364
|
Typography2.SmallTextBold.displayName = "Typography.SmallTextBold";
|
7567
7365
|
|
7568
7366
|
// src/atoms/LineClamp/LineClamp.tsx
|
7569
7367
|
import React19 from "react";
|
7570
7368
|
var LineClamp = React19.forwardRef(
|
7571
|
-
(
|
7572
|
-
var _b = _a, { lines = 1, clamped = true, children, className, wordBreak = "break-words" } = _b, props = __objRest(_b, ["lines", "clamped", "children", "className", "wordBreak"]);
|
7369
|
+
({ lines = 1, clamped = true, children, className, wordBreak = "break-words", ...props }, ref) => {
|
7573
7370
|
return /* @__PURE__ */ React19.createElement(
|
7574
7371
|
"div",
|
7575
|
-
|
7372
|
+
{
|
7576
7373
|
ref,
|
7577
7374
|
className: classNames(className, wordBreak === "break-words" ? "break-words" : "break-all", {
|
7578
7375
|
[`line-clamp-${lines}`]: clamped
|
7579
|
-
})
|
7580
|
-
|
7376
|
+
}),
|
7377
|
+
...props
|
7378
|
+
},
|
7581
7379
|
children
|
7582
7380
|
);
|
7583
7381
|
}
|
@@ -7595,7 +7393,7 @@ var getCommonCardStyles = ({
|
|
7595
7393
|
"bg-muted cursor-not-allowed focus:border-transparent opacity-50": disabled
|
7596
7394
|
});
|
7597
7395
|
var Card = React20.forwardRef((props, ref) => {
|
7598
|
-
const
|
7396
|
+
const {
|
7599
7397
|
disabled = false,
|
7600
7398
|
clickable: _clickable,
|
7601
7399
|
className,
|
@@ -7603,24 +7401,16 @@ var Card = React20.forwardRef((props, ref) => {
|
|
7603
7401
|
role = _clickable ? "button" : void 0,
|
7604
7402
|
modality,
|
7605
7403
|
enableMinWidth,
|
7606
|
-
fullWidth
|
7607
|
-
|
7608
|
-
|
7609
|
-
"clickable",
|
7610
|
-
"className",
|
7611
|
-
"children",
|
7612
|
-
"role",
|
7613
|
-
"modality",
|
7614
|
-
"enableMinWidth",
|
7615
|
-
"fullWidth"
|
7616
|
-
]);
|
7404
|
+
fullWidth,
|
7405
|
+
...rest
|
7406
|
+
} = props;
|
7617
7407
|
const clickable = Boolean(role !== void 0 && !disabled);
|
7618
7408
|
return /* @__PURE__ */ React20.createElement(
|
7619
7409
|
"div",
|
7620
|
-
|
7410
|
+
{
|
7621
7411
|
ref,
|
7622
|
-
role
|
7623
|
-
|
7412
|
+
role,
|
7413
|
+
...rest,
|
7624
7414
|
className: classNames(
|
7625
7415
|
getCommonCardStyles(props),
|
7626
7416
|
tw({
|
@@ -7629,15 +7419,16 @@ var Card = React20.forwardRef((props, ref) => {
|
|
7629
7419
|
}),
|
7630
7420
|
className
|
7631
7421
|
)
|
7632
|
-
}
|
7422
|
+
},
|
7633
7423
|
children
|
7634
7424
|
);
|
7635
7425
|
});
|
7636
7426
|
var Label = (props) => {
|
7637
|
-
const
|
7427
|
+
const { className, checked = false, children, modality, enableMinWidth, fullWidth, disabled, ...rest } = props;
|
7638
7428
|
return /* @__PURE__ */ React20.createElement(
|
7639
7429
|
"label",
|
7640
|
-
|
7430
|
+
{
|
7431
|
+
...rest,
|
7641
7432
|
className: classNames(
|
7642
7433
|
getCommonCardStyles(props),
|
7643
7434
|
tw({
|
@@ -7647,40 +7438,34 @@ var Label = (props) => {
|
|
7647
7438
|
}),
|
7648
7439
|
className
|
7649
7440
|
)
|
7650
|
-
}
|
7441
|
+
},
|
7651
7442
|
children
|
7652
7443
|
);
|
7653
7444
|
};
|
7654
|
-
var ColorHighlight = (
|
7655
|
-
|
7656
|
-
|
7657
|
-
|
7658
|
-
|
7659
|
-
|
7660
|
-
|
7661
|
-
|
7662
|
-
|
7663
|
-
|
7664
|
-
|
7665
|
-
|
7666
|
-
|
7667
|
-
|
7668
|
-
|
7669
|
-
|
7670
|
-
|
7671
|
-
|
7672
|
-
|
7673
|
-
|
7674
|
-
|
7675
|
-
|
7676
|
-
|
7677
|
-
|
7678
|
-
}),
|
7679
|
-
className
|
7680
|
-
)
|
7681
|
-
})
|
7682
|
-
);
|
7683
|
-
};
|
7445
|
+
var ColorHighlight = ({
|
7446
|
+
color,
|
7447
|
+
className,
|
7448
|
+
...rest
|
7449
|
+
}) => /* @__PURE__ */ React20.createElement(
|
7450
|
+
Box,
|
7451
|
+
{
|
7452
|
+
...rest,
|
7453
|
+
backgroundColor: color,
|
7454
|
+
className: classNames(tw("h-1 w-full absolute top-0 left-0 right-0"), className)
|
7455
|
+
}
|
7456
|
+
);
|
7457
|
+
var ImageContainer = ({ className, fullSize, ...rest }) => /* @__PURE__ */ React20.createElement(
|
7458
|
+
"div",
|
7459
|
+
{
|
7460
|
+
...rest,
|
7461
|
+
className: classNames(
|
7462
|
+
tw("-mx-4", {
|
7463
|
+
"-mt-4": Boolean(fullSize)
|
7464
|
+
}),
|
7465
|
+
className
|
7466
|
+
)
|
7467
|
+
}
|
7468
|
+
);
|
7684
7469
|
var classes = "w-full bg-cover object-cover";
|
7685
7470
|
var Image = ({ image, imageAlt, fullSize = false, imageHeight }) => /* @__PURE__ */ React20.createElement(
|
7686
7471
|
"img",
|
@@ -7694,15 +7479,9 @@ var Image = ({ image, imageAlt, fullSize = false, imageHeight }) => /* @__PURE__
|
|
7694
7479
|
style: { height: isNumber(imageHeight) ? `${imageHeight}px` : imageHeight }
|
7695
7480
|
}
|
7696
7481
|
);
|
7697
|
-
var Title = (props) => /* @__PURE__ */ React20.createElement(Box.Flex,
|
7698
|
-
var Content = (
|
7699
|
-
|
7700
|
-
return /* @__PURE__ */ React20.createElement("div", __spreadProps(__spreadValues({}, rest), { className: classNames(tw("flex flex-col", { "gap-4": !dense }), className) }));
|
7701
|
-
};
|
7702
|
-
var Actions = (_a) => {
|
7703
|
-
var _b = _a, { className, dense } = _b, rest = __objRest(_b, ["className", "dense"]);
|
7704
|
-
return /* @__PURE__ */ React20.createElement("div", __spreadProps(__spreadValues({}, rest), { className: classNames(tw("flex gap-3 items-center", { "pt-3 ": !dense }), className) }));
|
7705
|
-
};
|
7482
|
+
var Title = (props) => /* @__PURE__ */ React20.createElement(Box.Flex, { component: "div", alignItems: "center", gap: "2", ...props });
|
7483
|
+
var Content = ({ className, dense, ...rest }) => /* @__PURE__ */ React20.createElement("div", { ...rest, className: classNames(tw("flex flex-col", { "gap-4": !dense }), className) });
|
7484
|
+
var Actions = ({ className, dense, ...rest }) => /* @__PURE__ */ React20.createElement("div", { ...rest, className: classNames(tw("flex gap-3 items-center", { "pt-3 ": !dense }), className) });
|
7706
7485
|
Card.Label = Label;
|
7707
7486
|
Card.Title = Title;
|
7708
7487
|
Card.Content = Content;
|
@@ -7735,77 +7514,73 @@ import React21 from "react";
|
|
7735
7514
|
var import_minus2 = __toESM(require_minus());
|
7736
7515
|
var import_tick2 = __toESM(require_tick());
|
7737
7516
|
var Checkbox = React21.forwardRef(
|
7738
|
-
(
|
7739
|
-
|
7740
|
-
|
7741
|
-
"
|
7517
|
+
({ id, children, name, disabled = false, readOnly = false, indeterminate = false, ...props }, ref) => /* @__PURE__ */ React21.createElement(
|
7518
|
+
"span",
|
7519
|
+
{
|
7520
|
+
className: classNames(tw("inline-flex justify-center items-center self-center relative"), {
|
7521
|
+
"hover:border-intense peer-checked:border-primary-default": !disabled,
|
7522
|
+
"border-muted": disabled
|
7523
|
+
})
|
7524
|
+
},
|
7525
|
+
/* @__PURE__ */ React21.createElement(
|
7526
|
+
"input",
|
7742
7527
|
{
|
7743
|
-
|
7744
|
-
|
7745
|
-
|
7746
|
-
|
7747
|
-
|
7748
|
-
|
7749
|
-
|
7750
|
-
|
7751
|
-
|
7752
|
-
|
7753
|
-
|
7754
|
-
|
7755
|
-
|
7756
|
-
|
7757
|
-
|
7758
|
-
|
7759
|
-
|
7760
|
-
|
7528
|
+
id,
|
7529
|
+
ref,
|
7530
|
+
type: "checkbox",
|
7531
|
+
name,
|
7532
|
+
...props,
|
7533
|
+
className: classNames(
|
7534
|
+
tw("peer appearance-none outline-none w-5 h-5 rounded-sm border border-transparent", {
|
7535
|
+
"cursor-pointer checked:bg-primary-default": !disabled,
|
7536
|
+
"cursor-not-allowed bg-muted checked:bg-primary-muted": disabled
|
7537
|
+
})
|
7538
|
+
),
|
7539
|
+
readOnly,
|
7540
|
+
disabled
|
7541
|
+
}
|
7542
|
+
),
|
7543
|
+
/* @__PURE__ */ React21.createElement(
|
7544
|
+
Icon,
|
7545
|
+
{
|
7546
|
+
icon: indeterminate ? import_minus2.default : import_tick2.default,
|
7547
|
+
strokeWidth: "3px",
|
7548
|
+
className: classNames(
|
7549
|
+
tw(
|
7550
|
+
"absolute top-0 right-0",
|
7551
|
+
"pointer-events-none p-[2px] w-5 h-5",
|
7552
|
+
"text-transparent [&>path]:stroke-transparent [&>path]:stroke-[3px]",
|
7553
|
+
"rounded-sm border border-default peer-focus:border-info-default"
|
7761
7554
|
),
|
7762
|
-
|
7763
|
-
|
7764
|
-
|
7765
|
-
|
7766
|
-
|
7767
|
-
|
7768
|
-
|
7769
|
-
|
7770
|
-
|
7771
|
-
className: classNames(
|
7772
|
-
tw(
|
7773
|
-
"absolute top-0 right-0",
|
7774
|
-
"pointer-events-none p-[2px] w-5 h-5",
|
7775
|
-
"text-transparent [&>path]:stroke-transparent [&>path]:stroke-[3px]",
|
7776
|
-
"rounded-sm border border-default peer-focus:border-info-default"
|
7777
|
-
),
|
7778
|
-
{
|
7779
|
-
"border-default peer-hover:border-intense peer-checked:text-white peer-checked:[&>path]:stroke-white peer-checked:border-primary-default": !disabled,
|
7780
|
-
"border-muted peer-checked:text-primary-default peer-checked:[&>path]:stroke-primary-70 peer-checked:border-transparent": disabled
|
7781
|
-
}
|
7782
|
-
)
|
7783
|
-
}
|
7784
|
-
)
|
7785
|
-
);
|
7786
|
-
}
|
7555
|
+
// It seems that we can't combine peer selectors and use 'peer-checked:peer-disabled:bg-muted' style instead.
|
7556
|
+
{
|
7557
|
+
"border-default peer-hover:border-intense peer-checked:text-white peer-checked:[&>path]:stroke-white peer-checked:border-primary-default": !disabled,
|
7558
|
+
"border-muted peer-checked:text-primary-default peer-checked:[&>path]:stroke-primary-70 peer-checked:border-transparent": disabled
|
7559
|
+
}
|
7560
|
+
)
|
7561
|
+
}
|
7562
|
+
)
|
7563
|
+
)
|
7787
7564
|
);
|
7788
7565
|
|
7789
7566
|
// src/atoms/Chip/Chip.tsx
|
7790
7567
|
import React22 from "react";
|
7791
7568
|
var Container = React22.forwardRef(
|
7792
|
-
(
|
7793
|
-
|
7794
|
-
|
7795
|
-
|
7796
|
-
|
7797
|
-
|
7798
|
-
|
7799
|
-
|
7800
|
-
|
7801
|
-
|
7802
|
-
|
7803
|
-
|
7804
|
-
|
7805
|
-
|
7806
|
-
|
7807
|
-
);
|
7808
|
-
}
|
7569
|
+
({ dense = false, className, children, ...rest }, ref) => /* @__PURE__ */ React22.createElement(
|
7570
|
+
"span",
|
7571
|
+
{
|
7572
|
+
ref,
|
7573
|
+
className: classNames(
|
7574
|
+
tw("inline-flex items-center rounded-sm transition whitespace-nowrap", {
|
7575
|
+
"typography-small py-2 px-3 gap-x-3 leading-tight": !dense,
|
7576
|
+
"typography-caption py-1 px-2 gap-x-2": dense
|
7577
|
+
}),
|
7578
|
+
className
|
7579
|
+
),
|
7580
|
+
...rest
|
7581
|
+
},
|
7582
|
+
children
|
7583
|
+
)
|
7809
7584
|
);
|
7810
7585
|
var Chip = {
|
7811
7586
|
Container
|
@@ -7820,32 +7595,29 @@ import React24 from "react";
|
|
7820
7595
|
// src/atoms/RadioButton/RadioButton.tsx
|
7821
7596
|
import React23 from "react";
|
7822
7597
|
var RadioButton = React23.forwardRef(
|
7823
|
-
(
|
7824
|
-
|
7825
|
-
|
7826
|
-
|
7827
|
-
|
7828
|
-
|
7829
|
-
|
7830
|
-
|
7831
|
-
|
7832
|
-
|
7833
|
-
|
7834
|
-
|
7835
|
-
|
7836
|
-
|
7837
|
-
"
|
7838
|
-
|
7839
|
-
|
7840
|
-
|
7841
|
-
|
7842
|
-
|
7843
|
-
|
7844
|
-
|
7845
|
-
|
7846
|
-
})
|
7847
|
-
);
|
7848
|
-
}
|
7598
|
+
({ id, children, name, disabled = false, readOnly = false, ...props }, ref) => /* @__PURE__ */ React23.createElement(
|
7599
|
+
"input",
|
7600
|
+
{
|
7601
|
+
id,
|
7602
|
+
ref,
|
7603
|
+
type: "radio",
|
7604
|
+
name,
|
7605
|
+
...props,
|
7606
|
+
className: classNames(
|
7607
|
+
tw(
|
7608
|
+
"inline-flex justify-center items-center self-center appearance-none",
|
7609
|
+
"w-5 h-5 p-[3px] rounded-full border border-default",
|
7610
|
+
"outline-none focus:border-info-default checked:bg-primary-default checked:shadow-bodyInset",
|
7611
|
+
{
|
7612
|
+
"cursor-pointer hover:border-intense checked:border-primary-default": !disabled,
|
7613
|
+
"cursor-not-allowed border-muted bg-muted checked:bg-primary-muted checked:border-transparent": disabled
|
7614
|
+
}
|
7615
|
+
)
|
7616
|
+
),
|
7617
|
+
readOnly,
|
7618
|
+
disabled
|
7619
|
+
}
|
7620
|
+
)
|
7849
7621
|
);
|
7850
7622
|
|
7851
7623
|
// src/atoms/Table/Table.tsx
|
@@ -7853,31 +7625,23 @@ var import_chevronDown3 = __toESM(require_chevronDown());
|
|
7853
7625
|
var import_chevronUp2 = __toESM(require_chevronUp());
|
7854
7626
|
var HeadContext = React24.createContext(null);
|
7855
7627
|
var tableClassNames = tw("w-full relative typography-default border-spacing-0 border-separate");
|
7856
|
-
var Table = (
|
7857
|
-
|
7858
|
-
return /* @__PURE__ */ React24.createElement("table", __spreadProps(__spreadValues({}, rest), { className: classNames(tableClassNames, className), "aria-label": ariaLabel }), children);
|
7859
|
-
};
|
7860
|
-
var TableHead = (_a) => {
|
7861
|
-
var _b = _a, { children, sticky } = _b, rest = __objRest(_b, ["children", "sticky"]);
|
7862
|
-
return /* @__PURE__ */ React24.createElement("thead", __spreadValues({}, rest), /* @__PURE__ */ React24.createElement("tr", null, /* @__PURE__ */ React24.createElement(HeadContext.Provider, { value: { children, sticky } }, children)));
|
7863
|
-
};
|
7864
|
-
var TableBody = (_a) => {
|
7865
|
-
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
7866
|
-
return /* @__PURE__ */ React24.createElement("tbody", __spreadValues({}, rest), children);
|
7628
|
+
var Table = ({ children, ariaLabel, className, ...rest }) => {
|
7629
|
+
return /* @__PURE__ */ React24.createElement("table", { ...rest, className: classNames(tableClassNames, className), "aria-label": ariaLabel }, children);
|
7867
7630
|
};
|
7631
|
+
var TableHead = ({ children, sticky, ...rest }) => /* @__PURE__ */ React24.createElement("thead", { ...rest }, /* @__PURE__ */ React24.createElement("tr", null, /* @__PURE__ */ React24.createElement(HeadContext.Provider, { value: { children, sticky } }, children)));
|
7632
|
+
var TableBody = ({ children, ...rest }) => /* @__PURE__ */ React24.createElement("tbody", { ...rest }, children);
|
7868
7633
|
var rowClassNames = tw("children:border-default group children:last:border-b-0 hover:bg-muted");
|
7869
|
-
var TableRow = (
|
7870
|
-
|
7871
|
-
|
7872
|
-
|
7873
|
-
|
7874
|
-
|
7875
|
-
|
7876
|
-
|
7877
|
-
|
7878
|
-
|
7879
|
-
|
7880
|
-
};
|
7634
|
+
var TableRow = ({ children, className, disabled, ...rest }) => /* @__PURE__ */ React24.createElement(
|
7635
|
+
"tr",
|
7636
|
+
{
|
7637
|
+
...rest,
|
7638
|
+
...{ inert: disabled ? "" : void 0 },
|
7639
|
+
className: classNames(rowClassNames, className, {
|
7640
|
+
"opacity-70": disabled
|
7641
|
+
})
|
7642
|
+
},
|
7643
|
+
children
|
7644
|
+
);
|
7881
7645
|
var cellClassNames = tw("px-4 border-b typography-small leading-[18px]");
|
7882
7646
|
var getBodyCellClassNames = (table = true, stickyColumn) => tw("text-default py-3", {
|
7883
7647
|
"h-[50px]": table,
|
@@ -7900,12 +7664,12 @@ var getHeadCellClassNames = (sticky = true, stickyColumn) => {
|
|
7900
7664
|
) : common;
|
7901
7665
|
};
|
7902
7666
|
var TableCell = React24.forwardRef(
|
7903
|
-
(
|
7904
|
-
var _b = _a, { children, className, stickyColumn, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "stickyColumn", "align"]);
|
7667
|
+
({ children, className, stickyColumn, align = "left", ...rest }, ref) => {
|
7905
7668
|
const headContext = React24.useContext(HeadContext);
|
7906
7669
|
return headContext ? /* @__PURE__ */ React24.createElement(
|
7907
7670
|
"th",
|
7908
|
-
|
7671
|
+
{
|
7672
|
+
...rest,
|
7909
7673
|
ref,
|
7910
7674
|
className: classNames(
|
7911
7675
|
cellClassNames,
|
@@ -7913,11 +7677,12 @@ var TableCell = React24.forwardRef(
|
|
7913
7677
|
getAlignClassNames(align),
|
7914
7678
|
className
|
7915
7679
|
)
|
7916
|
-
}
|
7680
|
+
},
|
7917
7681
|
children
|
7918
7682
|
) : /* @__PURE__ */ React24.createElement(
|
7919
7683
|
"td",
|
7920
|
-
|
7684
|
+
{
|
7685
|
+
...rest,
|
7921
7686
|
ref,
|
7922
7687
|
className: classNames(
|
7923
7688
|
cellClassNames,
|
@@ -7925,37 +7690,33 @@ var TableCell = React24.forwardRef(
|
|
7925
7690
|
getAlignClassNames(align),
|
7926
7691
|
className
|
7927
7692
|
)
|
7928
|
-
}
|
7693
|
+
},
|
7929
7694
|
children
|
7930
7695
|
);
|
7931
7696
|
}
|
7932
7697
|
);
|
7933
|
-
var TableSelectCell = (
|
7934
|
-
|
7935
|
-
return /* @__PURE__ */ React24.createElement(Table.Cell, { className: tw("leading-[0px]") }, props.type === "radio" ? /* @__PURE__ */ React24.createElement(RadioButton, __spreadValues({ "aria-label": ariaLabel }, props)) : /* @__PURE__ */ React24.createElement(Checkbox, __spreadValues({ "aria-label": ariaLabel }, props)));
|
7698
|
+
var TableSelectCell = ({ ariaLabel, ...props }) => {
|
7699
|
+
return /* @__PURE__ */ React24.createElement(Table.Cell, { className: tw("leading-[0px]") }, props.type === "radio" ? /* @__PURE__ */ React24.createElement(RadioButton, { "aria-label": ariaLabel, ...props }) : /* @__PURE__ */ React24.createElement(Checkbox, { "aria-label": ariaLabel, ...props }));
|
7936
7700
|
};
|
7937
7701
|
var getSortCellButtonClassNames = (align) => tw("group flex items-center gap-x-4 text-muted", { "flex-row-reverse": align === "right" });
|
7938
7702
|
var getSortCellIconClassNames = (active) => {
|
7939
7703
|
return tw("text-[9px]", active ? "text-default" : "text-inactive");
|
7940
7704
|
};
|
7941
7705
|
var TableSortCell = React24.forwardRef(
|
7942
|
-
(
|
7943
|
-
|
7944
|
-
|
7945
|
-
"
|
7946
|
-
{
|
7947
|
-
"
|
7948
|
-
|
7949
|
-
|
7950
|
-
|
7951
|
-
|
7952
|
-
|
7953
|
-
/* @__PURE__ */ React24.createElement(InlineIcon, { icon: import_chevronDown3.default, className: getSortCellIconClassNames(direction === "descending") })
|
7954
|
-
)));
|
7955
|
-
}
|
7706
|
+
({ children, direction = "none", onClick, ...rest }, ref) => /* @__PURE__ */ React24.createElement(Table.Cell, { ...rest, "aria-sort": direction, ref }, /* @__PURE__ */ React24.createElement("span", { className: getSortCellButtonClassNames(rest.align), role: "button", tabIndex: -1, onClick }, children, /* @__PURE__ */ React24.createElement(
|
7707
|
+
"div",
|
7708
|
+
{
|
7709
|
+
"data-sort-icons": true,
|
7710
|
+
className: tw("flex flex-col", {
|
7711
|
+
"invisible group-hover:visible": direction === "none"
|
7712
|
+
})
|
7713
|
+
},
|
7714
|
+
/* @__PURE__ */ React24.createElement(InlineIcon, { icon: import_chevronUp2.default, className: getSortCellIconClassNames(direction === "ascending") }),
|
7715
|
+
/* @__PURE__ */ React24.createElement(InlineIcon, { icon: import_chevronDown3.default, className: getSortCellIconClassNames(direction === "descending") })
|
7716
|
+
)))
|
7956
7717
|
);
|
7957
7718
|
var Caption = ({ children }) => /* @__PURE__ */ React24.createElement(Typography2.Caption, { htmlTag: "caption" }, children);
|
7958
|
-
var Item = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ React24.createElement("div", { className: tw("flex gap-4 items-center") }, image && /* @__PURE__ */ React24.createElement("img", { src: image, alt: imageAlt
|
7719
|
+
var Item = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ React24.createElement("div", { className: tw("flex gap-4 items-center") }, image && /* @__PURE__ */ React24.createElement("img", { src: image, alt: imageAlt ?? "", style: { width: imageSize, height: imageSize } }), /* @__PURE__ */ React24.createElement("div", null, title, caption && /* @__PURE__ */ React24.createElement(Typography2.Caption, null, caption)));
|
7959
7720
|
Table.Head = React24.memo(TableHead);
|
7960
7721
|
Table.Body = React24.memo(TableBody);
|
7961
7722
|
Table.Row = React24.memo(TableRow);
|
@@ -7972,126 +7733,97 @@ var getAlignClassNames2 = (align) => tw("flex items-center", {
|
|
7972
7733
|
"justify-center": align === "center",
|
7973
7734
|
"justify-start": align === "left" || align === void 0
|
7974
7735
|
});
|
7975
|
-
var DataList = (
|
7976
|
-
|
7977
|
-
|
7978
|
-
|
7979
|
-
|
7980
|
-
|
7981
|
-
|
7982
|
-
"div",
|
7983
|
-
{
|
7984
|
-
className: tw("border-l border-default border-dashed flex-1", {
|
7985
|
-
"h-full": !isLast,
|
7986
|
-
"h-1/2": Boolean(isLast)
|
7987
|
-
})
|
7988
|
-
}
|
7989
|
-
), /* @__PURE__ */ React25.createElement("div", { className: tw("border-t border-default border-dashed self-center w-[18px]") }));
|
7990
|
-
};
|
7991
|
-
var HeadCell = (_a) => {
|
7992
|
-
var _b = _a, {
|
7993
|
-
className,
|
7994
|
-
sticky,
|
7995
|
-
align,
|
7996
|
-
stickyColumn
|
7997
|
-
} = _b, rest = __objRest(_b, [
|
7998
|
-
"className",
|
7999
|
-
"sticky",
|
8000
|
-
"align",
|
8001
|
-
"stickyColumn"
|
8002
|
-
]);
|
8003
|
-
return /* @__PURE__ */ React25.createElement(
|
8004
|
-
"div",
|
8005
|
-
__spreadProps(__spreadValues({
|
8006
|
-
role: "columnheader"
|
8007
|
-
}, rest), {
|
8008
|
-
className: classNames(
|
8009
|
-
cellClassNames,
|
8010
|
-
getHeadCellClassNames(sticky, stickyColumn),
|
8011
|
-
getAlignClassNames2(align),
|
8012
|
-
className
|
8013
|
-
)
|
8014
|
-
})
|
8015
|
-
);
|
8016
|
-
};
|
8017
|
-
var Cell = (_a) => {
|
8018
|
-
var _b = _a, {
|
8019
|
-
className,
|
8020
|
-
align,
|
8021
|
-
stickyColumn
|
8022
|
-
} = _b, rest = __objRest(_b, [
|
8023
|
-
"className",
|
8024
|
-
"align",
|
8025
|
-
"stickyColumn"
|
8026
|
-
]);
|
8027
|
-
return /* @__PURE__ */ React25.createElement(
|
8028
|
-
"div",
|
8029
|
-
__spreadProps(__spreadValues({}, rest), {
|
8030
|
-
role: "cell",
|
8031
|
-
className: classNames(
|
8032
|
-
cellClassNames,
|
8033
|
-
getBodyCellClassNames(false, stickyColumn),
|
8034
|
-
getAlignClassNames2(align),
|
8035
|
-
tw("border-default"),
|
8036
|
-
className
|
8037
|
-
)
|
7736
|
+
var DataList = ({ className, ...rest }) => /* @__PURE__ */ React25.createElement("div", { ...rest });
|
7737
|
+
var TreeLine = ({ className, style, isLast, ...rest }) => /* @__PURE__ */ React25.createElement("div", { ...rest, className: classNames(tw("flex justify-start h-full mx-4"), className) }, /* @__PURE__ */ React25.createElement(
|
7738
|
+
"div",
|
7739
|
+
{
|
7740
|
+
className: tw("border-l border-default border-dashed flex-1", {
|
7741
|
+
"h-full": !isLast,
|
7742
|
+
"h-1/2": Boolean(isLast)
|
8038
7743
|
})
|
8039
|
-
|
8040
|
-
};
|
8041
|
-
var
|
8042
|
-
|
8043
|
-
|
8044
|
-
|
8045
|
-
|
8046
|
-
|
8047
|
-
|
8048
|
-
|
8049
|
-
|
8050
|
-
"
|
8051
|
-
|
8052
|
-
|
8053
|
-
|
8054
|
-
|
8055
|
-
|
8056
|
-
|
7744
|
+
}
|
7745
|
+
), /* @__PURE__ */ React25.createElement("div", { className: tw("border-t border-default border-dashed self-center w-[18px]") }));
|
7746
|
+
var HeadCell = ({
|
7747
|
+
className,
|
7748
|
+
sticky,
|
7749
|
+
align,
|
7750
|
+
stickyColumn,
|
7751
|
+
...rest
|
7752
|
+
}) => /* @__PURE__ */ React25.createElement(
|
7753
|
+
"div",
|
7754
|
+
{
|
7755
|
+
role: "columnheader",
|
7756
|
+
...rest,
|
7757
|
+
className: classNames(
|
7758
|
+
cellClassNames,
|
7759
|
+
getHeadCellClassNames(sticky, stickyColumn),
|
7760
|
+
getAlignClassNames2(align),
|
7761
|
+
className
|
7762
|
+
)
|
7763
|
+
}
|
7764
|
+
);
|
7765
|
+
var Cell = ({
|
7766
|
+
className,
|
7767
|
+
align,
|
7768
|
+
stickyColumn,
|
7769
|
+
...rest
|
7770
|
+
}) => /* @__PURE__ */ React25.createElement(
|
7771
|
+
"div",
|
7772
|
+
{
|
7773
|
+
...rest,
|
7774
|
+
role: "cell",
|
7775
|
+
className: classNames(
|
7776
|
+
cellClassNames,
|
7777
|
+
getBodyCellClassNames(false, stickyColumn),
|
7778
|
+
getAlignClassNames2(align),
|
7779
|
+
tw("border-default"),
|
7780
|
+
className
|
7781
|
+
)
|
7782
|
+
}
|
7783
|
+
);
|
7784
|
+
var Row = ({
|
7785
|
+
className,
|
7786
|
+
disabled,
|
7787
|
+
header,
|
7788
|
+
isGroup,
|
7789
|
+
active,
|
7790
|
+
noDivider,
|
7791
|
+
...rest
|
7792
|
+
}) => {
|
8057
7793
|
return /* @__PURE__ */ React25.createElement(
|
8058
7794
|
"div",
|
8059
|
-
|
8060
|
-
|
8061
|
-
|
7795
|
+
{
|
7796
|
+
...rest,
|
7797
|
+
role: isGroup ? "rowgroup" : "row",
|
7798
|
+
...{ inert: disabled ? "" : void 0 },
|
8062
7799
|
className: classNames(tw("contents"), className, {
|
8063
7800
|
"[&>*]:border-b-transparent": noDivider,
|
8064
7801
|
"children:opacity-70": disabled,
|
8065
7802
|
"[&>*]:bg-primary-active": active,
|
8066
7803
|
"[&>*]:hover:bg-muted": !disabled && !header
|
8067
7804
|
})
|
8068
|
-
}
|
7805
|
+
}
|
8069
7806
|
);
|
8070
7807
|
};
|
8071
|
-
var SubGroupSpacing = (
|
8072
|
-
|
8073
|
-
|
8074
|
-
|
8075
|
-
|
8076
|
-
|
8077
|
-
|
7808
|
+
var SubGroupSpacing = ({ className, divider, ...rest }) => /* @__PURE__ */ React25.createElement(
|
7809
|
+
"span",
|
7810
|
+
{
|
7811
|
+
...rest,
|
7812
|
+
"aria-hidden": true,
|
7813
|
+
className: classNames(tw("col-span-full h-6 bg-muted border-default", { "border-b": Boolean(divider) }), className)
|
7814
|
+
}
|
7815
|
+
);
|
7816
|
+
var SortCell = ({ children, direction = "none", onClick, sticky, ...rest }) => /* @__PURE__ */ React25.createElement(HeadCell, { ...rest, "aria-sort": direction, role: "columnheader", sticky }, /* @__PURE__ */ React25.createElement("span", { className: getSortCellButtonClassNames(rest.align), role: "button", tabIndex: -1, onClick }, children, /* @__PURE__ */ React25.createElement(
|
7817
|
+
"div",
|
7818
|
+
{
|
7819
|
+
"data-sort-icons": true,
|
7820
|
+
className: tw("flex flex-col", {
|
7821
|
+
"invisible group-hover:visible": direction === "none"
|
8078
7822
|
})
|
8079
|
-
|
8080
|
-
}
|
8081
|
-
|
8082
|
-
|
8083
|
-
return /* @__PURE__ */ React25.createElement(HeadCell, __spreadProps(__spreadValues({}, rest), { "aria-sort": direction, role: "columnheader", sticky }), /* @__PURE__ */ React25.createElement("span", { className: getSortCellButtonClassNames(rest.align), role: "button", tabIndex: -1, onClick }, children, /* @__PURE__ */ React25.createElement(
|
8084
|
-
"div",
|
8085
|
-
{
|
8086
|
-
"data-sort-icons": true,
|
8087
|
-
className: tw("flex flex-col", {
|
8088
|
-
"invisible group-hover:visible": direction === "none"
|
8089
|
-
})
|
8090
|
-
},
|
8091
|
-
/* @__PURE__ */ React25.createElement(InlineIcon, { icon: import_chevronUp3.default, className: getSortCellIconClassNames(direction === "ascending") }),
|
8092
|
-
/* @__PURE__ */ React25.createElement(InlineIcon, { icon: import_chevronDown4.default, className: getSortCellIconClassNames(direction === "descending") })
|
8093
|
-
)));
|
8094
|
-
};
|
7823
|
+
},
|
7824
|
+
/* @__PURE__ */ React25.createElement(InlineIcon, { icon: import_chevronUp3.default, className: getSortCellIconClassNames(direction === "ascending") }),
|
7825
|
+
/* @__PURE__ */ React25.createElement(InlineIcon, { icon: import_chevronDown4.default, className: getSortCellIconClassNames(direction === "descending") })
|
7826
|
+
)));
|
8095
7827
|
var EmptyGroup = ({ icon, children }) => /* @__PURE__ */ React25.createElement("div", { className: tw("flex gap-3 items-center") }, icon && /* @__PURE__ */ React25.createElement(Icon, { icon, width: 22 }), children);
|
8096
7828
|
DataList.EmptyGroup = EmptyGroup;
|
8097
7829
|
DataList.EmptyGroup.displayName = "DataList.EmptyGroup";
|
@@ -8107,42 +7839,31 @@ DataList.Row = Row;
|
|
8107
7839
|
DataList.Row.displayName = "DataList.Row";
|
8108
7840
|
DataList.TreeLine = TreeLine;
|
8109
7841
|
DataList.TreeLine.displayName = "DataList.TreeLine";
|
8110
|
-
var ToolbarContainer = (
|
8111
|
-
|
8112
|
-
|
8113
|
-
|
8114
|
-
|
8115
|
-
|
8116
|
-
|
8117
|
-
|
8118
|
-
|
8119
|
-
|
8120
|
-
|
8121
|
-
|
8122
|
-
|
8123
|
-
);
|
8124
|
-
};
|
7842
|
+
var ToolbarContainer = ({ className, sticky = true, ...rest }) => /* @__PURE__ */ React25.createElement(
|
7843
|
+
"div",
|
7844
|
+
{
|
7845
|
+
...rest,
|
7846
|
+
role: "row",
|
7847
|
+
className: classNames(
|
7848
|
+
tw("col-span-full flex items-stretch py-4 px-l2 border-b border-default", {
|
7849
|
+
"sticky top-[47px] bg-body z-10": sticky
|
7850
|
+
}),
|
7851
|
+
className
|
7852
|
+
)
|
7853
|
+
}
|
7854
|
+
);
|
8125
7855
|
ToolbarContainer.displayName = "DataList.Toolbar.Container";
|
8126
|
-
var ToolbarGroup = (
|
8127
|
-
|
8128
|
-
|
8129
|
-
"
|
8130
|
-
|
8131
|
-
|
8132
|
-
|
8133
|
-
|
8134
|
-
})
|
8135
|
-
);
|
8136
|
-
};
|
7856
|
+
var ToolbarGroup = ({ className, ...rest }) => /* @__PURE__ */ React25.createElement(
|
7857
|
+
"div",
|
7858
|
+
{
|
7859
|
+
role: "cell",
|
7860
|
+
...rest,
|
7861
|
+
className: classNames(tw("flex items-center px-l2 border-r-1 border-muted last:border-r-0"), className)
|
7862
|
+
}
|
7863
|
+
);
|
8137
7864
|
ToolbarGroup.displayName = "DataList.Toolbar.Group";
|
8138
|
-
var ToolbarSelectionCount = (
|
8139
|
-
|
8140
|
-
return /* @__PURE__ */ React25.createElement(Typography, __spreadValues({ variant: "small", color: "muted", className: classNames(tw("whitespace-nowrap"), className) }, rest));
|
8141
|
-
};
|
8142
|
-
var ToolbarActions = (_a) => {
|
8143
|
-
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
8144
|
-
return /* @__PURE__ */ React25.createElement("div", __spreadProps(__spreadValues({}, rest), { className: classNames(tw("flex items-center gap-x-5"), className) }));
|
8145
|
-
};
|
7865
|
+
var ToolbarSelectionCount = ({ className, ...rest }) => /* @__PURE__ */ React25.createElement(Typography, { variant: "small", color: "muted", className: classNames(tw("whitespace-nowrap"), className), ...rest });
|
7866
|
+
var ToolbarActions = ({ className, ...rest }) => /* @__PURE__ */ React25.createElement("div", { ...rest, className: classNames(tw("flex items-center gap-x-5"), className) });
|
8146
7867
|
ToolbarActions.displayName = "DataList.Toolbar.Actions";
|
8147
7868
|
DataList.Toolbar = {
|
8148
7869
|
Container: ToolbarContainer,
|
@@ -8176,61 +7897,61 @@ import React28 from "react";
|
|
8176
7897
|
// src/molecules/Badge/Badge.tsx
|
8177
7898
|
import React27 from "react";
|
8178
7899
|
|
8179
|
-
// src/
|
7900
|
+
// src/atoms/Skeleton/Skeleton.tsx
|
8180
7901
|
import React26 from "react";
|
8181
7902
|
import { isNumber as isNumber2, isUndefined as isUndefined7 } from "lodash-es";
|
8182
|
-
|
8183
|
-
|
8184
|
-
|
8185
|
-
|
8186
|
-
|
8187
|
-
|
8188
|
-
|
8189
|
-
|
8190
|
-
|
8191
|
-
|
8192
|
-
|
8193
|
-
|
8194
|
-
|
8195
|
-
|
8196
|
-
|
8197
|
-
|
8198
|
-
|
8199
|
-
|
7903
|
+
import { tv } from "tailwind-variants";
|
7904
|
+
var skeletonStyles = tv({
|
7905
|
+
base: "bg-default",
|
7906
|
+
variants: {
|
7907
|
+
hasHeight: {
|
7908
|
+
false: "h-auto before:content-['_'] whitespace-pre origin-[0%_45%] scale-[0.55]"
|
7909
|
+
},
|
7910
|
+
display: {
|
7911
|
+
"block": "block",
|
7912
|
+
"inline-block": "inline-block"
|
7913
|
+
},
|
7914
|
+
rounded: {
|
7915
|
+
true: "rounded-full"
|
7916
|
+
},
|
7917
|
+
animate: {
|
7918
|
+
true: "animate-pulse"
|
7919
|
+
}
|
7920
|
+
}
|
7921
|
+
});
|
7922
|
+
var Skeleton = ({
|
7923
|
+
width,
|
7924
|
+
height,
|
7925
|
+
display = "block",
|
7926
|
+
className,
|
7927
|
+
animate = true,
|
7928
|
+
rounded = false,
|
7929
|
+
style,
|
7930
|
+
...rest
|
7931
|
+
}) => {
|
8200
7932
|
const styles = {
|
8201
7933
|
width: isNumber2(width) ? `${width}px` : width,
|
8202
7934
|
height: isNumber2(height) ? `${height}px` : height
|
8203
7935
|
};
|
8204
|
-
|
8205
|
-
|
8206
|
-
|
8207
|
-
|
8208
|
-
|
8209
|
-
|
8210
|
-
|
8211
|
-
|
8212
|
-
"Aquarium-Skeleton",
|
8213
|
-
tw("bg-default", {
|
8214
|
-
"h-auto before:content-['_'] whitespace-pre origin-[0%_45%] scale-[0.55]": isUndefined7(height),
|
8215
|
-
"rounded-full": rounded,
|
8216
|
-
"block": display === "block",
|
8217
|
-
"inline-block": display === "inline-block",
|
8218
|
-
"animate-pulse": animate
|
8219
|
-
}),
|
8220
|
-
className
|
8221
|
-
)
|
8222
|
-
})
|
8223
|
-
);
|
7936
|
+
const classes2 = skeletonStyles({
|
7937
|
+
hasHeight: !isUndefined7(height),
|
7938
|
+
display,
|
7939
|
+
rounded,
|
7940
|
+
animate,
|
7941
|
+
className: ["Aquarium-Skeleton", className]
|
7942
|
+
});
|
7943
|
+
return /* @__PURE__ */ React26.createElement("div", { "aria-label": "Loading...", ...rest, style: { ...styles, ...style }, role: "progressbar", className: classes2 });
|
8224
7944
|
};
|
8225
7945
|
|
8226
7946
|
// src/molecules/Badge/Badge.tsx
|
8227
7947
|
var createBadge = (type, displayName) => {
|
8228
7948
|
const Component = (props) => {
|
8229
|
-
const
|
7949
|
+
const { kind = "filled", value, textClassname, dense = false, disabled = false, ...rest } = props;
|
8230
7950
|
const valueStr = value.toString();
|
8231
7951
|
return /* @__PURE__ */ React27.createElement(
|
8232
7952
|
"span",
|
8233
|
-
|
7953
|
+
{
|
7954
|
+
...rest,
|
8234
7955
|
className: classNames(
|
8235
7956
|
tw("inline-block text-center", {
|
8236
7957
|
"rounded-full": type === "default" || type === "chip",
|
@@ -8246,7 +7967,7 @@ var createBadge = (type, displayName) => {
|
|
8246
7967
|
}),
|
8247
7968
|
"Aquarium-Badge"
|
8248
7969
|
)
|
8249
|
-
}
|
7970
|
+
},
|
8250
7971
|
/* @__PURE__ */ React27.createElement(
|
8251
7972
|
"span",
|
8252
7973
|
{
|
@@ -8275,15 +7996,14 @@ var createBadge = (type, displayName) => {
|
|
8275
7996
|
Component.Skeleton.displayName = `${displayName}.Skeleton`;
|
8276
7997
|
return Component;
|
8277
7998
|
};
|
8278
|
-
var NotificationBadge = (
|
8279
|
-
|
8280
|
-
return /* @__PURE__ */ React27.createElement("div", __spreadProps(__spreadValues({}, props), { className: classNames("Aquarium-Badge.Notification", tw("relative inline-flex text-default")) }), children, /* @__PURE__ */ React27.createElement("span", { style: { top, right }, className: tw("absolute rounded-full w-[6px] h-[6px] bg-danger-intense") }));
|
7999
|
+
var NotificationBadge = ({ children, top = "-2px", right = "-2px", ...props }) => {
|
8000
|
+
return /* @__PURE__ */ React27.createElement("div", { ...props, className: classNames("Aquarium-Badge.Notification", tw("relative inline-flex text-default")) }, children, /* @__PURE__ */ React27.createElement("span", { style: { top, right }, className: tw("absolute rounded-full w-[6px] h-[6px] bg-danger-intense") }));
|
8281
8001
|
};
|
8282
|
-
var DotBadge = (
|
8283
|
-
var _b = _a, { dense = false } = _b, props = __objRest(_b, ["dense"]);
|
8002
|
+
var DotBadge = ({ dense = false, ...props }) => {
|
8284
8003
|
return /* @__PURE__ */ React27.createElement(
|
8285
8004
|
"span",
|
8286
|
-
|
8005
|
+
{
|
8006
|
+
...props,
|
8287
8007
|
className: classNames(
|
8288
8008
|
"Aquarium-Badge.Dot",
|
8289
8009
|
tw("rounded-full bg-current", {
|
@@ -8291,7 +8011,7 @@ var DotBadge = (_a) => {
|
|
8291
8011
|
"w-[9px] h-[9px]": !dense
|
8292
8012
|
})
|
8293
8013
|
)
|
8294
|
-
}
|
8014
|
+
}
|
8295
8015
|
);
|
8296
8016
|
};
|
8297
8017
|
var Badge = createBadge("default", "Badge");
|
@@ -8306,81 +8026,68 @@ var ChipBadge = createBadge("chip", "ChipBadge");
|
|
8306
8026
|
// src/atoms/DropdownMenu/DropdownMenu.tsx
|
8307
8027
|
var import_tick3 = __toESM(require_tick());
|
8308
8028
|
var DropdownMenu = React28.forwardRef(
|
8309
|
-
(
|
8310
|
-
|
8311
|
-
|
8312
|
-
|
8313
|
-
|
8314
|
-
|
8315
|
-
|
8316
|
-
|
8317
|
-
|
8318
|
-
|
8319
|
-
|
8320
|
-
|
8321
|
-
|
8322
|
-
);
|
8323
|
-
}
|
8029
|
+
({ minHeight, maxHeight = "100%", minWidth = "125px", maxWidth, className, children, ...props }, ref) => /* @__PURE__ */ React28.createElement(
|
8030
|
+
"div",
|
8031
|
+
{
|
8032
|
+
ref,
|
8033
|
+
style: { minHeight, maxHeight, minWidth, maxWidth },
|
8034
|
+
className: classNames(
|
8035
|
+
className,
|
8036
|
+
"Aquarium-DropdownMenu.Menu bg-popover-content w-full flex flex-col overflow-x-hidden typography-small text-default"
|
8037
|
+
),
|
8038
|
+
...props
|
8039
|
+
},
|
8040
|
+
children
|
8041
|
+
)
|
8324
8042
|
);
|
8325
8043
|
var ContentContainer = ({ children }) => /* @__PURE__ */ React28.createElement("div", { className: tw("p-3 overflow-y-auto overflow-x-hidden") }, children);
|
8326
8044
|
DropdownMenu.ContentContainer = ContentContainer;
|
8327
8045
|
var List = React28.forwardRef(
|
8328
|
-
(
|
8329
|
-
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
8330
|
-
return /* @__PURE__ */ React28.createElement("ul", __spreadValues({ ref, className: classNames(className, "outline-none ring-0") }, props), children);
|
8331
|
-
}
|
8046
|
+
({ children, className, ...props }, ref) => /* @__PURE__ */ React28.createElement("ul", { ref, className: classNames(className, "outline-none ring-0"), ...props }, children)
|
8332
8047
|
);
|
8333
8048
|
DropdownMenu.List = List;
|
8334
8049
|
var Group = React28.forwardRef(
|
8335
|
-
(
|
8336
|
-
|
8337
|
-
|
8338
|
-
|
8339
|
-
|
8340
|
-
|
8341
|
-
|
8342
|
-
|
8343
|
-
|
8344
|
-
|
8345
|
-
|
8346
|
-
), children);
|
8347
|
-
}
|
8050
|
+
({ className, title, titleProps, children, ...props }, ref) => /* @__PURE__ */ React28.createElement("li", { ref, ...props }, title && /* @__PURE__ */ React28.createElement(
|
8051
|
+
"div",
|
8052
|
+
{
|
8053
|
+
className: classNames(
|
8054
|
+
className,
|
8055
|
+
"Aquarium-DropdownMenu.Group p-3 text-inactive uppercase cursor-default typography-caption"
|
8056
|
+
),
|
8057
|
+
...titleProps
|
8058
|
+
},
|
8059
|
+
title
|
8060
|
+
), children)
|
8348
8061
|
);
|
8349
8062
|
DropdownMenu.Group = Group;
|
8350
8063
|
var Item2 = React28.forwardRef(
|
8351
|
-
(
|
8352
|
-
|
8353
|
-
|
8354
|
-
|
8355
|
-
|
8356
|
-
|
8357
|
-
|
8358
|
-
|
8359
|
-
|
8360
|
-
|
8361
|
-
|
8362
|
-
|
8363
|
-
|
8364
|
-
|
8365
|
-
|
8366
|
-
|
8367
|
-
|
8368
|
-
|
8369
|
-
);
|
8370
|
-
}
|
8064
|
+
({ kind, highlighted, selected, className, icon, showNotification = false, children, ...props }, ref) => /* @__PURE__ */ React28.createElement(
|
8065
|
+
"li",
|
8066
|
+
{
|
8067
|
+
ref,
|
8068
|
+
className: classNames(className, "Aquarium-DropdownMenu.Item flex items-center gap-x-3 p-3 outline-none", {
|
8069
|
+
"cursor-pointer hover:bg-muted": !props.disabled,
|
8070
|
+
"bg-muted": highlighted,
|
8071
|
+
"text-primary-intense": kind === "action" && !props.disabled,
|
8072
|
+
"text-danger-default": kind === "danger" && !props.disabled,
|
8073
|
+
"text-inactive cursor-not-allowed": props.disabled
|
8074
|
+
}),
|
8075
|
+
...props
|
8076
|
+
},
|
8077
|
+
icon && showNotification && /* @__PURE__ */ React28.createElement(Badge.Notification, null, /* @__PURE__ */ React28.createElement(InlineIcon, { icon })),
|
8078
|
+
icon && !showNotification && /* @__PURE__ */ React28.createElement(InlineIcon, { icon }),
|
8079
|
+
/* @__PURE__ */ React28.createElement("span", { className: tw("grow") }, children),
|
8080
|
+
selected && /* @__PURE__ */ React28.createElement(InlineIcon, { icon: import_tick3.default })
|
8081
|
+
)
|
8371
8082
|
);
|
8372
8083
|
DropdownMenu.Item = Item2;
|
8373
8084
|
var Description = ({ disabled, children }) => /* @__PURE__ */ React28.createElement(Typography2.Caption, { color: disabled ? "inactive" : "muted" }, children);
|
8374
8085
|
DropdownMenu.Description = Description;
|
8375
|
-
var Separator = (
|
8376
|
-
|
8377
|
-
return /* @__PURE__ */ React28.createElement("li", __spreadProps(__spreadValues({}, props), { className: classNames(className, tw("m-3 block bg-default h-[1px]")) }));
|
8086
|
+
var Separator = ({ className, ...props }) => {
|
8087
|
+
return /* @__PURE__ */ React28.createElement("li", { ...props, className: classNames(className, tw("m-3 block bg-default h-[1px]")) });
|
8378
8088
|
};
|
8379
8089
|
DropdownMenu.Separator = Separator;
|
8380
|
-
var EmptyStateContainer = (
|
8381
|
-
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
8382
|
-
return /* @__PURE__ */ React28.createElement("div", __spreadValues({ className: classNames(tw("border border-dashed border-default p-3"), className) }, props), children);
|
8383
|
-
};
|
8090
|
+
var EmptyStateContainer = ({ className, children, ...props }) => /* @__PURE__ */ React28.createElement("div", { className: classNames(tw("border border-dashed border-default p-3"), className), ...props }, children);
|
8384
8091
|
DropdownMenu.EmptyStateContainer = EmptyStateContainer;
|
8385
8092
|
|
8386
8093
|
// src/atoms/InputGroup/InputGroup.tsx
|
@@ -8391,38 +8098,23 @@ import React29 from "react";
|
|
8391
8098
|
import { isEmpty, mapValues, pick } from "lodash-es";
|
8392
8099
|
var breakpoints = Object.keys(tokens_default.screens);
|
8393
8100
|
var GridItem = Tailwindify(
|
8394
|
-
(
|
8395
|
-
|
8396
|
-
|
8397
|
-
|
8398
|
-
|
8399
|
-
|
8400
|
-
|
8401
|
-
|
8402
|
-
|
8403
|
-
|
8404
|
-
|
8405
|
-
|
8406
|
-
|
8407
|
-
|
8408
|
-
|
8409
|
-
|
8410
|
-
|
8411
|
-
"htmlTag",
|
8412
|
-
"ariaLabel",
|
8413
|
-
"className",
|
8414
|
-
"style",
|
8415
|
-
"children",
|
8416
|
-
"display",
|
8417
|
-
"justifySelf",
|
8418
|
-
"alignSelf",
|
8419
|
-
"placeSelf",
|
8420
|
-
"colStart",
|
8421
|
-
"colEnd",
|
8422
|
-
"rowSpan",
|
8423
|
-
"rowStart",
|
8424
|
-
"rowEnd"
|
8425
|
-
]);
|
8101
|
+
({
|
8102
|
+
htmlTag = "div",
|
8103
|
+
ariaLabel,
|
8104
|
+
className,
|
8105
|
+
style,
|
8106
|
+
children,
|
8107
|
+
display,
|
8108
|
+
justifySelf,
|
8109
|
+
alignSelf,
|
8110
|
+
placeSelf,
|
8111
|
+
colStart,
|
8112
|
+
colEnd,
|
8113
|
+
rowSpan,
|
8114
|
+
rowStart,
|
8115
|
+
rowEnd,
|
8116
|
+
...props
|
8117
|
+
}) => {
|
8426
8118
|
const breakPointableProperties = pick(props, breakpoints);
|
8427
8119
|
const gridColumn = !isEmpty(breakPointableProperties) ? mapValues(breakPointableProperties, (value) => value === "full" ? "1 / -1" : value ? `span-${value}` : "auto") : void 0;
|
8428
8120
|
const hookStyle = useStyle({
|
@@ -8441,7 +8133,7 @@ var GridItem = Tailwindify(
|
|
8441
8133
|
return /* @__PURE__ */ React29.createElement(
|
8442
8134
|
HtmlElement,
|
8443
8135
|
{
|
8444
|
-
style:
|
8136
|
+
style: { ...hookStyle, ...style },
|
8445
8137
|
className,
|
8446
8138
|
"aria-label": ariaLabel ? ariaLabel : void 0
|
8447
8139
|
},
|
@@ -8450,7 +8142,7 @@ var GridItem = Tailwindify(
|
|
8450
8142
|
}
|
8451
8143
|
);
|
8452
8144
|
var Grid = (props) => {
|
8453
|
-
return /* @__PURE__ */ React29.createElement(GridComponent,
|
8145
|
+
return /* @__PURE__ */ React29.createElement(GridComponent, { ...props });
|
8454
8146
|
};
|
8455
8147
|
var GridComponent = Tailwindify(
|
8456
8148
|
({
|
@@ -8508,7 +8200,7 @@ var GridComponent = Tailwindify(
|
|
8508
8200
|
return /* @__PURE__ */ React29.createElement(
|
8509
8201
|
HtmlElement,
|
8510
8202
|
{
|
8511
|
-
style:
|
8203
|
+
style: { ...hookStyle, ...style },
|
8512
8204
|
className,
|
8513
8205
|
"aria-label": ariaLabel ? ariaLabel : void 0
|
8514
8206
|
},
|
@@ -8527,32 +8219,29 @@ var gridColumnStyles = {
|
|
8527
8219
|
"3": "grid-cols-3",
|
8528
8220
|
"auto": "auto-cols-fr"
|
8529
8221
|
};
|
8530
|
-
var InputGroup = (
|
8531
|
-
var _b = _a, { cols = "1", children } = _b, rest = __objRest(_b, ["cols", "children"]);
|
8222
|
+
var InputGroup = ({ cols = "1", children, ...rest }) => {
|
8532
8223
|
return /* @__PURE__ */ React30.createElement(
|
8533
8224
|
Grid,
|
8534
|
-
|
8225
|
+
{
|
8226
|
+
...rest,
|
8535
8227
|
display: "inline-grid",
|
8536
8228
|
colGap: "l4",
|
8537
8229
|
rowGap: "3",
|
8538
8230
|
cols: cols !== "auto" ? cols : void 0,
|
8539
8231
|
className: gridColumnStyles[cols]
|
8540
|
-
}
|
8232
|
+
},
|
8541
8233
|
children
|
8542
8234
|
);
|
8543
8235
|
};
|
8544
8236
|
|
8545
8237
|
// src/atoms/Link/Link.tsx
|
8546
8238
|
import React31 from "react";
|
8547
|
-
var Link = (
|
8548
|
-
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
8549
|
-
return /* @__PURE__ */ React31.createElement("a", __spreadValues({ className: classNames(className, linkStyle) }, props), children);
|
8550
|
-
};
|
8239
|
+
var Link = ({ children, className, ...props }) => /* @__PURE__ */ React31.createElement("a", { className: classNames(className, linkStyle), ...props }, children);
|
8551
8240
|
|
8552
8241
|
// src/atoms/Modal/Modal.tsx
|
8553
8242
|
import React32 from "react";
|
8554
|
-
import { tv } from "tailwind-variants";
|
8555
|
-
var modalStyles =
|
8243
|
+
import { tv as tv2 } from "tailwind-variants";
|
8244
|
+
var modalStyles = tv2({
|
8556
8245
|
slots: {
|
8557
8246
|
overlay: "inset-0 overflow-y-auto z-modal fixed",
|
8558
8247
|
backdrop: "-z-10 fixed min-w-full min-h-full bg-body-intense opacity-70",
|
@@ -8647,163 +8336,110 @@ var modalStyles = tv({
|
|
8647
8336
|
}
|
8648
8337
|
]
|
8649
8338
|
});
|
8650
|
-
var Modal = (
|
8651
|
-
|
8652
|
-
|
8653
|
-
|
8654
|
-
|
8655
|
-
|
8656
|
-
|
8657
|
-
"children",
|
8658
|
-
"kind",
|
8659
|
-
"className",
|
8660
|
-
"open"
|
8661
|
-
]);
|
8339
|
+
var Modal = ({
|
8340
|
+
children,
|
8341
|
+
kind = "dialog",
|
8342
|
+
className,
|
8343
|
+
open,
|
8344
|
+
...rest
|
8345
|
+
}) => {
|
8662
8346
|
const { overlay } = modalStyles({ kind });
|
8663
|
-
return open ? /* @__PURE__ */ React32.createElement("div",
|
8347
|
+
return open ? /* @__PURE__ */ React32.createElement("div", { ...rest, className: overlay({ className }) }, children) : null;
|
8664
8348
|
};
|
8665
|
-
Modal.BackDrop = (
|
8666
|
-
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
8349
|
+
Modal.BackDrop = ({ className, ...rest }) => {
|
8667
8350
|
const { backdrop } = modalStyles();
|
8668
|
-
return /* @__PURE__ */ React32.createElement("div",
|
8351
|
+
return /* @__PURE__ */ React32.createElement("div", { ...rest, className: backdrop({ className }) });
|
8669
8352
|
};
|
8670
8353
|
Modal.Dialog = React32.forwardRef(
|
8671
|
-
(
|
8672
|
-
var _b = _a, { kind = "dialog", children, className, size = "md" } = _b, rest = __objRest(_b, ["kind", "children", "className", "size"]);
|
8354
|
+
({ kind = "dialog", children, className, size = "md", ...rest }, ref) => {
|
8673
8355
|
const { dialog } = modalStyles({ kind, size });
|
8674
|
-
return /* @__PURE__ */ React32.createElement("div",
|
8356
|
+
return /* @__PURE__ */ React32.createElement("div", { ref, "aria-modal": "true", ...rest, className: dialog({ className }) }, children);
|
8675
8357
|
}
|
8676
8358
|
);
|
8677
|
-
Modal.Header = (
|
8678
|
-
var _b = _a, { kind = "dialog", size = "md", children, className } = _b, rest = __objRest(_b, ["kind", "size", "children", "className"]);
|
8359
|
+
Modal.Header = ({ kind = "dialog", size = "md", children, className, ...rest }) => {
|
8679
8360
|
const { header } = modalStyles({ kind, size });
|
8680
|
-
return /* @__PURE__ */ React32.createElement("div",
|
8361
|
+
return /* @__PURE__ */ React32.createElement("div", { ...rest, className: header({ className }) }, children);
|
8681
8362
|
};
|
8682
|
-
Modal.HeaderImage = (
|
8683
|
-
var _b = _a, { backgroundImage, className } = _b, rest = __objRest(_b, ["backgroundImage", "className"]);
|
8363
|
+
Modal.HeaderImage = ({ backgroundImage, className, ...rest }) => {
|
8684
8364
|
const { headerImage } = modalStyles({ backgroundImage: Boolean(backgroundImage) });
|
8685
|
-
return backgroundImage ? /* @__PURE__ */ React32.createElement("img",
|
8365
|
+
return backgroundImage ? /* @__PURE__ */ React32.createElement("img", { "aria-hidden": true, src: backgroundImage, ...rest, className: headerImage({ className }) }) : /* @__PURE__ */ React32.createElement("div", { className: headerImage({ className }) });
|
8686
8366
|
};
|
8687
|
-
Modal.CloseButtonContainer = (
|
8688
|
-
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
8367
|
+
Modal.CloseButtonContainer = ({ className, ...rest }) => {
|
8689
8368
|
const { closeButtonContainer } = modalStyles();
|
8690
|
-
return /* @__PURE__ */ React32.createElement("div",
|
8369
|
+
return /* @__PURE__ */ React32.createElement("div", { ...rest, className: closeButtonContainer({ className }) });
|
8691
8370
|
};
|
8692
|
-
Modal.Title = (
|
8693
|
-
var _b = _a, { kind = "dialog", children, className } = _b, rest = __objRest(_b, ["kind", "children", "className"]);
|
8371
|
+
Modal.Title = ({ kind = "dialog", children, className, ...rest }) => {
|
8694
8372
|
const { title } = modalStyles({ kind });
|
8695
|
-
return /* @__PURE__ */ React32.createElement(Typography,
|
8696
|
-
};
|
8697
|
-
Modal.Subtitle = (_a) => {
|
8698
|
-
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
8699
|
-
return /* @__PURE__ */ React32.createElement(Typography, __spreadValues({ variant: "small", color: "default" }, rest), children);
|
8373
|
+
return /* @__PURE__ */ React32.createElement(Typography, { htmlTag: "h2", variant: "subheading", color: "intense", className: title({ className }), ...rest }, children);
|
8700
8374
|
};
|
8701
|
-
Modal.
|
8702
|
-
|
8375
|
+
Modal.Subtitle = ({ children, ...rest }) => /* @__PURE__ */ React32.createElement(Typography, { variant: "small", color: "default", ...rest }, children);
|
8376
|
+
Modal.TitleContainer = ({ children, className, ...rest }) => {
|
8703
8377
|
const { titleContainer } = modalStyles();
|
8704
|
-
return /* @__PURE__ */ React32.createElement("div",
|
8378
|
+
return /* @__PURE__ */ React32.createElement("div", { ...rest, className: titleContainer({ className }) }, children);
|
8705
8379
|
};
|
8706
|
-
Modal.Body = (
|
8707
|
-
var _b = _a, { children, className, noFooter = false, maxHeight, style } = _b, rest = __objRest(_b, ["children", "className", "noFooter", "maxHeight", "style"]);
|
8380
|
+
Modal.Body = ({ children, className, noFooter = false, maxHeight, style, ...rest }) => {
|
8708
8381
|
const { body } = modalStyles();
|
8709
|
-
return /* @__PURE__ */ React32.createElement("div",
|
8382
|
+
return /* @__PURE__ */ React32.createElement("div", { ...rest, className: body({ noFooter, className }), style: { maxHeight, ...style } }, children);
|
8710
8383
|
};
|
8711
|
-
Modal.Footer = (
|
8712
|
-
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
8384
|
+
Modal.Footer = ({ children, className, ...rest }) => {
|
8713
8385
|
const { footer } = modalStyles();
|
8714
|
-
return /* @__PURE__ */ React32.createElement("div",
|
8386
|
+
return /* @__PURE__ */ React32.createElement("div", { ...rest, className: footer({ className }) }, children);
|
8715
8387
|
};
|
8716
|
-
Modal.Actions = (
|
8717
|
-
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
8388
|
+
Modal.Actions = ({ children, className, ...rest }) => {
|
8718
8389
|
const { actions } = modalStyles();
|
8719
|
-
return /* @__PURE__ */ React32.createElement("div",
|
8390
|
+
return /* @__PURE__ */ React32.createElement("div", { ...rest, className: actions({ className }) }, children);
|
8720
8391
|
};
|
8721
8392
|
|
8722
8393
|
// src/atoms/Navigation/Navigation.tsx
|
8723
8394
|
import React33 from "react";
|
8724
|
-
var Navigation = (
|
8725
|
-
|
8726
|
-
|
8727
|
-
|
8728
|
-
|
8729
|
-
|
8730
|
-
|
8731
|
-
|
8732
|
-
|
8733
|
-
|
8734
|
-
|
8735
|
-
};
|
8736
|
-
var
|
8737
|
-
|
8738
|
-
|
8739
|
-
|
8740
|
-
|
8741
|
-
|
8742
|
-
|
8743
|
-
|
8744
|
-
|
8745
|
-
|
8746
|
-
|
8747
|
-
|
8748
|
-
|
8749
|
-
|
8750
|
-
|
8751
|
-
|
8752
|
-
|
8753
|
-
|
8754
|
-
|
8755
|
-
|
8756
|
-
|
8757
|
-
|
8758
|
-
|
8759
|
-
|
8760
|
-
|
8761
|
-
|
8762
|
-
|
8763
|
-
|
8764
|
-
|
8765
|
-
|
8766
|
-
|
8767
|
-
|
8768
|
-
|
8769
|
-
|
8770
|
-
|
8771
|
-
|
8772
|
-
)
|
8773
|
-
})
|
8774
|
-
));
|
8775
|
-
};
|
8776
|
-
var Submenu = (_a) => {
|
8777
|
-
var _b = _a, {
|
8778
|
-
children,
|
8779
|
-
className,
|
8780
|
-
title,
|
8781
|
-
id
|
8782
|
-
} = _b, rest = __objRest(_b, [
|
8783
|
-
"children",
|
8784
|
-
"className",
|
8785
|
-
"title",
|
8786
|
-
"id"
|
8787
|
-
]);
|
8788
|
-
return /* @__PURE__ */ React33.createElement("li", { role: "presentation" }, /* @__PURE__ */ React33.createElement(
|
8789
|
-
"a",
|
8790
|
-
__spreadValues({
|
8791
|
-
role: "menuitem",
|
8792
|
-
"aria-haspopup": "true",
|
8793
|
-
href: "#",
|
8794
|
-
id,
|
8795
|
-
className: classNames(
|
8796
|
-
tw("py-3 pr-6 pl-3 hover:bg-default cursor-pointer typography-small focusable flex items-center w-full"),
|
8797
|
-
className
|
8798
|
-
)
|
8799
|
-
}, rest),
|
8800
|
-
title
|
8801
|
-
), /* @__PURE__ */ React33.createElement("ul", { role: "menu", className: classNames(tw("flex flex-col")), "aria-labelledby": id }, children));
|
8802
|
-
};
|
8803
|
-
var SubmenuItem = (_a) => {
|
8804
|
-
var _b = _a, { className, active } = _b, rest = __objRest(_b, ["className", "active"]);
|
8805
|
-
return /* @__PURE__ */ React33.createElement(Navigation.Item, __spreadProps(__spreadValues({}, rest), { active, className: classNames(className, tw("pl-[56px]")) }));
|
8806
|
-
};
|
8395
|
+
var Navigation = ({
|
8396
|
+
className,
|
8397
|
+
children,
|
8398
|
+
"aria-label": ariaLabel,
|
8399
|
+
...rest
|
8400
|
+
}) => /* @__PURE__ */ React33.createElement("nav", { className: classNames(tw("bg-muted h-full")), "aria-label": ariaLabel }, /* @__PURE__ */ React33.createElement("ul", { ...rest, className: classNames(tw("flex flex-col h-full"), className), role: "menubar" }, children));
|
8401
|
+
var Header = ({ className, ...rest }) => /* @__PURE__ */ React33.createElement("li", { ...rest, role: "presentation", className: classNames(tw("px-6 py-5"), className) });
|
8402
|
+
var Title2 = ({ className, ...props }) => /* @__PURE__ */ React33.createElement(Typography, { variant: "caption", className: classNames("uppercase text-muted", className), ...props });
|
8403
|
+
var Subtitle = ({ className, ...props }) => /* @__PURE__ */ React33.createElement(Typography, { variant: "small-strong", className: classNames("text-intense", className), ...props });
|
8404
|
+
var Footer = ({ className, ...rest }) => /* @__PURE__ */ React33.createElement("li", { ...rest, role: "presentation", className: classNames(tw("px-6 py-5 mt-auto"), className) });
|
8405
|
+
var Section = ({ title, className, ...rest }) => /* @__PURE__ */ React33.createElement("li", { role: "presentation", className: tw("py-5") }, title && /* @__PURE__ */ React33.createElement("div", { className: classNames(className, "py-2 px-6 text-inactive uppercase cursor-default typography-caption") }, title), /* @__PURE__ */ React33.createElement("ul", { ...rest, role: "group", className: classNames(tw("flex flex-col"), className) }));
|
8406
|
+
var Divider = ({ className, ...rest }) => /* @__PURE__ */ React33.createElement("li", { "aria-hidden": true, ...rest, className: classNames(tw("border-t-2 border-muted"), className) });
|
8407
|
+
var Item3 = ({ className, active, ...rest }) => /* @__PURE__ */ React33.createElement("li", { role: "presentation" }, /* @__PURE__ */ React33.createElement(
|
8408
|
+
"a",
|
8409
|
+
{
|
8410
|
+
...rest,
|
8411
|
+
role: "menuitem",
|
8412
|
+
className: classNames(
|
8413
|
+
tw("py-3 px-6 hover:bg-default cursor-pointer flex gap-4 items-center typography-small focusable", {
|
8414
|
+
"text-default": !active,
|
8415
|
+
"text-primary-intense": !!active
|
8416
|
+
}),
|
8417
|
+
className
|
8418
|
+
)
|
8419
|
+
}
|
8420
|
+
));
|
8421
|
+
var Submenu = ({
|
8422
|
+
children,
|
8423
|
+
className,
|
8424
|
+
title,
|
8425
|
+
id,
|
8426
|
+
...rest
|
8427
|
+
}) => /* @__PURE__ */ React33.createElement("li", { role: "presentation" }, /* @__PURE__ */ React33.createElement(
|
8428
|
+
"a",
|
8429
|
+
{
|
8430
|
+
role: "menuitem",
|
8431
|
+
"aria-haspopup": "true",
|
8432
|
+
href: "#",
|
8433
|
+
id,
|
8434
|
+
className: classNames(
|
8435
|
+
tw("py-3 pr-6 pl-3 hover:bg-default cursor-pointer typography-small focusable flex items-center w-full"),
|
8436
|
+
className
|
8437
|
+
),
|
8438
|
+
...rest
|
8439
|
+
},
|
8440
|
+
title
|
8441
|
+
), /* @__PURE__ */ React33.createElement("ul", { role: "menu", className: classNames(tw("flex flex-col")), "aria-labelledby": id }, children));
|
8442
|
+
var SubmenuItem = ({ className, active, ...rest }) => /* @__PURE__ */ React33.createElement(Navigation.Item, { ...rest, active, className: classNames(className, tw("pl-[56px]")) });
|
8807
8443
|
Header.Title = Title2;
|
8808
8444
|
Header.Subtitle = Subtitle;
|
8809
8445
|
Submenu.Item = SubmenuItem;
|
@@ -8816,63 +8452,41 @@ Navigation.Divider = Divider;
|
|
8816
8452
|
|
8817
8453
|
// src/atoms/PageHeader/PageHeader.tsx
|
8818
8454
|
import React34 from "react";
|
8819
|
-
var PageHeader = (
|
8820
|
-
|
8821
|
-
|
8822
|
-
}
|
8823
|
-
|
8824
|
-
|
8825
|
-
|
8826
|
-
|
8827
|
-
|
8828
|
-
|
8829
|
-
|
8830
|
-
|
8831
|
-
|
8832
|
-
|
8833
|
-
|
8834
|
-
|
8835
|
-
__spreadProps(__spreadValues({}, rest), {
|
8836
|
-
color: "intense",
|
8837
|
-
variant: isSubHeader ? "subheading" : "heading",
|
8838
|
-
htmlTag: isSubHeader ? "h2" : "h1"
|
8839
|
-
}),
|
8840
|
-
children
|
8841
|
-
);
|
8842
|
-
};
|
8843
|
-
PageHeader.Subtitle = (_a) => {
|
8844
|
-
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
8845
|
-
return /* @__PURE__ */ React34.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), { color: "default" }), children);
|
8846
|
-
};
|
8847
|
-
PageHeader.Chips = (_a) => {
|
8848
|
-
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
8849
|
-
return /* @__PURE__ */ React34.createElement("div", __spreadValues({ className: classNames(tw("flex gap-3"), className) }, rest), children);
|
8850
|
-
};
|
8851
|
-
PageHeader.Actions = (_a) => {
|
8852
|
-
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
8853
|
-
return /* @__PURE__ */ React34.createElement("div", __spreadValues({ className: classNames(tw("flex flex-row gap-4 self-start"), className) }, rest), children);
|
8854
|
-
};
|
8455
|
+
var PageHeader = ({ children, className, ...rest }) => /* @__PURE__ */ React34.createElement("div", { className: classNames(tw("flex flex-row gap-4 pb-6"), className), ...rest }, children);
|
8456
|
+
PageHeader.Container = ({ children, className, ...rest }) => /* @__PURE__ */ React34.createElement("div", { className: classNames(tw("flex flex-col grow gap-0"), className), ...rest }, children);
|
8457
|
+
PageHeader.TitleContainer = ({ children, className, ...rest }) => /* @__PURE__ */ React34.createElement("div", { className: classNames(tw("flex flex-col justify-center gap-2"), className), ...rest }, children);
|
8458
|
+
PageHeader.Title = ({ isSubHeader = false, children, ...rest }) => /* @__PURE__ */ React34.createElement(
|
8459
|
+
Typography2,
|
8460
|
+
{
|
8461
|
+
...rest,
|
8462
|
+
color: "intense",
|
8463
|
+
variant: isSubHeader ? "subheading" : "heading",
|
8464
|
+
htmlTag: isSubHeader ? "h2" : "h1"
|
8465
|
+
},
|
8466
|
+
children
|
8467
|
+
);
|
8468
|
+
PageHeader.Subtitle = ({ children, ...rest }) => /* @__PURE__ */ React34.createElement(Typography2.Small, { ...rest, color: "default" }, children);
|
8469
|
+
PageHeader.Chips = ({ children, className, ...rest }) => /* @__PURE__ */ React34.createElement("div", { className: classNames(tw("flex gap-3"), className), ...rest }, children);
|
8470
|
+
PageHeader.Actions = ({ children, className, ...rest }) => /* @__PURE__ */ React34.createElement("div", { className: classNames(tw("flex flex-row gap-4 self-start"), className), ...rest }, children);
|
8855
8471
|
|
8856
8472
|
// src/atoms/Popover/Popover.tsx
|
8857
8473
|
import React35 from "react";
|
8858
|
-
var PopoverPanel = React35.forwardRef((
|
8859
|
-
|
8860
|
-
|
8861
|
-
|
8862
|
-
|
8863
|
-
|
8864
|
-
|
8865
|
-
|
8866
|
-
tw(
|
8867
|
-
"rounded-sm shadow-16dp bg-popover-content mt-1 overflow-y-auto flex flex-col border border-default outline-none"
|
8868
|
-
)
|
8474
|
+
var PopoverPanel = React35.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React35.createElement(
|
8475
|
+
"div",
|
8476
|
+
{
|
8477
|
+
ref,
|
8478
|
+
className: classNames(
|
8479
|
+
className,
|
8480
|
+
tw(
|
8481
|
+
"rounded-sm shadow-16dp bg-popover-content mt-1 overflow-y-auto flex flex-col border border-default outline-none"
|
8869
8482
|
)
|
8870
|
-
|
8871
|
-
|
8872
|
-
|
8873
|
-
|
8483
|
+
),
|
8484
|
+
...props
|
8485
|
+
},
|
8486
|
+
children
|
8487
|
+
));
|
8874
8488
|
PopoverPanel.displayName = "Popover.Panel";
|
8875
|
-
var PopoverUnderlay = React35.forwardRef((props, ref) => /* @__PURE__ */ React35.createElement("div",
|
8489
|
+
var PopoverUnderlay = React35.forwardRef((props, ref) => /* @__PURE__ */ React35.createElement("div", { ref, ...props, className: tw("fixed inset-0") }));
|
8876
8490
|
PopoverUnderlay.displayName = "Popover.Underlay";
|
8877
8491
|
var Popover = {
|
8878
8492
|
Panel: PopoverPanel,
|
@@ -8881,26 +8495,11 @@ var Popover = {
|
|
8881
8495
|
|
8882
8496
|
// src/atoms/PopoverDialog/PopoverDialog.tsx
|
8883
8497
|
import React36 from "react";
|
8884
|
-
var Header2 = (
|
8885
|
-
|
8886
|
-
|
8887
|
-
};
|
8888
|
-
var
|
8889
|
-
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
8890
|
-
return /* @__PURE__ */ React36.createElement(Typography, __spreadProps(__spreadValues({}, rest), { htmlTag: "h1", variant: "small-strong" }), children);
|
8891
|
-
};
|
8892
|
-
var Body = (_a) => {
|
8893
|
-
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
8894
|
-
return /* @__PURE__ */ React36.createElement(Typography, __spreadProps(__spreadValues({}, rest), { htmlTag: "div", variant: "caption", className: classNames(tw("px-5 overflow-y-auto"), className) }), children);
|
8895
|
-
};
|
8896
|
-
var Footer2 = (_a) => {
|
8897
|
-
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
8898
|
-
return /* @__PURE__ */ React36.createElement("div", __spreadProps(__spreadValues({}, rest), { className: classNames(tw("p-5"), className) }), children);
|
8899
|
-
};
|
8900
|
-
var Actions2 = (_a) => {
|
8901
|
-
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
8902
|
-
return /* @__PURE__ */ React36.createElement("div", __spreadProps(__spreadValues({}, rest), { className: classNames(tw("flex gap-4"), className) }), children);
|
8903
|
-
};
|
8498
|
+
var Header2 = ({ children, className, ...rest }) => /* @__PURE__ */ React36.createElement("div", { ...rest, className: classNames(tw("p-5 gap-3 flex items-center"), className) }, children);
|
8499
|
+
var Title3 = ({ children, className, ...rest }) => /* @__PURE__ */ React36.createElement(Typography, { ...rest, htmlTag: "h1", variant: "small-strong" }, children);
|
8500
|
+
var Body = ({ children, className, ...rest }) => /* @__PURE__ */ React36.createElement(Typography, { ...rest, htmlTag: "div", variant: "caption", className: classNames(tw("px-5 overflow-y-auto"), className) }, children);
|
8501
|
+
var Footer2 = ({ children, className, ...rest }) => /* @__PURE__ */ React36.createElement("div", { ...rest, className: classNames(tw("p-5"), className) }, children);
|
8502
|
+
var Actions2 = ({ children, className, ...rest }) => /* @__PURE__ */ React36.createElement("div", { ...rest, className: classNames(tw("flex gap-4"), className) }, children);
|
8904
8503
|
var PopoverDialog = {
|
8905
8504
|
Header: Header2,
|
8906
8505
|
Title: Title3,
|
@@ -8912,28 +8511,26 @@ var PopoverDialog = {
|
|
8912
8511
|
// src/atoms/ProgressBar/ProgressBar.tsx
|
8913
8512
|
import React37 from "react";
|
8914
8513
|
import { clamp } from "lodash-es";
|
8915
|
-
var ProgressBar = (
|
8916
|
-
|
8917
|
-
|
8918
|
-
|
8919
|
-
|
8920
|
-
|
8921
|
-
|
8922
|
-
|
8923
|
-
);
|
8924
|
-
};
|
8514
|
+
var ProgressBar = ({ children, className, ...rest }) => /* @__PURE__ */ React37.createElement(
|
8515
|
+
"div",
|
8516
|
+
{
|
8517
|
+
...rest,
|
8518
|
+
className: classNames(tw("relative flex items-center w-full bg-muted h-2 rounded-full overflow-hidden"), className)
|
8519
|
+
},
|
8520
|
+
children
|
8521
|
+
);
|
8925
8522
|
var STATUS_COLORS = {
|
8926
8523
|
info: tw("bg-info-default"),
|
8927
8524
|
warning: tw("bg-warning-default"),
|
8928
8525
|
success: tw("bg-success-default"),
|
8929
8526
|
error: tw("bg-danger-intense")
|
8930
8527
|
};
|
8931
|
-
ProgressBar.Indicator = (
|
8932
|
-
var _b = _a, { min, max, value, "aria-label": ariaLabel, status, className } = _b, rest = __objRest(_b, ["min", "max", "value", "aria-label", "status", "className"]);
|
8528
|
+
ProgressBar.Indicator = ({ min, max, value, "aria-label": ariaLabel, status, className, ...rest }) => {
|
8933
8529
|
const completedPercentage = clamp((value - min) / (max - min) * 100, 0, 100);
|
8934
8530
|
return /* @__PURE__ */ React37.createElement(
|
8935
8531
|
"div",
|
8936
|
-
|
8532
|
+
{
|
8533
|
+
...rest,
|
8937
8534
|
className: classNames(
|
8938
8535
|
tw("h-2 rounded-full transition-all ease-in-out delay-150"),
|
8939
8536
|
STATUS_COLORS[status],
|
@@ -8945,77 +8542,53 @@ ProgressBar.Indicator = (_a) => {
|
|
8945
8542
|
"aria-valuenow": value,
|
8946
8543
|
"aria-valuemin": min,
|
8947
8544
|
"aria-valuemax": max
|
8948
|
-
}
|
8545
|
+
}
|
8949
8546
|
);
|
8950
8547
|
};
|
8951
|
-
ProgressBar.Labels = (
|
8952
|
-
var _b = _a, { children, startLabel, endLabel, className } = _b, rest = __objRest(_b, ["children", "startLabel", "endLabel", "className"]);
|
8953
|
-
return /* @__PURE__ */ React37.createElement("div", { className: classNames(tw("flex flex-row"), className) }, /* @__PURE__ */ React37.createElement("span", __spreadProps(__spreadValues({}, rest), { className: tw("grow text-default typography-caption") }), startLabel), /* @__PURE__ */ React37.createElement("span", __spreadProps(__spreadValues({}, rest), { className: tw("grow text-default typography-caption text-right") }), endLabel));
|
8954
|
-
};
|
8548
|
+
ProgressBar.Labels = ({ children, startLabel, endLabel, className, ...rest }) => /* @__PURE__ */ React37.createElement("div", { className: classNames(tw("flex flex-row"), className) }, /* @__PURE__ */ React37.createElement("span", { ...rest, className: tw("grow text-default typography-caption") }, startLabel), /* @__PURE__ */ React37.createElement("span", { ...rest, className: tw("grow text-default typography-caption text-right") }, endLabel));
|
8955
8549
|
|
8956
8550
|
// src/atoms/Section/Section.tsx
|
8957
8551
|
import React38 from "react";
|
8958
8552
|
var import_caretUp2 = __toESM(require_caretUp());
|
8959
|
-
var Section2 = (
|
8960
|
-
|
8961
|
-
|
8962
|
-
|
8963
|
-
|
8964
|
-
|
8965
|
-
|
8966
|
-
|
8967
|
-
|
8968
|
-
|
8969
|
-
|
8970
|
-
|
8971
|
-
|
8553
|
+
var Section2 = ({
|
8554
|
+
children,
|
8555
|
+
className,
|
8556
|
+
...rest
|
8557
|
+
}) => /* @__PURE__ */ React38.createElement(Box, { component: "section", ...rest, className: classNames(tw("border border-muted"), className) }, children);
|
8558
|
+
Section2.Header = ({ children, className, expanded, ...rest }) => /* @__PURE__ */ React38.createElement(
|
8559
|
+
"div",
|
8560
|
+
{
|
8561
|
+
...rest,
|
8562
|
+
className: classNames(
|
8563
|
+
tw("px-6 flex gap-5 justify-between items-center h-[72px]", {
|
8564
|
+
"bg-muted": expanded
|
8565
|
+
}),
|
8566
|
+
className
|
8567
|
+
)
|
8568
|
+
},
|
8569
|
+
children
|
8570
|
+
);
|
8571
|
+
Section2.TitleContainer = React38.forwardRef(
|
8572
|
+
({ children, className, collapsible, ...rest }, ref) => /* @__PURE__ */ React38.createElement(
|
8972
8573
|
"div",
|
8973
|
-
|
8574
|
+
{
|
8575
|
+
...rest,
|
8576
|
+
ref,
|
8974
8577
|
className: classNames(
|
8975
|
-
tw("
|
8976
|
-
"
|
8578
|
+
tw("grow grid grid-cols-[auto_1fr] gap-x-3 items-center", {
|
8579
|
+
"cursor-pointer focus:outline-none focusable": collapsible
|
8977
8580
|
}),
|
8978
8581
|
className
|
8979
8582
|
)
|
8980
|
-
}
|
8583
|
+
},
|
8981
8584
|
children
|
8982
|
-
)
|
8983
|
-
};
|
8984
|
-
Section2.TitleContainer = React38.forwardRef(
|
8985
|
-
(_a, ref) => {
|
8986
|
-
var _b = _a, { children, className, collapsible } = _b, rest = __objRest(_b, ["children", "className", "collapsible"]);
|
8987
|
-
return /* @__PURE__ */ React38.createElement(
|
8988
|
-
"div",
|
8989
|
-
__spreadProps(__spreadValues({}, rest), {
|
8990
|
-
ref,
|
8991
|
-
className: classNames(
|
8992
|
-
tw("grow grid grid-cols-[auto_1fr] gap-x-3 items-center", {
|
8993
|
-
"cursor-pointer focus:outline-none focusable": collapsible
|
8994
|
-
}),
|
8995
|
-
className
|
8996
|
-
)
|
8997
|
-
}),
|
8998
|
-
children
|
8999
|
-
);
|
9000
|
-
}
|
8585
|
+
)
|
9001
8586
|
);
|
9002
|
-
Section2.Toggle = (props) => /* @__PURE__ */ React38.createElement(Icon,
|
9003
|
-
Section2.Title = (
|
9004
|
-
|
9005
|
-
|
9006
|
-
};
|
9007
|
-
Section2.Subtitle = (_a) => {
|
9008
|
-
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
9009
|
-
return /* @__PURE__ */ React38.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), { color: "default" }), children);
|
9010
|
-
};
|
9011
|
-
Section2.Actions = (_a) => {
|
9012
|
-
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
9013
|
-
return /* @__PURE__ */ React38.createElement("div", __spreadProps(__spreadValues({}, rest), { className: classNames(tw("flex gap-4 justify-end"), className) }), children);
|
9014
|
-
};
|
9015
|
-
Section2.Body = (_a) => {
|
9016
|
-
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
9017
|
-
return /* @__PURE__ */ React38.createElement("div", __spreadProps(__spreadValues({}, rest), { className: classNames(tw("p-6"), className) }), /* @__PURE__ */ React38.createElement(Typography, { htmlTag: "div", color: "default" }, children));
|
9018
|
-
};
|
8587
|
+
Section2.Toggle = (props) => /* @__PURE__ */ React38.createElement(Icon, { ...props, icon: import_caretUp2.default, height: 22, width: 22 });
|
8588
|
+
Section2.Title = ({ children, ...rest }) => /* @__PURE__ */ React38.createElement(Typography2.Large, { ...rest, htmlTag: "h2", color: "intense", className: "flex gap-3 items-center" }, children);
|
8589
|
+
Section2.Subtitle = ({ children, ...rest }) => /* @__PURE__ */ React38.createElement(Typography2.Small, { ...rest, color: "default" }, children);
|
8590
|
+
Section2.Actions = ({ children, className, ...rest }) => /* @__PURE__ */ React38.createElement("div", { ...rest, className: classNames(tw("flex gap-4 justify-end"), className) }, children);
|
8591
|
+
Section2.Body = ({ children, className, ...rest }) => /* @__PURE__ */ React38.createElement("div", { ...rest, className: classNames(tw("p-6"), className) }, /* @__PURE__ */ React38.createElement(Typography, { htmlTag: "div", color: "default" }, children));
|
9019
8592
|
|
9020
8593
|
// src/atoms/Select/Select.tsx
|
9021
8594
|
import React39 from "react";
|
@@ -9024,172 +8597,146 @@ var import_chevronUp4 = __toESM(require_chevronUp());
|
|
9024
8597
|
var import_search2 = __toESM(require_search());
|
9025
8598
|
var import_tick4 = __toESM(require_tick());
|
9026
8599
|
function getOptionLabelBuiltin(option) {
|
9027
|
-
var _a;
|
9028
8600
|
if (option === null) {
|
9029
8601
|
return "";
|
9030
8602
|
}
|
9031
8603
|
if (typeof option === "string") {
|
9032
8604
|
return option;
|
9033
8605
|
}
|
9034
|
-
return
|
8606
|
+
return option.label ?? "";
|
9035
8607
|
}
|
9036
8608
|
function isOptionDisabledBuiltin(option) {
|
9037
8609
|
return !!option.disabled;
|
9038
8610
|
}
|
9039
8611
|
var getValues = (children) => {
|
9040
|
-
|
9041
|
-
|
9042
|
-
var _a2;
|
9043
|
-
return (_a2 = c == null ? void 0 : c.props) == null ? void 0 : _a2.value;
|
9044
|
-
});
|
9045
|
-
return (_a = values == null ? void 0 : values.filter((v) => v !== void 0 && v !== null)) != null ? _a : [];
|
8612
|
+
const values = React39.Children.map(children, (c) => c?.props?.value);
|
8613
|
+
return values?.filter((v) => v !== void 0 && v !== null) ?? [];
|
9046
8614
|
};
|
9047
8615
|
var InputContainer = React39.forwardRef(
|
9048
|
-
(
|
9049
|
-
|
9050
|
-
|
9051
|
-
"div",
|
9052
|
-
__spreadValues({
|
9053
|
-
ref,
|
9054
|
-
className: classNames(
|
9055
|
-
className,
|
9056
|
-
"relative rounded-sm typography-default-strong w-full flex flex-row items-center focus-visible:outline-0 focus-visible:border-info-default group",
|
9057
|
-
{
|
9058
|
-
"border px-3 py-[6px]": variant !== "readOnly",
|
9059
|
-
"cursor-default": variant === "readOnly",
|
9060
|
-
"border-default": variant !== "error" && variant !== "readOnly",
|
9061
|
-
"border-danger-default": variant === "error",
|
9062
|
-
"hover:border-intense": variant !== "error" && variant !== "disabled" && variant !== "focused",
|
9063
|
-
"border-info-default": variant === "focused",
|
9064
|
-
"bg-body": variant !== "disabled",
|
9065
|
-
"cursor-not-allowed border-default bg-default": variant === "disabled"
|
9066
|
-
}
|
9067
|
-
)
|
9068
|
-
}, props)
|
9069
|
-
);
|
9070
|
-
}
|
9071
|
-
);
|
9072
|
-
var Input = React39.forwardRef((_a, ref) => {
|
9073
|
-
var _b = _a, { className, required } = _b, props = __objRest(_b, ["className", "required"]);
|
9074
|
-
return /* @__PURE__ */ React39.createElement(
|
9075
|
-
"input",
|
9076
|
-
__spreadValues({
|
8616
|
+
({ variant = "default", className, ...props }, ref) => /* @__PURE__ */ React39.createElement(
|
8617
|
+
"div",
|
8618
|
+
{
|
9077
8619
|
ref,
|
9078
|
-
type: "text",
|
9079
|
-
"aria-required": required,
|
9080
8620
|
className: classNames(
|
9081
8621
|
className,
|
9082
|
-
"
|
8622
|
+
"relative rounded-sm typography-default-strong w-full flex flex-row items-center focus-visible:outline-0 focus-visible:border-info-default group",
|
8623
|
+
// group is used for <Combobox />'s clear selection button
|
9083
8624
|
{
|
9084
|
-
"
|
9085
|
-
"
|
9086
|
-
"
|
9087
|
-
"
|
8625
|
+
"border px-3 py-[6px]": variant !== "readOnly",
|
8626
|
+
"cursor-default": variant === "readOnly",
|
8627
|
+
"border-default": variant !== "error" && variant !== "readOnly",
|
8628
|
+
"border-danger-default": variant === "error",
|
8629
|
+
"hover:border-intense": variant !== "error" && variant !== "disabled" && variant !== "focused",
|
8630
|
+
"border-info-default": variant === "focused",
|
8631
|
+
"bg-body": variant !== "disabled",
|
8632
|
+
"cursor-not-allowed border-default bg-default": variant === "disabled"
|
9088
8633
|
}
|
9089
|
-
)
|
9090
|
-
|
9091
|
-
|
9092
|
-
|
9093
|
-
var Menu = React39.forwardRef(
|
9094
|
-
(_a, ref) => {
|
9095
|
-
var _b = _a, { maxHeight = "450px", className, children } = _b, props = __objRest(_b, ["maxHeight", "className", "children"]);
|
9096
|
-
return /* @__PURE__ */ React39.createElement(
|
9097
|
-
"ul",
|
9098
|
-
__spreadValues({
|
9099
|
-
ref,
|
9100
|
-
style: { maxHeight },
|
9101
|
-
className: classNames(className, tw("text-default bg-body overflow-y-auto"))
|
9102
|
-
}, props),
|
9103
|
-
children
|
9104
|
-
);
|
9105
|
-
}
|
8634
|
+
),
|
8635
|
+
...props
|
8636
|
+
}
|
8637
|
+
)
|
9106
8638
|
);
|
9107
|
-
var
|
9108
|
-
|
9109
|
-
|
9110
|
-
|
8639
|
+
var Input = React39.forwardRef(({ className, required, ...props }, ref) => /* @__PURE__ */ React39.createElement(
|
8640
|
+
"input",
|
8641
|
+
{
|
8642
|
+
ref,
|
8643
|
+
type: "text",
|
8644
|
+
"aria-required": required,
|
8645
|
+
className: classNames(
|
8646
|
+
className,
|
8647
|
+
"grow rounded border-0 focus:outline-none px-[1px] my-1 min-w-0 typography-small disabled:cursor-not-allowed disabled:bg-default placeholder:text-inactive",
|
8648
|
+
{
|
8649
|
+
"text-default": !props.disabled,
|
8650
|
+
"text-inactive": props.disabled,
|
8651
|
+
"bg-body": !props.readOnly,
|
8652
|
+
"cursor-default bg-transparent": props.readOnly
|
8653
|
+
}
|
8654
|
+
),
|
8655
|
+
...props
|
9111
8656
|
}
|
9112
|
-
);
|
9113
|
-
var
|
9114
|
-
|
9115
|
-
|
9116
|
-
|
9117
|
-
var Divider2 = (props) => /* @__PURE__ */ React39.createElement("div", __spreadValues({ className: tw("border-b-1 border-muted mx-3 my-4") }, props));
|
9118
|
-
var Group2 = React39.forwardRef((_a, ref) => {
|
9119
|
-
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
9120
|
-
return /* @__PURE__ */ React39.createElement(
|
9121
|
-
"li",
|
9122
|
-
__spreadValues({
|
8657
|
+
));
|
8658
|
+
var Menu = React39.forwardRef(
|
8659
|
+
({ maxHeight = "450px", className, children, ...props }, ref) => /* @__PURE__ */ React39.createElement(
|
8660
|
+
"ul",
|
8661
|
+
{
|
9123
8662
|
ref,
|
9124
|
-
|
9125
|
-
|
9126
|
-
|
9127
|
-
|
9128
|
-
}, props),
|
8663
|
+
style: { maxHeight },
|
8664
|
+
className: classNames(className, tw("text-default bg-body overflow-y-auto")),
|
8665
|
+
...props
|
8666
|
+
},
|
9129
8667
|
children
|
9130
|
-
)
|
9131
|
-
|
8668
|
+
)
|
8669
|
+
);
|
8670
|
+
var NoResults = React39.forwardRef(
|
8671
|
+
({ className, children, ...rest }, ref) => /* @__PURE__ */ React39.createElement("li", { ref, ...rest, className: classNames(tw("p-3 text-inactive typography-small"), className) }, children)
|
8672
|
+
);
|
8673
|
+
var EmptyStateContainer2 = React39.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React39.createElement("li", { ref, className: tw("border border-dashed border-default m-4 p-6"), ...props }, children));
|
8674
|
+
var Divider2 = (props) => /* @__PURE__ */ React39.createElement("div", { className: tw("border-b-1 border-muted mx-3 my-4"), ...props });
|
8675
|
+
var Group2 = React39.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React39.createElement(
|
8676
|
+
"li",
|
8677
|
+
{
|
8678
|
+
ref,
|
8679
|
+
className: classNames(
|
8680
|
+
className,
|
8681
|
+
"flex items-center gap-x-3 p-3 text-inactive uppercase cursor-default typography-caption mt-4 first:mt-0"
|
8682
|
+
),
|
8683
|
+
...props
|
8684
|
+
},
|
8685
|
+
children
|
8686
|
+
));
|
9132
8687
|
var endAdornmentSize = { width: 14, height: 14 };
|
9133
8688
|
var Item4 = React39.forwardRef(
|
9134
|
-
(
|
9135
|
-
|
9136
|
-
|
9137
|
-
|
9138
|
-
|
9139
|
-
|
9140
|
-
|
9141
|
-
|
9142
|
-
|
9143
|
-
|
9144
|
-
|
9145
|
-
|
9146
|
-
|
9147
|
-
|
9148
|
-
);
|
9149
|
-
}
|
8689
|
+
({ highlighted, selected, className, children, ...props }, ref) => /* @__PURE__ */ React39.createElement(
|
8690
|
+
"li",
|
8691
|
+
{
|
8692
|
+
ref,
|
8693
|
+
className: classNames(className, "flex items-center gap-x-3 p-3 typography-small", {
|
8694
|
+
"cursor-pointer hover:bg-muted": !props["aria-disabled"],
|
8695
|
+
"cursor-not-allowed opacity-40 grayscale": props["aria-disabled"],
|
8696
|
+
"bg-muted": highlighted
|
8697
|
+
}),
|
8698
|
+
...props
|
8699
|
+
},
|
8700
|
+
/* @__PURE__ */ React39.createElement("span", { className: tw("grow flex gap-x-3") }, children),
|
8701
|
+
selected ? /* @__PURE__ */ React39.createElement(InlineIcon, { icon: import_tick4.default, ...endAdornmentSize }) : /* @__PURE__ */ React39.createElement("div", { style: endAdornmentSize })
|
8702
|
+
)
|
9150
8703
|
);
|
9151
8704
|
var ActionItem = React39.forwardRef(
|
9152
|
-
(
|
9153
|
-
|
9154
|
-
|
9155
|
-
"li",
|
9156
|
-
__spreadValues({
|
9157
|
-
ref,
|
9158
|
-
role: "button",
|
9159
|
-
onClick: () => !props.disabled && onClick(),
|
9160
|
-
className: classNames(className, "flex items-center gap-x-3 typography-small", {
|
9161
|
-
"p-3": !dense,
|
9162
|
-
"px-3 py-2": dense,
|
9163
|
-
"text-primary-intense cursor-pointer hover:text-primary-default": !props.disabled,
|
9164
|
-
"text-inactive cursor-not-allowed": props.disabled
|
9165
|
-
})
|
9166
|
-
}, props),
|
9167
|
-
icon && /* @__PURE__ */ React39.createElement(InlineIcon, { icon }),
|
9168
|
-
children
|
9169
|
-
);
|
9170
|
-
}
|
9171
|
-
);
|
9172
|
-
var Toggle = React39.forwardRef((_a, ref) => {
|
9173
|
-
var _b = _a, { hasFocus, isOpen } = _b, props = __objRest(_b, ["hasFocus", "isOpen"]);
|
9174
|
-
var _a2;
|
9175
|
-
return /* @__PURE__ */ React39.createElement(
|
9176
|
-
"button",
|
9177
|
-
__spreadProps(__spreadValues({
|
8705
|
+
({ className, dense, icon, onClick, children, ...props }, ref) => /* @__PURE__ */ React39.createElement(
|
8706
|
+
"li",
|
8707
|
+
{
|
9178
8708
|
ref,
|
9179
|
-
|
9180
|
-
|
9181
|
-
|
9182
|
-
|
9183
|
-
|
9184
|
-
|
9185
|
-
|
9186
|
-
|
9187
|
-
|
9188
|
-
|
9189
|
-
|
9190
|
-
|
9191
|
-
)
|
9192
|
-
|
8709
|
+
role: "button",
|
8710
|
+
onClick: () => !props.disabled && onClick(),
|
8711
|
+
className: classNames(className, "flex items-center gap-x-3 typography-small", {
|
8712
|
+
"p-3": !dense,
|
8713
|
+
"px-3 py-2": dense,
|
8714
|
+
"text-primary-intense cursor-pointer hover:text-primary-default": !props.disabled,
|
8715
|
+
"text-inactive cursor-not-allowed": props.disabled
|
8716
|
+
}),
|
8717
|
+
...props
|
8718
|
+
},
|
8719
|
+
icon && /* @__PURE__ */ React39.createElement(InlineIcon, { icon }),
|
8720
|
+
children
|
8721
|
+
)
|
8722
|
+
);
|
8723
|
+
var Toggle = React39.forwardRef(({ hasFocus, isOpen, ...props }, ref) => /* @__PURE__ */ React39.createElement(
|
8724
|
+
"button",
|
8725
|
+
{
|
8726
|
+
ref,
|
8727
|
+
type: "button",
|
8728
|
+
"aria-label": "Toggle",
|
8729
|
+
...props,
|
8730
|
+
className: tw("grow-0 leading-none", { "cursor-not-allowed": props.disabled ?? false })
|
8731
|
+
},
|
8732
|
+
/* @__PURE__ */ React39.createElement(
|
8733
|
+
InlineIcon,
|
8734
|
+
{
|
8735
|
+
color: props.disabled ? "inactive" : "default",
|
8736
|
+
icon: hasFocus ? import_search2.default : isOpen ? import_chevronUp4.default : import_chevronDown5.default
|
8737
|
+
}
|
8738
|
+
)
|
8739
|
+
));
|
9193
8740
|
var Select = {
|
9194
8741
|
InputContainer,
|
9195
8742
|
Input,
|
@@ -9206,65 +8753,53 @@ var Select = {
|
|
9206
8753
|
// src/atoms/Stepper/Stepper.tsx
|
9207
8754
|
import React40 from "react";
|
9208
8755
|
var import_tick5 = __toESM(require_tick());
|
9209
|
-
var Stepper = (
|
9210
|
-
|
9211
|
-
|
9212
|
-
|
9213
|
-
|
9214
|
-
|
9215
|
-
|
9216
|
-
|
9217
|
-
|
9218
|
-
|
9219
|
-
|
9220
|
-
|
9221
|
-
|
9222
|
-
|
9223
|
-
|
9224
|
-
|
9225
|
-
|
9226
|
-
|
9227
|
-
|
9228
|
-
|
9229
|
-
|
9230
|
-
|
9231
|
-
|
9232
|
-
|
9233
|
-
|
9234
|
-
|
9235
|
-
|
9236
|
-
|
9237
|
-
|
9238
|
-
|
9239
|
-
|
9240
|
-
|
9241
|
-
|
9242
|
-
|
9243
|
-
|
9244
|
-
|
9245
|
-
|
9246
|
-
|
9247
|
-
|
9248
|
-
|
9249
|
-
|
9250
|
-
|
9251
|
-
|
9252
|
-
|
9253
|
-
|
9254
|
-
|
9255
|
-
|
9256
|
-
"div",
|
9257
|
-
__spreadProps(__spreadValues({}, rest), {
|
9258
|
-
className: classNames(
|
9259
|
-
tw("flex flex-col items-center relative text-center", {
|
9260
|
-
"text-intense": state !== "inactive",
|
9261
|
-
"text-inactive": state === "inactive"
|
9262
|
-
}),
|
9263
|
-
className
|
9264
|
-
)
|
9265
|
-
})
|
9266
|
-
);
|
9267
|
-
};
|
8756
|
+
var Stepper = ({ className, ...rest }) => /* @__PURE__ */ React40.createElement("div", { ...rest, className: classNames(className) });
|
8757
|
+
var ConnectorContainer = ({
|
8758
|
+
className,
|
8759
|
+
completed,
|
8760
|
+
dense,
|
8761
|
+
...rest
|
8762
|
+
}) => /* @__PURE__ */ React40.createElement(
|
8763
|
+
"div",
|
8764
|
+
{
|
8765
|
+
...rest,
|
8766
|
+
className: classNames(
|
8767
|
+
tw("absolute w-full -left-1/2", {
|
8768
|
+
"top-[3px] px-[14px]": Boolean(dense),
|
8769
|
+
"top-[14px] px-[20px]": !dense
|
8770
|
+
}),
|
8771
|
+
className
|
8772
|
+
)
|
8773
|
+
}
|
8774
|
+
);
|
8775
|
+
var Connector = ({ children, className, completed, dense, ...rest }) => /* @__PURE__ */ React40.createElement(
|
8776
|
+
"div",
|
8777
|
+
{
|
8778
|
+
...rest,
|
8779
|
+
className: classNames(
|
8780
|
+
tw("w-full", {
|
8781
|
+
"bg-intense": !completed,
|
8782
|
+
"bg-success-default": Boolean(completed),
|
8783
|
+
"h-[2px]": !dense,
|
8784
|
+
"h-[3px]": Boolean(dense)
|
8785
|
+
}),
|
8786
|
+
className
|
8787
|
+
)
|
8788
|
+
}
|
8789
|
+
);
|
8790
|
+
var Step = ({ className, state, ...rest }) => /* @__PURE__ */ React40.createElement(
|
8791
|
+
"div",
|
8792
|
+
{
|
8793
|
+
...rest,
|
8794
|
+
className: classNames(
|
8795
|
+
tw("flex flex-col items-center relative text-center", {
|
8796
|
+
"text-intense": state !== "inactive",
|
8797
|
+
"text-inactive": state === "inactive"
|
8798
|
+
}),
|
8799
|
+
className
|
8800
|
+
)
|
8801
|
+
}
|
8802
|
+
);
|
9268
8803
|
var getClassNames = (state) => tw("h-[32px] w-[32px] border-2", {
|
9269
8804
|
"border-intense": state === "active",
|
9270
8805
|
"border-default": state === "inactive",
|
@@ -9275,21 +8810,19 @@ var getDenseClassNames = (state) => tw("h-[8px] w-[8px]", {
|
|
9275
8810
|
"bg-intense": state === "inactive",
|
9276
8811
|
"text-success-default": state === "completed"
|
9277
8812
|
});
|
9278
|
-
var Indicator = (
|
9279
|
-
|
9280
|
-
|
9281
|
-
|
9282
|
-
|
9283
|
-
|
9284
|
-
|
9285
|
-
|
9286
|
-
|
9287
|
-
|
9288
|
-
|
9289
|
-
|
9290
|
-
|
9291
|
-
);
|
9292
|
-
};
|
8813
|
+
var Indicator = ({ children, className, state, dense, ...rest }) => /* @__PURE__ */ React40.createElement(
|
8814
|
+
"div",
|
8815
|
+
{
|
8816
|
+
...rest,
|
8817
|
+
className: classNames(
|
8818
|
+
"Aquarium-Stepper-Indicator",
|
8819
|
+
tw("rounded-full flex justify-center items-center mx-2 mb-3"),
|
8820
|
+
dense ? getDenseClassNames(state) : getClassNames(state),
|
8821
|
+
className
|
8822
|
+
)
|
8823
|
+
},
|
8824
|
+
state === "completed" ? /* @__PURE__ */ React40.createElement(InlineIcon, { icon: import_tick5.default }) : dense ? null : children
|
8825
|
+
);
|
9293
8826
|
Step.Indicator = Indicator;
|
9294
8827
|
Stepper.Step = Step;
|
9295
8828
|
ConnectorContainer.Connector = Connector;
|
@@ -9299,44 +8832,41 @@ Stepper.ConnectorContainer = ConnectorContainer;
|
|
9299
8832
|
import React41 from "react";
|
9300
8833
|
var import_ban2 = __toESM(require_ban());
|
9301
8834
|
var Switch = React41.forwardRef(
|
9302
|
-
(
|
9303
|
-
|
9304
|
-
|
9305
|
-
|
9306
|
-
|
9307
|
-
|
9308
|
-
|
9309
|
-
|
9310
|
-
|
9311
|
-
|
9312
|
-
|
9313
|
-
|
9314
|
-
|
9315
|
-
"outline-none focusable bg-intense",
|
9316
|
-
"cursor-pointer disabled:cursor-not-allowed",
|
9317
|
-
{
|
9318
|
-
"hover:bg-intense checked:bg-primary-default hover:checked:bg-primary-intense": !disabled,
|
9319
|
-
"bg-default checked:opacity-50 checked:bg-primary-muted": disabled
|
9320
|
-
}
|
9321
|
-
)
|
9322
|
-
),
|
9323
|
-
readOnly,
|
9324
|
-
disabled
|
9325
|
-
})
|
9326
|
-
), /* @__PURE__ */ React41.createElement(
|
9327
|
-
"span",
|
9328
|
-
{
|
9329
|
-
className: tw(
|
9330
|
-
"pointer-events-none rounded-full absolute inline-flex justify-center items-center transition duration-300 h-4 w-4 transform peer-checked/switch:translate-x-5",
|
9331
|
-
"bg-white left-2 peer-checked/switch:left-1 text-inactive peer-checked/switch:text-primary-muted",
|
8835
|
+
({ id, children, name, disabled = false, readOnly = false, ...props }, ref) => /* @__PURE__ */ React41.createElement("span", { className: tw("relative inline-flex justify-center items-center self-center group") }, /* @__PURE__ */ React41.createElement(
|
8836
|
+
"input",
|
8837
|
+
{
|
8838
|
+
id,
|
8839
|
+
ref,
|
8840
|
+
type: "checkbox",
|
8841
|
+
name,
|
8842
|
+
...props,
|
8843
|
+
className: classNames(
|
8844
|
+
tw(
|
8845
|
+
"appearance-none peer/switch rounded-full inline-block w-[34px] h-[20px] transition duration-300",
|
8846
|
+
"outline-none focusable bg-intense",
|
8847
|
+
"cursor-pointer disabled:cursor-not-allowed",
|
9332
8848
|
{
|
9333
|
-
"
|
8849
|
+
"hover:bg-intense checked:bg-primary-default hover:checked:bg-primary-intense": !disabled,
|
8850
|
+
"bg-default checked:opacity-50 checked:bg-primary-muted": disabled
|
9334
8851
|
}
|
9335
8852
|
)
|
9336
|
-
|
9337
|
-
|
9338
|
-
|
9339
|
-
|
8853
|
+
),
|
8854
|
+
readOnly,
|
8855
|
+
disabled
|
8856
|
+
}
|
8857
|
+
), /* @__PURE__ */ React41.createElement(
|
8858
|
+
"span",
|
8859
|
+
{
|
8860
|
+
className: tw(
|
8861
|
+
"pointer-events-none rounded-full absolute inline-flex justify-center items-center transition duration-300 h-4 w-4 transform peer-checked/switch:translate-x-5",
|
8862
|
+
"bg-white left-2 peer-checked/switch:left-1 text-inactive peer-checked/switch:text-primary-muted",
|
8863
|
+
{
|
8864
|
+
"shadow-4dp": !disabled
|
8865
|
+
}
|
8866
|
+
)
|
8867
|
+
},
|
8868
|
+
disabled && /* @__PURE__ */ React41.createElement(Icon, { icon: import_ban2.default, width: "10px", height: "10px" })
|
8869
|
+
))
|
9340
8870
|
);
|
9341
8871
|
export {
|
9342
8872
|
Alert,
|