@liner-fe/prism 2.1.10 → 2.1.12

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.mjs CHANGED
@@ -8913,20 +8913,20 @@ import clsx11 from "clsx";
8913
8913
 
8914
8914
  // src/components/IconButton/style.module.scss
8915
8915
  var style_module_default9 = {
8916
- "iconButton": "_iconButton_qo1a8_1",
8917
- "primary": "_primary_qo1a8_11",
8918
- "secondary": "_secondary_qo1a8_24",
8919
- "tertiary": "_tertiary_qo1a8_37",
8920
- "quaternary": "_quaternary_qo1a8_50",
8921
- "negative": "_negative_qo1a8_64",
8922
- "static": "_static_qo1a8_77",
8923
- "inverse": "_inverse_qo1a8_90",
8924
- "inverse-static": "_inverse-static_qo1a8_103",
8925
- "ghost": "_ghost_qo1a8_116",
8926
- "l": "_l_qo1a8_180",
8927
- "m": "_m_qo1a8_186",
8928
- "s": "_s_qo1a8_24",
8929
- "xs": "_xs_qo1a8_198"
8916
+ "iconButton": "_iconButton_6ezo4_1",
8917
+ "primary": "_primary_6ezo4_14",
8918
+ "secondary": "_secondary_6ezo4_27",
8919
+ "tertiary": "_tertiary_6ezo4_40",
8920
+ "quaternary": "_quaternary_6ezo4_53",
8921
+ "negative": "_negative_6ezo4_67",
8922
+ "static": "_static_6ezo4_80",
8923
+ "inverse": "_inverse_6ezo4_93",
8924
+ "inverse-static": "_inverse-static_6ezo4_106",
8925
+ "ghost": "_ghost_6ezo4_119",
8926
+ "l": "_l_6ezo4_183",
8927
+ "m": "_m_6ezo4_189",
8928
+ "s": "_s_6ezo4_27",
8929
+ "xs": "_xs_6ezo4_201"
8930
8930
  };
8931
8931
 
8932
8932
  // src/components/IconButton/index.tsx
@@ -8992,16 +8992,35 @@ var iconButtonVariants = cva8([style_module_default9.iconButton], {
8992
8992
  }
8993
8993
  });
8994
8994
  var IconButton = forwardRef10(
8995
- ({ asChild, level = "primary", size = "m", fill = true, className, icon, isLoading = false, ...rest }, ref) => {
8995
+ ({
8996
+ asChild,
8997
+ level = "primary",
8998
+ size = "m",
8999
+ fill = true,
9000
+ className,
9001
+ icon,
9002
+ isLoading = false,
9003
+ disabled = false,
9004
+ ...rest
9005
+ }, ref) => {
8996
9006
  const Comp = asChild ? Slot : "button";
8997
- return /* @__PURE__ */ jsx171(Comp, { ...rest, className: clsx11(iconButtonVariants({ level, size, fill }), className), ref, children: isLoading ? /* @__PURE__ */ jsx171(ButtonLoading, { size: iconButtonLoadingSizeMap[size], level }) : /* @__PURE__ */ jsx171(
8998
- Icon,
9007
+ return /* @__PURE__ */ jsx171(
9008
+ Comp,
8999
9009
  {
9000
- size: iconButtonSizeIconSizeMap[size],
9001
- type: iconButtonLevelIconTypeMap[fill ? "fill" : "ghost"][level],
9002
- ...icon
9010
+ ...rest,
9011
+ className: clsx11(iconButtonVariants({ level, size, fill }), className),
9012
+ ref,
9013
+ disabled: disabled && !isLoading,
9014
+ children: isLoading ? /* @__PURE__ */ jsx171(ButtonLoading, { size: iconButtonLoadingSizeMap[size], level }) : /* @__PURE__ */ jsx171(
9015
+ Icon,
9016
+ {
9017
+ size: iconButtonSizeIconSizeMap[size],
9018
+ type: iconButtonLevelIconTypeMap[fill ? "fill" : "ghost"][level],
9019
+ ...icon
9020
+ }
9021
+ )
9003
9022
  }
9004
- ) });
9023
+ );
9005
9024
  }
9006
9025
  );
9007
9026
 
@@ -9290,7 +9309,8 @@ var Textfield = forwardRef14((props, ref) => {
9290
9309
  {
9291
9310
  tabIndex: -1,
9292
9311
  className: style_module_default13["action-button"],
9293
- level: "tertiary",
9312
+ level: "secondary",
9313
+ fill: false,
9294
9314
  icon: {
9295
9315
  name: "close-fill",
9296
9316
  size: "s",