analytica-frontend-lib 1.0.37 → 1.0.39

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 (100) hide show
  1. package/README.md +1 -2
  2. package/dist/Alert/index.js.map +1 -1
  3. package/dist/Alert/index.mjs.map +1 -1
  4. package/dist/Badge/index.d.mts +0 -1
  5. package/dist/Badge/index.d.ts +0 -1
  6. package/dist/Badge/index.js.map +1 -1
  7. package/dist/Badge/index.mjs.map +1 -1
  8. package/dist/Button/index.d.mts +0 -1
  9. package/dist/Button/index.d.ts +0 -1
  10. package/dist/Button/index.js.map +1 -1
  11. package/dist/Button/index.mjs.map +1 -1
  12. package/dist/CheckBox/index.js +0 -1
  13. package/dist/CheckBox/index.js.map +1 -1
  14. package/dist/CheckBox/index.mjs +0 -2
  15. package/dist/CheckBox/index.mjs.map +1 -1
  16. package/dist/Chips/index.d.mts +41 -0
  17. package/dist/Chips/index.d.ts +41 -0
  18. package/dist/Chips/index.js +57 -0
  19. package/dist/Chips/index.js.map +1 -0
  20. package/dist/Chips/index.mjs +36 -0
  21. package/dist/Chips/index.mjs.map +1 -0
  22. package/dist/Divider/index.d.mts +32 -0
  23. package/dist/Divider/index.d.ts +32 -0
  24. package/dist/Divider/index.js +47 -0
  25. package/dist/Divider/index.js.map +1 -0
  26. package/dist/Divider/index.mjs +26 -0
  27. package/dist/Divider/index.mjs.map +1 -0
  28. package/dist/DropdownMenu/index.d.mts +16 -8
  29. package/dist/DropdownMenu/index.d.ts +16 -8
  30. package/dist/DropdownMenu/index.js +122 -46
  31. package/dist/DropdownMenu/index.js.map +1 -1
  32. package/dist/DropdownMenu/index.mjs +122 -47
  33. package/dist/DropdownMenu/index.mjs.map +1 -1
  34. package/dist/IconButton/index.d.mts +0 -1
  35. package/dist/IconButton/index.d.ts +0 -1
  36. package/dist/IconButton/index.js.map +1 -1
  37. package/dist/IconButton/index.mjs.map +1 -1
  38. package/dist/IconRoundedButton/index.d.mts +0 -1
  39. package/dist/IconRoundedButton/index.d.ts +0 -1
  40. package/dist/IconRoundedButton/index.js.map +1 -1
  41. package/dist/IconRoundedButton/index.mjs.map +1 -1
  42. package/dist/Input/index.d.mts +27 -0
  43. package/dist/Input/index.d.ts +27 -0
  44. package/dist/Input/index.js +184 -0
  45. package/dist/Input/index.js.map +1 -0
  46. package/dist/Input/index.mjs +168 -0
  47. package/dist/Input/index.mjs.map +1 -0
  48. package/dist/NavButton/index.d.mts +0 -1
  49. package/dist/NavButton/index.d.ts +0 -1
  50. package/dist/NavButton/index.js.map +1 -1
  51. package/dist/NavButton/index.mjs.map +1 -1
  52. package/dist/ProgressBar/index.js +0 -1
  53. package/dist/ProgressBar/index.js.map +1 -1
  54. package/dist/ProgressBar/index.mjs +0 -2
  55. package/dist/ProgressBar/index.mjs.map +1 -1
  56. package/dist/ProgressCircle/index.js +0 -1
  57. package/dist/ProgressCircle/index.js.map +1 -1
  58. package/dist/ProgressCircle/index.mjs +0 -2
  59. package/dist/ProgressCircle/index.mjs.map +1 -1
  60. package/dist/Radio/index.js +0 -1
  61. package/dist/Radio/index.js.map +1 -1
  62. package/dist/Radio/index.mjs +0 -2
  63. package/dist/Radio/index.mjs.map +1 -1
  64. package/dist/Select/index.d.mts +51 -0
  65. package/dist/Select/index.d.ts +51 -0
  66. package/dist/Select/index.js +322 -0
  67. package/dist/Select/index.js.map +1 -0
  68. package/dist/Select/index.mjs +298 -0
  69. package/dist/Select/index.mjs.map +1 -0
  70. package/dist/SelectionButton/index.d.mts +0 -1
  71. package/dist/SelectionButton/index.d.ts +0 -1
  72. package/dist/SelectionButton/index.js.map +1 -1
  73. package/dist/SelectionButton/index.mjs.map +1 -1
  74. package/dist/Text/index.d.mts +0 -1
  75. package/dist/Text/index.d.ts +0 -1
  76. package/dist/Text/index.js.map +1 -1
  77. package/dist/Text/index.mjs.map +1 -1
  78. package/dist/TextArea/index.js +0 -1
  79. package/dist/TextArea/index.js.map +1 -1
  80. package/dist/TextArea/index.mjs +0 -2
  81. package/dist/TextArea/index.mjs.map +1 -1
  82. package/dist/Toast/Toaster/index.js +0 -1
  83. package/dist/Toast/Toaster/index.js.map +1 -1
  84. package/dist/Toast/Toaster/index.mjs +0 -2
  85. package/dist/Toast/Toaster/index.mjs.map +1 -1
  86. package/dist/Toast/index.js +0 -1
  87. package/dist/Toast/index.js.map +1 -1
  88. package/dist/Toast/index.mjs +0 -2
  89. package/dist/Toast/index.mjs.map +1 -1
  90. package/dist/index.css +5 -9
  91. package/dist/index.css.map +1 -1
  92. package/dist/index.d.mts +7 -136
  93. package/dist/index.d.ts +7 -136
  94. package/dist/index.js +52 -34
  95. package/dist/index.js.map +1 -1
  96. package/dist/index.mjs +52 -34
  97. package/dist/index.mjs.map +1 -1
  98. package/dist/styles.css +5 -9
  99. package/dist/styles.css.map +1 -1
  100. package/package.json +1 -5
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/components/Chips/Chips.tsx
21
+ var Chips_exports = {};
22
+ __export(Chips_exports, {
23
+ default: () => Chips_default
24
+ });
25
+ module.exports = __toCommonJS(Chips_exports);
26
+ var import_phosphor_react = require("phosphor-react");
27
+ var import_jsx_runtime = require("react/jsx-runtime");
28
+ var STATE_CLASSES = {
29
+ default: "bg-background text-text-950 border border-border-100 hover:bg-secondary-50 hover:border-border-300",
30
+ selected: "bg-info-background text-primary-950 border-2 border-primary-950 hover:bg-secondary-50 focus-visible:border-0"
31
+ };
32
+ var Chips = ({
33
+ children,
34
+ selected = false,
35
+ className = "",
36
+ disabled,
37
+ type = "button",
38
+ ...props
39
+ }) => {
40
+ const stateClasses = selected ? STATE_CLASSES.selected : STATE_CLASSES.default;
41
+ const baseClasses = "inline-flex items-center justify-center rounded-full cursor-pointer font-normal text-sm px-4 py-2 gap-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-primary-600 disabled:opacity-40 disabled:cursor-not-allowed";
42
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
43
+ "button",
44
+ {
45
+ className: `${baseClasses} ${stateClasses} ${className}`,
46
+ disabled,
47
+ type,
48
+ ...props,
49
+ children: [
50
+ selected && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: `flex items-center`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_phosphor_react.Check, { weight: "bold", size: 16 }) }),
51
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "flex-1", children })
52
+ ]
53
+ }
54
+ );
55
+ };
56
+ var Chips_default = Chips;
57
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/Chips/Chips.tsx"],"sourcesContent":["import { ButtonHTMLAttributes, ReactNode } from 'react';\nimport { Check } from 'phosphor-react';\n\n/**\n * Lookup table for chip state classes\n */\nconst STATE_CLASSES = {\n default:\n 'bg-background text-text-950 border border-border-100 hover:bg-secondary-50 hover:border-border-300',\n selected:\n 'bg-info-background text-primary-950 border-2 border-primary-950 hover:bg-secondary-50 focus-visible:border-0',\n} as const;\n\n/**\n * Chips component props interface\n */\ntype ChipsProps = {\n /** Content to be displayed inside the chip */\n children: ReactNode;\n /** Se o chip está selecionado (mostra check automaticamente) */\n selected?: boolean;\n\n /** Additional CSS classes to apply */\n className?: string;\n} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'>;\n\n/**\n * Chips component for Analytica Ensino platforms\n *\n * Um componente de chip seguindo exatamente o design do Figma.\n * Suporte a dois estados principais: default (sem ícone) e selected (com ícone de check).\n * Quando selecionado, automaticamente mostra o ícone de check.\n *\n * @param children - O conteúdo a ser exibido dentro do chip\n * @param selected - Se o chip está selecionado (mostra check automaticamente)\n * @param className - Classes CSS adicionais\n * @param props - Todos os outros atributos padrão de button HTML\n * @returns Um elemento de chip estilizado\n *\n * @example\n * ```tsx\n * <Chips onClick={() => console.log('clicked')}>\n * Label\n * </Chips>\n *\n * <Chips selected onClick={() => console.log('selected')}>\n * Selected Label\n * </Chips>\n * ```\n */\nconst Chips = ({\n children,\n selected = false,\n className = '',\n disabled,\n type = 'button',\n ...props\n}: ChipsProps) => {\n // Get classes from lookup tables\n const stateClasses = selected\n ? STATE_CLASSES.selected\n : STATE_CLASSES.default;\n\n const baseClasses =\n 'inline-flex items-center justify-center rounded-full cursor-pointer font-normal text-sm px-4 py-2 gap-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-primary-600 disabled:opacity-40 disabled:cursor-not-allowed';\n\n return (\n <button\n className={`${baseClasses} ${stateClasses} ${className}`}\n disabled={disabled}\n type={type}\n {...props}\n >\n {selected && (\n <span className={`flex items-center`}>\n <Check weight=\"bold\" size={16} />\n </span>\n )}\n\n <span className=\"flex-1\">{children}</span>\n </button>\n );\n};\n\nexport default Chips;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,4BAAsB;AAkElB;AA7DJ,IAAM,gBAAgB;AAAA,EACpB,SACE;AAAA,EACF,UACE;AACJ;AAuCA,IAAM,QAAQ,CAAC;AAAA,EACb;AAAA,EACA,WAAW;AAAA,EACX,YAAY;AAAA,EACZ;AAAA,EACA,OAAO;AAAA,EACP,GAAG;AACL,MAAkB;AAEhB,QAAM,eAAe,WACjB,cAAc,WACd,cAAc;AAElB,QAAM,cACJ;AAEF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,GAAG,WAAW,IAAI,YAAY,IAAI,SAAS;AAAA,MACtD;AAAA,MACA;AAAA,MACC,GAAG;AAAA,MAEH;AAAA,oBACC,4CAAC,UAAK,WAAW,qBACf,sDAAC,+BAAM,QAAO,QAAO,MAAM,IAAI,GACjC;AAAA,QAGF,4CAAC,UAAK,WAAU,UAAU,UAAS;AAAA;AAAA;AAAA,EACrC;AAEJ;AAEA,IAAO,gBAAQ;","names":[]}
@@ -0,0 +1,36 @@
1
+ // src/components/Chips/Chips.tsx
2
+ import { Check } from "phosphor-react";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ var STATE_CLASSES = {
5
+ default: "bg-background text-text-950 border border-border-100 hover:bg-secondary-50 hover:border-border-300",
6
+ selected: "bg-info-background text-primary-950 border-2 border-primary-950 hover:bg-secondary-50 focus-visible:border-0"
7
+ };
8
+ var Chips = ({
9
+ children,
10
+ selected = false,
11
+ className = "",
12
+ disabled,
13
+ type = "button",
14
+ ...props
15
+ }) => {
16
+ const stateClasses = selected ? STATE_CLASSES.selected : STATE_CLASSES.default;
17
+ const baseClasses = "inline-flex items-center justify-center rounded-full cursor-pointer font-normal text-sm px-4 py-2 gap-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-primary-600 disabled:opacity-40 disabled:cursor-not-allowed";
18
+ return /* @__PURE__ */ jsxs(
19
+ "button",
20
+ {
21
+ className: `${baseClasses} ${stateClasses} ${className}`,
22
+ disabled,
23
+ type,
24
+ ...props,
25
+ children: [
26
+ selected && /* @__PURE__ */ jsx("span", { className: `flex items-center`, children: /* @__PURE__ */ jsx(Check, { weight: "bold", size: 16 }) }),
27
+ /* @__PURE__ */ jsx("span", { className: "flex-1", children })
28
+ ]
29
+ }
30
+ );
31
+ };
32
+ var Chips_default = Chips;
33
+ export {
34
+ Chips_default as default
35
+ };
36
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/Chips/Chips.tsx"],"sourcesContent":["import { ButtonHTMLAttributes, ReactNode } from 'react';\nimport { Check } from 'phosphor-react';\n\n/**\n * Lookup table for chip state classes\n */\nconst STATE_CLASSES = {\n default:\n 'bg-background text-text-950 border border-border-100 hover:bg-secondary-50 hover:border-border-300',\n selected:\n 'bg-info-background text-primary-950 border-2 border-primary-950 hover:bg-secondary-50 focus-visible:border-0',\n} as const;\n\n/**\n * Chips component props interface\n */\ntype ChipsProps = {\n /** Content to be displayed inside the chip */\n children: ReactNode;\n /** Se o chip está selecionado (mostra check automaticamente) */\n selected?: boolean;\n\n /** Additional CSS classes to apply */\n className?: string;\n} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'>;\n\n/**\n * Chips component for Analytica Ensino platforms\n *\n * Um componente de chip seguindo exatamente o design do Figma.\n * Suporte a dois estados principais: default (sem ícone) e selected (com ícone de check).\n * Quando selecionado, automaticamente mostra o ícone de check.\n *\n * @param children - O conteúdo a ser exibido dentro do chip\n * @param selected - Se o chip está selecionado (mostra check automaticamente)\n * @param className - Classes CSS adicionais\n * @param props - Todos os outros atributos padrão de button HTML\n * @returns Um elemento de chip estilizado\n *\n * @example\n * ```tsx\n * <Chips onClick={() => console.log('clicked')}>\n * Label\n * </Chips>\n *\n * <Chips selected onClick={() => console.log('selected')}>\n * Selected Label\n * </Chips>\n * ```\n */\nconst Chips = ({\n children,\n selected = false,\n className = '',\n disabled,\n type = 'button',\n ...props\n}: ChipsProps) => {\n // Get classes from lookup tables\n const stateClasses = selected\n ? STATE_CLASSES.selected\n : STATE_CLASSES.default;\n\n const baseClasses =\n 'inline-flex items-center justify-center rounded-full cursor-pointer font-normal text-sm px-4 py-2 gap-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-0 focus-visible:ring-primary-600 disabled:opacity-40 disabled:cursor-not-allowed';\n\n return (\n <button\n className={`${baseClasses} ${stateClasses} ${className}`}\n disabled={disabled}\n type={type}\n {...props}\n >\n {selected && (\n <span className={`flex items-center`}>\n <Check weight=\"bold\" size={16} />\n </span>\n )}\n\n <span className=\"flex-1\">{children}</span>\n </button>\n );\n};\n\nexport default Chips;\n"],"mappings":";AACA,SAAS,aAAa;AAkElB,SAQM,KARN;AA7DJ,IAAM,gBAAgB;AAAA,EACpB,SACE;AAAA,EACF,UACE;AACJ;AAuCA,IAAM,QAAQ,CAAC;AAAA,EACb;AAAA,EACA,WAAW;AAAA,EACX,YAAY;AAAA,EACZ;AAAA,EACA,OAAO;AAAA,EACP,GAAG;AACL,MAAkB;AAEhB,QAAM,eAAe,WACjB,cAAc,WACd,cAAc;AAElB,QAAM,cACJ;AAEF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,GAAG,WAAW,IAAI,YAAY,IAAI,SAAS;AAAA,MACtD;AAAA,MACA;AAAA,MACC,GAAG;AAAA,MAEH;AAAA,oBACC,oBAAC,UAAK,WAAW,qBACf,8BAAC,SAAM,QAAO,QAAO,MAAM,IAAI,GACjC;AAAA,QAGF,oBAAC,UAAK,WAAU,UAAU,UAAS;AAAA;AAAA;AAAA,EACrC;AAEJ;AAEA,IAAO,gBAAQ;","names":[]}
@@ -0,0 +1,32 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { HTMLAttributes } from 'react';
3
+
4
+ /**
5
+ * Divider component props interface
6
+ */
7
+ type DividerProps = {
8
+ /** Orientation of the divider */
9
+ orientation?: 'horizontal' | 'vertical';
10
+ /** Additional CSS classes to apply */
11
+ className?: string;
12
+ } & HTMLAttributes<HTMLHRElement>;
13
+ /**
14
+ * Divider component for Analytica Ensino platforms
15
+ *
16
+ * A simple divider component that creates a visual separation between content sections.
17
+ * Can be used both horizontally and vertically.
18
+ *
19
+ * @param orientation - The orientation of the divider (horizontal or vertical)
20
+ * @param className - Additional CSS classes
21
+ * @param props - All other standard hr HTML attributes
22
+ * @returns A styled divider element
23
+ *
24
+ * @example
25
+ * ```tsx
26
+ * <Divider orientation="horizontal" />
27
+ * <Divider orientation="vertical" className="h-8" />
28
+ * ```
29
+ */
30
+ declare const Divider: ({ orientation, className, ...props }: DividerProps) => react_jsx_runtime.JSX.Element;
31
+
32
+ export { Divider as default };
@@ -0,0 +1,32 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { HTMLAttributes } from 'react';
3
+
4
+ /**
5
+ * Divider component props interface
6
+ */
7
+ type DividerProps = {
8
+ /** Orientation of the divider */
9
+ orientation?: 'horizontal' | 'vertical';
10
+ /** Additional CSS classes to apply */
11
+ className?: string;
12
+ } & HTMLAttributes<HTMLHRElement>;
13
+ /**
14
+ * Divider component for Analytica Ensino platforms
15
+ *
16
+ * A simple divider component that creates a visual separation between content sections.
17
+ * Can be used both horizontally and vertically.
18
+ *
19
+ * @param orientation - The orientation of the divider (horizontal or vertical)
20
+ * @param className - Additional CSS classes
21
+ * @param props - All other standard hr HTML attributes
22
+ * @returns A styled divider element
23
+ *
24
+ * @example
25
+ * ```tsx
26
+ * <Divider orientation="horizontal" />
27
+ * <Divider orientation="vertical" className="h-8" />
28
+ * ```
29
+ */
30
+ declare const Divider: ({ orientation, className, ...props }: DividerProps) => react_jsx_runtime.JSX.Element;
31
+
32
+ export { Divider as default };
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/components/Divider/Divider.tsx
21
+ var Divider_exports = {};
22
+ __export(Divider_exports, {
23
+ default: () => Divider_default
24
+ });
25
+ module.exports = __toCommonJS(Divider_exports);
26
+ var import_jsx_runtime = require("react/jsx-runtime");
27
+ var Divider = ({
28
+ orientation = "horizontal",
29
+ className = "",
30
+ ...props
31
+ }) => {
32
+ const baseClasses = "bg-border-200 border-0";
33
+ const orientationClasses = {
34
+ horizontal: "w-full h-px",
35
+ vertical: "h-full w-px"
36
+ };
37
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
38
+ "hr",
39
+ {
40
+ className: `${baseClasses} ${orientationClasses[orientation]} ${className}`,
41
+ "aria-orientation": orientation,
42
+ ...props
43
+ }
44
+ );
45
+ };
46
+ var Divider_default = Divider;
47
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/Divider/Divider.tsx"],"sourcesContent":["import { HTMLAttributes } from 'react';\n\n/**\n * Divider component props interface\n */\ntype DividerProps = {\n /** Orientation of the divider */\n orientation?: 'horizontal' | 'vertical';\n /** Additional CSS classes to apply */\n className?: string;\n} & HTMLAttributes<HTMLHRElement>;\n\n/**\n * Divider component for Analytica Ensino platforms\n *\n * A simple divider component that creates a visual separation between content sections.\n * Can be used both horizontally and vertically.\n *\n * @param orientation - The orientation of the divider (horizontal or vertical)\n * @param className - Additional CSS classes\n * @param props - All other standard hr HTML attributes\n * @returns A styled divider element\n *\n * @example\n * ```tsx\n * <Divider orientation=\"horizontal\" />\n * <Divider orientation=\"vertical\" className=\"h-8\" />\n * ```\n */\nconst Divider = ({\n orientation = 'horizontal',\n className = '',\n ...props\n}: DividerProps) => {\n const baseClasses = 'bg-border-200 border-0';\n\n const orientationClasses = {\n horizontal: 'w-full h-px',\n vertical: 'h-full w-px',\n };\n\n return (\n <hr\n className={`${baseClasses} ${orientationClasses[orientation]} ${className}`}\n aria-orientation={orientation}\n {...props}\n />\n );\n};\n\nexport default Divider;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA0CI;AAbJ,IAAM,UAAU,CAAC;AAAA,EACf,cAAc;AAAA,EACd,YAAY;AAAA,EACZ,GAAG;AACL,MAAoB;AAClB,QAAM,cAAc;AAEpB,QAAM,qBAAqB;AAAA,IACzB,YAAY;AAAA,IACZ,UAAU;AAAA,EACZ;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,GAAG,WAAW,IAAI,mBAAmB,WAAW,CAAC,IAAI,SAAS;AAAA,MACzE,oBAAkB;AAAA,MACjB,GAAG;AAAA;AAAA,EACN;AAEJ;AAEA,IAAO,kBAAQ;","names":[]}
@@ -0,0 +1,26 @@
1
+ // src/components/Divider/Divider.tsx
2
+ import { jsx } from "react/jsx-runtime";
3
+ var Divider = ({
4
+ orientation = "horizontal",
5
+ className = "",
6
+ ...props
7
+ }) => {
8
+ const baseClasses = "bg-border-200 border-0";
9
+ const orientationClasses = {
10
+ horizontal: "w-full h-px",
11
+ vertical: "h-full w-px"
12
+ };
13
+ return /* @__PURE__ */ jsx(
14
+ "hr",
15
+ {
16
+ className: `${baseClasses} ${orientationClasses[orientation]} ${className}`,
17
+ "aria-orientation": orientation,
18
+ ...props
19
+ }
20
+ );
21
+ };
22
+ var Divider_default = Divider;
23
+ export {
24
+ Divider_default as default
25
+ };
26
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/Divider/Divider.tsx"],"sourcesContent":["import { HTMLAttributes } from 'react';\n\n/**\n * Divider component props interface\n */\ntype DividerProps = {\n /** Orientation of the divider */\n orientation?: 'horizontal' | 'vertical';\n /** Additional CSS classes to apply */\n className?: string;\n} & HTMLAttributes<HTMLHRElement>;\n\n/**\n * Divider component for Analytica Ensino platforms\n *\n * A simple divider component that creates a visual separation between content sections.\n * Can be used both horizontally and vertically.\n *\n * @param orientation - The orientation of the divider (horizontal or vertical)\n * @param className - Additional CSS classes\n * @param props - All other standard hr HTML attributes\n * @returns A styled divider element\n *\n * @example\n * ```tsx\n * <Divider orientation=\"horizontal\" />\n * <Divider orientation=\"vertical\" className=\"h-8\" />\n * ```\n */\nconst Divider = ({\n orientation = 'horizontal',\n className = '',\n ...props\n}: DividerProps) => {\n const baseClasses = 'bg-border-200 border-0';\n\n const orientationClasses = {\n horizontal: 'w-full h-px',\n vertical: 'h-full w-px',\n };\n\n return (\n <hr\n className={`${baseClasses} ${orientationClasses[orientation]} ${className}`}\n aria-orientation={orientation}\n {...props}\n />\n );\n};\n\nexport default Divider;\n"],"mappings":";AA0CI;AAbJ,IAAM,UAAU,CAAC;AAAA,EACf,cAAc;AAAA,EACd,YAAY;AAAA,EACZ,GAAG;AACL,MAAoB;AAClB,QAAM,cAAc;AAEpB,QAAM,qBAAqB;AAAA,IACzB,YAAY;AAAA,IACZ,UAAU;AAAA,EACZ;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,GAAG,WAAW,IAAI,mBAAmB,WAAW,CAAC,IAAI,SAAS;AAAA,MACzE,oBAAkB;AAAA,MACjB,GAAG;AAAA;AAAA,EACN;AAEJ;AAEA,IAAO,kBAAQ;","names":[]}
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { ReactNode, ButtonHTMLAttributes, HTMLAttributes } from 'react';
2
+ import { ReactNode, HTMLAttributes, ButtonHTMLAttributes } from 'react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { StoreApi } from 'zustand';
5
5
 
