@utilitywarehouse/hearth-react 0.30.3 → 0.31.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 (102) hide show
  1. package/dist/chunk-52NQJSZ4.cjs +4 -0
  2. package/dist/chunk-52NQJSZ4.cjs.map +1 -0
  3. package/dist/chunk-7CV7RBFK.js +4 -0
  4. package/dist/chunk-7CV7RBFK.js.map +1 -0
  5. package/dist/chunk-DSRDXNH3.cjs +4 -0
  6. package/dist/chunk-DSRDXNH3.cjs.map +1 -0
  7. package/dist/chunk-E37ICSZV.js +4 -0
  8. package/dist/chunk-E37ICSZV.js.map +1 -0
  9. package/dist/chunk-ECA6VI7J.js +4 -0
  10. package/dist/chunk-ECA6VI7J.js.map +1 -0
  11. package/dist/chunk-EUOX7RSZ.js +4 -0
  12. package/dist/chunk-EUOX7RSZ.js.map +1 -0
  13. package/dist/chunk-GDJ3WYMP.cjs +4 -0
  14. package/dist/chunk-GDJ3WYMP.cjs.map +1 -0
  15. package/dist/chunk-NJMLALZH.js +4 -0
  16. package/dist/chunk-NJMLALZH.js.map +1 -0
  17. package/dist/chunk-OSQTRLPK.js +4 -0
  18. package/dist/chunk-OSQTRLPK.js.map +1 -0
  19. package/dist/chunk-PQPP4JZR.cjs +4 -0
  20. package/dist/chunk-PQPP4JZR.cjs.map +1 -0
  21. package/dist/chunk-UXOZQAZJ.cjs +4 -0
  22. package/dist/chunk-UXOZQAZJ.cjs.map +1 -0
  23. package/dist/chunk-WDLLAQFF.cjs +4 -0
  24. package/dist/chunk-WDLLAQFF.cjs.map +1 -0
  25. package/dist/chunk-XPPODAZP.cjs +4 -0
  26. package/dist/chunk-XPPODAZP.cjs.map +1 -0
  27. package/dist/chunk-XVV4DBFD.js +4 -0
  28. package/dist/chunk-XVV4DBFD.js.map +1 -0
  29. package/dist/components/Menu/Menu.cjs +1 -1
  30. package/dist/components/Menu/Menu.d.ts +2 -0
  31. package/dist/components/Menu/Menu.d.ts.map +1 -1
  32. package/dist/components/Menu/Menu.js +1 -1
  33. package/dist/components/Menu/Menu.props.d.ts +8 -3
  34. package/dist/components/Menu/Menu.props.d.ts.map +1 -1
  35. package/dist/components/Menu/MenuContent.cjs +1 -1
  36. package/dist/components/Menu/MenuContent.cjs.map +1 -1
  37. package/dist/components/Menu/MenuContent.d.ts +1 -1
  38. package/dist/components/Menu/MenuContent.d.ts.map +1 -1
  39. package/dist/components/Menu/MenuContent.js +1 -1
  40. package/dist/components/Menu/MenuContent.props.d.ts +21 -4
  41. package/dist/components/Menu/MenuContent.props.d.ts.map +1 -1
  42. package/dist/components/Menu/MenuItem.cjs +1 -1
  43. package/dist/components/Menu/MenuItem.cjs.map +1 -1
  44. package/dist/components/Menu/MenuItem.d.ts.map +1 -1
  45. package/dist/components/Menu/MenuItem.js +1 -1
  46. package/dist/components/Menu/MenuItem.props.d.ts +21 -4
  47. package/dist/components/Menu/MenuItem.props.d.ts.map +1 -1
  48. package/dist/components/Menu/MenuTrigger.cjs +1 -1
  49. package/dist/components/Menu/MenuTrigger.js +1 -1
  50. package/dist/components/Menu/MenuTrigger.props.d.ts +10 -3
  51. package/dist/components/Menu/MenuTrigger.props.d.ts.map +1 -1
  52. package/dist/components/SegmentedControl/SegmentedControl.cjs +4 -0
  53. package/dist/components/SegmentedControl/SegmentedControl.cjs.map +1 -0
  54. package/dist/components/SegmentedControl/SegmentedControl.d.ts +13 -0
  55. package/dist/components/SegmentedControl/SegmentedControl.d.ts.map +1 -0
  56. package/dist/components/SegmentedControl/SegmentedControl.js +4 -0
  57. package/dist/components/SegmentedControl/SegmentedControl.js.map +1 -0
  58. package/dist/components/SegmentedControl/SegmentedControl.props.cjs +4 -0
  59. package/dist/components/SegmentedControl/SegmentedControl.props.cjs.map +1 -0
  60. package/dist/components/SegmentedControl/SegmentedControl.props.d.ts +23 -0
  61. package/dist/components/SegmentedControl/SegmentedControl.props.d.ts.map +1 -0
  62. package/dist/components/SegmentedControl/SegmentedControl.props.js +4 -0
  63. package/dist/components/SegmentedControl/SegmentedControl.props.js.map +1 -0
  64. package/dist/components/SegmentedControl/SegmentedControlOption.cjs +4 -0
  65. package/dist/components/SegmentedControl/SegmentedControlOption.cjs.map +1 -0
  66. package/dist/components/SegmentedControl/SegmentedControlOption.d.ts +9 -0
  67. package/dist/components/SegmentedControl/SegmentedControlOption.d.ts.map +1 -0
  68. package/dist/components/SegmentedControl/SegmentedControlOption.js +4 -0
  69. package/dist/components/SegmentedControl/SegmentedControlOption.js.map +1 -0
  70. package/dist/components/SegmentedControl/SegmentedControlOption.props.cjs +3 -0
  71. package/dist/components/SegmentedControl/SegmentedControlOption.props.cjs.map +1 -0
  72. package/dist/components/SegmentedControl/SegmentedControlOption.props.d.ts +17 -0
  73. package/dist/components/SegmentedControl/SegmentedControlOption.props.d.ts.map +1 -0
  74. package/dist/components/SegmentedControl/SegmentedControlOption.props.js +3 -0
  75. package/dist/components/SegmentedControl/SegmentedControlOption.props.js.map +1 -0
  76. package/dist/index.cjs +1 -1
  77. package/dist/index.cjs.map +1 -1
  78. package/dist/index.d.ts +4 -0
  79. package/dist/index.d.ts.map +1 -1
  80. package/dist/index.js +1 -1
  81. package/package.json +3 -3
  82. package/public/llms/components/menu.md +161 -33
  83. package/public/llms/components/segmented-control.md +295 -0
  84. package/public/llms/docs/getting-started.md +1 -1
  85. package/public/llms.txt +2 -1
  86. package/styles.css +1 -1
  87. package/dist/chunk-7BXFXDDZ.js +0 -4
  88. package/dist/chunk-7BXFXDDZ.js.map +0 -1
  89. package/dist/chunk-BCAGQPQD.cjs +0 -4
  90. package/dist/chunk-BCAGQPQD.cjs.map +0 -1
  91. package/dist/chunk-GVIVGMOJ.js +0 -4
  92. package/dist/chunk-GVIVGMOJ.js.map +0 -1
  93. package/dist/chunk-GVUQYOSO.cjs +0 -4
  94. package/dist/chunk-GVUQYOSO.cjs.map +0 -1
  95. package/dist/chunk-K3AF4B5W.cjs +0 -4
  96. package/dist/chunk-K3AF4B5W.cjs.map +0 -1
  97. package/dist/chunk-NLZMPDP5.cjs +0 -4
  98. package/dist/chunk-NLZMPDP5.cjs.map +0 -1
  99. package/dist/chunk-PRWRW3JD.js +0 -4
  100. package/dist/chunk-PRWRW3JD.js.map +0 -1
  101. package/dist/chunk-PXIOYGGU.js +0 -4
  102. package/dist/chunk-PXIOYGGU.js.map +0 -1
