widenarrow-ui 1.1.20 → 1.1.21
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/lib/assets/svg/searchLexical.d.ts +6 -0
- package/lib/components/MultiActionButton/MultiActionButton.types.d.ts +1 -1
- package/lib/constants.d.ts +1 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.esm.css +1 -1
- package/lib/index.esm.js +326 -317
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +326 -317
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/svg/searchLexical.tsx +13 -0
- package/src/components/Icon/getIconFromConstant.tsx +3 -0
- package/src/components/InlineButton/InlineButton.module.scss +1 -0
- package/src/components/MultiActionButton/MultiActionButton.module.scss +21 -0
- package/src/components/MultiActionButton/MultiActionButton.tsx +1 -0
- package/src/components/MultiActionButton/MultiActionButton.types.ts +1 -1
- package/src/constants.ts +1 -0
package/package.json
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
interface Props {
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
const Icon: FC<Props> = ({ className }) => (
|
|
8
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" className={className}>
|
|
9
|
+
<path d="M130-220.77q-12.75 0-21.37-8.63-8.63-8.63-8.63-21.38 0-12.76 8.63-21.37 8.62-8.62 21.37-8.62h331.16q12.75 0 21.37 8.63 8.62 8.63 8.62 21.38 0 12.76-8.62 21.37-8.62 8.62-21.37 8.62H130Zm0-195.77q-12.75 0-21.37-8.63-8.63-8.63-8.63-21.38 0-12.76 8.63-21.37 8.62-8.62 21.37-8.62h129.23q12.75 0 21.38 8.63 8.62 8.63 8.62 21.38 0 12.76-8.62 21.38-8.63 8.61-21.38 8.61H130Zm0-195.77q-12.75 0-21.37-8.63-8.63-8.63-8.63-21.38 0-12.76 8.63-21.37 8.62-8.62 21.37-8.62h129.23q12.75 0 21.38 8.63 8.62 8.63 8.62 21.39 0 12.75-8.62 21.37-8.63 8.61-21.38 8.61H130Zm428.46 272.69q-75.18 0-128.16-52.53-52.99-52.54-52.99-127.66 0-75.11 53.01-127.65Q483.34-700 558.55-700q75.22 0 128.14 52.54 52.92 52.54 52.92 127.46 0 27.85-8.69 54.81t-25.69 49.42l133.69 132.54q8.69 8.18 8.69 20.82t-8.69 21.33q-8.18 8.31-20.82 8.31t-21.33-8.31L663.08-373.62q-22.85 16.62-49.81 25.31-26.96 8.69-54.81 8.69Zm0-60q50.48 0 85.82-35 35.34-35 35.34-85.19T644.28-605q-35.34-35-85.82-35-50.48 0-85.82 35-35.33 35-35.33 85.19t35.33 85.19q35.34 35 85.82 35Z" />
|
|
10
|
+
</svg>
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
export default Icon;
|
|
@@ -159,6 +159,7 @@ import SavedSearchIcon300 from 'src/assets/svg/savedSearch-300';
|
|
|
159
159
|
import ScheduleIcon from 'src/assets/svg/schedule';
|
|
160
160
|
import SearchIcon200 from 'src/assets/svg/search-200';
|
|
161
161
|
import SearchIcon300 from 'src/assets/svg/search-300';
|
|
162
|
+
import SearchLexicalIcon from 'src/assets/svg/searchLexical';
|
|
162
163
|
import SearchPersonIcon from 'src/assets/svg/searchPerson';
|
|
163
164
|
import SendIcon from 'src/assets/svg/send';
|
|
164
165
|
import SendListIcon from 'src/assets/svg/sendList';
|
|
@@ -534,6 +535,8 @@ const getIconFromConstant = (icon: Partial<IconTypes>, getIconClassName: (additi
|
|
|
534
535
|
return <SearchIcon200 className={getIconClassName()} />;
|
|
535
536
|
case IconTypes.SEARCH_300:
|
|
536
537
|
return <SearchIcon300 className={getIconClassName()} />;
|
|
538
|
+
case IconTypes.SEARCH_LEXICAL:
|
|
539
|
+
return <SearchLexicalIcon className={getIconClassName()} />;
|
|
537
540
|
case IconTypes.SEARCH_USER:
|
|
538
541
|
return <SearchPersonIcon className={getIconClassName()} />;
|
|
539
542
|
case IconTypes.SEND:
|
|
@@ -104,6 +104,27 @@ $button-l-min-width: 100px;
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
&_quaternary {
|
|
108
|
+
@include buttonColors($mint-1, $mint-1, $main-grey);
|
|
109
|
+
|
|
110
|
+
.button {
|
|
111
|
+
&:hover {
|
|
112
|
+
@include buttonColors($mint-2, $mint-2, $main-grey);
|
|
113
|
+
}
|
|
114
|
+
&:active {
|
|
115
|
+
@include buttonColors($mint-3, $mint-3, $main-grey);
|
|
116
|
+
}
|
|
117
|
+
&.loading,
|
|
118
|
+
&.disabled,
|
|
119
|
+
&_disabled {
|
|
120
|
+
@include buttonColors($grey-3, $grey-3, $white);
|
|
121
|
+
svg {
|
|
122
|
+
fill: $grey-5 !important;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
107
128
|
&_disabled {
|
|
108
129
|
pointer-events: none;
|
|
109
130
|
border-color: $grey-2;
|
|
@@ -56,6 +56,7 @@ const MultiActionButton: FC<MultiActionButtonProps> = ({
|
|
|
56
56
|
innerContainer_primary: type === HierarchyTypes.PRIMARY,
|
|
57
57
|
innerContainer_secondary: type === HierarchyTypes.SECONDARY,
|
|
58
58
|
innerContainer_tertiary: type === HierarchyTypes.TERTIARY,
|
|
59
|
+
innerContainer_quaternary: type === HierarchyTypes.QUATERNARY,
|
|
59
60
|
innerContainer_small: size === SizeTypes.SMALL,
|
|
60
61
|
innerContainer_medium: size === SizeTypes.MEDIUM,
|
|
61
62
|
innerContainer_large: size === SizeTypes.LARGE,
|
|
@@ -5,7 +5,7 @@ export interface MultiActionButtonProps {
|
|
|
5
5
|
text?: string;
|
|
6
6
|
onLeftClickCallback?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
7
7
|
onRightClickCallback?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
8
|
-
type?: HierarchyTypes.PRIMARY | HierarchyTypes.SECONDARY | HierarchyTypes.TERTIARY;
|
|
8
|
+
type?: HierarchyTypes.PRIMARY | HierarchyTypes.SECONDARY | HierarchyTypes.TERTIARY | HierarchyTypes.QUATERNARY;
|
|
9
9
|
size?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
|
|
10
10
|
iconSize?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
|
|
11
11
|
leftIcon?: Partial<IconTypes>;
|
package/src/constants.ts
CHANGED
|
@@ -157,6 +157,7 @@ export enum IconTypes {
|
|
|
157
157
|
SEARCH_200 = 'iconSearch200',
|
|
158
158
|
SEARCH_300 = 'iconSearch300',
|
|
159
159
|
SEARCH_USER = 'iconSearchUser',
|
|
160
|
+
SEARCH_LEXICAL = 'iconSearchLexical',
|
|
160
161
|
SEND = 'iconSend',
|
|
161
162
|
SEND_LIST = 'iconSendList',
|
|
162
163
|
SETTINGS_200 = 'iconSettings200',
|