@stacksjs/defaults 0.75.529 → 0.75.537

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 (248) hide show
  1. package/ai/skills/stacks-actions/SKILL.md +1 -1
  2. package/ai/skills/stacks-build/SKILL.md +1 -1
  3. package/ai/skills/stacks-dashboard/SKILL.md +2 -2
  4. package/ai/skills/stacks-database/SKILL.md +1 -1
  5. package/ai/skills/stacks-migrations/SKILL.md +2 -2
  6. package/ai/skills/stacks-native/CATALOG.md +6 -6
  7. package/app/Actions/Dashboard/Commerce/CommerceCouponsAction.ts +27 -15
  8. package/app/Actions/Dashboard/Commerce/CommerceCouponsExportAction.ts +45 -0
  9. package/app/Actions/Dashboard/Commerce/CommerceCustomersAction.ts +22 -12
  10. package/app/Actions/Dashboard/Commerce/CommerceCustomersExportAction.ts +44 -0
  11. package/app/Actions/Dashboard/Commerce/CommercePosCheckoutAction.ts +9 -29
  12. package/app/Actions/Dashboard/Commerce/CommercePrintDevicesAction.ts +7 -9
  13. package/app/Actions/Dashboard/Commerce/CommerceProductDetailAction.ts +9 -8
  14. package/app/Actions/Dashboard/Commerce/CommerceTaxesAction.ts +7 -9
  15. package/app/Actions/Dashboard/Commerce/ManufacturerIndexAction.ts +8 -20
  16. package/app/Actions/Dashboard/Commerce/commerce-coupon-list.test.ts +203 -0
  17. package/app/Actions/Dashboard/Commerce/commerce-coupon-list.ts +248 -0
  18. package/app/Actions/Dashboard/Commerce/commerce-customer-list.test.ts +183 -0
  19. package/app/Actions/Dashboard/Commerce/commerce-customer-list.ts +186 -0
  20. package/app/Actions/Dashboard/Commerce/commerce-customer-records.test.ts +1 -34
  21. package/app/Actions/Dashboard/Commerce/commerce-customer-records.ts +0 -11
  22. package/app/Actions/Dashboard/Commerce/commerce-manufacturer-list.test.ts +118 -0
  23. package/app/Actions/Dashboard/Commerce/commerce-manufacturer-list.ts +41 -0
  24. package/app/Actions/Dashboard/Commerce/commerce-pos-catalog.test.ts +17 -5
  25. package/app/Actions/Dashboard/Commerce/commerce-pos-catalog.ts +17 -3
  26. package/app/Actions/Dashboard/Commerce/commerce-print-device-list.test.ts +99 -0
  27. package/app/Actions/Dashboard/Commerce/commerce-print-device-list.ts +18 -0
  28. package/app/Actions/Dashboard/Commerce/commerce-product-list.ts +5 -5
  29. package/app/Actions/Dashboard/Commerce/commerce-product-options.test.ts +81 -0
  30. package/app/Actions/Dashboard/Commerce/commerce-tax-rate-list.test.ts +99 -0
  31. package/app/Actions/Dashboard/Commerce/commerce-tax-rate-list.ts +18 -0
  32. package/app/Actions/Dashboard/Commerce/coupon-records.test.ts +1 -16
  33. package/app/Actions/Dashboard/Commerce/coupon-records.ts +6 -10
  34. package/app/Actions/Dashboard/Commerce/manufacturer-records.test.ts +5 -17
  35. package/app/Actions/Dashboard/Commerce/manufacturer-records.ts +0 -29
  36. package/app/Actions/Dashboard/Email/captured-mail.test.ts +16 -0
  37. package/app/Actions/Dashboard/Email/captured-mail.ts +9 -1
  38. package/app/Actions/Dashboard/Models/model-write.ts +36 -3
  39. package/app/Actions/Dashboard/Notifications/NotificationDeliveryHistoryAction.ts +13 -58
  40. package/app/Actions/Dashboard/Notifications/notification-delivery-history.ts +74 -0
  41. package/app/Actions/SitemapAction.ts +3 -1
  42. package/app/Models/Notification.ts +3 -1
  43. package/app/Models/NotificationDelivery.ts +4 -0
  44. package/app/Models/User.ts +10 -1
  45. package/bootstrap.ts +10 -2
  46. package/functions/commerce/tax-types.ts +21 -0
  47. package/functions/dashboard-list.test.ts +16 -0
  48. package/functions/dashboard-list.ts +14 -6
  49. package/functions/dashboard-model-record.test.ts +139 -0
  50. package/functions/dashboard-model-record.ts +353 -0
  51. package/functions/monitoring/errors.ts +22 -103
  52. package/functions/notifications/deliveries.ts +7 -38
  53. package/functions/queries.ts +7 -10
  54. package/ide/vscode/package.json +1 -1
  55. package/package.json +5 -5
  56. package/resources/components/Dashboard/Analytics/AnalyticsHub.stx +2 -2
  57. package/resources/components/Dashboard/Analytics/CampaignAnalytics.stx +22 -28
  58. package/resources/components/Dashboard/Analytics/EventAnalytics.stx +26 -34
  59. package/resources/components/Dashboard/Analytics/SalesAnalytics.stx +29 -37
  60. package/resources/components/Dashboard/Analytics/WebAnalyticsBreakdown.stx +12 -16
  61. package/resources/components/Dashboard/Analytics/WebAnalyticsDashboard.stx +43 -53
  62. package/resources/components/Dashboard/App/RequestsOverview.stx +2 -1
  63. package/resources/components/Dashboard/App/SourceInventory.stx +2 -1
  64. package/resources/components/Dashboard/Auth/AccessTokens.stx +3 -5
  65. package/resources/components/Dashboard/Billing/BillingPaymentMethodsPanel.stx +9 -11
  66. package/resources/components/Dashboard/Billing/BillingSettings.stx +1 -1
  67. package/resources/components/Dashboard/Buddy/BuddyAssistant.stx +4 -6
  68. package/resources/components/Dashboard/Commerce/CommerceCategoriesDashboard.stx +2 -2
  69. package/resources/components/Dashboard/Commerce/CommerceCategoriesTable.stx +3 -3
  70. package/resources/components/Dashboard/Commerce/CommerceCategoryDialog.stx +2 -2
  71. package/resources/components/Dashboard/Commerce/CommerceCategoryHierarchy.stx +3 -5
  72. package/resources/components/Dashboard/Commerce/CommerceCouponBreakdown.stx +17 -13
  73. package/resources/components/Dashboard/Commerce/CommerceCouponDialog.stx +1 -1
  74. package/resources/components/Dashboard/Commerce/CommerceCouponsDashboard.stx +57 -85
  75. package/resources/components/Dashboard/Commerce/CommerceCouponsTable.stx +32 -9
  76. package/resources/components/Dashboard/Commerce/CommerceCustomerDialog.stx +1 -1
  77. package/resources/components/Dashboard/Commerce/CommerceCustomersDashboard.stx +49 -83
  78. package/resources/components/Dashboard/Commerce/CommerceCustomersTable.stx +32 -9
  79. package/resources/components/Dashboard/Commerce/CommerceGiftCardBreakdown.stx +9 -15
  80. package/resources/components/Dashboard/Commerce/CommerceGiftCardDialog.stx +1 -1
  81. package/resources/components/Dashboard/Commerce/CommerceGiftCardsDashboard.stx +35 -119
  82. package/resources/components/Dashboard/Commerce/CommerceGiftCardsTable.stx +3 -3
  83. package/resources/components/Dashboard/Commerce/CommerceManufacturerDialog.stx +1 -1
  84. package/resources/components/Dashboard/Commerce/CommerceManufacturersDashboard.stx +3 -5
  85. package/resources/components/Dashboard/Commerce/CommerceManufacturersTable.stx +2 -2
  86. package/resources/components/Dashboard/Commerce/CommerceOrderDialog.stx +4 -4
  87. package/resources/components/Dashboard/Commerce/CommerceOrdersDashboard.stx +42 -129
  88. package/resources/components/Dashboard/Commerce/CommerceOrdersTable.stx +3 -3
  89. package/resources/components/Dashboard/Commerce/CommerceOverviewDashboard.stx +1 -1
  90. package/resources/components/Dashboard/Commerce/CommerceOverviewOrdersTable.stx +9 -11
  91. package/resources/components/Dashboard/Commerce/CommerceOverviewProductsTable.stx +5 -7
  92. package/resources/components/Dashboard/Commerce/CommerceOverviewStats.stx +14 -16
  93. package/resources/components/Dashboard/Commerce/CommercePaymentsBreakdown.stx +12 -18
  94. package/resources/components/Dashboard/Commerce/CommercePaymentsDashboard.stx +41 -120
  95. package/resources/components/Dashboard/Commerce/CommercePaymentsTable.stx +1 -1
  96. package/resources/components/Dashboard/Commerce/CommercePosCart.stx +13 -15
  97. package/resources/components/Dashboard/Commerce/CommercePosCatalog.stx +17 -19
  98. package/resources/components/Dashboard/Commerce/CommercePosCheckoutDialog.stx +2 -2
  99. package/resources/components/Dashboard/Commerce/CommercePosDashboard.stx +1 -1
  100. package/resources/components/Dashboard/Commerce/CommercePosReceiptDialog.stx +1 -1
  101. package/resources/components/Dashboard/Commerce/CommerceProductDetailDashboard.stx +5 -5
  102. package/resources/components/Dashboard/Commerce/CommerceProductDialog.stx +3 -3
  103. package/resources/components/Dashboard/Commerce/CommerceProductsDashboard.stx +41 -122
  104. package/resources/components/Dashboard/Commerce/CommerceProductsTable.stx +3 -3
  105. package/resources/components/Dashboard/Commerce/CommerceReviewEditDialog.stx +1 -1
  106. package/resources/components/Dashboard/Commerce/CommerceReviewsDashboard.stx +38 -122
  107. package/resources/components/Dashboard/Commerce/CommerceReviewsTable.stx +2 -2
  108. package/resources/components/Dashboard/Commerce/CommerceTaxDialog.stx +3 -3
  109. package/resources/components/Dashboard/Commerce/CommerceTaxesDashboard.stx +5 -4
  110. package/resources/components/Dashboard/Commerce/CommerceTaxesTable.stx +4 -3
  111. package/resources/components/Dashboard/Commerce/CommerceUnitDialog.stx +3 -7
  112. package/resources/components/Dashboard/Commerce/CommerceUnitsDashboard.stx +3 -5
  113. package/resources/components/Dashboard/Commerce/CommerceUnitsTable.stx +2 -2
  114. package/resources/components/Dashboard/Commerce/CommerceVariantDialog.stx +3 -3
  115. package/resources/components/Dashboard/Commerce/CommerceVariantsDashboard.stx +4 -4
  116. package/resources/components/Dashboard/Commerce/CommerceVariantsTable.stx +3 -5
  117. package/resources/components/Dashboard/Commerce/Delivery/CourierDialog.stx +1 -1
  118. package/resources/components/Dashboard/Commerce/Delivery/CouriersDashboard.stx +1 -1
  119. package/resources/components/Dashboard/Commerce/Delivery/CouriersTable.stx +2 -2
  120. package/resources/components/Dashboard/Commerce/Delivery/DeliveryOverviewDashboard.stx +44 -52
  121. package/resources/components/Dashboard/Commerce/Delivery/DeliveryPagination.stx +2 -2
  122. package/resources/components/Dashboard/Commerce/Delivery/DeliveryRouteDialog.stx +1 -1
  123. package/resources/components/Dashboard/Commerce/Delivery/DeliveryRoutesDashboard.stx +1 -1
  124. package/resources/components/Dashboard/Commerce/Delivery/DeliveryRoutesTable.stx +2 -2
  125. package/resources/components/Dashboard/Commerce/Delivery/DigitalDeliveriesDashboard.stx +1 -1
  126. package/resources/components/Dashboard/Commerce/Delivery/DigitalDeliveryTable.stx +2 -2
  127. package/resources/components/Dashboard/Commerce/Delivery/LicenseKeyDialog.stx +3 -3
  128. package/resources/components/Dashboard/Commerce/Delivery/LicenseKeysDashboard.stx +1 -1
  129. package/resources/components/Dashboard/Commerce/Delivery/LicenseKeysTable.stx +2 -2
  130. package/resources/components/Dashboard/Commerce/Delivery/ShippingMethodsDashboard.stx +1 -1
  131. package/resources/components/Dashboard/Commerce/Delivery/ShippingMethodsTable.stx +2 -2
  132. package/resources/components/Dashboard/Commerce/Delivery/ShippingRateDialog.stx +2 -2
  133. package/resources/components/Dashboard/Commerce/Delivery/ShippingRatesDashboard.stx +1 -1
  134. package/resources/components/Dashboard/Commerce/Delivery/ShippingRatesTable.stx +2 -2
  135. package/resources/components/Dashboard/Commerce/Delivery/ShippingZoneDialog.stx +1 -1
  136. package/resources/components/Dashboard/Commerce/Delivery/ShippingZonesDashboard.stx +1 -1
  137. package/resources/components/Dashboard/Commerce/Delivery/ShippingZonesTable.stx +4 -8
  138. package/resources/components/Dashboard/Commerce/PaymentDetailsDialog.stx +1 -3
  139. package/resources/components/Dashboard/Commerce/PrintDeviceBreakdown.stx +9 -15
  140. package/resources/components/Dashboard/Commerce/PrintDeviceDialog.stx +1 -1
  141. package/resources/components/Dashboard/Commerce/PrintDevicesDashboard.stx +3 -3
  142. package/resources/components/Dashboard/Commerce/PrintDevicesTable.stx +3 -3
  143. package/resources/components/Dashboard/Commerce/PrintLogBreakdown.stx +3 -9
  144. package/resources/components/Dashboard/Commerce/PrintLogDetailsDialog.stx +1 -1
  145. package/resources/components/Dashboard/Commerce/PrintLogsDashboard.stx +4 -4
  146. package/resources/components/Dashboard/Commerce/PrintLogsTable.stx +8 -10
  147. package/resources/components/Dashboard/Commerce/ProductWaitlistDashboard.stx +37 -109
  148. package/resources/components/Dashboard/Commerce/ProductWaitlistEntryDialog.stx +3 -3
  149. package/resources/components/Dashboard/Commerce/ProductWaitlistTable.stx +2 -2
  150. package/resources/components/Dashboard/Commerce/RestaurantWaitlistDashboard.stx +38 -112
  151. package/resources/components/Dashboard/Commerce/RestaurantWaitlistEntryDialog.stx +2 -2
  152. package/resources/components/Dashboard/Commerce/RestaurantWaitlistTable.stx +2 -2
  153. package/resources/components/Dashboard/Content/AuthorsDashboard.stx +4 -4
  154. package/resources/components/Dashboard/Content/BlogDashboard.stx +4 -4
  155. package/resources/components/Dashboard/Content/CommentsDashboard.stx +36 -83
  156. package/resources/components/Dashboard/Content/ContentDashboard.stx +12 -14
  157. package/resources/components/Dashboard/Content/ContentTaxonomyDashboard.stx +2 -2
  158. package/resources/components/Dashboard/Content/FileManagerDashboard.stx +8 -12
  159. package/resources/components/Dashboard/Content/FileStoragePanel.stx +6 -10
  160. package/resources/components/Dashboard/Content/FileUploadDialog.stx +1 -3
  161. package/resources/components/Dashboard/Content/PagesDashboard.stx +39 -78
  162. package/resources/components/Dashboard/Content/PostEditorDialog.stx +4 -8
  163. package/resources/components/Dashboard/Content/PostsDashboard.stx +44 -85
  164. package/resources/components/Dashboard/Content/SeoDashboard.stx +5 -4
  165. package/resources/components/Dashboard/Data/DataRecords.stx +140 -12
  166. package/resources/components/Dashboard/Deployments/DeploymentList.stx +4 -4
  167. package/resources/components/Dashboard/Deployments/DeploymentTable.stx +3 -1
  168. package/resources/components/Dashboard/Elements/DropdownNavigation.stx +5 -7
  169. package/resources/components/Dashboard/Email/CapturedMailDashboard.stx +1 -3
  170. package/resources/components/Dashboard/Email/CapturedMailList.stx +18 -20
  171. package/resources/components/Dashboard/Email/EmailActivityDashboard.stx +24 -28
  172. package/resources/components/Dashboard/Email/EmailSettingsList.stx +6 -8
  173. package/resources/components/Dashboard/Email/EmailSettingsNavigation.stx +10 -12
  174. package/resources/components/Dashboard/Email/EmailSidebar.stx +33 -37
  175. package/resources/components/Dashboard/Email/InboxMessageDetail.stx +1 -1
  176. package/resources/components/Dashboard/Email/InboxMessageList.stx +16 -18
  177. package/resources/components/Dashboard/Email/InboxSettingsDashboard.stx +1 -1
  178. package/resources/components/Dashboard/Environment/EnvironmentDashboard.stx +2 -2
  179. package/resources/components/Dashboard/GlobalSearch.stx +19 -21
  180. package/resources/components/Dashboard/Home/DashboardHome.stx +8 -1
  181. package/resources/components/Dashboard/Infrastructure/CloudDashboard.stx +1 -1
  182. package/resources/components/Dashboard/Infrastructure/DnsDashboard.stx +27 -13
  183. package/resources/components/Dashboard/Infrastructure/LogsDashboard.stx +1 -1
  184. package/resources/components/Dashboard/Infrastructure/MailboxesDashboard.stx +46 -8
  185. package/resources/components/Dashboard/Infrastructure/ServerlessDashboard.stx +1 -1
  186. package/resources/components/Dashboard/Infrastructure/ServersDashboard.stx +1 -1
  187. package/resources/components/Dashboard/Jobs/JobDetail.stx +1 -1
  188. package/resources/components/Dashboard/Jobs/JobHistory.stx +44 -57
  189. package/resources/components/Dashboard/Jobs/JobTable.stx +23 -25
  190. package/resources/components/Dashboard/Kanban/KanbanCardDialog.stx +1 -1
  191. package/resources/components/Dashboard/Library/ComponentsDashboard.stx +1 -1
  192. package/resources/components/Dashboard/Management/AssignmentDrawer.stx +5 -7
  193. package/resources/components/Dashboard/Management/PermissionsDashboard.stx +35 -43
  194. package/resources/components/Dashboard/Marketing/AbandonedCartsDashboard.stx +11 -13
  195. package/resources/components/Dashboard/Marketing/CampaignDialog.stx +1 -3
  196. package/resources/components/Dashboard/Marketing/CampaignsDashboard.stx +2 -2
  197. package/resources/components/Dashboard/Marketing/CampaignsTable.stx +2 -2
  198. package/resources/components/Dashboard/Marketing/MarketingListsDashboard.stx +1 -1
  199. package/resources/components/Dashboard/Marketing/MarketingListsTable.stx +2 -2
  200. package/resources/components/Dashboard/Marketing/SocialPostDialog.stx +1 -3
  201. package/resources/components/Dashboard/Marketing/SocialPostsDashboard.stx +2 -2
  202. package/resources/components/Dashboard/Marketing/SocialPostsTable.stx +2 -2
  203. package/resources/components/Dashboard/Models/ModelRecordActions.stx +11 -2
  204. package/resources/components/Dashboard/Models/ModelRecordCreate.stx +193 -0
  205. package/resources/components/Dashboard/Models/ModelRecordDetail.stx +144 -0
  206. package/resources/components/Dashboard/Models/ModelRecordEdit.stx +176 -0
  207. package/resources/components/Dashboard/Models/ModelRecordsDashboard.stx +52 -186
  208. package/resources/components/Dashboard/Models/ModelsOverview.stx +2 -4
  209. package/resources/components/Dashboard/Monitoring/ErrorDashboard.stx +47 -81
  210. package/resources/components/Dashboard/Monitoring/ErrorTable.stx +4 -2
  211. package/resources/components/Dashboard/NotFoundDashboard.stx +4 -4
  212. package/resources/components/Dashboard/Notifications/NotificationDeliveryHistory.stx +43 -77
  213. package/resources/components/Dashboard/Notifications/NotificationDeliveryOverview.stx +15 -17
  214. package/resources/components/Dashboard/Notifications/NotificationDeliveryTable.stx +1 -1
  215. package/resources/components/Dashboard/Operations/AuditDashboard.stx +1 -1
  216. package/resources/components/Dashboard/Operations/ChangeDashboard.stx +1 -1
  217. package/resources/components/Dashboard/Operations/IncidentDashboard.stx +1 -1
  218. package/resources/components/Dashboard/Operations/MigrationDashboard.stx +2 -2
  219. package/resources/components/Dashboard/Operations/RecoveryDashboard.stx +1 -1
  220. package/resources/components/Dashboard/Operations/SchedulerDashboard.stx +1 -1
  221. package/resources/components/Dashboard/Queries/QueryDashboard.stx +60 -86
  222. package/resources/components/Dashboard/Queries/QueryDetail.stx +5 -9
  223. package/resources/components/Dashboard/Realtime/RealtimeDashboard.stx +6 -8
  224. package/resources/components/Dashboard/Remote/RemoteConsole.stx +14 -20
  225. package/resources/components/Dashboard/Settings/AppearanceSettingsDashboard.stx +48 -54
  226. package/resources/components/Dashboard/Settings/MailSettingsDashboard.stx +8 -8
  227. package/resources/components/Dashboard/Settings/SettingsDashboard.stx +43 -47
  228. package/resources/components/Dashboard/Teams/TeamInvitationDashboard.stx +2 -2
  229. package/resources/components/Dashboard/UI/ActivityTable.stx +2 -1
  230. package/resources/components/Dashboard/UI/Button.stx +15 -0
  231. package/resources/components/Dashboard/UI/MetricCards.stx +5 -7
  232. package/resources/components/Dashboard/UI/Pagination.stx +3 -5
  233. package/resources/components/Dashboard/UI/QuickLinks.stx +2 -2
  234. package/resources/components/Dashboard/UI/Select.stx +1 -0
  235. package/resources/components/Dashboard/UI/Table.stx +139 -96
  236. package/resources/components/Dashboard/UI/Tabs.stx +18 -20
  237. package/routes/dashboard-api.ts +2 -0
  238. package/routes/dashboard.ts +246 -253
  239. package/routes/storefront.ts +31 -0
  240. package/stx-components-plugin.ts +12 -1
  241. package/views/dashboard/content/categories/index.stx +1 -1
  242. package/views/dashboard/content/tags/index.stx +1 -1
  243. package/views/dashboard/layouts/default.stx +27 -12
  244. package/views/dashboard/models/[model]/[id]/edit.stx +8 -0
  245. package/views/dashboard/models/[model]/[id].stx +8 -0
  246. package/views/dashboard/models/[model]/create.stx +8 -0
  247. package/resources/components/Dashboard/CreateRecordModal.stx +0 -138
  248. package/resources/components/Dashboard/Models/EditRecordModal.stx +0 -81
