@kushagradhawan/kookie-ui 0.1.12 → 0.1.13

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 (35) hide show
  1. package/components.css +135 -0
  2. package/dist/cjs/components/image.js.map +3 -3
  3. package/dist/cjs/components/index.d.ts +1 -0
  4. package/dist/cjs/components/index.d.ts.map +1 -1
  5. package/dist/cjs/components/index.js +1 -1
  6. package/dist/cjs/components/index.js.map +3 -3
  7. package/dist/cjs/components/sidebar.d.ts +71 -0
  8. package/dist/cjs/components/sidebar.d.ts.map +1 -0
  9. package/dist/cjs/components/sidebar.js +2 -0
  10. package/dist/cjs/components/sidebar.js.map +7 -0
  11. package/dist/cjs/components/sidebar.props.d.ts +48 -0
  12. package/dist/cjs/components/sidebar.props.d.ts.map +1 -0
  13. package/dist/cjs/components/sidebar.props.js +2 -0
  14. package/dist/cjs/components/sidebar.props.js.map +7 -0
  15. package/dist/esm/components/image.js.map +3 -3
  16. package/dist/esm/components/index.d.ts +1 -0
  17. package/dist/esm/components/index.d.ts.map +1 -1
  18. package/dist/esm/components/index.js +1 -1
  19. package/dist/esm/components/index.js.map +3 -3
  20. package/dist/esm/components/sidebar.d.ts +71 -0
  21. package/dist/esm/components/sidebar.d.ts.map +1 -0
  22. package/dist/esm/components/sidebar.js +2 -0
  23. package/dist/esm/components/sidebar.js.map +7 -0
  24. package/dist/esm/components/sidebar.props.d.ts +48 -0
  25. package/dist/esm/components/sidebar.props.d.ts.map +1 -0
  26. package/dist/esm/components/sidebar.props.js +2 -0
  27. package/dist/esm/components/sidebar.props.js.map +7 -0
  28. package/package.json +2 -2
  29. package/src/components/image.tsx +1 -1
  30. package/src/components/index.css +1 -0
  31. package/src/components/index.tsx +1 -0
  32. package/src/components/sidebar.css +132 -0
  33. package/src/components/sidebar.props.tsx +38 -0
  34. package/src/components/sidebar.tsx +536 -0
  35. package/styles.css +135 -0
package/components.css CHANGED
@@ -9396,6 +9396,141 @@
9396
9396
  --separator-size: 100%;
9397
9397
  }
9398
9398
  }
9399
+ .rt-SidebarRoot {
9400
+ --sidebar-width: 16rem;
9401
+ --sidebar-width-icon: 3rem;
9402
+ position: fixed;
9403
+ top: 0;
9404
+ bottom: 0;
9405
+ left: 0;
9406
+ z-index: 30;
9407
+ width: var(--sidebar-width);
9408
+ transition: transform 0.2s ease, width 0.2s ease;
9409
+ }
9410
+ .rt-SidebarContainer {
9411
+ display: flex;
9412
+ flex-direction: column;
9413
+ height: 100%;
9414
+ width: 100%;
9415
+ background-color: var(--color-panel-solid);
9416
+ border-right: 1px solid var(--gray-a5);
9417
+ }
9418
+ .rt-SidebarHeader {
9419
+ display: flex;
9420
+ align-items: center;
9421
+ padding: var(--space-3);
9422
+ border-bottom: 1px solid var(--gray-a5);
9423
+ }
9424
+ .rt-SidebarContent {
9425
+ flex: 1;
9426
+ padding: var(--space-2);
9427
+ min-height: 0;
9428
+ }
9429
+ .rt-SidebarFooter {
9430
+ padding: var(--space-3);
9431
+ border-top: 1px solid var(--gray-a5);
9432
+ }
9433
+ .rt-SidebarInset {
9434
+ flex: 1;
9435
+ margin-left: var(--sidebar-width);
9436
+ transition: margin-left 0.2s ease;
9437
+ }
9438
+ .rt-SidebarRoot:where(.rt-r-size-1) {
9439
+ --sidebar-width: 14rem;
9440
+ --sidebar-width-icon: 2.5rem;
9441
+ }
9442
+ .rt-SidebarRoot:where(.rt-r-size-3) {
9443
+ --sidebar-width: 18rem;
9444
+ --sidebar-width-icon: 3.5rem;
9445
+ }
9446
+ @media (min-width: 520px) {
9447
+ .rt-SidebarRoot:where(.xs\:rt-r-size-1) {
9448
+ --sidebar-width: 14rem;
9449
+ --sidebar-width-icon: 2.5rem;
9450
+ }
9451
+ .rt-SidebarRoot:where(.xs\:rt-r-size-3) {
9452
+ --sidebar-width: 18rem;
9453
+ --sidebar-width-icon: 3.5rem;
9454
+ }
9455
+ }
9456
+ @media (min-width: 768px) {
9457
+ .rt-SidebarRoot:where(.sm\:rt-r-size-1) {
9458
+ --sidebar-width: 14rem;
9459
+ --sidebar-width-icon: 2.5rem;
9460
+ }
9461
+ .rt-SidebarRoot:where(.sm\:rt-r-size-3) {
9462
+ --sidebar-width: 18rem;
9463
+ --sidebar-width-icon: 3.5rem;
9464
+ }
9465
+ }
9466
+ @media (min-width: 1024px) {
9467
+ .rt-SidebarRoot:where(.md\:rt-r-size-1) {
9468
+ --sidebar-width: 14rem;
9469
+ --sidebar-width-icon: 2.5rem;
9470
+ }
9471
+ .rt-SidebarRoot:where(.md\:rt-r-size-3) {
9472
+ --sidebar-width: 18rem;
9473
+ --sidebar-width-icon: 3.5rem;
9474
+ }
9475
+ }
9476
+ @media (min-width: 1280px) {
9477
+ .rt-SidebarRoot:where(.lg\:rt-r-size-1) {
9478
+ --sidebar-width: 14rem;
9479
+ --sidebar-width-icon: 2.5rem;
9480
+ }
9481
+ .rt-SidebarRoot:where(.lg\:rt-r-size-3) {
9482
+ --sidebar-width: 18rem;
9483
+ --sidebar-width-icon: 3.5rem;
9484
+ }
9485
+ }
9486
+ @media (min-width: 1640px) {
9487
+ .rt-SidebarRoot:where(.xl\:rt-r-size-1) {
9488
+ --sidebar-width: 14rem;
9489
+ --sidebar-width-icon: 2.5rem;
9490
+ }
9491
+ .rt-SidebarRoot:where(.xl\:rt-r-size-3) {
9492
+ --sidebar-width: 18rem;
9493
+ --sidebar-width-icon: 3.5rem;
9494
+ }
9495
+ }
9496
+ .rt-SidebarHeader:where(.rt-r-size-1) {
9497
+ padding: var(--space-2);
9498
+ }
9499
+ .rt-SidebarHeader:where(.rt-r-size-3) {
9500
+ padding: var(--space-4);
9501
+ }
9502
+ .rt-SidebarFooter:where(.rt-r-size-1) {
9503
+ padding: var(--space-2);
9504
+ }
9505
+ .rt-SidebarFooter:where(.rt-r-size-3) {
9506
+ padding: var(--space-4);
9507
+ }
9508
+ .rt-SidebarContent:where(.rt-r-size-1) {
9509
+ padding: var(--space-1);
9510
+ }
9511
+ .rt-SidebarContent:where(.rt-r-size-3) {
9512
+ padding: var(--space-3);
9513
+ }
9514
+ .rt-SidebarContainer:where(.rt-variant-classic) {
9515
+ background-color: var(--color-surface);
9516
+ border: 1px solid var(--gray-a5);
9517
+ }
9518
+ .rt-SidebarContainer:where(.rt-variant-ghost) {
9519
+ background-color: transparent;
9520
+ border: none;
9521
+ }
9522
+ .rt-SidebarContent :where(.rt-BaseMenuItem) {
9523
+ border-radius: var(--radius-2);
9524
+ margin-bottom: var(--space-1);
9525
+ }
9526
+ @media (max-width: 768px) {
9527
+ .rt-SidebarRoot {
9528
+ display: none;
9529
+ }
9530
+ .rt-SidebarInset {
9531
+ margin-left: 0;
9532
+ }
9533
+ }
9399
9534
  .rt-SliderRoot {
9400
9535
  --slider-thumb-size: calc(var(--slider-track-size) + var(--space-1));
9401
9536
  position: relative;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/image.tsx"],
4
- "sourcesContent": ["'use client';\n\nimport * as React from 'react';\nimport classNames from 'classnames';\n\nimport { imagePropDefs } from './image.props.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { marginPropDefs } from '../props/margin.props.js';\nimport { widthPropDefs } from '../props/width.props.js';\nimport { heightPropDefs } from '../props/height.props.js';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { MarginProps } from '../props/margin.props.js';\nimport type { WidthProps } from '../props/width.props.js';\nimport type { HeightProps } from '../props/height.props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype ImageElement = React.ElementRef<'img'>;\ntype ImageOwnProps = GetPropDefTypes<typeof imagePropDefs> & {\n loading?: 'eager' | 'lazy';\n};\n\ninterface ImageProps\n extends ComponentPropsWithout<'img', RemovedProps | 'color' | 'width' | 'height' | 'alt'>,\n MarginProps,\n WidthProps,\n HeightProps,\n ImageOwnProps {\n /**\n * The alt attribute provides alternative information for an image if a user for some reason cannot view it.\n * Required for accessibility when not using asChild.\n */\n alt?: string;\n}\n\nconst Image = React.forwardRef<ImageElement, ImageProps>((props, forwardedRef) => {\n const { variant = 'surface', fit = 'cover', children } = props;\n const {\n asChild,\n className,\n radius,\n style,\n loading = 'lazy',\n alt,\n src,\n children: _children, // Extract children to exclude from imgProps\n ...imgProps\n } = extractProps(props, imagePropDefs, marginPropDefs, widthPropDefs, heightPropDefs);\n\n // Create the standard img element\n const imgElement = (\n <img\n data-radius={radius}\n loading={loading}\n style={style}\n className={classNames(\n 'rt-reset',\n 'rt-Image',\n variant === 'blur' && 'rt-Image--blur',\n className,\n )}\n alt={alt}\n src={src}\n {...imgProps}\n ref={forwardedRef}\n />\n );\n\n // Handle asChild - inject img into the child element\n if (asChild && children) {\n const child = React.Children.only(children) as React.ReactElement<any>;\n\n if (variant === 'blur') {\n // For blur variant with asChild\n return React.cloneElement(child, {\n className: classNames(child.props?.className, 'rt-variant-blur'),\n style: {\n position: 'relative',\n display: 'inline-block',\n textDecoration: 'none', // Reset link underlines\n color: 'inherit', // Reset link colors\n border: 'none', // Reset button borders\n background: 'none', // Reset button backgrounds\n padding: 0, // Reset button padding\n font: 'inherit', // Reset button fonts\n cursor: 'pointer', // Ensure interactive cursor\n ...child.props?.style,\n },\n children: (\n <>\n {/* Background blurred image */}\n <img\n data-radius={radius}\n loading={loading}\n style={{\n ...style,\n position: 'absolute',\n top: '8px',\n left: '0',\n }}\n className={classNames(\n 'rt-reset',\n 'rt-Image',\n 'rt-Image--blur',\n 'rt-Image--blur-bg',\n className,\n )}\n alt=\"\"\n src={src}\n {...imgProps}\n />\n {/* Foreground image */}\n <img\n data-radius={radius}\n loading={loading}\n style={{ ...style, position: 'relative', zIndex: 1 }}\n className={classNames('rt-reset', 'rt-Image', 'rt-Image--blur', className)}\n alt={alt}\n src={src}\n {...imgProps}\n ref={forwardedRef}\n />\n </>\n ),\n });\n } else {\n // For surface variant with asChild\n return React.cloneElement(child, {\n className: classNames(child.props?.className, 'rt-Image'),\n style: {\n textDecoration: 'none', // Reset link underlines\n color: 'inherit', // Reset link colors\n border: 'none', // Reset button borders\n background: 'none', // Reset button backgrounds\n padding: 0, // Reset button padding\n font: 'inherit', // Reset button fonts\n cursor: 'pointer', // Ensure interactive cursor\n ...child.props?.style, // Allow user overrides\n },\n children: imgElement,\n });\n }\n }\n\n // Regular rendering without asChild\n if (variant === 'blur') {\n return (\n <div className=\"rt-variant-blur\" style={{ position: 'relative', display: 'inline-block' }}>\n {/* Background blurred image */}\n <img\n data-radius={radius}\n loading={loading}\n style={{\n ...style,\n position: 'absolute',\n top: '8px',\n left: '0',\n }}\n className={classNames(\n 'rt-reset',\n 'rt-Image',\n 'rt-Image--blur',\n 'rt-Image--blur-bg',\n className,\n )}\n alt=\"\"\n src={src}\n {...imgProps}\n />\n {/* Foreground image */}\n <img\n data-radius={radius}\n loading={loading}\n style={{ ...style, position: 'relative', zIndex: 1 }}\n className={classNames('rt-reset', 'rt-Image', 'rt-Image--blur', className)}\n alt={alt}\n src={src}\n {...imgProps}\n ref={forwardedRef}\n />\n </div>\n );\n }\n\n return imgElement;\n});\n\nImage.displayName = 'Image';\n\nexport { Image };\nexport type { ImageProps };\n"],
5
- "mappings": "ukBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,WAAAE,IAAA,eAAAC,EAAAH,GAEA,IAAAI,EAAuB,oBACvBC,EAAuB,yBAEvBC,EAA8B,4BAC9BC,EAA6B,uCAC7BC,EAA+B,oCAC/BC,EAA8B,mCAC9BC,EAA+B,oCA0B/B,MAAMR,EAAQE,EAAM,WAAqC,CAACO,EAAOC,IAAiB,CAChF,KAAM,CAAE,QAAAC,EAAU,UAAW,IAAAC,EAAM,QAAS,SAAAC,CAAS,EAAIJ,EACnD,CACJ,QAAAK,EACA,UAAAC,EACA,OAAAC,EACA,MAAAC,EACA,QAAAC,EAAU,OACV,IAAAC,EACA,IAAAC,EACA,SAAUC,EACV,GAAGC,CACL,KAAI,gBAAab,EAAO,gBAAe,iBAAgB,gBAAe,gBAAc,EAG9Ec,E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AAO,CAAE,SAAU,WAAY,QAAS,cAAe,GAEtFA,EAAA,cAAC,OACC,cAAac,EACb,QAASE,EACT,MAAO,CACL,GAAGD,EACH,SAAU,WACV,IAAK,MACL,KAAM,GACR,EACA,aAAW,EAAAO,SACT,WACA,WACA,iBACA,oBACAT,CACF,EACA,IAAI,GACJ,IAAKK,EACJ,GAAGE,EACN,EAEApB,EAAA,cAAC,OACC,cAAac,EACb,QAASE,EACT,MAAO,CAAE,GAAGD,EAAO,SAAU,WAAY,OAAQ,CAAE,EACnD,aAAW,EAAAO,SAAW,WAAY,WAAY,iBAAkBT,CAAS,EACzE,IAAKI,EACL,IAAKC,EACJ,GAAGE,EACJ,IAAKZ,EACP,CACF,EAIGa,CACT,CAAC,EAEDvB,EAAM,YAAc",
6
- "names": ["image_exports", "__export", "Image", "__toCommonJS", "React", "import_classnames", "import_image_props", "import_extract_props", "import_margin_props", "import_width_props", "import_height_props", "props", "forwardedRef", "variant", "fit", "children", "asChild", "className", "radius", "style", "loading", "alt", "src", "_children", "imgProps", "imgElement", "classNames", "child"]
4
+ "sourcesContent": ["'use client';\n\nimport * as React from 'react';\nimport classNames from 'classnames';\n\nimport { imagePropDefs } from './image.props.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { marginPropDefs } from '../props/margin.props.js';\nimport { widthPropDefs } from '../props/width.props.js';\nimport { heightPropDefs } from '../props/height.props.js';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { MarginProps } from '../props/margin.props.js';\nimport type { WidthProps } from '../props/width.props.js';\nimport type { HeightProps } from '../props/height.props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype ImageElement = React.ElementRef<'img'>;\ntype ImageOwnProps = GetPropDefTypes<typeof imagePropDefs> & {\n loading?: 'eager' | 'lazy';\n};\n\ninterface ImageProps\n extends ComponentPropsWithout<'img', RemovedProps | 'color' | 'width' | 'height' | 'alt'>,\n MarginProps,\n WidthProps,\n HeightProps,\n ImageOwnProps {\n /**\n * The alt attribute provides alternative information for an image if a user for some reason cannot view it.\n * Required for accessibility when not using asChild.\n */\n alt?: string;\n}\n\nconst Image = React.forwardRef<ImageElement, ImageProps>((props, forwardedRef) => {\n const { variant = 'surface', fit: _fit = 'cover', children } = props;\n const {\n asChild,\n className,\n radius,\n style,\n loading = 'lazy',\n alt,\n src,\n children: _children, // Extract children to exclude from imgProps\n ...imgProps\n } = extractProps(props, imagePropDefs, marginPropDefs, widthPropDefs, heightPropDefs);\n\n // Create the standard img element\n const imgElement = (\n <img\n data-radius={radius}\n loading={loading}\n style={style}\n className={classNames(\n 'rt-reset',\n 'rt-Image',\n variant === 'blur' && 'rt-Image--blur',\n className,\n )}\n alt={alt}\n src={src}\n {...imgProps}\n ref={forwardedRef}\n />\n );\n\n // Handle asChild - inject img into the child element\n if (asChild && children) {\n const child = React.Children.only(children) as React.ReactElement<any>;\n\n if (variant === 'blur') {\n // For blur variant with asChild\n return React.cloneElement(child, {\n className: classNames(child.props?.className, 'rt-variant-blur'),\n style: {\n position: 'relative',\n display: 'inline-block',\n textDecoration: 'none', // Reset link underlines\n color: 'inherit', // Reset link colors\n border: 'none', // Reset button borders\n background: 'none', // Reset button backgrounds\n padding: 0, // Reset button padding\n font: 'inherit', // Reset button fonts\n cursor: 'pointer', // Ensure interactive cursor\n ...child.props?.style,\n },\n children: (\n <>\n {/* Background blurred image */}\n <img\n data-radius={radius}\n loading={loading}\n style={{\n ...style,\n position: 'absolute',\n top: '8px',\n left: '0',\n }}\n className={classNames(\n 'rt-reset',\n 'rt-Image',\n 'rt-Image--blur',\n 'rt-Image--blur-bg',\n className,\n )}\n alt=\"\"\n src={src}\n {...imgProps}\n />\n {/* Foreground image */}\n <img\n data-radius={radius}\n loading={loading}\n style={{ ...style, position: 'relative', zIndex: 1 }}\n className={classNames('rt-reset', 'rt-Image', 'rt-Image--blur', className)}\n alt={alt}\n src={src}\n {...imgProps}\n ref={forwardedRef}\n />\n </>\n ),\n });\n } else {\n // For surface variant with asChild\n return React.cloneElement(child, {\n className: classNames(child.props?.className, 'rt-Image'),\n style: {\n textDecoration: 'none', // Reset link underlines\n color: 'inherit', // Reset link colors\n border: 'none', // Reset button borders\n background: 'none', // Reset button backgrounds\n padding: 0, // Reset button padding\n font: 'inherit', // Reset button fonts\n cursor: 'pointer', // Ensure interactive cursor\n ...child.props?.style, // Allow user overrides\n },\n children: imgElement,\n });\n }\n }\n\n // Regular rendering without asChild\n if (variant === 'blur') {\n return (\n <div className=\"rt-variant-blur\" style={{ position: 'relative', display: 'inline-block' }}>\n {/* Background blurred image */}\n <img\n data-radius={radius}\n loading={loading}\n style={{\n ...style,\n position: 'absolute',\n top: '8px',\n left: '0',\n }}\n className={classNames(\n 'rt-reset',\n 'rt-Image',\n 'rt-Image--blur',\n 'rt-Image--blur-bg',\n className,\n )}\n alt=\"\"\n src={src}\n {...imgProps}\n />\n {/* Foreground image */}\n <img\n data-radius={radius}\n loading={loading}\n style={{ ...style, position: 'relative', zIndex: 1 }}\n className={classNames('rt-reset', 'rt-Image', 'rt-Image--blur', className)}\n alt={alt}\n src={src}\n {...imgProps}\n ref={forwardedRef}\n />\n </div>\n );\n }\n\n return imgElement;\n});\n\nImage.displayName = 'Image';\n\nexport { Image };\nexport type { ImageProps };\n"],
5
+ "mappings": "ukBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,WAAAE,IAAA,eAAAC,EAAAH,GAEA,IAAAI,EAAuB,oBACvBC,EAAuB,yBAEvBC,EAA8B,4BAC9BC,EAA6B,uCAC7BC,EAA+B,oCAC/BC,EAA8B,mCAC9BC,EAA+B,oCA0B/B,MAAMR,EAAQE,EAAM,WAAqC,CAACO,EAAOC,IAAiB,CAChF,KAAM,CAAE,QAAAC,EAAU,UAAW,IAAKC,EAAO,QAAS,SAAAC,CAAS,EAAIJ,EACzD,CACJ,QAAAK,EACA,UAAAC,EACA,OAAAC,EACA,MAAAC,EACA,QAAAC,EAAU,OACV,IAAAC,EACA,IAAAC,EAC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SAAUF,CACZ,CAAC,CAEL,CAGA,OAAIZ,IAAY,OAEZT,EAAA,cAAC,OAAI,UAAU,kBAAkB,MAAO,CAAE,SAAU,WAAY,QAAS,cAAe,GAEtFA,EAAA,cAAC,OACC,cAAac,EACb,QAASE,EACT,MAAO,CACL,GAAGD,EACH,SAAU,WACV,IAAK,MACL,KAAM,GACR,EACA,aAAW,EAAAO,SACT,WACA,WACA,iBACA,oBACAT,CACF,EACA,IAAI,GACJ,IAAKK,EACJ,GAAGE,EACN,EAEApB,EAAA,cAAC,OACC,cAAac,EACb,QAASE,EACT,MAAO,CAAE,GAAGD,EAAO,SAAU,WAAY,OAAQ,CAAE,EACnD,aAAW,EAAAO,SAAW,WAAY,WAAY,iBAAkBT,CAAS,EACzE,IAAKI,EACL,IAAKC,EACJ,GAAGE,EACJ,IAAKZ,EACP,CACF,EAIGa,CACT,CAAC,EAEDvB,EAAM,YAAc",
6
+ "names": ["image_exports", "__export", "Image", "__toCommonJS", "React", "import_classnames", "import_image_props", "import_extract_props", "import_margin_props", "import_width_props", "import_height_props", "props", "forwardedRef", "variant", "_fit", "children", "asChild", "className", "radius", "style", "loading", "alt", "src", "_children", "imgProps", "imgElement", "classNames", "child"]
7
7
  }
