@teammodlr/ui-kit 1.0.2 → 1.0.4

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 (73) hide show
  1. package/package.json +1 -4
  2. package/src/__storybook__/argTypes.ts +0 -42
  3. package/src/__storybook__/createStory.ts +0 -15
  4. package/src/__storybook__/index.ts +0 -2
  5. package/src/components/avatar/Avatar.css +0 -69
  6. package/src/components/avatar/Avatar.vue +0 -102
  7. package/src/components/avatargroup/AvatarGroup.css +0 -8
  8. package/src/components/avatargroup/AvatarGroup.vue +0 -32
  9. package/src/components/breadcrumb/Breadcrumb.css +0 -46
  10. package/src/components/breadcrumb/Breadcrumb.vue +0 -51
  11. package/src/components/breadcrumbitem/BreadcrumbItem.vue +0 -66
  12. package/src/components/breadcrumbitem/index.ts +0 -1
  13. package/src/components/button/Button.css +0 -378
  14. package/src/components/button/Button.vue +0 -108
  15. package/src/components/buttongroup/ButtonGroup.vue +0 -47
  16. package/src/components/checkbox/Checkbox.css +0 -185
  17. package/src/components/checkbox/Checkbox.vue +0 -140
  18. package/src/components/dropdown/Dropdown.css +0 -68
  19. package/src/components/dropdown/Dropdown.vue +0 -237
  20. package/src/components/dropdown/DropdownItem.vue +0 -118
  21. package/src/components/dropdown/DropdownList.vue +0 -20
  22. package/src/components/dropdown/DropdownWrapper.vue +0 -17
  23. package/src/components/dropdown/hooks.ts +0 -30
  24. package/src/components/form/Form.vue +0 -141
  25. package/src/components/image/Image.vue +0 -71
  26. package/src/components/index.ts +0 -27
  27. package/src/components/input/Input.css +0 -173
  28. package/src/components/input/Input.vue +0 -176
  29. package/src/components/link/Link.css +0 -147
  30. package/src/components/link/Link.vue +0 -54
  31. package/src/components/messageprovider/Message.vue +0 -76
  32. package/src/components/messageprovider/MessageProvider.css +0 -36
  33. package/src/components/messageprovider/MessageProvider.vue +0 -142
  34. package/src/components/messageprovider/types.ts +0 -39
  35. package/src/components/messageprovider/useMessage.ts +0 -12
  36. package/src/components/select/Select.css +0 -226
  37. package/src/components/select/Select.vue +0 -474
  38. package/src/components/skeleton/Skeleton.css +0 -73
  39. package/src/components/skeleton/Skeleton.vue +0 -47
  40. package/src/components/tab/Tab.css +0 -113
  41. package/src/components/tab/Tab.vue +0 -98
  42. package/src/components/tab/TabGroup.vue +0 -90
  43. package/src/components/table/Table.css +0 -45
  44. package/src/components/table/Table.vue +0 -108
  45. package/src/components/table/TableBody.vue +0 -13
  46. package/src/components/table/TableCell.vue +0 -13
  47. package/src/components/table/TableHead.vue +0 -22
  48. package/src/components/table/TableHeadRow.vue +0 -15
  49. package/src/components/table/TableRow.vue +0 -13
  50. package/src/components/table/types/index.ts +0 -5
  51. package/src/components/tooltip/Tooltip.css +0 -49
  52. package/src/components/tooltip/Tooltip.vue +0 -85
  53. package/src/components/virtualscroll/VirtualScroll.css +0 -13
  54. package/src/components/virtualscroll/VirtualScroll.vue +0 -61
  55. package/src/composables/element.ts +0 -13
  56. package/src/composables/useCachedUid.ts +0 -48
  57. package/src/composables/useEventListener.ts +0 -14
  58. package/src/composables/useInput.ts +0 -134
  59. package/src/composables/useIsServer.ts +0 -7
  60. package/src/composables/useMount.ts +0 -43
  61. package/src/composables/usePopper.ts +0 -194
  62. package/src/create.ts +0 -34
  63. package/src/css/components.css +0 -14
  64. package/src/css/index.css +0 -4
  65. package/src/css/normalize.css +0 -379
  66. package/src/css/transitions.css +0 -40
  67. package/src/css/variables.css +0 -80
  68. package/src/exports/nuxt.js +0 -33
  69. package/src/exports/nuxt.plugin.js +0 -8
  70. package/src/index.ts +0 -5
  71. package/src/install.ts +0 -8
  72. package/src/shims-vue.d.ts +0 -6
  73. package/src/types/props.ts +0 -3
