Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.10.8 -> v0.10.10 #282

Merged
merged 150 commits into from
Apr 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
150 commits
Select commit Hold shift + click to select a range
f87c6bb
Feat #43 - Tag, Link components
sam-dassana Aug 14, 2020
97d5e4f
Fix #47 - Fix Link props - both onClick & href are undef (#48)
sam-dassana Aug 14, 2020
ba77ee2
Chore #49- Upgrade Storybook and dependencies (#50)
sam-dassana Aug 18, 2020
caa3e01
feat #38 - Add eslint and fix lint errors & warnings (#39)
sam-dassana Aug 11, 2020
cb4b319
Feat #43 - Tag, Link components
sam-dassana Aug 14, 2020
0a9a022
Fix #47 - Fix Link props - both onClick & href are undef (#48)
sam-dassana Aug 14, 2020
2584b28
Chore #49- Upgrade Storybook and dependencies (#50)
sam-dassana Aug 18, 2020
427e22f
feat #3 - Input field component (#53)
nancy-dassana Aug 21, 2020
e0c0bc6
Feat #30 - Toggle and Icon components (#52)
sam-dassana Aug 21, 2020
9a88334
chore #41 - Add verify labels GitHub action (#42)
parth-dassana Aug 12, 2020
5b98c5b
Feat #43 - Tag, Link components
sam-dassana Aug 14, 2020
74d7d33
Fix #47 - Fix Link props - both onClick & href are undef (#48)
sam-dassana Aug 14, 2020
b41ca47
Chore #49- Upgrade Storybook and dependencies (#50)
sam-dassana Aug 18, 2020
2dba6fe
feat #38 - Add eslint and fix lint errors & warnings (#39)
sam-dassana Aug 11, 2020
c17778d
chore #41 - Add verify labels GitHub action (#42)
parth-dassana Aug 12, 2020
cc37822
Feat #43 - Tag, Link components
sam-dassana Aug 14, 2020
df26689
Fix #47 - Fix Link props - both onClick & href are undef (#48)
sam-dassana Aug 14, 2020
8ed4189
Chore #49- Upgrade Storybook and dependencies (#50)
sam-dassana Aug 18, 2020
e64138e
feat #3 - Input field component (#53)
nancy-dassana Aug 21, 2020
fc5b3fa
Feat #30 - Toggle and Icon components (#52)
sam-dassana Aug 21, 2020
81a4894
Bump up version to 0.2.0
parth-dassana Aug 21, 2020
0eb414d
Comment out icon component
parth-dassana Aug 21, 2020
64e7c7a
Update package.json
parth-dassana Aug 21, 2020
3f0ac79
Update index.ts
parth-dassana Aug 21, 2020
94568de
Merge branch 'master' into dev
parth-dassana Aug 21, 2020
062ccb0
Bump up package.json
parth-dassana Aug 21, 2020
e12ea02
Update package-lock.json
parth-dassana Aug 21, 2020
0fa95d0
fix #58 - Address icon, styles, global css, and typescript issues (#59)
parth-dassana Aug 21, 2020
62204c3
Merge branch 'master' into dev
parth-dassana Aug 24, 2020
e39215c
Merge branch 'master' into dev
parth-dassana Aug 24, 2020
d6aca00
chore #63 - Update .eslintrc.js (#64)
sam-dassana Aug 25, 2020
7cce5bd
feat #61 - Skeleton loader component (#66)
nancy-dassana Aug 25, 2020
f7b7331
feat #65 - Form Component (#67)
nancy-dassana Aug 27, 2020
8082187
Merge branch 'master' into dev
parth-dassana Aug 27, 2020
c562ceb
v0.2.4 -> v0.2.5
parth-dassana Aug 27, 2020
31e099f
feat #71 - Notification component (#72)
nancy-dassana Sep 2, 2020
2e5d713
Merge branch 'master' into dev
Sep 2, 2020
06d095a
feat #76 - Refactor Form.Button to be Form.SubmitButton (#77)
nancy-dassana Sep 8, 2020
70bf0c4
Merge branch 'master' into dev
Sep 8, 2020
8bfb295
feat #62 - Table component (#70)
sam-dassana Sep 10, 2020
f6a1d6f
Merge branch 'master' into dev
Sep 10, 2020
459e57f
feat #79 - Select component (#82)
nancy-dassana Sep 16, 2020
f74f43b
feat #83 - Add data-test attribute to components (#85)
nancy-dassana Sep 17, 2020
fa5706e
Merge branch 'master' into dev
Sep 17, 2020
5f641a6
Update failing snapshots
Sep 17, 2020
cc56fab
feat #88 - Fix type exports for rollup (#89)
nancy-dassana Sep 17, 2020
a50bd53
Merge branch 'master' into dev
Sep 17, 2020
f2bdaa4
feat #84 - Radio group component (#91)
nancy-dassana Sep 20, 2020
06873bc
feat #81 - Tree component (#86)
sam-dassana Sep 23, 2020
6f85686
feat #93 - Tooltip component (#95)
nancy-dassana Sep 28, 2020
caf6a10
feat #94 - Popover component (#96)
nancy-dassana Sep 29, 2020
cd22a92
Merge branch 'master' into dev
Sep 29, 2020
7466916
Feat #99, #101, #100 - Add new avatar component and enhancements for …
nancy-dassana Oct 8, 2020
cca500d
Merge branch 'master' into dev
Oct 8, 2020
0f81ad2
feat #92 - Theming (#97)
sam-dassana Oct 9, 2020
fd256f0
chore #106 - refac all component exports from default to named, add s…
sam-dassana Oct 12, 2020
40c8370
fix #108 - Fix colors, refac stylguide export (#109)
sam-dassana Oct 12, 2020
0351f2d
Merge branch 'master' into dev
Oct 12, 2020
cbccafa
Components theming (#121)
nancy-dassana Oct 20, 2020
662fb10
Merge branch 'master' into dev
Oct 20, 2020
3c3a88f
fix #123 - Fix line height in styleguide (#124)
sam-dassana Oct 20, 2020
2d7cb76
Merge branch 'master' into dev
Oct 20, 2020
2c667b4
chore #127, fix #126: Refac & bug-fix Icon component, bug-fix fieldLa…
sam-dassana Oct 22, 2020
7399654
Merge branch 'master' into dev
Oct 22, 2020
dc1adeb
feat - Add Table row click handler (#131)
sam-dassana Oct 29, 2020
37ffa54
Merge branch 'master' into dev
Oct 29, 2020
825e343
Form enhancements (#134)
nancy-dassana Nov 3, 2020
b56a2d3
Merge branch 'master' into dev
Nov 3, 2020
0280f62
fix #136 - Fix package publish github action (#137)
nancy-dassana Nov 3, 2020
85d3293
Merge branch 'master' into dev
Nov 3, 2020
aac8ecb
feat #139 - Add focused prop to FormInput and allow refs to be passed…
nancy-dassana Nov 9, 2020
5205de3
Merge branch 'master' into dev
Nov 9, 2020
e1ba07f
feat #144 - Form Toggle (#145)
nancy-dassana Nov 19, 2020
ba16308
Merge branch 'master' into dev
Nov 19, 2020
fc078b6
feat #142 - Table refactor (#143)
sam-dassana Nov 19, 2020
6b3946d
feat #147, #148 - Update background colors and avatar styles (#149)
nancy-dassana Nov 20, 2020
68a74d0
Merge branch 'master' into dev
Nov 20, 2020
852fe69
fix #151 - Fix form toggle submit (#152)
nancy-dassana Nov 23, 2020
b7f9bd4
Merge branch 'master' into dev
Nov 23, 2020
b596bd0
chore #154 - Update themes & add new items to styleguide (#155)
sam-dassana Nov 26, 2020
9df18af
Merge branch 'master' into dev
Nov 26, 2020
17f6dfc
feat #157 - Add field errors to Form.Input (#158)
nancy-dassana Dec 2, 2020
104e177
Merge branch 'master' into dev
parth-dassana Dec 2, 2020
bbbfede
feat #159 - Add ColoredDot comp and integrate into Table (#161)
sam-dassana Dec 3, 2020
ab99758
enhance #162 - Table: Auto hide/show pagination based on row count (#…
sam-dassana Dec 3, 2020
9254d2f
Merge branch 'master' into dev
parth-dassana Dec 3, 2020
31f1a62
feat #166 - Form Updates (#167)
nancy-dassana Dec 7, 2020
638c166
Merge branch 'master' into dev
Dec 7, 2020
bc6527c
Update package.json
Dec 7, 2020
b7b4524
fix #169 - Add toggle focus styles (#170)
sam-dassana Dec 8, 2020
d25ea1e
Merge branch 'master' into dev
Dec 8, 2020
c52d2d5
feat #171 - Table skeleton loader, fix #173 - Overwrite antd Table st…
sam-dassana Dec 11, 2020
c405303
feat #174 - NotificationV2 updates, chore #175 - Extract out IconButt…
sam-dassana Dec 14, 2020
6d97974
chore #179 - Modal and Wizard components (#180)
nancy-dassana Jan 6, 2021
89384c8
Merge branch 'master' into dev
Jan 6, 2021
31afbf2
feat #178 - Comps related to filter (#182)
sam-dassana Jan 14, 2021
9971301
Merge branch 'master' into dev
Jan 14, 2021
f6a3be7
Fix #187 - Multiselect bug (container always wraps) (#188)
sam-dassana Jan 19, 2021
d589ca1
feat #184 - Table enhancements (#189)
nancy-dassana Jan 19, 2021
6324400
feat #190 - Accordion Component (#191)
nancy-dassana Jan 20, 2021
cd5bf48
fix #192 - Fix form async initialValues (#193)
nancy-dassana Jan 20, 2021
c559bf6
Merge branch 'master' into dev
Jan 20, 2021
abeee74
feat #195 - Chip input component (#196)
sam-dassana Jan 22, 2021
d1f0d7b
Merge branch 'master' into dev
Jan 25, 2021
961946c
fix #198 - typescript bug with ChipInput component (#199)
sam-dassana Jan 25, 2021
7bdb4c2
Merge branch 'master' into dev
Jan 25, 2021
85a1f22
feat #186 - MultipleChoice component, Refac ShortcutMicrocopy (#201)
sam-dassana Jan 29, 2021
7375ce8
Merge branch 'master' into dev
Jan 31, 2021
65e6676
feat #205, fix #206 - IconButton and Popover enhancements (#207)
nancy-dassana Feb 3, 2021
702be86
feat #202 - Time input components (#203)
sam-dassana Feb 3, 2021
2be3bf2
Merge branch 'master' into dev
Feb 5, 2021
4bcec12
chore #209 - Add org manager icon (#210)
nancy-dassana Feb 6, 2021
64d6f5c
Merge branch 'master' into dev
Feb 6, 2021
7cb8410
Update package.json
Feb 6, 2021
0d7187c
Updates related to onboarding (#212)
sam-dassana Feb 8, 2021
fbc7ec7
Merge branch 'master' into dev
parth-dassana Feb 9, 2021
95df6d8
fix #215 - Fix iconButton pending styles CSS (#216)
nancy-dassana Feb 11, 2021
f5ba46c
Merge branch 'master' into dev
Feb 11, 2021
f9361c9
chore #222 - Optimize build (#223)
nancy-dassana Feb 19, 2021
7e11b9a
feat #218 - Updates related to Onboarding polish (#219)
sam-dassana Feb 19, 2021
79e9870
Merge branch 'master' into dev
sam-dassana Feb 19, 2021
cc3168c
feat #221, feat #220 - PageLoader and SVGImage Components (#225)
nancy-dassana Feb 22, 2021
3f8c74f
Merge branch 'master' into dev
Feb 22, 2021
5b5c12f
fix #227 - Bugs related to onboarding (#228)
sam-dassana Feb 23, 2021
f335a6e
Merge branch 'master' into dev
sam-dassana Feb 24, 2021
ae835a1
chore #237 - Extract out Tabs and Filter component from web-app-manag…
sam-dassana Mar 2, 2021
8b85211
Merge branch 'master' into dev
sam-dassana Mar 2, 2021
07778c4
fix #244 - Fix ts import bug (#245)
sam-dassana Mar 5, 2021
8989119
Merge branch 'master' into dev
sam-dassana Mar 5, 2021
8451e25
fix #244 - Fix - typescript import bug (Filters) (#247)
sam-dassana Mar 5, 2021
1ef711c
Merge branch 'master' into dev
sam-dassana Mar 5, 2021
7a1c4f8
chore #249 - Bump react scripts and upgrade to React 17 (#250)
nancy-dassana Mar 8, 2021
7a04437
Merge branch 'master' into dev
Mar 8, 2021
c691806
chore #254 - Port components over from app-manager (#256)
nancy-dassana Mar 11, 2021
90a9350
Merge branch 'master' into dev
Mar 11, 2021
ae4d20a
Table enhancements - feats #230, #232, #242, #243 (#252)
sam-dassana Mar 11, 2021
936ce11
feat #253 - Table updates to make component responsive (#258)
sam-dassana Mar 15, 2021
d644269
Merge branch 'master' into dev
sam-dassana Mar 15, 2021
225ed85
enhancement #260 - Updates for alert manager (#261)
nancy-dassana Mar 16, 2021
2f7c928
Merge branch 'master' into dev
Mar 16, 2021
a8e8799
feat #231 - Code component (#263)
sam-dassana Mar 17, 2021
0fd3dbd
chore #264 - Codegen setup (#265)
sam-dassana Mar 22, 2021
56ef6c3
enhancement #269 - Updates for alert manager risk rules (#270)
nancy-dassana Mar 26, 2021
274e275
Merge branch 'master' into dev
Mar 26, 2021
1ea3eb9
Feat #266 - Banner Component (#267)
mishevong Mar 29, 2021
a7b6a29
chore #272 - Fix package vulnerabilities (#273)
nancy-dassana Mar 29, 2021
4fd4081
Merge branch 'master' into dev
Mar 29, 2021
d9586be
feat #275 - Timeline component, Accordion comp enhnacements (#276)
sam-dassana Apr 2, 2021
0c2bcbd
fix #266 - Exporting banner from index (#281)
mishevong Apr 6, 2021
3b9968a
Merge branch 'master' into dev
Apr 6, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ jobs:
rm -rf tsconfig.rollup.json
npm install
env:
FONT_AWESOME_AUTH_TOKEN: ${{ secrets.FONT_AWESOME_AUTH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: chromaui/action@v1
# options required to the GitHub chromatic action
env:
FONT_AWESOME_AUTH_TOKEN: ${{ secrets.FONT_AWESOME_AUTH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
# our project token, to see how to obtain it
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ jobs:
npm run build
env:
CI: true
FONT_AWESOME_AUTH_TOKEN: ${{ secrets.FONT_AWESOME_AUTH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ registry=https://registry.npmjs.org

@dassana-io:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=${NPM_TOKEN}

@fortawesome:registry=https://npm.fontawesome.com/
//npm.fontawesome.com/:_authToken=${FONT_AWESOME_AUTH_TOKEN}
32 changes: 31 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dassana-io/web-components",
"version": "0.10.8",
"version": "0.10.10",
"publishConfig": {
"registry": "https://npm.pkg.github.com/dassana-io"
},
Expand All @@ -14,6 +14,8 @@
"@dassana-io/web-utils": "^0.8.0",
"@fortawesome/fontawesome-svg-core": "^1.2.32",
"@fortawesome/free-solid-svg-icons": "^5.15.1",
"@fortawesome/pro-light-svg-icons": "^5.15.3",
"@fortawesome/pro-regular-svg-icons": "^5.15.3",
"@fortawesome/react-fontawesome": "^0.1.14",
"antd": "~4.12.3",
"bytes": "^3.1.0",
Expand Down
2 changes: 2 additions & 0 deletions rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export default {
'@dassana-io/web-utils',
'@fortawesome/fontawesome-svg-core',
'@fortawesome/free-solid-svg-icons',
'@fortawesome/pro-light-svg-icons',
'@fortawesome/pro-regular-svg-icons',
'@fortawesome/react-fontawesome',
'antd',
'bytes',
Expand Down
58 changes: 49 additions & 9 deletions src/components/Accordion/Accordion.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import React from 'react'
import { faCheckCircle } from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { styleguide } from 'components/assets/styles'
import { Accordion, AccordionProps, Panel } from './index'
import { Meta, Story } from '@storybook/react/types-6-0'
import React, { FC, ReactNode } from 'react'

const mockPanels: Panel[] = [
{ content: 'Content1', key: 1, title: 'Title 1' },
{ content: 'Content2', key: 2, title: 'Title 2' },
{ content: 'Content3', key: 3, title: 'Title 3' }
]
const { font, spacing } = styleguide

export default {
argTypes: {
Expand All @@ -20,15 +19,56 @@ export default {
title: 'Accordion'
} as Meta

interface Props {
children: ReactNode
}

const Content: FC<Props> = ({ children }: Props) => (
<div
style={{
...font.body,
padding: spacing.m,
paddingTop: 0
}}
>
{children}
</div>
)

const mockPanels: Panel[] = [
{
content: <Content>Lorem ipsum dolor sit amet.</Content>,
key: 1,
title: '1. Identify Vendor'
},
{
content: <Content>Consectetur adipiscing elit.</Content>,
headerRightContent: <FontAwesomeIcon icon={faCheckCircle} />,
key: 2,
title: '2. Map Policy'
},
{
content: (
<Content>
Sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua.
</Content>
),
key: 3,
title: '3. Extract Resource Information'
}
]

const Template: Story<AccordionProps> = args => (
<Accordion {...args} panels={mockPanels} />
)

export const Default = Template.bind({})

export const Exclusive = Template.bind({})
Exclusive.args = {
exclusive: true
export const ExpandOneAtATime = Template.bind({})
ExpandOneAtATime.args = {
defaultExpandedKeys: [1],
expandMultiple: false
}

export const ExpandAll = Template.bind({})
Expand Down
32 changes: 32 additions & 0 deletions src/components/Accordion/Animate.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { AnimatePresence, motion } from 'framer-motion'
import React, { FC, ReactNode } from 'react'

interface AnimateProps {
children: ReactNode
isExpanded: boolean
}

export const Animate: FC<AnimateProps> = ({
children,
isExpanded
}: AnimateProps) => (
<AnimatePresence initial={false}>
{isExpanded && (
<motion.section
animate='open'
exit='collapsed'
initial='collapsed'
transition={{
duration: 0.8,
ease: [0.04, 0.62, 0.23, 0.98]
}}
variants={{
collapsed: { height: 0, opacity: 0 },
open: { height: 'auto', opacity: 1 }
}}
>
{children}
</motion.section>
)}
</AnimatePresence>
)
6 changes: 3 additions & 3 deletions src/components/Accordion/CollapseIndicator.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { faChevronDown } from '@fortawesome/free-solid-svg-icons'
import { faChevronDown } from '@fortawesome/pro-light-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { motion } from 'framer-motion'
import React, { FC } from 'react'
Expand All @@ -12,11 +12,11 @@ export const CollapseIndicator: FC<CollapseIndicatorProps> = ({
}: CollapseIndicatorProps) => (
<motion.div
animate={{
rotate: isCollapsed ? 0 : 180
rotate: isCollapsed ? -90 : 0
}}
transition={{ duration: 0.5 }}
whileHover={{ scale: 1.1 }}
>
<FontAwesomeIcon icon={faChevronDown} />
<FontAwesomeIcon icon={faChevronDown} size='sm' />
</motion.div>
)
48 changes: 48 additions & 0 deletions src/components/Accordion/Header.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import { CollapseIndicator } from './CollapseIndicator'
import { createUseStyles } from 'react-jss'
import { generateHeaderStyles } from './utils'
import { Panel } from './types'
import React, { FC } from 'react'
import { styleguide, themes, ThemeType } from '../assets/styles'

const { dark, light } = ThemeType
const { spacing } = styleguide

const useStyles = createUseStyles({
header: generateHeaderStyles(),
title: { color: themes[light].primary, marginLeft: spacing['s+'] },
titleWrapper: {
display: 'flex',
padding: spacing['s+'],
paddingLeft: 0
},
// eslint-disable-next-line sort-keys
'@global': {
[`.${dark}`]: {
'& $title': { color: themes[dark].state.hover }
}
}
})

interface Props extends Pick<Panel, 'title' | 'headerRightContent'> {
onHeaderClick?: () => void
isExpanded: boolean
}

export const Header: FC<Props> = ({
headerRightContent,
onHeaderClick,
isExpanded,
title
}: Props) => {
const classes = useStyles()
return (
<div className={classes.header} onClick={onHeaderClick}>
<div className={classes.titleWrapper}>
<CollapseIndicator isCollapsed={!isExpanded} />
<span className={classes.title}>{title}</span>
</div>
{headerRightContent && headerRightContent}
</div>
)
}
43 changes: 4 additions & 39 deletions src/components/Accordion/PanelContent.tsx
Original file line number Diff line number Diff line change
@@ -1,47 +1,12 @@
import { createUseStyles } from 'react-jss'
import { styleguide } from '../assets/styles'
import { AnimatePresence, motion } from 'framer-motion'
import { Animate } from './Animate'
import React, { FC, ReactNode } from 'react'

const { spacing } = styleguide

const useStyles = createUseStyles({
content: {
padding: spacing.m,
paddingTop: 0
}
})

interface PanelContentProps {
children: ReactNode
isActive: boolean
isExpanded: boolean
}

export const PanelContent: FC<PanelContentProps> = ({
children,
isActive
}: PanelContentProps) => {
const classes = useStyles()

return (
<AnimatePresence initial={false}>
{isActive && (
<motion.section
animate='open'
exit='collapsed'
initial='collapsed'
transition={{
duration: 0.8,
ease: [0.04, 0.62, 0.23, 0.98]
}}
variants={{
collapsed: { height: 0, opacity: 0 },
open: { height: 'auto', opacity: 1 }
}}
>
<div className={classes.content}>{children}</div>
</motion.section>
)}
</AnimatePresence>
)
}
isExpanded
}: PanelContentProps) => <Animate isExpanded={isExpanded}>{children}</Animate>
Loading