@mythpe/quasar-ui-qui 0.5.1 → 0.5.2

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 (61) hide show
  1. package/dist/components/MBtn/MBtn.d.ts +35 -0
  2. package/dist/components/grid/MColumn/MColumn.d.ts +28 -0
  3. package/dist/components/grid/MContainer/MContainer.d.ts +23 -0
  4. package/dist/components/grid/MGrid.d.ts +12 -0
  5. package/dist/components/grid/MRow/MRow.d.ts +11 -0
  6. package/dist/components/index.d.ts +19 -0
  7. package/dist/composables/useMyth.d.ts +6765 -0
  8. package/dist/composables/useMythMeta.d.ts +30 -0
  9. package/dist/config/config.d.ts +3411 -0
  10. package/dist/config/grid.d.ts +6 -0
  11. package/dist/config/index.d.ts +2 -0
  12. package/dist/index.common.js +1 -0
  13. package/dist/index.css +2 -0
  14. package/dist/index.d.ts +3 -0
  15. package/dist/index.js +2 -0
  16. package/dist/index.umd.js +1 -0
  17. package/dist/types/config.d.ts +69 -0
  18. package/dist/types/helpers.d.ts +14 -0
  19. package/dist/types/index.d.ts +6 -0
  20. package/dist/types/vue-prop-types.d.ts +5 -0
  21. package/dist/utils/helpers.d.ts +40 -0
  22. package/dist/utils/icons.d.ts +4 -0
  23. package/dist/utils/index.d.ts +21 -0
  24. package/dist/utils/str.d.ts +67 -0
  25. package/dist/utils/vee-rules.d.ts +17 -0
  26. package/dist/vue-plugin.d.ts +16 -0
  27. package/package.json +21 -11
  28. package/src/components/MBtn/MBtn.ts +0 -38
  29. package/src/components/MBtn/MBtn.vue +0 -142
  30. package/src/components/grid/MColumn/MColumn.ts +0 -15
  31. package/src/components/grid/MColumn/MColumn.vue +0 -28
  32. package/src/components/grid/MContainer/MContainer.ts +0 -39
  33. package/src/components/grid/MContainer/MContainer.vue +0 -66
  34. package/src/components/grid/MGrid.ts +0 -16
  35. package/src/components/grid/MGrid.vue +0 -47
  36. package/src/components/grid/MRow/MRow.ts +0 -15
  37. package/src/components/grid/MRow/MRow.vue +0 -28
  38. package/src/components/index.ts +0 -30
  39. package/src/composables/useMyth.ts +0 -93
  40. package/src/composables/useMythMeta.ts +0 -40
  41. package/src/config/config.ts +0 -16
  42. package/src/config/grid.ts +0 -10
  43. package/src/config/index.ts +0 -2
  44. package/src/css/components/m-btn.scss +0 -13
  45. package/src/css/index.scss +0 -9
  46. package/src/env.d.ts +0 -14
  47. package/src/index.common.js +0 -1
  48. package/src/index.ts +0 -4
  49. package/src/index.umd.js +0 -2
  50. package/src/shims-myth.d.ts +0 -6
  51. package/src/shims-vue.d.ts +0 -22
  52. package/src/types/config.ts +0 -136
  53. package/src/types/helpers.ts +0 -21
  54. package/src/types/index.ts +0 -9
  55. package/src/types/vue-prop-types.ts +0 -13
  56. package/src/utils/helpers.ts +0 -446
  57. package/src/utils/icons.ts +0 -4
  58. package/src/utils/index.ts +0 -77
  59. package/src/utils/str.ts +0 -237
  60. package/src/utils/vee-rules.ts +0 -40
  61. package/src/vue-plugin.ts +0 -76
