@brett_lamy/ui 0.0.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/README.md +72 -0
- package/dist/components/avatar.d.ts +13 -0
- package/dist/components/avatar.d.ts.map +1 -0
- package/dist/components/avatar.stories.d.ts +9 -0
- package/dist/components/avatar.stories.d.ts.map +1 -0
- package/dist/components/credenza.d.ts +16 -0
- package/dist/components/credenza.d.ts.map +1 -0
- package/dist/components/credenza.stories.d.ts +8 -0
- package/dist/components/credenza.stories.d.ts.map +1 -0
- package/dist/components/edit-bar.d.ts +11 -0
- package/dist/components/edit-bar.d.ts.map +1 -0
- package/dist/components/edit-bar.stories.d.ts +10 -0
- package/dist/components/edit-bar.stories.d.ts.map +1 -0
- package/dist/components/haptic-indicator.d.ts +9 -0
- package/dist/components/haptic-indicator.d.ts.map +1 -0
- package/dist/components/haptic-indicator.stories.d.ts +8 -0
- package/dist/components/haptic-indicator.stories.d.ts.map +1 -0
- package/dist/components/index-bar.d.ts +24 -0
- package/dist/components/index-bar.d.ts.map +1 -0
- package/dist/components/index-bar.stories.d.ts +8 -0
- package/dist/components/index-bar.stories.d.ts.map +1 -0
- package/dist/components/list-row.stories.d.ts +12 -0
- package/dist/components/list-row.stories.d.ts.map +1 -0
- package/dist/components/list.d.ts +50 -0
- package/dist/components/list.d.ts.map +1 -0
- package/dist/components/list.stories.d.ts +23 -0
- package/dist/components/list.stories.d.ts.map +1 -0
- package/dist/components/measure-h.d.ts +7 -0
- package/dist/components/measure-h.d.ts.map +1 -0
- package/dist/components/navigation-stack.d.ts +52 -0
- package/dist/components/navigation-stack.d.ts.map +1 -0
- package/dist/components/navigation-stack.stories.d.ts +20 -0
- package/dist/components/navigation-stack.stories.d.ts.map +1 -0
- package/dist/components/pill-button.d.ts +11 -0
- package/dist/components/pill-button.d.ts.map +1 -0
- package/dist/components/pill-button.stories.d.ts +9 -0
- package/dist/components/pill-button.stories.d.ts.map +1 -0
- package/dist/components/qr-svg.d.ts +10 -0
- package/dist/components/qr-svg.d.ts.map +1 -0
- package/dist/components/qr-svg.stories.d.ts +9 -0
- package/dist/components/qr-svg.stories.d.ts.map +1 -0
- package/dist/components/search-field.d.ts +11 -0
- package/dist/components/search-field.d.ts.map +1 -0
- package/dist/components/search-field.stories.d.ts +8 -0
- package/dist/components/search-field.stories.d.ts.map +1 -0
- package/dist/components/segmented.d.ts +16 -0
- package/dist/components/segmented.d.ts.map +1 -0
- package/dist/components/segmented.stories.d.ts +8 -0
- package/dist/components/segmented.stories.d.ts.map +1 -0
- package/dist/components/side-drawer.d.ts +13 -0
- package/dist/components/side-drawer.d.ts.map +1 -0
- package/dist/components/side-drawer.stories.d.ts +8 -0
- package/dist/components/side-drawer.stories.d.ts.map +1 -0
- package/dist/components/spinner.d.ts +9 -0
- package/dist/components/spinner.d.ts.map +1 -0
- package/dist/components/spinner.stories.d.ts +9 -0
- package/dist/components/spinner.stories.d.ts.map +1 -0
- package/dist/components/split-view.d.ts +14 -0
- package/dist/components/split-view.d.ts.map +1 -0
- package/dist/components/split-view.stories.d.ts +8 -0
- package/dist/components/split-view.stories.d.ts.map +1 -0
- package/dist/components/switch.d.ts +11 -0
- package/dist/components/switch.d.ts.map +1 -0
- package/dist/components/switch.stories.d.ts +9 -0
- package/dist/components/switch.stories.d.ts.map +1 -0
- package/dist/components/tab-bar.d.ts +16 -0
- package/dist/components/tab-bar.d.ts.map +1 -0
- package/dist/components/tab-bar.stories.d.ts +8 -0
- package/dist/components/tab-bar.stories.d.ts.map +1 -0
- package/dist/demos/haptics-playground.d.ts +15 -0
- package/dist/demos/haptics-playground.d.ts.map +1 -0
- package/dist/demos/haptics-playground.stories.d.ts +8 -0
- package/dist/demos/haptics-playground.stories.d.ts.map +1 -0
- package/dist/index.css +2 -0
- package/dist/index.d.ts +42 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15467 -0
- package/dist/lib/haptics.d.ts +27 -0
- package/dist/lib/haptics.d.ts.map +1 -0
- package/dist/lib/icon.d.ts +20 -0
- package/dist/lib/icon.d.ts.map +1 -0
- package/dist/lib/icon.stories.d.ts +8 -0
- package/dist/lib/icon.stories.d.ts.map +1 -0
- package/dist/lib/motion.d.ts +4 -0
- package/dist/lib/motion.d.ts.map +1 -0
- package/dist/lib/theme.d.ts +21 -0
- package/dist/lib/theme.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +6 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/stories/frame.d.ts +16 -0
- package/dist/stories/frame.d.ts.map +1 -0
- package/package.json +49 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../src/components/spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,wBAAgB,OAAO,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,YAAY,2CAUrE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Spinner } from './spinner';
|
|
3
|
+
declare const meta: Meta<typeof Spinner>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Spinner>;
|
|
6
|
+
export declare const Spinning: Story;
|
|
7
|
+
export declare const Idle: Story;
|
|
8
|
+
export declare const Large: Story;
|
|
9
|
+
//# sourceMappingURL=spinner.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spinner.stories.d.ts","sourceRoot":"","sources":["../../src/components/spinner.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,OAAO,CAI9B,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,OAAO,CAAC,CAAC;AAEtC,eAAO,MAAM,QAAQ,EAAE,KAAgC,CAAC;AACxD,eAAO,MAAM,IAAI,EAAE,KAAiC,CAAC;AACrD,eAAO,MAAM,KAAK,EAAE,KAA0C,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
export interface SplitViewProps {
|
|
3
|
+
/** Width class: 'regular' shows all columns; anything else collapses to master + drawer. */
|
|
4
|
+
wc: 'regular' | 'medium' | 'compact' | (string & {});
|
|
5
|
+
sidebar?: ReactNode;
|
|
6
|
+
master?: ReactNode;
|
|
7
|
+
detail?: ReactNode;
|
|
8
|
+
drawerOpen?: boolean;
|
|
9
|
+
onCloseDrawer?: () => void;
|
|
10
|
+
className?: string;
|
|
11
|
+
style?: CSSProperties;
|
|
12
|
+
}
|
|
13
|
+
export declare function SplitView({ wc, sidebar, master, detail, drawerOpen, onCloseDrawer, className, style }: SplitViewProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=split-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split-view.d.ts","sourceRoot":"","sources":["../../src/components/split-view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGtD,MAAM,WAAW,cAAc;IAC7B,4FAA4F;IAC5F,EAAE,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IACrD,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,wBAAgB,SAAS,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,cAAc,2CAwBrH"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { SplitView } from './split-view';
|
|
3
|
+
declare const meta: Meta<typeof SplitView>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof SplitView>;
|
|
6
|
+
export declare const Regular: Story;
|
|
7
|
+
export declare const CompactWithDrawer: Story;
|
|
8
|
+
//# sourceMappingURL=split-view.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split-view.stories.d.ts","sourceRoot":"","sources":["../../src/components/split-view.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAK5D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAGhC,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAiCxC,eAAO,MAAM,OAAO,EAAE,KAsBrB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAkB/B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export interface SwitchProps {
|
|
3
|
+
checked: boolean;
|
|
4
|
+
onChange: (v: boolean) => void;
|
|
5
|
+
'aria-label'?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
/** iOS-style switch (prototype `TKSwitch`) — react-aria Switch behavior, prototype-exact visuals. */
|
|
10
|
+
export declare function Switch({ checked, onChange, className, style, ...rest }: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../src/components/switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAK3C,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,qGAAqG;AACrG,wBAAgB,MAAM,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,2CAiBnF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Switch } from './switch';
|
|
3
|
+
declare const meta: Meta<typeof Switch>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Switch>;
|
|
6
|
+
export declare const Off: Story;
|
|
7
|
+
export declare const On: Story;
|
|
8
|
+
export declare const InRow: Story;
|
|
9
|
+
//# sourceMappingURL=switch.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.stories.d.ts","sourceRoot":"","sources":["../../src/components/switch.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAI7B,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAOrC,eAAO,MAAM,GAAG,EAAE,KAAkC,CAAC;AACrD,eAAO,MAAM,EAAE,EAAE,KAA0C,CAAC;AAE5D,eAAO,MAAM,KAAK,EAAE,KAenB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
export interface TabBarItem {
|
|
3
|
+
id: string;
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
icon: string;
|
|
6
|
+
}
|
|
7
|
+
export interface TabBarProps {
|
|
8
|
+
items: TabBarItem[];
|
|
9
|
+
selected: string;
|
|
10
|
+
onSelect: (id: string) => void;
|
|
11
|
+
hideOnScroll?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
style?: CSSProperties;
|
|
14
|
+
}
|
|
15
|
+
export declare function TabBar({ items, selected, onSelect, hideOnScroll, className, style }: TabBarProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=tab-bar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tab-bar.d.ts","sourceRoot":"","sources":["../../src/components/tab-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMtD,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,wBAAgB,MAAM,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAmB,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,WAAW,2CAwBvG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { TabBar } from './tab-bar';
|
|
3
|
+
declare const meta: Meta<typeof TabBar>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof TabBar>;
|
|
6
|
+
export declare const Interactive: Story;
|
|
7
|
+
export declare const TwoTabs: Story;
|
|
8
|
+
//# sourceMappingURL=tab-bar.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tab-bar.stories.d.ts","sourceRoot":"","sources":["../../src/components/tab-bar.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAI7B,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAQrC,eAAO,MAAM,WAAW,EAAE,KAYzB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare function Sun({ size, color }: {
|
|
2
|
+
size?: number;
|
|
3
|
+
color?: string;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function ShowMagicRow(): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function BrightnessSlider(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function HapticSlider(): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function SlideToUnlock(): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function WheelDrum({ n, init, label }: {
|
|
10
|
+
n: number;
|
|
11
|
+
init?: number;
|
|
12
|
+
label: string;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function HapticsPlayground(): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=haptics-playground.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"haptics-playground.d.ts","sourceRoot":"","sources":["../../src/demos/haptics-playground.tsx"],"names":[],"mappings":"AAgBA,wBAAgB,GAAG,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,2CAKrE;AAKD,wBAAgB,YAAY,4CAgB3B;AAED,wBAAgB,gBAAgB,4CAkB/B;AAED,wBAAgB,YAAY,4CAc3B;AAED,wBAAgB,aAAa,4CA4C5B;AAED,wBAAgB,SAAS,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,2CA+DxF;AAED,wBAAgB,iBAAiB,4CAiChC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { HapticsPlayground } from './haptics-playground';
|
|
3
|
+
declare const meta: Meta<typeof HapticsPlayground>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof HapticsPlayground>;
|
|
6
|
+
export declare const InNavigationStack: Story;
|
|
7
|
+
export declare const Bare: Story;
|
|
8
|
+
//# sourceMappingURL=haptics-playground.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"haptics-playground.stories.d.ts","sourceRoot":"","sources":["../../src/demos/haptics-playground.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAIzD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,iBAAiB,CAGxC,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEhD,eAAO,MAAM,iBAAiB,EAAE,KAS/B,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAQlB,CAAC"}
|
package/dist/index.css
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@keyframes tkSpin{to{transform:rotate(360deg)}}@keyframes tkRing{0%{opacity:.85;transform:scale(.35)}to{opacity:0;transform:scale(2.4)}}@keyframes tkHapIn{0%{opacity:0;transform:translateY(8px)}10%{opacity:1;transform:none}72%{opacity:1}to{opacity:0;transform:translateY(-4px)}}@keyframes tkBub{0%{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}.tk-scroll{scrollbar-width:thin;scrollbar-color:#80808c59 transparent}.tk-scroll::-webkit-scrollbar{width:3px}.tk-scroll::-webkit-scrollbar-thumb{background:#80808c59;border-radius:2px}.tk-scroll::-webkit-scrollbar-track{background:0 0}.tk-btn{-webkit-tap-highlight-color:transparent}.tk-hl:active{background:var(--tk-press)!important}input::placeholder{color:var(--tk-label3)}@keyframes tkShimmer{0%{background-position:200% 0}to{background-position:0 0}}.tk-shimmer{background:linear-gradient(90deg,var(--tk-label3) 40%,var(--tk-label) 50%,var(--tk-label3) 60%) 0 0/200% 100%;color:#0000;-webkit-background-clip:text;background-clip:text;animation:2.4s linear infinite tkShimmer}.tk-range{appearance:none;cursor:pointer;background:0 0;width:100%;height:28px;margin:0}.tk-range::-webkit-slider-runnable-track{background:linear-gradient(var(--tk-tint),var(--tk-tint)) 0/var(--tk-range-fill,50%) 100% no-repeat,var(--tk-fill2);border-radius:2px;height:4px}.tk-range::-webkit-slider-thumb{-webkit-appearance:none;background:#fff;border-radius:50%;width:26px;height:26px;margin-top:-11px;box-shadow:0 1px 4px #00000047,0 0 1px #00000038}.tk-range::-moz-range-track{background:var(--tk-fill2);border-radius:2px;height:4px}.tk-range::-moz-range-progress{background:var(--tk-tint);border-radius:2px;height:4px}.tk-range::-moz-range-thumb{background:#fff;border:0;border-radius:50%;width:26px;height:26px;box-shadow:0 1px 4px #00000047}
|
|
2
|
+
/*$vite$:1*/
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export { cn, FONT, EASE, BARH } from './lib/utils';
|
|
2
|
+
export { Haptics, PAT } from './lib/haptics';
|
|
3
|
+
export type { HapticEvent, HapticImpactStyle, HapticNotificationKind } from './lib/haptics';
|
|
4
|
+
export { loadMotion, useMotion } from './lib/motion';
|
|
5
|
+
export { TouchKitProvider, TKSafeCtx, TKStickyCtx, chromeStore, useChromeHidden, chromeOffset, } from './lib/theme';
|
|
6
|
+
export type { TouchKitProviderProps } from './lib/theme';
|
|
7
|
+
export { Icon, IC } from './lib/icon';
|
|
8
|
+
export type { IconProps, IconName } from './lib/icon';
|
|
9
|
+
export { Avatar } from './components/avatar';
|
|
10
|
+
export type { AvatarProps } from './components/avatar';
|
|
11
|
+
export { Switch } from './components/switch';
|
|
12
|
+
export type { SwitchProps } from './components/switch';
|
|
13
|
+
export { Segmented } from './components/segmented';
|
|
14
|
+
export type { SegmentedProps, SegmentedOption } from './components/segmented';
|
|
15
|
+
export { Spinner } from './components/spinner';
|
|
16
|
+
export type { SpinnerProps } from './components/spinner';
|
|
17
|
+
export { HapticIndicator } from './components/haptic-indicator';
|
|
18
|
+
export type { HapticIndicatorProps } from './components/haptic-indicator';
|
|
19
|
+
export { SearchField } from './components/search-field';
|
|
20
|
+
export type { SearchFieldProps } from './components/search-field';
|
|
21
|
+
export { PillButton } from './components/pill-button';
|
|
22
|
+
export type { PillButtonProps } from './components/pill-button';
|
|
23
|
+
export { QRSvg } from './components/qr-svg';
|
|
24
|
+
export type { QRSvgProps } from './components/qr-svg';
|
|
25
|
+
export { List, ListSection, ListRow } from './components/list';
|
|
26
|
+
export type { ListProps, ListSectionProps, ListRowProps } from './components/list';
|
|
27
|
+
export { IndexBar, AL } from './components/index-bar';
|
|
28
|
+
export type { IndexBarProps, IndexBarItem, IndexBarKey } from './components/index-bar';
|
|
29
|
+
export { TabBar } from './components/tab-bar';
|
|
30
|
+
export type { TabBarProps, TabBarItem } from './components/tab-bar';
|
|
31
|
+
export { EditBar } from './components/edit-bar';
|
|
32
|
+
export type { EditBarProps } from './components/edit-bar';
|
|
33
|
+
export { NavigationStack, ScreenWrap } from './components/navigation-stack';
|
|
34
|
+
export type { NavigationStackProps, Screen, ScreenWrapProps } from './components/navigation-stack';
|
|
35
|
+
export { SplitView } from './components/split-view';
|
|
36
|
+
export type { SplitViewProps } from './components/split-view';
|
|
37
|
+
export { Credenza } from './components/credenza';
|
|
38
|
+
export type { CredenzaProps } from './components/credenza';
|
|
39
|
+
export { SideDrawer } from './components/side-drawer';
|
|
40
|
+
export type { SideDrawerProps } from './components/side-drawer';
|
|
41
|
+
export { HapticsPlayground, ShowMagicRow, BrightnessSlider, HapticSlider, SlideToUnlock, WheelDrum, Sun, } from './demos/haptics-playground';
|
|
42
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.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