@kushagradhawan/kookie-ui 0.1.6 → 0.1.8

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 (60) hide show
  1. package/components.css +40 -0
  2. package/dist/cjs/components/image.d.ts +21 -0
  3. package/dist/cjs/components/image.d.ts.map +1 -0
  4. package/dist/cjs/components/image.js +2 -0
  5. package/dist/cjs/components/image.js.map +7 -0
  6. package/dist/cjs/components/image.props.d.ts +33 -0
  7. package/dist/cjs/components/image.props.d.ts.map +1 -0
  8. package/dist/cjs/components/image.props.js +2 -0
  9. package/dist/cjs/components/image.props.js.map +7 -0
  10. package/dist/cjs/components/index.d.ts +1 -0
  11. package/dist/cjs/components/index.d.ts.map +1 -1
  12. package/dist/cjs/components/index.js +1 -1
  13. package/dist/cjs/components/index.js.map +3 -3
  14. package/dist/cjs/components/toggle-icon-button.d.ts +20 -19
  15. package/dist/cjs/components/toggle-icon-button.d.ts.map +1 -1
  16. package/dist/cjs/components/toggle-icon-button.js +1 -1
  17. package/dist/cjs/components/toggle-icon-button.js.map +3 -3
  18. package/dist/cjs/props/index.d.ts +2 -0
  19. package/dist/cjs/props/index.d.ts.map +1 -1
  20. package/dist/cjs/props/index.js +1 -1
  21. package/dist/cjs/props/index.js.map +2 -2
  22. package/dist/cjs/props/shadow.props.d.ts +24 -0
  23. package/dist/cjs/props/shadow.props.d.ts.map +1 -0
  24. package/dist/cjs/props/shadow.props.js +2 -0
  25. package/dist/cjs/props/shadow.props.js.map +7 -0
  26. package/dist/esm/components/image.d.ts +21 -0
  27. package/dist/esm/components/image.d.ts.map +1 -0
  28. package/dist/esm/components/image.js +2 -0
  29. package/dist/esm/components/image.js.map +7 -0
  30. package/dist/esm/components/image.props.d.ts +33 -0
  31. package/dist/esm/components/image.props.d.ts.map +1 -0
  32. package/dist/esm/components/image.props.js +2 -0
  33. package/dist/esm/components/image.props.js.map +7 -0
  34. package/dist/esm/components/index.d.ts +1 -0
  35. package/dist/esm/components/index.d.ts.map +1 -1
  36. package/dist/esm/components/index.js +1 -1
  37. package/dist/esm/components/index.js.map +3 -3
  38. package/dist/esm/components/toggle-icon-button.d.ts +20 -19
  39. package/dist/esm/components/toggle-icon-button.d.ts.map +1 -1
  40. package/dist/esm/components/toggle-icon-button.js +1 -1
  41. package/dist/esm/components/toggle-icon-button.js.map +2 -2
  42. package/dist/esm/props/index.d.ts +2 -0
  43. package/dist/esm/props/index.d.ts.map +1 -1
  44. package/dist/esm/props/index.js +1 -1
  45. package/dist/esm/props/index.js.map +2 -2
  46. package/dist/esm/props/shadow.props.d.ts +24 -0
  47. package/dist/esm/props/shadow.props.d.ts.map +1 -0
  48. package/dist/esm/props/shadow.props.js +2 -0
  49. package/dist/esm/props/shadow.props.js.map +7 -0
  50. package/package.json +1 -1
  51. package/src/components/image.css +52 -0
  52. package/src/components/image.props.ts +33 -0
  53. package/src/components/image.tsx +62 -0
  54. package/src/components/index.css +1 -0
  55. package/src/components/index.tsx +1 -0
  56. package/src/components/text.css +1 -0
  57. package/src/components/toggle-icon-button.tsx +34 -61
  58. package/src/props/index.ts +2 -0
  59. package/src/props/shadow.props.ts +30 -0
  60. package/styles.css +40 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/image.props.ts"],
4
+ "sourcesContent": ["import { radiusPropDef } from '../props/radius.prop.js';\nimport { shadowPropDefs } from '../props/shadow.props.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst objectFitValues = ['cover', 'contain', 'fill', 'scale-down', 'none'] as const;\n\nconst imagePropDefs = {\n /**\n * Sets the CSS **object-fit** property.\n * Controls how the image should be resized to fit its container.\n *\n * @example\n * fit=\"cover\"\n * fit=\"contain\"\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit\n */\n fit: {\n type: 'enum',\n className: 'rt-r-fit',\n values: objectFitValues,\n default: 'cover',\n responsive: true,\n },\n ...radiusPropDef,\n ...shadowPropDefs,\n} satisfies {\n fit: PropDef<(typeof objectFitValues)[number]>;\n};\n\nexport { imagePropDefs };\n"],
5
+ "mappings": "AAAA,OAAS,iBAAAA,MAAqB,0BAC9B,OAAS,kBAAAC,MAAsB,2BAI/B,MAAMC,EAAkB,CAAC,QAAS,UAAW,OAAQ,aAAc,MAAM,EAEnEC,EAAgB,CAYpB,IAAK,CACH,KAAM,OACN,UAAW,WACX,OAAQD,EACR,QAAS,QACT,WAAY,EACd,EACA,GAAGF,EACH,GAAGC,CACL",
6
+ "names": ["radiusPropDef", "shadowPropDefs", "objectFitValues", "imagePropDefs"]
7
+ }
@@ -24,6 +24,7 @@ export { Heading, type HeadingProps } from './heading.js';
24
24
  export * as HoverCard from './hover-card.js';
25
25
  export { IconButton, type IconButtonProps } from './icon-button.js';
26
26
  export { type IconProps, ChevronDownIcon, ThickCheckIcon, ThickChevronRightIcon, ThickDividerHorizontalIcon, } from './icons.js';
27
+ export { Image, type ImageProps } from './image.js';
27
28
  export { Inset, type InsetProps } from './inset.js';
28
29
  export { Kbd, type KbdProps } from './kbd.js';
29
30
  export { Link, type LinkProps } from './link.js';
