@seedgrid/fe-security 2026.11.2 → 2026.11.4

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.
@@ -13,7 +13,7 @@ export function PickListField({ id, title, sourceHeader, targetHeader, options,
13
13
  .map((selectedValue) => options.find((option) => isSameValue(selectedValue, option.value)))
14
14
  .filter((option) => Boolean(option))
15
15
  .map(toItem), [options, selectedValues]);
16
- return (_jsx(SgPickList, { id: id, title: title, source: sourceItems, target: targetItems, sourceHeader: sourceHeader, targetHeader: targetHeader, showSourceFilter: true, showTargetFilter: true, emptyMessage: emptyMessage, readOnly: readOnly, disabled: readOnly, onChange: (event) => {
16
+ return (_jsx(SgPickList, { id: id, title: title, source: sourceItems, target: targetItems, sourceHeader: sourceHeader, targetHeader: targetHeader, showSourceFilter: true, showTargetFilter: true, emptyMessage: emptyMessage, readOnly: readOnly, enabled: !readOnly, onChange: (event) => {
17
17
  onChange(event.target.map((item) => item.value));
18
18
  }, groupBoxProps: groupBoxProps }));
19
19
  }
@@ -21,7 +21,7 @@ function toItem(option) {
21
21
  return {
22
22
  label: option.label,
23
23
  value: option.value,
24
- disabled: option.disabled,
24
+ enabled: option.disabled === undefined ? undefined : !option.disabled,
25
25
  data: option.data,
26
26
  };
27
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seedgrid/fe-security",
3
- "version": "2026.11.2",
3
+ "version": "2026.11.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -52,8 +52,8 @@
52
52
  "next": "15.0.7",
53
53
  "react": "19.0.0",
54
54
  "@types/react": "^19.0.0",
55
- "@seedgrid/fe-components": "2026.11.2",
56
- "@seedgrid/fe-core": "2026.11.2"
55
+ "@seedgrid/fe-core": "2026.11.5",
56
+ "@seedgrid/fe-components": "2026.11.5"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "tsc -p tsconfig.json",
@@ -269,7 +269,7 @@ export default function TwoFactorVerifyPage() {
269
269
  shape="rounded"
270
270
  label={translate("security.auth.two_factor.resend")}
271
271
  loading={resending}
272
- disabled={resending || pending || !auth.pendingTwoFactor}
272
+ enabled={!(resending || pending || !auth.pendingTwoFactor)}
273
273
  onClick={() => {
274
274
  void handleResendEmail();
275
275
  }}
@@ -153,7 +153,7 @@ export default function ForgotPasswordPage() {
153
153
  shape="rounded"
154
154
  label={t("security.forgot_password.submit")}
155
155
  loading={pending}
156
- disabled={pending}
156
+ enabled={!pending}
157
157
  type="submit"
158
158
  />
159
159
  </SgStack>
@@ -344,7 +344,7 @@ export default function LoginPage() {
344
344
  : t("security.login.submit")
345
345
  }
346
346
  loading={pending}
347
- disabled={pending}
347
+ enabled={!pending}
348
348
  type="submit"
349
349
  className="mt-2 w-full"
350
350
  />
@@ -241,7 +241,7 @@ function TwoFactorSettingsScreen() {
241
241
  shape="rounded"
242
242
  label={t("security.two_factor.enable")}
243
243
  loading={pending}
244
- disabled={pending}
244
+ enabled={!pending}
245
245
  onClick={handleEnable}
246
246
  />
247
247
  </SgGrid>
@@ -294,7 +294,7 @@ function TwoFactorSettingsScreen() {
294
294
  shape="rounded"
295
295
  label={t("security.two_factor.disable")}
296
296
  loading={pending}
297
- disabled={pending}
297
+ enabled={!pending}
298
298
  onClick={handleDisable}
299
299
  />
300
300
  </SgStack>
@@ -324,7 +324,7 @@ function TwoFactorSettingsScreen() {
324
324
  shape="rounded"
325
325
  label={t("security.two_factor.confirm_totp")}
326
326
  loading={pending}
327
- disabled={pending}
327
+ enabled={!pending}
328
328
  onClick={handleConfirmTotp}
329
329
  />
330
330
  </SgStack>
@@ -729,7 +729,7 @@ export function CompanyEditor({ publicId }: CompanyEditorProps) {
729
729
  shape="rounded"
730
730
  label={t("security.common.save")}
731
731
  loading={saving}
732
- disabled={saving}
732
+ enabled={!saving}
733
733
  type="submit"
734
734
  />
735
735
  </SgStack>
@@ -477,11 +477,9 @@ function ProfileScreen() {
477
477
  label={t("security.common.save")}
478
478
  onClick={handleSave}
479
479
  loading={saving}
480
- disabled={
481
- saving ||
480
+ enabled={!(saving ||
482
481
  !formValues.email.trim() ||
483
- !hasAtLeastTwoWords(formValues.name)
484
- }
482
+ !hasAtLeastTwoWords(formValues.name))}
485
483
  />
486
484
  </SgStack>
487
485
  ) : null}
@@ -278,7 +278,7 @@ export function RoleEditor({ publicId }: RoleEditorProps) {
278
278
  control={control}
279
279
  orientation="vertical"
280
280
  showCheckAll
281
- disabled={isReadOnly}
281
+ enabled={!isReadOnly}
282
282
  readOnly={isReadOnly}
283
283
  required
284
284
  rules={ {
@@ -303,7 +303,7 @@ export function RoleEditor({ publicId }: RoleEditorProps) {
303
303
  shape="rounded"
304
304
  label={t("security.common.save")}
305
305
  loading={saving}
306
- disabled={saving}
306
+ enabled={!saving}
307
307
  type="submit"
308
308
  />
309
309
  </SgStack>
@@ -453,7 +453,7 @@ export function UserEditor({ publicId }: UserEditorProps) {
453
453
  shape="rounded"
454
454
  label={t("security.common.save")}
455
455
  loading={saving}
456
- disabled={saving}
456
+ enabled={!saving}
457
457
  type="submit"
458
458
  />
459
459
  </SgStack>
@@ -160,7 +160,7 @@ function ChangePasswordScreen() {
160
160
  shape="rounded"
161
161
  label={t("security.change_password.submit")}
162
162
  loading={pending}
163
- disabled={pending}
163
+ enabled={!pending}
164
164
  type="submit"
165
165
  />
166
166
  </SgStack>