@raystack/apsara 0.32.0 → 0.33.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 (229) hide show
  1. package/dist/node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.cjs +92 -0
  2. package/dist/node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.cjs.map +1 -1
  3. package/dist/node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js +89 -1
  4. package/dist/node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js.map +1 -1
  5. package/dist/node_modules/.pnpm/@tanstack_react-table@8.9.2_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@tanstack/react-table/build/lib/index.cjs +1 -0
  6. package/dist/node_modules/.pnpm/@tanstack_react-table@8.9.2_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@tanstack/react-table/build/lib/index.cjs.map +1 -1
  7. package/dist/node_modules/.pnpm/@tanstack_react-table@8.9.2_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@tanstack/react-table/build/lib/index.js +1 -1
  8. package/dist/node_modules/.pnpm/@tanstack_table-core@8.9.2/node_modules/@tanstack/table-core/build/lib/index.cjs +20 -0
  9. package/dist/node_modules/.pnpm/@tanstack_table-core@8.9.2/node_modules/@tanstack/table-core/build/lib/index.cjs.map +1 -1
  10. package/dist/node_modules/.pnpm/@tanstack_table-core@8.9.2/node_modules/@tanstack/table-core/build/lib/index.js +20 -1
  11. package/dist/node_modules/.pnpm/@tanstack_table-core@8.9.2/node_modules/@tanstack/table-core/build/lib/index.js.map +1 -1
  12. package/dist/sidebar/sidebar.cjs +6 -6
  13. package/dist/sidebar/sidebar.cjs.map +1 -1
  14. package/dist/sidebar/sidebar.d.ts +4 -4
  15. package/dist/sidebar/sidebar.js +6 -6
  16. package/dist/sidebar/sidebar.js.map +1 -1
  17. package/dist/style.css +1 -1
  18. package/dist/v1/_virtual/isSameOrAfter.cjs +6 -0
  19. package/dist/v1/_virtual/isSameOrAfter.cjs.map +1 -0
  20. package/dist/v1/_virtual/isSameOrAfter.js +4 -0
  21. package/dist/v1/_virtual/isSameOrAfter.js.map +1 -0
  22. package/dist/v1/_virtual/isSameOrBefore.cjs +6 -0
  23. package/dist/v1/_virtual/isSameOrBefore.cjs.map +1 -0
  24. package/dist/v1/_virtual/isSameOrBefore.js +4 -0
  25. package/dist/v1/_virtual/isSameOrBefore.js.map +1 -0
  26. package/dist/v1/components/calendar/calendar.cjs +1 -1
  27. package/dist/v1/components/calendar/calendar.cjs.map +1 -1
  28. package/dist/v1/components/calendar/calendar.js +1 -1
  29. package/dist/v1/components/calendar/calendar.js.map +1 -1
  30. package/dist/v1/components/calendar/date-picker.cjs +26 -17
  31. package/dist/v1/components/calendar/date-picker.cjs.map +1 -1
  32. package/dist/v1/components/calendar/date-picker.d.ts.map +1 -1
  33. package/dist/v1/components/calendar/date-picker.js +26 -17
  34. package/dist/v1/components/calendar/date-picker.js.map +1 -1
  35. package/dist/v1/components/chip/chip.cjs +3 -3
  36. package/dist/v1/components/chip/chip.cjs.map +1 -1
  37. package/dist/v1/components/chip/chip.d.ts +2 -1
  38. package/dist/v1/components/chip/chip.d.ts.map +1 -1
  39. package/dist/v1/components/chip/chip.js +3 -3
  40. package/dist/v1/components/chip/chip.js.map +1 -1
  41. package/dist/v1/components/data-table/components/content.cjs +81 -0
  42. package/dist/v1/components/data-table/components/content.cjs.map +1 -0
  43. package/dist/v1/components/data-table/components/content.d.ts +3 -0
  44. package/dist/v1/components/data-table/components/content.d.ts.map +1 -0
  45. package/dist/v1/components/data-table/components/content.js +79 -0
  46. package/dist/v1/components/data-table/components/content.js.map +1 -0
  47. package/dist/v1/components/data-table/components/display-properties.cjs +14 -0
  48. package/dist/v1/components/data-table/components/display-properties.cjs.map +1 -0
  49. package/dist/v1/components/data-table/components/display-properties.d.ts +5 -0
  50. package/dist/v1/components/data-table/components/display-properties.d.ts.map +1 -0
  51. package/dist/v1/components/data-table/components/display-properties.js +12 -0
  52. package/dist/v1/components/data-table/components/display-properties.js.map +1 -0
  53. package/dist/v1/components/data-table/components/display-settings.cjs +51 -0
  54. package/dist/v1/components/data-table/components/display-settings.cjs.map +1 -0
  55. package/dist/v1/components/data-table/components/display-settings.d.ts +2 -0
  56. package/dist/v1/components/data-table/components/display-settings.d.ts.map +1 -0
  57. package/dist/v1/components/data-table/components/display-settings.js +49 -0
  58. package/dist/v1/components/data-table/components/display-settings.js.map +1 -0
  59. package/dist/v1/components/data-table/components/filters.cjs +44 -0
  60. package/dist/v1/components/data-table/components/filters.cjs.map +1 -0
  61. package/dist/v1/components/data-table/components/filters.d.ts +2 -0
  62. package/dist/v1/components/data-table/components/filters.d.ts.map +1 -0
  63. package/dist/v1/components/data-table/components/filters.js +42 -0
  64. package/dist/v1/components/data-table/components/filters.js.map +1 -0
  65. package/dist/v1/components/data-table/components/grouping.cjs +31 -0
  66. package/dist/v1/components/data-table/components/grouping.cjs.map +1 -0
  67. package/dist/v1/components/data-table/components/grouping.d.ts +9 -0
  68. package/dist/v1/components/data-table/components/grouping.d.ts.map +1 -0
  69. package/dist/v1/components/data-table/components/grouping.js +29 -0
  70. package/dist/v1/components/data-table/components/grouping.js.map +1 -0
  71. package/dist/v1/components/data-table/components/ordering.cjs +24 -0
  72. package/dist/v1/components/data-table/components/ordering.cjs.map +1 -0
  73. package/dist/v1/components/data-table/components/ordering.d.ts +8 -0
  74. package/dist/v1/components/data-table/components/ordering.d.ts.map +1 -0
  75. package/dist/v1/components/data-table/components/ordering.js +22 -0
  76. package/dist/v1/components/data-table/components/ordering.js.map +1 -0
  77. package/dist/v1/components/data-table/components/search.cjs +30 -0
  78. package/dist/v1/components/data-table/components/search.cjs.map +1 -0
  79. package/dist/v1/components/data-table/components/search.d.ts +3 -0
  80. package/dist/v1/components/data-table/components/search.d.ts.map +1 -0
  81. package/dist/v1/components/data-table/components/search.js +28 -0
  82. package/dist/v1/components/data-table/components/search.js.map +1 -0
  83. package/dist/v1/components/data-table/components/toolbar.cjs +15 -0
  84. package/dist/v1/components/data-table/components/toolbar.cjs.map +1 -0
  85. package/dist/v1/components/data-table/components/toolbar.d.ts +4 -0
  86. package/dist/v1/components/data-table/components/toolbar.d.ts.map +1 -0
  87. package/dist/v1/components/data-table/components/toolbar.js +13 -0
  88. package/dist/v1/components/data-table/components/toolbar.js.map +1 -0
  89. package/dist/v1/components/data-table/context.cjs +8 -0
  90. package/dist/v1/components/data-table/context.cjs.map +1 -0
  91. package/dist/v1/components/data-table/context.d.ts +3 -0
  92. package/dist/v1/components/data-table/context.d.ts.map +1 -0
  93. package/dist/v1/components/data-table/context.js +6 -0
  94. package/dist/v1/components/data-table/context.js.map +1 -0
  95. package/dist/v1/components/data-table/data-table.cjs +87 -0
  96. package/dist/v1/components/data-table/data-table.cjs.map +1 -0
  97. package/dist/v1/components/data-table/data-table.d.ts +12 -0
  98. package/dist/v1/components/data-table/data-table.d.ts.map +1 -0
  99. package/dist/v1/components/data-table/data-table.js +85 -0
  100. package/dist/v1/components/data-table/data-table.js.map +1 -0
  101. package/dist/v1/components/data-table/data-table.module.css.cjs +8 -0
  102. package/dist/v1/components/data-table/data-table.module.css.cjs.map +1 -0
  103. package/dist/v1/components/data-table/data-table.module.css.js +4 -0
  104. package/dist/v1/components/data-table/data-table.module.css.js.map +1 -0
  105. package/dist/v1/components/data-table/data-table.types.cjs +9 -0
  106. package/dist/v1/components/data-table/data-table.types.cjs.map +1 -0
  107. package/dist/v1/components/data-table/data-table.types.d.ts +102 -0
  108. package/dist/v1/components/data-table/data-table.types.d.ts.map +1 -0
  109. package/dist/v1/components/data-table/data-table.types.js +7 -0
  110. package/dist/v1/components/data-table/data-table.types.js.map +1 -0
  111. package/dist/v1/components/data-table/hooks/useDataTable.cjs +15 -0
  112. package/dist/v1/components/data-table/hooks/useDataTable.cjs.map +1 -0
  113. package/dist/v1/components/data-table/hooks/useDataTable.d.ts +2 -0
  114. package/dist/v1/components/data-table/hooks/useDataTable.d.ts.map +1 -0
  115. package/dist/v1/components/data-table/hooks/useDataTable.js +13 -0
  116. package/dist/v1/components/data-table/hooks/useDataTable.js.map +1 -0
  117. package/dist/v1/components/data-table/hooks/useFilters.cjs +78 -0
  118. package/dist/v1/components/data-table/hooks/useFilters.cjs.map +1 -0
  119. package/dist/v1/components/data-table/hooks/useFilters.d.ts +9 -0
  120. package/dist/v1/components/data-table/hooks/useFilters.d.ts.map +1 -0
  121. package/dist/v1/components/data-table/hooks/useFilters.js +76 -0
  122. package/dist/v1/components/data-table/hooks/useFilters.js.map +1 -0
  123. package/dist/v1/components/data-table/index.d.ts +4 -0
  124. package/dist/v1/components/data-table/index.d.ts.map +1 -0
  125. package/dist/v1/components/data-table/utils/filter-operations.cjs +83 -0
  126. package/dist/v1/components/data-table/utils/filter-operations.cjs.map +1 -0
  127. package/dist/v1/components/data-table/utils/filter-operations.d.ts +11 -0
  128. package/dist/v1/components/data-table/utils/filter-operations.d.ts.map +1 -0
  129. package/dist/v1/components/data-table/utils/filter-operations.js +80 -0
  130. package/dist/v1/components/data-table/utils/filter-operations.js.map +1 -0
  131. package/dist/v1/components/data-table/utils/index.cjs +156 -0
  132. package/dist/v1/components/data-table/utils/index.cjs.map +1 -0
  133. package/dist/v1/components/data-table/utils/index.d.ts +14 -0
  134. package/dist/v1/components/data-table/utils/index.d.ts.map +1 -0
  135. package/dist/v1/components/data-table/utils/index.js +147 -0
  136. package/dist/v1/components/data-table/utils/index.js.map +1 -0
  137. package/dist/v1/components/dialog/dialog.cjs +4 -3
  138. package/dist/v1/components/dialog/dialog.cjs.map +1 -1
  139. package/dist/v1/components/dialog/dialog.d.ts +9 -2
  140. package/dist/v1/components/dialog/dialog.d.ts.map +1 -1
  141. package/dist/v1/components/dialog/dialog.js +5 -4
  142. package/dist/v1/components/dialog/dialog.js.map +1 -1
  143. package/dist/v1/components/dialog/dialog.module.css.cjs +1 -1
  144. package/dist/v1/components/dialog/dialog.module.css.js +1 -1
  145. package/dist/v1/components/filter-chip/filter-chip.cjs +28 -19
  146. package/dist/v1/components/filter-chip/filter-chip.cjs.map +1 -1
  147. package/dist/v1/components/filter-chip/filter-chip.d.ts +3 -7
  148. package/dist/v1/components/filter-chip/filter-chip.d.ts.map +1 -1
  149. package/dist/v1/components/filter-chip/filter-chip.js +28 -19
  150. package/dist/v1/components/filter-chip/filter-chip.js.map +1 -1
  151. package/dist/v1/components/icons/assets/filter.svg.cjs +41 -0
  152. package/dist/v1/components/icons/assets/filter.svg.cjs.map +1 -0
  153. package/dist/v1/components/icons/assets/filter.svg.js +20 -0
  154. package/dist/v1/components/icons/assets/filter.svg.js.map +1 -0
  155. package/dist/v1/components/icons/icons.d.ts +3 -0
  156. package/dist/v1/components/icons/icons.d.ts.map +1 -0
  157. package/dist/v1/components/icons/index.d.ts +2 -0
  158. package/dist/v1/components/icons/index.d.ts.map +1 -0
  159. package/dist/v1/components/input-field/input-field.cjs +1 -1
  160. package/dist/v1/components/input-field/input-field.cjs.map +1 -1
  161. package/dist/v1/components/input-field/input-field.js +1 -1
  162. package/dist/v1/components/input-field/input-field.js.map +1 -1
  163. package/dist/v1/components/sidebar/index.d.ts +2 -0
  164. package/dist/v1/components/sidebar/index.d.ts.map +1 -0
  165. package/dist/v1/components/sidebar/sidebar.cjs +46 -0
  166. package/dist/v1/components/sidebar/sidebar.cjs.map +1 -0
  167. package/dist/v1/components/sidebar/sidebar.d.ts +61 -0
  168. package/dist/v1/components/sidebar/sidebar.d.ts.map +1 -0
  169. package/dist/v1/components/sidebar/sidebar.js +44 -0
  170. package/dist/v1/components/sidebar/sidebar.js.map +1 -0
  171. package/dist/v1/components/sidebar/sidebar.module.css.cjs +8 -0
  172. package/dist/v1/components/sidebar/sidebar.module.css.cjs.map +1 -0
  173. package/dist/v1/components/sidebar/sidebar.module.css.js +4 -0
  174. package/dist/v1/components/sidebar/sidebar.module.css.js.map +1 -0
  175. package/dist/v1/components/table/table.cjs.map +1 -1
  176. package/dist/v1/components/table/table.d.ts +2 -2
  177. package/dist/v1/components/table/table.js.map +1 -1
  178. package/dist/v1/components/tooltip/tooltip.cjs +2 -2
  179. package/dist/v1/components/tooltip/tooltip.cjs.map +1 -1
  180. package/dist/v1/components/tooltip/tooltip.d.ts +1 -1
  181. package/dist/v1/components/tooltip/tooltip.d.ts.map +1 -1
  182. package/dist/v1/components/tooltip/tooltip.js +2 -2
  183. package/dist/v1/components/tooltip/tooltip.js.map +1 -1
  184. package/dist/v1/index.cjs +6 -2
  185. package/dist/v1/index.cjs.map +1 -1
  186. package/dist/v1/index.d.ts +2 -1
  187. package/dist/v1/index.d.ts.map +1 -1
  188. package/dist/v1/index.js +4 -1
  189. package/dist/v1/index.js.map +1 -1
  190. package/dist/v1/node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.cjs +92 -0
  191. package/dist/v1/node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.cjs.map +1 -1
  192. package/dist/v1/node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js +89 -1
  193. package/dist/v1/node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js.map +1 -1
  194. package/dist/v1/node_modules/.pnpm/@tanstack_react-table@8.9.2_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@tanstack/react-table/build/lib/index.cjs +131 -0
  195. package/dist/v1/node_modules/.pnpm/@tanstack_react-table@8.9.2_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@tanstack/react-table/build/lib/index.cjs.map +1 -0
  196. package/dist/v1/node_modules/.pnpm/@tanstack_react-table@8.9.2_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@tanstack/react-table/build/lib/index.js +72 -0
  197. package/dist/v1/node_modules/.pnpm/@tanstack_react-table@8.9.2_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@tanstack/react-table/build/lib/index.js.map +1 -0
  198. package/dist/v1/node_modules/.pnpm/@tanstack_table-core@8.9.2/node_modules/@tanstack/table-core/build/lib/index.cjs +3338 -0
  199. package/dist/v1/node_modules/.pnpm/@tanstack_table-core@8.9.2/node_modules/@tanstack/table-core/build/lib/index.cjs.map +1 -0
  200. package/dist/v1/node_modules/.pnpm/@tanstack_table-core@8.9.2/node_modules/@tanstack/table-core/build/lib/index.js +3299 -0
  201. package/dist/v1/node_modules/.pnpm/@tanstack_table-core@8.9.2/node_modules/@tanstack/table-core/build/lib/index.js.map +1 -0
  202. package/dist/v1/node_modules/.pnpm/dayjs@1.11.11/node_modules/dayjs/plugin/isSameOrAfter.cjs +16 -0
  203. package/dist/v1/node_modules/.pnpm/dayjs@1.11.11/node_modules/dayjs/plugin/isSameOrAfter.cjs.map +1 -0
  204. package/dist/v1/node_modules/.pnpm/dayjs@1.11.11/node_modules/dayjs/plugin/isSameOrAfter.js +12 -0
  205. package/dist/v1/node_modules/.pnpm/dayjs@1.11.11/node_modules/dayjs/plugin/isSameOrAfter.js.map +1 -0
  206. package/dist/v1/node_modules/.pnpm/dayjs@1.11.11/node_modules/dayjs/plugin/isSameOrBefore.cjs +16 -0
  207. package/dist/v1/node_modules/.pnpm/dayjs@1.11.11/node_modules/dayjs/plugin/isSameOrBefore.cjs.map +1 -0
  208. package/dist/v1/node_modules/.pnpm/dayjs@1.11.11/node_modules/dayjs/plugin/isSameOrBefore.js +12 -0
  209. package/dist/v1/node_modules/.pnpm/dayjs@1.11.11/node_modules/dayjs/plugin/isSameOrBefore.js.map +1 -0
  210. package/dist/v1/style.css +1 -1
  211. package/dist/v1/types/filters.cjs +39 -0
  212. package/dist/v1/types/filters.cjs.map +1 -0
  213. package/dist/v1/types/filters.d.ts +42 -0
  214. package/dist/v1/types/filters.d.ts.map +1 -0
  215. package/dist/v1/types/filters.js +36 -0
  216. package/dist/v1/types/filters.js.map +1 -0
  217. package/package.json +2 -1
  218. package/dist/v1/components/sidepanel/index.d.ts +0 -2
  219. package/dist/v1/components/sidepanel/index.d.ts.map +0 -1
  220. package/dist/v1/components/sidepanel/sidepanel.cjs +0 -44
  221. package/dist/v1/components/sidepanel/sidepanel.cjs.map +0 -1
  222. package/dist/v1/components/sidepanel/sidepanel.d.ts +0 -51
  223. package/dist/v1/components/sidepanel/sidepanel.d.ts.map +0 -1
  224. package/dist/v1/components/sidepanel/sidepanel.js +0 -42
  225. package/dist/v1/components/sidepanel/sidepanel.js.map +0 -1
  226. package/dist/v1/components/sidepanel/sidepanel.module.css.cjs +0 -8
  227. package/dist/v1/components/sidepanel/sidepanel.module.css.cjs.map +0 -1
  228. package/dist/v1/components/sidepanel/sidepanel.module.css.js +0 -4
  229. package/dist/v1/components/sidepanel/sidepanel.module.css.js.map +0 -1
