agroptima-design-system 0.18.2 → 0.18.3

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.
@@ -16,17 +16,14 @@ const config: StorybookConfig = {
16
16
  getAbsolutePath('@storybook/addon-interactions'),
17
17
  '@storybook/addon-a11y',
18
18
  '@storybook/addon-designs',
19
+ '@storybook/addon-mdx-gfm'
19
20
  ],
20
21
  framework: {
21
- name: getAbsolutePath('@storybook/nextjs'),
22
+ name: '@storybook/nextjs',
22
23
  options: {},
23
24
  },
24
- docs: {
25
- autodocs: 'tag',
26
- },
27
- core: {
28
- builder: '@storybook/builder-webpack5',
29
- },
25
+ docs: {},
26
+ core: {},
30
27
  webpackFinal: async (config) => {
31
28
  const pathToInlineSvg = resolve(__dirname, '../src/icons')
32
29
 
@@ -3,7 +3,6 @@ import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport'
3
3
 
4
4
  const preview: Preview = {
5
5
  parameters: {
6
- actions: { argTypesRegex: '^on[A-Z].*' },
7
6
  controls: {
8
7
  matchers: {
9
8
  color: /(background|color)$/i,
@@ -26,6 +25,8 @@ const preview: Preview = {
26
25
  viewports: INITIAL_VIEWPORTS,
27
26
  },
28
27
  },
28
+
29
+ tags: ['autodocs'],
29
30
  }
30
31
 
31
32
  export default preview
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agroptima-design-system",
3
- "version": "0.18.2",
3
+ "version": "0.18.3",
4
4
  "scripts": {
5
5
  "dev": "npm run storybook",
6
6
  "storybook": "storybook dev -p 6006 --ci",
@@ -14,22 +14,23 @@
14
14
  "publish:beta": "npm publish --tag beta"
15
15
  },
16
16
  "dependencies": {
17
- "@storybook/addon-designs": "^7.0.5",
18
- "@storybook/addon-viewport": "^7.6.7",
17
+ "@storybook/addon-designs": "^8.0.2",
18
+ "@storybook/addon-viewport": "^8.1.10",
19
19
  "next": "^14.0.3",
20
20
  "react": "^18.2.0",
21
21
  "react-dom": "^18.2.0",
22
22
  "sass": "^1.69.4"
23
23
  },
24
24
  "devDependencies": {
25
- "@storybook/addon-a11y": "^7.5.1",
26
- "@storybook/addon-essentials": "^7.5.0",
27
- "@storybook/addon-interactions": "^7.5.0",
28
- "@storybook/addon-links": "^7.5.0",
29
- "@storybook/blocks": "^7.5.0",
30
- "@storybook/nextjs": "^7.5.0",
31
- "@storybook/react": "^7.5.0",
32
- "@storybook/testing-library": "^0.2.2",
25
+ "@storybook/addon-a11y": "^8.1.10",
26
+ "@storybook/addon-essentials": "^8.1.10",
27
+ "@storybook/addon-interactions": "^8.1.10",
28
+ "@storybook/addon-links": "^8.1.10",
29
+ "@storybook/addon-mdx-gfm": "^8.1.10",
30
+ "@storybook/blocks": "^8.1.10",
31
+ "@storybook/nextjs": "^8.1.10",
32
+ "@storybook/react": "^8.1.10",
33
+ "@storybook/test": "^8.1.10",
33
34
  "@svgr/webpack": "^8.1.0",
34
35
  "@testing-library/jest-dom": "^6.4.2",
35
36
  "@testing-library/react": "^14.2.2",
@@ -42,11 +43,11 @@
42
43
  "eslint-config-next": "^14.0.3",
43
44
  "eslint-config-prettier": "^9.0.0",
44
45
  "eslint-plugin-prettier": "^5.0.1",
45
- "eslint-plugin-storybook": "^0.6.15",
46
+ "eslint-plugin-storybook": "^0.8.0",
46
47
  "jest": "^29.7.0",
47
48
  "jest-axe": "^8.0.0",
48
49
  "jest-environment-jsdom": "^29.7.0",
49
- "storybook": "^7.6.6",
50
+ "storybook": "^8.1.10",
50
51
  "ts-node": "^10.9.2",
51
52
  "typescript": "^5"
52
53
  },
@@ -1,6 +1,13 @@
1
1
  import React from 'react'
2
2
 
3
- import { CardsTable, CardsTableHead, CardsTableHeader, CardsTableRow, CardsTableBody, CardsTableCell } from '../atoms/CardsTable'
3
+ import {
4
+ CardsTable,
5
+ CardsTableHead,
6
+ CardsTableHeader,
7
+ CardsTableRow,
8
+ CardsTableBody,
9
+ CardsTableCell,
10
+ } from '../atoms/CardsTable'
4
11
  import { IconButton } from '../atoms/Button'
5
12
  import { Badge } from '../atoms/Badge'
6
13
 
@@ -0,0 +1,208 @@
1
+ import { Meta } from "@storybook/blocks";
2
+
3
+ <Meta title="Changelog" />
4
+
5
+ # Changelog
6
+
7
+ ## 0.18.3
8
+ * Update docs
9
+
10
+ ## 0.18.2
11
+
12
+ * Add link to CardMenuOption component
13
+ * Add active and error state to CardMenuOption component
14
+ * Add active state to Card component
15
+ * Update QuantitySelector component props
16
+ * Add active and action state to CardsTableRow component
17
+
18
+ ## 0.18.0
19
+
20
+ * Added Collapsible component to Storybook
21
+
22
+ ## 0.17.0
23
+
24
+ * Added QuantitySelector component to Storybook
25
+
26
+ ## 0.16.2
27
+
28
+ * Fixed some icons missing ViewBox
29
+
30
+ ## 0.16.1
31
+
32
+ * Updated Oultined Button background color
33
+ * Added new icons
34
+ * Added fix to Alert component button
35
+ * Fixed responsive glitch bug on CardsTable components
36
+
37
+ ## 0.16.0
38
+
39
+ * Added new shape for FloatingButton component
40
+
41
+ ## 0.15.0
42
+
43
+ * Added FloatingButton component to Storybook
44
+
45
+ BREAKING CHANGES
46
+
47
+ * All button components have been moved to a common folder
48
+
49
+ ## 0.14.1
50
+
51
+ * Added MenuLink and MenuDropdown components to Storybook and remove MenuOption component.
52
+
53
+ ## 0.14.0
54
+
55
+ * Added Menu component to Storybook.
56
+
57
+ ## 0.13.0
58
+
59
+ * Added CardMenuOption component to Storybook.
60
+
61
+ ## 0.12.0
62
+
63
+ * Card component is added to Storybook.
64
+
65
+ ## 0.11.1
66
+
67
+ * Input and Checkbox components `id` prop now it's optional.
68
+ * Fixed TextArea export component.
69
+
70
+ ## 0.11.0
71
+
72
+ * Added TextArea component to Storybook.
73
+ * Input, Checkbox and TextArea components `id` prop now is obtained from `id` or `name`.
74
+
75
+ ## 0.10.0
76
+
77
+ * Cards Table components now are responsive.
78
+ * Added Link style to Typography.
79
+
80
+ ## 0.9.3
81
+
82
+ * Fix alert component width.
83
+
84
+ ## 0.9.2
85
+
86
+ * Alert component can be rendered with fit-content width or 100% depending on the container.
87
+
88
+ ## 0.9.1
89
+
90
+ * Modal and Alert components position fixed has been added.
91
+ * Modal show/hide logic has been removed.
92
+
93
+ ## 0.9.0
94
+
95
+ * Alert component is added to Storybook.
96
+
97
+ ## 0.8.0
98
+
99
+ * Badge component is added to Storybook.
100
+ * IconButton and Button have the default cursor on both link and button versions.
101
+
102
+ ## 0.7.0
103
+
104
+ * Modal component is added to Storybook.
105
+ * Typography styles are added to Storybook.
106
+
107
+ ## 0.6.1
108
+
109
+ * Fixed error type in onChange select props.
110
+ * Added check types to CI.
111
+
112
+ ## 0.6.0
113
+
114
+ Checkbox component is added to Storybook.
115
+
116
+ ## 0.5.0
117
+
118
+ * IconButton component is added to Storybook.
119
+ * Edit and Delete icons have been added.
120
+ * Button outlined disabled styles have been changed to make them look the same as the filled disabled styles.
121
+ * `accessibilityLabel` specific prop has been added as optional to Button, Input, Select and Multiselect components.
122
+ * Select and Multiselect can be closed too when losing focus.
123
+ * Select and Multiselect accept native props.
124
+ * Select component triggers `onChange` event prop.
125
+
126
+ BREAKING CHANGES
127
+
128
+ * Input, Select and Multiselect components accept an `errors` array prop. Previous `invalid` prop is deprecated.
129
+
130
+ ## 0.4.0
131
+
132
+ * CardsTable component suitable to create custom tables is added to Storybook.
133
+ * Cell `align` property has been added to CardsTableCell component.
134
+ * Cell `noWrap` property has been added to CardsTableCell component.
135
+ * Button component can be rendered as NextLink if the `href` prop is provided.
136
+ * Empty State component now accepts Button props.
137
+
138
+ ## 0.3.2
139
+
140
+ * Updated show and show-off icons.
141
+
142
+ ## 0.3.1
143
+
144
+ * Fixed input height not matching other components'.
145
+ * Updated input's icons positions due to the input height change.
146
+ * Fixed button height to not fill the whole available space.
147
+
148
+ ## 0.3.0
149
+
150
+ * Empty State component is added to Storybook.
151
+
152
+ ## 0.2.2
153
+
154
+ * Select and Multiselect options dropdown have a higher z-index.
155
+ * Select and Multiselect can hide its label with `hideLabel` prop.
156
+ * Select and Multiselect can load preselected options with `selected` prop.
157
+
158
+ ## 0.2.1
159
+
160
+ * Colors have been updated due to accessibility issues.
161
+
162
+ ## 0.2.0
163
+
164
+ * Sorting has been added to the CardsTableList component.
165
+
166
+ BREAKING CHANGES
167
+
168
+ * `columnId` prop is required from this version.
169
+ * rows `data` prop has been renamed to `columns`.
170
+
171
+ ## 0.1.3
172
+
173
+ Update left padding on the cells from CardsTableList component
174
+
175
+ ## 0.1.2
176
+
177
+ Cards Table List component is added to Storybook with the following features:
178
+
179
+ * Headers with icon
180
+ * Cells text with default and bold styles
181
+ * Highlight style for the first cell in a row
182
+ * Row default, hover and disabled styles
183
+
184
+ Changelog has been updated with all published versions.
185
+
186
+ The order of the Docs stories has been updated.
187
+
188
+ ## 0.1.1
189
+
190
+ The "required" property has been removed from Input and Select components.
191
+
192
+ The "invalid" property has been created to manage error states.
193
+
194
+ Styles unification has been applied on Select component.
195
+
196
+ ## 0.1.0
197
+
198
+ Multiselect component is added to Storybook.
199
+
200
+ Eye icon has been added to Input of type password on Storybook.
201
+
202
+ Welcome and Docs pages have been added.
203
+
204
+ Icon gallery has been added.
205
+
206
+ Select component has been added.
207
+
208
+ Input component has been added.
@@ -37,7 +37,14 @@ export default meta
37
37
  export const Primary = {
38
38
  render: () => (
39
39
  <Collapsible title="My personal data" name="personal-data">
40
- <div style={{display: 'flex', flexDirection: 'column', width: '100%', gap: '1rem'}}>
40
+ <div
41
+ style={{
42
+ display: 'flex',
43
+ flexDirection: 'column',
44
+ width: '100%',
45
+ gap: '1rem',
46
+ }}
47
+ >
41
48
  <Input
42
49
  accessibilityLabel="Fill the form name"
43
50
  helpText="This text can help you"
@@ -90,7 +97,14 @@ export const Primary = {
90
97
  export const PrimaryOpened = {
91
98
  render: () => (
92
99
  <Collapsible title="My personal data" name="personal-data" open>
93
- <div style={{display: 'flex', flexDirection: 'column', width: '100%', gap: '1rem'}}>
100
+ <div
101
+ style={{
102
+ display: 'flex',
103
+ flexDirection: 'column',
104
+ width: '100%',
105
+ gap: '1rem',
106
+ }}
107
+ >
94
108
  <Input
95
109
  accessibilityLabel="Fill the form name"
96
110
  helpText="This text can help you"
@@ -1,14 +1,21 @@
1
- import { Meta, ColorPalette, ColorItem } from "@storybook/addon-docs";
1
+ import { Meta, ColorPalette, ColorItem } from "@storybook/blocks";
2
2
  import styles from "../docs/colors.module.scss";
3
3
 
4
4
  <Meta title="Design System/Styles/Colors" />
5
+
5
6
  # Colours
7
+
6
8
  ## Elements
9
+
7
10
  <ColorPalette>
8
11
  <ColorItem title="Element 1" colors={{ "colors.$element1": styles.element1 }} />
12
+
9
13
  <ColorItem title="Element 2" colors={{ "colors.$element2": styles.element2 }} />
14
+
10
15
  <ColorItem title="Element 3" colors={{ "colors.$element3": styles.element3 }} />
16
+
11
17
  <ColorItem title="Element 4" colors={{ "colors.$element4": styles.element4 }} />
18
+
12
19
  <ColorItem
13
20
  title="Test"
14
21
  subtitle="All elements colours"
@@ -5,19 +5,18 @@ import * as Icons from '../icons'
5
5
 
6
6
  # Icons
7
7
 
8
- 📁 You can find the source icons on this [link](https://groupeisagri.sharepoint.com/sites/Maya_Espana/Drive%20Agroptima/Forms/AllItems.aspx?id=%2Fsites%2FMaya%5FEspana%2FDrive%20Agroptima%2F06%20%2D%20DESIGN%2F01%2E%20Bodegas%2FDesign%20system%2FRecursos%2Ficons&viewid=c0618b1a%2Dc398%2D461b%2D85e6%2Df088fc5fee72).
8
+ 📁 You can find the source icons on this [link](https://groupeisagri.sharepoint.com/sites/Maya_Espana/Drive%20Agroptima/Forms/AllItems.aspx?id=%2Fsites%2FMaya%5FEspana%2FDrive%20Agroptima%2F06%20%2D%20DESIGN%2F01%2E%20Bodegas%2FDesign%20system%2FRecursos%2Ficons\&viewid=c0618b1a%2Dc398%2D461b%2D85e6%2Df088fc5fee72).
9
9
 
10
10
  ℹ️ If you need to edit the svgo default options, check this [link](https://stackoverflow.com/a/70360615).
11
11
 
12
-
13
12
  <IconGallery>
14
- {
15
- Object.values(Icons).map((Icon) => {
16
- return(
17
- <IconItem name={Icon['name'].substring(3)}>
18
- <Icon />
19
- </IconItem>
20
- )
21
- })
22
- }
13
+ {
14
+ Object.values(Icons).map((Icon) => {
15
+ return(
16
+ <IconItem name={Icon['name'].substring(3)}>
17
+ <Icon />
18
+ </IconItem>
19
+ )
20
+ })
21
+ }
23
22
  </IconGallery>
@@ -0,0 +1,53 @@
1
+ import { Meta } from "@storybook/blocks";
2
+
3
+ <Meta title="Programmers start guide" />
4
+
5
+ # Getting started guide for programmers
6
+
7
+ ## Indigo Project
8
+
9
+ ### Install agroptima-design-system dependency in beta mode
10
+
11
+ This is suitable in order to check the Design System latest changes on Indigo Project without the need of publishing
12
+ a new version on npm.
13
+
14
+ - Download the desired Design System feature branch.
15
+ - On the package.json, if the current version is `0.18.0` change it by `0.18.0-beta.1`.
16
+ - On the Design System project terminal, run `npm run publish:beta`.
17
+ - On the Indigo project terminal, run `npm i agroptima-design-system@beta`.
18
+ - If you need to apply new changes to the Design System branch, increase the beta version like this `0.18.0-beta.2` and run the previous steps.
19
+
20
+ The beta mode allows us to work comfortably between the 2 projects and applying new changes or feedback to the Design System components
21
+ without the need of publishing it on npm.
22
+
23
+
24
+ ### Install agroptima-design-system dependency
25
+
26
+ On the frontend project's package.json, you can see the `agroptima-design-system` dependency.
27
+
28
+ After installing all the project dependencies, run `npm i agroptima-design-system@latest` to have the latest version
29
+ of the design sytem package.
30
+
31
+ ### Import & use design system components
32
+
33
+ Import the desired component:
34
+
35
+ `import { Input } from 'agroptima-design-system/src/atoms/Button'`
36
+
37
+ Use the desired component:
38
+
39
+ ```
40
+ <Button
41
+ type="submit"
42
+ label="Login"
43
+ loading={isSubmitting}
44
+ variant="primary"
45
+ />
46
+ ```
47
+
48
+ ## Sioux Project
49
+
50
+ We have been focused on creating prioritized components, learning how Storybook works and behaves, making the Design System independent
51
+ from the Indigo project and checking the consumption of components from a single project.
52
+
53
+ Once we reach the needed checkpoint, we'll continue the integration of the Design System with Sioux project.
@@ -15,12 +15,22 @@ const meta = {
15
15
  export default meta
16
16
 
17
17
  export const Typography = {
18
- render: () =>
19
- <div style={{fontStyle: '1rem', fontVariant: 'normal', fontWeight: 400, fontFamily:
20
- 'Noto Sans, sans-serif', color: '#444444FF', fontSize: '1rem', lineHeight: 'normal'}}>
21
- <h1>Typography</h1>
22
- <p>ℹ️ The typography defined styles can be checked on the Design tab.</p>
18
+ render: () => (
19
+ <div
20
+ style={{
21
+ fontStyle: '1rem',
22
+ fontVariant: 'normal',
23
+ fontWeight: 400,
24
+ fontFamily: 'Noto Sans, sans-serif',
25
+ color: '#444444FF',
26
+ fontSize: '1rem',
27
+ lineHeight: 'normal',
28
+ }}
29
+ >
30
+ <h1>Typography</h1>
31
+ <p>ℹ️ The typography defined styles can be checked on the Design tab.</p>
23
32
 
24
- <p>On each component, you can check the typography styles live.</p>
25
- </div>
33
+ <p>On each component, you can check the typography styles live.</p>
34
+ </div>
35
+ ),
26
36
  }
@@ -1,37 +1,38 @@
1
- import { Meta } from "@storybook/addon-docs";
1
+ import { Meta } from "@storybook/blocks";
2
2
 
3
3
  <Meta title="Welcome" />
4
+
4
5
  # Welcome 👋
5
6
 
6
7
  ## Get started with our Design System
7
8
 
8
- The design system borns of the collaboration, teamwork and cocreation among <b>designers, programmers and product owners</b>.
9
+ The design system borns of the collaboration, teamwork and cocreation among <b>designers, programmers and product owners</b>.
9
10
 
10
11
  Together, we decide the components needed in our projects as well as the naming to be applied. This way, all departments
11
- speak the same language.
12
+ speak the same language.
12
13
 
13
14
  These decisions are portrayed on the Figma design system project which is considered <b>the only source of truth</b>.
14
15
 
15
- Storybook contains all the designed components built and ready to use for our React projects. It also works as a <b>showcase
16
+ Storybook contains all the designed components built and ready to use for our React projects. It also works as a <b>showcase
16
17
  of the agreed components</b> and styles designed on the Figma project, as well as a <b>live documentation for programmers</b>.
17
18
 
18
19
  ## Technologies
19
- - Figma
20
- - Storybook
21
- - Chromatic
22
- - React
23
- - SASS
20
+
21
+ * Figma
22
+ * Storybook
23
+ * Chromatic
24
+ * React
25
+ * SASS
24
26
 
25
27
  ## Maintainers
26
28
 
27
29
  The design team is in charge of designing and developing the design system components, so they can be consumed on the needed projects.
28
- Laura is responsible of the design part and Vero of the development part.
30
+ Laura is responsible of the design part and Vero of the development part.
29
31
 
30
32
  If you have any questions, proposals, needs or issues, don't hesitate to contact them. You can ping them on slack #dev-design channel.
31
33
 
32
34
  ## How to report issues
33
35
 
34
- You can report an issue on the [Issues section](https://github.com/agroptima/design-system/issues) of the design system repo.
36
+ You can report an issue on the [Issues section](https://github.com/agroptima/design-system/issues) of the design system repo.
35
37
 
36
38
  Contact with the responsibles of the project to make them aware of the reported issue.
37
-
@@ -0,0 +1,55 @@
1
+ import { Meta } from "@storybook/blocks";
2
+
3
+ <Meta title="Component creation workflow" />
4
+
5
+ # Component creation workflow
6
+
7
+ ## Style properties conditioned by variants
8
+
9
+ The following properties are the ones which will change depending on the variant provided:
10
+
11
+ * Font family
12
+ * Border radius
13
+ * Colours: Except Error and Success variants colours which are common for all themes
14
+
15
+ ## How does the Design Team work
16
+
17
+ 🌈 <b>The Figma design system is the only source of truth and the collaboration, teamwork and regard among
18
+ Designers, Programmers and Product Owners</b> 🌈
19
+
20
+ * All components, variants and states must be designed on the Figma file and consumed by our projects.
21
+
22
+ * At the code projects <b>we must not imply any component property because of the
23
+ existence of a similar component variant</b>: If you find something missing on the Figma file, ask for it to the design team.
24
+ The designer will be glad to add it.
25
+
26
+ * The animations won’t be part of the design system, preferably, they will be added through code libraries or done manually
27
+ by the programmers. Nevertheless, if needed, the designer will be happy to prepare a new Figma document with the components
28
+ animation behaviour.
29
+
30
+ * When defining new aliases or variables names of the components in the code, take into account the recommended nomenclature
31
+ shown on this [template](https://groupeisagri-my.sharepoint.com/:x:/p/vvalls/EVaZh6_UNHdGqUuulxvTdbIBXuZKUkW1SvF6vPenbkr8AQ?e=rKb81D).
32
+
33
+ * We recommend to work with the VScode editor where you can use the [Figma VS code plugin](https://marketplace.visualstudio.com/items?itemName=figma.figma-vscode-extension)
34
+ to check the designs and copy the components styles and links.
35
+
36
+ * A design task is created where Laura creates and finishes a component on the Figma design system.
37
+
38
+ * When a component is ready on the Figma design system, a design team programmer can begin the task to add it to the Storybook code project.
39
+ When the component is ready on Storybook, it can be consumed on the needed project on a new task because of the
40
+ design system being on an independent repo.
41
+
42
+ We can use the beta mode in order to work comfortably between the Design System and the frontend
43
+ project, check the Programmer Start Guide for more information.
44
+
45
+ * Each component story defined on Storybook will have the preview of its Figma design on the [Design tab](https://storybook.js.org/docs/sharing/design-integrations#view-designs-in-storybook).
46
+
47
+ * When the component is finished on Storybook code project, the task will be deployed to Chromatic.
48
+ On Jira, it will move to the Design System column, so the designer reviews that everything is ok.
49
+
50
+ * The accessibility tab which shows issues related with the design of the component will be reviewed by the designer.
51
+ The design team programmers also need to keep an eye on this when setting aria properties.
52
+
53
+ * When the designer gives us the ok, it will follow the common Jira workflow, so it will move to In Consensus to review the code.
54
+
55
+ * When the code is reviewed and merged, a new release version will be automatically published on [npm](https://www.npmjs.com/package/agroptima-design-system).
@@ -9,7 +9,7 @@ expect.extend(toHaveNoViolations)
9
9
  const stories = Object.values(components).map((component) => {
10
10
  return {
11
11
  title: component.default.title,
12
- stories: composeStories(component),
12
+ stories: composeStories(component as any),
13
13
  }
14
14
  })
15
15
 
@@ -1,188 +0,0 @@
1
- import { Meta } from "@storybook/addon-docs";
2
-
3
- <Meta title="Changelog" />
4
- # Changelog
5
-
6
- ## 0.18.2
7
- - Add link to CardMenuOption component
8
- - Add active and error state to CardMenuOption component
9
- - Add active state to Card component
10
- - Update QuantitySelector component props
11
- - Add active and action state to CardsTableRow component
12
-
13
- ## 0.18.0
14
- - Added Collapsible component to Storybook
15
-
16
- ## 0.17.0
17
- - Added QuantitySelector component to Storybook
18
-
19
- ## 0.16.2
20
- - Fixed some icons missing ViewBox
21
-
22
- ## 0.16.1
23
- - Updated Oultined Button background color
24
- - Added new icons
25
- - Added fix to Alert component button
26
- - Fixed responsive glitch bug on CardsTable components
27
-
28
- ## 0.16.0
29
- - Added new shape for FloatingButton component
30
-
31
- ## 0.15.0
32
- - Added FloatingButton component to Storybook
33
-
34
- BREAKING CHANGES
35
- - All button components have been moved to a common folder
36
-
37
- ## 0.14.1
38
- - Added MenuLink and MenuDropdown components to Storybook and remove MenuOption component.
39
-
40
- ## 0.14.0
41
- - Added Menu component to Storybook.
42
-
43
- ## 0.13.0
44
- - Added CardMenuOption component to Storybook.
45
-
46
- ## 0.12.0
47
- - Card component is added to Storybook.
48
-
49
- ## 0.11.1
50
- - Input and Checkbox components `id` prop now it's optional.
51
- - Fixed TextArea export component.
52
-
53
- ## 0.11.0
54
- - Added TextArea component to Storybook.
55
- - Input, Checkbox and TextArea components `id` prop now is obtained from `id` or `name`.
56
-
57
- ## 0.10.0
58
-
59
- - Cards Table components now are responsive.
60
- - Added Link style to Typography.
61
-
62
- ## 0.9.3
63
-
64
- - Fix alert component width.
65
-
66
- ## 0.9.2
67
-
68
- - Alert component can be rendered with fit-content width or 100% depending on the container.
69
-
70
- ## 0.9.1
71
-
72
- - Modal and Alert components position fixed has been added.
73
- - Modal show/hide logic has been removed.
74
-
75
- ## 0.9.0
76
-
77
- - Alert component is added to Storybook.
78
-
79
- ## 0.8.0
80
-
81
- - Badge component is added to Storybook.
82
- - IconButton and Button have the default cursor on both link and button versions.
83
-
84
- ## 0.7.0
85
-
86
- - Modal component is added to Storybook.
87
- - Typography styles are added to Storybook.
88
-
89
- ## 0.6.1
90
-
91
- - Fixed error type in onChange select props.
92
- - Added check types to CI.
93
-
94
- ## 0.6.0
95
-
96
- Checkbox component is added to Storybook.
97
-
98
- ## 0.5.0
99
-
100
- - IconButton component is added to Storybook.
101
- - Edit and Delete icons have been added.
102
- - Button outlined disabled styles have been changed to make them look the same as the filled disabled styles.
103
- - `accessibilityLabel` specific prop has been added as optional to Button, Input, Select and Multiselect components.
104
- - Select and Multiselect can be closed too when losing focus.
105
- - Select and Multiselect accept native props.
106
- - Select component triggers `onChange` event prop.
107
-
108
- BREAKING CHANGES
109
- - Input, Select and Multiselect components accept an `errors` array prop. Previous `invalid` prop is deprecated.
110
-
111
- ## 0.4.0
112
-
113
- - CardsTable component suitable to create custom tables is added to Storybook.
114
- - Cell `align` property has been added to CardsTableCell component.
115
- - Cell `noWrap` property has been added to CardsTableCell component.
116
- - Button component can be rendered as NextLink if the `href` prop is provided.
117
- - Empty State component now accepts Button props.
118
-
119
- ## 0.3.2
120
-
121
- - Updated show and show-off icons.
122
-
123
- ## 0.3.1
124
-
125
- - Fixed input height not matching other components'.
126
- - Updated input's icons positions due to the input height change.
127
- - Fixed button height to not fill the whole available space.
128
-
129
- ## 0.3.0
130
-
131
- - Empty State component is added to Storybook.
132
-
133
- ## 0.2.2
134
-
135
- - Select and Multiselect options dropdown have a higher z-index.
136
- - Select and Multiselect can hide its label with `hideLabel` prop.
137
- - Select and Multiselect can load preselected options with `selected` prop.
138
-
139
- ## 0.2.1
140
-
141
- - Colors have been updated due to accessibility issues.
142
-
143
- ## 0.2.0
144
-
145
- - Sorting has been added to the CardsTableList component.
146
-
147
- BREAKING CHANGES
148
- - `columnId` prop is required from this version.
149
- - rows `data` prop has been renamed to `columns`.
150
-
151
- ## 0.1.3
152
-
153
- Update left padding on the cells from CardsTableList component
154
-
155
- ## 0.1.2
156
-
157
- Cards Table List component is added to Storybook with the following features:
158
-
159
- - Headers with icon
160
- - Cells text with default and bold styles
161
- - Highlight style for the first cell in a row
162
- - Row default, hover and disabled styles
163
-
164
- Changelog has been updated with all published versions.
165
-
166
- The order of the Docs stories has been updated.
167
-
168
- ## 0.1.1
169
-
170
- The "required" property has been removed from Input and Select components.
171
-
172
- The "invalid" property has been created to manage error states.
173
-
174
- Styles unification has been applied on Select component.
175
-
176
- ## 0.1.0
177
-
178
- Multiselect component is added to Storybook.
179
-
180
- Eye icon has been added to Input of type password on Storybook.
181
-
182
- Welcome and Docs pages have been added.
183
-
184
- Icon gallery has been added.
185
-
186
- Select component has been added.
187
-
188
- Input component has been added.
@@ -1,38 +0,0 @@
1
- import { Meta } from "@storybook/addon-docs";
2
-
3
- <Meta title="Programmers start guide" />
4
- # Getting started guide for programmers
5
-
6
- ## Indigo Project
7
-
8
- ### Install agroptima-design-system dependency
9
-
10
- On the frontend project's package.json, you can see the `agroptima-design-system` dependency.
11
-
12
- After installing all the project dependencies, run `npm i agroptima-design-system@latest` to have the latest version
13
- of the design sytem package.
14
-
15
- ### Import & use design system components
16
-
17
- Import the desired component:
18
-
19
- `import { Input } from 'agroptima-design-system/src/atoms/Button'`
20
-
21
- Use the desired component:
22
-
23
- ```
24
- <Button
25
- type="submit"
26
- label="Login"
27
- loading={isSubmitting}
28
- variant="primary"
29
- />
30
- ```
31
-
32
-
33
- ## Sioux Project
34
-
35
- We have been focused on creating prioritized components, learning how Storybook works and behaves, making the Design System independent
36
- from the Indigo project and checking the consumption of components from a single project.
37
-
38
- Once we reach the needed checkpoint, we'll continue the integration of the Design System with Sioux project.
@@ -1,54 +0,0 @@
1
- import { Meta } from "@storybook/addon-docs";
2
-
3
- <Meta title="Component creation workflow" />
4
- # Component creation workflow
5
-
6
- ## Style properties conditioned by variants
7
-
8
- The following properties are the ones which will change depending on the variant provided:
9
-
10
- - Font family
11
- - Border radius
12
- - Colours: Except Error and Success variants colours which are common for all themes
13
-
14
- ## How does the Design Team work
15
-
16
- 🌈 <b>The Figma design system is the only source of truth and the collaboration, teamwork and regard among
17
- Designers, Programmers and Product Owners</b> 🌈
18
-
19
- - All components, variants and states must be designed on the Figma file and consumed by our projects.
20
-
21
- - At the code projects <b>we must not imply any component property because of the
22
- existence of a similar component variant</b>: If you find something missing on the Figma file, ask for it to the design team.
23
- The designer will be glad to add it.
24
-
25
- - The animations won’t be part of the design system, preferably, they will be added through code libraries or done manually
26
- by the programmers. Nevertheless, if needed, the designer will be happy to prepare a new Figma document with the components
27
- animation behaviour.
28
-
29
- - When defining new aliases or variables names of the components in the code, take into account the recommended nomenclature
30
- shown on this [template](https://groupeisagri-my.sharepoint.com/:x:/p/vvalls/EVaZh6_UNHdGqUuulxvTdbIBXuZKUkW1SvF6vPenbkr8AQ?e=rKb81D).
31
-
32
- - We recommend to work with the VScode editor where you can use the [Figma VS code plugin](https://marketplace.visualstudio.com/items?itemName=figma.figma-vscode-extension)
33
- to check the designs and copy the components styles and links.
34
-
35
- - A design task is created where Laura creates and finishes a component on the Figma design system.
36
-
37
- - When a component is ready on the Figma design system, a design team programmer can begin the task to add it to the Storybook code project.
38
- When the component is ready on Storybook, it can be consumed on the needed project on a new task because of the
39
- design system being on an independent repo.
40
-
41
- - Each component story defined on Storybook will have the preview of its Figma design on the [Design tab](https://storybook.js.org/docs/sharing/design-integrations#view-designs-in-storybook).
42
- <img width='70%' src='https://storybook.js.org/25231d61af791e6586689324e02460e3/design-addon-panel.png'/>
43
-
44
- - When the component is finished on Storybook code project, the task will be deployed to Chromatic.
45
- On Jira, it will move to the Design System column, so the designer reviews that everything is ok.
46
-
47
- - The accessibility tab which shows issues related with the design of the component will be reviewed by the designer.
48
- The design team programmers also need to keep an eye on this when setting aria properties.
49
- <img width='80%' src='https://storybook.js.org/2920682a0a74969419ca80ef277ffdca/storybook-a11y-addon-optimized.png' />
50
-
51
- - When the designer gives us the ok, it will follow the common Jira workflow, so it will move to In Consensus to review the code.
52
-
53
-
54
-