nntc-ui 0.0.55 → 0.0.56
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/README.md +0 -16
- package/index.css +126 -0
- package/index.d.ts +94 -81
- package/index.js +162 -56
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
# Статус деплоя на стендах
|
|
2
|
-
|
|
3
|
-
| Стенд | Статус |
|
|
4
|
-
|-------|--------|
|
|
5
|
-
| iifa-dev | [](https://argocd.np.nntc.pro/applications/argocd/iifa-dev-nntc-ui-kit?view=tree&resource=&node=apps%2FDeployment%2Fiifa-dev%2Fnntc-ui-kit%2F0&tab=logs) |
|
|
6
|
-
| iifa-test | [](https://argocd.np.nntc.pro/applications/argocd/iifa-test-nntc-ui-kit?view=tree&resource=&node=apps%2FDeployment%2Fiifa-test%2Fnntc-ui-kit%2F0&tab=logs) |
|
|
7
|
-
| geonova-test | [](https://argocd.np.nntc.pro/applications/argocd/geonova-test-nntc-ui-kit?view=tree&resource=&node=apps%2FDeployment%2Fgeonova-test%2Fnntc-ui-kit%2F0&tab=logs) |
|
|
8
|
-
| iifa-demo | [](https://argocd.pp.nntc.pro/applications/argocd/iifa-demo-nntc-ui-kit?view=tree&resource=&node=apps%2FDeployment%2Fiifa-demo%2Fnntc-ui-kit%2F0&tab=logs) |
|
|
9
|
-
| ars-demo | [](https://argocd.pp.nntc.pro/applications/argocd/ars-demo-nntc-ui-kit?view=tree&resource=&node=apps%2FDeployment%ars-demo%2Fnntc-ui-kit%2F0&tab=logs) |
|
|
10
|
-
| geonova-demo | [](https://argocd.pp.nntc.pro/applications/argocd/geonova-demo-nntc-ui-kit?view=tree&resource=&node=apps%2FDeployment%2Fgeonova-demo%2Fnntc-ui-kit%2F0&tab=logs) |
|
|
11
|
-
| dflow-demo | [](https://argocd.pp.nntc.pro/applications/argocd/dflow-demo-nntc-ui-kit?view=tree&resource=&node=apps%2FDeployment%2Fdflow-demo%2Fnntc-ui-kit%2F0&tab=logs) |
|
|
12
|
-
| internal-dev | [](https://argocd.np.nntc.pro/applications/argocd/internal-dev-nntc-ui-kit?view=tree&resource=&node=apps%2FDeployment%2Finternal-dev%2Fnntc-ui-kit%2F0&tab=logs) |
|
|
13
|
-
| internal-prod | [](https://argocd.pp.nntc.pro/applications/argocd/internal-prod-nntc-ui-kit?view=tree&resource=&node=apps%2FDeployment%2Finternal-prod%2Fnntc-ui-kit%2F0&tab=logs) |
|
|
14
|
-
|
|
15
|
-
Для перехода к логам нажмите на иконку в колонке статуса
|
|
16
|
-
|
|
17
1
|
# NNTC UI Kit
|
|
18
2
|
|
|
19
3
|
React компонентная библиотека для создания пользовательских интерфейсов.
|
package/index.css
CHANGED
|
@@ -1976,3 +1976,129 @@
|
|
|
1976
1976
|
gap: 8px;
|
|
1977
1977
|
align-items: center;
|
|
1978
1978
|
}
|
|
1979
|
+
|
|
1980
|
+
/* src/components/view/Chip/chip.module.css */
|
|
1981
|
+
.chip_root {
|
|
1982
|
+
padding: 0;
|
|
1983
|
+
overflow: hidden;
|
|
1984
|
+
font-size: var(--text-button-size);
|
|
1985
|
+
font-weight: var(--text-button-weight);
|
|
1986
|
+
line-height: var(--text-button-height);
|
|
1987
|
+
letter-spacing: var(--text-button-letter);
|
|
1988
|
+
-webkit-user-select: none;
|
|
1989
|
+
user-select: none;
|
|
1990
|
+
border-radius: 9999px;
|
|
1991
|
+
outline: none;
|
|
1992
|
+
}
|
|
1993
|
+
.chip_stateLayer {
|
|
1994
|
+
display: inline-flex;
|
|
1995
|
+
flex-direction: row;
|
|
1996
|
+
gap: 8px;
|
|
1997
|
+
align-items: center;
|
|
1998
|
+
justify-content: center;
|
|
1999
|
+
width: 100%;
|
|
2000
|
+
background-color: transparent;
|
|
2001
|
+
}
|
|
2002
|
+
.chip_root:hover > .chip_stateLayer {
|
|
2003
|
+
background-color: var(--theme-overlay-8);
|
|
2004
|
+
}
|
|
2005
|
+
.chip_root:focus > .chip_stateLayer {
|
|
2006
|
+
background-color: var(--theme-overlay-12);
|
|
2007
|
+
}
|
|
2008
|
+
.chip_root:active > .chip_stateLayer,
|
|
2009
|
+
.chip_root.chip_active > .chip_stateLayer {
|
|
2010
|
+
background-color: var(--theme-overlay-12);
|
|
2011
|
+
}
|
|
2012
|
+
.chip_filled {
|
|
2013
|
+
color: var(--theme-text-button-invert);
|
|
2014
|
+
background-color: var(--theme-focus);
|
|
2015
|
+
}
|
|
2016
|
+
.chip_outlined {
|
|
2017
|
+
color: var(--theme-focus);
|
|
2018
|
+
background-color: transparent;
|
|
2019
|
+
outline: 1px solid var(--theme-grey-500);
|
|
2020
|
+
}
|
|
2021
|
+
.chip_outlined:focus {
|
|
2022
|
+
outline-color: var(--theme-focus);
|
|
2023
|
+
}
|
|
2024
|
+
.chip_filled.chip_secondary {
|
|
2025
|
+
color: var(--theme-text-button-primary);
|
|
2026
|
+
background-color: var(--theme-overlay-12);
|
|
2027
|
+
}
|
|
2028
|
+
.chip_outlined.chip_secondary {
|
|
2029
|
+
color: var(--theme-text-secondary);
|
|
2030
|
+
}
|
|
2031
|
+
.chip_clickable {
|
|
2032
|
+
cursor: pointer;
|
|
2033
|
+
}
|
|
2034
|
+
.chip_medium,
|
|
2035
|
+
.chip_medium > .chip_stateLayer {
|
|
2036
|
+
height: 40px;
|
|
2037
|
+
}
|
|
2038
|
+
.chip_small,
|
|
2039
|
+
.chip_small > .chip_stateLayer {
|
|
2040
|
+
height: 32px;
|
|
2041
|
+
}
|
|
2042
|
+
.chip_medium > .chip_stateLayer {
|
|
2043
|
+
padding: 0 16px;
|
|
2044
|
+
}
|
|
2045
|
+
.chip_small > .chip_stateLayer {
|
|
2046
|
+
padding: 0 12px;
|
|
2047
|
+
}
|
|
2048
|
+
.chip_medium.chip_withIcon > .chip_stateLayer {
|
|
2049
|
+
padding: 0 4px 0 16px;
|
|
2050
|
+
}
|
|
2051
|
+
.chip_small.chip_withIcon > .chip_stateLayer {
|
|
2052
|
+
padding: 0 4px 0 12px;
|
|
2053
|
+
}
|
|
2054
|
+
.chip_medium.chip_withIcon.chip_iconLeft > .chip_stateLayer {
|
|
2055
|
+
padding: 0 16px 0 4px;
|
|
2056
|
+
}
|
|
2057
|
+
.chip_small.chip_withIcon.chip_iconLeft > .chip_stateLayer {
|
|
2058
|
+
padding: 0 12px 0 4px;
|
|
2059
|
+
}
|
|
2060
|
+
.chip_icon {
|
|
2061
|
+
display: inline-flex;
|
|
2062
|
+
flex-shrink: 0;
|
|
2063
|
+
align-items: center;
|
|
2064
|
+
justify-content: center;
|
|
2065
|
+
padding: 0;
|
|
2066
|
+
margin: 0;
|
|
2067
|
+
color: inherit;
|
|
2068
|
+
background: none;
|
|
2069
|
+
border: none;
|
|
2070
|
+
border-radius: 50%;
|
|
2071
|
+
outline: none;
|
|
2072
|
+
transition: background-color 0.2s;
|
|
2073
|
+
}
|
|
2074
|
+
.chip_icon.chip_iconClickable {
|
|
2075
|
+
cursor: pointer;
|
|
2076
|
+
}
|
|
2077
|
+
.chip_medium .chip_icon {
|
|
2078
|
+
width: 32px;
|
|
2079
|
+
height: 32px;
|
|
2080
|
+
}
|
|
2081
|
+
.chip_small .chip_icon {
|
|
2082
|
+
width: 24px;
|
|
2083
|
+
height: 24px;
|
|
2084
|
+
}
|
|
2085
|
+
.chip_icon.chip_iconClickable:hover {
|
|
2086
|
+
background-color: var(--theme-overlay-8);
|
|
2087
|
+
}
|
|
2088
|
+
.chip_icon.chip_iconClickable:focus {
|
|
2089
|
+
background-color: var(--theme-overlay-12);
|
|
2090
|
+
}
|
|
2091
|
+
.chip_icon.chip_iconClickable:active {
|
|
2092
|
+
background-color: var(--theme-overlay-12);
|
|
2093
|
+
}
|
|
2094
|
+
.chip_label {
|
|
2095
|
+
display: inline-flex;
|
|
2096
|
+
align-items: center;
|
|
2097
|
+
white-space: nowrap;
|
|
2098
|
+
}
|
|
2099
|
+
.chip_iconLeft .chip_icon {
|
|
2100
|
+
order: -1;
|
|
2101
|
+
}
|
|
2102
|
+
.chip_iconRight .chip_icon {
|
|
2103
|
+
order: 1;
|
|
2104
|
+
}
|
package/index.d.ts
CHANGED
|
@@ -10,26 +10,26 @@ type UiProps<P = unknown> = P & {
|
|
|
10
10
|
classes?: PropsObject;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
type Variant$
|
|
14
|
-
type Size$
|
|
15
|
-
interface Props$
|
|
16
|
-
variant?: Variant$
|
|
17
|
-
size?: Size$
|
|
13
|
+
type Variant$8 = 'filled' | 'outlined' | 'text' | 'elevated' | 'tonal' | 'link';
|
|
14
|
+
type Size$c = 'medium' | 'small';
|
|
15
|
+
interface Props$n {
|
|
16
|
+
variant?: Variant$8;
|
|
17
|
+
size?: Size$c;
|
|
18
18
|
icon?: ReactNode;
|
|
19
19
|
textSecondary?: boolean;
|
|
20
20
|
isActive?: boolean;
|
|
21
21
|
}
|
|
22
|
-
declare const Button: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & ButtonHTMLAttributes<HTMLButtonElement> & Props$
|
|
22
|
+
declare const Button: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & ButtonHTMLAttributes<HTMLButtonElement> & Props$n & {
|
|
23
23
|
classes?: PropsObject;
|
|
24
24
|
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
25
25
|
|
|
26
|
-
type Size$
|
|
27
|
-
interface Props$
|
|
26
|
+
type Size$b = 'medium' | 'large';
|
|
27
|
+
interface Props$m {
|
|
28
28
|
label?: string;
|
|
29
|
-
componentSize?: Size$
|
|
29
|
+
componentSize?: Size$b;
|
|
30
30
|
several?: boolean;
|
|
31
31
|
}
|
|
32
|
-
declare function Checkbox(props: UiProps<Props$
|
|
32
|
+
declare function Checkbox(props: UiProps<Props$m> & DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>): react_jsx_runtime.JSX.Element;
|
|
33
33
|
|
|
34
34
|
interface Divider$1 {
|
|
35
35
|
type: 'divider';
|
|
@@ -49,11 +49,11 @@ interface Item$5 {
|
|
|
49
49
|
}
|
|
50
50
|
type MaybeItem = Maybe<Item$5>;
|
|
51
51
|
|
|
52
|
-
type Variant$
|
|
53
|
-
type Size$
|
|
54
|
-
interface Props$
|
|
55
|
-
variant?: Variant$
|
|
56
|
-
componentSize?: Size$
|
|
52
|
+
type Variant$7 = 'filled' | 'outlined';
|
|
53
|
+
type Size$a = 'medium' | 'small';
|
|
54
|
+
interface Props$l {
|
|
55
|
+
variant?: Variant$7;
|
|
56
|
+
componentSize?: Size$a;
|
|
57
57
|
icon?: ReactNode;
|
|
58
58
|
fullWidth?: boolean;
|
|
59
59
|
label?: string;
|
|
@@ -62,13 +62,13 @@ interface Props$k {
|
|
|
62
62
|
onValueChange?: (newItem: MaybeItem) => void;
|
|
63
63
|
selected?: MaybeItem;
|
|
64
64
|
}
|
|
65
|
-
declare function Select(props: UiProps<Props$
|
|
65
|
+
declare function Select(props: UiProps<Props$l> & DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>): react_jsx_runtime.JSX.Element;
|
|
66
66
|
|
|
67
|
-
type Variant$
|
|
68
|
-
type Size$
|
|
69
|
-
interface Props$
|
|
70
|
-
variant?: Variant$
|
|
71
|
-
componentSize?: Size$
|
|
67
|
+
type Variant$6 = 'filled' | 'outlined';
|
|
68
|
+
type Size$9 = 'medium' | 'small';
|
|
69
|
+
interface Props$k {
|
|
70
|
+
variant?: Variant$6;
|
|
71
|
+
componentSize?: Size$9;
|
|
72
72
|
fullWidth?: boolean;
|
|
73
73
|
placeholder?: string;
|
|
74
74
|
values?: (string | undefined)[];
|
|
@@ -76,7 +76,18 @@ interface Props$j {
|
|
|
76
76
|
onClear?: () => void;
|
|
77
77
|
onValueChange?: (values: (string | undefined)[]) => void;
|
|
78
78
|
}
|
|
79
|
-
declare function DateTime(props: UiProps<Props$
|
|
79
|
+
declare function DateTime(props: UiProps<Props$k> & DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>): react_jsx_runtime.JSX.Element;
|
|
80
|
+
|
|
81
|
+
type Variant$5 = 'outlined';
|
|
82
|
+
type Size$8 = 'medium' | 'small';
|
|
83
|
+
interface Props$j {
|
|
84
|
+
variant?: Variant$5;
|
|
85
|
+
componentSize?: Size$8;
|
|
86
|
+
fullWidth?: boolean;
|
|
87
|
+
label?: string;
|
|
88
|
+
onValueChange?: (newValue: string) => void;
|
|
89
|
+
}
|
|
90
|
+
declare const ColorPicker: (props: UiProps<Props$j> & DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>) => react_jsx_runtime.JSX.Element;
|
|
80
91
|
|
|
81
92
|
type Variant$4 = 'outlined';
|
|
82
93
|
type Size$7 = 'medium' | 'small';
|
|
@@ -85,35 +96,24 @@ interface Props$i {
|
|
|
85
96
|
componentSize?: Size$7;
|
|
86
97
|
fullWidth?: boolean;
|
|
87
98
|
label?: string;
|
|
88
|
-
onValueChange?: (newValue: string) => void;
|
|
89
99
|
}
|
|
90
|
-
declare const
|
|
100
|
+
declare const Input: (props: UiProps<Props$i> & DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>) => react_jsx_runtime.JSX.Element;
|
|
91
101
|
|
|
92
|
-
type Variant$3 = 'outlined';
|
|
102
|
+
type Variant$3 = 'filled' | 'outlined';
|
|
93
103
|
type Size$6 = 'medium' | 'small';
|
|
94
104
|
interface Props$h {
|
|
95
105
|
variant?: Variant$3;
|
|
96
106
|
componentSize?: Size$6;
|
|
107
|
+
disableIcon?: boolean;
|
|
97
108
|
fullWidth?: boolean;
|
|
98
|
-
label?: string;
|
|
99
109
|
}
|
|
100
|
-
declare
|
|
110
|
+
declare function SearchInput(props: UiProps<Props$h> & DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>): react_jsx_runtime.JSX.Element;
|
|
101
111
|
|
|
102
|
-
type Variant$2 = 'filled' | 'outlined';
|
|
103
112
|
type Size$5 = 'medium' | 'small';
|
|
104
113
|
interface Props$g {
|
|
105
|
-
variant?: Variant$2;
|
|
106
114
|
componentSize?: Size$5;
|
|
107
|
-
disableIcon?: boolean;
|
|
108
|
-
fullWidth?: boolean;
|
|
109
|
-
}
|
|
110
|
-
declare function SearchInput(props: UiProps<Props$g> & DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>): react_jsx_runtime.JSX.Element;
|
|
111
|
-
|
|
112
|
-
type Size$4 = 'medium' | 'small';
|
|
113
|
-
interface Props$f {
|
|
114
|
-
componentSize?: Size$4;
|
|
115
115
|
}
|
|
116
|
-
declare const WrapForLabel: (props: UiProps<PropsWithChildren<Props$
|
|
116
|
+
declare const WrapForLabel: (props: UiProps<PropsWithChildren<Props$g>>) => react_jsx_runtime.JSX.Element;
|
|
117
117
|
|
|
118
118
|
interface Item$4 {
|
|
119
119
|
name: string;
|
|
@@ -125,11 +125,11 @@ interface Item$4 {
|
|
|
125
125
|
|
|
126
126
|
type TitleVariant = 'allValue' | 'numberValue' | 'firstValue';
|
|
127
127
|
|
|
128
|
-
type Variant$
|
|
129
|
-
type Size$
|
|
130
|
-
interface Props$
|
|
131
|
-
variant?: Variant$
|
|
132
|
-
componentSize?: Size$
|
|
128
|
+
type Variant$2 = 'filled' | 'outlined';
|
|
129
|
+
type Size$4 = 'medium' | 'small';
|
|
130
|
+
interface Props$f {
|
|
131
|
+
variant?: Variant$2;
|
|
132
|
+
componentSize?: Size$4;
|
|
133
133
|
icon?: ReactNode;
|
|
134
134
|
fullWidth?: boolean;
|
|
135
135
|
label?: string;
|
|
@@ -141,7 +141,7 @@ interface Props$e {
|
|
|
141
141
|
enableSearch?: boolean;
|
|
142
142
|
popoverInComponent?: boolean;
|
|
143
143
|
}
|
|
144
|
-
declare function MultiSelect(props: UiProps<Props$
|
|
144
|
+
declare function MultiSelect(props: UiProps<Props$f> & DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>): react_jsx_runtime.JSX.Element;
|
|
145
145
|
|
|
146
146
|
interface Item$3 {
|
|
147
147
|
name: string;
|
|
@@ -152,7 +152,7 @@ interface SelectedItems {
|
|
|
152
152
|
[keys: string]: boolean;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
interface Props$
|
|
155
|
+
interface Props$e {
|
|
156
156
|
items: Item$3[];
|
|
157
157
|
selected: SelectedItems;
|
|
158
158
|
disableSearch?: boolean;
|
|
@@ -160,22 +160,22 @@ interface Props$d {
|
|
|
160
160
|
actionWithSelected: (value: SelectedItems) => void;
|
|
161
161
|
onChangeItem?: (item: Item$3) => void;
|
|
162
162
|
}
|
|
163
|
-
declare function Checklist(props: UiProps<Props$
|
|
163
|
+
declare function Checklist(props: UiProps<Props$e>): react_jsx_runtime.JSX.Element;
|
|
164
164
|
|
|
165
|
-
interface Props$
|
|
165
|
+
interface Props$d {
|
|
166
166
|
fillEvenly?: boolean;
|
|
167
167
|
}
|
|
168
|
-
declare const ButtonsGroup: (props: PropsWithChildren<UiProps<Props$
|
|
168
|
+
declare const ButtonsGroup: (props: PropsWithChildren<UiProps<Props$d>>) => react_jsx_runtime.JSX.Element;
|
|
169
169
|
|
|
170
|
-
interface Props$
|
|
170
|
+
interface Props$c {
|
|
171
171
|
type?: 'primary' | 'panel' | 'modal';
|
|
172
172
|
}
|
|
173
|
-
declare function Surface(props: PropsWithChildren<UiProps<Props$
|
|
173
|
+
declare function Surface(props: PropsWithChildren<UiProps<Props$c>>): react_jsx_runtime.JSX.Element;
|
|
174
174
|
|
|
175
|
-
interface Props$
|
|
175
|
+
interface Props$b {
|
|
176
176
|
withoutHeader?: boolean;
|
|
177
177
|
}
|
|
178
|
-
declare function Layout(props: PropsWithChildren<UiProps<Props$
|
|
178
|
+
declare function Layout(props: PropsWithChildren<UiProps<Props$b>>): react_jsx_runtime.JSX.Element;
|
|
179
179
|
|
|
180
180
|
interface Divider {
|
|
181
181
|
type: 'divider';
|
|
@@ -200,12 +200,12 @@ interface Item$2 {
|
|
|
200
200
|
disabled?: boolean;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
type Size$
|
|
204
|
-
interface Props$
|
|
203
|
+
type Size$3 = 'medium' | 'small';
|
|
204
|
+
interface Props$a {
|
|
205
205
|
items: (Item$2 | Divider)[];
|
|
206
|
-
size?: Size$
|
|
206
|
+
size?: Size$3;
|
|
207
207
|
}
|
|
208
|
-
declare function Menu(props: UiProps<Props$
|
|
208
|
+
declare function Menu(props: UiProps<Props$a>): react_jsx_runtime.JSX.Element;
|
|
209
209
|
|
|
210
210
|
interface Item$1<T> {
|
|
211
211
|
name?: string;
|
|
@@ -215,12 +215,12 @@ interface Item$1<T> {
|
|
|
215
215
|
isDisabled?: boolean;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
type Size$
|
|
219
|
-
interface Props$
|
|
218
|
+
type Size$2 = 'medium' | 'small';
|
|
219
|
+
interface Props$9<T> {
|
|
220
220
|
items: Item$1<T>[];
|
|
221
221
|
defaultSelected?: T;
|
|
222
222
|
onChange?: (newValue: T) => void;
|
|
223
|
-
size?: Size$
|
|
223
|
+
size?: Size$2;
|
|
224
224
|
filled?: boolean;
|
|
225
225
|
isVertical?: boolean;
|
|
226
226
|
disableBorder?: boolean;
|
|
@@ -236,7 +236,7 @@ interface Props$8<T> {
|
|
|
236
236
|
/**
|
|
237
237
|
* Компонент вкладок с поддержкой как внутреннего, так и внешнего состояния
|
|
238
238
|
* */
|
|
239
|
-
declare function Tabs<T>(props: UiProps<Props$
|
|
239
|
+
declare function Tabs<T>(props: UiProps<Props$9<T>>): react_jsx_runtime.JSX.Element;
|
|
240
240
|
|
|
241
241
|
interface TableCell {
|
|
242
242
|
value?: string | number;
|
|
@@ -299,9 +299,9 @@ interface TableColumn {
|
|
|
299
299
|
toFixed?: number;
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
-
type Size = 'medium' | 'small';
|
|
302
|
+
type Size$1 = 'medium' | 'small';
|
|
303
303
|
type Borders = 'all' | 'horizontal' | 'vertical' | 'none';
|
|
304
|
-
interface Props$
|
|
304
|
+
interface Props$8 {
|
|
305
305
|
rows: TableRow[];
|
|
306
306
|
columns: TableColumn[];
|
|
307
307
|
additionalColumnsViews?: (id: string, value: string | number | undefined, payload: {
|
|
@@ -321,7 +321,7 @@ interface Props$7 {
|
|
|
321
321
|
height?: number;
|
|
322
322
|
scrollToBottom?: boolean;
|
|
323
323
|
useTableContainerAsRootForPopup?: boolean;
|
|
324
|
-
size?: Size;
|
|
324
|
+
size?: Size$1;
|
|
325
325
|
borders?: Borders;
|
|
326
326
|
showUniqueValuesCount?: boolean;
|
|
327
327
|
globalFilters?: FilterBy[];
|
|
@@ -330,7 +330,7 @@ interface Props$7 {
|
|
|
330
330
|
onSortsChange?: (sorts: SortBy[]) => void;
|
|
331
331
|
additionalHeaderContent?: (headerName: string) => ReactNode;
|
|
332
332
|
}
|
|
333
|
-
declare function VirtualTable(props: UiProps<Props$
|
|
333
|
+
declare function VirtualTable(props: UiProps<Props$8>): react_jsx_runtime.JSX.Element;
|
|
334
334
|
|
|
335
335
|
interface Item {
|
|
336
336
|
id: string;
|
|
@@ -340,16 +340,16 @@ interface Item {
|
|
|
340
340
|
children?: Item[];
|
|
341
341
|
}
|
|
342
342
|
|
|
343
|
-
interface Props$
|
|
343
|
+
interface Props$7 {
|
|
344
344
|
data: Item[];
|
|
345
345
|
selected: string[];
|
|
346
346
|
startIcons?: Record<string, JSX.Element>;
|
|
347
347
|
withSearch?: boolean;
|
|
348
348
|
onSelect?: (id: string) => void;
|
|
349
349
|
}
|
|
350
|
-
declare const _default: React.NamedExoticComponent<Props$
|
|
350
|
+
declare const _default: React.NamedExoticComponent<Props$7>;
|
|
351
351
|
|
|
352
|
-
interface Props$
|
|
352
|
+
interface Props$6 {
|
|
353
353
|
label?: ReactNode | string;
|
|
354
354
|
clickable?: boolean;
|
|
355
355
|
initialOpen?: boolean;
|
|
@@ -359,9 +359,9 @@ interface Props$5 {
|
|
|
359
359
|
alertType?: 'success' | 'warning' | 'error' | 'info' | 'default';
|
|
360
360
|
root?: HTMLElement | MutableRefObject<HTMLElement | null> | null;
|
|
361
361
|
}
|
|
362
|
-
declare function Tooltip(props: PropsWithChildren<UiProps<Props$
|
|
362
|
+
declare function Tooltip(props: PropsWithChildren<UiProps<Props$6>>): string | number | boolean | Iterable<ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
363
363
|
|
|
364
|
-
interface Props$
|
|
364
|
+
interface Props$5 {
|
|
365
365
|
description?: ReactNode | string;
|
|
366
366
|
clickable?: boolean;
|
|
367
367
|
initialOpen?: boolean;
|
|
@@ -373,43 +373,56 @@ interface Props$4 {
|
|
|
373
373
|
onOpenChange?: (open: boolean) => void;
|
|
374
374
|
contentStyle?: CSSProperties;
|
|
375
375
|
}
|
|
376
|
-
declare function Popover(props: PropsWithChildren<UiProps<Props$
|
|
376
|
+
declare function Popover(props: PropsWithChildren<UiProps<Props$5>>): string | number | true | Iterable<ReactNode> | react_jsx_runtime.JSX.Element | null;
|
|
377
377
|
|
|
378
378
|
type Pair = {
|
|
379
379
|
label: string;
|
|
380
380
|
value: string | number;
|
|
381
381
|
} | null;
|
|
382
382
|
|
|
383
|
-
interface Props$
|
|
383
|
+
interface Props$4 {
|
|
384
384
|
pairs: Pair[];
|
|
385
385
|
column1Width?: string;
|
|
386
386
|
column2Width?: string;
|
|
387
387
|
showBorder?: boolean;
|
|
388
388
|
minRowHeight?: string;
|
|
389
389
|
}
|
|
390
|
-
declare function Pairs(props: UiProps<Props$
|
|
390
|
+
declare function Pairs(props: UiProps<Props$4>): react_jsx_runtime.JSX.Element;
|
|
391
391
|
|
|
392
|
-
interface Props$
|
|
392
|
+
interface Props$3 {
|
|
393
393
|
surfaceType?: 'primary' | 'panel' | 'modal';
|
|
394
394
|
title?: ReactNode;
|
|
395
395
|
actions?: ReactNode;
|
|
396
396
|
}
|
|
397
|
-
declare function Card(props: PropsWithChildren<UiProps<Props$
|
|
397
|
+
declare function Card(props: PropsWithChildren<UiProps<Props$3>>): react_jsx_runtime.JSX.Element;
|
|
398
398
|
|
|
399
|
-
type Variant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'h7' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'button' | 'caption' | 'overline';
|
|
400
|
-
interface Props$
|
|
401
|
-
variant?: Variant;
|
|
399
|
+
type Variant$1 = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'h7' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'button' | 'caption' | 'overline';
|
|
400
|
+
interface Props$2 {
|
|
401
|
+
variant?: Variant$1;
|
|
402
402
|
component?: ElementType;
|
|
403
403
|
}
|
|
404
|
-
declare const Typography: React.ForwardRefExoticComponent<Omit<HTMLProps<HTMLParagraphElement> & Props$
|
|
404
|
+
declare const Typography: React.ForwardRefExoticComponent<Omit<HTMLProps<HTMLParagraphElement> & Props$2, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
405
405
|
|
|
406
|
-
interface Props {
|
|
406
|
+
interface Props$1 {
|
|
407
407
|
open: boolean;
|
|
408
408
|
onClose?: () => void;
|
|
409
409
|
root?: HTMLElement | MutableRefObject<HTMLElement | null> | null;
|
|
410
410
|
}
|
|
411
|
-
declare const Modal: React.ForwardRefExoticComponent<Omit<PropsWithChildren<Props & {
|
|
411
|
+
declare const Modal: React.ForwardRefExoticComponent<Omit<PropsWithChildren<Props$1 & {
|
|
412
412
|
classes?: PropsObject;
|
|
413
413
|
} & HTMLProps<HTMLDivElement>>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
414
414
|
|
|
415
|
-
|
|
415
|
+
type Variant = 'filled' | 'outlined';
|
|
416
|
+
type Size = 'medium' | 'small';
|
|
417
|
+
interface Props {
|
|
418
|
+
variant?: Variant;
|
|
419
|
+
size?: Size;
|
|
420
|
+
icon?: ReactNode;
|
|
421
|
+
iconPlacement?: 'left' | 'right';
|
|
422
|
+
secondary?: boolean;
|
|
423
|
+
onClick?: () => void;
|
|
424
|
+
onIconClick?: () => void;
|
|
425
|
+
}
|
|
426
|
+
declare const Chip: (props: PropsWithChildren<UiProps<Props>>) => react_jsx_runtime.JSX.Element;
|
|
427
|
+
|
|
428
|
+
export { type AdditionalButton, Button, ButtonsGroup, Card, Checkbox, Checklist, type Item$3 as ChecklistItem, type SelectedItems as ChecklistSelectedItems, Chip, ColorPicker, type ColumnAlign, DateTime, type FilterBy, Input, Layout, Menu, type Divider as MenuDivider, type Item$2 as MenuItem, Modal, MultiSelect, type Item$4 as MultiSelectItem, type TitleVariant as MultiSelectTitleVariant, type Pair, Pairs, Popover, SearchInput, Select, type Divider$1 as SelectDivider, type Item$5 as SelectItem, type SortBy, type SortType, Surface, type TableCell, type TableColumn, type TableRow, Tabs, type Item$1 as TabsItem, Tooltip, _default as TreeView, type Item as TreeViewItem, Typography, type VerticalAlign, VirtualTable, WrapForLabel };
|
package/index.js
CHANGED
|
@@ -77,7 +77,7 @@ var button_default = {
|
|
|
77
77
|
|
|
78
78
|
// src/components/common/Button/Button.tsx
|
|
79
79
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
80
|
-
var Button = forwardRef(function Button2({ variant = "filled", size = "medium", icon:
|
|
80
|
+
var Button = forwardRef(function Button2({ variant = "filled", size = "medium", icon: icon7, textSecondary: textSecondary2, isActive, className, children: children2, classes, ...buttonProps }, propRef) {
|
|
81
81
|
return /* @__PURE__ */ jsx(
|
|
82
82
|
"button",
|
|
83
83
|
{
|
|
@@ -85,7 +85,7 @@ var Button = forwardRef(function Button2({ variant = "filled", size = "medium",
|
|
|
85
85
|
root,
|
|
86
86
|
button_exports[variant],
|
|
87
87
|
button_exports[size],
|
|
88
|
-
!
|
|
88
|
+
!icon7 ? withoutIcon : !children2 ? onlyIcon : withIcon,
|
|
89
89
|
isActive ? active : void 0,
|
|
90
90
|
textSecondary2 ? textSecondary : void 0,
|
|
91
91
|
className,
|
|
@@ -94,7 +94,7 @@ var Button = forwardRef(function Button2({ variant = "filled", size = "medium",
|
|
|
94
94
|
...buttonProps,
|
|
95
95
|
ref: propRef,
|
|
96
96
|
children: /* @__PURE__ */ jsxs("span", { className: classnames(stateLayer, classes?.stateLayer), children: [
|
|
97
|
-
|
|
97
|
+
icon7,
|
|
98
98
|
children2
|
|
99
99
|
] })
|
|
100
100
|
}
|
|
@@ -204,7 +204,7 @@ var pressed = "checkbox_pressed";
|
|
|
204
204
|
// src/components/common/Checkbox/Checkbox.tsx
|
|
205
205
|
import { Fragment, jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
206
206
|
function Checkbox(props) {
|
|
207
|
-
const { label:
|
|
207
|
+
const { label: label8, several: several2, componentSize = "medium", classes, id, ref, ...inputProps } = props;
|
|
208
208
|
const { t } = useTranslation();
|
|
209
209
|
const inputRef = useRef(null);
|
|
210
210
|
const inputId = id ?? uuidv4();
|
|
@@ -235,16 +235,16 @@ function Checkbox(props) {
|
|
|
235
235
|
className: classnames3(input, classes?.input),
|
|
236
236
|
placeholder: t("\u041F\u043E\u0438\u0441\u043A..."),
|
|
237
237
|
id: inputId,
|
|
238
|
-
title:
|
|
238
|
+
title: label8,
|
|
239
239
|
...inputProps
|
|
240
240
|
}
|
|
241
241
|
),
|
|
242
|
-
/* @__PURE__ */ jsxs2("label", { htmlFor: inputId, className: classnames3(label, classes?.label), title:
|
|
242
|
+
/* @__PURE__ */ jsxs2("label", { htmlFor: inputId, className: classnames3(label, classes?.label), title: label8, children: [
|
|
243
243
|
several2 ? /* @__PURE__ */ jsx3("span", { className: classnames3(checkbox, several, classes?.checkbox), children: /* @__PURE__ */ jsx3(CheckboxSeveralIcon, {}) }) : /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
244
244
|
/* @__PURE__ */ jsx3("span", { className: classnames3(checkbox, deselected, classes?.checkbox), children: /* @__PURE__ */ jsx3(CheckboxDeselectedIcon, {}) }),
|
|
245
245
|
/* @__PURE__ */ jsx3("span", { className: classnames3(checkbox, selected, classes?.checkbox), children: /* @__PURE__ */ jsx3(CheckboxIcon, {}) })
|
|
246
246
|
] }),
|
|
247
|
-
!!
|
|
247
|
+
!!label8 && /* @__PURE__ */ jsx3(Fragment, { children: componentSize === "large" ? /* @__PURE__ */ jsx3(Typography, { variant: "subtitle1", className: classnames3(labelText, classes?.labelText), children: label8 }) : /* @__PURE__ */ jsx3(Typography, { variant: "subtitle2", className: classnames3(labelText, classes?.labelText), children: label8 }) })
|
|
248
248
|
] })
|
|
249
249
|
] });
|
|
250
250
|
}
|
|
@@ -333,7 +333,7 @@ function usePopover(props = {}) {
|
|
|
333
333
|
initialOpen = false,
|
|
334
334
|
placement = "bottom",
|
|
335
335
|
modal: modal3,
|
|
336
|
-
root:
|
|
336
|
+
root: root23,
|
|
337
337
|
open: controlledOpen,
|
|
338
338
|
onOpenChange: setControlledOpen,
|
|
339
339
|
containerOffset = 12
|
|
@@ -371,11 +371,11 @@ function usePopover(props = {}) {
|
|
|
371
371
|
...interactions,
|
|
372
372
|
...data,
|
|
373
373
|
modal: modal3,
|
|
374
|
-
root:
|
|
374
|
+
root: root23,
|
|
375
375
|
descriptionId,
|
|
376
376
|
setDescriptionId
|
|
377
377
|
}),
|
|
378
|
-
[open, setOpen, interactions, data, modal3,
|
|
378
|
+
[open, setOpen, interactions, data, modal3, root23, descriptionId]
|
|
379
379
|
);
|
|
380
380
|
}
|
|
381
381
|
|
|
@@ -419,12 +419,12 @@ import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
|
419
419
|
function Popover(props) {
|
|
420
420
|
const {
|
|
421
421
|
description,
|
|
422
|
-
clickable:
|
|
422
|
+
clickable: clickable3,
|
|
423
423
|
initialOpen,
|
|
424
424
|
placement,
|
|
425
425
|
wrapTrigger,
|
|
426
426
|
containerOffset,
|
|
427
|
-
root:
|
|
427
|
+
root: root23,
|
|
428
428
|
open,
|
|
429
429
|
onOpenChange,
|
|
430
430
|
children: children2,
|
|
@@ -443,16 +443,16 @@ function Popover(props) {
|
|
|
443
443
|
{
|
|
444
444
|
placement,
|
|
445
445
|
initialOpen,
|
|
446
|
-
open: open !== void 0 ? open :
|
|
447
|
-
onOpenChange: onOpenChange !== void 0 ? onOpenChange :
|
|
446
|
+
open: open !== void 0 ? open : clickable3 ? showTooltip : void 0,
|
|
447
|
+
onOpenChange: onOpenChange !== void 0 ? onOpenChange : clickable3 ? setShowTooltip : void 0,
|
|
448
448
|
containerOffset,
|
|
449
|
-
root:
|
|
449
|
+
root: root23,
|
|
450
450
|
children: [
|
|
451
451
|
/* @__PURE__ */ jsx7(
|
|
452
452
|
PopoverTrigger,
|
|
453
453
|
{
|
|
454
454
|
wrapTrigger,
|
|
455
|
-
onClick:
|
|
455
|
+
onClick: clickable3 ? () => setShowTooltip((prev) => !prev) : void 0,
|
|
456
456
|
className: classnames4(wrapTrigger ? trigger : void 0, classes?.trigger),
|
|
457
457
|
children: children2
|
|
458
458
|
}
|
|
@@ -719,9 +719,9 @@ function Select(props) {
|
|
|
719
719
|
const {
|
|
720
720
|
variant = "filled",
|
|
721
721
|
componentSize = "medium",
|
|
722
|
-
icon:
|
|
722
|
+
icon: icon7,
|
|
723
723
|
fullWidth: fullWidth2,
|
|
724
|
-
label:
|
|
724
|
+
label: label8,
|
|
725
725
|
placeholder,
|
|
726
726
|
items: items2,
|
|
727
727
|
defaultValue,
|
|
@@ -769,7 +769,7 @@ function Select(props) {
|
|
|
769
769
|
maxWidth: fullWidth2 ? "100%" : void 0
|
|
770
770
|
},
|
|
771
771
|
children: [
|
|
772
|
-
!!
|
|
772
|
+
!!label8 && /* @__PURE__ */ jsx12(
|
|
773
773
|
Typography,
|
|
774
774
|
{
|
|
775
775
|
className: classnames6(label2, classes?.label),
|
|
@@ -777,7 +777,7 @@ function Select(props) {
|
|
|
777
777
|
variant: "caption",
|
|
778
778
|
htmlFor: inputId,
|
|
779
779
|
onClick: inputClickHandler,
|
|
780
|
-
children:
|
|
780
|
+
children: label8
|
|
781
781
|
}
|
|
782
782
|
),
|
|
783
783
|
/* @__PURE__ */ jsxs5(
|
|
@@ -786,7 +786,7 @@ function Select(props) {
|
|
|
786
786
|
className: classnames6(
|
|
787
787
|
wrapper,
|
|
788
788
|
select_exports[variant],
|
|
789
|
-
|
|
789
|
+
icon7 ? withIcon2 : void 0,
|
|
790
790
|
selectedItem?.icon ? withItemIcon : void 0,
|
|
791
791
|
classes?.wrapper
|
|
792
792
|
),
|
|
@@ -806,7 +806,7 @@ function Select(props) {
|
|
|
806
806
|
disabled: disabled2
|
|
807
807
|
}
|
|
808
808
|
),
|
|
809
|
-
!!
|
|
809
|
+
!!icon7 && /* @__PURE__ */ jsx12("span", { onClick: inputClickHandler, className: classnames6(icon, classes?.icon), children: icon7 }),
|
|
810
810
|
!!selectedItem?.icon && /* @__PURE__ */ jsx12("span", { onClick: inputClickHandler, className: classnames6(itemIcon, classes?.itemIcon), children: selectedItem?.icon }),
|
|
811
811
|
/* @__PURE__ */ jsx12("span", { onClick: inputClickHandler, className: classnames6(arrow, classes?.arrow), children: /* @__PURE__ */ jsx12(Arrow, {}) }),
|
|
812
812
|
/* @__PURE__ */ jsx12(
|
|
@@ -1272,7 +1272,7 @@ var ColorPicker = (props) => {
|
|
|
1272
1272
|
variant = "outlined",
|
|
1273
1273
|
componentSize = "medium",
|
|
1274
1274
|
fullWidth: fullWidth2,
|
|
1275
|
-
label:
|
|
1275
|
+
label: label8,
|
|
1276
1276
|
classes,
|
|
1277
1277
|
placeholder,
|
|
1278
1278
|
ref,
|
|
@@ -1306,7 +1306,7 @@ var ColorPicker = (props) => {
|
|
|
1306
1306
|
maxWidth: fullWidth2 ? "100%" : void 0
|
|
1307
1307
|
},
|
|
1308
1308
|
children: [
|
|
1309
|
-
!!
|
|
1309
|
+
!!label8 && /* @__PURE__ */ jsx15(
|
|
1310
1310
|
Typography,
|
|
1311
1311
|
{
|
|
1312
1312
|
className: classNames3(label3, classes?.label),
|
|
@@ -1314,7 +1314,7 @@ var ColorPicker = (props) => {
|
|
|
1314
1314
|
variant: "caption",
|
|
1315
1315
|
htmlFor: inputId,
|
|
1316
1316
|
onClick: inputClickHandler,
|
|
1317
|
-
children:
|
|
1317
|
+
children: label8
|
|
1318
1318
|
}
|
|
1319
1319
|
),
|
|
1320
1320
|
/* @__PURE__ */ jsxs8("div", { className: classNames3(wrapper2, colorPicker_exports[variant], classes?.wrapper), children: [
|
|
@@ -1403,7 +1403,7 @@ var Input = (props) => {
|
|
|
1403
1403
|
variant = "outlined",
|
|
1404
1404
|
componentSize = "medium",
|
|
1405
1405
|
fullWidth: fullWidth2,
|
|
1406
|
-
label:
|
|
1406
|
+
label: label8,
|
|
1407
1407
|
classes,
|
|
1408
1408
|
placeholder,
|
|
1409
1409
|
ref,
|
|
@@ -1420,14 +1420,14 @@ var Input = (props) => {
|
|
|
1420
1420
|
maxWidth: fullWidth2 ? "100%" : void 0
|
|
1421
1421
|
},
|
|
1422
1422
|
children: [
|
|
1423
|
-
!!
|
|
1423
|
+
!!label8 && /* @__PURE__ */ jsx16(
|
|
1424
1424
|
Typography,
|
|
1425
1425
|
{
|
|
1426
1426
|
className: classnames8(label4, classes?.label),
|
|
1427
1427
|
component: "label",
|
|
1428
1428
|
variant: "caption",
|
|
1429
1429
|
htmlFor: inputId,
|
|
1430
|
-
children:
|
|
1430
|
+
children: label8
|
|
1431
1431
|
}
|
|
1432
1432
|
),
|
|
1433
1433
|
/* @__PURE__ */ jsx16("div", { className: classnames8(wrapper3, input_exports[variant], classes?.wrapper), children: /* @__PURE__ */ jsx16(
|
|
@@ -1852,9 +1852,9 @@ function MultiSelect(props) {
|
|
|
1852
1852
|
const {
|
|
1853
1853
|
variant = "filled",
|
|
1854
1854
|
componentSize = "medium",
|
|
1855
|
-
icon:
|
|
1855
|
+
icon: icon7,
|
|
1856
1856
|
fullWidth: fullWidth2,
|
|
1857
|
-
label:
|
|
1857
|
+
label: label8,
|
|
1858
1858
|
placeholder,
|
|
1859
1859
|
items: items2,
|
|
1860
1860
|
onValueChange,
|
|
@@ -1927,7 +1927,7 @@ function MultiSelect(props) {
|
|
|
1927
1927
|
classes?.root
|
|
1928
1928
|
),
|
|
1929
1929
|
children: [
|
|
1930
|
-
!!
|
|
1930
|
+
!!label8 && /* @__PURE__ */ jsx21(
|
|
1931
1931
|
Typography,
|
|
1932
1932
|
{
|
|
1933
1933
|
className: classnames12(label5, classes?.label),
|
|
@@ -1935,7 +1935,7 @@ function MultiSelect(props) {
|
|
|
1935
1935
|
variant: "caption",
|
|
1936
1936
|
htmlFor: inputId,
|
|
1937
1937
|
onClick: inputClickHandler,
|
|
1938
|
-
children:
|
|
1938
|
+
children: label8
|
|
1939
1939
|
}
|
|
1940
1940
|
),
|
|
1941
1941
|
/* @__PURE__ */ jsxs12(
|
|
@@ -1945,7 +1945,7 @@ function MultiSelect(props) {
|
|
|
1945
1945
|
className: classnames12(
|
|
1946
1946
|
wrapper4,
|
|
1947
1947
|
multiSelect_exports[variant],
|
|
1948
|
-
|
|
1948
|
+
icon7 ? withIcon4 : void 0,
|
|
1949
1949
|
classes?.wrapper
|
|
1950
1950
|
),
|
|
1951
1951
|
children: [
|
|
@@ -1965,7 +1965,7 @@ function MultiSelect(props) {
|
|
|
1965
1965
|
autoComplete: "off"
|
|
1966
1966
|
}
|
|
1967
1967
|
),
|
|
1968
|
-
!!
|
|
1968
|
+
!!icon7 && /* @__PURE__ */ jsx21("span", { onClick: inputClickHandler, className: classnames12(icon5, classes?.icon), children: icon7 }),
|
|
1969
1969
|
!!activeItems.length && /* @__PURE__ */ jsx21("span", { onClick: clearHandler, className: classnames12(clear, classes?.clear), children: /* @__PURE__ */ jsx21(CloseIcon, {}) }),
|
|
1970
1970
|
/* @__PURE__ */ jsx21("span", { onClick: inputClickHandler, className: classnames12(arrow3, classes?.arrow), children: /* @__PURE__ */ jsx21(Arrow, {}) }),
|
|
1971
1971
|
/* @__PURE__ */ jsx21(
|
|
@@ -2210,7 +2210,7 @@ function useTooltip(props = {}) {
|
|
|
2210
2210
|
onOpenChange: setControlledOpen,
|
|
2211
2211
|
withoutArrow,
|
|
2212
2212
|
arrowRef,
|
|
2213
|
-
root:
|
|
2213
|
+
root: root23
|
|
2214
2214
|
} = props;
|
|
2215
2215
|
const [uncontrolledOpen, setUncontrolledOpen] = useState9(initialOpen);
|
|
2216
2216
|
const open = controlledOpen ?? uncontrolledOpen;
|
|
@@ -2248,11 +2248,11 @@ function useTooltip(props = {}) {
|
|
|
2248
2248
|
setOpen,
|
|
2249
2249
|
withoutArrow,
|
|
2250
2250
|
arrowRef,
|
|
2251
|
-
root:
|
|
2251
|
+
root: root23,
|
|
2252
2252
|
...interactions,
|
|
2253
2253
|
...data
|
|
2254
2254
|
}),
|
|
2255
|
-
[open, setOpen, interactions, data,
|
|
2255
|
+
[open, setOpen, interactions, data, root23]
|
|
2256
2256
|
);
|
|
2257
2257
|
}
|
|
2258
2258
|
|
|
@@ -2295,20 +2295,20 @@ var TooltipTrigger = forwardRef6(
|
|
|
2295
2295
|
import { jsx as jsx27, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2296
2296
|
function Tooltip(props) {
|
|
2297
2297
|
const {
|
|
2298
|
-
label:
|
|
2299
|
-
clickable:
|
|
2298
|
+
label: label8,
|
|
2299
|
+
clickable: clickable3,
|
|
2300
2300
|
initialOpen,
|
|
2301
2301
|
placement,
|
|
2302
2302
|
withoutArrow,
|
|
2303
2303
|
wrapTrigger,
|
|
2304
2304
|
alertType = "default",
|
|
2305
|
-
root:
|
|
2305
|
+
root: root23,
|
|
2306
2306
|
children: children2,
|
|
2307
2307
|
classes
|
|
2308
2308
|
} = props;
|
|
2309
2309
|
const [showTooltip, setShowTooltip] = useState10(false);
|
|
2310
2310
|
const arrowRef = useRef8(null);
|
|
2311
|
-
if (!
|
|
2311
|
+
if (!label8) {
|
|
2312
2312
|
return children2;
|
|
2313
2313
|
}
|
|
2314
2314
|
if (!children2) {
|
|
@@ -2319,17 +2319,17 @@ function Tooltip(props) {
|
|
|
2319
2319
|
{
|
|
2320
2320
|
placement,
|
|
2321
2321
|
initialOpen,
|
|
2322
|
-
open:
|
|
2323
|
-
onOpenChange:
|
|
2322
|
+
open: clickable3 ? showTooltip : void 0,
|
|
2323
|
+
onOpenChange: clickable3 ? setShowTooltip : void 0,
|
|
2324
2324
|
withoutArrow,
|
|
2325
2325
|
arrowRef,
|
|
2326
|
-
root:
|
|
2326
|
+
root: root23,
|
|
2327
2327
|
children: [
|
|
2328
2328
|
/* @__PURE__ */ jsx27(
|
|
2329
2329
|
TooltipTrigger,
|
|
2330
2330
|
{
|
|
2331
2331
|
wrapTrigger,
|
|
2332
|
-
onClick:
|
|
2332
|
+
onClick: clickable3 ? () => setShowTooltip((prev) => !prev) : void 0,
|
|
2333
2333
|
className: wrapTrigger ? classnames16(trigger2, classes?.trigger) : void 0,
|
|
2334
2334
|
children: children2
|
|
2335
2335
|
}
|
|
@@ -2339,7 +2339,7 @@ function Tooltip(props) {
|
|
|
2339
2339
|
{
|
|
2340
2340
|
className: classnames16(content2, tooltip_exports[alertType], classes?.content),
|
|
2341
2341
|
styles: tooltip_exports,
|
|
2342
|
-
children:
|
|
2342
|
+
children: label8
|
|
2343
2343
|
}
|
|
2344
2344
|
)
|
|
2345
2345
|
]
|
|
@@ -2414,7 +2414,7 @@ function Tabs(props) {
|
|
|
2414
2414
|
defaultSelected,
|
|
2415
2415
|
onChange,
|
|
2416
2416
|
size = "medium",
|
|
2417
|
-
filled:
|
|
2417
|
+
filled: filled8 = false,
|
|
2418
2418
|
isVertical = false,
|
|
2419
2419
|
disableBorder: disableBorder2 = false,
|
|
2420
2420
|
allowDeselect = false,
|
|
@@ -2461,7 +2461,7 @@ function Tabs(props) {
|
|
|
2461
2461
|
{
|
|
2462
2462
|
className: classnames17(
|
|
2463
2463
|
root16,
|
|
2464
|
-
|
|
2464
|
+
filled8 && filled6,
|
|
2465
2465
|
isVertical && vertical,
|
|
2466
2466
|
disableBorder2 && disableBorder,
|
|
2467
2467
|
tabs_exports[size],
|
|
@@ -2475,11 +2475,11 @@ function Tabs(props) {
|
|
|
2475
2475
|
{
|
|
2476
2476
|
className: classnames17(
|
|
2477
2477
|
tab,
|
|
2478
|
-
|
|
2478
|
+
filled8 && tabFilled,
|
|
2479
2479
|
isVertical && tabVertical,
|
|
2480
2480
|
disableBorder2 && disableBorder,
|
|
2481
2481
|
isSelected ? selected2 : void 0,
|
|
2482
|
-
isSelected &&
|
|
2482
|
+
isSelected && filled8 ? selectedFilled : void 0,
|
|
2483
2483
|
item3.isDisabled && disabled,
|
|
2484
2484
|
classes?.tab,
|
|
2485
2485
|
isSelected ? classes?.tabSelected : void 0,
|
|
@@ -2557,7 +2557,7 @@ var modal2 = "modal_modal";
|
|
|
2557
2557
|
// src/components/view/Modal/Modal.tsx
|
|
2558
2558
|
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
2559
2559
|
var Modal = forwardRef7(
|
|
2560
|
-
function Modal2({ open, onClose, root:
|
|
2560
|
+
function Modal2({ open, onClose, root: root23 = document.body, children: children2, ...props }, propRef) {
|
|
2561
2561
|
const overlayRef = useRef9(null);
|
|
2562
2562
|
const modalRef = useRef9(null);
|
|
2563
2563
|
const handleOverlayClick = (e) => {
|
|
@@ -2587,7 +2587,7 @@ var Modal = forwardRef7(
|
|
|
2587
2587
|
children: children2
|
|
2588
2588
|
}
|
|
2589
2589
|
) });
|
|
2590
|
-
return createPortal(modalContent2,
|
|
2590
|
+
return createPortal(modalContent2, root23);
|
|
2591
2591
|
}
|
|
2592
2592
|
);
|
|
2593
2593
|
|
|
@@ -3852,8 +3852,8 @@ var dimTypography = "pairs_dimTypography";
|
|
|
3852
3852
|
import { useState as useState18 } from "react";
|
|
3853
3853
|
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
3854
3854
|
function TypographyWithTooltip(props) {
|
|
3855
|
-
const { label:
|
|
3856
|
-
const [tooltip, setTooltip] = useState18(
|
|
3855
|
+
const { label: label8 } = props;
|
|
3856
|
+
const [tooltip, setTooltip] = useState18(label8);
|
|
3857
3857
|
return /* @__PURE__ */ jsx37(Tooltip, { label: tooltip, children: /* @__PURE__ */ jsx37(
|
|
3858
3858
|
Typography,
|
|
3859
3859
|
{
|
|
@@ -3863,9 +3863,9 @@ function TypographyWithTooltip(props) {
|
|
|
3863
3863
|
whiteSpace: "nowrap"
|
|
3864
3864
|
},
|
|
3865
3865
|
onMouseEnter: (e) => {
|
|
3866
|
-
setTooltip(e.currentTarget.scrollWidth > e.currentTarget.clientWidth ?
|
|
3866
|
+
setTooltip(e.currentTarget.scrollWidth > e.currentTarget.clientWidth ? label8 : "");
|
|
3867
3867
|
},
|
|
3868
|
-
children:
|
|
3868
|
+
children: label8
|
|
3869
3869
|
}
|
|
3870
3870
|
) });
|
|
3871
3871
|
}
|
|
@@ -3934,12 +3934,118 @@ function Card(props) {
|
|
|
3934
3934
|
/* @__PURE__ */ jsx39("div", { className: classNames7(classes?.body), children: children2 })
|
|
3935
3935
|
] });
|
|
3936
3936
|
}
|
|
3937
|
+
|
|
3938
|
+
// src/components/view/Chip/Chip.tsx
|
|
3939
|
+
import classnames23 from "classnames";
|
|
3940
|
+
|
|
3941
|
+
// src/components/view/Chip/chip.module.css
|
|
3942
|
+
var chip_exports = {};
|
|
3943
|
+
__export(chip_exports, {
|
|
3944
|
+
active: () => active2,
|
|
3945
|
+
clickable: () => clickable2,
|
|
3946
|
+
default: () => chip_default,
|
|
3947
|
+
filled: () => filled7,
|
|
3948
|
+
icon: () => icon6,
|
|
3949
|
+
iconClickable: () => iconClickable,
|
|
3950
|
+
iconLeft: () => iconLeft,
|
|
3951
|
+
iconRight: () => iconRight,
|
|
3952
|
+
label: () => label7,
|
|
3953
|
+
medium: () => medium12,
|
|
3954
|
+
outlined: () => outlined8,
|
|
3955
|
+
root: () => root22,
|
|
3956
|
+
secondary: () => secondary,
|
|
3957
|
+
small: () => small12,
|
|
3958
|
+
stateLayer: () => stateLayer3,
|
|
3959
|
+
withIcon: () => withIcon5
|
|
3960
|
+
});
|
|
3961
|
+
var root22 = "chip_root";
|
|
3962
|
+
var stateLayer3 = "chip_stateLayer";
|
|
3963
|
+
var active2 = "chip_active";
|
|
3964
|
+
var filled7 = "chip_filled";
|
|
3965
|
+
var outlined8 = "chip_outlined";
|
|
3966
|
+
var secondary = "chip_secondary";
|
|
3967
|
+
var clickable2 = "chip_clickable";
|
|
3968
|
+
var medium12 = "chip_medium";
|
|
3969
|
+
var small12 = "chip_small";
|
|
3970
|
+
var withIcon5 = "chip_withIcon";
|
|
3971
|
+
var iconLeft = "chip_iconLeft";
|
|
3972
|
+
var icon6 = "chip_icon";
|
|
3973
|
+
var iconClickable = "chip_iconClickable";
|
|
3974
|
+
var label7 = "chip_label";
|
|
3975
|
+
var iconRight = "chip_iconRight";
|
|
3976
|
+
var chip_default = {
|
|
3977
|
+
root: root22,
|
|
3978
|
+
stateLayer: stateLayer3,
|
|
3979
|
+
active: active2,
|
|
3980
|
+
filled: filled7,
|
|
3981
|
+
outlined: outlined8,
|
|
3982
|
+
secondary,
|
|
3983
|
+
clickable: clickable2,
|
|
3984
|
+
medium: medium12,
|
|
3985
|
+
small: small12,
|
|
3986
|
+
withIcon: withIcon5,
|
|
3987
|
+
iconLeft,
|
|
3988
|
+
icon: icon6,
|
|
3989
|
+
iconClickable,
|
|
3990
|
+
label: label7,
|
|
3991
|
+
iconRight
|
|
3992
|
+
};
|
|
3993
|
+
|
|
3994
|
+
// src/components/view/Chip/Chip.tsx
|
|
3995
|
+
import { jsx as jsx40, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3996
|
+
var Chip = (props) => {
|
|
3997
|
+
const {
|
|
3998
|
+
variant = "filled",
|
|
3999
|
+
size = "medium",
|
|
4000
|
+
icon: icon7,
|
|
4001
|
+
iconPlacement = "right",
|
|
4002
|
+
secondary: secondary2,
|
|
4003
|
+
onClick,
|
|
4004
|
+
onIconClick,
|
|
4005
|
+
children: children2,
|
|
4006
|
+
classes
|
|
4007
|
+
} = props;
|
|
4008
|
+
const handleIconClick = (e) => {
|
|
4009
|
+
e.stopPropagation();
|
|
4010
|
+
onIconClick?.();
|
|
4011
|
+
};
|
|
4012
|
+
const IconComponent = onIconClick ? "button" : "span";
|
|
4013
|
+
return /* @__PURE__ */ jsx40(
|
|
4014
|
+
"div",
|
|
4015
|
+
{
|
|
4016
|
+
className: classnames23(
|
|
4017
|
+
root22,
|
|
4018
|
+
chip_exports[variant],
|
|
4019
|
+
chip_exports[size],
|
|
4020
|
+
!!icon7 && withIcon5,
|
|
4021
|
+
iconPlacement === "left" ? iconLeft : iconRight,
|
|
4022
|
+
secondary2 && secondary,
|
|
4023
|
+
onClick && clickable2,
|
|
4024
|
+
classes?.root
|
|
4025
|
+
),
|
|
4026
|
+
onClick,
|
|
4027
|
+
children: /* @__PURE__ */ jsxs24("span", { className: classnames23(stateLayer3, classes?.stateLayer), children: [
|
|
4028
|
+
children2 && /* @__PURE__ */ jsx40("span", { className: classnames23(label7, classes?.label), children: children2 }),
|
|
4029
|
+
icon7 && /* @__PURE__ */ jsx40(
|
|
4030
|
+
IconComponent,
|
|
4031
|
+
{
|
|
4032
|
+
className: classnames23(icon6, onIconClick && iconClickable, classes?.icon),
|
|
4033
|
+
onClick: handleIconClick,
|
|
4034
|
+
"aria-label": "\u0423\u0434\u0430\u043B\u0438\u0442\u044C",
|
|
4035
|
+
children: icon7
|
|
4036
|
+
}
|
|
4037
|
+
)
|
|
4038
|
+
] })
|
|
4039
|
+
}
|
|
4040
|
+
);
|
|
4041
|
+
};
|
|
3937
4042
|
export {
|
|
3938
4043
|
Button,
|
|
3939
4044
|
ButtonsGroup,
|
|
3940
4045
|
Card,
|
|
3941
4046
|
Checkbox,
|
|
3942
4047
|
Checklist,
|
|
4048
|
+
Chip,
|
|
3943
4049
|
ColorPicker,
|
|
3944
4050
|
DateTime,
|
|
3945
4051
|
Input,
|