@protobase/ui 0.25.3 → 0.25.5

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 (58) hide show
  1. package/dist/account/account-section.js +1 -1
  2. package/dist/account/password-dialog.js +1 -1
  3. package/dist/account/sign-in-policy-form.js +3 -3
  4. package/dist/account/two-factor-setup.js +1 -1
  5. package/dist/action-card/field-list.js +1 -1
  6. package/dist/app/displays/board-column.js +1 -1
  7. package/dist/app/displays/board-display.js +6 -7
  8. package/dist/app/displays/board-place.js +24 -11
  9. package/dist/app/displays/timeline-row.js +1 -1
  10. package/dist/app/displays/use-board-move.js +55 -19
  11. package/dist/app/error-banner.js +1 -1
  12. package/dist/app/export/export-dialog.js +3 -3
  13. package/dist/app/hand-order/hand-sorted-list.js +2 -1
  14. package/dist/app/hand-order/use-hand-order.js +19 -5
  15. package/dist/app/import/import-check-step.js +2 -2
  16. package/dist/app/named-icon.js +3 -2
  17. package/dist/app/pages/blocks/field.js +1 -1
  18. package/dist/app/pages/blocks/progress.js +1 -1
  19. package/dist/app/rank-after/dependency-rule.js +17 -0
  20. package/dist/app/rank-after/messages.js +8 -0
  21. package/dist/app/rank-after/rank-bounds.js +54 -0
  22. package/dist/app/rank-after/ranked-place.js +45 -0
  23. package/dist/app/staff-banner.js +1 -1
  24. package/dist/app-shell/sidebar-group.js +1 -1
  25. package/dist/app-shell/sidebar-item.js +1 -1
  26. package/dist/app-shell/sidebar.js +1 -1
  27. package/dist/assistant-dock/assistant-dock.js +1 -1
  28. package/dist/auth/code-form.js +2 -2
  29. package/dist/auth/forgot-password-form.js +1 -1
  30. package/dist/auth/reset-password-form.js +1 -1
  31. package/dist/auth/setup-required-form.js +1 -1
  32. package/dist/auth/sign-in-form.js +3 -3
  33. package/dist/auth/sign-up-details-form.js +1 -1
  34. package/dist/auth/sign-up-email-form.js +1 -1
  35. package/dist/auth/staff-sign-in-form.js +2 -2
  36. package/dist/auth/two-factor-form.js +2 -2
  37. package/dist/data-grid/grid-header.js +1 -1
  38. package/dist/filter-panel/date-presets.js +1 -1
  39. package/dist/forms/public-form-page.js +1 -1
  40. package/dist/organizations/invitation-page.js +2 -2
  41. package/dist/organizations/members-page.js +1 -1
  42. package/dist/package.js +1 -1
  43. package/dist/primitives/button.js +1 -1
  44. package/dist/primitives/segmented.js +1 -1
  45. package/dist/record-view/field.js +2 -2
  46. package/dist/shell/assets/app-pH0OC9QP.js +69 -0
  47. package/dist/shell/assets/{index-B7cIjCuz.js → index-BPi_cyLV.js} +1 -1
  48. package/dist/shell/assets/{index-BRkDA5KD.css → index-Bkc7w8I4.css} +1 -1
  49. package/dist/shell/assets/{maplibre-CVG5L9FD.js → maplibre-DUTS_eJM.js} +1 -1
  50. package/dist/shell/assets/{preload-helper-BX9CcZkY.js → preload-helper-BZ3hrQDD.js} +1 -1
  51. package/dist/shell/assets/{record-map-Cw3_NcUl.js → record-map-DFy7sJEU.js} +1 -1
  52. package/dist/shell/assets/{records-map-D4f3ZeDL.js → records-map-EQVZhkY9.js} +1 -1
  53. package/dist/shell/assets/{shared-protobase-ui-CB_i50NP.js → shared-protobase-ui-BrUtMzdS.js} +1 -1
  54. package/dist/shell/index.html +5 -5
  55. package/dist/shell/protobase.shell.json +1 -1
  56. package/dist/shell/protobase.sw.js +2 -2
  57. package/package.json +4 -4
  58. package/dist/shell/assets/app-CW3U56yM.js +0 -69
