ublo-lib 1.29.0 → 1.30.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.
@@ -0,0 +1,35 @@
1
+ import * as React from "react";
2
+ import Link from "ublo/link";
3
+ import Button from "dt-design-system/es/button";
4
+ import * as Icons from "dt-design-system/es/icons";
5
+ import styles from "./account-button.module.css";
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ import { jsxs as _jsxs } from "react/jsx-runtime";
8
+ export default function AccountButton({
9
+ item,
10
+ showLabel,
11
+ compact
12
+ }) {
13
+ const {
14
+ name,
15
+ path,
16
+ shortTitle,
17
+ title
18
+ } = item;
19
+ return _jsxs(Button, {
20
+ href: path,
21
+ tag: Link,
22
+ variant: "transparent",
23
+ className: styles.button,
24
+ "aria-label": shortTitle || title,
25
+ compact: compact,
26
+ children: [_jsx(Icons.User, {
27
+ className: styles.icon
28
+ }), showLabel && _jsx("span", {
29
+ className: styles.label,
30
+ dangerouslySetInnerHTML: {
31
+ __html: shortTitle || title
32
+ }
33
+ })]
34
+ }, name);
35
+ }
@@ -0,0 +1,3 @@
1
+ a.button {
2
+ color: inherit;
3
+ }
@@ -0,0 +1,2 @@
1
+ import AccountButton from "./account-button";
2
+ export default AccountButton;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.29.0",
3
+ "version": "1.30.1",
4
4
  "peerDependencies": {
5
5
  "dt-design-system": "^3.8.3",
6
6
  "leaflet": "^1.9.1",