@luscii-healthtech/web-ui 0.1.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/README.md +181 -0
- package/dist/components/Acknowledgement/Acknowledgement.d.ts +22 -0
- package/dist/components/Avatar/Avatar.d.ts +29 -0
- package/dist/components/Badge/Badge.d.ts +7 -0
- package/dist/components/Button/Button.d.ts +5 -0
- package/dist/components/Button/Button.types.d.ts +32 -0
- package/dist/components/Button/ButtonIcon.d.ts +7 -0
- package/dist/components/ButtonV2/ButtonV2.d.ts +13 -0
- package/dist/components/ButtonV2/PrimaryButton.d.ts +12 -0
- package/dist/components/ButtonV2/SecondaryButton.d.ts +8 -0
- package/dist/components/ButtonV2/TertiaryButton.d.ts +8 -0
- package/dist/components/Carousel/Carousel.d.ts +8 -0
- package/dist/components/Carousel/GliderContainer.d.ts +7 -0
- package/dist/components/CenteredHero/CenteredHero.d.ts +22 -0
- package/dist/components/Checkbox/Checkbox.d.ts +17 -0
- package/dist/components/ConfirmationDialog/ConfirmationDialog.d.ts +33 -0
- package/dist/components/Datepicker/Datepicker.d.ts +24 -0
- package/dist/components/Dropdown/Dropdown.d.ts +47 -0
- package/dist/components/EmptyListMessage/EmptyListMessage.d.ts +14 -0
- package/dist/components/ErrorBlock/ErrorBlock.d.ts +13 -0
- package/dist/components/Icons/AddIcon.d.ts +3 -0
- package/dist/components/Icons/AlertsIcon.d.ts +6 -0
- package/dist/components/Icons/BellIcon.d.ts +6 -0
- package/dist/components/Icons/ChartIcon.d.ts +3 -0
- package/dist/components/Icons/ChatBox.d.ts +5 -0
- package/dist/components/Icons/CheckIcon.d.ts +2 -0
- package/dist/components/Icons/ChevronIcon.d.ts +8 -0
- package/dist/components/Icons/CrossIcon.d.ts +7 -0
- package/dist/components/Icons/DeleteIcon.d.ts +6 -0
- package/dist/components/Icons/DownArrowIcon.d.ts +6 -0
- package/dist/components/Icons/DragIcon.d.ts +3 -0
- package/dist/components/Icons/EditIcon.d.ts +6 -0
- package/dist/components/Icons/EmptyStateDashboardIcon.d.ts +2 -0
- package/dist/components/Icons/ExclamationMarkIcon.d.ts +6 -0
- package/dist/components/Icons/EyeIcon.d.ts +3 -0
- package/dist/components/Icons/GearIcon.d.ts +3 -0
- package/dist/components/Icons/GroupIcon.d.ts +3 -0
- package/dist/components/Icons/HeartIcon.d.ts +6 -0
- package/dist/components/Icons/LeftArrowIcon.d.ts +6 -0
- package/dist/components/Icons/LightBulbIcon.d.ts +6 -0
- package/dist/components/Icons/LockIcon.d.ts +6 -0
- package/dist/components/Icons/MessagesIcon.d.ts +6 -0
- package/dist/components/Icons/NotesIcon.d.ts +6 -0
- package/dist/components/Icons/PinIcon.d.ts +6 -0
- package/dist/components/Icons/PrintIcon.d.ts +3 -0
- package/dist/components/Icons/RightArrowIcon.d.ts +6 -0
- package/dist/components/Icons/SmallCircleIcon.d.ts +6 -0
- package/dist/components/Icons/SmallDiamondIcon.d.ts +6 -0
- package/dist/components/Icons/SmallSquareIcon.d.ts +6 -0
- package/dist/components/Icons/SpaceRocketIcon.d.ts +6 -0
- package/dist/components/Icons/types/IconProps.type.d.ts +3 -0
- package/dist/components/InfoBlock/InfoBlock.d.ts +14 -0
- package/dist/components/InfoField/InfoField.d.ts +18 -0
- package/dist/components/Input/Input.d.ts +44 -0
- package/dist/components/Line/Line.d.ts +14 -0
- package/dist/components/ListItem/ListItem.d.ts +9 -0
- package/dist/components/ListTable/ListTable.d.ts +35 -0
- package/dist/components/ListTable/ListTableCell.d.ts +10 -0
- package/dist/components/ListTable/ListTableHeader.d.ts +7 -0
- package/dist/components/ListTable/ListTableRow.d.ts +9 -0
- package/dist/components/LoadingIndicator/LoadingIndicator.d.ts +11 -0
- package/dist/components/Menu/Menu.d.ts +14 -0
- package/dist/components/Modal/Modal.d.ts +31 -0
- package/dist/components/Modal/ModalWithButtons.d.ts +9 -0
- package/dist/components/MultiSelect/MultiSelect.d.ts +25 -0
- package/dist/components/MultiSelect/MultiSelectUtils.d.ts +1 -0
- package/dist/components/NavMenu/NavLayout.d.ts +20 -0
- package/dist/components/NavMenu/NavMenu.d.ts +1 -0
- package/dist/components/NavMenu/NavMenuContent.d.ts +7 -0
- package/dist/components/NavMenu/NavMenuItem.d.ts +15 -0
- package/dist/components/NotificationBanner/NotificationBanner.d.ts +22 -0
- package/dist/components/Page/CRUDPage.d.ts +43 -0
- package/dist/components/Page/Page.d.ts +58 -0
- package/dist/components/PaginationMenu/PaginationMenu.d.ts +20 -0
- package/dist/components/PaginationMenu/PaginationMenuLarge.d.ts +13 -0
- package/dist/components/PaginationMenu/PaginationMenuSmall.d.ts +8 -0
- package/dist/components/PreviewPhone/PreviewPhone.d.ts +7 -0
- package/dist/components/PreviewPhone/useWindowDimensions.d.ts +4 -0
- package/dist/components/Radio/Radio.d.ts +18 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +31 -0
- package/dist/components/Section/Section.d.ts +15 -0
- package/dist/components/Select/LegacySelect.d.ts +32 -0
- package/dist/components/Select/Select.d.ts +6 -0
- package/dist/components/Select/options.transformer.d.ts +14 -0
- package/dist/components/Select/select.utils.d.ts +7 -0
- package/dist/components/SettingsMenuButton/SettingsMenuButton.d.ts +16 -0
- package/dist/components/Spinner/Spinner.d.ts +6 -0
- package/dist/components/Steps/Step.d.ts +10 -0
- package/dist/components/Steps/Steps.d.ts +11 -0
- package/dist/components/Switcher/Switcher.d.ts +26 -0
- package/dist/components/Switcher/SwitcherItem.d.ts +24 -0
- package/dist/components/TabLinks/TabLinks.d.ts +14 -0
- package/dist/components/Tabbar/Tabbar.d.ts +10 -0
- package/dist/components/Tabbar/TabbarItem.d.ts +15 -0
- package/dist/components/Tag/Tag.d.ts +17 -0
- package/dist/components/Tag/TagGroup.d.ts +13 -0
- package/dist/components/Text/LegacyText.d.ts +37 -0
- package/dist/components/Text/Text.d.ts +27 -0
- package/dist/components/TextEditor/TextEditor.d.ts +14 -0
- package/dist/components/TextEditorV2/TextEditorV2.d.ts +6 -0
- package/dist/components/TextLink/TextLink.d.ts +11 -0
- package/dist/components/TextListItem/TextListItem.d.ts +12 -0
- package/dist/components/Textarea/Textarea.d.ts +22 -0
- package/dist/components/Title/LegacyTitle.d.ts +22 -0
- package/dist/components/Title/Title.d.ts +14 -0
- package/dist/components/ViewItem/ViewItem.d.ts +16 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/types/general.types.d.ts +7 -0
- package/dist/utils/useOutsideClick.d.ts +2 -0
- package/dist/web-ui.cjs.development.js +23 -0
- package/dist/web-ui.cjs.development.js.map +1 -0
- package/dist/web-ui.cjs.production.min.js +2 -0
- package/dist/web-ui.cjs.production.min.js.map +1 -0
- package/dist/web-ui.esm.js +17 -0
- package/dist/web-ui.esm.js.map +1 -0
- package/package.json +122 -0
- package/src/assets/add.svg +5 -0
- package/src/assets/add_hover.svg +4 -0
- package/src/assets/big-menu-icon-hover.svg +6 -0
- package/src/assets/big-menu-icon.svg +6 -0
- package/src/assets/check-cross-icon.svg +7 -0
- package/src/assets/check-icon-primary.svg +5 -0
- package/src/assets/check-icon.svg +3 -0
- package/src/assets/chevron-double.svg +3 -0
- package/src/assets/close.svg +3 -0
- package/src/assets/color-variant-cross.svg +3 -0
- package/src/assets/cross-dark.svg +3 -0
- package/src/assets/delete.svg +4 -0
- package/src/assets/delete_hover.svg +4 -0
- package/src/assets/edit.svg +6 -0
- package/src/assets/edit_hover.svg +6 -0
- package/src/assets/error-icon.svg +7 -0
- package/src/assets/grid-view-icon-active.svg +6 -0
- package/src/assets/grid-view-icon.svg +6 -0
- package/src/assets/groups.svg +3 -0
- package/src/assets/hamburger.svg +5 -0
- package/src/assets/happy-star.svg +9 -0
- package/src/assets/hcps.svg +3 -0
- package/src/assets/info-icon.svg +6 -0
- package/src/assets/left-arrow-blue.svg +3 -0
- package/src/assets/left-arrow-grey.svg +3 -0
- package/src/assets/list-view-icon-active.svg +3 -0
- package/src/assets/list-view-icon.svg +3 -0
- package/src/assets/loading.svg +16 -0
- package/src/assets/modal-close-icon-active.svg +9 -0
- package/src/assets/modal-close-icon.svg +9 -0
- package/src/assets/no-open-alerts.svg +19 -0
- package/src/assets/patients.svg +3 -0
- package/src/assets/phone-mockup.svg +9 -0
- package/src/assets/programs.svg +3 -0
- package/src/assets/right-arrow-blue.svg +3 -0
- package/src/assets/right-arrow-grey.svg +3 -0
- package/src/assets/search-cancel.svg +3 -0
- package/src/assets/search-not-found.svg +70 -0
- package/src/assets/search.svg +3 -0
- package/src/assets/spinner-gray.svg +6 -0
- package/src/assets/spinner.svg +6 -0
- package/src/assets/starIcon.svg +3 -0
- package/src/assets/success-icon.svg +7 -0
- package/src/components/Acknowledgement/Acknowledgement.js +61 -0
- package/src/components/Acknowledgement/Acknowledgement.scss +49 -0
- package/src/components/Avatar/Avatar.js +81 -0
- package/src/components/Avatar/Avatar.scss +153 -0
- package/src/components/Badge/Badge.tsx +23 -0
- package/src/components/Button/Button.examples.md +46 -0
- package/src/components/Button/Button.tsx +200 -0
- package/src/components/Button/Button.types.ts +41 -0
- package/src/components/Button/ButtonIcon.tsx +42 -0
- package/src/components/ButtonV2/ButtonV2.tsx +91 -0
- package/src/components/ButtonV2/PrimaryButton.tsx +43 -0
- package/src/components/ButtonV2/SecondaryButton.tsx +31 -0
- package/src/components/ButtonV2/TertiaryButton.tsx +31 -0
- package/src/components/Carousel/Carousel.tsx +52 -0
- package/src/components/Carousel/GliderContainer.scss +13 -0
- package/src/components/Carousel/GliderContainer.tsx +22 -0
- package/src/components/CenteredHero/CenteredHero.js +50 -0
- package/src/components/Checkbox/Checkbox.scss +115 -0
- package/src/components/Checkbox/Checkbox.tsx +114 -0
- package/src/components/ConfirmationDialog/ConfirmationDialog.scss +15 -0
- package/src/components/ConfirmationDialog/ConfirmationDialog.tsx +84 -0
- package/src/components/Datepicker/Datepicker.js +96 -0
- package/src/components/Datepicker/Datepicker.scss +331 -0
- package/src/components/Dropdown/Dropdown.js +364 -0
- package/src/components/Dropdown/Dropdown.scss +83 -0
- package/src/components/EmptyListMessage/EmptyListMessage.tsx +34 -0
- package/src/components/ErrorBlock/ErrorBlock.js +24 -0
- package/src/components/ErrorBlock/ErrorBlock.scss +20 -0
- package/src/components/Icons/AddIcon.tsx +27 -0
- package/src/components/Icons/AlertsIcon.tsx +26 -0
- package/src/components/Icons/BellIcon.tsx +26 -0
- package/src/components/Icons/ChartIcon.tsx +20 -0
- package/src/components/Icons/ChatBox.tsx +23 -0
- package/src/components/Icons/CheckIcon.tsx +23 -0
- package/src/components/Icons/ChevronIcon.tsx +30 -0
- package/src/components/Icons/CrossIcon.tsx +26 -0
- package/src/components/Icons/DeleteIcon.tsx +23 -0
- package/src/components/Icons/DownArrowIcon.tsx +17 -0
- package/src/components/Icons/DragIcon.tsx +23 -0
- package/src/components/Icons/EditIcon.tsx +23 -0
- package/src/components/Icons/EmptyStateDashboardIcon.tsx +130 -0
- package/src/components/Icons/ExclamationMarkIcon.tsx +23 -0
- package/src/components/Icons/EyeIcon.tsx +21 -0
- package/src/components/Icons/GearIcon.tsx +21 -0
- package/src/components/Icons/GroupIcon.tsx +21 -0
- package/src/components/Icons/HeartIcon.tsx +23 -0
- package/src/components/Icons/LeftArrowIcon.tsx +23 -0
- package/src/components/Icons/LightBulbIcon.tsx +28 -0
- package/src/components/Icons/LockIcon.tsx +23 -0
- package/src/components/Icons/MessagesIcon.tsx +23 -0
- package/src/components/Icons/NotesIcon.tsx +23 -0
- package/src/components/Icons/PinIcon.tsx +23 -0
- package/src/components/Icons/PrintIcon.tsx +15 -0
- package/src/components/Icons/RightArrowIcon.tsx +23 -0
- package/src/components/Icons/SmallCircleIcon.tsx +21 -0
- package/src/components/Icons/SmallDiamondIcon.tsx +31 -0
- package/src/components/Icons/SmallSquareIcon.tsx +21 -0
- package/src/components/Icons/SpaceRocketIcon.tsx +23 -0
- package/src/components/Icons/types/IconProps.type.ts +3 -0
- package/src/components/InfoBlock/InfoBlock.js +24 -0
- package/src/components/InfoBlock/InfoBlock.scss +20 -0
- package/src/components/InfoField/InfoField.tsx +86 -0
- package/src/components/Input/Input.examples.md +94 -0
- package/src/components/Input/Input.js +141 -0
- package/src/components/Line/Line.js +38 -0
- package/src/components/ListItem/ListItem.scss +20 -0
- package/src/components/ListItem/ListItem.tsx +26 -0
- package/src/components/ListTable/ListTable.tsx +157 -0
- package/src/components/ListTable/ListTableCell.tsx +67 -0
- package/src/components/ListTable/ListTableHeader.tsx +33 -0
- package/src/components/ListTable/ListTableRow.tsx +46 -0
- package/src/components/LoadingIndicator/LoadingIndicator.scss +50 -0
- package/src/components/LoadingIndicator/LoadingIndicator.tsx +44 -0
- package/src/components/Menu/Menu.js +74 -0
- package/src/components/Menu/Menu.scss +27 -0
- package/src/components/Modal/Modal.scss +117 -0
- package/src/components/Modal/Modal.tsx +104 -0
- package/src/components/Modal/ModalWithButtons.tsx +34 -0
- package/src/components/MultiSelect/MultiSelect.js +117 -0
- package/src/components/MultiSelect/MultiSelect.scss +29 -0
- package/src/components/MultiSelect/MultiSelectUtils.js +23 -0
- package/src/components/NavMenu/NavLayout.tsx +40 -0
- package/src/components/NavMenu/NavMenu.js +35 -0
- package/src/components/NavMenu/NavMenuContent.tsx +23 -0
- package/src/components/NavMenu/NavMenuItem.tsx +96 -0
- package/src/components/NotificationBanner/NotificationBanner.tsx +57 -0
- package/src/components/Page/CRUDPage.js +123 -0
- package/src/components/Page/CRUDPage.scss +32 -0
- package/src/components/Page/Page.js +102 -0
- package/src/components/Page/Page.scss +59 -0
- package/src/components/PaginationMenu/PaginationMenu.js +31 -0
- package/src/components/PaginationMenu/PaginationMenuLarge.tsx +94 -0
- package/src/components/PaginationMenu/PaginationMenuSmall.tsx +40 -0
- package/src/components/PreviewPhone/PreviewPhone.tsx +53 -0
- package/src/components/PreviewPhone/useWindowDimensions.js +26 -0
- package/src/components/Radio/Radio.js +99 -0
- package/src/components/Radio/Radio.scss +58 -0
- package/src/components/RadioGroup/RadioGroup.js +63 -0
- package/src/components/RadioGroup/RadioGroup.scss +37 -0
- package/src/components/Section/Section.scss +74 -0
- package/src/components/Section/Section.tsx +67 -0
- package/src/components/Select/LegacySelect.js +114 -0
- package/src/components/Select/Select.examples.md +161 -0
- package/src/components/Select/Select.tsx +136 -0
- package/src/components/Select/options.transformer.ts +36 -0
- package/src/components/Select/select.utils.spec.ts +63 -0
- package/src/components/Select/select.utils.ts +45 -0
- package/src/components/SettingsMenuButton/SettingsMenuButton.tsx +111 -0
- package/src/components/Spinner/Spinner.tsx +23 -0
- package/src/components/Steps/Step.tsx +22 -0
- package/src/components/Steps/Steps.tsx +24 -0
- package/src/components/Switcher/Switcher.js +58 -0
- package/src/components/Switcher/SwitcherItem.js +61 -0
- package/src/components/Switcher/SwitcherItem.scss +67 -0
- package/src/components/TabLinks/TabLinks.tsx +63 -0
- package/src/components/Tabbar/Tabbar.tsx +29 -0
- package/src/components/Tabbar/TabbarItem.tsx +53 -0
- package/src/components/Tag/Tag.tsx +39 -0
- package/src/components/Tag/TagGroup.tsx +25 -0
- package/src/components/Text/LegacyText.js +78 -0
- package/src/components/Text/Text.scss +67 -0
- package/src/components/Text/Text.tsx +81 -0
- package/src/components/TextEditor/TextEditor.js +61 -0
- package/src/components/TextEditor/TextEditor.scss +14 -0
- package/src/components/TextEditorV2/TextEditorV2.js +58 -0
- package/src/components/TextEditorV2/TextEditorV2.scss +110 -0
- package/src/components/TextLink/TextLink.tsx +42 -0
- package/src/components/TextListItem/TextListItem.js +31 -0
- package/src/components/TextListItem/TextListItem.scss +10 -0
- package/src/components/Textarea/Textarea.js +108 -0
- package/src/components/Textarea/Textarea.scss +56 -0
- package/src/components/Title/LegacyTitle.js +64 -0
- package/src/components/Title/Title.scss +65 -0
- package/src/components/Title/Title.tsx +57 -0
- package/src/components/ViewItem/ViewItem.tsx +73 -0
- package/src/index.tsx +14 -0
- package/src/styles/_colors.scss +59 -0
- package/src/styles/_layout.scss +64 -0
- package/src/styles/_shadows.scss +19 -0
- package/src/styles/_typography.scss +8 -0
- package/src/styles/_utils.scss +45 -0
- package/src/styles/fonts/avenir/3A0AF8_0_0.eot +0 -0
- package/src/styles/fonts/avenir/3A0AF8_0_0.ttf +0 -0
- package/src/styles/fonts/avenir/3A0AF8_0_0.woff +0 -0
- package/src/styles/fonts/avenir/3A0AF8_0_0.woff2 +0 -0
- package/src/styles/fonts/avenir/3A0AF8_1_0.eot +0 -0
- package/src/styles/fonts/avenir/3A0AF8_1_0.ttf +0 -0
- package/src/styles/fonts/avenir/3A0AF8_1_0.woff +0 -0
- package/src/styles/fonts/avenir/3A0AF8_1_0.woff2 +0 -0
- package/src/types/general.types.ts +11 -0
- package/src/utils/useOutsideClick.js +19 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export default RadioGroup;
|
|
2
|
+
declare function RadioGroup({ className, radioClassName, name, selectedOption, isVertical, radioOptions, onChange, error, isDisabled, ...otherOptions }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
className: any;
|
|
5
|
+
radioClassName: any;
|
|
6
|
+
name: any;
|
|
7
|
+
selectedOption: any;
|
|
8
|
+
isVertical: any;
|
|
9
|
+
radioOptions: any;
|
|
10
|
+
onChange: any;
|
|
11
|
+
error: any;
|
|
12
|
+
isDisabled: any;
|
|
13
|
+
}): JSX.Element;
|
|
14
|
+
declare namespace RadioGroup {
|
|
15
|
+
export namespace propTypes {
|
|
16
|
+
export const className: PropTypes.Requireable<string>;
|
|
17
|
+
export const radioClassName: PropTypes.Requireable<string>;
|
|
18
|
+
export const name: PropTypes.Requireable<string>;
|
|
19
|
+
export const selectedOption: PropTypes.Requireable<React.Key>;
|
|
20
|
+
export const isVertical: PropTypes.Requireable<boolean>;
|
|
21
|
+
export const radioOptions: PropTypes.Validator<(PropTypes.InferProps<{
|
|
22
|
+
text: PropTypes.Requireable<string>;
|
|
23
|
+
info: PropTypes.Requireable<string>;
|
|
24
|
+
isDisabled: PropTypes.Requireable<boolean>;
|
|
25
|
+
value: PropTypes.Requireable<React.Key>;
|
|
26
|
+
}> | null | undefined)[]>;
|
|
27
|
+
export const onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
import PropTypes from "prop-types";
|
|
31
|
+
import React from "react";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ButtonProps } from "../Button/Button.types";
|
|
3
|
+
import { LoadingIndicatorProps } from "../LoadingIndicator/LoadingIndicator";
|
|
4
|
+
import { RestPropped } from "../../types/general.types";
|
|
5
|
+
import "./Section.scss";
|
|
6
|
+
export interface SectionProps<TitleType, FooterType> extends RestPropped {
|
|
7
|
+
title?: string | TitleType;
|
|
8
|
+
buttons?: ButtonProps[];
|
|
9
|
+
footer?: FooterType;
|
|
10
|
+
className?: string;
|
|
11
|
+
isLoading?: boolean;
|
|
12
|
+
loadingIndicatorProps?: LoadingIndicatorProps;
|
|
13
|
+
}
|
|
14
|
+
export declare function Section<TitleType = unknown, FooterType = unknown>({ title, buttons, footer, children, className, isLoading, loadingIndicatorProps, ...restProps }: React.PropsWithChildren<SectionProps<TitleType, FooterType>>): JSX.Element;
|
|
15
|
+
export default Section;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export default LegacySelect;
|
|
2
|
+
/**
|
|
3
|
+
* For legacy purposes this functional component behaves a certain manner that is expected by Forms that still use it.
|
|
4
|
+
* @deprecated use Select instead
|
|
5
|
+
*/
|
|
6
|
+
declare function LegacySelect({ className, value, name, placeholder, options, onChange, isDisabled, isSearchable, ...otherProps }: {
|
|
7
|
+
[x: string]: any;
|
|
8
|
+
className: any;
|
|
9
|
+
value: any;
|
|
10
|
+
name: any;
|
|
11
|
+
placeholder?: string | undefined;
|
|
12
|
+
options: any;
|
|
13
|
+
onChange: any;
|
|
14
|
+
isDisabled?: boolean | undefined;
|
|
15
|
+
isSearchable?: boolean | undefined;
|
|
16
|
+
}): JSX.Element;
|
|
17
|
+
declare namespace LegacySelect {
|
|
18
|
+
export namespace propTypes {
|
|
19
|
+
export const className: PropTypes.Requireable<string>;
|
|
20
|
+
export const value: PropTypes.Requireable<React.Key>;
|
|
21
|
+
export const name: PropTypes.Validator<string>;
|
|
22
|
+
export const placeholder: PropTypes.Requireable<string>;
|
|
23
|
+
export const options: PropTypes.Validator<(PropTypes.InferProps<{
|
|
24
|
+
value: PropTypes.Validator<React.Key>;
|
|
25
|
+
text: PropTypes.Validator<string>;
|
|
26
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
27
|
+
}> | null | undefined)[]>;
|
|
28
|
+
export const onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
import PropTypes from "prop-types";
|
|
32
|
+
import React from "react";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Props, GroupBase } from "react-select";
|
|
2
|
+
import { SelectInstance } from "react-select";
|
|
3
|
+
import React from "react";
|
|
4
|
+
declare type CustomSelect = <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: Props<Option, IsMulti, Group>, ref: React.RefAttributes<SelectInstance<Option, IsMulti, Group>>) => React.ReactElement;
|
|
5
|
+
declare const CustomSelect: CustomSelect;
|
|
6
|
+
export default CustomSelect;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface DropdownItem {
|
|
2
|
+
id: string;
|
|
3
|
+
text: string;
|
|
4
|
+
key: string;
|
|
5
|
+
type: string;
|
|
6
|
+
}
|
|
7
|
+
interface DropdownGroupedItem {
|
|
8
|
+
groupKey: string;
|
|
9
|
+
title: string;
|
|
10
|
+
subItems: DropdownItem[];
|
|
11
|
+
}
|
|
12
|
+
export declare const transformSubitemToSelectOption: (subItem: DropdownItem) => Record<string, unknown>;
|
|
13
|
+
export declare const transformToSelectOptions: (items: Array<DropdownGroupedItem | DropdownItem>) => Array<Record<string, unknown>>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* react-select needs an exact match of the object we are using in the options in order to know what has been set
|
|
3
|
+
* that's why we have to filter it
|
|
4
|
+
* @param {*} value - The value we need to set in the selector
|
|
5
|
+
* @returns the object having the passed value
|
|
6
|
+
*/
|
|
7
|
+
export declare const findValue: (value: any, options: any[]) => any;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IconProps } from "../Icons/types/IconProps.type";
|
|
3
|
+
export interface ConfigurationItem {
|
|
4
|
+
itemId: string;
|
|
5
|
+
itemName: string;
|
|
6
|
+
on: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface SettingsMenuButtonProps {
|
|
9
|
+
configuration: ConfigurationItem[];
|
|
10
|
+
onConfigurationChange: (newConfig: ConfigurationItem) => void;
|
|
11
|
+
shiftMenuTo?: "right" | "right-md" | "left" | "left-md";
|
|
12
|
+
buttonTitle?: string;
|
|
13
|
+
menuTitle?: string;
|
|
14
|
+
iconComponent: React.FunctionComponent<IconProps>;
|
|
15
|
+
}
|
|
16
|
+
export declare const SettingsMenuButton: (props: SettingsMenuButtonProps) => JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface StepProps {
|
|
3
|
+
title: string;
|
|
4
|
+
stepNumber: number;
|
|
5
|
+
active: boolean;
|
|
6
|
+
localization: {
|
|
7
|
+
step: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export declare const Step: ({ title, stepNumber, active, localization }: StepProps) => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface StepsProps {
|
|
3
|
+
orderedStepTitles: Array<string>;
|
|
4
|
+
currentStep: number;
|
|
5
|
+
className?: string;
|
|
6
|
+
localization: {
|
|
7
|
+
step: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export declare const Steps: ({ orderedStepTitles, currentStep, className, localization }: StepsProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default Switcher;
|
|
2
|
+
declare function Switcher({ selectedIndex, onChange, className, itemClassName, items }: {
|
|
3
|
+
selectedIndex?: number | undefined;
|
|
4
|
+
onChange: any;
|
|
5
|
+
className: any;
|
|
6
|
+
itemClassName: any;
|
|
7
|
+
items: any;
|
|
8
|
+
}): JSX.Element;
|
|
9
|
+
declare namespace Switcher {
|
|
10
|
+
export namespace propTypes {
|
|
11
|
+
export const items: PropTypes.Validator<(PropTypes.InferProps<{
|
|
12
|
+
name: PropTypes.Requireable<string>;
|
|
13
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
|
+
default: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
|
|
15
|
+
active: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
|
|
16
|
+
showBadge: PropTypes.Requireable<boolean>;
|
|
17
|
+
}>>;
|
|
18
|
+
key: PropTypes.Requireable<string>;
|
|
19
|
+
}> | null | undefined)[]>;
|
|
20
|
+
export const onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
21
|
+
export const selectedIndex: PropTypes.Requireable<number>;
|
|
22
|
+
export const className: PropTypes.Requireable<string>;
|
|
23
|
+
export const itemClassName: PropTypes.Requireable<string>;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export default SwitcherItem;
|
|
2
|
+
declare function SwitcherItem({ className, icon, index, isSelected, name, onSelect }: {
|
|
3
|
+
className: any;
|
|
4
|
+
icon: any;
|
|
5
|
+
index: any;
|
|
6
|
+
isSelected?: boolean | undefined;
|
|
7
|
+
name: any;
|
|
8
|
+
onSelect: any;
|
|
9
|
+
}): JSX.Element;
|
|
10
|
+
declare namespace SwitcherItem {
|
|
11
|
+
export namespace propTypes {
|
|
12
|
+
export const name: PropTypes.Requireable<string>;
|
|
13
|
+
export const icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
|
+
default: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
|
|
15
|
+
active: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
|
|
16
|
+
showBadge: PropTypes.Requireable<boolean>;
|
|
17
|
+
}>>;
|
|
18
|
+
export const index: PropTypes.Validator<number>;
|
|
19
|
+
export const isSelected: PropTypes.Requireable<boolean>;
|
|
20
|
+
export const onSelect: PropTypes.Validator<(...args: any[]) => any>;
|
|
21
|
+
export const className: PropTypes.Requireable<string>;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { NavigateFn, WindowLocation } from "@reach/router";
|
|
3
|
+
interface TabLinkItem {
|
|
4
|
+
url: URL;
|
|
5
|
+
text: string;
|
|
6
|
+
}
|
|
7
|
+
interface TabLinksProps {
|
|
8
|
+
patientUuid: string;
|
|
9
|
+
items: Array<TabLinkItem>;
|
|
10
|
+
navigate: NavigateFn;
|
|
11
|
+
location: WindowLocation;
|
|
12
|
+
}
|
|
13
|
+
declare const TabLinks: ({ patientUuid, items, navigate, location }: TabLinksProps) => JSX.Element;
|
|
14
|
+
export default TabLinks;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TabItemDetails } from "./TabbarItem";
|
|
3
|
+
interface TabbarProps {
|
|
4
|
+
tabs?: TabItemDetails[];
|
|
5
|
+
selectedIndex?: number;
|
|
6
|
+
onSelect?(index: number): void;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const Tabbar: ({ tabs, selectedIndex, onSelect, className }: TabbarProps) => JSX.Element;
|
|
10
|
+
export default Tabbar;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface TabItemDetails {
|
|
3
|
+
title: string | JSX.Element;
|
|
4
|
+
badgeCount?: number;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
dataTestId?: string;
|
|
7
|
+
}
|
|
8
|
+
interface TabbarItemProps extends TabItemDetails {
|
|
9
|
+
index: number;
|
|
10
|
+
isSelected?: boolean;
|
|
11
|
+
onSelect(index: number): void;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const TabbarItem: ({ title, index, isSelected, onSelect, className, badgeCount, isLoading, dataTestId, }: TabbarItemProps) => JSX.Element;
|
|
15
|
+
export default TabbarItem;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TagSize } from "./TagGroup";
|
|
3
|
+
export declare enum TagColorTheme {
|
|
4
|
+
Red = "red",
|
|
5
|
+
Amber = "amber",
|
|
6
|
+
Green = "green",
|
|
7
|
+
Gray = "gray",
|
|
8
|
+
Blue = "blue"
|
|
9
|
+
}
|
|
10
|
+
export interface TagProps {
|
|
11
|
+
text: string;
|
|
12
|
+
colorTheme?: TagColorTheme;
|
|
13
|
+
size?: TagSize;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const Tag: ({ text, colorTheme, className, size }: TagProps) => JSX.Element;
|
|
17
|
+
export default Tag;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TagProps } from "./Tag";
|
|
3
|
+
export declare enum TagSize {
|
|
4
|
+
"small" = "small",
|
|
5
|
+
"base" = "base"
|
|
6
|
+
}
|
|
7
|
+
interface TagGroupProps {
|
|
8
|
+
tags: TagProps[];
|
|
9
|
+
tagSize?: TagSize;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const TagGroup: ({ tags, tagSize, className }: TagGroupProps) => JSX.Element;
|
|
13
|
+
export default TagGroup;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export default LegacyText;
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated use TextV2
|
|
4
|
+
*/
|
|
5
|
+
declare function LegacyText({ text, type, level, className, containsDangerousHtml, ...otherProps }: {
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
text: any;
|
|
8
|
+
type?: string | undefined;
|
|
9
|
+
level?: string | undefined;
|
|
10
|
+
className?: string | undefined;
|
|
11
|
+
containsDangerousHtml?: boolean | undefined;
|
|
12
|
+
}): JSX.Element;
|
|
13
|
+
declare namespace LegacyText {
|
|
14
|
+
export const propTypes: {
|
|
15
|
+
text: PropTypes.Validator<string>;
|
|
16
|
+
level: PropTypes.Requireable<string>;
|
|
17
|
+
type: PropTypes.Requireable<string>;
|
|
18
|
+
className: PropTypes.Requireable<string>;
|
|
19
|
+
containsDangerousHtml: PropTypes.Requireable<boolean>;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export namespace TEXT_TYPE_OPTIONS {
|
|
23
|
+
export const DEFAULT: string;
|
|
24
|
+
export const STRONG: string;
|
|
25
|
+
export const EMPHASIZED: string;
|
|
26
|
+
export const FINEPRINT: string;
|
|
27
|
+
export const SMALL: string;
|
|
28
|
+
export const SMALL_DARK: string;
|
|
29
|
+
export const SMALL_FINEPRINT: string;
|
|
30
|
+
export const MICRO: string;
|
|
31
|
+
export const ERROR: string;
|
|
32
|
+
}
|
|
33
|
+
export namespace TEXT_LEVEL_OPTIONS {
|
|
34
|
+
export const INLINE: string;
|
|
35
|
+
export const BLOCK: string;
|
|
36
|
+
}
|
|
37
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { RestPropped } from "../../types/general.types";
|
|
3
|
+
import "./Text.scss";
|
|
4
|
+
export declare type TextStyle = "sm" | "sm-strong" | "base" | "strong" | "lg" | "lg-strong" | "xl" | "xl-strong" | string;
|
|
5
|
+
export declare type TextColor = "base" | "gray-500" | "gray-200" | "white" | "blue" | "red" | "green" | "amber" | "inherit";
|
|
6
|
+
export interface TextProps extends RestPropped {
|
|
7
|
+
text: string;
|
|
8
|
+
type?: TextStyle;
|
|
9
|
+
inline?: boolean;
|
|
10
|
+
color?: TextColor;
|
|
11
|
+
hoverColor?: TextColor;
|
|
12
|
+
className?: string;
|
|
13
|
+
containsDangerousHtml?: boolean;
|
|
14
|
+
truncate?: boolean;
|
|
15
|
+
"data-test-id"?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const Text: {
|
|
18
|
+
(props: TextProps): JSX.Element;
|
|
19
|
+
defaultProps: {
|
|
20
|
+
type: string;
|
|
21
|
+
inline: boolean;
|
|
22
|
+
color: string;
|
|
23
|
+
containsDangerousHtml: boolean;
|
|
24
|
+
truncate: boolean;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export default Text;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare function TextEditor({ defaultValue, onValueChange, placeholder }: {
|
|
2
|
+
defaultValue: any;
|
|
3
|
+
onValueChange: any;
|
|
4
|
+
placeholder: any;
|
|
5
|
+
}): JSX.Element;
|
|
6
|
+
declare namespace TextEditor {
|
|
7
|
+
export namespace propTypes {
|
|
8
|
+
export const defaultValue: PropTypes.Requireable<string>;
|
|
9
|
+
export const placeholder: PropTypes.Requireable<string>;
|
|
10
|
+
export const onValueChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export default TextEditor;
|
|
14
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface TextLinkProps {
|
|
3
|
+
text: string;
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
href?: string;
|
|
6
|
+
rel?: string;
|
|
7
|
+
target?: string;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const TextLink: (props: TextLinkProps) => JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default TextListItem;
|
|
2
|
+
declare function TextListItem(props: any): JSX.Element;
|
|
3
|
+
declare namespace TextListItem {
|
|
4
|
+
export namespace propTypes {
|
|
5
|
+
export const text: PropTypes.Validator<string>;
|
|
6
|
+
export const icon: PropTypes.Requireable<string | object>;
|
|
7
|
+
export const className: PropTypes.Requireable<string>;
|
|
8
|
+
export const iconClass: PropTypes.Requireable<string>;
|
|
9
|
+
export const onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export default Textarea;
|
|
2
|
+
declare function Textarea(props: any): JSX.Element;
|
|
3
|
+
declare namespace Textarea {
|
|
4
|
+
export namespace propTypes {
|
|
5
|
+
export const className: PropTypes.Requireable<string>;
|
|
6
|
+
export const value: PropTypes.Requireable<string>;
|
|
7
|
+
export const name: PropTypes.Validator<string>;
|
|
8
|
+
export const placeholder: PropTypes.Requireable<string>;
|
|
9
|
+
export const maxLength: PropTypes.Requireable<number>;
|
|
10
|
+
export const rows: PropTypes.Requireable<number>;
|
|
11
|
+
export const resizable: PropTypes.Requireable<string>;
|
|
12
|
+
export const isDisabled: PropTypes.Requireable<boolean>;
|
|
13
|
+
export const icon: PropTypes.Requireable<string>;
|
|
14
|
+
export const onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
15
|
+
export const onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
16
|
+
export const onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
17
|
+
export const onKeyPress: PropTypes.Requireable<(...args: any[]) => any>;
|
|
18
|
+
export const onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
|
+
export const onCtrlEnter: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export default LegacyTitle;
|
|
2
|
+
declare function LegacyTitle({ text, type, className, ...otherProps }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
text: any;
|
|
5
|
+
type: any;
|
|
6
|
+
className?: string | undefined;
|
|
7
|
+
}): JSX.Element;
|
|
8
|
+
declare namespace LegacyTitle {
|
|
9
|
+
export const propTypes: {
|
|
10
|
+
text: PropTypes.Validator<string>;
|
|
11
|
+
type: PropTypes.Requireable<string>;
|
|
12
|
+
className: PropTypes.Requireable<string>;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export namespace TITLE_TYPE_OPTIONS {
|
|
16
|
+
export const DEFAULT: string;
|
|
17
|
+
export const BIG: string;
|
|
18
|
+
export const SMALL: string;
|
|
19
|
+
export const TINY: string;
|
|
20
|
+
export const BOLD: string;
|
|
21
|
+
}
|
|
22
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "./Title.scss";
|
|
3
|
+
export declare type TitleStyle = "sm" | "base" | "lg" | "xl" | "2xl";
|
|
4
|
+
export interface TextProps {
|
|
5
|
+
text: string;
|
|
6
|
+
type?: TitleStyle;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const Title: {
|
|
10
|
+
(props: TextProps): JSX.Element;
|
|
11
|
+
defaultProps: {
|
|
12
|
+
type: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TextProps } from "../Text/Text";
|
|
3
|
+
import { RestPropped } from "../../types/general.types";
|
|
4
|
+
import { ButtonProps } from "../Button/Button.types";
|
|
5
|
+
export interface ViewItemProps<AccessoryType> extends RestPropped {
|
|
6
|
+
titleProps?: TextProps;
|
|
7
|
+
title?: string;
|
|
8
|
+
titleAccessory?: AccessoryType;
|
|
9
|
+
contentProps?: TextProps[];
|
|
10
|
+
content?: string[];
|
|
11
|
+
defaultContent?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
buttons?: ButtonProps[];
|
|
14
|
+
}
|
|
15
|
+
export declare function ViewItem<AccessoryType>({ titleProps, title, titleAccessory, contentProps, content, defaultContent, className, buttons, ...restProps }: ViewItemProps<AccessoryType>): JSX.Element;
|
|
16
|
+
export default ViewItem;
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
6
|
+
|
|
7
|
+
var React = _interopDefault(require('react'));
|
|
8
|
+
|
|
9
|
+
// see: https://github.com/storybookjs/storybook/issues/9556
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* A custom Thing component. Neat!
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
var Thing = function Thing(_ref) {
|
|
16
|
+
var children = _ref.children;
|
|
17
|
+
return React.createElement("div", {
|
|
18
|
+
className: "mt-10 bg-red-500 p-5 rounded-md"
|
|
19
|
+
}, children || "this is a test");
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
exports.Thing = Thing;
|
|
23
|
+
//# sourceMappingURL=web-ui.cjs.development.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-ui.cjs.development.js","sources":["../src/index.tsx"],"sourcesContent":["import React, { FC, HTMLAttributes, ReactChild } from \"react\";\n\nexport interface Props extends HTMLAttributes<HTMLDivElement> {\n children?: ReactChild;\n}\n\n// Please do not use types off of a default export module or else Storybook Docs will suffer.\n// see: https://github.com/storybookjs/storybook/issues/9556\n/**\n * A custom Thing component. Neat!\n */\nexport const Thing: FC<Props> = ({ children }) => {\n return <div className={\"mt-10 bg-red-500 p-5 rounded-md\"}>{children || \"this is a test\"}</div>;\n};\n"],"names":["Thing","children","React","className"],"mappings":";;;;;;;;AAOA;;AACA;;;;IAGaA,KAAK,GAAc,SAAnBA,KAAmB;MAAGC,gBAAAA;EACjC,OAAOC,mBAAA,MAAA;IAAKC,SAAS,EAAE;GAAhB,EAAoDF,QAAQ,IAAI,gBAAhE,CAAP;AACD;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=(e=require("react"))&&"object"==typeof e&&"default"in e?e.default:e;exports.Thing=function(e){return t.createElement("div",{className:"mt-10 bg-red-500 p-5 rounded-md"},e.children||"this is a test")};
|
|
2
|
+
//# sourceMappingURL=web-ui.cjs.production.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-ui.cjs.production.min.js","sources":["../src/index.tsx"],"sourcesContent":["import React, { FC, HTMLAttributes, ReactChild } from \"react\";\n\nexport interface Props extends HTMLAttributes<HTMLDivElement> {\n children?: ReactChild;\n}\n\n// Please do not use types off of a default export module or else Storybook Docs will suffer.\n// see: https://github.com/storybookjs/storybook/issues/9556\n/**\n * A custom Thing component. Neat!\n */\nexport const Thing: FC<Props> = ({ children }) => {\n return <div className={\"mt-10 bg-red-500 p-5 rounded-md\"}>{children || \"this is a test\"}</div>;\n};\n"],"names":["React","className","children"],"mappings":"8JAWgC,YAC9B,OAAOA,uBAAKC,UAAW,qCADUC,UACsC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
// see: https://github.com/storybookjs/storybook/issues/9556
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A custom Thing component. Neat!
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
var Thing = function Thing(_ref) {
|
|
10
|
+
var children = _ref.children;
|
|
11
|
+
return React.createElement("div", {
|
|
12
|
+
className: "mt-10 bg-red-500 p-5 rounded-md"
|
|
13
|
+
}, children || "this is a test");
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { Thing };
|
|
17
|
+
//# sourceMappingURL=web-ui.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-ui.esm.js","sources":["../src/index.tsx"],"sourcesContent":["import React, { FC, HTMLAttributes, ReactChild } from \"react\";\n\nexport interface Props extends HTMLAttributes<HTMLDivElement> {\n children?: ReactChild;\n}\n\n// Please do not use types off of a default export module or else Storybook Docs will suffer.\n// see: https://github.com/storybookjs/storybook/issues/9556\n/**\n * A custom Thing component. Neat!\n */\nexport const Thing: FC<Props> = ({ children }) => {\n return <div className={\"mt-10 bg-red-500 p-5 rounded-md\"}>{children || \"this is a test\"}</div>;\n};\n"],"names":["Thing","children","React","className"],"mappings":";;AAOA;;AACA;;;;IAGaA,KAAK,GAAc,SAAnBA,KAAmB;MAAGC,gBAAAA;EACjC,OAAOC,mBAAA,MAAA;IAAKC,SAAS,EAAE;GAAhB,EAAoDF,QAAQ,IAAI,gBAAhE,CAAP;AACD;;;;"}
|