@clikvn/showroom-visualizer 0.5.1-dev-01 → 0.5.1-dev-02

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 (53) hide show
  1. package/base.json +21 -21
  2. package/dist/components/SkinLayer/GalleryFullScreen/Content/ARViewer.d.ts +30 -0
  3. package/dist/components/SkinLayer/GalleryFullScreen/Content/ARViewer.d.ts.map +1 -0
  4. package/dist/components/SkinLayer/ModalItemInfo/Description.d.ts +10 -0
  5. package/dist/components/SkinLayer/ModalItemInfo/Description.d.ts.map +1 -0
  6. package/dist/components/SkinLayer/ModalItemInfo/Intro.d.ts +9 -0
  7. package/dist/components/SkinLayer/ModalItemInfo/Intro.d.ts.map +1 -0
  8. package/dist/components/SkinLayer/ModalItemInfo/Media.d.ts +13 -0
  9. package/dist/components/SkinLayer/ModalItemInfo/Media.d.ts.map +1 -0
  10. package/dist/components/SkinLayer/ModalItemInfo/index.d.ts +10 -0
  11. package/dist/components/SkinLayer/ModalItemInfo/index.d.ts.map +1 -0
  12. package/dist/components/SkinLayer/PoiTextureOptions/HorizontalMenu/index.d.ts +13 -0
  13. package/dist/components/SkinLayer/PoiTextureOptions/HorizontalMenu/index.d.ts.map +1 -0
  14. package/dist/components/SkinLayer/PoiTextureOptions/SemicircleMenu/index.d.ts +13 -0
  15. package/dist/components/SkinLayer/PoiTextureOptions/SemicircleMenu/index.d.ts.map +1 -0
  16. package/dist/components/SkinLayer/PoiTextureOptions/TextureMenuItem/index.d.ts +15 -0
  17. package/dist/components/SkinLayer/PoiTextureOptions/TextureMenuItem/index.d.ts.map +1 -0
  18. package/dist/components/SkinLayer/PoiTextureOptions/VerticalMenu/index.d.ts +13 -0
  19. package/dist/components/SkinLayer/PoiTextureOptions/VerticalMenu/index.d.ts.map +1 -0
  20. package/dist/context/StoreContext.d.ts +5 -0
  21. package/dist/context/StoreContext.d.ts.map +1 -0
  22. package/dist/features/ShowroomVisualizer/Scripts.d.ts +4 -0
  23. package/dist/features/ShowroomVisualizer/Scripts.d.ts.map +1 -0
  24. package/dist/features/ShowroomVisualizer/TourContainer.d.ts +9 -0
  25. package/dist/features/ShowroomVisualizer/TourContainer.d.ts.map +1 -0
  26. package/dist/features/ShowroomVisualizer/Tours.d.ts +3 -0
  27. package/dist/features/ShowroomVisualizer/Tours.d.ts.map +1 -0
  28. package/dist/features/ShowroomVisualizer/index.d.ts +1 -0
  29. package/dist/features/ShowroomVisualizer/index.d.ts.map +1 -1
  30. package/dist/fonts/icomoon.svg +633 -633
  31. package/dist/hooks/SkinLayer/useAutoPlayer.d.ts.map +1 -1
  32. package/dist/hooks/Visualizer/reducer.d.ts +116 -0
  33. package/dist/hooks/Visualizer/reducer.d.ts.map +1 -0
  34. package/dist/index.html +105 -31
  35. package/dist/index.js +1 -1
  36. package/dist/web.d.ts.map +1 -1
  37. package/dist/web.js +1 -1
  38. package/example/src/App.tsx +195 -0
  39. package/example/src/components/ControlPanel.tsx +736 -0
  40. package/example/src/components/CustomComponents/FloorplanComponents.tsx +37 -0
  41. package/example/src/components/CustomComponents/HotspotCategoryComponents.tsx +106 -0
  42. package/example/src/components/CustomComponents/PinActionsComponents.tsx +45 -0
  43. package/example/src/components/CustomComponents/PlayBarComponents.tsx +41 -0
  44. package/example/src/components/CustomComponents/PoiDetailComponents.tsx +296 -0
  45. package/example/src/components/CustomComponents/SearchAndDiscoveryComponents.tsx +207 -0
  46. package/example/src/components/CustomComponents/index.tsx +7 -0
  47. package/example/src/css-modules.d.ts +4 -0
  48. package/example/src/hooks/useCustomLayout.ts +328 -0
  49. package/example/src/index.css +31 -0
  50. package/example/src/main.tsx +11 -0
  51. package/package.json +1 -1
  52. package/tailwind.config.cjs +151 -151
  53. package/yarn-error.log +12200 -0
