@pathscale/ui 0.0.44 → 0.0.46

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/dist/index.js CHANGED
@@ -2,6 +2,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__ from "solid-js/web
2
2
  import * as __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__ from "solid-js";
3
3
  import * as __WEBPACK_EXTERNAL_MODULE__felte_solid_6a709b1d__ from "@felte/solid";
4
4
  import * as __WEBPACK_EXTERNAL_MODULE__felte_validator_zod_bb07151a__ from "@felte/validator-zod";
5
+ import * as __WEBPACK_EXTERNAL_MODULE__tanstack_solid_table_1239d047__ from "@tanstack/solid-table";
5
6
  const CLASS_PART_SEPARATOR = '-';
6
7
  const createClassGroupUtils = (config)=>{
7
8
  const classMap = createClassMap(config);
@@ -8350,176 +8351,236 @@ const ShowcaseBlock = (props)=>{
8350
8351
  }));
8351
8352
  };
8352
8353
  const showcase_ShowcaseBlock = ShowcaseBlock;
8353
- var Sidenav_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<span class=sidenav-item-label>"), Sidenav_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<a class=sidenav-item-link>"), Sidenav_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<li>"), Sidenav_tmpl$4 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<button type=button class=sidenav-item-button>"), _tmpl$5 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div class=sidenav-group>"), _tmpl$6 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div class=sidenav-group-label>"), _tmpl$7 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div class=sidenav-group><ul class=sidenav-group-items>"), _tmpl$8 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div class=sidenav-header><h2 class=sidenav-title>"), _tmpl$9 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<ul class=sidenav-menu>"), _tmpl$0 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div class=sidenav-children>"), _tmpl$1 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div class=sidenav-footer>"), _tmpl$10 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<nav><div class=sidenav-content>");
8354
- const Sidenav_Sidenav = (props)=>{
8354
+ var Sidenav_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div class=sidenav-header><h2 class=sidenav-title>"), Sidenav_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div class=sidenav-footer>"), Sidenav_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<nav><div class=sidenav-content>");
8355
+ const Sidenav = (props)=>{
8355
8356
  const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
8356
8357
  "title",
8357
- "items",
8358
8358
  "isOpen",
8359
8359
  "onClose",
8360
8360
  "collapsed",
8361
8361
  "children",
8362
8362
  "footer",
8363
- "class"
8363
+ "class",
8364
+ "className",
8365
+ "dataTheme",
8366
+ "style"
8364
8367
  ]);
8365
- const handleItemClick = (item)=>{
8366
- if (item.onClick) item.onClick();
8367
- };
8368
- const sidenavClasses = ()=>twMerge("sidenav", local.class, clsx({
8368
+ const resolvedChildren = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
8369
+ const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge("sidenav", local.class, local.className, clsx({
8369
8370
  "sidenav-collapsed": local.collapsed,
8370
8371
  "sidenav-closed": !local.isOpen
8371
- }));
8372
- const renderItem = (item)=>(()=>{
8373
- var _el$ = Sidenav_tmpl$3();
8374
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
8375
- get when () {
8376
- return item.href;
8377
- },
8378
- get fallback () {
8379
- return (()=>{
8380
- var _el$4 = Sidenav_tmpl$4();
8381
- _el$4.$$click = ()=>handleItemClick(item);
8382
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, ()=>item.icon, null);
8383
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
8384
- get when () {
8385
- return !local.collapsed;
8386
- },
8387
- get children () {
8388
- var _el$5 = Sidenav_tmpl$();
8389
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$5, ()=>item.label);
8390
- return _el$5;
8391
- }
8392
- }), null);
8393
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$4, "title", local.collapsed ? item.label : void 0));
8394
- return _el$4;
8395
- })();
8396
- },
8397
- get children () {
8398
- var _el$2 = Sidenav_tmpl$2();
8399
- _el$2.$$click = ()=>handleItemClick(item);
8400
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, ()=>item.icon, null);
8401
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
8402
- get when () {
8403
- return !local.collapsed;
8404
- },
8405
- get children () {
8406
- var _el$3 = Sidenav_tmpl$();
8407
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, ()=>item.label);
8408
- return _el$3;
8409
- }
8410
- }), null);
8411
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
8412
- var _v$ = item.href, _v$2 = local.collapsed ? item.label : void 0;
8413
- _v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$2, "href", _p$.e = _v$);
8414
- _v$2 !== _p$.t && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$2, "title", _p$.t = _v$2);
8415
- return _p$;
8416
- }, {
8417
- e: void 0,
8418
- t: void 0
8419
- });
8420
- return _el$2;
8421
- }
8422
- }));
8423
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, clsx("sidenav-item", {
8424
- "sidenav-item-active": item.active
8425
- })));
8426
- return _el$;
8427
- })();
8428
- const renderGroup = (group)=>{
8429
- if (local.collapsed) return (()=>{
8430
- var _el$6 = _tmpl$5();
8431
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$6, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
8432
- get each () {
8433
- return group.items;
8434
- },
8435
- children: (groupItem)=>renderItem(groupItem)
8436
- }));
8437
- return _el$6;
8438
- })();
8439
- return (()=>{
8440
- var _el$7 = _tmpl$7(), _el$9 = _el$7.firstChild;
8441
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$7, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
8442
- get when () {
8443
- return group.label;
8444
- },
8445
- get children () {
8446
- var _el$8 = _tmpl$6();
8447
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$8, ()=>group.label);
8448
- return _el$8;
8449
- }
8450
- }), _el$9);
8451
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$9, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
8452
- get each () {
8453
- return group.items;
8454
- },
8455
- children: (groupItem)=>renderItem(groupItem)
8456
- }));
8457
- return _el$7;
8458
- })();
8459
- };
8372
+ })));
8460
8373
  return (()=>{
8461
- var _el$0 = _tmpl$10(), _el$11 = _el$0.firstChild;
8462
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$0, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
8374
+ var _el$ = Sidenav_tmpl$3(), _el$4 = _el$.firstChild;
8375
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
8463
8376
  get ["class"] () {
8464
- return sidenavClasses();
8377
+ return classes();
8378
+ },
8379
+ get ["data-theme"] () {
8380
+ return local.dataTheme;
8381
+ },
8382
+ get style () {
8383
+ return local.style;
8465
8384
  }
8466
- }, others), false, true);
8467
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$0, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
8385
+ }), false, true);
8386
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
8468
8387
  get when () {
8469
8388
  return local.title && !local.collapsed;
8470
8389
  },