@@ -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,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,GAAG,EAAE,KAAK,QAAQ,EAAE,MAAM,UAAU,CA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AAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,UAAU,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1,2 +1,2 @@
1
- import{AccessibleIcon as e}from"./accessible-icon.js";import*as t from"./alert-dialog.js";import{AspectRatio as s}from"./aspect-ratio.js";import{Avatar as m}from"./avatar.js";import{Badge as f}from"./badge.js";import{Blockquote as P}from"./blockquote.js";import{Box as i}from"./box.js";import{Button as c}from"./button.js";import*as d from"./callout.js";import{Card as C}from"./card.js";import*as g from"./checkbox-cards.js";import*as u from"./checkbox-group.js";import{Checkbox as h}from"./checkbox.js";import{Code as B}from"./code.js";import{Container as b}from"./container.js";import*as A from"./context-menu.js";import*as R from"./data-list.js";import*as v from"./dialog.js";import*as D from"./dropdown-menu.js";import{Em as w}from"./em.js";import{Flex as F}from"./flex.js";import{Grid as q}from"./grid.js";import{Heading as K}from"./heading.js";import*as M from"./hover-card.js";import{IconButton as V}from"./icon-button.js";import{ChevronDownIcon as N,ThickCheckIcon as j,ThickChevronRightIcon as J,ThickDividerHorizontalIcon as O}from"./icons.js";import{Inset as W}from"./inset.js";import{Kbd as Y}from"./kbd.js";import{Link as _}from"./link.js";import*as $ from"./popover.js";import{Portal as ro}from"./portal.js";import{Progress as to}from"./progress.js";import{Quote as so}from"./quote.js";import*as xo from"./radio-cards.js";import*as mo from"./radio-group.js";import{Radio as fo}from"./radio.js";import{Reset as Po}from"./reset.js";import{ScrollArea as io}from"./scroll-area.js";import*as lo from"./segmented-control.js";import{Section as To}from"./section.js";import*as Co from"./select.js";import{Separator as uo}from"./separator.js";import{Skeleton as ho}from"./skeleton.js";import{Slider as Bo}from"./slider.js";import{Slot as bo,Slottable as Ao}from"./slot.js";import{Spinner as vo}from"./spinner.js";import{Strong as Ho}from"./strong.js";import{Switch as Go}from"./switch.js";import*as Fo from"./tab-nav.js";import*as Lo from"./table.js";import*as qo from"./tabs.js";import{TextArea as Ko}from"./text-area.js";import*as Mo from"./text-field.js";import{Text as Vo}from"./text.js";import{ThemePanel as No}from"./theme-panel.js";import{Theme as Jo,ThemeContext as Oo,useThemeContext as Uo}from"./theme.js";import{ToggleButton as Xo}from"./toggle-button.js";import{ToggleIconButton as Zo}from"./toggle-icon-button.js";import{Tooltip as $o}from"./tooltip.js";import{VisuallyHidden as rr}from"./visually-hidden.js";export{e as AccessibleIcon,t as AlertDialog,s as AspectRatio,m as Avatar,f as Badge,P as Blockquote,i as Box,c as Button,d as Callout,C as Card,h as Checkbox,g as CheckboxCards,u as CheckboxGroup,N as ChevronDownIcon,B as Code,b as Container,A as ContextMenu,R as DataList,v as Dialog,D as DropdownMenu,w as Em,F as Flex,q as Grid,K as Heading,M as HoverCard,V as IconButton,W as Inset,Y as Kbd,_ as Link,$ as Popover,ro as Portal,to as Progress,so as Quote,fo as Radio,xo as RadioCards,mo as RadioGroup,Po as Reset,io as ScrollArea,To as Section,lo as SegmentedControl,Co as Select,uo as Separator,ho as Skeleton,Bo as Slider,bo as Slot,Ao as Slottable,vo as Spinner,Ho as Strong,Go as Switch,Fo as TabNav,Lo as Table,qo as Tabs,Vo as Text,Ko as TextArea,Mo as TextField,Jo as Theme,Oo as ThemeContext,No as ThemePanel,j as ThickCheckIcon,J as ThickChevronRightIcon,O as ThickDividerHorizontalIcon,Xo as ToggleButton,Zo as ToggleIconButton,$o as Tooltip,rr as VisuallyHidden,Uo as useThemeContext};
1
+ import{AccessibleIcon as e}from"./accessible-icon.js";import*as t from"./alert-dialog.js";import{AspectRatio as s}from"./aspect-ratio.js";import{Avatar as m}from"./avatar.js";import{Badge as f}from"./badge.js";import{Blockquote as P}from"./blockquote.js";import{Box as i}from"./box.js";import{Button as c}from"./button.js";import*as d from"./callout.js";import{Card as g}from"./card.js";import*as C from"./checkbox-cards.js";import*as u from"./checkbox-group.js";import{Checkbox as h}from"./checkbox.js";import{Code as k}from"./code.js";import{Container as b}from"./container.js";import*as A from"./context-menu.js";import*as R from"./data-list.js";import*as v from"./dialog.js";import*as D from"./dropdown-menu.js";import{Em as w}from"./em.js";import{Flex as F}from"./flex.js";import{Grid as q}from"./grid.js";import{Heading as K}from"./heading.js";import*as M from"./hover-card.js";import{IconButton as V}from"./icon-button.js";import{ChevronDownIcon as N,ThickCheckIcon as j,ThickChevronRightIcon as J,ThickDividerHorizontalIcon as O}from"./icons.js";import{Image as W}from"./image.js";import{Inset as Y}from"./inset.js";import{Kbd as _}from"./kbd.js";import{Link as oo}from"./link.js";import*as ro from"./popover.js";import{Portal as to}from"./portal.js";import{Progress as so}from"./progress.js";import{Quote as mo}from"./quote.js";import*as ao from"./radio-cards.js";import*as fo from"./radio-group.js";import{Radio as Po}from"./radio.js";import{Reset as io}from"./reset.js";import{ScrollArea as co}from"./scroll-area.js";import*as To from"./segmented-control.js";import{Section as Co}from"./section.js";import*as uo from"./select.js";import{Separator as ho}from"./separator.js";import{Skeleton as ko}from"./skeleton.js";import{Slider as bo}from"./slider.js";import{Slot as Ro,Slottable as vo}from"./slot.js";import{Spinner as Ho}from"./spinner.js";import{Strong as Go}from"./strong.js";import{Switch as Lo}from"./switch.js";import*as qo from"./tab-nav.js";import*as Eo from"./table.js";import*as Ko from"./tabs.js";import{TextArea as Qo}from"./text-area.js";import*as Vo from"./text-field.js";import{Text as No}from"./text.js";import{ThemePanel as Jo}from"./theme-panel.js";import{Theme as Uo,ThemeContext as Wo,useThemeContext as Xo}from"./theme.js";import{ToggleButton as Zo}from"./toggle-button.js";import{ToggleIconButton as $o}from"./toggle-icon-button.js";import{Tooltip as rr}from"./tooltip.js";import{VisuallyHidden as tr}from"./visually-hidden.js";export{e as AccessibleIcon,t as AlertDialog,s as AspectRatio,m as Avatar,f as Badge,P as Blockquote,i as Box,c as Button,d as Callout,g as Card,h as Checkbox,C as CheckboxCards,u as CheckboxGroup,N as ChevronDownIcon,k as Code,b as Container,A as ContextMenu,R as DataList,v as Dialog,D as DropdownMenu,w as Em,F as Flex,q as Grid,K as Heading,M as HoverCard,V as IconButton,W as Image,Y as Inset,_ as Kbd,oo as Link,ro as Popover,to as Portal,so as Progress,mo as Quote,Po as Radio,ao as RadioCards,fo as RadioGroup,io as Reset,co as ScrollArea,Co as Section,To as SegmentedControl,uo as Select,ho as Separator,ko as Skeleton,bo as Slider,Ro as Slot,vo as Slottable,Ho as Spinner,Go as Strong,Lo as Switch,qo as TabNav,Eo as Table,Ko as Tabs,No as Text,Qo as TextArea,Vo as TextField,Uo as Theme,Wo as ThemeContext,Jo as ThemePanel,j as ThickCheckIcon,J as ThickChevronRightIcon,O as ThickDividerHorizontalIcon,Zo as ToggleButton,$o as ToggleIconButton,rr as Tooltip,tr as VisuallyHidden,Xo as useThemeContext};
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 { 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": "AAAA,OAAS,kBAAAA,MAAgD,uBACzD,UAAYC,MAAiB,oBAC7B,OAAS,eAAAC,MAA0C,oBACnD,OAAS,UAAAC,MAAgC,cACzC,OAAS,SAAAC,MAA8B,aACvC,OAAS,cAAAC,MAAwC,kBACjD,OAAS,OAAAC,MAA0B,WACnC,OAAS,UAAAC,MAAgC,cACzC,UAAYC,MAAa,eACzB,OAAS,QAAAC,MAA4B,YACrC,UAAYC,MAAmB,sBAC/B,UAAYC,MAAmB,sBAC/B,OAAS,YAAAC,MAAoC,gBAC7C,OAAS,QAAAC,MAA4B,YACrC,OAAS,aAAAC,MAAsC,iBAC/C,UAAYC,MAAiB,oBAC7B,UAAYC,MAAc,iBAC1B,UAAYC,MAAY,cACxB,UAAYC,MAAkB,qBAC9B,OAAS,MAAAC,MAAwB,UACjC,OAAS,QAAAC,MAA4B,YACrC,OAAS,QAAAC,MAA4B,YACrC,OAAS,WAAAC,MAAkC,eAC3C,UAAYC,MAAe,kBAC3B,OAAS,cAAAC,MAAwC,mBACjD,OAEE,mBAAAC,EACA,kBAAAC,EACA,yBAAAC,EACA,8BAAAC,MACK,aACP,OAAS,SAAAC,MAA8B,aACvC,OAAS,OAAAC,MAA0B,WACnC,OAAS,QAAAC,MAA4B,YACrC,UAAYC,MAAa,eACzB,OAAS,UAAAC,OAAgC,cACzC,OAAS,YAAAC,OAAoC,gBAC7C,OAAS,SAAAC,OAA8B,aACvC,UAAYC,OAAgB,mBAC5B,UAAYC,OAAgB,mBAC5B,OAAS,SAAAC,OAA8B,aACvC,OAAS,SAAAC,OAA8B,aACvC,OAAS,cAAAC,OAAwC,mBACjD,UAAYC,OAAsB,yBAClC,OAAS,WAAAC,OAAkC,eAC3C,UAAYC,OAAY,cACxB,OAAS,aAAAC,OAAsC,iBAC/C,OAAS,YAAAC,OAAoC,gBAC7C,OAAS,UAAAC,OAAgC,cACzC,OAAS,QAAAC,GAAM,aAAAC,OAAiB,YAChC,OAAS,WAAAC,OAAkC,eAC3C,OAAS,UAAAC,OAAgC,cACzC,OAAS,UAAAC,OAAgC,cACzC,UAAYC,OAAY,eACxB,UAAYC,OAAW,aACvB,UAAYC,OAAU,YACtB,OAAS,YAAAC,OAAoC,iBAC7C,UAAYC,OAAe,kBAC3B,OAAS,QAAAC,OAA4B,YACrC,OAAS,cAAAC,OAAwC,mBACjD,OAAS,SAAAC,GAAO,gBAAAC,GAA+B,mBAAAC,OAAuB,aACtE,OAAS,gBAAAC,OAA4C,qBACrD,OAAS,oBAAAC,OAAoD,0BAC7D,OAAS,WAAAC,OAAkC,eAC3C,OAAS,kBAAAC,OAAgD",
6
- "names": ["AccessibleIcon", "AlertDialog", "AspectRatio", "Avatar", "Badge", "Blockquote", "Box", "Button", "Callout", "Card", "CheckboxCards", "CheckboxGroup", "Checkbox", "Code", "Container", "ContextMenu", "DataList", "Dialog", "DropdownMenu", "Em", "Flex", "Grid", "Heading", "HoverCard", "IconButton", "ChevronDownIcon", "ThickCheckIcon", "ThickChevronRightIcon", "ThickDividerHorizontalIcon", "Inset", "Kbd", "Link", "Popover", "Portal", "Progress", "Quote", "RadioCards", "RadioGroup", "Radio", "Reset", "ScrollArea", "SegmentedControl", "Section", "Select", "Separator", "Skeleton", "Slider", "Slot", "Slottable", "Spinner", "Strong", "Switch", "TabNav", "Table", "Tabs", "TextArea", "TextField", "Text", "ThemePanel", "Theme", "ThemeContext", "useThemeContext", "ToggleButton", "ToggleIconButton", "Tooltip", "VisuallyHidden"]
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": "AAAA,OAAS,kBAAAA,MAAgD,uBACzD,UAAYC,MAAiB,oBAC7B,OAAS,eAAAC,MAA0C,oBACnD,OAAS,UAAAC,MAAgC,cACzC,OAAS,SAAAC,MAA8B,aACvC,OAAS,cAAAC,MAAwC,kBACjD,OAAS,OAAAC,MAA0B,WACnC,OAAS,UAAAC,MAAgC,cACz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cAAAC,OAAwC,mBACjD,OAAS,SAAAC,GAAO,gBAAAC,GAA+B,mBAAAC,OAAuB,aACtE,OAAS,gBAAAC,OAA4C,qBACrD,OAAS,oBAAAC,OAAoD,0BAC7D,OAAS,WAAAC,OAAkC,eAC3C,OAAS,kBAAAC,OAAgD",
6
+ "names": ["AccessibleIcon", "AlertDialog", "AspectRatio", "Avatar", "Badge", "Blockquote", "Box", "Button", "Callout", "Card", "CheckboxCards", "CheckboxGroup", "Checkbox", "Code", "Container", "ContextMenu", "DataList", "Dialog", "DropdownMenu", "Em", "Flex", "Grid", "Heading", "HoverCard", "IconButton", "ChevronDownIcon", "ThickCheckIcon", "ThickChevronRightIcon", "ThickDividerHorizontalIcon", "Image", "Inset", "Kbd", "Link", "Popover", "Portal", "Progress", "Quote", "RadioCards", "RadioGroup", "Radio", "Reset", "ScrollArea", "SegmentedControl", "Section", "Select", "Separator", "Skeleton", "Slider", "Slot", "Slottable", "Spinner", "Strong", "Switch", "TabNav", "Table", "Tabs", "TextArea", "TextField", "Text", "ThemePanel", "Theme", "ThemeContext", "useThemeContext", "ToggleButton", "ToggleIconButton", "Tooltip", "VisuallyHidden"]
7
7
  }
