@indico-data/design-system 2.53.0 → 2.55.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/lib/components/forms/date/inputDateTimePicker/SingleInputDateTimePicker.d.ts +24 -0
- package/lib/components/forms/date/inputDateTimePicker/SingleInputDateTimePicker.stories.d.ts +6 -0
- package/lib/components/forms/date/inputDateTimePicker/helpers.d.ts +1 -0
- package/lib/components/forms/date/inputDateTimePicker/index.d.ts +1 -0
- package/lib/components/forms/subcomponents/DisplayFormError.d.ts +2 -1
- package/lib/components/forms/timePicker/TimePicker.d.ts +3 -1
- package/lib/components/forms/timePicker/helpers.d.ts +2 -5
- package/lib/components/index.d.ts +3 -0
- package/lib/components/loading-indicators/BarSpinner/BarSpinner.d.ts +8 -0
- package/lib/components/loading-indicators/BarSpinner/BarSpinner.stories.d.ts +7 -0
- package/lib/components/loading-indicators/BarSpinner/__tests__/BarSpinner.test.d.ts +1 -0
- package/lib/components/loading-indicators/CirclePulse/CirclePulse.d.ts +7 -0
- package/lib/components/loading-indicators/CirclePulse/CirclePulse.stories.d.ts +6 -0
- package/lib/components/tooltip/Tooltip.d.ts +13 -0
- package/lib/components/tooltip/Tooltip.stories.d.ts +6 -0
- package/lib/index.css +149 -90
- package/lib/index.d.ts +53 -47
- package/lib/index.esm.css +149 -90
- package/lib/index.esm.js +5964 -6155
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +5962 -6153
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/forms/date/datePicker/DatePicker.stories.tsx +4 -4
- package/src/components/forms/date/datePicker/DatePicker.tsx +0 -2
- package/src/components/forms/date/inputDateTimePicker/SingleInputDateTimePicker.mdx +20 -0
- package/src/components/forms/date/inputDateTimePicker/SingleInputDateTimePicker.stories.tsx +262 -0
- package/src/components/forms/date/inputDateTimePicker/SingleInputDateTimePicker.tsx +141 -0
- package/src/components/forms/date/inputDateTimePicker/helpers.ts +3 -0
- package/src/components/forms/date/inputDateTimePicker/index.ts +1 -0
- package/src/components/forms/input/Input.tsx +1 -1
- package/src/components/forms/passwordInput/PasswordInput.stories.tsx +1 -1
- package/src/components/forms/subcomponents/DisplayFormError.tsx +7 -2
- package/src/components/forms/timePicker/TimePicker.mdx +3 -27
- package/src/components/forms/timePicker/TimePicker.stories.tsx +19 -1
- package/src/components/forms/timePicker/TimePicker.tsx +37 -80
- package/src/components/forms/timePicker/__tests__/TimePicker.test.tsx +33 -11
- package/src/components/forms/timePicker/helpers.ts +61 -13
- package/src/components/index.ts +3 -0
- package/src/components/loading-indicators/BarSpinner/BarSpinner.mdx +21 -0
- package/src/components/loading-indicators/BarSpinner/BarSpinner.stories.tsx +89 -0
- package/src/components/loading-indicators/BarSpinner/BarSpinner.tsx +25 -0
- package/src/components/loading-indicators/BarSpinner/__tests__/BarSpinner.test.tsx +16 -0
- package/src/{legacy/components/loading-indicators/BarSpinner/BarSpinner.styles.ts → components/loading-indicators/BarSpinner/styles/BarSpinner.scss} +11 -11
- package/src/components/loading-indicators/CirclePulse/CirclePulse.mdx +20 -0
- package/src/components/loading-indicators/CirclePulse/CirclePulse.scss +83 -0
- package/src/components/loading-indicators/CirclePulse/CirclePulse.stories.tsx +78 -0
- package/src/components/loading-indicators/CirclePulse/CirclePulse.tsx +15 -0
- package/src/components/tanstackTable/components/TableBody/TableBody.tsx +1 -1
- package/src/components/tooltip/Tooltip.mdx +25 -0
- package/src/components/tooltip/Tooltip.stories.tsx +113 -0
- package/src/components/tooltip/Tooltip.tsx +38 -0
- package/src/components/tooltip/styles/Tooltip.scss +8 -0
- package/src/index.ts +4 -2
- package/src/styles/globals.scss +9 -0
- package/src/styles/index.scss +3 -2
- package/lib/components/forms/timePicker/constants.d.ts +0 -13
- package/lib/legacy/components/Tooltip/Tooltip.d.ts +0 -15
- package/lib/legacy/components/Tooltip/Tooltip.stories.d.ts +0 -9
- package/lib/legacy/components/Tooltip/Tooltip.styles.d.ts +0 -1
- package/lib/legacy/components/index.d.ts +0 -2
- package/lib/legacy/components/loading-indicators/BarSpinner/BarSpinner.d.ts +0 -7
- package/lib/legacy/components/loading-indicators/BarSpinner/BarSpinner.stories.d.ts +0 -10
- package/lib/legacy/components/loading-indicators/BarSpinner/BarSpinner.styles.d.ts +0 -1
- package/lib/legacy/components/loading-indicators/CirclePulse/CirclePulse.d.ts +0 -10
- package/lib/legacy/components/loading-indicators/CirclePulse/CirclePulse.stories.d.ts +0 -12
- package/lib/legacy/components/loading-indicators/CirclePulse/CirclePulse.styles.d.ts +0 -7
- package/lib/legacy/components/loading-indicators/CircleSpinner/CircleSpinner.d.ts +0 -10
- package/lib/legacy/components/loading-indicators/CircleSpinner/CircleSpinner.stories.d.ts +0 -10
- package/lib/legacy/components/loading-indicators/CircleSpinner/index.d.ts +0 -1
- package/lib/legacy/components/loading-indicators/index.d.ts +0 -3
- package/src/components/forms/timePicker/constants.ts +0 -21
- package/src/components/forms/timePicker/styles/TimePicker.scss +0 -51
- package/src/legacy/components/Tooltip/Tooltip.stories.tsx +0 -107
- package/src/legacy/components/Tooltip/Tooltip.styles.ts +0 -64
- package/src/legacy/components/Tooltip/Tooltip.tsx +0 -70
- package/src/legacy/components/index.ts +0 -2
- package/src/legacy/components/loading-indicators/BarSpinner/BarSpinner.stories.tsx +0 -14
- package/src/legacy/components/loading-indicators/BarSpinner/BarSpinner.tsx +0 -21
- package/src/legacy/components/loading-indicators/CirclePulse/CirclePulse.stories.tsx +0 -22
- package/src/legacy/components/loading-indicators/CirclePulse/CirclePulse.styles.ts +0 -77
- package/src/legacy/components/loading-indicators/CirclePulse/CirclePulse.tsx +0 -57
- package/src/legacy/components/loading-indicators/CircleSpinner/CircleSpinner.stories.tsx +0 -16
- package/src/legacy/components/loading-indicators/CircleSpinner/CircleSpinner.tsx +0 -36
- package/src/legacy/components/loading-indicators/CircleSpinner/index.ts +0 -1
- package/src/legacy/components/loading-indicators/index.ts +0 -3
- /package/lib/{legacy/components → components}/loading-indicators/BarSpinner/index.d.ts +0 -0
- /package/lib/{legacy/components → components}/loading-indicators/CirclePulse/index.d.ts +0 -0
- /package/lib/{legacy/components/Tooltip → components/tooltip}/index.d.ts +0 -0
- /package/src/{legacy/components → components}/loading-indicators/BarSpinner/index.ts +0 -0
- /package/src/{legacy/components → components}/loading-indicators/CirclePulse/index.ts +0 -0
- /package/src/{legacy/components/Tooltip → components/tooltip}/index.ts +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { IconName } from '../../../icons/types';
|
|
2
|
+
export interface SingleInputDateTimePickerProps {
|
|
3
|
+
ariaLabel: string;
|
|
4
|
+
disableBeforeDate?: Date;
|
|
5
|
+
disableAfterDate?: Date;
|
|
6
|
+
isDisabled?: boolean;
|
|
7
|
+
captionLayout?: 'dropdown' | 'dropdown-months' | 'dropdown-years' | 'label';
|
|
8
|
+
id?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
onSelect: (selected: Date | undefined) => void;
|
|
11
|
+
initialMonth?: Date;
|
|
12
|
+
selected?: Date;
|
|
13
|
+
isOpen?: boolean;
|
|
14
|
+
clearOnClose?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
inputIconName?: IconName;
|
|
17
|
+
isClearable?: boolean;
|
|
18
|
+
inputPlaceholder?: string;
|
|
19
|
+
errorMessage?: string | undefined;
|
|
20
|
+
'data-testid'?: string;
|
|
21
|
+
timeValue?: string;
|
|
22
|
+
onTimeChange?: (time: string) => void;
|
|
23
|
+
}
|
|
24
|
+
export declare function SingleInputDateTimePicker(props: SingleInputDateTimePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { SingleInputDateTimePicker } from './SingleInputDateTimePicker';
|
|
3
|
+
declare const meta: Meta<typeof SingleInputDateTimePicker>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof SingleInputDateTimePicker>;
|
|
6
|
+
export declare const SingleInput: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formatDateAsString: (date: Date) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SingleInputDateTimePicker } from './SingleInputDateTimePicker';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
interface DisplayFormErrorProps {
|
|
2
2
|
message: string | undefined;
|
|
3
|
+
[key: string]: any;
|
|
3
4
|
}
|
|
4
|
-
export declare const DisplayFormError: ({ message }: DisplayFormErrorProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const DisplayFormError: ({ message, ...rest }: DisplayFormErrorProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
interface TimePickerProps {
|
|
2
2
|
timeValue?: string;
|
|
3
3
|
label?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
hasHiddenLabel?: boolean;
|
|
4
6
|
onTimeChange?: (time: string) => void;
|
|
5
7
|
}
|
|
6
|
-
export declare const TimePicker: ({ timeValue, label, onTimeChange, }: TimePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const TimePicker: ({ timeValue, label, name, hasHiddenLabel, onTimeChange, }: TimePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
9
|
export {};
|
|
@@ -22,3 +22,6 @@ export { Modal } from './modal';
|
|
|
22
22
|
export { Badge } from './badge';
|
|
23
23
|
export { Pagination } from './pagination';
|
|
24
24
|
export { TanstackTable } from './tanstackTable';
|
|
25
|
+
export { Tooltip } from './tooltip';
|
|
26
|
+
export { BarSpinner } from './loading-indicators/BarSpinner/BarSpinner';
|
|
27
|
+
export { CirclePulse } from './loading-indicators/CirclePulse/CirclePulse';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { BarSpinner } from './BarSpinner';
|
|
3
|
+
declare const meta: Meta;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof BarSpinner>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithWidthAndHeight: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface CirclePulseProps {
|
|
2
|
+
size?: 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
3
|
+
className?: string;
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}
|
|
6
|
+
export declare function CirclePulse({ size, className, ...rest }: CirclePulseProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PlacesType } from 'react-tooltip';
|
|
2
|
+
interface TooltipProps {
|
|
3
|
+
id: string;
|
|
4
|
+
clickToShow?: boolean;
|
|
5
|
+
delayShow?: number;
|
|
6
|
+
delayHide?: number;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
zIndex?: number;
|
|
9
|
+
place?: PlacesType;
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
12
|
+
export declare const Tooltip: ({ id, clickToShow, delayShow, delayHide, children, zIndex, place, ...rest }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
package/lib/index.css
CHANGED
|
@@ -438,6 +438,14 @@ a:hover,
|
|
|
438
438
|
background-color: var(--pf-background-color);
|
|
439
439
|
}
|
|
440
440
|
|
|
441
|
+
.react-tooltip {
|
|
442
|
+
z-index: 5;
|
|
443
|
+
background-color: var(--pf-tooltip-background-color);
|
|
444
|
+
border: var(--pf-border-sm) solid var(--pf-border-color);
|
|
445
|
+
opacity: 1 !important;
|
|
446
|
+
text-wrap: wrap;
|
|
447
|
+
}
|
|
448
|
+
|
|
441
449
|
:root,
|
|
442
450
|
:root [data-theme=light],
|
|
443
451
|
:root [data-theme=dark] {
|
|
@@ -1843,51 +1851,6 @@ form {
|
|
|
1843
1851
|
margin-bottom: 0;
|
|
1844
1852
|
}
|
|
1845
1853
|
|
|
1846
|
-
.time-picker-input {
|
|
1847
|
-
cursor: pointer;
|
|
1848
|
-
}
|
|
1849
|
-
|
|
1850
|
-
.time-picker-row {
|
|
1851
|
-
width: 150px;
|
|
1852
|
-
}
|
|
1853
|
-
.time-picker-row .select__value-container {
|
|
1854
|
-
text-align: center;
|
|
1855
|
-
cursor: pointer;
|
|
1856
|
-
}
|
|
1857
|
-
.time-picker-row .select-wrapper {
|
|
1858
|
-
width: 50px;
|
|
1859
|
-
}
|
|
1860
|
-
.time-picker-row .select-wrapper .select__items {
|
|
1861
|
-
justify-content: center;
|
|
1862
|
-
}
|
|
1863
|
-
.time-picker-row .select-wrapper .select__menu {
|
|
1864
|
-
height: 230px;
|
|
1865
|
-
padding-bottom: 0;
|
|
1866
|
-
margin-bottom: 0;
|
|
1867
|
-
}
|
|
1868
|
-
.time-picker-row .select__menu-list {
|
|
1869
|
-
max-height: 100%;
|
|
1870
|
-
scrollbar-width: none; /* Firefox */
|
|
1871
|
-
-ms-overflow-style: none; /* IE and Edge */
|
|
1872
|
-
overflow-y: scroll;
|
|
1873
|
-
}
|
|
1874
|
-
.time-picker-row .select__menu-list::-webkit-scrollbar {
|
|
1875
|
-
display: none; /* Chrome, Safari and Opera */
|
|
1876
|
-
}
|
|
1877
|
-
.time-picker-row .hour-menu .select__menu {
|
|
1878
|
-
border-top-right-radius: 0;
|
|
1879
|
-
border-bottom-right-radius: 0;
|
|
1880
|
-
}
|
|
1881
|
-
.time-picker-row .minute-menu .select__menu {
|
|
1882
|
-
border-radius: 0;
|
|
1883
|
-
border-right: none;
|
|
1884
|
-
border-left: none;
|
|
1885
|
-
}
|
|
1886
|
-
.time-picker-row .period-menu .select__menu {
|
|
1887
|
-
border-top-left-radius: 0;
|
|
1888
|
-
border-bottom-left-radius: 0;
|
|
1889
|
-
}
|
|
1890
|
-
|
|
1891
1854
|
:root {
|
|
1892
1855
|
--pf-badge-rounded: var(--pf-rounded);
|
|
1893
1856
|
}
|
|
@@ -2317,51 +2280,6 @@ form {
|
|
|
2317
2280
|
display: block;
|
|
2318
2281
|
}
|
|
2319
2282
|
|
|
2320
|
-
.time-picker-input {
|
|
2321
|
-
cursor: pointer;
|
|
2322
|
-
}
|
|
2323
|
-
|
|
2324
|
-
.time-picker-row {
|
|
2325
|
-
width: 150px;
|
|
2326
|
-
}
|
|
2327
|
-
.time-picker-row .select__value-container {
|
|
2328
|
-
text-align: center;
|
|
2329
|
-
cursor: pointer;
|
|
2330
|
-
}
|
|
2331
|
-
.time-picker-row .select-wrapper {
|
|
2332
|
-
width: 50px;
|
|
2333
|
-
}
|
|
2334
|
-
.time-picker-row .select-wrapper .select__items {
|
|
2335
|
-
justify-content: center;
|
|
2336
|
-
}
|
|
2337
|
-
.time-picker-row .select-wrapper .select__menu {
|
|
2338
|
-
height: 230px;
|
|
2339
|
-
padding-bottom: 0;
|
|
2340
|
-
margin-bottom: 0;
|
|
2341
|
-
}
|
|
2342
|
-
.time-picker-row .select__menu-list {
|
|
2343
|
-
max-height: 100%;
|
|
2344
|
-
scrollbar-width: none; /* Firefox */
|
|
2345
|
-
-ms-overflow-style: none; /* IE and Edge */
|
|
2346
|
-
overflow-y: scroll;
|
|
2347
|
-
}
|
|
2348
|
-
.time-picker-row .select__menu-list::-webkit-scrollbar {
|
|
2349
|
-
display: none; /* Chrome, Safari and Opera */
|
|
2350
|
-
}
|
|
2351
|
-
.time-picker-row .hour-menu .select__menu {
|
|
2352
|
-
border-top-right-radius: 0;
|
|
2353
|
-
border-bottom-right-radius: 0;
|
|
2354
|
-
}
|
|
2355
|
-
.time-picker-row .minute-menu .select__menu {
|
|
2356
|
-
border-radius: 0;
|
|
2357
|
-
border-right: none;
|
|
2358
|
-
border-left: none;
|
|
2359
|
-
}
|
|
2360
|
-
.time-picker-row .period-menu .select__menu {
|
|
2361
|
-
border-top-left-radius: 0;
|
|
2362
|
-
border-bottom-left-radius: 0;
|
|
2363
|
-
}
|
|
2364
|
-
|
|
2365
2283
|
:root [data-theme=light] {
|
|
2366
2284
|
--pf-pill-primary-background-color: var(--pf-primary-color);
|
|
2367
2285
|
--pf-pill-primary-font-color: var(--pf-white-color);
|
|
@@ -2477,6 +2395,147 @@ form {
|
|
|
2477
2395
|
border-color: var(--pf-pill-pending-border-color);
|
|
2478
2396
|
}
|
|
2479
2397
|
|
|
2398
|
+
:root [data-theme=light] {
|
|
2399
|
+
--pf-tooltip-background-color: var(--pf-white-color);
|
|
2400
|
+
}
|
|
2401
|
+
|
|
2402
|
+
:root [data-theme=dark],
|
|
2403
|
+
:root {
|
|
2404
|
+
--pf-tooltip-background-color: var(--pf-primary-color-900);
|
|
2405
|
+
}
|
|
2406
|
+
|
|
2407
|
+
@keyframes moveBg {
|
|
2408
|
+
0% {
|
|
2409
|
+
transform: translateX(0);
|
|
2410
|
+
}
|
|
2411
|
+
100% {
|
|
2412
|
+
transform: translateX(46px);
|
|
2413
|
+
}
|
|
2414
|
+
}
|
|
2415
|
+
.bar-spinner {
|
|
2416
|
+
display: inline-block;
|
|
2417
|
+
position: relative;
|
|
2418
|
+
width: 100%;
|
|
2419
|
+
height: 100%;
|
|
2420
|
+
min-height: 14px;
|
|
2421
|
+
border-radius: 25px;
|
|
2422
|
+
background-color: var(--pf-primary-color-800);
|
|
2423
|
+
}
|
|
2424
|
+
.bar-spinner > span {
|
|
2425
|
+
display: block;
|
|
2426
|
+
height: 100%;
|
|
2427
|
+
width: 100%;
|
|
2428
|
+
border-radius: 25px;
|
|
2429
|
+
position: relative;
|
|
2430
|
+
overflow: hidden;
|
|
2431
|
+
}
|
|
2432
|
+
.bar-spinner > span:after {
|
|
2433
|
+
content: "";
|
|
2434
|
+
position: absolute;
|
|
2435
|
+
top: 0;
|
|
2436
|
+
left: -46px;
|
|
2437
|
+
bottom: 0;
|
|
2438
|
+
right: 0;
|
|
2439
|
+
background: repeating-linear-gradient(-55deg, transparent 1px, rgba(255, 255, 255, 0.25) 2px, rgba(255, 255, 255, 0.25) 11px, transparent 12px, transparent 20px);
|
|
2440
|
+
animation-name: moveBg;
|
|
2441
|
+
animation-duration: 1s;
|
|
2442
|
+
animation-timing-function: linear;
|
|
2443
|
+
animation-iteration-count: infinite;
|
|
2444
|
+
border-radius: 20px;
|
|
2445
|
+
overflow: hidden;
|
|
2446
|
+
}
|
|
2447
|
+
|
|
2448
|
+
:root {
|
|
2449
|
+
--circle-pulse-animation-speed: 1.4s;
|
|
2450
|
+
--circle-pulse-border-width: var(--pf-border-xl);
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
.circle-pulse-xxs {
|
|
2454
|
+
--circle-pulse-size: 20px;
|
|
2455
|
+
--circle-pulse-ripple-size: calc(20px * 1.7);
|
|
2456
|
+
}
|
|
2457
|
+
|
|
2458
|
+
.circle-pulse-xs {
|
|
2459
|
+
--circle-pulse-size: 40px;
|
|
2460
|
+
--circle-pulse-ripple-size: calc(40px * 1.7);
|
|
2461
|
+
}
|
|
2462
|
+
|
|
2463
|
+
.circle-pulse-sm {
|
|
2464
|
+
--circle-pulse-size: 60px;
|
|
2465
|
+
--circle-pulse-ripple-size: calc(60px * 1.7);
|
|
2466
|
+
}
|
|
2467
|
+
|
|
2468
|
+
.circle-pulse-md {
|
|
2469
|
+
--circle-pulse-size: 80px;
|
|
2470
|
+
--circle-pulse-ripple-size: calc(80px * 1.7);
|
|
2471
|
+
}
|
|
2472
|
+
|
|
2473
|
+
.circle-pulse-lg {
|
|
2474
|
+
--circle-pulse-size: 100px;
|
|
2475
|
+
--circle-pulse-ripple-size: calc(100px * 1.7);
|
|
2476
|
+
}
|
|
2477
|
+
|
|
2478
|
+
.circle-pulse-xl {
|
|
2479
|
+
--circle-pulse-size: 120px;
|
|
2480
|
+
--circle-pulse-ripple-size: calc(120px * 1.7);
|
|
2481
|
+
}
|
|
2482
|
+
|
|
2483
|
+
.circle-pulse-xxl {
|
|
2484
|
+
--circle-pulse-size: 140px;
|
|
2485
|
+
--circle-pulse-ripple-size: calc(140px * 1.7);
|
|
2486
|
+
}
|
|
2487
|
+
|
|
2488
|
+
@keyframes ripple {
|
|
2489
|
+
0% {
|
|
2490
|
+
transform: translate(-50%, -50%) scale(0);
|
|
2491
|
+
opacity: 0;
|
|
2492
|
+
}
|
|
2493
|
+
20% {
|
|
2494
|
+
opacity: 1;
|
|
2495
|
+
}
|
|
2496
|
+
100% {
|
|
2497
|
+
transform: translate(-50%, -50%) scale(1);
|
|
2498
|
+
opacity: 0;
|
|
2499
|
+
}
|
|
2500
|
+
}
|
|
2501
|
+
.circle-pulse {
|
|
2502
|
+
display: grid;
|
|
2503
|
+
place-items: center;
|
|
2504
|
+
position: relative;
|
|
2505
|
+
width: var(--circle-pulse-size);
|
|
2506
|
+
height: var(--circle-pulse-size);
|
|
2507
|
+
margin-left: auto;
|
|
2508
|
+
margin-right: auto;
|
|
2509
|
+
}
|
|
2510
|
+
.circle-pulse:before, .circle-pulse:after {
|
|
2511
|
+
content: "";
|
|
2512
|
+
position: absolute;
|
|
2513
|
+
border: var(--circle-pulse-border-width) solid var(--pf-primary-color-300);
|
|
2514
|
+
border-radius: 50%;
|
|
2515
|
+
/* Set initial dimensions */
|
|
2516
|
+
width: var(--circle-pulse-ripple-size);
|
|
2517
|
+
height: var(--circle-pulse-ripple-size);
|
|
2518
|
+
/* Position at center */
|
|
2519
|
+
top: 50%;
|
|
2520
|
+
left: 50%;
|
|
2521
|
+
transform: translate(-50%, -50%) scale(0);
|
|
2522
|
+
transform-origin: center;
|
|
2523
|
+
animation: ripple var(--circle-pulse-animation-speed) cubic-bezier(0, 0.2, 0.8, 1) infinite;
|
|
2524
|
+
}
|
|
2525
|
+
@media (prefers-reduced-motion) {
|
|
2526
|
+
.circle-pulse:before, .circle-pulse:after {
|
|
2527
|
+
animation-duration: calc(var(--circle-pulse-animation-speed) * 2);
|
|
2528
|
+
}
|
|
2529
|
+
}
|
|
2530
|
+
.circle-pulse:after {
|
|
2531
|
+
animation-delay: calc(var(--circle-pulse-animation-speed) * -0.5);
|
|
2532
|
+
}
|
|
2533
|
+
@media (prefers-reduced-motion) {
|
|
2534
|
+
.circle-pulse:after {
|
|
2535
|
+
animation-delay: calc(var(--circle-pulse-animation-speed) * -1);
|
|
2536
|
+
}
|
|
2537
|
+
}
|
|
2538
|
+
|
|
2480
2539
|
:root [data-theme=light] {
|
|
2481
2540
|
--sheets-background-color: var(--pf-gray-color-100);
|
|
2482
2541
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
import { IconDefinition, IconName as IconName$1 } from '@fortawesome/fontawesome-svg-core';
|
|
2
2
|
import { UseFloatingOptions } from '@floating-ui/react-dom';
|
|
3
3
|
export * from '@floating-ui/react-dom';
|
|
4
|
-
import React$1, { CSSProperties, MouseEventHandler, ReactElement } from 'react';
|
|
5
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
5
|
import { ContainerProps, RowProps, ColProps } from 'react-grid-system';
|
|
6
|
+
import React$1, { CSSProperties, MouseEventHandler, ReactElement } from 'react';
|
|
7
7
|
import { IDataTableProps, Direction as Direction$1, TableColumn as TableColumn$1 } from 'react-data-table-component';
|
|
8
8
|
import { CSSObject } from 'styled-components';
|
|
9
|
-
import { Props as Props$
|
|
9
|
+
import { Props as Props$4 } 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
12
|
export { ColumnDef, Row as TanstackTableRowType, Table as TanstackTableType } from '@tanstack/react-table';
|
|
13
|
+
import { PlacesType } from 'react-tooltip';
|
|
13
14
|
|
|
14
15
|
declare const registerFontAwesomeIcons: (...icons: IconDefinition[]) => void;
|
|
15
16
|
|
|
17
|
+
declare const Container: ({ ref: _ref, ...rest }: ContainerProps) => react_jsx_runtime.JSX.Element;
|
|
18
|
+
|
|
19
|
+
declare const Row: ({ ref: _ref, ...rest }: RowProps) => react_jsx_runtime.JSX.Element;
|
|
20
|
+
|
|
21
|
+
declare const Col: ({ ref: _ref, ...rest }: ColProps) => react_jsx_runtime.JSX.Element;
|
|
22
|
+
|
|
16
23
|
declare const indicons: {
|
|
17
24
|
'indico-o-white': react_jsx_runtime.JSX.Element;
|
|
18
25
|
account: react_jsx_runtime.JSX.Element;
|
|
@@ -224,46 +231,6 @@ type PermafrostComponent = {
|
|
|
224
231
|
|
|
225
232
|
type SemanticColor = 'primary' | 'secondary' | 'warning' | 'error' | 'success' | 'info' | 'pending';
|
|
226
233
|
|
|
227
|
-
type Props$7 = PermafrostComponent & {
|
|
228
|
-
ariaLabel?: string;
|
|
229
|
-
size?: IconSizes;
|
|
230
|
-
style?: React$1.CSSProperties;
|
|
231
|
-
fill?: string;
|
|
232
|
-
};
|
|
233
|
-
declare function CircleSpinner(props: Props$7): React$1.ReactElement;
|
|
234
|
-
|
|
235
|
-
type Props$6 = PermafrostComponent & {
|
|
236
|
-
width?: string;
|
|
237
|
-
};
|
|
238
|
-
declare function BarSpinner(props: Props$6): React$1.ReactElement;
|
|
239
|
-
|
|
240
|
-
type Props$5 = PermafrostComponent & {
|
|
241
|
-
color?: string;
|
|
242
|
-
overallSize?: string | number;
|
|
243
|
-
rippleSize?: string | number;
|
|
244
|
-
showRandomMessage?: boolean;
|
|
245
|
-
};
|
|
246
|
-
declare function CirclePulse(props: Props$5): React$1.ReactElement;
|
|
247
|
-
|
|
248
|
-
type Props$4 = PermafrostComponent & {
|
|
249
|
-
questionMark?: boolean;
|
|
250
|
-
for?: string | null;
|
|
251
|
-
place?: string;
|
|
252
|
-
clickToShow?: boolean;
|
|
253
|
-
delayShow?: number;
|
|
254
|
-
delayHide?: number;
|
|
255
|
-
questionMarkClassName?: string;
|
|
256
|
-
children: React$1.ReactNode;
|
|
257
|
-
block?: boolean;
|
|
258
|
-
};
|
|
259
|
-
declare const Tooltip: (props: Props$4) => react_jsx_runtime.JSX.Element;
|
|
260
|
-
|
|
261
|
-
declare const Container: ({ ref: _ref, ...rest }: ContainerProps) => react_jsx_runtime.JSX.Element;
|
|
262
|
-
|
|
263
|
-
declare const Row: ({ ref: _ref, ...rest }: RowProps) => react_jsx_runtime.JSX.Element;
|
|
264
|
-
|
|
265
|
-
declare const Col: ({ ref: _ref, ...rest }: ColProps) => react_jsx_runtime.JSX.Element;
|
|
266
|
-
|
|
267
234
|
type ButtonVariants = 'solid' | 'outline' | 'link' | 'action' | 'destructive' | 'soft';
|
|
268
235
|
type ButtonSizes = 'xs' | 'sm' | 'md' | 'lg';
|
|
269
236
|
type ButtonTypes = 'button' | 'submit' | 'reset';
|
|
@@ -393,7 +360,7 @@ interface PasswordInputProps extends LabelProps {
|
|
|
393
360
|
}
|
|
394
361
|
declare const LabeledPasswordInput: React$1.ForwardRefExoticComponent<Omit<Omit<PasswordInputProps, "ref"> & React$1.RefAttributes<HTMLInputElement> & LabelProps, "ref"> & React$1.RefAttributes<any>>;
|
|
395
362
|
|
|
396
|
-
interface SelectProps<OptionType extends SelectOption> extends Props$
|
|
363
|
+
interface SelectProps<OptionType extends SelectOption> extends Props$4<OptionType> {
|
|
397
364
|
options: OptionType[];
|
|
398
365
|
}
|
|
399
366
|
declare const Select: <OptionType extends SelectOption>({ classNamePrefix, className, components: customComponents, ...props }: SelectProps<OptionType>) => react_jsx_runtime.JSX.Element;
|
|
@@ -433,9 +400,11 @@ declare const DatePicker: (props: DatePickerProps) => react_jsx_runtime.JSX.Elem
|
|
|
433
400
|
interface TimePickerProps {
|
|
434
401
|
timeValue?: string;
|
|
435
402
|
label?: string;
|
|
403
|
+
name?: string;
|
|
404
|
+
hasHiddenLabel?: boolean;
|
|
436
405
|
onTimeChange?: (time: string) => void;
|
|
437
406
|
}
|
|
438
|
-
declare const TimePicker: ({ timeValue, label, onTimeChange, }: TimePickerProps) => react_jsx_runtime.JSX.Element;
|
|
407
|
+
declare const TimePicker: ({ timeValue, label, name, hasHiddenLabel, onTimeChange, }: TimePickerProps) => react_jsx_runtime.JSX.Element;
|
|
439
408
|
|
|
440
409
|
interface Props$3 {
|
|
441
410
|
mode?: Mode;
|
|
@@ -578,7 +547,7 @@ type WithoutPaginationProps = {
|
|
|
578
547
|
totalEntriesText?: string;
|
|
579
548
|
showPagination?: false;
|
|
580
549
|
};
|
|
581
|
-
type PaginationProps = WithPaginationProps | WithoutPaginationProps;
|
|
550
|
+
type PaginationProps$1 = WithPaginationProps | WithoutPaginationProps;
|
|
582
551
|
type Props<T extends object> = {
|
|
583
552
|
data: T[];
|
|
584
553
|
columns: ColumnDef<T & {
|
|
@@ -605,10 +574,47 @@ type Props<T extends object> = {
|
|
|
605
574
|
rowSelection?: Record<string, boolean>;
|
|
606
575
|
onRowSelectionChange?: (updater: Record<string, boolean>) => void;
|
|
607
576
|
onSelectAllChange?: (isSelected: boolean) => void;
|
|
608
|
-
} & PaginationProps;
|
|
577
|
+
} & PaginationProps$1;
|
|
609
578
|
|
|
610
579
|
declare function TanstackTable<T extends object>({ columns: defaultColumns, data, className, currentPage, rowCount, rowsPerPage, onChangePage, totalEntriesText, TableActions, error, enableRowSelection, clearFilters, hasFilters, showPagination, isLoading, defaultPinnedColumns, onRowClick, activeRows, actionBarClassName, ...rest }: Props<T & {
|
|
611
580
|
id: string;
|
|
612
581
|
}>): react_jsx_runtime.JSX.Element;
|
|
613
582
|
|
|
614
|
-
|
|
583
|
+
interface TooltipProps {
|
|
584
|
+
id: string;
|
|
585
|
+
clickToShow?: boolean;
|
|
586
|
+
delayShow?: number;
|
|
587
|
+
delayHide?: number;
|
|
588
|
+
children: React.ReactNode;
|
|
589
|
+
zIndex?: number;
|
|
590
|
+
place?: PlacesType;
|
|
591
|
+
[key: string]: any;
|
|
592
|
+
}
|
|
593
|
+
declare const Tooltip: ({ id, clickToShow, delayShow, delayHide, children, zIndex, place, ...rest }: TooltipProps) => react_jsx_runtime.JSX.Element;
|
|
594
|
+
|
|
595
|
+
interface PaginationProps {
|
|
596
|
+
totalPages: number;
|
|
597
|
+
currentPage?: number;
|
|
598
|
+
className?: string;
|
|
599
|
+
onChange?: (value: number) => void;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
declare const Pagination: ({ totalPages, currentPage, onChange, className, ...rest }: PaginationProps) => react_jsx_runtime.JSX.Element;
|
|
603
|
+
|
|
604
|
+
interface CirclePulseProps {
|
|
605
|
+
size?: 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
606
|
+
className?: string;
|
|
607
|
+
[key: string]: any;
|
|
608
|
+
}
|
|
609
|
+
declare function CirclePulse({ size, className, ...rest }: CirclePulseProps): react_jsx_runtime.JSX.Element;
|
|
610
|
+
|
|
611
|
+
declare function BarSpinner({ width, id, height, className, ...rest }: {
|
|
612
|
+
'data-testid'?: string;
|
|
613
|
+
width?: number;
|
|
614
|
+
id?: string;
|
|
615
|
+
height?: number;
|
|
616
|
+
className?: string;
|
|
617
|
+
[key: string]: any;
|
|
618
|
+
}): react_jsx_runtime.JSX.Element;
|
|
619
|
+
|
|
620
|
+
export { Badge, BarSpinner, Button, Card, Checkbox, CirclePulse, Col, Container, DatePicker, FloatUI, Form, Icon, IconTriggerDatePicker, LabeledInput as Input, Menu, Modal, Pagination, LabeledPasswordInput as PasswordInput, Pill, Radio as RadioInput, Row, Select as SelectInput, SingleInputDatePicker, Skeleton, Table, TanstackTable, LabeledTextarea as Textarea, TimePicker, Toggle as ToggleInput, Tooltip, registerFontAwesomeIcons };
|