@vtx-ui/react 0.0.1-beta.3 → 0.0.1-beta.4

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 (93) hide show
  1. package/dist/index.cjs.js +1 -1
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +1 -1
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/types/components/AdminHeader/AdminHeader.d.ts +176 -0
  6. package/dist/types/components/AdminHeader/AdminHeader.examples.d.ts +44 -0
  7. package/dist/types/components/AdminHeader/AdminHeader.stories.d.ts +53 -0
  8. package/dist/types/components/AdminHeader/AdminHeader.widgets.stories.d.ts +86 -0
  9. package/dist/types/components/AdminHeader/index.d.ts +2 -0
  10. package/dist/types/components/Alert/Alert.d.ts +2 -53
  11. package/dist/types/components/Avatar/Avatar.d.ts +2 -2
  12. package/dist/types/components/Badge/Badge.d.ts +2 -32
  13. package/dist/types/components/Button/Button.d.ts +2 -42
  14. package/dist/types/components/Card/Card.d.ts +2 -63
  15. package/dist/types/components/Checkbox/Checkbox.d.ts +2 -59
  16. package/dist/types/components/CheckboxGroup/CheckboxGroup.d.ts +2 -53
  17. package/dist/types/components/Chip/Chip.d.ts +2 -32
  18. package/dist/types/components/Divider/Divider.d.ts +2 -72
  19. package/dist/types/components/Flex/Flex.d.ts +2 -26
  20. package/dist/types/components/Grid/Grid.d.ts +2 -77
  21. package/dist/types/components/Header/Header.d.ts +2 -33
  22. package/dist/types/components/Input/Input.d.ts +2 -52
  23. package/dist/types/components/Menu/Menu.d.ts +2 -32
  24. package/dist/types/components/Modal/Modal.d.ts +4 -73
  25. package/dist/types/components/MultiSelect/MultiSelect.d.ts +2 -41
  26. package/dist/types/components/Radio/Radio.d.ts +2 -55
  27. package/dist/types/components/RadioGroup/RadioGroup.d.ts +2 -57
  28. package/dist/types/components/Select/Select.d.ts +2 -58
  29. package/dist/types/components/SideMenu/SideMenu.d.ts +139 -38
  30. package/dist/types/components/SideMenu/SideMenu.examples.d.ts +17 -0
  31. package/dist/types/components/SideMenu/index.d.ts +2 -4
  32. package/dist/types/components/Table/Table.d.ts +2 -58
  33. package/dist/types/components/Timeline/Timeline.d.ts +34 -0
  34. package/dist/types/components/Timeline/index.d.ts +2 -0
  35. package/dist/types/components/Toast/Toast.d.ts +2 -51
  36. package/dist/types/icons/IconComponents.d.ts +50 -0
  37. package/dist/types/icons/index.d.ts +1 -0
  38. package/dist/types/index.d.ts +19 -1
  39. package/dist/types/stories/components/Accordion.stories.d.ts +11 -0
  40. package/dist/types/stories/components/Alert.stories.d.ts +9 -0
  41. package/dist/types/stories/components/Avatar.stories.d.ts +13 -0
  42. package/dist/types/stories/components/Badge.stories.d.ts +8 -0
  43. package/dist/types/stories/components/Button.stories.d.ts +9 -0
  44. package/dist/types/stories/components/Card.stories.d.ts +8 -0
  45. package/dist/types/stories/components/Checkbox.stories.d.ts +17 -0
  46. package/dist/types/stories/components/CheckboxGroup.stories.d.ts +13 -0
  47. package/dist/types/stories/components/Chip.stories.d.ts +22 -0
  48. package/dist/types/stories/components/Divider.stories.d.ts +15 -0
  49. package/dist/types/stories/components/Flex.stories.d.ts +14 -0
  50. package/dist/types/stories/components/Grid.stories.d.ts +11 -0
  51. package/dist/types/stories/components/Header.stories.d.ts +14 -0
  52. package/dist/types/stories/components/Input.stories.d.ts +9 -0
  53. package/dist/types/stories/components/Menu.stories.d.ts +13 -0
  54. package/dist/types/stories/components/Modal.stories.d.ts +12 -0
  55. package/dist/types/stories/components/MultiSelect.stories.d.ts +19 -0
  56. package/dist/types/stories/components/Radio.stories.d.ts +16 -0
  57. package/dist/types/stories/components/RadioGroup.stories.d.ts +15 -0
  58. package/dist/types/stories/components/Select.stories.d.ts +17 -0
  59. package/dist/types/stories/components/SideMenu.stories.d.ts +131 -0
  60. package/dist/types/stories/components/Table.stories.d.ts +18 -0
  61. package/dist/types/stories/components/Text.stories.d.ts +18 -0
  62. package/dist/types/stories/components/Timeline.stories.d.ts +20 -0
  63. package/dist/types/stories/components/Toast.stories.d.ts +17 -0
  64. package/dist/types/stories/components/Tooltip.stories.d.ts +20 -0
  65. package/dist/types/stories/widgets/InfoCard.stories.d.ts +12 -0
  66. package/dist/types/stories/widgets/InfoListCard.stories.d.ts +19 -0
  67. package/dist/types/stories/widgets/InfoText.stories.d.ts +30 -0
  68. package/dist/types/stories/widgets/OrderCard.stories.d.ts +13 -0
  69. package/dist/types/stories/widgets/OrderConfirmation.stories.d.ts +36 -0
  70. package/dist/types/stories/widgets/OrderDetails.stories.d.ts +11 -0
  71. package/dist/types/stories/widgets/ProductCard.stories.d.ts +25 -0
  72. package/dist/types/widgets/Header/Header.d.ts +252 -0
  73. package/dist/types/widgets/Header/Header.examples.d.ts +17 -0
  74. package/dist/types/widgets/Header/Header.megamenu.examples.d.ts +22 -0
  75. package/dist/types/widgets/Header/Header.stories.d.ts +30 -0
  76. package/dist/types/widgets/Header/index.d.ts +2 -0
  77. package/dist/types/widgets/InfoCard/InfoCard.d.ts +40 -0
  78. package/dist/types/widgets/InfoCard/index.d.ts +1 -0
  79. package/dist/types/widgets/InfoListCard/InfoListCard.d.ts +40 -0
  80. package/dist/types/widgets/InfoListCard/index.d.ts +2 -0
  81. package/dist/types/widgets/InfoText/InfoText.d.ts +144 -0
  82. package/dist/types/widgets/InfoText/InfoText.examples.d.ts +33 -0
  83. package/dist/types/widgets/InfoText/index.d.ts +1 -0
  84. package/dist/types/widgets/OrderCard/OrderCard.d.ts +68 -0
  85. package/dist/types/widgets/OrderCard/index.d.ts +2 -0
  86. package/dist/types/widgets/OrderConfirmation/OrderConfirmation.d.ts +82 -0
  87. package/dist/types/widgets/OrderConfirmation/index.d.ts +3 -0
  88. package/dist/types/widgets/OrderDetails/OrderDetails.d.ts +88 -0
  89. package/dist/types/widgets/OrderDetails/index.d.ts +3 -0
  90. package/dist/types/widgets/ProductCard/ProductCard.d.ts +42 -0
  91. package/dist/types/widgets/ProductCard/index.d.ts +1 -0
  92. package/dist/types/widgets/product-card-old/ProductCard.d.ts +12 -0
  93. package/package.json +72 -59
