@photonhealth/elements 0.7.0-rc2 → 0.7.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/dist/index.js +419 -428
- package/dist/index.mjs +12162 -11839
- package/dist/photon-auth-button/index.d.ts +1 -1
- package/dist/photon-auth-button/photon-auth-button.d.ts +1 -0
- package/dist/photon-authenticated/index.d.ts +1 -2
- package/dist/photon-authenticated/photon-authenticated-component.d.ts +2 -0
- package/dist/photon-authorized/index.d.ts +1 -7
- package/dist/photon-authorized/photon-authorized.d.ts +7 -0
- package/dist/photon-card/index.d.ts +1 -1
- package/dist/photon-card/photon-card-component.d.ts +1 -0
- package/dist/photon-checkbox/index.d.ts +1 -1
- package/dist/photon-checkbox/photon-checkbox-component.d.ts +1 -0
- package/dist/photon-client/index.d.ts +1 -1
- package/dist/photon-client/photon-client-component.d.ts +1 -0
- package/dist/photon-datepicker/index.d.ts +1 -1
- package/dist/photon-datepicker/photon-datepicker-component.d.ts +1 -0
- package/dist/photon-dialog/index.d.ts +1 -1
- package/dist/photon-dialog/photon-dialog-component.d.ts +1 -0
- package/dist/photon-dispense-units/index.d.ts +1 -1
- package/dist/photon-dispense-units/photon-dispense-units-component.d.ts +1 -0
- package/dist/photon-dropdown/index.d.ts +1 -36
- package/dist/photon-dropdown/photon-dropdown.d.ts +36 -0
- package/dist/photon-form-wrapper/index.d.ts +1 -13
- package/dist/photon-form-wrapper/photon-form-wrapper.d.ts +12 -0
- package/dist/photon-gender-input/index.d.ts +1 -1
- package/dist/photon-gender-input/photon-gender-input-component.d.ts +1 -0
- package/dist/photon-login/index.d.ts +1 -1
- package/dist/photon-login/photon-login-component.d.ts +1 -0
- package/dist/photon-med-search/index.d.ts +1 -4
- package/dist/photon-med-search/photon-med-search-component.d.ts +4 -0
- package/dist/photon-med-search-dialog/index.d.ts +1 -1
- package/dist/photon-med-search-dialog/photon-med-search-dialog-component.d.ts +1 -0
- package/dist/photon-multirx-form/PrescribeWorkflow.stories.d.ts +6 -0
- package/dist/photon-multirx-form/components/PatientCard.d.ts +1 -1
- package/dist/photon-multirx-form/index.d.ts +1 -12
- package/dist/photon-multirx-form/photon-prescribe-workflow-component.d.ts +1 -0
- package/dist/photon-multirx-form/photon-prescribe-workflow.d.ts +39 -0
- package/dist/photon-multirx-form-wrapper/index.d.ts +1 -1
- package/dist/photon-multirx-form-wrapper/photon-multirx-form-wrapper-component.d.ts +1 -0
- package/dist/photon-number-input/index.d.ts +1 -1
- package/dist/photon-number-input/photon-number-input-component.d.ts +1 -0
- package/dist/photon-patient-dialog/index.d.ts +1 -1
- package/dist/photon-patient-dialog/photon-patient-dialog-component.d.ts +1 -0
- package/dist/photon-patient-form/index.d.ts +1 -1
- package/dist/photon-patient-form/photon-patient-form-component.d.ts +1 -0
- package/dist/photon-patient-select/index.d.ts +1 -1
- package/dist/photon-patient-select/photon-patient-select-component.d.ts +1 -0
- package/dist/photon-phone-input/PhoneInput.stories.d.ts +7 -0
- package/dist/photon-phone-input/index.d.ts +1 -9
- package/dist/photon-phone-input/photon-phone-input-component.d.ts +9 -0
- package/dist/photon-radio-card/index.d.ts +1 -1
- package/dist/photon-radio-card/photon-radio-card-component.d.ts +1 -0
- package/dist/photon-radio-group/index.d.ts +1 -1
- package/dist/photon-radio-group/photon-radio-group-component.d.ts +1 -0
- package/dist/photon-sex-input/index.d.ts +1 -6
- package/dist/photon-sex-input/photon-sex-input-component.d.ts +6 -0
- package/dist/photon-state-input/index.d.ts +1 -1
- package/dist/photon-state-input/photon-state-input-component.d.ts +1 -0
- package/dist/photon-text-input/index.d.ts +1 -1
- package/dist/photon-text-input/photon-text-input-component.d.ts +1 -0
- package/dist/photon-textarea/index.d.ts +1 -1
- package/dist/photon-textarea/photon-textarea-component.d.ts +1 -0
- package/dist/photon-tooltip/index.d.ts +1 -10
- package/dist/photon-tooltip/photon-tooltip.d.ts +10 -0
- package/dist/photon-treatment-select/TreatmentSelect.stories.d.ts +6 -0
- package/dist/photon-treatment-select/index.d.ts +1 -1
- package/dist/photon-treatment-select/photon-treatment-select-component.d.ts +1 -0
- package/dist/photon-update-patient-dialog/UpdatePatientDialog.stories.d.ts +6 -0
- package/dist/photon-update-patient-dialog/index.d.ts +1 -1
- package/dist/photon-update-patient-dialog/photon-update-patient-dialog-component.d.ts +1 -0
- package/dist/store.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './photon-auth-button';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import '@shoelace-style/shoelace/dist/components/spinner/spinner';
|
|
1
|
+
export * from './photon-authenticated-component';
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import '@shoelace-style/shoelace/dist/components/alert/alert';
|
|
3
|
-
import { JSXElement } from 'solid-js';
|
|
4
|
-
export declare const PhotonAuthorized: (p: {
|
|
5
|
-
children: JSXElement;
|
|
6
|
-
permissions?: Permission[];
|
|
7
|
-
}) => import("solid-js").JSX.Element;
|
|
1
|
+
export * from './photon-authorized';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Permission } from '@photonhealth/sdk/dist/types';
|
|
2
|
+
import '@shoelace-style/shoelace/dist/components/alert/alert';
|
|
3
|
+
import { JSXElement } from 'solid-js';
|
|
4
|
+
export declare const PhotonAuthorized: (p: {
|
|
5
|
+
children: JSXElement;
|
|
6
|
+
permissions?: Permission[];
|
|
7
|
+
}) => import("solid-js").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './photon-card-component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export * from './photon-checkbox-component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@shoelace-style/shoelace/dist/components/checkbox/checkbox';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './photon-client-component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export * from './photon-datepicker-component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@shoelace-style/shoelace/dist/components/input/input';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export * from './photon-dialog-component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@shoelace-style/shoelace/dist/components/dialog/dialog';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './photon-dispense-units-component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,36 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import '@shoelace-style/shoelace/dist/components/dropdown/dropdown';
|
|
3
|
-
import '@shoelace-style/shoelace/dist/components/input/input';
|
|
4
|
-
import '@shoelace-style/shoelace/dist/components/menu/menu';
|
|
5
|
-
import '@shoelace-style/shoelace/dist/components/menu-item/menu-item';
|
|
6
|
-
import '@shoelace-style/shoelace/dist/components/spinner/spinner';
|
|
7
|
-
import '@shoelace-style/shoelace/dist/components/icon/icon';
|
|
8
|
-
export declare const PhotonDropdown: <T extends {
|
|
9
|
-
id: string;
|
|
10
|
-
}>(props: {
|
|
11
|
-
data: T[];
|
|
12
|
-
label?: string | undefined;
|
|
13
|
-
required: boolean;
|
|
14
|
-
placeholder?: string | undefined;
|
|
15
|
-
forceLabelSize?: boolean | undefined;
|
|
16
|
-
invalid?: boolean | undefined;
|
|
17
|
-
onSearchChange?: ((search: string) => void) | undefined;
|
|
18
|
-
displayAccessor: (selected: T, groupDisplay: boolean) => string | JSXElement;
|
|
19
|
-
disabled?: boolean | undefined;
|
|
20
|
-
onOpen?: (() => void) | undefined;
|
|
21
|
-
onHide?: (() => void) | undefined;
|
|
22
|
-
isLoading: boolean;
|
|
23
|
-
hasMore: boolean;
|
|
24
|
-
noDataMsg?: string | undefined;
|
|
25
|
-
helpText?: string | undefined;
|
|
26
|
-
fetchMore?: (() => void) | undefined;
|
|
27
|
-
selectedData?: T | undefined;
|
|
28
|
-
groups?: {
|
|
29
|
-
label: string;
|
|
30
|
-
filter: (arr: T) => void;
|
|
31
|
-
}[] | undefined;
|
|
32
|
-
showOverflow?: boolean | undefined;
|
|
33
|
-
optional?: boolean | undefined;
|
|
34
|
-
clearable?: boolean | undefined;
|
|
35
|
-
actionRef?: any;
|
|
36
|
-
}) => import("solid-js").JSX.Element;
|
|
1
|
+
export * from './photon-dropdown';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { JSXElement } from 'solid-js';
|
|
2
|
+
import '@shoelace-style/shoelace/dist/components/dropdown/dropdown';
|
|
3
|
+
import '@shoelace-style/shoelace/dist/components/icon/icon';
|
|
4
|
+
import '@shoelace-style/shoelace/dist/components/input/input';
|
|
5
|
+
import '@shoelace-style/shoelace/dist/components/menu-item/menu-item';
|
|
6
|
+
import '@shoelace-style/shoelace/dist/components/menu/menu';
|
|
7
|
+
import '@shoelace-style/shoelace/dist/components/spinner/spinner';
|
|
8
|
+
export declare const PhotonDropdown: <T extends {
|
|
9
|
+
id: string;
|
|
10
|
+
}>(props: {
|
|
11
|
+
data: T[];
|
|
12
|
+
label?: string | undefined;
|
|
13
|
+
required: boolean;
|
|
14
|
+
placeholder?: string | undefined;
|
|
15
|
+
forceLabelSize?: boolean | undefined;
|
|
16
|
+
invalid?: boolean | undefined;
|
|
17
|
+
onSearchChange?: ((search: string) => void) | undefined;
|
|
18
|
+
displayAccessor: (selected: T, groupDisplay: boolean) => string | JSXElement;
|
|
19
|
+
disabled?: boolean | undefined;
|
|
20
|
+
onOpen?: (() => void) | undefined;
|
|
21
|
+
onHide?: (() => void) | undefined;
|
|
22
|
+
isLoading: boolean;
|
|
23
|
+
hasMore: boolean;
|
|
24
|
+
noDataMsg?: string | undefined;
|
|
25
|
+
helpText?: string | undefined;
|
|
26
|
+
fetchMore?: (() => void) | undefined;
|
|
27
|
+
selectedData?: T | undefined;
|
|
28
|
+
groups?: {
|
|
29
|
+
label: string;
|
|
30
|
+
filter: (arr: T) => void;
|
|
31
|
+
}[] | undefined;
|
|
32
|
+
showOverflow?: boolean | undefined;
|
|
33
|
+
optional?: boolean | undefined;
|
|
34
|
+
clearable?: boolean | undefined;
|
|
35
|
+
actionRef?: any;
|
|
36
|
+
}) => import("solid-js").JSX.Element;
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export type PhotonFormWrapperProps = {
|
|
3
|
-
closeTitle?: string;
|
|
4
|
-
closeBody?: string;
|
|
5
|
-
headerRight?: JSX.Element;
|
|
6
|
-
title: string;
|
|
7
|
-
titleIconName?: string;
|
|
8
|
-
form?: JSX.Element;
|
|
9
|
-
onClosed: () => void;
|
|
10
|
-
checkShouldWarn?: () => boolean;
|
|
11
|
-
};
|
|
12
|
-
declare const PhotonFormWrapper: (p: PhotonFormWrapperProps) => JSX.Element;
|
|
13
|
-
export default PhotonFormWrapper;
|
|
1
|
+
export * from './photon-form-wrapper';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
export type PhotonFormWrapperProps = {
|
|
3
|
+
closeTitle?: string;
|
|
4
|
+
closeBody?: string;
|
|
5
|
+
headerRight?: JSX.Element;
|
|
6
|
+
title: string;
|
|
7
|
+
titleIconName?: string;
|
|
8
|
+
form?: JSX.Element;
|
|
9
|
+
onClosed: () => void;
|
|
10
|
+
checkShouldWarn?: () => boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const PhotonFormWrapper: (p: PhotonFormWrapperProps) => JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './photon-gender-input-component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export * from './photon-login-component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '../photon-auth-button';
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import '@shoelace-style/shoelace/dist/components/alert/alert';
|
|
3
|
-
import '@shoelace-style/shoelace/dist/components/icon/icon';
|
|
4
|
-
import '@shoelace-style/shoelace/dist/components/switch/switch';
|
|
1
|
+
export * from './photon-med-search-component';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './photon-med-search-dialog-component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PhotonClientStore } from '../../store';
|
|
2
|
-
import type { Address } from '../
|
|
2
|
+
import type { Address } from '../photon-prescribe-workflow';
|
|
3
3
|
export declare const PatientCard: (props: {
|
|
4
4
|
store: Record<string, any>;
|
|
5
5
|
actions: Record<string, (...args: any) => any>;
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import '@shoelace-style/shoelace/dist/components/icon-button/icon-button';
|
|
3
|
-
import '@shoelace-style/shoelace/dist/components/icon/icon';
|
|
4
|
-
import '@shoelace-style/shoelace/dist/components/switch/switch';
|
|
5
|
-
export type Address = {
|
|
6
|
-
city: string;
|
|
7
|
-
postalCode: string;
|
|
8
|
-
state: string;
|
|
9
|
-
street1: string;
|
|
10
|
-
street2?: string;
|
|
11
|
-
country?: string;
|
|
12
|
-
};
|
|
1
|
+
export * from './photon-prescribe-workflow-component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import '@shoelace-style/shoelace/dist/components/alert/alert';
|
|
2
|
+
import '@shoelace-style/shoelace/dist/components/icon-button/icon-button';
|
|
3
|
+
import '@shoelace-style/shoelace/dist/components/icon/icon';
|
|
4
|
+
import '@shoelace-style/shoelace/dist/components/switch/switch';
|
|
5
|
+
import type { TemplateOverrides } from '@photonhealth/components';
|
|
6
|
+
export type Address = {
|
|
7
|
+
city: string;
|
|
8
|
+
postalCode: string;
|
|
9
|
+
state: string;
|
|
10
|
+
street1: string;
|
|
11
|
+
street2?: string;
|
|
12
|
+
country?: string;
|
|
13
|
+
};
|
|
14
|
+
export type PrescribeProps = {
|
|
15
|
+
patientId?: string;
|
|
16
|
+
templateIds?: string;
|
|
17
|
+
templateOverrides?: TemplateOverrides;
|
|
18
|
+
prescriptionIds?: string;
|
|
19
|
+
hideSubmit: boolean;
|
|
20
|
+
hideTemplates: boolean;
|
|
21
|
+
enableOrder: boolean;
|
|
22
|
+
enableLocalPickup: boolean;
|
|
23
|
+
enableSendToPatient: boolean;
|
|
24
|
+
enableMedHistory: boolean;
|
|
25
|
+
enableCombineAndDuplicate: boolean;
|
|
26
|
+
mailOrderIds?: string;
|
|
27
|
+
pharmacyId?: string;
|
|
28
|
+
loading: boolean;
|
|
29
|
+
address?: Address;
|
|
30
|
+
weight?: number;
|
|
31
|
+
weightUnit?: string;
|
|
32
|
+
triggerSubmit: boolean;
|
|
33
|
+
setTriggerSubmit?: (val: boolean) => void;
|
|
34
|
+
toastBuffer: number;
|
|
35
|
+
formStore?: any;
|
|
36
|
+
formActions?: any;
|
|
37
|
+
externalOrderId?: string;
|
|
38
|
+
};
|
|
39
|
+
export declare function PrescribeWorkflow(props: PrescribeProps): import("solid-js").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './photon-multirx-form-wrapper-component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export * from './photon-number-input-component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@shoelace-style/shoelace/dist/components/input/input';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './photon-patient-dialog-component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export * from './photon-patient-form-component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@shoelace-style/shoelace/dist/components/spinner/spinner';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './photon-patient-select-component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Story, Meta } from '@storybook/html';
|
|
2
|
+
import '../photon-client';
|
|
3
|
+
import './photon-phone-input-component';
|
|
4
|
+
import type { PhoneInputProps } from './photon-phone-input-component';
|
|
5
|
+
declare const _default: Meta<import("@storybook/types").Args>;
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const PhoneInput: Story<PhoneInputProps>;
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export interface PhoneInputProps {
|
|
3
|
-
label?: string;
|
|
4
|
-
required: boolean;
|
|
5
|
-
value?: string;
|
|
6
|
-
invalid: boolean;
|
|
7
|
-
helpText?: string;
|
|
8
|
-
disabled: boolean;
|
|
9
|
-
}
|
|
1
|
+
export * from './photon-phone-input-component';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export * from './photon-radio-card-component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@shoelace-style/shoelace/dist/components/radio/radio';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export * from './photon-radio-group-component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@shoelace-style/shoelace/dist/components/radio/radio';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './photon-state-input-component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export * from './photon-text-input-component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@shoelace-style/shoelace/dist/components/input/input';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export * from './photon-textarea-component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@shoelace-style/shoelace/dist/components/textarea/textarea';
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import '@shoelace-style/shoelace/dist/components/icon/icon';
|
|
3
|
-
export type TooltipPlacements = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
|
|
4
|
-
export type PhotonTooltipProps = {
|
|
5
|
-
tip: string;
|
|
6
|
-
placement?: TooltipPlacements;
|
|
7
|
-
maxWidth?: string;
|
|
8
|
-
};
|
|
9
|
-
declare const PhotonTooltip: (p: PhotonTooltipProps) => import("solid-js").JSX.Element;
|
|
10
|
-
export default PhotonTooltip;
|
|
1
|
+
export * from './photon-tooltip';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '@shoelace-style/shoelace/dist/components/tooltip/tooltip';
|
|
2
|
+
import '@shoelace-style/shoelace/dist/components/icon/icon';
|
|
3
|
+
export type TooltipPlacements = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
|
|
4
|
+
export type PhotonTooltipProps = {
|
|
5
|
+
tip: string;
|
|
6
|
+
placement?: TooltipPlacements;
|
|
7
|
+
maxWidth?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const PhotonTooltip: (p: PhotonTooltipProps) => import("solid-js").JSX.Element;
|
|
10
|
+
export default PhotonTooltip;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './photon-treatment-select-component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './photon-update-patient-dialog-component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/store.d.ts
CHANGED