@mythpe/quasar-ui-qui 0.2.26 → 0.2.27

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mythpe/quasar-ui-qui",
3
- "version": "0.2.26",
3
+ "version": "0.2.27",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -17,8 +17,7 @@ const props = defineProps<Props>()
17
17
  const { computedProps } = useTransition(props)
18
18
 
19
19
  defineOptions({
20
- name: 'MTransition',
21
- inheritAttrs: !1
20
+ name: 'MTransition'
22
21
  })
23
22
  </script>
24
23
 
@@ -17,8 +17,7 @@ const props = defineProps<Props>()
17
17
  const { computedProps } = useTransition(props)
18
18
 
19
19
  defineOptions({
20
- name: 'MTransitionGroup',
21
- inheritAttrs: !1
20
+ name: 'MTransitionGroup'
22
21
  })
23
22
  </script>
24
23
 
@@ -6,16 +6,20 @@
6
6
  * Github: https://github.com/mythpe
7
7
  */
8
8
 
9
+ import type { TransitionGroupProps, TransitionProps } from 'vue'
9
10
  import { computed } from 'vue'
10
11
 
11
12
  export function useTransition (props: any) {
12
- const getClasses = (mode: 'in' | 'out') => {
13
+ const getClasses = (mode: 'in' | 'out' | 'appear') => {
13
14
  if (mode === 'in' && props.enterActiveClass) {
14
15
  return `animated ${props.enterActiveClass}`
15
16
  }
16
17
  if (mode === 'out' && props.leaveActiveClass) {
17
18
  return `animated ${props.leaveActiveClass}`
18
19
  }
20
+ if (mode === 'appear' && props.appearActiveClass) {
21
+ return `animated ${props.appearActiveClass}`
22
+ }
19
23
  const activeClass = props[mode]
20
24
  if (!activeClass) {
21
25
  return undefined
@@ -54,12 +58,13 @@ export function useTransition (props: any) {
54
58
  }
55
59
  const computedProps = computed(() => {
56
60
  const p = {
57
- ...props,
61
+ // ...props,
58
62
  enterActiveClass: getClasses('in'),
59
63
  leaveActiveClass: getClasses('out'),
64
+ appearActiveClass: getClasses('appear'),
60
65
  appear: !props.noAppear,
61
66
  css: !props.noCss
62
- }
67
+ } as TransitionProps | TransitionGroupProps
63
68
  const remove = [
64
69
  'in',
65
70
  'inSlower',
@@ -75,12 +80,14 @@ export function useTransition (props: any) {
75
80
  'outFaster',
76
81
  'outDelay',
77
82
  'outRepeat',
83
+ 'appearSlower',
84
+ 'appearSlow',
85
+ 'appearFast',
86
+ 'appearFaster',
87
+ 'appearDelay',
88
+ 'appearRepeat',
78
89
  'noAppear',
79
- 'noCss',
80
- 'enterActiveClass',
81
- 'leaveActiveClass',
82
- 'appear',
83
- 'css'
90
+ 'noCss'
84
91
  ]
85
92
  for (const removeKey of remove) {
86
93
  delete p[removeKey]
package/src/index.sass CHANGED
@@ -6,7 +6,6 @@
6
6
 
7
7
  //@import 'quasar/src/css/variables.sass'
8
8
  @import './style/main'
9
- @import './style/m-ck.css' #{"/* rtl:ignore */"}
10
9
  @import './style/ckeditor5'
11
10
  @import './style/m-container'
12
11
  @import './style/m-dt'
@@ -108,7 +108,7 @@ export type TransitionClass = GeneralTransitionClasses | InTransitionClasses | O
108
108
  export type TransitionDelay = boolean | string | number;
109
109
  export type TransitionRepeat = boolean | string | number;
110
110
 
111
- interface BaseTransitionProps {
111
+ export interface BaseMTransitionProps {
112
112
  in?: TransitionClass | null;
113
113
  inSlower?: boolean;
114
114
  inSlow?: boolean;
@@ -123,13 +123,20 @@ interface BaseTransitionProps {
123
123
  outFaster?: boolean;
124
124
  outDelay?: TransitionDelay;
125
125
  outRepeat?: TransitionRepeat;
126
+ appear?: TransitionClass | null;
127
+ appearSlower?: boolean;
128
+ appearSlow?: boolean;
129
+ appearFast?: boolean;
130
+ appearFaster?: boolean;
131
+ appearDelay?: TransitionDelay;
132
+ appearRepeat?: TransitionRepeat;
126
133
  noAppear?: boolean;
127
134
  noCss?: boolean;
128
135
  }
129
136
 
130
- export type MTransitionGroupProps = BaseTransitionProps & Omit<TransitionGroupProps, 'appear'>;
137
+ export type MTransitionProps = BaseMTransitionProps & Omit<TransitionProps, 'appear'>;
131
138
 
132
- export type MTransitionProps = BaseTransitionProps & Omit<TransitionProps, 'appear'>;
139
+ export type MTransitionGroupProps = BaseMTransitionProps & Omit<TransitionGroupProps, 'appear'>;
133
140
 
134
141
  export interface MTransitionsSlots {
135
142
  default: () => VNode[];
@@ -1,135 +0,0 @@
1
- /*
2
- * MyTh Ahmed Faiz Copyright © 2016-2025 All rights reserved.
3
- * Email: mythpe@gmail.com
4
- * Mobile: +966590470092
5
- * Website: https://www.4myth.com
6
- * Github: https://github.com/mythpe
7
- */
8
-
9
- @import url('https://fonts.googleapis.com/css2?family=Oswald&family=PT+Serif:ital,wght@0,400;0,700;1,400&display=swap');
10
- @import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400;1,700&display=swap');
11
-
12
- @media print {
13
- body {
14
- margin: 0 !important;
15
- }
16
- }
17
-
18
- .main-container {
19
- /*font-family: 'Lato';*/
20
- width: fit-content;
21
- margin-left: auto;
22
- margin-right: auto;
23
- direction: ltr;
24
- }
25
-
26
- .ck-content {
27
- font-family: 'Lato', sans-serif;
28
- line-height: 1.6;
29
- word-break: break-word;
30
- }
31
-
32
- .editor-container_classic-editor .editor-container__editor {
33
- min-width: 795px;
34
- max-width: 795px;
35
- }
36
-
37
- .editor-container_include-block-toolbar {
38
- margin-left: 42px;
39
- }
40
-
41
- .ck-content h3.category {
42
- font-family: 'Oswald', serif;
43
- font-size: 20px;
44
- font-weight: bold;
45
- color: #555;
46
- letter-spacing: 10px;
47
- margin: 0;
48
- padding: 0;
49
- }
50
-
51
- .ck-content h3.document-subtitle {
52
- font-family: 'Oswald', serif;
53
- font-size: 20px;
54
- color: #555;
55
- margin: 0 0 1em;
56
- font-weight: bold;
57
- padding: 0;
58
- }
59
-
60
- .ck-content p.info-box {
61
- --background-size: 30px;
62
- --background-color: #e91e63;
63
- padding: 1.2em 2em;
64
- border: 1px solid var(--background-color);
65
- background: linear-gradient(135deg, var(--background-color) 0%, var(--background-color) var(--background-size), transparent var(--background-size)),
66
- linear-gradient(
67
- 135deg,
68
- transparent calc(100% - var(--background-size)),
69
- var(--background-color) calc(100% - var(--background-size)),
70
- var(--background-color)
71
- );
72
- border-radius: 10px;
73
- margin: 1.5em 2em;
74
- box-shadow: 5px 5px 0 #ffe6ef;
75
- }
76
-
77
- .ck-content span.marker {
78
- background: yellow;
79
- }
80
-
81
- .ck-content span.spoiler {
82
- background: #000;
83
- color: #000;
84
- }
85
-
86
- .ck-content span.spoiler:hover {
87
- background: #000;
88
- color: #fff;
89
- }
90
-
91
- .ck-content .button {
92
- display: inline-block;
93
- width: 260px;
94
- border-radius: 8px;
95
- margin: 0 auto;
96
- padding: 12px;
97
- color: #ffffff;
98
- font-size: 24px;
99
- font-weight: 700;
100
- text-align: center;
101
- text-decoration: none;
102
- }
103
-
104
- .ck-content .button--green {
105
- background-color: #406b1e;
106
- }
107
-
108
- .ck-content .button--black {
109
- background-color: #141517;
110
- }
111
-
112
- .editor_container__word-count .ck-word-count {
113
- color: var(--ck-color-text);
114
- display: flex;
115
- height: 20px;
116
- gap: var(--ck-spacing-small);
117
- justify-content: flex-end;
118
- font-size: var(--ck-font-size-base);
119
- line-height: var(--ck-line-height-base);
120
- font-family: var(--ck-font-face);
121
- padding: var(--ck-spacing-small) var(--ck-spacing-standard);
122
- }
123
-
124
- .editor-container_include-word-count.editor-container_classic-editor .editor_container__word-count {
125
- border: 1px solid var(--ck-color-base-border);
126
- border-radius: var(--ck-border-radius);
127
- border-top-left-radius: 0;
128
- border-top-right-radius: 0;
129
- border-top: none;
130
- }
131
-
132
- .editor-container_include-word-count.editor-container_classic-editor .editor-container__editor .ck-editor .ck-editor__editable {
133
- border-radius: 0;
134
- }
135
-