@adgytec/adgytec-web-ui-components 2.0.0 → 2.1.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.
- package/dist/assets/AppBar.css +1 -0
- package/dist/assets/AppBarAvatar.css +1 -0
- package/dist/assets/AppBarHeadline.css +1 -0
- package/dist/assets/Navigation.css +1 -0
- package/dist/assets/NavigationScrollContainer.css +1 -0
- package/dist/assets/NavigationSection.css +1 -0
- package/dist/assets/NavigationSectionLabel.css +1 -0
- package/dist/assets/SideSheet.css +1 -1
- package/dist/assets/Tag.css +1 -1
- package/dist/assets/core10.css +1 -0
- package/dist/assets/core2.css +1 -1
- package/dist/assets/core3.css +1 -1
- package/dist/assets/core9.css +1 -0
- package/dist/chunks/ActionDialog +10 -10
- package/dist/chunks/AppBar +65 -0
- package/dist/chunks/AppBar.map +1 -0
- package/dist/chunks/AppBarAvatar +35 -0
- package/dist/chunks/AppBarAvatar.map +1 -0
- package/dist/chunks/AppBarHeadline +19 -0
- package/dist/chunks/AppBarHeadline.map +1 -0
- package/dist/chunks/BaseCalendar +35 -35
- package/dist/chunks/BottomSheet +17 -13
- package/dist/chunks/BottomSheet.map +1 -1
- package/dist/chunks/BottomSheetModal +5 -5
- package/dist/chunks/ButtonGroup +4 -4
- package/dist/chunks/CalendarCell +14 -14
- package/dist/chunks/CalendarGrid +7 -7
- package/dist/chunks/CalendarMenuItem +3 -3
- package/dist/chunks/CenteredSlider +16 -16
- package/dist/chunks/ComboBox +12 -12
- package/dist/chunks/ComboBoxTrigger +6 -6
- package/dist/chunks/ConnectedButtonGroup +4 -4
- package/dist/chunks/Dialog +10 -6
- package/dist/chunks/Dialog.map +1 -1
- package/dist/chunks/Disclosure +3 -3
- package/dist/chunks/DisclosureGroup +4 -4
- package/dist/chunks/DisclosureHeader +15 -15
- package/dist/chunks/DisclosurePanel +4 -4
- package/dist/chunks/Divider +3 -3
- package/dist/chunks/FieldError +3 -3
- package/dist/chunks/Input +12 -12
- package/dist/chunks/Input2 +28 -28
- package/dist/chunks/Modal +3 -3
- package/dist/chunks/ModalOverlay +3 -3
- package/dist/chunks/Navigation +68 -0
- package/dist/chunks/Navigation.map +1 -0
- package/dist/chunks/NavigationScrollContainer +32 -0
- package/dist/chunks/NavigationScrollContainer.map +1 -0
- package/dist/chunks/NavigationSection +10 -0
- package/dist/chunks/NavigationSection.map +1 -0
- package/dist/chunks/NavigationSectionLabel +12 -0
- package/dist/chunks/NavigationSectionLabel.map +1 -0
- package/dist/chunks/NavigationState +69 -0
- package/dist/chunks/NavigationState.map +1 -0
- package/dist/chunks/Popover +3 -3
- package/dist/chunks/Radio +13 -13
- package/dist/chunks/SearchField +10 -10
- package/dist/chunks/SelectTrigger +12 -12
- package/dist/chunks/SideSheet +50 -37
- package/dist/chunks/SideSheet.map +1 -1
- package/dist/chunks/SideSheetModal +6 -6
- package/dist/chunks/Slider +13 -13
- package/dist/chunks/SliderOutput +7 -7
- package/dist/chunks/SliderStops +9 -9
- package/dist/chunks/SliderThumb +5 -5
- package/dist/chunks/Snackbar +23 -23
- package/dist/chunks/SplitButton +20 -21
- package/dist/chunks/SplitButton.map +1 -1
- package/dist/chunks/SplitButtonTrigger +28 -28
- package/dist/chunks/SplitButtonTrigger.map +1 -1
- package/dist/chunks/Switch +21 -21
- package/dist/chunks/Switch.map +1 -1
- package/dist/chunks/Tab +12 -12
- package/dist/chunks/TabList +3 -3
- package/dist/chunks/TabPanel +3 -3
- package/dist/chunks/TabPanels +3 -3
- package/dist/chunks/Tabs +3 -3
- package/dist/chunks/Tag +18 -18
- package/dist/chunks/Tag.map +1 -1
- package/dist/chunks/ThemeSelector +42 -42
- package/dist/chunks/Toolbar +6 -6
- package/dist/chunks/Tooltip +3 -3
- package/dist/chunks/core +39 -39
- package/dist/chunks/core.map +1 -1
- package/dist/chunks/core2 +8 -8
- package/dist/chunks/core2.map +1 -1
- package/dist/chunks/core3 +3 -3
- package/dist/chunks/core8 +18 -0
- package/dist/chunks/core8.map +1 -0
- package/dist/chunks/core9 +6 -0
- package/dist/chunks/core9.map +1 -0
- package/dist/chunks/navContext +12 -0
- package/dist/chunks/navContext.map +1 -0
- package/dist/chunks/useSplash +7 -7
- package/dist/components/AppBar/AppBar/index.js +2 -0
- package/dist/components/AppBar/AppBarAction/index.js +12 -0
- package/dist/components/AppBar/AppBarAction/index.js.map +1 -0
- package/dist/components/AppBar/AppBarAvatar/index.js +2 -0
- package/dist/components/AppBar/AppBarHeadline/index.js +2 -0
- package/dist/components/AppBar/AppBarState/index.js +17 -0
- package/dist/components/AppBar/AppBarState/index.js.map +1 -0
- package/dist/components/AppBar/core/index.js +24 -0
- package/dist/components/AppBar/core/index.js.map +1 -0
- package/dist/components/AppBar/index.js +7 -0
- package/dist/components/Button/Button/index.js +16 -16
- package/dist/components/Button/IconButton/index.js +12 -12
- package/dist/components/Button/LinkButton/index.js +16 -16
- package/dist/components/Button/LinkIconButton/index.js +12 -12
- package/dist/components/Button/SplitButton/SplitButtonPrimary/index.js +32 -32
- package/dist/components/Button/SplitButton/SplitButtonPrimary/index.js.map +1 -1
- package/dist/components/Button/ToggleButton/index.js +17 -17
- package/dist/components/Button/ToggleIconButton/index.js +15 -15
- package/dist/components/Calendar/Calendar/index.js +4 -4
- package/dist/components/Calendar/CalendarMonthMenu/index.js +10 -10
- package/dist/components/Calendar/CalendarYearMenu/index.js +7 -7
- package/dist/components/Calendar/RangeCalendar/index.js +4 -4
- package/dist/components/Dialog/core/index.js +9 -2
- package/dist/components/Dialog/core/index.js.map +1 -1
- package/dist/components/Dialog/index.js +6 -6
- package/dist/components/Input/DateField/index.js +9 -9
- package/dist/components/Input/DatePicker/DatePicker/index.js +15 -15
- package/dist/components/Input/DatePicker/DateRangePicker/index.js +19 -19
- package/dist/components/Input/Description/index.js +3 -3
- package/dist/components/Input/Label/index.js +3 -3
- package/dist/components/Input/Select/Select/index.js +8 -8
- package/dist/components/Input/Select/SelectItem/index.js +18 -18
- package/dist/components/Input/Select/SelectList/index.js +3 -3
- package/dist/components/Input/Select/SelectListSection/index.js +3 -3
- package/dist/components/Input/Select/SelectListSectionHeader/index.js +3 -3
- package/dist/components/Input/Slider/RangeSlider/index.js +13 -13
- package/dist/components/Input/TextArea/index.js +11 -11
- package/dist/components/Input/TimeField/index.js +9 -9
- package/dist/components/Menu/Menu/index.js +4 -4
- package/dist/components/Menu/MenuItem/index.js +19 -19
- package/dist/components/Menu/MenuSection/index.js +3 -3
- package/dist/components/Menu/MenuSectionHeader/index.js +3 -3
- package/dist/components/Menu/MenuTrigger/index.js +4 -4
- package/dist/components/Navigation/Navigation/index.js +3 -0
- package/dist/components/Navigation/NavigationItem/NavigationButton/index.js +27 -0
- package/dist/components/Navigation/NavigationItem/NavigationButton/index.js.map +1 -0
- package/dist/components/Navigation/NavigationItem/NavigationItemIconRenderer/index.js +12 -0
- package/dist/components/Navigation/NavigationItem/NavigationItemIconRenderer/index.js.map +1 -0
- package/dist/components/Navigation/NavigationItem/NavigationLink/index.js +25 -0
- package/dist/components/Navigation/NavigationItem/NavigationLink/index.js.map +1 -0
- package/dist/components/Navigation/NavigationItem/core/index.js +2 -0
- package/dist/components/Navigation/NavigationItem/index.js +3 -0
- package/dist/components/Navigation/NavigationScrollContainer/index.js +2 -0
- package/dist/components/Navigation/NavigationSection/NavigationSection/index.js +2 -0
- package/dist/components/Navigation/NavigationSection/NavigationSectionLabel/index.js +2 -0
- package/dist/components/Navigation/NavigationSection/index.js +3 -0
- package/dist/components/Navigation/NavigationState/index.js +2 -0
- package/dist/components/Navigation/SubNavigation/SubNavigation/index.js +63 -0
- package/dist/components/Navigation/SubNavigation/SubNavigation/index.js.map +1 -0
- package/dist/components/Navigation/SubNavigation/SubNavigationTrigger/index.js +34 -0
- package/dist/components/Navigation/SubNavigation/SubNavigationTrigger/index.js.map +1 -0
- package/dist/components/Navigation/SubNavigation/index.js +3 -0
- package/dist/components/Navigation/core/index.js +2 -0
- package/dist/components/Navigation/index.js +10 -0
- package/dist/components/Sheets/SideSheet/index.js +2 -2
- package/dist/components/Sheets/index.js +2 -2
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipSubhead/index.js +3 -3
- package/dist/components/Tooltip/RichTooltip/RichTooltipInfo/RichTooltipText/index.js +3 -3
- package/dist/components/Tooltip/TooltipTrigger/index.js +3 -3
- package/dist/index.js +122 -107
- package/dist/index.js.map +1 -1
- package/dist/src/components/AppBar/AppBar/AppBar.d.ts +2 -0
- package/dist/src/components/AppBar/AppBar/index.d.ts +2 -0
- package/dist/src/components/AppBar/AppBar/types.d.ts +9 -0
- package/dist/src/components/AppBar/AppBarAction/AppBarAction.d.ts +2 -0
- package/dist/src/components/AppBar/AppBarAction/index.d.ts +1 -0
- package/dist/src/components/AppBar/AppBarAvatar/AppBarAvatar.d.ts +2 -0
- package/dist/src/components/AppBar/AppBarAvatar/index.d.ts +1 -0
- package/dist/src/components/AppBar/AppBarHeadline/AppBarHeadline.d.ts +2 -0
- package/dist/src/components/AppBar/AppBarHeadline/index.d.ts +1 -0
- package/dist/src/components/AppBar/AppBarState/AppBarState.d.ts +5 -0
- package/dist/src/components/AppBar/AppBarState/context.d.ts +5 -0
- package/dist/src/components/AppBar/AppBarState/index.d.ts +2 -0
- package/dist/src/components/AppBar/core/alignment.d.ts +1 -0
- package/dist/src/components/AppBar/core/context.d.ts +10 -0
- package/dist/src/components/AppBar/core/index.d.ts +3 -0
- package/dist/src/components/AppBar/core/size.d.ts +3 -0
- package/dist/src/components/AppBar/index.d.ts +6 -0
- package/dist/src/components/Dialog/core/context.d.ts +2 -0
- package/dist/src/components/Dialog/core/index.d.ts +1 -0
- package/dist/src/components/Input/Switch/types.d.ts +3 -0
- package/dist/src/components/Navigation/Navigation/Navigation.d.ts +2 -0
- package/dist/src/components/Navigation/Navigation/index.d.ts +4 -0
- package/dist/src/components/Navigation/Navigation/navContext.d.ts +7 -0
- package/dist/src/components/Navigation/Navigation/navRenderingContext.d.ts +5 -0
- package/dist/src/components/Navigation/Navigation/types.d.ts +10 -0
- package/dist/src/components/Navigation/NavigationItem/NavigationButton/NavigationButton.d.ts +2 -0
- package/dist/src/components/Navigation/NavigationItem/NavigationButton/index.d.ts +2 -0
- package/dist/src/components/Navigation/NavigationItem/NavigationButton/types.d.ts +7 -0
- package/dist/src/components/Navigation/NavigationItem/NavigationItemIconRenderer/NavigationItemIconRenderer.d.ts +6 -0
- package/dist/src/components/Navigation/NavigationItem/NavigationItemIconRenderer/index.d.ts +1 -0
- package/dist/src/components/Navigation/NavigationItem/NavigationLink/NavigationLink.d.ts +2 -0
- package/dist/src/components/Navigation/NavigationItem/NavigationLink/index.d.ts +2 -0
- package/dist/src/components/Navigation/NavigationItem/NavigationLink/types.d.ts +4 -0
- package/dist/src/components/Navigation/NavigationItem/core/index.d.ts +1 -0
- package/dist/src/components/Navigation/NavigationItem/core/navigationItem.d.ts +10 -0
- package/dist/src/components/Navigation/NavigationItem/index.d.ts +2 -0
- package/dist/src/components/Navigation/NavigationScrollContainer/NavigationScrollContainer.d.ts +1 -0
- package/dist/src/components/Navigation/NavigationScrollContainer/index.d.ts +1 -0
- package/dist/src/components/Navigation/NavigationSection/NavigationSection/NavigationSection.d.ts +1 -0
- package/dist/src/components/Navigation/NavigationSection/NavigationSection/index.d.ts +1 -0
- package/dist/src/components/Navigation/NavigationSection/NavigationSectionLabel/NavigationSectionLabel.d.ts +2 -0
- package/dist/src/components/Navigation/NavigationSection/NavigationSectionLabel/index.d.ts +1 -0
- package/dist/src/components/Navigation/NavigationSection/index.d.ts +2 -0
- package/dist/src/components/Navigation/NavigationState/NavigationState.d.ts +4 -0
- package/dist/src/components/Navigation/NavigationState/context.d.ts +10 -0
- package/dist/src/components/Navigation/NavigationState/index.d.ts +2 -0
- package/dist/src/components/Navigation/NavigationState/types.d.ts +5 -0
- package/dist/src/components/Navigation/SubNavigation/SubNavigation/SubNavigation.d.ts +4 -0
- package/dist/src/components/Navigation/SubNavigation/SubNavigation/index.d.ts +1 -0
- package/dist/src/components/Navigation/SubNavigation/SubNavigationTrigger/SubNavigationTrigger.d.ts +6 -0
- package/dist/src/components/Navigation/SubNavigation/SubNavigationTrigger/index.d.ts +1 -0
- package/dist/src/components/Navigation/SubNavigation/index.d.ts +2 -0
- package/dist/src/components/Navigation/core/index.d.ts +3 -0
- package/dist/src/components/Navigation/core/navLabelContext.d.ts +3 -0
- package/dist/src/components/Navigation/core/navigation.d.ts +3 -0
- package/dist/src/components/Navigation/core/navigationInfo.d.ts +6 -0
- package/dist/src/components/Navigation/index.d.ts +5 -0
- package/dist/src/components/Sheets/SideSheet/SideSheetDialog.d.ts +2 -0
- package/dist/src/components/Sheets/SideSheet/index.d.ts +1 -0
- package/dist/src/components/Sheets/SideSheet/types.d.ts +2 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/scroll/index.d.ts +1 -0
- package/dist/src/utils/scroll/scroll.d.ts +10 -0
- package/package.json +1 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/
|
|
2
|
-
import { t } from "../../../chunks/
|
|
3
|
-
import {
|
|
4
|
-
import { t as i } from "../../../chunks/
|
|
1
|
+
import { t as e } from "../../../chunks/tapTarget";
|
|
2
|
+
import { t } from "../../../chunks/Icon";
|
|
3
|
+
import { t as n } from "../../../chunks/Loader";
|
|
4
|
+
import { n as r, t as i } from "../../../chunks/useSplash";
|
|
5
5
|
import { a, c as o, d as s, f as c, i as l, l as u, n as d, o as f, p, t as m, u as h } from "../../../chunks/core";
|
|
6
6
|
import { clsx as g } from "clsx";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
8
|
+
import { Button as y } from "react-aria-components";
|
|
9
9
|
//#region src/components/Button/Button/Button.tsx
|
|
10
10
|
var b = ({ size: b, shape: x, color: S, tooltip: C, icon: w, children: T, onPress: E, iconPlacement: D, className: O, ...k }) => {
|
|
11
11
|
let { buttonColor: A, buttonShape: j, buttonSize: M, buttonIconPlacement: N } = d({
|
|
@@ -13,19 +13,19 @@ var b = ({ size: b, shape: x, color: S, tooltip: C, icon: w, children: T, onPres
|
|
|
13
13
|
shape: x,
|
|
14
14
|
color: S,
|
|
15
15
|
iconPlacement: D
|
|
16
|
-
}), { splashInfo: P, handlePress: F } =
|
|
16
|
+
}), { splashInfo: P, handlePress: F } = i(E), I = typeof T == "function", L = p({
|
|
17
17
|
shape: j,
|
|
18
18
|
size: M,
|
|
19
19
|
color: A
|
|
20
20
|
});
|
|
21
|
-
return m(/* @__PURE__ */
|
|
21
|
+
return m(/* @__PURE__ */ _(y, {
|
|
22
22
|
onPress: F,
|
|
23
|
-
className: (
|
|
23
|
+
className: (t) => g(c, e, o(M), h(A), typeof O == "function" ? O(t) : O),
|
|
24
24
|
...k,
|
|
25
25
|
...L,
|
|
26
26
|
"data-button": !0,
|
|
27
|
-
children: (
|
|
28
|
-
let { isPending: i, isDisabled: o, isFocusVisible: c, isFocused: d, isPressed: p, isHovered: m } =
|
|
27
|
+
children: (e) => {
|
|
28
|
+
let { isPending: i, isDisabled: o, isFocusVisible: c, isFocused: d, isPressed: p, isHovered: m } = e, h = {
|
|
29
29
|
...L,
|
|
30
30
|
"data-hovered": m || void 0,
|
|
31
31
|
"data-disabled": o || void 0,
|
|
@@ -33,17 +33,17 @@ var b = ({ size: b, shape: x, color: S, tooltip: C, icon: w, children: T, onPres
|
|
|
33
33
|
"data-focus-visible": c || void 0,
|
|
34
34
|
"data-pressed": p || void 0,
|
|
35
35
|
"data-visual-button": !0
|
|
36
|
-
},
|
|
36
|
+
}, y = l[M], b = i ? /* @__PURE__ */ _(n, { size: y }) : w && /* @__PURE__ */ _(t, {
|
|
37
37
|
icon: w,
|
|
38
|
-
size:
|
|
38
|
+
size: y
|
|
39
39
|
});
|
|
40
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ v("span", {
|
|
41
41
|
className: g(s, u, f, a[M]),
|
|
42
42
|
...h,
|
|
43
43
|
children: [
|
|
44
|
-
P && /* @__PURE__ */
|
|
44
|
+
P && /* @__PURE__ */ _(r, { ...P }),
|
|
45
45
|
N === "start" && b,
|
|
46
|
-
I ? T(
|
|
46
|
+
I ? T(e) : T,
|
|
47
47
|
N === "end" && b
|
|
48
48
|
]
|
|
49
49
|
});
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/
|
|
2
|
-
import { t } from "../../../chunks/
|
|
3
|
-
import {
|
|
4
|
-
import { t as i } from "../../../chunks/
|
|
1
|
+
import { t as e } from "../../../chunks/tapTarget";
|
|
2
|
+
import { t } from "../../../chunks/Icon";
|
|
3
|
+
import { t as n } from "../../../chunks/Loader";
|
|
4
|
+
import { n as r, t as i } from "../../../chunks/useSplash";
|
|
5
5
|
import { c as a, d as o, f as s, l as c, n as l, o as u, p as d, s as f, t as p, u as m } from "../../../chunks/core";
|
|
6
6
|
import { clsx as h } from "clsx";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
8
|
+
import { Button as v } from "react-aria-components";
|
|
9
9
|
//#region src/components/Button/IconButton/IconButton.tsx
|
|
10
10
|
var y = ({ size: y, shape: b, color: x, width: S = "default", tooltip: C, icon: w, onPress: T, className: E, ...D }) => {
|
|
11
11
|
let { buttonColor: O, buttonShape: k, buttonSize: A } = l({
|
|
12
12
|
size: y,
|
|
13
13
|
shape: b,
|
|
14
14
|
color: x
|
|
15
|
-
}), { splashInfo: j, handlePress: M } =
|
|
15
|
+
}), { splashInfo: j, handlePress: M } = i(T), N = {
|
|
16
16
|
...d({
|
|
17
17
|
shape: k,
|
|
18
18
|
size: A,
|
|
@@ -21,13 +21,13 @@ var y = ({ size: y, shape: b, color: x, width: S = "default", tooltip: C, icon:
|
|
|
21
21
|
"data-width": S,
|
|
22
22
|
"data-icon-button": !0
|
|
23
23
|
};
|
|
24
|
-
return p(/* @__PURE__ */
|
|
24
|
+
return p(/* @__PURE__ */ g(v, {
|
|
25
25
|
onPress: M,
|
|
26
|
-
className: (
|
|
26
|
+
className: (t) => h(s, e, a(A), m(O), typeof E == "function" ? E(t) : E),
|
|
27
27
|
...D,
|
|
28
28
|
...N,
|
|
29
29
|
"data-button": !0,
|
|
30
|
-
children: ({ isPending:
|
|
30
|
+
children: ({ isPending: e, isDisabled: i, isFocusVisible: a, isFocused: s, isPressed: l, isHovered: d }) => {
|
|
31
31
|
let p = {
|
|
32
32
|
...N,
|
|
33
33
|
"data-hovered": d || void 0,
|
|
@@ -37,10 +37,10 @@ var y = ({ size: y, shape: b, color: x, width: S = "default", tooltip: C, icon:
|
|
|
37
37
|
"data-pressed": l || void 0,
|
|
38
38
|
"data-visual-button": !0
|
|
39
39
|
}, m = f[A];
|
|
40
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ _("span", {
|
|
41
41
|
className: h(o, c, u),
|
|
42
42
|
...p,
|
|
43
|
-
children: [j && /* @__PURE__ */
|
|
43
|
+
children: [j && /* @__PURE__ */ g(r, { ...j }), e ? /* @__PURE__ */ g(n, { size: m }) : w && /* @__PURE__ */ g(t, {
|
|
44
44
|
icon: w,
|
|
45
45
|
size: m
|
|
46
46
|
})]
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/
|
|
2
|
-
import {
|
|
3
|
-
import { t as r } from "../../../chunks/
|
|
1
|
+
import { t as e } from "../../../chunks/tapTarget";
|
|
2
|
+
import { t } from "../../../chunks/Icon";
|
|
3
|
+
import { n, t as r } from "../../../chunks/useSplash";
|
|
4
4
|
import { a as i, c as a, d as o, f as s, i as c, l, n as u, o as d, p as f, t as p, u as m } from "../../../chunks/core";
|
|
5
5
|
import { clsx as h } from "clsx";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
7
|
+
import { Link as v } from "react-aria-components";
|
|
8
8
|
//#region src/components/Button/LinkButton/LinkButton.tsx
|
|
9
9
|
var y = ({ size: y, shape: b, color: x, tooltip: S, icon: C, children: w, onPress: T, className: E, iconPlacement: D, ...O }) => {
|
|
10
10
|
let { buttonColor: k, buttonShape: A, buttonSize: j, buttonIconPlacement: M } = u({
|
|
@@ -12,20 +12,20 @@ var y = ({ size: y, shape: b, color: x, tooltip: S, icon: C, children: w, onPres
|
|
|
12
12
|
shape: b,
|
|
13
13
|
color: x,
|
|
14
14
|
iconPlacement: D
|
|
15
|
-
}), { splashInfo: N, handlePress: P } =
|
|
15
|
+
}), { splashInfo: N, handlePress: P } = r(T), F = typeof w == "function", I = f({
|
|
16
16
|
shape: A,
|
|
17
17
|
size: j,
|
|
18
18
|
color: k
|
|
19
19
|
});
|
|
20
|
-
return p(/* @__PURE__ */
|
|
20
|
+
return p(/* @__PURE__ */ g(v, {
|
|
21
21
|
onPress: P,
|
|
22
|
-
className: (
|
|
22
|
+
className: (t) => h(s, e, a(j), m(k), typeof E == "function" ? E(t) : E),
|
|
23
23
|
...O,
|
|
24
24
|
...I,
|
|
25
25
|
"data-button": !0,
|
|
26
26
|
"data-link-button": !0,
|
|
27
|
-
children: (
|
|
28
|
-
let { isDisabled: r, isFocusVisible: a, isFocused: s, isPressed: u, isHovered: f } =
|
|
27
|
+
children: (e) => {
|
|
28
|
+
let { isDisabled: r, isFocusVisible: a, isFocused: s, isPressed: u, isHovered: f } = e, p = {
|
|
29
29
|
...I,
|
|
30
30
|
"data-hovered": f || void 0,
|
|
31
31
|
"data-disabled": r || void 0,
|
|
@@ -33,18 +33,18 @@ var y = ({ size: y, shape: b, color: x, tooltip: S, icon: C, children: w, onPres
|
|
|
33
33
|
"data-focus-visible": a || void 0,
|
|
34
34
|
"data-pressed": u || void 0,
|
|
35
35
|
"data-visual-button": !0
|
|
36
|
-
}, m = c[j],
|
|
36
|
+
}, m = c[j], v = C && /* @__PURE__ */ g(t, {
|
|
37
37
|
icon: C,
|
|
38
38
|
size: m
|
|
39
39
|
});
|
|
40
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ _("span", {
|
|
41
41
|
className: h(o, l, d, i[j]),
|
|
42
42
|
...p,
|
|
43
43
|
children: [
|
|
44
|
-
N && /* @__PURE__ */
|
|
45
|
-
M === "start" &&
|
|
46
|
-
F ? w(
|
|
47
|
-
M === "end" &&
|
|
44
|
+
N && /* @__PURE__ */ g(n, { ...N }),
|
|
45
|
+
M === "start" && v,
|
|
46
|
+
F ? w(e) : w,
|
|
47
|
+
M === "end" && v
|
|
48
48
|
]
|
|
49
49
|
});
|
|
50
50
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/
|
|
2
|
-
import {
|
|
3
|
-
import { t as r } from "../../../chunks/
|
|
1
|
+
import { t as e } from "../../../chunks/tapTarget";
|
|
2
|
+
import { t } from "../../../chunks/Icon";
|
|
3
|
+
import { n, t as r } from "../../../chunks/useSplash";
|
|
4
4
|
import { c as i, d as a, f as o, l as s, n as c, o as l, p as u, s as d, t as f, u as p } from "../../../chunks/core";
|
|
5
5
|
import { clsx as m } from "clsx";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
7
|
+
import { Link as _ } from "react-aria-components";
|
|
8
8
|
//#region src/components/Button/LinkIconButton/LinkIconButton.tsx
|
|
9
9
|
var v = ({ size: v, shape: y, color: b, width: x = "default", tooltip: S, icon: C, onPress: w, className: T, ...E }) => {
|
|
10
10
|
let { buttonColor: D, buttonShape: O, buttonSize: k } = c({
|
|
11
11
|
size: v,
|
|
12
12
|
shape: y,
|
|
13
13
|
color: b
|
|
14
|
-
}), { splashInfo: A, handlePress: j } =
|
|
14
|
+
}), { splashInfo: A, handlePress: j } = r(w), M = {
|
|
15
15
|
...u({
|
|
16
16
|
shape: O,
|
|
17
17
|
size: k,
|
|
@@ -20,27 +20,27 @@ var v = ({ size: v, shape: y, color: b, width: x = "default", tooltip: S, icon:
|
|
|
20
20
|
"data-width": x,
|
|
21
21
|
"data-icon-button": !0
|
|
22
22
|
};
|
|
23
|
-
return f(/* @__PURE__ */
|
|
23
|
+
return f(/* @__PURE__ */ h(_, {
|
|
24
24
|
onPress: j,
|
|
25
|
-
className: (
|
|
25
|
+
className: (t) => m(o, e, i(k), p(D), typeof T == "function" ? T(t) : T),
|
|
26
26
|
...E,
|
|
27
27
|
...M,
|
|
28
28
|
"data-button": !0,
|
|
29
29
|
"data-link-button": !0,
|
|
30
|
-
children: ({ isDisabled:
|
|
30
|
+
children: ({ isDisabled: e, isFocusVisible: r, isFocused: i, isPressed: o, isHovered: c }) => {
|
|
31
31
|
let u = {
|
|
32
32
|
...M,
|
|
33
33
|
"data-hovered": c || void 0,
|
|
34
|
-
"data-disabled":
|
|
34
|
+
"data-disabled": e || void 0,
|
|
35
35
|
"data-focused": i || void 0,
|
|
36
36
|
"data-focus-visible": r || void 0,
|
|
37
37
|
"data-pressed": o || void 0,
|
|
38
38
|
"data-visual-button": !0
|
|
39
39
|
}, f = d[k];
|
|
40
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ g("span", {
|
|
41
41
|
className: m(a, s, l),
|
|
42
42
|
...u,
|
|
43
|
-
children: [A && /* @__PURE__ */
|
|
43
|
+
children: [A && /* @__PURE__ */ h(n, { ...A }), C && /* @__PURE__ */ h(t, {
|
|
44
44
|
icon: C,
|
|
45
45
|
size: f
|
|
46
46
|
})]
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { t as e } from "../../../../chunks/
|
|
2
|
-
import { t } from "../../../../chunks/
|
|
3
|
-
import {
|
|
4
|
-
import { t as i } from "../../../../chunks/
|
|
5
|
-
import { a, d as o, f as s, i as c, l, t as u } from "../../../../chunks/core";
|
|
6
|
-
import { i as
|
|
7
|
-
import { useSplitButtonContext as
|
|
8
|
-
import { clsx as
|
|
9
|
-
import { Button as h } from "react-aria-components";
|
|
1
|
+
import { t as e } from "../../../../chunks/tapTarget";
|
|
2
|
+
import { t } from "../../../../chunks/Icon";
|
|
3
|
+
import { t as n } from "../../../../chunks/Loader";
|
|
4
|
+
import { n as r, t as i } from "../../../../chunks/useSplash";
|
|
5
|
+
import { a, d as o, f as s, i as c, l, t as u, u as d } from "../../../../chunks/core";
|
|
6
|
+
import { i as f, t as p } from "../../../../chunks/core2";
|
|
7
|
+
import { useSplitButtonContext as m } from "../SplitButtonContext/index.js";
|
|
8
|
+
import { clsx as h } from "clsx";
|
|
10
9
|
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
10
|
+
import { Button as v } from "react-aria-components";
|
|
11
11
|
//#region src/components/Button/SplitButton/SplitButtonPrimary/SplitButtonPrimary.tsx
|
|
12
|
-
var
|
|
13
|
-
let
|
|
14
|
-
return u(/* @__PURE__ */ g(
|
|
15
|
-
onPress:
|
|
16
|
-
isDisabled:
|
|
17
|
-
isPending:
|
|
18
|
-
...
|
|
19
|
-
className: (
|
|
12
|
+
var y = ({ tooltip: y, icon: b, children: x, onPress: S, isDisabled: C, isPending: w, className: T, iconPlacement: E = "start", ...D }) => {
|
|
13
|
+
let O = m(), { splashInfo: k, handlePress: A } = i(S), j = typeof x == "function", M = w || O.isPending;
|
|
14
|
+
return u(/* @__PURE__ */ g(v, {
|
|
15
|
+
onPress: A,
|
|
16
|
+
isDisabled: C || O.isDisabled,
|
|
17
|
+
isPending: M,
|
|
18
|
+
...D,
|
|
19
|
+
className: (t) => h(s, e, p, d(O.color), typeof T == "function" ? T(t) : T),
|
|
20
20
|
"data-button": !0,
|
|
21
21
|
"data-split-button-primary": !0,
|
|
22
|
-
children: (
|
|
23
|
-
let { isDisabled: i, isFocusVisible: s, isFocused: u, isPressed:
|
|
24
|
-
"data-hovered":
|
|
22
|
+
children: (e) => {
|
|
23
|
+
let { isDisabled: i, isFocusVisible: s, isFocused: u, isPressed: d, isHovered: p } = e, m = {
|
|
24
|
+
"data-hovered": p || void 0,
|
|
25
25
|
"data-disabled": i || void 0,
|
|
26
26
|
"data-focused": u || void 0,
|
|
27
27
|
"data-focus-visible": s || void 0,
|
|
28
|
-
"data-pressed":
|
|
28
|
+
"data-pressed": d || void 0,
|
|
29
29
|
"data-visual-button": !0
|
|
30
|
-
},
|
|
31
|
-
icon:
|
|
32
|
-
size:
|
|
30
|
+
}, v = c[O.size], y = e.isPending ? /* @__PURE__ */ g(n, { size: v }) : b && /* @__PURE__ */ g(t, {
|
|
31
|
+
icon: b,
|
|
32
|
+
size: v
|
|
33
33
|
});
|
|
34
34
|
return /* @__PURE__ */ _("span", {
|
|
35
|
-
className:
|
|
36
|
-
...
|
|
35
|
+
className: h(o, l, f, a[O.size]),
|
|
36
|
+
...m,
|
|
37
37
|
children: [
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
k && /* @__PURE__ */ g(r, { ...k }),
|
|
39
|
+
E === "start" && y,
|
|
40
|
+
j ? x(e) : x,
|
|
41
|
+
E === "end" && y
|
|
42
42
|
]
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
|
-
}),
|
|
45
|
+
}), y);
|
|
46
46
|
};
|
|
47
47
|
//#endregion
|
|
48
|
-
export {
|
|
48
|
+
export { y as SplitButtonPrimary };
|
|
49
49
|
|
|
50
50
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/Button/SplitButton/SplitButtonPrimary/SplitButtonPrimary.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Loader } from \"@/components/Loader\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonIconSizeMapping,\n ButtonLabelTextMapping,\n ButtonReset,\n buttonColorBase,\n withTooltip,\n} from \"../../core\";\nimport { SplitButtonPrimaryBase, SplitButtonVariantBase } from \"../core\";\nimport { useSplitButtonContext } from \"../SplitButtonContext\";\nimport type { SplitButtonPrimaryProps } from \"./types\";\n\nexport const SplitButtonPrimary: React.FC<SplitButtonPrimaryProps> = ({\n tooltip,\n icon,\n children,\n onPress,\n isDisabled,\n isPending,\n className,\n iconPlacement = \"start\",\n ...props\n}) => {\n const splitButtonState = useSplitButtonContext();\n\n const { splashInfo, handlePress } = useSplash(onPress);\n const isChildFunc = typeof children === \"function\";\n\n const pending = isPending || splitButtonState.isPending;\n const disabled = isDisabled || splitButtonState.isDisabled;\n\n return withTooltip(\n <AriaButton\n onPress={handlePress}\n isDisabled={disabled}\n isPending={pending}\n {...props}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n data-button\n data-split-button-primary\n >\n {(renderProps) => {\n const {\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n } = renderProps;\n\n const dataAttrs = {\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-visual-button\": true,\n };\n\n const iconSize = ButtonIconSizeMapping[splitButtonState.size];\n const iconComp = renderProps.isPending ? (\n <Loader size={iconSize} />\n ) : (\n icon && <Icon icon={icon} size={iconSize} />\n );\n\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n ButtonLabelTextMapping[splitButtonState.size]
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/Button/SplitButton/SplitButtonPrimary/SplitButtonPrimary.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Loader } from \"@/components/Loader\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonIconSizeMapping,\n ButtonLabelTextMapping,\n ButtonReset,\n buttonColorBase,\n buttonColorConfig,\n withTooltip,\n} from \"../../core\";\nimport { SplitButtonPrimaryBase, SplitButtonVariantBase } from \"../core\";\nimport { useSplitButtonContext } from \"../SplitButtonContext\";\nimport type { SplitButtonPrimaryProps } from \"./types\";\n\nexport const SplitButtonPrimary: React.FC<SplitButtonPrimaryProps> = ({\n tooltip,\n icon,\n children,\n onPress,\n isDisabled,\n isPending,\n className,\n iconPlacement = \"start\",\n ...props\n}) => {\n const splitButtonState = useSplitButtonContext();\n\n const { splashInfo, handlePress } = useSplash(onPress);\n const isChildFunc = typeof children === \"function\";\n\n const pending = isPending || splitButtonState.isPending;\n const disabled = isDisabled || splitButtonState.isDisabled;\n\n return withTooltip(\n <AriaButton\n onPress={handlePress}\n isDisabled={disabled}\n isPending={pending}\n {...props}\n className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n SplitButtonPrimaryBase,\n buttonColorConfig(splitButtonState.color),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n data-button\n data-split-button-primary\n >\n {(renderProps) => {\n const {\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\n } = renderProps;\n\n const dataAttrs = {\n \"data-hovered\": isHovered || undefined,\n \"data-disabled\": isDisabled || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-focus-visible\": isFocusVisible || undefined,\n \"data-pressed\": isPressed || undefined,\n \"data-visual-button\": true,\n };\n\n const iconSize = ButtonIconSizeMapping[splitButtonState.size];\n const iconComp = renderProps.isPending ? (\n <Loader size={iconSize} />\n ) : (\n icon && <Icon icon={icon} size={iconSize} />\n );\n\n return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n SplitButtonVariantBase,\n ButtonLabelTextMapping[splitButtonState.size]\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n\n {iconPlacement === \"start\" && iconComp}\n\n {isChildFunc ? children(renderProps) : children}\n\n {iconPlacement === \"end\" && iconComp}\n </span>\n );\n }}\n </AriaButton>,\n tooltip\n );\n};\n"],"mappings":";;;;;;;;;;;AAoBA,IAAa,KAAyD,EAClE,YACA,SACA,aACA,YACA,eACA,cACA,cACA,mBAAgB,SAChB,GAAG,QACD;CACF,IAAM,IAAmB,EAAsB,GAEzC,EAAE,eAAY,mBAAgB,EAAU,CAAO,GAC/C,IAAc,OAAO,KAAa,YAElC,IAAU,KAAa,EAAiB;CAG9C,OAAO,EACH,kBAAC,GAAD;EACI,SAAS;EACT,YALS,KAAc,EAAiB;EAMxC,WAAW;EACX,GAAI;EACJ,YAAY,MACR,EACI,GACA,GACA,GACA,EAAkB,EAAiB,KAAK,GACxC,OAAO,KAAc,aACf,EAAU,CAAW,IACrB,CACV;EAEJ,eAAA;EACA,6BAAA;aAEE,MAAgB;GACd,IAAM,EACF,eACA,mBACA,cACA,cACA,iBACA,GAEE,IAAY;IACd,gBAAgB,KAAa,KAAA;IAC7B,iBAAiB,KAAc,KAAA;IAC/B,gBAAgB,KAAa,KAAA;IAC7B,sBAAsB,KAAkB,KAAA;IACxC,gBAAgB,KAAa,KAAA;IAC7B,sBAAsB;GAC1B,GAEM,IAAW,EAAsB,EAAiB,OAClD,IAAW,EAAY,YACzB,kBAAC,GAAD,EAAQ,MAAM,EAAW,CAAA,IAEzB,KAAQ,kBAAC,GAAD;IAAY;IAAM,MAAM;GAAW,CAAA;GAG/C,OACI,kBAAC,QAAD;IACI,WAAW,EACP,GACA,GACA,GACA,EAAuB,EAAiB,KAC5C;IACA,GAAI;cAPR;KASK,KAAc,kBAAC,GAAD,EAAQ,GAAI,EAAa,CAAA;KAEvC,MAAkB,WAAW;KAE7B,IAAc,EAAS,CAAW,IAAI;KAEtC,MAAkB,SAAS;IAC1B;;EAEd;CACQ,CAAA,GACZ,CACJ;AACJ"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/
|
|
2
|
-
import {
|
|
3
|
-
import { t as r } from "../../../chunks/
|
|
1
|
+
import { t as e } from "../../../chunks/tapTarget";
|
|
2
|
+
import { t } from "../../../chunks/Icon";
|
|
3
|
+
import { n, t as r } from "../../../chunks/useSplash";
|
|
4
4
|
import { a as i, c as a, d as o, f as s, i as c, l, n as u, o as d, p as f, t as p, u as m } from "../../../chunks/core";
|
|
5
5
|
import { clsx as h } from "clsx";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
7
|
+
import { ToggleButton as v } from "react-aria-components";
|
|
8
8
|
//#region src/components/Button/ToggleButton/ToggleButton.tsx
|
|
9
9
|
var y = ({ size: y, shape: b, color: x, tooltip: S, selectedIcon: C, icon: w, children: T, onPress: E, className: D, iconPlacement: O, ...k }) => {
|
|
10
10
|
let { buttonColor: A, buttonShape: j, buttonSize: M, buttonIconPlacement: N } = u({
|
|
@@ -12,7 +12,7 @@ var y = ({ size: y, shape: b, color: x, tooltip: S, selectedIcon: C, icon: w, ch
|
|
|
12
12
|
shape: b,
|
|
13
13
|
color: x,
|
|
14
14
|
iconPlacement: O
|
|
15
|
-
}), { splashInfo: P, handlePress: F } =
|
|
15
|
+
}), { splashInfo: P, handlePress: F } = r(E), I = typeof T == "function", L = {
|
|
16
16
|
...f({
|
|
17
17
|
shape: j,
|
|
18
18
|
size: M,
|
|
@@ -20,14 +20,14 @@ var y = ({ size: y, shape: b, color: x, tooltip: S, selectedIcon: C, icon: w, ch
|
|
|
20
20
|
}),
|
|
21
21
|
"data-toggle-button": !0
|
|
22
22
|
};
|
|
23
|
-
return p(/* @__PURE__ */
|
|
23
|
+
return p(/* @__PURE__ */ g(v, {
|
|
24
24
|
onPress: F,
|
|
25
|
-
className: (
|
|
25
|
+
className: (t) => h(s, e, a(M), m(A), typeof D == "function" ? D(t) : D),
|
|
26
26
|
...k,
|
|
27
27
|
...L,
|
|
28
28
|
"data-button": !0,
|
|
29
|
-
children: (
|
|
30
|
-
let { isSelected: r, isDisabled: a, isFocusVisible: s, isFocused: u, isPressed: f, isHovered: p } =
|
|
29
|
+
children: (e) => {
|
|
30
|
+
let { isSelected: r, isDisabled: a, isFocusVisible: s, isFocused: u, isPressed: f, isHovered: p } = e, m = {
|
|
31
31
|
...L,
|
|
32
32
|
"data-hovered": p || void 0,
|
|
33
33
|
"data-disabled": a || void 0,
|
|
@@ -36,19 +36,19 @@ var y = ({ size: y, shape: b, color: x, tooltip: S, selectedIcon: C, icon: w, ch
|
|
|
36
36
|
"data-pressed": f || void 0,
|
|
37
37
|
"data-selected": r || void 0,
|
|
38
38
|
"data-visual-button": !0
|
|
39
|
-
},
|
|
40
|
-
r && C && (
|
|
41
|
-
let y = c[M], b =
|
|
42
|
-
icon:
|
|
39
|
+
}, v = w;
|
|
40
|
+
r && C && (v = C);
|
|
41
|
+
let y = c[M], b = v && /* @__PURE__ */ g(t, {
|
|
42
|
+
icon: v,
|
|
43
43
|
size: y
|
|
44
44
|
});
|
|
45
|
-
return /* @__PURE__ */
|
|
45
|
+
return /* @__PURE__ */ _("span", {
|
|
46
46
|
className: h(o, l, d, i[M]),
|
|
47
47
|
...m,
|
|
48
48
|
children: [
|
|
49
|
-
P && /* @__PURE__ */
|
|
49
|
+
P && /* @__PURE__ */ g(n, { ...P }),
|
|
50
50
|
N === "start" && b,
|
|
51
|
-
I ? T(
|
|
51
|
+
I ? T(e) : T,
|
|
52
52
|
N === "end" && b
|
|
53
53
|
]
|
|
54
54
|
});
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/
|
|
2
|
-
import {
|
|
3
|
-
import { t as r } from "../../../chunks/
|
|
1
|
+
import { t as e } from "../../../chunks/tapTarget";
|
|
2
|
+
import { t } from "../../../chunks/Icon";
|
|
3
|
+
import { n, t as r } from "../../../chunks/useSplash";
|
|
4
4
|
import { c as i, d as a, f as o, l as s, n as c, o as l, p as u, s as d, t as f, u as p } from "../../../chunks/core";
|
|
5
5
|
import { clsx as m } from "clsx";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
7
|
+
import { ToggleButton as _ } from "react-aria-components";
|
|
8
8
|
//#region src/components/Button/ToggleIconButton/ToggleIconButton.tsx
|
|
9
9
|
var v = ({ size: v, shape: y, color: b, width: x = "default", tooltip: S, selectedIcon: C, icon: w, onPress: T, className: E, ...D }) => {
|
|
10
10
|
let { buttonColor: O, buttonShape: k, buttonSize: A } = c({
|
|
11
11
|
size: v,
|
|
12
12
|
shape: y,
|
|
13
13
|
color: b
|
|
14
|
-
}), { splashInfo: j, handlePress: M } =
|
|
14
|
+
}), { splashInfo: j, handlePress: M } = r(T), N = {
|
|
15
15
|
...u({
|
|
16
16
|
shape: k,
|
|
17
17
|
size: A,
|
|
@@ -21,13 +21,13 @@ var v = ({ size: v, shape: y, color: b, width: x = "default", tooltip: S, select
|
|
|
21
21
|
"data-icon-button": !0,
|
|
22
22
|
"data-toggle-button": !0
|
|
23
23
|
};
|
|
24
|
-
return f(/* @__PURE__ */
|
|
24
|
+
return f(/* @__PURE__ */ h(_, {
|
|
25
25
|
onPress: M,
|
|
26
|
-
className: (
|
|
26
|
+
className: (t) => m(o, e, i(A), p(O), typeof E == "function" ? E(t) : E),
|
|
27
27
|
...D,
|
|
28
28
|
...N,
|
|
29
29
|
"data-button": !0,
|
|
30
|
-
children: ({ isSelected:
|
|
30
|
+
children: ({ isSelected: e, isDisabled: r, isFocusVisible: i, isFocused: o, isPressed: c, isHovered: u }) => {
|
|
31
31
|
let f = {
|
|
32
32
|
...N,
|
|
33
33
|
"data-hovered": u || void 0,
|
|
@@ -35,17 +35,17 @@ var v = ({ size: v, shape: y, color: b, width: x = "default", tooltip: S, select
|
|
|
35
35
|
"data-focused": o || void 0,
|
|
36
36
|
"data-focus-visible": i || void 0,
|
|
37
37
|
"data-pressed": c || void 0,
|
|
38
|
-
"data-selected":
|
|
38
|
+
"data-selected": e || void 0,
|
|
39
39
|
"data-visual-button": !0
|
|
40
40
|
}, p = w;
|
|
41
|
-
|
|
42
|
-
let
|
|
43
|
-
return /* @__PURE__ */
|
|
41
|
+
e && C && (p = C);
|
|
42
|
+
let _ = d[A];
|
|
43
|
+
return /* @__PURE__ */ g("span", {
|
|
44
44
|
className: m(a, s, l),
|
|
45
45
|
...f,
|
|
46
|
-
children: [j && /* @__PURE__ */
|
|
46
|
+
children: [j && /* @__PURE__ */ h(n, { ...j }), p && /* @__PURE__ */ h(t, {
|
|
47
47
|
icon: p,
|
|
48
|
-
size:
|
|
48
|
+
size: _
|
|
49
49
|
})]
|
|
50
50
|
});
|
|
51
51
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { r as e } from "../../../chunks/core3";
|
|
2
2
|
import { t } from "../../../chunks/BaseCalendar";
|
|
3
3
|
import n from "clsx";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
import { Calendar as i } from "react-aria-components";
|
|
6
6
|
//#region src/components/Calendar/Calendar/Calendar.tsx
|
|
7
|
-
var a = ({ weekdayStyle: a, className: o, ...s }) => /* @__PURE__ */ i
|
|
7
|
+
var a = ({ weekdayStyle: a, className: o, ...s }) => /* @__PURE__ */ r(i, {
|
|
8
8
|
className: (t) => n(e, typeof o == "function" ? o(t) : o),
|
|
9
9
|
...s,
|
|
10
10
|
"data-calendar": !0,
|
|
11
|
-
children: /* @__PURE__ */
|
|
11
|
+
children: /* @__PURE__ */ r(t, { weekdayStyle: a })
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { a as Calendar };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as e } from "../../../chunks/Icon";
|
|
2
2
|
import { t } from "../../../chunks/CalendarMenuItem";
|
|
3
3
|
import { n } from "../../../chunks/core3";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
import { ListBox as a, ListLayout as o, SelectionIndicator as s, Virtualizer as c } from "react-aria-components";
|
|
6
6
|
import { Check as l } from "lucide-react";
|
|
7
7
|
//#region src/components/Calendar/CalendarMonthMenu/CalendarMonthMenu.tsx
|
|
8
8
|
var u = ({ onSelection: u, months: d }) => {
|
|
9
9
|
let f = n();
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
-
layout:
|
|
12
|
-
children: /* @__PURE__ */
|
|
10
|
+
return /* @__PURE__ */ r(c, {
|
|
11
|
+
layout: o,
|
|
12
|
+
children: /* @__PURE__ */ r(a, {
|
|
13
13
|
"aria-label": "month selection",
|
|
14
14
|
autoFocus: !0,
|
|
15
15
|
"data-menu": !0,
|
|
@@ -17,17 +17,17 @@ var u = ({ onSelection: u, months: d }) => {
|
|
|
17
17
|
selectionMode: "single",
|
|
18
18
|
selectedKeys: [f.focusedDate.month],
|
|
19
19
|
children: (n) => {
|
|
20
|
-
let
|
|
20
|
+
let a = f.focusedDate.set({
|
|
21
21
|
month: n.id,
|
|
22
22
|
day: 1
|
|
23
|
-
}),
|
|
24
|
-
return /* @__PURE__ */
|
|
23
|
+
}), o = a.set({ day: a.calendar.getDaysInMonth(a) });
|
|
24
|
+
return /* @__PURE__ */ i(t, {
|
|
25
25
|
onPress: () => {
|
|
26
26
|
f.setFocusedDate(f.focusedDate.set({ month: n.id })), u();
|
|
27
27
|
},
|
|
28
|
-
isDisabled: (f.maxValue &&
|
|
28
|
+
isDisabled: (f.maxValue && a.compare(f.maxValue) > 0 || f.minValue && o.compare(f.minValue) < 0) ?? void 0,
|
|
29
29
|
textValue: n.formatted,
|
|
30
|
-
children: [/* @__PURE__ */ s
|
|
30
|
+
children: [/* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(e, {
|
|
31
31
|
icon: l,
|
|
32
32
|
size: 24,
|
|
33
33
|
"data-selected-icon": !0
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { t as e } from "../../../chunks/Icon";
|
|
2
2
|
import { t } from "../../../chunks/CalendarMenuItem";
|
|
3
3
|
import { n } from "../../../chunks/core3";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
import { ListBox as a, ListLayout as o, SelectionIndicator as s, Virtualizer as c } from "react-aria-components";
|
|
6
6
|
import { Check as l } from "lucide-react";
|
|
7
7
|
//#region src/components/Calendar/CalendarYearMenu/CalendarYearMenu.tsx
|
|
8
8
|
var u = ({ onSelection: u, years: d }) => {
|
|
9
9
|
let f = n();
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
-
layout:
|
|
12
|
-
children: /* @__PURE__ */
|
|
10
|
+
return /* @__PURE__ */ r(c, {
|
|
11
|
+
layout: o,
|
|
12
|
+
children: /* @__PURE__ */ r(a, {
|
|
13
13
|
"aria-label": "year selection",
|
|
14
14
|
autoFocus: !0,
|
|
15
15
|
"data-menu": !0,
|
|
16
16
|
items: d,
|
|
17
17
|
selectionMode: "single",
|
|
18
18
|
selectedKeys: [f.focusedDate.year],
|
|
19
|
-
children: (n) => /* @__PURE__ */
|
|
19
|
+
children: (n) => /* @__PURE__ */ i(t, {
|
|
20
20
|
onPress: () => {
|
|
21
21
|
f.setFocusedDate(f.focusedDate.set({ year: n.id })), u();
|
|
22
22
|
},
|
|
23
23
|
textValue: n.formatted,
|
|
24
|
-
children: [/* @__PURE__ */ s
|
|
24
|
+
children: [/* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(e, {
|
|
25
25
|
icon: l,
|
|
26
26
|
size: 24,
|
|
27
27
|
"data-selected-icon": !0
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { r as e } from "../../../chunks/core3";
|
|
2
2
|
import { t } from "../../../chunks/BaseCalendar";
|
|
3
3
|
import n from "clsx";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
import { RangeCalendar as i } from "react-aria-components";
|
|
6
6
|
//#region src/components/Calendar/RangeCalendar/RangeCalendar.tsx
|
|
7
|
-
var a = ({ weekdayStyle: a, className: o, ...s }) => /* @__PURE__ */ i
|
|
7
|
+
var a = ({ weekdayStyle: a, className: o, ...s }) => /* @__PURE__ */ r(i, {
|
|
8
8
|
className: (t) => n(e, typeof o == "function" ? o(t) : o),
|
|
9
9
|
...s,
|
|
10
10
|
"data-calendar": !0,
|
|
11
11
|
"data-range-calendar": !0,
|
|
12
|
-
children: /* @__PURE__ */
|
|
12
|
+
children: /* @__PURE__ */ r(t, {
|
|
13
13
|
weekdayStyle: a,
|
|
14
14
|
isRangeCalendar: !0
|
|
15
15
|
})
|