@liner-fe/prism 3.0.9 → 3.0.11

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/lib/index.css CHANGED
@@ -1967,3 +1967,65 @@
1967
1967
  position: absolute;
1968
1968
  transform: translateX(-5.7%);
1969
1969
  }
1970
+
1971
+ /* esbuild-sass-plugin:css-chunk:src/components/Badge/style.module.scss */
1972
+ ._badge_f8fzb_1 {
1973
+ display: inline-flex;
1974
+ align-items: center;
1975
+ justify-content: center;
1976
+ white-space: nowrap;
1977
+ box-sizing: border-box;
1978
+ gap: var(--lp-sys-padding-component-50);
1979
+ }
1980
+ ._s_f8fzb_10 {
1981
+ padding: var(--lp-sys-padding-component-50) var(--lp-sys-padding-component-100);
1982
+ border-radius: var(--lp-sys-radius-xs);
1983
+ }
1984
+ ._m_f8fzb_15 {
1985
+ padding: var(--lp-sys-padding-component-50) var(--lp-sys-padding-component-100);
1986
+ border-radius: var(--lp-sys-radius-xs);
1987
+ }
1988
+ ._l_f8fzb_20 {
1989
+ padding: var(--lp-sys-padding-component-100) var(--lp-sys-padding-component-150);
1990
+ border-radius: var(--lp-sys-radius-s);
1991
+ }
1992
+ ._text_f8fzb_25 {
1993
+ padding: 0 var(--lp-sys-padding-component-50);
1994
+ }
1995
+ ._subtle_f8fzb_29 {
1996
+ background: var(--neutral-fill-overlay-mid);
1997
+ }
1998
+ ._outlined_f8fzb_33 {
1999
+ background: var(--neutral-fill-opaque-lowest);
2000
+ border: 1px solid var(--neutral-border-overlay-subtle);
2001
+ }
2002
+ ._fill-primary_f8fzb_38 {
2003
+ background: var(--brand-fill-low);
2004
+ }
2005
+ ._fill-accent_f8fzb_42 {
2006
+ background: var(--accent-fill-primary);
2007
+ }
2008
+ ._inverse-primary_f8fzb_46 {
2009
+ background: var(--brandinverse-fill-static-low);
2010
+ }
2011
+ ._text-neutral_f8fzb_50 {
2012
+ color: var(--neutral-label-primary);
2013
+ }
2014
+ ._text-neutral-secondary_f8fzb_54 {
2015
+ color: var(--neutral-label-secondary);
2016
+ }
2017
+ ._text-primary_f8fzb_58 {
2018
+ color: var(--brand-label-primary);
2019
+ }
2020
+ ._text-primary-inverse_f8fzb_62 {
2021
+ color: var(--brandinverse-label-static-primary);
2022
+ }
2023
+ ._text-caution_f8fzb_66 {
2024
+ color: var(--function-label-caution);
2025
+ }
2026
+ ._text-error_f8fzb_70 {
2027
+ color: var(--function-label-negative);
2028
+ }
2029
+ ._text-accent_f8fzb_74 {
2030
+ color: var(--accent-label-primary);
2031
+ }
package/lib/index.d.ts CHANGED
@@ -65,7 +65,7 @@ interface IToastBase extends ToastProps, RefAttributes<HTMLLIElement> {
65
65
  interface IToastIcon {
66
66
  icon: {
67
67
  icon: IconComponentType;
68
- } & Pick<IconProps, 'fill' | 'thick' | 'type' | 'fillType'>;
68
+ } & Pick<IconProps, 'fill' | 'type' | 'fillType'>;
69
69
  button?: never;
70
70
  }
71
71
  interface IToastButton {
@@ -217,7 +217,7 @@ interface PopoverContentProps extends HTMLAttributes<HTMLDivElement>, Popover$1.
217
217
  tag?: string;
218
218
  icon?: {
219
219
  icon: IconComponentType;
220
- } & Pick<IconProps, 'thick' | 'fill'>;
220
+ } & Pick<IconProps, 'fill'>;
221
221
  title?: string;