@@ -0,0 +1,39 @@
1
+ 'use strict';
2
+
3
+ const FilterType = {
4
+ number: "number",
5
+ text: "text",
6
+ date: "date",
7
+ select: "select",
8
+ };
9
+ const filterOperators = {
10
+ number: [
11
+ { value: "eq", label: "is" },
12
+ { value: "neq", label: "is not" },
13
+ { value: "lt", label: "less than" },
14
+ { value: "lte", label: "less than or equal" },
15
+ { value: "gt", label: "greater than" },
16
+ { value: "gte", label: "greater than or equal" },
17
+ ],
18
+ text: [
19
+ { value: "eq", label: "is" },
20
+ { value: "neq", label: "is not" },
21
+ { value: "like", label: "contains" },
22
+ ],
23
+ date: [
24
+ { value: "eq", label: "is" },
25
+ { value: "neq", label: "is not" },
26
+ { value: "lt", label: "is before" },
27
+ { value: "lte", label: "is on or before" },
28
+ { value: "gt", label: "is after" },
29
+ { value: "gte", label: "is on or after" },
30
+ ],
31
+ select: [
32
+ { value: "eq", label: "is" },
33
+ { value: "neq", label: "is not" },
34
+ ],
35
+ };
36
+
37
+ exports.FilterType = FilterType;
38
+ exports.filterOperators = filterOperators;
39
+ //# sourceMappingURL=filters.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filters.cjs","sources":["../../../v1/types/filters.tsx"],"sourcesContent":["export const FilterType = {\n number: \"number\",\n text: \"text\",\n date: \"date\",\n select: \"select\",\n} as const;\n\nexport type FilterValueType = string | number | boolean;\n\nexport interface FilterValue {\n value?: FilterValueType;\n // values?: Array<string | number>;\n date?: Date;\n // dateRange?: DateRange;\n}\n\nexport type FilterOperation = {\n value: string;\n label: string;\n};\n\nexport type NumberFilterOperatorType =\n | \"eq\"\n | \"neq\"\n | \"lt\"\n | \"lte\"\n | \"gt\"\n | \"gte\";\nexport type TextFilterOperatorType = \"eq\" | \"neq\" | \"like\";\nexport type DateFilterOperatorType = \"eq\" | \"neq\" | \"lt\" | \"lte\" | \"gt\" | \"gte\";\nexport type SelectFilterOperatorType = \"eq\" | \"neq\";\n\nexport type FilterOperatorTypes =\n | NumberFilterOperatorType\n | TextFilterOperatorType\n | DateFilterOperatorType\n | SelectFilterOperatorType;\n\nexport type FilterOperator<T> = {\n value: T;\n label: string;\n};\n\nexport type FilterOperatorsMap = {\n number: FilterOperator<NumberFilterOperatorType>[];\n text: FilterOperator<TextFilterOperatorType>[];\n date: FilterOperator<DateFilterOperatorType>[];\n select: FilterOperator<SelectFilterOperatorType>[];\n};\n\nexport type FilterTypes = keyof typeof FilterType;\n\nexport const filterOperators: FilterOperatorsMap = {\n number: [\n { value: \"eq\", label: \"is\" },\n { value: \"neq\", label: \"is not\" },\n { value: \"lt\", label: \"less than\" },\n { value: \"lte\", label: \"less than or equal\" },\n { value: \"gt\", label: \"greater than\" },\n { value: \"gte\", label: \"greater than or equal\" },\n ],\n text: [\n { value: \"eq\", label: \"is\" },\n { value: \"neq\", label: \"is not\" },\n { value: \"like\", label: \"contains\" },\n ],\n date: [\n { value: \"eq\", label: \"is\" },\n { value: \"neq\", label: \"is not\" },\n { value: \"lt\", label: \"is before\" },\n { value: \"lte\", label: \"is on or before\" },\n { value: \"gt\", label: \"is after\" },\n { value: \"gte\", label: \"is on or after\" },\n ],\n select: [\n { value: \"eq\", label: \"is\" },\n { value: \"neq\", label: \"is not\" },\n ],\n} as const;\n\nexport type Filter = {\n type: FilterTypes;\n filterOperation: string;\n value: string;\n};\n\nexport interface FilterSelectOption {\n value: FilterValueType;\n label: string;\n}\n"],"names":[],"mappings":";;AAAa,MAAA,UAAU,GAAG;AACxB,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,MAAM,EAAE,QAAQ;EACP;AA+CE,MAAA,eAAe,GAAuB;AACjD,IAAA,MAAM,EAAE;AACN,QAAA,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE;AAC5B,QAAA,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE;AACjC,QAAA,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE;AACnC,QAAA,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,oBAAoB,EAAE;AAC7C,QAAA,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,cAAc,EAAE;AACtC,QAAA,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,uBAAuB,EAAE;AACjD,KAAA;AACD,IAAA,IAAI,EAAE;AACJ,QAAA,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE;AAC5B,QAAA,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE;AACjC,QAAA,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE;AACrC,KAAA;AACD,IAAA,IAAI,EAAE;AACJ,QAAA,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE;AAC5B,QAAA,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE;AACjC,QAAA,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE;AACnC,QAAA,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE;AAC1C,QAAA,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE;AAClC,QAAA,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,gBAAgB,EAAE;AAC1C,KAAA;AACD,IAAA,MAAM,EAAE;AACN,QAAA,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE;AAC5B,QAAA,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE;AAClC,KAAA;;;;;;"}
@@ -0,0 +1,42 @@
1
+ export declare const FilterType: {
2
+ readonly number: "number";
3
+ readonly text: "text";
4
+ readonly date: "date";
5
+ readonly select: "select";
6
+ };
7
+ export type FilterValueType = string | number | boolean;
8
+ export interface FilterValue {
9
+ value?: FilterValueType;
10
+ date?: Date;
11
+ }
12
+ export type FilterOperation = {
13
+ value: string;
14
+ label: string;
15
+ };
16
+ export type NumberFilterOperatorType = "eq" | "neq" | "lt" | "lte" | "gt" | "gte";
17
+ export type TextFilterOperatorType = "eq" | "neq" | "like";
18
+ export type DateFilterOperatorType = "eq" | "neq" | "lt" | "lte" | "gt" | "gte";
19
+ export type SelectFilterOperatorType = "eq" | "neq";
20
+ export type FilterOperatorTypes = NumberFilterOperatorType | TextFilterOperatorType | DateFilterOperatorType | SelectFilterOperatorType;
21
+ export type FilterOperator<T> = {
22
+ value: T;
23
+ label: string;
24
+ };
25
+ export type FilterOperatorsMap = {
26
+ number: FilterOperator<NumberFilterOperatorType>[];
27
+ text: FilterOperator<TextFilterOperatorType>[];
28
+ date: FilterOperator<DateFilterOperatorType>[];
29
+ select: FilterOperator<SelectFilterOperatorType>[];
30
+ };
31
+ export type FilterTypes = keyof typeof FilterType;
32
+ export declare const filterOperators: FilterOperatorsMap;
33
+ export type Filter = {
34
+ type: FilterTypes;
35
+ filterOperation: string;
36
+ value: string;
37
+ };
38
+ export interface FilterSelectOption {
39
+ value: FilterValueType;
40
+ label: string;
41
+ }
42
+ //# sourceMappingURL=filters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../v1/types/filters.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;CAKb,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAExD,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,eAAe,CAAC;IAExB,IAAI,CAAC,EAAE,IAAI,CAAC;CAEb;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAChC,IAAI,GACJ,KAAK,GACL,IAAI,GACJ,KAAK,GACL,IAAI,GACJ,KAAK,CAAC;AACV,MAAM,MAAM,sBAAsB,GAAG,IAAI,GAAG,KAAK,GAAG,MAAM,CAAC;AAC3D,MAAM,MAAM,sBAAsB,GAAG,IAAI,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,CAAC;AAChF,MAAM,MAAM,wBAAwB,GAAG,IAAI,GAAG,KAAK,CAAC;AAEpD,MAAM,MAAM,mBAAmB,GAC3B,wBAAwB,GACxB,sBAAsB,GACtB,sBAAsB,GACtB,wBAAwB,CAAC;AAE7B,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI;IAC9B,KAAK,EAAE,CAAC,CAAC;IACT,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,cAAc,CAAC,wBAAwB,CAAC,EAAE,CAAC;IACnD,IAAI,EAAE,cAAc,CAAC,sBAAsB,CAAC,EAAE,CAAC;IAC/C,IAAI,EAAE,cAAc,CAAC,sBAAsB,CAAC,EAAE,CAAC;IAC/C,MAAM,EAAE,cAAc,CAAC,wBAAwB,CAAC,EAAE,CAAC;CACpD,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,UAAU,CAAC;AAElD,eAAO,MAAM,eAAe,EAAE,kBA0BpB,CAAC;AAEX,MAAM,MAAM,MAAM,GAAG;IACnB,IAAI,EAAE,WAAW,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,eAAe,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,36 @@
1
+ const FilterType = {
2
+ number: "number",
3
+ text: "text",
4
+ date: "date",
5
+ select: "select",
6
+ };
7
+ const filterOperators = {
8
+ number: [
9
+ { value: "eq", label: "is" },
10
+ { value: "neq", label: "is not" },
11
+ { value: "lt", label: "less than" },
12
+ { value: "lte", label: "less than or equal" },
13
+ { value: "gt", label: "greater than" },
14
+ { value: "gte", label: "greater than or equal" },
15
+ ],
16
+ text: [
17
+ { value: "eq", label: "is" },
18
+ { value: "neq", label: "is not" },
19
+ { value: "like", label: "contains" },
20
+ ],
21
+ date: [
22
+ { value: "eq", label: "is" },
23
+ { value: "neq", label: "is not" },
24
+ { value: "lt", label: "is before" },
25
+ { value: "lte", label: "is on or before" },
26
+ { value: "gt", label: "is after" },
27
+ { value: "gte", label: "is on or after" },
28
+ ],
29
+ select: [
30
+ { value: "eq", label: "is" },
31
+ { value: "neq", label: "is not" },
32
+ ],
33
+ };
34
+
35
+ export { FilterType, filterOperators };
36
+ //# sourceMappingURL=filters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filters.js","sources":["../../../v1/types/filters.tsx"],"sourcesContent":["export const FilterType = {\n number: \"number\",\n text: \"text\",\n date: \"date\",\n select: \"select\",\n} as const;\n\nexport type FilterValueType = string | number | boolean;\n\nexport interface FilterValue {\n value?: FilterValueType;\n // values?: Array<string | number>;\n date?: Date;\n // dateRange?: DateRange;\n}\n\nexport type FilterOperation = {\n value: string;\n label: string;\n};\n\nexport type NumberFilterOperatorType =\n | \"eq\"\n | \"neq\"\n | \"lt\"\n | \"lte\"\n | \"gt\"\n | \"gte\";\nexport type TextFilterOperatorType = \"eq\" | \"neq\" | \"like\";\nexport type DateFilterOperatorType = \"eq\" | \"neq\" | \"lt\" | \"lte\" | \"gt\" | \"gte\";\nexport type SelectFilterOperatorType = \"eq\" | \"neq\";\n\nexport type FilterOperatorTypes =\n | NumberFilterOperatorType\n | TextFilterOperatorType\n | DateFilterOperatorType\n | SelectFilterOperatorType;\n\nexport type FilterOperator<T> = {\n value: T;\n label: string;\n};\n\nexport type FilterOperatorsMap = {\n number: FilterOperator<NumberFilterOperatorType>[];\n text: FilterOperator<TextFilterOperatorType>[];\n date: FilterOperator<DateFilterOperatorType>[];\n select: FilterOperator<SelectFilterOperatorType>[];\n};\n\nexport type FilterTypes = keyof typeof FilterType;\n\nexport const filterOperators: FilterOperatorsMap = {\n number: [\n { value: \"eq\", label: \"is\" },\n { value: \"neq\", label: \"is not\" },\n { value: \"lt\", label: \"less than\" },\n { value: \"lte\", label: \"less than or equal\" },\n { value: \"gt\", label: \"greater than\" },\n { value: \"gte\", label: \"greater than or equal\" },\n ],\n text: [\n { value: \"eq\", label: \"is\" },\n { value: \"neq\", label: \"is not\" },\n { value: \"like\", label: \"contains\" },\n ],\n date: [\n { value: \"eq\", label: \"is\" },\n { value: \"neq\", label: \"is not\" },\n { value: \"lt\", label: \"is before\" },\n { value: \"lte\", label: \"is on or before\" },\n { value: \"gt\", label: \"is after\" },\n { value: \"gte\", label: \"is on or after\" },\n ],\n select: [\n { value: \"eq\", label: \"is\" },\n { value: \"neq\", label: \"is not\" },\n ],\n} as const;\n\nexport type Filter = {\n type: FilterTypes;\n filterOperation: string;\n value: string;\n};\n\nexport interface FilterSelectOption {\n value: FilterValueType;\n label: string;\n}\n"],"names":[],"mappings":"AAAa,MAAA,UAAU,GAAG;AACxB,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,MAAM,EAAE,QAAQ;EACP;AA+CE,MAAA,eAAe,GAAuB;AACjD,IAAA,MAAM,EAAE;AACN,QAAA,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE;AAC5B,QAAA,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE;AACjC,QAAA,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE;AACnC,QAAA,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,oBAAoB,EAAE;AAC7C,QAAA,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,cAAc,EAAE;AACtC,QAAA,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,uBAAuB,EAAE;AACjD,KAAA;AACD,IAAA,IAAI,EAAE;AACJ,QAAA,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE;AAC5B,QAAA,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE;AACjC,QAAA,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE;AACrC,KAAA;AACD,IAAA,IAAI,EAAE;AACJ,QAAA,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE;AAC5B,QAAA,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE;AACjC,QAAA,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE;AACnC,QAAA,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE;AAC1C,QAAA,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE;AAClC,QAAA,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,gBAAgB,EAAE;AAC1C,KAAA;AACD,IAAA,MAAM,EAAE;AACN,QAAA,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE;AAC5B,QAAA,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE;AAClC,KAAA;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raystack/apsara",
3
- "version": "0.32.0",
3
+ "version": "0.33.1",
4
4
  "types": "dist/index.d.ts",
