@ta-interaktiv/react-municipality-search 1.4.0 → 1.4.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/CHANGELOG.md +6 -0
- package/dist/index.js +2 -2
- package/es/index.js +2 -2
- package/package.json +2 -2
- package/src/municipalitySearch.tsx +1 -1
- package/src/{styles.module.scss → styles.module.css} +19 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [1.4.1](https://gitlab.com/ta-interaktiv/packages/compare/@ta-interaktiv/react-municipality-search@1.4.0...@ta-interaktiv/react-municipality-search@1.4.1) (2022-06-01)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- muniSearch switched to css module ([10dbc07](https://gitlab.com/ta-interaktiv/packages/commit/10dbc074f415bdd3fb1d1ab85d47d62eb57b93d5))
|
|
10
|
+
|
|
5
11
|
# [1.4.0](https://gitlab.com/ta-interaktiv/packages/compare/@ta-interaktiv/react-municipality-search@1.3.0...@ta-interaktiv/react-municipality-search@1.4.0) (2022-05-18)
|
|
6
12
|
|
|
7
13
|
### Features
|
package/dist/index.js
CHANGED
|
@@ -80,8 +80,8 @@ function styleInject(css, ref) {
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
var css_248z = "/* IDENTIFICATOR STYLES */\n.styles-
|
|
84
|
-
var styles = {"flexInput":"styles-
|
|
83
|
+
var css_248z = "/* IDENTIFICATOR STYLES */\n\n\n.styles-module_flexInput__34qh- {\n display: flex;\n}\n\n\n.styles-module_municipalitySearch__3zjoT {\n --backgroundColor: rgba(255, 255, 255, 0.95);\n}\n\n\n.styles-module_inputRow__2dQ0F {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n\n @media screen and (max-width: 599px) {\n flex-direction: column;\n\n\n .ui.input {\n width: 100%;\n max-width: 100%;\n }\n }\n}\n\n\n.styles-module_results__3lFwG {\n margin-top: 1ex;\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));\n grid-gap: 0;\n font-family: var(--ui-font-stack);\n}\n\n\n.styles-module_result__36cXF {\n padding: calc(11 / 16 * 1em) calc(14 / 16 * 1em);\n border-radius: 0.2ex;\n box-shadow: 0 0 0 rgba(0, 0, 0, 0.3);\n /* //border: 1px solid #007abf; */\n color: rgba(0, 0, 0, 0.9);\n line-height: 1.1em;\n cursor: pointer;\n transition: box-shadow 200ms ease-in-out;\n background-color: transparent;\n\n\n \n}\n.styles-module_result__36cXF:hover,\n.styles-module_result__36cXF:focus {\n box-shadow: 0 0 0.5ex rgba(0, 0, 0, 0.2), 0 0 0 1px #007abf inset;\n background-color: var(--backgroundColor);\n }\n\n\n.styles-module_resultHeader__2rcnv {\n font-weight: 700;\n}\n\n\n.styles-module_resultPlz__16QJg {\n opacity: 0.5;\n font-weight: 400;\n}\n\n\n.styles-module_resultMeta__1r1ir {\n opacity: 0.66;\n font-size: 0.9em;\n}\n\n";
|
|
84
|
+
var styles = {"flexInput":"styles-module_flexInput__34qh-","municipalitySearch":"styles-module_municipalitySearch__3zjoT","inputRow":"styles-module_inputRow__2dQ0F","results":"styles-module_results__3lFwG","result":"styles-module_result__36cXF","resultHeader":"styles-module_resultHeader__2rcnv","resultPlz":"styles-module_resultPlz__16QJg","resultMeta":"styles-module_resultMeta__1r1ir"};
|
|
85
85
|
styleInject(css_248z);
|
|
86
86
|
|
|
87
87
|
var data = { meta:{ forComponent:"MunicipalitySearch",
|
package/es/index.js
CHANGED
|
@@ -73,8 +73,8 @@ function styleInject(css, ref) {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
var css_248z = "/* IDENTIFICATOR STYLES */\n.styles-
|
|
77
|
-
var styles = {"flexInput":"styles-
|
|
76
|
+
var css_248z = "/* IDENTIFICATOR STYLES */\n\n\n.styles-module_flexInput__34qh- {\n display: flex;\n}\n\n\n.styles-module_municipalitySearch__3zjoT {\n --backgroundColor: rgba(255, 255, 255, 0.95);\n}\n\n\n.styles-module_inputRow__2dQ0F {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n\n @media screen and (max-width: 599px) {\n flex-direction: column;\n\n\n .ui.input {\n width: 100%;\n max-width: 100%;\n }\n }\n}\n\n\n.styles-module_results__3lFwG {\n margin-top: 1ex;\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));\n grid-gap: 0;\n font-family: var(--ui-font-stack);\n}\n\n\n.styles-module_result__36cXF {\n padding: calc(11 / 16 * 1em) calc(14 / 16 * 1em);\n border-radius: 0.2ex;\n box-shadow: 0 0 0 rgba(0, 0, 0, 0.3);\n /* //border: 1px solid #007abf; */\n color: rgba(0, 0, 0, 0.9);\n line-height: 1.1em;\n cursor: pointer;\n transition: box-shadow 200ms ease-in-out;\n background-color: transparent;\n\n\n \n}\n.styles-module_result__36cXF:hover,\n.styles-module_result__36cXF:focus {\n box-shadow: 0 0 0.5ex rgba(0, 0, 0, 0.2), 0 0 0 1px #007abf inset;\n background-color: var(--backgroundColor);\n }\n\n\n.styles-module_resultHeader__2rcnv {\n font-weight: 700;\n}\n\n\n.styles-module_resultPlz__16QJg {\n opacity: 0.5;\n font-weight: 400;\n}\n\n\n.styles-module_resultMeta__1r1ir {\n opacity: 0.66;\n font-size: 0.9em;\n}\n\n";
|
|
77
|
+
var styles = {"flexInput":"styles-module_flexInput__34qh-","municipalitySearch":"styles-module_municipalitySearch__3zjoT","inputRow":"styles-module_inputRow__2dQ0F","results":"styles-module_results__3lFwG","result":"styles-module_result__36cXF","resultHeader":"styles-module_resultHeader__2rcnv","resultPlz":"styles-module_resultPlz__16QJg","resultMeta":"styles-module_resultMeta__1r1ir"};
|
|
78
78
|
styleInject(css_248z);
|
|
79
79
|
|
|
80
80
|
var data = { meta:{ forComponent:"MunicipalitySearch",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ta-interaktiv/react-municipality-search",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "React component that allows searching for Swiss municipalities with either ZIP code or place names.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@react-spring/types": "^9.4.5"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "6c62807b42684b207be509b6c8f9ef9833f892ab"
|
|
60
60
|
}
|
|
@@ -3,7 +3,7 @@ import React, { ChangeEvent, Component } from 'react'
|
|
|
3
3
|
import '@ta-interaktiv/semantic-ui/semantic/dist/components/icon.css'
|
|
4
4
|
import '@ta-interaktiv/semantic-ui/semantic/dist/components/input.css'
|
|
5
5
|
import '@ta-interaktiv/semantic-ui/semantic/dist/components/label.css'
|
|
6
|
-
import styles from './styles.module.
|
|
6
|
+
import styles from './styles.module.css'
|
|
7
7
|
import {
|
|
8
8
|
animated,
|
|
9
9
|
config as springConfig,
|
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
/* IDENTIFICATOR STYLES */
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
|
|
4
4
|
.flexInput {
|
|
5
5
|
display: flex;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
+
|
|
8
9
|
.municipalitySearch {
|
|
10
|
+
--backgroundColor: rgba(255, 255, 255, 0.95);
|
|
9
11
|
}
|
|
10
12
|
|
|
13
|
+
|
|
11
14
|
.inputRow {
|
|
12
15
|
display: flex;
|
|
13
16
|
flex-direction: row;
|
|
14
17
|
align-items: center;
|
|
15
18
|
|
|
19
|
+
|
|
16
20
|
@media screen and (max-width: 599px) {
|
|
17
21
|
flex-direction: column;
|
|
18
22
|
|
|
23
|
+
|
|
19
24
|
:global .ui.input {
|
|
20
25
|
width: 100%;
|
|
21
26
|
max-width: 100%;
|
|
@@ -23,6 +28,7 @@ $backgroundColor: rgba(255, 255, 255, 0.95);
|
|
|
23
28
|
}
|
|
24
29
|
}
|
|
25
30
|
|
|
31
|
+
|
|
26
32
|
.results {
|
|
27
33
|
margin-top: 1ex;
|
|
28
34
|
display: grid;
|
|
@@ -31,34 +37,41 @@ $backgroundColor: rgba(255, 255, 255, 0.95);
|
|
|
31
37
|
font-family: var(--ui-font-stack);
|
|
32
38
|
}
|
|
33
39
|
|
|
40
|
+
|
|
34
41
|
.result {
|
|
35
42
|
padding: calc(11 / 16 * 1em) calc(14 / 16 * 1em);
|
|
36
43
|
border-radius: 0.2ex;
|
|
37
44
|
box-shadow: 0 0 0 rgba(0, 0, 0, 0.3);
|
|
38
|
-
//border: 1px solid #007abf;
|
|
45
|
+
/* //border: 1px solid #007abf; */
|
|
39
46
|
color: rgba(0, 0, 0, 0.9);
|
|
40
47
|
line-height: 1.1em;
|
|
41
48
|
cursor: pointer;
|
|
42
49
|
transition: box-shadow 200ms ease-in-out;
|
|
43
50
|
background-color: transparent;
|
|
44
51
|
|
|
45
|
-
|
|
46
|
-
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
}
|
|
55
|
+
.result:hover,
|
|
56
|
+
.result:focus {
|
|
47
57
|
box-shadow: 0 0 0.5ex rgba(0, 0, 0, 0.2), 0 0 0 1px #007abf inset;
|
|
48
|
-
background-color:
|
|
58
|
+
background-color: var(--backgroundColor);
|
|
49
59
|
}
|
|
50
|
-
|
|
60
|
+
|
|
51
61
|
|
|
52
62
|
.resultHeader {
|
|
53
63
|
font-weight: 700;
|
|
54
64
|
}
|
|
55
65
|
|
|
66
|
+
|
|
56
67
|
.resultPlz {
|
|
57
68
|
opacity: 0.5;
|
|
58
69
|
font-weight: 400;
|
|
59
70
|
}
|
|
60
71
|
|
|
72
|
+
|
|
61
73
|
.resultMeta {
|
|
62
74
|
opacity: 0.66;
|
|
63
75
|
font-size: 0.9em;
|
|
64
76
|
}
|
|
77
|
+
|