ag-common 0.0.769 → 0.0.771

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 (48) hide show
  1. package/dist/ui/components/index.d.ts +1 -2
  2. package/dist/ui/components/index.js +1 -2
  3. package/dist/ui/components/shadcn/accordion.d.ts +16 -0
  4. package/dist/ui/components/shadcn/accordion.js +83 -0
  5. package/dist/ui/components/shadcn/alert.d.ts +8 -0
  6. package/dist/ui/components/shadcn/alert.js +79 -0
  7. package/dist/ui/components/shadcn/avatar.d.ts +6 -0
  8. package/dist/ui/components/shadcn/avatar.js +69 -0
  9. package/dist/ui/components/shadcn/button.d.ts +11 -0
  10. package/dist/ui/components/shadcn/button.js +81 -0
  11. package/dist/ui/components/shadcn/card.d.ts +8 -0
  12. package/dist/ui/components/shadcn/card.js +85 -0
  13. package/dist/ui/components/shadcn/checkbox.d.ts +4 -0
  14. package/dist/ui/components/shadcn/checkbox.js +60 -0
  15. package/dist/ui/components/shadcn/dialog.d.ts +19 -0
  16. package/dist/ui/components/shadcn/dialog.js +106 -0
  17. package/dist/ui/components/shadcn/divider.d.ts +8 -0
  18. package/dist/ui/components/shadcn/divider.js +14 -0
  19. package/dist/ui/components/shadcn/dropdown-menu.d.ts +27 -0
  20. package/dist/ui/components/shadcn/dropdown-menu.js +132 -0
  21. package/dist/ui/components/shadcn/index.d.ts +17 -0
  22. package/dist/ui/components/shadcn/index.js +33 -0
  23. package/dist/ui/components/shadcn/input-selector.d.ts +17 -0
  24. package/dist/ui/components/shadcn/input-selector.js +99 -0
  25. package/dist/ui/components/shadcn/input.d.ts +3 -0
  26. package/dist/ui/components/shadcn/input.js +55 -0
  27. package/dist/ui/components/shadcn/label.d.ts +5 -0
  28. package/dist/ui/components/{Accordion/index.js → shadcn/label.js} +22 -32
  29. package/dist/ui/components/shadcn/popover.d.ts +7 -0
  30. package/dist/ui/components/shadcn/popover.js +64 -0
  31. package/dist/ui/components/shadcn/scroll-area.d.ts +5 -0
  32. package/dist/ui/components/shadcn/scroll-area.js +69 -0
  33. package/dist/ui/components/shadcn/select.d.ts +13 -0
  34. package/dist/ui/components/shadcn/select.js +116 -0
  35. package/dist/ui/components/shadcn/sheet.d.ts +25 -0
  36. package/dist/ui/components/shadcn/sheet.js +116 -0
  37. package/dist/ui/components/shadcn/textarea.d.ts +3 -0
  38. package/dist/ui/components/shadcn/textarea.js +55 -0
  39. package/dist/ui/helpers/index.d.ts +2 -0
  40. package/dist/ui/helpers/index.js +2 -0
  41. package/dist/ui/helpers/openDialog.d.ts +23 -0
  42. package/dist/ui/helpers/openDialog.js +95 -0
  43. package/dist/ui/helpers/utils.d.ts +4 -0
  44. package/dist/ui/helpers/utils.js +11 -0
  45. package/dist/ui/index.d.ts +0 -1
  46. package/dist/ui/index.js +0 -1
  47. package/package.json +23 -3
  48. package/dist/ui/components/Accordion/index.d.ts +0 -12
package/dist/ui/index.js CHANGED
@@ -17,4 +17,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./components"), exports);
18
18
  __exportStar(require("./helpers"), exports);
19
19
  __exportStar(require("./icons"), exports);
20
- __exportStar(require("./styles"), exports);
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.769",
2
+ "version": "0.0.771",
3
3
  "name": "ag-common",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
@@ -7,7 +7,7 @@
7
7
  "license": "ISC",
