@hkdigital/lib-sveltekit 0.0.95 → 0.0.97

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 (69) hide show
  1. package/dist/components/buttons/index.d.ts +1 -0
  2. package/dist/components/buttons/index.js +1 -0
  3. package/dist/components/buttons/plain-button/PlainButton.svelte +37 -0
  4. package/dist/components/buttons/plain-button/PlainButton.svelte.d.ts +10 -0
  5. package/dist/components/inputs/index.d.ts +1 -0
  6. package/dist/components/inputs/index.js +1 -0
  7. package/dist/components/inputs/text-input/TestTextInput.svelte__ +102 -0
  8. package/dist/components/inputs/text-input/TextInput.svelte +226 -0
  9. package/dist/components/inputs/text-input/TextInput.svelte.d.ts +26 -0
  10. package/dist/components/inputs/text-input/TextInput.svelte___ +83 -0
  11. package/dist/components/inputs/text-input/assets/IconInvalid.svelte +14 -0
  12. package/dist/components/inputs/text-input/assets/IconInvalid.svelte.d.ts +26 -0
  13. package/dist/components/inputs/text-input/assets/IconValid.svelte +12 -0
  14. package/dist/components/inputs/text-input/assets/IconValid.svelte.d.ts +26 -0
  15. package/dist/components/panels/index.d.ts +1 -0
  16. package/dist/components/panels/index.js +1 -0
  17. package/dist/components/panels/plain-panel/PlainPanel.svelte +33 -0
  18. package/dist/components/panels/plain-panel/PlainPanel.svelte.d.ts +10 -0
  19. package/dist/components/rows/index.d.ts +2 -0
  20. package/dist/components/rows/index.js +3 -0
  21. package/dist/components/rows/panel-grid-row/PanelGridRow.svelte +104 -0
  22. package/dist/components/rows/panel-grid-row/PanelGridRow.svelte.d.ts +12 -0
  23. package/dist/components/rows/panel-row-2/PanelRow2.svelte +40 -0
  24. package/dist/components/rows/panel-row-2/PanelRow2.svelte.d.ts +12 -0
  25. package/dist/components/widgets/scale-control/ScaleControl.svelte +0 -0
  26. package/dist/components/widgets/scale-control/ScaleControl.svelte.d.ts +26 -0
  27. package/dist/components/widgets/scale-control/index.d.ts +1 -0
  28. package/dist/components/widgets/scale-control/index.js +1 -0
  29. package/dist/config/tailwind.extend.d.ts +8 -8
  30. package/dist/config/tailwind.extend.js +51 -55
  31. package/dist/constants/css-states/index.d.ts +1 -0
  32. package/dist/constants/css-states/index.js +1 -0
  33. package/dist/constants/css-states/input-states.d.ts +8 -0
  34. package/dist/constants/css-states/input-states.js +11 -0
  35. package/dist/constants/index.js +1 -0
  36. package/dist/index.d.ts +0 -1
  37. package/dist/index.js +0 -6
  38. package/dist/themes/hkdev/components/boxes/game-box.postcss +13 -0
  39. package/dist/themes/hkdev/components/buttons/plain-button.postcss +73 -0
  40. package/dist/themes/hkdev/components/buttons/skip-button.postcss +8 -0
  41. package/dist/themes/hkdev/components/inputs/text-input.postcss +108 -0
  42. package/dist/themes/hkdev/components/panels/plain-panel.postcss +46 -0
  43. package/dist/themes/hkdev/components/panels/speech-bubble.postcss +52 -0
  44. package/dist/themes/hkdev/components/rows/panel-grid-row.postcss +7 -0
  45. package/dist/themes/hkdev/components/rows/panel-row-2.postcss +9 -0
  46. package/dist/themes/hkdev/components.postcss +49 -0
  47. package/dist/themes/hkdev/debug.postcss +2 -0
  48. package/dist/themes/hkdev/global/layout.postcss +39 -0
  49. package/dist/themes/hkdev/global/on-colors.postcss +53 -0
  50. package/dist/themes/hkdev/global/text.postcss__ +35 -0
  51. package/dist/themes/hkdev/global/vars.postcss__ +7 -0
  52. package/dist/themes/hkdev/globals.postcss +12 -0
  53. package/dist/themes/hkdev/responsive.postcss +12 -0
  54. package/dist/themes/hkdev/theme-ext.d.ts +4 -0
  55. package/dist/themes/hkdev/theme-ext.js +15 -0
  56. package/dist/themes/hkdev/theme.d.ts +226 -0
  57. package/dist/themes/hkdev/theme.js +227 -0
  58. package/dist/themes/index.d.ts +1 -0
  59. package/dist/themes/index.js +1 -0
  60. package/dist/util/sveltekit/index.d.ts +1 -0
  61. package/dist/util/sveltekit/index.js +1 -0
  62. package/dist/util/sveltekit/route-folders/index.d.ts +23 -0
  63. package/dist/util/sveltekit/route-folders/index.js +82 -0
  64. package/package.json +3 -1
  65. package/dist/components/input/HkInputField.svelte +0 -50
  66. package/dist/components/input/HkInputField.svelte.d.ts +0 -14
  67. package/dist/components/input/index.d.ts +0 -1
  68. package/dist/components/input/index.js +0 -1
  69. /package/dist/css/{tw-prose.postcss → tw-prose.postcss__} +0 -0
