@iroco/ui 1.0.0-9 → 1.0.0

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 (86) hide show
  1. package/README.md +7 -5
  2. package/dist/Alert.stories.svelte +19 -20
  3. package/dist/Alert.stories.svelte.d.ts +17 -35
  4. package/dist/Alert.svelte +12 -5
  5. package/dist/Alert.svelte.d.ts +7 -18
  6. package/dist/Button.stories.svelte +16 -12
  7. package/dist/Button.stories.svelte.d.ts +17 -43
  8. package/dist/Button.svelte +41 -12
  9. package/dist/Button.svelte.d.ts +20 -38
  10. package/dist/DataTable.stories.svelte +24 -19
  11. package/dist/DataTable.stories.svelte.d.ts +17 -27
  12. package/dist/DataTable.svelte +40 -25
  13. package/dist/DataTable.svelte.d.ts +17 -24
  14. package/dist/IconBurger.stories.svelte +8 -12
  15. package/dist/IconBurger.stories.svelte.d.ts +17 -46
  16. package/dist/IconBurger.svelte +7 -2
  17. package/dist/IconBurger.svelte.d.ts +6 -16
  18. package/dist/IconClose.stories.svelte +6 -12
  19. package/dist/IconClose.stories.svelte.d.ts +17 -46
  20. package/dist/IconClose.svelte +7 -2
  21. package/dist/IconClose.svelte.d.ts +6 -16
  22. package/dist/IconFloppyDisk.stories.svelte +4 -11
  23. package/dist/IconFloppyDisk.stories.svelte.d.ts +17 -53
  24. package/dist/IconFloppyDisk.svelte +8 -3
  25. package/dist/IconFloppyDisk.svelte.d.ts +7 -17
  26. package/dist/IconInfo.stories.svelte +8 -11
  27. package/dist/IconInfo.stories.svelte.d.ts +17 -48
  28. package/dist/IconInfo.svelte +7 -2
  29. package/dist/IconInfo.svelte.d.ts +6 -16
  30. package/dist/IconIrocoLogo.stories.svelte +8 -8
  31. package/dist/IconIrocoLogo.stories.svelte.d.ts +17 -55
  32. package/dist/IconIrocoLogo.svelte +16 -6
  33. package/dist/IconIrocoLogo.svelte.d.ts +9 -19
  34. package/dist/IconMoreSign.stories.svelte +7 -14
  35. package/dist/IconMoreSign.stories.svelte.d.ts +17 -48
  36. package/dist/IconMoreSign.svelte +7 -2
  37. package/dist/IconMoreSign.svelte.d.ts +6 -16
  38. package/dist/IconTrashCan.stories.svelte +6 -12
  39. package/dist/IconTrashCan.stories.svelte.d.ts +17 -48
  40. package/dist/IconTrashCan.svelte +8 -3
  41. package/dist/IconTrashCan.svelte.d.ts +7 -17
  42. package/dist/ImageArticle.stories.svelte +11 -8
  43. package/dist/ImageArticle.stories.svelte.d.ts +17 -64
  44. package/dist/ImageArticle.svelte +37 -165
  45. package/dist/ImageArticle.svelte.d.ts +11 -21
  46. package/dist/IrocoLogo.stories.svelte +12 -7
  47. package/dist/IrocoLogo.stories.svelte.d.ts +17 -48
  48. package/dist/IrocoLogo.svelte +13 -4
  49. package/dist/IrocoLogo.svelte.d.ts +8 -18
  50. package/dist/Loader.stories.svelte +11 -8
  51. package/dist/Loader.stories.svelte.d.ts +17 -27
  52. package/dist/Loader.svelte +19 -18
  53. package/dist/Loader.svelte.d.ts +16 -12
  54. package/dist/NavBar.stories.svelte +29 -20
  55. package/dist/NavBar.stories.svelte.d.ts +17 -35
  56. package/dist/NavBar.svelte +51 -183
  57. package/dist/NavBar.svelte.d.ts +31 -20
  58. package/dist/Navigation.stories.svelte +30 -28
  59. package/dist/Navigation.stories.svelte.d.ts +17 -57
  60. package/dist/Navigation.svelte +32 -14
  61. package/dist/Navigation.svelte.d.ts +18 -20
  62. package/dist/NumberInput.stories.svelte +12 -7
  63. package/dist/NumberInput.stories.svelte.d.ts +17 -75
  64. package/dist/NumberInput.svelte +26 -8
  65. package/dist/NumberInput.svelte.d.ts +13 -24
  66. package/dist/RadioButton.stories.svelte +17 -30
  67. package/dist/RadioButton.stories.svelte.d.ts +17 -54
  68. package/dist/RadioButton.svelte +25 -11
  69. package/dist/RadioButton.svelte.d.ts +10 -20
  70. package/dist/SlottedComponentWrapper.svelte +4 -4
  71. package/dist/SlottedComponentWrapper.svelte.d.ts +4 -22
  72. package/dist/TextInput.stories.svelte +24 -47
  73. package/dist/TextInput.stories.svelte.d.ts +17 -109
  74. package/dist/TextInput.svelte +46 -25
  75. package/dist/TextInput.svelte.d.ts +19 -30
  76. package/dist/definition.d.ts +0 -5
  77. package/dist/definition.js +0 -11
  78. package/dist/index.d.ts +14 -10
  79. package/dist/index.js +14 -10
  80. package/dist/scss/button.scss +7 -3
  81. package/dist/scss/colors.scss +21 -11
  82. package/dist/scss/fields/_input.scss +1 -1
  83. package/dist/scss/fields/_style.scss +2 -2
  84. package/package.json +49 -48
  85. package/dist/RadioButtonTest.svelte +0 -10
  86. package/dist/RadioButtonTest.svelte.d.ts +0 -19
