lexgui 8.3.0 → 8.3.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.
package/changelog.md CHANGED
@@ -2,9 +2,36 @@
2
2
 
3
3
  ## dev
4
4
 
5
- ## 8.3.0 (master)
5
+ ## 8.3.2 (master)
6
+
7
+ Added interest delay `options.delay` to Tooltip.
8
+ Fixed bug not removing tooltips when trigger is destroyed.
9
+ Added Tooltip docs.
10
+ Fixed some crashing doc pages.
6
11
 
7
12
  CodeEditor:
13
+ - Added symbol hover info and inline color manipulation through LX.ColorInput.
14
+ - Support for `options.onHoverSymbol` to customize popup symbol data.
15
+ - Fixed issues normalizing imported text.
16
+ - Added scope braces detection.
17
+ - Suggestions icon, iconClass, sortText and filterText.
18
+ - Added missing GLSL highlight css.
19
+
20
+ ## 8.3.1
21
+
22
+ Fixed `LX.toKebabCase`.
23
+ Added `LX.toSnakeCase(str)` util.
24
+
25
+ CodeEditor:
26
+ - Improved custom suggestions format (now allows for `insertText` too).
27
+ - Supported Multiline TAB indent/dedent.
28
+ - `setText` now has language detection option.
29
+ - Extra New line and autoindent for {}, [] and () pair keys.
30
+ - Clickable links in comments.
31
+ - Fixed click autocomplete suggestion.
32
+
33
+ ## 8.3.0
34
+
8
35
  Added `Tabs.setIcon(name, icon)`.
9
36
  Added DropdownMenu item option `useKbdSpecialKeys` (true).
10
37
  Added `LX.requestFileAsync` util.
package/demo.js CHANGED
@@ -100,7 +100,7 @@ LX._registerIconsAndColors( "./" );
100
100
  <a href="docs?p=changelog" class="flex flex-row gap-1 items-center text-sm p-1 px-4 rounded-full text-secondary-foreground decoration-none hover:bg-secondary cursor-pointer"><span class="flex bg-info w-2 h-2 rounded-full"></span>
101
101
  New Components: Avatar, Spinner, Pagination and more${ LX.makeIcon( "ArrowRight", { svgClass: "sm" } ).innerHTML }</a>
102
102
  <p class="fg text-foreground font-medium tracking-tight leading-none text-center text-balance sm:text-5xl text-4xl">Build your Application Interface</p>
103
- <p class="text-secondary-foreground font-light text-xl xs:text-lg text-center text-balance leading-normal max-w-3xl">A modern-style UI kit, inspired by shadcn, built for the web. Pure HTML, JavaScript, and Tailwind CSS. Fully Open Source.</p>
103
+ <p class="text-secondary-foreground font-light text-xl xs:text-lg text-center text-balance leading-normal max-w-3xl">A modern-style UI kit, inspired by shadcn. Create dynamic sites using HTML, JavaScript, and Tailwind CSS. Fully Open Source.</p>
104
104
  `, area );
105
105
 
106
106
  const headerButtons = LX.makeContainer( [ "auto", "auto" ], "flex flex-row mt-2", ``, header );
@@ -736,11 +736,14 @@ LX._registerIconsAndColors( "./" );
736
736
  // fileExplorer: false
737
737
  });
738
738
 
739
- editor.setText(`interface Vec2 {
739
+ editor.setText(`// Sample from https://jxarco.github.io/lexgui.js/
740
+ interface Vec2 {
740
741
  x: number;
741
742
  y: number;
742
743
  }
743
744
 
745
+ const hexColor = "#ff4532";
746
+
744
747
  type Callback<T> = (value: T) => void;
745
748
 
746
749
  class Timer {
@@ -68,6 +68,15 @@
68
68
  // disableEdition: true,
69
69
  // skipInfo: true,
70
70
  fileExplorer: fileExplorer,
71
+ customSuggestions: [
72
+ {
73
+ label: 'hello (nice)',
74
+ detail: 'a cool text desc',
75
+ insertText: `hello_func(){
76
+ return "hello";
77
+ }`
78
+ }
79
+ ],
71
80
  explorerName: "EXPLORER",
72
81
  highlight: 'TypeScript',
73
82
  // statusShowFontSizeZoom: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lexgui",
3
- "version": "8.3.0",
3
+ "version": "8.3.2",
4
4
  "description": "JS library to create web graphical user interfaces",
5
5
  "type": "module",
6
6
  "main": "./build/lexgui.js",