ui-beyable 1.1.0-beta.22 → 1.1.0-beta.24

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.
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { ICheckbox, IRadio, ISwitch } from './types';
3
3
  import { IList } from '../List/types';
4
- declare function Checkbox({ children, type, label, description, tooltip, tooltipHTML, name, value, checked, forcedChecked, disabled, onChange, size, fullWidth }: ICheckbox): JSX.Element;
4
+ declare function Checkbox({ children, type, label, description, tooltip, tooltipHTML, name, value, checked, forcedChecked, disabled, onChange, size, fullWidth, className }: ICheckbox): JSX.Element;
5
5
  declare function Radio(props: IRadio): JSX.Element;
6
- declare function Switch({ children, label, name, value, checked, onChange, disabled, forcedChecked, position, size, align, verticalSize, noMargin }: ISwitch): JSX.Element;
6
+ declare function Switch({ children, label, name, value, checked, onChange, disabled, forcedChecked, position, size, align, verticalSize, noMargin, className }: ISwitch): JSX.Element;
7
7
  declare function CheckboxList(props: IList): JSX.Element;
8
8
  export { Checkbox, Radio, Switch, CheckboxList };
@@ -9,6 +9,7 @@ interface ICommon {
9
9
  forcedChecked?: boolean;
10
10
  disabled?: boolean;
11
11
  onChange?: any;
12
+ className?: string;
12
13
  }
