@xqmsg/ui-core 0.17.1 → 0.18.0

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 (42) hide show
  1. package/dist/components/icons/checkmark/index.d.ts +8 -0
  2. package/dist/components/icons/index.d.ts +2 -1
  3. package/dist/components/toolbar/Toolbar.stories.d.ts +5 -0
  4. package/dist/components/toolbar/components/actions/add/index.d.ts +8 -0
  5. package/dist/components/toolbar/components/actions/index.d.ts +14 -0
  6. package/dist/components/toolbar/components/actions/search/index.d.ts +10 -0
  7. package/dist/components/toolbar/components/actions/sort/index.d.ts +10 -0
  8. package/dist/components/toolbar/components/breadcrumbs/index.d.ts +10 -0
  9. package/dist/components/toolbar/components/breadcrumbs/item/index.d.ts +10 -0
  10. package/dist/components/toolbar/components/dropdown/index.d.ts +14 -0
  11. package/dist/components/toolbar/index.d.ts +19 -0
  12. package/dist/index.d.ts +1 -0
  13. package/dist/ui-core.cjs.development.js +535 -135
  14. package/dist/ui-core.cjs.development.js.map +1 -1
  15. package/dist/ui-core.cjs.production.min.js +1 -1
  16. package/dist/ui-core.cjs.production.min.js.map +1 -1
  17. package/dist/ui-core.esm.js +534 -136
  18. package/dist/ui-core.esm.js.map +1 -1
  19. package/package.json +1 -1
  20. package/src/components/icons/checkmark/checkmark.svg +3 -0
  21. package/src/components/icons/checkmark/index.tsx +13 -0
  22. package/src/components/icons/chevron/down/chevron-down.svg +1 -1
  23. package/src/components/icons/chevron/right/chevron-right.svg +1 -1
  24. package/src/components/icons/folder/add/outline/folder-add-outline.svg +1 -1
  25. package/src/components/icons/google/index.tsx +1 -1
  26. package/src/components/icons/index.tsx +2 -0
  27. package/src/components/icons/search/search.svg +1 -1
  28. package/src/components/icons/table/fill/table-fill.svg +1 -1
  29. package/src/components/icons/table/outline/table-outline.svg +1 -1
  30. package/src/components/input/Input.stories.tsx +6 -0
  31. package/src/components/input/index.tsx +1 -5
  32. package/src/components/navigation/index.tsx +1 -1
  33. package/src/components/toolbar/Toolbar.stories.tsx +53 -0
  34. package/src/components/toolbar/components/actions/add/index.tsx +18 -0
  35. package/src/components/toolbar/components/actions/index.tsx +39 -0
  36. package/src/components/toolbar/components/actions/search/index.tsx +38 -0
  37. package/src/components/toolbar/components/actions/sort/index.tsx +49 -0
  38. package/src/components/toolbar/components/breadcrumbs/index.tsx +63 -0
  39. package/src/components/toolbar/components/breadcrumbs/item/index.tsx +73 -0
  40. package/src/components/toolbar/components/dropdown/index.tsx +107 -0
  41. package/src/components/toolbar/index.tsx +81 -0
  42. package/src/index.tsx +3 -0
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export interface CheckmarkProps {
3
+ boxSize: number | string;
4
+ }
5
+ /**
6
+ * A functional React component utilized to render the `Checkmark` icon component
7
+ */
8
+ export declare const Checkmark: React.FC<CheckmarkProps>;
@@ -1,3 +1,4 @@
1
+ import { Checkmark } from './checkmark';
1
2
  import { ChevronDown } from './chevron/down';
2
3
  import { ChevronRight } from './chevron/right';
3
4
  import { Clock } from './clock';
@@ -25,4 +26,4 @@ import { TableFill } from './table/fill';
25
26
  import { TableOutline } from './table/outline';
26
27
  import { Trash } from './trash';
27
28
  import { Warning } from './warning';
