@flightlesslabs/dodo-ui 0.6.0 → 0.6.2
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 +3 -1
- package/dist/stories/Home.mdx +3 -2
- package/dist/stories/components/Layout/Paper/Paper.stories.svelte +5 -0
- package/dist/stories/components/Layout/Paper/Paper.svelte +2 -1
- package/dist/stories/components/Layout/Paper/Paper.svelte.d.ts +5 -1
- package/package.json +18 -18
- package/src/lib/stories/components/Layout/Paper/Paper.stories.svelte +5 -0
- package/src/lib/stories/components/Layout/Paper/Paper.svelte +8 -1
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-

|
|
2
2
|
|
|
3
3
|
# Dodo Ui
|
|
4
4
|
|
|
5
5
|
An open-source, opinionated UI framework for Svelte.
|
|
6
|
+
|
|
7
|
+
[Github](https://github.com/flightlesslabs/dodo-ui) | [npm](https://www.npmjs.com/package/@flightlesslabs/dodo-ui)
|
package/dist/stories/Home.mdx
CHANGED
|
@@ -10,6 +10,9 @@ import item from '../../../package.json?raw';
|
|
|
10
10
|
<h3 style={{ fontWeight: 500 }}>v{JSON.parse(item)?.version}</h3>
|
|
11
11
|
|
|
12
12
|
<h3 style={{ fontWeight: 400 }}>An open-source, opinionated UI framework for Svelte.</h3>
|
|
13
|
+
|
|
14
|
+
### [Github](https://github.com/flightlesslabs/dodo-ui) - [npm](https://www.npmjs.com/package/@flightlesslabs/dodo-ui)
|
|
15
|
+
|
|
13
16
|
</main>
|
|
14
17
|
|
|
15
18
|
<br />
|
|
@@ -56,5 +59,3 @@ Checkout documentation for [Button](?path=/docs/components-form-button--docs)
|
|
|
56
59
|
- [Themes](?path=/docs/philosophy-themes--docs)
|
|
57
60
|
- [Colors](?path=/docs/philosophy-colors--docs)
|
|
58
61
|
- [Adjust Color Opacity](?path=/docs/philosophy-colors--docs#adjusting-opacity)
|
|
59
|
-
- [Github](https://github.com/flightlesslabs/dodo-ui)
|
|
60
|
-
- [NPM](https://www.npmjs.com/package/@flightlesslabs/dodo-ui)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts" module>export {};
|
|
2
2
|
</script>
|
|
3
3
|
|
|
4
|
-
<script lang="ts">let { children, roundness = '1x', shadow = '1x', id, class: className = '', _unsafeChildrenStringForTesting, ref = $bindable(), } = $props();
|
|
4
|
+
<script lang="ts">let { children, roundness = '1x', shadow = '1x', id, class: className = '', _unsafeChildrenStringForTesting, width, height, ref = $bindable(), } = $props();
|
|
5
5
|
export {};
|
|
6
6
|
</script>
|
|
7
7
|
|
|
@@ -14,6 +14,7 @@ export {};
|
|
|
14
14
|
].join(' ')}
|
|
15
15
|
{id}
|
|
16
16
|
bind:this={ref}
|
|
17
|
+
style={`${width ? `width:${width};` : ''}${height ? `height:${height};` : ''}`}
|
|
17
18
|
>
|
|
18
19
|
{#if children}
|
|
19
20
|
{@render children()}
|
|
@@ -11,8 +11,12 @@ interface PaperProps {
|
|
|
11
11
|
roundness?: PaperRoundness;
|
|
12
12
|
/** Shadow elevation */
|
|
13
13
|
shadow?: PaperShadow;
|
|
14
|
-
/** Custom css class*/
|
|
14
|
+
/** Custom css class */
|
|
15
15
|
class?: string;
|
|
16
|
+
/** Paper Width */
|
|
17
|
+
width?: string;
|
|
18
|
+
/** Paper Height */
|
|
19
|
+
height?: string;
|
|
16
20
|
/** Id */
|
|
17
21
|
id?: string;
|
|
18
22
|
/** Test: ⚠️ Unsafe Children String. Do Not use*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flightlesslabs/dodo-ui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "vite build && pnpm run prepack",
|
|
6
6
|
"preview": "vite preview",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@chromatic-com/storybook": "^3.2.6",
|
|
52
52
|
"@eslint/compat": "^1.2.8",
|
|
53
|
-
"@eslint/js": "^9.
|
|
53
|
+
"@eslint/js": "^9.25.1",
|
|
54
54
|
"@storybook/addon-essentials": "^8.6.12",
|
|
55
55
|
"@storybook/addon-svelte-csf": "5.0.0-next.28",
|
|
56
56
|
"@storybook/blocks": "^8.6.12",
|
|
@@ -61,36 +61,36 @@
|
|
|
61
61
|
"@storybook/test": "^8.6.12",
|
|
62
62
|
"@storybook/theming": "^8.6.12",
|
|
63
63
|
"@sveltejs/adapter-static": "^3.0.8",
|
|
64
|
-
"@sveltejs/kit": "^2.20.
|
|
65
|
-
"@sveltejs/package": "^2.3.
|
|
64
|
+
"@sveltejs/kit": "^2.20.7",
|
|
65
|
+
"@sveltejs/package": "^2.3.11",
|
|
66
66
|
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
|
67
|
-
"@vitest/browser": "^3.1.
|
|
68
|
-
"@vitest/coverage-v8": "^3.1.
|
|
69
|
-
"eslint": "^9.
|
|
70
|
-
"eslint-config-prettier": "^10.1.
|
|
67
|
+
"@vitest/browser": "^3.1.2",
|
|
68
|
+
"@vitest/coverage-v8": "^3.1.2",
|
|
69
|
+
"eslint": "^9.25.1",
|
|
70
|
+
"eslint-config-prettier": "^10.1.2",
|
|
71
71
|
"eslint-plugin-svelte": "^3.5.1",
|
|
72
72
|
"globals": "^16.0.0",
|
|
73
|
-
"playwright": "^1.
|
|
73
|
+
"playwright": "^1.52.0",
|
|
74
74
|
"prettier": "^3.5.3",
|
|
75
75
|
"prettier-plugin-svelte": "^3.3.3",
|
|
76
|
-
"publint": "^0.3.
|
|
77
|
-
"sass": "^1.
|
|
76
|
+
"publint": "^0.3.12",
|
|
77
|
+
"sass": "^1.87.0",
|
|
78
78
|
"storybook": "^8.6.12",
|
|
79
79
|
"storybook-dark-mode": "^4.0.2",
|
|
80
|
-
"svelte": "^5.
|
|
81
|
-
"svelte-check": "^4.1.
|
|
80
|
+
"svelte": "^5.28.2",
|
|
81
|
+
"svelte-check": "^4.1.6",
|
|
82
82
|
"svelte-preprocess": "^6.0.3",
|
|
83
83
|
"typescript": "^5.8.3",
|
|
84
|
-
"typescript-eslint": "^8.
|
|
85
|
-
"vite": "^6.
|
|
86
|
-
"vitest": "^3.1.
|
|
84
|
+
"typescript-eslint": "^8.31.0",
|
|
85
|
+
"vite": "^6.3.3",
|
|
86
|
+
"vitest": "^3.1.2"
|
|
87
87
|
},
|
|
88
88
|
"keywords": [
|
|
89
89
|
"svelte"
|
|
90
90
|
],
|
|
91
91
|
"volta": {
|
|
92
|
-
"node": "22.
|
|
93
|
-
"pnpm": "10.
|
|
92
|
+
"node": "22.15.0",
|
|
93
|
+
"pnpm": "10.9.0"
|
|
94
94
|
},
|
|
95
95
|
"dependencies": {
|
|
96
96
|
"@iconify/svelte": "^4.2.0"
|
|
@@ -16,8 +16,12 @@
|
|
|
16
16
|
roundness?: PaperRoundness;
|
|
17
17
|
/** Shadow elevation */
|
|
18
18
|
shadow?: PaperShadow;
|
|
19
|
-
/** Custom css class*/
|
|
19
|
+
/** Custom css class */
|
|
20
20
|
class?: string;
|
|
21
|
+
/** Paper Width */
|
|
22
|
+
width?: string;
|
|
23
|
+
/** Paper Height */
|
|
24
|
+
height?: string;
|
|
21
25
|
/** Id */
|
|
22
26
|
id?: string;
|
|
23
27
|
/** Test: ⚠️ Unsafe Children String. Do Not use*/
|
|
@@ -31,6 +35,8 @@
|
|
|
31
35
|
id,
|
|
32
36
|
class: className = '',
|
|
33
37
|
_unsafeChildrenStringForTesting,
|
|
38
|
+
width,
|
|
39
|
+
height,
|
|
34
40
|
ref = $bindable<HTMLDivElement>(),
|
|
35
41
|
}: PaperProps = $props();
|
|
36
42
|
</script>
|
|
@@ -44,6 +50,7 @@
|
|
|
44
50
|
].join(' ')}
|
|
45
51
|
{id}
|
|
46
52
|
bind:this={ref}
|
|
53
|
+
style={`${width ? `width:${width};` : ''}${height ? `height:${height};` : ''}`}
|
|
47
54
|
>
|
|
48
55
|
{#if children}
|
|
49
56
|
{@render children()}
|