@atom-learning/components 3.5.0 → 3.5.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.
package/CHANGELOG.md CHANGED
@@ -1,16 +1,9 @@
1
- # [3.5.0](https://github.com/Atom-Learning/components/compare/v3.4.0...v3.5.0) (2023-11-22)
1
+ ## [3.5.1](https://github.com/Atom-Learning/components/compare/v3.5.0...v3.5.1) (2023-12-01)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * better Banner components props ([0873c9f](https://github.com/Atom-Learning/components/commit/0873c9f092687f5ffdb4763570f98d8a76241024))
7
- * exclude children from BannerDismiss type ([4111783](https://github.com/Atom-Learning/components/commit/41117837277e530e4c3834e986e82d5f7a05e006))
8
-
9
-
10
- ### Features
11
-
12
- * make colorScheme optional in BannerContainer type ([e129777](https://github.com/Atom-Learning/components/commit/e129777970498b0c3ff91b4172772ddd04fdb614))
13
- * rename Banner emphasis low/mid/highContrast to minimal/subtle/bold ([42889a1](https://github.com/Atom-Learning/components/commit/42889a17ef0dfb112e84d35f2b105c0a4050606f))
6
+ * remove unnessesary prop on BannerRegular Text ([9b74de3](https://github.com/Atom-Learning/components/commit/9b74de335cd3b275f505664f83bbfeda33e9c996))
14
7
 
15
8
  # [1.4.0](https://github.com/Atom-Learning/components/compare/v1.3.0...v1.4.0) (2022-04-11)
16
9
 
@@ -1 +1 @@
1
- {"version":3,"file":"BannerRegularContainer.js","sources":["../../../../src/components/banner/banner-regular/BannerRegularContainer.tsx"],"sourcesContent":["import * as React from 'react'\nimport { BannerContainer } from '../BannerContainer'\n\ntype TBannerRegularContainerProps = Omit<\n React.ComponentProps<typeof BannerContainer>,\n 'direction' | 'align' | 'wrap' | 'gap' | 'justify'\n>\n\nexport const BannerRegularContainer = (props: TBannerRegularContainerProps) => <BannerContainer {...props} />\n"],"names":["BannerRegularContainer","props","React","BannerContainer"],"mappings":"gFAQO,MAAMA,EAA0BC,GAAwCC,EAAA,cAACC,EAAA,CAAiB,GAAGF,CAAO,CAAA"}
1
+ {"version":3,"file":"BannerRegularContainer.js","sources":["../../../../src/components/banner/banner-regular/BannerRegularContainer.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { BannerContainer } from '../BannerContainer'\n\ntype TBannerRegularContainerProps = Omit<\n React.ComponentProps<typeof BannerContainer>,\n 'direction' | 'align' | 'wrap' | 'gap' | 'justify'\n>\n\nexport const BannerRegularContainer = (props: TBannerRegularContainerProps) => (\n <BannerContainer {...props} />\n)\n"],"names":["BannerRegularContainer","props","React","BannerContainer"],"mappings":"gFASO,MAAMA,EAA0BC,GACrCC,EAAA,cAACC,EAAA,CAAiB,GAAGF,CAAO,CAAA"}
@@ -1,2 +1,2 @@
1
- import*as a from"react";import{styled as m}from"../../../stitches.js";import{Text as n}from"../../text/Text.js";import{useBannerContext as o}from"../BannerContext.js";const c=m(n,{color:"var(--banner-text-color)",variants:{containerSize:{sm:{mb:"$4"},md:{mb:"$24"}},hasDismiss:{true:{}}},compoundVariants:[{containerSize:"sm",hasDismiss:!0,css:{mr:"$6"}}]}),e=r=>{const{emphasis:t,size:s,hasDismiss:i}=o();return a.createElement(c,{size:s,containerSize:s,emphasis:t,hasDismiss:i,...r})};e.displayName="BannerRegularText";export{e as BannerRegularText};
1
+ import*as i from"react";import{styled as n}from"../../../stitches.js";import{Text as a}from"../../text/Text.js";import{useBannerContext as o}from"../BannerContext.js";const m=n(a,{color:"var(--banner-text-color)",variants:{containerSize:{sm:{mb:"$4"},md:{mb:"$24"}},hasDismiss:{true:{}}},compoundVariants:[{containerSize:"sm",hasDismiss:!0,css:{mr:"$6"}}]}),s=r=>{const{size:e,hasDismiss:t}=o();return i.createElement(m,{size:e,containerSize:e,hasDismiss:t,...r})};s.displayName="BannerRegularText";export{s as BannerRegularText};
2
2
  //# sourceMappingURL=BannerRegularText.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BannerRegularText.js","sources":["../../../../src/components/banner/banner-regular/BannerRegularText.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled } from '~/stitches'\n\nimport { Text } from '../../text'\nimport { useBannerContext } from '../BannerContext'\n\nconst StyledText = styled(Text, {\n color: 'var(--banner-text-color)',\n variants: {\n containerSize: {\n sm: {\n mb: '$4'\n },\n md: {\n mb: '$24'\n }\n },\n hasDismiss: {\n true: {}\n }\n },\n compoundVariants: [\n {\n containerSize: 'sm',\n hasDismiss: true,\n css: {\n mr: '$6'\n }\n }\n ]\n})\n\nexport const BannerRegularText: React.FC<React.ComponentProps<typeof Text>> = (\n props\n) => {\n const { emphasis, size, hasDismiss } = useBannerContext()\n\n return (\n <StyledText\n size={size}\n containerSize={size}\n emphasis={emphasis}\n hasDismiss={hasDismiss}\n {...props}\n />\n )\n}\n\nBannerRegularText.displayName = 'BannerRegularText'\n"],"names":["StyledText","styled","Text","BannerRegularText","props","emphasis","size","hasDismiss","useBannerContext","React"],"mappings":"uKAOA,MAAMA,EAAaC,EAAOC,EAAM,CAC9B,MAAO,2BACP,SAAU,CACR,cAAe,CACb,GAAI,CACF,GAAI,IACN,EACA,GAAI,CACF,GAAI,KACN,CACF,EACA,WAAY,CACV,KAAM,CAAA,CACR,CACF,EACA,iBAAkB,CAChB,CACE,cAAe,KACf,WAAY,GACZ,IAAK,CACH,GAAI,IACN,CACF,CACF,CACF,CAAC,EAEYC,EACXC,GACG,CACH,KAAM,CAAE,SAAAC,EAAU,KAAAC,EAAM,WAAAC,CAAW,EAAIC,IAEvC,OACEC,EAAA,cAACT,EAAA,CACC,KAAMM,EACN,cAAeA,EACf,SAAUD,EACV,WAAYE,EACX,GAAGH,EACN,CAEJ,EAEAD,EAAkB,YAAc"}
1
+ {"version":3,"file":"BannerRegularText.js","sources":["../../../../src/components/banner/banner-regular/BannerRegularText.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { styled } from '~/stitches'\n\nimport { Text } from '../../text'\nimport { useBannerContext } from '../BannerContext'\n\nconst StyledText = styled(Text, {\n color: 'var(--banner-text-color)',\n variants: {\n containerSize: {\n sm: {\n mb: '$4'\n },\n md: {\n mb: '$24'\n }\n },\n hasDismiss: {\n true: {}\n }\n },\n compoundVariants: [\n {\n containerSize: 'sm',\n hasDismiss: true,\n css: {\n mr: '$6'\n }\n }\n ]\n})\n\nexport const BannerRegularText: React.FC<React.ComponentProps<typeof Text>> = (\n props\n) => {\n const { size, hasDismiss } = useBannerContext()\n\n return (\n <StyledText\n size={size}\n containerSize={size}\n hasDismiss={hasDismiss}\n {...props}\n />\n )\n}\n\nBannerRegularText.displayName = 'BannerRegularText'\n"],"names":["StyledText","styled","Text","BannerRegularText","props","size","hasDismiss","useBannerContext","React"],"mappings":"uKAOA,MAAMA,EAAaC,EAAOC,EAAM,CAC9B,MAAO,2BACP,SAAU,CACR,cAAe,CACb,GAAI,CACF,GAAI,IACN,EACA,GAAI,CACF,GAAI,KACN,CACF,EACA,WAAY,CACV,KAAM,CACR,CAAA,CACF,EACA,iBAAkB,CAChB,CACE,cAAe,KACf,WAAY,GACZ,IAAK,CACH,GAAI,IACN,CACF,CACF,CACF,CAAC,EAEYC,EACXC,GACG,CACH,KAAM,CAAE,KAAAC,EAAM,WAAAC,CAAW,EAAIC,EAAiB,EAE9C,OACEC,EAAA,cAACR,EAAA,CACC,KAAMK,EACN,cAAeA,EACf,WAAYC,EACX,GAAGF,EACN,CAEJ,EAEAD,EAAkB,YAAc"}