@@ -16,9 +16,13 @@ interface DropdownMenuProps {
16
16
  onOpenChange?: (open: boolean) => void;
17
17
  }
18
18
  declare const DropdownMenu: ({ children, open, onOpenChange }: DropdownMenuProps) => react_jsx_runtime.JSX.Element;
19
- declare const DropdownMenuTrigger: react.ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & {
20
- store?: DropdownStoreApi;
21
- } & react.RefAttributes<HTMLButtonElement>>;
19
+ declare const DropdownMenuTrigger: {
20
+ ({ className, children, onClick, store: externalStore, ...props }: HTMLAttributes<HTMLButtonElement> & {
21
+ disabled?: boolean;
22
+ store?: DropdownStoreApi;
23
+ }): react_jsx_runtime.JSX.Element;
24
+ displayName: string;
25
+ };
22
26
  declare const MenuLabel: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
23
27
  inset?: boolean;
24
28
  store?: DropdownStoreApi;
@@ -26,6 +30,7 @@ declare const MenuLabel: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivE
26
30
  declare const MenuContent: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
27
31
  align?: "start" | "center" | "end";
28
32
  side?: "top" | "right" | "bottom" | "left";
33
+ variant?: "menu" | "profile";
29
34
  sideOffset?: number;
30
35
  store?: DropdownStoreApi;
