@westpac/ui 0.26.0 → 0.27.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/CHANGELOG.md +7 -0
- package/dist/component-type.json +1 -1
- package/dist/components/button/button.component.d.ts +2 -2
- package/dist/components/button/button.styles.js +23 -7
- package/dist/components/button/button.utils.js +2 -2
- package/dist/components/filter/components/filter-buttons/filter-buttons.component.js +24 -9
- package/dist/components/filter/components/filter-buttons/filter-buttons.styles.js +1 -1
- package/dist/components/icon/components/cancel-card-icon.js +8 -18
- package/dist/components/icon/components/child-care-icon.js +6 -6
- package/dist/components/icon/components/child-icon.js +2 -2
- package/dist/components/icon/components/circle-icon.js +9 -19
- package/dist/components/icon/components/drop-left-icon.js +1 -1
- package/dist/components/icon/components/drop-right-icon.js +1 -1
- package/dist/components/icon/components/piggy-bank.js +4 -4
- package/dist/components/icon/components/quick-balance-icon.js +7 -17
- package/dist/components/icon/components/target-icon.d.ts +1 -1
- package/dist/components/icon/components/target-icon.js +3 -9
- package/dist/components/icon/components/x-icon.js +6 -6
- package/dist/components/icon/index.d.ts +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/input/input.component.d.ts +2 -2
- package/dist/components/pictogram/components/informative/sparkle-pictogram.js +15 -15
- package/dist/components/progress-indicator/progress-indicator.component.d.ts +2 -2
- package/dist/components/progress-indicator/progress-indicator.component.js +6 -5
- package/dist/components/progress-indicator/progress-indicator.styles.d.ts +2 -38
- package/dist/components/progress-indicator/progress-indicator.styles.js +1 -14
- package/dist/components/progress-indicator/progress-indicator.types.d.ts +2 -15
- package/dist/components/select/select.component.d.ts +2 -2
- package/dist/components/textarea/textarea.component.d.ts +2 -2
- package/dist/css/westpac-ui.css +9 -133
- package/dist/css/westpac-ui.min.css +9 -133
- package/package.json +4 -4
- package/src/components/button/button.styles.ts +27 -7
- package/src/components/button/button.utils.ts +2 -2
- package/src/components/filter/components/filter-buttons/filter-buttons.component.tsx +55 -51
- package/src/components/filter/components/filter-buttons/filter-buttons.styles.ts +1 -1
- package/src/components/icon/components/cancel-card-icon.tsx +15 -19
- package/src/components/icon/components/child-care-icon.tsx +6 -6
- package/src/components/icon/components/child-icon.tsx +2 -2
- package/src/components/icon/components/circle-icon.tsx +14 -22
- package/src/components/icon/components/drop-left-icon.tsx +1 -1
- package/src/components/icon/components/drop-right-icon.tsx +1 -1
- package/src/components/icon/components/piggy-bank.tsx +4 -4
- package/src/components/icon/components/quick-balance-icon.tsx +15 -19
- package/src/components/icon/components/target-icon.tsx +13 -20
- package/src/components/icon/components/x-icon.tsx +6 -6
- package/src/components/icon/index.ts +1 -1
- package/src/components/pictogram/components/informative/sparkle-pictogram.tsx +15 -15
- package/src/components/progress-indicator/progress-indicator.component.tsx +6 -4
- package/src/components/progress-indicator/progress-indicator.styles.ts +1 -14
- package/src/components/progress-indicator/progress-indicator.types.ts +2 -16
|
@@ -15,8 +15,8 @@ export declare const Button: React.ForwardRefExoticComponent<{
|
|
|
15
15
|
look?: "link" | "primary" | "hero" | "faint" | {
|
|
16
16
|
[x: string]: "link" | "primary" | "hero" | "faint" | undefined;
|
|
17
17
|
} | undefined;
|
|
18
|
-
size?: "small" | "
|
|
19
|
-
[x: string]: "small" | "
|
|
18
|
+
size?: "small" | "xlarge" | "medium" | "large" | {
|
|
19
|
+
[x: string]: "small" | "xlarge" | "medium" | "large" | undefined;
|
|
20
20
|
} | undefined;
|
|
21
21
|
soft?: boolean | {
|
|
22
22
|
[x: string]: boolean | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tv } from 'tailwind-variants';
|
|
2
2
|
export const styles = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
base: 'items-center justify-center rounded
|
|
4
|
+
base: 'items-center justify-center rounded transition-[background] disabled:pointer-events-none disabled:opacity-50 group-first/add-on-before:rounded-r-none group-last/add-on-after:rounded-l-none',
|
|
5
5
|
iconBefore: '',
|
|
6
6
|
iconAfter: '',
|
|
7
7
|
dropdown: 'ml-[0.4em]',
|
|
@@ -10,16 +10,16 @@ export const styles = tv({
|
|
|
10
10
|
variants: {
|
|
11
11
|
size: {
|
|
12
12
|
small: {
|
|
13
|
-
base: 'typography-body-10 px-
|
|
13
|
+
base: 'typography-body-10 px-1.5 active-theme-rams:before:h-[0.0625rem] h-5'
|
|
14
14
|
},
|
|
15
15
|
medium: {
|
|
16
|
-
base: 'typography-body-9 px-2
|
|
16
|
+
base: 'typography-body-9 px-2 active-theme-rams:before:h-0.5 h-6'
|
|
17
17
|
},
|
|
18
18
|
large: {
|
|
19
|
-
base: 'typography-body-9 px-2.5
|
|
19
|
+
base: 'typography-body-9 px-2.5 active-theme-rams:before:h-0.5 h-7'
|
|
20
20
|
},
|
|
21
21
|
xlarge: {
|
|
22
|
-
base: 'typography-body-8 px-3
|
|
22
|
+
base: 'typography-body-8 px-3 active-theme-rams:before:h-1 h-8'
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
look: {
|
|
@@ -96,14 +96,30 @@ export const styles = tv({
|
|
|
96
96
|
'iconBefore'
|
|
97
97
|
],
|
|
98
98
|
hasChildren: true,
|
|
99
|
-
className: 'mr-
|
|
99
|
+
className: 'mr-1'
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
slots: [
|
|
103
103
|
'iconAfter'
|
|
104
104
|
],
|
|
105
105
|
hasChildren: true,
|
|
106
|
-
className: 'ml-
|
|
106
|
+
className: 'ml-1'
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
slots: [
|
|
110
|
+
'iconBefore'
|
|
111
|
+
],
|
|
112
|
+
size: 'xlarge',
|
|
113
|
+
hasChildren: true,
|
|
114
|
+
className: 'mr-1.5'
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
slots: [
|
|
118
|
+
'iconAfter'
|
|
119
|
+
],
|
|
120
|
+
size: 'xlarge',
|
|
121
|
+
hasChildren: true,
|
|
122
|
+
className: 'ml-1.5'
|
|
107
123
|
}
|
|
108
124
|
]
|
|
109
125
|
}, {
|
|
@@ -68,7 +68,9 @@ export function FilterButtons({ filterButtons , onClick , selectedButton , tag:
|
|
|
68
68
|
}
|
|
69
69
|
setScroll(scrollBy, scrollX, container);
|
|
70
70
|
}
|
|
71
|
-
}, [
|
|
71
|
+
}, [
|
|
72
|
+
scrollTarget
|
|
73
|
+
]);
|
|
72
74
|
const getTargetLeft = useCallback((element, cLeft, index, targetLeft)=>{
|
|
73
75
|
const eLeft = element.offsetLeft;
|
|
74
76
|
const eRight = eLeft + element.clientWidth;
|
|
@@ -120,11 +122,18 @@ export function FilterButtons({ filterButtons , onClick , selectedButton , tag:
|
|
|
120
122
|
targetLeft -= 1;
|
|
121
123
|
}
|
|
122
124
|
});
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
if (targetLeft !== scrollTarget.left || targetRight !== scrollTarget.right) {
|
|
126
|
+
setScrollTarget({
|
|
127
|
+
left: targetLeft,
|
|
128
|
+
right: targetRight
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
}, [
|
|
132
|
+
scrollTarget,
|
|
133
|
+
getTargetLeft,
|
|
134
|
+
getTargetRight,
|
|
135
|
+
adjustTargets
|
|
136
|
+
]);
|
|
128
137
|
const handleScrollable = useCallback((container)=>{
|
|
129
138
|
const isLeftScrollable = container.scrollLeft >= 1;
|
|
130
139
|
const isRightScrollable = container.scrollLeft < container.scrollWidth - container.clientWidth - 1;
|
|
@@ -139,7 +148,10 @@ export function FilterButtons({ filterButtons , onClick , selectedButton , tag:
|
|
|
139
148
|
handleScrollTarget(container);
|
|
140
149
|
handleScrollable(container);
|
|
141
150
|
}
|
|
142
|
-
}, [
|
|
151
|
+
}, [
|
|
152
|
+
handleScrollTarget,
|
|
153
|
+
handleScrollable
|
|
154
|
+
]);
|
|
143
155
|
useEffect(()=>{
|
|
144
156
|
const container = scrollContainerRef.current;
|
|
145
157
|
if (container) {
|
|
@@ -150,9 +162,12 @@ export function FilterButtons({ filterButtons , onClick , selectedButton , tag:
|
|
|
150
162
|
}
|
|
151
163
|
return ()=>{
|
|
152
164
|
container === null || container === void 0 ? void 0 : container.removeEventListener('scroll', handleScroll);
|
|
153
|
-
window.removeEventListener('
|
|
165
|
+
window.removeEventListener('resize', handleScroll);
|
|
154
166
|
};
|
|
155
|
-
}, [
|
|
167
|
+
}, [
|
|
168
|
+
handleScrollTarget,
|
|
169
|
+
handleScrollable
|
|
170
|
+
]);
|
|
156
171
|
return React.createElement(Tag, {
|
|
157
172
|
className: styles.base({
|
|
158
173
|
className
|
|
@@ -2,7 +2,7 @@ import { tv } from 'tailwind-variants';
|
|
|
2
2
|
export const styles = tv({
|
|
3
3
|
slots: {
|
|
4
4
|
base: 'relative flex justify-start',
|
|
5
|
-
buttonList: 'flex w-full touch-pan-x gap-1 overflow-x-auto whitespace-nowrap',
|
|
5
|
+
buttonList: 'flex w-full touch-pan-x gap-1 overflow-y-visible overflow-x-auto whitespace-nowrap',
|
|
6
6
|
scrollButton: 'absolute rounded-none contrast-more:bg-black'
|
|
7
7
|
},
|
|
8
8
|
variants: {
|
|
@@ -14,35 +14,25 @@ function _extends() {
|
|
|
14
14
|
}
|
|
15
15
|
import React, { Fragment } from 'react';
|
|
16
16
|
import { Icon } from '../icon.component.js';
|
|
17
|
-
export function CancelCardIcon({ look ='filled' , 'aria-label': ariaLabel = 'Cancel Card' , copyrightYear ='
|
|
17
|
+
export function CancelCardIcon({ look ='filled' , 'aria-label': ariaLabel = 'Cancel Card' , copyrightYear ='2023' , ...props }) {
|
|
18
18
|
return React.createElement(Icon, _extends({
|
|
19
19
|
"aria-label": ariaLabel,
|
|
20
20
|
copyrightYear: copyrightYear
|
|
21
|
-
}, props), look === 'filled' ? React.createElement(Fragment, null, React.createElement("
|
|
22
|
-
|
|
23
|
-
width: "24",
|
|
24
|
-
height: "24",
|
|
25
|
-
fill: "none"
|
|
26
|
-
}, React.createElement("path", {
|
|
27
|
-
"fill-rule": "evenodd",
|
|
21
|
+
}, props), look === 'filled' ? React.createElement(Fragment, null, React.createElement("path", {
|
|
22
|
+
fillRule: "evenodd",
|
|
28
23
|
d: "M1.416.002 0 1.416l.908.907A1.998 1.998 0 0 0 0 4v16a2 2 0 0 0 2 2h18.585l1.998 1.998 1.415-1.414-.908-.907L1.416.002ZM4.585 6H1v4h7.585l-4-4Z",
|
|
29
|
-
|
|
24
|
+
clipRule: "evenodd",
|
|
30
25
|
fill: "currentColor"
|
|
31
26
|
}), React.createElement("path", {
|
|
32
27
|
d: "M23 10h-8.758L24 19.757V4a2 2 0 0 0-2-2H6.242l4 4H23v4Z",
|
|
33
28
|
fill: "currentColor"
|
|
34
|
-
}))
|
|
35
|
-
|
|
36
|
-
width: "24",
|
|
37
|
-
height: "24",
|
|
38
|
-
fill: "none"
|
|
39
|
-
}, React.createElement("path", {
|
|
40
|
-
"fill-rule": "evenodd",
|
|
29
|
+
})) : React.createElement(Fragment, null, React.createElement("path", {
|
|
30
|
+
fillRule: "evenodd",
|
|
41
31
|
d: "M1.416.002 0 1.416l.908.907A1.998 1.998 0 0 0 0 4v16a2 2 0 0 0 2 2h18.585l1.998 1.998 1.415-1.414-.908-.907L1.416.002ZM2.585 4H2v4h4.585l-4-4Zm8 8H2v8h16.585l-8-8Z",
|
|
42
|
-
|
|
32
|
+
clipRule: "evenodd",
|
|
43
33
|
fill: "currentColor"
|
|
44
34
|
}), React.createElement("path", {
|
|
45
35
|
d: "M22 8h-9.758l4 4H22v5.757l2 2V4a2 2 0 0 0-2-2H6.242l2 2H22v4Z",
|
|
46
36
|
fill: "currentColor"
|
|
47
|
-
})))
|
|
37
|
+
})));
|
|
48
38
|
}
|
|
@@ -22,21 +22,21 @@ export function ChildCareIcon({ look ='filled' , 'aria-label': ariaLabel = 'Chil
|
|
|
22
22
|
d: "M12 8a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z",
|
|
23
23
|
fill: "currentColor"
|
|
24
24
|
}), React.createElement("path", {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
fillRule: "evenodd",
|
|
26
|
+
clipRule: "evenodd",
|
|
27
27
|
d: "M12 9c3.338 0 10 1.519 10 4.533v5.934c0 1.321-1.28 2.355-3 3.1-.32.139-.655.267-1 .386v-3.286C18 17.893 14.002 17 12 17s-6 .893-6 2.667v.061c.225.104.483.21.773.316 1.547.562 3.416.88 4.747.944V21a1.5 1.5 0 1 1-.285 2.977c-1.537-.09-3.508-.431-5.235-1.024-2.199-.756-4-1.919-4-3.486v-5.934C2 10.52 8.662 9 12 9Zm2.5 4.5a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0Z",
|
|
28
28
|
fill: "currentColor"
|
|
29
29
|
})) : React.createElement(Fragment, null, React.createElement("path", {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
fillRule: "evenodd",
|
|
31
|
+
clipRule: "evenodd",
|
|
32
32
|
d: "M12 8a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0-2a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",
|
|
33
33
|
fill: "currentColor"
|
|
34
34
|
}), React.createElement("path", {
|
|
35
35
|
d: "M12 17a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z",
|
|
36
36
|
fill: "currentColor"
|
|
37
37
|
}), React.createElement("path", {
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
fillRule: "evenodd",
|
|
39
|
+
clipRule: "evenodd",
|
|
40
40
|
d: "M12 24a1 1 0 1 0 0-2c-1.054 0-2.548-.182-4-.543v-.466c.175-.122.476-.28.92-.439C9.947 20.187 11.22 20 12 20c.78 0 2.053.187 3.08.552.444.159.745.317.92.44v2.52a18.837 18.837 0 0 0 2-.56c2.199-.755 4-1.918 4-3.485v-5.934C22 10.52 15.338 9 12 9S2 10.519 2 13.533v5.934c0 1.567 1.801 2.73 4 3.486l.144.048c.6.2 1.229.37 1.856.51 1.456.326 2.906.489 4 .489Zm5.569-11.984C15.712 11.341 13.443 11 12 11c-1.443 0-3.712.341-5.569 1.016-.93.338-1.627.713-2.054 1.071a1.52 1.52 0 0 0-.348.379.283.283 0 0 0-.028.06L4 13.533v5.934l.001.007a.283.283 0 0 0 .028.06c.043.075.142.207.348.379.358.3.906.613 1.623.905v-.151C6 18.893 9.998 18 12 18s6 .893 6 2.667v.151l.067-.028c.684-.284 1.21-.587 1.556-.877a1.52 1.52 0 0 0 .348-.379.279.279 0 0 0 .028-.06v-.005l.001-.002v-5.936l-.001-.005a.279.279 0 0 0-.028-.06 1.52 1.52 0 0 0-.348-.379c-.427-.357-1.123-.733-2.054-1.071Z",
|
|
41
41
|
fill: "currentColor"
|
|
42
42
|
})));
|
|
@@ -22,8 +22,8 @@ export function ChildIcon({ 'aria-label': ariaLabel = 'Child' , copyrightYear ='
|
|
|
22
22
|
d: "M15.333 12a1.61 1.61 0 0 1-1.183-.483 1.61 1.61 0 0 1-.483-1.184c0-.466.16-.86.483-1.183a1.61 1.61 0 0 1 1.183-.483c.467 0 .861.16 1.184.483.322.322.483.717.483 1.183 0 .467-.161.861-.483 1.184a1.61 1.61 0 0 1-1.184.483ZM8.667 12a1.61 1.61 0 0 1-1.184-.483A1.61 1.61 0 0 1 7 10.333c0-.466.161-.86.483-1.183a1.61 1.61 0 0 1 1.184-.483c.466 0 .86.16 1.183.483.322.322.483.717.483 1.183 0 .467-.16.861-.483 1.184A1.61 1.61 0 0 1 8.667 12ZM12 19c-1.333 0-2.539-.367-3.617-1.1A6.536 6.536 0 0 1 6 15h12a6.536 6.536 0 0 1-2.383 2.9C14.539 18.633 13.333 19 12 19Z",
|
|
23
23
|
fill: "currentColor"
|
|
24
24
|
}), React.createElement("path", {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
fillRule: "evenodd",
|
|
26
|
+
clipRule: "evenodd",
|
|
27
27
|
d: "M12.262.003A12.24 12.24 0 0 0 12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12C24 5.56 18.928.306 12.56.013A1.007 1.007 0 0 0 12.4 0c-.046 0-.092 0-.138.003ZM12 22c5.523 0 10-4.477 10-10 0-5.424-4.318-9.84-9.705-9.996C11.603 2.061 11 2.674 11 3.5c0 .867.665 1.5 1.4 1.5.347 0 .668-.134.918-.368a1 1 0 1 1 1.364 1.463c-.599.558-1.4.905-2.282.905C10.484 7 9 5.394 9 3.5c0-.38.06-.748.17-1.094C5.027 3.626 2 7.46 2 12c0 5.523 4.477 10 10 10Z",
|
|
28
28
|
fill: "currentColor"
|
|
29
29
|
}));
|
|
@@ -12,31 +12,21 @@ function _extends() {
|
|
|
12
12
|
};
|
|
13
13
|
return _extends.apply(this, arguments);
|
|
14
14
|
}
|
|
15
|
-
import React
|
|
15
|
+
import React from 'react';
|
|
16
16
|
import { Icon } from '../icon.component.js';
|
|
17
|
-
export function CircleIcon({ look ='filled' , 'aria-label': ariaLabel = 'Circle' , copyrightYear ='
|
|
17
|
+
export function CircleIcon({ look ='filled' , 'aria-label': ariaLabel = 'Circle' , copyrightYear ='2023' , ...props }) {
|
|
18
18
|
return React.createElement(Icon, _extends({
|
|
19
19
|
"aria-label": ariaLabel,
|
|
20
20
|
copyrightYear: copyrightYear
|
|
21
|
-
}, props), look === 'filled' ? React.createElement(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
fill: "none",
|
|
25
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
26
|
-
}, React.createElement("path", {
|
|
27
|
-
"fill-rule": "evenodd",
|
|
28
|
-
"clip-rule": "evenodd",
|
|
21
|
+
}, props), look === 'filled' ? React.createElement("path", {
|
|
22
|
+
fillRule: "evenodd",
|
|
23
|
+
clipRule: "evenodd",
|
|
29
24
|
d: "M12 24c6.628 0 12-5.373 12-12S18.628 0 12 0 0 5.373 0 12s5.372 12 12 12Z",
|
|
30
25
|
fill: "currentColor"
|
|
31
|
-
})
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
fill: "none",
|
|
35
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
36
|
-
}, React.createElement("path", {
|
|
37
|
-
"fill-rule": "evenodd",
|
|
38
|
-
"clip-rule": "evenodd",
|
|
26
|
+
}) : React.createElement("path", {
|
|
27
|
+
fillRule: "evenodd",
|
|
28
|
+
clipRule: "evenodd",
|
|
39
29
|
d: "M24 12c0 6.627-5.372 12-12 12S0 18.627 0 12 5.372 0 12 0s12 5.373 12 12ZM12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Z",
|
|
40
30
|
fill: "currentColor"
|
|
41
|
-
}))
|
|
31
|
+
}));
|
|
42
32
|
}
|
|
@@ -14,7 +14,7 @@ function _extends() {
|
|
|
14
14
|
}
|
|
15
15
|
import React from 'react';
|
|
16
16
|
import { Icon } from '../icon.component.js';
|
|
17
|
-
export function DropLeftIcon({ 'aria-label': ariaLabel = 'Drop Left' , copyrightYear ='
|
|
17
|
+
export function DropLeftIcon({ 'aria-label': ariaLabel = 'Drop Left' , copyrightYear ='2023' , ...props }) {
|
|
18
18
|
return React.createElement(Icon, _extends({
|
|
19
19
|
"aria-label": ariaLabel,
|
|
20
20
|
copyrightYear: copyrightYear
|
|
@@ -14,7 +14,7 @@ function _extends() {
|
|
|
14
14
|
}
|
|
15
15
|
import React from 'react';
|
|
16
16
|
import { Icon } from '../icon.component.js';
|
|
17
|
-
export function DropRightIcon({ 'aria-label': ariaLabel = 'Drop Right' , copyrightYear ='
|
|
17
|
+
export function DropRightIcon({ 'aria-label': ariaLabel = 'Drop Right' , copyrightYear ='2023' , ...props }) {
|
|
18
18
|
return React.createElement(Icon, _extends({
|
|
19
19
|
"aria-label": ariaLabel,
|
|
20
20
|
copyrightYear: copyrightYear
|
|
@@ -20,16 +20,16 @@ export function PiggyBankIcon({ look ='filled' , 'aria-label': ariaLabel = 'Pigg
|
|
|
20
20
|
copyrightYear: copyrightYear
|
|
21
21
|
}, props), look === 'filled' ? React.createElement(Fragment, null, React.createElement("path", {
|
|
22
22
|
fill: "currentColor",
|
|
23
|
-
|
|
23
|
+
fillRule: "evenodd",
|
|
24
24
|
d: "M.99 15.975A101.66 101.66 0 0 0 3 24h6v-3h4v3h5.6l2.01-7.92L24 14.97V6.5h-2.61l-2.73-2.63c.04-.24.095-.475.165-.705.07-.23.145-.455.225-.675.04-.1.075-.21.105-.33a1.736 1.736 0 0 0-.48-1.635A1.736 1.736 0 0 0 17.4 0c-.96 0-1.855.21-2.685.63A6.098 6.098 0 0 0 12.6 2.4h-6c-1.84 0-3.4.64-4.68 1.92C.64 5.6 0 7.16 0 9c0 2.136.42 4.19.845 6.264l.145.711ZM6 7a1 1 0 0 1 1-1h5a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1Zm12.5 3.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Z",
|
|
25
|
-
|
|
25
|
+
clipRule: "evenodd"
|
|
26
26
|
})) : React.createElement(Fragment, null, React.createElement("path", {
|
|
27
27
|
fill: "currentColor",
|
|
28
28
|
d: "M18.5 10.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM7 6a1 1 0 0 0 0 2h5a1 1 0 1 0 0-2H7Z"
|
|
29
29
|
}), React.createElement("path", {
|
|
30
30
|
fill: "currentColor",
|
|
31
|
-
|
|
31
|
+
fillRule: "evenodd",
|
|
32
32
|
d: "M12.6 2.4h-6c-1.84 0-3.4.64-4.68 1.92C.64 5.6 0 7.16 0 9c0 2.136.42 4.19.845 6.264l.145.711A101.66 101.66 0 0 0 3 24h6v-3h4v3h5.6l2.01-7.92L24 14.97V6.5h-2.61l-2.73-2.63c.04-.24.095-.475.165-.705.07-.23.145-.455.225-.675.04-.1.075-.21.105-.33a1.736 1.736 0 0 0-.48-1.635A1.736 1.736 0 0 0 17.4 0c-.96 0-1.855.21-2.685.63A6.098 6.098 0 0 0 12.6 2.4ZM22 8.5h-1.417l-4.069-3.92.173-1.039c.054-.324.129-.644.225-.958.058-.193.12-.384.186-.573a3.808 3.808 0 0 0-1.48.405 4.1 4.1 0 0 0-1.428 1.198l-.6.787H6.6c-1.32 0-2.368.436-3.266 1.334C2.436 6.632 2 7.681 2 9c0 1.921.378 3.772.808 5.877l.142.702A99.66 99.66 0 0 0 4.507 22H7v-3h8v3h2.044l1.898-7.478L22 13.52V8.5Z",
|
|
33
|
-
|
|
33
|
+
clipRule: "evenodd"
|
|
34
34
|
})));
|
|
35
35
|
}
|
|
@@ -18,28 +18,18 @@ export function QuickBalanceIcon({ look ='filled' , 'aria-label': ariaLabel = 'Q
|
|
|
18
18
|
return React.createElement(Icon, _extends({
|
|
19
19
|
"aria-label": ariaLabel,
|
|
20
20
|
copyrightYear: copyrightYear
|
|
21
|
-
}, props), look === 'filled' ? React.createElement("
|
|
22
|
-
|
|
23
|
-
width: "24",
|
|
24
|
-
height: "24",
|
|
25
|
-
fill: "none"
|
|
26
|
-
}, React.createElement("path", {
|
|
27
|
-
"fill-rule": "evenodd",
|
|
21
|
+
}, props), look === 'filled' ? React.createElement("path", {
|
|
22
|
+
fillRule: "evenodd",
|
|
28
23
|
d: "M24 14c0 3.073-1.155 5.877-3.056 8H3.056A11.955 11.955 0 0 1 0 14C0 7.373 5.373 2 12 2s12 5.373 12 12Zm-3.877-3.88-1.528 1.528c.262.735.405 1.527.405 2.352 0 1.277-.34 2.47-.936 3.5a1 1 0 0 0 1.731 1A8.963 8.963 0 0 0 21 14c0-1.39-.315-2.705-.877-3.88ZM15.88 5.877A9 9 0 0 0 4.204 18.501a1 1 0 0 0 1.732-1.002 7 7 0 0 1 8.416-10.094l1.528-1.528Zm2.827 2.83a1 1 0 0 0-1.414-1.414l-4.775 4.775a2 2 0 1 0 1.414 1.414l4.775-4.775Z",
|
|
29
|
-
|
|
24
|
+
clipRule: "evenodd",
|
|
30
25
|
fill: "currentColor"
|
|
31
|
-
})
|
|
32
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
33
|
-
width: "24",
|
|
34
|
-
height: "24",
|
|
35
|
-
fill: "none"
|
|
36
|
-
}, React.createElement("path", {
|
|
26
|
+
}) : React.createElement(Fragment, null, React.createElement("path", {
|
|
37
27
|
d: "m17.797 12.446 1.57-1.57c.407.96.633 2.016.633 3.124a7.983 7.983 0 0 1-.526 2.857 1 1 0 1 1-1.868-.714A5.984 5.984 0 0 0 18 14a6.01 6.01 0 0 0-.203-1.554ZM12 6c1.108 0 2.164.225 3.124.633l-1.57 1.57a6 6 0 0 0-7.16 7.94 1 1 0 1 1-1.868.714A8 8 0 0 1 12 6ZM17.293 7.293a1 1 0 1 1 1.414 1.414l-4.775 4.775a2 2 0 1 1-1.414-1.414l4.775-4.775Z",
|
|
38
28
|
fill: "currentColor"
|
|
39
29
|
}), React.createElement("path", {
|
|
40
|
-
|
|
30
|
+
fillRule: "evenodd",
|
|
41
31
|
d: "M24 14c0 3.073-1.155 5.877-3.056 8H3.056A11.955 11.955 0 0 1 0 14C0 7.373 5.373 2 12 2s12 5.373 12 12Zm-2 0a9.947 9.947 0 0 1-2 6H4a9.948 9.948 0 0 1-2-6C2 8.477 6.477 4 12 4s10 4.477 10 10Z",
|
|
42
|
-
|
|
32
|
+
clipRule: "evenodd",
|
|
43
33
|
fill: "currentColor"
|
|
44
|
-
})))
|
|
34
|
+
})));
|
|
45
35
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type IconProps } from '../icon.types.js';
|
|
2
|
-
export declare function TargetIcon({
|
|
2
|
+
export declare function TargetIcon({ 'aria-label': ariaLabel, copyrightYear, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,17 +14,11 @@ function _extends() {
|
|
|
14
14
|
}
|
|
15
15
|
import React from 'react';
|
|
16
16
|
import { Icon } from '../icon.component.js';
|
|
17
|
-
export function TargetIcon({
|
|
17
|
+
export function TargetIcon({ 'aria-label': ariaLabel = 'Target' , copyrightYear ='2023' , ...props }) {
|
|
18
18
|
return React.createElement(Icon, _extends({
|
|
19
19
|
"aria-label": ariaLabel,
|
|
20
20
|
copyrightYear: copyrightYear
|
|
21
|
-
}, props), React.createElement("
|
|
22
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
23
|
-
width: "24",
|
|
24
|
-
height: "24",
|
|
25
|
-
viewBox: "0 0 24 24",
|
|
26
|
-
fill: "none"
|
|
27
|
-
}, React.createElement("path", {
|
|
21
|
+
}, props), React.createElement("path", {
|
|
28
22
|
d: "M16.9431 11.2432C16.9806 11.49 17 11.7427 17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C12.2821 7 12.5588 7.02337 12.8282 7.06827L13.1617 5.09595C12.7838 5.03284 12.3957 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12C19 11.6291 18.9712 11.265 18.9156 10.9097L16.9431 11.2432Z",
|
|
29
23
|
fill: "currentColor"
|
|
30
24
|
}), React.createElement("path", {
|
|
@@ -33,5 +27,5 @@ export function TargetIcon({ look ='filled' , 'aria-label': ariaLabel = 'Target'
|
|
|
33
27
|
}), React.createElement("path", {
|
|
34
28
|
d: "M14 12C14 13.1046 13.1046 14 12 14C10.8954 14 10 13.1046 10 12C10 10.8954 10.8954 10 12 10C12.1791 10 12.3528 10.0236 12.518 10.0677L15.9861 6.59968L15.5146 4.24268L19.7573 0L20.3129 3.68706L24 4.24264L19.7573 8.48532L17.4003 8.01389L13.9322 11.4819C13.9764 11.6472 14 11.8208 14 12Z",
|
|
35
29
|
fill: "currentColor"
|
|
36
|
-
}))
|
|
30
|
+
}));
|
|
37
31
|
}
|
|
@@ -23,18 +23,18 @@ export function XIcon({ look ='filled' , 'aria-label': ariaLabel = 'X' , copyrig
|
|
|
23
23
|
d: "M15.815 19.008h2.12L8.178 5.04h-2.12l9.757 13.968Z"
|
|
24
24
|
}), React.createElement("path", {
|
|
25
25
|
fill: "currentColor",
|
|
26
|
-
|
|
26
|
+
fillRule: "evenodd",
|
|
27
27
|
d: "M2 0a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2Zm17.315 4-5.824 6.775L19.825 20h-4.659l-4.265-6.212L5.56 20H4.18l6.107-7.104L4.18 4H8.84l4.039 5.883L17.935 4h1.38Z",
|
|
28
|
-
|
|
28
|
+
clipRule: "evenodd"
|
|
29
29
|
})) : React.createElement(Fragment, null, React.createElement("path", {
|
|
30
30
|
fill: "currentColor",
|
|
31
|
-
|
|
31
|
+
fillRule: "evenodd",
|
|
32
32
|
d: "m19.315 4-5.824 6.775L19.825 20h-4.659l-4.265-6.212L5.56 20H4.18l6.107-7.104L4.18 4H8.84l4.039 5.883L17.935 4h1.38Zm-3.5 15.008h2.12L8.178 5.04h-2.12l9.757 13.968Z",
|
|
33
|
-
|
|
33
|
+
clipRule: "evenodd"
|
|
34
34
|
}), React.createElement("path", {
|
|
35
35
|
fill: "currentColor",
|
|
36
|
-
|
|
36
|
+
fillRule: "evenodd",
|
|
37
37
|
d: "M0 2a2 2 0 0 1 2-2h20a2 2 0 0 1 2 2v20a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2Zm2 0h20v20H2V2Z",
|
|
38
|
-
|
|
38
|
+
clipRule: "evenodd"
|
|
39
39
|
})));
|
|
40
40
|
}
|
|
@@ -62,9 +62,9 @@ export { DownloadFileIcon } from './components/download-file-icon.js';
|
|
|
62
62
|
export { DownloadIcon } from './components/download-icon.js';
|
|
63
63
|
export { DragIcon } from './components/drag-icon.js';
|
|
64
64
|
export { DropDownIcon } from './components/drop-down-icon.js';
|
|
65
|
-
export { DropUpIcon } from './components/drop-up-icon.js';
|
|
66
65
|
export { DropLeftIcon } from './components/drop-left-icon.js';
|
|
67
66
|
export { DropRightIcon } from './components/drop-right-icon.js';
|
|
67
|
+
export { DropUpIcon } from './components/drop-up-icon.js';
|
|
68
68
|
export { DropboxIcon } from './components/dropbox-icon.js';
|
|
69
69
|
export { EditIcon } from './components/edit-icon.js';
|
|
70
70
|
export { EducationIcon } from './components/education-icon.js';
|
|
@@ -62,9 +62,9 @@ export { DownloadFileIcon } from './components/download-file-icon.js';
|
|
|
62
62
|
export { DownloadIcon } from './components/download-icon.js';
|
|
63
63
|
export { DragIcon } from './components/drag-icon.js';
|
|
64
64
|
export { DropDownIcon } from './components/drop-down-icon.js';
|
|
65
|
-
export { DropUpIcon } from './components/drop-up-icon.js';
|
|
66
65
|
export { DropLeftIcon } from './components/drop-left-icon.js';
|
|
67
66
|
export { DropRightIcon } from './components/drop-right-icon.js';
|
|
67
|
+
export { DropUpIcon } from './components/drop-up-icon.js';
|
|
68
68
|
export { DropboxIcon } from './components/dropbox-icon.js';
|
|
69
69
|
export { EditIcon } from './components/edit-icon.js';
|
|
70
70
|
export { EducationIcon } from './components/education-icon.js';
|
|
@@ -3,8 +3,8 @@ import { type InputProps } from './input.types.js';
|
|
|
3
3
|
export declare function BaseInput({ className, size, invalid, width, ...props }: InputProps, ref: ForwardedRef<HTMLInputElement>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare const Input: React.ForwardRefExoticComponent<{
|
|
5
5
|
invalid?: boolean;
|
|
6
|
-
size?: "small" | "
|
|
7
|
-
[x: string]: "small" | "
|
|
6
|
+
size?: "small" | "xlarge" | "medium" | "large" | {
|
|
7
|
+
[x: string]: "small" | "xlarge" | "medium" | "large" | undefined;
|
|
8
8
|
} | undefined;
|
|
9
9
|
width?: 1 | 2 | "full" | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 20 | 30 | {
|
|
10
10
|
[x: string]: 1 | 2 | "full" | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 20 | 30 | undefined;
|
|
@@ -31,7 +31,7 @@ export function SparklePictogram({ mode ='duo' , viewBoxWidth =78 , viewBoxHeigh
|
|
|
31
31
|
fill: "none",
|
|
32
32
|
xmlns: "http://www.w3.org/2000/svg"
|
|
33
33
|
}, React.createElement("g", {
|
|
34
|
-
|
|
34
|
+
clipPath: "url(#clip0_882_7929)"
|
|
35
35
|
}, React.createElement("path", {
|
|
36
36
|
d: "M38.9999 61.716C37.7659 61.716 36.6949 60.9716 36.2758 59.8201L32.4922 49.5961C31.782 47.6885 30.2802 46.1765 28.371 45.4786L18.1378 41.6984C16.9853 41.268 16.2402 40.1979 16.2402 38.9766C16.2402 37.7553 16.9853 36.6736 18.1378 36.2549L28.371 32.4747C30.2802 31.7652 31.7937 30.2647 32.4922 28.3572L36.2758 18.1332C36.7065 16.9817 37.7775 16.2373 38.9999 16.2373C40.2223 16.2373 43.5 17 44.0525 18.1332L47.8361 28.3572C48.5462 30.2647 50.048 31.7768 51.9572 32.4747L62.1904 36.2549C63.3429 36.6853 64.088 37.7553 64.088 38.9766C64.088 40.1979 63.3429 41.2797 62.1904 41.6984L51.9572 45.4786C50.048 46.1881 48.5346 47.6885 47.8361 49.5961C47.8361 49.5961 45.6049 57.6401 44.0525 59.8201C42.5 62 40.2223 61.716 38.9999 61.716ZM38.9999 18.5403C38.8835 18.5403 38.5808 18.5752 38.4528 18.9242L34.6692 29.1481C33.7262 31.6954 31.7238 33.7076 29.1626 34.6498L18.9295 38.43C18.5919 38.5579 18.5453 38.8487 18.5453 38.9766C18.5453 39.1046 18.5802 39.3954 18.9295 39.5233L29.1626 43.3035C31.7122 44.2457 33.7262 46.2463 34.6692 48.8052L38.4528 59.0291C38.5808 59.3664 38.8719 59.413 38.9999 59.413C39.128 59.413 39.419 59.3781 39.5471 59.0291L43.3307 48.8052C44.2737 46.2579 46.2761 44.2457 48.8372 43.3035L59.0704 39.5233C59.408 39.3954 59.4546 39.1046 59.4546 38.9766C59.4546 38.8487 59.4196 38.5579 59.0704 38.43L48.8372 34.6498C46.2877 33.7076 44.2737 31.707 43.3307 29.1481L41.4389 24.0361L39.5471 18.9242C39.419 18.5868 39.128 18.5403 38.9999 18.5403Z",
|
|
37
37
|
className: fill({
|
|
@@ -39,56 +39,56 @@ export function SparklePictogram({ mode ='duo' , viewBoxWidth =78 , viewBoxHeigh
|
|
|
39
39
|
outline: true
|
|
40
40
|
})
|
|
41
41
|
}), React.createElement("path", {
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
fillRule: "evenodd",
|
|
43
|
+
clipRule: "evenodd",
|
|
44
44
|
d: "M67.5225 39.5465H78.0001V37.2202H67.5225V39.5465Z",
|
|
45
45
|
className: fill({
|
|
46
46
|
mode,
|
|
47
47
|
highlight: true
|
|
48
48
|
})
|
|
49
49
|
}), React.createElement("path", {
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
fillRule: "evenodd",
|
|
51
|
+
clipRule: "evenodd",
|
|
52
52
|
d: "M39.582 10.4682V0H37.2537V10.4682H39.582Z",
|
|
53
53
|
className: fill({
|
|
54
54
|
mode,
|
|
55
55
|
highlight: true
|
|
56
56
|
})
|
|
57
57
|
}), React.createElement("path", {
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
fillRule: "evenodd",
|
|
59
|
+
clipRule: "evenodd",
|
|
60
60
|
d: "M58.8375 20.192L66.0671 12.9689L64.4605 11.3638L57.231 18.5869L58.8375 20.192Z",
|
|
61
61
|
className: fill({
|
|
62
62
|
mode,
|
|
63
63
|
highlight: true
|
|
64
64
|
})
|
|
65
65
|
}), React.createElement("path", {
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
fillRule: "evenodd",
|
|
67
|
+
clipRule: "evenodd",
|
|
68
68
|
d: "M19.9772 18.5869L12.7477 11.3638L11.1411 12.9689L18.3707 20.192L19.9772 18.5869Z",
|
|
69
69
|
className: fill({
|
|
70
70
|
mode,
|
|
71
71
|
highlight: true
|
|
72
72
|
})
|
|
73
73
|
}), React.createElement("path", {
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
fillRule: "evenodd",
|
|
75
|
+
clipRule: "evenodd",
|
|
76
76
|
d: "M0 39.5465H10.4776V37.2202H0V39.5465Z",
|
|
77
77
|
className: fill({
|
|
78
78
|
mode,
|
|
79
79
|
highlight: true
|
|
80
80
|
})
|
|
81
81
|
}), React.createElement("path", {
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
fillRule: "evenodd",
|
|
83
|
+
clipRule: "evenodd",
|
|
84
84
|
d: "M39.582 77.9302V67.4619H37.2537V77.9302H39.582Z",
|
|
85
85
|
className: fill({
|
|
86
86
|
mode,
|
|
87
87
|
highlight: true
|
|
88
88
|
})
|
|
89
89
|
}), React.createElement("path", {
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
fillRule: "evenodd",
|
|
91
|
+
clipRule: "evenodd",
|
|
92
92
|
d: "M12.7477 66.2408L19.9772 59.0177L18.3707 57.4126L11.1411 64.6357L12.7477 66.2408Z",
|
|
93
93
|
className: fill({
|
|
94
94
|
mode,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function ProgressIndicator({ className, children,
|
|
1
|
+
import { ProgressIndicatorProps } from './progress-indicator.types.js';
|
|
2
|
+
export declare function ProgressIndicator({ className, children, color, size, 'aria-label': ariaLabel, ...props }: ProgressIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,14 +13,15 @@ function _extends() {
|
|
|
13
13
|
return _extends.apply(this, arguments);
|
|
14
14
|
}
|
|
15
15
|
import React from 'react';
|
|
16
|
+
import { Icon } from '../icon/icon.component.js';
|
|
16
17
|
import { styles } from './progress-indicator.styles.js';
|
|
17
|
-
export function ProgressIndicator({ className , children ,
|
|
18
|
-
return React.createElement(
|
|
18
|
+
export function ProgressIndicator({ className , children , color ='hero' , size ='medium' , 'aria-label': ariaLabel = 'Loading' , ...props }) {
|
|
19
|
+
return React.createElement(Icon, _extends({
|
|
19
20
|
className: styles({
|
|
20
|
-
className
|
|
21
|
-
size,
|
|
22
|
-
inverted
|
|
21
|
+
className
|
|
23
22
|
}),
|
|
23
|
+
size: size,
|
|
24
|
+
color: color,
|
|
24
25
|
"aria-label": ariaLabel
|
|
25
26
|
}, props), children);
|
|
26
27
|
}
|
|
@@ -1,41 +1,5 @@
|
|
|
1
|
-
export declare const styles: import("tailwind-variants").TVReturnType<{
|
|
2
|
-
size: {
|
|
3
|
-
xsmall: string;
|
|
4
|
-
small: string;
|
|
5
|
-
medium: string;
|
|
6
|
-
large: string;
|
|
7
|
-
xlarge: string;
|
|
8
|
-
};
|
|
9
|
-
inverted: {
|
|
10
|
-
true: string;
|
|
11
|
-
false: string;
|
|
12
|
-
};
|
|
13
|
-
}, undefined, "box-border inline-block animate-[spin_0.7s_linear_infinite] rounded-full border border-r-0 border-t-[transparent]", {
|
|
1
|
+
export declare const styles: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "box-border inline-block animate-[spin_0.7s_linear_infinite] rounded-full border border-r-0 border-t-transparent", {
|
|
14
2
|
responsiveVariants: string[];
|
|
15
|
-
}, {
|
|
16
|
-
size: {
|
|
17
|
-
xsmall: string;
|
|
18
|
-
small: string;
|
|
19
|
-
medium: string;
|
|
20
|
-
large: string;
|
|
21
|
-
xlarge: string;
|
|
22
|
-
};
|
|
23
|
-
inverted: {
|
|
24
|
-
true: string;
|
|
25
|
-
false: string;
|
|
26
|
-
};
|
|
27
|
-
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
28
|
-
size: {
|
|
29
|
-
xsmall: string;
|
|
30
|
-
small: string;
|
|
31
|
-
medium: string;
|
|
32
|
-
large: string;
|
|
33
|
-
xlarge: string;
|
|
34
|
-
};
|
|
35
|
-
inverted: {
|
|
36
|
-
true: string;
|
|
37
|
-
false: string;
|
|
38
|
-
};
|
|
39
|
-
}, undefined, "box-border inline-block animate-[spin_0.7s_linear_infinite] rounded-full border border-r-0 border-t-[transparent]", {
|
|
3
|
+
}, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "box-border inline-block animate-[spin_0.7s_linear_infinite] rounded-full border border-r-0 border-t-transparent", {
|
|
40
4
|
responsiveVariants: string[];
|
|
41
5
|
}, unknown, unknown, undefined>>;
|