@iroco/ui 1.0.0-3 → 1.0.0-5
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/README.md +9 -14
- package/dist/Alert.stories.svelte +32 -0
- package/dist/Alert.stories.svelte.d.ts +37 -0
- package/dist/Alert.svelte +8 -52
- package/dist/Button.stories.svelte +4 -3
- package/dist/Button.stories.svelte.d.ts +6 -3
- package/dist/Button.svelte +18 -63
- package/dist/DataTable.stories.svelte +31 -0
- package/dist/DataTable.stories.svelte.d.ts +29 -0
- package/dist/DataTable.svelte +3 -47
- package/dist/IconBurger.stories.svelte +30 -0
- package/dist/IconBurger.stories.svelte.d.ts +48 -0
- package/dist/IconClose.stories.svelte +30 -0
- package/dist/IconClose.stories.svelte.d.ts +48 -0
- package/dist/IconFloppyDisk.stories.svelte +33 -0
- package/dist/IconFloppyDisk.stories.svelte.d.ts +55 -0
- package/dist/IconInfo.stories.svelte +31 -0
- package/dist/IconInfo.stories.svelte.d.ts +50 -0
- package/dist/IconIrocoLogo.stories.svelte +34 -0
- package/dist/IconIrocoLogo.stories.svelte.d.ts +57 -0
- package/dist/IconMoreSign.stories.svelte +31 -0
- package/dist/IconMoreSign.stories.svelte.d.ts +50 -0
- package/dist/IconTrashCan.stories.svelte +31 -0
- package/dist/IconTrashCan.stories.svelte.d.ts +50 -0
- package/dist/IrocoLogo.stories.svelte +31 -0
- package/dist/IrocoLogo.stories.svelte.d.ts +50 -0
- package/dist/Loader.stories.svelte +19 -0
- package/dist/Loader.stories.svelte.d.ts +29 -0
- package/dist/NavBar.stories.svelte +37 -0
- package/dist/NavBar.stories.svelte.d.ts +37 -0
- package/dist/NavBar.svelte +27 -199
- package/dist/Navigation.stories.svelte +14 -15
- package/dist/Navigation.svelte +13 -90
- package/dist/NumberInput.stories.svelte +47 -0
- package/dist/NumberInput.stories.svelte.d.ts +77 -0
- package/dist/NumberInput.svelte +8 -52
- package/dist/RadioButton.stories.svelte +39 -0
- package/dist/RadioButton.stories.svelte.d.ts +56 -0
- package/dist/RadioButton.svelte +5 -50
- package/dist/RadioButton.svelte.d.ts +0 -2
- package/dist/TextInput.stories.svelte +77 -0
- package/dist/TextInput.stories.svelte.d.ts +111 -0
- package/dist/TextInput.svelte +9 -53
- package/dist/scss/button.scss +18 -18
- package/dist/scss/colors.scss +68 -91
- package/dist/scss/fields/_checkbox.scss +3 -3
- package/dist/scss/fields/_input.scss +11 -12
- package/dist/scss/forms.scss +8 -8
- package/dist/scss/style.scss +1 -1
- package/package.json +4 -2
- package/dist/NumberInputSized.svelte +0 -4
- package/dist/NumberInputSized.svelte.d.ts +0 -14
- package/dist/TopBar.svelte +0 -0
- package/dist/TopBar.svelte.d.ts +0 -23
- package/dist/scss/check.scss +0 -48
- package/dist/scss/iroco.scss +0 -38
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iroco/ui",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-5",
|
|
4
4
|
"description": "Iroco design system based on Svelte",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,14 +18,15 @@
|
|
|
18
18
|
"build-storybook": "storybook build"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
+
"@ljcl/storybook-addon-cssprops": "^3.2.0",
|
|
21
22
|
"@storybook/addon-essentials": "^7.6.13",
|
|
22
23
|
"@storybook/addon-interactions": "^7.6.13",
|
|
23
24
|
"@storybook/addon-links": "^7.6.13",
|
|
24
25
|
"@storybook/addon-svelte-csf": "^4.1.1",
|
|
25
26
|
"@storybook/blocks": "^7.6.13",
|
|
26
27
|
"@storybook/svelte": "^7.6.13",
|
|
27
|
-
"@storybook/sveltekit": "^7.6.13",
|
|
28
28
|
"@storybook/svelte-vite": "^8.0.0-beta.1",
|
|
29
|
+
"@storybook/sveltekit": "^7.6.13",
|
|
29
30
|
"@storybook/test": "^7.6.13",
|
|
30
31
|
"@sveltejs/adapter-auto": "^3.1.1",
|
|
31
32
|
"@sveltejs/kit": "^2.5.0",
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
"@testing-library/user-event": "^14.5.2",
|
|
38
39
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
39
40
|
"@typescript-eslint/parser": "^6.21.0",
|
|
41
|
+
"@vitest/ui": "^1.2.2",
|
|
40
42
|
"eslint": "^8.56.0",
|
|
41
43
|
"eslint-config-prettier": "^9.1.0",
|
|
42
44
|
"eslint-plugin-storybook": "^0.6.15",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: Record<string, never>;
|
|
4
|
-
events: {
|
|
5
|
-
[evt: string]: CustomEvent<any>;
|
|
6
|
-
};
|
|
7
|
-
slots: {};
|
|
8
|
-
};
|
|
9
|
-
export type NumberInputSizedProps = typeof __propDef.props;
|
|
10
|
-
export type NumberInputSizedEvents = typeof __propDef.events;
|
|
11
|
-
export type NumberInputSizedSlots = typeof __propDef.slots;
|
|
12
|
-
export default class NumberInputSized extends SvelteComponent<NumberInputSizedProps, NumberInputSizedEvents, NumberInputSizedSlots> {
|
|
13
|
-
}
|
|
14
|
-
export {};
|
package/dist/TopBar.svelte
DELETED
|
File without changes
|
package/dist/TopBar.svelte.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} TopBarProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} TopBarEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} TopBarSlots */
|
|
4
|
-
export default class TopBar extends SvelteComponent<{
|
|
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 { SvelteComponent } 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/dist/scss/check.scss
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/* @deprecated does not seem to be used anywhere */
|
|
2
|
-
.ui-check {
|
|
3
|
-
width: 30px;
|
|
4
|
-
min-width: 30px;
|
|
5
|
-
height: 30px;
|
|
6
|
-
min-height: 30px;
|
|
7
|
-
background: rgba($darkBeige, 0.1);
|
|
8
|
-
border: solid rgba($darkBeige, 0.4) 1px;
|
|
9
|
-
cursor: pointer;
|
|
10
|
-
outline: none;
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
position: relative;
|
|
15
|
-
transition: all cubic-bezier(0.215, 0.61, 0.355, 1) 400ms;
|
|
16
|
-
border-radius: 2px;
|
|
17
|
-
|
|
18
|
-
&.tag {
|
|
19
|
-
width: auto;
|
|
20
|
-
padding: 0 10px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&:focus {
|
|
24
|
-
outline: none;
|
|
25
|
-
box-shadow: 0 0 5px rgba($blue, 0.3);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
> svg {
|
|
29
|
-
stroke-dashoffset: 100;
|
|
30
|
-
transition: stroke-dashoffset cubic-bezier(0.215, 0.61, 0.355, 1) 400ms;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
> span {
|
|
34
|
-
@include Arial(1em, $darkBeige);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&[aria-pressed='true'] {
|
|
38
|
-
border: solid $blue 1px;
|
|
39
|
-
|
|
40
|
-
> svg {
|
|
41
|
-
stroke-dashoffset: 0;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
> span {
|
|
45
|
-
color: $blue;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
package/dist/scss/iroco.scss
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
@use 'colors';
|
|
2
|
-
@use 'fonts';
|
|
3
|
-
@use 'style';
|
|
4
|
-
|
|
5
|
-
/** @deprectated : does not seem to be used anywhere */
|
|
6
|
-
|
|
7
|
-
*,
|
|
8
|
-
*::before,
|
|
9
|
-
*::after {
|
|
10
|
-
-webkit-box-sizing: border-box;
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
a,
|
|
15
|
-
a:visited,
|
|
16
|
-
a:active,
|
|
17
|
-
button {
|
|
18
|
-
text-decoration: none;
|
|
19
|
-
font-size: 14px;
|
|
20
|
-
color: colors.$beige;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
html {
|
|
24
|
-
margin: 0;
|
|
25
|
-
padding: 0;
|
|
26
|
-
|
|
27
|
-
> body {
|
|
28
|
-
@include fonts.Arial(14px, white);
|
|
29
|
-
margin: 0;
|
|
30
|
-
padding: 0;
|
|
31
|
-
cursor: default;
|
|
32
|
-
text-rendering: optimizeLegibility;
|
|
33
|
-
-webkit-font-smoothing: antialiased;
|
|
34
|
-
-moz-osx-font-smoothing: grayscale;
|
|
35
|
-
font-kerning: normal;
|
|
36
|
-
background: colors.$background;
|
|
37
|
-
}
|
|
38
|
-
}
|