@k3-tech/react-kit 0.0.68 → 0.0.70

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.
Files changed (27) hide show
  1. package/dist/index.js +785 -336
  2. package/dist/kit/builder/data-table/components/DataTable.d.ts +15 -1
  3. package/dist/kit/builder/data-table/components/DataTable.d.ts.map +1 -1
  4. package/dist/kit/builder/data-table/components/DataTableFilterPanel.d.ts +15 -0
  5. package/dist/kit/builder/data-table/components/DataTableFilterPanel.d.ts.map +1 -0
  6. package/dist/kit/builder/form/components/FormBuilder.d.ts +1 -1
  7. package/dist/kit/builder/form/components/FormBuilder.d.ts.map +1 -1
  8. package/dist/kit/builder/form/types.d.ts +3 -0
  9. package/dist/kit/builder/form/types.d.ts.map +1 -1
  10. package/dist/kit/layouts/admin/components/AdminLayout.d.ts.map +1 -1
  11. package/dist/kit/themes/clean-slate.css +318 -108
  12. package/dist/kit/themes/default.css +318 -108
  13. package/dist/kit/themes/minimal-modern.css +318 -108
  14. package/dist/kit/themes/spotify.css +318 -108
  15. package/package.json +2 -2
  16. package/src/kit/builder/data-table/components/DataTable.tsx +147 -62
  17. package/src/kit/builder/data-table/components/DataTableFilterPanel.tsx +160 -0
  18. package/src/kit/builder/form/components/FormBuilder.tsx +8 -0
  19. package/src/kit/builder/form/types.ts +3 -0
  20. package/src/kit/components/datepicker/DatePicker.tsx +1 -1
  21. package/src/kit/components/datepicker/DateRangePicker.tsx +1 -1
  22. package/src/kit/components/datetimepicker/DateTimePicker.tsx +1 -1
  23. package/src/kit/components/datetimepicker/DateTimeRangePicker.tsx +1 -1
  24. package/src/kit/components/timepicker/TimePicker.tsx +1 -1
  25. package/src/kit/components/timepicker/TimeRangePicker.tsx +1 -1
  26. package/src/kit/layouts/admin/components/AdminLayout.tsx +261 -149
  27. package/src/shadcn/ui/calendar.tsx +1 -1
