@iblai/web-containers 1.57.0 → 1.58.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 (130) hide show
  1. package/dist/cjs/_virtual/index2.js +2 -2
  2. package/dist/cjs/_virtual/index3.js +2 -2
  3. package/dist/cjs/components/chat/chat-download-dialog.js.map +1 -1
  4. package/dist/cjs/components/chat/ui/button.js +4 -4
  5. package/dist/cjs/components/chat/ui/button.js.map +1 -1
  6. package/dist/cjs/components/chat-input-form/composer-plus-menu.js +94 -17
  7. package/dist/cjs/components/chat-input-form/composer-plus-menu.js.map +1 -1
  8. package/dist/cjs/components/chat-input-form/mcp-connect-explainer-dialog.js +29 -0
  9. package/dist/cjs/components/chat-input-form/mcp-connect-explainer-dialog.js.map +1 -0
  10. package/dist/cjs/components/chat-input-form/mcp-servers-menu.js +199 -0
  11. package/dist/cjs/components/chat-input-form/mcp-servers-menu.js.map +1 -0
  12. package/dist/cjs/components/chat-input-form/use-mcp-active-count.js +56 -0
  13. package/dist/cjs/components/chat-input-form/use-mcp-active-count.js.map +1 -0
  14. package/dist/cjs/components/chat-input-form.js +17 -4
  15. package/dist/cjs/components/chat-input-form.js.map +1 -1
  16. package/dist/cjs/components/modals/edit-mentor-modal/tabs/api-tab/create-api-modal.js +29 -13
  17. package/dist/cjs/components/modals/edit-mentor-modal/tabs/api-tab/create-api-modal.js.map +1 -1
  18. package/dist/cjs/components/modals/edit-mentor-modal/tabs/api-tab/labels.js +8 -0
  19. package/dist/cjs/components/modals/edit-mentor-modal/tabs/api-tab/labels.js.map +1 -1
  20. package/dist/cjs/components/modals/edit-mentor-modal/tabs/api-tab.js +23 -13
  21. package/dist/cjs/components/modals/edit-mentor-modal/tabs/api-tab.js.map +1 -1
  22. package/dist/cjs/components/modals/edit-mentor-modal/tabs/mcp-tab/connector-dialogs.js +755 -90
  23. package/dist/cjs/components/modals/edit-mentor-modal/tabs/mcp-tab/connector-dialogs.js.map +1 -1
  24. package/dist/cjs/components/modals/edit-mentor-modal/tabs/mcp-tab/connector-management-content.js +386 -984
  25. package/dist/cjs/components/modals/edit-mentor-modal/tabs/mcp-tab/connector-management-content.js.map +1 -1
  26. package/dist/cjs/components/modals/edit-mentor-modal/tabs/mcp-tab/field-info.js +16 -0
  27. package/dist/cjs/components/modals/edit-mentor-modal/tabs/mcp-tab/field-info.js.map +1 -0
  28. package/dist/cjs/components/modals/edit-mentor-modal/tabs/mcp-tab/index.js +6 -3
  29. package/dist/cjs/components/modals/edit-mentor-modal/tabs/mcp-tab/index.js.map +1 -1
  30. package/dist/cjs/components/modals/edit-mentor-modal/tabs/mcp-tab/mcp-connector-helpers.js +463 -0
  31. package/dist/cjs/components/modals/edit-mentor-modal/tabs/mcp-tab/mcp-connector-helpers.js.map +1 -0
  32. package/dist/cjs/components/modals/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js +329 -0
  33. package/dist/cjs/components/modals/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js.map +1 -0
  34. package/dist/cjs/components/modals/edit-mentor-modal/tabs/mcp-tab/remove-connector-dialog.js +20 -0
  35. package/dist/cjs/components/modals/edit-mentor-modal/tabs/mcp-tab/remove-connector-dialog.js.map +1 -0
  36. package/dist/cjs/components/modals/edit-mentor-modal/tabs/mcp-tab/use-mcp-server-actions.js +744 -0
  37. package/dist/cjs/components/modals/edit-mentor-modal/tabs/mcp-tab/use-mcp-server-actions.js.map +1 -0
  38. package/dist/cjs/components/modals/user-profile-modal.js +2 -0
  39. package/dist/cjs/components/modals/user-profile-modal.js.map +1 -1
  40. package/dist/cjs/components/profile/integration/api-tab/create-api-modal.js +17 -10
  41. package/dist/cjs/components/profile/integration/api-tab/create-api-modal.js.map +1 -1
  42. package/dist/cjs/components/ui/accordion.js +40 -0
  43. package/dist/cjs/components/ui/accordion.js.map +1 -0
  44. package/dist/cjs/i18n/messages/en.json.js +156 -19
  45. package/dist/cjs/i18n/messages/en.json.js.map +1 -1
  46. package/dist/cjs/i18n/messages/es.json.js +156 -19
  47. package/dist/cjs/i18n/messages/es.json.js.map +1 -1
  48. package/dist/cjs/i18n/messages/fr.json.js +156 -19
  49. package/dist/cjs/i18n/messages/fr.json.js.map +1 -1
  50. package/dist/cjs/i18n/messages/zh.json.js +156 -19
  51. package/dist/cjs/i18n/messages/zh.json.js.map +1 -1
  52. package/dist/cjs/index.js +2 -0
  53. package/dist/cjs/index.js.map +1 -1
  54. package/dist/cjs/node_modules/.pnpm/@radix-ui_react-accordion@1.2.8_@types_react-dom@19.2.1_@types_react@19.1.17__@types_re_b91476821b9fe8f172a947f727875267/node_modules/@radix-ui/react-accordion/dist/index.js +317 -0
  55. package/dist/cjs/node_modules/.pnpm/@radix-ui_react-accordion@1.2.8_@types_react-dom@19.2.1_@types_react@19.1.17__@types_re_b91476821b9fe8f172a947f727875267/node_modules/@radix-ui/react-accordion/dist/index.js.map +1 -0
  56. package/dist/cjs/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.8_@types_react-dom@19.2.1_@types_react@19.1.17__@types__d84e28844e8116e61b459b615fab358a/node_modules/@radix-ui/react-collapsible/dist/index.js +173 -0
  57. package/dist/cjs/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.8_@types_react-dom@19.2.1_@types_react@19.1.17__@types__d84e28844e8116e61b459b615fab358a/node_modules/@radix-ui/react-collapsible/dist/index.js.map +1 -0
  58. package/dist/cjs/node_modules/.pnpm/@radix-ui_react-collection@1.1.4_@types_react-dom@19.2.1_@types_react@19.1.17__@types_r_7047fbfe61c39c77a2126486502acdb6/node_modules/@radix-ui/react-collection/dist/index.js +73 -0
  59. package/dist/cjs/node_modules/.pnpm/@radix-ui_react-collection@1.1.4_@types_react-dom@19.2.1_@types_react@19.1.17__@types_r_7047fbfe61c39c77a2126486502acdb6/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -0
  60. package/dist/cjs/node_modules/.pnpm/css-mediaquery@0.1.2/node_modules/css-mediaquery/index.js +1 -1
  61. package/dist/cjs/node_modules/.pnpm/matchmediaquery@0.4.2/node_modules/matchmediaquery/index.js +1 -1
  62. package/dist/cjs/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
  63. package/dist/cjs/web-containers/tsconfig.build.tsbuildinfo +1 -0
  64. package/dist/esm/_virtual/index2.js +2 -2
  65. package/dist/esm/_virtual/index3.js +2 -2
  66. package/dist/esm/components/chat/chat-download-dialog.js.map +1 -1
  67. package/dist/esm/components/chat-input-form/composer-plus-menu.js +94 -17
  68. package/dist/esm/components/chat-input-form/composer-plus-menu.js.map +1 -1
  69. package/dist/esm/components/chat-input-form/mcp-connect-explainer-dialog.js +27 -0
  70. package/dist/esm/components/chat-input-form/mcp-connect-explainer-dialog.js.map +1 -0
  71. package/dist/esm/components/chat-input-form/mcp-servers-menu.js +197 -0
  72. package/dist/esm/components/chat-input-form/mcp-servers-menu.js.map +1 -0
  73. package/dist/esm/components/chat-input-form/use-mcp-active-count.js +54 -0
  74. package/dist/esm/components/chat-input-form/use-mcp-active-count.js.map +1 -0
  75. package/dist/esm/components/chat-input-form.js +17 -4
  76. package/dist/esm/components/chat-input-form.js.map +1 -1
  77. package/dist/esm/components/modals/edit-mentor-modal/tabs/api-tab/create-api-modal.js +30 -14
  78. package/dist/esm/components/modals/edit-mentor-modal/tabs/api-tab/create-api-modal.js.map +1 -1
  79. package/dist/esm/components/modals/edit-mentor-modal/tabs/api-tab/labels.js +8 -0
  80. package/dist/esm/components/modals/edit-mentor-modal/tabs/api-tab/labels.js.map +1 -1
  81. package/dist/esm/components/modals/edit-mentor-modal/tabs/api-tab.js +25 -15
  82. package/dist/esm/components/modals/edit-mentor-modal/tabs/api-tab.js.map +1 -1
  83. package/dist/esm/components/modals/edit-mentor-modal/tabs/mcp-tab/connector-dialogs.js +755 -92
  84. package/dist/esm/components/modals/edit-mentor-modal/tabs/mcp-tab/connector-dialogs.js.map +1 -1
  85. package/dist/esm/components/modals/edit-mentor-modal/tabs/mcp-tab/connector-management-content.js +361 -968
  86. package/dist/esm/components/modals/edit-mentor-modal/tabs/mcp-tab/connector-management-content.js.map +1 -1
  87. package/dist/esm/components/modals/edit-mentor-modal/tabs/mcp-tab/field-info.js +14 -0
  88. package/dist/esm/components/modals/edit-mentor-modal/tabs/mcp-tab/field-info.js.map +1 -0
  89. package/dist/esm/components/modals/edit-mentor-modal/tabs/mcp-tab/index.js +6 -3
  90. package/dist/esm/components/modals/edit-mentor-modal/tabs/mcp-tab/index.js.map +1 -1
  91. package/dist/esm/components/modals/edit-mentor-modal/tabs/mcp-tab/mcp-connector-helpers.js +431 -0
  92. package/dist/esm/components/modals/edit-mentor-modal/tabs/mcp-tab/mcp-connector-helpers.js.map +1 -0
  93. package/dist/esm/components/modals/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js +313 -0
  94. package/dist/esm/components/modals/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js.map +1 -0
  95. package/dist/esm/components/modals/edit-mentor-modal/tabs/mcp-tab/remove-connector-dialog.js +18 -0
  96. package/dist/esm/components/modals/edit-mentor-modal/tabs/mcp-tab/remove-connector-dialog.js.map +1 -0
  97. package/dist/esm/components/modals/edit-mentor-modal/tabs/mcp-tab/use-mcp-server-actions.js +742 -0
  98. package/dist/esm/components/modals/edit-mentor-modal/tabs/mcp-tab/use-mcp-server-actions.js.map +1 -0
  99. package/dist/esm/components/modals/user-profile-modal.js +2 -0
  100. package/dist/esm/components/modals/user-profile-modal.js.map +1 -1
  101. package/dist/esm/components/profile/integration/api-tab/create-api-modal.js +17 -10
  102. package/dist/esm/components/profile/integration/api-tab/create-api-modal.js.map +1 -1
  103. package/dist/esm/components/ui/accordion.js +16 -0
  104. package/dist/esm/components/ui/accordion.js.map +1 -0
  105. package/dist/esm/i18n/messages/en.json.js +154 -20
  106. package/dist/esm/i18n/messages/en.json.js.map +1 -1
  107. package/dist/esm/i18n/messages/es.json.js +154 -20
  108. package/dist/esm/i18n/messages/es.json.js.map +1 -1
  109. package/dist/esm/i18n/messages/fr.json.js +154 -20
  110. package/dist/esm/i18n/messages/fr.json.js.map +1 -1
  111. package/dist/esm/i18n/messages/zh.json.js +154 -20
  112. package/dist/esm/i18n/messages/zh.json.js.map +1 -1
  113. package/dist/esm/index.js +1 -0
  114. package/dist/esm/index.js.map +1 -1
  115. package/dist/esm/node_modules/.pnpm/@radix-ui_react-accordion@1.2.8_@types_react-dom@19.2.1_@types_react@19.1.17__@types_re_b91476821b9fe8f172a947f727875267/node_modules/@radix-ui/react-accordion/dist/index.js +306 -0
  116. package/dist/esm/node_modules/.pnpm/@radix-ui_react-accordion@1.2.8_@types_react-dom@19.2.1_@types_react@19.1.17__@types_re_b91476821b9fe8f172a947f727875267/node_modules/@radix-ui/react-accordion/dist/index.js.map +1 -0
  117. package/dist/esm/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.8_@types_react-dom@19.2.1_@types_react@19.1.17__@types__d84e28844e8116e61b459b615fab358a/node_modules/@radix-ui/react-collapsible/dist/index.js +146 -0
  118. package/dist/esm/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.8_@types_react-dom@19.2.1_@types_react@19.1.17__@types__d84e28844e8116e61b459b615fab358a/node_modules/@radix-ui/react-collapsible/dist/index.js.map +1 -0
  119. package/dist/esm/node_modules/.pnpm/@radix-ui_react-collection@1.1.4_@types_react-dom@19.2.1_@types_react@19.1.17__@types_r_7047fbfe61c39c77a2126486502acdb6/node_modules/@radix-ui/react-collection/dist/index.js +71 -0
  120. package/dist/esm/node_modules/.pnpm/@radix-ui_react-collection@1.1.4_@types_react-dom@19.2.1_@types_react@19.1.17__@types_r_7047fbfe61c39c77a2126486502acdb6/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -0
  121. package/dist/esm/node_modules/.pnpm/css-mediaquery@0.1.2/node_modules/css-mediaquery/index.js +1 -1
  122. package/dist/esm/node_modules/.pnpm/matchmediaquery@0.4.2/node_modules/matchmediaquery/index.js +1 -1
  123. package/dist/esm/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
  124. package/dist/esm/web-containers/tsconfig.build.tsbuildinfo +1 -0
  125. package/dist/index.d.ts +31 -2
  126. package/dist/next/index.d.ts +6 -0
  127. package/dist/package.json +1 -1
  128. package/package.json +3 -3
  129. package/dist/cjs/web-containers/tsconfig.tsbuildinfo +0 -1
  130. package/dist/esm/web-containers/tsconfig.tsbuildinfo +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"zh.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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ui/portal-container-context.js');
