@lazhus/kg-ui 0.7.2 → 0.7.3

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 (51) hide show
  1. package/custom-elements.json +0 -97
  2. package/dist/index.js +1 -1
  3. package/dist/react/index.js +1 -1
  4. package/package.json +1 -1
  5. package/types/index.d.ts +0 -8
  6. package/types/react/Kgaccordion.d.ts +1 -1
  7. package/types/react/Kgaccordionitem.d.ts +1 -1
  8. package/types/react/Kgavatar.d.ts +1 -1
  9. package/types/react/Kgbreadcrumbitem.d.ts +1 -1
  10. package/types/react/Kgbreadcrumbs.d.ts +1 -1
  11. package/types/react/Kgbutton.d.ts +1 -1
  12. package/types/react/Kgcard.d.ts +1 -1
  13. package/types/react/Kgcheckbox.d.ts +1 -1
  14. package/types/react/Kgcolorpicker.d.ts +1 -1
  15. package/types/react/Kgcolumn.d.ts +1 -1
  16. package/types/react/Kgdatagrid.d.ts +1 -1
  17. package/types/react/Kgdatepicker.d.ts +1 -1
  18. package/types/react/Kgdivider.d.ts +1 -1
  19. package/types/react/Kgdrawer.d.ts +1 -1
  20. package/types/react/Kgfileupload.d.ts +1 -1
  21. package/types/react/Kggrid.d.ts +1 -1
  22. package/types/react/Kgimage.d.ts +1 -1
  23. package/types/react/Kginput.d.ts +1 -1
  24. package/types/react/Kglink.d.ts +1 -1
  25. package/types/react/Kglist.d.ts +1 -1
  26. package/types/react/Kglistitem.d.ts +1 -1
  27. package/types/react/Kgloader.d.ts +1 -1
  28. package/types/react/Kgmodal.d.ts +1 -1
  29. package/types/react/Kgprogress.d.ts +1 -1
  30. package/types/react/Kgradio.d.ts +1 -1
  31. package/types/react/Kgradiogroup.d.ts +1 -1
  32. package/types/react/Kgrow.d.ts +1 -1
  33. package/types/react/Kgselect.d.ts +1 -1
  34. package/types/react/Kgskeleton.d.ts +1 -1
  35. package/types/react/Kgslider.d.ts +1 -1
  36. package/types/react/Kgspinner.d.ts +1 -1
  37. package/types/react/Kgstepper.d.ts +1 -1
  38. package/types/react/Kgswitch.d.ts +1 -1
  39. package/types/react/Kgtabpanel.d.ts +1 -1
  40. package/types/react/Kgtabs.d.ts +1 -1
  41. package/types/react/Kgtag.d.ts +1 -1
  42. package/types/react/Kgtext.d.ts +1 -1
  43. package/types/react/Kgtextarea.d.ts +1 -1
  44. package/types/react/Kgtoast.d.ts +1 -1
  45. package/types/react/Kgtree.d.ts +1 -1
  46. package/types/react/Kgtreeitem.d.ts +1 -1
  47. package/types/react/index.d.ts +0 -1
  48. package/dist/components/kg-tooltip.js +0 -95
  49. package/dist/react/KgTooltip.js +0 -1
  50. package/types/components/kg-tooltip.d.ts +0 -28
  51. package/types/react/Kgtooltip.d.ts +0 -6
@@ -4488,103 +4488,6 @@
4488
4488
  }
4489
4489
  ]
4490
4490
  },
