@anoki/fse-ui 2.1.0-SNAPSHOT16 → 2.1.0-SNAPSHOT18
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/dist/components/navigations/Footer/Footer.css +1 -1
- package/dist/index.cjs109.js +1 -1
- package/dist/index.cjs109.js.map +1 -1
- package/dist/index.cjs267.js +1 -1
- package/dist/index.cjs268.js +1 -1
- package/dist/index.cjs269.js +1 -1
- package/dist/index.cjs299.js +1 -1
- package/dist/index.cjs299.js.map +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs30.js.map +1 -1
- package/dist/index.cjs304.js +1 -1
- package/dist/index.cjs312.js +1 -1
- package/dist/index.cjs312.js.map +1 -1
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs32.js.map +1 -1
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs33.js.map +1 -1
- package/dist/index.cjs330.js +1 -1
- package/dist/index.cjs330.js.map +1 -1
- package/dist/index.cjs361.js +1 -1
- package/dist/index.cjs361.js.map +1 -1
- package/dist/index.cjs40.js +1 -1
- package/dist/index.cjs40.js.map +1 -1
- package/dist/index.cjs402.js +1 -1
- package/dist/index.cjs402.js.map +1 -1
- package/dist/index.cjs408.js +1 -1
- package/dist/index.cjs439.js +1 -1
- package/dist/index.cjs469.js +1 -1
- package/dist/index.cjs475.js +1 -1
- package/dist/index.cjs475.js.map +1 -1
- package/dist/index.cjs476.js +1 -1
- package/dist/index.cjs476.js.map +1 -1
- package/dist/index.cjs477.js +1 -1
- package/dist/index.cjs477.js.map +1 -1
- package/dist/index.cjs478.js +1 -1
- package/dist/index.cjs479.js +1 -1
- package/dist/index.cjs479.js.map +1 -1
- package/dist/index.cjs482.js +1 -1
- package/dist/index.cjs482.js.map +1 -1
- package/dist/{index.cjs480.js → index.cjs483.js} +2 -2
- package/dist/{index.cjs480.js.map → index.cjs483.js.map} +1 -1
- package/dist/index.cjs484.js +2 -0
- package/dist/index.cjs484.js.map +1 -0
- package/dist/index.cjs488.js +1 -1
- package/dist/index.cjs488.js.map +1 -1
- package/dist/index.cjs489.js +1 -1
- package/dist/index.cjs49.js +1 -1
- package/dist/index.cjs49.js.map +1 -1
- package/dist/index.cjs490.js +1 -1
- package/dist/index.cjs490.js.map +1 -1
- package/dist/index.cjs491.js +1 -1
- package/dist/index.cjs491.js.map +1 -1
- package/dist/{index.cjs512.js → index.cjs492.js} +1 -1
- package/dist/{index.cjs512.js.map → index.cjs492.js.map} +1 -1
- package/dist/index.cjs493.js +2 -0
- package/dist/index.cjs493.js.map +1 -0
- package/dist/{index.cjs508.js → index.cjs494.js} +2 -2
- package/dist/index.cjs494.js.map +1 -0
- package/dist/{index.cjs509.js → index.cjs495.js} +1 -1
- package/dist/{index.cjs509.js.map → index.cjs495.js.map} +1 -1
- package/dist/index.cjs496.js +2 -0
- package/dist/index.cjs496.js.map +1 -0
- package/dist/index.cjs497.js +1 -1
- package/dist/index.cjs497.js.map +1 -1
- package/dist/index.cjs498.js +1 -1
- package/dist/index.cjs498.js.map +1 -1
- package/dist/index.cjs499.js +1 -1
- package/dist/index.cjs499.js.map +1 -1
- package/dist/index.cjs500.js +1 -1
- package/dist/index.cjs500.js.map +1 -1
- package/dist/index.cjs501.js +1 -1
- package/dist/index.cjs501.js.map +1 -1
- package/dist/index.cjs503.js +1 -1
- package/dist/index.cjs503.js.map +1 -1
- package/dist/{index.cjs507.js → index.cjs504.js} +1 -1
- package/dist/{index.cjs507.js.map → index.cjs504.js.map} +1 -1
- package/dist/index.cjs523.js +1 -1
- package/dist/index.cjs525.js.map +1 -1
- package/dist/index.cjs526.js +1 -1
- package/dist/index.cjs526.js.map +1 -1
- package/dist/index.cjs531.js +1 -1
- package/dist/index.cjs533.js +1 -1
- package/dist/index.cjs535.js +1 -1
- package/dist/index.cjs535.js.map +1 -1
- package/dist/index.cjs538.js +1 -38
- package/dist/index.cjs538.js.map +1 -1
- package/dist/index.cjs539.js +38 -1
- package/dist/index.cjs539.js.map +1 -1
- package/dist/index.cjs540.js +1 -1
- package/dist/index.cjs540.js.map +1 -1
- package/dist/index.cjs541.js +1 -1
- package/dist/index.cjs541.js.map +1 -1
- package/dist/index.cjs542.js +1 -1
- package/dist/index.cjs542.js.map +1 -1
- package/dist/index.cjs544.js +1 -1
- package/dist/index.cjs547.js +1 -1
- package/dist/index.cjs549.js +1 -1
- package/dist/index.cjs552.js +1 -1
- package/dist/index.cjs553.js +1 -1
- package/dist/index.cjs554.js +1 -1
- package/dist/index.cjs554.js.map +1 -1
- package/dist/index.cjs561.js +1 -1
- package/dist/index.cjs561.js.map +1 -1
- package/dist/index.cjs566.js +1 -1
- package/dist/index.cjs566.js.map +1 -1
- package/dist/index.cjs568.js +1 -1
- package/dist/index.cjs568.js.map +1 -1
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs57.js.map +1 -1
- package/dist/index.cjs574.js +1 -1
- package/dist/index.cjs574.js.map +1 -1
- package/dist/index.cjs575.js +1 -1
- package/dist/index.cjs575.js.map +1 -1
- package/dist/index.cjs576.js +1 -1
- package/dist/index.cjs576.js.map +1 -1
- package/dist/index.cjs577.js +1 -1
- package/dist/index.cjs577.js.map +1 -1
- package/dist/index.cjs578.js +1 -1
- package/dist/index.cjs578.js.map +1 -1
- package/dist/index.cjs584.js +1 -1
- package/dist/index.cjs584.js.map +1 -1
- package/dist/index.cjs585.js +1 -1
- package/dist/index.cjs585.js.map +1 -1
- package/dist/index.cjs591.js +1 -1
- package/dist/index.cjs591.js.map +1 -1
- package/dist/index.cjs592.js +2 -0
- package/dist/index.cjs592.js.map +1 -0
- package/dist/index.cjs593.js +2 -0
- package/dist/index.cjs593.js.map +1 -0
- package/dist/{index.cjs586.js → index.cjs594.js} +1 -1
- package/dist/{index.cjs586.js.map → index.cjs594.js.map} +1 -1
- package/dist/index.cjs595.js +1 -1
- package/dist/index.cjs595.js.map +1 -1
- package/dist/index.cjs596.js +1 -1
- package/dist/index.cjs596.js.map +1 -1
- package/dist/index.cjs597.js +1 -1
- package/dist/index.cjs597.js.map +1 -1
- package/dist/index.cjs599.js +2 -0
- package/dist/index.cjs599.js.map +1 -0
- package/dist/index.cjs600.js +2 -0
- package/dist/index.cjs600.js.map +1 -0
- package/dist/index.cjs601.js +1 -1
- package/dist/index.cjs601.js.map +1 -1
- package/dist/index.cjs602.js +1 -1
- package/dist/index.cjs602.js.map +1 -1
- package/dist/index.cjs70.js +1 -1
- package/dist/index.cjs70.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.es109.js +31 -31
- package/dist/index.es267.js +1 -1
- package/dist/index.es268.js +2 -2
- package/dist/index.es269.js +2 -2
- package/dist/index.es299.js +17 -18
- package/dist/index.es299.js.map +1 -1
- package/dist/index.es30.js +10 -10
- package/dist/index.es30.js.map +1 -1
- package/dist/index.es304.js +1 -1
- package/dist/index.es312.js +119 -236
- package/dist/index.es312.js.map +1 -1
- package/dist/index.es32.js +21 -21
- package/dist/index.es33.js +31 -31
- package/dist/index.es330.js +24 -25
- package/dist/index.es330.js.map +1 -1
- package/dist/index.es361.js +88 -103
- package/dist/index.es361.js.map +1 -1
- package/dist/index.es40.js +13 -13
- package/dist/index.es40.js.map +1 -1
- package/dist/index.es402.js +1 -1
- package/dist/index.es402.js.map +1 -1
- package/dist/index.es408.js +1 -1
- package/dist/index.es439.js +1 -1
- package/dist/index.es469.js +1 -1
- package/dist/index.es475.js +21 -43
- package/dist/index.es475.js.map +1 -1
- package/dist/index.es476.js +1 -2
- package/dist/index.es476.js.map +1 -1
- package/dist/index.es477.js +128 -128
- package/dist/index.es477.js.map +1 -1
- package/dist/index.es478.js +1 -1
- package/dist/index.es479.js +15 -6
- package/dist/index.es479.js.map +1 -1
- package/dist/index.es482.js +6 -15
- package/dist/index.es482.js.map +1 -1
- package/dist/{index.es480.js → index.es483.js} +2 -2
- package/dist/{index.es480.js.map → index.es483.js.map} +1 -1
- package/dist/{index.es481.js → index.es484.js} +4 -4
- package/dist/index.es484.js.map +1 -0
- package/dist/index.es488.js +8 -131
- package/dist/index.es488.js.map +1 -1
- package/dist/index.es489.js +1 -1
- package/dist/index.es49.js +15 -15
- package/dist/index.es490.js +3 -9
- package/dist/index.es490.js.map +1 -1
- package/dist/index.es491.js +131 -2
- package/dist/index.es491.js.map +1 -1
- package/dist/{index.es512.js → index.es492.js} +1 -1
- package/dist/{index.es512.js.map → index.es492.js.map} +1 -1
- package/dist/index.es493.js +59 -0
- package/dist/index.es493.js.map +1 -0
- package/dist/{index.es508.js → index.es494.js} +2 -2
- package/dist/index.es494.js.map +1 -0
- package/dist/{index.es509.js → index.es495.js} +1 -1
- package/dist/{index.es509.js.map → index.es495.js.map} +1 -1
- package/dist/index.es496.js +128 -0
- package/dist/index.es496.js.map +1 -0
- package/dist/index.es497.js +12 -122
- package/dist/index.es497.js.map +1 -1
- package/dist/index.es498.js +1 -1
- package/dist/index.es498.js.map +1 -1
- package/dist/index.es499.js +217 -13
- package/dist/index.es499.js.map +1 -1
- package/dist/index.es500.js +13 -14
- package/dist/index.es500.js.map +1 -1
- package/dist/index.es501.js +178 -9
- package/dist/index.es501.js.map +1 -1
- package/dist/index.es503.js +9 -57
- package/dist/index.es503.js.map +1 -1
- package/dist/{index.es507.js → index.es504.js} +1 -1
- package/dist/{index.es507.js.map → index.es504.js.map} +1 -1
- package/dist/index.es523.js +1 -1
- package/dist/index.es525.js.map +1 -1
- package/dist/index.es526.js +6 -10
- package/dist/index.es526.js.map +1 -1
- package/dist/index.es531.js +1 -1
- package/dist/index.es533.js +4 -4
- package/dist/index.es535.js +149 -153
- package/dist/index.es535.js.map +1 -1
- package/dist/index.es538.js +65 -69
- package/dist/index.es538.js.map +1 -1
- package/dist/index.es539.js +68 -8
- package/dist/index.es539.js.map +1 -1
- package/dist/index.es540.js +9 -14
- package/dist/index.es540.js.map +1 -1
- package/dist/index.es541.js +14 -62
- package/dist/index.es541.js.map +1 -1
- package/dist/index.es542.js +61 -64
- package/dist/index.es542.js.map +1 -1
- package/dist/index.es544.js +3 -3
- package/dist/index.es547.js +3 -3
- package/dist/index.es549.js +1 -1
- package/dist/index.es552.js +2 -2
- package/dist/index.es553.js +2 -2
- package/dist/index.es554.js +16 -17
- package/dist/index.es554.js.map +1 -1
- package/dist/index.es561.js +5 -5
- package/dist/index.es561.js.map +1 -1
- package/dist/index.es566.js +39 -39
- package/dist/index.es566.js.map +1 -1
- package/dist/index.es568.js +21 -21
- package/dist/index.es568.js.map +1 -1
- package/dist/index.es57.js +13 -13
- package/dist/index.es574.js +6 -2
- package/dist/index.es574.js.map +1 -1
- package/dist/index.es575.js +16 -2
- package/dist/index.es575.js.map +1 -1
- package/dist/index.es576.js +2 -2
- package/dist/index.es576.js.map +1 -1
- package/dist/index.es577.js +2 -16
- package/dist/index.es577.js.map +1 -1
- package/dist/index.es578.js +2 -6
- package/dist/index.es578.js.map +1 -1
- package/dist/index.es584.js +74 -13
- package/dist/index.es584.js.map +1 -1
- package/dist/index.es585.js +2 -28
- package/dist/index.es585.js.map +1 -1
- package/dist/index.es591.js +23 -2
- package/dist/index.es591.js.map +1 -1
- package/dist/index.es592.js +16 -0
- package/dist/index.es592.js.map +1 -0
- package/dist/index.es593.js +31 -0
- package/dist/index.es593.js.map +1 -0
- package/dist/{index.es586.js → index.es594.js} +1 -1
- package/dist/{index.es586.js.map → index.es594.js.map} +1 -1
- package/dist/index.es595.js +4 -3
- package/dist/index.es595.js.map +1 -1
- package/dist/index.es596.js +3 -2
- package/dist/index.es596.js.map +1 -1
- package/dist/index.es597.js +2 -4
- package/dist/index.es597.js.map +1 -1
- package/dist/index.es599.js +24 -0
- package/dist/index.es599.js.map +1 -0
- package/dist/index.es600.js +5 -0
- package/dist/index.es600.js.map +1 -0
- package/dist/index.es601.js +52 -19
- package/dist/index.es601.js.map +1 -1
- package/dist/index.es602.js +203 -2
- package/dist/index.es602.js.map +1 -1
- package/dist/index.es70.js +20 -20
- package/package.json +1 -1
- package/dist/index.cjs481.js +0 -2
- package/dist/index.cjs481.js.map +0 -1
- package/dist/index.cjs508.js.map +0 -1
- package/dist/index.cjs510.js +0 -2
- package/dist/index.cjs510.js.map +0 -1
- package/dist/index.cjs511.js +0 -2
- package/dist/index.cjs511.js.map +0 -1
- package/dist/index.cjs587.js +0 -2
- package/dist/index.cjs587.js.map +0 -1
- package/dist/index.cjs590.js +0 -2
- package/dist/index.cjs590.js.map +0 -1
- package/dist/index.cjs603.js +0 -2
- package/dist/index.cjs603.js.map +0 -1
- package/dist/index.cjs604.js +0 -2
- package/dist/index.cjs604.js.map +0 -1
- package/dist/index.es481.js.map +0 -1
- package/dist/index.es508.js.map +0 -1
- package/dist/index.es510.js +0 -221
- package/dist/index.es510.js.map +0 -1
- package/dist/index.es511.js +0 -184
- package/dist/index.es511.js.map +0 -1
- package/dist/index.es587.js +0 -26
- package/dist/index.es587.js.map +0 -1
- package/dist/index.es590.js +0 -77
- package/dist/index.es590.js.map +0 -1
- package/dist/index.es603.js +0 -57
- package/dist/index.es603.js.map +0 -1
- package/dist/index.es604.js +0 -206
- package/dist/index.es604.js.map +0 -1
- /package/dist/components/ui/{CardMapDoctorV2/CardMapDoctorV2.css → CardMapDoctor/CardMapDoctor.css} +0 -0
package/dist/index.es402.js
CHANGED
|
@@ -3,7 +3,7 @@ import { createContextScope as T } from "./index.es474.js";
|
|
|
3
3
|
import { useComposedRefs as A } from "./index.es473.js";
|
|
4
4
|
import { createDialogScope as v, Root as O, Portal as j, Overlay as b, WarningProvider as w, Content as M, Title as I, Description as L, Close as f, Trigger as $ } from "./index.es330.js";
|
|
5
5
|
import { composeEventHandlers as F } from "./index.es472.js";
|
|
6
|
-
import { createSlottable as G } from "./index.
|
|
6
|
+
import { createSlottable as G } from "./index.es493.js";
|
|
7
7
|
import { j as i } from "./index.es249.js";
|
|
8
8
|
var D = "AlertDialog", [W, te] = T(D, [
|
|
9
9
|
v
|
package/dist/index.es402.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es402.js","sources":["../node_modules/@radix-ui/react-alert-dialog/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/alert-dialog.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { createDialogScope } from \"@radix-ui/react-dialog\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createSlottable } from \"@radix-ui/react-slot\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar ROOT_NAME = \"AlertDialog\";\nvar [createAlertDialogContext, createAlertDialogScope] = createContextScope(ROOT_NAME, [\n createDialogScope\n]);\nvar useDialogScope = createDialogScope();\nvar AlertDialog = (props) => {\n const { __scopeAlertDialog, ...alertDialogProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Root, { ...dialogScope, ...alertDialogProps, modal: true });\n};\nAlertDialog.displayName = ROOT_NAME;\nvar TRIGGER_NAME = \"AlertDialogTrigger\";\nvar AlertDialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...triggerProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { ...dialogScope, ...triggerProps, ref: forwardedRef });\n }\n);\nAlertDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"AlertDialogPortal\";\nvar AlertDialogPortal = (props) => {\n const { __scopeAlertDialog, ...portalProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { ...dialogScope, ...portalProps });\n};\nAlertDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"AlertDialogOverlay\";\nvar AlertDialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...overlayProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Overlay, { ...dialogScope, ...overlayProps, ref: forwardedRef });\n }\n);\nAlertDialogOverlay.displayName = OVERLAY_NAME;\nvar CONTENT_NAME = \"AlertDialogContent\";\nvar [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME);\nvar Slottable = createSlottable(\"AlertDialogContent\");\nvar AlertDialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, children, ...contentProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n const cancelRef = React.useRef(null);\n return /* @__PURE__ */ jsx(\n DialogPrimitive.WarningProvider,\n {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"alert-dialog\",\n children: /* @__PURE__ */ jsx(AlertDialogContentProvider, { scope: __scopeAlertDialog, cancelRef, children: /* @__PURE__ */ jsxs(\n DialogPrimitive.Content,\n {\n role: \"alertdialog\",\n ...dialogScope,\n ...contentProps,\n ref: composedRefs,\n onOpenAutoFocus: composeEventHandlers(contentProps.onOpenAutoFocus, (event) => {\n event.preventDefault();\n cancelRef.current?.focus({ preventScroll: true });\n }),\n onPointerDownOutside: (event) => event.preventDefault(),\n onInteractOutside: (event) => event.preventDefault(),\n children: [\n /* @__PURE__ */ jsx(Slottable, { children }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef })\n ]\n }\n ) })\n }\n );\n }\n);\nAlertDialogContent.displayName = CONTENT_NAME;\nvar TITLE_NAME = \"AlertDialogTitle\";\nvar AlertDialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...titleProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Title, { ...dialogScope, ...titleProps, ref: forwardedRef });\n }\n);\nAlertDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"AlertDialogDescription\";\nvar AlertDialogDescription = React.forwardRef((props, forwardedRef) => {\n const { __scopeAlertDialog, ...descriptionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Description, { ...dialogScope, ...descriptionProps, ref: forwardedRef });\n});\nAlertDialogDescription.displayName = DESCRIPTION_NAME;\nvar ACTION_NAME = \"AlertDialogAction\";\nvar AlertDialogAction = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...actionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...actionProps, ref: forwardedRef });\n }\n);\nAlertDialogAction.displayName = ACTION_NAME;\nvar CANCEL_NAME = \"AlertDialogCancel\";\nvar AlertDialogCancel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...cancelProps } = props;\n const { cancelRef } = useAlertDialogContentContext(CANCEL_NAME, __scopeAlertDialog);\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const ref = useComposedRefs(forwardedRef, cancelRef);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...cancelProps, ref });\n }\n);\nAlertDialogCancel.displayName = CANCEL_NAME;\nvar DescriptionWarning = ({ contentRef }) => {\n const MESSAGE = `\\`${CONTENT_NAME}\\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \\`${CONTENT_NAME}\\` by passing a \\`${DESCRIPTION_NAME}\\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \\`id\\` and passing the same value to the \\`aria-describedby\\` prop in \\`${CONTENT_NAME}\\`. If the description is confusing or duplicative for sighted users, you can use the \\`@radix-ui/react-visually-hidden\\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;\n React.useEffect(() => {\n const hasDescription = document.getElementById(\n contentRef.current?.getAttribute(\"aria-describedby\")\n );\n if (!hasDescription) console.warn(MESSAGE);\n }, [MESSAGE, contentRef]);\n return null;\n};\nvar Root2 = AlertDialog;\nvar Trigger2 = AlertDialogTrigger;\nvar Portal2 = AlertDialogPortal;\nvar Overlay2 = AlertDialogOverlay;\nvar Content2 = AlertDialogContent;\nvar Action = AlertDialogAction;\nvar Cancel = AlertDialogCancel;\nvar Title2 = AlertDialogTitle;\nvar Description2 = AlertDialogDescription;\nexport {\n Action,\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogOverlay,\n AlertDialogPortal,\n AlertDialogTitle,\n AlertDialogTrigger,\n Cancel,\n Content2 as Content,\n Description2 as Description,\n Overlay2 as Overlay,\n Portal2 as Portal,\n Root2 as Root,\n Title2 as Title,\n Trigger2 as Trigger,\n createAlertDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["ROOT_NAME","createAlertDialogContext","createAlertDialogScope","createContextScope","createDialogScope","useDialogScope","AlertDialog","props","__scopeAlertDialog","alertDialogProps","dialogScope","jsx","DialogPrimitive.Root","TRIGGER_NAME","AlertDialogTrigger","React","forwardedRef","triggerProps","DialogPrimitive.Trigger","PORTAL_NAME","AlertDialogPortal","portalProps","DialogPrimitive.Portal","OVERLAY_NAME","AlertDialogOverlay","overlayProps","DialogPrimitive.Overlay","CONTENT_NAME","AlertDialogContentProvider","useAlertDialogContentContext","Slottable","createSlottable","AlertDialogContent","children","contentProps","contentRef","composedRefs","useComposedRefs","cancelRef","DialogPrimitive.WarningProvider","TITLE_NAME","jsxs","DialogPrimitive.Content","composeEventHandlers","event","_a","DescriptionWarning","AlertDialogTitle","titleProps","DialogPrimitive.Title","DESCRIPTION_NAME","AlertDialogDescription","descriptionProps","DialogPrimitive.Description","ACTION_NAME","AlertDialogAction","actionProps","DialogPrimitive.Close","CANCEL_NAME","AlertDialogCancel","cancelProps","ref","MESSAGE","Root2","Portal2","Overlay2","Content2","Cancel","Title2","Description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KAAKnC,CAAY;AAAA;AAAA,qCAEEA,CAAY,qBAAqBuB,CAAgB;AAAA;AAAA,4JAEsEvB,CAAY;AAAA;AAAA;AAGtK,SAAAZ,EAAM,UAAU,MAAM;;AAIpB,IAHuB,SAAS;AAAA,OAC9B8B,IAAAV,EAAW,YAAX,gBAAAU,EAAoB,aAAa;AAAA,IAClC,KACoB,QAAQ,KAAKiB,CAAO;AAAA,EAC7C,GAAK,CAACA,GAAS3B,CAAU,CAAC,GACjB;AACT,GACI4B,KAAQzD,GAER0D,KAAU5C,GACV6C,KAAWzC,GACX0C,KAAWlC,GAEXmC,KAASR,GACTS,KAASrB,GACTsB,KAAelB;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.es402.js","sources":["../node_modules/@radix-ui/react-alert-dialog/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/alert-dialog/src/alert-dialog.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { createDialogScope } from \"@radix-ui/react-dialog\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createSlottable } from \"@radix-ui/react-slot\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar ROOT_NAME = \"AlertDialog\";\nvar [createAlertDialogContext, createAlertDialogScope] = createContextScope(ROOT_NAME, [\n createDialogScope\n]);\nvar useDialogScope = createDialogScope();\nvar AlertDialog = (props) => {\n const { __scopeAlertDialog, ...alertDialogProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Root, { ...dialogScope, ...alertDialogProps, modal: true });\n};\nAlertDialog.displayName = ROOT_NAME;\nvar TRIGGER_NAME = \"AlertDialogTrigger\";\nvar AlertDialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...triggerProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { ...dialogScope, ...triggerProps, ref: forwardedRef });\n }\n);\nAlertDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"AlertDialogPortal\";\nvar AlertDialogPortal = (props) => {\n const { __scopeAlertDialog, ...portalProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { ...dialogScope, ...portalProps });\n};\nAlertDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"AlertDialogOverlay\";\nvar AlertDialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...overlayProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Overlay, { ...dialogScope, ...overlayProps, ref: forwardedRef });\n }\n);\nAlertDialogOverlay.displayName = OVERLAY_NAME;\nvar CONTENT_NAME = \"AlertDialogContent\";\nvar [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME);\nvar Slottable = createSlottable(\"AlertDialogContent\");\nvar AlertDialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, children, ...contentProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n const cancelRef = React.useRef(null);\n return /* @__PURE__ */ jsx(\n DialogPrimitive.WarningProvider,\n {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"alert-dialog\",\n children: /* @__PURE__ */ jsx(AlertDialogContentProvider, { scope: __scopeAlertDialog, cancelRef, children: /* @__PURE__ */ jsxs(\n DialogPrimitive.Content,\n {\n role: \"alertdialog\",\n ...dialogScope,\n ...contentProps,\n ref: composedRefs,\n onOpenAutoFocus: composeEventHandlers(contentProps.onOpenAutoFocus, (event) => {\n event.preventDefault();\n cancelRef.current?.focus({ preventScroll: true });\n }),\n onPointerDownOutside: (event) => event.preventDefault(),\n onInteractOutside: (event) => event.preventDefault(),\n children: [\n /* @__PURE__ */ jsx(Slottable, { children }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef })\n ]\n }\n ) })\n }\n );\n }\n);\nAlertDialogContent.displayName = CONTENT_NAME;\nvar TITLE_NAME = \"AlertDialogTitle\";\nvar AlertDialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...titleProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Title, { ...dialogScope, ...titleProps, ref: forwardedRef });\n }\n);\nAlertDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"AlertDialogDescription\";\nvar AlertDialogDescription = React.forwardRef((props, forwardedRef) => {\n const { __scopeAlertDialog, ...descriptionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Description, { ...dialogScope, ...descriptionProps, ref: forwardedRef });\n});\nAlertDialogDescription.displayName = DESCRIPTION_NAME;\nvar ACTION_NAME = \"AlertDialogAction\";\nvar AlertDialogAction = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...actionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...actionProps, ref: forwardedRef });\n }\n);\nAlertDialogAction.displayName = ACTION_NAME;\nvar CANCEL_NAME = \"AlertDialogCancel\";\nvar AlertDialogCancel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...cancelProps } = props;\n const { cancelRef } = useAlertDialogContentContext(CANCEL_NAME, __scopeAlertDialog);\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const ref = useComposedRefs(forwardedRef, cancelRef);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...cancelProps, ref });\n }\n);\nAlertDialogCancel.displayName = CANCEL_NAME;\nvar DescriptionWarning = ({ contentRef }) => {\n const MESSAGE = `\\`${CONTENT_NAME}\\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \\`${CONTENT_NAME}\\` by passing a \\`${DESCRIPTION_NAME}\\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \\`id\\` and passing the same value to the \\`aria-describedby\\` prop in \\`${CONTENT_NAME}\\`. If the description is confusing or duplicative for sighted users, you can use the \\`@radix-ui/react-visually-hidden\\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;\n React.useEffect(() => {\n const hasDescription = document.getElementById(\n contentRef.current?.getAttribute(\"aria-describedby\")\n );\n if (!hasDescription) console.warn(MESSAGE);\n }, [MESSAGE, contentRef]);\n return null;\n};\nvar Root2 = AlertDialog;\nvar Trigger2 = AlertDialogTrigger;\nvar Portal2 = AlertDialogPortal;\nvar Overlay2 = AlertDialogOverlay;\nvar Content2 = AlertDialogContent;\nvar Action = AlertDialogAction;\nvar Cancel = AlertDialogCancel;\nvar Title2 = AlertDialogTitle;\nvar Description2 = AlertDialogDescription;\nexport {\n Action,\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogOverlay,\n AlertDialogPortal,\n AlertDialogTitle,\n AlertDialogTrigger,\n Cancel,\n Content2 as Content,\n Description2 as Description,\n Overlay2 as Overlay,\n Portal2 as Portal,\n Root2 as Root,\n Title2 as Title,\n Trigger2 as Trigger,\n createAlertDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["ROOT_NAME","createAlertDialogContext","createAlertDialogScope","createContextScope","createDialogScope","useDialogScope","AlertDialog","props","__scopeAlertDialog","alertDialogProps","dialogScope","jsx","DialogPrimitive.Root","TRIGGER_NAME","AlertDialogTrigger","React","forwardedRef","triggerProps","DialogPrimitive.Trigger","PORTAL_NAME","AlertDialogPortal","portalProps","DialogPrimitive.Portal","OVERLAY_NAME","AlertDialogOverlay","overlayProps","DialogPrimitive.Overlay","CONTENT_NAME","AlertDialogContentProvider","useAlertDialogContentContext","Slottable","createSlottable","AlertDialogContent","children","contentProps","contentRef","composedRefs","useComposedRefs","cancelRef","DialogPrimitive.WarningProvider","TITLE_NAME","jsxs","DialogPrimitive.Content","composeEventHandlers","event","_a","DescriptionWarning","AlertDialogTitle","titleProps","DialogPrimitive.Title","DESCRIPTION_NAME","AlertDialogDescription","descriptionProps","DialogPrimitive.Description","ACTION_NAME","AlertDialogAction","actionProps","DialogPrimitive.Close","CANCEL_NAME","AlertDialogCancel","cancelProps","ref","MESSAGE","Root2","Portal2","Overlay2","Content2","Cancel","Title2","Description2"],"mappings":";;;;;;;AAWA,IAAIA,IAAY,eACZ,CAACC,GAA0BC,EAAsB,IAAIC,EAAmBH,GAAW;AAAA,EACrFI;AACF,CAAC,GACGC,IAAiBD,EAAmB,GACpCE,IAAc,CAACC,MAAU;AAC3B,QAAM,EAAE,oBAAAC,GAAoB,GAAGC,EAAgB,IAAKF,GAC9CG,IAAcL,EAAeG,CAAkB;AACrD,SAAuBG,gBAAAA,EAAG,IAACC,GAAsB,EAAE,GAAGF,GAAa,GAAGD,GAAkB,OAAO,IAAM;AACvG;AACAH,EAAY,cAAcN;AAC1B,IAAIa,IAAe,sBACfC,IAAqBC,EAAM;AAAA,EAC7B,CAACR,GAAOS,MAAiB;AACvB,UAAM,EAAE,oBAAAR,GAAoB,GAAGS,EAAY,IAAKV,GAC1CG,IAAcL,EAAeG,CAAkB;AACrD,WAAuBG,gBAAAA,EAAG,IAACO,GAAyB,EAAE,GAAGR,GAAa,GAAGO,GAAc,KAAKD,GAAc;AAAA,EAC9G;AACA;AACAF,EAAmB,cAAcD;AACjC,IAAIM,IAAc,qBACdC,IAAoB,CAACb,MAAU;AACjC,QAAM,EAAE,oBAAAC,GAAoB,GAAGa,EAAW,IAAKd,GAC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AACAuC,EAAkB,cAAcD;AAChC,IAAII,IAAc,qBACdC,IAAoB5C,EAAM;AAAA,EAC5B,CAACR,GAAOS,MAAiB;AACvB,UAAM,EAAE,oBAAAR,GAAoB,GAAGoD,EAAW,IAAKrD,GACzC,EAAE,WAAA+B,EAAW,IAAGT,EAA6B6B,GAAalD,CAAkB,GAC5EE,IAAcL,EAAeG,CAAkB,GAC/CqD,IAAMxB,EAAgBrB,GAAcsB,CAAS;AACnD,WAAuB3B,gBAAAA,EAAAA,IAAI8C,GAAuB,EAAE,GAAG/C,GAAa,GAAGkD,GAAa,KAAAC,GAAK;AAAA,EAC7F;AACA;AACAF,EAAkB,cAAcD;AAChC,IAAIZ,IAAqB,CAAC,EAAE,YAAAX,QAAiB;AAC3C,QAAM2B,IAAU,KAAKnC,CAAY;AAAA;AAAA,qCAEEA,CAAY,qBAAqBuB,CAAgB;AAAA;AAAA,4JAEsEvB,CAAY;AAAA;AAAA;AAGtK,SAAAZ,EAAM,UAAU,MAAM;;AAIpB,IAHuB,SAAS;AAAA,OAC9B8B,IAAAV,EAAW,YAAX,gBAAAU,EAAoB,aAAa;AAAA,IAClC,KACoB,QAAQ,KAAKiB,CAAO;AAAA,EAC7C,GAAK,CAACA,GAAS3B,CAAU,CAAC,GACjB;AACT,GACI4B,KAAQzD,GAER0D,KAAU5C,GACV6C,KAAWzC,GACX0C,KAAWlC,GAEXmC,KAASR,GACTS,KAASrB,GACTsB,KAAelB;","x_google_ignoreList":[0]}
|
package/dist/index.es408.js
CHANGED
package/dist/index.es439.js
CHANGED
package/dist/index.es469.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as R, a as _ } from "./index.
|
|
1
|
+
import { g as R, a as _ } from "./index.es491.js";
|
|
2
2
|
import { w as k, e as D, h as se, c as Z, p as N, x as we, u as W, n as ee, t as ce, j as Se, q as Te, r as xe, s as $, f as re, v as be, d as Y, a as ye } from "./index.es489.js";
|
|
3
3
|
let X;
|
|
4
4
|
function Ee() {
|
package/dist/index.es475.js
CHANGED
|
@@ -1,55 +1,33 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
function y({
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import { useCallbackRef as f } from "./index.es492.js";
|
|
3
|
+
function R({
|
|
5
4
|
prop: t,
|
|
6
|
-
defaultProp:
|
|
7
|
-
onChange:
|
|
8
|
-
},
|
|
9
|
-
caller: i
|
|
10
|
-
}) {
|
|
11
|
-
const [l, e, r] = w({
|
|
12
|
-
defaultProp: u,
|
|
13
|
-
onChange: o
|
|
14
|
-
}), c = t !== void 0, a = c ? t : l;
|
|
15
|
-
{
|
|
16
|
-
const s = n.useRef(t !== void 0);
|
|
17
|
-
n.useEffect(() => {
|
|
18
|
-
const f = s.current;
|
|
19
|
-
f !== c && console.warn(
|
|
20
|
-
`${i} is changing from ${f ? "controlled" : "uncontrolled"} to ${c ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
|
|
21
|
-
), s.current = c;
|
|
22
|
-
}, [c, i]);
|
|
5
|
+
defaultProp: r,
|
|
6
|
+
onChange: s = () => {
|
|
23
7
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
if (
|
|
28
|
-
const
|
|
29
|
-
|
|
8
|
+
}) {
|
|
9
|
+
const [e, n] = v({ defaultProp: r, onChange: s }), o = t !== void 0, i = o ? t : e, u = f(s), d = l.useCallback(
|
|
10
|
+
(c) => {
|
|
11
|
+
if (o) {
|
|
12
|
+
const a = typeof c == "function" ? c(t) : c;
|
|
13
|
+
a !== t && u(a);
|
|
30
14
|
} else
|
|
31
|
-
|
|
15
|
+
n(c);
|
|
32
16
|
},
|
|
33
|
-
[
|
|
17
|
+
[o, t, n, u]
|
|
34
18
|
);
|
|
35
|
-
return [
|
|
19
|
+
return [i, d];
|
|
36
20
|
}
|
|
37
|
-
function
|
|
21
|
+
function v({
|
|
38
22
|
defaultProp: t,
|
|
39
|
-
onChange:
|
|
23
|
+
onChange: r
|
|
40
24
|
}) {
|
|
41
|
-
const
|
|
42
|
-
return
|
|
43
|
-
e.current =
|
|
44
|
-
}, [
|
|
45
|
-
var r;
|
|
46
|
-
l.current !== o && ((r = e.current) == null || r.call(e, o), l.current = o);
|
|
47
|
-
}, [o, l]), [o, i, e];
|
|
48
|
-
}
|
|
49
|
-
function R(t) {
|
|
50
|
-
return typeof t == "function";
|
|
25
|
+
const s = l.useState(t), [e] = s, n = l.useRef(e), o = f(r);
|
|
26
|
+
return l.useEffect(() => {
|
|
27
|
+
n.current !== e && (o(e), n.current = e);
|
|
28
|
+
}, [e, n, o]), s;
|
|
51
29
|
}
|
|
52
30
|
export {
|
|
53
|
-
|
|
31
|
+
R as useControllableState
|
|
54
32
|
};
|
|
55
33
|
//# sourceMappingURL=index.es475.js.map
|
package/dist/index.es475.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es475.js","sources":["../node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs"],"sourcesContent":["// src/use-controllable-state.tsx\nimport * as React from \"react\";\nimport {
|
|
1
|
+
{"version":3,"file":"index.es475.js","sources":["../node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs"],"sourcesContent":["// packages/react/use-controllable-state/src/use-controllable-state.tsx\nimport * as React from \"react\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nfunction useControllableState({\n prop,\n defaultProp,\n onChange = () => {\n }\n}) {\n const [uncontrolledProp, setUncontrolledProp] = useUncontrolledState({ defaultProp, onChange });\n const isControlled = prop !== void 0;\n const value = isControlled ? prop : uncontrolledProp;\n const handleChange = useCallbackRef(onChange);\n const setValue = React.useCallback(\n (nextValue) => {\n if (isControlled) {\n const setter = nextValue;\n const value2 = typeof nextValue === \"function\" ? setter(prop) : nextValue;\n if (value2 !== prop) handleChange(value2);\n } else {\n setUncontrolledProp(nextValue);\n }\n },\n [isControlled, prop, setUncontrolledProp, handleChange]\n );\n return [value, setValue];\n}\nfunction useUncontrolledState({\n defaultProp,\n onChange\n}) {\n const uncontrolledState = React.useState(defaultProp);\n const [value] = uncontrolledState;\n const prevValueRef = React.useRef(value);\n const handleChange = useCallbackRef(onChange);\n React.useEffect(() => {\n if (prevValueRef.current !== value) {\n handleChange(value);\n prevValueRef.current = value;\n }\n }, [value, prevValueRef, handleChange]);\n return uncontrolledState;\n}\nexport {\n useControllableState\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useControllableState","prop","defaultProp","onChange","uncontrolledProp","setUncontrolledProp","useUncontrolledState","isControlled","value","handleChange","useCallbackRef","setValue","React","nextValue","value2","uncontrolledState","prevValueRef"],"mappings":";;AAGA,SAASA,EAAqB;AAAA,EAC5B,MAAAC;AAAA,EACA,aAAAC;AAAA,EACA,UAAAC,IAAW,MAAM;AAAA,EACnB;AACA,GAAG;AACD,QAAM,CAACC,GAAkBC,CAAmB,IAAIC,EAAqB,EAAE,aAAAJ,GAAa,UAAAC,GAAU,GACxFI,IAAeN,MAAS,QACxBO,IAAQD,IAAeN,IAAOG,GAC9BK,IAAeC,EAAeP,CAAQ,GACtCQ,IAAWC,EAAM;AAAA,IACrB,CAACC,MAAc;AACb,UAAIN,GAAc;AAEhB,cAAMO,IAAS,OAAOD,KAAc,aADrBA,EACyCZ,CAAI,IAAIY;AAChE,QAAIC,MAAWb,KAAMQ,EAAaK,CAAM;AAAA,MAChD;AACQ,QAAAT,EAAoBQ,CAAS;AAAA,IAEhC;AAAA,IACD,CAACN,GAAcN,GAAMI,GAAqBI,CAAY;AAAA,EACvD;AACD,SAAO,CAACD,GAAOG,CAAQ;AACzB;AACA,SAASL,EAAqB;AAAA,EAC5B,aAAAJ;AAAA,EACA,UAAAC;AACF,GAAG;AACD,QAAMY,IAAoBH,EAAM,SAASV,CAAW,GAC9C,CAACM,CAAK,IAAIO,GACVC,IAAeJ,EAAM,OAAOJ,CAAK,GACjCC,IAAeC,EAAeP,CAAQ;AAC5C,SAAAS,EAAM,UAAU,MAAM;AACpB,IAAII,EAAa,YAAYR,MAC3BC,EAAaD,CAAK,GAClBQ,EAAa,UAAUR;AAAA,EAE1B,GAAE,CAACA,GAAOQ,GAAcP,CAAY,CAAC,GAC/BM;AACT;","x_google_ignoreList":[0]}
|
package/dist/index.es476.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as p from "react";
|
|
2
2
|
import * as f from "react-dom";
|
|
3
|
-
import { createSlot as c } from "./index.
|
|
3
|
+
import { createSlot as c } from "./index.es493.js";
|
|
4
4
|
import { j as u } from "./index.es249.js";
|
|
5
5
|
var l = [
|
|
6
6
|
"a",
|
|
@@ -16,7 +16,6 @@ var l = [
|
|
|
16
16
|
"nav",
|
|
17
17
|
"ol",
|
|
18
18
|
"p",
|
|
19
|
-
"select",
|
|
20
19
|
"span",
|
|
21
20
|
"svg",
|
|
22
21
|
"ul"
|
package/dist/index.es476.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es476.js","sources":["../node_modules/@radix-ui/react-primitive/dist/index.mjs"],"sourcesContent":["// src/primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"
|
|
1
|
+
{"version":3,"file":"index.es476.js","sources":["../node_modules/@radix-ui/react-primitive/dist/index.mjs"],"sourcesContent":["// packages/react/primitive/src/primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Slot = createSlot(`Primitive.${node}`);\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\nvar Root = Primitive;\nexport {\n Primitive,\n Root,\n dispatchDiscreteCustomEvent\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["NODES","Primitive","primitive","node","Slot","createSlot","Node","React","props","forwardedRef","asChild","primitiveProps","Comp","jsx","dispatchDiscreteCustomEvent","target","event","ReactDOM"],"mappings":";;;;AAKA,IAAIA,IAAQ;AAAA,EACV;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GACIC,IAAYD,EAAM,OAAO,CAACE,GAAWC,MAAS;AAChD,QAAMC,IAAOC,EAAW,aAAaF,CAAI,EAAE,GACrCG,IAAOC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACrD,UAAM,EAAE,SAAAC,GAAS,GAAGC,EAAc,IAAKH,GACjCI,IAAOF,IAAUN,IAAOD;AAC9B,WAAI,OAAO,SAAW,QACpB,OAAO,OAAO,IAAI,UAAU,CAAC,IAAI,KAEZU,gBAAAA,EAAAA,IAAID,GAAM,EAAE,GAAGD,GAAgB,KAAKF,GAAc;AAAA,EAC7E,CAAG;AACD,SAAAH,EAAK,cAAc,aAAaH,CAAI,IAC7B,EAAE,GAAGD,GAAW,CAACC,CAAI,GAAGG,EAAM;AACvC,GAAG,CAAE,CAAA;AACL,SAASQ,EAA4BC,GAAQC,GAAO;AAClD,EAAID,KAAQE,EAAS,UAAU,MAAMF,EAAO,cAAcC,CAAK,CAAC;AAClE;","x_google_ignoreList":[0]}
|