@ai-matrx/design-system 0.28.0 → 0.31.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.
- package/CHANGELOG.md +71 -0
- package/dist/data-table/copy-helpers.d.cts +1 -1
- package/dist/data-table/copy-helpers.d.ts +1 -1
- package/dist/data-table/filter-engine.d.cts +1 -1
- package/dist/data-table/filter-engine.d.ts +1 -1
- package/dist/data-table/host.d.cts +1 -1
- package/dist/data-table/host.d.ts +1 -1
- package/dist/data-table/index.cjs +39 -7
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.d.cts +3 -3
- package/dist/data-table/index.d.ts +3 -3
- package/dist/data-table/index.js +39 -7
- package/dist/data-table/index.js.map +1 -1
- package/dist/data-table/infer-filter.d.cts +1 -1
- package/dist/data-table/infer-filter.d.ts +1 -1
- package/dist/data-table/layered-filters.d.cts +1 -1
- package/dist/data-table/layered-filters.d.ts +1 -1
- package/dist/data-table/query-control.d.cts +1 -1
- package/dist/data-table/query-control.d.ts +1 -1
- package/dist/data-table/spreadsheet.cjs +37 -6
- package/dist/data-table/spreadsheet.cjs.map +1 -1
- package/dist/data-table/spreadsheet.d.cts +46 -1
- package/dist/data-table/spreadsheet.d.ts +46 -1
- package/dist/data-table/spreadsheet.js +37 -6
- package/dist/data-table/spreadsheet.js.map +1 -1
- package/dist/data-table/types.cjs.map +1 -1
- package/dist/data-table/types.d.cts +2 -2
- package/dist/data-table/types.d.ts +2 -2
- package/dist/data-table/url-state.d.cts +1 -1
- package/dist/data-table/url-state.d.ts +1 -1
- package/dist/data-table/xlsx.d.cts +1 -1
- package/dist/data-table/xlsx.d.ts +1 -1
- package/dist/index.cjs +8 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/{types-D9JBR6ZU.d.ts → types-CFmCZXVn.d.ts} +24 -1
- package/dist/{types-jQddSUnj.d.cts → types-CYkwg9jR.d.cts} +24 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3415,6 +3415,10 @@ function OrganizationPicker({
|
|
|
3415
3415
|
}) {
|
|
3416
3416
|
const active = organizations.find((o) => o.id === activeOrganizationId) ?? null;
|
|
3417
3417
|
const isDefault = (id) => !!defaultOrganizationId && id === defaultOrganizationId;
|
|
3418
|
+
const listed = defaultOrganizationId === null ? organizations : [
|
|
3419
|
+
...organizations.filter((o) => o.id === defaultOrganizationId),
|
|
3420
|
+
...organizations.filter((o) => o.id !== defaultOrganizationId)
|
|
3421
|
+
];
|
|
3418
3422
|
const sharesItsName = (org) => organizations.filter((other) => other.name.trim() === org.name.trim()).length > 1;
|
|
3419
3423
|
return /* @__PURE__ */ jsxs21("div", { className: cn("flex flex-col", className), "data-slot": "organization-picker", children: [
|
|
3420
3424
|
!hideHeading && /* @__PURE__ */ jsx38("p", { className: "px-2 py-1.5 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground", children: "Organization" }),
|
|
@@ -3427,7 +3431,7 @@ function OrganizationPicker({
|
|
|
3427
3431
|
" ",
|
|
3428
3432
|
/* @__PURE__ */ jsx38("span", { className: "font-medium text-foreground", children: active.name })
|
|
3429
3433
|
] }) : /* @__PURE__ */ jsx38("p", { className: "px-2 pb-1 text-[11px] text-destructive", "data-slot": "organization-picker-status", children: "No organization selected \u2014 pick one below." }),
|
|
3430
|
-
/* @__PURE__ */ jsx38("ul", { className: "max-h-72 overflow-y-auto", role: "listbox", "aria-label": "Organizations", children:
|
|
3434
|
+
/* @__PURE__ */ jsx38("ul", { className: "max-h-72 overflow-y-auto", role: "listbox", "aria-label": "Organizations", children: listed.map((org) => {
|
|
3431
3435
|
const isActive = org.id === activeOrganizationId;
|
|
3432
3436
|
return /* @__PURE__ */ jsx38("li", { role: "none", children: /* @__PURE__ */ jsxs21(
|
|
3433
3437
|
"button",
|
|
@@ -3503,8 +3507,8 @@ function DefaultOrganizationSwitch({
|
|
|
3503
3507
|
"data-slot": "organization-picker-default",
|
|
3504
3508
|
children: [
|
|
3505
3509
|
/* @__PURE__ */ jsxs21("div", { className: "min-w-0", children: [
|
|
3506
|
-
/* @__PURE__ */ jsx38("p", { className: "text-xs font-medium text-foreground", children: "
|
|
3507
|
-
/* @__PURE__ */ jsx38("p", { className: "truncate text-[11px] text-muted-foreground", children: disabled ? "Select an organization first" : checked ?
|
|
3510
|
+
/* @__PURE__ */ jsx38("p", { className: "text-xs font-medium text-foreground", children: "Keep it at the top" }),
|
|
3511
|
+
/* @__PURE__ */ jsx38("p", { className: "truncate text-[11px] text-muted-foreground", children: disabled ? "Select an organization first" : checked ? `${active.name} is first in this list on every device` : "Star it so it is first in this list on every device" })
|
|
3508
3512
|
] }),
|
|
3509
3513
|
/* @__PURE__ */ jsx38(
|
|
3510
3514
|
Switch,
|
|
@@ -3512,7 +3516,7 @@ function DefaultOrganizationSwitch({
|
|
|
3512
3516
|
checked,
|
|
3513
3517
|
disabled,
|
|
3514
3518
|
onCheckedChange: onChange,
|
|
3515
|
-
"aria-label": "
|
|
3519
|
+
"aria-label": "Keep this organization at the top of the list"
|
|
3516
3520
|
}
|
|
3517
3521
|
)
|
|
3518
3522
|
]
|