@tailor-platform/app-shell 1.1.0 → 1.1.1

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.
@@ -2365,6 +2365,8 @@ declare interface FieldMeta {
2365
2365
  copyable?: boolean;
2366
2366
  /** Map field values to badge variants */
2367
2367
  badgeVariantMap?: Record<string, BadgeVariantType>;
2368
+ /** Render badge labels in sentence case by default; set false to keep the original value */
2369
+ sentenceCaseBadges?: boolean;
2368
2370
  /** Key path to currency code in data object (for money fields) */
2369
2371
  currencyKey?: string;
2370
2372
  /** Key path to href in data object (for link fields) */
package/dist/app-shell.js CHANGED
@@ -2913,8 +2913,8 @@ function Gi({ field: t }) {
2913
2913
  function Wi({ field: t }) {
2914
2914
  if (ct(t.value))
2915
2915
  return /* @__PURE__ */ a("span", { className: "astw:text-sm astw:font-medium astw:text-foreground", children: Dt });
2916
- const e = String(t.value), s = t.meta?.badgeVariantMap || {}, n = e.toLowerCase(), r = s[e] || s[n] || "outline-neutral";
2917
- return /* @__PURE__ */ a(_i, { variant: r, className: "astw:w-fit", children: ji(e) });
2916
+ const e = String(t.value), s = t.meta?.badgeVariantMap || {}, n = t.meta?.sentenceCaseBadges ?? !0, r = e.toLowerCase(), o = s[e] || s[r] || "outline-neutral", i = n ? ji(e) : e;
2917
+ return /* @__PURE__ */ a(_i, { variant: o, className: "astw:w-fit", children: i });
2918
2918
  }
2919
2919
  function qi({ field: t }) {
2920
2920
  if (ct(t.value))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailor-platform/app-shell",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "An opinionated React application framework for building ERP applications on Tailor Platform",
5
5
  "keywords": [
6
6
  "app-shell",
@@ -61,7 +61,7 @@
61
61
  "@tailor-platform/app-shell-vite-plugin": "0.2.2"
62
62
  },
63
63
  "devDependencies": {
64
- "@tailwindcss/postcss": "^4.2.2",
64
+ "@tailwindcss/postcss": "^4.2.4",
65
65
  "@testing-library/react": "^16.3.2",
66
66
  "@testing-library/user-event": "^14.6.1",
67
67
  "@types/encoding-japanese": "^2.2.1",
@@ -72,7 +72,7 @@
72
72
  "@vitejs/plugin-react": "^5.2.0",
73
73
  "happy-dom": "^20.6.2",
74
74
  "postcss": "^8",
75
- "tailwindcss": "^4.2.2",
75
+ "tailwindcss": "^4.2.4",
76
76
  "tw-animate-css": "^1.4.0",
77
77
  "typescript": "^5",
78
78
  "vite": "^7.3.2",