@mappedin/viewer 0.35.2-9c5b2e5.0 → 0.35.2-fee21ee.0
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/index.js +36 -12
- package/dist/types/src/components/metadata-card/utils.d.ts +5 -0
- package/dist/types/src/components/operation-hours/hours-list.d.ts +9 -0
- package/dist/types/src/components/operation-hours/index.d.ts +7 -0
- package/dist/types/src/components/operation-hours/open-status.d.ts +9 -0
- package/dist/types/src/components/operation-hours/operation-hours.stories.d.ts +4 -0
- package/dist/types/src/lib/types/theme.d.ts +2 -0
- package/dist/types/src/stores/ui-store/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7706,10 +7706,15 @@ const m7e = "Loading...", y7e = "Stairs", C7e = "Elevator", v7e = "Connection",
|
|
|
7706
7706
|
"share-point": "Share this point"
|
|
7707
7707
|
},
|
|
7708
7708
|
"operation-hours": {
|
|
7709
|
-
midnight: "
|
|
7710
|
-
noon: "
|
|
7711
|
-
"open-24-hours": "Open 24
|
|
7709
|
+
midnight: "midnight",
|
|
7710
|
+
noon: "noon",
|
|
7711
|
+
"open-24-hours": "Open 24 hours",
|
|
7712
7712
|
closed: "Closed",
|
|
7713
|
+
"open-now": "Open now",
|
|
7714
|
+
"opening-soon": "Opening soon",
|
|
7715
|
+
"closing-soon": "Closing soon",
|
|
7716
|
+
"opens-at": "Opens {{time}}",
|
|
7717
|
+
"closes-at": "Closes {{time}}",
|
|
7713
7718
|
"sunday-short": "Sun",
|
|
7714
7719
|
"monday-short": "Mon",
|
|
7715
7720
|
"tuesday-short": "Tue",
|
|
@@ -7717,13 +7722,13 @@ const m7e = "Loading...", y7e = "Stairs", C7e = "Elevator", v7e = "Connection",
|
|
|
7717
7722
|
"thursday-short": "Thu",
|
|
7718
7723
|
"friday-short": "Fri",
|
|
7719
7724
|
"saturday-short": "Sat",
|
|
7720
|
-
"sunday-time": "{{time}}
|
|
7721
|
-
"monday-time": "{{time}}
|
|
7722
|
-
"tuesday-time": "{{time}}
|
|
7723
|
-
"wednesday-time": "{{time}}
|
|
7724
|
-
"thursday-time": "{{time}}
|
|
7725
|
-
"friday-time": "{{time}}
|
|
7726
|
-
"saturday-time": "{{time}}
|
|
7725
|
+
"sunday-time": "{{time}} Sun",
|
|
7726
|
+
"monday-time": "{{time}} Mon",
|
|
7727
|
+
"tuesday-time": "{{time}} Tue",
|
|
7728
|
+
"wednesday-time": "{{time}} Wed",
|
|
7729
|
+
"thursday-time": "{{time}} Thu",
|
|
7730
|
+
"friday-time": "{{time}} Fri",
|
|
7731
|
+
"saturday-time": "{{time}} Sat"
|
|
7727
7732
|
}
|
|
7728
7733
|
}, N7e = {
|
|
7729
7734
|
"access-features": "Access Features",
|
|
@@ -9693,6 +9698,7 @@ const t2 = new Zde("[Mappedin Viewer]"), cS = {}, q2e = (t) => t.startsWith("htt
|
|
|
9693
9698
|
placeholder: "#BFBFBF",
|
|
9694
9699
|
inverted: "#FFFFFF",
|
|
9695
9700
|
error: "#D46B08",
|
|
9701
|
+
error2: "#CF1322",
|
|
9696
9702
|
link: "#1890FF"
|
|
9697
9703
|
},
|
|
9698
9704
|
map: {
|
|
@@ -9732,7 +9738,8 @@ const t2 = new Zde("[Mappedin Viewer]"), cS = {}, q2e = (t) => t.startsWith("htt
|
|
|
9732
9738
|
small: 14,
|
|
9733
9739
|
normal: 16,
|
|
9734
9740
|
large: 18,
|
|
9735
|
-
xlarge: 20
|
|
9741
|
+
xlarge: 20,
|
|
9742
|
+
title: 22
|
|
9736
9743
|
},
|
|
9737
9744
|
borderRadius: {
|
|
9738
9745
|
primary: 4,
|
|
@@ -9773,7 +9780,8 @@ const t2 = new Zde("[Mappedin Viewer]"), cS = {}, q2e = (t) => t.startsWith("htt
|
|
|
9773
9780
|
small: 12,
|
|
9774
9781
|
normal: 14,
|
|
9775
9782
|
large: 16,
|
|
9776
|
-
xlarge: 18
|
|
9783
|
+
xlarge: 18,
|
|
9784
|
+
title: 20
|
|
9777
9785
|
}, Kde = (t) => ({
|
|
9778
9786
|
...t,
|
|
9779
9787
|
fontSize: Xde
|
|
@@ -9798,6 +9806,7 @@ const t2 = new Zde("[Mappedin Viewer]"), cS = {}, q2e = (t) => t.startsWith("htt
|
|
|
9798
9806
|
tertiary: "#7E7D7D",
|
|
9799
9807
|
quaternary: "#6A9FA0",
|
|
9800
9808
|
error: "#C47947",
|
|
9809
|
+
error2: "#BE5050",
|
|
9801
9810
|
highlight: "#65ADAE",
|
|
9802
9811
|
link: "#6A9FA0"
|
|
9803
9812
|
},
|
|
@@ -9858,6 +9867,7 @@ const t2 = new Zde("[Mappedin Viewer]"), cS = {}, q2e = (t) => t.startsWith("htt
|
|
|
9858
9867
|
tertiary: "#969EA8",
|
|
9859
9868
|
quaternary: "#C7C7C7",
|
|
9860
9869
|
error: "#DA9D70",
|
|
9870
|
+
error2: "#BA5959",
|
|
9861
9871
|
highlight: "#6ABBEE",
|
|
9862
9872
|
placeholder: "#969EA8",
|
|
9863
9873
|
link: "#649CBE"
|
|
@@ -9921,6 +9931,7 @@ const t2 = new Zde("[Mappedin Viewer]"), cS = {}, q2e = (t) => t.startsWith("htt
|
|
|
9921
9931
|
tertiary: "#AAA9A9",
|
|
9922
9932
|
quaternary: "#46A7BD",
|
|
9923
9933
|
error: "#D17C43",
|
|
9934
|
+
error2: "#C24C4C",
|
|
9924
9935
|
highlight: "#46A7BD",
|
|
9925
9936
|
link: "#46A7BD"
|
|
9926
9937
|
},
|
|
@@ -9983,6 +9994,7 @@ const t2 = new Zde("[Mappedin Viewer]"), cS = {}, q2e = (t) => t.startsWith("htt
|
|
|
9983
9994
|
highlight: "#6A8EFF",
|
|
9984
9995
|
placeholder: "#989A9E",
|
|
9985
9996
|
error: "#D19D87",
|
|
9997
|
+
error2: "#BB5E5E",
|
|
9986
9998
|
link: "#7991DC"
|
|
9987
9999
|
},
|
|
9988
10000
|
map: {
|
|
@@ -10048,6 +10060,7 @@ const t2 = new Zde("[Mappedin Viewer]"), cS = {}, q2e = (t) => t.startsWith("htt
|
|
|
10048
10060
|
highlight: "#6A8EFF",
|
|
10049
10061
|
placeholder: "#989A9E",
|
|
10050
10062
|
error: "#D19D87",
|
|
10063
|
+
error2: "#BB5E5E",
|
|
10051
10064
|
link: "#cc6b2b"
|
|
10052
10065
|
},
|
|
10053
10066
|
map: {
|
|
@@ -10109,6 +10122,7 @@ const t2 = new Zde("[Mappedin Viewer]"), cS = {}, q2e = (t) => t.startsWith("htt
|
|
|
10109
10122
|
tertiary: "#AAA9A9",
|
|
10110
10123
|
quaternary: "#C14D4D",
|
|
10111
10124
|
error: "#D17C43",
|
|
10125
|
+
error2: "#C24C4C",
|
|
10112
10126
|
highlight: "#C14D4D",
|
|
10113
10127
|
link: "#C14D4D"
|
|
10114
10128
|
},
|
|
@@ -68769,6 +68783,16 @@ const oce = /* @__PURE__ */ new Map([
|
|
|
68769
68783
|
}
|
|
68770
68784
|
) })
|
|
68771
68785
|
],
|
|
68786
|
+
[
|
|
68787
|
+
"clock-32x32",
|
|
68788
|
+
/* @__PURE__ */ Z.jsx("svg", { viewBox: "0 0 32 32", stroke: "none", children: /* @__PURE__ */ Z.jsx(
|
|
68789
|
+
"path",
|
|
68790
|
+
{
|
|
68791
|
+
d: "M16 0C12.8355 0 9.74207 0.938383 7.11088 2.69649C4.4797 4.45459 2.42894 6.95344 1.21793 9.87706C0.00693255 12.8007 -0.309921 16.0177 0.307443 19.1214C0.924806 22.2251 2.44866 25.0761 4.6863 27.3137C6.92394 29.5513 9.77486 31.0752 12.8786 31.6926C15.9823 32.3099 19.1993 31.9931 22.1229 30.7821C25.0466 29.5711 27.5454 27.5203 29.3035 24.8891C31.0616 22.2579 32 19.1645 32 16C31.9955 11.7579 30.3084 7.69085 27.3088 4.69124C24.3092 1.69163 20.2421 0.00447972 16 0ZM16 29.5385C13.3223 29.5385 10.7048 28.7444 8.47844 27.2568C6.25205 25.7692 4.51679 23.6548 3.4921 21.1809C2.4674 18.7071 2.1993 15.985 2.72168 13.3588C3.24407 10.7326 4.53348 8.32025 6.42687 6.42686C8.32026 4.53347 10.7326 3.24406 13.3588 2.72168C15.985 2.19929 18.7071 2.4674 21.1809 3.49209C23.6548 4.51679 25.7692 6.25204 27.2568 8.47843C28.7444 10.7048 29.5385 13.3223 29.5385 16C29.5344 19.5894 28.1067 23.0306 25.5686 25.5686C23.0306 28.1067 19.5894 29.5344 16 29.5385ZM25.8462 16C25.8462 16.3264 25.7165 16.6395 25.4857 16.8703C25.2549 17.1011 24.9418 17.2308 24.6154 17.2308H16C15.6736 17.2308 15.3605 17.1011 15.1297 16.8703C14.8989 16.6395 14.7692 16.3264 14.7692 16V7.38461C14.7692 7.05819 14.8989 6.74514 15.1297 6.51433C15.3605 6.28351 15.6736 6.15384 16 6.15384C16.3264 6.15384 16.6395 6.28351 16.8703 6.51433C17.1011 6.74514 17.2308 7.05819 17.2308 7.38461V14.7692H24.6154C24.9418 14.7692 25.2549 14.8989 25.4857 15.1297C25.7165 15.3605 25.8462 15.6736 25.8462 16Z",
|
|
68792
|
+
stroke: "none"
|
|
68793
|
+
}
|
|
68794
|
+
) })
|
|
68795
|
+
],
|
|
68772
68796
|
[
|
|
68773
68797
|
"star-40x40",
|
|
68774
68798
|
/* @__PURE__ */ Z.jsx("svg", { viewBox: "0 0 40 40", stroke: "none", children: /* @__PURE__ */ Z.jsx(
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
2
|
import { TOnClickOrPressPayload } from '../button';
|
|
3
3
|
import SocialsItem from '../socials-item';
|
|
4
|
+
import OpeningHours from '../../lib/time/opening-hours';
|
|
4
5
|
export declare const METADATA_CARD_WIDTH = 320;
|
|
5
6
|
export declare const METADATA_CARD_PADDING = 20;
|
|
6
7
|
export declare const HERO_IMAGE_HEIGHT = 200;
|
|
@@ -50,6 +51,10 @@ export type TMetadataCardProps = {
|
|
|
50
51
|
id: string;
|
|
51
52
|
name: string;
|
|
52
53
|
}[];
|
|
54
|
+
/**
|
|
55
|
+
* Opening hours to show in the card.
|
|
56
|
+
*/
|
|
57
|
+
hours?: OpeningHours;
|
|
53
58
|
/**
|
|
54
59
|
* URL to show on a button just above the directions button.
|
|
55
60
|
*/
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import OpeningHours from '../../lib/time/opening-hours';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare const HOURS_LIST_HEIGHT = 24;
|
|
4
|
+
type THoursListProps = {
|
|
5
|
+
hours: OpeningHours;
|
|
6
|
+
date?: Date;
|
|
7
|
+
};
|
|
8
|
+
declare const HoursList: React.FC<THoursListProps>;
|
|
9
|
+
export default HoursList;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import OpeningHours from '../../lib/time/opening-hours';
|
|
2
|
+
type TOpenStatusProps = {
|
|
3
|
+
hours: OpeningHours;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
chevron?: 'right' | 'down';
|
|
6
|
+
date?: Date;
|
|
7
|
+
};
|
|
8
|
+
declare const OpenStatus: React.FC<TOpenStatusProps>;
|
|
9
|
+
export default OpenStatus;
|
|
@@ -37,6 +37,7 @@ export type TTheme = {
|
|
|
37
37
|
inverted: string;
|
|
38
38
|
link: string;
|
|
39
39
|
error: string;
|
|
40
|
+
error2: string;
|
|
40
41
|
};
|
|
41
42
|
map: {
|
|
42
43
|
labels: {
|
|
@@ -81,6 +82,7 @@ export type TTheme = {
|
|
|
81
82
|
normal: number;
|
|
82
83
|
large: number;
|
|
83
84
|
xlarge: number;
|
|
85
|
+
title: number;
|
|
84
86
|
};
|
|
85
87
|
fontWeight: {
|
|
86
88
|
light: number;
|
|
@@ -58,6 +58,7 @@ declare class UIStore {
|
|
|
58
58
|
inverted: string;
|
|
59
59
|
link: string;
|
|
60
60
|
error: string;
|
|
61
|
+
error2: string;
|
|
61
62
|
}>;
|
|
62
63
|
map: Partial<{
|
|
63
64
|
labels: Partial<{
|
|
@@ -102,6 +103,7 @@ declare class UIStore {
|
|
|
102
103
|
normal: number;
|
|
103
104
|
large: number;
|
|
104
105
|
xlarge: number;
|
|
106
|
+
title: number;
|
|
105
107
|
}>;
|
|
106
108
|
fontWeight: Partial<{
|
|
107
109
|
light: number;
|