@atom-learning/components 3.27.0-beta.5 → 3.27.1

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 (85) hide show
  1. package/CHANGELOG.md +208 -0
  2. package/dist/components/accordion/AccordionTrigger.d.ts +1 -1
  3. package/dist/components/accordion/AccordionTrigger.js +1 -1
  4. package/dist/components/accordion/AccordionTrigger.js.map +1 -1
  5. package/dist/components/action-icon/ActionIcon.js +1 -1
  6. package/dist/components/action-icon/ActionIcon.js.map +1 -1
  7. package/dist/components/banner/banner-regular/BannerRegular.d.ts +0 -1
  8. package/dist/components/banner/banner-regular/BannerRegularActions.js +1 -1
  9. package/dist/components/banner/banner-slim/BannerSlim.d.ts +0 -1
  10. package/dist/components/button/Button.js +1 -1
  11. package/dist/components/button/Button.js.map +1 -1
  12. package/dist/components/calendar/Day.js +1 -1
  13. package/dist/components/calendar/Day.js.map +1 -1
  14. package/dist/components/create-password-field/CreatePasswordField.js +1 -1
  15. package/dist/components/data-table/DataTable.d.ts +44 -9
  16. package/dist/components/data-table/DataTableTable.js +1 -1
  17. package/dist/components/data-table/DataTableTable.js.map +1 -1
  18. package/dist/components/dropdown-menu/DropdownMenu.d.ts +1 -2
  19. package/dist/components/dropdown-menu/DropdownMenuLinkItem.d.ts +1 -2
  20. package/dist/components/dropdown-menu/DropdownMenuLinkItem.js +1 -1
  21. package/dist/components/dropdown-menu/DropdownMenuLinkItem.js.map +1 -1
  22. package/dist/components/empty-state/EmptyState.context.d.ts +8 -0
  23. package/dist/components/empty-state/EmptyState.context.js +2 -0
  24. package/dist/components/empty-state/EmptyState.context.js.map +1 -0
  25. package/dist/components/empty-state/EmptyState.d.ts +374 -738
  26. package/dist/components/empty-state/EmptyState.js +1 -1
  27. package/dist/components/empty-state/EmptyState.js.map +1 -1
  28. package/dist/components/empty-state/EmptyStateBody.d.ts +9 -4
  29. package/dist/components/empty-state/EmptyStateBody.js +1 -1
  30. package/dist/components/empty-state/EmptyStateBody.js.map +1 -1
  31. package/dist/components/empty-state/EmptyStateImage.d.ts +1 -2
  32. package/dist/components/empty-state/EmptyStateImage.js +1 -1
  33. package/dist/components/empty-state/EmptyStateImage.js.map +1 -1
  34. package/dist/components/empty-state/EmptyStateTitle.d.ts +7 -1
  35. package/dist/components/empty-state/EmptyStateTitle.js +1 -1
  36. package/dist/components/empty-state/EmptyStateTitle.js.map +1 -1
  37. package/dist/components/form/Form.js +1 -1
  38. package/dist/components/index.d.ts +1 -1
  39. package/dist/components/input/Input.d.ts +1504 -7
  40. package/dist/components/input/Input.js +1 -1
  41. package/dist/components/input/Input.js.map +1 -1
  42. package/dist/components/input/index.d.ts +1 -1
  43. package/dist/components/link/Link.js +1 -1
  44. package/dist/components/link/Link.js.map +1 -1
  45. package/dist/components/navigation/NavigationMenuLink.js +1 -1
  46. package/dist/components/navigation/NavigationMenuLink.js.map +1 -1
  47. package/dist/components/navigation-menu-vertical/NavigationMenuVertical.d.ts +1 -1
  48. package/dist/components/navigation-menu-vertical/NavigationMenuVerticalLink.d.ts +2 -2
  49. package/dist/components/navigation-menu-vertical/NavigationMenuVerticalLink.js +1 -1
  50. package/dist/components/navigation-menu-vertical/NavigationMenuVerticalLink.js.map +1 -1
  51. package/dist/components/side-bar/SideBar.d.ts +360 -364
  52. package/dist/components/side-bar/SideBarComponents.d.ts +8 -10
  53. package/dist/components/side-bar/SideBarComponents.js +1 -1
  54. package/dist/components/side-bar/SideBarComponents.js.map +1 -1
  55. package/dist/components/stepper/Stepper.js +1 -1
  56. package/dist/components/table/Table.d.ts +6 -2
  57. package/dist/components/table/Table.js +1 -1
  58. package/dist/components/table/Table.js.map +1 -1
  59. package/dist/components/table/TableStickyColumnsContainer.d.ts +3 -1
  60. package/dist/components/table/TableStickyColumnsContainer.js +1 -1
  61. package/dist/components/table/TableStickyColumnsContainer.js.map +1 -1
  62. package/dist/components/table/useStickyColumnsCss.d.ts +6 -1
  63. package/dist/components/table/useStickyColumnsCss.js +1 -1
  64. package/dist/components/table/useStickyColumnsCss.js.map +1 -1
  65. package/dist/components/tile-interactive/TileInteractive.d.ts +3 -1
  66. package/dist/components/tile-interactive/TileInteractive.js +1 -1
  67. package/dist/components/tile-interactive/TileInteractive.js.map +1 -1
  68. package/dist/components/tile-toggle-group/TileToggleGroupItem.d.ts +2 -0
  69. package/dist/components/top-bar/TopBar.d.ts +360 -364
  70. package/dist/components/top-bar/TopBarBrand.d.ts +1 -2
  71. package/dist/components/top-bar/TopBarBrand.js +1 -1
  72. package/dist/components/top-bar/TopBarBrand.js.map +1 -1
  73. package/dist/docgen.json +1 -1
  74. package/dist/index.cjs.js +1 -1
  75. package/dist/index.cjs.js.map +1 -1
  76. package/dist/index.d.ts +0 -1
  77. package/dist/index.js +1 -1
  78. package/dist/types/navigatorActions.types.d.ts +0 -1
  79. package/dist/utilities/uri/index.d.ts +0 -2
  80. package/dist/utilities/uri/index.js +1 -1
  81. package/dist/utilities/uri/index.js.map +1 -1
  82. package/package.json +1 -1
  83. package/dist/context/router/index.d.ts +0 -11
  84. package/dist/context/router/index.js +0 -2
  85. package/dist/context/router/index.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import*as t from"react";import{Flex as a}from"../flex/Flex.js";import{styled as n}from"../../stitches.js";import{EmptyStateBody as i}from"./EmptyStateBody.js";import{EmptyStateImage as p}from"./EmptyStateImage.js";import{EmptyStateTitle as o}from"./EmptyStateTitle.js";const y=n(a,{flexDirection:"column",alignItems:"center",textAlign:"center","& > *:last-child":{mb:0},variants:{size:{xs:{p:"$2"},sm:{p:"$3"},md:{p:"$4"},lg:{p:"$5"},xl:{p:"$6"}}}}),r=({size:m="sm",children:l,...s})=>t.createElement(y,{size:m,...s},t.Children.map(l,e=>t.isValidElement(e)&&(e.type===p||e.type===o||e.type===i)?t.cloneElement(e,{...e.props,size:m}):e)),c=Object.assign(r,{Image:p,Title:o,Body:i});r.displayName="EmptyState";export{c as EmptyState};
