@lerianstudio/sindarian-ui 1.0.0-beta.1 → 1.0.0-beta.11

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 (107) hide show
  1. package/dist/components/breadcrumb/index.js +2 -2
  2. package/dist/components/card/account-card/index.d.ts +32 -0
  3. package/dist/components/card/account-card/index.d.ts.map +1 -0
  4. package/dist/components/card/account-card/index.js +69 -0
  5. package/dist/components/card/basic-card/index.d.ts +6 -0
  6. package/dist/components/card/basic-card/index.d.ts.map +1 -0
  7. package/dist/components/card/basic-card/index.js +20 -0
  8. package/dist/components/card/dashboard-card/index.d.ts +5 -0
  9. package/dist/components/card/dashboard-card/index.d.ts.map +1 -0
  10. package/dist/components/card/dashboard-card/index.js +20 -0
  11. package/dist/components/card/entity-card/index.d.ts +21 -0
  12. package/dist/components/card/entity-card/index.d.ts.map +1 -0
  13. package/dist/components/card/entity-card/index.js +60 -0
  14. package/dist/components/card/index.d.ts +5 -0
  15. package/dist/components/card/index.d.ts.map +1 -0
  16. package/dist/components/card/index.js +20 -0
  17. package/dist/components/dialog/confirmation-dialog/index.d.ts +15 -0
  18. package/dist/components/dialog/confirmation-dialog/index.d.ts.map +1 -0
  19. package/dist/components/dialog/confirmation-dialog/index.js +28 -0
  20. package/dist/components/dialog/confirmation-dialog/use-confirm-dialog.d.ts +31 -0
  21. package/dist/components/dialog/confirmation-dialog/use-confirm-dialog.d.ts.map +1 -0
  22. package/dist/components/dialog/confirmation-dialog/use-confirm-dialog.js +55 -0
  23. package/dist/components/dialog/index.d.ts +4 -0
  24. package/dist/components/dialog/index.d.ts.map +1 -0
  25. package/dist/components/dialog/index.js +19 -0
  26. package/dist/components/dialog/large-dialog/index.d.ts +11 -0
  27. package/dist/components/dialog/large-dialog/index.d.ts.map +1 -0
  28. package/dist/components/dialog/large-dialog/index.js +21 -0
  29. package/dist/components/form/input-field/index.d.ts +3 -1
  30. package/dist/components/form/input-field/index.d.ts.map +1 -1
  31. package/dist/components/form/input-field/index.js +2 -2
  32. package/dist/components/form/password-field/index.d.ts +4 -4
  33. package/dist/components/form/password-field/index.d.ts.map +1 -1
  34. package/dist/components/form/password-field/index.js +8 -7
  35. package/dist/components/page-header/index.js +1 -1
  36. package/dist/components/pagination/index.js +1 -1
  37. package/dist/components/ui/alert/index.d.ts +5 -1
  38. package/dist/components/ui/alert/index.d.ts.map +1 -1
  39. package/dist/components/ui/alert/index.js +22 -8
  40. package/dist/components/ui/alert/styles.css +68 -0
  41. package/dist/components/ui/badge/index.d.ts +1 -1
  42. package/dist/components/ui/breadcrumb/index.d.ts.map +1 -1
  43. package/dist/components/ui/breadcrumb/index.js +5 -5
  44. package/dist/components/ui/breadcrumb/styles.css +27 -0
  45. package/dist/components/ui/button/index.d.ts +3 -2
  46. package/dist/components/ui/button/index.d.ts.map +1 -1
  47. package/dist/components/ui/button/index.js +19 -28
  48. package/dist/components/ui/button/styles.css +64 -0
  49. package/dist/components/ui/card/index.js +1 -1
  50. package/dist/components/ui/dialog/index.d.ts.map +1 -1
  51. package/dist/components/ui/dialog/index.js +6 -6
  52. package/dist/components/ui/dialog/styles.css +34 -0
  53. package/dist/components/ui/form.d.ts.map +1 -1
  54. package/dist/components/ui/form.js +1 -0
  55. package/dist/components/ui/icon-button/index.d.ts +13 -0
  56. package/dist/components/ui/icon-button/index.d.ts.map +1 -0
  57. package/dist/components/ui/icon-button/index.js +35 -0
  58. package/dist/components/ui/icon-button/styles.css +33 -0
  59. package/dist/components/ui/input/adornment.d.ts +9 -0
  60. package/dist/components/ui/input/adornment.d.ts.map +1 -0
  61. package/dist/components/ui/input/adornment.js +21 -0
  62. package/dist/components/ui/input/index.d.ts +16 -2
  63. package/dist/components/ui/input/index.d.ts.map +1 -1
  64. package/dist/components/ui/input/index.js +90 -2
  65. package/dist/components/ui/input/styles.css +68 -0
  66. package/dist/components/ui/multiple-select/index.d.ts +6 -6
  67. package/dist/components/ui/paper-collapsible/index.d.ts +9 -0
  68. package/dist/components/ui/paper-collapsible/index.d.ts.map +1 -0
  69. package/dist/components/ui/paper-collapsible/index.js +24 -0
  70. package/dist/components/ui/progress/index.d.ts +1 -1
  71. package/dist/components/ui/progress/index.d.ts.map +1 -1
  72. package/dist/components/ui/select/index.d.ts +1 -2
  73. package/dist/components/ui/select/index.d.ts.map +1 -1
  74. package/dist/components/ui/select/index.js +9 -18
  75. package/dist/components/ui/select/styles.css +57 -0
  76. package/dist/components/ui/stepper/index.d.ts.map +1 -1
  77. package/dist/components/ui/stepper/index.js +4 -4
  78. package/dist/components/ui/stepper/styles.css +41 -0
  79. package/dist/components/ui/tabs/index.d.ts.map +1 -1
  80. package/dist/components/ui/tabs/index.js +4 -4
  81. package/dist/components/ui/tabs/styles.css +31 -0
  82. package/dist/components/ui/toast/toaster.js +1 -1
  83. package/dist/globals.css +234 -0
  84. package/dist/hooks/use-time.d.ts +6 -0
  85. package/dist/hooks/use-time.d.ts.map +1 -0
  86. package/dist/hooks/use-time.js +20 -0
  87. package/dist/index.d.ts +5 -1
  88. package/dist/index.d.ts.map +1 -1
  89. package/dist/index.js +6 -1
  90. package/dist/public/arm.gif +0 -0
  91. package/dist/public/clap.gif +0 -0
  92. package/dist/public/confetti-ball.gif +0 -0
  93. package/dist/public/countries.json +21200 -21200
  94. package/dist/public/dizzy.gif +0 -0
  95. package/dist/public/electricity.gif +0 -0
  96. package/dist/public/gear.gif +0 -0
  97. package/dist/public/gem.gif +0 -0
  98. package/dist/public/pencil.gif +0 -0
  99. package/dist/public/robot.gif +0 -0
  100. package/dist/public/rocket.gif +0 -0
  101. package/dist/public/software.gif +0 -0
  102. package/dist/public/solar-system.gif +0 -0
  103. package/dist/public/unicorn.gif +0 -0
  104. package/package.json +22 -19
  105. package/dist/components/ui/input-with-icon/index.d.ts +0 -12
  106. package/dist/components/ui/input-with-icon/index.d.ts.map +0 -1
  107. package/dist/components/ui/input-with-icon/index.js +0 -57
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lerianstudio/sindarian-ui",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.11",
4
4
  "description": "Sindarian UI - A UI library for Midaz Console",
