@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 CHANGED
@@ -6,6 +6,7 @@ module.exports = {
6
6
  setupFilesAfterEnv: ['<rootDir>/src/setup/setupTests.ts'],
7
7
  moduleNameMapper: {
8
8
  '^@/(.*)$': '<rootDir>/src/$1',
9
+ '\\.css$': 'identity-obj-proxy',
9
10
  },
10
11
  transform: {
11
12
  '^.+\\.(ts|tsx)?$': 'ts-jest',
@@ -1,2 +1,3 @@
1
+ import 'react-day-picker/style.css';
1
2
  import { DatePickerProps } from './types';
2
3
  export declare const DatePicker: (props: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -71,6 +71,7 @@ declare const indicons: {
71
71
  'gen-ai': import("react/jsx-runtime").JSX.Element;
72
72
  graphiql: import("react/jsx-runtime").JSX.Element;
73
73
  'grid-view': import("react/jsx-runtime").JSX.Element;
74
+ guidewire: import("react/jsx-runtime").JSX.Element;
74
75
  happy: import("react/jsx-runtime").JSX.Element;
75
76
  'help-solid': import("react/jsx-runtime").JSX.Element;
76
77
  help: import("react/jsx-runtime").JSX.Element;
@@ -7,4 +7,5 @@ export type TableProps<T> = Omit<RDTTableProps<T>, 'disabled' | 'progressPending
7
7
  isLoading?: boolean;
8
8
  direction?: Direction;
9
9
  subHeaderAlign?: Alignment;
10
+ isFullHeight?: boolean;
10
11
  };
package/lib/index.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: 1px solid var(--pf-table-border-color);
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: none;
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.d.ts CHANGED
@@ -865,6 +865,7 @@ type TableProps<T> = Omit<TableProps$1<T>, 'disabled' | 'progressPending' | 'dir
865
865
  isLoading?: boolean;
866
866
  direction?: Direction;
867
867
  subHeaderAlign?: Alignment;
868
+ isFullHeight?: boolean;
868
869
  };
869
870
 
870
871
  type PillSize = 'sm' | 'md' | 'lg';
@@ -957,6 +958,7 @@ declare const indicons: {
957
958
  'gen-ai': react_jsx_runtime.JSX.Element;
958
959
  graphiql: react_jsx_runtime.JSX.Element;
959
960
  'grid-view': react_jsx_runtime.JSX.Element;
961
+ guidewire: react_jsx_runtime.JSX.Element;
960
962
  happy: react_jsx_runtime.JSX.Element;
961
963
  'help-solid': react_jsx_runtime.JSX.Element;
962
964
  help: react_jsx_runtime.JSX.Element;