5
5
  "sideEffects": false,
6
6
  "engines": {
@@ -55,6 +55,7 @@
55
55
  "@rollup/plugin-image": "^3.0.2",
56
56
  "@rollup/plugin-node-resolve": "^15.1.0",
57
57
  "@rollup/plugin-typescript": "^11.1.1",
58
+ "@svgr/rollup": "^8.1.0",
58
59
  "@testing-library/jest-dom": "^6.6.3",
59
60
  "@testing-library/react": "^16.1.0",
60
61
  "@testing-library/user-event": "^14.5.2",
@@ -1,2 +0,0 @@
1
- export { Sidepanel } from "./sidepanel";
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../v1/components/sidepanel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
@@ -1,44 +0,0 @@
1
- 'use strict';
2
-
3
- var jsxRuntime = require('../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.cjs');
4
- var index = require('../../node_modules/.pnpm/@radix-ui_react-collapsible@1.1.2_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18._hjslo7xm5vmo3b4sx344jkbtcq/node_modules/@radix-ui/react-collapsible/dist/index.cjs');
5
- var index$1 = require('../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs');
6
- var tooltip = require('../tooltip/tooltip.cjs');
7
- var sidepanel_module = require('./sidepanel.module.css.cjs');
8
-
9
- const root = index$1.cva(sidepanel_module.default.root);
10
- const SidepanelRoot = ({ className, position = 'left', open, onOpenChange, children, profile, ref, ...props }) => (jsxRuntime.jsxRuntimeExports.jsx(tooltip.TooltipProvider, { children: jsxRuntime.jsxRuntimeExports.jsxs(index.Root, { ref: ref, className: root({ className }), "data-position": position, "data-state": open ? 'expanded' : 'collapsed', open: open, onOpenChange: onOpenChange, "aria-label": "Navigation Sidebar", "aria-expanded": open, role: "navigation", ...props, children: [jsxRuntime.jsxRuntimeExports.jsx(tooltip.Tooltip, { message: open ? "Click to collapse" : "Click to expand", side: position === 'left' ? 'right' : 'left', children: jsxRuntime.jsxRuntimeExports.jsx("div", { className: sidepanel_module.default.resizeHandle, onClick: () => onOpenChange?.(!open), role: "button", tabIndex: 0, "aria-label": open ? "Collapse sidebar" : "Expand sidebar", onKeyDown: (e) => {
11
- if (e.key === 'Enter' || e.key === ' ') {
12
- e.preventDefault();
13
- onOpenChange?.(!open);
14
- }
15
- } }) }), children, profile && (jsxRuntime.jsxRuntimeExports.jsxs("a", { href: profile.href, className: sidepanel_module.default.account, role: "button", "aria-label": `Profile: ${profile.label}`, onClick: (e) => {
16
- if (profile.onIconClick) {
17
- e.preventDefault();
18
- profile.onIconClick();
19
- }
20
- }, children: [jsxRuntime.jsxRuntimeExports.jsx("span", { className: sidepanel_module.default['nav-icon'], "aria-hidden": "true", style: { cursor: profile.onIconClick ? 'pointer' : undefined }, children: profile.icon }), jsxRuntime.jsxRuntimeExports.jsx("span", { className: sidepanel_module.default['nav-text'], children: profile.label })] }))] }) }));
21
- const SidepanelHeader = ({ className, logo, title, onLogoClick, ref, ...props }) => (jsxRuntime.jsxRuntimeExports.jsxs("div", { ref: ref, className: sidepanel_module.default.header, role: "banner", ...props, children: [jsxRuntime.jsxRuntimeExports.jsx("div", { className: sidepanel_module.default.logo, "aria-hidden": "true", onClick: onLogoClick, role: onLogoClick ? "button" : undefined, tabIndex: onLogoClick ? 0 : undefined, onKeyDown: (e) => {
22
- if (onLogoClick && (e.key === 'Enter' || e.key === ' ')) {
23
- e.preventDefault();
24
- onLogoClick();
25
- }
26
- }, style: { cursor: onLogoClick ? 'pointer' : undefined }, children: logo }), jsxRuntime.jsxRuntimeExports.jsx("div", { className: sidepanel_module.default.title, role: "heading", "aria-level": 1, children: title })] }));
27
- const SidepanelMain = ({ className, children, ref, ...props }) => (jsxRuntime.jsxRuntimeExports.jsx("div", { ref: ref, className: sidepanel_module.default.main, role: "group", "aria-label": "Main navigation", ...props, children: children }));
28
- const SidepanelFooter = ({ className, children, ref, ...props }) => (jsxRuntime.jsxRuntimeExports.jsx("div", { ref: ref, className: sidepanel_module.default.footer, role: "group", "aria-label": "Footer navigation", ...props, children: children }));
29
- const SidepanelItem = ({ className, icon, children, active, ref, ...props }) => (jsxRuntime.jsxRuntimeExports.jsxs("a", { ref: ref, className: sidepanel_module.default['nav-item'], "data-active": active, role: "menuitem", "aria-current": active ? "page" : undefined, ...props, children: [jsxRuntime.jsxRuntimeExports.jsx("span", { className: sidepanel_module.default['nav-icon'], "aria-hidden": "true", children: icon }), jsxRuntime.jsxRuntimeExports.jsx("span", { className: sidepanel_module.default['nav-text'], children: children })] }));
30
- SidepanelRoot.displayName = "Sidepanel.Root";
31
- SidepanelHeader.displayName = "Sidepanel.Header";
32
- SidepanelMain.displayName = "Sidepanel.Main";
33
- SidepanelFooter.displayName = "Sidepanel.Footer";
34
- SidepanelItem.displayName = "Sidepanel.Item";
35
- const Sidepanel = {
36
- Root: SidepanelRoot,
37
- Header: SidepanelHeader,
38
- Main: SidepanelMain,
39
- Footer: SidepanelFooter,
40
- Item: SidepanelItem,
41
- };
42
-
43
- exports.Sidepanel = Sidepanel;
44
- //# sourceMappingURL=sidepanel.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sidepanel.cjs","sources":["../../../../v1/components/sidepanel/sidepanel.tsx"],"sourcesContent":["import * as Collapsible from '@radix-ui/react-collapsible';\nimport { cva } from \"class-variance-authority\";\nimport { ComponentPropsWithoutRef, ComponentRef, ReactNode } from \"react\";\n\nimport { Tooltip, TooltipProvider } from \"../tooltip\";\nimport styles from \"./sidepanel.module.css\";\n\nconst root = cva(styles.root);\n\ninterface SidepanelProps extends ComponentPropsWithoutRef<typeof Collapsible.Root> {\n position?: 'left' | 'right';\n profile?: {\n icon: ReactNode;\n label: string;\n href?: string;\n onIconClick?: () => void;\n };\n ref?: ComponentRef<typeof Collapsible.Root>;\n}\n\ninterface SidepanelHeaderProps extends ComponentPropsWithoutRef<\"div\"> {\n logo: ReactNode;\n title: string;\n onLogoClick?: () => void;\n ref?: ComponentRef<\"div\">;\n}\n\ninterface SidepanelItemProps extends ComponentPropsWithoutRef<\"a\"> {\n icon: ReactNode;\n active?: boolean;\n ref?: ComponentRef<\"a\">;\n}\n\nconst SidepanelRoot = ({ \n className, \n position = 'left', \n open, \n onOpenChange, \n children, \n profile, \n ref,\n ...props \n}: SidepanelProps) => (\n <TooltipProvider>\n <Collapsible.Root\n ref={ref}\n className={root({ className })}\n data-position={position}\n data-state={open ? 'expanded' : 'collapsed'}\n open={open}\n onOpenChange={onOpenChange}\n aria-label=\"Navigation Sidebar\"\n aria-expanded={open}\n role=\"navigation\"\n {...props}\n >\n <Tooltip \n message={open ? \"Click to collapse\" : \"Click to expand\"}\n side={position === 'left' ? 'right' : 'left'}\n >\n <div \n className={styles.resizeHandle}\n onClick={() => onOpenChange?.(!open)}\n role=\"button\"\n tabIndex={0}\n aria-label={open ? \"Collapse sidebar\" : \"Expand sidebar\"}\n onKeyDown={(e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n onOpenChange?.(!open);\n }\n }}\n />\n </Tooltip>\n {children}\n {profile && (\n <a \n href={profile.href} \n className={styles.account}\n role=\"button\"\n aria-label={`Profile: ${profile.label}`}\n onClick={(e) => {\n if (profile.onIconClick) {\n e.preventDefault();\n profile.onIconClick();\n }\n }}\n >\n <span \n className={styles['nav-icon']} \n aria-hidden=\"true\"\n style={{ cursor: profile.onIconClick ? 'pointer' : undefined }}\n >\n {profile.icon}\n </span>\n <span className={styles['nav-text']}>{profile.label}</span>\n </a>\n )}\n </Collapsible.Root>\n </TooltipProvider>\n);\n\nconst SidepanelHeader = ({\n className,\n logo,\n title,\n onLogoClick,\n ref,\n ...props\n}: SidepanelHeaderProps) => (\n <div \n ref={ref} \n className={styles.header} \n role=\"banner\"\n {...props}\n >\n <div \n className={styles.logo} \n aria-hidden=\"true\"\n onClick={onLogoClick}\n role={onLogoClick ? \"button\" : undefined}\n tabIndex={onLogoClick ? 0 : undefined}\n onKeyDown={(e) => {\n if (onLogoClick && (e.key === 'Enter' || e.key === ' ')) {\n e.preventDefault();\n onLogoClick();\n }\n }}\n style={{ cursor: onLogoClick ? 'pointer' : undefined }}\n >\n {logo}\n </div>\n <div className={styles.title} role=\"heading\" aria-level={1}>{title}</div>\n </div>\n);\n\nconst SidepanelMain = ({\n className,\n children,\n ref,\n ...props\n}: ComponentPropsWithoutRef<\"div\"> & { ref?: ComponentRef<\"div\"> }) => (\n <div \n ref={ref} \n className={styles.main}\n role=\"group\"\n aria-label=\"Main navigation\"\n {...props}\n >\n {children}\n </div>\n);\n\nconst SidepanelFooter = ({\n className,\n children,\n ref,\n ...props\n}: ComponentPropsWithoutRef<\"div\"> & { ref?: ComponentRef<\"div\"> }) => (\n <div \n ref={ref} \n className={styles.footer}\n role=\"group\"\n aria-label=\"Footer navigation\"\n {...props}\n >\n {children}\n </div>\n);\n\nconst SidepanelItem = ({\n className,\n icon,\n children,\n active,\n ref,\n ...props\n}: SidepanelItemProps) => (\n <a \n ref={ref} \n className={styles['nav-item']} \n data-active={active}\n role=\"menuitem\"\n aria-current={active ? \"page\" : undefined}\n {...props}\n >\n <span className={styles['nav-icon']} aria-hidden=\"true\">{icon}</span>\n <span className={styles['nav-text']}>{children}</span>\n </a>\n);\n\nSidepanelRoot.displayName = \"Sidepanel.Root\";\nSidepanelHeader.displayName = \"Sidepanel.Header\";\nSidepanelMain.displayName = \"Sidepanel.Main\";\nSidepanelFooter.displayName = \"Sidepanel.Footer\";\nSidepanelItem.displayName = \"Sidepanel.Item\";\n\nexport const Sidepanel = {\n Root: SidepanelRoot,\n Header: SidepanelHeader,\n Main: SidepanelMain,\n Footer: SidepanelFooter,\n Item: SidepanelItem,\n};\n"],"names":["cva","styles","_jsx","TooltipProvider","_jsxs","Collapsible.Root","Tooltip"],"mappings":";;;;;;;;AAOA,MAAM,IAAI,GAAGA,WAAG,CAACC,wBAAM,CAAC,IAAI,CAAC,CAAC;AA0B9B,MAAM,aAAa,GAAG,CAAC,EACrB,SAAS,EACT,QAAQ,GAAG,MAAM,EACjB,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,GAAG,EACH,GAAG,KAAK,EACO,MACfC,gCAAA,CAACC,uBAAe,EACd,EAAA,QAAA,EAAAC,iCAAA,CAACC,UAAgB,EACf,EAAA,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC,mBACf,QAAQ,EAAA,YAAA,EACX,IAAI,GAAG,UAAU,GAAG,WAAW,EAC3C,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,EACf,YAAA,EAAA,oBAAoB,EAChB,eAAA,EAAA,IAAI,EACnB,IAAI,EAAC,YAAY,EAAA,GACb,KAAK,EAAA,QAAA,EAAA,CAETH,gCAAC,CAAAI,eAAO,IACN,OAAO,EAAE,IAAI,GAAG,mBAAmB,GAAG,iBAAiB,EACvD,IAAI,EAAE,QAAQ,KAAK,MAAM,GAAG,OAAO,GAAG,MAAM,EAAA,QAAA,EAE5CJ,gCACE,CAAA,KAAA,EAAA,EAAA,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ible from '@radix-ui/react-collapsible';
2
- import { ComponentPropsWithoutRef, ComponentRef, ReactNode } from "react";
3
- interface SidepanelProps extends ComponentPropsWithoutRef<typeof Collapsible.Root> {
4
- position?: 'left' | 'right';
5
- profile?: {
6
- icon: ReactNode;
7
- label: string;
8
- href?: string;
9
- onIconClick?: () => void;
10
- };
11
- ref?: ComponentRef<typeof Collapsible.Root>;
12
- }
13
- interface SidepanelHeaderProps extends ComponentPropsWithoutRef<"div"> {
14
- logo: ReactNode;
15
- title: string;
16
- onLogoClick?: () => void;
17
- ref?: ComponentRef<"div">;
18
- }
19
- interface SidepanelItemProps extends ComponentPropsWithoutRef<"a"> {
20
- icon: ReactNode;
21
- active?: boolean;
22
- ref?: ComponentRef<"a">;
23
- }
24
- export declare const Sidepanel: {
25
- Root: {
26
- ({ className, position, open, onOpenChange, children, profile, ref, ...props }: SidepanelProps): import("react/jsx-runtime").JSX.Element;
27
- displayName: string;
28
- };
29
- Header: {
30
- ({ className, logo, title, onLogoClick, ref, ...props }: SidepanelHeaderProps): import("react/jsx-runtime").JSX.Element;
31
- displayName: string;
32
- };
33
- Main: {
34
- ({ className, children, ref, ...props }: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
35
- ref?: HTMLDivElement | undefined;
36
- }): import("react/jsx-runtime").JSX.Element;
37
- displayName: string;
38
- };
39
- Footer: {
40
- ({ className, children, ref, ...props }: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
41
- ref?: HTMLDivElement | undefined;
42
- }): import("react/jsx-runtime").JSX.Element;
43
- displayName: string;
44
- };
45
- Item: {
46
- ({ className, icon, children, active, ref, ...props }: SidepanelItemProps): import("react/jsx-runtime").JSX.Element;
47
- displayName: string;
48
- };
49
- };
50
- export {};
51
- //# sourceMappingURL=sidepanel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sidepanel.d.ts","sourceRoot":"","sources":["../../../../v1/components/sidepanel/sidepanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,6BAA6B,CAAC;AAE3D,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAO1E,UAAU,cAAe,SAAQ,wBAAwB,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC;IAChF,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE;QACR,IAAI,EAAE,SAAS,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;KAC1B,CAAC;IACF,GAAG,CAAC,EAAE,YAAY,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC;CAC7C;AAED,UAAU,oBAAqB,SAAQ,wBAAwB,CAAC,KAAK,CAAC;IACpE,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,GAAG,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC;CAC3B;AAED,UAAU,kBAAmB,SAAQ,wBAAwB,CAAC,GAAG,CAAC;IAChE,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;CACzB;AAsKD,eAAO,MAAM,SAAS;;wFA3JnB,cAAc;;;;iEAmEd,oBAAoB;;;;;;;;;;;;;;;;+DAoEpB,kBAAkB;;;CA0BpB,CAAC"}
@@ -1,42 +0,0 @@
1
- import { j as jsxRuntimeExports } from '../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js';
2
- import { Root } from '../../node_modules/.pnpm/@radix-ui_react-collapsible@1.1.2_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18._hjslo7xm5vmo3b4sx344jkbtcq/node_modules/@radix-ui/react-collapsible/dist/index.js';
3
- import { cva } from '../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js';
4
- import { TooltipProvider, Tooltip } from '../tooltip/tooltip.js';
5
- import styles from './sidepanel.module.css.js';
6
-
7
- const root = cva(styles.root);
8
- const SidepanelRoot = ({ className, position = 'left', open, onOpenChange, children, profile, ref, ...props }) => (jsxRuntimeExports.jsx(TooltipProvider, { children: jsxRuntimeExports.jsxs(Root, { ref: ref, className: root({ className }), "data-position": position, "data-state": open ? 'expanded' : 'collapsed', open: open, onOpenChange: onOpenChange, "aria-label": "Navigation Sidebar", "aria-expanded": open, role: "navigation", ...props, children: [jsxRuntimeExports.jsx(Tooltip, { message: open ? "Click to collapse" : "Click to expand", side: position === 'left' ? 'right' : 'left', children: jsxRuntimeExports.jsx("div", { className: styles.resizeHandle, onClick: () => onOpenChange?.(!open), role: "button", tabIndex: 0, "aria-label": open ? "Collapse sidebar" : "Expand sidebar", onKeyDown: (e) => {
9
- if (e.key === 'Enter' || e.key === ' ') {
10
- e.preventDefault();
11
- onOpenChange?.(!open);
12
- }
13
- } }) }), children, profile && (jsxRuntimeExports.jsxs("a", { href: profile.href, className: styles.account, role: "button", "aria-label": `Profile: ${profile.label}`, onClick: (e) => {
14
- if (profile.onIconClick) {
15
- e.preventDefault();
16
- profile.onIconClick();
17
- }
18
- }, children: [jsxRuntimeExports.jsx("span", { className: styles['nav-icon'], "aria-hidden": "true", style: { cursor: profile.onIconClick ? 'pointer' : undefined }, children: profile.icon }), jsxRuntimeExports.jsx("span", { className: styles['nav-text'], children: profile.label })] }))] }) }));
19
- const SidepanelHeader = ({ className, logo, title, onLogoClick, ref, ...props }) => (jsxRuntimeExports.jsxs("div", { ref: ref, className: styles.header, role: "banner", ...props, children: [jsxRuntimeExports.jsx("div", { className: styles.logo, "aria-hidden": "true", onClick: onLogoClick, role: onLogoClick ? "button" : undefined, tabIndex: onLogoClick ? 0 : undefined, onKeyDown: (e) => {
20
- if (onLogoClick && (e.key === 'Enter' || e.key === ' ')) {
21
- e.preventDefault();
22
- onLogoClick();
23
- }
24
- }, style: { cursor: onLogoClick ? 'pointer' : undefined }, children: logo }), jsxRuntimeExports.jsx("div", { className: styles.title, role: "heading", "aria-level": 1, children: title })] }));
25
- const SidepanelMain = ({ className, children, ref, ...props }) => (jsxRuntimeExports.jsx("div", { ref: ref, className: styles.main, role: "group", "aria-label": "Main navigation", ...props, children: children }));
26
- const SidepanelFooter = ({ className, children, ref, ...props }) => (jsxRuntimeExports.jsx("div", { ref: ref, className: styles.footer, role: "group", "aria-label": "Footer navigation", ...props, children: children }));
27
- const SidepanelItem = ({ className, icon, children, active, ref, ...props }) => (jsxRuntimeExports.jsxs("a", { ref: ref, className: styles['nav-item'], "data-active": active, role: "menuitem", "aria-current": active ? "page" : undefined, ...props, children: [jsxRuntimeExports.jsx("span", { className: styles['nav-icon'], "aria-hidden": "true", children: icon }), jsxRuntimeExports.jsx("span", { className: styles['nav-text'], children: children })] }));
28
- SidepanelRoot.displayName = "Sidepanel.Root";
29
- SidepanelHeader.displayName = "Sidepanel.Header";
30
- SidepanelMain.displayName = "Sidepanel.Main";
31
- SidepanelFooter.displayName = "Sidepanel.Footer";
32
- SidepanelItem.displayName = "Sidepanel.Item";
33
- const Sidepanel = {
34
- Root: SidepanelRoot,
35
- Header: SidepanelHeader,
36
- Main: SidepanelMain,
37
- Footer: SidepanelFooter,
38
- Item: SidepanelItem,
39
- };
40
-
41
- export { Sidepanel };
42
- //# sourceMappingURL=sidepanel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sidepanel.js","sources":["../../../../v1/components/sidepanel/sidepanel.tsx"],"sourcesContent":["import * as Collapsible from '@radix-ui/react-collapsible';\nimport { cva } from \"class-variance-authority\";\nimport { ComponentPropsWithoutRef, ComponentRef, ReactNode } from \"react\";\n\nimport { Tooltip, TooltipProvider } from \"../tooltip\";\nimport styles from \"./sidepanel.module.css\";\n\nconst root = cva(styles.root);\n\ninterface SidepanelProps extends ComponentPropsWithoutRef<typeof Collapsible.Root> {\n position?: 'left' | 'right';\n profile?: {\n icon: ReactNode;\n label: string;\n href?: string;\n onIconClick?: () => void;\n };\n ref?: ComponentRef<typeof Collapsible.Root>;\n}\n\ninterface SidepanelHeaderProps extends ComponentPropsWithoutRef<\"div\"> {\n logo: ReactNode;\n title: string;\n onLogoClick?: () => void;\n ref?: ComponentRef<\"div\">;\n}\n\ninterface SidepanelItemProps extends ComponentPropsWithoutRef<\"a\"> {\n icon: ReactNode;\n active?: boolean;\n ref?: ComponentRef<\"a\">;\n}\n\nconst SidepanelRoot = ({ \n className, \n position = 'left', \n open, \n onOpenChange, \n children, \n profile, \n ref,\n ...props \n}: SidepanelProps) => (\n <TooltipProvider>\n <Collapsible.Root\n ref={ref}\n className={root({ className })}\n data-position={position}\n data-state={open ? 'expanded' : 'collapsed'}\n open={open}\n onOpenChange={onOpenChange}\n aria-label=\"Navigation Sidebar\"\n aria-expanded={open}\n role=\"navigation\"\n {...props}\n >\n <Tooltip \n message={open ? \"Click to collapse\" : \"Click to expand\"}\n side={position === 'left' ? 'right' : 'left'}\n >\n <div \n className={styles.resizeHandle}\n onClick={() => onOpenChange?.(!open)}\n role=\"button\"\n tabIndex={0}\n aria-label={open ? \"Collapse sidebar\" : \"Expand sidebar\"}\n onKeyDown={(e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n onOpenChange?.(!open);\n }\n }}\n />\n </Tooltip>\n {children}\n {profile && (\n <a \n href={profile.href} \n className={styles.account}\n role=\"button\"\n aria-label={`Profile: ${profile.label}`}\n onClick={(e) => {\n if (profile.onIconClick) {\n e.preventDefault();\n profile.onIconClick();\n }\n }}\n >\n <span \n className={styles['nav-icon']} \n aria-hidden=\"true\"\n style={{ cursor: profile.onIconClick ? 'pointer' : undefined }}\n >\n {profile.icon}\n </span>\n <span className={styles['nav-text']}>{profile.label}</span>\n </a>\n )}\n </Collapsible.Root>\n </TooltipProvider>\n);\n\nconst SidepanelHeader = ({\n className,\n logo,\n title,\n onLogoClick,\n ref,\n ...props\n}: SidepanelHeaderProps) => (\n <div \n ref={ref} \n className={styles.header} \n role=\"banner\"\n {...props}\n >\n <div \n className={styles.logo} \n aria-hidden=\"true\"\n onClick={onLogoClick}\n role={onLogoClick ? \"button\" : undefined}\n tabIndex={onLogoClick ? 0 : undefined}\n onKeyDown={(e) => {\n if (onLogoClick && (e.key === 'Enter' || e.key === ' ')) {\n e.preventDefault();\n onLogoClick();\n }\n }}\n style={{ cursor: onLogoClick ? 'pointer' : undefined }}\n >\n {logo}\n </div>\n <div className={styles.title} role=\"heading\" aria-level={1}>{title}</div>\n </div>\n);\n\nconst SidepanelMain = ({\n className,\n children,\n ref,\n ...props\n}: ComponentPropsWithoutRef<\"div\"> & { ref?: ComponentRef<\"div\"> }) => (\n <div \n ref={ref} \n className={styles.main}\n role=\"group\"\n aria-label=\"Main navigation\"\n {...props}\n >\n {children}\n </div>\n);\n\nconst SidepanelFooter = ({\n className,\n children,\n ref,\n ...props\n}: ComponentPropsWithoutRef<\"div\"> & { ref?: ComponentRef<\"div\"> }) => (\n <div \n ref={ref} \n className={styles.footer}\n role=\"group\"\n aria-label=\"Footer navigation\"\n {...props}\n >\n {children}\n </div>\n);\n\nconst SidepanelItem = ({\n className,\n icon,\n children,\n active,\n ref,\n ...props\n}: SidepanelItemProps) => (\n <a \n ref={ref} \n className={styles['nav-item']} \n data-active={active}\n role=\"menuitem\"\n aria-current={active ? \"page\" : undefined}\n {...props}\n >\n <span className={styles['nav-icon']} aria-hidden=\"true\">{icon}</span>\n <span className={styles['nav-text']}>{children}</span>\n </a>\n);\n\nSidepanelRoot.displayName = \"Sidepanel.Root\";\nSidepanelHeader.displayName = \"Sidepanel.Header\";\nSidepanelMain.displayName = \"Sidepanel.Main\";\nSidepanelFooter.displayName = \"Sidepanel.Footer\";\nSidepanelItem.displayName = \"Sidepanel.Item\";\n\nexport const Sidepanel = {\n Root: SidepanelRoot,\n Header: SidepanelHeader,\n Main: SidepanelMain,\n Footer: SidepanelFooter,\n Item: SidepanelItem,\n};\n"],"names":["_jsx","_jsxs","Collapsible.Root"],"mappings":";;;;;;AAOA,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AA0B9B,MAAM,aAAa,GAAG,CAAC,EACrB,SAAS,EACT,QAAQ,GAAG,MAAM,EACjB,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,GAAG,EACH,GAAG,KAAK,EACO,MACfA,qBAAA,CAAC,eAAe,EACd,EAAA,QAAA,EAAAC,sBAAA,CAACC,IAAgB,EACf,EAAA,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC,mBACf,QAAQ,EAAA,YAAA,EACX,IAAI,GAAG,UAAU,GAAG,WAAW,EAC3C,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,EACf,YAAA,EAAA,oBAAoB,EAChB,eAAA,EAAA,IAAI,EACnB,IAAI,EAAC,YAAY,EAAA,GACb,KAAK,EAAA,QAAA,EAAA,CAETF,qBAAC,CAAA,OAAO,IACN,OAAO,EAAE,IAAI,GAAG,mBAAmB,GAAG,iBAAiB,EACvD,IAAI,EAAE,QAAQ,KAAK,MAAM,GAAG,OAAO,GAAG,MAAM,EAAA,QAAA,EAE5CA,qBACE,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,MAAM,CAAC,YAAY,EAC9B,OAAO,EAAE,MAAM,YAAY,GAAG,CAAC,IAAI,CAAC,EACpC,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,CAAC,gBACC,IAAI,GAAG,kBAAkB,GAAG,gBAAgB,EACxD,SAAS,EAAE,CAAC,CAAC,KAAI;AACf,wBAAA,IAAI,CAAC,CAAC,GAAG,KAAK,OAAO,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,EAAE;4BAC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,sBACE,CAAA,GAAA,EAAA,EAAA,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC,EAAA,aAAA,EAChB,MAAM,EACnB,IAAI,EAAC,UAAU,EACD,cAAA,EAAA,MAAM,GAAG,MAAM,GAAG,SAAS,EACrC,GAAA,KAAK,aAETD,qBAAM,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC,EAAc,aAAA,EAAA,MAAM,YAAE,IAAI,EAAA,CAAQ,EACrEA,qBAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC,EAAG,QAAA,EAAA,QAAQ,EAAQ,CAAA,CAAA,EAAA,CACpD,CACL,CAAC;AAEF,aAAa,CAAC,WAAW,GAAG,gBAAgB,CAAC;AAC7C,eAAe,CAAC,WAAW,GAAG,kBAAkB,CAAC;AACjD,aAAa,CAAC,WAAW,GAAG,gBAAgB,CAAC;AAC7C,eAAe,CAAC,WAAW,GAAG,kBAAkB,CAAC;AACjD,aAAa,CAAC,WAAW,GAAG,gBAAgB,CAAC;AAEhC,MAAA,SAAS,GAAG;AACvB,IAAA,IAAI,EAAE,aAAa;AACnB,IAAA,MAAM,EAAE,eAAe;AACvB,IAAA,IAAI,EAAE,aAAa;AACnB,IAAA,MAAM,EAAE,eAAe;AACvB,IAAA,IAAI,EAAE,aAAa;;;;;"}
@@ -1,8 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var styles = {"root":"sidepanel-module_root__L1fyl","header":"sidepanel-module_header__4elfq","logo":"sidepanel-module_logo__UCoYi","title":"sidepanel-module_title__7d9-H","main":"sidepanel-module_main__NIhoq","footer":"sidepanel-module_footer__8VmXf","nav-item":"sidepanel-module_nav-item__na8O6","nav-icon":"sidepanel-module_nav-icon__Bnttp","nav-text":"sidepanel-module_nav-text__r-7xC","resizeHandle":"sidepanel-module_resizeHandle__c-wFl","account":"sidepanel-module_account__SfSz0","nav___item":"sidepanel-module_nav-item__na8O6","nav___icon":"sidepanel-module_nav-icon__Bnttp","nav___text":"sidepanel-module_nav-text__r-7xC"};
6
-
7
- exports.default = styles;
8
- //# sourceMappingURL=sidepanel.module.css.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sidepanel.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,4 +0,0 @@
1
- var styles = {"root":"sidepanel-module_root__L1fyl","header":"sidepanel-module_header__4elfq","logo":"sidepanel-module_logo__UCoYi","title":"sidepanel-module_title__7d9-H","main":"sidepanel-module_main__NIhoq","footer":"sidepanel-module_footer__8VmXf","nav-item":"sidepanel-module_nav-item__na8O6","nav-icon":"sidepanel-module_nav-icon__Bnttp","nav-text":"sidepanel-module_nav-text__r-7xC","resizeHandle":"sidepanel-module_resizeHandle__c-wFl","account":"sidepanel-module_account__SfSz0","nav___item":"sidepanel-module_nav-item__na8O6","nav___icon":"sidepanel-module_nav-icon__Bnttp","nav___text":"sidepanel-module_nav-text__r-7xC"};
2
-
3
- export { styles as default };
4
- //# sourceMappingURL=sidepanel.module.css.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sidepanel.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}