222
222
  description?: string;
223
223
  position?: 'top' | 'right' | 'bottom' | 'left';
@@ -329,7 +329,7 @@ interface IconButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, Varia
329
329
  level?: IconButtonLevelType;
330
330
  icon: {
331
331
  icon: IconComponentType;
332
- } & Pick<IconProps, 'type' | 'size' | 'thick' | 'fill' | 'fillType'>;
332
+ } & Pick<IconProps, 'type' | 'size' | 'fill' | 'fillType'>;
333
333
  isLoading?: boolean;
334
334
  }
335
335
  declare const IconButton: react.ForwardRefExoticComponent<IconButtonProps & react.RefAttributes<HTMLButtonElement>>;
@@ -395,7 +395,7 @@ interface SelectItemProps {
395
395
  disabled?: boolean;
396
396
  icon?: {
397
397
  icon: IconComponentType;
398
- } & Pick<IconProps, 'fill' | 'thick' | 'type' | 'fillType' | 'size'>;
398
+ } & Pick<IconProps, 'fill' | 'type' | 'fillType' | 'size'>;
399
399
  onClick?: () => void;
400
400
  }
401
401
  declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>> & {
@@ -413,7 +413,7 @@ interface ItemProps {
413
413
  disabled?: boolean;
414
414
  icon?: {
415
415
  icon: IconComponentType;
416
- } & Pick<IconProps, 'fill' | 'thick' | 'type' | 'fillType' | 'size'>;
416
+ } & Pick<IconProps, 'fill' | 'type' | 'fillType' | 'size'>;
417
417
  onClick?: () => void;
418
418
  }
