@trackunit/react-components 1.17.33 → 1.17.34

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.
package/index.cjs.js CHANGED
@@ -2875,7 +2875,7 @@ function createGrid() {
2875
2875
  layout(config) {
2876
2876
  // At runtime, config properties are always valid arrays (error types only exist at compile-time)
2877
2877
  // We need to cast and copy readonly arrays to mutable arrays for storage
2878
- // eslint-disable-next-line local-rules/no-typescript-assertion -- Error tuple types only exist at compile-time; runtime values are always valid arrays
2878
+ // eslint-disable-next-line @trackunit/no-typescript-assertion -- Error tuple types only exist at compile-time; runtime values are always valid arrays
2879
2879
  const runtimeConfig = config;
2880
2880
  layouts.push({
2881
2881
  layout: runtimeConfig.layout.map(row => [...row]),
@@ -2987,7 +2987,7 @@ function GridAreas({ slots, css, containerProps, validationRef, className, child
2987
2987
  *
2988
2988
  * @see https://tailwindcss.com/docs/responsive-design#container-queries
2989
2989
  */
2990
- // eslint-disable-next-line local-rules/no-typescript-assertion
2990
+ // eslint-disable-next-line @trackunit/no-typescript-assertion
2991
2991
  const CONTAINER_BREAKPOINTS = Object.fromEntries(Object.entries(uiDesignTokens.themeContainerSize).map(([key, value]) => [`@${key}`, value]));
2992
2992
 
2993
2993
  /**
@@ -3060,7 +3060,7 @@ function isContainerBreakpoint(value) {
3060
3060
  * Each slot contains a data-slot attribute and gridArea style.
3061
3061
  */
3062
3062
  function createSlots(areas) {
3063
- // eslint-disable-next-line local-rules/no-typescript-assertion -- Object.fromEntries loses key type information
3063
+ // eslint-disable-next-line @trackunit/no-typescript-assertion -- Object.fromEntries loses key type information
3064
3064
  return Object.fromEntries(areas.map(area => [area, { "data-slot": area, style: { gridArea: area } }]));
3065
3065
  }
3066
3066
  /**
@@ -6186,7 +6186,7 @@ const MenuItem = ({ className, "data-testid": dataTestId, label, children, selec
6186
6186
  if (stopPropagation) {
6187
6187
  e.stopPropagation();
6188
6188
  }
6189
- // eslint-disable-next-line local-rules/no-typescript-assertion
6189
+ // eslint-disable-next-line @trackunit/no-typescript-assertion
6190
6190
  onClick(e);
6191
6191
  }
6192
6192
  };
@@ -8029,7 +8029,7 @@ const ToggleGroup = ({ list, selected, setSelected, onChange, disabled = false,
8029
8029
  setSlidingWidth(width);
8030
8030
  }, [validIndex]);
8031
8031
  return (jsxRuntime.jsx("div", { className: tailwindMerge.twMerge(cvaToggleGroup({ className }), cvaToggleGroupWithSlidingBackground({ isMounted })), "data-testid": dataTestId, ref: ref, style:
8032
- // eslint-disable-next-line local-rules/no-typescript-assertion
8032
+ // eslint-disable-next-line @trackunit/no-typescript-assertion
8033
8033
  {
8034
8034
  "--sliding-left": `${slidingLeft}px`,
8035
8035
  "--sliding-width": `${slidingWidth}px`,
@@ -8414,7 +8414,7 @@ const useClickOutside = (el, options) => {
8414
8414
  const els = Array.isArray(el) ? el : [el];
8415
8415
  const active = options.active !== undefined ? options.active : true;
8416
8416
  const handler = (ev) => {
8417
- // eslint-disable-next-line local-rules/no-typescript-assertion
8417
+ // eslint-disable-next-line @trackunit/no-typescript-assertion
8418
8418
  const target = ev.target;
8419
8419
  if (els.every(ref => !ref.current || !ref.current.contains(target))) {
8420
8420
  options.onClick(ev);
package/index.esm.js CHANGED
@@ -2873,7 +2873,7 @@ function createGrid() {
2873
2873
  layout(config) {
2874
2874
  // At runtime, config properties are always valid arrays (error types only exist at compile-time)
2875
2875
  // We need to cast and copy readonly arrays to mutable arrays for storage
2876
- // eslint-disable-next-line local-rules/no-typescript-assertion -- Error tuple types only exist at compile-time; runtime values are always valid arrays
2876
+ // eslint-disable-next-line @trackunit/no-typescript-assertion -- Error tuple types only exist at compile-time; runtime values are always valid arrays
2877
2877
  const runtimeConfig = config;
2878
2878
  layouts.push({
2879
2879
  layout: runtimeConfig.layout.map(row => [...row]),
@@ -2985,7 +2985,7 @@ function GridAreas({ slots, css, containerProps, validationRef, className, child
2985
2985
  *
2986
2986
  * @see https://tailwindcss.com/docs/responsive-design#container-queries
2987
2987
  */
2988
- // eslint-disable-next-line local-rules/no-typescript-assertion
2988
+ // eslint-disable-next-line @trackunit/no-typescript-assertion
2989
2989
  const CONTAINER_BREAKPOINTS = Object.fromEntries(Object.entries(themeContainerSize).map(([key, value]) => [`@${key}`, value]));
2990
2990
 
2991
2991
  /**
@@ -3058,7 +3058,7 @@ function isContainerBreakpoint(value) {
3058
3058
  * Each slot contains a data-slot attribute and gridArea style.
3059
3059
  */
3060
3060
  function createSlots(areas) {
3061
- // eslint-disable-next-line local-rules/no-typescript-assertion -- Object.fromEntries loses key type information
3061
+ // eslint-disable-next-line @trackunit/no-typescript-assertion -- Object.fromEntries loses key type information
3062
3062
  return Object.fromEntries(areas.map(area => [area, { "data-slot": area, style: { gridArea: area } }]));
3063
3063
  }
3064
3064
  /**
@@ -6184,7 +6184,7 @@ const MenuItem = ({ className, "data-testid": dataTestId, label, children, selec
6184
6184
  if (stopPropagation) {
6185
6185
  e.stopPropagation();
6186
6186
  }
6187
- // eslint-disable-next-line local-rules/no-typescript-assertion
6187
+ // eslint-disable-next-line @trackunit/no-typescript-assertion
6188
6188
  onClick(e);
6189
6189
  }
6190
6190
  };
@@ -8027,7 +8027,7 @@ const ToggleGroup = ({ list, selected, setSelected, onChange, disabled = false,
8027
8027
  setSlidingWidth(width);
8028
8028
  }, [validIndex]);
8029
8029
  return (jsx("div", { className: twMerge(cvaToggleGroup({ className }), cvaToggleGroupWithSlidingBackground({ isMounted })), "data-testid": dataTestId, ref: ref, style:
8030
- // eslint-disable-next-line local-rules/no-typescript-assertion
8030
+ // eslint-disable-next-line @trackunit/no-typescript-assertion
8031
8031
  {
8032
8032
  "--sliding-left": `${slidingLeft}px`,
8033
8033
  "--sliding-width": `${slidingWidth}px`,
@@ -8412,7 +8412,7 @@ const useClickOutside = (el, options) => {
8412
8412
  const els = Array.isArray(el) ? el : [el];
8413
8413
  const active = options.active !== undefined ? options.active : true;
8414
8414
  const handler = (ev) => {
8415
- // eslint-disable-next-line local-rules/no-typescript-assertion
8415
+ // eslint-disable-next-line @trackunit/no-typescript-assertion
8416
8416
  const target = ev.target;
8417
8417
  if (els.every(ref => !ref.current || !ref.current.contains(target))) {
8418
8418
  options.onClick(ev);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "1.17.33",
3
+ "version": "1.17.34",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -14,10 +14,10 @@
14
14
  "@floating-ui/react": "^0.26.25",
15
15
  "string-ts": "^2.0.0",
16
16
  "tailwind-merge": "^2.0.0",
17
- "@trackunit/ui-design-tokens": "1.11.48",
18
- "@trackunit/css-class-variance-utilities": "1.11.48",
19
- "@trackunit/shared-utils": "1.13.48",
20
- "@trackunit/ui-icons": "1.11.47",
17
+ "@trackunit/ui-design-tokens": "1.11.49",
18
+ "@trackunit/css-class-variance-utilities": "1.11.49",
19
+ "@trackunit/shared-utils": "1.13.49",
20
+ "@trackunit/ui-icons": "1.11.48",
21
21
  "@tanstack/react-router": "1.114.29",
22
22
  "es-toolkit": "^1.39.10",
23
23
  "@tanstack/react-virtual": "3.13.12",