@innovaccer/design-system 4.24.0 → 4.25.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 +39 -0
- package/css/dist/index.css +154 -29
- package/css/dist/index.css.map +1 -1
- package/css/src/components/chip.module.css +31 -13
- package/css/src/components/datePicker.module.css +9 -0
- package/css/src/components/dateRangePicker.module.css +5 -0
- package/css/src/components/horizontalNav.module.css +4 -8
- package/css/src/components/input.module.css +1 -0
- package/css/src/components/pageHeader.module.css +103 -8
- 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/heading/Heading.d.ts +1 -0
- package/dist/core/components/atoms/message/Message.d.ts +1 -0
- package/dist/core/components/atoms/subheading/Subheading.d.ts +1 -0
- package/dist/core/components/atoms/text/Text.d.ts +1 -0
- package/dist/core/components/molecules/emptyState/EmptyState.d.ts +1 -0
- package/dist/core/components/molecules/emptyState/EmptyStateTitle.d.ts +1 -0
- package/dist/core/components/molecules/modal/ModalHeader.d.ts +1 -0
- package/dist/core/components/molecules/overlayHeader/OverlayHeader.d.ts +1 -0
- package/dist/core/components/organisms/pageHeader/utils.d.ts +9 -9
- package/dist/esm/index.js +568 -370
- package/dist/gzip/index.js +1 -1
- package/dist/gzip/index.js.gz +0 -0
- package/dist/index.js +536 -375
- package/dist/index.js.map +1 -1
- package/dist/index.umd.css +154 -29
- package/dist/index.umd.js +1 -1
- package/dist/types/tsconfig.type.tsbuildinfo +30 -29
- package/package.json +1 -1
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
border-radius: var(--border-radius-30);
|
|
5
|
-
padding-right: var(--spacing-20);
|
|
6
|
-
padding-top: var(--spacing-05);
|
|
7
|
-
padding-bottom: var(--spacing-05);
|
|
8
5
|
width: fit-content;
|
|
9
6
|
justify-content: space-between;
|
|
10
7
|
border-style: solid;
|
|
@@ -17,11 +14,9 @@
|
|
|
17
14
|
|
|
18
15
|
.Chip-size--regular {
|
|
19
16
|
height: var(--spacing-60);
|
|
20
|
-
padding-left: var(--spacing-20);
|
|
21
17
|
}
|
|
22
18
|
.Chip-size--small {
|
|
23
19
|
height: 20px;
|
|
24
|
-
padding-left: var(--spacing-15);
|
|
25
20
|
}
|
|
26
21
|
|
|
27
22
|
.Chip-wrapper {
|
|
@@ -29,6 +24,29 @@
|
|
|
29
24
|
align-items: center;
|
|
30
25
|
}
|
|
31
26
|
|
|
27
|
+
.Chip-content {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
min-width: 0;
|
|
31
|
+
flex: 1;
|
|
32
|
+
align-self: stretch;
|
|
33
|
+
padding-top: var(--spacing-05);
|
|
34
|
+
padding-bottom: var(--spacing-05);
|
|
35
|
+
padding-right: var(--spacing-20);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.Chip-content--regular {
|
|
39
|
+
padding-left: var(--spacing-20);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.Chip-content--small {
|
|
43
|
+
padding-left: var(--spacing-15);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.Chip-content:focus-visible {
|
|
47
|
+
outline: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
32
50
|
.Chip-icon--left {
|
|
33
51
|
margin-right: var(--spacing-10);
|
|
34
52
|
display: flex;
|
|
@@ -62,7 +80,7 @@
|
|
|
62
80
|
background: var(--secondary);
|
|
63
81
|
}
|
|
64
82
|
|
|
65
|
-
.Chip--action:focus-visible {
|
|
83
|
+
.Chip--action:has(.Chip-content:focus-visible) {
|
|
66
84
|
outline: var(--border-width-05) solid var(--primary-focus);
|
|
67
85
|
outline-offset: var(--spacing-05);
|
|
68
86
|
}
|
|
@@ -90,7 +108,7 @@
|
|
|
90
108
|
border-color: var(--secondary-dark);
|
|
91
109
|
}
|
|
92
110
|
|
|
93
|
-
.Chip--selection:focus-visible {
|
|
111
|
+
.Chip--selection:has(.Chip-content:focus-visible) {
|
|
94
112
|
outline: var(--border-width-05) solid var(--primary-focus);
|
|
95
113
|
outline-offset: var(--spacing-05);
|
|
96
114
|
}
|
|
@@ -119,7 +137,7 @@
|
|
|
119
137
|
box-shadow: inset 0 0 0 1px var(--primary);
|
|
120
138
|
}
|
|
121
139
|
|
|
122
|
-
.Chip-selection--selected:focus-visible {
|
|
140
|
+
.Chip-selection--selected:has(.Chip-content:focus-visible) {
|
|
123
141
|
outline: var(--border-width-05) solid var(--primary-focus);
|
|
124
142
|
outline-offset: var(--spacing-05);
|
|
125
143
|
}
|
|
@@ -160,7 +178,7 @@
|
|
|
160
178
|
background: var(--secondary);
|
|
161
179
|
}
|
|
162
180
|
|
|
163
|
-
.Chip--input:focus-visible {
|
|
181
|
+
.Chip--input:has(.Chip-content:focus-visible) {
|
|
164
182
|
outline: var(--border-width-05) solid var(--primary-focus);
|
|
165
183
|
outline-offset: var(--spacing-05);
|
|
166
184
|
}
|
|
@@ -210,14 +228,14 @@
|
|
|
210
228
|
background-color: var(--primary-light);
|
|
211
229
|
}
|
|
212
230
|
|
|
213
|
-
.Chip-selection--disabled:focus-visible,
|
|
231
|
+
.Chip-selection--disabled:has(.Chip-content:focus-visible),
|
|
214
232
|
.Chip-icon-disabled--right:focus-visible,
|
|
215
|
-
.Chip-selection--selectedDisabled:focus-visible,
|
|
216
|
-
.Chip-input--disabled:focus-visible {
|
|
233
|
+
.Chip-selection--selectedDisabled:has(.Chip-content:focus-visible),
|
|
234
|
+
.Chip-input--disabled:has(.Chip-content:focus-visible) {
|
|
217
235
|
outline: none;
|
|
218
236
|
}
|
|
219
237
|
|
|
220
|
-
.Chip-icon--clear {
|
|
238
|
+
.Chip-icon--clear .Chip-content {
|
|
221
239
|
padding-right: 0;
|
|
222
240
|
}
|
|
223
241
|
|
|
@@ -27,8 +27,7 @@
|
|
|
27
27
|
outline: none;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.HorizontalNav-menu--default:focus-visible
|
|
31
|
-
.HorizontalNav-menu--default:focus {
|
|
30
|
+
.HorizontalNav-menu--default:focus-visible {
|
|
32
31
|
outline: var(--border-width-05) solid var(--primary-focus);
|
|
33
32
|
outline-offset: var(--spacing-05);
|
|
34
33
|
}
|
|
@@ -46,8 +45,7 @@
|
|
|
46
45
|
box-shadow: 0 0 0 var(--border-width-05) var(--primary);
|
|
47
46
|
}
|
|
48
47
|
|
|
49
|
-
.HorizontalNav-menu--active:focus-visible
|
|
50
|
-
.HorizontalNav-menu--active:focus {
|
|
48
|
+
.HorizontalNav-menu--active:focus-visible {
|
|
51
49
|
background-color: var(--primary-ultra-light);
|
|
52
50
|
outline: var(--border-width-05) solid var(--primary-focus);
|
|
53
51
|
outline-offset: var(--spacing-10);
|
|
@@ -67,8 +65,7 @@
|
|
|
67
65
|
color: var(--primary-darker);
|
|
68
66
|
}
|
|
69
67
|
|
|
70
|
-
.HorizontalNav-menu--active:focus-visible:active
|
|
71
|
-
.HorizontalNav-menu--active:focus:active {
|
|
68
|
+
.HorizontalNav-menu--active:focus-visible:active {
|
|
72
69
|
background-color: var(--primary-lighter);
|
|
73
70
|
box-shadow: 0 0 0 var(--border-width-05) var(--primary-dark);
|
|
74
71
|
}
|
|
@@ -104,8 +101,7 @@
|
|
|
104
101
|
}
|
|
105
102
|
|
|
106
103
|
.HorizontalNav-menu--active:active,
|
|
107
|
-
.HorizontalNav-menu--active:focus-visible:active
|
|
108
|
-
.HorizontalNav-menu--active:focus:active {
|
|
104
|
+
.HorizontalNav-menu--active:focus-visible:active {
|
|
109
105
|
border-color: Highlight;
|
|
110
106
|
box-shadow: none;
|
|
111
107
|
}
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
border-bottom: none;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
.PageHeader-bottom--withTabs {
|
|
18
|
+
margin-top: var(--spacing-30);
|
|
19
|
+
}
|
|
20
|
+
|
|
17
21
|
.PageHeader .Row {
|
|
18
22
|
width: 100%;
|
|
19
23
|
}
|
|
@@ -41,16 +45,11 @@
|
|
|
41
45
|
}
|
|
42
46
|
|
|
43
47
|
.PageHeader-navigationWrapper {
|
|
44
|
-
margin-top: var(--spacing-
|
|
48
|
+
margin-top: var(--spacing-30);
|
|
45
49
|
}
|
|
46
50
|
|
|
47
|
-
.PageHeader
|
|
48
|
-
|
|
49
|
-
align-items: center;
|
|
50
|
-
margin-top: 0 !important;
|
|
51
|
-
padding-right: var(--spacing-20);
|
|
52
|
-
padding-left: var(--spacing-20);
|
|
53
|
-
display: flex;
|
|
51
|
+
.PageHeader-navigationWrapper--noMargin {
|
|
52
|
+
margin-top: 0;
|
|
54
53
|
}
|
|
55
54
|
|
|
56
55
|
.PageHeader-title {
|
|
@@ -64,3 +63,99 @@
|
|
|
64
63
|
justify-content: flex-end;
|
|
65
64
|
padding-left: var(--spacing-20);
|
|
66
65
|
}
|
|
66
|
+
|
|
67
|
+
/* =====================================================
|
|
68
|
+
Responsive main header row
|
|
69
|
+
===================================================== */
|
|
70
|
+
|
|
71
|
+
/* Base: flex layout — used by all variants */
|
|
72
|
+
.PageHeader-row {
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-wrap: wrap;
|
|
75
|
+
align-items: start;
|
|
76
|
+
width: 100%;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.PageHeader-group--title {
|
|
80
|
+
flex: 1 1 auto;
|
|
81
|
+
min-width: 0;
|
|
82
|
+
order: 1;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* Center-nav group — navigation/stepper in center position */
|
|
86
|
+
.PageHeader-group--center {
|
|
87
|
+
flex: 0 0 auto;
|
|
88
|
+
display: flex;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
align-items: center;
|
|
91
|
+
padding: 0 var(--spacing-20);
|
|
92
|
+
min-width: 0;
|
|
93
|
+
order: 2;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Actions / right-side group */
|
|
97
|
+
.PageHeader-group--actions {
|
|
98
|
+
flex: 0 0 auto;
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-wrap: wrap;
|
|
101
|
+
justify-content: flex-end;
|
|
102
|
+
align-items: center;
|
|
103
|
+
padding-left: var(--spacing-20);
|
|
104
|
+
row-gap: var(--spacing-30);
|
|
105
|
+
order: 3;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* Default (full): CSS Grid for true 3-col centering */
|
|
109
|
+
.PageHeader-row--withCenter {
|
|
110
|
+
display: grid;
|
|
111
|
+
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
|
112
|
+
align-items: start;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* Ghost: center nav stays in the grid for measurement but is invisible and out of flow.
|
|
116
|
+
Used when collision detection moves the nav to PageHeader-bottom. */
|
|
117
|
+
.PageHeader-group--center--ghost {
|
|
118
|
+
position: absolute;
|
|
119
|
+
visibility: hidden;
|
|
120
|
+
pointer-events: none;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* All stacked: flex marker on the row + full-width children */
|
|
124
|
+
.PageHeader-row--allStacked {
|
|
125
|
+
display: flex;
|
|
126
|
+
flex-wrap: wrap;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.PageHeader-group--title--stacked {
|
|
130
|
+
flex: 0 0 100%;
|
|
131
|
+
order: 1;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.PageHeader-group--actions--stacked {
|
|
135
|
+
flex: 0 0 100%;
|
|
136
|
+
order: 2;
|
|
137
|
+
padding-left: 0;
|
|
138
|
+
padding-top: var(--spacing-10);
|
|
139
|
+
justify-content: flex-start;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* =====================================================
|
|
143
|
+
Level 1: inter-section spacing when right group wraps
|
|
144
|
+
===================================================== */
|
|
145
|
+
|
|
146
|
+
/* At < 576 px, the actions group sits between title and nav/stepper/tabs.
|
|
147
|
+
For level 1 headers that have actions, increase the gap to 12 px so all
|
|
148
|
+
three sections (title, actions, nav) have consistent breathing room. */
|
|
149
|
+
@media (max-width: 575px) {
|
|
150
|
+
.PageHeader-group--actions--level1Responsive {
|
|
151
|
+
padding-top: var(--spacing-30);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.PageHeader-bottom--level1Responsive {
|
|
155
|
+
margin-top: var(--spacing-30);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.PageHeader-navigationWrapper--noMarginSm {
|
|
159
|
+
margin-top: 0;
|
|
160
|
+
}
|
|
161
|
+
}
|