@turnipxenon/pineapple 2.4.16 → 2.4.17

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.
@@ -4,8 +4,9 @@
4
4
  <option name="autoReloadType" value="SELECTIVE" />
5
5
  </component>
6
6
  <component name="ChangeListManager">
7
- <list default="true" id="accb6ba2-c343-4f84-ad30-6e2d71eceee5" name="Changes" comment="Fix dialog layout to make it usable on hobby site">
8
- <change beforePath="$PROJECT_DIR$/src/lib/components/pineapple/PineappleBaseLayout.svelte" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/components/pineapple/PineappleBaseLayout.svelte" afterDir="false" />
7
+ <list default="true" id="accb6ba2-c343-4f84-ad30-6e2d71eceee5" name="Changes" comment="Export Card">
8
+ <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
9
+ <change beforePath="$PROJECT_DIR$/src/routes/(pineapple)/pineapple/+page.svelte" beforeDir="false" afterPath="$PROJECT_DIR$/src/routes/(pineapple)/pineapple/+page.svelte" afterDir="false" />
9
10
  </list>
10
11
  <option name="SHOW_DIALOG" value="false" />
11
12
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -76,32 +77,32 @@
76
77
  <option name="hideEmptyMiddlePackages" value="true" />
77
78
  <option name="showLibraryContents" value="true" />
78
79
  </component>
