@selfhelp/shared 1.14.9 → 1.14.10
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 +14 -0
- package/dist/index.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/package.json +1 -1
- package/src/types/mobile-adapters.ts +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,20 @@ All notable changes to `@selfhelp/shared` will be documented in this file.
|
|
|
9
9
|
|
|
10
10
|
This project follows semantic versioning.
|
|
11
11
|
|
|
12
|
+
## v1.14.10
|
|
13
|
+
|
|
14
|
+
Style polish wave (mobile) — extend the mobile checkbox adapter contract so the
|
|
15
|
+
`checkbox` style's `shared_label_position` is honoured on mobile too (it already
|
|
16
|
+
worked on web via Mantine `labelPosition`). Patch bump: one additive optional
|
|
17
|
+
adapter prop.
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- **`IMobileCheckboxProps.labelPosition`** (`'left' | 'right'`, optional,
|
|
22
|
+
defaults to `right`): mirrors the cross-platform `shared_label_position` field
|
|
23
|
+
so the mobile `MobileCheckbox` adapter can place the label before or after the
|
|
24
|
+
box, matching the web Mantine `labelPosition`.
|
|
25
|
+
|
|
12
26
|
## v1.14.9
|
|
13
27
|
|
|
14
28
|
Style polish wave (card / card-segment / checkbox / chip / code / title) — align
|
package/dist/index.d.mts
CHANGED
|
@@ -1254,6 +1254,12 @@ interface IMobileCheckboxProps extends IMobileAdapterBaseProps {
|
|
|
1254
1254
|
onSelectedChange?: (next: boolean) => void;
|
|
1255
1255
|
isDisabled?: boolean;
|
|
1256
1256
|
label?: string;
|
|
1257
|
+
/**
|
|
1258
|
+
* Where the label sits relative to the box. Mirrors the cross-platform
|
|
1259
|
+
* `shared_label_position` field (Mantine `labelPosition` on web). Defaults
|
|
1260
|
+
* to `right`.
|
|
1261
|
+
*/
|
|
1262
|
+
labelPosition?: 'left' | 'right';
|
|
1257
1263
|
}
|
|
1258
1264
|
interface IMobileSelectOption {
|
|
1259
1265
|
value: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1254,6 +1254,12 @@ interface IMobileCheckboxProps extends IMobileAdapterBaseProps {
|
|
|
1254
1254
|
onSelectedChange?: (next: boolean) => void;
|
|
1255
1255
|
isDisabled?: boolean;
|
|
1256
1256
|
label?: string;
|
|
1257
|
+
/**
|
|
1258
|
+
* Where the label sits relative to the box. Mirrors the cross-platform
|
|
1259
|
+
* `shared_label_position` field (Mantine `labelPosition` on web). Defaults
|
|
1260
|
+
* to `right`.
|
|
1261
|
+
*/
|
|
1262
|
+
labelPosition?: 'left' | 'right';
|
|
1257
1263
|
}
|
|
1258
1264
|
interface IMobileSelectOption {
|
|
1259
1265
|
value: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@selfhelp/shared",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.10",
|
|
4
4
|
"description": "Shared TypeScript package for SelfHelp web frontend and mobile app: style registry, types, API contracts, Mantine theme tokens, condition + interpolation engines, CMS class allow-list.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -114,6 +114,12 @@ export interface IMobileCheckboxProps extends IMobileAdapterBaseProps {
|
|
|
114
114
|
onSelectedChange?: (next: boolean) => void;
|
|
115
115
|
isDisabled?: boolean;
|
|
116
116
|
label?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Where the label sits relative to the box. Mirrors the cross-platform
|
|
119
|
+
* `shared_label_position` field (Mantine `labelPosition` on web). Defaults
|
|
120
|
+
* to `right`.
|
|
121
|
+
*/
|
|
122
|
+
labelPosition?: 'left' | 'right';
|
|
117
123
|
}
|
|
118
124
|
|
|
119
125
|
export interface IMobileSelectOption {
|