@versini/ui-truncate 1.1.4 → 1.1.6

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.
@@ -9,7 +9,7 @@ const y = "av-button";
9
9
  try {
10
10
  window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
11
11
  version: "1.0.0",
12
- buildTime: "12/25/2024 10:51 AM EST",
12
+ buildTime: "12/25/2024 03:29 PM EST",
13
13
  homepage: "https://github.com/aversini/ui-components",
14
14
  license: "MIT"
15
15
  });
@@ -24,7 +24,7 @@ const C = (e) => {
24
24
  (e == null ? void 0 : e.t) !== void 0 && r.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && r.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && r.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && r.push(`ml-${e.l}`), t = r.join(" ");
25
25
  }
26
26
  return t;
27
- }, T = "icon", w = "button", j = "link", A = ({
27
+ }, T = "icon", w = "button", j = "link", L = ({
28
28
  type: e,
29
29
  size: t,
30
30
  labelRight: r,
@@ -58,7 +58,7 @@ const C = (e) => {
58
58
  "h-12 px-4 text-lg font-medium": t === "large" && (r || a)
59
59
  });
60
60
  }
61
- }, L = ({
61
+ }, W = ({
62
62
  mode: e,
63
63
  noBackground: t,
64
64
  noTruncate: r,
@@ -90,7 +90,7 @@ const C = (e) => {
90
90
  "bg-action-danger-dark text-copy-light dark:bg-action-danger-light dark:text-copy-lighter": e === "system",
91
91
  "bg-action-danger-light text-copy-lighter dark:bg-action-danger-dark dark:text-copy-light": e === "alt-system"
92
92
  });
93
- }, W = ({
93
+ }, A = ({
94
94
  mode: e,
95
95
  disabled: t,
96
96
  variant: r
@@ -118,7 +118,7 @@ const C = (e) => {
118
118
  "hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
119
119
  "hover:bg-action-danger-light-hover dark:hover:bg-action-danger-dark-hover": e === "alt-system"
120
120
  });
121
- }, V = ({
121
+ }, P = ({
122
122
  mode: e,
123
123
  disabled: t,
124
124
  variant: r
@@ -146,7 +146,7 @@ const C = (e) => {
146
146
  "active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
147
147
  "active:bg-action-danger-light-active dark:active:bg-action-danger-dark-active": e === "alt-system"
148
148
  });
149
- }, $ = ({
149
+ }, V = ({
150
150
  mode: e,
151
151
  noBorder: t,
152
152
  variant: r
@@ -174,7 +174,7 @@ const C = (e) => {
174
174
  "border-border-danger-dark dark:border-border-danger-medium": e === "system",
175
175
  "border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
176
176
  });
177
- }, G = ({ focusMode: e }) => o("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
177
+ }, $ = ({ focusMode: e }) => o("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
178
178
  "focus:outline-focus-dark": e === "dark",
179
179
  "focus:outline-focus-light": e === "light",
180
180
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
@@ -200,17 +200,17 @@ const C = (e) => {
200
200
  y,
201
201
  t,
202
202
  C(m),
203
- L({ mode: a, variant: c, noBackground: g, noTruncate: v }),
204
- A({ type: e, size: n, labelRight: s, labelLeft: b, align: f }),
205
- $({ mode: a, variant: c, noBorder: u }),
206
- G({ focusMode: i }),
207
- W({ mode: a, variant: c, disabled: d }),
208
- V({ mode: a, variant: c, disabled: d }),
203
+ W({ mode: a, variant: c, noBackground: g, noTruncate: v }),
204
+ L({ type: e, size: n, labelRight: s, labelLeft: b, align: f }),
205
+ V({ mode: a, variant: c, noBorder: u }),
206
+ $({ focusMode: i }),
207
+ A({ mode: a, variant: c, disabled: d }),
208
+ P({ mode: a, variant: c, disabled: d }),
209
209
  {
210
210
  "w-full": l,
211
211
  "disabled:cursor-not-allowed disabled:opacity-50": d
212
212
  }
213
- )), D = (e, t, r) => {
213
+ )), G = (e, t, r) => {
214
214
  var a;
215
215
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
216
216
  }, p = k.forwardRef((e, t) => {
@@ -220,7 +220,7 @@ const C = (e) => {
220
220
  {
221
221
  ref: t,
222
222
  onClick: (d) => {
223
- D(d, a, r);
223
+ G(d, a, r);
224
224
  },
225
225
  ...i
226
226
  }
@@ -271,19 +271,19 @@ const N = k.forwardRef(
271
271
  );
272
272
  N.displayName = "Button";
273
273
  /*!
274
- @versini/ui-button v1.3.1
274
+ @versini/ui-button v1.5.0
275
275
  © 2024 gizmette.com
276
276
  */
277
277
  try {
278
278
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
279
- version: "1.3.1",
280
- buildTime: "12/25/2024 10:51 AM EST",
279
+ version: "1.5.0",
280
+ buildTime: "12/25/2024 03:29 PM EST",
281
281
  homepage: "https://github.com/aversini/ui-components",
282
282
  license: "MIT"
283
283
  });
284
284
  } catch {
285
285
  }
286
- const O = k.forwardRef(
286
+ const D = k.forwardRef(
287
287
  ({
288
288
  children: e,
289
289
  disabled: t = !1,
@@ -360,10 +360,10 @@ const O = k.forwardRef(
360
360
  ) });
361
361
  }
362
362
  );
363
- O.displayName = "ButtonSort";
364
- const P = 200, F = ({
363
+ D.displayName = "ButtonSort";
364
+ const O = 200, F = ({
365
365
  string: e,
366
- idealLength: t = P
366
+ idealLength: t = O
367
367
  }) => {
368
368
  if (e.length <= t)
369
369
  return { string: e, isTruncated: !1 };
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { Truncate as o } from "./components/Truncate/Truncate.js";
2
2
  /*!
3
- @versini/ui-truncate v1.1.4
3
+ @versini/ui-truncate v1.1.6
4
4
  © 2024 gizmette.com
5
5
  */
6
6
  try {
7
7
  window.__VERSINI_UI_TRUNCATE__ || (window.__VERSINI_UI_TRUNCATE__ = {
8
- version: "1.1.4",
9
- buildTime: "12/25/2024 10:51 AM EST",
8
+ version: "1.1.6",
9
+ buildTime: "12/25/2024 03:29 PM EST",
10
10
  homepage: "https://github.com/aversini/ui-components",
11
11
  license: "MIT"
12
12
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-truncate",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -39,11 +39,11 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@tailwindcss/typography": "0.5.15",
42
- "@versini/ui-button": "1.3.1",
42
+ "@versini/ui-button": "1.5.0",
43
43
  "tailwindcss": "3.4.17"
44
44
  },
45
45
  "sideEffects": [
46
46
  "**/*.css"
47
47
  ],
48
- "gitHead": "a15d974fcc1a098a9f35a80ff37b1b0901278d96"
48
+ "gitHead": "71a571acd6f461c8005c0efab801d8b2fe6bff76"
49
49
  }