@aivenio/aquarium 2.16.0 → 2.17.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 +1921 -2425
- package/dist/atoms.mjs +1138 -1642
- package/dist/charts.cjs +266 -400
- package/dist/charts.mjs +238 -379
- package/dist/src/atoms/Skeleton/Skeleton.js +48 -0
- 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/DataListSkeleton.js +2 -2
- 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/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/styles.css +6 -0
- package/dist/system.cjs +3350 -4181
- package/dist/system.mjs +2567 -3398
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/types/tailwindGenerated.d.ts +1 -1
- package/package.json +41 -36
- 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
|
));
|
@@ -5948,18 +5923,20 @@ function getPxMapping(breakpoints2) {
|
|
5948
5923
|
if (!minWidthInPx.endsWith("px")) {
|
5949
5924
|
throw new Error(`Unexpected breakpoint value found: '${minWidthInPx}'. Expecting it to be in px unit.`);
|
5950
5925
|
}
|
5951
|
-
return
|
5926
|
+
return {
|
5927
|
+
...acc,
|
5952
5928
|
[key]: parseInt(minWidthInPx, 10)
|
5953
|
-
}
|
5929
|
+
};
|
5954
5930
|
}, {});
|
5955
5931
|
}
|
5956
5932
|
function getMatches(windowSize) {
|
5957
5933
|
const mapping = getPxMapping(allBreakpoints);
|
5958
5934
|
return Object.keys(allBreakpoints).reduce((acc, key) => {
|
5959
5935
|
const isMatch = !isUndefined(windowSize) && windowSize.width > 0 ? windowSize.width > mapping[key] : key === "default" ? true : false;
|
5960
|
-
return
|
5936
|
+
return {
|
5937
|
+
...acc,
|
5961
5938
|
[key]: isMatch
|
5962
|
-
}
|
5939
|
+
};
|
5963
5940
|
}, {});
|
5964
5941
|
}
|
5965
5942
|
function selectBreakpointValue(value, matches) {
|
@@ -5992,9 +5969,8 @@ import { isUndefined as isUndefined3 } from "lodash-es";
|
|
5992
5969
|
|
5993
5970
|
// src/molecules/Element/Element.tsx
|
5994
5971
|
import React from "react";
|
5995
|
-
var Element = (
|
5996
|
-
|
5997
|
-
const Component = component != null ? component : "div";
|
5972
|
+
var Element = ({ component, ...rest }) => {
|
5973
|
+
const Component = component ?? "div";
|
5998
5974
|
return React.createElement(Component, rest);
|
5999
5975
|
};
|
6000
5976
|
|
@@ -6036,99 +6012,57 @@ var createSimpleComponent = (Component, defaultProps, displayName) => {
|
|
6036
6012
|
const Curried = (props) => {
|
6037
6013
|
const propsClassName = hasClassName(props) ? props.className : "";
|
6038
6014
|
const className = defaultClassName || propsClassName ? classNames(defaultClassName, propsClassName) : void 0;
|
6039
|
-
return /* @__PURE__ */ React2.createElement(Component,
|
6015
|
+
return /* @__PURE__ */ React2.createElement(Component, { ...defaultProps, ...props, className });
|
6040
6016
|
};
|
6041
6017
|
Curried.displayName = displayName;
|
6042
6018
|
return Curried;
|
6043
6019
|
};
|
6044
6020
|
|
6045
6021
|
// 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
|
-
]);
|
6022
|
+
var Box = ({
|
6023
|
+
style,
|
6024
|
+
color,
|
6025
|
+
borderColor,
|
6026
|
+
borderRadius,
|
6027
|
+
borderWidth,
|
6028
|
+
justifyContent,
|
6029
|
+
justifySelf,
|
6030
|
+
alignContent,
|
6031
|
+
alignItems,
|
6032
|
+
alignSelf,
|
6033
|
+
flexDirection,
|
6034
|
+
flexWrap,
|
6035
|
+
flex,
|
6036
|
+
grow,
|
6037
|
+
shrink,
|
6038
|
+
display,
|
6039
|
+
padding,
|
6040
|
+
paddingX,
|
6041
|
+
paddingY,
|
6042
|
+
paddingTop,
|
6043
|
+
paddingRight,
|
6044
|
+
paddingBottom,
|
6045
|
+
paddingLeft,
|
6046
|
+
margin,
|
6047
|
+
marginX,
|
6048
|
+
marginY,
|
6049
|
+
marginTop,
|
6050
|
+
marginRight,
|
6051
|
+
marginBottom,
|
6052
|
+
marginLeft,
|
6053
|
+
backgroundColor,
|
6054
|
+
width,
|
6055
|
+
height,
|
6056
|
+
maxWidth,
|
6057
|
+
maxHeight,
|
6058
|
+
minWidth,
|
6059
|
+
minHeight,
|
6060
|
+
gap,
|
6061
|
+
colGap,
|
6062
|
+
rowGap,
|
6063
|
+
className,
|
6064
|
+
...rest
|
6065
|
+
}) => {
|
6132
6066
|
const styles = useStyle({
|
6133
6067
|
padding,
|
6134
6068
|
display,
|
@@ -6164,19 +6098,20 @@ var Box = (_a) => {
|
|
6164
6098
|
rowGap
|
6165
6099
|
});
|
6166
6100
|
const finalClassname = classNames2(className, {
|
6167
|
-
[`border-${borderColor
|
6168
|
-
[`text-${color
|
6169
|
-
[`bg-${backgroundColor
|
6101
|
+
[`border-${borderColor ?? ""}`]: Boolean(borderColor),
|
6102
|
+
[`text-${color ?? ""}`]: Boolean(color),
|
6103
|
+
[`bg-${backgroundColor ?? ""}`]: Boolean(backgroundColor)
|
6170
6104
|
});
|
6171
6105
|
return /* @__PURE__ */ React3.createElement(
|
6172
6106
|
Element,
|
6173
|
-
|
6174
|
-
style:
|
6175
|
-
className: finalClassname !== "" ? finalClassname : void 0
|
6176
|
-
|
6107
|
+
{
|
6108
|
+
style: { ...styles, ...style },
|
6109
|
+
className: finalClassname !== "" ? finalClassname : void 0,
|
6110
|
+
...rest
|
6111
|
+
}
|
6177
6112
|
);
|
6178
6113
|
};
|
6179
|
-
var FlexBox = (props) => /* @__PURE__ */ React3.createElement(Box,
|
6114
|
+
var FlexBox = (props) => /* @__PURE__ */ React3.createElement(Box, { display: "flex", ...props });
|
6180
6115
|
FlexBox.displayName = "Box.Flex";
|
6181
6116
|
Box.Flex = FlexBox;
|
6182
6117
|
var BorderBox = createSimpleComponent(Box, { className: "rounded border", borderColor: "muted" }, "BorderBox");
|
@@ -6188,47 +6123,40 @@ import { animated, useTransition } from "@react-spring/web";
|
|
6188
6123
|
// src/atoms/Toast/Toast.tsx
|
6189
6124
|
import React6 from "react";
|
6190
6125
|
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
|
-
};
|
6126
|
+
var Toast = ({
|
6127
|
+
children,
|
6128
|
+
className,
|
6129
|
+
variant,
|
6130
|
+
...rest
|
6131
|
+
}) => /* @__PURE__ */ React6.createElement(
|
6132
|
+
"div",
|
6133
|
+
{
|
6134
|
+
...rest,
|
6135
|
+
className: classNames3(
|
6136
|
+
"Aquarium-Toast",
|
6137
|
+
tw("typography-small rounded grid grid-cols-[1fr_auto] items-center gap-x-6 gap-y-2 p-4", {
|
6138
|
+
"bg-body-intense text-opposite-default": variant === "default",
|
6139
|
+
"bg-danger-intense text-white": variant === "danger"
|
6140
|
+
}),
|
6141
|
+
className
|
6142
|
+
)
|
6143
|
+
},
|
6144
|
+
children
|
6145
|
+
);
|
6146
|
+
var Dismiss = ({ children, className, variant, ...rest }) => /* @__PURE__ */ React6.createElement(
|
6147
|
+
"div",
|
6148
|
+
{
|
6149
|
+
...rest,
|
6150
|
+
className: classNames3(
|
6151
|
+
tw("self-start [&>button]:p-0 flex", {
|
6152
|
+
"[&>button]:text-muted": variant === "default",
|
6153
|
+
"[&>button]:text-danger-muted": variant === "danger"
|
6154
|
+
}),
|
6155
|
+
className
|
6156
|
+
)
|
6157
|
+
},
|
6158
|
+
children
|
6159
|
+
);
|
6232
6160
|
Toast.Dismiss = Dismiss;
|
6233
6161
|
|
6234
6162
|
// src/icons/index.js
|
@@ -6521,9 +6449,8 @@ var THEME_MAPPING = {
|
|
6521
6449
|
columnGap: "gap"
|
6522
6450
|
};
|
6523
6451
|
function resolveTailwindThemeValue(key, val) {
|
6524
|
-
var _a;
|
6525
6452
|
const resolvedKey = key in THEME_MAPPING ? THEME_MAPPING[key] : key;
|
6526
|
-
const found =
|
6453
|
+
const found = get(tailwind_theme_default, [resolvedKey, val], void 0) ?? get(tailwind_theme_default, [resolvedKey, ...(val ?? "").toString().split("-")], void 0);
|
6527
6454
|
if (!isUndefined4(found)) {
|
6528
6455
|
return found;
|
6529
6456
|
}
|
@@ -6536,77 +6463,54 @@ function useStyle(styles) {
|
|
6536
6463
|
const isStylesObject = isPlainObject2(property) && "value" in property;
|
6537
6464
|
const value = isStylesObject ? property.value : property;
|
6538
6465
|
const resolvedValue = selectBreakpointValue(value, context2.breakpointMatches);
|
6539
|
-
const transformer = isUndefined4(property
|
6466
|
+
const transformer = isUndefined4(property?.transformer) ? (val) => resolveTailwindThemeValue(key, val) : (
|
6467
|
+
// Even if transformer is set, we pass it through the default transformer
|
6468
|
+
// which will resolve possible tailwind theme mapping values
|
6469
|
+
(val) => resolveTailwindThemeValue(key, property.transformer(val))
|
6470
|
+
);
|
6540
6471
|
const cssPropertyValue = transformer(resolvedValue);
|
6541
6472
|
if (isUndefined4(cssPropertyValue)) {
|
6542
6473
|
return acc;
|
6543
6474
|
}
|
6544
|
-
return
|
6475
|
+
return {
|
6476
|
+
...acc,
|
6545
6477
|
[key]: cssPropertyValue
|
6546
|
-
}
|
6478
|
+
};
|
6547
6479
|
}, {});
|
6548
6480
|
}
|
6549
6481
|
|
6550
6482
|
// src/molecules/Tailwindify/Tailwindify.tsx
|
6551
6483
|
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
|
-
]);
|
6484
|
+
return ({
|
6485
|
+
className,
|
6486
|
+
style,
|
6487
|
+
children,
|
6488
|
+
padding,
|
6489
|
+
paddingX,
|
6490
|
+
paddingY,
|
6491
|
+
paddingTop,
|
6492
|
+
paddingRight,
|
6493
|
+
paddingBottom,
|
6494
|
+
paddingLeft,
|
6495
|
+
margin,
|
6496
|
+
marginX,
|
6497
|
+
marginY,
|
6498
|
+
marginTop,
|
6499
|
+
marginRight,
|
6500
|
+
marginBottom,
|
6501
|
+
marginLeft,
|
6502
|
+
space,
|
6503
|
+
spaceX,
|
6504
|
+
spaceY,
|
6505
|
+
backgroundColor,
|
6506
|
+
width,
|
6507
|
+
height,
|
6508
|
+
maxWidth,
|
6509
|
+
maxHeight,
|
6510
|
+
minWidth,
|
6511
|
+
minHeight,
|
6512
|
+
...otherProps
|
6513
|
+
}) => {
|
6610
6514
|
const tailwindifyStyle = useStyle({
|
6611
6515
|
padding,
|
6612
6516
|
paddingTop: isUndefined5(paddingY) ? paddingTop : paddingY,
|
@@ -6626,10 +6530,15 @@ function Tailwindify(Component) {
|
|
6626
6530
|
minWidth,
|
6627
6531
|
minHeight
|
6628
6532
|
});
|
6629
|
-
const finalStyle =
|
6630
|
-
|
6533
|
+
const finalStyle = {
|
6534
|
+
...tailwindifyStyle,
|
6535
|
+
...style
|
6536
|
+
};
|
6537
|
+
const componentProps = {
|
6538
|
+
// Casting to skip TS error https://github.com/microsoft/TypeScript/issues/35858
|
6539
|
+
...otherProps,
|
6631
6540
|
style: finalStyle
|
6632
|
-
}
|
6541
|
+
};
|
6633
6542
|
const childrenWithProps = React10.Children.map(children, (child, index) => {
|
6634
6543
|
if (!React10.isValidElement(child)) {
|
6635
6544
|
return child;
|
@@ -6651,10 +6560,10 @@ function Tailwindify(Component) {
|
|
6651
6560
|
return child;
|
6652
6561
|
}
|
6653
6562
|
const childStyle = get2(child, ["props", "style"], {});
|
6654
|
-
const newProps =
|
6563
|
+
const newProps = { ...childProps, style: { ...childStyle, ...additionalStyle } };
|
6655
6564
|
return React10.cloneElement(child, newProps);
|
6656
6565
|
});
|
6657
|
-
return /* @__PURE__ */ React10.createElement(Component,
|
6566
|
+
return /* @__PURE__ */ React10.createElement(Component, { className, ...componentProps }, childrenWithProps);
|
6658
6567
|
};
|
6659
6568
|
}
|
6660
6569
|
|
@@ -6687,7 +6596,7 @@ var Flexbox = Tailwindify(
|
|
6687
6596
|
rowGap
|
6688
6597
|
});
|
6689
6598
|
const HtmlElement = htmlTag;
|
6690
|
-
return /* @__PURE__ */ React11.createElement(HtmlElement, { style:
|
6599
|
+
return /* @__PURE__ */ React11.createElement(HtmlElement, { style: { ...hookStyle, ...style }, className }, children);
|
6691
6600
|
}
|
6692
6601
|
);
|
6693
6602
|
|
@@ -6697,15 +6606,13 @@ import {
|
|
6697
6606
|
Icon as IconifyIconComponent,
|
6698
6607
|
InlineIcon as IconifyInlineIconComponent
|
6699
6608
|
} from "@iconify/react";
|
6700
|
-
var Icon = React12.forwardRef((
|
6701
|
-
var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
|
6609
|
+
var Icon = React12.forwardRef(({ color, className, ...rest }, ref) => {
|
6702
6610
|
const classes2 = classNames("Aquarium-Icon", className, color && `text-${String(color)}`);
|
6703
|
-
return /* @__PURE__ */ React12.createElement(IconifyIconComponent,
|
6611
|
+
return /* @__PURE__ */ React12.createElement(IconifyIconComponent, { ref: ref ?? void 0, className: classes2 !== "" ? classes2 : void 0, ...rest });
|
6704
6612
|
});
|
6705
|
-
var InlineIcon = React12.forwardRef((
|
6706
|
-
var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
|
6613
|
+
var InlineIcon = React12.forwardRef(({ color, className, ...rest }, ref) => {
|
6707
6614
|
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,
|
6615
|
+
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
6616
|
});
|
6710
6617
|
|
6711
6618
|
// src/molecules/Tooltip/Tooltip.tsx
|
@@ -6834,14 +6741,12 @@ function useTooltipTriggerState(props = {}) {
|
|
6834
6741
|
}
|
6835
6742
|
|
6836
6743
|
// 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;
|
6744
|
+
var Tooltip = ({ inline = true, delay = 200, ...props }) => {
|
6840
6745
|
const { placement: _placement = "top", content, disabled: isDisabled, shouldFlip = true } = props;
|
6841
|
-
const display =
|
6746
|
+
const display = props.display ?? (inline ? "inline-block" : "block");
|
6842
6747
|
const triggerRef = React13.useRef(null);
|
6843
6748
|
const overlayRef = React13.useRef(null);
|
6844
|
-
const state = useTooltipTriggerState(
|
6749
|
+
const state = useTooltipTriggerState({ isDisabled, delay, ...props });
|
6845
6750
|
const { triggerProps, tooltipProps } = useTooltipTrigger(props, state, triggerRef);
|
6846
6751
|
const { overlayProps, arrowProps, placement } = useOverlayPosition({
|
6847
6752
|
placement: _placement.replace("-", " "),
|
@@ -6855,44 +6760,37 @@ var Tooltip = (_a) => {
|
|
6855
6760
|
onFocusWithinChange: (isFocusWithin) => isFocusWithin ? state.open() : state.close()
|
6856
6761
|
});
|
6857
6762
|
const handleClick = (e) => {
|
6858
|
-
|
6859
|
-
|
6860
|
-
(_b2 = triggerProps.onClick) == null ? void 0 : _b2.call(triggerProps, e);
|
6763
|
+
props.onClick?.(e);
|
6764
|
+
triggerProps.onClick?.(e);
|
6861
6765
|
};
|
6862
6766
|
const handleMouseDown = (e) => {
|
6863
|
-
|
6864
|
-
|
6865
|
-
(_b2 = triggerProps.onMouseDown) == null ? void 0 : _b2.call(triggerProps, e);
|
6767
|
+
props.onMouseDown?.(e);
|
6768
|
+
triggerProps.onMouseDown?.(e);
|
6866
6769
|
};
|
6867
6770
|
const handleMouseUp = (e) => {
|
6868
|
-
|
6869
|
-
|
6870
|
-
(_b2 = triggerProps.onMouseUp) == null ? void 0 : _b2.call(triggerProps, e);
|
6771
|
+
props.onMouseUp?.(e);
|
6772
|
+
triggerProps.onMouseUp?.(e);
|
6871
6773
|
};
|
6872
6774
|
const handlePointerDown = (e) => {
|
6873
|
-
|
6874
|
-
|
6875
|
-
(_b2 = triggerProps.onPointerDown) == null ? void 0 : _b2.call(triggerProps, e);
|
6775
|
+
props.onPointerDown?.(e);
|
6776
|
+
triggerProps.onPointerDown?.(e);
|
6876
6777
|
};
|
6877
6778
|
const handlePointerUp = (e) => {
|
6878
|
-
|
6879
|
-
|
6880
|
-
(_b2 = triggerProps.onPointerUp) == null ? void 0 : _b2.call(triggerProps, e);
|
6779
|
+
props.onPointerUp?.(e);
|
6780
|
+
triggerProps.onPointerUp?.(e);
|
6881
6781
|
};
|
6882
6782
|
return /* @__PURE__ */ React13.createElement(
|
6883
6783
|
"div",
|
6884
|
-
|
6885
|
-
className: display
|
6886
|
-
|
6784
|
+
{
|
6785
|
+
className: display,
|
6786
|
+
...triggerProps,
|
6887
6787
|
onFocus: (e) => {
|
6888
|
-
|
6889
|
-
|
6890
|
-
(_b2 = focusWithinProps.onFocus) == null ? void 0 : _b2.call(focusWithinProps, e);
|
6788
|
+
triggerProps.onFocus?.(e);
|
6789
|
+
focusWithinProps.onFocus?.(e);
|
6891
6790
|
},
|
6892
6791
|
onBlur: (e) => {
|
6893
|
-
|
6894
|
-
|
6895
|
-
(_b2 = focusWithinProps.onBlur) == null ? void 0 : _b2.call(focusWithinProps, e);
|
6792
|
+
triggerProps.onBlur?.(e);
|
6793
|
+
focusWithinProps.onBlur?.(e);
|
6896
6794
|
},
|
6897
6795
|
onClick: handleClick,
|
6898
6796
|
onMouseDown: handleMouseDown,
|
@@ -6900,39 +6798,39 @@ var Tooltip = (_a) => {
|
|
6900
6798
|
onPointerDown: handlePointerDown,
|
6901
6799
|
onPointerUp: handlePointerUp,
|
6902
6800
|
ref: triggerRef
|
6903
|
-
}
|
6801
|
+
},
|
6904
6802
|
props.children,
|
6905
6803
|
state.isOpen && /* @__PURE__ */ React13.createElement(
|
6906
6804
|
TooltipWrapper,
|
6907
|
-
|
6805
|
+
{
|
6908
6806
|
ref: overlayRef,
|
6909
6807
|
state,
|
6910
6808
|
placement,
|
6911
|
-
arrowProps
|
6912
|
-
|
6809
|
+
arrowProps,
|
6810
|
+
...mergeProps(tooltipProps, overlayProps)
|
6811
|
+
},
|
6913
6812
|
content
|
6914
6813
|
)
|
6915
6814
|
);
|
6916
6815
|
};
|
6917
6816
|
var TooltipWrapper = React13.forwardRef(
|
6918
|
-
(
|
6919
|
-
var _b = _a, { state, placement, arrowProps } = _b, props = __objRest(_b, ["state", "placement", "arrowProps"]);
|
6920
|
-
var _a2;
|
6817
|
+
({ state, placement, arrowProps, ...props }, forwardedRef) => {
|
6921
6818
|
const ref = React13.useRef(null);
|
6922
6819
|
React13.useImperativeHandle(forwardedRef, () => ref.current);
|
6923
6820
|
const { tooltipProps } = useTooltip(props, state);
|
6924
|
-
const arrowStyle = getArrowStyle(ref.current, placement,
|
6821
|
+
const arrowStyle = getArrowStyle(ref.current, placement, arrowProps.style ?? {});
|
6925
6822
|
return /* @__PURE__ */ React13.createElement(OverlayContainer, null, /* @__PURE__ */ React13.createElement(
|
6926
6823
|
"div",
|
6927
|
-
|
6824
|
+
{
|
6928
6825
|
ref,
|
6929
6826
|
className: classNames(
|
6930
6827
|
"Aquarium-Tooltip",
|
6931
6828
|
tw("p-3 rounded-sm typography-caption max-w-[320px] bg-body-intense text-opposite-default")
|
6932
|
-
)
|
6933
|
-
|
6829
|
+
),
|
6830
|
+
...mergeProps(props, tooltipProps)
|
6831
|
+
},
|
6934
6832
|
props.children,
|
6935
|
-
/* @__PURE__ */ React13.createElement(Arrow,
|
6833
|
+
/* @__PURE__ */ React13.createElement(Arrow, { ...arrowProps, style: arrowStyle })
|
6936
6834
|
));
|
6937
6835
|
}
|
6938
6836
|
);
|
@@ -6953,22 +6851,22 @@ var getArrowStyle = (element, position, { left, top }) => {
|
|
6953
6851
|
};
|
6954
6852
|
switch (position) {
|
6955
6853
|
case "top": {
|
6956
|
-
return { left: Math.min(limits.right, Math.max((left
|
6854
|
+
return { left: Math.min(limits.right, Math.max((left ?? 0) - ARROW_SIZE, limits.left)), bottom: -ARROW_SIZE };
|
6957
6855
|
}
|
6958
6856
|
case "bottom": {
|
6959
|
-
return { left: Math.min(limits.right, Math.max((left
|
6857
|
+
return { left: Math.min(limits.right, Math.max((left ?? 0) - ARROW_SIZE, limits.left)), top: -ARROW_SIZE };
|
6960
6858
|
}
|
6961
6859
|
case "left": {
|
6962
|
-
return { right: -ARROW_SIZE, top: Math.min(limits.bottom, Math.max((top
|
6860
|
+
return { right: -ARROW_SIZE, top: Math.min(limits.bottom, Math.max((top ?? 0) - ARROW_SIZE, limits.top)) };
|
6963
6861
|
}
|
6964
6862
|
case "right": {
|
6965
|
-
return { left: -ARROW_SIZE, top: Math.min(limits.bottom, Math.max((top
|
6863
|
+
return { left: -ARROW_SIZE, top: Math.min(limits.bottom, Math.max((top ?? 0) - ARROW_SIZE, limits.top)) };
|
6966
6864
|
}
|
6967
6865
|
}
|
6968
6866
|
return { left, top };
|
6969
6867
|
};
|
6970
6868
|
var Arrow = (props) => {
|
6971
|
-
return /* @__PURE__ */ React13.createElement("div",
|
6869
|
+
return /* @__PURE__ */ React13.createElement("div", { className: tw("absolute w-3 h-3 bg-body-intense rotate-45"), ...props });
|
6972
6870
|
};
|
6973
6871
|
|
6974
6872
|
// src/utils/constants.ts
|
@@ -7008,34 +6906,21 @@ var LoadingSpinner = ({ size = "20px" }) => {
|
|
7008
6906
|
};
|
7009
6907
|
var asButton = (Component, isDropdownButton) => {
|
7010
6908
|
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
|
-
]);
|
6909
|
+
({
|
6910
|
+
kind = "primary",
|
6911
|
+
icon,
|
6912
|
+
iconPlacement = "left",
|
6913
|
+
tooltip,
|
6914
|
+
tooltipPlacement,
|
6915
|
+
disabled,
|
6916
|
+
loading: loading2 = false,
|
6917
|
+
fullWidth = false,
|
6918
|
+
dense = false,
|
6919
|
+
UNSAFE_className,
|
6920
|
+
"aria-label": ariaLabel,
|
6921
|
+
children,
|
6922
|
+
...props
|
6923
|
+
}, ref) => {
|
7039
6924
|
const hasChildren = React14.Children.count(children) > 0;
|
7040
6925
|
const isIconOnlyButton = !hasChildren && !!icon;
|
7041
6926
|
const isGhost = !isIconOnlyButton && (kind === "ghost" || kind === "secondary-ghost");
|
@@ -7076,9 +6961,9 @@ var asButton = (Component, isDropdownButton) => {
|
|
7076
6961
|
};
|
7077
6962
|
const buttonComponent = /* @__PURE__ */ React14.createElement(
|
7078
6963
|
Component,
|
7079
|
-
|
7080
|
-
ref
|
7081
|
-
|
6964
|
+
{
|
6965
|
+
ref,
|
6966
|
+
...props,
|
7082
6967
|
className: classNames(
|
7083
6968
|
"Aquarium-Button",
|
7084
6969
|
{
|
@@ -7089,6 +6974,7 @@ var asButton = (Component, isDropdownButton) => {
|
|
7089
6974
|
},
|
7090
6975
|
UNSAFE_className,
|
7091
6976
|
!isIconOnlyButton && COLOR_CLASSNAMES[kind],
|
6977
|
+
// adding inline-block here for the case of using it with anchor tag
|
7092
6978
|
tw(
|
7093
6979
|
"inline-block border-0 rounded-sm transition whitespace-nowrap focus:outline-none relative text-center",
|
7094
6980
|
{
|
@@ -7102,12 +6988,13 @@ var asButton = (Component, isDropdownButton) => {
|
|
7102
6988
|
"block w-full": fullWidth && !isIconOnlyButton,
|
7103
6989
|
"cursor-not-allowed": !!disabled || !!loading2,
|
7104
6990
|
"icon-stroke-2": !isIconOnlyButton
|
6991
|
+
// 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
6992
|
}
|
7106
6993
|
)
|
7107
6994
|
),
|
7108
|
-
"aria-label": isIconOnlyButton ? ariaLabel
|
6995
|
+
"aria-label": isIconOnlyButton ? ariaLabel ?? tooltip : ariaLabel,
|
7109
6996
|
disabled: disabled || loading2
|
7110
|
-
}
|
6997
|
+
},
|
7111
6998
|
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
6999
|
);
|
7113
7000
|
return tooltip ? /* @__PURE__ */ React14.createElement(Tooltip, { content: tooltip, placement: tooltipPlacement }, buttonComponent) : buttonComponent;
|
@@ -7116,40 +7003,40 @@ var asButton = (Component, isDropdownButton) => {
|
|
7116
7003
|
};
|
7117
7004
|
var Button = asButton("button");
|
7118
7005
|
Button.displayName = "Button";
|
7119
|
-
var PrimaryButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button,
|
7006
|
+
var PrimaryButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button, { ref, ...props, kind: "primary" }));
|
7120
7007
|
PrimaryButton.displayName = "Button.Primary";
|
7121
7008
|
Button.Primary = PrimaryButton;
|
7122
|
-
var SecondaryButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button,
|
7009
|
+
var SecondaryButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button, { ref, ...props, kind: "secondary" }));
|
7123
7010
|
SecondaryButton.displayName = "Button.Secondary";
|
7124
7011
|
Button.Secondary = SecondaryButton;
|
7125
|
-
var GhostButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button,
|
7012
|
+
var GhostButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button, { ref, ...props, kind: "ghost" }));
|
7126
7013
|
GhostButton.displayName = "Button.Ghost";
|
7127
7014
|
Button.Ghost = GhostButton;
|
7128
|
-
var SecondaryGhostButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button,
|
7015
|
+
var SecondaryGhostButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button, { ref, ...props, kind: "secondary-ghost" }));
|
7129
7016
|
SecondaryGhostButton.displayName = "Button.SecondaryGhost";
|
7130
7017
|
Button.SecondaryGhost = SecondaryGhostButton;
|
7131
|
-
var TextButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button,
|
7018
|
+
var TextButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button, { ref, ...props, kind: "text" }));
|
7132
7019
|
TextButton.displayName = "Button.Text";
|
7133
7020
|
Button.Text = TextButton;
|
7134
|
-
var IconButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button,
|
7021
|
+
var IconButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button, { ref, ...props, kind: "ghost", loading: false, fullWidth: false }));
|
7135
7022
|
IconButton.displayName = "Button.Icon";
|
7136
7023
|
Button.Icon = IconButton;
|
7137
7024
|
var ExternalLinkButton = asButton("a");
|
7138
7025
|
ExternalLinkButton.displayName = "Button.ExternalLink";
|
7139
7026
|
Button.ExternalLink = ExternalLinkButton;
|
7140
|
-
var IconExternalLinkButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(ExternalLinkButton,
|
7027
|
+
var IconExternalLinkButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(ExternalLinkButton, { ref, ...props, kind: "ghost", loading: false, fullWidth: false }));
|
7141
7028
|
IconExternalLinkButton.displayName = "Button.IconExternalLink";
|
7142
7029
|
Button.IconExternalLink = IconExternalLinkButton;
|
7143
7030
|
var DropdownButton = asButton("button", true);
|
7144
7031
|
DropdownButton.displayName = "Button.Dropdown";
|
7145
7032
|
Button.Dropdown = DropdownButton;
|
7146
|
-
var PrimaryDropdownButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(DropdownButton,
|
7033
|
+
var PrimaryDropdownButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(DropdownButton, { ref, ...props, kind: "primary" }));
|
7147
7034
|
PrimaryDropdownButton.displayName = "Button.PrimaryDropdown";
|
7148
7035
|
Button.PrimaryDropdown = PrimaryDropdownButton;
|
7149
|
-
var SecondaryDropdownButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(DropdownButton,
|
7036
|
+
var SecondaryDropdownButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(DropdownButton, { ref, ...props, kind: "secondary" }));
|
7150
7037
|
SecondaryDropdownButton.displayName = "Button.SecondaryDropdown";
|
7151
7038
|
Button.SecondaryDropdown = SecondaryDropdownButton;
|
7152
|
-
var GhostDropdownButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(DropdownButton,
|
7039
|
+
var GhostDropdownButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(DropdownButton, { ref, ...props, kind: "ghost" }));
|
7153
7040
|
GhostDropdownButton.displayName = "Button.GhostDropdownButton";
|
7154
7041
|
Button.GhostDropdown = GhostDropdownButton;
|
7155
7042
|
|
@@ -7157,31 +7044,25 @@ Button.GhostDropdown = GhostDropdownButton;
|
|
7157
7044
|
import React15 from "react";
|
7158
7045
|
import { isUndefined as isUndefined6 } from "lodash-es";
|
7159
7046
|
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
|
-
]);
|
7047
|
+
var Typography = ({
|
7048
|
+
children,
|
7049
|
+
variant = "default",
|
7050
|
+
color,
|
7051
|
+
htmlTag = "div",
|
7052
|
+
className,
|
7053
|
+
fontWeight,
|
7054
|
+
...rest
|
7055
|
+
}) => {
|
7176
7056
|
const HtmlElement = htmlTag;
|
7177
7057
|
const resolvedColorName = isUndefined6(color) || color === "current" ? "default" : color;
|
7178
7058
|
const style = useStyle({ fontWeight });
|
7179
7059
|
return /* @__PURE__ */ React15.createElement(
|
7180
7060
|
HtmlElement,
|
7181
|
-
|
7061
|
+
{
|
7182
7062
|
className: classNames(typographies[variant], `text-${resolvedColorName.toString()}`, className),
|
7183
|
-
style
|
7184
|
-
|
7063
|
+
style,
|
7064
|
+
...rest
|
7065
|
+
},
|
7185
7066
|
children
|
7186
7067
|
);
|
7187
7068
|
};
|
@@ -7215,104 +7096,73 @@ var alertTypes = {
|
|
7215
7096
|
color: "success-default"
|
7216
7097
|
}
|
7217
7098
|
};
|
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
|
-
};
|
7099
|
+
var Alert = ({
|
7100
|
+
children,
|
7101
|
+
className,
|
7102
|
+
type,
|
7103
|
+
dense,
|
7104
|
+
...rest
|
7105
|
+
}) => /* @__PURE__ */ React16.createElement(
|
7106
|
+
"div",
|
7107
|
+
{
|
7108
|
+
...rest,
|
7109
|
+
role: type === "error" || type === "warning" ? "alert" : "status",
|
7110
|
+
className: classNames(
|
7111
|
+
tw("rounded grid grid-cols-[auto_1fr_auto] items-center gap-x-3 gap-y-2", {
|
7112
|
+
"bg-status-danger": type === "error",
|
7113
|
+
"bg-status-info": type === "information",
|
7114
|
+
"bg-status-success": type === "success",
|
7115
|
+
"bg-status-warning": type === "warning",
|
7116
|
+
"bg-status-announcement": type === "announcement",
|
7117
|
+
"p-4": Boolean(dense),
|
7118
|
+
"p-5": !dense
|
7119
|
+
}),
|
7120
|
+
className
|
7121
|
+
)
|
7122
|
+
},
|
7123
|
+
children
|
7124
|
+
);
|
7125
|
+
Alert.Title = ({ children, className, ...rest }) => /* @__PURE__ */ React16.createElement(Typography, { ...rest, variant: "default-strong", color: "intense", className: classNames(tw("col-start-2"), className) }, children);
|
7126
|
+
Alert.Description = ({ children, className, ...rest }) => /* @__PURE__ */ React16.createElement(Typography, { ...rest, variant: "small", color: "default", className: classNames(tw("col-start-2"), className) }, children);
|
7127
|
+
Alert.Actions = ({ children, className, ...rest }) => /* @__PURE__ */ React16.createElement("div", { ...rest, className: classNames(tw("flex gap-4 col-start-2"), className) }, children);
|
7128
|
+
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 }));
|
7129
|
+
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 }));
|
7130
|
+
var Banner = ({
|
7131
|
+
children,
|
7132
|
+
className,
|
7133
|
+
type,
|
7134
|
+
...rest
|
7135
|
+
}) => /* @__PURE__ */ React16.createElement(
|
7136
|
+
"div",
|
7137
|
+
{
|
7138
|
+
...rest,
|
7139
|
+
role: type === "error" || type === "warning" ? "alert" : "status",
|
7140
|
+
className: classNames(
|
7141
|
+
tw("relative flex px-[60px] justify-center", {
|
7142
|
+
"bg-status-danger": type === "error",
|
7143
|
+
"bg-status-announcement": type === "information",
|
7144
|
+
"bg-status-success": type === "success",
|
7145
|
+
"bg-status-warning": type === "warning"
|
7146
|
+
}),
|
7147
|
+
className
|
7148
|
+
)
|
7149
|
+
},
|
7150
|
+
children
|
7151
|
+
);
|
7297
7152
|
Alert.Banner = Banner;
|
7298
7153
|
Alert.Banner.displayName = "Alert.Banner";
|
7299
|
-
Banner.Content = (
|
7300
|
-
|
7301
|
-
|
7302
|
-
|
7303
|
-
|
7304
|
-
className
|
7305
|
-
|
7306
|
-
|
7307
|
-
|
7308
|
-
|
7309
|
-
);
|
7310
|
-
};
|
7154
|
+
Banner.Content = ({ className, ...props }) => /* @__PURE__ */ React16.createElement(
|
7155
|
+
"div",
|
7156
|
+
{
|
7157
|
+
className: classNames(
|
7158
|
+
tw("flex flex-row flex-wrap gap-x-3 items-center justify-center py-4 text-center z-10"),
|
7159
|
+
className
|
7160
|
+
),
|
7161
|
+
...props
|
7162
|
+
}
|
7163
|
+
);
|
7311
7164
|
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
|
-
};
|
7165
|
+
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
7166
|
Banner.Dismiss.displayName = "Alert.Banner.Dismiss";
|
7317
7167
|
var ILLUSTRATION_COLORS = {
|
7318
7168
|
information: { stroke: tw("stroke-primary-muted"), fill: tw("fill-primary-10") },
|
@@ -7320,10 +7170,9 @@ var ILLUSTRATION_COLORS = {
|
|
7320
7170
|
warning: { stroke: tw("stroke-warning-100"), fill: tw("fill-warning-20") },
|
7321
7171
|
error: { stroke: tw("stroke-error-100"), fill: tw("fill-error-10") }
|
7322
7172
|
};
|
7323
|
-
var IllustrationLeft = (
|
7324
|
-
var _b = _a, { type } = _b, props = __objRest(_b, ["type"]);
|
7173
|
+
var IllustrationLeft = ({ type, ...props }) => {
|
7325
7174
|
const clipPathId = useId();
|
7326
|
-
return /* @__PURE__ */ React16.createElement("svg",
|
7175
|
+
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
7176
|
"path",
|
7328
7177
|
{
|
7329
7178
|
className: ILLUSTRATION_COLORS[type].fill,
|
@@ -7340,10 +7189,9 @@ var IllustrationLeft = (_a) => {
|
|
7340
7189
|
};
|
7341
7190
|
Banner.IllustrationLeft = IllustrationLeft;
|
7342
7191
|
Banner.IllustrationLeft.displayName = "Alert.Banner.IllustrationLeft";
|
7343
|
-
var IllustrationRight = (
|
7344
|
-
var _b = _a, { type } = _b, props = __objRest(_b, ["type"]);
|
7192
|
+
var IllustrationRight = ({ type, ...props }) => {
|
7345
7193
|
const clipPathId = useId();
|
7346
|
-
return /* @__PURE__ */ React16.createElement("svg",
|
7194
|
+
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
7195
|
"path",
|
7348
7196
|
{
|
7349
7197
|
className: ILLUSTRATION_COLORS[type].fill,
|
@@ -7363,91 +7211,70 @@ Banner.IllustrationRight.displayName = "Alert.Banner.IllustrationRight";
|
|
7363
7211
|
|
7364
7212
|
// src/atoms/Banner/Banner.tsx
|
7365
7213
|
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
|
-
Banner2.ImageContainer = (_a) => {
|
7431
|
-
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
7432
|
-
return /* @__PURE__ */ React17.createElement(Box, __spreadProps(__spreadValues({}, rest), { display: "inline-flex", alignItems: "center", margin: "-6", marginLeft: "0" }), children);
|
7433
|
-
};
|
7434
|
-
Banner2.Actions = (_a) => {
|
7435
|
-
var _b = _a, { children, className, layout } = _b, rest = __objRest(_b, ["children", "className", "layout"]);
|
7436
|
-
return /* @__PURE__ */ React17.createElement("div", __spreadProps(__spreadValues({}, rest), { className: classNames(className, tw("flex gap-4", { "mt-5": layout === "vertical" })) }), children);
|
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
|
-
};
|
7214
|
+
var Banner2 = ({
|
7215
|
+
children,
|
7216
|
+
className,
|
7217
|
+
layout,
|
7218
|
+
variant,
|
7219
|
+
...rest
|
7220
|
+
}) => /* @__PURE__ */ React17.createElement(
|
7221
|
+
"div",
|
7222
|
+
{
|
7223
|
+
...rest,
|
7224
|
+
className: classNames(
|
7225
|
+
className,
|
7226
|
+
tw(`rounded flex justify-between gap-7 flex-nowrap p-6`, {
|
7227
|
+
"items-center": layout === "horizontal",
|
7228
|
+
"bg-muted": variant === "default",
|
7229
|
+
"bg-body border border-muted": variant === "outlined"
|
7230
|
+
})
|
7231
|
+
)
|
7232
|
+
},
|
7233
|
+
children
|
7234
|
+
);
|
7235
|
+
Banner2.Title = ({ children, className, layout, ...rest }) => /* @__PURE__ */ React17.createElement(
|
7236
|
+
Typography,
|
7237
|
+
{
|
7238
|
+
...rest,
|
7239
|
+
variant: "subheading",
|
7240
|
+
color: "intense",
|
7241
|
+
className: classNames(
|
7242
|
+
className,
|
7243
|
+
tw({
|
7244
|
+
"mb-3": layout === "vertical"
|
7245
|
+
})
|
7246
|
+
)
|
7247
|
+
},
|
7248
|
+
children
|
7249
|
+
);
|
7250
|
+
Banner2.Description = ({ flexGrow, children, className, ...rest }) => /* @__PURE__ */ React17.createElement(Typography, { ...rest, variant: "default", className: classNames(className, tw({ "flex-grow": flexGrow })) }, children);
|
7251
|
+
Banner2.ContentContainer = ({ layout, children, className, ...rest }) => /* @__PURE__ */ React17.createElement(
|
7252
|
+
"div",
|
7253
|
+
{
|
7254
|
+
...rest,
|
7255
|
+
className: classNames(
|
7256
|
+
className,
|
7257
|
+
tw("flex w-full", {
|
7258
|
+
"flex-col": layout === "vertical",
|
7259
|
+
"flex-row flex-nowrap gap-7 items-center": layout === "horizontal"
|
7260
|
+
})
|
7261
|
+
)
|
7262
|
+
},
|
7263
|
+
children
|
7264
|
+
);
|
7265
|
+
Banner2.ImageContainer = ({ children, ...rest }) => /* @__PURE__ */ React17.createElement(Box, { ...rest, display: "inline-flex", alignItems: "center", margin: "-6", marginLeft: "0" }, children);
|
7266
|
+
Banner2.Actions = ({ children, className, layout, ...rest }) => /* @__PURE__ */ React17.createElement("div", { ...rest, className: classNames(className, tw("flex gap-4", { "mt-5": layout === "vertical" })) }, children);
|
7267
|
+
Banner2.DismissContainer = ({ layout, children, className, ...rest }) => /* @__PURE__ */ React17.createElement(
|
7268
|
+
"div",
|
7269
|
+
{
|
7270
|
+
...rest,
|
7271
|
+
className: classNames(
|
7272
|
+
className,
|
7273
|
+
tw({ "self-start": layout === "vertical", "self-center": layout === "horizontal" })
|
7274
|
+
)
|
7275
|
+
},
|
7276
|
+
children
|
7277
|
+
);
|
7451
7278
|
|
7452
7279
|
// src/atoms/Card/Card.tsx
|
7453
7280
|
import React20 from "react";
|
@@ -7456,128 +7283,65 @@ import { isNumber } from "lodash-es";
|
|
7456
7283
|
// src/molecules/Typography/Typography.tsx
|
7457
7284
|
import React18 from "react";
|
7458
7285
|
import classNames4 from "classnames";
|
7459
|
-
var Typography2 = (props) => /* @__PURE__ */ React18.createElement(Typography,
|
7286
|
+
var Typography2 = (props) => /* @__PURE__ */ React18.createElement(Typography, { ...props });
|
7460
7287
|
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
|
-
};
|
7288
|
+
Typography2.LargeHeading = ({ htmlTag = "h1", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "large-heading" });
|
7465
7289
|
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
|
-
};
|
7290
|
+
Typography2.Heading = ({ htmlTag = "h1", fontWeight, ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "heading" });
|
7470
7291
|
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
|
-
};
|
7292
|
+
Typography2.Subheading = ({ htmlTag = "h2", fontWeight, ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "subheading" });
|
7475
7293
|
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
|
-
};
|
7294
|
+
Typography2.LargeStrong = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "large-strong" });
|
7480
7295
|
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
|
-
};
|
7296
|
+
Typography2.Large = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "large" });
|
7485
7297
|
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
|
-
};
|
7298
|
+
Typography2.DefaultStrong = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "default-strong" });
|
7490
7299
|
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
|
-
};
|
7300
|
+
Typography2.Default = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "default" });
|
7495
7301
|
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
|
-
};
|
7302
|
+
Typography2.Paragraph = ({ htmlTag = "p", fontWeight, ...props }) => /* @__PURE__ */ React18.createElement(Typography2.Default, { ...props, htmlTag });
|
7500
7303
|
Typography2.P = Typography2.Paragraph;
|
7501
7304
|
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
|
-
};
|
7305
|
+
Typography2.Small = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "small" });
|
7506
7306
|
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
|
-
};
|
7307
|
+
Typography2.SmallStrong = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "small-strong" });
|
7511
7308
|
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
|
-
};
|
7309
|
+
Typography2.Strong = ({ className, ...props }) => /* @__PURE__ */ React18.createElement("strong", { className: classNames4(tw("font-semibold"), className), ...props });
|
7516
7310
|
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
|
-
};
|
7311
|
+
Typography2.Caption = ({ htmlTag = "div", fontWeight, ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "caption" });
|
7521
7312
|
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
|
-
};
|
7313
|
+
Typography2.Code = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "code" });
|
7526
7314
|
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
|
-
};
|
7315
|
+
Typography2.CodeStrong = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "code-strong" });
|
7531
7316
|
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
|
-
};
|
7317
|
+
Typography2.CodeSmall = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "code-small" });
|
7536
7318
|
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
|
-
};
|
7319
|
+
Typography2.CodeSmallStrong = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "code-small-strong" });
|
7541
7320
|
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
|
-
};
|
7321
|
+
Typography2.LargeText = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "large-strong" });
|
7546
7322
|
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
|
-
};
|
7323
|
+
Typography2.MediumText = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "default-strong" });
|
7551
7324
|
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
|
-
};
|
7325
|
+
Typography2.Text = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "default" });
|
7556
7326
|
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
|
-
};
|
7327
|
+
Typography2.SmallText = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "small" });
|
7561
7328
|
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
|
-
};
|
7329
|
+
Typography2.SmallTextBold = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "small-strong" });
|
7566
7330
|
Typography2.SmallTextBold.displayName = "Typography.SmallTextBold";
|
7567
7331
|
|
7568
7332
|
// src/atoms/LineClamp/LineClamp.tsx
|
7569
7333
|
import React19 from "react";
|
7570
7334
|
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"]);
|
7335
|
+
({ lines = 1, clamped = true, children, className, wordBreak = "break-words", ...props }, ref) => {
|
7573
7336
|
return /* @__PURE__ */ React19.createElement(
|
7574
7337
|
"div",
|
7575
|
-
|
7338
|
+
{
|
7576
7339
|
ref,
|
7577
7340
|
className: classNames(className, wordBreak === "break-words" ? "break-words" : "break-all", {
|
7578
7341
|
[`line-clamp-${lines}`]: clamped
|
7579
|
-
})
|
7580
|
-
|
7342
|
+
}),
|
7343
|
+
...props
|
7344
|
+
},
|
7581
7345
|
children
|
7582
7346
|
);
|
7583
7347
|
}
|
@@ -7595,7 +7359,7 @@ var getCommonCardStyles = ({
|
|
7595
7359
|
"bg-muted cursor-not-allowed focus:border-transparent opacity-50": disabled
|
7596
7360
|
});
|
7597
7361
|
var Card = React20.forwardRef((props, ref) => {
|
7598
|
-
const
|
7362
|
+
const {
|
7599
7363
|
disabled = false,
|
7600
7364
|
clickable: _clickable,
|
7601
7365
|
className,
|
@@ -7603,24 +7367,16 @@ var Card = React20.forwardRef((props, ref) => {
|
|
7603
7367
|
role = _clickable ? "button" : void 0,
|
7604
7368
|
modality,
|
7605
7369
|
enableMinWidth,
|
7606
|
-
fullWidth
|
7607
|
-
|
7608
|
-
|
7609
|
-
"clickable",
|
7610
|
-
"className",
|
7611
|
-
"children",
|
7612
|
-
"role",
|
7613
|
-
"modality",
|
7614
|
-
"enableMinWidth",
|
7615
|
-
"fullWidth"
|
7616
|
-
]);
|
7370
|
+
fullWidth,
|
7371
|
+
...rest
|
7372
|
+
} = props;
|
7617
7373
|
const clickable = Boolean(role !== void 0 && !disabled);
|
7618
7374
|
return /* @__PURE__ */ React20.createElement(
|
7619
7375
|
"div",
|
7620
|
-
|
7376
|
+
{
|
7621
7377
|
ref,
|
7622
|
-
role
|
7623
|
-
|
7378
|
+
role,
|
7379
|
+
...rest,
|
7624
7380
|
className: classNames(
|
7625
7381
|
getCommonCardStyles(props),
|
7626
7382
|
tw({
|
@@ -7629,15 +7385,16 @@ var Card = React20.forwardRef((props, ref) => {
|
|
7629
7385
|
}),
|
7630
7386
|
className
|
7631
7387
|
)
|
7632
|
-
}
|
7388
|
+
},
|
7633
7389
|
children
|
7634
7390
|
);
|
7635
7391
|
});
|
7636
7392
|
var Label = (props) => {
|
7637
|
-
const
|
7393
|
+
const { className, checked = false, children, modality, enableMinWidth, fullWidth, disabled, ...rest } = props;
|
7638
7394
|
return /* @__PURE__ */ React20.createElement(
|
7639
7395
|
"label",
|
7640
|
-
|
7396
|
+
{
|
7397
|
+
...rest,
|
7641
7398
|
className: classNames(
|
7642
7399
|
getCommonCardStyles(props),
|
7643
7400
|
tw({
|
@@ -7647,40 +7404,34 @@ var Label = (props) => {
|
|
7647
7404
|
}),
|
7648
7405
|
className
|
7649
7406
|
)
|
7650
|
-
}
|
7407
|
+
},
|
7651
7408
|
children
|
7652
7409
|
);
|
7653
7410
|
};
|
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
|
-
};
|
7411
|
+
var ColorHighlight = ({
|
7412
|
+
color,
|
7413
|
+
className,
|
7414
|
+
...rest
|
7415
|
+
}) => /* @__PURE__ */ React20.createElement(
|
7416
|
+
Box,
|
7417
|
+
{
|
7418
|
+
...rest,
|
7419
|
+
backgroundColor: color,
|
7420
|
+
className: classNames(tw("h-1 w-full absolute top-0 left-0 right-0"), className)
|
7421
|
+
}
|
7422
|
+
);
|
7423
|
+
var ImageContainer = ({ className, fullSize, ...rest }) => /* @__PURE__ */ React20.createElement(
|
7424
|
+
"div",
|
7425
|
+
{
|
7426
|
+
...rest,
|
7427
|
+
className: classNames(
|
7428
|
+
tw("-mx-4", {
|
7429
|
+
"-mt-4": Boolean(fullSize)
|
7430
|
+
}),
|
7431
|
+
className
|
7432
|
+
)
|
7433
|
+
}
|
7434
|
+
);
|
7684
7435
|
var classes = "w-full bg-cover object-cover";
|
7685
7436
|
var Image = ({ image, imageAlt, fullSize = false, imageHeight }) => /* @__PURE__ */ React20.createElement(
|
7686
7437
|
"img",
|
@@ -7694,15 +7445,9 @@ var Image = ({ image, imageAlt, fullSize = false, imageHeight }) => /* @__PURE__
|
|
7694
7445
|
style: { height: isNumber(imageHeight) ? `${imageHeight}px` : imageHeight }
|
7695
7446
|
}
|
7696
7447
|
);
|
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
|
-
};
|
7448
|
+
var Title = (props) => /* @__PURE__ */ React20.createElement(Box.Flex, { component: "div", alignItems: "center", gap: "2", ...props });
|
7449
|
+
var Content = ({ className, dense, ...rest }) => /* @__PURE__ */ React20.createElement("div", { ...rest, className: classNames(tw("flex flex-col", { "gap-4": !dense }), className) });
|
7450
|
+
var Actions = ({ className, dense, ...rest }) => /* @__PURE__ */ React20.createElement("div", { ...rest, className: classNames(tw("flex gap-3 items-center", { "pt-3 ": !dense }), className) });
|
7706
7451
|
Card.Label = Label;
|
7707
7452
|
Card.Title = Title;
|
7708
7453
|
Card.Content = Content;
|
@@ -7735,77 +7480,73 @@ import React21 from "react";
|
|
7735
7480
|
var import_minus2 = __toESM(require_minus());
|
7736
7481
|
var import_tick2 = __toESM(require_tick());
|
7737
7482
|
var Checkbox = React21.forwardRef(
|
7738
|
-
(
|
7739
|
-
|
7740
|
-
|
7741
|
-
"
|
7483
|
+
({ id, children, name, disabled = false, readOnly = false, indeterminate = false, ...props }, ref) => /* @__PURE__ */ React21.createElement(
|
7484
|
+
"span",
|
7485
|
+
{
|
7486
|
+
className: classNames(tw("inline-flex justify-center items-center self-center relative"), {
|
7487
|
+
"hover:border-intense peer-checked:border-primary-default": !disabled,
|
7488
|
+
"border-muted": disabled
|
7489
|
+
})
|
7490
|
+
},
|
7491
|
+
/* @__PURE__ */ React21.createElement(
|
7492
|
+
"input",
|
7742
7493
|
{
|
7743
|
-
|
7744
|
-
|
7745
|
-
|
7746
|
-
|
7747
|
-
|
7748
|
-
|
7749
|
-
|
7750
|
-
|
7751
|
-
|
7752
|
-
|
7753
|
-
|
7754
|
-
|
7755
|
-
|
7756
|
-
|
7757
|
-
|
7758
|
-
|
7759
|
-
|
7760
|
-
|
7494
|
+
id,
|
7495
|
+
ref,
|
7496
|
+
type: "checkbox",
|
7497
|
+
name,
|
7498
|
+
...props,
|
7499
|
+
className: classNames(
|
7500
|
+
tw("peer appearance-none outline-none w-5 h-5 rounded-sm border border-transparent", {
|
7501
|
+
"cursor-pointer checked:bg-primary-default": !disabled,
|
7502
|
+
"cursor-not-allowed bg-muted checked:bg-primary-muted": disabled
|
7503
|
+
})
|
7504
|
+
),
|
7505
|
+
readOnly,
|
7506
|
+
disabled
|
7507
|
+
}
|
7508
|
+
),
|
7509
|
+
/* @__PURE__ */ React21.createElement(
|
7510
|
+
Icon,
|
7511
|
+
{
|
7512
|
+
icon: indeterminate ? import_minus2.default : import_tick2.default,
|
7513
|
+
strokeWidth: "3px",
|
7514
|
+
className: classNames(
|
7515
|
+
tw(
|
7516
|
+
"absolute top-0 right-0",
|
7517
|
+
"pointer-events-none p-[2px] w-5 h-5",
|
7518
|
+
"text-transparent [&>path]:stroke-transparent [&>path]:stroke-[3px]",
|
7519
|
+
"rounded-sm border border-default peer-focus:border-info-default"
|
7761
7520
|
),
|
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
|
-
}
|
7521
|
+
// It seems that we can't combine peer selectors and use 'peer-checked:peer-disabled:bg-muted' style instead.
|
7522
|
+
{
|
7523
|
+
"border-default peer-hover:border-intense peer-checked:text-white peer-checked:[&>path]:stroke-white peer-checked:border-primary-default": !disabled,
|
7524
|
+
"border-muted peer-checked:text-primary-default peer-checked:[&>path]:stroke-primary-70 peer-checked:border-transparent": disabled
|
7525
|
+
}
|
7526
|
+
)
|
7527
|
+
}
|
7528
|
+
)
|
7529
|
+
)
|
7787
7530
|
);
|
7788
7531
|
|
7789
7532
|
// src/atoms/Chip/Chip.tsx
|
7790
7533
|
import React22 from "react";
|
7791
7534
|
var Container = React22.forwardRef(
|
7792
|
-
(
|
7793
|
-
|
7794
|
-
|
7795
|
-
|
7796
|
-
|
7797
|
-
|
7798
|
-
|
7799
|
-
|
7800
|
-
|
7801
|
-
|
7802
|
-
|
7803
|
-
|
7804
|
-
|
7805
|
-
|
7806
|
-
|
7807
|
-
);
|
7808
|
-
}
|
7535
|
+
({ dense = false, className, children, ...rest }, ref) => /* @__PURE__ */ React22.createElement(
|
7536
|
+
"span",
|
7537
|
+
{
|
7538
|
+
ref,
|
7539
|
+
className: classNames(
|
7540
|
+
tw("inline-flex items-center rounded-sm transition whitespace-nowrap", {
|
7541
|
+
"typography-small py-2 px-3 gap-x-3 leading-tight": !dense,
|
7542
|
+
"typography-caption py-1 px-2 gap-x-2": dense
|
7543
|
+
}),
|
7544
|
+
className
|
7545
|
+
),
|
7546
|
+
...rest
|
7547
|
+
},
|
7548
|
+
children
|
7549
|
+
)
|
7809
7550
|
);
|
7810
7551
|
var Chip = {
|
7811
7552
|
Container
|
@@ -7820,32 +7561,29 @@ import React24 from "react";
|
|
7820
7561
|
// src/atoms/RadioButton/RadioButton.tsx
|
7821
7562
|
import React23 from "react";
|
7822
7563
|
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
|
-
}
|
7564
|
+
({ id, children, name, disabled = false, readOnly = false, ...props }, ref) => /* @__PURE__ */ React23.createElement(
|
7565
|
+
"input",
|
7566
|
+
{
|
7567
|
+
id,
|
7568
|
+
ref,
|
7569
|
+
type: "radio",
|
7570
|
+
name,
|
7571
|
+
...props,
|
7572
|
+
className: classNames(
|
7573
|
+
tw(
|
7574
|
+
"inline-flex justify-center items-center self-center appearance-none",
|
7575
|
+
"w-5 h-5 p-[3px] rounded-full border border-default",
|
7576
|
+
"outline-none focus:border-info-default checked:bg-primary-default checked:shadow-bodyInset",
|
7577
|
+
{
|
7578
|
+
"cursor-pointer hover:border-intense checked:border-primary-default": !disabled,
|
7579
|
+
"cursor-not-allowed border-muted bg-muted checked:bg-primary-muted checked:border-transparent": disabled
|
7580
|
+
}
|
7581
|
+
)
|
7582
|
+
),
|
7583
|
+
readOnly,
|
7584
|
+
disabled
|
7585
|
+
}
|
7586
|
+
)
|
7849
7587
|
);
|
7850
7588
|
|
7851
7589
|
// src/atoms/Table/Table.tsx
|
@@ -7853,31 +7591,23 @@ var import_chevronDown3 = __toESM(require_chevronDown());
|
|
7853
7591
|
var import_chevronUp2 = __toESM(require_chevronUp());
|
7854
7592
|
var HeadContext = React24.createContext(null);
|
7855
7593
|
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);
|
7594
|
+
var Table = ({ children, ariaLabel, className, ...rest }) => {
|
7595
|
+
return /* @__PURE__ */ React24.createElement("table", { ...rest, className: classNames(tableClassNames, className), "aria-label": ariaLabel }, children);
|
7867
7596
|
};
|
7597
|
+
var TableHead = ({ children, sticky, ...rest }) => /* @__PURE__ */ React24.createElement("thead", { ...rest }, /* @__PURE__ */ React24.createElement("tr", null, /* @__PURE__ */ React24.createElement(HeadContext.Provider, { value: { children, sticky } }, children)));
|
7598
|
+
var TableBody = ({ children, ...rest }) => /* @__PURE__ */ React24.createElement("tbody", { ...rest }, children);
|
7868
7599
|
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
|
-
};
|
7600
|
+
var TableRow = ({ children, className, disabled, ...rest }) => /* @__PURE__ */ React24.createElement(
|
7601
|
+
"tr",
|
7602
|
+
{
|
7603
|
+
...rest,
|
7604
|
+
...{ inert: disabled ? "" : void 0 },
|
7605
|
+
className: classNames(rowClassNames, className, {
|
7606
|
+
"opacity-70": disabled
|
7607
|
+
})
|
7608
|
+
},
|
7609
|
+
children
|
7610
|
+
);
|
7881
7611
|
var cellClassNames = tw("px-4 border-b typography-small leading-[18px]");
|
7882
7612
|
var getBodyCellClassNames = (table = true, stickyColumn) => tw("text-default py-3", {
|
7883
7613
|
"h-[50px]": table,
|
@@ -7900,12 +7630,12 @@ var getHeadCellClassNames = (sticky = true, stickyColumn) => {
|
|
7900
7630
|
) : common;
|
7901
7631
|
};
|
7902
7632
|
var TableCell = React24.forwardRef(
|
7903
|
-
(
|
7904
|
-
var _b = _a, { children, className, stickyColumn, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "stickyColumn", "align"]);
|
7633
|
+
({ children, className, stickyColumn, align = "left", ...rest }, ref) => {
|
7905
7634
|
const headContext = React24.useContext(HeadContext);
|
7906
7635
|
return headContext ? /* @__PURE__ */ React24.createElement(
|
7907
7636
|
"th",
|
7908
|
-
|
7637
|
+
{
|
7638
|
+
...rest,
|
7909
7639
|
ref,
|
7910
7640
|
className: classNames(
|
7911
7641
|
cellClassNames,
|
@@ -7913,11 +7643,12 @@ var TableCell = React24.forwardRef(
|
|
7913
7643
|
getAlignClassNames(align),
|
7914
7644
|
className
|
7915
7645
|
)
|
7916
|
-
}
|
7646
|
+
},
|
7917
7647
|
children
|
7918
7648
|
) : /* @__PURE__ */ React24.createElement(
|
7919
7649
|
"td",
|
7920
|
-
|
7650
|
+
{
|
7651
|
+
...rest,
|
7921
7652
|
ref,
|
7922
7653
|
className: classNames(
|
7923
7654
|
cellClassNames,
|
@@ -7925,37 +7656,33 @@ var TableCell = React24.forwardRef(
|
|
7925
7656
|
getAlignClassNames(align),
|
7926
7657
|
className
|
7927
7658
|
)
|
7928
|
-
}
|
7659
|
+
},
|
7929
7660
|
children
|
7930
7661
|
);
|
7931
7662
|
}
|
7932
7663
|
);
|
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)));
|
7664
|
+
var TableSelectCell = ({ ariaLabel, ...props }) => {
|
7665
|
+
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
7666
|
};
|
7937
7667
|
var getSortCellButtonClassNames = (align) => tw("group flex items-center gap-x-4 text-muted", { "flex-row-reverse": align === "right" });
|
7938
7668
|
var getSortCellIconClassNames = (active) => {
|
7939
7669
|
return tw("text-[9px]", active ? "text-default" : "text-inactive");
|
7940
7670
|
};
|
7941
7671
|
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
|
-
}
|
7672
|
+
({ 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(
|
7673
|
+
"div",
|
7674
|
+
{
|
7675
|
+
"data-sort-icons": true,
|
7676
|
+
className: tw("flex flex-col", {
|
7677
|
+
"invisible group-hover:visible": direction === "none"
|
7678
|
+
})
|
7679
|
+
},
|
7680
|
+
/* @__PURE__ */ React24.createElement(InlineIcon, { icon: import_chevronUp2.default, className: getSortCellIconClassNames(direction === "ascending") }),
|
7681
|
+
/* @__PURE__ */ React24.createElement(InlineIcon, { icon: import_chevronDown3.default, className: getSortCellIconClassNames(direction === "descending") })
|
7682
|
+
)))
|
7956
7683
|
);
|
7957
7684
|
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
|
7685
|
+
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
7686
|
Table.Head = React24.memo(TableHead);
|
7960
7687
|
Table.Body = React24.memo(TableBody);
|
7961
7688
|
Table.Row = React24.memo(TableRow);
|
@@ -7972,126 +7699,97 @@ var getAlignClassNames2 = (align) => tw("flex items-center", {
|
|
7972
7699
|
"justify-center": align === "center",
|
7973
7700
|
"justify-start": align === "left" || align === void 0
|
7974
7701
|
});
|
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
|
-
)
|
7702
|
+
var DataList = ({ className, ...rest }) => /* @__PURE__ */ React25.createElement("div", { ...rest });
|
7703
|
+
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(
|
7704
|
+
"div",
|
7705
|
+
{
|
7706
|
+
className: tw("border-l border-default border-dashed flex-1", {
|
7707
|
+
"h-full": !isLast,
|
7708
|
+
"h-1/2": Boolean(isLast)
|
8038
7709
|
})
|
8039
|
-
|
8040
|
-
};
|
8041
|
-
var
|
8042
|
-
|
8043
|
-
|
8044
|
-
|
8045
|
-
|
8046
|
-
|
8047
|
-
|
8048
|
-
|
8049
|
-
|
8050
|
-
"
|
8051
|
-
|
8052
|
-
|
8053
|
-
|
8054
|
-
|
8055
|
-
|
8056
|
-
|
7710
|
+
}
|
7711
|
+
), /* @__PURE__ */ React25.createElement("div", { className: tw("border-t border-default border-dashed self-center w-[18px]") }));
|
7712
|
+
var HeadCell = ({
|
7713
|
+
className,
|
7714
|
+
sticky,
|
7715
|
+
align,
|
7716
|
+
stickyColumn,
|
7717
|
+
...rest
|
7718
|
+
}) => /* @__PURE__ */ React25.createElement(
|
7719
|
+
"div",
|
7720
|
+
{
|
7721
|
+
role: "columnheader",
|
7722
|
+
...rest,
|
7723
|
+
className: classNames(
|
7724
|
+
cellClassNames,
|
7725
|
+
getHeadCellClassNames(sticky, stickyColumn),
|
7726
|
+
getAlignClassNames2(align),
|
7727
|
+
className
|
7728
|
+
)
|
7729
|
+
}
|
7730
|
+
);
|
7731
|
+
var Cell = ({
|
7732
|
+
className,
|
7733
|
+
align,
|
7734
|
+
stickyColumn,
|
7735
|
+
...rest
|
7736
|
+
}) => /* @__PURE__ */ React25.createElement(
|
7737
|
+
"div",
|
7738
|
+
{
|
7739
|
+
...rest,
|
7740
|
+
role: "cell",
|
7741
|
+
className: classNames(
|
7742
|
+
cellClassNames,
|
7743
|
+
getBodyCellClassNames(false, stickyColumn),
|
7744
|
+
getAlignClassNames2(align),
|
7745
|
+
tw("border-default"),
|
7746
|
+
className
|
7747
|
+
)
|
7748
|
+
}
|
7749
|
+
);
|
7750
|
+
var Row = ({
|
7751
|
+
className,
|
7752
|
+
disabled,
|
7753
|
+
header,
|
7754
|
+
isGroup,
|
7755
|
+
active,
|
7756
|
+
noDivider,
|
7757
|
+
...rest
|
7758
|
+
}) => {
|
8057
7759
|
return /* @__PURE__ */ React25.createElement(
|
8058
7760
|
"div",
|
8059
|
-
|
8060
|
-
|
8061
|
-
|
7761
|
+
{
|
7762
|
+
...rest,
|
7763
|
+
role: isGroup ? "rowgroup" : "row",
|
7764
|
+
...{ inert: disabled ? "" : void 0 },
|
8062
7765
|
className: classNames(tw("contents"), className, {
|
8063
7766
|
"[&>*]:border-b-transparent": noDivider,
|
8064
7767
|
"children:opacity-70": disabled,
|
8065
7768
|
"[&>*]:bg-primary-active": active,
|
8066
7769
|
"[&>*]:hover:bg-muted": !disabled && !header
|
8067
7770
|
})
|
8068
|
-
}
|
7771
|
+
}
|
8069
7772
|
);
|
8070
7773
|
};
|
8071
|
-
var SubGroupSpacing = (
|
8072
|
-
|
8073
|
-
|
8074
|
-
|
8075
|
-
|
8076
|
-
|
8077
|
-
|
7774
|
+
var SubGroupSpacing = ({ className, divider, ...rest }) => /* @__PURE__ */ React25.createElement(
|
7775
|
+
"span",
|
7776
|
+
{
|
7777
|
+
...rest,
|
7778
|
+
"aria-hidden": true,
|
7779
|
+
className: classNames(tw("col-span-full h-6 bg-muted border-default", { "border-b": Boolean(divider) }), className)
|
7780
|
+
}
|
7781
|
+
);
|
7782
|
+
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(
|
7783
|
+
"div",
|
7784
|
+
{
|
7785
|
+
"data-sort-icons": true,
|
7786
|
+
className: tw("flex flex-col", {
|
7787
|
+
"invisible group-hover:visible": direction === "none"
|
8078
7788
|
})
|
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
|
-
};
|
7789
|
+
},
|
7790
|
+
/* @__PURE__ */ React25.createElement(InlineIcon, { icon: import_chevronUp3.default, className: getSortCellIconClassNames(direction === "ascending") }),
|
7791
|
+
/* @__PURE__ */ React25.createElement(InlineIcon, { icon: import_chevronDown4.default, className: getSortCellIconClassNames(direction === "descending") })
|
7792
|
+
)));
|
8095
7793
|
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
7794
|
DataList.EmptyGroup = EmptyGroup;
|
8097
7795
|
DataList.EmptyGroup.displayName = "DataList.EmptyGroup";
|
@@ -8107,42 +7805,31 @@ DataList.Row = Row;
|
|
8107
7805
|
DataList.Row.displayName = "DataList.Row";
|
8108
7806
|
DataList.TreeLine = TreeLine;
|
8109
7807
|
DataList.TreeLine.displayName = "DataList.TreeLine";
|
8110
|
-
var ToolbarContainer = (
|
8111
|
-
|
8112
|
-
|
8113
|
-
|
8114
|
-
|
8115
|
-
|
8116
|
-
|
8117
|
-
|
8118
|
-
|
8119
|
-
|
8120
|
-
|
8121
|
-
|
8122
|
-
|
8123
|
-
);
|
8124
|
-
};
|
7808
|
+
var ToolbarContainer = ({ className, sticky = true, ...rest }) => /* @__PURE__ */ React25.createElement(
|
7809
|
+
"div",
|
7810
|
+
{
|
7811
|
+
...rest,
|
7812
|
+
role: "row",
|
7813
|
+
className: classNames(
|
7814
|
+
tw("col-span-full flex items-stretch py-4 px-l2 border-b border-default", {
|
7815
|
+
"sticky top-[47px] bg-body z-10": sticky
|
7816
|
+
}),
|
7817
|
+
className
|
7818
|
+
)
|
7819
|
+
}
|
7820
|
+
);
|
8125
7821
|
ToolbarContainer.displayName = "DataList.Toolbar.Container";
|
8126
|
-
var ToolbarGroup = (
|
8127
|
-
|
8128
|
-
|
8129
|
-
"
|
8130
|
-
|
8131
|
-
|
8132
|
-
|
8133
|
-
|
8134
|
-
})
|
8135
|
-
);
|
8136
|
-
};
|
7822
|
+
var ToolbarGroup = ({ className, ...rest }) => /* @__PURE__ */ React25.createElement(
|
7823
|
+
"div",
|
7824
|
+
{
|
7825
|
+
role: "cell",
|
7826
|
+
...rest,
|
7827
|
+
className: classNames(tw("flex items-center px-l2 border-r-1 border-muted last:border-r-0"), className)
|
7828
|
+
}
|
7829
|
+
);
|
8137
7830
|
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
|
-
};
|
7831
|
+
var ToolbarSelectionCount = ({ className, ...rest }) => /* @__PURE__ */ React25.createElement(Typography, { variant: "small", color: "muted", className: classNames(tw("whitespace-nowrap"), className), ...rest });
|
7832
|
+
var ToolbarActions = ({ className, ...rest }) => /* @__PURE__ */ React25.createElement("div", { ...rest, className: classNames(tw("flex items-center gap-x-5"), className) });
|
8146
7833
|
ToolbarActions.displayName = "DataList.Toolbar.Actions";
|
8147
7834
|
DataList.Toolbar = {
|
8148
7835
|
Container: ToolbarContainer,
|
@@ -8176,61 +7863,61 @@ import React28 from "react";
|
|
8176
7863
|
// src/molecules/Badge/Badge.tsx
|
8177
7864
|
import React27 from "react";
|
8178
7865
|
|
8179
|
-
// src/
|
7866
|
+
// src/atoms/Skeleton/Skeleton.tsx
|
8180
7867
|
import React26 from "react";
|
8181
7868
|
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
|
-
|
7869
|
+
import { tv } from "tailwind-variants";
|
7870
|
+
var skeletonStyles = tv({
|
7871
|
+
base: "bg-default",
|
7872
|
+
variants: {
|
7873
|
+
hasHeight: {
|
7874
|
+
false: "h-auto before:content-['_'] whitespace-pre origin-[0%_45%] scale-[0.55]"
|
7875
|
+
},
|
7876
|
+
display: {
|
7877
|
+
"block": "block",
|
7878
|
+
"inline-block": "inline-block"
|
7879
|
+
},
|
7880
|
+
rounded: {
|
7881
|
+
true: "rounded-full"
|
7882
|
+
},
|
7883
|
+
animate: {
|
7884
|
+
true: "animate-pulse"
|
7885
|
+
}
|
7886
|
+
}
|
7887
|
+
});
|
7888
|
+
var Skeleton = ({
|
7889
|
+
width,
|
7890
|
+
height,
|
7891
|
+
display = "block",
|
7892
|
+
className,
|
7893
|
+
animate = true,
|
7894
|
+
rounded = false,
|
7895
|
+
style,
|
7896
|
+
...rest
|
7897
|
+
}) => {
|
8200
7898
|
const styles = {
|
8201
7899
|
width: isNumber2(width) ? `${width}px` : width,
|
8202
7900
|
height: isNumber2(height) ? `${height}px` : height
|
8203
7901
|
};
|
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
|
-
);
|
7902
|
+
const classes2 = skeletonStyles({
|
7903
|
+
hasHeight: !isUndefined7(height),
|
7904
|
+
display,
|
7905
|
+
rounded,
|
7906
|
+
animate,
|
7907
|
+
className: ["Aquarium-Skeleton", className]
|
7908
|
+
});
|
7909
|
+
return /* @__PURE__ */ React26.createElement("div", { "aria-label": "Loading...", ...rest, style: { ...styles, ...style }, role: "progressbar", className: classes2 });
|
8224
7910
|
};
|
8225
7911
|
|
8226
7912
|
// src/molecules/Badge/Badge.tsx
|
8227
7913
|
var createBadge = (type, displayName) => {
|
8228
7914
|
const Component = (props) => {
|
8229
|
-
const
|
7915
|
+
const { kind = "filled", value, textClassname, dense = false, disabled = false, ...rest } = props;
|
8230
7916
|
const valueStr = value.toString();
|
8231
7917
|
return /* @__PURE__ */ React27.createElement(
|
8232
7918
|
"span",
|
8233
|
-
|
7919
|
+
{
|
7920
|
+
...rest,
|
8234
7921
|
className: classNames(
|
8235
7922
|
tw("inline-block text-center", {
|
8236
7923
|
"rounded-full": type === "default" || type === "chip",
|
@@ -8246,7 +7933,7 @@ var createBadge = (type, displayName) => {
|
|
8246
7933
|
}),
|
8247
7934
|
"Aquarium-Badge"
|
8248
7935
|
)
|
8249
|
-
}
|
7936
|
+
},
|
8250
7937
|
/* @__PURE__ */ React27.createElement(
|
8251
7938
|
"span",
|
8252
7939
|
{
|
@@ -8275,15 +7962,14 @@ var createBadge = (type, displayName) => {
|
|
8275
7962
|
Component.Skeleton.displayName = `${displayName}.Skeleton`;
|
8276
7963
|
return Component;
|
8277
7964
|
};
|
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") }));
|
7965
|
+
var NotificationBadge = ({ children, top = "-2px", right = "-2px", ...props }) => {
|
7966
|
+
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
7967
|
};
|
8282
|
-
var DotBadge = (
|
8283
|
-
var _b = _a, { dense = false } = _b, props = __objRest(_b, ["dense"]);
|
7968
|
+
var DotBadge = ({ dense = false, ...props }) => {
|
8284
7969
|
return /* @__PURE__ */ React27.createElement(
|
8285
7970
|
"span",
|
8286
|
-
|
7971
|
+
{
|
7972
|
+
...props,
|
8287
7973
|
className: classNames(
|
8288
7974
|
"Aquarium-Badge.Dot",
|
8289
7975
|
tw("rounded-full bg-current", {
|
@@ -8291,7 +7977,7 @@ var DotBadge = (_a) => {
|
|
8291
7977
|
"w-[9px] h-[9px]": !dense
|
8292
7978
|
})
|
8293
7979
|
)
|
8294
|
-
}
|
7980
|
+
}
|
8295
7981
|
);
|
8296
7982
|
};
|
8297
7983
|
var Badge = createBadge("default", "Badge");
|
@@ -8306,81 +7992,68 @@ var ChipBadge = createBadge("chip", "ChipBadge");
|
|
8306
7992
|
// src/atoms/DropdownMenu/DropdownMenu.tsx
|
8307
7993
|
var import_tick3 = __toESM(require_tick());
|
8308
7994
|
var DropdownMenu = React28.forwardRef(
|
8309
|
-
(
|
8310
|
-
|
8311
|
-
|
8312
|
-
|
8313
|
-
|
8314
|
-
|
8315
|
-
|
8316
|
-
|
8317
|
-
|
8318
|
-
|
8319
|
-
|
8320
|
-
|
8321
|
-
|
8322
|
-
);
|
8323
|
-
}
|
7995
|
+
({ minHeight, maxHeight = "100%", minWidth = "125px", maxWidth, className, children, ...props }, ref) => /* @__PURE__ */ React28.createElement(
|
7996
|
+
"div",
|
7997
|
+
{
|
7998
|
+
ref,
|
7999
|
+
style: { minHeight, maxHeight, minWidth, maxWidth },
|
8000
|
+
className: classNames(
|
8001
|
+
className,
|
8002
|
+
"Aquarium-DropdownMenu.Menu bg-popover-content w-full flex flex-col overflow-x-hidden typography-small text-default"
|
8003
|
+
),
|
8004
|
+
...props
|
8005
|
+
},
|
8006
|
+
children
|
8007
|
+
)
|
8324
8008
|
);
|
8325
8009
|
var ContentContainer = ({ children }) => /* @__PURE__ */ React28.createElement("div", { className: tw("p-3 overflow-y-auto overflow-x-hidden") }, children);
|
8326
8010
|
DropdownMenu.ContentContainer = ContentContainer;
|
8327
8011
|
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
|
-
}
|
8012
|
+
({ children, className, ...props }, ref) => /* @__PURE__ */ React28.createElement("ul", { ref, className: classNames(className, "outline-none ring-0"), ...props }, children)
|
8332
8013
|
);
|
8333
8014
|
DropdownMenu.List = List;
|
8334
8015
|
var Group = React28.forwardRef(
|
8335
|
-
(
|
8336
|
-
|
8337
|
-
|
8338
|
-
|
8339
|
-
|
8340
|
-
|
8341
|
-
|
8342
|
-
|
8343
|
-
|
8344
|
-
|
8345
|
-
|
8346
|
-
), children);
|
8347
|
-
}
|
8016
|
+
({ className, title, titleProps, children, ...props }, ref) => /* @__PURE__ */ React28.createElement("li", { ref, ...props }, title && /* @__PURE__ */ React28.createElement(
|
8017
|
+
"div",
|
8018
|
+
{
|
8019
|
+
className: classNames(
|
8020
|
+
className,
|
8021
|
+
"Aquarium-DropdownMenu.Group p-3 text-inactive uppercase cursor-default typography-caption"
|
8022
|
+
),
|
8023
|
+
...titleProps
|
8024
|
+
},
|
8025
|
+
title
|
8026
|
+
), children)
|
8348
8027
|
);
|
8349
8028
|
DropdownMenu.Group = Group;
|
8350
8029
|
var Item2 = React28.forwardRef(
|
8351
|
-
(
|
8352
|
-
|
8353
|
-
|
8354
|
-
|
8355
|
-
|
8356
|
-
|
8357
|
-
|
8358
|
-
|
8359
|
-
|
8360
|
-
|
8361
|
-
|
8362
|
-
|
8363
|
-
|
8364
|
-
|
8365
|
-
|
8366
|
-
|
8367
|
-
|
8368
|
-
|
8369
|
-
);
|
8370
|
-
}
|
8030
|
+
({ kind, highlighted, selected, className, icon, showNotification = false, children, ...props }, ref) => /* @__PURE__ */ React28.createElement(
|
8031
|
+
"li",
|
8032
|
+
{
|
8033
|
+
ref,
|
8034
|
+
className: classNames(className, "Aquarium-DropdownMenu.Item flex items-center gap-x-3 p-3 outline-none", {
|
8035
|
+
"cursor-pointer hover:bg-muted": !props.disabled,
|
8036
|
+
"bg-muted": highlighted,
|
8037
|
+
"text-primary-intense": kind === "action" && !props.disabled,
|
8038
|
+
"text-danger-default": kind === "danger" && !props.disabled,
|
8039
|
+
"text-inactive cursor-not-allowed": props.disabled
|
8040
|
+
}),
|
8041
|
+
...props
|
8042
|
+
},
|
8043
|
+
icon && showNotification && /* @__PURE__ */ React28.createElement(Badge.Notification, null, /* @__PURE__ */ React28.createElement(InlineIcon, { icon })),
|
8044
|
+
icon && !showNotification && /* @__PURE__ */ React28.createElement(InlineIcon, { icon }),
|
8045
|
+
/* @__PURE__ */ React28.createElement("span", { className: tw("grow") }, children),
|
8046
|
+
selected && /* @__PURE__ */ React28.createElement(InlineIcon, { icon: import_tick3.default })
|
8047
|
+
)
|
8371
8048
|
);
|
8372
8049
|
DropdownMenu.Item = Item2;
|
8373
8050
|
var Description = ({ disabled, children }) => /* @__PURE__ */ React28.createElement(Typography2.Caption, { color: disabled ? "inactive" : "muted" }, children);
|
8374
8051
|
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]")) }));
|
8052
|
+
var Separator = ({ className, ...props }) => {
|
8053
|
+
return /* @__PURE__ */ React28.createElement("li", { ...props, className: classNames(className, tw("m-3 block bg-default h-[1px]")) });
|
8378
8054
|
};
|
8379
8055
|
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
|
-
};
|
8056
|
+
var EmptyStateContainer = ({ className, children, ...props }) => /* @__PURE__ */ React28.createElement("div", { className: classNames(tw("border border-dashed border-default p-3"), className), ...props }, children);
|
8384
8057
|
DropdownMenu.EmptyStateContainer = EmptyStateContainer;
|
8385
8058
|
|
8386
8059
|
// src/atoms/InputGroup/InputGroup.tsx
|
@@ -8391,38 +8064,23 @@ import React29 from "react";
|
|
8391
8064
|
import { isEmpty, mapValues, pick } from "lodash-es";
|
8392
8065
|
var breakpoints = Object.keys(tokens_default.screens);
|
8393
8066
|
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
|
-
]);
|
8067
|
+
({
|
8068
|
+
htmlTag = "div",
|
8069
|
+
ariaLabel,
|
8070
|
+
className,
|
8071
|
+
style,
|
8072
|
+
children,
|
8073
|
+
display,
|
8074
|
+
justifySelf,
|
8075
|
+
alignSelf,
|
8076
|
+
placeSelf,
|
8077
|
+
colStart,
|
8078
|
+
colEnd,
|
8079
|
+
rowSpan,
|
8080
|
+
rowStart,
|
8081
|
+
rowEnd,
|
8082
|
+
...props
|
8083
|
+
}) => {
|
8426
8084
|
const breakPointableProperties = pick(props, breakpoints);
|
8427
8085
|
const gridColumn = !isEmpty(breakPointableProperties) ? mapValues(breakPointableProperties, (value) => value === "full" ? "1 / -1" : value ? `span-${value}` : "auto") : void 0;
|
8428
8086
|
const hookStyle = useStyle({
|
@@ -8441,7 +8099,7 @@ var GridItem = Tailwindify(
|
|
8441
8099
|
return /* @__PURE__ */ React29.createElement(
|
8442
8100
|
HtmlElement,
|
8443
8101
|
{
|
8444
|
-
style:
|
8102
|
+
style: { ...hookStyle, ...style },
|
8445
8103
|
className,
|
8446
8104
|
"aria-label": ariaLabel ? ariaLabel : void 0
|
8447
8105
|
},
|
@@ -8450,7 +8108,7 @@ var GridItem = Tailwindify(
|
|
8450
8108
|
}
|
8451
8109
|
);
|
8452
8110
|
var Grid = (props) => {
|
8453
|
-
return /* @__PURE__ */ React29.createElement(GridComponent,
|
8111
|
+
return /* @__PURE__ */ React29.createElement(GridComponent, { ...props });
|
8454
8112
|
};
|
8455
8113
|
var GridComponent = Tailwindify(
|
8456
8114
|
({
|
@@ -8508,7 +8166,7 @@ var GridComponent = Tailwindify(
|
|
8508
8166
|
return /* @__PURE__ */ React29.createElement(
|
8509
8167
|
HtmlElement,
|
8510
8168
|
{
|
8511
|
-
style:
|
8169
|
+
style: { ...hookStyle, ...style },
|
8512
8170
|
className,
|
8513
8171
|
"aria-label": ariaLabel ? ariaLabel : void 0
|
8514
8172
|
},
|
@@ -8527,32 +8185,29 @@ var gridColumnStyles = {
|
|
8527
8185
|
"3": "grid-cols-3",
|
8528
8186
|
"auto": "auto-cols-fr"
|
8529
8187
|
};
|
8530
|
-
var InputGroup = (
|
8531
|
-
var _b = _a, { cols = "1", children } = _b, rest = __objRest(_b, ["cols", "children"]);
|
8188
|
+
var InputGroup = ({ cols = "1", children, ...rest }) => {
|
8532
8189
|
return /* @__PURE__ */ React30.createElement(
|
8533
8190
|
Grid,
|
8534
|
-
|
8191
|
+
{
|
8192
|
+
...rest,
|
8535
8193
|
display: "inline-grid",
|
8536
8194
|
colGap: "l4",
|
8537
8195
|
rowGap: "3",
|
8538
8196
|
cols: cols !== "auto" ? cols : void 0,
|
8539
8197
|
className: gridColumnStyles[cols]
|
8540
|
-
}
|
8198
|
+
},
|
8541
8199
|
children
|
8542
8200
|
);
|
8543
8201
|
};
|
8544
8202
|
|
8545
8203
|
// src/atoms/Link/Link.tsx
|
8546
8204
|
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
|
-
};
|
8205
|
+
var Link = ({ children, className, ...props }) => /* @__PURE__ */ React31.createElement("a", { className: classNames(className, linkStyle), ...props }, children);
|
8551
8206
|
|
8552
8207
|
// src/atoms/Modal/Modal.tsx
|
8553
8208
|
import React32 from "react";
|
8554
|
-
import { tv } from "tailwind-variants";
|
8555
|
-
var modalStyles =
|
8209
|
+
import { tv as tv2 } from "tailwind-variants";
|
8210
|
+
var modalStyles = tv2({
|
8556
8211
|
slots: {
|
8557
8212
|
overlay: "inset-0 overflow-y-auto z-modal fixed",
|
8558
8213
|
backdrop: "-z-10 fixed min-w-full min-h-full bg-body-intense opacity-70",
|
@@ -8647,163 +8302,110 @@ var modalStyles = tv({
|
|
8647
8302
|
}
|
8648
8303
|
]
|
8649
8304
|
});
|
8650
|
-
var Modal = (
|
8651
|
-
|
8652
|
-
|
8653
|
-
|
8654
|
-
|
8655
|
-
|
8656
|
-
|
8657
|
-
"children",
|
8658
|
-
"kind",
|
8659
|
-
"className",
|
8660
|
-
"open"
|
8661
|
-
]);
|
8305
|
+
var Modal = ({
|
8306
|
+
children,
|
8307
|
+
kind = "dialog",
|
8308
|
+
className,
|
8309
|
+
open,
|
8310
|
+
...rest
|
8311
|
+
}) => {
|
8662
8312
|
const { overlay } = modalStyles({ kind });
|
8663
|
-
return open ? /* @__PURE__ */ React32.createElement("div",
|
8313
|
+
return open ? /* @__PURE__ */ React32.createElement("div", { ...rest, className: overlay({ className }) }, children) : null;
|
8664
8314
|
};
|
8665
|
-
Modal.BackDrop = (
|
8666
|
-
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
8315
|
+
Modal.BackDrop = ({ className, ...rest }) => {
|
8667
8316
|
const { backdrop } = modalStyles();
|
8668
|
-
return /* @__PURE__ */ React32.createElement("div",
|
8317
|
+
return /* @__PURE__ */ React32.createElement("div", { ...rest, className: backdrop({ className }) });
|
8669
8318
|
};
|
8670
8319
|
Modal.Dialog = React32.forwardRef(
|
8671
|
-
(
|
8672
|
-
var _b = _a, { kind = "dialog", children, className, size = "md" } = _b, rest = __objRest(_b, ["kind", "children", "className", "size"]);
|
8320
|
+
({ kind = "dialog", children, className, size = "md", ...rest }, ref) => {
|
8673
8321
|
const { dialog } = modalStyles({ kind, size });
|
8674
|
-
return /* @__PURE__ */ React32.createElement("div",
|
8322
|
+
return /* @__PURE__ */ React32.createElement("div", { ref, "aria-modal": "true", ...rest, className: dialog({ className }) }, children);
|
8675
8323
|
}
|
8676
8324
|
);
|
8677
|
-
Modal.Header = (
|
8678
|
-
var _b = _a, { kind = "dialog", size = "md", children, className } = _b, rest = __objRest(_b, ["kind", "size", "children", "className"]);
|
8325
|
+
Modal.Header = ({ kind = "dialog", size = "md", children, className, ...rest }) => {
|
8679
8326
|
const { header } = modalStyles({ kind, size });
|
8680
|
-
return /* @__PURE__ */ React32.createElement("div",
|
8327
|
+
return /* @__PURE__ */ React32.createElement("div", { ...rest, className: header({ className }) }, children);
|
8681
8328
|
};
|
8682
|
-
Modal.HeaderImage = (
|
8683
|
-
var _b = _a, { backgroundImage, className } = _b, rest = __objRest(_b, ["backgroundImage", "className"]);
|
8329
|
+
Modal.HeaderImage = ({ backgroundImage, className, ...rest }) => {
|
8684
8330
|
const { headerImage } = modalStyles({ backgroundImage: Boolean(backgroundImage) });
|
8685
|
-
return backgroundImage ? /* @__PURE__ */ React32.createElement("img",
|
8331
|
+
return backgroundImage ? /* @__PURE__ */ React32.createElement("img", { "aria-hidden": true, src: backgroundImage, ...rest, className: headerImage({ className }) }) : /* @__PURE__ */ React32.createElement("div", { className: headerImage({ className }) });
|
8686
8332
|
};
|
8687
|
-
Modal.CloseButtonContainer = (
|
8688
|
-
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
8333
|
+
Modal.CloseButtonContainer = ({ className, ...rest }) => {
|
8689
8334
|
const { closeButtonContainer } = modalStyles();
|
8690
|
-
return /* @__PURE__ */ React32.createElement("div",
|
8335
|
+
return /* @__PURE__ */ React32.createElement("div", { ...rest, className: closeButtonContainer({ className }) });
|
8691
8336
|
};
|
8692
|
-
Modal.Title = (
|
8693
|
-
var _b = _a, { kind = "dialog", children, className } = _b, rest = __objRest(_b, ["kind", "children", "className"]);
|
8337
|
+
Modal.Title = ({ kind = "dialog", children, className, ...rest }) => {
|
8694
8338
|
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);
|
8339
|
+
return /* @__PURE__ */ React32.createElement(Typography, { htmlTag: "h2", variant: "subheading", color: "intense", className: title({ className }), ...rest }, children);
|
8700
8340
|
};
|
8701
|
-
Modal.
|
8702
|
-
|
8341
|
+
Modal.Subtitle = ({ children, ...rest }) => /* @__PURE__ */ React32.createElement(Typography, { variant: "small", color: "default", ...rest }, children);
|
8342
|
+
Modal.TitleContainer = ({ children, className, ...rest }) => {
|
8703
8343
|
const { titleContainer } = modalStyles();
|
8704
|
-
return /* @__PURE__ */ React32.createElement("div",
|
8344
|
+
return /* @__PURE__ */ React32.createElement("div", { ...rest, className: titleContainer({ className }) }, children);
|
8705
8345
|
};
|
8706
|
-
Modal.Body = (
|
8707
|
-
var _b = _a, { children, className, noFooter = false, maxHeight, style } = _b, rest = __objRest(_b, ["children", "className", "noFooter", "maxHeight", "style"]);
|
8346
|
+
Modal.Body = ({ children, className, noFooter = false, maxHeight, style, ...rest }) => {
|
8708
8347
|
const { body } = modalStyles();
|
8709
|
-
return /* @__PURE__ */ React32.createElement("div",
|
8348
|
+
return /* @__PURE__ */ React32.createElement("div", { ...rest, className: body({ noFooter, className }), style: { maxHeight, ...style } }, children);
|
8710
8349
|
};
|
8711
|
-
Modal.Footer = (
|
8712
|
-
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
8350
|
+
Modal.Footer = ({ children, className, ...rest }) => {
|
8713
8351
|
const { footer } = modalStyles();
|
8714
|
-
return /* @__PURE__ */ React32.createElement("div",
|
8352
|
+
return /* @__PURE__ */ React32.createElement("div", { ...rest, className: footer({ className }) }, children);
|
8715
8353
|
};
|
8716
|
-
Modal.Actions = (
|
8717
|
-
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
8354
|
+
Modal.Actions = ({ children, className, ...rest }) => {
|
8718
8355
|
const { actions } = modalStyles();
|
8719
|
-
return /* @__PURE__ */ React32.createElement("div",
|
8356
|
+
return /* @__PURE__ */ React32.createElement("div", { ...rest, className: actions({ className }) }, children);
|
8720
8357
|
};
|
8721
8358
|
|
8722
8359
|
// src/atoms/Navigation/Navigation.tsx
|
8723
8360
|
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
|
-
};
|
8361
|
+
var Navigation = ({
|
8362
|
+
className,
|
8363
|
+
children,
|
8364
|
+
"aria-label": ariaLabel,
|
8365
|
+
...rest
|
8366
|
+
}) => /* @__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));
|
8367
|
+
var Header = ({ className, ...rest }) => /* @__PURE__ */ React33.createElement("li", { ...rest, role: "presentation", className: classNames(tw("px-6 py-5"), className) });
|
8368
|
+
var Title2 = ({ className, ...props }) => /* @__PURE__ */ React33.createElement(Typography, { variant: "caption", className: classNames("uppercase text-muted", className), ...props });
|
8369
|
+
var Subtitle = ({ className, ...props }) => /* @__PURE__ */ React33.createElement(Typography, { variant: "small-strong", className: classNames("text-intense", className), ...props });
|
8370
|
+
var Footer = ({ className, ...rest }) => /* @__PURE__ */ React33.createElement("li", { ...rest, role: "presentation", className: classNames(tw("px-6 py-5 mt-auto"), className) });
|
8371
|
+
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) }));
|
8372
|
+
var Divider = ({ className, ...rest }) => /* @__PURE__ */ React33.createElement("li", { "aria-hidden": true, ...rest, className: classNames(tw("border-t-2 border-muted"), className) });
|
8373
|
+
var Item3 = ({ className, active, ...rest }) => /* @__PURE__ */ React33.createElement("li", { role: "presentation" }, /* @__PURE__ */ React33.createElement(
|
8374
|
+
"a",
|
8375
|
+
{
|
8376
|
+
...rest,
|
8377
|
+
role: "menuitem",
|
8378
|
+
className: classNames(
|
8379
|
+
tw("py-3 px-6 hover:bg-default cursor-pointer flex gap-4 items-center typography-small focusable", {
|
8380
|
+
"text-default": !active,
|
8381
|
+
"text-primary-intense": !!active
|
8382
|
+
}),
|
8383
|
+
className
|
8384
|
+
)
|
8385
|
+
}
|
8386
|
+
));
|
8387
|
+
var Submenu = ({
|
8388
|
+
children,
|
8389
|
+
className,
|
8390
|
+
title,
|
8391
|
+
id,
|
8392
|
+
...rest
|
8393
|
+
}) => /* @__PURE__ */ React33.createElement("li", { role: "presentation" }, /* @__PURE__ */ React33.createElement(
|
8394
|
+
"a",
|
8395
|
+
{
|
8396
|
+
role: "menuitem",
|
8397
|
+
"aria-haspopup": "true",
|
8398
|
+
href: "#",
|
8399
|
+
id,
|
8400
|
+
className: classNames(
|
8401
|
+
tw("py-3 pr-6 pl-3 hover:bg-default cursor-pointer typography-small focusable flex items-center w-full"),
|
8402
|
+
className
|
8403
|
+
),
|
8404
|
+
...rest
|
8405
|
+
},
|
8406
|
+
title
|
8407
|
+
), /* @__PURE__ */ React33.createElement("ul", { role: "menu", className: classNames(tw("flex flex-col")), "aria-labelledby": id }, children));
|
8408
|
+
var SubmenuItem = ({ className, active, ...rest }) => /* @__PURE__ */ React33.createElement(Navigation.Item, { ...rest, active, className: classNames(className, tw("pl-[56px]")) });
|
8807
8409
|
Header.Title = Title2;
|
8808
8410
|
Header.Subtitle = Subtitle;
|
8809
8411
|
Submenu.Item = SubmenuItem;
|
@@ -8816,63 +8418,41 @@ Navigation.Divider = Divider;
|
|
8816
8418
|
|
8817
8419
|
// src/atoms/PageHeader/PageHeader.tsx
|
8818
8420
|
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
|
-
};
|
8421
|
+
var PageHeader = ({ children, className, ...rest }) => /* @__PURE__ */ React34.createElement("div", { className: classNames(tw("flex flex-row gap-4 pb-6"), className), ...rest }, children);
|
8422
|
+
PageHeader.Container = ({ children, className, ...rest }) => /* @__PURE__ */ React34.createElement("div", { className: classNames(tw("flex flex-col grow gap-0"), className), ...rest }, children);
|
8423
|
+
PageHeader.TitleContainer = ({ children, className, ...rest }) => /* @__PURE__ */ React34.createElement("div", { className: classNames(tw("flex flex-col justify-center gap-2"), className), ...rest }, children);
|
8424
|
+
PageHeader.Title = ({ isSubHeader = false, children, ...rest }) => /* @__PURE__ */ React34.createElement(
|
8425
|
+
Typography2,
|
8426
|
+
{
|
8427
|
+
...rest,
|
8428
|
+
color: "intense",
|
8429
|
+
variant: isSubHeader ? "subheading" : "heading",
|
8430
|
+
htmlTag: isSubHeader ? "h2" : "h1"
|
8431
|
+
},
|
8432
|
+
children
|
8433
|
+
);
|
8434
|
+
PageHeader.Subtitle = ({ children, ...rest }) => /* @__PURE__ */ React34.createElement(Typography2.Small, { ...rest, color: "default" }, children);
|
8435
|
+
PageHeader.Chips = ({ children, className, ...rest }) => /* @__PURE__ */ React34.createElement("div", { className: classNames(tw("flex gap-3"), className), ...rest }, children);
|
8436
|
+
PageHeader.Actions = ({ children, className, ...rest }) => /* @__PURE__ */ React34.createElement("div", { className: classNames(tw("flex flex-row gap-4 self-start"), className), ...rest }, children);
|
8855
8437
|
|
8856
8438
|
// src/atoms/Popover/Popover.tsx
|
8857
8439
|
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
|
-
)
|
8440
|
+
var PopoverPanel = React35.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React35.createElement(
|
8441
|
+
"div",
|
8442
|
+
{
|
8443
|
+
ref,
|
8444
|
+
className: classNames(
|
8445
|
+
className,
|
8446
|
+
tw(
|
8447
|
+
"rounded-sm shadow-16dp bg-popover-content mt-1 overflow-y-auto flex flex-col border border-default outline-none"
|
8869
8448
|
)
|
8870
|
-
|
8871
|
-
|
8872
|
-
|
8873
|
-
|
8449
|
+
),
|
8450
|
+
...props
|
8451
|
+
},
|
8452
|
+
children
|
8453
|
+
));
|
8874
8454
|
PopoverPanel.displayName = "Popover.Panel";
|
8875
|
-
var PopoverUnderlay = React35.forwardRef((props, ref) => /* @__PURE__ */ React35.createElement("div",
|
8455
|
+
var PopoverUnderlay = React35.forwardRef((props, ref) => /* @__PURE__ */ React35.createElement("div", { ref, ...props, className: tw("fixed inset-0") }));
|
8876
8456
|
PopoverUnderlay.displayName = "Popover.Underlay";
|
8877
8457
|
var Popover = {
|
8878
8458
|
Panel: PopoverPanel,
|
@@ -8881,26 +8461,11 @@ var Popover = {
|
|
8881
8461
|
|
8882
8462
|
// src/atoms/PopoverDialog/PopoverDialog.tsx
|
8883
8463
|
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
|
-
};
|
8464
|
+
var Header2 = ({ children, className, ...rest }) => /* @__PURE__ */ React36.createElement("div", { ...rest, className: classNames(tw("p-5 gap-3 flex items-center"), className) }, children);
|
8465
|
+
var Title3 = ({ children, className, ...rest }) => /* @__PURE__ */ React36.createElement(Typography, { ...rest, htmlTag: "h1", variant: "small-strong" }, children);
|
8466
|
+
var Body = ({ children, className, ...rest }) => /* @__PURE__ */ React36.createElement(Typography, { ...rest, htmlTag: "div", variant: "caption", className: classNames(tw("px-5 overflow-y-auto"), className) }, children);
|
8467
|
+
var Footer2 = ({ children, className, ...rest }) => /* @__PURE__ */ React36.createElement("div", { ...rest, className: classNames(tw("p-5"), className) }, children);
|
8468
|
+
var Actions2 = ({ children, className, ...rest }) => /* @__PURE__ */ React36.createElement("div", { ...rest, className: classNames(tw("flex gap-4"), className) }, children);
|
8904
8469
|
var PopoverDialog = {
|
8905
8470
|
Header: Header2,
|
8906
8471
|
Title: Title3,
|
@@ -8912,28 +8477,26 @@ var PopoverDialog = {
|
|
8912
8477
|
// src/atoms/ProgressBar/ProgressBar.tsx
|
8913
8478
|
import React37 from "react";
|
8914
8479
|
import { clamp } from "lodash-es";
|
8915
|
-
var ProgressBar = (
|
8916
|
-
|
8917
|
-
|
8918
|
-
|
8919
|
-
|
8920
|
-
|
8921
|
-
|
8922
|
-
|
8923
|
-
);
|
8924
|
-
};
|
8480
|
+
var ProgressBar = ({ children, className, ...rest }) => /* @__PURE__ */ React37.createElement(
|
8481
|
+
"div",
|
8482
|
+
{
|
8483
|
+
...rest,
|
8484
|
+
className: classNames(tw("relative flex items-center w-full bg-muted h-2 rounded-full overflow-hidden"), className)
|
8485
|
+
},
|
8486
|
+
children
|
8487
|
+
);
|
8925
8488
|
var STATUS_COLORS = {
|
8926
8489
|
info: tw("bg-info-default"),
|
8927
8490
|
warning: tw("bg-warning-default"),
|
8928
8491
|
success: tw("bg-success-default"),
|
8929
8492
|
error: tw("bg-danger-intense")
|
8930
8493
|
};
|
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"]);
|
8494
|
+
ProgressBar.Indicator = ({ min, max, value, "aria-label": ariaLabel, status, className, ...rest }) => {
|
8933
8495
|
const completedPercentage = clamp((value - min) / (max - min) * 100, 0, 100);
|
8934
8496
|
return /* @__PURE__ */ React37.createElement(
|
8935
8497
|
"div",
|
8936
|
-
|
8498
|
+
{
|
8499
|
+
...rest,
|
8937
8500
|
className: classNames(
|
8938
8501
|
tw("h-2 rounded-full transition-all ease-in-out delay-150"),
|
8939
8502
|
STATUS_COLORS[status],
|
@@ -8945,77 +8508,53 @@ ProgressBar.Indicator = (_a) => {
|
|
8945
8508
|
"aria-valuenow": value,
|
8946
8509
|
"aria-valuemin": min,
|
8947
8510
|
"aria-valuemax": max
|
8948
|
-
}
|
8511
|
+
}
|
8949
8512
|
);
|
8950
8513
|
};
|
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
|
-
};
|
8514
|
+
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
8515
|
|
8956
8516
|
// src/atoms/Section/Section.tsx
|
8957
8517
|
import React38 from "react";
|
8958
8518
|
var import_caretUp2 = __toESM(require_caretUp());
|
8959
|
-
var Section2 = (
|
8960
|
-
|
8961
|
-
|
8962
|
-
|
8963
|
-
|
8964
|
-
|
8965
|
-
|
8966
|
-
|
8967
|
-
|
8968
|
-
|
8969
|
-
|
8970
|
-
|
8971
|
-
|
8519
|
+
var Section2 = ({
|
8520
|
+
children,
|
8521
|
+
className,
|
8522
|
+
...rest
|
8523
|
+
}) => /* @__PURE__ */ React38.createElement(Box, { component: "section", ...rest, className: classNames(tw("border border-muted"), className) }, children);
|
8524
|
+
Section2.Header = ({ children, className, expanded, ...rest }) => /* @__PURE__ */ React38.createElement(
|
8525
|
+
"div",
|
8526
|
+
{
|
8527
|
+
...rest,
|
8528
|
+
className: classNames(
|
8529
|
+
tw("px-6 flex gap-5 justify-between items-center h-[72px]", {
|
8530
|
+
"bg-muted": expanded
|
8531
|
+
}),
|
8532
|
+
className
|
8533
|
+
)
|
8534
|
+
},
|
8535
|
+
children
|
8536
|
+
);
|
8537
|
+
Section2.TitleContainer = React38.forwardRef(
|
8538
|
+
({ children, className, collapsible, ...rest }, ref) => /* @__PURE__ */ React38.createElement(
|
8972
8539
|
"div",
|
8973
|
-
|
8540
|
+
{
|
8541
|
+
...rest,
|
8542
|
+
ref,
|
8974
8543
|
className: classNames(
|
8975
|
-
tw("
|
8976
|
-
"
|
8544
|
+
tw("grow grid grid-cols-[auto_1fr] gap-x-3 items-center", {
|
8545
|
+
"cursor-pointer focus:outline-none focusable": collapsible
|
8977
8546
|
}),
|
8978
8547
|
className
|
8979
8548
|
)
|
8980
|
-
}
|
8549
|
+
},
|
8981
8550
|
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
|
-
}
|
8551
|
+
)
|
9001
8552
|
);
|
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
|
-
};
|
8553
|
+
Section2.Toggle = (props) => /* @__PURE__ */ React38.createElement(Icon, { ...props, icon: import_caretUp2.default, height: 22, width: 22 });
|
8554
|
+
Section2.Title = ({ children, ...rest }) => /* @__PURE__ */ React38.createElement(Typography2.Large, { ...rest, htmlTag: "h2", color: "intense", className: "flex gap-3 items-center" }, children);
|
8555
|
+
Section2.Subtitle = ({ children, ...rest }) => /* @__PURE__ */ React38.createElement(Typography2.Small, { ...rest, color: "default" }, children);
|
8556
|
+
Section2.Actions = ({ children, className, ...rest }) => /* @__PURE__ */ React38.createElement("div", { ...rest, className: classNames(tw("flex gap-4 justify-end"), className) }, children);
|
8557
|
+
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
8558
|
|
9020
8559
|
// src/atoms/Select/Select.tsx
|
9021
8560
|
import React39 from "react";
|
@@ -9024,172 +8563,146 @@ var import_chevronUp4 = __toESM(require_chevronUp());
|
|
9024
8563
|
var import_search2 = __toESM(require_search());
|
9025
8564
|
var import_tick4 = __toESM(require_tick());
|
9026
8565
|
function getOptionLabelBuiltin(option) {
|
9027
|
-
var _a;
|
9028
8566
|
if (option === null) {
|
9029
8567
|
return "";
|
9030
8568
|
}
|
9031
8569
|
if (typeof option === "string") {
|
9032
8570
|
return option;
|
9033
8571
|
}
|
9034
|
-
return
|
8572
|
+
return option.label ?? "";
|
9035
8573
|
}
|
9036
8574
|
function isOptionDisabledBuiltin(option) {
|
9037
8575
|
return !!option.disabled;
|
9038
8576
|
}
|
9039
8577
|
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 : [];
|
8578
|
+
const values = React39.Children.map(children, (c) => c?.props?.value);
|
8579
|
+
return values?.filter((v) => v !== void 0 && v !== null) ?? [];
|
9046
8580
|
};
|
9047
8581
|
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({
|
8582
|
+
({ variant = "default", className, ...props }, ref) => /* @__PURE__ */ React39.createElement(
|
8583
|
+
"div",
|
8584
|
+
{
|
9077
8585
|
ref,
|
9078
|
-
type: "text",
|
9079
|
-
"aria-required": required,
|
9080
8586
|
className: classNames(
|
9081
8587
|
className,
|
9082
|
-
"
|
8588
|
+
"relative rounded-sm typography-default-strong w-full flex flex-row items-center focus-visible:outline-0 focus-visible:border-info-default group",
|
8589
|
+
// group is used for <Combobox />'s clear selection button
|
9083
8590
|
{
|
9084
|
-
"
|
9085
|
-
"
|
9086
|
-
"
|
9087
|
-
"
|
8591
|
+
"border px-3 py-[6px]": variant !== "readOnly",
|
8592
|
+
"cursor-default": variant === "readOnly",
|
8593
|
+
"border-default": variant !== "error" && variant !== "readOnly",
|
8594
|
+
"border-danger-default": variant === "error",
|
8595
|
+
"hover:border-intense": variant !== "error" && variant !== "disabled" && variant !== "focused",
|
8596
|
+
"border-info-default": variant === "focused",
|
8597
|
+
"bg-body": variant !== "disabled",
|
8598
|
+
"cursor-not-allowed border-default bg-default": variant === "disabled"
|
9088
8599
|
}
|
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
|
-
}
|
8600
|
+
),
|
8601
|
+
...props
|
8602
|
+
}
|
8603
|
+
)
|
9106
8604
|
);
|
9107
|
-
var
|
9108
|
-
|
9109
|
-
|
9110
|
-
|
8605
|
+
var Input = React39.forwardRef(({ className, required, ...props }, ref) => /* @__PURE__ */ React39.createElement(
|
8606
|
+
"input",
|
8607
|
+
{
|
8608
|
+
ref,
|
8609
|
+
type: "text",
|
8610
|
+
"aria-required": required,
|
8611
|
+
className: classNames(
|
8612
|
+
className,
|
8613
|
+
"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",
|
8614
|
+
{
|
8615
|
+
"text-default": !props.disabled,
|
8616
|
+
"text-inactive": props.disabled,
|
8617
|
+
"bg-body": !props.readOnly,
|
8618
|
+
"cursor-default bg-transparent": props.readOnly
|
8619
|
+
}
|
8620
|
+
),
|
8621
|
+
...props
|
9111
8622
|
}
|
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({
|
8623
|
+
));
|
8624
|
+
var Menu = React39.forwardRef(
|
8625
|
+
({ maxHeight = "450px", className, children, ...props }, ref) => /* @__PURE__ */ React39.createElement(
|
8626
|
+
"ul",
|
8627
|
+
{
|
9123
8628
|
ref,
|
9124
|
-
|
9125
|
-
|
9126
|
-
|
9127
|
-
|
9128
|
-
}, props),
|
8629
|
+
style: { maxHeight },
|
8630
|
+
className: classNames(className, tw("text-default bg-body overflow-y-auto")),
|
8631
|
+
...props
|
8632
|
+
},
|
9129
8633
|
children
|
9130
|
-
)
|
9131
|
-
|
8634
|
+
)
|
8635
|
+
);
|
8636
|
+
var NoResults = React39.forwardRef(
|
8637
|
+
({ className, children, ...rest }, ref) => /* @__PURE__ */ React39.createElement("li", { ref, ...rest, className: classNames(tw("p-3 text-inactive typography-small"), className) }, children)
|
8638
|
+
);
|
8639
|
+
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));
|
8640
|
+
var Divider2 = (props) => /* @__PURE__ */ React39.createElement("div", { className: tw("border-b-1 border-muted mx-3 my-4"), ...props });
|
8641
|
+
var Group2 = React39.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React39.createElement(
|
8642
|
+
"li",
|
8643
|
+
{
|
8644
|
+
ref,
|
8645
|
+
className: classNames(
|
8646
|
+
className,
|
8647
|
+
"flex items-center gap-x-3 p-3 text-inactive uppercase cursor-default typography-caption mt-4 first:mt-0"
|
8648
|
+
),
|
8649
|
+
...props
|
8650
|
+
},
|
8651
|
+
children
|
8652
|
+
));
|
9132
8653
|
var endAdornmentSize = { width: 14, height: 14 };
|
9133
8654
|
var Item4 = React39.forwardRef(
|
9134
|
-
(
|
9135
|
-
|
9136
|
-
|
9137
|
-
|
9138
|
-
|
9139
|
-
|
9140
|
-
|
9141
|
-
|
9142
|
-
|
9143
|
-
|
9144
|
-
|
9145
|
-
|
9146
|
-
|
9147
|
-
|
9148
|
-
);
|
9149
|
-
}
|
8655
|
+
({ highlighted, selected, className, children, ...props }, ref) => /* @__PURE__ */ React39.createElement(
|
8656
|
+
"li",
|
8657
|
+
{
|
8658
|
+
ref,
|
8659
|
+
className: classNames(className, "flex items-center gap-x-3 p-3 typography-small", {
|
8660
|
+
"cursor-pointer hover:bg-muted": !props["aria-disabled"],
|
8661
|
+
"cursor-not-allowed opacity-40 grayscale": props["aria-disabled"],
|
8662
|
+
"bg-muted": highlighted
|
8663
|
+
}),
|
8664
|
+
...props
|
8665
|
+
},
|
8666
|
+
/* @__PURE__ */ React39.createElement("span", { className: tw("grow flex gap-x-3") }, children),
|
8667
|
+
selected ? /* @__PURE__ */ React39.createElement(InlineIcon, { icon: import_tick4.default, ...endAdornmentSize }) : /* @__PURE__ */ React39.createElement("div", { style: endAdornmentSize })
|
8668
|
+
)
|
9150
8669
|
);
|
9151
8670
|
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({
|
8671
|
+
({ className, dense, icon, onClick, children, ...props }, ref) => /* @__PURE__ */ React39.createElement(
|
8672
|
+
"li",
|
8673
|
+
{
|
9178
8674
|
ref,
|
9179
|
-
|
9180
|
-
|
9181
|
-
|
9182
|
-
|
9183
|
-
|
9184
|
-
|
9185
|
-
|
9186
|
-
|
9187
|
-
|
9188
|
-
|
9189
|
-
|
9190
|
-
|
9191
|
-
)
|
9192
|
-
|
8675
|
+
role: "button",
|
8676
|
+
onClick: () => !props.disabled && onClick(),
|
8677
|
+
className: classNames(className, "flex items-center gap-x-3 typography-small", {
|
8678
|
+
"p-3": !dense,
|
8679
|
+
"px-3 py-2": dense,
|
8680
|
+
"text-primary-intense cursor-pointer hover:text-primary-default": !props.disabled,
|
8681
|
+
"text-inactive cursor-not-allowed": props.disabled
|
8682
|
+
}),
|
8683
|
+
...props
|
8684
|
+
},
|
8685
|
+
icon && /* @__PURE__ */ React39.createElement(InlineIcon, { icon }),
|
8686
|
+
children
|
8687
|
+
)
|
8688
|
+
);
|
8689
|
+
var Toggle = React39.forwardRef(({ hasFocus, isOpen, ...props }, ref) => /* @__PURE__ */ React39.createElement(
|
8690
|
+
"button",
|
8691
|
+
{
|
8692
|
+
ref,
|
8693
|
+
type: "button",
|
8694
|
+
"aria-label": "Toggle",
|
8695
|
+
...props,
|
8696
|
+
className: tw("grow-0 leading-none", { "cursor-not-allowed": props.disabled ?? false })
|
8697
|
+
},
|
8698
|
+
/* @__PURE__ */ React39.createElement(
|
8699
|
+
InlineIcon,
|
8700
|
+
{
|
8701
|
+
color: props.disabled ? "inactive" : "default",
|
8702
|
+
icon: hasFocus ? import_search2.default : isOpen ? import_chevronUp4.default : import_chevronDown5.default
|
8703
|
+
}
|
8704
|
+
)
|
8705
|
+
));
|
9193
8706
|
var Select = {
|
9194
8707
|
InputContainer,
|
9195
8708
|
Input,
|
@@ -9206,65 +8719,53 @@ var Select = {
|
|
9206
8719
|
// src/atoms/Stepper/Stepper.tsx
|
9207
8720
|
import React40 from "react";
|
9208
8721
|
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
|
-
};
|
8722
|
+
var Stepper = ({ className, ...rest }) => /* @__PURE__ */ React40.createElement("div", { ...rest, className: classNames(className) });
|
8723
|
+
var ConnectorContainer = ({
|
8724
|
+
className,
|
8725
|
+
completed,
|
8726
|
+
dense,
|
8727
|
+
...rest
|
8728
|
+
}) => /* @__PURE__ */ React40.createElement(
|
8729
|
+
"div",
|
8730
|
+
{
|
8731
|
+
...rest,
|
8732
|
+
className: classNames(
|
8733
|
+
tw("absolute w-full -left-1/2", {
|
8734
|
+
"top-[3px] px-[14px]": Boolean(dense),
|
8735
|
+
"top-[14px] px-[20px]": !dense
|
8736
|
+
}),
|
8737
|
+
className
|
8738
|
+
)
|
8739
|
+
}
|
8740
|
+
);
|
8741
|
+
var Connector = ({ children, className, completed, dense, ...rest }) => /* @__PURE__ */ React40.createElement(
|
8742
|
+
"div",
|
8743
|
+
{
|
8744
|
+
...rest,
|
8745
|
+
className: classNames(
|
8746
|
+
tw("w-full", {
|
8747
|
+
"bg-intense": !completed,
|
8748
|
+
"bg-success-default": Boolean(completed),
|
8749
|
+
"h-[2px]": !dense,
|
8750
|
+
"h-[3px]": Boolean(dense)
|
8751
|
+
}),
|
8752
|
+
className
|
8753
|
+
)
|
8754
|
+
}
|
8755
|
+
);
|
8756
|
+
var Step = ({ className, state, ...rest }) => /* @__PURE__ */ React40.createElement(
|
8757
|
+
"div",
|
8758
|
+
{
|
8759
|
+
...rest,
|
8760
|
+
className: classNames(
|
8761
|
+
tw("flex flex-col items-center relative text-center", {
|
8762
|
+
"text-intense": state !== "inactive",
|
8763
|
+
"text-inactive": state === "inactive"
|
8764
|
+
}),
|
8765
|
+
className
|
8766
|
+
)
|
8767
|
+
}
|
8768
|
+
);
|
9268
8769
|
var getClassNames = (state) => tw("h-[32px] w-[32px] border-2", {
|
9269
8770
|
"border-intense": state === "active",
|
9270
8771
|
"border-default": state === "inactive",
|
@@ -9275,21 +8776,19 @@ var getDenseClassNames = (state) => tw("h-[8px] w-[8px]", {
|
|
9275
8776
|
"bg-intense": state === "inactive",
|
9276
8777
|
"text-success-default": state === "completed"
|
9277
8778
|
});
|
9278
|
-
var Indicator = (
|
9279
|
-
|
9280
|
-
|
9281
|
-
|
9282
|
-
|
9283
|
-
|
9284
|
-
|
9285
|
-
|
9286
|
-
|
9287
|
-
|
9288
|
-
|
9289
|
-
|
9290
|
-
|
9291
|
-
);
|
9292
|
-
};
|
8779
|
+
var Indicator = ({ children, className, state, dense, ...rest }) => /* @__PURE__ */ React40.createElement(
|
8780
|
+
"div",
|
8781
|
+
{
|
8782
|
+
...rest,
|
8783
|
+
className: classNames(
|
8784
|
+
"Aquarium-Stepper-Indicator",
|
8785
|
+
tw("rounded-full flex justify-center items-center mx-2 mb-3"),
|
8786
|
+
dense ? getDenseClassNames(state) : getClassNames(state),
|
8787
|
+
className
|
8788
|
+
)
|
8789
|
+
},
|
8790
|
+
state === "completed" ? /* @__PURE__ */ React40.createElement(InlineIcon, { icon: import_tick5.default }) : dense ? null : children
|
8791
|
+
);
|
9293
8792
|
Step.Indicator = Indicator;
|
9294
8793
|
Stepper.Step = Step;
|
9295
8794
|
ConnectorContainer.Connector = Connector;
|
@@ -9299,44 +8798,41 @@ Stepper.ConnectorContainer = ConnectorContainer;
|
|
9299
8798
|
import React41 from "react";
|
9300
8799
|
var import_ban2 = __toESM(require_ban());
|
9301
8800
|
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",
|
8801
|
+
({ 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(
|
8802
|
+
"input",
|
8803
|
+
{
|
8804
|
+
id,
|
8805
|
+
ref,
|
8806
|
+
type: "checkbox",
|
8807
|
+
name,
|
8808
|
+
...props,
|
8809
|
+
className: classNames(
|
8810
|
+
tw(
|
8811
|
+
"appearance-none peer/switch rounded-full inline-block w-[34px] h-[20px] transition duration-300",
|
8812
|
+
"outline-none focusable bg-intense",
|
8813
|
+
"cursor-pointer disabled:cursor-not-allowed",
|
9332
8814
|
{
|
9333
|
-
"
|
8815
|
+
"hover:bg-intense checked:bg-primary-default hover:checked:bg-primary-intense": !disabled,
|
8816
|
+
"bg-default checked:opacity-50 checked:bg-primary-muted": disabled
|
9334
8817
|
}
|
9335
8818
|
)
|
9336
|
-
|
9337
|
-
|
9338
|
-
|
9339
|
-
|
8819
|
+
),
|
8820
|
+
readOnly,
|
8821
|
+
disabled
|
8822
|
+
}
|
8823
|
+
), /* @__PURE__ */ React41.createElement(
|
8824
|
+
"span",
|
8825
|
+
{
|
8826
|
+
className: tw(
|
8827
|
+
"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",
|
8828
|
+
"bg-white left-2 peer-checked/switch:left-1 text-inactive peer-checked/switch:text-primary-muted",
|
8829
|
+
{
|
8830
|
+
"shadow-4dp": !disabled
|
8831
|
+
}
|
8832
|
+
)
|
8833
|
+
},
|
8834
|
+
disabled && /* @__PURE__ */ React41.createElement(Icon, { icon: import_ban2.default, width: "10px", height: "10px" })
|
8835
|
+
))
|
9340
8836
|
);
|
9341
8837
|
export {
|
9342
8838
|
Alert,
|