ui-beyable 1.1.0-beta.21 → 1.1.0-beta.23
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/cjs/index.js +164 -153
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.js +165 -154
- package/lib/esm/index.js.map +1 -1
- package/package.json +1 -1
package/lib/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { createContext, useState, useRef, useEffect, useContext, useCallback, useImperativeHandle, useLayoutEffect, Fragment,
|
|
1
|
+
import React, { createContext, useState, useRef, useEffect, useContext, useCallback, useImperativeHandle, useLayoutEffect, Fragment, forwardRef, createElement, Children, cloneElement } from 'react';
|
|
2
2
|
import ReactDOM from 'react-dom';
|
|
3
3
|
|
|
4
4
|
function styleInject(css, ref) {
|
|
@@ -2176,6 +2176,167 @@ var css_248z$s = ".Utils-module_ellips__36ERe{word-wrap:normal;display:block;ove
|
|
|
2176
2176
|
var styles$j = {"ellips":"Utils-module_ellips__36ERe","list":"List-module_list__9aWGq","list_horizontal_area_offset":"List-module_list_horizontal_area_offset__lnYER","list_size_l":"List-module_list_size_l__GUGlq","list_remove_vertical_margin":"List-module_list_remove_vertical_margin__YHh2g","list_size_m":"List-module_list_size_m__LKOhv","list_size_s":"List-module_list_size_s__p9g11","list_size_xs":"List-module_list_size_xs__gSkzP","list_size_xxs":"List-module_list_size_xxs__-Xm2h","list_item":"List-module_list_item__ODLyw","list_item_clickable":"List-module_list_item_clickable__4YaMm","list_item_is_active":"List-module_list_item_is_active__5EnPO","list_item_is_dragging":"List-module_list_item_is_dragging__v86sY","list_has_border":"List-module_list_has_border__wqYfB","list_has_last_border":"List-module_list_has_last_border__x6k-T","list_has_last_inner_border":"List-module_list_has_last_inner_border__niFRr","col_main":"List-module_col_main__SNN0x","col_picto":"List-module_col_picto__n56Ja","col_picto_margin":"List-module_col_picto_margin__wrLKS List-module_col_picto__n56Ja","col_actions":"List-module_col_actions__YeUcJ","col_value":"List-module_col_value__khwo0","col_arrow":"List-module_col_arrow__8Jdnc","text":"List-module_text__IsHtz","text_strong":"List-module_text_strong__-a3uw List-module_text__IsHtz","text_ellips":"List-module_text_ellips__Jc0WR Utils-module_ellips__36ERe","text_break_word":"List-module_text_break_word__BkgA3","description":"List-module_description__DGI5j","list_item_italic":"List-module_list_item_italic__0RpbL","list_font_size_m":"List-module_list_font_size_m__51Aq1","list_font_size_l":"List-module_list_font_size_l__Zdqwm","dragHandleBefore":"List-module_dragHandleBefore__Aq7-Q","dragHandleAfter":"List-module_dragHandleAfter__SHpWU","listHorizontalAreaOffset":"List-module_list_horizontal_area_offset__lnYER","listSizeL":"List-module_list_size_l__GUGlq","listRemoveVerticalMargin":"List-module_list_remove_vertical_margin__YHh2g","listSizeM":"List-module_list_size_m__LKOhv","listSizeS":"List-module_list_size_s__p9g11","listSizeXs":"List-module_list_size_xs__gSkzP","listSizeXxs":"List-module_list_size_xxs__-Xm2h","listItem":"List-module_list_item__ODLyw","listItemClickable":"List-module_list_item_clickable__4YaMm","listItemIsActive":"List-module_list_item_is_active__5EnPO","listItemIsDragging":"List-module_list_item_is_dragging__v86sY","listHasBorder":"List-module_list_has_border__wqYfB","listHasLastBorder":"List-module_list_has_last_border__x6k-T","listHasLastInnerBorder":"List-module_list_has_last_inner_border__niFRr","colMain":"List-module_col_main__SNN0x","colPicto":"List-module_col_picto__n56Ja","colPictoMargin":"List-module_col_picto_margin__wrLKS List-module_col_picto__n56Ja","colActions":"List-module_col_actions__YeUcJ","colValue":"List-module_col_value__khwo0","colArrow":"List-module_col_arrow__8Jdnc","textStrong":"List-module_text_strong__-a3uw List-module_text__IsHtz","textEllips":"List-module_text_ellips__Jc0WR Utils-module_ellips__36ERe","textBreakWord":"List-module_text_break_word__BkgA3","listItemItalic":"List-module_list_item_italic__0RpbL","listFontSizeM":"List-module_list_font_size_m__51Aq1","listFontSizeL":"List-module_list_font_size_l__Zdqwm"};
|
|
2177
2177
|
styleInject(css_248z$s);
|
|
2178
2178
|
|
|
2179
|
+
/**
|
|
2180
|
+
* @license lucide-react v1.22.0 - ISC
|
|
2181
|
+
*
|
|
2182
|
+
* This source code is licensed under the ISC license.
|
|
2183
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2184
|
+
*/
|
|
2185
|
+
|
|
2186
|
+
const mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
|
2187
|
+
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
|
2188
|
+
}).join(" ").trim();
|
|
2189
|
+
|
|
2190
|
+
/**
|
|
2191
|
+
* @license lucide-react v1.22.0 - ISC
|
|
2192
|
+
*
|
|
2193
|
+
* This source code is licensed under the ISC license.
|
|
2194
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2195
|
+
*/
|
|
2196
|
+
|
|
2197
|
+
const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
2198
|
+
|
|
2199
|
+
/**
|
|
2200
|
+
* @license lucide-react v1.22.0 - ISC
|
|
2201
|
+
*
|
|
2202
|
+
* This source code is licensed under the ISC license.
|
|
2203
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2204
|
+
*/
|
|
2205
|
+
|
|
2206
|
+
const toCamelCase = (string) => string.replace(
|
|
2207
|
+
/^([A-Z])|[\s-_]+(\w)/g,
|
|
2208
|
+
(match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()
|
|
2209
|
+
);
|
|
2210
|
+
|
|
2211
|
+
/**
|
|
2212
|
+
* @license lucide-react v1.22.0 - ISC
|
|
2213
|
+
*
|
|
2214
|
+
* This source code is licensed under the ISC license.
|
|
2215
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2216
|
+
*/
|
|
2217
|
+
|
|
2218
|
+
|
|
2219
|
+
const toPascalCase = (string) => {
|
|
2220
|
+
const camelCase = toCamelCase(string);
|
|
2221
|
+
return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
|
|
2222
|
+
};
|
|
2223
|
+
|
|
2224
|
+
/**
|
|
2225
|
+
* @license lucide-react v1.22.0 - ISC
|
|
2226
|
+
*
|
|
2227
|
+
* This source code is licensed under the ISC license.
|
|
2228
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2229
|
+
*/
|
|
2230
|
+
|
|
2231
|
+
var defaultAttributes = {
|
|
2232
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2233
|
+
width: 24,
|
|
2234
|
+
height: 24,
|
|
2235
|
+
viewBox: "0 0 24 24",
|
|
2236
|
+
fill: "none",
|
|
2237
|
+
stroke: "currentColor",
|
|
2238
|
+
strokeWidth: 2,
|
|
2239
|
+
strokeLinecap: "round",
|
|
2240
|
+
strokeLinejoin: "round"
|
|
2241
|
+
};
|
|
2242
|
+
|
|
2243
|
+
/**
|
|
2244
|
+
* @license lucide-react v1.22.0 - ISC
|
|
2245
|
+
*
|
|
2246
|
+
* This source code is licensed under the ISC license.
|
|
2247
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2248
|
+
*/
|
|
2249
|
+
|
|
2250
|
+
const hasA11yProp = (props) => {
|
|
2251
|
+
for (const prop in props) {
|
|
2252
|
+
if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
|
|
2253
|
+
return true;
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2256
|
+
return false;
|
|
2257
|
+
};
|
|
2258
|
+
|
|
2259
|
+
const LucideContext = createContext({});
|
|
2260
|
+
const useLucideContext = () => useContext(LucideContext);
|
|
2261
|
+
|
|
2262
|
+
const Icon = forwardRef(
|
|
2263
|
+
({ color, size, strokeWidth, absoluteStrokeWidth, className = "", children, iconNode, ...rest }, ref) => {
|
|
2264
|
+
const {
|
|
2265
|
+
size: contextSize = 24,
|
|
2266
|
+
strokeWidth: contextStrokeWidth = 2,
|
|
2267
|
+
absoluteStrokeWidth: contextAbsoluteStrokeWidth = false,
|
|
2268
|
+
color: contextColor = "currentColor",
|
|
2269
|
+
className: contextClass = ""
|
|
2270
|
+
} = useLucideContext() ?? {};
|
|
2271
|
+
const calculatedStrokeWidth = absoluteStrokeWidth ?? contextAbsoluteStrokeWidth ? Number(strokeWidth ?? contextStrokeWidth) * 24 / Number(size ?? contextSize) : strokeWidth ?? contextStrokeWidth;
|
|
2272
|
+
return createElement(
|
|
2273
|
+
"svg",
|
|
2274
|
+
{
|
|
2275
|
+
ref,
|
|
2276
|
+
...defaultAttributes,
|
|
2277
|
+
width: size ?? contextSize ?? defaultAttributes.width,
|
|
2278
|
+
height: size ?? contextSize ?? defaultAttributes.height,
|
|
2279
|
+
stroke: color ?? contextColor,
|
|
2280
|
+
strokeWidth: calculatedStrokeWidth,
|
|
2281
|
+
className: mergeClasses("lucide", contextClass, className),
|
|
2282
|
+
...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
|
|
2283
|
+
...rest
|
|
2284
|
+
},
|
|
2285
|
+
[
|
|
2286
|
+
...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),
|
|
2287
|
+
...Array.isArray(children) ? children : [children]
|
|
2288
|
+
]
|
|
2289
|
+
);
|
|
2290
|
+
}
|
|
2291
|
+
);
|
|
2292
|
+
|
|
2293
|
+
/**
|
|
2294
|
+
* @license lucide-react v1.22.0 - ISC
|
|
2295
|
+
*
|
|
2296
|
+
* This source code is licensed under the ISC license.
|
|
2297
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2298
|
+
*/
|
|
2299
|
+
|
|
2300
|
+
|
|
2301
|
+
const createLucideIcon = (iconName, iconNode) => {
|
|
2302
|
+
const Component = forwardRef(
|
|
2303
|
+
({ className, ...props }, ref) => createElement(Icon, {
|
|
2304
|
+
ref,
|
|
2305
|
+
iconNode,
|
|
2306
|
+
className: mergeClasses(
|
|
2307
|
+
`lucide-${toKebabCase(toPascalCase(iconName))}`,
|
|
2308
|
+
`lucide-${iconName}`,
|
|
2309
|
+
className
|
|
2310
|
+
),
|
|
2311
|
+
...props
|
|
2312
|
+
})
|
|
2313
|
+
);
|
|
2314
|
+
Component.displayName = toPascalCase(iconName);
|
|
2315
|
+
return Component;
|
|
2316
|
+
};
|
|
2317
|
+
|
|
2318
|
+
/**
|
|
2319
|
+
* @license lucide-react v1.22.0 - ISC
|
|
2320
|
+
*
|
|
2321
|
+
* This source code is licensed under the ISC license.
|
|
2322
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2323
|
+
*/
|
|
2324
|
+
|
|
2325
|
+
|
|
2326
|
+
const __iconNode$1 = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
|
|
2327
|
+
const ChevronLeft = createLucideIcon("chevron-left", __iconNode$1);
|
|
2328
|
+
|
|
2329
|
+
/**
|
|
2330
|
+
* @license lucide-react v1.22.0 - ISC
|
|
2331
|
+
*
|
|
2332
|
+
* This source code is licensed under the ISC license.
|
|
2333
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2334
|
+
*/
|
|
2335
|
+
|
|
2336
|
+
|
|
2337
|
+
const __iconNode = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
|
|
2338
|
+
const ChevronRight = createLucideIcon("chevron-right", __iconNode);
|
|
2339
|
+
|
|
2179
2340
|
var List = React.forwardRef(function (_a, ref) {
|
|
2180
2341
|
var children = _a.children, _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.size, size = _c === void 0 ? 'm' : _c, _d = _a.fontSize, fontSize = _d === void 0 ? 'm' : _d, _e = _a.hasLastBorder, hasLastBorder = _e === void 0 ? false : _e, _f = _a.hasBorder, hasBorder = _f === void 0 ? true : _f, _g = _a.paddingInline, paddingInline = _g === void 0 ? '' : _g, _h = _a.removeVerticalMargin, removeVerticalMargin = _h === void 0 ? false : _h, _j = _a.style, style = _j === void 0 ? {} : _j, otherProps = __rest(_a, ["children", "className", "size", "fontSize", "hasLastBorder", "hasBorder", "paddingInline", "removeVerticalMargin", "style"]);
|
|
2181
2342
|
var cssClass = [styles$j.list];
|
|
@@ -2218,7 +2379,7 @@ var List = React.forwardRef(function (_a, ref) {
|
|
|
2218
2379
|
return (React.createElement("div", __assign({ className: cssClass.join(' '), style: style }, otherProps, { ref: ref }), children));
|
|
2219
2380
|
});
|
|
2220
2381
|
var ListItem = React.forwardRef(function (_a, ref) {
|
|
2221
|
-
var children = _a.children, className = _a.className, picto = _a.picto, text = _a.text, description = _a.description, actions = _a.actions, onClick = _a.onClick
|
|
2382
|
+
var children = _a.children, className = _a.className, picto = _a.picto, text = _a.text, description = _a.description, actions = _a.actions, onClick = _a.onClick, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, value = _a.value, _b = _a.valueMaxWidth, valueMaxWidth = _b === void 0 ? 200 : _b, valueMinWidth = _a.valueMinWidth, _c = _a.hasArrow, hasArrow = _c === void 0 ? false : _c, _d = _a.textIsBold, textIsBold = _d === void 0 ? undefined : _d, _e = _a.textIsItalic, textIsItalic = _e === void 0 ? false : _e, _f = _a.textHasEllipsis, textHasEllipsis = _f === void 0 ? false : _f, _g = _a.textBreakWord, textBreakWord = _g === void 0 ? false : _g, _h = _a.isActive, isActive = _h === void 0 ? false : _h, _j = _a.isDragging, isDragging = _j === void 0 ? false : _j, dragHandle = _a.dragHandle, _k = _a.dragHandlePosition, dragHandlePosition = _k === void 0 ? 'before' : _k, otherProps = __rest(_a, ["children", "className", "picto", "text", "description", "actions", "onClick", "onMouseEnter", "onMouseLeave", "value", "valueMaxWidth", "valueMinWidth", "hasArrow", "textIsBold", "textIsItalic", "textHasEllipsis", "textBreakWord", "isActive", "isDragging", "dragHandle", "dragHandlePosition"]);
|
|
2222
2383
|
var hasClickHandler = typeof onClick === 'function';
|
|
2223
2384
|
var cssClass = [styles$j.list_item];
|
|
2224
2385
|
var style = {};
|
|
@@ -2255,7 +2416,7 @@ var ListItem = React.forwardRef(function (_a, ref) {
|
|
|
2255
2416
|
onClick(ev);
|
|
2256
2417
|
}
|
|
2257
2418
|
};
|
|
2258
|
-
return (React.createElement("div", __assign({ className: cssClass.join(' '), onClick: function (ev) { return handleClick(ev); } }, otherProps, { ref: ref }),
|
|
2419
|
+
return (React.createElement("div", __assign({ className: cssClass.join(' '), onClick: function (ev) { return handleClick(ev); } }, otherProps, { onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, ref: ref }),
|
|
2259
2420
|
dragHandle && dragHandlePosition === 'before' &&
|
|
2260
2421
|
React.createElement("div", { className: styles$j.dragHandleBefore }, dragHandle),
|
|
2261
2422
|
picto &&
|
|
@@ -2270,7 +2431,7 @@ var ListItem = React.forwardRef(function (_a, ref) {
|
|
|
2270
2431
|
actions && React.createElement("div", { className: styles$j.col_actions }, actions),
|
|
2271
2432
|
hasArrow &&
|
|
2272
2433
|
React.createElement("div", { className: styles$j.col_arrow },
|
|
2273
|
-
React.createElement(
|
|
2434
|
+
React.createElement(ChevronRight, { strokeWidth: 1.5 })),
|
|
2274
2435
|
dragHandle && dragHandlePosition === 'before' &&
|
|
2275
2436
|
React.createElement("div", { className: styles$j.dragHandleBefore }, dragHandle)));
|
|
2276
2437
|
});
|
|
@@ -3168,156 +3329,6 @@ var css_248z$f = ".EditorHeader-module_header__YJnbF{align-items:center;backgrou
|
|
|
3168
3329
|
var styles$d = {"header":"EditorHeader-module_header__YJnbF","has_border":"EditorHeader-module_has_border__3SmC0","col_left":"EditorHeader-module_col_left__qs7KX","col_center":"EditorHeader-module_col_center__ydIXQ","col_right":"EditorHeader-module_col_right__aBErY","left_back":"EditorHeader-module_left_back__u1uDO","left_back_arrow":"EditorHeader-module_left_back_arrow__vds1s","left_back_icon":"EditorHeader-module_left_back_icon__4JR3s","left_content":"EditorHeader-module_left_content__WGalp","left_title":"EditorHeader-module_left_title__mEHj6","hasBorder":"EditorHeader-module_has_border__3SmC0","colLeft":"EditorHeader-module_col_left__qs7KX","colCenter":"EditorHeader-module_col_center__ydIXQ","colRight":"EditorHeader-module_col_right__aBErY","leftBack":"EditorHeader-module_left_back__u1uDO","leftBackArrow":"EditorHeader-module_left_back_arrow__vds1s","leftBackIcon":"EditorHeader-module_left_back_icon__4JR3s","leftContent":"EditorHeader-module_left_content__WGalp","leftTitle":"EditorHeader-module_left_title__mEHj6"};
|
|
3169
3330
|
styleInject(css_248z$f);
|
|
3170
3331
|
|
|
3171
|
-
/**
|
|
3172
|
-
* @license lucide-react v1.22.0 - ISC
|
|
3173
|
-
*
|
|
3174
|
-
* This source code is licensed under the ISC license.
|
|
3175
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
3176
|
-
*/
|
|
3177
|
-
|
|
3178
|
-
const mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
|
3179
|
-
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
|
3180
|
-
}).join(" ").trim();
|
|
3181
|
-
|
|
3182
|
-
/**
|
|
3183
|
-
* @license lucide-react v1.22.0 - ISC
|
|
3184
|
-
*
|
|
3185
|
-
* This source code is licensed under the ISC license.
|
|
3186
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
3187
|
-
*/
|
|
3188
|
-
|
|
3189
|
-
const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
3190
|
-
|
|
3191
|
-
/**
|
|
3192
|
-
* @license lucide-react v1.22.0 - ISC
|
|
3193
|
-
*
|
|
3194
|
-
* This source code is licensed under the ISC license.
|
|
3195
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
3196
|
-
*/
|
|
3197
|
-
|
|
3198
|
-
const toCamelCase = (string) => string.replace(
|
|
3199
|
-
/^([A-Z])|[\s-_]+(\w)/g,
|
|
3200
|
-
(match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()
|
|
3201
|
-
);
|
|
3202
|
-
|
|
3203
|
-
/**
|
|
3204
|
-
* @license lucide-react v1.22.0 - ISC
|
|
3205
|
-
*
|
|
3206
|
-
* This source code is licensed under the ISC license.
|
|
3207
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
3208
|
-
*/
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
const toPascalCase = (string) => {
|
|
3212
|
-
const camelCase = toCamelCase(string);
|
|
3213
|
-
return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
|
|
3214
|
-
};
|
|
3215
|
-
|
|
3216
|
-
/**
|
|
3217
|
-
* @license lucide-react v1.22.0 - ISC
|
|
3218
|
-
*
|
|
3219
|
-
* This source code is licensed under the ISC license.
|
|
3220
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
3221
|
-
*/
|
|
3222
|
-
|
|
3223
|
-
var defaultAttributes = {
|
|
3224
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3225
|
-
width: 24,
|
|
3226
|
-
height: 24,
|
|
3227
|
-
viewBox: "0 0 24 24",
|
|
3228
|
-
fill: "none",
|
|
3229
|
-
stroke: "currentColor",
|
|
3230
|
-
strokeWidth: 2,
|
|
3231
|
-
strokeLinecap: "round",
|
|
3232
|
-
strokeLinejoin: "round"
|
|
3233
|
-
};
|
|
3234
|
-
|
|
3235
|
-
/**
|
|
3236
|
-
* @license lucide-react v1.22.0 - ISC
|
|
3237
|
-
*
|
|
3238
|
-
* This source code is licensed under the ISC license.
|
|
3239
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
3240
|
-
*/
|
|
3241
|
-
|
|
3242
|
-
const hasA11yProp = (props) => {
|
|
3243
|
-
for (const prop in props) {
|
|
3244
|
-
if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
|
|
3245
|
-
return true;
|
|
3246
|
-
}
|
|
3247
|
-
}
|
|
3248
|
-
return false;
|
|
3249
|
-
};
|
|
3250
|
-
|
|
3251
|
-
const LucideContext = createContext({});
|
|
3252
|
-
const useLucideContext = () => useContext(LucideContext);
|
|
3253
|
-
|
|
3254
|
-
const Icon = forwardRef(
|
|
3255
|
-
({ color, size, strokeWidth, absoluteStrokeWidth, className = "", children, iconNode, ...rest }, ref) => {
|
|
3256
|
-
const {
|
|
3257
|
-
size: contextSize = 24,
|
|
3258
|
-
strokeWidth: contextStrokeWidth = 2,
|
|
3259
|
-
absoluteStrokeWidth: contextAbsoluteStrokeWidth = false,
|
|
3260
|
-
color: contextColor = "currentColor",
|
|
3261
|
-
className: contextClass = ""
|
|
3262
|
-
} = useLucideContext() ?? {};
|
|
3263
|
-
const calculatedStrokeWidth = absoluteStrokeWidth ?? contextAbsoluteStrokeWidth ? Number(strokeWidth ?? contextStrokeWidth) * 24 / Number(size ?? contextSize) : strokeWidth ?? contextStrokeWidth;
|
|
3264
|
-
return createElement(
|
|
3265
|
-
"svg",
|
|
3266
|
-
{
|
|
3267
|
-
ref,
|
|
3268
|
-
...defaultAttributes,
|
|
3269
|
-
width: size ?? contextSize ?? defaultAttributes.width,
|
|
3270
|
-
height: size ?? contextSize ?? defaultAttributes.height,
|
|
3271
|
-
stroke: color ?? contextColor,
|
|
3272
|
-
strokeWidth: calculatedStrokeWidth,
|
|
3273
|
-
className: mergeClasses("lucide", contextClass, className),
|
|
3274
|
-
...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
|
|
3275
|
-
...rest
|
|
3276
|
-
},
|
|
3277
|
-
[
|
|
3278
|
-
...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),
|
|
3279
|
-
...Array.isArray(children) ? children : [children]
|
|
3280
|
-
]
|
|
3281
|
-
);
|
|
3282
|
-
}
|
|
3283
|
-
);
|
|
3284
|
-
|
|
3285
|
-
/**
|
|
3286
|
-
* @license lucide-react v1.22.0 - ISC
|
|
3287
|
-
*
|
|
3288
|
-
* This source code is licensed under the ISC license.
|
|
3289
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
3290
|
-
*/
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
const createLucideIcon = (iconName, iconNode) => {
|
|
3294
|
-
const Component = forwardRef(
|
|
3295
|
-
({ className, ...props }, ref) => createElement(Icon, {
|
|
3296
|
-
ref,
|
|
3297
|
-
iconNode,
|
|
3298
|
-
className: mergeClasses(
|
|
3299
|
-
`lucide-${toKebabCase(toPascalCase(iconName))}`,
|
|
3300
|
-
`lucide-${iconName}`,
|
|
3301
|
-
className
|
|
3302
|
-
),
|
|
3303
|
-
...props
|
|
3304
|
-
})
|
|
3305
|
-
);
|
|
3306
|
-
Component.displayName = toPascalCase(iconName);
|
|
3307
|
-
return Component;
|
|
3308
|
-
};
|
|
3309
|
-
|
|
3310
|
-
/**
|
|
3311
|
-
* @license lucide-react v1.22.0 - ISC
|
|
3312
|
-
*
|
|
3313
|
-
* This source code is licensed under the ISC license.
|
|
3314
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
3315
|
-
*/
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
const __iconNode = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
|
|
3319
|
-
const ChevronLeft = createLucideIcon("chevron-left", __iconNode);
|
|
3320
|
-
|
|
3321
3332
|
function EditorHeader(_a) {
|
|
3322
3333
|
var _b = _a.left, left = _b === void 0 ? React.createElement(React.Fragment, null) : _b, _c = _a.leftTitle, leftTitle = _c === void 0 ? '' : _c, _d = _a.center, center = _d === void 0 ? React.createElement(React.Fragment, null) : _d, _e = _a.right, right = _e === void 0 ? React.createElement(React.Fragment, null) : _e, _f = _a.hasBorder, hasBorder = _f === void 0 ? true : _f, _g = _a.hasBackButton, hasBackButton = _g === void 0 ? true : _g, _h = _a.backTitle, backTitle = _h === void 0 ? 'Back' : _h, backOnClick = _a.backOnClick;
|
|
3323
3334
|
var tooltipID = v4();
|