@broxus/react-uikit 0.8.0 → 0.8.1
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/cjs/components/Control/Checkbox/index.scss +6 -4
- package/dist/cjs/components/Section/index.d.ts +1 -1
- package/dist/cjs/components/Section/index.js +2 -2
- package/dist/cjs/components/Tile/index.d.ts +1 -1
- package/dist/cjs/components/Tile/index.js +2 -2
- package/dist/cjs/styles/variables.scss +1 -0
- package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/esm/components/Control/Checkbox/index.scss +6 -4
- package/dist/esm/components/Section/index.d.ts +1 -1
- package/dist/esm/components/Section/index.js +2 -2
- package/dist/esm/components/Tile/index.d.ts +1 -1
- package/dist/esm/components/Tile/index.js +2 -2
- package/dist/esm/styles/variables.scss +1 -0
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -86,20 +86,21 @@
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
.uk-checkbox-wrapper .uk-checkbox-inner::after {
|
|
89
|
-
border: var(--checkbox-border-width) solid var(--checkbox-checked-
|
|
89
|
+
border: var(--checkbox-checked-icon-border-width) solid var(--checkbox-checked-icon-color);
|
|
90
90
|
border-left: 0;
|
|
91
91
|
border-top: 0;
|
|
92
|
+
box-sizing: border-box;
|
|
92
93
|
content: ' ';
|
|
93
94
|
display: block;
|
|
94
|
-
height: calc(var(--checkbox-size) / 2
|
|
95
|
-
left:
|
|
95
|
+
height: calc(var(--checkbox-size) / 2);
|
|
96
|
+
left: 28.5%;
|
|
96
97
|
opacity: 0;
|
|
97
98
|
position: absolute;
|
|
98
99
|
top: 50%;
|
|
99
100
|
transform: rotate(45deg) scale(0) translate(-50%, -50%);
|
|
100
101
|
transition: all var(--transition-fast-duration) var(--ease-in-back),
|
|
101
102
|
opacity var(--transition-fast-duration);
|
|
102
|
-
width: calc(var(--checkbox-size) /
|
|
103
|
+
width: calc(var(--checkbox-size) / 4);
|
|
103
104
|
}
|
|
104
105
|
|
|
105
106
|
.uk-checkbox-wrapper .uk-checkbox-label {
|
|
@@ -314,6 +315,7 @@
|
|
|
314
315
|
--checkbox-size: #{$checkbox-size};
|
|
315
316
|
--checkbox-checked-background: var(--global-primary-background);
|
|
316
317
|
--checkbox-checked-border: var(--global-primary-border);
|
|
318
|
+
--checkbox-checked-icon-border-width: #{$checkbox-checked-icon-border-width};
|
|
317
319
|
--checkbox-checked-icon-color: var(--global-inverse-color);
|
|
318
320
|
--checkbox-control-background: #{$checkbox-control-background};
|
|
319
321
|
--checkbox-checked-control-background: #{$checkbox-checked-control-background};
|
|
@@ -2,9 +2,9 @@ import * as React from 'react';
|
|
|
2
2
|
import { type PolymorphicProps } from '../../components/Component';
|
|
3
3
|
import './index.scss';
|
|
4
4
|
export type SectionOwnProps = {
|
|
5
|
+
kind?: 'default' | 'muted' | 'primary' | 'secondary' | 'tertiary';
|
|
5
6
|
preserveColor?: boolean;
|
|
6
7
|
size?: 'xsmall' | 'small' | 'large' | 'xlarge';
|
|
7
|
-
type?: 'default' | 'muted' | 'primary' | 'secondary' | 'tertiary';
|
|
8
8
|
};
|
|
9
9
|
export type SectionProps<E extends React.ElementType = React.ElementType> = React.PropsWithChildren<SectionOwnProps & PolymorphicProps<E>> & PolymorphicProps<E, SectionOwnProps>;
|
|
10
10
|
declare const defaultElement = "section";
|
|
@@ -35,11 +35,11 @@ require("./index.scss");
|
|
|
35
35
|
const defaultElement = 'section';
|
|
36
36
|
function Section(props) {
|
|
37
37
|
const config = (0, ConfigProvider_1.useConfig)();
|
|
38
|
-
const { className, prefixCls = config.prefixCls, preserveColor, size,
|
|
38
|
+
const { className, prefixCls = config.prefixCls, preserveColor, size, kind, ...restProps } = props;
|
|
39
39
|
const rootCls = React.useMemo(() => config.getRootPrefixCls(prefixCls || config.prefixCls, 'section'), [config, prefixCls]);
|
|
40
40
|
return (React.createElement(Component_1.Component, { className: (0, classnames_1.default)(rootCls, {
|
|
41
41
|
[`${rootCls}-${size}`]: size !== undefined,
|
|
42
|
-
[`${rootCls}-${
|
|
42
|
+
[`${rootCls}-${kind}`]: kind !== undefined,
|
|
43
43
|
[`${prefixCls || config.prefixCls}-preserve-color`]: preserveColor,
|
|
44
44
|
}, className), component: defaultElement, ...restProps }));
|
|
45
45
|
}
|
|
@@ -2,10 +2,10 @@ import * as React from 'react';
|
|
|
2
2
|
import { type PolymorphicProps } from '../../components/Component';
|
|
3
3
|
import './index.scss';
|
|
4
4
|
export type TileOwnProps = {
|
|
5
|
+
kind?: 'default' | 'muted' | 'primary' | 'secondary' | 'tertiary';
|
|
5
6
|
prefixCls?: string;
|
|
6
7
|
preserveColor?: boolean;
|
|
7
8
|
size?: 'xsmall' | 'small' | 'large' | 'xlarge';
|
|
8
|
-
type?: 'default' | 'muted' | 'primary' | 'secondary' | 'tertiary';
|
|
9
9
|
};
|
|
10
10
|
export type TileProps<E extends React.ElementType = React.ElementType> = React.PropsWithChildren<TileOwnProps & PolymorphicProps<E>> & PolymorphicProps<E, TileOwnProps>;
|
|
11
11
|
declare const defaultElement = "div";
|
|
@@ -35,11 +35,11 @@ require("./index.scss");
|
|
|
35
35
|
const defaultElement = 'div';
|
|
36
36
|
function Tile(props) {
|
|
37
37
|
const config = (0, ConfigProvider_1.useConfig)();
|
|
38
|
-
const { className, prefixCls = config.prefixCls, preserveColor, size,
|
|
38
|
+
const { className, prefixCls = config.prefixCls, preserveColor, size, kind, ...restProps } = props;
|
|
39
39
|
const rootCls = React.useMemo(() => config.getRootPrefixCls(prefixCls || config.prefixCls, 'tile'), [config, prefixCls]);
|
|
40
40
|
return (React.createElement(Component_1.Component, { className: (0, classnames_1.default)(rootCls, {
|
|
41
41
|
[`${rootCls}-${size}`]: size !== undefined,
|
|
42
|
-
[`${rootCls}-${
|
|
42
|
+
[`${rootCls}-${kind}`]: kind !== undefined,
|
|
43
43
|
[`${prefixCls || config.prefixCls}-preserve-color`]: preserveColor,
|
|
44
44
|
}, className), component: defaultElement, ...restProps }));
|
|
45
45
|
}
|
|
@@ -881,6 +881,7 @@ $checkbox-checked-control-padding: 10px !default;
|
|
|
881
881
|
$checkbox-disabled-background: $control-disabled-background !default;
|
|
882
882
|
$checkbox-disabled-border: $control-disabled-border !default;
|
|
883
883
|
$checkbox-disabled-icon-color: $global-muted-color !default;
|
|
884
|
+
$checkbox-checked-icon-border-width: 2px !default;
|
|
884
885
|
$checkbox-indeterminate-size: $checkbox-size - 10px !default;
|
|
885
886
|
|
|
886
887
|
|