@gridui/choice 1.3.0 → 2.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.
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
11
11
  import "@gridui/choice/styles.css";
12
12
  ```
13
13
 
14
- Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/choice/README.md) for shared behavior and stylesheet dependencies.
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/choice/README.md) for shared behavior and stylesheet dependencies.
15
15
 
16
- The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/choice/stories/switch-control.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/choice/stories/switch-control.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
17
 
18
18
  ## API
19
19
 
@@ -43,6 +43,12 @@ Called when the corresponding interaction occurs; inspect the arguments in Actio
43
43
 
44
44
  Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
45
 
46
+ ### size
47
+
48
+ ``Size | undefined`` · Optional
49
+
50
+ Component size preset.
51
+
46
52
  ### checked
47
53
 
48
54
  ``boolean | undefined`` · Optional
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
11
11
  import "@gridui/choice/styles.css";
12
12
  ```
13
13
 
14
- Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/choice/README.md) for shared behavior and stylesheet dependencies.
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/choice/README.md) for shared behavior and stylesheet dependencies.
15
15
 
16
- The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/choice/stories/toggle-group.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/choice/stories/toggle-group.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
17
 
18
18
  ## API
19
19
 
@@ -65,3 +65,11 @@ Called when the corresponding interaction occurs; inspect the arguments in Actio
65
65
 
66
66
  A string value for the toggle group item. All items within a toggle group should use a unique value.
67
67
 
68
+ ### size
69
+
70
+ ``Size | undefined`` · Optional
71
+
72
+ Default: ``group.size``
73
+
74
+ Component size preset.
75
+
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
11
11
  import "@gridui/choice/styles.css";
12
12
  ```
13
13
 
14
- Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/choice/README.md) for shared behavior and stylesheet dependencies.
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/choice/README.md) for shared behavior and stylesheet dependencies.
15
15
 
16
- The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/choice/stories/toggle-group.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/choice/stories/toggle-group.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
17
 
18
18
  ## API
19
19
 
@@ -79,6 +79,14 @@ Whether the group is disabled from user interaction.
79
79
 
80
80
  Whether the group should maintain roving focus of its buttons.
81
81
 
82
+ ### size
83
+
84
+ ``Size | undefined`` · Optional
85
+
86
+ Default: ``"medium"``
87
+
88
+ Component size preset.
89
+
82
90
  ### multiple
83
91
 
84
92
  ``boolean | undefined`` · Optional
package/docs/switches.md CHANGED
@@ -47,7 +47,7 @@ The entire row is one switch button. Labels and descriptions must contain
47
47
  non-interactive content. Each gets an ID for accessible naming/description;
48
48
  explicit ARIA names are honored and external description IDs are retained.
49
49
  Group `variant` and `stateLabels` supply defaults; an item may override either.
50
- `density="compact"` is the default; `comfortable` adds space without changing
50
+ `density="comfortable"` is the default; `compact` reduces spacing without changing
51
51
  state behavior. Items own their state and form names independently. As with
52
52
  native fieldsets, the group's `form` attribute is not inherited by its controls;
53
53
  set `form` on each item when associating controls with an external form.
@@ -65,7 +65,7 @@ mode. `multiple` enables independent pressed items. An empty array means none;
65
65
  pressing the sole selected item can request an empty selection. A controlled
66
66
  application filter can retain its current value when that request is empty.
67
67
  Use `RadioGroup` from `@gridui/radio-group` for an exclusive, required form choice. See the
68
- [radio family contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/radio-group/README.md). `orientation`, `loopFocus`,
68
+ [radio family contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/radio-group/README.md). `orientation`, `loopFocus`,
69
69
  and `disabled` are forwarded. Items are buttons with `aria-pressed` and do not submit a surrounding
70
70
  form. The group does not create hidden form inputs; consumers serialize values
71
71
  explicitly. Supply an accessible group label and labels for icon-only items.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridui/choice",
3
- "version": "1.3.0",
3
+ "version": "2.0.0",
4
4
  "description": "GridUI React choice",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -10,14 +10,19 @@
10
10
  "README.md"
11
11
  ],
12
12
  "sideEffects": [
13
- "**/*.css"
13
+ "**/*.css",
14
+ "./dist/styled.js"
14
15
  ],
15
16
  "exports": {
16
17
  ".": {
17
18
  "types": "./dist/index.d.ts",
18
19
  "import": "./dist/index.js"
19
20
  },
20
- "./styles.css": "./dist/styles.css"
21
+ "./styles.css": "./dist/styles.css",
22
+ "./styled": {
23
+ "types": "./dist/index.d.ts",
24
+ "import": "./dist/styled.js"
25
+ }
21
26
  },
22
27
  "publishConfig": {
23
28
  "access": "public"
@@ -27,19 +32,19 @@
27
32
  "react-dom": "^19.2.0"
28
33
  },
29
34
  "dependencies": {
30
- "@gridui/form": "^4.1.2",
35
+ "@gridui/form": "^4.2.1",
31
36
  "@gridui/interaction": "^1.3.0",
32
- "@gridui/motion": "^1.0.1",
33
- "@gridui/style-utils": "^4.0.0",
34
- "@gridui/theme": "^3.0.0",
37
+ "@gridui/motion": "^1.0.3",
38
+ "@gridui/style-utils": "^4.1.0",
39
+ "@gridui/theme": "^5.0.0",
35
40
  "@radix-ui/react-checkbox": "1.4.1",
36
41
  "@radix-ui/react-toggle-group": "1.2.1",
37
42
  "class-variance-authority": "0.7.1",
38
- "lucide-react": "1.72.0"
43
+ "lucide-react": "1.73.0"
39
44
  },
40
45
  "devDependencies": {
41
46
  "@gridui-internal/configuration": "0.0.0-internal",
42
- "@gridui/button": "5.1.0",
47
+ "@gridui/button": "6.0.0",
43
48
  "@jest/globals": "30.5.2",
44
49
  "@storybook/react-vite": "10.6.7",
45
50
  "@types/jest": "30.0.0",