@eyesee/ui-components 0.9.0 → 0.10.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.
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @callback ImagesIconClickHandler
|
|
3
|
+
* @returns {void}
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Shared {@link IconProps} for this icon. All optional.
|
|
7
|
+
*
|
|
8
|
+
* @typedef {object} ImagesIconProps
|
|
9
|
+
*
|
|
10
|
+
* @property {import('./constants').IconSize} [iconSize='m']
|
|
11
|
+
* T-shirt size token. Controls `width`/`height` and stroke width. Default `'m'`.
|
|
12
|
+
* @property {ImagesIconClickHandler} [onClick=null]
|
|
13
|
+
* Click handler. When set the icon is clickable. Default `null`.
|
|
14
|
+
* @property {string} [fill='none']
|
|
15
|
+
* SVG fill colour. Default `'none'`.
|
|
16
|
+
* @property {string} [strokeColor='currentColor']
|
|
17
|
+
* SVG stroke colour. Accepts any valid CSS colour. Default `'currentColor'`.
|
|
18
|
+
* @property {string} [strokeColorOnHover]
|
|
19
|
+
* Stroke colour applied on hover.
|
|
20
|
+
* @property {string} [fillOnHover]
|
|
21
|
+
* Fill colour applied on hover.
|
|
22
|
+
* @property {boolean} [disabled]
|
|
23
|
+
* Applies disabled colour tokens and ignores clicks.
|
|
24
|
+
* @property {boolean} [animated=false]
|
|
25
|
+
* When `true`, applies the spinner animation class. Default `false`.
|
|
26
|
+
* @property {number} [viewBoxSize]
|
|
27
|
+
* Custom viewBox size for icons that are not 32×32. Sets `0 0 {n} {n}`.
|
|
28
|
+
*
|
|
29
|
+
* @see {@link IconProps}
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
* SVG multiple-images icon (overlapping frames with mountain-and-sun silhouettes)
|
|
33
|
+
* used to represent image galleries, collections, or multiple media files.
|
|
34
|
+
*
|
|
35
|
+
* ## Props
|
|
36
|
+
*
|
|
37
|
+
* All optional.
|
|
38
|
+
*
|
|
39
|
+
* **iconSize** `'s' | 'm' | 'l' | 'xl' | 'xxl' | '4xl'` — default `'m'`
|
|
40
|
+
* T-shirt size token. Controls `width`/`height` and stroke width.
|
|
41
|
+
*
|
|
42
|
+
* **onClick** `() => void` — default `null`
|
|
43
|
+
* Click handler. When set the icon is clickable.
|
|
44
|
+
*
|
|
45
|
+
* **fill** `string` — default `'none'`
|
|
46
|
+
* SVG fill colour.
|
|
47
|
+
*
|
|
48
|
+
* **strokeColor** `string` — default `'currentColor'`
|
|
49
|
+
* SVG stroke colour. Accepts any valid CSS colour.
|
|
50
|
+
*
|
|
51
|
+
* **strokeColorOnHover** `string` — no default
|
|
52
|
+
* Stroke colour applied on hover.
|
|
53
|
+
*
|
|
54
|
+
* **fillOnHover** `string` — no default
|
|
55
|
+
* Fill colour applied on hover.
|
|
56
|
+
*
|
|
57
|
+
* **disabled** `boolean` — no default
|
|
58
|
+
* Applies disabled colour tokens and ignores clicks.
|
|
59
|
+
*
|
|
60
|
+
* **animated** `boolean` — default `false`
|
|
61
|
+
* When `true`, applies the spinner animation class.
|
|
62
|
+
*
|
|
63
|
+
* **viewBoxSize** `number` — no default
|
|
64
|
+
* Custom viewBox size for icons that are not 32×32. Omit → `0 0 32 32`.
|
|
65
|
+
*
|
|
66
|
+
* @param {ImagesIconProps} props
|
|
67
|
+
* @returns {import('react').ReactElement}
|
|
68
|
+
*
|
|
69
|
+
* @example <caption>Playground</caption>
|
|
70
|
+
* import { ImagesIcon } from '@eyesee/ui-components/icons';
|
|
71
|
+
*
|
|
72
|
+
* <ImagesIcon iconSize="m" strokeColor="#333333" fill="none" />
|
|
73
|
+
*
|
|
74
|
+
* @example <caption>Gallery</caption>
|
|
75
|
+
* import { ImagesIcon } from '@eyesee/ui-components/icons';
|
|
76
|
+
*
|
|
77
|
+
* <ImagesIcon iconSize="s" strokeColor="#333333" fill="none" />
|
|
78
|
+
* <ImagesIcon iconSize="m" strokeColor="#333333" fill="none" />
|
|
79
|
+
* <ImagesIcon iconSize="l" strokeColor="#333333" fill="none" />
|
|
80
|
+
*/
|
|
81
|
+
export const ImagesIcon: (props: IconProps) => import("react").JSX.Element;
|
|
82
|
+
export type ImagesIconClickHandler = () => void;
|
|
83
|
+
/**
|
|
84
|
+
* Shared {@link IconProps} for this icon. All optional.
|
|
85
|
+
*/
|
|
86
|
+
export type ImagesIconProps = {
|
|
87
|
+
/**
|
|
88
|
+
* T-shirt size token. Controls `width`/`height` and stroke width. Default `'m'`.
|
|
89
|
+
*/
|
|
90
|
+
iconSize?: import("./constants").IconSize;
|
|
91
|
+
/**
|
|
92
|
+
* Click handler. When set the icon is clickable. Default `null`.
|
|
93
|
+
*/
|
|
94
|
+
onClick?: ImagesIconClickHandler;
|
|
95
|
+
/**
|
|
96
|
+
* SVG fill colour. Default `'none'`.
|
|
97
|
+
*/
|
|
98
|
+
fill?: string;
|
|
99
|
+
/**
|
|
100
|
+
* SVG stroke colour. Accepts any valid CSS colour. Default `'currentColor'`.
|
|
101
|
+
*/
|
|
102
|
+
strokeColor?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Stroke colour applied on hover.
|
|
105
|
+
*/
|
|
106
|
+
strokeColorOnHover?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Fill colour applied on hover.
|
|
109
|
+
*/
|
|
110
|
+
fillOnHover?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Applies disabled colour tokens and ignores clicks.
|
|
113
|
+
*/
|
|
114
|
+
disabled?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* When `true`, applies the spinner animation class. Default `false`.
|
|
117
|
+
*/
|
|
118
|
+
animated?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Custom viewBox size for icons that are not 32×32. Sets `0 0 {n} {n}`.
|
|
121
|
+
*/
|
|
122
|
+
viewBoxSize?: number;
|
|
123
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { createIcon as e } from "./createIcon.js";
|
|
3
|
+
const s = e(({ strokeColor: C, strokeWidth: o }) => /* @__PURE__ */ r(
|
|
4
|
+
"path",
|
|
5
|
+
{
|
|
6
|
+
d: "M3.34333 6.05001C3.08779 6.19569 2.87523 6.40626 2.72715 6.66043C2.57906 6.91459 2.50071 7.20335 2.5 7.49751V15.8308C2.5 16.7475 3.25 17.4975 4.16667 17.4975H12.5C13.125 17.4975 13.465 17.1767 13.75 16.6642M14.1667 5.83333H14.175M5.83333 10.8334L8.87 7.79669C8.96364 7.70295 9.07484 7.6286 9.19724 7.57786C9.31964 7.52713 9.45084 7.50102 9.58333 7.50102C9.71583 7.50102 9.84703 7.52713 9.96942 7.57786C10.0918 7.6286 10.203 7.70295 10.2967 7.79669L13.3333 10.8334M12.5 10L13.87 8.63002C13.9636 8.53629 14.0748 8.46193 14.1972 8.4112C14.3196 8.36046 14.4508 8.33435 14.5833 8.33435C14.7158 8.33435 14.847 8.36046 14.9694 8.4112C15.0918 8.46193 15.203 8.53629 15.2967 8.63002L17.5 10.8334M5.83333 4.7225C5.83333 4.13306 6.06749 3.56775 6.48429 3.15096C6.90109 2.73416 7.46639 2.5 8.05583 2.5H15.2775C15.5694 2.5 15.8584 2.55749 16.128 2.66918C16.3977 2.78087 16.6427 2.94458 16.849 3.15096C17.0554 3.35733 17.2191 3.60234 17.3308 3.87199C17.4425 4.14163 17.5 4.43064 17.5 4.7225V11.9442C17.5 12.236 17.4425 12.525 17.3308 12.7947C17.2191 13.0643 17.0554 13.3093 16.849 13.5157C16.6427 13.7221 16.3977 13.8858 16.128 13.9975C15.8584 14.1092 15.5694 14.1667 15.2775 14.1667H8.05583C7.46639 14.1667 6.90109 13.9325 6.48429 13.5157C6.06749 13.0989 5.83333 12.5336 5.83333 11.9442V4.7225Z",
|
|
7
|
+
stroke: C,
|
|
8
|
+
strokeWidth: o,
|
|
9
|
+
strokeLinecap: "round",
|
|
10
|
+
strokeLinejoin: "round"
|
|
11
|
+
}
|
|
12
|
+
));
|
|
13
|
+
export {
|
|
14
|
+
s as ImagesIcon
|
|
15
|
+
};
|
|
@@ -207,6 +207,7 @@ import { SquareAddIcon as Op } from "./SquareAddIcon.js";
|
|
|
207
207
|
import { RectanglesAddIcon as Vp } from "./RectanglesAddIcon.js";
|
|
208
208
|
import { ColumnIcon as zp } from "./ColumnIcon.js";
|
|
209
209
|
import { ListCheckIcon as Np } from "./ListCheckIcon.js";
|
|
210
|
+
import { ImagesIcon as Gp } from "./ImagesIcon.js";
|
|
210
211
|
export {
|
|
211
212
|
L as AdIcon,
|
|
212
213
|
v as AddMessageIcon,
|
|
@@ -311,6 +312,7 @@ export {
|
|
|
311
312
|
Xe as ImageOffIcon,
|
|
312
313
|
Je as ImageStarIcon,
|
|
313
314
|
Ye as ImageUploadIcon,
|
|
315
|
+
Gp as ImagesIcon,
|
|
314
316
|
Qe as InfoIcon,
|
|
315
317
|
$e as ItalicIcon,
|
|
316
318
|
rt as LanguageIcon,
|