@mbao01/common 0.1.0 → 0.1.2
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.
|
@@ -11,5 +11,5 @@ export declare const getDatetimeGridClasses: (props?: ({
|
|
|
11
11
|
export declare const getDatetimeSeparatorClasses: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
12
12
|
export declare const getDatetimeInputClasses: (props?: ({
|
|
13
13
|
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
14
|
-
unit?:
|
|
14
|
+
unit?: DateFormat | TimeFormat | null | undefined;
|
|
15
15
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mbao01/common",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Ayomide Bakare",
|
|
7
7
|
"license": "MIT",
|
|
@@ -73,102 +73,102 @@
|
|
|
73
73
|
"@dnd-kit/sortable": "^10.0.0",
|
|
74
74
|
"@dnd-kit/utilities": "^3.2.2",
|
|
75
75
|
"@radix-ui/react-accordion": "^1.2.2",
|
|
76
|
-
"@radix-ui/react-alert-dialog": "^1.1.
|
|
76
|
+
"@radix-ui/react-alert-dialog": "^1.1.5",
|
|
77
77
|
"@radix-ui/react-avatar": "^1.1.2",
|
|
78
78
|
"@radix-ui/react-checkbox": "^1.1.3",
|
|
79
79
|
"@radix-ui/react-collapsible": "^1.1.2",
|
|
80
|
-
"@radix-ui/react-context-menu": "^2.2.
|
|
81
|
-
"@radix-ui/react-dialog": "^1.1.
|
|
82
|
-
"@radix-ui/react-dropdown-menu": "^2.1.
|
|
83
|
-
"@radix-ui/react-hover-card": "^1.1.
|
|
80
|
+
"@radix-ui/react-context-menu": "^2.2.5",
|
|
81
|
+
"@radix-ui/react-dialog": "^1.1.5",
|
|
82
|
+
"@radix-ui/react-dropdown-menu": "^2.1.5",
|
|
83
|
+
"@radix-ui/react-hover-card": "^1.1.5",
|
|
84
84
|
"@radix-ui/react-label": "^2.1.1",
|
|
85
|
-
"@radix-ui/react-menubar": "^1.1.
|
|
86
|
-
"@radix-ui/react-navigation-menu": "^1.2.
|
|
87
|
-
"@radix-ui/react-popover": "^1.1.
|
|
85
|
+
"@radix-ui/react-menubar": "^1.1.5",
|
|
86
|
+
"@radix-ui/react-navigation-menu": "^1.2.4",
|
|
87
|
+
"@radix-ui/react-popover": "^1.1.5",
|
|
88
88
|
"@radix-ui/react-progress": "^1.1.1",
|
|
89
89
|
"@radix-ui/react-scroll-area": "^1.2.2",
|
|
90
|
-
"@radix-ui/react-select": "^2.1.
|
|
90
|
+
"@radix-ui/react-select": "^2.1.5",
|
|
91
91
|
"@radix-ui/react-separator": "^1.1.1",
|
|
92
92
|
"@radix-ui/react-slider": "^1.2.2",
|
|
93
93
|
"@radix-ui/react-slot": "^1.1.1",
|
|
94
94
|
"@radix-ui/react-tabs": "^1.1.2",
|
|
95
95
|
"@radix-ui/react-toggle": "^1.1.1",
|
|
96
96
|
"@radix-ui/react-toggle-group": "^1.1.1",
|
|
97
|
-
"@radix-ui/react-tooltip": "^1.1.
|
|
98
|
-
"@tailwindcss/typography": "^0.5.
|
|
99
|
-
"chrono-node": "^2.7.
|
|
97
|
+
"@radix-ui/react-tooltip": "^1.1.7",
|
|
98
|
+
"@tailwindcss/typography": "^0.5.16",
|
|
99
|
+
"chrono-node": "^2.7.8",
|
|
100
100
|
"class-variance-authority": "^0.7.1",
|
|
101
101
|
"clsx": "^2.1.1",
|
|
102
102
|
"cmdk": "^1.0.4",
|
|
103
103
|
"daisyui": "^4.12.23",
|
|
104
104
|
"date-fns": "^4.1.0",
|
|
105
|
-
"embla-carousel-react": "^8.5.
|
|
106
|
-
"lucide-react": "^0.
|
|
107
|
-
"react-day-picker": "^9.
|
|
105
|
+
"embla-carousel-react": "^8.5.2",
|
|
106
|
+
"lucide-react": "^0.474.0",
|
|
107
|
+
"react-day-picker": "^9.5.1",
|
|
108
108
|
"react-dropzone": "^14.3.5",
|
|
109
|
-
"react-international-phone": "^4.
|
|
109
|
+
"react-international-phone": "^4.5.0",
|
|
110
110
|
"react-otp-input": "^3.1.1",
|
|
111
|
-
"sonner": "^1.7.
|
|
111
|
+
"sonner": "^1.7.4",
|
|
112
112
|
"tailwind-merge": "^2.6.0",
|
|
113
113
|
"tailwindcss-animate": "^1.0.7",
|
|
114
|
-
"timescape": "^0.
|
|
114
|
+
"timescape": "^0.7.1",
|
|
115
115
|
"universal-cookie": "^7.2.2",
|
|
116
116
|
"vaul": "^1.1.2"
|
|
117
117
|
},
|
|
118
118
|
"devDependencies": {
|
|
119
|
-
"@eslint/js": "^9.
|
|
120
|
-
"@ianvs/prettier-plugin-sort-imports": "^4.4.
|
|
121
|
-
"@storybook/addon-a11y": "^8.
|
|
119
|
+
"@eslint/js": "^9.19.0",
|
|
120
|
+
"@ianvs/prettier-plugin-sort-imports": "^4.4.1",
|
|
121
|
+
"@storybook/addon-a11y": "^8.5.3",
|
|
122
122
|
"@storybook/addon-coverage": "^1.0.5",
|
|
123
|
-
"@storybook/addon-essentials": "^8.
|
|
124
|
-
"@storybook/addon-interactions": "^8.
|
|
125
|
-
"@storybook/addon-links": "^8.
|
|
126
|
-
"@storybook/addon-onboarding": "^8.
|
|
127
|
-
"@storybook/addon-storysource": "^8.
|
|
128
|
-
"@storybook/addon-themes": "^8.
|
|
129
|
-
"@storybook/addon-viewport": "^8.
|
|
130
|
-
"@storybook/blocks": "^8.
|
|
131
|
-
"@storybook/react": "^8.
|
|
132
|
-
"@storybook/react-vite": "^8.
|
|
133
|
-
"@storybook/test": "^8.
|
|
123
|
+
"@storybook/addon-essentials": "^8.5.3",
|
|
124
|
+
"@storybook/addon-interactions": "^8.5.3",
|
|
125
|
+
"@storybook/addon-links": "^8.5.3",
|
|
126
|
+
"@storybook/addon-onboarding": "^8.5.3",
|
|
127
|
+
"@storybook/addon-storysource": "^8.5.3",
|
|
128
|
+
"@storybook/addon-themes": "^8.5.3",
|
|
129
|
+
"@storybook/addon-viewport": "^8.5.3",
|
|
130
|
+
"@storybook/blocks": "^8.5.3",
|
|
131
|
+
"@storybook/react": "^8.5.3",
|
|
132
|
+
"@storybook/react-vite": "^8.5.3",
|
|
133
|
+
"@storybook/test": "^8.5.3",
|
|
134
134
|
"@storybook/test-runner": "^0.21.0",
|
|
135
135
|
"@testing-library/jest-dom": "^6.6.3",
|
|
136
|
-
"@testing-library/react": "^16.
|
|
137
|
-
"@testing-library/user-event": "^14.
|
|
136
|
+
"@testing-library/react": "^16.2.0",
|
|
137
|
+
"@testing-library/user-event": "^14.6.1",
|
|
138
138
|
"@types/eslint__js": "^8.42.3",
|
|
139
139
|
"@types/jest-image-snapshot": "^6.4.0",
|
|
140
|
-
"@types/node": "^22.
|
|
141
|
-
"@types/react": "^19.0.
|
|
142
|
-
"@types/react-dom": "^19.0.
|
|
143
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
144
|
-
"@typescript-eslint/parser": "^8.
|
|
140
|
+
"@types/node": "^22.13.0",
|
|
141
|
+
"@types/react": "^19.0.8",
|
|
142
|
+
"@types/react-dom": "^19.0.3",
|
|
143
|
+
"@typescript-eslint/eslint-plugin": "^8.22.0",
|
|
144
|
+
"@typescript-eslint/parser": "^8.22.0",
|
|
145
145
|
"@vitejs/plugin-react": "^4.3.4",
|
|
146
|
-
"@vitest/coverage-v8": "^
|
|
147
|
-
"@vitest/ui": "^
|
|
146
|
+
"@vitest/coverage-v8": "^3.0.5",
|
|
147
|
+
"@vitest/ui": "^3.0.5",
|
|
148
148
|
"autoprefixer": "^10.4.20",
|
|
149
149
|
"axe-playwright": "^2.0.3",
|
|
150
|
-
"eslint": "^9.
|
|
151
|
-
"eslint-plugin-react": "^7.37.
|
|
150
|
+
"eslint": "^9.19.0",
|
|
151
|
+
"eslint-plugin-react": "^7.37.4",
|
|
152
152
|
"eslint-plugin-react-hooks": "^5.1.0",
|
|
153
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
154
|
-
"eslint-plugin-storybook": "^0.11.
|
|
153
|
+
"eslint-plugin-react-refresh": "^0.4.18",
|
|
154
|
+
"eslint-plugin-storybook": "^0.11.2",
|
|
155
155
|
"globals": "^15.14.0",
|
|
156
156
|
"jest-image-snapshot": "^6.4.0",
|
|
157
|
-
"jsdom": "^
|
|
157
|
+
"jsdom": "^26.0.0",
|
|
158
158
|
"path": "^0.12.7",
|
|
159
|
-
"postcss": "^8.
|
|
159
|
+
"postcss": "^8.5.1",
|
|
160
160
|
"prettier": "^3.4.2",
|
|
161
161
|
"react": "^19.0.0",
|
|
162
162
|
"react-dom": "^19.0.0",
|
|
163
|
-
"react-router-dom": "^7.1.
|
|
164
|
-
"recharts": "^2.15.
|
|
165
|
-
"storybook": "^8.
|
|
163
|
+
"react-router-dom": "^7.1.5",
|
|
164
|
+
"recharts": "^2.15.1",
|
|
165
|
+
"storybook": "^8.5.3",
|
|
166
166
|
"tailwindcss": "^3.4.17",
|
|
167
|
-
"typescript": "^5.7.
|
|
168
|
-
"typescript-eslint": "^8.
|
|
169
|
-
"vite": "^6.0.
|
|
170
|
-
"vite-plugin-dts": "^4.
|
|
171
|
-
"vitest": "^
|
|
167
|
+
"typescript": "^5.7.3",
|
|
168
|
+
"typescript-eslint": "^8.22.0",
|
|
169
|
+
"vite": "^6.0.11",
|
|
170
|
+
"vite-plugin-dts": "^4.5.0",
|
|
171
|
+
"vitest": "^3.0.5"
|
|
172
172
|
},
|
|
173
173
|
"peerDependencies": {
|
|
174
174
|
"react": "^19.0.0",
|
|
@@ -176,5 +176,5 @@
|
|
|
176
176
|
"recharts": "^2.15.0",
|
|
177
177
|
"typescript": "^5.7.2"
|
|
178
178
|
},
|
|
179
|
-
"gitHead": "
|
|
179
|
+
"gitHead": "b43c499981b9050be8a939d6e11b6ec2adf0a23b"
|
|
180
180
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cva } from "../../libs";
|
|
2
2
|
|
|
3
3
|
export const getAlertClasses = cva(
|
|
4
|
-
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg]:absolute [&>svg]:left-4 [&>svg]:
|
|
4
|
+
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg]:absolute [&>svg]:left-4 [&>svg]:text-inherit",
|
|
5
5
|
{
|
|
6
6
|
variants: {
|
|
7
7
|
variant: {
|
|
@@ -13,7 +13,7 @@ export const Text = <T extends As>({
|
|
|
13
13
|
...props
|
|
14
14
|
}: TextProps<T>) => {
|
|
15
15
|
const Comp = as ? Slot : "span";
|
|
16
|
-
const SlotChild = as
|
|
16
|
+
const SlotChild = as ?? React.Fragment;
|
|
17
17
|
|
|
18
18
|
return (
|
|
19
19
|
<Comp className={cn(getTextClasses({ size, variant }), className)} {...props}>
|