@spesia/ui 1.9.7 → 1.9.27

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.
@@ -23,7 +23,7 @@ const I = N(null), y = ({
23
23
  Promise.resolve().then(() => {
24
24
  var l, u, f, S, v, g, p, h, z;
25
25
  o && (o >= Number.parseInt(
26
- ((e == null ? void 0 : e.lg) ?? ((f = (u = (l = x) == null ? void 0 : l.breakpoints) == null ? void 0 : u.values) == null ? void 0 : f.lg) ?? 1200).toString()
26
+ ((e == null ? void 0 : e.lg) ?? ((f = (u = (l = x) == null ? void 0 : l.breakpoints) == null ? void 0 : u.values) == null ? void 0 : f.lg) ?? 1304).toString()
27
27
  ) ? n("lg") : o >= Number.parseInt(
28
28
  ((e == null ? void 0 : e.md) ?? ((g = (v = (S = x) == null ? void 0 : S.breakpoints) == null ? void 0 : v.values) == null ? void 0 : g.md) ?? 900).toString()
29
29
  ) ? n("md") : o >= Number.parseInt(
@@ -213,12 +213,12 @@ const r = {
213
213
  content: {
214
214
  text: {
215
215
  primary: {
216
- light: r.primary.brown[70],
216
+ light: r.primary.brown[80],
217
217
  dark: r.primary.coral[20]
218
218
  },
219
219
  secondary: {
220
- light: r.primary.brown[60],
221
- dark: r.primary.brown[30]
220
+ light: r.primary.brown[50],
221
+ dark: r.primary.brown[50]
222
222
  },
223
223
  tertiary: {
224
224
  light: r.primary.coral[100],
@@ -3,9 +3,9 @@ import { buttonStyles as r } from "./button/button.js";
3
3
  import { chipStyles as e } from "./chip/chip.js";
4
4
  import { cardStyles as m } from "./card/card.js";
5
5
  import { alertStyles as l } from "./alert/alert.js";
6
- import { tooltipStyles as i } from "./tooltip/tooltip.js";
7
- import { formStyles as p } from "./form/form.js";
8
- import { listStyles as s } from "./list/list.js";
6
+ import { tooltipStyles as s } from "./tooltip/tooltip.js";
7
+ import { formStyles as i } from "./form/form.js";
8
+ import { listStyles as p } from "./list/list.js";
9
9
  import { sliderStyles as a } from "./slider/slider.js";
10
10
  import { inputStyles as y } from "./input/input.js";
11
11
  import { dialogStyles as S } from "./dialog/dialog.js";
@@ -24,9 +24,9 @@ const G = o({
24
24
  ...e,
25
25
  ...m,
26
26
  ...l,
27
- ...p,
28
27
  ...i,
29
28
  ...s,
29
+ ...p,
30
30
  ...y,
31
31
  ...S,
32
32
  ...a,
@@ -37,6 +37,15 @@ const G = o({
37
37
  ...c,
38
38
  ...h
39
39
  },
40
+ breakpoints: {
41
+ values: {
42
+ xs: 0,
43
+ sm: 600,
44
+ md: 900,
45
+ lg: 1304,
46
+ xl: 1780
47
+ }
48
+ },
40
49
  colorSchemes: {
41
50
  light: {
42
51
  palette: t("light")
@@ -1,47 +1,81 @@
1
- import { colors as o } from "../colors.js";
2
- const i = {
1
+ import { colors as a } from "../colors.js";
2
+ const e = {
3
3
  MuiTab: {
4
4
  styleOverrides: {
5
- root: ({ theme: t }) => ({
6
- color: t.vars.palette.text.primary,
7
- borderRadius: 0,
8
- padding: "0 12px 0 0px",
9
- marginRight: t.spacing(6),
10
- textTransform: "initial",
11
- display: "flex",
12
- alignItems: "center",
13
- flexDirection: "row",
14
- gap: 20,
15
- justifyContent: "flex-start",
16
- opacity: 0.2,
17
- "&.Mui-selected": {
5
+ root: ({ theme: t }) => {
6
+ var o, r;
7
+ return {
18
8
  color: t.vars.palette.text.primary,
19
- opacity: 1
20
- },
21
- ".MuiTabs-numbered &": {
22
- "&::before": {
23
- fontFamily: t.typography.mono.fontFamily,
24
- content: 'counter(MuiTab-root, decimal-leading-zero) "."',
25
- counterIncrement: "MuiTab-root",
26
- fontSize: t.typography.caption.fontSize,
9
+ borderRadius: 0,
10
+ padding: "0 12px 0 0px",
11
+ marginRight: t.spacing(6),
12
+ textTransform: "initial",
13
+ display: "flex",
14
+ alignItems: "center",
15
+ flexDirection: "row",
16
+ gap: 20,
17
+ justifyContent: "flex-start",
18
+ opacity: 0.2,
19
+ "&.Mui-selected": {
27
20
  color: t.vars.palette.text.primary,
28
- padding: t.spacing(0.5, 1),
21
+ opacity: 1
22
+ },
23
+ ".MuiTabs-numbered &": {
24
+ "&::before": {
25
+ fontFamily: t.typography.mono.fontFamily,
26
+ content: 'counter(MuiTab-root, decimal-leading-zero) "."',
27
+ counterIncrement: "MuiTab-root",
28
+ fontSize: t.typography.caption.fontSize,
29
+ color: t.vars.palette.text.primary,
30
+ padding: t.spacing(0.5, 1),
31
+ display: "flex",
32
+ alignItems: "center"
33
+ }
34
+ },
35
+ ".MuiTabs-buttons &": {
36
+ color: t.vars.palette.text.secondary,
37
+ padding: { xs: 6, sm: 28 },
38
+ fontSize: 40,
29
39
  display: "flex",
30
- alignItems: "center"
40
+ alignItems: "center",
41
+ justifyContent: "center",
42
+ position: "relative",
43
+ zIndex: 1,
44
+ margin: 8,
45
+ borderRadius: t.spacing(2),
46
+ opacity: 1,
47
+ "&.Mui-selected": {
48
+ background: (o = t.vars) == null ? void 0 : o.palette.background.brownBold,
49
+ color: (r = t.vars) == null ? void 0 : r.palette.text.contrastText
50
+ }
31
51
  }
32
- }
33
- })
52
+ };
53
+ }
34
54
  }
35
55
  }
36
- }, a = {
56
+ }, n = {
37
57
  MuiTabs: {
38
58
  styleOverrides: {
39
59
  root: () => ({}),
40
- list: () => ({
41
- counterReset: "MuiTab-root"
42
- }),
60
+ list: ({ theme: t }) => {
61
+ var o, r;
62
+ return {
63
+ counterReset: "MuiTab-root",
64
+ ".MuiTabs-buttons &": {
65
+ backgroundColor: (o = t.vars) == null ? void 0 : o.palette.background.paper,
66
+ borderRadius: t.spacing(2),
67
+ border: "1px solid",
68
+ borderColor: (r = t == null ? void 0 : t.vars) == null ? void 0 : r.palette.border.primary,
69
+ display: "flex",
70
+ alignItems: "center",
71
+ justifyContent: "flex-start",
72
+ gap: t.spacing(6),
73
+ padding: 4
74
+ }
75
+ };
76
+ },
43
77
  indicator: (t) => ({
44
- backgroundColor: o.primary.beige[10],
78
+ backgroundColor: a.primary.beige[10],
45
79
  height: "5px",
46
80
  top: 0,
47
81
  bottom: "auto",
@@ -56,15 +90,18 @@ const i = {
56
90
  margin: "auto",
57
91
  width: "28%",
58
92
  height: "100%",
59
- borderRadius: t.theme.spacing(2),
60
- backgroundColor: o.primary.coral[100],
93
+ borderRadius: t.theme.spacing(3),
94
+ backgroundColor: a.primary.coral[100],
61
95
  transition: "width 0.3s ease"
96
+ },
97
+ ".MuiTabs-buttons &": {
98
+ display: "none"
62
99
  }
63
100
  })
64
101
  }
65
102
  }
66
103
  };
67
104
  export {
68
- i as tabStyles,
69
- a as tabsStyles
105
+ e as tabStyles,
106
+ n as tabsStyles
70
107
  };
@@ -3,21 +3,21 @@ export declare const toPx: (value: number) => string;
3
3
  export declare const toRem: (value: number, baseFontSize?: number) => string;
4
4
  declare const typography: {
5
5
  h1: {
6
- fontWeight: string;
6
+ fontWeight: number;
7
7
  letterSpacing?: string | undefined;
8
8
  fontSize: string;
9
9
  lineHeight: string;
10
10
  fontFamily: string;
11
11
  };
12
12
  h2: {
13
- fontWeight: string;
13
+ fontWeight: number;
14
14
  letterSpacing?: string | undefined;
15
15
  fontSize: string;
16
16
  lineHeight: string;
17
17
  fontFamily: string;
18
18
  };
19
19
  h3: {
20
- fontWeight: string;
20
+ fontWeight: number;
21
21
  letterSpacing?: string | undefined;
22
22
  fontSize: string;
23
23
  lineHeight: string;
@@ -92,21 +92,21 @@ declare const typography: {
92
92
  fontFamily: string;
93
93
  };
94
94
  headingL: {
95
- fontWeight: string;
95
+ fontWeight: number;
96
96
  letterSpacing?: string | undefined;
97
97
  fontSize: string;
98
98
  lineHeight: string;
99
99
  fontFamily: string;
100
100
  };
101
101
  headingM: {
102
- fontWeight: string;
102
+ fontWeight: number;
103
103
  letterSpacing?: string | undefined;
104
104
  fontSize: string;
105
105
  lineHeight: string;
106
106
  fontFamily: string;
107
107
  };
108
108
  headingS: {
109
- fontWeight: string;
109
+ fontWeight: number;
110
110
  letterSpacing?: string | undefined;
111
111
  fontSize: string;
112
112
  lineHeight: string;
@@ -1,9 +1,9 @@
1
1
  import { primitives as t } from "./colors.js";
2
- const l = (a) => `${a}px`, y = (a, i) => Math.round(a * i) / 100, n = (a, i, f) => ({
3
- fontSize: l(a),
4
- lineHeight: l(i),
5
- ...f !== void 0 && {
6
- letterSpacing: l(y(a, f))
2
+ const f = (a) => `${a}px`, y = (a, i) => Math.round(a * i) / 100, n = (a, i, l) => ({
3
+ fontSize: f(a),
4
+ lineHeight: f(i),
5
+ ...l !== void 0 && {
6
+ letterSpacing: f(y(a, l))
7
7
  }
8
8
  }), o = {
9
9
  displayXL: {
@@ -34,17 +34,17 @@ const l = (a) => `${a}px`, y = (a, i) => Math.round(a * i) / 100, n = (a, i, f)
34
34
  headingL: {
35
35
  fontFamily: t.fontFamily.sans,
36
36
  ...n(32, 38),
37
- fontWeight: "bold"
37
+ fontWeight: 400
38
38
  },
39
39
  headingM: {
40
40
  fontFamily: t.fontFamily.sans,
41
41
  ...n(24, 32),
42
- fontWeight: "bold"
42
+ fontWeight: 400
43
43
  },
44
44
  headingS: {
45
45
  fontFamily: t.fontFamily.sans,
46
46
  ...n(18, 22, 1),
47
- fontWeight: "bold"
47
+ fontWeight: 400
48
48
  },
49
49
  textBody: {
50
50
  fontFamily: t.fontFamily.sans,
@@ -133,7 +133,7 @@ const l = (a) => `${a}px`, y = (a, i) => Math.round(a * i) / 100, n = (a, i, f)
133
133
  }
134
134
  };
135
135
  export {
136
- l as toPx,
136
+ f as toPx,
137
137
  s as typography,
138
138
  m as typographyStyles
139
139
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.9.7",
6
+ "version": "1.9.27",
7
7
  "description": "The Spesia UI toolkit for React",
8
8
  "files": [
9
9
  "dist"
@@ -22,14 +22,6 @@
22
22
  },
23
23
  "type": "module",
24
24
  "private": false,
25
- "lint-staged": {
26
- "**/*.(js|jsx|ts|tsx)": [
27
- "npx eslint --fix"
28
- ],
29
- "**/*.(js|jsx|ts|tsx|css|less|scss|md|json|yml|yaml)": [
30
- "pnpm run format:fix"
31
- ]
32
- },
33
25
  "keywords": [],
34
26
  "author": "tinna@spesia.is",
35
27
  "license": "ISC",