5
5
  "license": "ISC",
6
6
  "author": {
@@ -20,9 +20,10 @@
20
20
  ],
21
21
  "scripts": {
22
22
  "check-types": "tsc --noEmit",
23
- "build": "tsc && npm run copy:assets && npm run build:paths",
23
+ "build": "tsc && npm run copy:assets && npm run copy:styles && npm run build:paths",
24
24
  "build:paths": "tsc-alias -p tsconfig.json",
25
25
  "copy:assets": "copyfiles -f src/public/**/* dist/public",
26
+ "copy:styles": "copyfiles -u 1 src/**/*.css dist",
26
27
  "lint": "eslint . --fix",
27
28
  "storybook": "storybook dev -p 6007",
28
29
  "build-storybook": "storybook build",
@@ -32,33 +33,36 @@
32
33
  },
33
34
  "dependencies": {
34
35
  "@radix-ui/react-avatar": "^1.1.10",
35
- "@radix-ui/react-checkbox": "^1.3.2",
36
- "@radix-ui/react-collapsible": "^1.1.11",
37
- "@radix-ui/react-dialog": "^1.1.14",
38
- "@radix-ui/react-dropdown-menu": "^2.1.15",
36
+ "@radix-ui/react-checkbox": "^1.3.3",
37
+ "@radix-ui/react-collapsible": "^1.1.12",
38
+ "@radix-ui/react-dialog": "^1.1.15",
39
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
39
40
  "@radix-ui/react-label": "^2.1.7",
40
- "@radix-ui/react-popover": "^1.1.14",
41
+ "@radix-ui/react-popover": "^1.1.15",
41
42
  "@radix-ui/react-progress": "^1.1.7",
42
- "@radix-ui/react-select": "^2.2.5",
43
+ "@radix-ui/react-select": "^2.2.6",
43
44
  "@radix-ui/react-separator": "^1.1.7",
44
45
  "@radix-ui/react-slot": "^1.2.3",
45
- "@radix-ui/react-switch": "^1.2.5",
46
- "@radix-ui/react-tabs": "^1.1.12",
47
- "@radix-ui/react-toast": "^1.2.14",
48
- "@radix-ui/react-tooltip": "^1.2.7",
49
- "@tailwindcss/postcss": "^4.1.11",
46
+ "@radix-ui/react-switch": "^1.2.6",
47
+ "@radix-ui/react-tabs": "^1.1.13",
48
+ "@radix-ui/react-toast": "^1.2.15",
49
+ "@radix-ui/react-tooltip": "^1.2.8",
50
+ "@tailwindcss/postcss": "^4.1.16",
50
51
  "class-variance-authority": "^0.7.1",
51
52
  "clsx": "^2.1.1",
52
53
  "cmdk": "^1.1.1",
54
+ "dayjs": "^1.11.18",
53
55
  "postcss": "^8.5.6",
54
- "tailwind-merge": "^3.3.1"
56
+ "tailwind-merge": "^3.3.1",
57
+ "tailwindcss": "^4.1.16",
58
+ "tw-animate-css": "^1.4.0"
55
59
  },