@@ -0,0 +1,4 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
2
+
3
+ var _chunkT27AGDTJcjs = require('./chunk-T27AGDTJ.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _react3 = require('@base-ui/react');var _jsxruntime = require('react/jsx-runtime');var u="MenuItem",b=_chunk4Q432K4Wcjs.b.call(void 0, u),R= exports.a =_react.forwardRef.call(void 0, ({className:p,colorScheme:f="functional",asChild:m,children:e,onClick:o,label:c,onSelect:t,textValue:r,...M},I)=>{_chunkT27AGDTJcjs.a.call(void 0, t!==void 0,"MenuItem: `onSelect` is deprecated. Use `onClick` instead."),_chunkT27AGDTJcjs.a.call(void 0, r!==void 0,"MenuItem: `textValue` is deprecated. Use `label` instead.");let C=_nullishCoalesce(c, () => (r)),E=t!==void 0?a=>{t(a),_optionalChain([o, 'optionalCall', _ => _(a)])}:o,i=m&&_react.isValidElement.call(void 0, e);return _chunkT27AGDTJcjs.a.call(void 0, m===!0&&!_react.isValidElement.call(void 0, e),"MenuItem: `asChild` requires a single React element as children. Falling back to normal rendering."),_jsxruntime.jsx.call(void 0, _react3.Menu.Item,{ref:I,className:_chunkONNSZMWFcjs.a.call(void 0, b,p),"data-colorscheme":f,render:i?e:void 0,onClick:E,label:C,...M,children:i?void 0:e})});R.displayName=u;exports.a = R;
4
+ //# sourceMappingURL=chunk-52NQJSZ4.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-52NQJSZ4.cjs","../src/components/Menu/MenuItem.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","MenuItem","forwardRef","className","colorScheme","asChild","children","onClick","label","onSelect","textValue","props","ref","warn","resolvedlabel","handleClick","event","isElementChild","isValidElement","jsx","MenuPrimitive","cn"],"mappings":"AAAA,6rBAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,8BCA/E,wCAIL,+CA4ChC,IAxCAA,CAAAA,CAAiB,UAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAI7CC,CAAAA,aAAWC,+BAAAA,CAEpB,CACE,SAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CAAc,YAAA,CACd,OAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CACAC,CAAAA,CAAAA,EACG,CACHC,iCAAAA,CAAKJ,GAAa,KAAA,CAAA,CAAW,4DAA4D,CAAA,CACzFI,iCAAAA,CAAKH,GAAc,KAAA,CAAA,CAAW,2DAA2D,CAAA,CAEzF,IAAMI,CAAAA,kBAAgBN,CAAAA,SAASE,GAAAA,CAEzBK,CAAAA,CACJN,CAAAA,GAAa,KAAA,CAAA,CACRO,CAAAA,EAAsD,CACrDP,CAAAA,CAASO,CAAK,CAAA,iBACdT,CAAAA,wBAAAA,CAAUS,CAAK,GACjB,CAAA,CACAT,CAAAA,CAEAU,CAAAA,CAAiBZ,CAAAA,EAAWa,mCAAAA,CAAuB,CAAA,CACzD,OAAAL,iCAAAA,CACER,GAAY,CAAA,CAAA,EAAQ,CAACa,mCAAAA,CAAuB,CAAA,CAC5C,oGACF,CAAA,CAGEC,6BAAAA,YAACC,CAAc,IAAA,CAAd,CACC,GAAA,CAAKR,CAAAA,CACL,SAAA,CAAWS,iCAAAA,CAAGtB,CAAoBI,CAAS,CAAA,CAC3C,kBAAA,CAAkBC,CAAAA,CAClB,MAAA,CAAQa,CAAAA,CAAkBX,CAAAA,CAA4B,KAAA,CAAA,CACtD,OAAA,CAASS,CAAAA,CACT,KAAA,CAAOD,CAAAA,CACN,GAAGH,CAAAA,CAEH,QAAA,CAAAM,CAAAA,CAAiB,KAAA,CAAA,CAAYX,CAAAA,CAChC,CAEJ,CACF,CAAA,CAEAL,CAAAA,CAAS,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-52NQJSZ4.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef, isValidElement } from 'react';\nimport type { ComponentRef, ReactElement } from 'react';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { Menu as MenuPrimitive } from '@base-ui/react';\nimport type { MenuItemProps } from './MenuItem.props';\nimport { warn } from '../../helpers/logger';\n\nconst COMPONENT_NAME = 'MenuItem';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype MenuItemElement = ComponentRef<'div'>;\n\nexport const MenuItem = forwardRef<MenuItemElement, MenuItemProps>(\n (\n {\n className,\n colorScheme = 'functional',\n asChild,\n children,\n onClick,\n label,\n onSelect,\n textValue,\n ...props\n },\n ref\n ) => {\n warn(onSelect !== undefined, 'MenuItem: `onSelect` is deprecated. Use `onClick` instead.');\n warn(textValue !== undefined, 'MenuItem: `textValue` is deprecated. Use `label` instead.');\n\n const resolvedlabel = label ?? textValue;\n\n const handleClick =\n onSelect !== undefined\n ? (event: Parameters<NonNullable<typeof onClick>>[0]) => {\n onSelect(event);\n onClick?.(event);\n }\n : onClick;\n\n const isElementChild = asChild && isValidElement(children);\n warn(\n asChild === true && !isValidElement(children),\n 'MenuItem: `asChild` requires a single React element as children. Falling back to normal rendering.'\n );\n\n return (\n <MenuPrimitive.Item\n ref={ref}\n className={cn(componentClassName, className)}\n data-colorscheme={colorScheme}\n render={isElementChild ? (children as ReactElement) : undefined}\n onClick={handleClick}\n label={resolvedlabel}\n {...props}\n >\n {isElementChild ? undefined : children}\n </MenuPrimitive.Item>\n );\n }\n);\n\nMenuItem.displayName = COMPONENT_NAME;\n"]}
@@ -0,0 +1,4 @@
1
+ "use client";
2
+
3
+ var e=["sm","md"],o={size:{className:"size",tokens:e,responsive:!0,default:"sm"}};export{o as a};
4
+ //# sourceMappingURL=chunk-7CV7RBFK.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/SegmentedControl/SegmentedControl.props.ts"],"sourcesContent":["import type { ComponentPropsWithRef } from 'react';\nimport type { ToggleGroup as ToggleGroupPrimitive } from '@base-ui/react/toggle-group';\nimport type { PropDef } from '../../props/prop-def';\nimport type { Responsive } from '../../types/responsive';\nimport type { MarginProps } from '../../props/margin.props';\n\nconst sizes = ['sm', 'md'] as const;\n\nexport const segmentedControlPropDefs = {\n size: { className: 'size', tokens: sizes, responsive: true, default: 'sm' },\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n};\n\n// ToggleGroup.Props extends BaseUIComponentProps<'div'> which adds Base UI-specific surface\n// (render, className/style as state callbacks, preventBaseUIHandler on event handlers). We Pick\n// only the props we want to expose rather than extending the full primitive type, and keep the\n// underlying HTML element props via ComponentPropsWithRef<'div'>.\nexport type SegmentedControlProps = Pick<\n ToggleGroupPrimitive.Props,\n 'value' | 'defaultValue' | 'onValueChange' | 'disabled' | 'children'\n> & {\n /**\n * Sets the height of the control. `sm` is 32px and `md` is 48px.\n * Accepts a responsive value to display different sizes at different breakpoints.\n * @default sm\n */\n size?: Responsive<(typeof sizes)[number]>;\n} & Omit<ComponentPropsWithRef<'div'>, 'onChange'> &\n MarginProps;\n"],"mappings":";;AAMA,IAAMA,EAAQ,CAAC,KAAM,IAAI,EAEZC,EAA2B,CACtC,KAAM,CAAE,UAAW,OAAQ,OAAQD,EAAO,WAAY,GAAM,QAAS,IAAK,CAC5E","names":["sizes","segmentedControlPropDefs"]}
@@ -0,0 +1,4 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
+
3
+ var _chunkWDLLAQFFcjs = require('./chunk-WDLLAQFF.cjs');var _chunkHI7GZDRAcjs = require('./chunk-HI7GZDRA.cjs');var _chunkMV7VYPO6cjs = require('./chunk-MV7VYPO6.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _togglegroup = require('@base-ui/react/toggle-group');var _jsxruntime = require('react/jsx-runtime');var p="SegmentedControl",n=_chunk4Q432K4Wcjs.b.call(void 0, p),C= exports.a =_react.forwardRef.call(void 0, (i,l)=>{let{className:s,children:f,...g}=_chunkMV7VYPO6cjs.a.call(void 0, i,_chunkWDLLAQFFcjs.a,_chunkHI7GZDRAcjs.a);return _jsxruntime.jsx.call(void 0, _togglegroup.ToggleGroup,{ref:l,className:_chunkONNSZMWFcjs.a.call(void 0, n,s),"data-testid":n,...g,children:f})});C.displayName=p;exports.a = C;
4
+ //# sourceMappingURL=chunk-DSRDXNH3.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-DSRDXNH3.cjs","../src/components/SegmentedControl/SegmentedControl.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","SegmentedControl","forwardRef","props","ref","className","children","segmentedControlProps","extractProps","segmentedControlPropDefs","marginPropDefs","jsx","ToggleGroupPrimitive","cn"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,8BCAjL,0DAEyB,+CAgC9C,IAxBAA,CAAAA,CAAiB,kBAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAc7CC,CAAAA,aAAmBC,+BAAAA,CAC7BC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CACd,GAAM,CAAE,SAAA,CAAAC,CAAAA,CAAW,QAAA,CAAAC,CAAAA,CAAU,GAAGC,CAAsB,CAAA,CAAIC,iCAAAA,CACxDL,CACAM,mBAAAA,CACAC,mBACF,CAAA,CAEA,OACEC,6BAAAA,wBAACC,CAAA,CACC,GAAA,CAAKR,CAAAA,CACL,SAAA,CAAWS,iCAAAA,CAAGd,CAAoBM,CAAS,CAAA,CAC3C,aAAA,CAAaN,CAAAA,CACZ,GAAGQ,CAAAA,CAEH,QAAA,CAAAD,CAAAA,CACH,CAEJ,CACF,CAAA,CAEAL,CAAAA,CAAiB,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-DSRDXNH3.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\nimport { ToggleGroup as ToggleGroupPrimitive } from '@base-ui/react/toggle-group';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport type { SegmentedControlProps } from './SegmentedControl.props';\nimport { segmentedControlPropDefs } from './SegmentedControl.props';\n\nconst COMPONENT_NAME = 'SegmentedControl';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype SegmentedControlElement = ComponentRef<'div'>;\n\n/**\n * Use SegmentedControl to switch between alternative views of closely related content.\n * Always provide a `defaultValue` or controlled `value` — a SegmentedControl cannot\n * be used without a default selected option.\n *\n * For navigation between pages or sections, use Tabs instead.\n * For binary on/off settings, use Switch instead.\n *\n * @summary for switching between alternative views of closely related content\n */\nexport const SegmentedControl = forwardRef<SegmentedControlElement, SegmentedControlProps>(\n (props, ref) => {\n const { className, children, ...segmentedControlProps } = extractProps(\n props,\n segmentedControlPropDefs,\n marginPropDefs\n );\n\n return (\n <ToggleGroupPrimitive\n ref={ref}\n className={cn(componentClassName, className)}\n data-testid={componentClassName}\n {...segmentedControlProps}\n >\n {children}\n </ToggleGroupPrimitive>\n );\n }\n);\n\nSegmentedControl.displayName = COMPONENT_NAME;\n"]}
@@ -0,0 +1,4 @@
1
+ "use client";
2
+
3
+ import{a as m}from"./chunk-7CV7RBFK.js";import{a as r}from"./chunk-KBX2N5VR.js";import{a as t}from"./chunk-UWZUYMW4.js";import{a as o}from"./chunk-J3AJBV4B.js";import{b as e}from"./chunk-PDEVCIQ3.js";import{forwardRef as a}from"react";import{ToggleGroup as d}from"@base-ui/react/toggle-group";import{jsx as c}from"react/jsx-runtime";var p="SegmentedControl",n=e(p),C=a((i,l)=>{let{className:s,children:f,...g}=t(i,m,r);return c(d,{ref:l,className:o(n,s),"data-testid":n,...g,children:f})});C.displayName=p;export{C as a};
4
+ //# sourceMappingURL=chunk-E37ICSZV.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/SegmentedControl/SegmentedControl.tsx"],"sourcesContent":["'use client';\n\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\nimport { ToggleGroup as ToggleGroupPrimitive } from '@base-ui/react/toggle-group';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport type { SegmentedControlProps } from './SegmentedControl.props';\nimport { segmentedControlPropDefs } from './SegmentedControl.props';\n\nconst COMPONENT_NAME = 'SegmentedControl';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype SegmentedControlElement = ComponentRef<'div'>;\n\n/**\n * Use SegmentedControl to switch between alternative views of closely related content.\n * Always provide a `defaultValue` or controlled `value` — a SegmentedControl cannot\n * be used without a default selected option.\n *\n * For navigation between pages or sections, use Tabs instead.\n * For binary on/off settings, use Switch instead.\n *\n * @summary for switching between alternative views of closely related content\n */\nexport const SegmentedControl = forwardRef<SegmentedControlElement, SegmentedControlProps>(\n (props, ref) => {\n const { className, children, ...segmentedControlProps } = extractProps(\n props,\n segmentedControlPropDefs,\n marginPropDefs\n );\n\n return (\n <ToggleGroupPrimitive\n ref={ref}\n className={cn(componentClassName, className)}\n data-testid={componentClassName}\n {...segmentedControlProps}\n >\n {children}\n </ToggleGroupPrimitive>\n );\n }\n);\n\nSegmentedControl.displayName = COMPONENT_NAME;\n"],"mappings":";;wMAEA,OAAS,cAAAA,MAAkB,QAE3B,OAAS,eAAeC,MAA4B,8BAgC9C,cAAAC,MAAA,oBAxBN,IAAMC,EAAiB,mBACjBC,EAAqBC,EAAiBF,CAAc,EAc7CG,EAAmBC,EAC9B,CAACC,EAAOC,IAAQ,CACd,GAAM,CAAE,UAAAC,EAAW,SAAAC,EAAU,GAAGC,CAAsB,EAAIC,EACxDL,EACAM,EACAC,CACF,EAEA,OACEb,EAACc,EAAA,CACC,IAAKP,EACL,UAAWQ,EAAGb,EAAoBM,CAAS,EAC3C,cAAaN,EACZ,GAAGQ,EAEH,SAAAD,EACH,CAEJ,CACF,EAEAL,EAAiB,YAAcH","names":["forwardRef","ToggleGroupPrimitive","jsx","COMPONENT_NAME","componentClassName","withGlobalPrefix","SegmentedControl","forwardRef","props","ref","className","children","segmentedControlProps","extractProps","segmentedControlPropDefs","marginPropDefs","ToggleGroupPrimitive","cn"]}
@@ -0,0 +1,4 @@
1
+ "use client";
2
+
3
+ import{a as e}from"./chunk-J3AJBV4B.js";import{b as r}from"./chunk-PDEVCIQ3.js";import{forwardRef as p}from"react";import{Menu as g}from"@base-ui/react";import{jsx as u}from"react/jsx-runtime";var o="MenuTrigger",f=r(o),s=p(({className:n,children:t,...i},m)=>u(g.Trigger,{ref:m,className:e(f,n),render:t,...i}));s.displayName=o;export{s as a};
4
+ //# sourceMappingURL=chunk-ECA6VI7J.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/Menu/MenuTrigger.tsx"],"sourcesContent":["'use client';\n\nimport { forwardRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { Menu as MenuPrimitive } from '@base-ui/react';\nimport type { MenuTriggerProps } from './MenuTrigger.props';\nimport type { ComponentRef } from 'react';\n\nconst COMPONENT_NAME = 'MenuTrigger';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype MenuTriggerElement = ComponentRef<'button'>;\n\nexport const MenuTrigger = forwardRef<MenuTriggerElement, MenuTriggerProps>(\n ({ className, children, ...props }, ref) => {\n return (\n <MenuPrimitive.Trigger\n ref={ref}\n className={cn(componentClassName, className)}\n render={children}\n {...props}\n />\n );\n }\n);\n\nMenuTrigger.displayName = COMPONENT_NAME;\n"],"mappings":";;gFAEA,OAAS,cAAAA,MAAkB,QAG3B,OAAS,QAAQC,MAAqB,iBAYhC,cAAAC,MAAA,oBARN,IAAMC,EAAiB,cACjBC,EAAqBC,EAAiBF,CAAc,EAI7CG,EAAcC,EACzB,CAAC,CAAE,UAAAC,EAAW,SAAAC,EAAU,GAAGC,CAAM,EAAGC,IAEhCT,EAACD,EAAc,QAAd,CACC,IAAKU,EACL,UAAWC,EAAGR,EAAoBI,CAAS,EAC3C,OAAQC,EACP,GAAGC,EACN,CAGN,EAEAJ,EAAY,YAAcH","names":["forwardRef","MenuPrimitive","jsx","COMPONENT_NAME","componentClassName","withGlobalPrefix","MenuTrigger","forwardRef","className","children","props","ref","cn"]}
@@ -0,0 +1,4 @@
1
+ "use client";
2
+
3
+ import{a as n}from"./chunk-UMCDT4ZD.js";import{a as l}from"./chunk-J3AJBV4B.js";import{b as s}from"./chunk-PDEVCIQ3.js";import{forwardRef as N,isValidElement as d}from"react";import{Menu as P}from"@base-ui/react";import{jsx as y}from"react/jsx-runtime";var u="MenuItem",b=s(u),R=N(({className:p,colorScheme:f="functional",asChild:m,children:e,onClick:o,label:c,onSelect:t,textValue:r,...M},I)=>{n(t!==void 0,"MenuItem: `onSelect` is deprecated. Use `onClick` instead."),n(r!==void 0,"MenuItem: `textValue` is deprecated. Use `label` instead.");let C=c??r,E=t!==void 0?a=>{t(a),o?.(a)}:o,i=m&&d(e);return n(m===!0&&!d(e),"MenuItem: `asChild` requires a single React element as children. Falling back to normal rendering."),y(P.Item,{ref:I,className:l(b,p),"data-colorscheme":f,render:i?e:void 0,onClick:E,label:C,...M,children:i?void 0:e})});R.displayName=u;export{R as a};
4
+ //# sourceMappingURL=chunk-EUOX7RSZ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/Menu/MenuItem.tsx"],"sourcesContent":["'use client';\n\nimport { forwardRef, isValidElement } from 'react';\nimport type { ComponentRef, ReactElement } from 'react';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { Menu as MenuPrimitive } from '@base-ui/react';\nimport type { MenuItemProps } from './MenuItem.props';\nimport { warn } from '../../helpers/logger';\n\nconst COMPONENT_NAME = 'MenuItem';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype MenuItemElement = ComponentRef<'div'>;\n\nexport const MenuItem = forwardRef<MenuItemElement, MenuItemProps>(\n (\n {\n className,\n colorScheme = 'functional',\n asChild,\n children,\n onClick,\n label,\n onSelect,\n textValue,\n ...props\n },\n ref\n ) => {\n warn(onSelect !== undefined, 'MenuItem: `onSelect` is deprecated. Use `onClick` instead.');\n warn(textValue !== undefined, 'MenuItem: `textValue` is deprecated. Use `label` instead.');\n\n const resolvedlabel = label ?? textValue;\n\n const handleClick =\n onSelect !== undefined\n ? (event: Parameters<NonNullable<typeof onClick>>[0]) => {\n onSelect(event);\n onClick?.(event);\n }\n : onClick;\n\n const isElementChild = asChild && isValidElement(children);\n warn(\n asChild === true && !isValidElement(children),\n 'MenuItem: `asChild` requires a single React element as children. Falling back to normal rendering.'\n );\n\n return (\n <MenuPrimitive.Item\n ref={ref}\n className={cn(componentClassName, className)}\n data-colorscheme={colorScheme}\n render={isElementChild ? (children as ReactElement) : undefined}\n onClick={handleClick}\n label={resolvedlabel}\n {...props}\n >\n {isElementChild ? undefined : children}\n </MenuPrimitive.Item>\n );\n }\n);\n\nMenuItem.displayName = COMPONENT_NAME;\n"],"mappings":";;wHAEA,OAAS,cAAAA,EAAY,kBAAAC,MAAsB,QAI3C,OAAS,QAAQC,MAAqB,iBA4ChC,cAAAC,MAAA,oBAxCN,IAAMC,EAAiB,WACjBC,EAAqBC,EAAiBF,CAAc,EAI7CG,EAAWC,EACtB,CACE,CACE,UAAAC,EACA,YAAAC,EAAc,aACd,QAAAC,EACA,SAAAC,EACA,QAAAC,EACA,MAAAC,EACA,SAAAC,EACA,UAAAC,EACA,GAAGC,CACL,EACAC,IACG,CACHC,EAAKJ,IAAa,OAAW,4DAA4D,EACzFI,EAAKH,IAAc,OAAW,2DAA2D,EAEzF,IAAMI,EAAgBN,GAASE,EAEzBK,EACJN,IAAa,OACRO,GAAsD,CACrDP,EAASO,CAAK,EACdT,IAAUS,CAAK,CACjB,EACAT,EAEAU,EAAiBZ,GAAWa,EAAeZ,CAAQ,EACzD,OAAAO,EACER,IAAY,IAAQ,CAACa,EAAeZ,CAAQ,EAC5C,oGACF,EAGET,EAACsB,EAAc,KAAd,CACC,IAAKP,EACL,UAAWQ,EAAGrB,EAAoBI,CAAS,EAC3C,mBAAkBC,EAClB,OAAQa,EAAkBX,EAA4B,OACtD,QAASS,EACT,MAAOD,EACN,GAAGH,EAEH,SAAAM,EAAiB,OAAYX,EAChC,CAEJ,CACF,EAEAL,EAAS,YAAcH","names":["forwardRef","isValidElement","MenuPrimitive","jsx","COMPONENT_NAME","componentClassName","withGlobalPrefix","MenuItem","forwardRef","className","colorScheme","asChild","children","onClick","label","onSelect","textValue","props","ref","warn","resolvedlabel","handleClick","event","isElementChild","isValidElement","MenuPrimitive","cn"]}
@@ -0,0 +1,4 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
+
3
+ var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _react3 = require('@base-ui/react');var _jsxruntime = require('react/jsx-runtime');var o="MenuTrigger",f=_chunk4Q432K4Wcjs.b.call(void 0, o),s= exports.a =_react.forwardRef.call(void 0, ({className:n,children:t,...i},m)=>_jsxruntime.jsx.call(void 0, _react3.Menu.Trigger,{ref:m,className:_chunkONNSZMWFcjs.a.call(void 0, f,n),render:t,...i}));s.displayName=o;exports.a = s;
4
+ //# sourceMappingURL=chunk-GDJ3WYMP.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-GDJ3WYMP.cjs","../src/components/Menu/MenuTrigger.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","MenuTrigger","forwardRef","className","children","props","ref","jsx","MenuPrimitive","cn"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,8BCAtD,wCAGW,+CAYhC,IARAA,CAAAA,CAAiB,aAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAI7CC,CAAAA,aAAcC,+BAAAA,CACxB,CAAE,SAAA,CAAAC,CAAAA,CAAW,QAAA,CAAAC,CAAAA,CAAU,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAEhCC,6BAAAA,YAACC,CAAc,OAAA,CAAd,CACC,GAAA,CAAKF,CAAAA,CACL,SAAA,CAAWG,iCAAAA,CAAGV,CAAoBI,CAAS,CAAA,CAC3C,MAAA,CAAQC,CAAAA,CACP,GAAGC,CAAAA,CACN,CAGN,CAAA,CAEAJ,CAAAA,CAAY,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-GDJ3WYMP.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { Menu as MenuPrimitive } from '@base-ui/react';\nimport type { MenuTriggerProps } from './MenuTrigger.props';\nimport type { ComponentRef } from 'react';\n\nconst COMPONENT_NAME = 'MenuTrigger';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype MenuTriggerElement = ComponentRef<'button'>;\n\nexport const MenuTrigger = forwardRef<MenuTriggerElement, MenuTriggerProps>(\n ({ className, children, ...props }, ref) => {\n return (\n <MenuPrimitive.Trigger\n ref={ref}\n className={cn(componentClassName, className)}\n render={children}\n {...props}\n />\n );\n }\n);\n\nMenuTrigger.displayName = COMPONENT_NAME;\n"]}
@@ -0,0 +1,4 @@
1
+ "use client";
2
+
3
+ import{a as n}from"./chunk-J3AJBV4B.js";import{b as e}from"./chunk-PDEVCIQ3.js";import{forwardRef as d}from"react";import{Toggle as g}from"@base-ui/react/toggle";import{jsx as c,jsxs as O}from"react/jsx-runtime";var o="SegmentedControlOption",m=e(o),f=e(`${o}Label`),C=d(({className:r,label:t,icon:p,value:i,disabled:l,...a},s)=>O(g,{ref:s,value:i,disabled:l,className:n(m,r),"data-testid":m,...a,children:[p,c("span",{className:f,"data-text":t,children:t})]}));C.displayName=o;export{C as a};
4
+ //# sourceMappingURL=chunk-NJMLALZH.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/SegmentedControl/SegmentedControlOption.tsx"],"sourcesContent":["'use client';\n\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\nimport { Toggle as TogglePrimitive } from '@base-ui/react/toggle';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { SegmentedControlOptionProps } from './SegmentedControlOption.props';\n\nconst COMPONENT_NAME = 'SegmentedControlOption';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\nconst labelClassName = withGlobalPrefix(`${COMPONENT_NAME}Label`);\n\ntype SegmentedControlOptionElement = ComponentRef<'button'>;\n\n/**\n * A single selectable option within a `SegmentedControl`. Must be used as a\n * direct child of `SegmentedControl`. Each option requires a unique `value`.\n *\n * @summary a selectable option inside a SegmentedControl\n */\nexport const SegmentedControlOption = forwardRef<\n SegmentedControlOptionElement,\n SegmentedControlOptionProps\n>(({ className, label, icon, value, disabled, ...props }, ref) => {\n return (\n <TogglePrimitive\n ref={ref}\n value={value}\n disabled={disabled}\n className={cn(componentClassName, className)}\n data-testid={componentClassName}\n {...props}\n >\n {icon}\n <span className={labelClassName} data-text={label}>\n {label}\n </span>\n </TogglePrimitive>\n );\n});\n\nSegmentedControlOption.displayName = COMPONENT_NAME;\n"],"mappings":";;gFAEA,OAAS,cAAAA,MAAkB,QAE3B,OAAS,UAAUC,MAAuB,wBAsBtC,OASE,OAAAC,EATF,QAAAC,MAAA,oBAjBJ,IAAMC,EAAiB,yBACjBC,EAAqBC,EAAiBF,CAAc,EACpDG,EAAiBD,EAAiB,GAAGF,CAAc,OAAO,EAUnDI,EAAyBC,EAGpC,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAO,KAAAC,EAAM,MAAAC,EAAO,SAAAC,EAAU,GAAGC,CAAM,EAAGC,IAEtDb,EAACc,EAAA,CACC,IAAKD,EACL,MAAOH,EACP,SAAUC,EACV,UAAWI,EAAGb,EAAoBK,CAAS,EAC3C,cAAaL,EACZ,GAAGU,EAEH,UAAAH,EACDV,EAAC,QAAK,UAAWK,EAAgB,YAAWI,EACzC,SAAAA,EACH,GACF,CAEH,EAEDH,EAAuB,YAAcJ","names":["forwardRef","TogglePrimitive","jsx","jsxs","COMPONENT_NAME","componentClassName","withGlobalPrefix","labelClassName","SegmentedControlOption","forwardRef","className","label","icon","value","disabled","props","ref","TogglePrimitive","cn"]}
@@ -0,0 +1,4 @@
1
+ "use client";
2
+
3
+ import{a}from"./chunk-UMCDT4ZD.js";import{a as i}from"./chunk-J3AJBV4B.js";import{b as t}from"./chunk-PDEVCIQ3.js";import{forwardRef as M}from"react";import{Menu as r,ScrollArea as o}from"@base-ui/react";import{jsx as e,jsxs as b}from"react/jsx-runtime";var s="MenuContent",l=t(s),C={bottomLeft:{side:"bottom",align:"start"},bottomRight:{side:"bottom",align:"end"},topLeft:{side:"top",align:"start"},topRight:{side:"top",align:"end"}},S=M(({className:m,children:p,forceMount:n,keepMounted:c,placement:d="bottomLeft",...u},f)=>{a(n!==void 0,"MenuContent: `forceMount` is deprecated. Use `keepMounted` instead.");let P=c??(n?!0:void 0);return e(r.Portal,{keepMounted:P,children:e(r.Positioner,{...C[d],sideOffset:4,collisionPadding:8,children:e(r.Popup,{ref:f,finalFocus:!0,className:i(l,m),...u,children:b(o.Root,{className:t("ScrollAreaRoot"),children:[e(o.Viewport,{className:t("ScrollAreaViewport"),children:e(o.Content,{className:`${l}List`,children:p})}),e(o.Scrollbar,{className:t("ScrollAreaScrollbar"),orientation:"vertical",children:e(o.Thumb,{className:t("ScrollAreaThumb")})})]})})})})});S.displayName=s;export{S as a};
4
+ //# sourceMappingURL=chunk-OSQTRLPK.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/Menu/MenuContent.tsx"],"sourcesContent":["'use client';\n\nimport { forwardRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { Menu as MenuPrimitive, ScrollArea as ScrollAreaPrimitive } from '@base-ui/react';\nimport type { MenuContentProps } from './MenuContent.props';\nimport { warn } from '../../helpers/logger';\nimport type { ComponentRef } from 'react';\n\nconst COMPONENT_NAME = 'MenuContent';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype MenuContentElement = ComponentRef<'div'>;\n\nconst placementTranslation: Record<string, { side: 'bottom' | 'top'; align: 'start' | 'end' }> = {\n bottomLeft: { side: 'bottom', align: 'start' },\n bottomRight: { side: 'bottom', align: 'end' },\n topLeft: { side: 'top', align: 'start' },\n topRight: { side: 'top', align: 'end' },\n};\n\nexport const MenuContent = forwardRef<MenuContentElement, MenuContentProps>(\n ({ className, children, forceMount, keepMounted, placement = 'bottomLeft', ...props }, ref) => {\n warn(\n forceMount !== undefined,\n 'MenuContent: `forceMount` is deprecated. Use `keepMounted` instead.'\n );\n const resolvedKeepMounted = keepMounted ?? (forceMount ? true : undefined);\n\n return (\n <MenuPrimitive.Portal keepMounted={resolvedKeepMounted}>\n <MenuPrimitive.Positioner\n {...placementTranslation[placement]}\n sideOffset={4}\n collisionPadding={8}\n >\n <MenuPrimitive.Popup\n ref={ref}\n finalFocus\n className={cn(componentClassName, className)}\n {...props}\n >\n <ScrollAreaPrimitive.Root className={withGlobalPrefix('ScrollAreaRoot')}>\n <ScrollAreaPrimitive.Viewport className={withGlobalPrefix('ScrollAreaViewport')}>\n <ScrollAreaPrimitive.Content className={`${componentClassName}List`}>\n {children}\n </ScrollAreaPrimitive.Content>\n </ScrollAreaPrimitive.Viewport>\n <ScrollAreaPrimitive.Scrollbar\n className={withGlobalPrefix('ScrollAreaScrollbar')}\n orientation=\"vertical\"\n >\n <ScrollAreaPrimitive.Thumb className={withGlobalPrefix('ScrollAreaThumb')} />\n </ScrollAreaPrimitive.Scrollbar>\n </ScrollAreaPrimitive.Root>\n </MenuPrimitive.Popup>\n </MenuPrimitive.Positioner>\n </MenuPrimitive.Portal>\n );\n }\n);\n\nMenuContent.displayName = COMPONENT_NAME;\n"],"mappings":";;mHAEA,OAAS,cAAAA,MAAkB,QAG3B,OAAS,QAAQC,EAAe,cAAcC,MAA2B,iBAsC7D,OAEI,OAAAC,EAFJ,QAAAC,MAAA,oBAjCZ,IAAMC,EAAiB,cACjBC,EAAqBC,EAAiBF,CAAc,EAIpDG,EAA2F,CAC/F,WAAY,CAAE,KAAM,SAAU,MAAO,OAAQ,EAC7C,YAAa,CAAE,KAAM,SAAU,MAAO,KAAM,EAC5C,QAAS,CAAE,KAAM,MAAO,MAAO,OAAQ,EACvC,SAAU,CAAE,KAAM,MAAO,MAAO,KAAM,CACxC,EAEaC,EAAcC,EACzB,CAAC,CAAE,UAAAC,EAAW,SAAAC,EAAU,WAAAC,EAAY,YAAAC,EAAa,UAAAC,EAAY,aAAc,GAAGC,CAAM,EAAGC,IAAQ,CAC7FC,EACEL,IAAe,OACf,qEACF,EACA,IAAMM,EAAsBL,IAAgBD,EAAa,GAAO,QAEhE,OACEV,EAACiB,EAAc,OAAd,CAAqB,YAAaD,EACjC,SAAAhB,EAACiB,EAAc,WAAd,CACE,GAAGZ,EAAqBO,CAAS,EAClC,WAAY,EACZ,iBAAkB,EAElB,SAAAZ,EAACiB,EAAc,MAAd,CACC,IAAKH,EACL,WAAU,GACV,UAAWI,EAAGf,EAAoBK,CAAS,EAC1C,GAAGK,EAEJ,SAAAZ,EAACkB,EAAoB,KAApB,CAAyB,UAAWf,EAAiB,gBAAgB,EACpE,UAAAJ,EAACmB,EAAoB,SAApB,CAA6B,UAAWf,EAAiB,oBAAoB,EAC5E,SAAAJ,EAACmB,EAAoB,QAApB,CAA4B,UAAW,GAAGhB,CAAkB,OAC1D,SAAAM,EACH,EACF,EACAT,EAACmB,EAAoB,UAApB,CACC,UAAWf,EAAiB,qBAAqB,EACjD,YAAY,WAEZ,SAAAJ,EAACmB,EAAoB,MAApB,CAA0B,UAAWf,EAAiB,iBAAiB,EAAG,EAC7E,GACF,EACF,EACF,EACF,CAEJ,CACF,EAEAE,EAAY,YAAcJ","names":["forwardRef","MenuPrimitive","ScrollAreaPrimitive","jsx","jsxs","COMPONENT_NAME","componentClassName","withGlobalPrefix","placementTranslation","MenuContent","forwardRef","className","children","forceMount","keepMounted","placement","props","ref","warn","resolvedKeepMounted","MenuPrimitive","cn","ScrollAreaPrimitive"]}
@@ -0,0 +1,4 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
+
3
+ var _react = require('@base-ui/react');var _jsxruntime = require('react/jsx-runtime');var o=n=>_jsxruntime.jsx.call(void 0, _react.Menu.Root,{...n});o.createHandle=_react.Menu.createHandle;o.displayName="Menu";exports.a = o;
4
+ //# sourceMappingURL=chunk-PQPP4JZR.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-PQPP4JZR.cjs","../src/components/Menu/Menu.tsx"],"names":["Menu","props","jsx","MenuPrimitive"],"mappings":"AAAA,qFAAY;AACZ;ACEA,uCAAsC,+CAEI,IAA7BA,CAAAA,CAAQC,CAAAA,EAAqBC,6BAAAA,WAACC,CAAc,IAAA,CAAd,CAAoB,GAAGF,CAAAA,CAAO,CAAA,CAEzED,CAAAA,CAAK,YAAA,CAAeG,WAAAA,CAAc,YAAA,CAElCH,CAAAA,CAAK,WAAA,CAAc,MAAA,CAAA,cAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-PQPP4JZR.cjs","sourcesContent":[null,"'use client';\n\nimport type { MenuProps } from './Menu.props';\nimport { Menu as MenuPrimitive } from '@base-ui/react';\n\nexport const Menu = (props: MenuProps) => <MenuPrimitive.Root {...props} />;\n\nMenu.createHandle = MenuPrimitive.createHandle;\n\nMenu.displayName = 'Menu';\n"]}
@@ -0,0 +1,4 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
+
3
+ var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _toggle = require('@base-ui/react/toggle');var _jsxruntime = require('react/jsx-runtime');var o="SegmentedControlOption",m=_chunk4Q432K4Wcjs.b.call(void 0, o),f=_chunk4Q432K4Wcjs.b.call(void 0, `${o}Label`),C= exports.a =_react.forwardRef.call(void 0, ({className:r,label:t,icon:p,value:i,disabled:l,...a},s)=>_jsxruntime.jsxs.call(void 0, _toggle.Toggle,{ref:s,value:i,disabled:l,className:_chunkONNSZMWFcjs.a.call(void 0, m,r),"data-testid":m,...a,children:[p,_jsxruntime.jsx.call(void 0, "span",{className:f,"data-text":t,children:t})]}));C.displayName=o;exports.a = C;
4
+ //# sourceMappingURL=chunk-UXOZQAZJ.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-UXOZQAZJ.cjs","../src/components/SegmentedControl/SegmentedControlOption.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","labelClassName"],"mappings":"AAAA,qFAAY;AACZ;AACA,wDAAwC,wDAAyC,8BCAtD,+CAEe,+CAsBtC,IAjBEA,CAAAA,CAAiB,wBAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CACpDC,CAAAA,CAAiBD,iCAAAA,CAAiB,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-UXOZQAZJ.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef } from 'react';\nimport type { ComponentRef } from 'react';\nimport { Toggle as TogglePrimitive } from '@base-ui/react/toggle';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { SegmentedControlOptionProps } from './SegmentedControlOption.props';\n\nconst COMPONENT_NAME = 'SegmentedControlOption';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\nconst labelClassName = withGlobalPrefix(`${COMPONENT_NAME}Label`);\n\ntype SegmentedControlOptionElement = ComponentRef<'button'>;\n\n/**\n * A single selectable option within a `SegmentedControl`. Must be used as a\n * direct child of `SegmentedControl`. Each option requires a unique `value`.\n *\n * @summary a selectable option inside a SegmentedControl\n */\nexport const SegmentedControlOption = forwardRef<\n SegmentedControlOptionElement,\n SegmentedControlOptionProps\n>(({ className, label, icon, value, disabled, ...props }, ref) => {\n return (\n <TogglePrimitive\n ref={ref}\n value={value}\n disabled={disabled}\n className={cn(componentClassName, className)}\n data-testid={componentClassName}\n {...props}\n >\n {icon}\n <span className={labelClassName} data-text={label}>\n {label}\n </span>\n </TogglePrimitive>\n );\n});\n\nSegmentedControlOption.displayName = COMPONENT_NAME;\n"]}
@@ -0,0 +1,4 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
+
3
+ var e=["sm","md"],o= exports.a ={size:{className:"size",tokens:e,responsive:!0,default:"sm"}};exports.a = o;
4
+ //# sourceMappingURL=chunk-WDLLAQFF.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-WDLLAQFF.cjs","../src/components/SegmentedControl/SegmentedControl.props.ts"],"names":["sizes","segmentedControlPropDefs"],"mappings":"AAAA,qFAAY;AACZ;ACKA,IAAMA,CAAAA,CAAQ,CAAC,IAAA,CAAM,IAAI,CAAA,CAEZC,CAAAA,aAA2B,CACtC,IAAA,CAAM,CAAE,SAAA,CAAW,MAAA,CAAQ,MAAA,CAAQD,CAAAA,CAAO,UAAA,CAAY,CAAA,CAAA,CAAM,OAAA,CAAS,IAAK,CAC5E,CAAA,CAAA,cAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-WDLLAQFF.cjs","sourcesContent":[null,"import type { ComponentPropsWithRef } from 'react';\nimport type { ToggleGroup as ToggleGroupPrimitive } from '@base-ui/react/toggle-group';\nimport type { PropDef } from '../../props/prop-def';\nimport type { Responsive } from '../../types/responsive';\nimport type { MarginProps } from '../../props/margin.props';\n\nconst sizes = ['sm', 'md'] as const;\n\nexport const segmentedControlPropDefs = {\n size: { className: 'size', tokens: sizes, responsive: true, default: 'sm' },\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n};\n\n// ToggleGroup.Props extends BaseUIComponentProps<'div'> which adds Base UI-specific surface\n// (render, className/style as state callbacks, preventBaseUIHandler on event handlers). We Pick\n// only the props we want to expose rather than extending the full primitive type, and keep the\n// underlying HTML element props via ComponentPropsWithRef<'div'>.\nexport type SegmentedControlProps = Pick<\n ToggleGroupPrimitive.Props,\n 'value' | 'defaultValue' | 'onValueChange' | 'disabled' | 'children'\n> & {\n /**\n * Sets the height of the control. `sm` is 32px and `md` is 48px.\n * Accepts a responsive value to display different sizes at different breakpoints.\n * @default sm\n */\n size?: Responsive<(typeof sizes)[number]>;\n} & Omit<ComponentPropsWithRef<'div'>, 'onChange'> &\n MarginProps;\n"]}
@@ -0,0 +1,4 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }"use client";
2
+
3
+ var _chunkT27AGDTJcjs = require('./chunk-T27AGDTJ.cjs');var _chunkONNSZMWFcjs = require('./chunk-ONNSZMWF.cjs');var _chunk4Q432K4Wcjs = require('./chunk-4Q432K4W.cjs');var _react = require('react');var _react3 = require('@base-ui/react');var _jsxruntime = require('react/jsx-runtime');var s="MenuContent",l=_chunk4Q432K4Wcjs.b.call(void 0, s),C={bottomLeft:{side:"bottom",align:"start"},bottomRight:{side:"bottom",align:"end"},topLeft:{side:"top",align:"start"},topRight:{side:"top",align:"end"}},S= exports.a =_react.forwardRef.call(void 0, ({className:m,children:p,forceMount:n,keepMounted:c,placement:d="bottomLeft",...u},f)=>{_chunkT27AGDTJcjs.a.call(void 0, n!==void 0,"MenuContent: `forceMount` is deprecated. Use `keepMounted` instead.");let P=_nullishCoalesce(c, () => ((n?!0:void 0)));return _jsxruntime.jsx.call(void 0, _react3.Menu.Portal,{keepMounted:P,children:_jsxruntime.jsx.call(void 0, _react3.Menu.Positioner,{...C[d],sideOffset:4,collisionPadding:8,children:_jsxruntime.jsx.call(void 0, _react3.Menu.Popup,{ref:f,finalFocus:!0,className:_chunkONNSZMWFcjs.a.call(void 0, l,m),...u,children:_jsxruntime.jsxs.call(void 0, _react3.ScrollArea.Root,{className:_chunk4Q432K4Wcjs.b.call(void 0, "ScrollAreaRoot"),children:[_jsxruntime.jsx.call(void 0, _react3.ScrollArea.Viewport,{className:_chunk4Q432K4Wcjs.b.call(void 0, "ScrollAreaViewport"),children:_jsxruntime.jsx.call(void 0, _react3.ScrollArea.Content,{className:`${l}List`,children:p})}),_jsxruntime.jsx.call(void 0, _react3.ScrollArea.Scrollbar,{className:_chunk4Q432K4Wcjs.b.call(void 0, "ScrollAreaScrollbar"),orientation:"vertical",children:_jsxruntime.jsx.call(void 0, _react3.ScrollArea.Thumb,{className:_chunk4Q432K4Wcjs.b.call(void 0, "ScrollAreaThumb")})})]})})})})});S.displayName=s;exports.a = S;
4
+ //# sourceMappingURL=chunk-XPPODAZP.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-XPPODAZP.cjs","../src/components/Menu/MenuContent.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","placementTranslation","MenuContent","forwardRef","className","children","forceMount","keepMounted","placement","props","ref","warn","resolvedKeepMounted","jsx","MenuPrimitive","cn","jsxs","ScrollAreaPrimitive"],"mappings":"AAAA,yLAAY;AACZ;AACA,wDAAmC,wDAAyC,wDAAyC,8BCA1F,wCAG8C,+CAsC7D,IAjCNA,CAAAA,CAAiB,aAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAIpDC,CAAAA,CAA2F,CAC/F,UAAA,CAAY,CAAE,IAAA,CAAM,QAAA,CAAU,KAAA,CAAO,OAAQ,CAAA,CAC7C,WAAA,CAAa,CAAE,IAAA,CAAM,QAAA,CAAU,KAAA,CAAO,KAAM,CAAA,CAC5C,OAAA,CAAS,CAAE,IAAA,CAAM,KAAA,CAAO,KAAA,CAAO,OAAQ,CAAA,CACvC,QAAA,CAAU,CAAE,IAAA,CAAM,KAAA,CAAO,KAAA,CAAO,KAAM,CACxC,CAAA,CAEaC,CAAAA,aAAcC,+BAAAA,CACxB,CAAE,SAAA,CAAAC,CAAAA,CAAW,QAAA,CAAAC,CAAAA,CAAU,UAAA,CAAAC,CAAAA,CAAY,WAAA,CAAAC,CAAAA,CAAa,SAAA,CAAAC,CAAAA,CAAY,YAAA,CAAc,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAAQ,CAC7FC,iCAAAA,CACEL,GAAe,KAAA,CAAA,CACf,qEACF,CAAA,CACA,IAAMM,CAAAA,kBAAsBL,CAAAA,SAAAA,CAAgBD,CAAAA,CAAa,CAAA,CAAA,CAAO,KAAA,CAAA,GAAA,CAEhE,OACEO,6BAAAA,YAACC,CAAc,MAAA,CAAd,CAAqB,WAAA,CAAaF,CAAAA,CACjC,QAAA,CAAAC,6BAAAA,YAACC,CAAc,UAAA,CAAd,CACE,GAAGb,CAAAA,CAAqBO,CAAS,CAAA,CAClC,UAAA,CAAY,CAAA,CACZ,gBAAA,CAAkB,CAAA,CAElB,QAAA,CAAAK,6BAAAA,YAACC,CAAc,KAAA,CAAd,CACC,GAAA,CAAKJ,CAAAA,CACL,UAAA,CAAU,CAAA,CAAA,CACV,SAAA,CAAWK,iCAAAA,CAAGhB,CAAoBK,CAAS,CAAA,CAC1C,GAAGK,CAAAA,CAEJ,QAAA,CAAAO,8BAAAA,kBAACC,CAAoB,IAAA,CAApB,CAAyB,SAAA,CAAWjB,iCAAAA,gBAAiC,CAAA,CACpE,QAAA,CAAA,CAAAa,6BAAAA,kBAACI,CAAoB,QAAA,CAApB,CAA6B,SAAA,CAAWjB,iCAAAA,oBAAqC,CAAA,CAC5E,QAAA,CAAAa,6BAAAA,kBAACI,CAAoB,OAAA,CAApB,CAA4B,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-XPPODAZP.cjs","sourcesContent":[null,"'use client';\n\nimport { forwardRef } from 'react';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { Menu as MenuPrimitive, ScrollArea as ScrollAreaPrimitive } from '@base-ui/react';\nimport type { MenuContentProps } from './MenuContent.props';\nimport { warn } from '../../helpers/logger';\nimport type { ComponentRef } from 'react';\n\nconst COMPONENT_NAME = 'MenuContent';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ntype MenuContentElement = ComponentRef<'div'>;\n\nconst placementTranslation: Record<string, { side: 'bottom' | 'top'; align: 'start' | 'end' }> = {\n bottomLeft: { side: 'bottom', align: 'start' },\n bottomRight: { side: 'bottom', align: 'end' },\n topLeft: { side: 'top', align: 'start' },\n topRight: { side: 'top', align: 'end' },\n};\n\nexport const MenuContent = forwardRef<MenuContentElement, MenuContentProps>(\n ({ className, children, forceMount, keepMounted, placement = 'bottomLeft', ...props }, ref) => {\n warn(\n forceMount !== undefined,\n 'MenuContent: `forceMount` is deprecated. Use `keepMounted` instead.'\n );\n const resolvedKeepMounted = keepMounted ?? (forceMount ? true : undefined);\n\n return (\n <MenuPrimitive.Portal keepMounted={resolvedKeepMounted}>\n <MenuPrimitive.Positioner\n {...placementTranslation[placement]}\n sideOffset={4}\n collisionPadding={8}\n >\n <MenuPrimitive.Popup\n ref={ref}\n finalFocus\n className={cn(componentClassName, className)}\n {...props}\n >\n <ScrollAreaPrimitive.Root className={withGlobalPrefix('ScrollAreaRoot')}>\n <ScrollAreaPrimitive.Viewport className={withGlobalPrefix('ScrollAreaViewport')}>\n <ScrollAreaPrimitive.Content className={`${componentClassName}List`}>\n {children}\n </ScrollAreaPrimitive.Content>\n </ScrollAreaPrimitive.Viewport>\n <ScrollAreaPrimitive.Scrollbar\n className={withGlobalPrefix('ScrollAreaScrollbar')}\n orientation=\"vertical\"\n >\n <ScrollAreaPrimitive.Thumb className={withGlobalPrefix('ScrollAreaThumb')} />\n </ScrollAreaPrimitive.Scrollbar>\n </ScrollAreaPrimitive.Root>\n </MenuPrimitive.Popup>\n </MenuPrimitive.Positioner>\n </MenuPrimitive.Portal>\n );\n }\n);\n\nMenuContent.displayName = COMPONENT_NAME;\n"]}
@@ -0,0 +1,4 @@
1
+ "use client";
2
+
3
+ import{Menu as e}from"@base-ui/react";import{jsx as p}from"react/jsx-runtime";var o=n=>p(e.Root,{...n});o.createHandle=e.createHandle;o.displayName="Menu";export{o as a};
4
+ //# sourceMappingURL=chunk-XVV4DBFD.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/Menu/Menu.tsx"],"sourcesContent":["'use client';\n\nimport type { MenuProps } from './Menu.props';\nimport { Menu as MenuPrimitive } from '@base-ui/react';\n\nexport const Menu = (props: MenuProps) => <MenuPrimitive.Root {...props} />;\n\nMenu.createHandle = MenuPrimitive.createHandle;\n\nMenu.displayName = 'Menu';\n"],"mappings":";;AAGA,OAAS,QAAQA,MAAqB,iBAEI,cAAAC,MAAA,oBAAnC,IAAMC,EAAQC,GAAqBF,EAACD,EAAc,KAAd,CAAoB,GAAGG,EAAO,EAEzED,EAAK,aAAeF,EAAc,aAElCE,EAAK,YAAc","names":["MenuPrimitive","jsx","Menu","props"]}
@@ -1,4 +1,4 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
- "use client";var _chunkBCAGQPQDcjs = require('../../chunk-BCAGQPQD.cjs');exports.Menu = _chunkBCAGQPQDcjs.a;
3
+ "use client";var _chunkPQPP4JZRcjs = require('../../chunk-PQPP4JZR.cjs');exports.Menu = _chunkPQPP4JZRcjs.a;
4
4
  //# sourceMappingURL=Menu.cjs.map
@@ -1,6 +1,8 @@
1
1
  import type { MenuProps } from './Menu.props';
2
+ import { Menu as MenuPrimitive } from '@base-ui/react';
2
3
  export declare const Menu: {
3
4
  (props: MenuProps): import("react/jsx-runtime").JSX.Element;
5
+ createHandle: typeof MenuPrimitive.createHandle;
4
6
  displayName: string;
5
7
  };
6
8
  //# sourceMappingURL=Menu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/Menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,eAAO,MAAM,IAAI;YAAW,SAAS;;CAAsC,CAAC"}
1
+ {"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/Menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEvD,eAAO,MAAM,IAAI;YAAW,SAAS;;;CAAsC,CAAC"}
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
3
- "use client";import{a}from"../../chunk-GVIVGMOJ.js";export{a as Menu};
3
+ "use client";import{a}from"../../chunk-XVV4DBFD.js";export{a as Menu};
4
4
  //# sourceMappingURL=Menu.js.map
@@ -1,4 +1,9 @@
1
- import type { ComponentPropsWithRef } from 'react';
2
- import { DropdownMenu as MenuPrimitive } from 'radix-ui';
3
- export type MenuProps = Omit<ComponentPropsWithRef<typeof MenuPrimitive.Root>, 'dir'>;
1
+ import type { ComponentPropsWithRef, ReactNode } from 'react';
2
+ import { Menu as MenuPrimitive } from '@base-ui/react';
3
+ export interface MenuProps extends Pick<ComponentPropsWithRef<typeof MenuPrimitive.Root>, 'open' | 'defaultOpen' | 'onOpenChange' | 'actionsRef' | 'triggerId' | 'defaultTriggerId' | 'handle' | 'modal' | 'disabled'> {
4
+ /**
5
+ * The content of the Menu. Should contain `MenuTrigger` and `MenuContent`.
6
+ */
7
+ children: ReactNode;
8
+ }
4
9
  //# sourceMappingURL=Menu.props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Menu.props.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/Menu.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,YAAY,IAAI,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzD,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,qBAAqB,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"Menu.props.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/Menu.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEvD,MAAM,WAAW,SAAU,SAAQ,IAAI,CACrC,qBAAqB,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,EAC9C,MAAM,GACN,aAAa,GACb,cAAc,GACd,YAAY,GACZ,WAAW,GACX,kBAAkB,GAClB,QAAQ,GACR,OAAO,GACP,UAAU,CACb;IACC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB"}
@@ -1,4 +1,4 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
- "use client";var _chunkK3AF4B5Wcjs = require('../../chunk-K3AF4B5W.cjs');require('../../chunk-ONNSZMWF.cjs');require('../../chunk-4Q432K4W.cjs');exports.MenuContent = _chunkK3AF4B5Wcjs.a;
3
+ "use client";var _chunkXPPODAZPcjs = require('../../chunk-XPPODAZP.cjs');require('../../chunk-T27AGDTJ.cjs');require('../../chunk-ONNSZMWF.cjs');require('../../chunk-4Q432K4W.cjs');exports.MenuContent = _chunkXPPODAZPcjs.a;
4
4
  //# sourceMappingURL=MenuContent.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/components/Menu/MenuContent.cjs"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACA,YAAY,CAAC,4DAAuC,oCAAiC,oCAAiC,0CAAyB","file":"/home/runner/work/hearth/hearth/packages/react/dist/components/Menu/MenuContent.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/components/Menu/MenuContent.cjs"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACA,YAAY,CAAC,4DAAuC,oCAAiC,oCAAiC,oCAAiC,0CAAyB","file":"/home/runner/work/hearth/hearth/packages/react/dist/components/Menu/MenuContent.cjs"}
@@ -1,3 +1,3 @@
1
1
  import type { MenuContentProps } from './MenuContent.props';
2
- export declare const MenuContent: import("react").ForwardRefExoticComponent<Omit<MenuContentProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
2
+ export declare const MenuContent: import("react").ForwardRefExoticComponent<MenuContentProps & import("react").RefAttributes<HTMLDivElement>>;
3
3
  //# sourceMappingURL=MenuContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MenuContent.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/MenuContent.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAiB5D,eAAO,MAAM,WAAW,0HAuFvB,CAAC"}
1
+ {"version":3,"file":"MenuContent.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/MenuContent.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAgB5D,eAAO,MAAM,WAAW,6GAuCvB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
3
- "use client";import{a}from"../../chunk-7BXFXDDZ.js";import"../../chunk-J3AJBV4B.js";import"../../chunk-PDEVCIQ3.js";export{a as MenuContent};
3
+ "use client";import{a}from"../../chunk-OSQTRLPK.js";import"../../chunk-UMCDT4ZD.js";import"../../chunk-J3AJBV4B.js";import"../../chunk-PDEVCIQ3.js";export{a as MenuContent};
4
4
  //# sourceMappingURL=MenuContent.js.map
@@ -1,6 +1,23 @@
1
- import type { ComponentPropsWithRef } from 'react';
2
- import { DropdownMenu as MenuPrimitive } from 'radix-ui';
3
- export type MenuContentProps = Omit<ComponentPropsWithRef<typeof MenuPrimitive.DropdownMenuPortal>, 'container'> & Omit<ComponentPropsWithRef<typeof MenuPrimitive.DropdownMenuContent>, 'asChild' | 'loop' | 'side' | 'sideOffset' | 'align' | 'alignOffset' | 'avoidCollisions' | 'collisionBoundary' | 'collisionPadding' | 'arrowPadding' | 'sticky' | 'hideWhenDetached' | 'onCloseAutoFocus' | 'onEscapeKeyDown' | 'onPointerDownOutside' | 'onFocusOutside' | 'onInteractOutside'> & {
1
+ import type { ComponentPropsWithoutRef, CSSProperties, ReactNode } from 'react';
2
+ import { Menu as MenuPrimitive } from '@base-ui/react';
3
+ export interface MenuContentProps {
4
+ className?: string;
5
+ style?: CSSProperties;
6
+ /**
7
+ * The content of the MenuContent. Should contain `MenuItem` components.
8
+ */
9
+ children: ReactNode;
10
+ /**
11
+ * The placement of the menu relative to the trigger element. Defaults to 'bottomLeft'.
12
+ * @default 'bottomLeft'
13
+ */
4
14
  placement?: 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight';
5
- };
15
+ /**
16
+ * Whether the menu should be kept mounted in the DOM when closed. Defaults to false.
17
+ * @default false
18
+ */
19
+ keepMounted?: ComponentPropsWithoutRef<typeof MenuPrimitive.Portal>['keepMounted'];
20
+ /** @deprecated Use `keepMounted` instead. Will be removed in next major. */
21
+ forceMount?: true;
22
+ }
6
23
  //# sourceMappingURL=MenuContent.props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MenuContent.props.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/MenuContent.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,YAAY,IAAI,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzD,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,qBAAqB,CAAC,OAAO,aAAa,CAAC,kBAAkB,CAAC,EAC9D,WAAW,CACZ,GACC,IAAI,CACF,qBAAqB,CAAC,OAAO,aAAa,CAAC,mBAAmB,CAAC,EAC7D,SAAS,GACT,MAAM,GACN,MAAM,GACN,YAAY,GACZ,OAAO,GACP,aAAa,GACb,iBAAiB,GACjB,mBAAmB,GACnB,kBAAkB,GAClB,cAAc,GACd,QAAQ,GACR,kBAAkB,GAClB,kBAAkB,GAClB,iBAAiB,GACjB,sBAAsB,GACtB,gBAAgB,GAChB,mBAAmB,CACtB,GAAG;IACF,SAAS,CAAC,EAAE,YAAY,GAAG,aAAa,GAAG,SAAS,GAAG,UAAU,CAAC;CACnE,CAAC"}
1
+ {"version":3,"file":"MenuContent.props.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/MenuContent.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAChF,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEvD,MAAM,WAAW,gBAAgB;IAE/B,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,YAAY,GAAG,aAAa,GAAG,SAAS,GAAG,UAAU,CAAC;IAClE;;;OAGG;IACH,WAAW,CAAC,EAAE,wBAAwB,CAAC,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC;IACnF,4EAA4E;IAC5E,UAAU,CAAC,EAAE,IAAI,CAAC;CACnB"}
@@ -1,4 +1,4 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
- "use client";var _chunkGVUQYOSOcjs = require('../../chunk-GVUQYOSO.cjs');require('../../chunk-ONNSZMWF.cjs');require('../../chunk-4Q432K4W.cjs');exports.MenuItem = _chunkGVUQYOSOcjs.a;
3
+ "use client";var _chunk52NQJSZ4cjs = require('../../chunk-52NQJSZ4.cjs');require('../../chunk-T27AGDTJ.cjs');require('../../chunk-ONNSZMWF.cjs');require('../../chunk-4Q432K4W.cjs');exports.MenuItem = _chunk52NQJSZ4cjs.a;
4
4
  //# sourceMappingURL=MenuItem.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/components/Menu/MenuItem.cjs"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACA,YAAY,CAAC,4DAAuC,oCAAiC,oCAAiC,uCAAsB","file":"/home/runner/work/hearth/hearth/packages/react/dist/components/Menu/MenuItem.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/components/Menu/MenuItem.cjs"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACA,YAAY,CAAC,4DAAuC,oCAAiC,oCAAiC,oCAAiC,uCAAsB","file":"/home/runner/work/hearth/hearth/packages/react/dist/components/Menu/MenuItem.cjs"}
@@ -1 +1 @@
1
- {"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/MenuItem.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAQtD,eAAO,MAAM,QAAQ,uHAWpB,CAAC"}
1
+ {"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/MenuItem.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAQtD,eAAO,MAAM,QAAQ,uHAgDpB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
3
- "use client";import{a}from"../../chunk-PRWRW3JD.js";import"../../chunk-J3AJBV4B.js";import"../../chunk-PDEVCIQ3.js";export{a as MenuItem};
3
+ "use client";import{a}from"../../chunk-EUOX7RSZ.js";import"../../chunk-UMCDT4ZD.js";import"../../chunk-J3AJBV4B.js";import"../../chunk-PDEVCIQ3.js";export{a as MenuItem};
4
4
  //# sourceMappingURL=MenuItem.js.map
@@ -1,6 +1,23 @@
1
- import type { ComponentPropsWithRef } from 'react';
2
- import { DropdownMenu as MenuPrimitive } from 'radix-ui';
3
- export interface MenuItemProps extends ComponentPropsWithRef<typeof MenuPrimitive.Item> {
1
+ import type { ComponentPropsWithoutRef, ComponentPropsWithRef, ReactNode } from 'react';
2
+ import { Menu as MenuPrimitive } from '@base-ui/react';
3
+ export type MenuItemProps = Omit<ComponentPropsWithRef<typeof MenuPrimitive.Item>, 'className' | 'render' | 'children' | 'nativeButton' | 'style'> & {
4
+ className?: string;
4
5
  colorScheme?: 'functional' | 'destructive';
5
- }
6
+ /**
7
+ * Change the default rendered element for the one passed as a child, merging
8
+ * their props and behaviour. Useful for rendering MenuItem as a link.
9
+ */
10
+ asChild?: boolean;
11
+ children: ReactNode;
12
+ /**
13
+ * Deprecated click handler for the menu item.
14
+ * @deprecated Use `onClick` instead.
15
+ */
16
+ onSelect?: ComponentPropsWithoutRef<typeof MenuPrimitive.Item>['onClick'];
17
+ /**
18
+ * Deprecated override of the text label to use when the item is matched during keyboard text navigation.
19
+ * @deprecated Use `label` instead.
20
+ */
21
+ textValue?: string;
22
+ };
6
23
  //# sourceMappingURL=MenuItem.props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MenuItem.props.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/MenuItem.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,YAAY,IAAI,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzD,MAAM,WAAW,aAAc,SAAQ,qBAAqB,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC;IACrF,WAAW,CAAC,EAAE,YAAY,GAAG,aAAa,CAAC;CAC5C"}
1
+ {"version":3,"file":"MenuItem.props.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/MenuItem.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACxF,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEvD,MAAM,MAAM,aAAa,GAAG,IAAI,CAC9B,qBAAqB,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,EAChD,WAAW,GAAG,QAAQ,GAAG,UAAU,GAAG,cAAc,GAAG,OAAO,CAC/D,GAAG;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,YAAY,GAAG,aAAa,CAAC;IAC3C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,wBAAwB,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC;IAC1E;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
- "use client";var _chunkNLZMPDP5cjs = require('../../chunk-NLZMPDP5.cjs');require('../../chunk-ONNSZMWF.cjs');require('../../chunk-4Q432K4W.cjs');exports.MenuTrigger = _chunkNLZMPDP5cjs.a;
3
+ "use client";var _chunkGDJ3WYMPcjs = require('../../chunk-GDJ3WYMP.cjs');require('../../chunk-ONNSZMWF.cjs');require('../../chunk-4Q432K4W.cjs');exports.MenuTrigger = _chunkGDJ3WYMPcjs.a;
4
4
  //# sourceMappingURL=MenuTrigger.cjs.map
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
 
3
- "use client";import{a}from"../../chunk-PXIOYGGU.js";import"../../chunk-J3AJBV4B.js";import"../../chunk-PDEVCIQ3.js";export{a as MenuTrigger};
3
+ "use client";import{a}from"../../chunk-ECA6VI7J.js";import"../../chunk-J3AJBV4B.js";import"../../chunk-PDEVCIQ3.js";export{a as MenuTrigger};
4
4
  //# sourceMappingURL=MenuTrigger.js.map
@@ -1,4 +1,11 @@
1
- import type { ComponentPropsWithRef } from 'react';
2
- import { DropdownMenu as MenuPrimitive } from 'radix-ui';
3
- export type MenuTriggerProps = Omit<ComponentPropsWithRef<typeof MenuPrimitive.DropdownMenuTrigger>, 'asChild'>;
1
+ import type { ComponentPropsWithRef, CSSProperties, ReactElement } from 'react';
2
+ import { Menu as MenuPrimitive } from '@base-ui/react';
3
+ export interface MenuTriggerProps extends Omit<ComponentPropsWithRef<typeof MenuPrimitive.Trigger>, 'render' | 'nativeButton' | 'className' | 'children' | 'payload' | 'style' | 'prefix'> {
4
+ className?: string;
5
+ style?: CSSProperties;
6
+ /**
7
+ * The content of the MenuTrigger. Should contain a single `Button` or `IconButton` that will be used as the trigger for the Menu.
8
+ */
9
+ children: ReactElement;
10
+ }
4
11
  //# sourceMappingURL=MenuTrigger.props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MenuTrigger.props.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/MenuTrigger.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,YAAY,IAAI,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzD,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,qBAAqB,CAAC,OAAO,aAAa,CAAC,mBAAmB,CAAC,EAC/D,SAAS,CACV,CAAC"}
1
+ {"version":3,"file":"MenuTrigger.props.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/MenuTrigger.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAChF,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEvD,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAC5C,qBAAqB,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,EACnD,QAAQ,GAAG,cAAc,GAAG,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CACtF;IAEC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC;CACxB"}
@@ -0,0 +1,4 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
+
3
+ "use client";var _chunkDSRDXNH3cjs = require('../../chunk-DSRDXNH3.cjs');require('../../chunk-WDLLAQFF.cjs');require('../../chunk-HI7GZDRA.cjs');require('../../chunk-IJ5FOSMX.cjs');require('../../chunk-MV7VYPO6.cjs');require('../../chunk-3JGXAGA3.cjs');require('../../chunk-ONNSZMWF.cjs');require('../../chunk-JZ25MWK4.cjs');require('../../chunk-NCWQKNBN.cjs');require('../../chunk-4Q432K4W.cjs');require('../../chunk-YTWPY5YH.cjs');require('../../chunk-VG6TEMXX.cjs');exports.SegmentedControl = _chunkDSRDXNH3cjs.a;
4
+ //# sourceMappingURL=SegmentedControl.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/components/SegmentedControl/SegmentedControl.cjs"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACA,YAAY,CAAC,4DAAuC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,+CAA8B","file":"/home/runner/work/hearth/hearth/packages/react/dist/components/SegmentedControl/SegmentedControl.cjs"}
@@ -0,0 +1,13 @@
1
+ import type { SegmentedControlProps } from './SegmentedControl.props';
2
+ /**
3
+ * Use SegmentedControl to switch between alternative views of closely related content.
4
+ * Always provide a `defaultValue` or controlled `value` — a SegmentedControl cannot
5
+ * be used without a default selected option.
6
+ *
7
+ * For navigation between pages or sections, use Tabs instead.
8
+ * For binary on/off settings, use Switch instead.
9
+ *
10
+ * @summary for switching between alternative views of closely related content
11
+ */
12
+ export declare const SegmentedControl: import("react").ForwardRefExoticComponent<Omit<SegmentedControlProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
13
+ //# sourceMappingURL=SegmentedControl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../../src/components/SegmentedControl/SegmentedControl.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAQtE;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,+HAmB5B,CAAC"}
@@ -0,0 +1,4 @@
1
+ "use client";
2
+
3
+ "use client";import{a}from"../../chunk-E37ICSZV.js";import"../../chunk-7CV7RBFK.js";import"../../chunk-KBX2N5VR.js";import"../../chunk-IIJPWR54.js";import"../../chunk-UWZUYMW4.js";import"../../chunk-7PGIEYDD.js";import"../../chunk-J3AJBV4B.js";import"../../chunk-MHDXUNFS.js";import"../../chunk-JH7NHQH7.js";import"../../chunk-PDEVCIQ3.js";import"../../chunk-4O5VTIJK.js";import"../../chunk-TBXNDML6.js";export{a as SegmentedControl};
4
+ //# sourceMappingURL=SegmentedControl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
+
3
+ var _chunkWDLLAQFFcjs = require('../../chunk-WDLLAQFF.cjs');exports.segmentedControlPropDefs = _chunkWDLLAQFFcjs.a;
4
+ //# sourceMappingURL=SegmentedControl.props.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/components/SegmentedControl/SegmentedControl.props.cjs"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACA,4DAAuC,uDAAsC","file":"/home/runner/work/hearth/hearth/packages/react/dist/components/SegmentedControl/SegmentedControl.props.cjs"}
@@ -0,0 +1,23 @@
1
+ import type { ComponentPropsWithRef } from 'react';
2
+ import type { ToggleGroup as ToggleGroupPrimitive } from '@base-ui/react/toggle-group';
3
+ import type { Responsive } from '../../types/responsive';
4
+ import type { MarginProps } from '../../props/margin.props';
5
+ declare const sizes: readonly ["sm", "md"];
6
+ export declare const segmentedControlPropDefs: {
7
+ size: {
8
+ className: string;
9
+ tokens: readonly ["sm", "md"];
10
+ responsive: true;
11
+ default: string;
12
+ };
13
+ };
14
+ export type SegmentedControlProps = Pick<ToggleGroupPrimitive.Props, 'value' | 'defaultValue' | 'onValueChange' | 'disabled' | 'children'> & {
15
+ /**
16
+ * Sets the height of the control. `sm` is 32px and `md` is 48px.
17
+ * Accepts a responsive value to display different sizes at different breakpoints.
18
+ * @default sm
19
+ */
20
+ size?: Responsive<(typeof sizes)[number]>;
21
+ } & Omit<ComponentPropsWithRef<'div'>, 'onChange'> & MarginProps;
22
+ export {};
23
+ //# sourceMappingURL=SegmentedControl.props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SegmentedControl.props.d.ts","sourceRoot":"","sources":["../../../src/components/SegmentedControl/SegmentedControl.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEvF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,QAAA,MAAM,KAAK,uBAAwB,CAAC;AAEpC,eAAO,MAAM,wBAAwB;;;;;;;CAIpC,CAAC;AAMF,MAAM,MAAM,qBAAqB,GAAG,IAAI,CACtC,oBAAoB,CAAC,KAAK,EAC1B,OAAO,GAAG,cAAc,GAAG,eAAe,GAAG,UAAU,GAAG,UAAU,CACrE,GAAG;IACF;;;;OAIG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;CAC3C,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAChD,WAAW,CAAC"}
@@ -0,0 +1,4 @@
1
+ "use client";
2
+
3
+ import{a}from"../../chunk-7CV7RBFK.js";export{a as segmentedControlPropDefs};
4
+ //# sourceMappingURL=SegmentedControl.props.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
+
3
+ "use client";var _chunkUXOZQAZJcjs = require('../../chunk-UXOZQAZJ.cjs');require('../../chunk-ONNSZMWF.cjs');require('../../chunk-4Q432K4W.cjs');exports.SegmentedControlOption = _chunkUXOZQAZJcjs.a;
4
+ //# sourceMappingURL=SegmentedControlOption.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/components/SegmentedControl/SegmentedControlOption.cjs"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACA,YAAY,CAAC,4DAAuC,oCAAiC,oCAAiC,qDAAoC","file":"/home/runner/work/hearth/hearth/packages/react/dist/components/SegmentedControl/SegmentedControlOption.cjs"}
@@ -0,0 +1,9 @@
1
+ import type { SegmentedControlOptionProps } from './SegmentedControlOption.props';
2
+ /**
3
+ * A single selectable option within a `SegmentedControl`. Must be used as a
4
+ * direct child of `SegmentedControl`. Each option requires a unique `value`.
5
+ *
6
+ * @summary a selectable option inside a SegmentedControl
7
+ */
8
+ export declare const SegmentedControlOption: import("react").ForwardRefExoticComponent<Omit<SegmentedControlOptionProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
9
+ //# sourceMappingURL=SegmentedControlOption.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SegmentedControlOption.d.ts","sourceRoot":"","sources":["../../../src/components/SegmentedControl/SegmentedControlOption.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAQlF;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,wIAmBjC,CAAC"}