yuyeon 0.0.24 → 0.0.26
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/style.css +1 -1
- package/dist/yuyeon.js +1001 -949
- package/dist/yuyeon.umd.cjs +3 -3
- package/lib/components/alert/YAlert.mjs +46 -0
- package/lib/components/alert/YAlert.mjs.map +1 -0
- package/lib/components/alert/YAlert.scss +74 -0
- package/lib/components/alert/index.mjs +2 -0
- package/lib/components/alert/index.mjs.map +1 -0
- package/lib/components/button/YButton.scss +1 -1
- package/lib/components/card/YCard.scss +1 -1
- package/lib/components/checkbox/YCheckbox.mjs +6 -6
- package/lib/components/checkbox/YCheckbox.mjs.map +1 -1
- package/lib/components/checkbox/YCheckbox.scss +5 -5
- package/lib/components/checkbox/YInputCheckbox.scss +3 -3
- package/lib/components/dropdown/YDropdown.mjs +1 -1
- package/lib/components/dropdown/YDropdown.mjs.map +1 -1
- package/lib/components/field-input/YFieldInput.scss +64 -73
- package/lib/components/index.mjs +1 -0
- package/lib/components/index.mjs.map +1 -1
- package/lib/components/input/YInput.mjs.map +1 -1
- package/lib/components/input/YInput.scss +1 -1
- package/lib/components/layer/YLayer.mjs +1 -1
- package/lib/components/layer/YLayer.mjs.map +1 -1
- package/lib/components/menu/YMenu.scss +1 -1
- package/lib/components/select/YSelect.mjs +1 -1
- package/lib/components/select/YSelect.mjs.map +1 -1
- package/lib/components/switch/YSwitch.scss +1 -1
- package/lib/components/table/YTable.scss +2 -2
- package/lib/composables/layer-group.mjs +6 -1
- package/lib/composables/layer-group.mjs.map +1 -1
- package/lib/composables/theme/setting.mjs +16 -2
- package/lib/composables/theme/setting.mjs.map +1 -1
- package/lib/composables/timing.mjs +3 -3
- package/lib/composables/timing.mjs.map +1 -1
- package/lib/styles/_palette.scss +1 -90
- package/lib/styles/base.scss +122 -119
- package/lib/styles/theme/dark.scss +1 -11
- package/lib/styles/theme/light.scss +1 -11
- package/package.json +1 -1
- package/types/components/alert/YAlert.d.ts +18 -0
- package/types/components/alert/index.d.ts +1 -0
- package/types/components/index.d.ts +1 -0
- package/types/composables/timing.d.ts +1 -1
- package/types/shims.d.ts +77 -75
package/lib/styles/base.scss
CHANGED
|
@@ -1,119 +1,122 @@
|
|
|
1
|
-
@use 'sass:list';
|
|
2
|
-
@use 'settings/provided';
|
|
3
|
-
@use 'settings/variables';
|
|
4
|
-
@use 'palette';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
:
|
|
13
|
-
--
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
.fade-
|
|
25
|
-
.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
.fade-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
.slide-fade-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
.slide-fade-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
transition-
|
|
49
|
-
transition-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
transition-
|
|
54
|
-
transition-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
transition-
|
|
62
|
-
transition-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
transition-
|
|
67
|
-
transition-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
font-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
@each $
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
1
|
+
@use 'sass:list';
|
|
2
|
+
@use 'settings/provided';
|
|
3
|
+
@use 'settings/variables';
|
|
4
|
+
@use 'palette';
|
|
5
|
+
@use 'elevation';
|
|
6
|
+
|
|
7
|
+
:root {
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:root {
|
|
12
|
+
--default-shadow: 0, 0, 0;
|
|
13
|
+
--y-elevation-color: var(--y-theme-shadow, var(--default-shadow));
|
|
14
|
+
|
|
15
|
+
@include elevation.styles();
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.y-root {
|
|
19
|
+
background: var(--y-theme-background);
|
|
20
|
+
color: var(--y-theme-on-background);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.fade-enter-active,
|
|
24
|
+
.fade-leave-cative {
|
|
25
|
+
transition: opacity 240ms cubic-bezier(0.2, 0.28, 0.21, 1);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.fade-enter-from,
|
|
29
|
+
.fade-leave-to {
|
|
30
|
+
opacity: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.slide-fade-enter-active,
|
|
34
|
+
.slide-fade-leave-active {
|
|
35
|
+
transition: transform 240ms variables.$basic-transition-timing-function,
|
|
36
|
+
opacity 240ms linear;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.slide-fade-enter-from,
|
|
40
|
+
.slide-fade-leave-to {
|
|
41
|
+
transform: translateY(-20px) rotate3d(1, 0, 0, 10deg);
|
|
42
|
+
opacity: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.expand-v-transition {
|
|
46
|
+
&-enter-active {
|
|
47
|
+
transition-duration: 240ms;
|
|
48
|
+
transition-timing-function: variables.$basic-transition-timing-function;
|
|
49
|
+
transition-property: height;
|
|
50
|
+
}
|
|
51
|
+
&-leave-active {
|
|
52
|
+
transition-duration: 240ms;
|
|
53
|
+
transition-timing-function: variables.$basic-transition-timing-function;
|
|
54
|
+
transition-property: height;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.expand-h-transition {
|
|
59
|
+
&-enter-active {
|
|
60
|
+
transition-duration: 240ms;
|
|
61
|
+
transition-timing-function: variables.$basic-transition-timing-function;
|
|
62
|
+
transition-property: width;
|
|
63
|
+
}
|
|
64
|
+
&-leave-active {
|
|
65
|
+
transition-duration: 240ms;
|
|
66
|
+
transition-timing-function: variables.$basic-transition-timing-function;
|
|
67
|
+
transition-property: width;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.title {
|
|
72
|
+
font-size: 20px;
|
|
73
|
+
font-weight: bold;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.contain-paint {
|
|
77
|
+
contain: paint;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@each $space-type-prefix, $space-type in provided.$space-types {
|
|
81
|
+
@each $side-prefix, $sides-properties in provided.$box-side-combinations {
|
|
82
|
+
@each $space-index, $space-size in variables.$space-list {
|
|
83
|
+
.#{$space-type-prefix}#{$side-prefix}-#{$space-index} {
|
|
84
|
+
@if (list.length($sides-properties) == 0) {
|
|
85
|
+
#{$space-type}: #{$space-size};
|
|
86
|
+
} @else {
|
|
87
|
+
@each $prop in $sides-properties {
|
|
88
|
+
#{$space-type}: {
|
|
89
|
+
#{$prop}: #{$space-size};
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@each $align in provided.$text-aligns {
|
|
99
|
+
.text-#{$align} {
|
|
100
|
+
text-align: #{$align};
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@each $weight in provided.$font-weights {
|
|
105
|
+
.font-weight-#{$weight} {
|
|
106
|
+
font-weight: $weight;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@keyframes rotate {
|
|
111
|
+
to {
|
|
112
|
+
transform: rotate(360deg);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.text-color--error {
|
|
117
|
+
color: var(--y-theme-error);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.flex-wrap {
|
|
121
|
+
flex-wrap: wrap;
|
|
122
|
+
}
|
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
@use '../util/helper';
|
|
4
4
|
|
|
5
5
|
// yui/app theme
|
|
6
6
|
$theme--dark: () !default;
|
|
7
7
|
$theme--dark: map.deep-merge(
|
|
8
8
|
(
|
|
9
|
-
'input': (
|
|
10
|
-
'fill': palette.$basic-gray-200,
|
|
11
|
-
),
|
|
12
|
-
'fieldInput': (
|
|
13
|
-
'clear': palette.$basic-gray-400,
|
|
14
|
-
),
|
|
15
|
-
'select': (
|
|
16
|
-
'selected': palette.$basic-black,
|
|
17
|
-
'selected-background': palette.$basic-gray-700,
|
|
18
|
-
),
|
|
19
9
|
),
|
|
20
10
|
$theme--dark
|
|
21
11
|
);
|
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
@use '../util/helper';
|
|
4
4
|
|
|
5
5
|
// yui theme
|
|
6
6
|
$theme--light: () !default;
|
|
7
7
|
$theme--light: map.deep-merge(
|
|
8
8
|
(
|
|
9
|
-
'input': (
|
|
10
|
-
'fill': palette.$basic-gray-200,
|
|
11
|
-
),
|
|
12
|
-
'fieldInput': (
|
|
13
|
-
'clear': palette.$basic-gray-400,
|
|
14
|
-
),
|
|
15
|
-
'select': (
|
|
16
|
-
'selected': palette.$basic-black,
|
|
17
|
-
'selected-background': palette.$basic-gray-700,
|
|
18
|
-
)
|
|
19
9
|
),
|
|
20
10
|
$theme--light
|
|
21
11
|
);
|
package/package.json
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* # Component
|
|
4
|
+
*/
|
|
5
|
+
export declare const YAlert: import("vue").DefineComponent<{
|
|
6
|
+
semantic: PropType<string>;
|
|
7
|
+
variation: PropType<string>;
|
|
8
|
+
color: PropType<string>;
|
|
9
|
+
textColor: PropType<string>;
|
|
10
|
+
outlineColor: PropType<string>;
|
|
11
|
+
}, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
+
semantic: PropType<string>;
|
|
13
|
+
variation: PropType<string>;
|
|
14
|
+
color: PropType<string>;
|
|
15
|
+
textColor: PropType<string>;
|
|
16
|
+
outlineColor: PropType<string>;
|
|
17
|
+
}>>, {}, {}>;
|
|
18
|
+
export type YAlert = InstanceType<typeof YAlert>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './YAlert';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
export declare function useLazy(eager: boolean
|
|
2
|
+
export declare function useLazy(eager: Ref<boolean | undefined>, updated: Ref<any>): {
|
|
3
3
|
entered: Ref<boolean>;
|
|
4
4
|
lazyValue: import("vue").ComputedRef<any>;
|
|
5
5
|
onAfterUpdate: () => void;
|
package/types/shims.d.ts
CHANGED
|
@@ -1,75 +1,77 @@
|
|
|
1
|
-
import * as vue from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
YApp,
|
|
4
|
-
YButton,
|
|
5
|
-
YCard,
|
|
6
|
-
YCardBody,
|
|
7
|
-
YCardFooter,
|
|
8
|
-
YCardHeader,
|
|
9
|
-
YCheckbox,
|
|
10
|
-
YChip,
|
|
11
|
-
YDataTable,
|
|
12
|
-
YDataTableServer,
|
|
13
|
-
YDialog,
|
|
14
|
-
YDividePanel,
|
|
15
|
-
YDropdown,
|
|
16
|
-
YExpandHTransition,
|
|
17
|
-
YExpandVTransition,
|
|
18
|
-
YFieldInput,
|
|
19
|
-
YForm,
|
|
20
|
-
YInput,
|
|
21
|
-
YInputCheckbox,
|
|
22
|
-
YLayer,
|
|
23
|
-
YList,
|
|
24
|
-
YListItem,
|
|
25
|
-
YMenu,
|
|
26
|
-
YPagination,
|
|
27
|
-
YProgressBar,
|
|
28
|
-
YSnackbar,
|
|
29
|
-
YSpinnerRing,
|
|
30
|
-
YSwitch,
|
|
31
|
-
YTable,
|
|
32
|
-
YTooltip,
|
|
33
|
-
YTreeView,
|
|
34
|
-
YTreeViewNode,
|
|
35
|
-
YSelect,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import {
|
|
3
|
+
YApp,
|
|
4
|
+
YButton,
|
|
5
|
+
YCard,
|
|
6
|
+
YCardBody,
|
|
7
|
+
YCardFooter,
|
|
8
|
+
YCardHeader,
|
|
9
|
+
YCheckbox,
|
|
10
|
+
YChip,
|
|
11
|
+
YDataTable,
|
|
12
|
+
YDataTableServer,
|
|
13
|
+
YDialog,
|
|
14
|
+
YDividePanel,
|
|
15
|
+
YDropdown,
|
|
16
|
+
YExpandHTransition,
|
|
17
|
+
YExpandVTransition,
|
|
18
|
+
YFieldInput,
|
|
19
|
+
YForm,
|
|
20
|
+
YInput,
|
|
21
|
+
YInputCheckbox,
|
|
22
|
+
YLayer,
|
|
23
|
+
YList,
|
|
24
|
+
YListItem,
|
|
25
|
+
YMenu,
|
|
26
|
+
YPagination,
|
|
27
|
+
YProgressBar,
|
|
28
|
+
YSnackbar,
|
|
29
|
+
YSpinnerRing,
|
|
30
|
+
YSwitch,
|
|
31
|
+
YTable,
|
|
32
|
+
YTooltip,
|
|
33
|
+
YTreeView,
|
|
34
|
+
YTreeViewNode,
|
|
35
|
+
YSelect,
|
|
36
|
+
YAlert,
|
|
37
|
+
} from 'yuyeon/types/components';
|
|
38
|
+
|
|
39
|
+
declare module '@vue/runtime-core' {
|
|
40
|
+
export interface GlobalComponents {
|
|
41
|
+
// @define-components
|
|
42
|
+
YApp: typeof YApp;
|
|
43
|
+
YButton: typeof YButton;
|
|
44
|
+
YChip: typeof YChip;
|
|
45
|
+
YInput: typeof YInput;
|
|
46
|
+
YFieldInput: typeof YFieldInput;
|
|
47
|
+
YForm: typeof YForm;
|
|
48
|
+
YCard: typeof YCard;
|
|
49
|
+
YCardBody: typeof YCardBody;
|
|
50
|
+
YCardHeader: typeof YCardHeader;
|
|
51
|
+
YCardFooter: typeof YCardFooter;
|
|
52
|
+
YDialog: typeof YDialog;
|
|
53
|
+
YLayer: typeof YLayer;
|
|
54
|
+
YSnackbar: typeof YSnackbar;
|
|
55
|
+
YProgressBar: typeof YProgressBar;
|
|
56
|
+
YSpinnerRing: typeof YSpinnerRing;
|
|
57
|
+
YTooltip: typeof YTooltip;
|
|
58
|
+
YExpandVTransition: typeof YExpandVTransition;
|
|
59
|
+
YExpandHTransition: typeof YExpandHTransition;
|
|
60
|
+
YDividePanel: typeof YDividePanel;
|
|
61
|
+
YList: typeof YList;
|
|
62
|
+
YListItem: typeof YListItem;
|
|
63
|
+
YTreeView: typeof YTreeView;
|
|
64
|
+
YTreeViewNode: typeof YTreeViewNode;
|
|
65
|
+
YDataTable: typeof YDataTable;
|
|
66
|
+
YTable: typeof YTable;
|
|
67
|
+
YDataTableServer: typeof YDataTableServer;
|
|
68
|
+
YMenu: typeof YMenu;
|
|
69
|
+
YPagination: typeof YPagination;
|
|
70
|
+
YInputCheckbox: typeof YInputCheckbox;
|
|
71
|
+
YCheckbox: typeof YCheckbox;
|
|
72
|
+
YSwitch: typeof YSwitch;
|
|
73
|
+
YDropdown: typeof YDropdown;
|
|
74
|
+
YSelect: typeof YSelect;
|
|
75
|
+
YAlert: typeof YAlert;
|
|
76
|
+
}
|
|
77
|
+
}
|