8471
8390
  get children () {
8472
- var _el$1 = _tmpl$8(), _el$10 = _el$1.firstChild;
8473
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$10, ()=>local.title);
8474
- return _el$1;
8391
+ var _el$2 = Sidenav_tmpl$(), _el$3 = _el$2.firstChild;
8392
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, ()=>local.title);
8393
+ return _el$2;
8475
8394
  }
8476
- }), _el$11);
8477
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$11, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
8395
+ }), _el$4);
8396
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$4, resolvedChildren);
8397
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
8478
8398
  get when () {
8479
- return local.items && local.items.length > 0;
8399
+ return local.footer;
8480
8400
  },
8481
8401
  get children () {
8482
- var _el$12 = _tmpl$9();
8483
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$12, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
8484
- get each () {
8485
- return local.items;
8486
- },
8487
- children: (item)=>{
8488
- const isGroup = "items" in item;
8489
- if (!isGroup) return renderItem(item);
8490
- return renderGroup(item);
8491
- }
8492
- }));
8493
- return _el$12;
8402
+ var _el$5 = Sidenav_tmpl$2();
8403
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$5, ()=>local.footer);
8404
+ return _el$5;
8494
8405
  }
8495
8406
  }), null);
8496
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$11, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
8497
- get when () {
8498
- return local.children && !local.collapsed;
8407
+ return _el$;
8408
+ })();
8409
+ };
8410
+ const sidenav_Sidenav = Sidenav;
8411
+ var SidenavMenu_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<ul>");
8412
+ const SidenavMenu = (props)=>{
8413
+ const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
8414
+ "children",
8415
+ "class",
8416
+ "className",
8417
+ "dataTheme",
8418
+ "style"
8419
+ ]);
8420
+ const resolvedChildren = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
8421
+ const classes = twMerge("sidenav-menu", local.class, local.className);
8422
+ return (()=>{
8423
+ var _el$ = SidenavMenu_tmpl$();
8424
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
8425
+ class: classes,
8426
+ get ["data-theme"] () {
8427
+ return local.dataTheme;
8499
8428
  },
8500
- get children () {
8501
- var _el$13 = _tmpl$0();
8502
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$13, ()=>local.children);
8503
- return _el$13;
8429
+ get style () {
8430
+ return local.style;
8504
8431
  }
8505
- }), null);
8506
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$0, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
8432
+ }), false, true);
8433
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, resolvedChildren);
8434
+ return _el$;
8435
+ })();
8436
+ };
8437
+ const sidenav_SidenavMenu = SidenavMenu;
8438
+ var SidenavItem_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<li>");
8439
+ const SidenavItem = (props)=>{
8440
+ console.log("SidenavItem component rendered with active:", props.active);
8441
+ const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
8442
+ "children",
8443
+ "active",
8444
+ "class",
8445
+ "className",
8446
+ "dataTheme",
8447
+ "style"
8448
+ ]);
8449
+ const resolvedChildren = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
8450
+ const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
8451
+ console.log(`SidenavItem createMemo running - active prop: ${local.active}`);
8452
+ return twMerge("sidenav-item", local.class, local.className, clsx({
8453
+ "sidenav-item-active": local.active
8454
+ }));
8455
+ });
8456
+ return (()=>{
8457
+ var _el$ = SidenavItem_tmpl$();
8458
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
8459
+ get ["class"] () {
8460
+ return classes();
8461
+ },
8462
+ get ["data-theme"] () {
8463
+ return local.dataTheme;
8464
+ },
8465
+ get style () {
8466
+ return local.style;
8467
+ }
8468
+ }), false, true);
8469
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, resolvedChildren);
8470
+ return _el$;
8471
+ })();
8472
+ };
8473
+ const sidenav_SidenavItem = SidenavItem;
8474
+ var SidenavGroup_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div class=sidenav-group-label>"), SidenavGroup_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div><ul class=sidenav-group-items>");
8475
+ const SidenavGroup = (props)=>{
8476
+ const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
8477
+ "label",
8478
+ "children",
8479
+ "collapsed",
8480
+ "class",
8481
+ "className",
8482
+ "dataTheme",
8483
+ "style"
8484
+ ]);
8485
+ const resolvedChildren = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
8486
+ const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge("sidenav-group", local.class, local.className));
8487
+ return (()=>{
8488
+ var _el$ = SidenavGroup_tmpl$2(), _el$3 = _el$.firstChild;
8489
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
8490
+ get ["class"] () {
8491
+ return classes();
8492
+ },
8493
+ get ["data-theme"] () {
8494
+ return local.dataTheme;
8495
+ },
8496
+ get style () {
8497
+ return local.style;
8498
+ }
8499
+ }), false, true);
8500
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.Show, {
8507
8501
  get when () {
8508
- return local.footer;
8502
+ return local.label && !local.collapsed;
8509
8503
  },
8510
8504
  get children () {
8511
- var _el$14 = _tmpl$1();
8512
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$14, ()=>local.footer);
8513
- return _el$14;
8505
+ var _el$2 = SidenavGroup_tmpl$();
8506
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, ()=>local.label);
8507
+ return _el$2;
8514
8508
  }
8515
- }), null);
8516
- return _el$0;
8509
+ }), _el$3);
8510
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, resolvedChildren);
8511
+ return _el$;
8517
8512
  })();
8518
8513
  };
