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