@@ -59,4 +59,5 @@ export { ToggleButton, type ToggleButtonProps } from './toggle-button.js';
59
59
  export { ToggleIconButton, type ToggleIconButtonProps } from './toggle-icon-button.js';
60
60
  export { Tooltip, type TooltipProps } from './tooltip.js';
61
61
  export { VisuallyHidden, type VisuallyHiddenProps } from './visually-hidden.js';
62
+ export * as Sidebar from './sidebar.js';
62
63
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,KAAK,WAAW,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,WA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C1D,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC"}
@@ -1,2 +1,2 @@
1
- "use strict";var Z=Object.create;var m=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var $=Object.getOwnPropertyNames;var oo=Object.getPrototypeOf,ro=Object.prototype.hasOwnProperty;var eo=(r,e)=>{for(var t in e)m(r,t,{get:e[t],enumerable:!0})},n=(r,e,t,f)=>{if(e&&typeof e=="object"||typeof e=="function")for(let x of $(e))!ro.call(r,x)&&x!==t&&m(r,x,{get:()=>e[x],enumerable:!(f=_(e,x))||f.enumerable});return r};var o=(r,e,t)=>(t=r!=null?Z(oo(r)):{},n(e||!r||!r.__esModule?m(t,"default",{value:r,enumerable:!0}):t,r)),to=r=>n(m({},"__esModule",{value:!0}),r);var po={};eo(po,{AccessibleIcon:()=>P.AccessibleIcon,AlertDialog:()=>so,AspectRatio:()=>y.AspectRatio,Avatar:()=>i.Avatar,Badge:()=>l.Badge,Blockquote:()=>c.Blockquote,Box:()=>d.Box,Button:()=>T.Button,Callout:()=>xo,Card:()=>g.Card,Checkbox:()=>C.Checkbox,CheckboxCards:()=>mo,CheckboxGroup:()=>ao,ChevronDownIcon:()=>p.ChevronDownIcon,Code:()=>u.Code,Container:()=>S.Container,ContextMenu:()=>fo,DataList:()=>no,Dialog:()=>Po,DropdownMenu:()=>yo,Em:()=>h.Em,Flex:()=>I.Flex,Grid:()=>k.Grid,Heading:()=>B.Heading,HoverCard:()=>io,IconButton:()=>b.IconButton,Image:()=>A.Image,Inset:()=>R.Inset,Kbd:()=>v.Kbd,Link:()=>D.Link,Popover:()=>lo,Portal:()=>H.Portal,Progress:()=>w.Progress,Quote:()=>G.Quote,Radio:()=>F.Radio,RadioCards:()=>co,RadioGroup:()=>To,Reset:()=>L.Reset,ScrollArea:()=>q.ScrollArea,Section:()=>E.Section,SegmentedControl:()=>go,Select:()=>Co,Separator:()=>K.Separator,Skeleton:()=>M.Skeleton,Slider:()=>Q.Slider,Slot:()=>a.Slot,Slottable:()=>a.Slottable,Spinner:()=>V.Spinner,Strong:()=>z.Strong,Switch:()=>N.Switch,TabNav:()=>uo,Table:()=>So,Tabs:()=>ho,Text:()=>J.Text,TextArea:()=>j.TextArea,TextField:()=>Io,Theme:()=>s.Theme,ThemeContext:()=>s.ThemeContext,ThemePanel:()=>O.ThemePanel,ThickCheckIcon:()=>p.ThickCheckIcon,ThickChevronRightIcon:()=>p.ThickChevronRightIcon,ThickDividerHorizontalIcon:()=>p.ThickDividerHorizontalIcon,ToggleButton:()=>U.ToggleButton,ToggleIconButton:()=>W.ToggleIconButton,Tooltip:()=>X.Tooltip,VisuallyHidden:()=>Y.VisuallyHidden,useThemeContext:()=>s.useThemeContext});module.exports=to(po);var P=require("./accessible-icon.js"),so=o(require("./alert-dialog.js")),y=require("./aspect-ratio.js"),i=require("./avatar.js"),l=require("./badge.js"),c=require("./blockquote.js"),d=require("./box.js"),T=require("./button.js"),xo=o(require("./callout.js")),g=require("./card.js"),mo=o(require("./checkbox-cards.js")),ao=o(require("./checkbox-group.js")),C=require("./checkbox.js"),u=require("./code.js"),S=require("./container.js"),fo=o(require("./context-menu.js")),no=o(require("./data-list.js")),Po=o(require("./dialog.js")),yo=o(require("./dropdown-menu.js")),h=require("./em.js"),I=require("./flex.js"),k=require("./grid.js"),B=require("./heading.js"),io=o(require("./hover-card.js")),b=require("./icon-button.js"),p=require("./icons.js"),A=require("./image.js"),R=require("./inset.js"),v=require("./kbd.js"),D=require("./link.js"),lo=o(require("./popover.js")),H=require("./portal.js"),w=require("./progress.js"),G=require("./quote.js"),co=o(require("./radio-cards.js")),To=o(require("./radio-group.js")),F=require("./radio.js"),L=require("./reset.js"),q=require("./scroll-area.js"),go=o(require("./segmented-control.js")),E=require("./section.js"),Co=o(require("./select.js")),K=require("./separator.js"),M=require("./skeleton.js"),Q=require("./slider.js"),a=require("./slot.js"),V=require("./spinner.js"),z=require("./strong.js"),N=require("./switch.js"),uo=o(require("./tab-nav.js")),So=o(require("./table.js")),ho=o(require("./tabs.js")),j=require("./text-area.js"),Io=o(require("./text-field.js")),J=require("./text.js"),O=require("./theme-panel.js"),s=require("./theme.js"),U=require("./toggle-button.js"),W=require("./toggle-icon-button.js"),X=require("./tooltip.js"),Y=require("./visually-hidden.js");
1
+ "use strict";var Z=Object.create;var m=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var $=Object.getOwnPropertyNames;var oo=Object.getPrototypeOf,ro=Object.prototype.hasOwnProperty;var eo=(r,e)=>{for(var t in e)m(r,t,{get:e[t],enumerable:!0})},n=(r,e,t,f)=>{if(e&&typeof e=="object"||typeof e=="function")for(let x of $(e))!ro.call(r,x)&&x!==t&&m(r,x,{get:()=>e[x],enumerable:!(f=_(e,x))||f.enumerable});return r};var o=(r,e,t)=>(t=r!=null?Z(oo(r)):{},n(e||!r||!r.__esModule?m(t,"default",{value:r,enumerable:!0}):t,r)),to=r=>n(m({},"__esModule",{value:!0}),r);var po={};eo(po,{AccessibleIcon:()=>P.AccessibleIcon,AlertDialog:()=>so,AspectRatio:()=>y.AspectRatio,Avatar:()=>i.Avatar,Badge:()=>l.Badge,Blockquote:()=>c.Blockquote,Box:()=>d.Box,Button:()=>T.Button,Callout:()=>xo,Card:()=>g.Card,Checkbox:()=>C.Checkbox,CheckboxCards:()=>mo,CheckboxGroup:()=>ao,ChevronDownIcon:()=>p.ChevronDownIcon,Code:()=>S.Code,Container:()=>u.Container,ContextMenu:()=>fo,DataList:()=>no,Dialog:()=>Po,DropdownMenu:()=>yo,Em:()=>h.Em,Flex:()=>I.Flex,Grid:()=>k.Grid,Heading:()=>B.Heading,HoverCard:()=>io,IconButton:()=>b.IconButton,Image:()=>A.Image,Inset:()=>R.Inset,Kbd:()=>v.Kbd,Link:()=>D.Link,Popover:()=>lo,Portal:()=>H.Portal,Progress:()=>w.Progress,Quote:()=>G.Quote,Radio:()=>F.Radio,RadioCards:()=>co,RadioGroup:()=>To,Reset:()=>L.Reset,ScrollArea:()=>q.ScrollArea,Section:()=>E.Section,SegmentedControl:()=>go,Select:()=>Co,Separator:()=>K.Separator,Sidebar:()=>ko,Skeleton:()=>M.Skeleton,Slider:()=>Q.Slider,Slot:()=>a.Slot,Slottable:()=>a.Slottable,Spinner:()=>V.Spinner,Strong:()=>z.Strong,Switch:()=>N.Switch,TabNav:()=>So,Table:()=>uo,Tabs:()=>ho,Text:()=>J.Text,TextArea:()=>j.TextArea,TextField:()=>Io,Theme:()=>s.Theme,ThemeContext:()=>s.ThemeContext,ThemePanel:()=>O.ThemePanel,ThickCheckIcon:()=>p.ThickCheckIcon,ThickChevronRightIcon:()=>p.ThickChevronRightIcon,ThickDividerHorizontalIcon:()=>p.ThickDividerHorizontalIcon,ToggleButton:()=>U.ToggleButton,ToggleIconButton:()=>W.ToggleIconButton,Tooltip:()=>X.Tooltip,VisuallyHidden:()=>Y.VisuallyHidden,useThemeContext:()=>s.useThemeContext});module.exports=to(po);var P=require("./accessible-icon.js"),so=o(require("./alert-dialog.js")),y=require("./aspect-ratio.js"),i=require("./avatar.js"),l=require("./badge.js"),c=require("./blockquote.js"),d=require("./box.js"),T=require("./button.js"),xo=o(require("./callout.js")),g=require("./card.js"),mo=o(require("./checkbox-cards.js")),ao=o(require("./checkbox-group.js")),C=require("./checkbox.js"),S=require("./code.js"),u=require("./container.js"),fo=o(require("./context-menu.js")),no=o(require("./data-list.js")),Po=o(require("./dialog.js")),yo=o(require("./dropdown-menu.js")),h=require("./em.js"),I=require("./flex.js"),k=require("./grid.js"),B=require("./heading.js"),io=o(require("./hover-card.js")),b=require("./icon-button.js"),p=require("./icons.js"),A=require("./image.js"),R=require("./inset.js"),v=require("./kbd.js"),D=require("./link.js"),lo=o(require("./popover.js")),H=require("./portal.js"),w=require("./progress.js"),G=require("./quote.js"),co=o(require("./radio-cards.js")),To=o(require("./radio-group.js")),F=require("./radio.js"),L=require("./reset.js"),q=require("./scroll-area.js"),go=o(require("./segmented-control.js")),E=require("./section.js"),Co=o(require("./select.js")),K=require("./separator.js"),M=require("./skeleton.js"),Q=require("./slider.js"),a=require("./slot.js"),V=require("./spinner.js"),z=require("./strong.js"),N=require("./switch.js"),So=o(require("./tab-nav.js")),uo=o(require("./table.js")),ho=o(require("./tabs.js")),j=require("./text-area.js"),Io=o(require("./text-field.js")),J=require("./text.js"),O=require("./theme-panel.js"),s=require("./theme.js"),U=require("./toggle-button.js"),W=require("./toggle-icon-button.js"),X=require("./tooltip.js"),Y=require("./visually-hidden.js"),ko=o(require("./sidebar.js"));
2
2
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/index.tsx"],
4
- "sourcesContent": ["export { AccessibleIcon, type AccessibleIconProps } from './accessible-icon.js';\nexport * as AlertDialog from './alert-dialog.js';\nexport { AspectRatio, type AspectRatioProps } from './aspect-ratio.js';\nexport { Avatar, type AvatarProps } from './avatar.js';\nexport { Badge, type BadgeProps } from './badge.js';\nexport { Blockquote, type BlockquoteProps } from './blockquote.js';\nexport { Box, type BoxProps } from './box.js';\nexport { Button, type ButtonProps } from './button.js';\nexport * as Callout from './callout.js';\nexport { Card, type CardProps } from './card.js';\nexport * as CheckboxCards from './checkbox-cards.js';\nexport * as CheckboxGroup from './checkbox-group.js';\nexport { Checkbox, type CheckboxProps } from './checkbox.js';\nexport { Code, type CodeProps } from './code.js';\nexport { Container, type ContainerProps } from './container.js';\nexport * as ContextMenu from './context-menu.js';\nexport * as DataList from './data-list.js';\nexport * as Dialog from './dialog.js';\nexport * as DropdownMenu from './dropdown-menu.js';\nexport { Em, type EmProps } from './em.js';\nexport { Flex, type FlexProps } from './flex.js';\nexport { Grid, type GridProps } from './grid.js';\nexport { Heading, type HeadingProps } from './heading.js';\nexport * as HoverCard from './hover-card.js';\nexport { IconButton, type IconButtonProps } from './icon-button.js';\nexport {\n type IconProps,\n ChevronDownIcon,\n ThickCheckIcon,\n ThickChevronRightIcon,\n ThickDividerHorizontalIcon,\n} from './icons.js';\nexport { Image, type ImageProps } from './image.js';\nexport { Inset, type InsetProps } from './inset.js';\nexport { Kbd, type KbdProps } from './kbd.js';\nexport { Link, type LinkProps } from './link.js';\nexport * as Popover from './popover.js';\nexport { Portal, type PortalProps } from './portal.js';\nexport { Progress, type ProgressProps } from './progress.js';\nexport { Quote, type QuoteProps } from './quote.js';\nexport * as RadioCards from './radio-cards.js';\nexport * as RadioGroup from './radio-group.js';\nexport { Radio, type RadioProps } from './radio.js';\nexport { Reset, type ResetProps } from './reset.js';\nexport { ScrollArea, type ScrollAreaProps } from './scroll-area.js';\nexport * as SegmentedControl from './segmented-control.js';\nexport { Section, type SectionProps } from './section.js';\nexport * as Select from './select.js';\nexport { Separator, type SeparatorProps } from './separator.js';\nexport { Skeleton, type SkeletonProps } from './skeleton.js';\nexport { Slider, type SliderProps } from './slider.js';\nexport { Slot, Slottable } from './slot.js';\nexport { Spinner, type SpinnerProps } from './spinner.js';\nexport { Strong, type StrongProps } from './strong.js';\nexport { Switch, type SwitchProps } from './switch.js';\nexport * as TabNav from './tab-nav.js';\nexport * as Table from './table.js';\nexport * as Tabs from './tabs.js';\nexport { TextArea, type TextAreaProps } from './text-area.js';\nexport * as TextField from './text-field.js';\nexport { Text, type TextProps } from './text.js';\nexport { ThemePanel, type ThemePanelProps } from './theme-panel.js';\nexport { Theme, ThemeContext, type ThemeProps, useThemeContext } from './theme.js';\nexport { ToggleButton, type ToggleButtonProps } from './toggle-button.js';\nexport { ToggleIconButton, type ToggleIconButtonProps } from './toggle-icon-button.js';\nexport { Tooltip, type TooltipProps } from './tooltip.js';\nexport { VisuallyHidden, type VisuallyHiddenProps } from './visually-hidden.js';\n"],
5
- "mappings": "gkBAAA,IAAAA,GAAA,GAAAC,GAAAD,GAAA,qDAAAE,GAAA,8IAAAC,GAAA,0DAAAC,GAAA,kBAAAC,GAAA,gGAAAC,GAAA,aAAAC,GAAA,WAAAC,G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heckboxGroup", "ContextMenu", "DataList", "Dialog", "DropdownMenu", "HoverCard", "Popover", "RadioCards", "RadioGroup", "SegmentedControl", "Select", "TabNav", "Table", "Tabs", "TextField", "__toCommonJS", "import_accessible_icon", "import_aspect_ratio", "import_avatar", "import_badge", "import_blockquote", "import_box", "import_button", "import_card", "import_checkbox", "import_code", "import_container", "import_em", "import_flex", "import_grid", "import_heading", "import_icon_button", "import_icons", "import_image", "import_inset", "import_kbd", "import_link", "import_portal", "import_progress", "import_quote", "import_radio", "import_reset", "import_scroll_area", "import_section", "import_separator", "import_skeleton", "import_slider", "import_slot", "import_spinner", "import_strong", "import_switch", "import_text_area", "import_text", "import_theme_panel", "import_theme", "import_toggle_button", "import_toggle_icon_button", "import_tooltip", "import_visually_hidden"]
4
+ "sourcesContent": ["export { AccessibleIcon, type AccessibleIconProps } from './accessible-icon.js';\nexport * as AlertDialog from './alert-dialog.js';\nexport { AspectRatio, type AspectRatioProps } from './aspect-ratio.js';\nexport { Avatar, type AvatarProps } from './avatar.js';\nexport { Badge, type BadgeProps } from './badge.js';\nexport { Blockquote, type BlockquoteProps } from './blockquote.js';\nexport { Box, type BoxProps } from './box.js';\nexport { Button, type ButtonProps } from './button.js';\nexport * as Callout from './callout.js';\nexport { Card, type CardProps } from './card.js';\nexport * as CheckboxCards from './checkbox-cards.js';\nexport * as CheckboxGroup from './checkbox-group.js';\nexport { Checkbox, type CheckboxProps } from './checkbox.js';\nexport { Code, type CodeProps } from './code.js';\nexport { Container, type ContainerProps } from './container.js';\nexport * as ContextMenu from './context-menu.js';\nexport * as DataList from './data-list.js';\nexport * as Dialog from './dialog.js';\nexport * as DropdownMenu from './dropdown-menu.js';\nexport { Em, type EmProps } from './em.js';\nexport { Flex, type FlexProps } from './flex.js';\nexport { Grid, type GridProps } from './grid.js';\nexport { Heading, type HeadingProps } from './heading.js';\nexport * as HoverCard from './hover-card.js';\nexport { IconButton, type IconButtonProps } from './icon-button.js';\nexport {\n type IconProps,\n ChevronDownIcon,\n ThickCheckIcon,\n ThickChevronRightIcon,\n ThickDividerHorizontalIcon,\n} from './icons.js';\nexport { Image, type ImageProps } from './image.js';\nexport { Inset, type InsetProps } from './inset.js';\nexport { Kbd, type KbdProps } from './kbd.js';\nexport { Link, type LinkProps } from './link.js';\nexport * as Popover from './popover.js';\nexport { Portal, type PortalProps } from './portal.js';\nexport { Progress, type ProgressProps } from './progress.js';\nexport { Quote, type QuoteProps } from './quote.js';\nexport * as RadioCards from './radio-cards.js';\nexport * as RadioGroup from './radio-group.js';\nexport { Radio, type RadioProps } from './radio.js';\nexport { Reset, type ResetProps } from './reset.js';\nexport { ScrollArea, type ScrollAreaProps } from './scroll-area.js';\nexport * as SegmentedControl from './segmented-control.js';\nexport { Section, type SectionProps } from './section.js';\nexport * as Select from './select.js';\nexport { Separator, type SeparatorProps } from './separator.js';\nexport { Skeleton, type SkeletonProps } from './skeleton.js';\nexport { Slider, type SliderProps } from './slider.js';\nexport { Slot, Slottable } from './slot.js';\nexport { Spinner, type SpinnerProps } from './spinner.js';\nexport { Strong, type StrongProps } from './strong.js';\nexport { Switch, type SwitchProps } from './switch.js';\nexport * as TabNav from './tab-nav.js';\nexport * as Table from './table.js';\nexport * as Tabs from './tabs.js';\nexport { TextArea, type TextAreaProps } from './text-area.js';\nexport * as TextField from './text-field.js';\nexport { Text, type TextProps } from './text.js';\nexport { ThemePanel, type ThemePanelProps } from './theme-panel.js';\nexport { Theme, ThemeContext, type ThemeProps, useThemeContext } from './theme.js';\nexport { ToggleButton, type ToggleButtonProps } from './toggle-button.js';\nexport { ToggleIconButton, type ToggleIconButtonProps } from './toggle-icon-button.js';\nexport { Tooltip, type TooltipProps } from './tooltip.js';\nexport { VisuallyHidden, type VisuallyHiddenProps } from './visually-hidden.js';\nexport * as Sidebar from './sidebar.js';\n"],
5
+ "mappings": "gkBAAA,IAAAA,GAAA,GAAAC,GAAAD,GAAA,qDAAAE,GAAA,8IAAAC,GAAA,0DAAAC,GAAA,kBAAAC,GAA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AyD,gCACzDhD,GAAyB",
6
+ "names": ["components_exports", "__export", "AlertDialog", "Callout", "CheckboxCards", "CheckboxGroup", "ContextMenu", "DataList", "Dialog", "DropdownMenu", "HoverCard", "Popover", "RadioCards", "RadioGroup", "SegmentedControl", "Select", "Sidebar", "TabNav", "Table", "Tabs", "TextField", "__toCommonJS", "import_accessible_icon", "import_aspect_ratio", "import_avatar", "import_badge", "import_blockquote", "import_box", "import_button", "import_card", "import_checkbox", "import_code", "import_container", "import_em", "import_flex", "import_grid", "import_heading", "import_icon_button", "import_icons", "import_image", "import_inset", "import_kbd", "import_link", "import_portal", "import_progress", "import_quote", "import_radio", "import_reset", "import_scroll_area", "import_section", "import_separator", "import_skeleton", "import_slider", "import_slot", "import_spinner", "import_strong", "import_switch", "import_text_area", "import_text", "import_theme_panel", "import_theme", "import_toggle_button", "import_toggle_icon_button", "import_tooltip", "import_visually_hidden"]
7
7
  }
