karsten-design-system 1.1.34 → 1.1.37

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 (33) hide show
  1. package/dist/.storybook/index.css.js +1 -1
  2. package/dist/_virtual/react-jsx-runtime.production.js +4 -0
  3. package/dist/_virtual/react-jsx-runtime.production.js.map +1 -0
  4. package/dist/index.js +0 -1
  5. package/dist/index.js.map +1 -1
  6. package/dist/node_modules/date-fns/_lib/format/formatters.js +0 -2
  7. package/dist/node_modules/date-fns/_lib/format/formatters.js.map +1 -1
  8. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +326 -1283
  9. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -1
  10. package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +45 -0
  11. package/dist/node_modules/react/cjs/react-jsx-runtime.production.js.map +1 -0
  12. package/dist/node_modules/react/jsx-runtime.js +2 -2
  13. package/dist/node_modules/react/jsx-runtime.js.map +1 -1
  14. package/dist/node_modules/style-inject/dist/style-inject.es.js +1 -1
  15. package/dist/node_modules/style-inject/dist/style-inject.es.js.map +1 -1
  16. package/dist/stories/components/calendarInput.js +8 -10
  17. package/dist/stories/components/calendarInput.js.map +1 -1
  18. package/dist/stories/components/internalMenu.js +1 -2
  19. package/dist/stories/components/internalMenu.js.map +1 -1
  20. package/dist/stories/components/sidebar.js +5 -4
  21. package/dist/stories/components/sidebar.js.map +1 -1
  22. package/dist/stories/components/table.js +8 -6
  23. package/dist/stories/components/table.js.map +1 -1
  24. package/dist/types/index.d.ts +0 -1
  25. package/dist/types/stories/components/calendarInput.d.ts +1 -1
  26. package/package.json +2 -5
  27. package/dist/_virtual/react-jsx-runtime.production.min.js +0 -4
  28. package/dist/_virtual/react-jsx-runtime.production.min.js.map +0 -1
  29. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -25
  30. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +0 -1
  31. package/dist/stories/components/tooltip.js +0 -51
  32. package/dist/stories/components/tooltip.js.map +0 -1
  33. package/dist/types/stories/components/tooltip.d.ts +0 -6
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "karsten-design-system",
3
3
  "description": "Karsten Design System Components",
4
- "version": "1.1.34",
4
+ "version": "1.1.37",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -83,8 +83,5 @@
83
83
  "typescript-eslint": "^8.18.1",
84
84
  "vite": "^6.0.3"
85
85
  },
86
- "license": "MIT",
87
- "engines": {
88
- "node": ">=20.0.0"
89
- }
86
+ "license": "MIT"
90
87
  }