package/dist/index.js CHANGED
@@ -4040,215 +4040,215 @@ const createLucideIcon = (iconName, iconNode) => {
4040
4040
  * This source code is licensed under the ISC license.
4041
4041
  * See the LICENSE file in the root directory of this source tree.
4042
4042
  */
4043
- const __iconNode$K = [
4043
+ const __iconNode$L = [
4044
4044
  ["rect", { width: "20", height: "5", x: "2", y: "3", rx: "1", key: "1wp1u1" }],
4045
4045
  ["path", { d: "M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8", key: "1s80jp" }],
4046
4046
  ["path", { d: "M10 12h4", key: "a56b0p" }]
4047
4047
  ];
4048
- const Archive = createLucideIcon("archive", __iconNode$K);
4048
+ const Archive = createLucideIcon("archive", __iconNode$L);
4049
4049
  /**
4050
4050
  * @license lucide-react v0.540.0 - ISC
4051
4051
  *
4052
4052
  * This source code is licensed under the ISC license.
4053
4053
  * See the LICENSE file in the root directory of this source tree.
4054
4054
  */
4055
- const __iconNode$J = [
4055
+ const __iconNode$K = [
4056
4056
  ["path", { d: "M12 5v14", key: "s699le" }],
4057
4057
  ["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
4058
4058
  ];
4059
- const ArrowDown = createLucideIcon("arrow-down", __iconNode$J);
4059
+ const ArrowDown = createLucideIcon("arrow-down", __iconNode$K);
4060
4060
  /**
4061
4061
  * @license lucide-react v0.540.0 - ISC
4062
4062
  *
4063
4063
  * This source code is licensed under the ISC license.
4064
4064
  * See the LICENSE file in the root directory of this source tree.
4065
4065
  */
4066
- const __iconNode$I = [
4066
+ const __iconNode$J = [
4067
4067
  ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
4068
4068
  ["path", { d: "M19 12H5", key: "x3x0zl" }]
4069
4069
  ];
4070
- const ArrowLeft = createLucideIcon("arrow-left", __iconNode$I);
4070
+ const ArrowLeft = createLucideIcon("arrow-left", __iconNode$J);
4071
4071
  /**
4072
4072
  * @license lucide-react v0.540.0 - ISC
4073
4073
  *
4074
4074
  * This source code is licensed under the ISC license.
4075
4075
  * See the LICENSE file in the root directory of this source tree.
4076
4076
  */
4077
- const __iconNode$H = [
4077
+ const __iconNode$I = [
4078
4078
  ["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
4079
4079
  ["path", { d: "M12 19V5", key: "x0mq9r" }]
4080
4080
  ];
4081
- const ArrowUp = createLucideIcon("arrow-up", __iconNode$H);
4081
+ const ArrowUp = createLucideIcon("arrow-up", __iconNode$I);
4082
4082
  /**
4083
4083
  * @license lucide-react v0.540.0 - ISC
4084
4084
  *
4085
4085
  * This source code is licensed under the ISC license.
4086
4086
  * See the LICENSE file in the root directory of this source tree.
4087
4087
  */
4088
- const __iconNode$G = [
4088
+ const __iconNode$H = [
4089
4089
  ["path", { d: "M8 2v4", key: "1cmpym" }],
4090
4090
  ["path", { d: "M16 2v4", key: "4m81vk" }],
4091
4091
  ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
4092
4092
  ["path", { d: "M3 10h18", key: "8toen8" }]
4093
4093
  ];
4094
- const Calendar$1 = createLucideIcon("calendar", __iconNode$G);
4094
+ const Calendar$1 = createLucideIcon("calendar", __iconNode$H);
4095
4095
  /**
4096
4096
  * @license lucide-react v0.540.0 - ISC
4097
4097
  *
4098
4098
  * This source code is licensed under the ISC license.
4099
4099
  * See the LICENSE file in the root directory of this source tree.
4100
4100
  */
4101
- const __iconNode$F = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
4102
- const Check = createLucideIcon("check", __iconNode$F);
4101
+ const __iconNode$G = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
4102
+ const Check = createLucideIcon("check", __iconNode$G);
4103
4103
  /**
4104
4104
  * @license lucide-react v0.540.0 - ISC
4105
4105
  *
4106
4106
  * This source code is licensed under the ISC license.
4107
4107
  * See the LICENSE file in the root directory of this source tree.
4108
4108
  */
4109
- const __iconNode$E = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
4110
- const ChevronDown = createLucideIcon("chevron-down", __iconNode$E);
4109
+ const __iconNode$F = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
4110
+ const ChevronDown = createLucideIcon("chevron-down", __iconNode$F);
4111
4111
  /**
4112
4112
  * @license lucide-react v0.540.0 - ISC
4113
4113
  *
4114
4114
  * This source code is licensed under the ISC license.
4115
4115
  * See the LICENSE file in the root directory of this source tree.
4116
4116
  */
4117
- const __iconNode$D = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
4118
- const ChevronLeft = createLucideIcon("chevron-left", __iconNode$D);
4117
+ const __iconNode$E = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
4118
+ const ChevronLeft = createLucideIcon("chevron-left", __iconNode$E);
4119
4119
  /**
4120
4120
  * @license lucide-react v0.540.0 - ISC
4121
4121
  *
4122
4122
  * This source code is licensed under the ISC license.
4123
4123
  * See the LICENSE file in the root directory of this source tree.
4124
4124
  */
4125
- const __iconNode$C = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
4126
- const ChevronRight = createLucideIcon("chevron-right", __iconNode$C);
4125
+ const __iconNode$D = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
4126
+ const ChevronRight = createLucideIcon("chevron-right", __iconNode$D);
4127
4127
  /**
4128
4128
  * @license lucide-react v0.540.0 - ISC
4129
4129
  *
4130
4130
  * This source code is licensed under the ISC license.
4131
4131
  * See the LICENSE file in the root directory of this source tree.
4132
4132
  */
4133
- const __iconNode$B = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]];
4134
- const ChevronUp = createLucideIcon("chevron-up", __iconNode$B);
4133
+ const __iconNode$C = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]];
4134
+ const ChevronUp = createLucideIcon("chevron-up", __iconNode$C);
4135
4135
  /**
4136
4136
  * @license lucide-react v0.540.0 - ISC
4137
4137
  *
4138
4138
  * This source code is licensed under the ISC license.
4139
4139
  * See the LICENSE file in the root directory of this source tree.
4140
4140
  */
4141
- const __iconNode$A = [
4141
+ const __iconNode$B = [
4142
4142
  ["path", { d: "m11 17-5-5 5-5", key: "13zhaf" }],
4143
4143
  ["path", { d: "m18 17-5-5 5-5", key: "h8a8et" }]
4144
4144
  ];
4145
- const ChevronsLeft = createLucideIcon("chevrons-left", __iconNode$A);
4145
+ const ChevronsLeft = createLucideIcon("chevrons-left", __iconNode$B);
4146
4146
  /**
4147
4147
  * @license lucide-react v0.540.0 - ISC
4148
4148
  *
4149
4149
  * This source code is licensed under the ISC license.
4150
4150
  * See the LICENSE file in the root directory of this source tree.
4151
4151
  */
4152
- const __iconNode$z = [
4152
+ const __iconNode$A = [
4153
4153
  ["path", { d: "m6 17 5-5-5-5", key: "xnjwq" }],
4154
4154
  ["path", { d: "m13 17 5-5-5-5", key: "17xmmf" }]
4155
4155
  ];
4156
- const ChevronsRight = createLucideIcon("chevrons-right", __iconNode$z);
4156
+ const ChevronsRight = createLucideIcon("chevrons-right", __iconNode$A);
4157
4157
  /**
4158
4158
  * @license lucide-react v0.540.0 - ISC
4159
4159
  *
4160
4160
  * This source code is licensed under the ISC license.
4161
4161
  * See the LICENSE file in the root directory of this source tree.
4162
4162
  */
4163
- const __iconNode$y = [
4163
+ const __iconNode$z = [
4164
4164
  ["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
4165
4165
  ["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
4166
4166
  ];
4167
- const ChevronsUpDown = createLucideIcon("chevrons-up-down", __iconNode$y);
4167
+ const ChevronsUpDown = createLucideIcon("chevrons-up-down", __iconNode$z);
4168
4168
  /**
4169
4169
  * @license lucide-react v0.540.0 - ISC
4170
4170
  *
4171
4171
  * This source code is licensed under the ISC license.
4172
4172
  * See the LICENSE file in the root directory of this source tree.
4173
4173
  */
4174
- const __iconNode$x = [
4174
+ const __iconNode$y = [
4175
4175
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
4176
4176
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
4177
4177
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
4178
4178
  ];
4179
- const CircleAlert = createLucideIcon("circle-alert", __iconNode$x);
4179
+ const CircleAlert = createLucideIcon("circle-alert", __iconNode$y);
4180
4180
  /**
4181
4181
  * @license lucide-react v0.540.0 - ISC
4182
4182
  *
4183
4183
  * This source code is licensed under the ISC license.
4184
4184
  * See the LICENSE file in the root directory of this source tree.
4185
4185
  */
4186
- const __iconNode$w = [
4186
+ const __iconNode$x = [
4187
4187
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
4188
4188
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
4189
4189
  ];
4190
- const CircleCheck = createLucideIcon("circle-check", __iconNode$w);
4190
+ const CircleCheck = createLucideIcon("circle-check", __iconNode$x);
4191
4191
  /**
4192
4192
  * @license lucide-react v0.540.0 - ISC
4193
4193
  *
4194
4194
  * This source code is licensed under the ISC license.
4195
4195
  * See the LICENSE file in the root directory of this source tree.
4196
4196
  */
4197
- const __iconNode$v = [
4197
+ const __iconNode$w = [
4198
4198
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
4199
4199
  ["path", { d: "m15 9-6 6", key: "1uzhvr" }],
4200
4200
  ["path", { d: "m9 9 6 6", key: "z0biqf" }]
4201
4201
  ];
4202
- const CircleX = createLucideIcon("circle-x", __iconNode$v);
4202
+ const CircleX = createLucideIcon("circle-x", __iconNode$w);
4203
4203
  /**
4204
4204
  * @license lucide-react v0.540.0 - ISC
4205
4205
  *
4206
4206
  * This source code is licensed under the ISC license.
4207
4207
  * See the LICENSE file in the root directory of this source tree.
4208
4208
  */
4209
- const __iconNode$u = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]];
4210
- const Circle = createLucideIcon("circle", __iconNode$u);
4209
+ const __iconNode$v = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]];
4210
+ const Circle = createLucideIcon("circle", __iconNode$v);
4211
4211
  /**
4212
4212
  * @license lucide-react v0.540.0 - ISC
4213
4213
  *
4214
4214
  * This source code is licensed under the ISC license.
4215
4215
  * See the LICENSE file in the root directory of this source tree.
4216
4216
  */
4217
- const __iconNode$t = [
4217
+ const __iconNode$u = [
4218
4218
  ["path", { d: "M12 6v6l4 2", key: "mmk7yg" }],
4219
4219
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]
4220
4220
  ];
4221
- const Clock = createLucideIcon("clock", __iconNode$t);
4221
+ const Clock = createLucideIcon("clock", __iconNode$u);
4222
4222
  /**
4223
4223
  * @license lucide-react v0.540.0 - ISC
4224
4224
  *
4225
4225
  * This source code is licensed under the ISC license.
4226
4226
  * See the LICENSE file in the root directory of this source tree.
4227
4227
  */
4228
- const __iconNode$s = [
4228
+ const __iconNode$t = [
4229
4229
  ["path", { d: "M12 13v8", key: "1l5pq0" }],
4230
4230
  ["path", { d: "M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242", key: "1pljnt" }],
4231
4231
  ["path", { d: "m8 17 4-4 4 4", key: "1quai1" }]
4232
4232
  ];
4233
- const CloudUpload = createLucideIcon("cloud-upload", __iconNode$s);
4233
+ const CloudUpload = createLucideIcon("cloud-upload", __iconNode$t);
4234
4234
  /**
4235
4235
  * @license lucide-react v0.540.0 - ISC
4236
4236
  *
4237
4237
  * This source code is licensed under the ISC license.
4238
4238
  * See the LICENSE file in the root directory of this source tree.
4239
4239
  */
4240
- const __iconNode$r = [
4240
+ const __iconNode$s = [
4241
4241
  ["path", { d: "M20 4v7a4 4 0 0 1-4 4H4", key: "6o5b7l" }],
4242
4242
  ["path", { d: "m9 10-5 5 5 5", key: "1kshq7" }]
4243
4243
  ];
4244
- const CornerDownLeft = createLucideIcon("corner-down-left", __iconNode$r);
4244
+ const CornerDownLeft = createLucideIcon("corner-down-left", __iconNode$s);
4245
4245
  /**
4246
4246
  * @license lucide-react v0.540.0 - ISC
4247
4247
  *
4248
4248
  * This source code is licensed under the ISC license.
4249
4249
  * See the LICENSE file in the root directory of this source tree.
4250
4250
  */
4251
- const __iconNode$q = [
4251
+ const __iconNode$r = [
4252
4252
  [
4253
4253
  "path",
4254
4254
  {
@@ -4259,38 +4259,38 @@ const __iconNode$q = [
4259
4259
  ["path", { d: "m12 9 6 6", key: "anjzzh" }],
4260
4260
  ["path", { d: "m18 9-6 6", key: "1fp51s" }]
4261
4261
  ];
4262
- const Delete = createLucideIcon("delete", __iconNode$q);
4262
+ const Delete = createLucideIcon("delete", __iconNode$r);
4263
4263
  /**
4264
4264
  * @license lucide-react v0.540.0 - ISC
4265
4265
  *
4266
4266
  * This source code is licensed under the ISC license.
4267
4267
  * See the LICENSE file in the root directory of this source tree.
4268
4268
  */
4269
- const __iconNode$p = [
4269
+ const __iconNode$q = [
4270
4270
  ["path", { d: "M12 15V3", key: "m9g1x1" }],
4271
4271
  ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
4272
4272
  ["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
4273
4273
  ];
4274
- const Download = createLucideIcon("download", __iconNode$p);
4274
+ const Download = createLucideIcon("download", __iconNode$q);
4275
4275
  /**
4276
4276
  * @license lucide-react v0.540.0 - ISC
4277
4277
  *
4278
4278
  * This source code is licensed under the ISC license.
4279
4279
  * See the LICENSE file in the root directory of this source tree.
4280
4280
  */
4281
- const __iconNode$o = [
4281
+ const __iconNode$p = [
4282
4282
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
4283
4283
  ["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
4284
4284
  ["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
4285
4285
  ];
4286
- const Ellipsis = createLucideIcon("ellipsis", __iconNode$o);
4286
+ const Ellipsis = createLucideIcon("ellipsis", __iconNode$p);
4287
4287
  /**
4288
4288
  * @license lucide-react v0.540.0 - ISC
4289
4289
  *
4290
4290
  * This source code is licensed under the ISC license.
4291
4291
  * See the LICENSE file in the root directory of this source tree.
4292
4292
  */
4293
- const __iconNode$n = [
4293
+ const __iconNode$o = [
4294
4294
  [
4295
4295
  "path",
4296
4296
  {
@@ -4308,52 +4308,52 @@ const __iconNode$n = [
4308
4308
  ],
4309
4309
  ["path", { d: "m2 2 20 20", key: "1ooewy" }]
4310
4310
  ];
4311
- const EyeOff = createLucideIcon("eye-off", __iconNode$n);
4311
+ const EyeOff = createLucideIcon("eye-off", __iconNode$o);
4312
4312
  /**
4313
4313
  * @license lucide-react v0.540.0 - ISC
4314
4314
  *
4315
4315
  * This source code is licensed under the ISC license.
4316
4316
  * See the LICENSE file in the root directory of this source tree.
4317
4317
  */
4318
- const __iconNode$m = [
4318
+ const __iconNode$n = [
4319
4319
  ["path", { d: "M10 12.5 8 15l2 2.5", key: "1tg20x" }],
4320
4320
  ["path", { d: "m14 12.5 2 2.5-2 2.5", key: "yinavb" }],
4321
4321
  ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
4322
4322
  ["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z", key: "1mlx9k" }]
4323
4323
  ];
4324
- const FileCode = createLucideIcon("file-code", __iconNode$m);
4324
+ const FileCode = createLucideIcon("file-code", __iconNode$n);
4325
4325
  /**
4326
4326
  * @license lucide-react v0.540.0 - ISC
4327
4327
  *
4328
4328
  * This source code is licensed under the ISC license.
4329
4329
  * See the LICENSE file in the root directory of this source tree.
4330
4330
  */
4331
- const __iconNode$l = [
4331
+ const __iconNode$m = [
4332
4332
  ["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
4333
4333
  ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
4334
4334
  ["path", { d: "M10 9H8", key: "b1mrlr" }],
4335
4335
  ["path", { d: "M16 13H8", key: "t4e002" }],
4336
4336
  ["path", { d: "M16 17H8", key: "z1uh3a" }]
4337
4337
  ];
4338
- const FileText = createLucideIcon("file-text", __iconNode$l);
4338
+ const FileText = createLucideIcon("file-text", __iconNode$m);
4339
4339
  /**
4340
4340
  * @license lucide-react v0.540.0 - ISC
4341
4341
  *
4342
4342
  * This source code is licensed under the ISC license.
4343
4343
  * See the LICENSE file in the root directory of this source tree.
4344
4344
  */
4345
- const __iconNode$k = [
4345
+ const __iconNode$l = [
4346
4346
  ["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
4347
4347
  ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }]
4348
4348
  ];
4349
- const File$1 = createLucideIcon("file", __iconNode$k);
4349
+ const File$1 = createLucideIcon("file", __iconNode$l);
4350
4350
  /**
4351
4351
  * @license lucide-react v0.540.0 - ISC
4352
4352
  *
4353
4353
  * This source code is licensed under the ISC license.
4354
4354
  * See the LICENSE file in the root directory of this source tree.
4355
4355
  */
4356
- const __iconNode$j = [
4356
+ const __iconNode$k = [
4357
4357
  ["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
4358
4358
  ["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
4359
4359
  ["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
@@ -4361,38 +4361,38 @@ const __iconNode$j = [
4361
4361
  ["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
4362
4362
  ["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
4363
4363
  ];
4364
- const GripVertical = createLucideIcon("grip-vertical", __iconNode$j);
4364
+ const GripVertical = createLucideIcon("grip-vertical", __iconNode$k);
4365
4365
  /**
4366
4366
  * @license lucide-react v0.540.0 - ISC
4367
4367
  *
4368
4368
  * This source code is licensed under the ISC license.
4369
4369
  * See the LICENSE file in the root directory of this source tree.
4370
4370
  */
4371
- const __iconNode$i = [
4371
+ const __iconNode$j = [
4372
4372
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
4373
4373
  ["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
4374
4374
  ["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
4375
4375
  ];
4376
- const Image$2 = createLucideIcon("image", __iconNode$i);
4376
+ const Image$2 = createLucideIcon("image", __iconNode$j);
4377
4377
  /**
4378
4378
  * @license lucide-react v0.540.0 - ISC
4379
4379
  *
4380
4380
  * This source code is licensed under the ISC license.
4381
4381
  * See the LICENSE file in the root directory of this source tree.
4382
4382
  */
4383
- const __iconNode$h = [
4383
+ const __iconNode$i = [
4384
4384
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
4385
4385
  ["path", { d: "M12 16v-4", key: "1dtifu" }],
4386
4386
  ["path", { d: "M12 8h.01", key: "e9boi3" }]
4387
4387
  ];
4388
- const Info = createLucideIcon("info", __iconNode$h);
4388
+ const Info = createLucideIcon("info", __iconNode$i);
4389
4389
  /**
4390
4390
  * @license lucide-react v0.540.0 - ISC
4391
4391
  *
4392
4392
  * This source code is licensed under the ISC license.
4393
4393
  * See the LICENSE file in the root directory of this source tree.
4394
4394
  */
4395
- const __iconNode$g = [
4395
+ const __iconNode$h = [
4396
4396
  [
4397
4397
  "path",
4398
4398
  {
@@ -4402,42 +4402,42 @@ const __iconNode$g = [
4402
4402
  ],
4403
4403
  ["path", { d: "M20.054 15.987H3.946", key: "14rxg9" }]
4404
4404
  ];
4405
- const Laptop = createLucideIcon("laptop", __iconNode$g);
4405
+ const Laptop = createLucideIcon("laptop", __iconNode$h);
4406
4406
  /**
4407
4407
  * @license lucide-react v0.540.0 - ISC
4408
4408
  *
4409
4409
  * This source code is licensed under the ISC license.
4410
4410
  * See the LICENSE file in the root directory of this source tree.
4411
4411
  */
4412
- const __iconNode$f = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
4413
- const LoaderCircle = createLucideIcon("loader-circle", __iconNode$f);
4412
+ const __iconNode$g = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
4413
+ const LoaderCircle = createLucideIcon("loader-circle", __iconNode$g);
4414
4414
  /**
4415
4415
  * @license lucide-react v0.540.0 - ISC
4416
4416
  *
4417
4417
  * This source code is licensed under the ISC license.
4418
4418
  * See the LICENSE file in the root directory of this source tree.
4419
4419
  */
4420
- const __iconNode$e = [
4420
+ const __iconNode$f = [
4421
4421
  ["path", { d: "m16 17 5-5-5-5", key: "1bji2h" }],
4422
4422
  ["path", { d: "M21 12H9", key: "dn1m92" }],
4423
4423
  ["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }]
4424
4424
  ];
4425
- const LogOut = createLucideIcon("log-out", __iconNode$e);
4425
+ const LogOut = createLucideIcon("log-out", __iconNode$f);
4426
4426
  /**
4427
4427
  * @license lucide-react v0.540.0 - ISC
4428
4428
  *
4429
4429
  * This source code is licensed under the ISC license.
4430
4430
  * See the LICENSE file in the root directory of this source tree.
4431
4431
  */
4432
- const __iconNode$d = [["path", { d: "M5 12h14", key: "1ays0h" }]];
4433
- const Minus = createLucideIcon("minus", __iconNode$d);
4432
+ const __iconNode$e = [["path", { d: "M5 12h14", key: "1ays0h" }]];
4433
+ const Minus = createLucideIcon("minus", __iconNode$e);
4434
4434
  /**
4435
4435
  * @license lucide-react v0.540.0 - ISC
4436
4436
  *
4437
4437
  * This source code is licensed under the ISC license.
4438
4438
  * See the LICENSE file in the root directory of this source tree.
4439
4439
  */
4440
- const __iconNode$c = [
4440
+ const __iconNode$d = [
4441
4441
  [
4442
4442
  "path",
4443
4443
  {
@@ -4446,26 +4446,26 @@ const __iconNode$c = [
4446
4446
  }
4447
4447
  ]
4448
4448
  ];
4449
- const Moon = createLucideIcon("moon", __iconNode$c);
4449
+ const Moon = createLucideIcon("moon", __iconNode$d);
4450
4450
  /**
4451
4451
  * @license lucide-react v0.540.0 - ISC
4452
4452
  *
4453
4453
  * This source code is licensed under the ISC license.
4454
4454
  * See the LICENSE file in the root directory of this source tree.
4455
4455
  */
4456
- const __iconNode$b = [
4456
+ const __iconNode$c = [
4457
4457
  ["path", { d: "M9 18V5l12-2v13", key: "1jmyc2" }],
4458
4458
  ["circle", { cx: "6", cy: "18", r: "3", key: "fqmcym" }],
4459
4459
  ["circle", { cx: "18", cy: "16", r: "3", key: "1hluhg" }]
4460
4460
  ];
4461
- const Music = createLucideIcon("music", __iconNode$b);
4461
+ const Music = createLucideIcon("music", __iconNode$c);
4462
4462
  /**
4463
4463
  * @license lucide-react v0.540.0 - ISC
4464
4464
  *
4465
4465
  * This source code is licensed under the ISC license.
4466
4466
  * See the LICENSE file in the root directory of this source tree.
4467
4467
  */
4468
- const __iconNode$a = [
4468
+ const __iconNode$b = [
4469
4469
  [
4470
4470
  "path",
4471
4471
  {
@@ -4477,77 +4477,95 @@ const __iconNode$a = [
4477
4477
  ["polyline", { points: "3.29 7 12 12 20.71 7", key: "ousv84" }],
4478
4478
  ["path", { d: "m7.5 4.27 9 5.15", key: "1c824w" }]
4479
4479
  ];
4480
- const Package = createLucideIcon("package", __iconNode$a);
4480
+ const Package = createLucideIcon("package", __iconNode$b);
4481
4481
  /**
4482
4482
  * @license lucide-react v0.540.0 - ISC
4483
4483
  *
4484
4484
  * This source code is licensed under the ISC license.
4485
4485
  * See the LICENSE file in the root directory of this source tree.
4486
4486
  */
4487
- const __iconNode$9 = [
4487
+ const __iconNode$a = [
4488
4488
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
4489
4489
  ["path", { d: "M9 3v18", key: "fh3hqa" }]
4490
4490
  ];
4491
- const PanelLeft = createLucideIcon("panel-left", __iconNode$9);
4491
+ const PanelLeft = createLucideIcon("panel-left", __iconNode$a);
4492
4492
  /**
4493
4493
  * @license lucide-react v0.540.0 - ISC
4494
4494
  *
4495
4495
  * This source code is licensed under the ISC license.
4496
4496
  * See the LICENSE file in the root directory of this source tree.
4497
4497
  */
4498
- const __iconNode$8 = [
4498
+ const __iconNode$9 = [
4499
4499
  ["path", { d: "M5 12h14", key: "1ays0h" }],
4500
4500
  ["path", { d: "M12 5v14", key: "s699le" }]
4501
4501
  ];
4502
- const Plus = createLucideIcon("plus", __iconNode$8);
4502
+ const Plus = createLucideIcon("plus", __iconNode$9);
4503
4503
  /**
4504
4504
  * @license lucide-react v0.540.0 - ISC
4505
4505
  *
4506
4506
  * This source code is licensed under the ISC license.
4507
4507
  * See the LICENSE file in the root directory of this source tree.
4508
4508
  */
4509
- const __iconNode$7 = [
4509
+ const __iconNode$8 = [
4510
4510
  ["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
4511
4511
  ["path", { d: "M21 3v5h-5", key: "1q7to0" }],
4512
4512
  ["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
4513
4513
  ["path", { d: "M8 16H3v5", key: "1cv678" }]
4514
4514
  ];
4515
- const RefreshCw = createLucideIcon("refresh-cw", __iconNode$7);
4515
+ const RefreshCw = createLucideIcon("refresh-cw", __iconNode$8);
4516
4516
  /**
4517
4517
  * @license lucide-react v0.540.0 - ISC
4518
4518
  *
4519
4519
  * This source code is licensed under the ISC license.
4520
4520
  * See the LICENSE file in the root directory of this source tree.
4521
4521
  */
4522
- const __iconNode$6 = [
4522
+ const __iconNode$7 = [
4523
4523
  ["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
4524
4524
  ["path", { d: "M3 3v5h5", key: "1xhq8a" }]
4525
4525
  ];
4526
- const RotateCcw = createLucideIcon("rotate-ccw", __iconNode$6);
4526
+ const RotateCcw = createLucideIcon("rotate-ccw", __iconNode$7);
4527
4527
  /**
4528
4528
  * @license lucide-react v0.540.0 - ISC
4529
4529
  *
4530
4530
  * This source code is licensed under the ISC license.
4531
4531
  * See the LICENSE file in the root directory of this source tree.
4532
4532
  */
4533
- const __iconNode$5 = [
4533
+ const __iconNode$6 = [
4534
4534
  ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
4535
4535
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
4536
4536
  ];
4537
- const Search = createLucideIcon("search", __iconNode$5);
4537
+ const Search = createLucideIcon("search", __iconNode$6);
4538
4538
  /**
4539
4539
  * @license lucide-react v0.540.0 - ISC
4540
4540
  *
4541
4541
  * This source code is licensed under the ISC license.
4542
4542
  * See the LICENSE file in the root directory of this source tree.
4543
4543
  */
4544
- const __iconNode$4 = [
4544
+ const __iconNode$5 = [
4545
4545
  ["path", { d: "M14 17H5", key: "gfn3mx" }],
4546
4546
  ["path", { d: "M19 7h-9", key: "6i9tg" }],
4547
4547
  ["circle", { cx: "17", cy: "17", r: "3", key: "18b49y" }],
4548
4548
  ["circle", { cx: "7", cy: "7", r: "3", key: "dfmy0x" }]
4549
4549
  ];
4550
- const Settings2 = createLucideIcon("settings-2", __iconNode$4);
4550
+ const Settings2 = createLucideIcon("settings-2", __iconNode$5);
4551
+ /**
4552
+ * @license lucide-react v0.540.0 - ISC
4553
+ *
4554
+ * This source code is licensed under the ISC license.
4555
+ * See the LICENSE file in the root directory of this source tree.
4556
+ */
4557
+ const __iconNode$4 = [
4558
+ ["line", { x1: "21", x2: "14", y1: "4", y2: "4", key: "obuewd" }],
4559
+ ["line", { x1: "10", x2: "3", y1: "4", y2: "4", key: "1q6298" }],
4560
+ ["line", { x1: "21", x2: "12", y1: "12", y2: "12", key: "1iu8h1" }],
4561
+ ["line", { x1: "8", x2: "3", y1: "12", y2: "12", key: "ntss68" }],
4562
+ ["line", { x1: "21", x2: "16", y1: "20", y2: "20", key: "14d8ph" }],
4563
+ ["line", { x1: "12", x2: "3", y1: "20", y2: "20", key: "m0wm8r" }],
4564
+ ["line", { x1: "14", x2: "14", y1: "2", y2: "6", key: "14e1ph" }],
4565
+ ["line", { x1: "8", x2: "8", y1: "10", y2: "14", key: "1i6ji0" }],
4566
+ ["line", { x1: "16", x2: "16", y1: "18", y2: "22", key: "1lctlv" }]
4567
+ ];
4568
+ const SlidersHorizontal = createLucideIcon("sliders-horizontal", __iconNode$4);
4551
4569
  /**
4552
4570
  * @license lucide-react v0.540.0 - ISC
4553
4571
  *
@@ -12447,6 +12465,218 @@ const r$1 = (t2, r2, o2) => {
12447
12465
  function n$1(e2) {
12448
12466
  return e2.replace(/\]|\[/g, "");
12449
12467
  }
12468
+ function $constructor$1(name, initializer2, params) {
12469
+ function init(inst, def) {
12470
+ var _a2;
12471
+ Object.defineProperty(inst, "_zod", {
12472
+ value: inst._zod ?? {},
12473
+ enumerable: false
12474
+ });
12475
+ (_a2 = inst._zod).traits ?? (_a2.traits = /* @__PURE__ */ new Set());
12476
+ inst._zod.traits.add(name);
12477
+ initializer2(inst, def);
12478
+ for (const k2 in _2.prototype) {
12479
+ if (!(k2 in inst))
12480
+ Object.defineProperty(inst, k2, { value: _2.prototype[k2].bind(inst) });
12481
+ }
12482
+ inst._zod.constr = _2;
12483
+ inst._zod.def = def;
12484
+ }
12485
+ const Parent = (params == null ? void 0 : params.Parent) ?? Object;
12486
+ class Definition extends Parent {
12487
+ }
12488
+ Object.defineProperty(Definition, "name", { value: name });
12489
+ function _2(def) {
12490
+ var _a2;
12491
+ const inst = (params == null ? void 0 : params.Parent) ? new Definition() : this;
12492
+ init(inst, def);
12493
+ (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
12494
+ for (const fn of inst._zod.deferred) {
12495
+ fn();
12496
+ }
12497
+ return inst;
12498
+ }
12499
+ Object.defineProperty(_2, "init", { value: init });
12500
+ Object.defineProperty(_2, Symbol.hasInstance, {
12501
+ value: (inst) => {
12502
+ var _a2, _b;
12503
+ if ((params == null ? void 0 : params.Parent) && inst instanceof params.Parent)
12504
+ return true;
12505
+ return (_b = (_a2 = inst == null ? void 0 : inst._zod) == null ? void 0 : _a2.traits) == null ? void 0 : _b.has(name);
12506
+ }
12507
+ });
12508
+ Object.defineProperty(_2, "name", { value: name });
12509
+ return _2;
12510
+ }
12511
+ let $ZodAsyncError$1 = class $ZodAsyncError extends Error {
12512
+ constructor() {
12513
+ super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
12514
+ }
12515
+ };
12516
+ const globalConfig$1 = {};
12517
+ function config$1(newConfig) {
12518
+ return globalConfig$1;
12519
+ }
12520
+ function jsonStringifyReplacer$1(_2, value) {
12521
+ if (typeof value === "bigint")
12522
+ return value.toString();
12523
+ return value;
12524
+ }
12525
+ const captureStackTrace$1 = Error.captureStackTrace ? Error.captureStackTrace : (..._args) => {
12526
+ };
12527
+ function unwrapMessage$1(message2) {
12528
+ return typeof message2 === "string" ? message2 : message2 == null ? void 0 : message2.message;
12529
+ }
12530
+ function finalizeIssue$1(iss, ctx, config2) {
12531
+ var _a2, _b, _c, _d, _e2, _f;
12532
+ const full = { ...iss, path: iss.path ?? [] };
12533
+ if (!iss.message) {
12534
+ const message2 = unwrapMessage$1((_c = (_b = (_a2 = iss.inst) == null ? void 0 : _a2._zod.def) == null ? void 0 : _b.error) == null ? void 0 : _c.call(_b, iss)) ?? unwrapMessage$1((_d = ctx == null ? void 0 : ctx.error) == null ? void 0 : _d.call(ctx, iss)) ?? unwrapMessage$1((_e2 = config2.customError) == null ? void 0 : _e2.call(config2, iss)) ?? unwrapMessage$1((_f = config2.localeError) == null ? void 0 : _f.call(config2, iss)) ?? "Invalid input";
12535
+ full.message = message2;
12536
+ }
12537
+ delete full.inst;
12538
+ delete full.continue;
12539
+ if (!(ctx == null ? void 0 : ctx.reportInput)) {
12540
+ delete full.input;
12541
+ }
12542
+ return full;
12543
+ }
12544
+ const initializer$2 = (inst, def) => {
12545
+ inst.name = "$ZodError";
12546
+ Object.defineProperty(inst, "_zod", {
12547
+ value: inst._zod,
12548
+ enumerable: false
12549
+ });
12550
+ Object.defineProperty(inst, "issues", {
12551
+ value: def,
12552
+ enumerable: false
12553
+ });
12554
+ Object.defineProperty(inst, "message", {
12555
+ get() {
12556
+ return JSON.stringify(def, jsonStringifyReplacer$1, 2);
12557
+ },
12558
+ enumerable: true
12559
+ // configurable: false,
12560
+ });
12561
+ Object.defineProperty(inst, "toString", {
12562
+ value: () => inst.message,
12563
+ enumerable: false
12564
+ });
12565
+ };
12566
+ const $ZodError$1 = $constructor$1("$ZodError", initializer$2);
12567
+ const $ZodRealError$1 = $constructor$1("$ZodError", initializer$2, { Parent: Error });
12568
+ const _parse$1 = (_Err) => (schema, value, _ctx, _params) => {
12569
+ const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
12570
+ const result = schema._zod.run({ value, issues: [] }, ctx);
12571
+ if (result instanceof Promise) {
12572
+ throw new $ZodAsyncError$1();
12573
+ }
12574
+ if (result.issues.length) {
12575
+ const e2 = new ((_params == null ? void 0 : _params.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue$1(iss, ctx, config$1())));
12576
+ captureStackTrace$1(e2, _params == null ? void 0 : _params.callee);
12577
+ throw e2;
12578
+ }
12579
+ return result.value;
12580
+ };
12581
+ const parse$2 = /* @__PURE__ */ _parse$1($ZodRealError$1);
12582
+ const _parseAsync$1 = (_Err) => async (schema, value, _ctx, params) => {
12583
+ const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
12584
+ let result = schema._zod.run({ value, issues: [] }, ctx);
12585
+ if (result instanceof Promise)
12586
+ result = await result;
12587
+ if (result.issues.length) {
12588
+ const e2 = new ((params == null ? void 0 : params.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue$1(iss, ctx, config$1())));
12589
+ captureStackTrace$1(e2, params == null ? void 0 : params.callee);
12590
+ throw e2;
12591
+ }
12592
+ return result.value;
12593
+ };
12594
+ const parseAsync$1 = /* @__PURE__ */ _parseAsync$1($ZodRealError$1);
12595
+ function t$1(r2, e2) {
12596
+ try {
12597
+ var o2 = r2();
12598
+ } catch (r3) {
12599
+ return e2(r3);
12600
+ }
12601
+ return o2 && o2.then ? o2.then(void 0, e2) : o2;
12602
+ }
12603
+ function s$1(r2, e2) {
12604
+ for (var n2 = {}; r2.length; ) {
12605
+ var t2 = r2[0], s2 = t2.code, i2 = t2.message, a2 = t2.path.join(".");
12606
+ if (!n2[a2]) if ("unionErrors" in t2) {
12607
+ var u2 = t2.unionErrors[0].errors[0];
12608
+ n2[a2] = { message: u2.message, type: u2.code };
12609
+ } else n2[a2] = { message: i2, type: s2 };
12610
+ if ("unionErrors" in t2 && t2.unionErrors.forEach(function(e3) {
12611
+ return e3.errors.forEach(function(e4) {
12612
+ return r2.push(e4);
12613
+ });
12614
+ }), e2) {
12615
+ var c2 = n2[a2].types, f = c2 && c2[t2.code];
12616
+ n2[a2] = appendErrors(a2, e2, n2, s2, f ? [].concat(f, t2.message) : t2.message);
12617
+ }
12618
+ r2.shift();
12619
+ }
12620
+ return n2;
12621
+ }
12622
+ function i$1(r2, e2) {
12623
+ for (var n2 = {}; r2.length; ) {
12624
+ var t2 = r2[0], s2 = t2.code, i2 = t2.message, a2 = t2.path.join(".");
12625
+ if (!n2[a2]) if ("invalid_union" === t2.code && t2.errors.length > 0) {
12626
+ var u2 = t2.errors[0][0];
12627
+ n2[a2] = { message: u2.message, type: u2.code };
12628
+ } else n2[a2] = { message: i2, type: s2 };
12629
+ if ("invalid_union" === t2.code && t2.errors.forEach(function(e3) {
12630
+ return e3.forEach(function(e4) {
12631
+ return r2.push(e4);
12632
+ });
12633
+ }), e2) {
12634
+ var c2 = n2[a2].types, f = c2 && c2[t2.code];
12635
+ n2[a2] = appendErrors(a2, e2, n2, s2, f ? [].concat(f, t2.message) : t2.message);
12636
+ }
12637
+ r2.shift();
12638
+ }
12639
+ return n2;
12640
+ }
12641
+ function a$2(o2, a2, u2) {
12642
+ if (void 0 === u2 && (u2 = {}), (function(r2) {
12643
+ return "_def" in r2 && "object" == typeof r2._def && "typeName" in r2._def;
12644
+ })(o2)) return function(n2, i2, c2) {
12645
+ try {
12646
+ return Promise.resolve(t$1(function() {
12647
+ return Promise.resolve(o2["sync" === u2.mode ? "parse" : "parseAsync"](n2, a2)).then(function(e2) {
12648
+ return c2.shouldUseNativeValidation && o$1({}, c2), { errors: {}, values: u2.raw ? Object.assign({}, n2) : e2 };
12649
+ });
12650
+ }, function(r2) {
12651
+ if ((function(r3) {
12652
+ return Array.isArray(null == r3 ? void 0 : r3.issues);
12653
+ })(r2)) return { values: {}, errors: s$2(s$1(r2.errors, !c2.shouldUseNativeValidation && "all" === c2.criteriaMode), c2) };
12654
+ throw r2;
12655
+ }));
12656
+ } catch (r2) {
12657
+ return Promise.reject(r2);
12658
+ }
12659
+ };
12660
+ if ((function(r2) {
12661
+ return "_zod" in r2 && "object" == typeof r2._zod;
12662
+ })(o2)) return function(s2, c2, f) {
12663
+ try {
12664
+ return Promise.resolve(t$1(function() {
12665
+ return Promise.resolve(("sync" === u2.mode ? parse$2 : parseAsync$1)(o2, s2, a2)).then(function(e2) {
12666
+ return f.shouldUseNativeValidation && o$1({}, f), { errors: {}, values: u2.raw ? Object.assign({}, s2) : e2 };
12667
+ });
12668
+ }, function(r2) {
12669
+ if ((function(r3) {
12670
+ return r3 instanceof $ZodError$1;
12671
+ })(r2)) return { values: {}, errors: s$2(i$1(r2.issues, !f.shouldUseNativeValidation && "all" === f.criteriaMode), f) };
12672
+ throw r2;
12673
+ }));
12674
+ } catch (r2) {
12675
+ return Promise.reject(r2);
12676
+ }
12677
+ };
12678
+ throw new Error("Invalid input: not a Zod schema");
12679
+ }
12450
12680
  function $constructor(name, initializer2, params) {
12451
12681
  function init(inst, def) {
12452
12682
  if (!inst._zod) {
@@ -12499,7 +12729,7 @@ function $constructor(name, initializer2, params) {
12499
12729
  Object.defineProperty(_2, "name", { value: name });
12500
12730
  return _2;
12501
12731
  }
12502
- class $ZodAsyncError extends Error {
12732
+ class $ZodAsyncError2 extends Error {
12503
12733
  constructor() {
12504
12734
  super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
12505
12735
  }
@@ -12958,7 +13188,7 @@ const _parse = (_Err) => (schema, value, _ctx, _params) => {
12958
13188
  const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
12959
13189
  const result = schema._zod.run({ value, issues: [] }, ctx);
12960
13190
  if (result instanceof Promise) {
12961
- throw new $ZodAsyncError();
13191
+ throw new $ZodAsyncError2();
12962
13192
  }
12963
13193
  if (result.issues.length) {
12964
13194
  const e2 = new ((_params == null ? void 0 : _params.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
@@ -12967,7 +13197,6 @@ const _parse = (_Err) => (schema, value, _ctx, _params) => {
12967
13197
  }
12968
13198
  return result.value;
12969
13199
  };
12970
- const parse$2 = /* @__PURE__ */ _parse($ZodRealError);
12971
13200
  const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
12972
13201
  const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
12973
13202
  let result = schema._zod.run({ value, issues: [] }, ctx);
@@ -12980,12 +13209,11 @@ const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
12980
13209
  }
12981
13210
  return result.value;
12982
13211
  };
12983
- const parseAsync$1 = /* @__PURE__ */ _parseAsync($ZodRealError);
12984
13212
  const _safeParse = (_Err) => (schema, value, _ctx) => {
12985
13213
  const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
12986
13214
  const result = schema._zod.run({ value, issues: [] }, ctx);
12987
13215
  if (result instanceof Promise) {
12988
- throw new $ZodAsyncError();
13216
+ throw new $ZodAsyncError2();
12989
13217
  }
12990
13218
  return result.issues.length ? {
12991
13219
  success: false,
@@ -13547,7 +13775,7 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
13547
13775
  const currLen = payload.issues.length;
13548
13776
  const _2 = ch._zod.check(payload);
13549
13777
  if (_2 instanceof Promise && (ctx == null ? void 0 : ctx.async) === false) {
13550
- throw new $ZodAsyncError();
13778
+ throw new $ZodAsyncError2();
13551
13779
  }
13552
13780
  if (asyncResult || _2 instanceof Promise) {
13553
13781
  asyncResult = (asyncResult ?? Promise.resolve()).then(async () => {
@@ -13581,7 +13809,7 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
13581
13809
  const checkResult = runChecks(payload, checks, ctx);
13582
13810
  if (checkResult instanceof Promise) {
13583
13811
  if (ctx.async === false)
13584
- throw new $ZodAsyncError();
13812
+ throw new $ZodAsyncError2();
13585
13813
  return checkResult.then((checkResult2) => inst._zod.parse(checkResult2, ctx));
13586
13814
  }
13587
13815
  return inst._zod.parse(checkResult, ctx);
@@ -13602,7 +13830,7 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
13602
13830
  const result = inst._zod.parse(payload, ctx);
13603
13831
  if (result instanceof Promise) {
13604
13832
  if (ctx.async === false)
13605
- throw new $ZodAsyncError();
13833
+ throw new $ZodAsyncError2();
13606
13834
  return result.then((result2) => runChecks(result2, checks, ctx));
13607
13835
  }
13608
13836
  return runChecks(result, checks, ctx);
@@ -14442,7 +14670,7 @@ const $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def)
14442
14670
  });
14443
14671
  }
14444
14672
  if (_out instanceof Promise) {
14445
- throw new $ZodAsyncError();
14673
+ throw new $ZodAsyncError2();
14446
14674
  }
14447
14675
  payload.value = _out;
14448
14676
  return payload;
@@ -15204,91 +15432,6 @@ function _check(fn, params) {
15204
15432
  ch._zod.check = fn;
15205
15433
  return ch;
15206
15434
  }
15207
- function t$1(r2, e2) {
15208
- try {
15209
- var o2 = r2();
15210
- } catch (r3) {
15211
- return e2(r3);
15212
- }
15213
- return o2 && o2.then ? o2.then(void 0, e2) : o2;
15214
- }
15215
- function s$1(r2, e2) {
15216
- for (var n2 = {}; r2.length; ) {
15217
- var t2 = r2[0], s2 = t2.code, i2 = t2.message, a2 = t2.path.join(".");
15218
- if (!n2[a2]) if ("unionErrors" in t2) {
15219
- var u2 = t2.unionErrors[0].errors[0];
15220
- n2[a2] = { message: u2.message, type: u2.code };
15221
- } else n2[a2] = { message: i2, type: s2 };
15222
- if ("unionErrors" in t2 && t2.unionErrors.forEach(function(e3) {
15223
- return e3.errors.forEach(function(e4) {
15224
- return r2.push(e4);
15225
- });
15226
- }), e2) {
15227
- var c2 = n2[a2].types, f = c2 && c2[t2.code];
15228
- n2[a2] = appendErrors(a2, e2, n2, s2, f ? [].concat(f, t2.message) : t2.message);
15229
- }
15230
- r2.shift();
15231
- }
15232
- return n2;
15233
- }
15234
- function i$1(r2, e2) {
15235
- for (var n2 = {}; r2.length; ) {
15236
- var t2 = r2[0], s2 = t2.code, i2 = t2.message, a2 = t2.path.join(".");
15237
- if (!n2[a2]) if ("invalid_union" === t2.code && t2.errors.length > 0) {
15238
- var u2 = t2.errors[0][0];
15239
- n2[a2] = { message: u2.message, type: u2.code };
15240
- } else n2[a2] = { message: i2, type: s2 };
15241
- if ("invalid_union" === t2.code && t2.errors.forEach(function(e3) {
15242
- return e3.forEach(function(e4) {
15243
- return r2.push(e4);
15244
- });
15245
- }), e2) {
15246
- var c2 = n2[a2].types, f = c2 && c2[t2.code];
15247
- n2[a2] = appendErrors(a2, e2, n2, s2, f ? [].concat(f, t2.message) : t2.message);
15248
- }
15249
- r2.shift();
15250
- }
15251
- return n2;
15252
- }
15253
- function a$2(o2, a2, u2) {
15254
- if (void 0 === u2 && (u2 = {}), (function(r2) {
15255
- return "_def" in r2 && "object" == typeof r2._def && "typeName" in r2._def;
15256
- })(o2)) return function(n2, i2, c2) {
15257
- try {
15258
- return Promise.resolve(t$1(function() {
15259
- return Promise.resolve(o2["sync" === u2.mode ? "parse" : "parseAsync"](n2, a2)).then(function(e2) {
15260
- return c2.shouldUseNativeValidation && o$1({}, c2), { errors: {}, values: u2.raw ? Object.assign({}, n2) : e2 };
15261
- });
15262
- }, function(r2) {
15263
- if ((function(r3) {
15264
- return Array.isArray(null == r3 ? void 0 : r3.issues);
15265
- })(r2)) return { values: {}, errors: s$2(s$1(r2.errors, !c2.shouldUseNativeValidation && "all" === c2.criteriaMode), c2) };
15266
- throw r2;
15267
- }));
15268
- } catch (r2) {
15269
- return Promise.reject(r2);
15270
- }
15271
- };
15272
- if ((function(r2) {
15273
- return "_zod" in r2 && "object" == typeof r2._zod;
15274
- })(o2)) return function(s2, c2, f) {
15275
- try {
15276
- return Promise.resolve(t$1(function() {
15277
- return Promise.resolve(("sync" === u2.mode ? parse$2 : parseAsync$1)(o2, s2, a2)).then(function(e2) {
15278
- return f.shouldUseNativeValidation && o$1({}, f), { errors: {}, values: u2.raw ? Object.assign({}, s2) : e2 };
15279
- });
15280
- }, function(r2) {
15281
- if ((function(r3) {
15282
- return r3 instanceof $ZodError;
15283
- })(r2)) return { values: {}, errors: s$2(i$1(r2.issues, !f.shouldUseNativeValidation && "all" === f.criteriaMode), f) };
15284
- throw r2;
15285
- }));
15286
- } catch (r2) {
15287
- return Promise.reject(r2);
15288
- }
15289
- };
15290
- throw new Error("Invalid input: not a Zod schema");
15291
- }
15292
15435
  const ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
15293
15436
  $ZodISODateTime.init(inst, def);
15294
15437
  ZodStringFormat.init(inst, def);
@@ -29372,7 +29515,7 @@ function Button(props2) {
29372
29515
  function CaptionLabel(props2) {
29373
29516
  return React__default.createElement("span", { ...props2 });
29374
29517
  }
29375
- function Chevron(props2) {
29518
+ function Chevron$1(props2) {
29376
29519
  const { size: size2 = 24, orientation = "left", className } = props2;
29377
29520
  return (
29378
29521
  // biome-ignore lint/a11y/noSvgWithoutTitle: handled by the parent component
@@ -29579,7 +29722,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
29579
29722
  __proto__: null,
29580
29723
  Button,
29581
29724
  CaptionLabel,
29582
- Chevron,
29725
+ Chevron: Chevron$1,
29583
29726
  Day,
29584
29727
  DayButton,
29585
29728
  Dropdown,
@@ -31089,7 +31232,7 @@ function Calendar({
31089
31232
  ...formatters2
31090
31233
  },
31091
31234
  classNames: {
31092
- root: cn$1("w-fit", defaultClassNames.root),
31235
+ root: cn$1(defaultClassNames.root),
31093
31236
  months: cn$1(
31094
31237
  "flex gap-4 flex-col md:flex-row relative",
31095
31238
  defaultClassNames.months
@@ -31330,7 +31473,7 @@ function DatePicker({
31330
31473
  showOutsideDays: true
31331
31474
  }
31332
31475
  ),
31333
- (props2.showFooter ?? true) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 p-2 border-t", children: [
31476
+ (props2.showFooter ?? true) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 p-2 border-t border-border", children: [
31334
31477
  /* @__PURE__ */ jsx(
31335
31478
  Button$1,
31336
31479
  {
@@ -31763,7 +31906,7 @@ function DateRangePicker({
31763
31906
  );
31764
31907
  }) }) })
31765
31908
  ] }),
31766
- (props2.showFooter ?? true) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-2 pt-3 mt-3 border-t", children: [
31909
+ (props2.showFooter ?? true) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-2 pt-3 mt-3 border-t border-border", children: [
31767
31910
  /* @__PURE__ */ jsx(
31768
31911
  Button$1,
31769
31912
  {
@@ -32732,7 +32875,7 @@ function TimePicker({
32732
32875
  )
32733
32876
  ] })
32734
32877
  ] }),
32735
- (props2.showFooter ?? true) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 pt-3 mt-3 border-t", children: [
32878
+ (props2.showFooter ?? true) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 pt-3 mt-3 border-t border-border", children: [
32736
32879
  /* @__PURE__ */ jsx(
32737
32880
  Button$1,
32738
32881
  {
@@ -33023,7 +33166,7 @@ function TimeRangePicker({
33023
33166
  }
33024
33167
  )
33025
33168
  ] }),
33026
- (props2.showFooter ?? true) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 pt-3 mt-3 border-t", children: [
33169
+ (props2.showFooter ?? true) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 pt-3 mt-3 border-t border-border", children: [
33027
33170
  /* @__PURE__ */ jsx(
33028
33171
  Button$1,
33029
33172
  {
@@ -33376,7 +33519,7 @@ function DateTimePicker({
33376
33519
  )
33377
33520
  ] })
33378
33521
  ] }),
33379
- (props2.showFooter ?? true) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 p-2 border-t", children: [
33522
+ (props2.showFooter ?? true) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 p-2 border-t border-border", children: [
33380
33523
  /* @__PURE__ */ jsx(
33381
33524
  Button$1,
33382
33525
  {
@@ -33946,7 +34089,7 @@ function DateTimeRangePicker({
33946
34089
  }
33947
34090
  )
33948
34091
  ] }),
33949
- (props2.showFooter ?? true) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 pt-3 mt-3 border-t", children: [
34092
+ (props2.showFooter ?? true) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 pt-3 mt-3 border-t border-border", children: [
33950
34093
  /* @__PURE__ */ jsx(
33951
34094
  Button$1,
33952
34095
  {
@@ -38851,6 +38994,9 @@ function FormBuilderInner({
38851
38994
  showActions = true,
38852
38995
  customActions,
38853
38996
  showActionsSeparator = true,
38997
+ submitIcon,
38998
+ resetIcon,
38999
+ actionsSize = "default",
38854
39000
  form,
38855
39001
  extendValidation
38856
39002
  }, ref) {
@@ -39039,13 +39185,17 @@ function FormBuilderInner({
39039
39185
  actionsClassName
39040
39186
  ),
39041
39187
  children: [
39042
- /* @__PURE__ */ jsx(
39188
+ /* @__PURE__ */ jsxs(
39043
39189
  Button$1,
39044
39190
  {
39045
39191
  type: "submit",
39192
+ size: actionsSize,
39046
39193
  disabled: isSubmitting,
39047
39194
  className: "sm:order-last",
39048
- children: isSubmitting ? "Submitting..." : submitLabel
39195
+ children: [
39196
+ submitIcon,
39197
+ isSubmitting ? "Submitting..." : submitLabel
39198
+ ]
39049
39199
  }
39050
39200
  ),
39051
39201
  onCancel && /* @__PURE__ */ jsx(
@@ -39053,19 +39203,24 @@ function FormBuilderInner({
39053
39203
  {
39054
39204
  type: "button",
39055
39205
  variant: "outline",
39206
+ size: actionsSize,
39056
39207
  onClick: onCancel,
39057
39208
  disabled: isSubmitting,
39058
39209
  children: cancelLabel
39059
39210
  }
39060
39211
  ),
39061
- onReset && /* @__PURE__ */ jsx(
39212
+ onReset && /* @__PURE__ */ jsxs(
39062
39213
  Button$1,
39063
39214
  {
39064
39215
  type: "button",
39065
39216
  variant: "outline",
39217
+ size: actionsSize,
39066
39218
  onClick: handleReset,
39067
39219
  disabled: isSubmitting,
39068
- children: resetLabel
39220
+ children: [
39221
+ resetIcon,
39222
+ resetLabel
39223
+ ]
39069
39224
  }
39070
39225
  ),
39071
39226
  customActions
@@ -39402,6 +39557,123 @@ const commonForms = {
39402
39557
  ])
39403
39558
  ]
39404
39559
  };
39560
+ const safeStringify = (value) => {
39561
+ try {
39562
+ return JSON.stringify(value ?? {});
39563
+ } catch {
39564
+ return "";
39565
+ }
39566
+ };
39567
+ const isEmptyValue = (value) => value === void 0 || value === null || value === "" || Array.isArray(value) && value.length === 0;
39568
+ function countActiveFilters(values, filters) {
39569
+ if (!values) return 0;
39570
+ const defaults = /* @__PURE__ */ new Map();
39571
+ for (const section of filters) {
39572
+ for (const field of section.fields ?? []) {
39573
+ defaults.set(String(field.name), field.defaultValue);
39574
+ }
39575
+ }
39576
+ return Object.entries(values).filter(
39577
+ ([name, value]) => !isEmptyValue(value) && safeStringify(value) !== safeStringify(defaults.get(name))
39578
+ ).length;
39579
+ }
39580
+ function DataTableFilterPanel({
39581
+ filters,
39582
+ title = "Filters",
39583
+ form,
39584
+ values,
39585
+ onChange,
39586
+ showActionsSeparator,
39587
+ defaultOpen = true
39588
+ }) {
39589
+ const [open, setOpen] = React.useState(defaultOpen);
39590
+ const [applied, setApplied] = React.useState(values);
39591
+ const contentId = React.useId();
39592
+ const valuesKey = safeStringify(values);
39593
+ React.useEffect(() => {
39594
+ setApplied(values);
39595
+ }, [valuesKey]);
39596
+ const activeCount = React.useMemo(
39597
+ () => countActiveFilters(applied, filters),
39598
+ [applied, filters]
39599
+ );
39600
+ return /* @__PURE__ */ jsxs("div", { className: "rounded-lg border border-border bg-card shadow-xs", children: [
39601
+ /* @__PURE__ */ jsxs(
39602
+ "button",
39603
+ {
39604
+ type: "button",
39605
+ "aria-expanded": open,
39606
+ "aria-controls": contentId,
39607
+ onClick: () => setOpen((prev) => !prev),
39608
+ className: cn$1(
39609
+ "flex w-full items-center gap-3 px-4 py-3 text-left outline-none transition-colors hover:bg-muted/50 focus-visible:ring-2 focus-visible:ring-ring/50",
39610
+ open ? "rounded-t-lg" : "rounded-lg"
39611
+ ),
39612
+ children: [
39613
+ /* @__PURE__ */ jsx("span", { className: "flex size-8 shrink-0 items-center justify-center rounded-md bg-primary/10 text-primary", children: /* @__PURE__ */ jsx(SlidersHorizontal, { className: "size-4" }) }),
39614
+ /* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
39615
+ /* @__PURE__ */ jsx("span", { className: "truncate text-sm font-semibold text-foreground", children: title }),
39616
+ activeCount > 0 && /* @__PURE__ */ jsxs("span", { className: "shrink-0 rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary", children: [
39617
+ activeCount,
39618
+ " active"
39619
+ ] })
39620
+ ] }),
39621
+ /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: open ? "Hide" : "Show" }),
39622
+ /* @__PURE__ */ jsx(
39623
+ ChevronDown,
39624
+ {
39625
+ className: cn$1(
39626
+ "size-4 shrink-0 text-muted-foreground transition-transform duration-200",
39627
+ open && "rotate-180"
39628
+ )
39629
+ }
39630
+ )
39631
+ ]
39632
+ }
39633
+ ),
39634
+ /* @__PURE__ */ jsx(
39635
+ "div",
39636
+ {
39637
+ id: contentId,
39638
+ className: cn$1(
39639
+ "grid transition-[grid-template-rows] duration-200 ease-out",
39640
+ open ? "grid-rows-[1fr]" : "grid-rows-[0fr]"
39641
+ ),
39642
+ children: /* @__PURE__ */ jsx("div", { className: "min-h-0 overflow-hidden", inert: !open, children: /* @__PURE__ */ jsx("div", { className: "border-t border-border p-4", children: /* @__PURE__ */ jsx(
39643
+ FormBuilder,
39644
+ {
39645
+ form,
39646
+ sections: filters,
39647
+ defaultValues: values,
39648
+ onSubmit: (data) => {
39649
+ const next = data;
39650
+ setApplied(next);
39651
+ onChange == null ? void 0 : onChange(next);
39652
+ },
39653
+ onReset: () => {
39654
+ setApplied({});
39655
+ onChange == null ? void 0 : onChange({});
39656
+ },
39657
+ showActions: true,
39658
+ submitLabel: "Apply",
39659
+ resetLabel: "Clear",
39660
+ submitIcon: /* @__PURE__ */ jsx(Check, {}),
39661
+ resetIcon: /* @__PURE__ */ jsx(RotateCcw, {}),
39662
+ actionsSize: "sm",
39663
+ className: "space-y-4",
39664
+ formClassName: "space-y-4",
39665
+ actionsClassName: cn$1(
39666
+ "sm:justify-end",
39667
+ showActionsSeparator !== false && "pt-4"
39668
+ ),
39669
+ showActionsSeparator
39670
+ },
39671
+ valuesKey
39672
+ ) }) })
39673
+ }
39674
+ )
39675
+ ] });
39676
+ }
39405
39677
  function DataTablePagination({
39406
39678
  table,
39407
39679
  showPageInfo = true,
@@ -40834,6 +41106,15 @@ function DataTableViewOptions({
40834
41106
  ] })
40835
41107
  ] });
40836
41108
  }
41109
+ const THIN_SCROLLBAR = [
41110
+ "[&::-webkit-scrollbar]:size-1.5",
41111
+ "[&::-webkit-scrollbar-track]:bg-transparent",
41112
+ "[&::-webkit-scrollbar-corner]:bg-transparent",
41113
+ "[&::-webkit-scrollbar-thumb]:rounded-full",
41114
+ "[&::-webkit-scrollbar-thumb]:bg-muted-foreground/30",
41115
+ "[&::-webkit-scrollbar-thumb:hover]:bg-muted-foreground/50",
41116
+ "supports-[-moz-appearance:none]:[scrollbar-width:thin]"
41117
+ ].join(" ");
40837
41118
  function DataTable({
40838
41119
  columns,
40839
41120
  data,
@@ -40859,6 +41140,7 @@ function DataTable({
40859
41140
  onTable,
40860
41141
  className,
40861
41142
  emptyText = "No results.",
41143
+ maxVisibleRows = 10,
40862
41144
  formFilterForm,
40863
41145
  formFilters,
40864
41146
  formFilterValues,
@@ -40869,6 +41151,8 @@ function DataTable({
40869
41151
  showStandardActions,
40870
41152
  onRefresh,
40871
41153
  onRowClick,
41154
+ filterCollapsible = true,
41155
+ filterDefaultOpen = true,
40872
41156
  filterWrapper,
40873
41157
  filterTitle,
40874
41158
  filterShowActionsSeparator,
@@ -40989,6 +41273,31 @@ function DataTable({
40989
41273
  ),
40990
41274
  [effectivePaginationState.pageSize]
40991
41275
  );
41276
+ const scrollRef = React.useRef(null);
41277
+ const [scrollMaxHeight, setScrollMaxHeight] = React.useState();
41278
+ React.useLayoutEffect(() => {
41279
+ const container = scrollRef.current;
41280
+ const tableEl = container == null ? void 0 : container.querySelector("table");
41281
+ if (!container || !tableEl || maxVisibleRows <= 0) {
41282
+ setScrollMaxHeight(void 0);
41283
+ return;
41284
+ }
41285
+ const measure = () => {
41286
+ var _a3;
41287
+ const rows = (_a3 = tableEl.tBodies[0]) == null ? void 0 : _a3.rows;
41288
+ if (!rows || rows.length <= maxVisibleRows) {
41289
+ setScrollMaxHeight(void 0);
41290
+ return;
41291
+ }
41292
+ const height = rows[maxVisibleRows - 1].getBoundingClientRect().bottom - tableEl.getBoundingClientRect().top + (container.offsetHeight - container.clientHeight);
41293
+ setScrollMaxHeight(height > 0 ? Math.ceil(height) : void 0);
41294
+ };
41295
+ measure();
41296
+ const observer = new ResizeObserver(measure);
41297
+ observer.observe(tableEl);
41298
+ observer.observe(container);
41299
+ return () => observer.disconnect();
41300
+ }, [maxVisibleRows]);
40992
41301
  const handleRefresh = React.useCallback(async () => {
40993
41302
  if (!onRefresh) return;
40994
41303
  await onRefresh();
@@ -41056,7 +41365,18 @@ function DataTable({
41056
41365
  const effectiveFilterTitle = filterTitle ?? "Filters";
41057
41366
  return /* @__PURE__ */ jsxs("div", { className: cn$1("space-y-3", className), children: [
41058
41367
  CustomHeaderComponent ? CustomHeaderComponent() : /* @__PURE__ */ jsxs(Fragment, { children: [
41059
- (formFilters == null ? void 0 : formFilters.length) ? effectiveFilterWrapper === "accordion" ? /* @__PURE__ */ jsx("div", { className: "rounded-md border border-border", children: /* @__PURE__ */ jsx(
41368
+ (formFilters == null ? void 0 : formFilters.length) ? filterCollapsible ? /* @__PURE__ */ jsx(
41369
+ DataTableFilterPanel,
41370
+ {
41371
+ filters: formFilters,
41372
+ title: effectiveFilterTitle,
41373
+ form: formFilterForm,
41374
+ values: formFilterValues,
41375
+ onChange: onFormFilterChange,
41376
+ showActionsSeparator: filterShowActionsSeparator,
41377
+ defaultOpen: filterDefaultOpen
41378
+ }
41379
+ ) : effectiveFilterWrapper === "accordion" ? /* @__PURE__ */ jsx("div", { className: "rounded-md border border-border", children: /* @__PURE__ */ jsx(
41060
41380
  Accordion,
41061
41381
  {
41062
41382
  type: "single",
@@ -41147,34 +41467,45 @@ function DataTable({
41147
41467
  /* @__PURE__ */ jsx(LoaderCircle, { className: "h-3.5 w-3.5 animate-spin" }),
41148
41468
  " Loading..."
41149
41469
  ] }) }),
41150
- /* @__PURE__ */ jsxs(Table, { children: [
41151
- /* @__PURE__ */ jsx(TableHeader, { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx(TableRow, { children: headerGroup.headers.map((header) => /* @__PURE__ */ jsx(TableHead, { children: header.isPlaceholder ? null : flexRender(
41152
- header.column.columnDef.header,
41153
- header.getContext()
41154
- ) }, header.id)) }, headerGroup.id)) }),
41155
- /* @__PURE__ */ jsx(TableBody, { children: loading ? skeletonRowKeys.map((rowKey) => /* @__PURE__ */ jsx(TableRow, { children: table.getVisibleLeafColumns().map((col) => /* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-full" }) }, `skeleton-cell-${rowKey}-${col.id}`)) }, `skeleton-${rowKey}`)) : ((_a2 = table.getRowModel().rows) == null ? void 0 : _a2.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ jsx(
41156
- TableRow,
41157
- {
41158
- "data-state": row.getIsSelected() && "selected",
41159
- className: cn$1(
41160
- onRowClick && "cursor-pointer hover:bg-muted/50"
41161
- ),
41162
- onClick: onRowClick ? () => onRowClick(row.original) : void 0,
41163
- children: row.getVisibleCells().map((cell) => /* @__PURE__ */ jsx(TableCell, { children: flexRender(
41164
- cell.column.columnDef.cell,
41165
- cell.getContext()
41166
- ) }, cell.id))
41167
- },
41168
- row.id
41169
- )) : /* @__PURE__ */ jsx(TableRow, { children: /* @__PURE__ */ jsx(
41170
- TableCell,
41171
- {
41172
- colSpan: table.getVisibleLeafColumns().length,
41173
- className: "h-24 text-center",
41174
- children: emptyText
41175
- }
41176
- ) }) })
41177
- ] })
41470
+ /* @__PURE__ */ jsx(
41471
+ "div",
41472
+ {
41473
+ ref: scrollRef,
41474
+ className: cn$1(
41475
+ "overflow-auto *:data-[slot=table-container]:overflow-visible",
41476
+ THIN_SCROLLBAR
41477
+ ),
41478
+ style: { maxHeight: scrollMaxHeight },
41479
+ children: /* @__PURE__ */ jsxs(Table, { children: [
41480
+ /* @__PURE__ */ jsx(TableHeader, { className: "sticky top-0 z-1", children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx(TableRow, { children: headerGroup.headers.map((header) => /* @__PURE__ */ jsx(TableHead, { children: header.isPlaceholder ? null : flexRender(
41481
+ header.column.columnDef.header,
41482
+ header.getContext()
41483
+ ) }, header.id)) }, headerGroup.id)) }),
41484
+ /* @__PURE__ */ jsx(TableBody, { children: loading ? skeletonRowKeys.map((rowKey) => /* @__PURE__ */ jsx(TableRow, { children: table.getVisibleLeafColumns().map((col) => /* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-full" }) }, `skeleton-cell-${rowKey}-${col.id}`)) }, `skeleton-${rowKey}`)) : ((_a2 = table.getRowModel().rows) == null ? void 0 : _a2.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ jsx(
41485
+ TableRow,
41486
+ {
41487
+ "data-state": row.getIsSelected() && "selected",
41488
+ className: cn$1(
41489
+ onRowClick && "cursor-pointer hover:bg-muted/50"
41490
+ ),
41491
+ onClick: onRowClick ? () => onRowClick(row.original) : void 0,
41492
+ children: row.getVisibleCells().map((cell) => /* @__PURE__ */ jsx(TableCell, { children: flexRender(
41493
+ cell.column.columnDef.cell,
41494
+ cell.getContext()
41495
+ ) }, cell.id))
41496
+ },
41497
+ row.id
41498
+ )) : /* @__PURE__ */ jsx(TableRow, { children: /* @__PURE__ */ jsx(
41499
+ TableCell,
41500
+ {
41501
+ colSpan: table.getVisibleLeafColumns().length,
41502
+ className: "h-24 text-center",
41503
+ children: emptyText
41504
+ }
41505
+ ) }) })
41506
+ ] })
41507
+ }
41508
+ )
41178
41509
  ]
41179
41510
  }
41180
41511
  ),
@@ -49916,6 +50247,71 @@ function AdminMenuProvider({
49916
50247
  );
49917
50248
  return /* @__PURE__ */ jsx(AdminMenuContext.Provider, { value, children });
49918
50249
  }
50250
+ const SIDEBAR_STYLE = {
50251
+ "--sidebar-width": "16.5rem",
50252
+ "--sidebar-width-icon": "4.5rem"
50253
+ };
50254
+ const NAV_TOKENS = [
50255
+ "[--nav-accent:var(--sidebar-primary)]",
50256
+ "[--nav-accent-fg:var(--nav-accent)]",
50257
+ "[.dark_&]:[--nav-accent-fg:color-mix(in_srgb,var(--nav-accent)_60%,#ffffff)]",
50258
+ "[--nav-text:#18181B] [.dark_&]:[--nav-text:#FAFAFA]",
50259
+ "[--nav-text-2:#52525B] [.dark_&]:[--nav-text-2:#D4D4D8]",
50260
+ "[--nav-text-3:#6B7280] [.dark_&]:[--nav-text-3:#A1A1AA]",
50261
+ "[--nav-muted:#9CA3AF] [.dark_&]:[--nav-muted:#8A8A93]",
50262
+ "[--nav-hover:#F1F1F3] [.dark_&]:[--nav-hover:#26262B]"
50263
+ ].join(" ");
50264
+ const COLLAPSED_CENTER = "group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0";
50265
+ const COLLAPSED_HIDDEN = "group-data-[collapsible=icon]:hidden";
50266
+ const FOCUS_RING = "outline-hidden focus-visible:ring-2 focus-visible:ring-sidebar-ring";
50267
+ const ROW_BASE = `flex w-full items-center rounded-[7px] text-left transition-colors duration-100 ${FOCUS_RING} disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50`;
50268
+ const TOP_ROW = `${ROW_BASE} gap-[11px] px-3 py-2 text-[13.5px] ${COLLAPSED_CENTER} group-data-[collapsible=icon]:py-2.5`;
50269
+ const SUB_ROW = `${ROW_BASE} gap-2 px-3 py-2 text-[13px]`;
50270
+ const ROW_IDLE = "text-(color:--nav-text-2) hover:bg-(--nav-hover)";
50271
+ const ROW_ACTIVE = "bg-[color-mix(in_srgb,var(--nav-accent)_15%,transparent)] font-semibold text-(color:--nav-accent-fg) hover:bg-[color-mix(in_srgb,var(--nav-accent)_24%,transparent)]";
50272
+ function Chevron({ open }) {
50273
+ return /* @__PURE__ */ jsx(
50274
+ ChevronRight,
50275
+ {
50276
+ className: cn$1(
50277
+ "size-[15px] shrink-0 text-(color:--nav-muted) transition-transform duration-200",
50278
+ open && "rotate-90",
50279
+ COLLAPSED_HIDDEN
50280
+ )
50281
+ }
50282
+ );
50283
+ }
50284
+ function NavBadge({ value }) {
50285
+ if (value === void 0 || value === null || value === "") return null;
50286
+ return /* @__PURE__ */ jsx(
50287
+ "span",
50288
+ {
50289
+ className: cn$1(
50290
+ "ml-auto shrink-0 rounded-full bg-[color-mix(in_srgb,var(--nav-accent)_12%,transparent)] px-2 py-0.5 text-xs font-medium text-(color:--nav-accent-fg)",
50291
+ COLLAPSED_HIDDEN
50292
+ ),
50293
+ children: value
50294
+ }
50295
+ );
50296
+ }
50297
+ function RailTooltip({
50298
+ title,
50299
+ children
50300
+ }) {
50301
+ const { isMobile, state } = useSidebar();
50302
+ return /* @__PURE__ */ jsxs(Tooltip$1, { children: [
50303
+ /* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children }),
50304
+ /* @__PURE__ */ jsx(
50305
+ TooltipContent,
50306
+ {
50307
+ side: "right",
50308
+ align: "center",
50309
+ hidden: state !== "collapsed" || isMobile,
50310
+ children: title
50311
+ }
50312
+ )
50313
+ ] });
50314
+ }
49919
50315
  function AdminLayoutContent({
49920
50316
  children,
49921
50317
  defaultItemIcon,
@@ -49950,126 +50346,179 @@ function AdminLayoutContent({
49950
50346
  const hasChildren = Array.isArray(item.children) && item.children.length > 0;
49951
50347
  const isActive = isMenuItemActive(item.url);
49952
50348
  const isOpen = openMap[item.id] ?? (hasChildren && hasActiveDescendant(item));
49953
- const indent = "";
49954
- const activeText = isActive ? "text-sidebar-primary-foreground" : "text-sidebar-foreground group-hover:text-sidebar-accent-foreground";
49955
- const content = /* @__PURE__ */ jsxs(
49956
- SidebarMenuItem,
49957
- {
49958
- className: "mb-1",
49959
- children: [
49960
- /* @__PURE__ */ jsx(
49961
- SidebarMenuButton,
49962
- {
49963
- asChild: !!item.url && !hasChildren,
49964
- isActive,
49965
- tooltip: item.title,
49966
- onClick: () => {
49967
- if (hasChildren) setOpen(item.id);
49968
- },
49969
- disabled: item.disabled,
49970
- className: `group relative overflow-hidden rounded-lg transition-all duration-200 hover:bg-[#FAFAFA] data-[active=true]:bg-sidebar-primary data-[active=true]:text-sidebar-primary-foreground ${indent}`,
49971
- children: item.url && !hasChildren ? /* @__PURE__ */ jsxs(Link$1, { to: item.url, className: "flex items-center gap-3 px-3", children: [
49972
- item.icon && /* @__PURE__ */ jsx(
49973
- item.icon,
49974
- {
49975
- className: `h-4 w-4 transition-colors ${activeText}`
49976
- }
49977
- ),
49978
- /* @__PURE__ */ jsx(
49979
- "span",
49980
- {
49981
- className: `font-medium transition-colors ${activeText}`,
49982
- children: item.title
49983
- }
49984
- ),
49985
- item.badge && /* @__PURE__ */ jsx(
49986
- "span",
49987
- {
49988
- className: `ml-auto text-xs px-2 py-0.5 rounded-full ${isActive ? "bg-white/20 text-sidebar-primary-foreground" : "bg-sidebar-primary/10 text-sidebar-primary"}`,
49989
- children: item.badge
49990
- }
49991
- )
49992
- ] }) : /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 px-3 py-2.5 w-full", children: [
49993
- hasChildren && (isOpen ? /* @__PURE__ */ jsx(
49994
- ChevronDown,
49995
- {
49996
- className: `h-3.5 w-3.5 ${isActive ? "text-sidebar-primary-foreground" : "text-muted-foreground"}`
49997
- }
49998
- ) : /* @__PURE__ */ jsx(
49999
- ChevronRight,
50000
- {
50001
- className: `h-3.5 w-3.5 ${isActive ? "text-sidebar-primary-foreground" : "text-muted-foreground"}`
50002
- }
50003
- )),
50004
- item.icon ? /* @__PURE__ */ jsx(item.icon, { className: `h-4 w-4 ${activeText}` }) : /* @__PURE__ */ jsx(
50005
- FallbackIcon,
50006
- {
50007
- className: `h-3.5 w-3.5 ${isActive ? "text-sidebar-primary-foreground" : "text-muted-foreground"}`
50008
- }
50009
- ),
50010
- item.url ? /* @__PURE__ */ jsx(Link$1, { to: item.url, className: "flex-1 text-left", children: /* @__PURE__ */ jsx("span", { className: `font-medium ${activeText}`, children: item.title }) }) : /* @__PURE__ */ jsx("span", { className: `font-medium ${activeText} flex-1`, children: item.title }),
50011
- item.badge && /* @__PURE__ */ jsx(
50012
- "span",
50013
- {
50014
- className: `ml-auto text-xs px-2 py-0.5 rounded-full ${isActive ? "bg-white/20 text-sidebar-primary-foreground" : "bg-sidebar-primary/10 text-sidebar-primary"}`,
50015
- children: item.badge
50016
- }
50017
- )
50018
- ] })
50019
- }
50349
+ const isTop = level === 0;
50350
+ const Icon2 = item.icon ?? FallbackIcon;
50351
+ const icon = isTop ? /* @__PURE__ */ jsx("span", { className: "inline-flex size-[18px] shrink-0 items-center justify-center text-(color:--nav-text-3) group-aria-[current=page]/row:text-(color:--nav-accent-fg)", children: /* @__PURE__ */ jsx(Icon2, { className: "size-[18px]" }) }) : null;
50352
+ const label = /* @__PURE__ */ jsx("span", { className: cn$1("min-w-0 flex-1 truncate", COLLAPSED_HIDDEN), children: item.title });
50353
+ let row;
50354
+ if (hasChildren) {
50355
+ row = /* @__PURE__ */ jsxs(
50356
+ "button",
50357
+ {
50358
+ type: "button",
50359
+ "aria-expanded": isOpen,
50360
+ disabled: item.disabled,
50361
+ onClick: () => {
50362
+ var _a2;
50363
+ (_a2 = item.onClick) == null ? void 0 : _a2.call(item);
50364
+ setOpen(item.id, !isOpen);
50365
+ },
50366
+ className: cn$1(isTop ? TOP_ROW : SUB_ROW, ROW_IDLE),
50367
+ children: [
50368
+ icon,
50369
+ label,
50370
+ /* @__PURE__ */ jsx(NavBadge, { value: item.badge }),
50371
+ /* @__PURE__ */ jsx(Chevron, { open: isOpen })
50372
+ ]
50373
+ }
50374
+ );
50375
+ } else if (isTop && !item.icon && item.url) {
50376
+ row = /* @__PURE__ */ jsxs(
50377
+ Link$1,
50378
+ {
50379
+ to: item.url,
50380
+ onClick: item.onClick,
50381
+ "aria-current": isActive ? "page" : void 0,
50382
+ "aria-disabled": item.disabled || void 0,
50383
+ className: cn$1(
50384
+ "flex w-full items-center rounded-[7px] px-3 pt-2 pb-1 text-left text-[12.5px] font-semibold transition-colors aria-disabled:pointer-events-none aria-disabled:opacity-50",
50385
+ FOCUS_RING,
50386
+ "group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0 group-data-[collapsible=icon]:py-2.5 group-data-[collapsible=icon]:hover:bg-(--nav-hover)",
50387
+ isActive ? "text-(color:--nav-accent-fg)" : "text-(color:--nav-text-3) hover:text-(color:--nav-text-2)"
50020
50388
  ),
50021
- hasChildren && isOpen && // Submenu must be wrapped in a list element so the SidebarMenuItem
50022
- // (rendered as <li>) children don't end up as direct descendants of
50023
- // a <div> inside another <li> — that's invalid HTML and triggers a
50024
- // React hydration warning.
50025
- /* @__PURE__ */ jsx("ul", { className: "mt-1 ml-[18px] flex flex-col list-none border-l border-sidebar-border pl-2 py-0.5 m-0 group-data-[collapsible=icon]:hidden", children: (item.children ?? []).map(
50389
+ children: [
50390
+ /* @__PURE__ */ jsx("span", { className: "hidden size-[18px] shrink-0 items-center justify-center text-(color:--nav-text-3) group-data-[collapsible=icon]:inline-flex", children: /* @__PURE__ */ jsx(FallbackIcon, { className: "size-[18px]" }) }),
50391
+ label,
50392
+ /* @__PURE__ */ jsx(NavBadge, { value: item.badge })
50393
+ ]
50394
+ }
50395
+ );
50396
+ } else if (item.url) {
50397
+ row = /* @__PURE__ */ jsxs(
50398
+ Link$1,
50399
+ {
50400
+ to: item.url,
50401
+ onClick: item.onClick,
50402
+ "aria-current": isActive ? "page" : void 0,
50403
+ "aria-disabled": item.disabled || void 0,
50404
+ className: cn$1(
50405
+ "group/row",
50406
+ isTop ? TOP_ROW : SUB_ROW,
50407
+ isActive ? ROW_ACTIVE : ROW_IDLE
50408
+ ),
50409
+ children: [
50410
+ icon,
50411
+ label,
50412
+ /* @__PURE__ */ jsx(NavBadge, { value: item.badge })
50413
+ ]
50414
+ }
50415
+ );
50416
+ } else {
50417
+ row = /* @__PURE__ */ jsxs(
50418
+ "button",
50419
+ {
50420
+ type: "button",
50421
+ disabled: item.disabled,
50422
+ onClick: item.onClick,
50423
+ className: cn$1(isTop ? TOP_ROW : SUB_ROW, ROW_IDLE),
50424
+ children: [
50425
+ icon,
50426
+ label,
50427
+ /* @__PURE__ */ jsx(NavBadge, { value: item.badge })
50428
+ ]
50429
+ }
50430
+ );
50431
+ }
50432
+ return /* @__PURE__ */ jsxs(SidebarMenuItem, { children: [
50433
+ isTop ? /* @__PURE__ */ jsx(RailTooltip, { title: item.title, children: row }) : row,
50434
+ hasChildren && isOpen && // Submenu must be wrapped in a list element so the SidebarMenuItem
50435
+ // (rendered as <li>) children don't end up as direct descendants of
50436
+ // a <div> inside another <li> — that's invalid HTML and triggers a
50437
+ // React hydration warning.
50438
+ /* @__PURE__ */ jsx(
50439
+ "ul",
50440
+ {
50441
+ className: cn$1(
50442
+ "mt-px mb-[3px] ml-5 flex flex-col gap-px border-l border-sidebar-border pl-2.5",
50443
+ COLLAPSED_HIDDEN
50444
+ ),
50445
+ children: (item.children ?? []).map(
50026
50446
  (child) => renderItem(child, Math.min(level + 1, 3))
50027
- ) })
50028
- ]
50029
- },
50030
- item.id
50031
- );
50032
- return content;
50447
+ )
50448
+ }
50449
+ )
50450
+ ] }, item.id);
50033
50451
  };
50034
50452
  return /* @__PURE__ */ jsxs("div", { className: "flex min-h-dvh w-full", children: [
50035
- /* @__PURE__ */ jsxs(
50453
+ /* @__PURE__ */ jsx(
50036
50454
  Sidebar,
50037
50455
  {
50038
- className: "bg-sidebar border-r border-sidebar-border",
50456
+ className: "border-r border-sidebar-border",
50039
50457
  collapsible: sidebarCollapsible ? "icon" : "none",
50040
- children: [
50041
- /* @__PURE__ */ jsx(SidebarHeader, { className: "bg-sidebar border-b border-sidebar-border", children: sidebarHeader ? sidebarHeader : /* @__PURE__ */ jsx("div", { className: "sidebar-header-content flex items-center justify-center px-4 py-3 group-data-[collapsible=icon]:px-0", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 group-data-[collapsible=icon]:gap-0", children: [
50042
- /* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-[#1A9E8F] text-sidebar-primary-foreground", children: /* @__PURE__ */ jsx(SidebarHeaderIcon, { className: "h-4 w-4" }) }),
50043
- /* @__PURE__ */ jsx("span", { className: "font-bold text-[18px] text-[#0d9488] tracking-[-0.01em] group-data-[collapsible=icon]:hidden", children: sidebarTitle })
50044
- ] }) }) }),
50045
- /* @__PURE__ */ jsx(SidebarContent, { className: "bg-sidebar px-2 py-4", children: sidebarGroups.map((group, idx) => /* @__PURE__ */ jsxs(Fragment$1, { children: [
50046
- /* @__PURE__ */ jsxs(SidebarGroup, { children: [
50047
- /* @__PURE__ */ jsx(SidebarGroupLabel, { className: "text-[10.5px] font-semibold text-[#9CA3AF] uppercase tracking-[0.14em] px-3 pt-2 mb-1.5 group-data-[collapsible=icon]:hidden", children: group.label }),
50048
- /* @__PURE__ */ jsx(SidebarGroupContent, { children: /* @__PURE__ */ jsx(SidebarMenu, { className: "group-data-[collapsible=icon]:items-center", children: group.items.map((item) => renderItem(item, 0)) }) })
50049
- ] }),
50050
- idx < sidebarGroups.length - 1 && /* @__PURE__ */ jsx(
50051
- Separator$2,
50052
- {
50053
- orientation: "horizontal",
50054
- className: "bg-sidebar-border group-data-[collapsible=icon]:hidden"
50055
- }
50056
- )
50057
- ] }, group.id)) }),
50058
- onLogout && /* @__PURE__ */ jsx(SidebarFooter, { className: "bg-sidebar border-t border-sidebar-border px-2 py-3", children: /* @__PURE__ */ jsx(SidebarMenu, { children: /* @__PURE__ */ jsx(SidebarMenuItem, { className: "group-data-[collapsible=icon]:flex group-data-[collapsible=icon]:w-full group-data-[collapsible=icon]:justify-center", children: /* @__PURE__ */ jsx(
50059
- SidebarMenuButton,
50060
- {
50061
- tooltip: "Logout",
50062
- className: "cursor-pointer group relative overflow-hidden rounded-lg mx-1 transition-all duration-200 hover:bg-[#FAFAFA] hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:flex group-data-[collapsible=icon]:w-full group-data-[collapsible=icon]:items-center group-data-[collapsible=icon]:!justify-center group-data-[collapsible=icon]:!px-0 group-data-[collapsible=icon]:!gap-0",
50063
- onClick: () => {
50064
- void onLogout();
50065
- },
50066
- children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 px-3 py-2.5 group-data-[collapsible=icon]:w-full group-data-[collapsible=icon]:items-center group-data-[collapsible=icon]:!justify-center group-data-[collapsible=icon]:!gap-0 group-data-[collapsible=icon]:!px-0", children: [
50067
- /* @__PURE__ */ jsx(LogOut, { className: "h-4 w-4 text-sidebar-foreground group-hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:mx-auto group-data-[collapsible=icon]:mr-0" }),
50068
- /* @__PURE__ */ jsx("span", { className: "font-medium text-sidebar-foreground group-hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:hidden", children: "Logout" })
50069
- ] })
50070
- }
50071
- ) }) }) })
50072
- ]
50458
+ children: /* @__PURE__ */ jsxs(
50459
+ "div",
50460
+ {
50461
+ className: cn$1(
50462
+ "flex h-full min-h-0 w-full flex-col bg-sidebar",
50463
+ NAV_TOKENS
50464
+ ),
50465
+ children: [
50466
+ /* @__PURE__ */ jsx(SidebarHeader, { className: "gap-0 p-0", children: sidebarHeader ? sidebarHeader : /* @__PURE__ */ jsxs(
50467
+ "div",
50468
+ {
50469
+ className: cn$1(
50470
+ "sidebar-header-content flex items-center gap-[11px] px-5 pt-[18px] pb-3.5",
50471
+ COLLAPSED_CENTER
50472
+ ),
50473
+ children: [
50474
+ /* @__PURE__ */ jsx("div", { className: "flex size-[34px] shrink-0 items-center justify-center rounded-[9px] bg-(--nav-accent) text-white", children: /* @__PURE__ */ jsx(SidebarHeaderIcon, { className: "size-4" }) }),
50475
+ /* @__PURE__ */ jsx(
50476
+ "span",
50477
+ {
50478
+ className: cn$1(
50479
+ "truncate text-lg font-bold tracking-[-0.01em] text-(color:--nav-text)",
50480
+ COLLAPSED_HIDDEN
50481
+ ),
50482
+ children: sidebarTitle
50483
+ }
50484
+ )
50485
+ ]
50486
+ }
50487
+ ) }),
50488
+ /* @__PURE__ */ jsx(SidebarContent, { className: "gap-0.5 overflow-x-hidden px-3 pt-1 pb-5 group-data-[collapsible=icon]:overflow-auto", children: sidebarGroups.map((group) => /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5", children: [
50489
+ /* @__PURE__ */ jsx(
50490
+ "div",
50491
+ {
50492
+ className: cn$1(
50493
+ "px-3 pt-3.5 pb-1.5 text-[10.5px] font-bold uppercase tracking-[0.12em] text-(color:--nav-muted)",
50494
+ COLLAPSED_HIDDEN
50495
+ ),
50496
+ children: group.label
50497
+ }
50498
+ ),
50499
+ /* @__PURE__ */ jsx(SidebarMenu, { className: "gap-0.5", children: group.items.map((item) => renderItem(item, 0)) })
50500
+ ] }, group.id)) }),
50501
+ onLogout && /* @__PURE__ */ jsx(SidebarFooter, { className: "gap-0 border-t border-sidebar-border p-0", children: /* @__PURE__ */ jsx(RailTooltip, { title: "Logout", children: /* @__PURE__ */ jsxs(
50502
+ "button",
50503
+ {
50504
+ type: "button",
50505
+ onClick: () => {
50506
+ void onLogout();
50507
+ },
50508
+ className: cn$1(
50509
+ "flex w-full cursor-pointer items-center gap-[11px] px-5 py-3.5 text-left text-[13.5px] font-medium text-(color:--nav-text-2) transition-colors hover:bg-(--nav-hover)",
50510
+ FOCUS_RING,
50511
+ COLLAPSED_CENTER
50512
+ ),
50513
+ children: [
50514
+ /* @__PURE__ */ jsx(LogOut, { className: "size-[18px] shrink-0" }),
50515
+ /* @__PURE__ */ jsx("span", { className: COLLAPSED_HIDDEN, children: "Logout" })
50516
+ ]
50517
+ }
50518
+ ) }) })
50519
+ ]
50520
+ }
50521
+ )
50073
50522
  }
50074
50523
  ),
50075
50524
  /* @__PURE__ */ jsxs(SidebarInset, { children: [
@@ -50098,7 +50547,7 @@ function AdminLayout({
50098
50547
  headerAfterTheme,
50099
50548
  onLogout
50100
50549
  }) {
50101
- return /* @__PURE__ */ jsx(AdminMenuProvider, { children: /* @__PURE__ */ jsx(SidebarProvider, { children: /* @__PURE__ */ jsx(
50550
+ return /* @__PURE__ */ jsx(AdminMenuProvider, { children: /* @__PURE__ */ jsx(SidebarProvider, { style: SIDEBAR_STYLE, children: /* @__PURE__ */ jsx(
50102
50551
  AdminLayoutContent,
50103
50552
  {
50104
50553
  defaultItemIcon,