@likable-hair/svelte 0.0.7 → 0.0.8
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/buttons/Button.svelte +0 -1
- package/buttons/Button.svelte.d.ts +0 -1
- package/common/Card.svelte +2 -8
- package/common/Card.svelte.d.ts +0 -2
- package/common/tailwind.css +149 -3
- package/forms/Textfield.svelte +1 -2
- package/navigation/HeaderMenu.svelte +2 -2
- package/package.json +2 -5
- package/enums/elevation.enum.d.ts +0 -7
- package/enums/elevation.enum.js +0 -8
- package/enums/index.d.ts +0 -1
- package/enums/index.js +0 -1
package/buttons/Button.svelte
CHANGED
package/common/Card.svelte
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
<script >
|
|
2
|
-
export let rounded = true, outlined = false, elevation = Elevation.md;
|
|
1
|
+
<script >export let rounded = true, outlined = false;
|
|
3
2
|
$: cssVariables = Object.entries({}).filter(([key]) => key.startsWith('--'))
|
|
4
3
|
.reduce((css, [key, value]) => {
|
|
5
4
|
return `${css}${key}: ${value};`;
|
|
@@ -23,13 +22,8 @@ import '$lib/common/tailwind.css';
|
|
|
23
22
|
</style>
|
|
24
23
|
|
|
25
24
|
<div
|
|
26
|
-
class="card-container flex flex-col
|
|
25
|
+
class="card-container flex flex-col shadow-lg"
|
|
27
26
|
style={cssVariables}
|
|
28
|
-
class:shadow-sm={!outlined && elevation == Elevation.sm}
|
|
29
|
-
class:shadow-md={!outlined && elevation == Elevation.md}
|
|
30
|
-
class:shadow-lg={!outlined && elevation == Elevation.lg}
|
|
31
|
-
class:shadow-xl={!outlined && elevation == Elevation.xl}
|
|
32
|
-
class:shadow-2xl={!outlined && elevation == Elevation.xxl}
|
|
33
27
|
class:border-solid={outlined}
|
|
34
28
|
class:rounded-md={rounded}
|
|
35
29
|
>
|
package/common/Card.svelte.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import { Elevation } from '../enums/elevation.enum';
|
|
3
2
|
import '$lib/common/tailwind.css';
|
|
4
3
|
declare const __propDef: {
|
|
5
4
|
props: {
|
|
6
5
|
rounded?: boolean;
|
|
7
6
|
outlined?: boolean;
|
|
8
|
-
elevation?: Elevation;
|
|
9
7
|
};
|
|
10
8
|
events: {
|
|
11
9
|
[evt: string]: CustomEvent<any>;
|
package/common/tailwind.css
CHANGED
|
@@ -1,3 +1,149 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
html {
|
|
2
|
+
--shadow-color: #000;
|
|
3
|
+
--ring-inset: inset;
|
|
4
|
+
--ring-offset-width: 0px;
|
|
5
|
+
--ring-color: rgb(255 255 255/0.1);
|
|
6
|
+
--ring-offset-shadow: var(--ring-inset) 0 0 0 calc(1px + var(--ring-offset-width)) var(--ring-color);
|
|
7
|
+
--ring-shadow: 0 0 #0000;
|
|
8
|
+
--shadow: 0 0 #0000;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.relative {
|
|
12
|
+
position: relative;
|
|
13
|
+
}
|
|
14
|
+
.sticky {
|
|
15
|
+
position: sticky;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.transition-all {
|
|
19
|
+
transition-property: all;
|
|
20
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
21
|
+
transition-duration: 150ms;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.flex {
|
|
25
|
+
display: flex;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.flex-col {
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.flex-none {
|
|
33
|
+
flex: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.shrink {
|
|
37
|
+
flex-shrink: 1;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.grow {
|
|
41
|
+
flex-grow: 1;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.text-2xl {
|
|
45
|
+
font-size: 1.5rem/* 24px */;
|
|
46
|
+
line-height: 2rem/* 32px */;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.overflow-y-auto {
|
|
50
|
+
overflow-y: auto;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.items-center {
|
|
54
|
+
align-items: center;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.justify-center {
|
|
58
|
+
justify-content: center;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.rounded-md {
|
|
62
|
+
border-radius: 0.375rem
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.cursor-pointer {
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.border-solid {
|
|
70
|
+
border-style: solid;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.-top-12 {
|
|
74
|
+
top: -3rem/* -48px */;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.-top-14 {
|
|
78
|
+
top: -3.5rem/* -56px */;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.top-0 {
|
|
82
|
+
top: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.bottom-3 {
|
|
86
|
+
bottom: 0.75rem/* 12px */;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.bottom-2 {
|
|
90
|
+
bottom: 0.5rem/* 8px */;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.mt-1 {
|
|
94
|
+
margin-top: 0.25rem/* 4px */;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.mt-6 {
|
|
98
|
+
margin-top: 1.5rem/* 24px */;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.ml-2 {
|
|
102
|
+
margin-left: 0.5rem/* 8px */;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.mr-2 {
|
|
106
|
+
margin-right: 0.5rem/* 8px */;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.mr-5 {
|
|
110
|
+
margin-right: 1.25rem/* 20px */;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.mx-2 {
|
|
114
|
+
margin-left: 0.5rem/* 8px */;
|
|
115
|
+
margin-right: 0.5rem/* 8px */;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.mx-3 {
|
|
119
|
+
margin-left: 0.75rem/* 12px */;
|
|
120
|
+
margin-right: 0.75rem/* 12px */;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.p-2 {
|
|
124
|
+
padding: 0.5rem/* 8px */;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.h-12 {
|
|
128
|
+
height: 3rem/* 48px */;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.h-14 {
|
|
132
|
+
height: 3.5rem/* 56px */;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.h-screen {
|
|
136
|
+
height: 100vh;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.shadow-lg {
|
|
140
|
+
--shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
141
|
+
--shadow-colored: 0 10px 15px -3px var(--shadow-color), 0 4px 6px -4px var(--shadow-color);
|
|
142
|
+
box-shadow: var(--ring-offset-shadow, 0 0 #0000), var(--ring-shadow, 0 0 #0000), var(--shadow);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.shadow-md {
|
|
146
|
+
--shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
147
|
+
--shadow-colored: 0 4px 6px -1px var(--shadow-color), 0 2px 4px -2px var(--shadow-color);
|
|
148
|
+
box-shadow: var(--ring-offset-shadow, 0 0 #0000), var(--ring-shadow, 0 0 #0000), var(--shadow);
|
|
149
|
+
}
|
package/forms/Textfield.svelte
CHANGED
|
@@ -28,7 +28,6 @@ import '$lib/common/tailwind.css';
|
|
|
28
28
|
|
|
29
29
|
<style>
|
|
30
30
|
.input-container {
|
|
31
|
-
margin-top: 15px;
|
|
32
31
|
height: 50px;
|
|
33
32
|
position: relative;
|
|
34
33
|
width: var(--width, 100%);
|
|
@@ -130,7 +129,7 @@ import '$lib/common/tailwind.css';
|
|
|
130
129
|
class="label-outlined"
|
|
131
130
|
bind:this={labelElement}
|
|
132
131
|
>{label}</label>
|
|
133
|
-
<div class="flex content-center relative bottom-
|
|
132
|
+
<div class="flex content-center relative bottom-2 ml-2 mr-2">
|
|
134
133
|
<div>
|
|
135
134
|
<slot name="prepend-inner"></slot>
|
|
136
135
|
</div>
|
|
@@ -24,14 +24,14 @@ import Navigator from './Navigator.svelte';
|
|
|
24
24
|
|
|
25
25
|
<nav
|
|
26
26
|
class="
|
|
27
|
-
shadow-md sticky h-
|
|
27
|
+
shadow-md sticky h-14 -top-14 transition-all
|
|
28
28
|
flex flex-wrap items-center
|
|
29
29
|
header-menu-container
|
|
30
30
|
"
|
|
31
31
|
class:top-0={visible}
|
|
32
32
|
>
|
|
33
33
|
{#if $$slots.prepend}
|
|
34
|
-
<div class="h-
|
|
34
|
+
<div class="h-14 flex-none">
|
|
35
35
|
<slot name="prepend"></slot>
|
|
36
36
|
</div>
|
|
37
37
|
{/if}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@likable-hair/svelte",
|
|
3
3
|
"description": "A Svelte component for likablehair",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.8",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@sveltejs/adapter-auto": "next",
|
|
7
7
|
"@sveltejs/kit": "next",
|
|
@@ -20,8 +20,7 @@
|
|
|
20
20
|
"type": "module",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@mdi/font": "^6.5.95",
|
|
23
|
-
"uuid": "^8.3.2"
|
|
24
|
-
"tailwindcss": "^3.0.13"
|
|
23
|
+
"uuid": "^8.3.2"
|
|
25
24
|
},
|
|
26
25
|
"exports": {
|
|
27
26
|
"./package.json": "./package.json",
|
|
@@ -32,8 +31,6 @@
|
|
|
32
31
|
"./common/tailwind.css": "./common/tailwind.css",
|
|
33
32
|
"./dates/Calendar.svelte": "./dates/Calendar.svelte",
|
|
34
33
|
"./dates/utils": "./dates/utils.js",
|
|
35
|
-
"./enums/elevation.enum": "./enums/elevation.enum.js",
|
|
36
|
-
"./enums": "./enums/index.js",
|
|
37
34
|
"./forms/Textfield.svelte": "./forms/Textfield.svelte",
|
|
38
35
|
".": "./index.js",
|
|
39
36
|
"./loaders/Skeleton.svelte": "./loaders/Skeleton.svelte",
|
package/enums/elevation.enum.js
DELETED
package/enums/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Elevation } from './elevation.enum';
|
package/enums/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Elevation } from './elevation.enum';
|