@@ -1,4 +0,0 @@
1
- var reactJsxRuntime_production_min = {};
2
-
3
- export { reactJsxRuntime_production_min as __exports };
4
- //# sourceMappingURL=react-jsx-runtime.production.min.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-jsx-runtime.production.min.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,25 +0,0 @@
1
- import { __exports as reactJsxRuntime_production_min } from '../../../_virtual/react-jsx-runtime.production.min.js';
2
- import require$$0 from 'react';
3
-
4
- /**
5
- * @license React
6
- * react-jsx-runtime.production.min.js
7
- *
8
- * Copyright (c) Facebook, Inc. and its affiliates.
9
- *
10
- * This source code is licensed under the MIT license found in the
11
- * LICENSE file in the root directory of this source tree.
12
- */
13
-
14
- var hasRequiredReactJsxRuntime_production_min;
15
-
16
- function requireReactJsxRuntime_production_min () {
17
- if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
18
- hasRequiredReactJsxRuntime_production_min = 1;
19
- var f=require$$0,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:true,ref:true,__self:true,__source:true};
20
- function q(c,a,g){var b,d={},e=null,h=null;undefined!==g&&(e=""+g);undefined!==a.key&&(e=""+a.key);undefined!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a) undefined===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
21
- return reactJsxRuntime_production_min;
22
- }
23
-
24
- export { requireReactJsxRuntime_production_min as __require };
25
- //# sourceMappingURL=react-jsx-runtime.production.min.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-jsx-runtime.production.min.js","sources":["../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AASa,IAAI,CAAC,CAAC,UAAgB,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,MA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O,CAAC,CAAC,uCAAgB,CAAC,CAAC,CAAC,8BAAW,CAAA,GAAA,CAAC,CAAC,CAAC,8BAAA,CAAA,IAAY,CAAC,CAAC;;;;;;","x_google_ignoreList":[0]}
@@ -1,51 +0,0 @@
1
- import { j as jsxRuntimeExports } from '../../_virtual/jsx-runtime.js';
2
- import { useState, useRef, useEffect } from 'react';
3
- import ReactDOM from 'react-dom';
4
-
5
- function Tooltip({ text, children }) {
6
- const [isVisible, setIsVisible] = useState(false);
7
- const [coords, setCoords] = useState({ top: 0, left: 0 });
8
- const [adjustedLeft, setAdjustedLeft] = useState(null);
9
- const ref = useRef(null);
10
- const tooltipRef = useRef(null);
11
- const showTooltip = () => {
12
- if (!text)
13
- return;
14
- setIsVisible(true);
15
- if (ref.current) {
16
- const rect = ref.current.getBoundingClientRect();
17
- setCoords({
18
- top: rect.top,
19
- left: rect.left + rect.width / 2,
20
- });
21
- }
22
- };
23
- useEffect(() => {
24
- if (isVisible && tooltipRef.current) {
25
- const tooltipRect = tooltipRef.current.getBoundingClientRect();
26
- const overflowRight = tooltipRect.right > window.innerWidth;
27
- const overflowLeft = tooltipRect.left < 0;
28
- let newLeft = coords.left;
29
- if (overflowLeft) {
30
- newLeft = 120;
31
- }
32
- if (overflowRight && !overflowLeft) {
33
- newLeft += -28;
34
- }
35
- setAdjustedLeft(newLeft);
36
- }
37
- }, [isVisible, coords]);
38
- return (jsxRuntimeExports.jsxs("div", { ref: ref, className: "inline-block", onMouseEnter: showTooltip, onMouseLeave: () => {
39
- setIsVisible(false);
40
- setAdjustedLeft(null);
41
- }, children: [children, isVisible &&
42
- ReactDOM.createPortal(jsxRuntimeExports.jsx("div", { ref: tooltipRef, className: "fixed z-50 bg-[#646981] text-white text-sm py-1 px-2 rounded-md whitespace-nowrap", style: {
43
- top: coords.top - 10,
44
- left: adjustedLeft ?? coords.left,
45
- transform: 'translate(-50%, -100%)',
46
- pointerEvents: 'none',
47
- }, children: text }), document.body)] }));
48
- }
49
-
50
- export { Tooltip };
51
- //# sourceMappingURL=tooltip.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tooltip.js","sources":["../../../../src/stories/components/tooltip.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;SAQgB,OAAO,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAgB,EAAA;IACtD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC;AACjD,IAAA,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;IACzD,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC;AACrE,IAAA,MAAM,GAAG,GAAG,MAAM,CAAiB,IAAI,CAAC;AACxC,IAAA,MAAM,UAAU,GAAG,MAAM,CAAiB,IAAI,CAAC;IAE/C,MAAM,WAAW,GAAG,MAAK;AACvB,QAAA,IAAI,CAAC,IAAI;YAAE;QACX,YAAY,CAAC,IAAI,CAAC;AAElB,QAAA,IAAI,GAAG,CAAC,OAAO,EAAE;YACf,MAAM,IAAI,GAAG,GAAG,CAAC,OAAO,CAAC,qBAAqB,EAAE;AAChD,YAAA,SAAS,CAAC;gBACR,GAAG,EAAE,IAAI,CAAC,GAAG;gBACb,IAAI,EAAE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,GAAG,CAAC;AACjC,aAAA,CAAC;;AAEN,KAAC;IAED,SAAS,CAAC,MAAK;AACb,QAAA,IAAI,SAAS,IAAI,UAAU,CAAC,OAAO,EAAE;YACnC,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,CAAC,qBAAqB,EAAE;YAC9D,MAAM,aAAa,GAAG,WAAW,CAAC,KAAK,GAAG,MAAM,CAAC,UAAU;AAC3D,YAAA,MAAM,YAAY,GAAG,WAAW,CAAC,IAAI,GAAG,CAAC;AAEzC,YAAA,IAAI,OAAO,GAAG,MAAM,CAAC,IAAI;YAEzB,IAAI,YAAY,EAAE;gBAChB,OAAO,GAAG,GAAG;;AAGf,YAAA,IAAI,aAAa,IAAI,CAAC,YAAY,EAAE;gBAClC,OAAO,IAAI,GAAG;;YAGhB,eAAe,CAAC,OAAO,CAAC;;AAE5B,KAAC,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;AAEvB,IAAA,QACEA,sBACE,CAAA,KAAA,EAAA,EAAA,GAAG,EAAE,GAAG,EACR,SAAS,EAAC,cAAc,EACxB,YAAY,EAAE,WAAW,EACzB,YAAY,EAAE,MAAK;YACjB,YAAY,CAAC,KAAK,CAAC;YACnB,eAAe,CAAC,IAAI,CAAC;SACtB,EAAA,QAAA,EAAA,CAEA,QAAQ,EACR,SAAS;AACR,gBAAA,QAAQ,CAAC,YAAY,CACnBC,qBAAA,CAAA,KAAA,EAAA,EACE,GAAG,EAAE,UAAU,EACf,SAAS,EAAC,mFAAmF,EAC7F,KAAK,EAAE;AACL,wBAAA,GAAG,EAAE,MAAM,CAAC,GAAG,GAAG,EAAE;AACpB,wBAAA,IAAI,EAAE,YAAY,IAAI,MAAM,CAAC,IAAI;AACjC,wBAAA,SAAS,EAAE,wBAAwB;AACnC,wBAAA,aAAa,EAAE,MAAM;qBACtB,EAEA,QAAA,EAAA,IAAI,GACD,EACN,QAAQ,CAAC,IAAI,CACd,CACC,EAAA,CAAA;AAEV;;;;"}
@@ -1,6 +0,0 @@
1
- interface TooltipProps {
2
- text: string | null | undefined;
3
- children: React.ReactNode;
4
- }
5
- export declare function Tooltip({ text, children }: TooltipProps): import("react/jsx-runtime").JSX.Element;
6
- export {};