@proyecto-viviana/ui 0.1.3 → 0.1.5

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 (68) hide show
  1. package/dist/alert/index.d.ts +12 -0
  2. package/dist/alert/index.d.ts.map +1 -0
  3. package/dist/avatar/index.d.ts +17 -0
  4. package/dist/avatar/index.d.ts.map +1 -0
  5. package/dist/badge/index.d.ts +12 -0
  6. package/dist/badge/index.d.ts.map +1 -0
  7. package/dist/button/Button.d.ts +19 -0
  8. package/dist/button/Button.d.ts.map +1 -0
  9. package/dist/button/index.d.ts +3 -0
  10. package/dist/button/index.d.ts.map +1 -0
  11. package/dist/button/types.d.ts +23 -0
  12. package/dist/button/types.d.ts.map +1 -0
  13. package/dist/checkbox/index.d.ts +43 -0
  14. package/dist/checkbox/index.d.ts.map +1 -0
  15. package/dist/custom/calendar-card/index.d.ts +12 -0
  16. package/dist/custom/calendar-card/index.d.ts.map +1 -0
  17. package/dist/custom/chip/index.d.ts +11 -0
  18. package/dist/custom/chip/index.d.ts.map +1 -0
  19. package/dist/custom/conversation/index.d.ts +32 -0
  20. package/dist/custom/conversation/index.d.ts.map +1 -0
  21. package/dist/custom/event-card/index.d.ts +26 -0
  22. package/dist/custom/event-card/index.d.ts.map +1 -0
  23. package/dist/custom/lateral-nav/index.d.ts +32 -0
  24. package/dist/custom/lateral-nav/index.d.ts.map +1 -0
  25. package/dist/custom/logo/index.d.ts +26 -0
  26. package/dist/custom/logo/index.d.ts.map +1 -0
  27. package/dist/custom/nav-header/index.d.ts +12 -0
  28. package/dist/custom/nav-header/index.d.ts.map +1 -0
  29. package/dist/custom/page-layout/index.d.ts +11 -0
  30. package/dist/custom/page-layout/index.d.ts.map +1 -0
  31. package/dist/custom/profile-card/index.d.ts +12 -0
  32. package/dist/custom/profile-card/index.d.ts.map +1 -0
  33. package/dist/custom/project-card/index.d.ts +24 -0
  34. package/dist/custom/project-card/index.d.ts.map +1 -0
  35. package/dist/custom/timeline-item/index.d.ts +18 -0
  36. package/dist/custom/timeline-item/index.d.ts.map +1 -0
  37. package/dist/dialog/index.d.ts +18 -0
  38. package/dist/dialog/index.d.ts.map +1 -0
  39. package/dist/icon/icons/GitHubIcon.d.ts +7 -0
  40. package/dist/icon/icons/GitHubIcon.d.ts.map +1 -0
  41. package/dist/icon/index.d.ts +28 -0
  42. package/dist/icon/index.d.ts.map +1 -0
  43. package/dist/index.d.ts +51 -649
  44. package/dist/index.d.ts.map +1 -0
  45. package/dist/index.js +924 -578
  46. package/dist/index.js.map +1 -0
  47. package/dist/index.ssr.js +1657 -0
  48. package/dist/index.ssr.js.map +1 -0
  49. package/dist/link/index.d.ts +39 -0
  50. package/dist/link/index.d.ts.map +1 -0
  51. package/dist/progress-bar/index.d.ts +49 -0
  52. package/dist/progress-bar/index.d.ts.map +1 -0
  53. package/dist/radio/index.d.ts +43 -0
  54. package/dist/radio/index.d.ts.map +1 -0
  55. package/dist/separator/index.d.ts +42 -0
  56. package/dist/separator/index.d.ts.map +1 -0
  57. package/dist/switch/ToggleSwitch.d.ts +28 -0
  58. package/dist/switch/ToggleSwitch.d.ts.map +1 -0
  59. package/dist/switch/index.d.ts +26 -0
  60. package/dist/switch/index.d.ts.map +1 -0
  61. package/dist/test-utils/index.d.ts +44 -0
  62. package/dist/test-utils/index.d.ts.map +1 -0
  63. package/dist/textfield/index.d.ts +31 -0
  64. package/dist/textfield/index.d.ts.map +1 -0
  65. package/dist/tooltip/index.d.ts +17 -0
  66. package/dist/tooltip/index.d.ts.map +1 -0
  67. package/package.json +57 -58
  68. package/dist/index.jsx +0 -1533
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Switch components for proyecto-viviana-ui
3
+ *
4
+ * This file exports:
5
+ * - ToggleSwitch: The primary switch component built on solidaria-components
6
+ * (named to avoid conflict with SolidJS's built-in Switch)
7
+ * - TabSwitch: A custom two-option tab selector
8
+ */
9
+ import { type JSX } from 'solid-js';
10
+ export { ToggleSwitch, type ToggleSwitchProps, type SwitchSize } from './ToggleSwitch';
11
+ interface SwitchOption {
12
+ label: string;
13
+ value: string;
14
+ }
15
+ export interface TabSwitchProps {
16
+ options: SwitchOption[];
17
+ value?: string;
18
+ onChange?: (value: string) => void;
19
+ class?: string;
20
+ }
21
+ /**
22
+ * A tab-style switch that allows users to select between two options.
23
+ * This is a custom component, not based on solidaria/react-aria.
24
+ */
25
+ export declare function TabSwitch(props: TabSwitchProps): JSX.Element;
26
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/switch/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,KAAK,GAAG,EAA8B,MAAM,UAAU,CAAA;AAG/D,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAMtF,UAAU,YAAY;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,GAAG,GAAG,CAAC,OAAO,CAuD5D"}
@@ -0,0 +1,44 @@
1
+ import userEvent from '@testing-library/user-event';
2
+ /**
3
+ * Pointer map matching react-spectrum's test setup.
4
+ * Ensures pointer events have realistic dimensions so they aren't mistaken for virtual clicks.
5
+ */
6
+ export declare const pointerMap: ({
7
+ name: string;
8
+ pointerType: string;
9
+ button: string;
10
+ height: number;
11
+ width: number;
12
+ pressure: number;
13
+ } | {
14
+ name: string;
15
+ pointerType: string;
16
+ button: string;
17
+ height?: undefined;
18
+ width?: undefined;
19
+ pressure?: undefined;
20
+ } | {
21
+ name: string;
22
+ pointerType: string;
23
+ height: number;
24
+ width: number;
25
+ button?: undefined;
26
+ pressure?: undefined;
27
+ } | {
28
+ name: string;
29
+ pointerType: string;
30
+ button?: undefined;
31
+ height?: undefined;
32
+ width?: undefined;
33
+ pressure?: undefined;
34
+ })[];
35
+ /**
36
+ * Set up userEvent with react-spectrum's configuration.
37
+ * - delay: null - No artificial delays between actions
38
+ * - pointerMap - Realistic pointer event dimensions
39
+ * - pointerEventsCheck: Never - Skip pointer-events CSS check (jsdom doesn't handle this well)
40
+ */
41
+ export declare function setupUser(): import("@testing-library/user-event").UserEvent;
42
+ export { render, screen, fireEvent, cleanup } from '@solidjs/testing-library';
43
+ export { userEvent };
44
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/test-utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAGpD;;;GAGG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAOtB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,SAAS,oDAMxB;AAED,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * TextField component for proyecto-viviana-ui
3
+ *
4
+ * A styled text field component built on solidaria hooks directly.
5
+ * This bypasses solidaria-components for now due to context timing issues.
6
+ */
7
+ import { type JSX } from 'solid-js';
8
+ import { type AriaTextFieldProps } from '@proyecto-viviana/solidaria';
9
+ export type TextFieldSize = 'sm' | 'md' | 'lg';
10
+ export type TextFieldVariant = 'outline' | 'filled';
11
+ export interface TextFieldProps extends Omit<AriaTextFieldProps, 'children'> {
12
+ /** The size of the text field. */
13
+ size?: TextFieldSize;
14
+ /** The visual variant of the text field. */
15
+ variant?: TextFieldVariant;
16
+ /** Additional CSS class name. */
17
+ class?: string;
18
+ /** Label text for the input. */
19
+ label?: string;
20
+ /** Description text shown below the input. */
21
+ description?: string;
22
+ /** Error message shown when invalid. */
23
+ errorMessage?: string;
24
+ }
25
+ /**
26
+ * A text field allows users to enter a plain text value with a keyboard.
27
+ *
28
+ * Built directly on solidaria hooks for full accessibility support.
29
+ */
30
+ export declare function TextField(props: TextFieldProps): JSX.Element;
31
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/textfield/index.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,GAAG,EAAmD,MAAM,UAAU,CAAA;AACpF,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,6BAA6B,CAAA;AASpC,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAC9C,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,QAAQ,CAAA;AAEnD,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC;IAC1E,kCAAkC;IAClC,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,4CAA4C;IAC5C,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAC1B,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,8CAA8C;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,wCAAwC;IACxC,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AA4BD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,GAAG,GAAG,CAAC,OAAO,CA4I5D"}
@@ -0,0 +1,17 @@
1
+ import type { JSX } from 'solid-js';
2
+ export interface TooltipProps {
3
+ /** The content to show in the tooltip */
4
+ label: string;
5
+ /** The trigger element */
6
+ children: JSX.Element;
7
+ /** Position of the tooltip */
8
+ position?: 'top' | 'bottom';
9
+ /** Additional CSS class */
10
+ class?: string;
11
+ }
12
+ /**
13
+ * Tooltip component that shows a label on hover.
14
+ * Uses CSS-only hover effect for performance.
15
+ */
16
+ export declare function Tooltip(props: TooltipProps): JSX.Element;
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tooltip/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAA;IACb,0BAA0B;IAC1B,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAA;IACrB,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAA;IAC3B,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,GAAG,GAAG,CAAC,OAAO,CAaxD"}
package/package.json CHANGED
@@ -1,58 +1,57 @@
1
- {
2
- "name": "@proyecto-viviana/ui",
3
- "version": "0.1.3",
4
- "description": "Styled UI components for SolidJS - inspired by React Spectrum",
5
- "type": "module",
6
- "main": "./dist/index.js",
7
- "module": "./dist/index.js",
8
- "types": "./dist/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "solid": "./dist/index.jsx",
12
- "import": "./dist/index.js",
13
- "types": "./dist/index.d.ts"
14
- },
15
- "./theme.css": "./dist/theme.css",
16
- "./styles.css": "./dist/styles.css",
17
- "./components.css": "./dist/components.css"
18
- },
19
- "files": [
20
- "dist",
21
- "src"
22
- ],
23
- "sideEffects": [
24
- "*.css"
25
- ],
26
- "scripts": {
27
- "build": "tsup",
28
- "dev": "tsup --watch",
29
- "prepublishOnly": "bun run build"
30
- },
31
- "dependencies": {
32
- "@proyecto-viviana/solidaria": "^0.0.2",
33
- "@proyecto-viviana/solidaria-components": "^0.0.2"
34
- },
35
- "peerDependencies": {
36
- "solid-js": "^1.9.0"
37
- },
38
- "devDependencies": {
39
- "esbuild-plugin-solid": "^0.6.0",
40
- "solid-js": "^1.9.10",
41
- "tsup": "^8.0.0"
42
- },
43
- "keywords": [
44
- "solid",
45
- "solidjs",
46
- "ui",
47
- "components",
48
- "design-system"
49
- ],
50
- "license": "MIT",
51
- "repository": {
52
- "type": "git",
53
- "url": "https://github.com/proyecto-viviana/proyecto-viviana"
54
- },
55
- "publishConfig": {
56
- "access": "public"
57
- }
58
- }
1
+ {
2
+ "name": "@proyecto-viviana/ui",
3
+ "version": "0.1.5",
4
+ "description": "Styled UI components for SolidJS - inspired by React Spectrum",
5
+ "type": "module",
6
+ "main": "./dist/index.ssr.js",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "solid": "./dist/index.js",
12
+ "import": "./dist/index.js",
13
+ "node": "./dist/index.ssr.js",
14
+ "types": "./dist/index.d.ts"
15
+ },
16
+ "./theme.css": "./dist/theme.css",
17
+ "./styles.css": "./dist/styles.css",
18
+ "./components.css": "./dist/components.css"
19
+ },
20
+ "files": [
21
+ "dist",
22
+ "src"
23
+ ],
24
+ "sideEffects": [
25
+ "*.css"
26
+ ],
27
+ "scripts": {
28
+ "build": "tsup && tsc -p tsconfig.build.json",
29
+ "dev": "tsup --watch",
30
+ "prepublishOnly": "bun run build"
31
+ },
32
+ "dependencies": {
33
+ "@proyecto-viviana/solidaria": "^0.0.2",
34
+ "@proyecto-viviana/solidaria-components": "^0.0.2"
35
+ },
36
+ "peerDependencies": {
37
+ "solid-js": "^1.9.0"
38
+ },
39
+ "devDependencies": {
40
+ "solid-js": "^1.9.10"
41
+ },
42
+ "keywords": [
43
+ "solid",
44
+ "solidjs",
45
+ "ui",
46
+ "components",
47
+ "design-system"
48
+ ],
49
+ "license": "MIT",
50
+ "repository": {
51
+ "type": "git",
52
+ "url": "https://github.com/proyecto-viviana/proyecto-viviana"
53
+ },
54
+ "publishConfig": {
55
+ "access": "public"
56
+ }
57
+ }