@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
package/dist/chunks/SideSheet
CHANGED
|
@@ -1,52 +1,65 @@
|
|
|
1
1
|
import { t as e } from "./base";
|
|
2
2
|
import { IconButton as t } from "../components/Button/IconButton/index.js";
|
|
3
|
-
import { n } from "
|
|
4
|
-
import r from "
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
3
|
+
import { DialogContext as n } from "../components/Dialog/core/index.js";
|
|
4
|
+
import { n as r } from "./SideSheetModal";
|
|
5
|
+
import i from "clsx";
|
|
6
|
+
import { useContext as a } from "react";
|
|
7
|
+
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
|
+
import { Dialog as l, Header as u, Heading as d } from "react-aria-components";
|
|
9
|
+
import { X as f } from "lucide-react";
|
|
10
|
+
import '../assets/SideSheet.css';var p = {
|
|
11
|
+
"side-sheet-dialog": "_side-sheet-dialog_1d7p4_10",
|
|
12
|
+
"side-sheet": "_side-sheet_1d7p4_10",
|
|
13
|
+
header: "_header_1d7p4_70",
|
|
14
|
+
close: "_close_1d7p4_80",
|
|
15
|
+
headline: "_headline_1d7p4_84",
|
|
16
|
+
main: "_main_1d7p4_88",
|
|
17
|
+
actions: "_actions_1d7p4_95"
|
|
18
|
+
}, m = ({ className: e, ...t }) => {
|
|
19
|
+
let { layout: o, alignment: c } = a(r);
|
|
20
|
+
return /* @__PURE__ */ s(n, {
|
|
21
|
+
value: !0,
|
|
22
|
+
children: /* @__PURE__ */ s(l, {
|
|
23
|
+
className: i(p["side-sheet-dialog"], e),
|
|
24
|
+
"data-alignment": c,
|
|
25
|
+
"data-layout": o,
|
|
26
|
+
...t
|
|
27
|
+
})
|
|
28
|
+
});
|
|
29
|
+
}, h = ({ headline: n, actions: l, className: h, children: g, ..._ }) => {
|
|
30
|
+
let { alignment: v } = a(r), y = Array.isArray(l) ? l.length > 0 : !!l;
|
|
31
|
+
return /* @__PURE__ */ s(m, {
|
|
32
|
+
className: i(p["side-sheet"], h),
|
|
19
33
|
..._,
|
|
20
|
-
"data-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"data-headline": !!p || void 0,
|
|
27
|
-
children: [p && /* @__PURE__ */ c(o, {
|
|
34
|
+
"data-actions": y || void 0,
|
|
35
|
+
children: (r) => /* @__PURE__ */ c(o, { children: [
|
|
36
|
+
/* @__PURE__ */ c(u, {
|
|
37
|
+
className: i(p.header),
|
|
38
|
+
"data-headline": !!n || void 0,
|
|
39
|
+
children: [n && /* @__PURE__ */ s(d, {
|
|
28
40
|
slot: "title",
|
|
29
|
-
className:
|
|
30
|
-
children:
|
|
31
|
-
}), /* @__PURE__ */
|
|
41
|
+
className: i(p.headline, e.titleLarge),
|
|
42
|
+
children: n
|
|
43
|
+
}), /* @__PURE__ */ s(t, {
|
|
32
44
|
slot: "close",
|
|
33
|
-
icon:
|
|
34
|
-
color: "standard"
|
|
45
|
+
icon: f,
|
|
46
|
+
color: "standard",
|
|
47
|
+
className: i(p.close)
|
|
35
48
|
})]
|
|
36
49
|
}),
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
className:
|
|
39
|
-
children: typeof g == "function" ? g(
|
|
50
|
+
/* @__PURE__ */ s("div", {
|
|
51
|
+
className: i(p.main),
|
|
52
|
+
children: typeof g == "function" ? g(r) : g
|
|
40
53
|
}),
|
|
41
|
-
|
|
42
|
-
className:
|
|
43
|
-
"data-alignment":
|
|
44
|
-
children: typeof
|
|
54
|
+
y && /* @__PURE__ */ s("div", {
|
|
55
|
+
className: i(p.actions),
|
|
56
|
+
"data-alignment": v,
|
|
57
|
+
children: typeof l == "function" ? l(r) : l
|
|
45
58
|
})
|
|
46
59
|
] })
|
|
47
60
|
});
|
|
48
61
|
};
|
|
49
62
|
//#endregion
|
|
50
|
-
export {
|
|
63
|
+
export { m as n, h as t };
|
|
51
64
|
|
|
52
65
|
//# sourceMappingURL=SideSheet.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SideSheet","names":[],"sources":["../../src/components/Sheets/SideSheet/sideSheet.module.css","../../src/components/Sheets/SideSheet/SideSheet.tsx"],"sourcesContent":["/* configurable tokens\n*\n* --md-side-sheet-background\n* --md-side-sheet-color\n* --md-side-sheet-headline-color\n*\n* configurable tokens end */\n\n@layer adgytec.comps {\n .side-sheet {\n --_md-side-sheet-background: var(\n --md-side-sheet-background,\n var(--md-sys-color-surface-container-low)\n );\n --_md-side-sheet-color: var(\n --md-side-sheet-color,\n var(--md-sys-color-on-surface)\n );\n --_md-side-sheet-headline-color: var(\n --md-side-sheet-headline-color,\n var(--md-sys-color-on-surface-variant)\n );\n --_md-side-sheet-padding-inline: var(--md-sys-layout-space-16);\n --_max-inline-size: calc(400 * var(--dp, 1px));\n\n inline-size: min(100svi, var(--_max-inline-size));\n block-size: 100svb;\n\n display: grid;\n grid-template-rows:
|
|
1
|
+
{"version":3,"file":"SideSheet","names":[],"sources":["../../src/components/Sheets/SideSheet/sideSheet.module.css","../../src/components/Sheets/SideSheet/SideSheetDialog.tsx","../../src/components/Sheets/SideSheet/SideSheet.tsx"],"sourcesContent":["/* configurable tokens\n*\n* --md-side-sheet-background\n* --md-side-sheet-color\n* --md-side-sheet-headline-color\n*\n* configurable tokens end */\n\n@layer adgytec.comps {\n .side-sheet-dialog {\n --_md-side-sheet-background: var(\n --md-side-sheet-background,\n var(--md-sys-color-surface-container-low)\n );\n --_md-side-sheet-color: var(\n --md-side-sheet-color,\n var(--md-sys-color-on-surface)\n );\n --_md-side-sheet-headline-color: var(\n --md-side-sheet-headline-color,\n var(--md-sys-color-on-surface-variant)\n );\n --_md-side-sheet-padding-inline: var(--md-sys-layout-space-16);\n --_max-inline-size: calc(400 * var(--dp, 1px));\n\n inline-size: min(100svi, var(--_max-inline-size));\n block-size: 100svb;\n\n display: grid;\n grid-template-rows: 1fr;\n\n background-color: var(--_md-side-sheet-background);\n color: var(--_md-side-sheet-color);\n\n box-shadow: var(--md-sys-elevation-shadow-1);\n border-radius: var(--md-sys-shape-corner-radius-large);\n\n outline: none;\n\n &[data-layout=\"detached\"] {\n block-size: calc(100svb - calc(2 * var(--_detached-margin)));\n inline-size: min(\n calc(100svi - calc(2 * var(--_detached-margin))),\n var(--_max-inline-size)\n );\n }\n\n &[data-layout=\"standard\"] {\n &[data-alignment=\"start\"] {\n border-start-start-radius: 0;\n border-end-start-radius: 0;\n }\n\n &[data-alignment=\"end\"] {\n border-start-end-radius: 0;\n border-end-end-radius: 0;\n }\n }\n }\n\n .side-sheet {\n grid-template-rows: auto 1fr;\n padding-block: var(--md-sys-layout-space-16);\n\n &[data-actions] {\n grid-template-rows: auto 1fr auto;\n }\n }\n\n .header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--md-sys-layout-space-12);\n\n padding-inline: var(--_md-side-sheet-padding-inline);\n padding-block-end: var(--md-sys-layout-space-12);\n }\n\n .close {\n margin-inline-start: auto;\n }\n\n .headline {\n color: var(--_md-side-sheet-headline-color);\n }\n\n .main {\n padding-inline: var(--_md-side-sheet-padding-inline);\n overflow-y: auto;\n\n padding-block: var(--md-sys-layout-space-12);\n }\n\n .actions {\n --_divider-thickness: calc(1 * var(--dp, 1px));\n --_divider-color: rgb(\n from var(--md-sys-color-outline) r g b /\n var(--md-sys-state-divider)\n );\n\n padding-inline: var(--_md-side-sheet-padding-inline);\n padding-block-start: var(--md-sys-layout-space-12);\n display: flex;\n gap: var(--md-sys-layout-space-12);\n\n border-block-start: var(--_divider-thickness) solid\n var(--_divider-color);\n\n /* biome-ignore lint: different elements */\n &[data-alignment=\"start\"] {\n justify-content: end;\n }\n\n /* biome-ignore lint: different elements */\n &[data-alignment=\"end\"] {\n justify-content: start;\n }\n }\n}\n","import clsx from \"clsx\";\nimport { useContext } from \"react\";\nimport { Dialog } from \"react-aria-components\";\nimport { DialogContext } from \"@/components/Dialog\";\nimport { SideSheetContext } from \"../SideSheetModal\";\nimport styles from \"./sideSheet.module.css\";\nimport type { SideSheetDialogProps } from \"./types\";\n\nexport const SideSheetDialog: React.FC<SideSheetDialogProps> = ({\n className,\n ...props\n}) => {\n const { layout, alignment } = useContext(SideSheetContext);\n\n return (\n <DialogContext value={true}>\n <Dialog\n className={clsx(styles[\"side-sheet-dialog\"], className)}\n data-alignment={alignment}\n data-layout={layout}\n {...props}\n />\n </DialogContext>\n );\n};\n","import clsx from \"clsx\";\nimport { X } from \"lucide-react\";\nimport { useContext } from \"react\";\nimport { Header, Heading } from \"react-aria-components\";\nimport { IconButton } from \"@/components/Button\";\nimport { typography } from \"@/utils\";\nimport { SideSheetContext } from \"../SideSheetModal\";\nimport { SideSheetDialog } from \"./SideSheetDialog\";\nimport styles from \"./sideSheet.module.css\";\nimport type { SideSheetProps } from \"./types\";\n\nexport const SideSheet: React.FC<SideSheetProps> = ({\n headline,\n actions,\n className,\n children,\n ...props\n}) => {\n const { alignment } = useContext(SideSheetContext);\n const hasActions = Array.isArray(actions) ? actions.length > 0 : !!actions;\n\n return (\n <SideSheetDialog\n className={clsx(styles[\"side-sheet\"], className)}\n {...props}\n data-actions={hasActions || undefined}\n >\n {(renderProps) => (\n <>\n <Header\n className={clsx(styles[\"header\"])}\n data-headline={!!headline || undefined}\n >\n {headline && (\n <Heading\n slot=\"title\"\n className={clsx(\n styles[\"headline\"],\n typography.titleLarge\n )}\n >\n {headline}\n </Heading>\n )}\n\n <IconButton\n slot=\"close\"\n icon={X}\n color=\"standard\"\n className={clsx(styles[\"close\"])}\n />\n </Header>\n\n <div className={clsx(styles[\"main\"])}>\n {typeof children === \"function\"\n ? children(renderProps)\n : children}\n </div>\n\n {hasActions && (\n <div\n className={clsx(styles[\"actions\"])}\n data-alignment={alignment}\n >\n {typeof actions === \"function\"\n ? actions(renderProps)\n : actions}\n </div>\n )}\n </>\n )}\n </SideSheetDialog>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;GCQa,KAAmD,EAC5D,cACA,GAAG,QACD;CACF,IAAM,EAAE,WAAQ,iBAAc,EAAW,CAAgB;CAEzD,OACI,kBAAC,GAAD;EAAe,OAAO;YAClB,kBAAC,GAAD;GACI,WAAW,EAAK,EAAO,sBAAsB,CAAS;GACtD,kBAAgB;GAChB,eAAa;GACb,GAAI;EACP,CAAA;CACU,CAAA;AAEvB,GCba,KAAuC,EAChD,aACA,YACA,cACA,aACA,GAAG,QACD;CACF,IAAM,EAAE,iBAAc,EAAW,CAAgB,GAC3C,IAAa,MAAM,QAAQ,CAAO,IAAI,EAAQ,SAAS,IAAI,CAAC,CAAC;CAEnE,OACI,kBAAC,GAAD;EACI,WAAW,EAAK,EAAO,eAAe,CAAS;EAC/C,GAAI;EACJ,gBAAc,KAAc,KAAA;aAE1B,MACE,kBAAA,GAAA,EAAA,UAAA;GACI,kBAAC,GAAD;IACI,WAAW,EAAK,EAAO,MAAS;IAChC,iBAAe,CAAC,CAAC,KAAY,KAAA;cAFjC,CAIK,KACG,kBAAC,GAAD;KACI,MAAK;KACL,WAAW,EACP,EAAO,UACP,EAAW,UACf;eAEC;IACI,CAAA,GAGb,kBAAC,GAAD;KACI,MAAK;KACL,MAAM;KACN,OAAM;KACN,WAAW,EAAK,EAAO,KAAQ;IAClC,CAAA,CACG;;GAER,kBAAC,OAAD;IAAK,WAAW,EAAK,EAAO,IAAO;cAC9B,OAAO,KAAa,aACf,EAAS,CAAW,IACpB;GACL,CAAA;GAEJ,KACG,kBAAC,OAAD;IACI,WAAW,EAAK,EAAO,OAAU;IACjC,kBAAgB;cAEf,OAAO,KAAY,aACd,EAAQ,CAAW,IACnB;GACL,CAAA;EAEX,EAAA,CAAA;CAEO,CAAA;AAEzB"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import e from "clsx";
|
|
2
|
-
import {
|
|
2
|
+
import { createContext as t } from "react";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
import {
|
|
4
|
+
import { Modal as r } from "react-aria-components";
|
|
5
5
|
import '../assets/SideSheetModal.css';//#region src/components/Sheets/SideSheetModal/context.ts
|
|
6
|
-
var i =
|
|
6
|
+
var i = t({
|
|
7
7
|
layout: "standard",
|
|
8
8
|
alignment: "end"
|
|
9
|
-
}), a = { modal: "_modal_1gjq1_2" }, o = ({ className:
|
|
9
|
+
}), a = { modal: "_modal_1gjq1_2" }, o = ({ className: t, alignment: o = "end", layout: s = "standard", ...c }) => /* @__PURE__ */ n(i, {
|
|
10
10
|
value: {
|
|
11
11
|
alignment: o,
|
|
12
12
|
layout: s
|
|
13
13
|
},
|
|
14
|
-
children: /* @__PURE__ */ n(
|
|
14
|
+
children: /* @__PURE__ */ n(r, {
|
|
15
15
|
"data-alignment": o,
|
|
16
16
|
"data-layout": s,
|
|
17
|
-
className: (
|
|
17
|
+
className: (n) => e(a.modal, typeof t == "function" ? t(n) : t),
|
|
18
18
|
...c
|
|
19
19
|
})
|
|
20
20
|
});
|
package/dist/chunks/Slider
CHANGED
|
@@ -4,8 +4,8 @@ import { a as n, c as r, i, o as a, s as o } from "./core7";
|
|
|
4
4
|
import { t as s } from "./SliderStops";
|
|
5
5
|
import { t as c } from "./SliderThumb";
|
|
6
6
|
import l from "clsx";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
8
|
+
import { Slider as p, SliderTrack as m } from "react-aria-components";
|
|
9
9
|
import '../assets/Slider.css';var h = {
|
|
10
10
|
"visual-track": "_visual-track_17jx5_2",
|
|
11
11
|
"active-track": "_active-track_17jx5_22",
|
|
@@ -13,48 +13,48 @@ import '../assets/Slider.css';var h = {
|
|
|
13
13
|
icon: "_icon_17jx5_52"
|
|
14
14
|
}, g = ({ label: g, thumbLabel: _, size: v = "small", step: y = 1, minValue: b = 0, maxValue: x = 100, showInBetweenSteps: S, insetIcon: C, minInsetIcon: w, maxStops: T, outputRenderer: E, className: D, ...O }) => {
|
|
15
15
|
let k = v !== "extra-small" && v !== "small", A = v === "extra-large" ? 32 : 24;
|
|
16
|
-
return /* @__PURE__ */ p
|
|
16
|
+
return /* @__PURE__ */ d(p, {
|
|
17
17
|
minValue: b,
|
|
18
18
|
maxValue: x,
|
|
19
19
|
step: y,
|
|
20
20
|
className: (e) => l(n, r, typeof D == "function" ? D(e) : D),
|
|
21
21
|
...O,
|
|
22
|
-
children: ({ orientation: n, state: r, isDisabled:
|
|
22
|
+
children: ({ orientation: n, state: r, isDisabled: p }) => {
|
|
23
23
|
let D = r.getThumbPercent(0), O = C;
|
|
24
|
-
return D === 0 && w && (O = w), /* @__PURE__ */
|
|
24
|
+
return D === 0 && w && (O = w), /* @__PURE__ */ f(u, { children: [g && /* @__PURE__ */ d(t, { children: g }), /* @__PURE__ */ d("div", {
|
|
25
25
|
className: l(a),
|
|
26
26
|
"data-orientation": n,
|
|
27
|
-
children: /* @__PURE__ */ m
|
|
27
|
+
children: /* @__PURE__ */ f(m, {
|
|
28
28
|
className: l(o, i(v)),
|
|
29
29
|
children: [
|
|
30
|
-
/* @__PURE__ */
|
|
30
|
+
/* @__PURE__ */ f("div", {
|
|
31
31
|
className: l(h["visual-track"]),
|
|
32
32
|
"data-orientation": n,
|
|
33
|
-
children: [/* @__PURE__ */
|
|
33
|
+
children: [/* @__PURE__ */ d("div", {
|
|
34
34
|
className: l(h["active-track"]),
|
|
35
35
|
"data-orientation": n,
|
|
36
36
|
style: { flexGrow: r.getThumbPercent(0) }
|
|
37
|
-
}), /* @__PURE__ */
|
|
37
|
+
}), /* @__PURE__ */ d("div", {
|
|
38
38
|
className: l(h["inactive-track"]),
|
|
39
39
|
style: { flexGrow: 1 - r.getThumbPercent(0) },
|
|
40
40
|
"data-orientation": n
|
|
41
41
|
})]
|
|
42
42
|
}),
|
|
43
|
-
k && O && /* @__PURE__ */
|
|
43
|
+
k && O && /* @__PURE__ */ d(e, {
|
|
44
44
|
icon: O,
|
|
45
45
|
size: A,
|
|
46
46
|
className: l(h.icon),
|
|
47
47
|
"data-minimum-value": D === 0 || void 0,
|
|
48
|
-
"data-disabled":
|
|
48
|
+
"data-disabled": p || void 0,
|
|
49
49
|
"data-orientation": n
|
|
50
50
|
}),
|
|
51
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ d(c, {
|
|
52
52
|
size: v,
|
|
53
53
|
orientation: n,
|
|
54
54
|
"aria-label": _,
|
|
55
55
|
outputRenderer: E
|
|
56
56
|
}),
|
|
57
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ d(s, {
|
|
58
58
|
minValue: b,
|
|
59
59
|
maxValue: x,
|
|
60
60
|
step: y,
|
package/dist/chunks/SliderOutput
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as e } from "./base";
|
|
2
2
|
import t from "clsx";
|
|
3
|
-
import {
|
|
4
|
-
import { jsx as
|
|
5
|
-
import {
|
|
3
|
+
import { createContext as n, useContext as r } from "react";
|
|
4
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
5
|
+
import { SliderOutput as a } from "react-aria-components";
|
|
6
6
|
import '../assets/SliderOutput.css';//#region src/components/Input/Slider/SliderThumb/context.ts
|
|
7
|
-
var o =
|
|
8
|
-
let { isDragging: l, isHovered: u, isFocused: d, isFocusVisible: f } =
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
-
className: (
|
|
7
|
+
var o = n({}), s = { output: "_output_licmo_2" }, c = ({ className: n, ...c }) => {
|
|
8
|
+
let { isDragging: l, isHovered: u, isFocused: d, isFocusVisible: f } = r(o);
|
|
9
|
+
return /* @__PURE__ */ i(a, {
|
|
10
|
+
className: (r) => t(s.output, e.labelLarge, typeof n == "function" ? n(r) : n),
|
|
11
11
|
...c,
|
|
12
12
|
"data-focus-visible": f || void 0,
|
|
13
13
|
"data-dragging": l || void 0,
|
package/dist/chunks/SliderStops
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "clsx";
|
|
2
|
-
import {
|
|
3
|
-
import { jsx as
|
|
4
|
-
import {
|
|
2
|
+
import { useContext as t, useMemo as n } from "react";
|
|
3
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
4
|
+
import { SliderStateContext as i } from "react-aria-components";
|
|
5
5
|
import '../assets/SliderStops.css';//#region src/components/Input/Slider/SliderStops/core.ts
|
|
6
6
|
var a = 20, o = (e) => {
|
|
7
7
|
let t = 0, n = e.toString(), r = n.toLowerCase().indexOf("e-");
|
|
@@ -65,7 +65,7 @@ var a = 20, o = (e) => {
|
|
|
65
65
|
stops: "_stops_2wvkt_2",
|
|
66
66
|
stop: "_stop_2wvkt_2"
|
|
67
67
|
}, _ = ({ orientation: a, slider: o = "standard", minValue: s, maxValue: c, step: u, showInBetweenSteps: d, maxStops: f }) => {
|
|
68
|
-
let _ =
|
|
68
|
+
let _ = n(() => {
|
|
69
69
|
let e = l({
|
|
70
70
|
minValue: s,
|
|
71
71
|
maxValue: c,
|
|
@@ -81,14 +81,14 @@ var a = 20, o = (e) => {
|
|
|
81
81
|
d,
|
|
82
82
|
a,
|
|
83
83
|
f
|
|
84
|
-
]), v =
|
|
84
|
+
]), v = t(i);
|
|
85
85
|
if (!v) return null;
|
|
86
86
|
let y = (s + c) / 2, b = v.getThumbValue(0), x = v.getThumbValue(1) ?? NaN, S = _.length === 2;
|
|
87
|
-
return /* @__PURE__ */
|
|
87
|
+
return /* @__PURE__ */ r("div", {
|
|
88
88
|
className: e(g.stops),
|
|
89
89
|
"data-orientation": a,
|
|
90
90
|
"data-slider-stops": !0,
|
|
91
|
-
children: _.map(({ stopValue: t, percent:
|
|
91
|
+
children: _.map(({ stopValue: t, percent: n }) => {
|
|
92
92
|
let i = p({
|
|
93
93
|
slider: o,
|
|
94
94
|
midValue: y,
|
|
@@ -104,8 +104,8 @@ var a = 20, o = (e) => {
|
|
|
104
104
|
midValue: y,
|
|
105
105
|
stopValue: t
|
|
106
106
|
});
|
|
107
|
-
return /* @__PURE__ */
|
|
108
|
-
style: a === "horizontal" ? { insetInlineStart: `${
|
|
107
|
+
return /* @__PURE__ */ r("div", {
|
|
108
|
+
style: a === "horizontal" ? { insetInlineStart: `${n * 100}%` } : { insetBlockEnd: `${n * 100}%` },
|
|
109
109
|
"data-orientation": a,
|
|
110
110
|
className: e(g.stop),
|
|
111
111
|
"data-disabled": v.isDisabled || void 0,
|
package/dist/chunks/SliderThumb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e, t } from "./SliderOutput";
|
|
2
2
|
import n from "clsx";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
4
|
+
import { SliderThumb as i } from "react-aria-components";
|
|
5
5
|
import '../assets/SliderThumb.css';var a = {
|
|
6
6
|
thumb: "_thumb_1e0w6_2",
|
|
7
7
|
"extra-small": "_extra-small_1e0w6_7",
|
|
@@ -9,18 +9,18 @@ import '../assets/SliderThumb.css';var a = {
|
|
|
9
9
|
medium: "_medium_1e0w6_17",
|
|
10
10
|
large: "_large_1e0w6_22",
|
|
11
11
|
"extra-large": "_extra-large_1e0w6_27"
|
|
12
|
-
}, o = ({ index: o = 0, orientation: s, className: c, size: l, outputRenderer: u, ...d }) => /* @__PURE__ */ i
|
|
12
|
+
}, o = ({ index: o = 0, orientation: s, className: c, size: l, outputRenderer: u, ...d }) => /* @__PURE__ */ r(i, {
|
|
13
13
|
index: o,
|
|
14
14
|
className: (e) => n(a.thumb, a[l], typeof c == "function" ? c(e) : c),
|
|
15
15
|
"data-orientation": s,
|
|
16
16
|
...d,
|
|
17
17
|
"data-slider-thumb": !0,
|
|
18
|
-
children: (n) => /* @__PURE__ */
|
|
18
|
+
children: (n) => /* @__PURE__ */ r(e, {
|
|
19
19
|
value: n,
|
|
20
20
|
children: u ? typeof u == "function" ? u({
|
|
21
21
|
...n,
|
|
22
22
|
thumbIndex: o
|
|
23
|
-
}) : u : /* @__PURE__ */
|
|
23
|
+
}) : u : /* @__PURE__ */ r(t, { children: ({ state: e }) => e.getThumbValueLabel(o) })
|
|
24
24
|
})
|
|
25
25
|
});
|
|
26
26
|
//#endregion
|
package/dist/chunks/Snackbar
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as e } from "./base";
|
|
2
2
|
import { IconButton as t } from "../components/Button/IconButton/index.js";
|
|
3
3
|
import { clsx as n } from "clsx";
|
|
4
|
-
import {
|
|
5
|
-
import { jsx as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { createContext as r, useContext as i, useMemo as a } from "react";
|
|
5
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
+
import { Text as c, UNSTABLE_Toast as l, UNSTABLE_ToastContent as u, UNSTABLE_ToastQueue as d, UNSTABLE_ToastRegion as f } from "react-aria-components";
|
|
7
|
+
import { X as p } from "lucide-react";
|
|
8
8
|
import { flushSync as m } from "react-dom";
|
|
9
9
|
import '../assets/Snackbar.css';//#region src/components/Snackbar/context.ts
|
|
10
|
-
var h =
|
|
10
|
+
var h = r(null);
|
|
11
11
|
function g() {
|
|
12
|
-
let e =
|
|
12
|
+
let e = i(h);
|
|
13
13
|
if (!e) throw Error("useSnackbarQueue must be used inside SnackbarRegion");
|
|
14
14
|
return e;
|
|
15
15
|
}
|
|
@@ -18,36 +18,36 @@ var _ = {
|
|
|
18
18
|
snackbar: "_snackbar_1xcaw_10",
|
|
19
19
|
"snackbar-content": "_snackbar-content_1xcaw_66",
|
|
20
20
|
text: "_text_1xcaw_78"
|
|
21
|
-
}, v = ({ children:
|
|
22
|
-
let g =
|
|
23
|
-
maxVisibleToasts:
|
|
21
|
+
}, v = ({ children: r, maxVisibleSnackbars: i = 1 }) => {
|
|
22
|
+
let g = a(() => new d({
|
|
23
|
+
maxVisibleToasts: i,
|
|
24
24
|
wrapUpdate(e) {
|
|
25
25
|
"startViewTransition" in document ? document.startViewTransition(() => {
|
|
26
26
|
m(e);
|
|
27
27
|
}) : e();
|
|
28
28
|
}
|
|
29
|
-
}), [
|
|
30
|
-
return /* @__PURE__ */
|
|
29
|
+
}), [i]);
|
|
30
|
+
return /* @__PURE__ */ s(h, {
|
|
31
31
|
value: g,
|
|
32
|
-
children: [
|
|
32
|
+
children: [r, /* @__PURE__ */ o(f, {
|
|
33
33
|
queue: g,
|
|
34
34
|
className: n(_["snackbar-region"]),
|
|
35
|
-
children: ({ toast:
|
|
36
|
-
toast:
|
|
35
|
+
children: ({ toast: r }) => /* @__PURE__ */ s(l, {
|
|
36
|
+
toast: r,
|
|
37
37
|
className: n(_.snackbar),
|
|
38
|
-
style: { viewTransitionName:
|
|
39
|
-
"data-close": !
|
|
40
|
-
"data-action":
|
|
41
|
-
children: [/* @__PURE__ */
|
|
38
|
+
style: { viewTransitionName: r.key },
|
|
39
|
+
"data-close": !r.content.hideCloseAction || void 0,
|
|
40
|
+
"data-action": r.content.hideCloseAction && !!r.content.action || void 0,
|
|
41
|
+
children: [/* @__PURE__ */ s(u, {
|
|
42
42
|
className: _["snackbar-content"],
|
|
43
|
-
children: [/* @__PURE__ */ c
|
|
43
|
+
children: [/* @__PURE__ */ o(c, {
|
|
44
44
|
slot: "description",
|
|
45
45
|
className: n(_.text, e.bodyMedium),
|
|
46
|
-
children:
|
|
47
|
-
}),
|
|
48
|
-
}), !
|
|
46
|
+
children: r.content.supportingText
|
|
47
|
+
}), r.content.action]
|
|
48
|
+
}), !r.content.hideCloseAction && /* @__PURE__ */ o(t, {
|
|
49
49
|
slot: "close",
|
|
50
|
-
icon:
|
|
50
|
+
icon: p,
|
|
51
51
|
color: "standard",
|
|
52
52
|
"data-close-button": !0
|
|
53
53
|
})]
|
package/dist/chunks/SplitButton
CHANGED
|
@@ -1,31 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { useMemo as o } from "react";
|
|
1
|
+
import { a as e } from "./core2";
|
|
2
|
+
import { SplitButtonContext as t } from "../components/Button/SplitButton/SplitButtonContext/index.js";
|
|
3
|
+
import { clsx as n } from "clsx";
|
|
4
|
+
import { useMemo as r } from "react";
|
|
5
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
6
|
+
import { Toolbar as a } from "react-aria-components";
|
|
8
7
|
import '../assets/SplitButton.css';//#region src/components/Button/SplitButton/SplitButton/splitButton.module.css
|
|
9
|
-
var
|
|
10
|
-
value:
|
|
11
|
-
isPending:
|
|
12
|
-
isDisabled:
|
|
13
|
-
color:
|
|
14
|
-
size:
|
|
8
|
+
var o = { "split-button": "_split-button_1mye6_2" }, s = ({ color: s = "filled", size: c = "small", isPending: l, isDisabled: u, children: d, className: f, ...p }) => /* @__PURE__ */ i(t, {
|
|
9
|
+
value: r(() => ({
|
|
10
|
+
isPending: l,
|
|
11
|
+
isDisabled: u,
|
|
12
|
+
color: s,
|
|
13
|
+
size: c
|
|
15
14
|
}), [
|
|
15
|
+
l,
|
|
16
16
|
u,
|
|
17
|
-
|
|
18
|
-
c
|
|
19
|
-
l
|
|
17
|
+
s,
|
|
18
|
+
c
|
|
20
19
|
]),
|
|
21
|
-
children: /* @__PURE__ */ a
|
|
22
|
-
className:
|
|
23
|
-
...
|
|
20
|
+
children: /* @__PURE__ */ i(a, {
|
|
21
|
+
className: n(o["split-button"], e(c), f),
|
|
22
|
+
...p,
|
|
24
23
|
"data-split-button": !0,
|
|
25
|
-
children:
|
|
24
|
+
children: d
|
|
26
25
|
})
|
|
27
26
|
});
|
|
28
27
|
//#endregion
|
|
29
|
-
export {
|
|
28
|
+
export { s as t };
|
|
30
29
|
|
|
31
30
|
//# sourceMappingURL=SplitButton.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SplitButton","names":[],"sources":["../../src/components/Button/SplitButton/SplitButton/splitButton.module.css","../../src/components/Button/SplitButton/SplitButton/SplitButton.tsx"],"sourcesContent":["@layer adgytec.overrides {\n .split-button [data-visual-button] {\n --_md-button-shape-motion: var(--md-sys-motion-standard-fast-spatial);\n --_md-button-shape-motion-duration: var(\n --md-sys-motion-standard-fast-spatial-duration\n );\n }\n}\n\n@layer adgytec.comps {\n .split-button {\n display: inline-flex;\n gap: calc(2 * var(--dp, 1px));\n }\n}\n","import { clsx } from \"clsx\";\nimport { useMemo } from \"react\";\nimport { Toolbar } from \"react-aria-components\";\nimport {
|
|
1
|
+
{"version":3,"file":"SplitButton","names":[],"sources":["../../src/components/Button/SplitButton/SplitButton/splitButton.module.css","../../src/components/Button/SplitButton/SplitButton/SplitButton.tsx"],"sourcesContent":["@layer adgytec.overrides {\n .split-button [data-visual-button] {\n --_md-button-shape-motion: var(--md-sys-motion-standard-fast-spatial);\n --_md-button-shape-motion-duration: var(\n --md-sys-motion-standard-fast-spatial-duration\n );\n }\n}\n\n@layer adgytec.comps {\n .split-button {\n display: inline-flex;\n gap: calc(2 * var(--dp, 1px));\n }\n}\n","import { clsx } from \"clsx\";\nimport { useMemo } from \"react\";\nimport { Toolbar } from \"react-aria-components\";\nimport { splitButtonSizeConfig } from \"../core\";\nimport { SplitButtonContext } from \"../SplitButtonContext\";\nimport styles from \"./splitButton.module.css\";\nimport type { SplitButtonProps } from \"./types\";\n\nexport const SplitButton: React.FC<SplitButtonProps> = ({\n color = \"filled\",\n size = \"small\",\n\n isPending,\n isDisabled,\n\n children,\n className,\n\n ...props\n}) => {\n const contextValue = useMemo(\n () => ({\n isPending,\n isDisabled,\n color,\n size,\n }),\n [isPending, isDisabled, color, size]\n );\n\n return (\n <SplitButtonContext value={contextValue}>\n <Toolbar\n className={clsx(\n styles[\"split-button\"],\n splitButtonSizeConfig(size),\n className\n )}\n {...props}\n data-split-button\n >\n {children}\n </Toolbar>\n </SplitButtonContext>\n );\n};\n"],"mappings":";;;;;;;qDCQa,KAA2C,EACpD,WAAQ,UACR,UAAO,SAEP,cACA,eAEA,aACA,cAEA,GAAG,QAaC,kBAAC,GAAD;CAAoB,OAXH,SACV;EACH;EACA;EACA;EACA;CACJ,IACA;EAAC;EAAW;EAAY;EAAO;CAAI,CAIR;WACvB,kBAAC,GAAD;EACI,WAAW,EACP,EAAO,iBACP,EAAsB,CAAI,GAC1B,CACJ;EACA,GAAI;EACJ,qBAAA;EAEC;CACI,CAAA;AACO,CAAA"}
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
2
|
-
import {
|
|
3
|
-
import { t as r } from "./
|
|
4
|
-
import { d as i, f as a, l as o, t as s } from "./core";
|
|
5
|
-
import { i as
|
|
6
|
-
import { useSplitButtonContext as
|
|
7
|
-
import { clsx as
|
|
8
|
-
import { Button as p } from "react-aria-components";
|
|
1
|
+
import { t as e } from "./tapTarget";
|
|
2
|
+
import { t } from "./Icon";
|
|
3
|
+
import { n, t as r } from "./useSplash";
|
|
4
|
+
import { d as i, f as a, l as o, t as s, u as c } from "./core";
|
|
5
|
+
import { i as l, n as u, r as d } from "./core2";
|
|
6
|
+
import { useSplitButtonContext as f } from "../components/Button/SplitButton/SplitButtonContext/index.js";
|
|
7
|
+
import { clsx as p } from "clsx";
|
|
9
8
|
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
9
|
+
import { Button as g } from "react-aria-components";
|
|
10
|
+
import { ChevronDown as _ } from "lucide-react";
|
|
11
|
+
import '../assets/SplitButtonTrigger.css';var v = { trigger: "_trigger_5plck_2" }, y = ({ tooltip: y, onPress: b, isDisabled: x, isPending: S, className: C, ...w }) => {
|
|
12
|
+
let T = f(), { splashInfo: E, handlePress: D } = r(b), O = S || T.isPending;
|
|
13
|
+
return s(/* @__PURE__ */ m(g, {
|
|
14
|
+
onPress: D,
|
|
15
|
+
isDisabled: x || T.isDisabled,
|
|
16
|
+
isPending: O,
|
|
17
|
+
className: (t) => p(a, e, u, c(T.color), typeof C == "function" ? C(t) : C),
|
|
18
|
+
...w,
|
|
19
19
|
"data-button": !0,
|
|
20
20
|
"data-split-button-trigger": !0,
|
|
21
|
-
children: ({ isDisabled:
|
|
22
|
-
let
|
|
23
|
-
"data-hovered":
|
|
24
|
-
"data-disabled":
|
|
21
|
+
children: ({ isDisabled: e, isFocusVisible: r, isFocused: a, isPressed: s, isHovered: c }) => {
|
|
22
|
+
let u = {
|
|
23
|
+
"data-hovered": c || void 0,
|
|
24
|
+
"data-disabled": e || void 0,
|
|
25
25
|
"data-focused": a || void 0,
|
|
26
26
|
"data-focus-visible": r || void 0,
|
|
27
27
|
"data-pressed": s || void 0,
|
|
28
28
|
"data-visual-button": !0
|
|
29
29
|
};
|
|
30
30
|
return /* @__PURE__ */ h("span", {
|
|
31
|
-
className:
|
|
32
|
-
...
|
|
33
|
-
children: [
|
|
34
|
-
icon:
|
|
35
|
-
size:
|
|
31
|
+
className: p(i, o, v.trigger, l),
|
|
32
|
+
...u,
|
|
33
|
+
children: [E && /* @__PURE__ */ m(n, { ...E }), /* @__PURE__ */ m(t, {
|
|
34
|
+
icon: _,
|
|
35
|
+
size: d[T.size]
|
|
36
36
|
})]
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
-
}),
|
|
39
|
+
}), y);
|
|
40
40
|
};
|
|
41
41
|
//#endregion
|
|
42
|
-
export {
|
|
42
|
+
export { y as t };
|
|
43
43
|
|
|
44
44
|
//# sourceMappingURL=SplitButtonTrigger.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SplitButtonTrigger","names":[],"sources":["../../src/components/Button/SplitButton/SplitButtonTrigger/splitButtonTrigger.module.css","../../src/components/Button/SplitButton/SplitButtonTrigger/SplitButtonTrigger.tsx"],"sourcesContent":["@layer adgytec.comps {\n .trigger {\n --rotate: 0;\n\n &[data-pressed] {\n --rotate: 180deg;\n }\n\n > svg {\n rotate: var(--rotate);\n transition: rotate var(--md-sys-motion-standard-fast-spatial)\n var(--md-sys-motion-standard-fast-spatial-duration);\n\n @media (prefers-reduced-motion) {\n transition: none;\n }\n }\n }\n}\n","import { clsx } from \"clsx\";\nimport { ChevronDown } from \"lucide-react\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonReset,\n buttonColorBase,\n withTooltip,\n} from \"../../core\";\nimport {\n SplitButtonTriggerBase,\n SplitButtonTriggerIconSize,\n SplitButtonVariantBase,\n} from \"../core\";\nimport { useSplitButtonContext } from \"../SplitButtonContext\";\nimport styles from \"./splitButtonTrigger.module.css\";\nimport type { SplitButtonTriggerProps } from \"./types\";\n\nexport const SplitButtonTrigger: React.FC<SplitButtonTriggerProps> = ({\n tooltip,\n onPress,\n isDisabled,\n isPending,\n className,\n ...props\n}) => {\n const splitButtonState = useSplitButtonContext();\n\n const { splashInfo, handlePress } = useSplash(onPress);\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 className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n data-button\n data-split-button-trigger\n >\n {({\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\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 return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n styles[\"trigger\"],\n SplitButtonVariantBase
|
|
1
|
+
{"version":3,"file":"SplitButtonTrigger","names":[],"sources":["../../src/components/Button/SplitButton/SplitButtonTrigger/splitButtonTrigger.module.css","../../src/components/Button/SplitButton/SplitButtonTrigger/SplitButtonTrigger.tsx"],"sourcesContent":["@layer adgytec.comps {\n .trigger {\n --rotate: 0;\n\n &[data-pressed] {\n --rotate: 180deg;\n }\n\n > svg {\n rotate: var(--rotate);\n transition: rotate var(--md-sys-motion-standard-fast-spatial)\n var(--md-sys-motion-standard-fast-spatial-duration);\n\n @media (prefers-reduced-motion) {\n transition: none;\n }\n }\n }\n}\n","import { clsx } from \"clsx\";\nimport { ChevronDown } from \"lucide-react\";\nimport { Button as AriaButton } from \"react-aria-components\";\nimport { Icon } from \"@/components/Icon\";\nimport { Splash } from \"@/components/Splash/Splash\";\nimport { useSplash } from \"@/components/Splash/useSplash\";\nimport { TapTarget } from \"@/utils/tapTarget\";\nimport {\n ButtonCore,\n ButtonReset,\n buttonColorBase,\n buttonColorConfig,\n withTooltip,\n} from \"../../core\";\nimport {\n SplitButtonTriggerBase,\n SplitButtonTriggerIconSize,\n SplitButtonVariantBase,\n} from \"../core\";\nimport { useSplitButtonContext } from \"../SplitButtonContext\";\nimport styles from \"./splitButtonTrigger.module.css\";\nimport type { SplitButtonTriggerProps } from \"./types\";\n\nexport const SplitButtonTrigger: React.FC<SplitButtonTriggerProps> = ({\n tooltip,\n onPress,\n isDisabled,\n isPending,\n className,\n ...props\n}) => {\n const splitButtonState = useSplitButtonContext();\n\n const { splashInfo, handlePress } = useSplash(onPress);\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 className={(renderProps) =>\n clsx(\n ButtonReset,\n TapTarget,\n SplitButtonTriggerBase,\n buttonColorConfig(splitButtonState.color),\n typeof className === \"function\"\n ? className(renderProps)\n : className\n )\n }\n {...props}\n data-button\n data-split-button-trigger\n >\n {({\n isDisabled,\n isFocusVisible,\n isFocused,\n isPressed,\n isHovered,\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 return (\n <span\n className={clsx(\n ButtonCore,\n buttonColorBase,\n styles[\"trigger\"],\n SplitButtonVariantBase\n )}\n {...dataAttrs}\n >\n {splashInfo && <Splash {...splashInfo} />}\n <Icon\n icon={ChevronDown}\n size={\n SplitButtonTriggerIconSize[\n splitButtonState.size\n ]\n }\n />\n </span>\n );\n }}\n </AriaButton>,\n tooltip\n );\n};\n"],"mappings":";;;;;;;;;;yCCuBa,KAAyD,EAClE,YACA,YACA,eACA,cACA,cACA,GAAG,QACD;CACF,IAAM,IAAmB,EAAsB,GAEzC,EAAE,eAAY,mBAAgB,EAAU,CAAO,GAE/C,IAAU,KAAa,EAAiB;CAG9C,OAAO,EACH,kBAAC,GAAD;EACI,SAAS;EACT,YALS,KAAc,EAAiB;EAMxC,WAAW;EACX,YAAY,MACR,EACI,GACA,GACA,GACA,EAAkB,EAAiB,KAAK,GACxC,OAAO,KAAc,aACf,EAAU,CAAW,IACrB,CACV;EAEJ,GAAI;EACJ,eAAA;EACA,6BAAA;aAEE,EACE,eACA,mBACA,cACA,cACA,mBACE;GACF,IAAM,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;GAEA,OACI,kBAAC,QAAD;IACI,WAAW,EACP,GACA,GACA,EAAO,SACP,CACJ;IACA,GAAI;cAPR,CASK,KAAc,kBAAC,GAAD,EAAQ,GAAI,EAAa,CAAA,GACxC,kBAAC,GAAD;KACI,MAAM;KACN,MACI,EACI,EAAiB;IAG5B,CAAA,CACC;;EAEd;CACQ,CAAA,GACZ,CACJ;AACJ"}
|