@true-engineering/true-react-common-ui-kit 3.58.0 → 3.59.0
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/dist/components/IconButton/IconButton.styles.d.ts +1 -1
- package/dist/components/IconButton/constants.d.ts +1 -1
- package/dist/true-react-common-ui-kit.js +18 -17
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +18 -17
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/IconButton/IconButton.styles.ts +15 -13
- package/src/components/IconButton/constants.ts +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ITweakStyles } from '../../theme';
|
|
2
|
-
export declare const useStyles: import("../../theme").IUseStyles<"main" | "cancel" | "root" | "icon" | "active" | "disabled" | "custom" | "s" | "m" | "loader" | "loading" | "cancel-light", unknown>;
|
|
2
|
+
export declare const useStyles: import("../../theme").IUseStyles<"main" | "cancel" | "root" | "icon" | "active" | "disabled" | "custom" | "s" | "m" | "l" | "loader" | "loading" | "cancel-light", unknown>;
|
|
3
3
|
export type IIconButtonStyles = ITweakStyles<typeof useStyles>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const ICON_BUTTON_SIZES: readonly ["s", "m"];
|
|
1
|
+
export declare const ICON_BUTTON_SIZES: readonly ["s", "m", "l"];
|
|
2
2
|
export declare const ICON_BUTTON_VIEWS: readonly ["cancel", "cancel-light", "main", "custom"];
|
|
@@ -8208,7 +8208,7 @@ var WithPopup = function(param) {
|
|
|
8208
8208
|
});
|
|
8209
8209
|
};
|
|
8210
8210
|
var ITEM_HORIZONTAL_PADDING = 16;
|
|
8211
|
-
var ICON_SIZE
|
|
8211
|
+
var ICON_SIZE = 20;
|
|
8212
8212
|
var ICON_GAP = 12;
|
|
8213
8213
|
var useStyles$V = createThemedStyles("ListItem", {
|
|
8214
8214
|
root: {
|
|
@@ -8238,11 +8238,11 @@ var useStyles$V = createThemedStyles("ListItem", {
|
|
|
8238
8238
|
backgroundColor: colors.BORDER_LIGHT
|
|
8239
8239
|
},
|
|
8240
8240
|
withIconGap: {
|
|
8241
|
-
paddingLeft: ITEM_HORIZONTAL_PADDING + ICON_SIZE
|
|
8241
|
+
paddingLeft: ITEM_HORIZONTAL_PADDING + ICON_SIZE + ICON_GAP
|
|
8242
8242
|
},
|
|
8243
8243
|
icon: {
|
|
8244
|
-
width: ICON_SIZE
|
|
8245
|
-
height: ICON_SIZE
|
|
8244
|
+
width: ICON_SIZE,
|
|
8245
|
+
height: ICON_SIZE,
|
|
8246
8246
|
flexShrink: 0
|
|
8247
8247
|
},
|
|
8248
8248
|
content: {
|
|
@@ -14474,9 +14474,6 @@ var FileInput = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
|
14474
14474
|
}));
|
|
14475
14475
|
});
|
|
14476
14476
|
FileInput.displayName = "FileInput";
|
|
14477
|
-
var BUTTON_SIZE_S = 24;
|
|
14478
|
-
var BUTTON_SIZE_M = 32;
|
|
14479
|
-
var ICON_SIZE = 20;
|
|
14480
14477
|
var useStyles$A = createThemedStyles("IconButton", {
|
|
14481
14478
|
root: {
|
|
14482
14479
|
display: "flex",
|
|
@@ -14486,7 +14483,7 @@ var useStyles$A = createThemedStyles("IconButton", {
|
|
|
14486
14483
|
outline: "none",
|
|
14487
14484
|
boxSizing: "border-box",
|
|
14488
14485
|
transition: animations.defaultTransition,
|
|
14489
|
-
transitionProperty: "background-color, color, border-color",
|
|
14486
|
+
transitionProperty: "background-color, color, border-color, opacity, visibility",
|
|
14490
14487
|
border: "none",
|
|
14491
14488
|
position: "relative",
|
|
14492
14489
|
boxShadow: "none",
|
|
@@ -14499,7 +14496,10 @@ var useStyles$A = createThemedStyles("IconButton", {
|
|
|
14499
14496
|
},
|
|
14500
14497
|
"&:active": {
|
|
14501
14498
|
extend: "active"
|
|
14502
|
-
}
|
|
14499
|
+
},
|
|
14500
|
+
width: "var(--icon-button-size)",
|
|
14501
|
+
height: "var(--icon-button-size)",
|
|
14502
|
+
"--icon-button-icon-size": "20px"
|
|
14503
14503
|
},
|
|
14504
14504
|
"cancel-light": {},
|
|
14505
14505
|
cancel: {},
|
|
@@ -14518,8 +14518,8 @@ var useStyles$A = createThemedStyles("IconButton", {
|
|
|
14518
14518
|
icon: {
|
|
14519
14519
|
display: "flex",
|
|
14520
14520
|
alignItems: "center",
|
|
14521
|
-
width:
|
|
14522
|
-
height:
|
|
14521
|
+
width: "var(--icon-button-icon-size)",
|
|
14522
|
+
height: "var(--icon-button-icon-size)"
|
|
14523
14523
|
},
|
|
14524
14524
|
loader: {
|
|
14525
14525
|
display: "none",
|
|
@@ -14527,16 +14527,17 @@ var useStyles$A = createThemedStyles("IconButton", {
|
|
|
14527
14527
|
left: "50%",
|
|
14528
14528
|
top: "50%",
|
|
14529
14529
|
transform: "translate(-50%, -50%)",
|
|
14530
|
-
width:
|
|
14531
|
-
height:
|
|
14530
|
+
width: "var(--icon-button-icon-size)",
|
|
14531
|
+
height: "var(--icon-button-icon-size)"
|
|
14532
14532
|
},
|
|
14533
14533
|
s: {
|
|
14534
|
-
|
|
14535
|
-
height: BUTTON_SIZE_S
|
|
14534
|
+
"--icon-button-size": "24px"
|
|
14536
14535
|
},
|
|
14537
14536
|
m: {
|
|
14538
|
-
|
|
14539
|
-
|
|
14537
|
+
"--icon-button-size": "32px"
|
|
14538
|
+
},
|
|
14539
|
+
l: {
|
|
14540
|
+
"--icon-button-size": "40px"
|
|
14540
14541
|
}
|
|
14541
14542
|
});
|
|
14542
14543
|
function _define_property$K(obj, key, value) {
|