@xqmsg/ui-core 0.24.2 → 0.24.4
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/README.md +8 -13
- package/dist/components/input/StackedMultiSelect/index.d.ts +1 -0
- package/dist/components/input/StackedSelect/index.d.ts +1 -0
- package/dist/components/input/components/dropdown/index.d.ts +2 -0
- package/dist/components/input/index.d.ts +2 -1
- package/dist/ui-core.cjs.development.js +197 -113
- package/dist/ui-core.cjs.development.js.map +1 -1
- package/dist/ui-core.cjs.production.min.js +1 -1
- package/dist/ui-core.cjs.production.min.js.map +1 -1
- package/dist/ui-core.esm.js +198 -114
- package/dist/ui-core.esm.js.map +1 -1
- package/package.json +6 -2
- package/src/components/icons/checkmark/index.tsx +1 -1
- package/src/components/icons/chevron/down/index.tsx +7 -1
- package/src/components/icons/chevron/right/index.tsx +1 -1
- package/src/components/icons/clock/index.tsx +1 -1
- package/src/components/icons/dropdown/index.tsx +5 -1
- package/src/components/icons/error/index.tsx +1 -1
- package/src/components/icons/file/fill/index.tsx +1 -1
- package/src/components/icons/file/outline/index.tsx +1 -1
- package/src/components/icons/folder/add/fill/index.tsx +1 -1
- package/src/components/icons/folder/add/outline/index.tsx +1 -1
- package/src/components/icons/folder/outline/index.tsx +1 -1
- package/src/components/icons/group/index.tsx +1 -1
- package/src/components/icons/home/index.tsx +1 -1
- package/src/components/icons/image/index.tsx +1 -1
- package/src/components/icons/link/index.tsx +1 -1
- package/src/components/icons/menu/index.tsx +1 -1
- package/src/components/icons/microsoft/index.tsx +1 -1
- package/src/components/icons/neutral/index.tsx +3 -1
- package/src/components/icons/page/index.tsx +1 -1
- package/src/components/icons/positive/index.tsx +1 -1
- package/src/components/icons/question/index.tsx +1 -1
- package/src/components/icons/search/index.tsx +1 -1
- package/src/components/icons/services/index.tsx +1 -1
- package/src/components/icons/settings/index.tsx +3 -1
- package/src/components/icons/table/fill/index.tsx +1 -1
- package/src/components/icons/table/outline/index.tsx +1 -1
- package/src/components/icons/task/index.tsx +1 -1
- package/src/components/icons/trash/index.tsx +1 -1
- package/src/components/icons/video/index.tsx +1 -1
- package/src/components/icons/warning/index.tsx +1 -1
- package/src/components/input/Input.stories.tsx +9 -0
- package/src/components/input/StackedMultiSelect/index.tsx +296 -277
- package/src/components/input/StackedSelect/index.tsx +46 -33
- package/src/components/input/components/dropdown/index.tsx +61 -12
- package/src/components/input/index.tsx +4 -0
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.24.
|
|
2
|
+
"version": "0.24.4",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
@@ -37,7 +37,11 @@
|
|
|
37
37
|
"trailingComma": "es5"
|
|
38
38
|
},
|
|
39
39
|
"name": "@xqmsg/ui-core",
|
|
40
|
-
"author":
|
|
40
|
+
"author": {
|
|
41
|
+
"name": "XQ",
|
|
42
|
+
"email": "ike@xqmsg.com",
|
|
43
|
+
"url": "https://xqmsg.co"
|
|
44
|
+
},
|
|
41
45
|
"module": "dist/ui-core.esm.js",
|
|
42
46
|
"size-limit": [
|
|
43
47
|
{
|
|
@@ -9,5 +9,5 @@ export interface CheckmarkProps {
|
|
|
9
9
|
* A functional React component utilized to render the `Checkmark` icon component
|
|
10
10
|
*/
|
|
11
11
|
export const Checkmark: React.FC<CheckmarkProps> = ({ boxSize }) => {
|
|
12
|
-
return <CheckmarkIcon boxSize={boxSize} />;
|
|
12
|
+
return <CheckmarkIcon width={boxSize} height={boxSize} />;
|
|
13
13
|
};
|
|
@@ -10,5 +10,11 @@ export interface ChevronDownProps {
|
|
|
10
10
|
* A functional React component utilized to render the `ChevronDown` icon component
|
|
11
11
|
*/
|
|
12
12
|
export const ChevronDown: React.FC<ChevronDownProps> = ({ boxSize }) => {
|
|
13
|
-
return
|
|
13
|
+
return (
|
|
14
|
+
<ChevronDownIcon
|
|
15
|
+
width={boxSize}
|
|
16
|
+
height={boxSize}
|
|
17
|
+
fill={colors.fill.action}
|
|
18
|
+
/>
|
|
19
|
+
);
|
|
14
20
|
};
|
|
@@ -9,5 +9,5 @@ export interface ChevronRightProps {
|
|
|
9
9
|
* A functional React component utilized to render the `ChevronRight` icon component
|
|
10
10
|
*/
|
|
11
11
|
export const ChevronRight: React.FC<ChevronRightProps> = ({ boxSize }) => {
|
|
12
|
-
return <ChevronRightIcon boxSize={boxSize} />;
|
|
12
|
+
return <ChevronRightIcon width={boxSize} height={boxSize} />;
|
|
13
13
|
};
|
|
@@ -9,5 +9,5 @@ export interface ClockProps {
|
|
|
9
9
|
* A functional React component utilized to render the `Clock` icon component
|
|
10
10
|
*/
|
|
11
11
|
export const Clock: React.FC<ClockProps> = ({ boxSize }) => {
|
|
12
|
-
return <ClockIcon boxSize={boxSize} />;
|
|
12
|
+
return <ClockIcon width={boxSize} height={boxSize} />;
|
|
13
13
|
};
|
|
@@ -11,6 +11,10 @@ export interface DropdownProps {
|
|
|
11
11
|
*/
|
|
12
12
|
export const Dropdown: React.FC<DropdownProps> = ({ boxSize, disabled }) => {
|
|
13
13
|
return (
|
|
14
|
-
<DropdownIcon
|
|
14
|
+
<DropdownIcon
|
|
15
|
+
width={boxSize}
|
|
16
|
+
height={boxSize}
|
|
17
|
+
fill={disabled ? '#3C3C4399' : '#0082FF'}
|
|
18
|
+
/>
|
|
15
19
|
);
|
|
16
20
|
};
|
|
@@ -9,5 +9,5 @@ export interface ErrorProps {
|
|
|
9
9
|
* A functional React component utilized to render the `Error` icon component
|
|
10
10
|
*/
|
|
11
11
|
export const Error: React.FC<ErrorProps> = ({ boxSize }) => {
|
|
12
|
-
return <ErrorIcon boxSize={boxSize} />;
|
|
12
|
+
return <ErrorIcon width={boxSize} height={boxSize} />;
|
|
13
13
|
};
|
|
@@ -9,5 +9,5 @@ export interface FileFillProps {
|
|
|
9
9
|
* A functional React component utilized to render the `FileFill` icon component
|
|
10
10
|
*/
|
|
11
11
|
export const FileFill: React.FC<FileFillProps> = ({ boxSize }) => {
|
|
12
|
-
return <FileFillIcon boxSize={boxSize} />;
|
|
12
|
+
return <FileFillIcon width={boxSize} height={boxSize} />;
|
|
13
13
|
};
|
|
@@ -9,5 +9,5 @@ export interface FileOutlineProps {
|
|
|
9
9
|
* A functional React component utilized to render the `FileOutline` icon component
|
|
10
10
|
*/
|
|
11
11
|
export const FileOutline: React.FC<FileOutlineProps> = ({ boxSize }) => {
|
|
12
|
-
return <FileOutlineIcon boxSize={boxSize} />;
|
|
12
|
+
return <FileOutlineIcon width={boxSize} height={boxSize} />;
|
|
13
13
|
};
|
|
@@ -9,5 +9,5 @@ export interface FolderAddFillProps {
|
|
|
9
9
|
* A functional React component utilized to render the `FolderAddFill` icon component
|
|
10
10
|
*/
|
|
11
11
|
export const FolderAddFill: React.FC<FolderAddFillProps> = ({ boxSize }) => {
|
|
12
|
-
return <FolderAddFillIcon boxSize={boxSize} />;
|
|
12
|
+
return <FolderAddFillIcon width={boxSize} height={boxSize} />;
|
|
13
13
|
};
|
|
@@ -9,5 +9,5 @@ export interface FolderOutlineProps {
|
|
|
9
9
|
* A functional React component utilized to render the `FolderOutline` icon component
|
|
10
10
|
*/
|
|
11
11
|
export const FolderOutline: React.FC<FolderOutlineProps> = ({ boxSize }) => {
|
|
12
|
-
return <FolderOutlineIcon boxSize={boxSize} />;
|
|
12
|
+
return <FolderOutlineIcon width={boxSize} height={boxSize} />;
|
|
13
13
|
};
|
|
@@ -9,5 +9,5 @@ export interface GroupProps {
|
|
|
9
9
|
* A functional React component utilized to render the `Group` icon component
|
|
10
10
|
*/
|
|
11
11
|
export const Group: React.FC<GroupProps> = ({ boxSize }) => {
|
|
12
|
-
return <GroupIcon boxSize={boxSize} />;
|
|
12
|
+
return <GroupIcon width={boxSize} height={boxSize} />;
|
|
13
13
|
};
|
|
@@ -9,5 +9,5 @@ export interface HomeProps {
|
|
|
9
9
|
* A functional React component utilized to render the `Home` icon component
|
|
10
10
|
*/
|
|
11
11
|
export const Home: React.FC<HomeProps> = ({ boxSize }) => {
|
|
12
|
-
return <HomeIcon boxSize={boxSize} />;
|
|
12
|
+
return <HomeIcon width={boxSize} height={boxSize} />;
|
|
13
13
|
};
|
|
@@ -9,5 +9,5 @@ export interface ImageProps {
|
|
|
9
9
|
* A functional React component utilized to render the `Image` icon component
|
|
10
10
|
*/
|
|
11
11
|
export const Image: React.FC<ImageProps> = ({ boxSize }) => {
|
|
12
|
-
return <ImageIcon boxSize={boxSize} />;
|
|
12
|
+
return <ImageIcon width={boxSize} height={boxSize} />;
|
|
13
13
|
};
|
|
@@ -9,5 +9,5 @@ export interface LinkProps {
|
|
|
9
9
|
* A functional React component utilized to render the `Link` icon component
|
|
10
10
|
*/
|
|
11
11
|
export const Link: React.FC<LinkProps> = ({ boxSize }) => {
|
|
12
|
-
return <LinkIcon boxSize={boxSize} />;
|
|
12
|
+
return <LinkIcon width={boxSize} height={boxSize} />;
|
|
13
13
|
};
|
|
@@ -9,5 +9,5 @@ export interface MenuProps {
|
|
|
9
9
|
* A functional React component utilized to render the `Menu` icon component
|
|
10
10
|
*/
|
|
11
11
|
export const Menu: React.FC<MenuProps> = ({ boxSize }) => {
|
|
12
|
-
return <MenuIcon boxSize={boxSize} />;
|
|
12
|
+
return <MenuIcon width={boxSize} height={boxSize} />;
|
|
13
13
|
};
|
|
@@ -9,5 +9,5 @@ export interface MicrosoftProps {
|
|
|
9
9
|
* A functional React component utilized to render the `Microsoft` icon component
|
|
10
10
|
*/
|
|
11
11
|
export const Microsoft: React.FC<MicrosoftProps> = ({ boxSize }) => {
|
|
12
|
-
return <MicrosoftLogo boxSize={boxSize} />;
|
|
12
|
+
return <MicrosoftLogo width={boxSize} height={boxSize} />;
|
|
13
13
|
};
|
|
@@ -10,5 +10,7 @@ export interface NeutralProps {
|
|
|
10
10
|
* A functional React component utilized to render the `Neutral` icon component
|
|
11
11
|
*/
|
|
12
12
|
export const Neutral: React.FC<NeutralProps> = ({ color, boxSize }) => {
|
|
13
|
-
return
|
|
13
|
+
return (
|
|
14
|
+
<NeutralIcon width={boxSize} height={boxSize} fill={color || '#3C3C43'} />
|
|
15
|
+
);
|
|
14
16
|
};
|
|
@@ -9,5 +9,5 @@ export interface PageProps {
|
|
|
9
9
|
* A functional React component utilized to render the `Page` icon component
|
|
10
10
|
*/
|
|
11
11
|
export const Page: React.FC<PageProps> = ({ boxSize }) => {
|
|
12
|
-
return <PageIcon boxSize={boxSize} />;
|
|
12
|
+
return <PageIcon width={boxSize} height={boxSize} />;
|
|
13
13
|
};
|
|
@@ -9,5 +9,5 @@ export interface PositiveProps {
|
|
|
9
9
|
* A functional React component utilized to render the `Positive` icon component
|
|
10
10
|
*/
|
|
11
11
|
export const Positive: React.FC<PositiveProps> = ({ boxSize }) => {
|
|
12
|
-
return <PositiveIcon boxSize={boxSize} />;
|
|
12
|
+
return <PositiveIcon width={boxSize} height={boxSize} />;
|
|
13
13
|
};
|
|
@@ -9,5 +9,5 @@ export interface QuestionProps {
|
|
|
9
9
|
* A functional React component utilized to render the `Question` icon component
|
|
10
10
|
*/
|
|
11
11
|
export const Question: React.FC<QuestionProps> = ({ boxSize }) => {
|
|
12
|
-
return <QuestionIcon boxSize={boxSize} />;
|
|
12
|
+
return <QuestionIcon width={boxSize} height={boxSize} />;
|
|
13
13
|
};
|
|
@@ -9,5 +9,5 @@ export interface SearchProps {
|
|
|
9
9
|
* A functional React component utilized to render the `Search` icon component
|
|
10
10
|
*/
|
|
11
11
|
export const Search: React.FC<SearchProps> = ({ boxSize }) => {
|
|
12
|
-
return <SearchIcon boxSize={boxSize} />;
|
|
12
|
+
return <SearchIcon width={boxSize} height={boxSize} />;
|
|
13
13
|
};
|
|
@@ -9,5 +9,5 @@ export interface ServicesProps {
|
|
|
9
9
|
* A functional React component utilized to render the `Services` icon component
|
|
10
10
|
*/
|
|
11
11
|
export const Services: React.FC<ServicesProps> = ({ boxSize }) => {
|
|
12
|
-
return <ServicesIcon boxSize={boxSize} />;
|
|
12
|
+
return <ServicesIcon width={boxSize} height={boxSize} />;
|
|
13
13
|
};
|
|
@@ -10,5 +10,7 @@ export interface SettingsProps {
|
|
|
10
10
|
* A functional React component utilized to render the `Settings` icon component
|
|
11
11
|
*/
|
|
12
12
|
export const Settings: React.FC<SettingsProps> = ({ boxSize }) => {
|
|
13
|
-
return
|
|
13
|
+
return (
|
|
14
|
+
<SettingsIcon width={boxSize} height={boxSize} fill={colors.fill.action} />
|
|
15
|
+
);
|
|
14
16
|
};
|
|
@@ -9,5 +9,5 @@ export interface TableFillProps {
|
|
|
9
9
|
* A functional React component utilized to render the `TableFill` icon component
|
|
10
10
|
*/
|
|
11
11
|
export const TableFill: React.FC<TableFillProps> = ({ boxSize }) => {
|
|
12
|
-
return <TableFillIcon boxSize={boxSize} />;
|
|
12
|
+
return <TableFillIcon width={boxSize} height={boxSize} />;
|
|
13
13
|
};
|
|
@@ -9,5 +9,5 @@ export interface TableOutlineProps {
|
|
|
9
9
|
* A functional React component utilized to render the `TableOutline` icon component
|
|
10
10
|
*/
|
|
11
11
|
export const TableOutline: React.FC<TableOutlineProps> = ({ boxSize }) => {
|
|
12
|
-
return <TableOutlineIcon boxSize={boxSize} />;
|
|
12
|
+
return <TableOutlineIcon width={boxSize} height={boxSize} />;
|
|
13
13
|
};
|
|
@@ -6,5 +6,5 @@ import { IconProps } from '..';
|
|
|
6
6
|
* A functional React component utilized to render the `Task` icon component
|
|
7
7
|
*/
|
|
8
8
|
export const Task: React.FC<IconProps> = ({ boxSize }) => {
|
|
9
|
-
return <TaskIcon boxSize={boxSize} />;
|
|
9
|
+
return <TaskIcon width={boxSize} height={boxSize} />;
|
|
10
10
|
};
|
|
@@ -9,5 +9,5 @@ export interface TrashProps {
|
|
|
9
9
|
* A functional React component utilized to render the `Trash` icon component
|
|
10
10
|
*/
|
|
11
11
|
export const Trash: React.FC<TrashProps> = ({ boxSize }) => {
|
|
12
|
-
return <TrashIcon boxSize={boxSize} />;
|
|
12
|
+
return <TrashIcon width={boxSize} height={boxSize} />;
|
|
13
13
|
};
|
|
@@ -9,5 +9,5 @@ export interface VideoProps {
|
|
|
9
9
|
* A functional React component utilized to render the `Video` icon component
|
|
10
10
|
*/
|
|
11
11
|
export const Video: React.FC<VideoProps> = ({ boxSize }) => {
|
|
12
|
-
return <VideoIcon boxSize={boxSize} />;
|
|
12
|
+
return <VideoIcon width={boxSize} height={boxSize} />;
|
|
13
13
|
};
|
|
@@ -9,5 +9,5 @@ export interface WarningProps {
|
|
|
9
9
|
* A functional React component utilized to render the `Warning` icon component
|
|
10
10
|
*/
|
|
11
11
|
export const Warning: React.FC<WarningProps> = ({ boxSize }) => {
|
|
12
|
-
return <WarningIcon boxSize={boxSize} />;
|
|
12
|
+
return <WarningIcon width={boxSize} height={boxSize} />;
|
|
13
13
|
};
|
|
@@ -132,6 +132,7 @@ const Template: Story<InputProps<StoryFormSchema>> = args => {
|
|
|
132
132
|
isInvalid={!!form.formState.errors['prop5']?.message}
|
|
133
133
|
errorText={form.formState.errors['prop5']?.message}
|
|
134
134
|
name="prop5"
|
|
135
|
+
loadingOptions={true}
|
|
135
136
|
/>
|
|
136
137
|
<Input
|
|
137
138
|
{...args}
|
|
@@ -206,6 +207,14 @@ const Template: Story<InputProps<StoryFormSchema>> = args => {
|
|
|
206
207
|
name="prop4"
|
|
207
208
|
defaultValue={'value1'}
|
|
208
209
|
/>
|
|
210
|
+
<Input
|
|
211
|
+
{...args}
|
|
212
|
+
inputType="select"
|
|
213
|
+
setValue={form.setValue}
|
|
214
|
+
name="prop4"
|
|
215
|
+
defaultValue={'value1'}
|
|
216
|
+
loadingOptions={true}
|
|
217
|
+
/>
|
|
209
218
|
<Input
|
|
210
219
|
{...args}
|
|
211
220
|
inputType="select"
|