@functionalcms/svelte-components 3.5.20 → 4.0.0-pre

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 (129) hide show
  1. package/css/functional.css +1 -1
  2. package/css/functional.css.map +1 -1
  3. package/dist/auth/authenticationHandle.js +0 -4
  4. package/dist/auth/redisSessionProvider.js +1 -2
  5. package/dist/auth/sessionIdGenerator.d.ts +1 -1
  6. package/dist/components/form/Button.svelte +379 -0
  7. package/dist/components/form/Button.svelte.d.ts +27 -0
  8. package/dist/components/form/Input.d.ts +21 -0
  9. package/dist/components/form/Input.js +23 -0
  10. package/dist/components/form/Input.svelte +142 -177
  11. package/dist/components/form/Input.svelte.d.ts +24 -46
  12. package/dist/components/{Banner.svelte → layouts/Banner.svelte} +5 -5
  13. package/dist/components/layouts/DefaultLayout.svelte +5 -5
  14. package/dist/components/layouts/DefaultLayout.svelte.d.ts +4 -4
  15. package/dist/components/layouts/SimpleFooter.svelte +4 -4
  16. package/dist/components/layouts/SimpleFooter.svelte.d.ts +3 -3
  17. package/dist/components/layouts/Well.svelte +46 -0
  18. package/dist/components/layouts/Well.svelte.d.ts +12 -0
  19. package/dist/components/menu/CollapsibleMenu.svelte +2 -2
  20. package/dist/components/menu/CollapsibleMenu.svelte.d.ts +3 -16
  21. package/dist/components/menu/DynamicMenu.svelte +25 -13
  22. package/dist/components/menu/DynamicMenu.svelte.d.ts +10 -28
  23. package/dist/components/menu/HamburgerMenu.svelte +29 -21
  24. package/dist/components/menu/HamburgerMenu.svelte.d.ts +11 -24
  25. package/dist/components/menu/ListMenu.svelte +53 -0
  26. package/dist/components/menu/ListMenu.svelte.d.ts +17 -0
  27. package/dist/components/menu/{Menu.d.ts → types.d.ts} +2 -0
  28. package/dist/components/menu/{Menu.js → types.js} +5 -0
  29. package/dist/components/presentation/Card.svelte +77 -92
  30. package/dist/components/presentation/Card.svelte.d.ts +10 -13
  31. package/dist/components/presentation/{Carusele.d.ts → Carousel.d.ts} +1 -1
  32. package/dist/components/presentation/Carousel.svelte +98 -1
  33. package/dist/components/presentation/Carousel.svelte.d.ts +14 -15
  34. package/dist/components/presentation/Drawer.svelte +131 -0
  35. package/dist/components/presentation/Drawer.svelte.d.ts +13 -0
  36. package/dist/components/presentation/Gallery.svelte +7 -7
  37. package/dist/components/presentation/Gallery.svelte.d.ts +3 -3
  38. package/dist/components/presentation/ImageCompare.svelte +39 -46
  39. package/dist/components/presentation/ImageCompare.svelte.d.ts +8 -26
  40. package/dist/components/presentation/Link.svelte +362 -0
  41. package/dist/components/presentation/Link.svelte.d.ts +27 -0
  42. package/dist/components/presentation/Logo.svelte +36 -0
  43. package/dist/components/presentation/Logo.svelte.d.ts +8 -0
  44. package/dist/components/presentation/ShowItem.d.ts +7 -7
  45. package/dist/components/presentation/ShowItem.js +1 -8
  46. package/dist/index-server.d.ts +0 -1
  47. package/dist/index-server.js +0 -3
  48. package/dist/index.d.ts +16 -22
  49. package/dist/index.js +39 -57
  50. package/dist/server-side/getServices.d.ts +1 -1
  51. package/dist/server-side/types.d.ts +1 -2
  52. package/dist/utils.d.ts +1 -0
  53. package/dist/utils.js +54 -0
  54. package/package.json +27 -24
  55. package/dist/components/CssHelper.d.ts +0 -1
  56. package/dist/components/CssHelper.js +0 -3
  57. package/dist/components/Link.svelte +0 -349
  58. package/dist/components/Link.svelte.d.ts +0 -48
  59. package/dist/components/Logo.svelte +0 -38
  60. package/dist/components/Logo.svelte.d.ts +0 -28
  61. package/dist/components/Spacer.svelte +0 -22
  62. package/dist/components/Spacer.svelte.d.ts +0 -6
  63. package/dist/components/Well.svelte +0 -40
  64. package/dist/components/Well.svelte.d.ts +0 -12
  65. package/dist/components/agnostic/Button/Button.svelte +0 -371
  66. package/dist/components/agnostic/Button/Button.svelte.d.ts +0 -52
  67. package/dist/components/agnostic/Button/ButtonGroup.svelte +0 -21
  68. package/dist/components/agnostic/Button/ButtonGroup.svelte.d.ts +0 -32
  69. package/dist/components/agnostic/Button/button-base.css +0 -12
  70. package/dist/components/agnostic/Button/button-core.css +0 -237
  71. package/dist/components/agnostic/Button/button-empty.css +0 -31
  72. package/dist/components/agnostic/Button/button-group.css +0 -8
  73. package/dist/components/agnostic/Close/Close.svelte +0 -124
  74. package/dist/components/agnostic/Close/Close.svelte.d.ts +0 -25
  75. package/dist/components/agnostic/Close/api.d.ts +0 -1
  76. package/dist/components/agnostic/Disclose/Disclose.svelte +0 -116
  77. package/dist/components/agnostic/Disclose/Disclose.svelte.d.ts +0 -11
  78. package/dist/components/agnostic/Divider/Divider.svelte +0 -141
  79. package/dist/components/agnostic/Divider/Divider.svelte.d.ts +0 -24
  80. package/dist/components/agnostic/Divider/api.d.ts +0 -3
  81. package/dist/components/agnostic/Divider/api.js +0 -1
  82. package/dist/components/agnostic/Loader/Loader.svelte +0 -116
  83. package/dist/components/agnostic/Loader/Loader.svelte.d.ts +0 -22
  84. package/dist/components/agnostic/animation.css +0 -37
  85. package/dist/components/blog/BlogDescription.svelte +0 -9
  86. package/dist/components/blog/BlogDescription.svelte.d.ts +0 -23
  87. package/dist/components/blog/BlogPost.d.ts +0 -13
  88. package/dist/components/blog/BlogPost.js +0 -1
  89. package/dist/components/blog/BlogTitle.svelte +0 -19
  90. package/dist/components/blog/BlogTitle.svelte.d.ts +0 -23
  91. package/dist/components/blog/blog.d.ts +0 -8
  92. package/dist/components/blog/blog.js +0 -29
  93. package/dist/components/converters/ShowItemToNavigationItems.d.ts +0 -3
  94. package/dist/components/converters/ShowItemToNavigationItems.js +0 -10
  95. package/dist/components/form/DateTimePicker.svelte +0 -59
  96. package/dist/components/form/DateTimePicker.svelte.d.ts +0 -18
  97. package/dist/components/form/InputAddonItem.svelte +0 -42
  98. package/dist/components/form/InputAddonItem.svelte.d.ts +0 -31
  99. package/dist/components/form/InputTypes.d.ts +0 -9
  100. package/dist/components/form/InputTypes.js +0 -10
  101. package/dist/components/form/Select.svelte +0 -157
  102. package/dist/components/form/Select.svelte.d.ts +0 -34
  103. package/dist/components/form/Switch.svelte +0 -275
  104. package/dist/components/form/Switch.svelte.d.ts +0 -30
  105. package/dist/components/menu/Menu.svelte +0 -526
  106. package/dist/components/menu/Menu.svelte.d.ts +0 -33
  107. package/dist/components/menu/MenuItem.svelte +0 -121
  108. package/dist/components/menu/MenuItem.svelte.d.ts +0 -39
  109. package/dist/components/menu/NavigationItems.svelte +0 -44
  110. package/dist/components/menu/NavigationItems.svelte.d.ts +0 -32
  111. package/dist/components/menu/authentication.d.ts +0 -1
  112. package/dist/components/menu/authentication.js +0 -6
  113. package/dist/components/presentation/Carousel/carousel-content.svelte +0 -35
  114. package/dist/components/presentation/Carousel/carousel-content.svelte.d.ts +0 -28
  115. package/dist/components/presentation/Carousel/carousel-item.svelte +0 -25
  116. package/dist/components/presentation/Carousel/carousel-item.svelte.d.ts +0 -28
  117. package/dist/components/presentation/Carousel/carousel-next.svelte +0 -39
  118. package/dist/components/presentation/Carousel/carousel-next.svelte.d.ts +0 -18
  119. package/dist/components/presentation/Carousel/carousel-previous.svelte +0 -40
  120. package/dist/components/presentation/Carousel/carousel-previous.svelte.d.ts +0 -18
  121. package/dist/components/presentation/Carousel/carousel.svelte +0 -99
  122. package/dist/components/presentation/Carousel/carousel.svelte.d.ts +0 -31
  123. package/dist/components/presentation/Carousel/context.d.ts +0 -32
  124. package/dist/components/presentation/Carousel/context.js +0 -12
  125. package/dist/components/presentation/Carusele.js +0 -5
  126. /package/dist/components/{Markdown.svelte → content/Markdown.svelte} +0 -0
  127. /package/dist/components/{Markdown.svelte.d.ts → content/Markdown.svelte.d.ts} +0 -0
  128. /package/dist/components/{Banner.svelte.d.ts → layouts/Banner.svelte.d.ts} +0 -0
  129. /package/dist/components/{agnostic/Close/api.js → presentation/Carousel.js} +0 -0
