@marianmeres/stuic 1.91.0 → 1.92.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.
|
@@ -89,7 +89,7 @@ function iconFeatherInfo(props) {
|
|
|
89
89
|
.join(' ');
|
|
90
90
|
return `<svg ${style ? `style="${style}" ` : ''}${cls ? `class="${cls}" ` : ''}width="${size || 24}" height="${size || 24}" stroke-width="${strokeWidth ?? 2}" ${attrs ? `${attrs} ` : ''}viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg>`;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function iconFeatherRefreshCw(props) {
|
|
93
93
|
// Backward compatible signature support: fn(cls, size, style)
|
|
94
94
|
if (props === null || props === undefined)
|
|
95
95
|
props = {};
|
|
@@ -105,12 +105,12 @@ function iconFeatherRotateCw(props) {
|
|
|
105
105
|
.filter(([k, v]) => !/^class|size|style|strokeWidth$/.test(k))
|
|
106
106
|
.reduce((m, [k, v]) => [...m, `${k}="${v}"`], [])
|
|
107
107
|
.join(' ');
|
|
108
|
-
return `<svg ${style ? `style="${style}" ` : ''}${cls ? `class="${cls}" ` : ''}width="${size || 24}" height="${size || 24}" stroke-width="${strokeWidth ?? 2}" ${attrs ? `${attrs} ` : ''}viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 4 23 10 17 10"></polyline><path d="
|
|
108
|
+
return `<svg ${style ? `style="${style}" ` : ''}${cls ? `class="${cls}" ` : ''}width="${size || 24}" height="${size || 24}" stroke-width="${strokeWidth ?? 2}" ${attrs ? `${attrs} ` : ''}viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 4 23 10 17 10"></polyline><polyline points="1 20 1 14 7 14"></polyline><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"></path></svg>`;
|
|
109
109
|
}
|
|
110
110
|
export const acpDefaultIcons = {
|
|
111
111
|
info: () => iconFeatherInfo({}),
|
|
112
112
|
success: () => iconFeatherCheckCircle({}),
|
|
113
113
|
warn: () => iconFeatherAlertTriangle({ class: '-mt-[3px]' }), // move up a little because it looks better with the triangle
|
|
114
114
|
error: () => iconFeatherXOctagon({}),
|
|
115
|
-
spinner: () =>
|
|
115
|
+
spinner: () => iconFeatherRefreshCw({ size: 32, class: 'opacity-50' }),
|
|
116
116
|
};
|
|
@@ -89,24 +89,6 @@ function iconFeatherInfo(props) {
|
|
|
89
89
|
.join(' ');
|
|
90
90
|
return `<svg ${style ? `style="${style}" ` : ''}${cls ? `class="${cls}" ` : ''}width="${size || 24}" height="${size || 24}" stroke-width="${strokeWidth ?? 2}" ${attrs ? `${attrs} ` : ''}viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg>`;
|
|
91
91
|
}
|
|
92
|
-
function iconFeatherRotateCw(props) {
|
|
93
|
-
// Backward compatible signature support: fn(cls, size, style)
|
|
94
|
-
if (props === null || props === undefined)
|
|
95
|
-
props = {};
|
|
96
|
-
if (typeof props !== 'object')
|
|
97
|
-
props = { class: props || '' };
|
|
98
|
-
if (arguments.length > 1)
|
|
99
|
-
props.size ??= arguments[1];
|
|
100
|
-
if (arguments.length > 2)
|
|
101
|
-
props.style ??= arguments[2];
|
|
102
|
-
//
|
|
103
|
-
const { size, class: cls, style, strokeWidth } = props;
|
|
104
|
-
let attrs = Object.entries(props)
|
|
105
|
-
.filter(([k, v]) => !/^class|size|style|strokeWidth$/.test(k))
|
|
106
|
-
.reduce((m, [k, v]) => [...m, `${k}="${v}"`], [])
|
|
107
|
-
.join(' ');
|
|
108
|
-
return `<svg ${style ? `style="${style}" ` : ''}${cls ? `class="${cls}" ` : ''}width="${size || 24}" height="${size || 24}" stroke-width="${strokeWidth ?? 2}" ${attrs ? `${attrs} ` : ''}viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 4 23 10 17 10"></polyline><path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"></path></svg>`;
|
|
109
|
-
}
|
|
110
92
|
export const notificationsDefaultIcons = {
|
|
111
93
|
info: () => iconFeatherInfo({}),
|
|
112
94
|
success: () => iconFeatherCheckCircle({}),
|