xv-webcomponents 0.1.18 → 0.1.19

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 (138) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +129 -129
  3. package/dist/xv-webcomponents/index-90b82796.js +3971 -0
  4. package/dist/xv-webcomponents/index-90b82796.js.map +1 -0
  5. package/dist/xv-webcomponents/index.esm.js +12 -1
  6. package/dist/xv-webcomponents/index.esm.js.map +1 -1
  7. package/dist/{collection/utils/utils.js → xv-webcomponents/utils-e6dc0550.js} +7 -4
  8. package/dist/xv-webcomponents/utils-e6dc0550.js.map +1 -0
  9. package/dist/xv-webcomponents/xv-accordion-v2-item.entry.js +35 -0
  10. package/dist/xv-webcomponents/xv-accordion-v2-item.entry.js.map +1 -0
  11. package/dist/xv-webcomponents/xv-accordion-v2.entry.js +40 -0
  12. package/dist/xv-webcomponents/xv-accordion-v2.entry.js.map +1 -0
  13. package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.js +17 -0
  14. package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.js.map +1 -0
  15. package/dist/xv-webcomponents/xv-button-v2.entry.js +33 -0
  16. package/dist/xv-webcomponents/xv-button-v2.entry.js.map +1 -0
  17. package/dist/xv-webcomponents/xv-card-v2.entry.js +18 -0
  18. package/dist/xv-webcomponents/xv-card-v2.entry.js.map +1 -0
  19. package/dist/xv-webcomponents/xv-checkbox-v2.entry.js +99 -0
  20. package/dist/xv-webcomponents/xv-checkbox-v2.entry.js.map +1 -0
  21. package/dist/xv-webcomponents/xv-link-v2.entry.js +26 -0
  22. package/dist/xv-webcomponents/xv-link-v2.entry.js.map +1 -0
  23. package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.js +19 -0
  24. package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.js.map +1 -0
  25. package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.js +39 -0
  26. package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.js.map +1 -0
  27. package/dist/xv-webcomponents/xv-table-v2-col.entry.js +17 -0
  28. package/dist/xv-webcomponents/xv-table-v2-col.entry.js.map +1 -0
  29. package/dist/xv-webcomponents/xv-table-v2-header-row.entry.js +34 -0
  30. package/dist/xv-webcomponents/xv-table-v2-header-row.entry.js.map +1 -0
  31. package/dist/xv-webcomponents/xv-table-v2-row.entry.js +112 -0
  32. package/dist/xv-webcomponents/xv-table-v2-row.entry.js.map +1 -0
  33. package/dist/xv-webcomponents/xv-table-v2.entry.js +114 -0
  34. package/dist/xv-webcomponents/xv-table-v2.entry.js.map +1 -0
  35. package/dist/xv-webcomponents/xv-tag-v2.entry.js +28 -0
  36. package/dist/xv-webcomponents/xv-tag-v2.entry.js.map +1 -0
  37. package/dist/xv-webcomponents/xv-tooltip-v2.entry.js +23 -0
  38. package/dist/xv-webcomponents/xv-tooltip-v2.entry.js.map +1 -0
  39. package/dist/xv-webcomponents/xv-webcomponents.esm.js +48 -1
  40. package/dist/xv-webcomponents/xv-webcomponents.esm.js.map +1 -1
  41. package/package.json +51 -51
  42. package/dist/cjs/app-globals-3a1e7e63.js +0 -7
  43. package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
  44. package/dist/cjs/index-782b9733.js +0 -1535
  45. package/dist/cjs/index-782b9733.js.map +0 -1
  46. package/dist/cjs/index.cjs.js +0 -11
  47. package/dist/cjs/index.cjs.js.map +0 -1
  48. package/dist/cjs/loader.cjs.js +0 -17
  49. package/dist/cjs/loader.cjs.js.map +0 -1
  50. package/dist/cjs/utils-c7652b74.js +0 -13
  51. package/dist/cjs/utils-c7652b74.js.map +0 -1
  52. package/dist/cjs/xv-accordion-v2_14.cjs.entry.js +0 -602
  53. package/dist/cjs/xv-accordion-v2_14.cjs.entry.js.map +0 -1
  54. package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js +0 -22
  55. package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js.map +0 -1
  56. package/dist/cjs/xv-webcomponents.cjs.js +0 -27
  57. package/dist/cjs/xv-webcomponents.cjs.js.map +0 -1
  58. package/dist/collection/collection-manifest.json +0 -26
  59. package/dist/collection/components/xv-accordion/xv-accordion.css +0 -3
  60. package/dist/collection/components/xv-accordion/xv-accordion.js +0 -163
  61. package/dist/collection/components/xv-accordion/xv-accordion.js.map +0 -1
  62. package/dist/collection/components/xv-accordion-item/xv-accordion-item.css +0 -68
  63. package/dist/collection/components/xv-accordion-item/xv-accordion-item.js +0 -132
  64. package/dist/collection/components/xv-accordion-item/xv-accordion-item.js.map +0 -1
  65. package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.css +0 -3
  66. package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js +0 -19
  67. package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js.map +0 -1
  68. package/dist/collection/components/xv-button/xv-button-v2.css +0 -153
  69. package/dist/collection/components/xv-button/xv-button.js +0 -138
  70. package/dist/collection/components/xv-button/xv-button.js.map +0 -1
  71. package/dist/collection/components/xv-card/xv-card.css +0 -63
  72. package/dist/collection/components/xv-card/xv-card.js +0 -122
  73. package/dist/collection/components/xv-card/xv-card.js.map +0 -1
  74. package/dist/collection/components/xv-checkbox/xv-checkbox.css +0 -108
  75. package/dist/collection/components/xv-checkbox/xv-checkbox.js +0 -376
  76. package/dist/collection/components/xv-checkbox/xv-checkbox.js.map +0 -1
  77. package/dist/collection/components/xv-link/xv-link.css +0 -60
  78. package/dist/collection/components/xv-link/xv-link.js +0 -132
  79. package/dist/collection/components/xv-link/xv-link.js.map +0 -1
  80. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.css +0 -7
  81. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js +0 -70
  82. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js.map +0 -1
  83. package/dist/collection/components/xv-progress-indicator-item/xv-progress-indicator-item.css +0 -66
  84. package/dist/collection/components/xv-progress-indicator-item/xv-progress-indicator-item.js +0 -47
  85. package/dist/collection/components/xv-progress-indicator-item/xv-progress-indicator-item.js.map +0 -1
  86. package/dist/collection/components/xv-table/defs.js +0 -14
  87. package/dist/collection/components/xv-table/defs.js.map +0 -1
  88. package/dist/collection/components/xv-table/xv-table-col/xv-table-col.css +0 -8
  89. package/dist/collection/components/xv-table/xv-table-col/xv-table-col.js +0 -19
  90. package/dist/collection/components/xv-table/xv-table-col/xv-table-col.js.map +0 -1
  91. package/dist/collection/components/xv-table/xv-table-header-row/xv-table-header-row.css +0 -21
  92. package/dist/collection/components/xv-table/xv-table-header-row/xv-table-header-row.js +0 -122
  93. package/dist/collection/components/xv-table/xv-table-header-row/xv-table-header-row.js.map +0 -1
  94. package/dist/collection/components/xv-table/xv-table-row/xv-table-row.css +0 -53
  95. package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js +0 -299
  96. package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js.map +0 -1
  97. package/dist/collection/components/xv-table/xv-table.css +0 -154
  98. package/dist/collection/components/xv-table/xv-table.js +0 -245
  99. package/dist/collection/components/xv-table/xv-table.js.map +0 -1
  100. package/dist/collection/components/xv-tag/xv-tag.css +0 -97
  101. package/dist/collection/components/xv-tag/xv-tag.js +0 -158
  102. package/dist/collection/components/xv-tag/xv-tag.js.map +0 -1
  103. package/dist/collection/components/xv-tooltip/xv-tooltip.css +0 -154
  104. package/dist/collection/components/xv-tooltip/xv-tooltip.js +0 -70
  105. package/dist/collection/components/xv-tooltip/xv-tooltip.js.map +0 -1
  106. package/dist/collection/index.js +0 -11
  107. package/dist/collection/index.js.map +0 -1
  108. package/dist/collection/types/enum.js +0 -9
  109. package/dist/collection/types/enum.js.map +0 -1
  110. package/dist/collection/utils/utils.js.map +0 -1
  111. package/dist/esm/index-83ab73b7.js +0 -1506
  112. package/dist/esm/index-83ab73b7.js.map +0 -1
  113. package/dist/esm/index.js +0 -3
  114. package/dist/esm/index.js.map +0 -1
  115. package/dist/esm/loader.js +0 -13
  116. package/dist/esm/loader.js.map +0 -1
  117. package/dist/esm/utils-9bb6333b.js +0 -10
  118. package/dist/esm/utils-9bb6333b.js.map +0 -1
  119. package/dist/esm/xv-accordion-v2_14.entry.js +0 -585
  120. package/dist/esm/xv-accordion-v2_14.entry.js.map +0 -1
  121. package/dist/esm/xv-breadcrumbs-v2.entry.js +0 -18
  122. package/dist/esm/xv-breadcrumbs-v2.entry.js.map +0 -1
  123. package/dist/esm/xv-webcomponents.js +0 -22
  124. package/dist/esm/xv-webcomponents.js.map +0 -1
  125. package/dist/index.cjs.js +0 -1
  126. package/dist/index.js +0 -1
  127. package/dist/xv-webcomponents/p-5f18d718.entry.js +0 -2
  128. package/dist/xv-webcomponents/p-5f18d718.entry.js.map +0 -1
  129. package/dist/xv-webcomponents/p-840929c5.js +0 -3
  130. package/dist/xv-webcomponents/p-840929c5.js.map +0 -1
  131. package/dist/xv-webcomponents/p-a0b74d3c.js +0 -2
  132. package/dist/xv-webcomponents/p-a0b74d3c.js.map +0 -1
  133. package/dist/xv-webcomponents/p-bfe83d1e.entry.js +0 -2
  134. package/dist/xv-webcomponents/p-bfe83d1e.entry.js.map +0 -1
  135. package/dist/xv-webcomponents/p-e1255160.js +0 -2
  136. package/dist/xv-webcomponents/p-e1255160.js.map +0 -1
  137. /package/dist/{esm → xv-webcomponents}/app-globals-0f993ce5.js +0 -0
  138. /package/dist/{esm → xv-webcomponents}/app-globals-0f993ce5.js.map +0 -0
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 crossvertise
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 crossvertise
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,129 +1,129 @@
1
- # @xv/webcomponents
2
-
3
- **Reusable Web Components for XV Applications**
4
- This repository contains Web Components built with Stencil.js to provide a modular and reusable UI across multiple applications.
5
-
6
- ---
7
-
8
- ## Features
9
-
10
- **Reusable Web Components** – Designed for multiple XV applications
11
- **Stencil.js Powered** – Built using modern Web Component standards
12
- **Shadow DOM Support** – Encapsulated styles and functionality
13
- **Brand-Specific Theming** – Automatically detects and applies brand styles
14
- **Framework Agnostic** – Works with Angular, React, Vue, and plain HTML
15
-
16
- ---
17
-
18
- ## Folder Structure
19
-
20
- ```
21
- xv-webcomponents/
22
- │── src/
23
- │ ├── components/ # Web Component source files
24
- │ │ ├── button/
25
- │ │ │ ├── xv-button.tsx
26
- │ │ │ ├── xv-button.css
27
- │ │ │ ├── xv-button.e2e.ts
28
- │ │ │ ├── xv-button.spec.ts
29
- │ │ ├── checkbox/
30
- │ │ │ ├── xv-checkbox.tsx
31
- │ │ │ ├── xv-checkbox.css
32
- │ │ │ ├── xv-checkbox.e2e.ts
33
- │ │ │ ├── xv-checkbox.spec.ts
34
- │ ├── utils/ # Utility functions for components
35
- │── dist/ # Compiled distribution files
36
- │── loader/ # Loader scripts for consuming Web Components
37
- │── package.json
38
- │── README.md
39
- │── stencil.config.ts # Stencil.js configuration
40
- ```
41
-
42
- ---
43
-
44
- ## Installation
45
-
46
- To install the package from npm:
47
- ```bash
48
- npm install xv-webcomponents
49
- ```
50
-
51
- ---
52
-
53
- ## Usage
54
-
55
- ### **Using in an HTML Page**
56
- Simply include the Web Component in your HTML:
57
- ```html
58
- <script type="module" src="https://cdn.yourcompany.com/xv-webcomponents/xv-webcomponents.esm.js"></script>
59
- <xv-button-v2 label="Click Me" variant="accent"></xv-button-v2>
60
- ```
61
-
62
- ### **Using in an Angular Project**
63
- First, import `CUSTOM_ELEMENTS_SCHEMA` in your module:
64
- ```typescript
65
- import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
66
- import { BrowserModule } from '@angular/platform-browser';
67
-
68
- @NgModule({
69
- declarations: [],
70
- imports: [BrowserModule],
71
- schemas: [CUSTOM_ELEMENTS_SCHEMA]
72
- })
73
- export class AppModule {}
74
- ```
75
- Now, use the Web Component in your Angular templates:
76
- ```html
77
- <xv-button-v2 label="Click Me" variant="primary"></xv-button-v2>
78
- ```
79
-
80
- ### **Using in a C# Razor Page (MVC)**
81
- ```html
82
- <xv-button-v2 label="Submit" variant="secondary"></xv-button-v2>
83
- ```
84
-
85
- ### **Using in Sitefinity CMS**
86
- Embed the Web Component inside a content block:
87
- ```html
88
- <xv-button-v2 label="Learn More" variant="ghost"></xv-button-v2>
89
- ```
90
-
91
- ---
92
-
93
- ## 🛠 Development & Building
94
-
95
- ### **1️⃣ Build the Components**
96
- To build all components:
97
- ```bash
98
- npm run build
99
- ```
100
- This generates compiled components inside the `dist/` folder.
101
-
102
- ### **2️⃣ Run Local Development Server**
103
- To test components locally:
104
- ```bash
105
- npm start
106
- ```
107
- This starts a development server and watches for changes.
108
-
109
- ### **3️⃣ Publish to npm**
110
- To publish a new version of the package:
111
- ```bash
112
- npm version patch
113
- npm publish --access public
114
- ```
115
-
116
- ---
117
-
118
- ## Contributing
119
-
120
- ### **Adding a New Component**
121
- 1. Generate a new component:
122
- ```bash
123
- npm run generate component xv-new-component
124
- ```
125
- 2. Implement logic and styles inside `src/components/xv-new-component/`.
126
- 3. Test the component using Jest (`.spec.ts`) and e2e tests.
127
- 4. Run `npm run build` to generate the compiled version.
128
- 5. Commit changes and submit a pull request.
129
-
1
+ # @xv/webcomponents
2
+
3
+ **Reusable Web Components for XV Applications**
4
+ This repository contains Web Components built with Stencil.js to provide a modular and reusable UI across multiple applications.
5
+
6
+ ---
7
+
8
+ ## Features
9
+
10
+ **Reusable Web Components** – Designed for multiple XV applications
11
+ **Stencil.js Powered** – Built using modern Web Component standards
12
+ **Shadow DOM Support** – Encapsulated styles and functionality
13
+ **Brand-Specific Theming** – Automatically detects and applies brand styles
14
+ **Framework Agnostic** – Works with Angular, React, Vue, and plain HTML
15
+
16
+ ---
17
+
18
+ ## Folder Structure
19
+
20
+ ```
21
+ xv-webcomponents/
22
+ │── src/
23
+ │ ├── components/ # Web Component source files
24
+ │ │ ├── button/
25
+ │ │ │ ├── xv-button.tsx
26
+ │ │ │ ├── xv-button.css
27
+ │ │ │ ├── xv-button.e2e.ts
28
+ │ │ │ ├── xv-button.spec.ts
29
+ │ │ ├── checkbox/
30
+ │ │ │ ├── xv-checkbox.tsx
31
+ │ │ │ ├── xv-checkbox.css
32
+ │ │ │ ├── xv-checkbox.e2e.ts
33
+ │ │ │ ├── xv-checkbox.spec.ts
34
+ │ ├── utils/ # Utility functions for components
35
+ │── dist/ # Compiled distribution files
36
+ │── loader/ # Loader scripts for consuming Web Components
37
+ │── package.json
38
+ │── README.md
39
+ │── stencil.config.ts # Stencil.js configuration
40
+ ```
41
+
42
+ ---
43
+
44
+ ## Installation
45
+
46
+ To install the package from npm:
47
+ ```bash
48
+ npm install xv-webcomponents
49
+ ```
50
+
51
+ ---
52
+
53
+ ## Usage
54
+
55
+ ### **Using in an HTML Page**
56
+ Simply include the Web Component in your HTML:
57
+ ```html
58
+ <script type="module" src="https://cdn.yourcompany.com/xv-webcomponents/xv-webcomponents.esm.js"></script>
59
+ <xv-button-v2 label="Click Me" variant="accent"></xv-button-v2>
60
+ ```
61
+
62
+ ### **Using in an Angular Project**
63
+ First, import `CUSTOM_ELEMENTS_SCHEMA` in your module:
64
+ ```typescript
65
+ import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
66
+ import { BrowserModule } from '@angular/platform-browser';
67
+
68
+ @NgModule({
69
+ declarations: [],
70
+ imports: [BrowserModule],
71
+ schemas: [CUSTOM_ELEMENTS_SCHEMA]
72
+ })
73
+ export class AppModule {}
74
+ ```
75
+ Now, use the Web Component in your Angular templates:
76
+ ```html
77
+ <xv-button-v2 label="Click Me" variant="primary"></xv-button-v2>
78
+ ```
79
+
80
+ ### **Using in a C# Razor Page (MVC)**
81
+ ```html
82
+ <xv-button-v2 label="Submit" variant="secondary"></xv-button-v2>
83
+ ```
84
+
85
+ ### **Using in Sitefinity CMS**
86
+ Embed the Web Component inside a content block:
87
+ ```html
88
+ <xv-button-v2 label="Learn More" variant="ghost"></xv-button-v2>
89
+ ```
90
+
91
+ ---
92
+
93
+ ## 🛠 Development & Building
94
+
95
+ ### **1️⃣ Build the Components**
96
+ To build all components:
97
+ ```bash
98
+ npm run build
99
+ ```
100
+ This generates compiled components inside the `dist/` folder.
101
+
102
+ ### **2️⃣ Run Local Development Server**
103
+ To test components locally:
104
+ ```bash
105
+ npm start
106
+ ```
107
+ This starts a development server and watches for changes.
108
+
109
+ ### **3️⃣ Publish to npm**
110
+ To publish a new version of the package:
111
+ ```bash
112
+ npm version patch
113
+ npm publish --access public
114
+ ```
115
+
116
+ ---
117
+
118
+ ## Contributing
119
+
120
+ ### **Adding a New Component**
121
+ 1. Generate a new component:
122
+ ```bash
123
+ npm run generate component xv-new-component
124
+ ```
125
+ 2. Implement logic and styles inside `src/components/xv-new-component/`.
126
+ 3. Test the component using Jest (`.spec.ts`) and e2e tests.
127
+ 4. Run `npm run build` to generate the compiled version.
128
+ 5. Commit changes and submit a pull request.
129
+