@@ -1,111 +1,19 @@
1
- export namespace meta {
2
- export let title: string;
3
- export { TextInput as component };
4
- export namespace argTypes {
5
- export namespace id {
6
- namespace control {
7
- let type: string;
8
- }
9
- }
10
- export namespace type_1 {
11
- export namespace control_1 {
12
- let type_2: string;
13
- export { type_2 as type };
14
- }
15
- export { control_1 as control };
16
- export let options: string[];
17
- }
18
- export { type_1 as type };
19
- export namespace name {
20
- export namespace control_2 {
21
- let type_3: string;
22
- export { type_3 as type };
23
- }
24
- export { control_2 as control };
25
- }
26
- export namespace label {
27
- export namespace control_3 {
28
- let type_4: string;
29
- export { type_4 as type };
30
- }
31
- export { control_3 as control };
32
- }
33
- export namespace placeholder {
34
- export namespace control_4 {
35
- let type_5: string;
36
- export { type_5 as type };
37
- }
38
- export { control_4 as control };
39
- }
40
- export namespace error {
41
- export namespace control_5 {
42
- let type_6: string;
43
- export { type_6 as type };
44
- }
45
- export { control_5 as control };
46
- }
47
- export namespace htmlError {
48
- export namespace control_6 {
49
- let type_7: string;
50
- export { type_7 as type };
51
- }
52
- export { control_6 as control };
53
- }
54
- export namespace value {
55
- export namespace control_7 {
56
- let type_8: string;
57
- export { type_8 as type };
58
- }
59
- export { control_7 as control };
60
- }
61
- export namespace readonly {
62
- export namespace control_8 {
63
- let type_9: string;
64
- export { type_9 as type };
65
- }
66
- export { control_8 as control };
67
- }
68
- export namespace border {
69
- export namespace control_9 {
70
- let type_10: string;
71
- export { type_10 as type };
72
- }
73
- export { control_9 as control };
74
- }
75
- export namespace autocomplete {
76
- export namespace control_10 {
77
- let type_11: string;
78
- export { type_11 as type };
79
- }
80
- export { control_10 as control };
81
- }
82
- }
83
- export namespace args {
84
- let type_12: string;
85
- export { type_12 as type };
86
- }
87
- }
88
- /** @typedef {typeof __propDef.props} TextInputProps */
89
- /** @typedef {typeof __propDef.events} TextInputEvents */
90
- /** @typedef {typeof __propDef.slots} TextInputSlots */
91
- export default class TextInput extends SvelteComponent<{
92
- [x: string]: never;
93
- }, {
94
- [evt: string]: CustomEvent<any>;
95
- }, {}> {
96
- }
97
- export type TextInputProps = typeof __propDef.props;
98
- export type TextInputEvents = typeof __propDef.events;
99
- export type TextInputSlots = typeof __propDef.slots;
100
1
  import { TextInput } from './index';
