@liner-fe/prism 2.1.10 → 2.1.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.cjs +42 -22
- package/lib/index.cjs.map +2 -2
- package/lib/index.css +61 -58
- package/lib/index.css.map +2 -2
- package/lib/index.mjs +42 -22
- package/lib/index.mjs.map +2 -2
- package/package.json +1 -1
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": "
|
|
8982
|
-
"primary": "
|
|
8983
|
-
"secondary": "
|
|
8984
|
-
"tertiary": "
|
|
8985
|
-
"quaternary": "
|
|
8986
|
-
"negative": "
|
|
8987
|
-
"static": "
|
|
8988
|
-
"inverse": "
|
|
8989
|
-
"inverse-static": "_inverse-
|
|
8990
|
-
"ghost": "
|
|
8991
|
-
"l": "
|
|
8992
|
-
"m": "
|
|
8993
|
-
"s": "
|
|
8994
|
-
"xs": "
|
|
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
|
-
({
|
|
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)(
|
|
9063
|
-
|
|
9072
|
+
return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
|
|
9073
|
+
Comp,
|
|
9064
9074
|
{
|
|
9065
|
-
|
|
9066
|
-
|
|
9067
|
-
|
|
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: "
|
|
9371
|
+
level: "secondary",
|
|
9372
|
+
fill: false,
|
|
9353
9373
|
icon: {
|
|
9354
9374
|
name: "close-fill",
|
|
9355
9375
|
size: "s",
|