@@ -0,0 +1,82 @@
1
+ import React from 'react';
2
+ import './OrderConfirmation.css';
3
+ export interface OrderConfirmationItem {
4
+ id: string;
5
+ name: string;
6
+ image?: string;
7
+ quantity: number;
8
+ price: number;
9
+ variant?: string;
10
+ }
11
+ export interface OrderConfirmationAddress {
12
+ name: string;
13
+ addressLine1: string;
14
+ addressLine2?: string;
15
+ city: string;
16
+ state: string;
17
+ zipCode: string;
18
+ phone?: string;
19
+ }
20
+ /**
21
+ * OrderConfirmation - Complete order confirmation view
22
+ *
23
+ * Displays comprehensive order confirmation with items, pricing, addresses, and action buttons
24
+ *
25
+ * @example
26
+ * ```tsx
27
+ * <OrderConfirmation
28
+ * orderId="12345"
29
+ * status="confirmed"
30
+ * items={orderItems}
31
+ * shippingAddress={address}
32
+ * total={199.99}
33
+ * />
34
+ * ```
35
+ */
36
+ export interface OrderConfirmationProps extends React.HTMLAttributes<HTMLDivElement> {
37
+ orderId: string;
38
+ orderNumber?: string;
39
+ orderDate?: string;
40
+ status?: 'pending' | 'processing' | 'confirmed' | 'delivered' | 'cancelled';
41
+ statusText?: string;
42
+ headerText?: string;
43
+ headerSubtitle?: string;
44
+ customerEmail?: string;
45
+ customerPhone?: string;
46
+ shippingAddress: OrderConfirmationAddress;
47
+ billingAddress?: OrderConfirmationAddress;
48
+ items: OrderConfirmationItem[];
49
+ subtotal: number;
50
+ shippingCost?: number;
51
+ tax?: number;
52
+ discount?: number;
53
+ total: number;
54
+ currency?: string;
55
+ paymentMethod?: string;
56
+ transactionId?: string;
57
+ estimatedDelivery?: string;
58
+ trackingNumber?: string;
59
+ onDownloadInvoice?: (orderId: string) => void;
60
+ onContinueShopping?: () => void;
61
+ onTrackOrder?: (orderId: string) => void;
62
+ onViewDetails?: (orderId: string) => void;
63
+ onContactSupport?: (orderId: string) => void;
64
+ onShareOrder?: (orderId: string) => void;
65
+ downloadInvoiceText?: string;
66
+ continueShoppingText?: string;
67
+ trackOrderText?: string;
68
+ viewDetailsText?: string;
69
+ contactSupportText?: string;
70
+ shareOrderText?: string;
71
+ showActions?: boolean;
72
+ hideDownloadInvoice?: boolean;
73
+ hideContinueShopping?: boolean;
74
+ hideTrackOrder?: boolean;
75
+ hideContactSupport?: boolean;
76
+ className?: string;
77
+ style?: React.CSSProperties;
78
+ }
79
+ declare const OrderConfirmationWithParsedClasses: (props: OrderConfirmationProps & React.RefAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
80
+ declare const _default: React.FC<OrderConfirmationProps & React.RefAttributes<HTMLDivElement>>;
81
+ export default _default;
82
+ export { OrderConfirmationWithParsedClasses as OrderConfirmation };
@@ -0,0 +1,3 @@
1
+ export { default } from './OrderConfirmation';
2
+ export { default as OrderConfirmation } from './OrderConfirmation';
3
+ export type { OrderConfirmationProps, OrderConfirmationItem, OrderConfirmationAddress } from './OrderConfirmation';
@@ -0,0 +1,88 @@
1
+ import React from 'react';
2
+ import './OrderDetails.css';
3
+ export interface OrderDetailsItem {
4
+ id: string;
5
+ name: string;
6
+ image?: string;
7
+ quantity: number;
8
+ price: number;
9
+ variant?: string;
10
+ }
11
+ export interface OrderDetailsAddress {
12
+ name: string;
13
+ addressLine1: string;
14
+ addressLine2?: string;
15
+ city: string;
16
+ state: string;
17
+ zipCode: string;
18
+ phone?: string;
19
+ }
20
+ /**
21
+ * OrderDetails - Comprehensive order details view
22
+ *
23
+ * Displays complete order information with items, pricing, tracking, and management actions
24
+ *
25
+ * @example
26
+ * ```tsx
27
+ * <OrderDetails
28
+ * orderId="12345"
29
+ * orderDate="Dec 19, 2023"
30
+ * status="delivered"
31
+ * items={orderItems}
32
+ * shippingAddress={address}
33
+ * total={199.99}
34
+ * />
35
+ * ```
36
+ */
37
+ export interface OrderDetailsProps extends React.HTMLAttributes<HTMLDivElement> {
38
+ orderId: string;
39
+ orderNumber?: string;
40
+ orderDate: string;
41
+ status: 'pending' | 'processing' | 'confirmed' | 'shipped' | 'delivered' | 'cancelled' | 'returned';
42
+ statusText?: string;
43
+ customerName?: string;
44
+ customerEmail?: string;
45
+ customerPhone?: string;
46
+ shippingAddress: OrderDetailsAddress;
47
+ billingAddress?: OrderDetailsAddress;
48
+ items: OrderDetailsItem[];
49
+ subtotal: number;
50
+ shippingCost?: number;
51
+ tax?: number;
52
+ discount?: number;
53
+ total: number;
54
+ currency?: string;
55
+ couponCode?: string;
56
+ paymentMethod?: string;
57
+ paymentStatus?: 'pending' | 'paid' | 'failed' | 'refunded';
58
+ transactionId?: string;
59
+ estimatedDelivery?: string;
60
+ deliveredDate?: string;
61
+ trackingNumber?: string;
62
+ trackingUrl?: string;
63
+ carrier?: string;
64
+ onDownloadInvoice?: (orderId: string) => void;
65
+ onTrackOrder?: (orderId: string) => void;
66
+ onCancelOrder?: (orderId: string) => void;
67
+ onReturnOrder?: (orderId: string) => void;
68
+ onReorder?: (orderId: string) => void;
69
+ onContactSupport?: (orderId: string) => void;
70
+ onWriteReview?: (orderId: string) => void;
71
+ downloadInvoiceText?: string;
72
+ trackOrderText?: string;
73
+ cancelOrderText?: string;
74
+ returnOrderText?: string;
75
+ reorderText?: string;
76
+ contactSupportText?: string;
77
+ writeReviewText?: string;
78
+ showActions?: boolean;
79
+ allowCancel?: boolean;
80
+ allowReturn?: boolean;
81
+ allowReorder?: boolean;
82
+ className?: string;
83
+ style?: React.CSSProperties;
84
+ }
85
+ declare const OrderDetailsWithParsedClasses: (props: OrderDetailsProps & React.RefAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
86
+ declare const _default: React.FC<OrderDetailsProps & React.RefAttributes<HTMLDivElement>>;
87
+ export default _default;
88
+ export { OrderDetailsWithParsedClasses as OrderDetails };
@@ -0,0 +1,3 @@
1
+ export { default } from './OrderDetails';
2
+ export { default as OrderDetails } from './OrderDetails';
3
+ export type { OrderDetailsProps, OrderDetailsItem, OrderDetailsAddress } from './OrderDetails';
@@ -0,0 +1,42 @@
1
+ import React from 'react';
2
+ import './ProductCard.css';
3
+ export interface ProductCardProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ id?: string;
5
+ image: string;
6
+ imageAlt?: string;
7
+ category?: string;
8
+ name: React.ReactNode;
9
+ weight?: number;
10
+ units?: string;
11
+ price: number;
12
+ originalPrice?: number;
13
+ discount?: string;
14
+ rating?: number;
15
+ initialQuantity?: number;
16
+ featured?: boolean;
17
+ featuredText?: string;
18
+ showWishlist?: boolean;
19
+ isWishlisted?: boolean;
20
+ cartIcon?: React.ReactNode;
21
+ wishlistIcon?: React.ReactNode;
22
+ wishlistFilledIcon?: React.ReactNode;
23
+ quickViewIcon?: React.ReactNode;
24
+ onAddToCart?: (id?: string, quantity?: number) => void | Promise<void>;
25
+ onIncrementCart?: (id?: string, quantity?: number) => void | Promise<void>;
26
+ onDecrementCart?: (id?: string, quantity?: number) => void | Promise<void>;
27
+ onWishlist?: () => void;
28
+ onQuickView?: () => void;
29
+ onClick?: () => void;
30
+ loading?: boolean;
31
+ className?: string;
32
+ style?: React.CSSProperties;
33
+ }
34
+ export interface ProductCardWideProps extends ProductCardProps {
35
+ imagePosition?: 'left' | 'right';
36
+ }
37
+ export declare const ProductCard: {
38
+ Base: React.FC<ProductCardProps & React.RefAttributes<HTMLDivElement>>;
39
+ Wide: React.FC<ProductCardWideProps & React.RefAttributes<HTMLDivElement>>;
40
+ Minimal: React.FC<ProductCardProps & React.RefAttributes<HTMLDivElement>>;
41
+ };
42
+ export default ProductCard;
@@ -0,0 +1 @@
1
+ export * from './ProductCard';
@@ -0,0 +1,12 @@
1
+ interface ProductCardProps {
2
+ id: string;
3
+ category: string;
4
+ name: string;
5
+ weight?: number;
6
+ units?: string;
7
+ price: number;
8
+ ratings: number;
9
+ imageUrl?: string;
10
+ }
11
+ declare const ProductCard: (props: ProductCardProps) => import("react/jsx-runtime").JSX.Element;
12
+ export default ProductCard;
package/package.json CHANGED
@@ -1,59 +1,72 @@
1
- {
2
- "name": "@vtx-ui/react",
3
- "version": "0.0.1-beta.3",
4
- "description": "A production-ready React + TypeScript UI library with enterprise-grade components",
5
- "main": "dist/index.cjs.js",
6
- "module": "dist/index.esm.js",
7
- "types": "dist/index.d.ts",
8
- "publishConfig": {
9
- "access": "public"
10
- },
11
- "files": [
12
- "dist"
13
- ],
14
- "sideEffects": [
15
- "*.css"
16
- ],
17
- "author": "Innostes Solutions Pvt Ltd <contact@innostes.com>",
18
- "license": "MIT",
19
- "repository": {
20
- "type": "git",
21
- "url": "https://github.com/vertex-ui/react"
22
- },
23
- "homepage": "https://innostes.com/",
24
- "bugs": {
25
- "url": "https://github.com/vertex-ui/react/issues"
26
- },
27
- "scripts": {
28
- "build": "rollup -c",
29
- "test": "jest",
30
- "test:watch": "jest --watch",
31
- "test:coverage": "jest --coverage"
32
- },
33
- "peerDependencies": {
34
- "react": ">=17",
35
- "react-dom": ">=17"
36
- },
37
- "devDependencies": {
38
-
39
- "@rollup/plugin-typescript": "^12.3.0",
40
- "@testing-library/jest-dom": "^6.9.1",
41
- "@testing-library/react": "^16.3.0",
42
- "@testing-library/user-event": "^14.6.1",
43
- "@types/jest": "^30.0.0",
44
- "@types/react": "^19.2.7",
45
- "@types/react-dom": "^19.2.3",
46
- "identity-obj-proxy": "^3.0.0",
47
- "jest": "^30.2.0",
48
- "jest-axe": "^7.0.0",
49
- "jest-environment-jsdom": "^29.7.0",
50
- "rollup": "^2.79.2",
51
- "rollup-plugin-peer-deps-external": "^2.2.4",
52
- "rollup-plugin-postcss": "^4.0.2",
53
- "rollup-plugin-terser": "^7.0.2",
54
- "ts-jest": "^29.4.6"
55
- },
56
- "dependencies": {
57
- "tslib": "^2.8.1"
58
- }
59
- }
1
+ {
2
+ "name": "@vtx-ui/react",
3
+ "version": "0.0.1-beta.4",
4
+ "description": "A production-ready React + TypeScript UI library with enterprise-grade components",
5
+ "main": "dist/index.cjs.js",
6
+ "module": "dist/index.esm.js",
7
+ "types": "dist/index.d.ts",
8
+ "publishConfig": {
9
+ "access": "public"
10
+ },
11
+ "files": [
12
+ "dist"
13
+ ],
14
+ "sideEffects": [
15
+ "*.css"
16
+ ],
17
+ "author": "Innostes Solutions Pvt Ltd <contact@innostes.com>",
18
+ "license": "MIT",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/vertex-ui/react"
22
+ },
23
+ "homepage": "https://innostes.com/",
24
+ "bugs": {
25
+ "url": "https://github.com/vertex-ui/react/issues"
26
+ },
27
+ "scripts": {
28
+ "build": "rollup -c",
29
+ "test": "jest",
30
+ "test:watch": "jest --watch",
31
+ "test:coverage": "jest --coverage",
32
+ "storybook": "storybook dev -p 6006",
33
+ "build-storybook": "storybook build"
34
+ },
35
+ "peerDependencies": {
36
+ "react": ">=17",
37
+ "react-dom": ">=17"
38
+ },
39
+ "devDependencies": {
40
+ "@chromatic-com/storybook": "^4.1.3",
41
+ "@rollup/plugin-typescript": "^12.3.0",
42
+ "@storybook/addon-a11y": "^10.1.10",
43
+ "@storybook/addon-docs": "^10.1.10",
44
+ "@storybook/addon-vitest": "^10.1.10",
45
+ "@storybook/react-vite": "^10.1.10",
46
+ "@testing-library/jest-dom": "^6.9.1",
47
+ "@testing-library/react": "^16.3.0",
48
+ "@testing-library/user-event": "^14.6.1",
49
+ "@types/jest": "^30.0.0",
50
+ "@types/react": "^19.2.7",
51
+ "@types/react-dom": "^19.2.3",
52
+ "@vitest/browser-playwright": "^4.0.16",
53
+ "@vitest/coverage-v8": "^4.0.16",
54
+ "eslint-plugin-storybook": "^10.1.10",
55
+ "identity-obj-proxy": "^3.0.0",
56
+ "jest": "^30.2.0",
57
+ "jest-axe": "^7.0.0",
58
+ "jest-environment-jsdom": "^29.7.0",
59
+ "playwright": "^1.57.0",
60
+ "rollup": "^2.79.2",
61
+ "rollup-plugin-peer-deps-external": "^2.2.4",
62
+ "rollup-plugin-postcss": "^4.0.2",
63
+ "rollup-plugin-terser": "^7.0.2",
64
+ "storybook": "^10.1.10",
65
+ "ts-jest": "^29.4.6",
66
+ "vitest": "^4.0.16"
67
+ },
68
+ "dependencies": {
69
+ "react-icons": "^5.5.0",
70
+ "tslib": "^2.8.1"
71
+ }
72
+ }