daisy-ui-kit 3.0.12 → 5.0.0-pre.11
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/README.md +62 -14
- package/app/components/Accordion.vue +29 -0
- package/app/components/Alert.vue +36 -0
- package/app/components/Avatar.vue +131 -0
- package/app/components/AvatarGroup.vue +22 -0
- package/app/components/Badge.vue +67 -0
- package/app/components/Button.vue +135 -0
- package/app/components/Calendar.vue +89 -0
- package/app/components/CalendarInput.vue +174 -0
- package/app/components/CalendarSkeleton.vue +87 -0
- package/app/components/Card.vue +46 -0
- package/{components → app/components}/CardActions.vue +2 -5
- package/{components → app/components}/CardBody.vue +2 -5
- package/{components → app/components}/CardTitle.vue +1 -6
- package/app/components/Carousel.vue +24 -0
- package/app/components/Chat.vue +26 -0
- package/app/components/ChatBubble.vue +31 -0
- package/app/components/Checkbox.vue +51 -0
- package/app/components/Collapse.vue +75 -0
- package/app/components/CollapseTitle.vue +15 -0
- package/{components → app/components}/Countdown.vue +1 -1
- package/app/components/CountdownTimers.vue +69 -0
- package/app/components/Counter.vue +21 -0
- package/app/components/DaisyLink.vue +52 -0
- package/app/components/Diff.vue +11 -0
- package/app/components/Divider.vue +43 -0
- package/app/components/Dock.vue +60 -0
- package/app/components/DockItem.vue +26 -0
- package/app/components/DockLabel.vue +5 -0
- package/{components → app/components}/Drawer.vue +17 -12
- package/{components → app/components}/DrawerContent.vue +8 -5
- package/{components → app/components}/DrawerSide.vue +8 -5
- package/app/components/Dropdown.vue +106 -0
- package/app/components/DropdownButton.vue +23 -0
- package/app/components/DropdownContent.vue +127 -0
- package/{components → app/components}/DropdownTarget.vue +9 -2
- package/app/components/Fab.vue +16 -0
- package/app/components/FabClose.vue +18 -0
- package/app/components/FabMainAction.vue +5 -0
- package/app/components/FabTrigger.vue +117 -0
- package/app/components/Fieldset.vue +16 -0
- package/app/components/FileInput.vue +53 -0
- package/app/components/Filter.vue +125 -0
- package/app/components/Flex.vue +84 -0
- package/{components → app/components}/FlexItem.vue +30 -27
- package/app/components/Footer.vue +31 -0
- package/{components → app/components}/FooterTitle.vue +8 -5
- package/app/components/FormControl.vue +5 -0
- package/{components → app/components}/Hero.vue +8 -5
- package/{components → app/components}/HeroContent.vue +8 -5
- package/app/components/Hover3D.vue +22 -0
- package/app/components/HoverGallery.vue +11 -0
- package/{components → app/components}/Indicator.vue +8 -5
- package/{components → app/components}/IndicatorItem.vue +16 -13
- package/app/components/Input.vue +126 -0
- package/app/components/Kbd.vue +25 -0
- package/app/components/Label.vue +100 -0
- package/{components/CollapseTitle.vue → app/components/List.vue} +1 -1
- package/{components/FormControl.vue → app/components/ListColGrow.vue} +1 -1
- package/app/components/ListColWrap.vue +5 -0
- package/{components/Stat.vue → app/components/ListRow.vue} +1 -1
- package/app/components/LoadingBall.vue +42 -0
- package/app/components/LoadingBars.vue +42 -0
- package/app/components/LoadingDots.vue +42 -0
- package/app/components/LoadingInfinity.vue +42 -0
- package/app/components/LoadingRing.vue +42 -0
- package/app/components/LoadingSpinner.vue +42 -0
- package/app/components/Mask.vue +49 -0
- package/app/components/Menu.vue +30 -0
- package/app/components/MenuExpand.vue +94 -0
- package/app/components/MenuExpandToggle.vue +20 -0
- package/{components → app/components}/MenuItem.vue +7 -6
- package/app/components/MockupPhone.vue +14 -0
- package/{components → app/components}/Modal.vue +28 -13
- package/app/components/NavButton.vue +12 -0
- package/{components → app/components}/Navbar.vue +3 -5
- package/{components → app/components}/NavbarCenter.vue +3 -5
- package/{components → app/components}/NavbarEnd.vue +3 -5
- package/{components → app/components}/NavbarStart.vue +3 -5
- package/app/components/Progress.vue +46 -0
- package/{components → app/components}/Prose.vue +8 -3
- package/app/components/RadialProgress.vue +36 -0
- package/app/components/Radio.vue +69 -0
- package/{components → app/components}/RadioGroup.vue +2 -1
- package/app/components/Range.vue +61 -0
- package/app/components/RangeMeasure.vue +87 -0
- package/{components → app/components}/RangeMeasureTick.vue +9 -14
- package/app/components/Rating.vue +197 -0
- package/app/components/Select.vue +101 -0
- package/app/components/Skeleton.vue +5 -0
- package/app/components/SkeletonText.vue +11 -0
- package/app/components/Stack.vue +25 -0
- package/app/components/Stat.vue +19 -0
- package/app/components/Status.vue +43 -0
- package/app/components/Step.vue +34 -0
- package/app/components/StepIcon.vue +5 -0
- package/app/components/Steps.vue +23 -0
- package/app/components/Swap.vue +56 -0
- package/app/components/Tab.vue +51 -0
- package/{components → app/components}/TabContent.vue +10 -10
- package/app/components/Table.vue +32 -0
- package/app/components/Tabs.vue +53 -0
- package/app/components/Text.vue +162 -0
- package/app/components/TextArea.vue +64 -0
- package/app/components/TextRotate.vue +24 -0
- package/app/components/ThemeController.vue +45 -0
- package/app/components/ThemeProvider.vue +302 -0
- package/app/components/ThemeTile.vue +50 -0
- package/app/components/Timeline.vue +22 -0
- package/app/components/TimelineEnd.vue +14 -0
- package/app/components/TimelineItem.vue +5 -0
- package/app/components/TimelineLine.vue +29 -0
- package/app/components/TimelineMiddle.vue +5 -0
- package/app/components/TimelineStart.vue +14 -0
- package/app/components/Toast.vue +67 -0
- package/app/components/Toggle.vue +60 -0
- package/app/components/Tooltip.vue +48 -0
- package/app/components/TooltipContent.vue +5 -0
- package/app/components/ValidatorHint.vue +5 -0
- package/{utils → app/utils}/drawer-utils.ts +15 -13
- package/app/utils/position-area.ts +41 -0
- package/nuxt.js +7 -1
- package/package.json +60 -61
- package/components/Accordion.vue +0 -29
- package/components/Alert.vue +0 -25
- package/components/Artboard.vue +0 -33
- package/components/Avatar.vue +0 -70
- package/components/AvatarGroup.vue +0 -19
- package/components/Badge.vue +0 -50
- package/components/BottomNav.vue +0 -25
- package/components/Button.vue +0 -111
- package/components/Card.vue +0 -30
- package/components/Carousel.vue +0 -25
- package/components/Chat.vue +0 -27
- package/components/ChatBubble.vue +0 -34
- package/components/Checkbox.vue +0 -55
- package/components/Code.vue +0 -92
- package/components/Collapse.vue +0 -54
- package/components/CountdownTimers.vue +0 -70
- package/components/Counter.vue +0 -14
- package/components/Divider.vue +0 -24
- package/components/Dropdown.vue +0 -95
- package/components/DropdownButton.vue +0 -16
- package/components/DropdownContent.vue +0 -56
- package/components/FileInput.vue +0 -59
- package/components/Flex.vue +0 -59
- package/components/Footer.vue +0 -24
- package/components/Kbd.vue +0 -25
- package/components/Label.vue +0 -15
- package/components/LabelText.vue +0 -15
- package/components/LabelTextAlt.vue +0 -15
- package/components/Link.vue +0 -40
- package/components/LoadingBall.vue +0 -43
- package/components/LoadingBars.vue +0 -43
- package/components/LoadingDots.vue +0 -43
- package/components/LoadingInfinity.vue +0 -43
- package/components/LoadingRing.vue +0 -43
- package/components/LoadingSpinner.vue +0 -43
- package/components/Mask.config.ts +0 -77
- package/components/Mask.vue +0 -14
- package/components/Menu.vue +0 -35
- package/components/MenuExpand.vue +0 -79
- package/components/MenuExpandToggle.vue +0 -13
- package/components/MockupPhone.vue +0 -8
- package/components/NavButton.vue +0 -20
- package/components/Progress.vue +0 -42
- package/components/RadialProgress.vue +0 -41
- package/components/Radio.vue +0 -76
- package/components/Range.vue +0 -60
- package/components/RangeMeasure.vue +0 -83
- package/components/Rating.vue +0 -167
- package/components/Select.vue +0 -100
- package/components/Stack.vue +0 -13
- package/components/Step.vue +0 -36
- package/components/Steps.vue +0 -21
- package/components/Swap.vue +0 -58
- package/components/Tab.vue +0 -48
- package/components/Tabs.vue +0 -77
- package/components/TabsManager.vue +0 -38
- package/components/Text.vue +0 -142
- package/components/TextArea.vue +0 -64
- package/components/TextInput.vue +0 -66
- package/components/Toast.vue +0 -31
- package/components/Toggle.vue +0 -59
- package/components/Tooltip.vue +0 -47
- package/index.ts +0 -108
- package/utils/-utils.ts +0 -41
- package/utils/Button.config.ts +0 -26
- package/utils/fixtures.ts +0 -62
- package/utils/types.ts +0 -7
- /package/{components → app/components}/Breadcrumbs.vue +0 -0
- /package/{components → app/components}/CarouselItem.vue +0 -0
- /package/{components → app/components}/ChatFooter.vue +0 -0
- /package/{components → app/components}/ChatHeader.vue +0 -0
- /package/{components → app/components}/ChatImage.vue +0 -0
- /package/{components → app/components}/CollapseContent.vue +0 -0
- /package/{components → app/components}/Crumb.vue +0 -0
- /package/{components → app/components}/HeroOverlay.vue +0 -0
- /package/{components → app/components}/Join.vue +0 -0
- /package/{components → app/components}/MenuTitle.vue +0 -0
- /package/{components → app/components}/MockupBrowser.vue +0 -0
- /package/{components → app/components}/MockupBrowserToolbar.vue +0 -0
- /package/{components → app/components}/MockupCode.vue +0 -0
- /package/{components → app/components}/MockupWindow.vue +0 -0
- /package/{components → app/components}/ModalAction.vue +0 -0
- /package/{components → app/components}/ModalBox.vue +0 -0
- /package/{components → app/components}/StatActions.vue +0 -0
- /package/{components → app/components}/StatDesc.vue +0 -0
- /package/{components → app/components}/StatFigure.vue +0 -0
- /package/{components → app/components}/StatTitle.vue +0 -0
- /package/{components → app/components}/StatValue.vue +0 -0
- /package/{components → app/components}/Stats.vue +0 -0
- /package/{utils → app/utils}/random-string.ts +0 -0
package/components/Divider.vue
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { computed } from 'vue'
|
|
3
|
-
|
|
4
|
-
const props = withDefaults(defineProps<{
|
|
5
|
-
horizontal?: boolean
|
|
6
|
-
vertical?: boolean
|
|
7
|
-
}>(), {
|
|
8
|
-
horizontal: false,
|
|
9
|
-
vertical: false,
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
const classes = computed(() => {
|
|
13
|
-
return {
|
|
14
|
-
'divider-horizontal': props.horizontal,
|
|
15
|
-
'divider-vertical': props.vertical,
|
|
16
|
-
}
|
|
17
|
-
})
|
|
18
|
-
</script>
|
|
19
|
-
|
|
20
|
-
<template>
|
|
21
|
-
<div class="divider" :class="classes">
|
|
22
|
-
<slot />
|
|
23
|
-
</div>
|
|
24
|
-
</template>
|
package/components/Dropdown.vue
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { onMounted, provide, reactive, ref } from 'vue'
|
|
3
|
-
import { autoUpdate, useFloating } from '@floating-ui/vue'
|
|
4
|
-
import { onClickOutside, syncRefs, useElementHover } from '@vueuse/core'
|
|
5
|
-
import { randomString } from '../utils/random-string'
|
|
6
|
-
|
|
7
|
-
const props = withDefaults(defineProps<{
|
|
8
|
-
// allows passing a custom id to the dropdown. Required for SSR hydration.
|
|
9
|
-
randomId?: string
|
|
10
|
-
autoFocus?: boolean
|
|
11
|
-
|
|
12
|
-
placement?: 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end'
|
|
13
|
-
strategy?: 'fixed' | 'absolute'
|
|
14
|
-
|
|
15
|
-
hover?: boolean
|
|
16
|
-
delayEnter?: number
|
|
17
|
-
delayLeave?: number
|
|
18
|
-
closeOnClickOutside?: boolean
|
|
19
|
-
}>(), {
|
|
20
|
-
autoFocus: false,
|
|
21
|
-
placement: 'bottom-start',
|
|
22
|
-
hover: false,
|
|
23
|
-
delayEnter: 0,
|
|
24
|
-
delayLeave: 300,
|
|
25
|
-
closeOnClickOutside: true,
|
|
26
|
-
})
|
|
27
|
-
// Dropdown Visibility
|
|
28
|
-
const isOpen = defineModel('open', { local: true })
|
|
29
|
-
provide('isDropdownOpen', isOpen)
|
|
30
|
-
|
|
31
|
-
const autoFocus = ref(props.autoFocus)
|
|
32
|
-
provide('dropdownAutoFocus', autoFocus)
|
|
33
|
-
|
|
34
|
-
const randomValue = props.randomId || randomString(12)
|
|
35
|
-
const wrapperId = `dropdown-wrapper-${randomValue}`
|
|
36
|
-
const id = `dropdown-${randomValue}`
|
|
37
|
-
provide('dropdownId', id)
|
|
38
|
-
|
|
39
|
-
// set up the floating ui instance
|
|
40
|
-
const buttonEl = ref(null)
|
|
41
|
-
const contentEl = ref(null)
|
|
42
|
-
const floatingConfig = reactive({
|
|
43
|
-
placement: ref(props.placement),
|
|
44
|
-
strategy: ref(props.strategy),
|
|
45
|
-
whileElementsMounted: autoUpdate,
|
|
46
|
-
})
|
|
47
|
-
const { floatingStyles } = useFloating(buttonEl, contentEl, floatingConfig)
|
|
48
|
-
|
|
49
|
-
provide('buttonEl', buttonEl)
|
|
50
|
-
provide('contentEl', contentEl)
|
|
51
|
-
provide('floatingStyles', floatingStyles)
|
|
52
|
-
|
|
53
|
-
// Visibility Utils
|
|
54
|
-
function toggle() {
|
|
55
|
-
isOpen.value = !isOpen.value
|
|
56
|
-
}
|
|
57
|
-
function open() {
|
|
58
|
-
isOpen.value = true
|
|
59
|
-
}
|
|
60
|
-
function close() {
|
|
61
|
-
isOpen.value = false
|
|
62
|
-
}
|
|
63
|
-
provide('toggleDropdown', toggle)
|
|
64
|
-
provide('openDropdown', open)
|
|
65
|
-
provide('closeDropdown', close)
|
|
66
|
-
|
|
67
|
-
const dropdownWrapper = ref(null)
|
|
68
|
-
|
|
69
|
-
onMounted(() => {
|
|
70
|
-
// Close when clicking outside the element
|
|
71
|
-
// use a slight delay to avoid conflict with the focus trap in the DropdownContent.
|
|
72
|
-
onClickOutside(contentEl, () => {
|
|
73
|
-
if (props.closeOnClickOutside) {
|
|
74
|
-
setTimeout(() => {
|
|
75
|
-
isOpen.value = false
|
|
76
|
-
}, 50)
|
|
77
|
-
}
|
|
78
|
-
})
|
|
79
|
-
|
|
80
|
-
// Sync with top-level isHovered ref. For SSR compatibility.
|
|
81
|
-
if (props.hover) {
|
|
82
|
-
const hover = useElementHover(dropdownWrapper, {
|
|
83
|
-
delayLeave: props.delayLeave,
|
|
84
|
-
delayEnter: props.delayEnter,
|
|
85
|
-
})
|
|
86
|
-
syncRefs(hover, isOpen)
|
|
87
|
-
}
|
|
88
|
-
})
|
|
89
|
-
</script>
|
|
90
|
-
|
|
91
|
-
<template>
|
|
92
|
-
<div :id="wrapperId" ref="dropdownWrapper" class="relative inline-block floating-dropdown">
|
|
93
|
-
<slot v-bind="{ toggle, open, close }" />
|
|
94
|
-
</div>
|
|
95
|
-
</template>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { inject } from 'vue'
|
|
3
|
-
|
|
4
|
-
const id = inject('dropdownId')
|
|
5
|
-
const isOpen = inject('isDropdownOpen')
|
|
6
|
-
const toggleDropdown = inject('toggleDropdown')
|
|
7
|
-
const buttonEl = inject('buttonEl')
|
|
8
|
-
|
|
9
|
-
const toggle = toggleDropdown
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<template>
|
|
13
|
-
<Button :id="id" ref="buttonEl" :aria-expanded="isOpen" aria-haspopup="menu" class="dropdown-button" @click="toggle">
|
|
14
|
-
<slot />
|
|
15
|
-
</Button>
|
|
16
|
-
</template>
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { inject, nextTick, ref, watchEffect } from 'vue'
|
|
3
|
-
import { useFocusTrap } from '@vueuse/integrations/useFocusTrap'
|
|
4
|
-
|
|
5
|
-
const autoFocus = inject('dropdownAutoFocus')
|
|
6
|
-
const id = inject('dropdownId')
|
|
7
|
-
const isOpen = inject('isDropdownOpen')
|
|
8
|
-
const isOpenDelayed = ref(isOpen.value)
|
|
9
|
-
const contentEl = inject('contentEl')
|
|
10
|
-
const floatingStyles = inject('floatingStyles')
|
|
11
|
-
|
|
12
|
-
// Dropdown Utils
|
|
13
|
-
const toggle = inject('toggleDropdown')
|
|
14
|
-
const open = inject('openDropdown')
|
|
15
|
-
const close = inject('closeDropdown')
|
|
16
|
-
|
|
17
|
-
let activate
|
|
18
|
-
let deactivate
|
|
19
|
-
|
|
20
|
-
if (autoFocus.value) {
|
|
21
|
-
const { activate: _activate, deactivate: _deactivate, hasFocus } = useFocusTrap(contentEl, { immediate: true })
|
|
22
|
-
activate = _activate
|
|
23
|
-
deactivate = _deactivate
|
|
24
|
-
|
|
25
|
-
// hide the dropdown when the focus-trap drops focus (by pressing escape, for example)
|
|
26
|
-
watchEffect(() => {
|
|
27
|
-
if (!hasFocus.value)
|
|
28
|
-
close()
|
|
29
|
-
})
|
|
30
|
-
}
|
|
31
|
-
// const { activate, deactivate, hasFocus } = useFocusTrap(contentEl, { immediate: true })
|
|
32
|
-
|
|
33
|
-
// synchronize isOpenDelayed with isOpen
|
|
34
|
-
watchEffect(async () => {
|
|
35
|
-
if (isOpen.value) {
|
|
36
|
-
isOpenDelayed.value = true
|
|
37
|
-
if (autoFocus.value) {
|
|
38
|
-
await nextTick()
|
|
39
|
-
activate()
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
if (autoFocus.value) {
|
|
44
|
-
deactivate()
|
|
45
|
-
await nextTick()
|
|
46
|
-
}
|
|
47
|
-
isOpenDelayed.value = false
|
|
48
|
-
}
|
|
49
|
-
})
|
|
50
|
-
</script>
|
|
51
|
-
|
|
52
|
-
<template>
|
|
53
|
-
<div v-if="isOpen" ref="contentEl" :style="floatingStyles" :aria-labelledby="id" role="menu">
|
|
54
|
-
<slot v-bind="{ toggle, open, close }" />
|
|
55
|
-
</div>
|
|
56
|
-
</template>
|
package/components/FileInput.vue
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { computed } from 'vue'
|
|
3
|
-
|
|
4
|
-
const props = defineProps<{
|
|
5
|
-
join?: boolean
|
|
6
|
-
|
|
7
|
-
color?: string
|
|
8
|
-
primary?: boolean
|
|
9
|
-
secondary?: boolean
|
|
10
|
-
accent?: boolean
|
|
11
|
-
info?: boolean
|
|
12
|
-
success?: boolean
|
|
13
|
-
warning?: boolean
|
|
14
|
-
error?: boolean
|
|
15
|
-
|
|
16
|
-
bordered?: boolean
|
|
17
|
-
ghost?: boolean
|
|
18
|
-
disabled?: boolean
|
|
19
|
-
|
|
20
|
-
size?: 'lg' | 'md' | 'sm' | 'xs'
|
|
21
|
-
lg?: boolean
|
|
22
|
-
md?: boolean
|
|
23
|
-
sm?: boolean
|
|
24
|
-
xs?: boolean
|
|
25
|
-
}>()
|
|
26
|
-
defineEmits(['files'])
|
|
27
|
-
|
|
28
|
-
const classes = computed(() => {
|
|
29
|
-
return {
|
|
30
|
-
'join-item': props.join,
|
|
31
|
-
|
|
32
|
-
'file-input-primary': props.primary || props.color === 'primary',
|
|
33
|
-
'file-input-secondary': props.secondary || props.color === 'secondary',
|
|
34
|
-
'file-input-accent': props.accent || props.color === 'accent',
|
|
35
|
-
'file-input-info': props.info || props.color === 'info',
|
|
36
|
-
'file-input-success': props.success || props.color === 'success',
|
|
37
|
-
'file-input-warning': props.warning || props.color === 'warning',
|
|
38
|
-
'file-input-error': props.error || props.color === 'error',
|
|
39
|
-
|
|
40
|
-
'file-input-lg': props.lg || props.size === 'lg',
|
|
41
|
-
'file-input-md': props.md || props.size === 'md',
|
|
42
|
-
'file-input-sm': props.sm || props.size === 'sm',
|
|
43
|
-
'file-input-xs': props.xs || props.size === 'xs',
|
|
44
|
-
|
|
45
|
-
'file-input-bordered': props.bordered,
|
|
46
|
-
'file-input-ghost': props.ghost,
|
|
47
|
-
}
|
|
48
|
-
})
|
|
49
|
-
</script>
|
|
50
|
-
|
|
51
|
-
<template>
|
|
52
|
-
<input
|
|
53
|
-
type="file"
|
|
54
|
-
:disabled="disabled"
|
|
55
|
-
class="file-input"
|
|
56
|
-
:class="classes"
|
|
57
|
-
@input="$emit('files', ($event.target as any).value)"
|
|
58
|
-
>
|
|
59
|
-
</template>
|
package/components/Flex.vue
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { computed } from 'vue'
|
|
3
|
-
|
|
4
|
-
const props = withDefaults(defineProps<{
|
|
5
|
-
is?: string | Object | Function
|
|
6
|
-
join?: boolean
|
|
7
|
-
|
|
8
|
-
// https://tailwindcss.com/docs/flex
|
|
9
|
-
flex?: boolean
|
|
10
|
-
flex1?: boolean
|
|
11
|
-
flexAuto?: boolean
|
|
12
|
-
flexInitial?: boolean
|
|
13
|
-
none?: boolean
|
|
14
|
-
|
|
15
|
-
grow?: boolean
|
|
16
|
-
|
|
17
|
-
// https://tailwindcss.com/docs/flex-direction
|
|
18
|
-
direction?: 'row' | 'col' | 'row-reverse' | 'col-reverse'
|
|
19
|
-
row?: boolean
|
|
20
|
-
col?: boolean
|
|
21
|
-
reverse?: boolean
|
|
22
|
-
|
|
23
|
-
// https://tailwindcss.com/docs/flex-wrap
|
|
24
|
-
wrap?: boolean
|
|
25
|
-
nowrap?: boolean
|
|
26
|
-
wrapReverse?: boolean
|
|
27
|
-
}>(), {
|
|
28
|
-
is: 'div',
|
|
29
|
-
flex: true,
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
const classes = computed(() => {
|
|
33
|
-
return {
|
|
34
|
-
'join-item': props.join,
|
|
35
|
-
|
|
36
|
-
'flex-1': props.flex1,
|
|
37
|
-
'flex-auto': props.flexAuto,
|
|
38
|
-
'flex-initial': props.flexInitial,
|
|
39
|
-
'flex-none': props.none,
|
|
40
|
-
|
|
41
|
-
'flex-grow': props.grow,
|
|
42
|
-
|
|
43
|
-
'flex-row': props.direction === 'row' || props.row,
|
|
44
|
-
'flex-col': props.direction === 'col' || props.col,
|
|
45
|
-
'flex-row-reverse': props.direction === 'row-reverse' || (props.row && props.reverse),
|
|
46
|
-
'flex-col-reverse': props.direction === 'col-reverse' || (props.col && props.reverse),
|
|
47
|
-
|
|
48
|
-
'flex-wrap': props.wrap,
|
|
49
|
-
'flex-wrap-reverse': props.wrapReverse,
|
|
50
|
-
'flex-nowrap': props.nowrap,
|
|
51
|
-
}
|
|
52
|
-
})
|
|
53
|
-
</script>
|
|
54
|
-
|
|
55
|
-
<template>
|
|
56
|
-
<component :is="is" class="flex" :class="classes">
|
|
57
|
-
<slot />
|
|
58
|
-
</component>
|
|
59
|
-
</template>
|
package/components/Footer.vue
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { computed } from 'vue'
|
|
3
|
-
import Text from './Text.vue'
|
|
4
|
-
|
|
5
|
-
const props = withDefaults(defineProps<{
|
|
6
|
-
center?: boolean
|
|
7
|
-
is?: string
|
|
8
|
-
}>(), {
|
|
9
|
-
center: false,
|
|
10
|
-
is: 'footer',
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
const classes = computed(() => {
|
|
14
|
-
return {
|
|
15
|
-
'divider-center': props.center,
|
|
16
|
-
}
|
|
17
|
-
})
|
|
18
|
-
</script>
|
|
19
|
-
|
|
20
|
-
<template>
|
|
21
|
-
<Text :is="is" class="footer" :class="classes">
|
|
22
|
-
<slot />
|
|
23
|
-
</Text>
|
|
24
|
-
</template>
|
package/components/Kbd.vue
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { computed } from 'vue'
|
|
3
|
-
|
|
4
|
-
const props = defineProps<{
|
|
5
|
-
size?: 'lg' | 'md' | 'sm' | 'xs'
|
|
6
|
-
lg?: boolean
|
|
7
|
-
md?: boolean
|
|
8
|
-
sm?: boolean
|
|
9
|
-
xs?: boolean
|
|
10
|
-
}>()
|
|
11
|
-
|
|
12
|
-
const classes = computed(() => {
|
|
13
|
-
const { size, lg, md, sm, xs } = props
|
|
14
|
-
return {
|
|
15
|
-
'kbd-lg': lg || size === 'lg',
|
|
16
|
-
'kbd-md': md || size === 'md',
|
|
17
|
-
'kbd-sm': sm || size === 'sm',
|
|
18
|
-
'kbd-xs': xs || size === 'xs',
|
|
19
|
-
}
|
|
20
|
-
})
|
|
21
|
-
</script>
|
|
22
|
-
|
|
23
|
-
<template>
|
|
24
|
-
<kbd class="kbd" :class="classes"><slot /></kbd>
|
|
25
|
-
</template>
|
package/components/Label.vue
DELETED
package/components/LabelText.vue
DELETED
package/components/Link.vue
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { computed } from 'vue'
|
|
3
|
-
|
|
4
|
-
const props = withDefaults(defineProps<{
|
|
5
|
-
is?: string
|
|
6
|
-
hover?: boolean
|
|
7
|
-
|
|
8
|
-
color?: 'neutral' | 'primary' | 'secondary' | 'accent' | 'success' | 'info' | 'warning' | 'error'
|
|
9
|
-
neutral?: boolean
|
|
10
|
-
primary?: boolean
|
|
11
|
-
secondary?: boolean
|
|
12
|
-
accent?: boolean
|
|
13
|
-
success?: boolean
|
|
14
|
-
info?: boolean
|
|
15
|
-
warning?: boolean
|
|
16
|
-
error?: boolean
|
|
17
|
-
}>(), {
|
|
18
|
-
is: 'a',
|
|
19
|
-
})
|
|
20
|
-
|
|
21
|
-
const classes = computed(() => {
|
|
22
|
-
return {
|
|
23
|
-
'link-neutral': props.neutral || props.color === 'neutral',
|
|
24
|
-
'link-primary': props.primary || props.color === 'primary',
|
|
25
|
-
'link-secondary': props.secondary || props.color === 'secondary',
|
|
26
|
-
'link-accent': props.accent || props.color === 'accent',
|
|
27
|
-
'link-success': props.success || props.color === 'success',
|
|
28
|
-
'link-info': props.info || props.color === 'info',
|
|
29
|
-
'link-warning': props.warning || props.color === 'warning',
|
|
30
|
-
'link-error': props.error || props.color === 'error',
|
|
31
|
-
'link-hover': props.hover,
|
|
32
|
-
}
|
|
33
|
-
})
|
|
34
|
-
</script>
|
|
35
|
-
|
|
36
|
-
<template>
|
|
37
|
-
<component :is="is" class="link" :class="classes">
|
|
38
|
-
<slot />
|
|
39
|
-
</component>
|
|
40
|
-
</template>
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { computed } from 'vue'
|
|
3
|
-
|
|
4
|
-
const props = defineProps<{
|
|
5
|
-
color?: string
|
|
6
|
-
neutral?: boolean
|
|
7
|
-
primary?: boolean
|
|
8
|
-
secondary?: boolean
|
|
9
|
-
accent?: boolean
|
|
10
|
-
info?: boolean
|
|
11
|
-
success?: boolean
|
|
12
|
-
warning?: boolean
|
|
13
|
-
error?: boolean
|
|
14
|
-
|
|
15
|
-
size?: 'lg' | 'md' | 'sm' | 'xs'
|
|
16
|
-
lg?: boolean
|
|
17
|
-
md?: boolean
|
|
18
|
-
sm?: boolean
|
|
19
|
-
xs?: boolean
|
|
20
|
-
}>()
|
|
21
|
-
|
|
22
|
-
const classes = computed(() => {
|
|
23
|
-
return {
|
|
24
|
-
'text-primary': props.primary || props.color === 'primary',
|
|
25
|
-
'text-secondary': props.secondary || props.color === 'secondary',
|
|
26
|
-
'text-neutral': props.neutral || props.color === 'neutral',
|
|
27
|
-
'text-accent': props.accent || props.color === 'accent',
|
|
28
|
-
'text-info': props.info || props.color === 'info',
|
|
29
|
-
'text-success': props.success || props.color === 'success',
|
|
30
|
-
'text-warning': props.warning || props.color === 'warning',
|
|
31
|
-
'text-error': props.error || props.color === 'error',
|
|
32
|
-
|
|
33
|
-
'loading-lg': props.lg || props.size === 'lg',
|
|
34
|
-
'loading-md': props.md || props.size === 'md',
|
|
35
|
-
'loading-sm': props.sm || props.size === 'sm',
|
|
36
|
-
'loading-xs': props.xs || props.size === 'xs',
|
|
37
|
-
}
|
|
38
|
-
})
|
|
39
|
-
</script>
|
|
40
|
-
|
|
41
|
-
<template>
|
|
42
|
-
<span class="loading loading-ball" :class="classes" />
|
|
43
|
-
</template>
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { computed } from 'vue'
|
|
3
|
-
|
|
4
|
-
const props = defineProps<{
|
|
5
|
-
color?: string
|
|
6
|
-
neutral?: boolean
|
|
7
|
-
primary?: boolean
|
|
8
|
-
secondary?: boolean
|
|
9
|
-
accent?: boolean
|
|
10
|
-
info?: boolean
|
|
11
|
-
success?: boolean
|
|
12
|
-
warning?: boolean
|
|
13
|
-
error?: boolean
|
|
14
|
-
|
|
15
|
-
size?: 'lg' | 'md' | 'sm' | 'xs'
|
|
16
|
-
lg?: boolean
|
|
17
|
-
md?: boolean
|
|
18
|
-
sm?: boolean
|
|
19
|
-
xs?: boolean
|
|
20
|
-
}>()
|
|
21
|
-
|
|
22
|
-
const classes = computed(() => {
|
|
23
|
-
return {
|
|
24
|
-
'text-primary': props.primary || props.color === 'primary',
|
|
25
|
-
'text-secondary': props.secondary || props.color === 'secondary',
|
|
26
|
-
'text-neutral': props.neutral || props.color === 'neutral',
|
|
27
|
-
'text-accent': props.accent || props.color === 'accent',
|
|
28
|
-
'text-info': props.info || props.color === 'info',
|
|
29
|
-
'text-success': props.success || props.color === 'success',
|
|
30
|
-
'text-warning': props.warning || props.color === 'warning',
|
|
31
|
-
'text-error': props.error || props.color === 'error',
|
|
32
|
-
|
|
33
|
-
'loading-lg': props.lg || props.size === 'lg',
|
|
34
|
-
'loading-md': props.md || props.size === 'md',
|
|
35
|
-
'loading-sm': props.sm || props.size === 'sm',
|
|
36
|
-
'loading-xs': props.xs || props.size === 'xs',
|
|
37
|
-
}
|
|
38
|
-
})
|
|
39
|
-
</script>
|
|
40
|
-
|
|
41
|
-
<template>
|
|
42
|
-
<span class="loading loading-bars" :class="classes" />
|
|
43
|
-
</template>
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { computed } from 'vue'
|
|
3
|
-
|
|
4
|
-
const props = defineProps<{
|
|
5
|
-
color?: string
|
|
6
|
-
neutral?: boolean
|
|
7
|
-
primary?: boolean
|
|
8
|
-
secondary?: boolean
|
|
9
|
-
accent?: boolean
|
|
10
|
-
info?: boolean
|
|
11
|
-
success?: boolean
|
|
12
|
-
warning?: boolean
|
|
13
|
-
error?: boolean
|
|
14
|
-
|
|
15
|
-
size?: 'lg' | 'md' | 'sm' | 'xs'
|
|
16
|
-
lg?: boolean
|
|
17
|
-
md?: boolean
|
|
18
|
-
sm?: boolean
|
|
19
|
-
xs?: boolean
|
|
20
|
-
}>()
|
|
21
|
-
|
|
22
|
-
const classes = computed(() => {
|
|
23
|
-
return {
|
|
24
|
-
'text-primary': props.primary || props.color === 'primary',
|
|
25
|
-
'text-secondary': props.secondary || props.color === 'secondary',
|
|
26
|
-
'text-neutral': props.neutral || props.color === 'neutral',
|
|
27
|
-
'text-accent': props.accent || props.color === 'accent',
|
|
28
|
-
'text-info': props.info || props.color === 'info',
|
|
29
|
-
'text-success': props.success || props.color === 'success',
|
|
30
|
-
'text-warning': props.warning || props.color === 'warning',
|
|
31
|
-
'text-error': props.error || props.color === 'error',
|
|
32
|
-
|
|
33
|
-
'loading-lg': props.lg || props.size === 'lg',
|
|
34
|
-
'loading-md': props.md || props.size === 'md',
|
|
35
|
-
'loading-sm': props.sm || props.size === 'sm',
|
|
36
|
-
'loading-xs': props.xs || props.size === 'xs',
|
|
37
|
-
}
|
|
38
|
-
})
|
|
39
|
-
</script>
|
|
40
|
-
|
|
41
|
-
<template>
|
|
42
|
-
<span class="loading loading-dots" :class="classes" />
|
|
43
|
-
</template>
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { computed } from 'vue'
|
|
3
|
-
|
|
4
|
-
const props = defineProps<{
|
|
5
|
-
color?: string
|
|
6
|
-
neutral?: boolean
|
|
7
|
-
primary?: boolean
|
|
8
|
-
secondary?: boolean
|
|
9
|
-
accent?: boolean
|
|
10
|
-
info?: boolean
|
|
11
|
-
success?: boolean
|
|
12
|
-
warning?: boolean
|
|
13
|
-
error?: boolean
|
|
14
|
-
|
|
15
|
-
size?: 'lg' | 'md' | 'sm' | 'xs'
|
|
16
|
-
lg?: boolean
|
|
17
|
-
md?: boolean
|
|
18
|
-
sm?: boolean
|
|
19
|
-
xs?: boolean
|
|
20
|
-
}>()
|
|
21
|
-
|
|
22
|
-
const classes = computed(() => {
|
|
23
|
-
return {
|
|
24
|
-
'text-primary': props.primary || props.color === 'primary',
|
|
25
|
-
'text-secondary': props.secondary || props.color === 'secondary',
|
|
26
|
-
'text-neutral': props.neutral || props.color === 'neutral',
|
|
27
|
-
'text-accent': props.accent || props.color === 'accent',
|
|
28
|
-
'text-info': props.info || props.color === 'info',
|
|
29
|
-
'text-success': props.success || props.color === 'success',
|
|
30
|
-
'text-warning': props.warning || props.color === 'warning',
|
|
31
|
-
'text-error': props.error || props.color === 'error',
|
|
32
|
-
|
|
33
|
-
'loading-lg': props.lg || props.size === 'lg',
|
|
34
|
-
'loading-md': props.md || props.size === 'md',
|
|
35
|
-
'loading-sm': props.sm || props.size === 'sm',
|
|
36
|
-
'loading-xs': props.xs || props.size === 'xs',
|
|
37
|
-
}
|
|
38
|
-
})
|
|
39
|
-
</script>
|
|
40
|
-
|
|
41
|
-
<template>
|
|
42
|
-
<span class="loading loading-infinity" :class="classes" />
|
|
43
|
-
</template>
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { computed } from 'vue'
|
|
3
|
-
|
|
4
|
-
const props = defineProps<{
|
|
5
|
-
color?: string
|
|
6
|
-
neutral?: boolean
|
|
7
|
-
primary?: boolean
|
|
8
|
-
secondary?: boolean
|
|
9
|
-
accent?: boolean
|
|
10
|
-
info?: boolean
|
|
11
|
-
success?: boolean
|
|
12
|
-
warning?: boolean
|
|
13
|
-
error?: boolean
|
|
14
|
-
|
|
15
|
-
size?: 'lg' | 'md' | 'sm' | 'xs'
|
|
16
|
-
lg?: boolean
|
|
17
|
-
md?: boolean
|
|
18
|
-
sm?: boolean
|
|
19
|
-
xs?: boolean
|
|
20
|
-
}>()
|
|
21
|
-
|
|
22
|
-
const classes = computed(() => {
|
|
23
|
-
return {
|
|
24
|
-
'text-primary': props.primary || props.color === 'primary',
|
|
25
|
-
'text-secondary': props.secondary || props.color === 'secondary',
|
|
26
|
-
'text-neutral': props.neutral || props.color === 'neutral',
|
|
27
|
-
'text-accent': props.accent || props.color === 'accent',
|
|
28
|
-
'text-info': props.info || props.color === 'info',
|
|
29
|
-
'text-success': props.success || props.color === 'success',
|
|
30
|
-
'text-warning': props.warning || props.color === 'warning',
|
|
31
|
-
'text-error': props.error || props.color === 'error',
|
|
32
|
-
|
|
33
|
-
'loading-lg': props.lg || props.size === 'lg',
|
|
34
|
-
'loading-md': props.md || props.size === 'md',
|
|
35
|
-
'loading-sm': props.sm || props.size === 'sm',
|
|
36
|
-
'loading-xs': props.xs || props.size === 'xs',
|
|
37
|
-
}
|
|
38
|
-
})
|
|
39
|
-
</script>
|
|
40
|
-
|
|
41
|
-
<template>
|
|
42
|
-
<span class="loading loading-ring" :class="classes" />
|
|
43
|
-
</template>
|