@yahoo/uds 3.114.0-beta.3 → 3.115.0-beta.1
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/automated-config/dist/generated/autoVariants.cjs +3 -0
- package/dist/automated-config/dist/generated/autoVariants.d.cts +3 -0
- package/dist/automated-config/dist/generated/autoVariants.d.ts +3 -0
- package/dist/automated-config/dist/generated/autoVariants.js +3 -0
- package/dist/automated-config/dist/generated/generatedConfigs.cjs +1883 -0
- package/dist/automated-config/dist/generated/generatedConfigs.d.cts +175 -1
- package/dist/automated-config/dist/generated/generatedConfigs.d.ts +175 -1
- package/dist/automated-config/dist/generated/generatedConfigs.js +1882 -1
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.cjs +84 -0
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.d.cts +3 -1
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.d.ts +3 -1
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.js +84 -0
- package/dist/automated-config/dist/properties.cjs +57 -11
- package/dist/automated-config/dist/properties.d.cts +8 -0
- package/dist/automated-config/dist/properties.d.ts +8 -0
- package/dist/automated-config/dist/properties.js +57 -11
- package/dist/automated-config/dist/utils/getConfigVariantProperties.d.cts +2 -2
- package/dist/automated-config/dist/utils/getConfigVariantProperties.d.ts +2 -2
- package/dist/cli/commands/sync.cjs +4 -0
- package/dist/cli/commands/sync.js +4 -0
- package/dist/components/Scrim.cjs +28 -0
- package/dist/components/Scrim.d.cts +14 -0
- package/dist/components/Scrim.d.ts +14 -0
- package/dist/components/Scrim.js +26 -0
- package/dist/components/client/BottomSheet/BottomSheet.cjs +209 -0
- package/dist/components/client/BottomSheet/BottomSheet.d.cts +77 -0
- package/dist/components/client/BottomSheet/BottomSheet.d.ts +77 -0
- package/dist/components/client/BottomSheet/BottomSheet.js +207 -0
- package/dist/components/client/BottomSheet/BottomSheetContent.cjs +26 -0
- package/dist/components/client/BottomSheet/BottomSheetContent.d.cts +15 -0
- package/dist/components/client/BottomSheet/BottomSheetContent.d.ts +15 -0
- package/dist/components/client/BottomSheet/BottomSheetContent.js +24 -0
- package/dist/components/client/BottomSheet/BottomSheetDismiss.cjs +15 -0
- package/dist/components/client/BottomSheet/BottomSheetDismiss.d.cts +12 -0
- package/dist/components/client/BottomSheet/BottomSheetDismiss.d.ts +12 -0
- package/dist/components/client/BottomSheet/BottomSheetDismiss.js +13 -0
- package/dist/components/client/BottomSheet/BottomSheetHandle.cjs +30 -0
- package/dist/components/client/BottomSheet/BottomSheetHandle.d.cts +19 -0
- package/dist/components/client/BottomSheet/BottomSheetHandle.d.ts +19 -0
- package/dist/components/client/BottomSheet/BottomSheetHandle.js +28 -0
- package/dist/components/client/BottomSheet/BottomSheetHeader.cjs +42 -0
- package/dist/components/client/BottomSheet/BottomSheetHeader.d.cts +18 -0
- package/dist/components/client/BottomSheet/BottomSheetHeader.d.ts +18 -0
- package/dist/components/client/BottomSheet/BottomSheetHeader.js +40 -0
- package/dist/components/client/BottomSheet/BottomSheetProvider.cjs +21 -0
- package/dist/components/client/BottomSheet/BottomSheetProvider.d.cts +19 -0
- package/dist/components/client/BottomSheet/BottomSheetProvider.d.ts +19 -0
- package/dist/components/client/BottomSheet/BottomSheetProvider.js +19 -0
- package/dist/components/client/BottomSheet/BottomSheetTrigger.cjs +15 -0
- package/dist/components/client/BottomSheet/BottomSheetTrigger.d.cts +12 -0
- package/dist/components/client/BottomSheet/BottomSheetTrigger.d.ts +12 -0
- package/dist/components/client/BottomSheet/BottomSheetTrigger.js +13 -0
- package/dist/components/client/BottomSheet/UDSBottomSheetConfigProvider.cjs +32 -0
- package/dist/components/client/BottomSheet/UDSBottomSheetConfigProvider.d.cts +22 -0
- package/dist/components/client/BottomSheet/UDSBottomSheetConfigProvider.d.ts +22 -0
- package/dist/components/client/BottomSheet/UDSBottomSheetConfigProvider.js +29 -0
- package/dist/components/client/BottomSheet/index.cjs +22 -0
- package/dist/components/client/BottomSheet/index.d.cts +10 -0
- package/dist/components/client/BottomSheet/index.d.ts +10 -0
- package/dist/components/client/BottomSheet/index.js +12 -0
- package/dist/components/client/BottomSheet/useBottomSheetDrag.cjs +188 -0
- package/dist/components/client/BottomSheet/useBottomSheetDrag.d.cts +44 -0
- package/dist/components/client/BottomSheet/useBottomSheetDrag.d.ts +44 -0
- package/dist/components/client/BottomSheet/useBottomSheetDrag.js +185 -0
- package/dist/components/client/BottomSheet/useBottomSheetSnapModel.cjs +138 -0
- package/dist/components/client/BottomSheet/useBottomSheetSnapModel.d.cts +46 -0
- package/dist/components/client/BottomSheet/useBottomSheetSnapModel.d.ts +46 -0
- package/dist/components/client/BottomSheet/useBottomSheetSnapModel.js +135 -0
- package/dist/components/client/BottomSheet/useBottomSheetStore.cjs +34 -0
- package/dist/components/client/BottomSheet/useBottomSheetStore.d.cts +38 -0
- package/dist/components/client/BottomSheet/useBottomSheetStore.d.ts +38 -0
- package/dist/components/client/BottomSheet/useBottomSheetStore.js +31 -0
- package/dist/components/client/BottomSheet/useBottomSheetStoreInternal.cjs +17 -0
- package/dist/components/client/BottomSheet/useBottomSheetStoreInternal.d.cts +13 -0
- package/dist/components/client/BottomSheet/useBottomSheetStoreInternal.d.ts +13 -0
- package/dist/components/client/BottomSheet/useBottomSheetStoreInternal.js +15 -0
- package/dist/components/client/BottomSheet/useExpansionMargins.cjs +89 -0
- package/dist/components/client/BottomSheet/useExpansionMargins.d.cts +34 -0
- package/dist/components/client/BottomSheet/useExpansionMargins.d.ts +34 -0
- package/dist/components/client/BottomSheet/useExpansionMargins.js +87 -0
- package/dist/components/client/BottomSheet/useViewportHeight.cjs +32 -0
- package/dist/components/client/BottomSheet/useViewportHeight.d.cts +9 -0
- package/dist/components/client/BottomSheet/useViewportHeight.d.ts +9 -0
- package/dist/components/client/BottomSheet/useViewportHeight.js +30 -0
- package/dist/components/client/BottomSheet/useVirtualKeyboard.cjs +48 -0
- package/dist/components/client/BottomSheet/useVirtualKeyboard.d.cts +10 -0
- package/dist/components/client/BottomSheet/useVirtualKeyboard.d.ts +10 -0
- package/dist/components/client/BottomSheet/useVirtualKeyboard.js +46 -0
- package/dist/components/client/BottomSheet/utils.cjs +128 -0
- package/dist/components/client/BottomSheet/utils.d.cts +61 -0
- package/dist/components/client/BottomSheet/utils.d.ts +61 -0
- package/dist/components/client/BottomSheet/utils.js +118 -0
- package/dist/components/client/Menu/Menu.Content.cjs +1 -1
- package/dist/components/client/Menu/Menu.Content.js +1 -1
- package/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +1 -1
- package/dist/components/client/Menu/Menu.ItemCheckbox.d.ts +1 -1
- package/dist/components/client/Menu/Menu.index.d.cts +1 -1
- package/dist/components/client/index.cjs +16 -0
- package/dist/components/client/index.d.cts +10 -1
- package/dist/components/client/index.d.ts +10 -1
- package/dist/components/client/index.js +9 -1
- package/dist/components/client/providers/UDSConfigProvider.cjs +10 -6
- package/dist/components/client/providers/UDSConfigProvider.d.cts +1 -0
- package/dist/components/client/providers/UDSConfigProvider.d.ts +1 -0
- package/dist/components/client/providers/UDSConfigProvider.js +10 -6
- package/dist/components/index.cjs +24 -0
- package/dist/components/index.d.cts +9 -1
- package/dist/components/index.d.ts +9 -1
- package/dist/components/index.js +17 -1
- package/dist/config/dist/index.cjs +110 -2
- package/dist/config/dist/index.js +110 -2
- package/dist/fixtures/dist/index.cjs +103 -0
- package/dist/fixtures/dist/index.d.cts +3 -2
- package/dist/fixtures/dist/index.d.ts +3 -2
- package/dist/fixtures/dist/index.js +103 -1
- package/dist/fixtures/index.cjs +1 -0
- package/dist/fixtures/index.d.cts +2 -2
- package/dist/fixtures/index.d.ts +2 -2
- package/dist/fixtures/index.js +2 -2
- package/dist/index.cjs +20 -0
- package/dist/index.d.cts +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +11 -2
- package/dist/runtime/bottomSheetConfig.cjs +11 -0
- package/dist/runtime/bottomSheetConfig.d.cts +15 -0
- package/dist/runtime/bottomSheetConfig.d.ts +15 -0
- package/dist/runtime/bottomSheetConfig.js +9 -0
- package/dist/runtime/index.cjs +2 -0
- package/dist/runtime/index.d.cts +2 -1
- package/dist/runtime/index.d.ts +2 -1
- package/dist/runtime/index.js +2 -1
- package/dist/runtime/udsConfig.cjs +2 -0
- package/dist/runtime/udsConfig.d.cts +2 -0
- package/dist/runtime/udsConfig.d.ts +2 -0
- package/dist/runtime/udsConfig.js +2 -0
- package/dist/styles/styler.d.cts +47 -44
- package/dist/styles/styler.d.ts +51 -48
- package/dist/styles/variants.d.cts +9 -0
- package/dist/styles/variants.d.ts +9 -0
- package/dist/tailwind/dist/tailwind/plugins/components.cjs +2 -0
- package/dist/tailwind/dist/tailwind/plugins/components.js +3 -1
- package/dist/tailwind/dist/tailwind/utils/getFontStyles.d.cts +1 -1
- package/dist/tailwind/dist/tailwind/utils/getFontStyles.d.ts +1 -1
- package/dist/tailwind/dist/tailwind/utils/getShadowStyles.d.cts +4 -4
- package/dist/tailwind/dist/tailwind/utils/getShadowStyles.d.ts +4 -4
- package/dist/tokens/automation/configs/index.cjs +2 -0
- package/dist/tokens/automation/configs/index.d.cts +2 -2
- package/dist/tokens/automation/configs/index.d.ts +2 -2
- package/dist/tokens/automation/configs/index.js +2 -2
- package/dist/tokens/automation/index.cjs +2 -0
- package/dist/tokens/automation/index.d.cts +2 -2
- package/dist/tokens/automation/index.d.ts +2 -2
- package/dist/tokens/automation/index.js +2 -2
- package/dist/tokens/index.cjs +2 -0
- package/dist/tokens/index.d.cts +3 -3
- package/dist/tokens/index.d.ts +3 -3
- package/dist/tokens/index.js +2 -2
- package/dist/tokens/types.d.cts +2 -2
- package/dist/tokens/types.d.ts +2 -2
- package/dist/types/dist/index.d.cts +76 -1
- package/dist/types/dist/index.d.ts +76 -1
- package/dist/uds/generated/componentData.cjs +358 -117
- package/dist/uds/generated/componentData.js +305 -118
- package/dist/uds/generated/tailwindPurge.cjs +57 -29
- package/dist/uds/generated/tailwindPurge.js +57 -29
- package/generated/componentData.json +475 -209
- package/generated/tailwindPurge.ts +39 -8
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
|
|
5
|
+
const require_styles_styler = require('../../../styles/styler.cjs');
|
|
6
|
+
const require_components_Box = require('../../Box.cjs');
|
|
7
|
+
const require_components_VStack = require('../../VStack.cjs');
|
|
8
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
+
|
|
10
|
+
//#region src/components/client/BottomSheet/BottomSheetContent.tsx
|
|
11
|
+
function BottomSheetContent({ children, className }) {
|
|
12
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Box.Box, {
|
|
13
|
+
display: "block",
|
|
14
|
+
overflowY: "auto",
|
|
15
|
+
flex: "1",
|
|
16
|
+
className: require_styles_styler.cx("min-h-0", "touch-pan-y", className),
|
|
17
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_VStack.VStack, {
|
|
18
|
+
className: "pb-[calc(env(safe-area-inset-bottom))]",
|
|
19
|
+
children
|
|
20
|
+
})
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
BottomSheetContent.displayName = "BottomSheetContent";
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
exports.BottomSheetContent = BottomSheetContent;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
import { UniversalBottomSheetContentProps } from "../../../types/dist/index.cjs";
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/client/BottomSheet/BottomSheetContent.d.ts
|
|
6
|
+
type BottomSheetContentProps = UniversalBottomSheetContentProps;
|
|
7
|
+
declare function BottomSheetContent({
|
|
8
|
+
children,
|
|
9
|
+
className
|
|
10
|
+
}: BottomSheetContentProps): react_jsx_runtime0.JSX.Element;
|
|
11
|
+
declare namespace BottomSheetContent {
|
|
12
|
+
var displayName: string;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { BottomSheetContent, type BottomSheetContentProps };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
import { UniversalBottomSheetContentProps } from "../../../types/dist/index.js";
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/client/BottomSheet/BottomSheetContent.d.ts
|
|
6
|
+
type BottomSheetContentProps = UniversalBottomSheetContentProps;
|
|
7
|
+
declare function BottomSheetContent({
|
|
8
|
+
children,
|
|
9
|
+
className
|
|
10
|
+
}: BottomSheetContentProps): react_jsx_runtime0.JSX.Element;
|
|
11
|
+
declare namespace BottomSheetContent {
|
|
12
|
+
var displayName: string;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { BottomSheetContent, type BottomSheetContentProps };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
import { cx } from "../../../styles/styler.js";
|
|
4
|
+
import { Box } from "../../Box.js";
|
|
5
|
+
import { VStack } from "../../VStack.js";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
|
|
8
|
+
//#region src/components/client/BottomSheet/BottomSheetContent.tsx
|
|
9
|
+
function BottomSheetContent({ children, className }) {
|
|
10
|
+
return /* @__PURE__ */ jsx(Box, {
|
|
11
|
+
display: "block",
|
|
12
|
+
overflowY: "auto",
|
|
13
|
+
flex: "1",
|
|
14
|
+
className: cx("min-h-0", "touch-pan-y", className),
|
|
15
|
+
children: /* @__PURE__ */ jsx(VStack, {
|
|
16
|
+
className: "pb-[calc(env(safe-area-inset-bottom))]",
|
|
17
|
+
children
|
|
18
|
+
})
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
BottomSheetContent.displayName = "BottomSheetContent";
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { BottomSheetContent };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
+
let _ariakit_react_dialog = require("@ariakit/react/dialog");
|
|
7
|
+
|
|
8
|
+
//#region src/components/client/BottomSheet/BottomSheetDismiss.tsx
|
|
9
|
+
function BottomSheetDismiss(props) {
|
|
10
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ariakit_react_dialog.DialogDismiss, { ...props });
|
|
11
|
+
}
|
|
12
|
+
BottomSheetDismiss.displayName = "BottomSheetDismiss";
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
exports.BottomSheetDismiss = BottomSheetDismiss;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import { DialogDismissProps } from "@ariakit/react/dialog";
|
|
4
|
+
|
|
5
|
+
//#region src/components/client/BottomSheet/BottomSheetDismiss.d.ts
|
|
6
|
+
type BottomSheetDismissProps = DialogDismissProps;
|
|
7
|
+
declare function BottomSheetDismiss(props: BottomSheetDismissProps): react_jsx_runtime0.JSX.Element;
|
|
8
|
+
declare namespace BottomSheetDismiss {
|
|
9
|
+
var displayName: string;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { BottomSheetDismiss, type BottomSheetDismissProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import { DialogDismissProps } from "@ariakit/react/dialog";
|
|
4
|
+
|
|
5
|
+
//#region src/components/client/BottomSheet/BottomSheetDismiss.d.ts
|
|
6
|
+
type BottomSheetDismissProps = DialogDismissProps;
|
|
7
|
+
declare function BottomSheetDismiss(props: BottomSheetDismissProps): react_jsx_runtime0.JSX.Element;
|
|
8
|
+
declare namespace BottomSheetDismiss {
|
|
9
|
+
var displayName: string;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { BottomSheetDismiss, type BottomSheetDismissProps };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { DialogDismiss } from "@ariakit/react/dialog";
|
|
5
|
+
|
|
6
|
+
//#region src/components/client/BottomSheet/BottomSheetDismiss.tsx
|
|
7
|
+
function BottomSheetDismiss(props) {
|
|
8
|
+
return /* @__PURE__ */ jsx(DialogDismiss, { ...props });
|
|
9
|
+
}
|
|
10
|
+
BottomSheetDismiss.displayName = "BottomSheetDismiss";
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { BottomSheetDismiss };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
|
|
5
|
+
const require_styles_styler = require('../../../styles/styler.cjs');
|
|
6
|
+
const require_components_Box = require('../../Box.cjs');
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
|
|
9
|
+
//#region src/components/client/BottomSheet/BottomSheetHandle.tsx
|
|
10
|
+
function BottomSheetHandle({ className, onKeyDown, ariaLabel }) {
|
|
11
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Box.Box, {
|
|
12
|
+
display: "flex",
|
|
13
|
+
justifyContent: "center",
|
|
14
|
+
className: require_styles_styler.cx(className),
|
|
15
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Box.Box, {
|
|
16
|
+
tabIndex: 0,
|
|
17
|
+
"aria-label": ariaLabel ?? "Resize sheet",
|
|
18
|
+
onKeyDown,
|
|
19
|
+
className: require_styles_styler.cx("relative", "h-5 w-16", "outline-none focus-visible:outline-none", "[touch-action:pan-y]"),
|
|
20
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Box.Box, {
|
|
21
|
+
display: "block",
|
|
22
|
+
className: require_styles_styler.cx("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2", "h-1 w-8 rounded-full bg-accent")
|
|
23
|
+
})
|
|
24
|
+
})
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
BottomSheetHandle.displayName = "BottomSheetHandle";
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
exports.BottomSheetHandle = BottomSheetHandle;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/client/BottomSheet/BottomSheetHandle.d.ts
|
|
5
|
+
interface BottomSheetHandleProps {
|
|
6
|
+
className?: string;
|
|
7
|
+
onKeyDown?: (event: React.KeyboardEvent) => void;
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
}
|
|
10
|
+
declare function BottomSheetHandle({
|
|
11
|
+
className,
|
|
12
|
+
onKeyDown,
|
|
13
|
+
ariaLabel
|
|
14
|
+
}: BottomSheetHandleProps): react_jsx_runtime0.JSX.Element;
|
|
15
|
+
declare namespace BottomSheetHandle {
|
|
16
|
+
var displayName: string;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { BottomSheetHandle };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/client/BottomSheet/BottomSheetHandle.d.ts
|
|
5
|
+
interface BottomSheetHandleProps {
|
|
6
|
+
className?: string;
|
|
7
|
+
onKeyDown?: (event: React.KeyboardEvent) => void;
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
}
|
|
10
|
+
declare function BottomSheetHandle({
|
|
11
|
+
className,
|
|
12
|
+
onKeyDown,
|
|
13
|
+
ariaLabel
|
|
14
|
+
}: BottomSheetHandleProps): react_jsx_runtime0.JSX.Element;
|
|
15
|
+
declare namespace BottomSheetHandle {
|
|
16
|
+
var displayName: string;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { BottomSheetHandle };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
import { cx } from "../../../styles/styler.js";
|
|
4
|
+
import { Box } from "../../Box.js";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/client/BottomSheet/BottomSheetHandle.tsx
|
|
8
|
+
function BottomSheetHandle({ className, onKeyDown, ariaLabel }) {
|
|
9
|
+
return /* @__PURE__ */ jsx(Box, {
|
|
10
|
+
display: "flex",
|
|
11
|
+
justifyContent: "center",
|
|
12
|
+
className: cx(className),
|
|
13
|
+
children: /* @__PURE__ */ jsx(Box, {
|
|
14
|
+
tabIndex: 0,
|
|
15
|
+
"aria-label": ariaLabel ?? "Resize sheet",
|
|
16
|
+
onKeyDown,
|
|
17
|
+
className: cx("relative", "h-5 w-16", "outline-none focus-visible:outline-none", "[touch-action:pan-y]"),
|
|
18
|
+
children: /* @__PURE__ */ jsx(Box, {
|
|
19
|
+
display: "block",
|
|
20
|
+
className: cx("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2", "h-1 w-8 rounded-full bg-accent")
|
|
21
|
+
})
|
|
22
|
+
})
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
BottomSheetHandle.displayName = "BottomSheetHandle";
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { BottomSheetHandle };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
|
|
5
|
+
const require_styles_styler = require('../../../styles/styler.cjs');
|
|
6
|
+
const require_components_Box = require('../../Box.cjs');
|
|
7
|
+
const require_components_Text = require('../../Text.cjs');
|
|
8
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
+
|
|
10
|
+
//#region src/components/client/BottomSheet/BottomSheetHeader.tsx
|
|
11
|
+
function BottomSheetHeader({ children, start, end, variant = "default", className }) {
|
|
12
|
+
const headerVariantClass = require_styles_styler.getStyles({ bottomsheetVariantHeader: variant });
|
|
13
|
+
const resolvedStart = start ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Box.Box, { className: "h-10 w-10 opacity-0 pointer-events-none" });
|
|
14
|
+
const resolvedEnd = end ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Box.Box, { className: "h-10 w-10 opacity-0 pointer-events-none" });
|
|
15
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_components_Box.Box, {
|
|
16
|
+
display: "grid",
|
|
17
|
+
className: require_styles_styler.cx("grid-cols-[40px_1fr_40px]", "items-center", "w-full", "min-h-10", "mt-2", headerVariantClass, className),
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Box.Box, {
|
|
20
|
+
display: "flex",
|
|
21
|
+
justifyContent: "flex-start",
|
|
22
|
+
children: resolvedStart
|
|
23
|
+
}),
|
|
24
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Text.Text, {
|
|
25
|
+
variant: "inherit",
|
|
26
|
+
color: "inherit",
|
|
27
|
+
textAlign: "center",
|
|
28
|
+
className: "w-full",
|
|
29
|
+
children
|
|
30
|
+
}),
|
|
31
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Box.Box, {
|
|
32
|
+
display: "flex",
|
|
33
|
+
justifyContent: "flex-end",
|
|
34
|
+
children: resolvedEnd
|
|
35
|
+
})
|
|
36
|
+
]
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
BottomSheetHeader.displayName = "BottomSheetHeader";
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
exports.BottomSheetHeader = BottomSheetHeader;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
import { UniversalBottomSheetHeaderProps } from "../../../types/dist/index.cjs";
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/client/BottomSheet/BottomSheetHeader.d.ts
|
|
6
|
+
type BottomSheetHeaderProps = UniversalBottomSheetHeaderProps;
|
|
7
|
+
declare function BottomSheetHeader({
|
|
8
|
+
children,
|
|
9
|
+
start,
|
|
10
|
+
end,
|
|
11
|
+
variant,
|
|
12
|
+
className
|
|
13
|
+
}: BottomSheetHeaderProps): react_jsx_runtime0.JSX.Element;
|
|
14
|
+
declare namespace BottomSheetHeader {
|
|
15
|
+
var displayName: string;
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { BottomSheetHeader, type BottomSheetHeaderProps };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
import { UniversalBottomSheetHeaderProps } from "../../../types/dist/index.js";
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/client/BottomSheet/BottomSheetHeader.d.ts
|
|
6
|
+
type BottomSheetHeaderProps = UniversalBottomSheetHeaderProps;
|
|
7
|
+
declare function BottomSheetHeader({
|
|
8
|
+
children,
|
|
9
|
+
start,
|
|
10
|
+
end,
|
|
11
|
+
variant,
|
|
12
|
+
className
|
|
13
|
+
}: BottomSheetHeaderProps): react_jsx_runtime0.JSX.Element;
|
|
14
|
+
declare namespace BottomSheetHeader {
|
|
15
|
+
var displayName: string;
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { BottomSheetHeader, type BottomSheetHeaderProps };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
import { cx, getStyles } from "../../../styles/styler.js";
|
|
4
|
+
import { Box } from "../../Box.js";
|
|
5
|
+
import { Text } from "../../Text.js";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
|
|
8
|
+
//#region src/components/client/BottomSheet/BottomSheetHeader.tsx
|
|
9
|
+
function BottomSheetHeader({ children, start, end, variant = "default", className }) {
|
|
10
|
+
const headerVariantClass = getStyles({ bottomsheetVariantHeader: variant });
|
|
11
|
+
const resolvedStart = start ?? /* @__PURE__ */ jsx(Box, { className: "h-10 w-10 opacity-0 pointer-events-none" });
|
|
12
|
+
const resolvedEnd = end ?? /* @__PURE__ */ jsx(Box, { className: "h-10 w-10 opacity-0 pointer-events-none" });
|
|
13
|
+
return /* @__PURE__ */ jsxs(Box, {
|
|
14
|
+
display: "grid",
|
|
15
|
+
className: cx("grid-cols-[40px_1fr_40px]", "items-center", "w-full", "min-h-10", "mt-2", headerVariantClass, className),
|
|
16
|
+
children: [
|
|
17
|
+
/* @__PURE__ */ jsx(Box, {
|
|
18
|
+
display: "flex",
|
|
19
|
+
justifyContent: "flex-start",
|
|
20
|
+
children: resolvedStart
|
|
21
|
+
}),
|
|
22
|
+
/* @__PURE__ */ jsx(Text, {
|
|
23
|
+
variant: "inherit",
|
|
24
|
+
color: "inherit",
|
|
25
|
+
textAlign: "center",
|
|
26
|
+
className: "w-full",
|
|
27
|
+
children
|
|
28
|
+
}),
|
|
29
|
+
/* @__PURE__ */ jsx(Box, {
|
|
30
|
+
display: "flex",
|
|
31
|
+
justifyContent: "flex-end",
|
|
32
|
+
children: resolvedEnd
|
|
33
|
+
})
|
|
34
|
+
]
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
BottomSheetHeader.displayName = "BottomSheetHeader";
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
export { BottomSheetHeader };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
|
|
5
|
+
const require_components_client_BottomSheet_useBottomSheetStoreInternal = require('./useBottomSheetStoreInternal.cjs');
|
|
6
|
+
const require_components_client_BottomSheet_useBottomSheetStore = require('./useBottomSheetStore.cjs');
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
let _ariakit_react_dialog = require("@ariakit/react/dialog");
|
|
9
|
+
|
|
10
|
+
//#region src/components/client/BottomSheet/BottomSheetProvider.tsx
|
|
11
|
+
const BottomSheetProvider = ({ children, controller: controllerProp }) => {
|
|
12
|
+
const fallbackStore = require_components_client_BottomSheet_useBottomSheetStoreInternal.useBottomSheetStoreInternal();
|
|
13
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ariakit_react_dialog.DialogProvider, {
|
|
14
|
+
store: controllerProp ? require_components_client_BottomSheet_useBottomSheetStore.getBottomSheetInternal(controllerProp) : fallbackStore,
|
|
15
|
+
children
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
BottomSheetProvider.displayName = "BottomSheetProvider";
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
exports.BottomSheetProvider = BottomSheetProvider;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
import { BottomSheetController } from "./useBottomSheetStore.cjs";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/client/BottomSheet/BottomSheetProvider.d.ts
|
|
7
|
+
interface BottomSheetProviderProps {
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
controller?: BottomSheetController;
|
|
10
|
+
}
|
|
11
|
+
declare const BottomSheetProvider: {
|
|
12
|
+
({
|
|
13
|
+
children,
|
|
14
|
+
controller: controllerProp
|
|
15
|
+
}: BottomSheetProviderProps): react_jsx_runtime0.JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { BottomSheetProvider, type BottomSheetProviderProps };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
import { BottomSheetController } from "./useBottomSheetStore.js";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/client/BottomSheet/BottomSheetProvider.d.ts
|
|
7
|
+
interface BottomSheetProviderProps {
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
controller?: BottomSheetController;
|
|
10
|
+
}
|
|
11
|
+
declare const BottomSheetProvider: {
|
|
12
|
+
({
|
|
13
|
+
children,
|
|
14
|
+
controller: controllerProp
|
|
15
|
+
}: BottomSheetProviderProps): react_jsx_runtime0.JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { BottomSheetProvider, type BottomSheetProviderProps };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
import { useBottomSheetStoreInternal } from "./useBottomSheetStoreInternal.js";
|
|
4
|
+
import { getBottomSheetInternal } from "./useBottomSheetStore.js";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { DialogProvider } from "@ariakit/react/dialog";
|
|
7
|
+
|
|
8
|
+
//#region src/components/client/BottomSheet/BottomSheetProvider.tsx
|
|
9
|
+
const BottomSheetProvider = ({ children, controller: controllerProp }) => {
|
|
10
|
+
const fallbackStore = useBottomSheetStoreInternal();
|
|
11
|
+
return /* @__PURE__ */ jsx(DialogProvider, {
|
|
12
|
+
store: controllerProp ? getBottomSheetInternal(controllerProp) : fallbackStore,
|
|
13
|
+
children
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
BottomSheetProvider.displayName = "BottomSheetProvider";
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { BottomSheetProvider };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
+
let _ariakit_react_dialog = require("@ariakit/react/dialog");
|
|
7
|
+
|
|
8
|
+
//#region src/components/client/BottomSheet/BottomSheetTrigger.tsx
|
|
9
|
+
function BottomSheetTrigger(props) {
|
|
10
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ariakit_react_dialog.DialogDisclosure, { ...props });
|
|
11
|
+
}
|
|
12
|
+
BottomSheetTrigger.displayName = "BottomSheetTrigger";
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
exports.BottomSheetTrigger = BottomSheetTrigger;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import { DialogDisclosureProps } from "@ariakit/react/dialog";
|
|
4
|
+
|
|
5
|
+
//#region src/components/client/BottomSheet/BottomSheetTrigger.d.ts
|
|
6
|
+
type BottomSheetTriggerProps = DialogDisclosureProps;
|
|
7
|
+
declare function BottomSheetTrigger(props: BottomSheetTriggerProps): react_jsx_runtime0.JSX.Element;
|
|
8
|
+
declare namespace BottomSheetTrigger {
|
|
9
|
+
var displayName: string;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { BottomSheetTrigger, type BottomSheetTriggerProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import { DialogDisclosureProps } from "@ariakit/react/dialog";
|
|
4
|
+
|
|
5
|
+
//#region src/components/client/BottomSheet/BottomSheetTrigger.d.ts
|
|
6
|
+
type BottomSheetTriggerProps = DialogDisclosureProps;
|
|
7
|
+
declare function BottomSheetTrigger(props: BottomSheetTriggerProps): react_jsx_runtime0.JSX.Element;
|
|
8
|
+
declare namespace BottomSheetTrigger {
|
|
9
|
+
var displayName: string;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { BottomSheetTrigger, type BottomSheetTriggerProps };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { DialogDisclosure } from "@ariakit/react/dialog";
|
|
5
|
+
|
|
6
|
+
//#region src/components/client/BottomSheet/BottomSheetTrigger.tsx
|
|
7
|
+
function BottomSheetTrigger(props) {
|
|
8
|
+
return /* @__PURE__ */ jsx(DialogDisclosure, { ...props });
|
|
9
|
+
}
|
|
10
|
+
BottomSheetTrigger.displayName = "BottomSheetTrigger";
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { BottomSheetTrigger };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
|
|
5
|
+
let react = require("react");
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
+
|
|
8
|
+
//#region src/components/client/BottomSheet/UDSBottomSheetConfigProvider.tsx
|
|
9
|
+
const BottomSheetContext = (0, react.createContext)(void 0);
|
|
10
|
+
const UDSBottomSheetConfigProvider = ({ children, value }) => {
|
|
11
|
+
const existingContext = (0, react.useContext)(BottomSheetContext);
|
|
12
|
+
const isMerge = typeof value === "object" && "type" in value && value.type === "merge";
|
|
13
|
+
if (isMerge && !existingContext) throw new Error("Cannot merge context values without an existing BottomSheetContext");
|
|
14
|
+
const finalValue = isMerge ? {
|
|
15
|
+
...existingContext,
|
|
16
|
+
...value.value
|
|
17
|
+
} : value;
|
|
18
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BottomSheetContext.Provider, {
|
|
19
|
+
value: finalValue,
|
|
20
|
+
children
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
UDSBottomSheetConfigProvider.displayName = "UDSBottomSheetConfigProvider";
|
|
24
|
+
function useBottomSheetConfig() {
|
|
25
|
+
const context = (0, react.useContext)(BottomSheetContext);
|
|
26
|
+
if (!context) throw new Error("useBottomSheetConfig must be used within a UDSBottomSheetConfigProvider");
|
|
27
|
+
return context;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
exports.UDSBottomSheetConfigProvider = UDSBottomSheetConfigProvider;
|
|
32
|
+
exports.useBottomSheetConfig = useBottomSheetConfig;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
import { UDSBottomSheetConfigContextType } from "../../../runtime/bottomSheetConfig.cjs";
|
|
3
|
+
import { PropsWithChildren } from "react";
|
|
4
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/client/BottomSheet/UDSBottomSheetConfigProvider.d.ts
|
|
7
|
+
interface UDSBottomSheetConfigProviderProps extends PropsWithChildren {
|
|
8
|
+
value: UDSBottomSheetConfigContextType | {
|
|
9
|
+
type: 'merge';
|
|
10
|
+
value: Partial<UDSBottomSheetConfigContextType>;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
declare const UDSBottomSheetConfigProvider: {
|
|
14
|
+
({
|
|
15
|
+
children,
|
|
16
|
+
value
|
|
17
|
+
}: UDSBottomSheetConfigProviderProps): react_jsx_runtime0.JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
declare function useBottomSheetConfig(): UDSBottomSheetConfigContextType;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { type UDSBottomSheetConfigContextType, UDSBottomSheetConfigProvider, type UDSBottomSheetConfigProviderProps, useBottomSheetConfig };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
import { UDSBottomSheetConfigContextType } from "../../../runtime/bottomSheetConfig.js";
|
|
3
|
+
import { PropsWithChildren } from "react";
|
|
4
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/client/BottomSheet/UDSBottomSheetConfigProvider.d.ts
|
|
7
|
+
interface UDSBottomSheetConfigProviderProps extends PropsWithChildren {
|
|
8
|
+
value: UDSBottomSheetConfigContextType | {
|
|
9
|
+
type: 'merge';
|
|
10
|
+
value: Partial<UDSBottomSheetConfigContextType>;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
declare const UDSBottomSheetConfigProvider: {
|
|
14
|
+
({
|
|
15
|
+
children,
|
|
16
|
+
value
|
|
17
|
+
}: UDSBottomSheetConfigProviderProps): react_jsx_runtime0.JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
declare function useBottomSheetConfig(): UDSBottomSheetConfigContextType;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { type UDSBottomSheetConfigContextType, UDSBottomSheetConfigProvider, type UDSBottomSheetConfigProviderProps, useBottomSheetConfig };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
import { createContext, useContext } from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/client/BottomSheet/UDSBottomSheetConfigProvider.tsx
|
|
7
|
+
const BottomSheetContext = createContext(void 0);
|
|
8
|
+
const UDSBottomSheetConfigProvider = ({ children, value }) => {
|
|
9
|
+
const existingContext = useContext(BottomSheetContext);
|
|
10
|
+
const isMerge = typeof value === "object" && "type" in value && value.type === "merge";
|
|
11
|
+
if (isMerge && !existingContext) throw new Error("Cannot merge context values without an existing BottomSheetContext");
|
|
12
|
+
const finalValue = isMerge ? {
|
|
13
|
+
...existingContext,
|
|
14
|
+
...value.value
|
|
15
|
+
} : value;
|
|
16
|
+
return /* @__PURE__ */ jsx(BottomSheetContext.Provider, {
|
|
17
|
+
value: finalValue,
|
|
18
|
+
children
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
UDSBottomSheetConfigProvider.displayName = "UDSBottomSheetConfigProvider";
|
|
22
|
+
function useBottomSheetConfig() {
|
|
23
|
+
const context = useContext(BottomSheetContext);
|
|
24
|
+
if (!context) throw new Error("useBottomSheetConfig must be used within a UDSBottomSheetConfigProvider");
|
|
25
|
+
return context;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
export { UDSBottomSheetConfigProvider, useBottomSheetConfig };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
const require_components_client_BottomSheet_UDSBottomSheetConfigProvider = require('./UDSBottomSheetConfigProvider.cjs');
|
|
5
|
+
const require_components_client_BottomSheet_useBottomSheetStore = require('./useBottomSheetStore.cjs');
|
|
6
|
+
const require_components_client_BottomSheet_BottomSheet = require('./BottomSheet.cjs');
|
|
7
|
+
const require_components_client_BottomSheet_BottomSheetContent = require('./BottomSheetContent.cjs');
|
|
8
|
+
const require_components_client_BottomSheet_BottomSheetDismiss = require('./BottomSheetDismiss.cjs');
|
|
9
|
+
const require_components_client_BottomSheet_BottomSheetHeader = require('./BottomSheetHeader.cjs');
|
|
10
|
+
const require_components_client_BottomSheet_BottomSheetProvider = require('./BottomSheetProvider.cjs');
|
|
11
|
+
const require_components_client_BottomSheet_BottomSheetTrigger = require('./BottomSheetTrigger.cjs');
|
|
12
|
+
|
|
13
|
+
exports.BottomSheet = require_components_client_BottomSheet_BottomSheet.BottomSheet;
|
|
14
|
+
exports.BottomSheetContent = require_components_client_BottomSheet_BottomSheetContent.BottomSheetContent;
|
|
15
|
+
exports.BottomSheetDismiss = require_components_client_BottomSheet_BottomSheetDismiss.BottomSheetDismiss;
|
|
16
|
+
exports.BottomSheetHeader = require_components_client_BottomSheet_BottomSheetHeader.BottomSheetHeader;
|
|
17
|
+
exports.BottomSheetProvider = require_components_client_BottomSheet_BottomSheetProvider.BottomSheetProvider;
|
|
18
|
+
exports.BottomSheetTrigger = require_components_client_BottomSheet_BottomSheetTrigger.BottomSheetTrigger;
|
|
19
|
+
exports.UDSBottomSheetConfigProvider = require_components_client_BottomSheet_UDSBottomSheetConfigProvider.UDSBottomSheetConfigProvider;
|
|
20
|
+
exports.getBottomSheetInternal = require_components_client_BottomSheet_useBottomSheetStore.getBottomSheetInternal;
|
|
21
|
+
exports.useBottomSheetConfig = require_components_client_BottomSheet_UDSBottomSheetConfigProvider.useBottomSheetConfig;
|
|
22
|
+
exports.useBottomSheetStore = require_components_client_BottomSheet_useBottomSheetStore.useBottomSheetStore;
|