@omer-x/tailwind-ui-kit 1.0.0-alpha.2 → 1.0.0-alpha.20
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/MIGRATION.md +210 -0
- package/README.md +414 -0
- package/dist/components/button/BaseButton.d.ts +27 -11
- package/dist/components/button/BaseButton.js +57 -51
- package/dist/components/button/index.d.ts +2 -4
- package/dist/components/button/index.js +1 -4
- package/dist/components/dialog/AnimatedPopup.d.ts +3 -6
- package/dist/components/dialog/AnimatedPopup.js +7 -31
- package/dist/components/dialog/DialogBackdrop.d.ts +3 -6
- package/dist/components/dialog/DialogBackdrop.js +6 -22
- package/dist/components/dialog/DialogTitle.d.ts +3 -6
- package/dist/components/dialog/DialogTitle.js +6 -15
- package/dist/components/dialog/index.d.ts +4 -5
- package/dist/components/dialog/index.js +4 -8
- package/dist/components/elements/JustAnchor.d.ts +3 -0
- package/dist/components/elements/JustAnchor.js +10 -0
- package/dist/components/elements/JustButton.d.ts +3 -0
- package/dist/components/elements/JustButton.js +10 -0
- package/dist/components/elements/JustDiv.d.ts +3 -0
- package/dist/components/elements/JustDiv.js +10 -0
- package/dist/components/elements/JustInput.d.ts +3 -0
- package/dist/components/elements/JustInput.js +10 -0
- package/dist/components/elements/JustSpan.d.ts +3 -0
- package/dist/components/elements/JustSpan.js +10 -0
- package/dist/components/form/BaseForm.d.ts +13 -0
- package/dist/components/form/BaseForm.js +78 -0
- package/dist/components/form/BaseFormField.d.ts +14 -0
- package/dist/components/form/BaseFormField.js +32 -0
- package/dist/components/form/BaseInput.d.ts +7 -0
- package/dist/components/form/BaseInput.js +21 -0
- package/dist/components/form/BaseSwitch.d.ts +8 -0
- package/dist/components/form/BaseSwitch.js +19 -0
- package/dist/components/form/ClientSideError.d.ts +9 -0
- package/dist/components/form/ClientSideError.js +39 -0
- package/dist/components/form/FieldRoot.d.ts +8 -0
- package/dist/components/form/FieldRoot.js +21 -0
- package/dist/components/form/FormContext.d.ts +28 -0
- package/dist/components/form/FormContext.js +12 -0
- package/dist/components/form/ServerSideError.d.ts +8 -0
- package/dist/components/form/ServerSideError.js +15 -0
- package/dist/components/form/index.d.ts +7 -0
- package/dist/components/form/index.js +6 -0
- package/dist/components/form/useFormMessages.d.ts +10 -0
- package/dist/components/form/useFormMessages.js +16 -0
- package/dist/components/layout/Container.d.ts +5 -8
- package/dist/components/layout/Container.js +8 -10
- package/dist/components/layout/index.d.ts +2 -3
- package/dist/components/layout/index.js +1 -4
- package/dist/components/page/Pagination.d.ts +21 -0
- package/dist/components/page/Pagination.js +65 -0
- package/dist/components/page/index.d.ts +3 -0
- package/dist/components/page/index.js +3 -0
- package/dist/components/page/usePagination.d.ts +30 -0
- package/dist/components/page/usePagination.js +41 -0
- package/dist/components/table/Tdx.d.ts +5 -8
- package/dist/components/table/Tdx.js +13 -9
- package/dist/components/table/index.d.ts +2 -3
- package/dist/components/table/index.js +1 -4
- package/dist/hooks/useRipples.d.ts +2 -0
- package/dist/hooks/useRipples.js +49 -0
- package/dist/styles/ripple.module.css +1 -0
- package/dist/utils/cn.d.ts +6 -5
- package/dist/utils/cn.js +8 -6
- package/dist/utils/dirty-form.d.ts +7 -0
- package/dist/utils/dirty-form.js +40 -0
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +1 -4
- package/package.json +37 -23
- package/dist/components/button/PulseButton.d.ts +0 -10
- package/dist/components/button/PulseButton.js +0 -24
- package/dist/styles/ripple.module.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omer-x/tailwind-ui-kit",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.20",
|
|
4
4
|
"description": "Tailwind CSS-based React component library for building user interfaces",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tailwind",
|
|
7
7
|
"ui-kit",
|
|
8
|
-
"font-awesome",
|
|
9
8
|
"typescript"
|
|
10
9
|
],
|
|
11
10
|
"repository": {
|
|
@@ -30,7 +29,8 @@
|
|
|
30
29
|
"main": "./dist/index.js",
|
|
31
30
|
"types": "./dist/index.d.ts",
|
|
32
31
|
"files": [
|
|
33
|
-
"dist/"
|
|
32
|
+
"dist/",
|
|
33
|
+
"MIGRATION.md"
|
|
34
34
|
],
|
|
35
35
|
"exports": {
|
|
36
36
|
"./layout": {
|
|
@@ -45,10 +45,18 @@
|
|
|
45
45
|
"types": "./dist/components/dialog/index.d.ts",
|
|
46
46
|
"import": "./dist/components/dialog/index.js"
|
|
47
47
|
},
|
|
48
|
+
"./form": {
|
|
49
|
+
"types": "./dist/components/form/index.d.ts",
|
|
50
|
+
"import": "./dist/components/form/index.js"
|
|
51
|
+
},
|
|
48
52
|
"./table": {
|
|
49
53
|
"types": "./dist/components/table/index.d.ts",
|
|
50
54
|
"import": "./dist/components/table/index.js"
|
|
51
55
|
},
|
|
56
|
+
"./page": {
|
|
57
|
+
"types": "./dist/components/page/index.d.ts",
|
|
58
|
+
"import": "./dist/components/page/index.js"
|
|
59
|
+
},
|
|
52
60
|
"./utils": {
|
|
53
61
|
"types": "./dist/utils/index.d.ts",
|
|
54
62
|
"import": "./dist/utils/index.js"
|
|
@@ -59,36 +67,42 @@
|
|
|
59
67
|
"lint:fix": "eslint --fix --flag unstable_native_nodejs_ts_config",
|
|
60
68
|
"test": "vitest run --coverage",
|
|
61
69
|
"test:watch": "vitest --coverage",
|
|
62
|
-
"dev": "
|
|
63
|
-
"build": "
|
|
70
|
+
"dev": "storybook dev -p 3000",
|
|
71
|
+
"build": "tsdown",
|
|
72
|
+
"build-storybook": "storybook build"
|
|
73
|
+
},
|
|
74
|
+
"dependencies": {
|
|
75
|
+
"@omer-x/zod-to-form-constraints": "^1.1.3",
|
|
76
|
+
"cn": "^0.5.2"
|
|
64
77
|
},
|
|
65
78
|
"peerDependencies": {
|
|
66
79
|
"@base-ui/react": "^1",
|
|
67
|
-
"@
|
|
68
|
-
"clsx": "^2",
|
|
80
|
+
"@omer-x/next-form-actions": "^2.0.0-alpha.1",
|
|
69
81
|
"react": "^19",
|
|
70
82
|
"react-dom": "^19",
|
|
71
|
-
"tailwind-merge": "^3",
|
|
72
83
|
"tailwindcss": "^4"
|
|
73
84
|
},
|
|
74
85
|
"devDependencies": {
|
|
75
|
-
"@
|
|
76
|
-
"@
|
|
77
|
-
"@
|
|
78
|
-
"@
|
|
79
|
-
"@
|
|
80
|
-
"@types/
|
|
81
|
-
"@types/react
|
|
82
|
-
"@
|
|
83
|
-
"@
|
|
84
|
-
"
|
|
86
|
+
"@omer-x/eslint-config": "^2.3.3",
|
|
87
|
+
"@omer-x/next-form-actions": "^2.0.0-alpha.1",
|
|
88
|
+
"@storybook/addon-vitest": "^10.6.9",
|
|
89
|
+
"@storybook/react-vite": "^10.6.9",
|
|
90
|
+
"@tailwindcss/vite": "^4.3.5",
|
|
91
|
+
"@types/node": "^26.6.11",
|
|
92
|
+
"@types/react": "^19.3.3",
|
|
93
|
+
"@types/react-dom": "^19.3.0",
|
|
94
|
+
"@vitejs/plugin-react": "^6.3.0",
|
|
95
|
+
"@vitest/browser-playwright": "^5.1.2",
|
|
96
|
+
"@vitest/coverage-v8": "^5.1.2",
|
|
85
97
|
"eslint": "^9.37.0",
|
|
86
98
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
87
99
|
"eslint-plugin-react": "^7.37.5",
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
100
|
+
"playwright": "^1.65.1",
|
|
101
|
+
"semantic-release": "^26.0.1",
|
|
102
|
+
"storybook": "^10.6.9",
|
|
103
|
+
"tsdown": "^0.23.7",
|
|
104
|
+
"typescript": "^6.0.3",
|
|
105
|
+
"vite": "^8.4.0",
|
|
106
|
+
"vitest": "^5.1.2"
|
|
93
107
|
}
|
|
94
108
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { Button } from '@base-ui/react/button';
|
|
3
|
-
import { ComponentProps, ReactNode } from 'react';
|
|
4
|
-
|
|
5
|
-
type PulseButtonProps = ComponentProps<typeof Button> & {
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
};
|
|
8
|
-
declare const PulseButton: ({ children, onClick, ...otherProps }: PulseButtonProps) => react_jsx_runtime.JSX.Element;
|
|
9
|
-
|
|
10
|
-
export { PulseButton as default };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Button } from "@base-ui/react/button";
|
|
4
|
-
import {} from "react";
|
|
5
|
-
import { useRipples } from "../../hooks/useRipples.js";
|
|
6
|
-
const PulseButton = ({
|
|
7
|
-
children,
|
|
8
|
-
onClick,
|
|
9
|
-
...otherProps
|
|
10
|
-
}) => {
|
|
11
|
-
const [triggerRippleEffect, ripples] = useRipples();
|
|
12
|
-
const handleClick = (e) => {
|
|
13
|
-
triggerRippleEffect(e);
|
|
14
|
-
onClick?.(e);
|
|
15
|
-
};
|
|
16
|
-
return /* @__PURE__ */ jsxs(Button, { ...otherProps, onClick: handleClick, children: [
|
|
17
|
-
ripples,
|
|
18
|
-
children
|
|
19
|
-
] });
|
|
20
|
-
};
|
|
21
|
-
var PulseButton_default = PulseButton;
|
|
22
|
-
export {
|
|
23
|
-
PulseButton_default as default
|
|
24
|
-
};
|