@takumi-rs/helpers 0.11.1 → 0.11.3

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @takumi-rs/helpers
2
2
 
3
- Types and helper functions for [takumi](https://github.com/kane50613/takumi).
3
+ Types and helper functions for [Takumi](https://takumi.kane.tw/docs/platforms/pick-your-platform).
4
4
 
5
5
  ## Example
6
6
 
package/dist/index.d.ts CHANGED
@@ -364,5 +364,10 @@ export declare function em(em: number): {
364
364
  export declare function rem(rem: number): {
365
365
  rem: number;
366
366
  };
367
+ export declare function gradient(from: ColorInput, to: ColorInput, angle?: number): {
368
+ from: ColorInput;
369
+ to: ColorInput;
370
+ angle: number;
371
+ };
367
372
 
368
373
  export {};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- function b(e){return{type:"container",...e}}function c(e,t){return{...t,type:"text",text:e}}function A(e,t){return{...t,type:"image",src:e}}function T(e){return e}function w(e){return{percentage:e}}function S(e){return{vw:e}}function D(e){return{vh:e}}function v(e){return{em:e}}function R(e){return{rem:e}}export{S as vw,D as vh,c as text,T as style,R as rem,w as percentage,A as image,v as em,b as container};
1
+ function i(e){return{type:"container",...e}}function s(e,t){return{...t,type:"text",text:e}}function r(e,t){return{...t,type:"image",src:e}}function n(e){return e}function a(e){return{percentage:e}}function l(e){return{vw:e}}function p(e){return{vh:e}}function h(e){return{em:e}}function m(e){return{rem:e}}function f(e,t,o=0){return{from:e,to:t,angle:o}}export{l as vw,p as vh,s as text,n as style,m as rem,a as percentage,r as image,f as gradient,h as em,i as container};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takumi-rs/helpers",
3
- "version": "0.11.1",
3
+ "version": "0.11.3",
4
4
  "author": {
5
5
  "email": "me@kane.tw",
6
6
  "name": "Kane Wang",