101
- import { SvelteComponent } from "svelte";
102
- declare const __propDef: {
103
- props: {
104
- [x: string]: never;
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: {
7
+ $$events?: Events;
8
+ $$slots?: Slots;
9
+ }): Exports & {
10
+ $set?: any;
11
+ $on?: any;
105
12
  };
106
- events: {
107
- [evt: string]: CustomEvent<any>;
108
- };
109
- slots: {};
110
- };
111
- export {};
13
+ z_$$bindings?: Bindings;
14
+ }
15
+ declare const TextInput: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
16
+ [evt: string]: CustomEvent<any>;
17
+ }, {}, {}, string>;
18
+ type TextInput = InstanceType<typeof TextInput>;
19
+ export default TextInput;
@@ -1,20 +1,42 @@
1
- <script>import {} from "./definition";
2
- export let id;
3
- export let type = TextInputType.text;
4
- export let name;
5
- export let label = void 0;
6
- export let placeholder = void 0;
7
- export let error = void 0;
8
- export let htmlError = false;
9
- export let value = void 0;
10
- export let onFocus = void 0;
11
- export let onBlur = void 0;
12
- export let readonly = false;
13
- export let border = false;
14
- export let autocomplete = "on";
15
- function typeAction(node) {
16
- node.type = type;
17
- }
1
+ <script lang="ts">
2
+ /* eslint-disable svelte/no-at-html-tags */
3
+ import type { FormEventHandler, FullAutoFill, HTMLInputAttributes } from 'svelte/elements';
4
+
5
+ interface Props extends HTMLInputAttributes {
6
+ id?: string | null;
7
+ type?: 'email' | 'password' | 'search' | 'tel' | 'text' | 'url' | null | undefined;
8
+ name?: string | null;
9
+ label?: string | null;
10
+ placeholder?: string | null;
11
+ error?: string | null;
12
+ htmlError?: boolean;
13
+ value?: string | null;
14
+ onFocus?: ((e: FocusEvent) => void) | null;
15
+ onBlur?: ((e: Event) => void) | null;
16
+ readonly?: boolean;
17
+ border?: boolean;
18
+ autocomplete?: FullAutoFill | null | undefined;
19
+ oninput?: FormEventHandler<HTMLInputElement> | null | undefined;
20
+ }
21
+
22
+ let {
23
+ id = null,
24
+ type = 'text',
25
+ name = null,
26
+ label = null,
27
+ placeholder = null,
28
+ error = null,
29
+ htmlError = false,
30
+ value = $bindable(null),
31
+ onFocus = null,
32
+ onBlur = null,
33
+ readonly = false,
34
+ border = false,
35
+ autocomplete = 'on',
36
+ oninput
37
+ }: Props = $props();
38
+
39
+
18
40
  </script>
19
41
 
20
42
  <div class="iroco-ui-input">
