@nar-bus/ui-kit 1.24.1 → 1.26.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.
Files changed (57) hide show
  1. package/dist/{Button-BN_yX87x.js → Button-B_PvZOyI.js} +55 -35
  2. package/dist/atoms/Button.d.ts +6 -1
  3. package/dist/atoms/Button.d.ts.map +1 -1
  4. package/dist/hooks/useSelectListbox.d.ts.map +1 -1
  5. package/dist/i18n/en.json.d.ts +90 -3
  6. package/dist/i18n/resources.d.ts +174 -0
  7. package/dist/i18n/resources.d.ts.map +1 -1
  8. package/dist/i18n/resources.js +1 -1
  9. package/dist/i18n/tr.json.d.ts +90 -3
  10. package/dist/index.d.ts +10 -2
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +4685 -3510
  13. package/dist/map.js +1 -1
  14. package/dist/molecules/Combobox.d.ts +12 -1
  15. package/dist/molecules/Combobox.d.ts.map +1 -1
  16. package/dist/molecules/DateRangePicker.d.ts.map +1 -1
  17. package/dist/molecules/KeyValueEditor.d.ts +64 -0
  18. package/dist/molecules/KeyValueEditor.d.ts.map +1 -0
  19. package/dist/molecules/ParameterForm.d.ts +44 -0
  20. package/dist/molecules/ParameterForm.d.ts.map +1 -0
  21. package/dist/molecules/index.d.ts +2 -0
  22. package/dist/molecules/index.d.ts.map +1 -1
  23. package/dist/organisms/DataTable/DataTableColumnHeader.d.ts +3 -1
  24. package/dist/organisms/DataTable/DataTableColumnHeader.d.ts.map +1 -1
  25. package/dist/organisms/DataTable/DataTableHeader.d.ts +7 -1
  26. package/dist/organisms/DataTable/DataTableHeader.d.ts.map +1 -1
  27. package/dist/organisms/DataTable/DataTableRow.d.ts +3 -1
  28. package/dist/organisms/DataTable/DataTableRow.d.ts.map +1 -1
  29. package/dist/organisms/DataTable.d.ts +30 -2
  30. package/dist/organisms/DataTable.d.ts.map +1 -1
  31. package/dist/organisms/FilterPanel.d.ts +63 -1
  32. package/dist/organisms/FilterPanel.d.ts.map +1 -1
  33. package/dist/organisms/JsonDiffView.d.ts +35 -0
  34. package/dist/organisms/JsonDiffView.d.ts.map +1 -0
  35. package/dist/organisms/JsonEditor.d.ts +29 -1
  36. package/dist/organisms/JsonEditor.d.ts.map +1 -1
  37. package/dist/organisms/Toast.d.ts +34 -1
  38. package/dist/organisms/Toast.d.ts.map +1 -1
  39. package/dist/organisms/filterOperators.d.ts +69 -0
  40. package/dist/organisms/filterOperators.d.ts.map +1 -0
  41. package/dist/organisms/index.d.ts +4 -2
  42. package/dist/organisms/index.d.ts.map +1 -1
  43. package/dist/resources-BmxyGni4.js +84 -0
  44. package/dist/templates/ListPageLayout.d.ts +5 -0
  45. package/dist/templates/ListPageLayout.d.ts.map +1 -1
  46. package/dist/theme.css +1 -1
  47. package/dist/ui-kit.css +1 -1
  48. package/dist/utils/index.d.ts +3 -0
  49. package/dist/utils/index.d.ts.map +1 -1
  50. package/dist/utils/jsonDiff.d.ts +48 -0
  51. package/dist/utils/jsonDiff.d.ts.map +1 -0
  52. package/dist/utils/jsonLocate.d.ts +41 -0
  53. package/dist/utils/jsonLocate.d.ts.map +1 -0
  54. package/dist/utils/searchFold.d.ts +8 -0
  55. package/dist/utils/searchFold.d.ts.map +1 -0
  56. package/package.json +1 -1
  57. package/dist/resources-8zHzwq1D.js +0 -78