419
419
  declare const List: (({ children, className, ...props }: ListRootProps) => react_jsx_runtime.JSX.Element) & {
@@ -434,7 +434,7 @@ interface ISnackbarBasic {
434
434
  kind?: 'basic';
435
435
  icon?: {
436
436
  icon: IconComponentType;
437
- } & Pick<IconProps, 'fill' | 'thick' | 'type' | 'fillType'>;
437
+ } & Pick<IconProps, 'fill' | 'type' | 'fillType'>;
438
438
  button?: {
439
439
  text?: ButtonType;
440
440
  basic?: ButtonType;
@@ -589,7 +589,7 @@ interface BaseCoachMarkContentProps extends Omit<PrimitiveCoachMarkContentProps,
589
589
  type BaseCoachMarkContent = {
590
590
  icon?: {
591
591
  icon: IconComponentType;
592
- } & Pick<IconProps, 'fill' | 'thick' | 'type' | 'fillType'>;
592
+ } & Pick<IconProps, 'fill' | 'type' | 'fillType'>;
593
593
  description?: string;
594
594
  step?: Step;
595
595
  primaryButton?: RestrictedButtonProps;
@@ -631,4 +631,29 @@ interface TagProps extends Omit<IPropsNormalBold, 'type' | 'size' | 'weight'> {
631
631
  }
632
632
  declare const Tag: react.ForwardRefExoticComponent<TagProps & react.RefAttributes<HTMLParagraphElement>>;
633
633
 
634
- export { type BaseCoachMarkContentProps, type BreakPointsKey, Button, type ButtonIconProps, type ButtonProps, type ButtonSizeType, Caption, Checkbox, CoachMark, type CoachMarkContentProps, type CommonButtonProps, CompactCoachMark, DEFAULT_LEVEL_OPTIONS, DEFAULT_SIZE_OPTIONS, DefaultButton, type DefaultButtonProps, type DefaultLevelType, Display, Heading, ICON_LEVEL_OPTIONS, ICON_SIZE_OPTIONS, type ICaptionProps, type IDisplayProps, type IHeadingProps, type IPropsAccent, type IPropsAnswer, type IPropsNormal, type IPropsNormalBold, type IPropsPost, type ITitleProps, IconButton, type IconButtonProps, type ItemProps, Label, List, Loading, type LoadingLevelType, Logo, Media, MediaContextProvider, Paragraph, type ParagraphProps, Popover, type PopoverContentProps, PrimitiveCoachMark, type PrimitiveCoachMarkContentProps, type PrimitiveCoachMarkRootProps, Radio, Select, type SelectItemProps, type SelectProps, SingleSnackbar, Snackbar, TEXT_LEVEL_OPTIONS, TEXT_SIZE_OPTIONS, Tag, TextButton, type TextButtonProps, type TextSizeType, Textfield, type TextfieldButtonProps, type TextfieldLabelType, type TextfieldProps, Title, Toaster, Tooltip, Typography, arrayToStyleObject, isEmptyObject, objectToArray, rootMediaStyle, snackbarAtom, useSnackbar, useToast };
634
+ type BadgeSize = 's' | 'm' | 'l';
635
+ type BadgeIconProps = {
636
+ icon: IconComponentType;
637
+ } & Pick<IconProps, 'fill' | 'type' | 'fillType'>;
638
+ type BadgeVariant = 'subtle' | 'outlined' | 'fill' | 'inverse';
639
+ type BadgeColor = 'neutral' | 'neutral-secondary' | 'primary' | 'caution' | 'error' | 'accent';
640
+ type BadgeVariantColorProps = {
641
+ variant?: 'fill';
642
+ color?: 'primary' | 'accent';
643
+ } | {
644
+ variant: 'subtle' | 'outlined';
645
+ color?: Exclude<BadgeColor, 'accent'>;
646
+ } | {
647
+ variant: 'inverse';
648
+ color?: 'primary';
649
+ };
650
+ type BadgeBaseProps = ComponentPropsWithoutRef<'span'> & {
651
+ size?: BadgeSize;
652
+ thick?: boolean;
653
+ leftIcon?: BadgeIconProps;
654
+ rightIcon?: BadgeIconProps;
655
+ };
656
+ type BadgeProps = BadgeBaseProps & BadgeVariantColorProps;
657
+ declare const Badge: react.ForwardRefExoticComponent<BadgeProps & react.RefAttributes<HTMLSpanElement>>;
658
+
659
+ export { Badge, type BadgeColor, type BadgeIconProps, type BadgeProps, type BadgeSize, type BadgeVariant, type BaseCoachMarkContentProps, type BreakPointsKey, Button, type ButtonIconProps, type ButtonProps, type ButtonSizeType, Caption, Checkbox, CoachMark, type CoachMarkContentProps, type CommonButtonProps, CompactCoachMark, DEFAULT_LEVEL_OPTIONS, DEFAULT_SIZE_OPTIONS, DefaultButton, type DefaultButtonProps, type DefaultLevelType, Display, Heading, ICON_LEVEL_OPTIONS, ICON_SIZE_OPTIONS, type ICaptionProps, type IDisplayProps, type IHeadingProps, type IPropsAccent, type IPropsAnswer, type IPropsNormal, type IPropsNormalBold, type IPropsPost, type ITitleProps, IconButton, type IconButtonProps, type ItemProps, Label, List, Loading, type LoadingLevelType, Logo, Media, MediaContextProvider, Paragraph, type ParagraphProps, Popover, type PopoverContentProps, PrimitiveCoachMark, type PrimitiveCoachMarkContentProps, type PrimitiveCoachMarkRootProps, Radio, Select, type SelectItemProps, type SelectProps, SingleSnackbar, Snackbar, TEXT_LEVEL_OPTIONS, TEXT_SIZE_OPTIONS, Tag, TextButton, type TextButtonProps, type TextSizeType, Textfield, type TextfieldButtonProps, type TextfieldLabelType, type TextfieldProps, Title, Toaster, Tooltip, Typography, arrayToStyleObject, isEmptyObject, objectToArray, rootMediaStyle, snackbarAtom, useSnackbar, useToast };
package/lib/index.js CHANGED
@@ -1309,7 +1309,7 @@ var PopoverContent = React3.forwardRef(
1309
1309
  /* @__PURE__ */ jsxs4("div", { className: style_module_default5.contentContainer, children: [
1310
1310
  (tag || icon || onClose) && /* @__PURE__ */ jsxs4("div", { className: style_module_default5.heading, children: [
1311
1311
  tag && /* @__PURE__ */ jsx10("span", { className: popoverTagVariants(), children: tag }),
1312
- icon && /* @__PURE__ */ jsx10(icon.icon, { size: "xs", thick: icon.thick, fill: icon.fill }),
1312
+ icon && /* @__PURE__ */ jsx10(icon.icon, { size: "xs", fill: icon.fill }),
1313
1313
  /* @__PURE__ */ jsx10("p", { className: popoverTitleVariants(), children: title }),
1314
1314
  onClose && /* @__PURE__ */ jsx10(
1315
1315
  PopoverPrimitive.PopoverClose,
@@ -1318,7 +1318,7 @@ var PopoverContent = React3.forwardRef(
1318
1318
  onClick: () => {
1319
1319
  onClose();
1320
1320
  },
1321
- children: /* @__PURE__ */ jsx10(IconCloseFill, { size: "s", fill: true, thick: true, type: "neutral-label-static-primary" })
1321
+ children: /* @__PURE__ */ jsx10(IconCloseFill, { size: "s", fill: true, type: "neutral-label-static-primary" })
1322
1322
  }
1323
1323
  )
1324
1324
  ] }),
@@ -1649,24 +1649,8 @@ var Checkbox = forwardRef11(
1649
1649
  children
1650
1650
  ] }) : /* @__PURE__ */ jsx14(Fragment4, { children }), "CheckboxWrapper");
1651
1651
  return /* @__PURE__ */ jsx14(CheckboxWrapper, { children: /* @__PURE__ */ jsx14(CheckboxPrimitive.Root, { className: clsx11(style_module_default8.checkbox, className), ref, ...props, children: /* @__PURE__ */ jsxs5(CheckboxPrimitive.Indicator, { className: style_module_default8["checkbox-indicator"], children: [
1652
- /* @__PURE__ */ jsx14(
1653
- IconCheckMark,
1654
- {
1655
- thick: true,
1656
- size: "xs",
1657
- type: "inverse-label-primary",
1658
- className: style_module_default8["icon-check"]
1659
- }
1660
- ),
1661
- /* @__PURE__ */ jsx14(
1662
- IconMinus,
1663
- {
1664
- thick: true,
1665
- size: "xs",
1666
- type: "inverse-label-primary",
1667
- className: style_module_default8["icon-minus"]
1668
- }
1669
- )
1652
+ /* @__PURE__ */ jsx14(IconCheckMark, { size: "xs", type: "inverse-label-primary", className: style_module_default8["icon-check"] }),
1653
+ /* @__PURE__ */ jsx14(IconMinus, { size: "xs", type: "inverse-label-primary", className: style_module_default8["icon-minus"] })
1670
1654
  ] }) }) });
1671
1655
  }
1672
1656
  );
@@ -1880,8 +1864,7 @@ var Textfield = forwardRef13((props, ref) => {
1880
1864
  level: "quinary",
1881
1865
  icon: {
1882
1866
  icon: IconCloseFill2,
1883
- size: "s",
1884
- thick: true
1867
+ size: "s"
1885
1868
  },
1886
1869
  type: "button",
1887
1870
  onClick: (e) => {
@@ -1913,7 +1896,7 @@ var Textfield = forwardRef13((props, ref) => {
1913
1896
  ),
1914
1897
  displayFooter && /* @__PURE__ */ jsxs7("div", { className: style_module_default11.footer, children: [
1915
1898
  /* @__PURE__ */ jsx16("div", { className: style_module_default11["error-wrapper"], children: error && /* @__PURE__ */ jsxs7(Fragment6, { children: [
1916
- /* @__PURE__ */ jsx16(IconExclamationmarkFill, { fill: true, thick: true, size: "xs", type: "function-label-negative" }),
1899
+ /* @__PURE__ */ jsx16(IconExclamationmarkFill, { fill: true, size: "xs", type: "function-label-negative" }),
1917
1900
  /* @__PURE__ */ jsx16(
1918
1901
  Caption,
1919
1902
  {
@@ -2078,7 +2061,7 @@ var SelectRoot = forwardRef14((props, ref) => {
2078
2061
  children: [
2079
2062
  /* @__PURE__ */ jsxs8(SelectPrimitive.Trigger, { className: style_module_default12.trigger, ref, id, children: [
2080
2063
  /* @__PURE__ */ jsx17(SelectPrimitive.Value, { className: style_module_default12.placeholder, placeholder }),
2081
- /* @__PURE__ */ jsx17(SelectPrimitive.Icon, { className: style_module_default12.openIcon, children: /* @__PURE__ */ jsx17(IconDropDown, { fill: true, thick: true, size: "xs" }) })
2064
+ /* @__PURE__ */ jsx17(SelectPrimitive.Icon, { className: style_module_default12.openIcon, children: /* @__PURE__ */ jsx17(IconDropDown, { fill: true, size: "xs" }) })
2082
2065
  ] }),
2083
2066
  /* @__PURE__ */ jsx17(SelectContent, { ...contentProps })
2084
2067
  ]
@@ -2099,7 +2082,7 @@ var SelectItem = /* @__PURE__ */ __name(({ value, text, disabled, icon, onClick
2099
2082
  children: [
2100
2083
  /* @__PURE__ */ jsx17(SelectPrimitive.ItemText, { children: /* @__PURE__ */ jsx17(Paragraph, { size: 3, type: "normal", weight: "medium", children: text ?? value }) }),
2101
2084
  icon && /* @__PURE__ */ jsx17(SelectPrimitive.Icon, { className: style_module_default12.icon, children: /* @__PURE__ */ jsx17(icon.icon, { size: "xs", ...icon }) }),
2102
- /* @__PURE__ */ jsx17(SelectPrimitive.ItemIndicator, { className: style_module_default12.itemIndicator, children: /* @__PURE__ */ jsx17(IconCheckMark2, { thick: true, size: "xs", type: "brand-label-primary" }) })
2085
+ /* @__PURE__ */ jsx17(SelectPrimitive.ItemIndicator, { className: style_module_default12.itemIndicator, children: /* @__PURE__ */ jsx17(IconCheckMark2, { size: "xs", type: "brand-label-primary" }) })
2103
2086
  ]
2104
2087
  }
2105
2088
  ), "SelectItem");
@@ -2146,7 +2129,7 @@ var Item = /* @__PURE__ */ __name(({ value, text, disabled, icon, onClick }) =>
2146
2129
  const isSelected = contextValue === value;
2147
2130
  const renderIcon = /* @__PURE__ */ __name(() => {
2148
2131
  if (isSelected) {
2149
- return /* @__PURE__ */ jsx19(IconCheckMark3, { type: "brand-label-primary", thick: true });
2132
+ return /* @__PURE__ */ jsx19(IconCheckMark3, { type: "brand-label-primary" });
2150
2133
  }
2151
2134
  if (icon) {
2152
2135
  return /* @__PURE__ */ jsx19(icon.icon, { className: style_module_default13.icon, size: "xs", ...icon });
@@ -2383,7 +2366,6 @@ var SnackbarButton = /* @__PURE__ */ __name(({
2383
2366
  onCloseSnackbar();
2384
2367
  },
2385
2368
  level: "inverse-static",
2386
- thick: false,
2387
2369
  className: style_module_default17.button,
2388
2370
  children: button.text.text
2389
2371
  }
@@ -2484,7 +2466,6 @@ var SingleSnackbar = /* @__PURE__ */ __name((props) => {
2484
2466
  IconArrowForward,
2485
2467
  {
2486
2468
  fill: true,
2487
- thick: true,
2488
2469
  type: "inverse-label-static-primary",
2489
2470
  className: description ? style_module_default14.minWidth32 : style_module_default14.minWidth24,
2490
2471
  size: description ? "l" : "m"
@@ -3475,15 +3456,7 @@ var CoachMarkContent = forwardRef19(
3475
3456
  children: tag
3476
3457
  }
3477
3458
  ),
3478
- icon && /* @__PURE__ */ jsx30(
3479
- icon.icon,
3480
- {
3481
- size: "xs",
3482
- thick: icon.thick,
3483
- fill: icon.fill,
3484
- type: "inverse-label-static-primary"
3485
- }
3486
- ),
3459
+ icon && /* @__PURE__ */ jsx30(icon.icon, { size: "xs", fill: icon.fill, type: "inverse-label-static-primary" }),
3487
3460
  title && /* @__PURE__ */ jsx30(
3488
3461
  Paragraph,
3489
3462
  {
@@ -3538,7 +3511,156 @@ var CoachMark = Object.assign(CoachMarkRoot, {
3538
3511
  Content: CoachMarkContent,
3539
3512
  Portal: PopoverPrimitive4.Portal
3540
3513
  });
3514
+
3515
+ // src/components/Badge/index.tsx
3516
+ import { forwardRef as forwardRef20 } from "react";
3517
+
3518
+ // src/components/Badge/style.module.scss
3519
+ var style_module_default22 = {
3520
+ "badge": "_badge_f8fzb_1",
3521
+ "s": "_s_f8fzb_10",
3522
+ "m": "_m_f8fzb_15",
3523
+ "l": "_l_f8fzb_20",
3524
+ "text": "_text_f8fzb_25",
3525
+ "subtle": "_subtle_f8fzb_29",
3526
+ "outlined": "_outlined_f8fzb_33",
3527
+ "fill-primary": "_fill-primary_f8fzb_38",
3528
+ "fill-accent": "_fill-accent_f8fzb_42",
3529
+ "inverse-primary": "_inverse-primary_f8fzb_46",
3530
+ "text-neutral": "_text-neutral_f8fzb_50",
3531
+ "text-neutral-secondary": "_text-neutral-secondary_f8fzb_54",
3532
+ "text-primary": "_text-primary_f8fzb_58",
3533
+ "text-primary-inverse": "_text-primary-inverse_f8fzb_62",
3534
+ "text-caution": "_text-caution_f8fzb_66",
3535
+ "text-error": "_text-error_f8fzb_70",
3536
+ "text-accent": "_text-accent_f8fzb_74"
3537
+ };
3538
+
3539
+ // src/components/Badge/index.tsx
3540
+ import { cva as cva13 } from "cva";
3541
+ import clsx23 from "clsx";
3542
+ import { jsx as jsx31, jsxs as jsxs17 } from "react/jsx-runtime";
3543
+ var badgeSizeIconSizeMap = {
3544
+ s: "xxs",
3545
+ m: "xs",
3546
+ l: "xs"
3547
+ };
3548
+ var badgeSizeTypoMap = {
3549
+ s: ["lp-sys-typo-caption3-normal-regular", "lp-sys-typo-caption3-normal-medium"],
3550
+ m: ["lp-sys-typo-caption2-normal-regular", "lp-sys-typo-caption2-normal-medium"],
3551
+ l: ["lp-sys-typo-caption1-normal-regular", "lp-sys-typo-caption1-normal-medium"]
3552
+ };
3553
+ var badgeBase = cva13({
3554
+ base: style_module_default22.badge,
3555
+ variants: {
3556
+ size: {
3557
+ s: style_module_default22.s,
3558
+ m: style_module_default22.m,
3559
+ l: style_module_default22.l
3560
+ }
3561
+ }
3562
+ });
3563
+ function getBgClass(variant, color) {
3564
+ if (variant === "subtle") return style_module_default22.subtle;
3565
+ if (variant === "outlined") return style_module_default22.outlined;
3566
+ if (variant === "fill") return color === "accent" ? style_module_default22["fill-accent"] : style_module_default22["fill-primary"];
3567
+ return style_module_default22["inverse-primary"];
3568
+ }
3569
+ __name(getBgClass, "getBgClass");
3570
+ function getIconType(variant, color) {
3571
+ if (variant === "inverse") return "brandinverse-label-static-primary";
3572
+ switch (color) {
3573
+ case "neutral":
3574
+ return "neutral-label-primary";
3575
+ case "neutral-secondary":
3576
+ return "neutral-label-secondary";
3577
+ case "primary":
3578
+ return "brand-label-primary";
3579
+ case "caution":
3580
+ return "function-label-caution";
3581
+ case "error":
3582
+ return "function-label-negative";
3583
+ case "accent":
3584
+ return "accent-label-primary";
3585
+ default:
3586
+ return "neutral-label-primary";
3587
+ }
3588
+ }
3589
+ __name(getIconType, "getIconType");
3590
+ function getTextClass(variant, color) {
3591
+ if (variant === "inverse") return style_module_default22["text-primary-inverse"];
3592
+ switch (color) {
3593
+ case "neutral":
3594
+ return style_module_default22["text-neutral"];
3595
+ case "neutral-secondary":
3596
+ return style_module_default22["text-neutral-secondary"];
3597
+ case "primary":
3598
+ return style_module_default22["text-primary"];
3599
+ case "caution":
3600
+ return style_module_default22["text-caution"];
3601
+ case "error":
3602
+ return style_module_default22["text-error"];
3603
+ case "accent":
3604
+ return style_module_default22["text-accent"];
3605
+ default:
3606
+ return style_module_default22["text-neutral"];
3607
+ }
3608
+ }
3609
+ __name(getTextClass, "getTextClass");
3610
+ var Badge2 = forwardRef20(
3611
+ ({
3612
+ size = "s",
3613
+ variant = "fill",
3614
+ color = "primary",
3615
+ thick = false,
3616
+ className,
3617
+ children,
3618
+ leftIcon,
3619
+ rightIcon,
3620
+ ...rest
3621
+ }, ref) => {
3622
+ const iconSize = badgeSizeIconSizeMap[size];
3623
+ const typoClass = badgeSizeTypoMap[size][+thick];
3624
+ const resolvedVariant = variant;
3625
+ const resolvedColor = color;
3626
+ return /* @__PURE__ */ jsxs17(
3627
+ "span",
3628
+ {
3629
+ ref,
3630
+ className: clsx23(
3631
+ badgeBase({ size }),
3632
+ typoClass,
3633
+ getBgClass(resolvedVariant, resolvedColor),
3634
+ getTextClass(resolvedVariant, resolvedColor),
3635
+ className
3636
+ ),
3637
+ ...rest,
3638
+ children: [
3639
+ !!leftIcon && /* @__PURE__ */ jsx31(
3640
+ leftIcon.icon,
3641
+ {
3642
+ size: iconSize,
3643
+ type: getIconType(resolvedVariant, resolvedColor),
3644
+ ...leftIcon
3645
+ }
3646
+ ),
3647
+ /* @__PURE__ */ jsx31("span", { className: style_module_default22.text, children }),
3648
+ !!rightIcon && /* @__PURE__ */ jsx31(
3649
+ rightIcon.icon,
3650
+ {
3651
+ size: iconSize,
3652
+ type: getIconType(resolvedVariant, resolvedColor),
3653
+ ...rightIcon
3654
+ }
3655
+ )
3656
+ ]
3657
+ }
3658
+ );
3659
+ }
3660
+ );
3661
+ Badge2.displayName = "Badge";
3541
3662
  export {
3663
+ Badge2 as Badge,
3542
3664
  Button,
3543
3665
  Caption,
3544
3666
  Checkbox,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liner-fe/prism",
3
- "version": "3.0.9",
3
+ "version": "3.0.11",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "dependencies": {
@@ -16,10 +16,10 @@
16
16
  "react": "^19.1.0",
17
17
  "react-dom": "^19.1.0",
18
18
  "jotai": "^2.11.0",
19
- "@liner-fe/design-token": "^3.0.1",
20
- "@liner-fe/icon": "^1.0.1",
19
+ "@liner-fe/design-token-primitive": "^0.2.47",
20
+ "@liner-fe/icon": "^2.0.0",
21
21
  "@liner-fe/illust": "^1.0.0",
22
- "@liner-fe/design-token-primitive": "^0.2.46"
22
+ "@liner-fe/design-token": "^3.0.2"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@chromatic-com/storybook": "^1.5.0",