@photonhealth/elements 0.1.0 → 0.1.2

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.
@@ -1,7 +1,7 @@
1
- import '@shoelace-style/shoelace/dist/components/dialog/dialog';
1
+ import '@shoelace-style/shoelace/dist/components/alert/alert';
2
2
  import { JSXElement } from 'solid-js';
3
3
  import { Permission } from '../../types';
4
- export declare const PhotonAuthorized: ({ children, permissions }: {
4
+ export declare const PhotonAuthorized: (p: {
5
5
  children: JSXElement;
6
- permissions?: Permission[] | undefined;
6
+ permissions?: Permission[];
7
7
  }) => import("solid-js").JSX.Element;
@@ -14,20 +14,20 @@ export declare const PhotonDropdown: <T extends {
14
14
  placeholder?: string | undefined;
15
15
  forceLabelSize?: boolean | undefined;
16
16
  invalid?: boolean | undefined;
17
- onSearchChange?: Function | undefined;
17
+ onSearchChange?: ((search: string) => void) | undefined;
18
18
  displayAccessor: (selected: T, groupDisplay: boolean) => string | JSXElement;
19
19
  disabled?: boolean | undefined;
20
- onOpen?: Function | undefined;
21
- onHide?: Function | undefined;
20
+ onOpen?: (() => void) | undefined;
21
+ onHide?: (() => void) | undefined;
22
22
  isLoading: boolean;
23
23
  hasMore: boolean;
24
24
  noDataMsg?: string | undefined;
25
25
  helpText?: string | undefined;
26
- fetchMore?: Function | undefined;
26
+ fetchMore?: (() => void) | undefined;
27
27
  selectedData?: T | undefined;
28
28
  groups?: {
29
29
  label: string;
30
- filter: Function;
30
+ filter: (arr: any) => void;
31
31
  }[] | undefined;
32
32
  showOverflow?: boolean | undefined;
33
33
  optional?: boolean | undefined;
@@ -9,5 +9,5 @@ export type PhotonFormWrapperProps = {
9
9
  onClosed: () => void;
10
10
  checkShouldWarn?: () => boolean;
11
11
  };
12
- declare const PhotonFormWrapper: ({ closeTitle, closeBody, headerRight, title, titleIconName, form, onClosed, checkShouldWarn }: PhotonFormWrapperProps) => JSX.Element;
12
+ declare const PhotonFormWrapper: (p: PhotonFormWrapperProps) => JSX.Element;
13
13
  export default PhotonFormWrapper;
@@ -2,6 +2,6 @@ import '@shoelace-style/shoelace/dist/components/icon/icon';
2
2
  import '@shoelace-style/shoelace/dist/components/button/button';
3
3
  export declare const AddPrescriptionCard: (props: {
4
4
  hideAddToTemplates: boolean;
5
- actions: Record<string, Function>;
5
+ actions: Record<string, (...args: any) => any>;
6
6
  store: Record<string, any>;
7
7
  }) => import("solid-js").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  export declare const DraftPrescriptionCard: (props: {
2
2
  prescriptionRef: HTMLDivElement | undefined;
3
- actions: Record<string, Function>;
3
+ actions: Record<string, (...args: any) => any>;
4
4
  store: Record<string, any>;
5
5
  isLoading: boolean;
6
6
  setIsEditing: (isEditing: boolean) => void;
@@ -1,4 +1,4 @@
1
1
  export declare const OrderCard: (props: {
2
2
  store: Record<string, any>;
3
- actions: Record<string, Function>;
3
+ actions: Record<string, (...args: any) => any>;
4
4
  }) => import("solid-js").JSX.Element;
@@ -1,9 +1,9 @@
1
1
  import { PhotonClientStore } from '../../store';
2
2
  export declare const PatientCard: (props: {
3
3
  store: Record<string, any>;
4
- actions: Record<string, Function>;
5
- patientId?: string;
6
- client?: PhotonClientStore;
7
- enableOrder?: boolean;
8
- hideAddress?: boolean;
4
+ actions: Record<string, (...args: any) => any>;
5
+ patientId?: string | undefined;
6
+ client?: PhotonClientStore | undefined;
7
+ enableOrder?: boolean | undefined;
8
+ hideAddress?: boolean | undefined;
9
9
  }) => import("solid-js").JSX.Element;
@@ -1,3 +1,3 @@
1
- export declare const PharmacyCard: ({ pharmacyId }: {
1
+ export declare const PharmacyCard: (props: {
2
2
  pharmacyId: string | undefined;
3
3
  }) => import("solid-js").JSX.Element;
@@ -1,2 +1,2 @@
1
- declare const repopulateForm: (actions: Record<string, Function>, draft: any) => void;
1
+ declare const repopulateForm: (actions: Record<string, (...args: any) => any>, draft: any) => void;
2
2
  export default repopulateForm;
@@ -5,5 +5,5 @@ export type PhotonTooltipProps = {
5
5
  tip: string;
6
6
  placement?: TooltipPlacements;
7
7
  };
8
- declare const PhotonTooltip: ({ tip, placement }: PhotonTooltipProps) => import("solid-js").JSX.Element;
8
+ declare const PhotonTooltip: (p: PhotonTooltipProps) => import("solid-js").JSX.Element;
9
9
  export default PhotonTooltip;
package/dist/store.d.ts CHANGED
@@ -3,7 +3,7 @@ import { Catalog, DispenseUnit, MutationCreatePrescriptionArgs, Patient, Prescri
3
3
  import { GraphQLError } from 'graphql';
4
4
  import { Permission } from '../types';
5
5
  export declare class PhotonClientStore {
6
- private sdk;
6
+ readonly sdk: PhotonClient;
7
7
  private setStore;
8
8
  private store;
9
9
  authentication: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photonhealth/elements",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -48,7 +48,6 @@
48
48
  "postcss-custom-media": "^8.0.2",
49
49
  "postcss-jit-props": "^1.0.7",
50
50
  "rimraf": "^3.0.2",
51
- "typescript": "^4.8.4",
52
51
  "vite": "^3.0.6",
53
52
  "vite-plugin-solid": "^2.3.0",
54
53
  "vite-plugin-static-copy": "^0.13.1"
@@ -1 +0,0 @@
1
- export declare const DosageUnitsDropdown: () => import("solid-js").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const LiquidDosageUnitsDropdown: () => import("solid-js").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const VolumeUnitsDropdown: () => import("solid-js").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const WeightUnitsDropdown: () => import("solid-js").JSX.Element;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- import { PhotonFormWrapperProps } from '.';
2
- import '@shoelace-style/shoelace/dist/components/button/button';
3
- declare const _default: {
4
- title: string;
5
- component: ({ closeTitle, closeBody, headerRight, title, titleIconName, form, onClosed, checkShouldWarn }: PhotonFormWrapperProps) => import("solid-js").JSX.Element;
6
- };
7
- export default _default;
8
- export declare const Primary: ({ title, titleIconName, headerRight, form, onClosed }: PhotonFormWrapperProps) => import("solid-js").JSX.Element;
@@ -1 +0,0 @@
1
- export {};
@@ -1,21 +0,0 @@
1
- import { PhotonTooltipProps } from '.';
2
- declare const _default: {
3
- title: string;
4
- component: ({ tip, placement }: PhotonTooltipProps) => import("solid-js").JSX.Element;
5
- argTypes: {
6
- tip: {
7
- control: {
8
- type: string;
9
- };
10
- };
11
- placement: {
12
- control: {
13
- type: string;
14
- options: string[];
15
- };
16
- };
17
- };
18
- };
19
- export default _default;
20
- export declare const Primary: ({ tip, placement }: PhotonTooltipProps) => import("solid-js").JSX.Element;
21
- export declare const LongText: ({ tip, placement }: PhotonTooltipProps) => import("solid-js").JSX.Element;