8519
- const Sidenav = Sidenav_Sidenav;
8520
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.delegateEvents)([
8521
- "click"
8522
- ]);
8514
+ const sidenav_SidenavGroup = SidenavGroup;
8515
+ const SidenavLink = (props)=>{
8516
+ const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
8517
+ "children",
8518
+ "asChild",
8519
+ "as",
8520
+ "class",
8521
+ "className",
8522
+ "dataTheme",
8523
+ "style"
8524
+ ]);
8525
+ const resolvedChildren = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
8526
+ const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge("sidenav-item-link", local.class, local.className));
8527
+ if (local.asChild) return resolvedChildren();
8528
+ const Tag = local.as || "div";
8529
+ return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.Dynamic, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)({
8530
+ component: Tag
8531
+ }, others, {
8532
+ get ["class"] () {
8533
+ return classes();
8534
+ },
8535
+ get ["data-theme"] () {
8536
+ return local.dataTheme;
8537
+ },
8538
+ get style () {
8539
+ return local.style;
8540
+ },
8541
+ get children () {
8542
+ return resolvedChildren();
8543
+ }
8544
+ }));
8545
+ };
8546
+ const sidenav_SidenavLink = SidenavLink;
8547
+ var SidenavButton_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<button type=button>");
8548
+ const SidenavButton = (props)=>{
8549
+ const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
8550
+ "children",
8551
+ "onClick",
8552
+ "title",
8553
+ "class",
8554
+ "className",
8555
+ "dataTheme",
8556
+ "style"
8557
+ ]);
8558
+ const resolvedChildren = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.children)(()=>local.children);
8559
+ const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge("sidenav-item-button", local.class, local.className));
8560
+ return (()=>{
8561
+ var _el$ = SidenavButton_tmpl$();
8562
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
8563
+ get ["class"] () {
8564
+ return classes();
8565
+ },
8566
+ get onClick () {
8567
+ return local.onClick;
8568
+ },
8569
+ get title () {
8570
+ return local.title;
8571
+ },
8572
+ get ["data-theme"] () {
8573
+ return local.dataTheme;
8574
+ },
8575
+ get style () {
8576
+ return local.style;
8577
+ }
8578
+ }), false, true);
8579
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, resolvedChildren);
8580
+ return _el$;
8581
+ })();
8582
+ };
8583
+ const sidenav_SidenavButton = SidenavButton;
8523
8584
  var Skeleton_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
