@norges-domstoler/dds-components 0.0.0-dev-20251107074733 → 0.0.0-dev-20251111115604
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/index.css +19 -14
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +13 -2
- package/dist/index.d.ts +13 -2
- package/dist/index.js +103 -52
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +150 -99
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1052,6 +1052,7 @@ var layout_default = {
|
|
|
1052
1052
|
"dds-o-y": "layout_dds-o-y",
|
|
1053
1053
|
"dds-display": "layout_dds-display",
|
|
1054
1054
|
"dds-text-align": "layout_dds-text-align",
|
|
1055
|
+
"dds-word-break": "layout_dds-word-break",
|
|
1055
1056
|
"dds-flex-dir": "layout_dds-flex-dir",
|
|
1056
1057
|
"dds-gap": "layout_dds-gap",
|
|
1057
1058
|
"dds-c-gap": "layout_dds-c-gap",
|
|
@@ -4980,7 +4981,6 @@ function convertBooleanishToBoolean(value) {
|
|
|
4980
4981
|
// src/components/InputMessage/InputMessage.module.css
|
|
4981
4982
|
var InputMessage_default = {
|
|
4982
4983
|
container: "InputMessage_container",
|
|
4983
|
-
"container--error": "InputMessage_container--error",
|
|
4984
4984
|
icon: "InputMessage_icon"
|
|
4985
4985
|
};
|
|
4986
4986
|
|
|
@@ -4996,41 +4996,72 @@ var InputMessage = ({
|
|
|
4996
4996
|
...rest
|
|
4997
4997
|
}) => {
|
|
4998
4998
|
const isError = messageType === "error";
|
|
4999
|
-
|
|
5000
|
-
"
|
|
4999
|
+
const commonProps = {
|
|
5000
|
+
display: "flex",
|
|
5001
|
+
width: "fit-content",
|
|
5002
|
+
maxWidth: "100%",
|
|
5003
|
+
wordBreak: "break-word",
|
|
5004
|
+
...getBaseHTMLProps(id, cn(className, InputMessage_default.container), htmlProps, rest)
|
|
5005
|
+
};
|
|
5006
|
+
const tgCommonProps = {
|
|
5007
|
+
as: "span",
|
|
5008
|
+
children: message != null ? message : children
|
|
5009
|
+
};
|
|
5010
|
+
return isError ? /* @__PURE__ */ jsxs34(
|
|
5011
|
+
Paper,
|
|
5001
5012
|
{
|
|
5002
|
-
...
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
),
|
|
5013
|
+
...commonProps,
|
|
5014
|
+
gap: "x0.25",
|
|
5015
|
+
padding: "x0.25 x0.5",
|
|
5016
|
+
background: "surface-danger-default",
|
|
5017
|
+
borderRadius: "surface",
|
|
5008
5018
|
children: [
|
|
5009
|
-
|
|
5019
|
+
/* @__PURE__ */ jsx213(
|
|
5020
|
+
Icon,
|
|
5021
|
+
{
|
|
5022
|
+
icon: ErrorIcon,
|
|
5023
|
+
iconSize: "small",
|
|
5024
|
+
className: InputMessage_default.icon,
|
|
5025
|
+
color: "icon-on-danger-default"
|
|
5026
|
+
}
|
|
5027
|
+
),
|
|
5010
5028
|
/* @__PURE__ */ jsx213(
|
|
5011
5029
|
Typography,
|
|
5012
5030
|
{
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
children: message != null ? message : children
|
|
5031
|
+
...tgCommonProps,
|
|
5032
|
+
typographyType: "bodySmall",
|
|
5033
|
+
color: "textDefault"
|
|
5017
5034
|
}
|
|
5018
5035
|
)
|
|
5019
5036
|
]
|
|
5020
5037
|
}
|
|
5021
|
-
)
|
|
5038
|
+
) : /* @__PURE__ */ jsx213(Box, { ...commonProps, children: /* @__PURE__ */ jsx213(
|
|
5039
|
+
Typography,
|
|
5040
|
+
{
|
|
5041
|
+
...tgCommonProps,
|
|
5042
|
+
typographyType: "bodyXsmall",
|
|
5043
|
+
color: "textSubtle"
|
|
5044
|
+
}
|
|
5045
|
+
) });
|
|
5022
5046
|
};
|
|
5023
5047
|
InputMessage.displayName = "InputMessage";
|
|
5024
|
-
var renderInputMessage = (
|
|
5025
|
-
|
|
5048
|
+
var renderInputMessage = ({
|
|
5049
|
+
tip,
|
|
5050
|
+
tipId,
|
|
5051
|
+
errorMessage,
|
|
5052
|
+
errorMessageId,
|
|
5053
|
+
noSpacing
|
|
5054
|
+
}) => /* @__PURE__ */ jsxs34(Fragment4, { children: [
|
|
5055
|
+
errorMessage && /* @__PURE__ */ jsx213(
|
|
5026
5056
|
InputMessage,
|
|
5027
5057
|
{
|
|
5028
5058
|
message: errorMessage,
|
|
5029
5059
|
messageType: "error",
|
|
5030
|
-
id: errorMessageId
|
|
5060
|
+
id: errorMessageId,
|
|
5061
|
+
marginBlock: !noSpacing ? "x0.125 0" : void 0
|
|
5031
5062
|
}
|
|
5032
5063
|
),
|
|
5033
|
-
tip &&
|
|
5064
|
+
tip && !errorMessage && /* @__PURE__ */ jsx213(InputMessage, { message: tip, messageType: "tip", id: tipId })
|
|
5034
5065
|
] });
|
|
5035
5066
|
|
|
5036
5067
|
// src/components/SelectionControl/Checkbox/CheckboxGroup.tsx
|
|
@@ -5082,7 +5113,7 @@ var CheckboxGroup = (props) => {
|
|
|
5082
5113
|
readOnly,
|
|
5083
5114
|
showRequiredStyling
|
|
5084
5115
|
}),
|
|
5085
|
-
renderInputMessage(tip, tipId),
|
|
5116
|
+
renderInputMessage({ tip, tipId }),
|
|
5086
5117
|
/* @__PURE__ */ jsx214(CheckboxGroupContext, { value: { ...contextProps }, children: /* @__PURE__ */ jsx214(
|
|
5087
5118
|
"div",
|
|
5088
5119
|
{
|
|
@@ -5093,7 +5124,7 @@ var CheckboxGroup = (props) => {
|
|
|
5093
5124
|
children
|
|
5094
5125
|
}
|
|
5095
5126
|
) }),
|
|
5096
|
-
renderInputMessage(
|
|
5127
|
+
renderInputMessage({ errorMessage, errorMessageId })
|
|
5097
5128
|
]
|
|
5098
5129
|
}
|
|
5099
5130
|
);
|
|
@@ -5274,7 +5305,7 @@ var RadioButtonGroup = ({
|
|
|
5274
5305
|
readOnly,
|
|
5275
5306
|
showRequiredStyling
|
|
5276
5307
|
}),
|
|
5277
|
-
renderInputMessage(tip, tipId),
|
|
5308
|
+
renderInputMessage({ tip, tipId }),
|
|
5278
5309
|
/* @__PURE__ */ jsx216(RadioButtonGroupContext, { value: { ...contextProps }, children: /* @__PURE__ */ jsx216(
|
|
5279
5310
|
"div",
|
|
5280
5311
|
{
|
|
@@ -5286,7 +5317,7 @@ var RadioButtonGroup = ({
|
|
|
5286
5317
|
children
|
|
5287
5318
|
}
|
|
5288
5319
|
) }),
|
|
5289
|
-
renderInputMessage(
|
|
5320
|
+
renderInputMessage({ errorMessage, errorMessageId })
|
|
5290
5321
|
]
|
|
5291
5322
|
}
|
|
5292
5323
|
);
|
|
@@ -5436,7 +5467,7 @@ var CardSelectableGroup = ({
|
|
|
5436
5467
|
);
|
|
5437
5468
|
return hasErrorMessage ? /* @__PURE__ */ jsxs38("div", { children: [
|
|
5438
5469
|
mainContent,
|
|
5439
|
-
renderInputMessage(
|
|
5470
|
+
renderInputMessage({ errorMessage, errorMessageId })
|
|
5440
5471
|
] }) : mainContent;
|
|
5441
5472
|
};
|
|
5442
5473
|
CardSelectableGroup.displayName = "CardSelectableGroup";
|
|
@@ -6258,7 +6289,7 @@ var texts7 = createTexts({
|
|
|
6258
6289
|
import { useDatePicker } from "@react-aria/datepicker";
|
|
6259
6290
|
import { I18nProvider } from "@react-aria/i18n";
|
|
6260
6291
|
import { useDatePickerState } from "@react-stately/datepicker";
|
|
6261
|
-
import { useRef as useRef17 } from "react";
|
|
6292
|
+
import { useId as useId10, useRef as useRef17 } from "react";
|
|
6262
6293
|
|
|
6263
6294
|
// src/components/date-inputs/DatePicker/DateField/DateField.tsx
|
|
6264
6295
|
import {
|
|
@@ -6394,7 +6425,9 @@ var typographyTypes = {
|
|
|
6394
6425
|
function DateSegment({
|
|
6395
6426
|
segment,
|
|
6396
6427
|
state,
|
|
6397
|
-
componentSize
|
|
6428
|
+
componentSize,
|
|
6429
|
+
errorMessageId,
|
|
6430
|
+
tipId
|
|
6398
6431
|
}) {
|
|
6399
6432
|
const ref = useRef14(null);
|
|
6400
6433
|
const { segmentProps } = useDateSegment(segment, state, ref);
|
|
@@ -6402,6 +6435,10 @@ function DateSegment({
|
|
|
6402
6435
|
"div",
|
|
6403
6436
|
{
|
|
6404
6437
|
...segmentProps,
|
|
6438
|
+
"aria-describedby": spaceSeparatedIdListGenerator([
|
|
6439
|
+
errorMessageId ? errorMessageId : void 0,
|
|
6440
|
+
tipId ? tipId : void 0
|
|
6441
|
+
]),
|
|
6405
6442
|
ref,
|
|
6406
6443
|
className: cn(
|
|
6407
6444
|
segmentProps.className,
|
|
@@ -6552,12 +6589,11 @@ function DateInput({
|
|
|
6552
6589
|
clearable,
|
|
6553
6590
|
ref,
|
|
6554
6591
|
afterLabelContent,
|
|
6592
|
+
tipId,
|
|
6593
|
+
errorMessageId,
|
|
6555
6594
|
...props
|
|
6556
6595
|
}) {
|
|
6557
|
-
var _a;
|
|
6558
6596
|
const hasErrorMessage = !!errorMessage;
|
|
6559
|
-
const hasTip = !!tip;
|
|
6560
|
-
const hasMessage = hasErrorMessage || hasTip;
|
|
6561
6597
|
const { isOpen } = useContext12(CalendarPopoverContext);
|
|
6562
6598
|
return /* @__PURE__ */ jsxs46(
|
|
6563
6599
|
"div",
|
|
@@ -6609,13 +6645,7 @@ function DateInput({
|
|
|
6609
6645
|
]
|
|
6610
6646
|
}
|
|
6611
6647
|
),
|
|
6612
|
-
|
|
6613
|
-
InputMessage,
|
|
6614
|
-
{
|
|
6615
|
-
messageType: hasErrorMessage ? "error" : "tip",
|
|
6616
|
-
message: (_a = errorMessage != null ? errorMessage : tip) != null ? _a : ""
|
|
6617
|
-
}
|
|
6618
|
-
)
|
|
6648
|
+
renderInputMessage({ tip, errorMessage, tipId, errorMessageId })
|
|
6619
6649
|
]
|
|
6620
6650
|
}
|
|
6621
6651
|
);
|
|
@@ -6630,6 +6660,8 @@ function DateField({
|
|
|
6630
6660
|
groupProps,
|
|
6631
6661
|
ref,
|
|
6632
6662
|
clearable,
|
|
6663
|
+
errorMessageId,
|
|
6664
|
+
tipId,
|
|
6633
6665
|
...props
|
|
6634
6666
|
}) {
|
|
6635
6667
|
const { locale } = useLocale3();
|
|
@@ -6663,6 +6695,8 @@ function DateField({
|
|
|
6663
6695
|
required: props.isRequired,
|
|
6664
6696
|
clearable,
|
|
6665
6697
|
ref,
|
|
6698
|
+
tipId,
|
|
6699
|
+
errorMessageId,
|
|
6666
6700
|
internalRef,
|
|
6667
6701
|
readOnly: props.isReadOnly,
|
|
6668
6702
|
prefix: /* @__PURE__ */ jsx236(
|
|
@@ -6695,6 +6729,8 @@ function DateField({
|
|
|
6695
6729
|
{
|
|
6696
6730
|
"aria-readonly": props.isReadOnly,
|
|
6697
6731
|
componentSize,
|
|
6732
|
+
errorMessageId,
|
|
6733
|
+
tipId,
|
|
6698
6734
|
segment,
|
|
6699
6735
|
state
|
|
6700
6736
|
},
|
|
@@ -6752,6 +6788,7 @@ function DatePicker({
|
|
|
6752
6788
|
ref,
|
|
6753
6789
|
...props
|
|
6754
6790
|
}) {
|
|
6791
|
+
var _a;
|
|
6755
6792
|
const lang = useLanguage();
|
|
6756
6793
|
if (!lang) {
|
|
6757
6794
|
throw new Error("DatePicker must be used within a DdsProvider");
|
|
@@ -6765,6 +6802,11 @@ function DatePicker({
|
|
|
6765
6802
|
state,
|
|
6766
6803
|
internalRef
|
|
6767
6804
|
);
|
|
6805
|
+
const hasErrorMessage = !!errorMessage;
|
|
6806
|
+
const hasTip = !!tip;
|
|
6807
|
+
const uniqueId = (_a = props.id) != null ? _a : useId10();
|
|
6808
|
+
const errorMessageId = hasErrorMessage ? `${uniqueId}-errorMessage` : void 0;
|
|
6809
|
+
const tipId = hasTip ? `${uniqueId}-tip` : void 0;
|
|
6768
6810
|
return /* @__PURE__ */ jsx237(I18nProvider, { locale: LOCALE[lang], children: /* @__PURE__ */ jsxs47(
|
|
6769
6811
|
CalendarPopover,
|
|
6770
6812
|
{
|
|
@@ -6780,8 +6822,11 @@ function DatePicker({
|
|
|
6780
6822
|
ref: combinedRef,
|
|
6781
6823
|
componentSize,
|
|
6782
6824
|
tip,
|
|
6825
|
+
id: uniqueId,
|
|
6783
6826
|
label: props.label,
|
|
6784
6827
|
errorMessage,
|
|
6828
|
+
errorMessageId,
|
|
6829
|
+
tipId,
|
|
6785
6830
|
buttonProps,
|
|
6786
6831
|
style,
|
|
6787
6832
|
width,
|
|
@@ -6798,7 +6843,7 @@ DatePicker.displayName = "DatePicker";
|
|
|
6798
6843
|
// src/components/date-inputs/TimePicker/TimePicker.tsx
|
|
6799
6844
|
import { useTimeField } from "@react-aria/datepicker";
|
|
6800
6845
|
import { useTimeFieldState } from "@react-stately/datepicker";
|
|
6801
|
-
import { useRef as useRef18 } from "react";
|
|
6846
|
+
import { useId as useId11, useRef as useRef18 } from "react";
|
|
6802
6847
|
|
|
6803
6848
|
// src/components/date-inputs/TimePicker/TimePicker.utils.ts
|
|
6804
6849
|
function formatTimeSegments(segments) {
|
|
@@ -6836,6 +6881,7 @@ function TimePicker({
|
|
|
6836
6881
|
ref,
|
|
6837
6882
|
...props
|
|
6838
6883
|
}) {
|
|
6884
|
+
var _a;
|
|
6839
6885
|
const lang = useLanguage();
|
|
6840
6886
|
if (!lang) {
|
|
6841
6887
|
throw new Error("TimePicker must be used within a DdsProvider");
|
|
@@ -6850,6 +6896,11 @@ function TimePicker({
|
|
|
6850
6896
|
state,
|
|
6851
6897
|
internalRef
|
|
6852
6898
|
);
|
|
6899
|
+
const hasErrorMessage = !!props.errorMessage;
|
|
6900
|
+
const hasTip = !!props.tip;
|
|
6901
|
+
const uniqueId = (_a = props.id) != null ? _a : useId11();
|
|
6902
|
+
const errorMessageId = hasErrorMessage ? `${uniqueId}-errorMessage` : void 0;
|
|
6903
|
+
const tipId = hasTip ? `${uniqueId}-tip` : void 0;
|
|
6853
6904
|
const iconSize = componentSize === "xsmall" ? "small" : "medium";
|
|
6854
6905
|
const disabled = props.isDisabled || !!fieldProps["aria-disabled"];
|
|
6855
6906
|
const formattedSegments = formatTimeSegments(state.segments);
|
|
@@ -6857,6 +6908,8 @@ function TimePicker({
|
|
|
6857
6908
|
DateInput,
|
|
6858
6909
|
{
|
|
6859
6910
|
...props,
|
|
6911
|
+
errorMessageId,
|
|
6912
|
+
tipId,
|
|
6860
6913
|
width,
|
|
6861
6914
|
disabled,
|
|
6862
6915
|
required: props.isRequired,
|
|
@@ -6881,6 +6934,8 @@ function TimePicker({
|
|
|
6881
6934
|
children: formattedSegments.map((segment, i) => /* @__PURE__ */ jsx238(
|
|
6882
6935
|
DateSegment,
|
|
6883
6936
|
{
|
|
6937
|
+
errorMessageId,
|
|
6938
|
+
tipId,
|
|
6884
6939
|
componentSize,
|
|
6885
6940
|
segment,
|
|
6886
6941
|
state
|
|
@@ -7284,7 +7339,7 @@ import {
|
|
|
7284
7339
|
Children as ReactChildren2,
|
|
7285
7340
|
cloneElement as cloneElement2,
|
|
7286
7341
|
isValidElement as isValidElement3,
|
|
7287
|
-
useId as
|
|
7342
|
+
useId as useId12,
|
|
7288
7343
|
useRef as useRef20,
|
|
7289
7344
|
useState as useState13
|
|
7290
7345
|
} from "react";
|
|
@@ -7303,7 +7358,7 @@ var DrawerGroup = ({
|
|
|
7303
7358
|
propIsOpen != null ? propIsOpen : internalIsOpen,
|
|
7304
7359
|
propSetIsOpen != null ? propSetIsOpen : internalSetIsOpen
|
|
7305
7360
|
];
|
|
7306
|
-
const generatedId =
|
|
7361
|
+
const generatedId = useId12();
|
|
7307
7362
|
const uniqueDrawerId = drawerId != null ? drawerId : `${generatedId}-drawer`;
|
|
7308
7363
|
const triggerRef = useRef20(null);
|
|
7309
7364
|
const open = () => setIsOpen(true);
|
|
@@ -7378,7 +7433,7 @@ function EmptyContent({
|
|
|
7378
7433
|
EmptyContent.displayName = "EmptyContent";
|
|
7379
7434
|
|
|
7380
7435
|
// src/components/FavStar/FavStar.tsx
|
|
7381
|
-
import { useId as
|
|
7436
|
+
import { useId as useId13 } from "react";
|
|
7382
7437
|
|
|
7383
7438
|
// src/components/FavStar/FavStar.module.css
|
|
7384
7439
|
var FavStar_default = {
|
|
@@ -7410,7 +7465,7 @@ var FavStar = ({
|
|
|
7410
7465
|
htmlProps,
|
|
7411
7466
|
rest
|
|
7412
7467
|
);
|
|
7413
|
-
const generatedId =
|
|
7468
|
+
const generatedId = useId13();
|
|
7414
7469
|
const [checked, setChecked] = useControllableState({
|
|
7415
7470
|
value: checkedProp,
|
|
7416
7471
|
defaultValue: defaultChecked != null ? defaultChecked : false,
|
|
@@ -7480,7 +7535,7 @@ var Feedback_default = {
|
|
|
7480
7535
|
// src/components/TextArea/TextArea.tsx
|
|
7481
7536
|
import {
|
|
7482
7537
|
useEffect as useEffect20,
|
|
7483
|
-
useId as
|
|
7538
|
+
useId as useId15,
|
|
7484
7539
|
useRef as useRef21,
|
|
7485
7540
|
useState as useState14
|
|
7486
7541
|
} from "react";
|
|
@@ -7491,7 +7546,7 @@ var TextArea_default = {
|
|
|
7491
7546
|
};
|
|
7492
7547
|
|
|
7493
7548
|
// src/components/helpers/CharCounter/CharCounter.tsx
|
|
7494
|
-
import { useId as
|
|
7549
|
+
import { useId as useId14 } from "react";
|
|
7495
7550
|
|
|
7496
7551
|
// src/components/helpers/CharCounter/CharCounter.module.css
|
|
7497
7552
|
var CharCounter_default = {
|
|
@@ -7503,7 +7558,7 @@ import { jsx as jsx251, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
|
7503
7558
|
function CharCounter(props) {
|
|
7504
7559
|
const { t } = useTranslation();
|
|
7505
7560
|
const { current, max, id } = props;
|
|
7506
|
-
const generatedId =
|
|
7561
|
+
const generatedId = useId14();
|
|
7507
7562
|
const uniqueId = id != null ? id : `${generatedId}-characterCounter`;
|
|
7508
7563
|
return /* @__PURE__ */ jsxs53(
|
|
7509
7564
|
Typography,
|
|
@@ -7560,7 +7615,7 @@ var TextArea = ({
|
|
|
7560
7615
|
ref,
|
|
7561
7616
|
...rest
|
|
7562
7617
|
}) => {
|
|
7563
|
-
const generatedId =
|
|
7618
|
+
const generatedId = useId15();
|
|
7564
7619
|
const uniqueId = id != null ? id : `${generatedId}-textArea`;
|
|
7565
7620
|
const textAreaRef = useRef21(null);
|
|
7566
7621
|
const multiRef = useCombinedRef(ref, textAreaRef);
|
|
@@ -7630,7 +7685,7 @@ var TextArea = ({
|
|
|
7630
7685
|
justifyContent: withCharacterCounter ? hasMessage ? "space-between" : "flex-end" : void 0,
|
|
7631
7686
|
width: withCharacterCounter ? inputWidth : void 0,
|
|
7632
7687
|
children: [
|
|
7633
|
-
renderInputMessage(tip, tipId, errorMessage, errorMessageId),
|
|
7688
|
+
renderInputMessage({ tip, tipId, errorMessage, errorMessageId }),
|
|
7634
7689
|
renderCharCounter(
|
|
7635
7690
|
characterCounterId,
|
|
7636
7691
|
withCharacterCounter,
|
|
@@ -7713,7 +7768,7 @@ import {
|
|
|
7713
7768
|
Children as ReactChildren3,
|
|
7714
7769
|
cloneElement as cloneElement3,
|
|
7715
7770
|
useEffect as useEffect21,
|
|
7716
|
-
useId as
|
|
7771
|
+
useId as useId16,
|
|
7717
7772
|
useRef as useRef22,
|
|
7718
7773
|
useState as useState15
|
|
7719
7774
|
} from "react";
|
|
@@ -7744,7 +7799,7 @@ var Tooltip = ({
|
|
|
7744
7799
|
htmlProps,
|
|
7745
7800
|
...rest
|
|
7746
7801
|
}) => {
|
|
7747
|
-
const generatedId =
|
|
7802
|
+
const generatedId = useId16();
|
|
7748
7803
|
const uniqueTooltipId = tooltipId != null ? tooltipId : `${generatedId}-tooltip`;
|
|
7749
7804
|
const [open, setOpen] = useState15(false);
|
|
7750
7805
|
const [inView, setInView] = useState15(keepMounted ? false : true);
|
|
@@ -8086,7 +8141,7 @@ var FieldsetGroup = ({
|
|
|
8086
8141
|
FieldsetGroup.displayName = "FieldsetGroup";
|
|
8087
8142
|
|
|
8088
8143
|
// src/components/FileUploader/FileUploader.tsx
|
|
8089
|
-
import { useId as
|
|
8144
|
+
import { useId as useId17 } from "react";
|
|
8090
8145
|
|
|
8091
8146
|
// src/components/FileUploader/ErrorList.tsx
|
|
8092
8147
|
import { jsx as jsx259 } from "react/jsx-runtime";
|
|
@@ -8096,14 +8151,10 @@ var ErrorList = (props) => {
|
|
|
8096
8151
|
return null;
|
|
8097
8152
|
}
|
|
8098
8153
|
if (errors.length === 1) {
|
|
8099
|
-
return
|
|
8100
|
-
|
|
8101
|
-
|
|
8102
|
-
|
|
8103
|
-
message: errors[0].message,
|
|
8104
|
-
messageType: "error"
|
|
8105
|
-
}
|
|
8106
|
-
);
|
|
8154
|
+
return renderInputMessage({
|
|
8155
|
+
errorMessage: errors[0].message,
|
|
8156
|
+
errorMessageId: errors[0].id
|
|
8157
|
+
});
|
|
8107
8158
|
}
|
|
8108
8159
|
return /* @__PURE__ */ jsx259(StylelessList, { children: errors.map(({ id, message }) => {
|
|
8109
8160
|
return /* @__PURE__ */ jsx259("li", { children: /* @__PURE__ */ jsx259(
|
|
@@ -8560,7 +8611,7 @@ var FileUploader = (props) => {
|
|
|
8560
8611
|
const { t } = useTranslation();
|
|
8561
8612
|
const tDropAreaLabel = dropAreaLabel != null ? dropAreaLabel : t(texts17.dragAndDropOr);
|
|
8562
8613
|
const tBtnLabel = btnLabel != null ? btnLabel : t(texts17.selectFile);
|
|
8563
|
-
const generatedId =
|
|
8614
|
+
const generatedId = useId17();
|
|
8564
8615
|
const uniqueId = id != null ? id : `${generatedId}-fileUploader`;
|
|
8565
8616
|
const {
|
|
8566
8617
|
state: { files: stateFiles, isDragActive, rootErrors },
|
|
@@ -8653,7 +8704,7 @@ var FileUploader = (props) => {
|
|
|
8653
8704
|
readOnly,
|
|
8654
8705
|
afterLabelContent
|
|
8655
8706
|
}),
|
|
8656
|
-
|
|
8707
|
+
renderInputMessage({ tip, tipId }),
|
|
8657
8708
|
inactive ? input : withDragAndDrop ? /* @__PURE__ */ jsxs59(
|
|
8658
8709
|
VStack,
|
|
8659
8710
|
{
|
|
@@ -9076,7 +9127,7 @@ var InlineEditContextProvider = (props) => {
|
|
|
9076
9127
|
InlineEditContextProvider.displayName = "InlineEditContextProvider";
|
|
9077
9128
|
|
|
9078
9129
|
// src/components/InlineEdit/InlineField.tsx
|
|
9079
|
-
import { useId as
|
|
9130
|
+
import { useId as useId18, useRef as useRef24 } from "react";
|
|
9080
9131
|
|
|
9081
9132
|
// src/components/InlineEdit/InlineEdit.module.css
|
|
9082
9133
|
var InlineEdit_default = {
|
|
@@ -9181,7 +9232,7 @@ function InlineField(props) {
|
|
|
9181
9232
|
} = props;
|
|
9182
9233
|
const { onBlur, onChange, onFocus, isEditing, value, emptiable } = useInlineEditContext();
|
|
9183
9234
|
const { t } = useTranslation();
|
|
9184
|
-
const generatedId =
|
|
9235
|
+
const generatedId = useId18();
|
|
9185
9236
|
const uniqueId = id != null ? id : `${generatedId}-InlineEdit`;
|
|
9186
9237
|
const hasErrorMessage = !!errorMessage;
|
|
9187
9238
|
const hasErrorState = !!error || hasErrorMessage;
|
|
@@ -9277,7 +9328,7 @@ function InlineField(props) {
|
|
|
9277
9328
|
renderElement()
|
|
9278
9329
|
] }),
|
|
9279
9330
|
inlineEditVisuallyHidden(descId, emptiable),
|
|
9280
|
-
renderInputMessage(
|
|
9331
|
+
renderInputMessage({ errorMessage, errorMessageId })
|
|
9281
9332
|
] });
|
|
9282
9333
|
}
|
|
9283
9334
|
|
|
@@ -9701,7 +9752,7 @@ LocalMessage.displayName = "LocalMessage";
|
|
|
9701
9752
|
import {
|
|
9702
9753
|
useContext as useContext17,
|
|
9703
9754
|
useEffect as useEffect24,
|
|
9704
|
-
useId as
|
|
9755
|
+
useId as useId19,
|
|
9705
9756
|
useRef as useRef28
|
|
9706
9757
|
} from "react";
|
|
9707
9758
|
import { createPortal as createPortal3 } from "react-dom";
|
|
@@ -9733,7 +9784,7 @@ var Modal = ({
|
|
|
9733
9784
|
ref,
|
|
9734
9785
|
...rest
|
|
9735
9786
|
}) => {
|
|
9736
|
-
const generatedId =
|
|
9787
|
+
const generatedId = useId19();
|
|
9737
9788
|
const modalId = id != null ? id : `${generatedId}-modal`;
|
|
9738
9789
|
const headerId = `${modalId}-header`;
|
|
9739
9790
|
const modalRef = useFocusTrap(isOpen, initialFocusRef);
|
|
@@ -9924,7 +9975,7 @@ function PaginationGenerator(pagesAmount, activePage) {
|
|
|
9924
9975
|
import {
|
|
9925
9976
|
useCallback as useCallback7,
|
|
9926
9977
|
useContext as useContext18,
|
|
9927
|
-
useId as
|
|
9978
|
+
useId as useId20
|
|
9928
9979
|
} from "react";
|
|
9929
9980
|
import {
|
|
9930
9981
|
default as ReactSelect
|
|
@@ -10360,7 +10411,7 @@ function Select({
|
|
|
10360
10411
|
throw new Error("Select must be used within a ThemeProvider");
|
|
10361
10412
|
}
|
|
10362
10413
|
const portalTarget = menuPortalTarget != null ? menuPortalTarget : themeContext == null ? void 0 : themeContext.el;
|
|
10363
|
-
const generatedId =
|
|
10414
|
+
const generatedId = useId20();
|
|
10364
10415
|
const uniqueId = id != null ? id : `${generatedId}-select`;
|
|
10365
10416
|
const singleValueId = !isMulti ? `${uniqueId}-singleValue` : void 0;
|
|
10366
10417
|
const hasErrorMessage = !!errorMessage;
|
|
@@ -10441,7 +10492,7 @@ function Select({
|
|
|
10441
10492
|
placeholder: placeholder ? placeholder : "",
|
|
10442
10493
|
closeMenuOnSelect: closeMenuOnSelect ? closeMenuOnSelect : isMulti ? false : true,
|
|
10443
10494
|
isMulti,
|
|
10444
|
-
instanceId: instanceId != null ? instanceId :
|
|
10495
|
+
instanceId: instanceId != null ? instanceId : useId20(),
|
|
10445
10496
|
inputId: uniqueId,
|
|
10446
10497
|
name: uniqueId,
|
|
10447
10498
|
menuPortalTarget: portalTarget,
|
|
@@ -10492,7 +10543,7 @@ function Select({
|
|
|
10492
10543
|
afterLabelContent
|
|
10493
10544
|
}),
|
|
10494
10545
|
/* @__PURE__ */ jsx288(ReactSelect, { ...reactSelectProps, ref }),
|
|
10495
|
-
renderInputMessage(tip, tipId, errorMessage, errorMessageId)
|
|
10546
|
+
renderInputMessage({ tip, tipId, errorMessage, errorMessageId })
|
|
10496
10547
|
]
|
|
10497
10548
|
}
|
|
10498
10549
|
);
|
|
@@ -10500,7 +10551,7 @@ function Select({
|
|
|
10500
10551
|
Select.displayName = "Select";
|
|
10501
10552
|
|
|
10502
10553
|
// src/components/Select/NativeSelect/NativeSelect.tsx
|
|
10503
|
-
import { useEffect as useEffect25, useId as
|
|
10554
|
+
import { useEffect as useEffect25, useId as useId21, useRef as useRef29, useState as useState21 } from "react";
|
|
10504
10555
|
|
|
10505
10556
|
// src/components/Select/NativeSelect/NativeSelect.module.css
|
|
10506
10557
|
var NativeSelect_default = {
|
|
@@ -10563,7 +10614,7 @@ var NativeSelect = ({
|
|
|
10563
10614
|
}
|
|
10564
10615
|
}
|
|
10565
10616
|
}, [clearable]);
|
|
10566
|
-
const generatedId =
|
|
10617
|
+
const generatedId = useId21();
|
|
10567
10618
|
const uniqueId = id != null ? id : `${generatedId}-native-select`;
|
|
10568
10619
|
const hasErrorMessage = !!errorMessage;
|
|
10569
10620
|
const hasTip = !!tip;
|
|
@@ -10646,7 +10697,7 @@ var NativeSelect = ({
|
|
|
10646
10697
|
}
|
|
10647
10698
|
)
|
|
10648
10699
|
] }),
|
|
10649
|
-
renderInputMessage(tip, tipId, errorMessage, errorMessageId)
|
|
10700
|
+
renderInputMessage({ tip, tipId, errorMessage, errorMessageId })
|
|
10650
10701
|
] });
|
|
10651
10702
|
};
|
|
10652
10703
|
var NativeSelectPlaceholder = ({
|
|
@@ -11013,7 +11064,7 @@ var texts21 = createTexts({
|
|
|
11013
11064
|
// src/components/PhoneInput/PhoneInput.tsx
|
|
11014
11065
|
import {
|
|
11015
11066
|
useEffect as useEffect26,
|
|
11016
|
-
useId as
|
|
11067
|
+
useId as useId22,
|
|
11017
11068
|
useLayoutEffect as useLayoutEffect2,
|
|
11018
11069
|
useRef as useRef30,
|
|
11019
11070
|
useState as useState23
|
|
@@ -11479,7 +11530,7 @@ var PhoneInput = ({
|
|
|
11479
11530
|
const { t } = useTranslation();
|
|
11480
11531
|
const tGroupLabel = groupLabel != null ? groupLabel : t(texts22.countryCodeAndPhoneNumber);
|
|
11481
11532
|
const tSelectLabel = selectLabel != null ? selectLabel : t(texts22.countryCode);
|
|
11482
|
-
const generatedId =
|
|
11533
|
+
const generatedId = useId22();
|
|
11483
11534
|
const uniqueId = (_a = props.id) != null ? _a : generatedId;
|
|
11484
11535
|
const phoneInputId = `${uniqueId}-phone-input`;
|
|
11485
11536
|
const phoneNumberId = `${uniqueId}-phone-number`;
|
|
@@ -11644,7 +11695,7 @@ var PhoneInput = ({
|
|
|
11644
11695
|
]
|
|
11645
11696
|
}
|
|
11646
11697
|
),
|
|
11647
|
-
hasMessage && renderInputMessage(tip, tipId, errorMessage, errorMessageId)
|
|
11698
|
+
hasMessage && renderInputMessage({ tip, tipId, errorMessage, errorMessageId })
|
|
11648
11699
|
] });
|
|
11649
11700
|
};
|
|
11650
11701
|
PhoneInput.displayName = "PhoneInput";
|
|
@@ -11673,7 +11724,7 @@ var texts22 = createTexts({
|
|
|
11673
11724
|
import {
|
|
11674
11725
|
useContext as useContext20,
|
|
11675
11726
|
useEffect as useEffect27,
|
|
11676
|
-
useId as
|
|
11727
|
+
useId as useId23
|
|
11677
11728
|
} from "react";
|
|
11678
11729
|
import { createPortal as createPortal4 } from "react-dom";
|
|
11679
11730
|
|
|
@@ -11734,7 +11785,7 @@ var Popover = ({
|
|
|
11734
11785
|
} = context;
|
|
11735
11786
|
const { t } = useTranslation();
|
|
11736
11787
|
const hasContext = !isEmpty(context);
|
|
11737
|
-
const generatedId =
|
|
11788
|
+
const generatedId = useId23();
|
|
11738
11789
|
const uniquePopoverId = id != null ? id : `${generatedId}-popover`;
|
|
11739
11790
|
const [
|
|
11740
11791
|
popoverId,
|
|
@@ -11844,7 +11895,7 @@ import {
|
|
|
11844
11895
|
Children as ReactChildren4,
|
|
11845
11896
|
cloneElement as cloneElement4,
|
|
11846
11897
|
isValidElement as isValidElement4,
|
|
11847
|
-
useId as
|
|
11898
|
+
useId as useId24,
|
|
11848
11899
|
useRef as useRef31,
|
|
11849
11900
|
useState as useState24
|
|
11850
11901
|
} from "react";
|
|
@@ -11862,7 +11913,7 @@ var PopoverGroup = ({
|
|
|
11862
11913
|
const [internalIsOpen, internalSetIsOpen] = useState24(isInitiallyOpen);
|
|
11863
11914
|
const open = propIsOpen != null ? propIsOpen : internalIsOpen;
|
|
11864
11915
|
const setOpen = propSetIsOpen != null ? propSetIsOpen : internalSetIsOpen;
|
|
11865
|
-
const generatedId =
|
|
11916
|
+
const generatedId = useId24();
|
|
11866
11917
|
const uniquePopoverId = popoverId != null ? popoverId : `${generatedId}-popover`;
|
|
11867
11918
|
const [floatOptions, setFloatOptions] = useState24();
|
|
11868
11919
|
const { refs, styles: positionStyles } = useFloatPosition(null, floatOptions);
|
|
@@ -12210,7 +12261,7 @@ var texts24 = createTexts({
|
|
|
12210
12261
|
});
|
|
12211
12262
|
|
|
12212
12263
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
12213
|
-
import { useId as
|
|
12264
|
+
import { useId as useId25 } from "react";
|
|
12214
12265
|
|
|
12215
12266
|
// src/components/ProgressBar/ProgressBar.module.css
|
|
12216
12267
|
var ProgressBar_default = {
|
|
@@ -12239,7 +12290,7 @@ var ProgressBar = ({
|
|
|
12239
12290
|
style,
|
|
12240
12291
|
...rest
|
|
12241
12292
|
}) => {
|
|
12242
|
-
const generatedId =
|
|
12293
|
+
const generatedId = useId25();
|
|
12243
12294
|
const uniqueId = id != null ? id : `${generatedId}-searchInput`;
|
|
12244
12295
|
const hasErrorMessage = !!errorMessage;
|
|
12245
12296
|
const hasTip = !!tip;
|
|
@@ -12288,14 +12339,14 @@ var ProgressBar = ({
|
|
|
12288
12339
|
)
|
|
12289
12340
|
}
|
|
12290
12341
|
),
|
|
12291
|
-
renderInputMessage(tip, tipId, errorMessage, errorMessageId)
|
|
12342
|
+
renderInputMessage({ tip, tipId, errorMessage, errorMessageId })
|
|
12292
12343
|
] });
|
|
12293
12344
|
};
|
|
12294
12345
|
ProgressBar.displayName = "ProgressBar";
|
|
12295
12346
|
|
|
12296
12347
|
// src/components/Search/Search.tsx
|
|
12297
12348
|
import {
|
|
12298
|
-
useId as
|
|
12349
|
+
useId as useId26,
|
|
12299
12350
|
useState as useState26
|
|
12300
12351
|
} from "react";
|
|
12301
12352
|
|
|
@@ -12500,7 +12551,7 @@ var Search = ({
|
|
|
12500
12551
|
...rest
|
|
12501
12552
|
}) => {
|
|
12502
12553
|
var _a;
|
|
12503
|
-
const generatedId =
|
|
12554
|
+
const generatedId = useId26();
|
|
12504
12555
|
const uniqueId = id != null ? id : `${generatedId}-searchInput`;
|
|
12505
12556
|
const tipId = derivativeIdGenerator(uniqueId, "tip");
|
|
12506
12557
|
const suggestionsId = derivativeIdGenerator(uniqueId, "suggestions");
|
|
@@ -12630,7 +12681,7 @@ var Search = ({
|
|
|
12630
12681
|
]
|
|
12631
12682
|
}
|
|
12632
12683
|
) : inputGroup,
|
|
12633
|
-
renderInputMessage(tip, tipId)
|
|
12684
|
+
renderInputMessage({ tip, tipId })
|
|
12634
12685
|
] })
|
|
12635
12686
|
] });
|
|
12636
12687
|
};
|
|
@@ -13392,7 +13443,7 @@ var AddTabButton = ({
|
|
|
13392
13443
|
AddTabButton.displayName = "AddTabButton";
|
|
13393
13444
|
|
|
13394
13445
|
// src/components/Tabs/Tabs.tsx
|
|
13395
|
-
import { useEffect as useEffect33, useId as
|
|
13446
|
+
import { useEffect as useEffect33, useId as useId27, useRef as useRef36, useState as useState31 } from "react";
|
|
13396
13447
|
import { jsx as jsx316 } from "react/jsx-runtime";
|
|
13397
13448
|
var TABS_SIZES = createSizes("small", "medium");
|
|
13398
13449
|
var Tabs = ({
|
|
@@ -13408,7 +13459,7 @@ var Tabs = ({
|
|
|
13408
13459
|
htmlProps,
|
|
13409
13460
|
...rest
|
|
13410
13461
|
}) => {
|
|
13411
|
-
const generatedId =
|
|
13462
|
+
const generatedId = useId27();
|
|
13412
13463
|
const uniqueId = id != null ? id : `${generatedId}-tabs`;
|
|
13413
13464
|
const [thisActiveTab, setActiveTab] = useState31(activeTab != null ? activeTab : 0);
|
|
13414
13465
|
const [hasTabFocus, setHasTabFocus] = useState31(false);
|
|
@@ -13739,7 +13790,7 @@ var Tag = ({
|
|
|
13739
13790
|
Tag.displayName = "Tag";
|
|
13740
13791
|
|
|
13741
13792
|
// src/components/TextInput/TextInput.tsx
|
|
13742
|
-
import { useId as
|
|
13793
|
+
import { useId as useId28, useLayoutEffect as useLayoutEffect4, useRef as useRef38, useState as useState33 } from "react";
|
|
13743
13794
|
|
|
13744
13795
|
// src/components/TextInput/TextInput.module.css
|
|
13745
13796
|
var TextInput_default = {
|
|
@@ -13810,7 +13861,7 @@ var TextInput = ({
|
|
|
13810
13861
|
onChange(event);
|
|
13811
13862
|
}
|
|
13812
13863
|
};
|
|
13813
|
-
const generatedId =
|
|
13864
|
+
const generatedId = useId28();
|
|
13814
13865
|
const uniqueId = id != null ? id : `${generatedId}-textInput`;
|
|
13815
13866
|
const hasErrorMessage = !!errorMessage;
|
|
13816
13867
|
const hasTip = !!tip;
|
|
@@ -13958,7 +14009,7 @@ var TextInput = ({
|
|
|
13958
14009
|
gap: "x0.5",
|
|
13959
14010
|
width: withCharacterCounter ? inputWidth : void 0,
|
|
13960
14011
|
children: [
|
|
13961
|
-
renderInputMessage(tip, tipId, errorMessage, errorMessageId),
|
|
14012
|
+
renderInputMessage({ tip, tipId, errorMessage, errorMessageId }),
|
|
13962
14013
|
renderCharCounter(
|
|
13963
14014
|
characterCounterId,
|
|
13964
14015
|
withCharacterCounter,
|
|
@@ -13975,7 +14026,7 @@ var TextInput = ({
|
|
|
13975
14026
|
TextInput.displayName = "TextInput";
|
|
13976
14027
|
|
|
13977
14028
|
// src/components/Toggle/Toggle.tsx
|
|
13978
|
-
import { useId as
|
|
14029
|
+
import { useId as useId29 } from "react";
|
|
13979
14030
|
|
|
13980
14031
|
// src/components/Toggle/Toggle.module.css
|
|
13981
14032
|
var Toggle_default = {
|
|
@@ -14010,7 +14061,7 @@ var Toggle = ({
|
|
|
14010
14061
|
...rest
|
|
14011
14062
|
}) => {
|
|
14012
14063
|
const { t } = useTranslation();
|
|
14013
|
-
const generatedId =
|
|
14064
|
+
const generatedId = useId29();
|
|
14014
14065
|
const uniqueId = id != null ? id : `${generatedId}-toggle`;
|
|
14015
14066
|
const iconSize = size2 === "large" ? "medium" : "small";
|
|
14016
14067
|
const [checked, setChecked] = useControllableState({
|
|
@@ -14080,7 +14131,7 @@ var Toggle = ({
|
|
|
14080
14131
|
Toggle.displayName = "Toggle";
|
|
14081
14132
|
|
|
14082
14133
|
// src/components/ToggleBar/ToggleBar.tsx
|
|
14083
|
-
import { useId as
|
|
14134
|
+
import { useId as useId30, useState as useState34 } from "react";
|
|
14084
14135
|
|
|
14085
14136
|
// src/components/ToggleBar/ToggleBar.context.tsx
|
|
14086
14137
|
import { createContext as createContext20, useContext as useContext28 } from "react";
|
|
@@ -14120,7 +14171,7 @@ var ToggleBar = (props) => {
|
|
|
14120
14171
|
id,
|
|
14121
14172
|
...rest
|
|
14122
14173
|
} = props;
|
|
14123
|
-
const generatedId =
|
|
14174
|
+
const generatedId = useId30();
|
|
14124
14175
|
const uniqueId = id != null ? id : `${generatedId}-ToggleBar`;
|
|
14125
14176
|
const [groupValue, setGroupValue] = useState34(value);
|
|
14126
14177
|
const handleChange = combineHandlers(
|
|
@@ -14157,7 +14208,7 @@ var ToggleBar = (props) => {
|
|
|
14157
14208
|
ToggleBar.displayName = "ToggleBar";
|
|
14158
14209
|
|
|
14159
14210
|
// src/components/ToggleBar/ToggleRadio.tsx
|
|
14160
|
-
import { useId as
|
|
14211
|
+
import { useId as useId31 } from "react";
|
|
14161
14212
|
import { jsx as jsx325, jsxs as jsxs87 } from "react/jsx-runtime";
|
|
14162
14213
|
var typographyTypes3 = {
|
|
14163
14214
|
large: "bodyLarge",
|
|
@@ -14189,7 +14240,7 @@ var ToggleRadio = ({
|
|
|
14189
14240
|
id,
|
|
14190
14241
|
...rest
|
|
14191
14242
|
}) => {
|
|
14192
|
-
const generatedId =
|
|
14243
|
+
const generatedId = useId31();
|
|
14193
14244
|
const uniqueId = id != null ? id : `${generatedId}-ToggleRadio`;
|
|
14194
14245
|
const group = useToggleBarContext();
|
|
14195
14246
|
const handleChange = (event) => {
|
|
@@ -14238,7 +14289,7 @@ var ToggleRadio = ({
|
|
|
14238
14289
|
ToggleRadio.displayName = "ToggleRadio";
|
|
14239
14290
|
|
|
14240
14291
|
// src/components/ToggleButton/ToggleButton.tsx
|
|
14241
|
-
import { useId as
|
|
14292
|
+
import { useId as useId32 } from "react";
|
|
14242
14293
|
|
|
14243
14294
|
// src/components/ToggleButton/ToggleButton.module.css
|
|
14244
14295
|
var ToggleButton_default = {
|
|
@@ -14259,7 +14310,7 @@ var ToggleButton = ({
|
|
|
14259
14310
|
htmlProps,
|
|
14260
14311
|
...rest
|
|
14261
14312
|
}) => {
|
|
14262
|
-
const generatedId =
|
|
14313
|
+
const generatedId = useId32();
|
|
14263
14314
|
const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
|
|
14264
14315
|
const hasIcon = !!icon;
|
|
14265
14316
|
return /* @__PURE__ */ jsxs88(Box, { as: "label", htmlFor: uniqueId, width: "fit-content", children: [
|
|
@@ -14297,7 +14348,7 @@ var ToggleButton = ({
|
|
|
14297
14348
|
ToggleButton.displayName = "ToggleButton";
|
|
14298
14349
|
|
|
14299
14350
|
// src/components/ToggleButton/ToggleButtonGroup.tsx
|
|
14300
|
-
import { useId as
|
|
14351
|
+
import { useId as useId33 } from "react";
|
|
14301
14352
|
import { jsx as jsx327, jsxs as jsxs89 } from "react/jsx-runtime";
|
|
14302
14353
|
var ToggleButtonGroup = (props) => {
|
|
14303
14354
|
const {
|
|
@@ -14310,7 +14361,7 @@ var ToggleButtonGroup = (props) => {
|
|
|
14310
14361
|
htmlProps,
|
|
14311
14362
|
...rest
|
|
14312
14363
|
} = props;
|
|
14313
|
-
const generatedId =
|
|
14364
|
+
const generatedId = useId33();
|
|
14314
14365
|
const uniqueLabelId = labelId != null ? labelId : `${generatedId}-ToggleButtonGroupLabel`;
|
|
14315
14366
|
return /* @__PURE__ */ jsxs89(
|
|
14316
14367
|
"div",
|