@true-engineering/true-react-common-ui-kit 3.58.0 → 3.60.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 +19 -17
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +19 -17
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +4 -3
- package/src/components/Checkbox/Checkbox.styles.ts +1 -0
- 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: {
|
|
@@ -9369,6 +9369,7 @@ var Button = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
9369
9369
|
});
|
|
9370
9370
|
var useStyles$N = createThemedStyles("Checkbox", {
|
|
9371
9371
|
root: {
|
|
9372
|
+
position: "relative",
|
|
9372
9373
|
cursor: "pointer",
|
|
9373
9374
|
display: "flex",
|
|
9374
9375
|
alignItems: "center",
|
|
@@ -14474,9 +14475,6 @@ var FileInput = /* @__PURE__ */ forwardRef(function(param, ref) {
|
|
|
14474
14475
|
}));
|
|
14475
14476
|
});
|
|
14476
14477
|
FileInput.displayName = "FileInput";
|
|
14477
|
-
var BUTTON_SIZE_S = 24;
|
|
14478
|
-
var BUTTON_SIZE_M = 32;
|
|
14479
|
-
var ICON_SIZE = 20;
|
|
14480
14478
|
var useStyles$A = createThemedStyles("IconButton", {
|
|
14481
14479
|
root: {
|
|
14482
14480
|
display: "flex",
|
|
@@ -14486,7 +14484,7 @@ var useStyles$A = createThemedStyles("IconButton", {
|
|
|
14486
14484
|
outline: "none",
|
|
14487
14485
|
boxSizing: "border-box",
|
|
14488
14486
|
transition: animations.defaultTransition,
|
|
14489
|
-
transitionProperty: "background-color, color, border-color",
|
|
14487
|
+
transitionProperty: "background-color, color, border-color, opacity, visibility",
|
|
14490
14488
|
border: "none",
|
|
14491
14489
|
position: "relative",
|
|
14492
14490
|
boxShadow: "none",
|
|
@@ -14499,7 +14497,10 @@ var useStyles$A = createThemedStyles("IconButton", {
|
|
|
14499
14497
|
},
|
|
14500
14498
|
"&:active": {
|
|
14501
14499
|
extend: "active"
|
|
14502
|
-
}
|
|
14500
|
+
},
|
|
14501
|
+
width: "var(--icon-button-size)",
|
|
14502
|
+
height: "var(--icon-button-size)",
|
|
14503
|
+
"--icon-button-icon-size": "20px"
|
|
14503
14504
|
},
|
|
14504
14505
|
"cancel-light": {},
|
|
14505
14506
|
cancel: {},
|
|
@@ -14518,8 +14519,8 @@ var useStyles$A = createThemedStyles("IconButton", {
|
|
|
14518
14519
|
icon: {
|
|
14519
14520
|
display: "flex",
|
|
14520
14521
|
alignItems: "center",
|
|
14521
|
-
width:
|
|
14522
|
-
height:
|
|
14522
|
+
width: "var(--icon-button-icon-size)",
|
|
14523
|
+
height: "var(--icon-button-icon-size)"
|
|
14523
14524
|
},
|
|
14524
14525
|
loader: {
|
|
14525
14526
|
display: "none",
|
|
@@ -14527,16 +14528,17 @@ var useStyles$A = createThemedStyles("IconButton", {
|
|
|
14527
14528
|
left: "50%",
|
|
14528
14529
|
top: "50%",
|
|
14529
14530
|
transform: "translate(-50%, -50%)",
|
|
14530
|
-
width:
|
|
14531
|
-
height:
|
|
14531
|
+
width: "var(--icon-button-icon-size)",
|
|
14532
|
+
height: "var(--icon-button-icon-size)"
|
|
14532
14533
|
},
|
|
14533
14534
|
s: {
|
|
14534
|
-
|
|
14535
|
-
height: BUTTON_SIZE_S
|
|
14535
|
+
"--icon-button-size": "24px"
|
|
14536
14536
|
},
|
|
14537
14537
|
m: {
|
|
14538
|
-
|
|
14539
|
-
|
|
14538
|
+
"--icon-button-size": "32px"
|
|
14539
|
+
},
|
|
14540
|
+
l: {
|
|
14541
|
+
"--icon-button-size": "40px"
|
|
14540
14542
|
}
|
|
14541
14543
|
});
|
|
14542
14544
|
function _define_property$K(obj, key, value) {
|