@onereach/ui-components 3.0.4-beta.2502.0 → 3.0.4-beta.2504.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.
- package/package.json +2 -2
- package/src/components/or-checkbox-v3/OrCheckbox.stories3.ts +1 -1
- package/src/components/or-combined-input-v3/OrCombinedInput.stories3.ts +1 -1
- package/src/components/or-date-picker-v3/OrDatePicker.stories3.ts +1 -1
- package/src/components/or-date-time-picker-v3/OrDateTimePicker.stories3.ts +1 -1
- package/src/components/or-inline-input-v3/OrInlineInput.stories3.ts +1 -1
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.stories3.ts +1 -1
- package/src/components/or-input-v3/OrInput.stories3.ts +2 -2
- package/src/components/or-radio-v3/OrRadio.stories3.ts +1 -1
- package/src/components/or-segmented-control-v3/OrSegmentedControl.stories3.ts +1 -1
- package/src/components/or-select-v3/OrSelect.stories3.ts +1 -1
- package/src/components/or-switch-v3/OrSwitch.stories3.ts +1 -1
- package/src/components/or-textarea-v3/OrTextarea.stories3.ts +1 -1
- package/src/components/or-time-picker-v3/OrTimePicker.stories3.ts +1 -1
- package/src/components/or-error-v3/OrError.docs.mdx +0 -7
- package/src/components/or-error-v3/OrError.stories3.ts +0 -77
- package/src/components/or-hint-v3/OrHint.docs.mdx +0 -7
- package/src/components/or-hint-v3/OrHint.stories3.ts +0 -77
- package/src/components/or-inline-input-box-v3/OrInlineInputBox.docs.mdx +0 -3
- package/src/components/or-inline-input-box-v3/OrInlineInputBox.stories3.ts +0 -67
- package/src/components/or-input-box-v3/OrInputBox.docs.mdx +0 -3
- package/src/components/or-input-box-v3/OrInputBox.stories3.ts +0 -80
- package/src/components/or-label-v3/OrLabel.docs.mdx +0 -11
- package/src/components/or-label-v3/OrLabel.stories3.ts +0 -91
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "3.0.4-beta.
|
|
3
|
+
"version": "3.0.4-beta.2504.0",
|
|
4
4
|
"description": "Vue components library for v2/3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/auto/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@codemirror/lang-json": "6.0.0",
|
|
39
39
|
"@codemirror/lang-markdown": "6.0.1",
|
|
40
40
|
"@floating-ui/dom": "0.3.1",
|
|
41
|
-
"@onereach/styles": "^2.37.4-beta.
|
|
41
|
+
"@onereach/styles": "^2.37.4-beta.2504.0",
|
|
42
42
|
"@splidejs/splide": "4.0.6",
|
|
43
43
|
"@types/lodash": "4.14.173",
|
|
44
44
|
"@types/sortablejs": "1.10.7",
|
|
@@ -8,7 +8,7 @@ import OrDateTimePicker from './OrDateTimePicker.vue';
|
|
|
8
8
|
import { DateTimePickerSize } from './props';
|
|
9
9
|
|
|
10
10
|
export default {
|
|
11
|
-
title: 'Components/
|
|
11
|
+
title: 'Components/Date & Time Picker',
|
|
12
12
|
component: OrDateTimePicker,
|
|
13
13
|
|
|
14
14
|
argTypes: {
|
|
@@ -5,7 +5,7 @@ import OrInlineTextareaDocs from './OrInlineTextarea.docs.mdx';
|
|
|
5
5
|
import OrInlineTextarea from './OrInlineTextarea.vue';
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
|
-
title: 'Components/
|
|
8
|
+
title: 'Components/Inline Textarea',
|
|
9
9
|
component: OrInlineTextarea,
|
|
10
10
|
|
|
11
11
|
argTypes: {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { action } from '@storybook/addon-actions';
|
|
2
2
|
import { Meta, StoryFn } from '@storybook/vue3';
|
|
3
|
+
import * as Faker from 'faker';
|
|
3
4
|
import { ref, watch } from 'vue-demi';
|
|
4
5
|
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
5
6
|
import OrInputDocs from './OrInput.docs.mdx';
|
|
6
7
|
import OrInput from './OrInput.vue';
|
|
7
8
|
import { InputSize, InputType } from './props';
|
|
8
|
-
import * as Faker from 'faker';
|
|
9
9
|
|
|
10
10
|
export default {
|
|
11
|
-
title: 'Components/
|
|
11
|
+
title: 'Components/Input',
|
|
12
12
|
component: OrInput,
|
|
13
13
|
|
|
14
14
|
argTypes: {
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
-
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
3
|
-
import OrErrorDocs from './OrError.docs.mdx';
|
|
4
|
-
import OrError from './OrError.vue';
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
title: 'Components/Forms/Parts/Error',
|
|
8
|
-
component: OrError,
|
|
9
|
-
|
|
10
|
-
argTypes: {
|
|
11
|
-
// Slots
|
|
12
|
-
default: {
|
|
13
|
-
type: {
|
|
14
|
-
name: 'string',
|
|
15
|
-
required: true,
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
control: { type: 'text' },
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
addon: {
|
|
22
|
-
type: {
|
|
23
|
-
name: 'string',
|
|
24
|
-
required: false,
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
control: { type: 'text' },
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
// Props
|
|
31
|
-
disabled: {
|
|
32
|
-
control: { type: 'boolean' },
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
parameters: {
|
|
37
|
-
layout: 'centered',
|
|
38
|
-
|
|
39
|
-
docs: {
|
|
40
|
-
page: OrErrorDocs,
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
design: {
|
|
44
|
-
type: 'figma',
|
|
45
|
-
url: 'https://www.figma.com/file/o7DdkaznUW2PtX4wiSuhhQ/Core?node-id=202%3A10',
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
} as Meta<typeof OrError>;
|
|
49
|
-
|
|
50
|
-
const Template: StoryFn<typeof OrError> = (args) => ({
|
|
51
|
-
components: {
|
|
52
|
-
OrError,
|
|
53
|
-
OrIcon,
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
setup() {
|
|
57
|
-
return { args };
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
template: `
|
|
61
|
-
<OrError v-bind="args">
|
|
62
|
-
${args.default}
|
|
63
|
-
|
|
64
|
-
<template #addon>
|
|
65
|
-
${args.addon}
|
|
66
|
-
</template>
|
|
67
|
-
</OrError>
|
|
68
|
-
`,
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
export const Error = Template.bind({});
|
|
72
|
-
|
|
73
|
-
Error.args = {
|
|
74
|
-
// Slots
|
|
75
|
-
default: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
|
|
76
|
-
addon: '<OrIcon icon="info" />',
|
|
77
|
-
};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
-
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
3
|
-
import OrHintDocs from './OrHint.docs.mdx';
|
|
4
|
-
import OrHint from './OrHint.vue';
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
title: 'Components/Forms/Parts/Hint',
|
|
8
|
-
component: OrHint,
|
|
9
|
-
|
|
10
|
-
argTypes: {
|
|
11
|
-
// Slots
|
|
12
|
-
default: {
|
|
13
|
-
type: {
|
|
14
|
-
name: 'string',
|
|
15
|
-
required: true,
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
control: { type: 'text' },
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
addon: {
|
|
22
|
-
type: {
|
|
23
|
-
name: 'string',
|
|
24
|
-
required: false,
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
control: { type: 'text' },
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
// Props
|
|
31
|
-
disabled: {
|
|
32
|
-
control: { type: 'boolean' },
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
parameters: {
|
|
37
|
-
layout: 'centered',
|
|
38
|
-
|
|
39
|
-
docs: {
|
|
40
|
-
page: OrHintDocs,
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
design: {
|
|
44
|
-
type: 'figma',
|
|
45
|
-
url: 'https://www.figma.com/file/o7DdkaznUW2PtX4wiSuhhQ/Core?node-id=202%3A10',
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
} as Meta<typeof OrHint>;
|
|
49
|
-
|
|
50
|
-
const Template: StoryFn<typeof OrHint> = (args) => ({
|
|
51
|
-
components: {
|
|
52
|
-
OrHint,
|
|
53
|
-
OrIcon,
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
setup() {
|
|
57
|
-
return { args };
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
template: `
|
|
61
|
-
<OrHint v-bind="args">
|
|
62
|
-
${args.default}
|
|
63
|
-
|
|
64
|
-
<template #addon>
|
|
65
|
-
${args.addon}
|
|
66
|
-
</template>
|
|
67
|
-
</OrHint>
|
|
68
|
-
`,
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
export const Hint = Template.bind({});
|
|
72
|
-
|
|
73
|
-
Hint.args = {
|
|
74
|
-
// Slots
|
|
75
|
-
default: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
|
|
76
|
-
addon: '<OrIcon icon="info" />',
|
|
77
|
-
};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
-
import OrInlineInputBoxDocs from './OrInlineInputBox.docs.mdx';
|
|
3
|
-
import OrInlineInputBox from './OrInlineInputBox.vue';
|
|
4
|
-
import { InlineInputBoxSize } from './props';
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
title: 'Components/Forms/Parts/Inline Input Box',
|
|
8
|
-
component: OrInlineInputBox,
|
|
9
|
-
|
|
10
|
-
argTypes: {
|
|
11
|
-
// Slots
|
|
12
|
-
default: {
|
|
13
|
-
type: {
|
|
14
|
-
name: 'string',
|
|
15
|
-
required: true,
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
control: { type: 'text' },
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
// Props
|
|
22
|
-
size: {
|
|
23
|
-
control: { type: 'select' },
|
|
24
|
-
options: Object.values(InlineInputBoxSize),
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
invalid: {
|
|
28
|
-
control: { type: 'boolean' },
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
parameters: {
|
|
33
|
-
layout: 'centered',
|
|
34
|
-
|
|
35
|
-
docs: {
|
|
36
|
-
page: OrInlineInputBoxDocs,
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
design: {
|
|
40
|
-
type: 'figma',
|
|
41
|
-
url: 'https://www.figma.com/file/o7DdkaznUW2PtX4wiSuhhQ/Core?node-id=761%3A3372',
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
} as Meta<typeof OrInlineInputBox>;
|
|
45
|
-
|
|
46
|
-
const Template: StoryFn<typeof OrInlineInputBox> = (args) => ({
|
|
47
|
-
components: {
|
|
48
|
-
OrInlineInputBox,
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
setup() {
|
|
52
|
-
return { args };
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
template: `
|
|
56
|
-
<OrInlineInputBox v-bind="args">
|
|
57
|
-
${args.default}
|
|
58
|
-
</OrInlineInputBox>
|
|
59
|
-
`,
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
export const InlineInputBox = Template.bind({});
|
|
63
|
-
|
|
64
|
-
InlineInputBox.args = {
|
|
65
|
-
// Slots
|
|
66
|
-
default: 'Input',
|
|
67
|
-
};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
-
import OrInputBoxDocs from './OrInputBox.docs.mdx';
|
|
3
|
-
import OrInputBox from './OrInputBox.vue';
|
|
4
|
-
import { InputBoxSize, InputBoxVariant } from './props';
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
title: 'Components/Forms/Parts/Input Box',
|
|
8
|
-
component: OrInputBox,
|
|
9
|
-
|
|
10
|
-
argTypes: {
|
|
11
|
-
// Slots
|
|
12
|
-
default: {
|
|
13
|
-
type: {
|
|
14
|
-
name: 'string',
|
|
15
|
-
required: true,
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
control: { type: 'text' },
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
// Props
|
|
22
|
-
variant: {
|
|
23
|
-
control: { type: 'select' },
|
|
24
|
-
options: Object.values(InputBoxVariant),
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
size: {
|
|
28
|
-
control: { type: 'select' },
|
|
29
|
-
options: Object.values(InputBoxSize),
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
invalid: {
|
|
33
|
-
control: { type: 'boolean' },
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
readonly: {
|
|
37
|
-
control: { type: 'boolean' },
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
disabled: {
|
|
41
|
-
control: { type: 'boolean' },
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
parameters: {
|
|
46
|
-
layout: 'centered',
|
|
47
|
-
|
|
48
|
-
docs: {
|
|
49
|
-
page: OrInputBoxDocs,
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
design: {
|
|
53
|
-
type: 'figma',
|
|
54
|
-
url: 'https://www.figma.com/file/o7DdkaznUW2PtX4wiSuhhQ/Core?node-id=202%3A10',
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
} as Meta<typeof OrInputBox>;
|
|
58
|
-
|
|
59
|
-
const Template: StoryFn<typeof OrInputBox> = (args) => ({
|
|
60
|
-
components: {
|
|
61
|
-
OrInputBox,
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
setup() {
|
|
65
|
-
return { args };
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
template: `
|
|
69
|
-
<OrInputBox v-bind="args">
|
|
70
|
-
${args.default}
|
|
71
|
-
</OrInputBox>
|
|
72
|
-
`,
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
export const InputBox = Template.bind({});
|
|
76
|
-
|
|
77
|
-
InputBox.args = {
|
|
78
|
-
// Slots
|
|
79
|
-
default: 'Input',
|
|
80
|
-
};
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
-
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
3
|
-
import OrLabelDocs from './OrLabel.docs.mdx';
|
|
4
|
-
import OrLabel from './OrLabel.vue';
|
|
5
|
-
import { LabelVariant } from './props';
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
title: 'Components/Forms/Parts/Label',
|
|
9
|
-
component: OrLabel,
|
|
10
|
-
|
|
11
|
-
argTypes: {
|
|
12
|
-
// Slots
|
|
13
|
-
default: {
|
|
14
|
-
type: {
|
|
15
|
-
name: 'string',
|
|
16
|
-
required: true,
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
control: { type: 'text' },
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
addon: {
|
|
23
|
-
type: {
|
|
24
|
-
name: 'string',
|
|
25
|
-
required: false,
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
control: { type: 'text' },
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
// Props
|
|
32
|
-
controlId: {
|
|
33
|
-
control: { type: 'text' },
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
variant: {
|
|
37
|
-
control: { type: 'select' },
|
|
38
|
-
options: Object.values(LabelVariant),
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
required: {
|
|
42
|
-
control: { type: 'boolean' },
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
disabled: {
|
|
46
|
-
control: { type: 'boolean' },
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
parameters: {
|
|
51
|
-
layout: 'centered',
|
|
52
|
-
|
|
53
|
-
docs: {
|
|
54
|
-
page: OrLabelDocs,
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
design: {
|
|
58
|
-
type: 'figma',
|
|
59
|
-
url: 'https://www.figma.com/file/o7DdkaznUW2PtX4wiSuhhQ/Core?node-id=202%3A10',
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
} as Meta<typeof OrLabel>;
|
|
63
|
-
|
|
64
|
-
const Template: StoryFn<typeof OrLabel> = (args) => ({
|
|
65
|
-
components: {
|
|
66
|
-
OrIcon,
|
|
67
|
-
OrLabel,
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
setup() {
|
|
71
|
-
return { args };
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
template: `
|
|
75
|
-
<OrLabel v-bind="args">
|
|
76
|
-
${args.default}
|
|
77
|
-
|
|
78
|
-
<template #addon>
|
|
79
|
-
${args.addon}
|
|
80
|
-
</template>
|
|
81
|
-
</OrLabel>
|
|
82
|
-
`,
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
export const Label = Template.bind({});
|
|
86
|
-
|
|
87
|
-
Label.args = {
|
|
88
|
-
// Slots
|
|
89
|
-
default: 'Input Label',
|
|
90
|
-
addon: '<OrIcon icon="info" />',
|
|
91
|
-
};
|