@ory/elements-react 0.0.0-pr.6b3fe62 → 0.0.0-pr.7af5f16

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.
@@ -1368,6 +1368,7 @@ var DefaultButton = ({
1368
1368
  label: _ignoredLabel,
1369
1369
  node_type: _ignoredNodeType,
1370
1370
  maxlength: _ignoredMaxLength,
1371
+ onclick: _ignoredOnClick,
1371
1372
  // End of skipped attributes
1372
1373
  ...rest
1373
1374
  } = attributes;
@@ -1664,7 +1665,7 @@ import * as React24 from "react";
1664
1665
  import { jsx as jsx43 } from "react/jsx-runtime";
1665
1666
  var SvgEyeOff = (props) => {
1666
1667
  var _a, _b;
1667
- return /* @__PURE__ */ jsx43("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx43("path", { stroke: "#000", strokeLinecap: "round", strokeLinejoin: "round", d: "M10.585 10.587a2 2 0 0 0 2.829 2.828m3.267 3.258A8.7 8.7 0 0 1 12 18q-5.4 0-9-6 1.908-3.18 4.32-4.674m2.86-1.146A9 9 0 0 1 12 6q5.4 0 9 6-1 1.665-2.138 2.87M3 3l18 18" }) });
1668
+ return /* @__PURE__ */ jsx43("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx43("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M10.585 10.587a2 2 0 0 0 2.829 2.828m3.267 3.258A8.7 8.7 0 0 1 12 18q-5.4 0-9-6 1.908-3.18 4.32-4.674m2.86-1.146A9 9 0 0 1 12 6q5.4 0 9 6-1 1.665-2.138 2.87M3 3l18 18" }) });
1668
1669
  };
1669
1670
  var eye_off_default = SvgEyeOff;
1670
1671
 
@@ -1673,9 +1674,9 @@ import * as React25 from "react";
1673
1674
  import { jsx as jsx44, jsxs as jsxs23 } from "react/jsx-runtime";
1674
1675
  var SvgEye = (props) => {
1675
1676
  var _a, _b;
1676
- return /* @__PURE__ */ jsx44("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsxs23("g", { strokeLinecap: "round", strokeLinejoin: "round", children: [
1677
- /* @__PURE__ */ jsx44("path", { stroke: "currentColor", d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
1678
- /* @__PURE__ */ jsx44("path", { stroke: "#64748B", d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
1677
+ return /* @__PURE__ */ jsx44("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsxs23("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
1678
+ /* @__PURE__ */ jsx44("path", { d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
1679
+ /* @__PURE__ */ jsx44("path", { d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
1679
1680
  ] }) });
1680
1681
  };
1681
1682
  var eye_default = SvgEye;
@@ -1688,7 +1689,7 @@ var DefaultInput = ({
1688
1689
  onClick
1689
1690
  }) => {
1690
1691
  const label = getNodeLabel3(node);
1691
- const { register, watch } = useFormContext5();
1692
+ const { register } = useFormContext5();
1692
1693
  const {
1693
1694
  value,
1694
1695
  autocomplete,
@@ -2900,6 +2901,7 @@ function DefaultConsentScopeCheckbox({
2900
2901
  defaultMessage: []
2901
2902
  }),
2902
2903
  className: "col-span-2",
2904
+ "data-testid": "ory/screen/consent/scope-checkbox-label",
2903
2905
  children: /* @__PURE__ */ jsx74(
2904
2906
  Switch.Root,
2905
2907
  {
@@ -3023,10 +3025,10 @@ import { jsx as jsx81 } from "react/jsx-runtime";
3023
3025
 
3024
3026
  // src/components/card/card-two-step.tsx
3025
3027
  import {
3026
- isUiNodeInputAttributes as isUiNodeInputAttributes11,
3028
+ isUiNodeInputAttributes as isUiNodeInputAttributes10,
3027
3029
  isUiNodeScriptAttributes as isUiNodeScriptAttributes4,
3028
- UiNodeGroupEnum as UiNodeGroupEnum12,
3029
- UiNodeInputAttributesTypeEnum as UiNodeInputAttributesTypeEnum4
3030
+ UiNodeGroupEnum as UiNodeGroupEnum11,
3031
+ UiNodeInputAttributesTypeEnum as UiNodeInputAttributesTypeEnum2
3030
3032
  } from "@ory/client-fetch";
3031
3033
  import { useFormContext as useFormContext18 } from "react-hook-form";
3032
3034
 
@@ -3097,8 +3099,8 @@ import { jsx as jsx83 } from "react/jsx-runtime";
3097
3099
 
3098
3100
  // src/components/form/nodes/input.tsx
3099
3101
  import {
3100
- UiNodeGroupEnum as UiNodeGroupEnum9,
3101
- UiNodeInputAttributesTypeEnum as UiNodeInputAttributesTypeEnum2
3102
+ UiNodeGroupEnum as UiNodeGroupEnum8,
3103
+ UiNodeInputAttributesTypeEnum
3102
3104
  } from "@ory/client-fetch";
3103
3105
  import { useEffect as useEffect5, useRef as useRef3 } from "react";
3104
3106
  import { useFormContext as useFormContext16 } from "react-hook-form";
@@ -3111,13 +3113,13 @@ import {
3111
3113
  isUiNodeInputAttributes as isUiNodeInputAttributes9,
3112
3114
  isUiNodeScriptAttributes as isUiNodeScriptAttributes3,
3113
3115
  isUiNodeTextAttributes,
3114
- UiNodeGroupEnum as UiNodeGroupEnum10
3116
+ UiNodeGroupEnum as UiNodeGroupEnum9
3115
3117
  } from "@ory/client-fetch";
3116
3118
  import { jsx as jsx85 } from "react/jsx-runtime";
3117
3119
 
3118
3120
  // src/components/form/social.tsx
3119
3121
  import {
3120
- UiNodeGroupEnum as UiNodeGroupEnum11
3122
+ UiNodeGroupEnum as UiNodeGroupEnum10
3121
3123
  } from "@ory/client-fetch";
3122
3124
  import { useFormContext as useFormContext17 } from "react-hook-form";
3123
3125
  import { jsx as jsx86 } from "react/jsx-runtime";
@@ -3136,7 +3138,7 @@ import { jsx as jsx89 } from "react/jsx-runtime";
3136
3138
  import { jsx as jsx90, jsxs as jsxs39 } from "react/jsx-runtime";
3137
3139
 
3138
3140
  // src/components/generic/divider.tsx
3139
- import { UiNodeGroupEnum as UiNodeGroupEnum13 } from "@ory/client-fetch";
3141
+ import { UiNodeGroupEnum as UiNodeGroupEnum12 } from "@ory/client-fetch";
3140
3142
  import { jsx as jsx91 } from "react/jsx-runtime";
3141
3143
 
3142
3144
  // src/components/generic/page-header.tsx
@@ -3145,7 +3147,7 @@ import { jsx as jsx92 } from "react/jsx-runtime";
3145
3147
  // src/components/settings/settings-card.tsx
3146
3148
  import {
3147
3149
  isUiNodeScriptAttributes as isUiNodeScriptAttributes5,
3148
- UiNodeGroupEnum as UiNodeGroupEnum14
3150
+ UiNodeGroupEnum as UiNodeGroupEnum13
3149
3151
  } from "@ory/client-fetch";
3150
3152
  import { useIntl as useIntl20 } from "react-intl";
3151
3153