@indico-data/design-system 2.42.0 → 2.43.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/jest.config.js +1 -0
- package/lib/components/forms/date/datePicker/DatePicker.d.ts +1 -0
- package/lib/components/icons/indicons.d.ts +1 -0
- package/lib/components/table/types.d.ts +1 -0
- package/lib/index.css +330 -14
- package/lib/index.d.ts +2 -0
- package/lib/index.esm.css +330 -14
- package/lib/index.esm.js +15 -4
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +15 -4
- package/lib/index.js.map +1 -1
- package/package.json +4 -2
- package/src/components/forms/date/datePicker/DatePicker.tsx +11 -2
- package/src/components/forms/date/datePicker/styles/DatePicker.scss +0 -2
- package/src/components/forms/date/inputDatePicker/__tests__/SingleInputDatePicker.test.tsx +3 -4
- package/src/components/forms/date/inputDateRangePicker/__tests__/InputDateRangePicker.test.tsx +2 -2
- package/src/components/icons/indicons.tsx +6 -0
- package/src/components/pill/Pill.mdx +2 -2
- package/src/components/table/Table.stories.tsx +12 -2
- package/src/components/table/Table.tsx +8 -2
- package/src/components/table/styles/Table.scss +27 -11
- package/src/components/table/types.ts +1 -0
package/lib/index.esm.css
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@import 'react-day-picker/style.css';
|
|
2
1
|
@import './assets/fonts/mulish/mulish.css';
|
|
3
2
|
:root {
|
|
4
3
|
--pf-font-family-base: "Mulish", sans-serif;
|
|
@@ -943,14 +942,33 @@ a:hover, .link:hover {
|
|
|
943
942
|
}
|
|
944
943
|
|
|
945
944
|
.table {
|
|
946
|
-
background-color: var(--pf-table-background-color);
|
|
947
|
-
color: var(--pf-table-font-color);
|
|
948
945
|
border-radius: var(--pf-rounded);
|
|
949
|
-
border:
|
|
946
|
+
border: var(--pf-border-sm) solid var(--pf-table-border-color);
|
|
950
947
|
/* Striped: alternating background */
|
|
951
948
|
/* Checked: Precedence over striped */
|
|
952
949
|
/* Highlighted: Precedence over checked */
|
|
953
950
|
}
|
|
951
|
+
.table--full-height {
|
|
952
|
+
height: 100%;
|
|
953
|
+
display: grid;
|
|
954
|
+
grid-template-rows: auto 1fr auto;
|
|
955
|
+
grid-template-columns: 1fr;
|
|
956
|
+
}
|
|
957
|
+
.table-body {
|
|
958
|
+
background-color: var(--pf-table-background-color);
|
|
959
|
+
color: var(--pf-table-font-color);
|
|
960
|
+
border-radius: var(--pf-rounded) !important;
|
|
961
|
+
border: var(--pf-border-sm) solid var(--pf-table-border-color);
|
|
962
|
+
}
|
|
963
|
+
.table > *:nth-child(3) {
|
|
964
|
+
margin-top: auto;
|
|
965
|
+
background-color: transparent;
|
|
966
|
+
border: none;
|
|
967
|
+
}
|
|
968
|
+
.table > *:nth-child(3) .rdt_Pagination {
|
|
969
|
+
background-color: transparent;
|
|
970
|
+
border: none;
|
|
971
|
+
}
|
|
954
972
|
.table .rdt_Table,
|
|
955
973
|
.table .rdt_TableRow,
|
|
956
974
|
.table .rdt_TableCol,
|
|
@@ -976,10 +994,6 @@ a:hover, .link:hover {
|
|
|
976
994
|
border-radius: var(--pf-rounded) 0;
|
|
977
995
|
border-bottom: var(--pf-border-sm) solid var(--pf-table-border-color);
|
|
978
996
|
}
|
|
979
|
-
.table .rdt_TableHeadRow,
|
|
980
|
-
.table .rdt_TableRow {
|
|
981
|
-
border-bottom: none !important;
|
|
982
|
-
}
|
|
983
997
|
.table .rdt_TableHeadRow > :first-child,
|
|
984
998
|
.table .rdt_TableRow > :first-child {
|
|
985
999
|
padding-left: var(--pf-padding-4);
|
|
@@ -987,7 +1001,8 @@ a:hover, .link:hover {
|
|
|
987
1001
|
justify-content: left;
|
|
988
1002
|
}
|
|
989
1003
|
.table .rdt_TableRow {
|
|
990
|
-
border-top:
|
|
1004
|
+
border-top: var(--pf-border-sm) solid var(--pf-table-border-color);
|
|
1005
|
+
border-bottom: var(--pf-border-sm) solid var(--pf-table-border-color);
|
|
991
1006
|
}
|
|
992
1007
|
.table .rdt_TableRow:hover .rdt_TableCell {
|
|
993
1008
|
background-color: var(--pf-table-hover-color) !important;
|
|
@@ -1018,10 +1033,6 @@ a:hover, .link:hover {
|
|
|
1018
1033
|
border-top: var(--pf-border-md) solid var(--pf-table-highlighted-color);
|
|
1019
1034
|
background-color: var(--pf-table-highlighted-color) !important;
|
|
1020
1035
|
}
|
|
1021
|
-
.table .rdt_Pagination {
|
|
1022
|
-
border-top: var(--pf-border-sm) solid var(--pf-table-border-color);
|
|
1023
|
-
border-radius: 0 0 var(--pf-rounded) var(--pf-rounded);
|
|
1024
|
-
}
|
|
1025
1036
|
|
|
1026
1037
|
:root,
|
|
1027
1038
|
:root [data-theme=light],
|
|
@@ -5003,4 +5014,309 @@ p,
|
|
|
5003
5014
|
100% {
|
|
5004
5015
|
transform: rotate(360deg);
|
|
5005
5016
|
}
|
|
5006
|
-
}
|
|
5017
|
+
}
|
|
5018
|
+
/* Variables declaration */
|
|
5019
|
+
/* prettier-ignore */
|
|
5020
|
+
.rdp-root {
|
|
5021
|
+
--rdp-accent-color: blue; /* The accent color used for selected days and UI elements. */
|
|
5022
|
+
--rdp-accent-background-color: #f0f0ff; /* The accent background color used for selected days and UI elements. */
|
|
5023
|
+
--rdp-font-family: system-ui; /* The font family used by the calendar. Note that `inherit`does not work here. */
|
|
5024
|
+
|
|
5025
|
+
--rdp-day-font: inherit; /* The font used for the day cells. */
|
|
5026
|
+
--rdp-day-height: 2.75rem; /* The height of the day cells. */
|
|
5027
|
+
--rdp-day-width: 2.75rem; /* The width of the day cells. */
|
|
5028
|
+
|
|
5029
|
+
--rdp-day_button-border-radius: 100%; /* The border radius of the day cells. */
|
|
5030
|
+
--rdp-day_button-border: 2px solid transparent; /* The border of the day cells. */
|
|
5031
|
+
--rdp-day_button-height: var(--rdp-day-width); /* The height of the day cells. */
|
|
5032
|
+
--rdp-day_button-width: var(--rdp-day-height); /* The width of the day cells. */
|
|
5033
|
+
|
|
5034
|
+
--rdp-selected-border: 2px solid var(--rdp-accent-color); /* The border of the selected days. */
|
|
5035
|
+
--rdp-selected-font: bold large var(--rdp-font-family); /* The font of the selected days. */
|
|
5036
|
+
--rdp-disabled-opacity: 0.5; /* The opacity of the disabled days. */
|
|
5037
|
+
--rdp-outside-opacity: 0.75; /* The opacity of the days outside the current month. */
|
|
5038
|
+
--rdp-today-color: var(--rdp-accent-color); /* The color of the today's date. */
|
|
5039
|
+
|
|
5040
|
+
--rdp-dropdown-gap: 0.5rem;/* The gap between the dropdowns used in the month captons. */
|
|
5041
|
+
|
|
5042
|
+
--rdp-month_caption-font: bold larger var(--rdp-font-family); /* The font of the month caption. */
|
|
5043
|
+
--rdp-months-gap: 2rem; /* The gap between the months in the multi-month view. */
|
|
5044
|
+
|
|
5045
|
+
--rdp-nav_button-disabled-opacity: 0.5; /* The opacity of the disabled navigation buttons. */
|
|
5046
|
+
--rdp-nav_button-height: 2.25rem; /* The height of the navigation buttons. */
|
|
5047
|
+
--rdp-nav_button-width: 2.25rem; /* The width of the navigation buttons. */
|
|
5048
|
+
--rdp-nav-height: 2.75rem; /* The height of the navigation bar. */
|
|
5049
|
+
|
|
5050
|
+
--rdp-range_middle-background-color: var(--rdp-accent-background-color); /* The color of the background for days in the middle of a range. */
|
|
5051
|
+
--rdp-range_middle-font: normal medium var(--rdp-font-family); /* The font for days in the middle of a range. */
|
|
5052
|
+
--rdp-range_middle-foreground-color: white; /* The font for days in the middle of a range. */
|
|
5053
|
+
--rdp-range_middle-color: inherit;/* The color of the range text. */
|
|
5054
|
+
|
|
5055
|
+
--rdp-range_start-color: white; /* The color of the range text. */
|
|
5056
|
+
--rdp-range_start-background: linear-gradient(var(--rdp-gradient-direction), transparent 50%, var(--rdp-range_middle-background-color) 50%); /* Used for the background of the start of the selected range. */
|
|
5057
|
+
--rdp-range_start-date-background-color: var(--rdp-accent-color); /* The background color of the date when at the start of the selected range. */
|
|
5058
|
+
|
|
5059
|
+
--rdp-range_end-background: linear-gradient(var(--rdp-gradient-direction), var(--rdp-range_middle-background-color) 50%, transparent 50%); /* Used for the background of the end of the selected range. */
|
|
5060
|
+
--rdp-range_end-color: white;/* The color of the range text. */
|
|
5061
|
+
--rdp-range_end-date-background-color: var(--rdp-accent-color); /* The background color of the date when at the end of the selected range. */
|
|
5062
|
+
|
|
5063
|
+
--rdp-week_number-border-radius: 100%; /* The border radius of the week number. */
|
|
5064
|
+
--rdp-week_number-border: 2px solid transparent; /* The border of the week number. */
|
|
5065
|
+
--rdp-week_number-font: 400 small var(--rdp-font-family); /* The font of the week number cells. */
|
|
5066
|
+
--rdp-week_number-height: var(--rdp-day-height); /* The height of the week number cells. */
|
|
5067
|
+
--rdp-week_number-opacity: 0.75; /* The opacity of the week number. */
|
|
5068
|
+
--rdp-week_number-width: var(--rdp-day-width); /* The width of the week number cells. */
|
|
5069
|
+
--rdp-weeknumber-text-align: center; /* The text alignment of the weekday cells. */
|
|
5070
|
+
|
|
5071
|
+
--rdp-weekday-font: 500 smaller var(--rdp-font-family); /* The font of the weekday. */
|
|
5072
|
+
--rdp-weekday-opacity: 0.75; /* The opacity of the weekday. */
|
|
5073
|
+
--rdp-weekday-padding: 0.5rem 0rem; /* The padding of the weekday. */
|
|
5074
|
+
--rdp-weekday-text-align: center; /* The text alignment of the weekday cells. */
|
|
5075
|
+
|
|
5076
|
+
--rdp-gradient-direction: 90deg;
|
|
5077
|
+
}
|
|
5078
|
+
|
|
5079
|
+
.rdp-root[dir="rtl"] {
|
|
5080
|
+
--rdp-gradient-direction: -90deg;
|
|
5081
|
+
}
|
|
5082
|
+
|
|
5083
|
+
/* Root of the component. */
|
|
5084
|
+
.rdp-root {
|
|
5085
|
+
position: relative; /* Required to position the navigation toolbar. */
|
|
5086
|
+
box-sizing: border-box;
|
|
5087
|
+
}
|
|
5088
|
+
|
|
5089
|
+
.rdp-root * {
|
|
5090
|
+
box-sizing: border-box;
|
|
5091
|
+
}
|
|
5092
|
+
|
|
5093
|
+
.rdp-day {
|
|
5094
|
+
width: var(--rdp-day-width);
|
|
5095
|
+
height: var(--rdp-day-height);
|
|
5096
|
+
font: var(--rdp-day-font);
|
|
5097
|
+
text-align: center;
|
|
5098
|
+
}
|
|
5099
|
+
|
|
5100
|
+
.rdp-day_button {
|
|
5101
|
+
background: none;
|
|
5102
|
+
padding: 0;
|
|
5103
|
+
margin: 0;
|
|
5104
|
+
cursor: pointer;
|
|
5105
|
+
font: inherit;
|
|
5106
|
+
color: inherit;
|
|
5107
|
+
justify-content: center;
|
|
5108
|
+
align-items: center;
|
|
5109
|
+
display: flex;
|
|
5110
|
+
|
|
5111
|
+
width: var(--rdp-day_button-width);
|
|
5112
|
+
height: var(--rdp-day_button-height);
|
|
5113
|
+
border: var(--rdp-day_button-border);
|
|
5114
|
+
border-radius: var(--rdp-day_button-border-radius);
|
|
5115
|
+
}
|
|
5116
|
+
|
|
5117
|
+
.rdp-day_button:disabled {
|
|
5118
|
+
cursor: revert;
|
|
5119
|
+
}
|
|
5120
|
+
|
|
5121
|
+
.rdp-caption_label {
|
|
5122
|
+
z-index: 1;
|
|
5123
|
+
|
|
5124
|
+
position: relative;
|
|
5125
|
+
display: inline-flex;
|
|
5126
|
+
align-items: center;
|
|
5127
|
+
|
|
5128
|
+
white-space: nowrap;
|
|
5129
|
+
border: 0;
|
|
5130
|
+
}
|
|
5131
|
+
|
|
5132
|
+
.rdp-button_next,
|
|
5133
|
+
.rdp-button_previous {
|
|
5134
|
+
border: none;
|
|
5135
|
+
background: none;
|
|
5136
|
+
padding: 0;
|
|
5137
|
+
margin: 0;
|
|
5138
|
+
cursor: pointer;
|
|
5139
|
+
font: inherit;
|
|
5140
|
+
color: inherit;
|
|
5141
|
+
-moz-appearance: none;
|
|
5142
|
+
-webkit-appearance: none;
|
|
5143
|
+
display: inline-flex;
|
|
5144
|
+
align-items: center;
|
|
5145
|
+
justify-content: center;
|
|
5146
|
+
position: relative;
|
|
5147
|
+
appearance: none;
|
|
5148
|
+
|
|
5149
|
+
width: var(--rdp-nav_button-width);
|
|
5150
|
+
height: var(--rdp-nav_button-height);
|
|
5151
|
+
}
|
|
5152
|
+
|
|
5153
|
+
.rdp-button_next:disabled,
|
|
5154
|
+
.rdp-button_previous:disabled {
|
|
5155
|
+
cursor: revert;
|
|
5156
|
+
|
|
5157
|
+
opacity: var(--rdp-nav_button-disabled-opacity);
|
|
5158
|
+
}
|
|
5159
|
+
|
|
5160
|
+
.rdp-chevron {
|
|
5161
|
+
display: inline-block;
|
|
5162
|
+
fill: var(--rdp-accent-color);
|
|
5163
|
+
}
|
|
5164
|
+
|
|
5165
|
+
.rdp-root[dir="rtl"] .rdp-nav .rdp-chevron {
|
|
5166
|
+
transform: rotate(180deg);
|
|
5167
|
+
}
|
|
5168
|
+
|
|
5169
|
+
.rdp-root[dir="rtl"] .rdp-nav .rdp-chevron {
|
|
5170
|
+
transform: rotate(180deg);
|
|
5171
|
+
transform-origin: 50%;
|
|
5172
|
+
}
|
|
5173
|
+
|
|
5174
|
+
.rdp-dropdowns {
|
|
5175
|
+
position: relative;
|
|
5176
|
+
display: inline-flex;
|
|
5177
|
+
align-items: center;
|
|
5178
|
+
gap: var(--rdp-dropdown-gap);
|
|
5179
|
+
}
|
|
5180
|
+
.rdp-dropdown {
|
|
5181
|
+
z-index: 2;
|
|
5182
|
+
|
|
5183
|
+
/* Reset */
|
|
5184
|
+
opacity: 0;
|
|
5185
|
+
-webkit-appearance: none;
|
|
5186
|
+
-moz-appearance: none;
|
|
5187
|
+
appearance: none;
|
|
5188
|
+
position: absolute;
|
|
5189
|
+
inset-block-start: 0;
|
|
5190
|
+
inset-block-end: 0;
|
|
5191
|
+
inset-inline-start: 0;
|
|
5192
|
+
width: 100%;
|
|
5193
|
+
margin: 0;
|
|
5194
|
+
padding: 0;
|
|
5195
|
+
cursor: inherit;
|
|
5196
|
+
border: none;
|
|
5197
|
+
line-height: inherit;
|
|
5198
|
+
}
|
|
5199
|
+
|
|
5200
|
+
.rdp-dropdown_root {
|
|
5201
|
+
position: relative;
|
|
5202
|
+
display: inline-flex;
|
|
5203
|
+
align-items: center;
|
|
5204
|
+
}
|
|
5205
|
+
|
|
5206
|
+
.rdp-dropdown_root[data-disabled="true"] .rdp-chevron {
|
|
5207
|
+
opacity: var(--rdp-disabled-opacity);
|
|
5208
|
+
}
|
|
5209
|
+
|
|
5210
|
+
.rdp-month_caption {
|
|
5211
|
+
display: flex;
|
|
5212
|
+
align-content: center;
|
|
5213
|
+
height: var(--rdp-nav-height);
|
|
5214
|
+
font: var(--rdp-month_caption-font);
|
|
5215
|
+
}
|
|
5216
|
+
|
|
5217
|
+
.rdp-months {
|
|
5218
|
+
position: relative;
|
|
5219
|
+
display: flex;
|
|
5220
|
+
flex-wrap: wrap;
|
|
5221
|
+
gap: var(--rdp-months-gap);
|
|
5222
|
+
max-width: -moz-fit-content;
|
|
5223
|
+
max-width: fit-content;
|
|
5224
|
+
}
|
|
5225
|
+
|
|
5226
|
+
.rdp-month_grid {
|
|
5227
|
+
border-collapse: collapse;
|
|
5228
|
+
}
|
|
5229
|
+
|
|
5230
|
+
.rdp-nav {
|
|
5231
|
+
position: absolute;
|
|
5232
|
+
inset-block-start: 0;
|
|
5233
|
+
inset-inline-end: 0;
|
|
5234
|
+
|
|
5235
|
+
display: flex;
|
|
5236
|
+
align-items: center;
|
|
5237
|
+
|
|
5238
|
+
height: var(--rdp-nav-height);
|
|
5239
|
+
}
|
|
5240
|
+
|
|
5241
|
+
.rdp-weekday {
|
|
5242
|
+
opacity: var(--rdp-weekday-opacity);
|
|
5243
|
+
padding: var(--rdp-weekday-padding);
|
|
5244
|
+
font: var(--rdp-weekday-font);
|
|
5245
|
+
text-align: var(--rdp-weekday-text-align);
|
|
5246
|
+
text-transform: var(--rdp-weekday-text-transform);
|
|
5247
|
+
}
|
|
5248
|
+
|
|
5249
|
+
.rdp-week_number {
|
|
5250
|
+
opacity: var(--rdp-week_number-opacity);
|
|
5251
|
+
font: var(--rdp-week_number-font);
|
|
5252
|
+
height: var(--rdp-week_number-height);
|
|
5253
|
+
width: var(--rdp-week_number-width);
|
|
5254
|
+
border: var(--rdp-week_number-border);
|
|
5255
|
+
border-radius: var(--rdp-week_number-border-radius);
|
|
5256
|
+
text-align: var(--rdp-weeknumber-text-align);
|
|
5257
|
+
}
|
|
5258
|
+
|
|
5259
|
+
/* DAY MODIFIERS */
|
|
5260
|
+
.rdp-today:not(.rdp-outside) {
|
|
5261
|
+
color: var(--rdp-today-color);
|
|
5262
|
+
}
|
|
5263
|
+
|
|
5264
|
+
.rdp-selected {
|
|
5265
|
+
font: var(--rdp-selected-font);
|
|
5266
|
+
}
|
|
5267
|
+
|
|
5268
|
+
.rdp-selected .rdp-day_button {
|
|
5269
|
+
border: var(--rdp-selected-border);
|
|
5270
|
+
}
|
|
5271
|
+
|
|
5272
|
+
.rdp-outside {
|
|
5273
|
+
opacity: var(--rdp-outside-opacity);
|
|
5274
|
+
}
|
|
5275
|
+
|
|
5276
|
+
.rdp-disabled {
|
|
5277
|
+
opacity: var(--rdp-disabled-opacity);
|
|
5278
|
+
}
|
|
5279
|
+
|
|
5280
|
+
.rdp-hidden {
|
|
5281
|
+
visibility: hidden;
|
|
5282
|
+
color: var(--rdp-range_start-color);
|
|
5283
|
+
}
|
|
5284
|
+
|
|
5285
|
+
.rdp-range_start {
|
|
5286
|
+
background: var(--rdp-range_start-background);
|
|
5287
|
+
}
|
|
5288
|
+
|
|
5289
|
+
.rdp-range_start .rdp-day_button {
|
|
5290
|
+
background-color: var(--rdp-range_start-date-background-color);
|
|
5291
|
+
color: var(--rdp-range_start-color);
|
|
5292
|
+
}
|
|
5293
|
+
|
|
5294
|
+
.rdp-range_middle {
|
|
5295
|
+
background-color: var(--rdp-range_middle-background-color);
|
|
5296
|
+
font: var(--rdp-range_middle-font);
|
|
5297
|
+
}
|
|
5298
|
+
|
|
5299
|
+
.rdp-range_middle .rdp-day_button {
|
|
5300
|
+
border-color: transparent;
|
|
5301
|
+
border: unset;
|
|
5302
|
+
border-radius: unset;
|
|
5303
|
+
color: var(--rdp-range_middle-color);
|
|
5304
|
+
}
|
|
5305
|
+
|
|
5306
|
+
.rdp-range_end {
|
|
5307
|
+
background: var(--rdp-range_end-background);
|
|
5308
|
+
color: var(--rdp-range_end-color);
|
|
5309
|
+
}
|
|
5310
|
+
|
|
5311
|
+
.rdp-range_end .rdp-day_button {
|
|
5312
|
+
color: var(--rdp-range_start-color);
|
|
5313
|
+
background-color: var(--rdp-range_end-date-background-color);
|
|
5314
|
+
}
|
|
5315
|
+
|
|
5316
|
+
.rdp-range_start.rdp-range_end {
|
|
5317
|
+
background: revert;
|
|
5318
|
+
}
|
|
5319
|
+
|
|
5320
|
+
.rdp-focusable {
|
|
5321
|
+
cursor: pointer;
|
|
5322
|
+
}
|
package/lib/index.esm.js
CHANGED
|
@@ -5611,6 +5611,7 @@ const indicons = {
|
|
|
5611
5611
|
'gen-ai': (jsx("svg", { viewBox: "0 0 20 23", fill: "currentColor", children: jsx("path", { d: "M9.304 4.9c.124 0 .186-.07.218-.18.32-1.685.3-1.725 2.103-2.058.124-.02.197-.09.197-.212 0-.12-.073-.191-.197-.211-1.793-.353-1.74-.394-2.103-2.057C9.49.07 9.428 0 9.304 0s-.187.07-.218.182c-.362 1.663-.3 1.704-2.103 2.057-.114.02-.197.09-.197.211s.083.192.197.212c1.803.353 1.782.373 2.103 2.057.031.111.094.182.218.182M4.29 11.839c.196 0 .331-.121.352-.303.373-2.692.466-2.692 3.325-3.226.187-.03.322-.151.322-.343 0-.182-.135-.313-.322-.343-2.859-.383-2.963-.474-3.325-3.216a.34.34 0 0 0-.352-.313c-.187 0-.322.131-.342.323C3.606 7.119 3.46 7.109.622 7.623c-.187.04-.321.161-.321.343 0 .202.134.312.362.343 2.818.443 2.943.514 3.285 3.206.02.202.155.323.342.323M11.314 23c.27 0 .466-.192.518-.464.735-5.525 1.533-6.362 7.148-6.967.29-.03.487-.242.487-.504 0-.263-.196-.464-.486-.505-5.616-.605-6.414-1.442-7.15-6.967-.05-.272-.248-.454-.517-.454-.27 0-.466.182-.508.454-.735 5.525-1.543 6.362-7.148 6.967-.3.04-.498.242-.498.505 0 .262.197.474.498.504 5.594.716 6.371 1.452 7.148 6.967.042.272.239.464.508.464" }) })),
|
|
5612
5612
|
graphiql: (jsx("svg", { viewBox: "0 0 102 102", fill: "currentColor", children: jsx("path", { d: "M90,62.8c-0.8-0.4-1.5-0.7-2.3-0.9V38.1c0.8-0.2,1.6-0.5,2.4-0.9c4.3-2.5,5.7-7.9,3.3-12.2c-2.5-4.3-7.9-5.7-12.2-3.3 c-0.8,0.4-1.4,1-2,1.6L58.5,11.5c0.2-0.8,0.4-1.7,0.4-2.5C58.9,4,54.9,0,50,0s-8.9,4-8.9,8.9c0,0.9,0.1,1.7,0.4,2.5L20.9,23.3 c-0.6-0.6-1.2-1.1-2-1.6c-4.3-2.5-9.7-1-12.2,3.3c-2.5,4.3-1,9.7,3.3,12.2c0.8,0.4,1.6,0.7,2.4,0.9v23.8c-0.8,0.2-1.6,0.5-2.3,0.9 C5.7,65.3,4.3,70.7,6.7,75s7.9,5.7,12.2,3.3c0.8-0.4,1.4-1,2-1.6l20.6,11.9c-0.2,0.8-0.4,1.6-0.4,2.5c0,4.9,4,8.9,8.9,8.9 s8.9-4,8.9-8.9c0-1-0.2-1.9-0.5-2.8l20.4-11.8c0.6,0.7,1.4,1.3,2.2,1.8c4.3,2.5,9.7,1,12.2-3.3C95.8,70.7,94.3,65.3,90,62.8z M23.1,68.4c-0.2-0.8-0.5-1.6-0.9-2.3c-0.4-0.8-1-1.4-1.6-2l26.9-46.6c0.8,0.2,1.6,0.4,2.5,0.4c0.9,0,1.7-0.1,2.5-0.4l26.9,46.6 c-0.6,0.6-1.1,1.2-1.6,2c-0.4,0.8-0.7,1.5-0.9,2.3H23.1z M77,27c-0.6,2.2-0.4,4.7,0.8,6.9c1.3,2.2,3.3,3.6,5.6,4.2v23.8 c-0.1,0-0.2,0.1-0.3,0.1L56.2,15.4c0.1-0.1,0.2-0.2,0.2-0.2L77,27z M43.6,15.1c0.1,0.1,0.2,0.2,0.3,0.3L16.9,62 c-0.1,0-0.2-0.1-0.3-0.1V38.1c2.3-0.6,4.3-2,5.6-4.2c1.3-2.2,1.5-4.7,0.8-6.9L43.6,15.1z M56.6,85.1c-1.6-1.8-4-2.9-6.6-2.9 c-2.5,0-4.8,1-6.4,2.7L23,73c0-0.1,0.1-0.2,0.1-0.3h53.8c0,0.2,0.1,0.4,0.2,0.6L56.6,85.1z" }) })),
|
|
5613
5613
|
'grid-view': (jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", children: jsx("path", { d: "M8.9 2.4v6.5H2.4V2.4zM9.4 0H1.9C.9 0 0 .9 0 1.9v7.4c0 1.1.9 1.9 1.9 1.9h7.4c1.1 0 1.9-.9 1.9-1.9V1.9c.1-1-.8-1.9-1.8-1.9m12.2 2.4v6.5h-6.5V2.4zm.5-2.4h-7.4c-1.1 0-1.9.9-1.9 1.9v7.4c0 1.1.9 1.9 1.9 1.9h7.4c1.1 0 1.9-.9 1.9-1.9V1.9c0-1-.9-1.9-1.9-1.9M8.9 15.1v6.5H2.4v-6.5zm.5-2.4H1.9c-1.1 0-1.9.9-1.9 1.9V22c0 1.1.9 2 1.9 2h7.4c1.1 0 1.9-.9 1.9-1.9v-7.4c.1-1.1-.8-2-1.8-2m12.2 2.4v6.5h-6.5v-6.5zm.5-2.4h-7.4c-1.1 0-1.9.9-1.9 1.9V22c0 1.1.9 1.9 1.9 1.9h7.4c1.1 0 1.9-.9 1.9-1.9v-7.4c0-1-.9-1.9-1.9-1.9" }) })),
|
|
5614
|
+
guidewire: (jsxs("svg", { viewBox: "0 0 24 24", fill: "currentColor", children: [jsx("path", { d: "M21.963 6.006V2H2v20h11.967v-4.006h-7.97V6.006z" }), jsx("path", { d: "M21.962 10.01V22h-3.998v-8.01H9.97v-3.98z" })] })),
|
|
5614
5615
|
happy: (jsx("svg", { viewBox: "0 0 100 100", fill: "currentColor", children: jsx("path", { d: "M100 50c0 27.6-22.4 50-50 50S0 77.6 0 50 22.4 0 50 0s50 22.4 50 50zm-78.6-7.4c-.1-3.1 2.5-5.7 5.7-5.7 3.1 0 5.7 2.6 5.7 5.7 0 1.4 1.1 2.5 2.5 2.5s2.5-1.1 2.5-2.5C37.7 36.7 32.8 32 27 32s-10.6 4.8-10.6 10.6c0 1.4 1.1 2.5 2.5 2.5s2.5-1.1 2.5-2.5zM73 32c-5.9 0-10.6 4.8-10.6 10.6 0 1.4 1.1 2.5 2.5 2.5s2.5-1.1 2.5-2.5c0-3.1 2.6-5.7 5.7-5.7s5.7 2.6 5.7 5.7c0 1.4 1.1 2.5 2.5 2.5s2.5-1.1 2.5-2.5C83.7 36.7 78.9 32 73 32zm4.8 24.6c-1.4-.6-3 0-3.5 1.4-4.2 9.7-13.7 16-24.3 16-10.6 0-20.1-6.3-24.3-16.1-.6-1.4-2.1-2-3.5-1.4-1.4.6-2 2.1-1.4 3.5 5.1 11.7 16.5 19.3 29.3 19.3 12.7 0 24.2-7.5 29.1-19.3.6-1.2-.1-2.8-1.4-3.4z" }) })),
|
|
5615
5616
|
'help-solid': (jsx("svg", { viewBox: "0 0 100 100", fill: "currentColor", children: jsx("path", { d: "M50 0C22.4 0 0 22.4 0 50s22.4 50 50 50 50-22.4 50-50S77.6 0 50 0zm9.4 80.2c0 5.2-4.3 9.5-9.5 9.5s-9.5-4.3-9.5-9.5 4.3-9.5 9.5-9.5 9.5 4.2 9.5 9.5zM72.7 32c0 11.5-7.5 16.9-11.1 19.5l-.2.1c-3.5 2.5-4 4.6-4 6.4 0 4.2-3.5 5.9-7.8 5.9-4.2 0-7.5-1.8-7.5-6 0-7.6 3.6-14.1 10.4-18.7 3.7-2.6 4.8-4.2 4.8-7.2 0-.6-.2-5.3-7.6-5.3-3.7 0-6.3 1.5-7.4 5.1-1.3 4-4.4 6.2-8.2 6.2-5.7 0-7.8-4.4-6.7-9.1 2.3-10.2 11.4-17.3 22.5-17.3 16.7-.3 22.8 12 22.8 20.4z" }) })),
|
|
5616
5617
|
help: (jsx("svg", { viewBox: "0 0 100 100", fill: "currentColor", children: jsx("path", { d: "M50 10c22.1 0 40 17.9 40 40S72.1 90 50 90 10 72.1 10 50s17.9-40 40-40m0-10C22.4 0 0 22.4 0 50s22.4 50 50 50 50-22.4 50-50S77.6 0 50 0zm0 18.4c-9.5 0-17.4 6-19.2 14.6-.3 1.3.3 4.9 4.9 4.9 3 0 4.4-1.2 4.9-2.9 1.1-3.8 4.7-6.7 9.3-6.7 9.1 0 9.4 6.6 9.4 7.2 0 4-2 6.1-5.5 8.6C48 48.3 45 53.7 45 60.3c0 2.8 2.3 4.1 5 4.1 2.9 0 5.1-1.2 5.1-4 0-2 .5-4.8 4.7-7.8 3.1-2.3 9.8-6.8 9.8-16.8-.1-7.1-5.3-17.4-19.6-17.4zm0 51c-3.5 0-6.4 2.8-6.4 6.4s2.8 6.4 6.4 6.4c3.5 0 6.4-2.8 6.4-6.4s-2.9-6.4-6.4-6.4z" }) })),
|
|
@@ -6101,11 +6102,15 @@ const LoadingComponent = () => {
|
|
|
6101
6102
|
};
|
|
6102
6103
|
|
|
6103
6104
|
const Table = (props) => {
|
|
6104
|
-
const { responsive = true, direction = 'auto', keyField = 'id', striped =
|
|
6105
|
+
const { responsive = true, direction = 'auto', keyField = 'id', striped = false, noDataComponent = 'built-in', isDisabled, isLoading, isFullHeight = false, subHeaderAlign = 'left', className } = props, rest = __rest(props, ["responsive", "direction", "keyField", "striped", "noDataComponent", "isDisabled", "isLoading", "isFullHeight", "subHeaderAlign", "className"]);
|
|
6105
6106
|
const combinedClassName = classNames(className, {
|
|
6106
6107
|
'table--striped': striped,
|
|
6108
|
+
'table-body': true,
|
|
6107
6109
|
});
|
|
6108
|
-
|
|
6110
|
+
const tableWrapperClassName = classNames('table', {
|
|
6111
|
+
'table--full-height': isFullHeight,
|
|
6112
|
+
});
|
|
6113
|
+
return (jsx("div", { className: tableWrapperClassName, children: jsx(Xe, Object.assign({ responsive: responsive, direction: direction, subHeaderAlign: subHeaderAlign, keyField: keyField, striped: striped, className: combinedClassName, disabled: isDisabled, noDataComponent: noDataComponent, progressPending: isLoading, progressComponent: jsx(LoadingComponent, {}) }, rest)) }));
|
|
6109
6114
|
};
|
|
6110
6115
|
|
|
6111
6116
|
const Label = ({ label, name, isRequired }) => {
|
|
@@ -13946,29 +13951,35 @@ const getCommonProps = (props) => {
|
|
|
13946
13951
|
|
|
13947
13952
|
const DatePicker = (props) => {
|
|
13948
13953
|
const { mode = 'single', className, captionLayout = 'dropdown', selected, id, month, defaultMonth, startMonth, endMonth, components, numberOfMonths, isDisabled, formatters, weekStartsOn, firstWeekContainsDate, today, isRequired, min, max, onSelect, onMonthChange, onNextClick, onPrevClick, onDayClick } = props, rest = __rest(props, ["mode", "className", "captionLayout", "selected", "id", "month", "defaultMonth", "startMonth", "endMonth", "components", "numberOfMonths", "isDisabled", "formatters", "weekStartsOn", "firstWeekContainsDate", "today", "isRequired", "min", "max", "onSelect", "onMonthChange", "onNextClick", "onPrevClick", "onDayClick"]);
|
|
13949
|
-
const
|
|
13954
|
+
const futureDateByYear = (year) => new Date(new Date().getFullYear() + year, 11, 31);
|
|
13955
|
+
const endMonthDefault = endMonth !== null && endMonth !== void 0 ? endMonth : futureDateByYear(5);
|
|
13950
13956
|
const modeMap = {
|
|
13951
13957
|
single: {
|
|
13952
13958
|
mode: 'single',
|
|
13953
13959
|
numberOfMonths: numberOfMonths !== null && numberOfMonths !== void 0 ? numberOfMonths : 1,
|
|
13954
13960
|
selected: selected,
|
|
13955
13961
|
onSelect: onSelect,
|
|
13962
|
+
endMonth: endMonthDefault,
|
|
13956
13963
|
},
|
|
13957
13964
|
multiple: {
|
|
13958
13965
|
mode: 'multiple',
|
|
13959
13966
|
numberOfMonths: numberOfMonths !== null && numberOfMonths !== void 0 ? numberOfMonths : 1,
|
|
13960
13967
|
selected: selected,
|
|
13961
13968
|
onSelect: onSelect,
|
|
13969
|
+
endMonth: endMonthDefault,
|
|
13962
13970
|
},
|
|
13963
13971
|
range: {
|
|
13964
13972
|
mode: 'range',
|
|
13965
13973
|
numberOfMonths: numberOfMonths !== null && numberOfMonths !== void 0 ? numberOfMonths : 2,
|
|
13966
13974
|
selected: selected,
|
|
13967
13975
|
onSelect: onSelect,
|
|
13976
|
+
endMonth: endMonthDefault,
|
|
13968
13977
|
},
|
|
13969
13978
|
};
|
|
13970
13979
|
const modeProps = modeMap[mode];
|
|
13971
|
-
|
|
13980
|
+
const commonProps = getCommonProps(props);
|
|
13981
|
+
const finalProps = Object.assign(Object.assign(Object.assign({}, commonProps), rest), modeProps);
|
|
13982
|
+
return jsx(DayPicker, Object.assign({}, finalProps));
|
|
13972
13983
|
};
|
|
13973
13984
|
|
|
13974
13985
|
const IconTriggerDatePicker = (props) => {
|