@innovaccer/design-system 2.3.0 → 2.4.0-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 +35 -0
- package/core/components/atoms/backdrop/Backdrop.tsx +11 -1
- package/core/components/atoms/button/Button.tsx +60 -44
- package/core/components/atoms/button/__stories__/IconButtonGroup.story.tsx +4 -4
- package/core/components/atoms/button/__stories__/IconButtonSecondary.story.tsx +1 -1
- package/core/components/atoms/button/__tests__/Button.test.tsx +36 -1
- package/core/components/atoms/dropdown/DropdownList.tsx +1 -0
- package/core/components/atoms/dropdown/Loading.tsx +9 -9
- package/core/components/atoms/dropdown/__stories__/Options.tsx +2 -0
- package/core/components/atoms/dropdown/__tests__/Dropdown.test.tsx +12 -1
- package/core/components/atoms/dropdown/__tests__/Loading.test.tsx +66 -0
- package/core/components/atoms/dropdown/__tests__/Option.test.tsx +204 -0
- package/core/components/atoms/dropdown/option/CheckboxOption.tsx +1 -0
- package/core/components/atoms/dropdown/option/IconOption.tsx +3 -1
- package/core/components/atoms/dropdown/option/IconWithMetaOption.tsx +3 -1
- package/core/components/atoms/dropdown/option/index.tsx +7 -1
- package/core/components/molecules/dialog/__tests__/__snapshots__/Dialog.test.tsx.snap +13 -0
- package/core/components/molecules/emptyState/__stories__/assets/pageNotLoaded.png +0 -0
- package/core/components/molecules/emptyState/__stories__/variants/noContentAvailable.story.tsx +26 -0
- package/core/components/molecules/emptyState/__stories__/variants/{smallSizeWithButton.story.tsx → noSearchResults.story.tsx} +2 -2
- package/core/components/molecules/emptyState/__stories__/variants/{largeSize.story.tsx → pageNotLoaded.story.tsx} +3 -3
- package/core/components/molecules/fileList/FileIcon.tsx +10 -2
- package/core/components/molecules/fileList/FileListItem.tsx +7 -3
- package/core/components/molecules/fileList/__stories__/__common__/fileListExample.tsx +1 -0
- package/core/components/molecules/fileList/__tests__/FileList.test.tsx +115 -0
- package/core/components/molecules/fileList/__tests__/__snapshots__/FileList.test.tsx.snap +232 -0
- package/core/components/molecules/inputMask/InputMask.tsx +2 -5
- package/core/components/molecules/inputMask/__tests__/InputMask.test.tsx +128 -0
- package/core/components/molecules/inputMask/__tests__/__snapshots__/InputMask.test.tsx.snap +39 -0
- package/core/components/molecules/modal/Modal.tsx +7 -5
- package/core/components/molecules/modal/__tests__/__snapshots__/Modal.test.tsx.snap +18 -0
- package/core/components/molecules/sidesheet/Sidesheet.tsx +5 -3
- package/core/components/molecules/sidesheet/__tests__/__snapshots__/Sidesheet.test.tsx.snap +2 -0
- package/core/components/organisms/calendar/Calendar.tsx +66 -22
- package/core/components/organisms/calendar/__stories__/variants/withEvents.story.tsx +45 -0
- package/core/components/organisms/calendar/__tests__/Calendar.test.tsx +10 -0
- package/core/components/organisms/calendar/__tests__/__snapshots__/Calendar.test.tsx.snap +1096 -1096
- package/core/components/organisms/calendar/config.ts +2 -2
- package/core/components/organisms/calendar/types.ts +1 -0
- package/core/components/organisms/datePicker/DatePicker.tsx +23 -9
- package/core/components/organisms/datePicker/__tests__/{DatePicker.tsx → DatePicker.test.tsx} +16 -1
- package/core/components/organisms/datePicker/__tests__/__snapshots__/DatePicker.test.tsx.snap +2257 -0
- package/core/components/organisms/dateRangePicker/__tests__/__snapshots__/DateRangePicker.test.tsx.snap +2552 -2550
- package/core/components/organisms/inlineMessage/InlineMessage.tsx +75 -0
- package/core/components/organisms/inlineMessage/__stories__/Default.story.tsx +18 -0
- package/core/components/organisms/inlineMessage/__stories__/Error.story.tsx +19 -0
- package/core/components/organisms/inlineMessage/__stories__/Info.story.tsx +19 -0
- package/core/components/organisms/inlineMessage/__stories__/Success.story.tsx +19 -0
- package/core/components/organisms/inlineMessage/__stories__/Warning.story.tsx +18 -0
- package/core/components/organisms/inlineMessage/__stories__/variants/InlineMessageWithinTable.story.tsx +139 -0
- package/core/components/organisms/inlineMessage/__tests__/InlineMessage.test.tsx +91 -0
- package/core/components/organisms/inlineMessage/__tests__/__snapshots__/InlineMessage.test.tsx.snap +139 -0
- package/core/components/organisms/inlineMessage/index.tsx +1 -0
- package/core/components/organisms/timePicker/__tests__/__snapshots__/TimePicker.test.tsx.snap +8 -0
- package/core/index.tsx +2 -0
- package/core/index.type.tsx +1 -0
- package/core/utils/__tests__/__snapshots__/TS.test.tsx.snap +485 -466
- package/css/dist/index.css +72 -8
- package/css/dist/index.css.map +1 -1
- package/css/src/components/calendar.css +37 -5
- package/css/src/components/card.css +1 -1
- package/css/src/components/chipInput.css +2 -2
- package/css/src/components/editableChipInput.css +2 -1
- package/css/src/components/inlineMessage.css +29 -0
- package/dist/core/components/atoms/backdrop/Backdrop.d.ts +1 -0
- package/dist/core/components/atoms/button/Button.d.ts +1 -0
- package/dist/core/components/atoms/popperWrapper/PopperWrapper.d.ts +28 -27
- package/dist/core/components/organisms/calendar/Calendar.d.ts +6 -1
- package/dist/core/components/organisms/calendar/types.d.ts +3 -0
- package/dist/core/components/organisms/inlineMessage/InlineMessage.d.ts +15 -0
- package/dist/core/components/organisms/inlineMessage/index.d.ts +1 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.type.d.ts +1 -0
- package/dist/index.esm.js +189 -66
- package/dist/index.js +201 -80
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.br +0 -0
- package/dist/index.umd.js.gz +0 -0
- package/dts.config.js +13 -0
- package/package.json +4 -2
- package/types/innovaccer-design-system/index.d.ts +39 -0
- package/types/innovaccer-design-system/innovaccer-design-system-tests.ts +0 -0
- package/types/innovaccer-design-system/tsconfig.json +23 -0
- package/types/innovaccer-design-system/tslint.json +1 -0
- package/core/components/molecules/emptyState/__stories__/variants/smallSizeWithoutButton.story.tsx +0 -21
- package/core/components/organisms/datePicker/__tests__/__snapshots__/DatePicker.tsx.snap +0 -2164
package/css/dist/index.css
CHANGED
|
@@ -1177,11 +1177,11 @@ body {
|
|
|
1177
1177
|
}
|
|
1178
1178
|
|
|
1179
1179
|
.Calendar--large {
|
|
1180
|
-
padding-top: var(--spacing-
|
|
1180
|
+
padding-top: var(--spacing-2);
|
|
1181
1181
|
padding-left: var(--spacing-2);
|
|
1182
1182
|
padding-right: var(--spacing-2);
|
|
1183
|
-
padding-bottom: var(--spacing);
|
|
1184
|
-
height:
|
|
1183
|
+
padding-bottom: var(--spacing-l);
|
|
1184
|
+
height: 324px;
|
|
1185
1185
|
width: 316px;
|
|
1186
1186
|
}
|
|
1187
1187
|
|
|
@@ -1190,7 +1190,7 @@ body {
|
|
|
1190
1190
|
display: flex;
|
|
1191
1191
|
justify-content: center;
|
|
1192
1192
|
align-items: center;
|
|
1193
|
-
padding-bottom: var(--spacing-
|
|
1193
|
+
padding-bottom: var(--spacing-l);
|
|
1194
1194
|
}
|
|
1195
1195
|
|
|
1196
1196
|
.Calendar-headerIcon {
|
|
@@ -1235,12 +1235,22 @@ body {
|
|
|
1235
1235
|
.Calendar-valueRow {
|
|
1236
1236
|
display: flex;
|
|
1237
1237
|
justify-content: space-around;
|
|
1238
|
+
padding-top: var(--spacing-s);
|
|
1239
|
+
padding-bottom: var(--spacing-s);
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
.Calendar-valueRow:last-child {
|
|
1243
|
+
display: flex;
|
|
1244
|
+
justify-content: space-around;
|
|
1245
|
+
padding-top: var(--spacing-s);
|
|
1246
|
+
padding-bottom: 0;
|
|
1238
1247
|
}
|
|
1239
1248
|
|
|
1240
1249
|
.Calendar-valueWrapper {
|
|
1241
1250
|
display: inline-flex;
|
|
1242
1251
|
flex: 1 0 0;
|
|
1243
1252
|
justify-content: center;
|
|
1253
|
+
position: relative;
|
|
1244
1254
|
}
|
|
1245
1255
|
|
|
1246
1256
|
.Calendar-valueWrapper--inRange {
|
|
@@ -1306,6 +1316,10 @@ body {
|
|
|
1306
1316
|
background: var(--alert-lightest);
|
|
1307
1317
|
}
|
|
1308
1318
|
|
|
1319
|
+
.Calendar-value--currentDate, .Calendar-value--currentDate:hover {
|
|
1320
|
+
background: var(--primary-lightest) !important;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1309
1323
|
.Calendar-value--active, .Calendar-value--active:hover {
|
|
1310
1324
|
background: var(--primary) !important;
|
|
1311
1325
|
}
|
|
@@ -1345,6 +1359,8 @@ body {
|
|
|
1345
1359
|
.Calendar-dayValues {
|
|
1346
1360
|
display: flex;
|
|
1347
1361
|
justify-content: center;
|
|
1362
|
+
padding-top: var(--spacing);
|
|
1363
|
+
padding-bottom: var(--spacing);
|
|
1348
1364
|
}
|
|
1349
1365
|
|
|
1350
1366
|
.Calendar-dateValues {
|
|
@@ -1357,10 +1373,27 @@ body {
|
|
|
1357
1373
|
.Calendar-dayValues .Calendar-value {
|
|
1358
1374
|
padding: 0;
|
|
1359
1375
|
}
|
|
1376
|
+
|
|
1377
|
+
.Calendar-eventsIndicator{
|
|
1378
|
+
position: absolute;
|
|
1379
|
+
bottom: var(--spacing-s);
|
|
1380
|
+
width: var(--spacing-m);
|
|
1381
|
+
height: var(--spacing-m);
|
|
1382
|
+
background-color: var(--alert);
|
|
1383
|
+
border-radius: 50%;
|
|
1384
|
+
}
|
|
1385
|
+
.Calendar-eventsIndicator--small{
|
|
1386
|
+
width: 3px;
|
|
1387
|
+
height: 3px;
|
|
1388
|
+
}
|
|
1389
|
+
.Calendar-eventsIndicator--active{
|
|
1390
|
+
background-color: var(--white);
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1360
1393
|
/* badge */
|
|
1361
1394
|
|
|
1362
1395
|
.Card {
|
|
1363
|
-
border-radius: var(--spacing);
|
|
1396
|
+
border-radius: var(--spacing-m);
|
|
1364
1397
|
border: var(--spacing-xs) solid var(--secondary-light);
|
|
1365
1398
|
position: relative;
|
|
1366
1399
|
overflow: hidden;
|
|
@@ -1715,8 +1748,8 @@ body {
|
|
|
1715
1748
|
border-radius: var(--spacing-m);
|
|
1716
1749
|
border: var(--border);
|
|
1717
1750
|
padding-left: var(--spacing-s);
|
|
1718
|
-
padding-top: var(--spacing-
|
|
1719
|
-
padding-bottom: var(--spacing-
|
|
1751
|
+
padding-top: var(--spacing-xs);
|
|
1752
|
+
padding-bottom: var(--spacing-xs);
|
|
1720
1753
|
background: var(--white);
|
|
1721
1754
|
cursor: text;
|
|
1722
1755
|
flex: 100%;
|
|
@@ -2191,7 +2224,8 @@ body {
|
|
|
2191
2224
|
align-items: center;
|
|
2192
2225
|
padding-left:var(--spacing);
|
|
2193
2226
|
border: var(--spacing-xs) solid transparent;
|
|
2194
|
-
|
|
2227
|
+
padding-top: var(--spacing-xs);
|
|
2228
|
+
padding-bottom: var(--spacing-xs);
|
|
2195
2229
|
max-width: calc(100% - 28px);
|
|
2196
2230
|
flex-wrap:wrap;
|
|
2197
2231
|
}
|
|
@@ -3199,6 +3233,36 @@ body {
|
|
|
3199
3233
|
color: var(--inverse);
|
|
3200
3234
|
}
|
|
3201
3235
|
|
|
3236
|
+
.InlineMessage {
|
|
3237
|
+
display: flex;
|
|
3238
|
+
flex-direction: row;
|
|
3239
|
+
overflow: hidden;
|
|
3240
|
+
border-radius: var(--spacing-m);
|
|
3241
|
+
background-color: var(--white);
|
|
3242
|
+
}
|
|
3243
|
+
|
|
3244
|
+
.InlineMessage-icon {
|
|
3245
|
+
margin-right: var(--spacing);
|
|
3246
|
+
padding-top: var(--spacing-s);
|
|
3247
|
+
padding-bottom: var(--spacing-s);
|
|
3248
|
+
}
|
|
3249
|
+
|
|
3250
|
+
.InlineMessage-text--warning, .InlineMessage-icon--warning {
|
|
3251
|
+
color: var(--accent1);
|
|
3252
|
+
}
|
|
3253
|
+
|
|
3254
|
+
.InlineMessage-text--alert {
|
|
3255
|
+
color: var(--alert);
|
|
3256
|
+
}
|
|
3257
|
+
|
|
3258
|
+
.InlineMessage-text--info {
|
|
3259
|
+
color: var(--primary);
|
|
3260
|
+
}
|
|
3261
|
+
|
|
3262
|
+
.InlineMessage-text--success {
|
|
3263
|
+
color: var(--success);
|
|
3264
|
+
}
|
|
3265
|
+
|
|
3202
3266
|
/* input */
|
|
3203
3267
|
|
|
3204
3268
|
.Input-input::-ms-clear {
|