@openmrs/esm-styleguide 8.0.1-pre.3585 → 8.0.1-pre.3592
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/.turbo/turbo-build.log +4 -4
- package/dist/empty-card/empty-card.component.d.ts +13 -0
- package/dist/empty-card/index.d.ts +1 -0
- package/dist/error-card/error-card.component.d.ts +11 -0
- package/dist/error-card/index.d.ts +1 -0
- package/dist/internal.d.ts +4 -0
- package/dist/openmrs-esm-styleguide.css +1 -1
- package/dist/openmrs-esm-styleguide.css.map +1 -1
- package/dist/openmrs-esm-styleguide.js +2 -2
- package/dist/openmrs-esm-styleguide.js.map +1 -1
- package/dist/pagination/index.d.ts +1 -0
- package/dist/pagination/pagination.component.d.ts +22 -0
- package/dist/public.d.ts +20 -18
- package/dist/snackbars/index.d.ts +1 -0
- package/dist/toasts/index.d.ts +1 -0
- package/package.json +12 -12
- package/src/cards/card-header.component.tsx +30 -0
- package/src/cards/card-header.module.scss +45 -0
- package/src/cards/index.ts +1 -0
- package/src/declarations.d.ts +14 -2
- package/src/empty-card/empty-card-registration.ts +6 -0
- package/src/empty-card/empty-card.component.tsx +55 -0
- package/src/empty-card/empty-card.module.scss +27 -0
- package/src/empty-card/empty-card.test.tsx +58 -0
- package/src/empty-card/empty-data-illustration.svg +32 -0
- package/src/empty-card/index.ts +1 -0
- package/src/error-card/error-card.component.tsx +35 -0
- package/src/error-card/error-card.module.scss +21 -0
- package/src/error-card/error-card.test.tsx +25 -0
- package/src/error-card/index.ts +1 -0
- package/src/index.ts +5 -3
- package/src/internal.ts +4 -0
- package/src/pagination/index.ts +1 -0
- package/src/pagination/pagination.component.tsx +77 -0
- package/src/pagination/pagination.module.scss +66 -0
- package/src/pagination/pagination.test.tsx +72 -0
- package/src/public.ts +20 -18
- package/src/snackbars/index.tsx +2 -0
- package/src/toasts/index.tsx +2 -0
- package/dist/brand.d.ts +0 -1
- package/dist/breakpoints/index.d.ts +0 -11
- package/dist/config-schema.d.ts +0 -23
- package/dist/custom-overflow-menu/custom-overflow-menu.component.d.ts +0 -8
- package/dist/custom-overflow-menu/index.d.ts +0 -1
- package/dist/datepicker/DatePickerIcon.d.ts +0 -6
- package/dist/datepicker/DatePickerInput.d.ts +0 -11
- package/dist/datepicker/MonthYear.d.ts +0 -10
- package/dist/datepicker/locale-context.d.ts +0 -2
- package/dist/datepicker/utils.d.ts +0 -15
- package/dist/icons/icon-registration.d.ts +0 -1
- package/dist/icons/icons.d.ts +0 -329
- package/dist/icons/index.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/logo/index.d.ts +0 -1
- package/dist/pictograms/pictogram-registration.d.ts +0 -1
- package/dist/pictograms/pictograms.d.ts +0 -64
- package/dist/svg-utils.d.ts +0 -1
- package/dist/utils.d.ts +0 -6
- package/dist/workspaces2/workspace2-close-prompt.modal.d.ts +0 -11
package/dist/logo/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function setupLogo(): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function setupPictograms(): void;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/** @category Pictograms */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { type Argument } from 'classnames';
|
|
4
|
-
export declare const pictogramIds: readonly ["omrs-pict-appointments", "omrs-pict-assessment-1", "omrs-pict-assessment-2", "omrs-pict-blood-bank", "omrs-pict-cardiology", "omrs-pict-ct-scan", "omrs-pict-dentistry", "omrs-pict-emergency-department", "omrs-pict-facility", "omrs-pict-geriatrics", "omrs-pict-gynaecology", "omrs-pict-in-patient", "omrs-pict-laboratory", "omrs-pict-labs-2", "omrs-pict-obstetrics", "omrs-pict-patient-search", "omrs-pict-patients", "omrs-pict-payments-desk", "omrs-pict-pharmacy", "omrs-pict-pharmacy-2", "omrs-pict-registration", "omrs-pict-service-queues", "omrs-pict-stock-management", "omrs-pict-transfer", "omrs-pict-triage", "omrs-pict-x-ray"];
|
|
5
|
-
export type PictogramId = (typeof pictogramIds)[number];
|
|
6
|
-
export type PictogramProps = {
|
|
7
|
-
className?: Argument;
|
|
8
|
-
size?: number;
|
|
9
|
-
};
|
|
10
|
-
export declare const AppointmentsPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated use AppointmentsPictogram instead
|
|
13
|
-
*/
|
|
14
|
-
export declare const AppointmentsAltPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
15
|
-
export declare const Assessment1Pictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
16
|
-
export declare const Assessment2Pictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
17
|
-
export declare const BloodBankPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
18
|
-
export declare const CardiologyPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
19
|
-
export declare const CtScanPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
20
|
-
export declare const DentistryPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
21
|
-
export declare const EmergencyDepartmentPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
22
|
-
export declare const FacilityPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
23
|
-
export declare const GeriatricsPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
24
|
-
export declare const GynaecologyPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
25
|
-
export declare const InPatientPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
26
|
-
export declare const LaboratoryPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
27
|
-
export declare const Labs2Pictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
28
|
-
export declare const ObstetricsPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
29
|
-
export declare const PatientSearchPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
30
|
-
export declare const PatientsPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
31
|
-
export declare const PaymentsDeskPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
32
|
-
export declare const PharmacyPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
33
|
-
export declare const Pharmacy2Pictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
34
|
-
export declare const RegistrationPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
35
|
-
export declare const ServiceQueuesPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
36
|
-
export declare const StockManagementPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
37
|
-
export declare const TransferPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
38
|
-
export declare const TriagePictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
39
|
-
export declare const XrayPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
40
|
-
export declare const HomePictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
41
|
-
export declare const PatientListsPictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
42
|
-
/**
|
|
43
|
-
* This is a utility component that takes an `pictogram` and render it if the sprite for the pictogram
|
|
44
|
-
* is available. The goal is to make it easier to conditionally render configuration-specified pictograms.
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* ```tsx
|
|
48
|
-
* <MaybePictogram pictogram='omrs-icon-baby' className={styles.myPictogramStyles} />
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
export declare const MaybePictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
|
|
52
|
-
pictogram: string;
|
|
53
|
-
fallback?: React.ReactNode;
|
|
54
|
-
} & PictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
|
55
|
-
export type SvgPictogramProps = {
|
|
56
|
-
/** the id of the pictogram */
|
|
57
|
-
pictogram: PictogramId;
|
|
58
|
-
/** properties when using the pictogram */
|
|
59
|
-
pictogramProps: PictogramProps;
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* This is a utility type for custom pictograms. Please maintain alphabetical order when adding new pictograms for readability.
|
|
63
|
-
*/
|
|
64
|
-
export declare const Pictogram: React.MemoExoticComponent<React.ForwardRefExoticComponent<SvgPictogramProps & React.RefAttributes<SVGSVGElement>>>;
|
package/dist/svg-utils.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function addSvg(htmlId: string, svgString: string): void;
|
package/dist/utils.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Array of valid values for Carbon tag's "type" attribute.
|
|
3
|
-
* Options from https://react.carbondesignsystem.com/?path=/docs/components-tag--overview
|
|
4
|
-
*/
|
|
5
|
-
export declare const carbonTagColors: readonly ["red", "magenta", "purple", "blue", "teal", "cyan", "gray", "green", "warm-gray", "cool-gray", "high-contrast", "outline"];
|
|
6
|
-
export type CarbonTagColor = (typeof carbonTagColors)[number];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface WorkspaceUnsavedChangesModal {
|
|
3
|
-
onConfirm: () => void;
|
|
4
|
-
onCancel: () => void;
|
|
5
|
-
affectedWorkspaceTitles: string[];
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* This modal is used for prompting user to confirm closing currently opened workspace.
|
|
9
|
-
*/
|
|
10
|
-
declare const Workspace2ClosePromptModal: React.FC<WorkspaceUnsavedChangesModal>;
|
|
11
|
-
export default Workspace2ClosePromptModal;
|