8524
8585
  const Skeleton = (props)=>{
8525
8586
  const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
@@ -8853,14 +8914,84 @@ const steps_Steps = Object.assign(Steps, {
8853
8914
  Step: Step
8854
8915
  });
8855
8916
  const steps = steps_Steps;
8856
- var SvgBackground_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div><svg class="absolute inset-0 w-full h-full z-0"viewBox="0 0 400 400"preserveAspectRatio="xMidYMid slice"xmlns=http://www.w3.org/2000/svg><defs><linearGradient gradientTransform="rotate(63, 0.5, 0.5)"x1=50% y1=0% x2=50% y2=100%><stop stop-opacity=1 offset=0%></stop><stop stop-opacity=1 offset=100%></stop></linearGradient><filter x=-20% y=-20% width=140% height=140% filterUnits=objectBoundingBox primitiveUnits=userSpaceOnUse color-interpolation-filters=sRGB><feTurbulence type=fractalNoise numOctaves=2 seed=10 stitchTiles=stitch result=turbulence></feTurbulence><feGaussianBlur in=turbulence result=blur></feGaussianBlur><feBlend in=SourceGraphic in2=blur result=blend></feBlend></filter></defs><rect width=400 height=400></rect></svg><div class="relative z-10 h-full w-full">'), SvgBackground_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="absolute inset-0 z-5">');
8857
- function parseHSL(hslString) {
8858
- const match = hslString.match(/hsl\((\d+),\s*(\d+)%,\s*(\d+)%\)/);
8859
- if (!match) return null;
8917
+ var SvgBackground_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div><svg class="absolute inset-0 w-full h-full z-0"viewBox="0 0 400 400"preserveAspectRatio="xMidYMid slice"xmlns=http://www.w3.org/2000/svg><defs><linearGradient gradientTransform="rotate(63, 0.5, 0.5)"x1=50% y1=0% x2=50% y2=100%><stop stop-opacity=1 offset=0%></stop><stop stop-opacity=1 offset=100%></stop></linearGradient></defs><rect width=400 height=400></rect></svg><div class="relative z-10 h-full w-full">'), SvgBackground_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><filter x=-20% y=-20% width=140% height=140% filterUnits=objectBoundingBox primitiveUnits=userSpaceOnUse color-interpolation-filters=sRGB></svg>", false, true, false), SvgBackground_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><feGaussianBlur in=SourceGraphic result=blur></svg>", false, true, false), SvgBackground_tmpl$4 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><feTurbulence type=fractalNoise numOctaves=2 seed=10 stitchTiles=stitch result=turbulence></svg>", false, true, false), _tmpl$5 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><feGaussianBlur in=turbulence result=blur></svg>", false, true, false), _tmpl$6 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<svg><feBlend in=SourceGraphic in2=blur result=blend></svg>", false, true, false), _tmpl$7 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<div class="absolute inset-0 z-5">');
8918
+ function hexToHsl(hex) {
8919
+ hex = hex.replace('#', '');
8920
+ const r = parseInt(hex.substr(0, 2), 16) / 255;
8921
+ const g = parseInt(hex.substr(2, 2), 16) / 255;
8922
+ const b = parseInt(hex.substr(4, 2), 16) / 255;
8923
+ const max = Math.max(r, g, b);
8924
+ const min = Math.min(r, g, b);
8925
+ let h = 0;
8926
+ let s = 0;
8927
+ const l = (max + min) / 2;
8928
+ if (max !== min) {
8929
+ const d = max - min;
8930
+ s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
8931
+ switch(max){
8932
+ case r:
8933
+ h = (g - b) / d + (g < b ? 6 : 0);
8934
+ break;
8935
+ case g:
8936
+ h = (b - r) / d + 2;
8937
+ break;
8938
+ case b:
8939
+ h = (r - g) / d + 4;
8940
+ break;
8941
+ }
8942
+ h /= 6;
8943
+ }
8944
+ return {
8945
+ h: Math.round(360 * h),
8946
+ s: Math.round(100 * s),
8947
+ l: Math.round(100 * l)
8948
+ };
8949
+ }
8950
+ function parseColor(colorString) {
8951
+ const hslMatch = colorString.match(/hsl\((\d+),\s*(\d+)%,\s*(\d+)%\)/);
8952
+ if (hslMatch) return {
8953
+ h: parseInt(hslMatch[1]),
8954
+ s: parseInt(hslMatch[2]),
8955
+ l: parseInt(hslMatch[3])
8956
+ };
8957
+ const hexMatch = colorString.match(/^#?([a-fA-F0-9]{6})$/);
8958
+ if (hexMatch) return hexToHsl(colorString);
8959
+ const rgbMatch = colorString.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);
8960
+ if (rgbMatch) {
8961
+ const r = parseInt(rgbMatch[1]) / 255;
8962
+ const g = parseInt(rgbMatch[2]) / 255;
8963
+ const b = parseInt(rgbMatch[3]) / 255;
8964
+ const max = Math.max(r, g, b);
8965
+ const min = Math.min(r, g, b);
8966
+ let h = 0;
8967
+ let s = 0;
8968
+ const l = (max + min) / 2;
8969
+ if (max !== min) {
8970
+ const d = max - min;
8971
+ s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
8972
+ switch(max){
8973
+ case r:
8974
+ h = (g - b) / d + (g < b ? 6 : 0);
8975
+ break;
8976
+ case g:
8977
+ h = (b - r) / d + 2;
8978
+ break;
8979
+ case b:
8980
+ h = (r - g) / d + 4;
8981
+ break;
8982
+ }
8983
+ h /= 6;
8984
+ }
8985
+ return {
8986
+ h: Math.round(360 * h),
8987
+ s: Math.round(100 * s),
8988
+ l: Math.round(100 * l)
8989
+ };
8990
+ }
8860
8991
  return {
8861
- h: parseInt(match[1]),
8862
- s: parseInt(match[2]),
8863
- l: parseInt(match[3])
8992
+ h: 0,
8993
+ s: 0,
8994
+ l: 0
8864
8995
  };
8865
8996
  }
8866
8997
  function interpolateHue(h1, h2, t) {
@@ -8874,7 +9005,7 @@ function generateStableId() {
8874
9005
  return `svg-bg-${++instanceCounter}-${Date.now()}`;
8875
9006
  }
8876
9007
  function SvgBackground(props) {
8877
- const { colorStart = 'hsl(129, 100%, 72%)', colorEnd = 'hsl(227, 100%, 50%)', opacity = 1, blurIntensity = 36, turbulenceFrequency = 0.007, animated = false, animationSpeed = 1, class: className = '', style = {}, children, darkness = 0 } = props;
9008
+ const { colorStart = '#000000', colorEnd = '#333333', opacity = 1, blurIntensity = 36, turbulenceFrequency = 0.007, animated = false, animationSpeed = 1, class: className = '', style = {}, children, darkness = 0 } = props;
8878
9009
  const [animationTime, setAnimationTime] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(0);
8879
9010
  let animationFrame = null;
8880
9011
  let gradientStop1Ref;
@@ -8882,6 +9013,12 @@ function SvgBackground(props) {
8882
9013
  let turbulenceRef;
8883
9014
  const gradientId = `gradient-${generateStableId()}`;
8884
9015
  const filterId = `filter-${generateStableId()}`;
9016
+ const shouldUseFilters = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>blurIntensity > 0 && turbulenceFrequency > 0.001);
9017
+ const isGrayscaleColors = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
9018
+ const startHSL = parseColor(colorStart);
9019
+ const endHSL = parseColor(colorEnd);
9020
+ return startHSL.s < 15 && endHSL.s < 15;
9021
+ });
8885
9022
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onMount)(()=>{
8886
9023
  if (animated) {
8887
9024
  const animate = ()=>{
@@ -8894,8 +9031,8 @@ function SvgBackground(props) {
8894
9031
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onCleanup)(()=>{
8895
9032
  if (animationFrame) cancelAnimationFrame(animationFrame);
8896
9033
  });
8897
- const startHSL = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>parseHSL(colorStart));
8898
- const endHSL = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>parseHSL(colorEnd));
9034
+ const startHSL = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>parseColor(colorStart));
9035
+ const endHSL = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>parseColor(colorEnd));
8899
9036
  const animatedColors = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
8900
9037
  if (!animated) return {
8901
9038
  color1: colorStart,
@@ -8930,16 +9067,14 @@ function SvgBackground(props) {
8930
9067
  let color2 = colorEnd;
8931
9068
  const start = startHSL();
8932
9069
  const end = endHSL();
8933
- if (start && end) {
8934
- const h1 = interpolateHue(start.h, end.h, colorMix);
8935
- const s1 = start.s + (end.s - start.s) * colorMix;
8936
- const l1 = start.l + (end.l - start.l) * colorMix;
8937
- const h2 = interpolateHue(start.h, end.h, colorMix2);
8938
- const s2 = start.s + (end.s - start.s) * colorMix2;
8939
- const l2 = start.l + (end.l - start.l) * colorMix2;
8940
- color1 = `hsl(${Math.round(h1)}, ${Math.round(s1)}%, ${Math.round(l1)}%)`;
8941
- color2 = `hsl(${Math.round(h2)}, ${Math.round(s2)}%, ${Math.round(l2)}%)`;
8942
- }
9070
+ const h1 = interpolateHue(start.h, end.h, colorMix);
9071
+ const s1 = start.s + (end.s - start.s) * colorMix;
9072
+ const l1 = start.l + (end.l - start.l) * colorMix;
9073
+ const h2 = interpolateHue(start.h, end.h, colorMix2);
9074
+ const s2 = start.s + (end.s - start.s) * colorMix2;
9075
+ const l2 = start.l + (end.l - start.l) * colorMix2;
9076
+ color1 = `hsl(${Math.round(h1)}, ${Math.round(s1)}%, ${Math.round(l1)}%)`;
9077
+ color2 = `hsl(${Math.round(h2)}, ${Math.round(s2)}%, ${Math.round(l2)}%)`;
8943
9078
  const turbFreq1 = turbulenceFrequency + 0.01 * turbulenceFrequency * turbMix1;
8944
9079
  const turbFreq2 = 0.4 * turbulenceFrequency + 0.01 * turbulenceFrequency * turbMix2;
8945
9080
  return {
@@ -8960,34 +9095,62 @@ function SvgBackground(props) {
8960
9095
  ...style
8961
9096
  }));
8962
9097
  return (()=>{
8963
- var _el$ = SvgBackground_tmpl$(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$6 = _el$5.nextSibling, _el$7 = _el$4.nextSibling, _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling, _el$0 = _el$9.nextSibling, _el$1 = _el$3.nextSibling, _el$10 = _el$2.nextSibling;
9098
+ var _el$ = SvgBackground_tmpl$(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$6 = _el$5.nextSibling, _el$7 = _el$3.nextSibling, _el$8 = _el$2.nextSibling;
8964
9099
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, `relative ${className}`);
8965
9100
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$4, "id", gradientId);
8966
9101
  var _ref$ = gradientStop1Ref;
8967
9102
  "function" == typeof _ref$ ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$, _el$5) : gradientStop1Ref = _el$5;
8968
9103
  var _ref$2 = gradientStop2Ref;
8969
9104
  "function" == typeof _ref$2 ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$2, _el$6) : gradientStop2Ref = _el$6;
8970
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$7, "id", filterId);
8971
- var _ref$3 = turbulenceRef;
8972
- "function" == typeof _ref$3 ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$3, _el$8) : turbulenceRef = _el$8;
8973
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$9, "stdDeviation", `${blurIntensity} ${blurIntensity}`);
8974
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$0, "mode", "color-dodge");
8975
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$1, "fill", `url(#${gradientId})`);
8976
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$1, "filter", `url(#${filterId})`);
9105
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$3, (()=>{
9106
+ var _c$ = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!shouldUseFilters());
9107
+ return ()=>_c$() && (()=>{
9108
+ var _el$9 = SvgBackground_tmpl$2();
9109
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$9, "id", filterId);
9110
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$9, (()=>{
9111
+ var _c$2 = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!isGrayscaleColors());
9112
+ return ()=>_c$2() ? (()=>{
9113
+ var _el$0 = SvgBackground_tmpl$3();
9114
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$0, "stdDeviation", `${0.3 * blurIntensity} ${0.3 * blurIntensity}`);
9115
+ return _el$0;
9116
+ })() : [
9117
+ (()=>{
9118
+ var _el$1 = SvgBackground_tmpl$4();
9119
+ var _ref$3 = turbulenceRef;
9120
+ "function" == typeof _ref$3 ? (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)(_ref$3, _el$1) : turbulenceRef = _el$1;
9121
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$1, "baseFrequency", `${animatedColors().turbFreq1} ${animatedColors().turbFreq2}`));
9122
+ return _el$1;
9123
+ })(),
9124
+ (()=>{
9125
+ var _el$10 = _tmpl$5();
9126
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$10, "stdDeviation", `${blurIntensity} ${blurIntensity}`);
9127
+ return _el$10;
9128
+ })(),
9129
+ (()=>{
9130
+ var _el$11 = _tmpl$6();
9131
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$11, "mode", "color-dodge");
9132
+ return _el$11;
9133
+ })()
9134
+ ];
9135
+ })());
9136
+ return _el$9;
9137
+ })();
9138
+ })(), null);
9139
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$7, "fill", `url(#${gradientId})`);
8977
9140
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, darkness > 0 && (()=>{
8978
- var _el$11 = SvgBackground_tmpl$2();
8979
- _el$11.style.setProperty("background-color", `rgba(0, 0, 0, ${darkness})`);
8980
- _el$11.style.setProperty("pointer-events", "none");
8981
- return _el$11;
8982
- })(), _el$10);
8983
- (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$10, children);
9141
+ var _el$12 = _tmpl$7();
9142
+ _el$12.style.setProperty("background-color", `rgba(0, 0, 0, ${darkness})`);
9143
+ _el$12.style.setProperty("pointer-events", "none");
9144
+ return _el$12;
9145
+ })(), _el$8);
9146
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$8, children);
8984
9147
  (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
8985
- var _v$ = backgroundStyle(), _v$2 = opacity.toString(), _v$3 = animatedColors().color1, _v$4 = animatedColors().color2, _v$5 = `${animatedColors().turbFreq1} ${animatedColors().turbFreq2}`;
9148
+ var _v$ = backgroundStyle(), _v$2 = opacity.toString(), _v$3 = animatedColors().color1, _v$4 = animatedColors().color2, _v$5 = shouldUseFilters() ? `url(#${filterId})` : 'none';
8986
9149
  _p$.e = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.style)(_el$, _v$, _p$.e);