@@ -1,24 +1,25 @@
1
1
  import * as React from 'react';
2
- type ButtonVariant = 'classic' | 'solid' | 'soft' | 'surface' | 'outline' | 'ghost';
3
- type ButtonSize = '1' | '2' | '3' | '4';
4
- type ButtonColor = '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';
5
- type ButtonRadius = 'none' | 'small' | 'medium' | 'large' | 'full';
6
- interface ToggleIconButtonProps {
7
- pressed?: boolean;
8
- onPressedChange?: (pressed: boolean) => void;
9
- defaultPressed?: boolean;
2
+ import { Toggle } from 'radix-ui';
3
+ import type { BaseButtonProps } from './_internal/base-button.js';
4
+ type ToggleProps = React.ComponentPropsWithoutRef<typeof Toggle.Root>;
5
+ type AccessibilityProps = {
10
6
  'aria-label': string;
11
- variant?: ButtonVariant;
12
- size?: ButtonSize;
13
- color?: ButtonColor;
14
- highContrast?: boolean;
15
- radius?: ButtonRadius;
16
- disabled?: boolean;
17
- loading?: boolean;
18
- className?: string;
19
- children?: React.ReactNode;
7
+ 'aria-labelledby'?: never;
8
+ } | {
9
+ 'aria-label'?: never;
10
+ 'aria-labelledby': string;
11
+ } | {
12
+ 'aria-label'?: never;
13
+ 'aria-labelledby'?: never;
14
+ children: React.ReactNode;
15
+ };
16
+ interface ToggleIconButtonProps extends Omit<BaseButtonProps, 'as'> {
17
+ pressed?: ToggleProps['pressed'];
18
+ onPressedChange?: ToggleProps['onPressedChange'];
19
+ defaultPressed?: ToggleProps['defaultPressed'];
20
20
  }
21
- declare const ToggleIconButton: React.ForwardRefExoticComponent<ToggleIconButtonProps & React.RefAttributes<HTMLButtonElement>>;
21
+ type ToggleIconButtonPropsWithAccessibility = ToggleIconButtonProps & AccessibilityProps;
22
+ declare const ToggleIconButton: React.ForwardRefExoticComponent<ToggleIconButtonPropsWithAccessibility & React.RefAttributes<HTMLButtonElement>>;
22
23
  export { ToggleIconButton };
23
- export type { ToggleIconButtonProps };
24
+ export type { ToggleIconButtonPropsWithAccessibility as ToggleIconButtonProps };
24
25
  //# sourceMappingURL=toggle-icon-button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toggle-icon-button.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-icon-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,KAAK,aAAa,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AACpF,KAAK,UAAU,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AACxC,KAAK,WAAW,GACZ,MAAM,GACN,MAAM,GACN,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,KAAK,GACL,MAAM,GACN,SAAS,GACT,MAAM,GACN,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,OAAO,GACP,MAAM,GACN,MAAM,GACN,KAAK,CAAC;AACV,KAAK,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAEnE,UAAU,qBAAqB;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAID,QAAA,MAAM,gBAAgB,iGAarB,CAAC;AAGF,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,YAAY,EAAE,qBAAqB,EAAE,CAAC"}
1
+ {"version":3,"file":"toggle-icon-button.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-icon-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAKlE,KAAK,WAAW,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;AAGtE,KAAK,kBAAkB,GACnB;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,KAAK,CAAA;CAAE,GACnD;IAAE,YAAY,CAAC,EAAE,KAAK,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAE,GACnD;IAAE,YAAY,CAAC,EAAE,KAAK,CAAC;IAAC,iBAAiB,CAAC,EAAE,KAAK,CAAC;IAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAAC;AAGnF,UAAU,qBAAsB,SAAQ,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC;IACjE,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,eAAe,CAAC,EAAE,WAAW,CAAC,iBAAiB,CAAC,CAAC;IACjD,cAAc,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;CAChD;AAGD,KAAK,sCAAsC,GAAG,qBAAqB,GAAG,kBAAkB,CAAC;AAEzF,QAAA,MAAM,gBAAgB,kHAcpB,CAAC;AAGH,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,YAAY,EAAE,sCAAsC,IAAI,qBAAqB,EAAE,CAAC"}
@@ -1,2 +1,2 @@
1
- import*as o from"react";import{Toggle as s}from"radix-ui";import{IconButton as i}from"./icon-button.js";const e=o.forwardRef(({pressed:t,onPressedChange:n,defaultPressed:r,...a},l)=>o.createElement(s.Root,{pressed:t,onPressedChange:n,defaultPressed:r,asChild:!0},o.createElement(i,{...a,ref:l})));e.displayName="ToggleIconButton";export{e as ToggleIconButton};
1
+ import*as e from"react";import{Toggle as a}from"radix-ui";import{IconButton as g}from"./icon-button.js";import"./_internal/base-button.js";const o=e.forwardRef(({pressed:t,onPressedChange:s,defaultPressed:r,...n},l)=>e.createElement(a.Root,{pressed:t,onPressedChange:s,defaultPressed:r,asChild:!0},e.createElement(g,{...n,ref:l})));o.displayName="ToggleIconButton";export{o as ToggleIconButton};
2
2
  //# sourceMappingURL=toggle-icon-button.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/toggle-icon-button.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nimport { Toggle } from 'radix-ui';\nimport { IconButton } from './icon-button.js';\nimport type { BaseButtonProps } from './_internal/base-button.js';\n\n// Extract the specific types we need\ntype ButtonVariant = 'classic' | 'solid' | 'soft' | 'surface' | 'outline' | 'ghost';\ntype ButtonSize = '1' | '2' | '3' | '4';\ntype ButtonColor =\n | 'gray'\n | 'gold'\n | 'bronze'\n | 'brown'\n | 'yellow'\n | 'amber'\n | 'orange'\n | 'tomato'\n | 'red'\n | 'ruby'\n | 'crimson'\n | 'pink'\n | 'plum'\n | 'purple'\n | 'violet'\n | 'iris'\n | 'indigo'\n | 'blue'\n | 'cyan'\n | 'teal'\n | 'jade'\n | 'green'\n | 'grass'\n | 'lime'\n | 'mint'\n | 'sky';\ntype ButtonRadius = 'none' | 'small' | 'medium' | 'large' | 'full';\n\ninterface ToggleIconButtonProps {\n pressed?: boolean;\n onPressedChange?: (pressed: boolean) => void;\n defaultPressed?: boolean;\n 'aria-label': string;\n variant?: ButtonVariant;\n size?: ButtonSize;\n color?: ButtonColor;\n highContrast?: boolean;\n radius?: ButtonRadius;\n disabled?: boolean;\n loading?: boolean;\n className?: string;\n children?: React.ReactNode;\n}\n\ntype ToggleIconButtonElement = React.ElementRef<typeof IconButton>;\n\nconst ToggleIconButton = React.forwardRef<ToggleIconButtonElement, ToggleIconButtonProps>(\n ({ pressed, onPressedChange, defaultPressed, ...iconButtonProps }, forwardedRef) => {\n return (\n <Toggle.Root\n pressed={pressed}\n onPressedChange={onPressedChange}\n defaultPressed={defaultPressed}\n asChild\n >\n <IconButton {...iconButtonProps} ref={forwardedRef} />\n </Toggle.Root>\n );\n },\n);\nToggleIconButton.displayName = 'ToggleIconButton';\n\nexport { ToggleIconButton };\nexport type { ToggleIconButtonProps };\n"],
5
- "mappings": "AAAA,UAAYA,MAAW,QACvB,OAAS,UAAAC,MAAc,WACvB,OAAS,cAAAC,MAAkB,mBAqD3B,MAAMC,EAAmBH,EAAM,WAC7B,CAAC,CAAE,QAAAI,EAAS,gBAAAC,EAAiB,eAAAC,EAAgB,GAAGC,CAAgB,EAAGC,IAE/DR,EAAA,cAACC,EAAO,KAAP,CACC,QAASG,EACT,gBAAiBC,EACjB,eAAgBC,EAChB,QAAO,IAEPN,EAAA,cAACE,EAAA,CAAY,GAAGK,EAAiB,IAAKC,EAAc,CACtD,CAGN,EACAL,EAAiB,YAAc",
4
+ "sourcesContent": ["import * as React from 'react';\nimport { Toggle } from 'radix-ui';\nimport { IconButton } from './icon-button.js';\nimport { BaseButton } from './_internal/base-button.js';\nimport type { BaseButtonProps } from './_internal/base-button.js';\n\ntype ToggleIconButtonElement = React.ElementRef<typeof BaseButton>;\n\n// Extract toggle-specific props from Radix Toggle\ntype ToggleProps = React.ComponentPropsWithoutRef<typeof Toggle.Root>;\n\n// Required accessibility props for icon buttons (same as IconButton)\ntype AccessibilityProps =\n | { 'aria-label': string; 'aria-labelledby'?: never }\n | { 'aria-label'?: never; 'aria-labelledby': string }\n | { 'aria-label'?: never; 'aria-labelledby'?: never; children: React.ReactNode };\n\n// Combine BaseButton props with Toggle-specific props and accessibility requirements\ninterface ToggleIconButtonProps extends Omit<BaseButtonProps, 'as'> {\n pressed?: ToggleProps['pressed'];\n onPressedChange?: ToggleProps['onPressedChange'];\n defaultPressed?: ToggleProps['defaultPressed'];\n}\n\n// Intersection with accessibility props\ntype ToggleIconButtonPropsWithAccessibility = ToggleIconButtonProps & AccessibilityProps;\n\nconst ToggleIconButton = React.forwardRef<\n ToggleIconButtonElement,\n ToggleIconButtonPropsWithAccessibility\n>(({ pressed, onPressedChange, defaultPressed, ...iconButtonProps }, forwardedRef) => {\n return (\n <Toggle.Root\n pressed={pressed}\n onPressedChange={onPressedChange}\n defaultPressed={defaultPressed}\n asChild\n >\n <IconButton {...iconButtonProps} ref={forwardedRef} />\n </Toggle.Root>\n );\n});\nToggleIconButton.displayName = 'ToggleIconButton';\n\nexport { ToggleIconButton };\nexport type { ToggleIconButtonPropsWithAccessibility as ToggleIconButtonProps };\n"],
5
+ "mappings": "AAAA,UAAYA,MAAW,QACvB,OAAS,UAAAC,MAAc,WACvB,OAAS,cAAAC,MAAkB,mBAC3B,MAA2B,6BAwB3B,MAAMC,EAAmBH,EAAM,WAG7B,CAAC,CAAE,QAAAI,EAAS,gBAAAC,EAAiB,eAAAC,EAAgB,GAAGC,CAAgB,EAAGC,IAEjER,EAAA,cAACC,EAAO,KAAP,CACC,QAASG,EACT,gBAAiBC,EACjB,eAAgBC,EAChB,QAAO,IAEPN,EAAA,cAACE,EAAA,CAAY,GAAGK,EAAiB,IAAKC,EAAc,CACtD,CAEH,EACDL,EAAiB,YAAc",
6
6
  "names": ["React", "Toggle", "IconButton", "ToggleIconButton", "pressed", "onPressedChange", "defaultPressed", "iconButtonProps", "forwardedRef"]
7
7
  }
