atenea-components 1.4.21 → 1.4.24
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/dist/components/atoms/RangeSlider.js +1 -1
- package/dist/components/atoms/SelectDropdown.js +3 -3
- package/dist/components/icons/IconSleep1.js +16 -2
- package/dist/components/icons/IconSleep2.js +16 -2
- package/dist/components/icons/IconSleep3.js +16 -2
- package/dist/components/icons/IconSleep4.js +16 -2
- package/dist/components/icons/IconSleep5.js +16 -2
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ exports.RangeSlider = (0, react_1.forwardRef)(({ min, max, step = 1, value, onCh
|
|
|
15
15
|
onChange(Number.isNaN(next) ? min : next);
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, clsx_1.default)("relative pb-10", className), children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between mb-2 text-base font-normal leading-6 text-gray-400 align-middle", children: [(0, jsx_runtime_1.jsx)("span", { children: minLabel !== null && minLabel !== void 0 ? minLabel : min }), (0, jsx_runtime_1.jsx)("span", { children: maxLabel !== null && maxLabel !== void 0 ? maxLabel : max })] }), (0, jsx_runtime_1.jsxs)("div", { className: "relative h-1.5 bg-gray-100 rounded-full", children: [(0, jsx_runtime_1.jsx)("div", { className: "absolute top-0 left-0 h-full bg-primary-400 rounded-full transition-[width] duration-150", style: { width: `${percentage}%` } }), (0, jsx_runtime_1.jsx)("input", { ref: ref, type: "range", id: id, min: min, max: max, step: step, value: value, onChange: handleChange, disabled: disabled, className: "absolute top-1/2 -translate-y-1/2 left-0 w-full opacity-0 cursor-pointer z-10 h-6 disabled:cursor-not-allowed", "aria-valuemin": min, "aria-valuemax": max, "aria-valuenow": value }), (0, jsx_runtime_1.jsx)("div", { className: "absolute top-1/2 -translate-y-1/2 w-6 h-6 bg-primary-400 rounded-full border-2 border-white
|
|
18
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, clsx_1.default)("relative pb-10", className), children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between mb-2 text-base font-normal leading-6 text-gray-400 align-middle", children: [(0, jsx_runtime_1.jsx)("span", { children: minLabel !== null && minLabel !== void 0 ? minLabel : min }), (0, jsx_runtime_1.jsx)("span", { children: maxLabel !== null && maxLabel !== void 0 ? maxLabel : max })] }), (0, jsx_runtime_1.jsxs)("div", { className: "relative h-1.5 bg-gray-100 rounded-full", children: [(0, jsx_runtime_1.jsx)("div", { className: "absolute top-0 left-0 h-full bg-primary-400 rounded-full transition-[width] duration-150", style: { width: `${percentage}%` } }), (0, jsx_runtime_1.jsx)("input", { ref: ref, type: "range", id: id, min: min, max: max, step: step, value: value, onChange: handleChange, disabled: disabled, className: "absolute top-1/2 -translate-y-1/2 left-0 w-full opacity-0 cursor-pointer z-10 h-6 disabled:cursor-not-allowed", "aria-valuemin": min, "aria-valuemax": max, "aria-valuenow": value }), (0, jsx_runtime_1.jsx)("div", { className: "absolute top-1/2 -translate-y-1/2 w-6 h-6 bg-primary-400 rounded-full border-2 border-white pointer-events-none transition-all duration-150", style: { left: `calc(${percentage}% - 12px)` } })] }), showValue && ((0, jsx_runtime_1.jsx)("span", { className: "absolute -translate-x-1/2 text-2xl font-semibold leading-7 text-primary-500 align-middle", style: {
|
|
19
19
|
left: `${percentage}%`,
|
|
20
20
|
top: "calc(100% - 28px)",
|
|
21
21
|
}, children: valueFormat(value) }))] }));
|
|
@@ -31,10 +31,10 @@ const SelectDropdown = ({ options, value, onChange, placeholder = "Select", disa
|
|
|
31
31
|
const triggerClass = [
|
|
32
32
|
"w-full flex items-center gap-2 transition-colors outline-none text-left font-normal select-none",
|
|
33
33
|
getSizeClasses(),
|
|
34
|
-
"bg-white-100 border border-gray-300
|
|
34
|
+
"bg-white-100 border border-gray-300 ",
|
|
35
35
|
disabled
|
|
36
|
-
? "text-textAtenea-300 hover:
|
|
37
|
-
: "cursor-pointer",
|
|
36
|
+
? "text-textAtenea-300 hover:none cursor-not-allowed border-gray-200"
|
|
37
|
+
: "cursor-pointer hover:border-primary-500 focus:border-primary-500",
|
|
38
38
|
isOpen && !disabled ? "border-primary-500 ring-2 ring-primary-200" : "",
|
|
39
39
|
className,
|
|
40
40
|
].join(" ");
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
2
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
14
|
exports.IconSleep1 = void 0;
|
|
4
15
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const lu_1 = require("react-icons/lu");
|
|
6
16
|
const IconBase_1 = require("./IconBase");
|
|
17
|
+
const Icon = (_a) => {
|
|
18
|
+
var { size = 20, color = 'currentColor', className } = _a, rest = __rest(_a, ["size", "color", "className"]);
|
|
19
|
+
return ((0, jsx_runtime_1.jsx)("svg", Object.assign({ width: size, height: size, viewBox: "0 0 24 24", fill: "none", className: className }, rest, { children: (0, jsx_runtime_1.jsx)("circle", { cx: "12", cy: "12", r: "10", stroke: color, strokeWidth: "2", fill: "none" }) })));
|
|
20
|
+
};
|
|
7
21
|
const IconSleep1 = (props) => {
|
|
8
|
-
return (0, jsx_runtime_1.jsx)(IconBase_1.IconBase, Object.assign({ icon:
|
|
22
|
+
return (0, jsx_runtime_1.jsx)(IconBase_1.IconBase, Object.assign({ icon: Icon }, props));
|
|
9
23
|
};
|
|
10
24
|
exports.IconSleep1 = IconSleep1;
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
2
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
14
|
exports.IconSleep2 = void 0;
|
|
4
15
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const lu_1 = require("react-icons/lu");
|
|
6
16
|
const IconBase_1 = require("./IconBase");
|
|
17
|
+
const Icon = (_a) => {
|
|
18
|
+
var { size = 20, color = 'currentColor', className } = _a, rest = __rest(_a, ["size", "color", "className"]);
|
|
19
|
+
return ((0, jsx_runtime_1.jsxs)("svg", Object.assign({ width: size, height: size, viewBox: "0 0 24 24", fill: "none", className: className }, rest, { children: [(0, jsx_runtime_1.jsx)("circle", { cx: "12", cy: "12", r: "10", stroke: color, strokeWidth: "2", fill: "none" }), (0, jsx_runtime_1.jsx)("path", { d: "M 12 12 L 22 12 A 10 10 0 0 1 12 22 Z", fill: color })] })));
|
|
20
|
+
};
|
|
7
21
|
const IconSleep2 = (props) => {
|
|
8
|
-
return (0, jsx_runtime_1.jsx)(IconBase_1.IconBase, Object.assign({ icon:
|
|
22
|
+
return (0, jsx_runtime_1.jsx)(IconBase_1.IconBase, Object.assign({ icon: Icon }, props));
|
|
9
23
|
};
|
|
10
24
|
exports.IconSleep2 = IconSleep2;
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
2
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
14
|
exports.IconSleep3 = void 0;
|
|
4
15
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const lu_1 = require("react-icons/lu");
|
|
6
16
|
const IconBase_1 = require("./IconBase");
|
|
17
|
+
const Icon = (_a) => {
|
|
18
|
+
var { size = 20, color = 'currentColor', className } = _a, rest = __rest(_a, ["size", "color", "className"]);
|
|
19
|
+
return ((0, jsx_runtime_1.jsxs)("svg", Object.assign({ width: size, height: size, viewBox: "0 0 24 24", fill: "none", className: className }, rest, { children: [(0, jsx_runtime_1.jsx)("circle", { cx: "12", cy: "12", r: "10", stroke: color, strokeWidth: "2", fill: "none" }), (0, jsx_runtime_1.jsx)("path", { d: "M 12 12 L 22 12 A 10 10 0 0 1 2 12 Z", fill: color })] })));
|
|
20
|
+
};
|
|
7
21
|
const IconSleep3 = (props) => {
|
|
8
|
-
return (0, jsx_runtime_1.jsx)(IconBase_1.IconBase, Object.assign({ icon:
|
|
22
|
+
return (0, jsx_runtime_1.jsx)(IconBase_1.IconBase, Object.assign({ icon: Icon }, props));
|
|
9
23
|
};
|
|
10
24
|
exports.IconSleep3 = IconSleep3;
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
2
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
14
|
exports.IconSleep4 = void 0;
|
|
4
15
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const lu_1 = require("react-icons/lu");
|
|
6
16
|
const IconBase_1 = require("./IconBase");
|
|
17
|
+
const Icon = (_a) => {
|
|
18
|
+
var { size = 20, color = 'currentColor', className } = _a, rest = __rest(_a, ["size", "color", "className"]);
|
|
19
|
+
return ((0, jsx_runtime_1.jsxs)("svg", Object.assign({ width: size, height: size, viewBox: "0 0 24 24", fill: "none", className: className }, rest, { children: [(0, jsx_runtime_1.jsx)("circle", { cx: "12", cy: "12", r: "10", stroke: color, strokeWidth: "2", fill: "none" }), (0, jsx_runtime_1.jsx)("path", { d: "M 12 12 L 22 12 A 10 10 0 0 1 2 12 A 10 10 0 0 1 12 2 Z", fill: color })] })));
|
|
20
|
+
};
|
|
7
21
|
const IconSleep4 = (props) => {
|
|
8
|
-
return (0, jsx_runtime_1.jsx)(IconBase_1.IconBase, Object.assign({ icon:
|
|
22
|
+
return (0, jsx_runtime_1.jsx)(IconBase_1.IconBase, Object.assign({ icon: Icon }, props));
|
|
9
23
|
};
|
|
10
24
|
exports.IconSleep4 = IconSleep4;
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
2
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
14
|
exports.IconSleep5 = void 0;
|
|
4
15
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const lu_1 = require("react-icons/lu");
|
|
6
16
|
const IconBase_1 = require("./IconBase");
|
|
17
|
+
const Icon = (_a) => {
|
|
18
|
+
var { size = 20, color = 'currentColor', className } = _a, rest = __rest(_a, ["size", "color", "className"]);
|
|
19
|
+
return ((0, jsx_runtime_1.jsx)("svg", Object.assign({ width: size, height: size, viewBox: "0 0 24 24", fill: "none", className: className }, rest, { children: (0, jsx_runtime_1.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: color }) })));
|
|
20
|
+
};
|
|
7
21
|
const IconSleep5 = (props) => {
|
|
8
|
-
return (0, jsx_runtime_1.jsx)(IconBase_1.IconBase, Object.assign({ icon:
|
|
22
|
+
return (0, jsx_runtime_1.jsx)(IconBase_1.IconBase, Object.assign({ icon: Icon }, props));
|
|
9
23
|
};
|
|
10
24
|
exports.IconSleep5 = IconSleep5;
|