@aivenio/aquarium 6.0.1 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atoms.cjs +270 -238
- package/dist/atoms.mjs +265 -238
- package/dist/src/atoms/Button/Button.d.ts +1 -1
- package/dist/src/atoms/ChoiceChip/ChoiceChip.d.ts +11 -7
- package/dist/src/atoms/ChoiceChip/ChoiceChip.js +4 -4
- package/dist/src/atoms/CommandPalette/CommandPalette.d.ts +85 -0
- package/dist/src/atoms/CommandPalette/CommandPalette.js +33 -0
- package/dist/src/atoms/DropdownMenu/DropdownMenu.d.ts +131 -0
- package/dist/src/atoms/DropdownMenu/DropdownMenu.js +4 -4
- package/dist/src/atoms/Modal/Modal.js +2 -2
- package/dist/src/atoms/Section/Section.js +2 -2
- package/dist/src/atoms/index.d.ts +1 -0
- package/dist/src/atoms/index.js +2 -1
- package/dist/src/molecules/Alert/Alert.js +6 -6
- package/dist/src/molecules/Breadcrumbs/Breadcrumbs.js +3 -2
- package/dist/src/molecules/CommandPalette/CommandPalette.d.ts +48 -0
- package/dist/src/molecules/CommandPalette/CommandPalette.js +79 -0
- package/dist/src/molecules/CommandPalette/CommandPaletteProvider.d.ts +36 -0
- package/dist/src/molecules/CommandPalette/CommandPaletteProvider.js +119 -0
- package/dist/src/molecules/CommandPalette/rankCommands.d.ts +10 -0
- package/dist/src/molecules/CommandPalette/rankCommands.js +51 -0
- package/dist/src/molecules/CommandPalette/types.d.ts +39 -0
- package/dist/src/molecules/CommandPalette/types.js +17 -0
- package/dist/src/molecules/EmptyState/EmptyState.d.ts +2 -2
- package/dist/src/molecules/EmptyState/EmptyState.js +3 -3
- package/dist/src/molecules/Modal/Modal.js +2 -2
- package/dist/src/molecules/index.d.ts +1 -0
- package/dist/src/molecules/index.js +2 -1
- package/dist/src/utils/constants.d.ts +3 -3
- package/dist/src/utils/constants.js +4 -4
- package/dist/styles.css +106 -0
- package/dist/system.cjs +1499 -1214
- package/dist/system.mjs +1520 -1215
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/package.json +1 -2
package/dist/atoms.mjs
CHANGED
|
@@ -415,11 +415,11 @@ var warningSign_default = data15;
|
|
|
415
415
|
// src/utils/constants.ts
|
|
416
416
|
import { tv } from "tailwind-variants";
|
|
417
417
|
var inputStyles = tv({
|
|
418
|
-
base: "block w-full rounded
|
|
418
|
+
base: "block w-full rounded typography-default text-default disabled:cursor-not-allowed disabled:border-default disabled:bg-medium disabled:text-inactive placeholder:text-inactive focus:outline-none",
|
|
419
419
|
variants: {
|
|
420
420
|
readOnly: {
|
|
421
421
|
true: "border-none resize-none cursor-default bg-transparent",
|
|
422
|
-
false: "px-3 py-3 bg-
|
|
422
|
+
false: "px-3 py-3 bg-layer"
|
|
423
423
|
},
|
|
424
424
|
valid: {
|
|
425
425
|
true: "",
|
|
@@ -436,7 +436,7 @@ var inputStyles = tv({
|
|
|
436
436
|
}
|
|
437
437
|
});
|
|
438
438
|
var focusRingStyle = tv({
|
|
439
|
-
base: "focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-action-focus focus-visible:ring-offset-body rounded
|
|
439
|
+
base: "focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-action-focus focus-visible:ring-offset-body rounded"
|
|
440
440
|
});
|
|
441
441
|
var interactiveTextStyles = tv({
|
|
442
442
|
base: "text-primary-default active:text-primary-active focus-visible:text-primary-active hover:text-primary-graphic disabled:text-inactive visited:text-primary-intense"
|
|
@@ -3093,7 +3093,7 @@ var choiceChipClasses = tv10({
|
|
|
3093
3093
|
},
|
|
3094
3094
|
variants: {
|
|
3095
3095
|
selected: {
|
|
3096
|
-
true: { chip: "text-default border-primary-default border-2" },
|
|
3096
|
+
true: { chip: "text-default border-primary-default border-2 bg-primary-default" },
|
|
3097
3097
|
false: { chip: "text-muted border-default m-[1px]" }
|
|
3098
3098
|
},
|
|
3099
3099
|
dense: {
|
|
@@ -3116,6 +3116,7 @@ var ChoiceChip = ({
|
|
|
3116
3116
|
name,
|
|
3117
3117
|
value,
|
|
3118
3118
|
disabled,
|
|
3119
|
+
"aria-label": ariaLabel,
|
|
3119
3120
|
...rest
|
|
3120
3121
|
}) => {
|
|
3121
3122
|
const [selected, setSelected] = useControlledState(checked, defaultChecked, onChange);
|
|
@@ -3123,7 +3124,7 @@ var ChoiceChip = ({
|
|
|
3123
3124
|
const handleChange = () => {
|
|
3124
3125
|
setSelected(!selected);
|
|
3125
3126
|
};
|
|
3126
|
-
return /* @__PURE__ */ React25.createElement("label", { className: label(), ...rest }, /* @__PURE__ */ React25.createElement(
|
|
3127
|
+
return /* @__PURE__ */ React25.createElement("label", { className: label(), "aria-label": ariaLabel, ...rest }, /* @__PURE__ */ React25.createElement(
|
|
3127
3128
|
"input",
|
|
3128
3129
|
{
|
|
3129
3130
|
type: selectionMode,
|
|
@@ -3137,20 +3138,41 @@ var ChoiceChip = ({
|
|
|
3137
3138
|
), /* @__PURE__ */ React25.createElement("span", { className: chip() }, children));
|
|
3138
3139
|
};
|
|
3139
3140
|
|
|
3141
|
+
// src/atoms/CommandPalette/CommandPalette.tsx
|
|
3142
|
+
import React26 from "react";
|
|
3143
|
+
import { tv as tv11 } from "tailwind-variants";
|
|
3144
|
+
var commandPaletteStyles = tv11({
|
|
3145
|
+
slots: {
|
|
3146
|
+
modal: "w-full max-w-[640px] mx-4",
|
|
3147
|
+
dialog: "outline-none rounded max-h-[min(480px,60vh)] overflow-hidden",
|
|
3148
|
+
searchContainer: "flex items-center gap-x-3 p-5 border-b border-muted",
|
|
3149
|
+
searchInput: "outline-none grow bg-transparent [&::-webkit-search-cancel-button]:hidden",
|
|
3150
|
+
itemIcon: "text-muted group-data-[focused]:text-default",
|
|
3151
|
+
emptyState: "p-6 text-center text-muted typography-default"
|
|
3152
|
+
}
|
|
3153
|
+
});
|
|
3154
|
+
var EmptyState = ({ className, children, ...rest }) => {
|
|
3155
|
+
const { emptyState } = commandPaletteStyles();
|
|
3156
|
+
return /* @__PURE__ */ React26.createElement("div", { ...rest, className: emptyState({ className }) }, children || "No commands found.");
|
|
3157
|
+
};
|
|
3158
|
+
var CommandPalette = {
|
|
3159
|
+
EmptyState
|
|
3160
|
+
};
|
|
3161
|
+
|
|
3140
3162
|
// src/atoms/DataList/DataList.tsx
|
|
3141
|
-
import
|
|
3163
|
+
import React29 from "react";
|
|
3142
3164
|
import { clsx as clsx10 } from "clsx";
|
|
3143
|
-
import { tv as
|
|
3165
|
+
import { tv as tv14 } from "tailwind-variants";
|
|
3144
3166
|
|
|
3145
3167
|
// src/atoms/Table/Table.tsx
|
|
3146
|
-
import
|
|
3168
|
+
import React28 from "react";
|
|
3147
3169
|
import { clsx as clsx9 } from "clsx";
|
|
3148
|
-
import { tv as
|
|
3170
|
+
import { tv as tv13 } from "tailwind-variants";
|
|
3149
3171
|
|
|
3150
3172
|
// src/atoms/RadioButton/RadioButton.tsx
|
|
3151
|
-
import
|
|
3152
|
-
import { tv as
|
|
3153
|
-
var radioButtonClasses =
|
|
3173
|
+
import React27 from "react";
|
|
3174
|
+
import { tv as tv12 } from "tailwind-variants";
|
|
3175
|
+
var radioButtonClasses = tv12({
|
|
3154
3176
|
base: "inline-flex justify-center items-center self-center appearance-none w-5 h-5 p-[3px] rounded-full border border-default outline-none focus:border-action-focus checked:bg-primary-inverse checked:shadow-bodyInset",
|
|
3155
3177
|
variants: {
|
|
3156
3178
|
disabled: {
|
|
@@ -3159,8 +3181,8 @@ var radioButtonClasses = tv11({
|
|
|
3159
3181
|
}
|
|
3160
3182
|
}
|
|
3161
3183
|
});
|
|
3162
|
-
var RadioButton =
|
|
3163
|
-
({ id, children, name, disabled = false, readOnly = false, ...props }, ref) => /* @__PURE__ */
|
|
3184
|
+
var RadioButton = React27.forwardRef(
|
|
3185
|
+
({ id, children, name, disabled = false, readOnly = false, ...props }, ref) => /* @__PURE__ */ React27.createElement(
|
|
3164
3186
|
"input",
|
|
3165
3187
|
{
|
|
3166
3188
|
id,
|
|
@@ -3176,19 +3198,19 @@ var RadioButton = React26.forwardRef(
|
|
|
3176
3198
|
);
|
|
3177
3199
|
|
|
3178
3200
|
// src/atoms/Table/Table.tsx
|
|
3179
|
-
var HeadContext =
|
|
3180
|
-
var tableClasses =
|
|
3201
|
+
var HeadContext = React28.createContext(null);
|
|
3202
|
+
var tableClasses = tv13({
|
|
3181
3203
|
base: "w-full relative typography-default border-spacing-0 border-separate"
|
|
3182
3204
|
});
|
|
3183
|
-
var rowClassNamesBase =
|
|
3205
|
+
var rowClassNamesBase = tv13({
|
|
3184
3206
|
base: "children:border-default group children:last:border-b-0 hover:bg-muted"
|
|
3185
3207
|
});
|
|
3186
3208
|
var rowClassNames = rowClassNamesBase();
|
|
3187
|
-
var cellClassNamesBase =
|
|
3209
|
+
var cellClassNamesBase = tv13({
|
|
3188
3210
|
base: "px-4 border-b leading-[18px]"
|
|
3189
3211
|
});
|
|
3190
3212
|
var cellClassNames = cellClassNamesBase();
|
|
3191
|
-
var rowClasses =
|
|
3213
|
+
var rowClasses = tv13({
|
|
3192
3214
|
extend: rowClassNamesBase,
|
|
3193
3215
|
variants: {
|
|
3194
3216
|
disabled: {
|
|
@@ -3197,7 +3219,7 @@ var rowClasses = tv12({
|
|
|
3197
3219
|
}
|
|
3198
3220
|
}
|
|
3199
3221
|
});
|
|
3200
|
-
var bodyCellClasses =
|
|
3222
|
+
var bodyCellClasses = tv13({
|
|
3201
3223
|
base: "py-5 typography-default",
|
|
3202
3224
|
variants: {
|
|
3203
3225
|
table: {
|
|
@@ -3211,7 +3233,7 @@ var bodyCellClasses = tv12({
|
|
|
3211
3233
|
}
|
|
3212
3234
|
}
|
|
3213
3235
|
});
|
|
3214
|
-
var alignClasses =
|
|
3236
|
+
var alignClasses = tv13({
|
|
3215
3237
|
variants: {
|
|
3216
3238
|
align: {
|
|
3217
3239
|
left: "",
|
|
@@ -3225,7 +3247,7 @@ var alignClasses = tv12({
|
|
|
3225
3247
|
align: "undefined"
|
|
3226
3248
|
}
|
|
3227
3249
|
});
|
|
3228
|
-
var headCellClasses =
|
|
3250
|
+
var headCellClasses = tv13({
|
|
3229
3251
|
base: "py-4 text-left border-muted text-muted whitespace-nowrap min-h-[40px] typography-small-strong",
|
|
3230
3252
|
variants: {
|
|
3231
3253
|
sticky: {
|
|
@@ -3251,7 +3273,7 @@ var headCellClasses = tv12({
|
|
|
3251
3273
|
}
|
|
3252
3274
|
]
|
|
3253
3275
|
});
|
|
3254
|
-
var sortCellButtonClasses =
|
|
3276
|
+
var sortCellButtonClasses = tv13({
|
|
3255
3277
|
base: "group flex items-center gap-x-4 text-muted",
|
|
3256
3278
|
variants: {
|
|
3257
3279
|
align: {
|
|
@@ -3266,7 +3288,7 @@ var sortCellButtonClasses = tv12({
|
|
|
3266
3288
|
align: "undefined"
|
|
3267
3289
|
}
|
|
3268
3290
|
});
|
|
3269
|
-
var sortCellIconClasses =
|
|
3291
|
+
var sortCellIconClasses = tv13({
|
|
3270
3292
|
base: "text-[9px]",
|
|
3271
3293
|
variants: {
|
|
3272
3294
|
active: {
|
|
@@ -3275,7 +3297,7 @@ var sortCellIconClasses = tv12({
|
|
|
3275
3297
|
}
|
|
3276
3298
|
}
|
|
3277
3299
|
});
|
|
3278
|
-
var sortCellIconsContainerClasses =
|
|
3300
|
+
var sortCellIconsContainerClasses = tv13({
|
|
3279
3301
|
base: "flex flex-col",
|
|
3280
3302
|
variants: {
|
|
3281
3303
|
direction: {
|
|
@@ -3287,11 +3309,11 @@ var sortCellIconsContainerClasses = tv12({
|
|
|
3287
3309
|
}
|
|
3288
3310
|
});
|
|
3289
3311
|
var Table = ({ children, ariaLabel, className, ...rest }) => {
|
|
3290
|
-
return /* @__PURE__ */
|
|
3312
|
+
return /* @__PURE__ */ React28.createElement("table", { ...rest, className: tableClasses({ className }), "aria-label": ariaLabel }, children);
|
|
3291
3313
|
};
|
|
3292
|
-
var TableHead = ({ children, sticky, ...rest }) => /* @__PURE__ */
|
|
3293
|
-
var TableBody = ({ children, ...rest }) => /* @__PURE__ */
|
|
3294
|
-
var TableRow = ({ children, className, disabled = false, ...rest }) => /* @__PURE__ */
|
|
3314
|
+
var TableHead = ({ children, sticky, ...rest }) => /* @__PURE__ */ React28.createElement("thead", { ...rest }, /* @__PURE__ */ React28.createElement("tr", null, /* @__PURE__ */ React28.createElement(HeadContext.Provider, { value: { children, sticky } }, children)));
|
|
3315
|
+
var TableBody = ({ children, ...rest }) => /* @__PURE__ */ React28.createElement("tbody", { ...rest }, children);
|
|
3316
|
+
var TableRow = ({ children, className, disabled = false, ...rest }) => /* @__PURE__ */ React28.createElement(
|
|
3295
3317
|
"tr",
|
|
3296
3318
|
{
|
|
3297
3319
|
...rest,
|
|
@@ -3303,10 +3325,10 @@ var TableRow = ({ children, className, disabled = false, ...rest }) => /* @__PUR
|
|
|
3303
3325
|
var getBodyCellClassNames = (table = true, stickyColumn) => bodyCellClasses({ table, stickyColumn });
|
|
3304
3326
|
var getAlignClassNames = (align) => alignClasses({ align });
|
|
3305
3327
|
var getHeadCellClassNames = (sticky = true, stickyColumn) => headCellClasses({ sticky, stickyColumn });
|
|
3306
|
-
var TableCell =
|
|
3328
|
+
var TableCell = React28.forwardRef(
|
|
3307
3329
|
({ children, className, stickyColumn, align = "left", ...rest }, ref) => {
|
|
3308
|
-
const headContext =
|
|
3309
|
-
return headContext ? /* @__PURE__ */
|
|
3330
|
+
const headContext = React28.useContext(HeadContext);
|
|
3331
|
+
return headContext ? /* @__PURE__ */ React28.createElement(
|
|
3310
3332
|
"th",
|
|
3311
3333
|
{
|
|
3312
3334
|
...rest,
|
|
@@ -3319,7 +3341,7 @@ var TableCell = React27.forwardRef(
|
|
|
3319
3341
|
)
|
|
3320
3342
|
},
|
|
3321
3343
|
children
|
|
3322
|
-
) : /* @__PURE__ */
|
|
3344
|
+
) : /* @__PURE__ */ React28.createElement(
|
|
3323
3345
|
"td",
|
|
3324
3346
|
{
|
|
3325
3347
|
...rest,
|
|
@@ -3336,25 +3358,25 @@ var TableCell = React27.forwardRef(
|
|
|
3336
3358
|
}
|
|
3337
3359
|
);
|
|
3338
3360
|
var TableSelectCell = ({ ariaLabel, ...props }) => {
|
|
3339
|
-
return /* @__PURE__ */
|
|
3361
|
+
return /* @__PURE__ */ React28.createElement(Table.Cell, { className: "leading-[0px]" }, props.type === "radio" ? /* @__PURE__ */ React28.createElement(RadioButton, { "aria-label": ariaLabel, ...props }) : /* @__PURE__ */ React28.createElement(Checkbox, { "aria-label": ariaLabel, ...props }));
|
|
3340
3362
|
};
|
|
3341
3363
|
var getSortCellButtonClassNames = (align) => sortCellButtonClasses({ align });
|
|
3342
3364
|
var getSortCellIconClassNames = (active) => sortCellIconClasses({ active });
|
|
3343
|
-
var TableSortCell =
|
|
3344
|
-
({ children, direction = "none", onClick, ...rest }, ref) => /* @__PURE__ */
|
|
3365
|
+
var TableSortCell = React28.forwardRef(
|
|
3366
|
+
({ children, direction = "none", onClick, ...rest }, ref) => /* @__PURE__ */ React28.createElement(Table.Cell, { ...rest, "aria-sort": direction, ref }, /* @__PURE__ */ React28.createElement("span", { className: getSortCellButtonClassNames(rest.align), role: "button", tabIndex: -1, onClick }, children, /* @__PURE__ */ React28.createElement("div", { "data-sort-icons": true, className: sortCellIconsContainerClasses({ direction }) }, /* @__PURE__ */ React28.createElement(InlineIcon2, { icon: chevronUp_default, className: getSortCellIconClassNames(direction === "ascending") }), /* @__PURE__ */ React28.createElement(InlineIcon2, { icon: chevronDown_default, className: getSortCellIconClassNames(direction === "descending") }))))
|
|
3345
3367
|
);
|
|
3346
|
-
var Caption = ({ children }) => /* @__PURE__ */
|
|
3347
|
-
var Item = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */
|
|
3348
|
-
Table.Head =
|
|
3349
|
-
Table.Body =
|
|
3350
|
-
Table.Row =
|
|
3351
|
-
Table.Cell =
|
|
3352
|
-
Table.SortCell =
|
|
3353
|
-
Table.SelectCell =
|
|
3368
|
+
var Caption = ({ children }) => /* @__PURE__ */ React28.createElement(Typography2.Small, { htmlTag: "caption" }, children);
|
|
3369
|
+
var Item = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ React28.createElement("div", { className: "flex gap-4 items-center" }, image && /* @__PURE__ */ React28.createElement("img", { src: image, alt: imageAlt ?? "", style: { width: imageSize, height: imageSize } }), /* @__PURE__ */ React28.createElement("div", null, title, caption && /* @__PURE__ */ React28.createElement(Typography2.Small, null, caption)));
|
|
3370
|
+
Table.Head = React28.memo(TableHead);
|
|
3371
|
+
Table.Body = React28.memo(TableBody);
|
|
3372
|
+
Table.Row = React28.memo(TableRow);
|
|
3373
|
+
Table.Cell = React28.memo(TableCell);
|
|
3374
|
+
Table.SortCell = React28.memo(TableSortCell);
|
|
3375
|
+
Table.SelectCell = React28.memo(TableSelectCell);
|
|
3354
3376
|
Table.Caption = Caption;
|
|
3355
3377
|
|
|
3356
3378
|
// src/atoms/DataList/DataList.tsx
|
|
3357
|
-
var alignClasses2 =
|
|
3379
|
+
var alignClasses2 = tv14({
|
|
3358
3380
|
base: "flex items-center",
|
|
3359
3381
|
variants: {
|
|
3360
3382
|
align: {
|
|
@@ -3369,10 +3391,10 @@ var alignClasses2 = tv13({
|
|
|
3369
3391
|
align: "undefined"
|
|
3370
3392
|
}
|
|
3371
3393
|
});
|
|
3372
|
-
var treeLineClasses =
|
|
3394
|
+
var treeLineClasses = tv14({
|
|
3373
3395
|
base: "flex justify-start h-full mx-4"
|
|
3374
3396
|
});
|
|
3375
|
-
var treeLineInnerClasses =
|
|
3397
|
+
var treeLineInnerClasses = tv14({
|
|
3376
3398
|
base: "border-l border-default border-dashed flex-1",
|
|
3377
3399
|
variants: {
|
|
3378
3400
|
isLast: {
|
|
@@ -3381,7 +3403,7 @@ var treeLineInnerClasses = tv13({
|
|
|
3381
3403
|
}
|
|
3382
3404
|
}
|
|
3383
3405
|
});
|
|
3384
|
-
var rowClasses2 =
|
|
3406
|
+
var rowClasses2 = tv14({
|
|
3385
3407
|
base: "contents",
|
|
3386
3408
|
variants: {
|
|
3387
3409
|
noDivider: {
|
|
@@ -3409,7 +3431,7 @@ var rowClasses2 = tv13({
|
|
|
3409
3431
|
}
|
|
3410
3432
|
]
|
|
3411
3433
|
});
|
|
3412
|
-
var subGroupSpacingClasses =
|
|
3434
|
+
var subGroupSpacingClasses = tv14({
|
|
3413
3435
|
base: "col-span-full h-6 bg-muted border-default",
|
|
3414
3436
|
variants: {
|
|
3415
3437
|
divider: {
|
|
@@ -3418,7 +3440,7 @@ var subGroupSpacingClasses = tv13({
|
|
|
3418
3440
|
}
|
|
3419
3441
|
}
|
|
3420
3442
|
});
|
|
3421
|
-
var sortCellIconsClasses =
|
|
3443
|
+
var sortCellIconsClasses = tv14({
|
|
3422
3444
|
base: "flex flex-col",
|
|
3423
3445
|
variants: {
|
|
3424
3446
|
direction: {
|
|
@@ -3429,7 +3451,7 @@ var sortCellIconsClasses = tv13({
|
|
|
3429
3451
|
}
|
|
3430
3452
|
}
|
|
3431
3453
|
});
|
|
3432
|
-
var toolbarContainerClasses =
|
|
3454
|
+
var toolbarContainerClasses = tv14({
|
|
3433
3455
|
base: "col-span-full flex items-stretch py-4 px-l2 border-b border-muted",
|
|
3434
3456
|
variants: {
|
|
3435
3457
|
sticky: {
|
|
@@ -3438,27 +3460,27 @@ var toolbarContainerClasses = tv13({
|
|
|
3438
3460
|
}
|
|
3439
3461
|
}
|
|
3440
3462
|
});
|
|
3441
|
-
var toolbarGroupClasses =
|
|
3463
|
+
var toolbarGroupClasses = tv14({
|
|
3442
3464
|
base: "flex items-center px-l2 border-r-1 border-muted last:border-r-0"
|
|
3443
3465
|
});
|
|
3444
|
-
var toolbarActionsClasses =
|
|
3466
|
+
var toolbarActionsClasses = tv14({
|
|
3445
3467
|
base: "flex items-center gap-x-5"
|
|
3446
3468
|
});
|
|
3447
|
-
var toolbarSelectionCountClasses =
|
|
3469
|
+
var toolbarSelectionCountClasses = tv14({
|
|
3448
3470
|
base: "whitespace-nowrap"
|
|
3449
3471
|
});
|
|
3450
|
-
var emptyGroupClasses =
|
|
3472
|
+
var emptyGroupClasses = tv14({
|
|
3451
3473
|
base: "flex gap-3 items-center"
|
|
3452
3474
|
});
|
|
3453
|
-
var DataList = ({ className, ...rest }) => /* @__PURE__ */
|
|
3454
|
-
var TreeLine = ({ className, style, isLast = false, ...rest }) => /* @__PURE__ */
|
|
3475
|
+
var DataList = ({ className, ...rest }) => /* @__PURE__ */ React29.createElement("div", { ...rest });
|
|
3476
|
+
var TreeLine = ({ className, style, isLast = false, ...rest }) => /* @__PURE__ */ React29.createElement("div", { ...rest, className: clsx10(treeLineClasses(), className) }, /* @__PURE__ */ React29.createElement("div", { className: treeLineInnerClasses({ isLast }) }), /* @__PURE__ */ React29.createElement("div", { className: "border-t border-default border-dashed self-center w-[18px]" }));
|
|
3455
3477
|
var HeadCell = ({
|
|
3456
3478
|
className,
|
|
3457
3479
|
sticky,
|
|
3458
3480
|
align,
|
|
3459
3481
|
stickyColumn,
|
|
3460
3482
|
...rest
|
|
3461
|
-
}) => /* @__PURE__ */
|
|
3483
|
+
}) => /* @__PURE__ */ React29.createElement(
|
|
3462
3484
|
"div",
|
|
3463
3485
|
{
|
|
3464
3486
|
role: "columnheader",
|
|
@@ -3471,7 +3493,7 @@ var Cell = ({
|
|
|
3471
3493
|
align,
|
|
3472
3494
|
stickyColumn,
|
|
3473
3495
|
...rest
|
|
3474
|
-
}) => /* @__PURE__ */
|
|
3496
|
+
}) => /* @__PURE__ */ React29.createElement(
|
|
3475
3497
|
"div",
|
|
3476
3498
|
{
|
|
3477
3499
|
...rest,
|
|
@@ -3494,7 +3516,7 @@ var Row = ({
|
|
|
3494
3516
|
noDivider = false,
|
|
3495
3517
|
...rest
|
|
3496
3518
|
}) => {
|
|
3497
|
-
return /* @__PURE__ */
|
|
3519
|
+
return /* @__PURE__ */ React29.createElement(
|
|
3498
3520
|
"div",
|
|
3499
3521
|
{
|
|
3500
3522
|
...rest,
|
|
@@ -3512,9 +3534,9 @@ var Row = ({
|
|
|
3512
3534
|
}
|
|
3513
3535
|
);
|
|
3514
3536
|
};
|
|
3515
|
-
var SubGroupSpacing = ({ className, divider = false, ...rest }) => /* @__PURE__ */
|
|
3516
|
-
var SortCell = ({ children, direction = "none", onClick, sticky, ...rest }) => /* @__PURE__ */
|
|
3517
|
-
var EmptyGroup = ({ icon, children }) => /* @__PURE__ */
|
|
3537
|
+
var SubGroupSpacing = ({ className, divider = false, ...rest }) => /* @__PURE__ */ React29.createElement("span", { ...rest, "aria-hidden": true, className: clsx10(subGroupSpacingClasses({ divider }), className) });
|
|
3538
|
+
var SortCell = ({ children, direction = "none", onClick, sticky, ...rest }) => /* @__PURE__ */ React29.createElement(HeadCell, { ...rest, "aria-sort": direction, role: "columnheader", sticky }, /* @__PURE__ */ React29.createElement("span", { className: getSortCellButtonClassNames(rest.align), role: "button", tabIndex: -1, onClick }, children, /* @__PURE__ */ React29.createElement("div", { "data-sort-icons": true, className: sortCellIconsClasses({ direction }) }, /* @__PURE__ */ React29.createElement(InlineIcon2, { icon: chevronUp_default, className: getSortCellIconClassNames(direction === "ascending") }), /* @__PURE__ */ React29.createElement(InlineIcon2, { icon: chevronDown_default, className: getSortCellIconClassNames(direction === "descending") }))));
|
|
3539
|
+
var EmptyGroup = ({ icon, children }) => /* @__PURE__ */ React29.createElement("div", { className: emptyGroupClasses() }, icon && /* @__PURE__ */ React29.createElement(Icon2, { icon, width: 18 }), children);
|
|
3518
3540
|
DataList.EmptyGroup = EmptyGroup;
|
|
3519
3541
|
DataList.EmptyGroup.displayName = "DataList.EmptyGroup";
|
|
3520
3542
|
DataList.HeadCell = HeadCell;
|
|
@@ -3529,12 +3551,12 @@ DataList.Row = Row;
|
|
|
3529
3551
|
DataList.Row.displayName = "DataList.Row";
|
|
3530
3552
|
DataList.TreeLine = TreeLine;
|
|
3531
3553
|
DataList.TreeLine.displayName = "DataList.TreeLine";
|
|
3532
|
-
var ToolbarContainer = ({ className, sticky = true, ...rest }) => /* @__PURE__ */
|
|
3554
|
+
var ToolbarContainer = ({ className, sticky = true, ...rest }) => /* @__PURE__ */ React29.createElement("div", { ...rest, role: "row", className: clsx10(toolbarContainerClasses({ sticky }), className) });
|
|
3533
3555
|
ToolbarContainer.displayName = "DataList.Toolbar.Container";
|
|
3534
|
-
var ToolbarGroup = ({ className, ...rest }) => /* @__PURE__ */
|
|
3556
|
+
var ToolbarGroup = ({ className, ...rest }) => /* @__PURE__ */ React29.createElement("div", { role: "cell", ...rest, className: clsx10(toolbarGroupClasses(), className) });
|
|
3535
3557
|
ToolbarGroup.displayName = "DataList.Toolbar.Group";
|
|
3536
|
-
var ToolbarSelectionCount = ({ className, ...rest }) => /* @__PURE__ */
|
|
3537
|
-
var ToolbarActions = ({ className, ...rest }) => /* @__PURE__ */
|
|
3558
|
+
var ToolbarSelectionCount = ({ className, ...rest }) => /* @__PURE__ */ React29.createElement(Typography, { variant: "default", color: "muted", className: clsx10(toolbarSelectionCountClasses(), className), ...rest });
|
|
3559
|
+
var ToolbarActions = ({ className, ...rest }) => /* @__PURE__ */ React29.createElement("div", { ...rest, className: clsx10(toolbarActionsClasses(), className) });
|
|
3538
3560
|
ToolbarActions.displayName = "DataList.Toolbar.Actions";
|
|
3539
3561
|
DataList.Toolbar = {
|
|
3540
3562
|
Container: ToolbarContainer,
|
|
@@ -3544,7 +3566,7 @@ DataList.Toolbar = {
|
|
|
3544
3566
|
};
|
|
3545
3567
|
|
|
3546
3568
|
// src/atoms/Dialog/Dialog.tsx
|
|
3547
|
-
import
|
|
3569
|
+
import React30 from "react";
|
|
3548
3570
|
import { Dialog as AriaDialog } from "react-aria-components";
|
|
3549
3571
|
|
|
3550
3572
|
// node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
@@ -6023,7 +6045,7 @@ var DIALOG_ICONS_AND_COLORS = {
|
|
|
6023
6045
|
}
|
|
6024
6046
|
};
|
|
6025
6047
|
var Dialog = (props) => {
|
|
6026
|
-
return /* @__PURE__ */
|
|
6048
|
+
return /* @__PURE__ */ React30.createElement(
|
|
6027
6049
|
AriaDialog,
|
|
6028
6050
|
{
|
|
6029
6051
|
...props,
|
|
@@ -6033,7 +6055,7 @@ var Dialog = (props) => {
|
|
|
6033
6055
|
};
|
|
6034
6056
|
|
|
6035
6057
|
// src/atoms/DropdownMenu/DropdownMenu.tsx
|
|
6036
|
-
import
|
|
6058
|
+
import React33 from "react";
|
|
6037
6059
|
import {
|
|
6038
6060
|
Collection as AriaCollection,
|
|
6039
6061
|
composeRenderProps,
|
|
@@ -6043,17 +6065,17 @@ import {
|
|
|
6043
6065
|
MenuSection as AriaMenuSection
|
|
6044
6066
|
} from "react-aria-components";
|
|
6045
6067
|
import { clsx as clsx12 } from "clsx";
|
|
6046
|
-
import { tv as
|
|
6068
|
+
import { tv as tv16 } from "tailwind-variants";
|
|
6047
6069
|
|
|
6048
6070
|
// src/molecules/Badge/Badge.tsx
|
|
6049
|
-
import
|
|
6071
|
+
import React32 from "react";
|
|
6050
6072
|
import { clsx as clsx11 } from "clsx";
|
|
6051
6073
|
|
|
6052
6074
|
// src/atoms/Skeleton/Skeleton.tsx
|
|
6053
|
-
import
|
|
6075
|
+
import React31 from "react";
|
|
6054
6076
|
import { isNumber as isNumber3, isUndefined as isUndefined5 } from "lodash-es";
|
|
6055
|
-
import { tv as
|
|
6056
|
-
var skeletonStyles =
|
|
6077
|
+
import { tv as tv15 } from "tailwind-variants";
|
|
6078
|
+
var skeletonStyles = tv15({
|
|
6057
6079
|
base: "bg-medium",
|
|
6058
6080
|
variants: {
|
|
6059
6081
|
hasHeight: {
|
|
@@ -6092,7 +6114,7 @@ var Skeleton = ({
|
|
|
6092
6114
|
animate,
|
|
6093
6115
|
className: ["Aquarium-Skeleton", className]
|
|
6094
6116
|
});
|
|
6095
|
-
return /* @__PURE__ */
|
|
6117
|
+
return /* @__PURE__ */ React31.createElement("div", { "aria-label": "Loading...", ...rest, style: { ...styles, ...style }, role: "progressbar", className: classes });
|
|
6096
6118
|
};
|
|
6097
6119
|
|
|
6098
6120
|
// src/molecules/Badge/Badge.tsx
|
|
@@ -6100,7 +6122,7 @@ var createBadge = (type, displayName) => {
|
|
|
6100
6122
|
const Component = (props) => {
|
|
6101
6123
|
const { kind = "filled", value, textClassname, dense = false, disabled = false, ...rest } = props;
|
|
6102
6124
|
const valueStr = value.toString();
|
|
6103
|
-
return /* @__PURE__ */
|
|
6125
|
+
return /* @__PURE__ */ React32.createElement(
|
|
6104
6126
|
"span",
|
|
6105
6127
|
{
|
|
6106
6128
|
...rest,
|
|
@@ -6118,7 +6140,7 @@ var createBadge = (type, displayName) => {
|
|
|
6118
6140
|
"Aquarium-Badge"
|
|
6119
6141
|
)
|
|
6120
6142
|
},
|
|
6121
|
-
/* @__PURE__ */
|
|
6143
|
+
/* @__PURE__ */ React32.createElement(
|
|
6122
6144
|
"span",
|
|
6123
6145
|
{
|
|
6124
6146
|
className: clsx11(textClassname, "inline-block", {
|
|
@@ -6130,15 +6152,15 @@ var createBadge = (type, displayName) => {
|
|
|
6130
6152
|
);
|
|
6131
6153
|
};
|
|
6132
6154
|
Component.displayName = displayName;
|
|
6133
|
-
Component.Skeleton = () => /* @__PURE__ */
|
|
6155
|
+
Component.Skeleton = () => /* @__PURE__ */ React32.createElement(Skeleton, { height: 16, width: 16, display: "inline-block", className: "rounded-full" });
|
|
6134
6156
|
Component.Skeleton.displayName = `${displayName}.Skeleton`;
|
|
6135
6157
|
return Component;
|
|
6136
6158
|
};
|
|
6137
6159
|
var NotificationBadge = ({ children, top = "-2px", right = "-2px", className, ...props }) => {
|
|
6138
|
-
return /* @__PURE__ */
|
|
6160
|
+
return /* @__PURE__ */ React32.createElement("div", { ...props, className: clsx11("Aquarium-Badge.Notification relative inline-flex", className ?? "text-default") }, children, /* @__PURE__ */ React32.createElement("span", { style: { top, right }, className: "absolute rounded-full w-[6px] h-[6px] bg-danger-graphic" }));
|
|
6139
6161
|
};
|
|
6140
6162
|
var DotBadge = ({ dense = false, ...props }) => {
|
|
6141
|
-
return /* @__PURE__ */
|
|
6163
|
+
return /* @__PURE__ */ React32.createElement(
|
|
6142
6164
|
"span",
|
|
6143
6165
|
{
|
|
6144
6166
|
...props,
|
|
@@ -6158,17 +6180,17 @@ Badge.Dot.displayName = "Badge.Dot";
|
|
|
6158
6180
|
var ChipBadge = createBadge("chip", "ChipBadge");
|
|
6159
6181
|
|
|
6160
6182
|
// src/atoms/DropdownMenu/DropdownMenu.tsx
|
|
6161
|
-
var dropdownMenuStyles =
|
|
6183
|
+
var dropdownMenuStyles = tv16({
|
|
6162
6184
|
base: "bg-overlay w-full flex flex-col overflow-x-hidden typography-default text-default"
|
|
6163
6185
|
});
|
|
6164
6186
|
var DropdownMenu = ({ className, children, ...props }) => {
|
|
6165
|
-
return /* @__PURE__ */
|
|
6187
|
+
return /* @__PURE__ */ React33.createElement(AriaMenu, { className: dropdownMenuStyles({ className: ["Aquarium-DropdownMenu", className] }), ...props }, children);
|
|
6166
6188
|
};
|
|
6167
|
-
var MenuContainer = ({ minHeight, maxHeight = "100%", minWidth = "125px", maxWidth, children }) => /* @__PURE__ */
|
|
6189
|
+
var MenuContainer = ({ minHeight, maxHeight = "100%", minWidth = "125px", maxWidth, children }) => /* @__PURE__ */ React33.createElement("div", { style: { minHeight, maxHeight, minWidth, maxWidth }, className: "overflow-x-hidden flex flex-col" }, children);
|
|
6168
6190
|
DropdownMenu.MenuContainer = MenuContainer;
|
|
6169
|
-
var ScrollableContentContainer = ({ children }) => /* @__PURE__ */
|
|
6191
|
+
var ScrollableContentContainer = ({ children }) => /* @__PURE__ */ React33.createElement("div", { className: "p-3 overflow-y-auto overflow-x-hidden" }, children);
|
|
6170
6192
|
DropdownMenu.ScrollableContentContainer = ScrollableContentContainer;
|
|
6171
|
-
var dropdownMenuGroupStyles =
|
|
6193
|
+
var dropdownMenuGroupStyles = tv16({
|
|
6172
6194
|
slots: {
|
|
6173
6195
|
base: [
|
|
6174
6196
|
'[&:not(:first-child)]:before:content-[""] [&:not(:first-child)]:before:block',
|
|
@@ -6179,10 +6201,10 @@ var dropdownMenuGroupStyles = tv15({
|
|
|
6179
6201
|
});
|
|
6180
6202
|
var Group = ({ className, title, titleProps, children, ...props }) => {
|
|
6181
6203
|
const styles = dropdownMenuGroupStyles();
|
|
6182
|
-
return /* @__PURE__ */
|
|
6204
|
+
return /* @__PURE__ */ React33.createElement(AriaMenuSection, { className: styles.base({ className: "Aquarium-DropdownMenu.Group" }), ...props }, title && /* @__PURE__ */ React33.createElement(AriaHeader, { className: styles.title(), ...titleProps }, title), /* @__PURE__ */ React33.createElement(AriaCollection, null, children));
|
|
6183
6205
|
};
|
|
6184
6206
|
DropdownMenu.Group = Group;
|
|
6185
|
-
var dropdownMenuItemStyles =
|
|
6207
|
+
var dropdownMenuItemStyles = tv16({
|
|
6186
6208
|
base: "group flex items-center gap-x-3 p-3 outline-none cursor-pointer",
|
|
6187
6209
|
variants: {
|
|
6188
6210
|
isDisabled: {
|
|
@@ -6218,21 +6240,21 @@ var Item2 = ({
|
|
|
6218
6240
|
showNotification = false,
|
|
6219
6241
|
disabled,
|
|
6220
6242
|
...props
|
|
6221
|
-
}) => /* @__PURE__ */
|
|
6243
|
+
}) => /* @__PURE__ */ React33.createElement(
|
|
6222
6244
|
AriaMenuItem,
|
|
6223
6245
|
{
|
|
6224
6246
|
className: (values) => dropdownMenuItemStyles({ ...values, kind, className: ["Aquarium-DropdownMenu.Item", className] }),
|
|
6225
6247
|
isDisabled: disabled,
|
|
6226
6248
|
...props
|
|
6227
6249
|
},
|
|
6228
|
-
composeRenderProps(props.children, (children, { selectionMode, isSelected, isDisabled }) => /* @__PURE__ */
|
|
6250
|
+
composeRenderProps(props.children, (children, { selectionMode, isSelected, isDisabled }) => /* @__PURE__ */ React33.createElement(React33.Fragment, null, icon && showNotification && /* @__PURE__ */ React33.createElement(Badge.Notification, null, /* @__PURE__ */ React33.createElement(InlineIcon2, { icon })), icon && !showNotification && /* @__PURE__ */ React33.createElement(InlineIcon2, { icon }), /* @__PURE__ */ React33.createElement("span", { className: "grow" }, children, description && /* @__PURE__ */ React33.createElement(Typography2.Small, { color: isDisabled ? "inactive" : "muted" }, description)), selectionMode !== "none" && isSelected && /* @__PURE__ */ React33.createElement(InlineIcon2, { icon: tick_default })))
|
|
6229
6251
|
);
|
|
6230
6252
|
DropdownMenu.Item = Item2;
|
|
6231
|
-
var EmptyStateContainer = ({ className, children, ...props }) => /* @__PURE__ */
|
|
6253
|
+
var EmptyStateContainer = ({ className, children, ...props }) => /* @__PURE__ */ React33.createElement("div", { className: clsx12("border border-dashed border-default p-3", className), ...props }, children);
|
|
6232
6254
|
DropdownMenu.EmptyStateContainer = EmptyStateContainer;
|
|
6233
6255
|
|
|
6234
6256
|
// src/atoms/Filter/Filter.tsx
|
|
6235
|
-
import
|
|
6257
|
+
import React34 from "react";
|
|
6236
6258
|
import {
|
|
6237
6259
|
Button as AriaButton,
|
|
6238
6260
|
DatePickerStateContext as AriaDatePickerStateContext,
|
|
@@ -6240,12 +6262,12 @@ import {
|
|
|
6240
6262
|
Group as AriaGroup
|
|
6241
6263
|
} from "react-aria-components";
|
|
6242
6264
|
import { clsx as clsx13 } from "clsx";
|
|
6243
|
-
import { tv as
|
|
6265
|
+
import { tv as tv17 } from "tailwind-variants";
|
|
6244
6266
|
var DATE_FORMAT_OPTIONS = {
|
|
6245
6267
|
locale: "en-GB",
|
|
6246
6268
|
options: { day: "numeric", month: "numeric", year: "numeric" }
|
|
6247
6269
|
};
|
|
6248
|
-
var filterWrapper =
|
|
6270
|
+
var filterWrapper = tv17({
|
|
6249
6271
|
base: "rounded-full inline-flex items-center pressed:border-action-focus justify-between outline-0 outline-none border border-dashed border-default text-default bg-transparent",
|
|
6250
6272
|
variants: {
|
|
6251
6273
|
isHovered: {
|
|
@@ -6273,8 +6295,8 @@ var FilterTrigger = ({
|
|
|
6273
6295
|
clearSelectionEnabled = true,
|
|
6274
6296
|
...props
|
|
6275
6297
|
}) => {
|
|
6276
|
-
const ariaDatePickerState =
|
|
6277
|
-
const ariaDateRangePickerState =
|
|
6298
|
+
const ariaDatePickerState = React34.useContext(AriaDatePickerStateContext);
|
|
6299
|
+
const ariaDateRangePickerState = React34.useContext(AriaDateRangePickerStateContext);
|
|
6278
6300
|
const isUsedInsideDatePicker = !!ariaDatePickerState?.value;
|
|
6279
6301
|
const isUsedInsideDateRangePicker = !!ariaDateRangePickerState?.value.start && !!ariaDateRangePickerState.value.end;
|
|
6280
6302
|
const onClearDatePickerRelated = () => {
|
|
@@ -6286,14 +6308,14 @@ var FilterTrigger = ({
|
|
|
6286
6308
|
};
|
|
6287
6309
|
const hasValue = !!value || isUsedInsideDatePicker || isUsedInsideDateRangePicker;
|
|
6288
6310
|
const showClearButton = clearSelectionEnabled && (!!onClear && !!value || isUsedInsideDatePicker || isUsedInsideDateRangePicker);
|
|
6289
|
-
return /* @__PURE__ */
|
|
6311
|
+
return /* @__PURE__ */ React34.createElement(
|
|
6290
6312
|
AriaGroup,
|
|
6291
6313
|
{
|
|
6292
6314
|
...props,
|
|
6293
6315
|
isInvalid: error,
|
|
6294
6316
|
className: (renderProps) => filterWrapper({ ...renderProps, hasValue: hasValue || !!badge })
|
|
6295
6317
|
},
|
|
6296
|
-
/* @__PURE__ */
|
|
6318
|
+
/* @__PURE__ */ React34.createElement(React34.Fragment, null, /* @__PURE__ */ React34.createElement(
|
|
6297
6319
|
AriaButton,
|
|
6298
6320
|
{
|
|
6299
6321
|
onPress: () => {
|
|
@@ -6305,7 +6327,7 @@ var FilterTrigger = ({
|
|
|
6305
6327
|
"px-4": !showClearButton
|
|
6306
6328
|
})
|
|
6307
6329
|
},
|
|
6308
|
-
/* @__PURE__ */
|
|
6330
|
+
/* @__PURE__ */ React34.createElement("div", { className: "flex items-center gap-3 divide-x divide-grey-20" }, /* @__PURE__ */ React34.createElement("div", { className: "flex items-center gap-3" }, /* @__PURE__ */ React34.createElement("div", { className: "flex items-center gap-2" }, /* @__PURE__ */ React34.createElement(InlineIcon2, { icon }), /* @__PURE__ */ React34.createElement(Typography2.Default, null, labelText)), badge && /* @__PURE__ */ React34.createElement(Typography2, { color: "primary-default", className: "flex items-center" }, /* @__PURE__ */ React34.createElement(Badge, { dense: true, value: badge }))), hasValue && /* @__PURE__ */ React34.createElement("div", { className: "pl-3" }, /* @__PURE__ */ React34.createElement(
|
|
6309
6331
|
Typography2.Default,
|
|
6310
6332
|
{
|
|
6311
6333
|
className: clsx13("truncate", {
|
|
@@ -6316,10 +6338,10 @@ var FilterTrigger = ({
|
|
|
6316
6338
|
color: error ? "danger-default" : "primary-default"
|
|
6317
6339
|
},
|
|
6318
6340
|
value,
|
|
6319
|
-
isUsedInsideDatePicker && /* @__PURE__ */
|
|
6320
|
-
isUsedInsideDateRangePicker && /* @__PURE__ */
|
|
6341
|
+
isUsedInsideDatePicker && /* @__PURE__ */ React34.createElement(DateDisplay, { state: ariaDatePickerState }),
|
|
6342
|
+
isUsedInsideDateRangePicker && /* @__PURE__ */ React34.createElement(DateDisplay, { state: ariaDateRangePickerState })
|
|
6321
6343
|
)))
|
|
6322
|
-
), showClearButton && /* @__PURE__ */
|
|
6344
|
+
), showClearButton && /* @__PURE__ */ React34.createElement(
|
|
6323
6345
|
FilterClearButton,
|
|
6324
6346
|
{
|
|
6325
6347
|
onClear: () => {
|
|
@@ -6336,11 +6358,11 @@ var isDateRangePickerState = (state) => {
|
|
|
6336
6358
|
var DateDisplay = ({ state }) => {
|
|
6337
6359
|
const primary = isDateRangePickerState(state) ? state.formatValue(DATE_FORMAT_OPTIONS.locale, DATE_FORMAT_OPTIONS.options)?.start : state.formatValue(DATE_FORMAT_OPTIONS.locale, DATE_FORMAT_OPTIONS.options);
|
|
6338
6360
|
const secondary = isDateRangePickerState(state) ? state.formatValue(DATE_FORMAT_OPTIONS.locale, DATE_FORMAT_OPTIONS.options)?.end : void 0;
|
|
6339
|
-
return /* @__PURE__ */
|
|
6361
|
+
return /* @__PURE__ */ React34.createElement(Box.Flex, { gap: "2" }, /* @__PURE__ */ React34.createElement("span", null, primary), secondary && /* @__PURE__ */ React34.createElement(React34.Fragment, null, /* @__PURE__ */ React34.createElement("span", { "aria-hidden": true, className: "text-muted" }, "-"), /* @__PURE__ */ React34.createElement("span", null, secondary)));
|
|
6340
6362
|
};
|
|
6341
6363
|
var FilterClearButton = ({ onClear }) => (
|
|
6342
6364
|
// using a native HTML <button> here instead of <Button slot={null} /> from react-aria because react-aria <DialogTrigger> doesn't support it as a child. If we used <Button slot={null}>, the popover would open simultaneously with the clear callback, which is unintended behavior. Interestingly, this issue doesn't occur in react-aria's <DatePicker>, but for consistency and to avoid conflicts here, we're sticking with a plain button.
|
|
6343
|
-
/* @__PURE__ */
|
|
6365
|
+
/* @__PURE__ */ React34.createElement(
|
|
6344
6366
|
"button",
|
|
6345
6367
|
{
|
|
6346
6368
|
"aria-label": "Clear filter",
|
|
@@ -6355,7 +6377,7 @@ var FilterClearButton = ({ onClear }) => (
|
|
|
6355
6377
|
},
|
|
6356
6378
|
className: "py-[10px] pl-[6px] pr-4 inline-flex items-center hover:bg-medium focus:bg-medium outline-0 outline-none rounded-r-full"
|
|
6357
6379
|
},
|
|
6358
|
-
/* @__PURE__ */
|
|
6380
|
+
/* @__PURE__ */ React34.createElement(InlineIcon2, { icon: cross_default })
|
|
6359
6381
|
)
|
|
6360
6382
|
);
|
|
6361
6383
|
var Filter = () => null;
|
|
@@ -6363,14 +6385,14 @@ FilterTrigger.displayName = "Filter.Trigger";
|
|
|
6363
6385
|
Filter.Trigger = FilterTrigger;
|
|
6364
6386
|
|
|
6365
6387
|
// src/atoms/InputGroup/InputGroup.tsx
|
|
6366
|
-
import
|
|
6388
|
+
import React37 from "react";
|
|
6367
6389
|
|
|
6368
6390
|
// src/molecules/Grid/Grid.tsx
|
|
6369
|
-
import
|
|
6391
|
+
import React36 from "react";
|
|
6370
6392
|
import { isEmpty, mapValues, pick } from "lodash-es";
|
|
6371
6393
|
|
|
6372
6394
|
// src/molecules/Tailwindify/Tailwindify.tsx
|
|
6373
|
-
import
|
|
6395
|
+
import React35 from "react";
|
|
6374
6396
|
import { get as get2, isUndefined as isUndefined6 } from "lodash-es";
|
|
6375
6397
|
function Tailwindify(Component) {
|
|
6376
6398
|
return ({
|
|
@@ -6431,8 +6453,8 @@ function Tailwindify(Component) {
|
|
|
6431
6453
|
...otherProps,
|
|
6432
6454
|
style: finalStyle
|
|
6433
6455
|
};
|
|
6434
|
-
const childrenWithProps =
|
|
6435
|
-
if (!
|
|
6456
|
+
const childrenWithProps = React35.Children.map(children, (child, index) => {
|
|
6457
|
+
if (!React35.isValidElement(child)) {
|
|
6436
6458
|
return child;
|
|
6437
6459
|
}
|
|
6438
6460
|
const isLastChild = index === children.length - 1;
|
|
@@ -6453,9 +6475,9 @@ function Tailwindify(Component) {
|
|
|
6453
6475
|
}
|
|
6454
6476
|
const childStyle = get2(child, ["props", "style"], {});
|
|
6455
6477
|
const newProps = { ...childProps, style: { ...childStyle, ...additionalStyle } };
|
|
6456
|
-
return
|
|
6478
|
+
return React35.cloneElement(child, newProps);
|
|
6457
6479
|
});
|
|
6458
|
-
return /* @__PURE__ */
|
|
6480
|
+
return /* @__PURE__ */ React35.createElement(Component, { className, ...componentProps }, childrenWithProps);
|
|
6459
6481
|
};
|
|
6460
6482
|
}
|
|
6461
6483
|
|
|
@@ -6494,7 +6516,7 @@ var GridItem = Tailwindify(
|
|
|
6494
6516
|
gridRowEnd: rowEnd
|
|
6495
6517
|
});
|
|
6496
6518
|
const HtmlElement = htmlTag;
|
|
6497
|
-
return /* @__PURE__ */
|
|
6519
|
+
return /* @__PURE__ */ React36.createElement(
|
|
6498
6520
|
HtmlElement,
|
|
6499
6521
|
{
|
|
6500
6522
|
style: { ...hookStyle, ...style },
|
|
@@ -6506,7 +6528,7 @@ var GridItem = Tailwindify(
|
|
|
6506
6528
|
}
|
|
6507
6529
|
);
|
|
6508
6530
|
var Grid = (props) => {
|
|
6509
|
-
return /* @__PURE__ */
|
|
6531
|
+
return /* @__PURE__ */ React36.createElement(GridComponent, { ...props });
|
|
6510
6532
|
};
|
|
6511
6533
|
var GridComponent = Tailwindify(
|
|
6512
6534
|
({
|
|
@@ -6561,7 +6583,7 @@ var GridComponent = Tailwindify(
|
|
|
6561
6583
|
gridRowEnd: rowEnd
|
|
6562
6584
|
});
|
|
6563
6585
|
const HtmlElement = htmlTag;
|
|
6564
|
-
return /* @__PURE__ */
|
|
6586
|
+
return /* @__PURE__ */ React36.createElement(
|
|
6565
6587
|
HtmlElement,
|
|
6566
6588
|
{
|
|
6567
6589
|
style: { ...hookStyle, ...style },
|
|
@@ -6584,7 +6606,7 @@ var gridColumnStyles = {
|
|
|
6584
6606
|
"auto": "auto-cols-fr"
|
|
6585
6607
|
};
|
|
6586
6608
|
var InputGroup = ({ cols = "1", children, ...rest }) => {
|
|
6587
|
-
return /* @__PURE__ */
|
|
6609
|
+
return /* @__PURE__ */ React37.createElement(
|
|
6588
6610
|
Grid,
|
|
6589
6611
|
{
|
|
6590
6612
|
...rest,
|
|
@@ -6599,9 +6621,9 @@ var InputGroup = ({ cols = "1", children, ...rest }) => {
|
|
|
6599
6621
|
};
|
|
6600
6622
|
|
|
6601
6623
|
// src/atoms/Modal/Modal.tsx
|
|
6602
|
-
import
|
|
6603
|
-
import { tv as
|
|
6604
|
-
var bodyMaskClasses =
|
|
6624
|
+
import React38 from "react";
|
|
6625
|
+
import { tv as tv18 } from "tailwind-variants";
|
|
6626
|
+
var bodyMaskClasses = tv18({
|
|
6605
6627
|
variants: {
|
|
6606
6628
|
position: {
|
|
6607
6629
|
before: [
|
|
@@ -6633,7 +6655,7 @@ var bodyMaskClasses = tv17({
|
|
|
6633
6655
|
}
|
|
6634
6656
|
}
|
|
6635
6657
|
});
|
|
6636
|
-
var modalStyles =
|
|
6658
|
+
var modalStyles = tv18({
|
|
6637
6659
|
slots: {
|
|
6638
6660
|
overlay: "inset-0 overflow-y-auto z-modal fixed",
|
|
6639
6661
|
backdrop: "-z-10 fixed min-w-full min-h-full bg-backdrop",
|
|
@@ -6645,7 +6667,7 @@ var modalStyles = tv17({
|
|
|
6645
6667
|
subtitle: "max-w-[700px]",
|
|
6646
6668
|
closeButtonContainer: "absolute top-[24px] right-[28px]",
|
|
6647
6669
|
body: [
|
|
6648
|
-
"grow overflow-y-auto text-default flex flex-col",
|
|
6670
|
+
"grow overflow-y-auto text-default flex flex-col outline-none",
|
|
6649
6671
|
bodyMaskClasses({ position: "before" }),
|
|
6650
6672
|
bodyMaskClasses({ position: "after" })
|
|
6651
6673
|
],
|
|
@@ -6769,59 +6791,59 @@ var Modal = ({
|
|
|
6769
6791
|
...rest
|
|
6770
6792
|
}) => {
|
|
6771
6793
|
const { overlay } = modalStyles({ kind });
|
|
6772
|
-
return open ? /* @__PURE__ */
|
|
6794
|
+
return open ? /* @__PURE__ */ React38.createElement("div", { ...rest, className: overlay({ className }) }, children) : null;
|
|
6773
6795
|
};
|
|
6774
6796
|
Modal.BackDrop = ({ className, ...rest }) => {
|
|
6775
6797
|
const { backdrop } = modalStyles();
|
|
6776
|
-
return /* @__PURE__ */
|
|
6798
|
+
return /* @__PURE__ */ React38.createElement("div", { ...rest, className: backdrop({ className }) });
|
|
6777
6799
|
};
|
|
6778
|
-
Modal.Dialog =
|
|
6800
|
+
Modal.Dialog = React38.forwardRef(
|
|
6779
6801
|
({ kind = "dialog", children, className, size = "md", isResponsive = true, ...rest }, ref) => {
|
|
6780
6802
|
const { dialog } = modalStyles({ kind, size, isResponsive });
|
|
6781
|
-
return /* @__PURE__ */
|
|
6803
|
+
return /* @__PURE__ */ React38.createElement("div", { ref, "aria-modal": "true", ...rest, className: dialog({ className }) }, children);
|
|
6782
6804
|
}
|
|
6783
6805
|
);
|
|
6784
6806
|
Modal.Header = ({ kind = "dialog", size = "md", children, className, ...rest }) => {
|
|
6785
6807
|
const { header } = modalStyles({ kind, size });
|
|
6786
|
-
return /* @__PURE__ */
|
|
6808
|
+
return /* @__PURE__ */ React38.createElement("div", { ...rest, className: header({ className }) }, children);
|
|
6787
6809
|
};
|
|
6788
6810
|
Modal.HeaderImage = ({ backgroundImage, className, ...rest }) => {
|
|
6789
6811
|
const { headerImage } = modalStyles({ backgroundImage: Boolean(backgroundImage) });
|
|
6790
|
-
return backgroundImage ? /* @__PURE__ */
|
|
6812
|
+
return backgroundImage ? /* @__PURE__ */ React38.createElement("img", { "aria-hidden": true, src: backgroundImage, ...rest, className: headerImage({ className }) }) : /* @__PURE__ */ React38.createElement("div", { className: headerImage({ className }) });
|
|
6791
6813
|
};
|
|
6792
6814
|
Modal.CloseButtonContainer = ({ className, ...rest }) => {
|
|
6793
6815
|
const { closeButtonContainer } = modalStyles();
|
|
6794
|
-
return /* @__PURE__ */
|
|
6816
|
+
return /* @__PURE__ */ React38.createElement("div", { ...rest, className: closeButtonContainer({ className }) });
|
|
6795
6817
|
};
|
|
6796
6818
|
Modal.Title = ({ kind = "dialog", children, className, ...rest }) => {
|
|
6797
6819
|
const { title } = modalStyles({ kind });
|
|
6798
|
-
return /* @__PURE__ */
|
|
6820
|
+
return /* @__PURE__ */ React38.createElement(Typography, { htmlTag: "h2", variant: "subheading", color: "intense", className: title({ className }), ...rest }, children);
|
|
6799
6821
|
};
|
|
6800
6822
|
Modal.Subtitle = ({ children, className, ...rest }) => {
|
|
6801
6823
|
const { subtitle } = modalStyles();
|
|
6802
|
-
return /* @__PURE__ */
|
|
6824
|
+
return /* @__PURE__ */ React38.createElement(Typography, { variant: "default", color: "muted", className: subtitle({ className }), ...rest }, children);
|
|
6803
6825
|
};
|
|
6804
6826
|
Modal.TitleContainer = ({ children, className, ...rest }) => {
|
|
6805
6827
|
const { titleContainer: titleContainer2 } = modalStyles();
|
|
6806
|
-
return /* @__PURE__ */
|
|
6828
|
+
return /* @__PURE__ */ React38.createElement("div", { ...rest, className: titleContainer2({ className }) }, children);
|
|
6807
6829
|
};
|
|
6808
6830
|
Modal.Body = ({ children, className, noFooter = false, maxHeight, style, size, ...rest }) => {
|
|
6809
6831
|
const { body, bodyContent } = modalStyles({ size });
|
|
6810
|
-
return /* @__PURE__ */
|
|
6832
|
+
return /* @__PURE__ */ React38.createElement("div", { ...rest, className: body({ className }), style: { maxHeight, ...style } }, /* @__PURE__ */ React38.createElement("div", { className: bodyContent({ noFooter }) }, children));
|
|
6811
6833
|
};
|
|
6812
6834
|
Modal.Footer = ({ children, className, ...rest }) => {
|
|
6813
6835
|
const { footer } = modalStyles();
|
|
6814
|
-
return /* @__PURE__ */
|
|
6836
|
+
return /* @__PURE__ */ React38.createElement("div", { ...rest, className: footer({ className }) }, children);
|
|
6815
6837
|
};
|
|
6816
6838
|
Modal.Actions = ({ children, className, ...rest }) => {
|
|
6817
6839
|
const { actions: actions2 } = modalStyles();
|
|
6818
|
-
return /* @__PURE__ */
|
|
6840
|
+
return /* @__PURE__ */ React38.createElement("div", { ...rest, className: actions2({ className }) }, children);
|
|
6819
6841
|
};
|
|
6820
6842
|
|
|
6821
6843
|
// src/atoms/Navigation/Navigation.tsx
|
|
6822
|
-
import
|
|
6823
|
-
import { tv as
|
|
6824
|
-
var navigationClasses =
|
|
6844
|
+
import React39 from "react";
|
|
6845
|
+
import { tv as tv19 } from "tailwind-variants";
|
|
6846
|
+
var navigationClasses = tv19({
|
|
6825
6847
|
slots: {
|
|
6826
6848
|
nav: "bg-body h-full border-r border-muted",
|
|
6827
6849
|
list: "flex flex-col h-full",
|
|
@@ -6858,35 +6880,35 @@ var Navigation = ({
|
|
|
6858
6880
|
...rest
|
|
6859
6881
|
}) => {
|
|
6860
6882
|
const { nav, list } = navigationClasses();
|
|
6861
|
-
return /* @__PURE__ */
|
|
6883
|
+
return /* @__PURE__ */ React39.createElement("nav", { className: nav(), "aria-label": ariaLabel }, /* @__PURE__ */ React39.createElement("ul", { ...rest, className: list({ className }), role: "menubar" }, children));
|
|
6862
6884
|
};
|
|
6863
6885
|
var Header = ({ className, ...rest }) => {
|
|
6864
6886
|
const { header } = navigationClasses();
|
|
6865
|
-
return /* @__PURE__ */
|
|
6887
|
+
return /* @__PURE__ */ React39.createElement("li", { ...rest, role: "presentation", className: header({ className }) });
|
|
6866
6888
|
};
|
|
6867
6889
|
var Title2 = ({ className, ...props }) => {
|
|
6868
6890
|
const { headerTitle } = navigationClasses();
|
|
6869
|
-
return /* @__PURE__ */
|
|
6891
|
+
return /* @__PURE__ */ React39.createElement(Typography, { variant: "small", className: headerTitle({ className }), ...props });
|
|
6870
6892
|
};
|
|
6871
6893
|
var Subtitle = ({ className, ...props }) => {
|
|
6872
6894
|
const { headerSubtitle } = navigationClasses();
|
|
6873
|
-
return /* @__PURE__ */
|
|
6895
|
+
return /* @__PURE__ */ React39.createElement(Typography, { variant: "default-strong", className: headerSubtitle({ className }), ...props });
|
|
6874
6896
|
};
|
|
6875
6897
|
var Footer = ({ className, ...rest }) => {
|
|
6876
6898
|
const { footer } = navigationClasses();
|
|
6877
|
-
return /* @__PURE__ */
|
|
6899
|
+
return /* @__PURE__ */ React39.createElement("li", { ...rest, role: "presentation", className: footer({ className }) });
|
|
6878
6900
|
};
|
|
6879
6901
|
var Section = ({ title, className, ...rest }) => {
|
|
6880
6902
|
const { sectionContainer, sectionTitle, sectionList } = navigationClasses();
|
|
6881
|
-
return /* @__PURE__ */
|
|
6903
|
+
return /* @__PURE__ */ React39.createElement("li", { role: "presentation", className: sectionContainer() }, title && /* @__PURE__ */ React39.createElement("div", { className: sectionTitle({ className }) }, title), /* @__PURE__ */ React39.createElement("ul", { ...rest, role: "group", className: sectionList({ className }) }));
|
|
6882
6904
|
};
|
|
6883
6905
|
var Divider = ({ className, ...rest }) => {
|
|
6884
6906
|
const { divider } = navigationClasses();
|
|
6885
|
-
return /* @__PURE__ */
|
|
6907
|
+
return /* @__PURE__ */ React39.createElement("li", { "aria-hidden": true, ...rest, className: divider({ className }) });
|
|
6886
6908
|
};
|
|
6887
6909
|
var Item3 = ({ className, active = false, ...rest }) => {
|
|
6888
6910
|
const { itemContainer, itemAnchor } = navigationClasses({ active });
|
|
6889
|
-
return /* @__PURE__ */
|
|
6911
|
+
return /* @__PURE__ */ React39.createElement("li", { role: "presentation", className: itemContainer() }, /* @__PURE__ */ React39.createElement("a", { ...rest, role: "menuitem", className: itemAnchor({ className }) }));
|
|
6890
6912
|
};
|
|
6891
6913
|
var Submenu = ({
|
|
6892
6914
|
children,
|
|
@@ -6896,11 +6918,11 @@ var Submenu = ({
|
|
|
6896
6918
|
...rest
|
|
6897
6919
|
}) => {
|
|
6898
6920
|
const { submenuContainer, submenuAnchor, submenuList } = navigationClasses();
|
|
6899
|
-
return /* @__PURE__ */
|
|
6921
|
+
return /* @__PURE__ */ React39.createElement("li", { role: "presentation", className: submenuContainer() }, /* @__PURE__ */ React39.createElement("a", { role: "menuitem", "aria-haspopup": "true", href: "#", id, className: submenuAnchor({ className }), ...rest }, title), /* @__PURE__ */ React39.createElement("ul", { role: "menu", className: submenuList(), "aria-labelledby": id }, children));
|
|
6900
6922
|
};
|
|
6901
6923
|
var SubmenuItem = ({ className, active, ...rest }) => {
|
|
6902
6924
|
const { submenuItem } = navigationClasses();
|
|
6903
|
-
return /* @__PURE__ */
|
|
6925
|
+
return /* @__PURE__ */ React39.createElement(Navigation.Item, { ...rest, active, className: submenuItem({ className }) });
|
|
6904
6926
|
};
|
|
6905
6927
|
Header.Title = Title2;
|
|
6906
6928
|
Header.Subtitle = Subtitle;
|
|
@@ -6913,9 +6935,9 @@ Navigation.Submenu = Submenu;
|
|
|
6913
6935
|
Navigation.Divider = Divider;
|
|
6914
6936
|
|
|
6915
6937
|
// src/atoms/PageHeader/PageHeader.tsx
|
|
6916
|
-
import
|
|
6917
|
-
import { tv as
|
|
6918
|
-
var pageHeaderStyles =
|
|
6938
|
+
import React40 from "react";
|
|
6939
|
+
import { tv as tv20 } from "tailwind-variants";
|
|
6940
|
+
var pageHeaderStyles = tv20({
|
|
6919
6941
|
slots: {
|
|
6920
6942
|
base: "flex flex-row flex-wrap gap-4 pb-6",
|
|
6921
6943
|
container: "flex flex-col flex-1 gap-3 basis-[--aquarium-screens-xs]",
|
|
@@ -6925,10 +6947,10 @@ var pageHeaderStyles = tv19({
|
|
|
6925
6947
|
}
|
|
6926
6948
|
});
|
|
6927
6949
|
var { base, container, titleContainer, chips, actions } = pageHeaderStyles();
|
|
6928
|
-
var PageHeader = ({ children, className, ...rest }) => /* @__PURE__ */
|
|
6929
|
-
PageHeader.Container = ({ children, className, ...rest }) => /* @__PURE__ */
|
|
6930
|
-
PageHeader.TitleContainer = ({ children, className, ...rest }) => /* @__PURE__ */
|
|
6931
|
-
PageHeader.Title = ({ isSubHeader = false, children, ...rest }) => /* @__PURE__ */
|
|
6950
|
+
var PageHeader = ({ children, className, ...rest }) => /* @__PURE__ */ React40.createElement("div", { className: base({ className }), ...rest }, children);
|
|
6951
|
+
PageHeader.Container = ({ children, className, ...rest }) => /* @__PURE__ */ React40.createElement("div", { className: container({ className }), ...rest }, children);
|
|
6952
|
+
PageHeader.TitleContainer = ({ children, className, ...rest }) => /* @__PURE__ */ React40.createElement("div", { className: titleContainer({ className }), ...rest }, children);
|
|
6953
|
+
PageHeader.Title = ({ isSubHeader = false, children, ...rest }) => /* @__PURE__ */ React40.createElement(
|
|
6932
6954
|
Typography2,
|
|
6933
6955
|
{
|
|
6934
6956
|
...rest,
|
|
@@ -6938,26 +6960,26 @@ PageHeader.Title = ({ isSubHeader = false, children, ...rest }) => /* @__PURE__
|
|
|
6938
6960
|
},
|
|
6939
6961
|
children
|
|
6940
6962
|
);
|
|
6941
|
-
PageHeader.Subtitle = ({ children, ...rest }) => /* @__PURE__ */
|
|
6942
|
-
PageHeader.Chips = ({ children, className, ...rest }) => /* @__PURE__ */
|
|
6943
|
-
PageHeader.Actions = ({ children, className, ...rest }) => /* @__PURE__ */
|
|
6963
|
+
PageHeader.Subtitle = ({ children, ...rest }) => /* @__PURE__ */ React40.createElement(Typography2.Default, { ...rest, color: "default" }, children);
|
|
6964
|
+
PageHeader.Chips = ({ children, className, ...rest }) => /* @__PURE__ */ React40.createElement("div", { className: chips({ className }), ...rest }, children);
|
|
6965
|
+
PageHeader.Actions = ({ children, className, ...rest }) => /* @__PURE__ */ React40.createElement("div", { className: actions({ className }), ...rest }, children);
|
|
6944
6966
|
|
|
6945
6967
|
// src/atoms/Popover/Popover.tsx
|
|
6946
|
-
import
|
|
6968
|
+
import React41 from "react";
|
|
6947
6969
|
import {
|
|
6948
6970
|
composeRenderProps as composeRenderProps2,
|
|
6949
6971
|
OverlayArrow,
|
|
6950
6972
|
Popover as AriaPopover
|
|
6951
6973
|
} from "react-aria-components";
|
|
6952
|
-
import { tv as
|
|
6953
|
-
var popoverStyles =
|
|
6974
|
+
import { tv as tv21 } from "tailwind-variants";
|
|
6975
|
+
var popoverStyles = tv21({
|
|
6954
6976
|
// z-[101] ensures popover appears above modal (z-modal: 100)
|
|
6955
6977
|
base: "rounded shadow-overlay bg-overlay mt-1 overflow-y-auto flex flex-col border border-default outline-none z-[101]"
|
|
6956
6978
|
});
|
|
6957
|
-
var Popover =
|
|
6979
|
+
var Popover = React41.forwardRef(
|
|
6958
6980
|
({ children, offset = 0, className, placement: _placement = "bottom-left", ...props }, ref) => {
|
|
6959
6981
|
const placement = _placement.replace("-", " ");
|
|
6960
|
-
return /* @__PURE__ */
|
|
6982
|
+
return /* @__PURE__ */ React41.createElement(
|
|
6961
6983
|
AriaPopover,
|
|
6962
6984
|
{
|
|
6963
6985
|
ref,
|
|
@@ -6973,7 +6995,7 @@ var Popover = React40.forwardRef(
|
|
|
6973
6995
|
);
|
|
6974
6996
|
}
|
|
6975
6997
|
);
|
|
6976
|
-
var PopoverArrow = () => /* @__PURE__ */
|
|
6998
|
+
var PopoverArrow = () => /* @__PURE__ */ React41.createElement(OverlayArrow, { className: "group" }, /* @__PURE__ */ React41.createElement(
|
|
6977
6999
|
"svg",
|
|
6978
7000
|
{
|
|
6979
7001
|
width: 12,
|
|
@@ -6981,19 +7003,19 @@ var PopoverArrow = () => /* @__PURE__ */ React40.createElement(OverlayArrow, { c
|
|
|
6981
7003
|
viewBox: "0 0 12 12",
|
|
6982
7004
|
className: "block fill-white stroke-1 stroke-black group-placement-bottom:rotate-180 group-placement-left:-rotate-90 group-placement-right:rotate-90"
|
|
6983
7005
|
},
|
|
6984
|
-
/* @__PURE__ */
|
|
7006
|
+
/* @__PURE__ */ React41.createElement("path", { d: "M0 0 L6 6 L12 0" })
|
|
6985
7007
|
));
|
|
6986
7008
|
PopoverArrow.displayName = "Popover.Arrow";
|
|
6987
7009
|
Popover.Arrow = PopoverArrow;
|
|
6988
7010
|
|
|
6989
7011
|
// src/atoms/PopoverDialog/PopoverDialog.tsx
|
|
6990
|
-
import
|
|
7012
|
+
import React42 from "react";
|
|
6991
7013
|
import { clsx as clsx14 } from "clsx";
|
|
6992
|
-
var Header2 = ({ children, className, ...rest }) => /* @__PURE__ */
|
|
6993
|
-
var Title3 = ({ children, className, ...rest }) => /* @__PURE__ */
|
|
6994
|
-
var Body = ({ children, className, ...rest }) => /* @__PURE__ */
|
|
6995
|
-
var Footer2 = ({ children, className, ...rest }) => /* @__PURE__ */
|
|
6996
|
-
var Actions2 = ({ children, className, ...rest }) => /* @__PURE__ */
|
|
7014
|
+
var Header2 = ({ children, className, ...rest }) => /* @__PURE__ */ React42.createElement("div", { ...rest, className: clsx14("p-5 gap-3 flex items-center", className) }, children);
|
|
7015
|
+
var Title3 = ({ children, className, ...rest }) => /* @__PURE__ */ React42.createElement(Typography, { ...rest, htmlTag: "h1", variant: "default-strong" }, children);
|
|
7016
|
+
var Body = ({ children, className, ...rest }) => /* @__PURE__ */ React42.createElement(Typography, { ...rest, htmlTag: "div", variant: "small", className: clsx14("px-5 overflow-y-auto", className) }, children);
|
|
7017
|
+
var Footer2 = ({ children, className, ...rest }) => /* @__PURE__ */ React42.createElement("div", { ...rest, className: clsx14("p-5", className) }, children);
|
|
7018
|
+
var Actions2 = ({ children, className, ...rest }) => /* @__PURE__ */ React42.createElement("div", { ...rest, className: clsx14("flex gap-4", className) }, children);
|
|
6997
7019
|
var PopoverDialog = {
|
|
6998
7020
|
Header: Header2,
|
|
6999
7021
|
Title: Title3,
|
|
@@ -7003,13 +7025,13 @@ var PopoverDialog = {
|
|
|
7003
7025
|
};
|
|
7004
7026
|
|
|
7005
7027
|
// src/atoms/ProgressBar/ProgressBar.tsx
|
|
7006
|
-
import
|
|
7028
|
+
import React43 from "react";
|
|
7007
7029
|
import { clamp } from "lodash-es";
|
|
7008
|
-
import { tv as
|
|
7009
|
-
var progressBarClasses =
|
|
7030
|
+
import { tv as tv22 } from "tailwind-variants";
|
|
7031
|
+
var progressBarClasses = tv22({
|
|
7010
7032
|
base: "relative flex items-center w-full bg-muted h-2 rounded-full overflow-hidden"
|
|
7011
7033
|
});
|
|
7012
|
-
var progressBarIndicatorClasses =
|
|
7034
|
+
var progressBarIndicatorClasses = tv22({
|
|
7013
7035
|
base: "h-2 rounded-full transition-all ease-in-out delay-150",
|
|
7014
7036
|
variants: {
|
|
7015
7037
|
status: {
|
|
@@ -7020,13 +7042,13 @@ var progressBarIndicatorClasses = tv21({
|
|
|
7020
7042
|
}
|
|
7021
7043
|
}
|
|
7022
7044
|
});
|
|
7023
|
-
var progressBarLabelsClasses =
|
|
7045
|
+
var progressBarLabelsClasses = tv22({
|
|
7024
7046
|
base: "flex flex-row"
|
|
7025
7047
|
});
|
|
7026
|
-
var ProgressBar = ({ children, className, ...rest }) => /* @__PURE__ */
|
|
7048
|
+
var ProgressBar = ({ children, className, ...rest }) => /* @__PURE__ */ React43.createElement("div", { ...rest, className: progressBarClasses({ className }) }, children);
|
|
7027
7049
|
ProgressBar.Indicator = ({ min, max, value, "aria-label": ariaLabel, status, className, ...rest }) => {
|
|
7028
7050
|
const completedPercentage = clamp((value - min) / (max - min) * 100, 0, 100);
|
|
7029
|
-
return /* @__PURE__ */
|
|
7051
|
+
return /* @__PURE__ */ React43.createElement(
|
|
7030
7052
|
"div",
|
|
7031
7053
|
{
|
|
7032
7054
|
...rest,
|
|
@@ -7040,15 +7062,15 @@ ProgressBar.Indicator = ({ min, max, value, "aria-label": ariaLabel, status, cla
|
|
|
7040
7062
|
}
|
|
7041
7063
|
);
|
|
7042
7064
|
};
|
|
7043
|
-
ProgressBar.Labels = ({ children, startLabel, endLabel, className, ...rest }) => /* @__PURE__ */
|
|
7065
|
+
ProgressBar.Labels = ({ children, startLabel, endLabel, className, ...rest }) => /* @__PURE__ */ React43.createElement("div", { className: progressBarLabelsClasses({ className }) }, /* @__PURE__ */ React43.createElement("span", { ...rest, className: "grow text-default typography-small" }, startLabel), /* @__PURE__ */ React43.createElement("span", { ...rest, className: "grow text-default typography-small text-right" }, endLabel));
|
|
7044
7066
|
|
|
7045
7067
|
// src/atoms/Section/Section.tsx
|
|
7046
|
-
import
|
|
7047
|
-
import { tv as
|
|
7048
|
-
var sectionStyles =
|
|
7068
|
+
import React44 from "react";
|
|
7069
|
+
import { tv as tv23 } from "tailwind-variants";
|
|
7070
|
+
var sectionStyles = tv23({
|
|
7049
7071
|
slots: {
|
|
7050
7072
|
base: "border border-muted rounded-lg",
|
|
7051
|
-
header: "px-5 py-3 flex gap-5 justify-between items-center",
|
|
7073
|
+
header: "px-5 py-3 flex gap-5 justify-between items-center rounded-t-lg",
|
|
7052
7074
|
titleContainer: "grow grid grid-cols-[auto_1fr] gap-x-3 gap-y-1 items-center min-h-[38px]",
|
|
7053
7075
|
actions: "flex gap-4 justify-end",
|
|
7054
7076
|
body: "p-5 rounded-lg"
|
|
@@ -7069,19 +7091,19 @@ var Section2 = ({
|
|
|
7069
7091
|
...rest
|
|
7070
7092
|
}) => {
|
|
7071
7093
|
const { base: base2 } = sectionStyles();
|
|
7072
|
-
return /* @__PURE__ */
|
|
7094
|
+
return /* @__PURE__ */ React44.createElement(Box, { component: "section", ...rest, className: base2({ className }) }, children);
|
|
7073
7095
|
};
|
|
7074
7096
|
Section2.Header = ({ children, className, expanded, collapsible, ...rest }) => {
|
|
7075
7097
|
const { header } = sectionStyles({ expanded, collapsible });
|
|
7076
|
-
return /* @__PURE__ */
|
|
7098
|
+
return /* @__PURE__ */ React44.createElement("div", { ...rest, className: header({ className }) }, children);
|
|
7077
7099
|
};
|
|
7078
|
-
Section2.TitleContainer =
|
|
7100
|
+
Section2.TitleContainer = React44.forwardRef(
|
|
7079
7101
|
({ children, className, collapsible, ...rest }, ref) => {
|
|
7080
7102
|
const { titleContainer: titleContainer2 } = sectionStyles({ collapsible });
|
|
7081
|
-
return /* @__PURE__ */
|
|
7103
|
+
return /* @__PURE__ */ React44.createElement("div", { ...rest, ref, className: titleContainer2({ className }) }, children);
|
|
7082
7104
|
}
|
|
7083
7105
|
);
|
|
7084
|
-
Section2.Toggle = (props) => /* @__PURE__ */
|
|
7106
|
+
Section2.Toggle = (props) => /* @__PURE__ */ React44.createElement(
|
|
7085
7107
|
Icon2,
|
|
7086
7108
|
{
|
|
7087
7109
|
...props,
|
|
@@ -7094,20 +7116,20 @@ Section2.Toggle = (props) => /* @__PURE__ */ React43.createElement(
|
|
|
7094
7116
|
})
|
|
7095
7117
|
}
|
|
7096
7118
|
);
|
|
7097
|
-
Section2.Title = ({ children, ...rest }) => /* @__PURE__ */
|
|
7098
|
-
Section2.Subtitle = ({ children, ...rest }) => /* @__PURE__ */
|
|
7119
|
+
Section2.Title = ({ children, ...rest }) => /* @__PURE__ */ React44.createElement(Typography2.Large, { ...rest, htmlTag: "h2", color: "intense", className: "flex gap-3 items-center" }, children);
|
|
7120
|
+
Section2.Subtitle = ({ children, ...rest }) => /* @__PURE__ */ React44.createElement(Typography2.Small, { ...rest, color: "muted" }, children);
|
|
7099
7121
|
Section2.Actions = ({ children, className, ...rest }) => {
|
|
7100
7122
|
const { actions: actions2 } = sectionStyles();
|
|
7101
|
-
return /* @__PURE__ */
|
|
7123
|
+
return /* @__PURE__ */ React44.createElement("div", { ...rest, className: actions2({ className }) }, children);
|
|
7102
7124
|
};
|
|
7103
7125
|
Section2.Body = ({ children, className, ...rest }) => {
|
|
7104
7126
|
const { body } = sectionStyles();
|
|
7105
|
-
return /* @__PURE__ */
|
|
7127
|
+
return /* @__PURE__ */ React44.createElement("div", { ...rest, className: body({ className }) }, /* @__PURE__ */ React44.createElement(Typography, { htmlTag: "div", color: "default" }, children));
|
|
7106
7128
|
};
|
|
7107
7129
|
|
|
7108
7130
|
// src/atoms/Select/Select.tsx
|
|
7109
|
-
import
|
|
7110
|
-
import { tv as
|
|
7131
|
+
import React45 from "react";
|
|
7132
|
+
import { tv as tv24 } from "tailwind-variants";
|
|
7111
7133
|
function getOptionLabelBuiltin(option) {
|
|
7112
7134
|
if (option === null) {
|
|
7113
7135
|
return "";
|
|
@@ -7121,10 +7143,10 @@ function isOptionDisabledBuiltin(option) {
|
|
|
7121
7143
|
return !!option.disabled;
|
|
7122
7144
|
}
|
|
7123
7145
|
var getValues = (children) => {
|
|
7124
|
-
const values =
|
|
7146
|
+
const values = React45.Children.map(children, (c) => c?.props?.value);
|
|
7125
7147
|
return values?.filter((v) => v !== void 0 && v !== null) ?? [];
|
|
7126
7148
|
};
|
|
7127
|
-
var inputContainerClasses =
|
|
7149
|
+
var inputContainerClasses = tv24({
|
|
7128
7150
|
base: "relative rounded typography-default-strong w-full flex flex-row items-center bg-body focus:outline-none focus-visible:border-action-focus group",
|
|
7129
7151
|
variants: {
|
|
7130
7152
|
variant: {
|
|
@@ -7136,7 +7158,7 @@ var inputContainerClasses = tv23({
|
|
|
7136
7158
|
}
|
|
7137
7159
|
}
|
|
7138
7160
|
});
|
|
7139
|
-
var inputClasses =
|
|
7161
|
+
var inputClasses = tv24({
|
|
7140
7162
|
base: "grow rounded border-0 focus:outline-none px-[1px] my-1 min-w-0 typography-default bg-transparent disabled:cursor-not-allowed disabled:bg-medium placeholder:text-inactive",
|
|
7141
7163
|
variants: {
|
|
7142
7164
|
disabled: {
|
|
@@ -7149,22 +7171,22 @@ var inputClasses = tv23({
|
|
|
7149
7171
|
}
|
|
7150
7172
|
}
|
|
7151
7173
|
});
|
|
7152
|
-
var menuClasses =
|
|
7174
|
+
var menuClasses = tv24({
|
|
7153
7175
|
base: "text-default bg-overlay overflow-y-auto"
|
|
7154
7176
|
});
|
|
7155
|
-
var noResultsClasses =
|
|
7177
|
+
var noResultsClasses = tv24({
|
|
7156
7178
|
base: "p-3 text-inactive typography-default"
|
|
7157
7179
|
});
|
|
7158
|
-
var emptyStateContainerClasses =
|
|
7180
|
+
var emptyStateContainerClasses = tv24({
|
|
7159
7181
|
base: "border border-dashed border-default m-4 p-6"
|
|
7160
7182
|
});
|
|
7161
|
-
var dividerClasses =
|
|
7183
|
+
var dividerClasses = tv24({
|
|
7162
7184
|
base: "border-b-1 border-muted mx-3 my-4"
|
|
7163
7185
|
});
|
|
7164
|
-
var groupClasses =
|
|
7186
|
+
var groupClasses = tv24({
|
|
7165
7187
|
base: "flex items-center gap-x-3 p-3 text-inactive uppercase cursor-default typography-small mt-4 first:mt-0"
|
|
7166
7188
|
});
|
|
7167
|
-
var itemClasses =
|
|
7189
|
+
var itemClasses = tv24({
|
|
7168
7190
|
base: "Aquarium-Select.Item flex items-center gap-x-3 p-3 typography-default",
|
|
7169
7191
|
variants: {
|
|
7170
7192
|
disabled: {
|
|
@@ -7177,7 +7199,7 @@ var itemClasses = tv23({
|
|
|
7177
7199
|
}
|
|
7178
7200
|
}
|
|
7179
7201
|
});
|
|
7180
|
-
var actionItemClasses =
|
|
7202
|
+
var actionItemClasses = tv24({
|
|
7181
7203
|
base: "flex items-center gap-x-3 typography-default",
|
|
7182
7204
|
variants: {
|
|
7183
7205
|
dense: {
|
|
@@ -7190,7 +7212,7 @@ var actionItemClasses = tv23({
|
|
|
7190
7212
|
}
|
|
7191
7213
|
}
|
|
7192
7214
|
});
|
|
7193
|
-
var toggleClasses =
|
|
7215
|
+
var toggleClasses = tv24({
|
|
7194
7216
|
base: "grow-0 leading-none",
|
|
7195
7217
|
variants: {
|
|
7196
7218
|
disabled: {
|
|
@@ -7199,10 +7221,10 @@ var toggleClasses = tv23({
|
|
|
7199
7221
|
}
|
|
7200
7222
|
}
|
|
7201
7223
|
});
|
|
7202
|
-
var InputContainer =
|
|
7203
|
-
({ variant = "default", className, ...props }, ref) => /* @__PURE__ */
|
|
7224
|
+
var InputContainer = React45.forwardRef(
|
|
7225
|
+
({ variant = "default", className, ...props }, ref) => /* @__PURE__ */ React45.createElement("div", { ref, className: inputContainerClasses({ variant, className }), ...props })
|
|
7204
7226
|
);
|
|
7205
|
-
var Input =
|
|
7227
|
+
var Input = React45.forwardRef(({ className, required, ...props }, ref) => /* @__PURE__ */ React45.createElement(
|
|
7206
7228
|
"input",
|
|
7207
7229
|
{
|
|
7208
7230
|
ref,
|
|
@@ -7212,24 +7234,24 @@ var Input = React44.forwardRef(({ className, required, ...props }, ref) => /* @_
|
|
|
7212
7234
|
...props
|
|
7213
7235
|
}
|
|
7214
7236
|
));
|
|
7215
|
-
var Menu =
|
|
7216
|
-
({ maxHeight = "450px", className, children, ...props }, ref) => /* @__PURE__ */
|
|
7237
|
+
var Menu = React45.forwardRef(
|
|
7238
|
+
({ maxHeight = "450px", className, children, ...props }, ref) => /* @__PURE__ */ React45.createElement("ul", { ref, style: { maxHeight }, className: menuClasses({ className }), ...props }, children)
|
|
7217
7239
|
);
|
|
7218
|
-
var NoResults =
|
|
7219
|
-
({ className, children, ...rest }, ref) => /* @__PURE__ */
|
|
7240
|
+
var NoResults = React45.forwardRef(
|
|
7241
|
+
({ className, children, ...rest }, ref) => /* @__PURE__ */ React45.createElement("li", { ref, ...rest, className: noResultsClasses({ className }) }, children)
|
|
7220
7242
|
);
|
|
7221
|
-
var EmptyStateContainer2 =
|
|
7222
|
-
var Divider2 = ({ className, ...props }) => /* @__PURE__ */
|
|
7223
|
-
var Group2 =
|
|
7243
|
+
var EmptyStateContainer2 = React45.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React45.createElement("li", { ref, className: emptyStateContainerClasses({ className }), ...props }, children));
|
|
7244
|
+
var Divider2 = ({ className, ...props }) => /* @__PURE__ */ React45.createElement("div", { className: dividerClasses({ className }), ...props });
|
|
7245
|
+
var Group2 = React45.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React45.createElement("li", { ref, className: groupClasses({ className }), ...props }, children));
|
|
7224
7246
|
var endAdornmentSize = { width: 14, height: 14 };
|
|
7225
|
-
var Item4 =
|
|
7247
|
+
var Item4 = React45.forwardRef(
|
|
7226
7248
|
({ highlighted, selected, className, children, ...props }, ref) => {
|
|
7227
7249
|
const isDisabled = Boolean(props["aria-disabled"]);
|
|
7228
|
-
return /* @__PURE__ */
|
|
7250
|
+
return /* @__PURE__ */ React45.createElement("li", { ref, className: itemClasses({ disabled: isDisabled, highlighted, className }), ...props }, /* @__PURE__ */ React45.createElement("span", { className: "grow flex gap-x-3" }, children), selected ? /* @__PURE__ */ React45.createElement(InlineIcon2, { icon: tick_default, ...endAdornmentSize }) : /* @__PURE__ */ React45.createElement("div", { style: endAdornmentSize }));
|
|
7229
7251
|
}
|
|
7230
7252
|
);
|
|
7231
|
-
var ActionItem =
|
|
7232
|
-
({ className, dense = false, icon, onClick, children, ...props }, ref) => /* @__PURE__ */
|
|
7253
|
+
var ActionItem = React45.forwardRef(
|
|
7254
|
+
({ className, dense = false, icon, onClick, children, ...props }, ref) => /* @__PURE__ */ React45.createElement(
|
|
7233
7255
|
"li",
|
|
7234
7256
|
{
|
|
7235
7257
|
ref,
|
|
@@ -7238,11 +7260,11 @@ var ActionItem = React44.forwardRef(
|
|
|
7238
7260
|
className: actionItemClasses({ dense, disabled: props.disabled, className }),
|
|
7239
7261
|
...props
|
|
7240
7262
|
},
|
|
7241
|
-
icon && /* @__PURE__ */
|
|
7263
|
+
icon && /* @__PURE__ */ React45.createElement(InlineIcon2, { icon }),
|
|
7242
7264
|
children
|
|
7243
7265
|
)
|
|
7244
7266
|
);
|
|
7245
|
-
var Toggle =
|
|
7267
|
+
var Toggle = React45.forwardRef(({ hasFocus, isOpen, ...props }, ref) => /* @__PURE__ */ React45.createElement(
|
|
7246
7268
|
"button",
|
|
7247
7269
|
{
|
|
7248
7270
|
ref,
|
|
@@ -7251,7 +7273,7 @@ var Toggle = React44.forwardRef(({ hasFocus, isOpen, ...props }, ref) => /* @__P
|
|
|
7251
7273
|
...props,
|
|
7252
7274
|
className: toggleClasses({ disabled: props.disabled ?? false })
|
|
7253
7275
|
},
|
|
7254
|
-
/* @__PURE__ */
|
|
7276
|
+
/* @__PURE__ */ React45.createElement(
|
|
7255
7277
|
InlineIcon2,
|
|
7256
7278
|
{
|
|
7257
7279
|
color: props.disabled ? "inactive" : "default",
|
|
@@ -7273,9 +7295,9 @@ var Select = {
|
|
|
7273
7295
|
};
|
|
7274
7296
|
|
|
7275
7297
|
// src/atoms/Stepper/Stepper.tsx
|
|
7276
|
-
import
|
|
7277
|
-
import { tv as
|
|
7278
|
-
var connectorStyles =
|
|
7298
|
+
import React46 from "react";
|
|
7299
|
+
import { tv as tv25 } from "tailwind-variants";
|
|
7300
|
+
var connectorStyles = tv25({
|
|
7279
7301
|
slots: {
|
|
7280
7302
|
container: "absolute w-full -left-1/2",
|
|
7281
7303
|
connector: "w-full"
|
|
@@ -7297,7 +7319,7 @@ var connectorStyles = tv24({
|
|
|
7297
7319
|
}
|
|
7298
7320
|
}
|
|
7299
7321
|
});
|
|
7300
|
-
var stepStyles =
|
|
7322
|
+
var stepStyles = tv25({
|
|
7301
7323
|
slots: {
|
|
7302
7324
|
step: "flex flex-col items-center relative text-center",
|
|
7303
7325
|
indicator: "Aquarium-Stepper-Indicator rounded-full flex justify-center items-center mx-2 mb-3"
|
|
@@ -7354,26 +7376,26 @@ var stepStyles = tv24({
|
|
|
7354
7376
|
}
|
|
7355
7377
|
]
|
|
7356
7378
|
});
|
|
7357
|
-
var Stepper = ({ className, ...rest }) => /* @__PURE__ */
|
|
7379
|
+
var Stepper = ({ className, ...rest }) => /* @__PURE__ */ React46.createElement("div", { ...rest, className });
|
|
7358
7380
|
var ConnectorContainer = ({
|
|
7359
7381
|
className,
|
|
7360
7382
|
dense = false,
|
|
7361
7383
|
...rest
|
|
7362
7384
|
}) => {
|
|
7363
7385
|
const { container: container2 } = connectorStyles({ dense });
|
|
7364
|
-
return /* @__PURE__ */
|
|
7386
|
+
return /* @__PURE__ */ React46.createElement("div", { ...rest, className: container2({ className }) });
|
|
7365
7387
|
};
|
|
7366
7388
|
var Connector = ({ children, className, completed = false, dense = false, ...rest }) => {
|
|
7367
7389
|
const { connector } = connectorStyles({ completed, dense });
|
|
7368
|
-
return /* @__PURE__ */
|
|
7390
|
+
return /* @__PURE__ */ React46.createElement("div", { ...rest, className: connector({ className }) });
|
|
7369
7391
|
};
|
|
7370
7392
|
var Step = ({ className, state, ...rest }) => {
|
|
7371
7393
|
const { step } = stepStyles({ state });
|
|
7372
|
-
return /* @__PURE__ */
|
|
7394
|
+
return /* @__PURE__ */ React46.createElement("div", { ...rest, className: step({ className }) });
|
|
7373
7395
|
};
|
|
7374
7396
|
var Indicator = ({ children, className, state, dense = false, ...rest }) => {
|
|
7375
7397
|
const { indicator } = stepStyles({ state, dense });
|
|
7376
|
-
return /* @__PURE__ */
|
|
7398
|
+
return /* @__PURE__ */ React46.createElement("div", { ...rest, className: indicator({ className }) }, state === "completed" ? /* @__PURE__ */ React46.createElement(InlineIcon2, { icon: tick_default }) : dense ? null : children);
|
|
7377
7399
|
};
|
|
7378
7400
|
Step.Indicator = Indicator;
|
|
7379
7401
|
Stepper.Step = Step;
|
|
@@ -7381,9 +7403,9 @@ ConnectorContainer.Connector = Connector;
|
|
|
7381
7403
|
Stepper.ConnectorContainer = ConnectorContainer;
|
|
7382
7404
|
|
|
7383
7405
|
// src/atoms/Switch/Switch.tsx
|
|
7384
|
-
import
|
|
7385
|
-
import { tv as
|
|
7386
|
-
var switchStyles =
|
|
7406
|
+
import React47 from "react";
|
|
7407
|
+
import { tv as tv26 } from "tailwind-variants";
|
|
7408
|
+
var switchStyles = tv26({
|
|
7387
7409
|
slots: {
|
|
7388
7410
|
wrapper: "relative inline-flex justify-center items-center self-center group",
|
|
7389
7411
|
input: "appearance-none peer/switch rounded-full inline-block w-[34px] h-[20px] transition duration-300 outline-none focusable cursor-pointer disabled:cursor-not-allowed focus-visible:ring-action-focus",
|
|
@@ -7402,10 +7424,10 @@ var switchStyles = tv25({
|
|
|
7402
7424
|
}
|
|
7403
7425
|
}
|
|
7404
7426
|
});
|
|
7405
|
-
var Switch =
|
|
7427
|
+
var Switch = React47.forwardRef(
|
|
7406
7428
|
({ id, children, name, disabled = false, readOnly = false, ...props }, ref) => {
|
|
7407
7429
|
const { wrapper, input, thumb } = switchStyles({ disabled });
|
|
7408
|
-
return /* @__PURE__ */
|
|
7430
|
+
return /* @__PURE__ */ React47.createElement("span", { className: wrapper() }, /* @__PURE__ */ React47.createElement(
|
|
7409
7431
|
"input",
|
|
7410
7432
|
{
|
|
7411
7433
|
id,
|
|
@@ -7417,15 +7439,15 @@ var Switch = React46.forwardRef(
|
|
|
7417
7439
|
readOnly,
|
|
7418
7440
|
disabled
|
|
7419
7441
|
}
|
|
7420
|
-
), /* @__PURE__ */
|
|
7442
|
+
), /* @__PURE__ */ React47.createElement("span", { className: thumb() }, disabled && /* @__PURE__ */ React47.createElement(Icon2, { icon: ban_default, width: "10px", height: "10px" })));
|
|
7421
7443
|
}
|
|
7422
7444
|
);
|
|
7423
7445
|
|
|
7424
7446
|
// src/atoms/VisuallyHidden/VisuallyHidden.tsx
|
|
7425
|
-
import
|
|
7447
|
+
import React48 from "react";
|
|
7426
7448
|
import { VisuallyHidden as AriaVisuallyHidden } from "@react-aria/visually-hidden";
|
|
7427
7449
|
var VisuallyHidden = (props) => {
|
|
7428
|
-
return /* @__PURE__ */
|
|
7450
|
+
return /* @__PURE__ */ React48.createElement(AriaVisuallyHidden, { ...props });
|
|
7429
7451
|
};
|
|
7430
7452
|
export {
|
|
7431
7453
|
Alert,
|
|
@@ -7436,6 +7458,7 @@ export {
|
|
|
7436
7458
|
Checkbox,
|
|
7437
7459
|
Chip,
|
|
7438
7460
|
ChoiceChip,
|
|
7461
|
+
CommandPalette,
|
|
7439
7462
|
DIALOG_ICONS_AND_COLORS,
|
|
7440
7463
|
DataList,
|
|
7441
7464
|
Dialog,
|
|
@@ -7467,6 +7490,10 @@ export {
|
|
|
7467
7490
|
bodyCellClasses,
|
|
7468
7491
|
buttonClasses,
|
|
7469
7492
|
cellClassNames,
|
|
7493
|
+
commandPaletteStyles,
|
|
7494
|
+
dropdownMenuGroupStyles,
|
|
7495
|
+
dropdownMenuItemStyles,
|
|
7496
|
+
dropdownMenuStyles,
|
|
7470
7497
|
getAlignClassNames,
|
|
7471
7498
|
getBodyCellClassNames,
|
|
7472
7499
|
getHeadCellClassNames,
|