1
+ import*as e from"react";import{Flex as i}from"../flex/Flex.js";import{styled as o}from"../../stitches.js";import{EmptyStateProvider as p}from"./EmptyState.context.js";import{EmptyStateBody as a}from"./EmptyStateBody.js";import{EmptyStateImage as s}from"./EmptyStateImage.js";import{EmptyStateTitle as l}from"./EmptyStateTitle.js";const n=o(i,{flexDirection:"column",alignItems:"center",textAlign:"center","& > *:last-child":{mb:0},variants:{size:{xs:{p:"$2"},sm:{p:"$3"},md:{p:"$4"},lg:{p:"$5"},xl:{p:"$6"}}}}),m=({size:t="sm",...r})=>e.createElement(p,{size:t},e.createElement(n,{size:t,...r})),y=Object.assign(m,{Image:s,Title:l,Body:a});m.displayName="EmptyState";export{y as EmptyState};
2
2
  //# sourceMappingURL=EmptyState.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EmptyState.js","sources":["../../../src/components/empty-state/EmptyState.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { Flex } from '~/components/flex'\nimport { styled } from '~/stitches'\n\nimport { EmptyStateBody } from './EmptyStateBody'\nimport { EmptyStateImage } from './EmptyStateImage'\nimport { EmptyStateTitle } from './EmptyStateTitle'\n\nconst EmptyStateContainer = styled(Flex, {\n flexDirection: 'column',\n alignItems: 'center',\n textAlign: 'center',\n '& > *:last-child': {\n mb: 0\n },\n variants: {\n size: {\n xs: {\n p: '$2'\n },\n sm: {\n p: '$3'\n },\n md: {\n p: '$4'\n },\n lg: {\n p: '$5'\n },\n xl: {\n p: '$6'\n }\n }\n }\n})\n\ntype EmptyStateProps = React.ComponentProps<typeof EmptyStateContainer>\n\nconst EmptyStateComponent = ({\n size = 'sm',\n children,\n ...props\n}: EmptyStateProps) => (\n <EmptyStateContainer size={size} {...props}>\n {React.Children.map(children, (child) => {\n if (!React.isValidElement(child)) return child\n\n if (\n child.type === EmptyStateImage ||\n child.type === EmptyStateTitle ||\n child.type === EmptyStateBody\n ) {\n return React.cloneElement(child, { ...child.props, size })\n }\n\n return child\n })}\n </EmptyStateContainer>\n)\n\nexport const EmptyState = Object.assign(EmptyStateComponent, {\n Image: EmptyStateImage,\n Title: EmptyStateTitle,\n Body: EmptyStateBody\n})\n\nEmptyStateComponent.displayName = 'EmptyState'\n"],"names":["EmptyStateContainer","styled","Flex","EmptyStateComponent","size","children","props","React","child","EmptyStateImage","EmptyStateTitle","EmptyStateBody","EmptyState"],"mappings":"6QASA,MAAMA,EAAsBC,EAAOC,EAAM,CACvC,cAAe,SACf,WAAY,SACZ,UAAW,SACX,mBAAoB,CAClB,GAAI,CACN,EACA,SAAU,CACR,KAAM,CACJ,GAAI,CACF,EAAG,IACL,EACA,GAAI,CACF,EAAG,IACL,EACA,GAAI,CACF,EAAG,IACL,EACA,GAAI,CACF,EAAG,IACL,EACA,GAAI,CACF,EAAG,IACL,CACF,CACF,CACF,CAAC,EAIKC,EAAsB,CAAC,CAC3B,KAAAC,EAAO,KACP,SAAAC,KACGC,CACL,IACEC,EAAA,cAACP,EAAA,CAAoB,KAAMI,EAAO,GAAGE,CAAAA,EAClCC,EAAM,SAAS,IAAIF,EAAWG,GACxBD,EAAM,eAAeC,CAAK,IAG7BA,EAAM,OAASC,GACfD,EAAM,OAASE,GACfF,EAAM,OAASG,GAERJ,EAAM,aAAaC,EAAO,CAAE,GAAGA,EAAM,MAAO,KAAAJ,CAAK,CAAC,EAPlBI,CAW1C,CACH,EAGWI,EAAa,OAAO,OAAOT,EAAqB,CAC3D,MAAOM,EACP,MAAOC,EACP,KAAMC,CACR,CAAC,EAEDR,EAAoB,YAAc"}
