@aivenio/aquarium 1.39.0 → 1.40.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/_variables.scss +1 -1
- package/dist/atoms.cjs +12 -6
- package/dist/atoms.mjs +12 -6
- package/dist/src/molecules/Badge/Badge.d.ts +5 -5
- package/dist/src/molecules/Badge/Badge.js +11 -7
- package/dist/src/molecules/Chip/Chip.d.ts +14 -10
- package/dist/src/molecules/Chip/Chip.js +7 -4
- package/dist/src/molecules/DropdownMenu/DropdownMenu.js +2 -2
- package/dist/src/molecules/DropdownMenu/utils.js +6 -2
- package/dist/styles.css +6 -0
- package/dist/system.cjs +54 -41
- package/dist/system.mjs +57 -44
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/types/tailwindGenerated.d.ts +1 -1
- package/package.json +1 -1
package/dist/system.mjs
CHANGED
@@ -6943,15 +6943,11 @@ Avatar.Skeleton.displayName = "Avatar.Skeleton";
|
|
6943
6943
|
|
6944
6944
|
// src/molecules/Badge/Badge.tsx
|
6945
6945
|
import React21 from "react";
|
6946
|
-
import omit2 from "lodash/omit";
|
6947
|
-
var isChipBadgeProps = (props) => "dense" in props;
|
6948
6946
|
var createBadge = (type, displayName) => {
|
6949
6947
|
const Component = (props) => {
|
6950
|
-
|
6951
|
-
const _a = props, { kind = "filled", value, textClassname } = _a, rest = __objRest(_a, ["kind", "value", "textClassname"]);
|
6948
|
+
const _a = props, { kind = "filled", value, textClassname, dense = false } = _a, rest = __objRest(_a, ["kind", "value", "textClassname", "dense"]);
|
6952
6949
|
const valueStr = value.toString();
|
6953
|
-
|
6954
|
-
return /* @__PURE__ */ React21.createElement("span", __spreadProps(__spreadValues({}, omit2(rest, "dense")), {
|
6950
|
+
return /* @__PURE__ */ React21.createElement("span", __spreadProps(__spreadValues({}, rest), {
|
6955
6951
|
className: classNames(
|
6956
6952
|
tw("inline-block text-center", {
|
6957
6953
|
"rounded-full": type === "default" || type === "chip",
|
@@ -6998,15 +6994,25 @@ var NotificationBadge = ({
|
|
6998
6994
|
className: tw("absolute rounded-full w-[6px] h-[6px] bg-error-70")
|
6999
6995
|
}));
|
7000
6996
|
};
|
6997
|
+
var DotBadge = ({ dense = false }) => {
|
6998
|
+
return /* @__PURE__ */ React21.createElement("span", {
|
6999
|
+
className: tw("rounded-full bg-current", {
|
7000
|
+
"w-[6px] h-[6px]": dense,
|
7001
|
+
"w-[9px] h-[9px]": !dense
|
7002
|
+
})
|
7003
|
+
});
|
7004
|
+
};
|
7001
7005
|
var Badge = createBadge("default", "Badge");
|
7002
7006
|
Badge.Notification = NotificationBadge;
|
7003
7007
|
Badge.Notification.displayName = "Badge.Notification";
|
7008
|
+
Badge.Dot = DotBadge;
|
7009
|
+
Badge.Dot.displayName = "Badge.Dot";
|
7004
7010
|
var TabBadge = createBadge("tab", "TabBadge");
|
7005
7011
|
var ChipBadge = createBadge("chip", "ChipBadge");
|
7006
7012
|
|
7007
7013
|
// src/molecules/Banner/Banner.tsx
|
7008
7014
|
import React23 from "react";
|
7009
|
-
import
|
7015
|
+
import omit2 from "lodash/omit";
|
7010
7016
|
|
7011
7017
|
// src/atoms/Banner/Banner.tsx
|
7012
7018
|
import React22 from "react";
|
@@ -7119,10 +7125,10 @@ var createBanner = (displayName, opts = {}) => {
|
|
7119
7125
|
layout
|
7120
7126
|
}, !isLink(action) && /* @__PURE__ */ React23.createElement(Button.Ghost, __spreadValues({
|
7121
7127
|
dense: true
|
7122
|
-
},
|
7128
|
+
}, omit2(action, "text")), action.text), isLink(action) && /* @__PURE__ */ React23.createElement(Button.ExternalLink, __spreadValues({
|
7123
7129
|
dense: true,
|
7124
7130
|
kind: "ghost"
|
7125
|
-
},
|
7131
|
+
}, omit2(action, "text")), action.text))), (props.layout === "vertical" || props.layout === void 0) && props.image !== void 0 && /* @__PURE__ */ React23.createElement(Banner.ImageContainer, null, props.image ? /* @__PURE__ */ React23.createElement("img", {
|
7126
7132
|
src: props.image,
|
7127
7133
|
alt: props.imageAlt,
|
7128
7134
|
className: tw("bg-cover object-cover", { "w-full": !props.imageWidth }),
|
@@ -7203,7 +7209,7 @@ Breadcrumbs.Crumb = Crumb;
|
|
7203
7209
|
// src/molecules/Card/Card.tsx
|
7204
7210
|
import React31, { useRef as useRef3 } from "react";
|
7205
7211
|
import { useButton as useButton2 } from "@react-aria/button";
|
7206
|
-
import
|
7212
|
+
import omit4 from "lodash/omit";
|
7207
7213
|
|
7208
7214
|
// src/molecules/Chip/Chip.tsx
|
7209
7215
|
import React26 from "react";
|
@@ -7302,7 +7308,8 @@ Chip2.Skeleton = ChipSkeleton;
|
|
7302
7308
|
Chip2.Skeleton.displayName = "Chip.Skeleton";
|
7303
7309
|
var StatusChip = React26.forwardRef(
|
7304
7310
|
(_a, ref) => {
|
7305
|
-
var _b = _a, {
|
7311
|
+
var _b = _a, { icon: chipIcon, UNSAFE_icon, text, dense = false, status, badge } = _b, rest = __objRest(_b, ["icon", "UNSAFE_icon", "text", "dense", "status", "badge"]);
|
7312
|
+
const icon = chipIcon || UNSAFE_icon;
|
7306
7313
|
return /* @__PURE__ */ React26.createElement(Chip.Container, __spreadProps(__spreadValues({
|
7307
7314
|
ref,
|
7308
7315
|
role: "status",
|
@@ -7310,9 +7317,14 @@ var StatusChip = React26.forwardRef(
|
|
7310
7317
|
dense
|
7311
7318
|
}, rest), {
|
7312
7319
|
className: getStatusClassNames(status)
|
7320
|
+
}), badge === true && /* @__PURE__ */ React26.createElement(Badge.Dot, {
|
7321
|
+
dense
|
7313
7322
|
}), icon && /* @__PURE__ */ React26.createElement(InlineIcon, {
|
7314
7323
|
icon
|
7315
|
-
}), text
|
7324
|
+
}), text, badge && typeof badge === "number" && /* @__PURE__ */ React26.createElement(Badge, {
|
7325
|
+
dense,
|
7326
|
+
value: badge
|
7327
|
+
}));
|
7316
7328
|
}
|
7317
7329
|
);
|
7318
7330
|
var ChipContainer = ({ dense, children }) => /* @__PURE__ */ React26.createElement("div", {
|
@@ -7526,7 +7538,7 @@ var LineClamp = React29.forwardRef(
|
|
7526
7538
|
// src/molecules/Card/Compact.tsx
|
7527
7539
|
import React30, { useRef as useRef2 } from "react";
|
7528
7540
|
import { useButton } from "@react-aria/button";
|
7529
|
-
import { omit as
|
7541
|
+
import { omit as omit3 } from "lodash";
|
7530
7542
|
var CompactCard = ({
|
7531
7543
|
title,
|
7532
7544
|
clampTitle,
|
@@ -7576,10 +7588,10 @@ var CompactCard = ({
|
|
7576
7588
|
dense: true
|
7577
7589
|
}, action && /* @__PURE__ */ React30.createElement(Button.Secondary, __spreadValues({
|
7578
7590
|
dense: true
|
7579
|
-
},
|
7591
|
+
}, omit3(action, "text")), action.text), link && /* @__PURE__ */ React30.createElement(Button.ExternalLink, __spreadValues({
|
7580
7592
|
dense: true,
|
7581
7593
|
kind: "ghost"
|
7582
|
-
},
|
7594
|
+
}, omit3(link, "text")), link.text)));
|
7583
7595
|
};
|
7584
7596
|
var CompactSkeleton = ({
|
7585
7597
|
chips = true,
|
@@ -7671,10 +7683,10 @@ var Card2 = ({
|
|
7671
7683
|
color: "grey-70"
|
7672
7684
|
}, children || description)), (action || link) && /* @__PURE__ */ React31.createElement(Card.Actions, null, action && /* @__PURE__ */ React31.createElement(Button.Secondary, __spreadValues({
|
7673
7685
|
dense: true
|
7674
|
-
},
|
7686
|
+
}, omit4(action, "text")), action.text), link && /* @__PURE__ */ React31.createElement(Button.ExternalLink, __spreadValues({
|
7675
7687
|
dense: true,
|
7676
7688
|
kind: "ghost"
|
7677
|
-
},
|
7689
|
+
}, omit4(link, "text")), link.text)));
|
7678
7690
|
};
|
7679
7691
|
var CardSkeleton = ({
|
7680
7692
|
chips = true,
|
@@ -8449,7 +8461,7 @@ var ChoiceChip = (_a) => {
|
|
8449
8461
|
import React46, { useEffect as useEffect6, useRef as useRef5, useState as useState5 } from "react";
|
8450
8462
|
import { ariaHideOutside } from "@react-aria/overlays";
|
8451
8463
|
import { useCombobox } from "downshift";
|
8452
|
-
import
|
8464
|
+
import omit5 from "lodash/omit";
|
8453
8465
|
import uniqueId2 from "lodash/uniqueId";
|
8454
8466
|
import { matchSorter } from "match-sorter";
|
8455
8467
|
|
@@ -8718,7 +8730,7 @@ var Combobox = (_a) => {
|
|
8718
8730
|
const errorMessageId = uniqueId2();
|
8719
8731
|
const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
|
8720
8732
|
const labelControlProps = getLabelControlProps(props);
|
8721
|
-
const baseProps =
|
8733
|
+
const baseProps = omit5(props, Object.keys(labelControlProps));
|
8722
8734
|
return /* @__PURE__ */ React46.createElement(LabelControl, __spreadProps(__spreadValues({
|
8723
8735
|
id: `${id.current}-label`,
|
8724
8736
|
htmlFor: `${id.current}-input`,
|
@@ -8771,7 +8783,7 @@ import { useTreeState } from "@react-stately/tree";
|
|
8771
8783
|
|
8772
8784
|
// src/molecules/Input/Input.tsx
|
8773
8785
|
import React49, { forwardRef, useImperativeHandle, useRef as useRef6, useState as useState6 } from "react";
|
8774
|
-
import
|
8786
|
+
import omit6 from "lodash/omit";
|
8775
8787
|
import toString from "lodash/toString";
|
8776
8788
|
import uniqueId3 from "lodash/uniqueId";
|
8777
8789
|
|
@@ -8885,7 +8897,7 @@ var Input2 = React49.forwardRef((_a, ref) => {
|
|
8885
8897
|
const errorMessageId = uniqueId3();
|
8886
8898
|
const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
|
8887
8899
|
const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
|
8888
|
-
const baseProps =
|
8900
|
+
const baseProps = omit6(props, Object.keys(labelControlProps));
|
8889
8901
|
return /* @__PURE__ */ React49.createElement(LabelControl, __spreadProps(__spreadValues({
|
8890
8902
|
id: `${id.current}-label`,
|
8891
8903
|
htmlFor: id.current,
|
@@ -9004,12 +9016,13 @@ var filterCollection = (collection, inputValue, filter) => {
|
|
9004
9016
|
var filterNodes = (nodes, inputValue, filter) => {
|
9005
9017
|
const filteredNode = [];
|
9006
9018
|
for (const node of nodes) {
|
9019
|
+
const description = Object.hasOwn(node.props, "description") && typeof node.props.description === "string" ? node.props.description : void 0;
|
9007
9020
|
if (node.type === "section" && node.hasChildNodes) {
|
9008
9021
|
const filtered = filterNodes(node.childNodes, inputValue, filter);
|
9009
9022
|
if ([...filtered].length > 0) {
|
9010
9023
|
filteredNode.push(__spreadProps(__spreadValues({}, node), { childNodes: filtered }));
|
9011
9024
|
}
|
9012
|
-
} else if (node.type !== "section" && filter(node.textValue, inputValue)) {
|
9025
|
+
} else if (node.type !== "section" && (filter(node.textValue, inputValue) || description && filter(description, inputValue))) {
|
9013
9026
|
filteredNode.push(__spreadValues({}, node));
|
9014
9027
|
}
|
9015
9028
|
}
|
@@ -9123,7 +9136,7 @@ var MenuWrapper = (_a) => {
|
|
9123
9136
|
const [search, setSearch] = React51.useState("");
|
9124
9137
|
const filteredCollection = React51.useMemo(
|
9125
9138
|
() => searchable ? filterCollection(state.collection, search, contains) : state.collection,
|
9126
|
-
[state.collection, search, contains]
|
9139
|
+
[searchable, state.collection, search, contains]
|
9127
9140
|
);
|
9128
9141
|
return /* @__PURE__ */ React51.createElement(DropdownMenu, {
|
9129
9142
|
minWidth: minWidth !== void 0 ? `${minWidth}px` : void 0,
|
@@ -9227,7 +9240,7 @@ import { useSelect } from "downshift";
|
|
9227
9240
|
import defaults from "lodash/defaults";
|
9228
9241
|
import isArray from "lodash/isArray";
|
9229
9242
|
import isNil from "lodash/isNil";
|
9230
|
-
import
|
9243
|
+
import omit7 from "lodash/omit";
|
9231
9244
|
import uniqueId4 from "lodash/uniqueId";
|
9232
9245
|
var hasIconProperty = (val) => {
|
9233
9246
|
var _a;
|
@@ -9425,7 +9438,7 @@ var Select2 = (_a) => {
|
|
9425
9438
|
const errorMessageId = uniqueId4();
|
9426
9439
|
const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
|
9427
9440
|
const labelProps = getLabelControlProps(props);
|
9428
|
-
const baseProps =
|
9441
|
+
const baseProps = omit7(props, Object.keys(labelProps));
|
9429
9442
|
const legacyError = labelProps.error !== void 0 && labelProps.valid === false;
|
9430
9443
|
const variant = !labelProps.valid || legacyError ? "error" : labelProps.disabled ? "disabled" : "default";
|
9431
9444
|
const label = /* @__PURE__ */ React52.createElement(Label, __spreadValues({
|
@@ -10195,7 +10208,7 @@ import { useDialog } from "@react-aria/dialog";
|
|
10195
10208
|
import { Overlay as Overlay2, useModalOverlay } from "@react-aria/overlays";
|
10196
10209
|
import { useId } from "@react-aria/utils";
|
10197
10210
|
import { useOverlayTriggerState as useOverlayTriggerState2 } from "@react-stately/overlays";
|
10198
|
-
import
|
10211
|
+
import omit8 from "lodash/omit";
|
10199
10212
|
|
10200
10213
|
// src/atoms/Dialog/Dialog.tsx
|
10201
10214
|
var import_confirm2 = __toESM(require_confirm());
|
@@ -10366,9 +10379,9 @@ var DialogWrapper = ({
|
|
10366
10379
|
id: describedBy
|
10367
10380
|
}, /* @__PURE__ */ React66.createElement(Typography2.Default, null, children)), /* @__PURE__ */ React66.createElement(Modal.Footer, null, /* @__PURE__ */ React66.createElement(Modal.Actions, null, secondaryAction && /* @__PURE__ */ React66.createElement(Button.Ghost, __spreadValues({
|
10368
10381
|
key: secondaryAction.text
|
10369
|
-
},
|
10382
|
+
}, omit8(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React66.createElement(Button.Secondary, __spreadValues({
|
10370
10383
|
key: primaryAction.text
|
10371
|
-
},
|
10384
|
+
}, omit8(primaryAction, "text")), primaryAction.text))));
|
10372
10385
|
};
|
10373
10386
|
|
10374
10387
|
// src/molecules/Divider/Divider.tsx
|
@@ -10643,15 +10656,15 @@ import React72 from "react";
|
|
10643
10656
|
|
10644
10657
|
// src/utils/actions.tsx
|
10645
10658
|
import React71 from "react";
|
10646
|
-
import
|
10659
|
+
import omit9 from "lodash/omit";
|
10647
10660
|
var renderAction = (kind = "primary", action) => {
|
10648
10661
|
return isLink(action) ? /* @__PURE__ */ React71.createElement(Button.ExternalLink, __spreadValues({
|
10649
10662
|
key: action.text,
|
10650
10663
|
kind
|
10651
|
-
},
|
10664
|
+
}, omit9(action, "text")), action.text) : /* @__PURE__ */ React71.createElement(Button, __spreadValues({
|
10652
10665
|
key: action.text,
|
10653
10666
|
kind
|
10654
|
-
},
|
10667
|
+
}, omit9(action, "text")), action.text);
|
10655
10668
|
};
|
10656
10669
|
|
10657
10670
|
// src/molecules/EmptyState/EmptyState.tsx
|
@@ -10897,7 +10910,7 @@ import { Overlay as Overlay3, useModalOverlay as useModalOverlay2 } from "@react
|
|
10897
10910
|
import { useId as useId2 } from "@react-aria/utils";
|
10898
10911
|
import { useOverlayTriggerState as useOverlayTriggerState4 } from "@react-stately/overlays";
|
10899
10912
|
import castArray from "lodash/castArray";
|
10900
|
-
import
|
10913
|
+
import omit10 from "lodash/omit";
|
10901
10914
|
|
10902
10915
|
// src/molecules/Tabs/Tabs.tsx
|
10903
10916
|
import React79, { useEffect as useEffect8, useLayoutEffect as useLayoutEffect2, useRef as useRef9, useState as useState9 } from "react";
|
@@ -11255,7 +11268,7 @@ var ModalWrapper = React80.forwardRef(
|
|
11255
11268
|
}, action), text);
|
11256
11269
|
}), primaryAction && /* @__PURE__ */ React80.createElement(Button.Primary, __spreadValues({
|
11257
11270
|
key: primaryAction.text
|
11258
|
-
},
|
11271
|
+
}, omit10(primaryAction, "text")), primaryAction.text))));
|
11259
11272
|
}
|
11260
11273
|
);
|
11261
11274
|
var ModalTabs = createTabsComponent(
|
@@ -11273,7 +11286,7 @@ var ModalTabs = createTabsComponent(
|
|
11273
11286
|
import React82, { useEffect as useEffect9, useRef as useRef10, useState as useState10 } from "react";
|
11274
11287
|
import castArray2 from "lodash/castArray";
|
11275
11288
|
import identity from "lodash/identity";
|
11276
|
-
import
|
11289
|
+
import omit11 from "lodash/omit";
|
11277
11290
|
import uniqueId5 from "lodash/uniqueId";
|
11278
11291
|
|
11279
11292
|
// src/molecules/MultiInput/InputChip.tsx
|
@@ -11505,7 +11518,7 @@ var MultiInput = (props) => {
|
|
11505
11518
|
const errorMessageId = uniqueId5();
|
11506
11519
|
const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
|
11507
11520
|
const labelControlProps = getLabelControlProps(props);
|
11508
|
-
const baseProps =
|
11521
|
+
const baseProps = omit11(props, Object.keys(labelControlProps));
|
11509
11522
|
return /* @__PURE__ */ React82.createElement(LabelControl, __spreadProps(__spreadValues({
|
11510
11523
|
id: `${id.current}-label`,
|
11511
11524
|
htmlFor: `${id.current}-input`,
|
@@ -11536,7 +11549,7 @@ import { ariaHideOutside as ariaHideOutside2 } from "@react-aria/overlays";
|
|
11536
11549
|
import { useCombobox as useCombobox2, useMultipleSelection } from "downshift";
|
11537
11550
|
import isEqual from "lodash/isEqual";
|
11538
11551
|
import isNil2 from "lodash/isNil";
|
11539
|
-
import
|
11552
|
+
import omit12 from "lodash/omit";
|
11540
11553
|
import omitBy from "lodash/omitBy";
|
11541
11554
|
import uniqueId6 from "lodash/uniqueId";
|
11542
11555
|
import { matchSorter as matchSorter2 } from "match-sorter";
|
@@ -11764,7 +11777,7 @@ var MultiSelect = (_a) => {
|
|
11764
11777
|
const errorMessageId = uniqueId6();
|
11765
11778
|
const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
|
11766
11779
|
const labelControlProps = getLabelControlProps(props);
|
11767
|
-
const baseProps =
|
11780
|
+
const baseProps = omit12(props, Object.keys(labelControlProps));
|
11768
11781
|
return /* @__PURE__ */ React83.createElement(LabelControl, __spreadProps(__spreadValues({
|
11769
11782
|
id: `${id.current}-label`,
|
11770
11783
|
htmlFor: `${id.current}-input`,
|
@@ -11785,7 +11798,7 @@ MultiSelect.Skeleton.displayName = "MultiSelect.Skeleton";
|
|
11785
11798
|
|
11786
11799
|
// src/molecules/NativeSelect/NativeSelect.tsx
|
11787
11800
|
import React84, { useRef as useRef12 } from "react";
|
11788
|
-
import
|
11801
|
+
import omit13 from "lodash/omit";
|
11789
11802
|
import uniqueId7 from "lodash/uniqueId";
|
11790
11803
|
var import_caretDown2 = __toESM(require_caretDown());
|
11791
11804
|
var NativeSelectBase = React84.forwardRef(
|
@@ -11850,7 +11863,7 @@ var NativeSelect = React84.forwardRef(
|
|
11850
11863
|
const errorMessageId = uniqueId7();
|
11851
11864
|
const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
|
11852
11865
|
const _b2 = getLabelControlProps(props), { "data-testid": dataTestId } = _b2, labelControlProps = __objRest(_b2, ["data-testid"]);
|
11853
|
-
const baseProps =
|
11866
|
+
const baseProps = omit13(props, Object.keys(labelControlProps));
|
11854
11867
|
return /* @__PURE__ */ React84.createElement(LabelControl, __spreadProps(__spreadValues({
|
11855
11868
|
id: `${id.current}-label`,
|
11856
11869
|
htmlFor: id.current,
|
@@ -12094,7 +12107,7 @@ PageHeader2.SubHeader.displayName = "PageHeader.SubHeader";
|
|
12094
12107
|
|
12095
12108
|
// src/molecules/PopoverDialog/PopoverDialog.tsx
|
12096
12109
|
import React90 from "react";
|
12097
|
-
import
|
12110
|
+
import omit14 from "lodash/omit";
|
12098
12111
|
|
12099
12112
|
// src/atoms/PopoverDialog/PopoverDialog.tsx
|
12100
12113
|
import React89 from "react";
|
@@ -12149,11 +12162,11 @@ var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction,
|
|
12149
12162
|
kind: "secondary-ghost",
|
12150
12163
|
key: secondaryAction.text,
|
12151
12164
|
dense: true
|
12152
|
-
},
|
12165
|
+
}, omit14(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React90.createElement(Popover2.Button, __spreadValues({
|
12153
12166
|
kind: "ghost",
|
12154
12167
|
key: primaryAction.text,
|
12155
12168
|
dense: true
|
12156
|
-
},
|
12169
|
+
}, omit14(primaryAction, "text")), primaryAction.text))));
|
12157
12170
|
}
|
12158
12171
|
return child;
|
12159
12172
|
};
|
@@ -12972,7 +12985,7 @@ SwitchGroup.Skeleton.displayName = "SwitchGroup.Skeleton";
|
|
12972
12985
|
|
12973
12986
|
// src/molecules/Textarea/Textarea.tsx
|
12974
12987
|
import React105, { useRef as useRef13, useState as useState13 } from "react";
|
12975
|
-
import
|
12988
|
+
import omit15 from "lodash/omit";
|
12976
12989
|
import toString2 from "lodash/toString";
|
12977
12990
|
import uniqueId10 from "lodash/uniqueId";
|
12978
12991
|
var TextareaBase = React105.forwardRef(
|
@@ -12996,7 +13009,7 @@ var Textarea = React105.forwardRef((props, ref) => {
|
|
12996
13009
|
const errorMessageId = uniqueId10();
|
12997
13010
|
const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
|
12998
13011
|
const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
|
12999
|
-
const baseProps =
|
13012
|
+
const baseProps = omit15(props, Object.keys(labelControlProps));
|
13000
13013
|
return /* @__PURE__ */ React105.createElement(LabelControl, __spreadProps(__spreadValues({
|
13001
13014
|
id: `${id.current}-label`,
|
13002
13015
|
htmlFor: id.current,
|