8987
9150
  _v$2 !== _p$.t && (null != (_p$.t = _v$2) ? _el$2.style.setProperty("opacity", _v$2) : _el$2.style.removeProperty("opacity"));
8988
9151
  _v$3 !== _p$.a && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$5, "stop-color", _p$.a = _v$3);
8989
9152
  _v$4 !== _p$.o && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$6, "stop-color", _p$.o = _v$4);
8990
- _v$5 !== _p$.i && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$8, "baseFrequency", _p$.i = _v$5);
9153
+ _v$5 !== _p$.i && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$7, "filter", _p$.i = _v$5);
8991
9154
  return _p$;
8992
9155
  }, {
8993
9156
  e: void 0,
@@ -9187,6 +9350,147 @@ const TableFooter = (props)=>{
9187
9350
  })();
9188
9351
  };
9189
9352
  const table_TableFooter = TableFooter;
9353
+ var EnhancedTable_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<th><div class="flex items-center gap-2">'), EnhancedTable_tmpl$2 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)(`<span>\u{2191}`), EnhancedTable_tmpl$3 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)(`<span>\u{2193}`), EnhancedTable_tmpl$4 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)('<tr><td class="text-center py-4">'), EnhancedTable_tmpl$5 = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<td>");
9354
+ function EnhancedTable_EnhancedTable(props) {
9355
+ const [local, tableProps] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
9356
+ "data",
9357
+ "columns",
9358
+ "sorting",
9359
+ "setSorting",
9360
+ "columnFilters",
9361
+ "setColumnFilters",
9362
+ "pagination",
9363
+ "setPagination",
9364
+ "enableSorting",
9365
+ "enableFilters",
9366
+ "enablePagination",
9367
+ "renderRowSubComponent",
9368
+ "renderEmpty"
9369
+ ]);
9370
+ const table = (0, __WEBPACK_EXTERNAL_MODULE__tanstack_solid_table_1239d047__.createSolidTable)({
9371
+ get data () {
9372
+ return local.data;
9373
+ },
9374
+ get columns () {
9375
+ return local.columns;
9376
+ },
9377
+ state: {
9378
+ get sorting () {
9379
+ return local.sorting?.() || [];
9380
+ },
9381
+ get columnFilters () {
9382
+ return local.columnFilters?.() || [];
9383
+ },
9384
+ get pagination () {
9385
+ return local.pagination?.() || {
9386
+ pageIndex: 0,
9387
+ pageSize: 10
9388
+ };
9389
+ }
9390
+ },
9391
+ onSortingChange: local.setSorting,
9392
+ onColumnFiltersChange: local.setColumnFilters,
9393
+ onPaginationChange: local.setPagination,
9394
+ getCoreRowModel: (0, __WEBPACK_EXTERNAL_MODULE__tanstack_solid_table_1239d047__.getCoreRowModel)(),
9395
+ getSortedRowModel: (0, __WEBPACK_EXTERNAL_MODULE__tanstack_solid_table_1239d047__.getSortedRowModel)(),
9396
+ getFilteredRowModel: (0, __WEBPACK_EXTERNAL_MODULE__tanstack_solid_table_1239d047__.getFilteredRowModel)(),
9397
+ getPaginationRowModel: (0, __WEBPACK_EXTERNAL_MODULE__tanstack_solid_table_1239d047__.getPaginationRowModel)(),
9398
+ enableSorting: false !== local.enableSorting,
9399
+ enableFilters: !!local.enableFilters,
9400
+ manualPagination: !local.enablePagination
9401
+ });
9402
+ const tableRows = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>{
9403
+ const rows = table.getRowModel().rows;
9404
+ if (0 === rows.length && local.renderEmpty) return [];
9405
+ return rows;
9406
+ });
9407
+ return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(tableProps, {
9408
+ get children () {
9409
+ return [
9410
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Head, {
9411
+ get children () {
9412
+ return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
9413
+ get each () {
9414
+ return table.getHeaderGroups();
9415
+ },
9416
+ children: (headerGroup)=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Row, {
9417
+ get children () {
9418
+ return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
9419
+ get each () {
9420
+ return headerGroup.headers;
9421
+ },
9422
+ children: (header)=>(()=>{
9423
+ var _el$ = EnhancedTable_tmpl$(), _el$2 = _el$.firstChild;
9424
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.addEventListener)(_el$, "click", header.column.getCanSort() ? header.column.getToggleSortingHandler() : void 0, true);
9425
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, ()=>(0, __WEBPACK_EXTERNAL_MODULE__tanstack_solid_table_1239d047__.flexRender)(header.column.columnDef.header, header.getContext()), null);
9426
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, (()=>{
9427
+ var _c$ = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>"asc" === header.column.getIsSorted());
9428
+ return ()=>_c$() && EnhancedTable_tmpl$2();
9429
+ })(), null);
9430
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, (()=>{
9431
+ var _c$2 = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>"desc" === header.column.getIsSorted());
9432
+ return ()=>_c$2() && EnhancedTable_tmpl$3();
9433
+ })(), null);
9434
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.className)(_el$, header.column.getCanSort() ? "cursor-pointer select-none" : ""));
9435
+ return _el$;
9436
+ })()
9437
+ });
9438
+ }
9439
+ })
9440
+ });
9441
+ }
9442
+ }),
9443
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Body, {
9444
+ get children () {
9445
+ return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!(0 === tableRows().length && local.renderEmpty))() ? (()=>{
9446
+ var _el$5 = EnhancedTable_tmpl$4(), _el$6 = _el$5.firstChild;
9447
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$6, ()=>local.renderEmpty());
9448
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$6, "colspan", table.getAllColumns().length));
9449
+ return _el$5;
9450
+ })() : (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
9451
+ get each () {
9452
+ return tableRows();
9453
+ },
9454
+ children: (row)=>[
9455
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Row, {
9456
+ get ["class"] () {
9457
+ return row.getIsExpanded() ? "bg-base-200" : "";
9458
+ },
9459
+ get children () {
9460
+ return (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.For, {
9461
+ get each () {
9462
+ return row.getVisibleCells();
9463
+ },
9464
+ children: (cell)=>(()=>{
9465
+ var _el$7 = EnhancedTable_tmpl$5();
9466
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$7, ()=>(0, __WEBPACK_EXTERNAL_MODULE__tanstack_solid_table_1239d047__.flexRender)(cell.column.columnDef.cell, cell.getContext()));
9467
+ return _el$7;
9468
+ })()
9469
+ });
9470
+ }
9471
+ }),
9472
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!(row.getIsExpanded() && local.renderRowSubComponent))() && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(table_Table.Row, {
9473
+ get children () {
9474
+ var _el$8 = EnhancedTable_tmpl$5();
9475
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$8, ()=>local.renderRowSubComponent({
9476
+ row
9477
+ }));
9478
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$8, "colspan", row.getVisibleCells().length));
9479
+ return _el$8;
9480
+ }
9481
+ }))
9482
+ ]
9483
+ });
9484
+ }
9485
+ })
9486
+ ];
9487
+ }
9488
+ }));
9489
+ }
9490
+ const EnhancedTable = EnhancedTable_EnhancedTable;
9491
+ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.delegateEvents)([
9492
+ "click"
9493
+ ]);
9190
9494
  var Table_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<table>");
