@pb33f/cowboy-components 0.0.1 → 0.0.4

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 (82) hide show
  1. package/README.md +9 -0
  2. package/dist/components/attention-box/attention-box.css.js +73 -0
  3. package/dist/components/attention-box/attention-box.d.ts +16 -0
  4. package/dist/components/attention-box/attention-box.js +65 -0
  5. package/dist/components/changelog/changelog.css.js +95 -0
  6. package/dist/components/changelog/changelog.d.ts +12 -0
  7. package/dist/components/changelog/changelog.js +125 -0
  8. package/dist/components/changelog/model.d.ts +68 -0
  9. package/dist/components/changelog/model.js +1 -0
  10. package/dist/components/changelog/release.css.d.ts +2 -0
  11. package/dist/components/changelog/release.css.js +66 -0
  12. package/dist/components/changelog/release.d.ts +16 -0
  13. package/dist/components/changelog/release.js +96 -0
  14. package/dist/components/header/header.css.js +102 -0
  15. package/dist/components/header/header.d.ts +1 -0
  16. package/dist/components/header/header.js +39 -0
  17. package/dist/components/http-method/http-method.css.d.ts +2 -0
  18. package/dist/components/http-method/http-method.css.js +22 -0
  19. package/dist/components/http-method/http-method.d.ts +8 -0
  20. package/dist/components/http-method/http-method.js +34 -0
  21. package/dist/components/http-property-view/http-property-view.css.d.ts +2 -0
  22. package/dist/components/http-property-view/http-property-view.css.js +108 -0
  23. package/dist/components/http-property-view/http-property-view.d.ts +19 -0
  24. package/dist/components/http-property-view/http-property-view.js +102 -0
  25. package/dist/components/kv-view/kv-view.css.js +81 -0
  26. package/dist/components/kv-view/kv-view.js +98 -0
  27. package/dist/components/mailing-list/mailing-list.css.d.ts +2 -0
  28. package/dist/components/mailing-list/mailing-list.css.js +100 -0
  29. package/dist/components/mailing-list/mailing-list.d.ts +24 -0
  30. package/dist/components/mailing-list/mailing-list.js +138 -0
  31. package/dist/components/terminal/terminal-example.css.js +43 -0
  32. package/dist/components/terminal/terminal-example.js +34 -0
  33. package/dist/components/theme-switcher/theme-switcher.css.js +9 -0
  34. package/dist/components/theme-switcher/theme-switcher.js +76 -0
  35. package/dist/components/timeline/timeline-item.css.d.ts +2 -0
  36. package/dist/components/timeline/timeline-item.css.js +63 -0
  37. package/dist/components/timeline/timeline-item.d.ts +6 -0
  38. package/dist/components/timeline/timeline-item.js +32 -0
  39. package/dist/components/timeline/timeline.css.d.ts +2 -0
  40. package/dist/components/timeline/timeline.css.js +53 -0
  41. package/dist/components/timeline/timeline.d.ts +6 -0
  42. package/dist/components/timeline/timeline.js +30 -0
  43. package/dist/cowboy-components.d.ts +14 -0
  44. package/dist/cowboy-components.js +18 -4240
  45. package/dist/cowboy-components.umd.cjs +1146 -1213
  46. package/dist/css/alerts.css.d.ts +2 -0
  47. package/dist/css/alerts.css.js +89 -0
  48. package/dist/css/prism.css.d.ts +2 -0
  49. package/dist/css/prism.css.js +114 -0
  50. package/dist/css/shared.css.d.ts +2 -0
  51. package/dist/css/shared.css.js +116 -0
  52. package/dist/model/constants.d.ts +23 -0
  53. package/dist/model/constants.js +23 -0
  54. package/dist/model/controls.d.ts +30 -0
  55. package/dist/model/controls.js +25 -0
  56. package/dist/model/errors.d.ts +7 -0
  57. package/dist/model/errors.js +1 -0
  58. package/dist/model/exchange_method.d.ts +1 -0
  59. package/dist/model/exchange_method.js +16 -0
  60. package/dist/model/extract_content_type.d.ts +34 -0
  61. package/dist/model/extract_content_type.js +78 -0
  62. package/dist/model/extract_query.d.ts +1 -0
  63. package/dist/model/extract_query.js +11 -0
  64. package/dist/model/http_transaction.d.ts +78 -0
  65. package/dist/model/http_transaction.js +109 -0
  66. package/dist/style.css +1 -1
  67. package/package.json +18 -7
  68. package/demo/index.ts +0 -1
  69. package/demo/kv-view.ts +0 -18
  70. package/dist/fonts/BerkeleyMono-Bold.woff +0 -0
  71. package/dist/fonts/BerkeleyMono-Bold.woff2 +0 -0
  72. package/dist/fonts/BerkeleyMono-BoldItalic.woff +0 -0
  73. package/dist/fonts/BerkeleyMono-BoldItalic.woff2 +0 -0
  74. package/dist/fonts/BerkeleyMono-Italic.woff +0 -0
  75. package/dist/fonts/BerkeleyMono-Italic.woff2 +0 -0
  76. package/dist/fonts/BerkeleyMono-Regular.woff +0 -0
  77. package/dist/fonts/BerkeleyMono-Regular.woff2 +0 -0
  78. package/dist/index.d.ts +0 -9
  79. package/dist/vite.svg +0 -1
  80. package/index.html +0 -66
  81. /package/dist/components/{prism.css.d.ts → attention-box/attention-box.css.d.ts} +0 -0
  82. /package/dist/components/{shared.css.d.ts → changelog/changelog.css.d.ts} +0 -0
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Princess Beef Heavy Industries Cowboy Components",
4
4
  "private": false,
5
5
  "license": "BUSL-1.1",
