@geckou/ui-vue 0.3.0 → 0.4.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.
Files changed (145) hide show
  1. package/README.md +8 -1
  2. package/dist/components/ArticleList/Card/Artistic.vue.d.ts +10 -0
  3. package/dist/components/ArticleList/Card/Entertainment.vue.d.ts +10 -0
  4. package/dist/components/ArticleList/Card/Gallery.vue.d.ts +10 -0
  5. package/dist/components/ArticleList/Card/Grid.vue.d.ts +11 -0
  6. package/dist/components/ArticleList/Card/News.vue.d.ts +9 -0
  7. package/dist/components/ArticleList/Card/Rounded.vue.d.ts +10 -0
  8. package/dist/components/ArticleList/Card/Row.vue.d.ts +9 -0
  9. package/dist/components/ArticleList/Card/Simple.vue.d.ts +10 -0
  10. package/dist/components/ArticleList/Card/Standard.vue.d.ts +10 -0
  11. package/dist/components/ArticleList/Card/Tile.vue.d.ts +10 -0
  12. package/dist/components/ArticleList/GenericArticleList.vue.d.ts +11 -0
  13. package/dist/components/ArticleList/List/Artistic.vue.d.ts +8 -0
  14. package/dist/components/ArticleList/List/Entertainment.vue.d.ts +8 -0
  15. package/dist/components/ArticleList/List/Gallery.vue.d.ts +8 -0
  16. package/dist/components/ArticleList/List/Grid.vue.d.ts +11 -0
  17. package/dist/components/ArticleList/List/News.vue.d.ts +8 -0
  18. package/dist/components/ArticleList/List/Rounded.vue.d.ts +8 -0
  19. package/dist/components/ArticleList/List/Row.vue.d.ts +8 -0
  20. package/dist/components/ArticleList/List/Simple.vue.d.ts +8 -0
  21. package/dist/components/ArticleList/List/Standard.vue.d.ts +8 -0
  22. package/dist/components/ArticleList/List/Tile.vue.d.ts +8 -0
  23. package/dist/components/ArticleList/Parts/AuthorInfo.vue.d.ts +31 -0
  24. package/dist/components/ArticleList/Parts/CardContainer.vue.d.ts +20 -0
  25. package/dist/components/ArticleList/Parts/CardHeading.vue.d.ts +12 -0
  26. package/dist/components/ArticleList/Parts/CategoryList.vue.d.ts +19 -0
  27. package/dist/components/ArticleList/Parts/ExcerptText.vue.d.ts +12 -0
  28. package/dist/components/ArticleList/Parts/MetadataList.vue.d.ts +32 -0
  29. package/dist/components/ArticleList/Parts/NoImage.vue.d.ts +2 -0
  30. package/dist/components/ArticleList/Parts/PostedDate.vue.d.ts +14 -0
  31. package/dist/components/ArticleList/Parts/TagList.vue.d.ts +18 -0
  32. package/dist/components/ArticleList/Parts/ThumbnailImage.vue.d.ts +17 -0
  33. package/dist/components/BasicButton.vue.d.ts +26 -0
  34. package/dist/components/CheckBox.vue.d.ts +34 -0
  35. package/dist/components/CheckBoxes.vue.d.ts +18 -0
  36. package/dist/components/CheckButton.vue.d.ts +31 -0
  37. package/dist/components/DatePicker.vue.d.ts +27 -0
  38. package/dist/components/DateRangePicker.vue.d.ts +31 -0
  39. package/dist/components/DateSelector.vue.d.ts +17 -0
  40. package/dist/components/DropdownUi.vue.d.ts +37 -0
  41. package/dist/components/ErrorMessage.vue.d.ts +9 -0
  42. package/dist/components/Icon/CalendarIcon.vue.d.ts +2 -0
  43. package/dist/components/Icon/CheckIcon.vue.d.ts +2 -0
  44. package/dist/components/Icon/CloseIcon.vue.d.ts +2 -0
  45. package/dist/components/Icon/Folder.vue.d.ts +2 -0
  46. package/dist/components/Icon/Image.vue.d.ts +2 -0
  47. package/dist/components/Icon/KeyboardArrowDownIcon.vue.d.ts +2 -0
  48. package/dist/components/Icon/Tag.vue.d.ts +2 -0
  49. package/dist/components/InputBox.vue.d.ts +27 -0
  50. package/dist/components/InputGroup.vue.d.ts +17 -0
  51. package/dist/components/LabeledCheckbox.vue.d.ts +20 -0
  52. package/dist/components/LabeledFieldset.vue.d.ts +21 -0
  53. package/dist/components/LoadingSpinner.vue.d.ts +2 -0
  54. package/dist/components/ModalBox.vue.d.ts +27 -0
  55. package/dist/components/PopupBox.vue.d.ts +30 -0
  56. package/dist/components/RadioButtons.vue.d.ts +20 -0
  57. package/dist/components/SelectBox.vue.d.ts +37 -0
  58. package/dist/components/SlideDownUi.vue.d.ts +37 -0
  59. package/dist/components/TabUI.vue.d.ts +54 -0
  60. package/dist/components/TextArea.vue.d.ts +33 -0
  61. package/dist/components/TextBox.vue.d.ts +44 -0
  62. package/dist/components/TextButton.vue.d.ts +10 -0
  63. package/dist/components/ToggleButton.vue.d.ts +23 -0
  64. package/dist/const/index.d.ts +1 -0
  65. package/dist/const/list-theme.d.ts +62 -0
  66. package/dist/index.d.ts +43 -0
  67. package/dist/index.js +3519 -0
  68. package/dist/scripts/form-validation-manager.d.ts +30 -0
  69. package/dist/scripts/unique-id.d.ts +1 -0
  70. package/dist/scripts/use-click-outside.d.ts +13 -0
  71. package/dist/scripts/utils.d.ts +15 -0
  72. package/dist/style.css +1 -0
  73. package/dist/types/index.d.ts +48 -77
  74. package/package.json +16 -8
  75. package/dist/assets/scss/functions.scss +0 -6
  76. package/dist/assets/scss/mixin.scss +0 -33
  77. package/dist/components/ArticleList/Card/Artistic.vue +0 -310
  78. package/dist/components/ArticleList/Card/Entertainment.vue +0 -244
  79. package/dist/components/ArticleList/Card/Gallery.vue +0 -254
  80. package/dist/components/ArticleList/Card/Grid.vue +0 -247
  81. package/dist/components/ArticleList/Card/News.vue +0 -150
  82. package/dist/components/ArticleList/Card/Rounded.vue +0 -154
  83. package/dist/components/ArticleList/Card/Row.vue +0 -167
  84. package/dist/components/ArticleList/Card/Simple.vue +0 -232
  85. package/dist/components/ArticleList/Card/Standard.vue +0 -187
  86. package/dist/components/ArticleList/Card/Tile.vue +0 -171
  87. package/dist/components/ArticleList/GenericArticleList.vue +0 -143
  88. package/dist/components/ArticleList/List/Artistic.vue +0 -24
  89. package/dist/components/ArticleList/List/Entertainment.vue +0 -24
  90. package/dist/components/ArticleList/List/Gallery.vue +0 -24
  91. package/dist/components/ArticleList/List/Grid.vue +0 -216
  92. package/dist/components/ArticleList/List/News.vue +0 -24
  93. package/dist/components/ArticleList/List/Rounded.vue +0 -24
  94. package/dist/components/ArticleList/List/Row.vue +0 -24
  95. package/dist/components/ArticleList/List/Simple.vue +0 -24
  96. package/dist/components/ArticleList/List/Standard.vue +0 -24
  97. package/dist/components/ArticleList/List/Tile.vue +0 -24
  98. package/dist/components/ArticleList/Parts/AuthorInfo.vue +0 -100
  99. package/dist/components/ArticleList/Parts/CardContainer.vue +0 -23
  100. package/dist/components/ArticleList/Parts/CardHeading.vue +0 -43
  101. package/dist/components/ArticleList/Parts/CategoryList.vue +0 -41
  102. package/dist/components/ArticleList/Parts/ExcerptText.vue +0 -43
  103. package/dist/components/ArticleList/Parts/MetadataList.vue +0 -120
  104. package/dist/components/ArticleList/Parts/NoImage.vue +0 -36
  105. package/dist/components/ArticleList/Parts/PostedDate.vue +0 -41
  106. package/dist/components/ArticleList/Parts/TagList.vue +0 -41
  107. package/dist/components/ArticleList/Parts/ThumbnailImage.vue +0 -85
  108. package/dist/components/BasicButton.vue +0 -143
  109. package/dist/components/CheckBox.vue +0 -140
  110. package/dist/components/CheckBoxes.vue +0 -100
  111. package/dist/components/CheckButton.vue +0 -127
  112. package/dist/components/DatePicker.vue +0 -234
  113. package/dist/components/DateRangePicker.vue +0 -85
  114. package/dist/components/DateSelector.vue +0 -273
  115. package/dist/components/DropdownUi.vue +0 -118
  116. package/dist/components/ErrorMessage.vue +0 -61
  117. package/dist/components/Icon/CalendarIcon.vue +0 -8
  118. package/dist/components/Icon/CheckIcon.vue +0 -8
  119. package/dist/components/Icon/CloseIcon.vue +0 -8
  120. package/dist/components/Icon/Folder.vue +0 -8
  121. package/dist/components/Icon/Image.vue +0 -14
  122. package/dist/components/Icon/KeyboardArrowDownIcon.vue +0 -8
  123. package/dist/components/Icon/Tag.vue +0 -8
  124. package/dist/components/InputBox.vue +0 -134
  125. package/dist/components/InputGroup.vue +0 -41
  126. package/dist/components/LabeledCheckbox.vue +0 -82
  127. package/dist/components/LabeledFieldset.vue +0 -41
  128. package/dist/components/LoadingSpinner.vue +0 -56
  129. package/dist/components/ModalBox.vue +0 -192
  130. package/dist/components/PopupBox.vue +0 -93
  131. package/dist/components/RadioButtons.vue +0 -163
  132. package/dist/components/SelectBox.vue +0 -166
  133. package/dist/components/SlideDownUi.vue +0 -123
  134. package/dist/components/TabUI.vue +0 -123
  135. package/dist/components/TextArea.vue +0 -115
  136. package/dist/components/TextBox.vue +0 -111
  137. package/dist/components/TextButton.vue +0 -47
  138. package/dist/components/ToggleButton.vue +0 -179
  139. package/dist/const/index.ts +0 -2
  140. package/dist/const/list-theme.ts +0 -62
  141. package/dist/index.ts +0 -126
  142. package/dist/scripts/form-validation-manager.ts +0 -63
  143. package/dist/scripts/utils.ts +0 -36
  144. package/dist/types/custom.d.ts +0 -1
  145. package/dist/types/vue-shim.d.ts +0 -5