@@ -1,142 +0,0 @@
1
- <script lang="ts" setup>
2
- import {
3
- QBtn,
4
- QSpinner,
5
- QSpinnerAudio,
6
- QSpinnerBall,
7
- QSpinnerBars,
8
- QSpinnerBox,
9
- QSpinnerClock,
10
- QSpinnerComment,
11
- QSpinnerCube,
12
- QSpinnerDots,
13
- QSpinnerFacebook,
14
- QSpinnerGears,
15
- QSpinnerGrid,
16
- QSpinnerHearts,
17
- QSpinnerHourglass,
18
- QSpinnerInfinity,
19
- QSpinnerIos,
20
- QSpinnerOrbit,
21
- QSpinnerOval,
22
- QSpinnerPie,
23
- QSpinnerPuff,
24
- QSpinnerRadio,
25
- QSpinnerRings,
26
- QSpinnerTail
27
- } from 'quasar'
28
- import { computed } from 'vue'
29
- import type { MBtnProps } from './MBtn'
30
- import { useMyth } from '../../vue-plugin'
31
- import { pascalCase } from 'change-case'
32
-
33
- interface Props {
34
- label?: MBtnProps['label']
35
- spinner?: MBtnProps['spinner']
36
- loading?: boolean
37
- nativeLabel?: boolean
38
- noStyle?: boolean
39
- }
40
-
41
- const spinners = {
42
- QSpinner,
43
- QSpinnerAudio,
44
- QSpinnerBall,
45
- QSpinnerBars,
46
- QSpinnerBox,
47
- QSpinnerClock,
48
- QSpinnerComment,
49
- QSpinnerCube,
50
- QSpinnerDots,
51
- QSpinnerFacebook,
52
- QSpinnerGears,
53
- QSpinnerGrid,
54
- QSpinnerHearts,
55
- QSpinnerHourglass,
56
- QSpinnerInfinity,
57
- QSpinnerIos,
58
- QSpinnerOrbit,
59
- QSpinnerOval,
60
- QSpinnerPie,
61
- QSpinnerPuff,
62
- QSpinnerRadio,
63
- QSpinnerRings,
64
- QSpinnerTail
65
- }
66
- const {
67
- noStyle = !1,
68
- label = undefined,
69
- loading = false,
70
- nativeLabel = false,
71
- spinner = undefined
72
- } = defineProps<Props>()
73
- const { __, loadingOptions, componentProps, btnStyle } = useMyth()
74
- const loadingType = computed(() => {
75
- if (spinner !== undefined) {
76
- return spinner
77
- }
78
- return loadingOptions.value?.type
79
- })
80
- const spinnerComponent = computed(() => {
81
- if (!loadingType.value) {
82
- return undefined
83
- }
84
- if (loadingType.value === 'spinner') {
85
- return spinners.QSpinner
86
- }
87
- const k = pascalCase(`q-spinner-${loadingType.value}`) as keyof typeof spinners
88
- return spinners[k]
89
- })
90
- const loadingSize = computed(() => loadingOptions.value?.size)
91
- const loadingColor = computed(() => loadingOptions.value?.color)
92
- const DEFAULT_LABEL = undefined
93
- const computedLabel = computed<string | undefined>(() => {
94
- if (nativeLabel === !0) {
95
- return label === null || label === undefined ? DEFAULT_LABEL : String(label)
96
- }
97
- if (label === undefined || label === null) {
98
- return DEFAULT_LABEL
99
- }
100
- return __(label)
101
- })
102
- const computedAttrs = computed(() => ({
103
- ...(noStyle ? {} : btnStyle.value),
104
- ...(componentProps.value.btn || {}),
105
- ariaLabel: computedLabel.value
106
- }))
107
- defineOptions({
108
- name: 'MBtn'
109
- })
110
- </script>
111
-
112
- <template>
113
- <q-btn
114
- :loading="loading"
115
- :label="computedLabel"
116
- v-bind="computedAttrs"
117
- >
118
- <template
119
- v-if="!!$slots.loading"
120
- #loading
121
- >
122
- <slot name="loading" />
123
- </template>
124
- <template
125
- v-else-if="!!loadingType && spinnerComponent"
126
- #loading
127
- >
128
- <component
129
- :is="spinnerComponent"
130
- :color="loadingColor"
131
- :size="loadingSize"
132
- />
133
- </template>
134
-
135
- <template
136
- v-if="!!$slots.default"
137
- #default
138
- >
139
- <slot />
140
- </template>
141
- </q-btn>
142
- </template>
@@ -1,15 +0,0 @@
1
- import type { ComponentPublicInstance, VNode } from 'vue'
2
- import type { MGridProps } from '../MGrid'
3
-
4
- export interface MColumnProps {
5
- size?: MGridProps['size']
6
- type?: MGridProps['type']
7
- }
8
-
9
- export interface MColumnSlots {
10
- default?: () => VNode[]
11
- }
12
-
13
- export interface MColumn extends ComponentPublicInstance<MColumnProps> {
14
- //
15
- }
@@ -1,28 +0,0 @@
1
- <!--
2
- - MyTh Ahmed Faiz Copyright © 2016-2024 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
- <script lang="ts" setup>
10
- import MGrid from '../MGrid.vue'
11
- import type { MColumnProps } from './MColumn'
12
-
13
- const { size = undefined, type = undefined } = defineProps<MColumnProps>()
14
-
15
- defineOptions({
16
- name: 'MColumn'
17
- })
18
- </script>
19
-
20
- <template>
21
- <MGrid
22
- grid-type="column"
23
- :size="size"
24
- :type="type"
25
- >
26
- <slot />
27
- </MGrid>
28
- </template>
@@ -1,39 +0,0 @@
1
- import type { ComponentPublicInstance, VNode } from 'vue'
2
- import type { MGridProps } from '../MGrid'
3
-
4
- export type MContainerProps = {
5
- /**
6
- * Defines the spacing size (gutter) between rows and columns.
7
- * Matches the design system global theme sizes.
8
- * @default 'md'
9
- */
10
- size?: MGridProps['size']
11
-
12
- /**
13
- * Determines the Quasar gutter implementation behavior.
14
- * - 'col': Uses 'q-col-gutter' (adds negative margins, ideal for layout grids).
15
- * - 'gutter': Uses 'q-gutter' (adds standard margins between direct children).
16
- * @default 'gutter'
17
- */
18
- type?: MGridProps['type']
19
-
20
- /**
21
- * Reduces the inner padding or vertical spacing of the container for a more compact layout.
22
- * @default false
23
- */
24
- dense?: boolean | undefined
25
-
26
- /**
27
- * If true, the container spans the full width of the viewport, removing maximum width constraints.
28
- * @default false
29
- */
30
- fluid?: boolean | undefined
31
- }
32
-
33
- export type MContainerSlots = {
34
- default?: () => VNode[]
35
- }
36
-
37
- export interface MContainer extends ComponentPublicInstance<MContainerProps> {
38
- //
39
- }
@@ -1,66 +0,0 @@
1
- <!--
2
- - MyTh Ahmed Faiz Copyright © 2016-2024 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
- <script lang="ts" setup>
10
- import { computed, provide, reactive } from 'vue'
11
- import type { MContainerProps } from './MContainer'
12
- import useMyth from '../../../composables/useMyth'
13
- import { DEFAULT_GRID_SIZE, DEFAULT_GRID_TYPE, MContainerInjectionKey } from '../../../config'
14
-
15
- const {
16
- size = DEFAULT_GRID_SIZE,
17
- type = DEFAULT_GRID_TYPE,
18
- dense = undefined,
19
- fluid = undefined
20
- } = defineProps<MContainerProps>()
21
-
22
- const { theme } = useMyth()
23
-
24
- const computedGutterSize = computed(() => {
25
- return size !== DEFAULT_GRID_SIZE ? size : (theme.gutterSize ?? DEFAULT_GRID_SIZE)
26
- })
27
- const computedGutterType = computed(() => {
28
- return type !== DEFAULT_GRID_TYPE ? type : (theme.gutterType ?? DEFAULT_GRID_TYPE)
29
- })
30
- const computedDense = computed(() => dense ?? theme.dense ?? false)
31
- const computedFluid = computed(() => fluid ?? theme.fluid ?? false)
32
- provide(
33
- MContainerInjectionKey,
34
- reactive({
35
- gutterSize: computedGutterSize,
36
- gutterType: computedGutterType,
37
- dense: computedDense,
38
- fluid: computedFluid
39
- })
40
- )
41
- defineOptions({
42
- name: 'MContainer'
43
- })
44
- </script>
45
-
46
- <template>
47
- <div
48
- :class="{
49
- 'm-container__fluid': !!computedFluid,
50
- 'm-container__dense': !!computedDense,
51
- 'q-pa-none': computedGutterSize === 'none',
52
- [`q-pa-${computedGutterSize || ''}`]: computedGutterSize && computedGutterSize !== 'none'
53
- }"
54
- class="m-container"
55
- >
56
- <slot />
57
- </div>
58
- </template>
59
-
60
- <style lang="scss" scoped>
61
- .m-container {
62
- width: 100%;
63
- min-height: 400px;
64
- background-color: red;
65
- }
66
- </style>
@@ -1,16 +0,0 @@
1
- import type { ComponentPublicInstance, VNode } from 'vue'
2
- import type { GridGutterSize, GridGutterType, GridType } from '../../types/config'
3
-
4
- export interface MGridProps {
5
- gridType: GridType
6
- size?: GridGutterSize
7
- type?: GridGutterType
8
- }
9
-
10
- export interface MGridSlots {
11
- default?: () => VNode[]
12
- }
13
-
14
- export interface MGrid extends ComponentPublicInstance<MGridProps> {
15
- //
16
- }
@@ -1,47 +0,0 @@
1
- <!--
2
- - MyTh Ahmed Faiz Copyright © 2016-2024 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
- <script lang="ts" setup>
10
- import { computed, inject } from 'vue'
11
- import useMyth from '../../composables/useMyth'
12
- import { DEFAULT_GRID_SIZE, DEFAULT_GRID_TYPE, MContainerInjectionKey } from '../../config'
13
- import type { MGridProps } from './MGrid'
14
-
15
- const { size = undefined, type = undefined, gridType = 'row' } = defineProps<MGridProps>()
16
- const parent = inject(MContainerInjectionKey)
17
- const { theme } = useMyth()
18
-
19
- const computedGutterSize = computed<string>(() => {
20
- if (size !== undefined) {
21
- return size
22
- }
23
- return parent?.size ?? theme.gutterSize ?? DEFAULT_GRID_SIZE
24
- })
25
- const computedGutterType = computed<string>(() => {
26
- if (type !== undefined) {
27
- return type
28
- }
29
- return parent?.type ?? theme.gutterType ?? DEFAULT_GRID_TYPE
30
- })
31
- const gutterKey = computed(() => `q${type === 'col' ? '-col' : ''}-gutter`)
32
- defineOptions({
33
- name: 'MGrid'
34
- })
35
- </script>
36
-
37
- <template>
38
- <div
39
- :class="{
40
- 'm-row row': gridType === 'row',
41
- 'm-column column': gridType === 'column',
42
- [`${gutterKey}-${computedGutterSize}`]: !!computedGutterType && computedGutterType !== 'none'
43
- }"
44
- >
45
- <slot />
46
- </div>
47
- </template>
@@ -1,15 +0,0 @@
1
- import type { ComponentPublicInstance, VNode } from 'vue'
2
- import type { MGridProps } from '../MGrid'
3
-
4
- export interface MRowProps {
5
- size?: MGridProps['size']
6
- type?: MGridProps['type']
7
- }
8
-
9
- export interface MRowSlots {
10
- default?: () => VNode[]
11
- }
12
-
13
- export interface MRow extends ComponentPublicInstance<MRowProps> {
14
- //
15
- }
@@ -1,28 +0,0 @@
1
- <!--
2
- - MyTh Ahmed Faiz Copyright © 2016-2024 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
- <script lang="ts" setup>
10
- import MGrid from '../MGrid.vue'
11
- import type { MRowProps } from './MRow'
12
-
13
- const { size = undefined, type = undefined } = defineProps<MRowProps>()
14
-
15
- defineOptions({
16
- name: 'MRow'
17
- })
18
- </script>
19
-
20
- <template>
21
- <MGrid
22
- grid-type="row"
23
- :size="size"
24
- :type="type"
25
- >
26
- <slot />
27
- </MGrid>
28
- </template>
@@ -1,30 +0,0 @@
1
- import MBtn from './MBtn/MBtn.vue'
2
- import MContainer from './grid/MContainer/MContainer.vue'
3
- import MGrid from './grid/MGrid.vue'
4
- import MColumn from './grid/MColumn/MColumn.vue'
5
- import MRow from './grid/MRow/MRow.vue'
6
- import type { GlobalComponentConstructor } from 'quasar'
7
- import type { MContainerProps, MContainerSlots } from './grid/MContainer/MContainer'
8
- import type { MGridProps, MGridSlots } from './grid/MGrid'
9
- import type { MColumnProps, MColumnSlots } from './grid/MColumn/MColumn'
10
- import type { MRowProps, MRowSlots } from './grid/MRow/MRow'
11
- import type { MBtnProps, MBtnSlots } from './MBtn/MBtn'
12
-
13
- export * from './grid/MGrid'
14
- export * from './grid/MColumn/MColumn'
15
- export * from './grid/MContainer/MContainer'
16
- export * from './grid/MRow/MRow'
17
-
18
- export * from './MBtn/MBtn'
19
-
20
- export { MBtn, MContainer, MGrid, MColumn, MRow }
21
-
22
- export interface MythGlobalComponents {
23
- // Grid.
24
- MContainer: GlobalComponentConstructor<MContainerProps, MContainerSlots>
25
- MGrid: GlobalComponentConstructor<MGridProps, MGridSlots>
26
- MColumn: GlobalComponentConstructor<MColumnProps, MColumnSlots>
27
- MRow: GlobalComponentConstructor<MRowProps, MRowSlots>
28
-
29
- MBtn: GlobalComponentConstructor<MBtnProps, MBtnSlots>
30
- }
@@ -1,93 +0,0 @@
1
- import { computed, inject, reactive, readonly, ref } from 'vue'
2
- import { mythConfig, MythInjectionKey } from '../config/config'
3
- import { useI18n } from 'vue-i18n'
4
- import type { MythConfig } from '../types/config'
5
- import * as str from '../utils/str'
6
- import * as helpers from '../utils/helpers'
7
-
8
- export function useMyth() {
9
- const { t, te } = useI18n({ useScope: 'global' })
10
- const MythConfig = inject<MythConfig>(MythInjectionKey, mythConfig)
11
- const config = readonly(MythConfig)
12
- const name = ref('MyTh')
13
- const version = computed(() => MythConfig.version)
14
- const loadingOptions = computed(() => MythConfig.loadingOptions)
15
-
16
- const theme = reactive(MythConfig.theme)
17
- const btnStyle = computed(() => MythConfig.theme.btn)
18
- const inputStyle = computed(() => MythConfig.theme.input)
19
- const componentProps = computed(() => MythConfig.component)
20
- const __ = (key: any, ...rest: any[]): string => {
21
- key = key ?? ''
22
- const m1 = key.startsWith(':') && key.endsWith(':')
23
- const m2 = key.startsWith("{'") && key.endsWith("'}")
24
- if ((m1 || m2) && key.length > 2) {
25
- if (m1) {
26
- return key.slice(1, -1)
27
- }
28
- return key.slice(2, -2)
29
- }
30
- const attrKey = `attributes.${key}`
31
- if (te(attrKey)) {
32
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
33
- // @ts-ignore
34
- return t(attrKey, ...rest)
35
- }
36
- if (te(key)) {
37
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
38
- // @ts-ignore
39
- return t(key, ...rest)
40
- }
41
- return t(key)
42
- }
43
- const pageTitle = (name: string, num?: number) => {
44
- num ??= 2
45
- const singular = str.singular(name)
46
- const pascalSingular = str.pascalCase(name)
47
- const snakeSingular = str.snakeCase(name)
48
- const camelSingular = str.camelCase(name)
49
- const kebabSingular = str.kebabCase(name)
50
- const plural = str.plural(name)
51
- const pascalPlural = str.pascalCase(plural)
52
- const snakePlural = str.snakeCase(plural)
53
- const camelPlural = str.camelCase(plural)
54
- const kebabPlural = str.kebabCase(plural)
55
- const names = helpers.uniq<string>([
56
- name,
57
- singular,
58
- pascalSingular,
59
- snakeSingular,
60
- camelSingular,
61
- kebabSingular,
62
- plural,
63
- pascalPlural,
64
- snakePlural,
65
- camelPlural,
66
- kebabPlural
67
- ])
68
- const keys = helpers.uniq<string>(['routes', 'attributes'])
69
- for (const k of keys) {
70
- for (const n of names) {
71
- if (te(`${k}.${n}`)) {
72
- return __(`${k}.${n}`, num)
73
- }
74
- }
75
- }
76
- return __(name)
77
- }
78
-
79
- return {
80
- config,
81
- name,
82
- version,
83
- loadingOptions,
84
- theme,
85
- btnStyle,
86
- inputStyle,
87
- componentProps,
88
- __,
89
- pageTitle
90
- }
91
- }
92
-
93
- export default useMyth
@@ -1,40 +0,0 @@
1
- import { useMeta } from 'quasar'
2
- import type { MaybeRefOrGetter } from 'vue'
3
- import { toValue } from 'vue'
4
-
5
- type MetaTagOptions = Record<string, any> & {
6
- template?: (attributeValue: string) => string
7
- }
8
- export interface MetaOptions {
9
- meta?: { [name: string]: MetaTagOptions }
10
- link?: { [name: string]: Record<string, string> }
11
- script?: { [name: string]: Record<string, string> }
12
- htmlAttr?: { [name: string]: string | undefined }
13
- bodyAttr?: { [name: string]: string | undefined }
14
- noscript?: { [name: string]: string }
15
- }
16
- /**
17
- * Initializes global meta tags that bind dynamically to your mythConfig state.
18
- * Use all the variables and store them in one place for the application.
19
- */
20
- export function useMythMeta(
21
- appName?: MaybeRefOrGetter<string>,
22
- pageTitle?: MaybeRefOrGetter<string>,
23
- metaOptions?: MaybeRefOrGetter<MetaOptions>
24
- ): void {
25
- useMeta(() => {
26
- const rawAppName = toValue(appName) || 'MyTh'
27
- const rawPageTitle = toValue(pageTitle) || ''
28
- const rawOptions = toValue(metaOptions) || {}
29
- return {
30
- title: rawPageTitle,
31
- titleTemplate: (title: string) => {
32
- if (!title || title === rawAppName) {
33
- return rawAppName
34
- }
35
- return `${rawAppName} | ${title}`
36
- },
37
- ...rawOptions
38
- }
39
- })
40
- }
@@ -1,16 +0,0 @@
1
- import { type InjectionKey, reactive } from 'vue'
2
- import { version } from '../../package.json'
3
- import type { MythConfig } from '../types/config'
4
-
5
- export const mythConfig = reactive<MythConfig>({
6
- version,
7
- theme: {
8
- btn: {
9
- noCaps: true
10
- },
11
- input: {}
12
- },
13
- component: {},
14
- loadingOptions: undefined
15
- })
16
- export const MythInjectionKey = Symbol.for('_m_') as unknown as InjectionKey<MythConfig>
@@ -1,10 +0,0 @@
1
- import type { InjectionKey } from 'vue'
2
- import type { MContainerProps } from '../components/grid/MContainer/MContainer'
3
- import type { GridGutterSize, GridGutterType } from '../types/config'
4
-
5
- export const MContainerInjectionKey = Symbol.for(
6
- '_m__m-container'
7
- ) as unknown as InjectionKey<MContainerProps>
8
-
9
- export const DEFAULT_GRID_SIZE: GridGutterSize = 'md'
10
- export const DEFAULT_GRID_TYPE: GridGutterType = 'gutter'
@@ -1,2 +0,0 @@
1
- export * from './grid'
2
- export * from './config'
@@ -1,13 +0,0 @@
1
- .m-btn {
2
- display: inline-flex;
3
- align-items: center;
4
- justify-content: center;
5
- border-radius: 8px;
6
- font-weight: 500;
7
- transition: all 0.3s ease;
8
-
9
- &--primary {
10
- background-color: var(--q-primary);
11
- color: white;
12
- }
13
- }
@@ -1,9 +0,0 @@
1
- :root {
2
- --myth-border-radius: 12px;
3
- --myth-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
4
- }
5
-
6
- .myth-disabled {
7
- pointer-events: none;
8
- opacity: 0.6;
9
- }
package/src/env.d.ts DELETED
@@ -1,14 +0,0 @@
1
- declare namespace NodeJS {
2
- interface ProcessEnv {
3
- DEV: boolean
4
- PROD: boolean
5
- DEBUGGING: boolean
6
- CLIENT: boolean
7
- SERVER: boolean
8
- MODE: 'spa' | 'ssr' | 'pwa' | 'cordova' | 'capacitor'
9
- NODE_ENV: 'development' | 'production'
10
- TARGET: 'ios' | 'android' | 'chrome' | 'firefox' | undefined
11
- VUE_ROUTER_MODE: 'hash' | 'history' | 'abstract' | undefined
12
- VUE_ROUTER_BASE: string | undefined
13
- }
14
- }
@@ -1 +0,0 @@
1
- export * from './vue-plugin'
package/src/index.ts DELETED
@@ -1,4 +0,0 @@
1
- import * as VuePlugin from './vue-plugin'
2
-
3
- export * from './vue-plugin'
4
- export default VuePlugin
package/src/index.umd.js DELETED
@@ -1,2 +0,0 @@
1
- import * as VuePlugin from './vue-plugin'
2
- export default VuePlugin
@@ -1,6 +0,0 @@
1
- declare const __UI_VERSION__: string
2
-
3
- declare module '*.scss' {
4
- const content: Record<string, string>
5
- export default content
6
- }
@@ -1,22 +0,0 @@
1
- import 'quasar'
2
- import 'vue'
3
- import '@vue/runtime-core'
4
- import type { MythGlobalComponents } from './components'
5
-
6
- declare module '*.vue' {
7
- import type { DefineComponent } from 'vue'
8
- const component: DefineComponent
9
- export default component
10
- }
11
-
12
- declare module 'vue' {
13
- export interface GlobalComponents extends MythGlobalComponents {}
14
- }
15
-
16
- declare module '@vue/runtime-dom' {
17
- export interface GlobalComponents extends MythGlobalComponents {}
18
- }
19
-
20
- declare module '@vue/runtime-core' {
21
- export interface GlobalComponents extends MythGlobalComponents {}
22
- }