@@ -1,14 +0,0 @@
1
- @import '../components/button/Button.css';
2
- @import '../components/input/Input.css';
3
- @import '../components/select/Select.css';
4
- @import '../components/checkbox/Checkbox.css';
5
- @import '../components/breadcrumb/Breadcrumb.css';
6
- @import '../components/avatar/Avatar.css';
7
- @import '../components/avatargroup/AvatarGroup.css';
8
- @import '../components/messageprovider/MessageProvider.css';
9
- @import '../components/skeleton/Skeleton.css';
10
- @import '../components/link/Link.css';
11
- @import '../components/tooltip/Tooltip.css';
12
- @import '../components/tab/Tab.css';
13
- @import '../components/table/Table.css';
14
- @import '../components/dropdown/Dropdown.css';
package/src/css/index.css DELETED
@@ -1,4 +0,0 @@
1
- @import "normalize.css";
2
- @import "variables.css";
3
- @import "transitions.css";
4
- @import "components.css";
@@ -1,379 +0,0 @@
1
- /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
2
-
3
- /* Document
4
- ========================================================================== */
5
-
6
- /**
7
- * 1. Correct the line height in all browsers.
8
- * 2. Prevent adjustments of font size after orientation changes in iOS.
9
- */
10
-
11
- html {
12
- line-height: 1.15;
13
- /* 1 */
14
- -webkit-text-size-adjust: 100%;
15
- /* 2 */
16
- }
17
-
18
- /* Sections
19
- ========================================================================== */
20
-
21
- /**
22
- * Remove the margin in all browsers.
23
- */
24
-
25
- body {
26
- margin: 0;
27
- }
28
-
29
- /**
30
- * Render the `main` element consistently in IE.
31
- */
32
-
33
- main {
34
- display: block;
35
- }
36
-
37
- /**
38
- * Correct the font size and margin on `h1` elements within `section` and
39
- * `article` contexts in Chrome, Firefox, and Safari.
40
- */
41
-
42
- h1 {
43
- font-size: 2em;
44
- margin: 0.67em 0;
45
- }
46
-
47
- /* Grouping content
48
- ========================================================================== */
49
-
50
- /**
51
- * 1. Add the correct box sizing in Firefox.
52
- * 2. Show the overflow in Edge and IE.
53
- */
54
-
55
- hr {
56
- box-sizing: content-box;
57
- /* 1 */
58
- height: 0;
59
- /* 1 */
60
- overflow: visible;
61
- /* 2 */
62
- }
63
-
64
- /**
65
- * 1. Correct the inheritance and scaling of font size in all browsers.
66
- * 2. Correct the odd `em` font sizing in all browsers.
67
- */
68
-
69
- pre {
70
- font-family: monospace, monospace;
71
- /* 1 */
72
- font-size: 1em;
73
- /* 2 */
74
- }
75
-
76
- /* Text-level semantics
77
- ========================================================================== */
78
-
79
- /**
80
- * Remove the gray background on active links in IE 10.
81
- */
82
-
83
- a {
84
- background-color: transparent;
85
- }
86
-
87
- /**
88
- * 1. Remove the bottom border in Chrome 57-
89
- * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
90
- */
91
-
92
- abbr[title] {
93
- border-bottom: none;
94
- /* 1 */
95
- text-decoration: underline;
96
- /* 2 */
97
- text-decoration: underline dotted;
98
- /* 2 */
99
- }
100
-
101
- /**
102
- * Add the correct font weight in Chrome, Edge, and Safari.
103
- */
104
-
105
- b,
106
- strong {
107
- font-weight: bolder;
108
- }
109
-
110
- /**
111
- * 1. Correct the inheritance and scaling of font size in all browsers.
112
- * 2. Correct the odd `em` font sizing in all browsers.
113
- */
114
-
115
- code,
116
- kbd,
117
- samp {
118
- font-family: monospace, monospace;
119
- /* 1 */
120
- font-size: 1em;
121
- /* 2 */
122
- }
123
-
124
- /**
125
- * Add the correct font size in all browsers.
126
- */
127
-
128
- small {
129
- font-size: 80%;
130
- }
131
-
132
- /**
133
- * Prevent `sub` and `sup` elements from affecting the line height in
134
- * all browsers.
135
- */
136
-
137
- sub,
138
- sup {
139
- font-size: 75%;
140
- line-height: 0;
141
- position: relative;
142
- vertical-align: baseline;
143
- }
144
-
145
- sub {
146
- bottom: -0.25em;
147
- }
148
-
149
- sup {
150
- top: -0.5em;
151
- }
152
-
153
- /* Embedded content
154
- ========================================================================== */
155
-
156
- /**
157
- * Remove the border on images inside links in IE 10.
158
- */
159
-
160
- img {
161
- border-style: none;
162
- }
163
-
164
- /* Forms
165
- ========================================================================== */
166
-
167
- /**
168
- * 1. Change the font styles in all browsers.
169
- * 2. Remove the margin in Firefox and Safari.
170
- */
171
-
172
- button,
173
- input,
174
- optgroup,
175
- select,
176
- textarea {
177
- font-family: inherit;
178
- /* 1 */
179
- font-size: 100%;
180
- /* 1 */
181
- line-height: 1.15;
182
- /* 1 */
183
- margin: 0;
184
- /* 2 */
185
- }
186
-
187
- /**
188
- * Show the overflow in IE.
189
- * 1. Show the overflow in Edge.
190
- */
191
-
192
- button,
193
- input {
194
- /* 1 */
195
- overflow: visible;
196
- }
197
-
198
- /**
199
- * Remove the inheritance of text transform in Edge, Firefox, and IE.
200
- * 1. Remove the inheritance of text transform in Firefox.
201
- */
202
-
203
- button,
204
- select {
205
- /* 1 */
206
- text-transform: none;
207
- }
208
-
209
- /**
210
- * Correct the inability to style clickable types in iOS and Safari.
211
- */
212
-
213
- button,
214
- [type="button"],
215
- [type="reset"],
216
- [type="submit"] {
217
- -webkit-appearance: button;
218
- }
219
-
220
- /**
221
- * Remove the inner border and padding in Firefox.
222
- */
223
-
224
- button::-moz-focus-inner,
225
- [type="button"]::-moz-focus-inner,
226
- [type="reset"]::-moz-focus-inner,
227
- [type="submit"]::-moz-focus-inner {
228
- border-style: none;
229
- padding: 0;
230
- }
231
-
232
- /**
233
- * Restore the focus styles unset by the previous rule.
234
- */
235
-
236
- button:-moz-focusring,
237
- [type="button"]:-moz-focusring,
238
- [type="reset"]:-moz-focusring,
239
- [type="submit"]:-moz-focusring {
240
- outline: 1px dotted ButtonText;
241
- }
242
-
243
- /**
244
- * Correct the padding in Firefox.
245
- */
246
-
247
- fieldset {
248
- padding: 0.35em 0.75em 0.625em;
249
- }
250
-
251
- /**
252
- * 1. Correct the text wrapping in Edge and IE.
253
- * 2. Correct the color inheritance from `fieldset` elements in IE.
254
- * 3. Remove the padding so developers are not caught out when they zero out
255
- * `fieldset` elements in all browsers.
256
- */
257
-
258
- legend {
259
- box-sizing: border-box;
260
- /* 1 */
261
- color: inherit;
262
- /* 2 */
263
- display: table;
264
- /* 1 */
265
- max-width: 100%;
266
- /* 1 */
267
- padding: 0;
268
- /* 3 */
269
- white-space: normal;
270
- /* 1 */
271
- }
272
-
273
- /**
274
- * Add the correct vertical alignment in Chrome, Firefox, and Opera.
275
- */
276
-
277
- progress {
278
- vertical-align: baseline;
279
- }
280
-
281
- /**
282
- * Remove the default vertical scrollbar in IE 10+.
283
- */
284
-
285
- textarea {
286
- overflow: auto;
287
- }
288
-
289
- /**
290
- * 1. Add the correct box sizing in IE 10.
291
- * 2. Remove the padding in IE 10.
292
- */
293
-
294
- [type="checkbox"],
295
- [type="radio"] {
296
- box-sizing: border-box;
297
- /* 1 */
298
- padding: 0;
299
- /* 2 */
300
- }
301
-
302
- /**
303
- * Correct the cursor style of increment and decrement buttons in Chrome.
304
- */
305
-
306
- [type="number"]::-webkit-inner-spin-button,
307
- [type="number"]::-webkit-outer-spin-button {
308
- height: auto;
309
- }
310
-
311
- /**
312
- * 1. Correct the odd appearance in Chrome and Safari.
313
- * 2. Correct the outline style in Safari.
314
- */
315
-
316
- [type="search"] {
317
- -webkit-appearance: textfield;
318
- /* 1 */
319
- outline-offset: -2px;
320
- /* 2 */
321
- }
322
-
323
- /**
324
- * Remove the inner padding in Chrome and Safari on macOS.
325
- */
326
-
327
- [type="search"]::-webkit-search-decoration {
328
- -webkit-appearance: none;
329
- }
330
-
331
- /**
332
- * 1. Correct the inability to style clickable types in iOS and Safari.
333
- * 2. Change font properties to `inherit` in Safari.
334
- */
335
-
336
- ::-webkit-file-upload-button {
337
- -webkit-appearance: button;
338
- /* 1 */
339
- font: inherit;
340
- /* 2 */
341
- }
342
-
343
- /* Interactive
344
- ========================================================================== */
345
-
346
- /*
347
- * Add the correct display in Edge, IE 10+, and Firefox.
348
- */
349
-
350
- details {
351
- display: block;
352
- }
353
-
354
- /*
355
- * Add the correct display in all browsers.
356
- */
357
-
358
- summary {
359
- display: list-item;
360
- }
361
-
362
- /* Misc
363
- ========================================================================== */
364
-
365
- /**
366
- * Add the correct display in IE 10+.
367
- */
368
-
369
- template {
370
- display: none;
371
- }
372
-
373
- /**
374
- * Add the correct display in IE 10.
375
- */
376
-
377
- [hidden] {
378
- display: none;
379
- }
@@ -1,40 +0,0 @@
1
- .m-transition__fade-enter-active,
2
- .m-transition__fade-leave-active {
3
- transition: opacity 0.25s ease;
4
- }
5
-
6
- .m-transition__fade-enter-from,
7
- .m-transition__fade-leave-to {
8
- opacity: 0;
9
- }
10
-
11
- .m-transition__scale-enter-active {
12
- animation: scale-in 0.125s;
13
- }
14
-
15
- .m-transition__scale-leave-active {
16
- animation: scale-in 0.125s reverse;
17
- }
18
-
19
- @keyframes scale-in {
20
- 0% {
21
- transform: scale(0);
22
- opacity: 0;
23
- }
24
-
25
- 25% {
26
- opacity: 0;
27
- }
28
-
29
- 50% {
30
- opacity: .5;
31
- }
32
-
33
- 75% {
34
- transform: scale(1);
35
- }
36
-
37
- 100% {
38
- opacity: 1;
39
- }
40
- }
@@ -1,80 +0,0 @@
1
- :root {
2
- --font-size: 14px;
3
- --font-color: #333;
4
- --font-family: 'Inter', sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
5
-
6
- --white: #FFF;
7
- --black: #000;
8
-
9
- --blue: hsl(212, 92%, 53%);
10
- --blue-outline: hsla(212, 92%, 53%, .4);
11
- --blue-hover: hsl(212, 97%, 58%);
12
- --blue-focus: hsl(212, 97%, 45%);
13
- --blue-light: hsl(212, 92%, 51%);
14
- --blue-lighter: hsl(212, 92%, 58%);
15
- --blue-dark: hsl(212, 92%, 37%);
16
- --blue-darker: hsl(212, 92%, 27%);
17
- --blue-secondary: hsl(212, 89%, 93%);
18
- --blue-secondary-hover: hsl(212, 97%, 90%);
19
- --blue-secondary-focus: hsl(212, 97%, 88%);
20
-
21
- --green: hsl(148, 74%, 36%);
22
- --green-outline: hsla(148, 74%, 36%, .4);
23
- --green-hover: hsl(148, 52%, 45%);
24
- --green-focus: hsl(148, 52%, 37%);
25
- --green-light: hsl(148, 92%, 51%);
26
- --green-lighter: hsl(148, 92%, 58%);
27
- --green-dark: hsl(148, 92%, 29%);
28
- --green-darker: hsl(148, 92%, 25%);
29
- --green-secondary: hsl(148, 42%, 90%);
30
- --green-secondary-hover: hsl(148, 42%, 86%);
31
- --green-secondary-focus: hsl(148, 42%, 82%);
32
-
33
- --red: hsl(348, 63%, 50%);
34
- --red-outline: hsla(348, 63%, 50%, 4);
35
- --red-hover: hsl(348, 68%, 56%);
36
- --red-focus: hsl(348, 68%, 46%);
37
- --red-light: hsl(348, 64%, 50%);
38
- --red-lighter: hsl(348, 63%, 58%);
39
- --red-dark: hsl(348, 63%, 46%);
40
- --red-darker: hsl(348, 63%, 40%);
41
- --red-secondary: hsl(348, 61%, 92%);
42
- --red-secondary-hover: hsl(348, 61%, 89%);
43
- --red-secondary-focus: hsl(348, 61%, 85%);
44
-
45
- --yellow: hsl(37, 87%, 53%);
46
- --yellow-outline: hsla(37, 87%, 53%, .4);
47
- --yellow-hover: hsl(37, 87%, 59%);
48
- --yellow-focus: hsl(37, 87%, 48%);
49
- --yellow-light: hsl(37, 64%, 52%);
50
- --yellow-lighter: hsl(37, 63%, 60%);
51
- --yellow-dark: hsl(37, 63%, 48%);
52
- --yellow-darker: hsl(37, 63%, 42%);
53
- --yellow-secondary: hsl(37, 61%, 92%);
54
- --yellow-secondary-hover: hsl(37, 61%, 87%);
55
- --yellow-secondary-focus: hsl(37, 61%, 85%);
56
-
57
- --gray-50: #fafaf9;
58
- --gray-100: #f5f5f4;
59
- --gray-150: #eeeeee;
60
- --gray-200: #e7e5e4;
61
- --gray-300: #d6d3d1;
62
- --gray-400: #bdbab8;
63
- --gray-500: #78716c;
64
- --gray-600: #57534e;
65
- --gray-700: #44403c;
66
- --gray-800: #292524;
67
- --gray-900: #1c1917;
68
-
69
- --shadow: 0px 4px 10px 1px rgb(154 161 171 / 20%);
70
- }
71
-
72
- html,
73
- body {
74
- height: 100%;
75
- font-family: var(--font-family);
76
- }
77
-
78
- * {
79
- box-sizing: border-box;
80
- }
@@ -1,33 +0,0 @@
1
- import { defineNuxtModule, addPlugin, createResolver } from '@nuxt/kit'
2
- import { fileURLToPath } from 'node:url'
3
-
4
- export default defineNuxtModule({
5
- meta: {
6
- name: '@teammodlr/ui-kit',
7
- configKey: 'modlr',
8
- compatibility: {
9
- nuxt: '^3.0.0-rc.1',
10
- },
11
- },
12
- defaults: {
13
- prefix: 'M',
14
- },
15
- async setup(options, nuxt) {
16
- // Create resolver to resolve relative paths
17
- const { resolve } = createResolver(import.meta.url)
18
-
19
- nuxt.options.runtimeConfig.public.modlrUiOptions = options
20
-
21
- // plugin install
22
- addPlugin(resolve('./nuxt.plugin.js'))
23
-
24
- // nuxt install
25
- nuxt.hook('components:dirs', (dirs) => {
26
- dirs.push({
27
- path: fileURLToPath(new URL('../src/components', import.meta.url)),
28
- extensions: ['vue', 'tsx'],
29
- prefix: options?.prefix ? options?.prefix : 'M',
30
- })
31
- })
32
- },
33
- })
@@ -1,8 +0,0 @@
1
- import { defineNuxtPlugin } from '#app'
2
- import create from '../src/create'
3
-
4
- export default defineNuxtPlugin((nuxtApp) => {
5
- const UI = create(nuxtApp.$config.modlrUiOptions)
6
-
7
- nuxtApp.vueApp.use(UI)
8
- })
package/src/index.ts DELETED
@@ -1,5 +0,0 @@
1
- import './css/index.css';
2
- export * from './components';
3
- export { default as createUI } from './create';
4
- export { default } from './install';
5
-
package/src/install.ts DELETED
@@ -1,8 +0,0 @@
1
- import * as components from './components'
2
- import create from './create'
3
-
4
- export default create({
5
- components: Object.keys(components).map(
6
- (key) => components[key as keyof object],
7
- ),
8
- })
@@ -1,6 +0,0 @@
1
- // shims-vue.d.ts
2
- declare module '*.vue' {
3
- import type { DefineComponent } from 'vue'
4
- const component: DefineComponent<{}, {}, any>
5
- export default component
6
- }
@@ -1,3 +0,0 @@
1
- export type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
2
-
3
- export type Color = 'white' | 'black' | 'blue' | 'green' | 'red' | 'yellow' | 'gray';