srcdev-nuxt-components 3.0.0 → 4.0.0
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/assets/styles/a11y/_utils.css +20 -0
- package/assets/styles/a11y/_variables.css +8 -0
- package/assets/styles/a11y/index.css +2 -0
- package/assets/styles/forms/index.css +2 -0
- package/assets/styles/forms/themes/_error.css +77 -0
- package/assets/styles/forms/themes/_ghost.css +77 -0
- package/assets/styles/forms/themes/_input-action.css +20 -0
- package/assets/styles/forms/themes/_primary.css +82 -0
- package/assets/styles/forms/themes/_secondary.css +77 -0
- package/assets/styles/forms/themes/_success.css +77 -0
- package/assets/styles/forms/themes/_tertiary.css +77 -0
- package/assets/styles/forms/themes/_warning.css +77 -0
- package/assets/styles/forms/themes/index.css +8 -0
- package/assets/styles/forms/variables/_sizes.css +82 -0
- package/assets/styles/forms/variables/_theme.css +11 -0
- package/assets/styles/forms/variables/index.css +2 -0
- package/assets/styles/main.css +5 -0
- package/assets/styles/typography/index.css +2 -0
- package/assets/styles/typography/utils/_font-classes.css +160 -0
- package/assets/styles/typography/utils/_weights.css +69 -0
- package/assets/styles/typography/utils/index.css +2 -0
- package/assets/styles/typography/variables/_colors.css +14 -0
- package/assets/styles/typography/variables/_reponsive-font-size.css +10 -0
- package/assets/styles/typography/variables/index.css +2 -0
- package/assets/styles/utils/_animations.css +42 -0
- package/assets/styles/utils/_canvasWidths.css +18 -0
- package/assets/styles/utils/_display.css +7 -0
- package/assets/styles/utils/_margin-helpers.css +334 -0
- package/assets/styles/utils/_padding-helpers.css +308 -0
- package/assets/styles/utils/_page.css +24 -0
- package/assets/styles/utils/_placement.css +73 -0
- package/assets/styles/utils/index.css +7 -0
- package/assets/styles/variables/colors/_blue.css +15 -0
- package/assets/styles/variables/colors/_gray.css +16 -0
- package/assets/styles/variables/colors/_green.css +15 -0
- package/assets/styles/variables/colors/_orange.css +15 -0
- package/assets/styles/variables/colors/_red.css +15 -0
- package/assets/styles/variables/colors/_yellow.css +15 -0
- package/assets/styles/variables/colors/colors.css +6 -0
- package/assets/styles/variables/components/_accordian.css +7 -0
- package/assets/styles/variables/components/_container-glow-core.css +16 -0
- package/assets/styles/variables/components/_display-dialog-core.css +35 -0
- package/assets/styles/variables/components/_tabs.css +18 -0
- package/assets/styles/variables/components/display-prompt-core/_scaffolding.css +57 -0
- package/assets/styles/variables/components/display-prompt-core/index.css +2 -0
- package/assets/styles/variables/components/display-prompt-core/themes/_error.css +39 -0
- package/assets/styles/variables/components/display-prompt-core/themes/_info.css +39 -0
- package/assets/styles/variables/components/display-prompt-core/themes/_success.css +39 -0
- package/assets/styles/variables/components/display-prompt-core/themes/_warning.css +39 -0
- package/assets/styles/variables/components/display-prompt-core/themes/index.css +4 -0
- package/assets/styles/variables/components/index.css +5 -0
- package/assets/styles/variables/index.css +2 -0
- package/components/animated-svg-text/AnimatedSvgText.vue +87 -0
- package/components/canvas-switcher/CanvasSwitcher.vue +77 -0
- package/components/clip-element/ClipElement.vue +73 -0
- package/components/clipped-panels/ClippedPanel.vue +73 -0
- package/components/deep-expanding-menu/DeepExpandingMenu.vue +214 -0
- package/components/deep-expanding-menu/DeepExpandingMenuOld.vue +218 -0
- package/components/display-banner/DisplayBanner.vue +63 -0
- package/components/display-details/DisplayDetailsCore.vue +312 -0
- package/components/functional/accordian/AccordianCore.vue +138 -0
- package/components/functional/display-dialog/DisplayDialogCore.vue +244 -0
- package/components/functional/display-dialog/variants/DisplayDialogConfirm.vue +45 -0
- package/components/functional/display-dialog/variants/DisplayDialogScrollableContent.vue +49 -0
- package/components/functional/pop-over/PopOver.vue +88 -0
- package/components/image-galleries/SliderGallery.vue +784 -0
- package/components/masonry-grid-ordered/MasonryGridOrdered.vue +158 -0
- package/components/presentation/container-glow/ContainerGlowCore.vue +211 -0
- package/components/presentation/display-grid/DisplayGridCore.vue +22 -0
- package/components/presentation/display-prompt/DisplayPromptCore.vue +150 -0
- package/components/presentation/display-prompt/variants/DisplayPromptError.vue +53 -0
- package/components/presentation/layout-grids/LayoutGridA.vue +103 -0
- package/components/presentation/layout-grids/LayoutGridB.vue +132 -0
- package/components/presentation/layout-row/LayoutRow.vue +157 -0
- package/components/presentation/masonry-grid/MasonryGrid.vue +62 -0
- package/components/presentation/masonry-grid-sorted/MasonryGridSorted.vue +115 -0
- package/components/presentation/tabs/TabsCore.vue +308 -0
- package/components/responsive-header/NavigationItems.vue +164 -0
- package/components/responsive-header/ResponsiveHeader.vue +586 -0
- package/components/rotating-carousel/RotatingCarouselImage.vue +200 -0
- package/composables/useDialogControls.ts +23 -0
- package/composables/useStyleClassPassthrough.ts +35 -0
- package/composables/useTabs.ts +201 -0
- package/nuxt.config.ts +0 -3
- package/package.json +2 -2
- package/types/gallery-data.ts +13 -0
- package/types/responsiveHeader.ts +38 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<DisplayDialogCore variant="confirm" :styleClassPassthrough :lockViewport="true" :dataDialogId>
|
|
3
|
+
<template #dialogTitle>
|
|
4
|
+
<slot name="dialogTitle">
|
|
5
|
+
<p class="text-normal wght-700">Confirm</p>
|
|
6
|
+
</slot>
|
|
7
|
+
</template>
|
|
8
|
+
<template #dialogContent>
|
|
9
|
+
<slot name="dialogContent"></slot>
|
|
10
|
+
</template>
|
|
11
|
+
<template #actionButtons>
|
|
12
|
+
<slot name="actionButtonLeft"></slot>
|
|
13
|
+
<slot name="actionButtonRight"></slot>
|
|
14
|
+
</template>
|
|
15
|
+
</DisplayDialogCore>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script setup lang="ts">
|
|
19
|
+
const props = defineProps({
|
|
20
|
+
styleClassPassthrough: {
|
|
21
|
+
type: Array as PropType<string[]>,
|
|
22
|
+
default: () => [],
|
|
23
|
+
},
|
|
24
|
+
dataDialogId: {
|
|
25
|
+
type: String,
|
|
26
|
+
required: true,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<style lang="css">
|
|
32
|
+
.display-dialog-core {
|
|
33
|
+
.inner {
|
|
34
|
+
.header {
|
|
35
|
+
/* background-color: aquamarine; */
|
|
36
|
+
}
|
|
37
|
+
.dialog-content {
|
|
38
|
+
/* background-color: bisque; */
|
|
39
|
+
}
|
|
40
|
+
.footer {
|
|
41
|
+
/* background-color: blueviolet; */
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
</style>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<DisplayDialogCore variant="dialog" :styleClassPassthrough :lockViewport="true" :allowContentScroll :dataDialogId>
|
|
3
|
+
<template #dialogTitle>
|
|
4
|
+
<slot name="dialogTitle">
|
|
5
|
+
<p class="text-normal wght-700">Confirm</p>
|
|
6
|
+
</slot>
|
|
7
|
+
</template>
|
|
8
|
+
<template #dialogContent>
|
|
9
|
+
<slot name="dialogContent"></slot>
|
|
10
|
+
</template>
|
|
11
|
+
<template #actionButtons>
|
|
12
|
+
<slot name="actionButtonLeft"></slot>
|
|
13
|
+
<slot name="actionButtonRight"></slot>
|
|
14
|
+
</template>
|
|
15
|
+
</DisplayDialogCore>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script setup lang="ts">
|
|
19
|
+
const props = defineProps({
|
|
20
|
+
styleClassPassthrough: {
|
|
21
|
+
type: Array as PropType<string[]>,
|
|
22
|
+
default: () => [],
|
|
23
|
+
},
|
|
24
|
+
allowContentScroll: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: false,
|
|
27
|
+
},
|
|
28
|
+
dataDialogId: {
|
|
29
|
+
type: String,
|
|
30
|
+
required: true,
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
</script>
|
|
34
|
+
|
|
35
|
+
<style lang="css">
|
|
36
|
+
.display-dialog-core {
|
|
37
|
+
.inner {
|
|
38
|
+
.header {
|
|
39
|
+
/* background-color: aquamarine; */
|
|
40
|
+
}
|
|
41
|
+
.dialog-content {
|
|
42
|
+
/* background-color: bisque; */
|
|
43
|
+
}
|
|
44
|
+
.footer {
|
|
45
|
+
/* background-color: blueviolet; */
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
</style>
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<ClientOnly>
|
|
3
|
+
<button :popovertarget popovertargetaction="toggle" class="popover-trigger" :class="[elementClasses]">
|
|
4
|
+
<slot name="trigger"></slot>
|
|
5
|
+
</button>
|
|
6
|
+
|
|
7
|
+
<div class="dialog" popover role="tooltip" :id="popovertarget" :class="[elementClasses]">
|
|
8
|
+
<button :popovertarget popovertargetaction="hide">x</button>
|
|
9
|
+
<slot name="popoverCotent"></slot>
|
|
10
|
+
</div>
|
|
11
|
+
</ClientOnly>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script setup lang="ts">
|
|
15
|
+
const props = defineProps({
|
|
16
|
+
popovertarget: {
|
|
17
|
+
type: String,
|
|
18
|
+
required: true,
|
|
19
|
+
},
|
|
20
|
+
styleClassPassthrough: {
|
|
21
|
+
type: Array as PropType<string[]>,
|
|
22
|
+
default: () => [],
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
const anchorName = `--anchor-${useId()}`;
|
|
27
|
+
|
|
28
|
+
const { elementClasses } = useStyleClassPassthrough(props.styleClassPassthrough);
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<style scoped lang="css">
|
|
32
|
+
@layer popover-setup {
|
|
33
|
+
/* @position-try --right {
|
|
34
|
+
inset: auto;
|
|
35
|
+
top: anchor(top);
|
|
36
|
+
left: calc(anchor(right) + 10px);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@position-try --left {
|
|
40
|
+
inset: auto;
|
|
41
|
+
top: anchor(top);
|
|
42
|
+
right: calc(anchor(left) + 10px);
|
|
43
|
+
} */
|
|
44
|
+
|
|
45
|
+
.popover-trigger {
|
|
46
|
+
anchor-name: v-bind(anchorName);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.dialog {
|
|
50
|
+
display: none;
|
|
51
|
+
position: absolute;
|
|
52
|
+
position-anchor: v-bind(anchorName);
|
|
53
|
+
margin: 0;
|
|
54
|
+
inset: auto;
|
|
55
|
+
top: calc(anchor(top) + 0px);
|
|
56
|
+
left: calc(anchor(right) + 10px);
|
|
57
|
+
opacity: 0;
|
|
58
|
+
transition: opacity 200ms, display 200ms, overlay 200ms;
|
|
59
|
+
transition-behavior: allow-discrete;
|
|
60
|
+
|
|
61
|
+
position-try-fallbacks: flip-inline;
|
|
62
|
+
|
|
63
|
+
&:popover-open {
|
|
64
|
+
display: block;
|
|
65
|
+
opacity: 1;
|
|
66
|
+
|
|
67
|
+
@starting-style {
|
|
68
|
+
display: block;
|
|
69
|
+
opacity: 0;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@position-try --top-left {
|
|
75
|
+
top: anchor(top);
|
|
76
|
+
right: calc(anchor(left + 10px));
|
|
77
|
+
left: unset;
|
|
78
|
+
/* width: revert; */
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@position-try --bottom-right {
|
|
82
|
+
top: anchor(bottom);
|
|
83
|
+
/* right: calc(anchor(left + 10px)); */
|
|
84
|
+
/* left: unset; */
|
|
85
|
+
/* width: revert; */
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
</style>
|