@geoinsight/react-components 1.0.2 → 1.0.5
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/.pnp.cjs +808 -833
- package/.yarn/install-state.gz +0 -0
- package/.yarn/unplugged/{@swc-core-linux-x64-gnu-npm-1.3.105-928407db1c → @swc-core-linux-x64-gnu-npm-1.3.106-7bb327124d}/node_modules/@swc/core-linux-x64-gnu/package.json +1 -1
- package/.yarn/unplugged/{@swc-core-linux-x64-gnu-npm-1.3.105-928407db1c → @swc-core-linux-x64-gnu-npm-1.3.106-7bb327124d}/node_modules/@swc/core-linux-x64-gnu/swc.linux-x64-gnu.node +0 -0
- package/.yarn/unplugged/{@swc-core-virtual-9a270511cf → @swc-core-virtual-22cde85fc1}/node_modules/@swc/core/CHANGELOG.md +56 -57
- package/.yarn/unplugged/{@swc-core-virtual-9a270511cf → @swc-core-virtual-22cde85fc1}/node_modules/@swc/core/package.json +12 -12
- package/dist/cjs/components/button/index.d.ts +5 -1
- package/dist/cjs/components/button/index.stories.d.ts +12 -9
- package/dist/cjs/components/map/map-mapbox.d.ts +0 -1
- package/dist/cjs/components/menu/menu-button.d.ts +6 -2
- package/dist/cjs/index.css +71 -22
- package/dist/cjs/index.js +16 -11
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/button/index.d.ts +5 -1
- package/dist/esm/components/button/index.stories.d.ts +12 -9
- package/dist/esm/components/map/map-mapbox.d.ts +0 -1
- package/dist/esm/components/menu/menu-button.d.ts +6 -2
- package/dist/esm/index.css +71 -22
- package/dist/esm/index.js +16 -11
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- /package/.yarn/unplugged/{@swc-core-linux-x64-gnu-npm-1.3.105-928407db1c → @swc-core-linux-x64-gnu-npm-1.3.106-7bb327124d}/node_modules/@swc/core-linux-x64-gnu/.ready +0 -0
- /package/.yarn/unplugged/{@swc-core-linux-x64-gnu-npm-1.3.105-928407db1c → @swc-core-linux-x64-gnu-npm-1.3.106-7bb327124d}/node_modules/@swc/core-linux-x64-gnu/README.md +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-9a270511cf → @swc-core-virtual-22cde85fc1}/node_modules/@swc/core/.ready +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-9a270511cf → @swc-core-virtual-22cde85fc1}/node_modules/@swc/core/LICENSE +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-9a270511cf → @swc-core-virtual-22cde85fc1}/node_modules/@swc/core/README.md +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-9a270511cf → @swc-core-virtual-22cde85fc1}/node_modules/@swc/core/Visitor.d.ts +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-9a270511cf → @swc-core-virtual-22cde85fc1}/node_modules/@swc/core/Visitor.js +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-9a270511cf → @swc-core-virtual-22cde85fc1}/node_modules/@swc/core/binding.d.ts +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-9a270511cf → @swc-core-virtual-22cde85fc1}/node_modules/@swc/core/binding.js +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-9a270511cf → @swc-core-virtual-22cde85fc1}/node_modules/@swc/core/bindings/README.md +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-9a270511cf → @swc-core-virtual-22cde85fc1}/node_modules/@swc/core/bindings/binding_core_wasm/package.json +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-9a270511cf → @swc-core-virtual-22cde85fc1}/node_modules/@swc/core/index.d.ts +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-9a270511cf → @swc-core-virtual-22cde85fc1}/node_modules/@swc/core/index.js +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-9a270511cf → @swc-core-virtual-22cde85fc1}/node_modules/@swc/core/postinstall.js +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-9a270511cf → @swc-core-virtual-22cde85fc1}/node_modules/@swc/core/spack.d.ts +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-9a270511cf → @swc-core-virtual-22cde85fc1}/node_modules/@swc/core/spack.js +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-9a270511cf → @swc-core-virtual-22cde85fc1}/node_modules/@swc/core/util.d.ts +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-9a270511cf → @swc-core-virtual-22cde85fc1}/node_modules/@swc/core/util.js +0 -0
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
|
@@ -5,6 +5,62 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
- **(binding/types)** Add `bugfixes` field to EnvConfig ([#8538](https://github.com/swc-project/swc/issues/8538)) ([49ebdf9](https://github.com/swc-project/swc/commit/49ebdf9fb7c9228c711c303c822add29bc3c8364))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
- **(common)** Fix source map generation with `inputSourceMap` ([#8546](https://github.com/swc-project/swc/issues/8546)) ([043ee85](https://github.com/swc-project/swc/commit/043ee85d0852c7c7d6193ad699074a599326aeec))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
- **(es/ast)** Add `definite` and `is_override` to `AutoAccessor` ([#8436](https://github.com/swc-project/swc/issues/8436)) ([572bcae](https://github.com/swc-project/swc/commit/572bcaefc1b6ba9f92c57a35ede61fec9f3221bd))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
- **(es/ast)** Fix definition of `SetterProp` ([#8314](https://github.com/swc-project/swc/issues/8314)) ([bc38ac9](https://github.com/swc-project/swc/commit/bc38ac906c427ba060f3da47c64726fe417162ed))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
- **(es/codegen)** Set `sourceRoot` of sourcemaps ([#6086](https://github.com/swc-project/swc/issues/6086)) ([ae78669](https://github.com/swc-project/swc/commit/ae786692a0d20254bc233472a23035ba1be25e46))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
- **(es/compat)** Support vars from `reserved_word` pass ([#8543](https://github.com/swc-project/swc/issues/8543)) ([fc929e9](https://github.com/swc-project/swc/commit/fc929e962ba18afa98ae4523e50ff630527a218f))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
- **(es/loader)** Don't use browser versions for `jsc.paths` ([#8548](https://github.com/swc-project/swc/issues/8548)) ([fab27da](https://github.com/swc-project/swc/commit/fab27dabed3a4d0478b28c86809cc06482b2c45c))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
- **(es/minifier)** Fix a bug related to inliner and the variable scoping ([#8542](https://github.com/swc-project/swc/issues/8542)) ([aa70131](https://github.com/swc-project/swc/commit/aa70131c558158abd3dcd3fca53dfe444c511ae1))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
- **(es/module)** Fix resolving of dependencies ([#8533](https://github.com/swc-project/swc/issues/8533)) ([71fb5c1](https://github.com/swc-project/swc/commit/71fb5c12a75bec27cc775069f83b576019d261f2))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
- **(es/module)** Fix handling of `*` in `jsc.paths` ([#8535](https://github.com/swc-project/swc/issues/8535)) ([2d8bd9e](https://github.com/swc-project/swc/commit/2d8bd9ed894cbc2e0e9063f6a1ab723c3d3bfdc6))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
- **(es/quote)** Add support for import phase to quote macro ([#8536](https://github.com/swc-project/swc/issues/8536)) ([71930ff](https://github.com/swc-project/swc/commit/71930ffb5625fb58fab3200764ea98b05abab8ba))
|
|
39
|
+
|
|
40
|
+
### Features
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
- **(css/parser)** Implement error reporting for `@value` of CSS Modules ([#8547](https://github.com/swc-project/swc/issues/8547)) ([00619b1](https://github.com/swc-project/swc/commit/00619b17082e857d1d5822f04b9ee82b0a295cc3))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
- **(es/ast)** Support import phase ([#8279](https://github.com/swc-project/swc/issues/8279)) ([72048ae](https://github.com/swc-project/swc/commit/72048ae1ced64b6d9d326e6d436a60b1191bc266))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
- **(swc_core)** Expose `preset_env_base` ([#8537](https://github.com/swc-project/swc/issues/8537)) ([793f265](https://github.com/swc-project/swc/commit/793f2651a8c44c43cde8b83d4f98eda6e274676c))
|
|
51
|
+
|
|
52
|
+
### Miscellaneous Tasks
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
- **(common)** Update `sourcemap` ([#8544](https://github.com/swc-project/swc/issues/8544)) ([4630426](https://github.com/swc-project/swc/commit/4630426d6aa77af992787456e476b8862c25a45e))
|
|
57
|
+
|
|
58
|
+
## [1.3.105] - 2024-01-21
|
|
59
|
+
|
|
60
|
+
### Bug Fixes
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
8
64
|
- **(common)** Remove `<` and `>` from `Display` impl of `FileName::Custom` ([#8530](https://github.com/swc-project/swc/issues/8530)) ([014a6cd](https://github.com/swc-project/swc/commit/014a6cda8205183f6c3a5e395b6f89cbf7b388b9))
|
|
9
65
|
|
|
10
66
|
|
|
@@ -1425,15 +1481,9 @@
|
|
|
1425
1481
|
|
|
1426
1482
|
|
|
1427
1483
|
|
|
1428
|
-
- **(es)** Accept `parse` option for `minify()` ([#7543](https://github.com/swc-project/swc/issues/7543)) ([1d84e95](https://github.com/swc-project/swc/commit/1d84e952feefc3cd50e379455bb6648b82c42256))
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
1484
|
- **(es/compat)** Visit arrow body from optional chaining pass ([#7549](https://github.com/swc-project/swc/issues/7549)) ([bc6e950](https://github.com/swc-project/swc/commit/bc6e95052eaf60d71c544c8a88c8440d7a2b437c))
|
|
1432
1485
|
|
|
1433
1486
|
|
|
1434
|
-
- **(es/preset-env)** Don't log `Yield` to the console ([#7548](https://github.com/swc-project/swc/issues/7548)) ([8cfc4f9](https://github.com/swc-project/swc/commit/8cfc4f9e9ab43a5ed25c9b600b9dd7e5790c2d1e))
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
1487
|
- **(es/resolver)** Resolve the super class before registering a class name ([#7550](https://github.com/swc-project/swc/issues/7550)) ([1d9f972](https://github.com/swc-project/swc/commit/1d9f972fb44e0722fce8a83090cbada81decf577))
|
|
1438
1488
|
|
|
1439
1489
|
### Features
|
|
@@ -1446,57 +1496,6 @@
|
|
|
1446
1496
|
|
|
1447
1497
|
|
|
1448
1498
|
|
|
1449
|
-
- **(es)** Add a test for a wrong issue ([#7542](https://github.com/swc-project/swc/issues/7542)) ([70bc605](https://github.com/swc-project/swc/commit/70bc605c6769759b0e896e7e5e91bb070d719552))
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
1499
|
- **(es)** Add one more test for a wrong issue ([#7545](https://github.com/swc-project/swc/issues/7545)) ([862f095](https://github.com/swc-project/swc/commit/862f095e656edf6c0e86f1ad8065d8095e162cfa))
|
|
1453
1500
|
|
|
1454
|
-
|
|
1455
|
-
- **(plugin/runner)** Share `target` directory ([#7544](https://github.com/swc-project/swc/issues/7544)) ([aa82e5f](https://github.com/swc-project/swc/commit/aa82e5fff3452db38599bb0bf7fef7cd72b6a09f))
|
|
1456
|
-
|
|
1457
|
-
## [1.3.65] - 2023-06-19
|
|
1458
|
-
|
|
1459
|
-
### Bug Fixes
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
- **(es/compat)** Fix optional chaining ([#7530](https://github.com/swc-project/swc/issues/7530)) ([990e48e](https://github.com/swc-project/swc/commit/990e48e0e81c339b42b0bf33b62a6f7126b0e2e8))
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
- **(es/module)** Add `"use strict"` while preserving directives ([#7537](https://github.com/swc-project/swc/issues/7537)) ([f42fdd2](https://github.com/swc-project/swc/commit/f42fdd21afad775358138c3aaed4ff3c41bfb16a))
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
- **(es/typescript)** Don't panic of `@jsxFrag null` ([#7540](https://github.com/swc-project/swc/issues/7540)) ([76aa91f](https://github.com/swc-project/swc/commit/76aa91f83cf37a11aa55feba40d6f73819fc811d))
|
|
1470
|
-
|
|
1471
|
-
### Features
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
- **(es/module)** Preserve custom `use` directives ([#7528](https://github.com/swc-project/swc/issues/7528)) ([3e9dd88](https://github.com/swc-project/swc/commit/3e9dd88e37fcb99293a3683ea7a62214950f7860))
|
|
1476
|
-
|
|
1477
|
-
## [1.3.64] - 2023-06-14
|
|
1478
|
-
|
|
1479
|
-
### Bug Fixes
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
- **(es/codegen)** Emit type arguments of jsx element names ([#7522](https://github.com/swc-project/swc/issues/7522)) ([a0da02d](https://github.com/swc-project/swc/commit/a0da02d0ff641863dafc1a7d573419478c3b16dc))
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
- **(es/codegen)** Fix regression of source maps ([#7523](https://github.com/swc-project/swc/issues/7523)) ([f27838d](https://github.com/swc-project/swc/commit/f27838dedcac792ac30380f45ef89b329221de59))
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
- **(es/compat)** Fix handling of `this` of optional chaining pass ([#7527](https://github.com/swc-project/swc/issues/7527)) ([4644d00](https://github.com/swc-project/swc/commit/4644d005d2ca06ad002dc7c6ff6c4d19e1734970))
|
|
1490
|
-
|
|
1491
|
-
## [1.3.63] - 2023-06-13
|
|
1492
|
-
|
|
1493
|
-
### Refactor
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
- **(es/ast)** Reimplement optional chaining ([#7441](https://github.com/swc-project/swc/issues/7441)) ([aa83584](https://github.com/swc-project/swc/commit/aa83584634286d7c741d903ad94ba5228c89bc62))
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
- **(es/ast)** Remove unused fields ([#7518](https://github.com/swc-project/swc/issues/7518)) ([3958f17](https://github.com/swc-project/swc/commit/3958f1792c4598e965f36a11c567c95f69984a9f))
|
|
1501
|
-
|
|
1502
1501
|
<!-- generated by git-cliff -->
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc/core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.106",
|
|
4
4
|
"description": "Super-fast alternative for babel",
|
|
5
5
|
"homepage": "https://swc.rs",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"@napi-rs/cli": "^3.0.0-alpha.22",
|
|
97
97
|
"@swc/core": "=1.2.220",
|
|
98
98
|
"@swc/helpers": "^0.5.0",
|
|
99
|
-
"@swc/plugin-jest": "
|
|
99
|
+
"@swc/plugin-jest": "^1.5.113",
|
|
100
100
|
"@taplo/cli": "^0.5.2",
|
|
101
101
|
"@types/jest": "^29.5.11",
|
|
102
102
|
"@types/node": "^20.5.0",
|
|
@@ -173,15 +173,15 @@
|
|
|
173
173
|
"@swc/types": "^0.1.5"
|
|
174
174
|
},
|
|
175
175
|
"optionalDependencies": {
|
|
176
|
-
"@swc/core-darwin-x64": "1.3.
|
|
177
|
-
"@swc/core-win32-x64-msvc": "1.3.
|
|
178
|
-
"@swc/core-linux-x64-gnu": "1.3.
|
|
179
|
-
"@swc/core-linux-x64-musl": "1.3.
|
|
180
|
-
"@swc/core-win32-ia32-msvc": "1.3.
|
|
181
|
-
"@swc/core-linux-arm-gnueabihf": "1.3.
|
|
182
|
-
"@swc/core-linux-arm64-gnu": "1.3.
|
|
183
|
-
"@swc/core-darwin-arm64": "1.3.
|
|
184
|
-
"@swc/core-linux-arm64-musl": "1.3.
|
|
185
|
-
"@swc/core-win32-arm64-msvc": "1.3.
|
|
176
|
+
"@swc/core-darwin-x64": "1.3.106",
|
|
177
|
+
"@swc/core-win32-x64-msvc": "1.3.106",
|
|
178
|
+
"@swc/core-linux-x64-gnu": "1.3.106",
|
|
179
|
+
"@swc/core-linux-x64-musl": "1.3.106",
|
|
180
|
+
"@swc/core-win32-ia32-msvc": "1.3.106",
|
|
181
|
+
"@swc/core-linux-arm-gnueabihf": "1.3.106",
|
|
182
|
+
"@swc/core-linux-arm64-gnu": "1.3.106",
|
|
183
|
+
"@swc/core-darwin-arm64": "1.3.106",
|
|
184
|
+
"@swc/core-linux-arm64-musl": "1.3.106",
|
|
185
|
+
"@swc/core-win32-arm64-msvc": "1.3.106"
|
|
186
186
|
}
|
|
187
187
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ButtonAsButton, ButtonAsLink } from "./index.types";
|
|
3
2
|
import "./index.css";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
export declare const Anchor: ({ Custom, children, ...rest }: {
|
|
5
|
+
Custom?: import("react").ComponentClass<any, any> | undefined;
|
|
6
|
+
children?: ReactNode[] | undefined;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
4
8
|
export declare function Button({ children, className, icon, isNewWindow, mode, size, as, CustomAnchor, ...rest }: ButtonAsButton | ButtonAsLink): JSX.Element;
|
|
5
9
|
export default Button;
|
|
@@ -3,14 +3,17 @@ import { Button } from "./index";
|
|
|
3
3
|
declare const meta: Meta<typeof Button>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof Button>;
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
6
|
+
export declare const ButtonPrimaryMedium: Story;
|
|
7
|
+
export declare const ButtonPrimaryLarge: Story;
|
|
8
|
+
export declare const ButtonPrimarySmall: Story;
|
|
9
|
+
export declare const ButtonPrimaryDisabled: Story;
|
|
10
|
+
export declare const ButtonPrimaryWithIcon: Story;
|
|
11
|
+
export declare const ButtonSecondary: Story;
|
|
12
|
+
export declare const ButtonSecondaryWithIcon: Story;
|
|
13
|
+
export declare const ButtonSecondaryDisabled: Story;
|
|
14
|
+
export declare const ButtonIcon: Story;
|
|
15
|
+
export declare const LinkPrimary: Story;
|
|
16
|
+
export declare const LinkSecondary: Story;
|
|
17
|
+
export declare const LinkIcon: Story;
|
|
15
18
|
export declare const LinkOutsideButton: Story;
|
|
16
19
|
export declare const LinkOutsideButtonAsPureLink: Story;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
/** React */
|
|
2
|
-
import { HtmlHTMLAttributes, ReactNode } from "react";
|
|
2
|
+
import React, { HtmlHTMLAttributes, ReactNode } from "react";
|
|
3
3
|
/** CSS */
|
|
4
4
|
import "./index.css";
|
|
5
5
|
/** Props */
|
|
6
6
|
type Props = HtmlHTMLAttributes<HTMLDivElement> & {
|
|
7
|
+
anchor?: React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
8
|
+
Custom?: React.ComponentClass<any>;
|
|
9
|
+
};
|
|
7
10
|
children: ReactNode;
|
|
11
|
+
buttonClassName?: string;
|
|
8
12
|
nested?: boolean;
|
|
9
13
|
subnested?: boolean;
|
|
10
14
|
dropdown?: boolean;
|
|
@@ -13,5 +17,5 @@ type Props = HtmlHTMLAttributes<HTMLDivElement> & {
|
|
|
13
17
|
handleCallbackClick?: () => void;
|
|
14
18
|
"data-menu-id"?: string;
|
|
15
19
|
};
|
|
16
|
-
export declare function MenuButton({ children, nested, subnested, dropdown, isLink, isSelected, handleCallbackClick, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function MenuButton({ anchor, children, buttonClassName, nested, subnested, dropdown, isLink, isSelected, handleCallbackClick, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
21
|
export {};
|
package/dist/cjs/index.css
CHANGED
|
@@ -53,6 +53,9 @@
|
|
|
53
53
|
cubic-bezier(0.1, 0.2, 0.3, 0.4);
|
|
54
54
|
--transition-box-shadow-cubic-bezier: box-shadow 500ms
|
|
55
55
|
cubic-bezier(0.1, 0.2, 0.3, 0.4);
|
|
56
|
+
--transition-border-cubic-bezier: border 250ms
|
|
57
|
+
cubic-bezier(0.1, 0.2, 0.3, 0.4);
|
|
58
|
+
|
|
56
59
|
|
|
57
60
|
--color-dark-base: #2e3440;
|
|
58
61
|
--color-dark-bright: #3b4252;
|
|
@@ -262,9 +265,11 @@ h6 {
|
|
|
262
265
|
cursor: pointer;
|
|
263
266
|
display: flex;
|
|
264
267
|
gap: var(--spacing-8);
|
|
268
|
+
height: var(--spacing-40);
|
|
265
269
|
justify-content: flex-end;
|
|
266
270
|
padding: var(--spacing-4) var(--spacing-16);
|
|
267
271
|
margin: var(--spacing-4) 0;
|
|
272
|
+
text-decoration: none;
|
|
268
273
|
}
|
|
269
274
|
|
|
270
275
|
/* .menu-button > svg {
|
|
@@ -321,7 +326,8 @@ h6 {
|
|
|
321
326
|
background-color: var(--color-primary-darker);
|
|
322
327
|
}
|
|
323
328
|
|
|
324
|
-
.button
|
|
329
|
+
.button,
|
|
330
|
+
.link {
|
|
325
331
|
align-items: center;
|
|
326
332
|
border-radius: var(--spacing-32);
|
|
327
333
|
border: none;
|
|
@@ -351,19 +357,46 @@ h6 {
|
|
|
351
357
|
var(--transition-box-shadow-cubic-bezier);
|
|
352
358
|
}
|
|
353
359
|
|
|
354
|
-
|
|
360
|
+
|
|
361
|
+
.button__primary {
|
|
362
|
+
background-color: var(--color-primary-bright);
|
|
363
|
+
border: 3px solid var(--color-primary-base);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.button__secondary,
|
|
367
|
+
.link__secondary {
|
|
368
|
+
background-color: var(--color-main-background);
|
|
369
|
+
border: 3px solid var(--color-primary-base);
|
|
370
|
+
border-radius: var(--spacing-32);
|
|
371
|
+
text-decoration: unset;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.button__secondary:hover {
|
|
375
|
+
box-shadow: unset;
|
|
376
|
+
border: 3px solid var(--color-primary-base);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.button__icon {
|
|
380
|
+
background-color: var(--color-primary-bright);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.button__icon:hover {
|
|
384
|
+
border: unset;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.link__primary {
|
|
355
388
|
background-color: unset !important;
|
|
356
389
|
color: var(--color-primary-base) !important;
|
|
357
390
|
text-decoration: underline 1px var(--color-primary-base);
|
|
358
391
|
text-underline-offset: var(--spacing-4);
|
|
359
392
|
}
|
|
360
393
|
|
|
361
|
-
[data-theme="light"] .
|
|
394
|
+
[data-theme="light"] .link__primary {
|
|
362
395
|
color: var(--color-primary-darker) !important;
|
|
363
396
|
text-decoration: underline 1px var(--color-primary-darker);
|
|
364
397
|
}
|
|
365
398
|
|
|
366
|
-
.
|
|
399
|
+
.link__primary:hover {
|
|
367
400
|
border: unset;
|
|
368
401
|
box-shadow: unset;
|
|
369
402
|
color: var(--color-primary-dark) !important;
|
|
@@ -373,29 +406,48 @@ h6 {
|
|
|
373
406
|
var(--transition-text-underline-offset-cubic-bezier);
|
|
374
407
|
}
|
|
375
408
|
|
|
376
|
-
.
|
|
377
|
-
background-color: var(--color-primary-
|
|
409
|
+
.link__secondary:hover {
|
|
410
|
+
background-color: var(--color-primary-dark);
|
|
378
411
|
border: 3px solid var(--color-primary-base);
|
|
412
|
+
box-shadow: unset;
|
|
413
|
+
transition: var(--transition-bg-cubic-bezier),
|
|
414
|
+
var(--transition-box-shadow-cubic-bezier);
|
|
379
415
|
}
|
|
380
416
|
|
|
381
|
-
.
|
|
382
|
-
background-color:
|
|
383
|
-
|
|
384
|
-
border-radius: var(--spacing-32);
|
|
385
|
-
text-decoration: unset;
|
|
417
|
+
.link__icon {
|
|
418
|
+
background-color: unset !important;
|
|
419
|
+
color: var(--color-primary-base) !important;
|
|
386
420
|
}
|
|
387
421
|
|
|
388
|
-
.
|
|
389
|
-
|
|
390
|
-
|
|
422
|
+
.link > a {
|
|
423
|
+
text-decoration: inherit;
|
|
424
|
+
color: inherit;
|
|
391
425
|
}
|
|
392
426
|
|
|
393
|
-
.
|
|
394
|
-
|
|
427
|
+
.link__icon svg {
|
|
428
|
+
border: 2px solid transparent;
|
|
429
|
+
border-bottom: 2px solid var(--color-primary-base);
|
|
430
|
+
border-radius: 2px;
|
|
431
|
+
padding: var(--spacing-4);
|
|
395
432
|
}
|
|
396
433
|
|
|
397
|
-
.
|
|
434
|
+
[data-theme="light"] .link__icon {
|
|
435
|
+
color: var(--color-primary-darker) !important;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
[data-theme="light"] .link__icon svg {
|
|
439
|
+
border-bottom: 2px solid var(--color-primary-darker);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.link__icon:hover {
|
|
398
443
|
border: unset;
|
|
444
|
+
box-shadow: unset;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.link__icon:hover svg {
|
|
448
|
+
color: var(--color-main-color) !important;
|
|
449
|
+
border: 2px solid var(--color-primary-dark);
|
|
450
|
+
transition: var(--transition-color-cubic-bezier), var(--transition-border-cubic-bezier);
|
|
399
451
|
}
|
|
400
452
|
|
|
401
453
|
.button__small {
|
|
@@ -410,11 +462,6 @@ h6 {
|
|
|
410
462
|
padding: var(--spacing-16);
|
|
411
463
|
}
|
|
412
464
|
|
|
413
|
-
.button__link > a {
|
|
414
|
-
text-decoration: inherit;
|
|
415
|
-
color: inherit;
|
|
416
|
-
}
|
|
417
|
-
|
|
418
465
|
.button__icon.button__medium {
|
|
419
466
|
padding: var(--spacing-8) var(--spacing-12);
|
|
420
467
|
}
|
|
@@ -796,6 +843,8 @@ h6 {
|
|
|
796
843
|
padding-bottom: var(--spacing-16);
|
|
797
844
|
}
|
|
798
845
|
|
|
846
|
+
@import url("mapbox-gl/dist/mapbox-gl.css");
|
|
847
|
+
|
|
799
848
|
.map {
|
|
800
849
|
position: relative;
|
|
801
850
|
height: 100%;
|
package/dist/cjs/index.js
CHANGED
|
@@ -13,7 +13,6 @@ var Layers = require('@deck.gl/layers');
|
|
|
13
13
|
var reactMapGl = require('react-map-gl');
|
|
14
14
|
var maplibregl = require('maplibre-gl');
|
|
15
15
|
var fi = require('react-icons/fi');
|
|
16
|
-
require('mapbox-gl/dist/mapbox-gl.css');
|
|
17
16
|
|
|
18
17
|
function _interopNamespaceDefault(e) {
|
|
19
18
|
var n = Object.create(null);
|
|
@@ -80,7 +79,14 @@ function useMenu() {
|
|
|
80
79
|
return MenuContext;
|
|
81
80
|
}
|
|
82
81
|
|
|
83
|
-
|
|
82
|
+
const Anchor = ({ Custom, children, ...rest }) => {
|
|
83
|
+
return Custom ? (jsxRuntime.jsx(Custom, { ...rest, children: children })) : (jsxRuntime.jsx("a", { ...rest, children: children }));
|
|
84
|
+
};
|
|
85
|
+
function Button({ children = "Click me", className = "", icon = undefined, isNewWindow = false, mode = "primary", size = "medium", as = "button", CustomAnchor, ...rest }) {
|
|
86
|
+
return as === "link" ? (jsxRuntime.jsxs(Anchor, { Custom: CustomAnchor, ...(isNewWindow && { target: "_blank" }), className: clsx(`button ${className}`, `link__${mode}`, `button__${size}`), ...rest, children: [children, icon] })) : (jsxRuntime.jsxs("button", { className: clsx("button", `button__${mode}`, `button__${size}`, className), ...rest, children: [children, icon] }));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function MenuButton({ anchor, children, buttonClassName, nested, subnested, dropdown, isLink, isSelected, handleCallbackClick, ...props }) {
|
|
84
90
|
const { toggle } = react.useContext(useMenu());
|
|
85
91
|
const [isToggled, setIsToggled] = react.useState(false);
|
|
86
92
|
const menuId = react.useMemo(() => props["data-menu-id"], [props]);
|
|
@@ -89,13 +95,19 @@ function MenuButton({ children, nested, subnested, dropdown, isLink, isSelected,
|
|
|
89
95
|
setIsToggled(!isToggled);
|
|
90
96
|
handleCallbackClick && handleCallbackClick();
|
|
91
97
|
};
|
|
92
|
-
return (jsxRuntime.jsxs(
|
|
98
|
+
return anchor ? (jsxRuntime.jsxs(Anchor, { className: clsx("menu-button", {
|
|
93
99
|
"menu-button-dropdown": dropdown,
|
|
94
100
|
"menu-button-nested": nested,
|
|
95
101
|
"menu-button-subnested": subnested,
|
|
96
102
|
"menu-button-is-link": isLink,
|
|
97
103
|
"menu-button-is-selected": isSelected,
|
|
98
|
-
}
|
|
104
|
+
}, buttonClassName), ...anchor, children: [children, dropdown ? (isToggled ? (jsxRuntime.jsx(tfi.TfiAngleDown, { size: "1rem" })) : (jsxRuntime.jsx(tfi.TfiAngleUp, { size: "1rem" }))) : null] })) : (jsxRuntime.jsxs("div", { role: "button", className: clsx("menu-button", {
|
|
105
|
+
"menu-button-dropdown": dropdown,
|
|
106
|
+
"menu-button-nested": nested,
|
|
107
|
+
"menu-button-subnested": subnested,
|
|
108
|
+
"menu-button-is-link": isLink,
|
|
109
|
+
"menu-button-is-selected": isSelected,
|
|
110
|
+
}, buttonClassName), onClick: handleClick, ...props, children: [children, dropdown ? (isToggled ? (jsxRuntime.jsx(tfi.TfiAngleDown, { size: "1rem" })) : (jsxRuntime.jsx(tfi.TfiAngleUp, { size: "1rem" }))) : null] }));
|
|
99
111
|
}
|
|
100
112
|
|
|
101
113
|
function MenuContent({ children, ...props }) {
|
|
@@ -143,13 +155,6 @@ const Menu = {
|
|
|
143
155
|
Content: MenuContent,
|
|
144
156
|
};
|
|
145
157
|
|
|
146
|
-
const Anchor = ({ Custom, children, ...rest }) => {
|
|
147
|
-
return Custom ? (jsxRuntime.jsx(Custom, { ...rest, children: children })) : (jsxRuntime.jsx("a", { ...rest, children: children }));
|
|
148
|
-
};
|
|
149
|
-
function Button({ children = "Click me", className = "", icon = undefined, isNewWindow = false, mode = "primary", size = "medium", as = "button", CustomAnchor, ...rest }) {
|
|
150
|
-
return as === "link" ? (jsxRuntime.jsxs(Anchor, { Custom: CustomAnchor, ...(isNewWindow && { target: "_blank" }), className: clsx(`button ${className}`, mode === "secondary" ? `button__${mode}` : "button__link", `button__${size}`), ...rest, children: [children, icon] })) : (jsxRuntime.jsxs("button", { className: clsx("button", `button__${mode}`, `button__${size}`, className), ...rest, children: [children, icon] }));
|
|
151
|
-
}
|
|
152
|
-
|
|
153
158
|
// how do I solve reseting the form outside the form
|
|
154
159
|
function Form({ children, onSubmit, submitButton = {
|
|
155
160
|
label: "Submit",
|