@turnipxenon/pineapple 5.3.9 → 5.3.11

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 (205) hide show
  1. package/dist/components/dialog_manager/DialogManager.d.ts.map +1 -1
  2. package/dist/components/dialog_manager/DialogManager.js +5 -8
  3. package/dist/components/dialog_manager/DialogManagerStore.d.ts +1 -1
  4. package/dist/components/dialog_manager/DialogProcessor.d.ts.map +1 -1
  5. package/dist/components/dialog_manager/DialogProcessor.js +2 -0
  6. package/dist/components/dialog_manager/IDialogManager.d.ts +1 -1
  7. package/dist/components/dialog_manager/IDialogManager.d.ts.map +1 -1
  8. package/dist/components/dialog_manager/behavior_tree/core/SelectorNode.d.ts.map +1 -1
  9. package/dist/components/dialog_manager/behavior_tree/expression/ExpressionEvaluator.d.ts.map +1 -1
  10. package/dist/components/dialog_manager/behavior_tree/expression/ExpressionEvaluator.js +1 -1
  11. package/dist/components/dialog_manager/behavior_tree/line_processors/commands/ForceVisitCommand.d.ts +10 -0
  12. package/dist/components/dialog_manager/behavior_tree/line_processors/commands/ForceVisitCommand.d.ts.map +1 -0
  13. package/dist/components/dialog_manager/behavior_tree/line_processors/commands/ForceVisitCommand.js +29 -0
  14. package/dist/components/dialog_manager/behavior_tree/line_processors/commands/JumpCommand.d.ts.map +1 -1
  15. package/dist/components/reveal-info/RevealInfo.svelte +17 -18
  16. package/dist/components/reveal-info/RevealInfo.svelte.d.ts +2 -2
  17. package/dist/components/reveal-info/RevealInfo.svelte.d.ts.map +1 -1
  18. package/dist/components/reveal-info/RevealInfoRune.svelte.d.ts.map +1 -1
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/modules/overrideable_meta/OverridableMeta.svelte +1 -1
  21. package/dist/modules/parsnip/ParsnipBlockChildren.svelte +66 -55
  22. package/dist/modules/parsnip/ParsnipBlockChildren.svelte.d.ts.map +1 -1
  23. package/dist/modules/parsnip/ParsnipEmbedWikilink.svelte +30 -30
  24. package/dist/modules/parsnip/ParsnipEmbedWikilink.svelte.d.ts +1 -1
  25. package/dist/modules/parsnip/ParsnipEmbedWikilink.svelte.d.ts.map +1 -1
  26. package/dist/modules/parsnip/ParsnipHeading.svelte +6 -6
  27. package/dist/modules/parsnip/ParsnipList.svelte +24 -24
  28. package/dist/modules/parsnip/ParsnipOverall.d.ts.map +1 -1
  29. package/dist/modules/parsnip/ParsnipPhrasingChildren.svelte +15 -17
  30. package/dist/modules/parsnip/ParsnipPhrasingChildren.svelte.d.ts.map +1 -1
  31. package/dist/modules/parsnip/ParsnipWikilink.svelte +22 -20
  32. package/dist/modules/parsnip/ParsnipWikilink.svelte.d.ts.map +1 -1
  33. package/dist/modules/parsnip/external-images/ParsnipImage.svelte +133 -114
  34. package/dist/modules/parsnip/external-images/ParsnipImage.svelte.d.ts.map +1 -1
  35. package/dist/modules/parsnip/external-images/ParsnipImageCollection.svelte +64 -63
  36. package/dist/modules/parsnip/external-images/ParsnipImageCollection.svelte.d.ts.map +1 -1
  37. package/dist/modules/parsnip/external-images/externalImages.remote.d.ts.map +1 -1
  38. package/dist/modules/parsnip/external-images/externalImages.remote.js +17 -13
  39. package/dist/modules/parsnip/route-util/ParsnipBlog.svelte +1 -2
  40. package/dist/modules/parsnip/route-util/ParsnipBlog.svelte.d.ts.map +1 -1
  41. package/dist/modules/parsnip/route-util/getSlugEntries.js +1 -1
  42. package/dist/modules/parsnip/route-util/menuPageServerLoad.js +4 -4
  43. package/dist/modules/parsnip/route-util/slugPageServerLoad.d.ts.map +1 -1
  44. package/dist/modules/parsnip/route-util/slugPageServerLoad.js +15 -15
  45. package/dist/scripts/pineapple_fiber/PineappleFiberParser.d.ts.map +1 -1
  46. package/dist/scripts/pineapple_fiber/PineappleFiberParser.js +5 -3
  47. package/dist/styles/app.css +87 -84
  48. package/dist/styles/color-tokens.css +20 -20
  49. package/dist/styles/surface-colors.scss +28 -29
  50. package/dist/styles/tailwind.css +3196 -3111
  51. package/dist/styles/turnip-theme.css +262 -245
  52. package/dist/svelteIndex.svelte.d.ts.map +1 -1
  53. package/dist/svelteIndex.svelte.js +1 -7
  54. package/dist/test/DialogTestUtility.d.ts.map +1 -1
  55. package/dist/test/DialogTestUtility.js +4 -4
  56. package/dist/theme.css +109 -109
  57. package/dist/types/pineapple_fiber/DialogVariableStore.d.ts.map +1 -1
  58. package/dist/types/pineapple_fiber/DialogVariableStore.js +0 -1
  59. package/dist/ui/components/FourPartCard.svelte +20 -28
  60. package/dist/ui/components/FourPartCard.svelte.d.ts.map +1 -1
  61. package/dist/ui/components/MeltToaster/MeltToaster.svelte +6 -5
  62. package/dist/ui/components/MeltToaster/MeltToaster.svelte.d.ts.map +1 -1
  63. package/dist/ui/components/ModalBase.svelte +39 -43
  64. package/dist/ui/components/ModalBase.svelte.d.ts +2 -2
  65. package/dist/ui/components/ModalBase.svelte.d.ts.map +1 -1
  66. package/dist/ui/components/NestedNavigation.svelte +22 -19
  67. package/dist/ui/components/NestedNavigation.svelte.d.ts +1 -1
  68. package/dist/ui/components/NestedNavigation.svelte.d.ts.map +1 -1
  69. package/dist/ui/components/SocialSection.svelte +30 -25
  70. package/dist/ui/components/SocialSection.svelte.d.ts.map +1 -1
  71. package/dist/ui/components/SortDropdown.svelte +8 -12
  72. package/dist/ui/components/SortDropdown.svelte.d.ts.map +1 -1
  73. package/dist/ui/components/TagFilter.svelte +9 -9
  74. package/dist/ui/components/accordion/PinyaAccordion.svelte +45 -43
  75. package/dist/ui/components/accordion/PinyaAccordion.svelte.d.ts.map +1 -1
  76. package/dist/ui/components/accordion/PinyaAccordionItem.svelte +19 -10
  77. package/dist/ui/components/accordion/PinyaAccordionItem.svelte.d.ts.map +1 -1
  78. package/dist/ui/components/project-date-badge/ProjectDateBadge.svelte +88 -80
  79. package/dist/ui/components/project-date-badge/ProjectDateBadge.svelte.d.ts.map +1 -1
  80. package/dist/ui/components/randomized-background/RandomizedBackground.svelte +37 -33
  81. package/dist/ui/components/randomized-background/RandomizedBackground.svelte.d.ts.map +1 -1
  82. package/dist/ui/components/randomized-background/RandomizedImage.svelte +25 -21
  83. package/dist/ui/components/randomized-background/RandomizedImage.svelte.d.ts.map +1 -1
  84. package/dist/ui/components/randomized-background/getSocialSection.remote.js +1 -1
  85. package/dist/ui/elements/CodeBlock/CodeBlock.svelte +163 -165
  86. package/dist/ui/elements/CodeBlock/CodeBlock.svelte.d.ts.map +1 -1
  87. package/dist/ui/elements/CodeBlock/CodeBlockProps.d.ts +1 -1
  88. package/dist/ui/elements/CodeBlock/CodeBlockProps.d.ts.map +1 -1
  89. package/dist/ui/elements/ColorScheme.d.ts.map +1 -1
  90. package/dist/ui/elements/ElementVisibilityDetector.svelte +1 -4
  91. package/dist/ui/elements/ElementVisibilityDetector.svelte.d.ts.map +1 -1
  92. package/dist/ui/elements/GeneralUIProps.d.ts +2 -2
  93. package/dist/ui/elements/ImageIcon.svelte +27 -30
  94. package/dist/ui/elements/ImageIcon.svelte.d.ts +1 -1
  95. package/dist/ui/elements/ImageIcon.svelte.d.ts.map +1 -1
  96. package/dist/ui/elements/PineappleSwitch.svelte +53 -53
  97. package/dist/ui/elements/PineappleSwitch.svelte.d.ts +1 -1
  98. package/dist/ui/elements/PineappleSwitch.svelte.d.ts.map +1 -1
  99. package/dist/ui/elements/PinyaAnchorButton/PinyaAnchorButton.svelte +4 -5
  100. package/dist/ui/elements/PinyaAnchorButton/PinyaAnchorButton.svelte.d.ts.map +1 -1
  101. package/dist/ui/elements/PinyaAnchorButton/PinyaAnchorButtonProps.d.ts.map +1 -1
  102. package/dist/ui/elements/PinyaButton/PinyaButton.svelte +4 -5
  103. package/dist/ui/elements/PinyaButton/PinyaButton.svelte.d.ts.map +1 -1
  104. package/dist/ui/elements/PinyaButton/PinyaButtonProps.d.ts.map +1 -1
  105. package/dist/ui/elements/PinyaButton/index.d.ts +2 -2
  106. package/dist/ui/elements/PinyaButton/index.js +2 -2
  107. package/dist/ui/elements/PinyaButtonCommon/ButtonVariant.d.ts.map +1 -1
  108. package/dist/ui/elements/PinyaButtonCommon/PinyaButtonCommonProps.d.ts.map +1 -1
  109. package/dist/ui/elements/PinyaButtonCommon/createButtonClass.d.ts.map +1 -1
  110. package/dist/ui/elements/PinyaButtonCommon/createButtonClass.js +1 -1
  111. package/dist/ui/elements/PinyaCard/PinyaCard.svelte +3 -10
  112. package/dist/ui/elements/PinyaCard/PinyaCardProps.d.ts.map +1 -1
  113. package/dist/ui/elements/Placeholder.svelte +3 -3
  114. package/dist/ui/elements/TextChip/TextChip.svelte +8 -6
  115. package/dist/ui/elements/TextLink.svelte +46 -48
  116. package/dist/ui/elements/TextLink.svelte.d.ts.map +1 -1
  117. package/dist/ui/elements/WrapperProps.d.ts +1 -1
  118. package/dist/ui/elements/index.d.ts.map +1 -1
  119. package/dist/ui/elements/pinya-combobox/PinyaCombobox.svelte +80 -55
  120. package/dist/ui/elements/pinya-combobox/PinyaCombobox.svelte.d.ts.map +1 -1
  121. package/dist/ui/elements/pinya-combobox/PinyaComboboxProps.d.ts.map +1 -1
  122. package/dist/ui/modules/NavigationMenu/LdSchema.d.ts.map +1 -1
  123. package/dist/ui/modules/NavigationMenu/LdSchema.js +4 -2
  124. package/dist/ui/modules/NavigationMenu/NavigationControl.svelte +18 -13
  125. package/dist/ui/modules/NavigationMenu/NavigationControl.svelte.d.ts.map +1 -1
  126. package/dist/ui/modules/NavigationMenu/NavigationMenu.svelte +234 -212
  127. package/dist/ui/modules/NavigationMenu/NavigationMenu.svelte.d.ts.map +1 -1
  128. package/dist/ui/modules/NavigationMenu/PageMeta.d.ts +1 -1
  129. package/dist/ui/modules/NavigationMenu/PageMeta.d.ts.map +1 -1
  130. package/dist/ui/modules/NavigationMenu/PageMeta.js +15 -11
  131. package/dist/ui/modules/experience/ExampleJob1.svelte +26 -28
  132. package/dist/ui/modules/experience/ExampleJob1.svelte.d.ts.map +1 -1
  133. package/dist/ui/modules/experience/ExampleJob2.svelte +4 -3
  134. package/dist/ui/modules/experience/ExampleJob2.svelte.d.ts.map +1 -1
  135. package/dist/ui/modules/experience/index.d.ts +2 -2
  136. package/dist/ui/modules/experience/index.js +2 -2
  137. package/dist/ui/modules/modals/general-settings/GeneralSettingsModal.svelte +9 -7
  138. package/dist/ui/modules/modals/general-settings/GeneralSettingsModal.svelte.d.ts.map +1 -1
  139. package/dist/ui/modules/modals/general-settings/LanguagePicker.svelte +1 -1
  140. package/dist/ui/modules/modals/general-settings/NavigationModal.svelte +11 -8
  141. package/dist/ui/modules/modals/general-settings/NavigationModal.svelte.d.ts.map +1 -1
  142. package/dist/ui/modules/projects/Hepcat.svelte +31 -29
  143. package/dist/ui/modules/projects/Hepcat.svelte.d.ts.map +1 -1
  144. package/dist/ui/modules/projects/ObsidianPublisher.svelte +16 -11
  145. package/dist/ui/modules/projects/ObsidianPublisher.svelte.d.ts.map +1 -1
  146. package/dist/ui/modules/projects/Pengi.svelte +21 -17
  147. package/dist/ui/modules/projects/Pengi.svelte.d.ts.map +1 -1
  148. package/dist/ui/modules/projects/Soulwork.svelte +18 -16
  149. package/dist/ui/modules/projects/Soulwork.svelte.d.ts.map +1 -1
  150. package/dist/ui/modules/projects/ThisWebpage.svelte +29 -19
  151. package/dist/ui/modules/projects/ThisWebpage.svelte.d.ts.map +1 -1
  152. package/dist/ui/modules/universal-overlay/DialogPanel.svelte +40 -38
  153. package/dist/ui/modules/universal-overlay/DialogPanel.svelte.d.ts.map +1 -1
  154. package/dist/ui/modules/universal-overlay/SettingsPanel.svelte +1 -2
  155. package/dist/ui/modules/universal-overlay/SettingsPanel.svelte.d.ts.map +1 -1
  156. package/dist/ui/modules/universal-overlay/UniversalOverlay.svelte +12 -6
  157. package/dist/ui/modules/universal-overlay/UniversalOverlay.svelte.d.ts.map +1 -1
  158. package/dist/ui/templates/PinyaPageLayout/PinyaPageLayout.svelte +99 -94
  159. package/dist/ui/templates/PinyaPageLayout/PinyaPageLayout.svelte.d.ts.map +1 -1
  160. package/dist/ui/templates/PinyaPageLayout/pinyaPageLayoutRunes.svelte.d.ts +1 -1
  161. package/dist/ui/templates/PinyaPageLayout/pinyaPageLayoutRunes.svelte.js +2 -2
  162. package/dist/ui/templates/SeaweedLayout/ChumBucket.svelte +51 -43
  163. package/dist/ui/templates/SeaweedLayout/ChumBucket.svelte.d.ts.map +1 -1
  164. package/dist/ui/templates/SeaweedLayout/CreateUrlForm.svelte +45 -32
  165. package/dist/ui/templates/SeaweedLayout/CreateUrlForm.svelte.d.ts.map +1 -1
  166. package/dist/ui/templates/SeaweedLayout/EntryGroup.svelte +106 -102
  167. package/dist/ui/templates/SeaweedLayout/EntryGroup.svelte.d.ts.map +1 -1
  168. package/dist/ui/templates/SeaweedLayout/EntryOrderConfig.svelte +11 -19
  169. package/dist/ui/templates/SeaweedLayout/EntryOrderConfig.svelte.d.ts.map +1 -1
  170. package/dist/ui/templates/SeaweedLayout/ProjectComponentProps.d.ts +1 -1
  171. package/dist/ui/templates/SeaweedLayout/ProjectGroupConfig.svelte +139 -121
  172. package/dist/ui/templates/SeaweedLayout/ProjectGroupConfig.svelte.d.ts.map +1 -1
  173. package/dist/ui/templates/SeaweedLayout/SeaweedLayout.svelte +139 -148
  174. package/dist/ui/templates/SeaweedLayout/index.d.ts.map +1 -1
  175. package/dist/ui/templates/SeaweedLayout/props.js +1 -1
  176. package/dist/ui/templates/blog_template/BlogTemplate.svelte +11 -11
  177. package/dist/ui/templates/blog_template/BlogTemplateInner.svelte +58 -56
  178. package/dist/ui/templates/blog_template/BlogTemplateInner.svelte.d.ts.map +1 -1
  179. package/dist/ui/templates/blog_template/blog-template.css +1 -1
  180. package/dist/ui/templates/confirmation-modal/component.svelte +12 -17
  181. package/dist/ui/templates/confirmation-modal/component.svelte.d.ts +1 -1
  182. package/dist/ui/templates/confirmation-modal/component.svelte.d.ts.map +1 -1
  183. package/dist/ui/templates/confirmation-modal/props.d.ts +2 -2
  184. package/dist/ui/templates/confirmation-modal/props.d.ts.map +1 -1
  185. package/dist/ui/templates/pinya-base/PinyaBase.svelte +57 -47
  186. package/dist/ui/templates/pinya-base/PinyaBase.svelte.d.ts.map +1 -1
  187. package/dist/ui/templates/pinya-base/menuPageServerLoadRemote.remote.svelte +1 -1
  188. package/dist/ui/templates/pinya-base/pinyaBaseRunes.svelte.d.ts.map +1 -1
  189. package/dist/util/context/PineappleBaseContext.svelte +1 -1
  190. package/dist/util/context/pineappleBaseContextDefinitions.svelte.d.ts.map +1 -1
  191. package/dist/util/env-getter.d.ts.map +1 -1
  192. package/dist/util/env-getter.js +3 -3
  193. package/dist/util/getCommitDate.d.ts.map +1 -1
  194. package/dist/util/getCommitDate.js +3 -1
  195. package/dist/util/getCommitDate.remote.d.ts.map +1 -1
  196. package/dist/util/getCommitDate.remote.js +3 -1
  197. package/dist/util/getParsnipData.remote.d.ts +16 -11
  198. package/dist/util/localStore.svelte.d.ts.map +1 -1
  199. package/dist/util/localStore.svelte.js +5 -5
  200. package/dist/util/util.d.ts.map +1 -1
  201. package/dist/util/util.js +5 -5
  202. package/package.json +5 -5
  203. package/src/lib/styles/app.css +87 -84
  204. package/src/lib/theme.css +109 -109
  205. package/dist/scripts/pineapple_fiber/TutorialBroken.yarn +0 -143