@@ -0,0 +1,52 @@
1
+
2
+ @import "../../global/on-colors.postcss";
3
+
4
+ @define-mixin panels-speech-bubble {
5
+ [data-panel="speech-bubble"] {
6
+
7
+ @mixin on_surface_light;
8
+ @apply bg-primary-50;
9
+
10
+ @apply pt-20p pb-20p pr-40p pl-40p rounded-tl-lg rounded-tr-lg rounded-bl-lg;
11
+
12
+ /* max-width: 26vw;*/
13
+ /* width: 26vw; */
14
+
15
+ &.small {
16
+ max-width: 16vw;
17
+ }
18
+
19
+ & picture {
20
+ display: block;
21
+ max-width: 100%;
22
+ @apply pr-80p;
23
+ /* border: solid 1px red; */
24
+ }
25
+
26
+ & [data-section="title"]
27
+ {
28
+ & .h1 {
29
+ @apply text-32p pt-8p pb-8p;
30
+ }
31
+ }
32
+
33
+ & [data-section="text"]
34
+ {
35
+ & .p {
36
+ @apply text-20p pb-10p;
37
+
38
+ /*& + picture {
39
+ @apply mt-40p;
40
+ }*/
41
+ }
42
+ }
43
+
44
+
45
+ /* Footer */
46
+
47
+ & [data-row][data-section="footer"]
48
+ {
49
+ @apply pt-10p;
50
+ }
51
+ }
52
+ }
@@ -0,0 +1,7 @@
1
+
2
+ @import "../../global/on-colors.postcss";
3
+
4
+ @define-mixin rows-panel-grid-row {
5
+ [data-row="panel-grid-row"] {
6
+ }
7
+ }
@@ -0,0 +1,9 @@
1
+
2
+ @import "../../global/on-colors.postcss";
3
+
4
+ @define-mixin rows-panel-row-2 {
5
+ [data-row="panel-grid-row"][data-wrapper="panel-row-2"] {
6
+ @apply gap-20p mb-8p mt-8p;
7
+
8
+ }
9
+ }
@@ -0,0 +1,49 @@
1
+ /* Import component styles */
2
+
3
+ /* Panels */
4
+ /*@import "./components/panels/plain-panel.postcss";*/
5
+ /*@import "./components/panels/speech-bubble.postcss";*/
6
+
7
+ /* Rows */
8
+ /*@import "./components/rows/panel-grid-row.postcss";*/
9
+ /*@import "./components/rows/panel-row-2.postcss";*/
10
+
11
+ /* Buttons */
12
+ @import "./components/buttons/plain-button.postcss";
13
+ /*@import "./components/buttons/skip-button.postcss";*/
14
+
15
+ /* Inputs */
16
+ @import "./components/inputs/text-input.postcss";
17
+
18
+ /* ... */
19
+ /*@import "./components/select-level.postcss";*/
20
+
21
+ /* Not used */
22
+ /*@import "./components/hk-tab-icon.postcss";*/
23
+ /*@import "./components/avatar-layer.postcss";*/
24
+
25
+ /* Wrap component styles in theme selector */
26
+
27
+
28
+ [data-theme=hkdev] {
29
+
30
+ /* Panels */
31
+ /* @mixin panels-plain-panel;*/
32
+ /* @mixin panels-speech-bubble;*/
33
+
34
+ /* Rows */
35
+ /* @mixin rows-panel-grid-row;*/
36
+ /* @mixin rows-panel-row-2;*/
37
+
38
+ /* Buttons */
39
+ @mixin buttons-plain-button;
40
+ /* @mixin buttons-skip-button;*/
41
+
42
+ /* Inputs */
43
+ @mixin inputs-text-input;
44
+
45
+ /* ... */
46
+ /* @mixin hk_tab_icon;*/
47
+ /* @mixin avatar_layer;*/
48
+ /* @mixin select_level;*/
49
+ }
@@ -0,0 +1,2 @@
1
+
2
+ /**/
@@ -0,0 +1,39 @@
1
+
2
+ @define-mixin all_layout {
3
+
4
+ .page-centered-xl {
5
+ @apply max-w-xl px-20p mb-40p;
6
+ @apply flex flex-col;
7
+
8
+ @apply self-center;
9
+ @apply w-full;
10
+ }
11
+
12
+ .page-full {
13
+ @apply flex flex-col;
14
+
15
+ @apply w-full h-full;
16
+ }
17
+
18
+ .page-row {
19
+ @apply w-full flex flex-col;
20
+ }
21
+
22
+
23
+ .page-ui-margins
24
+ {
25
+ @apply mt-120p;
26
+ @apply mr-20p;
27
+ @apply mb-120p;
28
+ @apply ml-20p;
29
+ }
30
+
31
+ .page-ui-margins-equal
32
+ {
33
+ @apply mt-20p;
34
+ @apply mr-20p;
35
+ @apply mb-20p;
36
+ @apply ml-20p;
37
+ }
38
+
39
+ }
@@ -0,0 +1,53 @@
1
+
2
+ @define-mixin on_surface_dark {
3
+
4
+ & .h1 {
5
+ color: rgb(var(--color-primary-contrast-light));
6
+ }
7
+
8
+ & .p {
9
+ color: rgb(var(--color-primary-contrast-light));
10
+ }
11
+
12
+ & .a {
13
+ color: rgb(var(--color-primary-contrast-light));
14
+ }
15
+
16
+ & svg {
17
+ color: rgb(var(--color-primary-contrast-light));
18
+ }
19
+
20
+ }
21
+
22
+ @define-mixin on_surface_light {
23
+
24
+ & .h1 {
25
+ color: rgb(var(--color-surface-950));
26
+ }
27
+
28
+ & .p {
29
+ color: rgb(var(--color-surface-500));
30
+ }
31
+
32
+ & .a {
33
+ color: rgb(var(--color-surface-500));
34
+ }
35
+
36
+ & svg {
37
+ color: rgb(var(--color-surface-500));
38
+ }
39
+
40
+ }
41
+
42
+ @define-mixin all_on_colors {
43
+
44
+ /* .on-primary-dark < :not('cancel-on-primary-dark') */
45
+ .on-primary-dark {
46
+ @mixin on_surface_dark;
47
+ }
48
+
49
+ .on-primary-light {
50
+ @mixin on_surface_light;
51
+ }
52
+
53
+ }
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Tailwind defaults
3
+ *
4
+ * text-sm 14px;
5
+ * text-base 16px;
6
+ * text-lg 18px;
7
+ * text-xl 20px;
8
+ * text-2xl 24px;
9
+ * text-3xl 30px;
10
+ * text-4xl 36px;
11
+ * text-5xl 48px;
12
+ * text-6xl 60px;
13
+ * text-7xl 72px;
14
+ * text-8xl 96px;
15
+ * text-9xl 128px;
16
+ *
17
+ * @see https://tailwindcss.com/docs/font-size
18
+ */
19
+
20
+ @define-mixin all_text {
21
+
22
+ a {
23
+ @apply text-sm font-bold underline;
24
+ }
25
+
26
+ p {
27
+ @apply text-xl;
28
+ }
29
+
30
+ h1 {
31
+ &.text-presenter-title {
32
+ @apply text-5xl;
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,7 @@
1
+
2
+ @define-mixin all_vars {
3
+
4
+ /* --tab-bar-height: 72px;
5
+ --tab-bar-selector-width: 132px;
6
+ --tab-bar-selector-height: var(--tab-bar-height, 72px); */
7
+ }
@@ -0,0 +1,12 @@
1
+ /*@import "./global/vars.postcss";*/
2
+ /*@import "./global/on-colors.postcss";*/
3
+ @import "./global/layout.postcss";
4
+ /*@import "./global/text.postcss";*/
5
+
6
+ [data-theme] {
7
+ /* @mixin all_vars;*/
8
+ /* @mixin all_on_colors;*/
9
+ @mixin all_layout;
10
+ /* @mixin all_text;*/
11
+
12
+ }
@@ -0,0 +1,12 @@
1
+
2
+
3
+ /*html:has(body[data-theme=hkdev]) {
4
+ font-size: 0.83333vw;
5
+ }*/
6
+
7
+ /*[data-theme=hkdev]
8
+ {
9
+ & [data-panel="test"]
10
+ {
11
+ }
12
+ }*/
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Set meta them color for the current theme
3
+ */
4
+ export function setMetaThemeColor(): void;
@@ -0,0 +1,15 @@
1
+ import theme from '../hkdev/theme.js';
2
+
3
+ import { theme as themeStore } from '@hkdigital/lib-sveltekit/stores/index.js';
4
+
5
+ /**
6
+ * Set meta them color for the current theme
7
+ */
8
+ export function setMetaThemeColor() {
9
+ const props = theme.properties;
10
+
11
+ themeStore.setMetaThemeColor(`rgb( ${props['--color-surface-950']})`);
12
+
13
+ // setMetaThemeColorDark(`rgb( ${props['--color-primary-950']})`);
14
+ // setMetaThemeColorBase(`rgb( ${props['--color-primary-50']})`);
15
+ }
@@ -0,0 +1,226 @@
1
+ export default theme;
2
+ declare namespace theme {
3
+ let name: string;
4
+ let properties: {
5
+ '--type-scale-factor': string;
6
+ '--type-scale-1': string;
7
+ '--type-scale-2': string;
8
+ '--type-scale-3': string;
9
+ '--type-scale-4': string;
10
+ '--type-scale-5': string;
11
+ '--type-scale-6': string;
12
+ '--type-scale-7': string;
13
+ '--type-scale-8': string;
14
+ '--type-scale-9': string;
15
+ '--type-scale-10': string;
16
+ '--type-scale-11': string;
17
+ '--type-scale-12': string;
18
+ '--type-scale-13': string;
19
+ '--base-font-color': string;
20
+ '--base-font-color-dark': string;
21
+ '--base-font-family': string;
22
+ '--base-font-size': string;
23
+ '--base-line-height': string;
24
+ '--base-font-weight': string;
25
+ '--base-font-style': string;
26
+ '--base-letter-spacing': string;
27
+ '--heading-font-color': string;
28
+ '--heading-font-color-dark': string;
29
+ '--heading-font-family': string;
30
+ '--heading-font-weight': string;
31
+ '--heading-font-style': string;
32
+ '--heading-letter-spacing': string;
33
+ '--anchor-font-color': string;
34
+ '--anchor-font-color-dark': string;
35
+ '--anchor-font-family': string;
36
+ '--anchor-font-size': string;
37
+ '--anchor-line-height': string;
38
+ '--anchor-font-weight': string;
39
+ '--anchor-font-style': string;
40
+ '--anchor-letter-spacing': string;
41
+ '--anchor-text-decoration': string;
42
+ '--anchor-text-decoration-hover': string;
43
+ '--anchor-text-decoration-active': string;
44
+ '--anchor-text-decoration-focus': string;
45
+ '--space-scale-factor': string;
46
+ '--radii-default': string;
47
+ '--radii-container': string;
48
+ '--border-width-default': string;
49
+ '--divide-width-default': string;
50
+ '--outline-width-default': string;
51
+ '--ring-width-default': string;
52
+ '--body-background-color': string;
53
+ '--body-background-color-dark': string;
54
+ '--color-primary-50': string;
55
+ '--color-primary-100': string;
56
+ '--color-primary-200': string;
57
+ '--color-primary-300': string;
58
+ '--color-primary-400': string;
59
+ '--color-primary-500': string;
60
+ '--color-primary-600': string;
61
+ '--color-primary-700': string;
62
+ '--color-primary-800': string;
63
+ '--color-primary-900': string;
64
+ '--color-primary-950': string;
65
+ '--color-primary-contrast-dark': string;
66
+ '--color-primary-contrast-light': string;
67
+ '--color-primary-contrast-50': string;
68
+ '--color-primary-contrast-100': string;
69
+ '--color-primary-contrast-200': string;
70
+ '--color-primary-contrast-300': string;
71
+ '--color-primary-contrast-400': string;
72
+ '--color-primary-contrast-500': string;
73
+ '--color-primary-contrast-600': string;
74
+ '--color-primary-contrast-700': string;
75
+ '--color-primary-contrast-800': string;
76
+ '--color-primary-contrast-900': string;
77
+ '--color-primary-contrast-950': string;
78
+ '--color-secondary-50': string;
79
+ '--color-secondary-100': string;
80
+ '--color-secondary-200': string;
81
+ '--color-secondary-300': string;
82
+ '--color-secondary-400': string;
83
+ '--color-secondary-500': string;
84
+ '--color-secondary-600': string;
85
+ '--color-secondary-700': string;
86
+ '--color-secondary-800': string;
87
+ '--color-secondary-900': string;
88
+ '--color-secondary-950': string;
89
+ '--color-secondary-contrast-dark': string;
90
+ '--color-secondary-contrast-light': string;
91
+ '--color-secondary-contrast-50': string;
92
+ '--color-secondary-contrast-100': string;
93
+ '--color-secondary-contrast-200': string;
94
+ '--color-secondary-contrast-300': string;
95
+ '--color-secondary-contrast-400': string;
96
+ '--color-secondary-contrast-500': string;
97
+ '--color-secondary-contrast-600': string;
98
+ '--color-secondary-contrast-700': string;
99
+ '--color-secondary-contrast-800': string;
100
+ '--color-secondary-contrast-900': string;
101
+ '--color-secondary-contrast-950': string;
102
+ '--color-tertiary-50': string;
103
+ '--color-tertiary-100': string;
104
+ '--color-tertiary-200': string;
105
+ '--color-tertiary-300': string;
106
+ '--color-tertiary-400': string;
107
+ '--color-tertiary-500': string;
108
+ '--color-tertiary-600': string;
109
+ '--color-tertiary-700': string;
110
+ '--color-tertiary-800': string;
111
+ '--color-tertiary-900': string;
112
+ '--color-tertiary-950': string;
113
+ '--color-tertiary-contrast-dark': string;
114
+ '--color-tertiary-contrast-light': string;
115
+ '--color-tertiary-contrast-50': string;
116
+ '--color-tertiary-contrast-100': string;
117
+ '--color-tertiary-contrast-200': string;
118
+ '--color-tertiary-contrast-300': string;
119
+ '--color-tertiary-contrast-400': string;
120
+ '--color-tertiary-contrast-500': string;
121
+ '--color-tertiary-contrast-600': string;
122
+ '--color-tertiary-contrast-700': string;
123
+ '--color-tertiary-contrast-800': string;
124
+ '--color-tertiary-contrast-900': string;
125
+ '--color-tertiary-contrast-950': string;
126
+ '--color-success-50': string;
127
+ '--color-success-100': string;
128
+ '--color-success-200': string;
129
+ '--color-success-300': string;
130
+ '--color-success-400': string;
131
+ '--color-success-500': string;
132
+ '--color-success-600': string;
133
+ '--color-success-700': string;
134
+ '--color-success-800': string;
135
+ '--color-success-900': string;
136
+ '--color-success-950': string;
137
+ '--color-success-contrast-dark': string;
138
+ '--color-success-contrast-light': string;
139
+ '--color-success-contrast-50': string;
140
+ '--color-success-contrast-100': string;
141
+ '--color-success-contrast-200': string;
142
+ '--color-success-contrast-300': string;
143
+ '--color-success-contrast-400': string;
144
+ '--color-success-contrast-500': string;
145
+ '--color-success-contrast-600': string;
146
+ '--color-success-contrast-700': string;
147
+ '--color-success-contrast-800': string;
148
+ '--color-success-contrast-900': string;
149
+ '--color-success-contrast-950': string;
150
+ '--color-warning-50': string;
151
+ '--color-warning-100': string;
152
+ '--color-warning-200': string;
153
+ '--color-warning-300': string;
154
+ '--color-warning-400': string;
155
+ '--color-warning-500': string;
156
+ '--color-warning-600': string;
157
+ '--color-warning-700': string;
158
+ '--color-warning-800': string;
159
+ '--color-warning-900': string;
160
+ '--color-warning-950': string;
161
+ '--color-warning-contrast-dark': string;
162
+ '--color-warning-contrast-light': string;
163
+ '--color-warning-contrast-50': string;
164
+ '--color-warning-contrast-100': string;
165
+ '--color-warning-contrast-200': string;
166
+ '--color-warning-contrast-300': string;
167
+ '--color-warning-contrast-400': string;
168
+ '--color-warning-contrast-500': string;
169
+ '--color-warning-contrast-600': string;
170
+ '--color-warning-contrast-700': string;
171
+ '--color-warning-contrast-800': string;
172
+ '--color-warning-contrast-900': string;
173
+ '--color-warning-contrast-950': string;
174
+ '--color-error-50': string;
175
+ '--color-error-100': string;
176
+ '--color-error-200': string;
177
+ '--color-error-300': string;
178
+ '--color-error-400': string;
179
+ '--color-error-500': string;
180
+ '--color-error-600': string;
181
+ '--color-error-700': string;
182
+ '--color-error-800': string;
183
+ '--color-error-900': string;
184
+ '--color-error-950': string;
185
+ '--color-error-contrast-dark': string;
186
+ '--color-error-contrast-light': string;
187
+ '--color-error-contrast-50': string;
188
+ '--color-error-contrast-100': string;
189
+ '--color-error-contrast-200': string;
190
+ '--color-error-contrast-300': string;
191
+ '--color-error-contrast-400': string;
192
+ '--color-error-contrast-500': string;
193
+ '--color-error-contrast-600': string;
194
+ '--color-error-contrast-700': string;
195
+ '--color-error-contrast-800': string;
196
+ '--color-error-contrast-900': string;
197
+ '--color-error-contrast-950': string;
198
+ '--color-surface-50': string;
199
+ '--color-surface-100': string;
200
+ '--color-surface-200': string;
201
+ '--color-surface-300': string;
202
+ '--color-surface-400': string;
203
+ '--color-surface-500': string;
204
+ '--color-surface-600': string;
205
+ '--color-surface-700': string;
206
+ '--color-surface-800': string;
207
+ '--color-surface-900': string;
208
+ '--color-surface-950': string;
209
+ '--color-surface-contrast-dark': string;
210
+ '--color-surface-contrast-light': string;
211
+ '--color-surface-contrast-50': string;
212
+ '--color-surface-contrast-100': string;
213
+ '--color-surface-contrast-200': string;
214
+ '--color-surface-contrast-300': string;
215
+ '--color-surface-contrast-400': string;
216
+ '--color-surface-contrast-500': string;
217
+ '--color-surface-contrast-600': string;
218
+ '--color-surface-contrast-700': string;
219
+ '--color-surface-contrast-800': string;
220
+ '--color-surface-contrast-900': string;
221
+ '--color-surface-contrast-950': string;
222
+ };
223
+ namespace metadata {
224
+ let version: string;
225
+ }
226
+ }