@onereach/ui-components 3.0.4-beta.2500.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/dist/bundled/v2/OrDatePicker-19e467e2.js +330 -0
- package/dist/bundled/v2/OrDateTimePicker-1011dc69.js +440 -0
- package/dist/bundled/v2/OrDateTimePickerMonthSelect-9e64d257.js +408 -0
- package/dist/bundled/v2/OrDateTimePickerPopoverHeader-c8672c0d.js +239 -0
- package/dist/bundled/v2/OrDateTimePickerTimeSelect-158d717b.js +179 -0
- package/dist/bundled/v2/OrTimePicker-1b3a758a.js +318 -0
- package/dist/bundled/v2/components/index.d.ts +2 -0
- package/dist/bundled/v2/components/index.js +7 -2
- package/dist/bundled/v2/components/or-date-picker-v3/OrDatePicker.vue.d.ts +183 -0
- package/dist/bundled/v2/components/or-date-picker-v3/index.d.ts +2 -0
- package/dist/bundled/v2/components/or-date-picker-v3/index.js +31 -0
- package/dist/bundled/v2/components/or-date-picker-v3/props.d.ts +1 -0
- package/dist/bundled/v2/components/or-date-picker-v3/styles.d.ts +2 -0
- package/dist/bundled/v2/components/or-date-time-picker-v3/index.js +7 -5
- package/dist/bundled/v2/components/or-time-picker-v3/OrTimePicker.vue.d.ts +183 -0
- package/dist/bundled/v2/components/or-time-picker-v3/index.d.ts +2 -0
- package/dist/bundled/v2/components/or-time-picker-v3/index.js +29 -0
- package/dist/bundled/v2/components/or-time-picker-v3/props.d.ts +1 -0
- package/dist/bundled/v2/components/or-time-picker-v3/styles.d.ts +2 -0
- package/dist/bundled/v2/index.js +7 -2
- package/dist/bundled/v3/OrDatePicker.vue_vue_type_script_lang-8eafbe6b.js +177 -0
- package/dist/bundled/v3/OrDateTimePicker.vue_vue_type_script_lang-b2a9ef8d.js +226 -0
- package/dist/bundled/v3/OrDateTimePickerMonthSelect-8989be5a.js +341 -0
- package/dist/bundled/v3/OrDateTimePickerPopoverHeader-caffcc00.js +162 -0
- package/dist/bundled/v3/OrDateTimePickerTimeSelect-e3a89bed.js +148 -0
- package/dist/bundled/v3/OrTimePicker.vue_vue_type_script_lang-f46eb37f.js +176 -0
- package/dist/bundled/v3/components/index.d.ts +2 -0
- package/dist/bundled/v3/components/index.js +8 -3
- package/dist/bundled/v3/components/or-date-picker-v3/OrDatePicker.vue.d.ts +183 -0
- package/dist/bundled/v3/components/or-date-picker-v3/index.d.ts +2 -0
- package/dist/bundled/v3/components/or-date-picker-v3/index.js +37 -0
- package/dist/bundled/v3/components/or-date-picker-v3/props.d.ts +1 -0
- package/dist/bundled/v3/components/or-date-picker-v3/styles.d.ts +2 -0
- package/dist/bundled/v3/components/or-date-time-picker-v3/index.js +7 -4
- package/dist/bundled/v3/components/or-time-picker-v3/OrTimePicker.vue.d.ts +183 -0
- package/dist/bundled/v3/components/or-time-picker-v3/index.d.ts +2 -0
- package/dist/bundled/v3/components/or-time-picker-v3/index.js +33 -0
- package/dist/bundled/v3/components/or-time-picker-v3/props.d.ts +1 -0
- package/dist/bundled/v3/components/or-time-picker-v3/styles.d.ts +2 -0
- package/dist/bundled/v3/index.js +629 -402
- package/dist/esm/v2/OrDatePicker-454f5267.js +329 -0
- package/dist/esm/v2/OrDateTimePicker-3f533d0c.js +439 -0
- package/dist/esm/v2/OrDateTimePickerMonthSelect-380d9c90.js +406 -0
- package/dist/esm/v2/OrDateTimePickerPopoverHeader-e11d3222.js +235 -0
- package/dist/esm/v2/OrDateTimePickerTimeSelect-83dd1e81.js +177 -0
- package/dist/esm/v2/OrTimePicker-f23c8577.js +317 -0
- package/dist/esm/v2/components/index.d.ts +2 -0
- package/dist/esm/v2/components/index.js +8 -3
- package/dist/esm/v2/components/or-date-picker-v3/OrDatePicker.vue.d.ts +183 -0
- package/dist/esm/v2/components/or-date-picker-v3/index.d.ts +2 -0
- package/dist/esm/v2/components/or-date-picker-v3/index.js +29 -0
- package/dist/esm/v2/components/or-date-picker-v3/props.d.ts +1 -0
- package/dist/esm/v2/components/or-date-picker-v3/styles.d.ts +2 -0
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +4 -2
- package/dist/esm/v2/components/or-time-picker-v3/OrTimePicker.vue.d.ts +183 -0
- package/dist/esm/v2/components/or-time-picker-v3/index.d.ts +2 -0
- package/dist/esm/v2/components/or-time-picker-v3/index.js +27 -0
- package/dist/esm/v2/components/or-time-picker-v3/props.d.ts +1 -0
- package/dist/esm/v2/components/or-time-picker-v3/styles.d.ts +2 -0
- package/dist/esm/v2/index.js +8 -3
- package/dist/esm/v3/OrDatePicker-390f7f11.js +288 -0
- package/dist/esm/v3/OrDateTimePicker-54db4170.js +390 -0
- package/dist/esm/v3/OrDateTimePickerMonthSelect-709b673d.js +338 -0
- package/dist/esm/v3/OrDateTimePickerPopoverHeader-c771a251.js +161 -0
- package/dist/esm/v3/OrDateTimePickerTimeSelect-2c8a7f9c.js +148 -0
- package/dist/esm/v3/OrTimePicker-362ca566.js +282 -0
- package/dist/esm/v3/components/index.d.ts +2 -0
- package/dist/esm/v3/components/index.js +7 -2
- package/dist/esm/v3/components/or-date-picker-v3/OrDatePicker.vue.d.ts +183 -0
- package/dist/esm/v3/components/or-date-picker-v3/index.d.ts +2 -0
- package/dist/esm/v3/components/or-date-picker-v3/index.js +27 -0
- package/dist/esm/v3/components/or-date-picker-v3/props.d.ts +1 -0
- package/dist/esm/v3/components/or-date-picker-v3/styles.d.ts +2 -0
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +4 -2
- package/dist/esm/v3/components/or-time-picker-v3/OrTimePicker.vue.d.ts +183 -0
- package/dist/esm/v3/components/or-time-picker-v3/index.d.ts +2 -0
- package/dist/esm/v3/components/or-time-picker-v3/index.js +25 -0
- package/dist/esm/v3/components/or-time-picker-v3/props.d.ts +1 -0
- package/dist/esm/v3/components/or-time-picker-v3/styles.d.ts +2 -0
- package/dist/esm/v3/index.js +7 -2
- package/package.json +2 -2
- package/src/components/index.ts +2 -0
- 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-error-v3/OrError.docs.mdx → or-date-picker-v3/OrDatePicker.docs.mdx} +1 -1
- package/src/components/or-date-picker-v3/OrDatePicker.stories3.ts +160 -0
- package/src/components/or-date-picker-v3/OrDatePicker.vue +308 -0
- package/src/components/or-date-picker-v3/index.ts +2 -0
- package/src/components/or-date-picker-v3/props.ts +1 -0
- package/src/components/or-date-picker-v3/styles.ts +12 -0
- package/src/components/or-date-time-picker-v3/OrDateTimePicker.stories3.ts +1 -1
- package/src/components/or-date-time-picker-v3/OrDateTimePicker.vue +0 -34
- 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-hint-v3/OrHint.docs.mdx → or-time-picker-v3/OrTimePicker.docs.mdx} +1 -1
- package/src/components/or-time-picker-v3/OrTimePicker.stories3.ts +160 -0
- package/src/components/or-time-picker-v3/OrTimePicker.vue +302 -0
- package/src/components/or-time-picker-v3/index.ts +2 -0
- package/src/components/or-time-picker-v3/props.ts +1 -0
- package/src/components/or-time-picker-v3/styles.ts +12 -0
- package/dist/bundled/v2/OrDateTimePicker-5a379f88.js +0 -1245
- package/dist/bundled/v3/OrDateTimePicker.vue_vue_type_script_lang-77c42110.js +0 -855
- package/dist/esm/v2/OrDateTimePicker-9b277e74.js +0 -1238
- package/dist/esm/v3/OrDateTimePicker-46b452b3.js +0 -1021
- package/src/components/or-error-v3/OrError.stories3.ts +0 -77
- 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
|
@@ -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
|
-
};
|