bth-ui 0.0.0-stage → 0.0.1

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 (71) hide show
  1. package/LICENSE +21 -0
  2. package/dist/bth-ui/bth-ui.esm.js +1 -0
  3. package/dist/bth-ui/index.esm.js +0 -0
  4. package/dist/bth-ui/p-DQuL1Twl.js +1 -0
  5. package/dist/bth-ui/p-e916e3c7.entry.js +1 -0
  6. package/dist/bth-ui/p-svnzPQiH.js +3 -0
  7. package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
  8. package/dist/cjs/bth-alert_6.cjs.entry.js +133 -0
  9. package/dist/cjs/bth-ui.cjs.js +25 -0
  10. package/dist/cjs/index-UJE5BQI1.js +1550 -0
  11. package/dist/cjs/index.cjs.js +2 -0
  12. package/dist/cjs/loader.cjs.js +13 -0
  13. package/dist/collection/collection-manifest.json +18 -0
  14. package/dist/collection/components/bth-alert/bth-alert-description.css +16 -0
  15. package/dist/collection/components/bth-alert/bth-alert-description.js +34 -0
  16. package/dist/collection/components/bth-alert/bth-alert-title.css +13 -0
  17. package/dist/collection/components/bth-alert/bth-alert-title.js +34 -0
  18. package/dist/collection/components/bth-alert/bth-alert.css +109 -0
  19. package/dist/collection/components/bth-alert/bth-alert.js +138 -0
  20. package/dist/collection/components/bth-alert/bth-alert.types.js +1 -0
  21. package/dist/collection/components/bth-badge/bth-badge.css +109 -0
  22. package/dist/collection/components/bth-badge/bth-badge.js +129 -0
  23. package/dist/collection/components/bth-badge/bth-badge.types.js +1 -0
  24. package/dist/collection/components/bth-button/bth-button.css +152 -0
  25. package/dist/collection/components/bth-button/bth-button.js +183 -0
  26. package/dist/collection/components/bth-button/bth-button.types.js +1 -0
  27. package/dist/collection/components/bth-icon/bth-icon.css +9 -0
  28. package/dist/collection/components/bth-icon/bth-icon.js +57 -0
  29. package/dist/collection/index.js +1 -0
  30. package/dist/components/bth-alert-description.d.ts +11 -0
  31. package/dist/components/bth-alert-description.js +1 -0
  32. package/dist/components/bth-alert-title.d.ts +11 -0
  33. package/dist/components/bth-alert-title.js +1 -0
  34. package/dist/components/bth-alert.d.ts +11 -0
  35. package/dist/components/bth-alert.js +1 -0
  36. package/dist/components/bth-badge.d.ts +11 -0
  37. package/dist/components/bth-badge.js +1 -0
  38. package/dist/components/bth-button.d.ts +11 -0
  39. package/dist/components/bth-button.js +1 -0
  40. package/dist/components/bth-icon.d.ts +11 -0
  41. package/dist/components/bth-icon.js +1 -0
  42. package/dist/components/index.d.ts +35 -0
  43. package/dist/components/index.js +1 -0
  44. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  45. package/dist/esm/bth-alert_6.entry.js +126 -0
  46. package/dist/esm/bth-ui.js +21 -0
  47. package/dist/esm/index-svnzPQiH.js +1541 -0
  48. package/dist/esm/index.js +1 -0
  49. package/dist/esm/loader.js +11 -0
  50. package/dist/index.cjs.js +1 -0
  51. package/dist/index.js +1 -0
  52. package/dist/types/components/bth-alert/bth-alert-description.d.ts +19 -0
  53. package/dist/types/components/bth-alert/bth-alert-title.d.ts +19 -0
  54. package/dist/types/components/bth-alert/bth-alert.d.ts +41 -0
  55. package/dist/types/components/bth-alert/bth-alert.types.d.ts +1 -0
  56. package/dist/types/components/bth-badge/bth-badge.d.ts +30 -0
  57. package/dist/types/components/bth-badge/bth-badge.types.d.ts +3 -0
  58. package/dist/types/components/bth-button/bth-button.d.ts +34 -0
  59. package/dist/types/components/bth-button/bth-button.types.d.ts +3 -0
  60. package/dist/types/components/bth-icon/bth-icon.d.ts +20 -0
  61. package/dist/types/components.d.ts +580 -0
  62. package/dist/types/index.d.ts +10 -0
  63. package/dist/types/stencil-public-runtime.d.ts +1879 -0
  64. package/loader/cdn.js +1 -0
  65. package/loader/index.cjs.js +1 -0
  66. package/loader/index.d.ts +24 -0
  67. package/loader/index.es2017.js +1 -0
  68. package/loader/index.js +2 -0
  69. package/package.json +46 -4
  70. package/readme.md +31 -0
  71. package/README.md +0 -3
