@xqmsg/ui-core 0.17.2 → 0.18.1

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/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/search/index.d.ts +10 -0
  6. package/dist/components/toolbar/components/actions/sort/index.d.ts +10 -0
  7. package/dist/components/toolbar/components/breadcrumbs/index.d.ts +10 -0
  8. package/dist/components/toolbar/components/breadcrumbs/item/index.d.ts +10 -0
  9. package/dist/components/toolbar/components/dropdown/index.d.ts +14 -0
  10. package/dist/components/toolbar/index.d.ts +15 -0
  11. package/dist/index.d.ts +1 -0
  12. package/dist/ui-core.cjs.development.js +305 -136
  13. package/dist/ui-core.cjs.development.js.map +1 -1
  14. package/dist/ui-core.cjs.production.min.js +1 -1
  15. package/dist/ui-core.cjs.production.min.js.map +1 -1
  16. package/dist/ui-core.esm.js +304 -137
  17. package/dist/ui-core.esm.js.map +1 -1
  18. package/package.json +1 -1
  19. package/src/components/icons/checkmark/checkmark.svg +3 -0
  20. package/src/components/icons/checkmark/index.tsx +13 -0
  21. package/src/components/icons/chevron/down/chevron-down.svg +1 -1
  22. package/src/components/icons/chevron/right/chevron-right.svg +1 -1
  23. package/src/components/icons/folder/add/outline/folder-add-outline.svg +1 -1
  24. package/src/components/icons/google/index.tsx +1 -1
  25. package/src/components/icons/index.tsx +2 -0
  26. package/src/components/icons/search/search.svg +1 -1
  27. package/src/components/icons/table/fill/table-fill.svg +1 -1
  28. package/src/components/icons/table/outline/table-outline.svg +1 -1
  29. package/src/components/input/Input.stories.tsx +6 -0
  30. package/src/components/input/index.tsx +0 -1
  31. package/src/components/navigation/index.tsx +1 -1
  32. package/src/components/toolbar/Toolbar.stories.tsx +60 -0
  33. package/src/components/toolbar/components/actions/add/index.tsx +18 -0
  34. package/src/components/toolbar/components/actions/search/index.tsx +38 -0
  35. package/src/components/toolbar/components/actions/sort/index.tsx +49 -0
  36. package/src/components/toolbar/components/breadcrumbs/index.tsx +63 -0
  37. package/src/components/toolbar/components/breadcrumbs/item/index.tsx +73 -0
  38. package/src/components/toolbar/components/dropdown/index.tsx +107 -0
  39. package/src/components/toolbar/index.tsx +37 -0
  40. 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,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,15 @@
1
+ import React, { PropsWithChildren } from 'react';
2
+ export declare type ToolbarLabelAndHandler = {
3
+ label: string;
4
+ handler: () => void;
5
+ };
6
+ export interface ToolbarProps extends PropsWithChildren {
7
+ pageList: ToolbarLabelAndHandler[];
8
+ currentPage: string;
9
+ searchValue: string;
10
+ onChangeSearch: (value: string) => void;
11
+ }
12
+ /**
13
+ * A functional React component utilized to render the `Toolbar` component
14
+ */
15
+ 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';