@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 +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 +2 -2
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": "
|
|
8917
|
-
"primary": "
|
|
8918
|
-
"secondary": "
|
|
8919
|
-
"tertiary": "
|
|
8920
|
-
"quaternary": "
|
|
8921
|
-
"negative": "
|
|
8922
|
-
"static": "
|
|
8923
|
-
"inverse": "
|
|
8924
|
-
"inverse-static": "_inverse-
|
|
8925
|
-
"ghost": "
|
|
8926
|
-
"l": "
|
|
8927
|
-
"m": "
|
|
8928
|
-
"s": "
|
|
8929
|
-
"xs": "
|
|
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
|
-
({
|
|
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(
|
|
8998
|
-
|
|
9007
|
+
return /* @__PURE__ */ jsx171(
|
|
9008
|
+
Comp,
|
|
8999
9009
|
{
|
|
9000
|
-
|
|
9001
|
-
|
|
9002
|
-
|
|
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: "
|
|
9312
|
+
level: "secondary",
|
|
9313
|
+
fill: false,
|
|
9294
9314
|
icon: {
|
|
9295
9315
|
name: "close-fill",
|
|
9296
9316
|
size: "s",
|