@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.cjs CHANGED
@@ -8978,20 +8978,20 @@ var import_clsx11 = __toESM(require("clsx"));
8978
8978
 
8979
8979
  // src/components/IconButton/style.module.scss
8980
8980
  var style_module_default9 = {
8981
- "iconButton": "_iconButton_qo1a8_1",
8982
- "primary": "_primary_qo1a8_11",
8983
- "secondary": "_secondary_qo1a8_24",
8984
- "tertiary": "_tertiary_qo1a8_37",
8985
- "quaternary": "_quaternary_qo1a8_50",
8986
- "negative": "_negative_qo1a8_64",
8987
- "static": "_static_qo1a8_77",
8988
- "inverse": "_inverse_qo1a8_90",
8989
- "inverse-static": "_inverse-static_qo1a8_103",
8990
- "ghost": "_ghost_qo1a8_116",
8991
- "l": "_l_qo1a8_180",
8992
- "m": "_m_qo1a8_186",
8993
- "s": "_s_qo1a8_24",
8994
- "xs": "_xs_qo1a8_198"
8981
+ "iconButton": "_iconButton_6ezo4_1",
8982
+ "primary": "_primary_6ezo4_14",
8983
+ "secondary": "_secondary_6ezo4_27",
8984
+ "tertiary": "_tertiary_6ezo4_40",
8985
+ "quaternary": "_quaternary_6ezo4_53",
8986
+ "negative": "_negative_6ezo4_67",
8987
+ "static": "_static_6ezo4_80",
8988
+ "inverse": "_inverse_6ezo4_93",
8989
+ "inverse-static": "_inverse-static_6ezo4_106",
8990
+ "ghost": "_ghost_6ezo4_119",
8991
+ "l": "_l_6ezo4_183",
8992
+ "m": "_m_6ezo4_189",
8993
+ "s": "_s_6ezo4_27",
8994
+ "xs": "_xs_6ezo4_201"
8995
8995
  };
8996
8996
 
8997
8997
  // src/components/IconButton/index.tsx
@@ -9057,16 +9057,35 @@ var iconButtonVariants = (0, import_class_variance_authority8.cva)([style_module
9057
9057
  }
9058
9058
  });
9059
9059
  var IconButton = (0, import_react12.forwardRef)(
9060
- ({ asChild, level = "primary", size = "m", fill = true, className, icon, isLoading = false, ...rest }, ref) => {
9060
+ ({
9061
+ asChild,
9062
+ level = "primary",
9063
+ size = "m",
9064
+ fill = true,
9065
+ className,
9066
+ icon,
9067
+ isLoading = false,
9068
+ disabled = false,
9069
+ ...rest
9070
+ }, ref) => {
9061
9071
  const Comp = asChild ? import_react_slot.Slot : "button";
9062
- return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(Comp, { ...rest, className: (0, import_clsx11.default)(iconButtonVariants({ level, size, fill }), className), ref, children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(ButtonLoading, { size: iconButtonLoadingSizeMap[size], level }) : /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
9063
- Icon,
9072
+ return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
9073
+ Comp,
9064
9074
  {
9065
- size: iconButtonSizeIconSizeMap[size],
9066
- type: iconButtonLevelIconTypeMap[fill ? "fill" : "ghost"][level],
9067
- ...icon
9075
+ ...rest,
9076
+ className: (0, import_clsx11.default)(iconButtonVariants({ level, size, fill }), className),
9077
+ ref,
9078
+ disabled: disabled && !isLoading,
9079
+ children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(ButtonLoading, { size: iconButtonLoadingSizeMap[size], level }) : /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
9080
+ Icon,
9081
+ {
9082
+ size: iconButtonSizeIconSizeMap[size],
9083
+ type: iconButtonLevelIconTypeMap[fill ? "fill" : "ghost"][level],
9084
+ ...icon
9085
+ }
9086
+ )
9068
9087
  }
9069
- ) });
9088
+ );
9070
9089
  }
9071
9090
  );
9072
9091
 
@@ -9349,7 +9368,8 @@ var Textfield = (0, import_react16.forwardRef)((props, ref) => {
9349
9368
  {
9350
9369
  tabIndex: -1,
9351
9370
  className: style_module_default13["action-button"],
9352
- level: "tertiary",
9371
+ level: "secondary",
9372
+ fill: false,
9353
9373
  icon: {
9354
9374
  name: "close-fill",
9355
9375
  size: "s",