@@ -22,18 +44,17 @@ function typeAction(node) {
22
44
  <label class="iroco-ui-label" for={id}>{label}</label>
23
45
  {/if}
24
46
  <input
25
- on:input
47
+ {oninput}
26
48
  bind:value
27
- on:focus={onFocus}
28
- on:blur={onBlur}
49
+ onfocus={onFocus}
50
+ onblur={onBlur}
29
51
  {id}
30
- type="text"
52
+ {type}
31
53
  {name}
32
54
  {placeholder}
33
55
  class:border
34
56
  class:error={error !== null}
35
- class:readonlyInput={readonly == true}
36
- use:typeAction
57
+ class:readonlyInput={readonly === true}
37
58
  {readonly}
38
59
  {autocomplete}
39
60
  />
@@ -67,8 +88,8 @@ textarea:focus {
67
88
  }
68
89
  .iroco-ui-input > input {
69
90
  color: var(--color-text);
70
- background: var(--color-body);
71
- border: 1px solid var(--color-border);
91
+ background: var(--color-dark-blue);
92
+ border: 1px solid var(--color-dark-blue);
72
93
  padding: 1em 1.5em;
73
94
  text-overflow: ellipsis;
74
95
  white-space: nowrap;
@@ -1,31 +1,20 @@
1
- import { SvelteComponent } from "svelte";
2
- import { type TextInputType } from './definition';
3
- declare const __propDef: {
4
- props: {
5
- id: string;
6
- type?: TextInputType | undefined;
7
- name: string;
8
- label?: string | undefined;
9
- placeholder?: string | undefined;
10
- error?: string | undefined;
11
- htmlError?: boolean | undefined;
12
- value?: string | undefined;
13
- onFocus?: ((e: FocusEvent) => void) | undefined;
14
- onBlur?: ((e: Event) => void) | undefined;
15
- readonly?: boolean | undefined;
16
- border?: boolean | undefined;
17
- autocomplete?: string | undefined;
18
- };
19
- events: {
20
- input: Event;
21
- } & {
22
- [evt: string]: CustomEvent<any>;
23
- };
24
- slots: {};
25
- };
26
- export type TextInputProps = typeof __propDef.props;
27
- export type TextInputEvents = typeof __propDef.events;
28
- export type TextInputSlots = typeof __propDef.slots;
29
- export default class TextInput extends SvelteComponent<TextInputProps, TextInputEvents, TextInputSlots> {
1
+ import type { FormEventHandler, FullAutoFill, HTMLInputAttributes } from 'svelte/elements';
2
+ interface Props extends HTMLInputAttributes {
3
+ id?: string | null;
4
+ type?: 'email' | 'password' | 'search' | 'tel' | 'text' | 'url' | null | undefined;
5
+ name?: string | null;
6
+ label?: string | null;
7
+ placeholder?: string | null;
8
+ error?: string | null;
9
+ htmlError?: boolean;
10
+ value?: string | null;
11
+ onFocus?: ((e: FocusEvent) => void) | null;
12
+ onBlur?: ((e: Event) => void) | null;
13
+ readonly?: boolean;
14
+ border?: boolean;
15
+ autocomplete?: FullAutoFill | null | undefined;
16
+ oninput?: FormEventHandler<HTMLInputElement> | null | undefined;
30
17
  }
31
- export {};
18
+ declare const TextInput: import("svelte").Component<Props, {}, "value">;
19
+ type TextInput = ReturnType<typeof TextInput>;
20
+ export default TextInput;
@@ -14,11 +14,6 @@ export declare enum NavigationItemType {
14
14
  ANCHOR = 1,
15
15
  FORM = 2
16
16
  }
17
- export declare enum TextInputType {
18
- text = "text",
19
- email = "email",
20
- password = "password"
21
- }
22
17
  export declare enum Color {
23
18
  blue = "#00B9FF",
24
19
  darkBlue = "#211D28",
@@ -1,15 +1,10 @@
1
1
  export class ButtonModel {
2
- href;
3
- label;
4
2
  constructor(href, label) {
5
3
  this.href = href;
6
4
  this.label = label;
7
5
  }
8
6
  }
9
7
  export class NavigationItem {
10
- hrefOrCallback;
11
- name;
12
- type;
13
8
  constructor(name, hrefOrCallback, type = NavigationItemType.ANCHOR) {
14
9
  this.hrefOrCallback = hrefOrCallback;
15
10
  this.name = name;
@@ -22,12 +17,6 @@ export var NavigationItemType;
22
17
  NavigationItemType[NavigationItemType["ANCHOR"] = 1] = "ANCHOR";
23
18
  NavigationItemType[NavigationItemType["FORM"] = 2] = "FORM";
24
19
  })(NavigationItemType || (NavigationItemType = {}));
25
- export var TextInputType;
26
- (function (TextInputType) {
27
- TextInputType["text"] = "text";
28
- TextInputType["email"] = "email";
29
- TextInputType["password"] = "password";
30
- })(TextInputType || (TextInputType = {}));
31
20
  export var Color;
32
21
  (function (Color) {
33
22
  Color["blue"] = "#00B9FF";
package/dist/index.d.ts CHANGED
@@ -1,17 +1,21 @@
1
1
  import './scss/style.scss';
2
+ export { default as Alert } from './Alert.svelte';
2
3
  export { default as Button } from './Button.svelte';
3
- export { default as TextInput } from './TextInput.svelte';
4
- export { default as RadioButton } from './RadioButton.svelte';
5
- export { default as NumberInput } from './NumberInput.svelte';
6
- export { default as Loader } from './Loader.svelte';
7
- export { default as IconInfo } from './IconInfo.svelte';
8
- export { default as NavBar } from './NavBar.svelte';
9
- export { default as Navigation } from './Navigation.svelte';
10
4
  export { default as DataTable } from './DataTable.svelte';
11
- export { default as IconMore } from './IconMoreSign.svelte';
5
+ export { default as IconBurger } from './IconBurger.svelte';
6
+ export { default as IconClose } from './IconClose.svelte';
12
7
  export { default as IconFloppyDisk } from './IconFloppyDisk.svelte';
13
- export { default as IconTrashCan } from './IconTrashCan.svelte';
14
- export { default as Alert } from './Alert.svelte';
8
+ export { default as IconInfo } from './IconInfo.svelte';
15
9
  export { default as IconIrocoLogo } from './IconIrocoLogo.svelte';
10
+ export { default as IconMoreSign } from './IconMoreSign.svelte';
11
+ export { default as IconTrashCan } from './IconTrashCan.svelte';
12
+ export { default as ImageArticle } from './ImageArticle.svelte';
16
13
  export { default as IrocoLogo } from './IrocoLogo.svelte';
14
+ export { default as Loader } from './Loader.svelte';
15
+ export { default as NavBar } from './NavBar.svelte';
16
+ export { default as Navigation } from './Navigation.svelte';
17
+ export { default as NumberInput } from './NumberInput.svelte';
18
+ export { default as RadioButton } from './RadioButton.svelte';
19
+ export { default as SlottedComponentWrapper } from './SlottedComponentWrapper.svelte';
20
+ export { default as TextInput } from './TextInput.svelte';
17
21
  export * from './definition';
package/dist/index.js CHANGED
@@ -1,17 +1,21 @@
1
1
  import './scss/style.scss';
2
+ export { default as Alert } from './Alert.svelte';
2
3
  export { default as Button } from './Button.svelte';
3
- export { default as TextInput } from './TextInput.svelte';
4
- export { default as RadioButton } from './RadioButton.svelte';
5
- export { default as NumberInput } from './NumberInput.svelte';
6
- export { default as Loader } from './Loader.svelte';
7
- export { default as IconInfo } from './IconInfo.svelte';
8
- export { default as NavBar } from './NavBar.svelte';
9
- export { default as Navigation } from './Navigation.svelte';
10
4
  export { default as DataTable } from './DataTable.svelte';
11
- export { default as IconMore } from './IconMoreSign.svelte';
5
+ export { default as IconBurger } from './IconBurger.svelte';
6
+ export { default as IconClose } from './IconClose.svelte';
12
7
  export { default as IconFloppyDisk } from './IconFloppyDisk.svelte';
13
- export { default as IconTrashCan } from './IconTrashCan.svelte';
14
- export { default as Alert } from './Alert.svelte';
8
+ export { default as IconInfo } from './IconInfo.svelte';
15
9
  export { default as IconIrocoLogo } from './IconIrocoLogo.svelte';
10
+ export { default as IconMoreSign } from './IconMoreSign.svelte';
11
+ export { default as IconTrashCan } from './IconTrashCan.svelte';
12
+ export { default as ImageArticle } from './ImageArticle.svelte';
16
13
  export { default as IrocoLogo } from './IrocoLogo.svelte';
14
+ export { default as Loader } from './Loader.svelte';
15
+ export { default as NavBar } from './NavBar.svelte';
16
+ export { default as Navigation } from './Navigation.svelte';
17
+ export { default as NumberInput } from './NumberInput.svelte';
18
+ export { default as RadioButton } from './RadioButton.svelte';
19
+ export { default as SlottedComponentWrapper } from './SlottedComponentWrapper.svelte';
20
+ export { default as TextInput } from './TextInput.svelte';
17
21
  export * from './definition';
@@ -18,9 +18,9 @@
18
18
  border-radius: constants.$border-radius;
19
19
 
20
20
  &--basic {
21
- color: var(--btn-basic-label);
22
- background: var(--btn-basic-bg);
23
- border: 1px solid var(--btn-basic-border);
21
+ color: var(--btn-secondary-label);
22
+ background: var(--btn-secondary-bg);
23
+ border: 1px solid var(--btn-secondary-border);
24
24
  }
25
25
 
26
26
  &--dark {
@@ -70,6 +70,10 @@
70
70
  box-shadow: none;
71
71
  }
72
72
  }
73
+
74
+ &--full-width {
75
+ width: 100%;
76
+ }
73
77
  }
74
78
 
75
79
  .iroco-ui-link {
@@ -9,7 +9,13 @@
9
9
  --color-black-op-40: rgba(0, 0, 0, 0.4);
10
10
  --color-black-op-60: rgba(0, 0, 0, 0.6);
11
11
 
12
+ --color-beige: #f2ebe3;
13
+ --color-dark-grey: #33323a;
14
+ --color-medium-grey: #464452;
15
+ --color-light-grey: #f5f5f5;
16
+ --color-dark-blue: #211d28;
12
17
  --color-dark-blue-op-30: #211d284d;
18
+ --color-night-blue: #18151e;
13
19
 
14
20
  /* semantic colors */
15
21
  --color-primary-light: #82eec7;
@@ -40,24 +46,28 @@
40
46
  --color-border: #464452;
41
47
 
42
48
  /* body */
43
- --color-body: #211d28;
49
+ --color-body: var(--color-dark-blue);
44
50
 
45
51
  /* forms */
46
- --form-element-border: var(--color-border);
47
- --form-element-bg: #f2ebe3;
52
+ --form-element-border: var(--color-beige);
53
+ --form-element-bg: var(--color-beige);
48
54
  --form-text-placeholder: #a9a29e;
49
55
 
50
56
  /* buttons */
51
- --btn-primary-bg: #f2ebe3;
52
- --btn-primary-border: #18151e;
53
- --btn-primary-label: #f2ebe3;
57
+ --btn-primary-bg: var(--color-beige);
58
+ --btn-primary-border: var(--color-night-blue);
59
+ --btn-primary-label: var(--color-beige);
54
60
 
55
- --dark-btn-primary-label: #f2ebe3;
56
- --dark-btn-primary-bg: #18151e;
61
+ --dark-btn-primary-label: var(--color-beige);
62
+ --dark-btn-primary-bg: var(--color-night-blue);
57
63
 
58
- --btn-basic-label: #18151e;
59
- --btn-basic-bg: #f2ebe3;
60
- --btn-basic-border: #18151e;
64
+ --btn-secondary-bg: var(--color-secondary);
65
+ --btn-secondary-border: var(--color-night-blue);
66
+ --btn-secondary-label: var(--color-night-blue);
67
+
68
+ --btn-basic-label: var(--color-night-blue);
69
+ --btn-basic-bg: var(--color-beige);
70
+ --btn-basic-border: var(--color-night-blue);
61
71
 
62
72
  --btn-disabled-label: var(--color-black-op-60);
63
73
  --btn-disabled-bg: #a9a29e;
@@ -82,7 +82,7 @@
82
82
  -ms-user-select: none;
83
83
  user-select: none;
84
84
  flex-shrink: 0;
85
- border-top: solid #f2ebe3 /*colors.$beige*/ 1px;
85
+ border-top: solid var(--color-beige) 1px;
86
86
  background: white;
87
87
  transition: background linear 100ms;
88
88
 
@@ -1,2 +1,2 @@
1
- @import 'input';
2
- @import 'checkbox';
1
+ @use 'input';
2
+ @use 'checkbox';
package/package.json CHANGED
@@ -1,15 +1,17 @@
1
1
  {
2
2
  "name": "@iroco/ui",
3
- "version": "1.0.0-9",
3
+ "version": "1.0.0",
4
4
  "description": "Iroco design system based on Svelte",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
7
+ "watch": "svelte-package -w",
8
+ "test": "vitest run --passWithNoTests",
9
+ "test:watch": "vitest watch --passWithNoTests",
10
+ "svelte:check": "svelte-check --tsconfig ./tsconfig.json",
7
11
  "dev": "storybook dev -p 5175",
8
- "build": "svelte-kit sync && svelte-package",
9
- "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
10
- "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
11
- "test:watch": "vitest",
12
- "test": "vitest --run",
12
+ "build": "svelte-package",
13
+ "check": "svelte-check --tsconfig ./tsconfig.json",
14
+ "check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
13
15
  "lint": "prettier --plugin-search-dir . --check . && eslint .",
14
16
  "format": "prettier --plugin-search-dir . --write .",
15
17
  "clean": "rm -rf dist && npm cache clean --force",
@@ -17,51 +19,49 @@
17
19
  "build-storybook": "storybook build"
18
20
  },
19
21
  "devDependencies": {
20
- "@ljcl/storybook-addon-cssprops": "^3.2.0",
21
- "@storybook/addon-essentials": "^7.6.13",
22
- "@storybook/addon-interactions": "^7.6.13",
23
- "@storybook/addon-links": "^7.6.13",
24
- "@storybook/addon-svelte-csf": "^4.1.1",
25
- "@storybook/blocks": "^7.6.13",
26
- "@storybook/svelte": "^7.6.13",
27
- "@storybook/svelte-vite": "^8.0.0-beta.1",
28
- "@storybook/sveltekit": "^7.6.13",
29
- "@storybook/test": "^7.6.13",
30
- "@sveltejs/adapter-auto": "^3.1.1",
31
- "@sveltejs/kit": "^2.5.0",
32
- "@sveltejs/package": "^2.2.6",
33
- "@sveltejs/vite-plugin-svelte": "^3.0.2",
34
- "@sveltejs/vite-plugin-svelte-inspector": "^2.0.0",
35
- "@testing-library/jest-dom": "^6.4.2",
36
- "@testing-library/svelte": "^4.1.0",
22
+ "@ljcl/storybook-addon-cssprops": "^4.0.0",
23
+ "@storybook/addon-essentials": "^8.4.7",
24
+ "@storybook/addon-interactions": "^8.4.7",
25
+ "@storybook/addon-links": "^8.4.7",
26
+ "@storybook/addon-mdx-gfm": "^8.4.7",
27
+ "@storybook/addon-svelte-csf": "^5.0.0-next.21",
28
+ "@storybook/blocks": "^8.4.7",
29
+ "@storybook/manager-api": "^8.5.0",
30
+ "@storybook/svelte": "^8.4.7",
31
+ "@storybook/svelte-vite": "^8.4.7",
32
+ "@storybook/test": "^8.4.7",
33
+ "@storybook/theming": "^8.5.0",
34
+ "@sveltejs/adapter-auto": "^3.3.1",
35
+ "@sveltejs/package": "^2.3.7",
36
+ "@sveltejs/vite-plugin-svelte": "^5.0.3",
37
+ "@sveltejs/vite-plugin-svelte-inspector": "^4.0.1",
38
+ "@testing-library/jest-dom": "^6.6.3",
39
+ "@testing-library/svelte": "^5.2.6",
37
40
  "@testing-library/user-event": "^14.5.2",
38
- "@typescript-eslint/eslint-plugin": "^6.21.0",
39
- "@typescript-eslint/parser": "^6.21.0",
40
- "@vitest/ui": "^1.2.2",
41
- "eslint": "^8.56.0",
41
+ "@tsconfig/svelte": "^5.0.4",
42
+ "@typescript-eslint/eslint-plugin": "^8.19.1",
43
+ "@typescript-eslint/parser": "^8.19.1",
44
+ "eslint": "^9.18.0",
42
45
  "eslint-config-prettier": "^9.1.0",
43
- "eslint-plugin-storybook": "^0.6.15",
44
- "eslint-plugin-svelte": "^2.35.1",
45
- "jsdom": "^24.0.0",
46
- "lint-staged": "^15.2.2",
47
- "prettier": "^3.2.5",
48
- "prettier-plugin-svelte": "^3.1.2",
49
- "react": "^18.2.0",
50
- "react-dom": "^18.2.0",
51
- "release-it": "^17.0.3",
52
- "sass": "^1.70.0",
53
- "storybook": "^7.6.13",
54
- "svelte": "^4.2.10",
55
- "svelte-check": "^3.6.4",
56
- "svelte-awesome": "^3.3.1",
57
- "tslib": "^2.6.2",
58
- "typescript": "^5.0.0",
59
- "vite": "^5.1.1",
60
- "vitest": "^1.2.2"
46
+ "eslint-plugin-storybook": "^0.11.2",
47
+ "eslint-plugin-svelte": "^2.46.1",
48
+ "happy-dom": "^16.5.3",
49
+ "lint-staged": "^15.3.0",
50
+ "prettier": "^3.4.2",
51
+ "prettier-plugin-svelte": "^3.3.2",
52
+ "release-it": "^18.1.1",
53
+ "sass": "^1.83.1",
54
+ "storybook": "^8.4.7",
55
+ "svelte": "^5.17.3",
56
+ "svelte-awesome": "^3.3.5",
57
+ "svelte-check": "^4.1.3",
58
+ "tslib": "^2.8.1",
59
+ "typescript": "^5.7.3",
60
+ "vite": "^6.0.7",
61
+ "vitest": "^3.0.0-beta.4"
61
62
  },
62
63
  "peerDependencies": {
63
- "@sveltejs/kit": "^2.5.0",
64
- "svelte": "^4.2.10"
64
+ "svelte": "5.x"
65
65
  },
66
66
  "lint-staged": {
67
67
  "*.{js,ts,svelte}": [
@@ -275,5 +275,6 @@
275
275
  "./dist/index.d.ts"
276
276
  ]
277
277
  }
278
- }
278
+ },
279
+ "packageManager": "yarn@1.22.21+sha1.1959a18351b811cdeedbd484a8f86c3cc3bbaf72"
279
280
  }
@@ -1,10 +0,0 @@
1
- <svelte:options accessors={true} />
2
-
3
- <script>import RadioButton from "./RadioButton.svelte";
4
- export let group = "";
5
- </script>
6
-
7
- <form>
8
- <RadioButton bind:group value="first" name="name" checked>First</RadioButton>
9
- <RadioButton bind:group value="second" name="name">Second</RadioButton>
10
- </form>
@@ -1,19 +0,0 @@
1
- import { SvelteComponent } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- group?: string | undefined;
5
- };
6
- events: {
7
- [evt: string]: CustomEvent<any>;
8
- };
9
- slots: {};
10
- };
11
- export type RadioButtonTestProps = typeof __propDef.props;
12
- export type RadioButtonTestEvents = typeof __propDef.events;
13
- export type RadioButtonTestSlots = typeof __propDef.slots;
14
- export default class RadioButtonTest extends SvelteComponent<RadioButtonTestProps, RadioButtonTestEvents, RadioButtonTestSlots> {
15
- get group(): string | undefined;
16
- /**accessor*/
17
- set group(_: string | undefined);
18
- }
19
- export {};