8
8
  "scripts": {
9
9
  "preinstall": "npx only-allow pnpm",
10
- "format": "eslint src --fix",
10
+ "format": "eslint src --fix && eslint stories --fix",
11
11
  "lint:tsc": "tsc --noEmit",
12
12
  "lint:eslint": "eslint src",
13
13
  "lint": "pnpm run /^lint:/",
@@ -26,6 +26,8 @@
26
26
  "@aws-sdk/lib-dynamodb": "^3.879.0",
27
27
  "@aws-sdk/s3-presigned-post": "^3.879.0",
28
28
  "@azure/cosmos": "^4.5.1",
29
+ "@storybook/addon-styling-webpack": "^2.0.0",
30
+ "@storybook/react-vite": "^9.1.10",
29
31
  "aws-cdk-lib": "^2.213.0",
30
32
  "buffer": "^6.0.3",
31
33
  "jsonwebtoken": "^9.0.2",
@@ -38,28 +40,46 @@
38
40
  "devDependencies": {
39
41
  "@emotion/react": "^11.14.0",
40
42
  "@emotion/styled": "^11.14.1",
43
+ "@radix-ui/react-accordion": "1.2.12",
44
+ "@radix-ui/react-avatar": "1.1.10",
45
+ "@radix-ui/react-checkbox": "1.3.3",
46
+ "@radix-ui/react-dialog": "1.1.15",
47
+ "@radix-ui/react-dropdown-menu": "2.1.16",
48
+ "@radix-ui/react-icons": "1.3.2",
49
+ "@radix-ui/react-label": "2.1.7",
50
+ "@radix-ui/react-popover": "1.1.15",
51
+ "@radix-ui/react-scroll-area": "1.2.10",
52
+ "@radix-ui/react-select": "2.2.6",
53
+ "@radix-ui/react-slot": "1.2.3",
41
54
  "@smithy/types": "^4.3.2",
42
55
  "@storybook/addon-docs": "^9.1.3",
43
56
  "@storybook/addon-links": "^9.1.3",
44
- "@storybook/addon-webpack5-compiler-swc": "^3.0.0",
45
57
  "@storybook/addons": "^7.6.17",
46
58
  "@storybook/manager-api": "^8.6.14",
47
59
  "@storybook/react": "^9.1.3",
48
60
  "@storybook/react-webpack5": "^9.1.3",
49
61
  "@storybook/theming": "^8.6.14",
62
+ "@tailwindcss/postcss": "4.1.13",
50
63
  "@types/jsonwebtoken": "^9.0.10",
51
64
  "@types/node": "^24.3.0",
52
65
  "@types/react": "^19.1.12",
53
66
  "@types/react-dom": "^19.1.9",
54
67
  "@typescript-eslint/eslint-plugin": "^8.41.0",
55
68
  "@typescript-eslint/parser": "^8.41.0",
69
+ "autoprefixer": "10.4.21",
70
+ "class-variance-authority": "^0.7.1",
71
+ "clsx": "^2.1.1",
56
72
  "cross-env": "^10.0.0",
57
73
  "eslint": "^9.34.0",
58
74
  "eslint-config-e7npm": "^0.1.24",
59
75
  "eslint-plugin-storybook": "^9.1.3",
60
76
  "globstar": "^1.0.0",
77
+ "lucide-react": "^0.544.0",
61
78
  "rimraf": "^6.0.1",
62
79
  "storybook": "^9.1.3",
80
+ "tailwind-merge": "3.3.1",
81
+ "tailwindcss": "4.1.13",
82
+ "tailwindcss-animate": "1.0.7",
63
83
  "tsx": "^4.20.5"
64
84
  },
65
85
  "resolutions": {
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- export interface IAccordion {
3
- children: string | React.ReactNode;
4
- title: string;
5
- /** controlled component if provided */
6
- open?: boolean;
7
- /** called when openness changes */
8
- setOpen?: (open: boolean) => void;
9
- chevronColour?: string;
10
- className?: string;
11
- }
12
- export declare const Accordion: ({ title, children, open, setOpen, chevronColour, className, }: IAccordion) => React.JSX.Element;