@@ -1,151 +1,151 @@
1
- // eslint-disable-next-line @typescript-eslint/no-var-requires
2
- const defaultTheme = require('tailwindcss/defaultTheme');
3
- const plugin = require('tailwindcss/plugin');
4
-
5
- function rem2px(input, fontSize = 16) {
6
- if (input == null) {
7
- return input;
8
- }
9
- switch (typeof input) {
10
- case 'object':
11
- if (Array.isArray(input)) {
12
- return input.map((val) => rem2px(val, fontSize));
13
- }
14
- // eslint-disable-next-line no-case-declarations
15
- const ret = {};
16
- for (const key in input) {
17
- ret[key] = rem2px(input[key], fontSize);
18
- }
19
- return ret;
20
- case 'string':
21
- return input.replace(
22
- /(\d*\.?\d+)rem$/,
23
- (_, val) => `${parseFloat(val) * fontSize}px`
24
- );
25
- case 'function':
26
- return eval(
27
- input
28
- .toString()
29
- .replace(
30
- /(\d*\.?\d+)rem/g,
31
- (_, val) => `${parseFloat(val) * fontSize}px`
32
- )
33
- );
34
- default:
35
- return input;
36
- }
37
- }
38
-
39
- /** @type {import('tailwindcss').Config} */
40
- module.exports = {
41
- darkMode: ['class'],
42
- content: ['./src/**/*.{js,jsx,ts,tsx}'],
43
- theme: {
44
- ...rem2px(defaultTheme),
45
- fontFamily: {
46
- sans: ['Be Vietnam Pro', 'sans-serif'],
47
- mono: ['Be Vietnam Pro', 'sans-serif'],
48
- },
49
- extend: {
50
- keyframes: {
51
- 'fade-in': {
52
- '0%': {
53
- opacity: '0',
54
- },
55
- '100%': {
56
- opacity: '1',
57
- },
58
- },
59
- 'poi-item-info-bg-animation': {
60
- '0%': {
61
- 'background-color': 'rgba(0, 0, 0, 0)',
62
- },
63
- '100%': {
64
- 'background-color': 'rgba(0, 0, 0, 0.48)',
65
- },
66
- },
67
- 'poi-item-info-animation': {
68
- '0%': {
69
- width: '0',
70
- },
71
- '100%': {
72
- width: '100%',
73
- },
74
- },
75
- },
76
- /*animation: {
77
- 'fade-in': 'fade-in 0.3s ease-out',
78
- },
79
- borderRadius: {
80
- lg: 'var(--radius)',
81
- md: 'calc(var(--radius) - 2px)',
82
- sm: 'calc(var(--radius) - 4px)',
83
- },*/
84
- colors: {
85
- background: 'var(--background)',
86
- foreground: 'var(--foreground)',
87
- card: {
88
- DEFAULT: 'var(--card)',
89
- foreground: 'var(--card-foreground)',
90
- },
91
- popover: {
92
- DEFAULT: 'var(--popover)',
93
- foreground: 'var(--popover-foreground)',
94
- },
95
- primary: {
96
- DEFAULT: 'var(--primary)',
97
- foreground: 'var(--primary-foreground)',
98
- },
99
- secondary: {
100
- DEFAULT: 'var(--secondary)',
101
- foreground: 'var(--secondary-foreground)',
102
- },
103
- muted: {
104
- DEFAULT: 'var(--muted)',
105
- foreground: 'var(--muted-foreground)',
106
- },
107
- accent: {
108
- DEFAULT: 'var(--accent)',
109
- foreground: 'var(--accent-foreground)',
110
- },
111
- destructive: {
112
- DEFAULT: 'var(--destructive)',
113
- foreground: 'var(--destructive-foreground)',
114
- },
115
- border: 'var(--border)',
116
- input: 'var(--input)',
117
- ring: 'var(--ring)',
118
- rating: 'var(--rating)',
119
- chart: {
120
- 1: 'var(--chart-1)',
121
- 2: 'var(--chart-2)',
122
- 3: 'var(--chart-3)',
123
- 4: 'var(--chart-4)',
124
- 5: 'var(--chart-5)',
125
- },
126
- sidebar: {
127
- DEFAULT: 'var(--sidebar)',
128
- foreground: 'var(--sidebar-foreground)',
129
- primary: 'var(--sidebar-primary)',
130
- 'primary-foreground': 'var(--sidebar-primary-foreground)',
131
- accent: 'var(--sidebar-accent)',
132
- 'accent-foreground': 'var(--sidebar-accent-foreground)',
133
- border: 'var(--sidebar-border)',
134
- ring: 'var(--sidebar-ring)',
135
- },
136
- base: 'var(--base)',
137
- },
138
- },
139
- },
140
- plugins: [
141
- require('tailwindcss-animate'),
142
- require('@tailwindcss/typography'),
143
- plugin(function ({ addVariant }) {
144
- addVariant('wrapped', ({ container }) => {
145
- container.walkRules((rule) => {
146
- rule.selector = `.clik-chatbot-wrapper ${rule.selector}`;
147
- });
148
- });
149
- }),
150
- ],
151
- };
1
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
2
+ const defaultTheme = require('tailwindcss/defaultTheme');
3
+ const plugin = require('tailwindcss/plugin');
4
+
5
+ function rem2px(input, fontSize = 16) {
6
+ if (input == null) {
7
+ return input;
8
+ }
9
+ switch (typeof input) {
10
+ case 'object':
11
+ if (Array.isArray(input)) {
12
+ return input.map((val) => rem2px(val, fontSize));
13
+ }
14
+ // eslint-disable-next-line no-case-declarations
15
+ const ret = {};
16
+ for (const key in input) {
17
+ ret[key] = rem2px(input[key], fontSize);
18
+ }
19
+ return ret;
20
+ case 'string':
21
+ return input.replace(
22
+ /(\d*\.?\d+)rem$/,
23
+ (_, val) => `${parseFloat(val) * fontSize}px`
24
+ );
25
+ case 'function':
26
+ return eval(
27
+ input
28
+ .toString()
29
+ .replace(
30
+ /(\d*\.?\d+)rem/g,
31
+ (_, val) => `${parseFloat(val) * fontSize}px`
32
+ )
33
+ );
34
+ default:
35
+ return input;
36
+ }
37
+ }
38
+
39
+ /** @type {import('tailwindcss').Config} */
40
+ module.exports = {
41
+ darkMode: ['class'],
42
+ content: ['./src/**/*.{js,jsx,ts,tsx}'],
43
+ theme: {
44
+ ...rem2px(defaultTheme),
45
+ fontFamily: {
46
+ sans: ['Be Vietnam Pro', 'sans-serif'],
47
+ mono: ['Be Vietnam Pro', 'sans-serif'],
48
+ },
49
+ extend: {
50
+ keyframes: {
51
+ 'fade-in': {
52
+ '0%': {
53
+ opacity: '0',
54
+ },
55
+ '100%': {
56
+ opacity: '1',
57
+ },
58
+ },
59
+ 'poi-item-info-bg-animation': {
60
+ '0%': {
61
+ 'background-color': 'rgba(0, 0, 0, 0)',
62
+ },
63
+ '100%': {
64
+ 'background-color': 'rgba(0, 0, 0, 0.48)',
65
+ },
66
+ },
67
+ 'poi-item-info-animation': {
68
+ '0%': {
69
+ width: '0',
70
+ },
71
+ '100%': {
72
+ width: '100%',
73
+ },
74
+ },
75
+ },
76
+ /*animation: {
77
+ 'fade-in': 'fade-in 0.3s ease-out',
78
+ },
79
+ borderRadius: {
80
+ lg: 'var(--radius)',
81
+ md: 'calc(var(--radius) - 2px)',
82
+ sm: 'calc(var(--radius) - 4px)',
83
+ },*/
84
+ colors: {
85
+ background: 'var(--background)',
86
+ foreground: 'var(--foreground)',
87
+ card: {
88
+ DEFAULT: 'var(--card)',
89
+ foreground: 'var(--card-foreground)',
90
+ },
91
+ popover: {
92
+ DEFAULT: 'var(--popover)',
93
+ foreground: 'var(--popover-foreground)',
94
+ },
95
+ primary: {
96
+ DEFAULT: 'var(--primary)',
97
+ foreground: 'var(--primary-foreground)',
98
+ },
99
+ secondary: {
100
+ DEFAULT: 'var(--secondary)',
101
+ foreground: 'var(--secondary-foreground)',
102
+ },
103
+ muted: {
104
+ DEFAULT: 'var(--muted)',
105
+ foreground: 'var(--muted-foreground)',
106
+ },
107
+ accent: {
108
+ DEFAULT: 'var(--accent)',
109
+ foreground: 'var(--accent-foreground)',
110
+ },
111
+ destructive: {
112
+ DEFAULT: 'var(--destructive)',
113
+ foreground: 'var(--destructive-foreground)',
114
+ },
115
+ border: 'var(--border)',
116
+ input: 'var(--input)',
117
+ ring: 'var(--ring)',
118
+ rating: 'var(--rating)',
119
+ chart: {
120
+ 1: 'var(--chart-1)',
121
+ 2: 'var(--chart-2)',
122
+ 3: 'var(--chart-3)',
123
+ 4: 'var(--chart-4)',
124
+ 5: 'var(--chart-5)',
125
+ },
126
+ sidebar: {
127
+ DEFAULT: 'var(--sidebar)',
128
+ foreground: 'var(--sidebar-foreground)',
129
+ primary: 'var(--sidebar-primary)',
130
+ 'primary-foreground': 'var(--sidebar-primary-foreground)',
131
+ accent: 'var(--sidebar-accent)',
132
+ 'accent-foreground': 'var(--sidebar-accent-foreground)',
133
+ border: 'var(--sidebar-border)',
134
+ ring: 'var(--sidebar-ring)',
135
+ },
136
+ base: 'var(--base)',
137
+ },
138
+ },
139
+ },
140
+ plugins: [
141
+ require('tailwindcss-animate'),
142
+ require('@tailwindcss/typography'),
143
+ plugin(function ({ addVariant }) {
144
+ addVariant('wrapped', ({ container }) => {
145
+ container.walkRules((rule) => {
146
+ rule.selector = `.clik-chatbot-wrapper ${rule.selector}`;
147
+ });
148
+ });
149
+ }),
150
+ ],
151
+ };