@logosphere-ui/core 0.0.0-alpha.7 → 0.0.0-alpha.9

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 (70) hide show
  1. package/dist/badge-CHWTCGQG.js +72 -0
  2. package/dist/badge-DVvdodRb.cjs +13 -0
  3. package/dist/badge.cjs +1 -0
  4. package/dist/badge.js +4 -0
  5. package/dist/breadcrumb-BB61Xt0s.js +41 -0
  6. package/dist/breadcrumb-Cop-B1J7.cjs +12 -0
  7. package/dist/breadcrumb.cjs +1 -0
  8. package/dist/breadcrumb.js +4 -0
  9. package/dist/button-BqOMevro.js +58 -0
  10. package/dist/button-CDRccsk9.cjs +10 -0
  11. package/dist/button.cjs +1 -0
  12. package/dist/button.js +4 -0
  13. package/dist/card-CNoTUaJC.js +98 -0
  14. package/dist/card-KiNHfEi2.cjs +43 -0
  15. package/dist/card.cjs +1 -0
  16. package/dist/card.js +4 -0
  17. package/dist/chatbot-BNGCxSf9.js +485 -0
  18. package/dist/chatbot-P32-Xv7e.cjs +160 -0
  19. package/dist/chatbot.cjs +1 -0
  20. package/dist/chatbot.js +4 -0
  21. package/dist/checkbox-CdDTRdKV.cjs +37 -0
  22. package/dist/checkbox-g6kl2jGR.js +119 -0
  23. package/dist/checkbox.cjs +1 -0
  24. package/dist/checkbox.js +4 -0
  25. package/dist/combobox-CeK7yW2F.cjs +99 -0
  26. package/dist/combobox-DTUSFw9V.js +270 -0
  27. package/dist/combobox.cjs +1 -0
  28. package/dist/combobox.js +4 -0
  29. package/dist/datepicker-BQOVo1Pr.cjs +115 -0
  30. package/dist/datepicker-ChdQsc_l.js +751 -0
  31. package/dist/datepicker.cjs +1 -0
  32. package/dist/datepicker.js +4 -0
  33. package/dist/download-manager-BSIMTGaK.cjs +97 -0
  34. package/dist/download-manager-a541AYhr.js +381 -0
  35. package/dist/download-manager.cjs +1 -0
  36. package/dist/download-manager.js +4 -0
  37. package/dist/formfield-BOgRugzm.js +118 -0
  38. package/dist/formfield-D_7NFFoe.cjs +27 -0
  39. package/dist/formfield.cjs +1 -0
  40. package/dist/formfield.js +4 -0
  41. package/dist/index.cjs +1 -0
  42. package/dist/index.js +32 -3207
  43. package/dist/index.umd.js +106 -85
  44. package/dist/input-CoY1ZcPF.cjs +46 -0
  45. package/dist/input-CxBP0i-3.js +194 -0
  46. package/dist/input.cjs +1 -0
  47. package/dist/input.js +4 -0
  48. package/dist/modal-CnwRIdd8.js +110 -0
  49. package/dist/modal-DQ8VFL-P.cjs +39 -0
  50. package/dist/modal.cjs +1 -0
  51. package/dist/modal.js +4 -0
  52. package/dist/popover-C2p5Pmts.cjs +30 -0
  53. package/dist/popover-CaVOXo_k.js +140 -0
  54. package/dist/popover.cjs +1 -0
  55. package/dist/popover.js +4 -0
  56. package/dist/switch-CG4SSjTg.js +64 -0
  57. package/dist/switch-Rnnn10bn.cjs +17 -0
  58. package/dist/switch.cjs +1 -0
  59. package/dist/switch.js +4 -0
  60. package/dist/tab-BYU_XEhp.js +176 -0
  61. package/dist/tab-DcjAlXzU.cjs +40 -0
  62. package/dist/tab.cjs +1 -0
  63. package/dist/tab.js +4 -0
  64. package/dist/text-area-Dw4CUBcz.js +206 -0
  65. package/dist/text-area-eT-oCnqZ.cjs +44 -0
  66. package/dist/textarea.cjs +1 -0
  67. package/dist/textarea.js +4 -0
  68. package/dist/ui-icon-CVEyvL5D.cjs +22 -0
  69. package/dist/ui-icon-ltkJROhR.js +51 -0
  70. package/package.json +31 -20
