@lolmath/ui 5.0.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/index.d.ts +11 -18
- package/dist/es/index.js +94 -75
- package/dist/es/index.js.map +1 -1
- package/dist/lib/index.d.ts +11 -18
- package/dist/lib/index.js +125 -97
- package/dist/lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as react_aria_components from 'react-aria-components';
|
|
2
|
-
import { ButtonProps as ButtonProps$1, DisclosureProps, DisclosurePanelProps, BreadcrumbsProps, BreadcrumbProps, LinkProps, CheckboxProps, HeadingProps as HeadingProps$1, ModalOverlayProps, DialogProps, NumberFieldProps, Input, Group, ProgressBarProps as ProgressBarProps$1, RadioGroupProps, RadioProps, SearchFieldProps,
|
|
3
|
-
export { Dialog, DialogTrigger, Key, RouterProvider, Popover as UnstyledPopover } from 'react-aria-components';
|
|
2
|
+
import { ButtonProps as ButtonProps$1, DisclosureProps, DisclosurePanelProps, BreadcrumbsProps, BreadcrumbProps, LinkProps, CheckboxProps, HeadingProps as HeadingProps$1, ModalOverlayProps, DialogProps, NumberFieldProps, Input, Group, ProgressBarProps as ProgressBarProps$1, RadioGroupProps, RadioProps, SearchFieldProps, PopoverProps, ListBoxProps, ListBoxItemProps, SliderProps, SliderTrackProps, SliderThumbProps, SliderTrackRenderProps, SliderOutputProps, SwitchProps, TabListProps, TabProps, TabPanelProps, TextFieldProps, TextAreaProps, InputProps, ToggleButtonProps as ToggleButtonProps$1, LabelProps as LabelProps$1, MenuTrigger as MenuTrigger$1, MenuProps, MenuItemProps, ComboBoxProps, TagProps } from 'react-aria-components';
|
|
3
|
+
export { Autocomplete, Dialog, DialogTrigger, Key, MenuItemProps, MenuProps, RouterProvider, Select, SelectValue, Popover as UnstyledPopover, useFilter } from 'react-aria-components';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import * as react from 'react';
|
|
6
|
-
import react__default, { Ref, ComponentProps, JSX
|
|
6
|
+
import react__default, { Ref, ComponentProps, JSX } from 'react';
|
|
7
7
|
import { ExternalToast as ExternalToast$1, ToasterProps } from 'sonner';
|
|
8
8
|
import { Key } from 'react-aria';
|
|
9
9
|
|
|
@@ -140,16 +140,12 @@ declare function SearchField({ inputProps, borderProps, children, className, siz
|
|
|
140
140
|
size?: "small" | "medium" | "large";
|
|
141
141
|
}): react_jsx_runtime.JSX.Element;
|
|
142
142
|
|
|
143
|
-
|
|
144
|
-
label?: string;
|
|
145
|
-
description?: string;
|
|
146
|
-
errorMessage?: string;
|
|
147
|
-
items?: Iterable<T>;
|
|
148
|
-
children?: ReactNode | ((item: T) => ReactNode);
|
|
143
|
+
declare function SelectButton({ className, size, ...props }: ButtonProps$1 & {
|
|
149
144
|
size?: "small" | "medium" | "large";
|
|
150
|
-
}
|
|
151
|
-
declare function
|
|
152
|
-
declare function
|
|
145
|
+
}): react_jsx_runtime.JSX.Element;
|
|
146
|
+
declare function SelectPopover({ className, ...props }: PopoverProps): react_jsx_runtime.JSX.Element;
|
|
147
|
+
declare function SelectListBox<T extends object>({ className, ...props }: ListBoxProps<T>): react_jsx_runtime.JSX.Element;
|
|
148
|
+
declare function SelectListBoxItem({ className, ...props }: ListBoxItemProps): react_jsx_runtime.JSX.Element;
|
|
153
149
|
|
|
154
150
|
declare function Slider<T extends number | number[]>({ children, className, sliderThumbProps, sliderTrackProps, sliderTrackBackgroundClassName, sliderTrackForegroundClassName, ...props }: SliderProps<T> & {
|
|
155
151
|
sliderTrackProps?: SliderTrackProps;
|
|
@@ -494,11 +490,8 @@ declare function Label({ preset, color, className, ...rest }: LabelProps): JSX.E
|
|
|
494
490
|
|
|
495
491
|
declare const MenuTrigger: typeof MenuTrigger$1;
|
|
496
492
|
declare const SubmenuTrigger: (props: react_aria_components.SubmenuTriggerProps & React.RefAttributes<HTMLDivElement>) => react.ReactElement | null;
|
|
497
|
-
|
|
498
|
-
}
|
|
499
|
-
declare function Menu<T extends object>({ children, className, ...props }: MenuProps<T>): react_jsx_runtime.JSX.Element;
|
|
500
|
-
type MenuItemProps<T extends object> = MenuItemProps$1<T>;
|
|
501
|
-
declare function MenuItem<T extends object>({ children, className, ...props }: MenuItemProps<T>): react_jsx_runtime.JSX.Element;
|
|
493
|
+
declare function Menu<T extends object>({ className, ...props }: MenuProps<T>): react_jsx_runtime.JSX.Element;
|
|
494
|
+
declare function MenuItem<T extends object>({ className, ...props }: MenuItemProps<T>): react_jsx_runtime.JSX.Element;
|
|
502
495
|
|
|
503
496
|
interface SelectedKey {
|
|
504
497
|
id: Key;
|
|
@@ -519,4 +512,4 @@ declare function MultipleSelect<T extends SelectedKey>({ children, items, select
|
|
|
519
512
|
|
|
520
513
|
declare function Tag({ children, className, ...props }: TagProps): react_jsx_runtime.JSX.Element;
|
|
521
514
|
|
|
522
|
-
export { Breadcrumb, Breadcrumbs, Button, ButtonLink, type ButtonPreset, type ButtonShape, type ButtonSize, Checkbox, DialogButtons, DialogHeading, Disclosure, DisclosureButton, DisclosureGroup, DisclosurePanel, Divider, Heading, type HeadingColor, type HeadingElement,
|
|
515
|
+
export { Breadcrumb, Breadcrumbs, Button, ButtonLink, type ButtonPreset, type ButtonShape, type ButtonSize, Checkbox, DialogButtons, DialogHeading, Disclosure, DisclosureButton, DisclosureGroup, DisclosurePanel, Divider, Heading, type HeadingColor, type HeadingElement, Label, Menu, MenuItem, MenuTrigger, Modal, MultipleSelect, NumberField, Popover, ProgressBar, Radio, RadioGroup, SearchField, SelectButton, SelectListBox, SelectListBoxItem, SelectPopover, type SelectedKey, Slider, SliderOutput, Sonner, type SonnerProps, Spinner, SubmenuTrigger, Switch, Tab, TabList, TabPanel, Tabs, Tag, Text, TextArea, type TextColor, type TextElement, TextField, type TextPreset, type ToastVariant, ToggleButton, type ToggleButtonPreset, _Button, _ButtonLink, button, heading, sonner, text, textField };
|
package/dist/lib/index.js
CHANGED
|
@@ -30,22 +30,22 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// src/index.ts
|
|
31
31
|
var src_exports = {};
|
|
32
32
|
__export(src_exports, {
|
|
33
|
+
Autocomplete: () => import_react_aria_components24.Autocomplete,
|
|
33
34
|
Breadcrumb: () => Breadcrumb,
|
|
34
35
|
Breadcrumbs: () => Breadcrumbs,
|
|
35
36
|
Button: () => Button2,
|
|
36
37
|
ButtonLink: () => ButtonLink,
|
|
37
38
|
Checkbox: () => Checkbox,
|
|
38
|
-
Dialog: () =>
|
|
39
|
+
Dialog: () => import_react_aria_components25.Dialog,
|
|
39
40
|
DialogButtons: () => DialogButtons,
|
|
40
41
|
DialogHeading: () => DialogHeading,
|
|
41
|
-
DialogTrigger: () =>
|
|
42
|
+
DialogTrigger: () => import_react_aria_components25.DialogTrigger,
|
|
42
43
|
Disclosure: () => Disclosure,
|
|
43
44
|
DisclosureButton: () => DisclosureButton,
|
|
44
45
|
DisclosureGroup: () => DisclosureGroup,
|
|
45
46
|
DisclosurePanel: () => DisclosurePanel,
|
|
46
47
|
Divider: () => Divider,
|
|
47
48
|
Heading: () => Heading,
|
|
48
|
-
Item: () => Item,
|
|
49
49
|
Label: () => Label2,
|
|
50
50
|
Menu: () => Menu,
|
|
51
51
|
MenuItem: () => MenuItem,
|
|
@@ -57,9 +57,14 @@ __export(src_exports, {
|
|
|
57
57
|
ProgressBar: () => ProgressBar,
|
|
58
58
|
Radio: () => Radio,
|
|
59
59
|
RadioGroup: () => RadioGroup,
|
|
60
|
-
RouterProvider: () =>
|
|
60
|
+
RouterProvider: () => import_react_aria_components25.RouterProvider,
|
|
61
61
|
SearchField: () => SearchField,
|
|
62
|
-
Select: () => Select,
|
|
62
|
+
Select: () => import_react_aria_components12.Select,
|
|
63
|
+
SelectButton: () => SelectButton,
|
|
64
|
+
SelectListBox: () => SelectListBox,
|
|
65
|
+
SelectListBoxItem: () => SelectListBoxItem,
|
|
66
|
+
SelectPopover: () => SelectPopover,
|
|
67
|
+
SelectValue: () => import_react_aria_components12.SelectValue,
|
|
63
68
|
Slider: () => Slider,
|
|
64
69
|
SliderOutput: () => SliderOutput,
|
|
65
70
|
Sonner: () => Sonner,
|
|
@@ -75,17 +80,18 @@ __export(src_exports, {
|
|
|
75
80
|
TextArea: () => TextArea,
|
|
76
81
|
TextField: () => TextField,
|
|
77
82
|
ToggleButton: () => ToggleButton,
|
|
78
|
-
UnstyledPopover: () =>
|
|
83
|
+
UnstyledPopover: () => import_react_aria_components25.Popover,
|
|
79
84
|
_Button: () => _Button,
|
|
80
85
|
_ButtonLink: () => _ButtonLink,
|
|
81
86
|
button: () => button,
|
|
82
87
|
heading: () => heading,
|
|
83
88
|
sonner: () => sonner,
|
|
84
89
|
text: () => text,
|
|
85
|
-
textField: () => textField
|
|
90
|
+
textField: () => textField,
|
|
91
|
+
useFilter: () => import_react_aria_components24.useFilter
|
|
86
92
|
});
|
|
87
93
|
module.exports = __toCommonJS(src_exports);
|
|
88
|
-
var
|
|
94
|
+
var import_react_aria_components25 = require("react-aria-components");
|
|
89
95
|
|
|
90
96
|
// src/components/disclosure.tsx
|
|
91
97
|
var import_cva = require("cva");
|
|
@@ -670,11 +676,11 @@ var import_react_aria_components11 = require("react-aria-components");
|
|
|
670
676
|
var select_default = { "button": "button_560be", "small": "small_560be", "medium": "medium_560be", "large": "large_560be", "listBox": "listBox_560be", "item": "item_560be", "focus": "focus_560be", "selected": "selected_560be", "popover": "popover_560be" };
|
|
671
677
|
|
|
672
678
|
// src/components/select/select.tsx
|
|
679
|
+
var import_react_aria_components12 = require("react-aria-components");
|
|
673
680
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
674
681
|
var select = (0, import_cva11.cva)({
|
|
675
682
|
base: select_default.button,
|
|
676
683
|
variants: {
|
|
677
|
-
isOpen: { true: select_default.open },
|
|
678
684
|
size: {
|
|
679
685
|
small: select_default.small,
|
|
680
686
|
medium: select_default.medium,
|
|
@@ -682,38 +688,57 @@ var select = (0, import_cva11.cva)({
|
|
|
682
688
|
}
|
|
683
689
|
}
|
|
684
690
|
});
|
|
685
|
-
function
|
|
686
|
-
description,
|
|
687
|
-
errorMessage,
|
|
688
|
-
children,
|
|
689
|
-
items,
|
|
691
|
+
function SelectButton({
|
|
690
692
|
className,
|
|
691
693
|
size = "medium",
|
|
692
694
|
...props
|
|
693
695
|
}) {
|
|
694
|
-
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
696
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
697
|
+
import_react_aria_components11.Button,
|
|
698
|
+
{
|
|
699
|
+
...props,
|
|
700
|
+
className: (0, import_react_aria_components11.composeRenderProps)(
|
|
701
|
+
className,
|
|
702
|
+
(className2, buttonValues) => select({ ...buttonValues, size, className: className2 })
|
|
703
|
+
)
|
|
704
|
+
}
|
|
705
|
+
);
|
|
706
|
+
}
|
|
707
|
+
function SelectPopover({ className, ...props }) {
|
|
708
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
709
|
+
import_react_aria_components11.Popover,
|
|
710
|
+
{
|
|
711
|
+
...props,
|
|
712
|
+
className: (0, import_react_aria_components11.composeRenderProps)(
|
|
713
|
+
className,
|
|
714
|
+
(className2) => (0, import_cva11.cx)(className2, select_default.popover)
|
|
715
|
+
)
|
|
716
|
+
}
|
|
717
|
+
);
|
|
718
|
+
}
|
|
719
|
+
function SelectListBox({
|
|
720
|
+
className,
|
|
721
|
+
...props
|
|
722
|
+
}) {
|
|
723
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
724
|
+
import_react_aria_components11.ListBox,
|
|
725
|
+
{
|
|
726
|
+
...props,
|
|
727
|
+
className: (0, import_react_aria_components11.composeRenderProps)(
|
|
728
|
+
className,
|
|
729
|
+
(className2) => (0, import_cva11.cx)(className2, select_default.listBox)
|
|
730
|
+
)
|
|
731
|
+
}
|
|
732
|
+
);
|
|
706
733
|
}
|
|
707
734
|
var item = (0, import_cva11.cva)({
|
|
708
735
|
base: select_default.item,
|
|
709
736
|
variants: {
|
|
710
|
-
isHovered: { true: select_default.hover },
|
|
711
|
-
isPressed: { true: select_default.press },
|
|
712
737
|
isSelected: { true: select_default.selected },
|
|
713
738
|
isFocused: { true: select_default.focus }
|
|
714
739
|
}
|
|
715
740
|
});
|
|
716
|
-
function
|
|
741
|
+
function SelectListBoxItem({ className, ...props }) {
|
|
717
742
|
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
718
743
|
import_react_aria_components11.ListBoxItem,
|
|
719
744
|
{
|
|
@@ -728,7 +753,7 @@ function Item({ className, ...props }) {
|
|
|
728
753
|
|
|
729
754
|
// src/components/slider/slider.tsx
|
|
730
755
|
var import_cva12 = require("cva");
|
|
731
|
-
var
|
|
756
|
+
var import_react_aria_components13 = require("react-aria-components");
|
|
732
757
|
|
|
733
758
|
// src/components/typography/text.module.css
|
|
734
759
|
var text_default = { "text": "text_63391", "label": "label_63391", "stat": "stat_63391", "largeNumber": "largeNumber_63391", "sm": "sm_63391", "base": "base_63391", "md": "md_63391", "lg": "lg_63391", "grey100": "grey100_63391", "grey150": "grey150_63391", "gold100": "gold100_63391" };
|
|
@@ -772,13 +797,13 @@ function Slider({
|
|
|
772
797
|
sliderTrackForegroundClassName,
|
|
773
798
|
...props
|
|
774
799
|
}) {
|
|
775
|
-
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
800
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react_aria_components13.Slider, { ...props, className, children: (values) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
|
|
776
801
|
typeof children === "function" ? children(values) : children,
|
|
777
802
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
778
|
-
|
|
803
|
+
import_react_aria_components13.SliderTrack,
|
|
779
804
|
{
|
|
780
805
|
...sliderTrackProps,
|
|
781
|
-
className: (0,
|
|
806
|
+
className: (0, import_react_aria_components13.composeRenderProps)(
|
|
782
807
|
className,
|
|
783
808
|
(className2) => (0, import_cva12.cx)(slider_default.track, className2)
|
|
784
809
|
),
|
|
@@ -789,7 +814,7 @@ function Slider({
|
|
|
789
814
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
790
815
|
"div",
|
|
791
816
|
{
|
|
792
|
-
className: (0,
|
|
817
|
+
className: (0, import_react_aria_components13.composeRenderProps)(
|
|
793
818
|
sliderTrackBackgroundClassName,
|
|
794
819
|
(className2) => (0, import_cva12.cx)(className2, slider_default.background)
|
|
795
820
|
)(values2)
|
|
@@ -798,7 +823,7 @@ function Slider({
|
|
|
798
823
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
799
824
|
"div",
|
|
800
825
|
{
|
|
801
|
-
className: (0,
|
|
826
|
+
className: (0, import_react_aria_components13.composeRenderProps)(
|
|
802
827
|
sliderTrackForegroundClassName,
|
|
803
828
|
(className2) => sliderTrackForeground({
|
|
804
829
|
...values2.state,
|
|
@@ -811,14 +836,14 @@ function Slider({
|
|
|
811
836
|
values2.state.values.map((_, i) => {
|
|
812
837
|
const zIndex = values2.state.getThumbPercent(i === 1 ? 0 : 1) === (i === 1 ? 0 : 1) ? 2 : void 0;
|
|
813
838
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
814
|
-
|
|
839
|
+
import_react_aria_components13.SliderThumb,
|
|
815
840
|
{
|
|
816
841
|
index: i,
|
|
817
842
|
style: {
|
|
818
843
|
zIndex
|
|
819
844
|
},
|
|
820
845
|
...sliderThumbProps,
|
|
821
|
-
className: (0,
|
|
846
|
+
className: (0, import_react_aria_components13.composeRenderProps)(
|
|
822
847
|
sliderThumbProps.className,
|
|
823
848
|
(className2, sliderThumbRenderProps) => sliderThumb({
|
|
824
849
|
isDisabled: sliderThumbRenderProps.isDisabled,
|
|
@@ -845,9 +870,9 @@ function SliderOutput({
|
|
|
845
870
|
...props
|
|
846
871
|
}) {
|
|
847
872
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
848
|
-
|
|
873
|
+
import_react_aria_components13.SliderOutput,
|
|
849
874
|
{
|
|
850
|
-
className: (0,
|
|
875
|
+
className: (0, import_react_aria_components13.composeRenderProps)(
|
|
851
876
|
className,
|
|
852
877
|
(className2) => (0, import_cva12.cx)(text_default.text, text_default.sm, text_default.grey100, className2)
|
|
853
878
|
),
|
|
@@ -928,7 +953,7 @@ function Heading({
|
|
|
928
953
|
// src/components/typography/text.tsx
|
|
929
954
|
var import_cva15 = require("cva");
|
|
930
955
|
var import_react4 = require("react");
|
|
931
|
-
var
|
|
956
|
+
var import_react_aria_components14 = require("react-aria-components");
|
|
932
957
|
var presetElements = {
|
|
933
958
|
sm: "p",
|
|
934
959
|
base: "p",
|
|
@@ -975,7 +1000,7 @@ function Label2({
|
|
|
975
1000
|
className,
|
|
976
1001
|
...rest
|
|
977
1002
|
}) {
|
|
978
|
-
return (0, import_react4.createElement)(
|
|
1003
|
+
return (0, import_react4.createElement)(import_react_aria_components14.Label, {
|
|
979
1004
|
...rest,
|
|
980
1005
|
className: text({ preset, color, className })
|
|
981
1006
|
});
|
|
@@ -1056,7 +1081,7 @@ function Sonner(props) {
|
|
|
1056
1081
|
|
|
1057
1082
|
// src/components/switch.tsx
|
|
1058
1083
|
var import_cva16 = require("cva");
|
|
1059
|
-
var
|
|
1084
|
+
var import_react_aria_components15 = require("react-aria-components");
|
|
1060
1085
|
|
|
1061
1086
|
// src/components/switch.module.css
|
|
1062
1087
|
var switch_default = { "switch": "switch_cfb98", "track": "track_cfb98", "knob": "knob_cfb98" };
|
|
@@ -1070,10 +1095,10 @@ function Switch({
|
|
|
1070
1095
|
...props
|
|
1071
1096
|
}) {
|
|
1072
1097
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1073
|
-
|
|
1098
|
+
import_react_aria_components15.Switch,
|
|
1074
1099
|
{
|
|
1075
1100
|
...props,
|
|
1076
|
-
className: (0,
|
|
1101
|
+
className: (0, import_react_aria_components15.composeRenderProps)(
|
|
1077
1102
|
className,
|
|
1078
1103
|
(className2) => (0, import_cva16.cx)(
|
|
1079
1104
|
switch_default.switch,
|
|
@@ -1093,23 +1118,23 @@ function Switch({
|
|
|
1093
1118
|
|
|
1094
1119
|
// src/components/tabs.tsx
|
|
1095
1120
|
var import_cva17 = require("cva");
|
|
1096
|
-
var
|
|
1121
|
+
var import_react_aria_components16 = require("react-aria-components");
|
|
1097
1122
|
|
|
1098
1123
|
// src/components/tabs.module.css
|
|
1099
1124
|
var tabs_default = { "list": "list_c42a1", "tab": "tab_c42a1", "indicator": "indicator_c42a1" };
|
|
1100
1125
|
|
|
1101
1126
|
// src/components/tabs.tsx
|
|
1102
1127
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1103
|
-
var Tabs =
|
|
1128
|
+
var Tabs = import_react_aria_components16.Tabs;
|
|
1104
1129
|
function TabList({
|
|
1105
1130
|
className,
|
|
1106
1131
|
...rest
|
|
1107
1132
|
}) {
|
|
1108
1133
|
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1109
|
-
|
|
1134
|
+
import_react_aria_components16.TabList,
|
|
1110
1135
|
{
|
|
1111
1136
|
...rest,
|
|
1112
|
-
className: (0,
|
|
1137
|
+
className: (0, import_react_aria_components16.composeRenderProps)(
|
|
1113
1138
|
className,
|
|
1114
1139
|
(className2) => (0, import_cva17.cx)(tabs_default.list, className2)
|
|
1115
1140
|
)
|
|
@@ -1118,10 +1143,10 @@ function TabList({
|
|
|
1118
1143
|
}
|
|
1119
1144
|
function Tab({ children, className, ...rest }) {
|
|
1120
1145
|
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1121
|
-
|
|
1146
|
+
import_react_aria_components16.Tab,
|
|
1122
1147
|
{
|
|
1123
1148
|
...rest,
|
|
1124
|
-
className: (0,
|
|
1149
|
+
className: (0, import_react_aria_components16.composeRenderProps)(
|
|
1125
1150
|
className,
|
|
1126
1151
|
(className2) => (0, import_cva17.cx)(tabs_default.tab, className2)
|
|
1127
1152
|
),
|
|
@@ -1133,14 +1158,14 @@ function Tab({ children, className, ...rest }) {
|
|
|
1133
1158
|
);
|
|
1134
1159
|
}
|
|
1135
1160
|
function TabPanel({ ...rest }) {
|
|
1136
|
-
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1161
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react_aria_components16.TabPanel, { ...rest });
|
|
1137
1162
|
}
|
|
1138
1163
|
|
|
1139
1164
|
// src/components/text-area.tsx
|
|
1140
|
-
var
|
|
1165
|
+
var import_react_aria_components18 = require("react-aria-components");
|
|
1141
1166
|
|
|
1142
1167
|
// src/components/text-field.tsx
|
|
1143
|
-
var
|
|
1168
|
+
var import_react_aria_components17 = require("react-aria-components");
|
|
1144
1169
|
var import_cva18 = require("cva");
|
|
1145
1170
|
|
|
1146
1171
|
// src/components/text-field.module.css
|
|
@@ -1166,14 +1191,14 @@ function TextField({
|
|
|
1166
1191
|
size = "medium",
|
|
1167
1192
|
...props
|
|
1168
1193
|
}) {
|
|
1169
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1194
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react_aria_components17.TextField, { ...props, children: (values) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
|
|
1170
1195
|
typeof children === "function" ? children(values) : children,
|
|
1171
1196
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1172
|
-
|
|
1197
|
+
import_react_aria_components17.Input,
|
|
1173
1198
|
{
|
|
1174
1199
|
type: "text",
|
|
1175
1200
|
...inputProps,
|
|
1176
|
-
className: (0,
|
|
1201
|
+
className: (0, import_react_aria_components17.composeRenderProps)(
|
|
1177
1202
|
inputProps.className,
|
|
1178
1203
|
(className, values2) => textField({
|
|
1179
1204
|
...values2,
|
|
@@ -1193,13 +1218,13 @@ function TextArea({
|
|
|
1193
1218
|
children,
|
|
1194
1219
|
...props
|
|
1195
1220
|
}) {
|
|
1196
|
-
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1221
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react_aria_components18.TextField, { ...props, children: (values) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
|
|
1197
1222
|
typeof children === "function" ? children(values) : children,
|
|
1198
1223
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1199
|
-
|
|
1224
|
+
import_react_aria_components18.TextArea,
|
|
1200
1225
|
{
|
|
1201
1226
|
...textAreaProps,
|
|
1202
|
-
className: (0,
|
|
1227
|
+
className: (0, import_react_aria_components18.composeRenderProps)(
|
|
1203
1228
|
textAreaProps.className,
|
|
1204
1229
|
(className, values2) => textField({
|
|
1205
1230
|
...values2,
|
|
@@ -1214,7 +1239,7 @@ function TextArea({
|
|
|
1214
1239
|
|
|
1215
1240
|
// src/components/toggle-button.tsx
|
|
1216
1241
|
var import_cva19 = require("cva");
|
|
1217
|
-
var
|
|
1242
|
+
var import_react_aria_components19 = require("react-aria-components");
|
|
1218
1243
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1219
1244
|
var button2 = (0, import_cva19.cva)({
|
|
1220
1245
|
base: button_default.button,
|
|
@@ -1249,10 +1274,10 @@ function ToggleButton({
|
|
|
1249
1274
|
...props
|
|
1250
1275
|
}) {
|
|
1251
1276
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1252
|
-
|
|
1277
|
+
import_react_aria_components19.ToggleButton,
|
|
1253
1278
|
{
|
|
1254
1279
|
...props,
|
|
1255
|
-
className: (0,
|
|
1280
|
+
className: (0, import_react_aria_components19.composeRenderProps)(
|
|
1256
1281
|
className,
|
|
1257
1282
|
(className2, values) => button2({
|
|
1258
1283
|
...values,
|
|
@@ -1270,7 +1295,7 @@ function ToggleButton({
|
|
|
1270
1295
|
|
|
1271
1296
|
// src/components/popover.tsx
|
|
1272
1297
|
var import_cva20 = require("cva");
|
|
1273
|
-
var
|
|
1298
|
+
var import_react_aria_components20 = require("react-aria-components");
|
|
1274
1299
|
|
|
1275
1300
|
// src/components/popover.module.css
|
|
1276
1301
|
var popover_default = { "popover": "popover_f1fe1", "top": "top_f1fe1", "bottom": "bottom_f1fe1", "left": "left_f1fe1", "right": "right_f1fe1", "arrow": "arrow_f1fe1", "outer": "outer_f1fe1", "inner": "inner_f1fe1" };
|
|
@@ -1303,10 +1328,10 @@ var arrow = (0, import_cva20.cva)({
|
|
|
1303
1328
|
});
|
|
1304
1329
|
function Popover({ children, className, ...props }) {
|
|
1305
1330
|
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1306
|
-
|
|
1331
|
+
import_react_aria_components20.Popover,
|
|
1307
1332
|
{
|
|
1308
1333
|
...props,
|
|
1309
|
-
className: (0,
|
|
1334
|
+
className: (0, import_react_aria_components20.composeRenderProps)(
|
|
1310
1335
|
className,
|
|
1311
1336
|
(className2, values) => popover({
|
|
1312
1337
|
...values,
|
|
@@ -1315,7 +1340,7 @@ function Popover({ children, className, ...props }) {
|
|
|
1315
1340
|
})
|
|
1316
1341
|
),
|
|
1317
1342
|
children: (values) => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
|
|
1318
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1343
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react_aria_components20.OverlayArrow, { children: (values2) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
1319
1344
|
"svg",
|
|
1320
1345
|
{
|
|
1321
1346
|
viewBox: "0 0 12 6",
|
|
@@ -1332,7 +1357,7 @@ function Popover({ children, className, ...props }) {
|
|
|
1332
1357
|
]
|
|
1333
1358
|
}
|
|
1334
1359
|
) }) }),
|
|
1335
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1360
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react_aria_components20.Dialog, { children: typeof children === "function" ? children(values) : children })
|
|
1336
1361
|
] })
|
|
1337
1362
|
}
|
|
1338
1363
|
);
|
|
@@ -1340,36 +1365,30 @@ function Popover({ children, className, ...props }) {
|
|
|
1340
1365
|
|
|
1341
1366
|
// src/components/menu.tsx
|
|
1342
1367
|
var import_cva21 = require("cva");
|
|
1343
|
-
var
|
|
1368
|
+
var import_react_aria_components21 = require("react-aria-components");
|
|
1344
1369
|
|
|
1345
1370
|
// src/components/menu.module.css
|
|
1346
1371
|
var menu_default = { "menu": "menu_bd9f7", "item": "item_bd9f7" };
|
|
1347
1372
|
|
|
1348
1373
|
// src/components/menu.tsx
|
|
1349
1374
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1350
|
-
var MenuTrigger =
|
|
1351
|
-
var SubmenuTrigger =
|
|
1352
|
-
function Menu({
|
|
1353
|
-
|
|
1354
|
-
className,
|
|
1355
|
-
...props
|
|
1356
|
-
}) {
|
|
1357
|
-
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_aria_components20.Menu, { ...props, className: (0, import_cva21.cx)(menu_default.menu, className), children });
|
|
1375
|
+
var MenuTrigger = import_react_aria_components21.MenuTrigger;
|
|
1376
|
+
var SubmenuTrigger = import_react_aria_components21.SubmenuTrigger;
|
|
1377
|
+
function Menu({ className, ...props }) {
|
|
1378
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_aria_components21.Menu, { ...props, className: (0, import_cva21.cx)(menu_default.menu, className) });
|
|
1358
1379
|
}
|
|
1359
1380
|
function MenuItem({
|
|
1360
|
-
children,
|
|
1361
1381
|
className,
|
|
1362
1382
|
...props
|
|
1363
1383
|
}) {
|
|
1364
1384
|
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1365
|
-
|
|
1385
|
+
import_react_aria_components21.MenuItem,
|
|
1366
1386
|
{
|
|
1367
1387
|
...props,
|
|
1368
|
-
className: (0,
|
|
1388
|
+
className: (0, import_react_aria_components21.composeRenderProps)(
|
|
1369
1389
|
className,
|
|
1370
1390
|
(className2, values) => (0, import_cva21.cx)(menu_default.item, className2, values)
|
|
1371
|
-
)
|
|
1372
|
-
children
|
|
1391
|
+
)
|
|
1373
1392
|
}
|
|
1374
1393
|
);
|
|
1375
1394
|
}
|
|
@@ -1378,7 +1397,7 @@ function MenuItem({
|
|
|
1378
1397
|
var import_cva22 = require("cva");
|
|
1379
1398
|
var import_react6 = __toESM(require("react"));
|
|
1380
1399
|
var import_react_aria = require("react-aria");
|
|
1381
|
-
var
|
|
1400
|
+
var import_react_aria_components22 = require("react-aria-components");
|
|
1382
1401
|
|
|
1383
1402
|
// src/components/select/multiple-select.module.css
|
|
1384
1403
|
var multiple_select_default = { "multiSelect": "multiSelect_e6fde", "focusWithin": "focusWithin_e6fde", "disabled": "disabled_e6fde", "small": "small_e6fde", "medium": "medium_e6fde", "large": "large_e6fde", "tagsAndInput": "tagsAndInput_e6fde", "chevronButton": "chevronButton_e6fde", "input": "input_e6fde", "comboBox": "comboBox_e6fde", "tagList": "tagList_e6fde", "emptyText": "emptyText_e6fde" };
|
|
@@ -1494,7 +1513,7 @@ function MultipleSelect({
|
|
|
1494
1513
|
};
|
|
1495
1514
|
}, []);
|
|
1496
1515
|
const triggerButtonRef = import_react6.default.useRef(null);
|
|
1497
|
-
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1516
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_aria_components22.Group, { children: (groupRenderProps) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jsx_runtime23.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1498
1517
|
"div",
|
|
1499
1518
|
{
|
|
1500
1519
|
ref: triggerRef,
|
|
@@ -1502,16 +1521,16 @@ function MultipleSelect({
|
|
|
1502
1521
|
children: [
|
|
1503
1522
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: multiple_select_default.tagsAndInput, children: [
|
|
1504
1523
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1505
|
-
|
|
1524
|
+
import_react_aria_components22.TagGroup,
|
|
1506
1525
|
{
|
|
1507
1526
|
"aria-label": "Selected items",
|
|
1508
1527
|
id: tagGroupIdentifier,
|
|
1509
1528
|
onRemove,
|
|
1510
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1529
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_aria_components22.TagList, { items: selectedItems, className: multiple_select_default.tagList, children: props.tag })
|
|
1511
1530
|
}
|
|
1512
1531
|
),
|
|
1513
1532
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1514
|
-
|
|
1533
|
+
import_react_aria_components22.ComboBox,
|
|
1515
1534
|
{
|
|
1516
1535
|
...props,
|
|
1517
1536
|
"aria-label": "Available items",
|
|
@@ -1524,7 +1543,7 @@ function MultipleSelect({
|
|
|
1524
1543
|
onInputChange,
|
|
1525
1544
|
children: [
|
|
1526
1545
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1527
|
-
|
|
1546
|
+
import_react_aria_components22.Input,
|
|
1528
1547
|
{
|
|
1529
1548
|
className: multiple_select_default.input,
|
|
1530
1549
|
onBlur: () => {
|
|
@@ -1547,14 +1566,14 @@ function MultipleSelect({
|
|
|
1547
1566
|
}
|
|
1548
1567
|
) }),
|
|
1549
1568
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1550
|
-
|
|
1569
|
+
import_react_aria_components22.Popover,
|
|
1551
1570
|
{
|
|
1552
1571
|
className: select_default.popover,
|
|
1553
1572
|
style: { width: `${width}px` },
|
|
1554
1573
|
triggerRef,
|
|
1555
1574
|
trigger: "ComboBox",
|
|
1556
1575
|
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1557
|
-
|
|
1576
|
+
import_react_aria_components22.ListBox,
|
|
1558
1577
|
{
|
|
1559
1578
|
className: select_default.listBox,
|
|
1560
1579
|
renderEmptyState: () => renderEmptyState ? renderEmptyState(fieldState.inputValue) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Text, { className: multiple_select_default.emptyText, children: fieldState.inputValue ? /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
|
|
@@ -1573,7 +1592,7 @@ function MultipleSelect({
|
|
|
1573
1592
|
)
|
|
1574
1593
|
] }),
|
|
1575
1594
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1576
|
-
|
|
1595
|
+
import_react_aria_components22.Button,
|
|
1577
1596
|
{
|
|
1578
1597
|
excludeFromTabOrder: true,
|
|
1579
1598
|
onPress: () => triggerButtonRef.current?.click(),
|
|
@@ -1588,7 +1607,7 @@ function MultipleSelect({
|
|
|
1588
1607
|
|
|
1589
1608
|
// src/components/tag/tag.tsx
|
|
1590
1609
|
var import_cva23 = require("cva");
|
|
1591
|
-
var
|
|
1610
|
+
var import_react_aria_components23 = require("react-aria-components");
|
|
1592
1611
|
|
|
1593
1612
|
// src/components/tag/tag.module.css
|
|
1594
1613
|
var tag_default = { "tag": "tag_c7c88", "text": "text_c7c88", "remove": "remove_c7c88" };
|
|
@@ -1597,22 +1616,26 @@ var tag_default = { "tag": "tag_c7c88", "text": "text_c7c88", "remove": "remove_
|
|
|
1597
1616
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1598
1617
|
function Tag({ children, className, ...props }) {
|
|
1599
1618
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1600
|
-
|
|
1619
|
+
import_react_aria_components23.Tag,
|
|
1601
1620
|
{
|
|
1602
1621
|
...props,
|
|
1603
|
-
className: (0,
|
|
1622
|
+
className: (0, import_react_aria_components23.composeRenderProps)(
|
|
1604
1623
|
className,
|
|
1605
1624
|
(className2) => (0, import_cva23.cx)(tag_default.tag, className2)
|
|
1606
1625
|
),
|
|
1607
|
-
children: (0,
|
|
1626
|
+
children: (0, import_react_aria_components23.composeRenderProps)(children, (children2) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
|
|
1608
1627
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: tag_default.text, children: children2 }),
|
|
1609
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1628
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_aria_components23.Button, { slot: "remove", className: tag_default.remove })
|
|
1610
1629
|
] }))
|
|
1611
1630
|
}
|
|
1612
1631
|
);
|
|
1613
1632
|
}
|
|
1633
|
+
|
|
1634
|
+
// src/components/autocomplete.tsx
|
|
1635
|
+
var import_react_aria_components24 = require("react-aria-components");
|
|
1614
1636
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1615
1637
|
0 && (module.exports = {
|
|
1638
|
+
Autocomplete,
|
|
1616
1639
|
Breadcrumb,
|
|
1617
1640
|
Breadcrumbs,
|
|
1618
1641
|
Button,
|
|
@@ -1628,7 +1651,6 @@ function Tag({ children, className, ...props }) {
|
|
|
1628
1651
|
DisclosurePanel,
|
|
1629
1652
|
Divider,
|
|
1630
1653
|
Heading,
|
|
1631
|
-
Item,
|
|
1632
1654
|
Label,
|
|
1633
1655
|
Menu,
|
|
1634
1656
|
MenuItem,
|
|
@@ -1643,6 +1665,11 @@ function Tag({ children, className, ...props }) {
|
|
|
1643
1665
|
RouterProvider,
|
|
1644
1666
|
SearchField,
|
|
1645
1667
|
Select,
|
|
1668
|
+
SelectButton,
|
|
1669
|
+
SelectListBox,
|
|
1670
|
+
SelectListBoxItem,
|
|
1671
|
+
SelectPopover,
|
|
1672
|
+
SelectValue,
|
|
1646
1673
|
Slider,
|
|
1647
1674
|
SliderOutput,
|
|
1648
1675
|
Sonner,
|
|
@@ -1665,7 +1692,8 @@ function Tag({ children, className, ...props }) {
|
|
|
1665
1692
|
heading,
|
|
1666
1693
|
sonner,
|
|
1667
1694
|
text,
|
|
1668
|
-
textField
|
|
1695
|
+
textField,
|
|
1696
|
+
useFilter
|
|
1669
1697
|
});
|
|
1670
1698
|
|
|
1671
1699
|
//# sourceMappingURL=index.js.map
|