9191
9495
  const Table = (props)=>{
9192
9496
  const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
@@ -9226,7 +9530,8 @@ const table_Table = Object.assign(Table, {
9226
9530
  Head: TableHead,
9227
9531
  Body: table_TableBody,
9228
9532
  Row: table_TableRow,
9229
- Footer: table_TableFooter
9533
+ Footer: table_TableFooter,
9534
+ Enhanced: EnhancedTable
9230
9535
  });
9231
9536
  var Tab_tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<a role=tab>");
9232
9537
  const Tab = (props)=>{
@@ -9775,4 +10080,4 @@ const WindowMockup = (props)=>{
9775
10080
  })();
9776
10081
  };
9777
10082
  const windowmockup_WindowMockup = WindowMockup;
9778
- export { accordion_Accordion as Accordion, alert_Alert as Alert, artboard_Artboard as Artboard, avatar as Avatar, background_Background as Background, Badge, Breadcrumbs, breadcrumbs_BreadcrumbsItem as BreadcrumbsItem, browsermockup_BrowserMockup as BrowserMockup, button_Button as Button, Calendar, card_Card as Card, carousel_Carousel as Carousel, chatbubble_ChatBubble as ChatBubble, checkbox_Checkbox as Checkbox, codemockup_CodeMockup as CodeMockup, CodeMockupLine, collapse_Collapse as Collapse, CollapseContent, CollapseDetails, CollapseTitle, copy_button_CopyButton as CopyButton, countdown_Countdown as Countdown, diff_Diff as Diff, divider as Divider, dock as Dock, Drawer, dropdown as Dropdown, FileInput, flex_Flex as Flex, footer_Footer as Footer, form_Form as Form, grid_Grid as Grid, hero_Hero as Hero, icon_Icon as Icon, indicator_Indicator as Indicator, input_Input as Input, join_Join as Join, kbd_Kbd as Kbd, link_Link as Link, loading_Loading as Loading, mask as Mask, menu_Menu as Menu, modal_Modal as Modal, navbar_Navbar as Navbar, pagination_Pagination as Pagination, phonemockup_PhoneMockup as PhoneMockup, Progress, props_table_PropsTable as PropsTable, radialprogress_RadialProgress as RadialProgress, radio_Radio as Radio, range_Range as Range, Rating, select_Select as Select, showcase_ShowcaseBlock as ShowcaseBlock, ShowcaseSection, Sidenav, skeleton_Skeleton as Skeleton, Stack, stats_Stats as Stats, status_Status as Status, steps as Steps, Summary, SvgBackground, Swap, table_Table as Table, tabs_Tabs as Tabs, textarea_Textarea as Textarea, Timeline, timeline_TimelineEnd as TimelineEnd, timeline_TimelineItem as TimelineItem, timeline_TimelineMiddle as TimelineMiddle, timeline_TimelineStart as TimelineStart, toast_Toast as Toast, toggle_Toggle as Toggle, tooltip_Tooltip as Tooltip, windowmockup_WindowMockup as WindowMockup, useFormValidation };
10083
+ export { accordion_Accordion as Accordion, alert_Alert as Alert, artboard_Artboard as Artboard, avatar as Avatar, background_Background as Background, Badge, Breadcrumbs, breadcrumbs_BreadcrumbsItem as BreadcrumbsItem, browsermockup_BrowserMockup as BrowserMockup, button_Button as Button, Calendar, card_Card as Card, carousel_Carousel as Carousel, chatbubble_ChatBubble as ChatBubble, checkbox_Checkbox as Checkbox, codemockup_CodeMockup as CodeMockup, CodeMockupLine, collapse_Collapse as Collapse, CollapseContent, CollapseDetails, CollapseTitle, copy_button_CopyButton as CopyButton, countdown_Countdown as Countdown, diff_Diff as Diff, divider as Divider, dock as Dock, Drawer, dropdown as Dropdown, FileInput, flex_Flex as Flex, footer_Footer as Footer, form_Form as Form, grid_Grid as Grid, hero_Hero as Hero, icon_Icon as Icon, indicator_Indicator as Indicator, input_Input as Input, join_Join as Join, kbd_Kbd as Kbd, link_Link as Link, loading_Loading as Loading, mask as Mask, menu_Menu as Menu, modal_Modal as Modal, navbar_Navbar as Navbar, pagination_Pagination as Pagination, phonemockup_PhoneMockup as PhoneMockup, Progress, props_table_PropsTable as PropsTable, radialprogress_RadialProgress as RadialProgress, radio_Radio as Radio, range_Range as Range, Rating, select_Select as Select, showcase_ShowcaseBlock as ShowcaseBlock, ShowcaseSection, sidenav_Sidenav as Sidenav, sidenav_SidenavButton as SidenavButton, sidenav_SidenavGroup as SidenavGroup, sidenav_SidenavItem as SidenavItem, sidenav_SidenavLink as SidenavLink, sidenav_SidenavMenu as SidenavMenu, skeleton_Skeleton as Skeleton, Stack, stats_Stats as Stats, status_Status as Status, steps as Steps, Summary, SvgBackground, Swap, table_Table as Table, tabs_Tabs as Tabs, textarea_Textarea as Textarea, Timeline, timeline_TimelineEnd as TimelineEnd, timeline_TimelineItem as TimelineItem, timeline_TimelineMiddle as TimelineMiddle, timeline_TimelineStart as TimelineStart, toast_Toast as Toast, toggle_Toggle as Toggle, tooltip_Tooltip as Tooltip, windowmockup_WindowMockup as WindowMockup, useFormValidation };
@@ -147,4 +147,4 @@
147
147
  .sidenav-overlay {
148
148
  @apply hidden;
149
149
  }
