@ory/elements-react 1.0.0-next.2 → 1.0.0-next.3
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/README.md +163 -7
- package/dist/index.js +19 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -13
- package/dist/index.mjs.map +1 -1
- package/dist/theme/default/index.js +26 -15
- package/dist/theme/default/index.js.map +1 -1
- package/dist/theme/default/index.mjs +36 -25
- package/dist/theme/default/index.mjs.map +1 -1
- package/package.json +1 -1
- package/test-results/.last-run.json +0 -4
|
@@ -213,7 +213,7 @@ var require_react_is_development = __commonJS({
|
|
|
213
213
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
214
214
|
var Element = REACT_ELEMENT_TYPE;
|
|
215
215
|
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
216
|
-
var
|
|
216
|
+
var Fragment7 = REACT_FRAGMENT_TYPE;
|
|
217
217
|
var Lazy = REACT_LAZY_TYPE;
|
|
218
218
|
var Memo = REACT_MEMO_TYPE;
|
|
219
219
|
var Portal = REACT_PORTAL_TYPE;
|
|
@@ -272,7 +272,7 @@ var require_react_is_development = __commonJS({
|
|
|
272
272
|
exports2.ContextProvider = ContextProvider;
|
|
273
273
|
exports2.Element = Element;
|
|
274
274
|
exports2.ForwardRef = ForwardRef;
|
|
275
|
-
exports2.Fragment =
|
|
275
|
+
exports2.Fragment = Fragment7;
|
|
276
276
|
exports2.Lazy = Lazy;
|
|
277
277
|
exports2.Memo = Memo;
|
|
278
278
|
exports2.Portal = Portal;
|
|
@@ -10039,9 +10039,14 @@ function DefaultText({ node, attributes }) {
|
|
|
10039
10039
|
// src/theme/default/components/card/current-identifier-button.tsx
|
|
10040
10040
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
10041
10041
|
function DefaultCurrentIdentifierButton({
|
|
10042
|
-
attributes
|
|
10042
|
+
attributes,
|
|
10043
|
+
node
|
|
10043
10044
|
}) {
|
|
10044
|
-
return /* @__PURE__ */ (0, import_jsx_runtime44.
|
|
10045
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { children: [
|
|
10046
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "py-1 px-3 rounded-full border border-button-identifier-border-default bg-button-identifier-bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "text-sm font-medium leading-none", children: attributes.value }) }),
|
|
10047
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(DefaultInput, { attributes, node, onClick: () => {
|
|
10048
|
+
} })
|
|
10049
|
+
] });
|
|
10045
10050
|
}
|
|
10046
10051
|
|
|
10047
10052
|
// src/theme/default/components/default-components.tsx
|
|
@@ -10200,17 +10205,23 @@ var NodeInput = ({
|
|
|
10200
10205
|
}
|
|
10201
10206
|
);
|
|
10202
10207
|
case import_client_fetch13.UiNodeInputAttributesTypeEnum.Hidden:
|
|
10203
|
-
|
|
10204
|
-
|
|
10205
|
-
|
|
10206
|
-
|
|
10207
|
-
|
|
10208
|
-
|
|
10209
|
-
|
|
10210
|
-
|
|
10211
|
-
|
|
10212
|
-
|
|
10213
|
-
|
|
10208
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
|
|
10209
|
+
isCurrentIdentifier && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
10210
|
+
Components.CurrentIdentifierButton,
|
|
10211
|
+
{
|
|
10212
|
+
attributes: attrs,
|
|
10213
|
+
node
|
|
10214
|
+
}
|
|
10215
|
+
),
|
|
10216
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
10217
|
+
Components.Input,
|
|
10218
|
+
{
|
|
10219
|
+
attributes: attrs,
|
|
10220
|
+
node,
|
|
10221
|
+
onClick: handleClick
|
|
10222
|
+
}
|
|
10223
|
+
)
|
|
10224
|
+
] });
|
|
10214
10225
|
default:
|
|
10215
10226
|
if (isPinCodeInput) {
|
|
10216
10227
|
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Components.Label, { attributes: attrs, node, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|