@@ -25,7 +25,7 @@ const AssistantDock = ({ state, offline, error, onSend, onAction, onClose, clien
25
25
  onClose,
26
26
  footer: /* @__PURE__ */ jsxs(Fragment$1, { children: [error && /* @__PURE__ */ jsx("p", {
27
27
  role: "alert",
28
- className: "text-xs text-danger-text",
28
+ className: "text-body text-danger-text",
29
29
  children: error
30
30
  }), /* @__PURE__ */ jsx(Composer, {
31
31
  inputRef: input,
@@ -22,7 +22,7 @@ const CodeForm = ({ title, description, explanation, submitLabel, onSubmit, onRe
22
22
  }),
23
23
  notice && /* @__PURE__ */ jsx("p", {
24
24
  role: "status",
25
- className: "mb-4 rounded-md bg-success-soft px-3 py-2 text-xs font-medium text-success-text",
25
+ className: "mb-4 rounded-md bg-success-soft px-3 py-2 text-body font-medium text-success-text",
26
26
  children: notice
27
27
  }),
28
28
  /* @__PURE__ */ jsxs("form", {
@@ -46,7 +46,7 @@ const CodeForm = ({ title, description, explanation, submitLabel, onSubmit, onRe
46
46
  }),
47
47
  error && /* @__PURE__ */ jsx("p", {
48
48
  role: "alert",
49
- className: "text-xs font-medium text-danger-text",
49
+ className: "text-body font-medium text-danger-text",
50
50
  children: error
51
51
  }),
52
52
  /* @__PURE__ */ jsx(Button, {
@@ -50,7 +50,7 @@ const ForgotPasswordForm = ({ onSubmit, back, busy, error, sentTo }) => {
50
50
  }),
51
51
  error && /* @__PURE__ */ jsx("p", {
52
52
  role: "alert",
53
- className: "text-xs font-medium text-danger-text",
53
+ className: "text-body font-medium text-danger-text",
54
54
  children: error
55
55
  }),
56
56
  /* @__PURE__ */ jsx(Button, {
@@ -71,7 +71,7 @@ const ResetPasswordForm = ({ onSubmit, invalidLink, onRequestNewLink, onBack, bu
71
71
  }),
72
72
  shown && /* @__PURE__ */ jsx("p", {
73
73
  role: "alert",
74
- className: "text-xs font-medium text-danger-text",
74
+ className: "text-body font-medium text-danger-text",
75
75
  children: shown
76
76
  }),
77
77
  /* @__PURE__ */ jsx(Button, {
@@ -19,7 +19,7 @@ const SetupRequiredForm = ({ step, twoFactor, onAddPasskey, busy, error, onSignO
19
19
  }),
20
20
  error && /* @__PURE__ */ jsx("p", {
21
21
  role: "alert",
22
- className: "text-xs font-medium text-danger-text",
22
+ className: "text-body font-medium text-danger-text",
23
23
  children: error
24
24
  }),
25
25
  /* @__PURE__ */ jsxs(Button, {
@@ -34,7 +34,7 @@ const SignInForm = ({ onSubmit, busy, error, workspace, notice, methods = ["pass
34
34
  children: [
35
35
  notice && /* @__PURE__ */ jsx("p", {
36
36
  role: "status",
37
- className: "mb-4 rounded-md bg-success-soft px-3 py-2 text-xs font-medium text-success-text",
37
+ className: "mb-4 rounded-md bg-success-soft px-3 py-2 text-body font-medium text-success-text",
38
38
  children: notice
39
39
  }),
40
40
  (offered.length > 0 || withPasskey) && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("div", {
@@ -63,7 +63,7 @@ const SignInForm = ({ onSubmit, busy, error, workspace, notice, methods = ["pass
63
63
  ]
64
64
  }), withPassword || withCode ? /* @__PURE__ */ jsx(Divider, {}) : error && /* @__PURE__ */ jsx("p", {
65
65
  role: "alert",
66
- className: "mt-4 text-xs font-medium text-danger-text",
66
+ className: "mt-4 text-body font-medium text-danger-text",
67
67
  children: error
68
68
  })] }),
69
69
  (withPassword || withCode) && /* @__PURE__ */ jsxs("form", {
@@ -104,7 +104,7 @@ const SignInForm = ({ onSubmit, busy, error, workspace, notice, methods = ["pass
104
104
  }),
105
105
  error && /* @__PURE__ */ jsx("p", {
106
106
  role: "alert",
107
- className: "text-xs font-medium text-danger-text",
107
+ className: "text-body font-medium text-danger-text",
108
108
  children: error
109
109
  }),
110
110
  withPassword && /* @__PURE__ */ jsx(Button, {
@@ -69,7 +69,7 @@ const SignUpDetailsForm = ({ email, onSubmit, onBack, methods, busy, error }) =>
69
69
  }),
70
70
  error && /* @__PURE__ */ jsx("p", {
71
71
  role: "alert",
72
- className: "text-xs font-medium text-danger-text",
72
+ className: "text-body font-medium text-danger-text",
73
73
  children: error
74
74
  }),
75
75
  /* @__PURE__ */ jsx(Button, {
@@ -39,7 +39,7 @@ const SignUpEmailForm = ({ onSubmit, onSignIn, onBrowse, busy, error, workspace
39
39
  }),
40
40
  error && /* @__PURE__ */ jsx("p", {
41
41
  role: "alert",
42
- className: "text-xs font-medium text-danger-text",
42
+ className: "text-body font-medium text-danger-text",
43
43
  children: error
44
44
  }),
45
45
  /* @__PURE__ */ jsxs(Button, {
@@ -16,7 +16,7 @@ const StaffSignInForm = ({ operator, email: givenEmail = "", reason: givenReason
16
16
  description: text("staffUnavailable"),
17
17
  children: [error && /* @__PURE__ */ jsx("p", {
18
18
  role: "alert",
19
- className: "mb-4 text-xs font-medium text-danger-text",
19
+ className: "mb-4 text-body font-medium text-danger-text",
20
20
  children: error
21
21
  }), /* @__PURE__ */ jsx(Button, {
22
22
  variant: "primary",
@@ -66,7 +66,7 @@ const StaffSignInForm = ({ operator, email: givenEmail = "", reason: givenReason
66
66
  }),
67
67
  error && /* @__PURE__ */ jsx("p", {
68
68
  role: "alert",
69
- className: "text-xs font-medium text-danger-text",
69
+ className: "text-body font-medium text-danger-text",
70
70
  children: error
71
71
  }),
72
72
  /* @__PURE__ */ jsx(Button, {
@@ -35,7 +35,7 @@ const TwoFactorForm = ({ methods, onVerify, onSendCode, onBack, busy, error, cod
35
35
  }),
36
36
  error && /* @__PURE__ */ jsx("p", {
37
37
  role: "alert",
38
- className: "text-xs font-medium text-danger-text",
38
+ className: "text-body font-medium text-danger-text",
39
39
  children: error
40
40
  }),
41
41
  /* @__PURE__ */ jsx(Button, {
@@ -92,7 +92,7 @@ const TwoFactorForm = ({ methods, onVerify, onSendCode, onBack, busy, error, cod
92
92
  }),
93
93
  error && /* @__PURE__ */ jsx("p", {
94
94
  role: "alert",
95
- className: "text-xs font-medium text-danger-text",
95
+ className: "text-body font-medium text-danger-text",
96
96
  children: error
97
97
  }),
98
98
  /* @__PURE__ */ jsx(Button, {
@@ -20,7 +20,7 @@ const HeaderLabel = ({ spec }) => /* @__PURE__ */ jsxs(Fragment, { children: [/*
20
20
  children: text("new")
21
21
  })] });
22
22
  const GridHeader = ({ cells, specs, gutter, selectedCount, selectable, trailing, minScale, pins = {}, lastPinned, scrolled, onTogglePin, onClearSelection }) => /* @__PURE__ */ jsxs("div", {
23
- className: "grid h-8 shrink-0 items-center border-b bg-surface text-xs font-medium text-muted-foreground",
23
+ className: "grid h-8 shrink-0 items-center border-b bg-surface text-body font-medium text-muted-foreground",
24
24
  style: { gridTemplateColumns: gridTemplate(specs, gutter, trailing, minScale) },
25
25
  role: "row",
26
26
  children: [
@@ -12,7 +12,7 @@ const DatePresets = ({ value, presets = defaultDatePresets, onChange }) => /* @_
12
12
  disabled: !label,
13
13
  title: label ? void 0 : text("unknownPreset", id),
14
14
  onClick: () => onChange(value === id ? void 0 : id),
15
- className: cn("h-7 rounded-md border px-2.5 text-xs font-medium transition-colors", !label && "border-dashed text-danger-text", value === id ? "border-primary-border bg-primary-soft text-primary-text" : "border-border-strong bg-background text-muted-foreground hover:bg-muted"),
15
+ className: cn("h-7 rounded-md border px-2.5 text-body font-medium transition-colors", !label && "border-dashed text-danger-text", value === id ? "border-primary-border bg-primary-soft text-primary-text" : "border-border-strong bg-background text-muted-foreground hover:bg-muted"),
16
16
  children: label ?? text("unsupported", id)
17
17
  }, id);
18
18
  })
@@ -70,7 +70,7 @@ const LoadedForm = ({ form }) => {
70
70
  size: "md",
71
71
  children: /* @__PURE__ */ jsx("p", {
72
72
  role: "status",
73
- className: "rounded-md bg-success-soft px-3 py-2 text-xs font-medium text-success-text",
73
+ className: "rounded-md bg-success-soft px-3 py-2 text-body font-medium text-success-text",
74
74
  children: form.thanks
75
75
  })
76
76
  });
@@ -41,7 +41,7 @@ const SignUp = ({ token, preview, joins, onDone }) => {
41
41
  }),
42
42
  error && /* @__PURE__ */ jsx("p", {
43
43
  role: "alert",
44
- className: "text-xs font-medium text-danger-text",
44
+ className: "text-body font-medium text-danger-text",
45
45
  children: error
46
46
  }),
47
47
  /* @__PURE__ */ jsx(Input, {
@@ -164,7 +164,7 @@ const InvitationPage = ({ token, onDone, signIn }) => {
164
164
  className: "flex flex-col gap-3",
165
165
  children: [error && /* @__PURE__ */ jsx("p", {
166
166
  role: "alert",
167
- className: "text-xs font-medium text-danger-text",
167
+ className: "text-body font-medium text-danger-text",
168
168
  children: error
169
169
  }), /* @__PURE__ */ jsx(Button, {
170
170
  variant: "primary",
@@ -41,7 +41,7 @@ const MemberRow = ({ member, current, onChanged }) => {
41
41
  await session.organizations.setRole(organizationId, member.id, event.target.value);
42
42
  onChanged();
43
43
  }),
44
- className: "h-7 rounded-md border border-border-strong bg-background px-2 text-xs",
44
+ className: "h-7 rounded-md border border-border-strong bg-background px-2 text-body",
45
45
  children: (roleLocked ? [member.role] : organizationRoles).map((role) => /* @__PURE__ */ jsx("option", {
46
46
  value: role,
47
47
  children: organizationRoleLabel(role)
package/dist/package.js CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "0.25.3";
2
+ var version = "0.25.5";
3
3
  var protobase = { "pluginApi": 1 };
4
4
  //#endregion
5
5
  export { protobase, version };
@@ -9,7 +9,7 @@ const variants = {
9
9
  danger: "bg-background text-danger-text border border-border-strong hover:bg-danger-soft shadow-sm"
10
10
  };
11
11
  const sizes = {
12
- sm: "h-7 px-2.5 text-xs gap-1.5",
12
+ sm: "h-7 px-2.5 text-body gap-1.5",
13
13
  md: "h-8 px-3 text-body gap-2"
14
14
  };
15
15
  /** A button's classes, for a link that looks like one. */
@@ -4,7 +4,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
4
4
  const sizes = {
5
5
  sm: {
6
6
  group: "h-7",
7
- option: "px-2.5 text-xs"
7
+ option: "px-2.5 text-body"
8
8
  },
9
9
  md: {
10
10
  group: "h-8",
@@ -66,11 +66,11 @@ const Field = ({ name, label, required, help, example, error, conflict, wide, ch
66
66
  }),
67
67
  error && /* @__PURE__ */ jsx("p", {
68
68
  id: `${id}-error`,
69
- className: "mt-1.5 text-xs font-medium text-danger-text",
69
+ className: "mt-1.5 text-body font-medium text-danger-text",
70
70
  children: error
71
71
  }),
72
72
  conflict && /* @__PURE__ */ jsxs("div", {
73
- className: "mt-2 flex items-center justify-between gap-3 rounded-md border border-warning/30 bg-warning-soft px-3 py-2 text-xs text-warning-text",
73
+ className: "mt-2 flex items-center justify-between gap-3 rounded-md border border-warning/30 bg-warning-soft px-3 py-2 text-body text-warning-text",
74
74
  children: [/* @__PURE__ */ jsxs("span", { children: [
75
75
  /* @__PURE__ */ jsx("strong", { children: conflict.user.name }),
76
76
  " ",