@atom-learning/components 2.50.0 → 2.50.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,24 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
## [2.50.1](https://github.com/Atom-Learning/components/compare/v2.50.0...v2.50.1) (2023-04-28)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
7
|
-
* delete stray export of deleted file find-child-by-type ([f61db54](https://github.com/Atom-Learning/components/commit/f61db54d21140d485e584a2f676a1923e8f42987))
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
### Features
|
|
11
|
-
|
|
12
|
-
* add BannerActions component ([f6147a5](https://github.com/Atom-Learning/components/commit/f6147a5334137db6cd52c8bbb72e438358e92035))
|
|
13
|
-
* add BannerContent component ([d9f21fb](https://github.com/Atom-Learning/components/commit/d9f21fb00e383207dc42a72804b74cd9e6273ed1))
|
|
14
|
-
* add BannerHeading component ([2c68c0f](https://github.com/Atom-Learning/components/commit/2c68c0fb7552a31562ed5b9a9b4ae0b915e92f2f))
|
|
15
|
-
* add BannerImage component ([6a41ab0](https://github.com/Atom-Learning/components/commit/6a41ab0e3ebe7c024be99576a5561012ad1c93c9))
|
|
16
|
-
* add BannerRegular component and set up basic layout ([0f4c639](https://github.com/Atom-Learning/components/commit/0f4c63986ec9e8018c8506c6487c819a362a89a3))
|
|
17
|
-
* add BannerText component ([399b82a](https://github.com/Atom-Learning/components/commit/399b82aa36e10d62cd93cfb478a76d168b1616fe))
|
|
18
|
-
* add utility findChildByType ([d5c31fd](https://github.com/Atom-Learning/components/commit/d5c31fdb7b300c23dff9dfdd3644df1d28e8544a))
|
|
19
|
-
* dismissible banners ([a37a81e](https://github.com/Atom-Learning/components/commit/a37a81e33042d2ab767b21bd6d5744d649b2a7a2))
|
|
20
|
-
* implement button themes and adjust css for image container ([f434902](https://github.com/Atom-Learning/components/commit/f4349025f11a47221099228ba0803016d90e2ae7))
|
|
21
|
-
* wip - banner themes / color schemes ([4e00be0](https://github.com/Atom-Learning/components/commit/4e00be0f5137bc7d112a34e54183382b977a5070))
|
|
6
|
+
* lintstagedrc fix prettier bad path by removing it ([ca51477](https://github.com/Atom-Learning/components/commit/ca51477af9508378a7315fc8bdd099723bb3ff14))
|
|
22
7
|
|
|
23
8
|
# [1.4.0](https://github.com/Atom-Learning/components/compare/v1.3.0...v1.4.0) (2022-04-11)
|
|
24
9
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{Close as a}from"@atom-learning/icons";import*as e from"react";import{styled as n}from"../../../stitches.js";import{overrideStitchesVariantValue as l}from"../../../utilities/override-stitches-variant-value/overrideStitchesVariantValue.js";import{ActionIcon as p}from"../../action-icon/ActionIcon.js";import{Icon as c}from"../../icon/Icon.js";import{Banner as d}from"../Banner.js";import{useBannerContext as u}from"../BannerContext.js";const f={sm:"md",md:"sm"},h=n(p,{position:"absolute",top:"$3",right:"$3"}),t=({label:r="dismiss",...s})=>{const{size:o}=u(),i=e.useMemo(()=>l(o,m=>f[m]),[o]);return e.createElement(d.Dismiss,{asChild:!0},e.createElement(h,{label:r,size:i,hasTooltip:!1,isRounded:!0,theme:"neutral",appearance:"solid",...s},e.createElement(c,{is:a})))};t.displayName="BannerRegularDismiss";export{t as BannerRegularDismiss};
|
|
2
2
|
//# sourceMappingURL=BannerRegularDismiss.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BannerRegularDismiss.js","sources":["../../../../src/components/banner/banner-regular/BannerRegularDismiss.tsx"],"sourcesContent":["import * as React from 'react'\nimport {
|
|
1
|
+
{"version":3,"file":"BannerRegularDismiss.js","sources":["../../../../src/components/banner/banner-regular/BannerRegularDismiss.tsx"],"sourcesContent":["import { Close } from '@atom-learning/icons'\nimport * as React from 'react'\n\nimport { styled } from '~/stitches'\nimport { overrideStitchesVariantValue } from '~/utilities/override-stitches-variant-value/overrideStitchesVariantValue'\n\nimport { ActionIcon } from '../../action-icon'\nimport { Icon } from '../../icon'\nimport { Banner } from '../Banner'\nimport { useBannerContext } from '../BannerContext'\n\nconst toActionIconSize = {\n sm: 'md',\n md: 'sm'\n}\n\nconst StyledDismiss = styled(ActionIcon, {\n position: 'absolute',\n top: '$3',\n right: '$3'\n})\n\nexport const BannerRegularDismiss: React.FC<\n React.ComponentProps<typeof ActionIcon>\n> = ({ label = 'dismiss', ...rest }) => {\n const { size } = useBannerContext()\n\n const actionIconSize = React.useMemo(\n () => overrideStitchesVariantValue(size, (s) => toActionIconSize[s]),\n [size]\n )\n\n return (\n <Banner.Dismiss asChild>\n <StyledDismiss\n label={label}\n size={actionIconSize}\n hasTooltip={false}\n isRounded\n theme=\"neutral\"\n appearance=\"solid\"\n {...rest}\n >\n <Icon is={Close} />\n </StyledDismiss>\n </Banner.Dismiss>\n )\n}\n\nBannerRegularDismiss.displayName = 'BannerRegularDismiss'\n"],"names":["toActionIconSize","StyledDismiss","styled","ActionIcon","BannerRegularDismiss","label","rest","size","useBannerContext","actionIconSize","React","overrideStitchesVariantValue","s","Banner","Icon","Close"],"mappings":"ybAWA,MAAMA,EAAmB,CACvB,GAAI,KACJ,GAAI,IACN,EAEMC,EAAgBC,EAAOC,EAAY,CACvC,SAAU,WACV,IAAK,KACL,MAAO,IACT,CAAC,EAEYC,EAET,CAAC,CAAE,MAAAC,EAAQ,aAAcC,CAAK,IAAM,CACtC,KAAM,CAAE,KAAAC,CAAK,EAAIC,EAEXC,EAAAA,EAAiBC,EAAM,QAC3B,IAAMC,EAA6BJ,EAAOK,GAAMZ,EAAiBY,EAAE,EACnE,CAACL,CAAI,CACP,EAEA,OACEG,EAAA,cAACG,EAAO,QAAP,CAAe,QAAO,EAAA,EACrBH,EAAA,cAACT,EAAA,CACC,MAAOI,EACP,KAAMI,EACN,WAAY,GACZ,UAAS,GACT,MAAM,UACN,WAAW,QACV,GAAGH,CAEJI,EAAAA,EAAA,cAACI,EAAA,CAAK,GAAIC,CAAO,CAAA,CACnB,CACF,CAEJ,EAEAX,EAAqB,YAAc"}
|