@teammodlr/ui-kit 2.3.10 → 2.3.14
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/env.d.ts +1 -1
- package/lib/components/colorpicker/ColorPicker.vue.d.ts +11 -1
- package/lib/index.cjs.js +3 -3
- package/lib/index.es.js +324 -318
- package/lib/nuxt.js +35 -35
- package/lib/nuxt.plugin.js +8 -8
- package/package.json +1 -1
- package/src/__storybook__/argTypes.ts +53 -53
- package/src/__storybook__/createStory.ts +15 -15
- package/src/__storybook__/index.ts +2 -2
- package/src/components/avatar/Avatar.vue +110 -110
- package/src/components/avatar/examples/basic.vue +6 -6
- package/src/components/avatar/examples/custom-size.vue +7 -7
- package/src/components/avatar/examples/index.stories.ts +25 -25
- package/src/components/avatar/examples/index.ts +5 -5
- package/src/components/avatar/examples/sizes.vue +33 -33
- package/src/components/avatar/examples/slots.vue +8 -8
- package/src/components/avatar/examples/variants.vue +18 -18
- package/src/components/avatar/style/Avatar.css.ts +92 -92
- package/src/components/avatar/style/index.ts +1 -1
- package/src/components/avatargroup/AvatarGroup.vue +72 -72
- package/src/components/avatargroup/examples/basic.vue +37 -37
- package/src/components/avatargroup/examples/index.stories.ts +19 -19
- package/src/components/avatargroup/examples/index.ts +1 -1
- package/src/components/avatargroup/style/AvatarGroup.css.ts +26 -26
- package/src/components/avatargroup/style/index.ts +1 -1
- package/src/components/avatargroup/symbol.ts +17 -17
- package/src/components/badge/Badge.vue +43 -43
- package/src/components/badge/examples/basic.vue +10 -10
- package/src/components/badge/examples/index.stories.ts +19 -19
- package/src/components/badge/examples/index.ts +1 -1
- package/src/components/badge/style/Badge.css.ts +135 -135
- package/src/components/badge/style/index.ts +1 -1
- package/src/components/breadcrumb/Breadcrumb.vue +54 -54
- package/src/components/breadcrumb/BreadcrumbItem.vue +72 -72
- package/src/components/breadcrumb/examples/basic.vue +7 -7
- package/src/components/breadcrumb/examples/index.stories.ts +16 -16
- package/src/components/breadcrumb/examples/index.ts +1 -1
- package/src/components/breadcrumb/style/Breadcrumb.css.ts +40 -40
- package/src/components/breadcrumb/style/index.ts +1 -1
- package/src/components/breadcrumb/symbol.ts +18 -18
- package/src/components/button/Button.vue +203 -203
- package/src/components/button/examples/basic.vue +3 -3
- package/src/components/button/examples/disabled.vue +3 -3
- package/src/components/button/examples/icon-left.vue +12 -12
- package/src/components/button/examples/icon.vue +9 -9
- package/src/components/button/examples/index.stories.ts +37 -37
- package/src/components/button/examples/index.ts +9 -9
- package/src/components/button/examples/link.vue +3 -3
- package/src/components/button/examples/rounded.vue +7 -7
- package/src/components/button/examples/size.vue +7 -7
- package/src/components/button/examples/variants-secondary.vue +10 -10
- package/src/components/button/examples/variants.vue +10 -10
- package/src/components/button/style/index.ts +1 -1
- package/src/components/buttongroup/ButtonGroup.vue +36 -36
- package/src/components/buttongroup/examples/basic.vue +9 -9
- package/src/components/buttongroup/examples/icon-group.vue +21 -21
- package/src/components/buttongroup/examples/index.stories.ts +17 -17
- package/src/components/buttongroup/examples/index.ts +2 -2
- package/src/components/buttongroup/style/ButtonGroup.css.ts +42 -42
- package/src/components/buttongroup/style/index.ts +1 -1
- package/src/components/buttongroup/symbol.ts +9 -9
- package/src/components/checkbox/Checkbox.vue +149 -149
- package/src/components/checkbox/examples/basic.vue +9 -9
- package/src/components/checkbox/examples/index.stories.ts +16 -16
- package/src/components/checkbox/examples/index.ts +2 -2
- package/src/components/checkbox/examples/slot.vue +14 -14
- package/src/components/checkbox/style/Checkbox.css.ts +178 -178
- package/src/components/checkbox/style/index.ts +1 -1
- package/src/components/colorpicker/ColorPicker.vue +15 -4
- package/src/components/colorpicker/examples/index.stories.ts +12 -12
- package/src/components/colorpicker/examples/index.ts +1 -1
- package/src/components/colorpicker/style/index.ts +1 -1
- package/src/components/configprovider/ConfigProvider.vue +38 -38
- package/src/components/configprovider/types.ts +3 -3
- package/src/components/confirm/Confirm.vue +65 -65
- package/src/components/confirm/examples/basic.vue +48 -48
- package/src/components/confirm/examples/index.stories.ts +26 -26
- package/src/components/confirm/examples/index.ts +1 -1
- package/src/components/confirm/examples/wrapper.vue +9 -9
- package/src/components/confirm/props.ts +24 -24
- package/src/components/confirm/providerProps.ts +10 -10
- package/src/components/confirm/types.ts +33 -33
- package/src/components/confirm/useConfirm.ts +14 -14
- package/src/components/dialog/examples/basic.vue +23 -23
- package/src/components/dialog/examples/index.stories.ts +14 -14
- package/src/components/dialog/examples/index.ts +1 -1
- package/src/components/dialog/style/index.ts +1 -1
- package/src/components/dialogprovider/examples/index.stories.ts +26 -26
- package/src/components/dropdown/DropdownList.vue +20 -20
- package/src/components/dropdown/examples/index.stories.ts +26 -26
- package/src/components/dropdown/examples/index.ts +3 -3
- package/src/components/dropdown/hooks.ts +30 -30
- package/src/components/dropdown/style/index.ts +1 -1
- package/src/components/dropdown/symbol.ts +9 -9
- package/src/components/form/Form.vue +153 -153
- package/src/components/form/examples/basic.vue +75 -75
- package/src/components/form/examples/index.stories.ts +23 -23
- package/src/components/form/examples/index.ts +1 -1
- package/src/components/form/style/Form.css.ts +28 -28
- package/src/components/form/style/index.ts +2 -2
- package/src/components/form/symbol.ts +16 -16
- package/src/components/image/Image.vue +71 -71
- package/src/components/image/examples/basic.vue +5 -5
- package/src/components/image/examples/index.stories.ts +10 -10
- package/src/components/image/examples/index.ts +1 -1
- package/src/components/input/Input.vue +233 -233
- package/src/components/input/examples/basic.vue +21 -21
- package/src/components/input/examples/index.stories.ts +26 -26
- package/src/components/input/examples/index.ts +6 -6
- package/src/components/input/examples/left-icon.vue +9 -9
- package/src/components/input/examples/prefix.vue +5 -5
- package/src/components/input/examples/right-icon.vue +9 -9
- package/src/components/input/examples/sizes.vue +9 -9
- package/src/components/input/examples/suffix.vue +7 -7
- package/src/components/input/style/Input.css.ts +294 -294
- package/src/components/input/style/index.ts +1 -1
- package/src/components/link/Link.vue +53 -53
- package/src/components/link/examples/basic.vue +3 -3
- package/src/components/link/examples/index.stories.ts +15 -15
- package/src/components/link/examples/index.ts +1 -1
- package/src/components/messageprovider/Message.vue +135 -135
- package/src/components/messageprovider/MessageProvider.vue +152 -152
- package/src/components/messageprovider/examples/basic.vue +70 -70
- package/src/components/messageprovider/examples/index.stories.ts +26 -26
- package/src/components/messageprovider/examples/index.ts +2 -2
- package/src/components/messageprovider/examples/update.vue +34 -34
- package/src/components/messageprovider/examples/wrapper.vue +9 -9
- package/src/components/messageprovider/style/Message.css.ts +111 -111
- package/src/components/messageprovider/style/index.ts +1 -1
- package/src/components/messageprovider/types.ts +56 -56
- package/src/components/messageprovider/useMessage.ts +14 -14
- package/src/components/modal/Modal.vue +310 -310
- package/src/components/modal/examples/basic.vue +80 -80
- package/src/components/modal/examples/index.stories.ts +16 -16
- package/src/components/modal/examples/index.ts +3 -3
- package/src/components/modal/examples/modal-form.vue +99 -99
- package/src/components/modal/examples/sidebar.vue +79 -79
- package/src/components/modal/style/Modal.css.ts +318 -318
- package/src/components/modal/style/index.ts +1 -1
- package/src/components/pagination/Pagination.vue +296 -296
- package/src/components/pagination/examples/basic.vue +17 -17
- package/src/components/pagination/examples/index.stories.ts +11 -11
- package/src/components/pagination/examples/index.ts +1 -1
- package/src/components/pagination/style/Pagination.css.ts +93 -93
- package/src/components/pagination/style/index.ts +1 -1
- package/src/components/radio/Radio.vue +136 -136
- package/src/components/radio/examples/basic.vue +8 -8
- package/src/components/radio/examples/group.vue +15 -15
- package/src/components/radio/examples/index.stories.ts +16 -16
- package/src/components/radio/examples/index.ts +2 -2
- package/src/components/radio/style/Checkbox.css.ts +130 -130
- package/src/components/radio/style/index.ts +1 -1
- package/src/components/radiobutton/RadioButton.vue +131 -131
- package/src/components/radiobutton/style/RadioButton.css.ts +189 -189
- package/src/components/radiobutton/style/index.ts +1 -1
- package/src/components/radiobuttongroup/RadioButtonGroup.vue +74 -74
- package/src/components/radiobuttongroup/examples/basic.vue +16 -16
- package/src/components/radiobuttongroup/examples/index.stories.ts +18 -18
- package/src/components/radiobuttongroup/examples/index.ts +1 -1
- package/src/components/radiobuttongroup/style/RadioButtonGroup.css.ts +37 -37
- package/src/components/radiobuttongroup/style/index.ts +1 -1
- package/src/components/radiobuttongroup/symbol.ts +12 -12
- package/src/components/renderer/examlpes/basic.vue +23 -23
- package/src/components/renderer/examlpes/index.stories.ts +14 -14
- package/src/components/renderer/examlpes/index.ts +1 -1
- package/src/components/renderer/props.ts +14 -14
- package/src/components/renderer/renderer.ts +16 -16
- package/src/components/select/Select.vue +4 -0
- package/src/components/select/examples/basic.vue +26 -26
- package/src/components/select/examples/index.stories.ts +16 -16
- package/src/components/select/examples/index.ts +3 -3
- package/src/components/select/examples/multiple.vue +21 -21
- package/src/components/select/examples/searchable.vue +20 -20
- package/src/components/select/style/index.ts +1 -1
- package/src/components/select/types.ts +27 -27
- package/src/components/skeleton/Skeleton.vue +55 -55
- package/src/components/skeleton/examples/basic.vue +3 -3
- package/src/components/skeleton/examples/index.stories.ts +13 -13
- package/src/components/skeleton/examples/index.ts +2 -2
- package/src/components/skeleton/examples/post.vue +8 -8
- package/src/components/skeleton/style/Skeleton.css.ts +72 -72
- package/src/components/skeleton/style/index.ts +2 -2
- package/src/components/slider/style/Slider.css.ts +50 -50
- package/src/components/slider/style/index.ts +1 -1
- package/src/components/switch/Switch.vue +132 -132
- package/src/components/switch/examples/basic.vue +9 -9
- package/src/components/switch/examples/index.stories.ts +15 -15
- package/src/components/switch/examples/index.ts +2 -2
- package/src/components/switch/examples/slot.vue +11 -11
- package/src/components/switch/style/index.ts +1 -1
- package/src/components/tab/examples/basic.vue +23 -23
- package/src/components/tab/examples/index.ts +2 -2
- package/src/components/tab/examples/vertical.vue +19 -19
- package/src/components/table/Table.vue +198 -198
- package/src/components/table/TableBody.vue +13 -13
- package/src/components/table/TableCell.vue +13 -13
- package/src/components/table/TableHead.vue +46 -46
- package/src/components/table/TableHeadRow.vue +15 -15
- package/src/components/table/TableRow.vue +19 -19
- package/src/components/table/examples/basic.vue +61 -61
- package/src/components/table/examples/empty.vue +44 -44
- package/src/components/table/examples/index.stories.ts +17 -17
- package/src/components/table/examples/index.ts +3 -3
- package/src/components/table/examples/selected.vue +68 -68
- package/src/components/table/style/Table.css.ts +62 -62
- package/src/components/table/style/index.ts +1 -1
- package/src/components/table/types/index.ts +6 -6
- package/src/components/tag/Tag.vue +72 -72
- package/src/components/tag/examples/basic.vue +5 -5
- package/src/components/tag/examples/index.stories.ts +16 -16
- package/src/components/tag/examples/index.ts +1 -1
- package/src/components/tag/style/Tag.css.ts +83 -83
- package/src/components/tag/style/index.ts +1 -1
- package/src/components/textarea/Textarea.vue +180 -180
- package/src/components/textarea/examples/basic.vue +8 -8
- package/src/components/textarea/examples/index.stories.ts +14 -14
- package/src/components/textarea/examples/index.ts +1 -1
- package/src/components/textarea/style/Textarea.css.ts +191 -191
- package/src/components/textarea/style/index.ts +1 -1
- package/src/components/tooltip/examples/basic.vue +5 -5
- package/src/components/tooltip/examples/index.stories.ts +17 -17
- package/src/components/tooltip/examples/index.ts +2 -2
- package/src/components/tooltip/examples/placement.vue +9 -9
- package/src/components/tooltip/style/Tooltip.css.ts +90 -90
- package/src/components/tooltip/style/index.ts +1 -1
- package/src/components/transfer/Transfer.vue +145 -145
- package/src/components/transfer/examples/basic.vue +21 -21
- package/src/components/transfer/examples/index.stories.ts +12 -12
- package/src/components/transfer/examples/index.ts +1 -1
- package/src/components/transfer/style/Transfer.css.ts +81 -81
- package/src/components/transfer/style/index.ts +1 -1
- package/src/components/tree/Tree.vue +138 -138
- package/src/components/tree/TreeNode.vue +109 -109
- package/src/components/tree/TreeNodeToggle.vue +48 -48
- package/src/components/tree/examples/basic.vue +458 -458
- package/src/components/tree/examples/index.stories.ts +12 -12
- package/src/components/tree/examples/index.ts +1 -1
- package/src/components/tree/props.ts +97 -97
- package/src/components/tree/style/Tree.css.ts +75 -75
- package/src/components/tree/style/index.ts +1 -1
- package/src/components/tree/types.ts +103 -103
- package/src/components/virtualscroll/VirtualScroll.css +13 -13
- package/src/components/virtualscroll/VirtualScroll.vue +166 -166
- package/src/components/virtualscroll/examples/basic.vue +31 -31
- package/src/components/virtualscroll/examples/index.stories.ts +11 -11
- package/src/components/virtualscroll/examples/index.ts +1 -1
- package/src/components/virtualscroll/style/VirtualScroll.css.ts +17 -17
- package/src/components/virtualscroll/style/index.ts +1 -1
- package/src/composables/element.ts +13 -13
- package/src/composables/index.ts +5 -5
- package/src/composables/useCachedUid.ts +15 -15
- package/src/composables/useEventListener.ts +19 -19
- package/src/composables/useInput.ts +151 -151
- package/src/composables/useInteractive.ts +19 -19
- package/src/composables/useIsServer.ts +7 -7
- package/src/composables/useMergedState.ts +18 -18
- package/src/composables/useMount.ts +43 -43
- package/src/composables/usePopper.ts +215 -215
- package/src/composables/useZIndex.ts +33 -33
- package/src/create.ts +38 -38
- package/src/css/components.css +16 -16
- package/src/css/index.css +4 -4
- package/src/css/transitions.css +40 -40
- package/src/css/variables.css +80 -80
- package/src/examples/cards/cards.stories.ts +9 -9
- package/src/examples/cards/sidebar.vue +262 -262
- package/src/examples/modal/modal.stories.ts +9 -9
- package/src/examples/modal/modal.vue +52 -52
- package/src/exports/nuxt.js +35 -35
- package/src/exports/nuxt.plugin.js +8 -8
- package/src/index.ts +5 -5
- package/src/install.ts +8 -8
- package/src/shims-vue.d.ts +6 -6
- package/src/styles/theme.css.ts +181 -181
- package/src/types/props.ts +21 -21
- package/src/utils/call.ts +34 -34
- package/src/utils/injection.ts +45 -45
- package/volar.d.ts +16 -16
|
@@ -1,178 +1,178 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createVar,
|
|
3
|
-
globalStyle,
|
|
4
|
-
style,
|
|
5
|
-
styleVariants
|
|
6
|
-
} from '@vanilla-extract/css';
|
|
7
|
-
import { themeVars } from '../../../styles/theme.css';
|
|
8
|
-
|
|
9
|
-
const sizes = {
|
|
10
|
-
xs: '16px',
|
|
11
|
-
sm: '18px',
|
|
12
|
-
md: '20px',
|
|
13
|
-
lg: '22px',
|
|
14
|
-
xl: '24px'
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export const vars = {
|
|
18
|
-
height: createVar(),
|
|
19
|
-
radius: createVar(),
|
|
20
|
-
backgroundColor: createVar(),
|
|
21
|
-
borderColor: createVar(),
|
|
22
|
-
color: createVar()
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export const base = style({
|
|
26
|
-
position: 'relative',
|
|
27
|
-
display: 'inline-flex',
|
|
28
|
-
alignItems: 'center',
|
|
29
|
-
cursor: 'pointer',
|
|
30
|
-
gap: themeVars.space['1.5']
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
export const checkbox = style({
|
|
34
|
-
vars: {
|
|
35
|
-
[vars.height]: sizes.sm,
|
|
36
|
-
[vars.radius]: '4px',
|
|
37
|
-
[vars.backgroundColor]: 'white',
|
|
38
|
-
[vars.borderColor]: themeVars.color.gray[300],
|
|
39
|
-
[vars.color]: 'white'
|
|
40
|
-
},
|
|
41
|
-
position: 'relative',
|
|
42
|
-
width: vars.height,
|
|
43
|
-
height: vars.height,
|
|
44
|
-
borderRadius: vars.radius,
|
|
45
|
-
border: `1px solid ${vars.borderColor}`,
|
|
46
|
-
color: vars.color,
|
|
47
|
-
cursor: 'pointer',
|
|
48
|
-
transition: `all 0.125s ${themeVars.transition.default}`,
|
|
49
|
-
backgroundColor: 'currentColor',
|
|
50
|
-
|
|
51
|
-
appearance: 'none',
|
|
52
|
-
backgroundOrigin: 'border-box',
|
|
53
|
-
display: 'inline-block',
|
|
54
|
-
flexShrink: 0,
|
|
55
|
-
userSelect: 'none',
|
|
56
|
-
outline: 'none',
|
|
57
|
-
|
|
58
|
-
selectors: {
|
|
59
|
-
['&:focus']: {
|
|
60
|
-
vars: {
|
|
61
|
-
[vars.borderColor]: themeVars.color.blue[500],
|
|
62
|
-
[vars.color]: '#FFF'
|
|
63
|
-
},
|
|
64
|
-
boxShadow: `0 0 0 2px ${themeVars.color.blue[200]}`
|
|
65
|
-
},
|
|
66
|
-
['&:checked']: {
|
|
67
|
-
vars: {
|
|
68
|
-
[vars.borderColor]: themeVars.color.blue[500],
|
|
69
|
-
[vars.color]: themeVars.color.blue[500]
|
|
70
|
-
},
|
|
71
|
-
backgroundColor: 'currentcolor',
|
|
72
|
-
backgroundPosition: '50%',
|
|
73
|
-
backgroundRepeat: 'no-repeat',
|
|
74
|
-
backgroundSize: '100% 100%',
|
|
75
|
-
borderColor: 'transparent',
|
|
76
|
-
color: vars.color,
|
|
77
|
-
backgroundImage: `url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")`
|
|
78
|
-
},
|
|
79
|
-
['&:checked:focus']: {
|
|
80
|
-
vars: {
|
|
81
|
-
[vars.borderColor]: themeVars.color.blue[500],
|
|
82
|
-
[vars.color]: themeVars.color.blue[500]
|
|
83
|
-
},
|
|
84
|
-
color: vars.color
|
|
85
|
-
},
|
|
86
|
-
['&:indeterminate']: {
|
|
87
|
-
vars: {
|
|
88
|
-
[vars.borderColor]: themeVars.color.blue[500],
|
|
89
|
-
[vars.color]: themeVars.color.blue[500]
|
|
90
|
-
},
|
|
91
|
-
backgroundColor: 'currentcolor',
|
|
92
|
-
backgroundPosition: '50%',
|
|
93
|
-
backgroundRepeat: 'no-repeat',
|
|
94
|
-
backgroundSize: '100% 100%',
|
|
95
|
-
borderColor: 'transparent',
|
|
96
|
-
color: vars.color,
|
|
97
|
-
backgroundImage: `url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E")`
|
|
98
|
-
},
|
|
99
|
-
['&:hover']: {
|
|
100
|
-
vars: {
|
|
101
|
-
[vars.borderColor]: themeVars.color.gray[400]
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
['&:disabled']: {
|
|
105
|
-
vars: {
|
|
106
|
-
[vars.borderColor]: themeVars.color.gray[300],
|
|
107
|
-
[vars.color]: themeVars.color.gray[200]
|
|
108
|
-
},
|
|
109
|
-
cursor: 'not-allowed'
|
|
110
|
-
},
|
|
111
|
-
['&:disabled:checked']: {
|
|
112
|
-
vars: {
|
|
113
|
-
[vars.borderColor]: themeVars.color.gray[400],
|
|
114
|
-
[vars.color]: themeVars.color.gray[400]
|
|
115
|
-
},
|
|
116
|
-
color: vars.color
|
|
117
|
-
},
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
export const helpMessage = style({
|
|
122
|
-
display: 'block',
|
|
123
|
-
textDecoration: 'none',
|
|
124
|
-
fontSize: themeVars.fontSize.base,
|
|
125
|
-
color: themeVars.color.gray[600],
|
|
126
|
-
wordBreak: 'break-word',
|
|
127
|
-
marginTop: themeVars.space[1.5],
|
|
128
|
-
marginLeft: `calc(${themeVars.space["8"]} + ${themeVars.space["1.5"]})`
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
export const disabled = style({
|
|
132
|
-
opacity: 0.5,
|
|
133
|
-
cursor: 'not-allowed'
|
|
134
|
-
});
|
|
135
|
-
|
|
136
|
-
export const indeterminate = style({
|
|
137
|
-
vars: {
|
|
138
|
-
[vars.borderColor]: themeVars.color.blue[500],
|
|
139
|
-
[vars.backgroundColor]: themeVars.color.blue[500]
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
|
|
143
|
-
export const label = style({
|
|
144
|
-
marginLeft: themeVars.space['0.5'],
|
|
145
|
-
fontWeight: '500',
|
|
146
|
-
display: 'inline-block',
|
|
147
|
-
fontSize: themeVars.fontSize.base,
|
|
148
|
-
wordBreak: 'break-word',
|
|
149
|
-
cursor: 'pointer'
|
|
150
|
-
});
|
|
151
|
-
|
|
152
|
-
export const size = styleVariants({
|
|
153
|
-
xs: {
|
|
154
|
-
vars: {
|
|
155
|
-
[vars.height]: sizes.xs
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
sm: {
|
|
159
|
-
vars: {
|
|
160
|
-
[vars.height]: sizes.sm
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
md: {
|
|
164
|
-
vars: {
|
|
165
|
-
[vars.height]: sizes.md
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
lg: {
|
|
169
|
-
vars: {
|
|
170
|
-
[vars.height]: sizes.lg
|
|
171
|
-
}
|
|
172
|
-
},
|
|
173
|
-
xl: {
|
|
174
|
-
vars: {
|
|
175
|
-
[vars.height]: sizes.xl
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
});
|
|
1
|
+
import {
|
|
2
|
+
createVar,
|
|
3
|
+
globalStyle,
|
|
4
|
+
style,
|
|
5
|
+
styleVariants
|
|
6
|
+
} from '@vanilla-extract/css';
|
|
7
|
+
import { themeVars } from '../../../styles/theme.css';
|
|
8
|
+
|
|
9
|
+
const sizes = {
|
|
10
|
+
xs: '16px',
|
|
11
|
+
sm: '18px',
|
|
12
|
+
md: '20px',
|
|
13
|
+
lg: '22px',
|
|
14
|
+
xl: '24px'
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const vars = {
|
|
18
|
+
height: createVar(),
|
|
19
|
+
radius: createVar(),
|
|
20
|
+
backgroundColor: createVar(),
|
|
21
|
+
borderColor: createVar(),
|
|
22
|
+
color: createVar()
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export const base = style({
|
|
26
|
+
position: 'relative',
|
|
27
|
+
display: 'inline-flex',
|
|
28
|
+
alignItems: 'center',
|
|
29
|
+
cursor: 'pointer',
|
|
30
|
+
gap: themeVars.space['1.5']
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export const checkbox = style({
|
|
34
|
+
vars: {
|
|
35
|
+
[vars.height]: sizes.sm,
|
|
36
|
+
[vars.radius]: '4px',
|
|
37
|
+
[vars.backgroundColor]: 'white',
|
|
38
|
+
[vars.borderColor]: themeVars.color.gray[300],
|
|
39
|
+
[vars.color]: 'white'
|
|
40
|
+
},
|
|
41
|
+
position: 'relative',
|
|
42
|
+
width: vars.height,
|
|
43
|
+
height: vars.height,
|
|
44
|
+
borderRadius: vars.radius,
|
|
45
|
+
border: `1px solid ${vars.borderColor}`,
|
|
46
|
+
color: vars.color,
|
|
47
|
+
cursor: 'pointer',
|
|
48
|
+
transition: `all 0.125s ${themeVars.transition.default}`,
|
|
49
|
+
backgroundColor: 'currentColor',
|
|
50
|
+
|
|
51
|
+
appearance: 'none',
|
|
52
|
+
backgroundOrigin: 'border-box',
|
|
53
|
+
display: 'inline-block',
|
|
54
|
+
flexShrink: 0,
|
|
55
|
+
userSelect: 'none',
|
|
56
|
+
outline: 'none',
|
|
57
|
+
|
|
58
|
+
selectors: {
|
|
59
|
+
['&:focus']: {
|
|
60
|
+
vars: {
|
|
61
|
+
[vars.borderColor]: themeVars.color.blue[500],
|
|
62
|
+
[vars.color]: '#FFF'
|
|
63
|
+
},
|
|
64
|
+
boxShadow: `0 0 0 2px ${themeVars.color.blue[200]}`
|
|
65
|
+
},
|
|
66
|
+
['&:checked']: {
|
|
67
|
+
vars: {
|
|
68
|
+
[vars.borderColor]: themeVars.color.blue[500],
|
|
69
|
+
[vars.color]: themeVars.color.blue[500]
|
|
70
|
+
},
|
|
71
|
+
backgroundColor: 'currentcolor',
|
|
72
|
+
backgroundPosition: '50%',
|
|
73
|
+
backgroundRepeat: 'no-repeat',
|
|
74
|
+
backgroundSize: '100% 100%',
|
|
75
|
+
borderColor: 'transparent',
|
|
76
|
+
color: vars.color,
|
|
77
|
+
backgroundImage: `url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")`
|
|
78
|
+
},
|
|
79
|
+
['&:checked:focus']: {
|
|
80
|
+
vars: {
|
|
81
|
+
[vars.borderColor]: themeVars.color.blue[500],
|
|
82
|
+
[vars.color]: themeVars.color.blue[500]
|
|
83
|
+
},
|
|
84
|
+
color: vars.color
|
|
85
|
+
},
|
|
86
|
+
['&:indeterminate']: {
|
|
87
|
+
vars: {
|
|
88
|
+
[vars.borderColor]: themeVars.color.blue[500],
|
|
89
|
+
[vars.color]: themeVars.color.blue[500]
|
|
90
|
+
},
|
|
91
|
+
backgroundColor: 'currentcolor',
|
|
92
|
+
backgroundPosition: '50%',
|
|
93
|
+
backgroundRepeat: 'no-repeat',
|
|
94
|
+
backgroundSize: '100% 100%',
|
|
95
|
+
borderColor: 'transparent',
|
|
96
|
+
color: vars.color,
|
|
97
|
+
backgroundImage: `url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E")`
|
|
98
|
+
},
|
|
99
|
+
['&:hover']: {
|
|
100
|
+
vars: {
|
|
101
|
+
[vars.borderColor]: themeVars.color.gray[400]
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
['&:disabled']: {
|
|
105
|
+
vars: {
|
|
106
|
+
[vars.borderColor]: themeVars.color.gray[300],
|
|
107
|
+
[vars.color]: themeVars.color.gray[200]
|
|
108
|
+
},
|
|
109
|
+
cursor: 'not-allowed'
|
|
110
|
+
},
|
|
111
|
+
['&:disabled:checked']: {
|
|
112
|
+
vars: {
|
|
113
|
+
[vars.borderColor]: themeVars.color.gray[400],
|
|
114
|
+
[vars.color]: themeVars.color.gray[400]
|
|
115
|
+
},
|
|
116
|
+
color: vars.color
|
|
117
|
+
},
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
export const helpMessage = style({
|
|
122
|
+
display: 'block',
|
|
123
|
+
textDecoration: 'none',
|
|
124
|
+
fontSize: themeVars.fontSize.base,
|
|
125
|
+
color: themeVars.color.gray[600],
|
|
126
|
+
wordBreak: 'break-word',
|
|
127
|
+
marginTop: themeVars.space[1.5],
|
|
128
|
+
marginLeft: `calc(${themeVars.space["8"]} + ${themeVars.space["1.5"]})`
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
export const disabled = style({
|
|
132
|
+
opacity: 0.5,
|
|
133
|
+
cursor: 'not-allowed'
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
export const indeterminate = style({
|
|
137
|
+
vars: {
|
|
138
|
+
[vars.borderColor]: themeVars.color.blue[500],
|
|
139
|
+
[vars.backgroundColor]: themeVars.color.blue[500]
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
export const label = style({
|
|
144
|
+
marginLeft: themeVars.space['0.5'],
|
|
145
|
+
fontWeight: '500',
|
|
146
|
+
display: 'inline-block',
|
|
147
|
+
fontSize: themeVars.fontSize.base,
|
|
148
|
+
wordBreak: 'break-word',
|
|
149
|
+
cursor: 'pointer'
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
export const size = styleVariants({
|
|
153
|
+
xs: {
|
|
154
|
+
vars: {
|
|
155
|
+
[vars.height]: sizes.xs
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
sm: {
|
|
159
|
+
vars: {
|
|
160
|
+
[vars.height]: sizes.sm
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
md: {
|
|
164
|
+
vars: {
|
|
165
|
+
[vars.height]: sizes.md
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
lg: {
|
|
169
|
+
vars: {
|
|
170
|
+
[vars.height]: sizes.lg
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
xl: {
|
|
174
|
+
vars: {
|
|
175
|
+
[vars.height]: sizes.xl
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Checkbox.css';
|
|
1
|
+
export * from './Checkbox.css';
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
<div :style="{ border: '1px dashed #999', padding: '8px', textAlign: 'center' }">Inherit</div>
|
|
9
9
|
</template>
|
|
10
10
|
<template v-else>
|
|
11
|
-
<!-- Regular color display -->
|
|
12
11
|
<div :class="style.referenceColor"
|
|
13
12
|
:style="{ backgroundColor: `rgba(${finalColor.r}, ${finalColor.g}, ${finalColor.b}, ${finalColor.a})` }">
|
|
14
13
|
</div>
|
|
@@ -120,6 +119,10 @@ import MInput from "../../components/input/Input.vue";
|
|
|
120
119
|
export default defineComponent({
|
|
121
120
|
name: "MColorPicker",
|
|
122
121
|
props: {
|
|
122
|
+
color: {
|
|
123
|
+
type: String,
|
|
124
|
+
default: "#FFFFFF"
|
|
125
|
+
},
|
|
123
126
|
modelValue: {
|
|
124
127
|
type: String,
|
|
125
128
|
default: "#FFFFFF"
|
|
@@ -144,7 +147,7 @@ export default defineComponent({
|
|
|
144
147
|
default: "#FFFFFF"
|
|
145
148
|
}
|
|
146
149
|
},
|
|
147
|
-
emits: ['update:modelValue'],
|
|
150
|
+
emits: ['update:modelValue', 'onColorChange'],
|
|
148
151
|
components: {
|
|
149
152
|
MSlider,
|
|
150
153
|
MInput,
|
|
@@ -161,7 +164,7 @@ export default defineComponent({
|
|
|
161
164
|
const gInput = ref("");
|
|
162
165
|
const bInput = ref("");
|
|
163
166
|
const aInput = ref("");
|
|
164
|
-
const internalValue = ref(props.modelValue);
|
|
167
|
+
const internalValue = ref(props.color || props.modelValue);
|
|
165
168
|
|
|
166
169
|
const picker = ref<HTMLElement>();
|
|
167
170
|
const wrapper = ref<HTMLElement>();
|
|
@@ -209,6 +212,7 @@ export default defineComponent({
|
|
|
209
212
|
|
|
210
213
|
const emitModelValue = () => {
|
|
211
214
|
emit('update:modelValue', hexInput.value);
|
|
215
|
+
emit('onColorChange', hexInput.value);
|
|
212
216
|
};
|
|
213
217
|
|
|
214
218
|
const setInputs = () => {
|
|
@@ -229,6 +233,13 @@ export default defineComponent({
|
|
|
229
233
|
setInputs();
|
|
230
234
|
});
|
|
231
235
|
|
|
236
|
+
watch(() => props.color, (newColor) => {
|
|
237
|
+
if (newColor && newColor !== hexInput.value) {
|
|
238
|
+
hexInput.value = newColor;
|
|
239
|
+
updateFromHex();
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
|
|
232
243
|
const updateFromHSV = (hsv: HSV, alpha: number) => {
|
|
233
244
|
position.x = hsv.s;
|
|
234
245
|
position.y = 1 - hsv.v;
|
|
@@ -360,7 +371,7 @@ export default defineComponent({
|
|
|
360
371
|
hexInput.value = RGBAToHex(parseInt(r), parseInt(g), parseInt(b), alpha);
|
|
361
372
|
|
|
362
373
|
} else {
|
|
363
|
-
hexInput.value = props.modelValue;
|
|
374
|
+
hexInput.value = props.color || props.modelValue;
|
|
364
375
|
}
|
|
365
376
|
|
|
366
377
|
updateFromHex();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import MColorPicker from '../ColorPicker.vue';
|
|
2
|
-
import { MColorBasic } from './index';
|
|
3
|
-
|
|
4
|
-
import { createStory } from '../../../__storybook__';
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
component: MColorPicker,
|
|
8
|
-
title: 'Components/Color Picker',
|
|
9
|
-
argTypes: {}
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export const Basic = createStory(MColorBasic);
|
|
1
|
+
import MColorPicker from '../ColorPicker.vue';
|
|
2
|
+
import { MColorBasic } from './index';
|
|
3
|
+
|
|
4
|
+
import { createStory } from '../../../__storybook__';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
component: MColorPicker,
|
|
8
|
+
title: 'Components/Color Picker',
|
|
9
|
+
argTypes: {}
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const Basic = createStory(MColorBasic);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as MColorBasic } from './basic.vue';
|
|
1
|
+
export { default as MColorBasic } from './basic.vue';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './ColorPicker.css';
|
|
1
|
+
export * from './ColorPicker.css';
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { createContext } from "../../utils/injection";
|
|
3
|
-
import { type Ref, toRefs } from 'vue';
|
|
4
|
-
interface ConfigProviderContextValue {
|
|
5
|
-
useId?: () => string,
|
|
6
|
-
dir?: Ref<string>
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const [injectConfigProviderContext, provideConfigProviderContext]
|
|
10
|
-
= createContext<ConfigProviderContextValue>('ConfigProvider')
|
|
11
|
-
|
|
12
|
-
export interface ConfigProviderProps {
|
|
13
|
-
useId?: () => string,
|
|
14
|
-
dir?: string
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export default {
|
|
18
|
-
name: 'ConfigProvider',
|
|
19
|
-
}
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
<script setup lang="ts">
|
|
23
|
-
|
|
24
|
-
const props = withDefaults(defineProps<ConfigProviderProps>(), {
|
|
25
|
-
useId: undefined,
|
|
26
|
-
dir: 'ltr'
|
|
27
|
-
})
|
|
28
|
-
|
|
29
|
-
const { dir } = toRefs(props)
|
|
30
|
-
|
|
31
|
-
provideConfigProviderContext({
|
|
32
|
-
useId: props.useId,
|
|
33
|
-
dir
|
|
34
|
-
})
|
|
35
|
-
</script>
|
|
36
|
-
<template>
|
|
37
|
-
<slot />
|
|
38
|
-
</template>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { createContext } from "../../utils/injection";
|
|
3
|
+
import { type Ref, toRefs } from 'vue';
|
|
4
|
+
interface ConfigProviderContextValue {
|
|
5
|
+
useId?: () => string,
|
|
6
|
+
dir?: Ref<string>
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const [injectConfigProviderContext, provideConfigProviderContext]
|
|
10
|
+
= createContext<ConfigProviderContextValue>('ConfigProvider')
|
|
11
|
+
|
|
12
|
+
export interface ConfigProviderProps {
|
|
13
|
+
useId?: () => string,
|
|
14
|
+
dir?: string
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export default {
|
|
18
|
+
name: 'ConfigProvider',
|
|
19
|
+
}
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<script setup lang="ts">
|
|
23
|
+
|
|
24
|
+
const props = withDefaults(defineProps<ConfigProviderProps>(), {
|
|
25
|
+
useId: undefined,
|
|
26
|
+
dir: 'ltr'
|
|
27
|
+
})
|
|
28
|
+
|
|
29
|
+
const { dir } = toRefs(props)
|
|
30
|
+
|
|
31
|
+
provideConfigProviderContext({
|
|
32
|
+
useId: props.useId,
|
|
33
|
+
dir
|
|
34
|
+
})
|
|
35
|
+
</script>
|
|
36
|
+
<template>
|
|
37
|
+
<slot />
|
|
38
|
+
</template>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export interface ConfigProviderInjection {
|
|
2
|
-
useId?: () => string;
|
|
3
|
-
}
|
|
1
|
+
export interface ConfigProviderInjection {
|
|
2
|
+
useId?: () => string;
|
|
3
|
+
}
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<MModal
|
|
4
|
-
ref="modal"
|
|
5
|
-
:title="title"
|
|
6
|
-
:canClickOutside="false"
|
|
7
|
-
:onClose="onClose">
|
|
8
|
-
<template #body>
|
|
9
|
-
{{ content }}
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<template #footer>
|
|
13
|
-
<div style="display: flex; flex-grow: 1; justify-content: end">
|
|
14
|
-
<MButton :variant="okVariant" @click="handleOk">
|
|
15
|
-
{{ okText ?? 'Okay' }}
|
|
16
|
-
</MButton>
|
|
17
|
-
<MButton style="margin-left: 8px" @click="handleCancel">
|
|
18
|
-
{{ cancelText ?? 'Cancel' }}
|
|
19
|
-
</MButton>
|
|
20
|
-
</div>
|
|
21
|
-
</template>
|
|
22
|
-
</MModal>
|
|
23
|
-
</div>
|
|
24
|
-
</template>
|
|
25
|
-
|
|
26
|
-
<script lang="ts">
|
|
27
|
-
import { defineComponent, onMounted, ref } from 'vue';
|
|
28
|
-
import { useZIndex } from '../../composables/useZIndex';
|
|
29
|
-
import { confirmProps } from './props';
|
|
30
|
-
import MModal from '../modal/Modal.vue';
|
|
31
|
-
import MButton from '../button/Button.vue';
|
|
32
|
-
|
|
33
|
-
export default defineComponent({
|
|
34
|
-
name: 'Confirm',
|
|
35
|
-
props: confirmProps,
|
|
36
|
-
setup(props, { slots }) {
|
|
37
|
-
const modal = ref();
|
|
38
|
-
|
|
39
|
-
const { nextZIndex } = useZIndex();
|
|
40
|
-
|
|
41
|
-
async function handleCancel(event: MouseEvent) {
|
|
42
|
-
modal.value?.close();
|
|
43
|
-
if (props.onCancel) {
|
|
44
|
-
await props.onCancel(event);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
async function handleOk(event: MouseEvent) {
|
|
49
|
-
modal.value?.close();
|
|
50
|
-
if (props.onOk) {
|
|
51
|
-
props.onOk(event);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
onMounted(() => {
|
|
55
|
-
modal.value?.open(null);
|
|
56
|
-
});
|
|
57
|
-
return {
|
|
58
|
-
modal,
|
|
59
|
-
handleOk,
|
|
60
|
-
handleCancel
|
|
61
|
-
};
|
|
62
|
-
},
|
|
63
|
-
components: { MModal, MButton }
|
|
64
|
-
});
|
|
65
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<MModal
|
|
4
|
+
ref="modal"
|
|
5
|
+
:title="title"
|
|
6
|
+
:canClickOutside="false"
|
|
7
|
+
:onClose="onClose">
|
|
8
|
+
<template #body>
|
|
9
|
+
{{ content }}
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<template #footer>
|
|
13
|
+
<div style="display: flex; flex-grow: 1; justify-content: end">
|
|
14
|
+
<MButton :variant="okVariant" @click="handleOk">
|
|
15
|
+
{{ okText ?? 'Okay' }}
|
|
16
|
+
</MButton>
|
|
17
|
+
<MButton style="margin-left: 8px" @click="handleCancel">
|
|
18
|
+
{{ cancelText ?? 'Cancel' }}
|
|
19
|
+
</MButton>
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
22
|
+
</MModal>
|
|
23
|
+
</div>
|
|
24
|
+
</template>
|
|
25
|
+
|
|
26
|
+
<script lang="ts">
|
|
27
|
+
import { defineComponent, onMounted, ref } from 'vue';
|
|
28
|
+
import { useZIndex } from '../../composables/useZIndex';
|
|
29
|
+
import { confirmProps } from './props';
|
|
30
|
+
import MModal from '../modal/Modal.vue';
|
|
31
|
+
import MButton from '../button/Button.vue';
|
|
32
|
+
|
|
33
|
+
export default defineComponent({
|
|
34
|
+
name: 'Confirm',
|
|
35
|
+
props: confirmProps,
|
|
36
|
+
setup(props, { slots }) {
|
|
37
|
+
const modal = ref();
|
|
38
|
+
|
|
39
|
+
const { nextZIndex } = useZIndex();
|
|
40
|
+
|
|
41
|
+
async function handleCancel(event: MouseEvent) {
|
|
42
|
+
modal.value?.close();
|
|
43
|
+
if (props.onCancel) {
|
|
44
|
+
await props.onCancel(event);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
async function handleOk(event: MouseEvent) {
|
|
49
|
+
modal.value?.close();
|
|
50
|
+
if (props.onOk) {
|
|
51
|
+
props.onOk(event);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
onMounted(() => {
|
|
55
|
+
modal.value?.open(null);
|
|
56
|
+
});
|
|
57
|
+
return {
|
|
58
|
+
modal,
|
|
59
|
+
handleOk,
|
|
60
|
+
handleCancel
|
|
61
|
+
};
|
|
62
|
+
},
|
|
63
|
+
components: { MModal, MButton }
|
|
64
|
+
});
|
|
65
|
+
</script>
|