28
- export { ChevronDown, ChevronRight, Clock, Close, Dropdown, Error, FileFill, FileOutline, FolderAddFill, FolderAddOutline, Google, GoogleDrive, Group, Home, Image, Link, Menu, Microsoft, MicrosoftOneDrive, Neutral, Positive, Search, Settings, TableFill, TableOutline, Trash, Warning, };
29
+ export { Checkmark, ChevronDown, ChevronRight, Clock, Close, Dropdown, Error, FileFill, FileOutline, FolderAddFill, FolderAddOutline, Google, GoogleDrive, Group, Home, Image, Link, Menu, Microsoft, MicrosoftOneDrive, Neutral, Positive, Search, Settings, TableFill, TableOutline, Trash, Warning, };
@@ -0,0 +1,5 @@
1
+ import { Meta } from '@storybook/react';
2
+ import { ToolbarProps } from '.';
3
+ declare const meta: Meta<ToolbarProps>;
4
+ export default meta;
5
+ export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, ToolbarProps>;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export interface AddProps {
3
+ onClick: () => void;
4
+ }
5
+ /**
6
+ * A functional React component utilized to render the `Add` component
7
+ */
8
+ export declare const Add: React.FC<AddProps>;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { FieldOption, FieldOptions } from '../../../input/InputTypes';
3
+ export interface ActionsProps {
4
+ onSelectSortItem: (option: FieldOption) => void;
5
+ onClickAdd: () => void;
6
+ onClickSearch: () => void;
7
+ onChangeSearch: (value: string) => void;
8
+ searchValue: string;
9
+ sortOptions: FieldOptions;
10
+ }
11
+ /**
12
+ * A functional React component utilized to render the `Actions` component
13
+ */
14
+ export declare const Actions: React.FC<ActionsProps>;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export interface SearchProps {
3
+ searchValue: string;
4
+ onClick: () => void;
5
+ onChange: (value: string) => void;
6
+ }
7
+ /**
8
+ * A functional React component utilized to render the `Search` component
9
+ */
10
+ export declare const Search: React.FC<SearchProps>;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { FieldOption, FieldOptions } from '../../../../input/InputTypes';
3
+ export interface SortProps {
4
+ onSelectItem: (option: FieldOption) => void;
5
+ sortOptions: FieldOptions;
6
+ }
7
+ /**
8
+ * A functional React component utilized to render the `Sort` component
9
+ */
10
+ export declare const Sort: React.FC<SortProps>;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { ToolbarLabelAndHandler } from '../..';
3
+ export interface ToolbarBreadcrumbsProps {
4
+ pageList: ToolbarLabelAndHandler[];
5
+ currentPage: string;
6
+ }
7
+ /**
8
+ * A functional React component utilized to render the `ToolbarBreadcrumbs` component
9
+ */
10
+ export declare const ToolbarBreadcrumbs: React.FC<ToolbarBreadcrumbsProps>;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export interface ToolbarBreadcrumbItemProps {
3
+ pageLabel: string;
4
+ page: 'current' | 'previous' | 'initial' | 'other';
5
+ onClick: () => void;
6
+ }
7
+ /**
8
+ * A functional React component utilized to render the `ToolbarBreadcrumbItem` component
9
+ */
10
+ export declare const ToolbarBreadcrumbItem: React.FC<ToolbarBreadcrumbItemProps>;
@@ -0,0 +1,14 @@
1
+ import React, { RefObject } from 'react';
2
+ import { FieldOption, FieldOptions } from '../../../input/InputTypes';
3
+ export interface DropdownProps {
4
+ onSelectItem: (option: FieldOption) => void;
5
+ options: FieldOptions;
6
+ dropdownRef: RefObject<HTMLDivElement>;
7
+ position: 'top' | 'bottom';
8
+ optionIndex: number | null;
9
+ setOptionIndex: React.Dispatch<React.SetStateAction<number | null>>;
10
+ }
11
+ /**
12
+ * A functional React component utilized to render the `Dropdown` component
13
+ */
14
+ export declare const Dropdown: React.FC<DropdownProps>;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { FieldOption, FieldOptions } from '../input/InputTypes';
3
+ export declare type ToolbarLabelAndHandler = {
4
+ label: string;
5
+ handler: () => void;
6
+ };
7
+ export interface ToolbarProps {
8
+ pageList: ToolbarLabelAndHandler[];
9
+ currentPage: string;
10
+ searchValue: string;
11
+ sortOptions: FieldOptions;
12
+ onSelectSortItem: (option: FieldOption) => void;
13
+ onClickAdd: () => void;
14
+ onChangeSearch: (value: string) => void;
15
+ }
16
+ /**
17
+ * A functional React component utilized to render the `Toolbar` component
18
+ */
19
+ export declare const Toolbar: React.FC<ToolbarProps>;
package/dist/index.d.ts CHANGED
@@ -15,5 +15,6 @@ export * from './components/table';
15
15
  export * from './components/tabs';
16
16
  export * from './components/text';
17
17
  export * from './theme/provider';
18
+ export * from './components/toolbar';
18
19
  export * from './components/form/utils/formErrors';
19
20
  export * from './theme/foundations/colors';