13
14
  interface IRadio extends ICommon {
14
15
  size?: 's' | 'm' | 'l';
package/lib/cjs/index.js CHANGED
@@ -2178,6 +2178,167 @@ var css_248z$s = ".Utils-module_ellips__36ERe{word-wrap:normal;display:block;ove
2178
2178
  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"};
2179
2179
  styleInject(css_248z$s);
2180
2180
 
2181
+ /**
2182
+ * @license lucide-react v1.22.0 - ISC
2183
+ *
2184
+ * This source code is licensed under the ISC license.
2185
+ * See the LICENSE file in the root directory of this source tree.
2186
+ */
2187
+
2188
+ const mergeClasses = (...classes) => classes.filter((className, index, array) => {
2189
+ return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
2190
+ }).join(" ").trim();
2191
+
2192
+ /**
2193
+ * @license lucide-react v1.22.0 - ISC
2194
+ *
2195
+ * This source code is licensed under the ISC license.
2196
+ * See the LICENSE file in the root directory of this source tree.
2197
+ */
2198
+
2199
+ const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
2200
+
2201
+ /**
2202
+ * @license lucide-react v1.22.0 - ISC
2203
+ *
2204
+ * This source code is licensed under the ISC license.
2205
+ * See the LICENSE file in the root directory of this source tree.
2206
+ */
2207
+
2208
+ const toCamelCase = (string) => string.replace(
2209
+ /^([A-Z])|[\s-_]+(\w)/g,
2210
+ (match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()
2211
+ );
2212
+
2213
+ /**
2214
+ * @license lucide-react v1.22.0 - ISC
2215
+ *
2216
+ * This source code is licensed under the ISC license.
2217
+ * See the LICENSE file in the root directory of this source tree.
2218
+ */
2219
+
2220
+
2221
+ const toPascalCase = (string) => {
2222
+ const camelCase = toCamelCase(string);
2223
+ return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
2224
+ };
2225
+
2226
+ /**
2227
+ * @license lucide-react v1.22.0 - ISC
2228
+ *
2229
+ * This source code is licensed under the ISC license.
2230
+ * See the LICENSE file in the root directory of this source tree.
2231
+ */
2232
+
2233
+ var defaultAttributes = {
2234
+ xmlns: "http://www.w3.org/2000/svg",
2235
+ width: 24,
2236
+ height: 24,
2237
+ viewBox: "0 0 24 24",
2238
+ fill: "none",
2239
+ stroke: "currentColor",
2240
+ strokeWidth: 2,
2241
+ strokeLinecap: "round",
2242
+ strokeLinejoin: "round"
2243
+ };
2244
+
2245
+ /**
2246
+ * @license lucide-react v1.22.0 - ISC
2247
+ *
2248
+ * This source code is licensed under the ISC license.
2249
+ * See the LICENSE file in the root directory of this source tree.
2250
+ */
2251
+
2252
+ const hasA11yProp = (props) => {
2253
+ for (const prop in props) {
2254
+ if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
2255
+ return true;
2256
+ }
2257
+ }
2258
+ return false;
2259
+ };
2260
+
2261
+ const LucideContext = React.createContext({});
2262
+ const useLucideContext = () => React.useContext(LucideContext);
2263
+
2264
+ const Icon = React.forwardRef(
2265
+ ({ color, size, strokeWidth, absoluteStrokeWidth, className = "", children, iconNode, ...rest }, ref) => {
2266
+ const {
2267
+ size: contextSize = 24,
2268
+ strokeWidth: contextStrokeWidth = 2,
2269
+ absoluteStrokeWidth: contextAbsoluteStrokeWidth = false,
2270
+ color: contextColor = "currentColor",
2271
+ className: contextClass = ""
2272
+ } = useLucideContext() ?? {};
2273
+ const calculatedStrokeWidth = absoluteStrokeWidth ?? contextAbsoluteStrokeWidth ? Number(strokeWidth ?? contextStrokeWidth) * 24 / Number(size ?? contextSize) : strokeWidth ?? contextStrokeWidth;
2274
+ return React.createElement(
2275
+ "svg",
2276
+ {
2277
+ ref,
2278
+ ...defaultAttributes,
2279
+ width: size ?? contextSize ?? defaultAttributes.width,
2280
+ height: size ?? contextSize ?? defaultAttributes.height,
2281
+ stroke: color ?? contextColor,
2282
+ strokeWidth: calculatedStrokeWidth,
2283
+ className: mergeClasses("lucide", contextClass, className),
2284
+ ...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
2285
+ ...rest
2286
+ },
2287
+ [
2288
+ ...iconNode.map(([tag, attrs]) => React.createElement(tag, attrs)),
2289
+ ...Array.isArray(children) ? children : [children]
2290
+ ]
2291
+ );
2292
+ }
2293
+ );
2294
+
2295
+ /**
2296
+ * @license lucide-react v1.22.0 - ISC
2297
+ *
2298
+ * This source code is licensed under the ISC license.
2299
+ * See the LICENSE file in the root directory of this source tree.
2300
+ */
2301
+
2302
+
2303
+ const createLucideIcon = (iconName, iconNode) => {
2304
+ const Component = React.forwardRef(
2305
+ ({ className, ...props }, ref) => React.createElement(Icon, {
2306
+ ref,
2307
+ iconNode,
2308
+ className: mergeClasses(
2309
+ `lucide-${toKebabCase(toPascalCase(iconName))}`,
2310
+ `lucide-${iconName}`,
2311
+ className
2312
+ ),
2313
+ ...props
2314
+ })
2315
+ );
2316
+ Component.displayName = toPascalCase(iconName);
2317
+ return Component;
2318
+ };
2319
+
2320
+ /**
2321
+ * @license lucide-react v1.22.0 - ISC
2322
+ *
2323
+ * This source code is licensed under the ISC license.
2324
+ * See the LICENSE file in the root directory of this source tree.
2325
+ */
2326
+
2327
+
2328
+ const __iconNode$1 = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
2329
+ const ChevronLeft = createLucideIcon("chevron-left", __iconNode$1);
2330
+
2331
+ /**
2332
+ * @license lucide-react v1.22.0 - ISC
2333
+ *
2334
+ * This source code is licensed under the ISC license.
2335
+ * See the LICENSE file in the root directory of this source tree.
2336
+ */
2337
+
2338
+
2339
+ const __iconNode = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
2340
+ const ChevronRight = createLucideIcon("chevron-right", __iconNode);
2341
+
2181
2342
  var List = React.forwardRef(function (_a, ref) {
2182
2343
  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"]);
2183
2344
  var cssClass = [styles$j.list];
@@ -2272,7 +2433,7 @@ var ListItem = React.forwardRef(function (_a, ref) {
2272
2433
  actions && React.createElement("div", { className: styles$j.col_actions }, actions),
2273
2434
  hasArrow &&
2274
2435
  React.createElement("div", { className: styles$j.col_arrow },
2275
- React.createElement("i", { className: 'fas fa-chevron-right' })),
2436
+ React.createElement(ChevronRight, { strokeWidth: 1.5 })),
2276
2437
  dragHandle && dragHandlePosition === 'before' &&
2277
2438
  React.createElement("div", { className: styles$j.dragHandleBefore }, dragHandle)));
2278
2439
  });
