@turnipxenon/pineapple 4.4.0 → 4.4.2

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.
@@ -163,7 +163,7 @@ export class DialogManager {
163
163
  // set the portrait
164
164
  let portraitValue = AresHappy;
165
165
  if (this.currentMessageMeta.portraitType) {
166
- portraitValue = this.portraitMap.get(this.currentMessageMeta.portraitType ?? AresHappy);
166
+ portraitValue = this.portraitMap.get(this.currentMessageMeta.portraitType ?? AresHappy) ?? '';
167
167
  }
168
168
  if (portraitValue) {
169
169
  this.currentPortrait.update(() => portraitValue);
@@ -1,21 +1,20 @@
1
- <script lang="ts">
2
- import ParsnipBlockChildren from "./ParsnipBlockChildren.svelte";
3
- import ParsnipPhrasingChildren from "./ParsnipPhrasingChildren.svelte";
4
- import type { Heading } from "mdast";
5
-
6
- const { heading }: { heading: Heading } = $props();
7
- </script>
8
-
9
- {#if heading.depth === 1}
10
- <h2><ParsnipPhrasingChildren phrasingChildren={heading.children}/></h2>
11
- {:else if heading.depth === 2}
12
- <h3><ParsnipPhrasingChildren phrasingChildren={heading.children}/></h3>
13
- {:else if heading.depth === 3}
14
- <h4><ParsnipPhrasingChildren phrasingChildren={heading.children}/></h4>
15
- {:else if heading.depth === 4}
16
- <h5><ParsnipPhrasingChildren phrasingChildren={heading.children}/></h5>
17
- {:else if heading.depth === 5}
18
- <h6><ParsnipPhrasingChildren phrasingChildren={heading.children}/></h6>
19
- {:else if heading.depth === 6}
20
- <p><ParsnipPhrasingChildren phrasingChildren={heading.children}/></p>
21
- {/if}
1
+ <script lang="ts">
2
+ import ParsnipPhrasingChildren from "./ParsnipPhrasingChildren.svelte";
3
+ import type { Heading } from "mdast";
4
+
5
+ const { heading }: { heading: Heading } = $props();
6
+ </script>
7
+
8
+ {#if heading.depth === 1}
9
+ <h2><ParsnipPhrasingChildren phrasingChildren={heading.children}/></h2>
10
+ {:else if heading.depth === 2}
11
+ <h3><ParsnipPhrasingChildren phrasingChildren={heading.children}/></h3>
12
+ {:else if heading.depth === 3}
13
+ <h4><ParsnipPhrasingChildren phrasingChildren={heading.children}/></h4>
14
+ {:else if heading.depth === 4}
15
+ <h5><ParsnipPhrasingChildren phrasingChildren={heading.children}/></h5>
16
+ {:else if heading.depth === 5}
17
+ <h6><ParsnipPhrasingChildren phrasingChildren={heading.children}/></h6>
18
+ {:else if heading.depth === 6}
19
+ <p><ParsnipPhrasingChildren phrasingChildren={heading.children}/></p>
20
+ {/if}
@@ -18,9 +18,9 @@
18
18
  close
19
19
  }: ModalBaseProps = $props();
20
20
 
21
- let container: HTMLDivElement;
21
+ let container = $state<HTMLDivElement>();
22
22
  onMount(() => {
23
- const focusableElement = container.querySelector('input, select, textarea, button, object, a, area[href], [tabindex]');
23
+ const focusableElement = container?.querySelector('input, select, textarea, button, object, a, area[href], [tabindex]');
24
24
  if (focusableElement) {
25
25
  (focusableElement as HTMLElement).focus();
26
26
  }
@@ -72,4 +72,4 @@
72
72
  .interactable {
73
73
  pointer-events: auto;
74
74
  }
75
- </style>
75
+ </style>
@@ -54,7 +54,8 @@
54
54
  <PinyaButton
55
55
  buttonVariant={ButtonVariant.SmallIcon}
56
56
  title={`mailto:${email}`}
57
- onclick={() => window.open(`mailto:${email}`)}>
57
+ onclick={() => window.open(`mailto:${email}`)}
58
+ >
58
59
  <ImageIcon src={MailIcon} alt="mail icon" />
59
60
  {#if (!isSmallVersion)}
60
61
  <span>{email}</span>
@@ -89,4 +90,4 @@
89
90
  gap: 0.7rem;
90
91
  align-items: stretch;
91
92
  }
92
- </style>
93
+ </style>
@@ -77,8 +77,4 @@
77
77
  gap: 0.5lh;
78
78
  margin-top: 1lh;
79
79
  }
80
-
81
- .send-link {
82
- margin-top: 0.75lh;
83
- }
84
- </style>
80
+ </style>
@@ -20,7 +20,7 @@
20
20
 
21
21
  <div class="mt-8 flex flex-col items-center">
22
22
  <PinyaCard widthClass="w-full" className="mb-8">
23
- <h2>{title}</h2>
23
+ <h2 class="m-auto">{title}</h2>
24
24
  </PinyaCard>
25
25
  <div class="normal-project-container">
26
26
  {#each normalUiList as ui (ui.key)}
@@ -63,4 +63,4 @@
63
63
  justify-content: center;
64
64
  align-items: start;
65
65
  }
66
- </style>
66
+ </style>
@@ -220,42 +220,10 @@
220
220
 
221
221
 
222
222
  <style>
223
-
224
-
225
- .advanced-setting-list {
226
- display: flex;
227
- flex-direction: column;
228
- }
229
-
230
- .btn-group-header {
231
- @apply preset-filled-tertiary-500;
232
- display: flex;
233
- align-items: center;
234
- margin-bottom: 0.5lh;
235
- }
236
-
237
- .btn-group-entry {
238
- @apply ;
239
- display: flex;
240
- padding: 0;
241
- }
242
-
243
- .btn-group-entry > div {
244
- padding: 1em;
245
- }
246
-
247
223
  .flipped-vertically {
248
224
  transform: rotate(180deg);
249
225
  }
250
226
 
251
- .entry-group {
252
- border-radius: var(--theme-rounded-container);
253
- background-color: rgb(var(--color-surface-600));
254
- margin-top: 1.5lh;
255
- margin-bottom: 0.5lh;
256
- padding: 0.5lh 0.5em;
257
- }
258
-
259
227
  .entry-name {
260
228
  grow: 1;
261
229
  }
@@ -272,27 +240,6 @@
272
240
  display: flex;
273
241
  }
274
242
 
275
- .btn-group > button {
276
- padding: 0.3em 0.75em;
277
- }
278
-
279
- .btn-group-header > h2 {
280
- font-weight: bolder;
281
- padding-top: 1lh;
282
- padding-bottom: 1lh;
283
- margin-bottom: 0;
284
- padding-inline-start: 1em;
285
- }
286
-
287
- .dark .btn-group-header > h2 {
288
- color: rgb(var(--theme-font-color-dark));
289
- }
290
-
291
- .dark .entry-group {
292
- background-color: rgb(var(--color-surface-800));
293
- }
294
-
295
-
296
243
  tbody tr:nth-child(odd) {
297
244
  background-color: var(--color-surface-100-900);
298
245
  }
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": "4.4.0",
4
+ "version": "4.4.2",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
7
7
  "build": "vite build && yarn package",