@uoguelph/react-components 1.3.13 → 1.4.0
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/dist/accordion-button.js +22 -22
- package/dist/accordion-content.js +5 -5
- package/dist/accordion.js +3 -3
- package/dist/alert-footer.js +6 -6
- package/dist/alert-message.js +7 -10
- package/dist/alert-subtitle.js +7 -7
- package/dist/alert-title.js +23 -23
- package/dist/alert.js +7 -7
- package/dist/blockquote-author-name.js +1 -1
- package/dist/blockquote-author-title.js +2 -2
- package/dist/blockquote-author.js +11 -11
- package/dist/blockquote-content.js +16 -16
- package/dist/breadcrumb-home.js +2 -2
- package/dist/breadcrumb.js +15 -15
- package/dist/breadcrumbs.js +9 -9
- package/dist/button.js +44 -44
- package/dist/card-content.js +10 -10
- package/dist/card-footer.js +11 -11
- package/dist/card-image.js +15 -15
- package/dist/card-title.js +5 -5
- package/dist/card.js +11 -11
- package/dist/carousel.js +51 -51
- package/dist/checkbox.js +44 -44
- package/dist/contact-email.js +7 -7
- package/dist/contact-name.js +1 -1
- package/dist/contact-phone.js +11 -11
- package/dist/contact-title.js +1 -1
- package/dist/contact.js +11 -14
- package/dist/container.js +10 -10
- package/dist/dismissible-alert.js +2 -2
- package/dist/divider.js +18 -18
- package/dist/embedded-video-modal-button.js +16 -16
- package/dist/embedded-video.js +29 -29
- package/dist/hero-caption.js +1 -1
- package/dist/hero-content.js +23 -23
- package/dist/hero-link.js +1 -1
- package/dist/hero-title.js +11 -11
- package/dist/hero-video.js +9 -9
- package/dist/hero.js +19 -19
- package/dist/image-overlay.js +48 -48
- package/dist/index.css +1 -1
- package/dist/info.js +16 -16
- package/dist/layout-content.js +3 -3
- package/dist/layout.js +44 -44
- package/dist/link-carousel-content.js +11 -11
- package/dist/link-carousel-item.js +15 -15
- package/dist/link-carousel-link.js +22 -22
- package/dist/link-carousel-links.js +14 -14
- package/dist/link-carousel.js +21 -21
- package/dist/link.js +10 -10
- package/dist/list-item.js +6 -6
- package/dist/list.js +21 -21
- package/dist/loading-indicator.js +29 -29
- package/dist/media-caption.js +34 -34
- package/dist/modal.js +25 -25
- package/dist/navigation-link.js +25 -25
- package/dist/navigation.js +8 -11
- package/dist/number-input.js +46 -46
- package/dist/pagination.js +62 -62
- package/dist/radio-group.js +8 -8
- package/dist/radio.js +19 -19
- package/dist/select-button.js +32 -32
- package/dist/select-option.js +29 -29
- package/dist/select-options.js +27 -27
- package/dist/select.js +7 -7
- package/dist/statistics-item-image.js +9 -9
- package/dist/statistics-item-represents.js +7 -7
- package/dist/statistics-item-value.js +7 -7
- package/dist/statistics-item.js +35 -35
- package/dist/statistics.js +25 -25
- package/dist/story-background-image.js +12 -12
- package/dist/story-background.js +7 -7
- package/dist/story-body.js +5 -8
- package/dist/story-footer.js +12 -12
- package/dist/story-foreground-content.js +4 -4
- package/dist/story-foreground-image.js +15 -15
- package/dist/story-foreground.js +7 -10
- package/dist/story.js +5 -5
- package/dist/tab-list.js +3 -6
- package/dist/tab-panel.js +3 -3
- package/dist/tab.js +26 -26
- package/dist/text-input.js +32 -32
- package/dist/typography.js +22 -22
- package/package.json +2 -2
package/dist/pagination.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as u, jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import { j as x } from "./solid-D19hAF5t.js";
|
|
4
|
-
import { FontAwesomeIcon as
|
|
4
|
+
import { FontAwesomeIcon as p } from "@fortawesome/react-fontawesome";
|
|
5
5
|
import { useState as y, useEffect as q } from "react";
|
|
6
6
|
import { twMerge as B } from "tailwind-merge";
|
|
7
7
|
import { tv as F } from "tailwind-variants";
|
|
@@ -34,42 +34,42 @@ function Z({
|
|
|
34
34
|
count: e,
|
|
35
35
|
visible: N,
|
|
36
36
|
defaultPage: b,
|
|
37
|
-
onChange:
|
|
38
|
-
color:
|
|
37
|
+
onChange: f,
|
|
38
|
+
color: g = "yellow",
|
|
39
39
|
hideInput: $ = !1,
|
|
40
40
|
hideList: k = !1,
|
|
41
41
|
className: L
|
|
42
42
|
}) {
|
|
43
|
-
const [
|
|
43
|
+
const [r, M] = y(b ?? 0), [P, j] = y(b ?? 0), C = [...Array(e).keys()], i = Math.max(Math.ceil(N), 3);
|
|
44
44
|
q(() => {
|
|
45
|
-
|
|
45
|
+
l(d ?? 0);
|
|
46
46
|
}, [d]);
|
|
47
|
-
const
|
|
48
|
-
const v = w(
|
|
49
|
-
|
|
50
|
-
},
|
|
47
|
+
const l = (o) => {
|
|
48
|
+
const v = w(o, 0, e - 1);
|
|
49
|
+
f == null || f(v), M(v);
|
|
50
|
+
}, m = (o) => /* @__PURE__ */ t(
|
|
51
51
|
"button",
|
|
52
52
|
{
|
|
53
|
-
className: `uofg-pagination-item ${W({ active:
|
|
53
|
+
className: `uofg-pagination-item ${W({ active: r === o })}`,
|
|
54
54
|
onClick: () => {
|
|
55
|
-
|
|
55
|
+
l(o);
|
|
56
56
|
},
|
|
57
|
-
children:
|
|
57
|
+
children: o + 1
|
|
58
58
|
},
|
|
59
|
-
|
|
59
|
+
o
|
|
60
60
|
);
|
|
61
|
-
let s, a,
|
|
62
|
-
e <= i || e < 5 ? (s = 1, a = e - 1,
|
|
61
|
+
let s, a, n, c;
|
|
62
|
+
e <= i || e < 5 ? (s = 1, a = e - 1, n = !1, c = !1) : r < i - 1 ? (s = 1, a = i, c = !0, n = !1) : r > e - i ? (s = e - i, a = e - 1, n = !0, c = !1) : (s = r - Math.floor(i / 2), a = s + i, n = s > 1, c = a < e);
|
|
63
63
|
const { base: I, list: z, seperator: E, control: h, item: W, inputWrapper: A, goTo: R, input: T } = F({
|
|
64
64
|
slots: {
|
|
65
|
-
base: "
|
|
66
|
-
list: "
|
|
67
|
-
seperator: "
|
|
68
|
-
control: "
|
|
69
|
-
item: "
|
|
70
|
-
inputWrapper: "
|
|
71
|
-
goTo: "
|
|
72
|
-
input: "
|
|
65
|
+
base: "flex w-full flex-col items-center justify-center gap-4 md:flex-row",
|
|
66
|
+
list: "flex items-center justify-center gap-4",
|
|
67
|
+
seperator: "block h-1 w-1/2 md:h-12 md:w-1",
|
|
68
|
+
control: "cursor-pointer transition-colors disabled:cursor-default disabled:opacity-15",
|
|
69
|
+
item: "flex aspect-square h-[2em] cursor-pointer items-center justify-center bg-grey-light-bg p-1 text-body-copy-on-light transition-colors hover:bg-grey-dark-bg hover:text-body-copy-on-dark",
|
|
70
|
+
inputWrapper: "flex items-center justify-center gap-2",
|
|
71
|
+
goTo: "p-2 text-sm",
|
|
72
|
+
input: "w-fit [&_.uofg-number-input]:text-center"
|
|
73
73
|
},
|
|
74
74
|
variants: {
|
|
75
75
|
active: {
|
|
@@ -77,28 +77,28 @@ function Z({
|
|
|
77
77
|
},
|
|
78
78
|
color: {
|
|
79
79
|
red: {
|
|
80
|
-
seperator: "
|
|
80
|
+
seperator: "bg-red"
|
|
81
81
|
},
|
|
82
82
|
yellow: {
|
|
83
|
-
seperator: "
|
|
83
|
+
seperator: "bg-yellow"
|
|
84
84
|
},
|
|
85
85
|
blue: {
|
|
86
|
-
seperator: "
|
|
86
|
+
seperator: "bg-blue"
|
|
87
87
|
},
|
|
88
88
|
green: {
|
|
89
|
-
seperator: "
|
|
89
|
+
seperator: "bg-green"
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
hideList: {
|
|
93
93
|
true: {
|
|
94
|
-
list: "
|
|
95
|
-
seperator: "
|
|
94
|
+
list: "hidden",
|
|
95
|
+
seperator: "hidden"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
hideInput: {
|
|
99
99
|
true: {
|
|
100
|
-
inputWrapper: "
|
|
101
|
-
seperator: "
|
|
100
|
+
inputWrapper: "hidden",
|
|
101
|
+
seperator: "hidden"
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
},
|
|
@@ -107,84 +107,84 @@ function Z({
|
|
|
107
107
|
active: !0,
|
|
108
108
|
color: "red",
|
|
109
109
|
class: {
|
|
110
|
-
item: "
|
|
110
|
+
item: "bg-red text-red-contrast"
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
active: !0,
|
|
115
115
|
color: "yellow",
|
|
116
116
|
class: {
|
|
117
|
-
item: "
|
|
117
|
+
item: "bg-yellow text-yellow-contrast"
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
120
|
{
|
|
121
121
|
active: !0,
|
|
122
122
|
color: "blue",
|
|
123
123
|
class: {
|
|
124
|
-
item: "
|
|
124
|
+
item: "bg-blue text-blue-contrast"
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
active: !0,
|
|
129
129
|
color: "green",
|
|
130
130
|
class: {
|
|
131
|
-
item: "
|
|
131
|
+
item: "bg-green text-green-contrast"
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
]
|
|
135
135
|
})({
|
|
136
|
-
color:
|
|
136
|
+
color: g ?? "yellow",
|
|
137
137
|
hideList: k ?? !1,
|
|
138
138
|
hideInput: $ ?? !1
|
|
139
139
|
});
|
|
140
|
-
return /* @__PURE__ */
|
|
141
|
-
/* @__PURE__ */
|
|
142
|
-
/* @__PURE__ */
|
|
140
|
+
return /* @__PURE__ */ u("div", { className: `uofg-pagination ${B(I(), L)}`, children: [
|
|
141
|
+
/* @__PURE__ */ u("div", { className: `uofg-pagination-list ${z()}`, children: [
|
|
142
|
+
/* @__PURE__ */ t(
|
|
143
143
|
"button",
|
|
144
144
|
{
|
|
145
|
-
disabled:
|
|
145
|
+
disabled: r <= 0,
|
|
146
146
|
className: `uofg-pagination-previous ${h()}`,
|
|
147
|
-
onClick: () =>
|
|
148
|
-
children: /* @__PURE__ */
|
|
147
|
+
onClick: () => l(r - 1),
|
|
148
|
+
children: /* @__PURE__ */ t(p, { icon: _ })
|
|
149
149
|
}
|
|
150
150
|
),
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
C.slice(s, a).map(
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
/* @__PURE__ */
|
|
151
|
+
m(0),
|
|
152
|
+
n && /* @__PURE__ */ t(p, { icon: x }),
|
|
153
|
+
C.slice(s, a).map(m),
|
|
154
|
+
c && /* @__PURE__ */ t(p, { icon: x }),
|
|
155
|
+
m(e - 1),
|
|
156
|
+
/* @__PURE__ */ t(
|
|
157
157
|
"button",
|
|
158
158
|
{
|
|
159
|
-
disabled:
|
|
159
|
+
disabled: r >= e - 1,
|
|
160
160
|
className: `uofg-pagination-next ${h()}`,
|
|
161
|
-
onClick: () =>
|
|
162
|
-
children: /* @__PURE__ */
|
|
161
|
+
onClick: () => l(r + 1),
|
|
162
|
+
children: /* @__PURE__ */ t(p, { icon: V })
|
|
163
163
|
}
|
|
164
164
|
)
|
|
165
165
|
] }),
|
|
166
|
-
/* @__PURE__ */
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
-
/* @__PURE__ */
|
|
166
|
+
/* @__PURE__ */ t("span", { className: `uofg-pagination-seperator ${E()}` }),
|
|
167
|
+
/* @__PURE__ */ u("div", { className: `uofg-pagination-go-to-wrapper ${A()}`, children: [
|
|
168
|
+
/* @__PURE__ */ t(
|
|
169
169
|
S,
|
|
170
170
|
{
|
|
171
|
-
color:
|
|
171
|
+
color: g,
|
|
172
172
|
min: 1,
|
|
173
173
|
max: e,
|
|
174
|
-
value:
|
|
175
|
-
onInput: (
|
|
176
|
-
j(isNaN(
|
|
174
|
+
value: r + 1,
|
|
175
|
+
onInput: (o) => {
|
|
176
|
+
j(isNaN(o) ? 0 : w(o - 1, 0, e - 1));
|
|
177
177
|
},
|
|
178
178
|
className: `uofg-pagination-go-to-input ${T()}`
|
|
179
179
|
}
|
|
180
180
|
),
|
|
181
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ t(
|
|
182
182
|
G,
|
|
183
183
|
{
|
|
184
|
-
color:
|
|
184
|
+
color: g,
|
|
185
185
|
className: `uofg-pagination-go-to-button ${R()}`,
|
|
186
186
|
onClick: () => {
|
|
187
|
-
|
|
187
|
+
l(P);
|
|
188
188
|
},
|
|
189
189
|
children: "Go to page"
|
|
190
190
|
}
|
package/dist/radio-group.js
CHANGED
|
@@ -4,20 +4,20 @@ import { RadioGroup as d } from "@headlessui/react";
|
|
|
4
4
|
import { useState as c, useMemo as f } from "react";
|
|
5
5
|
import { tv as n } from "tailwind-variants";
|
|
6
6
|
import { RadioContext as x } from "./radio-context.js";
|
|
7
|
-
import { Radio as
|
|
7
|
+
import { Radio as y } from "./radio.js";
|
|
8
8
|
function R({ name: s, inline: a = !1, onChange: o, children: i }) {
|
|
9
|
-
const [l, e] = c(null),
|
|
9
|
+
const [l, e] = c(null), m = f(() => ({ setSelected: e }), [e]), p = n({
|
|
10
10
|
slots: {
|
|
11
|
-
base: "
|
|
11
|
+
base: "flex gap-2"
|
|
12
12
|
},
|
|
13
13
|
variants: {
|
|
14
14
|
inline: {
|
|
15
15
|
false: {
|
|
16
|
-
base: "
|
|
16
|
+
base: "flex-col"
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
}), { base:
|
|
20
|
+
}), { base: u } = p({ inline: a });
|
|
21
21
|
return /* @__PURE__ */ t(
|
|
22
22
|
d,
|
|
23
23
|
{
|
|
@@ -26,13 +26,13 @@ function R({ name: s, inline: a = !1, onChange: o, children: i }) {
|
|
|
26
26
|
onChange: (r) => {
|
|
27
27
|
e(r), o == null || o(r);
|
|
28
28
|
},
|
|
29
|
-
className: `uofg-radio-group ${
|
|
30
|
-
children: /* @__PURE__ */ t(x.Provider, { value:
|
|
29
|
+
className: `uofg-radio-group ${u()}`,
|
|
30
|
+
children: /* @__PURE__ */ t(x.Provider, { value: m, children: i })
|
|
31
31
|
}
|
|
32
32
|
);
|
|
33
33
|
}
|
|
34
34
|
R.displayName = "RadioGroup";
|
|
35
35
|
export {
|
|
36
|
-
|
|
36
|
+
y as Radio,
|
|
37
37
|
R as RadioGroup
|
|
38
38
|
};
|
package/dist/radio.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { Field as
|
|
4
|
-
import { useContext as
|
|
2
|
+
import { jsxs as f, jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { Field as n, Radio as u, Label as m } from "@headlessui/react";
|
|
4
|
+
import { useContext as b, useEffect as g, Fragment as p } from "react";
|
|
5
5
|
import { tv as h } from "tailwind-variants";
|
|
6
6
|
import { RadioContext as x } from "./radio-context.js";
|
|
7
|
-
function j({ selected:
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}, [o, i
|
|
12
|
-
const
|
|
7
|
+
function j({ selected: o, children: a, value: i }) {
|
|
8
|
+
const e = b(x);
|
|
9
|
+
g(() => {
|
|
10
|
+
o && (e == null || e.setSelected(i));
|
|
11
|
+
}, [e, o, i]);
|
|
12
|
+
const l = h({
|
|
13
13
|
slots: {
|
|
14
|
-
field: "
|
|
15
|
-
radio: "
|
|
16
|
-
circle: "
|
|
14
|
+
field: "flex items-center gap-2",
|
|
15
|
+
radio: "block aspect-square rounded-full border border-blue p-1.5 focus-visible:ring-2 focus-visible:ring-blue focus-visible:ring-offset-2",
|
|
16
|
+
circle: "block h-2 w-2 rounded-full"
|
|
17
17
|
},
|
|
18
18
|
variants: {
|
|
19
19
|
checked: {
|
|
20
20
|
true: {
|
|
21
|
-
radio: "
|
|
22
|
-
circle: "
|
|
21
|
+
radio: "bg-blue",
|
|
22
|
+
circle: "bg-white"
|
|
23
23
|
},
|
|
24
24
|
false: {
|
|
25
|
-
circle: "
|
|
25
|
+
circle: "bg-transparent"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
}), { field:
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
/* @__PURE__ */
|
|
29
|
+
}), { field: c, radio: t, circle: d } = l();
|
|
30
|
+
return /* @__PURE__ */ f(n, { className: `uofg-radio-field ${c()}`, children: [
|
|
31
|
+
/* @__PURE__ */ r(u, { value: i, as: p, children: ({ checked: s }) => /* @__PURE__ */ r("span", { className: `uofg-radio ${t({ checked: s })}`, children: /* @__PURE__ */ r("span", { className: `uofg-radio-circle ${d({ checked: s })}` }) }) }),
|
|
32
|
+
/* @__PURE__ */ r(m, { className: "uofg-radio-label", children: a })
|
|
33
33
|
] });
|
|
34
34
|
}
|
|
35
35
|
export {
|
package/dist/select-button.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as t, jsxs as
|
|
3
|
-
import { k as
|
|
4
|
-
import { FontAwesomeIcon as
|
|
5
|
-
import { ListboxButton as
|
|
6
|
-
import { twMerge as
|
|
7
|
-
import { tv as
|
|
8
|
-
function
|
|
9
|
-
const
|
|
2
|
+
import { jsx as t, jsxs as m, Fragment as c } from "react/jsx-runtime";
|
|
3
|
+
import { k as p } from "./solid-D19hAF5t.js";
|
|
4
|
+
import { FontAwesomeIcon as f } from "@fortawesome/react-fontawesome";
|
|
5
|
+
import { ListboxButton as l } from "@headlessui/react";
|
|
6
|
+
import { twMerge as a } from "tailwind-merge";
|
|
7
|
+
import { tv as b } from "tailwind-variants";
|
|
8
|
+
function d({ children: o, className: e, ...n }) {
|
|
9
|
+
const r = b({
|
|
10
10
|
slots: {
|
|
11
11
|
button: [
|
|
12
12
|
"uofg-select-button",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
13
|
+
"ui-open:rounded-b-none",
|
|
14
|
+
"ui-open:border-blue",
|
|
15
|
+
"flex",
|
|
16
|
+
"w-full",
|
|
17
|
+
"items-center",
|
|
18
|
+
"justify-between",
|
|
19
|
+
"rounded-md",
|
|
20
|
+
"border",
|
|
21
|
+
"border-grey-light",
|
|
22
|
+
"bg-white",
|
|
23
|
+
"px-4",
|
|
24
|
+
"py-2.5",
|
|
25
|
+
"shadow-sm",
|
|
26
|
+
"transition-colors",
|
|
27
|
+
"group-focus-within:border-blue",
|
|
28
|
+
"group-focus-within:outline-none",
|
|
29
|
+
"gap-2"
|
|
30
30
|
],
|
|
31
|
-
icon: "
|
|
31
|
+
icon: "ui-open:rotate-180 h-5 w-5 text-body-copy transition-transform"
|
|
32
32
|
}
|
|
33
|
-
}), { button:
|
|
34
|
-
return /* @__PURE__ */ t(
|
|
35
|
-
typeof o == "function" ? o(
|
|
36
|
-
/* @__PURE__ */ t(
|
|
33
|
+
}), { button: i, icon: s } = r();
|
|
34
|
+
return /* @__PURE__ */ t(l, { ...n, className: a(i(), e), children: (u) => /* @__PURE__ */ m(c, { children: [
|
|
35
|
+
typeof o == "function" ? o(u) : o,
|
|
36
|
+
/* @__PURE__ */ t(f, { className: s(), icon: p })
|
|
37
37
|
] }) });
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
d.displayName = "SelectButton";
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
d as SelectButton
|
|
42
42
|
};
|
package/dist/select-option.js
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { d as
|
|
4
|
-
import { FontAwesomeIcon as
|
|
5
|
-
import { ListboxOption as
|
|
2
|
+
import { jsx as o, jsxs as f } from "react/jsx-runtime";
|
|
3
|
+
import { d as g } from "./regular-DmWV6rTj.js";
|
|
4
|
+
import { FontAwesomeIcon as b } from "@fortawesome/react-fontawesome";
|
|
5
|
+
import { ListboxOption as u } from "@headlessui/react";
|
|
6
6
|
import { twMerge as x } from "tailwind-merge";
|
|
7
7
|
import { tv as d } from "tailwind-variants";
|
|
8
|
-
function v({ children:
|
|
8
|
+
function v({ children: e, className: r, ...i }) {
|
|
9
9
|
const n = d({
|
|
10
10
|
slots: {
|
|
11
11
|
option: [
|
|
12
12
|
"uofg-select-option",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
13
|
+
"relative",
|
|
14
|
+
"cursor-pointer",
|
|
15
|
+
"select-none",
|
|
16
|
+
"border-b",
|
|
17
|
+
"border-grey-dark",
|
|
18
|
+
"px-4",
|
|
19
|
+
"py-2",
|
|
20
|
+
"text-gray-900",
|
|
21
|
+
"transition-colors",
|
|
22
|
+
"last:border-b-0",
|
|
23
|
+
"hover:bg-grey-light",
|
|
24
|
+
"focus:bg-grey-light",
|
|
25
|
+
"focus:outline-none",
|
|
26
|
+
"ui-active:bg-grey-light",
|
|
27
|
+
"gap-2"
|
|
28
28
|
],
|
|
29
|
-
icon: "
|
|
30
|
-
wrapper: "
|
|
31
|
-
content: "
|
|
29
|
+
icon: "h-5 w-5 text-blue",
|
|
30
|
+
wrapper: "flex items-center",
|
|
31
|
+
content: "flex-1"
|
|
32
32
|
},
|
|
33
33
|
variants: {
|
|
34
34
|
selected: {
|
|
35
35
|
true: {
|
|
36
|
-
icon: "
|
|
36
|
+
icon: "visible"
|
|
37
37
|
},
|
|
38
38
|
false: {
|
|
39
|
-
icon: "
|
|
39
|
+
icon: "invisible"
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
}), { option: s, icon:
|
|
44
|
-
return /* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
43
|
+
}), { option: s, icon: c, wrapper: a, content: l } = n();
|
|
44
|
+
return /* @__PURE__ */ o(u, { ...i, className: x(s(), r), children: ({ focus: p, selected: t, ...m }) => /* @__PURE__ */ f("div", { className: a(), children: [
|
|
45
|
+
/* @__PURE__ */ o("span", { className: l(), children: typeof e == "function" ? e({ focus: p, selected: t, ...m }) : e }),
|
|
46
|
+
/* @__PURE__ */ o(b, { icon: g, className: c({ selected: t }) })
|
|
47
47
|
] }) });
|
|
48
48
|
}
|
|
49
49
|
v.displayName = "SelectOptions";
|
package/dist/select-options.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { ListboxOptions as
|
|
4
|
-
import { twMerge as
|
|
5
|
-
function
|
|
6
|
-
const
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
2
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
3
|
+
import { ListboxOptions as s } from "@headlessui/react";
|
|
4
|
+
import { twMerge as n } from "tailwind-merge";
|
|
5
|
+
function u({ children: o, className: e, ...t }) {
|
|
6
|
+
const r = n(
|
|
7
|
+
"z-10",
|
|
8
|
+
"max-h-[20rem]",
|
|
9
|
+
"w-full",
|
|
10
|
+
"overflow-auto",
|
|
11
|
+
"rounded-b-md",
|
|
12
|
+
"border",
|
|
13
|
+
"border-t-0",
|
|
14
|
+
"border-grey-light",
|
|
15
|
+
"bg-white",
|
|
16
|
+
"shadow-md",
|
|
17
|
+
"group-focus-within:border-blue",
|
|
18
|
+
"group-focus-within:outline-none",
|
|
19
|
+
"ui-open:border-blue",
|
|
20
|
+
"md:absolute",
|
|
21
|
+
"transition",
|
|
22
|
+
"duration-300",
|
|
23
|
+
"ease-out",
|
|
24
|
+
"data-[closed]:opacity-0",
|
|
25
|
+
e
|
|
26
26
|
);
|
|
27
|
-
return /* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ i(s, { ...t, className: r, children: o });
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
u.displayName = "SelectOptions";
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
u as SelectOptions
|
|
32
32
|
};
|
package/dist/select.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
3
|
import { Listbox as r } from "@headlessui/react";
|
|
4
|
-
import { SelectButton as
|
|
5
|
-
import { SelectOption as
|
|
4
|
+
import { SelectButton as s } from "./select-button.js";
|
|
5
|
+
import { SelectOption as n } from "./select-option.js";
|
|
6
6
|
import { SelectOptions as a } from "./select-options.js";
|
|
7
|
-
function l({ children: e, ...
|
|
8
|
-
return /* @__PURE__ */
|
|
7
|
+
function l({ children: e, ...t }) {
|
|
8
|
+
return /* @__PURE__ */ o(r, { className: "uofg-select group relative w-full", ...t, as: "div", children: e });
|
|
9
9
|
}
|
|
10
10
|
l.displayName = "Select";
|
|
11
11
|
export {
|
|
12
12
|
l as Select,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
s as SelectButton,
|
|
14
|
+
n as SelectOption,
|
|
15
15
|
a as SelectOptions
|
|
16
16
|
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import { twMerge as r } from "tailwind-merge";
|
|
4
|
-
const
|
|
5
|
-
function
|
|
4
|
+
const f = "img";
|
|
5
|
+
function g({
|
|
6
6
|
as: e,
|
|
7
7
|
src: s,
|
|
8
8
|
alt: m,
|
|
9
9
|
width: i,
|
|
10
10
|
height: a,
|
|
11
|
-
className:
|
|
12
|
-
...
|
|
11
|
+
className: c,
|
|
12
|
+
...n
|
|
13
13
|
}) {
|
|
14
|
-
const
|
|
14
|
+
const o = e ?? f, l = r("w-full", c);
|
|
15
15
|
return /* @__PURE__ */ t("dd", { className: "contents", children: /* @__PURE__ */ t(
|
|
16
|
-
|
|
16
|
+
o,
|
|
17
17
|
{
|
|
18
18
|
src: s,
|
|
19
19
|
alt: m,
|
|
20
20
|
width: i,
|
|
21
21
|
height: a,
|
|
22
22
|
className: `uofg-statistics-item-image ${l}`,
|
|
23
|
-
...
|
|
23
|
+
...n
|
|
24
24
|
}
|
|
25
25
|
) });
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
g.displayName = "StatisticsItemImage";
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
g as StatisticsItemImage
|
|
30
30
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { twMerge as
|
|
4
|
-
function
|
|
5
|
-
const s =
|
|
6
|
-
return /* @__PURE__ */
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { twMerge as i } from "tailwind-merge";
|
|
4
|
+
function m({ children: t, className: e }) {
|
|
5
|
+
const s = i("text-normal p-6 pt-0 text-lg font-normal", e);
|
|
6
|
+
return /* @__PURE__ */ r("dd", { className: `uofg-statistics-item-represents ${s}`, children: t });
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
m.displayName = "StatisticsItemRepresents";
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
m as StatisticsItemRepresents
|
|
11
11
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { twMerge as
|
|
4
|
-
function
|
|
5
|
-
const
|
|
6
|
-
return /* @__PURE__ */
|
|
2
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import { twMerge as i } from "tailwind-merge";
|
|
4
|
+
function o({ children: t, className: e }) {
|
|
5
|
+
const s = i("break-auto p-6 pb-0 text-3xl leading-tight font-bold", e);
|
|
6
|
+
return /* @__PURE__ */ a("dt", { className: `uofg-statistics-item-value ${s}`, children: t });
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
o.displayName = "StatisticsItemValue";
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
o as StatisticsItemValue
|
|
11
11
|
};
|