1
+ {"version":3,"file":"EmptyState.js","sources":["../../../src/components/empty-state/EmptyState.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { Flex } from '~/components/flex'\nimport { styled } from '~/stitches'\n\nimport { EmptyStateProvider } from './EmptyState.context'\nimport { EmptyStateBody } from './EmptyStateBody'\nimport { EmptyStateImage } from './EmptyStateImage'\nimport { EmptyStateTitle } from './EmptyStateTitle'\n\nconst EmptyStateContainer = styled(Flex, {\n flexDirection: 'column',\n alignItems: 'center',\n textAlign: 'center',\n '& > *:last-child': {\n mb: 0\n },\n variants: {\n size: {\n xs: {\n p: '$2'\n },\n sm: {\n p: '$3'\n },\n md: {\n p: '$4'\n },\n lg: {\n p: '$5'\n },\n xl: {\n p: '$6'\n }\n }\n }\n})\n\nexport type EmptyStateProps = React.ComponentProps<typeof EmptyStateContainer>\n\nconst EmptyStateComponent = ({ size = 'sm', ...rest }: EmptyStateProps) => (\n <EmptyStateProvider size={size}>\n <EmptyStateContainer size={size} {...rest} />\n </EmptyStateProvider>\n)\n\nexport const EmptyState = Object.assign(EmptyStateComponent, {\n Image: EmptyStateImage,\n Title: EmptyStateTitle,\n Body: EmptyStateBody\n})\n\nEmptyStateComponent.displayName = 'EmptyState'\n"],"names":["EmptyStateContainer","styled","Flex","EmptyStateComponent","size","rest","React","EmptyStateProvider","EmptyState","EmptyStateImage","EmptyStateTitle","EmptyStateBody"],"mappings":"0UAUA,MAAMA,EAAsBC,EAAOC,EAAM,CACvC,cAAe,SACf,WAAY,SACZ,UAAW,SACX,mBAAoB,CAClB,GAAI,CACN,EACA,SAAU,CACR,KAAM,CACJ,GAAI,CACF,EAAG,IACL,EACA,GAAI,CACF,EAAG,IACL,EACA,GAAI,CACF,EAAG,IACL,EACA,GAAI,CACF,EAAG,IACL,EACA,GAAI,CACF,EAAG,IACL,CACF,CACF,CACF,CAAC,EAIKC,EAAsB,CAAC,CAAE,KAAAC,EAAO,QAASC,CAAK,IAClDC,EAAA,cAACC,EAAA,CAAmB,KAAMH,CAAAA,EACxBE,EAAA,cAACN,EAAA,CAAoB,KAAMI,EAAO,GAAGC,CAAAA,CAAM,CAC7C,EAGWG,EAAa,OAAO,OAAOL,EAAqB,CAC3D,MAAOM,EACP,MAAOC,EACP,KAAMC,CACR,CAAC,EAEDR,EAAoB,YAAc"}
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
2
- export declare const EmptyStateBody: import("@stitches/react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<Omit<Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "key" | keyof import("react").HTMLAttributes<HTMLParagraphElement>> & {
3
- ref?: ((instance: HTMLParagraphElement | null) => void) | import("react").RefObject<HTMLParagraphElement> | null | undefined;
1
+ import * as React from 'react';
2
+ declare const StyledEmptyStateBody: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<Omit<Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "key" | keyof React.HTMLAttributes<HTMLParagraphElement>> & {
3
+ ref?: ((instance: HTMLParagraphElement | null) => void) | React.RefObject<HTMLParagraphElement> | null | undefined;
4
4
  }, "size" | "css" | "noCapsize"> & import("@stitches/react/types/styled-component").TransformProps<{
5
5
  size?: "sm" | "md" | "lg" | "xl" | "xs" | undefined;
6
6
  noCapsize?: boolean | "true" | undefined;
@@ -373,7 +373,7 @@ export declare const EmptyStateBody: import("@stitches/react/types/styled-compon
373
373
  };
374
374
  }> | undefined;
375
375
  }, "as"> & {
376
- as?: import("react").ElementType<any> | import("react").ComponentType<{}> | undefined;
376
+ as?: React.ElementType<any> | React.ComponentType<{}> | undefined;
377
377
  }>, {
378
378
  size?: "sm" | "md" | "lg" | "xl" | "xs" | undefined;
379
379
  }, {
@@ -743,3 +743,8 @@ export declare const EmptyStateBody: import("@stitches/react/types/styled-compon
743
743
  marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
744
744
  };
745
745
  }>>;