@@ -1,187 +0,0 @@
1
- <script setup lang="ts">
2
- import type {
3
- Article,
4
- Category,
5
- PostConfig,
6
- } from '../../../types'
7
- import CardContainer from '../../../components/ArticleList/Parts/CardContainer.vue'
8
- import ThumbnailImage from '../../../components/ArticleList/Parts/ThumbnailImage.vue'
9
- import AuthorInfo from '../../../components/ArticleList/Parts/AuthorInfo.vue'
10
- import CardHeading from '../../../components/ArticleList/Parts/CardHeading.vue'
11
- import CategoryList from '../../../components/ArticleList/Parts/CategoryList.vue'
12
- import TagList from '../../../components/ArticleList/Parts/TagList.vue'
13
- import PostedDate from '../../../components/ArticleList/Parts/PostedDate.vue'
14
- import ExcerptText from '../../../components/ArticleList/Parts/ExcerptText.vue'
15
-
16
- defineProps<{
17
- article: Article
18
- path: string
19
- isPickUpItem: boolean
20
- postConfig: PostConfig
21
- categories: Category[]
22
- }>()
23
- </script>
24
-
25
- <template>
26
- <CardContainer
27
- v-if="article"
28
- :class="[$style.container, { [$style.pickup]: isPickUpItem} ]"
29
- :path="path"
30
- >
31
- <ThumbnailImage
32
- :article="article"
33
- :aspectRatio="{
34
- desktop: isPickUpItem ? '2.85/1' : '4/3',
35
- tablet : isPickUpItem ? '2.85/1' : '4/3',
36
- mobile : '4/3',
37
- }"
38
- :class="$style.thumbnail"
39
- style="grid-area: thumbnail;"
40
- />
41
- <CardHeading
42
- :heading="article.title.rendered"
43
- :class="$style.heading"
44
- style="grid-area: heading;"
45
- />
46
- <TagList
47
- v-if="postConfig.tag"
48
- :article="article"
49
- :label="{
50
- color : 'var(--gray)',
51
- fontSize: 'smaller',
52
- }"
53
- :class="$style.tag"
54
- style="grid-area: tag;"
55
- />
56
- <ExcerptText
57
- :excerpt="article.excerpt.rendered"
58
- :class="$style.excerpt"
59
- style="grid-area: excerpt;"
60
- />
61
- <PostedDate
62
- :date="article.date"
63
- :class="$style.date"
64
- formatString="yy.M.d"
65
- color="var(--gray)"
66
- style="grid-area: date;"
67
- />
68
- <AuthorInfo
69
- v-if="postConfig.author"
70
- :avatarUrls="article._embedded.author[0].avatar_urls"
71
- :name="article._embedded.author[0].name"
72
- :class="$style.author"
73
- style="grid-area: author;"
74
- />
75
- <CategoryList
76
- v-if="postConfig.category && article.categories"
77
- :categoryIds="article.categories"
78
- :categoryData="categories"
79
- :label="{
80
- backgroundColor: 'var(--main-color)',
81
- color : 'var(--white)',
82
- fontSize : 'small',
83
- }"
84
- :class="$style.category"
85
- style="grid-area: category;"
86
- />
87
- </CardContainer>
88
- </template>
89
-
90
- <style lang="scss" module>
91
- @use '../../../assets/scss/mixin' as *;
92
-
93
- .container {
94
- grid-template-columns: 1fr 1fr;
95
- grid-template-rows : 0 auto auto auto 1fr auto auto;
96
- grid-template-areas :
97
- 'category category'
98
- 'thumbnail thumbnail'
99
- 'heading heading'
100
- 'tag tag'
101
- 'excerpt excerpt'
102
- 'date author';
103
-
104
- &:hover {
105
- .thumbnail {
106
- opacity: .8;
107
- }
108
- }
109
-
110
- &.pickup {
111
- @include media('tablet') {
112
- grid-template-rows: auto 0 1fr auto auto auto auto;
113
- aspect-ratio : 2.85/1;
114
- position : relative;
115
-
116
- > * {
117
- &:not(.thumbnail):not(.category) {
118
- position : relative;
119
- padding-inline: var(--sp-medium);
120
- }
121
- }
122
-
123
- .date,
124
- .author {
125
- padding-block-end: var(--sp-medium);
126
- }
127
-
128
- .thumbnail {
129
- width : 100%;
130
- position: absolute;
131
- top : 0;
132
- left : 0;
133
- margin : 0;
134
-
135
- &::after {
136
- content : '';
137
- display : block;
138
- width : 100%;
139
- height : 100%;
140
- position : absolute;
141
- top : 0;
142
- left : 0;
143
- mix-blend-mode : screen;
144
- background-image: linear-gradient(
145
- to bottom,
146
- rgba(255, 255, 255, 0) 38%,
147
- rgba(255, 255, 255, .9) 100%
148
- );
149
- }
150
- }
151
-
152
- .heading {
153
- align-self: end;
154
- font-size : xx-large;
155
- }
156
- }
157
- }
158
- }
159
-
160
- .thumbnail {
161
- margin-block-end: var(--sp-medium);
162
- transition : opacity var(--animation-duration);
163
- }
164
-
165
- .category {
166
- position: absolute;
167
- top : 0;
168
- left : 0;
169
- }
170
-
171
- .heading {
172
- margin-block-end: var(--sp-min);
173
- }
174
-
175
- .excerpt {
176
- margin-block-start: var(--sp-medium);
177
- }
178
-
179
- .author {
180
- justify-content: flex-end;
181
- }
182
-
183
- .date,
184
- .author {
185
- margin-block-start: var(--sp-medium);
186
- }
187
- </style>
@@ -1,171 +0,0 @@
1
- <script setup lang="ts">
2
- import type {
3
- Article,
4
- Category,
5
- PostConfig,
6
- } from '../../../types'
7
- import CardContainer from '../../../components/ArticleList/Parts/CardContainer.vue'
8
- import ThumbnailImage from '../../../components/ArticleList/Parts/ThumbnailImage.vue'
9
- import AuthorInfo from '../../../components/ArticleList/Parts/AuthorInfo.vue'
10
- import CardHeading from '../../../components/ArticleList/Parts/CardHeading.vue'
11
- import CategoryList from '../../../components/ArticleList/Parts/CategoryList.vue'
12
- import TagList from '../../../components/ArticleList/Parts/TagList.vue'
13
- import PostedDate from '../../../components/ArticleList/Parts/PostedDate.vue'
14
- import ExcerptText from '../../../components/ArticleList/Parts/ExcerptText.vue'
15
-
16
- defineProps<{
17
- article: Article
18
- path: string
19
- isPickUpItem: boolean
20
- postConfig: PostConfig
21
- categories: Category[]
22
- }>()
23
- </script>
24
-
25
- <template>
26
- <CardContainer
27
- v-if="article"
28
- :class="[$style.container, { [$style.pickup]: isPickUpItem} ]"
29
- :path="path"
30
- >
31
- <ThumbnailImage
32
- :article="article"
33
- :aspectRatio="{
34
- desktop: isPickUpItem ? '21/9' : '4/3',
35
- tablet : '4/3',
36
- mobile : '4/3',
37
- }"
38
- :class="$style.thumbnail"
39
- style="grid-area: thumbnail;"
40
- />
41
- <PostedDate
42
- :date="article.date"
43
- formatString="yy.M.d"
44
- :class="$style.date"
45
- style="grid-area: date;"
46
- />
47
- <CategoryList
48
- v-if="postConfig.category && article.categories"
49
- :categoryIds="article.categories"
50
- :categoryData="categories"
51
- :label="{
52
- color : 'var(--main-color)',
53
- fontSize: 'small',
54
- }"
55
- :class="$style.category"
56
- style="grid-area: category;"
57
- />
58
- <CardHeading
59
- :heading="article.title.rendered"
60
- :class="$style.heading"
61
- style="grid-area: heading;"
62
- />
63
- <ExcerptText
64
- :excerpt="article.excerpt.rendered"
65
- :class="$style.excerpt"
66
- style="grid-area: excerpt;"
67
- />
68
- <TagList
69
- v-if="postConfig.tag"
70
- :article="article"
71
- :label="{
72
- color : 'var(--gray)',
73
- fontSize: 'small',
74
- }"
75
- :class="$style.tag"
76
- delimiter="/"
77
- style="grid-area: tag;"
78
- />
79
- <AuthorInfo
80
- v-if="postConfig.author"
81
- :name="article._embedded.author[0].name"
82
- :class="$style.author"
83
- :text="{
84
- color : 'var(--gray)',
85
- fontWeight : 'bold',
86
- preposition: 'by',
87
- }"
88
- style="grid-area: author;"
89
- />
90
- </CardContainer>
91
- </template>
92
-
93
- <style lang="scss" module>
94
- @use '../../../assets/scss/mixin' as *;
95
-
96
- .container {
97
- grid-template-columns: auto 1fr;
98
- grid-template-rows : fit-content(55%) auto auto 1fr auto auto;
99
- grid-template-areas :
100
- 'thumbnail thumbnail'
101
- 'date category'
102
- 'heading heading'
103
- 'excerpt excerpt'
104
- 'tag tag'
105
- 'author author';
106
- box-shadow: 0 0 1px 0 rgba(var(--black-rgb), .4);
107
- height : 100%;
108
- transition: box-shadow var(--animation-duration);
109
-
110
- &:hover {
111
- box-shadow: 0 0 var(--sp-medium) 2px rgba(var(--black-rgb), .2);
112
-
113
- .thumbnail {
114
- opacity: .8;
115
- }
116
- }
117
-
118
- &.pickup {
119
- @include media('tablet') {
120
- grid-template-rows : auto auto 1fr auto auto;
121
- grid-template-columns: fit-content(50%) auto 1fr;
122
- grid-template-areas :
123
- 'thumbnail date category'
124
- 'thumbnail heading heading'
125
- 'thumbnail excerpt excerpt'
126
- 'thumbnail tag tag'
127
- 'thumbnail author author';
128
- }
129
-
130
- @include media('desktop') {
131
- grid-template-columns: calc(66.666% - 2 * var(--sp-small)) auto 1fr;
132
- }
133
- }
134
- }
135
-
136
- .thumbnail {
137
- transition: opacity var(--animation-duration);
138
- }
139
-
140
- .heading,
141
- .tag,
142
- .excerpt,
143
- .author {
144
- margin-block : var(--sp-small);
145
- padding-inline: var(--sp-large);
146
- }
147
-
148
- .date,
149
- .category {
150
- padding : var(--sp-large);
151
- padding-bottom: 0;
152
- }
153
-
154
- .date {
155
- padding-right: var(--sp-min);
156
- }
157
-
158
- .category {
159
- padding-left: var(--sp-min);
160
-
161
- &::before {
162
- content : '/';
163
- color : var(--gray);
164
- font-size: small;
165
- }
166
- }
167
-
168
- .author {
169
- padding-bottom: var(--sp-large);
170
- }
171
- </style>
@@ -1,143 +0,0 @@
1
- <script setup lang="ts">
2
-
3
- import type {
4
- Article,
5
- Category,
6
- ListSettings,
7
- } from '../../types'
8
- import { computed } from 'vue'
9
- import { returnArticlePath, normalizePostConfig } from '../../scripts/utils'
10
- import { LIST_THEME } from '../../const/list-theme'
11
- import StandardCard from '../../components/ArticleList/Card/Standard.vue'
12
- import RoundedCard from '../../components/ArticleList/Card/Rounded.vue'
13
- import ArtisticCard from '../../components/ArticleList/Card/Artistic.vue'
14
- import TileCard from '../../components/ArticleList/Card/Tile.vue'
15
- import SimpleCard from '../../components/ArticleList/Card/Simple.vue'
16
- import RowCard from '../../components/ArticleList/Card/Row.vue'
17
- import NewsCard from '../../components/ArticleList/Card/News.vue'
18
- import EntertainmentCard from '../../components/ArticleList/Card/Entertainment.vue'
19
- import GalleryCard from '../../components/ArticleList/Card/Gallery.vue'
20
-
21
- const props = defineProps<{
22
- articles: Article[]
23
- theme: keyof typeof LIST_THEME
24
- categories: Category[]
25
- columnNumber: number
26
- settings: ListSettings
27
- }>()
28
-
29
- // settings は親から動的に差し替えられるため computed で参照する
30
- const domainToUse = computed(() => props.settings.domainToUse)
31
- const isEnabledPickUp = computed(() => props.settings.isEnabledPickUp)
32
- const postConfig = computed(() => normalizePostConfig(props.settings.postConfig))
33
-
34
- const listItem = computed(() => {
35
- switch (props.theme) {
36
- case 'standard':
37
- return StandardCard
38
- case 'rounded':
39
- return RoundedCard
40
- case 'artistic':
41
- return ArtisticCard
42
- case 'tile':
43
- return TileCard
44
- case 'simple':
45
- return SimpleCard
46
- case 'row':
47
- return RowCard
48
- case 'news':
49
- return NewsCard
50
- case 'gallery':
51
- return GalleryCard
52
- case 'entertainment':
53
- return EntertainmentCard
54
- default:
55
- return StandardCard
56
- }
57
- })
58
- </script>
59
-
60
- <template>
61
- <ul
62
- :style="{
63
- ['--column-number']: columnNumber,
64
- ['--tablet-column-number']: columnNumber - 1 ? columnNumber - 1 : 1,
65
- }"
66
- :class="[$style.list, {[$style.pickup]: isEnabledPickUp}]"
67
- >
68
- <li
69
- v-for="(article, index) in articles"
70
- :key="article.id"
71
- :style="{animationDelay: `${Number(index) * .1}s`}"
72
- >
73
- <component
74
- :is="listItem"
75
- :path="returnArticlePath(postConfig, domainToUse, article.id)"
76
- :article="article"
77
- :isPickUpItem="Number(index) === 0 && isEnabledPickUp"
78
- :postConfig="postConfig"
79
- :categories="categories"
80
- />
81
- </li>
82
- </ul>
83
- </template>
84
-
85
- <style lang="scss" module>
86
- @use '../../assets/scss/mixin' as *;
87
-
88
- .list {
89
- --list-gap : var(--sp-large);
90
- display : grid;
91
- grid-template-rows: 1fr;
92
- gap : var(--list-gap);
93
- width : 100%;
94
-
95
- @keyframes fadeIn {
96
- from {
97
- opacity: 0;
98
- }
99
-
100
- to {
101
- opacity: 1;
102
- }
103
- }
104
-
105
- @include media('mobile') {
106
- grid-template-columns : repeat(auto-fit, 100%);
107
- }
108
-
109
- @include media('tablet') {
110
- grid-template-columns : repeat(auto-fit, calc((100% - var(--list-gap) * (var(--tablet-column-number) - 1)) / var(--tablet-column-number)));
111
- }
112
-
113
- @include media('desktop') {
114
- grid-template-columns : repeat(auto-fit, calc((100% - var(--list-gap) * (var(--column-number) - 1)) / var(--column-number)));
115
- }
116
-
117
- > li {
118
- opacity : 0;
119
- animation-name : fadeIn;
120
- animation-duration : 1s;
121
- animation-timing-function: ease-out;
122
- animation-fill-mode : forwards;
123
- }
124
-
125
- &.pickup {
126
- > li {
127
- &:first-child {
128
- @include media('mobile') {
129
- grid-column: 1;
130
- }
131
-
132
- @include media('tablet') {
133
- grid-column: span var(--tablet-column-number);
134
- }
135
-
136
- @include media('desktop') {
137
- grid-column: span var(--column-number);
138
- }
139
- }
140
- }
141
- }
142
- }
143
- </style>
@@ -1,24 +0,0 @@
1
- <script setup lang="ts">
2
- import type {
3
- Article,
4
- Category,
5
- ListSettings,
6
- } from '../../../types'
7
- import GenericArticleList from '../../../components/ArticleList/GenericArticleList.vue'
8
-
9
- defineProps<{
10
- articles: Article[]
11
- categories: Category[]
12
- settings: ListSettings
13
- }>()
14
- </script>
15
-
16
- <template>
17
- <GenericArticleList
18
- theme="artistic"
19
- :columnNumber="3"
20
- :articles="articles"
21
- :categories="categories"
22
- :settings="settings"
23
- />
24
- </template>
@@ -1,24 +0,0 @@
1
- <script setup lang="ts">
2
- import type {
3
- Article,
4
- Category,
5
- ListSettings,
6
- } from '../../../types'
7
- import GenericArticleList from '../../../components/ArticleList/GenericArticleList.vue'
8
-
9
- defineProps<{
10
- articles: Article[]
11
- categories: Category[]
12
- settings: ListSettings
13
- }>()
14
- </script>
15
-
16
- <template>
17
- <GenericArticleList
18
- theme="entertainment"
19
- :columnNumber="3"
20
- :articles="articles"
21
- :categories="categories"
22
- :settings="settings"
23
- />
24
- </template>
@@ -1,24 +0,0 @@
1
- <script setup lang="ts">
2
- import type {
3
- Article,
4
- Category,
5
- ListSettings,
6
- } from '../../../types'
7
- import GenericArticleList from '../../../components/ArticleList/GenericArticleList.vue'
8
-
9
- defineProps<{
10
- articles: Article[]
11
- categories: Category[]
12
- settings: ListSettings
13
- }>()
14
- </script>
15
-
16
- <template>
17
- <GenericArticleList
18
- theme="gallery"
19
- :columnNumber="3"
20
- :articles="articles"
21
- :categories="categories"
22
- :settings="settings"
23
- />
24
- </template>