@cyclone-ui/helpers 0.3.34 → 0.3.36
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/form-size.d.cts +9 -2
- package/dist/form-size.d.cts.map +1 -1
- package/dist/form-size.d.mts +9 -2
- package/package.json +4 -4
package/dist/form-size.d.cts
CHANGED
|
@@ -19,7 +19,14 @@ declare const getFormFontScale: (size?: FormControlSize) => number;
|
|
|
19
19
|
declare const getFormFontSize: (size: FormControlSize, env: StyleEnv, token?: string) => ReturnType<typeof getFontSized>;
|
|
20
20
|
/** The `styled.dynamic` variant produced by {@link formSizeVariants}. */
|
|
21
21
|
type FormSizeVariant = ReturnType<typeof styled.dynamic<FormControlSize>>;
|
|
22
|
-
/**
|
|
23
|
-
|
|
22
|
+
/**
|
|
23
|
+
* A typed dynamic variant keeps arbitrary Tamagui tokens out of the public API.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* Deliberately not generic: a generic call inside a `styled()` config defers
|
|
27
|
+
* TypeScript's inference of the whole `variants` object, which collapses
|
|
28
|
+
* every variant (and `defaultVariants`) to `undefined`.
|
|
29
|
+
*/
|
|
30
|
+
declare const formSizeVariants: (style: (size: FormControlSize, env: StyleEnv) => object | null | undefined) => FormSizeVariant;
|
|
24
31
|
export { FormControlSize, FormSizeVariant, formSizeVariants, getFormFontScale, getFormFontSize, getFormSizeScale, getFormSizeToken };
|
|
25
32
|
//# sourceMappingURL=form-size.d.cts.map
|
package/dist/form-size.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-size.d.cts","names":[],"sources":["../src/form-size.ts"],"mappings":";;;;KAuBY;cAKC,mBACX,OAAM,iBACN;;cAIW,mBAAoB,OAAM;;cAI1B,mBAAoB,OAAM;;;;;;;;;cAW1B,kBACX,MAAM,iBACN,KAAK,UACL,mBACC,kBAAkB;;KAoBT,kBAAkB,kBACrB,OAAO,QAAQ
|
|
1
|
+
{"version":3,"file":"form-size.d.cts","names":[],"sources":["../src/form-size.ts"],"mappings":";;;;KAuBY;cAKC,mBACX,OAAM,iBACN;;cAIW,mBAAoB,OAAM;;cAI1B,mBAAoB,OAAM;;;;;;;;;cAW1B,kBACX,MAAM,iBACN,KAAK,UACL,mBACC,kBAAkB;;KAoBT,kBAAkB,kBACrB,OAAO,QAAQ;;;;;;;;;cAWX,mBACX,QAAQ,MAAM,iBAAiB,KAAK,2CACnC"}
|
package/dist/form-size.d.mts
CHANGED
|
@@ -19,7 +19,14 @@ declare const getFormFontScale: (size?: FormControlSize) => number;
|
|
|
19
19
|
declare const getFormFontSize: (size: FormControlSize, env: StyleEnv, token?: string) => ReturnType<typeof getFontSized>;
|
|
20
20
|
/** The `styled.dynamic` variant produced by {@link formSizeVariants}. */
|
|
21
21
|
type FormSizeVariant = ReturnType<typeof styled.dynamic<FormControlSize>>;
|
|
22
|
-
/**
|
|
23
|
-
|
|
22
|
+
/**
|
|
23
|
+
* A typed dynamic variant keeps arbitrary Tamagui tokens out of the public API.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* Deliberately not generic: a generic call inside a `styled()` config defers
|
|
27
|
+
* TypeScript's inference of the whole `variants` object, which collapses
|
|
28
|
+
* every variant (and `defaultVariants`) to `undefined`.
|
|
29
|
+
*/
|
|
30
|
+
declare const formSizeVariants: (style: (size: FormControlSize, env: StyleEnv) => object | null | undefined) => FormSizeVariant;
|
|
24
31
|
export { FormControlSize, FormSizeVariant, formSizeVariants, getFormFontScale, getFormFontSize, getFormSizeScale, getFormSizeToken };
|
|
25
32
|
//# sourceMappingURL=form-size.d.mts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyclone-ui/helpers",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.36",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A repository containing the core front-end components used by Storm Software across many platforms",
|
|
6
6
|
"repository": {
|
|
@@ -169,8 +169,8 @@
|
|
|
169
169
|
"main": "./dist/index.cjs",
|
|
170
170
|
"types": "./dist/index.d.cts",
|
|
171
171
|
"dependencies": {
|
|
172
|
-
"@stryke/type-checks": "^0.6.
|
|
173
|
-
"@stryke/types": "^0.12.
|
|
172
|
+
"@stryke/type-checks": "^0.6.50",
|
|
173
|
+
"@stryke/types": "^0.12.45",
|
|
174
174
|
"@tamagui/constants": "3.0.13",
|
|
175
175
|
"@tamagui/core": "3.0.13",
|
|
176
176
|
"chroma-js": "^2.6.0"
|
|
@@ -185,5 +185,5 @@
|
|
|
185
185
|
"publishConfig": { "access": "public" },
|
|
186
186
|
"module": "./dist/index.mjs",
|
|
187
187
|
"peerDependencies": { "react": "^19.3.1" },
|
|
188
|
-
"gitHead": "
|
|
188
|
+
"gitHead": "5344c55bf0b398446eecfe3920d909956a0b8b9b"
|
|
189
189
|
}
|