@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheet","names":[],"sources":["../../src/components/Sheets/BottomSheet/bottomSheet.module.css","../../src/components/Sheets/BottomSheet/BottomSheet.tsx"],"sourcesContent":["/* configurable tokens\n*\n* --md-bottom-sheet-background\n* --md-bottom-sheet-color\n*\n* configurable tokens end */\n\n@layer adgytec.comps {\n .bottom-sheet {\n --_md-bottom-sheet-background: var(\n --md-bottom-sheet-background,\n var(--md-sys-color-surface-container-low)\n );\n --_md-bottom-sheet-color: var(\n --md-bottom-sheet-color,\n var(--md-sys-color-on-surface)\n );\n --_max-inline-size: calc(640 * var(--dp, 1px));\n\n background-color: var(--_md-bottom-sheet-background);\n color: var(--_md-bottom-sheet-color);\n\n box-shadow: var(--md-sys-elevation-shadow-1);\n border-radius: var(--md-sys-shape-corner-radius-large);\n\n inline-size: min(100svi, var(--_max-inline-size));\n max-block-size: calc(100svb - var(--_top-padding));\n\n padding: var(--md-sys-layout-space-20);\n\n overflow-y: auto;\n\n &[data-layout=\"detached\"] {\n max-block-size: calc(\n 100svb -\n calc(var(--_top-padding) + var(--_detached-margin))\n );\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 border-end-start-radius: 0;\n border-end-end-radius: 0;\n }\n }\n}\n","import clsx from \"clsx\";\nimport { useContext } from \"react\";\nimport { Dialog } from \"react-aria-components\";\nimport { BottomSheetContext } from \"../BottomSheetModal\";\nimport styles from \"./bottomSheet.module.css\";\n\nexport const BottomSheet: React.FC<\n React.ComponentPropsWithRef<typeof Dialog>\n> = ({ children, className, ...props }) => {\n const { layout } = useContext(BottomSheetContext);\n\n return (\n <Dialog\n
|
|
1
|
+
{"version":3,"file":"BottomSheet","names":[],"sources":["../../src/components/Sheets/BottomSheet/bottomSheet.module.css","../../src/components/Sheets/BottomSheet/BottomSheet.tsx"],"sourcesContent":["/* configurable tokens\n*\n* --md-bottom-sheet-background\n* --md-bottom-sheet-color\n*\n* configurable tokens end */\n\n@layer adgytec.comps {\n .bottom-sheet {\n --_md-bottom-sheet-background: var(\n --md-bottom-sheet-background,\n var(--md-sys-color-surface-container-low)\n );\n --_md-bottom-sheet-color: var(\n --md-bottom-sheet-color,\n var(--md-sys-color-on-surface)\n );\n --_max-inline-size: calc(640 * var(--dp, 1px));\n\n background-color: var(--_md-bottom-sheet-background);\n color: var(--_md-bottom-sheet-color);\n\n box-shadow: var(--md-sys-elevation-shadow-1);\n border-radius: var(--md-sys-shape-corner-radius-large);\n\n inline-size: min(100svi, var(--_max-inline-size));\n max-block-size: calc(100svb - var(--_top-padding));\n\n padding: var(--md-sys-layout-space-20);\n\n overflow-y: auto;\n\n &[data-layout=\"detached\"] {\n max-block-size: calc(\n 100svb -\n calc(var(--_top-padding) + var(--_detached-margin))\n );\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 border-end-start-radius: 0;\n border-end-end-radius: 0;\n }\n }\n}\n","import clsx from \"clsx\";\nimport { useContext } from \"react\";\nimport { Dialog } from \"react-aria-components\";\nimport { DialogContext } from \"@/components/Dialog\";\nimport { BottomSheetContext } from \"../BottomSheetModal\";\nimport styles from \"./bottomSheet.module.css\";\n\nexport const BottomSheet: React.FC<\n React.ComponentPropsWithRef<typeof Dialog>\n> = ({ children, className, ...props }) => {\n const { layout } = useContext(BottomSheetContext);\n\n return (\n <DialogContext value={true}>\n <Dialog\n className={clsx(styles[\"bottom-sheet\"], className)}\n data-layout={layout}\n {...props}\n >\n {(renderProps) => (\n <>\n {typeof children === \"function\"\n ? children(renderProps)\n : children}\n </>\n )}\n </Dialog>\n </DialogContext>\n );\n};\n"],"mappings":";;;;;;;qDCOa,KAER,EAAE,aAAU,cAAW,GAAG,QAAY;CACvC,IAAM,EAAE,cAAW,EAAW,CAAkB;CAEhD,OACI,kBAAC,GAAD;EAAe,OAAO;YAClB,kBAAC,GAAD;GACI,WAAW,EAAK,EAAO,iBAAiB,CAAS;GACjD,eAAa;GACb,GAAI;cAEF,MACE,kBAAA,GAAA,EAAA,UACK,OAAO,KAAa,aACf,EAAS,CAAW,IACpB,EACR,CAAA;EAEF,CAAA;CACG,CAAA;AAEvB"}
|
|
@@ -1,12 +1,12 @@
|
|
|
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 {
|
|
5
|
-
import '../assets/BottomSheetModal.css';var i = { modal: "_modal_hiq4g_2" }, a =
|
|
4
|
+
import { Modal as r } from "react-aria-components";
|
|
5
|
+
import '../assets/BottomSheetModal.css';var i = { modal: "_modal_hiq4g_2" }, a = t({ layout: "standard" }), o = ({ className: t, layout: o = "standard", ...s }) => /* @__PURE__ */ n(a, {
|
|
6
6
|
value: { layout: o },
|
|
7
|
-
children: /* @__PURE__ */ n(
|
|
7
|
+
children: /* @__PURE__ */ n(r, {
|
|
8
8
|
"data-layout": o,
|
|
9
|
-
className: (
|
|
9
|
+
className: (n) => e(i.modal, typeof t == "function" ? t(n) : t),
|
|
10
10
|
...s
|
|
11
11
|
})
|
|
12
12
|
});
|
package/dist/chunks/ButtonGroup
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ButtonGroupContext as e } from "../components/Button/ButtonGroups/ButtonGroupContext/index.js";
|
|
2
2
|
import { clsx as t } from "clsx";
|
|
3
|
-
import {
|
|
3
|
+
import { useMemo as n } from "react";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
import {
|
|
5
|
+
import { ToggleButtonGroup as i } from "react-aria-components";
|
|
6
6
|
import '../assets/ButtonGroup.css';var a = {
|
|
7
7
|
"button-group": "_button-group_1enif_2",
|
|
8
8
|
"extra-small": "_extra-small_1enif_41",
|
|
@@ -11,7 +11,7 @@ import '../assets/ButtonGroup.css';var a = {
|
|
|
11
11
|
large: "_large_1enif_65",
|
|
12
12
|
"extra-large": "_extra-large_1enif_73"
|
|
13
13
|
}, o = ({ size: o, shape: s, color: c, className: l, iconPlacement: u, ...d }) => /* @__PURE__ */ r(e, {
|
|
14
|
-
value:
|
|
14
|
+
value: n(() => ({
|
|
15
15
|
size: o,
|
|
16
16
|
shape: s,
|
|
17
17
|
color: c,
|
|
@@ -22,7 +22,7 @@ import '../assets/ButtonGroup.css';var a = {
|
|
|
22
22
|
c,
|
|
23
23
|
u
|
|
24
24
|
]),
|
|
25
|
-
children: /* @__PURE__ */ r(
|
|
25
|
+
children: /* @__PURE__ */ r(i, {
|
|
26
26
|
className: (e) => t(a["button-group"], a[o ?? "small"], typeof l == "function" ? l(e) : l),
|
|
27
27
|
...d,
|
|
28
28
|
"data-button-group": !0
|
package/dist/chunks/CalendarCell
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as n } from "./
|
|
1
|
+
import { t as e } from "./base";
|
|
2
|
+
import { n as t, t as n } from "./useSplash";
|
|
3
3
|
import { t as r } from "./usePress";
|
|
4
4
|
import i from "clsx";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
+
import { CalendarCell as c } from "react-aria-components";
|
|
7
7
|
import '../assets/CalendarCell.css';var l = {
|
|
8
8
|
cell: "_cell_xm3mx_2",
|
|
9
9
|
"splash-container": "_splash-container_xm3mx_119",
|
|
10
10
|
"range-indicator": "_range-indicator_xm3mx_155"
|
|
11
11
|
}, u = ({ className: u, isRangeCalendar: d = !1, ...f }) => {
|
|
12
|
-
let { splashInfo: p, handlePress: m } =
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
-
className: (
|
|
12
|
+
let { splashInfo: p, handlePress: m } = n(), { pressProps: h } = r({ onPress: m });
|
|
13
|
+
return /* @__PURE__ */ o(c, {
|
|
14
|
+
className: (t) => i(l.cell, e.bodyLarge, typeof u == "function" ? u(t) : u),
|
|
15
15
|
...h,
|
|
16
16
|
...f,
|
|
17
17
|
"data-range-calendar": d || void 0,
|
|
18
|
-
children: ({ formattedDate:
|
|
18
|
+
children: ({ formattedDate: e, isDisabled: n, isOutsideVisibleRange: r, isOutsideMonth: c, isInvalid: u, isSelected: f, isSelectionStart: m, isSelectionEnd: h }) => {
|
|
19
19
|
let g = d && f && !m && !h;
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
-
!(n ||
|
|
20
|
+
return /* @__PURE__ */ s(a, { children: [
|
|
21
|
+
!(n || c || r) && p && /* @__PURE__ */ o("span", {
|
|
22
22
|
className: i(l["splash-container"]),
|
|
23
|
-
children: /* @__PURE__ */
|
|
23
|
+
children: /* @__PURE__ */ o(t, { ...p })
|
|
24
24
|
}),
|
|
25
|
-
d && /* @__PURE__ */
|
|
25
|
+
d && /* @__PURE__ */ o("span", {
|
|
26
26
|
className: i(l["range-indicator"]),
|
|
27
27
|
"data-in-range": g || void 0,
|
|
28
28
|
"data-selection-start": m || void 0,
|
|
29
29
|
"data-selection-end": h || void 0,
|
|
30
30
|
"data-invalid": u || void 0,
|
|
31
31
|
"data-disabled": n || void 0,
|
|
32
|
-
"data-outside-month":
|
|
32
|
+
"data-outside-month": c || void 0,
|
|
33
33
|
"data-outside-visible-range": r || void 0
|
|
34
34
|
}),
|
|
35
|
-
|
|
35
|
+
e
|
|
36
36
|
] });
|
|
37
37
|
}
|
|
38
38
|
});
|
package/dist/chunks/CalendarGrid
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { t as e } from "./base";
|
|
2
2
|
import { t } from "./CalendarCell";
|
|
3
3
|
import n from "clsx";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
import { CalendarGrid as a, CalendarGridBody as o, CalendarGridHeader as s, CalendarHeaderCell as c } from "react-aria-components";
|
|
6
6
|
import '../assets/CalendarGrid.css';var l = {
|
|
7
7
|
grid: "_grid_1uey9_2",
|
|
8
8
|
header: "_header_1uey9_7",
|
|
9
9
|
"header-cell": "_header-cell_1uey9_17"
|
|
10
|
-
}, u = ({ isRangeCalendar: u, ...d }) => /* @__PURE__ */
|
|
10
|
+
}, u = ({ isRangeCalendar: u, ...d }) => /* @__PURE__ */ i(a, {
|
|
11
11
|
...d,
|
|
12
12
|
className: n(l.grid),
|
|
13
|
-
children: [/* @__PURE__ */ s
|
|
13
|
+
children: [/* @__PURE__ */ r(s, {
|
|
14
14
|
className: n(l.header),
|
|
15
|
-
children: (t) => /* @__PURE__ */
|
|
15
|
+
children: (t) => /* @__PURE__ */ r(c, {
|
|
16
16
|
className: n(l["header-cell"], e.bodyLarge),
|
|
17
17
|
children: t
|
|
18
18
|
})
|
|
19
|
-
}), /* @__PURE__ */
|
|
19
|
+
}), /* @__PURE__ */ r(o, {
|
|
20
20
|
className: n(l.body),
|
|
21
|
-
children: (e) => /* @__PURE__ */
|
|
21
|
+
children: (e) => /* @__PURE__ */ r(t, {
|
|
22
22
|
isRangeCalendar: u,
|
|
23
23
|
date: e
|
|
24
24
|
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./base";
|
|
2
2
|
import t from "clsx";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import '../assets/CalendarMenuItem.css';var i = { item: "_item_tzerc_2" }, a = ({ className: a, ...o }) => /* @__PURE__ */ r
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { ListBoxItem as r } from "react-aria-components";
|
|
5
|
+
import '../assets/CalendarMenuItem.css';var i = { item: "_item_tzerc_2" }, a = ({ className: a, ...o }) => /* @__PURE__ */ n(r, {
|
|
6
6
|
className: (n) => t(i.item, e.bodyLarge, typeof a == "function" ? a(n) : a),
|
|
7
7
|
...o
|
|
8
8
|
});
|
|
@@ -3,63 +3,63 @@ import { a as t, c as n, i as r, n as i, o as a, r as o, s, t as c } from "./cor
|
|
|
3
3
|
import { t as l } from "./SliderStops";
|
|
4
4
|
import { t as u } from "./SliderThumb";
|
|
5
5
|
import d from "clsx";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
7
|
+
import { Slider as h, SliderTrack as g } from "react-aria-components";
|
|
8
8
|
import '../assets/CenteredSlider.css';//#region src/components/Input/Slider/CenteredSlider/centerdSlider.module.css
|
|
9
|
-
var _ = { "inactive-track": "_inactive-track_1pivv_2" }, v = ({ label: v, thumbLabel: y, size: b = "small", minValue: x = 0, maxValue: S = 100, step: C = 1, defaultValue: w = (x + S) / 2, showInBetweenSteps: T, maxStops: E, outputRenderer: D, className: O, ...k }) => /* @__PURE__ */ h
|
|
9
|
+
var _ = { "inactive-track": "_inactive-track_1pivv_2" }, v = ({ label: v, thumbLabel: y, size: b = "small", minValue: x = 0, maxValue: S = 100, step: C = 1, defaultValue: w = (x + S) / 2, showInBetweenSteps: T, maxStops: E, outputRenderer: D, className: O, ...k }) => /* @__PURE__ */ p(h, {
|
|
10
10
|
minValue: x,
|
|
11
11
|
maxValue: S,
|
|
12
12
|
step: C,
|
|
13
13
|
defaultValue: w,
|
|
14
14
|
className: (e) => d(t, n, typeof O == "function" ? O(e) : O),
|
|
15
15
|
...k,
|
|
16
|
-
children: ({ orientation: t, state: n, isDisabled:
|
|
16
|
+
children: ({ orientation: t, state: n, isDisabled: h }) => {
|
|
17
17
|
let w = n.getThumbPercent(0), O = t === "horizontal" ? "inlineSize" : "blockSize", k = .5, A = Math.abs(w - k) * 100, j = Math.min(w, k) * 100, M = Math.min(1 - w, k) * 100, N = w < .5 ? "start" : w > .5 ? "end" : void 0;
|
|
18
|
-
return /* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */ m(f, { children: [v && /* @__PURE__ */ p(e, { children: v }), /* @__PURE__ */ p("div", {
|
|
19
19
|
className: d(a),
|
|
20
20
|
"data-orientation": t,
|
|
21
|
-
children: /* @__PURE__ */ g
|
|
21
|
+
children: /* @__PURE__ */ m(g, {
|
|
22
22
|
className: d(s, r(b)),
|
|
23
23
|
children: [
|
|
24
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ m("div", {
|
|
25
25
|
className: d(o),
|
|
26
26
|
"data-orientation": t,
|
|
27
27
|
children: [
|
|
28
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ p("div", {
|
|
29
29
|
className: d(i, _["inactive-track"]),
|
|
30
30
|
"data-active-direction": N === "start" || void 0,
|
|
31
31
|
"data-track": "start",
|
|
32
32
|
"data-orientation": t,
|
|
33
33
|
"data-mid": w === k || void 0,
|
|
34
|
-
"data-disabled":
|
|
34
|
+
"data-disabled": h || void 0,
|
|
35
35
|
style: { [O]: `${j}%` }
|
|
36
36
|
}),
|
|
37
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ p("div", {
|
|
38
38
|
className: d(c),
|
|
39
39
|
"data-orientation": t,
|
|
40
40
|
"data-track": "mid",
|
|
41
|
-
"data-disabled":
|
|
41
|
+
"data-disabled": h || void 0,
|
|
42
42
|
style: { [O]: `${A}%` },
|
|
43
|
-
children: /* @__PURE__ */
|
|
43
|
+
children: /* @__PURE__ */ p("div", { "data-direction": N })
|
|
44
44
|
}),
|
|
45
|
-
/* @__PURE__ */
|
|
45
|
+
/* @__PURE__ */ p("div", {
|
|
46
46
|
className: d(i, _["inactive-track"]),
|
|
47
47
|
"data-orientation": t,
|
|
48
48
|
"data-track": "end",
|
|
49
49
|
"data-active-direction": N === "end" || void 0,
|
|
50
50
|
"data-mid": w === k || void 0,
|
|
51
|
-
"data-disabled":
|
|
51
|
+
"data-disabled": h || void 0,
|
|
52
52
|
style: { [O]: `${M}%` }
|
|
53
53
|
})
|
|
54
54
|
]
|
|
55
55
|
}),
|
|
56
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ p(u, {
|
|
57
57
|
size: b,
|
|
58
58
|
orientation: t,
|
|
59
59
|
"aria-label": y,
|
|
60
60
|
outputRenderer: D
|
|
61
61
|
}),
|
|
62
|
-
/* @__PURE__ */
|
|
62
|
+
/* @__PURE__ */ p(l, {
|
|
63
63
|
slider: "centered",
|
|
64
64
|
minValue: x,
|
|
65
65
|
maxValue: S,
|
package/dist/chunks/ComboBox
CHANGED
|
@@ -6,44 +6,44 @@ import { c as i, l as a, n as o } from "./core4";
|
|
|
6
6
|
import { t as s } from "./Tag";
|
|
7
7
|
import { t as c } from "./context";
|
|
8
8
|
import l from "clsx";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
10
|
+
import { ComboBox as f, ComboBoxValue as p, TagGroup as m, TagList as h } from "react-aria-components";
|
|
11
11
|
import '../assets/ComboBox.css';//#region src/components/Input/Select/ComboBox/comboBox.module.css
|
|
12
12
|
var g = {
|
|
13
13
|
"selected-value": "_selected-value_4mif5_2",
|
|
14
14
|
"tag-list": "_tag-list_4mif5_14"
|
|
15
|
-
}, _ = ({ label: _, description: v, errorMessage: y, showDescriptionOnInvalid: b = !1, children: x, className: S, hideMultiSelectionValue: C = !1, ...w }) => /* @__PURE__ */
|
|
15
|
+
}, _ = ({ label: _, description: v, errorMessage: y, showDescriptionOnInvalid: b = !1, children: x, className: S, hideMultiSelectionValue: C = !1, ...w }) => /* @__PURE__ */ u(f, {
|
|
16
16
|
className: (e) => l(o, i, typeof S == "function" ? S(e) : S),
|
|
17
17
|
...w,
|
|
18
18
|
children: (i) => {
|
|
19
|
-
let { isInvalid: o } = i,
|
|
20
|
-
return /* @__PURE__ */
|
|
19
|
+
let { isInvalid: o } = i, f = v && (!o || o && b);
|
|
20
|
+
return /* @__PURE__ */ d(c, {
|
|
21
21
|
value: i,
|
|
22
22
|
children: [
|
|
23
|
-
_ && /* @__PURE__ */
|
|
23
|
+
_ && /* @__PURE__ */ u(r, { children: _ }),
|
|
24
24
|
typeof x == "function" ? x(i) : x,
|
|
25
|
-
w.selectionMode === "multiple" && !C && /* @__PURE__ */
|
|
25
|
+
w.selectionMode === "multiple" && !C && /* @__PURE__ */ u(p, {
|
|
26
26
|
className: l(g["selected-value"], e.bodyLarge),
|
|
27
|
-
children: ({ state: e }) => /* @__PURE__ */ m
|
|
27
|
+
children: ({ state: e }) => /* @__PURE__ */ u(m, {
|
|
28
28
|
"aria-label": "Selected Items",
|
|
29
29
|
onRemove: (t) => {
|
|
30
30
|
Array.isArray(e.value) && e.setValue(e.value.filter((e) => !t.has(e)));
|
|
31
31
|
},
|
|
32
|
-
children: /* @__PURE__ */
|
|
32
|
+
children: /* @__PURE__ */ u(h, {
|
|
33
33
|
items: e.selectedItems,
|
|
34
34
|
className: l(g["tag-list"]),
|
|
35
|
-
children: (e) => /* @__PURE__ */
|
|
35
|
+
children: (e) => /* @__PURE__ */ u(s, {
|
|
36
36
|
id: e.key,
|
|
37
37
|
label: e.textValue
|
|
38
38
|
})
|
|
39
39
|
})
|
|
40
40
|
})
|
|
41
41
|
}),
|
|
42
|
-
|
|
42
|
+
f && /* @__PURE__ */ u(t, {
|
|
43
43
|
className: l(a),
|
|
44
44
|
children: v
|
|
45
45
|
}),
|
|
46
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ u(n, {
|
|
47
47
|
className: l(a),
|
|
48
48
|
children: y
|
|
49
49
|
})
|
|
@@ -5,16 +5,16 @@ import { d as r, o as i, s as a } from "./core4";
|
|
|
5
5
|
import { n as o, t as s } from "./useHover";
|
|
6
6
|
import { t as c } from "./context";
|
|
7
7
|
import l from "clsx";
|
|
8
|
-
import {
|
|
8
|
+
import { useContext as u } from "react";
|
|
9
9
|
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { Input as p } from "react-aria-components";
|
|
11
|
+
import { ChevronDown as m } from "lucide-react";
|
|
12
12
|
import { useObjectRef as h } from "react-aria";
|
|
13
13
|
import '../assets/ComboBoxTrigger.css';var g = {
|
|
14
14
|
trigger: "_trigger_83n0r_2",
|
|
15
15
|
input: "_input_83n0r_26"
|
|
16
16
|
}, _ = ({ className: _, placeholder: v, dir: y, ref: b, ...x }) => {
|
|
17
|
-
let S = h(b), { isInvalid: C, isDisabled: w, isOpen: T } =
|
|
17
|
+
let S = h(b), { isInvalid: C, isDisabled: w, isOpen: T } = u(c), { isFocused: E, isFocusVisible: D, focusProps: O } = o({ isTextInput: !0 }), { isHovered: k, hoverProps: A } = s({}), { pressProps: j } = n({ onPress: () => {
|
|
18
18
|
S.current?.focus();
|
|
19
19
|
} }), M = {
|
|
20
20
|
"data-hovered": k || void 0,
|
|
@@ -32,7 +32,7 @@ import '../assets/ComboBoxTrigger.css';var g = {
|
|
|
32
32
|
className: l(a, _),
|
|
33
33
|
...x,
|
|
34
34
|
...M,
|
|
35
|
-
children: [/* @__PURE__ */ d(
|
|
35
|
+
children: [/* @__PURE__ */ d(p, {
|
|
36
36
|
ref: S,
|
|
37
37
|
...O,
|
|
38
38
|
placeholder: v,
|
|
@@ -41,7 +41,7 @@ import '../assets/ComboBoxTrigger.css';var g = {
|
|
|
41
41
|
dir: y
|
|
42
42
|
}), /* @__PURE__ */ d(t, {
|
|
43
43
|
className: l(g.trigger),
|
|
44
|
-
icon:
|
|
44
|
+
icon: m,
|
|
45
45
|
color: "standard",
|
|
46
46
|
"data-invalid": C || void 0
|
|
47
47
|
})]
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ConnectedButtonGroupContext as e } from "../components/Button/ButtonGroups/ButtonGroupContext/index.js";
|
|
2
2
|
import { clsx as t } from "clsx";
|
|
3
|
-
import {
|
|
3
|
+
import { useMemo as n } from "react";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
import {
|
|
5
|
+
import { ToggleButtonGroup as i } from "react-aria-components";
|
|
6
6
|
import '../assets/ConnectedButtonGroup.css';var a = {
|
|
7
7
|
group: "_group_1it1y_2",
|
|
8
8
|
"extra-small": "_extra-small_1it1y_31",
|
|
@@ -11,7 +11,7 @@ import '../assets/ConnectedButtonGroup.css';var a = {
|
|
|
11
11
|
large: "_large_1it1y_94",
|
|
12
12
|
"extra-large": "_extra-large_1it1y_115"
|
|
13
13
|
}, o = ({ size: o = "small", shape: s = "round", color: c = "filled", iconPlacement: l, className: u, ...d }) => /* @__PURE__ */ r(e, {
|
|
14
|
-
value:
|
|
14
|
+
value: n(() => ({
|
|
15
15
|
size: o,
|
|
16
16
|
shape: s,
|
|
17
17
|
color: c,
|
|
@@ -22,7 +22,7 @@ import '../assets/ConnectedButtonGroup.css';var a = {
|
|
|
22
22
|
c,
|
|
23
23
|
l
|
|
24
24
|
]),
|
|
25
|
-
children: /* @__PURE__ */ r(
|
|
25
|
+
children: /* @__PURE__ */ r(i, {
|
|
26
26
|
className: (e) => t(a.group, a[o], typeof u == "function" ? u(e) : u),
|
|
27
27
|
...d,
|
|
28
28
|
"data-shape": s,
|
package/dist/chunks/Dialog
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
1
|
+
import { DialogContext as e } from "../components/Dialog/core/index.js";
|
|
2
|
+
import t from "clsx";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import { Dialog as r } from "react-aria-components";
|
|
5
|
+
import '../assets/Dialog.css';var i = { dialog: "_dialog_a2pbf_11" }, a = ({ className: a, ...o }) => /* @__PURE__ */ n(e, {
|
|
6
|
+
value: !0,
|
|
7
|
+
children: /* @__PURE__ */ n(r, {
|
|
8
|
+
className: t(i.dialog, a),
|
|
9
|
+
...o
|
|
10
|
+
})
|
|
7
11
|
});
|
|
8
12
|
//#endregion
|
|
9
|
-
export {
|
|
13
|
+
export { a as t };
|
|
10
14
|
|
|
11
15
|
//# sourceMappingURL=Dialog.map
|
package/dist/chunks/Dialog.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog","names":[],"sources":["../../src/components/Dialog/Dialog/dialog.module.css","../../src/components/Dialog/Dialog/Dialog.tsx"],"sourcesContent":["/* configurable tokens\n*\n* --md-dialog-container-background\n* --md-dialog-headline-text-color\n* --md-dialog-icon-color\n* --md-dialog-body-text-color\n*\n* configurable tokens end */\n\n@layer adgytec.comps {\n .dialog {\n --md-divider-color: currentcolor;\n\n /* container */\n --_md-dialog-container-min-inline-size: calc(280 * var(--dp, 1px));\n --_md-dialog-container-max-inline-size: calc(560 * var(--dp, 1px));\n --_md-dialog-container-max-block-size: 90svb;\n\n --_md-dialog-container-background: var(\n --md-dialog-container-background,\n var(--md-sys-color-surface-container-high)\n );\n --_md-dialog-container-shape: var(\n --md-sys-shape-corner-radius-extra-large\n );\n --_md-dialog-container-elevation: var(--md-sys-elevation-shadow-3);\n --_md-dialog-container-padding: var(--md-sys-layout-space-24);\n\n /* color */\n --_md-dialog-headline-text-color: var(\n --md-dialog-headline-text-color,\n var(--md-sys-color-on-surface)\n );\n --_md-dialog-icon-color: var(\n --md-dialog-icon-color,\n var(--md-sys-color-secondary)\n );\n --_md-dialog-body-text-color: var(\n --md-dialog-body-text-color,\n var(--md-sys-color-on-surface-variant)\n );\n\n /* spacing */\n --_md-dialog-action-gap: var(--md-sys-layout-space-8);\n --_md-dialog-title-body-gap: var(--md-sys-layout-space-16);\n --_md-dialog-title-icon-gap: var(--md-sys-layout-space-16);\n --_md-dialog-body-action-gap: var(--md-sys-layout-space-24);\n\n /* styles */\n padding: var(--_md-dialog-container-padding);\n border-radius: var(--_md-dialog-container-shape);\n\n background-color: var(--_md-dialog-container-background);\n color: var(--_md-dialog-body-text-color);\n box-shadow: var(--_md-dialog-container-elevation);\n\n min-inline-size: min(\n 100svi,\n var(--_md-dialog-container-min-inline-size)\n );\n max-inline-size: var(--_md-dialog-container-max-inline-size);\n max-block-size: var(--_md-dialog-container-max-block-size);\n }\n}\n","import clsx from \"clsx\";\nimport { Dialog as AriaDialog } from \"react-aria-components\";\nimport styles from \"./dialog.module.css\";\n\nexport const Dialog: React.FC<\n React.ComponentPropsWithRef<typeof AriaDialog>\n> = ({ className, ...props }) => {\n return (\n <AriaDialog
|
|
1
|
+
{"version":3,"file":"Dialog","names":[],"sources":["../../src/components/Dialog/Dialog/dialog.module.css","../../src/components/Dialog/Dialog/Dialog.tsx"],"sourcesContent":["/* configurable tokens\n*\n* --md-dialog-container-background\n* --md-dialog-headline-text-color\n* --md-dialog-icon-color\n* --md-dialog-body-text-color\n*\n* configurable tokens end */\n\n@layer adgytec.comps {\n .dialog {\n --md-divider-color: currentcolor;\n\n /* container */\n --_md-dialog-container-min-inline-size: calc(280 * var(--dp, 1px));\n --_md-dialog-container-max-inline-size: calc(560 * var(--dp, 1px));\n --_md-dialog-container-max-block-size: 90svb;\n\n --_md-dialog-container-background: var(\n --md-dialog-container-background,\n var(--md-sys-color-surface-container-high)\n );\n --_md-dialog-container-shape: var(\n --md-sys-shape-corner-radius-extra-large\n );\n --_md-dialog-container-elevation: var(--md-sys-elevation-shadow-3);\n --_md-dialog-container-padding: var(--md-sys-layout-space-24);\n\n /* color */\n --_md-dialog-headline-text-color: var(\n --md-dialog-headline-text-color,\n var(--md-sys-color-on-surface)\n );\n --_md-dialog-icon-color: var(\n --md-dialog-icon-color,\n var(--md-sys-color-secondary)\n );\n --_md-dialog-body-text-color: var(\n --md-dialog-body-text-color,\n var(--md-sys-color-on-surface-variant)\n );\n\n /* spacing */\n --_md-dialog-action-gap: var(--md-sys-layout-space-8);\n --_md-dialog-title-body-gap: var(--md-sys-layout-space-16);\n --_md-dialog-title-icon-gap: var(--md-sys-layout-space-16);\n --_md-dialog-body-action-gap: var(--md-sys-layout-space-24);\n\n /* styles */\n padding: var(--_md-dialog-container-padding);\n border-radius: var(--_md-dialog-container-shape);\n\n background-color: var(--_md-dialog-container-background);\n color: var(--_md-dialog-body-text-color);\n box-shadow: var(--_md-dialog-container-elevation);\n\n min-inline-size: min(\n 100svi,\n var(--_md-dialog-container-min-inline-size)\n );\n max-inline-size: var(--_md-dialog-container-max-inline-size);\n max-block-size: var(--_md-dialog-container-max-block-size);\n }\n}\n","import clsx from \"clsx\";\nimport { Dialog as AriaDialog } from \"react-aria-components\";\nimport { DialogContext } from \"../core\";\nimport styles from \"./dialog.module.css\";\n\nexport const Dialog: React.FC<\n React.ComponentPropsWithRef<typeof AriaDialog>\n> = ({ className, ...props }) => {\n return (\n <DialogContext value={true}>\n <AriaDialog\n className={clsx(styles[\"dialog\"], className)}\n {...props}\n />\n </DialogContext>\n );\n};\n"],"mappings":";;;;wCCKa,KAER,EAAE,cAAW,GAAG,QAEb,kBAAC,GAAD;CAAe,OAAO;WAClB,kBAAC,GAAD;EACI,WAAW,EAAK,EAAO,QAAW,CAAS;EAC3C,GAAI;CACP,CAAA;AACU,CAAA"}
|
package/dist/chunks/Disclosure
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "clsx";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import '../assets/Disclosure.css';var r = { disclosure: "_disclosure_nnw90_2" }, i = ({ className: i, ...a }) => /* @__PURE__ */ n
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { Disclosure as n } from "react-aria-components";
|
|
4
|
+
import '../assets/Disclosure.css';var r = { disclosure: "_disclosure_nnw90_2" }, i = ({ className: i, ...a }) => /* @__PURE__ */ t(n, {
|
|
5
5
|
className: (t) => e(r.disclosure, typeof i == "function" ? i(t) : i),
|
|
6
6
|
...a
|
|
7
7
|
});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { DisclosureTypographyContext as e } from "../components/Disclosure/context/index.js";
|
|
2
2
|
import t from "clsx";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import '../assets/DisclosureGroup.css';var i = { group: "_group_lbw2t_2" }, a = ({ labelTypography: a, panelTypography: o, className: s, ...c }) => /* @__PURE__ */
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { DisclosureGroup as r } from "react-aria-components";
|
|
5
|
+
import '../assets/DisclosureGroup.css';var i = { group: "_group_lbw2t_2" }, a = ({ labelTypography: a, panelTypography: o, className: s, ...c }) => /* @__PURE__ */ n(e, {
|
|
6
6
|
value: {
|
|
7
7
|
label: a,
|
|
8
8
|
panel: o
|
|
9
9
|
},
|
|
10
|
-
children: /* @__PURE__ */ r
|
|
10
|
+
children: /* @__PURE__ */ n(r, {
|
|
11
11
|
className: (e) => t(i.group, typeof s == "function" ? s(e) : s),
|
|
12
12
|
...c
|
|
13
13
|
})
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
2
|
-
import {
|
|
3
|
-
import { t as r } from "./
|
|
1
|
+
import { t as e } from "./tapTarget";
|
|
2
|
+
import { t } from "./Icon";
|
|
3
|
+
import { n, t as r } from "./useSplash";
|
|
4
4
|
import { f as i, l as a, u as o } from "./core";
|
|
5
5
|
import { useDisclosureTypographyContext as s } from "../components/Disclosure/context/index.js";
|
|
6
6
|
import { clsx as c } from "clsx";
|
|
7
|
-
import {
|
|
8
|
-
import { jsx as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
7
|
+
import { useContext as l } from "react";
|
|
8
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
9
|
+
import { Button as f, DisclosureStateContext as p, Heading as m } from "react-aria-components";
|
|
10
|
+
import { ChevronRight as h } from "lucide-react";
|
|
11
11
|
import '../assets/DisclosureHeader.css';var g = {
|
|
12
12
|
"state-layer": "_state-layer_1bxlz_2",
|
|
13
13
|
trigger: "_trigger_1bxlz_21"
|
|
14
14
|
}, _ = ({ children: _, labelTypography: v, ...y }) => {
|
|
15
|
-
let { splashInfo: b, handlePress: x } =
|
|
16
|
-
return /* @__PURE__ */
|
|
15
|
+
let { splashInfo: b, handlePress: x } = r(), { isExpanded: S } = l(p) || {}, { label: C } = s({ label: v });
|
|
16
|
+
return /* @__PURE__ */ u(m, {
|
|
17
17
|
...y,
|
|
18
|
-
children: /* @__PURE__ */
|
|
18
|
+
children: /* @__PURE__ */ d(f, {
|
|
19
19
|
onPress: x,
|
|
20
|
-
className: c(i,
|
|
20
|
+
className: c(i, e, g.trigger, a, o("standard"), C),
|
|
21
21
|
slot: "trigger",
|
|
22
22
|
"data-expanded": S || void 0,
|
|
23
23
|
"data-shape": "square",
|
|
24
24
|
children: [
|
|
25
|
-
/* @__PURE__ */
|
|
25
|
+
/* @__PURE__ */ u("span", {
|
|
26
26
|
className: g["state-layer"],
|
|
27
|
-
children: b && /* @__PURE__ */
|
|
27
|
+
children: b && /* @__PURE__ */ u(n, { ...b })
|
|
28
28
|
}),
|
|
29
|
-
/* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ u(t, {
|
|
30
30
|
withText: !0,
|
|
31
|
-
icon:
|
|
31
|
+
icon: h
|
|
32
32
|
}),
|
|
33
33
|
_
|
|
34
34
|
]
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { useDisclosureTypographyContext as e } from "../components/Disclosure/context/index.js";
|
|
2
2
|
import { clsx as t } from "clsx";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { DisclosurePanel as r } from "react-aria-components";
|
|
5
5
|
import '../assets/DisclosurePanel.css';var i = { panel: "_panel_sw5lb_2" }, a = ({ className: a, children: o, panelTypography: s, ...c }) => {
|
|
6
6
|
let { panel: l } = e({ panel: s });
|
|
7
|
-
return /* @__PURE__ */ r
|
|
7
|
+
return /* @__PURE__ */ n(r, {
|
|
8
8
|
className: (e) => t(i.panel, l, typeof a == "function" ? a(e) : a),
|
|
9
9
|
...c,
|
|
10
|
-
children: /* @__PURE__ */
|
|
10
|
+
children: /* @__PURE__ */ n("div", { children: o })
|
|
11
11
|
});
|
|
12
12
|
};
|
|
13
13
|
//#endregion
|
package/dist/chunks/Divider
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { clsx as e } from "clsx";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import '../assets/Divider.css';var r = { divider: "_divider_1sn33_8" }, i = ({ className: i, ...a }) => /* @__PURE__ */ n
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { Separator as n } from "react-aria-components";
|
|
4
|
+
import '../assets/Divider.css';var r = { divider: "_divider_1sn33_8" }, i = ({ className: i, ...a }) => /* @__PURE__ */ t(n, {
|
|
5
5
|
className: e(r.divider, i),
|
|
6
6
|
...a,
|
|
7
7
|
"data-divider": !0
|
package/dist/chunks/FieldError
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./base";
|
|
2
2
|
import { clsx as t } from "clsx";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import '../assets/FieldError.css';var i = { error: "_error_16b4e_2" }, a = ({ className: a, ...o }) => /* @__PURE__ */ r
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { FieldError as r } from "react-aria-components";
|
|
5
|
+
import '../assets/FieldError.css';var i = { error: "_error_16b4e_2" }, a = ({ className: a, ...o }) => /* @__PURE__ */ n(r, {
|
|
6
6
|
className: (n) => t(i.error, e.labelMedium, typeof a == "function" ? a(n) : a),
|
|
7
7
|
...o
|
|
8
8
|
});
|
package/dist/chunks/Input
CHANGED
|
@@ -4,9 +4,9 @@ import { Description as n } from "../components/Input/Description/index.js";
|
|
|
4
4
|
import { t as r } from "./FieldError";
|
|
5
5
|
import { Label as i } from "../components/Input/Label/index.js";
|
|
6
6
|
import a from "clsx";
|
|
7
|
-
import {
|
|
7
|
+
import { createContext as o, useContext as s } from "react";
|
|
8
8
|
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
9
|
-
import {
|
|
9
|
+
import { Checkbox as d, CheckboxGroup as f } from "react-aria-components";
|
|
10
10
|
import '../assets/Input.css';var p = {
|
|
11
11
|
"checkbox-group": "_checkbox-group_km0x5_16",
|
|
12
12
|
"checkbox-items": "_checkbox-items_km0x5_29",
|
|
@@ -14,11 +14,11 @@ import '../assets/Input.css';var p = {
|
|
|
14
14
|
"state-layer": "_state-layer_km0x5_167",
|
|
15
15
|
indicator: "_indicator_km0x5_187",
|
|
16
16
|
svg: "_svg_km0x5_296"
|
|
17
|
-
}, m =
|
|
18
|
-
let { labelPlacement: h, containerStateLayer: g } =
|
|
19
|
-
return /* @__PURE__ */ l(
|
|
17
|
+
}, m = o({}), h = ({ children: n, className: r, labelPlacement: i, containerStateLayer: o, ...f }) => {
|
|
18
|
+
let { labelPlacement: h, containerStateLayer: g } = s(m), _ = i ?? h ?? "end", v = o ?? g ?? !1;
|
|
19
|
+
return /* @__PURE__ */ l(d, {
|
|
20
20
|
className: (e) => a(p.checkbox, v && p["state-layer"], t.labelLarge, typeof r == "function" ? r(e) : r),
|
|
21
|
-
...
|
|
21
|
+
...f,
|
|
22
22
|
"data-checkbox": !0,
|
|
23
23
|
children: (t) => {
|
|
24
24
|
let { isSelected: r, isHovered: i, isDisabled: o, isFocused: s, isFocusVisible: d, isPressed: f, isInvalid: m, isIndeterminate: h } = t, g = {
|
|
@@ -55,22 +55,22 @@ import '../assets/Input.css';var p = {
|
|
|
55
55
|
] });
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
|
-
}, g = ({ label: e, description: t, errorMessage: o, children:
|
|
58
|
+
}, g = ({ label: e, description: t, errorMessage: o, children: s, className: d, checkboxItemsGap: h = 24, labelPlacement: g, containerStateLayer: _, showDescriptionOnInvalid: v = !1, ...y }) => /* @__PURE__ */ l(m, {
|
|
59
59
|
value: {
|
|
60
60
|
labelPlacement: g,
|
|
61
61
|
containerStateLayer: _
|
|
62
62
|
},
|
|
63
|
-
children: /* @__PURE__ */ l(
|
|
64
|
-
className: (e) => a(p["checkbox-group"], typeof
|
|
63
|
+
children: /* @__PURE__ */ l(f, {
|
|
64
|
+
className: (e) => a(p["checkbox-group"], typeof d == "function" ? d(e) : d),
|
|
65
65
|
...y,
|
|
66
|
-
children: ({ isInvalid:
|
|
67
|
-
let f = t && (!
|
|
66
|
+
children: ({ isInvalid: d }) => {
|
|
67
|
+
let f = t && (!d || d && v);
|
|
68
68
|
return /* @__PURE__ */ u(c, { children: [
|
|
69
69
|
e && /* @__PURE__ */ l(i, { children: e }),
|
|
70
70
|
/* @__PURE__ */ l("div", {
|
|
71
71
|
className: a(p["checkbox-items"]),
|
|
72
72
|
style: { gap: `calc(${h} * var(--dp, 1px))` },
|
|
73
|
-
children:
|
|
73
|
+
children: s
|
|
74
74
|
}),
|
|
75
75
|
f && /* @__PURE__ */ l(n, { children: t }),
|
|
76
76
|
/* @__PURE__ */ l(r, { children: o })
|