31
36
  } & react.RefAttributes<HTMLDivElement>>;
@@ -52,9 +57,12 @@ declare const ProfileMenuHeader: react.ForwardRefExoticComponent<HTMLAttributes<
52
57
  declare const ProfileMenuSection: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
53
58
  store?: DropdownStoreApi;
54
59
  } & react.RefAttributes<HTMLDivElement>>;
55
- declare const ProfileMenuFooter: react.ForwardRefExoticComponent<HTMLAttributes<HTMLButtonElement> & {
56
- disabled?: boolean;
57
- store?: DropdownStoreApi;
58
- } & react.RefAttributes<HTMLButtonElement>>;
60
+ declare const ProfileMenuFooter: {
61
+ ({ className, disabled, onClick, store: externalStore, ...props }: HTMLAttributes<HTMLButtonElement> & {
62
+ disabled?: boolean;
63
+ store?: DropdownStoreApi;
64
+ }): react_jsx_runtime.JSX.Element;
65
+ displayName: string;
66
+ };
59
67
 
60
68
  export { DropdownMenuTrigger, MenuContent, MenuItem, MenuLabel, MenuSeparator, ProfileMenuFooter, ProfileMenuHeader, ProfileMenuSection, ProfileMenuTrigger, createDropdownStore, DropdownMenu as default, useDropdownStore };
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { ReactNode, ButtonHTMLAttributes, HTMLAttributes } from 'react';
2
+ import { ReactNode, HTMLAttributes, ButtonHTMLAttributes } from 'react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { StoreApi } from 'zustand';
5
5
 