@@ -0,0 +1,51 @@
1
+ import { LitElement as l, css as w, html as e } from "lit";
2
+ import { unsafeHTML as n } from "lit/directives/unsafe-html.js";
3
+ const o = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13.41,12l4.3-4.29a1,1,0,1,0-1.42-1.42L12,10.59,7.71,6.29A1,1,0,0,0,6.29,7.71L10.59,12l-4.3,4.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0L12,13.41l4.29,4.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42Z"/></svg>', h = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17,9.17a1,1,0,0,0-1.41,0L12,12.71,8.46,9.17a1,1,0,0,0-1.41,0,1,1,0,0,0,0,1.42l4.24,4.24a1,1,0,0,0,1.42,0L17,10.59A1,1,0,0,0,17,9.17Z"/></svg>', i = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19,4H17V3a1,1,0,0,0-2,0V4H9V3A1,1,0,0,0,7,3V4H5A3,3,0,0,0,2,7V19a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3V7A3,3,0,0,0,19,4Zm1,15a1,1,0,0,1-1,1H5a1,1,0,0,1-1-1V12H20Zm0-9H4V7A1,1,0,0,1,5,6H7V7A1,1,0,0,0,9,7V6h6V7a1,1,0,0,0,2,0V6h2a1,1,0,0,1,1,1Z"/></svg>', r = '<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 24 24"><path d="M17,11H9.41l3.3-3.29a1,1,0,1,0-1.42-1.42l-5,5a1,1,0,0,0-.21.33,1,1,0,0,0,0,.76,1,1,0,0,0,.21.33l5,5a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L9.41,13H17a1,1,0,0,0,0-2Z"/></svg>', g = '<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 24 24"><path d="M17.92,11.62a1,1,0,0,0-.21-.33l-5-5a1,1,0,0,0-1.42,1.42L14.59,11H7a1,1,0,0,0,0,2h7.59l-3.3,3.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l5-5a1,1,0,0,0,.21-.33A1,1,0,0,0,17.92,11.62Z"/></svg>', v = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20,6H16V5a3,3,0,0,0-3-3H11A3,3,0,0,0,8,5V6H4A1,1,0,0,0,4,8H5V19a3,3,0,0,0,3,3h8a3,3,0,0,0,3-3V8h1a1,1,0,0,0,0-2ZM10,5a1,1,0,0,1,1-1h2a1,1,0,0,1,1,1V6H10Zm7,14a1,1,0,0,1-1,1H8a1,1,0,0,1-1-1V8H17Z"/></svg>', m = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.71,2.29a1,1,0,0,0-1.42,0L14.5,8.09V6.5a1,1,0,0,0-2,0v4a1,1,0,0,0,.08.38,1,1,0,0,0,.54.54,1,1,0,0,0,.38.08h4a1,1,0,0,0,0-2H15.91l5.8-5.79A1,1,0,0,0,21.71,2.29ZM10.88,12.58a1,1,0,0,0-.38-.08h-4a1,1,0,0,0,0,2H8.09l-5.8,5.79a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l5.79-5.8V17.5a1,1,0,0,0,2,0v-4a1,1,0,0,0-.08-.38A1,1,0,0,0,10.88,12.58Z"/></svg>', H = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.79,12.79,4,18.59V17a1,1,0,0,0-2,0v4a1,1,0,0,0,.08.38,1,1,0,0,0,.54.54A1,1,0,0,0,3,22H7a1,1,0,0,0,0-2H5.41l5.8-5.79a1,1,0,0,0-1.42-1.42ZM21.92,2.62a1,1,0,0,0-.54-.54A1,1,0,0,0,21,2H17a1,1,0,0,0,0,2h1.59l-5.8,5.79a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0L20,5.41V7a1,1,0,0,0,2,0V3A1,1,0,0,0,21.92,2.62Z"/></svg>', p = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21,8.94a1.31,1.31,0,0,0-.06-.27l0-.09a1.07,1.07,0,0,0-.19-.28h0l-6-6h0a1.07,1.07,0,0,0-.28-.19.32.32,0,0,0-.09,0A.88.88,0,0,0,14.05,2H10A3,3,0,0,0,7,5V6H6A3,3,0,0,0,3,9V19a3,3,0,0,0,3,3h8a3,3,0,0,0,3-3V18h1a3,3,0,0,0,3-3V9S21,9,21,8.94ZM15,5.41,17.59,8H16a1,1,0,0,1-1-1ZM15,19a1,1,0,0,1-1,1H6a1,1,0,0,1-1-1V9A1,1,0,0,1,6,8H7v7a3,3,0,0,0,3,3h5Zm4-4a1,1,0,0,1-1,1H10a1,1,0,0,1-1-1V5a1,1,0,0,1,1-1h3V7a3,3,0,0,0,3,3h3Z"/></svg>', c = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.3,10.08A3,3,0,0,0,19,9H14.44L15,7.57A4.13,4.13,0,0,0,11.11,2a1,1,0,0,0-.91.59L7.35,9H5a3,3,0,0,0-3,3v7a3,3,0,0,0,3,3H17.73a3,3,0,0,0,2.95-2.46l1.27-7A3,3,0,0,0,21.3,10.08ZM7,20H5a1,1,0,0,1-1-1V12a1,1,0,0,1,1-1H7Zm13-7.82-1.27,7a1,1,0,0,1-1,.82H9V10.21l2.72-6.12A2.11,2.11,0,0,1,13.1,6.87L12.57,8.3A2,2,0,0,0,14.44,11H19a1,1,0,0,1,.77.36A1,1,0,0,1,20,12.18Z"/></svg>', A = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19,2H6.27A3,3,0,0,0,3.32,4.46l-1.27,7A3,3,0,0,0,5,15H9.56L9,16.43A4.13,4.13,0,0,0,12.89,22a1,1,0,0,0,.91-.59L16.65,15H19a3,3,0,0,0,3-3V5A3,3,0,0,0,19,2ZM15,13.79l-2.72,6.12a2.13,2.13,0,0,1-1.38-2.78l.53-1.43A2,2,0,0,0,9.56,13H5a1,1,0,0,1-.77-.36A1,1,0,0,1,4,11.82l1.27-7a1,1,0,0,1,1-.82H15ZM20,12a1,1,0,0,1-1,1H17V4h2a1,1,0,0,1,1,1Z"/></svg>', V = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.71,12.71a1,1,0,0,0,.21-.33,1,1,0,0,0,0-.76,1,1,0,0,0-.21-.33l-3-3a1,1,0,0,0-1.42,1.42L12.59,11H9a1,1,0,0,0,0,2h3.59l-1.3,1.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0ZM22,12A10,10,0,1,0,12,22,10,10,0,0,0,22,12ZM4,12a8,8,0,1,1,8,8A8,8,0,0,1,4,12Z"/></svg>', u = {
4
+ "uil-times": o,
5
+ "uil-angle-down": h,
6
+ "uil-calendar": i,
7
+ "uil-arrow-left": r,
8
+ "uil-arrow-right": g,
9
+ "uil-trash": v,
10
+ "uil-compress-alt": m,
11
+ "uil-expand-alt": H,
12
+ "uil-copy": p,
13
+ "uil-thumbs-up": c,
14
+ "uil-thumbs-down": A,
15
+ "uil-arrow-circle-right": V
16
+ }, a = class a extends l {
17
+ constructor() {
18
+ super(...arguments), this.name = "", this.size = 20;
19
+ }
20
+ render() {
21
+ const s = u[this.name];
22
+ return s ? e`
23
+ <span
24
+ style="font-size: ${this.size}px;"
25
+ aria-hidden="true"
26
+ >
27
+ ${n(s)}
28
+ </span>
29
+ ` : (console.warn(`Icon "${this.name}" not found.`), e``);
30
+ }
31
+ };
32
+ a.properties = {
33
+ name: { type: String },
34
+ size: { type: Number }
35
+ }, a.styles = w`
36
+ :host {
37
+ display: inline-flex;
38
+ align-items: center;
39
+ justify-content: center;
40
+ line-height: 0;
41
+ color: inherit;
42
+ }
43
+
44
+ svg {
45
+ width: 1em;
46
+ height: 1em;
47
+ fill: currentColor;
48
+ }
49
+ `;
50
+ let t = a;
51
+ customElements.define("ui-icon", t);
package/package.json CHANGED
@@ -1,14 +1,10 @@
1
1
  {
2
2
  "name": "@logosphere-ui/core",
3
- "version": "0.0.0-alpha.7",
3
+ "version": "0.0.0-alpha.9",
4
4
  "description": "A modern, framework-agnostic UI component library built with Lit and Web Components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
- "sideEffects": [
9
- "**/*.css",
10
- "**/*.js"
11
- ],
12
8
  "files": [
13
9
  "dist/**/*",
14
10
  "README.md"
@@ -16,63 +12,78 @@
16
12
  "exports": {
17
13
  ".": {
18
14
  "types": "./dist/index.d.ts",
19
- "import": "./dist/index.js"
15
+ "import": "./dist/index.js",
16
+ "require": "./dist/index.cjs"
20
17
  },
21
18
  "./button": {
22
19
  "types": "./dist/atoms/Button/index.d.ts",
23
- "import": "./dist/atoms/Button/index.js"
20
+ "import": "./dist/button.js",
21
+ "require": "./dist/button.cjs"
24
22
  },
25
23
  "./modal": {
26
24
  "types": "./dist/organisms/Modal/index.d.ts",
27
- "import": "./dist/organisms/Modal/index.js"
25
+ "import": "./dist/modal.js",
26
+ "require": "./dist/modal.cjs"
28
27
  },
29
28
  "./checkbox": {
30
29
  "types": "./dist/atoms/Checkbox/index.d.ts",
31
- "import": "./dist/atoms/Checkbox/index.js"
30
+ "import": "./dist/checkbox.js",
31
+ "require": "./dist/checkbox.cjs"
32
32
  },
33
33
  "./chatbot": {
34
34
  "types": "./dist/organisms/Chatbot/index.d.ts",
35
- "import": "./dist/organisms/Chatbot/index.js"
35
+ "import": "./dist/chatbot.js",
36
+ "require": "./dist/chatbot.cjs"
36
37
  },
37
38
  "./popover": {
38
39
  "types": "./dist/molecules/Popover/index.d.ts",
39
- "import": "./dist/molecules/Popover/index.js"
40
+ "import": "./dist/popover.js",
41
+ "require": "./dist/popover.cjs"
40
42
  },
41
43
  "./switch": {
42
44
  "types": "./dist/atoms/Switch/index.d.ts",
43
- "import": "./dist/atoms/Switch/index.js"
45
+ "import": "./dist/switch.js",
46
+ "require": "./dist/switch.cjs"
44
47
  },
45
48
  "./card": {
46
49
  "types": "./dist/molecules/Card/index.d.ts",
47
- "import": "./dist/molecules/Card/index.js"
50
+ "import": "./dist/card.js",
51
+ "require": "./dist/card.cjs"
48
52
  },
49
53
  "./breadcrumb": {
50
54
  "types": "./dist/molecules/Breadcrumb/index.d.ts",
51
- "import": "./dist/molecules/Breadcrumb/index.js"
55
+ "import": "./dist/breadcrumb.js",
56
+ "require": "./dist/breadcrumb.cjs"
52
57
  },
53
58
  "./formfield": {
54
59
  "types": "./dist/atoms/FormField/index.d.ts",
55
- "import": "./dist/atoms/FormField/index.js"
60
+ "import": "./dist/formfield.js",
61
+ "require": "./dist/formfield.cjs"
56
62
  },
57
63
  "./combobox": {
58
64
  "types": "./dist/organisms/Combobox/index.d.ts",
59
- "import": "./dist/organisms/Combobox/index.js"
65
+ "import": "./dist/combobox.js",
66
+ "require": "./dist/combobox.cjs"
60
67
  },
61
68
  "./textarea": {
62
69
  "types": "./dist/molecules/Textarea/index.d.ts",
63
- "import": "./dist/molecules/Textarea/index.js"
70
+ "import": "./dist/textarea.js",
71
+ "require": "./dist/textarea.cjs"
64
72
  },
65
73
  "./datepicker": {
66
74
  "types": "./dist/organisms/DatePicker/index.d.ts",
67
- "import": "./dist/organisms/DatePicker/index.js"
75
+ "import": "./dist/datepicker.js",
76
+ "require": "./dist/datepicker.cjs"
68
77
  },
69
78
  "./download-manager": {
70
79
  "types": "./dist/organisms/DownloadManager/index.d.ts",
71
- "import": "./dist/organisms/DownloadManager/index.js"
80
+ "import": "./dist/download-manager.js",
81
+ "require": "./dist/download-manager.cjs"
72
82
  },
73
83
  "./tab": {
74
84
  "types": "./dist/organisms/Tab/index.d.ts",
75
- "import": "./dist/organisms/Tab/index.js"
85
+ "import": "./dist/tab.js",
86
+ "require": "./dist/tab.cjs"
76
87
  },
77
88
  "./styles/main.css": "./dist/styles/main.css"
78
89
  },