@turnipxenon/pineapple 3.0.0-alpha.8 → 3.0.0-alpha.9

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.
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import type { SimplePageMeta } from "../..";
2
+ import type { SimplePageMeta } from "../navigation_component/index";
3
3
 
4
4
  interface Props {
5
5
  pageMeta: SimplePageMeta;
@@ -1,4 +1,4 @@
1
- import type { SimplePageMeta } from "../..";
1
+ import type { SimplePageMeta } from "../navigation_component/index";
2
2
  interface Props {
3
3
  pageMeta: SimplePageMeta;
4
4
  children?: import('svelte').Snippet;
@@ -1,7 +1,8 @@
1
1
  <script lang="ts">
2
2
  import NavigationControl from "./NavigationControl.svelte";
3
- import { Card, createGoToFunction } from "../..";
4
3
  import { parsePageMeta, type ParsePageMetaCompareFn } from "./PageMeta";
4
+ import { Card } from "../index";
5
+ import { createGoToFunction } from "../../util/util";
5
6
 
6
7
 
7
8
 
@@ -2,7 +2,7 @@
2
2
  import { onMount } from "svelte";
3
3
  import { page } from "$app/state";
4
4
 
5
- import { Card } from "../..";
5
+ import { Card } from "../index";
6
6
  import { goto } from "$app/navigation";
7
7
 
8
8
  interface Props {
@@ -237,89 +237,89 @@ html.dark {
237
237
  @variant dark {
238
238
  color: var(--color-surface-950);
239
239
  }
240
+ /* endregion components */
241
+ }
242
+ }
240
243
 
241
- blockquote {
242
- @apply mb-4;
243
- font-style: italic;
244
- border: 0;
245
- text-align: center;
246
- filter: brightness(140%);
247
- }
248
244
 
249
- h1, h2, h3, h4, h5, h6, .fake-h2, .fake-h3, .fake-h4 {
250
- text-align: center;
251
- margin-top: 0;
252
- font-weight: bolder;
253
- color: var(--color-primary-900);
245
+ blockquote {
246
+ @apply mb-4;
247
+ font-style: italic;
248
+ border: 0;
249
+ text-align: center;
250
+ filter: brightness(140%);
251
+ }
254
252
 
255
- @variant dark {
256
- color: var(--color-primary-100);
257
- }
258
- }
253
+ h1, h2, h3, h4, h5, h6, .fake-h2, .fake-h3, .fake-h4 {
254
+ text-align: center;
255
+ margin-top: 0;
256
+ font-weight: bolder;
257
+ color: var(--color-primary-900);
259
258
 
260
- h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p, .fake-h2 + p, .fake-h3 + p, .fake-h4 + p {
261
- margin-top: 0.5lh;
262
- }
259
+ @variant dark {
260
+ color: var(--color-primary-100);
261
+ }
262
+ }
263
263
 
264
- h1 {
265
- @apply text-4xl;
266
- }
264
+ h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p, .fake-h2 + p, .fake-h3 + p, .fake-h4 + p {
265
+ margin-top: 0.5lh;
266
+ }
267
267
 
268
- h2, .fake-h2 {
269
- @apply text-3xl;
270
- }
268
+ h1 {
269
+ @apply text-4xl;
270
+ }
271
271
 
272
- h3, .fake-h3 {
273
- @apply text-2xl;
274
- }
272
+ h2, .fake-h2 {
273
+ @apply text-3xl;
274
+ }
275
275
 
276
- h4, .fake-h4 {
277
- @apply text-xl;
278
- }
276
+ h3, .fake-h3 {
277
+ @apply text-2xl;
278
+ }
279
279
 
280
- h5 {
281
- @apply text-lg;
282
- }
280
+ h4, .fake-h4 {
281
+ @apply text-xl;
282
+ }
283
283
 
284
- h6 {
285
- text-decoration: underline;
286
- }
284
+ h5 {
285
+ @apply text-lg;
286
+ }
287
287
 
288
- a {
289
- text-decoration: underline;
290
- color: var(--color-secondary-500);
288
+ h6 {
289
+ text-decoration: underline;
290
+ }
291
291
 
292
- @variant dark {
293
- color: var(--color-secondary-300);
294
- }
295
- }
292
+ a {
293
+ text-decoration: underline;
294
+ color: var(--color-secondary-500);
296
295
 
297
- a:hover, a:focus {
298
- filter: brightness(150%);
299
- }
296
+ @variant dark {
297
+ color: var(--color-secondary-300);
298
+ }
299
+ }
300
300
 
301
- a:visited {
302
- color: var(--color-secondary-950);
301
+ a:hover, a:focus {
302
+ filter: brightness(150%);
303
+ }
303
304
 
304
- @variant dark {
305
- color: var(--color-secondary-200);
306
- }
307
- }
305
+ a:visited {
306
+ color: var(--color-secondary-950);
308
307
 
309
- ul {
310
- list-style: inside;
311
- }
308
+ @variant dark {
309
+ color: var(--color-secondary-200);
310
+ }
311
+ }
312
312
 
313
- ol {
314
- list-style: decimal inside;
315
- }
313
+ ul {
314
+ list-style: inside;
315
+ }
316
316
 
317
- p{
318
- @apply mb-3;
319
- }
317
+ ol {
318
+ list-style: decimal inside;
319
+ }
320
320
 
321
- /* endregion components */
322
- }
321
+ p{
322
+ @apply mb-3;
323
323
  }
324
324
 
325
325
  @theme {
@@ -3,7 +3,7 @@
3
3
  import Card from "../../../components/Card.svelte";
4
4
  import GithubIcon from "../../../assets/icons/github-mark.svg";
5
5
  import ThisWebsiteFootage from "../../../assets/others/seaweed-showcase.mp4";
6
- import { Chip } from "../../..";
6
+ import { Chip } from "../../../components/index";
7
7
 
8
8
  // noinspection JSUnusedGlobalSymbols
9
9
  interface Props {
@@ -0,0 +1,21 @@
1
+ <script lang="ts">
2
+ import { Accordion } from "@skeletonlabs/skeleton-svelte";
3
+ import type { Snippet } from "svelte";
4
+
5
+ let {
6
+ value = $bindable(),
7
+ children,
8
+ }: {
9
+ value: string[],
10
+ children: Snippet,
11
+ } = $props();
12
+ </script>
13
+
14
+ <Accordion
15
+ classes="bg-primary-100 dark:bg-tertiary-900 dark:saturate-75"
16
+ {value}
17
+ onValueChange={(e) => (value = e.value)}
18
+ collapsible
19
+ >
20
+ {@render children()}
21
+ </Accordion>
@@ -0,0 +1,8 @@
1
+ import type { Snippet } from "svelte";
2
+ type $$ComponentProps = {
3
+ value: string[];
4
+ children: Snippet;
5
+ };
6
+ declare const PinyaAccordion: import("svelte").Component<$$ComponentProps, {}, "value">;
7
+ type PinyaAccordion = ReturnType<typeof PinyaAccordion>;
8
+ export default PinyaAccordion;
@@ -0,0 +1,29 @@
1
+ <script lang="ts">
2
+ // noinspection ES6UnusedImports
3
+ import { Accordion } from "@skeletonlabs/skeleton-svelte";
4
+ import type { Snippet } from "svelte";
5
+
6
+ let {
7
+ value,
8
+ control: controlSnippet,
9
+ panel: panelSnippet,
10
+ }: {
11
+ value: string,
12
+ control: Snippet;
13
+ panel: Snippet;
14
+ } = $props();
15
+ </script>
16
+
17
+ <Accordion.Item
18
+ {value}
19
+ controlHover="hover:bg-primary-500 dark:hover:bg-secondary-600"
20
+ >
21
+ <!-- Control -->
22
+ {#snippet control()}
23
+ {@render controlSnippet()}
24
+ {/snippet}
25
+ <!-- Panel -->
26
+ {#snippet panel()}
27
+ {@render panelSnippet()}
28
+ {/snippet}
29
+ </Accordion.Item>
@@ -0,0 +1,9 @@
1
+ import type { Snippet } from "svelte";
2
+ type $$ComponentProps = {
3
+ value: string;
4
+ control: Snippet;
5
+ panel: Snippet;
6
+ };
7
+ declare const PinyaAccordionItem: import("svelte").Component<$$ComponentProps, {}, "">;
8
+ type PinyaAccordionItem = ReturnType<typeof PinyaAccordionItem>;
9
+ export default PinyaAccordionItem;
@@ -0,0 +1,2 @@
1
+ export { default as PinyaAccordion } from "./PinyaAccordion.svelte";
2
+ export { default as PinyaAccordionItem } from "./PinyaAccordionItem.svelte";
@@ -0,0 +1,2 @@
1
+ export { default as PinyaAccordion } from "./PinyaAccordion.svelte";
2
+ export { default as PinyaAccordionItem } from "./PinyaAccordionItem.svelte";
@@ -1,3 +1,4 @@
1
1
  export { default as ModalBase } from "./ModalBase.svelte";
2
2
  export { default as FourPartCard } from "./FourPartCard.svelte";
3
3
  export { default as SocialSection } from "./SocialSection.svelte";
4
+ export * from "./accordion";
@@ -1,3 +1,4 @@
1
1
  export { default as ModalBase } from "./ModalBase.svelte";
2
2
  export { default as FourPartCard } from "./FourPartCard.svelte";
3
3
  export { default as SocialSection } from "./SocialSection.svelte";
4
+ export * from "./accordion";
@@ -0,0 +1,17 @@
1
+ <script lang="ts">
2
+ let {
3
+ isCircle = false,
4
+ classes = '',
5
+ }: {
6
+ isCircle?: boolean;
7
+ classes?: string;
8
+ } = $props();
9
+ </script>
10
+
11
+ <div
12
+ class="
13
+ {isCircle ?'placeholder-circle' : 'placeholder'}
14
+ animate-pulse bg-surface-600 dark:bg-surface-800
15
+ {classes}
16
+ "
17
+ ></div>
@@ -0,0 +1,7 @@
1
+ type $$ComponentProps = {
2
+ isCircle?: boolean;
3
+ classes?: string;
4
+ };
5
+ declare const Placeholder: import("svelte").Component<$$ComponentProps, {}, "">;
6
+ type Placeholder = ReturnType<typeof Placeholder>;
7
+ export default Placeholder;
@@ -1,6 +1,7 @@
1
1
  <script lang="ts">
2
- import { type PageMeta } from "../../..";
2
+ import { type PageMeta } from "../../../components/navigation_component/index";
3
3
  import { onMount } from "svelte";
4
+ import Placeholder from "../../elements/Placeholder.svelte";
4
5
 
5
6
  let hasTriedGettingChumBucket = $state(false);
6
7
  let pageMetaList: PageMeta[] = $state([]);
@@ -27,7 +28,7 @@
27
28
 
28
29
  <div class="chum-bucket-grid">
29
30
  {#if hasTriedGettingChumBucket}
30
- {#each pageMetaList as pageMeta}
31
+ {#each pageMetaList as pageMeta (pageMeta.title)}
31
32
  <div class="chum-bucket-item">
32
33
  {#if pageMeta.imageUrl}
33
34
  <img src={`https://turnipxenon.com${pageMeta.imageUrl}`}
@@ -48,8 +49,8 @@
48
49
  </div>
49
50
  {/each}
50
51
  {:else}
51
- {#each { length: 10 } as _}
52
- <div class="placeholder"></div>
52
+ {#each { length: 10 } as _, idx (idx)}
53
+ <Placeholder classes="mb-2" />
53
54
  {/each}
54
55
  {/if}
55
56
  </div>
@@ -25,7 +25,7 @@
25
25
  }: SeaweedLayoutProps = $props();
26
26
 
27
27
  let actualLayout = $state(layout);
28
- let isAdvanceSettingOn = $state(true);
28
+ let isAdvanceSettingOn = $state(false);
29
29
  let orderUrl = $state("");
30
30
 
31
31
  let queryStates = new SvelteMap<string, boolean>(queryTerms.map(term => [term, true]));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@turnipxenon/pineapple",
3
3
  "description": "personal package for base styling for other personal projects",
4
- "version": "3.0.0-alpha.8",
4
+ "version": "3.0.0-alpha.9",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
7
7
  "build": "vite build && yarn package",