@@ -191,7 +191,7 @@ onMount(() => {
191
191
  })
192
192
  </script>
193
193
 
194
- <div class="space-y-6">
194
+ <div class="flex flex-col gap-6">
195
195
  <PageHeader title="Units" description="Manage native ProductUnit records and their product relationships.">
196
196
  <div class="flex gap-2">
197
197
  <Button variant="secondary" :loading="loading()" @click="loadUnits">
@@ -213,7 +213,7 @@ onMount(() => {
213
213
 
214
214
  <MetricCards label="Product unit metrics" columns="grid-cols-2 lg:grid-cols-4" :items="metricCards()" />
215
215
 
216
- <section class="space-y-3">
216
+ <section class="flex flex-col gap-3">
217
217
  <div class="grid gap-3 grid-cols-1 sm:grid-cols-2 xl:grid-cols-4">
218
218
  <label class="relative sm:col-span-2">
219
219
  <span class="sr-only">Search product units</span>
@@ -226,9 +226,7 @@ onMount(() => {
226
226
  <span class="sr-only">Unit type</span>
227
227
  <select x-model="typeFilter" class="px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-800 border border-gray-300 rounded-md dark:border-neutral-700">
228
228
  <option value="all">All unit types</option>
229
- <template :for="type in unitTypes()" :key="type">
230
- <option :value="type">{{ type }}</option>
231
- </template>
229
+ <option :for="type in unitTypes()" :key="type" :value="type">{{ type }}</option>
232
230
  </select>
233
231
  </label>
234
232
  <label>
@@ -44,8 +44,8 @@ const COLUMNS = [
44
44
  ]
45
45
 
46
46
  const ROW_ACTIONS = [
47
- { action: 'edit', label: 'Edit', icon: 'i-hugeicons-edit-01' },
48
- { action: 'delete', label: 'Delete', icon: 'i-hugeicons-delete-02', class: 'text-red-500' },
47
+ { action: 'edit', label: 'Edit' },
48
+ { action: 'delete', label: 'Delete' },
49
49
  ]
50
50
 
51
51
  /** `defaultFlag` carries the badge value, since a badge column maps a row field. */
@@ -117,14 +117,14 @@ function errorMessages(): string[] {
117
117
  >
118
118
  <form id="product-variant-form" @submit.prevent="submit">
119
119
  <ul :if="errorMessages().length > 0" class="mb-5 p-3 space-y-1 text-red-700 text-sm dark:text-red-300 bg-red-50 dark:bg-red-950/30 border border-red-200 rounded-lg dark:border-red-900">
120
- <template :for="message in errorMessages()" :key="message"><li>{{ message }}</li></template>
120
+ <li :for="message in errorMessages()" :key="message">{{ message }}</li>
121
121
  </ul>
122
122
  <div class="space-y-4">
123
123
  <div class="grid gap-4 sm:grid-cols-2">
124
124
  <label class="block"><span class="font-medium text-gray-700 text-sm dark:text-neutral-200">Variant</span><input x-model="variant" type="text" maxlength="100" required class="mt-1 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700" /></label>
125
- <label class="block"><span class="font-medium text-gray-700 text-sm dark:text-neutral-200">Type</span><input x-model="type" type="text" list="product-variant-types" maxlength="50" required class="mt-1 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700" /><datalist id="product-variant-types"><template :for="variantType in types()" :key="variantType"><option :value="variantType"></option></template></datalist></label>
125
+ <label class="block"><span class="font-medium text-gray-700 text-sm dark:text-neutral-200">Type</span><input x-model="type" type="text" list="product-variant-types" maxlength="50" required class="mt-1 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700" /><datalist id="product-variant-types"><option :for="variantType in types()" :key="variantType" :value="variantType"></option></datalist></label>
126
126
  </div>
127
- <div><label class="block"><span class="font-medium text-gray-700 text-sm dark:text-neutral-200">Product</span><input x-model="productQuery" @input="searchProductsSoon()" type="search" name="product_search" aria-label="Search products by name or id" placeholder="Search by name or id" class="mt-1 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700" /></label><select x-model="productId" aria-label="Product" class="mt-2 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700"><option value="">Unassigned</option><template :for="product in products()" :key="product.id"><option :value="product.id" :selected="product.id === productId()">{{ product.label }}</option></template></select><p :if="moreProductsLabel()" class="mt-1 text-gray-500 text-xs dark:text-neutral-400" :text="moreProductsLabel()"></p></div>
127
+ <div><label class="block"><span class="font-medium text-gray-700 text-sm dark:text-neutral-200">Product</span><input x-model="productQuery" @input="searchProductsSoon()" type="search" name="product_search" aria-label="Search products by name or id" placeholder="Search by name or id" class="mt-1 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700" /></label><select x-model="productId" aria-label="Product" class="mt-2 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700"><option value="">Unassigned</option><option :for="product in products()" :key="product.id" :value="product.id" :selected="product.id === productId()">{{ product.label }}</option></select><p :if="moreProductsLabel()" class="mt-1 text-gray-500 text-xs dark:text-neutral-400" :text="moreProductsLabel()"></p></div>
128
128
  <label class="block"><span class="font-medium text-gray-700 text-sm dark:text-neutral-200">Description</span><textarea x-model="description" rows="3" class="mt-1 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700"></textarea></label>
129
129
  <label class="block"><span class="font-medium text-gray-700 text-sm dark:text-neutral-200">Options</span><textarea x-model="options" rows="3" placeholder="Small, Medium, Large" class="mt-1 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700"></textarea><span class="block mt-1 text-gray-500 text-xs dark:text-neutral-400">Separate options with commas or new lines.</span></label>
130
130
  <label class="block"><span class="font-medium text-gray-700 text-sm dark:text-neutral-200">Status</span><select x-model="status" class="mt-1 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700"><option value="active">Active</option><option value="inactive">Inactive</option><option value="draft">Draft</option></select></label>
@@ -195,7 +195,7 @@ onMount(() => {
195
195
  })
196
196
  </script>
197
197
 
198
- <div class="space-y-6">
198
+ <div class="flex flex-col gap-6">
199
199
  <PageHeader title="Product variants" description="Manage native ProductVariant records, option sets, and product relationships.">
200
200
  <div class="flex gap-2">
201
201
  <Button variant="secondary" :loading="loading()" @click="loadVariants"><span :if="!loading()" class="h-4 w-4 i-hugeicons-refresh"></span>Refresh</Button>
@@ -207,7 +207,7 @@ onMount(() => {
207
207
 
208
208
  <MetricCards label="Product variant metrics" columns="grid-cols-2 lg:grid-cols-4" :items="metricCards()" />
209
209
 
210
- <section class="space-y-3">
210
+ <section class="flex flex-col gap-3">
211
211
  <div class="grid gap-3 grid-cols-1 sm:grid-cols-2 xl:grid-cols-5">
212
212
  <label class="relative sm:col-span-2">
213
213
  <span class="sr-only">Search product variants</span>
@@ -215,8 +215,8 @@ onMount(() => {
215
215
  <input x-model="search" type="search" placeholder="Search product variants" class="pl-9 pr-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-800 border border-gray-300 rounded-md dark:border-neutral-700" />
216
216
  </label>
217
217
  <label><span class="sr-only">Variant status</span><select x-model="statusFilter" class="px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-800 border border-gray-300 rounded-md dark:border-neutral-700"><option value="all">All statuses</option><option value="active">Active</option><option value="inactive">Inactive</option><option value="draft">Draft</option></select></label>
218
- <label><span class="sr-only">Variant type</span><select x-model="typeFilter" class="px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-800 border border-gray-300 rounded-md dark:border-neutral-700"><option value="all">All types</option><template :for="type in variantTypes()" :key="type"><option :value="type">{{ type }}</option></template></select></label>
219
- <label><span class="sr-only">Variant product</span><select x-model="productFilter" class="px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-800 border border-gray-300 rounded-md dark:border-neutral-700"><option value="all">All products</option><template :for="product in products()" :key="product.id"><option :value="product.id">{{ product.name }}</option></template></select></label>
218
+ <label><span class="sr-only">Variant type</span><select x-model="typeFilter" class="px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-800 border border-gray-300 rounded-md dark:border-neutral-700"><option value="all">All types</option><option :for="type in variantTypes()" :key="type" :value="type">{{ type }}</option></select></label>
219
+ <label><span class="sr-only">Variant product</span><select x-model="productFilter" class="px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-800 border border-gray-300 rounded-md dark:border-neutral-700"><option value="all">All products</option><option :for="product in products()" :key="product.id" :value="product.id">{{ product.name }}</option></select></label>
220
220
  </div>
221
221
 
222
222
  <div class="flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between">
@@ -39,8 +39,8 @@ const COLUMNS = [
39
39
  ]
40
40
 
41
41
  const ROW_ACTIONS = [
42
- { action: 'edit', label: 'Edit', icon: 'i-hugeicons-edit-01' },
43
- { action: 'delete', label: 'Delete', icon: 'i-hugeicons-delete-02', class: 'text-red-500' },
42
+ { action: 'edit', label: 'Edit' },
43
+ { action: 'delete', label: 'Delete' },
44
44
  ]
45
45
 
46
46
  const rows = derived(() => records().map(record => ({
@@ -96,9 +96,7 @@ function changeSort(sort: { key: string, direction: string }): void {
96
96
  </template>
97
97
  <template :else>
98
98
  <div class="flex flex-wrap gap-1">
99
- <template :for="option in row.shownOptions" :key="option">
100
- <span class="px-2 py-0.5 text-blue-700 text-xs dark:text-blue-300 bg-blue-50 dark:bg-blue-950/40 rounded-full" x-text="option"></span>
101
- </template>
99
+ <span :for="option in row.shownOptions" :key="option" class="px-2 py-0.5 text-blue-700 text-xs dark:text-blue-300 bg-blue-50 dark:bg-blue-950/40 rounded-full" x-text="option"></span>
102
100
  <span :if="row.moreOptions" class="px-2 py-0.5 text-gray-600 text-xs dark:text-neutral-300 bg-gray-100 dark:bg-neutral-700 rounded-full" x-text="row.moreOptions"></span>
103
101
  <span :if="row.shownOptions.length === 0" class="text-gray-500 text-xs dark:text-gray-400">No options</span>
104
102
  </div>
@@ -106,7 +106,7 @@ function submit(): void {
106
106
  <span class="font-medium text-gray-700 text-sm dark:text-neutral-200">Linked user</span>
107
107
  <select x-model="userId" class="mt-1 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700">
108
108
  <option value="">No linked user</option>
109
- <template :for="user in users()" :key="user.id"><option :value="user.id">{{ user.name }}{{ user.email ? ' - ' + user.email : '' }}</option></template>
109
+ <option :for="user in users()" :key="user.id" :value="user.id">{{ user.name }}{{ user.email ? ' - ' + user.email : '' }}</option>
110
110
  </select>
111
111
  </label>
112
112
  </div>
@@ -178,7 +178,7 @@ onMount(() => {
178
178
  })
179
179
  </script>
180
180
 
181
- <div class="space-y-6">
181
+ <div class="flex flex-col gap-6">
182
182
  <TabNavigation model-value="couriers" />
183
183
 
184
184
  <PageHeader title="Delivery couriers" description="Manage courier availability, vehicles, licenses, and optional user accounts.">
@@ -41,8 +41,8 @@ const COLUMNS = [
41
41
  ]
42
42
 
43
43
  const ROW_ACTIONS = [
44
- { action: 'edit', label: 'Edit', icon: 'i-hugeicons-edit-01' },
45
- { action: 'delete', label: 'Delete', icon: 'i-hugeicons-waste', class: 'text-red-500' },
44
+ { action: 'edit', label: 'Edit' },
45
+ { action: 'delete', label: 'Delete' },
46
46
  ]
47
47
 
48
48
  const rows = derived(() => couriers().map(courier => ({
@@ -139,7 +139,7 @@ onMount(() => {
139
139
  })
140
140
  </script>
141
141
 
142
- <div class="space-y-6">
142
+ <div class="flex flex-col gap-6">
143
143
  <TabNavigation model-value="overview" />
144
144
 
145
145
  <PageHeader title="Delivery" description="Monitor active routes, courier availability, shipping methods, and coverage.">
@@ -175,16 +175,14 @@ onMount(() => {
175
175
 
176
176
  <div :if="!loading() && !loadError()" class="space-y-6">
177
177
  <section aria-label="Delivery metrics" class="grid gap-3 grid-cols-1 sm:grid-cols-2 xl:grid-cols-4">
178
- <template :for="item in stats()" :key="item.label">
179
- <article class="p-4 bg-white dark:bg-neutral-800 border border-gray-200 rounded-lg dark:border-neutral-700">
180
- <div class="flex items-start justify-between">
181
- <p class="text-gray-500 text-xs dark:text-neutral-400">{{ item.label }}</p>
182
- <span :class="'h-5 w-5 text-blue-600 dark:text-blue-400 ' + statIcon(item.label)"></span>
183
- </div>
184
- <p class="mt-2 font-semibold tabular-nums text-2xl text-gray-900 dark:text-white">{{ item.value }}</p>
185
- <p class="mt-1 text-gray-500 text-xs dark:text-neutral-500">{{ item.detail }}</p>
186
- </article>
187
- </template>
178
+ <article :for="item in stats()" :key="item.label" class="p-4 bg-white dark:bg-neutral-800 border border-gray-200 rounded-lg dark:border-neutral-700">
179
+ <div class="flex items-start justify-between">
180
+ <p class="text-gray-500 text-xs dark:text-neutral-400">{{ item.label }}</p>
181
+ <span :class="'h-5 w-5 text-blue-600 dark:text-blue-400 ' + statIcon(item.label)"></span>
182
+ </div>
183
+ <p class="mt-2 font-semibold tabular-nums text-2xl text-gray-900 dark:text-white">{{ item.value }}</p>
184
+ <p class="mt-1 text-gray-500 text-xs dark:text-neutral-500">{{ item.detail }}</p>
185
+ </article>
188
186
  </section>
189
187
 
190
188
  <div class="grid gap-6 grid-cols-1 lg:grid-cols-3">
@@ -214,22 +212,20 @@ onMount(() => {
214
212
  </tr>
215
213
  </thead>
216
214
  <tbody class="divide-gray-100 divide-y dark:divide-neutral-700">
217
- <template :for="route in routes()" :key="route.id">
218
- <tr class="hover:bg-gray-50/70 dark:hover:bg-neutral-700/40">
219
- <td class="px-5 py-3.5">
220
- <p class="font-medium text-gray-900 text-sm dark:text-white">{{ route.courier }}</p>
221
- <p class="mt-0.5 text-gray-500 text-xs dark:text-neutral-400">{{ route.vehicle }}</p>
222
- </td>
223
- <td class="px-4 py-3.5 text-gray-600 text-sm whitespace-nowrap dark:text-neutral-300">
224
- <span class="font-medium tabular-nums text-gray-900 dark:text-white">{{ route.stops }}</span>
225
- {{ route.stops === 1 ? 'stop' : 'stops' }}
226
- <span class="mx-1 text-gray-300 dark:text-neutral-600">/</span>
227
- {{ route.duration }}
228
- </td>
229
- <td class="px-4 py-3.5 text-gray-600 text-sm whitespace-nowrap dark:text-neutral-300">{{ route.distance }}</td>
230
- <td class="px-5 py-3.5 text-gray-500 text-right text-sm whitespace-nowrap dark:text-neutral-400">{{ formatRelativeTime(route.lastActive) }}</td>
231
- </tr>
232
- </template>
215
+ <tr :for="route in routes()" :key="route.id" class="hover:bg-gray-50/70 dark:hover:bg-neutral-700/40">
216
+ <td class="px-5 py-3.5">
217
+ <p class="font-medium text-gray-900 text-sm dark:text-white">{{ route.courier }}</p>
218
+ <p class="mt-0.5 text-gray-500 text-xs dark:text-neutral-400">{{ route.vehicle }}</p>
219
+ </td>
220
+ <td class="px-4 py-3.5 text-gray-600 text-sm whitespace-nowrap dark:text-neutral-300">
221
+ <span class="font-medium tabular-nums text-gray-900 dark:text-white">{{ route.stops }}</span>
222
+ {{ route.stops === 1 ? 'stop' : 'stops' }}
223
+ <span class="mx-1 text-gray-300 dark:text-neutral-600">/</span>
224
+ {{ route.duration }}
225
+ </td>
226
+ <td class="px-4 py-3.5 text-gray-600 text-sm whitespace-nowrap dark:text-neutral-300">{{ route.distance }}</td>
227
+ <td class="px-5 py-3.5 text-gray-500 text-right text-sm whitespace-nowrap dark:text-neutral-400">{{ formatRelativeTime(route.lastActive) }}</td>
228
+ </tr>
233
229
  </tbody>
234
230
  </table>
235
231
  </div>
@@ -279,18 +275,16 @@ onMount(() => {
279
275
  </div>
280
276
  <div :if="methods().length === 0" class="px-6 py-10 text-center text-gray-500 text-sm dark:text-neutral-400">No shipping methods configured.</div>
281
277
  <ul :if="methods().length > 0" class="divide-gray-100 divide-y dark:divide-neutral-700">
282
- <template :for="method in methods()" :key="method.id">
283
- <li class="flex gap-4 items-center justify-between px-5 py-3.5">
284
- <div class="min-w-0">
285
- <div class="flex gap-2 items-center">
286
- <p class="font-medium text-gray-900 text-sm truncate dark:text-white">{{ method.name }}</p>
287
- <span :class="'inline-flex px-2 py-0.5 font-medium text-xs ring-1 ring-inset rounded-full ' + statusClass(method.status)">{{ formatStatus(method.status) }}</span>
288
- </div>
289
- <p class="mt-1 text-gray-500 text-xs dark:text-neutral-400">Free shipping: {{ method.freeShipping }}</p>
278
+ <li :for="method in methods()" :key="method.id" class="flex gap-4 items-center justify-between px-5 py-3.5">
279
+ <div class="min-w-0">
280
+ <div class="flex gap-2 items-center">
281
+ <p class="font-medium text-gray-900 text-sm truncate dark:text-white">{{ method.name }}</p>
282
+ <span :class="'inline-flex px-2 py-0.5 font-medium text-xs ring-1 ring-inset rounded-full ' + statusClass(method.status)">{{ formatStatus(method.status) }}</span>
290
283
  </div>
291
- <p class="font-semibold tabular-nums text-gray-900 text-sm whitespace-nowrap dark:text-white">{{ method.baseRate }}</p>
292
- </li>
293
- </template>
284
+ <p class="mt-1 text-gray-500 text-xs dark:text-neutral-400">Free shipping: {{ method.freeShipping }}</p>
285
+ </div>
286
+ <p class="font-semibold tabular-nums text-gray-900 text-sm whitespace-nowrap dark:text-white">{{ method.baseRate }}</p>
287
+ </li>
294
288
  </ul>
295
289
  </section>
296
290
 
@@ -304,21 +298,19 @@ onMount(() => {
304
298
  </div>
305
299
  <div :if="zones().length === 0" class="px-6 py-10 text-center text-gray-500 text-sm dark:text-neutral-400">No shipping zones configured.</div>
306
300
  <ul :if="zones().length > 0" class="divide-gray-100 divide-y dark:divide-neutral-700">
307
- <template :for="zone in zones()" :key="zone.id">
308
- <li class="flex gap-4 items-center justify-between px-5 py-3.5">
309
- <div class="min-w-0">
310
- <div class="flex gap-2 items-center">
311
- <p class="font-medium text-gray-900 text-sm truncate dark:text-white">{{ zone.name }}</p>
312
- <span :class="'inline-flex px-2 py-0.5 font-medium text-xs ring-1 ring-inset rounded-full ' + statusClass(zone.status)">{{ formatStatus(zone.status) }}</span>
313
- </div>
314
- <p class="mt-1 text-gray-500 text-xs dark:text-neutral-400">{{ zone.regions }} regional {{ zone.regions === 1 ? 'assignment' : 'assignments' }}</p>
315
- </div>
316
- <div class="text-right">
317
- <p class="font-semibold tabular-nums text-gray-900 text-sm dark:text-white">{{ zone.countries }}</p>
318
- <p class="text-gray-500 text-xs dark:text-neutral-400">countries</p>
301
+ <li :for="zone in zones()" :key="zone.id" class="flex gap-4 items-center justify-between px-5 py-3.5">
302
+ <div class="min-w-0">
303
+ <div class="flex gap-2 items-center">
304
+ <p class="font-medium text-gray-900 text-sm truncate dark:text-white">{{ zone.name }}</p>
305
+ <span :class="'inline-flex px-2 py-0.5 font-medium text-xs ring-1 ring-inset rounded-full ' + statusClass(zone.status)">{{ formatStatus(zone.status) }}</span>
319
306
  </div>
320
- </li>
321
- </template>
307
+ <p class="mt-1 text-gray-500 text-xs dark:text-neutral-400">{{ zone.regions }} regional {{ zone.regions === 1 ? 'assignment' : 'assignments' }}</p>
308
+ </div>
309
+ <div class="text-right">
310
+ <p class="font-semibold tabular-nums text-gray-900 text-sm dark:text-white">{{ zone.countries }}</p>
311
+ <p class="text-gray-500 text-xs dark:text-neutral-400">countries</p>
312
+ </div>
313
+ </li>
322
314
  </ul>
323
315
  </section>
324
316
  </div>
@@ -92,7 +92,7 @@ function emitPage(page: number | string): void {
92
92
  <span class="h-5 w-5 i-hugeicons-arrow-left-01"></span>
93
93
  </Button>
94
94
 
95
- <template :for="page in displayedPages">
95
+ <div :for="page in displayedPages" class="contents">
96
96
  <Button
97
97
  :if="page !== '...' && isCurrent(page)"
98
98
  @click="emitPage(page)"
@@ -112,7 +112,7 @@ function emitPage(page: number | string): void {
112
112
  >
113
113
  ...
114
114
  </span>
115
- </template>
115
+ </div>
116
116
 
117
117
  <Button
118
118
  variant="secondary"
@@ -130,7 +130,7 @@ function submit(): void {
130
130
  <span class="font-medium text-gray-700 text-sm dark:text-neutral-200">Courier</span>
131
131
  <select x-model="courierId" required class="mt-1 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700">
132
132
  <option value="">Select a courier</option>
133
- <template :for="courier in couriers()" :key="courier.id"><option :value="courier.id">{{ courier.name }} - {{ courier.vehicle_number }}</option></template>
133
+ <option :for="courier in couriers()" :key="courier.id" :value="courier.id">{{ courier.name }} - {{ courier.vehicle_number }}</option>
134
134
  </select>
135
135
  </label>
136
136
  <div :if="selectedCourier()" class="flex gap-3 items-center p-3 text-gray-600 text-sm dark:text-neutral-300 bg-gray-50 dark:bg-neutral-900/60 border border-gray-200 rounded-lg dark:border-neutral-700">
@@ -208,7 +208,7 @@ onMount(() => {
208
208
  })
209
209
  </script>
210
210
 
211
- <div class="space-y-6">
211
+ <div class="flex flex-col gap-6">
212
212
  <TabNavigation model-value="routes" />
213
213
 
214
214
  <PageHeader title="Delivery routes" description="Assign persisted couriers and track route workload, distance, and activity.">
@@ -40,8 +40,8 @@ const COLUMNS = [
40
40
  ]
41
41
 
42
42
  const ROW_ACTIONS = [
43
- { action: 'edit', label: 'Edit', icon: 'i-hugeicons-edit-01' },
44
- { action: 'delete', label: 'Delete', icon: 'i-hugeicons-waste', class: 'text-red-500' },
43
+ { action: 'edit', label: 'Edit' },
44
+ { action: 'delete', label: 'Delete' },
45
45
  ]
46
46
 
47
47
  const rows = derived(() => routes().map(route => ({
@@ -180,7 +180,7 @@ onMount(() => {
180
180
  })
181
181
  </script>
182
182
 
183
- <div class="space-y-6">
183
+ <div class="flex flex-col gap-6">
184
184
  <TabNavigation model-value="digital" />
185
185
 
186
186
  <PageHeader title="Digital delivery" description="Control file access, download limits, expiry, and automatic fulfillment.">
@@ -42,8 +42,8 @@ const COLUMNS = [
42
42
  ]
43
43
 
44
44
  const ROW_ACTIONS = [
45
- { action: 'edit', label: 'Edit', icon: 'i-hugeicons-edit-01' },
46
- { action: 'delete', label: 'Delete', icon: 'i-hugeicons-waste', class: 'text-red-500' },
45
+ { action: 'edit', label: 'Edit' },
46
+ { action: 'delete', label: 'Delete' },
47
47
  ]
48
48
 
49
49
  const rows = derived(() => methods().map(method => ({
@@ -199,11 +199,11 @@ function submit(): void {
199
199
  </div>
200
200
  <label class="block"><span class="font-medium text-gray-700 text-sm dark:text-neutral-200">Template</span><select x-model="templateValue" class="mt-1 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700"><option value="Standard License">Standard License</option><option value="Premium License">Premium License</option><option value="Enterprise License">Enterprise License</option></select></label>
201
201
  <div class="grid gap-4 grid-cols-1 sm:grid-cols-2">
202
- <div><label class="block"><span class="font-medium text-gray-700 text-sm dark:text-neutral-200">Customer</span><input x-model="customerQuery" @input="searchSoon('customers')" type="search" name="customer_search" aria-label="Search customers by name or email" placeholder="Search by name or email" class="mt-1 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700" /></label><select x-model="customerId" aria-label="Customer" class="mt-2 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700"><option value="">Unassigned</option><template :for="option in optionsFor('customers')" :key="option.id"><option :value="option.id" :selected="String(option.id) === customerId()">{{ option.label }}{{ option.detail ? ' - ' + option.detail : '' }}</option></template></select><p :if="moreLabel('customers', 'customers')" class="mt-1 text-gray-500 text-xs dark:text-neutral-400" :text="moreLabel('customers', 'customers')"></p></div>
203
- <div><label class="block"><span class="font-medium text-gray-700 text-sm dark:text-neutral-200">Product</span><input x-model="productQuery" @input="searchSoon('products')" type="search" name="product_search" aria-label="Search products by name or id" placeholder="Search by name or id" class="mt-1 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700" /></label><select x-model="productId" aria-label="Product" class="mt-2 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700"><option value="">Unassigned</option><template :for="option in optionsFor('products')" :key="option.id"><option :value="option.id" :selected="String(option.id) === productId()">{{ option.label }}</option></template></select><p :if="moreLabel('products', 'products')" class="mt-1 text-gray-500 text-xs dark:text-neutral-400" :text="moreLabel('products', 'products')"></p></div>
202
+ <div><label class="block"><span class="font-medium text-gray-700 text-sm dark:text-neutral-200">Customer</span><input x-model="customerQuery" @input="searchSoon('customers')" type="search" name="customer_search" aria-label="Search customers by name or email" placeholder="Search by name or email" class="mt-1 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700" /></label><select x-model="customerId" aria-label="Customer" class="mt-2 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700"><option value="">Unassigned</option><option :for="option in optionsFor('customers')" :key="option.id" :value="option.id" :selected="String(option.id) === customerId()">{{ option.label }}{{ option.detail ? ' - ' + option.detail : '' }}</option></select><p :if="moreLabel('customers', 'customers')" class="mt-1 text-gray-500 text-xs dark:text-neutral-400" :text="moreLabel('customers', 'customers')"></p></div>
203
+ <div><label class="block"><span class="font-medium text-gray-700 text-sm dark:text-neutral-200">Product</span><input x-model="productQuery" @input="searchSoon('products')" type="search" name="product_search" aria-label="Search products by name or id" placeholder="Search by name or id" class="mt-1 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700" /></label><select x-model="productId" aria-label="Product" class="mt-2 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700"><option value="">Unassigned</option><option :for="option in optionsFor('products')" :key="option.id" :value="option.id" :selected="String(option.id) === productId()">{{ option.label }}</option></select><p :if="moreLabel('products', 'products')" class="mt-1 text-gray-500 text-xs dark:text-neutral-400" :text="moreLabel('products', 'products')"></p></div>
204
204
  </div>
205
205
  <div class="grid gap-4 grid-cols-1 sm:grid-cols-2">
206
- <div><label class="block"><span class="font-medium text-gray-700 text-sm dark:text-neutral-200">Order</span><input x-model="orderQuery" @input="searchSoon('orders')" type="search" name="order_search" aria-label="Search orders by number or status" placeholder="Search by number or status" class="mt-1 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700" /></label><select x-model="orderId" aria-label="Order" class="mt-2 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700"><option value="">Unassigned</option><template :for="option in optionsFor('orders')" :key="option.id"><option :value="option.id" :selected="String(option.id) === orderId()">{{ option.label }}{{ option.detail ? ' - ' + option.detail : '' }}</option></template></select><p :if="moreLabel('orders', 'orders')" class="mt-1 text-gray-500 text-xs dark:text-neutral-400" :text="moreLabel('orders', 'orders')"></p></div>
206
+ <div><label class="block"><span class="font-medium text-gray-700 text-sm dark:text-neutral-200">Order</span><input x-model="orderQuery" @input="searchSoon('orders')" type="search" name="order_search" aria-label="Search orders by number or status" placeholder="Search by number or status" class="mt-1 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700" /></label><select x-model="orderId" aria-label="Order" class="mt-2 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700"><option value="">Unassigned</option><option :for="option in optionsFor('orders')" :key="option.id" :value="option.id" :selected="String(option.id) === orderId()">{{ option.label }}{{ option.detail ? ' - ' + option.detail : '' }}</option></select><p :if="moreLabel('orders', 'orders')" class="mt-1 text-gray-500 text-xs dark:text-neutral-400" :text="moreLabel('orders', 'orders')"></p></div>
207
207
  <label class="block"><span class="font-medium text-gray-700 text-sm dark:text-neutral-200">Expiry date</span><input x-model="expiryDate" type="datetime-local" required class="mt-1 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700" /></label>
208
208
  </div>
209
209
  <label class="block"><span class="font-medium text-gray-700 text-sm dark:text-neutral-200">Status</span><select x-model="status" class="mt-1 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700"><option value="unassigned">Unassigned</option><option value="active">Active</option><option value="inactive">Inactive</option></select></label>
@@ -184,7 +184,7 @@ onMount(() => {
184
184
  })
185
185
  </script>
186
186
 
187
- <div class="space-y-6">
187
+ <div class="flex flex-col gap-6">
188
188
  <TabNavigation model-value="license" />
189
189
 
190
190
  <PageHeader title="License keys" description="Generate unique software licenses and manage their commerce assignments.">
@@ -58,8 +58,8 @@ const COLUMNS = [
58
58
  ]
59
59
 
60
60
  const ROW_ACTIONS = [
61
- { action: 'edit', label: 'Edit', icon: 'i-hugeicons-edit-01' },
62
- { action: 'delete', label: 'Delete', icon: 'i-hugeicons-waste', class: 'text-red-500' },
61
+ { action: 'edit', label: 'Edit' },
62
+ { action: 'delete', label: 'Delete' },
63
63
  ]
64
64
 
65
65
  const rows = derived(() => licenseKeys().map(licenseKey => ({
@@ -188,7 +188,7 @@ onMount(() => {
188
188
  })
189
189
  </script>
190
190
 
191
- <div class="space-y-6">
191
+ <div class="flex flex-col gap-6">
192
192
  <TabNavigation model-value="methods" />
193
193
 
194
194
  <PageHeader title="Shipping methods" description="Manage persisted rates, activation state, and shipping-zone coverage.">
@@ -42,8 +42,8 @@ const COLUMNS = [
42
42
  ]
43
43
 
44
44
  const ROW_ACTIONS = [
45
- { action: 'edit', label: 'Edit', icon: 'i-hugeicons-edit-01' },
46
- { action: 'delete', label: 'Delete', icon: 'i-hugeicons-waste', class: 'text-red-500' },
45
+ { action: 'edit', label: 'Edit' },
46
+ { action: 'delete', label: 'Delete' },
47
47
  ]
48
48
 
49
49
  const rows = derived(() => methods().map(method => ({
@@ -100,14 +100,14 @@ function submit(): void {
100
100
  <span class="font-medium text-gray-700 text-sm dark:text-neutral-200">Shipping method</span>
101
101
  <select x-model="methodId" required class="mt-1 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700">
102
102
  <option value="">Select a shipping method</option>
103
- <template :for="method in methods()" :key="method.id"><option :value="method.id">{{ method.name }}</option></template>
103
+ <option :for="method in methods()" :key="method.id" :value="method.id">{{ method.name }}</option>
104
104
  </select>
105
105
  </label>
106
106
  <label class="block">
107
107
  <span class="font-medium text-gray-700 text-sm dark:text-neutral-200">Shipping zone</span>
108
108
  <select x-model="zoneId" required class="mt-1 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700">
109
109
  <option value="">Select a shipping zone</option>
110
- <template :for="zone in zones()" :key="zone.id"><option :value="zone.id">{{ zone.name }}</option></template>
110
+ <option :for="zone in zones()" :key="zone.id" :value="zone.id">{{ zone.name }}</option>
111
111
  </select>
112
112
  </label>
113
113
  <div class="grid gap-4 grid-cols-1 sm:grid-cols-2">
@@ -190,7 +190,7 @@ onMount(() => {
190
190
  })
191
191
  </script>
192
192
 
193
- <div class="space-y-6">
193
+ <div class="flex flex-col gap-6">
194
194
  <TabNavigation model-value="rates" />
195
195
 
196
196
  <PageHeader title="Shipping rates" description="Price method and zone combinations across exact weight bands.">
@@ -40,8 +40,8 @@ const COLUMNS = [
40
40
  ]
41
41
 
42
42
  const ROW_ACTIONS = [
43
- { action: 'edit', label: 'Edit', icon: 'i-hugeicons-edit-01' },
44
- { action: 'delete', label: 'Delete', icon: 'i-hugeicons-waste', class: 'text-red-500' },
43
+ { action: 'edit', label: 'Edit' },
44
+ { action: 'delete', label: 'Delete' },
45
45
  ]
46
46
 
47
47
  const rows = derived(() => rates().map((rate) => {
@@ -123,7 +123,7 @@ function submit(): void {
123
123
  <span class="font-medium text-gray-700 text-sm dark:text-neutral-200">Shipping method</span>
124
124
  <select x-model="methodId" required class="mt-1 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700">
125
125
  <option value="">Select a shipping method</option>
126
- <template :for="method in methods()" :key="method.id"><option :value="method.id">{{ method.name }}</option></template>
126
+ <option :for="method in methods()" :key="method.id" :value="method.id">{{ method.name }}</option>
127
127
  </select>
128
128
  </label>
129
129
  <label class="block"><span class="font-medium text-gray-700 text-sm dark:text-neutral-200">Countries</span><textarea x-model="countries" rows="2" maxlength="1000" placeholder="US, CA, MX" class="mt-1 px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-md dark:border-neutral-700"></textarea></label>
@@ -196,7 +196,7 @@ onMount(() => {
196
196
  })
197
197
  </script>
198
198
 
199
- <div class="space-y-6">
199
+ <div class="flex flex-col gap-6">
200
200
  <TabNavigation model-value="zones" />
201
201
 
202
202
  <PageHeader title="Shipping zones" description="Map methods to persisted country, region, and postal coverage.">
@@ -58,8 +58,8 @@ const COLUMNS = [
58
58
  ]
59
59
 
60
60
  const ROW_ACTIONS = [
61
- { action: 'edit', label: 'Edit', icon: 'i-hugeicons-edit-01' },
62
- { action: 'delete', label: 'Delete', icon: 'i-hugeicons-waste', class: 'text-red-500' },
61
+ { action: 'edit', label: 'Edit' },
62
+ { action: 'delete', label: 'Delete' },
63
63
  ]
64
64
 
65
65
  const rows = derived(() => zones().map((zone) => {
@@ -106,18 +106,14 @@ function handleRowAction(payload: { action: string, row: ShippingZoneRow }): voi
106
106
  <template #cell="{ row, column }">
107
107
  <template :if="column.key === 'countriesText'">
108
108
  <div class="flex flex-wrap gap-1">
109
- <template :for="country in row.countryChips">
110
- <span class="inline-flex px-2 py-1 font-medium text-blue-700 text-xs dark:text-blue-300 bg-blue-50 dark:bg-blue-400/10 rounded-full" x-text="country"></span>
111
- </template>
109
+ <span :for="country in row.countryChips" class="inline-flex px-2 py-1 font-medium text-blue-700 text-xs dark:text-blue-300 bg-blue-50 dark:bg-blue-400/10 rounded-full" x-text="country"></span>
112
110
  <span :if="row.countriesMore" class="inline-flex px-2 py-1 font-medium text-stone-600 text-xs dark:text-neutral-300 bg-stone-100 dark:bg-white/5 rounded-full" x-text="row.countriesMore"></span>
113
111
  <span :if="row.countryChips.length === 0">All countries</span>
114
112
  </div>
115
113
  </template>
116
114
  <template :if="column.key === 'regionsText'">
117
115
  <div class="flex flex-wrap gap-1">
118
- <template :for="region in row.regionChips">
119
- <span class="inline-flex px-2 py-1 font-medium text-emerald-700 text-xs dark:text-emerald-300 bg-emerald-50 dark:bg-emerald-400/10 rounded-full" x-text="region"></span>
120
- </template>
116
+ <span :for="region in row.regionChips" class="inline-flex px-2 py-1 font-medium text-emerald-700 text-xs dark:text-emerald-300 bg-emerald-50 dark:bg-emerald-400/10 rounded-full" x-text="region"></span>
121
117
  <span :if="row.regionsMore" class="inline-flex px-2 py-1 font-medium text-stone-600 text-xs dark:text-neutral-300 bg-stone-100 dark:bg-white/5 rounded-full" x-text="row.regionsMore"></span>
122
118
  <span :if="row.regionChips.length === 0">All regions</span>
123
119
  </div>
@@ -47,9 +47,7 @@ function refundable(): boolean {
47
47
  <span class="px-2 py-1 capitalize font-medium text-gray-700 text-xs dark:text-neutral-200 bg-gray-100 dark:bg-neutral-700 rounded-full">{{ label(record()?.status || '') }}</span>
48
48
  </template>
49
49
  <dl class="grid gap-x-6 gap-y-4 sm:grid-cols-2">
50
- <template :for="item in detailRows()" :key="item.label">
51
- <div><dt class="text-gray-500 text-xs dark:text-neutral-500">{{ item.label }}</dt><dd class="mt-1 break-all text-gray-800 text-sm dark:text-neutral-100">{{ item.value }}</dd></div>
52
- </template>
50
+ <div :for="item in detailRows()" :key="item.label"><dt class="text-gray-500 text-xs dark:text-neutral-500">{{ item.label }}</dt><dd class="mt-1 break-all text-gray-800 text-sm dark:text-neutral-100">{{ item.value }}</dd></div>
53
51
  <div><dt class="text-gray-500 text-xs dark:text-neutral-500">Method</dt><dd class="mt-1 capitalize text-gray-800 text-sm dark:text-neutral-100">{{ label(record()?.method || '') }}</dd></div>
54
52
  <div><dt class="text-gray-500 text-xs dark:text-neutral-500">Refund recorded</dt><dd class="mt-1 text-gray-800 text-sm dark:text-neutral-100">{{ record()?.refundAmount ? money(record()?.refundAmount || 0, record()?.currency || 'USD') : record()?.status === 'refunded' && !record()?.refundRecorded ? 'Amount missing' : money(0, record()?.currency || 'USD') }}</dd></div>
55
53
  </dl>