@aristobyte-ui/presets 2.15.3 → 2.16.3
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/es/.tsbuildinfo +1 -1
- package/es/components/ValueBlock/ValueBlock.scss +55 -62
- package/es/components/ValueBlock/index.js +13 -2
- package/lib/.tsbuildinfo +1 -1
- package/lib/components/ValueBlock/ValueBlock.scss +55 -62
- package/lib/components/ValueBlock/index.js +13 -2
- package/package.json +4 -4
|
@@ -1,34 +1,59 @@
|
|
|
1
1
|
@use '@aristobyte-ui/utils/styles' as *;
|
|
2
2
|
|
|
3
3
|
@mixin value-block-surface($color, $hover) {
|
|
4
|
-
&.value-block-appearance
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
&.value-block-appearance {
|
|
5
|
+
&--solid {
|
|
6
|
+
background-color: $color;
|
|
7
|
+
border-color: $hover;
|
|
8
|
+
box-shadow: $shadow-md;
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
0 0 10px rgba($color, 0.35),
|
|
15
|
-
0 0 24px rgba($color, 0.25);
|
|
16
|
-
}
|
|
10
|
+
.value-block__icon,
|
|
11
|
+
.value-block__value {
|
|
12
|
+
color: $color-default;
|
|
13
|
+
}
|
|
17
14
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
.value-block__subtitle {
|
|
16
|
+
color: $white-transparent-700;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
22
19
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
&--glowing {
|
|
21
|
+
background-color: $color-default;
|
|
22
|
+
border-color: $hover;
|
|
23
|
+
box-shadow:
|
|
24
|
+
0 0 10px rgba($color, 0.35),
|
|
25
|
+
0 0 24px rgba($color, 0.25);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&--outline {
|
|
29
|
+
background-color: transparent;
|
|
30
|
+
border-color: $color;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&--outline-dashed {
|
|
34
|
+
background-color: transparent;
|
|
35
|
+
border-color: $color;
|
|
36
|
+
border-style: dashed;
|
|
37
|
+
}
|
|
28
38
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
39
|
+
&--no-outline {
|
|
40
|
+
background-color: rgba($color, 0.12);
|
|
41
|
+
border-color: transparent;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&--glowing,
|
|
45
|
+
&--outline,
|
|
46
|
+
&--outline-dashed,
|
|
47
|
+
&--no-outline {
|
|
48
|
+
.value-block__icon,
|
|
49
|
+
.value-block__value {
|
|
50
|
+
color: $color;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.value-block__subtitle {
|
|
54
|
+
color: $grey-500;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
32
57
|
}
|
|
33
58
|
}
|
|
34
59
|
|
|
@@ -38,13 +63,13 @@
|
|
|
38
63
|
display: flex;
|
|
39
64
|
flex-direction: column;
|
|
40
65
|
gap: 4px;
|
|
41
|
-
min-width:
|
|
66
|
+
min-width: 110px;
|
|
42
67
|
padding: 16px 18px;
|
|
43
68
|
text-align: center;
|
|
44
69
|
|
|
45
70
|
&-variant {
|
|
46
71
|
&--default {
|
|
47
|
-
@include value-block-surface($
|
|
72
|
+
@include value-block-surface($white, $color-default-hover);
|
|
48
73
|
}
|
|
49
74
|
|
|
50
75
|
&--primary {
|
|
@@ -68,39 +93,6 @@
|
|
|
68
93
|
}
|
|
69
94
|
}
|
|
70
95
|
|
|
71
|
-
&-appearance {
|
|
72
|
-
&--solid,
|
|
73
|
-
&--glowing {
|
|
74
|
-
.value-block__value {
|
|
75
|
-
color: $white;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.value-block__title {
|
|
79
|
-
color: $white-transparent-800;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.value-block__subtitle {
|
|
83
|
-
color: $white-transparent-700;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&--outline,
|
|
88
|
-
&--outline-dashed,
|
|
89
|
-
&--no-outline {
|
|
90
|
-
.value-block__value {
|
|
91
|
-
color: $grey-900;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.value-block__title {
|
|
95
|
-
color: $grey-700;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.value-block__subtitle {
|
|
99
|
-
color: $grey-600;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
96
|
&-radius {
|
|
105
97
|
&--none {
|
|
106
98
|
border-radius: 0;
|
|
@@ -139,19 +131,20 @@
|
|
|
139
131
|
}
|
|
140
132
|
|
|
141
133
|
&__value {
|
|
142
|
-
font-size:
|
|
134
|
+
font-size: 24px;
|
|
143
135
|
font-weight: 700;
|
|
144
136
|
line-height: 28px;
|
|
145
137
|
}
|
|
146
138
|
|
|
147
139
|
&__title {
|
|
148
|
-
|
|
140
|
+
color: $white;
|
|
141
|
+
font-size: 14px;
|
|
149
142
|
font-weight: 500;
|
|
150
143
|
line-height: 17.5px;
|
|
151
144
|
}
|
|
152
145
|
|
|
153
146
|
&__subtitle {
|
|
154
|
-
font-size:
|
|
147
|
+
font-size: 12px;
|
|
155
148
|
font-weight: 400;
|
|
156
149
|
line-height: 14px;
|
|
157
150
|
}
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
'use client';
|
|
3
|
+
var __assign = (this && this.__assign) || function () {
|
|
4
|
+
__assign = Object.assign || function(t) {
|
|
5
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6
|
+
s = arguments[i];
|
|
7
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
8
|
+
t[p] = s[p];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
return __assign.apply(this, arguments);
|
|
13
|
+
};
|
|
3
14
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
15
|
if (k2 === undefined) k2 = k;
|
|
5
16
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -49,9 +60,9 @@ var ValueBlock = function (_a) {
|
|
|
49
60
|
]
|
|
50
61
|
.filter(Boolean)
|
|
51
62
|
.join(' ') },
|
|
52
|
-
icon && React.createElement("span", { className: "value-block__icon" }, icon({ color: color, size:
|
|
63
|
+
icon && React.createElement("span", { className: "value-block__icon" }, icon(__assign(__assign({}, (color ? { color: color } : {})), { size: 40 }))),
|
|
53
64
|
title && React.createElement("h4", { className: "value-block__title" }, title),
|
|
54
|
-
React.createElement("span", { className: "value-block__value", style: { color: color } }, value),
|
|
65
|
+
React.createElement("span", { className: "value-block__value", style: __assign({}, (color ? { color: color } : {})) }, value),
|
|
55
66
|
subtitle && React.createElement("p", { className: "value-block__subtitle" }, subtitle)));
|
|
56
67
|
};
|
|
57
68
|
exports.ValueBlock = ValueBlock;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aristobyte-ui/presets",
|
|
3
3
|
"description": "A collection of prebuilt UI presets for AristoByteUI — including cards, widgets, dashboards, and interactive layouts — fully typed and styled with SCSS modules for seamless integration.",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.16.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
7
7
|
"author": "AristoByte <info@aristobyte.com>",
|
|
@@ -119,9 +119,9 @@
|
|
|
119
119
|
"sass": "^1.97.3"
|
|
120
120
|
},
|
|
121
121
|
"dependencies": {
|
|
122
|
-
"@aristobyte-ui/anchor": "^2.
|
|
123
|
-
"@aristobyte-ui/button": "^2.
|
|
124
|
-
"@aristobyte-ui/utils": "^2.
|
|
122
|
+
"@aristobyte-ui/anchor": "^2.16.3",
|
|
123
|
+
"@aristobyte-ui/button": "^2.16.3",
|
|
124
|
+
"@aristobyte-ui/utils": "^2.16.3"
|
|
125
125
|
},
|
|
126
126
|
"exports": {
|
|
127
127
|
".": {
|