@indico-data/design-system 2.24.0 → 2.24.1
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/index.d.ts +68 -65
- package/lib/index.esm.js +4 -4
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +4 -4
- package/lib/index.js.map +1 -1
- package/lib/src/components/button/types.d.ts +2 -3
- package/lib/src/components/pill/Pill.d.ts +2 -7
- package/lib/src/components/pill/types.d.ts +10 -0
- package/lib/src/types.d.ts +3 -0
- package/package.json +1 -1
- package/src/components/button/types.ts +2 -4
- package/src/components/pill/Pill.stories.tsx +12 -12
- package/src/components/pill/Pill.tsx +5 -10
- package/src/components/pill/__tests__/Pill.test.tsx +10 -12
- package/src/components/pill/types.ts +12 -0
- package/src/types.ts +6 -0
package/lib/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as styled_components from 'styled-components';
|
|
3
3
|
import React$1, { ChangeEvent, MouseEventHandler } from 'react';
|
|
4
|
-
import { PermafrostComponent as PermafrostComponent$1, IconName as IconName$1, IconSizes as IconSizes$1 } from '@/types';
|
|
4
|
+
import { PermafrostComponent as PermafrostComponent$1, IconName as IconName$1, IconSizes as IconSizes$1, SemanticColor } from '@/types';
|
|
5
5
|
import { AriaButtonProps } from '@react-types/button';
|
|
6
6
|
import { AriaRadioProps, RadioGroupProps as RadioGroupProps$1, AriaRadioGroupProps } from '@react-types/radio';
|
|
7
7
|
import { DateRange } from 'react-day-picker';
|
|
8
8
|
import { ContainerProps, RowProps, ColProps } from 'react-grid-system';
|
|
9
9
|
import { TableProps as TableProps$1, Direction as Direction$1, Alignment as Alignment$1 } from 'react-data-table-component';
|
|
10
|
-
import { Props as Props$
|
|
10
|
+
import { Props as Props$r } from 'react-select';
|
|
11
11
|
import { Placement } from '@floating-ui/react-dom';
|
|
12
12
|
|
|
13
13
|
declare const GlobalStyles: () => react_jsx_runtime.JSX.Element;
|
|
@@ -222,25 +222,25 @@ declare const allColors: {
|
|
|
222
222
|
readonly backgroundColor: "#182432";
|
|
223
223
|
};
|
|
224
224
|
|
|
225
|
-
type Props$
|
|
225
|
+
type Props$q = PermafrostComponent$1 & {
|
|
226
226
|
content: React$1.ReactNode;
|
|
227
227
|
header?: React$1.ReactNode | string;
|
|
228
228
|
open?: boolean;
|
|
229
229
|
};
|
|
230
|
-
declare const Accordion: (props: Props$
|
|
230
|
+
declare const Accordion: (props: Props$q) => react_jsx_runtime.JSX.Element;
|
|
231
231
|
|
|
232
|
-
type Props$
|
|
232
|
+
type Props$p = PermafrostComponent$1 & {
|
|
233
233
|
style?: object;
|
|
234
234
|
children: React$1.ReactNode;
|
|
235
235
|
};
|
|
236
|
-
declare const Section: (props: Props$
|
|
236
|
+
declare const Section: (props: Props$p) => react_jsx_runtime.JSX.Element;
|
|
237
237
|
|
|
238
|
-
type Props$
|
|
238
|
+
type Props$o = PermafrostComponent$1 & {
|
|
239
239
|
title?: string;
|
|
240
240
|
style?: object;
|
|
241
241
|
children: React$1.ReactNode;
|
|
242
242
|
};
|
|
243
|
-
declare const SectionBlock: (props: Props$
|
|
243
|
+
declare const SectionBlock: (props: Props$o) => react_jsx_runtime.JSX.Element;
|
|
244
244
|
|
|
245
245
|
type SectionBodyProps = PermafrostComponent$1 & {
|
|
246
246
|
style?: object;
|
|
@@ -248,11 +248,11 @@ type SectionBodyProps = PermafrostComponent$1 & {
|
|
|
248
248
|
};
|
|
249
249
|
declare const SectionBody: (props: SectionBodyProps) => react_jsx_runtime.JSX.Element;
|
|
250
250
|
|
|
251
|
-
type Props$
|
|
251
|
+
type Props$n = PermafrostComponent$1 & {
|
|
252
252
|
style?: object;
|
|
253
253
|
children?: React$1.ReactNode;
|
|
254
254
|
};
|
|
255
|
-
declare const SectionHeader: (props: Props$
|
|
255
|
+
declare const SectionHeader: (props: Props$n) => react_jsx_runtime.JSX.Element;
|
|
256
256
|
|
|
257
257
|
declare const SectionTable: (props: any) => react_jsx_runtime.JSX.Element;
|
|
258
258
|
|
|
@@ -279,7 +279,7 @@ declare function Button$1(props: ButtonProps$1): React$1.ReactElement;
|
|
|
279
279
|
type IconButtonVariant = 'default' | 'primary' | 'destructive' | 'outline';
|
|
280
280
|
type ButtonSize = 'normal' | 'large';
|
|
281
281
|
|
|
282
|
-
type Props$
|
|
282
|
+
type Props$m = PermafrostComponent$1 & {
|
|
283
283
|
/**
|
|
284
284
|
* Adjusts vertical alignment of the text label, in relation to the icon
|
|
285
285
|
*/
|
|
@@ -305,9 +305,9 @@ type Props$n = PermafrostComponent$1 & {
|
|
|
305
305
|
*
|
|
306
306
|
* @see {@link https://react-spectrum.adobe.com/blog/building-a-button-part-1.html}
|
|
307
307
|
*/
|
|
308
|
-
declare function IconButton(props: Props$
|
|
308
|
+
declare function IconButton(props: Props$m): react_jsx_runtime.JSX.Element;
|
|
309
309
|
|
|
310
|
-
type Props$
|
|
310
|
+
type Props$l = PermafrostComponent$1 & {
|
|
311
311
|
defaultValue?: string;
|
|
312
312
|
disabled?: boolean;
|
|
313
313
|
horizontal?: boolean;
|
|
@@ -322,7 +322,7 @@ type Props$m = PermafrostComponent$1 & {
|
|
|
322
322
|
value?: string | number;
|
|
323
323
|
validationErrors?: string[];
|
|
324
324
|
};
|
|
325
|
-
declare const BorderSelect: (props: Props$
|
|
325
|
+
declare const BorderSelect: (props: Props$l) => react_jsx_runtime.JSX.Element;
|
|
326
326
|
|
|
327
327
|
type ComboboxProps = {
|
|
328
328
|
'aria-label'?: string;
|
|
@@ -370,7 +370,7 @@ type ComboboxOption = {
|
|
|
370
370
|
type ComboboxSize = 'small' | 'medium';
|
|
371
371
|
type ComboboxVariant = 'default' | 'light';
|
|
372
372
|
|
|
373
|
-
type Props$
|
|
373
|
+
type Props$k = PermafrostComponent$1 & {
|
|
374
374
|
disabled?: boolean;
|
|
375
375
|
initialText?: string;
|
|
376
376
|
options: {
|
|
@@ -384,7 +384,7 @@ type Props$l = PermafrostComponent$1 & {
|
|
|
384
384
|
onChange(e: React$1.ChangeEvent<HTMLSelectElement>): void;
|
|
385
385
|
onClick?(e: React$1.MouseEvent<HTMLDivElement, MouseEvent>): void;
|
|
386
386
|
};
|
|
387
|
-
declare const Select$1: (props: Props$
|
|
387
|
+
declare const Select$1: (props: Props$k) => react_jsx_runtime.JSX.Element;
|
|
388
388
|
|
|
389
389
|
/**
|
|
390
390
|
* Multiselect combobox component. If selections are not bound to outside state
|
|
@@ -425,7 +425,7 @@ declare const SingleCombobox: React$1.ForwardRefExoticComponent<PermafrostCompon
|
|
|
425
425
|
onChange: (selectedOption: ComboboxOption) => void;
|
|
426
426
|
} & React$1.RefAttributes<unknown>>;
|
|
427
427
|
|
|
428
|
-
type Props$
|
|
428
|
+
type Props$j = PermafrostComponent$1 & {
|
|
429
429
|
children: React$1.ReactNode | string;
|
|
430
430
|
minLength?: number;
|
|
431
431
|
onUpdate?(newValue: string): void;
|
|
@@ -434,9 +434,9 @@ type Props$k = PermafrostComponent$1 & {
|
|
|
434
434
|
* Wrapper component which enables text editing in place directly on a child component,
|
|
435
435
|
* element, or plain text.
|
|
436
436
|
*/
|
|
437
|
-
declare function EditableInput(props: Props$
|
|
437
|
+
declare function EditableInput(props: Props$j): react_jsx_runtime.JSX.Element;
|
|
438
438
|
|
|
439
|
-
type Props$
|
|
439
|
+
type Props$i = PermafrostComponent$1 & {
|
|
440
440
|
autoFocus?: boolean;
|
|
441
441
|
decrement?(): void;
|
|
442
442
|
disabled?: boolean;
|
|
@@ -456,9 +456,9 @@ type Props$j = PermafrostComponent$1 & {
|
|
|
456
456
|
* Basic numeric input field. A label is required, but may be visually hidden
|
|
457
457
|
* using the `hiddenLabel` property.
|
|
458
458
|
*/
|
|
459
|
-
declare function NumberInput(props: Props$
|
|
459
|
+
declare function NumberInput(props: Props$i): React$1.ReactElement;
|
|
460
460
|
|
|
461
|
-
type Props$
|
|
461
|
+
type Props$h = PermafrostComponent$1 & {
|
|
462
462
|
inputBorder?: boolean;
|
|
463
463
|
showClearInputIcon?: boolean;
|
|
464
464
|
showSearchIcon?: boolean;
|
|
@@ -471,9 +471,9 @@ type Props$i = PermafrostComponent$1 & {
|
|
|
471
471
|
placeholder?: string;
|
|
472
472
|
value?: string;
|
|
473
473
|
};
|
|
474
|
-
declare const SearchInput: (props: Props$
|
|
474
|
+
declare const SearchInput: (props: Props$h) => react_jsx_runtime.JSX.Element;
|
|
475
475
|
|
|
476
|
-
type Props$
|
|
476
|
+
type Props$g = PermafrostComponent$1 & {
|
|
477
477
|
autoComplete?: 'email' | 'current-password' | 'new-password' | string;
|
|
478
478
|
autoFocus?: boolean;
|
|
479
479
|
defaultValue?: string;
|
|
@@ -494,9 +494,9 @@ type Props$h = PermafrostComponent$1 & {
|
|
|
494
494
|
value?: string;
|
|
495
495
|
readOnly?: boolean;
|
|
496
496
|
};
|
|
497
|
-
declare function TextInput(props: Props$
|
|
497
|
+
declare function TextInput(props: Props$g): React$1.ReactElement;
|
|
498
498
|
|
|
499
|
-
type Props$
|
|
499
|
+
type Props$f = {
|
|
500
500
|
['aria-label']: string;
|
|
501
501
|
children?: React$1.ReactNode;
|
|
502
502
|
hideFocusRing: boolean;
|
|
@@ -512,7 +512,7 @@ type Props$g = {
|
|
|
512
512
|
* A group label must be included: either pass a string or markup into the
|
|
513
513
|
* `label` prop, or include an `aria-label` or `aria-labelledby` attribute.
|
|
514
514
|
*/
|
|
515
|
-
declare function RadioGroup$1({ children, ...props }: Props$
|
|
515
|
+
declare function RadioGroup$1({ children, ...props }: Props$f): react_jsx_runtime.JSX.Element;
|
|
516
516
|
/**
|
|
517
517
|
* A single radio button and its label.
|
|
518
518
|
*/
|
|
@@ -541,7 +541,7 @@ declare function Radio$1(props: AriaRadioProps & {
|
|
|
541
541
|
isVisuallySelected?: (selectedValue: string) => void;
|
|
542
542
|
}): react_jsx_runtime.JSX.Element;
|
|
543
543
|
|
|
544
|
-
type Props$
|
|
544
|
+
type Props$e = PermafrostComponent$1 & {
|
|
545
545
|
ariaLabel?: string;
|
|
546
546
|
disableBeforeDate?: Date;
|
|
547
547
|
disableAfterDate?: Date;
|
|
@@ -553,9 +553,9 @@ type Props$f = PermafrostComponent$1 & {
|
|
|
553
553
|
selected?: Date | undefined;
|
|
554
554
|
value: Date | undefined;
|
|
555
555
|
};
|
|
556
|
-
declare const DatePicker: (props: Props$
|
|
556
|
+
declare const DatePicker: (props: Props$e) => react_jsx_runtime.JSX.Element;
|
|
557
557
|
|
|
558
|
-
type Props$
|
|
558
|
+
type Props$d = PermafrostComponent$1 & {
|
|
559
559
|
ariaLabel?: string;
|
|
560
560
|
disableBeforeDate?: Date;
|
|
561
561
|
disableAfterDate?: Date;
|
|
@@ -572,32 +572,32 @@ type Props$e = PermafrostComponent$1 & {
|
|
|
572
572
|
isOpen?: boolean;
|
|
573
573
|
clearOnClose?: boolean;
|
|
574
574
|
};
|
|
575
|
-
declare const NoInputDatePicker: (props: Props$
|
|
575
|
+
declare const NoInputDatePicker: (props: Props$d) => react_jsx_runtime.JSX.Element;
|
|
576
576
|
|
|
577
|
-
type Props$
|
|
577
|
+
type Props$c = PermafrostComponent$1 & {
|
|
578
578
|
ariaLabel?: string;
|
|
579
579
|
size?: IconSizes$1;
|
|
580
580
|
style?: React$1.CSSProperties;
|
|
581
581
|
fill?: string;
|
|
582
582
|
};
|
|
583
|
-
declare function CircleSpinner(props: Props$
|
|
583
|
+
declare function CircleSpinner(props: Props$c): React$1.ReactElement;
|
|
584
584
|
|
|
585
|
-
type Props$
|
|
585
|
+
type Props$b = PermafrostComponent$1 & {
|
|
586
586
|
width?: string;
|
|
587
587
|
};
|
|
588
|
-
declare function BarSpinner(props: Props$
|
|
588
|
+
declare function BarSpinner(props: Props$b): React$1.ReactElement;
|
|
589
589
|
|
|
590
|
-
type Props$
|
|
590
|
+
type Props$a = PermafrostComponent$1 & {
|
|
591
591
|
color?: string;
|
|
592
592
|
overallSize?: string | number;
|
|
593
593
|
rippleSize?: string | number;
|
|
594
594
|
showRandomMessage?: boolean;
|
|
595
595
|
};
|
|
596
|
-
declare function CirclePulse(props: Props$
|
|
596
|
+
declare function CirclePulse(props: Props$a): React$1.ReactElement;
|
|
597
597
|
|
|
598
598
|
declare const RandomLoadingMessage: () => react_jsx_runtime.JSX.Element;
|
|
599
599
|
|
|
600
|
-
type Props$
|
|
600
|
+
type Props$9 = PermafrostComponent$1 & {
|
|
601
601
|
backgroundColor?: string;
|
|
602
602
|
foregroundColor?: string;
|
|
603
603
|
ringRadius?: number;
|
|
@@ -606,11 +606,11 @@ type Props$a = PermafrostComponent$1 & {
|
|
|
606
606
|
value: number;
|
|
607
607
|
valueFontSize?: number;
|
|
608
608
|
};
|
|
609
|
-
declare function PercentageRing(props: Props$
|
|
609
|
+
declare function PercentageRing(props: Props$9): react_jsx_runtime.JSX.Element;
|
|
610
610
|
|
|
611
611
|
declare const LoadingList: () => react_jsx_runtime.JSX.Element;
|
|
612
612
|
|
|
613
|
-
type Props$
|
|
613
|
+
type Props$8 = PermafrostComponent$1 & {
|
|
614
614
|
accordion?: boolean;
|
|
615
615
|
accordionDefaultOpen?: boolean;
|
|
616
616
|
emptyListMessage?: string;
|
|
@@ -647,9 +647,9 @@ type Props$9 = PermafrostComponent$1 & {
|
|
|
647
647
|
title: string;
|
|
648
648
|
totalCount?: number;
|
|
649
649
|
};
|
|
650
|
-
declare const ListTable: (props: Props$
|
|
650
|
+
declare const ListTable: (props: Props$8) => react_jsx_runtime.JSX.Element;
|
|
651
651
|
|
|
652
|
-
type Props$
|
|
652
|
+
type Props$7 = PermafrostComponent$1 & {
|
|
653
653
|
currentPage: number;
|
|
654
654
|
limit: number;
|
|
655
655
|
pageInfo: {
|
|
@@ -664,9 +664,9 @@ type Props$8 = PermafrostComponent$1 & {
|
|
|
664
664
|
getNextPage(cursor: number): void;
|
|
665
665
|
getPreviousPage(cursor: number): void;
|
|
666
666
|
};
|
|
667
|
-
declare function Pagination(props: Props$
|
|
667
|
+
declare function Pagination(props: Props$7): react_jsx_runtime.JSX.Element;
|
|
668
668
|
|
|
669
|
-
type Props$
|
|
669
|
+
type Props$6 = PermafrostComponent$1 & {
|
|
670
670
|
actionLink?: string;
|
|
671
671
|
actionText?: string;
|
|
672
672
|
buttonAction?(): void;
|
|
@@ -676,7 +676,7 @@ type Props$7 = PermafrostComponent$1 & {
|
|
|
676
676
|
'data-cy': string;
|
|
677
677
|
};
|
|
678
678
|
};
|
|
679
|
-
declare function Shrug(props: Props$
|
|
679
|
+
declare function Shrug(props: Props$6): React$1.ReactElement;
|
|
680
680
|
|
|
681
681
|
type ModalBaseProps = PermafrostComponent$1 & {
|
|
682
682
|
children: React$1.ReactNode | React$1.ReactNode[];
|
|
@@ -703,7 +703,7 @@ type ModalBaseProps = PermafrostComponent$1 & {
|
|
|
703
703
|
*/
|
|
704
704
|
declare function ModalBase(props: ModalBaseProps): react_jsx_runtime.JSX.Element;
|
|
705
705
|
|
|
706
|
-
type Props$
|
|
706
|
+
type Props$5 = PermafrostComponent$1 & Pick<ModalBaseProps, 'open'> & {
|
|
707
707
|
describedBy?: string;
|
|
708
708
|
clickOutsideHandler(e?: React$1.SyntheticEvent): void;
|
|
709
709
|
confirmText?: string;
|
|
@@ -715,9 +715,9 @@ type Props$6 = PermafrostComponent$1 & Pick<ModalBaseProps, 'open'> & {
|
|
|
715
715
|
title?: string | React$1.ReactNode;
|
|
716
716
|
width?: number;
|
|
717
717
|
};
|
|
718
|
-
declare function ConfirmModal(props: Props$
|
|
718
|
+
declare function ConfirmModal(props: Props$5): react_jsx_runtime.JSX.Element;
|
|
719
719
|
|
|
720
|
-
type Props$
|
|
720
|
+
type Props$4 = {
|
|
721
721
|
children: React$1.ReactNode | React$1.ReactNode[];
|
|
722
722
|
className?: string;
|
|
723
723
|
isLoading?: boolean;
|
|
@@ -729,7 +729,7 @@ type Props$5 = {
|
|
|
729
729
|
*
|
|
730
730
|
* todo: this is an extremely simple version of this component; as I get more familiar with LoadingIndicator use cases, this will be refactored. - jm 9/1/2020
|
|
731
731
|
*/
|
|
732
|
-
declare function LoadingAwareContainer(props: Props$
|
|
732
|
+
declare function LoadingAwareContainer(props: Props$4): React$1.ReactElement;
|
|
733
733
|
|
|
734
734
|
interface TextTruncateProps {
|
|
735
735
|
string: string;
|
|
@@ -739,7 +739,7 @@ interface TextTruncateProps {
|
|
|
739
739
|
}
|
|
740
740
|
declare function TextTruncate({ string, maxChars, children, noTitle }: TextTruncateProps): react_jsx_runtime.JSX.Element;
|
|
741
741
|
|
|
742
|
-
type Props$
|
|
742
|
+
type Props$3 = {
|
|
743
743
|
disabled: boolean;
|
|
744
744
|
onChange: any;
|
|
745
745
|
value: boolean;
|
|
@@ -748,9 +748,9 @@ type Props$4 = {
|
|
|
748
748
|
checkedIconName?: IconName$1;
|
|
749
749
|
notCheckedIconName?: IconName$1;
|
|
750
750
|
} & PermafrostComponent$1;
|
|
751
|
-
declare const Toggle$1: (props: Props$
|
|
751
|
+
declare const Toggle$1: (props: Props$3) => react_jsx_runtime.JSX.Element;
|
|
752
752
|
|
|
753
|
-
type Props$
|
|
753
|
+
type Props$2 = PermafrostComponent$1 & {
|
|
754
754
|
questionMark?: boolean;
|
|
755
755
|
for?: string | null;
|
|
756
756
|
place?: string;
|
|
@@ -761,7 +761,7 @@ type Props$3 = PermafrostComponent$1 & {
|
|
|
761
761
|
children: React$1.ReactNode;
|
|
762
762
|
block?: boolean;
|
|
763
763
|
};
|
|
764
|
-
declare const Tooltip: (props: Props$
|
|
764
|
+
declare const Tooltip: (props: Props$2) => react_jsx_runtime.JSX.Element;
|
|
765
765
|
|
|
766
766
|
declare const mix: (color_1: string, color_2: string, weight: number) => string;
|
|
767
767
|
declare const shade: (color: string, percentage: number) => string;
|
|
@@ -856,7 +856,6 @@ declare const Row: ({ ref: _ref, ...rest }: RowProps) => react_jsx_runtime.JSX.E
|
|
|
856
856
|
declare const Col: ({ ref: _ref, ...rest }: ColProps) => react_jsx_runtime.JSX.Element;
|
|
857
857
|
|
|
858
858
|
type ButtonVariants = 'solid' | 'outline' | 'text';
|
|
859
|
-
type ButtonColors = 'primary' | 'secondary' | 'warning' | 'error' | 'success' | 'info';
|
|
860
859
|
type ButtonIconPositions = 'left' | 'right';
|
|
861
860
|
type ButtonSizes = 'sm' | 'md' | 'lg';
|
|
862
861
|
type ButtonTypes = 'button' | 'submit' | 'reset';
|
|
@@ -871,7 +870,7 @@ interface ButtonProps {
|
|
|
871
870
|
onClick?: (...args: any[]) => void;
|
|
872
871
|
variant?: ButtonVariants;
|
|
873
872
|
iconPosition?: ButtonIconPositions;
|
|
874
|
-
color?:
|
|
873
|
+
color?: SemanticColor;
|
|
875
874
|
size?: ButtonSizes;
|
|
876
875
|
iconName?: IconName$1;
|
|
877
876
|
type?: ButtonTypes;
|
|
@@ -900,6 +899,15 @@ type TableProps<T> = Omit<TableProps$1<T>, 'disabled' | 'progressPending' | 'dir
|
|
|
900
899
|
subHeaderAlign?: Alignment;
|
|
901
900
|
};
|
|
902
901
|
|
|
902
|
+
type PillSize = 'sm' | 'md' | 'lg';
|
|
903
|
+
type PillColor = SemanticColor | 'neutral';
|
|
904
|
+
interface PillProps {
|
|
905
|
+
children: React$1.ReactNode | React$1.ReactNode[];
|
|
906
|
+
color?: PillColor;
|
|
907
|
+
size?: PillSize;
|
|
908
|
+
className?: string;
|
|
909
|
+
}
|
|
910
|
+
|
|
903
911
|
type PermafrostComponent = {
|
|
904
912
|
id?: string;
|
|
905
913
|
className?: string;
|
|
@@ -1013,7 +1021,7 @@ interface PasswordInputProps extends WithLabelProps {
|
|
|
1013
1021
|
}
|
|
1014
1022
|
declare const LabeledPasswordInput: React$1.ForwardRefExoticComponent<Omit<Omit<PasswordInputProps, "ref"> & React$1.RefAttributes<HTMLInputElement> & WithLabelProps, "ref"> & React$1.RefAttributes<any>>;
|
|
1015
1023
|
|
|
1016
|
-
interface SelectProps<OptionType extends SelectOption> extends Props$
|
|
1024
|
+
interface SelectProps<OptionType extends SelectOption> extends Props$r<OptionType> {
|
|
1017
1025
|
options: OptionType[];
|
|
1018
1026
|
}
|
|
1019
1027
|
declare const Select: <OptionType extends SelectOption>({ classNamePrefix, className, components: customComponents, ...props }: SelectProps<OptionType>) => react_jsx_runtime.JSX.Element;
|
|
@@ -1032,23 +1040,23 @@ interface FormProps {
|
|
|
1032
1040
|
}
|
|
1033
1041
|
declare const Form: ({ children, onSubmit, action, method, target, autocomplete, noValidate, enctype, rel, ...rest }: FormProps) => react_jsx_runtime.JSX.Element;
|
|
1034
1042
|
|
|
1035
|
-
type Props$
|
|
1043
|
+
type Props$1 = {
|
|
1036
1044
|
className?: string;
|
|
1037
1045
|
height?: number;
|
|
1038
1046
|
width?: number;
|
|
1039
1047
|
isCircle?: boolean;
|
|
1040
1048
|
isFullHeight?: boolean;
|
|
1041
1049
|
};
|
|
1042
|
-
declare const Skeleton: ({ className, height, width, isCircle, isFullHeight, ...rest }: Props$
|
|
1050
|
+
declare const Skeleton: ({ className, height, width, isCircle, isFullHeight, ...rest }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
1043
1051
|
|
|
1044
|
-
type Props
|
|
1052
|
+
type Props = {
|
|
1045
1053
|
className?: string;
|
|
1046
1054
|
children: React$1.ReactNode;
|
|
1047
1055
|
title?: string;
|
|
1048
1056
|
subtitle?: string;
|
|
1049
1057
|
hasBoxShadow?: boolean;
|
|
1050
1058
|
};
|
|
1051
|
-
declare const Card: React$1.FC<Props
|
|
1059
|
+
declare const Card: React$1.FC<Props>;
|
|
1052
1060
|
|
|
1053
1061
|
type PopperProps = {
|
|
1054
1062
|
children: React$1.ReactNode;
|
|
@@ -1066,11 +1074,6 @@ type MenuProps = {
|
|
|
1066
1074
|
};
|
|
1067
1075
|
declare function Menu({ children }: MenuProps): react_jsx_runtime.JSX.Element;
|
|
1068
1076
|
|
|
1069
|
-
|
|
1070
|
-
children: React.ReactNode | React.ReactNode[];
|
|
1071
|
-
status?: 'success' | 'warning' | 'error' | 'info' | 'neutral' | 'primary' | 'secondary';
|
|
1072
|
-
size?: 'sm' | 'md' | 'lg';
|
|
1073
|
-
};
|
|
1074
|
-
declare const Pill: ({ children, status, size, ...rest }: Props) => react_jsx_runtime.JSX.Element;
|
|
1077
|
+
declare const Pill: ({ children, className, color, size, ...rest }: PillProps) => react_jsx_runtime.JSX.Element;
|
|
1075
1078
|
|
|
1076
1079
|
export { animation as ANIMATION, Radio$1 as AbstractRadio, RadioGroup as AbstractRadioGroup, Accordion, breakpoints as BREAKPOINT, BarSpinner, BorderSelect, Button, allColors as COLORS, Card, Checkbox, CirclePulse, CircleSpinner, Col, ConfirmModal, Container, DatePicker, EditableInput, Form, GlobalStyles, Icon, IconButton, LabeledInput as Input, Button$1 as LegacyButton, ListTable, LoadingAwareContainer, LoadingList, margin as MARGINS, MATH, mediaQueries as MEDIA_QUERIES, Menu, ModalBase, MultiCombobox, NoInputDatePicker, NumberInput, padding as PADDINGS, Pagination, LabeledPasswordInput as PasswordInput, PercentageRing, Pill, Popper, Radio$2 as Radio, RadioGroup$1 as RadioGroup, Radio as RadioInput, RandomLoadingMessage, Row, spacings as SPACING, SearchInput, Section, SectionBlock, SectionBody, SectionHeader, SectionTable, Select$1 as Select, Select as SelectInput, Shrug, SingleCombobox, Skeleton, typography as TYPOGRAPHY, Table, TextInput, TextTruncate, LabeledTextarea as Textarea, Toggle$1 as Toggle, Toggle as ToggleInput, Tooltip, color as colorUtils, number as numberUtils, string as stringUtils };
|
package/lib/index.esm.js
CHANGED
|
@@ -42639,12 +42639,12 @@ const Tooltip = (props) => {
|
|
|
42639
42639
|
};
|
|
42640
42640
|
|
|
42641
42641
|
const Pill = (_a) => {
|
|
42642
|
-
var { children,
|
|
42643
|
-
const
|
|
42644
|
-
[`pill--${
|
|
42642
|
+
var { children, className, color = 'info', size = 'sm' } = _a, rest = __rest$1(_a, ["children", "className", "color", "size"]);
|
|
42643
|
+
const pillClasses = classNames('pill', className, {
|
|
42644
|
+
[`pill--${color}`]: color,
|
|
42645
42645
|
[`pill--${size}`]: size,
|
|
42646
42646
|
});
|
|
42647
|
-
return (jsx("div", Object.assign({ className:
|
|
42647
|
+
return (jsx("div", Object.assign({ className: pillClasses }, rest, { children: children })));
|
|
42648
42648
|
};
|
|
42649
42649
|
|
|
42650
42650
|
export { animation as ANIMATION, Radio$1 as AbstractRadio, RadioGroup$1 as AbstractRadioGroup, Accordion, breakpoints as BREAKPOINT, BarSpinner, BorderSelect, Button$2 as Button, allColors as COLORS, Card, Checkbox, CirclePulse, CircleSpinner, Col, ConfirmModal, Container, DatePicker, EditableInput, Form, GlobalStyles, Icon, IconButton, LabeledInput as Input, Button$1 as LegacyButton, ListTable, LoadingAwareContainer, LoadingList, margin as MARGINS, MATH, mediaQueries as MEDIA_QUERIES, Menu, ModalBase, MultiCombobox, NoInputDatePicker, NumberInput, padding as PADDINGS, Pagination, LabeledPasswordInput as PasswordInput, PercentageRing, Pill, Popper, Radio, RadioGroup, Radio$2 as RadioInput, RandomLoadingMessage, Row$1 as Row, spacings as SPACING, SearchInput, Section, SectionBlock, SectionBody, SectionHeader, SectionTable, Select, Select$1 as SelectInput, Shrug, SingleCombobox, Skeleton, typography as TYPOGRAPHY, Table$1 as Table, TextInput, TextTruncate, LabeledTextarea as Textarea, Toggle, Toggle$1 as ToggleInput, Tooltip, color as colorUtils, number as numberUtils, string as stringUtils };
|