@indico-data/design-system 2.51.1 → 2.52.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.
@@ -21,3 +21,4 @@ export { InputDateRangePicker } from './forms/date/inputDateRangePicker';
21
21
  export { Modal } from './modal';
22
22
  export { Badge } from './badge';
23
23
  export { Pagination } from './pagination';
24
+ export { TanstackTable } from './tanstackTable';
@@ -1,2 +1,2 @@
1
- export type { ColumnDef } from '@tanstack/react-table';
1
+ export type { ColumnDef, Row, Table } from '@tanstack/react-table';
2
2
  export { TanstackTable } from './TanstakTable';
package/lib/index.css CHANGED
@@ -1871,6 +1871,14 @@ form {
1871
1871
 
1872
1872
  :root {
1873
1873
  --pf-modal-rounded: var(--pf-rounded-lg);
1874
+ --pf-modal-close-button-top: var(--pf-margin-2);
1875
+ --pf-modal-close-button-right: var(--pf-margin-2);
1876
+ --pf-modal-close-button-padding: var(--pf-padding-3) var(--pf-padding-4);
1877
+ --pf-modal-close-button-font-size: var(--pf-font-size-caption);
1878
+ --pf-modal-close-button-icon-size: var(--pf-font-size-caption);
1879
+ --pf-modal-overlay-background: rgba(0, 0, 0, 0.5);
1880
+ --pf-modal-overlay-transition: opacity 100ms ease-in-out;
1881
+ --pf-modal-content-padding: var(--pf-padding-10);
1874
1882
  }
1875
1883
 
1876
1884
  :root [data-theme=light] {
@@ -1890,7 +1898,7 @@ form {
1890
1898
  left: 0;
1891
1899
  right: 0;
1892
1900
  bottom: 0;
1893
- background-color: rgba(0, 0, 0, 0.5);
1901
+ background-color: var(--pf-modal-overlay-background);
1894
1902
  display: flex;
1895
1903
  align-items: center;
1896
1904
  justify-content: center;
@@ -1898,7 +1906,7 @@ form {
1898
1906
 
1899
1907
  .ReactModal__Overlay {
1900
1908
  opacity: 0;
1901
- transition: opacity 100ms ease-in-out;
1909
+ transition: var(--pf-modal-overlay-transition);
1902
1910
  }
1903
1911
 
1904
1912
  .ReactModal__Overlay--after-open {
@@ -1924,14 +1932,28 @@ form {
1924
1932
  .modal--top {
1925
1933
  top: 50px;
1926
1934
  }
1935
+ .modal .modal-close-button {
1936
+ position: absolute;
1937
+ top: var(--pf-modal-close-button-top);
1938
+ right: var(--pf-modal-close-button-right);
1939
+ padding: var(--pf-modal-close-button-padding);
1940
+ font-size: var(--pf-modal-close-button-font-size);
1941
+ line-height: 1;
1942
+ }
1943
+ .modal .modal-close-button.btn .icon {
1944
+ width: var(--pf-modal-close-button-icon-size) !important;
1945
+ height: var(--pf-modal-close-button-icon-size);
1946
+ }
1947
+ .modal .modal-close-button.btn .icon svg {
1948
+ width: 100%;
1949
+ height: 100%;
1950
+ }
1927
1951
  .modal .modal-content {
1952
+ position: relative;
1928
1953
  background-color: var(--pf-modal-background-color);
1929
1954
  border: var(--pf-border-sm) solid var(--pf-modal-border-color);
1930
1955
  border-radius: var(--pf-modal-rounded);
1931
- }
1932
- .modal .modal-content .modal-body {
1933
- padding: var(--pf-padding-8);
1934
- padding-top: 0;
1956
+ padding: var(--pf-modal-content-padding);
1935
1957
  }
1936
1958
  .modal .modal-content .modal-body h2 {
1937
1959
  font-size: var(--pf-font-size-h1);
@@ -1941,9 +1963,6 @@ form {
1941
1963
  margin-bottom: var(--pf-margin-8);
1942
1964
  border: var(--pf-border-sm) solid var(--pf-border-color);
1943
1965
  }
1944
- .modal .modal-content .modal-close {
1945
- text-align: right;
1946
- }
1947
1966
 
1948
1967
  .pagination .form-control {
1949
1968
  margin-bottom: 0;
package/lib/index.d.ts CHANGED
@@ -9,6 +9,7 @@ import { CSSObject } from 'styled-components';
9
9
  import { Props as Props$8 } from 'react-select';
10
10
  import { DateRange, OnSelectHandler, Mode, CustomComponents, Matcher, Formatters, MonthChangeEventHandler, DayEventHandler } from 'react-day-picker';
11
11
  import { ColumnDef, Row as Row$1 } from '@tanstack/react-table';
12
+ export { ColumnDef, Row as TanstackTableRowType, Table as TanstackTableType } from '@tanstack/react-table';
12
13
 
13
14
  declare const registerFontAwesomeIcons: (...icons: IconDefinition[]) => void;
14
15
 
package/lib/index.esm.css CHANGED
@@ -1871,6 +1871,14 @@ form {
1871
1871
 
1872
1872
  :root {
1873
1873
  --pf-modal-rounded: var(--pf-rounded-lg);
1874
+ --pf-modal-close-button-top: var(--pf-margin-2);
1875
+ --pf-modal-close-button-right: var(--pf-margin-2);
1876
+ --pf-modal-close-button-padding: var(--pf-padding-3) var(--pf-padding-4);
1877
+ --pf-modal-close-button-font-size: var(--pf-font-size-caption);
1878
+ --pf-modal-close-button-icon-size: var(--pf-font-size-caption);
1879
+ --pf-modal-overlay-background: rgba(0, 0, 0, 0.5);
1880
+ --pf-modal-overlay-transition: opacity 100ms ease-in-out;
1881
+ --pf-modal-content-padding: var(--pf-padding-10);
1874
1882
  }
1875
1883
 
1876
1884
  :root [data-theme=light] {
@@ -1890,7 +1898,7 @@ form {
1890
1898
  left: 0;
1891
1899
  right: 0;
1892
1900
  bottom: 0;
1893
- background-color: rgba(0, 0, 0, 0.5);
1901
+ background-color: var(--pf-modal-overlay-background);
1894
1902
  display: flex;
1895
1903
  align-items: center;
1896
1904
  justify-content: center;
@@ -1898,7 +1906,7 @@ form {
1898
1906
 
1899
1907
  .ReactModal__Overlay {
1900
1908
  opacity: 0;
1901
- transition: opacity 100ms ease-in-out;
1909
+ transition: var(--pf-modal-overlay-transition);
1902
1910
  }
1903
1911
 
1904
1912
  .ReactModal__Overlay--after-open {
@@ -1924,14 +1932,28 @@ form {
1924
1932
  .modal--top {
1925
1933
  top: 50px;
1926
1934
  }
1935
+ .modal .modal-close-button {
1936
+ position: absolute;
1937
+ top: var(--pf-modal-close-button-top);
1938
+ right: var(--pf-modal-close-button-right);
1939
+ padding: var(--pf-modal-close-button-padding);
1940
+ font-size: var(--pf-modal-close-button-font-size);
1941
+ line-height: 1;
1942
+ }
1943
+ .modal .modal-close-button.btn .icon {
1944
+ width: var(--pf-modal-close-button-icon-size) !important;
1945
+ height: var(--pf-modal-close-button-icon-size);
1946
+ }
1947
+ .modal .modal-close-button.btn .icon svg {
1948
+ width: 100%;
1949
+ height: 100%;
1950
+ }
1927
1951
  .modal .modal-content {
1952
+ position: relative;
1928
1953
  background-color: var(--pf-modal-background-color);
1929
1954
  border: var(--pf-border-sm) solid var(--pf-modal-border-color);
1930
1955
  border-radius: var(--pf-modal-rounded);
1931
- }
1932
- .modal .modal-content .modal-body {
1933
- padding: var(--pf-padding-8);
1934
- padding-top: 0;
1956
+ padding: var(--pf-modal-content-padding);
1935
1957
  }
1936
1958
  .modal .modal-content .modal-body h2 {
1937
1959
  font-size: var(--pf-font-size-h1);
@@ -1941,9 +1963,6 @@ form {
1941
1963
  margin-bottom: var(--pf-margin-8);
1942
1964
  border: var(--pf-border-sm) solid var(--pf-border-color);
1943
1965
  }
1944
- .modal .modal-content .modal-close {
1945
- text-align: right;
1946
- }
1947
1966
 
1948
1967
  .pagination .form-control {
1949
1968
  margin-bottom: 0;
package/lib/index.esm.js CHANGED
@@ -22626,10 +22626,12 @@ var libExports = lib.exports;
22626
22626
  var ReactModal = /*@__PURE__*/getDefaultExportFromCjs(libExports);
22627
22627
 
22628
22628
  const Modal = (_a) => {
22629
- var { className = '', children, isOpen, onRequestClose, portalClassName, overlayClassName, appElement, shouldCloseOnOverlayClick, shouldCloseOnEsc, testId, contentElement, overlayElement, position = 'center', parentSelector } = _a, rest = __rest(_a, ["className", "children", "isOpen", "onRequestClose", "portalClassName", "overlayClassName", "appElement", "shouldCloseOnOverlayClick", "shouldCloseOnEsc", "testId", "contentElement", "overlayElement", "position", "parentSelector"]);
22629
+ var { className = '', children, isOpen, onRequestClose, portalClassName, overlayClassName, appElement = document.getElementById('theme-root') ||
22630
+ document.getElementById('root') ||
22631
+ document.body, shouldCloseOnOverlayClick, shouldCloseOnEsc, testId, contentElement, overlayElement, position = 'center', parentSelector } = _a, rest = __rest(_a, ["className", "children", "isOpen", "onRequestClose", "portalClassName", "overlayClassName", "appElement", "shouldCloseOnOverlayClick", "shouldCloseOnEsc", "testId", "contentElement", "overlayElement", "position", "parentSelector"]);
22630
22632
  const modalClasses = classNames('modal', `modal--${position}`, className);
22631
22633
  const overlayClasses = classNames('modal-overlay', overlayClassName);
22632
- return (jsx(ReactModal, Object.assign({ style: {}, className: modalClasses, overlayClassName: overlayClasses, testId: testId, isOpen: isOpen, onRequestClose: onRequestClose, portalClassName: portalClassName, appElement: appElement, parentSelector: parentSelector, shouldCloseOnOverlayClick: shouldCloseOnOverlayClick, shouldCloseOnEsc: shouldCloseOnEsc, contentElement: contentElement, overlayElement: overlayElement }, rest, { children: jsxs("div", { className: "modal-content", children: [jsx("div", { className: "modal-header", children: jsx(Row, { nogutter: true, children: jsx(Col, { xs: 12, className: "modal-close", children: jsx(Button$1, { className: "modal-close-button", onClick: onRequestClose, variant: "link", size: "md", iconLeft: "fa-xmark", ariaLabel: "Close" }) }) }) }), jsx("div", { className: "modal-body", children: children })] }) })));
22634
+ return (jsx(ReactModal, Object.assign({ style: {}, className: modalClasses, overlayClassName: overlayClasses, testId: testId, isOpen: isOpen, onRequestClose: onRequestClose, portalClassName: portalClassName, appElement: appElement, parentSelector: parentSelector, shouldCloseOnOverlayClick: shouldCloseOnOverlayClick, shouldCloseOnEsc: shouldCloseOnEsc, contentElement: contentElement, overlayElement: overlayElement }, rest, { children: jsxs("div", { className: "modal-content", children: [jsx(Button$1, { className: "modal-close-button", onClick: onRequestClose, variant: "link", size: "md", iconLeft: "x-close", ariaLabel: "Close" }), jsx("div", { className: "modal-body", children: children })] }) })));
22633
22635
  };
22634
22636
 
22635
22637
  /**