@danielcruzcode/ui-core 0.1.4 → 0.1.5

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.
@@ -0,0 +1,52 @@
1
+ const s = {
2
+ color: {
3
+ red: {
4
+ 100: "#FDECEA",
5
+ 500: "#E31837"
6
+ },
7
+ neutral: {
8
+ 0: "#FFFFFF",
9
+ 100: "#F5F5F5",
10
+ 300: "#D1D1D1",
11
+ 700: "#4A4A4A",
12
+ 900: "#1A1A1A"
13
+ },
14
+ green: {
15
+ 100: "#E8F5EA",
16
+ 500: "#0A8920",
17
+ 600: "#077319"
18
+ },
19
+ yellow: {
20
+ 100: "#FEF7E0",
21
+ 500: "#F9AB00"
22
+ }
23
+ },
24
+ space: {
25
+ 2: "8px",
26
+ 4: "16px",
27
+ 6: "24px",
28
+ 8: "32px"
29
+ },
30
+ radius: {
31
+ sm: "4px",
32
+ md: "8px",
33
+ full: "9999px"
34
+ },
35
+ font: {
36
+ family: {
37
+ body: "'DM Sans', sans-serif",
38
+ display: "'Bebas Neue', sans-serif"
39
+ }
40
+ },
41
+ shadow: {
42
+ sm: "0 1px 2px 0 rgba(0,0,0,0.08)",
43
+ md: "0 4px 8px 0 rgba(0,0,0,0.12)"
44
+ },
45
+ transition: {
46
+ fast: "100ms ease",
47
+ normal: "200ms ease"
48
+ }
49
+ };
50
+ export {
51
+ s as primitives
52
+ };
@@ -1,6 +1,6 @@
1
1
  import { jsx as n, jsxs as u, Fragment as h } from "react/jsx-runtime";
2
2
  import f from "@emotion/styled";
3
- import { tokens as o } from "@danielcruzcode/design-tokens";
3
+ import { tokens as o } from "./index.esm14.js";
4
4
  const g = {
5
5
  primary: `background-color:${o.color.brand};color:#fff;border:none;&:hover:not(:disabled){background-color:${o.color.brandHover};}&:active:not(:disabled){background-color:${o.color.brandHover};box-shadow:${o.shadow.sm};}`,
6
6
  secondary: `background-color:transparent;color:${o.color.brand};border:1.5px solid ${o.color.brand};&:hover:not(:disabled){background-color:${o.color.brandSubtle};}`,
@@ -1,6 +1,6 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
2
  import l from "@emotion/styled";
3
- import { tokens as o } from "@danielcruzcode/design-tokens";
3
+ import { tokens as o } from "./index.esm14.js";
4
4
  const t = {
5
5
  brand: `background-color: ${o.color.brandSubtle}; color: ${o.color.brand};`,
6
6
  success: `background-color: ${o.color.successSubtle}; color: ${o.color.success};`,
@@ -1,6 +1,6 @@
1
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
2
  import t from "@emotion/styled";
3
- import { tokens as o } from "@danielcruzcode/design-tokens";
3
+ import { tokens as o } from "./index.esm14.js";
4
4
  const d = {
5
5
  default: `background-color:${o.color.surface};color:${o.color.text};border:1px solid ${o.color.border};`,
6
6
  brand: `background-color:${o.color.brandSubtle};color:${o.color.brand};border:1px solid ${o.color.brand};`
@@ -1,6 +1,6 @@
1
1
  import { jsxs as a, jsx as n } from "react/jsx-runtime";
2
2
  import e from "@emotion/styled";
3
- import { tokens as o } from "@danielcruzcode/design-tokens";
3
+ import { tokens as o } from "./index.esm14.js";
4
4
  import { useId as I } from "react";
5
5
  const w = e.div`display:flex;flex-direction:column;gap:4px;font-family:${o.font.body};`, z = e.label`font-size:13px;font-weight:500;color:${o.color.text};`, M = e.span`color:${o.color.danger};margin-left:2px;`, S = e.div`
6
6
  display:flex;align-items:center;gap:${o.space.sm};
@@ -1,6 +1,6 @@
1
1
  import { jsxs as c, jsx as r } from "react/jsx-runtime";
2
2
  import n from "@emotion/styled";
3
- import { tokens as o } from "@danielcruzcode/design-tokens";
3
+ import { tokens as o } from "./index.esm14.js";
4
4
  import { useId as m } from "react";
5
5
  const g = n.div`display:flex;flex-direction:column;gap:4px;font-family:${o.font.body};`, $ = n.label`font-size:13px;font-weight:500;color:${o.color.text};`, v = n.div`position:relative;display:flex;align-items:center;`, y = n.select`
6
6
  width:100%;height:40px;padding-inline-start:${o.space.sm};padding-inline-end:36px;
@@ -1,6 +1,6 @@
1
1
  import { jsxs as f, jsx as e } from "react/jsx-runtime";
2
2
  import i from "@emotion/styled";
3
- import { tokens as t } from "@danielcruzcode/design-tokens";
3
+ import { tokens as t } from "./index.esm14.js";
4
4
  import { useId as x, useRef as b, useEffect as k } from "react";
5
5
  const g = i.label`
6
6
  display: inline-flex; align-items: center; gap: ${t.space.sm};
@@ -1,6 +1,6 @@
1
1
  import { jsxs as h, jsx as a } from "react/jsx-runtime";
2
2
  import e from "@emotion/styled";
3
- import { tokens as o } from "@danielcruzcode/design-tokens";
3
+ import { tokens as o } from "./index.esm14.js";
4
4
  const v = { none: "0", sm: o.space.sm, md: o.space.md, lg: o.space.lg }, f = e.article`
5
5
  display:flex;flex-direction:column;background-color:${o.color.background};
6
6
  border-radius:${o.radius.md};border:1px solid ${o.color.border};
@@ -1,7 +1,7 @@
1
1
  import { jsxs as m, jsx as n, Fragment as C } from "react/jsx-runtime";
2
2
  import d from "@emotion/styled";
3
- import { tokens as o } from "@danielcruzcode/design-tokens";
4
- import F from "./index.esm14.js";
3
+ import { tokens as o } from "./index.esm14.js";
4
+ import F from "./index.esm15.js";
5
5
  import { useState as p, useEffect as a, useCallback as N } from "react";
6
6
  const D = { sm: 8, md: 16, lg: 24, xl: 32 };
7
7
  function w(r, s) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielcruzcode/ui-core",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },