@cfx-dev/ui-components 2.1.5 → 2.1.6
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.
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import l from "react";
|
|
3
|
-
import { Flex as
|
|
4
|
-
import { Text as
|
|
3
|
+
import { Flex as n } from "../Layout/Flex/Flex.js";
|
|
4
|
+
import { Text as i } from "../Text/Text.js";
|
|
5
5
|
import { Button as t } from "./Button.js";
|
|
6
6
|
import { ButtonBar as c } from "./ButtonBar.js";
|
|
7
|
-
function
|
|
8
|
-
return /* @__PURE__ */ r(
|
|
9
|
-
/* @__PURE__ */ r(
|
|
10
|
-
/* @__PURE__ */ e(
|
|
7
|
+
function o() {
|
|
8
|
+
return /* @__PURE__ */ r(n, { gap: "large", vertical: !0, children: [
|
|
9
|
+
/* @__PURE__ */ r(n, { gap: "normal", vertical: !0, children: [
|
|
10
|
+
/* @__PURE__ */ e(i, { children: "Default" }),
|
|
11
11
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
12
12
|
t,
|
|
13
13
|
{
|
|
@@ -17,8 +17,8 @@ function a() {
|
|
|
17
17
|
}
|
|
18
18
|
) })
|
|
19
19
|
] }),
|
|
20
|
-
/* @__PURE__ */ r(
|
|
21
|
-
/* @__PURE__ */ e(
|
|
20
|
+
/* @__PURE__ */ r(n, { gap: "normal", vertical: !0, children: [
|
|
21
|
+
/* @__PURE__ */ e(i, { children: "Primary" }),
|
|
22
22
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
23
23
|
t,
|
|
24
24
|
{
|
|
@@ -28,8 +28,8 @@ function a() {
|
|
|
28
28
|
}
|
|
29
29
|
) })
|
|
30
30
|
] }),
|
|
31
|
-
/* @__PURE__ */ r(
|
|
32
|
-
/* @__PURE__ */ e(
|
|
31
|
+
/* @__PURE__ */ r(n, { gap: "normal", vertical: !0, children: [
|
|
32
|
+
/* @__PURE__ */ e(i, { children: "Secondary" }),
|
|
33
33
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
34
34
|
t,
|
|
35
35
|
{
|
|
@@ -39,8 +39,8 @@ function a() {
|
|
|
39
39
|
}
|
|
40
40
|
) })
|
|
41
41
|
] }),
|
|
42
|
-
/* @__PURE__ */ r(
|
|
43
|
-
/* @__PURE__ */ e(
|
|
42
|
+
/* @__PURE__ */ r(n, { gap: "normal", vertical: !0, children: [
|
|
43
|
+
/* @__PURE__ */ e(i, { children: "On Light" }),
|
|
44
44
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
45
45
|
t,
|
|
46
46
|
{
|
|
@@ -50,8 +50,8 @@ function a() {
|
|
|
50
50
|
}
|
|
51
51
|
) })
|
|
52
52
|
] }),
|
|
53
|
-
/* @__PURE__ */ r(
|
|
54
|
-
/* @__PURE__ */ e(
|
|
53
|
+
/* @__PURE__ */ r(n, { gap: "normal", vertical: !0, children: [
|
|
54
|
+
/* @__PURE__ */ e(i, { children: "Quick Link" }),
|
|
55
55
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
56
56
|
t,
|
|
57
57
|
{
|
|
@@ -61,8 +61,8 @@ function a() {
|
|
|
61
61
|
}
|
|
62
62
|
) })
|
|
63
63
|
] }),
|
|
64
|
-
/* @__PURE__ */ r(
|
|
65
|
-
/* @__PURE__ */ e(
|
|
64
|
+
/* @__PURE__ */ r(n, { gap: "normal", vertical: !0, children: [
|
|
65
|
+
/* @__PURE__ */ e(i, { children: "No Icon" }),
|
|
66
66
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
67
67
|
t,
|
|
68
68
|
{
|
|
@@ -71,8 +71,8 @@ function a() {
|
|
|
71
71
|
}
|
|
72
72
|
) })
|
|
73
73
|
] }),
|
|
74
|
-
/* @__PURE__ */ r(
|
|
75
|
-
/* @__PURE__ */ e(
|
|
74
|
+
/* @__PURE__ */ r(n, { gap: "normal", vertical: !0, children: [
|
|
75
|
+
/* @__PURE__ */ e(i, { children: "Full Width" }),
|
|
76
76
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
77
77
|
t,
|
|
78
78
|
{
|
|
@@ -83,19 +83,30 @@ function a() {
|
|
|
83
83
|
}
|
|
84
84
|
) })
|
|
85
85
|
] }),
|
|
86
|
-
/* @__PURE__ */ r(
|
|
87
|
-
/* @__PURE__ */ e(
|
|
88
|
-
/* @__PURE__ */
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
86
|
+
/* @__PURE__ */ r(n, { gap: "normal", vertical: !0, children: [
|
|
87
|
+
/* @__PURE__ */ e(i, { children: "Linked" }),
|
|
88
|
+
/* @__PURE__ */ r(n, { p: 4, style: { backgroundColor: "var(--color-modal-background)" }, children: [
|
|
89
|
+
/* @__PURE__ */ e(
|
|
90
|
+
t,
|
|
91
|
+
{
|
|
92
|
+
text: "Sign In",
|
|
93
|
+
theme: "linked",
|
|
94
|
+
icon: "ExternalLink"
|
|
95
|
+
}
|
|
96
|
+
),
|
|
97
|
+
/* @__PURE__ */ e(
|
|
98
|
+
t,
|
|
99
|
+
{
|
|
100
|
+
disabled: !0,
|
|
101
|
+
text: "Copy",
|
|
102
|
+
theme: "linked",
|
|
103
|
+
icon: "Copy"
|
|
104
|
+
}
|
|
105
|
+
)
|
|
106
|
+
] })
|
|
96
107
|
] }),
|
|
97
|
-
/* @__PURE__ */ r(
|
|
98
|
-
/* @__PURE__ */ e(
|
|
108
|
+
/* @__PURE__ */ r(n, { gap: "normal", vertical: !0, children: [
|
|
109
|
+
/* @__PURE__ */ e(i, { children: "Button Bar" }),
|
|
99
110
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ r(c, { children: [
|
|
100
111
|
/* @__PURE__ */ e(t, { text: "Sign In", theme: "primary", icon: "Users" }),
|
|
101
112
|
/* @__PURE__ */ e(t, { text: "Register", theme: "secondary", icon: "Users" }),
|
|
@@ -103,8 +114,8 @@ function a() {
|
|
|
103
114
|
/* @__PURE__ */ e(t, { text: "Create Account", theme: "default", icon: "Users" })
|
|
104
115
|
] }) })
|
|
105
116
|
] }),
|
|
106
|
-
/* @__PURE__ */ r(
|
|
107
|
-
/* @__PURE__ */ e(
|
|
117
|
+
/* @__PURE__ */ r(n, { gap: "normal", vertical: !0, children: [
|
|
118
|
+
/* @__PURE__ */ e(i, { children: "Long text" }),
|
|
108
119
|
/* @__PURE__ */ e("div", { style: { maxWidth: "300px" }, children: /* @__PURE__ */ e(
|
|
109
120
|
t,
|
|
110
121
|
{
|
|
@@ -116,7 +127,7 @@ function a() {
|
|
|
116
127
|
] })
|
|
117
128
|
] });
|
|
118
129
|
}
|
|
119
|
-
const g = l.memo(
|
|
130
|
+
const g = l.memo(o);
|
|
120
131
|
export {
|
|
121
132
|
g as default
|
|
122
133
|
};
|
|
@@ -259,11 +259,11 @@ $control-heights: (
|
|
|
259
259
|
@include ui.define-color-token('button-linked-background', transparent);
|
|
260
260
|
@include ui.define-color-token('button-linked-hover-text', ui.color('red'));
|
|
261
261
|
@include ui.define-color-token('button-linked-hover-border', transparent);
|
|
262
|
-
@include ui.define-color-token('button-linked-hover-background',
|
|
262
|
+
@include ui.define-color-token('button-linked-hover-background', #24293B);
|
|
263
263
|
@include ui.define-color-token('button-linked-active-text', ui.color('red'));
|
|
264
264
|
@include ui.define-color-token('button-linked-active-border', transparent);
|
|
265
|
-
@include ui.define-color-token('button-linked-active-background',
|
|
266
|
-
@include ui.define-color-token('button-linked-disabled-text', ui.color('
|
|
265
|
+
@include ui.define-color-token('button-linked-active-background', #24293B);
|
|
266
|
+
@include ui.define-color-token('button-linked-disabled-text', ui.color('primary', $alpha: .4));
|
|
267
267
|
@include ui.define-color-token('button-linked-disabled-border', transparent);
|
|
268
268
|
@include ui.define-color-token('button-linked-disabled-background', transparent);
|
|
269
269
|
|