56
60
  "peerDependencies": {
57
61
  "lodash": ">=4.17.0",
62
+ "lucide-react": ">=0.536.0",
58
63
  "react": ">=19.0.0",
59
64
  "react-dom": ">=19.0.0",
60
- "react-hook-form": ">=7.60.0",
61
- "lucide-react": ">=0.536.0"
65
+ "react-hook-form": ">=7.60.0"
62
66
  },
63
67
  "devDependencies": {
64
68
  "@chromatic-com/storybook": "^4.1.0",
@@ -66,9 +70,8 @@
66
70
  "@storybook/addon-links": "^9.1.1",
67
71
  "@storybook/addon-styling-webpack": "^1.0.1",
68
72
  "@storybook/nextjs": "^9.1.1",
69
- "@types/react": "^19.1.9",
70
- "storybook": "^9.1.1",
71
- "tailwindcss": "^4.1.11"
73
+ "@types/react": "^19.2.2",
74
+ "storybook": "^9.1.1"
72
75
  },
73
76
  "publishConfig": {
74
77
  "access": "public"
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import { VariantProps } from 'class-variance-authority';
3
- import type { JSX } from 'react';
4
- declare const InputVariants: (props?: ({
5
- iconPosition?: "right" | "left" | null | undefined;
6
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
- export interface InputWithIconProps extends React.InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof InputVariants> {
8
- icon?: JSX.Element;
9
- }
10
- declare const InputWithIcon: React.ForwardRefExoticComponent<InputWithIconProps & React.RefAttributes<HTMLInputElement>>;
11
- export { InputWithIcon };
12
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/input-with-icon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,EAAE,YAAY,EAAO,MAAM,0BAA0B,CAAA;AAE5D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAEhC,QAAA,MAAM,aAAa;;8EAWjB,CAAA;AAEF,MAAM,WAAW,kBACf,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EACjD,YAAY,CAAC,OAAO,aAAa,CAAC;IACpC,IAAI,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;CACnB;AAED,QAAA,MAAM,aAAa,6FA4BlB,CAAA;AAID,OAAO,EAAE,aAAa,EAAE,CAAA"}
@@ -1,57 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.InputWithIcon = void 0;
37
- const jsx_runtime_1 = require("react/jsx-runtime");
38
- const React = __importStar(require("react"));
39
- const input_1 = require("../input");
40
- const utils_1 = require("../../../lib/utils");
41
- const class_variance_authority_1 = require("class-variance-authority");
42
- const InputVariants = (0, class_variance_authority_1.cva)('relative', {
43
- variants: {
44
- iconPosition: {
45
- left: 'absolute left-3 top-1/2 -translate-y-1/2 transform text-muted-foreground',
46
- right: 'absolute left-auto right-3 top-1/2 -translate-y-1/2 transform text-muted-foreground'
47
- }
48
- },
49
- defaultVariants: {
50
- iconPosition: 'left'
51
- }
52
- });
53
- const InputWithIcon = React.forwardRef(({ className, icon, iconPosition, ...props }, ref) => {
54
- return ((0, jsx_runtime_1.jsxs)("div", { className: "relative flex h-auto items-center", children: [iconPosition !== 'right' && ((0, jsx_runtime_1.jsx)("span", { className: (0, utils_1.cn)('text-shadcn-400', InputVariants({ iconPosition })), children: icon })), (0, jsx_runtime_1.jsx)(input_1.Input, { ref: ref, className: (0, utils_1.cn)('border-shadcn-300 placeholder:text-muted-foreground flex h-9 w-full rounded-md border bg-transparent py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50', className, iconPosition !== 'right' ? 'pr-4 pl-10' : 'pr-10 pl-4'), ...props }), iconPosition === 'right' && ((0, jsx_runtime_1.jsx)("span", { className: (0, utils_1.cn)(InputVariants({ iconPosition })), children: icon }))] }));
55
- });
56
- exports.InputWithIcon = InputWithIcon;
57
- InputWithIcon.displayName = 'Input';