@saasicat/ui-vue 0.23.0 → 0.24.0

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 (41) hide show
  1. package/dist/{chunk-XMMFN2WJ.js → chunk-VYMTWCTT.js} +51 -1
  2. package/dist/client/index.cjs +57 -0
  3. package/dist/client/index.d.cts +58 -1
  4. package/dist/client/index.d.ts +58 -1
  5. package/dist/client/index.js +15 -1
  6. package/dist/index.cjs +108 -0
  7. package/dist/index.d.cts +65 -2
  8. package/dist/index.d.ts +65 -2
  9. package/dist/index.js +65 -1
  10. package/package.json +2 -2
  11. package/src/client/identity-accents.ts +129 -0
  12. package/src/client/index.ts +1 -0
  13. package/src/components/MarketingPromotionsTab.vue +6 -2
  14. package/src/components/bundle-editor/BundleVersionInlineEditor.vue +1 -1
  15. package/src/components/dialogs/PromoCodeDialogFields.vue +3 -2
  16. package/src/components/plan-create-dialog/PlanCreateDialog.vue +1 -1
  17. package/src/components/plan-detail/PlanDetail.vue +8 -3
  18. package/src/components/plan-list/PlanList.vue +18 -23
  19. package/src/components/plan-matrix/PlanMatrix.vue +8 -25
  20. package/src/components/plan-review/PlanReview.vue +1 -1
  21. package/src/components/plan-version-editor/PlanVersionEditor.vue +22 -3
  22. package/src/pages-standard/BundlesPage.vue +1 -1
  23. package/src/pages-standard/DashboardPage.vue +5 -2
  24. package/src/pages-standard/MarketingCatalogPage.vue +19 -3
  25. package/src/pages-standard/PromoCodesPage.vue +3 -1
  26. package/src/pages-standard/TenantsPage.vue +5 -4
  27. package/src/pages-standard/discovery-page/discovery-ui.ts +10 -7
  28. package/src/pages-standard/marketing-catalog/MarketingCatalogAdmin.vue +2 -5
  29. package/src/pages-standard/plan-versions/PlanDiffCard.vue +11 -4
  30. package/src/pages-standard/plan-versions/PlanVersionsDiff.vue +3 -1
  31. package/src/pages-standard/tenants/format.ts +11 -12
  32. package/src/pages-tenant/MySubscriptionBundlesPage.vue +9 -0
  33. package/src/pages-tenant/OnboardingConfigurator.vue +1 -1
  34. package/src/pages-tenant/PlanChangeWizard.vue +2 -49
  35. package/src/pages-tenant/TenantPlanSection.vue +6 -48
  36. package/src/pages-tenant/default-i18n.ts +113 -0
  37. package/src/ui/theme/_breakpoints.scss +8 -2
  38. package/src/ui/theme/components/card.css +26 -0
  39. package/src/ui/theme/tokens.primitive.css +4 -0
  40. package/src/ui/theme/tokens.semantic.dark.css +12 -0
  41. package/src/ui/theme/tokens.semantic.light.css +30 -0
@@ -153,6 +153,36 @@
153
153
  --sa-color-bundle: var(--sa-amber-500);
154
154
  --sa-color-bundle-surface: var(--sa-amber-100);
155
155
 
156
+ /* ── Identity. A CATEGORICAL ramp: the only job of these seven is to be
157
+ * told apart.
158
+ *
159
+ * Use them when a colour distinguishes one row from the next and means
160
+ * nothing beyond that — a plan's mark, a promotion badge, a capability
161
+ * kind. Use `feature`/`quota`/`bundle`/`scheduled` above when the category
162
+ * carries meaning; a reader should never have to guess which of the two a
163
+ * colour is doing.
164
+ *
165
+ * They exist because the package had FIVE of these ramps, all six colours
166
+ * long, none agreeing: `PlanList` and `PlanMatrix` shared one byte for
167
+ * byte, `tenants/format.ts` had a third that gave the same plan a
168
+ * different colour on the tenants page, and `PromoCodesPage`,
169
+ * `MarketingPromotionsTab` and `discovery-ui.ts` each invented their own.
170
+ * Every one of them was a hex literal in TypeScript, so none followed the
171
+ * theme: the plan mark measured 2.96:1 on a dark surface and was carried
172
+ * as a named contrast exception because there was nowhere to fix it.
173
+ *
174
+ * Each rung is chosen to clear 3:1 as TEXT on this theme's card surface,
175
+ * because that is how they are used — as the label, not only as a dot. */
176
+ --sa-color-identity-1: var(--sa-blue-700);
177
+ --sa-color-identity-2: var(--sa-violet-700);
178
+ --sa-color-identity-3: var(--sa-green-700);
179
+ --sa-color-identity-4: var(--sa-amber-700);
180
+ --sa-color-identity-5: var(--sa-sky-700);
181
+ --sa-color-identity-6: var(--sa-red-700);
182
+ /* The entry tier, and the answer for "no identity yet". Quiet on purpose:
183
+ * a starter plan reading as loud as an enterprise one is a wrong signal. */
184
+ --sa-color-identity-neutral: var(--sa-neutral-500);
185
+
156
186
  /* ── Inverse chrome — the dark header, drawer and login backdrop.
157
187
  *
158
188
  * Declared identically in both themes ON PURPOSE. This surface is dark in