@eyesee/ui-components 0.10.0 → 0.12.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/dist/components/Tab/Tab.module.scss.js +24 -24
- package/dist/components/icons-v2/ImagesIcon.js +1 -1
- package/dist/components/icons-v2/LayoutColumnsIcon.d.ts +122 -0
- package/dist/components/icons-v2/LayoutColumnsIcon.js +15 -0
- package/dist/components/icons-v2/LayoutRowsIcon.d.ts +122 -0
- package/dist/components/icons-v2/LayoutRowsIcon.js +15 -0
- package/dist/components/icons-v2/index.d.ts +2 -0
- package/dist/components/icons-v2/index.js +242 -238
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const _ = "
|
|
1
|
+
const _ = "_content_1x9v1_3", t = "_tab_1x9v1_9", o = "_span_1x9v1_14", n = "_sm_1x9v1_17", e = "_md_1x9v1_20", s = "_lg_1x9v1_23", c = "_xl_1x9v1_26", l = "_selected_1x9v1_29", d = "_primary_1x9v1_29", r = "_disabled_1x9v1_29", x = "_secondary_1x9v1_32", a = "_underline_1x9v1_35", v = "_button_1x9v1_45", i = "_outline_1x9v1_50", u = "_color_1x9v1_50", m = "_white_1x9v1_50", b = "_standalone_1x9v1_53", h = "_left_1x9v1_57", p = "_right_1x9v1_60", y = "_shouldRemoveBorder_1x9v1_63", g = {
|
|
2
2
|
content: _,
|
|
3
3
|
tab: t,
|
|
4
4
|
span: o,
|
|
@@ -7,39 +7,39 @@ const _ = "_content_18h63_3", t = "_tab_18h63_9", o = "_span_18h63_14", n = "_sm
|
|
|
7
7
|
lg: s,
|
|
8
8
|
xl: c,
|
|
9
9
|
selected: l,
|
|
10
|
-
primary:
|
|
11
|
-
disabled:
|
|
12
|
-
secondary:
|
|
10
|
+
primary: d,
|
|
11
|
+
disabled: r,
|
|
12
|
+
secondary: x,
|
|
13
13
|
underline: a,
|
|
14
|
-
button:
|
|
15
|
-
outline:
|
|
16
|
-
color:
|
|
17
|
-
white:
|
|
18
|
-
standalone:
|
|
19
|
-
left:
|
|
20
|
-
right:
|
|
21
|
-
shouldRemoveBorder:
|
|
14
|
+
button: v,
|
|
15
|
+
outline: i,
|
|
16
|
+
color: u,
|
|
17
|
+
white: m,
|
|
18
|
+
standalone: b,
|
|
19
|
+
left: h,
|
|
20
|
+
right: p,
|
|
21
|
+
shouldRemoveBorder: y
|
|
22
22
|
};
|
|
23
23
|
export {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
v as button,
|
|
25
|
+
u as color,
|
|
26
26
|
_ as content,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
g as default,
|
|
28
|
+
r as disabled,
|
|
29
|
+
h as left,
|
|
30
30
|
s as lg,
|
|
31
31
|
e as md,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
i as outline,
|
|
33
|
+
d as primary,
|
|
34
|
+
p as right,
|
|
35
|
+
x as secondary,
|
|
36
36
|
l as selected,
|
|
37
|
-
|
|
37
|
+
y as shouldRemoveBorder,
|
|
38
38
|
n as sm,
|
|
39
39
|
o as span,
|
|
40
|
-
|
|
40
|
+
b as standalone,
|
|
41
41
|
t as tab,
|
|
42
42
|
a as underline,
|
|
43
|
-
|
|
43
|
+
m as white,
|
|
44
44
|
c as xl
|
|
45
45
|
};
|
|
@@ -3,7 +3,7 @@ import { createIcon as e } from "./createIcon.js";
|
|
|
3
3
|
const s = e(({ strokeColor: C, strokeWidth: o }) => /* @__PURE__ */ r(
|
|
4
4
|
"path",
|
|
5
5
|
{
|
|
6
|
-
d: "
|
|
6
|
+
d: "M5.34933 9.68001C4.94046 9.91311 4.60036 10.25 4.36343 10.6567C4.1265 11.0634 4.00113 11.5254 4 11.996V25.3293C4 26.796 5.2 27.996 6.66667 27.996H20C21 27.996 21.544 27.4827 22 26.6627M22.6667 9.33333H22.68M9.33333 17.3334L14.192 12.4747C14.3418 12.3247 14.5198 12.2058 14.7156 12.1246C14.9114 12.0434 15.1213 12.0016 15.3333 12.0016C15.5453 12.0016 15.7552 12.0434 15.9511 12.1246C16.1469 12.2058 16.3248 12.3247 16.4747 12.4747L21.3333 17.3334M20 16L22.192 13.808C22.3418 13.6581 22.5198 13.5391 22.7156 13.4579C22.9114 13.3767 23.1213 13.335 23.3333 13.335C23.5453 13.335 23.7552 13.3767 23.9511 13.4579C24.1469 13.5391 24.3248 13.6581 24.4747 13.808L28 17.3334M9.33333 7.556C9.33333 6.61289 9.70798 5.70841 10.3749 5.04153C11.0417 4.37465 11.9462 4 12.8893 4H24.444C24.911 4 25.3734 4.09198 25.8048 4.27068C26.2363 4.44939 26.6283 4.71132 26.9585 5.04153C27.2887 5.37173 27.5506 5.76374 27.7293 6.19518C27.908 6.62661 28 7.08902 28 7.556V19.1107C28 19.5776 27.908 20.0401 27.7293 20.4715C27.5506 20.9029 27.2887 21.2949 26.9585 21.6251C26.6283 21.9553 26.2363 22.2173 25.8048 22.396C25.3734 22.5747 24.911 22.6667 24.444 22.6667H12.8893C11.9462 22.6667 11.0417 22.292 10.3749 21.6251C9.70798 20.9583 9.33333 20.0538 9.33333 19.1107V7.556Z",
|
|
7
7
|
stroke: C,
|
|
8
8
|
strokeWidth: o,
|
|
9
9
|
strokeLinecap: "round",
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @callback LayoutColumnsIconClickHandler
|
|
3
|
+
* @returns {void}
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Shared {@link IconProps} for this icon. All optional.
|
|
7
|
+
*
|
|
8
|
+
* @typedef {object} LayoutColumnsIconProps
|
|
9
|
+
*
|
|
10
|
+
* @property {import('./constants').IconSize} [iconSize='m']
|
|
11
|
+
* T-shirt size token. Controls `width`/`height` and stroke width. Default `'m'`.
|
|
12
|
+
* @property {LayoutColumnsIconClickHandler} [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 layout columns icon (rounded rectangle with a vertical divider)
|
|
33
|
+
* used for column-based or side-by-side layout controls.
|
|
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 {LayoutColumnsIconProps} props
|
|
67
|
+
* @returns {import('react').ReactElement}
|
|
68
|
+
*
|
|
69
|
+
* @example <caption>Default</caption>
|
|
70
|
+
* import { LayoutColumnsIcon } from '@eyesee/ui-components/icons';
|
|
71
|
+
*
|
|
72
|
+
* <LayoutColumnsIcon iconSize="m" strokeColor="currentColor" />
|
|
73
|
+
*
|
|
74
|
+
* @example <caption>Layout toggle</caption>
|
|
75
|
+
* import { LayoutColumnsIcon, LayoutRowsIcon } from '@eyesee/ui-components/icons';
|
|
76
|
+
*
|
|
77
|
+
* <LayoutColumnsIcon iconSize="m" strokeColor="currentColor" />
|
|
78
|
+
* <LayoutRowsIcon iconSize="m" strokeColor="currentColor" />
|
|
79
|
+
*/
|
|
80
|
+
export const LayoutColumnsIcon: (props: IconProps) => import("react").JSX.Element;
|
|
81
|
+
export type LayoutColumnsIconClickHandler = () => void;
|
|
82
|
+
/**
|
|
83
|
+
* Shared {@link IconProps} for this icon. All optional.
|
|
84
|
+
*/
|
|
85
|
+
export type LayoutColumnsIconProps = {
|
|
86
|
+
/**
|
|
87
|
+
* T-shirt size token. Controls `width`/`height` and stroke width. Default `'m'`.
|
|
88
|
+
*/
|
|
89
|
+
iconSize?: import("./constants").IconSize;
|
|
90
|
+
/**
|
|
91
|
+
* Click handler. When set the icon is clickable. Default `null`.
|
|
92
|
+
*/
|
|
93
|
+
onClick?: LayoutColumnsIconClickHandler;
|
|
94
|
+
/**
|
|
95
|
+
* SVG fill colour. Default `'none'`.
|
|
96
|
+
*/
|
|
97
|
+
fill?: string;
|
|
98
|
+
/**
|
|
99
|
+
* SVG stroke colour. Accepts any valid CSS colour. Default `'currentColor'`.
|
|
100
|
+
*/
|
|
101
|
+
strokeColor?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Stroke colour applied on hover.
|
|
104
|
+
*/
|
|
105
|
+
strokeColorOnHover?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Fill colour applied on hover.
|
|
108
|
+
*/
|
|
109
|
+
fillOnHover?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Applies disabled colour tokens and ignores clicks.
|
|
112
|
+
*/
|
|
113
|
+
disabled?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* When `true`, applies the spinner animation class. Default `false`.
|
|
116
|
+
*/
|
|
117
|
+
animated?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Custom viewBox size for icons that are not 32×32. Sets `0 0 {n} {n}`.
|
|
120
|
+
*/
|
|
121
|
+
viewBoxSize?: number;
|
|
122
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { createIcon as n } from "./createIcon.js";
|
|
3
|
+
const s = n(({ strokeColor: o, strokeWidth: r }) => /* @__PURE__ */ t(
|
|
4
|
+
"path",
|
|
5
|
+
{
|
|
6
|
+
d: "M16 4H5.33333C4.97971 4 4.64057 4.14048 4.39052 4.39052C4.14048 4.64057 4 4.97971 4 5.33333V26.6667C4 27.0203 4.14048 27.3594 4.39052 27.6095C4.64057 27.8595 4.97971 28 5.33333 28H16M16 4H26.6667C27.0203 4 27.3594 4.14048 27.6095 4.39052C27.8595 4.64057 28 4.97971 28 5.33333V26.6667C28 27.0203 27.8595 27.3594 27.6095 27.6095C27.3594 27.8595 27.0203 28 26.6667 28H16M16 4V28",
|
|
7
|
+
stroke: o,
|
|
8
|
+
strokeWidth: r,
|
|
9
|
+
strokeLinecap: "round",
|
|
10
|
+
strokeLinejoin: "round"
|
|
11
|
+
}
|
|
12
|
+
));
|
|
13
|
+
export {
|
|
14
|
+
s as LayoutColumnsIcon
|
|
15
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @callback LayoutRowsIconClickHandler
|
|
3
|
+
* @returns {void}
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Shared {@link IconProps} for this icon. All optional.
|
|
7
|
+
*
|
|
8
|
+
* @typedef {object} LayoutRowsIconProps
|
|
9
|
+
*
|
|
10
|
+
* @property {import('./constants').IconSize} [iconSize='m']
|
|
11
|
+
* T-shirt size token. Controls `width`/`height` and stroke width. Default `'m'`.
|
|
12
|
+
* @property {LayoutRowsIconClickHandler} [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 layout rows icon (rounded rectangle with a horizontal divider)
|
|
33
|
+
* used for row-based or stacked layout controls.
|
|
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 {LayoutRowsIconProps} props
|
|
67
|
+
* @returns {import('react').ReactElement}
|
|
68
|
+
*
|
|
69
|
+
* @example <caption>Default</caption>
|
|
70
|
+
* import { LayoutRowsIcon } from '@eyesee/ui-components/icons';
|
|
71
|
+
*
|
|
72
|
+
* <LayoutRowsIcon iconSize="m" strokeColor="currentColor" />
|
|
73
|
+
*
|
|
74
|
+
* @example <caption>Layout toggle</caption>
|
|
75
|
+
* import { LayoutColumnsIcon, LayoutRowsIcon } from '@eyesee/ui-components/icons';
|
|
76
|
+
*
|
|
77
|
+
* <LayoutRowsIcon iconSize="m" strokeColor="currentColor" />
|
|
78
|
+
* <LayoutColumnsIcon iconSize="m" strokeColor="currentColor" />
|
|
79
|
+
*/
|
|
80
|
+
export const LayoutRowsIcon: (props: IconProps) => import("react").JSX.Element;
|
|
81
|
+
export type LayoutRowsIconClickHandler = () => void;
|
|
82
|
+
/**
|
|
83
|
+
* Shared {@link IconProps} for this icon. All optional.
|
|
84
|
+
*/
|
|
85
|
+
export type LayoutRowsIconProps = {
|
|
86
|
+
/**
|
|
87
|
+
* T-shirt size token. Controls `width`/`height` and stroke width. Default `'m'`.
|
|
88
|
+
*/
|
|
89
|
+
iconSize?: import("./constants").IconSize;
|
|
90
|
+
/**
|
|
91
|
+
* Click handler. When set the icon is clickable. Default `null`.
|
|
92
|
+
*/
|
|
93
|
+
onClick?: LayoutRowsIconClickHandler;
|
|
94
|
+
/**
|
|
95
|
+
* SVG fill colour. Default `'none'`.
|
|
96
|
+
*/
|
|
97
|
+
fill?: string;
|
|
98
|
+
/**
|
|
99
|
+
* SVG stroke colour. Accepts any valid CSS colour. Default `'currentColor'`.
|
|
100
|
+
*/
|
|
101
|
+
strokeColor?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Stroke colour applied on hover.
|
|
104
|
+
*/
|
|
105
|
+
strokeColorOnHover?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Fill colour applied on hover.
|
|
108
|
+
*/
|
|
109
|
+
fillOnHover?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Applies disabled colour tokens and ignores clicks.
|
|
112
|
+
*/
|
|
113
|
+
disabled?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* When `true`, applies the spinner animation class. Default `false`.
|
|
116
|
+
*/
|
|
117
|
+
animated?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Custom viewBox size for icons that are not 32×32. Sets `0 0 {n} {n}`.
|
|
120
|
+
*/
|
|
121
|
+
viewBoxSize?: number;
|
|
122
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { createIcon as e } from "./createIcon.js";
|
|
3
|
+
const s = e(({ strokeColor: o, strokeWidth: r }) => /* @__PURE__ */ t(
|
|
4
|
+
"path",
|
|
5
|
+
{
|
|
6
|
+
d: "M5.33301 16H26.6663M5.33301 8.00004C5.33301 7.2928 5.61396 6.61452 6.11406 6.11442C6.61415 5.61433 7.29243 5.33337 7.99967 5.33337H23.9997C24.7069 5.33337 25.3852 5.61433 25.8853 6.11442C26.3854 6.61452 26.6663 7.2928 26.6663 8.00004V24C26.6663 24.7073 26.3854 25.3856 25.8853 25.8857C25.3852 26.3858 24.7069 26.6667 23.9997 26.6667H7.99967C7.29243 26.6667 6.61415 26.3858 6.11406 25.8857C5.61396 25.3856 5.33301 24.7073 5.33301 24V8.00004Z",
|
|
7
|
+
stroke: o,
|
|
8
|
+
strokeWidth: r,
|
|
9
|
+
strokeLinecap: "round",
|
|
10
|
+
strokeLinejoin: "round"
|
|
11
|
+
}
|
|
12
|
+
));
|
|
13
|
+
export {
|
|
14
|
+
s as LayoutRowsIcon
|
|
15
|
+
};
|
|
@@ -108,6 +108,8 @@ export { ItalicIcon } from "./ItalicIcon";
|
|
|
108
108
|
export { LanguageIcon } from "./LanguageIcon";
|
|
109
109
|
export { LaunchIcon } from "./LaunchIcon";
|
|
110
110
|
export { LayersIcon } from "./LayersIcon";
|
|
111
|
+
export { LayoutColumnsIcon } from "./LayoutColumnsIcon";
|
|
112
|
+
export { LayoutRowsIcon } from "./LayoutRowsIcon";
|
|
111
113
|
export { LeftSidebarCollapseIcon } from "./LeftSidebarCollapseIcon";
|
|
112
114
|
export { LeftSidebarExpandIcon } from "./LeftSidebarExpandIcon";
|
|
113
115
|
export { LightbulbIcon } from "./LightbulbIcon";
|