@versini/ui-system 1.5.0 → 1.6.0

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,26 @@
1
+ /*!
2
+ @versini/ui-spacing v1.0.0
3
+ © 2024 gizmette.com
4
+ */
5
+ try {
6
+ window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
7
+ version: "1.0.0",
8
+ buildTime: "12/24/2024 06:47 PM EST",
9
+ homepage: "https://github.com/aversini/ui-components",
10
+ license: "MIT"
11
+ });
12
+ } catch {
13
+ }
14
+ const n = (o) => {
15
+ let t = "";
16
+ if (typeof o == "number" || typeof o == "string")
17
+ t = "m-" + o;
18
+ else {
19
+ const i = [];
20
+ (o == null ? void 0 : o.t) !== void 0 && i.push(`mt-${o.t}`), (o == null ? void 0 : o.r) !== void 0 && i.push(`mr-${o.r}`), (o == null ? void 0 : o.b) !== void 0 && i.push(`mb-${o.b}`), (o == null ? void 0 : o.l) !== void 0 && i.push(`ml-${o.l}`), t = i.join(" ");
21
+ }
22
+ return t;
23
+ };
24
+ export {
25
+ n as r
26
+ };
@@ -1,6 +1,6 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import C from "clsx";
3
- import { r as F } from "../../chunks/utilities.CLXGl7r8.js";
3
+ import { r as F } from "../../chunks/index.hs3isxA9.js";
4
4
  import R from "react";
5
5
  import { FLEXGRID_CLASSNAME as v, FLEXGRID_GAP_RATIO as m } from "../../chunks/constants.Gcd2KXZh.js";
6
6
  import { FlexgridContext as A } from "../../chunks/FlexgridContext.W67Qim_P.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import a from "clsx";
3
3
  import d, { useRef as v, useEffect as y } from "react";
4
- import { r as l } from "../../chunks/utilities.CLXGl7r8.js";
4
+ import { r as l } from "../../chunks/index.hs3isxA9.js";
5
5
  import { THEMEPROVIDER_CLASSNAME as N } from "../../chunks/constants.Gcd2KXZh.js";
6
6
  const A = ({
7
7
  customTheme: t,
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { SpacingProps } from '@versini/ui-private/dist/utilities';
2
+ import { SpacingTypes } from '@versini/ui-spacing-types';
3
3
 
4
4
  type FlexgridProps = {
5
5
  /**
@@ -73,7 +73,7 @@ type FlexgridProps = {
73
73
  * It follows the [CSS width property](https://developer.mozilla.org/en-US/docs/Web/CSS/width).
74
74
  */
75
75
  width?: string;
76
- } & SpacingProps;
76
+ } & SpacingTypes.Props;
77
77
 
78
78
  type FlexgridItemProps = {
79
79
  /** Children of the FlexgridItem. */
@@ -130,7 +130,7 @@ type ThemeProviderProps = {
130
130
  * @default false
131
131
  */
132
132
  global?: boolean;
133
- } & SpacingProps;
133
+ } & SpacingTypes.Props;
134
134
 
135
135
  declare const ThemeProvider: ({ customTheme, children, global, className, spacing, }: ThemeProviderProps) => react_jsx_runtime.JSX.Element;
136
136
 
package/dist/index.js CHANGED
@@ -2,13 +2,13 @@ import { Flexgrid as i } from "./components/Flexgrid/Flexgrid.js";
2
2
  import { FlexgridItem as t } from "./components/Flexgrid/FlexgridItem.js";
3
3
  import { ThemeProvider as I } from "./components/ThemeProvider/ThemeProvider.js";
4
4
  /*!
5
- @versini/ui-system v1.5.0
5
+ @versini/ui-system v1.6.0
6
6
  © 2024 gizmette.com
7
7
  */
8
8
  try {
9
9
  window.__VERSINI_UI_SYSTEM__ || (window.__VERSINI_UI_SYSTEM__ = {
10
- version: "1.5.0",
11
- buildTime: "12/18/2024 12:35 PM EST",
10
+ version: "1.6.0",
11
+ buildTime: "12/24/2024 06:47 PM EST",
12
12
  homepage: "https://github.com/aversini/ui-components",
13
13
  license: "MIT"
14
14
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-system",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -28,10 +28,6 @@
28
28
  "dev": "npm-run-all clean --parallel dev:js dev:types",
29
29
  "lint": "biome lint src",
30
30
  "start": "static-server dist --port 5173",
31
- "stats:pr": "bundlesize -c bundlesize.config.js -p \"$npm_package_version\" -o tmp/stats.json --silent",
32
- "stats:release": "bundlesize -c bundlesize.config.js -p \"$npm_package_version\" -o stats/stats.json --silent",
33
- "stats:report": "bundlesize -c bundlesize.config.js --type report -o tmp/pr-stats.md --silent",
34
- "stats": "bundlesize -c bundlesize.config.js -p \"$npm_package_version\"",
35
31
  "test:coverage:ui": "vitest --coverage --ui",
36
32
  "test:coverage": "vitest run --coverage",
37
33
  "test:watch": "vitest",
@@ -42,12 +38,14 @@
42
38
  "react-dom": "^18.3.1 || ^19.0.0"
43
39
  },
44
40
  "dependencies": {
45
- "@versini/ui-private": "1.5.0",
41
+ "@versini/ui-private": "1.6.0",
42
+ "@versini/ui-spacing": "1.0.0",
43
+ "@versini/ui-spacing-types": "1.0.0",
46
44
  "clsx": "2.1.1",
47
45
  "tailwindcss": "3.4.17"
48
46
  },
49
47
  "sideEffects": [
50
48
  "**/*.css"
51
49
  ],
52
- "gitHead": "413e5c7cd8228d2f135f54fa897101401207229b"
50
+ "gitHead": "cb948414a675c01f3328ed6470ccf4b58f73534f"
53
51
  }
@@ -1,13 +0,0 @@
1
- const n = (o) => {
2
- let i = "";
3
- if (typeof o == "number" || typeof o == "string")
4
- i = "m-" + o;
5
- else {
6
- const l = [];
7
- (o == null ? void 0 : o.t) !== void 0 && l.push(`mt-${o.t}`), (o == null ? void 0 : o.r) !== void 0 && l.push(`mr-${o.r}`), (o == null ? void 0 : o.b) !== void 0 && l.push(`mb-${o.b}`), (o == null ? void 0 : o.l) !== void 0 && l.push(`ml-${o.l}`), i = l.join(" ");
8
- }
9
- return i;
10
- };
11
- export {
12
- n as r
13
- };