@wireapp/react-ui-kit 9.30.0 → 9.32.0
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/Form/Select.d.ts +2 -1
- package/lib/Form/Select.d.ts.map +1 -1
- package/lib/Form/Select.js +2 -1
- package/lib/Form/SelectComponents.d.ts +5 -1
- package/lib/Form/SelectComponents.d.ts.map +1 -1
- package/lib/Form/SelectComponents.js +16 -1
- package/lib/Form/SelectComponents.styles.d.ts +5 -0
- package/lib/Form/SelectComponents.styles.d.ts.map +1 -0
- package/lib/Form/SelectComponents.styles.js +38 -0
- package/lib/Icon/Files/FolderIcon.d.ts +3 -0
- package/lib/Icon/Files/FolderIcon.d.ts.map +1 -0
- package/lib/Icon/Files/FolderIcon.js +27 -0
- package/lib/Icon/Files/MultipleFilesIcon.d.ts +3 -0
- package/lib/Icon/Files/MultipleFilesIcon.d.ts.map +1 -0
- package/lib/Icon/Files/MultipleFilesIcon.js +27 -0
- package/lib/Icon/Files/TextFileIcon.d.ts +3 -0
- package/lib/Icon/Files/TextFileIcon.d.ts.map +1 -0
- package/lib/Icon/Files/TextFileIcon.js +27 -0
- package/lib/Icon/index.d.ts +3 -0
- package/lib/Icon/index.d.ts.map +1 -1
- package/lib/Icon/index.js +3 -0
- package/lib/Theme/GlobalCssVariables.d.ts.map +1 -1
- package/lib/Theme/GlobalCssVariables.js +19 -1
- package/package.json +2 -2
package/lib/Form/Select.d.ts
CHANGED
|
@@ -23,7 +23,8 @@ interface SelectProps<IsMulti extends boolean, Group extends GroupBase<Option>>
|
|
|
23
23
|
isMulti?: IsMulti;
|
|
24
24
|
isSearchable?: boolean;
|
|
25
25
|
overlayMenu?: boolean;
|
|
26
|
+
menuListHeading?: string;
|
|
26
27
|
}
|
|
27
|
-
export declare const Select: <IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ id, label, error, helperText, disabled, dataUieName, options, isMulti, wrapperCSS, menuCSS, markInvalid, required, isSearchable, overlayMenu, ...props }: SelectProps<IsMulti, Group>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare const Select: <IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ id, label, error, helperText, disabled, dataUieName, options, isMulti, wrapperCSS, menuCSS, markInvalid, required, isSearchable, overlayMenu, menuListHeading, ...props }: SelectProps<IsMulti, Group>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
28
29
|
export {};
|
|
29
30
|
//# sourceMappingURL=Select.d.ts.map
|
package/lib/Form/Select.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../src/Form/Select.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,YAAY,EAAC,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAC,SAAS,EAAW,MAAM,gBAAgB,CAAC;AACnD,OAAoB,EAAC,SAAS,EAAe,MAAM,cAAc,CAAC;AAClE,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,iDAAiD,CAAC;
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../src/Form/Select.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,YAAY,EAAC,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAC,SAAS,EAAW,MAAM,gBAAgB,CAAC;AACnD,OAAoB,EAAC,SAAS,EAAe,MAAM,cAAc,CAAC;AAClE,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,iDAAiD,CAAC;AAkBvF,MAAM,MAAM,MAAM,GAAG;IACnB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,UAAU,WAAW,CAAC,OAAO,SAAS,OAAO,EAAE,KAAK,SAAS,SAAS,CAAC,MAAM,CAAC,CAC5E,SAAQ,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC;IACjD,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,CAAC;IAC5B,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,MAAM,GAAI,OAAO,SAAS,OAAO,UAAU,KAAK,SAAS,SAAS,CAAC,MAAM,CAAC,mMAiBpF,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,qDAqE7B,CAAC"}
|
package/lib/Form/Select.js
CHANGED
|
@@ -11,7 +11,7 @@ const InputLabel_1 = require("./InputLabel");
|
|
|
11
11
|
const SelectComponents_1 = require("./SelectComponents");
|
|
12
12
|
const SelectStyles_1 = require("./SelectStyles");
|
|
13
13
|
const enums_1 = require("../types/enums");
|
|
14
|
-
const Select = ({ id, label, error, helperText, disabled = false, dataUieName, options, isMulti, wrapperCSS = {}, menuCSS = {}, markInvalid = false, required = false, isSearchable = false, overlayMenu = true, ...props }) => {
|
|
14
|
+
const Select = ({ id, label, error, helperText, disabled = false, dataUieName, options, isMulti, wrapperCSS = {}, menuCSS = {}, markInvalid = false, required = false, isSearchable = false, overlayMenu = true, menuListHeading, ...props }) => {
|
|
15
15
|
const theme = (0, react_1.useTheme)();
|
|
16
16
|
const hasError = !!error;
|
|
17
17
|
return ((0, jsx_runtime_1.jsxs)("div", {
|
|
@@ -34,6 +34,7 @@ const Select = ({ id, label, error, helperText, disabled = false, dataUieName, o
|
|
|
34
34
|
Menu: (0, SelectComponents_1.Menu)(dataUieName, menuCSS),
|
|
35
35
|
ValueContainer: SelectComponents_1.ValueContainer,
|
|
36
36
|
IndicatorsContainer: SelectComponents_1.IndicatorsContainer,
|
|
37
|
+
...(menuListHeading && { MenuList: (0, SelectComponents_1.MenuList)(menuListHeading, dataUieName) }),
|
|
37
38
|
}, tabIndex: enums_1.TabIndex.UNFOCUSABLE, isDisabled: disabled, hideSelectedOptions: false, isSearchable: isSearchable, isClearable: false, closeMenuOnSelect: !isMulti, isMulti: isMulti, options: options, ...props }), !hasError && helperText && ((0, jsx_runtime_1.jsx)("p", { css: (theme) => ({
|
|
38
39
|
fontSize: theme.fontSizes.small,
|
|
39
40
|
fontWeight: 400,
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { CSSObject } from '@emotion/react';
|
|
2
|
-
import { ContainerProps, DropdownIndicatorProps, OptionProps, ValueContainerProps, IndicatorsContainerProps, MenuProps, GroupBase, OptionsOrGroups } from 'react-select';
|
|
2
|
+
import { ContainerProps, DropdownIndicatorProps, OptionProps, ValueContainerProps, IndicatorsContainerProps, MenuProps, GroupBase, OptionsOrGroups, MenuListProps } from 'react-select';
|
|
3
3
|
import { Option } from './Select';
|
|
4
4
|
export declare const SelectContainer: (props: ContainerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare const isGroup: (options: OptionsOrGroups<Option, GroupBase<Option>>) => options is GroupBase<Option>[];
|
|
6
6
|
export declare const DropdownIndicator: (props: DropdownIndicatorProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
7
|
export declare const CustomOption: (dataUieName: string) => (props: OptionProps<Option>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
8
|
export declare const Menu: (dataUieName: string, css?: CSSObject) => (props: MenuProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const MenuList: {
|
|
10
|
+
(menuListHeading: string, dataUieName: string): (props: MenuListProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
9
13
|
export declare const renderValue: (value: any) => any;
|
|
10
14
|
export declare const ValueContainer: ({ children, ...restProps }: ValueContainerProps<Option>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
15
|
export declare const IndicatorsContainer: ({ children, ...restProps }: IndicatorsContainerProps<Option>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectComponents.d.ts","sourceRoot":"","sources":["../../src/Form/SelectComponents.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAEL,cAAc,EACd,sBAAsB,EACtB,WAAW,EACX,mBAAmB,EACnB,wBAAwB,EACxB,SAAS,EACT,SAAS,EACT,eAAe,
|
|
1
|
+
{"version":3,"file":"SelectComponents.d.ts","sourceRoot":"","sources":["../../src/Form/SelectComponents.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAEL,cAAc,EACd,sBAAsB,EACtB,WAAW,EACX,mBAAmB,EACnB,wBAAwB,EACxB,SAAS,EACT,SAAS,EACT,eAAe,EACf,aAAa,EACd,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAShC,eAAO,MAAM,eAAe,UAAW,cAAc,qDAMpD,CAAC;AAEF,eAAO,MAAM,OAAO,YAAa,eAAe,CAAC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,KAAG,OAAO,IAAI,SAAS,CAAC,MAAM,CAAC,EAEzG,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,qDAS9D,CAAC;AAGF,eAAO,MAAM,YAAY,gBAAiB,MAAM,aAAa,WAAW,CAAC,MAAM,CAAC,qDAsD/E,CAAC;AAGF,eAAO,MAAM,IAAI,gBAAiB,MAAM,QAAQ,SAAS,aAAa,SAAS,qDAc9E,CAAC;AAGF,eAAO,MAAM,QAAQ;sBAAqB,MAAM,eAAe,MAAM,WAAa,aAAa;;CA0B9F,CAAC;AAGF,eAAO,MAAM,WAAW,qBAqBvB,CAAC;AAEF,eAAO,MAAM,cAAc,+BAA8B,mBAAmB,CAAC,MAAM,CAAC,qDAInF,CAAC;AAEF,eAAO,MAAM,mBAAmB,+BAA8B,wBAAwB,CAAC,MAAM,CAAC,qDAW7F,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IndicatorsContainer = exports.ValueContainer = exports.renderValue = exports.Menu = exports.CustomOption = exports.DropdownIndicator = exports.isGroup = exports.SelectContainer = void 0;
|
|
3
|
+
exports.IndicatorsContainer = exports.ValueContainer = exports.renderValue = exports.MenuList = exports.Menu = exports.CustomOption = exports.DropdownIndicator = exports.isGroup = exports.SelectContainer = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
5
5
|
const react_select_1 = require("react-select");
|
|
6
|
+
const SelectComponents_styles_1 = require("./SelectComponents.styles");
|
|
6
7
|
const Icon_1 = require("../Icon");
|
|
7
8
|
const ArrowDown_1 = require("../Icon/ArrowDown");
|
|
8
9
|
const enums_1 = require("../types/enums");
|
|
@@ -53,6 +54,20 @@ const Menu = (dataUieName, css) => (props) => {
|
|
|
53
54
|
}), children: children }) }));
|
|
54
55
|
};
|
|
55
56
|
exports.Menu = Menu;
|
|
57
|
+
// eslint-disable-next-line react/display-name
|
|
58
|
+
const MenuList = (menuListHeading, dataUieName) => (props) => {
|
|
59
|
+
const { selectProps, children } = props;
|
|
60
|
+
const handleClose = () => {
|
|
61
|
+
if (selectProps && selectProps.onMenuClose) {
|
|
62
|
+
selectProps.onMenuClose();
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
return ((0, jsx_runtime_1.jsx)(react_select_1.components.MenuList, { ...props, children: (0, jsx_runtime_1.jsxs)("div", { ...(dataUieName && {
|
|
66
|
+
'data-uie-name': `menu-list-${dataUieName}`,
|
|
67
|
+
}), children: [(0, jsx_runtime_1.jsxs)("div", { css: (theme) => (0, SelectComponents_styles_1.menuListHeadingContainerStyles)(theme), children: [menuListHeading, (0, jsx_runtime_1.jsx)("button", { onClick: handleClose, css: SelectComponents_styles_1.menuListCloseButtonStyles, "aria-label": `Close: ${menuListHeading}`, children: (0, jsx_runtime_1.jsx)(Icon_1.CloseIcon, { width: 16, height: 16 }) })] }), children] }) }));
|
|
68
|
+
};
|
|
69
|
+
exports.MenuList = MenuList;
|
|
70
|
+
exports.MenuList.displayName = 'MenuList';
|
|
56
71
|
const renderValue = value => {
|
|
57
72
|
if (Array.isArray(value)) {
|
|
58
73
|
const currentValue = (i) => value[i].props.children;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CSSObject } from '@emotion/react';
|
|
2
|
+
import { Theme } from '../Theme/Theme';
|
|
3
|
+
export declare const menuListHeadingContainerStyles: (theme: Theme) => CSSObject;
|
|
4
|
+
export declare const menuListCloseButtonStyles: CSSObject;
|
|
5
|
+
//# sourceMappingURL=SelectComponents.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectComponents.styles.d.ts","sourceRoot":"","sources":["../../src/Form/SelectComponents.styles.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAAC,KAAK,EAAC,MAAM,gBAAgB,CAAC;AAErC,eAAO,MAAM,8BAA8B,UAAW,KAAK,KAAG,SAO5D,CAAC;AAEH,eAAO,MAAM,yBAAyB,EAAE,SAOvC,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Wire
|
|
4
|
+
* Copyright (C) 2024 Wire Swiss GmbH
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU General Public License as published by
|
|
8
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
9
|
+
* (at your option) any later version.
|
|
10
|
+
*
|
|
11
|
+
* This program is distributed in the hope that it will be useful,
|
|
12
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
+
* GNU General Public License for more details.
|
|
15
|
+
*
|
|
16
|
+
* You should have received a copy of the GNU General Public License
|
|
17
|
+
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.menuListCloseButtonStyles = exports.menuListHeadingContainerStyles = void 0;
|
|
22
|
+
const menuListHeadingContainerStyles = (theme) => ({
|
|
23
|
+
display: 'flex',
|
|
24
|
+
justifyContent: 'space-between',
|
|
25
|
+
alignItems: 'center',
|
|
26
|
+
fontSize: theme.fontSizes.medium,
|
|
27
|
+
fontWeight: 600,
|
|
28
|
+
padding: '8px 16px',
|
|
29
|
+
});
|
|
30
|
+
exports.menuListHeadingContainerStyles = menuListHeadingContainerStyles;
|
|
31
|
+
exports.menuListCloseButtonStyles = {
|
|
32
|
+
background: 'transparent',
|
|
33
|
+
border: 'none',
|
|
34
|
+
cursor: 'pointer',
|
|
35
|
+
padding: 0,
|
|
36
|
+
display: 'flex',
|
|
37
|
+
alignItems: 'center',
|
|
38
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FolderIcon.d.ts","sourceRoot":"","sources":["../../../src/Icon/Files/FolderIcon.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAU,YAAY,EAAC,MAAM,YAAY,CAAC;AAEjD,eAAO,MAAM,UAAU,iBAAgB,YAAY,qDAalD,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FolderIcon = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
5
|
+
/*
|
|
6
|
+
* Wire
|
|
7
|
+
* Copyright (C) 2025 Wire Swiss GmbH
|
|
8
|
+
*
|
|
9
|
+
* This program is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const SVGIcon_1 = require("../SVGIcon");
|
|
24
|
+
const FolderIcon = ({ ...props }) => {
|
|
25
|
+
return ((0, jsx_runtime_1.jsxs)(SVGIcon_1.SVGIcon, { realWidth: 14, realHeight: 16, fill: "none", ...props, children: [(0, jsx_runtime_1.jsx)("path", { fill: "var(--folder-icon-bg)", d: "M11.798 12c.318 0 .623-.124.848-.345.225-.22.352-.52.352-.832V4.941c0-.312-.127-.611-.352-.832a1.212 1.212 0 0 0-.848-.344h-4.74a1.22 1.22 0 0 1-.576-.138 1.192 1.192 0 0 1-.438-.392l-.486-.706a1.191 1.191 0 0 0-.433-.388A1.22 1.22 0 0 0 4.555 2H2.199c-.318 0-.624.124-.849.345-.225.22-.351.52-.351.831v7.647c0 .313.126.612.351.832.225.221.53.345.849.345h9.6ZM.998 6.095h12-12Z" }), (0, jsx_runtime_1.jsx)("path", { stroke: "var(--folder-icon-stroke)", d: "M.998 6.095h12M11.798 12c.318 0 .623-.124.848-.345.225-.22.352-.52.352-.832V4.941c0-.312-.127-.611-.352-.832a1.212 1.212 0 0 0-.848-.344h-4.74a1.22 1.22 0 0 1-.576-.138 1.192 1.192 0 0 1-.438-.392l-.486-.706a1.191 1.191 0 0 0-.433-.388A1.22 1.22 0 0 0 4.555 2H2.199c-.318 0-.624.124-.849.345-.225.22-.351.52-.351.831v7.647c0 .313.126.612.351.832.225.221.53.345.849.345h9.6Z" })] }));
|
|
26
|
+
};
|
|
27
|
+
exports.FolderIcon = FolderIcon;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultipleFilesIcon.d.ts","sourceRoot":"","sources":["../../../src/Icon/Files/MultipleFilesIcon.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAU,YAAY,EAAC,MAAM,YAAY,CAAC;AAEjD,eAAO,MAAM,iBAAiB,iBAAgB,YAAY,qDAezD,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MultipleFilesIcon = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
5
|
+
/*
|
|
6
|
+
* Wire
|
|
7
|
+
* Copyright (C) 2025 Wire Swiss GmbH
|
|
8
|
+
*
|
|
9
|
+
* This program is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const SVGIcon_1 = require("../SVGIcon");
|
|
24
|
+
const MultipleFilesIcon = ({ ...props }) => {
|
|
25
|
+
return ((0, jsx_runtime_1.jsxs)(SVGIcon_1.SVGIcon, { realWidth: 14, realHeight: 16, fill: "none", ...props, children: [(0, jsx_runtime_1.jsx)("path", { fill: "var(--multiple-file-icon-bg)", stroke: "var(--multiple-file-icon-stroke)", d: "M5.498 2.538c0-.573.465-1.038 1.038-1.038h4.923c.574 0 1.039.465 1.039 1.038v5.543c0 .353-.14.692-.387.944l-.905.92a1.346 1.346 0 0 1-.96.401h-3.71a1.039 1.039 0 0 1-1.038-1.038v-6.77Z" }), (0, jsx_runtime_1.jsx)("path", { stroke: "var(--multiple-file-icon-stroke)", d: "M11.998 8.077a1.926 1.926 0 0 0-2 1.923M3.498 4.5v6.461c0 .85.689 1.539 1.538 1.539h4.462" }), (0, jsx_runtime_1.jsx)("path", { stroke: "var(--multiple-file-icon-stroke)", d: "M1.498 7.5v5.461c0 .85.689 1.539 1.538 1.539h4.462" })] }));
|
|
26
|
+
};
|
|
27
|
+
exports.MultipleFilesIcon = MultipleFilesIcon;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextFileIcon.d.ts","sourceRoot":"","sources":["../../../src/Icon/Files/TextFileIcon.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAU,YAAY,EAAC,MAAM,YAAY,CAAC;AAEjD,eAAO,MAAM,YAAY,iBAAgB,YAAY,qDAmBpD,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TextFileIcon = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
5
|
+
/*
|
|
6
|
+
* Wire
|
|
7
|
+
* Copyright (C) 2025 Wire Swiss GmbH
|
|
8
|
+
*
|
|
9
|
+
* This program is free software: you can redistribute it and/or modify
|
|
10
|
+
* it under the terms of the GNU General Public License as published by
|
|
11
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
* (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This program is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
* GNU General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU General Public License
|
|
20
|
+
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const SVGIcon_1 = require("../SVGIcon");
|
|
24
|
+
const TextFileIcon = ({ ...props }) => {
|
|
25
|
+
return ((0, jsx_runtime_1.jsxs)(SVGIcon_1.SVGIcon, { realWidth: 14, realHeight: 16, fill: "none", ...props, children: [(0, jsx_runtime_1.jsx)("path", { d: "M0.5 3.5C0.5 2.39543 1.39543 1.5 2.5 1.5H10.5C11.6046 1.5 12.5 2.39543 12.5 3.5V11.5063C12.5 12.1626 12.2419 12.7926 11.7815 13.2603L10.3108 14.754C9.84094 15.2312 9.19916 15.5 8.52938 15.5H2.5C1.39543 15.5 0.5 14.6046 0.5 13.5V3.5Z", fill: "var(--text-file-icon-bg)", stroke: "var(--text-file-icon-stroke)" }), (0, jsx_runtime_1.jsx)("path", { d: "M12.5 11.5V11.5C10.2909 11.5 8.5 13.2909 8.5 15.5V15.5", stroke: "var(--text-file-icon-stroke)" }), (0, jsx_runtime_1.jsx)("path", { d: "M7 2L7 1", stroke: "var(--text-file-icon-stroke)", strokeLinecap: "round" }), (0, jsx_runtime_1.jsx)("path", { d: "M11 2L11 1", stroke: "var(--text-file-icon-stroke)", strokeLinecap: "round" }), (0, jsx_runtime_1.jsx)("path", { d: "M5 2L5 1", stroke: "var(--text-file-icon-stroke)", strokeLinecap: "round" }), (0, jsx_runtime_1.jsx)("path", { d: "M9 2L9 1", stroke: "var(--text-file-icon-stroke)", strokeLinecap: "round" }), (0, jsx_runtime_1.jsx)("path", { d: "M3 2L3 1", stroke: "var(--text-file-icon-stroke)", strokeLinecap: "round" }), (0, jsx_runtime_1.jsx)("path", { d: "M3 5H9", stroke: "var(--text-file-icon-stroke)", strokeLinecap: "round" }), (0, jsx_runtime_1.jsx)("path", { d: "M3 8H9", stroke: "var(--text-file-icon-stroke)", strokeLinecap: "round" }), (0, jsx_runtime_1.jsx)("path", { d: "M3 11H6", stroke: "var(--text-file-icon-stroke)", strokeLinecap: "round" })] }));
|
|
26
|
+
};
|
|
27
|
+
exports.TextFileIcon = TextFileIcon;
|
package/lib/Icon/index.d.ts
CHANGED
|
@@ -106,4 +106,7 @@ export * from './Files/PdfFileIcon';
|
|
|
106
106
|
export * from './Files/PresentationFileIcon';
|
|
107
107
|
export * from './Files/SpreadsheetFileIcon';
|
|
108
108
|
export * from './Files/VideoFileIcon';
|
|
109
|
+
export * from './Files/TextFileIcon';
|
|
110
|
+
export * from './Files/FolderIcon';
|
|
111
|
+
export * from './Files/MultipleFilesIcon';
|
|
109
112
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/Icon/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Icon/index.ts"],"names":[],"mappings":"AAmBA,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAA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9B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAElC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AAEjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC"}
|
package/lib/Icon/index.js
CHANGED
|
@@ -141,3 +141,6 @@ __exportStar(require("./Files/PdfFileIcon"), exports);
|
|
|
141
141
|
__exportStar(require("./Files/PresentationFileIcon"), exports);
|
|
142
142
|
__exportStar(require("./Files/SpreadsheetFileIcon"), exports);
|
|
143
143
|
__exportStar(require("./Files/VideoFileIcon"), exports);
|
|
144
|
+
__exportStar(require("./Files/TextFileIcon"), exports);
|
|
145
|
+
__exportStar(require("./Files/FolderIcon"), exports);
|
|
146
|
+
__exportStar(require("./Files/MultipleFilesIcon"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalCssVariables.d.ts","sourceRoot":"","sources":["../../src/Theme/GlobalCssVariables.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"GlobalCssVariables.d.ts","sourceRoot":"","sources":["../../src/Theme/GlobalCssVariables.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAkOzC,eAAO,MAAM,kBAAkB;iBA9NZ,SAAS;gBAsGV,SAAS;wBAsGD,SAAS;CAsBlC,CAAC"}
|
|
@@ -88,9 +88,18 @@ const light = () => ({
|
|
|
88
88
|
// Video File Icon
|
|
89
89
|
'--video-file-icon-bg': Identity_1.COLOR_V2.RED_LIGHT_50,
|
|
90
90
|
'--video-file-icon-stroke': Identity_1.COLOR_V2.RED_LIGHT_700,
|
|
91
|
+
// Text File Icon
|
|
92
|
+
'--text-file-icon-bg': Identity_1.COLOR_V2.AMBER_LIGHT_50,
|
|
93
|
+
'--text-file-icon-stroke': Identity_1.COLOR_V2.AMBER_LIGHT_700,
|
|
91
94
|
// Other File Icon
|
|
92
95
|
'--other-file-icon-bg': Identity_1.COLOR_V2.WHITE,
|
|
93
96
|
'--other-file-icon-stroke': Identity_1.COLOR_V2.GRAY_70,
|
|
97
|
+
// Folder Icon
|
|
98
|
+
'--folder-icon-bg': Identity_1.COLOR_V2.BLUE_LIGHT_50,
|
|
99
|
+
'--folder-icon-stroke': Identity_1.COLOR_V2.BLUE_LIGHT_700,
|
|
100
|
+
// Multiple File Icon
|
|
101
|
+
'--multiple-file-icon-bg': Identity_1.COLOR_V2.WHITE,
|
|
102
|
+
'--multiple-file-icon-stroke': Identity_1.COLOR_V2.GRAY_70,
|
|
94
103
|
});
|
|
95
104
|
const dark = () => ({
|
|
96
105
|
// Checkbox
|
|
@@ -160,9 +169,18 @@ const dark = () => ({
|
|
|
160
169
|
// Video File Icon
|
|
161
170
|
'--video-file-icon-bg': Identity_1.COLOR_V2.RED_DARK_50,
|
|
162
171
|
'--video-file-icon-stroke': Identity_1.COLOR_V2.RED_DARK_700,
|
|
172
|
+
// Text File Icon
|
|
173
|
+
'--text-file-icon-bg': Identity_1.COLOR_V2.AMBER_DARK_50,
|
|
174
|
+
'--text-file-icon-stroke': Identity_1.COLOR_V2.AMBER_DARK_700,
|
|
163
175
|
// Other File Icon
|
|
164
|
-
'--other-file-icon-bg': Identity_1.COLOR_V2.
|
|
176
|
+
'--other-file-icon-bg': Identity_1.COLOR_V2.GRAY_95,
|
|
165
177
|
'--other-file-icon-stroke': Identity_1.COLOR_V2.GRAY_60,
|
|
178
|
+
// Folder Icon
|
|
179
|
+
'--folder-icon-bg': Identity_1.COLOR_V2.BLUE_DARK_50,
|
|
180
|
+
'--folder-icon-stroke': Identity_1.COLOR_V2.BLUE_DARK_700,
|
|
181
|
+
// Multiple File Icon
|
|
182
|
+
'--multiple-file-icon-bg': Identity_1.COLOR_V2.GRAY_95,
|
|
183
|
+
'--multiple-file-icon-stroke': Identity_1.COLOR_V2.GRAY_60,
|
|
166
184
|
});
|
|
167
185
|
const accentColors = () => ({
|
|
168
186
|
'--accent-color': Identity_1.COLOR_V2.BLUE_LIGHT_500,
|
package/package.json
CHANGED