79
- <component name="PropertiesComponent"><![CDATA[{
80
- "keyToString": {
81
- "DefaultHtmlFileTemplate": "HTML File",
82
- "RunOnceActivity.OpenProjectViewOnStart": "true",
83
- "RunOnceActivity.ShowReadmeOnStart": "true",
84
- "WebServerToolWindowFactoryState": "false",
85
- "git-widget-placeholder": "turnip/fix",
86
- "ignore.virus.scanning.warn.message": "true",
87
- "last_opened_file_path": "C:/Users/Pumpkin/Projects/Web/pineapple/src/lib/scripts/pineapple_fiber",
88
- "node.js.detected.package.eslint": "true",
89
- "node.js.detected.package.tslint": "true",
90
- "node.js.selected.package.eslint": "(autodetect)",
91
- "node.js.selected.package.tslint": "(autodetect)",
92
- "nodejs_interpreter_path": "node",
93
- "nodejs_package_manager_path": "yarn",
94
- "npm.build.executor": "Run",
95
- "npm.dev (1).executor": "Run",
96
- "npm.dev --open.executor": "Run",
97
- "npm.dev offline.executor": "Run",
98
- "npm.dev-offline.executor": "Run",
99
- "npm.dev.executor": "Run",
100
- "settings.editor.selected.configurable": "preferences.pluginManager",
101
- "ts.external.directory.path": "C:\\Users\\Pumpkin\\Projects\\Web\\pineapple\\node_modules\\typescript\\lib",
102
- "vue.rearranger.settings.migration": "true"
80
+ <component name="PropertiesComponent">{
81
+ &quot;keyToString&quot;: {
82
+ &quot;DefaultHtmlFileTemplate&quot;: &quot;HTML File&quot;,
83
+ &quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;,
84
+ &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
85
+ &quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;,
86
+ &quot;git-widget-placeholder&quot;: &quot;turnip/dev&quot;,
87
+ &quot;ignore.virus.scanning.warn.message&quot;: &quot;true&quot;,
88
+ &quot;last_opened_file_path&quot;: &quot;C:/Users/Pumpkin/Projects/Web/pineapple/src/lib/scripts/pineapple_fiber&quot;,
89
+ &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
90
+ &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
91
+ &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
92
+ &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
93
+ &quot;nodejs_interpreter_path&quot;: &quot;node&quot;,
94
+ &quot;nodejs_package_manager_path&quot;: &quot;yarn&quot;,
95
+ &quot;npm.build.executor&quot;: &quot;Run&quot;,
96
+ &quot;npm.dev (1).executor&quot;: &quot;Run&quot;,
97
+ &quot;npm.dev --open.executor&quot;: &quot;Run&quot;,
98
+ &quot;npm.dev offline.executor&quot;: &quot;Run&quot;,
99
+ &quot;npm.dev-offline.executor&quot;: &quot;Run&quot;,
100
+ &quot;npm.dev.executor&quot;: &quot;Run&quot;,
101
+ &quot;settings.editor.selected.configurable&quot;: &quot;preferences.pluginManager&quot;,
102
+ &quot;ts.external.directory.path&quot;: &quot;C:\\Users\\Pumpkin\\Projects\\Web\\pineapple\\node_modules\\typescript\\lib&quot;,
103
+ &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
103
104
  }
104
- }]]></component>
105
+ }</component>
105
106
  <component name="RecentsManager">
106
107
  <key name="CopyFile.RECENT_KEYS">
107
108
  <recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\lib\scripts\pineapple_fiber" />
@@ -205,23 +206,12 @@
205
206
  <workItem from="1710623596666" duration="2298000" />
206
207
  <workItem from="1710645881933" duration="8776000" />
207
208
  <workItem from="1710721345686" duration="2025000" />
208
- <workItem from="1710724001847" duration="11948000" />
209
- </task>
210
- <task id="LOCAL-00027" summary="Implement experience section">
211
- <option name="closed" value="true" />
212
- <created>1709910109319</created>
213
- <option name="number" value="00027" />
214
- <option name="presentableId" value="LOCAL-00027" />
215
- <option name="project" value="LOCAL" />
216
- <updated>1709910109319</updated>
217
- </task>
218
- <task id="LOCAL-00028" summary="WIP carousel&#10;&#10;To be removed since it's distracting">
219
- <option name="closed" value="true" />
220
- <created>1709913016790</created>
221
- <option name="number" value="00028" />
222
- <option name="presentableId" value="LOCAL-00028" />
223
- <option name="project" value="LOCAL" />
224
- <updated>1709913016790</updated>
209
+ <workItem from="1710724001847" duration="13125000" />
210
+ <workItem from="1710825437247" duration="906000" />
211
+ <workItem from="1710914868232" duration="41000" />
212
+ <workItem from="1711051949931" duration="144000" />
213
+ <workItem from="1711052377810" duration="128000" />
214
+ <workItem from="1711090540281" duration="1759000" />
225
215
  </task>
226
216
  <task id="LOCAL-00029" summary="Add game section">
227
217
  <option name="closed" value="true" />
@@ -599,7 +589,23 @@
599
589
  <option name="project" value="LOCAL" />
600
590
  <updated>1710739937750</updated>
601
591
  </task>
602
- <option name="localTasksCounter" value="76" />
592
+ <task id="LOCAL-00076" summary="Add option to set default dialog behavior in Pineapple">
593
+ <option name="closed" value="true" />
594
+ <created>1710741953853</created>
595
+ <option name="number" value="00076" />
596
+ <option name="presentableId" value="LOCAL-00076" />
597
+ <option name="project" value="LOCAL" />
598
+ <updated>1710741953853</updated>
599
+ </task>
600
+ <task id="LOCAL-00077" summary="Export Card">
601
+ <option name="closed" value="true" />
602
+ <created>1711093190088</created>
603
+ <option name="number" value="00077" />
604
+ <option name="presentableId" value="LOCAL-00077" />
605
+ <option name="project" value="LOCAL" />
606
+ <updated>1711093190088</updated>
607
+ </task>
608
+ <option name="localTasksCounter" value="78" />
603
609
  <servers />
604
610
  </component>
605
611
  <component name="TypeScriptGeneratedFilesManager">
@@ -657,8 +663,6 @@
657
663
  </option>
658
664
  </component>
659
665
  <component name="VcsManagerConfiguration">
660
- <MESSAGE value="Add unique class for Card" />
661
- <MESSAGE value="Remove unnecessary files" />
662
666
  <MESSAGE value="Fix accordion rounded border missing" />
663
667
  <MESSAGE value="v2.4.6" />
664
668
  <MESSAGE value="Extract styling out of Skeleton accordion" />
@@ -682,7 +686,9 @@
682
686
  <MESSAGE value="2.4.14" />
683
687
  <MESSAGE value="Run dialog parser in runtime" />
684
688
  <MESSAGE value="Fix dialog layout to make it usable on hobby site" />
685
- <option name="LAST_COMMIT_MESSAGE" value="Fix dialog layout to make it usable on hobby site" />
689
+ <MESSAGE value="Add option to set default dialog behavior in Pineapple" />
690
+ <MESSAGE value="Export Card" />
691
+ <option name="LAST_COMMIT_MESSAGE" value="Export Card" />
686
692
  </component>
687
693
  <component name="XDebuggerManager">
688
694
  <breakpoint-manager>
@@ -1,6 +1,7 @@
1
1
  export { default as PineappleLayoutBase } from "./components/pineapple/PineappleBaseLayout.svelte";
2
2
  export { default as SeaweedTemplate } from "./template/SeaweedTemplate.svelte";
3
3
  export { default as LazyAsset } from "./components/LazyAsset.svelte";
4
+ export { default as Card } from "./components/Card.svelte";
4
5
  export * from "./components/dialog_manager/DialogManagerStore";
5
6
  export * from "./components/dialog_manager/DialogManager";
6
7
  export * from "./components/dialog_manager/DialogUtils";
@@ -1,6 +1,7 @@
1
1
  export { default as PineappleLayoutBase } from "./components/pineapple/PineappleBaseLayout.svelte";
2
2
  export { default as SeaweedTemplate } from "./template/SeaweedTemplate.svelte";
3
3
  export { default as LazyAsset } from "./components/LazyAsset.svelte";
4
+ export { default as Card } from "./components/Card.svelte";
4
5
  export * from "./components/dialog_manager/DialogManagerStore";
5
6
  export * from "./components/dialog_manager/DialogManager";
6
7
  export * from "./components/dialog_manager/DialogUtils";
@@ -46,7 +46,6 @@ declare module '$env/static/private' {
46
46
  export const HOMEDRIVE: string;
47
47
  export const HOMEPATH: string;
48
48
  export const IDEA_INITIAL_DIRECTORY: string;
49
- export const IJ_RESTARTER_LOG: string;
50
49
  export const INIT_CWD: string;
51
50
  export const JAVA_HOME: string;
52
51
  export const LOCALAPPDATA: string;
@@ -240,7 +239,6 @@ declare module '$env/dynamic/private' {
240
239
  HOMEDRIVE: string;
241
240
  HOMEPATH: string;
242
241
  IDEA_INITIAL_DIRECTORY: string;
243
- IJ_RESTARTER_LOG: string;
244
242
  INIT_CWD: string;
245
243
  JAVA_HOME: string;
246
244
  LOCALAPPDATA: string;
@@ -21,7 +21,7 @@ export const options = {
21
21
  app: ({ head, body, assets, nonce, env }) => "<!DOCTYPE html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<link rel=\"icon\" href=\"" + assets + "/favicon.png\" />\n\t\t<meta name=\"viewport\" content=\"width=device-width\" />\n\t\t" + head + "\n\t</head>\n\n\t<body data-sveltekit-preload-data=\"hover\" data-theme=\"crimson\">\n\t\t<div style=\"display: contents\" class=\"h-full overflow-hidden\">" + body + "</div>\n\t</body>\n</html>\n",
22
22
  error: ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<title>" + message + "</title>\n\n\t\t<style>\n\t\t\tbody {\n\t\t\t\t--bg: white;\n\t\t\t\t--fg: #222;\n\t\t\t\t--divider: #ccc;\n\t\t\t\tbackground: var(--bg);\n\t\t\t\tcolor: var(--fg);\n\t\t\t\tfont-family:\n\t\t\t\t\tsystem-ui,\n\t\t\t\t\t-apple-system,\n\t\t\t\t\tBlinkMacSystemFont,\n\t\t\t\t\t'Segoe UI',\n\t\t\t\t\tRoboto,\n\t\t\t\t\tOxygen,\n\t\t\t\t\tUbuntu,\n\t\t\t\t\tCantarell,\n\t\t\t\t\t'Open Sans',\n\t\t\t\t\t'Helvetica Neue',\n\t\t\t\t\tsans-serif;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t.error {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tmax-width: 32rem;\n\t\t\t\tmargin: 0 1rem;\n\t\t\t}\n\n\t\t\t.status {\n\t\t\t\tfont-weight: 200;\n\t\t\t\tfont-size: 3rem;\n\t\t\t\tline-height: 1;\n\t\t\t\tposition: relative;\n\t\t\t\ttop: -0.05rem;\n\t\t\t}\n\n\t\t\t.message {\n\t\t\t\tborder-left: 1px solid var(--divider);\n\t\t\t\tpadding: 0 0 0 1rem;\n\t\t\t\tmargin: 0 0 0 1rem;\n\t\t\t\tmin-height: 2.5rem;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t}\n\n\t\t\t.message h1 {\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t@media (prefers-color-scheme: dark) {\n\t\t\t\tbody {\n\t\t\t\t\t--bg: #222;\n\t\t\t\t\t--fg: #ddd;\n\t\t\t\t\t--divider: #666;\n\t\t\t\t}\n\t\t\t}\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<div class=\"error\">\n\t\t\t<span class=\"status\">" + status + "</span>\n\t\t\t<div class=\"message\">\n\t\t\t\t<h1>" + message + "</h1>\n\t\t\t</div>\n\t\t</div>\n\t</body>\n</html>\n"
23
23
  },
24
- version_hash: "ti8fmh"
24
+ version_hash: "1v14hx1"
25
25
  };
26
26
 
27
27
  export async function get_hooks() {
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { default as PineappleLayoutBase } from "./components/pineapple/PineappleBaseLayout.svelte";
2
2
  export { default as SeaweedTemplate } from "./template/SeaweedTemplate.svelte";
3
3
  export { default as LazyAsset } from "./components/LazyAsset.svelte";
4
+ export { default as Card } from "./components/Card.svelte";
4
5
  export * from "./components/dialog_manager/DialogManagerStore";
5
6
  export * from "./components/dialog_manager/DialogManager";
6
7
  export * from "./components/dialog_manager/DialogUtils";
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export { default as PineappleLayoutBase } from "./components/pineapple/PineappleBaseLayout.svelte";
2
2
  export { default as SeaweedTemplate } from "./template/SeaweedTemplate.svelte";
3
3
  export { default as LazyAsset } from "./components/LazyAsset.svelte";
4
+ export { default as Card } from "./components/Card.svelte";
4
5
  export * from "./components/dialog_manager/DialogManagerStore";
5
6
  export * from "./components/dialog_manager/DialogManager";
6
7
  export * from "./components/dialog_manager/DialogUtils";
@@ -1,23 +1,23 @@
1
- # Overlay Spec
2
-
3
- **What are the things that can appear on top of the normal content?**
4
-
5
- - Toast
6
- - Modal
7
- - Dialog
8
- - Choices
9
- - Backstage
10
- - Preferences
11
- - Optional: Dialog??
12
-
13
- **Which one appears on top?**
14
-
15
- - Toast
16
- - Modal
17
- - blocks access on anything below
18
- - Backstage
19
- - blocks access on anything below
20
- - Dialog: choices
21
- - blocks access on anything below
22
- - Dialog
23
- - Everything else
1
+ # Overlay Spec
2
+
3
+ **What are the things that can appear on top of the normal content?**
4
+
5
+ - Toast
6
+ - Modal
7
+ - Dialog
8
+ - Choices
9
+ - Backstage
10
+ - Preferences
11
+ - Optional: Dialog??
12
+
13
+ **Which one appears on top?**
14
+
15
+ - Toast
16
+ - Modal
17
+ - blocks access on anything below
18
+ - Backstage
19
+ - blocks access on anything below
20
+ - Dialog: choices
21
+ - blocks access on anything below
22
+ - Dialog
23
+ - Everything else
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": "2.4.16",
4
+ "version": "2.4.17",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
7
7
  "build": "npm run check-requirements && vite build && yarn package",
package/src/lib/index.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { default as PineappleLayoutBase } from "./components/pineapple/PineappleBaseLayout.svelte";
2
2
  export { default as SeaweedTemplate } from "./template/SeaweedTemplate.svelte";
3
3
  export { default as LazyAsset } from "./components/LazyAsset.svelte";
4
+ export { default as Card } from "./components/Card.svelte";
4
5
 
5
6
  export * from "./components/dialog_manager/DialogManagerStore";
6
7
  export * from "./components/dialog_manager/DialogManager";
@@ -3,7 +3,7 @@
3
3
  import { showComponentInToast, showTextInToast } from "$pkg/components/pineapple/toast/Toast";
4
4
  import TestCard from "$pkg/components/pineapple/toast/custom-toast/TestCustomToast.svelte";
5
5
  import TestDialogYarn from "./TestDialog.yarn?raw";
6
- import { dialogManager } from "$pkg";
6
+ import { Card, dialogManager } from "$pkg";
7
7
 
8
8
 
9
9
  let testingQueueNumber = 1;
@@ -36,27 +36,30 @@
36
36
  />
37
37
  </svelte:head>
38
38
 
39
- <div class="card default-card">
40
- <button
41
- class="btn variant-filled-secondary"
42
- on:click={() => {
39
+ <Card>
40
+ <div slot="content" class="card-content">
41
+ <button
42
+ class="btn variant-filled-secondary"
43
+ on:click={() => {
43
44
  showComponentInToast({componentAndProps: {component: TestCard, props: undefined}});
44
45
  }}><h3>Test custom toast</h3></button>
45
- <button
46
- class="btn variant-filled-secondary"
47
- on:click={() => {
46
+ <button
47
+ class="btn variant-filled-secondary"
48
+ on:click={() => {
48
49
  showTextInToast(`${testingQueueNumber} ${testingRandomPhrases[testingQueueNumber]}`);
49
50
  testingQueueNumber = (testingQueueNumber + 1) % testingRandomPhrases.length;
50
51
  }}><h3>Handy toast</h3></button>
51
- <button
52
- class="btn variant-filled-secondary"
53
- on:click={onTestDialogClick}><h3>Test dialog</h3></button>
54
- </div>
52
+ <button
53
+ class="btn variant-filled-secondary"
54
+ on:click={onTestDialogClick}><h3>Test dialog</h3></button>
55
+ </div>
56
+ </Card>
55
57
 
56
58
  <style lang="postcss">
57
- .default-card {
59
+ .card-content {
58
60
  display: flex;
59
61
  flex-wrap: wrap;
60
62
  gap: 2em;
63
+ padding: 2em;
61
64
  }
62
65
  </style>