@norges-domstoler/dds-components 15.0.0 → 15.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/index.d.mts +13 -9
- package/dist/index.d.ts +13 -9
- package/dist/index.js +95 -40
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +95 -40
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
package/dist/index.d.mts
CHANGED
|
@@ -2360,7 +2360,7 @@ interface PopoverGroupProps {
|
|
|
2360
2360
|
isOpen?: boolean;
|
|
2361
2361
|
/** `id` til `<Popover />.` */
|
|
2362
2362
|
popoverId?: string;
|
|
2363
|
-
/** Barna til wrapperen: anchor-element som det første og `<Popover />`
|
|
2363
|
+
/** Barna til wrapperen: anchor-element som det første og `<Popover />` som det andre. */
|
|
2364
2364
|
children: ReactNode;
|
|
2365
2365
|
}
|
|
2366
2366
|
declare const PopoverGroup: {
|
|
@@ -2559,7 +2559,9 @@ type SelectProps<Option = unknown, IsMulti extends boolean = false> = {
|
|
|
2559
2559
|
className?: string;
|
|
2560
2560
|
/** Inline styling. */
|
|
2561
2561
|
style?: React.CSSProperties;
|
|
2562
|
+
/** Custom element som vises for det valgte elementet. */
|
|
2562
2563
|
customOptionElement?: (props: OptionProps<Option, IsMulti, GroupBase<Option>>) => JSX.Element;
|
|
2564
|
+
/** Custom element som vises i listen over alternativer. */
|
|
2563
2565
|
customSingleValueElement?: (props: SingleValueProps<Option, IsMulti, GroupBase<Option>>) => JSX.Element;
|
|
2564
2566
|
} & Pick<HTMLAttributes<HTMLInputElement>, 'aria-required'> & WrappedReactSelectProps<Option, IsMulti, GroupBase<Option>>;
|
|
2565
2567
|
type ForwardRefType<Option, IsMulti extends boolean> = React.ForwardedRef<SelectInstance<Option, IsMulti, GroupBase<Option>>>;
|
|
@@ -2973,10 +2975,7 @@ type TabProps = BaseComponentPropsWithChildren<HTMLButtonElement, {
|
|
|
2973
2975
|
setFocus?: Dispatch<SetStateAction<number>>;
|
|
2974
2976
|
/** Indeksen til `<Tab />`. **OBS!** settes automatisk av forelder.*/
|
|
2975
2977
|
index?: number;
|
|
2976
|
-
/**
|
|
2977
|
-
* Bredden til `<Tab />`. Her er det støtte for de samme enhetene som du kan bruke i `grid-template-columns`.
|
|
2978
|
-
* @default '1fr'
|
|
2979
|
-
*/
|
|
2978
|
+
/** Bredden til `<Tab />`. Her er det støtte for de samme enhetene som du kan bruke i `grid-template-columns`. */
|
|
2980
2979
|
width?: CSS.Properties['width'];
|
|
2981
2980
|
} & Pick<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'onKeyDown'>, Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'onKeyDown'>>;
|
|
2982
2981
|
declare const Tab: react.ForwardRefExoticComponent<Pick<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onKeyDown" | "onClick">, "className" | "id"> & {
|
|
@@ -2990,10 +2989,7 @@ declare const Tab: react.ForwardRefExoticComponent<Pick<Omit<ButtonHTMLAttribute
|
|
|
2990
2989
|
setFocus?: Dispatch<SetStateAction<number>> | undefined;
|
|
2991
2990
|
/** Indeksen til `<Tab />`. **OBS!** settes automatisk av forelder.*/
|
|
2992
2991
|
index?: number | undefined;
|
|
2993
|
-
/**
|
|
2994
|
-
* Bredden til `<Tab />`. Her er det støtte for de samme enhetene som du kan bruke i `grid-template-columns`.
|
|
2995
|
-
* @default '1fr'
|
|
2996
|
-
*/
|
|
2992
|
+
/** Bredden til `<Tab />`. Her er det støtte for de samme enhetene som du kan bruke i `grid-template-columns`. */
|
|
2997
2993
|
width?: CSS.Properties['width'];
|
|
2998
2994
|
} & Pick<ButtonHTMLAttributes<HTMLButtonElement>, "onKeyDown" | "onClick"> & {
|
|
2999
2995
|
children?: react.ReactNode;
|
|
@@ -3034,6 +3030,10 @@ type TagProps = BaseComponentPropsWithChildren<HTMLSpanElement, {
|
|
|
3034
3030
|
* Formål med status eller kategorisering. Påvirker styling.
|
|
3035
3031
|
* */
|
|
3036
3032
|
purpose?: TagPurpose;
|
|
3033
|
+
/**
|
|
3034
|
+
* Variant med sterkere visuelt uttrykk. Hver `purpose` har en sterk variant.
|
|
3035
|
+
*/
|
|
3036
|
+
strong?: boolean;
|
|
3037
3037
|
/**
|
|
3038
3038
|
* Om `<Tag>` skal ha et ikon til venstre for teksten. Tags med `purpose="default"` har aldri ikon.
|
|
3039
3039
|
* @default false
|
|
@@ -3053,6 +3053,10 @@ declare const Tag: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTM
|
|
|
3053
3053
|
* Formål med status eller kategorisering. Påvirker styling.
|
|
3054
3054
|
* */
|
|
3055
3055
|
purpose?: TagPurpose | undefined;
|
|
3056
|
+
/**
|
|
3057
|
+
* Variant med sterkere visuelt uttrykk. Hver `purpose` har en sterk variant.
|
|
3058
|
+
*/
|
|
3059
|
+
strong?: boolean | undefined;
|
|
3056
3060
|
/**
|
|
3057
3061
|
* Om `<Tag>` skal ha et ikon til venstre for teksten. Tags med `purpose="default"` har aldri ikon.
|
|
3058
3062
|
* @default false
|
package/dist/index.d.ts
CHANGED
|
@@ -2360,7 +2360,7 @@ interface PopoverGroupProps {
|
|
|
2360
2360
|
isOpen?: boolean;
|
|
2361
2361
|
/** `id` til `<Popover />.` */
|
|
2362
2362
|
popoverId?: string;
|
|
2363
|
-
/** Barna til wrapperen: anchor-element som det første og `<Popover />`
|
|
2363
|
+
/** Barna til wrapperen: anchor-element som det første og `<Popover />` som det andre. */
|
|
2364
2364
|
children: ReactNode;
|
|
2365
2365
|
}
|
|
2366
2366
|
declare const PopoverGroup: {
|
|
@@ -2559,7 +2559,9 @@ type SelectProps<Option = unknown, IsMulti extends boolean = false> = {
|
|
|
2559
2559
|
className?: string;
|
|
2560
2560
|
/** Inline styling. */
|
|
2561
2561
|
style?: React.CSSProperties;
|
|
2562
|
+
/** Custom element som vises for det valgte elementet. */
|
|
2562
2563
|
customOptionElement?: (props: OptionProps<Option, IsMulti, GroupBase<Option>>) => JSX.Element;
|
|
2564
|
+
/** Custom element som vises i listen over alternativer. */
|
|
2563
2565
|
customSingleValueElement?: (props: SingleValueProps<Option, IsMulti, GroupBase<Option>>) => JSX.Element;
|
|
2564
2566
|
} & Pick<HTMLAttributes<HTMLInputElement>, 'aria-required'> & WrappedReactSelectProps<Option, IsMulti, GroupBase<Option>>;
|
|
2565
2567
|
type ForwardRefType<Option, IsMulti extends boolean> = React.ForwardedRef<SelectInstance<Option, IsMulti, GroupBase<Option>>>;
|
|
@@ -2973,10 +2975,7 @@ type TabProps = BaseComponentPropsWithChildren<HTMLButtonElement, {
|
|
|
2973
2975
|
setFocus?: Dispatch<SetStateAction<number>>;
|
|
2974
2976
|
/** Indeksen til `<Tab />`. **OBS!** settes automatisk av forelder.*/
|
|
2975
2977
|
index?: number;
|
|
2976
|
-
/**
|
|
2977
|
-
* Bredden til `<Tab />`. Her er det støtte for de samme enhetene som du kan bruke i `grid-template-columns`.
|
|
2978
|
-
* @default '1fr'
|
|
2979
|
-
*/
|
|
2978
|
+
/** Bredden til `<Tab />`. Her er det støtte for de samme enhetene som du kan bruke i `grid-template-columns`. */
|
|
2980
2979
|
width?: CSS.Properties['width'];
|
|
2981
2980
|
} & Pick<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'onKeyDown'>, Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'onKeyDown'>>;
|
|
2982
2981
|
declare const Tab: react.ForwardRefExoticComponent<Pick<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onKeyDown" | "onClick">, "className" | "id"> & {
|
|
@@ -2990,10 +2989,7 @@ declare const Tab: react.ForwardRefExoticComponent<Pick<Omit<ButtonHTMLAttribute
|
|
|
2990
2989
|
setFocus?: Dispatch<SetStateAction<number>> | undefined;
|
|
2991
2990
|
/** Indeksen til `<Tab />`. **OBS!** settes automatisk av forelder.*/
|
|
2992
2991
|
index?: number | undefined;
|
|
2993
|
-
/**
|
|
2994
|
-
* Bredden til `<Tab />`. Her er det støtte for de samme enhetene som du kan bruke i `grid-template-columns`.
|
|
2995
|
-
* @default '1fr'
|
|
2996
|
-
*/
|
|
2992
|
+
/** Bredden til `<Tab />`. Her er det støtte for de samme enhetene som du kan bruke i `grid-template-columns`. */
|
|
2997
2993
|
width?: CSS.Properties['width'];
|
|
2998
2994
|
} & Pick<ButtonHTMLAttributes<HTMLButtonElement>, "onKeyDown" | "onClick"> & {
|
|
2999
2995
|
children?: react.ReactNode;
|
|
@@ -3034,6 +3030,10 @@ type TagProps = BaseComponentPropsWithChildren<HTMLSpanElement, {
|
|
|
3034
3030
|
* Formål med status eller kategorisering. Påvirker styling.
|
|
3035
3031
|
* */
|
|
3036
3032
|
purpose?: TagPurpose;
|
|
3033
|
+
/**
|
|
3034
|
+
* Variant med sterkere visuelt uttrykk. Hver `purpose` har en sterk variant.
|
|
3035
|
+
*/
|
|
3036
|
+
strong?: boolean;
|
|
3037
3037
|
/**
|
|
3038
3038
|
* Om `<Tag>` skal ha et ikon til venstre for teksten. Tags med `purpose="default"` har aldri ikon.
|
|
3039
3039
|
* @default false
|
|
@@ -3053,6 +3053,10 @@ declare const Tag: react.ForwardRefExoticComponent<Pick<react.HTMLAttributes<HTM
|
|
|
3053
3053
|
* Formål med status eller kategorisering. Påvirker styling.
|
|
3054
3054
|
* */
|
|
3055
3055
|
purpose?: TagPurpose | undefined;
|
|
3056
|
+
/**
|
|
3057
|
+
* Variant med sterkere visuelt uttrykk. Hver `purpose` har en sterk variant.
|
|
3058
|
+
*/
|
|
3059
|
+
strong?: boolean | undefined;
|
|
3056
3060
|
/**
|
|
3057
3061
|
* Om `<Tag>` skal ha et ikon til venstre for teksten. Tags med `purpose="default"` har aldri ikon.
|
|
3058
3062
|
* @default false
|
package/dist/index.js
CHANGED
|
@@ -5032,9 +5032,9 @@ var Bar = import_styled_components22.default.div.withConfig({
|
|
|
5032
5032
|
color: ${navTokens3.color};
|
|
5033
5033
|
background-color: ${navTokens3.backgroundColor};
|
|
5034
5034
|
box-sizing: border-box;
|
|
5035
|
-
z-index:
|
|
5035
|
+
z-index: 99;
|
|
5036
5036
|
|
|
5037
|
-
position:
|
|
5037
|
+
position: absolute;
|
|
5038
5038
|
top: ${({ environmentBannerActive }) => environmentBannerActive ? import_development_utils.ENVIRONMENT_BANNER_HEIGHT : "0"};
|
|
5039
5039
|
left: 0;
|
|
5040
5040
|
right: 0;
|
|
@@ -9239,9 +9239,11 @@ var import_dds_design_tokens43 = require("@norges-domstoler/dds-design-tokens");
|
|
|
9239
9239
|
var { border: border10, colors: colors23, spacing: spacing24 } = import_dds_design_tokens43.ddsBaseTokens;
|
|
9240
9240
|
var bar = {
|
|
9241
9241
|
backgroundColor: colors23.DdsColorNeutralsWhite,
|
|
9242
|
-
itemGap: spacing24.
|
|
9242
|
+
itemGap: spacing24.SizesDdsSpacingX15,
|
|
9243
9243
|
minHeight: "57px",
|
|
9244
|
-
borderBottom: `${border10.BordersDdsBorderStyleLightStroke} solid ${border10.BordersDdsBorderStyleLightStrokeWeight}
|
|
9244
|
+
borderBottom: `${border10.BordersDdsBorderStyleLightStroke} solid ${border10.BordersDdsBorderStyleLightStrokeWeight}`,
|
|
9245
|
+
paddingLeft: spacing24.SizesDdsSpacingX15,
|
|
9246
|
+
paddingRight: spacing24.SizesDdsSpacingX15
|
|
9245
9247
|
};
|
|
9246
9248
|
var separator = {
|
|
9247
9249
|
color: border10.BordersDdsBorderStyleLightStroke,
|
|
@@ -9264,6 +9266,8 @@ var Bar2 = import_styled_components61.default.div`
|
|
|
9264
9266
|
align-items: center;
|
|
9265
9267
|
min-height: ${bar2.minHeight};
|
|
9266
9268
|
border-bottom: ${bar2.borderBottom};
|
|
9269
|
+
padding-left: ${bar2.paddingLeft};
|
|
9270
|
+
padding-right: ${bar2.paddingRight};
|
|
9267
9271
|
|
|
9268
9272
|
${({ $hasNavigation }) => $hasNavigation ? import_styled_components61.css`
|
|
9269
9273
|
${ContextMenuGroup} {
|
|
@@ -9440,7 +9444,7 @@ var InternalHeader = (props) => {
|
|
|
9440
9444
|
children: [
|
|
9441
9445
|
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(Typography, { typographyType: "bodySans02", bold: true, as: "span", children: applicationName }),
|
|
9442
9446
|
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(Typography, { typographyType: "bodySans02", as: "span", children: applicationDesc }),
|
|
9443
|
-
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(BarSeparator, {}),
|
|
9447
|
+
(hasContextMenu || navigation2 !== null) && /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(BarSeparator, {}),
|
|
9444
9448
|
navigation2,
|
|
9445
9449
|
hasContextMenu && /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(ContextMenuGroup, { children: [
|
|
9446
9450
|
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
@@ -9634,23 +9638,23 @@ var container9 = {
|
|
|
9634
9638
|
},
|
|
9635
9639
|
purpose: {
|
|
9636
9640
|
info: {
|
|
9637
|
-
borderColor: colors24.
|
|
9641
|
+
borderColor: colors24.DdsColorInfoBase,
|
|
9638
9642
|
backgroundColor: colors24.DdsColorInfoLightest
|
|
9639
9643
|
},
|
|
9640
9644
|
warning: {
|
|
9641
|
-
borderColor: colors24.
|
|
9645
|
+
borderColor: colors24.DdsColorWarningBase,
|
|
9642
9646
|
backgroundColor: colors24.DdsColorWarningLightest
|
|
9643
9647
|
},
|
|
9644
9648
|
danger: {
|
|
9645
|
-
borderColor: colors24.
|
|
9649
|
+
borderColor: colors24.DdsColorDangerBase,
|
|
9646
9650
|
backgroundColor: colors24.DdsColorDangerLightest
|
|
9647
9651
|
},
|
|
9648
9652
|
success: {
|
|
9649
|
-
borderColor: colors24.
|
|
9653
|
+
borderColor: colors24.DdsColorSuccessBase,
|
|
9650
9654
|
backgroundColor: colors24.DdsColorSuccessLightest
|
|
9651
9655
|
},
|
|
9652
9656
|
tips: {
|
|
9653
|
-
borderColor: colors24.
|
|
9657
|
+
borderColor: colors24.DdsColorPrimaryBase,
|
|
9654
9658
|
backgroundColor: colors24.DdsColorPrimaryLightest
|
|
9655
9659
|
},
|
|
9656
9660
|
confidential: {
|
|
@@ -13703,49 +13707,93 @@ var typographyType5 = "bodySans01";
|
|
|
13703
13707
|
var wrapper7 = {
|
|
13704
13708
|
border: "1px solid",
|
|
13705
13709
|
borderRadius: borderRadius10.RadiiDdsBorderRadius1Radius,
|
|
13706
|
-
padding: `${spacing37.SizesDdsSpacingX0125} ${spacing37.
|
|
13710
|
+
padding: `${spacing37.SizesDdsSpacingX0125} ${spacing37.SizesDdsSpacingX05}`,
|
|
13707
13711
|
icon: {
|
|
13708
13712
|
padding: [
|
|
13709
13713
|
spacing37.SizesDdsSpacingX0125,
|
|
13710
|
-
spacing37.
|
|
13714
|
+
spacing37.SizesDdsSpacingX05,
|
|
13711
13715
|
spacing37.SizesDdsSpacingX0125,
|
|
13712
|
-
spacing37.
|
|
13716
|
+
spacing37.SizesDdsSpacingX025
|
|
13713
13717
|
].join(" "),
|
|
13714
|
-
gap: spacing37.
|
|
13718
|
+
gap: spacing37.SizesDdsSpacingX025,
|
|
13715
13719
|
size: "small"
|
|
13716
13720
|
},
|
|
13717
13721
|
purpose: {
|
|
13718
13722
|
default: {
|
|
13719
|
-
|
|
13720
|
-
|
|
13721
|
-
|
|
13723
|
+
icon: void 0,
|
|
13724
|
+
base: {
|
|
13725
|
+
backgroundColor: colors33.DdsColorNeutralsGray1,
|
|
13726
|
+
borderColor: colors33.DdsColorNeutralsGray3,
|
|
13727
|
+
icon: void 0
|
|
13728
|
+
},
|
|
13729
|
+
strong: {
|
|
13730
|
+
backgroundColor: colors33.DdsColorNeutralsGray3,
|
|
13731
|
+
borderColor: colors33.DdsColorNeutralsGray3,
|
|
13732
|
+
icon: void 0
|
|
13733
|
+
}
|
|
13722
13734
|
},
|
|
13723
13735
|
success: {
|
|
13724
|
-
|
|
13725
|
-
|
|
13726
|
-
|
|
13727
|
-
|
|
13736
|
+
icon: CheckCircledIcon,
|
|
13737
|
+
base: {
|
|
13738
|
+
...localMessageTokens.container.purpose.success,
|
|
13739
|
+
icon: {
|
|
13740
|
+
color: colors33.DdsColorSuccessDarkest
|
|
13741
|
+
}
|
|
13742
|
+
},
|
|
13743
|
+
strong: {
|
|
13744
|
+
backgroundColor: colors33.DdsColorSuccessLight,
|
|
13745
|
+
borderColor: colors33.DdsColorSuccessLight,
|
|
13746
|
+
icon: {
|
|
13747
|
+
color: colors33.DdsColorNeutralsGray9
|
|
13748
|
+
}
|
|
13728
13749
|
}
|
|
13729
13750
|
},
|
|
13730
13751
|
danger: {
|
|
13731
|
-
|
|
13732
|
-
|
|
13733
|
-
|
|
13734
|
-
|
|
13752
|
+
icon: ErrorIcon,
|
|
13753
|
+
base: {
|
|
13754
|
+
...localMessageTokens.container.purpose.danger,
|
|
13755
|
+
icon: {
|
|
13756
|
+
color: colors33.DdsColorDangerDarkest
|
|
13757
|
+
}
|
|
13758
|
+
},
|
|
13759
|
+
strong: {
|
|
13760
|
+
backgroundColor: colors33.DdsColorDangerLight,
|
|
13761
|
+
borderColor: colors33.DdsColorDangerLight,
|
|
13762
|
+
icon: {
|
|
13763
|
+
color: colors33.DdsColorNeutralsGray9
|
|
13764
|
+
}
|
|
13735
13765
|
}
|
|
13736
13766
|
},
|
|
13737
13767
|
warning: {
|
|
13738
|
-
|
|
13739
|
-
|
|
13740
|
-
|
|
13741
|
-
|
|
13768
|
+
icon: WarningIcon,
|
|
13769
|
+
base: {
|
|
13770
|
+
...localMessageTokens.container.purpose.warning,
|
|
13771
|
+
icon: {
|
|
13772
|
+
color: colors33.DdsColorWarningDarkest
|
|
13773
|
+
}
|
|
13774
|
+
},
|
|
13775
|
+
strong: {
|
|
13776
|
+
backgroundColor: colors33.DdsColorWarningLight,
|
|
13777
|
+
borderColor: colors33.DdsColorWarningLight,
|
|
13778
|
+
icon: {
|
|
13779
|
+
color: colors33.DdsColorNeutralsGray9
|
|
13780
|
+
}
|
|
13742
13781
|
}
|
|
13743
13782
|
},
|
|
13744
13783
|
info: {
|
|
13745
|
-
|
|
13746
|
-
|
|
13747
|
-
|
|
13748
|
-
|
|
13784
|
+
icon: InfoIcon,
|
|
13785
|
+
base: {
|
|
13786
|
+
...localMessageTokens.container.purpose.info,
|
|
13787
|
+
icon: {
|
|
13788
|
+
color: colors33.DdsColorInfoDarkest
|
|
13789
|
+
}
|
|
13790
|
+
},
|
|
13791
|
+
strong: {
|
|
13792
|
+
backgroundColor: colors33.DdsColorInfoLight,
|
|
13793
|
+
borderColor: colors33.DdsColorInfoLight,
|
|
13794
|
+
icon: {
|
|
13795
|
+
color: colors33.DdsColorNeutralsGray9
|
|
13796
|
+
}
|
|
13749
13797
|
}
|
|
13750
13798
|
}
|
|
13751
13799
|
}
|
|
@@ -13765,21 +13813,22 @@ var Wrapper7 = (0, import_styled_components94.default)(TextOverflowEllipsisWrapp
|
|
|
13765
13813
|
border-radius: ${wrapper8.borderRadius};
|
|
13766
13814
|
padding: ${({ $withIcon }) => $withIcon ? wrapper8.icon.padding : wrapper8.padding};
|
|
13767
13815
|
${getFontStyling(typographyType5)}
|
|
13768
|
-
${({ $purpose }) => import_styled_components94.css`
|
|
13769
|
-
background-color: ${wrapper8.purpose[$purpose].backgroundColor};
|
|
13770
|
-
border-color: ${wrapper8.purpose[$purpose].borderColor};
|
|
13816
|
+
${({ $purpose, $strong }) => import_styled_components94.css`
|
|
13817
|
+
background-color: ${wrapper8.purpose[$purpose][$strong ? "strong" : "base"].backgroundColor};
|
|
13818
|
+
border-color: ${wrapper8.purpose[$purpose][$strong ? "strong" : "base"].borderColor};
|
|
13771
13819
|
`}
|
|
13772
13820
|
`;
|
|
13773
13821
|
var StyledIcon5 = (0, import_styled_components94.default)(Icon)`
|
|
13774
|
-
color: ${({ $purpose }) => {
|
|
13822
|
+
color: ${({ $purpose, $strong }) => {
|
|
13775
13823
|
var _a;
|
|
13776
|
-
return (_a = wrapper8.purpose[$purpose].icon) == null ? void 0 : _a.color;
|
|
13824
|
+
return (_a = wrapper8.purpose[$purpose][$strong ? "strong" : "base"].icon) == null ? void 0 : _a.color;
|
|
13777
13825
|
}};
|
|
13778
13826
|
`;
|
|
13779
13827
|
var Tag = (0, import_react114.forwardRef)((props, ref) => {
|
|
13780
13828
|
const {
|
|
13781
13829
|
text,
|
|
13782
13830
|
purpose = "default",
|
|
13831
|
+
strong,
|
|
13783
13832
|
id,
|
|
13784
13833
|
className,
|
|
13785
13834
|
children,
|
|
@@ -13794,13 +13843,15 @@ var Tag = (0, import_react114.forwardRef)((props, ref) => {
|
|
|
13794
13843
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
13795
13844
|
ref,
|
|
13796
13845
|
$purpose: purpose,
|
|
13846
|
+
$strong: strong,
|
|
13797
13847
|
$withIcon: Boolean(withIcon && icon12),
|
|
13798
13848
|
children: [
|
|
13799
13849
|
withIcon && icon12 && /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
|
|
13800
13850
|
StyledIcon5,
|
|
13801
13851
|
{
|
|
13802
13852
|
$purpose: purpose,
|
|
13803
|
-
|
|
13853
|
+
$strong: strong,
|
|
13854
|
+
icon: icon12,
|
|
13804
13855
|
iconSize: tagTokens.wrapper.icon.size
|
|
13805
13856
|
}
|
|
13806
13857
|
),
|
|
@@ -14396,6 +14447,8 @@ var ToggleRadio = (0, import_react119.forwardRef)(
|
|
|
14396
14447
|
name,
|
|
14397
14448
|
onChange,
|
|
14398
14449
|
checked,
|
|
14450
|
+
"aria-label": ariaLabel,
|
|
14451
|
+
"aria-labelledby": ariaLabelledBy,
|
|
14399
14452
|
icon: icon12,
|
|
14400
14453
|
label: label3,
|
|
14401
14454
|
htmlProps,
|
|
@@ -14420,7 +14473,9 @@ var ToggleRadio = (0, import_react119.forwardRef)(
|
|
|
14420
14473
|
name: name != null ? name : group4.name,
|
|
14421
14474
|
onChange: handleChange,
|
|
14422
14475
|
value,
|
|
14423
|
-
checked: calculateChecked(value, group4, checked)
|
|
14476
|
+
checked: calculateChecked(value, group4, checked),
|
|
14477
|
+
"aria-label": ariaLabel,
|
|
14478
|
+
"aria-labelledby": ariaLabelledBy
|
|
14424
14479
|
}
|
|
14425
14480
|
),
|
|
14426
14481
|
/* @__PURE__ */ (0, import_jsx_runtime272.jsxs)(Content2, { $size: group4.size, $justIcon: !!icon12 && !label3, children: [
|