6
- "version": "0.0.1",
6
+ "version": "0.0.4",
7
7
  "type": "module",
8
8
  "main": "./dist/cowboy-components.umd.cjs",
9
9
  "module": "./dist/cowboy-components.js",
@@ -13,20 +13,31 @@
13
13
  "preview": "vite preview"
14
14
  },
15
15
  "exports": {
16
- "dist": {
17
- "import": "./dist/cowboy-components.js",
18
- "require": "./dist/cowboy-components.umd.cjs"
19
- }
16
+ ".": {
17
+ "types": "./dist/cowboy-components.d.ts",
18
+ "import": "./dist/cowboy-components.js"
19
+ },
20
+ "./dist/cowboy-components.js": "./dist/cowboy-components.js",
21
+ "./dist/cowboy-components.umd.cjs": "./dist/cowboy-components.umd.cjs",
22
+ "./dist/style.css": "./dist/style.css",
23
+ "./dist/components/*": "./dist/components/*",
24
+ "./dist/assets*": "./dist/assets/*"
20
25
  },
26
+ "files": [
27
+ "dist"
28
+ ],
21
29
  "dependencies": {
30
+ "@pb33f/ranch": "^0.3.4",
31
+ "@pb33f/saddlebag": "^0.1.0",
22
32
  "@shoelace-style/shoelace": "^2.12.0",
23
- "lit": "^3.1.0"
33
+ "lit": "^3.1.0",
34
+ "marked": "^11.1.1",
35
+ "prismjs": "^1.29.0"
24
36
  },
25
37
  "devDependencies": {
26
38
  "@rollup/plugin-typescript": "^11.1.5",
27
39
  "@types/node": "^20.10.6",
28
40
  "@types/prismjs": "^1.26.3",
29
- "prismjs": "^1.29.0",
30
41
  "rollup-plugin-copy": "^3.5.0",
31
42
  "typescript": "^5.3.3",
32
43
  "vite": "^5.0.11",
package/demo/index.ts DELETED
@@ -1 +0,0 @@
1
- import './kv-view.ts';
package/demo/kv-view.ts DELETED
@@ -1,18 +0,0 @@
1
- import {customElement} from "lit/decorators.js";
2
- import {html, LitElement} from "lit";
3
- import {KVViewComponent} from '@/components/kv-view/kv-view';
4
-
5
- @customElement('pb33f-kv-view-demo')
6
- export class DemoKVView extends LitElement {
7
-
8
- render() {
9
-
10
- const kvView = new KVViewComponent()
11
-
12
- const map = new Map<string, any>()
13
- map.set("someValue", "This is a value of something that may contain <code>something</code>")
14
- map.set("anotherValue", "This is also something")
15
- kvView.data = map
16
- return html`${kvView}`
17
- }
18
- }
Binary file
Binary file
Binary file
package/dist/index.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import '@shoelace-style/shoelace/dist/themes/light.css';
2
- import '@shoelace-style/shoelace/dist/themes/dark.css';
3
- import '@shoelace-style/shoelace/dist/components/button/button.js';
4
- import '@shoelace-style/shoelace/dist/components/icon-button/icon-button.js';
5
- import '@shoelace-style/shoelace/dist/components/icon/icon.js';
6
- import './components/terminal/terminal-example.ts';
7
- import './components/theme-switcher/theme-switcher.ts';
8
- import './components/header/header.ts';
9
- import './components/kv-view/kv-view.ts';
package/dist/vite.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/index.html DELETED
@@ -1,66 +0,0 @@
1
- <!doctype html>
2
- <html lang="en-US" class="sl-theme-dark">
3
- <head lang="en">
4
- <meta charset="UTF-8"/>
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
6
- <title>Cowboy components</title>
7
- <link rel="stylesheet" href="src/css/pb33f-theme.css"/>
8
- <link rel="stylesheet" href="src/css/cowboy-components.css"/>
9
-
10
- <script type="module" src="/src/index.ts"></script>
11
- <script type="module" src="/demo/index.ts"></script>
12
-
13
- </head>
14
- <body>
15
-
16
- <pb33f-header name="b33fy">
17
- <pb33f-theme-switcher></pb33f-theme-switcher>
18
- </pb33f-header>
19
-
20
- <main>
21
- <h1>Header Section</h1>
22
- <p>content goes in here</p>
23
- <h2>Sub Header</h2>
24
- <p>content goes in here</p>
25
- <h3>Section</h3>
26
- <p>content goes in here</p>
27
- <h4>Sub Section</h4>
28
- <p>content goes in here</p>
29
- <p>content goes in here</p>
30
- <strong>bold</strong>, <i>italic</i> and <em>emphasized</em> <a href="https:pb33f.io">a link</a>
31
- <p>Regular paragraph <code>some code</code></p>
32
-
33
- <ul>
34
- <li>a list item</li>
35
- <li>a list item with <code>code</code></li>
36
- <li>and another list.
37
- <ul>
38
- <li>a nested list item</li>
39
- <li>another nested list item
40
- <ul>
41
- <li>a nested list item</li>
42
- <li>a nested list item</li>
43
- <li>a nested list item</li>
44
- </ul>
45
- </li>
46
- </ul>
47
- </li>
48
- </ul>
49
-
50
- <hr/>
51
-
52
- <h1>Terminal Example</h1>
53
- <terminal-example>vacuum lint myspec.yaml</terminal-example>
54
- <hr/>
55
- <terminal-example>command args and more | something else\
56
- and then there is more\
57
- and more.</terminal-example>
58
- <hr/>
59
-
60
- <pb33f-kv-view-demo></pb33f-kv-view-demo>
61
-
62
-
63
-
64
- </main>
65
- </body>
66
- </html>