@julien-wiegandt/open-ui 0.1.12 → 0.1.14

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/open-ui.js CHANGED
@@ -1540,7 +1540,7 @@ const T = (e) => typeof e == "number" ? `${e / 2}rem` : e, ue = (e) => {
1540
1540
  font-size: ${({ size: e, breakpoint: t }) => e && jn(e, t)};
1541
1541
  width: ${({ width: e }) => e};
1542
1542
  height: ${({ height: e }) => e};
1543
- text-align: ${({ align: e }) => e};
1543
+ text-align: ${({ align: e }) => e ?? "left"};
1544
1544
  `, G = le(
1545
1545
  ({ children: e, ...t }, r) => {
1546
1546
  const { breakpoint: n } = Ut();
@@ -106,7 +106,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Je]+=1);const O=e=>typeof e==
106
106
  font-size: ${({size:e,breakpoint:t})=>e&&On(e,t)};
107
107
  width: ${({width:e})=>e};
108
108
  height: ${({height:e})=>e};
109
- text-align: ${({align:e})=>e};
109
+ text-align: ${({align:e})=>e??"left"};
110
110
  `,W=h.forwardRef(({children:e,...t},r)=>{const{breakpoint:n}=$t();return w.jsx(Nn,{ref:r,...t,breakpoint:n,children:e})});W.displayName="Text";const Re={none:"0px",sm:"8px",md:"12px",lg:"14px",full:"42px"},Ce=({color:e,theme:t})=>({contained:{bgColor:t.palette[e].main,border:"2px solid transparent",color:"#FFFFFF",onHover:{opacity:.75},onActive:{transform:"scale(0.95)"}},outlined:{bgColor:"#FFFFFF",border:`2px solid ${t.palette[e].main}`,color:t.palette[e].main,onHover:{opacity:.75},onActive:{transform:"scale(0.95)"}},text:{bgColor:"transparent",border:"2px solid transparent",color:t.palette[e].main,onActive:{transform:"scale(0.95)"},onHover:{backgroundColor:`${t.palette[e].main}22`}}}),vt={sm:{padding:"4px 0.75rem",fontSize:"12"},md:{padding:"6px 1rem",fontSize:"14"},lg:{padding:"8px 1.5rem",fontSize:"16"}},jn=Q.button`
111
111
  all: unset;
112
112
  cursor: ${({disabled:e})=>e?"default":"pointer"};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@julien-wiegandt/open-ui",
3
3
  "private": false,
4
- "version": "0.1.12",
4
+ "version": "0.1.14",
5
5
  "description": "The best open source react UI library",
6
6
  "type": "module",
7
7
  "main": "./dist/open-ui.umd.cjs",
@@ -1,9 +0,0 @@
1
- import { default as React } from 'react';
2
- export type NumberSelectProps = {
3
- min: number;
4
- max: number;
5
- initialValue?: number;
6
- onChange?: (value: number) => void;
7
- label?: string;
8
- };
9
- export declare const NumberSelect: React.FC<NumberSelectProps>;