@stacksjs/components 0.2.153 → 0.2.155
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.
|
@@ -96,6 +96,15 @@ function onWindowControl(action) {
|
|
|
96
96
|
<button type="button" class="{{ trafficLightClasses }} bg-[#febc2e]" aria-label="Minimize window" @click="onWindowControl('minimize')"></button>
|
|
97
97
|
<button type="button" class="{{ trafficLightClasses }} bg-[#28c840]" aria-label="Zoom window" @click="onWindowControl('zoom')"></button>
|
|
98
98
|
</div>
|
|
99
|
+
@elseif(logo || title)
|
|
100
|
+
<div class="flex min-w-0 items-center gap-[8px] [-webkit-app-region:no-drag]">
|
|
101
|
+
@if(logo)
|
|
102
|
+
<img src="{{ logo }}" alt="" class="h-[24px] w-[24px] shrink-0 object-contain" />
|
|
103
|
+
@endif
|
|
104
|
+
@if(title)
|
|
105
|
+
<span class="truncate text-[13px] font-semibold tracking-[-0.01em] text-[#1d1d1f] dark:text-[#f5f5f7]">{{ title }}</span>
|
|
106
|
+
@endif
|
|
107
|
+
</div>
|
|
99
108
|
@else
|
|
100
109
|
<span></span>
|
|
101
110
|
@endif
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
// ../../../../../../../tmp/stx-components-build-
|
|
2
|
+
// ../../../../../../../tmp/stx-components-build-HUCeXD/stubs/stub-0.js
|
|
3
3
|
var stub_0_default = { __stx: true, src: "./components/CodeBlock.stx" };
|
|
4
|
-
// ../../../../../../../tmp/stx-components-build-
|
|
4
|
+
// ../../../../../../../tmp/stx-components-build-HUCeXD/stubs/stub-1.js
|
|
5
5
|
var stub_1_default = { __stx: true, src: "./components/Footer.stx" };
|
|
6
|
-
// ../../../../../../../tmp/stx-components-build-
|
|
6
|
+
// ../../../../../../../tmp/stx-components-build-HUCeXD/stubs/stub-2.js
|
|
7
7
|
var stub_2_default = { __stx: true, src: "./components/Hero.stx" };
|
|
8
|
-
// ../../../../../../../tmp/stx-components-build-
|
|
8
|
+
// ../../../../../../../tmp/stx-components-build-HUCeXD/stubs/stub-3.js
|
|
9
9
|
var stub_3_default = { __stx: true, src: "./components/Installation.stx" };
|
|
10
10
|
// src/composables/useCopyCode.ts
|
|
11
11
|
function useCopyCode(options) {
|
|
@@ -1136,7 +1136,7 @@ var Sidebar_default = "./Sidebar-56px4jha.stx";
|
|
|
1136
1136
|
// src/ui/sidebar/SidebarFooter.stx
|
|
1137
1137
|
var SidebarFooter_default = "./SidebarFooter-s7skj92y.stx";
|
|
1138
1138
|
// src/ui/sidebar/SidebarHeader.stx
|
|
1139
|
-
var SidebarHeader_default = "./SidebarHeader-
|
|
1139
|
+
var SidebarHeader_default = "./SidebarHeader-34bf4mm8.stx";
|
|
1140
1140
|
// src/ui/sidebar/SidebarItem.stx
|
|
1141
1141
|
var SidebarItem_default = "./SidebarItem-2a6n0be3.stx";
|
|
1142
1142
|
// src/ui/sidebar/SidebarPinned.stx
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/components",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.155",
|
|
5
5
|
"description": "A modern component library built with STX, featuring headwind utility classes and TypeScript syntax highlighting.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -62,13 +62,13 @@
|
|
|
62
62
|
"prepublishOnly": "bun run build"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
+
"@iconify-json/f7": "^1.2.2",
|
|
65
66
|
"@cwcss/crosswind": "^0.2.14",
|
|
66
|
-
"@stacksjs/stx": "0.2.
|
|
67
|
-
"bun-plugin-stx": "0.2.
|
|
67
|
+
"@stacksjs/stx": "0.2.155",
|
|
68
|
+
"bun-plugin-stx": "0.2.155",
|
|
68
69
|
"ts-syntax-highlighter": "^0.2.1"
|
|
69
70
|
},
|
|
70
71
|
"devDependencies": {
|
|
71
|
-
"@iconify-json/f7": "^1.2.2",
|
|
72
72
|
"@types/bun": "^1.3.11",
|
|
73
73
|
"bun-plugin-dtsx": "^0.21.17",
|
|
74
74
|
"pickier": "^0.1.35",
|
|
@@ -96,6 +96,15 @@ function onWindowControl(action) {
|
|
|
96
96
|
<button type="button" class="{{ trafficLightClasses }} bg-[#febc2e]" aria-label="Minimize window" @click="onWindowControl('minimize')"></button>
|
|
97
97
|
<button type="button" class="{{ trafficLightClasses }} bg-[#28c840]" aria-label="Zoom window" @click="onWindowControl('zoom')"></button>
|
|
98
98
|
</div>
|
|
99
|
+
@elseif(logo || title)
|
|
100
|
+
<div class="flex min-w-0 items-center gap-[8px] [-webkit-app-region:no-drag]">
|
|
101
|
+
@if(logo)
|
|
102
|
+
<img src="{{ logo }}" alt="" class="h-[24px] w-[24px] shrink-0 object-contain" />
|
|
103
|
+
@endif
|
|
104
|
+
@if(title)
|
|
105
|
+
<span class="truncate text-[13px] font-semibold tracking-[-0.01em] text-[#1d1d1f] dark:text-[#f5f5f7]">{{ title }}</span>
|
|
106
|
+
@endif
|
|
107
|
+
</div>
|
|
99
108
|
@else
|
|
100
109
|
<span></span>
|
|
101
110
|
@endif
|
package/stx-plugin.ts
CHANGED
|
@@ -15,5 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
export default {
|
|
17
17
|
name: '@stacksjs/components',
|
|
18
|
-
components
|
|
18
|
+
// BOTH roots. src/components is a SIBLING of src/ui, not a child, and
|
|
19
|
+
// src/index.ts exports CodeBlock, Footer, Hero and Installation from it — so
|
|
20
|
+
// registering only ./src/ui left four documented, importable components
|
|
21
|
+
// unresolvable as tags (#1823).
|
|
22
|
+
components: ['./src/ui', './src/components'],
|
|
19
23
|
}
|