188
188
  var slashSkillPicker = require('./components/chat-input-form/slash-skill-picker.js');
189
189
  var useSlashSkillPicker = require('./components/chat-input-form/use-slash-skill-picker.js');
190
190
  var useSlashSkills = require('./components/chat-input-form/use-slash-skills.js');
191
+ var mcpServersMenu = require('./components/chat-input-form/mcp-servers-menu.js');
191
192
  var categorizedDropdownMenu = require('./components/categorized-dropdown-menu.js');
192
193
  var dropdownMenu = require('./components/ui/dropdown-menu.js');
193
194
  var paywallModal = require('./components/modals/paywall-modal.js');
@@ -523,6 +524,7 @@ exports.SlashSkillPicker = slashSkillPicker.SlashSkillPicker;
523
524
  exports.isSlashCommandToken = useSlashSkillPicker.isSlashCommandToken;
524
525
  exports.useSlashSkillPicker = useSlashSkillPicker.useSlashSkillPicker;
525
526
  exports.useSlashSkills = useSlashSkills.useSlashSkills;
527
+ exports.McpServersMenu = mcpServersMenu.McpServersMenu;
526
528
  exports.CategorizedDropdownMenu = categorizedDropdownMenu.CategorizedDropdownMenu;
527
529
  exports.DropdownMenu = dropdownMenu.DropdownMenu;