150
- }
150
+ }
package/package.json CHANGED
@@ -1,78 +1,80 @@
1
1
  {
2
- "name": "@pathscale/ui",
3
- "version": "0.0.44",
4
- "author": "pathscale",
5
- "repository": {
6
- "type": "git",
7
- "url": "https://github.com/pathscale/ui"
8
- },
9
- "license": "MIT",
10
- "description": "Highly opinionated SolidJS component library — batteries and kitchen sink included, but optimized and shiny.",
11
- "files": [
12
- "dist"
13
- ],
14
- "homepage": "https://github.com/pathscale/ui",
15
- "keywords": [
16
- "solid",
17
- "solidjs"
18
- ],
19
- "bugs": {
20
- "url": "https://github.com/pathscale/ui/issues"
21
- },
22
- "main": "./dist/index.js",
23
- "module": "./dist/index.js",
24
- "types": "./dist/index.d.ts",
25
- "devDependencies": {
26
- "@biomejs/biome": "1.9.4",
27
- "@felte/solid": "^1.2.11",
28
- "@felte/validator-zod": "^1.0.15",
29
- "@iconify/json": "^2.2.342",
30
- "@iconify/utils": "^2.3.0",
31
- "@rsbuild/core": "^1.3.20",
32
- "@rsbuild/plugin-solid": "^1.0.5",
33
- "@rslib/core": "^0.9.0",
34
- "@types/bun": "^1.2.12",
35
- "babel-preset-solid": "^1.9.6",
36
- "clsx": "^2.1.1",
37
- "cssnano": "^7.0.7",
38
- "postcss": "^8.5.4",
39
- "postcss-cli": "^11.0.1",
40
- "svgo": "^3.3.2",
41
- "tailwind-merge": "^3.3.0",
42
- "typescript": "^5.8.3",
43
- "zod": "^3.22.4",
44
- "cally": "^0.8.0"
45
- },
46
- "dependencies": {
47
- "@iconify/tailwind4": "^1.0.6",
48
- "@solid-primitives/event-listener": "^2.3.0",
49
- "@solid-primitives/intersection-observer": "^2.1.3",
50
- "@solid-primitives/keyboard": "^1.2.5",
51
- "@solid-primitives/media": "^2.2.5",
52
- "@solid-primitives/props": "^3.1.8",
53
- "@solid-primitives/resize-observer": "^2.0.22",
54
- "@solid-primitives/scheduled": "^1.4.1",
55
- "@solid-primitives/scroll": "^2.0.20",
56
- "@solid-primitives/storage": "^2.1.1",
57
- "@solid-primitives/utils": "^6.2.1",
58
- "rsbuild-plugin-iconify": "^1.0.3",
59
- "solid-js": "^1.9.7"
60
- },
61
- "peerDependencies": {
62
- "@felte/solid": "^1.2.0",
63
- "@felte/validator-zod": "^1.0.0",
64
- "solid-js": "^1.9",
65
- "zod": "^3.22.0"
66
- },
67
- "scripts": {
68
- "build": "rslib build && bun scripts/copy-css.js",
69
- "build:watch": "rslib build --watch",
70
- "dev": "rslib dev",
71
- "preview": "rslib preview",
72
- "clean": "rm -rf dist node_modules",
73
- "format": "bun biome format --write",
74
- "lint": "bun biome lint --write"
75
- },
76
- "sideEffects": false,
77
- "type": "module"
2
+ "name": "@pathscale/ui",
3
+ "version": "0.0.46",
4
+ "author": "pathscale",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/pathscale/ui"
8
+ },
9
+ "license": "MIT",
10
+ "description": "Highly opinionated SolidJS component library — batteries and kitchen sink included, but optimized and shiny.",
11
+ "files": [
12
+ "dist"
13
+ ],
14
+ "homepage": "https://github.com/pathscale/ui",
15
+ "keywords": [
16
+ "solid",
17
+ "solidjs"
18
+ ],
19
+ "bugs": {
20
+ "url": "https://github.com/pathscale/ui/issues"
21
+ },
22
+ "main": "./dist/index.js",
23
+ "module": "./dist/index.js",
24
+ "types": "./dist/index.d.ts",
25
+ "devDependencies": {
26
+ "@biomejs/biome": "1.9.4",
27
+ "@felte/solid": "^1.2.11",
28
+ "@felte/validator-zod": "^1.0.15",
29
+ "@iconify/json": "^2.2.342",
30
+ "@iconify/utils": "^2.3.0",
31
+ "@rsbuild/core": "^1.3.20",
32
+ "@rsbuild/plugin-solid": "^1.0.5",
33
+ "@rslib/core": "^0.9.0",
34
+ "@tanstack/solid-table": "^8.21.3",
35
+ "@types/bun": "^1.2.12",
36
+ "babel-preset-solid": "^1.9.6",
37
+ "clsx": "^2.1.1",
38
+ "cssnano": "^7.0.7",
39
+ "postcss": "^8.5.4",
40
+ "postcss-cli": "^11.0.1",
41
+ "svgo": "^3.3.2",
42
+ "tailwind-merge": "^3.3.0",
43
+ "typescript": "^5.8.3",
44
+ "zod": "^3.22.4",
45
+ "cally": "^0.8.0"
46
+ },
47
+ "dependencies": {
48
+ "@iconify/tailwind4": "^1.0.6",
49
+ "@solid-primitives/event-listener": "^2.3.0",
50
+ "@solid-primitives/intersection-observer": "^2.1.3",
51
+ "@solid-primitives/keyboard": "^1.2.5",
52
+ "@solid-primitives/media": "^2.2.5",
53
+ "@solid-primitives/props": "^3.1.8",
54
+ "@solid-primitives/resize-observer": "^2.0.22",
55
+ "@solid-primitives/scheduled": "^1.4.1",
56
+ "@solid-primitives/scroll": "^2.0.20",
57
+ "@solid-primitives/storage": "^2.1.1",
58
+ "@solid-primitives/utils": "^6.2.1",
59
+ "rsbuild-plugin-iconify": "^1.0.3",
60
+ "solid-js": "^1.9.7"
61
+ },
62
+ "peerDependencies": {
63
+ "@felte/solid": "^1.2.0",
64
+ "@felte/validator-zod": "^1.0.0",
65
+ "@tanstack/solid-table": "^8.0.0",
66
+ "solid-js": "^1.9",
67
+ "zod": "^3.22.0"
68
+ },
69
+ "scripts": {
70
+ "build": "rslib build && bun scripts/copy-css.js",
71
+ "build:watch": "rslib build --watch",
72
+ "dev": "rslib dev",
73
+ "preview": "rslib preview",
74
+ "clean": "rm -rf dist node_modules",
75
+ "format": "bun biome format --write",
76
+ "lint": "bun biome lint --write"
77
+ },
78
+ "sideEffects": false,
79
+ "type": "module"
78
80
  }