@chayns-components/core 5.0.0-beta.430 → 5.0.0-beta.433
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/README.md +1 -11
- package/lib/api/signature/delete.js +1 -1
- package/lib/api/signature/delete.js.map +1 -1
- package/lib/api/signature/put.js +1 -1
- package/lib/api/signature/put.js.map +1 -1
- package/lib/components/combobox/ComboBox.js +1 -1
- package/lib/components/combobox/ComboBox.js.map +1 -1
- package/lib/components/combobox/ComboBox.styles.d.ts +1 -1
- package/lib/components/combobox/ComboBox.styles.js.map +1 -1
- package/lib/components/popup/popup-content/PopupContent.d.ts +1 -1
- package/lib/components/popup/popup-content/PopupContent.js.map +1 -1
- package/lib/components/scroll-view/ScrollView.js +1 -1
- package/lib/components/scroll-view/ScrollView.js.map +1 -1
- package/lib/components/scroll-view/ScrollView.styles.d.ts +1 -1
- package/lib/components/scroll-view/ScrollView.styles.js.map +1 -1
- package/lib/components/search-box/SearchBox.js +2 -2
- package/lib/components/search-box/SearchBox.js.map +1 -1
- package/lib/components/search-box/SearchBox.styles.d.ts +1 -1
- package/lib/components/search-box/SearchBox.styles.js.map +1 -1
- package/lib/components/signature/Signature.js +4 -4
- package/lib/components/signature/Signature.js.map +1 -1
- package/lib/components/slider/Slider.js +2 -2
- package/lib/components/slider/Slider.js.map +1 -1
- package/lib/components/text-area/TextArea.js +1 -1
- package/lib/components/text-area/TextArea.js.map +1 -1
- package/lib/components/text-area/TextArea.styles.d.ts +1 -1
- package/lib/components/text-area/TextArea.styles.js.map +1 -1
- package/lib/components/tooltip/Tooltip.d.ts +1 -1
- package/lib/components/tooltip/Tooltip.js +1 -1
- package/lib/components/tooltip/Tooltip.js.map +1 -1
- package/lib/components/tooltip/tooltip-item/TooltipItem.d.ts +1 -1
- package/lib/components/tooltip/tooltip-item/TooltipItem.js +1 -1
- package/lib/components/tooltip/tooltip-item/TooltipItem.js.map +1 -1
- package/lib/components/tooltip/tooltip-item/TooltipItem.styles.d.ts +1 -1
- package/lib/components/tooltip/tooltip-item/TooltipItem.styles.js.map +1 -1
- package/lib/hooks/colorMode.js.map +1 -1
- package/lib/index.d.ts +10 -18
- package/lib/index.js +4 -39
- package/lib/index.js.map +1 -1
- package/package.json +2 -12
- package/lib/components/code-highlighter/CodeHighlighter.d.ts +0 -36
- package/lib/components/code-highlighter/CodeHighlighter.js +0 -91
- package/lib/components/code-highlighter/CodeHighlighter.js.map +0 -1
- package/lib/components/code-highlighter/CodeHighlighter.styles.d.ts +0 -18
- package/lib/components/code-highlighter/CodeHighlighter.styles.js +0 -80
- package/lib/components/code-highlighter/CodeHighlighter.styles.js.map +0 -1
- package/lib/components/code-highlighter/copy-to-clipboard/CopyToClipboard.d.ts +0 -9
- package/lib/components/code-highlighter/copy-to-clipboard/CopyToClipboard.js +0 -41
- package/lib/components/code-highlighter/copy-to-clipboard/CopyToClipboard.js.map +0 -1
- package/lib/components/code-highlighter/copy-to-clipboard/CopyToClipboard.styles.d.ts +0 -9
- package/lib/components/code-highlighter/copy-to-clipboard/CopyToClipboard.styles.js +0 -24
- package/lib/components/code-highlighter/copy-to-clipboard/CopyToClipboard.styles.js.map +0 -1
- package/lib/components/date-info/DateInfo.d.ts +0 -37
- package/lib/components/date-info/DateInfo.js +0 -110
- package/lib/components/date-info/DateInfo.js.map +0 -1
- package/lib/components/opening-times/OpeningTimes.d.ts +0 -27
- package/lib/components/opening-times/OpeningTimes.js +0 -135
- package/lib/components/opening-times/OpeningTimes.js.map +0 -1
- package/lib/components/opening-times/OpeningTimes.styles.d.ts +0 -8
- package/lib/components/opening-times/OpeningTimes.styles.js +0 -19
- package/lib/components/opening-times/OpeningTimes.styles.js.map +0 -1
- package/lib/components/opening-times/opening-inputs/OpeningInputs.d.ts +0 -12
- package/lib/components/opening-times/opening-inputs/OpeningInputs.js +0 -94
- package/lib/components/opening-times/opening-inputs/OpeningInputs.js.map +0 -1
- package/lib/components/opening-times/opening-inputs/OpeningInputs.styles.d.ts +0 -2
- package/lib/components/opening-times/opening-inputs/OpeningInputs.styles.js +0 -13
- package/lib/components/opening-times/opening-inputs/OpeningInputs.styles.js.map +0 -1
- package/lib/components/opening-times/opening-inputs/opening-input/OpeningInput.d.ts +0 -14
- package/lib/components/opening-times/opening-inputs/opening-input/OpeningInput.js +0 -102
- package/lib/components/opening-times/opening-inputs/opening-input/OpeningInput.js.map +0 -1
- package/lib/components/opening-times/opening-inputs/opening-input/OpeningInput.styles.d.ts +0 -274
- package/lib/components/opening-times/opening-inputs/opening-input/OpeningInput.styles.js +0 -46
- package/lib/components/opening-times/opening-inputs/opening-input/OpeningInput.styles.js.map +0 -1
- package/lib/components/position-input/PositionInput.d.ts +0 -42
- package/lib/components/position-input/PositionInput.js +0 -41
- package/lib/components/position-input/PositionInput.js.map +0 -1
- package/lib/components/position-input/PositionInput.styles.d.ts +0 -3
- package/lib/components/position-input/PositionInput.styles.js +0 -19
- package/lib/components/position-input/PositionInput.styles.js.map +0 -1
- package/lib/components/position-input/map-wrapper/MapWrapper.d.ts +0 -14
- package/lib/components/position-input/map-wrapper/MapWrapper.js +0 -179
- package/lib/components/position-input/map-wrapper/MapWrapper.js.map +0 -1
- package/lib/components/position-input/map-wrapper/MapWrapper.styles.d.ts +0 -2
- package/lib/components/position-input/map-wrapper/MapWrapper.styles.js +0 -12
- package/lib/components/position-input/map-wrapper/MapWrapper.styles.js.map +0 -1
- package/lib/components/position-input/map-wrapper/map/Map.d.ts +0 -16
- package/lib/components/position-input/map-wrapper/map/Map.js +0 -97
- package/lib/components/position-input/map-wrapper/map/Map.js.map +0 -1
- package/lib/components/position-input/map-wrapper/map/Map.styles.d.ts +0 -2
- package/lib/components/position-input/map-wrapper/map/Map.styles.js +0 -13
- package/lib/components/position-input/map-wrapper/map/Map.styles.js.map +0 -1
- package/lib/components/position-input/map-wrapper/map/marker/Marker.d.ts +0 -13
- package/lib/components/position-input/map-wrapper/map/marker/Marker.js +0 -66
- package/lib/components/position-input/map-wrapper/map/marker/Marker.js.map +0 -1
- package/lib/constants/codeHighlighter.d.ts +0 -7
- package/lib/constants/codeHighlighter.js +0 -13
- package/lib/constants/codeHighlighter.js.map +0 -1
- package/lib/constants/dateInfo.d.ts +0 -22
- package/lib/constants/dateInfo.js +0 -629
- package/lib/constants/dateInfo.js.map +0 -1
- package/lib/constants/positionInput.d.ts +0 -3
- package/lib/constants/positionInput.js +0 -24
- package/lib/constants/positionInput.js.map +0 -1
- package/lib/hooks/positionInput.d.ts +0 -2
- package/lib/hooks/positionInput.js +0 -37
- package/lib/hooks/positionInput.js.map +0 -1
- package/lib/types/codeHighlighter.d.ts +0 -10
- package/lib/types/codeHighlighter.js +0 -12
- package/lib/types/codeHighlighter.js.map +0 -1
- package/lib/types/openingTimes.d.ts +0 -28
- package/lib/types/openingTimes.js +0 -13
- package/lib/types/openingTimes.js.map +0 -1
- package/lib/types/parser/prettier-parser-babel.d.js +0 -2
- package/lib/types/parser/prettier-parser-babel.d.js.map +0 -1
- package/lib/types/parser/prettier-parser-graphql.d.js +0 -2
- package/lib/types/parser/prettier-parser-graphql.d.js.map +0 -1
- package/lib/types/parser/prettier-parser-html.d.js +0 -2
- package/lib/types/parser/prettier-parser-html.d.js.map +0 -1
- package/lib/types/parser/prettier-parser-markdown.d.js +0 -2
- package/lib/types/parser/prettier-parser-markdown.d.js.map +0 -1
- package/lib/types/parser/prettier-parser-postcss.d.js +0 -2
- package/lib/types/parser/prettier-parser-postcss.d.js.map +0 -1
- package/lib/types/parser/prettier-parser-yaml.d.js +0 -2
- package/lib/types/parser/prettier-parser-yaml.d.js.map +0 -1
- package/lib/types/positionInput.d.ts +0 -21
- package/lib/types/positionInput.js +0 -2
- package/lib/types/positionInput.js.map +0 -1
- package/lib/utils/codeHighlighter.d.ts +0 -4
- package/lib/utils/codeHighlighter.js +0 -361
- package/lib/utils/codeHighlighter.js.map +0 -1
- package/lib/utils/dateInfo.d.ts +0 -55
- package/lib/utils/dateInfo.js +0 -364
- package/lib/utils/dateInfo.js.map +0 -1
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
|
-
import type { WithTheme } from '../../../color-scheme-provider/ColorSchemeProvider';
|
|
4
|
-
export declare const StyledOpeningInput: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<{
|
|
5
|
-
slot?: string | undefined;
|
|
6
|
-
title?: string | undefined;
|
|
7
|
-
onScroll?: import("react").UIEventHandler<HTMLDivElement> | undefined;
|
|
8
|
-
defaultChecked?: boolean | undefined;
|
|
9
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
10
|
-
suppressContentEditableWarning?: boolean | undefined;
|
|
11
|
-
suppressHydrationWarning?: boolean | undefined;
|
|
12
|
-
accessKey?: string | undefined;
|
|
13
|
-
autoFocus?: boolean | undefined;
|
|
14
|
-
className?: string | undefined;
|
|
15
|
-
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
16
|
-
contextMenu?: string | undefined;
|
|
17
|
-
dir?: string | undefined;
|
|
18
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
19
|
-
hidden?: boolean | undefined;
|
|
20
|
-
id?: string | undefined;
|
|
21
|
-
lang?: string | undefined;
|
|
22
|
-
nonce?: string | undefined;
|
|
23
|
-
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
24
|
-
tabIndex?: number | undefined;
|
|
25
|
-
translate?: "yes" | "no" | undefined;
|
|
26
|
-
radioGroup?: string | undefined;
|
|
27
|
-
role?: import("react").AriaRole | undefined;
|
|
28
|
-
about?: string | undefined;
|
|
29
|
-
content?: string | undefined;
|
|
30
|
-
datatype?: string | undefined;
|
|
31
|
-
inlist?: any;
|
|
32
|
-
prefix?: string | undefined;
|
|
33
|
-
property?: string | undefined;
|
|
34
|
-
rel?: string | undefined;
|
|
35
|
-
resource?: string | undefined;
|
|
36
|
-
rev?: string | undefined;
|
|
37
|
-
typeof?: string | undefined;
|
|
38
|
-
vocab?: string | undefined;
|
|
39
|
-
autoCapitalize?: string | undefined;
|
|
40
|
-
autoCorrect?: string | undefined;
|
|
41
|
-
autoSave?: string | undefined;
|
|
42
|
-
color?: string | undefined;
|
|
43
|
-
itemProp?: string | undefined;
|
|
44
|
-
itemScope?: boolean | undefined;
|
|
45
|
-
itemType?: string | undefined;
|
|
46
|
-
itemID?: string | undefined;
|
|
47
|
-
itemRef?: string | undefined;
|
|
48
|
-
results?: number | undefined;
|
|
49
|
-
security?: string | undefined;
|
|
50
|
-
unselectable?: "on" | "off" | undefined;
|
|
51
|
-
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
52
|
-
is?: string | undefined;
|
|
53
|
-
"aria-activedescendant"?: string | undefined;
|
|
54
|
-
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
55
|
-
"aria-autocomplete"?: "list" | "none" | "both" | "inline" | undefined;
|
|
56
|
-
"aria-braillelabel"?: string | undefined;
|
|
57
|
-
"aria-brailleroledescription"?: string | undefined;
|
|
58
|
-
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
59
|
-
"aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
60
|
-
"aria-colcount"?: number | undefined;
|
|
61
|
-
"aria-colindex"?: number | undefined;
|
|
62
|
-
"aria-colindextext"?: string | undefined;
|
|
63
|
-
"aria-colspan"?: number | undefined;
|
|
64
|
-
"aria-controls"?: string | undefined;
|
|
65
|
-
"aria-current"?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
66
|
-
"aria-describedby"?: string | undefined;
|
|
67
|
-
"aria-description"?: string | undefined;
|
|
68
|
-
"aria-details"?: string | undefined;
|
|
69
|
-
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
70
|
-
"aria-dropeffect"?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
|
71
|
-
"aria-errormessage"?: string | undefined;
|
|
72
|
-
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
73
|
-
"aria-flowto"?: string | undefined;
|
|
74
|
-
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
75
|
-
"aria-haspopup"?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
76
|
-
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
77
|
-
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
78
|
-
"aria-keyshortcuts"?: string | undefined;
|
|
79
|
-
"aria-label"?: string | undefined;
|
|
80
|
-
"aria-labelledby"?: string | undefined;
|
|
81
|
-
"aria-level"?: number | undefined;
|
|
82
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
83
|
-
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
84
|
-
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
85
|
-
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
86
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
87
|
-
"aria-owns"?: string | undefined;
|
|
88
|
-
"aria-placeholder"?: string | undefined;
|
|
89
|
-
"aria-posinset"?: number | undefined;
|
|
90
|
-
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
91
|
-
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
92
|
-
"aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
93
|
-
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
94
|
-
"aria-roledescription"?: string | undefined;
|
|
95
|
-
"aria-rowcount"?: number | undefined;
|
|
96
|
-
"aria-rowindex"?: number | undefined;
|
|
97
|
-
"aria-rowindextext"?: string | undefined;
|
|
98
|
-
"aria-rowspan"?: number | undefined;
|
|
99
|
-
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
100
|
-
"aria-setsize"?: number | undefined;
|
|
101
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
102
|
-
"aria-valuemax"?: number | undefined;
|
|
103
|
-
"aria-valuemin"?: number | undefined;
|
|
104
|
-
"aria-valuenow"?: number | undefined;
|
|
105
|
-
"aria-valuetext"?: string | undefined;
|
|
106
|
-
dangerouslySetInnerHTML?: {
|
|
107
|
-
__html: string | TrustedHTML;
|
|
108
|
-
} | undefined;
|
|
109
|
-
onCopy?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
110
|
-
onCopyCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
111
|
-
onCut?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
112
|
-
onCutCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
113
|
-
onPaste?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
114
|
-
onPasteCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
115
|
-
onCompositionEnd?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
116
|
-
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
117
|
-
onCompositionStart?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
118
|
-
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
119
|
-
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
120
|
-
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
121
|
-
onFocus?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
122
|
-
onFocusCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
123
|
-
onBlur?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
124
|
-
onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
125
|
-
onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
126
|
-
onChangeCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
127
|
-
onBeforeInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
128
|
-
onBeforeInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
129
|
-
onInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
130
|
-
onInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
131
|
-
onReset?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
132
|
-
onResetCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
133
|
-
onSubmit?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
134
|
-
onSubmitCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
135
|
-
onInvalid?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
136
|
-
onInvalidCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
137
|
-
onLoad?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
138
|
-
onLoadCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
139
|
-
onError?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
140
|
-
onErrorCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
141
|
-
onKeyDown?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
142
|
-
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
143
|
-
onKeyPress?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
144
|
-
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
145
|
-
onKeyUp?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
146
|
-
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
147
|
-
onAbort?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
148
|
-
onAbortCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
149
|
-
onCanPlay?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
150
|
-
onCanPlayCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
151
|
-
onCanPlayThrough?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
152
|
-
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
153
|
-
onDurationChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
154
|
-
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
155
|
-
onEmptied?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
156
|
-
onEmptiedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
157
|
-
onEncrypted?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
158
|
-
onEncryptedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
159
|
-
onEnded?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
160
|
-
onEndedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
161
|
-
onLoadedData?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
162
|
-
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
163
|
-
onLoadedMetadata?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
164
|
-
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
165
|
-
onLoadStart?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
166
|
-
onLoadStartCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
167
|
-
onPause?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
168
|
-
onPauseCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
169
|
-
onPlay?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
170
|
-
onPlayCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
171
|
-
onPlaying?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
172
|
-
onPlayingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
173
|
-
onProgress?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
174
|
-
onProgressCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
175
|
-
onRateChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
176
|
-
onRateChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
177
|
-
onResize?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
178
|
-
onResizeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
179
|
-
onSeeked?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
180
|
-
onSeekedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
181
|
-
onSeeking?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
182
|
-
onSeekingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
183
|
-
onStalled?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
184
|
-
onStalledCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
185
|
-
onSuspend?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
186
|
-
onSuspendCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
187
|
-
onTimeUpdate?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
188
|
-
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
189
|
-
onVolumeChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
190
|
-
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
191
|
-
onWaiting?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
192
|
-
onWaitingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
193
|
-
onAuxClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
194
|
-
onAuxClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
195
|
-
onClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
196
|
-
onClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
197
|
-
onContextMenu?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
198
|
-
onContextMenuCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
199
|
-
onDoubleClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
200
|
-
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
201
|
-
onDragCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
202
|
-
onDragEndCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
203
|
-
onDragEnter?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
204
|
-
onDragEnterCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
205
|
-
onDragExit?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
206
|
-
onDragExitCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
207
|
-
onDragLeave?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
208
|
-
onDragLeaveCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
209
|
-
onDragOver?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
210
|
-
onDragOverCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
211
|
-
onDragStartCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
212
|
-
onDrop?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
213
|
-
onDropCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
214
|
-
onMouseDown?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
215
|
-
onMouseDownCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
216
|
-
onMouseEnter?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
217
|
-
onMouseLeave?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
218
|
-
onMouseMove?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
219
|
-
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
220
|
-
onMouseOut?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
221
|
-
onMouseOutCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
222
|
-
onMouseOver?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
223
|
-
onMouseOverCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
224
|
-
onMouseUp?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
225
|
-
onMouseUpCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
226
|
-
onSelect?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
227
|
-
onSelectCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
228
|
-
onTouchCancel?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
229
|
-
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
230
|
-
onTouchEnd?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
231
|
-
onTouchEndCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
232
|
-
onTouchMove?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
233
|
-
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
234
|
-
onTouchStart?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
235
|
-
onTouchStartCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
236
|
-
onPointerDown?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
237
|
-
onPointerDownCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
238
|
-
onPointerMove?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
239
|
-
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
240
|
-
onPointerUp?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
241
|
-
onPointerUpCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
242
|
-
onPointerCancel?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
243
|
-
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
244
|
-
onPointerEnter?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
245
|
-
onPointerEnterCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
246
|
-
onPointerLeave?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
247
|
-
onPointerLeaveCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
248
|
-
onPointerOver?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
249
|
-
onPointerOverCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
250
|
-
onPointerOut?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
251
|
-
onPointerOutCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
252
|
-
onGotPointerCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
253
|
-
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
254
|
-
onLostPointerCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
255
|
-
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
256
|
-
onScrollCapture?: import("react").UIEventHandler<HTMLDivElement> | undefined;
|
|
257
|
-
onWheel?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
|
|
258
|
-
onWheelCapture?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
|
|
259
|
-
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
260
|
-
onAnimationEnd?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
261
|
-
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
262
|
-
onAnimationIteration?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
263
|
-
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
264
|
-
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
265
|
-
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
266
|
-
} & import("framer-motion").MotionProps & import("react").RefAttributes<HTMLDivElement>, never>> & Omit<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, keyof import("react").Component<any, {}, any>>;
|
|
267
|
-
export declare const StyledOpeningInputWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
268
|
-
type StyledOpeningInputTextProps = WithTheme<{
|
|
269
|
-
isDisabled?: boolean;
|
|
270
|
-
}>;
|
|
271
|
-
export declare const StyledOpeningInputText: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledOpeningInputTextProps>>;
|
|
272
|
-
export declare const StyledOpeningInputButtonWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
273
|
-
export declare const StyledOpeningInputPseudoButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
274
|
-
export {};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.StyledOpeningInputWrapper = exports.StyledOpeningInputText = exports.StyledOpeningInputPseudoButton = exports.StyledOpeningInputButtonWrapper = exports.StyledOpeningInput = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
var _framerMotion = require("framer-motion");
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
const StyledOpeningInput = exports.StyledOpeningInput = (0, _styledComponents.default)(_framerMotion.motion.div)`
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
gap: 6px;
|
|
14
|
-
`;
|
|
15
|
-
const StyledOpeningInputWrapper = exports.StyledOpeningInputWrapper = _styledComponents.default.div`
|
|
16
|
-
width: 60px;
|
|
17
|
-
`;
|
|
18
|
-
const StyledOpeningInputText = exports.StyledOpeningInputText = _styledComponents.default.div`
|
|
19
|
-
opacity: ${_ref => {
|
|
20
|
-
let {
|
|
21
|
-
isDisabled
|
|
22
|
-
} = _ref;
|
|
23
|
-
return isDisabled ? 0.5 : 1;
|
|
24
|
-
}};
|
|
25
|
-
`;
|
|
26
|
-
const StyledOpeningInputButtonWrapper = exports.StyledOpeningInputButtonWrapper = _styledComponents.default.div`
|
|
27
|
-
width: 20px;
|
|
28
|
-
height: 20px;
|
|
29
|
-
background-color: ${_ref2 => {
|
|
30
|
-
let {
|
|
31
|
-
theme
|
|
32
|
-
} = _ref2;
|
|
33
|
-
return theme['202'];
|
|
34
|
-
}};
|
|
35
|
-
border-radius: 3px;
|
|
36
|
-
box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.2);
|
|
37
|
-
border: none;
|
|
38
|
-
cursor: pointer;
|
|
39
|
-
display: flex;
|
|
40
|
-
align-items: center;
|
|
41
|
-
justify-content: center;
|
|
42
|
-
`;
|
|
43
|
-
const StyledOpeningInputPseudoButton = exports.StyledOpeningInputPseudoButton = _styledComponents.default.div`
|
|
44
|
-
width: 20px;
|
|
45
|
-
`;
|
|
46
|
-
//# sourceMappingURL=OpeningInput.styles.js.map
|
package/lib/components/opening-times/opening-inputs/opening-input/OpeningInput.styles.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OpeningInput.styles.js","names":["_styledComponents","_interopRequireDefault","require","_framerMotion","obj","__esModule","default","StyledOpeningInput","exports","styled","motion","div","StyledOpeningInputWrapper","StyledOpeningInputText","_ref","isDisabled","StyledOpeningInputButtonWrapper","_ref2","theme","StyledOpeningInputPseudoButton"],"sources":["../../../../../src/components/opening-times/opening-inputs/opening-input/OpeningInput.styles.ts"],"sourcesContent":["import styled from 'styled-components';\nimport type { WithTheme } from '../../../color-scheme-provider/ColorSchemeProvider';\nimport { motion } from 'framer-motion';\n\nexport const StyledOpeningInput = styled(motion.div)`\n display: flex;\n align-items: center;\n gap: 6px;\n`;\n\nexport const StyledOpeningInputWrapper = styled.div`\n width: 60px;\n`;\n\ntype StyledOpeningInputTextProps = WithTheme<{ isDisabled?: boolean }>;\n\nexport const StyledOpeningInputText = styled.div<StyledOpeningInputTextProps>`\n opacity: ${({ isDisabled }) => (isDisabled ? 0.5 : 1)};\n`;\n\ntype StyledOpeningInputButtonWrapperProps = WithTheme<unknown>;\n\nexport const StyledOpeningInputButtonWrapper = styled.div`\n width: 20px;\n height: 20px;\n background-color: ${({ theme }: StyledOpeningInputButtonWrapperProps) => theme['202']};\n border-radius: 3px;\n box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.2);\n border: none;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n`;\n\nexport const StyledOpeningInputPseudoButton = styled.div`\n width: 20px;\n`;\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,aAAA,GAAAD,OAAA;AAAuC,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEhC,MAAMG,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,IAAAE,yBAAM,EAACC,oBAAM,CAACC,GAAG,CAAE;AACrD;AACA;AACA;AACA,CAAC;AAEM,MAAMC,yBAAyB,GAAAJ,OAAA,CAAAI,yBAAA,GAAGH,yBAAM,CAACE,GAAI;AACpD;AACA,CAAC;AAIM,MAAME,sBAAsB,GAAAL,OAAA,CAAAK,sBAAA,GAAGJ,yBAAM,CAACE,GAAiC;AAC9E,eAAeG,IAAA;EAAA,IAAC;IAAEC;EAAW,CAAC,GAAAD,IAAA;EAAA,OAAMC,UAAU,GAAG,GAAG,GAAG,CAAC;AAAA,CAAE;AAC1D,CAAC;AAIM,MAAMC,+BAA+B,GAAAR,OAAA,CAAAQ,+BAAA,GAAGP,yBAAM,CAACE,GAAI;AAC1D;AACA;AACA,wBAAwBM,KAAA;EAAA,IAAC;IAAEC;EAA4C,CAAC,GAAAD,KAAA;EAAA,OAAKC,KAAK,CAAC,KAAK,CAAC;AAAA,CAAC;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAEM,MAAMC,8BAA8B,GAAAX,OAAA,CAAAW,8BAAA,GAAGV,yBAAM,CAACE,GAAI;AACzD;AACA,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import type { IMarker, PolygonOptions, Position } from '../../types/positionInput';
|
|
3
|
-
export type PositionInputProps = {
|
|
4
|
-
/**
|
|
5
|
-
* The api token for google maps.
|
|
6
|
-
*/
|
|
7
|
-
apiToken: string;
|
|
8
|
-
/**
|
|
9
|
-
* The position of the center of the map on the initial render.
|
|
10
|
-
*/
|
|
11
|
-
initialPosition?: Position;
|
|
12
|
-
/**
|
|
13
|
-
* Markers that should be displayed.
|
|
14
|
-
*/
|
|
15
|
-
markers?: IMarker[];
|
|
16
|
-
/**
|
|
17
|
-
* Function to be executed when a marker is added.
|
|
18
|
-
*/
|
|
19
|
-
onMarkerAdd: (marker: IMarker) => void;
|
|
20
|
-
/**
|
|
21
|
-
* Function to be executed when a marker position is changed.
|
|
22
|
-
*/
|
|
23
|
-
onMarkerChange: (markers: IMarker[]) => void;
|
|
24
|
-
/**
|
|
25
|
-
* Function to be executed when a marker is removed.
|
|
26
|
-
*/
|
|
27
|
-
onMarkerRemove: (id: number) => void;
|
|
28
|
-
/**
|
|
29
|
-
* Options to style the polygon.
|
|
30
|
-
*/
|
|
31
|
-
polygonOptions?: PolygonOptions;
|
|
32
|
-
/**
|
|
33
|
-
* The placeholder of the search input.
|
|
34
|
-
*/
|
|
35
|
-
searchPlaceholder?: string;
|
|
36
|
-
/**
|
|
37
|
-
* The zoom of the map.
|
|
38
|
-
*/
|
|
39
|
-
zoom?: number;
|
|
40
|
-
};
|
|
41
|
-
declare const PositionInput: FC<PositionInputProps>;
|
|
42
|
-
export default PositionInput;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _PositionInput = require("./PositionInput.styles");
|
|
9
|
-
var _Input = _interopRequireDefault(require("../input/Input"));
|
|
10
|
-
var _MapWrapper = _interopRequireDefault(require("./map-wrapper/MapWrapper"));
|
|
11
|
-
var _positionInput = require("../../constants/positionInput");
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
const PositionInput = _ref => {
|
|
14
|
-
let {
|
|
15
|
-
searchPlaceholder,
|
|
16
|
-
apiToken,
|
|
17
|
-
polygonOptions = _positionInput.DEFAULT_POLYGON_OPTIONS,
|
|
18
|
-
initialPosition = _positionInput.DEFAULT_POSITION,
|
|
19
|
-
zoom = 13,
|
|
20
|
-
markers,
|
|
21
|
-
onMarkerRemove,
|
|
22
|
-
onMarkerChange,
|
|
23
|
-
onMarkerAdd
|
|
24
|
-
} = _ref;
|
|
25
|
-
return /*#__PURE__*/_react.default.createElement(_PositionInput.StyledPositionInput, null, /*#__PURE__*/_react.default.createElement(_PositionInput.StyledPositionInputSearch, null, /*#__PURE__*/_react.default.createElement(_Input.default, {
|
|
26
|
-
id: "auto-complete-input",
|
|
27
|
-
placeholder: searchPlaceholder
|
|
28
|
-
})), /*#__PURE__*/_react.default.createElement(_MapWrapper.default, {
|
|
29
|
-
apiToken: apiToken,
|
|
30
|
-
polygonOptions: polygonOptions,
|
|
31
|
-
initialPosition: initialPosition,
|
|
32
|
-
initialZoom: zoom,
|
|
33
|
-
markers: markers,
|
|
34
|
-
onMarkerAdd: onMarkerAdd,
|
|
35
|
-
onMarkerChange: onMarkerChange,
|
|
36
|
-
onMarkerRemove: onMarkerRemove
|
|
37
|
-
}));
|
|
38
|
-
};
|
|
39
|
-
PositionInput.displayName = 'PositionInput';
|
|
40
|
-
var _default = exports.default = PositionInput;
|
|
41
|
-
//# sourceMappingURL=PositionInput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PositionInput.js","names":["_react","_interopRequireDefault","require","_PositionInput","_Input","_MapWrapper","_positionInput","obj","__esModule","default","PositionInput","_ref","searchPlaceholder","apiToken","polygonOptions","DEFAULT_POLYGON_OPTIONS","initialPosition","DEFAULT_POSITION","zoom","markers","onMarkerRemove","onMarkerChange","onMarkerAdd","createElement","StyledPositionInput","StyledPositionInputSearch","id","placeholder","initialZoom","displayName","_default","exports"],"sources":["../../../src/components/position-input/PositionInput.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { StyledPositionInput, StyledPositionInputSearch } from './PositionInput.styles';\nimport Input from '../input/Input';\nimport MapWrapper from './map-wrapper/MapWrapper';\nimport type { IMarker, PolygonOptions, Position } from '../../types/positionInput';\nimport { DEFAULT_POLYGON_OPTIONS, DEFAULT_POSITION } from '../../constants/positionInput';\n\nexport type PositionInputProps = {\n /**\n * The api token for google maps.\n */\n apiToken: string;\n /**\n * The position of the center of the map on the initial render.\n */\n initialPosition?: Position;\n /**\n * Markers that should be displayed.\n */\n markers?: IMarker[];\n /**\n * Function to be executed when a marker is added.\n */\n onMarkerAdd: (marker: IMarker) => void;\n /**\n * Function to be executed when a marker position is changed.\n */\n onMarkerChange: (markers: IMarker[]) => void;\n /**\n * Function to be executed when a marker is removed.\n */\n onMarkerRemove: (id: number) => void;\n /**\n * Options to style the polygon.\n */\n polygonOptions?: PolygonOptions;\n /**\n * The placeholder of the search input.\n */\n searchPlaceholder?: string;\n /**\n * The zoom of the map.\n */\n zoom?: number;\n};\n\nconst PositionInput: FC<PositionInputProps> = ({\n searchPlaceholder,\n apiToken,\n polygonOptions = DEFAULT_POLYGON_OPTIONS,\n initialPosition = DEFAULT_POSITION,\n zoom = 13,\n markers,\n onMarkerRemove,\n onMarkerChange,\n onMarkerAdd,\n}) => (\n <StyledPositionInput>\n <StyledPositionInputSearch>\n <Input id=\"auto-complete-input\" placeholder={searchPlaceholder} />\n </StyledPositionInputSearch>\n <MapWrapper\n apiToken={apiToken}\n polygonOptions={polygonOptions}\n initialPosition={initialPosition}\n initialZoom={zoom}\n markers={markers}\n onMarkerAdd={onMarkerAdd}\n onMarkerChange={onMarkerChange}\n onMarkerRemove={onMarkerRemove}\n />\n </StyledPositionInput>\n);\n\nPositionInput.displayName = 'PositionInput';\n\nexport default PositionInput;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAEA,IAAAI,cAAA,GAAAJ,OAAA;AAA0F,SAAAD,uBAAAM,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAyC1F,MAAMG,aAAqC,GAAGC,IAAA;EAAA,IAAC;IAC3CC,iBAAiB;IACjBC,QAAQ;IACRC,cAAc,GAAGC,sCAAuB;IACxCC,eAAe,GAAGC,+BAAgB;IAClCC,IAAI,GAAG,EAAE;IACTC,OAAO;IACPC,cAAc;IACdC,cAAc;IACdC;EACJ,CAAC,GAAAX,IAAA;EAAA,oBACGX,MAAA,CAAAS,OAAA,CAAAc,aAAA,CAACpB,cAAA,CAAAqB,mBAAmB,qBAChBxB,MAAA,CAAAS,OAAA,CAAAc,aAAA,CAACpB,cAAA,CAAAsB,yBAAyB,qBACtBzB,MAAA,CAAAS,OAAA,CAAAc,aAAA,CAACnB,MAAA,CAAAK,OAAK;IAACiB,EAAE,EAAC,qBAAqB;IAACC,WAAW,EAAEf;EAAkB,CAAE,CAC1C,CAAC,eAC5BZ,MAAA,CAAAS,OAAA,CAAAc,aAAA,CAAClB,WAAA,CAAAI,OAAU;IACPI,QAAQ,EAAEA,QAAS;IACnBC,cAAc,EAAEA,cAAe;IAC/BE,eAAe,EAAEA,eAAgB;IACjCY,WAAW,EAAEV,IAAK;IAClBC,OAAO,EAAEA,OAAQ;IACjBG,WAAW,EAAEA,WAAY;IACzBD,cAAc,EAAEA,cAAe;IAC/BD,cAAc,EAAEA;EAAe,CAClC,CACgB,CAAC;AAAA,CACzB;AAEDV,aAAa,CAACmB,WAAW,GAAG,eAAe;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAtB,OAAA,GAE7BC,aAAa"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const StyledPositionInput: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
3
|
-
export declare const StyledPositionInputSearch: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.StyledPositionInputSearch = exports.StyledPositionInput = void 0;
|
|
7
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
const StyledPositionInput = exports.StyledPositionInput = _styledComponents.default.div`
|
|
10
|
-
position: relative;
|
|
11
|
-
`;
|
|
12
|
-
const StyledPositionInputSearch = exports.StyledPositionInputSearch = _styledComponents.default.div`
|
|
13
|
-
position: absolute;
|
|
14
|
-
width: 300px;
|
|
15
|
-
left: 8px;
|
|
16
|
-
top: 8px;
|
|
17
|
-
z-index: 3;
|
|
18
|
-
`;
|
|
19
|
-
//# sourceMappingURL=PositionInput.styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PositionInput.styles.js","names":["_styledComponents","_interopRequireDefault","require","obj","__esModule","default","StyledPositionInput","exports","styled","div","StyledPositionInputSearch"],"sources":["../../../src/components/position-input/PositionInput.styles.ts"],"sourcesContent":["import styled from 'styled-components';\n\nexport const StyledPositionInput = styled.div`\n position: relative;\n`;\n\nexport const StyledPositionInputSearch = styled.div`\n position: absolute;\n width: 300px;\n left: 8px;\n top: 8px;\n z-index: 3;\n`;\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAuC,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEhC,MAAMG,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,GAAGE,yBAAM,CAACC,GAAI;AAC9C;AACA,CAAC;AAEM,MAAMC,yBAAyB,GAAAH,OAAA,CAAAG,yBAAA,GAAGF,yBAAM,CAACC,GAAI;AACpD;AACA;AACA;AACA;AACA;AACA,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import type { IMarker, PolygonOptions, Position } from '../../../types/positionInput';
|
|
3
|
-
export type MapWrapperProps = {
|
|
4
|
-
apiToken: string;
|
|
5
|
-
polygonOptions: PolygonOptions;
|
|
6
|
-
initialZoom: number;
|
|
7
|
-
initialPosition: Position;
|
|
8
|
-
markers?: IMarker[];
|
|
9
|
-
onMarkerAdd?: (marker: IMarker) => void;
|
|
10
|
-
onMarkerRemove?: (id: number) => void;
|
|
11
|
-
onMarkerChange?: (markers: IMarker[]) => void;
|
|
12
|
-
};
|
|
13
|
-
declare const MapWrapper: FC<MapWrapperProps>;
|
|
14
|
-
export default MapWrapper;
|