@@ -16,9 +16,13 @@ interface DropdownMenuProps {
16
16
  onOpenChange?: (open: boolean) => void;
17
17
  }
18
18
  declare const DropdownMenu: ({ children, open, onOpenChange }: DropdownMenuProps) => react_jsx_runtime.JSX.Element;
19
- declare const DropdownMenuTrigger: react.ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & {
20
- store?: DropdownStoreApi;
21
- } & react.RefAttributes<HTMLButtonElement>>;
19
+ declare const DropdownMenuTrigger: {
20
+ ({ className, children, onClick, store: externalStore, ...props }: HTMLAttributes<HTMLButtonElement> & {
21
+ disabled?: boolean;
22
+ store?: DropdownStoreApi;
23
+ }): react_jsx_runtime.JSX.Element;
24
+ displayName: string;
25
+ };
22
26
  declare const MenuLabel: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
23
27
  inset?: boolean;
24
28
  store?: DropdownStoreApi;
@@ -26,6 +30,7 @@ declare const MenuLabel: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivE
26
30
  declare const MenuContent: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
27
31
  align?: "start" | "center" | "end";
28
32
  side?: "top" | "right" | "bottom" | "left";
33
+ variant?: "menu" | "profile";
29
34
  sideOffset?: number;
30
35
  store?: DropdownStoreApi;
