@wizleap-inc/wiz-ui-react 0.16.0 → 0.16.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.
Files changed (40) hide show
  1. package/dist/components/base/index.d.ts +0 -2
  2. package/dist/components/base/inputs/index.d.ts +0 -3
  3. package/dist/components/base/popup/utils/wrap.d.ts +1 -4
  4. package/dist/components/custom/index.d.ts +0 -2
  5. package/dist/style.css +1 -1
  6. package/dist/wiz-ui.es.js +2250 -3139
  7. package/dist/wiz-ui.umd.js +25 -25
  8. package/package.json +3 -3
  9. package/dist/components/base/inputs/selectbox/components/index.d.ts +0 -1
  10. package/dist/components/base/inputs/selectbox/components/selectbox.d.ts +0 -19
  11. package/dist/components/base/inputs/selectbox/index.d.ts +0 -1
  12. package/dist/components/base/inputs/time-picker/components/index.d.ts +0 -1
  13. package/dist/components/base/inputs/time-picker/components/time-picker.d.ts +0 -15
  14. package/dist/components/base/inputs/time-picker/index.d.ts +0 -1
  15. package/dist/components/base/inputs/time-picker/types/time.d.ts +0 -6
  16. package/dist/components/base/inputs/upload/components/index.d.ts +0 -2
  17. package/dist/components/base/inputs/upload/components/upload-display.d.ts +0 -12
  18. package/dist/components/base/inputs/upload/components/upload-input.d.ts +0 -7
  19. package/dist/components/base/inputs/upload/index.d.ts +0 -1
  20. package/dist/components/base/navigation/components/index.d.ts +0 -2
  21. package/dist/components/base/navigation/components/navigation-container.d.ts +0 -10
  22. package/dist/components/base/navigation/components/navigation-item.d.ts +0 -18
  23. package/dist/components/base/navigation/index.d.ts +0 -1
  24. package/dist/components/base/snackbar/components/index.d.ts +0 -3
  25. package/dist/components/base/snackbar/components/snackbar-context.d.ts +0 -6
  26. package/dist/components/base/snackbar/components/snackbar-provider.d.ts +0 -4
  27. package/dist/components/base/snackbar/components/snackbar.d.ts +0 -9
  28. package/dist/components/base/snackbar/index.d.ts +0 -1
  29. package/dist/components/custom/form/components/form-control.d.ts +0 -10
  30. package/dist/components/custom/form/components/form-group-context.d.ts +0 -8
  31. package/dist/components/custom/form/components/form-group.d.ts +0 -11
  32. package/dist/components/custom/form/components/index.d.ts +0 -2
  33. package/dist/components/custom/form/index.d.ts +0 -1
  34. package/dist/components/custom/notification/components/index.d.ts +0 -3
  35. package/dist/components/custom/notification/components/notification-list.d.ts +0 -11
  36. package/dist/components/custom/notification/components/notification-panel.d.ts +0 -12
  37. package/dist/components/custom/notification/components/notification.d.ts +0 -11
  38. package/dist/components/custom/notification/components/types.d.ts +0 -20
  39. package/dist/components/custom/notification/index.d.ts +0 -1
  40. /package/dist/components/custom/form/{components/form-control-context.d.ts → form-control-context.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wizleap-inc/wiz-ui-react",
3
- "version": "0.16.0",
3
+ "version": "0.16.2",
4
4
  "description": "A React UI Framework for Wizleap Inc.",
5
5
  "devDependencies": {
6
6
  "@storybook/react": "^7.0.2",
@@ -26,8 +26,8 @@
26
26
  "react": "^18.2.0",
27
27
  "react-dom": "^18.2.0",
28
28
  "@wizleap-inc/wiz-ui-constants": "0.8.0",
29
- "@wizleap-inc/wiz-ui-styles": "0.10.0",
30
- "@wizleap-inc/wiz-ui-utils": "0.3.0"
29
+ "@wizleap-inc/wiz-ui-utils": "0.3.0",
30
+ "@wizleap-inc/wiz-ui-styles": "0.11.0"
31
31
  },
32
32
  "scripts": {
33
33
  "build": "tsc --noEmit && vite build",
@@ -1 +0,0 @@
1
- export { WizSelectBox } from "./selectbox";
@@ -1,19 +0,0 @@
1
- import { FC } from "react";
2
- type SelectBoxOption = {
3
- label: string;
4
- exLabel?: string;
5
- value: number;
6
- };
7
- type Props = {
8
- options: SelectBoxOption[];
9
- value: number | null;
10
- placeholder?: string;
11
- width?: string;
12
- disabled?: boolean;
13
- expand?: boolean;
14
- error?: boolean;
15
- isDirectionFixed?: boolean;
16
- onChange: (value: number | null) => void;
17
- };
18
- export declare const WizSelectBox: FC<Props>;
19
- export {};
@@ -1 +0,0 @@
1
- export * from "./components";
@@ -1 +0,0 @@
1
- export * from "./time-picker";
@@ -1,15 +0,0 @@
1
- import { Time } from "../types/time";
2
- type Props = {
3
- time: Time | null;
4
- placeholder?: string;
5
- width?: string;
6
- disabled?: boolean;
7
- isDirectionFixed?: boolean;
8
- error?: boolean;
9
- onChange: (time: Time | null) => void;
10
- };
11
- export declare const WizTimePicker: {
12
- ({ time, placeholder, width, disabled, isDirectionFixed, error, onChange, }: Props): JSX.Element;
13
- displayName: "WizTimePicker";
14
- };
15
- export {};
@@ -1 +0,0 @@
1
- export * from "./components";
@@ -1,6 +0,0 @@
1
- export declare const HOURS: readonly [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23];
2
- export declare const MINUTES: readonly [0, 15, 30, 45];
3
- export type Time = {
4
- hour: (typeof HOURS)[number];
5
- minute: (typeof MINUTES)[number];
6
- };
@@ -1,2 +0,0 @@
1
- export { WizUploadInput } from "./upload-input";
2
- export { WizUploadDisplay } from "./upload-display";
@@ -1,12 +0,0 @@
1
- import { FC } from "react";
2
- type Props = {
3
- files: File[];
4
- uploadingFileCount: number;
5
- completedFileCount: number;
6
- progress: number;
7
- isUploaded: boolean;
8
- isUploading: boolean;
9
- multiple: boolean;
10
- };
11
- export declare const WizUploadDisplay: FC<Props>;
12
- export {};
@@ -1,7 +0,0 @@
1
- import { FC } from "react";
2
- type Props = {
3
- setupXHR: () => XMLHttpRequest;
4
- multiple?: boolean;
5
- };
6
- export declare const WizUploadInput: FC<Props>;
7
- export {};
@@ -1 +0,0 @@
1
- export * from "./components";
@@ -1,2 +0,0 @@
1
- export { WizNavigationItem } from "./navigation-item";
2
- export { WizNavigationContainer } from "./navigation-container";
@@ -1,10 +0,0 @@
1
- import { FC, ReactNode } from "react";
2
- interface Props {
3
- isOpen: boolean;
4
- width?: string;
5
- sticky?: boolean;
6
- children: ReactNode;
7
- footer?: ReactNode;
8
- }
9
- export declare const WizNavigationContainer: FC<Props>;
10
- export {};
@@ -1,18 +0,0 @@
1
- import { FC } from "react";
2
- import { TIcon } from '../../../../components';
3
- import { ButtonGroupItem } from "../../popup-button-group/types";
4
- interface Props {
5
- icon: TIcon;
6
- label: string;
7
- active: boolean;
8
- href: string;
9
- disabled?: boolean;
10
- tooltipText?: string;
11
- isPopupLocking?: boolean;
12
- buttons?: ButtonGroupItem[];
13
- isPopupOpen?: boolean;
14
- onTogglePopup: (isPopup: boolean) => void;
15
- onTogglePopupLocking: (lock: boolean) => void;
16
- }
17
- export declare const WizNavigationItem: FC<Props>;
18
- export {};
@@ -1 +0,0 @@
1
- export * from "./components";
@@ -1,3 +0,0 @@
1
- export { WizSnackbar } from "./snackbar";
2
- export { useSnackbar } from "./snackbar-context";
3
- export { WizSnackbarProvider } from "./snackbar-provider";
@@ -1,6 +0,0 @@
1
- type SnackbarContextType = {
2
- showSnackbar: (message: string) => void;
3
- };
4
- export declare const SnackbarContext: import("react").Context<SnackbarContextType>;
5
- export declare const useSnackbar: () => SnackbarContextType;
6
- export {};
@@ -1,4 +0,0 @@
1
- import { FC, ReactNode } from "react";
2
- export declare const WizSnackbarProvider: FC<{
3
- children: ReactNode;
4
- }>;
@@ -1,9 +0,0 @@
1
- import { FC } from "react";
2
- type Props = {
3
- message: string;
4
- enableAnimation?: boolean;
5
- autoClose?: boolean;
6
- onClose: () => void;
7
- };
8
- export declare const WizSnackbar: FC<Props>;
9
- export {};
@@ -1 +0,0 @@
1
- export * from "./components";
@@ -1,10 +0,0 @@
1
- import { FC, ReactNode } from "react";
2
- type Props = {
3
- htmlFor?: string;
4
- label: string;
5
- required?: boolean;
6
- error?: string;
7
- children: ReactNode;
8
- };
9
- export declare const WizFormControl: FC<Props>;
10
- export {};
@@ -1,8 +0,0 @@
1
- import { ColorKeys, FontSizeKeys } from "@wizleap-inc/wiz-ui-constants";
2
- type FormGroupContextType = {
3
- labelWidth?: string;
4
- labelColor?: ColorKeys;
5
- labelFontSize?: FontSizeKeys;
6
- };
7
- export declare const FormGroupContext: import("react").Context<FormGroupContextType>;
8
- export {};
@@ -1,11 +0,0 @@
1
- import { ColorKeys, FontSizeKeys, SpacingKeys } from "@wizleap-inc/wiz-ui-constants";
2
- import { FC, ReactNode } from "react";
3
- type Props = {
4
- labelWidth?: string;
5
- labelColor?: ColorKeys;
6
- labelFontSize?: FontSizeKeys;
7
- gap?: SpacingKeys;
8
- children: ReactNode;
9
- };
10
- export declare const WizFormGroup: FC<Props>;
11
- export {};
@@ -1,2 +0,0 @@
1
- export { WizFormControl } from "./form-control";
2
- export { WizFormGroup } from "./form-group";
@@ -1 +0,0 @@
1
- export * from "./components";
@@ -1,3 +0,0 @@
1
- export { WizNotification } from "./notification";
2
- export { WizNotificationList } from "./notification-list";
3
- export { WizNotificationPanel } from "./notification-panel";
@@ -1,11 +0,0 @@
1
- import { FC } from "react";
2
- import { NotificationItem, PanelVariant } from "./types";
3
- type Props = {
4
- variant?: PanelVariant;
5
- notifications: NotificationItem[];
6
- height?: string;
7
- emptyMessage?: string;
8
- onClick?: (id: string) => void;
9
- };
10
- export declare const WizNotificationList: FC<Props>;
11
- export {};
@@ -1,12 +0,0 @@
1
- import { FC } from "react";
2
- import { PanelVariant, TableInfoItem } from "./types";
3
- type Props = {
4
- title: string;
5
- timestamp: Date;
6
- variant?: PanelVariant;
7
- read: boolean;
8
- tableInfo?: TableInfoItem[];
9
- onClick?: () => void;
10
- };
11
- export declare const WizNotificationPanel: FC<Props>;
12
- export {};
@@ -1,11 +0,0 @@
1
- import { FC } from "react";
2
- import { NotificationItem, NotificationTabItem } from "./types";
3
- type Props = {
4
- tabs: NotificationTabItem[];
5
- notifications: NotificationItem[];
6
- height?: string;
7
- emptyMessage?: string;
8
- onClick?: (id: string) => void;
9
- };
10
- export declare const WizNotification: FC<Props>;
11
- export {};
@@ -1,20 +0,0 @@
1
- export type PanelVariant = "primary" | "secondary";
2
- export type NotificationTabItem = {
3
- label: string;
4
- name: string;
5
- notificationCount?: number;
6
- disabled?: boolean;
7
- variant: PanelVariant;
8
- };
9
- export type TableInfoItem = {
10
- title: string;
11
- content: string;
12
- };
13
- export type NotificationItem = {
14
- id: string;
15
- title: string;
16
- timestamp: Date;
17
- tabName: string;
18
- read: boolean;
19
- tableInfo?: TableInfoItem[];
20
- };
@@ -1 +0,0 @@
1
- export * from "./components";