@@ -1,349 +0,0 @@
1
- <style>.btn {
2
- /* TODO test this fallback override syntax is correct */
3
- display: inline-flex;
4
- align-items: center;
5
- justify-content: center;
6
- white-space: nowrap;
7
- user-select: none;
8
- appearance: none;
9
- cursor: pointer;
10
- box-sizing: border-box;
11
- transition-property: all;
12
- transition-duration: var(--functional-timing-medium);
13
- }
14
-
15
- .btn-skin,
16
- .btn {
17
- color: var(--functional-btn-font-color, var(--functional-dark));
18
- background-color: var(--functional-btn-bgcolor, var(--functional-gray-light));
19
- border-color: var(--functional-btn-bgcolor, var(--functional-gray-light));
20
-
21
- /* seems like a reasonable default as chrome picks `outset` which results in a weird 3d effect */
22
- border-style: solid;
23
- border-width: var(--functional-btn-border-size, 1px);
24
- font-family: var(--functional-btn-font-family, var(--functional-font-family-body));
25
- font-weight: var(--functional-btn-font-weight, 400);
26
- font-size: var(--functional-btn-font-size, 1rem);
27
-
28
- /* this can be overriden, but it might mess with the balance of the button heights across variants */
29
- line-height: var(--functional-line-height, var(--fluid-20, 1.25rem));
30
- padding-block-start: var(--functional-vertical-pad, 0.5rem);
31
- padding-block-end: var(--functional-vertical-pad, 0.5rem);
32
- padding-inline-start: var(--functional-side-padding, 0.75rem);
33
- padding-inline-end: var(--functional-side-padding, 0.75rem);
34
- text-decoration: none;
35
- text-align: center;
36
- outline: none;
37
- }
38
-
39
- .btn:visited {
40
- color: var(--functional-btn-font-color, var(--functional-dark));
41
- }
42
-
43
- .btn:hover {
44
- opacity: 85%;
45
- text-decoration: none;
46
- }
47
-
48
- .btn:active {
49
- text-shadow: 0 1px 0 rgb(255 255 255 / 30%);
50
- text-decoration: none;
51
- transition-duration: 0s;
52
- box-shadow: inset 0 1px 3px rgb(0 0 0 / 20%);
53
- }
54
-
55
- .btn:focus {
56
- box-shadow: 0 0 0 var(--functional-focus-ring-outline-width) var(--functional-focus-ring-color);
57
-
58
- /* Needed for High Contrast mode */
59
- outline:
60
- var(--functional-focus-ring-outline-width) var(--functional-focus-ring-outline-style)
61
- var(--functional-focus-ring-outline-color);
62
- transition: box-shadow var(--functional-timing-fast) ease-out;
63
-
64
- /* In order for the focused element's box-shadow to appear above its siblings we need to
65
- establish a new stacking context: https://stackoverflow.com/a/28042700 */
66
- isolation: isolate;
67
- }
68
-
69
- /*
70
- * Disabled State
71
- *
72
- * The disabled state uses the class .disabled, is-disabled,
73
- * and the form attribute disabled="disabled".
74
- * The use of !important is only added because this is a state
75
- * that must be applied to all buttons when in a disabled state.
76
- */
77
-
78
- .btn.disabled,
79
- .btn:disabled {
80
- top: 0 !important;
81
- background: var(--functional-btn-disabled-bg, var(--functional-gray-mid-dark)) !important;
82
- text-shadow: 0 1px 1px rgb(255 255 255 / 100%) !important;
83
-
84
- /* primary, secondary, natural, all look same when disabled; and we don't want to
85
- have an inadvertant looking blue primary border when disabled so it's transparent */
86
- border-color: transparent;
87
- color: var(--functional-btn-disabled-color, var(--functional-gray-dark)) !important;
88
- cursor: default !important;
89
- appearance: none !important;
90
- box-shadow: none !important;
91
- opacity: 80% !important;
92
- }
93
-
94
- .btn-primary {
95
- background-color: var(--functional-btn-primary, var(--functional-primary));
96
- border-color: var(--functional-btn-primary, var(--functional-primary));
97
- color: var(--functional-btn-primary-color, var(--functional-light));
98
- }
99
-
100
- /* Border and font is primary. When hovered, we invert with primary background and white font */
101
-
102
- .btn-primary.btn-bordered {
103
- color: var(--functional-btn-primary, var(--functional-primary));
104
- }
105
-
106
- .btn-primary.btn-bordered:hover,
107
- .btn-primary.btn-bordered:focus {
108
- background-color: var(--functional-btn-primary, var(--functional-primary));
109
- color: var(--functional-btn-primary-color, var(--functional-light));
110
- }
111
-
112
- .btn-primary:visited {
113
- color: var(--functional-btn-primary-color, var(--functional-light));
114
- }
115
-
116
- .btn-secondary {
117
- background-color: var(--functional-btn-secondary, var(--functional-secondary));
118
- border-color: var(--functional-btn-secondary, var(--functional-secondary));
119
- color: var(--functional-btn-secondary-color, var(--functional-light));
120
- }
121
-
122
- /* Border and font is secondary. When hovered, we invert with secondary background and white font */
123
-
124
- .btn-secondary.btn-bordered {
125
- color: var(--functional-btn-secondary, var(--functional-secondary));
126
- }
127
-
128
- .btn-secondary.btn-bordered:hover,
129
- .btn-secondary.btn-bordered:focus {
130
- background-color: var(--functional-btn-secondary, var(--functional-secondary));
131
- color: var(--functional-btn-secondary-color, var(--functional-light));
132
- }
133
-
134
- .btn-secondary:visited {
135
- color: var(--functional-btn-secondary-color, var(--functional-light));
136
- }
137
-
138
- /*
139
- /**
140
- * Border Buttons
141
- */
142
-
143
- .btn-bordered {
144
- border-width: 1px;
145
- background: transparent;
146
- }
147
-
148
- /**
149
- * Sizes
150
- */
151
-
152
- .btn-large {
153
- font-size: calc(var(--functional-btn-font-size, 1rem) + 0.25rem);
154
- height: 3rem;
155
- line-height: 3rem;
156
- padding: 0 3rem;
157
- }
158
-
159
- .btn-small {
160
- font-size: calc(var(--functional-btn-font-size, 1rem) - 0.25rem);
161
- height: 2rem;
162
- line-height: 2rem;
163
- padding: 0 2rem;
164
- }
165
-
166
- /**
167
- * Rounded
168
- */
169
-
170
- .btn-rounded {
171
- border-radius: var(--functional-btn-radius, var(--functional-radius, 0.25rem));
172
- }
173
-
174
- .btn-pill {
175
- border-radius: 200px;
176
- }
177
-
178
- /*
179
- * Size Adjustment for equal height & width buttons
180
- *
181
- * Remove padding
182
- */
183
-
184
- .btn-circle {
185
- border-radius: 100%;
186
- width: 2.5rem;
187
- height: 2.5rem;
188
- padding: 0 !important;
189
- }
190
-
191
- .btn-circle-large {
192
- font-size: calc(var(--functional-btn-font-size, 1rem) + 0.25rem);
193
- width: 3rem;
194
- height: 3rem;
195
- }
196
-
197
- .btn-circle-small {
198
- font-size: calc(var(--functional-btn-font-size, 1rem) - 0.25rem);
199
- width: 2rem;
200
- height: 2rem;
201
- }
202
-
203
- /**
204
- * Button Block (stacked)
205
- */
206
-
207
- .btn-block {
208
- width: 100%;
209
- }
210
-
211
- /* This is a utility class used if you literally want to stack block buttons one after another.
212
- Apply this class to the nth-of-type(2) onwards to ensure the borders line up properly. */
213
-
214
- .btn-block-following {
215
- margin-block-start: -1px;
216
- }
217
-
218
- .btn-grouped {
219
- border-radius: var(--functional-btn-radius, var(--functional-radius, 0.25rem));
220
- }
221
-
222
- .btn-grouped:not(:last-child) {
223
- border-top-right-radius: 0;
224
- border-bottom-right-radius: 0;
225
- margin-inline-end: -1px;
226
- }
227
-
228
- .btn-grouped:not(:first-child) {
229
- border-top-left-radius: 0;
230
- border-bottom-left-radius: 0;
231
- }
232
-
233
- .btn-capsule {
234
- --padding-side: calc(var(--functional-side-padding, 0.75rem) * 1.5);
235
-
236
- border-radius: var(--functional-radius-capsule);
237
- padding-inline-start: var(--padding-side);
238
- padding-inline-end: var(--padding-side);
239
- }
240
-
241
- @media (prefers-reduced-motion), (update: slow) {
242
- .btn,
243
- .btn:focus {
244
- transition-duration: 0.001ms !important;
245
- }
246
- }
247
-
248
- /**
249
- * Invisible buttons. Generally used for a Cancel or icon button that behaves like a button,
250
- * semantically and for a11y, but, does so without all the typical "button chrome" behind it.
251
- */
252
-
253
- :is(.btn-link, .btn-blank) {
254
- font-family: var(--functional-btn-font-family, var(--functional-font-family-body));
255
- font-size: var(--functional-btn-font-size, 1rem);
256
- background-color: transparent;
257
- border: 0;
258
- border-radius: 0;
259
- box-shadow: none;
260
- transition: none;
261
- }
262
-
263
- /* Since blank buttons can be used for things like input addons we don't want to go crazy
264
- on the side padding. As such, these have a good bit less then regular buttons. */
265
-
266
- .btn-blank {
267
- --functional-btn-blank-side-padding: var(--btn-blank-side-padding, 0.25rem);
268
-
269
- padding-inline-start: var(--functional-btn-blank-side-padding);
270
- padding-inline-end: var(--functional-btn-blank-side-padding);
271
- }
272
-
273
- /* A button blank with link color text */
274
-
275
- .btn-link {
276
- color: var(--functional-btn-primary, var(--functional-primary));
277
- }
278
-
279
- .btn-link:hover {
280
- cursor: pointer;
281
- }
282
-
283
- /**
284
- * Button Groups. See also button-core.css which has btn-grouped which needs to be
285
- * applied to the buttons that are projected within a button group.
286
- */
287
-
288
- .btn-group {
289
- display: inline-flex;
290
- flex-direction: row;
291
- }</style>
292
- <script lang='ts'>
293
- import { AlignItmes, ComponentSize, Justify, Orientation } from './Styling.js'
294
- import { mergedClasses } from './CssHelper.js';
295
-
296
- export let css: string = ""
297
- export let href: string = ""
298
-
299
- export let isPrimary: boolean = false
300
- export let isDisabled: boolean = false
301
- export let isBordered: boolean = false
302
- export let isSecondary: boolean = false
303
- export let idRounded: boolean = false
304
- export let idPill: boolean = false
305
- export let idBlock: boolean = false
306
- export let idCapsule: boolean = false
307
- export let idCircle: boolean = false
308
- export let idGrouped: boolean = false
309
- export let isCircle: boolean = false
310
- export let isFlex: boolean = true
311
- export let size: ComponentSize = ComponentSize.Normal
312
- export let justify: Justify = Justify.Center
313
- export let alignItems: AlignItmes = AlignItmes.Center
314
- export let orientation: Orientation = Orientation.Row
315
- export let role: string = "link"
316
-
317
- $: isSmall = size === ComponentSize.Small
318
- $: isLarge = size === ComponentSize.Large
319
-
320
- $: klasses = mergedClasses(
321
- isPrimary ? 'btn-primary' : '',
322
- isDisabled? 'disabled': '',
323
-
324
- isBordered ? 'btn-bordered' : '',
325
- isSecondary ? 'btn-secondary' : '',
326
-
327
- idRounded ? 'btn-rounded' : '',
328
- idPill ? 'btn-pill' : '',
329
- idBlock ? 'btn-block' : '',
330
- idCapsule ? 'btn-capsule' : '',
331
- idCircle ? 'btn-circle' : '',
332
- idGrouped ? 'btn-grouped' : '',
333
-
334
- isLarge ? 'btn-large' : '',
335
- isSmall ? 'btn-small' : '',
336
-
337
- isLarge && isCircle ? 'btn-large btn-circle-large' : '',
338
- isSmall && idCircle ? 'btn-small btn-circle-small' : '',
339
-
340
- isFlex ? `flex` : '',
341
- isFlex ? `${orientation}` : '',
342
- isFlex ? `${justify}` : '',
343
- isFlex ? `${alignItems}` : '',
344
-
345
- css ? css : 'btn');
346
- </script>
347
- <a class={klasses} href={href}>
348
- <slot />
349
- </a>
@@ -1,48 +0,0 @@
1
- import { AlignItmes, ComponentSize, Justify, Orientation } from './Styling.js';
2
- interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
- new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
- $$bindings?: Bindings;
5
- } & Exports;
6
- (internal: unknown, props: Props & {
7
- $$events?: Events;
8
- $$slots?: Slots;
9
- }): Exports & {
10
- $set?: any;
11
- $on?: any;
12
- };
13
- z_$$bindings?: Bindings;
14
- }
15
- type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
16
- default: any;
17
- } ? Props extends Record<string, never> ? any : {
18
- children?: any;
19
- } : {});
20
- declare const Link: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
21
- css?: string;
22
- href?: string;
23
- isPrimary?: boolean;
24
- isDisabled?: boolean;
25
- isBordered?: boolean;
26
- isSecondary?: boolean;
27
- idRounded?: boolean;
28
- idPill?: boolean;
29
- idBlock?: boolean;
30
- idCapsule?: boolean;
31
- idCircle?: boolean;
32
- idGrouped?: boolean;
33
- isCircle?: boolean;
34
- isFlex?: boolean;
35
- size?: ComponentSize;
36
- justify?: Justify;
37
- alignItems?: AlignItmes;
38
- orientation?: Orientation;
39
- role?: string;
40
- }, {
41
- default: {};
42
- }>, {
43
- [evt: string]: CustomEvent<any>;
44
- }, {
45
- default: {};
46
- }, {}, string>;
47
- type Link = InstanceType<typeof Link>;
48
- export default Link;
@@ -1,38 +0,0 @@
1
- <style>
2
- a {
3
- display: var(--functional-logo-display, 'inline-block');
4
- margin: var(--functional-mobile-logo-margin);
5
- padding: var(--functional-mobile-logo-padding);
6
- }
7
- a img {
8
- width: 100%;
9
- }
10
-
11
- @media (min-width: 960px) {
12
- a img {
13
- margin: var(--functional-logo-margin);
14
- padding: var(--functional-logo-padding);
15
- }
16
- }
17
- </style>
18
-
19
- <script lang='ts'>
20
- /**
21
- * @type {string}
22
- */
23
- export let companyName: string
24
-
25
- /**
26
- * @type {string}
27
- */
28
- export let logoUrl: string
29
-
30
- /**
31
- * @type {string}
32
- */
33
- export let css: string = "logo"
34
- </script>
35
-
36
- <a href="/" class={css}>
37
- <img src={logoUrl} alt={companyName} loading="lazy"/>
38
- </a>
@@ -1,28 +0,0 @@
1
- interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
2
- new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
- $$bindings?: Bindings;
4
- } & Exports;
5
- (internal: unknown, props: Props & {
6
- $$events?: Events;
7
- $$slots?: Slots;
8
- }): Exports & {
9
- $set?: any;
10
- $on?: any;
11
- };
12
- z_$$bindings?: Bindings;
13
- }
14
- declare const Logo: $$__sveltets_2_IsomorphicComponent<{
15
- /**
16
- * @type {string}
17
- */ companyName: string;
18
- /**
19
- * @type {string}
20
- */ logoUrl: string;
21
- /**
22
- * @type {string}
23
- */ css?: string;
24
- }, {
25
- [evt: string]: CustomEvent<any>;
26
- }, {}, {}, string>;
27
- type Logo = InstanceType<typeof Logo>;
28
- export default Logo;
@@ -1,22 +0,0 @@
1
- <script lang="ts">
2
- import { mergedClasses } from './CssHelper.js';
3
- import { Sizes } from './Styling.js';
4
-
5
- interface Props {
6
- width: Sizes;
7
- height: Sizes;
8
- }
9
-
10
- let { width = Sizes.V0, height = Sizes.V0 } = $props();
11
-
12
- const klasses = mergedClasses(width ? `w${width}` : '', height ? `h${height}` : '');
13
- </script>
14
-
15
- <div class={klasses}></div>
16
-
17
- <style>
18
- div {
19
- display: block;
20
- height: 100%;
21
- }
22
- </style>
@@ -1,6 +0,0 @@
1
- declare const Spacer: import("svelte").Component<{
2
- width?: any;
3
- height?: any;
4
- }, {}, "">;
5
- type Spacer = ReturnType<typeof Spacer>;
6
- export default Spacer;
@@ -1,40 +0,0 @@
1
- <script lang="ts">
2
- import type { Snippet } from 'svelte';
3
- import { mergedClasses } from './CssHelper.js';
4
- import { AlignItmes, Justify, Orientation } from './Styling.js';
5
-
6
- interface WellProps {
7
- css: string;
8
- orientation: Orientation;
9
- justify: Justify;
10
- alignItems: AlignItmes;
11
- children: Snippet;
12
- }
13
- let {
14
- children,
15
- css = '',
16
- orientation = Orientation.Column,
17
- justify = Justify.Start,
18
- alignItems = AlignItmes.Start
19
- }: WellProps = $props();
20
-
21
- let klasses = mergedClasses('flex', `${orientation}`, `${justify}`, `${alignItems}`, css ? css : '');
22
- </script>
23
-
24
- <div class={klasses}>
25
- {@render children()}
26
- </div>
27
-
28
- <style>
29
- div {
30
- width: var(--functional-mobile-content-width, 95%);
31
- margin: var(--functional-mobile-content-margin, var(--fluid-8));
32
- }
33
-
34
- @media (min-width: 960px) {
35
- div {
36
- width: var(--functional-content-width, 95%);
37
- margin: var(--functional-content-margin, var(--fluid-8));
38
- }
39
- }
40
- </style>
@@ -1,12 +0,0 @@
1
- import type { Snippet } from 'svelte';
2
- import { AlignItmes, Justify, Orientation } from './Styling.js';
3
- interface WellProps {
4
- css: string;
5
- orientation: Orientation;
6
- justify: Justify;
7
- alignItems: AlignItmes;
8
- children: Snippet;
9
- }
10
- declare const Well: import("svelte").Component<WellProps, {}, "">;
11
- type Well = ReturnType<typeof Well>;
12
- export default Well;