@yahoo/uds 3.114.0-beta.2 → 3.114.0

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.
Files changed (247) hide show
  1. package/dist/automated-config/dist/generated/autoVariants.cjs +3 -0
  2. package/dist/automated-config/dist/generated/autoVariants.d.cts +3 -0
  3. package/dist/automated-config/dist/generated/autoVariants.d.ts +3 -0
  4. package/dist/automated-config/dist/generated/autoVariants.js +3 -0
  5. package/dist/automated-config/dist/generated/generatedConfigs.cjs +1883 -0
  6. package/dist/automated-config/dist/generated/generatedConfigs.d.cts +175 -1
  7. package/dist/automated-config/dist/generated/generatedConfigs.d.ts +175 -1
  8. package/dist/automated-config/dist/generated/generatedConfigs.js +1882 -1
  9. package/dist/automated-config/dist/generated/universalTokensConfigAuto.cjs +84 -0
  10. package/dist/automated-config/dist/generated/universalTokensConfigAuto.d.cts +3 -1
  11. package/dist/automated-config/dist/generated/universalTokensConfigAuto.d.ts +3 -1
  12. package/dist/automated-config/dist/generated/universalTokensConfigAuto.js +84 -0
  13. package/dist/automated-config/dist/mapTextVariantFixtureToValue.cjs +1 -12
  14. package/dist/automated-config/dist/mapTextVariantFixtureToValue.js +1 -12
  15. package/dist/automated-config/dist/properties.cjs +58 -12
  16. package/dist/automated-config/dist/properties.d.cts +8 -0
  17. package/dist/automated-config/dist/properties.d.ts +8 -0
  18. package/dist/automated-config/dist/properties.js +58 -12
  19. package/dist/automated-config/dist/utils/getConfigVariantProperties.d.cts +2 -2
  20. package/dist/automated-config/dist/utils/getConfigVariantProperties.d.ts +2 -2
  21. package/dist/cli/commands/sync.cjs +7 -1
  22. package/dist/cli/commands/sync.d.cts +1 -1
  23. package/dist/cli/commands/sync.d.ts +1 -1
  24. package/dist/cli/commands/sync.js +7 -1
  25. package/dist/cli/commands/version.cjs +2 -0
  26. package/dist/cli/commands/version.d.cts +1 -1
  27. package/dist/cli/commands/version.d.ts +1 -1
  28. package/dist/cli/commands/version.js +2 -0
  29. package/dist/cli/dist/cli.cjs +1 -1
  30. package/dist/cli/dist/cli.js +1 -1
  31. package/dist/cli/dist/commands/editor-rules.cjs +2 -2
  32. package/dist/cli/dist/commands/editor-rules.js +2 -2
  33. package/dist/cli/dist/utils/rules/config.cjs +1 -1
  34. package/dist/cli/dist/utils/rules/config.js +1 -1
  35. package/dist/cli/runner.cjs +2 -11
  36. package/dist/cli/runner.js +2 -11
  37. package/dist/components/Scrim.cjs +28 -0
  38. package/dist/components/Scrim.d.cts +14 -0
  39. package/dist/components/Scrim.d.ts +14 -0
  40. package/dist/components/Scrim.js +26 -0
  41. package/dist/components/client/BottomSheet/BottomSheet.cjs +209 -0
  42. package/dist/components/client/BottomSheet/BottomSheet.d.cts +77 -0
  43. package/dist/components/client/BottomSheet/BottomSheet.d.ts +77 -0
  44. package/dist/components/client/BottomSheet/BottomSheet.js +207 -0
  45. package/dist/components/client/BottomSheet/BottomSheetContent.cjs +26 -0
  46. package/dist/components/client/BottomSheet/BottomSheetContent.d.cts +15 -0
  47. package/dist/components/client/BottomSheet/BottomSheetContent.d.ts +15 -0
  48. package/dist/components/client/BottomSheet/BottomSheetContent.js +24 -0
  49. package/dist/components/client/BottomSheet/BottomSheetDismiss.cjs +15 -0
  50. package/dist/components/client/BottomSheet/BottomSheetDismiss.d.cts +12 -0
  51. package/dist/components/client/BottomSheet/BottomSheetDismiss.d.ts +12 -0
  52. package/dist/components/client/BottomSheet/BottomSheetDismiss.js +13 -0
  53. package/dist/components/client/BottomSheet/BottomSheetHandle.cjs +30 -0
  54. package/dist/components/client/BottomSheet/BottomSheetHandle.d.cts +19 -0
  55. package/dist/components/client/BottomSheet/BottomSheetHandle.d.ts +19 -0
  56. package/dist/components/client/BottomSheet/BottomSheetHandle.js +28 -0
  57. package/dist/components/client/BottomSheet/BottomSheetHeader.cjs +42 -0
  58. package/dist/components/client/BottomSheet/BottomSheetHeader.d.cts +18 -0
  59. package/dist/components/client/BottomSheet/BottomSheetHeader.d.ts +18 -0
  60. package/dist/components/client/BottomSheet/BottomSheetHeader.js +40 -0
  61. package/dist/components/client/BottomSheet/BottomSheetProvider.cjs +21 -0
  62. package/dist/components/client/BottomSheet/BottomSheetProvider.d.cts +19 -0
  63. package/dist/components/client/BottomSheet/BottomSheetProvider.d.ts +19 -0
  64. package/dist/components/client/BottomSheet/BottomSheetProvider.js +19 -0
  65. package/dist/components/client/BottomSheet/BottomSheetTrigger.cjs +15 -0
  66. package/dist/components/client/BottomSheet/BottomSheetTrigger.d.cts +12 -0
  67. package/dist/components/client/BottomSheet/BottomSheetTrigger.d.ts +12 -0
  68. package/dist/components/client/BottomSheet/BottomSheetTrigger.js +13 -0
  69. package/dist/components/client/BottomSheet/UDSBottomSheetConfigProvider.cjs +32 -0
  70. package/dist/components/client/BottomSheet/UDSBottomSheetConfigProvider.d.cts +22 -0
  71. package/dist/components/client/BottomSheet/UDSBottomSheetConfigProvider.d.ts +22 -0
  72. package/dist/components/client/BottomSheet/UDSBottomSheetConfigProvider.js +29 -0
  73. package/dist/components/client/BottomSheet/index.cjs +22 -0
  74. package/dist/components/client/BottomSheet/index.d.cts +10 -0
  75. package/dist/components/client/BottomSheet/index.d.ts +10 -0
  76. package/dist/components/client/BottomSheet/index.js +12 -0
  77. package/dist/components/client/BottomSheet/useBottomSheetDrag.cjs +188 -0
  78. package/dist/components/client/BottomSheet/useBottomSheetDrag.d.cts +44 -0
  79. package/dist/components/client/BottomSheet/useBottomSheetDrag.d.ts +44 -0
  80. package/dist/components/client/BottomSheet/useBottomSheetDrag.js +185 -0
  81. package/dist/components/client/BottomSheet/useBottomSheetSnapModel.cjs +138 -0
  82. package/dist/components/client/BottomSheet/useBottomSheetSnapModel.d.cts +46 -0
  83. package/dist/components/client/BottomSheet/useBottomSheetSnapModel.d.ts +46 -0
  84. package/dist/components/client/BottomSheet/useBottomSheetSnapModel.js +135 -0
  85. package/dist/components/client/BottomSheet/useBottomSheetStore.cjs +34 -0
  86. package/dist/components/client/BottomSheet/useBottomSheetStore.d.cts +38 -0
  87. package/dist/components/client/BottomSheet/useBottomSheetStore.d.ts +38 -0
  88. package/dist/components/client/BottomSheet/useBottomSheetStore.js +31 -0
  89. package/dist/components/client/BottomSheet/useBottomSheetStoreInternal.cjs +17 -0
  90. package/dist/components/client/BottomSheet/useBottomSheetStoreInternal.d.cts +13 -0
  91. package/dist/components/client/BottomSheet/useBottomSheetStoreInternal.d.ts +13 -0
  92. package/dist/components/client/BottomSheet/useBottomSheetStoreInternal.js +15 -0
  93. package/dist/components/client/BottomSheet/useExpansionMargins.cjs +89 -0
  94. package/dist/components/client/BottomSheet/useExpansionMargins.d.cts +34 -0
  95. package/dist/components/client/BottomSheet/useExpansionMargins.d.ts +34 -0
  96. package/dist/components/client/BottomSheet/useExpansionMargins.js +87 -0
  97. package/dist/components/client/BottomSheet/useViewportHeight.cjs +32 -0
  98. package/dist/components/client/BottomSheet/useViewportHeight.d.cts +9 -0
  99. package/dist/components/client/BottomSheet/useViewportHeight.d.ts +9 -0
  100. package/dist/components/client/BottomSheet/useViewportHeight.js +30 -0
  101. package/dist/components/client/BottomSheet/useVirtualKeyboard.cjs +48 -0
  102. package/dist/components/client/BottomSheet/useVirtualKeyboard.d.cts +10 -0
  103. package/dist/components/client/BottomSheet/useVirtualKeyboard.d.ts +10 -0
  104. package/dist/components/client/BottomSheet/useVirtualKeyboard.js +46 -0
  105. package/dist/components/client/BottomSheet/utils.cjs +128 -0
  106. package/dist/components/client/BottomSheet/utils.d.cts +61 -0
  107. package/dist/components/client/BottomSheet/utils.d.ts +61 -0
  108. package/dist/components/client/BottomSheet/utils.js +118 -0
  109. package/dist/components/client/Menu/Menu.Content.cjs +1 -1
  110. package/dist/components/client/Menu/Menu.Content.js +1 -1
  111. package/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +1 -1
  112. package/dist/components/client/Menu/Menu.ItemCheckbox.d.ts +1 -1
  113. package/dist/components/client/Menu/Menu.index.d.cts +1 -1
  114. package/dist/components/client/index.cjs +16 -0
  115. package/dist/components/client/index.d.cts +10 -1
  116. package/dist/components/client/index.d.ts +10 -1
  117. package/dist/components/client/index.js +9 -1
  118. package/dist/components/client/providers/UDSConfigProvider.cjs +10 -6
  119. package/dist/components/client/providers/UDSConfigProvider.d.cts +1 -0
  120. package/dist/components/client/providers/UDSConfigProvider.d.ts +1 -0
  121. package/dist/components/client/providers/UDSConfigProvider.js +10 -6
  122. package/dist/components/index.cjs +24 -0
  123. package/dist/components/index.d.cts +9 -1
  124. package/dist/components/index.d.ts +9 -1
  125. package/dist/components/index.js +17 -1
  126. package/dist/config/dist/index.cjs +110 -2
  127. package/dist/config/dist/index.js +110 -2
  128. package/dist/fixtures/dist/index.cjs +103 -0
  129. package/dist/fixtures/dist/index.d.cts +3 -2
  130. package/dist/fixtures/dist/index.d.ts +3 -2
  131. package/dist/fixtures/dist/index.js +103 -1
  132. package/dist/fixtures/index.cjs +1 -0
  133. package/dist/fixtures/index.d.cts +2 -2
  134. package/dist/fixtures/index.d.ts +2 -2
  135. package/dist/fixtures/index.js +2 -2
  136. package/dist/index.cjs +20 -2
  137. package/dist/index.d.cts +12 -5
  138. package/dist/index.d.ts +12 -5
  139. package/dist/index.js +11 -3
  140. package/dist/runtime/bottomSheetConfig.cjs +11 -0
  141. package/dist/runtime/bottomSheetConfig.d.cts +15 -0
  142. package/dist/runtime/bottomSheetConfig.d.ts +15 -0
  143. package/dist/runtime/bottomSheetConfig.js +9 -0
  144. package/dist/runtime/index.cjs +2 -0
  145. package/dist/runtime/index.d.cts +2 -1
  146. package/dist/runtime/index.d.ts +2 -1
  147. package/dist/runtime/index.js +2 -1
  148. package/dist/runtime/udsConfig.cjs +2 -0
  149. package/dist/runtime/udsConfig.d.cts +2 -0
  150. package/dist/runtime/udsConfig.d.ts +2 -0
  151. package/dist/runtime/udsConfig.js +2 -0
  152. package/dist/styles/styler.d.cts +33 -30
  153. package/dist/styles/styler.d.ts +33 -30
  154. package/dist/styles/variants.cjs +278 -278
  155. package/dist/styles/variants.d.cts +9 -0
  156. package/dist/styles/variants.d.ts +9 -0
  157. package/dist/styles/variants.js +278 -278
  158. package/dist/tailwind/dist/commands/generateComponentData.cjs +31 -33
  159. package/dist/tailwind/dist/commands/generateComponentData.d.ts +1 -1
  160. package/dist/tailwind/dist/commands/generateComponentData.js +31 -33
  161. package/dist/tailwind/dist/commands/generatePurgeCSSData.d.ts +1 -1
  162. package/dist/tailwind/dist/commands/purge.cjs +4 -3
  163. package/dist/tailwind/dist/commands/purge.d.ts +1 -1
  164. package/dist/tailwind/dist/commands/purge.js +4 -3
  165. package/dist/tailwind/dist/index.d.cts +0 -1
  166. package/dist/tailwind/dist/index.d.ts +3 -5
  167. package/dist/tailwind/dist/purger/legacy/purgeCSS.cjs +3 -4
  168. package/dist/tailwind/dist/purger/legacy/purgeCSS.js +3 -4
  169. package/dist/tailwind/dist/purger/optimized/ast/expressions.cjs +125 -122
  170. package/dist/tailwind/dist/purger/optimized/ast/expressions.js +125 -122
  171. package/dist/tailwind/dist/purger/optimized/ast/jsx.cjs +8 -1
  172. package/dist/tailwind/dist/purger/optimized/ast/jsx.js +8 -1
  173. package/dist/tailwind/dist/purger/optimized/purge.cjs +10 -11
  174. package/dist/tailwind/dist/purger/optimized/purge.js +9 -10
  175. package/dist/tailwind/dist/purger/optimized/purgeFromCode.cjs +127 -232
  176. package/dist/tailwind/dist/purger/optimized/purgeFromCode.js +127 -232
  177. package/dist/tailwind/dist/purger/optimized/utils/componentAnalyzer.cjs +262 -330
  178. package/dist/tailwind/dist/purger/optimized/utils/componentAnalyzer.js +262 -329
  179. package/dist/tailwind/dist/purger/optimized/utils/files.cjs +3 -4
  180. package/dist/tailwind/dist/purger/optimized/utils/files.js +3 -4
  181. package/dist/tailwind/dist/purger/optimized/utils/safelist.cjs +21 -13
  182. package/dist/tailwind/dist/purger/optimized/utils/safelist.js +21 -13
  183. package/dist/tailwind/dist/tailwind/plugins/components.cjs +2 -0
  184. package/dist/tailwind/dist/tailwind/plugins/components.js +3 -1
  185. package/dist/tailwind/dist/tailwind/plugins/typography.cjs +13 -41
  186. package/dist/tailwind/dist/tailwind/plugins/typography.js +13 -41
  187. package/dist/tailwind/dist/tailwind/utils/composeTailwindPlugins.cjs +2 -4
  188. package/dist/tailwind/dist/tailwind/utils/composeTailwindPlugins.d.cts +1 -10
  189. package/dist/tailwind/dist/tailwind/utils/composeTailwindPlugins.d.ts +1 -10
  190. package/dist/tailwind/dist/tailwind/utils/composeTailwindPlugins.js +2 -4
  191. package/dist/tailwind/dist/utils/tsMorph.cjs +1 -1
  192. package/dist/tokens/automation/configs/index.cjs +2 -0
  193. package/dist/tokens/automation/configs/index.d.cts +2 -2
  194. package/dist/tokens/automation/configs/index.d.ts +2 -2
  195. package/dist/tokens/automation/configs/index.js +2 -2
  196. package/dist/tokens/automation/index.cjs +2 -0
  197. package/dist/tokens/automation/index.d.cts +2 -2
  198. package/dist/tokens/automation/index.d.ts +2 -2
  199. package/dist/tokens/automation/index.js +2 -2
  200. package/dist/tokens/index.cjs +2 -0
  201. package/dist/tokens/index.d.cts +3 -3
  202. package/dist/tokens/index.d.ts +3 -3
  203. package/dist/tokens/index.js +2 -2
  204. package/dist/tokens/types.d.cts +2 -2
  205. package/dist/tokens/types.d.ts +2 -2
  206. package/dist/types/dist/index.d.cts +76 -1
  207. package/dist/types/dist/index.d.ts +76 -1
  208. package/dist/uds/generated/componentData.cjs +1187 -961
  209. package/dist/uds/generated/componentData.js +1111 -939
  210. package/dist/uds/generated/tailwindPurge.cjs +57 -29
  211. package/dist/uds/generated/tailwindPurge.js +57 -29
  212. package/dist/uds/package.cjs +4 -10
  213. package/dist/uds/package.js +4 -10
  214. package/package.json +4 -7
  215. package/dist/cli/dist/lib/logger.cjs +0 -66
  216. package/dist/cli/dist/lib/logger.js +0 -66
  217. package/dist/tailwind/dist/commands/css.cjs +0 -79
  218. package/dist/tailwind/dist/commands/css.d.ts +0 -3
  219. package/dist/tailwind/dist/commands/css.helpers.cjs +0 -32
  220. package/dist/tailwind/dist/commands/css.helpers.js +0 -28
  221. package/dist/tailwind/dist/commands/css.js +0 -79
  222. package/dist/tailwind/dist/css/generate.cjs +0 -120
  223. package/dist/tailwind/dist/css/generate.d.cts +0 -30
  224. package/dist/tailwind/dist/css/generate.d.ts +0 -31
  225. package/dist/tailwind/dist/css/generate.helpers.cjs +0 -112
  226. package/dist/tailwind/dist/css/generate.helpers.js +0 -100
  227. package/dist/tailwind/dist/css/generate.js +0 -115
  228. package/dist/tailwind/dist/css/postcss.cjs +0 -35
  229. package/dist/tailwind/dist/css/postcss.helpers.cjs +0 -27
  230. package/dist/tailwind/dist/css/postcss.helpers.js +0 -26
  231. package/dist/tailwind/dist/css/postcss.js +0 -35
  232. package/dist/tailwind/dist/css/runner.cjs +0 -278
  233. package/dist/tailwind/dist/css/runner.helpers.cjs +0 -26
  234. package/dist/tailwind/dist/css/runner.helpers.js +0 -23
  235. package/dist/tailwind/dist/css/runner.js +0 -275
  236. package/dist/tailwind/dist/css/theme.cjs +0 -12
  237. package/dist/tailwind/dist/css/theme.d.cts +0 -66
  238. package/dist/tailwind/dist/css/theme.d.ts +0 -66
  239. package/dist/tailwind/dist/css/theme.js +0 -11
  240. package/dist/tailwind/dist/css/utils.cjs +0 -234
  241. package/dist/tailwind/dist/css/utils.js +0 -223
  242. package/dist/tailwind/dist/utils/optimizeCSS.cjs +0 -405
  243. package/dist/tailwind/dist/utils/optimizeCSS.js +0 -403
  244. package/dist/tailwind/dist/utils/postcssPreserveVars.cjs +0 -67
  245. package/dist/tailwind/dist/utils/postcssPreserveVars.js +0 -65
  246. package/generated/componentData.json +0 -2397
  247. package/generated/tailwindPurge.ts +0 -4560
