@jamsrui/accordion 0.0.11 → 0.0.12

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.
@@ -27,69 +27,69 @@ declare const useAccordion: (props: useAccordion.Props) => {
27
27
  classNames: SlotsToClassNames<"header" | "content" | "root" | "item" | "contentWrapper" | "indicator" | "headingContent" | "trigger"> | undefined;
28
28
  styles: {
29
29
  root: (slotProps?: ({
30
+ radius?: "none" | "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
30
31
  variant?: "light" | "splitted" | undefined;
31
- radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
32
32
  } & _jamsrui_utils.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
33
33
  item: (slotProps?: ({
34
+ radius?: "none" | "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
34
35
  variant?: "light" | "splitted" | undefined;
35
- radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
36
36
  } & _jamsrui_utils.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
37
37
  header: (slotProps?: ({
38
+ radius?: "none" | "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
38
39
  variant?: "light" | "splitted" | undefined;
39
- radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
40
40
  } & _jamsrui_utils.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
41
41
  trigger: (slotProps?: ({
42
+ radius?: "none" | "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
42
43
  variant?: "light" | "splitted" | undefined;
43
- radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
44
44
  } & _jamsrui_utils.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
45
45
  content: (slotProps?: ({
46
+ radius?: "none" | "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
46
47
  variant?: "light" | "splitted" | undefined;
47
- radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
48
48
  } & _jamsrui_utils.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
49
49
  contentWrapper: (slotProps?: ({
50
+ radius?: "none" | "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
50
51
  variant?: "light" | "splitted" | undefined;
51
- radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
52
52
  } & _jamsrui_utils.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
53
53
  indicator: (slotProps?: ({
54
+ radius?: "none" | "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
54
55
  variant?: "light" | "splitted" | undefined;
55
- radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
56
56
  } & _jamsrui_utils.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
57
57
  headingContent: (slotProps?: ({
58
+ radius?: "none" | "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
58
59
  variant?: "light" | "splitted" | undefined;
59
- radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
60
60
  } & _jamsrui_utils.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
61
61
  } & {
62
62
  root: (slotProps?: ({
63
+ radius?: "none" | "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
63
64
  variant?: "light" | "splitted" | undefined;
64
- radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
65
65
  } & _jamsrui_utils.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
66
66
  item: (slotProps?: ({
67
+ radius?: "none" | "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
67
68
  variant?: "light" | "splitted" | undefined;
68
- radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
69
69
  } & _jamsrui_utils.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
70
70
  header: (slotProps?: ({
71
+ radius?: "none" | "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
71
72
  variant?: "light" | "splitted" | undefined;
72
- radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
73
73
  } & _jamsrui_utils.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
74
74
  trigger: (slotProps?: ({
75
+ radius?: "none" | "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
75
76
  variant?: "light" | "splitted" | undefined;
76
- radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
77
77
  } & _jamsrui_utils.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
78
78
  content: (slotProps?: ({
79
+ radius?: "none" | "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
79
80
  variant?: "light" | "splitted" | undefined;
80
- radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
81
81
  } & _jamsrui_utils.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
82
82
  contentWrapper: (slotProps?: ({
83
+ radius?: "none" | "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
83
84
  variant?: "light" | "splitted" | undefined;
84
- radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
85
85
  } & _jamsrui_utils.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
86
86
  indicator: (slotProps?: ({
87
+ radius?: "none" | "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
87
88
  variant?: "light" | "splitted" | undefined;
88
- radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
89
89
  } & _jamsrui_utils.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
90
90
  headingContent: (slotProps?: ({
91
+ radius?: "none" | "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
91
92
  variant?: "light" | "splitted" | undefined;
92
- radius?: "md" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | undefined;
93
93
  } & _jamsrui_utils.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
94
94
  } & {};
95
95
  handleAccordionOpen: (idx: string) => void;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { GlobalConfigProps } from '@jamsrui/core';
3
- import { A as Accordion } from './accordion-BW3IFpcC.mjs';
3
+ import { A as Accordion } from './accordion-ZPzXJf-I.mjs';
4
4
  import 'react';
5
5
  import '@jamsrui/utils';
6
6
  import 'tailwind-merge';
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { u as useAccordion } from './accordion-BW3IFpcC.mjs';
2
+ import { u as useAccordion } from './accordion-ZPzXJf-I.mjs';
3
3
  import 'react/jsx-runtime';
4
4
  import '@jamsrui/utils';
5
5
  import 'tailwind-merge';
@@ -1,5 +1,5 @@
1
1
  import 'react/jsx-runtime';
2
- export { A as Accordion } from './accordion-BW3IFpcC.mjs';
2
+ export { A as Accordion } from './accordion-ZPzXJf-I.mjs';
3
3
  import 'react';
4
4
  import '@jamsrui/utils';
5
5
  import 'tailwind-merge';
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as Accordion } from './accordion-BW3IFpcC.mjs';
1
+ export { A as Accordion } from './accordion-ZPzXJf-I.mjs';
2
2
  export { AccordionConfig, useAccordionConfig } from './accordion-config.mjs';
3
3
  export { AccordionContent } from './accordion-content.mjs';
4
4
  export { A as AccordionItem } from './accordion-item-CjrslTeD.mjs';
@@ -1,7 +1,7 @@
1
1
  import 'react';
2
2
  import '@jamsrui/utils';
3
3
  import 'tailwind-merge';
4
- export { u as useAccordion } from './accordion-BW3IFpcC.mjs';
4
+ export { u as useAccordion } from './accordion-ZPzXJf-I.mjs';
5
5
  import './accordion-content.mjs';
6
6
  import './accordion-content-wrapper.mjs';
7
7
  import './accordion-heading-content.mjs';
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@jamsrui/accordion",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "peerDependencies": {
5
5
  "motion": ">=12",
6
6
  "react": ">=19",
7
7
  "react-dom": ">=19"
8
8
  },
9
9
  "dependencies": {
10
+ "@jamsrui/hooks": "^0.0.12",
11
+ "@jamsrui/composite": "^0.0.5",
10
12
  "@jamsrui/core": "^0.0.10",
11
- "@jamsrui/utils": "^0.0.11",
12
- "@jamsrui/hooks": "^0.0.11",
13
- "@jamsrui/composite": "^0.0.4"
13
+ "@jamsrui/utils": "^0.0.12"
14
14
  },
15
15
  "exports": {
16
16
  ".": {