@lerianstudio/sindarian-ui 1.0.0-beta.7 → 1.0.0-beta.8

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 (95) 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/badge/index.d.ts +1 -1
  41. package/dist/components/ui/breadcrumb/index.d.ts.map +1 -1
  42. package/dist/components/ui/breadcrumb/index.js +5 -5
  43. package/dist/components/ui/button/index.d.ts +3 -2
  44. package/dist/components/ui/button/index.d.ts.map +1 -1
  45. package/dist/components/ui/button/index.js +19 -28
  46. package/dist/components/ui/card/index.js +1 -1
  47. package/dist/components/ui/dialog/index.d.ts.map +1 -1
  48. package/dist/components/ui/dialog/index.js +6 -6
  49. package/dist/components/ui/icon-button/index.d.ts +13 -0
  50. package/dist/components/ui/icon-button/index.d.ts.map +1 -0
  51. package/dist/components/ui/icon-button/index.js +35 -0
  52. package/dist/components/ui/input/adornment.d.ts +9 -0
  53. package/dist/components/ui/input/adornment.d.ts.map +1 -0
  54. package/dist/components/ui/input/adornment.js +21 -0
  55. package/dist/components/ui/input/index.d.ts +16 -2
  56. package/dist/components/ui/input/index.d.ts.map +1 -1
  57. package/dist/components/ui/input/index.js +90 -2
  58. package/dist/components/ui/multiple-select/index.d.ts +6 -6
  59. package/dist/components/ui/paper-collapsible/index.d.ts +9 -0
  60. package/dist/components/ui/paper-collapsible/index.d.ts.map +1 -0
  61. package/dist/components/ui/paper-collapsible/index.js +24 -0
  62. package/dist/components/ui/progress/index.d.ts +1 -1
  63. package/dist/components/ui/progress/index.d.ts.map +1 -1
  64. package/dist/components/ui/select/index.d.ts +1 -2
  65. package/dist/components/ui/select/index.d.ts.map +1 -1
  66. package/dist/components/ui/select/index.js +9 -18
  67. package/dist/components/ui/stepper/index.d.ts.map +1 -1
  68. package/dist/components/ui/stepper/index.js +4 -4
  69. package/dist/components/ui/tabs/index.d.ts.map +1 -1
  70. package/dist/components/ui/tabs/index.js +4 -4
  71. package/dist/components/ui/toast/toaster.js +1 -1
  72. package/dist/hooks/use-time.d.ts +6 -0
  73. package/dist/hooks/use-time.d.ts.map +1 -0
  74. package/dist/hooks/use-time.js +20 -0
  75. package/dist/index.d.ts +4 -1
  76. package/dist/index.d.ts.map +1 -1
  77. package/dist/index.js +4 -1
  78. package/dist/public/arm.gif +0 -0
  79. package/dist/public/clap.gif +0 -0
  80. package/dist/public/confetti-ball.gif +0 -0
  81. package/dist/public/countries.json +21200 -21200
  82. package/dist/public/dizzy.gif +0 -0
  83. package/dist/public/electricity.gif +0 -0
  84. package/dist/public/gear.gif +0 -0
  85. package/dist/public/gem.gif +0 -0
  86. package/dist/public/pencil.gif +0 -0
  87. package/dist/public/robot.gif +0 -0
  88. package/dist/public/rocket.gif +0 -0
  89. package/dist/public/software.gif +0 -0
  90. package/dist/public/solar-system.gif +0 -0
  91. package/dist/public/unicorn.gif +0 -0
  92. package/package.json +20 -18
  93. package/dist/components/ui/input-with-icon/index.d.ts +0 -12
  94. package/dist/components/ui/input-with-icon/index.d.ts.map +0 -1
  95. 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.7",
3
+ "version": "1.0.0-beta.8",
4
4
  "description": "Sindarian UI - A UI library for Midaz Console",
5
5
  "license": "ISC",
6
6
  "author": {
@@ -32,33 +32,36 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@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",
35
+ "@radix-ui/react-checkbox": "^1.3.3",
36
+ "@radix-ui/react-collapsible": "^1.1.12",
37
+ "@radix-ui/react-dialog": "^1.1.15",
38
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
39
39
  "@radix-ui/react-label": "^2.1.7",
40
- "@radix-ui/react-popover": "^1.1.14",
40
+ "@radix-ui/react-popover": "^1.1.15",
41
41
  "@radix-ui/react-progress": "^1.1.7",
42
- "@radix-ui/react-select": "^2.2.5",
42
+ "@radix-ui/react-select": "^2.2.6",
43
43
  "@radix-ui/react-separator": "^1.1.7",
44
44
  "@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",
45
+ "@radix-ui/react-switch": "^1.2.6",
46
+ "@radix-ui/react-tabs": "^1.1.13",
47
+ "@radix-ui/react-toast": "^1.2.15",
48
+ "@radix-ui/react-tooltip": "^1.2.8",
49
+ "@tailwindcss/postcss": "^4.1.16",
50
50
  "class-variance-authority": "^0.7.1",
51
51
  "clsx": "^2.1.1",
52
52
  "cmdk": "^1.1.1",
53
+ "dayjs": "^1.11.18",
53
54
  "postcss": "^8.5.6",
54
- "tailwind-merge": "^3.3.1"
55
+ "tailwind-merge": "^3.3.1",
56
+ "tailwindcss": "^4.1.16",
57
+ "tw-animate-css": "^1.4.0"
55
58
  },
56
59
  "peerDependencies": {
57
60
  "lodash": ">=4.17.0",
61
+ "lucide-react": ">=0.536.0",
58
62
  "react": ">=19.0.0",
59
63
  "react-dom": ">=19.0.0",
60
- "react-hook-form": ">=7.60.0",
61
- "lucide-react": ">=0.536.0"
64
+ "react-hook-form": ">=7.60.0"
62
65
  },
63
66
  "devDependencies": {
64
67
  "@chromatic-com/storybook": "^4.1.0",
@@ -66,9 +69,8 @@
66
69
  "@storybook/addon-links": "^9.1.1",
67
70
  "@storybook/addon-styling-webpack": "^1.0.1",
68
71
  "@storybook/nextjs": "^9.1.1",
69
- "@types/react": "^19.1.9",
70
- "storybook": "^9.1.1",
71
- "tailwindcss": "^4.1.11"
72
+ "@types/react": "^19.2.2",
73
+ "storybook": "^9.1.1"
72
74
  },
73
75
  "publishConfig": {
74
76
  "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';