package/loader/cdn.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('../dist/cjs/loader.cjs.js');
@@ -0,0 +1 @@
1
+ module.exports = require('../dist/cjs/loader.cjs.js');
@@ -0,0 +1,24 @@
1
+ export * from '../dist/types/components';
2
+ export interface CustomElementsDefineOptions {
3
+ exclude?: string[];
4
+ resourcesUrl?: string;
5
+ syncQueue?: boolean;
6
+ jmp?: (c: Function) => any;
7
+ raf?: (c: FrameRequestCallback) => number;
8
+ ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
9
+ rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
10
+ }
11
+ export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
12
+ /**
13
+ * @deprecated
14
+ */
15
+ export declare function applyPolyfills(): Promise<void>;
16
+
17
+ /**
18
+ * Used to specify a nonce value that corresponds with an application's CSP.
19
+ * When set, the nonce will be added to all dynamically created script and style tags at runtime.
20
+ * Alternatively, the nonce value can be set on a meta tag in the DOM head
21
+ * (<meta name="csp-nonce" content="{ nonce value here }" />) which
22
+ * will result in the same behavior.
23
+ */
24
+ export declare function setNonce(nonce: string): void;
@@ -0,0 +1 @@
1
+ export * from '../dist/esm/loader.js';
@@ -0,0 +1,2 @@
1
+ (function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
2
+ export * from '../dist/esm/loader.js';
package/package.json CHANGED
@@ -1,6 +1,48 @@
1
1
  {
2
2
  "name": "bth-ui",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.1",
4
+ "description": "Web components built with Stencil.js",
5
+ "main": "dist/index.cjs.js",
6
+ "module": "dist/index.js",
7
+ "types": "dist/types/index.d.ts",
8
+ "collection": "dist/collection/collection-manifest.json",
9
+ "collection:main": "dist/collection/index.js",
10
+ "unpkg": "dist/bth-ui/bth-ui.esm.js",
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/bth-ui/bth-ui.esm.js",
14
+ "require": "./dist/bth-ui/bth-ui.cjs.js"
15
+ },
16
+ "./loader": {
17
+ "import": "./loader/index.js",
18
+ "require": "./loader/index.cjs",
19
+ "types": "./loader/index.d.ts"
20
+ }
21
+ },
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "https://github.com/pamelacfelipe/bth-ui.git"
25
+ },
26
+ "files": [
27
+ "dist/",
28
+ "loader/"
29
+ ],
30
+ "scripts": {
31
+ "build": "stencil build",
32
+ "start": "stencil build --dev --watch --serve",
33
+ "test": "stencil-test --prod",
34
+ "test:watch": "stencil-test --prod --watch",
35
+ "generate": "stencil generate"
36
+ },
37
+ "devDependencies": {
38
+ "@stencil/core": "^4.27.1 || ^5.0.0-0",
39
+ "@stencil/sass": "^3.3.3",
40
+ "@stencil/vitest": "^1.8.3",
41
+ "@types/node": "^22.13.5",
42
+ "@vitest/browser-playwright": "^4.0.0",
43
+ "clsx": "^2.1.1",
44
+ "playwright": "^1.52.0",
45
+ "vitest": "^4.0.0"
46
+ },
47
+ "license": "MIT"
48
+ }
package/readme.md ADDED
@@ -0,0 +1,31 @@
1
+ [![Built With Stencil](https://img.shields.io/badge/-Built%20With%20Stencil-16161d.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI%2BCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI%2BCgkuc3Qwe2ZpbGw6I0ZGRkZGRjt9Cjwvc3R5bGU%2BCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MjQuNywzNzMuOWMwLDM3LjYtNTUuMSw2OC42LTkyLjcsNjguNkgxODAuNGMtMzcuOSwwLTkyLjctMzAuNy05Mi43LTY4LjZ2LTMuNmgzMzYuOVYzNzMuOXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTQyNC43LDI5Mi4xSDE4MC40Yy0zNy42LDAtOTIuNy0zMS05Mi43LTY4LjZ2LTMuNkgzMzJjMzcuNiwwLDkyLjcsMzEsOTIuNyw2OC42VjI5Mi4xeiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDI0LjcsMTQxLjdIODcuN3YtMy42YzAtMzcuNiw1NC44LTY4LjYsOTIuNy02OC42SDMzMmMzNy45LDAsOTIuNywzMC43LDkyLjcsNjguNlYxNDEuN3oiLz4KPC9zdmc%2BCg%3D%3D&colorA=16161d&style=flat-square)](https://stenciljs.com)
2
+
3
+ # Componentes do bth-ui
4
+
5
+ ## Iniciando
6
+
7
+ Para começar a criar novos componentes, clone este repositório para um novo diretório:
8
+
9
+ ```bash
10
+ git clone https://github.com/pamelacfelipe/bth-ui.git
11
+ cd bth-ui
12
+ ```
13
+
14
+ E executa:
15
+
16
+ ```bash
17
+ npm install
18
+ npm start
19
+ ```
20
+
21
+ Para *buildar* os componentes para produção, rode:
22
+
23
+ ```bash
24
+ npm run build
25
+ ```
26
+
27
+ Para executar os testes dos componentes, rode:
28
+
29
+ ```bash
30
+ npm test
31
+ ```
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.