@@ -174,16 +174,16 @@ const Ue = (e, t) => {
174
174
  C === "[" ? l++ : C === "]" ? l-- : C === "(" ? b++ : C === ")" && b--;
175
175
  }
176
176
  const g = c.length === 0 ? a : a.slice(u);
177
- let j = g, A = !1;
178
- g.endsWith(ie) ? (j = g.slice(0, -1), A = !0) : (
177
+ let M = g, A = !1;
178
+ g.endsWith(ie) ? (M = g.slice(0, -1), A = !0) : (
179
179
  /**
180
180
  * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
181
181
  * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
182
182
  */
183
- g.startsWith(ie) && (j = g.slice(1), A = !0)
183
+ g.startsWith(ie) && (M = g.slice(1), A = !0)
184
184
  );
185
- const V = m && m > u ? m - u : void 0;
186
- return we(c, A, j, V);
185
+ const B = m && m > u ? m - u : void 0;
186
+ return we(c, A, M, B);
187
187
  };
188
188
  if (t) {
189
189
  const a = t + ke, c = o;
@@ -233,13 +233,13 @@ const Ue = (e, t) => {
233
233
  let m = "";
234
234
  for (let f = u.length - 1; f >= 0; f -= 1) {
235
235
  const g = u[f], {
236
- isExternal: j,
236
+ isExternal: M,
237
237
  modifiers: A,
238
- hasImportantModifier: V,
238
+ hasImportantModifier: B,
239
239
  baseClassName: w,
240
240
  maybePostfixModifierPosition: C
241
241
  } = r(g);
242
- if (j) {
242
+ if (M) {
243
243
  m = g + (m.length > 0 ? " " + m : m);
244
244
  continue;
245
245
  }
@@ -262,7 +262,7 @@ const Ue = (e, t) => {
262
262
  }
263
263
  P = !1;
264
264
  }
265
- const B = A.length === 0 ? "" : A.length === 1 ? A[0] : c(A).join(":"), O = V ? B + ie : B, E = O + y;
265
+ const $ = A.length === 0 ? "" : A.length === 1 ? A[0] : c(A).join(":"), O = B ? $ + ie : $, E = O + y;
266
266
  if (b.indexOf(E) > -1)
267
267
  continue;
268
268
  b.push(E);
@@ -302,19 +302,19 @@ const Ue = (e, t) => {
302
302
  }, bo = [], h = (e) => {
303
303
  const t = (r) => r[e] || bo;
304
304
  return t.isThemeGetter = !0, t;
305
- }, Me = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, je = /^\((?:(\w[\w-]*):)?(.+)\)$/i, uo = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, fo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, go = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ho = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, xo = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, vo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, G = (e) => uo.test(e), p = (e) => !!e && !Number.isNaN(Number(e)), S = (e) => !!e && Number.isInteger(Number(e)), ne = (e) => e.endsWith("%") && p(e.slice(0, -1)), R = (e) => fo.test(e), Pe = () => !0, ko = (e) => (
305
+ }, je = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Me = /^\((?:(\w[\w-]*):)?(.+)\)$/i, uo = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, fo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, go = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ho = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, xo = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, vo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, G = (e) => uo.test(e), p = (e) => !!e && !Number.isNaN(Number(e)), S = (e) => !!e && Number.isInteger(Number(e)), ne = (e) => e.endsWith("%") && p(e.slice(0, -1)), R = (e) => fo.test(e), Pe = () => !0, ko = (e) => (
306
306
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
307
307
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
308
308
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
309
309
  go.test(e) && !ho.test(e)
310
- ), de = () => !1, wo = (e) => xo.test(e), yo = (e) => vo.test(e), zo = (e) => !s(e) && !n(e), Co = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), _o = (e) => M(e, Te, de), s = (e) => Me.test(e), N = (e) => M(e, Oe, ko), ye = (e) => M(e, Po, p), Ao = (e) => M(e, We, Pe), So = (e) => M(e, Ee, de), ze = (e) => M(e, Le, de), Io = (e) => M(e, Ne, yo), K = (e) => M(e, Fe, wo), n = (e) => je.test(e), $ = (e) => T(e, Oe), Ro = (e) => T(e, Ee), Ce = (e) => T(e, Le), Go = (e) => T(e, Te), Mo = (e) => T(e, Ne), Q = (e) => T(e, Fe, !0), jo = (e) => T(e, We, !0), M = (e, t, r) => {
311
- const o = Me.exec(e);
310
+ ), de = () => !1, wo = (e) => xo.test(e), yo = (e) => vo.test(e), zo = (e) => !s(e) && !n(e), Co = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), _o = (e) => j(e, Te, de), s = (e) => je.test(e), N = (e) => j(e, Oe, ko), ye = (e) => j(e, Po, p), Ao = (e) => j(e, We, Pe), So = (e) => j(e, Ee, de), ze = (e) => j(e, Le, de), Io = (e) => j(e, Ne, yo), K = (e) => j(e, Fe, wo), n = (e) => Me.test(e), U = (e) => T(e, Oe), Ro = (e) => T(e, Ee), Ce = (e) => T(e, Le), Go = (e) => T(e, Te), jo = (e) => T(e, Ne), Q = (e) => T(e, Fe, !0), Mo = (e) => T(e, We, !0), j = (e, t, r) => {
311
+ const o = je.exec(e);
312
312
  return o ? o[1] ? t(o[1]) : r(o[2]) : !1;
313
313
  }, T = (e, t, r = !1) => {
314
- const o = je.exec(e);
314
+ const o = Me.exec(e);
315
315
  return o ? o[1] ? t(o[1]) : r : !1;
316
316
  }, Le = (e) => e === "position" || e === "percentage", Ne = (e) => e === "image" || e === "url", Te = (e) => e === "length" || e === "size" || e === "bg-size", Oe = (e) => e === "length", Po = (e) => e === "number", Ee = (e) => e === "family-name", We = (e) => e === "number" || e === "weight", Fe = (e) => e === "shadow", Lo = () => {
317
- const e = h("color"), t = h("font"), r = h("text"), o = h("font-weight"), a = h("tracking"), c = h("leading"), l = h("breakpoint"), b = h("container"), u = h("spacing"), m = h("radius"), f = h("shadow"), g = h("inset-shadow"), j = h("text-shadow"), A = h("drop-shadow"), V = h("blur"), w = h("perspective"), C = h("aspect"), P = h("ease"), y = h("animate"), B = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], O = () => [
317
+ const e = h("color"), t = h("font"), r = h("text"), o = h("font-weight"), a = h("tracking"), c = h("leading"), l = h("breakpoint"), b = h("container"), u = h("spacing"), m = h("radius"), f = h("shadow"), g = h("inset-shadow"), M = h("text-shadow"), A = h("drop-shadow"), B = h("blur"), w = h("perspective"), C = h("aspect"), P = h("ease"), y = h("animate"), $ = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], O = () => [
318
318
  "center",
319
319
  "top",
320
320
  "bottom",
@@ -340,7 +340,7 @@ const Ue = (e, t) => {
340
340
  repeat: ["", "x", "y", "space", "round"]
341
341
  }], ge = () => ["auto", "cover", "contain", Go, _o, {
342
342
  size: [n, s]
343
- }], re = () => [ne, $, N], v = () => [
343
+ }], re = () => [ne, U, N], v = () => [
344
344
  // Deprecated since Tailwind CSS v4.0.0
345
345
  "",
346
346
  "none",
@@ -348,11 +348,11 @@ const Ue = (e, t) => {
348
348
  m,
349
349
  n,
350
350
  s
351
- ], k = () => ["", p, $, N], Y = () => ["solid", "dashed", "dotted", "double"], he = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], x = () => [p, ne, Ce, ze], xe = () => [
351
+ ], k = () => ["", p, U, N], Y = () => ["solid", "dashed", "dotted", "double"], he = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], x = () => [p, ne, Ce, ze], xe = () => [
352
352
  // Deprecated since Tailwind CSS v4.0.0
353
353
  "",
354
354
  "none",
355
- V,
355
+ B,
356
356
  n,
357
357
  s
358
358
  ], q = () => ["none", p, n, s], X = () => ["none", p, n, s], te = () => [p, n, s], J = () => [G, "full", ...i()];
