@rovula/ui 0.0.4 → 0.0.5

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 (72) hide show
  1. package/dist/cjs/bundle.css +1207 -0
  2. package/dist/cjs/bundle.js +2 -0
  3. package/dist/cjs/bundle.js.map +1 -0
  4. package/dist/cjs/types/components/Button/Button.d.ts +15 -0
  5. package/dist/cjs/types/components/Button/Button.styles.d.ts +7 -0
  6. package/dist/cjs/types/components/Button/Buttons.stories.d.ts +375 -0
  7. package/dist/cjs/types/components/Text/Text.d.ts +12 -0
  8. package/dist/cjs/types/components/Text/Text.stories.d.ts +35 -0
  9. package/dist/cjs/types/index.d.ts +7 -0
  10. package/dist/components/Button/Button.js +31 -0
  11. package/dist/components/Button/Button.styles.js +90 -0
  12. package/dist/components/Button/Buttons.stories.js +66 -0
  13. package/dist/components/Form/Form.js +106 -0
  14. package/dist/components/Form/Text.js +6 -0
  15. package/dist/components/Form/TextInput.js +6 -0
  16. package/dist/components/Table/Table.js +6 -0
  17. package/dist/components/Tabs/Tabs.js +8 -0
  18. package/dist/components/Text/Text.js +6 -0
  19. package/dist/components/Text/Text.stories.js +73 -0
  20. package/dist/esm/bundle.css +1207 -0
  21. package/dist/esm/bundle.js +2 -0
  22. package/dist/esm/bundle.js.map +1 -0
  23. package/dist/esm/types/components/Button/Button.d.ts +15 -0
  24. package/dist/esm/types/components/Button/Button.styles.d.ts +7 -0
  25. package/dist/esm/types/components/Button/Buttons.stories.d.ts +375 -0
  26. package/dist/esm/types/components/Form/Form.d.ts +12 -0
  27. package/dist/esm/types/components/Form/Text.d.ts +9 -0
  28. package/dist/esm/types/components/Form/TextInput.d.ts +11 -0
  29. package/dist/esm/types/components/Table/Table.d.ts +11 -0
  30. package/dist/esm/types/components/Tabs/Tabs.d.ts +11 -0
  31. package/dist/esm/types/components/Text/Text.d.ts +12 -0
  32. package/dist/esm/types/components/Text/Text.stories.d.ts +35 -0
  33. package/dist/esm/types/index.d.ts +7 -0
  34. package/dist/esm/types/utils/datetime.d.ts +9 -0
  35. package/dist/index.d.ts +67 -0
  36. package/dist/index.js +12 -0
  37. package/dist/src/theme/global.css +1485 -0
  38. package/dist/theme/global.css +136 -0
  39. package/dist/theme/main-preset.js +159 -0
  40. package/dist/theme/plugins/utilities/typography.js +69 -0
  41. package/dist/theme/presets/colors.js +140 -0
  42. package/dist/utils/datetime.js +30 -0
  43. package/package.json +41 -10
  44. package/src/components/Button/Button.styles.ts +98 -0
  45. package/src/components/Button/Button.tsx +48 -18
  46. package/src/components/Button/Buttons.stories.tsx +120 -0
  47. package/src/components/Text/Text.stories.tsx +112 -0
  48. package/src/components/Text/Text.tsx +59 -0
  49. package/src/index.ts +21 -0
  50. package/src/stories/Typography.mdx +160 -0
  51. package/src/theme/global.css +136 -0
  52. package/src/theme/main-preset.js +159 -0
  53. package/src/theme/plugins/utilities/typography.js +69 -0
  54. package/src/theme/presets/colors.js +140 -0
  55. package/dist/main.d.ts +0 -7
  56. package/dist/main.js +0 -25
  57. package/dist/src/components/Button/Button.d.ts +0 -12
  58. package/dist/src/components/Button/Button.js +0 -10
  59. package/dist/src/components/Form/Form.js +0 -91
  60. package/dist/src/components/Form/Text.js +0 -10
  61. package/dist/src/components/Form/TextInput.js +0 -10
  62. package/dist/src/components/Table/Table.js +0 -13
  63. package/dist/src/components/Tabs/Tabs.js +0 -33
  64. package/dist/src/style.css +0 -3
  65. package/dist/src/utils/datetime.js +0 -37
  66. package/src/style.css +0 -3
  67. /package/dist/{src → cjs/types}/components/Form/Form.d.ts +0 -0
  68. /package/dist/{src → cjs/types}/components/Form/Text.d.ts +0 -0
  69. /package/dist/{src → cjs/types}/components/Form/TextInput.d.ts +0 -0
  70. /package/dist/{src → cjs/types}/components/Table/Table.d.ts +0 -0
  71. /package/dist/{src → cjs/types}/components/Tabs/Tabs.d.ts +0 -0
  72. /package/dist/{src → cjs/types}/utils/datetime.d.ts +0 -0