4491
- {
4492
- "kind": "javascript-module",
4493
- "path": "src/components/kg-tooltip.js",
4494
- "declarations": [
4495
- {
4496
- "kind": "class",
4497
- "description": "",
4498
- "name": "kgtooltip",
4499
- "members": [
4500
- {
4501
- "kind": "field",
4502
- "name": "properties",
4503
- "type": {
4504
- "text": "object"
4505
- },
4506
- "static": true,
4507
- "default": "{ content: { type: String }, position: { type: String, reflect: true }, // top, bottom, left, right trigger: { type: String, reflect: true }, // hover, click visible: { type: Boolean, reflect: true }, }"
4508
- },
4509
- {
4510
- "kind": "field",
4511
- "name": "styles",
4512
- "static": true,
4513
- "default": "css` :host { display: inline-block; position: relative; } .tooltip-trigger { display: inline-block; cursor: pointer; } .tooltip-content { position: absolute; background: #333; color: white; padding: 0.5rem 0.75rem; border-radius: 6px; font-size: 0.85rem; white-space: nowrap; z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 4px 12px rgba(0,0,0,0.15); pointer-events: none; } /* Position Styles */ .top { bottom: 100%; left: 50%; transform: translateX(-50%) translateY(-8px); margin-bottom: 8px; } .bottom { top: 100%; left: 50%; transform: translateX(-50%) translateY(8px); margin-top: 8px; } .left { top: 50%; right: 100%; transform: translateY(-50%) translateX(-8px); margin-right: 8px; } .right { top: 50%; left: 100%; transform: translateY(-50%) translateX(8px); margin-left: 8px; } /* Arrow */ .tooltip-content::after { content: ''; position: absolute; border: 5px solid transparent; } .top::after { top: 100%; left: 50%; transform: translateX(-50%); border-top-color: #333; } .bottom::after { bottom: 100%; left: 50%; transform: translateX(-50%); border-bottom-color: #333; } .left::after { left: 100%; top: 50%; transform: translateY(-50%); border-left-color: #333; } .right::after { right: 100%; top: 50%; transform: translateY(-50%); border-right-color: #333; } /* Visibility Logic */ :host([trigger=\"hover\"]:hover) .tooltip-content, :host([visible]) .tooltip-content { opacity: 1; visibility: visible; } /* Transform Adjustment for Visible State */ :host([trigger=\"hover\"]:hover) .tooltip-content.top, :host([visible]) .tooltip-content.top { transform: translateX(-50%) translateY(-4px); } :host([trigger=\"hover\"]:hover) .tooltip-content.bottom, :host([visible]) .tooltip-content.bottom { transform: translateX(-50%) translateY(4px); } :host([trigger=\"hover\"]:hover) .tooltip-content.left, :host([visible]) .tooltip-content.left { transform: translateY(-50%) translateX(-4px); } :host([trigger=\"hover\"]:hover) .tooltip-content.right, :host([visible]) .tooltip-content.right { transform: translateY(-50%) translateX(4px); } `"
4514
- },
4515
- {
4516
- "kind": "method",
4517
- "name": "_show"
4518
- },
4519
- {
4520
- "kind": "method",
4521
- "name": "_hide"
4522
- },
4523
- {
4524
- "kind": "method",
4525
- "name": "_handleOutsideClick",
4526
- "parameters": [
4527
- {
4528
- "name": "e"
4529
- }
4530
- ]
4531
- },
4532
- {
4533
- "kind": "method",
4534
- "name": "render"
4535
- },
4536
- {
4537
- "kind": "field",
4538
- "name": "position",
4539
- "type": {
4540
- "text": "string"
4541
- },
4542
- "default": "'top'"
4543
- },
4544
- {
4545
- "kind": "field",
4546
- "name": "trigger",
4547
- "type": {
4548
- "text": "string"
4549
- },
4550
- "default": "'hover'"
4551
- },
4552
- {
4553
- "kind": "field",
4554
- "name": "visible",
4555
- "type": {
4556
- "text": "boolean"
4557
- },
4558
- "default": "false"
4559
- }
4560
- ],
4561
- "superclass": {
4562
- "name": "LitElement",
4563
- "package": "lit"
4564
- },
4565
- "tagName": "kg-tooltip",
4566
- "customElement": true
4567
- }
4568
- ],
4569
- "exports": [
4570
- {
4571
- "kind": "js",
4572
- "name": "kgtooltip",
4573
- "declaration": {
4574
- "name": "kgtooltip",
4575
- "module": "src/components/kg-tooltip.js"
4576
- }
4577
- },
4578
- {
4579
- "kind": "custom-element-definition",
4580
- "name": "kg-tooltip",
4581
- "declaration": {
4582
- "name": "kgtooltip",
4583
- "module": "src/components/kg-tooltip.js"
4584
- }
4585
- }
4586
- ]
4587
- },
4588
4491
  {
4589
4492
  "kind": "javascript-module",
4590
4493
  "path": "src/components/kg-tree.js",
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{kgaccordionitem as o}from"./components/kg-accordion-item.js";import{kgaccordion as m}from"./components/kg-accordion.js";import{kgbutton as r}from"./components/kg-button.js";import{kgcard as t}from"./components/kg-card.js";import{kgcheckbox as p}from"./components/kg-checkbox.js";import{kgcolorpicker as s}from"./components/kg-colorpicker.js";import{kgcolumn as n}from"./components/kg-column.js";import{kgdatepicker as e}from"./components/kg-datepicker.js";import{kgdivider as i}from"./components/kg-divider.js";import{kgdrawer as c}from"./components/kg-drawer.js";import{kgfileupload as g}from"./components/kg-file-upload.js";import{kggrid as k}from"./components/kg-grid.js";import{kgdatagrid as f}from"./components/kg-datagrid.js";import{kginput as j}from"./components/kg-input.js";import{kgmodal as a}from"./components/kg-modal.js";import{kgradiogroup as d}from"./components/kg-radio-group.js";import{kgradio as l}from"./components/kg-radio.js";import{kgrow as b}from"./components/kg-row.js";import{kgselect as u}from"./components/kg-select.js";import{kgskeleton as x}from"./components/kg-skeleton.js";import{kgslider as w}from"./components/kg-slider.js";import{kgstepper as h}from"./components/kg-stepper.js";import{kgswitch as v}from"./components/kg-switch.js";import{kgtabpanel as q}from"./components/kg-tab-panel.js";import{kgtabs as y}from"./components/kg-tabs.js";import{kgtext as z}from"./components/kg-text.js";import{kgtextarea as A}from"./components/kg-textarea.js";import{kgtoast as B,toast as C}from"./components/kg-toast.js";import{kgimage as D}from"./components/kg-image.js";import{kgprogress as E}from"./components/kg-progress.js";import{kgspinner as F}from"./components/kg-spinner.js";import{kgloader as G,loader as H}from"./components/kg-loader.js";import{kgavatar as I}from"./components/kg-avatar.js";import{kgtag as J}from"./components/kg-tag.js";import{kgbreadcrumbitem as K,kgbreadcrumbs as L}from"./components/kg-breadcrumbs.js";import{kgtooltip as M}from"./components/kg-tooltip.js";import{kglink as N}from"./components/kg-link.js";import{kgtree as O,kgtreeitem as P}from"./components/kg-tree.js";import{kglist as Q,kglistitem as R}from"./components/kg-list.js";export{m as kgaccordion,o as kgaccordionitem,I as kgavatar,K as kgbreadcrumbitem,L as kgbreadcrumbs,r as kgbutton,t as kgcard,p as kgcheckbox,s as kgcolorpicker,n as kgcolumn,f as kgdatagrid,e as kgdatepicker,i as kgdivider,c as kgdrawer,g as kgfileupload,k as kggrid,D as kgimage,j as kginput,N as kglink,Q as kglist,R as kglistitem,G as kgloader,a as kgmodal,E as kgprogress,l as kgradio,d as kgradiogroup,b as kgrow,u as kgselect,x as kgskeleton,w as kgslider,F as kgspinner,h as kgstepper,v as kgswitch,q as kgtabpanel,y as kgtabs,J as kgtag,z as kgtext,A as kgtextarea,B as kgtoast,M as kgtooltip,O as kgtree,P as kgtreeitem,H as loader,C as toast};
1
+ import{kgaccordionitem as o}from"./components/kg-accordion-item.js";import{kgaccordion as m}from"./components/kg-accordion.js";import{kgbutton as r}from"./components/kg-button.js";import{kgcard as t}from"./components/kg-card.js";import{kgcheckbox as s}from"./components/kg-checkbox.js";import{kgcolorpicker as p}from"./components/kg-colorpicker.js";import{kgcolumn as n}from"./components/kg-column.js";import{kgdatepicker as e}from"./components/kg-datepicker.js";import{kgdivider as i}from"./components/kg-divider.js";import{kgdrawer as c}from"./components/kg-drawer.js";import{kgfileupload as g}from"./components/kg-file-upload.js";import{kggrid as k}from"./components/kg-grid.js";import{kgdatagrid as f}from"./components/kg-datagrid.js";import{kginput as j}from"./components/kg-input.js";import{kgmodal as a}from"./components/kg-modal.js";import{kgradiogroup as d}from"./components/kg-radio-group.js";import{kgradio as l}from"./components/kg-radio.js";import{kgrow as b}from"./components/kg-row.js";import{kgselect as u}from"./components/kg-select.js";import{kgskeleton as x}from"./components/kg-skeleton.js";import{kgslider as w}from"./components/kg-slider.js";import{kgstepper as h}from"./components/kg-stepper.js";import{kgswitch as v}from"./components/kg-switch.js";import{kgtabpanel as q}from"./components/kg-tab-panel.js";import{kgtabs as y}from"./components/kg-tabs.js";import{kgtext as z}from"./components/kg-text.js";import{kgtextarea as A}from"./components/kg-textarea.js";import{kgtoast as B,toast as C}from"./components/kg-toast.js";import{kgimage as D}from"./components/kg-image.js";import{kgprogress as E}from"./components/kg-progress.js";import{kgspinner as F}from"./components/kg-spinner.js";import{kgloader as G,loader as H}from"./components/kg-loader.js";import{kgavatar as I}from"./components/kg-avatar.js";import{kgtag as J}from"./components/kg-tag.js";import{kgbreadcrumbitem as K,kgbreadcrumbs as L}from"./components/kg-breadcrumbs.js";import{kglink as M}from"./components/kg-link.js";import{kgtree as N,kgtreeitem as O}from"./components/kg-tree.js";import{kglist as P,kglistitem as Q}from"./components/kg-list.js";export{m as kgaccordion,o as kgaccordionitem,I as kgavatar,K as kgbreadcrumbitem,L as kgbreadcrumbs,r as kgbutton,t as kgcard,s as kgcheckbox,p as kgcolorpicker,n as kgcolumn,f as kgdatagrid,e as kgdatepicker,i as kgdivider,c as kgdrawer,g as kgfileupload,k as kggrid,D as kgimage,j as kginput,M as kglink,P as kglist,Q as kglistitem,G as kgloader,a as kgmodal,E as kgprogress,l as kgradio,d as kgradiogroup,b as kgrow,u as kgselect,x as kgskeleton,w as kgslider,F as kgspinner,h as kgstepper,v as kgswitch,q as kgtabpanel,y as kgtabs,J as kgtag,z as kgtext,A as kgtextarea,B as kgtoast,N as kgtree,O as kgtreeitem,H as loader,C as toast};
@@ -1 +1 @@
1
- import{KgAccordion as r}from"./KgAccordion.js";import{KgAccordionItem as o}from"./KgAccordionItem.js";import{KgAvatar as m}from"./KgAvatar.js";import{KgBreadcrumbs as i}from"./KgBreadcrumbs.js";import{KgButton as t}from"./KgButton.js";import{KgCard as p}from"./KgCard.js";import{KgCheckbox as s}from"./KgCheckbox.js";import{KgColorPicker as g}from"./KgColorPicker.js";import{KgColumn as f}from"./KgColumn.js";import{KgDataGrid as j}from"./KgDataGrid.js";import{KgDatePicker as K}from"./KgDatePicker.js";import{KgDivider as e}from"./KgDivider.js";import{KgDrawer as a}from"./KgDrawer.js";import{KgFileUpload as d}from"./KgFileUpload.js";import{KgGrid as c}from"./KgGrid.js";import{KgImage as l}from"./KgImage.js";import{KgInput as n}from"./KgInput.js";import{KgLink as T}from"./KgLink.js";import{KgList as S}from"./KgList.js";import{KgLoader as k}from"./KgLoader.js";import{KgModal as u}from"./KgModal.js";import{KgProgress as b}from"./KgProgress.js";import{KgRadio as x}from"./KgRadio.js";import{KgRadioGroup as C}from"./KgRadioGroup.js";import{KgRow as D}from"./KgRow.js";import{KgSelect as P}from"./KgSelect.js";import{KgSkeleton as w}from"./KgSkeleton.js";import{KgSlider as A}from"./KgSlider.js";import{KgSpinner as G}from"./KgSpinner.js";import{KgStepper as I}from"./KgStepper.js";import{KgSwitch as L}from"./KgSwitch.js";import{KgTabPanel as R}from"./KgTabPanel.js";import{KgTabs as h}from"./KgTabs.js";import{KgTag as v}from"./KgTag.js";import{KgText as B}from"./KgText.js";import{KgTextarea as F}from"./KgTextarea.js";import{KgToast as M}from"./KgToast.js";import{KgTooltip as U}from"./KgTooltip.js";import{KgTree as q}from"./KgTree.js";export{r as KgAccordion,o as KgAccordionItem,m as KgAvatar,i as KgBreadcrumbs,t as KgButton,p as KgCard,s as KgCheckbox,g as KgColorPicker,f as KgColumn,j as KgDataGrid,K as KgDatePicker,e as KgDivider,a as KgDrawer,d as KgFileUpload,c as KgGrid,l as KgImage,n as KgInput,T as KgLink,S as KgList,k as KgLoader,u as KgModal,b as KgProgress,x as KgRadio,C as KgRadioGroup,D as KgRow,P as KgSelect,w as KgSkeleton,A as KgSlider,G as KgSpinner,I as KgStepper,L as KgSwitch,R as KgTabPanel,h as KgTabs,v as KgTag,B as KgText,F as KgTextarea,M as KgToast,U as KgTooltip,q as KgTree};
1
+ import{KgAccordion as r}from"./KgAccordion.js";import{KgAccordionItem as o}from"./KgAccordionItem.js";import{KgAvatar as m}from"./KgAvatar.js";import{KgBreadcrumbs as i}from"./KgBreadcrumbs.js";import{KgButton as t}from"./KgButton.js";import{KgCard as p}from"./KgCard.js";import{KgCheckbox as s}from"./KgCheckbox.js";import{KgColorPicker as g}from"./KgColorPicker.js";import{KgColumn as f}from"./KgColumn.js";import{KgDataGrid as j}from"./KgDataGrid.js";import{KgDatePicker as K}from"./KgDatePicker.js";import{KgDivider as e}from"./KgDivider.js";import{KgDrawer as a}from"./KgDrawer.js";import{KgFileUpload as d}from"./KgFileUpload.js";import{KgGrid as c}from"./KgGrid.js";import{KgImage as n}from"./KgImage.js";import{KgInput as l}from"./KgInput.js";import{KgLink as T}from"./KgLink.js";import{KgList as S}from"./KgList.js";import{KgLoader as k}from"./KgLoader.js";import{KgModal as u}from"./KgModal.js";import{KgProgress as b}from"./KgProgress.js";import{KgRadio as x}from"./KgRadio.js";import{KgRadioGroup as C}from"./KgRadioGroup.js";import{KgRow as D}from"./KgRow.js";import{KgSelect as P}from"./KgSelect.js";import{KgSkeleton as w}from"./KgSkeleton.js";import{KgSlider as A}from"./KgSlider.js";import{KgSpinner as G}from"./KgSpinner.js";import{KgStepper as I}from"./KgStepper.js";import{KgSwitch as L}from"./KgSwitch.js";import{KgTabPanel as R}from"./KgTabPanel.js";import{KgTabs as h}from"./KgTabs.js";import{KgTag as v}from"./KgTag.js";import{KgText as B}from"./KgText.js";import{KgTextarea as F}from"./KgTextarea.js";import{KgToast as M}from"./KgToast.js";import{KgTree as U}from"./KgTree.js";export{r as KgAccordion,o as KgAccordionItem,m as KgAvatar,i as KgBreadcrumbs,t as KgButton,p as KgCard,s as KgCheckbox,g as KgColorPicker,f as KgColumn,j as KgDataGrid,K as KgDatePicker,e as KgDivider,a as KgDrawer,d as KgFileUpload,c as KgGrid,n as KgImage,l as KgInput,T as KgLink,S as KgList,k as KgLoader,u as KgModal,b as KgProgress,x as KgRadio,C as KgRadioGroup,D as KgRow,P as KgSelect,w as KgSkeleton,A as KgSlider,G as KgSpinner,I as KgStepper,L as KgSwitch,R as KgTabPanel,h as KgTabs,v as KgTag,B as KgText,F as KgTextarea,M as KgToast,U as KgTree};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazhus/kg-ui",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
package/types/index.d.ts CHANGED
@@ -39,7 +39,6 @@ export { kgtag } from './components/kg-tag';
39
39
  export { kgtext } from './components/kg-text';
40
40
  export { kgtextarea } from './components/kg-textarea';
41
41
  export { kgtoast } from './components/kg-toast';
42
- export { kgtooltip } from './components/kg-tooltip';
43
42
  export { kgtree } from './components/kg-tree';
44
43
  export { kgtreeitem } from './components/kg-tree';
45
44
 
@@ -84,7 +83,6 @@ declare global {
84
83
  'kg-text': kgtext;
85
84
  'kg-textarea': kgtextarea;
86
85
  'kg-toast': kgtoast;
87
- 'kg-tooltip': kgtooltip;
88
86
  'kg-tree': kgtree;
89
87
  'kg-tree-item': kgtreeitem;
90
88
  }
@@ -356,12 +354,6 @@ declare global {
356
354
  color?: string;
357
355
  [key: string]: any;
358
356
  };
359
- 'kg-tooltip': {
360
- position?: string;
361
- trigger?: string;
362
- visible?: boolean;
363
- [key: string]: any;
364
- };
365
357
  'kg-tree': {
366
358
 
367
359
  [key: string]: any;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgaccordion } from '../components/kg-accordion';
3
3
 
4
- export const KgAccordion: React.ForwardRefExoticComponent<Partial<kgaccordion> & React.RefAttributes<kgaccordion> & {
4
+ export const KgAccordion: React.ForwardRefExoticComponent<Partial<Omit<kgaccordion, keyof HTMLElement>> & React.HTMLAttributes<kgaccordion> & React.RefAttributes<kgaccordion> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgaccordionitem } from '../components/kg-accordion-item';
3
3
 
4
- export const KgAccordionItem: React.ForwardRefExoticComponent<Partial<kgaccordionitem> & React.RefAttributes<kgaccordionitem> & {
4
+ export const KgAccordionItem: React.ForwardRefExoticComponent<Partial<Omit<kgaccordionitem, keyof HTMLElement>> & React.HTMLAttributes<kgaccordionitem> & React.RefAttributes<kgaccordionitem> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgavatar } from '../components/kg-avatar';
3
3
 
4
- export const KgAvatar: React.ForwardRefExoticComponent<Partial<kgavatar> & React.RefAttributes<kgavatar> & {
4
+ export const KgAvatar: React.ForwardRefExoticComponent<Partial<Omit<kgavatar, keyof HTMLElement>> & React.HTMLAttributes<kgavatar> & React.RefAttributes<kgavatar> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgbreadcrumbitem } from '../components/kg-breadcrumbs';
3
3
 
4
- export const KgBreadcrumbItem: React.ForwardRefExoticComponent<Partial<kgbreadcrumbitem> & React.RefAttributes<kgbreadcrumbitem> & {
4
+ export const KgBreadcrumbItem: React.ForwardRefExoticComponent<Partial<Omit<kgbreadcrumbitem, keyof HTMLElement>> & React.HTMLAttributes<kgbreadcrumbitem> & React.RefAttributes<kgbreadcrumbitem> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgbreadcrumbs } from '../components/kg-breadcrumbs';
3
3
 
4
- export const KgBreadcrumbs: React.ForwardRefExoticComponent<Partial<kgbreadcrumbs> & React.RefAttributes<kgbreadcrumbs> & {
4
+ export const KgBreadcrumbs: React.ForwardRefExoticComponent<Partial<Omit<kgbreadcrumbs, keyof HTMLElement>> & React.HTMLAttributes<kgbreadcrumbs> & React.RefAttributes<kgbreadcrumbs> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgbutton } from '../components/kg-button';
3
3
 
4
- export const KgButton: React.ForwardRefExoticComponent<Partial<kgbutton> & React.RefAttributes<kgbutton> & {
4
+ export const KgButton: React.ForwardRefExoticComponent<Partial<Omit<kgbutton, keyof HTMLElement>> & React.HTMLAttributes<kgbutton> & React.RefAttributes<kgbutton> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgcard } from '../components/kg-card';
3
3
 
4
- export const KgCard: React.ForwardRefExoticComponent<Partial<kgcard> & React.RefAttributes<kgcard> & {
4
+ export const KgCard: React.ForwardRefExoticComponent<Partial<Omit<kgcard, keyof HTMLElement>> & React.HTMLAttributes<kgcard> & React.RefAttributes<kgcard> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgcheckbox } from '../components/kg-checkbox';
3
3
 
4
- export const KgCheckbox: React.ForwardRefExoticComponent<Partial<kgcheckbox> & React.RefAttributes<kgcheckbox> & {
4
+ export const KgCheckbox: React.ForwardRefExoticComponent<Partial<Omit<kgcheckbox, keyof HTMLElement>> & React.HTMLAttributes<kgcheckbox> & React.RefAttributes<kgcheckbox> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgcolorpicker } from '../components/kg-colorpicker';
3
3
 
4
- export const KgColorPicker: React.ForwardRefExoticComponent<Partial<kgcolorpicker> & React.RefAttributes<kgcolorpicker> & {
4
+ export const KgColorPicker: React.ForwardRefExoticComponent<Partial<Omit<kgcolorpicker, keyof HTMLElement>> & React.HTMLAttributes<kgcolorpicker> & React.RefAttributes<kgcolorpicker> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgcolumn } from '../components/kg-column';
3
3
 
4
- export const KgColumn: React.ForwardRefExoticComponent<Partial<kgcolumn> & React.RefAttributes<kgcolumn> & {
4
+ export const KgColumn: React.ForwardRefExoticComponent<Partial<Omit<kgcolumn, keyof HTMLElement>> & React.HTMLAttributes<kgcolumn> & React.RefAttributes<kgcolumn> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgdatagrid } from '../components/kg-datagrid';
3
3
 
4
- export const KgDataGrid: React.ForwardRefExoticComponent<Partial<kgdatagrid> & React.RefAttributes<kgdatagrid> & {
4
+ export const KgDataGrid: React.ForwardRefExoticComponent<Partial<Omit<kgdatagrid, keyof HTMLElement>> & React.HTMLAttributes<kgdatagrid> & React.RefAttributes<kgdatagrid> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgdatepicker } from '../components/kg-datepicker';
3
3
 
4
- export const KgDatePicker: React.ForwardRefExoticComponent<Partial<kgdatepicker> & React.RefAttributes<kgdatepicker> & {
4
+ export const KgDatePicker: React.ForwardRefExoticComponent<Partial<Omit<kgdatepicker, keyof HTMLElement>> & React.HTMLAttributes<kgdatepicker> & React.RefAttributes<kgdatepicker> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgdivider } from '../components/kg-divider';
3
3
 
4
- export const KgDivider: React.ForwardRefExoticComponent<Partial<kgdivider> & React.RefAttributes<kgdivider> & {
4
+ export const KgDivider: React.ForwardRefExoticComponent<Partial<Omit<kgdivider, keyof HTMLElement>> & React.HTMLAttributes<kgdivider> & React.RefAttributes<kgdivider> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgdrawer } from '../components/kg-drawer';
3
3
 
4
- export const KgDrawer: React.ForwardRefExoticComponent<Partial<kgdrawer> & React.RefAttributes<kgdrawer> & {
4
+ export const KgDrawer: React.ForwardRefExoticComponent<Partial<Omit<kgdrawer, keyof HTMLElement>> & React.HTMLAttributes<kgdrawer> & React.RefAttributes<kgdrawer> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgfileupload } from '../components/kg-file-upload';
3
3
 
4
- export const KgFileUpload: React.ForwardRefExoticComponent<Partial<kgfileupload> & React.RefAttributes<kgfileupload> & {
4
+ export const KgFileUpload: React.ForwardRefExoticComponent<Partial<Omit<kgfileupload, keyof HTMLElement>> & React.HTMLAttributes<kgfileupload> & React.RefAttributes<kgfileupload> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kggrid } from '../components/kg-grid';
3
3
 
4
- export const KgGrid: React.ForwardRefExoticComponent<Partial<kggrid> & React.RefAttributes<kggrid> & {
4
+ export const KgGrid: React.ForwardRefExoticComponent<Partial<Omit<kggrid, keyof HTMLElement>> & React.HTMLAttributes<kggrid> & React.RefAttributes<kggrid> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgimage } from '../components/kg-image';
3
3
 
4
- export const KgImage: React.ForwardRefExoticComponent<Partial<kgimage> & React.RefAttributes<kgimage> & {
4
+ export const KgImage: React.ForwardRefExoticComponent<Partial<Omit<kgimage, keyof HTMLElement>> & React.HTMLAttributes<kgimage> & React.RefAttributes<kgimage> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kginput } from '../components/kg-input';
3
3
 
4
- export const KgInput: React.ForwardRefExoticComponent<Partial<kginput> & React.RefAttributes<kginput> & {
4
+ export const KgInput: React.ForwardRefExoticComponent<Partial<Omit<kginput, keyof HTMLElement>> & React.HTMLAttributes<kginput> & React.RefAttributes<kginput> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kglink } from '../components/kg-link';
3
3
 
4
- export const KgLink: React.ForwardRefExoticComponent<Partial<kglink> & React.RefAttributes<kglink> & {
4
+ export const KgLink: React.ForwardRefExoticComponent<Partial<Omit<kglink, keyof HTMLElement>> & React.HTMLAttributes<kglink> & React.RefAttributes<kglink> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kglist } from '../components/kg-list';
3
3
 
4
- export const KgList: React.ForwardRefExoticComponent<Partial<kglist> & React.RefAttributes<kglist> & {
4
+ export const KgList: React.ForwardRefExoticComponent<Partial<Omit<kglist, keyof HTMLElement>> & React.HTMLAttributes<kglist> & React.RefAttributes<kglist> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kglistitem } from '../components/kg-list';
3
3
 
4
- export const KgListItem: React.ForwardRefExoticComponent<Partial<kglistitem> & React.RefAttributes<kglistitem> & {
4
+ export const KgListItem: React.ForwardRefExoticComponent<Partial<Omit<kglistitem, keyof HTMLElement>> & React.HTMLAttributes<kglistitem> & React.RefAttributes<kglistitem> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgloader } from '../components/kg-loader';
3
3
 
4
- export const KgLoader: React.ForwardRefExoticComponent<Partial<kgloader> & React.RefAttributes<kgloader> & {
4
+ export const KgLoader: React.ForwardRefExoticComponent<Partial<Omit<kgloader, keyof HTMLElement>> & React.HTMLAttributes<kgloader> & React.RefAttributes<kgloader> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgmodal } from '../components/kg-modal';
3
3
 
4
- export const KgModal: React.ForwardRefExoticComponent<Partial<kgmodal> & React.RefAttributes<kgmodal> & {
4
+ export const KgModal: React.ForwardRefExoticComponent<Partial<Omit<kgmodal, keyof HTMLElement>> & React.HTMLAttributes<kgmodal> & React.RefAttributes<kgmodal> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgprogress } from '../components/kg-progress';
3
3
 
4
- export const KgProgress: React.ForwardRefExoticComponent<Partial<kgprogress> & React.RefAttributes<kgprogress> & {
4
+ export const KgProgress: React.ForwardRefExoticComponent<Partial<Omit<kgprogress, keyof HTMLElement>> & React.HTMLAttributes<kgprogress> & React.RefAttributes<kgprogress> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgradio } from '../components/kg-radio';
3
3
 
4
- export const KgRadio: React.ForwardRefExoticComponent<Partial<kgradio> & React.RefAttributes<kgradio> & {
4
+ export const KgRadio: React.ForwardRefExoticComponent<Partial<Omit<kgradio, keyof HTMLElement>> & React.HTMLAttributes<kgradio> & React.RefAttributes<kgradio> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgradiogroup } from '../components/kg-radio-group';
3
3
 
4
- export const KgRadioGroup: React.ForwardRefExoticComponent<Partial<kgradiogroup> & React.RefAttributes<kgradiogroup> & {
4
+ export const KgRadioGroup: React.ForwardRefExoticComponent<Partial<Omit<kgradiogroup, keyof HTMLElement>> & React.HTMLAttributes<kgradiogroup> & React.RefAttributes<kgradiogroup> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgrow } from '../components/kg-row';
3
3
 
4
- export const KgRow: React.ForwardRefExoticComponent<Partial<kgrow> & React.RefAttributes<kgrow> & {
4
+ export const KgRow: React.ForwardRefExoticComponent<Partial<Omit<kgrow, keyof HTMLElement>> & React.HTMLAttributes<kgrow> & React.RefAttributes<kgrow> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgselect } from '../components/kg-select';
3
3
 
4
- export const KgSelect: React.ForwardRefExoticComponent<Partial<kgselect> & React.RefAttributes<kgselect> & {
4
+ export const KgSelect: React.ForwardRefExoticComponent<Partial<Omit<kgselect, keyof HTMLElement>> & React.HTMLAttributes<kgselect> & React.RefAttributes<kgselect> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgskeleton } from '../components/kg-skeleton';
3
3
 
4
- export const KgSkeleton: React.ForwardRefExoticComponent<Partial<kgskeleton> & React.RefAttributes<kgskeleton> & {
4
+ export const KgSkeleton: React.ForwardRefExoticComponent<Partial<Omit<kgskeleton, keyof HTMLElement>> & React.HTMLAttributes<kgskeleton> & React.RefAttributes<kgskeleton> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgslider } from '../components/kg-slider';
3
3
 
4
- export const KgSlider: React.ForwardRefExoticComponent<Partial<kgslider> & React.RefAttributes<kgslider> & {
4
+ export const KgSlider: React.ForwardRefExoticComponent<Partial<Omit<kgslider, keyof HTMLElement>> & React.HTMLAttributes<kgslider> & React.RefAttributes<kgslider> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgspinner } from '../components/kg-spinner';
3
3
 
4
- export const KgSpinner: React.ForwardRefExoticComponent<Partial<kgspinner> & React.RefAttributes<kgspinner> & {
4
+ export const KgSpinner: React.ForwardRefExoticComponent<Partial<Omit<kgspinner, keyof HTMLElement>> & React.HTMLAttributes<kgspinner> & React.RefAttributes<kgspinner> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgstepper } from '../components/kg-stepper';
3
3
 
4
- export const KgStepper: React.ForwardRefExoticComponent<Partial<kgstepper> & React.RefAttributes<kgstepper> & {
4
+ export const KgStepper: React.ForwardRefExoticComponent<Partial<Omit<kgstepper, keyof HTMLElement>> & React.HTMLAttributes<kgstepper> & React.RefAttributes<kgstepper> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgswitch } from '../components/kg-switch';
3
3
 
4
- export const KgSwitch: React.ForwardRefExoticComponent<Partial<kgswitch> & React.RefAttributes<kgswitch> & {
4
+ export const KgSwitch: React.ForwardRefExoticComponent<Partial<Omit<kgswitch, keyof HTMLElement>> & React.HTMLAttributes<kgswitch> & React.RefAttributes<kgswitch> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgtabpanel } from '../components/kg-tab-panel';
3
3
 
4
- export const KgTabPanel: React.ForwardRefExoticComponent<Partial<kgtabpanel> & React.RefAttributes<kgtabpanel> & {
4
+ export const KgTabPanel: React.ForwardRefExoticComponent<Partial<Omit<kgtabpanel, keyof HTMLElement>> & React.HTMLAttributes<kgtabpanel> & React.RefAttributes<kgtabpanel> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgtabs } from '../components/kg-tabs';
3
3
 
4
- export const KgTabs: React.ForwardRefExoticComponent<Partial<kgtabs> & React.RefAttributes<kgtabs> & {
4
+ export const KgTabs: React.ForwardRefExoticComponent<Partial<Omit<kgtabs, keyof HTMLElement>> & React.HTMLAttributes<kgtabs> & React.RefAttributes<kgtabs> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgtag } from '../components/kg-tag';
3
3
 
4
- export const KgTag: React.ForwardRefExoticComponent<Partial<kgtag> & React.RefAttributes<kgtag> & {
4
+ export const KgTag: React.ForwardRefExoticComponent<Partial<Omit<kgtag, keyof HTMLElement>> & React.HTMLAttributes<kgtag> & React.RefAttributes<kgtag> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgtext } from '../components/kg-text';
3
3
 
4
- export const KgText: React.ForwardRefExoticComponent<Partial<kgtext> & React.RefAttributes<kgtext> & {
4
+ export const KgText: React.ForwardRefExoticComponent<Partial<Omit<kgtext, keyof HTMLElement>> & React.HTMLAttributes<kgtext> & React.RefAttributes<kgtext> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgtextarea } from '../components/kg-textarea';
3
3
 
4
- export const KgTextarea: React.ForwardRefExoticComponent<Partial<kgtextarea> & React.RefAttributes<kgtextarea> & {
4
+ export const KgTextarea: React.ForwardRefExoticComponent<Partial<Omit<kgtextarea, keyof HTMLElement>> & React.HTMLAttributes<kgtextarea> & React.RefAttributes<kgtextarea> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgtoast } from '../components/kg-toast';
3
3
 
4
- export const KgToast: React.ForwardRefExoticComponent<Partial<kgtoast> & React.RefAttributes<kgtoast> & {
4
+ export const KgToast: React.ForwardRefExoticComponent<Partial<Omit<kgtoast, keyof HTMLElement>> & React.HTMLAttributes<kgtoast> & React.RefAttributes<kgtoast> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgtree } from '../components/kg-tree';
3
3
 
4
- export const KgTree: React.ForwardRefExoticComponent<Partial<kgtree> & React.RefAttributes<kgtree> & {
4
+ export const KgTree: React.ForwardRefExoticComponent<Partial<Omit<kgtree, keyof HTMLElement>> & React.HTMLAttributes<kgtree> & React.RefAttributes<kgtree> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { kgtreeitem } from '../components/kg-tree';
3
3
 
4
- export const KgTreeItem: React.ForwardRefExoticComponent<Partial<kgtreeitem> & React.RefAttributes<kgtreeitem> & {
4
+ export const KgTreeItem: React.ForwardRefExoticComponent<Partial<Omit<kgtreeitem, keyof HTMLElement>> & React.HTMLAttributes<kgtreeitem> & React.RefAttributes<kgtreeitem> & {
5
5
  [key: string]: any;
6
6
  }>;
@@ -37,6 +37,5 @@ export { KgTag } from './KgTag';
37
37
  export { KgText } from './KgText';
38
38
  export { KgTextarea } from './KgTextarea';
39
39
  export { KgToast } from './KgToast';
40
- export { KgTooltip } from './KgTooltip';
41
40
  export { KgTree } from './KgTree';
42
41
  export { KgTreeItem } from './KgTreeItem';
@@ -1,95 +0,0 @@
1
- var t=Object.defineProperty,o=(o,e,i)=>((o,e,i)=>e in o?t(o,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[e]=i)(o,"symbol"!=typeof e?e+"":e,i);import{LitElement as e,css as i,html as r}from"lit";class n extends e{constructor(){super(),this.position="top",this.trigger="hover",this.visible=!1}_show(){"click"===this.trigger&&(this.visible=!this.visible)}_hide(){this.trigger}connectedCallback(){super.connectedCallback(),"click"===this.trigger&&document.addEventListener("click",this._handleOutsideClick.bind(this))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._handleOutsideClick.bind(this))}_handleOutsideClick(t){this.visible&&!this.contains(t.target)&&(this.visible=!1)}render(){return r`
2
- <div class="tooltip-trigger"
3
- @click="${this._show}"
4
- role="tooltip"
5
- aria-haspopup="true">
6
- <slot></slot>
7
- </div>
8
- <div class="tooltip-content ${this.position}">
9
- ${this.content||r`<slot name="content"></slot>`}
10
- </div>
11
- `}}o(n,"properties",{content:{type:String},position:{type:String,reflect:!0},trigger:{type:String,reflect:!0},visible:{type:Boolean,reflect:!0}}),o(n,"styles",i`
12
- :host {
13
- display: inline-block;
14
- position: relative;
15
- }
16
-
17
- .tooltip-trigger {
18
- display: inline-block;
19
- cursor: pointer;
20
- }
21
-
22
- .tooltip-content {
23
- position: absolute;
24
- background: #333;
25
- color: white;
26
- padding: 0.5rem 0.75rem;
27
- border-radius: 6px;
28
- font-size: 0.85rem;
29
- white-space: nowrap;
30
- z-index: 1000;
31
- opacity: 0;
32
- visibility: hidden;
33
- transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
34
- box-shadow: 0 4px 12px rgba(0,0,0,0.15);
35
- pointer-events: none;
36
- }
37
-
38
- /* Position Styles */
39
- .top {
40
- bottom: 100%;
41
- left: 50%;
42
- transform: translateX(-50%) translateY(-8px);
43
- margin-bottom: 8px;
44
- }
45
- .bottom {
46
- top: 100%;
47
- left: 50%;
48
- transform: translateX(-50%) translateY(8px);
49
- margin-top: 8px;
50
- }
51
- .left {
52
- top: 50%;
53
- right: 100%;
54
- transform: translateY(-50%) translateX(-8px);
55
- margin-right: 8px;
56
- }
57
- .right {
58
- top: 50%;
59
- left: 100%;
60
- transform: translateY(-50%) translateX(8px);
61
- margin-left: 8px;
62
- }
63
-
64
- /* Arrow */
65
- .tooltip-content::after {
66
- content: '';
67
- position: absolute;
68
- border: 5px solid transparent;
69
- }
70
-
71
- .top::after { top: 100%; left: 50%; transform: translateX(-50%); border-top-color: #333; }
72
- .bottom::after { bottom: 100%; left: 50%; transform: translateX(-50%); border-bottom-color: #333; }
73
- .left::after { left: 100%; top: 50%; transform: translateY(-50%); border-left-color: #333; }
74
- .right::after { right: 100%; top: 50%; transform: translateY(-50%); border-right-color: #333; }
75
-
76
- /* Visibility Logic */
77
- :host([trigger="hover"]:hover) .tooltip-content,
78
- :host([visible]) .tooltip-content {
79
- opacity: 1;
80
- visibility: visible;
81
- }
82
-
83
- /* Transform Adjustment for Visible State */
84
- :host([trigger="hover"]:hover) .tooltip-content.top,
85
- :host([visible]) .tooltip-content.top { transform: translateX(-50%) translateY(-4px); }
86
-
87
- :host([trigger="hover"]:hover) .tooltip-content.bottom,
88
- :host([visible]) .tooltip-content.bottom { transform: translateX(-50%) translateY(4px); }
89
-
90
- :host([trigger="hover"]:hover) .tooltip-content.left,
91
- :host([visible]) .tooltip-content.left { transform: translateY(-50%) translateX(-4px); }
92
-
93
- :host([trigger="hover"]:hover) .tooltip-content.right,
94
- :host([visible]) .tooltip-content.right { transform: translateY(-50%) translateX(4px); }
95
- `),"undefined"==typeof customElements||customElements.get("kg-tooltip")||customElements.define("kg-tooltip",n);export{n as kgtooltip};
@@ -1 +0,0 @@
1
- import t from"react";import{o as e}from"../chunks/create-component-jQ1kjF1Z.js";import{kgtooltip as o}from"../components/kg-tooltip.js";"undefined"==typeof customElements||customElements.get("kg-tooltip")||customElements.define("kg-tooltip",o);const m=e({tagName:"kg-tooltip",elementClass:o,react:t,events:{}});export{m as KgTooltip};
@@ -1,28 +0,0 @@
1
- import { LitElement } from 'lit';
2
-
3
- /** @customElement kg-tooltip */
4
- export class kgtooltip extends LitElement {
5
- /** */
6
- position: string;
7
- /** */
8
- trigger: string;
9
- /** */
10
- visible: boolean;
11
- }
12
-
13
- declare global {
14
- interface HTMLElementTagNameMap {
15
- 'kg-tooltip': kgtooltip;
16
- }
17
-
18
- namespace JSX {
19
- interface IntrinsicElements {
20
- 'kg-tooltip': {
21
- position?: string;
22
- trigger?: string;
23
- visible?: boolean;
24
- [key: string]: any;
25
- };
26
- }
27
- }
28
- }
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- import { kgtooltip } from '../components/kg-tooltip';
3
-
4
- export const KgTooltip: React.ForwardRefExoticComponent<Partial<kgtooltip> & React.RefAttributes<kgtooltip> & {
5
- [key: string]: any;
6
- }>;