@@ -420,14 +420,14 @@ const Ue = (e, t) => {
420
420
  * @see https://tailwindcss.com/docs/break-after
421
421
  */
422
422
  "break-after": [{
423
- "break-after": B()
423
+ "break-after": $()
424
424
  }],
425
425
  /**
426
426
  * Break Before
427
427
  * @see https://tailwindcss.com/docs/break-before
428
428
  */
429
429
  "break-before": [{
430
- "break-before": B()
430
+ "break-before": $()
431
431
  }],
432
432
  /**
433
433
  * Break Inside
@@ -1156,7 +1156,7 @@ const Ue = (e, t) => {
1156
1156
  * @see https://tailwindcss.com/docs/font-size
1157
1157
  */
1158
1158
  "font-size": [{
1159
- text: ["base", r, $, N]
1159
+ text: ["base", r, U, N]
1160
1160
  }],
1161
1161
  /**
1162
1162
  * Font Smoothing
@@ -1173,7 +1173,7 @@ const Ue = (e, t) => {
1173
1173
  * @see https://tailwindcss.com/docs/font-weight
1174
1174
  */
1175
1175
  "font-weight": [{
1176
- font: [o, jo, Ao]
1176
+ font: [o, Mo, Ao]
1177
1177
  }],
1178
1178
  /**
1179
1179
  * Font Stretch
@@ -1456,7 +1456,7 @@ const Ue = (e, t) => {
1456
1456
  }, S, n, s],
1457
1457
  radial: ["", n, s],
1458
1458
  conic: [S, n, s]
1459
- }, Mo, Io]
1459
+ }, jo, Io]
1460
1460
  }],
1461
1461
  /**
1462
1462
  * Background Color
@@ -1833,7 +1833,7 @@ const Ue = (e, t) => {
1833
1833
  * @see https://tailwindcss.com/docs/outline-width
1834
1834
  */
1835
1835
  "outline-w": [{
1836
- outline: ["", p, $, N]
1836
+ outline: ["", p, U, N]
1837
1837
  }],
1838
1838
  /**
1839
1839
  * Outline Color
@@ -1938,7 +1938,7 @@ const Ue = (e, t) => {
1938
1938
  * @see https://tailwindcss.com/docs/text-shadow
1939
1939
  */
1940
1940
  "text-shadow": [{
1941
- "text-shadow": ["none", j, Q, K]
1941
+ "text-shadow": ["none", M, Q, K]
1942
1942
  }],
1943
1943
  /**
1944
1944
  * Text Shadow Color
@@ -2921,7 +2921,7 @@ const Ue = (e, t) => {
2921
2921
  * @see https://tailwindcss.com/docs/stroke-width
2922
2922
  */
2923
2923
  "stroke-w": [{
2924
- stroke: [p, $, N, ye]
2924
+ stroke: [p, U, N, ye]
2925
2925
  }],
2926
2926
  /**
2927
2927
  * Stroke
@@ -3083,35 +3083,35 @@ const Fo = (e, t) => {
3083
3083
  * This source code is licensed under the ISC license.
3084
3084
  * See the LICENSE file in the root directory of this source tree.
3085
3085
  */
3086
- const Vo = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Bo = Fo("LoaderCircle", Vo), U = "focus-visible:[box-shadow:0_0_0_1px_var(--color-border-focus),0_0_0_4px_color-mix(in_oklab,var(--color-border-focus)_30%,transparent)]", _e = "focus-visible:[box-shadow:0_0_0_1px_var(--color-status-danger),0_0_0_4px_var(--color-status-danger-bg)]", $o = {
3086
+ const Vo = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Bo = Fo("LoaderCircle", Vo), V = "focus-visible:[box-shadow:0_0_0_1px_var(--color-border-focus),0_0_0_4px_color-mix(in_oklab,var(--color-border-focus)_30%,transparent)]", _e = "focus-visible:[box-shadow:0_0_0_1px_var(--color-status-danger),0_0_0_4px_var(--color-status-danger-bg)]", $o = {
3087
3087
  primary: [
3088
3088
  "bg-[var(--color-primary)]",
3089
3089
  "text-[var(--color-text-inverse)]",
3090
3090
  "hover:bg-[var(--color-primary-hover)]",
3091
3091
  "shadow-[var(--elevation-1)]",
3092
3092
  "hover:shadow-[var(--elevation-2)]",
3093
- U
3093
+ V
3094
3094
  ].join(" "),
3095
3095
  secondary: [
3096
3096
  "bg-[var(--color-bg-hover)]",
3097
3097
  "text-[var(--color-text-primary)]",
3098
3098
  "border border-[var(--color-border-default)]",
3099
3099
  "hover:bg-[var(--color-bg-active)]",
3100
- U
3100
+ V
3101
3101
  ].join(" "),
3102
3102
  outline: [
3103
3103
  "bg-transparent",
3104
3104
  "text-[var(--color-text-primary)]",
3105
3105
  "border border-[var(--color-border-default)]",
3106
3106
  "hover:bg-[var(--color-bg-hover)]",
3107
- U
3107
+ V
3108
3108
  ].join(" "),
3109
3109
  ghost: [
3110
3110
  "bg-transparent",
3111
3111
  "text-[var(--color-text-secondary)]",
3112
3112
  "hover:bg-[var(--color-bg-hover)]",
3113
3113
  "hover:text-[var(--color-text-primary)]",
3114
- U
3114
+ V
3115
3115
  ].join(" "),
3116
3116
  destructive: [
3117
3117
  "bg-[var(--color-status-danger)]",
@@ -3135,7 +3135,7 @@ const Vo = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Bo =
3135
3135
  "hover:[background-color:color-mix(in_oklab,var(--color-primary)_14%,transparent)]",
3136
3136
  "hover:[border-color:color-mix(in_oklab,var(--color-primary)_70%,transparent)]",
3137
3137
  "hover:[box-shadow:0_0_14px_-2px_color-mix(in_oklab,var(--color-primary)_55%,transparent)]",
3138
- U
3138
+ V
3139
3139
  ].join(" "),
3140
3140
  /* Label uses --color-status-danger-text, not the solid token: this variant is
3141
3141
  transparent, so the label sits on whatever surface hosts it — most often the
@@ -3150,12 +3150,32 @@ const Vo = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Bo =
3150
3150
  "hover:[border-color:color-mix(in_oklab,var(--color-status-danger)_70%,transparent)]",
3151
3151
  "hover:[box-shadow:0_0_14px_-2px_color-mix(in_oklab,var(--color-status-danger)_55%,transparent)]",
3152
3152
  _e
3153
+ ].join(" "),
3154
+ /*
3155
+ * Link — LUG-BTN-LINK. The package form of the recipe both consumers hand-rolled
3156
+ * on `ghost` (`h-auto p-0 font-medium text-[var(--primary)] underline-offset-2
3157
+ * hover:underline`): no surface, no border, primary text, underline on hover.
3158
+ * Height/padding are dropped by `linkSizeStyles` below (NOT here — the size
3159
+ * classes are merged after the variant and would win). No press-scale: a
3160
+ * text link that shrinks on mousedown reads as a glitch inside a sentence.
3161
+ */
3162
+ link: [
3163
+ "bg-transparent",
3164
+ "text-[var(--color-primary)]",
3165
+ "underline-offset-2",
3166
+ "hover:underline",
3167
+ "active:scale-100",
3168
+ V
3153
3169
  ].join(" ")
3154
3170
  }, Uo = {
3155
3171
  sm: "h-[var(--space-8)] px-[var(--button-padding-x-sm,var(--space-3))] text-[length:var(--font-xs)] gap-[var(--space-1)]",
3156
3172
  md: "h-[var(--space-10)] px-[var(--button-padding-x-md,var(--space-3))] text-[length:var(--font-sm)] gap-[var(--space-2)]",
3157
3173
  lg: "h-[var(--space-10)] px-[var(--button-padding-x-lg,var(--space-4))] text-[length:var(--font-md)] gap-[var(--space-2)]"
3158
- }, Do = le(
3174
+ }, Do = {
3175
+ sm: "h-auto p-0 text-[length:var(--font-xs)] gap-[var(--space-1)]",
3176
+ md: "h-auto p-0 text-[length:var(--font-sm)] gap-[var(--space-1)]",
3177
+ lg: "h-auto p-0 text-[length:var(--font-md)] gap-[var(--space-2)]"
3178
+ }, Yo = le(
3159
3179
  ({
3160
3180
  variant: e = "primary",
3161
3181
  size: t = "md",
@@ -3203,7 +3223,7 @@ const Vo = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Bo =
3203
3223
  "active:scale-[0.98]",
3204
3224
  // Variant & size
3205
3225
  $o[e],
3206
- Uo[t],
3226
+ e === "link" ? Do[t] : Uo[t],
3207
3227
  c && "w-full",
3208
3228
  b
3209
3229
  ),
@@ -3217,9 +3237,9 @@ const Vo = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Bo =
3217
3237
  );
3218
3238
  }
3219
3239
  );
3220
- Do.displayName = "Button";
3240
+ Yo.displayName = "Button";
3221
3241
  export {
3222
- Do as B,
3242
+ Yo as B,
3223
3243
  Bo as L,
3224
3244
  To as a,
3225
3245
  Fo as c
@@ -1,7 +1,12 @@
1
1
  import { ButtonHTMLAttributes, ReactNode } from 'react';
2
2
  import { LucideIcon } from 'lucide-react';
3
3
  export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
4
- variant?: "primary" | "secondary" | "outline" | "ghost" | "destructive" | "glass" | "glass-danger";
4
+ /**
5
+ * `link` — chrome-less inline text action (template download, secondary
6
+ * "open details" links): primary-coloured text, underlined on hover, no
7
+ * height/padding box. (LUG-BTN-LINK)
8
+ */
9
+ variant?: "primary" | "secondary" | "outline" | "ghost" | "destructive" | "glass" | "glass-danger" | "link";
5
10
  size?: "sm" | "md" | "lg";
6
11
  loading?: boolean;
7
12
  leftIcon?: LucideIcon;
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/atoms/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,oBAAoB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAW,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAGxD,MAAM,WAAW,WAAY,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAC1E,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,aAAa,GAAG,OAAO,GAAG,cAAc,CAAC;IACnG,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AA4GD,eAAO,MAAM,MAAM,2GAmElB,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/atoms/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,oBAAoB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAW,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAGxD,MAAM,WAAW,WAAY,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAC1E;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,aAAa,GAAG,OAAO,GAAG,cAAc,GAAG,MAAM,CAAC;IAC5G,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAwID,eAAO,MAAM,MAAM,2GAmElB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useSelectListbox.d.ts","sourceRoot":"","sources":["../../src/hooks/useSelectListbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAe/F,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,gFAAgF;IAChF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uEAAuE;IACvE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,UAAU,oBAAoB;IAC5B,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CAC1C;AAID,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,KAAK,EACL,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,QAAQ,GACT,EAAE,oBAAoB;;;;;;;sBAqBI,MAAM;;;;+BAqDG,MAAM;;wBAuBb,MAAM;8BAwEA,aAAa;+BAcZ,MAAM;6BASR,aAAa;EA0B9C"}
1
+ {"version":3,"file":"useSelectListbox.d.ts","sourceRoot":"","sources":["../../src/hooks/useSelectListbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAgB/F,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,gFAAgF;IAChF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uEAAuE;IACvE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,UAAU,oBAAoB;IAC5B,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CAC1C;AAID,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,KAAK,EACL,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,QAAQ,GACT,EAAE,oBAAoB;;;;;;;sBAsBI,MAAM;;;;+BAqDG,MAAM;;wBAuBb,MAAM;8BA0EA,aAAa;+BAcZ,MAAM;6BASR,aAAa;EA0B9C"}
@@ -352,6 +352,8 @@ declare const _default: {
352
352
  "every_n_hours_at_minute": "Every {{n}} hours at minute {{minute}}",
353
353
  "at_time": "At {{time}}",
354
354
  "on_day_of_month": "on day {{day}} of the month",
355
+ "last_day_of_month": "on the last day of the month",
356
+ "day_or": "{{dom}} OR {{dow}}",
355
357
  "dow": {
356
358
  "mon": "on Monday",
357
359
  "tue": "on Tuesday",
@@ -363,7 +365,11 @@ declare const _default: {
363
365
  "weekdays": "on weekdays",
364
366
  "weekend": "on weekends"
365
367
  }
366
- }
368
+ },
369
+ "day_or_title": "Day of Month and Day of Week are both set",
370
+ "day_or_body": "The schedule runs on EITHER of them, not on their intersection: the day of month you picked OR the weekday you picked. To use only one, set the other back to “Every day”.",
371
+ "day_exclusive_hint": "Day of month and day of week cannot be combined — picking one resets the other to “Every day”.",
372
+ "day_conflict": "Day of month and day of week cannot both be scheduled — pick only one."
367
373
  },
368
374
  "timeline": {
369
375
  "empty": "No events yet",
@@ -479,6 +485,9 @@ declare const _default: {
479
485
  "op_less": "Less Than",
480
486
  "op_greater_eq": "Greater or Equal",
481
487
  "op_less_eq": "Less or Equal",
488
+ "op_is_empty": "Is Empty",
489
+ "op_is_not_empty": "Is Not Empty",
490
+ "op_between": "Between",
482
491
  "operator_sec": "Select operator",
483
492
  "secili": "Selected"
484
493
  },
@@ -491,7 +500,13 @@ declare const _default: {
491
500
  "kopyala": "Copy",
492
501
  "icerik": "JSON content",
493
502
  "duzenle": "Edit",
494
- "goruntule": "View"
503
+ "goruntule": "View",
504
+ "sozdizimi_hatasi": "Invalid JSON — line {{line}}, column {{column}}",
505
+ "sorunlar": "Problems ({{count}})",
506
+ "satir": "Line {{line}}",
507
+ "konumsuz": "General",
508
+ "yaklasik_konum": "This path is not in the document; its nearest parent is marked",
509
+ "ic_ice_deger": "Nested value — edit it in the Raw JSON tab"
495
510
  },
496
511
  "rich_text_editor": {
497
512
  "bold": "Bold",
@@ -529,6 +544,8 @@ declare const _default: {
529
544
  "panel": "Panel",
530
545
  "iletisim_kutusu": "Dialog",
531
546
  "kaldir": "Remove {{label}}",
547
+ "secili_sayisi": "{{count}} selected",
548
+ "alani_temizle": "Clear {{label}}",
532
549
  "filtrele": "Filter options",
533
550
  "filtreler": "Filters",
534
551
  "breadcrumb": "Breadcrumb",
@@ -543,7 +560,11 @@ declare const _default: {
543
560
  "ACTIVE": "Active",
544
561
  "INACTIVE": "Inactive",
545
562
  "MAINTENANCE": "Maintenance",
546
- "FAULTY": "Faulty"
563
+ "FAULTY": "Faulty",
564
+ "DEFINED": "Defined",
565
+ "INSTALLING": "Installation",
566
+ "SCRAPPED": "Scrapped",
567
+ "UNKNOWN": "Unknown"
547
568
  },
548
569
  "power": {
549
570
  "ON": "Energized",
@@ -759,6 +780,8 @@ declare const _default: {
759
780
  "serial": "Serial Number",
760
781
  "protocol": "Protocol",
761
782
  "port": "Port",
783
+ "protocolDefaultPort": "Protocol default port",
784
+ "reportedPort": "Port reported by device",
762
785
  "firmware": "Firmware",
763
786
  "type": "Type",
764
787
  "modem": "Modem",
@@ -769,6 +792,31 @@ declare const _default: {
769
792
  "meterCount": "Meters",
770
793
  "activeAlarms": "Active Alarms",
771
794
  "activeOrders": "Active Orders",
795
+ "orderSuitability": {
796
+ "title": "Order processing",
797
+ "accessYes": "Reachable",
798
+ "accessNo": "Unreachable",
799
+ "tiers": "Waiting orders — Urgent {{urgent}} · Normal {{normal}} · Bulk {{bulk}}",
800
+ "status": {
801
+ "SUITABLE": "Suitable",
802
+ "NO_ORDERS": "No Waiting Orders",
803
+ "NOT_SUITABLE": "Not Suitable",
804
+ "UNKNOWN": "Unknown"
805
+ },
806
+ "hint": {
807
+ "SUITABLE": "Nothing blocks order processing. Reachability is shown separately.",
808
+ "NO_ORDERS": "Nothing blocks order processing, and no orders are waiting.",
809
+ "NOT_SUITABLE": "Something blocks order processing.",
810
+ "UNKNOWN": "Could not be judged: the unit's status or transport type is unknown."
811
+ },
812
+ "reason": {
813
+ "PROTOCOL_MISSING": "No protocol is defined on the unit; orders cannot be sent.",
814
+ "IP_INVALID": "The TCP unit has no or an invalid IP address; no connection can be made.",
815
+ "PORT_INVALID": "The TCP unit's port is invalid (outside 1–65535).",
816
+ "POWER_OUTAGE": "The unit has an active power outage; orders are rejected until it ends.",
817
+ "NOT_INSTALLED": "The unit is not installed; orders are only created for installed units."
818
+ }
819
+ },
772
820
  "uptime": "Uptime",
773
821
  "signal": "Signal",
774
822
  "readingRate": "Reading Rate",
@@ -842,6 +890,45 @@ declare const _default: {
842
890
  "meters_stat": "5M Meters · 220 GB/day · 99% SLA",
843
891
  "modem_label": "1M Modems"
844
892
  }
893
+ },
894
+ "json_diff": {
895
+ "once": "Before",
896
+ "sonra": "After",
897
+ "eklendi": "added",
898
+ "silindi": "removed",
899
+ "eklenen_satir": "Lines added: {{count}}",
900
+ "silinen_satir": "Lines removed: {{count}}",
901
+ "gorunum": "Diff view",
902
+ "birlesik": "Unified",
903
+ "yan_yana": "Side by side",
904
+ "alanlar": "Fields ({{count}})",
905
+ "fark_yok": "No differences — the documents are equal.",
906
+ "fark": "Line diff",
907
+ "degismeyen_satirlar": "⋯ Unchanged lines: {{count}} — show",
908
+ "tur_added": "Added",
909
+ "tur_removed": "Removed",
910
+ "tur_changed": "Changed"
911
+ },
912
+ "parameter_form": {
913
+ "zorunlu": "This field is required",
914
+ "desen_uyumsuz": "Invalid format ({{pattern}})",
915
+ "varsayilan": "Default: {{value}}",
916
+ "desen_ipucu": "Invalid format: {{hint}}"
917
+ },
918
+ "key_value_editor": {
919
+ "anahtar": "Key",
920
+ "deger": "Value",
921
+ "islemler": "Actions",
922
+ "anahtar_zorunlu": "Key is required",
923
+ "anahtar_tekrar": "This key is on more than one row",
924
+ "anahtar_desen": "Invalid key format ({{pattern}})",
925
+ "deger_zorunlu": "Value is required",
926
+ "deger_kisa": "Value is too short (minimum {{count}})",
927
+ "deger_uzun": "Value is too long (maximum {{count}})",
928
+ "satiri_sil": "Remove row {{key}}",
929
+ "ekle": "Add row",
930
+ "bos": "No entries.",
931
+ "anahtar_desen_ipucu": "Invalid key format: {{hint}}"
845
932
  }
846
933
  }
847
934
  ;