@@ -9,6 +9,7 @@ export * from './leading-trim.prop.js';
9
9
  export * from './margin.props.js';
10
10
  export * from './padding.props.js';
11
11
  export * from './radius.prop.js';
12
+ export * from './shadow.props.js';
12
13
  export * from './text-align.prop.js';
13
14
  export * from './text-wrap.prop.js';
14
15
  export * from './truncate.prop.js';
@@ -37,6 +38,7 @@ export * from '../components/grid.props.js';
37
38
  export * from '../components/heading.props.js';
38
39
  export * from '../components/hover-card.props.js';
39
40
  export * from '../components/icon-button.props.js';
41
+ export * from '../components/image.props.js';
40
42
  export * from '../components/inset.props.js';
41
43
  export * from '../components/kbd.props.js';
42
44
  export * from '../components/link.props.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/props/index.ts"],"names":[],"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}
@@ -1,2 +1,2 @@
1
- export*from"./prop-def.js";export*from"./as-child.prop.js";export*from"./color.prop.js";export*from"./gap.props.js";export*from"./height.props.js";export*from"./high-contrast.prop.js";export*from"./layout.props.js";export*from"./leading-trim.prop.js";export*from"./margin.props.js";export*from"./padding.props.js";export*from"./radius.prop.js";export*from"./text-align.prop.js";export*from"./text-wrap.prop.js";export*from"./truncate.prop.js";export*from"./weight.prop.js";export*from"./width.props.js";export*from"../components/alert-dialog.props.js";export*from"../components/avatar.props.js";export*from"../components/badge.props.js";export*from"../components/blockquote.props.js";export*from"../components/box.props.js";export*from"../components/button.props.js";export*from"../components/callout.props.js";export*from"../components/card.props.js";export*from"../components/checkbox-cards.props.js";export*from"../components/checkbox-group.props.js";export*from"../components/checkbox.props.js";export*from"../components/code.props.js";export*from"../components/container.props.js";export*from"../components/context-menu.props.js";export*from"../components/data-list.props.js";export*from"../components/dialog.props.js";export*from"../components/dropdown-menu.props.js";export*from"../components/em.props.js";export*from"../components/flex.props.js";export*from"../components/grid.props.js";export*from"../components/heading.props.js";export*from"../components/hover-card.props.js";export*from"../components/icon-button.props.js";export*from"../components/inset.props.js";export*from"../components/kbd.props.js";export*from"../components/link.props.js";export*from"../components/popover.props.js";export*from"../components/progress.props.js";export*from"../components/quote.props.js";export*from"../components/radio.props.js";export*from"../components/radio-cards.props.js";export*from"../components/radio-group.props.js";export*from"../components/scroll-area.props.js";export*from"../components/section.props.js";export*from"../components/segmented-control.props.js";export*from"../components/select.props.js";export*from"../components/separator.props.js";export*from"../components/skeleton.props.js";export*from"../components/slider.props.js";export*from"../components/spinner.props.js";export*from"../components/strong.props.js";export*from"../components/switch.props.js";export*from"../components/tab-nav.props.js";export*from"../components/table.props.js";export*from"../components/tabs.props.js";export*from"../components/text-area.props.js";export*from"../components/text-field.props.js";export*from"../components/text.props.js";export*from"../components/theme.props.js";export*from"../components/tooltip.props.js";
1
+ export*from"./prop-def.js";export*from"./as-child.prop.js";export*from"./color.prop.js";export*from"./gap.props.js";export*from"./height.props.js";export*from"./high-contrast.prop.js";export*from"./layout.props.js";export*from"./leading-trim.prop.js";export*from"./margin.props.js";export*from"./padding.props.js";export*from"./radius.prop.js";export*from"./shadow.props.js";export*from"./text-align.prop.js";export*from"./text-wrap.prop.js";export*from"./truncate.prop.js";export*from"./weight.prop.js";export*from"./width.props.js";export*from"../components/alert-dialog.props.js";export*from"../components/avatar.props.js";export*from"../components/badge.props.js";export*from"../components/blockquote.props.js";export*from"../components/box.props.js";export*from"../components/button.props.js";export*from"../components/callout.props.js";export*from"../components/card.props.js";export*from"../components/checkbox-cards.props.js";export*from"../components/checkbox-group.props.js";export*from"../components/checkbox.props.js";export*from"../components/code.props.js";export*from"../components/container.props.js";export*from"../components/context-menu.props.js";export*from"../components/data-list.props.js";export*from"../components/dialog.props.js";export*from"../components/dropdown-menu.props.js";export*from"../components/em.props.js";export*from"../components/flex.props.js";export*from"../components/grid.props.js";export*from"../components/heading.props.js";export*from"../components/hover-card.props.js";export*from"../components/icon-button.props.js";export*from"../components/image.props.js";export*from"../components/inset.props.js";export*from"../components/kbd.props.js";export*from"../components/link.props.js";export*from"../components/popover.props.js";export*from"../components/progress.props.js";export*from"../components/quote.props.js";export*from"../components/radio.props.js";export*from"../components/radio-cards.props.js";export*from"../components/radio-group.props.js";export*from"../components/scroll-area.props.js";export*from"../components/section.props.js";export*from"../components/segmented-control.props.js";export*from"../components/select.props.js";export*from"../components/separator.props.js";export*from"../components/skeleton.props.js";export*from"../components/slider.props.js";export*from"../components/spinner.props.js";export*from"../components/strong.props.js";export*from"../components/switch.props.js";export*from"../components/tab-nav.props.js";export*from"../components/table.props.js";export*from"../components/tabs.props.js";export*from"../components/text-area.props.js";export*from"../components/text-field.props.js";export*from"../components/text.props.js";export*from"../components/theme.props.js";export*from"../components/tooltip.props.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/props/index.ts"],
4
- "sourcesContent": ["// Prop definition\nexport * from './prop-def.js';\n\n// Individual props\nexport * from './as-child.prop.js';\nexport * from './color.prop.js';\nexport * from './gap.props.js';\nexport * from './height.props.js';\nexport * from './high-contrast.prop.js';\nexport * from './layout.props.js';\nexport * from './leading-trim.prop.js';\nexport * from './margin.props.js';\nexport * from './padding.props.js';\nexport * from './radius.prop.js';\nexport * from './text-align.prop.js';\nexport * from './text-wrap.prop.js';\nexport * from './truncate.prop.js';\nexport * from './weight.prop.js';\nexport * from './width.props.js';\n\n// Component props\nexport * from '../components/alert-dialog.props.js';\nexport * from '../components/avatar.props.js';\nexport * from '../components/badge.props.js';\nexport * from '../components/blockquote.props.js';\nexport * from '../components/box.props.js';\nexport * from '../components/button.props.js';\nexport * from '../components/callout.props.js';\nexport * from '../components/card.props.js';\nexport * from '../components/checkbox-cards.props.js';\nexport * from '../components/checkbox-group.props.js';\nexport * from '../components/checkbox.props.js';\nexport * from '../components/code.props.js';\nexport * from '../components/container.props.js';\nexport * from '../components/context-menu.props.js';\nexport * from '../components/data-list.props.js';\nexport * from '../components/dialog.props.js';\nexport * from '../components/dropdown-menu.props.js';\nexport * from '../components/em.props.js';\nexport * from '../components/flex.props.js';\nexport * from '../components/grid.props.js';\nexport * from '../components/heading.props.js';\nexport * from '../components/hover-card.props.js';\nexport * from '../components/icon-button.props.js';\nexport * from '../components/inset.props.js';\nexport * from '../components/kbd.props.js';\nexport * from '../components/link.props.js';\nexport * from '../components/popover.props.js';\nexport * from '../components/progress.props.js';\nexport * from '../components/quote.props.js';\nexport * from '../components/radio.props.js';\nexport * from '../components/radio-cards.props.js';\nexport * from '../components/radio-group.props.js';\nexport * from '../components/scroll-area.props.js';\nexport * from '../components/section.props.js';\nexport * from '../components/segmented-control.props.js';\nexport * from '../components/select.props.js';\nexport * from '../components/separator.props.js';\nexport * from '../components/skeleton.props.js';\nexport * from '../components/slider.props.js';\nexport * from '../components/spinner.props.js';\nexport * from '../components/strong.props.js';\nexport * from '../components/switch.props.js';\nexport * from '../components/tab-nav.props.js';\nexport * from '../components/table.props.js';\nexport * from '../components/tabs.props.js';\nexport * from '../components/text-area.props.js';\nexport * from '../components/text-field.props.js';\nexport * from '../components/text.props.js';\nexport * from '../components/theme.props.js';\nexport * from '../components/tooltip.props.js';\n"],
5
- "mappings": "AACA,WAAc,gBAGd,WAAc,qBACd,WAAc,kBACd,WAAc,iBACd,WAAc,oBACd,WAAc,0BACd,WAAc,oBACd,WAAc,yBACd,WAAc,oBACd,WAAc,qBACd,WAAc,mBACd,WAAc,uBACd,WAAc,sBACd,WAAc,qBACd,WAAc,mBACd,WAAc,mBAGd,WAAc,sCACd,WAAc,gCACd,WAAc,+BACd,WAAc,oCACd,WAAc,6BACd,WAAc,gCACd,WAAc,iCACd,WAAc,8BACd,WAAc,wCACd,WAAc,wCACd,WAAc,kCACd,WAAc,8BACd,WAAc,mCACd,WAAc,sCACd,WAAc,mCACd,WAAc,gCACd,WAAc,uCACd,WAAc,4BACd,WAAc,8BACd,WAAc,8BACd,WAAc,iCACd,WAAc,oCACd,WAAc,qCACd,WAAc,+BACd,WAAc,6BACd,WAAc,8BACd,WAAc,iCACd,WAAc,kCACd,WAAc,+BACd,WAAc,+BACd,WAAc,qCACd,WAAc,qCACd,WAAc,qCACd,WAAc,iCACd,WAAc,2CACd,WAAc,gCACd,WAAc,mCACd,WAAc,kCACd,WAAc,gCACd,WAAc,iCACd,WAAc,gCACd,WAAc,gCACd,WAAc,iCACd,WAAc,+BACd,WAAc,8BACd,WAAc,mCACd,WAAc,oCACd,WAAc,8BACd,WAAc,+BACd,WAAc",
4
+ "sourcesContent": ["// Prop definition\nexport * from './prop-def.js';\n\n// Individual props\nexport * from './as-child.prop.js';\nexport * from './color.prop.js';\nexport * from './gap.props.js';\nexport * from './height.props.js';\nexport * from './high-contrast.prop.js';\nexport * from './layout.props.js';\nexport * from './leading-trim.prop.js';\nexport * from './margin.props.js';\nexport * from './padding.props.js';\nexport * from './radius.prop.js';\nexport * from './shadow.props.js';\nexport * from './text-align.prop.js';\nexport * from './text-wrap.prop.js';\nexport * from './truncate.prop.js';\nexport * from './weight.prop.js';\nexport * from './width.props.js';\n\n// Component props\nexport * from '../components/alert-dialog.props.js';\nexport * from '../components/avatar.props.js';\nexport * from '../components/badge.props.js';\nexport * from '../components/blockquote.props.js';\nexport * from '../components/box.props.js';\nexport * from '../components/button.props.js';\nexport * from '../components/callout.props.js';\nexport * from '../components/card.props.js';\nexport * from '../components/checkbox-cards.props.js';\nexport * from '../components/checkbox-group.props.js';\nexport * from '../components/checkbox.props.js';\nexport * from '../components/code.props.js';\nexport * from '../components/container.props.js';\nexport * from '../components/context-menu.props.js';\nexport * from '../components/data-list.props.js';\nexport * from '../components/dialog.props.js';\nexport * from '../components/dropdown-menu.props.js';\nexport * from '../components/em.props.js';\nexport * from '../components/flex.props.js';\nexport * from '../components/grid.props.js';\nexport * from '../components/heading.props.js';\nexport * from '../components/hover-card.props.js';\nexport * from '../components/icon-button.props.js';\nexport * from '../components/image.props.js';\nexport * from '../components/inset.props.js';\nexport * from '../components/kbd.props.js';\nexport * from '../components/link.props.js';\nexport * from '../components/popover.props.js';\nexport * from '../components/progress.props.js';\nexport * from '../components/quote.props.js';\nexport * from '../components/radio.props.js';\nexport * from '../components/radio-cards.props.js';\nexport * from '../components/radio-group.props.js';\nexport * from '../components/scroll-area.props.js';\nexport * from '../components/section.props.js';\nexport * from '../components/segmented-control.props.js';\nexport * from '../components/select.props.js';\nexport * from '../components/separator.props.js';\nexport * from '../components/skeleton.props.js';\nexport * from '../components/slider.props.js';\nexport * from '../components/spinner.props.js';\nexport * from '../components/strong.props.js';\nexport * from '../components/switch.props.js';\nexport * from '../components/tab-nav.props.js';\nexport * from '../components/table.props.js';\nexport * from '../components/tabs.props.js';\nexport * from '../components/text-area.props.js';\nexport * from '../components/text-field.props.js';\nexport * from '../components/text.props.js';\nexport * from '../components/theme.props.js';\nexport * from '../components/tooltip.props.js';\n"],
5
+ "mappings": "AACA,WAAc,gBAGd,WAAc,qBACd,WAAc,kBACd,WAAc,iBACd,WAAc,oBACd,WAAc,0BACd,WAAc,oBACd,WAAc,yBACd,WAAc,oBACd,WAAc,qBACd,WAAc,mBACd,WAAc,oBACd,WAAc,uBACd,WAAc,sBACd,WAAc,qBACd,WAAc,mBACd,WAAc,mBAGd,WAAc,sCACd,WAAc,gCACd,WAAc,+BACd,WAAc,oCACd,WAAc,6BACd,WAAc,gCACd,WAAc,iCACd,WAAc,8BACd,WAAc,wCACd,WAAc,wCACd,WAAc,kCACd,WAAc,8BACd,WAAc,mCACd,WAAc,sCACd,WAAc,mCACd,WAAc,gCACd,WAAc,uCACd,WAAc,4BACd,WAAc,8BACd,WAAc,8BACd,WAAc,iCACd,WAAc,oCACd,WAAc,qCACd,WAAc,+BACd,WAAc,+BACd,WAAc,6BACd,WAAc,8BACd,WAAc,iCACd,WAAc,kCACd,WAAc,+BACd,WAAc,+BACd,WAAc,qCACd,WAAc,qCACd,WAAc,qCACd,WAAc,iCACd,WAAc,2CACd,WAAc,gCACd,WAAc,mCACd,WAAc,kCACd,WAAc,gCACd,WAAc,iCACd,WAAc,gCACd,WAAc,gCACd,WAAc,iCACd,WAAc,+BACd,WAAc,8BACd,WAAc,mCACd,WAAc,oCACd,WAAc,8BACd,WAAc,+BACd,WAAc",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,24 @@
1
+ import type { GetPropDefTypes } from './prop-def.js';
2
+ declare const shadowPropDefs: {
3
+ /**
4
+ * Sets the CSS **box-shadow** property using design system shadow tokens.
5
+ * Supports shadow scale values and responsive objects.
6
+ *
7
+ * @example
8
+ * shadow="3"
9
+ * shadow={{ sm: '2', lg: '4' }}
10
+ *
11
+ * @link
12
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow
13
+ */
14
+ shadow: {
15
+ type: "enum";
16
+ className: string;
17
+ values: readonly ["1", "2", "3", "4", "5", "6"];
18
+ responsive: true;
19
+ };
20
+ };
21
+ type ShadowProps = GetPropDefTypes<typeof shadowPropDefs>;
22
+ export { shadowPropDefs };
23
+ export type { ShadowProps };
24
+ //# sourceMappingURL=shadow.props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shadow.props.d.ts","sourceRoot":"","sources":["../../../src/props/shadow.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,eAAe,EAAE,MAAM,eAAe,CAAC;AAI9D,QAAA,MAAM,cAAc;IAClB;;;;;;;;;;OAUG;;;;;;;CASJ,CAAC;AAEF,KAAK,WAAW,GAAG,eAAe,CAAC,OAAO,cAAc,CAAC,CAAC;AAE1D,OAAO,EAAE,cAAc,EAAE,CAAC;AAC1B,YAAY,EAAE,WAAW,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ const e=["1","2","3","4","5","6"],o={shadow:{type:"enum",className:"rt-r-shadow",values:e,responsive:!0}};export{o as shadowPropDefs};
2
+ //# sourceMappingURL=shadow.props.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/props/shadow.props.ts"],
4
+ "sourcesContent": ["import type { PropDef, GetPropDefTypes } from './prop-def.js';\n\nconst shadowValues = ['1', '2', '3', '4', '5', '6'] as const;\n\nconst shadowPropDefs = {\n /**\n * Sets the CSS **box-shadow** property using design system shadow tokens.\n * Supports shadow scale values and responsive objects.\n *\n * @example\n * shadow=\"3\"\n * shadow={{ sm: '2', lg: '4' }}\n *\n * @link\n * https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow\n */\n shadow: {\n type: 'enum',\n className: 'rt-r-shadow',\n values: shadowValues,\n responsive: true,\n },\n} satisfies {\n shadow: PropDef<(typeof shadowValues)[number]>;\n};\n\ntype ShadowProps = GetPropDefTypes<typeof shadowPropDefs>;\n\nexport { shadowPropDefs };\nexport type { ShadowProps };\n"],
5
+ "mappings": "AAEA,MAAMA,EAAe,CAAC,IAAK,IAAK,IAAK,IAAK,IAAK,GAAG,EAE5CC,EAAiB,CAYrB,OAAQ,CACN,KAAM,OACN,UAAW,cACX,OAAQD,EACR,WAAY,EACd,CACF",
6
+ "names": ["shadowValues", "shadowPropDefs"]
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kushagradhawan/kookie-ui",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "A modern React component library with beautiful design tokens and flexible theming",
5
5
  "keywords": [
6
6
  "react",
@@ -0,0 +1,52 @@
1
+ .rt-Image {
2
+ display: block;
3
+ object-fit: var(--object-fit);
4
+ box-shadow: var(--box-shadow);
5
+ border-radius: max(var(--radius-3), var(--radius-full));
6
+ }
7
+
8
+ /* Object fit variants */
9
+ .rt-r-fit-cover {
10
+ --object-fit: cover;
11
+ }
12
+
13
+ .rt-r-fit-contain {
14
+ --object-fit: contain;
15
+ }
16
+
17
+ .rt-r-fit-fill {
18
+ --object-fit: fill;
19
+ }
20
+
21
+ .rt-r-fit-scale-down {
22
+ --object-fit: scale-down;
23
+ }
24
+
25
+ .rt-r-fit-none {
26
+ --object-fit: none;
27
+ }
28
+
29
+ /* Shadow variants */
30
+ .rt-r-shadow-1 {
31
+ --box-shadow: var(--shadow-1);
32
+ }
33
+
34
+ .rt-r-shadow-2 {
35
+ --box-shadow: var(--shadow-2);
36
+ }
37
+
38
+ .rt-r-shadow-3 {
39
+ --box-shadow: var(--shadow-3);
40
+ }
41
+
42
+ .rt-r-shadow-4 {
43
+ --box-shadow: var(--shadow-4);
44
+ }
45
+
46
+ .rt-r-shadow-5 {
47
+ --box-shadow: var(--shadow-5);
48
+ }
49
+
50
+ .rt-r-shadow-6 {
51
+ --box-shadow: var(--shadow-6);
52
+ }
@@ -0,0 +1,33 @@
1
+ import { radiusPropDef } from '../props/radius.prop.js';
2
+ import { shadowPropDefs } from '../props/shadow.props.js';
3
+
4
+ import type { PropDef } from '../props/prop-def.js';
5
+
6
+ const objectFitValues = ['cover', 'contain', 'fill', 'scale-down', 'none'] as const;
7
+
8
+ const imagePropDefs = {
9
+ /**
10
+ * Sets the CSS **object-fit** property.
11
+ * Controls how the image should be resized to fit its container.
12
+ *
13
+ * @example
14
+ * fit="cover"
15
+ * fit="contain"
16
+ *
17
+ * @link
18
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit
19
+ */
20
+ fit: {
21
+ type: 'enum',
22
+ className: 'rt-r-fit',
23
+ values: objectFitValues,
24
+ default: 'cover',
25
+ responsive: true,
26
+ },
27
+ ...radiusPropDef,
28
+ ...shadowPropDefs,
29
+ } satisfies {
30
+ fit: PropDef<(typeof objectFitValues)[number]>;
31
+ };
32
+
33
+ export { imagePropDefs };
@@ -0,0 +1,62 @@
1
+ 'use client';
2
+
3
+ import * as React from 'react';
4
+ import classNames from 'classnames';
5
+
6
+ import { imagePropDefs } from './image.props.js';
7
+ import { extractProps } from '../helpers/extract-props.js';
8
+ import { marginPropDefs } from '../props/margin.props.js';
9
+ import { widthPropDefs } from '../props/width.props.js';
10
+ import { heightPropDefs } from '../props/height.props.js';
11
+
12
+ import type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';
13
+ import type { MarginProps } from '../props/margin.props.js';
14
+ import type { WidthProps } from '../props/width.props.js';
15
+ import type { HeightProps } from '../props/height.props.js';
16
+ import type { GetPropDefTypes } from '../props/prop-def.js';
17
+
18
+ type ImageElement = React.ElementRef<'img'>;
19
+ type ImageOwnProps = GetPropDefTypes<typeof imagePropDefs> & {
20
+ loading?: 'eager' | 'lazy';
21
+ };
22
+
23
+ interface ImageProps
24
+ extends ComponentPropsWithout<'img', RemovedProps | 'color' | 'width' | 'height' | 'alt'>,
25
+ MarginProps,
26
+ WidthProps,
27
+ HeightProps,
28
+ ImageOwnProps {
29
+ /**
30
+ * The alt attribute provides alternative information for an image if a user for some reason cannot view it.
31
+ * Required for accessibility.
32
+ */
33
+ alt: string;
34
+ }
35
+
36
+ const Image = React.forwardRef<ImageElement, ImageProps>((props, forwardedRef) => {
37
+ const {
38
+ className,
39
+ radius,
40
+ style,
41
+ loading = 'lazy',
42
+ alt,
43
+ ...imgProps
44
+ } = extractProps(props, imagePropDefs, marginPropDefs, widthPropDefs, heightPropDefs);
45
+
46
+ return (
47
+ <img
48
+ data-radius={radius}
49
+ loading={loading}
50
+ style={style}
51
+ className={classNames('rt-Image', className)}
52
+ alt={alt}
53
+ {...imgProps}
54
+ ref={forwardedRef}
55
+ />
56
+ );
57
+ });
58
+
59
+ Image.displayName = 'Image';
60
+
61
+ export { Image };
62
+ export type { ImageProps };
@@ -27,6 +27,7 @@
27
27
  @import './heading.css';
28
28
  @import './hover-card.css';
29
29
  @import './icon-button.css';
30
+ @import './image.css';
30
31
  @import './inset.css';
31
32
  @import './kbd.css';
32
33
  @import './link.css';
@@ -30,6 +30,7 @@ export {
30
30
  ThickChevronRightIcon,
31
31
  ThickDividerHorizontalIcon,
32
32
  } from './icons.js';
33
+ export { Image, type ImageProps } from './image.js';
33
34
  export { Inset, type InsetProps } from './inset.js';
34
35
  export { Kbd, type KbdProps } from './kbd.js';
35
36
  export { Link, type LinkProps } from './link.js';
@@ -1,4 +1,5 @@
1
1
  .rt-Text {
2
+ font-family: var(--default-font-family);
2
3
  line-height: var(--line-height, var(--default-line-height));
3
4
  letter-spacing: var(--letter-spacing, inherit);
4
5
 
@@ -1,73 +1,46 @@
1
1
  import * as React from 'react';
2
2
  import { Toggle } from 'radix-ui';
3
3
  import { IconButton } from './icon-button.js';
4
+ import { BaseButton } from './_internal/base-button.js';
4
5
  import type { BaseButtonProps } from './_internal/base-button.js';
5
6
 
6
- // Extract the specific types we need
7
- type ButtonVariant = 'classic' | 'solid' | 'soft' | 'surface' | 'outline' | 'ghost';
8
- type ButtonSize = '1' | '2' | '3' | '4';
9
- type ButtonColor =
10
- | 'gray'
11
- | 'gold'
12
- | 'bronze'
13
- | 'brown'
14
- | 'yellow'
15
- | 'amber'
16
- | 'orange'
17
- | 'tomato'
18
- | 'red'
19
- | 'ruby'
20
- | 'crimson'
21
- | 'pink'
22
- | 'plum'
23
- | 'purple'
24
- | 'violet'
25
- | 'iris'
26
- | 'indigo'
27
- | 'blue'
28
- | 'cyan'
29
- | 'teal'
30
- | 'jade'
31
- | 'green'
32
- | 'grass'
33
- | 'lime'
34
- | 'mint'
35
- | 'sky';
36
- type ButtonRadius = 'none' | 'small' | 'medium' | 'large' | 'full';
7
+ type ToggleIconButtonElement = React.ElementRef<typeof BaseButton>;
37
8
 
38
- interface ToggleIconButtonProps {
39
- pressed?: boolean;
40
- onPressedChange?: (pressed: boolean) => void;
41
- defaultPressed?: boolean;
42
- 'aria-label': string;
43
- variant?: ButtonVariant;
44
- size?: ButtonSize;
45
- color?: ButtonColor;
46
- highContrast?: boolean;
47
- radius?: ButtonRadius;
48
- disabled?: boolean;
49
- loading?: boolean;
50
- className?: string;
51
- children?: React.ReactNode;
9
+ // Extract toggle-specific props from Radix Toggle
10
+ type ToggleProps = React.ComponentPropsWithoutRef<typeof Toggle.Root>;
11
+
12
+ // Required accessibility props for icon buttons (same as IconButton)
13
+ type AccessibilityProps =
14
+ | { 'aria-label': string; 'aria-labelledby'?: never }
15
+ | { 'aria-label'?: never; 'aria-labelledby': string }
16
+ | { 'aria-label'?: never; 'aria-labelledby'?: never; children: React.ReactNode };
17
+
18
+ // Combine BaseButton props with Toggle-specific props and accessibility requirements
19
+ interface ToggleIconButtonProps extends Omit<BaseButtonProps, 'as'> {
20
+ pressed?: ToggleProps['pressed'];
21
+ onPressedChange?: ToggleProps['onPressedChange'];
22
+ defaultPressed?: ToggleProps['defaultPressed'];
52
23
  }
53
24
 
54
- type ToggleIconButtonElement = React.ElementRef<typeof IconButton>;
25
+ // Intersection with accessibility props
26
+ type ToggleIconButtonPropsWithAccessibility = ToggleIconButtonProps & AccessibilityProps;
55
27
 
56
- const ToggleIconButton = React.forwardRef<ToggleIconButtonElement, ToggleIconButtonProps>(
57
- ({ pressed, onPressedChange, defaultPressed, ...iconButtonProps }, forwardedRef) => {
58
- return (
59
- <Toggle.Root
60
- pressed={pressed}
61
- onPressedChange={onPressedChange}
62
- defaultPressed={defaultPressed}
63
- asChild
64
- >
65
- <IconButton {...iconButtonProps} ref={forwardedRef} />
66
- </Toggle.Root>
67
- );
68
- },
69
- );
28
+ const ToggleIconButton = React.forwardRef<
29
+ ToggleIconButtonElement,
30
+ ToggleIconButtonPropsWithAccessibility
31
+ >(({ pressed, onPressedChange, defaultPressed, ...iconButtonProps }, forwardedRef) => {
32
+ return (
33
+ <Toggle.Root
34
+ pressed={pressed}
35
+ onPressedChange={onPressedChange}
36
+ defaultPressed={defaultPressed}
37
+ asChild
38
+ >
39
+ <IconButton {...iconButtonProps} ref={forwardedRef} />
40
+ </Toggle.Root>
41
+ );
42
+ });
70
43
  ToggleIconButton.displayName = 'ToggleIconButton';
71
44
 
72
45
  export { ToggleIconButton };
73
- export type { ToggleIconButtonProps };
46
+ export type { ToggleIconButtonPropsWithAccessibility as ToggleIconButtonProps };