@photonhealth/elements 0.8.4 → 0.8.5
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 +278 -278
- package/dist/index.mjs +7180 -7084
- package/dist/photon-authorized/photon-authorized.d.ts +1 -1
- package/dist/photon-multirx-form/photon-prescribe-workflow.d.ts +1 -1
- package/dist/utils.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Permission } from '@photonhealth/sdk/dist/types';
|
|
2
1
|
import '@shoelace-style/shoelace/dist/components/alert/alert';
|
|
3
2
|
import { JSXElement } from 'solid-js';
|
|
3
|
+
import { Permission } from '@photonhealth/sdk/dist/types';
|
|
4
4
|
export declare const PhotonAuthorized: (p: {
|
|
5
5
|
children: JSXElement;
|
|
6
6
|
permissions?: Permission[];
|
|
@@ -2,7 +2,7 @@ import '@shoelace-style/shoelace/dist/components/alert/alert';
|
|
|
2
2
|
import '@shoelace-style/shoelace/dist/components/icon-button/icon-button';
|
|
3
3
|
import '@shoelace-style/shoelace/dist/components/icon/icon';
|
|
4
4
|
import '@shoelace-style/shoelace/dist/components/switch/switch';
|
|
5
|
-
import
|
|
5
|
+
import { TemplateOverrides } from '@photonhealth/components';
|
|
6
6
|
export type Address = {
|
|
7
7
|
city: string;
|
|
8
8
|
postalCode: string;
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { Permission } from '@photonhealth/sdk/dist/types';
|
|
1
2
|
export declare const validateProps: (props: Record<string, any>, required: string[]) => string[];
|
|
2
3
|
export declare const hasAuthParams: (searchParams?: string) => boolean;
|
|
3
4
|
export declare const toTitleCase: (str: string) => string;
|
|
4
5
|
export declare const isZip: (zip: string) => boolean;
|
|
5
6
|
export declare const formatDate: (dateString: string) => string;
|
|
7
|
+
export declare function checkHasPermission(subset: Permission[], superset: Permission[]): boolean;
|