package/dist/theme.css CHANGED
@@ -2,113 +2,113 @@
2
2
 
3
3
  /*todo: delete after all downstream works #migration*/
4
4
  :root {
5
- /* =~= Theme Properties =~= */
6
- --theme-font-family-base: system-ui;
7
- --theme-font-family-heading: system-ui;
8
- --theme-font-color-base: var(--color-primary-900);
9
- --theme-font-color-dark: var(--color-primary-50);
10
- --theme-rounded-base: 24px;
11
- --theme-rounded-container: 16px;
12
- --theme-border-base: 2px;
13
- /* =~= Theme On-X Colors =~= */
14
- --on-primary: var(--color-text-900);
15
- --on-secondary: var(--color-surface-500);
16
- --on-tertiary: var(--color-text-900);
17
- --on-success: var(--color-text-900);
18
- --on-warning: var(--color-text-900);
19
- --on-error: var(--color-surface-500);
20
- --on-surface: var(--color-text-900);
21
- /* =~= Theme Colors =~= */
22
- /* primary | #b9a26e */
23
- --color-primary-50: 245 241 233; /* ⬅ #f5f1e9 */
24
- --color-primary-100: 241 236 226; /* ⬅ #f1ece2 */
25
- --color-primary-200: 238 232 219; /* ⬅ #eee8db */
26
- --color-primary-300: 227 218 197; /* ⬅ #e3dac5 */
27
- --color-primary-400: 206 190 154; /* ⬅ #cebe9a */
28
- --color-primary-500: 185 162 110; /* ⬅ #b9a26e */
29
- --color-primary-600: 167 146 99; /* ⬅ #a79263 */
30
- --color-primary-700: 139 122 83; /* ⬅ #8b7a53 */
31
- --color-primary-800: 111 97 66; /* ⬅ #6f6142 */
32
- --color-primary-900: 91 79 54; /* ⬅ #5b4f36 */
33
- --color-primary-1000: 66 54 29; /* ⬅ #42361d */
34
- /* secondary | #b55639 */
35
- --color-secondary-50: 244 230 225; /* ⬅ #f4e6e1 */
36
- --color-secondary-100: 240 221 215; /* ⬅ #f0ddd7 */
37
- --color-secondary-200: 237 213 206; /* ⬅ #edd5ce */
38
- --color-secondary-300: 225 187 176; /* ⬅ #e1bbb0 */
39
- --color-secondary-350: 214 162 146; /* ⬅ #D6A292 */
40
- --color-secondary-400: 203 137 116; /* ⬅ #cb8974 */
41
- --color-secondary-450: 192 112 87; /* ⬅ #C07057 */
42
- --color-secondary-500: 181 86 57; /* ⬅ #b55639 */
43
- --color-secondary-600: 163 77 51; /* ⬅ #a34d33 */
44
- --color-secondary-700: 136 65 43; /* ⬅ #88412b */
45
- --color-secondary-800: 109 52 34; /* ⬅ #6d3422 */
46
- --color-secondary-900: 89 42 28; /* ⬅ #592a1c */
47
- /* tertiary | #cd7949 */
48
- --color-tertiary-50: 248 235 228; /* ⬅ #f8ebe4 */
49
- --color-tertiary-100: 245 228 219; /* ⬅ #f5e4db */
50
- --color-tertiary-200: 243 222 210; /* ⬅ #f3ded2 */
51
- --color-tertiary-300: 235 201 182; /* ⬅ #ebc9b6 */
52
- --color-tertiary-400: 220 161 128; /* ⬅ #dca180 */
53
- --color-tertiary-500: 205 121 73; /* ⬅ #cd7949 */
54
- --color-tertiary-600: 185 109 66; /* ⬅ #b96d42 */
55
- --color-tertiary-700: 154 91 55; /* ⬅ #9a5b37 */
56
- --color-tertiary-800: 123 73 44; /* ⬅ #7b492c */
57
- --color-tertiary-900: 100 59 36; /* ⬅ #643b24 */
58
- /* success | #7cab36 */
59
- --color-success-50: 235 242 225; /* ⬅ #ebf2e1 */
60
- --color-success-100: 229 238 215; /* ⬅ #e5eed7 */
61
- --color-success-200: 222 234 205; /* ⬅ #deeacd */
62
- --color-success-300: 203 221 175; /* ⬅ #cbddaf */
63
- --color-success-400: 163 196 114; /* ⬅ #a3c472 */
64
- --color-success-500: 124 171 54; /* ⬅ #7cab36 */
65
- --color-success-600: 112 154 49; /* ⬅ #709a31 */
66
- --color-success-700: 93 128 41; /* ⬅ #5d8029 */
67
- --color-success-800: 74 103 32; /* ⬅ #4a6720 */
68
- --color-success-900: 61 84 26; /* ⬅ #3d541a */
69
- /* warning | #b8993a */
70
- --color-warning-50: 244 240 225; /* ⬅ #f4f0e1 */
71
- --color-warning-100: 241 235 216; /* ⬅ #f1ebd8 */
72
- --color-warning-200: 237 230 206; /* ⬅ #ede6ce */
73
- --color-warning-300: 227 214 176; /* ⬅ #e3d6b0 */
74
- --color-warning-400: 205 184 117; /* ⬅ #cdb875 */
75
- --color-warning-500: 184 153 58; /* ⬅ #b8993a */
76
- --color-warning-600: 166 138 52; /* ⬅ #a68a34 */
77
- --color-warning-700: 138 115 44; /* ⬅ #8a732c */
78
- --color-warning-800: 110 92 35; /* ⬅ #6e5c23 */
79
- --color-warning-900: 90 75 28; /* ⬅ #5a4b1c */
80
- /* error | #b53977 */
81
- --color-error-50: 244 225 235; /* ⬅ #f4e1eb */
82
- --color-error-100: 240 215 228; /* ⬅ #f0d7e4 */
83
- --color-error-200: 237 206 221; /* ⬅ #edcedd */
84
- --color-error-300: 225 176 201; /* ⬅ #e1b0c9 */
85
- --color-error-400: 203 116 160; /* ⬅ #cb74a0 */
86
- --color-error-500: 181 57 119; /* ⬅ #b53977 */
87
- --color-error-600: 163 51 107; /* ⬅ #a3336b */
88
- --color-error-700: 136 43 89; /* ⬅ #882b59 */
89
- --color-error-800: 109 34 71; /* ⬅ #6d2247 */
90
- --color-error-900: 89 28 58; /* ⬅ #591c3a */
91
- /* surface | #fff7e3 */
92
- --color-surface-50: 255 254 251; /* ⬅ #fffefb */
93
- --color-surface-100: 255 253 249; /* ⬅ #fffdf9 */
94
- --color-surface-200: 255 253 248; /* ⬅ #fffdf8 */
95
- --color-surface-300: 255 252 244; /* ⬅ #fffcf4 */
96
- --color-surface-400: 255 249 235; /* ⬅ #fff9eb */
97
- --color-surface-500: 255 247 227; /* ⬅ #fff7e3 */
98
- --color-surface-600: 230 222 204; /* ⬅ #e6decc */
99
- --color-surface-700: 191 185 170; /* ⬅ #bfb9aa */
100
- --color-surface-800: 153 148 136; /* ⬅ #999488 */
101
- --color-surface-900: 125 121 111; /* ⬅ #7d796f */
102
- /* text color | #3f312f */
103
- --color-text-25: 237 234 234; /* ⬅ #e2e0e0 */
104
- --color-text-50: 226 224 224; /* ⬅ #e2e0e0 */
105
- --color-text-100: 217 214 213; /* ⬅ #d9d6d5 */
106
- --color-text-200: 207 204 203; /* ⬅ #cfcccb */
107
- --color-text-300: 178 173 172; /* ⬅ #b2adac */
108
- --color-text-400: 121 111 109; /* ⬅ #796f6d */
109
- --color-text-500: 63 49 47; /* ⬅ #3f312f */
110
- --color-text-600: 57 44 42; /* ⬅ #392c2a */
111
- --color-text-700: 47 37 35; /* ⬅ #2f2523 */
112
- --color-text-800: 38 29 28; /* ⬅ #261d1c */
113
- --color-text-900: 31 24 23; /* ⬅ #1f1817 */
5
+ /* =~= Theme Properties =~= */
6
+ --theme-font-family-base: system-ui;
7
+ --theme-font-family-heading: system-ui;
8
+ --theme-font-color-base: var(--color-primary-900);
9
+ --theme-font-color-dark: var(--color-primary-50);
10
+ --theme-rounded-base: 24px;
11
+ --theme-rounded-container: 16px;
12
+ --theme-border-base: 2px;
13
+ /* =~= Theme On-X Colors =~= */
14
+ --on-primary: var(--color-text-900);
15
+ --on-secondary: var(--color-surface-500);
16
+ --on-tertiary: var(--color-text-900);
17
+ --on-success: var(--color-text-900);
18
+ --on-warning: var(--color-text-900);
19
+ --on-error: var(--color-surface-500);
20
+ --on-surface: var(--color-text-900);
21
+ /* =~= Theme Colors =~= */
22
+ /* primary | #b9a26e */
23
+ --color-primary-50: 245 241 233; /* ⬅ #f5f1e9 */
24
+ --color-primary-100: 241 236 226; /* ⬅ #f1ece2 */
25
+ --color-primary-200: 238 232 219; /* ⬅ #eee8db */
26
+ --color-primary-300: 227 218 197; /* ⬅ #e3dac5 */
27
+ --color-primary-400: 206 190 154; /* ⬅ #cebe9a */
28
+ --color-primary-500: 185 162 110; /* ⬅ #b9a26e */
29
+ --color-primary-600: 167 146 99; /* ⬅ #a79263 */
30
+ --color-primary-700: 139 122 83; /* ⬅ #8b7a53 */
31
+ --color-primary-800: 111 97 66; /* ⬅ #6f6142 */
32
+ --color-primary-900: 91 79 54; /* ⬅ #5b4f36 */
33
+ --color-primary-1000: 66 54 29; /* ⬅ #42361d */
34
+ /* secondary | #b55639 */
35
+ --color-secondary-50: 244 230 225; /* ⬅ #f4e6e1 */
36
+ --color-secondary-100: 240 221 215; /* ⬅ #f0ddd7 */
37
+ --color-secondary-200: 237 213 206; /* ⬅ #edd5ce */
38
+ --color-secondary-300: 225 187 176; /* ⬅ #e1bbb0 */
39
+ --color-secondary-350: 214 162 146; /* ⬅ #D6A292 */
40
+ --color-secondary-400: 203 137 116; /* ⬅ #cb8974 */
41
+ --color-secondary-450: 192 112 87; /* ⬅ #C07057 */
42
+ --color-secondary-500: 181 86 57; /* ⬅ #b55639 */
43
+ --color-secondary-600: 163 77 51; /* ⬅ #a34d33 */
44
+ --color-secondary-700: 136 65 43; /* ⬅ #88412b */
45
+ --color-secondary-800: 109 52 34; /* ⬅ #6d3422 */
46
+ --color-secondary-900: 89 42 28; /* ⬅ #592a1c */
47
+ /* tertiary | #cd7949 */
48
+ --color-tertiary-50: 248 235 228; /* ⬅ #f8ebe4 */
49
+ --color-tertiary-100: 245 228 219; /* ⬅ #f5e4db */
50
+ --color-tertiary-200: 243 222 210; /* ⬅ #f3ded2 */
51
+ --color-tertiary-300: 235 201 182; /* ⬅ #ebc9b6 */
52
+ --color-tertiary-400: 220 161 128; /* ⬅ #dca180 */
53
+ --color-tertiary-500: 205 121 73; /* ⬅ #cd7949 */
54
+ --color-tertiary-600: 185 109 66; /* ⬅ #b96d42 */
55
+ --color-tertiary-700: 154 91 55; /* ⬅ #9a5b37 */
56
+ --color-tertiary-800: 123 73 44; /* ⬅ #7b492c */
57
+ --color-tertiary-900: 100 59 36; /* ⬅ #643b24 */
58
+ /* success | #7cab36 */
59
+ --color-success-50: 235 242 225; /* ⬅ #ebf2e1 */
60
+ --color-success-100: 229 238 215; /* ⬅ #e5eed7 */
61
+ --color-success-200: 222 234 205; /* ⬅ #deeacd */
62
+ --color-success-300: 203 221 175; /* ⬅ #cbddaf */
63
+ --color-success-400: 163 196 114; /* ⬅ #a3c472 */
64
+ --color-success-500: 124 171 54; /* ⬅ #7cab36 */
65
+ --color-success-600: 112 154 49; /* ⬅ #709a31 */
66
+ --color-success-700: 93 128 41; /* ⬅ #5d8029 */
67
+ --color-success-800: 74 103 32; /* ⬅ #4a6720 */
68
+ --color-success-900: 61 84 26; /* ⬅ #3d541a */
69
+ /* warning | #b8993a */
70
+ --color-warning-50: 244 240 225; /* ⬅ #f4f0e1 */
71
+ --color-warning-100: 241 235 216; /* ⬅ #f1ebd8 */
72
+ --color-warning-200: 237 230 206; /* ⬅ #ede6ce */
73
+ --color-warning-300: 227 214 176; /* ⬅ #e3d6b0 */
74
+ --color-warning-400: 205 184 117; /* ⬅ #cdb875 */
75
+ --color-warning-500: 184 153 58; /* ⬅ #b8993a */
76
+ --color-warning-600: 166 138 52; /* ⬅ #a68a34 */
77
+ --color-warning-700: 138 115 44; /* ⬅ #8a732c */
78
+ --color-warning-800: 110 92 35; /* ⬅ #6e5c23 */
79
+ --color-warning-900: 90 75 28; /* ⬅ #5a4b1c */
80
+ /* error | #b53977 */
81
+ --color-error-50: 244 225 235; /* ⬅ #f4e1eb */
82
+ --color-error-100: 240 215 228; /* ⬅ #f0d7e4 */
83
+ --color-error-200: 237 206 221; /* ⬅ #edcedd */
84
+ --color-error-300: 225 176 201; /* ⬅ #e1b0c9 */
85
+ --color-error-400: 203 116 160; /* ⬅ #cb74a0 */
86
+ --color-error-500: 181 57 119; /* ⬅ #b53977 */
87
+ --color-error-600: 163 51 107; /* ⬅ #a3336b */
88
+ --color-error-700: 136 43 89; /* ⬅ #882b59 */
89
+ --color-error-800: 109 34 71; /* ⬅ #6d2247 */
90
+ --color-error-900: 89 28 58; /* ⬅ #591c3a */
91
+ /* surface | #fff7e3 */
92
+ --color-surface-50: 255 254 251; /* ⬅ #fffefb */
93
+ --color-surface-100: 255 253 249; /* ⬅ #fffdf9 */
94
+ --color-surface-200: 255 253 248; /* ⬅ #fffdf8 */
95
+ --color-surface-300: 255 252 244; /* ⬅ #fffcf4 */
96
+ --color-surface-400: 255 249 235; /* ⬅ #fff9eb */
97
+ --color-surface-500: 255 247 227; /* ⬅ #fff7e3 */
98
+ --color-surface-600: 230 222 204; /* ⬅ #e6decc */
99
+ --color-surface-700: 191 185 170; /* ⬅ #bfb9aa */
100
+ --color-surface-800: 153 148 136; /* ⬅ #999488 */
101
+ --color-surface-900: 125 121 111; /* ⬅ #7d796f */
102
+ /* text color | #3f312f */
103
+ --color-text-25: 237 234 234; /* ⬅ #e2e0e0 */
104
+ --color-text-50: 226 224 224; /* ⬅ #e2e0e0 */
105
+ --color-text-100: 217 214 213; /* ⬅ #d9d6d5 */
106
+ --color-text-200: 207 204 203; /* ⬅ #cfcccb */
107
+ --color-text-300: 178 173 172; /* ⬅ #b2adac */
108
+ --color-text-400: 121 111 109; /* ⬅ #796f6d */
109
+ --color-text-500: 63 49 47; /* ⬅ #3f312f */
110
+ --color-text-600: 57 44 42; /* ⬅ #392c2a */
111
+ --color-text-700: 47 37 35; /* ⬅ #2f2523 */
112
+ --color-text-800: 38 29 28; /* ⬅ #261d1c */
113
+ --color-text-900: 31 24 23; /* ⬅ #1f1817 */
114
114
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DialogVariableStore.d.ts","sourceRoot":"","sources":["../../../src/lib/types/pineapple_fiber/DialogVariableStore.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC;AA2BrC,eAAO,MAAM,iBAAiB,QAAO,cAoBpC,CAAC"}
1
+ {"version":3,"file":"DialogVariableStore.d.ts","sourceRoot":"","sources":["../../../src/lib/types/pineapple_fiber/DialogVariableStore.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC;AA2BrC,eAAO,MAAM,iBAAiB,QAAO,cAoBpC,CAAC"}
@@ -1,4 +1,3 @@
1
- /* eslint-disable @typescript-eslint/no-empty-function */
2
1
  /* eslint-disable @typescript-eslint/no-unused-vars */
3
2
  import { browser } from "$app/environment";
4
3
  const createInMemoryStore = () => {
@@ -1,7 +1,6 @@
1
1
  <!-- TODO: Documentation: consider documentation showcase -->
2
2
 
3
3
  <script lang="ts">
4
-
5
4
  import { PinyaCard, type PinyaCardProps } from "../elements";
6
5
  import type { Snippet } from "svelte";
7
6
 
@@ -11,18 +10,11 @@
11
10
  footer?: Snippet;
12
11
  }
13
12
 
14
- let {
15
- children,
16
- header,
17
- footer,
18
- headerCover,
19
- ...props
20
- }: Props = $props();
13
+ let { children, header, footer, headerCover, ...props }: Props = $props();
21
14
  </script>
22
15
 
23
16
  <PinyaCard {...props} class={`pinya-four-part-card ${props.class}`}>
24
17
  <section class="mb-6 flex-wrapper">
25
-
26
18
  {#if headerCover}
27
19
  <section class="card-header-cover w-full">
28
20
  {@render headerCover()}
@@ -48,26 +40,26 @@
48
40
  </PinyaCard>
49
41
 
50
42
  <style>
51
- :global {
52
- .pinya-four-part-card.pinya-card {
53
- padding: 0;
43
+ :global {
44
+ .pinya-four-part-card.pinya-card {
45
+ padding: 0;
54
46
 
55
- .card-header-cover > img {
56
- border-radius: calc(var(--radius-xl) - 2px);
57
- }
47
+ .card-header-cover > img {
48
+ border-radius: calc(var(--radius-xl) - 2px);
49
+ }
58
50
 
59
- word-wrap: break-word;
60
- -webkit-hyphens: auto;
61
- -moz-hyphens: auto;
62
- -ms-hyphens: auto;
63
- hyphens: auto;
64
- }
51
+ word-wrap: break-word;
52
+ -webkit-hyphens: auto;
53
+ -moz-hyphens: auto;
54
+ -ms-hyphens: auto;
55
+ hyphens: auto;
56
+ }
65
57
 
66
- html.dark .pinya-four-part-card {
67
- border: 0;
68
- .card-header-cover > img {
69
- border-radius: var(--radius-xl);
70
- }
71
- }
72
- }
58
+ html.dark .pinya-four-part-card {
59
+ border: 0;
60
+ .card-header-cover > img {
61
+ border-radius: var(--radius-xl);
62
+ }
63
+ }
64
+ }
73
65
  </style>
@@ -1 +1 @@
1
- {"version":3,"file":"FourPartCard.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/ui/components/FourPartCard.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAGrC,UAAU,KAAM,SAAQ,cAAc;IACrC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB;AAiDF,QAAA,MAAM,YAAY,2CAAwC,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"FourPartCard.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/ui/components/FourPartCard.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAGrC,UAAU,KAAM,SAAQ,cAAc;IACrC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB;AAyCF,QAAA,MAAM,YAAY,2CAAwC,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,CAAC"}
@@ -28,9 +28,9 @@
28
28
  children.forEach((child, index) => {
29
29
  const revNum = Math.min(Math.abs(children.length - 1 - index), 5);
30
30
  child.style.setProperty("--toast-index", index.toString());
31
- child.style.setProperty("--toast-gap", `${Math.max(2 - (revNum * 0.2), 1)}lh`);
32
- child.style.setProperty("--toast-scale", `${Math.max(1 - (revNum * 0.02), 0.9)}`);
33
- child.style.setProperty("--toast-shadow-px", `${Math.max(8 - (revNum), 3)}px`);
31
+ child.style.setProperty("--toast-gap", `${Math.max(2 - revNum * 0.2, 1)}lh`);
32
+ child.style.setProperty("--toast-scale", `${Math.max(1 - revNum * 0.02, 0.9)}`);
33
+ child.style.setProperty("--toast-shadow-px", `${Math.max(8 - revNum, 3)}px`);
34
34
  });
35
35
  }, 16); // 16 is an approximate ms for 60 Hz
36
36
  }
@@ -52,10 +52,11 @@
52
52
  -->
53
53
  <div {...toaster.root} bind:this={toasterRoot} class="pinya-toaster-root">
54
54
  {#each toaster.toasts as toast (toast.id)}
55
-
56
55
  <div {...toast.content} class={`toast-instance ${toast.data.type}`}>
57
56
  <div class="toast-header">
58
- <div {...toast.title} class="fake-h4">{toast.data.title ?? (toast.data.type ?? "Info").toUpperCase()}</div>
57
+ <div {...toast.title} class="fake-h4">
58
+ {toast.data.title ?? (toast.data.type ?? "Info").toUpperCase()}
59
+ </div>
59
60
  <button {...toast.close} aria-label="dismiss alert">X</button>
60
61
  </div>
61
62
  <div {...toast.description}>{toast.data.description}</div>
@@ -1 +1 @@
1
- {"version":3,"file":"MeltToaster.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/ui/components/MeltToaster/MeltToaster.svelte.ts"],"names":[],"mappings":"AAGC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmB,CAAC;AAgE1C;;;;GAIG;AACH,QAAA,MAAM,WAAW,2DAAwC,CAAC;AAC1D,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAClD,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"MeltToaster.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/ui/components/MeltToaster/MeltToaster.svelte.ts"],"names":[],"mappings":"AAGC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmB,CAAC;AAiE1C;;;;GAIG;AACH,QAAA,MAAM,WAAW,2DAAwC,CAAC;AAC1D,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAClD,eAAe,WAAW,CAAC"}
@@ -1,35 +1,32 @@
1
1
  <!-- TODO: Documentation: consider documentation showcase -->
2
2
 
3
3
  <script lang="ts">
4
- import { scale } from 'svelte/transition';
5
- import { elasticOut } from 'svelte/easing';
4
+ import { scale } from "svelte/transition";
5
+ import { elasticOut } from "svelte/easing";
6
6
 
7
- import type { ModalProps } from 'svelte-modals';
7
+ import type { ModalProps } from "svelte-modals";
8
8
 
9
- import { onMount, type Snippet } from 'svelte';
9
+ import { onMount, type Snippet } from "svelte";
10
10
  import { PinyaCard, type PinyaCardProps } from "../elements";
11
11
 
12
12
  // https://svelte-modals.mattjennin.gs/modal-components/props/#typescript
13
13
  interface ModalBaseProps extends ModalProps {
14
- children: Snippet,
14
+ children: Snippet;
15
15
  }
16
16
 
17
- let {
18
- children,
19
- isOpen,
20
- close,
21
- ...props
22
- }: ModalBaseProps & PinyaCardProps = $props();
17
+ let { children, isOpen, close, ...props }: ModalBaseProps & PinyaCardProps = $props();
23
18
 
24
19
  let container = $state<HTMLDivElement>();
25
20
  onMount(() => {
26
- const focusableElement = container?.querySelector('input, select, textarea, button, object, a, area[href], [tabindex]');
21
+ const focusableElement = container?.querySelector(
22
+ "input, select, textarea, button, object, a, area[href], [tabindex]"
23
+ );
27
24
  if (focusableElement) {
28
25
  (focusableElement as HTMLElement).focus();
29
26
  }
30
27
 
31
- document.addEventListener('keydown', (e) => {
32
- if (e.code === 'Escape') {
28
+ document.addEventListener("keydown", (e) => {
29
+ if (e.code === "Escape") {
33
30
  close();
34
31
  }
35
32
  });
@@ -37,18 +34,17 @@
37
34
  </script>
38
35
 
39
36
  {#if isOpen}
40
- <dialog aria-modal="true" in:scale|global={{
41
- start: 0.95,
42
- duration: 750,
43
- easing: elasticOut,
44
- opacity: 0.9
45
- }}>
37
+ <dialog
38
+ aria-modal="true"
39
+ in:scale|global={{
40
+ start: 0.95,
41
+ duration: 750,
42
+ easing: elasticOut,
43
+ opacity: 0.9
44
+ }}
45
+ >
46
46
  <div class="interactable" bind:this={container}>
47
- <PinyaCard
48
- widthClass="max-w-xl2"
49
- paddingClass="pl-8 pr-8 pt-4 pb-8"
50
- {...props}
51
- >
47
+ <PinyaCard widthClass="max-w-xl2" paddingClass="pl-8 pr-8 pt-4 pb-8" {...props}>
52
48
  {@render children?.()}
53
49
  </PinyaCard>
54
50
  </div>
@@ -56,24 +52,24 @@
56
52
  {/if}
57
53
 
58
54
  <style>
59
- dialog {
60
- padding: 0;
61
- background-color: transparent;
62
- border-color: transparent;
63
- z-index: 20;
64
- position: fixed;
65
- top: 0;
66
- width: 100%;
67
- height: 100%;
68
- display: flex;
69
- justify-content: center;
70
- align-items: center;
55
+ dialog {
56
+ padding: 0;
57
+ background-color: transparent;
58
+ border-color: transparent;
59
+ z-index: 20;
60
+ position: fixed;
61
+ top: 0;
62
+ width: 100%;
63
+ height: 100%;
64
+ display: flex;
65
+ justify-content: center;
66
+ align-items: center;
71
67
 
72
- /* allow click-through to backdrop */
73
- pointer-events: none;
74
- }
68
+ /* allow click-through to backdrop */
69
+ pointer-events: none;
70
+ }
75
71
 
76
- .interactable {
77
- pointer-events: auto;
78
- }
72
+ .interactable {
73
+ pointer-events: auto;
74
+ }
79
75
  </style>
@@ -1,5 +1,5 @@
1
- import type { ModalProps } from 'svelte-modals';
2
- import { type Snippet } from 'svelte';
1
+ import type { ModalProps } from "svelte-modals";
2
+ import { type Snippet } from "svelte";
3
3
  import { type PinyaCardProps } from "../elements";
4
4
  interface ModalBaseProps extends ModalProps {
5
5
  children: Snippet;
@@ -1 +1 @@
1
- {"version":3,"file":"ModalBase.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/ui/components/ModalBase.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,EAAW,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIjE,UAAU,cAAe,SAAQ,UAAU;IAC1C,QAAQ,EAAE,OAAO,CAAC;CAClB;AACD,KAAK,gBAAgB,GAAI,cAAc,GAAG,cAAc,CAAC;AAsD1D,QAAA,MAAM,SAAS,sDAAwC,CAAC;AACxD,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC9C,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"ModalBase.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/ui/components/ModalBase.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,EAAW,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIjE,UAAU,cAAe,SAAQ,UAAU;IAC1C,QAAQ,EAAE,OAAO,CAAC;CAClB;AACD,KAAK,gBAAgB,GAAI,cAAc,GAAG,cAAc,CAAC;AAmD1D,QAAA,MAAM,SAAS,sDAAwC,CAAC;AACxD,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC9C,eAAe,SAAS,CAAC"}
@@ -11,17 +11,16 @@
11
11
  let {
12
12
  layout,
13
13
  depth,
14
- close = () => {
15
- },
14
+ close = () => {},
16
15
  openBehavior,
17
16
  ...props
18
17
  }: {
19
- layout: PageMeta[],
20
- depth: number,
21
- close?: () => void,
22
- openBehavior?: "open-all" | "open-active" | "close-all"
18
+ layout: PageMeta[];
19
+ depth: number;
20
+ close?: () => void;
21
+ openBehavior?: "open-all" | "open-active" | "close-all";
23
22
  // we have to omit id since id is auto assigned by melt
24
- } & Omit<HTMLAttributes<HTMLDivElement>, 'id'> = $props();
23
+ } & Omit<HTMLAttributes<HTMLDivElement>, "id"> = $props();
25
24
 
26
25
  let openItems = $state<string[]>([]);
27
26
 
@@ -36,18 +35,17 @@
36
35
  break;
37
36
 
38
37
  case "open-all":
39
- openItems = layout.map(site => site.relativeLink);
38
+ openItems = layout.map((site) => site.relativeLink);
40
39
  break;
41
40
 
42
- case "open-active":
43
- // find the biggest match
44
- // for example if our current link is documentation/test/test2
45
- // if the relativeLink are documentation-test, documentation, doc
46
- // we return [documentation]
41
+ case "open-active": // find the biggest match
42
+ // for example if our current link is documentation/test/test2
43
+ // if the relativeLink are documentation-test, documentation, doc
44
+ // we return [documentation]
47
45
  {
48
46
  let bestMatch: string | null = null;
49
47
 
50
- layout.forEach(site => {
48
+ layout.forEach((site) => {
51
49
  const link = site.relativeLink;
52
50
  if (!link) {
53
51
  return;
@@ -72,13 +70,14 @@
72
70
  </script>
73
71
 
74
72
  {#if layout.length > 0}
75
- <PinyaAccordion bind:openItems={openItems} {...props} class="pinya-nested-navigation {props.class ?? ''}">
73
+ <PinyaAccordion bind:openItems {...props} class="pinya-nested-navigation {props.class ?? ''}">
76
74
  {#each layout as site (site.relativeLink)}
77
75
  <!-- todo: add highlighted class when relativeLink === page.url -->
78
76
  <PinyaAccordionItem
79
- class={currentPath === site.relativeLink ? 'highlighted' : ''}
77
+ class={currentPath === site.relativeLink ? "highlighted" : ""}
80
78
  hasNoChild={site.nestedPages.length === 0}
81
- pinyaValue={site.relativeLink}>
79
+ pinyaValue={site.relativeLink}
80
+ >
82
81
  {#snippet control()}
83
82
  <TextLink href={localizeHref(site.relativeLink)} onclick={() => close()}>
84
83
  {site.title}
@@ -94,8 +93,12 @@
94
93
  </PinyaAccordionItem>
95
94
  {/each}
96
95
  </PinyaAccordion>
97
- {:else }
98
- <PinyaCard {...props} class={`nested-navigation-placeholder ${props.class ?? ''}`} colorClass="bg-primary-100 dark:bg-tertiary-900">
96
+ {:else}
97
+ <PinyaCard
98
+ {...props}
99
+ class={`nested-navigation-placeholder ${props.class ?? ""}`}
100
+ colorClass="bg-primary-100 dark:bg-tertiary-900"
101
+ >
99
102
  {#each { length: 10 } as _, idx (idx)}
100
103
  <Placeholder class="mb-2 placeholder" />
101
104
  {/each}
@@ -5,7 +5,7 @@ type $$ComponentProps = {
5
5
  depth: number;
6
6
  close?: () => void;
7
7
  openBehavior?: "open-all" | "open-active" | "close-all";
8
- } & Omit<HTMLAttributes<HTMLDivElement>, 'id'>;
8
+ } & Omit<HTMLAttributes<HTMLDivElement>, "id">;
9
9
  declare const NestedNavigation: import("svelte").Component<$$ComponentProps, {}, "">;
10
10
  type NestedNavigation = ReturnType<typeof NestedNavigation>;
11
11
  export default NestedNavigation;
@@ -1 +1 @@
1
- {"version":3,"file":"NestedNavigation.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/ui/components/NestedNavigation.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAKrC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGrD,KAAK,gBAAgB,GAAI;IACxB,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,YAAY,CAAC,EAAE,UAAU,GAAG,aAAa,GAAG,WAAW,CAAA;CAEvD,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC,CAAC;AAoGhD,QAAA,MAAM,gBAAgB,sDAAwC,CAAC;AAC/D,KAAK,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC5D,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"NestedNavigation.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/ui/components/NestedNavigation.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAKrC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGrD,KAAK,gBAAgB,GAAI;IACxB,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,YAAY,CAAC,EAAE,UAAU,GAAG,aAAa,GAAG,WAAW,CAAC;CAExD,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC,CAAC;AAkGhD,QAAA,MAAM,gBAAgB,sDAAwC,CAAC;AAC/D,KAAK,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC5D,eAAe,gBAAgB,CAAC"}