ui-beyable 1.1.0-beta.22 → 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 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
  });
@@ -3170,156 +3331,6 @@ var css_248z$f = ".EditorHeader-module_header__YJnbF{align-items:center;backgrou
3170
3331
  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
3332
  styleInject(css_248z$f);
3172
3333
 
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
3334
  function EditorHeader(_a) {
3324
3335
  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
3336
  var tooltipID = v4();