@cyclone-ui/helpers 0.3.36 → 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 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
@@ -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";
@@ -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";
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./token-value.cjs"),t=require("./get-token-relative.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=t=>{let n=String(e.normalizeTokenValue(t));return n===`true`?`5xl`:n},o=(o,{tokens:s}={},c=!1)=>{if(!o)return;let l=c?1e5:`button`,u=e.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(t.getTokenRelative(`size`,d))??44,p=r(t.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
+ 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{normalizeTokenValue as e}from"./token-value.mjs";import{getTokenRelative as t}from"./get-token-relative.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=t=>{let n=String(e(t));return n===`true`?`5xl`:n},o=(o,{tokens:s}={},c=!1)=>{if(!o)return;let l=c?1e5:`button`,u=e(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(t(`size`,d))??44,p=r(t(`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};
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
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./token-value.cjs"),t=require("./get-nearest-token.cjs");let n=require("@tamagui/core"),r=require("@stryke/type-checks"),i=require("@stryke/type-checks/is-number");const a=(t=`true`,{font:a,scale:s}={})=>{let c=(0,r.isSetString)(t)?e.normalizeTokenValue(t):t;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=(t=`true`,n={})=>{let{font:r,fontFamily:o}=n,s=e.normalizeTokenValue(t);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=e.normalizeTokenValue(n);if(!a)return{fontSize:o};let c=(0,i.isNumber)(o)?t.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;
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;
@@ -1,2 +1,2 @@
1
- import{normalizeTokenValue as e}from"./token-value.mjs";import{getNearestToken as t}from"./get-nearest-token.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=(t=`true`,{font:n,scale:o}={})=>{let c=i(t)?e(t):t;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=(t=`true`,n={})=>{let{font:r,fontFamily:i}=n,s=e(t);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=e(n);if(!i)return{fontSize:o};let s=a(o)?t(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};
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
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./token-value.cjs"),t=require("./get-nearest-token.cjs"),n=require("./get-token-relative.cjs");let r=require("@stryke/type-checks/is-number"),i=require("@stryke/type-checks/is-set");const a=(a,o={})=>{let s=a?e.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:t.getNearestToken(s,`size`)}let c=n.getTokenRelative(`size`,String(s),o),l=(0,i.isSet)(o.scale)?o.scale:1;return Number(c?.val)*l},o=(n,o={})=>{let s=n?e.normalizeTokenValue(n):`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:t.getNearestToken(s,`size`)}return a(s,o)},s=e=>t.getNearestToken(e,`size`),c=(a,o={})=>{let s=a?e.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:t.getNearestToken(s,`space`)}let c=n.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?e.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:t.getNearestToken(s,`radius`)}let c=n.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;
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;
@@ -1,2 +1,2 @@
1
- import{normalizeTokenValue as e}from"./token-value.mjs";import{getNearestToken as t}from"./get-nearest-token.mjs";import{getTokenRelative as n}from"./get-token-relative.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?e(a):`true`;if(r(s)){if(!o.shift&&!o.bounds)return s*(i(o.scale)?o.scale:1);s=o.nearest===!1?s:t(s,`size`)}let c=n(`size`,String(s),o),l=i(o.scale)?o.scale:1;return Number(c?.val)*l},o=(n,o={})=>{let s=n?e(n):`true`;if(r(s)){if(!o.shift&&!o.bounds)return s*(i(o.scale)?o.scale:1);s=o.nearest===!1?s:t(s,`size`)}return a(s,o)},s=e=>t(e,`size`),c=(a,o={})=>{let s=a?e(a):`true`;if(r(s)){if(!o.shift&&!o.bounds)return s*(i(o.scale)?o.scale:1);s=o.nearest===!1?s:t(s,`space`)}let c=n(`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?e(a):`true`;if(r(s)){if(!o.shift&&!o.bounds)return s*(i(o.scale)?o.scale:1);s=o.nearest===!1?s:t(s,`radius`)}let c=n(`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};
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("./types.cjs"),t=require("./token-value.cjs"),n=require("./get-nearest-token.cjs"),r=require("./get-font-sized.cjs"),i=require("./form-size.cjs"),a=require("./get-token-relative.cjs"),o=require("./get-sized.cjs"),s=require("./form-control.cjs"),c=require("./get-button-sized.cjs"),l=require("./get-colors.cjs");exports.ColorScientificPalette=e.ColorScientificPalette,exports.FieldNotchedOutline=s.FieldNotchedOutline,exports.FormControlContext=s.FormControlContext,exports.createScientificPalettes=l.createScientificPalettes,exports.createStylePalettes=l.createStylePalettes,exports.fontSizeToSize=o.fontSizeToSize,exports.formSizeVariants=i.formSizeVariants,exports.getButtonSized=c.getButtonSized,exports.getFieldLabelInset=s.getFieldLabelInset,exports.getFontSized=r.getFontSized,exports.getFontSizedFromSize=r.getFontSizedFromSize,exports.getFontWeightFromSize=r.getFontWeightFromSize,exports.getFormFontScale=i.getFormFontScale,exports.getFormFontSize=i.getFormFontSize,exports.getFormSizeScale=i.getFormSizeScale,exports.getFormSizeToken=i.getFormSizeToken,exports.getNearestToken=n.getNearestToken,exports.getRadius=o.getRadius,exports.getSizeFromFontSized=o.getSizeFromFontSized,exports.getSized=o.getSized,exports.getSpaced=o.getSpaced,exports.getTokenRelative=a.getTokenRelative,exports.normalizeTokenValue=t.normalizeTokenValue,exports.sizeToSpace=o.sizeToSpace,exports.useFieldHasStartIcon=s.useFieldHasStartIcon,exports.useFieldHasValidationMessage=s.useFieldHasValidationMessage,exports.useFieldIconColor=s.useFieldIconColor,exports.useFieldLabelDefaults=s.useFieldLabelDefaults,exports.useFieldLabelFloated=s.useFieldLabelFloated,exports.useFieldLabelPlacement=s.useFieldLabelPlacement,exports.useFieldOptions=s.useFieldOptions,exports.useFieldShouldShowPlaceholder=s.useFieldShouldShowPlaceholder,exports.useFieldVariant=s.useFieldVariant,exports.useFormControl=s.useFormControl;
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{ColorScientificPalette as e}from"./types.mjs";import{normalizeTokenValue as t}from"./token-value.mjs";import{getNearestToken as n}from"./get-nearest-token.mjs";import{getFontSized as r,getFontSizedFromSize as i,getFontWeightFromSize as a}from"./get-font-sized.mjs";import{formSizeVariants as o,getFormFontScale as s,getFormFontSize as c,getFormSizeScale as l,getFormSizeToken as u}from"./form-size.mjs";import{getTokenRelative as d}from"./get-token-relative.mjs";import{fontSizeToSize as f,getRadius as p,getSizeFromFontSized as m,getSized as h,getSpaced as g,sizeToSpace as _}from"./get-sized.mjs";import{FieldNotchedOutline as v,FormControlContext as y,getFieldLabelInset as b,useFieldHasStartIcon as x,useFieldHasValidationMessage as S,useFieldIconColor as C,useFieldLabelDefaults as w,useFieldLabelFloated as T,useFieldLabelPlacement as E,useFieldOptions as D,useFieldShouldShowPlaceholder as O,useFieldVariant as k,useFormControl as A}from"./form-control.mjs";import{getButtonSized as j}from"./get-button-sized.mjs";import{createScientificPalettes as M,createStylePalettes as N}from"./get-colors.mjs";export{e as ColorScientificPalette,v as FieldNotchedOutline,y as FormControlContext,M as createScientificPalettes,N as createStylePalettes,f as fontSizeToSize,o as formSizeVariants,j as getButtonSized,b as getFieldLabelInset,r as getFontSized,i as getFontSizedFromSize,a as getFontWeightFromSize,s as getFormFontScale,c as getFormFontSize,l as getFormSizeScale,u as getFormSizeToken,n as getNearestToken,p as getRadius,m as getSizeFromFontSized,h as getSized,g as getSpaced,d as getTokenRelative,t as normalizeTokenValue,_ as sizeToSpace,x as useFieldHasStartIcon,S as useFieldHasValidationMessage,C as useFieldIconColor,w as useFieldLabelDefaults,T as useFieldLabelFloated,E as useFieldLabelPlacement,D as useFieldOptions,O as useFieldShouldShowPlaceholder,k as useFieldVariant,A as useFormControl};
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.36",
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": {
@@ -176,14 +176,14 @@
176
176
  "chroma-js": "^2.6.0"
177
177
  },
178
178
  "devDependencies": {
179
- "@powerlines/plugin-tamagui": "^0.1.669",
180
- "@powerlines/plugin-tsdown": "^0.1.618",
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.217",
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": "5344c55bf0b398446eecfe3920d909956a0b8b9b"
188
+ "gitHead": "4afc6f59f18f9462997bcca153c2c0e3addc3c87"
189
189
  }