746
+ declare type EmptyStateBodyProps = React.ComponentProps<typeof StyledEmptyStateBody> & {
747
+ as?: React.ComponentType | React.ElementType;
748
+ };
749
+ export declare const EmptyStateBody: (props: EmptyStateBodyProps) => JSX.Element;
750
+ export {};
@@ -1,2 +1,2 @@
1
- import{Text as t}from"../text/Text.js";import{styled as m}from"../../stitches.js";const o=m(t,{color:"$tonal400",fontWeight:"400",variants:{size:{xs:{fontSize:"$sm",mb:"$4"},sm:{fontSize:"$sm",mb:"$4"},md:{fontSize:"$sm",mb:"$4"},lg:{fontSize:"$md",mb:"calc($4 + $2)"},xl:{fontSize:"$md",mb:"calc($4 + $2)"}}}});export{o as EmptyStateBody};
1
+ import*as t from"react";import{Text as m}from"../text/Text.js";import{styled as s}from"../../stitches.js";import{EmptyStateContext as n}from"./EmptyState.context.js";const i=s(m,{color:"$tonal400",fontWeight:"400",variants:{size:{xs:{fontSize:"$sm",mb:"$4"},sm:{fontSize:"$sm",mb:"$4"},md:{fontSize:"$sm",mb:"$4"},lg:{fontSize:"$md",mb:"calc($4 + $2)"},xl:{fontSize:"$md",mb:"calc($4 + $2)"}}}}),r=e=>{const{size:o}=t.useContext(n);return t.createElement(i,{size:o,...e})};export{r as EmptyStateBody};
2
2
  //# sourceMappingURL=EmptyStateBody.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EmptyStateBody.js","sources":["../../../src/components/empty-state/EmptyStateBody.tsx"],"sourcesContent":["import { Text } from '~/components/text'\nimport { styled } from '~/stitches'\n\nexport const EmptyStateBody = styled(Text, {\n color: '$tonal400',\n fontWeight: '400',\n variants: {\n size: {\n xs: {\n fontSize: '$sm',\n mb: '$4'\n },\n sm: {\n fontSize: '$sm',\n mb: '$4'\n },\n md: {\n fontSize: '$sm',\n mb: '$4'\n },\n lg: {\n fontSize: '$md',\n mb: 'calc($4 + $2)'\n },\n xl: {\n fontSize: '$md',\n mb: 'calc($4 + $2)'\n }\n }\n }\n})\n"],"names":["EmptyStateBody","styled","Text"],"mappings":"kFAGa,MAAAA,EAAiBC,EAAOC,EAAM,CACzC,MAAO,YACP,WAAY,MACZ,SAAU,CACR,KAAM,CACJ,GAAI,CACF,SAAU,MACV,GAAI,IACN,EACA,GAAI,CACF,SAAU,MACV,GAAI,IACN,EACA,GAAI,CACF,SAAU,MACV,GAAI,IACN,EACA,GAAI,CACF,SAAU,MACV,GAAI,eACN,EACA,GAAI,CACF,SAAU,MACV,GAAI,eACN,CACF,CACF,CACF,CAAC"}