@@ -0,0 +1,71 @@
1
+ import * as React from 'react';
2
+ import { sidebarPropDefs } from './sidebar.props.js';
3
+ import { IconButton } from './icon-button.js';
4
+ import { baseMenuItemPropDefs } from './_internal/base-menu.props.js';
5
+ import type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';
6
+ import type { GetPropDefTypes } from '../props/prop-def.js';
7
+ type SidebarContextProps = {
8
+ open: boolean;
9
+ setOpen: (open: boolean) => void;
10
+ collapsible: 'icon' | 'offcanvas' | 'none';
11
+ };
12
+ declare function useSidebar(): SidebarContextProps;
13
+ interface SidebarProviderProps extends React.ComponentPropsWithoutRef<'div'> {
14
+ defaultOpen?: boolean;
15
+ open?: boolean;
16
+ onOpenChange?: (open: boolean) => void;
17
+ }
18
+ declare const SidebarProvider: React.ForwardRefExoticComponent<SidebarProviderProps & React.RefAttributes<HTMLDivElement>>;
19
+ type SidebarRootOwnProps = GetPropDefTypes<typeof sidebarPropDefs>;
20
+ interface SidebarRootProps extends ComponentPropsWithout<'div', RemovedProps>, SidebarRootOwnProps {
21
+ }
22
+ declare const SidebarRoot: React.ForwardRefExoticComponent<SidebarRootProps & React.RefAttributes<HTMLDivElement>>;
23
+ interface SidebarContentProps extends ComponentPropsWithout<'div', RemovedProps> {
24
+ }
25
+ declare const SidebarContent: React.ForwardRefExoticComponent<SidebarContentProps & React.RefAttributes<HTMLDivElement>>;
26
+ interface SidebarHeaderProps extends ComponentPropsWithout<'div', RemovedProps> {
27
+ }
28
+ declare const SidebarHeader: React.ForwardRefExoticComponent<SidebarHeaderProps & React.RefAttributes<HTMLDivElement>>;
29
+ interface SidebarFooterProps extends ComponentPropsWithout<'div', RemovedProps> {
30
+ }
31
+ declare const SidebarFooter: React.ForwardRefExoticComponent<SidebarFooterProps & React.RefAttributes<HTMLDivElement>>;
32
+ interface SidebarTriggerProps extends ComponentPropsWithout<typeof IconButton, RemovedProps> {
33
+ }
34
+ declare const SidebarTrigger: React.ForwardRefExoticComponent<Omit<SidebarTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
35
+ interface SidebarInsetProps extends ComponentPropsWithout<'main', RemovedProps> {
36
+ }
37
+ declare const SidebarInset: React.ForwardRefExoticComponent<SidebarInsetProps & React.RefAttributes<HTMLDivElement>>;
38
+ interface SidebarLabelProps extends React.ComponentPropsWithoutRef<'div'> {
39
+ }
40
+ declare const SidebarLabel: React.ForwardRefExoticComponent<SidebarLabelProps & React.RefAttributes<HTMLDivElement>>;
41
+ type SidebarItemOwnProps = GetPropDefTypes<typeof baseMenuItemPropDefs>;
42
+ interface SidebarItemProps extends ComponentPropsWithout<'div', RemovedProps>, SidebarItemOwnProps {
43
+ }
44
+ declare const SidebarItem: React.ForwardRefExoticComponent<SidebarItemProps & React.RefAttributes<HTMLDivElement>>;
45
+ interface SidebarGroupProps extends React.ComponentPropsWithoutRef<'div'> {
46
+ }
47
+ declare const SidebarGroup: React.ForwardRefExoticComponent<SidebarGroupProps & React.RefAttributes<HTMLDivElement>>;
48
+ interface SidebarSeparatorProps extends React.ComponentPropsWithoutRef<'div'> {
49
+ }
50
+ declare const SidebarSeparator: React.ForwardRefExoticComponent<SidebarSeparatorProps & React.RefAttributes<HTMLDivElement>>;
51
+ interface SidebarCheckboxItemProps extends React.ComponentPropsWithoutRef<'div'> {
52
+ checked?: boolean;
53
+ onCheckedChange?: (checked: boolean) => void;
54
+ color?: string;
55
+ shortcut?: string;
56
+ }
57
+ declare const SidebarCheckboxItem: React.ForwardRefExoticComponent<SidebarCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
58
+ interface SidebarRadioGroupProps extends React.ComponentPropsWithoutRef<'div'> {
59
+ value?: string;
60
+ onValueChange?: (value: string) => void;
61
+ }
62
+ declare const SidebarRadioGroup: React.ForwardRefExoticComponent<SidebarRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
63
+ interface SidebarRadioItemProps extends React.ComponentPropsWithoutRef<'div'> {
64
+ value?: string;
65
+ color?: string;
66
+ shortcut?: string;
67
+ }
68
+ declare const SidebarRadioItem: React.ForwardRefExoticComponent<SidebarRadioItemProps & React.RefAttributes<HTMLDivElement>>;
69
+ export { SidebarProvider as Provider, SidebarRoot as Root, SidebarContent as Content, SidebarHeader as Header, SidebarFooter as Footer, SidebarTrigger as Trigger, SidebarInset as Inset, SidebarLabel as Label, SidebarItem as Item, SidebarGroup as Group, SidebarSeparator as Separator, SidebarCheckboxItem as CheckboxItem, SidebarRadioGroup as RadioGroup, SidebarRadioItem as RadioItem, useSidebar, };
70
+ export type { SidebarProviderProps as ProviderProps, SidebarRootProps as RootProps, SidebarContentProps as ContentProps, SidebarHeaderProps as HeaderProps, SidebarFooterProps as FooterProps, SidebarTriggerProps as TriggerProps, SidebarInsetProps as InsetProps, };
71
+ //# sourceMappingURL=sidebar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,eAAe,EAAE,MAAM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,MAAM,iBAAiB,+FAUtB,CAAC;AAIF,UAAU,qBAAsB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,QAAA,MAAM,gBAAgB,8FAuDrB,CAAC;AAIF,OAAO,EACL,eAAe,IAAI,QAAQ,EAC3B,WAAW,IAAI,IAAI,EACnB,cAAc,IAAI,OAAO,EACzB,aAAa,IAAI,MAAM,EACvB,aAAa,IAAI,MAAM,EACvB,cAAc,IAAI,OAAO,EACzB,YAAY,IAAI,KAAK,EAErB,YAAY,IAAI,KAAK,EACrB,WAAW,IAAI,IAAI,EACnB,YAAY,IAAI,KAAK,EACrB,gBAAgB,IAAI,SAAS,EAC7B,mBAAmB,IAAI,YAAY,EACnC,iBAAiB,IAAI,UAAU,EAC/B,gBAAgB,IAAI,SAAS,EAE7B,UAAU,GACX,CAAC;AAEF,YAAY,EACV,oBAAoB,IAAI,aAAa,EACrC,gBAAgB,IAAI,SAAS,EAC7B,mBAAmB,IAAI,YAAY,EACnC,kBAAkB,IAAI,WAAW,EACjC,kBAAkB,IAAI,WAAW,EACjC,mBAAmB,IAAI,YAAY,EACnC,iBAAiB,IAAI,UAAU,GAChC,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";"use client";var X=Object.create;var R=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var Z=Object.getOwnPropertyNames;var ee=Object.getPrototypeOf,oe=Object.prototype.hasOwnProperty;var te=(o,t)=>{for(var r in t)R(o,r,{get:t[r],enumerable:!0})},A=(o,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Z(t))!oe.call(o,a)&&a!==r&&R(o,a,{get:()=>t[a],enumerable:!(n=Y(t,a))||n.enumerable});return o};var V=(o,t,r)=>(r=o!=null?X(ee(o)):{},A(t||!o||!o.__esModule?R(r,"default",{value:o,enumerable:!0}):r,o)),re=o=>A(R({},"__esModule",{value:!0}),o);var ae={};te(ae,{CheckboxItem:()=>W,Content:()=>L,Footer:()=>D,Group:()=>F,Header:()=>x,Inset:()=>k,Item:()=>w,Label:()=>B,Provider:()=>H,RadioGroup:()=>O,RadioItem:()=>z,Root:()=>y,Separator:()=>G,Trigger:()=>N,useSidebar:()=>I});module.exports=re(ae);var e=V(require("react")),i=V(require("classnames")),C=require("./sidebar.props.js"),$=require("./icon-button.js"),K=require("./scroll-area.js"),q=require("./separator.js"),T=require("./theme.js"),J=require("./icons.js"),Q=require("../helpers/extract-props.js"),U=require("./_internal/base-menu.props.js"),g=require("radix-ui");const _=e.createContext(null);function I(){const o=e.useContext(_);if(!o)throw new Error("useSidebar must be used within a Sidebar.Provider");return o}const H=e.forwardRef(({defaultOpen:o=!0,open:t,onOpenChange:r,children:n,...a},s)=>{const[u,l]=e.useState(o),b=t??u,f=e.useCallback(p=>{r?r(p):l(p)},[r]);return e.createElement("div",{...a,ref:s},e.createElement(_.Provider,{value:{open:b,setOpen:f,collapsible:"icon"}},n))});H.displayName="Sidebar.Provider";const y=e.forwardRef((o,t)=>{const r=(0,T.useThemeContext)(),{open:n}=I(),{size:a=C.sidebarPropDefs.size.default,variant:s=C.sidebarPropDefs.variant.default,side:u=C.sidebarPropDefs.side.default,collapsible:l=C.sidebarPropDefs.collapsible.default,floating:b=C.sidebarPropDefs.floating.default,color:f,highContrast:p=C.sidebarPropDefs.highContrast.default}=o,{className:P,children:v,...S}=(0,Q.extractProps)(o,C.sidebarPropDefs),c=f||r.accentColor;return e.createElement("div",{...S,ref:t,"data-accent-color":c,"data-state":n?"expanded":"collapsed","data-side":u,"data-collapsible":l,className:(0,i.default)("rt-SidebarRoot",P)},e.createElement(T.Theme,{asChild:!0},e.createElement("div",{className:(0,i.default)("rt-SidebarContainer",`rt-variant-${s}`,`rt-r-size-${a}`),"data-accent-color":c,"data-high-contrast":p||void 0},v)))});y.displayName="Sidebar.Root";const L=e.forwardRef(({className:o,children:t,...r},n)=>e.createElement(K.ScrollArea,{type:"auto"},e.createElement("div",{...r,ref:n,className:(0,i.default)("rt-SidebarContent","rt-BaseMenuContent",o)},t)));L.displayName="Sidebar.Content";const x=e.forwardRef(({className:o,...t},r)=>e.createElement("div",{...t,ref:r,className:(0,i.default)("rt-SidebarHeader","rt-BaseMenuContent",o)}));x.displayName="Sidebar.Header";const D=e.forwardRef(({className:o,...t},r)=>e.createElement("div",{...t,ref:r,className:(0,i.default)("rt-SidebarFooter","rt-BaseMenuContent",o)}));D.displayName="Sidebar.Footer";const N=e.forwardRef(({onClick:o,...t},r)=>{const{setOpen:n,open:a}=I();return e.createElement($.IconButton,{...t,ref:r,variant:"ghost",onClick:s=>{o?.(s),n(!a)}},e.createElement(J.ChevronDownIcon,null))});N.displayName="Sidebar.Trigger";const k=e.forwardRef(({className:o,...t},r)=>e.createElement("main",{...t,ref:r,className:(0,i.default)("rt-SidebarInset",o)}));k.displayName="Sidebar.Inset";const B=e.forwardRef(({className:o,...t},r)=>e.createElement("div",{ref:r,className:(0,i.default)("rt-BaseMenuLabel",o),...t}));B.displayName="Sidebar.Label";const w=e.forwardRef((o,t)=>{const{className:r,children:n,color:a=U.baseMenuItemPropDefs.color.default,shortcut:s,asChild:u=!1,onMouseEnter:l,onMouseLeave:b,onFocus:f,onBlur:p,...P}=o,[v,S]=e.useState(!1),c=e.useCallback(h=>{S(!0),l?.(h)},[l]),M=e.useCallback(h=>{S(!1),b?.(h)},[b]),E=e.useCallback(h=>{S(!0),f?.(h)},[f]),m=e.useCallback(h=>{S(!1),p?.(h)},[p]);return u?e.createElement(g.Slot.Root,{ref:t,"data-accent-color":a,"data-highlighted":v||void 0,className:(0,i.default)("rt-reset","rt-BaseMenuItem",r),onMouseEnter:c,onMouseLeave:M,onFocus:E,onBlur:m,...P},n):e.createElement("div",{ref:t,"data-accent-color":a,"data-highlighted":v||void 0,className:(0,i.default)("rt-reset","rt-BaseMenuItem",r),onMouseEnter:c,onMouseLeave:M,onFocus:E,onBlur:m,tabIndex:0,role:"menuitem",...P},e.createElement(g.Slot.Slottable,null,n),s&&e.createElement("div",{className:"rt-BaseMenuShortcut"},s))});w.displayName="Sidebar.Item";const F=e.forwardRef(({className:o,...t},r)=>e.createElement("div",{ref:r,className:(0,i.default)("rt-BaseMenuGroup",o),...t}));F.displayName="Sidebar.Group";const G=e.forwardRef(({className:o,...t},r)=>e.createElement(q.Separator,{ref:r,className:(0,i.default)("rt-BaseMenuSeparator",o)}));G.displayName="Sidebar.Separator";const W=e.forwardRef(({className:o,checked:t,onCheckedChange:r,children:n,color:a,shortcut:s,onMouseEnter:u,onMouseLeave:l,onFocus:b,onBlur:f,onClick:p,...P},v)=>{const[S,c]=e.useState(!1),M=e.useCallback(d=>{c(!0),u?.(d)},[u]),E=e.useCallback(d=>{c(!1),l?.(d)},[l]),m=e.useCallback(d=>{c(!0),b?.(d)},[b]),h=e.useCallback(d=>{c(!1),f?.(d)},[f]),j=e.useCallback(d=>{r?.(!t),p?.(d)},[t,r,p]);return e.createElement("div",{ref:v,"data-accent-color":a,"data-highlighted":S||void 0,className:(0,i.default)("rt-reset","rt-BaseMenuItem","rt-BaseMenuCheckboxItem",o),onClick:j,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),j(d))},onMouseEnter:M,onMouseLeave:E,onFocus:m,onBlur:h,tabIndex:0,role:"menuitemcheckbox","aria-checked":t,...P},e.createElement(g.Slot.Slottable,null,n),t&&e.createElement("div",{className:"rt-BaseMenuItemIndicator"},"\u2713"),s&&e.createElement("div",{className:"rt-BaseMenuShortcut"},s))});W.displayName="Sidebar.CheckboxItem";const O=e.forwardRef(({className:o,value:t,onValueChange:r,children:n,...a},s)=>e.createElement("div",{ref:s,className:(0,i.default)("rt-BaseMenuGroup",o),...a},n));O.displayName="Sidebar.RadioGroup";const z=e.forwardRef(({className:o,value:t,children:r,color:n,shortcut:a,onMouseEnter:s,onMouseLeave:u,onFocus:l,onBlur:b,...f},p)=>{const[P,v]=e.useState(!1),S=e.useCallback(m=>{v(!0),s?.(m)},[s]),c=e.useCallback(m=>{v(!1),u?.(m)},[u]),M=e.useCallback(m=>{v(!0),l?.(m)},[l]),E=e.useCallback(m=>{v(!1),b?.(m)},[b]);return e.createElement("div",{ref:p,"data-accent-color":n,"data-highlighted":P||void 0,className:(0,i.default)("rt-reset","rt-BaseMenuItem",o),onMouseEnter:S,onMouseLeave:c,onFocus:M,onBlur:E,tabIndex:0,role:"menuitemradio","aria-checked":!1,...f},e.createElement(g.Slot.Slottable,null,r),a&&e.createElement("div",{className:"rt-BaseMenuShortcut"},a))});z.displayName="Sidebar.RadioItem";
2
+ //# sourceMappingURL=sidebar.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/sidebar.tsx"],
4
+ "sourcesContent": ["'use client';\n\nimport * as React from 'react';\nimport classNames from 'classnames';\n\nimport { sidebarPropDefs } from './sidebar.props.js';\n\nimport { IconButton } from './icon-button.js';\nimport { ScrollArea } from './scroll-area.js';\nimport { Separator } from './separator.js';\nimport { Theme, useThemeContext } from './theme.js';\nimport { ChevronDownIcon } from './icons.js';\nimport { extractProps } from '../helpers/extract-props.js';\n\n\n// Import base menu styling and components\nimport { baseMenuItemPropDefs } from './_internal/base-menu.props.js';\nimport { Slot } from 'radix-ui';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\n// Context for sidebar state\ntype SidebarContextProps = {\n open: boolean;\n setOpen: (open: boolean) => void;\n collapsible: 'icon' | 'offcanvas' | 'none';\n};\n\nconst SidebarContext = React.createContext<SidebarContextProps | null>(null);\n\nfunction useSidebar() {\n const context = React.useContext(SidebarContext);\n if (!context) {\n throw new Error('useSidebar must be used within a Sidebar.Provider');\n }\n return context;\n}\n\n// Provider component\ninterface SidebarProviderProps extends React.ComponentPropsWithoutRef<'div'> {\n defaultOpen?: boolean;\n open?: boolean;\n onOpenChange?: (open: boolean) => void;\n}\n\nconst SidebarProvider = React.forwardRef<HTMLDivElement, SidebarProviderProps>(\n ({ defaultOpen = true, open: openProp, onOpenChange: setOpenProp, children, ...props }, forwardedRef) => {\n // Internal state for uncontrolled mode\n const [internalOpen, setInternalOpen] = React.useState(defaultOpen);\n \n // Use controlled state if provided, otherwise internal state\n const open = openProp ?? internalOpen;\n \n const setOpen = React.useCallback((value: boolean) => {\n if (setOpenProp) {\n setOpenProp(value); // Controlled mode\n } else {\n setInternalOpen(value); // Uncontrolled mode\n }\n }, [setOpenProp]);\n\n return (\n <div {...props} ref={forwardedRef}>\n <SidebarContext.Provider value={{ open, setOpen, collapsible: 'icon' }}>\n {children}\n </SidebarContext.Provider>\n </div>\n );\n }\n);\nSidebarProvider.displayName = 'Sidebar.Provider';\n\n// Root sidebar container\ntype SidebarRootOwnProps = GetPropDefTypes<typeof sidebarPropDefs>;\ntype SidebarRootElement = HTMLDivElement;\ninterface SidebarRootProps\n extends ComponentPropsWithout<'div', RemovedProps>,\n SidebarRootOwnProps {}\n\nconst SidebarRoot = React.forwardRef<SidebarRootElement, SidebarRootProps>(\n (props, forwardedRef) => {\n const themeContext = useThemeContext();\n const { open } = useSidebar();\n \n const {\n size = sidebarPropDefs.size.default,\n variant = sidebarPropDefs.variant.default,\n side = sidebarPropDefs.side.default,\n collapsible = sidebarPropDefs.collapsible.default,\n floating: _floating = sidebarPropDefs.floating.default,\n color,\n highContrast = sidebarPropDefs.highContrast.default,\n } = props;\n\n const { className, children, ...rootProps } = extractProps(props, sidebarPropDefs);\n const resolvedColor = color || themeContext.accentColor;\n\n return (\n <div\n {...rootProps}\n ref={forwardedRef}\n data-accent-color={resolvedColor}\n data-state={open ? 'expanded' : 'collapsed'}\n data-side={side}\n data-collapsible={collapsible}\n className={classNames(\n 'rt-SidebarRoot',\n className\n )}\n >\n <Theme asChild>\n <div \n className={classNames('rt-SidebarContainer', `rt-variant-${variant}`, `rt-r-size-${size}`)}\n data-accent-color={resolvedColor}\n data-high-contrast={highContrast || undefined}\n >\n {children}\n </div>\n </Theme>\n </div>\n );\n }\n);\nSidebarRoot.displayName = 'Sidebar.Root';\n\n// Sidebar content area\ntype SidebarContentElement = HTMLDivElement;\ninterface SidebarContentProps extends ComponentPropsWithout<'div', RemovedProps> {}\n\nconst SidebarContent = React.forwardRef<SidebarContentElement, SidebarContentProps>(\n ({ className, children, ...props }, forwardedRef) => (\n <ScrollArea type=\"auto\">\n <div\n {...props}\n ref={forwardedRef}\n className={classNames('rt-SidebarContent', 'rt-BaseMenuContent', className)}\n >\n {children}\n </div>\n </ScrollArea>\n )\n);\nSidebarContent.displayName = 'Sidebar.Content';\n\n// Sidebar header\ntype SidebarHeaderElement = HTMLDivElement;\ninterface SidebarHeaderProps extends ComponentPropsWithout<'div', RemovedProps> {}\n\nconst SidebarHeader = React.forwardRef<SidebarHeaderElement, SidebarHeaderProps>(\n ({ className, ...props }, forwardedRef) => (\n <div\n {...props}\n ref={forwardedRef}\n className={classNames('rt-SidebarHeader', 'rt-BaseMenuContent', className)}\n />\n )\n);\nSidebarHeader.displayName = 'Sidebar.Header';\n\n// Sidebar footer\ntype SidebarFooterElement = HTMLDivElement;\ninterface SidebarFooterProps extends ComponentPropsWithout<'div', RemovedProps> {}\n\nconst SidebarFooter = React.forwardRef<SidebarFooterElement, SidebarFooterProps>(\n ({ className, ...props }, forwardedRef) => (\n <div\n {...props}\n ref={forwardedRef}\n className={classNames('rt-SidebarFooter', 'rt-BaseMenuContent', className)}\n />\n )\n);\nSidebarFooter.displayName = 'Sidebar.Footer';\n\n// Sidebar trigger button\ntype SidebarTriggerElement = React.ElementRef<typeof IconButton>;\ninterface SidebarTriggerProps extends ComponentPropsWithout<typeof IconButton, RemovedProps> {}\n\nconst SidebarTrigger = React.forwardRef<SidebarTriggerElement, SidebarTriggerProps>(\n ({ onClick, ...props }, forwardedRef) => {\n const { setOpen, open } = useSidebar();\n \n return (\n <IconButton\n {...props}\n ref={forwardedRef}\n variant=\"ghost\"\n onClick={(event) => {\n onClick?.(event);\n setOpen(!open);\n }}\n >\n <ChevronDownIcon />\n </IconButton>\n );\n }\n);\nSidebarTrigger.displayName = 'Sidebar.Trigger';\n\n// Main content area (pushes to make room for sidebar)\ntype SidebarInsetElement = HTMLDivElement;\ninterface SidebarInsetProps extends ComponentPropsWithout<'main', RemovedProps> {}\n\nconst SidebarInset = React.forwardRef<SidebarInsetElement, SidebarInsetProps>(\n ({ className, ...props }, forwardedRef) => (\n <main\n {...props}\n ref={forwardedRef}\n className={classNames('rt-SidebarInset', className)}\n />\n )\n);\nSidebarInset.displayName = 'Sidebar.Inset';\n\n// Create sidebar-specific menu components that don't require DropdownMenu context\ninterface SidebarLabelProps extends React.ComponentPropsWithoutRef<'div'> {}\n\nconst SidebarLabel = React.forwardRef<HTMLDivElement, SidebarLabelProps>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={classNames('rt-BaseMenuLabel', className)}\n {...props}\n />\n )\n);\nSidebarLabel.displayName = 'Sidebar.Label';\n\ntype SidebarItemOwnProps = GetPropDefTypes<typeof baseMenuItemPropDefs>;\ninterface SidebarItemProps \n extends ComponentPropsWithout<'div', RemovedProps>,\n SidebarItemOwnProps {}\n\nconst SidebarItem = React.forwardRef<HTMLDivElement, SidebarItemProps>(\n (props, ref) => {\n const {\n className,\n children,\n color = baseMenuItemPropDefs.color.default,\n shortcut,\n asChild = false,\n onMouseEnter,\n onMouseLeave,\n onFocus,\n onBlur,\n ...itemProps\n } = props;\n \n const [highlighted, setHighlighted] = React.useState(false);\n \n const handleMouseEnter = React.useCallback((e: React.MouseEvent<HTMLDivElement>) => {\n setHighlighted(true);\n onMouseEnter?.(e);\n }, [onMouseEnter]);\n \n const handleMouseLeave = React.useCallback((e: React.MouseEvent<HTMLDivElement>) => {\n setHighlighted(false);\n onMouseLeave?.(e);\n }, [onMouseLeave]);\n \n const handleFocus = React.useCallback((e: React.FocusEvent<HTMLDivElement>) => {\n setHighlighted(true);\n onFocus?.(e);\n }, [onFocus]);\n \n const handleBlur = React.useCallback((e: React.FocusEvent<HTMLDivElement>) => {\n setHighlighted(false);\n onBlur?.(e);\n }, [onBlur]);\n \n if (asChild) {\n return (\n <Slot.Root\n ref={ref}\n data-accent-color={color}\n data-highlighted={highlighted || undefined}\n className={classNames('rt-reset', 'rt-BaseMenuItem', className)}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n onFocus={handleFocus}\n onBlur={handleBlur}\n {...itemProps}\n >\n {children}\n </Slot.Root>\n );\n }\n \n return (\n <div\n ref={ref}\n data-accent-color={color}\n data-highlighted={highlighted || undefined}\n className={classNames('rt-reset', 'rt-BaseMenuItem', className)}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n onFocus={handleFocus}\n onBlur={handleBlur}\n tabIndex={0}\n role=\"menuitem\"\n {...itemProps}\n >\n <Slot.Slottable>{children}</Slot.Slottable>\n {shortcut && <div className=\"rt-BaseMenuShortcut\">{shortcut}</div>}\n </div>\n );\n }\n);\nSidebarItem.displayName = 'Sidebar.Item';\n\ninterface SidebarGroupProps extends React.ComponentPropsWithoutRef<'div'> {}\n\nconst SidebarGroup = React.forwardRef<HTMLDivElement, SidebarGroupProps>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={classNames('rt-BaseMenuGroup', className)}\n {...props}\n />\n )\n);\nSidebarGroup.displayName = 'Sidebar.Group';\n\ninterface SidebarSeparatorProps extends React.ComponentPropsWithoutRef<'div'> {}\n\nconst SidebarSeparator = React.forwardRef<HTMLDivElement, SidebarSeparatorProps>(\n ({ className, ..._props }, ref) => (\n <Separator\n ref={ref}\n className={classNames('rt-BaseMenuSeparator', className)}\n />\n )\n);\nSidebarSeparator.displayName = 'Sidebar.Separator';\n\n// Sidebar checkbox item with proper prop filtering\ninterface SidebarCheckboxItemProps extends React.ComponentPropsWithoutRef<'div'> {\n checked?: boolean;\n onCheckedChange?: (checked: boolean) => void;\n color?: string;\n shortcut?: string;\n}\n\nconst SidebarCheckboxItem = React.forwardRef<HTMLDivElement, SidebarCheckboxItemProps>(\n ({ \n className, \n checked, \n onCheckedChange, \n children, \n color, \n shortcut, \n onMouseEnter,\n onMouseLeave,\n onFocus,\n onBlur,\n onClick,\n ...props \n }, ref) => {\n const [highlighted, setHighlighted] = React.useState(false);\n \n const handleMouseEnter = React.useCallback((e: React.MouseEvent<HTMLDivElement>) => {\n setHighlighted(true);\n onMouseEnter?.(e);\n }, [onMouseEnter]);\n \n const handleMouseLeave = React.useCallback((e: React.MouseEvent<HTMLDivElement>) => {\n setHighlighted(false);\n onMouseLeave?.(e);\n }, [onMouseLeave]);\n \n const handleFocus = React.useCallback((e: React.FocusEvent<HTMLDivElement>) => {\n setHighlighted(true);\n onFocus?.(e);\n }, [onFocus]);\n \n const handleBlur = React.useCallback((e: React.FocusEvent<HTMLDivElement>) => {\n setHighlighted(false);\n onBlur?.(e);\n }, [onBlur]);\n \n const handleClick = React.useCallback((e: React.MouseEvent<HTMLDivElement>) => {\n onCheckedChange?.(!checked);\n onClick?.(e);\n }, [checked, onCheckedChange, onClick]);\n \n return (\n <div\n ref={ref}\n data-accent-color={color}\n data-highlighted={highlighted || undefined}\n className={classNames(\n 'rt-reset',\n 'rt-BaseMenuItem',\n 'rt-BaseMenuCheckboxItem',\n className\n )}\n onClick={handleClick}\n onKeyDown={(e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n handleClick(e as any);\n }\n }}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n onFocus={handleFocus}\n onBlur={handleBlur}\n tabIndex={0}\n role=\"menuitemcheckbox\"\n aria-checked={checked}\n {...props}\n >\n <Slot.Slottable>{children}</Slot.Slottable>\n {checked && <div className=\"rt-BaseMenuItemIndicator\">\u2713</div>}\n {shortcut && <div className=\"rt-BaseMenuShortcut\">{shortcut}</div>}\n </div>\n );\n }\n);\nSidebarCheckboxItem.displayName = 'Sidebar.CheckboxItem';\n\n// Sidebar radio group with proper prop filtering \ninterface SidebarRadioGroupProps extends React.ComponentPropsWithoutRef<'div'> {\n value?: string;\n onValueChange?: (value: string) => void;\n}\n\nconst SidebarRadioGroup = React.forwardRef<HTMLDivElement, SidebarRadioGroupProps>(\n ({ className, value, onValueChange, children, ...props }, ref) => (\n <div\n ref={ref}\n className={classNames('rt-BaseMenuGroup', className)}\n {...props}\n >\n {children}\n </div>\n )\n);\nSidebarRadioGroup.displayName = 'Sidebar.RadioGroup';\n\n// Sidebar radio item with proper prop filtering\ninterface SidebarRadioItemProps extends React.ComponentPropsWithoutRef<'div'> {\n value?: string;\n color?: string;\n shortcut?: string;\n}\n\nconst SidebarRadioItem = React.forwardRef<HTMLDivElement, SidebarRadioItemProps>(\n ({ \n className, \n value, \n children, \n color, \n shortcut, \n onMouseEnter,\n onMouseLeave,\n onFocus,\n onBlur,\n ...props \n }, ref) => {\n const [highlighted, setHighlighted] = React.useState(false);\n \n const handleMouseEnter = React.useCallback((e: React.MouseEvent<HTMLDivElement>) => {\n setHighlighted(true);\n onMouseEnter?.(e);\n }, [onMouseEnter]);\n \n const handleMouseLeave = React.useCallback((e: React.MouseEvent<HTMLDivElement>) => {\n setHighlighted(false);\n onMouseLeave?.(e);\n }, [onMouseLeave]);\n \n const handleFocus = React.useCallback((e: React.FocusEvent<HTMLDivElement>) => {\n setHighlighted(true);\n onFocus?.(e);\n }, [onFocus]);\n \n const handleBlur = React.useCallback((e: React.FocusEvent<HTMLDivElement>) => {\n setHighlighted(false);\n onBlur?.(e);\n }, [onBlur]);\n \n return (\n <div\n ref={ref}\n data-accent-color={color}\n data-highlighted={highlighted || undefined}\n className={classNames('rt-reset', 'rt-BaseMenuItem', className)}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n onFocus={handleFocus}\n onBlur={handleBlur}\n tabIndex={0}\n role=\"menuitemradio\"\n aria-checked={false}\n {...props}\n >\n <Slot.Slottable>{children}</Slot.Slottable>\n {shortcut && <div className=\"rt-BaseMenuShortcut\">{shortcut}</div>}\n </div>\n );\n }\n);\nSidebarRadioItem.displayName = 'Sidebar.RadioItem';\n\n// Export all components\nexport {\n SidebarProvider as Provider,\n SidebarRoot as Root,\n SidebarContent as Content,\n SidebarHeader as Header,\n SidebarFooter as Footer,\n SidebarTrigger as Trigger,\n SidebarInset as Inset,\n // Re-export DropdownMenu components as sidebar menu components\n SidebarLabel as Label,\n SidebarItem as Item,\n SidebarGroup as Group,\n SidebarSeparator as Separator,\n SidebarCheckboxItem as CheckboxItem,\n SidebarRadioGroup as RadioGroup,\n SidebarRadioItem as RadioItem,\n // Export hook\n useSidebar,\n};\n\nexport type {\n SidebarProviderProps as ProviderProps,\n SidebarRootProps as RootProps,\n SidebarContentProps as ContentProps,\n SidebarHeaderProps as HeaderProps,\n SidebarFooterProps as FooterProps,\n SidebarTriggerProps as TriggerProps,\n SidebarInsetProps as InsetProps,\n}; "],
5
+ "mappings": "6kBAAA,IAAAA,GAAA,GAAAC,GAAAD,GAAA,kBAAAE,EAAA,YAAAC,EAAA,WAAAC,EAAA,UAAAC,EAAA,WAAAC,EAAA,UAAAC,EAAA,SAAAC,EAAA,UAAAC,EAAA,aAAAC,EAAA,eAAAC,EAAA,cAAAC,EAAA,SAAAC,EAAA,cAAAC,EAAA,YAAAC,EAAA,eAAAC,IAAA,eAAAC,GAAAjB,IAEA,IAAAkB,EAAuB,oBACvBC,EAAuB,yBAEvBC,EAAgC,8BAEhCC,EAA2B,4BAC3BC,EAA2B,4BAC3BC,EAA0B,0BAC1BC,EAAuC,sBACvCC,EAAgC,sBAChCC,EAA6B,uCAI7BC,EAAqC,0CACrCC,EAAqB,oBAYrB,MAAMC,EAAiBX,EAAM,cAA0C,IAAI,EAE3E,SAASF,GAAa,CACpB,MAAMc,EAAUZ,EAAM,WAAWW,CAAc,EAC/C,GAAI,CAACC,EACH,MAAM,IAAI,MAAM,mDAAmD,EAErE,OAAOA,CACT,CASA,MAAMpB,E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CACC,UAAAgC,EACA,MAAAT,EACA,SAAAP,EACA,MAAAc,EACA,SAAAS,EACA,aAAAE,EACA,aAAAC,EACA,QAAAC,EACA,OAAAC,EACA,GAAG3B,CACL,EAAGqB,IAAQ,CACT,KAAM,CAACQ,EAAaC,CAAc,EAAI/C,EAAM,SAAS,EAAK,EAEpDgD,EAAmBhD,EAAM,YAAaiD,GAAwC,CAClFF,EAAe,EAAI,EACnBN,IAAeQ,CAAC,CAClB,EAAG,CAACR,CAAY,CAAC,EAEXS,EAAmBlD,EAAM,YAAaiD,GAAwC,CAClFF,EAAe,EAAK,EACpBL,IAAeO,CAAC,CAClB,EAAG,CAACP,CAAY,CAAC,EAEXS,EAAcnD,EAAM,YAAaiD,GAAwC,CAC7EF,EAAe,EAAI,EACnBJ,IAAUM,CAAC,CACb,EAAG,CAACN,CAAO,CAAC,EAENS,EAAapD,EAAM,YAAaiD,GAAwC,CAC5EF,EAAe,EAAK,EACpBH,IAASK,CAAC,CACZ,EAAG,CAACL,CAAM,CAAC,EAEX,OACE5C,EAAA,cAAC,OACC,IAAKsC,EACL,oBAAmBR,EACnB,mBAAkBgB,GAAe,OACjC,aAAW,EAAAX,SAAW,WAAY,kBAAmBH,CAAS,EAC9D,aAAcgB,EACd,aAAcE,EACd,QAASC,EACT,OAAQC,EACR,SAAU,EACV,KAAK,gBACL,eAAc,GACb,GAAGnC,GAEJjB,EAAA,cAAC,OAAK,UAAL,KAAgBgB,CAAS,EACzBuB,GAAYvC,EAAA,cAAC,OAAI,UAAU,uBAAuBuC,CAAS,CAC9D,CAEJ,CACF,EACA7C,EAAiB,YAAc",
6
+ "names": ["sidebar_exports", "__export", "SidebarCheckboxItem", "SidebarContent", "SidebarFooter", "SidebarGroup", "SidebarHeader", "SidebarInset", "SidebarItem", "SidebarLabel", "SidebarProvider", "SidebarRadioGroup", "SidebarRadioItem", "SidebarRoot", "SidebarSeparator", "SidebarTrigger", "useSidebar", "__toCommonJS", "React", "import_classnames", "import_sidebar_props", "import_icon_button", "import_scroll_area", "import_separator", "import_theme", "import_icons", "import_extract_props", "import_base_menu_props", "import_radix_ui", "SidebarContext", "context", "defaultOpen", "openProp", "setOpenProp", "children", "props", "forwardedRef", "internalOpen", "setInternalOpen", "open", "setOpen", "value", "themeContext", "size", "variant", "side", "collapsible", "_floating", "color", "highContrast", "className", "rootProps", "resolvedColor", "classNames", "onClick", "event", "ref", "shortcut", "asChild", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur", "itemProps", "highlighted", "setHighlighted", "handleMouseEnter", "e", "handleMouseLeave", "handleFocus", "handleBlur", "_props", "checked", "onCheckedChange", "handleClick", "onValueChange"]
7
+ }
@@ -0,0 +1,48 @@
1
+ export { baseMenuContentPropDefs as sidebarContentPropDefs, baseMenuItemPropDefs as sidebarItemPropDefs, baseMenuCheckboxItemPropDefs as sidebarCheckboxItemPropDefs, baseMenuRadioItemPropDefs as sidebarRadioItemPropDefs, } from './_internal/base-menu.props.js';
2
+ declare const sidebarPropDefs: {
3
+ highContrast: {
4
+ type: "boolean";
5
+ className: string;
6
+ default: undefined;
7
+ };
8
+ color: {
9
+ type: "enum";
10
+ values: readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky"];
11
+ default: "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky";
12
+ };
13
+ size: {
14
+ type: "enum";
15
+ className: string;
16
+ values: readonly ["1", "2", "3"];
17
+ default: "2";
18
+ responsive: true;
19
+ };
20
+ variant: {
21
+ type: "enum";
22
+ className: string;
23
+ values: readonly ["classic", "surface", "ghost"];
24
+ default: "surface";
25
+ };
26
+ side: {
27
+ type: "enum";
28
+ className: string;
29
+ values: readonly ["left", "right"];
30
+ default: "left";
31
+ };
32
+ collapsible: {
33
+ type: "enum";
34
+ className: string;
35
+ values: readonly ["icon", "offcanvas", "none"];
36
+ default: "icon";
37
+ };
38
+ floating: {
39
+ type: "boolean";
40
+ className: string;
41
+ default: false;
42
+ };
43
+ asChild: {
44
+ type: "boolean";
45
+ };
46
+ };
47
+ export { sidebarPropDefs };
48
+ //# sourceMappingURL=sidebar.props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar.props.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar.props.tsx"],"names":[],"mappings":"AAOA,OAAO,EACL,uBAAuB,IAAI,sBAAsB,EACjD,oBAAoB,IAAI,mBAAmB,EAC3C,4BAA4B,IAAI,2BAA2B,EAC3D,yBAAyB,IAAI,wBAAwB,GACtD,MAAM,gCAAgC,CAAC;AAQxC,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAepB,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";var r=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var b=(o,e)=>{for(var t in e)r(o,t,{get:e[t],enumerable:!0})},d=(o,e,t,f)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of m(e))!u.call(o,a)&&a!==t&&r(o,a,{get:()=>e[a],enumerable:!(f=c(e,a))||f.enumerable});return o};var D=o=>d(r({},"__esModule",{value:!0}),o);var C={};b(C,{sidebarCheckboxItemPropDefs:()=>s.baseMenuCheckboxItemPropDefs,sidebarContentPropDefs:()=>s.baseMenuContentPropDefs,sidebarItemPropDefs:()=>s.baseMenuItemPropDefs,sidebarPropDefs:()=>l,sidebarRadioItemPropDefs:()=>s.baseMenuRadioItemPropDefs});module.exports=D(C);var p=require("../props/as-child.prop.js"),i=require("../props/color.prop.js"),n=require("../props/high-contrast.prop.js"),s=require("./_internal/base-menu.props.js");const P=["1","2","3"],v=["classic","surface","ghost"],y=["left","right"],h=["icon","offcanvas","none"],l={...p.asChildPropDef,size:{type:"enum",className:"rt-r-size",values:P,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:v,default:"surface"},side:{type:"enum",className:"rt-side",values:y,default:"left"},collapsible:{type:"enum",className:"rt-collapsible",values:h,default:"icon"},floating:{type:"boolean",className:"rt-floating",default:!1},...i.accentColorPropDef,...n.highContrastPropDef};
2
+ //# sourceMappingURL=sidebar.props.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/sidebar.props.tsx"],
4
+ "sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\nimport { accentColorPropDef } from '../props/color.prop.js';\nimport { highContrastPropDef } from '../props/high-contrast.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\n// Re-export base menu props for sidebar menu components\nexport {\n baseMenuContentPropDefs as sidebarContentPropDefs,\n baseMenuItemPropDefs as sidebarItemPropDefs,\n baseMenuCheckboxItemPropDefs as sidebarCheckboxItemPropDefs,\n baseMenuRadioItemPropDefs as sidebarRadioItemPropDefs,\n} from './_internal/base-menu.props.js';\n\n// Sidebar container props\nconst sizes = ['1', '2', '3'] as const;\nconst variants = ['classic', 'surface', 'ghost'] as const;\nconst sides = ['left', 'right'] as const;\nconst collapsibleModes = ['icon', 'offcanvas', 'none'] as const;\n\nconst sidebarPropDefs = {\n ...asChildPropDef,\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true },\n variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'surface' },\n side: { type: 'enum', className: 'rt-side', values: sides, default: 'left' },\n collapsible: { type: 'enum', className: 'rt-collapsible', values: collapsibleModes, default: 'icon' },\n floating: { type: 'boolean', className: 'rt-floating', default: false },\n ...accentColorPropDef,\n ...highContrastPropDef,\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n side: PropDef<(typeof sides)[number]>;\n collapsible: PropDef<(typeof collapsibleModes)[number]>;\n floating: PropDef<boolean>;\n};\n\nexport { sidebarPropDefs }; "],
5
+ "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,wLAAAE,EAAA,0EAAAC,EAAAH,GAAA,IAAAI,EAA+B,qCAC/BC,EAAmC,kCACnCC,EAAoC,0CAKpCC,EAKO,0CAGP,MAAMC,EAAQ,CAAC,IAAK,IAAK,GAAG,EACtBC,EAAW,CAAC,UAAW,UAAW,OAAO,EACzCC,EAAQ,CAAC,OAAQ,OAAO,EACxBC,EAAmB,CAAC,OAAQ,YAAa,MAAM,EAE/CT,EAAkB,CACtB,GAAG,iBACH,KAAM,CAAE,KAAM,OAAQ,UAAW,YAAa,OAAQM,EAAO,QAAS,IAAK,WAAY,EAAK,EAC5F,QAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQC,EAAU,QAAS,SAAU,EACvF,KAAM,CAAE,KAAM,OAAQ,UAAW,UAAW,OAAQC,EAAO,QAAS,MAAO,EAC3E,YAAa,CAAE,KAAM,OAAQ,UAAW,iBAAkB,OAAQC,EAAkB,QAAS,MAAO,EACpG,SAAU,CAAE,KAAM,UAAW,UAAW,cAAe,QAAS,EAAM,EACtE,GAAG,qBACH,GAAG,qBACL",
6
+ "names": ["sidebar_props_exports", "__export", "sidebarPropDefs", "__toCommonJS", "import_as_child_prop", "import_color_prop", "import_high_contrast_prop", "import_base_menu_props", "sizes", "variants", "sides", "collapsibleModes"]
7
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/image.tsx"],
4
- "sourcesContent": ["'use client';\n\nimport * as React from 'react';\nimport classNames from 'classnames';\n\nimport { imagePropDefs } from './image.props.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { marginPropDefs } from '../props/margin.props.js';\nimport { widthPropDefs } from '../props/width.props.js';\nimport { heightPropDefs } from '../props/height.props.js';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { MarginProps } from '../props/margin.props.js';\nimport type { WidthProps } from '../props/width.props.js';\nimport type { HeightProps } from '../props/height.props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype ImageElement = React.ElementRef<'img'>;\ntype ImageOwnProps = GetPropDefTypes<typeof imagePropDefs> & {\n loading?: 'eager' | 'lazy';\n};\n\ninterface ImageProps\n extends ComponentPropsWithout<'img', RemovedProps | 'color' | 'width' | 'height' | 'alt'>,\n MarginProps,\n WidthProps,\n HeightProps,\n ImageOwnProps {\n /**\n * The alt attribute provides alternative information for an image if a user for some reason cannot view it.\n * Required for accessibility when not using asChild.\n */\n alt?: string;\n}\n\nconst Image = React.forwardRef<ImageElement, ImageProps>((props, forwardedRef) => {\n const { variant = 'surface', fit = 'cover', children } = props;\n const {\n asChild,\n className,\n radius,\n style,\n loading = 'lazy',\n alt,\n src,\n children: _children, // Extract children to exclude from imgProps\n ...imgProps\n } = extractProps(props, imagePropDefs, marginPropDefs, widthPropDefs, heightPropDefs);\n\n // Create the standard img element\n const imgElement = (\n <img\n data-radius={radius}\n loading={loading}\n style={style}\n className={classNames(\n 'rt-reset',\n 'rt-Image',\n variant === 'blur' && 'rt-Image--blur',\n className,\n )}\n alt={alt}\n src={src}\n {...imgProps}\n ref={forwardedRef}\n />\n );\n\n // Handle asChild - inject img into the child element\n if (asChild && children) {\n const child = React.Children.only(children) as React.ReactElement<any>;\n\n if (variant === 'blur') {\n // For blur variant with asChild\n return React.cloneElement(child, {\n className: classNames(child.props?.className, 'rt-variant-blur'),\n style: {\n position: 'relative',\n display: 'inline-block',\n textDecoration: 'none', // Reset link underlines\n color: 'inherit', // Reset link colors\n border: 'none', // Reset button borders\n background: 'none', // Reset button backgrounds\n padding: 0, // Reset button padding\n font: 'inherit', // Reset button fonts\n cursor: 'pointer', // Ensure interactive cursor\n ...child.props?.style,\n },\n children: (\n <>\n {/* Background blurred image */}\n <img\n data-radius={radius}\n loading={loading}\n style={{\n ...style,\n position: 'absolute',\n top: '8px',\n left: '0',\n }}\n className={classNames(\n 'rt-reset',\n 'rt-Image',\n 'rt-Image--blur',\n 'rt-Image--blur-bg',\n className,\n )}\n alt=\"\"\n src={src}\n {...imgProps}\n />\n {/* Foreground image */}\n <img\n data-radius={radius}\n loading={loading}\n style={{ ...style, position: 'relative', zIndex: 1 }}\n className={classNames('rt-reset', 'rt-Image', 'rt-Image--blur', className)}\n alt={alt}\n src={src}\n {...imgProps}\n ref={forwardedRef}\n />\n </>\n ),\n });\n } else {\n // For surface variant with asChild\n return React.cloneElement(child, {\n className: classNames(child.props?.className, 'rt-Image'),\n style: {\n textDecoration: 'none', // Reset link underlines\n color: 'inherit', // Reset link colors\n border: 'none', // Reset button borders\n background: 'none', // Reset button backgrounds\n padding: 0, // Reset button padding\n font: 'inherit', // Reset button fonts\n cursor: 'pointer', // Ensure interactive cursor\n ...child.props?.style, // Allow user overrides\n },\n children: imgElement,\n });\n }\n }\n\n // Regular rendering without asChild\n if (variant === 'blur') {\n return (\n <div className=\"rt-variant-blur\" style={{ position: 'relative', display: 'inline-block' }}>\n {/* Background blurred image */}\n <img\n data-radius={radius}\n loading={loading}\n style={{\n ...style,\n position: 'absolute',\n top: '8px',\n left: '0',\n }}\n className={classNames(\n 'rt-reset',\n 'rt-Image',\n 'rt-Image--blur',\n 'rt-Image--blur-bg',\n className,\n )}\n alt=\"\"\n src={src}\n {...imgProps}\n />\n {/* Foreground image */}\n <img\n data-radius={radius}\n loading={loading}\n style={{ ...style, position: 'relative', zIndex: 1 }}\n className={classNames('rt-reset', 'rt-Image', 'rt-Image--blur', className)}\n alt={alt}\n src={src}\n {...imgProps}\n ref={forwardedRef}\n />\n </div>\n );\n }\n\n return imgElement;\n});\n\nImage.displayName = 'Image';\n\nexport { Image };\nexport type { ImageProps };\n"],
5
- "mappings": "aAEA,UAAYA,MAAW,QACvB,OAAOC,MAAgB,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AGD,EAAO,SAAU,WAAY,OAAQ,CAAE,EACnD,UAAWf,EAAW,WAAY,WAAY,iBAAkBa,CAAS,EACzE,IAAKI,EACL,IAAKC,EACJ,GAAGE,EACJ,IAAKZ,EACP,CACF,CAEJ,CAAC,EAGMT,EAAM,aAAauB,EAAO,CAC/B,UAAWtB,EAAWsB,EAAM,OAAO,UAAW,UAAU,EACxD,MAAO,CACL,eAAgB,OAChB,MAAO,UACP,OAAQ,OACR,WAAY,OACZ,QAAS,EACT,KAAM,UACN,OAAQ,UACR,GAAGA,EAAM,OAAO,KAClB,EACA,SAAUD,CACZ,CAAC,CAEL,CAGA,OAAIZ,IAAY,OAEZV,EAAA,cAAC,OAAI,UAAU,kBAAkB,MAAO,CAAE,SAAU,WAAY,QAAS,cAAe,GAEtFA,EAAA,cAAC,OACC,cAAae,EACb,QAASE,EACT,MAAO,CACL,GAAGD,EACH,SAAU,WACV,IAAK,MACL,KAAM,GACR,EACA,UAAWf,EACT,WACA,WACA,iBACA,oBACAa,CACF,EACA,IAAI,GACJ,IAAKK,EACJ,GAAGE,EACN,EAEArB,EAAA,cAAC,OACC,cAAae,EACb,QAASE,EACT,MAAO,CAAE,GAAGD,EAAO,SAAU,WAAY,OAAQ,CAAE,EACnD,UAAWf,EAAW,WAAY,WAAY,iBAAkBa,CAAS,EACzE,IAAKI,EACL,IAAKC,EACJ,GAAGE,EACJ,IAAKZ,EACP,CACF,EAIGa,CACT,CAAC,EAEDf,EAAM,YAAc",
6
- "names": ["React", "classNames", "imagePropDefs", "extractProps", "marginPropDefs", "widthPropDefs", "heightPropDefs", "Image", "props", "forwardedRef", "variant", "fit", "children", "asChild", "className", "radius", "style", "loading", "alt", "src", "_children", "imgProps", "imgElement", "child"]
4
+ "sourcesContent": ["'use client';\n\nimport * as React from 'react';\nimport classNames from 'classnames';\n\nimport { imagePropDefs } from './image.props.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { marginPropDefs } from '../props/margin.props.js';\nimport { widthPropDefs } from '../props/width.props.js';\nimport { heightPropDefs } from '../props/height.props.js';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { MarginProps } from '../props/margin.props.js';\nimport type { WidthProps } from '../props/width.props.js';\nimport type { HeightProps } from '../props/height.props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype ImageElement = React.ElementRef<'img'>;\ntype ImageOwnProps = GetPropDefTypes<typeof imagePropDefs> & {\n loading?: 'eager' | 'lazy';\n};\n\ninterface ImageProps\n extends ComponentPropsWithout<'img', RemovedProps | 'color' | 'width' | 'height' | 'alt'>,\n MarginProps,\n WidthProps,\n HeightProps,\n ImageOwnProps {\n /**\n * The alt attribute provides alternative information for an image if a user for some reason cannot view it.\n * Required for accessibility when not using asChild.\n */\n alt?: string;\n}\n\nconst Image = React.forwardRef<ImageElement, ImageProps>((props, forwardedRef) => {\n const { variant = 'surface', fit: _fit = 'cover', children } = props;\n const {\n asChild,\n className,\n radius,\n style,\n loading = 'lazy',\n alt,\n src,\n children: _children, // Extract children to exclude from imgProps\n ...imgProps\n } = extractProps(props, imagePropDefs, marginPropDefs, widthPropDefs, heightPropDefs);\n\n // Create the standard img element\n const imgElement = (\n <img\n data-radius={radius}\n loading={loading}\n style={style}\n className={classNames(\n 'rt-reset',\n 'rt-Image',\n variant === 'blur' && 'rt-Image--blur',\n className,\n )}\n alt={alt}\n src={src}\n {...imgProps}\n ref={forwardedRef}\n />\n );\n\n // Handle asChild - inject img into the child element\n if (asChild && children) {\n const child = React.Children.only(children) as React.ReactElement<any>;\n\n if (variant === 'blur') {\n // For blur variant with asChild\n return React.cloneElement(child, {\n className: classNames(child.props?.className, 'rt-variant-blur'),\n style: {\n position: 'relative',\n display: 'inline-block',\n textDecoration: 'none', // Reset link underlines\n color: 'inherit', // Reset link colors\n border: 'none', // Reset button borders\n background: 'none', // Reset button backgrounds\n padding: 0, // Reset button padding\n font: 'inherit', // Reset button fonts\n cursor: 'pointer', // Ensure interactive cursor\n ...child.props?.style,\n },\n children: (\n <>\n {/* Background blurred image */}\n <img\n data-radius={radius}\n loading={loading}\n style={{\n ...style,\n position: 'absolute',\n top: '8px',\n left: '0',\n }}\n className={classNames(\n 'rt-reset',\n 'rt-Image',\n 'rt-Image--blur',\n 'rt-Image--blur-bg',\n className,\n )}\n alt=\"\"\n src={src}\n {...imgProps}\n />\n {/* Foreground image */}\n <img\n data-radius={radius}\n loading={loading}\n style={{ ...style, position: 'relative', zIndex: 1 }}\n className={classNames('rt-reset', 'rt-Image', 'rt-Image--blur', className)}\n alt={alt}\n src={src}\n {...imgProps}\n ref={forwardedRef}\n />\n </>\n ),\n });\n } else {\n // For surface variant with asChild\n return React.cloneElement(child, {\n className: classNames(child.props?.className, 'rt-Image'),\n style: {\n textDecoration: 'none', // Reset link underlines\n color: 'inherit', // Reset link colors\n border: 'none', // Reset button borders\n background: 'none', // Reset button backgrounds\n padding: 0, // Reset button padding\n font: 'inherit', // Reset button fonts\n cursor: 'pointer', // Ensure interactive cursor\n ...child.props?.style, // Allow user overrides\n },\n children: imgElement,\n });\n }\n }\n\n // Regular rendering without asChild\n if (variant === 'blur') {\n return (\n <div className=\"rt-variant-blur\" style={{ position: 'relative', display: 'inline-block' }}>\n {/* Background blurred image */}\n <img\n data-radius={radius}\n loading={loading}\n style={{\n ...style,\n position: 'absolute',\n top: '8px',\n left: '0',\n }}\n className={classNames(\n 'rt-reset',\n 'rt-Image',\n 'rt-Image--blur',\n 'rt-Image--blur-bg',\n className,\n )}\n alt=\"\"\n src={src}\n {...imgProps}\n />\n {/* Foreground image */}\n <img\n data-radius={radius}\n loading={loading}\n style={{ ...style, position: 'relative', zIndex: 1 }}\n className={classNames('rt-reset', 'rt-Image', 'rt-Image--blur', className)}\n alt={alt}\n src={src}\n {...imgProps}\n ref={forwardedRef}\n />\n </div>\n );\n }\n\n return imgElement;\n});\n\nImage.displayName = 'Image';\n\nexport { Image };\nexport type { ImageProps };\n"],
5
+ "mappings": "aAEA,UAAYA,MA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AASE,EACT,MAAO,CAAE,GAAGD,EAAO,SAAU,WAAY,OAAQ,CAAE,EACnD,UAAWf,EAAW,WAAY,WAAY,iBAAkBa,CAAS,EACzE,IAAKI,EACL,IAAKC,EACJ,GAAGE,EACJ,IAAKZ,EACP,CACF,CAEJ,CAAC,EAGMT,EAAM,aAAauB,EAAO,CAC/B,UAAWtB,EAAWsB,EAAM,OAAO,UAAW,UAAU,EACxD,MAAO,CACL,eAAgB,OAChB,MAAO,UACP,OAAQ,OACR,WAAY,OACZ,QAAS,EACT,KAAM,UACN,OAAQ,UACR,GAAGA,EAAM,OAAO,KAClB,EACA,SAAUD,CACZ,CAAC,CAEL,CAGA,OAAIZ,IAAY,OAEZV,EAAA,cAAC,OAAI,UAAU,kBAAkB,MAAO,CAAE,SAAU,WAAY,QAAS,cAAe,GAEtFA,EAAA,cAAC,OACC,cAAae,EACb,QAASE,EACT,MAAO,CACL,GAAGD,EACH,SAAU,WACV,IAAK,MACL,KAAM,GACR,EACA,UAAWf,EACT,WACA,WACA,iBACA,oBACAa,CACF,EACA,IAAI,GACJ,IAAKK,EACJ,GAAGE,EACN,EAEArB,EAAA,cAAC,OACC,cAAae,EACb,QAASE,EACT,MAAO,CAAE,GAAGD,EAAO,SAAU,WAAY,OAAQ,CAAE,EACnD,UAAWf,EAAW,WAAY,WAAY,iBAAkBa,CAAS,EACzE,IAAKI,EACL,IAAKC,EACJ,GAAGE,EACJ,IAAKZ,EACP,CACF,EAIGa,CACT,CAAC,EAEDf,EAAM,YAAc",
6
+ "names": ["React", "classNames", "imagePropDefs", "extractProps", "marginPropDefs", "widthPropDefs", "heightPropDefs", "Image", "props", "forwardedRef", "variant", "_fit", "children", "asChild", "className", "radius", "style", "loading", "alt", "src", "_children", "imgProps", "imgElement", "child"]
7
7
  }
@@ -59,4 +59,5 @@ export { ToggleButton, type ToggleButtonProps } from './toggle-button.js';
59
59
  export { ToggleIconButton, type ToggleIconButtonProps } from './toggle-icon-button.js';
60
60
  export { Tooltip, type TooltipProps } from './tooltip.js';
61
61
  export { VisuallyHidden, type VisuallyHiddenProps } from './visually-hidden.js';
62
+ export * as Sidebar from './sidebar.js';
62
63
  //# sourceMappingURL=index.d.ts.map