@youngonesworks/ui 0.1.95 → 0.1.98

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 (47) hide show
  1. package/dist/assets/fonts/woff/Gotham-BlackItalic_Web.woff +0 -0
  2. package/dist/assets/fonts/woff/Gotham-Black_Web.woff +0 -0
  3. package/dist/assets/fonts/woff/Gotham-BoldItalic_Web.woff +0 -0
  4. package/dist/assets/fonts/woff/Gotham-Bold_Web.woff +0 -0
  5. package/dist/assets/fonts/woff/Gotham-BookItalic_Web.woff +0 -0
  6. package/dist/assets/fonts/woff/Gotham-Book_Web.woff +0 -0
  7. package/dist/assets/fonts/woff/Gotham-LightItalic_Web.woff +0 -0
  8. package/dist/assets/fonts/woff/Gotham-Light_Web.woff +0 -0
  9. package/dist/assets/fonts/woff/Gotham-MediumItalic_Web.woff +0 -0
  10. package/dist/assets/fonts/woff/Gotham-Medium_Web.woff +0 -0
  11. package/dist/assets/fonts/woff/Gotham-ThinItalic_Web.woff +0 -0
  12. package/dist/assets/fonts/woff/Gotham-Thin_Web.woff +0 -0
  13. package/dist/assets/fonts/woff/Gotham-UltraItalic_Web.woff +0 -0
  14. package/dist/assets/fonts/woff/Gotham-Ultra_Web.woff +0 -0
  15. package/dist/assets/fonts/woff/Gotham-XLightItalic_Web.woff +0 -0
  16. package/dist/assets/fonts/woff/Gotham-XLight_Web.woff +0 -0
  17. package/dist/assets/fonts/woff2/Gotham-BlackItalic_Web.woff2 +0 -0
  18. package/dist/assets/fonts/woff2/Gotham-Black_Web.woff2 +0 -0
  19. package/dist/assets/fonts/woff2/Gotham-BoldItalic_Web.woff2 +0 -0
  20. package/dist/assets/fonts/woff2/Gotham-Bold_Web.woff2 +0 -0
  21. package/dist/assets/fonts/woff2/Gotham-BookItalic_Web.woff2 +0 -0
  22. package/dist/assets/fonts/woff2/Gotham-Book_Web.woff2 +0 -0
  23. package/dist/assets/fonts/woff2/Gotham-LightItalic_Web.woff2 +0 -0
  24. package/dist/assets/fonts/woff2/Gotham-Light_Web.woff2 +0 -0
  25. package/dist/assets/fonts/woff2/Gotham-MediumItalic_Web.woff2 +0 -0
  26. package/dist/assets/fonts/woff2/Gotham-Medium_Web.woff2 +0 -0
  27. package/dist/assets/fonts/woff2/Gotham-ThinItalic_Web.woff2 +0 -0
  28. package/dist/assets/fonts/woff2/Gotham-Thin_Web.woff2 +0 -0
  29. package/dist/assets/fonts/woff2/Gotham-UltraItalic_Web.woff2 +0 -0
  30. package/dist/assets/fonts/woff2/Gotham-Ultra_Web.woff2 +0 -0
  31. package/dist/assets/fonts/woff2/Gotham-XLightItalic_Web.woff2 +0 -0
  32. package/dist/assets/fonts/woff2/Gotham-XLight_Web.woff2 +0 -0
  33. package/dist/components/alert/index.d.ts +10 -9
  34. package/dist/components/badge/index.d.ts +2 -17
  35. package/dist/components/linkText/LinkText.stories.d.ts +6 -0
  36. package/dist/components/linkText/index.d.ts +11 -0
  37. package/dist/components/phoneInput/index.d.ts +0 -0
  38. package/dist/index.cjs +87 -79
  39. package/dist/index.cjs.map +1 -1
  40. package/dist/index.js +88 -80
  41. package/dist/index.js.map +1 -1
  42. package/dist/styles/tailwind.css +44 -0
  43. package/dist/tailwind.plugin.js +33 -0
  44. package/dist/tailwind.preset.js +46 -0
  45. package/dist/theme/fonts.d.ts +29 -0
  46. package/dist/utils/enums.d.ts +1 -0
  47. package/package.json +3 -1
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Tailwind CSS v4 Configuration for YoungOnes UI Package
3
+ * This file should be imported by consuming applications
4
+ */
5
+
6
+ @import "tailwindcss";
7
+
8
+ /* Configure Tailwind to scan this package's components */
9
+ @source "./node_modules/@youngonesworks/ui/dist/**/*.{js,jsx,ts,tsx}";
10
+
11
+ /* Custom theme configuration */
12
+ @theme {
13
+ /* Custom animations */
14
+ --animate-spin-slow: spin 2s linear infinite;
15
+ --animate-spin-once: spin 2s linear forwards;
16
+
17
+ /* Custom transition durations */
18
+ --transition-duration-sidebar: var(--transition-duration-sidebar);
19
+ --transition-duration-1000: 1000ms;
20
+ --transition-duration-700: 700ms;
21
+ }
22
+
23
+ /* Custom utility classes */
24
+ @layer utilities {
25
+ .animate-spin-slow {
26
+ animation: var(--animate-spin-slow);
27
+ }
28
+
29
+ .animate-spin-once {
30
+ animation: var(--animate-spin-once);
31
+ }
32
+
33
+ .duration-sidebar {
34
+ transition-duration: var(--transition-duration-sidebar);
35
+ }
36
+
37
+ .duration-1000 {
38
+ transition-duration: var(--transition-duration-1000);
39
+ }
40
+
41
+ .duration-700 {
42
+ transition-duration: var(--transition-duration-700);
43
+ }
44
+ }
@@ -0,0 +1,33 @@
1
+ const plugin = require('tailwindcss/plugin');
2
+
3
+ module.exports = plugin(function({ addUtilities, addBase, addComponents }) {
4
+ // Add custom utilities
5
+ addUtilities({
6
+ '.animate-spin-slow': {
7
+ animation: 'spin 2s linear infinite',
8
+ },
9
+ '.animate-spin-once': {
10
+ animation: 'spin 2s linear forwards',
11
+ },
12
+ '.duration-sidebar': {
13
+ 'transition-duration': 'var(--transition-duration-sidebar)',
14
+ },
15
+ '.duration-1000': {
16
+ 'transition-duration': '1000ms',
17
+ },
18
+ '.duration-700': {
19
+ 'transition-duration': '700ms',
20
+ },
21
+ // Add more utilities from your utilities.css file
22
+ });
23
+
24
+ // Add base styles if needed
25
+ addBase({
26
+ // Add any base styles your components need
27
+ });
28
+
29
+ // Add component styles if needed
30
+ addComponents({
31
+ // Add any component-specific styles
32
+ });
33
+ });
@@ -0,0 +1,46 @@
1
+ /** @type {import('tailwindcss').Config} */
2
+ module.exports = {
3
+ content: [
4
+ // Include the package's components in the content scan
5
+ './node_modules/@youngonesworks/ui/dist/**/*.{js,jsx,ts,tsx}',
6
+ ],
7
+ theme: {
8
+ extend: {
9
+ // Custom animations from your utilities
10
+ animation: {
11
+ 'spin-slow': 'spin 2s linear infinite',
12
+ 'spin-once': 'spin 2s linear forwards',
13
+ },
14
+ // Custom transition durations
15
+ transitionDuration: {
16
+ 'sidebar': 'var(--transition-duration-sidebar)',
17
+ '1000': '1000ms',
18
+ '700': '700ms',
19
+ },
20
+ // Add any other custom theme extensions your components use
21
+ },
22
+ },
23
+ plugins: [
24
+ // Custom utilities plugin
25
+ function({ addUtilities }) {
26
+ addUtilities({
27
+ '.animate-spin-slow': {
28
+ animation: 'spin 2s linear infinite',
29
+ },
30
+ '.animate-spin-once': {
31
+ animation: 'spin 2s linear forwards',
32
+ },
33
+ '.duration-sidebar': {
34
+ 'transition-duration': 'var(--transition-duration-sidebar)',
35
+ },
36
+ '.duration-1000': {
37
+ 'transition-duration': '1000ms',
38
+ },
39
+ '.duration-700': {
40
+ 'transition-duration': '700ms',
41
+ },
42
+ // Add other custom utilities from your utilities.css here
43
+ });
44
+ }
45
+ ],
46
+ };
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Next.js Font Configuration for YoungOnes UI Package
3
+ * Optimized for Next.js projects only
4
+ */
5
+ export declare const gothamFont: import("next/dist/compiled/@next/font").NextFontWithVariable;
6
+ export declare const FONT_FAMILIES: {
7
+ readonly gotham: "var(--font-gotham), Gotham, ui-sans-serif, system-ui, sans-serif";
8
+ readonly sans: "ui-sans-serif, system-ui, sans-serif";
9
+ readonly serif: "ui-serif, Georgia, serif";
10
+ readonly mono: "ui-monospace, SFMono-Regular, Consolas, monospace";
11
+ };
12
+ export declare const FONT_WEIGHTS: {
13
+ readonly thin: "100";
14
+ readonly extraLight: "200";
15
+ readonly light: "300";
16
+ readonly normal: "400";
17
+ readonly medium: "500";
18
+ readonly semiBold: "600";
19
+ readonly bold: "700";
20
+ readonly extraBold: "800";
21
+ readonly black: "900";
22
+ };
23
+ export declare const FONT_CLASS_NAMES: {
24
+ readonly gotham: string;
25
+ readonly sans: "font-sans";
26
+ readonly serif: "font-serif";
27
+ readonly mono: "font-mono";
28
+ };
29
+ export default gothamFont;
@@ -31,6 +31,7 @@ export declare enum COLOR {
31
31
  ULTRA_LIGHT_GRAY = "ultra-light-gray",
32
32
  TURQUOISE = "turquoise",
33
33
  RED = "red",
34
+ DARK_GRAY = "dark-gray",
34
35
  GRAY = "gray",
35
36
  WHITE = "white",
36
37
  PURPLE = "purple",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youngonesworks/ui",
3
- "version": "0.1.95",
3
+ "version": "0.1.98",
4
4
  "description": "A Youngones UI component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -102,9 +102,11 @@
102
102
  "@testing-library/jest-dom": "^6.1.5",
103
103
  "@testing-library/react": "^16.1.0",
104
104
  "@testing-library/user-event": "^14.4.3",
105
+ "@types/date-fns": "^2.6.3",
105
106
  "@types/jest": "^29.5.12",
106
107
  "@types/node": "^24.0.3",
107
108
  "@types/react": "18",
109
+ "@types/react-day-picker": "^5.3.0",
108
110
  "@types/react-dom": "18",
109
111
  "@typescript-eslint/eslint-plugin": "^8.34.1",
110
112
  "@typescript-eslint/parser": "^8.34.1",