@@ -2292,7 +2453,7 @@ var margin = {"l_2":"Margin-module_l_2__SAWjp","l_3":"Margin-module_l_3__oR-rV",
2292
2453
  styleInject(css_248z$p);
2293
2454
 
2294
2455
  function Checkbox(_a) {
2295
- var children = _a.children, _b = _a.type, type = _b === void 0 ? 'checkbox' : _b, _c = _a.label, label = _c === void 0 ? '' : _c, _d = _a.description, description = _d === void 0 ? '' : _d, _e = _a.tooltip, tooltip = _e === void 0 ? '' : _e, _f = _a.tooltipHTML, tooltipHTML = _f === void 0 ? '' : _f, name = _a.name, value = _a.value, checked = _a.checked, forcedChecked = _a.forcedChecked, _g = _a.disabled, disabled = _g === void 0 ? false : _g, onChange = _a.onChange, _h = _a.size, size = _h === void 0 ? 'm' : _h, _j = _a.fullWidth, fullWidth = _j === void 0 ? false : _j;
2456
+ var children = _a.children, _b = _a.type, type = _b === void 0 ? 'checkbox' : _b, _c = _a.label, label = _c === void 0 ? '' : _c, _d = _a.description, description = _d === void 0 ? '' : _d, _e = _a.tooltip, tooltip = _e === void 0 ? '' : _e, _f = _a.tooltipHTML, tooltipHTML = _f === void 0 ? '' : _f, name = _a.name, value = _a.value, checked = _a.checked, forcedChecked = _a.forcedChecked, _g = _a.disabled, disabled = _g === void 0 ? false : _g, onChange = _a.onChange, _h = _a.size, size = _h === void 0 ? 'm' : _h, _j = _a.fullWidth, fullWidth = _j === void 0 ? false : _j, className = _a.className;
2296
2457
  var tooltipID = v4();
2297
2458
  var change = function (ev) {
2298
2459
  if (typeof onChange === 'function') {
@@ -2320,6 +2481,9 @@ function Checkbox(_a) {
2320
2481
  l: styles$i.wrapper_size_l,
2321
2482
  xl: styles$i.wrapper_size_xl,
2322
2483
  };
2484
+ if (className) {
2485
+ cssClass.push(className);
2486
+ }
2323
2487
  if (disabled) {
2324
2488
  cssClass.push(styles$i.wrapper_disabled);
2325
2489
  }
@@ -2372,7 +2536,7 @@ function Radio(props) {
2372
2536
  return (React.createElement(Checkbox, __assign({}, props, { type: "radio" }), props.children));
2373
2537
  }
2374
2538
  function Switch(_a) {
2375
- var children = _a.children, label = _a.label, name = _a.name, value = _a.value, checked = _a.checked, onChange = _a.onChange, _b = _a.disabled, disabled = _b === void 0 ? false : _b, forcedChecked = _a.forcedChecked, _c = _a.position, position = _c === void 0 ? 'left' : _c, _d = _a.size, size = _d === void 0 ? 'm' : _d, _e = _a.align, align = _e === void 0 ? 'top' : _e, _f = _a.verticalSize, verticalSize = _f === void 0 ? 'm' : _f, _g = _a.noMargin, noMargin = _g === void 0 ? false : _g;
2539
+ var children = _a.children, label = _a.label, name = _a.name, value = _a.value, checked = _a.checked, onChange = _a.onChange, _b = _a.disabled, disabled = _b === void 0 ? false : _b, forcedChecked = _a.forcedChecked, _c = _a.position, position = _c === void 0 ? 'left' : _c, _d = _a.size, size = _d === void 0 ? 'm' : _d, _e = _a.align, align = _e === void 0 ? 'top' : _e, _f = _a.verticalSize, verticalSize = _f === void 0 ? 'm' : _f, _g = _a.noMargin, noMargin = _g === void 0 ? false : _g, className = _a.className;
2376
2540
  var change = function (ev) {
2377
2541
  if (typeof onChange === 'function') {
2378
2542
  onChange(ev);
@@ -2396,6 +2560,9 @@ function Switch(_a) {
2396
2560
  l: styles$i.wrapper_padding_l,
2397
2561
  xl: styles$i.wrapper_padding_xl,
2398
2562
  };
2563
+ if (className) {
2564
+ labelClass.push(className);
2565
+ }
2399
2566
  if (isChecked) {
2400
2567
  switchClass.push(styles$i.switch_checked);
2401
2568
  }
@@ -3170,156 +3337,6 @@ var css_248z$f = ".EditorHeader-module_header__YJnbF{align-items:center;backgrou
3170
3337
  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"};
3171
3338
  styleInject(css_248z$f);
3172
3339
 
3173
- /**
3174
- * @license lucide-react v1.22.0 - ISC
3175
- *
3176
- * This source code is licensed under the ISC license.
3177
- * See the LICENSE file in the root directory of this source tree.
3178
- */
3179
-
3180
- const mergeClasses = (...classes) => classes.filter((className, index, array) => {
3181
- return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
3182
- }).join(" ").trim();
3183
-
3184
- /**
3185
- * @license lucide-react v1.22.0 - ISC
3186
- *
3187
- * This source code is licensed under the ISC license.
3188
- * See the LICENSE file in the root directory of this source tree.
3189
- */
3190
-
3191
- const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
3192
-
3193
- /**
3194
- * @license lucide-react v1.22.0 - ISC
3195
- *
3196
- * This source code is licensed under the ISC license.
3197
- * See the LICENSE file in the root directory of this source tree.
3198
- */
3199
-
3200
- const toCamelCase = (string) => string.replace(
3201
- /^([A-Z])|[\s-_]+(\w)/g,
3202
- (match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()
3203
- );
3204
-
3205
- /**
3206
- * @license lucide-react v1.22.0 - ISC
3207
- *
3208
- * This source code is licensed under the ISC license.
3209
- * See the LICENSE file in the root directory of this source tree.
3210
- */
3211
-
3212
-
3213
- const toPascalCase = (string) => {
3214
- const camelCase = toCamelCase(string);
3215
- return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
3216
- };
3217
-
3218
- /**
3219
- * @license lucide-react v1.22.0 - ISC
3220
- *
3221
- * This source code is licensed under the ISC license.
3222
- * See the LICENSE file in the root directory of this source tree.
3223
- */
3224
-
3225
- var defaultAttributes = {
3226
- xmlns: "http://www.w3.org/2000/svg",
3227
- width: 24,
3228
- height: 24,
3229
- viewBox: "0 0 24 24",
3230
- fill: "none",
3231
- stroke: "currentColor",
3232
- strokeWidth: 2,
3233
- strokeLinecap: "round",
3234
- strokeLinejoin: "round"
3235
- };
3236
-
3237
- /**
3238
- * @license lucide-react v1.22.0 - ISC
3239
- *
3240
- * This source code is licensed under the ISC license.
3241
- * See the LICENSE file in the root directory of this source tree.
3242
- */
3243
-
3244
- const hasA11yProp = (props) => {
3245
- for (const prop in props) {
3246
- if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
3247
- return true;
3248
- }
3249
- }
3250
- return false;
3251
- };
3252
-
3253
- const LucideContext = React.createContext({});
3254
- const useLucideContext = () => React.useContext(LucideContext);
3255
-
3256
- const Icon = React.forwardRef(
3257
- ({ color, size, strokeWidth, absoluteStrokeWidth, className = "", children, iconNode, ...rest }, ref) => {
3258
- const {
3259
- size: contextSize = 24,
3260
- strokeWidth: contextStrokeWidth = 2,
3261
- absoluteStrokeWidth: contextAbsoluteStrokeWidth = false,
3262
- color: contextColor = "currentColor",
3263
- className: contextClass = ""
3264
- } = useLucideContext() ?? {};
3265
- const calculatedStrokeWidth = absoluteStrokeWidth ?? contextAbsoluteStrokeWidth ? Number(strokeWidth ?? contextStrokeWidth) * 24 / Number(size ?? contextSize) : strokeWidth ?? contextStrokeWidth;
3266
- return React.createElement(
3267
- "svg",
3268
- {
3269
- ref,
3270
- ...defaultAttributes,
3271
- width: size ?? contextSize ?? defaultAttributes.width,
3272
- height: size ?? contextSize ?? defaultAttributes.height,
3273
- stroke: color ?? contextColor,
3274
- strokeWidth: calculatedStrokeWidth,
3275
- className: mergeClasses("lucide", contextClass, className),
3276
- ...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
3277
- ...rest
3278
- },
3279
- [
3280
- ...iconNode.map(([tag, attrs]) => React.createElement(tag, attrs)),
3281
- ...Array.isArray(children) ? children : [children]
3282
- ]
3283
- );
3284
- }
3285
- );
3286
-
3287
- /**
3288
- * @license lucide-react v1.22.0 - ISC
3289
- *
3290
- * This source code is licensed under the ISC license.
3291
- * See the LICENSE file in the root directory of this source tree.
3292
- */
3293
-
3294
-
3295
- const createLucideIcon = (iconName, iconNode) => {
3296
- const Component = React.forwardRef(
3297
- ({ className, ...props }, ref) => React.createElement(Icon, {
3298
- ref,
3299
- iconNode,
3300
- className: mergeClasses(
3301
- `lucide-${toKebabCase(toPascalCase(iconName))}`,
3302
- `lucide-${iconName}`,
3303
- className
3304
- ),
3305
- ...props
3306
- })
3307
- );
3308
- Component.displayName = toPascalCase(iconName);
3309
- return Component;
3310
- };
3311
-
3312
- /**
3313
- * @license lucide-react v1.22.0 - ISC
3314
- *
3315
- * This source code is licensed under the ISC license.
3316
- * See the LICENSE file in the root directory of this source tree.
3317
- */
3318
-
3319
-
3320
- const __iconNode = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
3321
- const ChevronLeft = createLucideIcon("chevron-left", __iconNode);
3322
-
3323
3340
  function EditorHeader(_a) {
3324
3341
  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;
3325
3342
  var tooltipID = v4();