31
36
  } & react.RefAttributes<HTMLDivElement>>;
@@ -52,9 +57,12 @@ declare const ProfileMenuHeader: react.ForwardRefExoticComponent<HTMLAttributes<
52
57
  declare const ProfileMenuSection: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
53
58
  store?: DropdownStoreApi;
54
59
  } & react.RefAttributes<HTMLDivElement>>;
55
- declare const ProfileMenuFooter: react.ForwardRefExoticComponent<HTMLAttributes<HTMLButtonElement> & {
56
- disabled?: boolean;
57
- store?: DropdownStoreApi;
58
- } & react.RefAttributes<HTMLButtonElement>>;
60
+ declare const ProfileMenuFooter: {
61
+ ({ className, disabled, onClick, store: externalStore, ...props }: HTMLAttributes<HTMLButtonElement> & {
62
+ disabled?: boolean;
63
+ store?: DropdownStoreApi;
64
+ }): react_jsx_runtime.JSX.Element;
65
+ displayName: string;
66
+ };
59
67
 
60
68
  export { DropdownMenuTrigger, MenuContent, MenuItem, MenuLabel, MenuSeparator, ProfileMenuFooter, ProfileMenuHeader, ProfileMenuSection, ProfileMenuTrigger, createDropdownStore, DropdownMenu as default, useDropdownStore };