srcdev-nuxt-components 1.0.1 → 1.0.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/assets/styles/variables/components/_accordian.css +7 -0
- package/assets/styles/variables/components/_tabs.css +18 -0
- package/assets/styles/variables/components/display-prompt-core/_scaffolding.css +57 -0
- package/assets/styles/variables/components/display-prompt-core/index.css +2 -0
- package/assets/styles/variables/components/display-prompt-core/themes/_error.css +39 -0
- package/assets/styles/variables/components/display-prompt-core/themes/_info.css +39 -0
- package/assets/styles/variables/components/display-prompt-core/themes/_success.css +39 -0
- package/assets/styles/variables/components/display-prompt-core/themes/_warning.css +39 -0
- package/assets/styles/variables/components/display-prompt-core/themes/index.css +4 -0
- package/assets/styles/variables/components/index.css +3 -0
- package/assets/styles/variables/index.css +1 -0
- package/components/presentation/display-prompt/DisplayPromptCore.vue +1 -1
- package/package.json +11 -10
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--tabs-default-text: light-dark(var(--gray-12), var(--gray-0));
|
|
3
|
+
--tabs-active-bg: light-dark(var(--gray-12), var(--gray-0));
|
|
4
|
+
--tabs-active-text: light-dark(var(--gray-0), var(--gray-12));
|
|
5
|
+
--tabs-active-indicator: var(--green-6);
|
|
6
|
+
--tabs-hovered-bg: light-dark(var(--gray-7), var(--gray-3));
|
|
7
|
+
--tabs-hovered-text: light-dark(var(--gray-0), var(--gray-12));
|
|
8
|
+
--tabs-border-bottom: 0px solid var(--green-6);
|
|
9
|
+
|
|
10
|
+
--tabs-content-border: 0.1rem solid var(--green-6);
|
|
11
|
+
--tabs-content-outline: 0.1rem solid var(--green-12);
|
|
12
|
+
--tabs-content-bg: light-dark(var(--gray-1), var(--gray-8));
|
|
13
|
+
|
|
14
|
+
--tabs-content-start-start-radius: 0;
|
|
15
|
+
--tabs-content-start-end-radius: 0;
|
|
16
|
+
--tabs-content-end-start-radius: 1rem;
|
|
17
|
+
--tabs-content-end-end-radius: 1rem;
|
|
18
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/*
|
|
3
|
+
* Wrapper styles
|
|
4
|
+
*/
|
|
5
|
+
--display-prompt-wrapper-border-radius: 0.5rem;
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
* Inner styles
|
|
9
|
+
*/
|
|
10
|
+
--display-prompt-inner-margin: 0 0 0 0.7rem;
|
|
11
|
+
--display-prompt-inner-padding: 1rem 1.5rem;
|
|
12
|
+
--display-prompt-inner-gap: 1.6rem;
|
|
13
|
+
--display-prompt-inner-border-radius: 0.2rem;
|
|
14
|
+
|
|
15
|
+
/*
|
|
16
|
+
* Icon styles
|
|
17
|
+
*/
|
|
18
|
+
--display-prompt-icon-size: 3rem;
|
|
19
|
+
--display-prompt-icon-weight: normal;
|
|
20
|
+
|
|
21
|
+
/*
|
|
22
|
+
* Title styles
|
|
23
|
+
*/
|
|
24
|
+
--display-prompt-inner-content-gap: 1rem;
|
|
25
|
+
--display-prompt-content-margin: 0;
|
|
26
|
+
--display-prompt-content-padding: 0.2rem;
|
|
27
|
+
|
|
28
|
+
/*
|
|
29
|
+
* Title styles
|
|
30
|
+
*/
|
|
31
|
+
--display-prompt-content-title-font-size: var(--step-2);
|
|
32
|
+
--display-prompt-content-title-font-weight: bold;
|
|
33
|
+
--display-prompt-content-title-line-height: 1.3;
|
|
34
|
+
--display-prompt-content-title-margin: 0;
|
|
35
|
+
--display-prompt-content-title-padding: 0;
|
|
36
|
+
|
|
37
|
+
/*
|
|
38
|
+
* Text styles
|
|
39
|
+
*/
|
|
40
|
+
--display-prompt-content-text-font-size: var(--step-2);
|
|
41
|
+
--display-prompt-content-text-font-weight: normal;
|
|
42
|
+
--display-prompt-content-text-line-height: 1.3;
|
|
43
|
+
--display-prompt-content-title-margin: 0;
|
|
44
|
+
--display-prompt-content-title-padding: 0;
|
|
45
|
+
|
|
46
|
+
/*
|
|
47
|
+
* Button styles
|
|
48
|
+
*/
|
|
49
|
+
--display-prompt-button-border-radius: 50%;
|
|
50
|
+
--display-prompt-button-margin: 1rem;
|
|
51
|
+
--display-prompt-button-padding: 0.5rem;
|
|
52
|
+
|
|
53
|
+
/*
|
|
54
|
+
* Button styles
|
|
55
|
+
*/
|
|
56
|
+
--display-prompt-button-icon-font-size: var(--step-2);
|
|
57
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
[data-prompt-theme='error'] {
|
|
2
|
+
/*
|
|
3
|
+
* Wrapper styles
|
|
4
|
+
*/
|
|
5
|
+
--display-prompt-wrapper-background-color: var(--red-8);
|
|
6
|
+
--display-prompt-wrapper-border: 0.1rem solid var(--red-8);
|
|
7
|
+
--display-prompt-wrapper-outline: 0.1rem solid var(--red-5);
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Inner styles
|
|
11
|
+
*/
|
|
12
|
+
--display-prompt-inner-background-color: var(--red-0);
|
|
13
|
+
|
|
14
|
+
/*
|
|
15
|
+
* Icon styles
|
|
16
|
+
*/
|
|
17
|
+
--display-prompt-icon-color: var(--red-8);
|
|
18
|
+
|
|
19
|
+
/*
|
|
20
|
+
* Title styles
|
|
21
|
+
*/
|
|
22
|
+
--display-prompt-content-title-color: var(--red-8);
|
|
23
|
+
|
|
24
|
+
/*
|
|
25
|
+
* Text styles
|
|
26
|
+
*/
|
|
27
|
+
--display-prompt-content-text-color: var(--red-8);
|
|
28
|
+
|
|
29
|
+
/*
|
|
30
|
+
* Button styles
|
|
31
|
+
*/
|
|
32
|
+
--display-prompt-button-border: 0.1rem solid var(--red-8);
|
|
33
|
+
--display-prompt-button-outline: 0.1rem solid var(--red-8);
|
|
34
|
+
|
|
35
|
+
/*
|
|
36
|
+
* Button styles
|
|
37
|
+
*/
|
|
38
|
+
--display-prompt-button-icon-color: var(--red-8);
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
[data-prompt-theme='info'] {
|
|
2
|
+
/*
|
|
3
|
+
* Wrapper styles
|
|
4
|
+
*/
|
|
5
|
+
--display-prompt-wrapper-background-color: var(--blue-8);
|
|
6
|
+
--display-prompt-wrapper-border: 0.1rem solid var(--blue-8);
|
|
7
|
+
--display-prompt-wrapper-outline: 0.1rem solid var(--blue-5);
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Inner styles
|
|
11
|
+
*/
|
|
12
|
+
--display-prompt-inner-background-color: var(--blue-0);
|
|
13
|
+
|
|
14
|
+
/*
|
|
15
|
+
* Icon styles
|
|
16
|
+
*/
|
|
17
|
+
--display-prompt-icon-color: var(--blue-8);
|
|
18
|
+
|
|
19
|
+
/*
|
|
20
|
+
* Title styles
|
|
21
|
+
*/
|
|
22
|
+
--display-prompt-content-title-color: var(--blue-8);
|
|
23
|
+
|
|
24
|
+
/*
|
|
25
|
+
* Text styles
|
|
26
|
+
*/
|
|
27
|
+
--display-prompt-content-text-color: var(--blue-8);
|
|
28
|
+
|
|
29
|
+
/*
|
|
30
|
+
* Button styles
|
|
31
|
+
*/
|
|
32
|
+
--display-prompt-button-border: 0.1rem solid var(--blue-8);
|
|
33
|
+
--display-prompt-button-outline: 0.1rem solid var(--blue-8);
|
|
34
|
+
|
|
35
|
+
/*
|
|
36
|
+
* Button styles
|
|
37
|
+
*/
|
|
38
|
+
--display-prompt-button-icon-color: var(--blue-8);
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
[data-prompt-theme='success'] {
|
|
2
|
+
/*
|
|
3
|
+
* Wrapper styles
|
|
4
|
+
*/
|
|
5
|
+
--display-prompt-wrapper-background-color: var(--green-8);
|
|
6
|
+
--display-prompt-wrapper-border: 0.1rem solid var(--green-8);
|
|
7
|
+
--display-prompt-wrapper-outline: 0.1rem solid var(--green-5);
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Inner styles
|
|
11
|
+
*/
|
|
12
|
+
--display-prompt-inner-background-color: var(--green-0);
|
|
13
|
+
|
|
14
|
+
/*
|
|
15
|
+
* Icon styles
|
|
16
|
+
*/
|
|
17
|
+
--display-prompt-icon-color: var(--green-8);
|
|
18
|
+
|
|
19
|
+
/*
|
|
20
|
+
* Title styles
|
|
21
|
+
*/
|
|
22
|
+
--display-prompt-content-title-color: var(--green-8);
|
|
23
|
+
|
|
24
|
+
/*
|
|
25
|
+
* Text styles
|
|
26
|
+
*/
|
|
27
|
+
--display-prompt-content-text-color: var(--green-8);
|
|
28
|
+
|
|
29
|
+
/*
|
|
30
|
+
* Button styles
|
|
31
|
+
*/
|
|
32
|
+
--display-prompt-button-border: 0.1rem solid var(--green-8);
|
|
33
|
+
--display-prompt-button-outline: 0.1rem solid var(--green-8);
|
|
34
|
+
|
|
35
|
+
/*
|
|
36
|
+
* Button styles
|
|
37
|
+
*/
|
|
38
|
+
--display-prompt-button-icon-color: var(--green-8);
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
[data-prompt-theme='warning'] {
|
|
2
|
+
/*
|
|
3
|
+
* Wrapper styles
|
|
4
|
+
*/
|
|
5
|
+
--display-prompt-wrapper-background-color: var(--orange-8);
|
|
6
|
+
--display-prompt-wrapper-border: 0.1rem solid var(--orange-8);
|
|
7
|
+
--display-prompt-wrapper-outline: 0.1rem solid var(--orange-5);
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Inner styles
|
|
11
|
+
*/
|
|
12
|
+
--display-prompt-inner-background-color: var(--orange-0);
|
|
13
|
+
|
|
14
|
+
/*
|
|
15
|
+
* Icon styles
|
|
16
|
+
*/
|
|
17
|
+
--display-prompt-icon-color: var(--orange-8);
|
|
18
|
+
|
|
19
|
+
/*
|
|
20
|
+
* Title styles
|
|
21
|
+
*/
|
|
22
|
+
--display-prompt-content-title-color: var(--orange-8);
|
|
23
|
+
|
|
24
|
+
/*
|
|
25
|
+
* Text styles
|
|
26
|
+
*/
|
|
27
|
+
--display-prompt-content-text-color: var(--orange-8);
|
|
28
|
+
|
|
29
|
+
/*
|
|
30
|
+
* Button styles
|
|
31
|
+
*/
|
|
32
|
+
--display-prompt-button-border: 0.1rem solid var(--orange-8);
|
|
33
|
+
--display-prompt-button-outline: 0.1rem solid var(--orange-8);
|
|
34
|
+
|
|
35
|
+
/*
|
|
36
|
+
* Button styles
|
|
37
|
+
*/
|
|
38
|
+
--display-prompt-button-icon-color: var(--orange-8);
|
|
39
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="display-prompt-wrapper" :class="[
|
|
2
|
+
<div class="display-prompt-wrapper" :data-prompt-theme="theme" :class="[elementClasses, { dismissed: hide }]" data-test-id="display-prompt">
|
|
3
3
|
<div class="display-prompt-inner">
|
|
4
4
|
<div class="display-prompt-icon" data-test-id="prompt-icon">
|
|
5
5
|
<slot name="icon"></slot>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "srcdev-nuxt-components",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.2",
|
|
5
5
|
"main": "nuxt.config.ts",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"clean": "rm -rf .nuxt && rm -rf .output && rm -rf .playground/.nuxt && rm -rf .playground/.output",
|
|
@@ -25,18 +25,19 @@
|
|
|
25
25
|
"types/"
|
|
26
26
|
],
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@
|
|
29
|
-
"@
|
|
28
|
+
"@iconify-json/akar-icons": "^1.2.2",
|
|
29
|
+
"@iconify-json/bitcoin-icons": "^1.2.2",
|
|
30
|
+
"@nuxt/eslint-config": "0.7.5",
|
|
31
|
+
"@nuxt/icon": "1.10.3",
|
|
30
32
|
"@oddbird/css-anchor-positioning": "0.4.0",
|
|
31
|
-
"eslint": "9.
|
|
32
|
-
"happy-dom": "
|
|
33
|
-
"nuxt": "3.
|
|
34
|
-
"release-it": "
|
|
35
|
-
"typescript": "5.7.
|
|
36
|
-
"vue": "3.5.13"
|
|
33
|
+
"eslint": "9.19.0",
|
|
34
|
+
"happy-dom": "16.7.2",
|
|
35
|
+
"nuxt": "3.15.3",
|
|
36
|
+
"release-it": "18.1.2",
|
|
37
|
+
"typescript": "5.7.3"
|
|
37
38
|
},
|
|
38
39
|
"dependencies": {
|
|
39
|
-
"@vueuse/core": "12.
|
|
40
|
+
"@vueuse/core": "12.5.0",
|
|
40
41
|
"focus-trap-vue": "4.0.3",
|
|
41
42
|
"modern-normalize": "3.0.1"
|
|
42
43
|
},
|