@cyclone-ui/helpers 0.3.35 → 0.3.37
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 +6 -0
- package/dist/form-size.d.cts +10 -3
- package/dist/form-size.d.cts.map +1 -1
- package/dist/form-size.d.mts +10 -3
- package/dist/get-button-sized.cjs +1 -1
- package/dist/get-button-sized.mjs +1 -1
- package/dist/get-font-sized.cjs +1 -1
- package/dist/get-font-sized.mjs +1 -1
- package/dist/get-sized.cjs +1 -1
- package/dist/get-sized.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Cyclone UI - Helpers
|
|
4
4
|
|
|
5
|
+
## [0.3.36](https://github.com/storm-software/cyclone-ui/releases/tag/helpers%400.3.36) (10/30/2026)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Resolve typing issues with Cyclone UI components ([5dfa68e1e](https://github.com/storm-software/cyclone-ui/commit/5dfa68e1e))
|
|
10
|
+
|
|
5
11
|
## [0.3.27](https://github.com/storm-software/cyclone-ui/releases/tag/helpers%400.3.27) (10/23/2026)
|
|
6
12
|
|
|
7
13
|
### Documentation
|
package/dist/form-size.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as StyleEnv } from "./types-jnp_CvAO.cjs";
|
|
2
1
|
import { r as getFontSized } from "./get-font-sized-DAeZVq9b.cjs";
|
|
2
|
+
import { o as StyleEnv } from "./types-jnp_CvAO.cjs";
|
|
3
3
|
import { styled } from "@tamagui/core";
|
|
4
4
|
/** The public size contract shared by form controls and field state. */
|
|
5
5
|
type FormControlSize = "sm" | "md" | "lg";
|
|
@@ -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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as StyleEnv } from "./types-jnp_CvAO.mjs";
|
|
2
1
|
import { r as getFontSized } from "./get-font-sized-gVvWHF-f.mjs";
|
|
2
|
+
import { o as StyleEnv } from "./types-jnp_CvAO.mjs";
|
|
3
3
|
import { styled } from "@tamagui/core";
|
|
4
4
|
/** The public size contract shared by form controls and field state. */
|
|
5
5
|
type FormControlSize = "sm" | "md" | "lg";
|
|
@@ -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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./token-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./get-token-relative.cjs"),t=require("./token-value.cjs");let n=require("@stryke/type-checks/is-number");const r=e=>{if(typeof e==`number`)return e;if(e&&typeof e==`object`&&`val`in e){let t=e.val;return typeof t==`number`?t:void 0}},i=(e,t)=>{if(!e||typeof e!=`object`)return;let n=e,r=t.replace(/^\$/,``);return n[t]??n[`$${r}`]??n[r]},a=e=>{let n=String(t.normalizeTokenValue(e));return n===`true`?`5xl`:n},o=(o,{tokens:s}={},c=!1)=>{if(!o)return;let l=c?1e5:`button`,u=t.normalizeTokenValue(o);if((0,n.isNumber)(u))return{paddingHorizontal:c?0:u*.25,gap:c?0:u*.25,height:u,minHeight:u,...c?{width:u,minWidth:u}:{minWidth:`fit-content`},borderRadius:l};let d=a(u),f=r(i(s?.size,d))??r(i(s?.size,`5xl`))??r(e.getTokenRelative(`size`,d))??44,p=r(e.getTokenRelative(`space`,d,{shift:-1}))??r(i(s?.space,`2xl`))??10;return{paddingHorizontal:c?0:p,gap:c?0:p,height:f,minHeight:f,...c?{width:f,minWidth:f}:{minWidth:`fit-content`},borderRadius:l}};exports.getButtonSized=o;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{getTokenRelative as e}from"./get-token-relative.mjs";import{normalizeTokenValue as t}from"./token-value.mjs";import{isNumber as n}from"@stryke/type-checks/is-number";const r=e=>{if(typeof e==`number`)return e;if(e&&typeof e==`object`&&`val`in e){let t=e.val;return typeof t==`number`?t:void 0}},i=(e,t)=>{if(!e||typeof e!=`object`)return;let n=e,r=t.replace(/^\$/,``);return n[t]??n[`$${r}`]??n[r]},a=e=>{let n=String(t(e));return n===`true`?`5xl`:n},o=(o,{tokens:s}={},c=!1)=>{if(!o)return;let l=c?1e5:`button`,u=t(o);if(n(u))return{paddingHorizontal:c?0:u*.25,gap:c?0:u*.25,height:u,minHeight:u,...c?{width:u,minWidth:u}:{minWidth:`fit-content`},borderRadius:l};let d=a(u),f=r(i(s?.size,d))??r(i(s?.size,`5xl`))??r(e(`size`,d))??44,p=r(e(`space`,d,{shift:-1}))??r(i(s?.space,`2xl`))??10;return{paddingHorizontal:c?0:p,gap:c?0:p,height:f,minHeight:f,...c?{width:f,minWidth:f}:{minWidth:`fit-content`},borderRadius:l}};export{o as getButtonSized};
|
|
2
2
|
//# sourceMappingURL=get-button-sized.mjs.map
|
package/dist/get-font-sized.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./token
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./get-nearest-token.cjs"),t=require("./token-value.cjs");let n=require("@tamagui/core"),r=require("@stryke/type-checks"),i=require("@stryke/type-checks/is-number");const a=(e=`true`,{font:a,scale:s}={})=>{let c=(0,r.isSetString)(e)?t.normalizeTokenValue(e):e;if((0,i.isNumber)(c))return o(c);if(!a)return;let l=String((c===`true`?u(a):c)??`true`),d=a.weight?.[l];if(d!==void 0&&Number.isFinite(Number.parseInt(d)))return Number(d);let f=Number((0,n.getVariableValue)(a.size?.[l]));return Number.isFinite(f)?o(f,s):void 0},o=(e,t=1)=>Math.min(700,Math.max(300,Math.round((400+(e-16)*12.5*t)/100)*100)),s=(e=`true`,n={})=>{let{font:r,fontFamily:o}=n,s=t.normalizeTokenValue(e);if(!r)return{fontSize:s};if((0,i.isNumber)(s))return{fontFamily:o,fontSize:s};let c=String((s===`true`?u(r):s)??`true`),l={},d=e=>e?.[c],f=d(r.size),p=d(r.lineHeight),m=d(r.letterSpacing),h=d(r.transform),g=d(r.style),_=d(r.color);return g&&(l.fontStyle=g),h&&(l.textTransform=h),o&&(l.fontFamily=o),m&&(l.letterSpacing=m),f&&(l.fontWeight=a(f,n),l.fontSize=f),p&&(l.lineHeight=p),_&&(l.color=_),l.fontWeight??=500,l},c=(n=`true`,r={})=>{let a=r.font,o=t.normalizeTokenValue(n);if(!a)return{fontSize:o};let c=(0,i.isNumber)(o)?e.getNearestToken(o,`size`):o;return s(c,r)},l=/* @__PURE__ */ new WeakMap;function u(e){if(typeof e==`object`&&l.has(e))return l.get(e);let t=`true`in e.size?e.size:(0,n.getTokens)().size,r=t.true,i=r?Object.keys(t).find(e=>e!==`true`&&t[e].val===r.val):null;return!r||!i?`sm`in e.size?`sm`:Object.keys(e.size)[3]:(l.set(e,i),i)}exports.getFontSized=s,exports.getFontSizedFromSize=c,exports.getFontWeightFromSize=a;
|
package/dist/get-font-sized.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{getNearestToken as e}from"./get-nearest-token.mjs";import{normalizeTokenValue as t}from"./token-value.mjs";import{getTokens as n,getVariableValue as r}from"@tamagui/core";import{isSetString as i}from"@stryke/type-checks";import{isNumber as a}from"@stryke/type-checks/is-number";const o=(e=`true`,{font:n,scale:o}={})=>{let c=i(e)?t(e):e;if(a(c))return s(c);if(!n)return;let l=String((c===`true`?d(n):c)??`true`),u=n.weight?.[l];if(u!==void 0&&Number.isFinite(Number.parseInt(u)))return Number(u);let f=Number(r(n.size?.[l]));return Number.isFinite(f)?s(f,o):void 0},s=(e,t=1)=>Math.min(700,Math.max(300,Math.round((400+(e-16)*12.5*t)/100)*100)),c=(e=`true`,n={})=>{let{font:r,fontFamily:i}=n,s=t(e);if(!r)return{fontSize:s};if(a(s))return{fontFamily:i,fontSize:s};let c=String((s===`true`?d(r):s)??`true`),l={},u=e=>e?.[c],f=u(r.size),p=u(r.lineHeight),m=u(r.letterSpacing),h=u(r.transform),g=u(r.style),_=u(r.color);return g&&(l.fontStyle=g),h&&(l.textTransform=h),i&&(l.fontFamily=i),m&&(l.letterSpacing=m),f&&(l.fontWeight=o(f,n),l.fontSize=f),p&&(l.lineHeight=p),_&&(l.color=_),l.fontWeight??=500,l},l=(n=`true`,r={})=>{let i=r.font,o=t(n);if(!i)return{fontSize:o};let s=a(o)?e(o,`size`):o;return c(s,r)},u=/* @__PURE__ */ new WeakMap;function d(e){if(typeof e==`object`&&u.has(e))return u.get(e);let t=`true`in e.size?e.size:n().size,r=t.true,i=r?Object.keys(t).find(e=>e!==`true`&&t[e].val===r.val):null;return!r||!i?`sm`in e.size?`sm`:Object.keys(e.size)[3]:(u.set(e,i),i)}export{c as getFontSized,l as getFontSizedFromSize,o as getFontWeightFromSize};
|
|
2
2
|
//# sourceMappingURL=get-font-sized.mjs.map
|
package/dist/get-sized.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./token
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./get-nearest-token.cjs"),t=require("./get-token-relative.cjs"),n=require("./token-value.cjs");let r=require("@stryke/type-checks/is-number"),i=require("@stryke/type-checks/is-set");const a=(a,o={})=>{let s=a?n.normalizeTokenValue(a):`true`;if((0,r.isNumber)(s)){if(!o.shift&&!o.bounds)return s*((0,i.isSet)(o.scale)?o.scale:1);s=o.nearest===!1?s:e.getNearestToken(s,`size`)}let c=t.getTokenRelative(`size`,String(s),o),l=(0,i.isSet)(o.scale)?o.scale:1;return Number(c?.val)*l},o=(t,o={})=>{let s=t?n.normalizeTokenValue(t):`true`;if((0,r.isNumber)(s)){if(!o.shift&&!o.bounds)return s*((0,i.isSet)(o.scale)?o.scale:1);s=o.nearest===!1?s:e.getNearestToken(s,`size`)}return a(s,o)},s=t=>e.getNearestToken(t,`size`),c=(a,o={})=>{let s=a?n.normalizeTokenValue(a):`true`;if((0,r.isNumber)(s)){if(!o.shift&&!o.bounds)return s*((0,i.isSet)(o.scale)?o.scale:1);s=o.nearest===!1?s:e.getNearestToken(s,`space`)}let c=t.getTokenRelative(`space`,String(s),o),l=(0,i.isSet)(o.scale)?o.scale:1;return Number(c?.val)*l},l=e=>c(e),u=(a,o={})=>{if(o.circular)return 1e5;let s=a?n.normalizeTokenValue(a):`true`;if((0,r.isNumber)(s)){if(!o.shift&&!o.bounds)return s*((0,i.isSet)(o.scale)?o.scale:1);s=o.nearest===!1?s:e.getNearestToken(s,`radius`)}let c=t.getTokenRelative(`radius`,String(s),o),l=(0,i.isSet)(o.scale)?o.scale:1;return Number(c?.val)*l};exports.fontSizeToSize=s,exports.getRadius=u,exports.getSizeFromFontSized=o,exports.getSized=a,exports.getSpaced=c,exports.sizeToSpace=l;
|
package/dist/get-sized.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{getNearestToken as e}from"./get-nearest-token.mjs";import{getTokenRelative as t}from"./get-token-relative.mjs";import{normalizeTokenValue as n}from"./token-value.mjs";import{isNumber as r}from"@stryke/type-checks/is-number";import{isSet as i}from"@stryke/type-checks/is-set";const a=(a,o={})=>{let s=a?n(a):`true`;if(r(s)){if(!o.shift&&!o.bounds)return s*(i(o.scale)?o.scale:1);s=o.nearest===!1?s:e(s,`size`)}let c=t(`size`,String(s),o),l=i(o.scale)?o.scale:1;return Number(c?.val)*l},o=(t,o={})=>{let s=t?n(t):`true`;if(r(s)){if(!o.shift&&!o.bounds)return s*(i(o.scale)?o.scale:1);s=o.nearest===!1?s:e(s,`size`)}return a(s,o)},s=t=>e(t,`size`),c=(a,o={})=>{let s=a?n(a):`true`;if(r(s)){if(!o.shift&&!o.bounds)return s*(i(o.scale)?o.scale:1);s=o.nearest===!1?s:e(s,`space`)}let c=t(`space`,String(s),o),l=i(o.scale)?o.scale:1;return Number(c?.val)*l},l=e=>c(e),u=(a,o={})=>{if(o.circular)return 1e5;let s=a?n(a):`true`;if(r(s)){if(!o.shift&&!o.bounds)return s*(i(o.scale)?o.scale:1);s=o.nearest===!1?s:e(s,`radius`)}let c=t(`radius`,String(s),o),l=i(o.scale)?o.scale:1;return Number(c?.val)*l};export{s as fontSizeToSize,u as getRadius,o as getSizeFromFontSized,a as getSized,c as getSpaced,l as sizeToSpace};
|
|
2
2
|
//# sourceMappingURL=get-sized.mjs.map
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./form-control.cjs"),t=require("./form-size.cjs"),n=require("./get-button-sized.cjs"),r=require("./get-colors.cjs"),i=require("./get-font-sized.cjs"),a=require("./get-nearest-token.cjs"),o=require("./get-sized.cjs"),s=require("./get-token-relative.cjs"),c=require("./token-value.cjs"),l=require("./types.cjs");exports.ColorScientificPalette=l.ColorScientificPalette,exports.FieldNotchedOutline=e.FieldNotchedOutline,exports.FormControlContext=e.FormControlContext,exports.createScientificPalettes=r.createScientificPalettes,exports.createStylePalettes=r.createStylePalettes,exports.fontSizeToSize=o.fontSizeToSize,exports.formSizeVariants=t.formSizeVariants,exports.getButtonSized=n.getButtonSized,exports.getFieldLabelInset=e.getFieldLabelInset,exports.getFontSized=i.getFontSized,exports.getFontSizedFromSize=i.getFontSizedFromSize,exports.getFontWeightFromSize=i.getFontWeightFromSize,exports.getFormFontScale=t.getFormFontScale,exports.getFormFontSize=t.getFormFontSize,exports.getFormSizeScale=t.getFormSizeScale,exports.getFormSizeToken=t.getFormSizeToken,exports.getNearestToken=a.getNearestToken,exports.getRadius=o.getRadius,exports.getSizeFromFontSized=o.getSizeFromFontSized,exports.getSized=o.getSized,exports.getSpaced=o.getSpaced,exports.getTokenRelative=s.getTokenRelative,exports.normalizeTokenValue=c.normalizeTokenValue,exports.sizeToSpace=o.sizeToSpace,exports.useFieldHasStartIcon=e.useFieldHasStartIcon,exports.useFieldHasValidationMessage=e.useFieldHasValidationMessage,exports.useFieldIconColor=e.useFieldIconColor,exports.useFieldLabelDefaults=e.useFieldLabelDefaults,exports.useFieldLabelFloated=e.useFieldLabelFloated,exports.useFieldLabelPlacement=e.useFieldLabelPlacement,exports.useFieldOptions=e.useFieldOptions,exports.useFieldShouldShowPlaceholder=e.useFieldShouldShowPlaceholder,exports.useFieldVariant=e.useFieldVariant,exports.useFormControl=e.useFormControl;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as TokenValue, r as normalizeTokenValue, t as TokenInput } from "./token-value-DiDl_5h7.cjs";
|
|
2
|
-
import { a as LCHColor, i as DefaultStatusColorTheme, n as ColorScientificPaletteRecord, o as StyleEnv, r as ColorStylePaletteRecord, t as ColorScientificPalette } from "./types-jnp_CvAO.cjs";
|
|
3
|
-
import { a as getFontWeightFromSize, i as getFontSizedFromSize, n as GetFontWeightFromSizeReturn, r as getFontSized, t as GetFontWeightFromSizeOptions } from "./get-font-sized-DAeZVq9b.cjs";
|
|
4
|
-
import { FormControlSize, FormSizeVariant, formSizeVariants, getFormFontScale, getFormFontSize, getFormSizeScale, getFormSizeToken } from "./form-size.cjs";
|
|
5
1
|
import { FieldControlOptions, FieldLabelDefaults, FieldLabelPlacement, FieldLabelVariant, FieldNotchedOutline, FieldVariant, FormControlContext, FormControlState, getFieldLabelInset, useFieldHasStartIcon, useFieldHasValidationMessage, useFieldIconColor, useFieldLabelDefaults, useFieldLabelFloated, useFieldLabelPlacement, useFieldOptions, useFieldShouldShowPlaceholder, useFieldVariant, useFormControl } from "./form-control.cjs";
|
|
2
|
+
import { FormControlSize, FormSizeVariant, formSizeVariants, getFormFontScale, getFormFontSize, getFormSizeScale, getFormSizeToken } from "./form-size.cjs";
|
|
6
3
|
import { getButtonSized } from "./get-button-sized.cjs";
|
|
7
4
|
import { createScientificPalettes, createStylePalettes } from "./get-colors.cjs";
|
|
5
|
+
import { a as getFontWeightFromSize, i as getFontSizedFromSize, n as GetFontWeightFromSizeReturn, r as getFontSized, t as GetFontWeightFromSizeOptions } from "./get-font-sized-DAeZVq9b.cjs";
|
|
8
6
|
import { getNearestToken } from "./get-nearest-token.cjs";
|
|
9
7
|
import { GetRadiusOptions, GetSizedOptions, fontSizeToSize, getRadius, getSizeFromFontSized, getSized, getSpaced, sizeToSpace } from "./get-sized.cjs";
|
|
10
8
|
import { GetTokenRelativeOptions, TokenRelativeType, getTokenRelative } from "./get-token-relative.cjs";
|
|
9
|
+
import { n as TokenValue, r as normalizeTokenValue, t as TokenInput } from "./token-value-DiDl_5h7.cjs";
|
|
10
|
+
import { a as LCHColor, i as DefaultStatusColorTheme, n as ColorScientificPaletteRecord, o as StyleEnv, r as ColorStylePaletteRecord, t as ColorScientificPalette } from "./types-jnp_CvAO.cjs";
|
|
11
11
|
export { ColorScientificPalette, ColorScientificPaletteRecord, ColorStylePaletteRecord, DefaultStatusColorTheme, FieldControlOptions, FieldLabelDefaults, FieldLabelPlacement, FieldLabelVariant, FieldNotchedOutline, FieldVariant, FormControlContext, FormControlSize, FormControlState, FormSizeVariant, GetFontWeightFromSizeOptions, GetFontWeightFromSizeReturn, GetRadiusOptions, GetSizedOptions, GetTokenRelativeOptions, LCHColor, StyleEnv, TokenInput, TokenRelativeType, TokenValue, createScientificPalettes, createStylePalettes, fontSizeToSize, formSizeVariants, getButtonSized, getFieldLabelInset, getFontSized, getFontSizedFromSize, getFontWeightFromSize, getFormFontScale, getFormFontSize, getFormSizeScale, getFormSizeToken, getNearestToken, getRadius, getSizeFromFontSized, getSized, getSpaced, getTokenRelative, normalizeTokenValue, sizeToSpace, useFieldHasStartIcon, useFieldHasValidationMessage, useFieldIconColor, useFieldLabelDefaults, useFieldLabelFloated, useFieldLabelPlacement, useFieldOptions, useFieldShouldShowPlaceholder, useFieldVariant, useFormControl };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as TokenValue, r as normalizeTokenValue, t as TokenInput } from "./token-value-DiDl_5h7.mjs";
|
|
2
|
-
import { a as LCHColor, i as DefaultStatusColorTheme, n as ColorScientificPaletteRecord, o as StyleEnv, r as ColorStylePaletteRecord, t as ColorScientificPalette } from "./types-jnp_CvAO.mjs";
|
|
3
|
-
import { a as getFontWeightFromSize, i as getFontSizedFromSize, n as GetFontWeightFromSizeReturn, r as getFontSized, t as GetFontWeightFromSizeOptions } from "./get-font-sized-gVvWHF-f.mjs";
|
|
4
|
-
import { FormControlSize, FormSizeVariant, formSizeVariants, getFormFontScale, getFormFontSize, getFormSizeScale, getFormSizeToken } from "./form-size.mjs";
|
|
5
1
|
import { FieldControlOptions, FieldLabelDefaults, FieldLabelPlacement, FieldLabelVariant, FieldNotchedOutline, FieldVariant, FormControlContext, FormControlState, getFieldLabelInset, useFieldHasStartIcon, useFieldHasValidationMessage, useFieldIconColor, useFieldLabelDefaults, useFieldLabelFloated, useFieldLabelPlacement, useFieldOptions, useFieldShouldShowPlaceholder, useFieldVariant, useFormControl } from "./form-control.mjs";
|
|
2
|
+
import { FormControlSize, FormSizeVariant, formSizeVariants, getFormFontScale, getFormFontSize, getFormSizeScale, getFormSizeToken } from "./form-size.mjs";
|
|
6
3
|
import { getButtonSized } from "./get-button-sized.mjs";
|
|
7
4
|
import { createScientificPalettes, createStylePalettes } from "./get-colors.mjs";
|
|
5
|
+
import { a as getFontWeightFromSize, i as getFontSizedFromSize, n as GetFontWeightFromSizeReturn, r as getFontSized, t as GetFontWeightFromSizeOptions } from "./get-font-sized-gVvWHF-f.mjs";
|
|
8
6
|
import { getNearestToken } from "./get-nearest-token.mjs";
|
|
9
7
|
import { GetRadiusOptions, GetSizedOptions, fontSizeToSize, getRadius, getSizeFromFontSized, getSized, getSpaced, sizeToSpace } from "./get-sized.mjs";
|
|
10
8
|
import { GetTokenRelativeOptions, TokenRelativeType, getTokenRelative } from "./get-token-relative.mjs";
|
|
9
|
+
import { n as TokenValue, r as normalizeTokenValue, t as TokenInput } from "./token-value-DiDl_5h7.mjs";
|
|
10
|
+
import { a as LCHColor, i as DefaultStatusColorTheme, n as ColorScientificPaletteRecord, o as StyleEnv, r as ColorStylePaletteRecord, t as ColorScientificPalette } from "./types-jnp_CvAO.mjs";
|
|
11
11
|
export { ColorScientificPalette, ColorScientificPaletteRecord, ColorStylePaletteRecord, DefaultStatusColorTheme, FieldControlOptions, FieldLabelDefaults, FieldLabelPlacement, FieldLabelVariant, FieldNotchedOutline, FieldVariant, FormControlContext, FormControlSize, FormControlState, FormSizeVariant, GetFontWeightFromSizeOptions, GetFontWeightFromSizeReturn, GetRadiusOptions, GetSizedOptions, GetTokenRelativeOptions, LCHColor, StyleEnv, TokenInput, TokenRelativeType, TokenValue, createScientificPalettes, createStylePalettes, fontSizeToSize, formSizeVariants, getButtonSized, getFieldLabelInset, getFontSized, getFontSizedFromSize, getFontWeightFromSize, getFormFontScale, getFormFontSize, getFormSizeScale, getFormSizeToken, getNearestToken, getRadius, getSizeFromFontSized, getSized, getSpaced, getTokenRelative, normalizeTokenValue, sizeToSpace, useFieldHasStartIcon, useFieldHasValidationMessage, useFieldIconColor, useFieldLabelDefaults, useFieldLabelFloated, useFieldLabelPlacement, useFieldOptions, useFieldShouldShowPlaceholder, useFieldVariant, useFormControl };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{FieldNotchedOutline as e,FormControlContext as t,getFieldLabelInset as n,useFieldHasStartIcon as r,useFieldHasValidationMessage as i,useFieldIconColor as a,useFieldLabelDefaults as o,useFieldLabelFloated as s,useFieldLabelPlacement as c,useFieldOptions as l,useFieldShouldShowPlaceholder as u,useFieldVariant as d,useFormControl as f}from"./form-control.mjs";import{formSizeVariants as p,getFormFontScale as m,getFormFontSize as h,getFormSizeScale as g,getFormSizeToken as _}from"./form-size.mjs";import{getButtonSized as v}from"./get-button-sized.mjs";import{createScientificPalettes as y,createStylePalettes as b}from"./get-colors.mjs";import{getFontSized as x,getFontSizedFromSize as S,getFontWeightFromSize as C}from"./get-font-sized.mjs";import{getNearestToken as w}from"./get-nearest-token.mjs";import{fontSizeToSize as T,getRadius as E,getSizeFromFontSized as D,getSized as O,getSpaced as k,sizeToSpace as A}from"./get-sized.mjs";import{getTokenRelative as j}from"./get-token-relative.mjs";import{normalizeTokenValue as M}from"./token-value.mjs";import{ColorScientificPalette as N}from"./types.mjs";export{N as ColorScientificPalette,e as FieldNotchedOutline,t as FormControlContext,y as createScientificPalettes,b as createStylePalettes,T as fontSizeToSize,p as formSizeVariants,v as getButtonSized,n as getFieldLabelInset,x as getFontSized,S as getFontSizedFromSize,C as getFontWeightFromSize,m as getFormFontScale,h as getFormFontSize,g as getFormSizeScale,_ as getFormSizeToken,w as getNearestToken,E as getRadius,D as getSizeFromFontSized,O as getSized,k as getSpaced,j as getTokenRelative,M as normalizeTokenValue,A as sizeToSpace,r as useFieldHasStartIcon,i as useFieldHasValidationMessage,a as useFieldIconColor,o as useFieldLabelDefaults,s as useFieldLabelFloated,c as useFieldLabelPlacement,l as useFieldOptions,u as useFieldShouldShowPlaceholder,d as useFieldVariant,f as useFormControl};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyclone-ui/helpers",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.37",
|
|
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,21 +169,21 @@
|
|
|
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"
|
|
177
177
|
},
|
|
178
178
|
"devDependencies": {
|
|
179
|
-
"@powerlines/plugin-tamagui": "^0.1.
|
|
180
|
-
"@powerlines/plugin-tsdown": "^0.1.
|
|
179
|
+
"@powerlines/plugin-tamagui": "^0.1.670",
|
|
180
|
+
"@powerlines/plugin-tsdown": "^0.1.619",
|
|
181
181
|
"@types/chroma-js": "^2.4.5",
|
|
182
|
-
"powerlines": "^0.47.
|
|
182
|
+
"powerlines": "^0.47.218",
|
|
183
183
|
"react": "^19.3.1"
|
|
184
184
|
},
|
|
185
185
|
"publishConfig": { "access": "public" },
|
|
186
186
|
"module": "./dist/index.mjs",
|
|
187
187
|
"peerDependencies": { "react": "^19.3.1" },
|
|
188
|
-
"gitHead": "
|
|
188
|
+
"gitHead": "4afc6f59f18f9462997bcca153c2c0e3addc3c87"
|
|
189
189
|
}
|