@moduix/solid 1.0.0 → 1.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/components/accordion/Accordion.js +19 -13
- package/dist/components/accordion/Accordion.jsx +7 -7
- package/dist/components/alert/Alert.js +19 -13
- package/dist/components/alert/Alert.jsx +6 -6
- package/dist/components/angle-slider/AngleSlider.d.ts +2 -6
- package/dist/components/angle-slider/AngleSlider.js +21 -16
- package/dist/components/angle-slider/AngleSlider.jsx +9 -10
- package/dist/components/avatar/Avatar.js +10 -7
- package/dist/components/avatar/Avatar.jsx +4 -4
- package/dist/components/button/Button.js +0 -5
- package/dist/components/button/Button.jsx +1 -3
- package/dist/components/button/Button_module.css +1 -3
- package/dist/components/card/Card.js +45 -36
- package/dist/components/card/Card.jsx +9 -9
- package/dist/components/card/Card_module.css +1 -1
- package/dist/components/carousel/Carousel.d.ts +1 -1
- package/dist/components/carousel/Carousel.js +32 -23
- package/dist/components/carousel/Carousel.jsx +12 -13
- package/dist/components/checkbox/Checkbox.js +16 -14
- package/dist/components/checkbox/Checkbox.jsx +6 -6
- package/dist/components/clipboard/Clipboard.js +28 -17
- package/dist/components/clipboard/Clipboard.jsx +12 -11
- package/dist/components/collapsible/Collapsible.js +16 -11
- package/dist/components/collapsible/Collapsible.jsx +6 -6
- package/dist/components/color-picker/ColorPicker.js +69 -48
- package/dist/components/color-picker/ColorPicker.jsx +28 -28
- package/dist/components/combobox/Combobox.js +44 -31
- package/dist/components/combobox/Combobox.jsx +18 -18
- package/dist/components/command-palette/CommandPalette.js +72 -53
- package/dist/components/command-palette/CommandPalette.jsx +29 -32
- package/dist/components/container/Container_module.css +1 -1
- package/dist/components/date-input/DateInput.js +18 -12
- package/dist/components/date-input/DateInput.jsx +7 -7
- package/dist/components/date-picker/DatePicker.js +73 -51
- package/dist/components/date-picker/DatePicker.jsx +29 -29
- package/dist/components/dialog/Dialog.js +30 -20
- package/dist/components/dialog/Dialog.jsx +10 -10
- package/dist/components/drawer/Drawer.js +45 -30
- package/dist/components/drawer/Drawer.jsx +15 -15
- package/dist/components/editable/Editable.js +24 -17
- package/dist/components/editable/Editable.jsx +10 -10
- package/dist/components/file-upload/FileUpload.js +39 -28
- package/dist/components/file-upload/FileUpload.jsx +17 -17
- package/dist/components/floating-panel/FloatingPanel.js +35 -23
- package/dist/components/floating-panel/FloatingPanel.jsx +12 -12
- package/dist/components/hover-card/HoverCard.js +16 -11
- package/dist/components/hover-card/HoverCard.jsx +6 -6
- package/dist/components/image-cropper/ImageCropper.js +21 -14
- package/dist/components/image-cropper/ImageCropper.jsx +7 -7
- package/dist/components/kbd/Kbd.js +8 -8
- package/dist/components/kbd/Kbd.jsx +2 -2
- package/dist/components/lightbox/Lightbox.d.ts +1 -0
- package/dist/components/lightbox/Lightbox.js +41 -27
- package/dist/components/lightbox/Lightbox.jsx +13 -12
- package/dist/components/listbox/Listbox.js +48 -32
- package/dist/components/listbox/Listbox.jsx +17 -17
- package/dist/components/marquee/Marquee.js +18 -12
- package/dist/components/marquee/Marquee.jsx +6 -6
- package/dist/components/menu/Menu.js +64 -43
- package/dist/components/menu/Menu.jsx +24 -24
- package/dist/components/navigation-menu/NavigationMenu.js +36 -24
- package/dist/components/navigation-menu/NavigationMenu.jsx +12 -12
- package/dist/components/number-input/NumberInput.js +19 -14
- package/dist/components/number-input/NumberInput.jsx +9 -9
- package/dist/components/pagination/Pagination.js +10 -9
- package/dist/components/pagination/Pagination.jsx +8 -8
- package/dist/components/password-input/PasswordInput.js +16 -11
- package/dist/components/password-input/PasswordInput.jsx +6 -6
- package/dist/components/pin-input/PinInput.js +15 -10
- package/dist/components/pin-input/PinInput.jsx +6 -6
- package/dist/components/popover/Popover.js +37 -25
- package/dist/components/popover/Popover.jsx +13 -13
- package/dist/components/progress-circular/ProgressCircular.js +18 -13
- package/dist/components/progress-circular/ProgressCircular.jsx +8 -8
- package/dist/components/progress-linear/ProgressLinear.js +21 -14
- package/dist/components/progress-linear/ProgressLinear.jsx +7 -7
- package/dist/components/qr-code/QrCode.js +8 -7
- package/dist/components/qr-code/QrCode.jsx +6 -6
- package/dist/components/rating-group/RatingGroup.js +15 -10
- package/dist/components/rating-group/RatingGroup.jsx +6 -6
- package/dist/components/segment-group/SegmentGroup.js +17 -12
- package/dist/components/segment-group/SegmentGroup.jsx +7 -7
- package/dist/components/select/Select.js +50 -35
- package/dist/components/select/Select.jsx +20 -20
- package/dist/components/sidebar/Sidebar.js +73 -43
- package/dist/components/sidebar/Sidebar.jsx +35 -27
- package/dist/components/signature-pad/SignaturePad.js +16 -12
- package/dist/components/signature-pad/SignaturePad.jsx +8 -8
- package/dist/components/slider/Slider.js +29 -20
- package/dist/components/slider/Slider.jsx +11 -11
- package/dist/components/split-button/SplitButton.d.ts +4 -3
- package/dist/components/split-button/SplitButton.js +21 -9
- package/dist/components/split-button/SplitButton.jsx +14 -7
- package/dist/components/splitter/Splitter.js +13 -9
- package/dist/components/splitter/Splitter.jsx +5 -5
- package/dist/components/steps/Steps.js +34 -23
- package/dist/components/steps/Steps.jsx +12 -12
- package/dist/components/swap/Swap.js +9 -6
- package/dist/components/swap/Swap.jsx +3 -3
- package/dist/components/switch/Switch.js +9 -7
- package/dist/components/switch/Switch.jsx +5 -5
- package/dist/components/tabs/Tabs.js +18 -12
- package/dist/components/tabs/Tabs.jsx +6 -6
- package/dist/components/tags-input/TagsInput.js +28 -20
- package/dist/components/tags-input/TagsInput.jsx +12 -12
- package/dist/components/timer/Timer.js +21 -14
- package/dist/components/timer/Timer.jsx +7 -7
- package/dist/components/toast/Toast.js +11 -9
- package/dist/components/toast/Toast.jsx +7 -7
- package/dist/components/toc/Toc.js +31 -20
- package/dist/components/toc/Toc.jsx +10 -10
- package/dist/components/tooltip/Tooltip.js +13 -9
- package/dist/components/tooltip/Tooltip.jsx +5 -5
- package/dist/components/tour/Tour.js +37 -25
- package/dist/components/tour/Tour.jsx +13 -13
- package/dist/components/tree-view/TreeView.js +39 -28
- package/dist/components/tree-view/TreeView.jsx +17 -17
- package/dist/styles/animations.css +8 -8
- package/package.json +9 -10
|
@@ -10,44 +10,48 @@ function AccordionRoot(props) {
|
|
|
10
10
|
'class'
|
|
11
11
|
]);
|
|
12
12
|
return createComponent(Accordion.Root, mergeProps({
|
|
13
|
-
"data-slot": "accordion-root",
|
|
14
13
|
get ["class"] () {
|
|
15
14
|
return clsx(Accordion_module.root, local.class);
|
|
16
15
|
}
|
|
17
|
-
}, others
|
|
16
|
+
}, others, {
|
|
17
|
+
"data-slot": "accordion-root"
|
|
18
|
+
}));
|
|
18
19
|
}
|
|
19
20
|
function AccordionRootProvider(props) {
|
|
20
21
|
const [local, others] = splitProps(props, [
|
|
21
22
|
'class'
|
|
22
23
|
]);
|
|
23
24
|
return createComponent(Accordion.RootProvider, mergeProps({
|
|
24
|
-
"data-slot": "accordion-root-provider",
|
|
25
25
|
get ["class"] () {
|
|
26
26
|
return clsx(Accordion_module.root, local.class);
|
|
27
27
|
}
|
|
28
|
-
}, others
|
|
28
|
+
}, others, {
|
|
29
|
+
"data-slot": "accordion-root-provider"
|
|
30
|
+
}));
|
|
29
31
|
}
|
|
30
32
|
function AccordionItem(props) {
|
|
31
33
|
const [local, others] = splitProps(props, [
|
|
32
34
|
'class'
|
|
33
35
|
]);
|
|
34
36
|
return createComponent(Accordion.Item, mergeProps({
|
|
35
|
-
"data-slot": "accordion-item",
|
|
36
37
|
get ["class"] () {
|
|
37
38
|
return clsx(Accordion_module.item, local.class);
|
|
38
39
|
}
|
|
39
|
-
}, others
|
|
40
|
+
}, others, {
|
|
41
|
+
"data-slot": "accordion-item"
|
|
42
|
+
}));
|
|
40
43
|
}
|
|
41
44
|
function AccordionItemTrigger(props) {
|
|
42
45
|
const [local, others] = splitProps(props, [
|
|
43
46
|
'class'
|
|
44
47
|
]);
|
|
45
48
|
return createComponent(Accordion.ItemTrigger, mergeProps({
|
|
46
|
-
"data-slot": "accordion-item-trigger",
|
|
47
49
|
get ["class"] () {
|
|
48
50
|
return clsx(Accordion_module.itemTrigger, local.class);
|
|
49
51
|
}
|
|
50
|
-
}, others
|
|
52
|
+
}, others, {
|
|
53
|
+
"data-slot": "accordion-item-trigger"
|
|
54
|
+
}));
|
|
51
55
|
}
|
|
52
56
|
function AccordionItemIndicator(props) {
|
|
53
57
|
const [local, others] = splitProps(props, [
|
|
@@ -56,11 +60,11 @@ function AccordionItemIndicator(props) {
|
|
|
56
60
|
]);
|
|
57
61
|
const resolvedChildren = children(()=>local.children);
|
|
58
62
|
return createComponent(Accordion.ItemIndicator, mergeProps({
|
|
59
|
-
"data-slot": "accordion-item-indicator",
|
|
60
63
|
get ["class"] () {
|
|
61
64
|
return clsx(Accordion_module.itemIndicator, local.class);
|
|
62
65
|
}
|
|
63
66
|
}, others, {
|
|
67
|
+
"data-slot": "accordion-item-indicator",
|
|
64
68
|
get children () {
|
|
65
69
|
return resolvedChildren() ?? createComponent(PlusIcon, {});
|
|
66
70
|
}
|
|
@@ -71,11 +75,12 @@ function AccordionItemContent(props) {
|
|
|
71
75
|
'class'
|
|
72
76
|
]);
|
|
73
77
|
return createComponent(Accordion.ItemContent, mergeProps({
|
|
74
|
-
"data-slot": "accordion-item-content",
|
|
75
78
|
get ["class"] () {
|
|
76
79
|
return clsx(Accordion_module.itemContent, local.class);
|
|
77
80
|
}
|
|
78
|
-
}, others
|
|
81
|
+
}, others, {
|
|
82
|
+
"data-slot": "accordion-item-content"
|
|
83
|
+
}));
|
|
79
84
|
}
|
|
80
85
|
function AccordionItemBody(props) {
|
|
81
86
|
const [local, others] = splitProps(props, [
|
|
@@ -84,11 +89,12 @@ function AccordionItemBody(props) {
|
|
|
84
89
|
return createComponent(ark.div, mergeProps({
|
|
85
90
|
"data-scope": "accordion",
|
|
86
91
|
"data-part": "item-body",
|
|
87
|
-
"data-slot": "accordion-item-body",
|
|
88
92
|
get ["class"] () {
|
|
89
93
|
return clsx(Accordion_module.itemBody, local.class);
|
|
90
94
|
}
|
|
91
|
-
}, others
|
|
95
|
+
}, others, {
|
|
96
|
+
"data-slot": "accordion-item-body"
|
|
97
|
+
}));
|
|
92
98
|
}
|
|
93
99
|
const Accordion_Accordion = Object.assign(AccordionRoot, {
|
|
94
100
|
Root: AccordionRoot,
|
|
@@ -8,25 +8,25 @@ function AccordionRoot(props) {
|
|
|
8
8
|
const [local, others] = splitProps(props, [
|
|
9
9
|
'class'
|
|
10
10
|
]);
|
|
11
|
-
return <Accordion.Root
|
|
11
|
+
return <Accordion.Root class={clsx(Accordion_module.root, local.class)} {...others} data-slot="accordion-root"/>;
|
|
12
12
|
}
|
|
13
13
|
function AccordionRootProvider(props) {
|
|
14
14
|
const [local, others] = splitProps(props, [
|
|
15
15
|
'class'
|
|
16
16
|
]);
|
|
17
|
-
return <Accordion.RootProvider
|
|
17
|
+
return <Accordion.RootProvider class={clsx(Accordion_module.root, local.class)} {...others} data-slot="accordion-root-provider"/>;
|
|
18
18
|
}
|
|
19
19
|
function AccordionItem(props) {
|
|
20
20
|
const [local, others] = splitProps(props, [
|
|
21
21
|
'class'
|
|
22
22
|
]);
|
|
23
|
-
return <Accordion.Item
|
|
23
|
+
return <Accordion.Item class={clsx(Accordion_module.item, local.class)} {...others} data-slot="accordion-item"/>;
|
|
24
24
|
}
|
|
25
25
|
function AccordionItemTrigger(props) {
|
|
26
26
|
const [local, others] = splitProps(props, [
|
|
27
27
|
'class'
|
|
28
28
|
]);
|
|
29
|
-
return <Accordion.ItemTrigger
|
|
29
|
+
return <Accordion.ItemTrigger class={clsx(Accordion_module.itemTrigger, local.class)} {...others} data-slot="accordion-item-trigger"/>;
|
|
30
30
|
}
|
|
31
31
|
function AccordionItemIndicator(props) {
|
|
32
32
|
const [local, others] = splitProps(props, [
|
|
@@ -34,7 +34,7 @@ function AccordionItemIndicator(props) {
|
|
|
34
34
|
'children'
|
|
35
35
|
]);
|
|
36
36
|
const resolvedChildren = children(()=>local.children);
|
|
37
|
-
return <Accordion.ItemIndicator
|
|
37
|
+
return <Accordion.ItemIndicator class={clsx(Accordion_module.itemIndicator, local.class)} {...others} data-slot="accordion-item-indicator">
|
|
38
38
|
{resolvedChildren() ?? <PlusIcon/>}
|
|
39
39
|
</Accordion.ItemIndicator>;
|
|
40
40
|
}
|
|
@@ -42,13 +42,13 @@ function AccordionItemContent(props) {
|
|
|
42
42
|
const [local, others] = splitProps(props, [
|
|
43
43
|
'class'
|
|
44
44
|
]);
|
|
45
|
-
return <Accordion.ItemContent
|
|
45
|
+
return <Accordion.ItemContent class={clsx(Accordion_module.itemContent, local.class)} {...others} data-slot="accordion-item-content"/>;
|
|
46
46
|
}
|
|
47
47
|
function AccordionItemBody(props) {
|
|
48
48
|
const [local, others] = splitProps(props, [
|
|
49
49
|
'class'
|
|
50
50
|
]);
|
|
51
|
-
return <ark.div data-scope="accordion" data-part="item-body"
|
|
51
|
+
return <ark.div data-scope="accordion" data-part="item-body" class={clsx(Accordion_module.itemBody, local.class)} {...others} data-slot="accordion-item-body"/>;
|
|
52
52
|
}
|
|
53
53
|
const Accordion_Accordion = Object.assign(AccordionRoot, {
|
|
54
54
|
Root: AccordionRoot,
|
|
@@ -11,18 +11,19 @@ function AlertRoot(props) {
|
|
|
11
11
|
]);
|
|
12
12
|
return createComponent(ark.div, mergeProps({
|
|
13
13
|
get role () {
|
|
14
|
-
return local.role
|
|
14
|
+
return local.role;
|
|
15
15
|
},
|
|
16
16
|
"data-scope": "alert",
|
|
17
17
|
"data-part": "root",
|
|
18
|
-
"data-slot": "alert-root",
|
|
19
18
|
get ["data-status"] () {
|
|
20
19
|
return local.status ?? 'info';
|
|
21
20
|
},
|
|
22
21
|
get ["class"] () {
|
|
23
22
|
return clsx(Alert_module.root, local.class);
|
|
24
23
|
}
|
|
25
|
-
}, others
|
|
24
|
+
}, others, {
|
|
25
|
+
"data-slot": "alert-root"
|
|
26
|
+
}));
|
|
26
27
|
}
|
|
27
28
|
function AlertIndicator(props) {
|
|
28
29
|
const [local, others] = splitProps(props, [
|
|
@@ -31,12 +32,13 @@ function AlertIndicator(props) {
|
|
|
31
32
|
return createComponent(ark.span, mergeProps({
|
|
32
33
|
"data-scope": "alert",
|
|
33
34
|
"data-part": "indicator",
|
|
34
|
-
"data-slot": "alert-indicator",
|
|
35
35
|
"aria-hidden": "true",
|
|
36
36
|
get ["class"] () {
|
|
37
37
|
return clsx(Alert_module.indicator, local.class);
|
|
38
38
|
}
|
|
39
|
-
}, others
|
|
39
|
+
}, others, {
|
|
40
|
+
"data-slot": "alert-indicator"
|
|
41
|
+
}));
|
|
40
42
|
}
|
|
41
43
|
function AlertContent(props) {
|
|
42
44
|
const [local, others] = splitProps(props, [
|
|
@@ -45,11 +47,12 @@ function AlertContent(props) {
|
|
|
45
47
|
return createComponent(ark.div, mergeProps({
|
|
46
48
|
"data-scope": "alert",
|
|
47
49
|
"data-part": "content",
|
|
48
|
-
"data-slot": "alert-content",
|
|
49
50
|
get ["class"] () {
|
|
50
51
|
return clsx(Alert_module.content, local.class);
|
|
51
52
|
}
|
|
52
|
-
}, others
|
|
53
|
+
}, others, {
|
|
54
|
+
"data-slot": "alert-content"
|
|
55
|
+
}));
|
|
53
56
|
}
|
|
54
57
|
function AlertTitle(props) {
|
|
55
58
|
const [local, others] = splitProps(props, [
|
|
@@ -58,11 +61,12 @@ function AlertTitle(props) {
|
|
|
58
61
|
return createComponent(ark.p, mergeProps({
|
|
59
62
|
"data-scope": "alert",
|
|
60
63
|
"data-part": "title",
|
|
61
|
-
"data-slot": "alert-title",
|
|
62
64
|
get ["class"] () {
|
|
63
65
|
return clsx(Alert_module.title, local.class);
|
|
64
66
|
}
|
|
65
|
-
}, others
|
|
67
|
+
}, others, {
|
|
68
|
+
"data-slot": "alert-title"
|
|
69
|
+
}));
|
|
66
70
|
}
|
|
67
71
|
function AlertDescription(props) {
|
|
68
72
|
const [local, others] = splitProps(props, [
|
|
@@ -71,11 +75,12 @@ function AlertDescription(props) {
|
|
|
71
75
|
return createComponent(ark.div, mergeProps({
|
|
72
76
|
"data-scope": "alert",
|
|
73
77
|
"data-part": "description",
|
|
74
|
-
"data-slot": "alert-description",
|
|
75
78
|
get ["class"] () {
|
|
76
79
|
return clsx(Alert_module.description, local.class);
|
|
77
80
|
}
|
|
78
|
-
}, others
|
|
81
|
+
}, others, {
|
|
82
|
+
"data-slot": "alert-description"
|
|
83
|
+
}));
|
|
79
84
|
}
|
|
80
85
|
function AlertActions(props) {
|
|
81
86
|
const [local, others] = splitProps(props, [
|
|
@@ -84,11 +89,12 @@ function AlertActions(props) {
|
|
|
84
89
|
return createComponent(ark.div, mergeProps({
|
|
85
90
|
"data-scope": "alert",
|
|
86
91
|
"data-part": "actions",
|
|
87
|
-
"data-slot": "alert-actions",
|
|
88
92
|
get ["class"] () {
|
|
89
93
|
return clsx(Alert_module.actions, local.class);
|
|
90
94
|
}
|
|
91
|
-
}, others
|
|
95
|
+
}, others, {
|
|
96
|
+
"data-slot": "alert-actions"
|
|
97
|
+
}));
|
|
92
98
|
}
|
|
93
99
|
const Alert = Object.assign(AlertRoot, {
|
|
94
100
|
Root: AlertRoot,
|
|
@@ -8,37 +8,37 @@ function AlertRoot(props) {
|
|
|
8
8
|
'role',
|
|
9
9
|
'status'
|
|
10
10
|
]);
|
|
11
|
-
return <ark.div role={local.role
|
|
11
|
+
return <ark.div role={local.role} data-scope="alert" data-part="root" data-status={local.status ?? 'info'} class={clsx(Alert_module.root, local.class)} {...others} data-slot="alert-root"/>;
|
|
12
12
|
}
|
|
13
13
|
function AlertIndicator(props) {
|
|
14
14
|
const [local, others] = splitProps(props, [
|
|
15
15
|
'class'
|
|
16
16
|
]);
|
|
17
|
-
return <ark.span data-scope="alert" data-part="indicator"
|
|
17
|
+
return <ark.span data-scope="alert" data-part="indicator" aria-hidden="true" class={clsx(Alert_module.indicator, local.class)} {...others} data-slot="alert-indicator"/>;
|
|
18
18
|
}
|
|
19
19
|
function AlertContent(props) {
|
|
20
20
|
const [local, others] = splitProps(props, [
|
|
21
21
|
'class'
|
|
22
22
|
]);
|
|
23
|
-
return <ark.div data-scope="alert" data-part="content"
|
|
23
|
+
return <ark.div data-scope="alert" data-part="content" class={clsx(Alert_module.content, local.class)} {...others} data-slot="alert-content"/>;
|
|
24
24
|
}
|
|
25
25
|
function AlertTitle(props) {
|
|
26
26
|
const [local, others] = splitProps(props, [
|
|
27
27
|
'class'
|
|
28
28
|
]);
|
|
29
|
-
return <ark.p data-scope="alert" data-part="title"
|
|
29
|
+
return <ark.p data-scope="alert" data-part="title" class={clsx(Alert_module.title, local.class)} {...others} data-slot="alert-title"/>;
|
|
30
30
|
}
|
|
31
31
|
function AlertDescription(props) {
|
|
32
32
|
const [local, others] = splitProps(props, [
|
|
33
33
|
'class'
|
|
34
34
|
]);
|
|
35
|
-
return <ark.div data-scope="alert" data-part="description"
|
|
35
|
+
return <ark.div data-scope="alert" data-part="description" class={clsx(Alert_module.description, local.class)} {...others} data-slot="alert-description"/>;
|
|
36
36
|
}
|
|
37
37
|
function AlertActions(props) {
|
|
38
38
|
const [local, others] = splitProps(props, [
|
|
39
39
|
'class'
|
|
40
40
|
]);
|
|
41
|
-
return <ark.div data-scope="alert" data-part="actions"
|
|
41
|
+
return <ark.div data-scope="alert" data-part="actions" class={clsx(Alert_module.actions, local.class)} {...others} data-slot="alert-actions"/>;
|
|
42
42
|
}
|
|
43
43
|
const Alert = Object.assign(AlertRoot, {
|
|
44
44
|
Root: AlertRoot,
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { AngleSlider as AngleSliderPrimitive,
|
|
1
|
+
import { AngleSlider as AngleSliderPrimitive, useAngleSlider, useAngleSliderContext } from '@ark-ui/solid/angle-slider';
|
|
2
2
|
import type { ComponentProps, JSX } from 'solid-js';
|
|
3
3
|
declare function AngleSliderRoot(props: ComponentProps<typeof AngleSliderPrimitive.Root>): JSX.Element;
|
|
4
4
|
declare function AngleSliderLabel(props: ComponentProps<typeof AngleSliderPrimitive.Label>): JSX.Element;
|
|
5
|
-
|
|
6
|
-
form?: string;
|
|
7
|
-
};
|
|
8
|
-
declare function AngleSliderRootProvider(props: AngleSliderRootProviderProps): JSX.Element;
|
|
5
|
+
declare function AngleSliderRootProvider(props: ComponentProps<typeof AngleSliderPrimitive.RootProvider>): JSX.Element;
|
|
9
6
|
declare function AngleSliderControl(props: ComponentProps<typeof AngleSliderPrimitive.Control>): JSX.Element;
|
|
10
7
|
declare function AngleSliderThumb(props: ComponentProps<typeof AngleSliderPrimitive.Thumb>): JSX.Element;
|
|
11
8
|
declare function AngleSliderMarkerGroup(props: ComponentProps<typeof AngleSliderPrimitive.MarkerGroup>): JSX.Element;
|
|
@@ -33,5 +30,4 @@ declare const AngleSlider: typeof AngleSliderRoot & {
|
|
|
33
30
|
Marks: typeof AngleSliderMarks;
|
|
34
31
|
ValueText: typeof AngleSliderValueText;
|
|
35
32
|
};
|
|
36
|
-
declare const useAngleSlider: (props?: UseAngleSliderProps | (() => UseAngleSliderProps)) => UseAngleSliderReturn;
|
|
37
33
|
export { AngleSlider, useAngleSlider, useAngleSliderContext };
|
|
@@ -13,11 +13,11 @@ function AngleSliderRoot(props) {
|
|
|
13
13
|
get asChild () {
|
|
14
14
|
return local.asChild;
|
|
15
15
|
},
|
|
16
|
-
"data-slot": "angle-slider-root",
|
|
17
16
|
get ["class"] () {
|
|
18
17
|
return clsx(AngleSlider_module.root, local.class);
|
|
19
18
|
}
|
|
20
19
|
}, others, {
|
|
20
|
+
"data-slot": "angle-slider-root",
|
|
21
21
|
get children () {
|
|
22
22
|
return local.children;
|
|
23
23
|
}
|
|
@@ -28,11 +28,12 @@ function AngleSliderLabel(props) {
|
|
|
28
28
|
'class'
|
|
29
29
|
]);
|
|
30
30
|
return createComponent(AngleSlider.Label, mergeProps({
|
|
31
|
-
"data-slot": "angle-slider-label",
|
|
32
31
|
get ["class"] () {
|
|
33
32
|
return clsx(AngleSlider_module.label, local.class);
|
|
34
33
|
}
|
|
35
|
-
}, others
|
|
34
|
+
}, others, {
|
|
35
|
+
"data-slot": "angle-slider-label"
|
|
36
|
+
}));
|
|
36
37
|
}
|
|
37
38
|
function AngleSliderRootProvider(props) {
|
|
38
39
|
const [local, others] = splitProps(props, [
|
|
@@ -48,11 +49,11 @@ function AngleSliderRootProvider(props) {
|
|
|
48
49
|
get value () {
|
|
49
50
|
return local.value;
|
|
50
51
|
},
|
|
51
|
-
"data-slot": "angle-slider-root-provider",
|
|
52
52
|
get ["class"] () {
|
|
53
53
|
return clsx(AngleSlider_module.root, local.class);
|
|
54
54
|
}
|
|
55
55
|
}, others, {
|
|
56
|
+
"data-slot": "angle-slider-root-provider",
|
|
56
57
|
get children () {
|
|
57
58
|
return local.children;
|
|
58
59
|
}
|
|
@@ -63,44 +64,48 @@ function AngleSliderControl(props) {
|
|
|
63
64
|
'class'
|
|
64
65
|
]);
|
|
65
66
|
return createComponent(AngleSlider.Control, mergeProps({
|
|
66
|
-
"data-slot": "angle-slider-control",
|
|
67
67
|
get ["class"] () {
|
|
68
68
|
return clsx(AngleSlider_module.control, local.class);
|
|
69
69
|
}
|
|
70
|
-
}, others
|
|
70
|
+
}, others, {
|
|
71
|
+
"data-slot": "angle-slider-control"
|
|
72
|
+
}));
|
|
71
73
|
}
|
|
72
74
|
function AngleSliderThumb(props) {
|
|
73
75
|
const [local, others] = splitProps(props, [
|
|
74
76
|
'class'
|
|
75
77
|
]);
|
|
76
78
|
return createComponent(AngleSlider.Thumb, mergeProps({
|
|
77
|
-
"data-slot": "angle-slider-thumb",
|
|
78
79
|
get ["class"] () {
|
|
79
80
|
return clsx(AngleSlider_module.thumb, local.class);
|
|
80
81
|
}
|
|
81
|
-
}, others
|
|
82
|
+
}, others, {
|
|
83
|
+
"data-slot": "angle-slider-thumb"
|
|
84
|
+
}));
|
|
82
85
|
}
|
|
83
86
|
function AngleSliderMarkerGroup(props) {
|
|
84
87
|
const [local, others] = splitProps(props, [
|
|
85
88
|
'class'
|
|
86
89
|
]);
|
|
87
90
|
return createComponent(AngleSlider.MarkerGroup, mergeProps({
|
|
88
|
-
"data-slot": "angle-slider-marker-group",
|
|
89
91
|
get ["class"] () {
|
|
90
92
|
return clsx(AngleSlider_module.markerGroup, local.class);
|
|
91
93
|
}
|
|
92
|
-
}, others
|
|
94
|
+
}, others, {
|
|
95
|
+
"data-slot": "angle-slider-marker-group"
|
|
96
|
+
}));
|
|
93
97
|
}
|
|
94
98
|
function AngleSliderMarker(props) {
|
|
95
99
|
const [local, others] = splitProps(props, [
|
|
96
100
|
'class'
|
|
97
101
|
]);
|
|
98
102
|
return createComponent(AngleSlider.Marker, mergeProps({
|
|
99
|
-
"data-slot": "angle-slider-marker",
|
|
100
103
|
get ["class"] () {
|
|
101
104
|
return clsx(AngleSlider_module.marker, local.class);
|
|
102
105
|
}
|
|
103
|
-
}, others
|
|
106
|
+
}, others, {
|
|
107
|
+
"data-slot": "angle-slider-marker"
|
|
108
|
+
}));
|
|
104
109
|
}
|
|
105
110
|
function AngleSliderMarks(props) {
|
|
106
111
|
const [local, others] = splitProps(props, [
|
|
@@ -137,11 +142,12 @@ function AngleSliderValueText(props) {
|
|
|
137
142
|
'class'
|
|
138
143
|
]);
|
|
139
144
|
return createComponent(AngleSlider.ValueText, mergeProps({
|
|
140
|
-
"data-slot": "angle-slider-value-text",
|
|
141
145
|
get ["class"] () {
|
|
142
146
|
return clsx(AngleSlider_module.valueText, local.class);
|
|
143
147
|
}
|
|
144
|
-
}, others
|
|
148
|
+
}, others, {
|
|
149
|
+
"data-slot": "angle-slider-value-text"
|
|
150
|
+
}));
|
|
145
151
|
}
|
|
146
152
|
const AngleSlider_AngleSlider = Object.assign(AngleSliderRoot, {
|
|
147
153
|
Root: AngleSliderRoot,
|
|
@@ -157,5 +163,4 @@ const AngleSlider_AngleSlider = Object.assign(AngleSliderRoot, {
|
|
|
157
163
|
Marks: AngleSliderMarks,
|
|
158
164
|
ValueText: AngleSliderValueText
|
|
159
165
|
});
|
|
160
|
-
|
|
161
|
-
export { AngleSlider_AngleSlider as AngleSlider, AngleSlider_useAngleSlider as useAngleSlider, useAngleSliderContext };
|
|
166
|
+
export { AngleSlider_AngleSlider as AngleSlider, useAngleSlider, useAngleSliderContext };
|
|
@@ -8,7 +8,7 @@ function AngleSliderRoot(props) {
|
|
|
8
8
|
'children',
|
|
9
9
|
'class'
|
|
10
10
|
]);
|
|
11
|
-
return <AngleSlider.Root asChild={local.asChild}
|
|
11
|
+
return <AngleSlider.Root asChild={local.asChild} class={clsx(AngleSlider_module.root, local.class)} {...others} data-slot="angle-slider-root">
|
|
12
12
|
{local.children}
|
|
13
13
|
</AngleSlider.Root>;
|
|
14
14
|
}
|
|
@@ -16,7 +16,7 @@ function AngleSliderLabel(props) {
|
|
|
16
16
|
const [local, others] = splitProps(props, [
|
|
17
17
|
'class'
|
|
18
18
|
]);
|
|
19
|
-
return <AngleSlider.Label
|
|
19
|
+
return <AngleSlider.Label class={clsx(AngleSlider_module.label, local.class)} {...others} data-slot="angle-slider-label"/>;
|
|
20
20
|
}
|
|
21
21
|
function AngleSliderRootProvider(props) {
|
|
22
22
|
const [local, others] = splitProps(props, [
|
|
@@ -25,7 +25,7 @@ function AngleSliderRootProvider(props) {
|
|
|
25
25
|
'class',
|
|
26
26
|
'value'
|
|
27
27
|
]);
|
|
28
|
-
return <AngleSlider.RootProvider asChild={local.asChild} value={local.value}
|
|
28
|
+
return <AngleSlider.RootProvider asChild={local.asChild} value={local.value} class={clsx(AngleSlider_module.root, local.class)} {...others} data-slot="angle-slider-root-provider">
|
|
29
29
|
{local.children}
|
|
30
30
|
</AngleSlider.RootProvider>;
|
|
31
31
|
}
|
|
@@ -33,25 +33,25 @@ function AngleSliderControl(props) {
|
|
|
33
33
|
const [local, others] = splitProps(props, [
|
|
34
34
|
'class'
|
|
35
35
|
]);
|
|
36
|
-
return <AngleSlider.Control
|
|
36
|
+
return <AngleSlider.Control class={clsx(AngleSlider_module.control, local.class)} {...others} data-slot="angle-slider-control"/>;
|
|
37
37
|
}
|
|
38
38
|
function AngleSliderThumb(props) {
|
|
39
39
|
const [local, others] = splitProps(props, [
|
|
40
40
|
'class'
|
|
41
41
|
]);
|
|
42
|
-
return <AngleSlider.Thumb
|
|
42
|
+
return <AngleSlider.Thumb class={clsx(AngleSlider_module.thumb, local.class)} {...others} data-slot="angle-slider-thumb"/>;
|
|
43
43
|
}
|
|
44
44
|
function AngleSliderMarkerGroup(props) {
|
|
45
45
|
const [local, others] = splitProps(props, [
|
|
46
46
|
'class'
|
|
47
47
|
]);
|
|
48
|
-
return <AngleSlider.MarkerGroup
|
|
48
|
+
return <AngleSlider.MarkerGroup class={clsx(AngleSlider_module.markerGroup, local.class)} {...others} data-slot="angle-slider-marker-group"/>;
|
|
49
49
|
}
|
|
50
50
|
function AngleSliderMarker(props) {
|
|
51
51
|
const [local, others] = splitProps(props, [
|
|
52
52
|
'class'
|
|
53
53
|
]);
|
|
54
|
-
return <AngleSlider.Marker
|
|
54
|
+
return <AngleSlider.Marker class={clsx(AngleSlider_module.marker, local.class)} {...others} data-slot="angle-slider-marker"/>;
|
|
55
55
|
}
|
|
56
56
|
function AngleSliderMarks(props) {
|
|
57
57
|
const [local, others] = splitProps(props, [
|
|
@@ -74,7 +74,7 @@ function AngleSliderValueText(props) {
|
|
|
74
74
|
const [local, others] = splitProps(props, [
|
|
75
75
|
'class'
|
|
76
76
|
]);
|
|
77
|
-
return <AngleSlider.ValueText
|
|
77
|
+
return <AngleSlider.ValueText class={clsx(AngleSlider_module.valueText, local.class)} {...others} data-slot="angle-slider-value-text"/>;
|
|
78
78
|
}
|
|
79
79
|
const AngleSlider_AngleSlider = Object.assign(AngleSliderRoot, {
|
|
80
80
|
Root: AngleSliderRoot,
|
|
@@ -90,5 +90,4 @@ const AngleSlider_AngleSlider = Object.assign(AngleSliderRoot, {
|
|
|
90
90
|
Marks: AngleSliderMarks,
|
|
91
91
|
ValueText: AngleSliderValueText
|
|
92
92
|
});
|
|
93
|
-
|
|
94
|
-
export { AngleSlider_AngleSlider as AngleSlider, AngleSlider_useAngleSlider as useAngleSlider, useAngleSliderContext };
|
|
93
|
+
export { AngleSlider_AngleSlider as AngleSlider, useAngleSlider, useAngleSliderContext };
|
|
@@ -9,14 +9,15 @@ function AvatarRoot(props) {
|
|
|
9
9
|
'size'
|
|
10
10
|
]);
|
|
11
11
|
return createComponent(Avatar.Root, mergeProps({
|
|
12
|
-
"data-slot": "avatar-root",
|
|
13
12
|
get ["data-size"] () {
|
|
14
13
|
return local.size;
|
|
15
14
|
},
|
|
16
15
|
get ["class"] () {
|
|
17
16
|
return clsx(Avatar_module.root, local.class);
|
|
18
17
|
}
|
|
19
|
-
}, others
|
|
18
|
+
}, others, {
|
|
19
|
+
"data-slot": "avatar-root"
|
|
20
|
+
}));
|
|
20
21
|
}
|
|
21
22
|
function AvatarRootProvider(props) {
|
|
22
23
|
const [local, others] = splitProps(props, [
|
|
@@ -24,25 +25,27 @@ function AvatarRootProvider(props) {
|
|
|
24
25
|
'size'
|
|
25
26
|
]);
|
|
26
27
|
return createComponent(Avatar.RootProvider, mergeProps({
|
|
27
|
-
"data-slot": "avatar-root-provider",
|
|
28
28
|
get ["data-size"] () {
|
|
29
29
|
return local.size;
|
|
30
30
|
},
|
|
31
31
|
get ["class"] () {
|
|
32
32
|
return clsx(Avatar_module.root, local.class);
|
|
33
33
|
}
|
|
34
|
-
}, others
|
|
34
|
+
}, others, {
|
|
35
|
+
"data-slot": "avatar-root-provider"
|
|
36
|
+
}));
|
|
35
37
|
}
|
|
36
38
|
function AvatarImage(props) {
|
|
37
39
|
const [local, others] = splitProps(props, [
|
|
38
40
|
'class'
|
|
39
41
|
]);
|
|
40
42
|
return createComponent(Avatar.Image, mergeProps({
|
|
41
|
-
"data-slot": "avatar-image",
|
|
42
43
|
get ["class"] () {
|
|
43
44
|
return clsx(Avatar_module.image, local.class);
|
|
44
45
|
}
|
|
45
|
-
}, others
|
|
46
|
+
}, others, {
|
|
47
|
+
"data-slot": "avatar-image"
|
|
48
|
+
}));
|
|
46
49
|
}
|
|
47
50
|
function AvatarFallback(props) {
|
|
48
51
|
const [local, others] = splitProps(props, [
|
|
@@ -50,11 +53,11 @@ function AvatarFallback(props) {
|
|
|
50
53
|
'class'
|
|
51
54
|
]);
|
|
52
55
|
return createComponent(Avatar.Fallback, mergeProps({
|
|
53
|
-
"data-slot": "avatar-fallback",
|
|
54
56
|
get ["class"] () {
|
|
55
57
|
return clsx(Avatar_module.fallback, local.class);
|
|
56
58
|
}
|
|
57
59
|
}, others, {
|
|
60
|
+
"data-slot": "avatar-fallback",
|
|
58
61
|
get children () {
|
|
59
62
|
return local.children;
|
|
60
63
|
}
|
|
@@ -7,27 +7,27 @@ function AvatarRoot(props) {
|
|
|
7
7
|
'class',
|
|
8
8
|
'size'
|
|
9
9
|
]);
|
|
10
|
-
return <Avatar.Root data-
|
|
10
|
+
return <Avatar.Root data-size={local.size} class={clsx(Avatar_module.root, local.class)} {...others} data-slot="avatar-root"/>;
|
|
11
11
|
}
|
|
12
12
|
function AvatarRootProvider(props) {
|
|
13
13
|
const [local, others] = splitProps(props, [
|
|
14
14
|
'class',
|
|
15
15
|
'size'
|
|
16
16
|
]);
|
|
17
|
-
return <Avatar.RootProvider data-
|
|
17
|
+
return <Avatar.RootProvider data-size={local.size} class={clsx(Avatar_module.root, local.class)} {...others} data-slot="avatar-root-provider"/>;
|
|
18
18
|
}
|
|
19
19
|
function AvatarImage(props) {
|
|
20
20
|
const [local, others] = splitProps(props, [
|
|
21
21
|
'class'
|
|
22
22
|
]);
|
|
23
|
-
return <Avatar.Image
|
|
23
|
+
return <Avatar.Image class={clsx(Avatar_module.image, local.class)} {...others} data-slot="avatar-image"/>;
|
|
24
24
|
}
|
|
25
25
|
function AvatarFallback(props) {
|
|
26
26
|
const [local, others] = splitProps(props, [
|
|
27
27
|
'children',
|
|
28
28
|
'class'
|
|
29
29
|
]);
|
|
30
|
-
return <Avatar.Fallback
|
|
30
|
+
return <Avatar.Fallback class={clsx(Avatar_module.fallback, local.class)} {...others} data-slot="avatar-fallback">
|
|
31
31
|
{local.children}
|
|
32
32
|
</Avatar.Fallback>;
|
|
33
33
|
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { createComponent, memo, mergeProps } from "solid-js/web";
|
|
2
|
-
import { useFocusVisible } from "@ark-ui/solid";
|
|
3
2
|
import { ark } from "@ark-ui/solid/factory";
|
|
4
3
|
import { clsx } from "clsx";
|
|
5
4
|
import { splitProps } from "solid-js";
|
|
6
5
|
import Button_module from "./Button.module.js";
|
|
7
6
|
const ArkButton = ark.button;
|
|
8
7
|
function ButtonRoot(props) {
|
|
9
|
-
const focusVisible = useFocusVisible();
|
|
10
8
|
const [local, others] = splitProps(props, [
|
|
11
9
|
'asChild',
|
|
12
10
|
'class',
|
|
@@ -71,9 +69,6 @@ function ButtonRoot(props) {
|
|
|
71
69
|
get ["data-disabled"] () {
|
|
72
70
|
return isDisabled() ? '' : void 0;
|
|
73
71
|
},
|
|
74
|
-
get ["data-focus-visible"] () {
|
|
75
|
-
return focusVisible() ? '' : void 0;
|
|
76
|
-
},
|
|
77
72
|
get ["data-loading"] () {
|
|
78
73
|
return local.loading ? '' : void 0;
|
|
79
74
|
},
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { useFocusVisible } from "@ark-ui/solid";
|
|
2
1
|
import { ark } from "@ark-ui/solid/factory";
|
|
3
2
|
import { clsx } from "clsx";
|
|
4
3
|
import { splitProps } from "solid-js";
|
|
5
4
|
import Button_module from "./Button.module.jsx";
|
|
6
5
|
const ArkButton = ark.button;
|
|
7
6
|
function ButtonRoot(props) {
|
|
8
|
-
const focusVisible = useFocusVisible();
|
|
9
7
|
const [local, others] = splitProps(props, [
|
|
10
8
|
'asChild',
|
|
11
9
|
'class',
|
|
@@ -31,7 +29,7 @@ function ButtonRoot(props) {
|
|
|
31
29
|
}
|
|
32
30
|
local.onClickCapture?.(event);
|
|
33
31
|
};
|
|
34
|
-
return <ArkButton asChild={local.asChild} {...others} type={local.asChild ? local.type : local.type ?? 'button'} disabled={local.asChild ? void 0 : isDisabled()} aria-busy={local.loading ? true : local['aria-busy']} aria-disabled={isDisabled() ? true : local['aria-disabled']} oncapture:click={handleClickCapture} onClick={local.onClick} data-scope={local['data-scope'] ?? 'button'} data-part={local['data-part'] ?? 'root'} data-slot={local['data-slot'] ?? 'button-root'} data-variant={local.variant ?? 'default'} data-size={local.size ?? 'md'} data-disabled={isDisabled() ? '' : void 0} data-
|
|
32
|
+
return <ArkButton asChild={local.asChild} {...others} type={local.asChild ? local.type : local.type ?? 'button'} disabled={local.asChild ? void 0 : isDisabled()} aria-busy={local.loading ? true : local['aria-busy']} aria-disabled={isDisabled() ? true : local['aria-disabled']} oncapture:click={handleClickCapture} onClick={local.onClick} data-scope={local['data-scope'] ?? 'button'} data-part={local['data-part'] ?? 'root'} data-slot={local['data-slot'] ?? 'button-root'} data-variant={local.variant ?? 'default'} data-size={local.size ?? 'md'} data-disabled={isDisabled() ? '' : void 0} data-loading={local.loading ? '' : void 0} class={clsx(Button_module.root, local.class)}/>;
|
|
35
33
|
}
|
|
36
34
|
const Button = Object.assign(ButtonRoot, {
|
|
37
35
|
Root: ButtonRoot
|