@broxus/react-uikit 0.6.5 → 0.6.7
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/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/variables.scss +1 -0
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +17 -13
|
@@ -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>>;
|
|
@@ -33,6 +33,7 @@ const React = __importStar(require("react"));
|
|
|
33
33
|
const ConfigProvider_1 = require("../../../components/ConfigProvider");
|
|
34
34
|
const useInput_1 = require("../../../components/Control/Input/useInput");
|
|
35
35
|
const Icon_1 = require("../../../components/Icon");
|
|
36
|
+
require("../index.scss");
|
|
36
37
|
exports.Input = React.forwardRef((props, ref) => {
|
|
37
38
|
const config = (0, ConfigProvider_1.useConfig)();
|
|
38
39
|
const { allowClear, inputRef, prefix, prefixCls = config.prefixCls, suffix, wrapperClasses, onClear, ...restProps } = (0, useInput_1.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>>;
|
|
@@ -34,6 +34,7 @@ const ConfigProvider_1 = require("../../../../components/ConfigProvider");
|
|
|
34
34
|
const useInput_1 = require("../../../../components/Control/Input/useInput");
|
|
35
35
|
const Icon_1 = require("../../../../components/Icon");
|
|
36
36
|
require("./index.scss");
|
|
37
|
+
require("../../index.scss");
|
|
37
38
|
/* eslint-disable jsx-a11y/label-has-associated-control */
|
|
38
39
|
exports.InputNumber = React.forwardRef((props, ref) => {
|
|
39
40
|
const config = (0, ConfigProvider_1.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>>;
|
|
@@ -30,6 +30,7 @@ const ConfigProvider_1 = require("../../../../components/ConfigProvider");
|
|
|
30
30
|
const Input_1 = require("../../../../components/Control/Input/Input");
|
|
31
31
|
const Icon_1 = require("../../../../components/Icon");
|
|
32
32
|
require("./index.scss");
|
|
33
|
+
require("../../index.scss");
|
|
33
34
|
exports.Password = React.forwardRef((props, ref) => {
|
|
34
35
|
const config = (0, ConfigProvider_1.useConfig)();
|
|
35
36
|
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,5 +4,6 @@ exports.Radio = void 0;
|
|
|
4
4
|
const Group_1 = require("../../../components/Control/Radio/Group");
|
|
5
5
|
const Radio_1 = require("../../../components/Control/Radio/Radio");
|
|
6
6
|
require("./index.scss");
|
|
7
|
+
require("../index.scss");
|
|
7
8
|
exports.Radio = Radio_1.Radio;
|
|
8
9
|
exports.Radio.Group = Group_1.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';
|
|
@@ -34,6 +34,7 @@ const ConfigProvider_1 = require("../../../components/ConfigProvider");
|
|
|
34
34
|
const Icon_1 = require("../../../components/Icon");
|
|
35
35
|
const Spinner_1 = require("../../../components/Spinner");
|
|
36
36
|
require("./index.scss");
|
|
37
|
+
require("../index.scss");
|
|
37
38
|
const SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
|
|
38
39
|
/* eslint-disable jsx-a11y/label-has-associated-control */
|
|
39
40
|
function InternalSelect(props, ref) {
|
|
@@ -112,20 +113,22 @@ function InternalSelect(props, ref) {
|
|
|
112
113
|
]);
|
|
113
114
|
const inputProps = React.useMemo(() => {
|
|
114
115
|
// Arrow or loading icon
|
|
115
|
-
let
|
|
116
|
+
let suffixIcon;
|
|
116
117
|
if (restProps.loading) {
|
|
117
|
-
|
|
118
|
+
suffixIcon = React.createElement(Spinner_1.Spinner, { key: "spinner", ratio: 0.9 });
|
|
118
119
|
}
|
|
119
120
|
else if (showArrow) {
|
|
120
121
|
const isMultiple = mode === 'multiple' || mode === 'tags';
|
|
121
122
|
if (isMultiple) {
|
|
122
|
-
|
|
123
|
+
suffixIcon = React.createElement(Icon_1.Icon, { key: "add_box", icon: "add_box", onClick: onClickIcon });
|
|
123
124
|
}
|
|
124
125
|
else if (showSearch && internalOpen) {
|
|
125
|
-
|
|
126
|
+
suffixIcon = React.createElement(Icon_1.Icon, { key: "manage_search", icon: "manage_search" });
|
|
126
127
|
}
|
|
127
128
|
else {
|
|
128
|
-
|
|
129
|
+
suffixIcon = internalOpen
|
|
130
|
+
? React.createElement(Icon_1.Icon, { key: "expand_less", icon: "expand_less" })
|
|
131
|
+
: React.createElement(Icon_1.Icon, { key: "expand_more", icon: "expand_more", onClick: onClickIcon });
|
|
129
132
|
}
|
|
130
133
|
}
|
|
131
134
|
// Not found content
|
|
@@ -136,21 +139,19 @@ function InternalSelect(props, ref) {
|
|
|
136
139
|
else if (mode === 'combobox') {
|
|
137
140
|
mergedNotFound = null;
|
|
138
141
|
}
|
|
139
|
-
else {
|
|
140
|
-
// mergedNotFound = renderEmpty('Select')
|
|
141
|
-
}
|
|
142
142
|
return {
|
|
143
|
-
|
|
143
|
+
allowClear: {
|
|
144
|
+
clearIcon: React.createElement(Icon_1.Icon, { icon: "clear" }),
|
|
145
|
+
},
|
|
144
146
|
dropdownMatchSelectWidth: true,
|
|
145
|
-
inputIcon,
|
|
146
147
|
listHeight,
|
|
147
148
|
listItemHeight,
|
|
148
149
|
menuItemSelectedIcon: React.createElement(Icon_1.Icon, { icon: "check" }),
|
|
149
150
|
open: internalOpen,
|
|
150
151
|
prefixCls: rootCls,
|
|
151
152
|
removeIcon: React.createElement(Icon_1.Icon, { icon: "clear" }),
|
|
152
|
-
showArrow,
|
|
153
153
|
showSearch,
|
|
154
|
+
suffixIcon,
|
|
154
155
|
transitionName: `${prefixCls || config.prefixCls}-motion-slide-bottom-small`,
|
|
155
156
|
...restProps,
|
|
156
157
|
dropdownClassName: (0, classnames_1.default)(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;
|
|
@@ -34,6 +34,7 @@ const React = __importStar(require("react"));
|
|
|
34
34
|
const ConfigProvider_1 = require("../../../components/ConfigProvider");
|
|
35
35
|
const Input_1 = require("../../../components/Control/Input");
|
|
36
36
|
require("./index.scss");
|
|
37
|
+
require("../index.scss");
|
|
37
38
|
function fixEmojiLength(value, maxLength) {
|
|
38
39
|
return [...(value || '')].slice(0, maxLength).join('');
|
|
39
40
|
}
|
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
require("./index.scss");
|
|
18
17
|
__exportStar(require("../../components/Control/Checkbox"), exports);
|
|
19
18
|
__exportStar(require("../../components/Control/Input"), exports);
|
|
20
19
|
__exportStar(require("../../components/Control/Radio"), exports);
|
|
@@ -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;
|
|
@@ -34,6 +34,7 @@ const React = __importStar(require("react"));
|
|
|
34
34
|
const Close_1 = require("../../components/Close");
|
|
35
35
|
const ConfigProvider_1 = require("../../components/ConfigProvider");
|
|
36
36
|
const utils_1 = require("../../utils");
|
|
37
|
+
require("./index.scss");
|
|
37
38
|
let mousePosition;
|
|
38
39
|
const getClickPosition = (event) => {
|
|
39
40
|
mousePosition = {
|
|
@@ -14,5 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
require("./index.scss");
|
|
18
17
|
__exportStar(require("../../components/Modal/Modal"), exports);
|
|
@@ -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;
|
|
@@ -32,6 +32,7 @@ const React = __importStar(require("react"));
|
|
|
32
32
|
const Component_1 = require("../../components/Component");
|
|
33
33
|
const ConfigProvider_1 = require("../../components/ConfigProvider");
|
|
34
34
|
const utils_1 = require("../../components/Width/utils");
|
|
35
|
+
require("./index.scss");
|
|
35
36
|
const defaultElement = 'div';
|
|
36
37
|
function Width(props) {
|
|
37
38
|
const config = (0, ConfigProvider_1.useConfig)();
|
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
require("./index.scss");
|
|
18
17
|
__exportStar(require("../../components/Width/Width"), exports);
|
|
19
18
|
__exportStar(require("../../components/Width/types"), exports);
|
|
20
19
|
__exportStar(require("../../components/Width/utils"), exports);
|
|
@@ -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;
|