@iroco/ui 0.21.0 → 0.50.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.
- package/Alert.svelte +72 -0
- package/Alert.svelte.d.ts +18 -0
- package/{lib/iroco.css → Button.svelte} +69 -88
- package/Button.svelte.d.ts +43 -0
- package/DataTable.svelte +94 -0
- package/DataTable.svelte.d.ts +27 -0
- package/{src/IconBurger.svelte → IconBurger.svelte} +2 -3
- package/IconBurger.svelte.d.ts +17 -0
- package/{src/IconClose.svelte → IconClose.svelte} +2 -3
- package/IconClose.svelte.d.ts +17 -0
- package/{src/IconFloppyDisk.svelte → IconFloppyDisk.svelte} +3 -4
- package/IconFloppyDisk.svelte.d.ts +18 -0
- package/{src/IconInfo.svelte → IconInfo.svelte} +2 -3
- package/IconInfo.svelte.d.ts +17 -0
- package/{src/IconIrocoLogo.svelte → IconIrocoLogo.svelte} +2 -3
- package/IconIrocoLogo.svelte.d.ts +17 -0
- package/IconMastodon.svelte +19 -0
- package/IconMastodon.svelte.d.ts +18 -0
- package/{src/IconMoreSign.svelte → IconMoreSign.svelte} +2 -3
- package/IconMoreSign.svelte.d.ts +17 -0
- package/{src/IconTrashCan.svelte → IconTrashCan.svelte} +4 -11
- package/IconTrashCan.svelte.d.ts +18 -0
- package/IrocoLogo.svelte +49 -0
- package/IrocoLogo.svelte.d.ts +19 -0
- package/{src/Loader.svelte → Loader.svelte} +1 -2
- package/Loader.svelte.d.ts +14 -0
- package/NavBar.svelte +669 -0
- package/NavBar.svelte.d.ts +21 -0
- package/Navigation.svelte +325 -0
- package/Navigation.svelte.d.ts +19 -0
- package/NumberInput.svelte +117 -0
- package/NumberInput.svelte.d.ts +25 -0
- package/NumberInputSized.svelte +4 -0
- package/NumberInputSized.svelte.d.ts +14 -0
- package/README.md +21 -31
- package/RadioButton.svelte +93 -0
- package/RadioButton.svelte.d.ts +23 -0
- package/RadioButtonTest.svelte +10 -0
- package/RadioButtonTest.svelte.d.ts +19 -0
- package/SlottedComponentWrapper.svelte +7 -0
- package/SlottedComponentWrapper.svelte.d.ts +23 -0
- package/TextInput.svelte +148 -0
- package/TextInput.svelte.d.ts +30 -0
- package/{src/TopBar.svelte → TopBar.svelte} +0 -0
- package/TopBar.svelte.d.ts +23 -0
- package/definition.d.ts +28 -0
- package/definition.js +35 -0
- package/index.d.ts +18 -0
- package/index.js +18 -0
- package/package.json +71 -113
- package/scss/button.scss +57 -55
- package/scss/check.scss +45 -46
- package/scss/colors.scss +39 -17
- package/scss/constants.scss +1 -1
- package/scss/containers.scss +126 -130
- package/scss/fields/_checkbox.scss +37 -42
- package/scss/fields/_input.scss +160 -169
- package/scss/fonts.scss +7 -7
- package/scss/forms.scss +53 -55
- package/scss/iroco.scss +22 -22
- package/scss/layouts.scss +21 -7
- package/scss/loader.scss +18 -16
- package/scss/style.scss +5 -5
- package/lib/button.scss +0 -61
- package/lib/check.scss +0 -48
- package/lib/colors.scss +0 -23
- package/lib/constants.scss +0 -1
- package/lib/containers.scss +0 -226
- package/lib/fields/_checkbox.scss +0 -44
- package/lib/fields/_input.scss +0 -171
- package/lib/fields/_style.scss +0 -2
- package/lib/fonts.scss +0 -11
- package/lib/forms.scss +0 -67
- package/lib/index.js +0 -5816
- package/lib/index.min.js +0 -330
- package/lib/index.mjs +0 -5789
- package/lib/iroco.css.map +0 -1
- package/lib/iroco.scss +0 -37
- package/lib/layouts.scss +0 -7
- package/lib/loader.scss +0 -20
- package/lib/style.scss +0 -5
- package/src/Alert.svelte +0 -34
- package/src/Button.svelte +0 -24
- package/src/DataTable.svelte +0 -72
- package/src/Icon.svelte +0 -29
- package/src/IconMastodon.svelte +0 -13
- package/src/IrocoLogo.svelte +0 -45
- package/src/NavBar.svelte +0 -154
- package/src/Navigation.svelte +0 -107
- package/src/NumberInput.svelte +0 -23
- package/src/RadioButton.svelte +0 -56
- package/src/TextInput.svelte +0 -121
- package/src/definition.ts +0 -30
- package/src/index.ts +0 -21
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponentTyped } 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 SvelteComponentTyped<RadioButtonTestProps, RadioButtonTestEvents, RadioButtonTestSlots> {
|
|
15
|
+
get group(): string | undefined;
|
|
16
|
+
/**accessor*/
|
|
17
|
+
set group(_: string | undefined);
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} SlottedComponentWrapperProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} SlottedComponentWrapperEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} SlottedComponentWrapperSlots */
|
|
4
|
+
export default class SlottedComponentWrapper extends SvelteComponentTyped<{
|
|
5
|
+
Component: any;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {}> {
|
|
9
|
+
}
|
|
10
|
+
export type SlottedComponentWrapperProps = typeof __propDef.props;
|
|
11
|
+
export type SlottedComponentWrapperEvents = typeof __propDef.events;
|
|
12
|
+
export type SlottedComponentWrapperSlots = typeof __propDef.slots;
|
|
13
|
+
import { SvelteComponentTyped } from "svelte";
|
|
14
|
+
declare const __propDef: {
|
|
15
|
+
props: {
|
|
16
|
+
Component: any;
|
|
17
|
+
};
|
|
18
|
+
events: {
|
|
19
|
+
[evt: string]: CustomEvent<any>;
|
|
20
|
+
};
|
|
21
|
+
slots: {};
|
|
22
|
+
};
|
|
23
|
+
export {};
|
package/TextInput.svelte
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
<script>import { TextInputType } from "./definition";
|
|
2
|
+
export let id;
|
|
3
|
+
export let type;
|
|
4
|
+
export let name;
|
|
5
|
+
export let label = null;
|
|
6
|
+
export let placeholder;
|
|
7
|
+
export let error = null;
|
|
8
|
+
export let htmlError = false;
|
|
9
|
+
export let value = null;
|
|
10
|
+
export let onFocus;
|
|
11
|
+
export let onBlur;
|
|
12
|
+
export let readonly = false;
|
|
13
|
+
export let border = false;
|
|
14
|
+
function typeAction(node) {
|
|
15
|
+
node.type = type;
|
|
16
|
+
}
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<div class="iroco-ui-input">
|
|
20
|
+
{#if label}
|
|
21
|
+
<label class="iroco-ui-label" for={id}>{label}</label>
|
|
22
|
+
{/if}
|
|
23
|
+
<input
|
|
24
|
+
on:input
|
|
25
|
+
bind:value
|
|
26
|
+
on:focus={onFocus}
|
|
27
|
+
on:blur={onBlur}
|
|
28
|
+
{id}
|
|
29
|
+
type="text"
|
|
30
|
+
{name}
|
|
31
|
+
{placeholder}
|
|
32
|
+
class:border
|
|
33
|
+
class:error={error !== null}
|
|
34
|
+
class:readonlyInput={readonly == true}
|
|
35
|
+
use:typeAction
|
|
36
|
+
{readonly}
|
|
37
|
+
/>
|
|
38
|
+
{#if error != null}
|
|
39
|
+
<p data-testid="error" class="error">
|
|
40
|
+
{#if htmlError}
|
|
41
|
+
{@html error !== null ? error : ''}
|
|
42
|
+
{:else}
|
|
43
|
+
{error !== null ? error : ''}
|
|
44
|
+
{/if}
|
|
45
|
+
</p>
|
|
46
|
+
{/if}
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
<style>.font-color-blue {
|
|
50
|
+
color: #00b9ff;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.font-color-darkBlue {
|
|
54
|
+
color: #211d28;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.font-color-nightBlue {
|
|
58
|
+
color: #18151e;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.font-color-green {
|
|
62
|
+
color: #00d692;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.font-color-red {
|
|
66
|
+
color: #ff504d;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.font-color-yellow {
|
|
70
|
+
color: #ffe032;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.font-color-beige {
|
|
74
|
+
color: #f2ebe3;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.font-color-darkBeige {
|
|
78
|
+
color: #a9a29e;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.font-color-mediumGrey {
|
|
82
|
+
color: #464452;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.font-color-darkGrey {
|
|
86
|
+
color: #33323a;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.font-color-lightGrey {
|
|
90
|
+
color: #f5f5f5;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
input,
|
|
94
|
+
textarea {
|
|
95
|
+
outline: none;
|
|
96
|
+
text-decoration: none;
|
|
97
|
+
font-size: 14px;
|
|
98
|
+
}
|
|
99
|
+
input:focus,
|
|
100
|
+
textarea:focus {
|
|
101
|
+
outline: none;
|
|
102
|
+
text-decoration: none;
|
|
103
|
+
font-size: 14px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.iroco-ui-input {
|
|
107
|
+
display: flex;
|
|
108
|
+
flex-direction: column;
|
|
109
|
+
}
|
|
110
|
+
.iroco-ui-input > input {
|
|
111
|
+
color: #f2ebe3;
|
|
112
|
+
background: #211d28;
|
|
113
|
+
border: 1px solid #211d28;
|
|
114
|
+
padding: 1em 1.5em;
|
|
115
|
+
text-overflow: ellipsis;
|
|
116
|
+
white-space: nowrap;
|
|
117
|
+
overflow: hidden;
|
|
118
|
+
border-radius: 0.3em;
|
|
119
|
+
}
|
|
120
|
+
.iroco-ui-input > input.border {
|
|
121
|
+
border: 1px solid #f2ebe3;
|
|
122
|
+
}
|
|
123
|
+
.iroco-ui-input > input::placeholder {
|
|
124
|
+
color: rgba(242, 235, 227, 0.5);
|
|
125
|
+
}
|
|
126
|
+
.iroco-ui-input > input.error {
|
|
127
|
+
border-color: #ff504d;
|
|
128
|
+
}
|
|
129
|
+
.iroco-ui-input > input.readonlyInput {
|
|
130
|
+
cursor: not-allowed;
|
|
131
|
+
}
|
|
132
|
+
.iroco-ui-input .error {
|
|
133
|
+
color: #ff504d;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.iroco-ui-label {
|
|
137
|
+
color: rgba(242, 235, 227, 0.6);
|
|
138
|
+
font-weight: bold;
|
|
139
|
+
padding-bottom: 10px;
|
|
140
|
+
display: inline-block;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.field {
|
|
144
|
+
margin-top: 20px;
|
|
145
|
+
}
|
|
146
|
+
.field:first-child {
|
|
147
|
+
margin: 0;
|
|
148
|
+
}</style>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import { TextInputType } from './definition';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
id: string;
|
|
6
|
+
type: TextInputType;
|
|
7
|
+
name: string;
|
|
8
|
+
label?: string | null | undefined;
|
|
9
|
+
placeholder: string | undefined;
|
|
10
|
+
error?: string | null | undefined;
|
|
11
|
+
htmlError?: boolean | undefined;
|
|
12
|
+
value?: string | null | undefined;
|
|
13
|
+
onFocus: (e: FocusEvent) => void;
|
|
14
|
+
onBlur: (e: Event) => void;
|
|
15
|
+
readonly?: boolean | undefined;
|
|
16
|
+
border?: boolean | undefined;
|
|
17
|
+
};
|
|
18
|
+
events: {
|
|
19
|
+
input: Event;
|
|
20
|
+
} & {
|
|
21
|
+
[evt: string]: CustomEvent<any>;
|
|
22
|
+
};
|
|
23
|
+
slots: {};
|
|
24
|
+
};
|
|
25
|
+
export type TextInputProps = typeof __propDef.props;
|
|
26
|
+
export type TextInputEvents = typeof __propDef.events;
|
|
27
|
+
export type TextInputSlots = typeof __propDef.slots;
|
|
28
|
+
export default class TextInput extends SvelteComponentTyped<TextInputProps, TextInputEvents, TextInputSlots> {
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} TopBarProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} TopBarEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} TopBarSlots */
|
|
4
|
+
export default class TopBar extends SvelteComponentTyped<{
|
|
5
|
+
[x: string]: never;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {}> {
|
|
9
|
+
}
|
|
10
|
+
export type TopBarProps = typeof __propDef.props;
|
|
11
|
+
export type TopBarEvents = typeof __propDef.events;
|
|
12
|
+
export type TopBarSlots = typeof __propDef.slots;
|
|
13
|
+
import { SvelteComponentTyped } from "svelte";
|
|
14
|
+
declare const __propDef: {
|
|
15
|
+
props: {
|
|
16
|
+
[x: string]: never;
|
|
17
|
+
};
|
|
18
|
+
events: {
|
|
19
|
+
[evt: string]: CustomEvent<any>;
|
|
20
|
+
};
|
|
21
|
+
slots: {};
|
|
22
|
+
};
|
|
23
|
+
export {};
|
package/definition.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare class NavigationItem {
|
|
2
|
+
hrefOrCallback: string | (() => void);
|
|
3
|
+
name: string;
|
|
4
|
+
button: boolean;
|
|
5
|
+
constructor(name: string, hrefOrCallback: string | (() => void), button?: boolean);
|
|
6
|
+
}
|
|
7
|
+
export declare enum TextInputType {
|
|
8
|
+
text = "text",
|
|
9
|
+
email = "email",
|
|
10
|
+
password = "password"
|
|
11
|
+
}
|
|
12
|
+
export declare enum Color {
|
|
13
|
+
blue = "#00B9FF",
|
|
14
|
+
darkBlue = "#211D28",
|
|
15
|
+
nightBlue = "#18151E",
|
|
16
|
+
green = "#00D692",
|
|
17
|
+
red = "#ff504d",
|
|
18
|
+
yellow = "#FFE032",
|
|
19
|
+
beige = "#f2ebe3",
|
|
20
|
+
darkBeige = "#a9a29e",
|
|
21
|
+
mediumGrey = "#464452",
|
|
22
|
+
darkGrey = "#33323a",
|
|
23
|
+
lightGrey = "#f5f5f5"
|
|
24
|
+
}
|
|
25
|
+
export declare enum ButtonKind {
|
|
26
|
+
REGULAR = "regular",
|
|
27
|
+
DANGER = "danger"
|
|
28
|
+
}
|
package/definition.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export class NavigationItem {
|
|
2
|
+
hrefOrCallback;
|
|
3
|
+
name;
|
|
4
|
+
button;
|
|
5
|
+
constructor(name, hrefOrCallback, button = false) {
|
|
6
|
+
this.hrefOrCallback = hrefOrCallback;
|
|
7
|
+
this.name = name;
|
|
8
|
+
this.button = button;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export var TextInputType;
|
|
12
|
+
(function (TextInputType) {
|
|
13
|
+
TextInputType["text"] = "text";
|
|
14
|
+
TextInputType["email"] = "email";
|
|
15
|
+
TextInputType["password"] = "password";
|
|
16
|
+
})(TextInputType || (TextInputType = {}));
|
|
17
|
+
export var Color;
|
|
18
|
+
(function (Color) {
|
|
19
|
+
Color["blue"] = "#00B9FF";
|
|
20
|
+
Color["darkBlue"] = "#211D28";
|
|
21
|
+
Color["nightBlue"] = "#18151E";
|
|
22
|
+
Color["green"] = "#00D692";
|
|
23
|
+
Color["red"] = "#ff504d";
|
|
24
|
+
Color["yellow"] = "#FFE032";
|
|
25
|
+
Color["beige"] = "#f2ebe3";
|
|
26
|
+
Color["darkBeige"] = "#a9a29e";
|
|
27
|
+
Color["mediumGrey"] = "#464452";
|
|
28
|
+
Color["darkGrey"] = "#33323a";
|
|
29
|
+
Color["lightGrey"] = "#f5f5f5";
|
|
30
|
+
})(Color || (Color = {}));
|
|
31
|
+
export var ButtonKind;
|
|
32
|
+
(function (ButtonKind) {
|
|
33
|
+
ButtonKind["REGULAR"] = "regular";
|
|
34
|
+
ButtonKind["DANGER"] = "danger";
|
|
35
|
+
})(ButtonKind || (ButtonKind = {}));
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import './scss/style.scss';
|
|
2
|
+
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 IconMastodon } from './IconMastodon.svelte';
|
|
9
|
+
export { default as NavBar } from './NavBar.svelte';
|
|
10
|
+
export { default as Navigation } from './Navigation.svelte';
|
|
11
|
+
export { default as DataTable } from './DataTable.svelte';
|
|
12
|
+
export { default as IconMore } from './IconMoreSign.svelte';
|
|
13
|
+
export { default as IconFloppyDisk } from './IconFloppyDisk.svelte';
|
|
14
|
+
export { default as IconTrashCan } from './IconTrashCan.svelte';
|
|
15
|
+
export { default as Alert } from './Alert.svelte';
|
|
16
|
+
export { default as IconIrocoLogo } from './IconIrocoLogo.svelte';
|
|
17
|
+
export { default as IrocoLogo } from './IrocoLogo.svelte';
|
|
18
|
+
export * from './definition';
|
package/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import './scss/style.scss';
|
|
2
|
+
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 IconMastodon } from './IconMastodon.svelte';
|
|
9
|
+
export { default as NavBar } from './NavBar.svelte';
|
|
10
|
+
export { default as Navigation } from './Navigation.svelte';
|
|
11
|
+
export { default as DataTable } from './DataTable.svelte';
|
|
12
|
+
export { default as IconMore } from './IconMoreSign.svelte';
|
|
13
|
+
export { default as IconFloppyDisk } from './IconFloppyDisk.svelte';
|
|
14
|
+
export { default as IconTrashCan } from './IconTrashCan.svelte';
|
|
15
|
+
export { default as Alert } from './Alert.svelte';
|
|
16
|
+
export { default as IconIrocoLogo } from './IconIrocoLogo.svelte';
|
|
17
|
+
export { default as IrocoLogo } from './IrocoLogo.svelte';
|
|
18
|
+
export * from './definition';
|
package/package.json
CHANGED
|
@@ -1,126 +1,84 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iroco/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.50.0",
|
|
4
4
|
"description": "Iroco design system based on Svelte",
|
|
5
|
-
"main": "lib/index.
|
|
6
|
-
"
|
|
7
|
-
"svelte": "src/index.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"lib",
|
|
10
|
-
"src",
|
|
11
|
-
"scss"
|
|
12
|
-
],
|
|
13
|
-
"scripts": {
|
|
14
|
-
"test": "jest",
|
|
15
|
-
"test:watch": "npm run test -- --watch",
|
|
16
|
-
"build:scripts": "rollup -c",
|
|
17
|
-
"lint": "eslint --max-warnings 3 --ignore-path .gitignore .",
|
|
18
|
-
"copy:styles": "rsync -av --include='*/' --include='**/*.scss' --exclude='*' ./scss/ ./lib/",
|
|
19
|
-
"build": "npm run build:scripts && npm run copy:styles && sass ./scss/iroco.scss ./lib/iroco.css",
|
|
20
|
-
"copy-docs": "rsync -av docs/__DOCS__/dist/iroco-ui/* ../iroco-ui-docs",
|
|
21
|
-
"dev": "rollup -c -w",
|
|
22
|
-
"release": "npm run build && release-it",
|
|
23
|
-
"prepare": "husky install",
|
|
24
|
-
"clean": "rm -rf lib .svelte-kit"
|
|
25
|
-
},
|
|
26
|
-
"repository": {
|
|
27
|
-
"type": "git",
|
|
28
|
-
"url": "git+https://github.com/iroco-co/iroco-ui.git"
|
|
29
|
-
},
|
|
30
|
-
"keywords": [
|
|
31
|
-
"iroco",
|
|
32
|
-
"design",
|
|
33
|
-
"system",
|
|
34
|
-
"svelte",
|
|
35
|
-
"components"
|
|
36
|
-
],
|
|
37
|
-
"author": "Iroco",
|
|
38
|
-
"license": "ISC",
|
|
39
|
-
"bugs": {
|
|
40
|
-
"url": "https://github.com/iroco-co/iroco-ui/issues"
|
|
41
|
-
},
|
|
42
|
-
"homepage": "https://github.com/iroco-co/iroco-ui#readme",
|
|
5
|
+
"main": "lib/index.ts",
|
|
6
|
+
"svelte": "index.js",
|
|
43
7
|
"devDependencies": {
|
|
44
|
-
"@
|
|
45
|
-
"@
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
49
|
-
"@testing-library/
|
|
50
|
-
"@
|
|
51
|
-
"@
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"rollup-plugin-svelte": "^7.1.0",
|
|
73
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
74
|
-
"sass": "^1.35.1",
|
|
75
|
-
"svelte": "^3.38.2",
|
|
76
|
-
"svelte-jester": "^1.7.0",
|
|
77
|
-
"svelte-preprocess": "^4.7.3",
|
|
78
|
-
"ts-jest": "^26.5.5",
|
|
79
|
-
"typescript": "^4.3.3"
|
|
8
|
+
"@sveltejs/adapter-auto": "^1.0.0",
|
|
9
|
+
"@sveltejs/kit": "^1.0.0",
|
|
10
|
+
"@sveltejs/package": "^1.0.0",
|
|
11
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
12
|
+
"@testing-library/svelte": "^3.2.2",
|
|
13
|
+
"@testing-library/user-event": "^14.4.3",
|
|
14
|
+
"@typescript-eslint/eslint-plugin": "^5.45.0",
|
|
15
|
+
"@typescript-eslint/parser": "^5.45.0",
|
|
16
|
+
"eslint": "^8.28.0",
|
|
17
|
+
"eslint-config-prettier": "^8.5.0",
|
|
18
|
+
"eslint-plugin-storybook": "^0.6.8",
|
|
19
|
+
"eslint-plugin-svelte3": "^4.0.0",
|
|
20
|
+
"jsdom": "^20.0.3",
|
|
21
|
+
"lint-staged": "^13.1.0",
|
|
22
|
+
"prettier": "^2.8.0",
|
|
23
|
+
"prettier-plugin-svelte": "^2.8.1",
|
|
24
|
+
"react": "^18.2.0",
|
|
25
|
+
"react-dom": "^18.2.0",
|
|
26
|
+
"sass": "^1.57.0",
|
|
27
|
+
"storybook": "^7.0.0-beta.12",
|
|
28
|
+
"storybook-dark-mode": "^2.0.4",
|
|
29
|
+
"svelte": "^3.54.0",
|
|
30
|
+
"svelte-check": "^2.9.2",
|
|
31
|
+
"testing-library": "^0.0.2",
|
|
32
|
+
"tslib": "^2.4.1",
|
|
33
|
+
"typescript": "^4.9.3",
|
|
34
|
+
"vite": "^4.0.0",
|
|
35
|
+
"vitest": "^0.25.3"
|
|
80
36
|
},
|
|
81
37
|
"peerDependencies": {
|
|
82
|
-
"svelte": "
|
|
38
|
+
"svelte": "^3.54.0"
|
|
83
39
|
},
|
|
84
40
|
"lint-staged": {
|
|
85
41
|
"*.{js,ts,svelte}": [
|
|
86
42
|
"eslint"
|
|
87
43
|
]
|
|
88
44
|
},
|
|
89
|
-
"
|
|
90
|
-
|
|
91
|
-
"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
"
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
"
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
"
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
"
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
"
|
|
45
|
+
"type": "module",
|
|
46
|
+
"exports": {
|
|
47
|
+
"./package.json": "./package.json",
|
|
48
|
+
"./Alert.svelte": "./Alert.svelte",
|
|
49
|
+
"./Button.svelte": "./Button.svelte",
|
|
50
|
+
"./DataTable.svelte": "./DataTable.svelte",
|
|
51
|
+
"./IconBurger.svelte": "./IconBurger.svelte",
|
|
52
|
+
"./IconClose.svelte": "./IconClose.svelte",
|
|
53
|
+
"./IconFloppyDisk.svelte": "./IconFloppyDisk.svelte",
|
|
54
|
+
"./IconInfo.svelte": "./IconInfo.svelte",
|
|
55
|
+
"./IconIrocoLogo.svelte": "./IconIrocoLogo.svelte",
|
|
56
|
+
"./IconMastodon.svelte": "./IconMastodon.svelte",
|
|
57
|
+
"./IconMoreSign.svelte": "./IconMoreSign.svelte",
|
|
58
|
+
"./IconTrashCan.svelte": "./IconTrashCan.svelte",
|
|
59
|
+
"./IrocoLogo.svelte": "./IrocoLogo.svelte",
|
|
60
|
+
"./Loader.svelte": "./Loader.svelte",
|
|
61
|
+
"./NavBar.svelte": "./NavBar.svelte",
|
|
62
|
+
"./Navigation.svelte": "./Navigation.svelte",
|
|
63
|
+
"./NumberInput.svelte": "./NumberInput.svelte",
|
|
64
|
+
"./NumberInputSized.svelte": "./NumberInputSized.svelte",
|
|
65
|
+
"./RadioButton.svelte": "./RadioButton.svelte",
|
|
66
|
+
"./RadioButtonTest.svelte": "./RadioButtonTest.svelte",
|
|
67
|
+
"./SlottedComponentWrapper.svelte": "./SlottedComponentWrapper.svelte",
|
|
68
|
+
"./TextInput.svelte": "./TextInput.svelte",
|
|
69
|
+
"./TopBar.svelte": "./TopBar.svelte",
|
|
70
|
+
"./definition": "./definition.js",
|
|
71
|
+
".": "./index.js",
|
|
72
|
+
"./scss/button.scss": "./scss/button.scss",
|
|
73
|
+
"./scss/check.scss": "./scss/check.scss",
|
|
74
|
+
"./scss/colors.scss": "./scss/colors.scss",
|
|
75
|
+
"./scss/constants.scss": "./scss/constants.scss",
|
|
76
|
+
"./scss/containers.scss": "./scss/containers.scss",
|
|
77
|
+
"./scss/fonts.scss": "./scss/fonts.scss",
|
|
78
|
+
"./scss/forms.scss": "./scss/forms.scss",
|
|
79
|
+
"./scss/iroco.scss": "./scss/iroco.scss",
|
|
80
|
+
"./scss/layouts.scss": "./scss/layouts.scss",
|
|
81
|
+
"./scss/loader.scss": "./scss/loader.scss",
|
|
82
|
+
"./scss/style.scss": "./scss/style.scss"
|
|
125
83
|
}
|
|
126
|
-
}
|
|
84
|
+
}
|