1
+ {"version":3,"file":"EmptyStateBody.js","sources":["../../../src/components/empty-state/EmptyStateBody.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { Text } from '~/components/text'\nimport { styled } from '~/stitches'\n\nimport { EmptyStateContext } from './EmptyState.context'\n\nconst StyledEmptyStateBody = styled(Text, {\n color: '$tonal400',\n fontWeight: '400',\n variants: {\n size: {\n xs: {\n fontSize: '$sm',\n mb: '$4'\n },\n sm: {\n fontSize: '$sm',\n mb: '$4'\n },\n md: {\n fontSize: '$sm',\n mb: '$4'\n },\n lg: {\n fontSize: '$md',\n mb: 'calc($4 + $2)'\n },\n xl: {\n fontSize: '$md',\n mb: 'calc($4 + $2)'\n }\n }\n }\n})\n\ntype EmptyStateBodyProps = React.ComponentProps<typeof StyledEmptyStateBody> & {\n as?: React.ComponentType | React.ElementType\n}\n\nexport const EmptyStateBody = (props: EmptyStateBodyProps) => {\n const { size } = React.useContext(EmptyStateContext)\n return <StyledEmptyStateBody size={size} {...props} />\n}\n"],"names":["StyledEmptyStateBody","styled","Text","EmptyStateBody","props","size","React","EmptyStateContext"],"mappings":"sKAOA,MAAMA,EAAuBC,EAAOC,EAAM,CACxC,MAAO,YACP,WAAY,MACZ,SAAU,CACR,KAAM,CACJ,GAAI,CACF,SAAU,MACV,GAAI,IACN,EACA,GAAI,CACF,SAAU,MACV,GAAI,IACN,EACA,GAAI,CACF,SAAU,MACV,GAAI,IACN,EACA,GAAI,CACF,SAAU,MACV,GAAI,eACN,EACA,GAAI,CACF,SAAU,MACV,GAAI,eACN,CACF,CACF,CACF,CAAC,EAMYC,EAAkBC,GAA+B,CAC5D,KAAM,CAAE,KAAAC,CAAK,EAAIC,EAAM,WAAWC,CAAiB,EACnD,OAAOD,EAAA,cAACN,EAAA,CAAqB,KAAMK,EAAO,GAAGD,EAAO,CACtD"}
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import { Image } from '../../components/image';
3
2
  declare const StyledEmptyStateImage: import("@stitches/react/types/styled-component").StyledComponent<{
4
3
  (props: Omit<Pick<Omit<Pick<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "key" | keyof React.ImgHTMLAttributes<HTMLImageElement>> & {
5
4
  ref?: ((instance: HTMLImageElement | null) => void) | React.RefObject<HTMLImageElement> | null | undefined;
@@ -746,6 +745,6 @@ declare const StyledEmptyStateImage: import("@stitches/react/types/styled-compon
746
745
  marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
747
746
  };
748
747
  }>>;
749
- declare type EmptyStateImageProps = React.ComponentProps<typeof StyledEmptyStateImage> & React.ComponentProps<typeof Image>;
748
+ declare type EmptyStateImageProps = React.ComponentProps<typeof StyledEmptyStateImage>;
750
749
  export declare const EmptyStateImage: (props: EmptyStateImageProps) => JSX.Element;
751
750
  export {};
@@ -1,2 +1,2 @@
1
- import t from"react";import{Image as x}from"../image/Image.js";import{styled as a}from"../../stitches.js";const e=a(x,{variants:{size:{xs:{maxWidth:"56px",maxHeight:"32px",mb:"$4"},sm:{maxWidth:"84px",maxHeight:"48px",mb:"$4"},md:{maxWidth:"126px",maxHeight:"72px",mb:"$4"},lg:{maxWidth:"190px",maxHeight:"142px",mb:"calc($4 + $2)"},xl:{maxWidth:"285px",maxHeight:"213px",mb:"calc($4 + $2)"}}}}),p=m=>t.createElement(e,{...m});export{p as EmptyStateImage};
1
+ import t from"react";import{Image as x}from"../image/Image.js";import{styled as a}from"../../stitches.js";import{EmptyStateContext as i}from"./EmptyState.context.js";const p=a(x,{variants:{size:{xs:{maxWidth:"56px",maxHeight:"32px",mb:"$4"},sm:{maxWidth:"84px",maxHeight:"48px",mb:"$4"},md:{maxWidth:"126px",maxHeight:"72px",mb:"$4"},lg:{maxWidth:"190px",maxHeight:"142px",mb:"calc($4 + $2)"},xl:{maxWidth:"285px",maxHeight:"213px",mb:"calc($4 + $2)"}}}}),o=m=>{const{size:e}=t.useContext(i);return t.createElement(p,{size:e,...m})};export{o as EmptyStateImage};
2
2
  //# sourceMappingURL=EmptyStateImage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EmptyStateImage.js","sources":["../../../src/components/empty-state/EmptyStateImage.tsx"],"sourcesContent":["import React from 'react'\n\nimport { Image } from '~/components/image'\nimport { styled } from '~/stitches'\n\nconst StyledEmptyStateImage = styled(Image, {\n variants: {\n size: {\n xs: {\n maxWidth: '56px',\n maxHeight: '32px',\n mb: '$4'\n },\n sm: {\n maxWidth: '84px',\n maxHeight: '48px',\n mb: '$4'\n },\n md: {\n maxWidth: '126px',\n maxHeight: '72px',\n mb: '$4'\n },\n lg: {\n maxWidth: '190px',\n maxHeight: '142px',\n mb: 'calc($4 + $2)'\n },\n xl: {\n maxWidth: '285px',\n maxHeight: '213px',\n mb: 'calc($4 + $2)'\n }\n }\n }\n})\n\ntype EmptyStateImageProps = React.ComponentProps<typeof StyledEmptyStateImage> &\n React.ComponentProps<typeof Image>\n\nexport const EmptyStateImage = (props: EmptyStateImageProps) => (\n <StyledEmptyStateImage {...props} />\n)\n"],"names":["StyledEmptyStateImage","styled","Image","EmptyStateImage","props","React"],"mappings":"0GAKA,MAAMA,EAAwBC,EAAOC,EAAO,CAC1C,SAAU,CACR,KAAM,CACJ,GAAI,CACF,SAAU,OACV,UAAW,OACX,GAAI,IACN,EACA,GAAI,CACF,SAAU,OACV,UAAW,OACX,GAAI,IACN,EACA,GAAI,CACF,SAAU,QACV,UAAW,OACX,GAAI,IACN,EACA,GAAI,CACF,SAAU,QACV,UAAW,QACX,GAAI,eACN,EACA,GAAI,CACF,SAAU,QACV,UAAW,QACX,GAAI,eACN,CACF,CACF,CACF,CAAC,EAKYC,EAAmBC,GAC9BC,EAAA,cAACL,EAAA,CAAuB,GAAGI,CAAO,CAAA"}
1
+ {"version":3,"file":"EmptyStateImage.js","sources":["../../../src/components/empty-state/EmptyStateImage.tsx"],"sourcesContent":["import React from 'react'\n\nimport { Image } from '~/components/image'\nimport { styled } from '~/stitches'\n\nimport { EmptyStateContext } from './EmptyState.context'\n\nconst StyledEmptyStateImage = styled(Image, {\n variants: {\n size: {\n xs: {\n maxWidth: '56px',\n maxHeight: '32px',\n mb: '$4'\n },\n sm: {\n maxWidth: '84px',\n maxHeight: '48px',\n mb: '$4'\n },\n md: {\n maxWidth: '126px',\n maxHeight: '72px',\n mb: '$4'\n },\n lg: {\n maxWidth: '190px',\n maxHeight: '142px',\n mb: 'calc($4 + $2)'\n },\n xl: {\n maxWidth: '285px',\n maxHeight: '213px',\n mb: 'calc($4 + $2)'\n }\n }\n }\n})\n\ntype EmptyStateImageProps = React.ComponentProps<typeof StyledEmptyStateImage>\n\nexport const EmptyStateImage = (props: EmptyStateImageProps) => {\n const { size } = React.useContext(EmptyStateContext)\n return <StyledEmptyStateImage size={size} {...props} />\n}\n"],"names":["StyledEmptyStateImage","styled","Image","EmptyStateImage","props","size","React","EmptyStateContext"],"mappings":"sKAOA,MAAMA,EAAwBC,EAAOC,EAAO,CAC1C,SAAU,CACR,KAAM,CACJ,GAAI,CACF,SAAU,OACV,UAAW,OACX,GAAI,IACN,EACA,GAAI,CACF,SAAU,OACV,UAAW,OACX,GAAI,IACN,EACA,GAAI,CACF,SAAU,QACV,UAAW,OACX,GAAI,IACN,EACA,GAAI,CACF,SAAU,QACV,UAAW,QACX,GAAI,eACN,EACA,GAAI,CACF,SAAU,QACV,UAAW,QACX,GAAI,eACN,CACF,CACF,CACF,CAAC,EAIYC,EAAmBC,GAAgC,CAC9D,KAAM,CAAE,KAAAC,CAAK,EAAIC,EAAM,WAAWC,CAAiB,EACnD,OAAOD,EAAA,cAACN,EAAA,CAAsB,KAAMK,EAAO,GAAGD,CAAAA,CAAO,CACvD"}
@@ -1,4 +1,5 @@
1
- export declare const EmptyStateTitle: import("@stitches/react/types/styled-component").StyledComponent<"h2", {
1
+ import * as React from 'react';
2
+ declare const StyledEmptyStateTitle: import("@stitches/react/types/styled-component").StyledComponent<"h2", {
2
3
  size?: "sm" | "md" | "lg" | "xl" | "xs" | undefined;
3
4
  }, {
4
5
  sm: string;
@@ -367,3 +368,8 @@ export declare const EmptyStateTitle: import("@stitches/react/types/styled-compo
367
368
  marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
368
369
  };
369
370
  }>>;
371
+ declare type EmptyStateTitleProps = React.ComponentProps<typeof StyledEmptyStateTitle> & {
372
+ as?: React.ComponentType | React.ElementType;
373
+ };
374
+ export declare const EmptyStateTitle: (props: EmptyStateTitleProps) => JSX.Element;
375
+ export {};
@@ -1,2 +1,2 @@
1
- import{styled as t}from"../../stitches.js";const m=t("h2",{color:"$tonal400",fontFamily:"$body",fontWeight:"600",m:0,variants:{size:{xs:{fontSize:"$md",mb:"$3"},sm:{fontSize:"$md",mb:"$3"},md:{fontSize:"$md",mb:"$3"},lg:{fontSize:"$lg",mb:"$4"},xl:{fontSize:"$lg",mb:"$4"}}}});export{m as EmptyStateTitle};
1
+ import*as t from"react";import{styled as m}from"../../stitches.js";import{EmptyStateContext as i}from"./EmptyState.context.js";const n=m("h2",{color:"$tonal400",fontFamily:"$body",fontWeight:"600",m:0,variants:{size:{xs:{fontSize:"$md",mb:"$3"},sm:{fontSize:"$md",mb:"$3"},md:{fontSize:"$md",mb:"$3"},lg:{fontSize:"$lg",mb:"$4"},xl:{fontSize:"$lg",mb:"$4"}}}}),r=o=>{const{size:e}=t.useContext(i);return t.createElement(n,{size:e,...o})};export{r as EmptyStateTitle};
2
2
  //# sourceMappingURL=EmptyStateTitle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EmptyStateTitle.js","sources":["../../../src/components/empty-state/EmptyStateTitle.tsx"],"sourcesContent":["import { styled } from '~/stitches'\n\nexport const EmptyStateTitle = styled('h2', {\n color: '$tonal400',\n fontFamily: '$body',\n fontWeight: '600',\n m: 0,\n variants: {\n size: {\n xs: {\n fontSize: '$md',\n mb: '$3'\n },\n sm: {\n fontSize: '$md',\n mb: '$3'\n },\n md: {\n fontSize: '$md',\n mb: '$3'\n },\n lg: {\n fontSize: '$lg',\n mb: '$4'\n },\n xl: {\n fontSize: '$lg',\n mb: '$4'\n }\n }\n }\n})\n"],"names":["EmptyStateTitle","styled"],"mappings":"2CAEa,MAAAA,EAAkBC,EAAO,KAAM,CAC1C,MAAO,YACP,WAAY,QACZ,WAAY,MACZ,EAAG,EACH,SAAU,CACR,KAAM,CACJ,GAAI,CACF,SAAU,MACV,GAAI,IACN,EACA,GAAI,CACF,SAAU,MACV,GAAI,IACN,EACA,GAAI,CACF,SAAU,MACV,GAAI,IACN,EACA,GAAI,CACF,SAAU,MACV,GAAI,IACN,EACA,GAAI,CACF,SAAU,MACV,GAAI,IACN,CACF,CACF,CACF,CAAC"}
1
+ {"version":3,"file":"EmptyStateTitle.js","sources":["../../../src/components/empty-state/EmptyStateTitle.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled } from '~/stitches'\n\nimport { EmptyStateContext } from './EmptyState.context'\n\nconst StyledEmptyStateTitle = styled('h2', {\n color: '$tonal400',\n fontFamily: '$body',\n fontWeight: '600',\n m: 0,\n variants: {\n size: {\n xs: {\n fontSize: '$md',\n mb: '$3'\n },\n sm: {\n fontSize: '$md',\n mb: '$3'\n },\n md: {\n fontSize: '$md',\n mb: '$3'\n },\n lg: {\n fontSize: '$lg',\n mb: '$4'\n },\n xl: {\n fontSize: '$lg',\n mb: '$4'\n }\n }\n }\n})\n\ntype EmptyStateTitleProps = React.ComponentProps<\n typeof StyledEmptyStateTitle\n> & {\n as?: React.ComponentType | React.ElementType\n}\n\nexport const EmptyStateTitle = (props: EmptyStateTitleProps) => {\n const { size } = React.useContext(EmptyStateContext)\n return <StyledEmptyStateTitle size={size} {...props} />\n}\n"],"names":["StyledEmptyStateTitle","styled","EmptyStateTitle","props","size","React","EmptyStateContext"],"mappings":"+HAMA,MAAMA,EAAwBC,EAAO,KAAM,CACzC,MAAO,YACP,WAAY,QACZ,WAAY,MACZ,EAAG,EACH,SAAU,CACR,KAAM,CACJ,GAAI,CACF,SAAU,MACV,GAAI,IACN,EACA,GAAI,CACF,SAAU,MACV,GAAI,IACN,EACA,GAAI,CACF,SAAU,MACV,GAAI,IACN,EACA,GAAI,CACF,SAAU,MACV,GAAI,IACN,EACA,GAAI,CACF,SAAU,MACV,GAAI,IACN,CACF,CACF,CACF,CAAC,EAQYC,EAAmBC,GAAgC,CAC9D,KAAM,CAAE,KAAAC,CAAK,EAAIC,EAAM,WAAWC,CAAiB,EACnD,OAAOD,EAAA,cAACL,EAAA,CAAsB,KAAMI,EAAO,GAAGD,EAAO,CACvD"}
@@ -1,2 +1,2 @@
1
- import w from"invariant";import*as m from"react";import{useForm as S,FormProvider as E}from"react-hook-form";import g from"react-hook-form-persist";import{styled as F}from"../../stitches.js";import{StorageEnum as V}from"./Form.types.js";const v=F("form",{}),y=({persist:r,watch:o,setValue:n,children:l})=>{const{id:i,...e}=r;let t={...e,storage:e.storage===V.LOCAL?window.localStorage:window.sessionStorage};if(e.exclude){const{exclude:h,...a}=t,u=o(),c=Object.keys(u).filter(s=>{var d;if(!((d=e.exclude)!=null&&d.includes(s)))return s});t={...a,include:c}}return g(i,{watch:o,setValue:n},t),l},b=({formMethods:r,handleSubmit:o,onSubmit:n,onError:l,children:i,...e})=>m.createElement(E,{...r},m.createElement(v,{"aria-label":"form",...e,onSubmit:o(n,l)},i)),p=({children:r,defaultValues:o={},onSubmit:n,onError:l,validationMode:i="onBlur",render:e,persist:t,...h})=>{w(!(r&&e),"`Form` should only be given one of `children` or `render`. When both are provided, `render` will be used and `children` will be ignored.");const a=S({defaultValues:o,mode:i}),{handleSubmit:u,watch:c,setValue:s}=a,d=e?e(a):r,f={formMethods:a,handleSubmit:u,onSubmit:n,onError:l,...h};return t?m.createElement(y,{persist:t,watch:c,setValue:s},m.createElement(b,{...f},d)):m.createElement(b,{...f},d)};p.displayName="Form";export{p as Form};
1
+ import w from"invariant";import*as m from"react";import{useForm as S,FormProvider as E}from"react-hook-form";import g from"react-hook-form-persist";import{styled as F}from"../../stitches.js";import{StorageEnum as V}from"./Form.types.js";const v=F("form",{}),x=({persist:r,watch:o,setValue:n,children:l})=>{const{id:i,...e}=r;let t={...e,storage:e.storage===V.LOCAL?window.localStorage:window.sessionStorage};if(e.exclude){const{exclude:h,...a}=t,u=o(),c=Object.keys(u).filter(s=>{var d;if(!((d=e.exclude)!=null&&d.includes(s)))return s});t={...a,include:c}}return g(i,{watch:o,setValue:n},t),l},b=({formMethods:r,handleSubmit:o,onSubmit:n,onError:l,children:i,...e})=>m.createElement(E,{...r},m.createElement(v,{"aria-label":"form",...e,onSubmit:o(n,l)},i)),p=({children:r,defaultValues:o={},onSubmit:n,onError:l,validationMode:i="onBlur",render:e,persist:t,...h})=>{w(!(r&&e),"`Form` should only be given one of `children` or `render`. When both are provided, `render` will be used and `children` will be ignored.");const a=S({defaultValues:o,mode:i}),{handleSubmit:u,watch:c,setValue:s}=a,d=e?e(a):r,f={formMethods:a,handleSubmit:u,onSubmit:n,onError:l,...h};return t?m.createElement(x,{persist:t,watch:c,setValue:s},m.createElement(b,{...f},d)):m.createElement(b,{...f},d)};p.displayName="Form";export{p as Form};
2
2
  //# sourceMappingURL=Form.js.map
@@ -36,7 +36,7 @@ export { Heading } from './heading';
36
36
  export { Icon } from './icon';
37
37
  export { Image } from './image';
38
38
  export { InlineMessage } from './inline-message';
39
- export { Input } from './input';
39
+ export { Input, InputBackground, InputText } from './input';
40
40
  export { InputField } from './input-field';
41
41
  export { Label } from './label';
42
42
  export { Link, StyledLink } from './link';