@clubmed/trident-ui 1.0.0-beta.17 → 1.0.0-beta.18
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +7 -0
- package/fonts/Actions/tui-actions.css +6 -6
- package/fonts/Actions/tui-actions.eot +0 -0
- package/fonts/Actions/tui-actions.less +6 -6
- package/fonts/Actions/tui-actions.module.less +6 -6
- package/fonts/Actions/tui-actions.scss +6 -6
- package/fonts/Actions/tui-actions.styl +6 -6
- package/fonts/Actions/tui-actions.ttf +0 -0
- package/fonts/Actions/tui-actions.woff +0 -0
- package/fonts/Actions/tui-actions.woff2 +0 -0
- package/fonts/Activities/tui-activities.css +6 -6
- package/fonts/Activities/tui-activities.eot +0 -0
- package/fonts/Activities/tui-activities.less +6 -6
- package/fonts/Activities/tui-activities.module.less +6 -6
- package/fonts/Activities/tui-activities.scss +6 -6
- package/fonts/Activities/tui-activities.styl +6 -6
- package/fonts/Activities/tui-activities.ttf +0 -0
- package/fonts/Activities/tui-activities.woff +0 -0
- package/fonts/Activities/tui-activities.woff2 +0 -0
- package/fonts/Brand/tui-brand.css +6 -6
- package/fonts/Brand/tui-brand.eot +0 -0
- package/fonts/Brand/tui-brand.less +6 -6
- package/fonts/Brand/tui-brand.module.less +6 -6
- package/fonts/Brand/tui-brand.scss +6 -6
- package/fonts/Brand/tui-brand.styl +6 -6
- package/fonts/Brand/tui-brand.ttf +0 -0
- package/fonts/Brand/tui-brand.woff +0 -0
- package/fonts/Brand/tui-brand.woff2 +0 -0
- package/fonts/Covid/tui-covid.css +6 -6
- package/fonts/Covid/tui-covid.eot +0 -0
- package/fonts/Covid/tui-covid.less +6 -6
- package/fonts/Covid/tui-covid.module.less +6 -6
- package/fonts/Covid/tui-covid.scss +6 -6
- package/fonts/Covid/tui-covid.styl +6 -6
- package/fonts/Covid/tui-covid.ttf +0 -0
- package/fonts/Covid/tui-covid.woff +0 -0
- package/fonts/Covid/tui-covid.woff2 +0 -0
- package/fonts/Food/tui-food.css +6 -6
- package/fonts/Food/tui-food.eot +0 -0
- package/fonts/Food/tui-food.less +6 -6
- package/fonts/Food/tui-food.module.less +6 -6
- package/fonts/Food/tui-food.scss +6 -6
- package/fonts/Food/tui-food.styl +6 -6
- package/fonts/Food/tui-food.ttf +0 -0
- package/fonts/Food/tui-food.woff +0 -0
- package/fonts/Food/tui-food.woff2 +0 -0
- package/fonts/HappyToCare/tui-happy-to-care.css +6 -6
- package/fonts/HappyToCare/tui-happy-to-care.eot +0 -0
- package/fonts/HappyToCare/tui-happy-to-care.less +6 -6
- package/fonts/HappyToCare/tui-happy-to-care.module.less +6 -6
- package/fonts/HappyToCare/tui-happy-to-care.scss +6 -6
- package/fonts/HappyToCare/tui-happy-to-care.styl +6 -6
- package/fonts/HappyToCare/tui-happy-to-care.ttf +0 -0
- package/fonts/HappyToCare/tui-happy-to-care.woff +0 -0
- package/fonts/HappyToCare/tui-happy-to-care.woff2 +0 -0
- package/fonts/Places/tui-places.css +6 -6
- package/fonts/Places/tui-places.eot +0 -0
- package/fonts/Places/tui-places.less +6 -6
- package/fonts/Places/tui-places.module.less +6 -6
- package/fonts/Places/tui-places.scss +6 -6
- package/fonts/Places/tui-places.styl +6 -6
- package/fonts/Places/tui-places.ttf +0 -0
- package/fonts/Places/tui-places.woff +0 -0
- package/fonts/Places/tui-places.woff2 +0 -0
- package/fonts/Room/tui-room.css +6 -6
- package/fonts/Room/tui-room.eot +0 -0
- package/fonts/Room/tui-room.less +6 -6
- package/fonts/Room/tui-room.module.less +6 -6
- package/fonts/Room/tui-room.scss +6 -6
- package/fonts/Room/tui-room.styl +6 -6
- package/fonts/Room/tui-room.ttf +0 -0
- package/fonts/Room/tui-room.woff +0 -0
- package/fonts/Room/tui-room.woff2 +0 -0
- package/fonts/Services/tui-services.css +6 -6
- package/fonts/Services/tui-services.eot +0 -0
- package/fonts/Services/tui-services.less +6 -6
- package/fonts/Services/tui-services.module.less +6 -6
- package/fonts/Services/tui-services.scss +6 -6
- package/fonts/Services/tui-services.styl +6 -6
- package/fonts/Services/tui-services.ttf +0 -0
- package/fonts/Services/tui-services.woff +0 -0
- package/fonts/Services/tui-services.woff2 +0 -0
- package/fonts/Socials/tui-socials.css +6 -6
- package/fonts/Socials/tui-socials.eot +0 -0
- package/fonts/Socials/tui-socials.less +6 -6
- package/fonts/Socials/tui-socials.module.less +6 -6
- package/fonts/Socials/tui-socials.scss +6 -6
- package/fonts/Socials/tui-socials.styl +6 -6
- package/fonts/Socials/tui-socials.ttf +0 -0
- package/fonts/Socials/tui-socials.woff +0 -0
- package/fonts/Socials/tui-socials.woff2 +0 -0
- package/fonts/Transports/tui-transports.css +6 -6
- package/fonts/Transports/tui-transports.eot +0 -0
- package/fonts/Transports/tui-transports.less +6 -6
- package/fonts/Transports/tui-transports.module.less +6 -6
- package/fonts/Transports/tui-transports.scss +6 -6
- package/fonts/Transports/tui-transports.styl +6 -6
- package/fonts/Transports/tui-transports.ttf +0 -0
- package/fonts/Transports/tui-transports.woff +0 -0
- package/fonts/Transports/tui-transports.woff2 +0 -0
- package/fonts/Utilities/tui-utilities.css +6 -6
- package/fonts/Utilities/tui-utilities.eot +0 -0
- package/fonts/Utilities/tui-utilities.less +6 -6
- package/fonts/Utilities/tui-utilities.module.less +6 -6
- package/fonts/Utilities/tui-utilities.scss +6 -6
- package/fonts/Utilities/tui-utilities.styl +6 -6
- package/fonts/Utilities/tui-utilities.ttf +0 -0
- package/fonts/Utilities/tui-utilities.woff +0 -0
- package/fonts/Utilities/tui-utilities.woff2 +0 -0
- package/molecules/Buttons/ButtonAnchor.d.ts +2 -1
- package/molecules/Buttons/ButtonAnchor.js +17 -16
- package/molecules/Link.d.ts +5 -1
- package/molecules/Link.js +17 -16
- package/package.json +1 -1
@@ -1,10 +1,10 @@
|
|
1
1
|
@font-face {font-family: "tui-utilities";
|
2
|
-
src: url('tui-utilities.eot?t=
|
3
|
-
src: url('tui-utilities.eot?t=
|
4
|
-
url("tui-utilities.woff2?t=
|
5
|
-
url("tui-utilities.woff?t=
|
6
|
-
url('tui-utilities.ttf?t=
|
7
|
-
url('tui-utilities.svg?t=
|
2
|
+
src: url('tui-utilities.eot?t=1720189157351'); /* IE9*/
|
3
|
+
src: url('tui-utilities.eot?t=1720189157351#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
4
|
+
url("tui-utilities.woff2?t=1720189157351") format("woff2"),
|
5
|
+
url("tui-utilities.woff?t=1720189157351") format("woff"),
|
6
|
+
url('tui-utilities.ttf?t=1720189157351') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
|
7
|
+
url('tui-utilities.svg?t=1720189157351#tui-utilities') format('svg'); /* iOS 4.1- */
|
8
8
|
}
|
9
9
|
|
10
10
|
[class^="tui-utilities-"], [class*=" tui-utilities-"] {
|
@@ -1,10 +1,10 @@
|
|
1
1
|
@font-face {font-family: "tui-utilities";
|
2
|
-
src: url('tui-utilities.eot?t=
|
3
|
-
src: url('tui-utilities.eot?t=
|
4
|
-
url("tui-utilities.woff2?t=
|
5
|
-
url("tui-utilities.woff?t=
|
6
|
-
url('tui-utilities.ttf?t=
|
7
|
-
url('tui-utilities.svg?t=
|
2
|
+
src: url('tui-utilities.eot?t=1720189157351'); /* IE9*/
|
3
|
+
src: url('tui-utilities.eot?t=1720189157351#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
4
|
+
url("tui-utilities.woff2?t=1720189157351") format("woff2"),
|
5
|
+
url("tui-utilities.woff?t=1720189157351") format("woff"),
|
6
|
+
url('tui-utilities.ttf?t=1720189157351') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
|
7
|
+
url('tui-utilities.svg?t=1720189157351#tui-utilities') format('svg'); /* iOS 4.1- */
|
8
8
|
}
|
9
9
|
|
10
10
|
[class^="tui-utilities-"], [class*=" tui-utilities-"] {
|
@@ -1,10 +1,10 @@
|
|
1
1
|
@font-face {font-family: "tui-utilities";
|
2
|
-
src: url('tui-utilities.eot?t=
|
3
|
-
src: url('tui-utilities.eot?t=
|
4
|
-
url("tui-utilities.woff2?t=
|
5
|
-
url("tui-utilities.woff?t=
|
6
|
-
url('tui-utilities.ttf?t=
|
7
|
-
url('tui-utilities.svg?t=
|
2
|
+
src: url('tui-utilities.eot?t=1720189157351'); /* IE9*/
|
3
|
+
src: url('tui-utilities.eot?t=1720189157351#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
4
|
+
url("tui-utilities.woff2?t=1720189157351") format("woff2"),
|
5
|
+
url("tui-utilities.woff?t=1720189157351") format("woff"),
|
6
|
+
url('tui-utilities.ttf?t=1720189157351') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
|
7
|
+
url('tui-utilities.svg?t=1720189157351#tui-utilities') format('svg'); /* iOS 4.1- */
|
8
8
|
}
|
9
9
|
|
10
10
|
[class^="tui-utilities-"], [class*=" tui-utilities-"] {
|
@@ -1,10 +1,10 @@
|
|
1
1
|
@font-face {font-family: "tui-utilities";
|
2
|
-
src: url('tui-utilities.eot?t=
|
3
|
-
src: url('tui-utilities.eot?t=
|
4
|
-
url("tui-utilities.woff2?t=
|
5
|
-
url("tui-utilities.woff?t=
|
6
|
-
url('tui-utilities.ttf?t=
|
7
|
-
url('tui-utilities.svg?t=
|
2
|
+
src: url('tui-utilities.eot?t=1720189157351'); /* IE9*/
|
3
|
+
src: url('tui-utilities.eot?t=1720189157351#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
4
|
+
url("tui-utilities.woff2?t=1720189157351") format("woff2"),
|
5
|
+
url("tui-utilities.woff?t=1720189157351") format("woff"),
|
6
|
+
url('tui-utilities.ttf?t=1720189157351') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
|
7
|
+
url('tui-utilities.svg?t=1720189157351#tui-utilities') format('svg'); /* iOS 4.1- */
|
8
8
|
}
|
9
9
|
|
10
10
|
[class^="tui-utilities-"], [class*=" tui-utilities-"] {
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import type { AnchorHTMLAttributes, FunctionComponent } from 'react';
|
1
|
+
import type { AnchorHTMLAttributes, FunctionComponent, PropsWithChildren } from 'react';
|
2
2
|
import './button.css';
|
3
3
|
import { type CommonButtonProps } from './Button';
|
4
4
|
interface ButtonAnchorProps extends CommonButtonProps, AnchorHTMLAttributes<HTMLAnchorElement> {
|
5
|
+
component?: FunctionComponent<PropsWithChildren<any>> | string;
|
5
6
|
}
|
6
7
|
export declare const ButtonAnchor: FunctionComponent<ButtonAnchorProps>;
|
7
8
|
export {};
|
@@ -1,37 +1,38 @@
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
2
|
-
import { c as
|
2
|
+
import { c as C } from "../../index-Cu0xwYjD.js";
|
3
3
|
import "../../button-l0sNRNKZ.js";
|
4
4
|
import { variants as y, rootClassName as B } from "./Button.helpers.js";
|
5
5
|
import { themes as w } from "./Button.themes.js";
|
6
6
|
import { ButtonContent as A } from "./ButtonContent.js";
|
7
|
-
const
|
8
|
-
theme:
|
7
|
+
const z = ({
|
8
|
+
theme: m = "yellow",
|
9
|
+
component: r = "a",
|
9
10
|
backgroundOverride: e,
|
10
11
|
variant: t = "text",
|
11
|
-
className:
|
12
|
+
className: n,
|
12
13
|
label: o,
|
13
|
-
children:
|
14
|
-
title:
|
15
|
-
icon:
|
14
|
+
children: a,
|
15
|
+
title: c,
|
16
|
+
icon: p,
|
16
17
|
dataTestId: i,
|
17
18
|
href: l,
|
18
|
-
groupName:
|
19
|
-
...
|
19
|
+
groupName: f = "",
|
20
|
+
...h
|
20
21
|
}) => {
|
21
|
-
const
|
22
|
+
const u = t === "text", d = y[t], x = w(m, e, f);
|
22
23
|
return /* @__PURE__ */ s(
|
23
|
-
|
24
|
+
r,
|
24
25
|
{
|
25
26
|
"data-name": "ButtonAnchor",
|
26
27
|
"data-testid": i,
|
27
|
-
className:
|
28
|
-
title:
|
28
|
+
className: C(B, x, d, t, n),
|
29
|
+
title: c || o,
|
29
30
|
href: l,
|
30
|
-
...
|
31
|
-
children: /* @__PURE__ */ s(A, { showLabel:
|
31
|
+
...h,
|
32
|
+
children: /* @__PURE__ */ s(A, { showLabel: u, label: o, icon: p, children: a })
|
32
33
|
}
|
33
34
|
);
|
34
35
|
};
|
35
36
|
export {
|
36
|
-
|
37
|
+
z as ButtonAnchor
|
37
38
|
};
|
package/molecules/Link.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AnchorHTMLAttributes, FunctionComponent } from 'react';
|
1
|
+
import { AnchorHTMLAttributes, FunctionComponent, type PropsWithChildren } from 'react';
|
2
2
|
import { IconicNames, IconicTypes } from '../atoms/Icons';
|
3
3
|
interface LinkProps<T extends HTMLAnchorElement = HTMLAnchorElement> extends AnchorHTMLAttributes<T> {
|
4
4
|
/**
|
@@ -22,6 +22,10 @@ interface LinkProps<T extends HTMLAnchorElement = HTMLAnchorElement> extends Anc
|
|
22
22
|
* Is the link inert (not itself clickable but part of a clickable element)
|
23
23
|
*/
|
24
24
|
inert?: boolean;
|
25
|
+
/**
|
26
|
+
* Allow giving a custom component
|
27
|
+
*/
|
28
|
+
component?: FunctionComponent<PropsWithChildren<any>> | string;
|
25
29
|
}
|
26
30
|
export declare const Link: FunctionComponent<LinkProps>;
|
27
31
|
export {};
|
package/molecules/Link.js
CHANGED
@@ -1,28 +1,29 @@
|
|
1
1
|
import { jsxs as t, jsx as o } from "react/jsx-runtime";
|
2
2
|
import { c as a } from "../index-Cu0xwYjD.js";
|
3
|
-
import { Icon as
|
3
|
+
import { Icon as u } from "../atoms/Icons/Icon.js";
|
4
4
|
import "../atoms/Icons/contexts/IconsContext.js";
|
5
|
-
const
|
5
|
+
const C = ({
|
6
6
|
label: n,
|
7
7
|
icon: s,
|
8
|
-
|
8
|
+
component: c = "a",
|
9
|
+
iconType: m,
|
9
10
|
underlined: e = !0,
|
10
|
-
className:
|
11
|
-
inert:
|
12
|
-
...
|
11
|
+
className: l,
|
12
|
+
inert: p,
|
13
|
+
...d
|
13
14
|
}) => {
|
14
|
-
const r = n.lastIndexOf(" "), i = r === -1 ? n.length : r,
|
15
|
+
const r = n.lastIndexOf(" "), i = r === -1 ? n.length : r, h = n.substring(0, 1), x = n.substring(1, i + 1), g = n.substring(i);
|
15
16
|
return /* @__PURE__ */ t(
|
16
|
-
|
17
|
+
p ? "span" : c,
|
17
18
|
{
|
18
19
|
className: a(
|
19
20
|
"text-b3 decoration-none link-container cursor-pointer text-inherit",
|
20
|
-
|
21
|
+
l
|
21
22
|
),
|
22
23
|
"data-name": "Link",
|
23
|
-
...
|
24
|
+
...d,
|
24
25
|
children: [
|
25
|
-
/* @__PURE__ */ o("span", { className: a({ "link-underline": e }), children:
|
26
|
+
/* @__PURE__ */ o("span", { className: a({ "link-underline": e }), children: h }),
|
26
27
|
/* @__PURE__ */ t(
|
27
28
|
"span",
|
28
29
|
{
|
@@ -31,14 +32,14 @@ const b = ({
|
|
31
32
|
"link-underline": e
|
32
33
|
}),
|
33
34
|
children: [
|
34
|
-
|
35
|
+
x,
|
35
36
|
/* @__PURE__ */ t("span", { className: "inline-block", children: [
|
36
|
-
|
37
|
+
g,
|
37
38
|
s && /* @__PURE__ */ o(
|
38
|
-
|
39
|
+
u,
|
39
40
|
{
|
40
41
|
name: s,
|
41
|
-
iconType:
|
42
|
+
iconType: m,
|
42
43
|
width: "24px",
|
43
44
|
style: { marginInlineStart: "8px" }
|
44
45
|
}
|
@@ -52,5 +53,5 @@ const b = ({
|
|
52
53
|
);
|
53
54
|
};
|
54
55
|
export {
|
55
|
-
|
56
|
+
C as Link
|
56
57
|
};
|