@versini/ui-truncate 1.1.0 → 1.1.2

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.
@@ -174,9 +174,9 @@ const p = "av-button", S = (e) => {
174
174
  disabled: d,
175
175
  fullWidth: l,
176
176
  size: n,
177
- noBorder: u,
177
+ noBorder: b,
178
178
  labelRight: s,
179
- labelLeft: b,
179
+ labelLeft: u,
180
180
  spacing: m,
181
181
  noBackground: g,
182
182
  variant: c,
@@ -187,8 +187,8 @@ const p = "av-button", S = (e) => {
187
187
  t,
188
188
  S(m),
189
189
  W({ mode: a, variant: c, noBackground: g, noTruncate: v }),
190
- C({ type: e, size: n, labelRight: s, labelLeft: b, align: f }),
191
- D({ mode: a, variant: c, noBorder: u }),
190
+ C({ type: e, size: n, labelRight: s, labelLeft: u, align: f }),
191
+ D({ mode: a, variant: c, noBorder: b }),
192
192
  O({ focusMode: i }),
193
193
  $({ mode: a, variant: c, disabled: d }),
194
194
  A({ mode: a, variant: c, disabled: d }),
@@ -223,9 +223,9 @@ const N = k.forwardRef(
223
223
  className: d,
224
224
  size: l = "medium",
225
225
  raw: n = !1,
226
- noBorder: u = !1,
226
+ noBorder: b = !1,
227
227
  spacing: s,
228
- variant: b = "primary",
228
+ variant: u = "primary",
229
229
  noTruncate: m = !1,
230
230
  ...g
231
231
  }, c) => {
@@ -238,9 +238,9 @@ const N = k.forwardRef(
238
238
  raw: n,
239
239
  className: d,
240
240
  size: l,
241
- noBorder: u,
241
+ noBorder: b,
242
242
  spacing: s,
243
- variant: b,
243
+ variant: u,
244
244
  noTruncate: m
245
245
  });
246
246
  return /* @__PURE__ */ h(
@@ -257,13 +257,13 @@ const N = k.forwardRef(
257
257
  );
258
258
  N.displayName = "Button";
259
259
  /*!
260
- @versini/ui-button v1.2.0
260
+ @versini/ui-button v1.2.1
261
261
  © 2024 gizmette.com
262
262
  */
263
263
  try {
264
264
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
265
- version: "1.2.0",
266
- buildTime: "12/18/2024 12:35 PM EST",
265
+ version: "1.2.1",
266
+ buildTime: "12/21/2024 02:25 PM EST",
267
267
  homepage: "https://github.com/aversini/ui-components",
268
268
  license: "MIT"
269
269
  });
@@ -279,9 +279,9 @@ const F = k.forwardRef(
279
279
  className: d,
280
280
  type: l = "button",
281
281
  raw: n = !1,
282
- noBorder: u = !1,
282
+ noBorder: b = !1,
283
283
  "aria-label": s,
284
- label: b,
284
+ label: u,
285
285
  size: m = "medium",
286
286
  labelRight: g,
287
287
  labelLeft: c,
@@ -299,7 +299,7 @@ const F = k.forwardRef(
299
299
  disabled: t,
300
300
  raw: n,
301
301
  className: d,
302
- noBorder: u,
302
+ noBorder: b,
303
303
  size: m,
304
304
  labelRight: g,
305
305
  labelLeft: c,
@@ -335,7 +335,7 @@ const F = k.forwardRef(
335
335
  className: M,
336
336
  disabled: t,
337
337
  type: l,
338
- "aria-label": s || b,
338
+ "aria-label": s || u,
339
339
  ...R,
340
340
  children: [
341
341
  c && /* @__PURE__ */ h("span", { className: "pr-2", children: c }),
@@ -373,7 +373,7 @@ const G = 200, H = ({
373
373
  string: e,
374
374
  idealLength: t
375
375
  });
376
- return /* @__PURE__ */ x("span", { children: [
376
+ return /* @__PURE__ */ x("span", { style: { wordBreak: "break-word" }, children: [
377
377
  i ? e : l,
378
378
  n && /* @__PURE__ */ h(
379
379
  N,
package/dist/index.d.ts CHANGED
@@ -8,15 +8,18 @@ type TruncateProps = {
8
8
  children: React.ReactNode;
9
9
  /**
10
10
  * The maximum length of the text.
11
+ * @default 200
11
12
  */
12
13
  length?: number;
13
14
  /**
14
15
  * The mode of Button. This will change the color of the Button.
16
+ * @default "system"
15
17
  */
16
18
  mode?: "dark" | "light" | "system" | "alt-system";
17
19
  /**
18
20
  * The type of focus for the Button. This will change the color
19
21
  * of the focus ring around the Button.
22
+ * @default "system"
20
23
  */
21
24
  focusMode?: "dark" | "light" | "system" | "alt-system";
22
25
  };
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.0
3
+ @versini/ui-truncate v1.1.2
4
4
  © 2024 gizmette.com
5
5
  */
6
6
  try {
7
7
  window.__VERSINI_UI_TRUNCATE__ || (window.__VERSINI_UI_TRUNCATE__ = {
8
- version: "1.1.0",
9
- buildTime: "12/18/2024 12:35 PM EST",
8
+ version: "1.1.2",
9
+ buildTime: "12/21/2024 02:25 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.0",
3
+ "version": "1.1.2",
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.2.0",
43
- "tailwindcss": "3.4.15"
42
+ "@versini/ui-button": "1.2.1",
43
+ "tailwindcss": "3.4.17"
44
44
  },
45
45
  "sideEffects": [
46
46
  "**/*.css"
47
47
  ],
48
- "gitHead": "413e5c7cd8228d2f135f54fa897101401207229b"
48
+ "gitHead": "d5e9c9d2e4fa723b890c437e834f31e34be3754a"
49
49
  }