@indielayer/ui 1.0.1 → 1.0.3
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/LICENSE +21 -0
- package/lib/index.cjs.js +1 -1
- package/lib/index.es.js +113 -103
- package/package.json +3 -2
- package/src/components/avatar/Avatar.vue +12 -10
- package/src/components/button/Button.theme.ts +1 -1
- package/src/components/drawer/Drawer.vue +23 -16
- package/src/components/image/Image.vue +12 -10
- package/src/components/modal/Modal.vue +1 -1
- package/src/components/notifications/Notifications.theme.ts +1 -1
- package/src/components/slider/Slider.vue +6 -4
- package/src/components/textarea/Textarea.vue +3 -10
- package/src/composables/colors-utils.ts +1 -1
- package/src/version.ts +1 -1
- package/lib/common/icons.d.ts +0 -15
- package/lib/common/utils.d.ts +0 -32
- package/lib/components/alert/Alert.theme.d.ts +0 -8
- package/lib/components/alert/Alert.vue.d.ts +0 -31
- package/lib/components/alert/__tests__/Alert.spec.d.ts +0 -1
- package/lib/components/avatar/Avatar.theme.d.ts +0 -8
- package/lib/components/avatar/Avatar.vue.d.ts +0 -46
- package/lib/components/avatar/__tests__/Avatar.spec.d.ts +0 -1
- package/lib/components/badge/Badge.theme.d.ts +0 -8
- package/lib/components/badge/Badge.vue.d.ts +0 -74
- package/lib/components/badge/__tests__/Badge.spec.d.ts +0 -1
- package/lib/components/breadcrumbs/Breadcrumbs.theme.d.ts +0 -8
- package/lib/components/breadcrumbs/Breadcrumbs.vue.d.ts +0 -41
- package/lib/components/breadcrumbs/__tests__/Breadcrumbs.spec.d.ts +0 -1
- package/lib/components/button/Button.theme.d.ts +0 -10
- package/lib/components/button/Button.vue.d.ts +0 -81
- package/lib/components/button/ButtonGroup.theme.d.ts +0 -6
- package/lib/components/button/ButtonGroup.vue.d.ts +0 -52
- package/lib/components/button/__tests__/ Button.spec.d.ts +0 -1
- package/lib/components/button/__tests__/ ButtonGroup.spec.d.ts +0 -1
- package/lib/components/card/Card.theme.d.ts +0 -7
- package/lib/components/card/Card.vue.d.ts +0 -17
- package/lib/components/card/__tests__/Card.spec.d.ts +0 -1
- package/lib/components/checkbox/Checkbox.theme.d.ts +0 -11
- package/lib/components/checkbox/Checkbox.vue.d.ts +0 -77
- package/lib/components/checkbox/__tests__/Checkbox.spec.d.ts +0 -1
- package/lib/components/collapse/Collapse.theme.d.ts +0 -9
- package/lib/components/collapse/Collapse.vue.d.ts +0 -40
- package/lib/components/collapse/__tests__/Collapse.spec.d.ts +0 -1
- package/lib/components/container/Container.theme.d.ts +0 -6
- package/lib/components/container/Container.vue.d.ts +0 -14
- package/lib/components/container/__tests__/Container.spec.d.ts +0 -1
- package/lib/components/divider/Divider.theme.d.ts +0 -9
- package/lib/components/divider/Divider.vue.d.ts +0 -10
- package/lib/components/divider/__tests__/Divider.spec.d.ts +0 -1
- package/lib/components/drawer/Drawer.theme.d.ts +0 -7
- package/lib/components/drawer/Drawer.vue.d.ts +0 -61
- package/lib/components/drawer/__tests__/Drawer.spec.d.ts +0 -1
- package/lib/components/form/Form.theme.d.ts +0 -6
- package/lib/components/form/Form.vue.d.ts +0 -48
- package/lib/components/form/__tests__/Form.spec.d.ts +0 -1
- package/lib/components/helpers/InputError.d.ts +0 -8
- package/lib/components/icon/Icon.theme.d.ts +0 -7
- package/lib/components/icon/Icon.vue.d.ts +0 -36
- package/lib/components/icon/__tests__/Icon.spec.d.ts +0 -1
- package/lib/components/image/Image.theme.d.ts +0 -6
- package/lib/components/image/Image.vue.d.ts +0 -6
- package/lib/components/image/__tests__/Image.spec.d.ts +0 -1
- package/lib/components/index.d.ts +0 -45
- package/lib/components/input/Input.theme.d.ts +0 -11
- package/lib/components/input/Input.vue.d.ts +0 -119
- package/lib/components/input/__tests__/Input.spec.d.ts +0 -1
- package/lib/components/link/Link.theme.d.ts +0 -8
- package/lib/components/link/Link.vue.d.ts +0 -34
- package/lib/components/link/__tests__/Link.spec.d.ts +0 -1
- package/lib/components/menu/Menu.theme.d.ts +0 -6
- package/lib/components/menu/Menu.vue.d.ts +0 -65
- package/lib/components/menu/MenuItem.theme.d.ts +0 -8
- package/lib/components/menu/MenuItem.vue.d.ts +0 -89
- package/lib/components/menu/__tests__/Menu.spec.d.ts +0 -1
- package/lib/components/menu/__tests__/MenuItem.spec.d.ts +0 -1
- package/lib/components/modal/Modal.theme.d.ts +0 -13
- package/lib/components/modal/Modal.vue.d.ts +0 -29
- package/lib/components/modal/__tests__/Modal.spec.d.ts +0 -1
- package/lib/components/notifications/Notifications.theme.d.ts +0 -8
- package/lib/components/notifications/Notifications.vue.d.ts +0 -91
- package/lib/components/notifications/__tests__/Notifications.spec.d.ts +0 -1
- package/lib/components/pagination/Pagination.theme.d.ts +0 -9
- package/lib/components/pagination/Pagination.vue.d.ts +0 -49
- package/lib/components/pagination/PaginationItem.theme.d.ts +0 -7
- package/lib/components/pagination/PaginationItem.vue.d.ts +0 -33
- package/lib/components/pagination/__tests__/Pagination.spec.d.ts +0 -1
- package/lib/components/pagination/__tests__/PaginationItem.spec.d.ts +0 -1
- package/lib/components/popover/Popover.theme.d.ts +0 -7
- package/lib/components/popover/Popover.vue.d.ts +0 -64
- package/lib/components/popover/PopoverContainer.theme.d.ts +0 -6
- package/lib/components/popover/PopoverContainer.vue.d.ts +0 -14
- package/lib/components/popover/__tests__/Popover.spec.d.ts +0 -1
- package/lib/components/popover/__tests__/PopoverContainer.spec.d.ts +0 -1
- package/lib/components/progress/Progress.theme.d.ts +0 -10
- package/lib/components/progress/Progress.vue.d.ts +0 -40
- package/lib/components/progress/__tests__/Progress.spec.d.ts +0 -1
- package/lib/components/radio/Radio.theme.d.ts +0 -12
- package/lib/components/radio/Radio.vue.d.ts +0 -78
- package/lib/components/radio/__tests__/Radio.spec.d.ts +0 -1
- package/lib/components/scroll/Scroll.theme.d.ts +0 -6
- package/lib/components/scroll/Scroll.vue.d.ts +0 -23
- package/lib/components/scroll/__tests__/Scroll.spec.d.ts +0 -1
- package/lib/components/select/Select.theme.d.ts +0 -13
- package/lib/components/select/Select.vue.d.ts +0 -80
- package/lib/components/select/__tests__/Select.spec.d.ts +0 -1
- package/lib/components/skeleton/Skeleton.theme.d.ts +0 -6
- package/lib/components/skeleton/Skeleton.vue.d.ts +0 -14
- package/lib/components/skeleton/__tests__/Skeleton.spec.d.ts +0 -1
- package/lib/components/slider/Slider.theme.d.ts +0 -10
- package/lib/components/slider/Slider.vue.d.ts +0 -87
- package/lib/components/slider/__tests__/Slider.spec.d.ts +0 -1
- package/lib/components/spacer/Spacer.d.ts +0 -2
- package/lib/components/spacer/__tests__/Spacer.spec.d.ts +0 -1
- package/lib/components/spinner/Spinner.vue.d.ts +0 -25
- package/lib/components/spinner/__tests__/Spinner.spec.d.ts +0 -1
- package/lib/components/tab/Tab.theme.d.ts +0 -9
- package/lib/components/tab/Tab.vue.d.ts +0 -43
- package/lib/components/tab/TabGroup.theme.d.ts +0 -10
- package/lib/components/tab/TabGroup.vue.d.ts +0 -57
- package/lib/components/tab/__tests__/Tab.spec.d.ts +0 -1
- package/lib/components/tab/__tests__/TabGroup.spec.d.ts +0 -1
- package/lib/components/table/Table.theme.d.ts +0 -8
- package/lib/components/table/Table.vue.d.ts +0 -78
- package/lib/components/table/TableBody.d.ts +0 -2
- package/lib/components/table/TableCell.theme.d.ts +0 -7
- package/lib/components/table/TableCell.vue.d.ts +0 -33
- package/lib/components/table/TableHead.d.ts +0 -2
- package/lib/components/table/TableHeader.vue.d.ts +0 -33
- package/lib/components/table/TableRow.vue.d.ts +0 -23
- package/lib/components/table/__tests__/Table.spec.d.ts +0 -1
- package/lib/components/tag/Tag.theme.d.ts +0 -9
- package/lib/components/tag/Tag.vue.d.ts +0 -45
- package/lib/components/tag/__tests__/Tag.spec.d.ts +0 -1
- package/lib/components/textarea/Textarea.theme.d.ts +0 -10
- package/lib/components/textarea/Textarea.vue.d.ts +0 -100
- package/lib/components/textarea/__tests__/Textarea.spec.d.ts +0 -1
- package/lib/components/toggle/Toggle.theme.d.ts +0 -11
- package/lib/components/toggle/Toggle.vue.d.ts +0 -78
- package/lib/components/toggle/__tests__/Toggle.spec.d.ts +0 -1
- package/lib/components/tooltip/Tooltip.theme.d.ts +0 -11
- package/lib/components/tooltip/Tooltip.vue.d.ts +0 -2
- package/lib/components/tooltip/__tests__/Tooltip.spec.d.ts +0 -1
- package/lib/composables/colors-utils.d.ts +0 -7
- package/lib/composables/colors.d.ts +0 -30
- package/lib/composables/common.d.ts +0 -15
- package/lib/composables/css.d.ts +0 -6
- package/lib/composables/index.d.ts +0 -7
- package/lib/composables/inputtable.d.ts +0 -37
- package/lib/composables/interactive.d.ts +0 -15
- package/lib/composables/keys.d.ts +0 -8
- package/lib/composables/notifications.d.ts +0 -1
- package/lib/composables/theme.d.ts +0 -20
- package/lib/create.d.ts +0 -13
- package/lib/index.d.ts +0 -6
- package/lib/install.d.ts +0 -4
- package/lib/version.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indielayer/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Indielayer UI Components with Tailwind CSS build for Vue 3",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "João Teixeira",
|
|
@@ -105,5 +105,6 @@
|
|
|
105
105
|
},
|
|
106
106
|
"publishConfig": {
|
|
107
107
|
"access": "public"
|
|
108
|
-
}
|
|
108
|
+
},
|
|
109
|
+
"gitHead": "d7119d101a4a1ac18fbfd700e291225d2e53abe7"
|
|
109
110
|
}
|
|
@@ -41,17 +41,19 @@ const initials = computed(() => {
|
|
|
41
41
|
return ''
|
|
42
42
|
})
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
if (typeof window !== 'undefined' && Image) {
|
|
45
|
+
watch(() => props.image, (src) => {
|
|
46
|
+
source.value = undefined
|
|
47
|
+
if (!src) return
|
|
48
|
+
const img = new Image()
|
|
48
49
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}, {
|
|
53
|
-
|
|
54
|
-
})
|
|
50
|
+
img.onload = () => { source.value = props.image }
|
|
51
|
+
img.onerror = () => { }
|
|
52
|
+
img.src = src
|
|
53
|
+
}, {
|
|
54
|
+
immediate: true,
|
|
55
|
+
})
|
|
56
|
+
}
|
|
55
57
|
|
|
56
58
|
const { styles, classes, className } = useTheme('avatar', theme, props, { source })
|
|
57
59
|
</script>
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
classes: {
|
|
5
5
|
wrapper({ props, slots, data }: ThemeParams) {
|
|
6
6
|
/*tw*/
|
|
7
|
-
const classes = ['relative transition duration-150 focus:outline-none inline-flex items-center justify-center font-medium whitespace-nowrap overflow-hidden align-middle active:!shadow-none border']
|
|
7
|
+
const classes = ['relative transition duration-150 focus:outline-none inline-flex items-center justify-center font-medium whitespace-nowrap overflow-hidden align-middle active:!shadow-none border appearance-none']
|
|
8
8
|
|
|
9
9
|
// radius
|
|
10
10
|
if (!data.isButtonGroup) classes.push(props.rounded ? 'rounded-full' : 'rounded-md')
|
|
@@ -46,14 +46,23 @@ const value = ref<boolean>(props.modelValue)
|
|
|
46
46
|
const backdropRef = ref<HTMLElement | null>(null)
|
|
47
47
|
const drawerRef = ref<HTMLElement | null>(null)
|
|
48
48
|
|
|
49
|
+
let deferShow = ref<boolean>(false)
|
|
50
|
+
|
|
51
|
+
if (typeof window !== 'undefined') deferShow = ref<boolean>(!!(props.teleportTo && (props.teleportTo instanceof HTMLElement || document.querySelector(props.teleportTo))))
|
|
52
|
+
|
|
49
53
|
const isTailwindBreakpoint = typeof props.breakpoint === 'string'
|
|
50
54
|
const breakpoints = useBreakpoints(isTailwindBreakpoint ? breakpointsTailwind : { md: props.breakpoint || 768 } as Breakpoints)
|
|
51
55
|
const point = breakpoints.smaller(isTailwindBreakpoint ? props.breakpoint : 'md')
|
|
52
56
|
|
|
53
57
|
watchEffect(() => {
|
|
54
58
|
if (props.breakpoint) {
|
|
55
|
-
|
|
56
|
-
|
|
59
|
+
if (point.value) {
|
|
60
|
+
detached.value = true
|
|
61
|
+
close()
|
|
62
|
+
} else {
|
|
63
|
+
detached.value = false
|
|
64
|
+
open()
|
|
65
|
+
}
|
|
57
66
|
}
|
|
58
67
|
})
|
|
59
68
|
|
|
@@ -63,7 +72,7 @@ watch(() => props.modelValue, (val) => {
|
|
|
63
72
|
value.value = val
|
|
64
73
|
})
|
|
65
74
|
|
|
66
|
-
useEventListener(document, 'keydown', onKeyDown)
|
|
75
|
+
if (typeof window !== 'undefined') useEventListener(document, 'keydown', onKeyDown)
|
|
67
76
|
|
|
68
77
|
function onKeyDown(event: KeyboardEvent) {
|
|
69
78
|
if (event.key === 'Escape' && value.value) close()
|
|
@@ -98,17 +107,6 @@ const { lengthX, lengthY } = useSwipe(drawerRef, {
|
|
|
98
107
|
},
|
|
99
108
|
})
|
|
100
109
|
|
|
101
|
-
function close(e?: PointerEvent) {
|
|
102
|
-
if (e && e.target !== backdropRef.value) return
|
|
103
|
-
value.value = false
|
|
104
|
-
emit('update:modelValue', false)
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
function open() {
|
|
108
|
-
value.value = true
|
|
109
|
-
emit('update:modelValue', true)
|
|
110
|
-
}
|
|
111
|
-
|
|
112
110
|
const autoStyles = computed(() => {
|
|
113
111
|
const s: Record<string, string> = {}
|
|
114
112
|
|
|
@@ -169,7 +167,16 @@ function onLeave(el: HTMLElement, done: ()=> void) {
|
|
|
169
167
|
}, 1)
|
|
170
168
|
}
|
|
171
169
|
|
|
172
|
-
|
|
170
|
+
function close(e?: PointerEvent) {
|
|
171
|
+
if (e && e.target !== backdropRef.value) return
|
|
172
|
+
value.value = false
|
|
173
|
+
emit('update:modelValue', false)
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
function open() {
|
|
177
|
+
value.value = true
|
|
178
|
+
emit('update:modelValue', true)
|
|
179
|
+
}
|
|
173
180
|
|
|
174
181
|
onMounted(() => {
|
|
175
182
|
deferShow.value = true
|
|
@@ -190,7 +197,7 @@ defineExpose({ open, close })
|
|
|
190
197
|
@leave="onLeave"
|
|
191
198
|
>
|
|
192
199
|
<div
|
|
193
|
-
v-if="
|
|
200
|
+
v-if="value"
|
|
194
201
|
ref="backdropRef"
|
|
195
202
|
:class="[
|
|
196
203
|
$attrs.class,
|
|
@@ -16,16 +16,18 @@ const props = defineProps({
|
|
|
16
16
|
|
|
17
17
|
const source = ref<string | undefined>(fallback)
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
19
|
+
if (typeof window !== 'undefined' && Image) {
|
|
20
|
+
watch(() => props.src, (src) => {
|
|
21
|
+
if (!src) return
|
|
22
|
+
const img = new Image()
|
|
23
|
+
|
|
24
|
+
img.onload = () => { source.value = props.src }
|
|
25
|
+
img.onerror = () => { }
|
|
26
|
+
img.src = src
|
|
27
|
+
}, {
|
|
28
|
+
immediate: true,
|
|
29
|
+
})
|
|
30
|
+
}
|
|
29
31
|
|
|
30
32
|
const { styles, classes, className } = useTheme('image', theme, props)
|
|
31
33
|
</script>
|
|
@@ -60,7 +60,7 @@ watch(() => props.modelValue, (val) => {
|
|
|
60
60
|
}
|
|
61
61
|
})
|
|
62
62
|
|
|
63
|
-
useEventListener(document, 'keydown', onKeyDown)
|
|
63
|
+
if (typeof window !== 'undefined') useEventListener(document, 'keydown', onKeyDown)
|
|
64
64
|
|
|
65
65
|
function onKeyDown(event: KeyboardEvent) {
|
|
66
66
|
if (event.key === 'Escape' && value.value) close()
|
|
@@ -6,6 +6,6 @@ export default {
|
|
|
6
6
|
|
|
7
7
|
list: 'flex flex-col items-end w-full sm:w-[520px] px-4',
|
|
8
8
|
|
|
9
|
-
item: 'w-full flex items-center rounded-md px-4 py-3 bg-gray-800 dark:bg-gray-50 text-white dark:text-gray-900',
|
|
9
|
+
item: 'w-full flex items-center rounded-md px-4 py-3 bg-gray-800 dark:bg-gray-50 text-white dark:text-gray-900 border border-gray-700 dark:border-gray-100',
|
|
10
10
|
},
|
|
11
11
|
}
|
|
@@ -119,10 +119,12 @@ function endDrag(e: PointerEvent) {
|
|
|
119
119
|
e.stopPropagation()
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
|
|
123
|
-
useEventListener(
|
|
124
|
-
useEventListener(
|
|
125
|
-
useEventListener(window, '
|
|
122
|
+
if (typeof window !== 'undefined') {
|
|
123
|
+
useEventListener(progressRef, 'pointerdown', startProgressDrag, false)
|
|
124
|
+
useEventListener(dragRef, 'pointerdown', startDrag, false)
|
|
125
|
+
useEventListener(window, 'pointermove', moveDrag, true)
|
|
126
|
+
useEventListener(window, 'pointerup', endDrag, true)
|
|
127
|
+
}
|
|
126
128
|
|
|
127
129
|
useEventListener(elRef, 'keydown', handleKeydown)
|
|
128
130
|
|
|
@@ -3,8 +3,8 @@ export default { name: 'XTextarea' }
|
|
|
3
3
|
</script>
|
|
4
4
|
|
|
5
5
|
<script setup lang="ts">
|
|
6
|
-
import { ref, watch
|
|
7
|
-
import { useResizeObserver } from '@vueuse/core'
|
|
6
|
+
import { ref, watch } from 'vue'
|
|
7
|
+
import { useResizeObserver, useEventListener } from '@vueuse/core'
|
|
8
8
|
import { useCSS } from '../../composables/css'
|
|
9
9
|
import { useTheme } from '../../composables/theme'
|
|
10
10
|
import { useCommon } from '../../composables/common'
|
|
@@ -45,14 +45,7 @@ const emit = defineEmits(useInputtable.emits())
|
|
|
45
45
|
const elRef = ref<HTMLTextAreaElement | null>(null)
|
|
46
46
|
|
|
47
47
|
useResizeObserver(elRef, resize)
|
|
48
|
-
|
|
49
|
-
onMounted(() => {
|
|
50
|
-
window.addEventListener('resize', resize)
|
|
51
|
-
})
|
|
52
|
-
|
|
53
|
-
onBeforeUnmount(() => {
|
|
54
|
-
window.removeEventListener('resize', resize)
|
|
55
|
-
})
|
|
48
|
+
if (typeof window !== 'undefined') useEventListener(window, 'resize', resize)
|
|
56
49
|
|
|
57
50
|
watch([() => props.modelValue, () => props.size], () => {
|
|
58
51
|
setTimeout(resize)
|
|
@@ -3,7 +3,7 @@ import type { Tone, ColorLibrary, ColorPalette } from './colors'
|
|
|
3
3
|
const isHex = (hex: string) => /^#(?:[A-Fa-f0-9]{3}){1,2}$/.test(hex)
|
|
4
4
|
const isRGB = (rgb: string) => /^rgb[(](?:\s*0*(?:\d\d?(?:\.\d+)?(?:\s*%)?|\.\d+\s*%|100(?:\.0*)?\s*%|(?:1\d\d|2[0-4]\d|25[0-5])(?:\.\d+)?)\s*(?:,(?![)])|(?=[)]))){3}[)]$/.test(rgb)
|
|
5
5
|
const isRGBA = (rgba: string) => /^^rgba[(](?:\s*0*(?:\d\d?(?:\.\d+)?(?:\s*%)?|\.\d+\s*%|100(?:\.0*)?\s*%|(?:1\d\d|2[0-4]\d|25[0-5])(?:\.\d+)?)\s*,){3}\s*0*(?:\.\d+|1(?:\.0*)?)\s*[)]$/.test(rgba)
|
|
6
|
-
const parseRGB = (rgb: string) => rgb.match(
|
|
6
|
+
const parseRGB = (rgb: string) => rgb.match(/\((.*?)\)/)?.[1].split(',')
|
|
7
7
|
const hexToRGB = (hex: string) => hex.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i, (m, r, g, b) => '#' + r + r + g + g + b + b)
|
|
8
8
|
.substring(1).match(/.{2}/g)
|
|
9
9
|
?.map((x) => parseInt(x, 16))
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '1.0.
|
|
1
|
+
export default '1.0.2'
|
package/lib/common/icons.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare const infoIcon = "<path d=\"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z\" />";
|
|
2
|
-
export declare const successIcon = "<path d=\"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z\" />";
|
|
3
|
-
export declare const errorIcon = "<path d=\"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z\" />";
|
|
4
|
-
export declare const warningIcon = "<path d=\"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z\" />";
|
|
5
|
-
export declare const closeIcon = "<path d=\"M6 18L18 6M6 6l12 12\" />";
|
|
6
|
-
export declare const avatarIcon = "<path d=\"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z\" />";
|
|
7
|
-
export declare const arrowRightIcon = "<path d=\"M13 7l5 5m0 0l-5 5m5-5H6\" />";
|
|
8
|
-
export declare const eyeIcon = "<path d=\"M15 12a3 3 0 11-6 0 3 3 0 016 0z\" /><path d=\"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z\" />";
|
|
9
|
-
export declare const eyeVisibleIcon = "<path d=\"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21\" />";
|
|
10
|
-
export declare const dotsIcon = "<path d=\"M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z\" />";
|
|
11
|
-
export declare const prevIcon = "<path d=\"M15 19l-7-7 7-7\" />";
|
|
12
|
-
export declare const nextIcon = "<path d=\"M9 5l7 7-7 7\" />";
|
|
13
|
-
export declare const checkIcon = "<path d=\"M5 13l4 4L19 7\" />";
|
|
14
|
-
export declare const chevronDownIcon = "<path d=\"M8 9l4-4 4 4m0 6l-4 4-4-4\" />";
|
|
15
|
-
export declare const externalIcon = "<line x1=\"7\" y1=\"17\" x2=\"17\" y2=\"7\" /><polyline points=\"7 7 17 7 17 17\" />";
|
package/lib/common/utils.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deeply unref a value, recursing into objects and arrays.
|
|
3
|
-
*
|
|
4
|
-
* @param {Mixed} val - The value to deeply unref.
|
|
5
|
-
*
|
|
6
|
-
* @return {Mixed}
|
|
7
|
-
*/
|
|
8
|
-
export declare const deepUnref: (val: any) => any;
|
|
9
|
-
/**
|
|
10
|
-
* Unref a value, recursing into it if it's an object.
|
|
11
|
-
*
|
|
12
|
-
* @param {Mixed} val - The value to unref.
|
|
13
|
-
*
|
|
14
|
-
* @return {Mixed}
|
|
15
|
-
*/
|
|
16
|
-
export declare const smartUnref: (val: any) => any;
|
|
17
|
-
/**
|
|
18
|
-
* Unref an array, recursively.
|
|
19
|
-
*
|
|
20
|
-
* @param {Array} arr - The array to unref.
|
|
21
|
-
*
|
|
22
|
-
* @return {Array}
|
|
23
|
-
*/
|
|
24
|
-
export declare const unrefArray: any;
|
|
25
|
-
/**
|
|
26
|
-
* Unref an object, recursively.
|
|
27
|
-
*
|
|
28
|
-
* @param {Object} obj - The object to unref.
|
|
29
|
-
*
|
|
30
|
-
* @return {Object}
|
|
31
|
-
*/
|
|
32
|
-
export declare const unrefObject: (obj: any) => any;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<{
|
|
3
|
-
type: PropType<"success" | "warning" | "error" | "info" | undefined>;
|
|
4
|
-
glow: BooleanConstructor;
|
|
5
|
-
light: BooleanConstructor;
|
|
6
|
-
outlined: BooleanConstructor;
|
|
7
|
-
removable: BooleanConstructor;
|
|
8
|
-
color: {
|
|
9
|
-
readonly type: StringConstructor;
|
|
10
|
-
readonly default: string | undefined;
|
|
11
|
-
};
|
|
12
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "remove"[], "remove", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
-
type: PropType<"success" | "warning" | "error" | "info" | undefined>;
|
|
14
|
-
glow: BooleanConstructor;
|
|
15
|
-
light: BooleanConstructor;
|
|
16
|
-
outlined: BooleanConstructor;
|
|
17
|
-
removable: BooleanConstructor;
|
|
18
|
-
color: {
|
|
19
|
-
readonly type: StringConstructor;
|
|
20
|
-
readonly default: string | undefined;
|
|
21
|
-
};
|
|
22
|
-
}>> & {
|
|
23
|
-
onRemove?: ((...args: any[]) => any) | undefined;
|
|
24
|
-
}, {
|
|
25
|
-
glow: boolean;
|
|
26
|
-
light: boolean;
|
|
27
|
-
outlined: boolean;
|
|
28
|
-
removable: boolean;
|
|
29
|
-
color: string;
|
|
30
|
-
}>;
|
|
31
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
tag: {
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
default: string;
|
|
5
|
-
};
|
|
6
|
-
name: StringConstructor;
|
|
7
|
-
alt: StringConstructor;
|
|
8
|
-
image: StringConstructor;
|
|
9
|
-
outlined: BooleanConstructor;
|
|
10
|
-
rounded: BooleanConstructor;
|
|
11
|
-
color: {
|
|
12
|
-
readonly type: StringConstructor;
|
|
13
|
-
readonly default: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
size: {
|
|
16
|
-
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
17
|
-
readonly default: "md";
|
|
18
|
-
readonly validator: (value: string) => boolean;
|
|
19
|
-
};
|
|
20
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
-
tag: {
|
|
22
|
-
type: StringConstructor;
|
|
23
|
-
default: string;
|
|
24
|
-
};
|
|
25
|
-
name: StringConstructor;
|
|
26
|
-
alt: StringConstructor;
|
|
27
|
-
image: StringConstructor;
|
|
28
|
-
outlined: BooleanConstructor;
|
|
29
|
-
rounded: BooleanConstructor;
|
|
30
|
-
color: {
|
|
31
|
-
readonly type: StringConstructor;
|
|
32
|
-
readonly default: string | undefined;
|
|
33
|
-
};
|
|
34
|
-
size: {
|
|
35
|
-
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
36
|
-
readonly default: "md";
|
|
37
|
-
readonly validator: (value: string) => boolean;
|
|
38
|
-
};
|
|
39
|
-
}>>, {
|
|
40
|
-
size: import("../../composables/common").Size;
|
|
41
|
-
outlined: boolean;
|
|
42
|
-
color: string;
|
|
43
|
-
tag: string;
|
|
44
|
-
rounded: boolean;
|
|
45
|
-
}>;
|
|
46
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<{
|
|
3
|
-
tag: {
|
|
4
|
-
type: StringConstructor;
|
|
5
|
-
default: string;
|
|
6
|
-
};
|
|
7
|
-
position: {
|
|
8
|
-
type: PropType<"top" | "bottom">;
|
|
9
|
-
default: string;
|
|
10
|
-
};
|
|
11
|
-
align: {
|
|
12
|
-
type: PropType<"left" | "right">;
|
|
13
|
-
default: string;
|
|
14
|
-
};
|
|
15
|
-
offsetX: (NumberConstructor | StringConstructor)[];
|
|
16
|
-
offsetY: (NumberConstructor | StringConstructor)[];
|
|
17
|
-
animated: BooleanConstructor;
|
|
18
|
-
outlined: BooleanConstructor;
|
|
19
|
-
icon: StringConstructor;
|
|
20
|
-
show: {
|
|
21
|
-
type: BooleanConstructor;
|
|
22
|
-
default: boolean;
|
|
23
|
-
};
|
|
24
|
-
color: {
|
|
25
|
-
readonly type: StringConstructor;
|
|
26
|
-
readonly default: string | undefined;
|
|
27
|
-
};
|
|
28
|
-
size: {
|
|
29
|
-
readonly type: PropType<import("../../composables/common").Size>;
|
|
30
|
-
readonly default: "md";
|
|
31
|
-
readonly validator: (value: string) => boolean;
|
|
32
|
-
};
|
|
33
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
-
tag: {
|
|
35
|
-
type: StringConstructor;
|
|
36
|
-
default: string;
|
|
37
|
-
};
|
|
38
|
-
position: {
|
|
39
|
-
type: PropType<"top" | "bottom">;
|
|
40
|
-
default: string;
|
|
41
|
-
};
|
|
42
|
-
align: {
|
|
43
|
-
type: PropType<"left" | "right">;
|
|
44
|
-
default: string;
|
|
45
|
-
};
|
|
46
|
-
offsetX: (NumberConstructor | StringConstructor)[];
|
|
47
|
-
offsetY: (NumberConstructor | StringConstructor)[];
|
|
48
|
-
animated: BooleanConstructor;
|
|
49
|
-
outlined: BooleanConstructor;
|
|
50
|
-
icon: StringConstructor;
|
|
51
|
-
show: {
|
|
52
|
-
type: BooleanConstructor;
|
|
53
|
-
default: boolean;
|
|
54
|
-
};
|
|
55
|
-
color: {
|
|
56
|
-
readonly type: StringConstructor;
|
|
57
|
-
readonly default: string | undefined;
|
|
58
|
-
};
|
|
59
|
-
size: {
|
|
60
|
-
readonly type: PropType<import("../../composables/common").Size>;
|
|
61
|
-
readonly default: "md";
|
|
62
|
-
readonly validator: (value: string) => boolean;
|
|
63
|
-
};
|
|
64
|
-
}>>, {
|
|
65
|
-
size: import("../../composables/common").Size;
|
|
66
|
-
outlined: boolean;
|
|
67
|
-
color: string;
|
|
68
|
-
tag: string;
|
|
69
|
-
position: "top" | "bottom";
|
|
70
|
-
align: "left" | "right";
|
|
71
|
-
animated: boolean;
|
|
72
|
-
show: boolean;
|
|
73
|
-
}>;
|
|
74
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
2
|
-
export declare type BreadcrumbItem = {
|
|
3
|
-
label: string;
|
|
4
|
-
to?: string | object;
|
|
5
|
-
href?: string;
|
|
6
|
-
color?: string;
|
|
7
|
-
icon?: string;
|
|
8
|
-
shadow?: boolean;
|
|
9
|
-
underline?: boolean;
|
|
10
|
-
};
|
|
11
|
-
declare const _default: import("vue").DefineComponent<{
|
|
12
|
-
items: PropType<BreadcrumbItem[]>;
|
|
13
|
-
icon: {
|
|
14
|
-
type: StringConstructor;
|
|
15
|
-
default: string;
|
|
16
|
-
};
|
|
17
|
-
shadow: BooleanConstructor;
|
|
18
|
-
underline: BooleanConstructor;
|
|
19
|
-
color: {
|
|
20
|
-
readonly type: StringConstructor;
|
|
21
|
-
readonly default: string | undefined;
|
|
22
|
-
};
|
|
23
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
-
items: PropType<BreadcrumbItem[]>;
|
|
25
|
-
icon: {
|
|
26
|
-
type: StringConstructor;
|
|
27
|
-
default: string;
|
|
28
|
-
};
|
|
29
|
-
shadow: BooleanConstructor;
|
|
30
|
-
underline: BooleanConstructor;
|
|
31
|
-
color: {
|
|
32
|
-
readonly type: StringConstructor;
|
|
33
|
-
readonly default: string | undefined;
|
|
34
|
-
};
|
|
35
|
-
}>>, {
|
|
36
|
-
icon: string;
|
|
37
|
-
color: string;
|
|
38
|
-
shadow: boolean;
|
|
39
|
-
underline: boolean;
|
|
40
|
-
}>;
|
|
41
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ThemeParams } from '../../composables/theme';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
classes: {
|
|
4
|
-
wrapper({ props, slots, data }: ThemeParams): string[];
|
|
5
|
-
iconLeft: ({ slots }: ThemeParams) => "mr-2" | "m-0.5";
|
|
6
|
-
iconRight: ({ slots }: ThemeParams) => "m-0.5" | "ml-2";
|
|
7
|
-
};
|
|
8
|
-
styles({ props, colors, css, data }: ThemeParams): (string | object)[];
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
tag: {
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
default: string;
|
|
5
|
-
};
|
|
6
|
-
type: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
default: string;
|
|
9
|
-
};
|
|
10
|
-
icon: StringConstructor;
|
|
11
|
-
iconLeft: StringConstructor;
|
|
12
|
-
iconRight: StringConstructor;
|
|
13
|
-
to: StringConstructor;
|
|
14
|
-
outlined: BooleanConstructor;
|
|
15
|
-
rounded: BooleanConstructor;
|
|
16
|
-
glow: BooleanConstructor;
|
|
17
|
-
ghost: BooleanConstructor;
|
|
18
|
-
light: BooleanConstructor;
|
|
19
|
-
block: BooleanConstructor;
|
|
20
|
-
flat: BooleanConstructor;
|
|
21
|
-
disabled: BooleanConstructor;
|
|
22
|
-
loading: BooleanConstructor;
|
|
23
|
-
color: {
|
|
24
|
-
readonly type: StringConstructor;
|
|
25
|
-
readonly default: string | undefined;
|
|
26
|
-
};
|
|
27
|
-
size: {
|
|
28
|
-
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
29
|
-
readonly default: "md";
|
|
30
|
-
readonly validator: (value: string) => boolean;
|
|
31
|
-
};
|
|
32
|
-
}, {
|
|
33
|
-
focus: () => void | undefined;
|
|
34
|
-
blur: () => void | undefined;
|
|
35
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
-
tag: {
|
|
37
|
-
type: StringConstructor;
|
|
38
|
-
default: string;
|
|
39
|
-
};
|
|
40
|
-
type: {
|
|
41
|
-
type: StringConstructor;
|
|
42
|
-
default: string;
|
|
43
|
-
};
|
|
44
|
-
icon: StringConstructor;
|
|
45
|
-
iconLeft: StringConstructor;
|
|
46
|
-
iconRight: StringConstructor;
|
|
47
|
-
to: StringConstructor;
|
|
48
|
-
outlined: BooleanConstructor;
|
|
49
|
-
rounded: BooleanConstructor;
|
|
50
|
-
glow: BooleanConstructor;
|
|
51
|
-
ghost: BooleanConstructor;
|
|
52
|
-
light: BooleanConstructor;
|
|
53
|
-
block: BooleanConstructor;
|
|
54
|
-
flat: BooleanConstructor;
|
|
55
|
-
disabled: BooleanConstructor;
|
|
56
|
-
loading: BooleanConstructor;
|
|
57
|
-
color: {
|
|
58
|
-
readonly type: StringConstructor;
|
|
59
|
-
readonly default: string | undefined;
|
|
60
|
-
};
|
|
61
|
-
size: {
|
|
62
|
-
readonly type: import("vue").PropType<import("../../composables/common").Size>;
|
|
63
|
-
readonly default: "md";
|
|
64
|
-
readonly validator: (value: string) => boolean;
|
|
65
|
-
};
|
|
66
|
-
}>>, {
|
|
67
|
-
flat: boolean;
|
|
68
|
-
size: import("../../composables/common").Size;
|
|
69
|
-
type: string;
|
|
70
|
-
glow: boolean;
|
|
71
|
-
light: boolean;
|
|
72
|
-
outlined: boolean;
|
|
73
|
-
color: string;
|
|
74
|
-
tag: string;
|
|
75
|
-
rounded: boolean;
|
|
76
|
-
ghost: boolean;
|
|
77
|
-
block: boolean;
|
|
78
|
-
disabled: boolean;
|
|
79
|
-
loading: boolean;
|
|
80
|
-
}>;
|
|
81
|
-
export default _default;
|