@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
|
@@ -211,7 +211,7 @@ var require_react_is_development = __commonJS({
|
|
|
211
211
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
212
212
|
var Element = REACT_ELEMENT_TYPE;
|
|
213
213
|
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
214
|
-
var
|
|
214
|
+
var Fragment7 = REACT_FRAGMENT_TYPE;
|
|
215
215
|
var Lazy = REACT_LAZY_TYPE;
|
|
216
216
|
var Memo = REACT_MEMO_TYPE;
|
|
217
217
|
var Portal = REACT_PORTAL_TYPE;
|
|
@@ -270,7 +270,7 @@ var require_react_is_development = __commonJS({
|
|
|
270
270
|
exports.ContextProvider = ContextProvider;
|
|
271
271
|
exports.Element = Element;
|
|
272
272
|
exports.ForwardRef = ForwardRef;
|
|
273
|
-
exports.Fragment =
|
|
273
|
+
exports.Fragment = Fragment7;
|
|
274
274
|
exports.Lazy = Lazy;
|
|
275
275
|
exports.Memo = Memo;
|
|
276
276
|
exports.Portal = Portal;
|
|
@@ -10046,11 +10046,16 @@ function DefaultText({ node, attributes }) {
|
|
|
10046
10046
|
}
|
|
10047
10047
|
|
|
10048
10048
|
// src/theme/default/components/card/current-identifier-button.tsx
|
|
10049
|
-
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
10049
|
+
import { jsx as jsx44, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
10050
10050
|
function DefaultCurrentIdentifierButton({
|
|
10051
|
-
attributes
|
|
10051
|
+
attributes,
|
|
10052
|
+
node
|
|
10052
10053
|
}) {
|
|
10053
|
-
return /* @__PURE__ */
|
|
10054
|
+
return /* @__PURE__ */ jsxs26("div", { children: [
|
|
10055
|
+
/* @__PURE__ */ jsx44("span", { className: "py-1 px-3 rounded-full border border-button-identifier-border-default bg-button-identifier-bg-default", children: /* @__PURE__ */ jsx44("span", { className: "text-sm font-medium leading-none", children: attributes.value }) }),
|
|
10056
|
+
/* @__PURE__ */ jsx44(DefaultInput, { attributes, node, onClick: () => {
|
|
10057
|
+
} })
|
|
10058
|
+
] });
|
|
10054
10059
|
}
|
|
10055
10060
|
|
|
10056
10061
|
// src/theme/default/components/default-components.tsx
|
|
@@ -10149,7 +10154,7 @@ import {
|
|
|
10149
10154
|
UiNodeInputAttributesTypeEnum
|
|
10150
10155
|
} from "@ory/client-fetch";
|
|
10151
10156
|
import { useEffect, useRef } from "react";
|
|
10152
|
-
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
10157
|
+
import { Fragment as Fragment4, jsx as jsx46, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
10153
10158
|
var NodeInput = ({
|
|
10154
10159
|
node,
|
|
10155
10160
|
attributes
|
|
@@ -10211,17 +10216,23 @@ var NodeInput = ({
|
|
|
10211
10216
|
}
|
|
10212
10217
|
);
|
|
10213
10218
|
case UiNodeInputAttributesTypeEnum.Hidden:
|
|
10214
|
-
|
|
10215
|
-
|
|
10216
|
-
|
|
10217
|
-
|
|
10218
|
-
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
|
|
10222
|
-
|
|
10223
|
-
|
|
10224
|
-
|
|
10219
|
+
return /* @__PURE__ */ jsxs27(Fragment4, { children: [
|
|
10220
|
+
isCurrentIdentifier && /* @__PURE__ */ jsx46(
|
|
10221
|
+
Components.CurrentIdentifierButton,
|
|
10222
|
+
{
|
|
10223
|
+
attributes: attrs,
|
|
10224
|
+
node
|
|
10225
|
+
}
|
|
10226
|
+
),
|
|
10227
|
+
/* @__PURE__ */ jsx46(
|
|
10228
|
+
Components.Input,
|
|
10229
|
+
{
|
|
10230
|
+
attributes: attrs,
|
|
10231
|
+
node,
|
|
10232
|
+
onClick: handleClick
|
|
10233
|
+
}
|
|
10234
|
+
)
|
|
10235
|
+
] });
|
|
10225
10236
|
default:
|
|
10226
10237
|
if (isPinCodeInput) {
|
|
10227
10238
|
return /* @__PURE__ */ jsx46(Components.Label, { attributes: attrs, node, children: /* @__PURE__ */ jsx46(
|
|
@@ -10299,7 +10310,7 @@ function OryFormGroups({ children, groups }) {
|
|
|
10299
10310
|
}
|
|
10300
10311
|
|
|
10301
10312
|
// src/components/form/social.tsx
|
|
10302
|
-
import { Fragment as
|
|
10313
|
+
import { Fragment as Fragment5, jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
10303
10314
|
function OryFormSocialButtons({
|
|
10304
10315
|
children,
|
|
10305
10316
|
hideDivider
|
|
@@ -10315,7 +10326,7 @@ function OryFormSocialButtons({
|
|
|
10315
10326
|
const otherNodes = ui.nodes.filter(
|
|
10316
10327
|
(node) => node.group !== "oidc" && node.group !== "default"
|
|
10317
10328
|
);
|
|
10318
|
-
return /* @__PURE__ */
|
|
10329
|
+
return /* @__PURE__ */ jsxs28(Fragment5, { children: [
|
|
10319
10330
|
/* @__PURE__ */ jsx49(SocialButtonContainer, { nodes: filteredNodes, children: children != null ? children : filteredNodes.map((node, k) => {
|
|
10320
10331
|
return /* @__PURE__ */ jsx49(Node, { node }, k);
|
|
10321
10332
|
}) }),
|
|
@@ -10331,7 +10342,7 @@ import {
|
|
|
10331
10342
|
isUiNodeInputAttributes as isUiNodeInputAttributes3,
|
|
10332
10343
|
isUiNodeScriptAttributes as isUiNodeScriptAttributes2
|
|
10333
10344
|
} from "@ory/client-fetch";
|
|
10334
|
-
import { Fragment as
|
|
10345
|
+
import { Fragment as Fragment6, jsx as jsx50, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
10335
10346
|
function OryForm({ children }) {
|
|
10336
10347
|
var _a3;
|
|
10337
10348
|
const { FormContainer } = useComponents();
|
|
@@ -10436,7 +10447,7 @@ function OryForm({ children }) {
|
|
|
10436
10447
|
action: flowContainer.flow.ui.action,
|
|
10437
10448
|
method: flowContainer.flow.ui.method,
|
|
10438
10449
|
onSubmit: () => void methods.handleSubmit(onSubmit),
|
|
10439
|
-
children: children != null ? children : /* @__PURE__ */
|
|
10450
|
+
children: children != null ? children : /* @__PURE__ */ jsxs29(Fragment6, { children: [
|
|
10440
10451
|
/* @__PURE__ */ jsx50(OryFormSocialButtons, {}),
|
|
10441
10452
|
/* @__PURE__ */ jsx50(
|
|
10442
10453
|
OryFormGroups,
|
|
@@ -10480,15 +10491,15 @@ function OryCardHeader() {
|
|
|
10480
10491
|
}
|
|
10481
10492
|
|
|
10482
10493
|
// src/components/card/index.tsx
|
|
10483
|
-
import { jsx as jsx53, jsxs as
|
|
10494
|
+
import { jsx as jsx53, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
10484
10495
|
function OryCardContent({ children }) {
|
|
10485
10496
|
const { CardContent } = useComponents();
|
|
10486
10497
|
if (children) {
|
|
10487
10498
|
return /* @__PURE__ */ jsx53(CardContent, { children });
|
|
10488
10499
|
}
|
|
10489
|
-
return /* @__PURE__ */
|
|
10500
|
+
return /* @__PURE__ */ jsxs30(CardContent, { children: [
|
|
10490
10501
|
/* @__PURE__ */ jsx53(OryCardValidationMessages, {}),
|
|
10491
|
-
/* @__PURE__ */
|
|
10502
|
+
/* @__PURE__ */ jsxs30(OryForm, { children: [
|
|
10492
10503
|
/* @__PURE__ */ jsx53(OryFormSocialButtons, {}),
|
|
10493
10504
|
/* @__PURE__ */ jsx53(
|
|
10494
10505
|
OryFormGroups,
|
|
@@ -10517,7 +10528,7 @@ function OryCard({ children }) {
|
|
|
10517
10528
|
if (children) {
|
|
10518
10529
|
return /* @__PURE__ */ jsx53(Card, { children });
|
|
10519
10530
|
}
|
|
10520
|
-
return /* @__PURE__ */
|
|
10531
|
+
return /* @__PURE__ */ jsxs30(Card, { children: [
|
|
10521
10532
|
/* @__PURE__ */ jsx53(OryCardHeader, {}),
|
|
10522
10533
|
/* @__PURE__ */ jsx53(OryCardContent, {}),
|
|
10523
10534
|
/* @__PURE__ */ jsx53(OryCardFooter, {})
|