@innovaccer/design-system 4.2.0 → 4.4.0
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 +84 -2
- package/CONTRIBUTING.md +51 -11
- package/css/dist/index.css +40 -0
- package/css/dist/index.css.map +1 -1
- package/css/src/components/meter.module.css +39 -0
- package/dist/brotli/index.js +1 -1
- package/dist/brotli/index.js.br +0 -0
- package/dist/cjs/index.js +1 -1
- package/dist/core/components/atoms/meter/Meter.d.ts +64 -0
- package/dist/core/components/atoms/meter/Step.d.ts +21 -0
- package/dist/core/components/atoms/meter/index.d.ts +2 -0
- package/dist/core/components/atoms/meter/useMeterValues.d.ts +9 -0
- package/dist/core/components/organisms/grid/Grid.d.ts +1 -0
- package/dist/core/components/organisms/grid/rowUtility.d.ts +1 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.type.d.ts +1 -0
- package/dist/esm/index.js +900 -722
- package/dist/figma/Calendar.figma.d.ts +1 -0
- package/dist/figma/ChatBubble.figma.d.ts +1 -0
- package/dist/figma/ChoiceList.figma.d.ts +1 -0
- package/dist/figma/Combobox.figma.d.ts +1 -0
- package/dist/figma/DatePicker.figma.d.ts +1 -0
- package/dist/figma/DateRangePicker.figma.d.ts +1 -0
- package/dist/figma/HorizontalNav.figma.d.ts +1 -0
- package/dist/figma/InlineMessage.figma.d.ts +1 -0
- package/dist/figma/Listbox.figma.d.ts +1 -0
- package/dist/figma/Menu.figma.d.ts +1 -0
- package/dist/figma/Meter.figma.d.ts +1 -0
- package/dist/figma/PageHeader.figma.d.ts +1 -0
- package/dist/figma/Select.figma.d.ts +1 -0
- package/dist/figma/Table.figma.d.ts +1 -0
- package/dist/figma/TimePicker.figma.d.ts +1 -0
- package/dist/figma/VerticalNav.figma.d.ts +1 -0
- package/dist/gzip/index.js +1 -1
- package/dist/gzip/index.js.gz +0 -0
- package/dist/index.js +749 -579
- package/dist/index.js.map +1 -1
- package/dist/index.umd.css +40 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/tsconfig.type.tsbuildinfo +318 -14
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,86 @@
|
|
|
1
|
-
## 4.
|
|
1
|
+
## 4.4.0 (2025-03-04)
|
|
2
|
+
|
|
3
|
+
### Highlights
|
|
4
|
+
|
|
5
|
+
- fix(dropdown): update min-height for multiple dropdown on same page (2ee15679)
|
|
6
|
+
- fix(tooltip): remove style tag from tooltip component (6509c9da)
|
|
7
|
+
- fix(grid): update props order to accept classname correctly in grid (e17c0704)
|
|
8
|
+
|
|
9
|
+
### Breaking changes
|
|
10
|
+
|
|
11
|
+
NA
|
|
12
|
+
|
|
13
|
+
### Migration guide
|
|
14
|
+
|
|
15
|
+
NA
|
|
16
|
+
|
|
17
|
+
### Deprecations
|
|
18
|
+
|
|
19
|
+
NA
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
NA
|
|
24
|
+
|
|
25
|
+
### Fixes
|
|
26
|
+
|
|
27
|
+
- fix(dropdown): update min-height for multiple dropdown on same page (2ee15679)
|
|
28
|
+
- fix(tooltip): remove style tag from tooltip component (6509c9da)
|
|
29
|
+
- fix(grid): update props order to accept classname correctly in grid (e17c0704)
|
|
30
|
+
|
|
31
|
+
### Improvements
|
|
32
|
+
|
|
33
|
+
- chore: add contributing guideline for new components (7600ddb5)
|
|
34
|
+
- refactor(listbox): replace dropdown with select & menu in listbox stories (0db83b81)
|
|
35
|
+
- refactor(patterns): replace dropdown with select in patterns stories (55aaff07)
|
|
36
|
+
|
|
37
|
+
### Documentation
|
|
38
|
+
|
|
39
|
+
- docs(chatBubble): update story preview link for chat bubble component (0a099aaf)
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## 4.3.0 (2025-02-11)
|
|
44
|
+
|
|
45
|
+
### Highlights
|
|
46
|
+
|
|
47
|
+
- feat(meter): add new meter component (8610ed3d)
|
|
48
|
+
- feat(organisms): add figma code connect for organisms components (e8cfb1c0)
|
|
49
|
+
- feat(table): add support to expand nested rows in table (abf0364e)
|
|
50
|
+
|
|
51
|
+
### Breaking changes
|
|
52
|
+
|
|
53
|
+
NA
|
|
54
|
+
|
|
55
|
+
### Migration guide
|
|
56
|
+
|
|
57
|
+
NA
|
|
58
|
+
|
|
59
|
+
### Deprecations
|
|
60
|
+
|
|
61
|
+
NA
|
|
62
|
+
|
|
63
|
+
### Features
|
|
64
|
+
|
|
65
|
+
- feat(meter): add new meter component (8610ed3d)
|
|
66
|
+
- feat(organisms): add figma code connect for organisms components (e8cfb1c0)
|
|
67
|
+
- feat(table): add support to expand nested rows in table (abf0364e)
|
|
68
|
+
|
|
69
|
+
### Fixes
|
|
70
|
+
|
|
71
|
+
- fix(select): update select trigger classes for overflow behavior (543aa6ce)
|
|
72
|
+
|
|
73
|
+
### Improvements
|
|
74
|
+
|
|
75
|
+
NA
|
|
76
|
+
|
|
77
|
+
### Documentation
|
|
78
|
+
|
|
79
|
+
- docs(meter): add meter component documentation (804ef4dc)
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## 4.2.0 (2025-01-30)
|
|
2
84
|
|
|
3
85
|
### Highlights
|
|
4
86
|
|
|
@@ -59,7 +141,7 @@ NA
|
|
|
59
141
|
|
|
60
142
|
---
|
|
61
143
|
|
|
62
|
-
## 4.1.0 (2025-
|
|
144
|
+
## 4.1.0 (2025-01-17)
|
|
63
145
|
|
|
64
146
|
### Highlights
|
|
65
147
|
|
package/CONTRIBUTING.md
CHANGED
|
@@ -33,7 +33,7 @@ the existing issue to show that it's affecting multiple people.
|
|
|
33
33
|
### Check If It's Been Fixed
|
|
34
34
|
|
|
35
35
|
Check if the issue has been fixed — try to reproduce it using the latest
|
|
36
|
-
`master` or
|
|
36
|
+
`master` or `develop` branch in the repository.
|
|
37
37
|
|
|
38
38
|
## Request Features
|
|
39
39
|
|
|
@@ -70,7 +70,7 @@ Please provide:
|
|
|
70
70
|
npm run dev
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
-
The server runs on port 5000 and url is opened
|
|
73
|
+
The server runs on port 5000 and url is opened automatically in browser as the project uses storybook for component development and documentation.
|
|
74
74
|
|
|
75
75
|
### Coding guidelines for a component
|
|
76
76
|
|
|
@@ -131,7 +131,7 @@ mkdir __stories__/variants
|
|
|
131
131
|
- **Single Story**: Last part of title will be hoisted up to replace their parent component in the sidebar. Example: `All`
|
|
132
132
|
- `component`: Used by addons for automatic prop table generation and display of other component metadata
|
|
133
133
|
- `parameters`: Used to control the behavior of Storybook features and addons.
|
|
134
|
-
- `
|
|
134
|
+
- `sub-components`: Used to include sub-components in prop table.
|
|
135
135
|
|
|
136
136
|
```tsx
|
|
137
137
|
// Storybook CSF Format
|
|
@@ -523,7 +523,7 @@ export const controlledCheckbox = () => {
|
|
|
523
523
|
};
|
|
524
524
|
```
|
|
525
525
|
|
|
526
|
-
- At this point, we will only see JSX in our live code editor. To fix this, we will write
|
|
526
|
+
- At this point, we will only see JSX in our live code editor. To fix this, we will write custom code for docs page.
|
|
527
527
|
|
|
528
528
|
```
|
|
529
529
|
const customCode = `() => {
|
|
@@ -712,7 +712,7 @@ For checking prettier issues:
|
|
|
712
712
|
npm run prettier:check
|
|
713
713
|
```
|
|
714
714
|
|
|
715
|
-
For
|
|
715
|
+
For formatting prettier issues:
|
|
716
716
|
|
|
717
717
|
```bash
|
|
718
718
|
npm run prettier
|
|
@@ -724,7 +724,7 @@ For checking lint issues:
|
|
|
724
724
|
npm run lint:check
|
|
725
725
|
```
|
|
726
726
|
|
|
727
|
-
For
|
|
727
|
+
For formatting lint issues:
|
|
728
728
|
|
|
729
729
|
```bash
|
|
730
730
|
npm run lint
|
|
@@ -759,8 +759,8 @@ semantic versioning.
|
|
|
759
759
|
|
|
760
760
|
For example:
|
|
761
761
|
|
|
762
|
-
- `feat: A new feature`
|
|
763
|
-
- `fix: A bug fix`
|
|
762
|
+
- `feat(componentName): A new feature`
|
|
763
|
+
- `fix(componentName): A bug fix`
|
|
764
764
|
|
|
765
765
|
A commit of the type **feat** introduces a new feature to the codebase
|
|
766
766
|
(this correlates with MINOR in semantic versioning).
|
|
@@ -768,7 +768,7 @@ A commit of the type **feat** introduces a new feature to the codebase
|
|
|
768
768
|
e.g.:
|
|
769
769
|
|
|
770
770
|
```
|
|
771
|
-
feat: xxxxxxxxxx
|
|
771
|
+
feat(componentName): xxxxxxxxxx
|
|
772
772
|
```
|
|
773
773
|
|
|
774
774
|
A commit of the type **fix** patches a bug in your codebase (this correlates with PATCH in semantic versioning).
|
|
@@ -776,12 +776,14 @@ A commit of the type **fix** patches a bug in your codebase (this correlates wit
|
|
|
776
776
|
e.g.:
|
|
777
777
|
|
|
778
778
|
```
|
|
779
|
-
fix: xxxxxxxxxx
|
|
779
|
+
fix(componentName): xxxxxxxxxx
|
|
780
780
|
```
|
|
781
781
|
|
|
782
|
-
Commits types such as
|
|
782
|
+
Commits types such as `docs:`,`style:`,`refactor:`,`perf:`,`test:`
|
|
783
783
|
and `chore:` are valid but have no effect on versioning. **It would be great if you use them.**
|
|
784
784
|
|
|
785
|
+
Begin your commit message with the type of commit (`feat`, `fix`, `docs`,`style`,`refactor`,`perf`,`test`) followed by the relevant component name.
|
|
786
|
+
|
|
785
787
|
**PRs that do not follow the commit message guidelines will not be merged.**
|
|
786
788
|
|
|
787
789
|
## Update Tests
|
|
@@ -829,3 +831,41 @@ To met the above criteria make sure following things are addressed.
|
|
|
829
831
|
2. All the Storybook Accessibility plugin checks are met.
|
|
830
832
|
3. All the [WCAG 2.0 checks AA are covered](https://docs.google.com/spreadsheets/d/1q7SaO-Bki9RIusQKB01Q8WclHvmERXGU1rdl4ou9s5E/edit#gid=1091897153)
|
|
831
833
|
4. All the [WAI-ARIA Authoring Practices](https://www.w3.org/TR/wai-aria-practices-1.2/) are met.
|
|
834
|
+
|
|
835
|
+
## New Component Checklist
|
|
836
|
+
|
|
837
|
+
When developing a new component, please follow these guidelines:
|
|
838
|
+
|
|
839
|
+
- **Develop the Component**:
|
|
840
|
+
- Develop the new component following the project's coding standards and best practices.
|
|
841
|
+
- For more details, refer to the [Component Development Guidelines](#development).
|
|
842
|
+
|
|
843
|
+
- **Accessibility**:
|
|
844
|
+
- Ensure the component is accessible by adhering to all accessibility guidelines.
|
|
845
|
+
- For more details, refer to the [Accessibility Guidelines](#accessibility).
|
|
846
|
+
|
|
847
|
+
- **Animations**:
|
|
848
|
+
- Add animations to the component, if necessary, to enhance user experience.
|
|
849
|
+
- Ensure animations are smooth and do not hinder accessibility.
|
|
850
|
+
|
|
851
|
+
- **Keyboard Interactions**:
|
|
852
|
+
- Implement keyboard interactions for the component to ensure it is fully navigable using a keyboard.
|
|
853
|
+
- Test all keyboard interactions to ensure they work as expected.
|
|
854
|
+
|
|
855
|
+
- **Storybook Stories**:
|
|
856
|
+
- Write comprehensive stories in Storybook to showcase all features and props of the component.
|
|
857
|
+
- Ensure stories cover various use cases and edge cases.
|
|
858
|
+
- For more details, refer to the [Storybook Guidelines](#docpage).
|
|
859
|
+
|
|
860
|
+
- **Test Cases**:
|
|
861
|
+
- Write test cases to verify the component's functionality.
|
|
862
|
+
- Ensure tests cover all possible scenarios, including edge cases.
|
|
863
|
+
- For more details, refer to the [Testing Guidelines](#testing).
|
|
864
|
+
|
|
865
|
+
- **Documentation**:
|
|
866
|
+
- Document the usage guidelines for the component inside the `docs` directory.
|
|
867
|
+
|
|
868
|
+
- **Figma Integration**:
|
|
869
|
+
- Connect the newly added component with Figma using `figma-code-connect` plugin by creating respective component file in the `figma` directory.
|
|
870
|
+
- Ensure the design in Figma matches the implementation in the codebase.
|
|
871
|
+
- For more details, refer to the [Figma Integration Guidelines](https://www.figma.com/code-connect-docs/react/).
|
package/css/dist/index.css
CHANGED
|
@@ -5429,6 +5429,46 @@ body {
|
|
|
5429
5429
|
margin-right: 0;
|
|
5430
5430
|
}
|
|
5431
5431
|
|
|
5432
|
+
.Meter {
|
|
5433
|
+
display: flex;
|
|
5434
|
+
align-items: center;
|
|
5435
|
+
}
|
|
5436
|
+
|
|
5437
|
+
.Meter-Step {
|
|
5438
|
+
border-radius: 50%;
|
|
5439
|
+
}
|
|
5440
|
+
|
|
5441
|
+
.Meter-Step--small {
|
|
5442
|
+
width: var(--spacing-m);
|
|
5443
|
+
height: var(--spacing);
|
|
5444
|
+
}
|
|
5445
|
+
|
|
5446
|
+
.Meter-Step--regular {
|
|
5447
|
+
width: var(--spacing);
|
|
5448
|
+
height: var(--spacing);
|
|
5449
|
+
}
|
|
5450
|
+
|
|
5451
|
+
.Meter-Step--large {
|
|
5452
|
+
width: var(--spacing-l);
|
|
5453
|
+
height: var(--spacing-l);
|
|
5454
|
+
}
|
|
5455
|
+
|
|
5456
|
+
.Meter-Step--info {
|
|
5457
|
+
background: var(--primary);
|
|
5458
|
+
}
|
|
5459
|
+
|
|
5460
|
+
.Meter-Step--warning {
|
|
5461
|
+
background: var(--warning);
|
|
5462
|
+
}
|
|
5463
|
+
|
|
5464
|
+
.Meter-Step--alert {
|
|
5465
|
+
background: var(--alert);
|
|
5466
|
+
}
|
|
5467
|
+
|
|
5468
|
+
.Meter-Step--success {
|
|
5469
|
+
background: var(--success);
|
|
5470
|
+
}
|
|
5471
|
+
|
|
5432
5472
|
.MetricInput-input::-ms-clear {
|
|
5433
5473
|
display: none;
|
|
5434
5474
|
}
|