@exsto/ds 0.0.0-stage → 0.0.1-rc.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.
- package/LICENSE +202 -0
- package/README.md +84 -2
- package/dist/chunks/toggle-group-ByNq8g7H.js +4263 -0
- package/dist/chunks/toggle-group-ByNq8g7H.js.map +1 -0
- package/dist/dom/src/context.d.ts +34 -0
- package/dist/dom/src/define-element.d.ts +11 -0
- package/dist/dom/src/define-element.test.d.ts +1 -0
- package/dist/dom/src/field-control.d.ts +5 -0
- package/dist/dom/src/index.d.ts +6 -0
- package/dist/dom/src/mode.d.ts +8 -0
- package/dist/dom/src/native-slot.test.d.ts +1 -0
- package/dist/dom/src/styles.d.ts +6 -0
- package/dist/dom/src/theme-state.d.ts +1 -0
- package/dist/dom/src/types.d.ts +65 -0
- package/dist/ds/src/elements.d.ts +12 -0
- package/dist/ds/src/index.d.ts +8 -0
- package/dist/elements/src/edx-accordion.d.ts +14 -0
- package/dist/elements/src/edx-accordion.test.d.ts +1 -0
- package/dist/elements/src/edx-alert.d.ts +14 -0
- package/dist/elements/src/edx-audio-player.d.ts +11 -0
- package/dist/elements/src/edx-avatar.d.ts +10 -0
- package/dist/elements/src/edx-badge.d.ts +12 -0
- package/dist/elements/src/edx-breadcrumb.d.ts +11 -0
- package/dist/elements/src/edx-button-group.d.ts +7 -0
- package/dist/elements/src/edx-button.d.ts +20 -0
- package/dist/elements/src/edx-calendar.d.ts +21 -0
- package/dist/elements/src/edx-card.d.ts +8 -0
- package/dist/elements/src/edx-checkbox.d.ts +18 -0
- package/dist/elements/src/edx-combobox.d.ts +28 -0
- package/dist/elements/src/edx-content-components.d.ts +2 -0
- package/dist/elements/src/edx-dialog.d.ts +20 -0
- package/dist/elements/src/edx-drawer.d.ts +21 -0
- package/dist/elements/src/edx-dropdown-menu.d.ts +29 -0
- package/dist/elements/src/edx-field.d.ts +9 -0
- package/dist/elements/src/edx-field.test.d.ts +1 -0
- package/dist/elements/src/edx-indicator.d.ts +14 -0
- package/dist/elements/src/edx-input-group.d.ts +32 -0
- package/dist/elements/src/edx-input-otp.d.ts +19 -0
- package/dist/elements/src/edx-input.d.ts +31 -0
- package/dist/elements/src/edx-interactive-components.d.ts +2 -0
- package/dist/elements/src/edx-label.d.ts +6 -0
- package/dist/elements/src/edx-pagination.d.ts +8 -0
- package/dist/elements/src/edx-popover.d.ts +24 -0
- package/dist/elements/src/edx-progress.d.ts +10 -0
- package/dist/elements/src/edx-radio-group.d.ts +22 -0
- package/dist/elements/src/edx-radio-group.test.d.ts +1 -0
- package/dist/elements/src/edx-scroll-area.d.ts +15 -0
- package/dist/elements/src/edx-scroll-area.test.d.ts +1 -0
- package/dist/elements/src/edx-select.d.ts +34 -0
- package/dist/elements/src/edx-separator.d.ts +10 -0
- package/dist/elements/src/edx-skeleton.d.ts +8 -0
- package/dist/elements/src/edx-slider.d.ts +17 -0
- package/dist/elements/src/edx-slider.test.d.ts +1 -0
- package/dist/elements/src/edx-switch.d.ts +18 -0
- package/dist/elements/src/edx-table.d.ts +13 -0
- package/dist/elements/src/edx-table.test.d.ts +1 -0
- package/dist/elements/src/edx-tabs.d.ts +15 -0
- package/dist/elements/src/edx-tabs.test.d.ts +1 -0
- package/dist/elements/src/edx-textarea.d.ts +25 -0
- package/dist/elements/src/edx-toggle-group.d.ts +27 -0
- package/dist/elements/src/edx-toggle-group.test.d.ts +1 -0
- package/dist/elements/src/edx-toggle.d.ts +18 -0
- package/dist/elements/src/edx-tooltip.d.ts +28 -0
- package/dist/elements/src/edx-video-player.d.ts +16 -0
- package/dist/elements/src/field-control-bridge.d.ts +7 -0
- package/dist/elements/src/index.d.ts +14 -0
- package/dist/elements/src/projected-content.test.d.ts +1 -0
- package/dist/elements/src/registry.d.ts +39 -0
- package/dist/elements/src/registry.test.d.ts +1 -0
- package/dist/elements.js +4020 -0
- package/dist/elements.js.map +1 -0
- package/dist/index.js +2 -0
- package/dist/styles.css +7486 -0
- package/dist/styles.css.d.ts +2 -0
- package/dist/theme/src/index.d.ts +4 -0
- package/dist/ui/src/components/edyn/audio-player/audio-player.d.ts +29 -0
- package/dist/ui/src/components/edyn/audio-player/index.d.ts +1 -0
- package/dist/ui/src/components/edyn/video-player/index.d.ts +1 -0
- package/dist/ui/src/components/edyn/video-player/video-player.d.ts +55 -0
- package/dist/ui/src/components/ui/accordion/accordion.behavior.test.d.ts +13 -0
- package/dist/ui/src/components/ui/accordion/accordion.d.ts +27 -0
- package/dist/ui/src/components/ui/accordion/index.d.ts +1 -0
- package/dist/ui/src/components/ui/alert/alert.d.ts +10 -0
- package/dist/ui/src/components/ui/alert/index.d.ts +1 -0
- package/dist/ui/src/components/ui/alert-dialog/alert-dialog.d.ts +17 -0
- package/dist/ui/src/components/ui/alert-dialog/index.d.ts +1 -0
- package/dist/ui/src/components/ui/aspect-ratio/aspect-ratio.d.ts +3 -0
- package/dist/ui/src/components/ui/aspect-ratio/index.d.ts +1 -0
- package/dist/ui/src/components/ui/attachment/attachment.d.ts +23 -0
- package/dist/ui/src/components/ui/attachment/index.d.ts +1 -0
- package/dist/ui/src/components/ui/avatar/avatar.d.ts +10 -0
- package/dist/ui/src/components/ui/avatar/index.d.ts +1 -0
- package/dist/ui/src/components/ui/badge/badge.d.ts +7 -0
- package/dist/ui/src/components/ui/badge/index.d.ts +1 -0
- package/dist/ui/src/components/ui/breadcrumb/breadcrumb.d.ts +9 -0
- package/dist/ui/src/components/ui/breadcrumb/index.d.ts +1 -0
- package/dist/ui/src/components/ui/bubble/bubble.d.ts +16 -0
- package/dist/ui/src/components/ui/bubble/index.d.ts +1 -0
- package/dist/ui/src/components/ui/button/button.d.ts +7 -0
- package/dist/ui/src/components/ui/button/index.d.ts +1 -0
- package/dist/ui/src/components/ui/button-group/button-group.d.ts +12 -0
- package/dist/ui/src/components/ui/button-group/index.d.ts +1 -0
- package/dist/ui/src/components/ui/calendar/calendar.d.ts +9 -0
- package/dist/ui/src/components/ui/calendar/index.d.ts +1 -0
- package/dist/ui/src/components/ui/card/card.d.ts +10 -0
- package/dist/ui/src/components/ui/card/index.d.ts +1 -0
- package/dist/ui/src/components/ui/carousel/carousel.d.ts +28 -0
- package/dist/ui/src/components/ui/carousel/index.d.ts +3 -0
- package/dist/ui/src/components/ui/chart/chart.d.ts +44 -0
- package/dist/ui/src/components/ui/chart/index.d.ts +3 -0
- package/dist/ui/src/components/ui/checkbox/checkbox.d.ts +2 -0
- package/dist/ui/src/components/ui/checkbox/index.d.ts +1 -0
- package/dist/ui/src/components/ui/collapsible/collapsible.d.ts +4 -0
- package/dist/ui/src/components/ui/collapsible/index.d.ts +1 -0
- package/dist/ui/src/components/ui/combobox/combobox.d.ts +15 -0
- package/dist/ui/src/components/ui/combobox/index.d.ts +1 -0
- package/dist/ui/src/components/ui/command/command.d.ts +18 -0
- package/dist/ui/src/components/ui/command/index.d.ts +1 -0
- package/dist/ui/src/components/ui/context-menu/context-menu.d.ts +28 -0
- package/dist/ui/src/components/ui/context-menu/index.d.ts +1 -0
- package/dist/ui/src/components/ui/dialog/dialog.d.ts +16 -0
- package/dist/ui/src/components/ui/dialog/index.d.ts +1 -0
- package/dist/ui/src/components/ui/direction/direction.d.ts +1 -0
- package/dist/ui/src/components/ui/direction/index.d.ts +1 -0
- package/dist/ui/src/components/ui/drawer/drawer.d.ts +15 -0
- package/dist/ui/src/components/ui/drawer/index.d.ts +1 -0
- package/dist/ui/src/components/ui/dropdown-menu/dropdown-menu.d.ts +28 -0
- package/dist/ui/src/components/ui/dropdown-menu/index.d.ts +1 -0
- package/dist/ui/src/components/ui/empty/empty.d.ts +11 -0
- package/dist/ui/src/components/ui/empty/index.d.ts +1 -0
- package/dist/ui/src/components/ui/field/field.d.ts +5 -0
- package/dist/ui/src/components/ui/field/index.d.ts +1 -0
- package/dist/ui/src/components/ui/hover-card/hover-card.d.ts +4 -0
- package/dist/ui/src/components/ui/hover-card/index.d.ts +1 -0
- package/dist/ui/src/components/ui/indicator/index.d.ts +1 -0
- package/dist/ui/src/components/ui/indicator/indicator.d.ts +10 -0
- package/dist/ui/src/components/ui/input/index.d.ts +1 -0
- package/dist/ui/src/components/ui/input/input.d.ts +2 -0
- package/dist/ui/src/components/ui/input-group/index.d.ts +1 -0
- package/dist/ui/src/components/ui/input-group/input-group.d.ts +26 -0
- package/dist/ui/src/components/ui/input-otp/index.d.ts +1 -0
- package/dist/ui/src/components/ui/input-otp/input-otp.d.ts +10 -0
- package/dist/ui/src/components/ui/item/index.d.ts +1 -0
- package/dist/ui/src/components/ui/item/item.d.ts +22 -0
- package/dist/ui/src/components/ui/kbd/index.d.ts +1 -0
- package/dist/ui/src/components/ui/kbd/kbd.d.ts +2 -0
- package/dist/ui/src/components/ui/label/index.d.ts +1 -0
- package/dist/ui/src/components/ui/label/label.d.ts +2 -0
- package/dist/ui/src/components/ui/marker/index.d.ts +1 -0
- package/dist/ui/src/components/ui/marker/marker.d.ts +9 -0
- package/dist/ui/src/components/ui/menubar/index.d.ts +1 -0
- package/dist/ui/src/components/ui/menubar/menubar.d.ts +28 -0
- package/dist/ui/src/components/ui/message/index.d.ts +1 -0
- package/dist/ui/src/components/ui/message/message.d.ts +9 -0
- package/dist/ui/src/components/ui/message-scroller/index.d.ts +1 -0
- package/dist/ui/src/components/ui/message-scroller/message-scroller.d.ts +10 -0
- package/dist/ui/src/components/ui/native-select/index.d.ts +1 -0
- package/dist/ui/src/components/ui/native-select/native-select.d.ts +8 -0
- package/dist/ui/src/components/ui/navigation-menu/index.d.ts +1 -0
- package/dist/ui/src/components/ui/navigation-menu/navigation-menu.d.ts +10 -0
- package/dist/ui/src/components/ui/pagination/index.d.ts +1 -0
- package/dist/ui/src/components/ui/pagination/pagination.behavior.test.d.ts +1 -0
- package/dist/ui/src/components/ui/pagination/pagination.d.ts +17 -0
- package/dist/ui/src/components/ui/pagination/pagination.test.d.ts +1 -0
- package/dist/ui/src/components/ui/popover/index.d.ts +1 -0
- package/dist/ui/src/components/ui/popover/popover.d.ts +8 -0
- package/dist/ui/src/components/ui/progress/index.d.ts +1 -0
- package/dist/ui/src/components/ui/progress/progress.d.ts +5 -0
- package/dist/ui/src/components/ui/questionnaire/index.d.ts +1 -0
- package/dist/ui/src/components/ui/questionnaire/questionnaire.d.ts +18 -0
- package/dist/ui/src/components/ui/radio-group/index.d.ts +1 -0
- package/dist/ui/src/components/ui/radio-group/radio-group.d.ts +10 -0
- package/dist/ui/src/components/ui/resizable/index.d.ts +1 -0
- package/dist/ui/src/components/ui/resizable/resizable.d.ts +6 -0
- package/dist/ui/src/components/ui/scroll-area/index.d.ts +1 -0
- package/dist/ui/src/components/ui/scroll-area/scroll-area.d.ts +32 -0
- package/dist/ui/src/components/ui/select/index.d.ts +1 -0
- package/dist/ui/src/components/ui/select/select.d.ts +17 -0
- package/dist/ui/src/components/ui/separator/index.d.ts +1 -0
- package/dist/ui/src/components/ui/separator/separator.d.ts +2 -0
- package/dist/ui/src/components/ui/sheet/index.d.ts +1 -0
- package/dist/ui/src/components/ui/sheet/sheet.d.ts +13 -0
- package/dist/ui/src/components/ui/sidebar/index.d.ts +1 -0
- package/dist/ui/src/components/ui/sidebar/sidebar.d.ts +63 -0
- package/dist/ui/src/components/ui/skeleton/index.d.ts +1 -0
- package/dist/ui/src/components/ui/skeleton/skeleton.d.ts +1 -0
- package/dist/ui/src/components/ui/slider/index.d.ts +1 -0
- package/dist/ui/src/components/ui/slider/slider.d.ts +17 -0
- package/dist/ui/src/components/ui/spinner/index.d.ts +1 -0
- package/dist/ui/src/components/ui/spinner/spinner.d.ts +5 -0
- package/dist/ui/src/components/ui/switch/index.d.ts +1 -0
- package/dist/ui/src/components/ui/switch/switch.d.ts +4 -0
- package/dist/ui/src/components/ui/table/index.d.ts +1 -0
- package/dist/ui/src/components/ui/table/table.behavior.test.d.ts +10 -0
- package/dist/ui/src/components/ui/table/table.d.ts +9 -0
- package/dist/ui/src/components/ui/tabs/index.d.ts +1 -0
- package/dist/ui/src/components/ui/tabs/tabs.behavior.test.d.ts +21 -0
- package/dist/ui/src/components/ui/tabs/tabs.d.ts +35 -0
- package/dist/ui/src/components/ui/textarea/index.d.ts +1 -0
- package/dist/ui/src/components/ui/textarea/textarea.d.ts +2 -0
- package/dist/ui/src/components/ui/toast/index.d.ts +1 -0
- package/dist/ui/src/components/ui/toast/toast.d.ts +15 -0
- package/dist/ui/src/components/ui/toggle/index.d.ts +1 -0
- package/dist/ui/src/components/ui/toggle/toggle.d.ts +8 -0
- package/dist/ui/src/components/ui/toggle-group/index.d.ts +1 -0
- package/dist/ui/src/components/ui/toggle-group/toggle-group.d.ts +7 -0
- package/dist/ui/src/components/ui/tooltip/index.d.ts +1 -0
- package/dist/ui/src/components/ui/tooltip/tooltip.d.ts +5 -0
- package/dist/ui/src/hooks/use-media-player.d.ts +29 -0
- package/dist/ui/src/hooks/use-merged-refs.d.ts +4 -0
- package/dist/ui/src/hooks/use-mobile.d.ts +1 -0
- package/dist/ui/src/index.d.ts +68 -0
- package/dist/ui/src/lib/utils.d.ts +13 -0
- package/package.json +72 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tabs';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A11y + keyboard-nav test for Tabs.
|
|
3
|
+
*
|
|
4
|
+
* PATH TAKEN: happy-dom unit test for roles/aria + onValueChange callback.
|
|
5
|
+
* Arrow-key navigation moves focus but does NOT auto-select in Base UI's default
|
|
6
|
+
* (activateOnFocus=false) mode; the user presses Enter/Space (or clicks) to
|
|
7
|
+
* activate. In happy-dom, native button click-from-keyboard is not fully
|
|
8
|
+
* emulated, so we:
|
|
9
|
+
* 1. Assert roles and aria attributes (role=tablist, role=tab, aria-selected,
|
|
10
|
+
* role=tabpanel) to confirm a11y-by-construction.
|
|
11
|
+
* 2. Assert that clicking a tab calls onValueChange with the correct value.
|
|
12
|
+
* 3. Assert that ArrowRight on the tablist fires a keydown and moves the
|
|
13
|
+
* composite highlight (the CompositeRoot processes the event). We verify
|
|
14
|
+
* this by confirming the tablist receives keydown and the handler runs
|
|
15
|
+
* without error.
|
|
16
|
+
* 4. For full browser-level arrow-key navigation proof, see the Playwright
|
|
17
|
+
* e2e suite (e2e/open-popups.spec.ts pattern); a dedicated tabs e2e test
|
|
18
|
+
* should be added there to verify roving tabindex focus movement in a real
|
|
19
|
+
* browser.
|
|
20
|
+
*/
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
export interface ITabsProps {
|
|
4
|
+
/** Controlled selected tab. Provide with `onValueChange`. */
|
|
5
|
+
value?: string;
|
|
6
|
+
/** Uncontrolled initial tab. Use this when the component should own its state. */
|
|
7
|
+
defaultValue?: string;
|
|
8
|
+
onValueChange?: (value: string) => void;
|
|
9
|
+
className?: string;
|
|
10
|
+
orientation?: 'horizontal' | 'vertical';
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare const Tabs: ({ value, defaultValue, onValueChange, className, orientation, children }: ITabsProps) => React.JSX.Element;
|
|
14
|
+
export declare const tabsListVariants: (props?: ({
|
|
15
|
+
variant?: "default" | "line" | null | undefined;
|
|
16
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
17
|
+
export interface ITabsListProps extends VariantProps<typeof tabsListVariants> {
|
|
18
|
+
className?: string;
|
|
19
|
+
children: React.ReactNode;
|
|
20
|
+
}
|
|
21
|
+
export declare const TabsList: ({ className, variant, children }: ITabsListProps) => React.JSX.Element;
|
|
22
|
+
export interface ITabsTriggerProps {
|
|
23
|
+
value: string;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
className?: string;
|
|
26
|
+
children: React.ReactNode;
|
|
27
|
+
}
|
|
28
|
+
export declare const TabsTrigger: ({ value, disabled, className, children }: ITabsTriggerProps) => React.JSX.Element;
|
|
29
|
+
export interface ITabsContentProps {
|
|
30
|
+
value: string;
|
|
31
|
+
keepMounted?: boolean;
|
|
32
|
+
className?: string;
|
|
33
|
+
children: React.ReactNode;
|
|
34
|
+
}
|
|
35
|
+
export declare const TabsContent: ({ value, keepMounted, className, children }: ITabsContentProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './textarea';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './toast';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Toast as ToastPrimitive } from '@base-ui/react/toast';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
export declare const toast: import('@base-ui/react').ToastManager<any>;
|
|
4
|
+
export declare const ToastProvider: ({ ...props }: ToastPrimitive.Provider.Props) => React.JSX.Element;
|
|
5
|
+
export declare const ToastPortal: ({ ...props }: ToastPrimitive.Portal.Props) => React.JSX.Element;
|
|
6
|
+
export declare const ToastViewport: ({ className, ...props }: ToastPrimitive.Viewport.Props) => React.JSX.Element;
|
|
7
|
+
export declare const Toast: ({ className, ...props }: ToastPrimitive.Root.Props) => React.JSX.Element;
|
|
8
|
+
export declare const ToastContent: ({ className, ...props }: ToastPrimitive.Content.Props) => React.JSX.Element;
|
|
9
|
+
export declare const ToastTitle: ({ className, ...props }: ToastPrimitive.Title.Props) => React.JSX.Element;
|
|
10
|
+
export declare const ToastDescription: ({ className, ...props }: ToastPrimitive.Description.Props) => React.JSX.Element;
|
|
11
|
+
export declare const ToastAction: ({ className, render, ...props }: ToastPrimitive.Action.Props) => React.JSX.Element;
|
|
12
|
+
export declare const ToastClose: ({ className, children, render, ...props }: ToastPrimitive.Close.Props) => React.JSX.Element;
|
|
13
|
+
export declare const Toaster: ({ children, toastManager, ...props }: ToastPrimitive.Provider.Props) => React.JSX.Element;
|
|
14
|
+
export declare const createToastManager: typeof ToastPrimitive.createToastManager;
|
|
15
|
+
export declare const useToastManager: typeof ToastPrimitive.useToastManager;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './toggle';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Toggle as TogglePrimitive } from '@base-ui/react/toggle';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
export declare const toggleVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "outline" | null | undefined;
|
|
5
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export type TToggleVariants = VariantProps<typeof toggleVariants>;
|
|
8
|
+
export declare const Toggle: <Value extends string>({ className, variant, size, ...props }: TogglePrimitive.Props<Value> & TToggleVariants) => import('react').JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './toggle-group';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Toggle as TogglePrimitive } from '@base-ui/react/toggle';
|
|
2
|
+
import { ToggleGroup as ToggleGroupPrimitive } from '@base-ui/react/toggle-group';
|
|
3
|
+
import { TToggleVariants } from '../toggle/toggle';
|
|
4
|
+
export declare const ToggleGroup: <Value extends string>({ className, variant, size, spacing, orientation, children, ...props }: ToggleGroupPrimitive.Props<Value> & TToggleVariants & {
|
|
5
|
+
spacing?: number;
|
|
6
|
+
}) => import('react').JSX.Element;
|
|
7
|
+
export declare const ToggleGroupItem: <Value extends string>({ className, variant, size, ...props }: TogglePrimitive.Props<Value> & TToggleVariants) => import('react').JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tooltip';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Tooltip as TooltipPrimitive } from '@base-ui/react/tooltip';
|
|
2
|
+
export declare const TooltipProvider: ({ delay, ...props }: TooltipPrimitive.Provider.Props) => import('react').JSX.Element;
|
|
3
|
+
export declare const Tooltip: ({ ...props }: TooltipPrimitive.Root.Props) => import('react').JSX.Element;
|
|
4
|
+
export declare const TooltipTrigger: ({ ...props }: TooltipPrimitive.Trigger.Props) => import('react').JSX.Element;
|
|
5
|
+
export declare const TooltipContent: ({ className, side, sideOffset, align, alignOffset, children, ...props }: TooltipPrimitive.Popup.Props & Pick<TooltipPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">) => import('react').JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface IMediaPlayerState {
|
|
3
|
+
playing: boolean;
|
|
4
|
+
currentTime: number;
|
|
5
|
+
duration: number;
|
|
6
|
+
volume: number;
|
|
7
|
+
muted: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface IUseMediaPlayerOptions {
|
|
10
|
+
onPlay?: () => void;
|
|
11
|
+
onPause?: () => void;
|
|
12
|
+
onEnded?: () => void;
|
|
13
|
+
onTimeUpdate?: (currentTime: number, duration: number) => void;
|
|
14
|
+
}
|
|
15
|
+
export interface IUseMediaPlayerResult<TElement extends HTMLMediaElement> extends IMediaPlayerState {
|
|
16
|
+
refMedia: React.RefObject<TElement | null>;
|
|
17
|
+
toggle: () => void;
|
|
18
|
+
seek: (seconds: number) => void;
|
|
19
|
+
changeVolume: (volume: number) => void;
|
|
20
|
+
toggleMute: () => void;
|
|
21
|
+
}
|
|
22
|
+
/** `0:00` for anything that is not a finite, non-negative number, so a loading or errored source still renders. */
|
|
23
|
+
export declare const formatMediaTime: (seconds: number) => string;
|
|
24
|
+
/**
|
|
25
|
+
* Shared playback engine for the Audio and Video players. Both wrap the same
|
|
26
|
+
* HTMLMediaElement API, so the state machine lives here once and each component
|
|
27
|
+
* owns only its own layout and controls.
|
|
28
|
+
*/
|
|
29
|
+
export declare const useMediaPlayer: <TElement extends HTMLMediaElement>(options?: IUseMediaPlayerOptions) => IUseMediaPlayerResult<TElement>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useIsMobile: () => boolean;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export * from './components/edyn/audio-player';
|
|
2
|
+
export * from './components/edyn/video-player';
|
|
3
|
+
export * from './components/ui/accordion';
|
|
4
|
+
export * from './components/ui/alert';
|
|
5
|
+
export * from './components/ui/alert-dialog';
|
|
6
|
+
export * from './components/ui/aspect-ratio';
|
|
7
|
+
export * from './components/ui/attachment';
|
|
8
|
+
export * from './components/ui/avatar';
|
|
9
|
+
export * from './components/ui/badge';
|
|
10
|
+
export * from './components/ui/breadcrumb';
|
|
11
|
+
export * from './components/ui/bubble';
|
|
12
|
+
export * from './components/ui/button';
|
|
13
|
+
export * from './components/ui/button-group';
|
|
14
|
+
export * from './components/ui/calendar';
|
|
15
|
+
export * from './components/ui/card';
|
|
16
|
+
export * from './components/ui/carousel';
|
|
17
|
+
export * from './components/ui/chart';
|
|
18
|
+
export * from './components/ui/checkbox';
|
|
19
|
+
export * from './components/ui/collapsible';
|
|
20
|
+
export * from './components/ui/combobox';
|
|
21
|
+
export * from './components/ui/command';
|
|
22
|
+
export * from './components/ui/context-menu';
|
|
23
|
+
export * from './components/ui/dialog';
|
|
24
|
+
export * from './components/ui/direction';
|
|
25
|
+
export * from './components/ui/drawer';
|
|
26
|
+
export * from './components/ui/dropdown-menu';
|
|
27
|
+
export * from './components/ui/empty';
|
|
28
|
+
export * from './components/ui/field';
|
|
29
|
+
export * from './components/ui/hover-card';
|
|
30
|
+
export * from './components/ui/indicator';
|
|
31
|
+
export * from './components/ui/input';
|
|
32
|
+
export * from './components/ui/input-group';
|
|
33
|
+
export * from './components/ui/input-otp';
|
|
34
|
+
export * from './components/ui/item';
|
|
35
|
+
export * from './components/ui/kbd';
|
|
36
|
+
export * from './components/ui/label';
|
|
37
|
+
export * from './components/ui/marker';
|
|
38
|
+
export * from './components/ui/menubar';
|
|
39
|
+
export * from './components/ui/message';
|
|
40
|
+
export * from './components/ui/message-scroller';
|
|
41
|
+
export * from './components/ui/native-select';
|
|
42
|
+
export * from './components/ui/navigation-menu';
|
|
43
|
+
export * from './components/ui/pagination';
|
|
44
|
+
export * from './components/ui/popover';
|
|
45
|
+
export * from './components/ui/progress';
|
|
46
|
+
export * from './components/ui/questionnaire';
|
|
47
|
+
export * from './components/ui/radio-group';
|
|
48
|
+
export * from './components/ui/resizable';
|
|
49
|
+
export * from './components/ui/scroll-area';
|
|
50
|
+
export * from './components/ui/select';
|
|
51
|
+
export * from './components/ui/separator';
|
|
52
|
+
export * from './components/ui/sheet';
|
|
53
|
+
export * from './components/ui/sidebar';
|
|
54
|
+
export * from './components/ui/skeleton';
|
|
55
|
+
export * from './components/ui/slider';
|
|
56
|
+
export * from './components/ui/spinner';
|
|
57
|
+
export * from './components/ui/switch';
|
|
58
|
+
export * from './components/ui/table';
|
|
59
|
+
export * from './components/ui/tabs';
|
|
60
|
+
export * from './components/ui/textarea';
|
|
61
|
+
export * from './components/ui/toast';
|
|
62
|
+
export * from './components/ui/toggle';
|
|
63
|
+
export * from './components/ui/toggle-group';
|
|
64
|
+
export * from './components/ui/tooltip';
|
|
65
|
+
export * from './hooks/use-media-player';
|
|
66
|
+
export * from './hooks/use-merged-refs';
|
|
67
|
+
export * from './hooks/use-mobile';
|
|
68
|
+
export { cn } from './lib/utils';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
export declare const cn: (...inputs: ClassValue[]) => string;
|
|
3
|
+
/** A CSS length as a component prop: a number is px, a string is used verbatim. */
|
|
4
|
+
export type TCssLength = number | string;
|
|
5
|
+
/**
|
|
6
|
+
* Normalise a size prop to a CSS length.
|
|
7
|
+
*
|
|
8
|
+
* Bare numbers become px, which is also what a bare numeric *string* means: an
|
|
9
|
+
* element attribute arrives as a string, so `width="480"` and `width={480}` have
|
|
10
|
+
* to land on the same value. Anything with a unit, a percentage or a keyword
|
|
11
|
+
* passes through untouched.
|
|
12
|
+
*/
|
|
13
|
+
export declare const cssLength: (value: TCssLength | null | undefined) => string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,74 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exsto/ds",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.0.1-rc.1",
|
|
4
|
+
"description": "The eDynamix design system: React components, design tokens, and optional web components.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"exsto",
|
|
8
|
+
"edynamix",
|
|
9
|
+
"design-system",
|
|
10
|
+
"react",
|
|
11
|
+
"components",
|
|
12
|
+
"ui",
|
|
13
|
+
"web-components",
|
|
14
|
+
"tailwind"
|
|
15
|
+
],
|
|
16
|
+
"type": "module",
|
|
17
|
+
"sideEffects": [
|
|
18
|
+
"**/*.css"
|
|
19
|
+
],
|
|
20
|
+
"files": [
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./dist/ds/src/index.d.ts",
|
|
29
|
+
"default": "./dist/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./elements": {
|
|
32
|
+
"types": "./dist/ds/src/elements.d.ts",
|
|
33
|
+
"default": "./dist/elements.js"
|
|
34
|
+
},
|
|
35
|
+
"./styles.css": {
|
|
36
|
+
"types": "./dist/styles.css.d.ts",
|
|
37
|
+
"default": "./dist/styles.css"
|
|
38
|
+
},
|
|
39
|
+
"./package.json": "./package.json"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "vite build",
|
|
43
|
+
"typecheck": "tsc --noEmit"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@base-ui/react": "~1.8.0",
|
|
47
|
+
"@shadcn/react": "^0.3.1",
|
|
48
|
+
"@tabler/icons-react": "^3.44.0",
|
|
49
|
+
"class-variance-authority": "^0.7.1",
|
|
50
|
+
"clsx": "^2.1.1",
|
|
51
|
+
"cmdk": "^1.1.1",
|
|
52
|
+
"date-fns": "^4.4.0",
|
|
53
|
+
"embla-carousel-react": "^8.6.0",
|
|
54
|
+
"input-otp": "^1.4.2",
|
|
55
|
+
"react-day-picker": "^10.0.1",
|
|
56
|
+
"react-resizable-panels": "^4.12.4",
|
|
57
|
+
"recharts": "3.8.0",
|
|
58
|
+
"tailwind-merge": "^3.6.0"
|
|
59
|
+
},
|
|
60
|
+
"peerDependencies": {
|
|
61
|
+
"react": "^19.0.0",
|
|
62
|
+
"react-dom": "^19.0.0"
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@edyn/dom": "workspace:*",
|
|
66
|
+
"@edyn/elements": "workspace:*",
|
|
67
|
+
"@edyn/theme": "workspace:*",
|
|
68
|
+
"@edyn/ui": "workspace:*",
|
|
69
|
+
"@tailwindcss/vite": "catalog:",
|
|
70
|
+
"@vitejs/plugin-react": "catalog:",
|
|
71
|
+
"vite": "catalog:",
|
|
72
|
+
"vite-plugin-dts": "^5.1.2"
|
|
73
|
+
}
|
|
74
|
+
}
|