@atom-learning/components 2.47.0 → 2.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/CHANGELOG.md +11 -4
  2. package/dist/components/chip-toggle-group/ChipToggleGroupItem.js +1 -1
  3. package/dist/components/index.d.ts +3 -0
  4. package/dist/components/tile/Tile.d.ts +224 -0
  5. package/dist/components/tile/Tile.js +2 -0
  6. package/dist/components/tile/Tile.js.map +1 -0
  7. package/dist/components/tile/TileGroup.d.ts +227 -0
  8. package/dist/components/tile/TileGroup.js +2 -0
  9. package/dist/components/tile/TileGroup.js.map +1 -0
  10. package/dist/components/tile/TileNoOverflowContainer.d.ts +425 -0
  11. package/dist/components/tile/TileNoOverflowContainer.js +2 -0
  12. package/dist/components/tile/TileNoOverflowContainer.js.map +1 -0
  13. package/dist/components/tile/index.d.ts +7 -0
  14. package/dist/components/tile/index.js +2 -0
  15. package/dist/components/tile/index.js.map +1 -0
  16. package/dist/components/tile-interactive/TileInteractive.d.ts +868 -0
  17. package/dist/components/tile-interactive/TileInteractive.js +2 -0
  18. package/dist/components/tile-interactive/TileInteractive.js.map +1 -0
  19. package/dist/components/tile-interactive/index.d.ts +1 -0
  20. package/dist/components/tile-toggle-group/TileToggleGroupItem.d.ts +656 -0
  21. package/dist/components/tile-toggle-group/TileToggleGroupItem.js +2 -0
  22. package/dist/components/tile-toggle-group/TileToggleGroupItem.js.map +1 -0
  23. package/dist/components/tile-toggle-group/TileToggleGroupRoot.d.ts +453 -0
  24. package/dist/components/tile-toggle-group/TileToggleGroupRoot.js +2 -0
  25. package/dist/components/tile-toggle-group/TileToggleGroupRoot.js.map +1 -0
  26. package/dist/components/tile-toggle-group/index.d.ts +7 -0
  27. package/dist/components/tile-toggle-group/index.js +2 -0
  28. package/dist/components/tile-toggle-group/index.js.map +1 -0
  29. package/dist/components/toggle-group/ToggleGroupRoot.js +1 -1
  30. package/dist/docgen.json +1 -1
  31. package/dist/index.cjs.js +1 -1
  32. package/dist/index.cjs.js.map +1 -1
  33. package/dist/index.js +1 -1
  34. package/dist/utilities/no-overflow-container/NoOverflowContainer.d.ts +425 -0
  35. package/dist/utilities/no-overflow-container/NoOverflowContainer.js +2 -0
  36. package/dist/utilities/no-overflow-container/NoOverflowContainer.js.map +1 -0
  37. package/dist/utilities/no-overflow-container/index.d.ts +1 -0
  38. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ import o from"react";import{Tile as n}from"../tile/index.js";import{styled as l}from"../../stitches.js";import{focusVisibleStyleBlock as c}from"../../utilities/style/focus-visible-style-block.js";const d=l(n,{"&[data-disabled]":{opacity:.3,cursor:"not-allowed"},"&:not([data-disabled])":{cursor:"pointer",transform:"translateY(0)",transition:"transform 250ms ease","&::after":{content:"",position:"absolute",inset:0,boxShadow:"$2",opacity:0,transition:"opacity 250ms ease-out",borderRadius:"inherit"},"&:hover":{transform:"translateY(-$space$0)","&::after":{opacity:1}},"&:active":{bg:"$base2"},"&:focus-visible":{...c()}}}),e=o.forwardRef(({onClick:a,href:t,type:r="button",...i},s)=>o.createElement(d,{...i,...t?{asWorkaround:"a",href:t,onClick:void 0}:{asWorkaround:"button",type:r,onClick:a},ref:s}));e.displayName="TileInteractive";export{e as TileInteractive};
2
+ //# sourceMappingURL=TileInteractive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TileInteractive.js","sources":["../../../src/components/tile-interactive/TileInteractive.tsx"],"sourcesContent":["import React from 'react'\n\nimport { Tile } from '~/components/tile'\nimport { styled } from '~/stitches'\nimport { NavigatorActions } from '~/types'\nimport { focusVisibleStyleBlock } from '~/utilities'\n\nconst StyledTileInteractive = styled(Tile, {\n '&[data-disabled]': {\n opacity: 0.3,\n cursor: 'not-allowed'\n },\n '&:not([data-disabled])': {\n cursor: 'pointer',\n transform: 'translateY(0)',\n transition: 'transform 250ms ease',\n '&::after': {\n content: '',\n position: 'absolute',\n inset: 0,\n boxShadow: '$2',\n opacity: 0,\n transition: 'opacity 250ms ease-out',\n borderRadius: 'inherit'\n },\n '&:hover': {\n transform: 'translateY(-$space$0)',\n '&::after': {\n opacity: 1\n }\n },\n '&:active': {\n bg: '$base2'\n },\n '&:focus-visible': {\n ...focusVisibleStyleBlock()\n }\n }\n})\n\ntype TTileInteractiveProps = React.ComponentProps<\n typeof StyledTileInteractive\n> & { type?: string } & NavigatorActions\n\nexport const TileInteractive = React.forwardRef<\n HTMLButtonElement,\n TTileInteractiveProps\n>(({ onClick, href, type = 'button', ...rest }, ref) => {\n const isLink = !!href\n const elementSpecificProps = isLink\n ? {\n asWorkaround: 'a' as React.ElementType,\n href,\n onClick: undefined\n }\n : { asWorkaround: 'button' as React.ElementType, type, onClick }\n\n return <StyledTileInteractive {...rest} {...elementSpecificProps} ref={ref} />\n})\n\nTileInteractive.displayName = 'TileInteractive'\n"],"names":["StyledTileInteractive","styled","Tile","focusVisibleStyleBlock","TileInteractive","React","onClick","href","type","rest","ref"],"mappings":"oMAOA,MAAMA,EAAwBC,EAAOC,EAAM,CACzC,mBAAoB,CAClB,QAAS,GACT,OAAQ,aACV,EACA,yBAA0B,CACxB,OAAQ,UACR,UAAW,gBACX,WAAY,uBACZ,WAAY,CACV,QAAS,GACT,SAAU,WACV,MAAO,EACP,UAAW,KACX,QAAS,EACT,WAAY,yBACZ,aAAc,SAChB,EACA,UAAW,CACT,UAAW,wBACX,WAAY,CACV,QAAS,CACX,CACF,EACA,WAAY,CACV,GAAI,QACN,EACA,kBAAmB,CACjB,GAAGC,EACL,CAAA,CACF,CACF,CAAC,EAMYC,EAAkBC,EAAM,WAGnC,CAAC,CAAE,QAAAC,EAAS,KAAAC,EAAM,KAAAC,EAAO,YAAaC,CAAK,EAAGC,IAUvCL,EAAA,cAACL,EAAA,CAAuB,GAAGS,EAAO,GATxBF,EAEb,CACE,aAAc,IACd,KAAAA,EACA,QAAS,MACX,EACA,CAAE,aAAc,SAA+B,KAAAC,EAAM,QAAAF,CAAQ,EAEC,IAAKI,CAAK,CAAA,CAC7E,EAEDN,EAAgB,YAAc"}
@@ -0,0 +1 @@
1
+ export { TileInteractive } from './TileInteractive';