Skip to content

Commit

Permalink
feat(natds-react): added theme FV2
Browse files Browse the repository at this point in the history
affects: @naturacosmeticos/natds-react
DSY-5392
  • Loading branch information
vagnerbarbosant committed Dec 20, 2024
1 parent 6b8090f commit 6d212ee
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
1 change: 1 addition & 0 deletions packages/react/.storybook/globalTypes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const globalTypes = {
{ value: 'consultoriaDeBeleza', title: 'Consultoria de Beleza' },
{ value: 'consultoriaDeBeleza_v2', title: 'Consultoria de Beleza V2' },
{ value: 'forcaDeVendas', title: 'Força de Vendas' },
{ value: 'forcaDeVendas_v2', title: 'Força de Vendas V2' },
{ value: 'natura_v2', title: 'Natura V2' },
{ value: 'natura_v3', title: 'Natura V3' },
{ value: 'casaEestilo', title: 'Casa & Estilo' },
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
},
"dependencies": {
"@naturacosmeticos/natds-icons": "1.27.5",
"@naturacosmeticos/natds-themes": "0.81.1",
"@naturacosmeticos/natds-themes": "0.82.0",
"react-jss": "10.9.0"
},
"devDependencies": {
Expand Down
7 changes: 2 additions & 5 deletions packages/react/src/components/Select/Select.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,9 @@ const getLabelColor = (theme: Theme) => ({ feedback, isDisabled }: SelectStylePr
return theme.color.mediumEmphasis
}
const getThemeFocus = (theme: Theme) => ({ brand }: SelectStyleProps) => {
const themeSelectFocus = buildTheme(brand, 'light')
const themeSelectFocus = brand ? buildTheme(brand, 'light') : theme

if (brand) {
return themeSelectFocus.color.primary
}
return theme.color.primary
return themeSelectFocus.color.primary
}

const styles = createUseStyles((theme: Theme) => ({
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2707,10 +2707,10 @@
svg2vectordrawable "2.6.26"
webp-converter "^2.3.3"

"@naturacosmeticos/natds-themes@0.81.1":
version "0.81.1"
resolved "https://registry.yarnpkg.com/@naturacosmeticos/natds-themes/-/natds-themes-0.81.1.tgz#febe6750e1e61457e1a94c4706b618fe461c0fd0"
integrity sha512-1hbB0pMeJg5gWoipPS80Ho942hh1xl6wKoiRoN0LhiSkgIqD7FLavufqY38BhCP9Xck8GHr7ObYZAZUi8U2T8g==
"@naturacosmeticos/natds-themes@0.82.0":
version "0.82.0"
resolved "https://registry.yarnpkg.com/@naturacosmeticos/natds-themes/-/natds-themes-0.82.0.tgz#9a5fe9a777c1606abf5bdba443e08da3ee5fc328"
integrity sha512-f4iruRFMURh1tZ86oc6nr7I33OvE510DTUPpT2g2D5SthBJu/idyuE+xBLo9swCYYC4/GjGR0EqQ7vC4LIvJSA==
dependencies:
open-color "^1.8.0"
svg2vectordrawable "2.6.26"
Expand Down

0 comments on commit 6d212ee

Please sign in to comment.