@stacksjs/components 0.2.66 → 0.2.67

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.
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  // @bun
2
- // ../../../../../../../tmp/stx-components-build-53jMLn/stubs/stub-0.js
2
+ // ../../../../../../../tmp/stx-components-build-cWp3vr/stubs/stub-0.js
3
3
  var stub_0_default = { __stx: true, src: "./components/CodeBlock.stx" };
4
- // ../../../../../../../tmp/stx-components-build-53jMLn/stubs/stub-1.js
4
+ // ../../../../../../../tmp/stx-components-build-cWp3vr/stubs/stub-1.js
5
5
  var stub_1_default = { __stx: true, src: "./components/Footer.stx" };
6
- // ../../../../../../../tmp/stx-components-build-53jMLn/stubs/stub-2.js
6
+ // ../../../../../../../tmp/stx-components-build-cWp3vr/stubs/stub-2.js
7
7
  var stub_2_default = { __stx: true, src: "./components/Hero.stx" };
8
- // ../../../../../../../tmp/stx-components-build-53jMLn/stubs/stub-3.js
8
+ // ../../../../../../../tmp/stx-components-build-cWp3vr/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) {
@@ -5,12 +5,12 @@
5
5
  *
6
6
  * See stacksjs/stx#1703.
7
7
  */
8
- export declare interface AccordionItem {
8
+ export declare interface AccordionLegacyItem {
9
9
  title: string
10
10
  content: string
11
11
  }
12
12
  export declare interface AccordionProps {
13
- items?: AccordionItem[]
13
+ items?: AccordionItemDefinition[]
14
14
  allowMultiple?: boolean
15
15
  defaultOpen?: number[]
16
16
  onChange?: (openItems: number[]) => void
@@ -37,5 +37,6 @@ export declare interface AccordionItemProps {
37
37
  title: string
38
38
  className?: string
39
39
  }
40
+ export type AccordionItemDefinition = AccordionLegacyItem;
40
41
  export { default as Accordion } from './Accordion.stx';
41
42
  export { default as AccordionItem } from './AccordionItem.stx';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/components",
3
3
  "type": "module",
4
- "version": "0.2.66",
4
+ "version": "0.2.67",
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",
@@ -58,8 +58,8 @@
58
58
  },
59
59
  "dependencies": {
60
60
  "@cwcss/crosswind": "^0.2.0",
61
- "@stacksjs/stx": "0.2.66",
62
- "bun-plugin-stx": "0.2.66",
61
+ "@stacksjs/stx": "0.2.67",
62
+ "bun-plugin-stx": "0.2.67",
63
63
  "ts-syntax-highlighter": "^0.2.1"
64
64
  },
65
65
  "devDependencies": {
@@ -8,14 +8,16 @@ export { default as AccordionItem } from './AccordionItem.stx'
8
8
  *
9
9
  * See stacksjs/stx#1703.
10
10
  */
11
- export interface AccordionItem {
11
+ export interface AccordionLegacyItem {
12
12
  title: string
13
13
  content: string
14
14
  }
15
15
 
16
+ export type AccordionItemDefinition = AccordionLegacyItem
17
+
16
18
  export interface AccordionProps {
17
19
  /** Legacy: array of item definitions with string content. */
18
- items?: AccordionItem[]
20
+ items?: AccordionItemDefinition[]
19
21
  allowMultiple?: boolean
20
22
  defaultOpen?: number[]
21
23
  onChange?: (openItems: number[]) => void