@proyecto-viviana/ui 0.1.1 → 0.1.3
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.
- package/dist/index.d.ts +649 -51
- package/dist/index.js +232 -185
- package/dist/index.jsx +1533 -0
- package/package.json +9 -7
- package/dist/alert/index.d.ts +0 -12
- package/dist/alert/index.d.ts.map +0 -1
- package/dist/avatar/index.d.ts +0 -17
- package/dist/avatar/index.d.ts.map +0 -1
- package/dist/badge/index.d.ts +0 -12
- package/dist/badge/index.d.ts.map +0 -1
- package/dist/button/Button.d.ts +0 -19
- package/dist/button/Button.d.ts.map +0 -1
- package/dist/button/index.d.ts +0 -3
- package/dist/button/index.d.ts.map +0 -1
- package/dist/button/types.d.ts +0 -23
- package/dist/button/types.d.ts.map +0 -1
- package/dist/checkbox/index.d.ts +0 -43
- package/dist/checkbox/index.d.ts.map +0 -1
- package/dist/custom/calendar-card/index.d.ts +0 -12
- package/dist/custom/calendar-card/index.d.ts.map +0 -1
- package/dist/custom/chip/index.d.ts +0 -11
- package/dist/custom/chip/index.d.ts.map +0 -1
- package/dist/custom/conversation/index.d.ts +0 -32
- package/dist/custom/conversation/index.d.ts.map +0 -1
- package/dist/custom/event-card/index.d.ts +0 -26
- package/dist/custom/event-card/index.d.ts.map +0 -1
- package/dist/custom/lateral-nav/index.d.ts +0 -32
- package/dist/custom/lateral-nav/index.d.ts.map +0 -1
- package/dist/custom/logo/index.d.ts +0 -26
- package/dist/custom/logo/index.d.ts.map +0 -1
- package/dist/custom/nav-header/index.d.ts +0 -12
- package/dist/custom/nav-header/index.d.ts.map +0 -1
- package/dist/custom/page-layout/index.d.ts +0 -11
- package/dist/custom/page-layout/index.d.ts.map +0 -1
- package/dist/custom/profile-card/index.d.ts +0 -12
- package/dist/custom/profile-card/index.d.ts.map +0 -1
- package/dist/custom/project-card/index.d.ts +0 -24
- package/dist/custom/project-card/index.d.ts.map +0 -1
- package/dist/custom/timeline-item/index.d.ts +0 -18
- package/dist/custom/timeline-item/index.d.ts.map +0 -1
- package/dist/dialog/index.d.ts +0 -18
- package/dist/dialog/index.d.ts.map +0 -1
- package/dist/icon/icons/GitHubIcon.d.ts +0 -7
- package/dist/icon/icons/GitHubIcon.d.ts.map +0 -1
- package/dist/icon/index.d.ts +0 -28
- package/dist/icon/index.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/link/index.d.ts +0 -39
- package/dist/link/index.d.ts.map +0 -1
- package/dist/progress-bar/index.d.ts +0 -49
- package/dist/progress-bar/index.d.ts.map +0 -1
- package/dist/radio/index.d.ts +0 -43
- package/dist/radio/index.d.ts.map +0 -1
- package/dist/separator/index.d.ts +0 -42
- package/dist/separator/index.d.ts.map +0 -1
- package/dist/switch/ToggleSwitch.d.ts +0 -28
- package/dist/switch/ToggleSwitch.d.ts.map +0 -1
- package/dist/switch/index.d.ts +0 -26
- package/dist/switch/index.d.ts.map +0 -1
- package/dist/test-utils/index.d.ts +0 -44
- package/dist/test-utils/index.d.ts.map +0 -1
- package/dist/textfield/index.d.ts +0 -31
- package/dist/textfield/index.d.ts.map +0 -1
- package/dist/tooltip/index.d.ts +0 -17
- package/dist/tooltip/index.d.ts.map +0 -1
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ToggleSwitch component for proyecto-viviana-ui
|
|
3
|
-
*
|
|
4
|
-
* A styled switch component built on top of solidaria-components.
|
|
5
|
-
* This component only handles styling - all behavior and accessibility
|
|
6
|
-
* is provided by the headless Switch from solidaria-components.
|
|
7
|
-
*
|
|
8
|
-
* Named "ToggleSwitch" to avoid conflict with SolidJS's built-in Switch component.
|
|
9
|
-
*/
|
|
10
|
-
import { type JSX } from 'solid-js';
|
|
11
|
-
import { type ToggleSwitchProps as HeadlessToggleSwitchProps } from '@proyecto-viviana/solidaria-components';
|
|
12
|
-
export type SwitchSize = 'sm' | 'md' | 'lg';
|
|
13
|
-
export interface ToggleSwitchProps extends Omit<HeadlessToggleSwitchProps, 'class' | 'children'> {
|
|
14
|
-
/** The size of the switch. */
|
|
15
|
-
size?: SwitchSize;
|
|
16
|
-
/** Additional CSS class name. */
|
|
17
|
-
class?: string;
|
|
18
|
-
/** Label text for the switch. */
|
|
19
|
-
children?: JSX.Element;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* A switch allows users to toggle between two mutually exclusive states.
|
|
23
|
-
*
|
|
24
|
-
* Built on solidaria-components Switch for full accessibility support.
|
|
25
|
-
* Named "ToggleSwitch" to avoid conflict with SolidJS's built-in Switch component.
|
|
26
|
-
*/
|
|
27
|
-
export declare function ToggleSwitch(props: ToggleSwitchProps): JSX.Element;
|
|
28
|
-
//# sourceMappingURL=ToggleSwitch.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleSwitch.d.ts","sourceRoot":"","sources":["../../src/switch/ToggleSwitch.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,KAAK,GAAG,EAA6C,MAAM,UAAU,CAAC;AAC/E,OAAO,EAAwC,KAAK,iBAAiB,IAAI,yBAAyB,EAAgC,MAAM,wCAAwC,CAAC;AAMjL,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE5C,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,yBAAyB,EAAE,OAAO,GAAG,UAAU,CAAC;IAC9F,8BAA8B;IAC9B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iCAAiC;IACjC,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;CACxB;AA4BD;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,GAAG,CAAC,OAAO,CAoDlE"}
|
package/dist/switch/index.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,44 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,31 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/tooltip/index.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|