@@ -0,0 +1,77 @@
1
+
2
+ import { UniversalBottomSheetProps } from "../../../types/dist/index.cjs";
3
+ import { BottomSheetController } from "./useBottomSheetStore.cjs";
4
+ import React from "react";
5
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
6
+ import { DialogProps } from "@ariakit/react";
7
+
8
+ //#region src/components/client/BottomSheet/BottomSheet.d.ts
9
+ interface BottomSheetProps extends UniversalBottomSheetProps, Pick<DialogProps, 'unmountOnHide' | 'onClose' | 'preventBodyScroll' | 'modal'> {
10
+ /**
11
+ * Controller returned from `useBottomSheetStore()`.
12
+ * @remarks If omitted, uses the nearest `BottomSheetProvider` context.
13
+ */
14
+ controller?: BottomSheetController;
15
+ /**
16
+ * Determines whether the element should be rendered as a React Portal.
17
+ * @default true
18
+ */
19
+ portal?: boolean;
20
+ /**
21
+ * An HTML element that returns an HTML element to be used as the portal element.
22
+ * By default, the portal element will be a div element appended to the document.body.
23
+ * @example
24
+ * ```jsx
25
+ * const [portal, setPortal] = useState(null);
26
+ * <BottomSheet portalElement={portalElement} />
27
+ * <div ref={setPortalElement} />
28
+ * ```
29
+ */
30
+ portalElement?: HTMLElement;
31
+ /**
32
+ * Determines if the dialog will hide when the user presses the Escape key.
33
+ *
34
+ * This prop can be either a boolean or a function that accepts an event as an argument and returns a boolean. The event object represents the keydown event that initiated the hide action, which could be either a native keyboard event or a React synthetic event.
35
+ * @default true
36
+ */
37
+ hideOnEscape?: boolean;
38
+ /** Optional override for the default backdrop element passed to Ariakit Dialog. */
39
+ backdrop?: React.ReactElement;
40
+ /** Optional class hooks for internal elements. */
41
+ slotProps?: {
42
+ /** Optional className for the scrim element. */scrim?: {
43
+ className?: string;
44
+ }; /** Optional className for the handle indicator element. */
45
+ handleIndicator?: {
46
+ className?: string;
47
+ };
48
+ };
49
+ }
50
+ declare function BottomSheet({
51
+ children,
52
+ className: sheetClassName,
53
+ controller: controllerProp,
54
+ variant,
55
+ snapPoints: snapPointsProp,
56
+ defaultSnapPointIndex,
57
+ snapPointIndex: snapPointIndexProp,
58
+ onSnapPointChange,
59
+ height,
60
+ modal,
61
+ portal,
62
+ portalElement,
63
+ dismissible,
64
+ enableDrag,
65
+ showHandleIndicator,
66
+ hideOnEscape,
67
+ onClose,
68
+ backdrop,
69
+ preventBodyScroll,
70
+ slotProps,
71
+ fullWidthAtMaxSnap
72
+ }: BottomSheetProps): react_jsx_runtime0.JSX.Element;
73
+ declare namespace BottomSheet {
74
+ var displayName: string;
75
+ }
76
+ //#endregion
77
+ export { BottomSheet, type BottomSheetProps };
@@ -0,0 +1,77 @@
1
+
2
+ import { UniversalBottomSheetProps } from "../../../types/dist/index.js";
3
+ import { BottomSheetController } from "./useBottomSheetStore.js";
4
+ import React from "react";
5
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
6
+ import { DialogProps } from "@ariakit/react";
7
+
8
+ //#region src/components/client/BottomSheet/BottomSheet.d.ts
9
+ interface BottomSheetProps extends UniversalBottomSheetProps, Pick<DialogProps, 'unmountOnHide' | 'onClose' | 'preventBodyScroll' | 'modal'> {
10
+ /**
11
+ * Controller returned from `useBottomSheetStore()`.
12
+ * @remarks If omitted, uses the nearest `BottomSheetProvider` context.
13
+ */
14
+ controller?: BottomSheetController;
15
+ /**
16
+ * Determines whether the element should be rendered as a React Portal.
17
+ * @default true
18
+ */
19
+ portal?: boolean;
20
+ /**
21
+ * An HTML element that returns an HTML element to be used as the portal element.
22
+ * By default, the portal element will be a div element appended to the document.body.
23
+ * @example
24
+ * ```jsx
25
+ * const [portal, setPortal] = useState(null);
26
+ * <BottomSheet portalElement={portalElement} />
27
+ * <div ref={setPortalElement} />
28
+ * ```
29
+ */
30
+ portalElement?: HTMLElement;
31
+ /**
32
+ * Determines if the dialog will hide when the user presses the Escape key.
33
+ *
34
+ * This prop can be either a boolean or a function that accepts an event as an argument and returns a boolean. The event object represents the keydown event that initiated the hide action, which could be either a native keyboard event or a React synthetic event.
35
+ * @default true
36
+ */
37
+ hideOnEscape?: boolean;
38
+ /** Optional override for the default backdrop element passed to Ariakit Dialog. */
39
+ backdrop?: React.ReactElement;
40
+ /** Optional class hooks for internal elements. */
41
+ slotProps?: {
42
+ /** Optional className for the scrim element. */scrim?: {
43
+ className?: string;
44
+ }; /** Optional className for the handle indicator element. */
45
+ handleIndicator?: {
46
+ className?: string;
47
+ };
48
+ };
49
+ }
50
+ declare function BottomSheet({
51
+ children,
52
+ className: sheetClassName,
53
+ controller: controllerProp,
54
+ variant,
55
+ snapPoints: snapPointsProp,
56
+ defaultSnapPointIndex,
57
+ snapPointIndex: snapPointIndexProp,
58
+ onSnapPointChange,
59
+ height,
60
+ modal,
61
+ portal,
62
+ portalElement,
63
+ dismissible,
64
+ enableDrag,
65
+ showHandleIndicator,
66
+ hideOnEscape,
67
+ onClose,
68
+ backdrop,
69
+ preventBodyScroll,
70
+ slotProps,
71
+ fullWidthAtMaxSnap
72
+ }: BottomSheetProps): react_jsx_runtime0.JSX.Element;
73
+ declare namespace BottomSheet {
74
+ var displayName: string;
75
+ }
76
+ //#endregion
77
+ export { BottomSheet, type BottomSheetProps };
@@ -0,0 +1,207 @@
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 { Scrim } from "../../Scrim.js";
6
+ import { BottomSheetHandle } from "./BottomSheetHandle.js";
7
+ import { useBottomSheetConfig } from "./UDSBottomSheetConfigProvider.js";
8
+ import { useBottomSheetDrag } from "./useBottomSheetDrag.js";
9
+ import { useBottomSheetSnapModel } from "./useBottomSheetSnapModel.js";
10
+ import { getBottomSheetInternal } from "./useBottomSheetStore.js";
11
+ import { useExpansionMargins } from "./useExpansionMargins.js";
12
+ import { useViewportHeight } from "./useViewportHeight.js";
13
+ import { useVirtualKeyboard } from "./useVirtualKeyboard.js";
14
+ import { useCallback, useEffect, useRef } from "react";
15
+ import { jsx, jsxs } from "react/jsx-runtime";
16
+ import { Dialog, useDialogContext } from "@ariakit/react";
17
+
18
+ //#region src/components/client/BottomSheet/BottomSheet.tsx
19
+ /**
20
+ * Drag-to-dismiss distance threshold as a ratio of the lowest snap point's
21
+ * visible height. Dragging down past this fraction of the height dismisses
22
+ * the sheet (regardless of velocity).
23
+ *
24
+ * Velocity and distance are OR conditions — exceeding either one triggers dismissal.
25
+ */
26
+ const DRAG_DISMISS_THRESHOLD_RATIO = .25;
27
+ /**
28
+ * Top inset reserved when calculating max sheet height.
29
+ * Keeps a visible sliver of page content so the fully expanded state still reads as a bottom sheet.
30
+ */
31
+ const SHEET_MAX_HEIGHT_TOP_OFFSET_PX = 26;
32
+ function BottomSheet({ children, className: sheetClassName, controller: controllerProp, variant = "default", snapPoints: snapPointsProp, defaultSnapPointIndex = 0, snapPointIndex: snapPointIndexProp, onSnapPointChange, height, modal = true, portal = true, portalElement, dismissible = true, enableDrag = true, showHandleIndicator = true, hideOnEscape = true, onClose, backdrop, preventBodyScroll, slotProps, fullWidthAtMaxSnap = false }) {
33
+ const storeFromContext = useDialogContext();
34
+ const dialogStore = controllerProp ? getBottomSheetInternal(controllerProp) : storeFromContext;
35
+ const { backgroundColor: configBackgroundColor } = useBottomSheetConfig();
36
+ if (!dialogStore) throw new Error("BottomSheet must be wrapped in BottomSheetProvider or provided a controller prop.");
37
+ const isOpen = dialogStore.useState().open;
38
+ const keyboardHeightPx = useVirtualKeyboard(isOpen);
39
+ const viewportHeightPx = useViewportHeight();
40
+ const isDraggingRef = useRef(false);
41
+ const forceZeroMarginsRef = useRef(false);
42
+ forceZeroMarginsRef.current = keyboardHeightPx > 0;
43
+ const sheetRef = useRef(null);
44
+ const maxSnapPxRef = useRef(0);
45
+ const maxHeightPx = Math.max(viewportHeightPx - SHEET_MAX_HEIGHT_TOP_OFFSET_PX, 0);
46
+ const rootVariantClass = getStyles({ bottomsheetVariantRoot: variant });
47
+ const { applyExpansionMargins, thresholdRef: expansionThresholdRef } = useExpansionMargins({
48
+ sheetRef,
49
+ maxSnapPxRef,
50
+ fullWidthAtMaxSnap,
51
+ snapPointsLength: snapPointsProp?.length ?? 1,
52
+ isOpen,
53
+ forceZeroRef: forceZeroMarginsRef
54
+ });
55
+ /**
56
+ * Applies drag-time position updates with no animation.
57
+ * We model the sheet by height, so translate is converted to height:
58
+ * `height = maxSnapPointPx - translatePx`.
59
+ */
60
+ const setTranslateImmediate = useCallback((nextTranslatePx) => {
61
+ const el = sheetRef.current;
62
+ if (!el) return;
63
+ el.style.height = `${maxSnapPxRef.current - nextTranslatePx}px`;
64
+ applyExpansionMargins(el, nextTranslatePx);
65
+ }, [applyExpansionMargins]);
66
+ const { resolvedSnapPoints, snapPointsPx, maxSnapPointPx, snapPointTranslatesPx, activeSnapIndex, restTranslatePx, emitSnapPointChange, openTimeRef, lastTimeDragPreventedRef, isEnteringRef } = useBottomSheetSnapModel({
67
+ isOpen,
68
+ snapPointsProp,
69
+ height,
70
+ defaultSnapPointIndex,
71
+ snapPointIndexProp,
72
+ onSnapPointChange,
73
+ viewportHeightPx,
74
+ maxHeightPx,
75
+ setTranslateAnimated: useCallback((nextTranslatePx) => {
76
+ const el = sheetRef.current;
77
+ if (!el) return;
78
+ const nextHeightPx = maxSnapPxRef.current - nextTranslatePx;
79
+ if (!el.style.height) {
80
+ el.style.height = `${nextHeightPx}px`;
81
+ applyExpansionMargins(el, nextTranslatePx);
82
+ } else {
83
+ const easing = "cubic-bezier(0.32, 0.72, 0, 1)";
84
+ let transition = `height 500ms ${easing}`;
85
+ if (expansionThresholdRef.current != null) transition += `, margin-left 500ms ${easing}, margin-right 500ms ${easing}, margin-bottom 500ms ${easing}`;
86
+ el.style.transition = transition;
87
+ el.style.height = `${nextHeightPx}px`;
88
+ applyExpansionMargins(el, nextTranslatePx);
89
+ const cleanup = () => {
90
+ el.style.removeProperty("transition");
91
+ el.removeEventListener("transitionend", cleanup);
92
+ };
93
+ el.addEventListener("transitionend", cleanup);
94
+ }
95
+ }, [applyExpansionMargins, expansionThresholdRef]),
96
+ isDraggingRef
97
+ });
98
+ maxSnapPxRef.current = maxSnapPointPx;
99
+ expansionThresholdRef.current = fullWidthAtMaxSnap && (snapPointsProp?.length ?? 1) >= 2 ? snapPointsPx[snapPointsPx.length - 2] ?? 0 : null;
100
+ const visibleTranslatePx = isOpen && !isEnteringRef.current ? 0 : viewportHeightPx;
101
+ const resolvedDismissThresholdPx = (snapPointsPx[0] ?? maxSnapPointPx) * DRAG_DISMISS_THRESHOLD_RATIO;
102
+ const shouldShowHandleIndicator = showHandleIndicator && enableDrag;
103
+ const isAtMaxSnapPoint = activeSnapIndex === resolvedSnapPoints.length - 1;
104
+ const shouldHideEdgeBordersAtMaxSnap = fullWidthAtMaxSnap && resolvedSnapPoints.length >= 2 && isAtMaxSnapPoint;
105
+ const handleHandleIndicatorKeyDown = useCallback((event) => {
106
+ if (!shouldShowHandleIndicator || resolvedSnapPoints.length <= 1) return;
107
+ if (event.key === "ArrowUp") {
108
+ event.preventDefault();
109
+ emitSnapPointChange(activeSnapIndex + 1);
110
+ }
111
+ if (event.key === "ArrowDown") {
112
+ event.preventDefault();
113
+ if (activeSnapIndex === 0 && dismissible) {
114
+ dialogStore.hide();
115
+ return;
116
+ }
117
+ emitSnapPointChange(activeSnapIndex - 1);
118
+ }
119
+ }, [
120
+ activeSnapIndex,
121
+ dismissible,
122
+ emitSnapPointChange,
123
+ resolvedSnapPoints.length,
124
+ shouldShowHandleIndicator,
125
+ dialogStore
126
+ ]);
127
+ const { onPointerDown, onPointerMove, onPointerUp, onPointerCancel } = useBottomSheetDrag({
128
+ enableDrag,
129
+ dismissible,
130
+ store: dialogStore,
131
+ sheetRef,
132
+ isDraggingRef,
133
+ activeSnapIndex,
134
+ snapPointTranslatesPx,
135
+ maxSnapPointPx,
136
+ resolvedSnapPointsLength: resolvedSnapPoints.length,
137
+ resolvedDismissThresholdPx,
138
+ emitSnapPointChange,
139
+ setTranslateImmediate,
140
+ openTimeRef,
141
+ lastTimeDragPreventedRef
142
+ });
143
+ useEffect(() => {
144
+ if (!fullWidthAtMaxSnap || !isOpen) return;
145
+ const el = sheetRef.current;
146
+ if (!el || !el.style.height) return;
147
+ applyExpansionMargins(el, restTranslatePx);
148
+ }, [
149
+ restTranslatePx,
150
+ fullWidthAtMaxSnap,
151
+ isOpen,
152
+ applyExpansionMargins
153
+ ]);
154
+ const dialogBackdrop = modal ? backdrop ?? /* @__PURE__ */ jsx(Scrim, {
155
+ className: slotProps?.scrim?.className,
156
+ animateOpacity: true
157
+ }) : false;
158
+ const hideOnInteractOutside = modal && dismissible ? void 0 : false;
159
+ const isElevationBackgroundColor = configBackgroundColor[variant].startsWith("elevation-");
160
+ return /* @__PURE__ */ jsxs(Dialog, {
161
+ ref: sheetRef,
162
+ store: dialogStore,
163
+ modal,
164
+ unmountOnHide: true,
165
+ hideOnEscape: dismissible ? hideOnEscape : false,
166
+ hideOnInteractOutside,
167
+ onClose,
168
+ backdrop: dialogBackdrop,
169
+ portal,
170
+ portalElement,
171
+ preventBodyScroll: preventBodyScroll ?? (modal ? void 0 : false),
172
+ "data-testid": "bottom-sheet",
173
+ className: cx("fixed overflow-hidden inset-x-0 bottom-0 z-50", keyboardHeightPx > 0 ? void 0 : "bottom-0", "[will-change:transform] touch-none", "[transform:translate3d(0,var(--uds-bottomsheet-hidden-translate),0)]", "data-[enter]:[transform:translate3d(0,var(--uds-bottomsheet-visible-translate),0)]", "transition-transform duration-500 ease-[cubic-bezier(0.32,0.72,0,1)]", "motion-reduce:transition-none", sheetClassName, rootVariantClass),
174
+ style: {
175
+ maxHeight: maxHeightPx ? `${maxHeightPx}px` : void 0,
176
+ ...shouldHideEdgeBordersAtMaxSnap ? {
177
+ borderBottomWidth: 0,
178
+ borderLeftWidth: 0,
179
+ borderRightWidth: 0
180
+ } : {},
181
+ ["--uds-bottomsheet-hidden-translate"]: `${viewportHeightPx}px`,
182
+ ["--uds-bottomsheet-visible-translate"]: `${visibleTranslatePx}px`,
183
+ ...isElevationBackgroundColor && {
184
+ backdropFilter: `var(--uds-background-blur-radius-${configBackgroundColor[variant]})`,
185
+ WebkitBackdropFilter: `var(--uds-background-blur-radius-${configBackgroundColor[variant]})`
186
+ }
187
+ },
188
+ onPointerDown,
189
+ onPointerMove,
190
+ onPointerUp,
191
+ onPointerCancel,
192
+ children: [shouldShowHandleIndicator && /* @__PURE__ */ jsx(Box, {
193
+ display: "block",
194
+ position: "absolute",
195
+ className: cx("inset-x-0 top-[-4px] z-[1] touch-pan-y"),
196
+ children: /* @__PURE__ */ jsx(BottomSheetHandle, {
197
+ onKeyDown: handleHandleIndicatorKeyDown,
198
+ ariaLabel: "Resize sheet",
199
+ className: slotProps?.handleIndicator?.className
200
+ })
201
+ }), children]
202
+ });
203
+ }
204
+ BottomSheet.displayName = "BottomSheet";
205
+
206
+ //#endregion
207
+ export { BottomSheet };
@@ -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 };