@rxdrag/website-lib-react 0.0.1
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/dist/components/Analytics/eventHandlers.d.ts +8 -0
- package/dist/components/Analytics/index.d.ts +3 -0
- package/dist/components/Analytics/singleton.d.ts +18 -0
- package/dist/components/Analytics/tracking.d.ts +11 -0
- package/dist/components/Analytics/types.d.ts +54 -0
- package/dist/components/Analytics/utils.d.ts +10 -0
- package/dist/components/AttachmentIcon/index.d.ts +5 -0
- package/dist/components/BackgroundHlsVideoPlayer.d.ts +3 -0
- package/dist/components/BackgroundVideoPlayer.d.ts +3 -0
- package/dist/components/Bulletin.d.ts +3 -0
- package/dist/components/ContactForm/ContactForm.d.ts +3 -0
- package/dist/components/ContactForm/FileUpload2.d.ts +24 -0
- package/dist/components/ContactForm/Input.d.ts +14 -0
- package/dist/components/ContactForm/Input2.d.ts +6 -0
- package/dist/components/ContactForm/Submit.d.ts +11 -0
- package/dist/components/ContactForm/TelInput.d.ts +14 -0
- package/dist/components/ContactForm/TelInput2.d.ts +15 -0
- package/dist/components/ContactForm/Textarea.d.ts +14 -0
- package/dist/components/ContactForm/Textarea2.d.ts +6 -0
- package/dist/components/ContactForm/countryDialCodes.d.ts +7 -0
- package/dist/components/ContactForm/factory.d.ts +28 -0
- package/dist/components/ContactForm/funcs.d.ts +14 -0
- package/dist/components/ContactForm/hooks/useInlineLabelPadding.d.ts +9 -0
- package/dist/components/ContactForm/hooks/useTelControl.d.ts +18 -0
- package/dist/components/ContactForm/index.d.ts +7 -0
- package/dist/components/ContactForm/types.d.ts +58 -0
- package/dist/components/Icon/index.d.ts +6 -0
- package/dist/components/Medias/MainMedia.d.ts +17 -0
- package/dist/components/Medias/Thumbnail.d.ts +12 -0
- package/dist/components/Medias/VideoPlayer.d.ts +7 -0
- package/dist/components/Medias/index.d.ts +23 -0
- package/dist/components/ProductCard/ProductCard.d.ts +17 -0
- package/dist/components/ProductCard/ProductCta/index.d.ts +8 -0
- package/dist/components/ProductCard/ProductDescription/index.d.ts +3 -0
- package/dist/components/ProductCard/ProductMedia/index.d.ts +8 -0
- package/dist/components/ProductCard/ProductTitle/index.d.ts +3 -0
- package/dist/components/ProductCard/ProductView.d.ts +7 -0
- package/dist/components/ProductCard/index.d.ts +5 -0
- package/dist/components/ProductCard/useQueryProduct.d.ts +3 -0
- package/dist/components/ReactModalTrigger.d.ts +8 -0
- package/dist/components/ReactVideoPlayer.d.ts +30 -0
- package/dist/components/RichTextOutline/index.d.ts +8 -0
- package/dist/components/RichTextOutline/useAcitviedHeading.d.ts +1 -0
- package/dist/components/RichTextOutline/useAnchorScroll.d.ts +2 -0
- package/dist/components/Scroller.d.ts +5 -0
- package/dist/components/SearchInput.d.ts +2 -0
- package/dist/components/Share/index.d.ts +10 -0
- package/dist/components/Share/socials.d.ts +12 -0
- package/dist/components/ToTop.d.ts +6 -0
- package/dist/components/VideoPlayIcon.d.ts +8 -0
- package/dist/components/all.d.ts +40 -0
- package/dist/components/index.d.ts +17 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +3954 -0
- package/dist/index.mjs.map +1 -0
- package/dist/style.css +17 -0
- package/dist/types/view-model.d.ts +35 -0
- package/package.json +40 -0
package/dist/style.css
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.product-cta-button {
|
|
2
|
+
width: 100%;
|
|
3
|
+
padding: 8px 16px;
|
|
4
|
+
}.x-figure .product-title{
|
|
5
|
+
margin-top: 0.6rem;
|
|
6
|
+
padding-top: 0;
|
|
7
|
+
}.x-figure .product-description {
|
|
8
|
+
margin-top: 0;
|
|
9
|
+
margin-bottom: 0;
|
|
10
|
+
padding-top: 0;
|
|
11
|
+
padding-bottom: 0.4rem;
|
|
12
|
+
}.x-figure .product-media {
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Media, PageMeta } from '@rxdrag/rxcms-models';
|
|
2
|
+
|
|
3
|
+
export type TMedia = Media & {
|
|
4
|
+
alt?: string;
|
|
5
|
+
};
|
|
6
|
+
export type TProductCategory = {
|
|
7
|
+
id?: string | null;
|
|
8
|
+
slug?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
children?: TProductCategory[];
|
|
11
|
+
media?: TMedia;
|
|
12
|
+
parent?: TProductCategory;
|
|
13
|
+
products?: TProduct[];
|
|
14
|
+
description?: string;
|
|
15
|
+
};
|
|
16
|
+
export type TProduct = {
|
|
17
|
+
id?: string | null;
|
|
18
|
+
slug?: string;
|
|
19
|
+
title?: string;
|
|
20
|
+
shortTitle?: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
features?: string;
|
|
23
|
+
medias?: TMedia[];
|
|
24
|
+
cover?: Media;
|
|
25
|
+
content?: string;
|
|
26
|
+
coverUrl?: string;
|
|
27
|
+
price?: string;
|
|
28
|
+
publishedAt?: Date;
|
|
29
|
+
createdAt?: Date;
|
|
30
|
+
updatedAt?: Date;
|
|
31
|
+
category?: TProductCategory;
|
|
32
|
+
related?: TProduct[];
|
|
33
|
+
attachments?: Media[];
|
|
34
|
+
meta?: PageMeta;
|
|
35
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@rxdrag/website-lib-react",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"module": "dist/index.mjs",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"keywords": [
|
|
10
|
+
"react-component"
|
|
11
|
+
],
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@types/react": "^19.1.0",
|
|
17
|
+
"@types/react-dom": "^19.1.0",
|
|
18
|
+
"eslint": "^9.39.2",
|
|
19
|
+
"typescript": "^5",
|
|
20
|
+
"@rxdrag/tsconfig": "0.2.1",
|
|
21
|
+
"@rxdrag/eslint-config-custom": "0.2.13"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@iconify/react": "^5.0.2",
|
|
25
|
+
"clsx": "^2.1.0",
|
|
26
|
+
"hls.js": "^1.6.13",
|
|
27
|
+
"@rxdrag/rxcms-models": "0.3.111",
|
|
28
|
+
"@rxdrag/tiptap-preview": "0.0.3"
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
32
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"lint": "eslint . --ext .ts,tsx",
|
|
36
|
+
"clean": "rimraf -rf .turbo && rimraf -rf node_modules && rimraf -rf dist",
|
|
37
|
+
"build": "vite build"
|
|
38
|
+
},
|
|
39
|
+
"typings": "dist/index.d.ts"
|
|
40
|
+
}
|