@onsvisual/svelte-components 0.0.1

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 (46) hide show
  1. package/README.md +5 -0
  2. package/dist/@types/actions/cssVariables/index.d.ts +4 -0
  3. package/dist/@types/actions/resizeObserver/index.d.ts +4 -0
  4. package/dist/@types/components/layout/Accordion/Accordion.svelte.d.ts +27 -0
  5. package/dist/@types/components/layout/Accordion/AccordionItem.svelte.d.ts +31 -0
  6. package/dist/@types/components/layout/Container/Container.svelte.d.ts +39 -0
  7. package/dist/@types/components/layout/Footer/Footer.svelte.d.ts +31 -0
  8. package/dist/@types/components/layout/Footer/ONSLogo.svelte.d.ts +29 -0
  9. package/dist/@types/components/layout/Header/Header.svelte.d.ts +35 -0
  10. package/dist/@types/components/layout/Header/ONSLogo.svelte.d.ts +29 -0
  11. package/dist/@types/components/layout/Theme/Theme.svelte.d.ts +33 -0
  12. package/dist/@types/components/layout/Theme/themes.d.ts +29 -0
  13. package/dist/@types/components/layout/Twisty/Twisty.svelte.d.ts +29 -0
  14. package/dist/@types/components/ui/Button/Button.svelte.d.ts +43 -0
  15. package/dist/@types/components/ui/Button/Icon.svelte.d.ts +27 -0
  16. package/dist/@types/components/ui/Dropdown/Dropdown.svelte.d.ts +37 -0
  17. package/dist/@types/components/ui/Em/Em.svelte.d.ts +29 -0
  18. package/dist/@types/components/ui/Input/Input.svelte.d.ts +51 -0
  19. package/dist/@types/components/ui/Select/Select.svelte.d.ts +67 -0
  20. package/dist/@types/components/ui/Textarea/Textarea.svelte.d.ts +37 -0
  21. package/dist/@types/index.d.ts +13 -0
  22. package/dist/@types/js/utils.d.ts +10 -0
  23. package/dist/actions/cssVariables/index.js +20 -0
  24. package/dist/actions/resizeObserver/index.js +25 -0
  25. package/dist/components/layout/Accordion/Accordion.svelte +37 -0
  26. package/dist/components/layout/Accordion/AccordionItem.svelte +81 -0
  27. package/dist/components/layout/Container/Container.svelte +99 -0
  28. package/dist/components/layout/Footer/Footer.svelte +266 -0
  29. package/dist/components/layout/Footer/ONSLogo.svelte +150 -0
  30. package/dist/components/layout/Header/Header.svelte +513 -0
  31. package/dist/components/layout/Header/ONSLogo.svelte +150 -0
  32. package/dist/components/layout/Theme/Theme.svelte +91 -0
  33. package/dist/components/layout/Theme/themes.js +24 -0
  34. package/dist/components/layout/Twisty/Twisty.svelte +48 -0
  35. package/dist/components/ui/Button/Button.svelte +87 -0
  36. package/dist/components/ui/Button/Icon.svelte +50 -0
  37. package/dist/components/ui/Dropdown/Dropdown.svelte +62 -0
  38. package/dist/components/ui/Em/Em.svelte +44 -0
  39. package/dist/components/ui/Input/Input.svelte +163 -0
  40. package/dist/components/ui/Select/Select.svelte +257 -0
  41. package/dist/components/ui/Textarea/Textarea.svelte +99 -0
  42. package/dist/css/main.css +55 -0
  43. package/dist/globals.d.ts +23 -0
  44. package/dist/index.js +16 -0
  45. package/dist/js/utils.js +41 -0
  46. package/package.json +144 -0
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # ⚙️ graphics-components
2
+
3
+ [![npm version](https://badge.fury.io/js/@reuters-graphics%2Fgraphics-components.svg)](https://badge.fury.io/js/@reuters-graphics%2Fgraphics-components)
4
+
5
+ This is a fork of the Reuters [graphics-components](https://github.com/reuters-graphics/graphics-components) repo, for experimentation.
@@ -0,0 +1,4 @@
1
+ declare function _default(node: any, props: any): {
2
+ update(newProps: any): void;
3
+ };
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare function _default(element: any, onResize: any): {
2
+ destroy: () => void;
3
+ };
4
+ export default _default;
@@ -0,0 +1,27 @@
1
+ /** @typedef {typeof __propDef.props} AccordionProps */
2
+ /** @typedef {typeof __propDef.events} AccordionEvents */
3
+ /** @typedef {typeof __propDef.slots} AccordionSlots */
4
+ export default class Accordion extends SvelteComponentTyped<{
5
+ showToggle?: boolean;
6
+ }, {
7
+ [evt: string]: CustomEvent<any>;
8
+ }, {
9
+ default: {};
10
+ }> {
11
+ }
12
+ export type AccordionProps = typeof __propDef.props;
13
+ export type AccordionEvents = typeof __propDef.events;
14
+ export type AccordionSlots = typeof __propDef.slots;
15
+ import { SvelteComponentTyped } from "svelte";
16
+ declare const __propDef: {
17
+ props: {
18
+ showToggle?: boolean;
19
+ };
20
+ events: {
21
+ [evt: string]: CustomEvent<any>;
22
+ };
23
+ slots: {
24
+ default: {};
25
+ };
26
+ };
27
+ export {};
@@ -0,0 +1,31 @@
1
+ /** @typedef {typeof __propDef.props} AccordionItemProps */
2
+ /** @typedef {typeof __propDef.events} AccordionItemEvents */
3
+ /** @typedef {typeof __propDef.slots} AccordionItemSlots */
4
+ export default class AccordionItem extends SvelteComponentTyped<{
5
+ title?: string;
6
+ open?: boolean;
7
+ id?: string;
8
+ }, {
9
+ [evt: string]: CustomEvent<any>;
10
+ }, {
11
+ default: {};
12
+ }> {
13
+ }
14
+ export type AccordionItemProps = typeof __propDef.props;
15
+ export type AccordionItemEvents = typeof __propDef.events;
16
+ export type AccordionItemSlots = typeof __propDef.slots;
17
+ import { SvelteComponentTyped } from "svelte";
18
+ declare const __propDef: {
19
+ props: {
20
+ title?: string;
21
+ open?: boolean;
22
+ id?: string;
23
+ };
24
+ events: {
25
+ [evt: string]: CustomEvent<any>;
26
+ };
27
+ slots: {
28
+ default: {};
29
+ };
30
+ };
31
+ export {};
@@ -0,0 +1,39 @@
1
+ /** @typedef {typeof __propDef.props} ContainerProps */
2
+ /** @typedef {typeof __propDef.events} ContainerEvents */
3
+ /** @typedef {typeof __propDef.slots} ContainerSlots */
4
+ export default class Container extends SvelteComponentTyped<{
5
+ theme?: "light" | "dark" | "lightblue";
6
+ background?: string;
7
+ width?: "narrow" | "medium" | "wide" | "full";
8
+ height?: "full" | "auto" | "tall";
9
+ marginTop?: boolean;
10
+ marginBottom?: boolean;
11
+ themeOverrides?: any;
12
+ }, {
13
+ [evt: string]: CustomEvent<any>;
14
+ }, {
15
+ default: {};
16
+ }> {
17
+ }
18
+ export type ContainerProps = typeof __propDef.props;
19
+ export type ContainerEvents = typeof __propDef.events;
20
+ export type ContainerSlots = typeof __propDef.slots;
21
+ import { SvelteComponentTyped } from "svelte";
22
+ declare const __propDef: {
23
+ props: {
24
+ theme?: "light" | "dark" | "lightblue";
25
+ background?: string;
26
+ width?: "narrow" | "medium" | "wide" | "full";
27
+ height?: "auto" | "tall" | "full";
28
+ marginTop?: boolean;
29
+ marginBottom?: boolean;
30
+ themeOverrides?: object;
31
+ };
32
+ events: {
33
+ [evt: string]: CustomEvent<any>;
34
+ };
35
+ slots: {
36
+ default: {};
37
+ };
38
+ };
39
+ export {};
@@ -0,0 +1,31 @@
1
+ /** @typedef {typeof __propDef.props} FooterProps */
2
+ /** @typedef {typeof __propDef.events} FooterEvents */
3
+ /** @typedef {typeof __propDef.slots} FooterSlots */
4
+ export default class Footer extends SvelteComponentTyped<{
5
+ theme?: "light" | "dark";
6
+ themeOverrides?: any;
7
+ compact?: boolean;
8
+ }, {
9
+ [evt: string]: CustomEvent<any>;
10
+ }, {
11
+ before: {};
12
+ }> {
13
+ }
14
+ export type FooterProps = typeof __propDef.props;
15
+ export type FooterEvents = typeof __propDef.events;
16
+ export type FooterSlots = typeof __propDef.slots;
17
+ import { SvelteComponentTyped } from "svelte";
18
+ declare const __propDef: {
19
+ props: {
20
+ theme?: "light" | "dark";
21
+ themeOverrides?: object;
22
+ compact?: boolean;
23
+ };
24
+ events: {
25
+ [evt: string]: CustomEvent<any>;
26
+ };
27
+ slots: {
28
+ before: {};
29
+ };
30
+ };
31
+ export {};
@@ -0,0 +1,29 @@
1
+ /** @typedef {typeof __propDef.props} OnsLogoProps */
2
+ /** @typedef {typeof __propDef.events} OnsLogoEvents */
3
+ /** @typedef {typeof __propDef.slots} OnsLogoSlots */
4
+ export default class OnsLogo extends SvelteComponentTyped<{
5
+ width?: string;
6
+ height?: string;
7
+ compact?: boolean;
8
+ className?: string;
9
+ }, {
10
+ [evt: string]: CustomEvent<any>;
11
+ }, {}> {
12
+ }
13
+ export type OnsLogoProps = typeof __propDef.props;
14
+ export type OnsLogoEvents = typeof __propDef.events;
15
+ export type OnsLogoSlots = typeof __propDef.slots;
16
+ import { SvelteComponentTyped } from "svelte";
17
+ declare const __propDef: {
18
+ props: {
19
+ width?: string;
20
+ height?: string;
21
+ compact?: boolean;
22
+ className?: string;
23
+ };
24
+ events: {
25
+ [evt: string]: CustomEvent<any>;
26
+ };
27
+ slots: {};
28
+ };
29
+ export {};
@@ -0,0 +1,35 @@
1
+ /** @typedef {typeof __propDef.props} HeaderProps */
2
+ /** @typedef {typeof __propDef.events} HeaderEvents */
3
+ /** @typedef {typeof __propDef.slots} HeaderSlots */
4
+ export default class Header extends SvelteComponentTyped<{
5
+ theme?: "light" | "dark";
6
+ themeOverrides?: any;
7
+ compact?: boolean;
8
+ title?: string;
9
+ titleHref?: string;
10
+ }, {
11
+ [evt: string]: CustomEvent<any>;
12
+ }, {
13
+ before: {};
14
+ }> {
15
+ }
16
+ export type HeaderProps = typeof __propDef.props;
17
+ export type HeaderEvents = typeof __propDef.events;
18
+ export type HeaderSlots = typeof __propDef.slots;
19
+ import { SvelteComponentTyped } from "svelte";
20
+ declare const __propDef: {
21
+ props: {
22
+ theme?: "light" | "dark";
23
+ themeOverrides?: object;
24
+ compact?: boolean;
25
+ title?: string;
26
+ titleHref?: string;
27
+ };
28
+ events: {
29
+ [evt: string]: CustomEvent<any>;
30
+ };
31
+ slots: {
32
+ before: {};
33
+ };
34
+ };
35
+ export {};
@@ -0,0 +1,29 @@
1
+ /** @typedef {typeof __propDef.props} OnsLogoProps */
2
+ /** @typedef {typeof __propDef.events} OnsLogoEvents */
3
+ /** @typedef {typeof __propDef.slots} OnsLogoSlots */
4
+ export default class OnsLogo extends SvelteComponentTyped<{
5
+ width?: string;
6
+ height?: string;
7
+ compact?: boolean;
8
+ className?: string;
9
+ }, {
10
+ [evt: string]: CustomEvent<any>;
11
+ }, {}> {
12
+ }
13
+ export type OnsLogoProps = typeof __propDef.props;
14
+ export type OnsLogoEvents = typeof __propDef.events;
15
+ export type OnsLogoSlots = typeof __propDef.slots;
16
+ import { SvelteComponentTyped } from "svelte";
17
+ declare const __propDef: {
18
+ props: {
19
+ width?: string;
20
+ height?: string;
21
+ compact?: boolean;
22
+ className?: string;
23
+ };
24
+ events: {
25
+ [evt: string]: CustomEvent<any>;
26
+ };
27
+ slots: {};
28
+ };
29
+ export {};
@@ -0,0 +1,33 @@
1
+ /** @typedef {typeof __propDef.props} ThemeProps */
2
+ /** @typedef {typeof __propDef.events} ThemeEvents */
3
+ /** @typedef {typeof __propDef.slots} ThemeSlots */
4
+ export default class Theme extends SvelteComponentTyped<{
5
+ theme?: "light" | "dark" | "lightblue";
6
+ global?: boolean;
7
+ overrides?: any;
8
+ background?: string;
9
+ }, {
10
+ [evt: string]: CustomEvent<any>;
11
+ }, {
12
+ default: {};
13
+ }> {
14
+ }
15
+ export type ThemeProps = typeof __propDef.props;
16
+ export type ThemeEvents = typeof __propDef.events;
17
+ export type ThemeSlots = typeof __propDef.slots;
18
+ import { SvelteComponentTyped } from "svelte";
19
+ declare const __propDef: {
20
+ props: {
21
+ theme?: "light" | "dark" | "lightblue";
22
+ global?: boolean;
23
+ overrides?: object;
24
+ background?: string;
25
+ };
26
+ events: {
27
+ [evt: string]: CustomEvent<any>;
28
+ };
29
+ slots: {
30
+ default: {};
31
+ };
32
+ };
33
+ export {};
@@ -0,0 +1,29 @@
1
+ declare namespace _default {
2
+ namespace light {
3
+ let text: string;
4
+ let muted: string;
5
+ let hinted: string;
6
+ let pale: string;
7
+ let background: string;
8
+ }
9
+ let dark: {
10
+ text: string;
11
+ muted: string;
12
+ hinted: string;
13
+ pale: string;
14
+ background: string;
15
+ link: string;
16
+ "link-hover": string;
17
+ };
18
+ namespace lightblue {
19
+ let text_1: string;
20
+ export { text_1 as text };
21
+ let muted_1: string;
22
+ export { muted_1 as muted };
23
+ let pale_1: string;
24
+ export { pale_1 as pale };
25
+ let background_1: string;
26
+ export { background_1 as background };
27
+ }
28
+ }
29
+ export default _default;
@@ -0,0 +1,29 @@
1
+ /** @typedef {typeof __propDef.props} TwistyProps */
2
+ /** @typedef {typeof __propDef.events} TwistyEvents */
3
+ /** @typedef {typeof __propDef.slots} TwistySlots */
4
+ export default class Twisty extends SvelteComponentTyped<{
5
+ title?: string;
6
+ open?: boolean;
7
+ }, {
8
+ [evt: string]: CustomEvent<any>;
9
+ }, {
10
+ default: {};
11
+ }> {
12
+ }
13
+ export type TwistyProps = typeof __propDef.props;
14
+ export type TwistyEvents = typeof __propDef.events;
15
+ export type TwistySlots = typeof __propDef.slots;
16
+ import { SvelteComponentTyped } from "svelte";
17
+ declare const __propDef: {
18
+ props: {
19
+ title?: string;
20
+ open?: boolean;
21
+ };
22
+ events: {
23
+ [evt: string]: CustomEvent<any>;
24
+ };
25
+ slots: {
26
+ default: {};
27
+ };
28
+ };
29
+ export {};
@@ -0,0 +1,43 @@
1
+ /** @typedef {typeof __propDef.props} ButtonProps */
2
+ /** @typedef {typeof __propDef.events} ButtonEvents */
3
+ /** @typedef {typeof __propDef.slots} ButtonSlots */
4
+ export default class Button extends SvelteComponentTyped<{
5
+ type?: "button" | "sumbit" | "reset";
6
+ variant?: "primary" | "secondary" | "ghost";
7
+ href?: string;
8
+ small?: boolean;
9
+ icon?: string;
10
+ iconPosition?: "before" | "after";
11
+ disabled?: boolean;
12
+ }, {
13
+ click: CustomEvent<any>;
14
+ } & {
15
+ [evt: string]: CustomEvent<any>;
16
+ }, {
17
+ default: {};
18
+ }> {
19
+ }
20
+ export type ButtonProps = typeof __propDef.props;
21
+ export type ButtonEvents = typeof __propDef.events;
22
+ export type ButtonSlots = typeof __propDef.slots;
23
+ import { SvelteComponentTyped } from "svelte";
24
+ declare const __propDef: {
25
+ props: {
26
+ type?: "button" | "sumbit" | "reset";
27
+ variant?: "primary" | "secondary" | "ghost";
28
+ href?: string;
29
+ small?: boolean;
30
+ icon?: string;
31
+ iconPosition?: "before" | "after";
32
+ disabled?: boolean;
33
+ };
34
+ events: {
35
+ click: CustomEvent<any>;
36
+ } & {
37
+ [evt: string]: CustomEvent<any>;
38
+ };
39
+ slots: {
40
+ default: {};
41
+ };
42
+ };
43
+ export {};
@@ -0,0 +1,27 @@
1
+ /** @typedef {typeof __propDef.props} IconProps */
2
+ /** @typedef {typeof __propDef.events} IconEvents */
3
+ /** @typedef {typeof __propDef.slots} IconSlots */
4
+ export default class Icon extends SvelteComponentTyped<{
5
+ type?: string;
6
+ marginLeft?: boolean;
7
+ marginRight?: boolean;
8
+ }, {
9
+ [evt: string]: CustomEvent<any>;
10
+ }, {}> {
11
+ }
12
+ export type IconProps = typeof __propDef.props;
13
+ export type IconEvents = typeof __propDef.events;
14
+ export type IconSlots = typeof __propDef.slots;
15
+ import { SvelteComponentTyped } from "svelte";
16
+ declare const __propDef: {
17
+ props: {
18
+ type?: string;
19
+ marginLeft?: boolean;
20
+ marginRight?: boolean;
21
+ };
22
+ events: {
23
+ [evt: string]: CustomEvent<any>;
24
+ };
25
+ slots: {};
26
+ };
27
+ export {};
@@ -0,0 +1,37 @@
1
+ /** @typedef {typeof __propDef.props} DropdownProps */
2
+ /** @typedef {typeof __propDef.events} DropdownEvents */
3
+ /** @typedef {typeof __propDef.slots} DropdownSlots */
4
+ export default class Dropdown extends SvelteComponentTyped<{
5
+ label?: string;
6
+ id?: string;
7
+ hideLabel?: boolean;
8
+ placeholder?: string;
9
+ value?: any;
10
+ options?: any[];
11
+ }, {
12
+ change: CustomEvent<any>;
13
+ } & {
14
+ [evt: string]: CustomEvent<any>;
15
+ }, {}> {
16
+ }
17
+ export type DropdownProps = typeof __propDef.props;
18
+ export type DropdownEvents = typeof __propDef.events;
19
+ export type DropdownSlots = typeof __propDef.slots;
20
+ import { SvelteComponentTyped } from "svelte";
21
+ declare const __propDef: {
22
+ props: {
23
+ label?: string;
24
+ id?: string;
25
+ hideLabel?: boolean;
26
+ placeholder?: string;
27
+ value?: object;
28
+ options?: any[];
29
+ };
30
+ events: {
31
+ change: CustomEvent<any>;
32
+ } & {
33
+ [evt: string]: CustomEvent<any>;
34
+ };
35
+ slots: {};
36
+ };
37
+ export {};
@@ -0,0 +1,29 @@
1
+ /** @typedef {typeof __propDef.props} EmProps */
2
+ /** @typedef {typeof __propDef.events} EmEvents */
3
+ /** @typedef {typeof __propDef.slots} EmSlots */
4
+ export default class Em extends SvelteComponentTyped<{
5
+ color?: string;
6
+ nowrap?: boolean;
7
+ }, {
8
+ [evt: string]: CustomEvent<any>;
9
+ }, {
10
+ default: {};
11
+ }> {
12
+ }
13
+ export type EmProps = typeof __propDef.props;
14
+ export type EmEvents = typeof __propDef.events;
15
+ export type EmSlots = typeof __propDef.slots;
16
+ import { SvelteComponentTyped } from "svelte";
17
+ declare const __propDef: {
18
+ props: {
19
+ color?: string;
20
+ nowrap?: boolean;
21
+ };
22
+ events: {
23
+ [evt: string]: CustomEvent<any>;
24
+ };
25
+ slots: {
26
+ default: {};
27
+ };
28
+ };
29
+ export {};
@@ -0,0 +1,51 @@
1
+ /** @typedef {typeof __propDef.props} InputProps */
2
+ /** @typedef {typeof __propDef.events} InputEvents */
3
+ /** @typedef {typeof __propDef.slots} InputSlots */
4
+ export default class Input extends SvelteComponentTyped<{
5
+ width?: number;
6
+ label?: string;
7
+ id?: string;
8
+ hideLabel?: boolean;
9
+ value?: string;
10
+ description?: string;
11
+ charLimit?: number;
12
+ prefix?: string;
13
+ suffix?: string;
14
+ unitLabel?: string;
15
+ pattern?: string;
16
+ numeric?: boolean;
17
+ error?: boolean;
18
+ }, {
19
+ change: CustomEvent<any>;
20
+ } & {
21
+ [evt: string]: CustomEvent<any>;
22
+ }, {}> {
23
+ }
24
+ export type InputProps = typeof __propDef.props;
25
+ export type InputEvents = typeof __propDef.events;
26
+ export type InputSlots = typeof __propDef.slots;
27
+ import { SvelteComponentTyped } from "svelte";
28
+ declare const __propDef: {
29
+ props: {
30
+ width?: number;
31
+ label?: string;
32
+ id?: string;
33
+ hideLabel?: boolean;
34
+ value?: string;
35
+ description?: string;
36
+ charLimit?: number;
37
+ prefix?: string;
38
+ suffix?: string;
39
+ unitLabel?: string;
40
+ pattern?: string;
41
+ numeric?: boolean;
42
+ error?: boolean;
43
+ };
44
+ events: {
45
+ change: CustomEvent<any>;
46
+ } & {
47
+ [evt: string]: CustomEvent<any>;
48
+ };
49
+ slots: {};
50
+ };
51
+ export {};
@@ -0,0 +1,67 @@
1
+ /** @typedef {typeof __propDef.props} SelectProps */
2
+ /** @typedef {typeof __propDef.events} SelectEvents */
3
+ /** @typedef {typeof __propDef.slots} SelectSlots */
4
+ export default class Select extends SvelteComponentTyped<{
5
+ width?: number;
6
+ label?: string;
7
+ id?: string;
8
+ hideLabel?: boolean;
9
+ placeholder?: string;
10
+ value?: any;
11
+ options?: any[];
12
+ mode?: "default" | "search";
13
+ multiple?: boolean;
14
+ maxSelected?: number;
15
+ clearable?: boolean;
16
+ idKey?: string;
17
+ labelKey?: string;
18
+ colors?: any[];
19
+ itemFilter?: Function;
20
+ loadOptions?: Function;
21
+ floatingConfig?: any;
22
+ }, {
23
+ input: CustomEvent<any>;
24
+ change: CustomEvent<any>;
25
+ focus: CustomEvent<any>;
26
+ blur: CustomEvent<any>;
27
+ clear: CustomEvent<any>;
28
+ } & {
29
+ [evt: string]: CustomEvent<any>;
30
+ }, {}> {
31
+ }
32
+ export type SelectProps = typeof __propDef.props;
33
+ export type SelectEvents = typeof __propDef.events;
34
+ export type SelectSlots = typeof __propDef.slots;
35
+ import { SvelteComponentTyped } from "svelte";
36
+ declare const __propDef: {
37
+ props: {
38
+ width?: number;
39
+ label?: string;
40
+ id?: string;
41
+ hideLabel?: boolean;
42
+ placeholder?: string;
43
+ value?: object;
44
+ options?: any[];
45
+ mode?: "default" | "search";
46
+ multiple?: boolean;
47
+ maxSelected?: number;
48
+ clearable?: boolean;
49
+ idKey?: string;
50
+ labelKey?: string;
51
+ colors?: any[];
52
+ itemFilter?: Function;
53
+ loadOptions?: Function;
54
+ floatingConfig?: object;
55
+ };
56
+ events: {
57
+ input: CustomEvent<any>;
58
+ change: CustomEvent<any>;
59
+ focus: CustomEvent<any>;
60
+ blur: CustomEvent<any>;
61
+ clear: CustomEvent<any>;
62
+ } & {
63
+ [evt: string]: CustomEvent<any>;
64
+ };
65
+ slots: {};
66
+ };
67
+ export {};
@@ -0,0 +1,37 @@
1
+ /** @typedef {typeof __propDef.props} TextareaProps */
2
+ /** @typedef {typeof __propDef.events} TextareaEvents */
3
+ /** @typedef {typeof __propDef.slots} TextareaSlots */
4
+ export default class Textarea extends SvelteComponentTyped<{
5
+ width?: number;
6
+ label?: string;
7
+ id?: string;
8
+ hideLabel?: boolean;
9
+ value?: string;
10
+ description?: string;
11
+ charLimit?: number;
12
+ rows?: number;
13
+ }, {
14
+ [evt: string]: CustomEvent<any>;
15
+ }, {}> {
16
+ }
17
+ export type TextareaProps = typeof __propDef.props;
18
+ export type TextareaEvents = typeof __propDef.events;
19
+ export type TextareaSlots = typeof __propDef.slots;
20
+ import { SvelteComponentTyped } from "svelte";
21
+ declare const __propDef: {
22
+ props: {
23
+ width?: number;
24
+ label?: string;
25
+ id?: string;
26
+ hideLabel?: boolean;
27
+ value?: string;
28
+ description?: string;
29
+ charLimit?: number;
30
+ rows?: number;
31
+ };
32
+ events: {
33
+ [evt: string]: CustomEvent<any>;
34
+ };
35
+ slots: {};
36
+ };
37
+ export {};
@@ -0,0 +1,13 @@
1
+ export { default as Accordion } from "./components/layout/Accordion/Accordion.svelte";
2
+ export { default as Container } from "./components/layout/Container/Container.svelte";
3
+ export { default as Footer } from "./components/layout/Footer/Footer.svelte";
4
+ export { default as Header } from "./components/layout/Header/Header.svelte";
5
+ export { default as Section } from "./components/layout/Section/Section.svelte";
6
+ export { default as Theme } from "./components/layout/Theme/Theme.svelte";
7
+ export { default as Twisty } from "./components/layout/Twisty/Twisty.svelte";
8
+ export { default as Button } from "./components/ui/Button/Button.svelte";
9
+ export { default as Dropdown } from "./components/ui/Dropdown/Dropdown.svelte";
10
+ export { default as Em } from "./components/ui/Em/Em.svelte";
11
+ export { default as Input } from "./components/ui/Input/Input.svelte";
12
+ export { default as Select } from "./components/ui/Select/Select.svelte";
13
+ export { default as Textarea } from "./components/ui/Textarea/Textarea.svelte";
@@ -0,0 +1,10 @@
1
+ export function slugify(str: any, suffix?: boolean): any;
2
+ export function validDate(str: any): boolean;
3
+ export function formatDate(str: any, locale?: string, opts?: {
4
+ year: string;
5
+ month: string;
6
+ day: string;
7
+ }): string;
8
+ export function commas(num: any): string;
9
+ export function ascending(a: any, b: any): number;
10
+ export function descending(a: any, b: any): number;