@broxus/react-uikit 0.6.6 → 0.6.8
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/Alert/index.d.ts +2 -2
- package/dist/cjs/components/Control/Input/Input.d.ts +1 -0
- package/dist/cjs/components/Control/Input/Input.js +1 -0
- package/dist/cjs/components/Control/Input/Number/index.d.ts +1 -0
- package/dist/cjs/components/Control/Input/Number/index.js +1 -0
- package/dist/cjs/components/Control/Input/Password/index.d.ts +1 -0
- package/dist/cjs/components/Control/Input/Password/index.js +1 -0
- package/dist/cjs/components/Control/Radio/index.d.ts +1 -0
- package/dist/cjs/components/Control/Radio/index.js +1 -0
- package/dist/cjs/components/Control/Select/index.d.ts +1 -1
- package/dist/cjs/components/Control/Select/index.js +12 -11
- package/dist/cjs/components/Control/Select/index.scss +65 -22
- package/dist/cjs/components/Control/TextArea/index.d.ts +1 -0
- package/dist/cjs/components/Control/TextArea/index.js +1 -0
- package/dist/cjs/components/Control/index.d.ts +0 -1
- package/dist/cjs/components/Control/index.js +0 -1
- package/dist/cjs/components/Dropdown/index.scss +1 -0
- package/dist/cjs/components/Modal/Modal.d.ts +1 -0
- package/dist/cjs/components/Modal/Modal.js +1 -0
- package/dist/cjs/components/Modal/index.d.ts +0 -1
- package/dist/cjs/components/Modal/index.js +0 -1
- package/dist/cjs/components/Modal/index.scss +1 -0
- package/dist/cjs/components/Nav/utils/timeUtil.d.ts +1 -1
- package/dist/cjs/components/Width/Width.d.ts +1 -0
- package/dist/cjs/components/Width/Width.js +1 -0
- package/dist/cjs/components/Width/index.d.ts +0 -1
- package/dist/cjs/components/Width/index.js +0 -1
- package/dist/cjs/styles/mixins.scss +2 -0
- package/dist/cjs/styles/variables.scss +1 -0
- package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/esm/components/Alert/index.d.ts +2 -2
- package/dist/esm/components/Control/Input/Input.d.ts +1 -0
- package/dist/esm/components/Control/Input/Input.js +1 -0
- package/dist/esm/components/Control/Input/Number/index.d.ts +1 -0
- package/dist/esm/components/Control/Input/Number/index.js +1 -0
- package/dist/esm/components/Control/Input/Password/index.d.ts +1 -0
- package/dist/esm/components/Control/Input/Password/index.js +1 -0
- package/dist/esm/components/Control/Radio/index.d.ts +1 -0
- package/dist/esm/components/Control/Radio/index.js +1 -0
- package/dist/esm/components/Control/Select/index.d.ts +1 -1
- package/dist/esm/components/Control/Select/index.js +12 -11
- package/dist/esm/components/Control/Select/index.scss +65 -22
- package/dist/esm/components/Control/TextArea/index.d.ts +1 -0
- package/dist/esm/components/Control/TextArea/index.js +1 -0
- package/dist/esm/components/Control/index.d.ts +0 -1
- package/dist/esm/components/Control/index.js +0 -1
- package/dist/esm/components/Dropdown/index.scss +1 -0
- package/dist/esm/components/Modal/Modal.d.ts +1 -0
- package/dist/esm/components/Modal/Modal.js +1 -0
- package/dist/esm/components/Modal/index.d.ts +0 -1
- package/dist/esm/components/Modal/index.js +0 -1
- package/dist/esm/components/Modal/index.scss +1 -0
- package/dist/esm/components/Nav/utils/timeUtil.d.ts +1 -1
- package/dist/esm/components/Width/Width.d.ts +1 -0
- package/dist/esm/components/Width/Width.js +1 -0
- package/dist/esm/components/Width/index.d.ts +0 -1
- package/dist/esm/components/Width/index.js +0 -1
- package/dist/esm/styles/mixins.scss +2 -0
- package/dist/esm/styles/variables.scss +1 -0
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +17 -17
|
@@ -6,10 +6,10 @@ export interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
6
6
|
closeIcon?: React.ReactNode;
|
|
7
7
|
prefixCls?: string;
|
|
8
8
|
severity?: 'primary' | 'success' | 'warning' | 'danger';
|
|
9
|
-
onClose?:
|
|
9
|
+
onClose?: VoidFunction;
|
|
10
10
|
onClosed?: MotionEndEventHandler;
|
|
11
11
|
}
|
|
12
12
|
export type AlertRef = {
|
|
13
|
-
close:
|
|
13
|
+
close: VoidFunction;
|
|
14
14
|
};
|
|
15
15
|
export declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<AlertRef>>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type InputProps, type InputRef } from '../../../components/Control/Input/types';
|
|
3
|
+
import '../index.scss';
|
|
3
4
|
export declare const Input: React.ForwardRefExoticComponent<InputProps<import("..").ValueType> & React.RefAttributes<InputRef>>;
|
|
@@ -4,6 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import { useConfig } from '../../../components/ConfigProvider';
|
|
5
5
|
import { useInput } from '../../../components/Control/Input/useInput';
|
|
6
6
|
import { Icon } from '../../../components/Icon';
|
|
7
|
+
import '../index.scss';
|
|
7
8
|
export const Input = React.forwardRef((props, ref) => {
|
|
8
9
|
const config = useConfig();
|
|
9
10
|
const { allowClear, inputRef, prefix, prefixCls = config.prefixCls, suffix, wrapperClasses, onClear, ...restProps } = useInput({
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type InputNumberProps, type InputRef } from '../../../../components/Control/Input/types';
|
|
3
3
|
import './index.scss';
|
|
4
|
+
import '../../index.scss';
|
|
4
5
|
export declare const InputNumber: React.ForwardRefExoticComponent<InputNumberProps<import("../..").ValueType> & React.RefAttributes<InputRef>>;
|
|
@@ -5,6 +5,7 @@ import { useConfig } from '../../../../components/ConfigProvider';
|
|
|
5
5
|
import { useInput } from '../../../../components/Control/Input/useInput';
|
|
6
6
|
import { Icon } from '../../../../components/Icon';
|
|
7
7
|
import './index.scss';
|
|
8
|
+
import '../../index.scss';
|
|
8
9
|
/* eslint-disable jsx-a11y/label-has-associated-control */
|
|
9
10
|
export const InputNumber = React.forwardRef((props, ref) => {
|
|
10
11
|
const config = useConfig();
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type InputRef, type PasswordProps } from '../../../../components/Control/Input/types';
|
|
3
3
|
import './index.scss';
|
|
4
|
+
import '../../index.scss';
|
|
4
5
|
export declare const Password: React.ForwardRefExoticComponent<PasswordProps & React.RefAttributes<InputRef>>;
|
|
@@ -4,6 +4,7 @@ import { useConfig } from '../../../../components/ConfigProvider';
|
|
|
4
4
|
import { Input } from '../../../../components/Control/Input/Input';
|
|
5
5
|
import { Icon } from '../../../../components/Icon';
|
|
6
6
|
import './index.scss';
|
|
7
|
+
import '../../index.scss';
|
|
7
8
|
export const Password = React.forwardRef((props, ref) => {
|
|
8
9
|
const config = useConfig();
|
|
9
10
|
const { prefixCls, onBlur: onBlurCallback, onChange: onChangeCallback, ...restProps } = props;
|
|
@@ -2,6 +2,7 @@ import type * as React from 'react';
|
|
|
2
2
|
import { Group, type RadioGroupProps } from '../../../components/Control/Radio/Group';
|
|
3
3
|
import { type RadioProps } from '../../../components/Control/Radio/Radio';
|
|
4
4
|
import './index.scss';
|
|
5
|
+
import '../index.scss';
|
|
5
6
|
export type { RadioGroupProps, RadioProps };
|
|
6
7
|
export interface Radio extends React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>> {
|
|
7
8
|
Group: typeof Group;
|
|
@@ -4,11 +4,11 @@ import { type BaseOptionType, type DefaultOptionType } from 'rc-select/lib/Selec
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { type ControlProps, type SizeType } from '../../../components/Control/types';
|
|
6
6
|
import './index.scss';
|
|
7
|
+
import '../index.scss';
|
|
7
8
|
export type { BaseSelectRef, OptionProps };
|
|
8
9
|
export interface InternalSelectProps<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType> extends Omit<RcSelectProps<ValueType, OptionType>, 'allowClear' | 'mode'> {
|
|
9
10
|
mode?: 'multiple' | 'tags' | 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
|
|
10
11
|
size?: SizeType;
|
|
11
|
-
suffixIcon?: React.ReactNode;
|
|
12
12
|
}
|
|
13
13
|
export interface SelectProps<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType> extends Omit<ControlProps<ValueType>, 'value' | 'defaultValue'>, Omit<InternalSelectProps<ValueType, OptionType>, 'inputIcon' | 'mode' | 'getInputElement' | 'backfill'> {
|
|
14
14
|
mode?: 'multiple' | 'tags';
|
|
@@ -5,6 +5,7 @@ import { useConfig } from '../../../components/ConfigProvider';
|
|
|
5
5
|
import { Icon } from '../../../components/Icon';
|
|
6
6
|
import { Spinner } from '../../../components/Spinner';
|
|
7
7
|
import './index.scss';
|
|
8
|
+
import '../index.scss';
|
|
8
9
|
const SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
|
|
9
10
|
/* eslint-disable jsx-a11y/label-has-associated-control */
|
|
10
11
|
function InternalSelect(props, ref) {
|
|
@@ -83,20 +84,22 @@ function InternalSelect(props, ref) {
|
|
|
83
84
|
]);
|
|
84
85
|
const inputProps = React.useMemo(() => {
|
|
85
86
|
// Arrow or loading icon
|
|
86
|
-
let
|
|
87
|
+
let suffixIcon;
|
|
87
88
|
if (restProps.loading) {
|
|
88
|
-
|
|
89
|
+
suffixIcon = React.createElement(Spinner, { key: "spinner", ratio: 0.9 });
|
|
89
90
|
}
|
|
90
91
|
else if (showArrow) {
|
|
91
92
|
const isMultiple = mode === 'multiple' || mode === 'tags';
|
|
92
93
|
if (isMultiple) {
|
|
93
|
-
|
|
94
|
+
suffixIcon = React.createElement(Icon, { key: "add_box", icon: "add_box", onClick: onClickIcon });
|
|
94
95
|
}
|
|
95
96
|
else if (showSearch && internalOpen) {
|
|
96
|
-
|
|
97
|
+
suffixIcon = React.createElement(Icon, { key: "manage_search", icon: "manage_search" });
|
|
97
98
|
}
|
|
98
99
|
else {
|
|
99
|
-
|
|
100
|
+
suffixIcon = internalOpen
|
|
101
|
+
? React.createElement(Icon, { key: "expand_less", icon: "expand_less" })
|
|
102
|
+
: React.createElement(Icon, { key: "expand_more", icon: "expand_more", onClick: onClickIcon });
|
|
100
103
|
}
|
|
101
104
|
}
|
|
102
105
|
// Not found content
|
|
@@ -107,21 +110,19 @@ function InternalSelect(props, ref) {
|
|
|
107
110
|
else if (mode === 'combobox') {
|
|
108
111
|
mergedNotFound = null;
|
|
109
112
|
}
|
|
110
|
-
else {
|
|
111
|
-
// mergedNotFound = renderEmpty('Select')
|
|
112
|
-
}
|
|
113
113
|
return {
|
|
114
|
-
|
|
114
|
+
allowClear: {
|
|
115
|
+
clearIcon: React.createElement(Icon, { icon: "clear" }),
|
|
116
|
+
},
|
|
115
117
|
dropdownMatchSelectWidth: true,
|
|
116
|
-
inputIcon,
|
|
117
118
|
listHeight,
|
|
118
119
|
listItemHeight,
|
|
119
120
|
menuItemSelectedIcon: React.createElement(Icon, { icon: "check" }),
|
|
120
121
|
open: internalOpen,
|
|
121
122
|
prefixCls: rootCls,
|
|
122
123
|
removeIcon: React.createElement(Icon, { icon: "clear" }),
|
|
123
|
-
showArrow,
|
|
124
124
|
showSearch,
|
|
125
|
+
suffixIcon,
|
|
125
126
|
transitionName: `${prefixCls || config.prefixCls}-motion-slide-bottom-small`,
|
|
126
127
|
...restProps,
|
|
127
128
|
dropdownClassName: classNames(restProps.dropdownClassName, {
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
position: relative;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
|
|
34
33
|
/* ========================================================================
|
|
35
34
|
Component: Select
|
|
36
35
|
========================================================================== */
|
|
@@ -62,7 +61,6 @@
|
|
|
62
61
|
.uk-select-selector input {
|
|
63
62
|
cursor: inherit;
|
|
64
63
|
font: inherit;
|
|
65
|
-
|
|
66
64
|
}
|
|
67
65
|
|
|
68
66
|
/* Disabled */
|
|
@@ -153,12 +151,9 @@
|
|
|
153
151
|
|
|
154
152
|
.uk-select-single .uk-select-selection-search {
|
|
155
153
|
align-items: center;
|
|
156
|
-
bottom: 0;
|
|
157
154
|
display: flex;
|
|
158
|
-
|
|
155
|
+
inset: 0 var(--select-selector-padding-horizontal) 0 var(--select-selector-padding-horizontal);
|
|
159
156
|
position: absolute;
|
|
160
|
-
right: var(--select-selector-padding-horizontal);
|
|
161
|
-
top: 0;
|
|
162
157
|
@if mixin-exists(hook-select-single-selection-search) {
|
|
163
158
|
@include hook-select-single-selection-search;
|
|
164
159
|
}
|
|
@@ -334,9 +329,11 @@
|
|
|
334
329
|
color: var(--select-icon-color);
|
|
335
330
|
cursor: pointer;
|
|
336
331
|
display: flex;
|
|
337
|
-
|
|
332
|
+
height: 100%;
|
|
333
|
+
justify-content: center;
|
|
334
|
+
position: absolute;
|
|
338
335
|
transition: color var(--transition-duration) var(--ease-in-out);
|
|
339
|
-
|
|
336
|
+
width: var(--select-height);
|
|
340
337
|
}
|
|
341
338
|
|
|
342
339
|
.uk-select:not(.uk-select-disabled) .uk-select-arrow:hover,
|
|
@@ -352,8 +349,7 @@
|
|
|
352
349
|
|
|
353
350
|
.uk-select-arrow {
|
|
354
351
|
--icon-size: var(--select-arrow-icon-size);
|
|
355
|
-
|
|
356
|
-
order: 99;
|
|
352
|
+
right: 0;
|
|
357
353
|
@if mixin-exists(hook-select-arrow) {
|
|
358
354
|
@include hook-select-arrow;
|
|
359
355
|
}
|
|
@@ -365,6 +361,9 @@
|
|
|
365
361
|
}
|
|
366
362
|
}
|
|
367
363
|
|
|
364
|
+
.uk-select-arrow + .uk-select-clear {
|
|
365
|
+
right: var(--select-height);
|
|
366
|
+
}
|
|
368
367
|
|
|
369
368
|
/* Dropdown
|
|
370
369
|
========================================================================== */
|
|
@@ -387,31 +386,31 @@
|
|
|
387
386
|
}
|
|
388
387
|
}
|
|
389
388
|
|
|
390
|
-
// noinspection Stylelint
|
|
391
389
|
.uk-select-dropdown-placement-bottomLeft.uk-slide-up-enter.uk-slide-up-enter-active,
|
|
392
390
|
.uk-select-dropdown-placement-bottomLeft.uk-slide-up-appear.uk-slide-up-appear-active {
|
|
393
391
|
animation-name: uk-slide-up-in;
|
|
394
392
|
}
|
|
395
393
|
|
|
396
|
-
// noinspection Stylelint
|
|
397
394
|
.uk-select-dropdown-placement-topLeft.uk-slide-up-enter.uk-slide-up-enter-active,
|
|
398
395
|
.uk-select-dropdown-placement-topLeft.uk-slide-up-appear.uk-slide-up-appear-active {
|
|
399
396
|
animation-name: uk-slide-down-in;
|
|
400
397
|
}
|
|
401
398
|
|
|
402
|
-
// noinspection Stylelint
|
|
403
399
|
.uk-select-dropdown-placement-bottomLeft .uk-slide-up-leave.uk-slide-up-leave-active {
|
|
404
400
|
animation-name: uk-slide-up-out;
|
|
405
401
|
}
|
|
406
402
|
|
|
407
|
-
// noinspection Stylelint
|
|
408
403
|
.uk-select-dropdown-placement-topLeft.uk-slide-up-leave.uk-slide-up-leave-active {
|
|
409
404
|
animation-name: uk-slide-down-out;
|
|
410
405
|
}
|
|
411
406
|
|
|
412
|
-
.uk-select-dropdown-hidden {
|
|
407
|
+
.uk-select-dropdown-hidden {
|
|
408
|
+
display: none;
|
|
409
|
+
}
|
|
413
410
|
|
|
414
|
-
.uk-select-dropdown-empty {
|
|
411
|
+
.uk-select-dropdown-empty {
|
|
412
|
+
color: var(--control-disabled-color);
|
|
413
|
+
}
|
|
415
414
|
|
|
416
415
|
|
|
417
416
|
/* Dropdown options
|
|
@@ -554,6 +553,15 @@
|
|
|
554
553
|
padding: 0 var(--select-selector-small-padding-horizontal);
|
|
555
554
|
}
|
|
556
555
|
|
|
556
|
+
.uk-control-select.uk-control-small .uk-select-arrow,
|
|
557
|
+
.uk-control-select.uk-control-small .uk-select-clear {
|
|
558
|
+
width: var(--select-small-height);
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
.uk-control-select.uk-control-small .uk-select-arrow + .uk-select-clear {
|
|
562
|
+
width: var(--select-small-height);
|
|
563
|
+
}
|
|
564
|
+
|
|
557
565
|
/* Medium */
|
|
558
566
|
.uk-control-select.uk-control-medium {
|
|
559
567
|
min-height: var(--select-medium-height);
|
|
@@ -563,6 +571,15 @@
|
|
|
563
571
|
padding: 0 var(--select-selector-medium-padding-horizontal);
|
|
564
572
|
}
|
|
565
573
|
|
|
574
|
+
.uk-control-select.uk-control-medium .uk-select-arrow,
|
|
575
|
+
.uk-control-select.uk-control-medium .uk-select-clear {
|
|
576
|
+
width: var(--select-medium-height);
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.uk-control-select.uk-control-medium .uk-select-arrow + .uk-select-clear {
|
|
580
|
+
width: var(--select-medium-height);
|
|
581
|
+
}
|
|
582
|
+
|
|
566
583
|
/* Large */
|
|
567
584
|
.uk-control-select.uk-control-large {
|
|
568
585
|
min-height: var(--select-large-height);
|
|
@@ -572,20 +589,44 @@
|
|
|
572
589
|
padding: 0 var(--select-selector-large-padding-horizontal);
|
|
573
590
|
}
|
|
574
591
|
|
|
592
|
+
.uk-control-select.uk-control-large .uk-select-arrow,
|
|
593
|
+
.uk-control-select.uk-control-large .uk-select-clear {
|
|
594
|
+
width: var(--select-large-height);
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
.uk-control-select.uk-control-large .uk-select-arrow + .uk-select-clear {
|
|
598
|
+
width: var(--select-large-height);
|
|
599
|
+
}
|
|
575
600
|
|
|
576
601
|
/* Right to Left Direction
|
|
577
602
|
========================================================================== */
|
|
578
603
|
|
|
579
604
|
.uk-control-select.uk-control-rtl,
|
|
580
|
-
.uk-select-dropdown-rtl {
|
|
605
|
+
.uk-select-dropdown-rtl {
|
|
606
|
+
direction: rtl;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
.uk-control-select.uk-control-rtl .uk-select-arrow {
|
|
610
|
+
left: 0;
|
|
611
|
+
right: unset;
|
|
612
|
+
}
|
|
581
613
|
|
|
582
|
-
.uk-control-select.uk-control-rtl .uk-select-arrow,
|
|
583
614
|
.uk-control-select.uk-control-rtl .uk-select-clear {
|
|
584
|
-
|
|
585
|
-
|
|
615
|
+
left: var(--select-height);
|
|
616
|
+
right: unset;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
.uk-control-select.uk-control-small.uk-control-rtl .uk-select-clear {
|
|
620
|
+
left: var(--select-small-height);
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
.uk-control-select.uk-control-medium.uk-control-rtl .uk-select-clear {
|
|
624
|
+
left: var(--select-medium-height);
|
|
586
625
|
}
|
|
587
626
|
|
|
588
|
-
.uk-control-select.uk-control-rtl .uk-select-
|
|
627
|
+
.uk-control-select.uk-control-large.uk-control-rtl .uk-select-clear {
|
|
628
|
+
left: var(--select-large-height);
|
|
629
|
+
}
|
|
589
630
|
|
|
590
631
|
// Multiple overwrites
|
|
591
632
|
.uk-control-select.uk-control-rtl .uk-select-selection-item-remove {
|
|
@@ -606,7 +647,9 @@
|
|
|
606
647
|
// Vars
|
|
607
648
|
// ========================================================================
|
|
608
649
|
|
|
609
|
-
:root,
|
|
650
|
+
:root,
|
|
651
|
+
::after,
|
|
652
|
+
::before {
|
|
610
653
|
--select-border: var(--control-border);
|
|
611
654
|
--select-border-style: var(--control-border-style);
|
|
612
655
|
--select-border-width: var(--control-border-width);
|
|
@@ -2,6 +2,7 @@ import { type TextAreaProps as RcTextAreaProps, type TextAreaRef } from 'rc-text
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { type SizeType, type StateType } from '../../../components/Control/types';
|
|
4
4
|
import './index.scss';
|
|
5
|
+
import '../index.scss';
|
|
5
6
|
interface ShowCountProps {
|
|
6
7
|
formatter: (args: {
|
|
7
8
|
count: number;
|
|
@@ -5,6 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import { useConfig } from '../../../components/ConfigProvider';
|
|
6
6
|
import { fixControlledValue } from '../../../components/Control/Input';
|
|
7
7
|
import './index.scss';
|
|
8
|
+
import '../index.scss';
|
|
8
9
|
function fixEmojiLength(value, maxLength) {
|
|
9
10
|
return [...(value || '')].slice(0, maxLength).join('');
|
|
10
11
|
}
|
|
@@ -181,6 +181,7 @@
|
|
|
181
181
|
--dropdown-min-width: #{$dropdown-min-width};
|
|
182
182
|
--dropdown-padding: #{$dropdown-padding};
|
|
183
183
|
--dropdown-background: var(--global-muted-background);
|
|
184
|
+
--dropdown-border-radius: var(--global-border-radius);
|
|
184
185
|
--dropdown-color: var(--global-color);
|
|
185
186
|
--dropdown-margin: var(--global-small-margin);
|
|
186
187
|
--dropdown-nav-item-color: var(--global-muted-color);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type DialogProps } from 'rc-dialog';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { type Direction } from '../../types';
|
|
4
|
+
import './index.scss';
|
|
4
5
|
export interface ModalProps extends Omit<DialogProps, 'afterClose'> {
|
|
5
6
|
centered?: boolean;
|
|
6
7
|
direction?: Direction;
|
|
@@ -5,6 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import { Close } from '../../components/Close';
|
|
6
6
|
import { useConfig } from '../../components/ConfigProvider';
|
|
7
7
|
import { getMotionName } from '../../utils';
|
|
8
|
+
import './index.scss';
|
|
8
9
|
let mousePosition;
|
|
9
10
|
const getClickPosition = (event) => {
|
|
10
11
|
mousePosition = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function nextSlice(callback:
|
|
1
|
+
export declare function nextSlice(callback: VoidFunction): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type PolymorphicProps } from '../../components/Component';
|
|
3
3
|
import { type WidthBreakpointsConfig, type WidthSize } from '../../components/Width/types';
|
|
4
|
+
import './index.scss';
|
|
4
5
|
export interface WidthOwnProps extends WidthBreakpointsConfig {
|
|
5
6
|
prefixCls?: string;
|
|
6
7
|
size?: WidthSize;
|
|
@@ -3,6 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { Component } from '../../components/Component';
|
|
4
4
|
import { useConfig } from '../../components/ConfigProvider';
|
|
5
5
|
import { getWidthClassname } from '../../components/Width/utils';
|
|
6
|
+
import './index.scss';
|
|
6
7
|
const defaultElement = 'div';
|
|
7
8
|
export function Width(props) {
|
|
8
9
|
const config = useConfig();
|
|
@@ -708,6 +708,7 @@ $dropdown-z-index: $global-z-index
|
|
|
708
708
|
$dropdown-min-width: 200px !default;
|
|
709
709
|
$dropdown-padding: 15px !default;
|
|
710
710
|
$dropdown-background: $global-muted-background !default;
|
|
711
|
+
$dropdown-border-radius: $global-border-radius !default;
|
|
711
712
|
$dropdown-color: $global-color !default;
|
|
712
713
|
$dropdown-margin: $global-small-margin !default;
|
|
713
714
|
$dropdown-nav-item-color: $global-muted-color !default;
|