Skip to content

Commit

Permalink
Merge pull request #309 from natura-cosmeticos/DSY-5154
Browse files Browse the repository at this point in the history
feat(natds-rn): update lib Icons and Themes
  • Loading branch information
vagnerbarbosant authored Aug 16, 2024
2 parents 0d2d856 + 174c6d9 commit b5c93d4
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 14 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
"generate": "yarn plop --plopfile ./generators/plopfile.js"
},
"dependencies": {
"@naturacosmeticos/natds-icons": "^1.25.2",
"@naturacosmeticos/natds-themes": "^0.79.0",
"@naturacosmeticos/natds-icons": "^1.26.5",
"@naturacosmeticos/natds-themes": "^0.80.0",
"react-native-gesture-handler": "^1.10.3",
"react-native-svg": "^12.1.1"
},
Expand Down
1 change: 1 addition & 0 deletions src/common/themeSelectors/theme/mock-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -2022,6 +2022,7 @@
"color": {
"neutral0": "#ffffff",
"neutral50": "#fafafa",
"neutral75": "#eeeeee",
"neutral100": "#e1e1e1",
"neutral200": "#c9c9c9",
"neutral300": "#bdbdbd",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Button/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const description = () => `
| **size** | semi, semiX, medium | ✅ Available |
| **iconName** | 'icon_name' | ✅ Available |
| **disabled** | true, false | ✅ Available |
| **display ** | inline, block | ❌ Not Applicable |
| **display ** | inline, block | ❌ Not Applicable |
| **brand** | avon, avon_v2, natura, natura_v2, theBodyShop, <br /> consultoriaDeBeleza, casaEestilo | ✅ Available |
## Technical Usages Examples
Expand Down
5 changes: 4 additions & 1 deletion src/components/ColorView/ColorView.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React from 'react'
import { Color } from '@naturacosmeticos/natds-themes/react-native'
import ColorView from './ColorView'
import { buildTheme } from '../../common/themeSelectors'
import { getStoryBookTheme } from '../../../storybook-web/addons/theme/shared.js'

const description = () => `
> Colors from theme.
Expand Down Expand Up @@ -32,7 +33,9 @@ function removeKeys(obj: Color) {
}

export const ColorViews = () => {
const theme = buildTheme('natura', 'light')
const mode = getStoryBookTheme()
const theme = buildTheme('natura', mode)

const { color } = theme
const ArrayTheme = Object.entries(removeKeys(color))
const deprecatedColor = [
Expand Down
2 changes: 1 addition & 1 deletion storybook-web/preview-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
}
</style>

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@naturacosmeticos/natds-icons@1.25.2/dist/natds-icons.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@naturacosmeticos/natds-icons@1.26.5/dist/natds-icons.css" />
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2081,15 +2081,15 @@
eslint-plugin-react "^7.22.0"
eslint-plugin-react-hooks "^4.2.0"

"@naturacosmeticos/natds-icons@^1.25.2":
version "1.25.2"
resolved "https://registry.yarnpkg.com/@naturacosmeticos/natds-icons/-/natds-icons-1.25.2.tgz#a5584365441a8f90685c04441c5e8e8b1b72b7c4"
integrity sha512-6LvELI+ea1QLuRl+vIK1Wh/nS5nYkKZl5nbXqUvcuzwSBK2aHas0dgq+DmFH20oV3ddjjCI/3swlLJJJru2nVw==

"@naturacosmeticos/natds-themes@^0.79.0":
version "0.79.0"
resolved "https://registry.yarnpkg.com/@naturacosmeticos/natds-themes/-/natds-themes-0.79.0.tgz#23c0f262a7b57b028e6aa7f4c601d1162ac8db86"
integrity sha512-L141069M2QpyJoGdiHCUVl/gtiefsoC6AdgHFU+6aOu+BRvtd4MjaPRIavTDF59fd6p+GZg3zZx3tb+gb9WuWQ==
"@naturacosmeticos/natds-icons@^1.26.5":
version "1.26.5"
resolved "https://registry.yarnpkg.com/@naturacosmeticos/natds-icons/-/natds-icons-1.26.5.tgz#9c26c44fbcb6898ad6601138f02bc07a005d414d"
integrity sha512-N/7Nk9lcLFpK0rj8gC1XLGBdcbiugryRiq5z0hYiiVTem/1NdyquzBnxEOwuQfaciyFil2KcEkjfRt7XMWLHgA==

"@naturacosmeticos/natds-themes@^0.80.0":
version "0.80.0"
resolved "https://registry.yarnpkg.com/@naturacosmeticos/natds-themes/-/natds-themes-0.80.0.tgz#65f8431d7fb13c5031dd5794bd8920aafbf467f7"
integrity sha512-caEII4XnjiMawVEQnQGj7a9vjldrG0tiQbktIFy8YF8NW7WBt3aQr9CHAnSroFGoILnRXvXLLvsA2zRUn8FzSg==
dependencies:
open-color "^1.8.0"
svg2vectordrawable "2.6.26"
Expand Down

0 comments on commit b5c93d4

Please sign in to comment.