@@ -0,0 +1,90 @@
1
+ import { cva } from "class-variance-authority";
2
+ export var buttonCva = cva([
3
+ // "inline-flex items-center justify-center align-middle no-underline transition-colors ease-in-out duration-300",
4
+ // "font-sans appearance-none select-none rounded-sm border font-medium tracking-[.02857em]",
5
+ // "aria-disabled:pointer-events-none aria-disabled:opacity-50 aria-disabled:cursor-not-allowed",
6
+ "gap-2 font-bold text-white hover:bg-opacity-90 active:scale-[98%]",
7
+ ], {
8
+ variants: {
9
+ color: {
10
+ primary: "bg-primary border-primary text-primary hover:bg-primary-80",
11
+ secondary: "border-secondary bg-secondary-100 text-secondary-foreground hover:bg-secondary-120",
12
+ tertiary: "border-tertiary-120 bg-tertiary-120 text-tertiary-120 hover:bg-tertiary-100",
13
+ success: "border-success bg-success text-success hover:bg-success-120",
14
+ info: "border-info bg-info text-info hover:bg-info-100",
15
+ warning: "border-warning bg-warning text-warning hover:bg-warning-100 hover:border-warning-100",
16
+ error: "border-error bg-error text-error hover:bg-error-120 hover:border-error-120",
17
+ },
18
+ size: {
19
+ sm: "px-3 py-1 text-sm rounded-[--btn-rounded-sm]",
20
+ md: "px-4 py-2 text-sm rounded-[--btn-rounded-md]",
21
+ lg: "px-6 py-4 text-base rounded-[--btn-rounded-lg]",
22
+ },
23
+ variant: {
24
+ solid: "border",
25
+ outline: "border bg-transparent hover:bg-opacity-20",
26
+ flat: "bg-transparent hover:bg-opacity-20",
27
+ link: "bg-transparent underline underline-offset-4 hover:bg-transparent hover:text-opacity-80",
28
+ },
29
+ disabled: {
30
+ true: "pointer-events-none border-transparent bg-secondary-110 text-secondary-130",
31
+ },
32
+ fullwidth: {
33
+ true: "w-full",
34
+ },
35
+ },
36
+ compoundVariants: [
37
+ {
38
+ variant: ["flat", "link"],
39
+ disabled: true,
40
+ class: "border-transparent bg-transparent",
41
+ },
42
+ {
43
+ variant: "solid",
44
+ color: "primary",
45
+ class: "text-primary-foreground",
46
+ },
47
+ {
48
+ variant: "solid",
49
+ color: "secondary",
50
+ class: "text-secondary-foreground",
51
+ },
52
+ {
53
+ variant: "solid",
54
+ disabled: true,
55
+ color: "secondary",
56
+ class: "text-white",
57
+ },
58
+ {
59
+ variant: "solid",
60
+ color: "tertiary",
61
+ class: "text-tertiary-foreground",
62
+ },
63
+ {
64
+ variant: "solid",
65
+ color: "success",
66
+ class: "text-success-foreground",
67
+ },
68
+ {
69
+ variant: "solid",
70
+ color: "info",
71
+ class: "text-info-foreground",
72
+ },
73
+ {
74
+ variant: "solid",
75
+ color: "warning",
76
+ class: "text-warning-foreground",
77
+ },
78
+ {
79
+ variant: "solid",
80
+ color: "error",
81
+ class: "text-error-foreground",
82
+ },
83
+ ],
84
+ defaultVariants: {
85
+ size: "md",
86
+ color: "primary",
87
+ variant: "solid",
88
+ fullwidth: true,
89
+ },
90
+ });
@@ -0,0 +1,66 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import Button from "./Button";
14
+ // More on how to set up stories at: https://storybook.js.org/docs/7.0/react/writing-stories/introduction
15
+ var meta = {
16
+ title: "Components/Button",
17
+ component: Button,
18
+ tags: ["autodocs"],
19
+ parameters: {
20
+ // More on how to position stories at: https://storybook.js.org/docs/7.0/react/configure/story-layout
21
+ layout: "fullscreen",
22
+ },
23
+ decorators: [
24
+ function (Story) { return (_jsx("div", { className: "p-5", children: _jsx(Story, {}) })); },
25
+ ],
26
+ };
27
+ export default meta;
28
+ export var Solid = {
29
+ args: {
30
+ title: "Button",
31
+ },
32
+ render: function (args) {
33
+ var props = __assign(__assign({}, args), { className: "capitalize" });
34
+ return (_jsxs("div", { className: "flex gap-2", children: [_jsx(Button, __assign({ color: "primary" }, props, { title: "primary" })), _jsx(Button, __assign({ color: "secondary" }, props, { title: "secondary" })), _jsx(Button, __assign({ color: "tertiary" }, props, { title: "tertiary" })), _jsx(Button, __assign({ color: "info" }, props, { title: "info" })), _jsx(Button, __assign({ color: "success" }, props, { title: "success" })), _jsx(Button, __assign({ color: "warning" }, props, { title: "warning" })), _jsx(Button, __assign({ color: "error" }, props, { title: "error" }))] }));
35
+ },
36
+ };
37
+ export var Outline = {
38
+ args: {
39
+ title: "Button",
40
+ variant: "outline",
41
+ },
42
+ render: function (args) {
43
+ var props = __assign(__assign({}, args), { className: "capitalize" });
44
+ return (_jsxs("div", { className: "flex gap-2", children: [_jsx(Button, __assign({ color: "primary" }, props, { title: "primary" })), _jsx(Button, __assign({ color: "secondary" }, props, { title: "secondary" })), _jsx(Button, __assign({ color: "tertiary" }, props, { title: "tertiary" })), _jsx(Button, __assign({ color: "info" }, props, { title: "info" })), _jsx(Button, __assign({ color: "success" }, props, { title: "success" })), _jsx(Button, __assign({ color: "warning" }, props, { title: "warning" })), _jsx(Button, __assign({ color: "error" }, props, { title: "error" }))] }));
45
+ },
46
+ };
47
+ export var Flat = {
48
+ args: {
49
+ title: "Button",
50
+ variant: "flat",
51
+ },
52
+ render: function (args) {
53
+ var props = __assign(__assign({}, args), { className: "capitalize" });
54
+ return (_jsxs("div", { className: "flex gap-2", children: [_jsx(Button, __assign({ color: "primary" }, props, { title: "primary" })), _jsx(Button, __assign({ color: "secondary" }, props, { title: "secondary" })), _jsx(Button, __assign({ color: "tertiary" }, props, { title: "tertiary" })), _jsx(Button, __assign({ color: "info" }, props, { title: "info" })), _jsx(Button, __assign({ color: "success" }, props, { title: "success" })), _jsx(Button, __assign({ color: "warning" }, props, { title: "warning" })), _jsx(Button, __assign({ color: "error" }, props, { title: "error" }))] }));
55
+ },
56
+ };
57
+ export var Link = {
58
+ args: {
59
+ title: "Button",
60
+ variant: "link",
61
+ },
62
+ render: function (args) {
63
+ var props = __assign(__assign({}, args), { className: "capitalize" });
64
+ return (_jsxs("div", { className: "flex gap-2", children: [_jsx(Button, __assign({ color: "primary" }, props, { title: "primary" })), _jsx(Button, __assign({ color: "secondary" }, props, { title: "secondary" })), _jsx(Button, __assign({ color: "tertiary" }, props, { title: "tertiary" })), _jsx(Button, __assign({ color: "info" }, props, { title: "info" })), _jsx(Button, __assign({ color: "success" }, props, { title: "success" })), _jsx(Button, __assign({ color: "warning" }, props, { title: "warning" })), _jsx(Button, __assign({ color: "error" }, props, { title: "error" }))] }));
65
+ },
66
+ };
@@ -0,0 +1,106 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
+ return new (P || (P = Promise))(function (resolve, reject) {
15
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
19
+ });
20
+ };
21
+ var __generator = (this && this.__generator) || function (thisArg, body) {
22
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
23
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ function verb(n) { return function (v) { return step([n, v]); }; }
25
+ function step(op) {
26
+ if (f) throw new TypeError("Generator is already executing.");
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
+ if (y = 0, t) op = [op[0] & 2, t.value];
30
+ switch (op[0]) {
31
+ case 0: case 1: t = op; break;
32
+ case 4: _.label++; return { value: op[1], done: false };
33
+ case 5: _.label++; y = op[1]; op = [0]; continue;
34
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
35
+ default:
36
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
37
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
38
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
39
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
40
+ if (t[2]) _.ops.pop();
41
+ _.trys.pop(); continue;
42
+ }
43
+ op = body.call(thisArg, _);
44
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
45
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
+ }
47
+ };
48
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
49
+ // src/Form.tsx
50
+ import { useState } from "react";
51
+ import * as yup from "yup";
52
+ var schema = yup.object().shape({
53
+ name: yup.string().required("Name is required"),
54
+ email: yup.string().email("Invalid email").required("Email is required"),
55
+ password: yup
56
+ .string()
57
+ .min(6, "Password must be at least 6 characters")
58
+ .required("Password is required"),
59
+ });
60
+ var Form = function (_a) {
61
+ var onSubmit = _a.onSubmit, _b = _a.className, className = _b === void 0 ? "" : _b;
62
+ var _c = useState({
63
+ name: "",
64
+ email: "",
65
+ password: "",
66
+ }), values = _c[0], setValues = _c[1];
67
+ var _d = useState({}), errors = _d[0], setErrors = _d[1];
68
+ var handleChange = function (e) {
69
+ var _a;
70
+ var _b = e.target, name = _b.name, value = _b.value;
71
+ setValues(__assign(__assign({}, values), (_a = {}, _a[name] = value, _a)));
72
+ };
73
+ var handleSubmit = function (e) { return __awaiter(void 0, void 0, void 0, function () {
74
+ var err_1, validationErrors_1;
75
+ return __generator(this, function (_a) {
76
+ switch (_a.label) {
77
+ case 0:
78
+ e.preventDefault();
79
+ _a.label = 1;
80
+ case 1:
81
+ _a.trys.push([1, 3, , 4]);
82
+ return [4 /*yield*/, schema.validate(values, { abortEarly: false })];
83
+ case 2:
84
+ _a.sent();
85
+ setErrors({});
86
+ onSubmit(values);
87
+ return [3 /*break*/, 4];
88
+ case 3:
89
+ err_1 = _a.sent();
90
+ if (err_1 instanceof yup.ValidationError) {
91
+ validationErrors_1 = {};
92
+ err_1.inner.forEach(function (error) {
93
+ if (error.path) {
94
+ validationErrors_1[error.path] = error.message;
95
+ }
96
+ });
97
+ setErrors(validationErrors_1);
98
+ }
99
+ return [3 /*break*/, 4];
100
+ case 4: return [2 /*return*/];
101
+ }
102
+ });
103
+ }); };
104
+ return (_jsxs("form", { className: "form ".concat(className), onSubmit: handleSubmit, children: [_jsxs("div", { className: "form-group", children: [_jsx("label", { htmlFor: "name", children: "Name" }), _jsx("input", { id: "name", name: "name", type: "text", value: values.name, onChange: handleChange }), errors.name && _jsx("span", { className: "error", children: errors.name })] }), _jsxs("div", { className: "form-group", children: [_jsx("label", { htmlFor: "email", children: "Email" }), _jsx("input", { id: "email", name: "email", type: "email", value: values.email, onChange: handleChange }), errors.email && _jsx("span", { className: "error", children: errors.email })] }), _jsxs("div", { className: "form-group", children: [_jsx("label", { htmlFor: "password", children: "Password" }), _jsx("input", { id: "password", name: "password", type: "password", value: values.password, onChange: handleChange }), errors.password && _jsx("span", { className: "error", children: errors.password })] }), _jsx("button", { type: "submit", children: "Submit" })] }));
105
+ };
106
+ export default Form;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ var Text = function (_a) {
3
+ var children = _a.children, _b = _a.size, size = _b === void 0 ? "medium" : _b, _c = _a.color, color = _c === void 0 ? "black" : _c, _d = _a.className, className = _d === void 0 ? "" : _d;
4
+ return (_jsx("span", { className: "text ".concat(size, " ").concat(className), style: { color: color }, children: children }));
5
+ };
6
+ export default Text;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ var TextInput = function (_a) {
3
+ var value = _a.value, onChange = _a.onChange, _b = _a.placeholder, placeholder = _b === void 0 ? '' : _b, _c = _a.type, type = _c === void 0 ? 'text' : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.className, className = _e === void 0 ? '' : _e;
4
+ return (_jsx("input", { className: "text-input ".concat(className), type: type, value: value, onChange: onChange, placeholder: placeholder, disabled: disabled }));
5
+ };
6
+ export default TextInput;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ var Table = function (_a) {
3
+ var columns = _a.columns, data = _a.data;
4
+ return (_jsxs("table", { className: "table", children: [_jsx("thead", { children: _jsx("tr", { children: columns.map(function (column, index) { return (_jsx("th", { children: column.header }, index)); }) }) }), _jsx("tbody", { children: data.map(function (row, rowIndex) { return (_jsx("tr", { children: columns.map(function (column, colIndex) { return (_jsx("td", { children: row[column.accessor] }, colIndex)); }) }, rowIndex)); }) })] }));
5
+ };
6
+ export default Table;
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from "react";
3
+ var Tabs = function (_a) {
4
+ var tabs = _a.tabs, _b = _a.initialTab, initialTab = _b === void 0 ? 0 : _b;
5
+ var _c = useState(initialTab), activeTab = _c[0], setActiveTab = _c[1];
6
+ return (_jsxs("div", { className: "tabs", children: [_jsx("div", { className: "tab-buttons", children: tabs.map(function (tab, index) { return (_jsx("button", { className: index === activeTab ? "active" : "", onClick: function () { return setActiveTab(index); }, children: tab.label }, index)); }) }), _jsx("div", { className: "tab-content", children: tabs[activeTab].content })] }));
7
+ };
8
+ export default Tabs;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ var Text = function (_a) {
3
+ var _b = _a.variant, variant = _b === void 0 ? "body1" : _b, _c = _a.tag, Tag = _c === void 0 ? "p" : _c, children = _a.children, className = _a.className, color = _a.color, style = _a.style;
4
+ return (_jsx(Tag, { className: "typography-".concat(variant, " text-").concat(color, " ").concat(className), style: style, children: children }));
5
+ };
6
+ export default Text;
@@ -0,0 +1,73 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import Text from "./Text";
14
+ // More on how to set up stories at: https://storybook.js.org/docs/7.0/react/writing-stories/introduction
15
+ var meta = {
16
+ title: "Components/Text",
17
+ component: Text,
18
+ tags: ["autodocs"],
19
+ parameters: {
20
+ // More on how to position stories at: https://storybook.js.org/docs/7.0/react/configure/story-layout
21
+ layout: "fullscreen",
22
+ },
23
+ decorators: [
24
+ function (Story) { return (_jsx("div", { className: "p-5 flex w-full", children: _jsx(Story, {}) })); },
25
+ ],
26
+ };
27
+ export default meta;
28
+ var variant = [
29
+ "h1",
30
+ "h2",
31
+ "h3",
32
+ "h4",
33
+ "h5",
34
+ "h6",
35
+ "subtitile1",
36
+ "subtitile2",
37
+ "subtitile3",
38
+ "subtitile4",
39
+ "subtitile5",
40
+ "subtitile6",
41
+ "body1",
42
+ "body2",
43
+ "body3",
44
+ "body4",
45
+ "small1",
46
+ "small2",
47
+ "small3",
48
+ "label1",
49
+ "label2",
50
+ ];
51
+ var color = [
52
+ "primary",
53
+ "secondary",
54
+ "tertiary",
55
+ "success",
56
+ "info",
57
+ "warning",
58
+ "error",
59
+ ];
60
+ export var Default = {
61
+ args: {},
62
+ render: function (args) {
63
+ var props = __assign({}, args);
64
+ return (_jsx("div", { className: "flex flex-col gap-2 gap-y-6 w-full", children: variant.map(function (value) { return (_jsxs("div", { className: "flex flex-row ", children: [_jsx("div", { className: "w-[200px]", children: _jsx(Text, { variant: value, color: "primary", children: value }) }), _jsx("div", { className: "w-full", children: _jsx(Text, { variant: value, color: "primary", children: "Lorem ipsum dolor sit amet, adipiscing elit." }) })] }, value)); }) }));
65
+ },
66
+ };
67
+ export var Color = {
68
+ args: {},
69
+ render: function (args) {
70
+ var props = __assign({}, args);
71
+ return (_jsx("div", { className: "flex flex-col gap-2 gap-y-6 w-full", children: color.map(function (color, i) { return (_jsxs("div", { className: "flex flex-row ", children: [_jsx("div", { className: "w-[400px]", children: _jsx(Text, { variant: variant === null || variant === void 0 ? void 0 : variant[i], color: color, children: color }) }), _jsx("div", { className: "w-full", children: _jsx(Text, { variant: variant === null || variant === void 0 ? void 0 : variant[i], color: color, children: "Lorem ipsum dolor sit amet, adipiscing elit." }) })] }, color)); }) }));
72
+ },
73
+ };