@codefast/ui 0.3.11 → 0.3.12-canary.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/CHANGELOG.md +15 -0
- package/README.md +4 -0
- package/dist/components/accordion.d.ts +11 -29
- package/dist/components/accordion.d.ts.map +1 -0
- package/dist/components/accordion.js +10 -37
- package/dist/components/alert-dialog.d.ts +25 -60
- package/dist/components/alert-dialog.d.ts.map +1 -0
- package/dist/components/alert-dialog.js +16 -69
- package/dist/components/alert.d.ts +16 -27
- package/dist/components/alert.d.ts.map +1 -0
- package/dist/components/alert.js +22 -30
- package/dist/components/aspect-ratio.d.ts +5 -8
- package/dist/components/aspect-ratio.d.ts.map +1 -0
- package/dist/components/aspect-ratio.js +5 -7
- package/dist/components/avatar.d.ts +7 -17
- package/dist/components/avatar.d.ts.map +1 -0
- package/dist/components/avatar.js +7 -18
- package/dist/components/badge.d.ts +15 -21
- package/dist/components/badge.d.ts.map +1 -0
- package/dist/components/badge.js +23 -20
- package/dist/components/breadcrumb.d.ts +13 -35
- package/dist/components/breadcrumb.d.ts.map +1 -0
- package/dist/components/breadcrumb.js +13 -49
- package/dist/components/button-group.d.ts +15 -29
- package/dist/components/button-group.d.ts.map +1 -0
- package/dist/components/button-group.js +22 -27
- package/dist/components/button.d.ts +26 -35
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/button.js +43 -51
- package/dist/components/calendar.d.ts +10 -24
- package/dist/components/calendar.d.ts.map +1 -0
- package/dist/components/calendar.js +75 -92
- package/dist/components/card.d.ts +11 -34
- package/dist/components/card.d.ts.map +1 -0
- package/dist/components/card.js +11 -39
- package/dist/components/carousel.d.ts +25 -55
- package/dist/components/carousel.d.ts.map +1 -0
- package/dist/components/carousel.js +82 -114
- package/dist/components/chart.d.ts +37 -72
- package/dist/components/chart.d.ts.map +1 -0
- package/dist/components/chart.js +161 -150
- package/dist/components/checkbox-cards.d.ts +9 -15
- package/dist/components/checkbox-cards.d.ts.map +1 -0
- package/dist/components/checkbox-cards.js +8 -22
- package/dist/components/checkbox-group.d.ts +9 -16
- package/dist/components/checkbox-group.d.ts.map +1 -0
- package/dist/components/checkbox-group.js +7 -19
- package/dist/components/checkbox.d.ts +5 -9
- package/dist/components/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox.js +6 -14
- package/dist/components/collapsible.d.ts +7 -14
- package/dist/components/collapsible.d.ts.map +1 -0
- package/dist/components/collapsible.js +7 -15
- package/dist/components/command.d.ts +24 -55
- package/dist/components/command.d.ts.map +1 -0
- package/dist/components/command.js +18 -69
- package/dist/components/context-menu.d.ts +23 -72
- package/dist/components/context-menu.d.ts.map +1 -0
- package/dist/components/context-menu.js +21 -89
- package/dist/components/dialog.d.ts +23 -53
- package/dist/components/dialog.d.ts.map +1 -0
- package/dist/components/dialog.js +20 -72
- package/dist/components/drawer.d.ts +29 -60
- package/dist/components/drawer.d.ts.map +1 -0
- package/dist/components/drawer.js +16 -58
- package/dist/components/dropdown-menu.d.ts +23 -73
- package/dist/components/dropdown-menu.d.ts.map +1 -0
- package/dist/components/dropdown-menu.js +21 -96
- package/dist/components/empty.d.ts +16 -37
- package/dist/components/empty.d.ts.map +1 -0
- package/dist/components/empty.js +24 -44
- package/dist/components/field.d.ts +26 -63
- package/dist/components/field.d.ts.map +1 -0
- package/dist/components/field.js +46 -89
- package/dist/components/form.d.ts +16 -37
- package/dist/components/form.d.ts.map +1 -0
- package/dist/components/form.js +50 -66
- package/dist/components/hover-card.d.ts +8 -21
- package/dist/components/hover-card.d.ts.map +1 -0
- package/dist/components/hover-card.js +8 -23
- package/dist/components/input-group.d.ts +29 -53
- package/dist/components/input-group.d.ts.map +1 -0
- package/dist/components/input-group.js +59 -66
- package/dist/components/input-number.d.ts +8 -28
- package/dist/components/input-number.d.ts.map +1 -0
- package/dist/components/input-number.js +14 -55
- package/dist/components/input-otp.d.ts +11 -24
- package/dist/components/input-otp.d.ts.map +1 -0
- package/dist/components/input-otp.js +13 -34
- package/dist/components/input-password.d.ts +6 -12
- package/dist/components/input-password.d.ts.map +1 -0
- package/dist/components/input-password.js +10 -31
- package/dist/components/input-search.d.ts +9 -18
- package/dist/components/input-search.d.ts.map +1 -0
- package/dist/components/input-search.js +16 -44
- package/dist/components/input.d.ts +5 -10
- package/dist/components/input.d.ts.map +1 -0
- package/dist/components/input.js +5 -9
- package/dist/components/item.d.ts +33 -69
- package/dist/components/item.d.ts.map +1 -0
- package/dist/components/item.js +47 -90
- package/dist/components/kbd.d.ts +6 -13
- package/dist/components/kbd.d.ts.map +1 -0
- package/dist/components/kbd.js +6 -13
- package/dist/components/label.d.ts +5 -9
- package/dist/components/label.d.ts.map +1 -0
- package/dist/components/label.js +5 -8
- package/dist/components/menubar.d.ts +24 -80
- package/dist/components/menubar.d.ts.map +1 -0
- package/dist/components/menubar.js +23 -99
- package/dist/components/native-select.d.ts +7 -16
- package/dist/components/native-select.d.ts.map +1 -0
- package/dist/components/native-select.js +7 -25
- package/dist/components/navigation-menu.d.ts +13 -36
- package/dist/components/navigation-menu.d.ts.map +1 -0
- package/dist/components/navigation-menu.js +25 -61
- package/dist/components/pagination.d.ts +15 -35
- package/dist/components/pagination.d.ts.map +1 -0
- package/dist/components/pagination.js +13 -55
- package/dist/components/popover.d.ts +9 -24
- package/dist/components/popover.d.ts.map +1 -0
- package/dist/components/popover.js +9 -27
- package/dist/components/progress-circle.d.ts +89 -106
- package/dist/components/progress-circle.d.ts.map +1 -0
- package/dist/components/progress-circle.js +70 -103
- package/dist/components/progress.d.ts +5 -10
- package/dist/components/progress.d.ts.map +1 -0
- package/dist/components/progress.js +7 -13
- package/dist/components/radio-cards.d.ts +5 -10
- package/dist/components/radio-cards.d.ts.map +1 -0
- package/dist/components/radio-cards.js +7 -21
- package/dist/components/radio-group.d.ts +6 -13
- package/dist/components/radio-group.d.ts.map +1 -0
- package/dist/components/radio-group.js +6 -17
- package/dist/components/radio.d.ts +6 -12
- package/dist/components/radio.d.ts.map +1 -0
- package/dist/components/radio.js +5 -10
- package/dist/components/resizable.d.ts +8 -18
- package/dist/components/resizable.d.ts.map +1 -0
- package/dist/components/resizable.js +7 -21
- package/dist/components/scroll-area.d.ts +21 -33
- package/dist/components/scroll-area.d.ts.map +1 -0
- package/dist/components/scroll-area.js +64 -84
- package/dist/components/select.d.ts +17 -50
- package/dist/components/select.d.ts.map +1 -0
- package/dist/components/select.js +26 -78
- package/dist/components/separator.d.ts +20 -29
- package/dist/components/separator.d.ts.map +1 -0
- package/dist/components/separator.js +27 -36
- package/dist/components/sheet.d.ts +30 -62
- package/dist/components/sheet.d.ts.map +1 -0
- package/dist/components/sheet.js +36 -80
- package/dist/components/sidebar.d.ts +67 -160
- package/dist/components/sidebar.d.ts.map +1 -0
- package/dist/components/sidebar.js +166 -301
- package/dist/components/skeleton.d.ts +5 -9
- package/dist/components/skeleton.d.ts.map +1 -0
- package/dist/components/skeleton.js +5 -8
- package/dist/components/slider.d.ts +5 -13
- package/dist/components/slider.d.ts.map +1 -0
- package/dist/components/slider.js +12 -34
- package/dist/components/sonner.d.ts +8 -10
- package/dist/components/sonner.d.ts.map +1 -0
- package/dist/components/sonner.js +13 -16
- package/dist/components/spinner.d.ts +6 -12
- package/dist/components/spinner.d.ts.map +1 -0
- package/dist/components/spinner.js +20 -33
- package/dist/components/switch.d.ts +5 -9
- package/dist/components/switch.d.ts.map +1 -0
- package/dist/components/switch.js +5 -12
- package/dist/components/table.d.ts +12 -37
- package/dist/components/table.d.ts.map +1 -0
- package/dist/components/table.js +12 -47
- package/dist/components/tabs.d.ts +8 -21
- package/dist/components/tabs.d.ts.map +1 -0
- package/dist/components/tabs.js +8 -23
- package/dist/components/textarea.d.ts +5 -9
- package/dist/components/textarea.d.ts.map +1 -0
- package/dist/components/textarea.js +5 -8
- package/dist/components/toggle-group.d.ts +10 -24
- package/dist/components/toggle-group.d.ts.map +1 -0
- package/dist/components/toggle-group.js +20 -38
- package/dist/components/toggle.d.ts +18 -25
- package/dist/components/toggle.d.ts.map +1 -0
- package/dist/components/toggle.js +24 -29
- package/dist/components/tooltip.d.ts +9 -24
- package/dist/components/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip.js +9 -28
- package/dist/hooks/use-animated-value.d.ts +2 -4
- package/dist/hooks/use-animated-value.d.ts.map +1 -0
- package/dist/hooks/use-animated-value.js +67 -58
- package/dist/hooks/use-copy-to-clipboard.d.ts +6 -11
- package/dist/hooks/use-copy-to-clipboard.d.ts.map +1 -0
- package/dist/hooks/use-copy-to-clipboard.js +42 -39
- package/dist/hooks/use-is-mobile.d.ts +2 -4
- package/dist/hooks/use-is-mobile.d.ts.map +1 -0
- package/dist/hooks/use-is-mobile.js +20 -23
- package/dist/hooks/use-media-query.d.ts +2 -4
- package/dist/hooks/use-media-query.d.ts.map +1 -0
- package/dist/hooks/use-media-query.js +49 -46
- package/dist/hooks/use-mutation-observer.d.ts +3 -6
- package/dist/hooks/use-mutation-observer.d.ts.map +1 -0
- package/dist/hooks/use-mutation-observer.js +33 -34
- package/dist/hooks/use-pagination.d.ts +15 -22
- package/dist/hooks/use-pagination.d.ts.map +1 -0
- package/dist/hooks/use-pagination.js +99 -99
- package/dist/index.d.ts +131 -69
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +68 -69
- package/dist/primitives/checkbox-group.d.ts +84 -105
- package/dist/primitives/checkbox-group.d.ts.map +1 -0
- package/dist/primitives/checkbox-group.js +91 -105
- package/dist/primitives/input-number.d.ts +41 -51
- package/dist/primitives/input-number.d.ts.map +1 -0
- package/dist/primitives/input-number.js +417 -473
- package/dist/primitives/input.d.ts +43 -48
- package/dist/primitives/input.d.ts.map +1 -0
- package/dist/primitives/input.js +67 -66
- package/dist/primitives/progress-circle.d.ts +49 -79
- package/dist/primitives/progress-circle.d.ts.map +1 -0
- package/dist/primitives/progress-circle.js +134 -149
- package/package.json +17 -10
- package/{dist → src}/css/preset.css +1 -1
- /package/{dist → src}/css/amber.css +0 -0
- /package/{dist → src}/css/blue.css +0 -0
- /package/{dist → src}/css/cyan.css +0 -0
- /package/{dist → src}/css/emerald.css +0 -0
- /package/{dist → src}/css/fuchsia.css +0 -0
- /package/{dist → src}/css/gray.css +0 -0
- /package/{dist → src}/css/green.css +0 -0
- /package/{dist → src}/css/indigo.css +0 -0
- /package/{dist → src}/css/lime.css +0 -0
- /package/{dist → src}/css/neutral.css +0 -0
- /package/{dist → src}/css/orange.css +0 -0
- /package/{dist → src}/css/pink.css +0 -0
- /package/{dist → src}/css/purple.css +0 -0
- /package/{dist → src}/css/red.css +0 -0
- /package/{dist → src}/css/rose.css +0 -0
- /package/{dist → src}/css/sky.css +0 -0
- /package/{dist → src}/css/slate.css +0 -0
- /package/{dist → src}/css/stone.css +0 -0
- /package/{dist → src}/css/style.css +0 -0
- /package/{dist → src}/css/teal.css +0 -0
- /package/{dist → src}/css/violet.css +0 -0
- /package/{dist → src}/css/yellow.css +0 -0
- /package/{dist → src}/css/zinc.css +0 -0
|
@@ -1,92 +1,89 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { Scope } from "@radix-ui/react-context";
|
|
1
|
+
import type { Scope } from "@radix-ui/react-context";
|
|
2
|
+
import type { ComponentProps, JSX } from "react";
|
|
4
3
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
5
4
|
import * as RovingFocusGroup from "@radix-ui/react-roving-focus";
|
|
6
|
-
|
|
7
|
-
//#region src/primitives/checkbox-group.d.ts
|
|
8
5
|
/**
|
|
9
6
|
* Type for components that can be scoped within the CheckboxGroup context
|
|
10
7
|
*/
|
|
11
8
|
type ScopedProps<P> = P & {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Optional scope for the CheckboxGroup component
|
|
11
|
+
*/
|
|
12
|
+
__scopeCheckboxGroup?: Scope;
|
|
16
13
|
};
|
|
17
|
-
declare const createCheckboxGroupScope:
|
|
14
|
+
declare const createCheckboxGroupScope: import("@radix-ui/react-context").CreateScope;
|
|
18
15
|
/**
|
|
19
16
|
* Context values shared between CheckboxGroup components
|
|
20
17
|
*/
|
|
21
18
|
interface CheckboxGroupContextValue {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Whether all checkbox items are disabled
|
|
21
|
+
*/
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Function called when a checkbox item is checked
|
|
25
|
+
* @param value - The value of the checked item
|
|
26
|
+
*/
|
|
27
|
+
onItemCheck: (value: string) => void;
|
|
28
|
+
/**
|
|
29
|
+
* Function called when a checkbox item is unchecked
|
|
30
|
+
* @param value - The value of the unchecked item
|
|
31
|
+
*/
|
|
32
|
+
onItemUncheck: (value: string) => void;
|
|
33
|
+
/**
|
|
34
|
+
* Whether checkbox selection is required
|
|
35
|
+
*/
|
|
36
|
+
required: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Optional name attribute for the checkbox group form field
|
|
39
|
+
*/
|
|
40
|
+
name?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Array of currently selected checkbox values
|
|
43
|
+
*/
|
|
44
|
+
value?: string[];
|
|
48
45
|
}
|
|
49
46
|
/**
|
|
50
47
|
* Base props for the CheckboxGroup component
|
|
51
48
|
*/
|
|
52
49
|
interface CheckboxGroupBaseProps {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
50
|
+
/**
|
|
51
|
+
* Default values for the checkbox group when uncontrolled
|
|
52
|
+
*/
|
|
53
|
+
defaultValue?: string[];
|
|
54
|
+
/**
|
|
55
|
+
* Direction for roving focus navigation
|
|
56
|
+
*/
|
|
57
|
+
dir?: RovingFocusGroup.RovingFocusGroupProps["dir"];
|
|
58
|
+
/**
|
|
59
|
+
* Whether the entire checkbox group is disabled
|
|
60
|
+
*/
|
|
61
|
+
disabled?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Whether focus should loop to the start/end when reaching the boundaries
|
|
64
|
+
*/
|
|
65
|
+
loop?: RovingFocusGroup.RovingFocusGroupProps["loop"];
|
|
66
|
+
/**
|
|
67
|
+
* Name attribute for the checkbox group form field
|
|
68
|
+
*/
|
|
69
|
+
name?: CheckboxGroupContextValue["name"];
|
|
70
|
+
/**
|
|
71
|
+
* Callback fired when the selected values change
|
|
72
|
+
* @param value - The new array of selected values
|
|
73
|
+
*/
|
|
74
|
+
onValueChange?: (value?: string[]) => void;
|
|
75
|
+
/**
|
|
76
|
+
* Orientation of the checkbox group (horizontal or vertical)
|
|
77
|
+
*/
|
|
78
|
+
orientation?: RovingFocusGroup.RovingFocusGroupProps["orientation"];
|
|
79
|
+
/**
|
|
80
|
+
* Whether at least one checkbox must be selected
|
|
81
|
+
*/
|
|
82
|
+
required?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Controlled values for the checkbox group
|
|
85
|
+
*/
|
|
86
|
+
value?: CheckboxGroupContextValue["value"];
|
|
90
87
|
}
|
|
91
88
|
/**
|
|
92
89
|
* Props for the CheckboxGroup component
|
|
@@ -95,40 +92,24 @@ type CheckboxGroupProps = CheckboxGroupBaseProps & ComponentProps<"div">;
|
|
|
95
92
|
/**
|
|
96
93
|
* CheckboxGroup component that manages a group of checkboxes with roving focus
|
|
97
94
|
*/
|
|
98
|
-
declare function CheckboxGroup({
|
|
99
|
-
__scopeCheckboxGroup,
|
|
100
|
-
defaultValue,
|
|
101
|
-
dir,
|
|
102
|
-
disabled,
|
|
103
|
-
loop,
|
|
104
|
-
name,
|
|
105
|
-
onValueChange,
|
|
106
|
-
orientation,
|
|
107
|
-
required,
|
|
108
|
-
value: valueProperty,
|
|
109
|
-
...props
|
|
110
|
-
}: ScopedProps<CheckboxGroupProps>): JSX.Element;
|
|
95
|
+
declare function CheckboxGroup({ __scopeCheckboxGroup, defaultValue, dir, disabled, loop, name, onValueChange, orientation, required, value: valueProperty, ...props }: ScopedProps<CheckboxGroupProps>): JSX.Element;
|
|
111
96
|
/**
|
|
112
97
|
* Props for the CheckboxGroupItem component
|
|
113
98
|
*/
|
|
114
99
|
interface CheckboxGroupItemProps extends Omit<ComponentProps<typeof CheckboxPrimitive.Root>, "checked" | "defaultChecked" | "name" | "onCheckedChange"> {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
100
|
+
/**
|
|
101
|
+
* Value of the checkbox item, used to identify the item within the group
|
|
102
|
+
*/
|
|
103
|
+
value: string;
|
|
104
|
+
/**
|
|
105
|
+
* Whether this specific checkbox item is disabled
|
|
106
|
+
*/
|
|
107
|
+
disabled?: boolean;
|
|
123
108
|
}
|
|
124
109
|
/**
|
|
125
110
|
* Individual checkbox item within a CheckboxGroup
|
|
126
111
|
*/
|
|
127
|
-
declare function CheckboxGroupItem({
|
|
128
|
-
__scopeCheckboxGroup,
|
|
129
|
-
disabled,
|
|
130
|
-
...props
|
|
131
|
-
}: ScopedProps<CheckboxGroupItemProps>): JSX.Element;
|
|
112
|
+
declare function CheckboxGroupItem({ __scopeCheckboxGroup, disabled, ...props }: ScopedProps<CheckboxGroupItemProps>): JSX.Element;
|
|
132
113
|
/**
|
|
133
114
|
* Props for the CheckboxGroupIndicator component
|
|
134
115
|
*/
|
|
@@ -136,9 +117,7 @@ type CheckboxGroupIndicatorProps = ComponentProps<typeof CheckboxPrimitive.Indic
|
|
|
136
117
|
/**
|
|
137
118
|
* Visual indicator component for a CheckboxGroupItem
|
|
138
119
|
*/
|
|
139
|
-
declare function CheckboxGroupIndicator({
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
//#endregion
|
|
144
|
-
export { CheckboxGroup, CheckboxGroup as Root, CheckboxGroupIndicator, CheckboxGroupIndicator as Indicator, type CheckboxGroupIndicatorProps, CheckboxGroupItem, CheckboxGroupItem as Item, type CheckboxGroupItemProps, type CheckboxGroupProps, createCheckboxGroupScope };
|
|
120
|
+
declare function CheckboxGroupIndicator({ __scopeCheckboxGroup, ...props }: ScopedProps<CheckboxGroupIndicatorProps>): JSX.Element;
|
|
121
|
+
export { CheckboxGroup, CheckboxGroupIndicator, CheckboxGroupItem, createCheckboxGroupScope, CheckboxGroupIndicator as Indicator, CheckboxGroupItem as Item, CheckboxGroup as Root, };
|
|
122
|
+
export type { CheckboxGroupIndicatorProps, CheckboxGroupItemProps, CheckboxGroupProps };
|
|
123
|
+
//# sourceMappingURL=checkbox-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox-group.d.ts","sourceRoot":"","sources":["../../src/primitives/checkbox-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAA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AE,CAAC"}
|
|
@@ -1,126 +1,112 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback } from "react";
|
|
3
|
-
import { createContextScope } from "@radix-ui/react-context";
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
2
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
5
3
|
import { createCheckboxScope } from "@radix-ui/react-checkbox";
|
|
4
|
+
import { createContextScope } from "@radix-ui/react-context";
|
|
6
5
|
import { useDirection } from "@radix-ui/react-direction";
|
|
7
6
|
import * as RovingFocusGroup from "@radix-ui/react-roving-focus";
|
|
8
7
|
import { createRovingFocusGroupScope } from "@radix-ui/react-roving-focus";
|
|
9
8
|
import { useControllableState } from "@radix-ui/react-use-controllable-state";
|
|
10
|
-
|
|
9
|
+
import { useCallback } from "react";
|
|
10
|
+
/* -----------------------------------------------------------------------------
|
|
11
|
+
* Context: CheckboxGroup
|
|
12
|
+
* --------------------------------------------------------------------------- */
|
|
11
13
|
const CHECKBOX_GROUP_NAME = "CheckboxGroup";
|
|
12
14
|
const [createCheckboxGroupContext, createCheckboxGroupScope] = createContextScope(CHECKBOX_GROUP_NAME, [createRovingFocusGroupScope, createCheckboxScope]);
|
|
13
15
|
const useRovingFocusGroupScope = createRovingFocusGroupScope();
|
|
14
16
|
const useCheckboxScope = createCheckboxScope();
|
|
15
17
|
const [CheckboxGroupContextProvider, useCheckboxGroupContext] = createCheckboxGroupContext(CHECKBOX_GROUP_NAME);
|
|
16
18
|
/**
|
|
17
|
-
* CheckboxGroup component that manages a group of checkboxes with roving focus
|
|
18
|
-
*/
|
|
19
|
+
* CheckboxGroup component that manages a group of checkboxes with roving focus
|
|
20
|
+
*/
|
|
19
21
|
function CheckboxGroup({ __scopeCheckboxGroup, defaultValue, dir, disabled = false, loop = true, name, onValueChange, orientation, required = false, value: valueProperty, ...props }) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"data-disabled": disabled ? "" : void 0,
|
|
60
|
-
dir: direction,
|
|
61
|
-
role: "group",
|
|
62
|
-
...props
|
|
63
|
-
})
|
|
64
|
-
})
|
|
65
|
-
});
|
|
22
|
+
/**
|
|
23
|
+
* Scope for the RovingFocusGroup component
|
|
24
|
+
*/
|
|
25
|
+
const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeCheckboxGroup);
|
|
26
|
+
/**
|
|
27
|
+
* Direction for layout and navigation
|
|
28
|
+
*/
|
|
29
|
+
const direction = useDirection(dir);
|
|
30
|
+
/**
|
|
31
|
+
* State for managing selected checkbox values
|
|
32
|
+
*/
|
|
33
|
+
const [value = [], setValue] = useControllableState({
|
|
34
|
+
defaultProp: defaultValue,
|
|
35
|
+
onChange: onValueChange,
|
|
36
|
+
prop: valueProperty,
|
|
37
|
+
});
|
|
38
|
+
/**
|
|
39
|
+
* Handles checking a checkbox item
|
|
40
|
+
* @param itemValue - Value of the checkbox being checked
|
|
41
|
+
*/
|
|
42
|
+
const handleItemCheck = useCallback((itemValue) => {
|
|
43
|
+
setValue((previousValue) => [...(previousValue ?? []), itemValue]);
|
|
44
|
+
}, [setValue]);
|
|
45
|
+
/**
|
|
46
|
+
* Handles unchecking a checkbox item
|
|
47
|
+
* @param itemValue - Value of the checkbox being unchecked
|
|
48
|
+
*/
|
|
49
|
+
const handleItemUncheck = useCallback((itemValue) => {
|
|
50
|
+
setValue((previousValue) => {
|
|
51
|
+
const currentValue = previousValue ?? [];
|
|
52
|
+
// If this is the last selected item and required=true, prevent unchecking
|
|
53
|
+
if (required && currentValue.length === 1 && currentValue[0] === itemValue) {
|
|
54
|
+
return currentValue; // Keep the current state
|
|
55
|
+
}
|
|
56
|
+
// Otherwise, proceed with unchecking
|
|
57
|
+
return currentValue.filter((inputValue) => inputValue !== itemValue);
|
|
58
|
+
});
|
|
59
|
+
}, [setValue, required]);
|
|
60
|
+
return (_jsx(CheckboxGroupContextProvider, { disabled: disabled, name: name, required: required, scope: __scopeCheckboxGroup, value: value, onItemCheck: handleItemCheck, onItemUncheck: handleItemUncheck, children: _jsx(RovingFocusGroup.Root, { asChild: true, ...rovingFocusGroupScope, dir: direction, loop: loop, orientation: orientation, children: _jsx("div", { "data-disabled": disabled ? "" : undefined, dir: direction, role: "group", ...props }) }) }));
|
|
66
61
|
}
|
|
62
|
+
/* -----------------------------------------------------------------------------
|
|
63
|
+
* Component: CheckboxGroupItem
|
|
64
|
+
* --------------------------------------------------------------------------- */
|
|
67
65
|
const ITEM_NAME = "CheckboxGroupItem";
|
|
68
66
|
/**
|
|
69
|
-
* Individual checkbox item within a CheckboxGroup
|
|
70
|
-
*/
|
|
67
|
+
* Individual checkbox item within a CheckboxGroup
|
|
68
|
+
*/
|
|
71
69
|
function CheckboxGroupItem({ __scopeCheckboxGroup, disabled, ...props }) {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
disabled: isDisabled,
|
|
101
|
-
name: context.name,
|
|
102
|
-
required: context.required,
|
|
103
|
-
...checkboxScope,
|
|
104
|
-
...props,
|
|
105
|
-
onCheckedChange: (checkedState) => {
|
|
106
|
-
if (checkedState) context.onItemCheck(props.value);
|
|
107
|
-
else context.onItemUncheck(props.value);
|
|
108
|
-
}
|
|
109
|
-
})
|
|
110
|
-
});
|
|
70
|
+
/**
|
|
71
|
+
* Context values from the parent CheckboxGroup
|
|
72
|
+
*/
|
|
73
|
+
const context = useCheckboxGroupContext(ITEM_NAME, __scopeCheckboxGroup);
|
|
74
|
+
/**
|
|
75
|
+
* Combined disabled state from both context and props
|
|
76
|
+
*/
|
|
77
|
+
const isDisabled = context.disabled || disabled;
|
|
78
|
+
/**
|
|
79
|
+
* Scope for the RovingFocusGroup component
|
|
80
|
+
*/
|
|
81
|
+
const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeCheckboxGroup);
|
|
82
|
+
/**
|
|
83
|
+
* Scope for the Checkbox component
|
|
84
|
+
*/
|
|
85
|
+
const checkboxScope = useCheckboxScope(__scopeCheckboxGroup);
|
|
86
|
+
/**
|
|
87
|
+
* Whether this checkbox is currently checked
|
|
88
|
+
*/
|
|
89
|
+
const checked = context.value?.includes(props.value);
|
|
90
|
+
return (_jsx(RovingFocusGroup.Item, { asChild: true, ...rovingFocusGroupScope, active: checked, focusable: !isDisabled, children: _jsx(CheckboxPrimitive.Root, { "aria-label": props.value, checked: checked, disabled: isDisabled, name: context.name, required: context.required, ...checkboxScope, ...props, onCheckedChange: (checkedState) => {
|
|
91
|
+
if (checkedState) {
|
|
92
|
+
context.onItemCheck(props.value);
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
context.onItemUncheck(props.value);
|
|
96
|
+
}
|
|
97
|
+
} }) }));
|
|
111
98
|
}
|
|
112
99
|
/**
|
|
113
|
-
* Visual indicator component for a CheckboxGroupItem
|
|
114
|
-
*/
|
|
100
|
+
* Visual indicator component for a CheckboxGroupItem
|
|
101
|
+
*/
|
|
115
102
|
function CheckboxGroupIndicator({ __scopeCheckboxGroup, ...props }) {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
...checkboxScope,
|
|
122
|
-
...props
|
|
123
|
-
});
|
|
103
|
+
/**
|
|
104
|
+
* Scope for the Checkbox component
|
|
105
|
+
*/
|
|
106
|
+
const checkboxScope = useCheckboxScope(__scopeCheckboxGroup);
|
|
107
|
+
return _jsx(CheckboxPrimitive.Indicator, { ...checkboxScope, ...props });
|
|
124
108
|
}
|
|
125
|
-
|
|
126
|
-
|
|
109
|
+
/* -----------------------------------------------------------------------------
|
|
110
|
+
* Exports
|
|
111
|
+
* -------------------------------------------------------------------------- */
|
|
112
|
+
export { CheckboxGroup, CheckboxGroupIndicator, CheckboxGroupItem, createCheckboxGroupScope, CheckboxGroupIndicator as Indicator, CheckboxGroupItem as Item, CheckboxGroup as Root, };
|
|
@@ -1,73 +1,63 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ComponentProps, JSX } from "react";
|
|
3
|
-
import * as
|
|
4
|
-
import { Scope } from "@radix-ui/react-context";
|
|
5
|
-
|
|
6
|
-
//#region src/primitives/input-number.d.ts
|
|
1
|
+
import type { Scope } from "@radix-ui/react-context";
|
|
2
|
+
import type { ComponentProps, JSX } from "react";
|
|
3
|
+
import * as InputPrimitive from "#primitives/input";
|
|
7
4
|
/**
|
|
8
5
|
* Props that include an optional scope for the InputNumber component.
|
|
9
6
|
*/
|
|
10
7
|
type ScopedProps<P> = P & {
|
|
11
|
-
|
|
8
|
+
/** Optional scope for the InputNumber component context */
|
|
9
|
+
__scopeInputNumber?: Scope;
|
|
12
10
|
};
|
|
13
|
-
declare const createInputNumberScope:
|
|
11
|
+
declare const createInputNumberScope: import("@radix-ui/react-context").CreateScope;
|
|
14
12
|
/**
|
|
15
13
|
* Props for the main InputNumber component.
|
|
16
14
|
*/
|
|
17
|
-
interface InputNumberProps extends ComponentProps<typeof
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
15
|
+
interface InputNumberProps extends ComponentProps<typeof InputPrimitive.Root> {
|
|
16
|
+
/** Accessible label for the decrement button */
|
|
17
|
+
ariaDecrementLabel?: string;
|
|
18
|
+
/** Accessible label for the increment button */
|
|
19
|
+
ariaIncrementLabel?: string;
|
|
20
|
+
/** Initial value when uncontrolled */
|
|
21
|
+
defaultValue?: number;
|
|
22
|
+
/** Options for number formatting */
|
|
23
|
+
formatOptions?: Intl.NumberFormatOptions;
|
|
24
|
+
/** Unique identifier for the input */
|
|
25
|
+
id?: string;
|
|
26
|
+
/** Locale used for number formatting */
|
|
27
|
+
locale?: string;
|
|
28
|
+
/** Maximum allowed value */
|
|
29
|
+
max?: number;
|
|
30
|
+
/** Minimum allowed value */
|
|
31
|
+
min?: number;
|
|
32
|
+
/** Handler called when the value changes */
|
|
33
|
+
onChange?: (value?: number) => void;
|
|
34
|
+
/** Step value for increments/decrements */
|
|
35
|
+
step?: number;
|
|
36
|
+
/** Current value when controlled */
|
|
37
|
+
value?: number;
|
|
40
38
|
}
|
|
41
39
|
declare function InputNumber(numberInputProps: ScopedProps<InputNumberProps>): JSX.Element;
|
|
42
40
|
/**
|
|
43
41
|
* Defines the props for the `InputNumberField` component.
|
|
44
42
|
*/
|
|
45
|
-
type InputNumberFieldProps = Omit<ComponentProps<typeof
|
|
46
|
-
declare function InputNumberField({
|
|
47
|
-
__scopeInputNumber,
|
|
48
|
-
onBlur,
|
|
49
|
-
onKeyDown,
|
|
50
|
-
...props
|
|
51
|
-
}: ScopedProps<InputNumberFieldProps>): JSX.Element;
|
|
43
|
+
type InputNumberFieldProps = Omit<ComponentProps<typeof InputPrimitive.Field>, "defaultValue" | "disabled" | "id" | "max" | "min" | "onChange" | "prefix" | "readOnly" | "step" | "value">;
|
|
44
|
+
declare function InputNumberField({ __scopeInputNumber, onBlur, onKeyDown, ...props }: ScopedProps<InputNumberFieldProps>): JSX.Element;
|
|
52
45
|
/**
|
|
53
46
|
* Props for the NumberStepperButton component.
|
|
54
47
|
*/
|
|
55
48
|
interface NumberStepperButtonProps extends ComponentProps<"button"> {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
49
|
+
/**
|
|
50
|
+
* The operation to perform when the button is pressed.
|
|
51
|
+
* - `'increment'`: Increases the value.
|
|
52
|
+
* - `'decrement'`: Decreases the value.
|
|
53
|
+
*/
|
|
54
|
+
operation: "decrement" | "increment";
|
|
62
55
|
}
|
|
63
|
-
declare function NumberStepperButton({
|
|
64
|
-
__scopeInputNumber,
|
|
65
|
-
operation,
|
|
66
|
-
...props
|
|
67
|
-
}: ScopedProps<NumberStepperButtonProps>): JSX.Element;
|
|
56
|
+
declare function NumberStepperButton({ __scopeInputNumber, operation, ...props }: ScopedProps<NumberStepperButtonProps>): JSX.Element;
|
|
68
57
|
type InputNumberIncrementButtonProps = Omit<ComponentProps<typeof NumberStepperButton>, "operation">;
|
|
69
58
|
declare function InputNumberIncrementButton(props: InputNumberIncrementButtonProps): JSX.Element;
|
|
70
59
|
type InputNumberDecrementButtonProps = Omit<ComponentProps<typeof NumberStepperButton>, "operation">;
|
|
71
60
|
declare function InputNumberDecrementButton(props: InputNumberDecrementButtonProps): JSX.Element;
|
|
72
|
-
|
|
73
|
-
export {
|
|
61
|
+
export { createInputNumberScope, InputNumberDecrementButton as DecrementButton, InputNumberField as Field, InputNumberIncrementButton as IncrementButton, InputNumber, InputNumberDecrementButton, InputNumberField, InputNumberIncrementButton, InputNumber as Root, };
|
|
62
|
+
export type { InputNumberDecrementButtonProps, InputNumberFieldProps, InputNumberIncrementButtonProps, InputNumberProps, };
|
|
63
|
+
//# sourceMappingURL=input-number.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-number.d.ts","sourceRoot":"","sources":["../../src/primitives/input-number.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,KAAK,EACV,cAAc,EAEd,GAAG,EAMJ,MAAM,OAAO,CAAC;AAOf,OAAO,KAAK,cAAc,MAAM,mBAAmB,CAAC;AAYpD;;GAEG;AACH,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,GAAG;IACxB,2DAA2D;IAC3D,kBAAkB,CAAC,EAAE,KAAK,CAAC;CAC5B,CAAC;AAEF,QAAA,MAAiC,sBAAsB,+CAErD,CAAC;AAwEH;;GAEG;AACH,UAAU,gBAAiB,SAAQ,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC;IAC3E,gDAAgD;IAChD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,gDAAgD;IAChD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,sCAAsC;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,oCAAoC;IACpC,aAAa,CAAC,EAAE,IAAI,CAAC,mBAAmB,CAAC;IAEzC,sCAAsC;IACtC,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,wCAAwC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,4BAA4B;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,4BAA4B;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAEpC,2CAA2C;IAC3C,IAAI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