528
530
  exports.DropdownMenuCheckboxItem = dropdownMenu.DropdownMenuCheckboxItem;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var index$4 = require('../../../../../@radix-ui_react-context@1.1.2_@types_react@19.1.17_react@19.1.0/node_modules/@radix-ui/react-context/dist/index.js');
5
+ var index$3 = require('../../../../../@radix-ui_react-collection@1.1.4_@types_react-dom@19.2.1_@types_react@19.1.17__@types_r_7047fbfe61c39c77a2126486502acdb6/node_modules/@radix-ui/react-collection/dist/index.js');
6
+ var index$6 = require('../../../../../@radix-ui_react-compose-refs@1.1.2_@types_react@19.1.17_react@19.1.0/node_modules/@radix-ui/react-compose-refs/dist/index.js');
7
+ var index$8 = require('../../../../../@radix-ui_primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.js');
8
+ var index$5 = require('../../../../../@radix-ui_react-use-controllable-state@1.2.2_@types_react@19.1.17_react@19.1.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.js');
9
+ var index$2 = require('../../../../../@radix-ui_react-primitive@2.1.0_@types_react-dom@19.2.1_@types_react@19.1.17__@types_re_f2580de629d71ffa3fb86897883f3213/node_modules/@radix-ui/react-primitive/dist/index.js');
10
+ var index$1 = require('../../../../../@radix-ui_react-collapsible@1.1.8_@types_react-dom@19.2.1_@types_react@19.1.17__@types__d84e28844e8116e61b459b615fab358a/node_modules/@radix-ui/react-collapsible/dist/index.js');
11
+ var index = require('../../../../../@radix-ui_react-id@1.1.1_@types_react@19.1.17_react@19.1.0/node_modules/@radix-ui/react-id/dist/index.js');
12
+ var index$7 = require('../../../../../@radix-ui_react-direction@1.1.1_@types_react@19.1.17_react@19.1.0/node_modules/@radix-ui/react-direction/dist/index.js');
13
+ var jsxRuntime = require('react/jsx-runtime');
14
+
15
+ var ACCORDION_NAME = "Accordion";
16
+ var ACCORDION_KEYS = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"];
17
+ var [Collection, useCollection, createCollectionScope] = index$3.createCollection(ACCORDION_NAME);
18
+ var [createAccordionContext] = index$4.createContextScope(ACCORDION_NAME, [
19
+ createCollectionScope,
20
+ index$1.createCollapsibleScope
21
+ ]);
22
+ var useCollapsibleScope = index$1.createCollapsibleScope();
23
+ var Accordion = React.forwardRef(
24
+ (props, forwardedRef) => {
25
+ const { type, ...accordionProps } = props;
26
+ const singleProps = accordionProps;
27
+ const multipleProps = accordionProps;
28
+ return /* @__PURE__ */ jsxRuntime.jsx(Collection.Provider, { scope: props.__scopeAccordion, children: type === "multiple" ? /* @__PURE__ */ jsxRuntime.jsx(AccordionImplMultiple, { ...multipleProps, ref: forwardedRef }) : /* @__PURE__ */ jsxRuntime.jsx(AccordionImplSingle, { ...singleProps, ref: forwardedRef }) });
29
+ }
30
+ );
31
+ Accordion.displayName = ACCORDION_NAME;
32
+ var [AccordionValueProvider, useAccordionValueContext] = createAccordionContext(ACCORDION_NAME);
33
+ var [AccordionCollapsibleProvider, useAccordionCollapsibleContext] = createAccordionContext(
34
+ ACCORDION_NAME,
35
+ { collapsible: false }
36
+ );
37
+ var AccordionImplSingle = React.forwardRef(
38
+ (props, forwardedRef) => {
39
+ const {
40
+ value: valueProp,
41
+ defaultValue,
42
+ onValueChange = () => {
43
+ },
44
+ collapsible = false,
45
+ ...accordionSingleProps
46
+ } = props;
47
+ const [value, setValue] = index$5.useControllableState({
48
+ prop: valueProp,
49
+ defaultProp: defaultValue ?? "",
50
+ onChange: onValueChange,
51
+ caller: ACCORDION_NAME
52
+ });
53
+ return /* @__PURE__ */ jsxRuntime.jsx(
54
+ AccordionValueProvider,
55
+ {
56
+ scope: props.__scopeAccordion,
57
+ value: React.useMemo(() => value ? [value] : [], [value]),
58
+ onItemOpen: setValue,
59
+ onItemClose: React.useCallback(() => collapsible && setValue(""), [collapsible, setValue]),
60
+ children: /* @__PURE__ */ jsxRuntime.jsx(AccordionCollapsibleProvider, { scope: props.__scopeAccordion, collapsible, children: /* @__PURE__ */ jsxRuntime.jsx(AccordionImpl, { ...accordionSingleProps, ref: forwardedRef }) })
61
+ }
62
+ );
63
+ }
64
+ );
65
+ var AccordionImplMultiple = React.forwardRef((props, forwardedRef) => {
66
+ const {
67
+ value: valueProp,
68
+ defaultValue,
69
+ onValueChange = () => {
70
+ },
71
+ ...accordionMultipleProps
72
+ } = props;
73
+ const [value, setValue] = index$5.useControllableState({
74
+ prop: valueProp,
75
+ defaultProp: defaultValue ?? [],
76
+ onChange: onValueChange,
77
+ caller: ACCORDION_NAME
78
+ });
79
+ const handleItemOpen = React.useCallback(
80
+ (itemValue) => setValue((prevValue = []) => [...prevValue, itemValue]),
81
+ [setValue]
82
+ );
83
+ const handleItemClose = React.useCallback(
84
+ (itemValue) => setValue((prevValue = []) => prevValue.filter((value2) => value2 !== itemValue)),
85
+ [setValue]
86
+ );
87
+ return /* @__PURE__ */ jsxRuntime.jsx(
88
+ AccordionValueProvider,
89
+ {
90
+ scope: props.__scopeAccordion,
91
+ value,
92
+ onItemOpen: handleItemOpen,
93
+ onItemClose: handleItemClose,
94
+ children: /* @__PURE__ */ jsxRuntime.jsx(AccordionCollapsibleProvider, { scope: props.__scopeAccordion, collapsible: true, children: /* @__PURE__ */ jsxRuntime.jsx(AccordionImpl, { ...accordionMultipleProps, ref: forwardedRef }) })
95
+ }
96
+ );
97
+ });
98
+ var [AccordionImplProvider, useAccordionContext] = createAccordionContext(ACCORDION_NAME);
99
+ var AccordionImpl = React.forwardRef(
100
+ (props, forwardedRef) => {
101
+ const { __scopeAccordion, disabled, dir, orientation = "vertical", ...accordionProps } = props;
102
+ const accordionRef = React.useRef(null);
103
+ const composedRefs = index$6.useComposedRefs(accordionRef, forwardedRef);
104
+ const getItems = useCollection(__scopeAccordion);
105
+ const direction = index$7.useDirection(dir);
106
+ const isDirectionLTR = direction === "ltr";
107
+ const handleKeyDown = index$8.composeEventHandlers(props.onKeyDown, (event) => {
108
+ if (!ACCORDION_KEYS.includes(event.key)) return;
109
+ const target = event.target;
110
+ const triggerCollection = getItems().filter((item) => !item.ref.current?.disabled);
111
+ const triggerIndex = triggerCollection.findIndex((item) => item.ref.current === target);
112
+ const triggerCount = triggerCollection.length;
113
+ if (triggerIndex === -1) return;
114
+ event.preventDefault();
115
+ let nextIndex = triggerIndex;
116
+ const homeIndex = 0;
117
+ const endIndex = triggerCount - 1;
118
+ const moveNext = () => {
119
+ nextIndex = triggerIndex + 1;
120
+ if (nextIndex > endIndex) {
121
+ nextIndex = homeIndex;
122
+ }
123
+ };
124
+ const movePrev = () => {
125
+ nextIndex = triggerIndex - 1;
126
+ if (nextIndex < homeIndex) {
127
+ nextIndex = endIndex;
128
+ }
129
+ };
130
+ switch (event.key) {
131
+ case "Home":
132
+ nextIndex = homeIndex;
133
+ break;
134
+ case "End":
135
+ nextIndex = endIndex;
136
+ break;
137
+ case "ArrowRight":
138
+ if (orientation === "horizontal") {
139
+ if (isDirectionLTR) {
140
+ moveNext();
141
+ } else {
142
+ movePrev();
143
+ }
144
+ }
145
+ break;
146
+ case "ArrowDown":
147
+ if (orientation === "vertical") {
148
+ moveNext();
149
+ }
150
+ break;
151
+ case "ArrowLeft":
152
+ if (orientation === "horizontal") {
153
+ if (isDirectionLTR) {
154
+ movePrev();
155
+ } else {
156
+ moveNext();
157
+ }
158
+ }
159
+ break;
160
+ case "ArrowUp":
161
+ if (orientation === "vertical") {
162
+ movePrev();
163
+ }
164
+ break;
165
+ }
166
+ const clampedIndex = nextIndex % triggerCount;
167
+ triggerCollection[clampedIndex].ref.current?.focus();
168
+ });
169
+ return /* @__PURE__ */ jsxRuntime.jsx(
170
+ AccordionImplProvider,
171
+ {
172
+ scope: __scopeAccordion,
173
+ disabled,
174
+ direction: dir,
175
+ orientation,
176
+ children: /* @__PURE__ */ jsxRuntime.jsx(Collection.Slot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsxRuntime.jsx(
177
+ index$2.Primitive.div,
178
+ {
179
+ ...accordionProps,
180
+ "data-orientation": orientation,
181
+ ref: composedRefs,
182
+ onKeyDown: disabled ? void 0 : handleKeyDown
183
+ }
184
+ ) })
185
+ }
186
+ );
187
+ }
188
+ );
189
+ var ITEM_NAME = "AccordionItem";
190
+ var [AccordionItemProvider, useAccordionItemContext] = createAccordionContext(ITEM_NAME);
191
+ var AccordionItem = React.forwardRef(
192
+ (props, forwardedRef) => {
193
+ const { __scopeAccordion, value, ...accordionItemProps } = props;
194
+ const accordionContext = useAccordionContext(ITEM_NAME, __scopeAccordion);
195
+ const valueContext = useAccordionValueContext(ITEM_NAME, __scopeAccordion);
196
+ const collapsibleScope = useCollapsibleScope(__scopeAccordion);
197
+ const triggerId = index.useId();
198
+ const open = value && valueContext.value.includes(value) || false;
199
+ const disabled = accordionContext.disabled || props.disabled;
200
+ return /* @__PURE__ */ jsxRuntime.jsx(
201
+ AccordionItemProvider,
202
+ {
203
+ scope: __scopeAccordion,
204
+ open,
205
+ disabled,
206
+ triggerId,
207
+ children: /* @__PURE__ */ jsxRuntime.jsx(
208
+ index$1.Root,
209
+ {
210
+ "data-orientation": accordionContext.orientation,
211
+ "data-state": getState(open),
212
+ ...collapsibleScope,
213
+ ...accordionItemProps,
214
+ ref: forwardedRef,
215
+ disabled,
216
+ open,
217
+ onOpenChange: (open2) => {
218
+ if (open2) {
219
+ valueContext.onItemOpen(value);
220
+ } else {
221
+ valueContext.onItemClose(value);
222
+ }
223
+ }
224
+ }
225
+ )
226
+ }
227
+ );
228
+ }
229
+ );
230
+ AccordionItem.displayName = ITEM_NAME;
231
+ var HEADER_NAME = "AccordionHeader";
232
+ var AccordionHeader = React.forwardRef(
233
+ (props, forwardedRef) => {
234
+ const { __scopeAccordion, ...headerProps } = props;
235
+ const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);
236
+ const itemContext = useAccordionItemContext(HEADER_NAME, __scopeAccordion);
237
+ return /* @__PURE__ */ jsxRuntime.jsx(
238
+ index$2.Primitive.h3,
239
+ {
240
+ "data-orientation": accordionContext.orientation,
241
+ "data-state": getState(itemContext.open),
242
+ "data-disabled": itemContext.disabled ? "" : void 0,
243
+ ...headerProps,
244
+ ref: forwardedRef
245
+ }
246
+ );
247
+ }
248
+ );
249
+ AccordionHeader.displayName = HEADER_NAME;
250
+ var TRIGGER_NAME = "AccordionTrigger";
251
+ var AccordionTrigger = React.forwardRef(
252
+ (props, forwardedRef) => {
253
+ const { __scopeAccordion, ...triggerProps } = props;
254
+ const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);
255
+ const itemContext = useAccordionItemContext(TRIGGER_NAME, __scopeAccordion);
256
+ const collapsibleContext = useAccordionCollapsibleContext(TRIGGER_NAME, __scopeAccordion);
257
+ const collapsibleScope = useCollapsibleScope(__scopeAccordion);
258
+ return /* @__PURE__ */ jsxRuntime.jsx(Collection.ItemSlot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsxRuntime.jsx(
259
+ index$1.Trigger,
260
+ {
261
+ "aria-disabled": itemContext.open && !collapsibleContext.collapsible || void 0,
262
+ "data-orientation": accordionContext.orientation,
263
+ id: itemContext.triggerId,
264
+ ...collapsibleScope,
265
+ ...triggerProps,
266
+ ref: forwardedRef
267
+ }
268
+ ) });
269
+ }
270
+ );
271
+ AccordionTrigger.displayName = TRIGGER_NAME;
272
+ var CONTENT_NAME = "AccordionContent";
273
+ var AccordionContent = React.forwardRef(
274
+ (props, forwardedRef) => {
275
+ const { __scopeAccordion, ...contentProps } = props;
276
+ const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);
277
+ const itemContext = useAccordionItemContext(CONTENT_NAME, __scopeAccordion);
278
+ const collapsibleScope = useCollapsibleScope(__scopeAccordion);
279
+ return /* @__PURE__ */ jsxRuntime.jsx(
280
+ index$1.Content,
281
+ {
282
+ role: "region",
283
+ "aria-labelledby": itemContext.triggerId,
284
+ "data-orientation": accordionContext.orientation,
285
+ ...collapsibleScope,
286
+ ...contentProps,
287
+ ref: forwardedRef,
288
+ style: {
289
+ ["--radix-accordion-content-height"]: "var(--radix-collapsible-content-height)",
290
+ ["--radix-accordion-content-width"]: "var(--radix-collapsible-content-width)",
291
+ ...props.style
292
+ }
293
+ }
294
+ );
295
+ }
296
+ );
297
+ AccordionContent.displayName = CONTENT_NAME;
298
+ function getState(open) {
299
+ return open ? "open" : "closed";
300
+ }
301
+ var Root2 = Accordion;
302
+ var Item = AccordionItem;
303
+ var Header = AccordionHeader;
304
+ var Trigger2 = AccordionTrigger;
305
+ var Content2 = AccordionContent;
306
+
307
+ exports.Accordion = Accordion;
308
+ exports.AccordionContent = AccordionContent;
309
+ exports.AccordionHeader = AccordionHeader;
310
+ exports.AccordionItem = AccordionItem;
311
+ exports.AccordionTrigger = AccordionTrigger;
312
+ exports.Content = Content2;
313
+ exports.Header = Header;
314
+ exports.Item = Item;
315
+ exports.Root = Root2;
316
+ exports.Trigger = Trigger2;
317
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@radix-ui+react-accordion@1.2.8_@types+react-dom@19.2.1_@types+react@19.1.17__@types+re_b91476821b9fe8f172a947f727875267/node_modules/@radix-ui/react-accordion/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/accordion.tsx\nimport React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport * as CollapsiblePrimitive from \"@radix-ui/react-collapsible\";\nimport { createCollapsibleScope } from \"@radix-ui/react-collapsible\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { jsx } from \"react/jsx-runtime\";\nvar ACCORDION_NAME = \"Accordion\";\nvar ACCORDION_KEYS = [\"Home\", \"End\", \"ArrowDown\", \"ArrowUp\", \"ArrowLeft\", \"ArrowRight\"];\nvar [Collection, useCollection, createCollectionScope] = createCollection(ACCORDION_NAME);\nvar [createAccordionContext, createAccordionScope] = createContextScope(ACCORDION_NAME, [\n createCollectionScope,\n createCollapsibleScope\n]);\nvar useCollapsibleScope = createCollapsibleScope();\nvar Accordion = React.forwardRef(\n (props, forwardedRef) => {\n const { type, ...accordionProps } = props;\n const singleProps = accordionProps;\n const multipleProps = accordionProps;\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeAccordion, children: type === \"multiple\" ? /* @__PURE__ */ jsx(AccordionImplMultiple, { ...multipleProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(AccordionImplSingle, { ...singleProps, ref: forwardedRef }) });\n }\n);\nAccordion.displayName = ACCORDION_NAME;\nvar [AccordionValueProvider, useAccordionValueContext] = createAccordionContext(ACCORDION_NAME);\nvar [AccordionCollapsibleProvider, useAccordionCollapsibleContext] = createAccordionContext(\n ACCORDION_NAME,\n { collapsible: false }\n);\nvar AccordionImplSingle = React.forwardRef(\n (props, forwardedRef) => {\n const {\n value: valueProp,\n defaultValue,\n onValueChange = () => {\n },\n collapsible = false,\n ...accordionSingleProps\n } = props;\n const [value, setValue] = useControllableState({\n prop: valueProp,\n defaultProp: defaultValue ?? \"\",\n onChange: onValueChange,\n caller: ACCORDION_NAME\n });\n return /* @__PURE__ */ jsx(\n AccordionValueProvider,\n {\n scope: props.__scopeAccordion,\n value: React.useMemo(() => value ? [value] : [], [value]),\n onItemOpen: setValue,\n onItemClose: React.useCallback(() => collapsible && setValue(\"\"), [collapsible, setValue]),\n children: /* @__PURE__ */ jsx(AccordionCollapsibleProvider, { scope: props.__scopeAccordion, collapsible, children: /* @__PURE__ */ jsx(AccordionImpl, { ...accordionSingleProps, ref: forwardedRef }) })\n }\n );\n }\n);\nvar AccordionImplMultiple = React.forwardRef((props, forwardedRef) => {\n const {\n value: valueProp,\n defaultValue,\n onValueChange = () => {\n },\n ...accordionMultipleProps\n } = props;\n const [value, setValue] = useControllableState({\n prop: valueProp,\n defaultProp: defaultValue ?? [],\n onChange: onValueChange,\n caller: ACCORDION_NAME\n });\n const handleItemOpen = React.useCallback(\n (itemValue) => setValue((prevValue = []) => [...prevValue, itemValue]),\n [setValue]\n );\n const handleItemClose = React.useCallback(\n (itemValue) => setValue((prevValue = []) => prevValue.filter((value2) => value2 !== itemValue)),\n [setValue]\n );\n return /* @__PURE__ */ jsx(\n AccordionValueProvider,\n {\n scope: props.__scopeAccordion,\n value,\n onItemOpen: handleItemOpen,\n onItemClose: handleItemClose,\n children: /* @__PURE__ */ jsx(AccordionCollapsibleProvider, { scope: props.__scopeAccordion, collapsible: true, children: /* @__PURE__ */ jsx(AccordionImpl, { ...accordionMultipleProps, ref: forwardedRef }) })\n }\n );\n});\nvar [AccordionImplProvider, useAccordionContext] = createAccordionContext(ACCORDION_NAME);\nvar AccordionImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, disabled, dir, orientation = \"vertical\", ...accordionProps } = props;\n const accordionRef = React.useRef(null);\n const composedRefs = useComposedRefs(accordionRef, forwardedRef);\n const getItems = useCollection(__scopeAccordion);\n const direction = useDirection(dir);\n const isDirectionLTR = direction === \"ltr\";\n const handleKeyDown = composeEventHandlers(props.onKeyDown, (event) => {\n if (!ACCORDION_KEYS.includes(event.key)) return;\n const target = event.target;\n const triggerCollection = getItems().filter((item) => !item.ref.current?.disabled);\n const triggerIndex = triggerCollection.findIndex((item) => item.ref.current === target);\n const triggerCount = triggerCollection.length;\n if (triggerIndex === -1) return;\n event.preventDefault();\n let nextIndex = triggerIndex;\n const homeIndex = 0;\n const endIndex = triggerCount - 1;\n const moveNext = () => {\n nextIndex = triggerIndex + 1;\n if (nextIndex > endIndex) {\n nextIndex = homeIndex;\n }\n };\n const movePrev = () => {\n nextIndex = triggerIndex - 1;\n if (nextIndex < homeIndex) {\n nextIndex = endIndex;\n }\n };\n switch (event.key) {\n case \"Home\":\n nextIndex = homeIndex;\n break;\n case \"End\":\n nextIndex = endIndex;\n break;\n case \"ArrowRight\":\n if (orientation === \"horizontal\") {\n if (isDirectionLTR) {\n moveNext();\n } else {\n movePrev();\n }\n }\n break;\n case \"ArrowDown\":\n if (orientation === \"vertical\") {\n moveNext();\n }\n break;\n case \"ArrowLeft\":\n if (orientation === \"horizontal\") {\n if (isDirectionLTR) {\n movePrev();\n } else {\n moveNext();\n }\n }\n break;\n case \"ArrowUp\":\n if (orientation === \"vertical\") {\n movePrev();\n }\n break;\n }\n const clampedIndex = nextIndex % triggerCount;\n triggerCollection[clampedIndex].ref.current?.focus();\n });\n return /* @__PURE__ */ jsx(\n AccordionImplProvider,\n {\n scope: __scopeAccordion,\n disabled,\n direction: dir,\n orientation,\n children: /* @__PURE__ */ jsx(Collection.Slot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...accordionProps,\n \"data-orientation\": orientation,\n ref: composedRefs,\n onKeyDown: disabled ? void 0 : handleKeyDown\n }\n ) })\n }\n );\n }\n);\nvar ITEM_NAME = \"AccordionItem\";\nvar [AccordionItemProvider, useAccordionItemContext] = createAccordionContext(ITEM_NAME);\nvar AccordionItem = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, value, ...accordionItemProps } = props;\n const accordionContext = useAccordionContext(ITEM_NAME, __scopeAccordion);\n const valueContext = useAccordionValueContext(ITEM_NAME, __scopeAccordion);\n const collapsibleScope = useCollapsibleScope(__scopeAccordion);\n const triggerId = useId();\n const open = value && valueContext.value.includes(value) || false;\n const disabled = accordionContext.disabled || props.disabled;\n return /* @__PURE__ */ jsx(\n AccordionItemProvider,\n {\n scope: __scopeAccordion,\n open,\n disabled,\n triggerId,\n children: /* @__PURE__ */ jsx(\n CollapsiblePrimitive.Root,\n {\n \"data-orientation\": accordionContext.orientation,\n \"data-state\": getState(open),\n ...collapsibleScope,\n ...accordionItemProps,\n ref: forwardedRef,\n disabled,\n open,\n onOpenChange: (open2) => {\n if (open2) {\n valueContext.onItemOpen(value);\n } else {\n valueContext.onItemClose(value);\n }\n }\n }\n )\n }\n );\n }\n);\nAccordionItem.displayName = ITEM_NAME;\nvar HEADER_NAME = \"AccordionHeader\";\nvar AccordionHeader = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, ...headerProps } = props;\n const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);\n const itemContext = useAccordionItemContext(HEADER_NAME, __scopeAccordion);\n return /* @__PURE__ */ jsx(\n Primitive.h3,\n {\n \"data-orientation\": accordionContext.orientation,\n \"data-state\": getState(itemContext.open),\n \"data-disabled\": itemContext.disabled ? \"\" : void 0,\n ...headerProps,\n ref: forwardedRef\n }\n );\n }\n);\nAccordionHeader.displayName = HEADER_NAME;\nvar TRIGGER_NAME = \"AccordionTrigger\";\nvar AccordionTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, ...triggerProps } = props;\n const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);\n const itemContext = useAccordionItemContext(TRIGGER_NAME, __scopeAccordion);\n const collapsibleContext = useAccordionCollapsibleContext(TRIGGER_NAME, __scopeAccordion);\n const collapsibleScope = useCollapsibleScope(__scopeAccordion);\n return /* @__PURE__ */ jsx(Collection.ItemSlot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsx(\n CollapsiblePrimitive.Trigger,\n {\n \"aria-disabled\": itemContext.open && !collapsibleContext.collapsible || void 0,\n \"data-orientation\": accordionContext.orientation,\n id: itemContext.triggerId,\n ...collapsibleScope,\n ...triggerProps,\n ref: forwardedRef\n }\n ) });\n }\n);\nAccordionTrigger.displayName = TRIGGER_NAME;\nvar CONTENT_NAME = \"AccordionContent\";\nvar AccordionContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, ...contentProps } = props;\n const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);\n const itemContext = useAccordionItemContext(CONTENT_NAME, __scopeAccordion);\n const collapsibleScope = useCollapsibleScope(__scopeAccordion);\n return /* @__PURE__ */ jsx(\n CollapsiblePrimitive.Content,\n {\n role: \"region\",\n \"aria-labelledby\": itemContext.triggerId,\n \"data-orientation\": accordionContext.orientation,\n ...collapsibleScope,\n ...contentProps,\n ref: forwardedRef,\n style: {\n [\"--radix-accordion-content-height\"]: \"var(--radix-collapsible-content-height)\",\n [\"--radix-accordion-content-width\"]: \"var(--radix-collapsible-content-width)\",\n ...props.style\n }\n }\n );\n }\n);\nAccordionContent.displayName = CONTENT_NAME;\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar Root2 = Accordion;\nvar Item = AccordionItem;\nvar Header = AccordionHeader;\nvar Trigger2 = AccordionTrigger;\nvar Content2 = AccordionContent;\nexport {\n Accordion,\n AccordionContent,\n AccordionHeader,\n AccordionItem,\n AccordionTrigger,\n Content2 as Content,\n Header,\n Item,\n Root2 as Root,\n Trigger2 as Trigger,\n createAccordionScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createCollection","createContextScope","createCollapsibleScope","jsx","useControllableState","useComposedRefs","useDirection","composeEventHandlers","Primitive","useId","CollapsiblePrimitive.Root","CollapsiblePrimitive.Trigger","CollapsiblePrimitive.Content"],"mappings":";;;;;;;;;;;;;;AAeA,IAAI,cAAc,GAAG,WAAW;AAChC,IAAI,cAAc,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,CAAC;AACvF,IAAI,CAAC,UAAU,EAAE,aAAa,EAAE,qBAAqB,CAAC,GAAGA,wBAAgB,CAAC,cAAc,CAAC;AACzF,IAAI,CAAC,sBAA4C,CAAC,GAAGC,0BAAkB,CAAC,cAAc,EAAE;AACxF,EAAE,qBAAqB;AACvB,EAAEC;AACF,CAAC,CAAC;AACF,IAAI,mBAAmB,GAAGA,8BAAsB,EAAE;AAC/C,IAAC,SAAS,GAAG,KAAK,CAAC,UAAU;AAChC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK;AAC3B,IAAI,MAAM,EAAE,IAAI,EAAE,GAAG,cAAc,EAAE,GAAG,KAAK;AAC7C,IAAI,MAAM,WAAW,GAA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AA4B;AAClC,MAAM;AACN,QAAQ,IAAI,EAAE,QAAQ;AACtB,QAAQ,iBAAiB,EAAE,WAAW,CAAC,SAAS;AAChD,QAAQ,kBAAkB,EAAE,gBAAgB,CAAC,WAAW;AACxD,QAAQ,GAAG,gBAAgB;AAC3B,QAAQ,GAAG,YAAY;AACvB,QAAQ,GAAG,EAAE,YAAY;AACzB,QAAQ,KAAK,EAAE;AACf,UAAU,CAAC,kCAAkC,GAAG,yCAAyC;AACzF,UAAU,CAAC,iCAAiC,GAAG,wCAAwC;AACvF,UAAU,GAAG,KAAK,CAAC;AACnB;AACA;AACA,KAAK;AACL,EAAE;AACF;AACA,gBAAgB,CAAC,WAAW,GAAG,YAAY;AAC3C,SAAS,QAAQ,CAAC,IAAI,EAAE;AACxB,EAAE,OAAO,IAAI,GAAG,MAAM,GAAG,QAAQ;AACjC;AACG,IAAC,KAAK,GAAG;AACT,IAAC,IAAI,GAAG;AACR,IAAC,MAAM,GAAG;AACV,IAAC,QAAQ,GAAG;AACZ,IAAC,QAAQ,GAAG;;;;;;;;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,173 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var index$3 = require('../../../../../@radix-ui_primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.js');
5
+ var index$5 = require('../../../../../@radix-ui_react-context@1.1.2_@types_react@19.1.17_react@19.1.0/node_modules/@radix-ui/react-context/dist/index.js');
6
+ var index = require('../../../../../@radix-ui_react-use-controllable-state@1.2.2_@types_react@19.1.17_react@19.1.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.js');
7
+ var index$7 = require('../../../../../@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.1.17_react@19.1.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.js');
8
+ var index$6 = require('../../../../../@radix-ui_react-compose-refs@1.1.2_@types_react@19.1.17_react@19.1.0/node_modules/@radix-ui/react-compose-refs/dist/index.js');
9
+ var index$1 = require('../../../../../@radix-ui_react-primitive@2.1.0_@types_react-dom@19.2.1_@types_react@19.1.17__@types_re_f2580de629d71ffa3fb86897883f3213/node_modules/@radix-ui/react-primitive/dist/index.js');
10
+ var index$4 = require('../../../../../@radix-ui_react-presence@1.1.4_@types_react-dom@19.2.1_@types_react@19.1.17__@types_rea_67e75fa808cbea3c87d551df82c7ea7b/node_modules/@radix-ui/react-presence/dist/index.js');
11
+ var index$2 = require('../../../../../@radix-ui_react-id@1.1.1_@types_react@19.1.17_react@19.1.0/node_modules/@radix-ui/react-id/dist/index.js');
12
+ var jsxRuntime = require('react/jsx-runtime');
13
+
14
+ function _interopNamespaceDefault(e) {
15
+ var n = Object.create(null);
16
+ if (e) {
17
+ Object.keys(e).forEach(function (k) {
18
+ if (k !== 'default') {
19
+ var d = Object.getOwnPropertyDescriptor(e, k);
20
+ Object.defineProperty(n, k, d.get ? d : {
21
+ enumerable: true,
22
+ get: function () { return e[k]; }
23
+ });
24
+ }
25
+ });
26
+ }
27
+ n.default = e;
28
+ return Object.freeze(n);
29
+ }
30
+
31
+ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
32
+
33
+ var COLLAPSIBLE_NAME = "Collapsible";
34
+ var [createCollapsibleContext, createCollapsibleScope] = index$5.createContextScope(COLLAPSIBLE_NAME);
35
+ var [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);
36
+ var Collapsible = React__namespace.forwardRef(
37
+ (props, forwardedRef) => {
38
+ const {
39
+ __scopeCollapsible,
40
+ open: openProp,
41
+ defaultOpen,
42
+ disabled,
43
+ onOpenChange,
44
+ ...collapsibleProps
45
+ } = props;
46
+ const [open, setOpen] = index.useControllableState({
47
+ prop: openProp,
48
+ defaultProp: defaultOpen ?? false,
49
+ onChange: onOpenChange,
50
+ caller: COLLAPSIBLE_NAME
51
+ });
52
+ return /* @__PURE__ */ jsxRuntime.jsx(
53
+ CollapsibleProvider,
54
+ {
55
+ scope: __scopeCollapsible,
56
+ disabled,
57
+ contentId: index$2.useId(),
58
+ open,
59
+ onOpenToggle: React__namespace.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
60
+ children: /* @__PURE__ */ jsxRuntime.jsx(
61
+ index$1.Primitive.div,
62
+ {
63
+ "data-state": getState(open),
64
+ "data-disabled": disabled ? "" : void 0,
65
+ ...collapsibleProps,
66
+ ref: forwardedRef
67
+ }
68
+ )
69
+ }
70
+ );
71
+ }
72
+ );
73
+ Collapsible.displayName = COLLAPSIBLE_NAME;
74
+ var TRIGGER_NAME = "CollapsibleTrigger";
75
+ var CollapsibleTrigger = React__namespace.forwardRef(
76
+ (props, forwardedRef) => {
77
+ const { __scopeCollapsible, ...triggerProps } = props;
78
+ const context = useCollapsibleContext(TRIGGER_NAME, __scopeCollapsible);
79
+ return /* @__PURE__ */ jsxRuntime.jsx(
80
+ index$1.Primitive.button,
81
+ {
82
+ type: "button",
83
+ "aria-controls": context.contentId,
84
+ "aria-expanded": context.open || false,
85
+ "data-state": getState(context.open),
86
+ "data-disabled": context.disabled ? "" : void 0,
87
+ disabled: context.disabled,
88
+ ...triggerProps,
89
+ ref: forwardedRef,
90
+ onClick: index$3.composeEventHandlers(props.onClick, context.onOpenToggle)
91
+ }
92
+ );
93
+ }
94
+ );
95
+ CollapsibleTrigger.displayName = TRIGGER_NAME;
96
+ var CONTENT_NAME = "CollapsibleContent";
97
+ var CollapsibleContent = React__namespace.forwardRef(
98
+ (props, forwardedRef) => {
99
+ const { forceMount, ...contentProps } = props;
100
+ const context = useCollapsibleContext(CONTENT_NAME, props.__scopeCollapsible);
101
+ return /* @__PURE__ */ jsxRuntime.jsx(index$4.Presence, { present: forceMount || context.open, children: ({ present }) => /* @__PURE__ */ jsxRuntime.jsx(CollapsibleContentImpl, { ...contentProps, ref: forwardedRef, present }) });
102
+ }
103
+ );
104
+ CollapsibleContent.displayName = CONTENT_NAME;
105
+ var CollapsibleContentImpl = React__namespace.forwardRef((props, forwardedRef) => {
106
+ const { __scopeCollapsible, present, children, ...contentProps } = props;
107
+ const context = useCollapsibleContext(CONTENT_NAME, __scopeCollapsible);
108
+ const [isPresent, setIsPresent] = React__namespace.useState(present);
109
+ const ref = React__namespace.useRef(null);
110
+ const composedRefs = index$6.useComposedRefs(forwardedRef, ref);
111
+ const heightRef = React__namespace.useRef(0);
112
+ const height = heightRef.current;
113
+ const widthRef = React__namespace.useRef(0);
114
+ const width = widthRef.current;
115
+ const isOpen = context.open || isPresent;
116
+ const isMountAnimationPreventedRef = React__namespace.useRef(isOpen);
117
+ const originalStylesRef = React__namespace.useRef(void 0);
118
+ React__namespace.useEffect(() => {
119
+ const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);
120
+ return () => cancelAnimationFrame(rAF);
121
+ }, []);
122
+ index$7.useLayoutEffect(() => {
123
+ const node = ref.current;
124
+ if (node) {
125
+ originalStylesRef.current = originalStylesRef.current || {
126
+ transitionDuration: node.style.transitionDuration,
127
+ animationName: node.style.animationName
128
+ };
129
+ node.style.transitionDuration = "0s";
130
+ node.style.animationName = "none";
131
+ const rect = node.getBoundingClientRect();
132
+ heightRef.current = rect.height;
133
+ widthRef.current = rect.width;
134
+ if (!isMountAnimationPreventedRef.current) {
135
+ node.style.transitionDuration = originalStylesRef.current.transitionDuration;
136
+ node.style.animationName = originalStylesRef.current.animationName;
137
+ }
138
+ setIsPresent(present);
139
+ }
140
+ }, [context.open, present]);
141
+ return /* @__PURE__ */ jsxRuntime.jsx(
142
+ index$1.Primitive.div,
143
+ {
144
+ "data-state": getState(context.open),
145
+ "data-disabled": context.disabled ? "" : void 0,
146
+ id: context.contentId,
147
+ hidden: !isOpen,
148
+ ...contentProps,
149
+ ref: composedRefs,
150
+ style: {
151
+ [`--radix-collapsible-content-height`]: height ? `${height}px` : void 0,
152
+ [`--radix-collapsible-content-width`]: width ? `${width}px` : void 0,
153
+ ...props.style
154
+ },
155
+ children: isOpen && children
156
+ }
157
+ );
158
+ });
159
+ function getState(open) {
160
+ return open ? "open" : "closed";
161
+ }
162
+ var Root = Collapsible;
163
+ var Trigger = CollapsibleTrigger;
164
+ var Content = CollapsibleContent;
165
+
166
+ exports.Collapsible = Collapsible;
167
+ exports.CollapsibleContent = CollapsibleContent;
168
+ exports.CollapsibleTrigger = CollapsibleTrigger;
169
+ exports.Content = Content;
170
+ exports.Root = Root;
171
+ exports.Trigger = Trigger;
172
+ exports.createCollapsibleScope = createCollapsibleScope;
173
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@radix-ui+react-collapsible@1.1.8_@types+react-dom@19.2.1_@types+react@19.1.17__@types+_d84e28844e8116e61b459b615fab358a/node_modules/@radix-ui/react-collapsible/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/collapsible.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { jsx } from \"react/jsx-runtime\";\nvar COLLAPSIBLE_NAME = \"Collapsible\";\nvar [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME);\nvar [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);\nvar Collapsible = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeCollapsible,\n open: openProp,\n defaultOpen,\n disabled,\n onOpenChange,\n ...collapsibleProps\n } = props;\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: COLLAPSIBLE_NAME\n });\n return /* @__PURE__ */ jsx(\n CollapsibleProvider,\n {\n scope: __scopeCollapsible,\n disabled,\n contentId: useId(),\n open,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(open),\n \"data-disabled\": disabled ? \"\" : void 0,\n ...collapsibleProps,\n ref: forwardedRef\n }\n )\n }\n );\n }\n);\nCollapsible.displayName = COLLAPSIBLE_NAME;\nvar TRIGGER_NAME = \"CollapsibleTrigger\";\nvar CollapsibleTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeCollapsible, ...triggerProps } = props;\n const context = useCollapsibleContext(TRIGGER_NAME, __scopeCollapsible);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-controls\": context.contentId,\n \"aria-expanded\": context.open || false,\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n disabled: context.disabled,\n ...triggerProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nCollapsibleTrigger.displayName = TRIGGER_NAME;\nvar CONTENT_NAME = \"CollapsibleContent\";\nvar CollapsibleContent = React.forwardRef(\n (props, forwardedRef) => {\n const { forceMount, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, props.__scopeCollapsible);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: ({ present }) => /* @__PURE__ */ jsx(CollapsibleContentImpl, { ...contentProps, ref: forwardedRef, present }) });\n }\n);\nCollapsibleContent.displayName = CONTENT_NAME;\nvar CollapsibleContentImpl = React.forwardRef((props, forwardedRef) => {\n const { __scopeCollapsible, present, children, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, __scopeCollapsible);\n const [isPresent, setIsPresent] = React.useState(present);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const heightRef = React.useRef(0);\n const height = heightRef.current;\n const widthRef = React.useRef(0);\n const width = widthRef.current;\n const isOpen = context.open || isPresent;\n const isMountAnimationPreventedRef = React.useRef(isOpen);\n const originalStylesRef = React.useRef(void 0);\n React.useEffect(() => {\n const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);\n return () => cancelAnimationFrame(rAF);\n }, []);\n useLayoutEffect(() => {\n const node = ref.current;\n if (node) {\n originalStylesRef.current = originalStylesRef.current || {\n transitionDuration: node.style.transitionDuration,\n animationName: node.style.animationName\n };\n node.style.transitionDuration = \"0s\";\n node.style.animationName = \"none\";\n const rect = node.getBoundingClientRect();\n heightRef.current = rect.height;\n widthRef.current = rect.width;\n if (!isMountAnimationPreventedRef.current) {\n node.style.transitionDuration = originalStylesRef.current.transitionDuration;\n node.style.animationName = originalStylesRef.current.animationName;\n }\n setIsPresent(present);\n }\n }, [context.open, present]);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n id: context.contentId,\n hidden: !isOpen,\n ...contentProps,\n ref: composedRefs,\n style: {\n [`--radix-collapsible-content-height`]: height ? `${height}px` : void 0,\n [`--radix-collapsible-content-width`]: width ? `${width}px` : void 0,\n ...props.style\n },\n children: isOpen && children\n }\n );\n});\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar Root = Collapsible;\nvar Trigger = CollapsibleTrigger;\nvar Content = CollapsibleContent;\nexport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n Content,\n Root,\n Trigger,\n createCollapsibleScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContextScope","React","useControllableState","jsx","useId","Primitive","composeEventHandlers","Presence","useComposedRefs","useLayoutEffect"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,IAAI,gBAAgB,GAAG,aAAa;AACjC,IAAC,CAAC,wBAAwB,EAAE,sBAAsB,CAAC,GAAGA,0BAAkB,CAAC,gBAAgB;AAC5F,IAAI,CAAC,mBAAmB,EAAE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