@tarsis/toolkit 0.7.0 → 0.7.2

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 (101) hide show
  1. package/dist/audio/hover.mp3 +0 -0
  2. package/dist/audio/public/audio/click.wav +0 -0
  3. package/dist/audio/public/audio/hover.mp3 +0 -0
  4. package/dist/audio/public/audio/lock/select.mp3 +0 -0
  5. package/dist/index.cjs +443 -220
  6. package/dist/index.d.ts +36 -3
  7. package/dist/index.js +444 -221
  8. package/dist/styles.css +764 -698
  9. package/dist/{tokens-B2AxRYyF.js → tokens-CDVSR49D.js} +1 -0
  10. package/dist/{tokens-DlMougUi.cjs → tokens-Nhzxtwvl.cjs} +1 -0
  11. package/dist/tokens.cjs +1 -1
  12. package/dist/tokens.d.ts +1 -0
  13. package/dist/tokens.js +1 -1
  14. package/package.json +17 -17
  15. package/dist/fonts/gt/maru/GT-Maru-Light-Oblique-Trial.woff2 +0 -0
  16. package/dist/fonts/gt/maru/GT-Maru-Light-Trial.woff2 +0 -0
  17. package/dist/fonts/gt/maru/GT-Maru-Medium-Oblique-Trial.woff2 +0 -0
  18. package/dist/fonts/gt/maru/GT-Maru-Medium-Trial.woff2 +0 -0
  19. package/dist/fonts/gt/maru/GT-Maru-Mono-Black-Oblique-Trial.woff2 +0 -0
  20. package/dist/fonts/gt/maru/GT-Maru-Mono-Black-Trial.woff2 +0 -0
  21. package/dist/fonts/gt/maru/GT-Maru-Mono-Bold-Oblique-Trial.woff2 +0 -0
  22. package/dist/fonts/gt/maru/GT-Maru-Mono-Bold-Trial.woff2 +0 -0
  23. package/dist/fonts/gt/maru/GT-Maru-Mono-Light-Oblique-Trial.woff2 +0 -0
  24. package/dist/fonts/gt/maru/GT-Maru-Mono-Light-Trial.woff2 +0 -0
  25. package/dist/fonts/gt/maru/GT-Maru-Mono-Medium-Oblique-Trial.woff2 +0 -0
  26. package/dist/fonts/gt/maru/GT-Maru-Mono-Medium-Trial.woff2 +0 -0
  27. package/dist/fonts/gt/maru/gt-maru-black-oblique.woff2 +0 -0
  28. package/dist/fonts/gt/maru/gt-maru-black.woff2 +0 -0
  29. package/dist/fonts/gt/maru/gt-maru-bold-oblique.woff2 +0 -0
  30. package/dist/fonts/gt/maru/gt-maru-bold.woff2 +0 -0
  31. package/dist/fonts/gt/maru/gt-maru-mega-l.woff2 +0 -0
  32. package/dist/fonts/gt/maru/gt-maru-mega-m.woff2 +0 -0
  33. package/dist/fonts/gt/maru/gt-maru-mega-s.woff2 +0 -0
  34. package/dist/fonts/gt/maru/gt-maru-mono-regular-oblique.woff2 +0 -0
  35. package/dist/fonts/gt/maru/gt-maru-mono-regular.woff2 +0 -0
  36. package/dist/fonts/gt/maru/gt-maru-regular-oblique.woff2 +0 -0
  37. package/dist/fonts/gt/maru/gt-maru-regular.woff2 +0 -0
  38. package/dist/fonts/gt-flexa/GT-Flexa-VF-Trial.woff2 +0 -0
  39. package/dist/fonts/maru/GT-Maru-Light-Oblique-Trial.woff2 +0 -0
  40. package/dist/fonts/maru/GT-Maru-Light-Trial.woff2 +0 -0
  41. package/dist/fonts/maru/GT-Maru-Medium-Oblique-Trial.woff2 +0 -0
  42. package/dist/fonts/maru/GT-Maru-Medium-Trial.woff2 +0 -0
  43. package/dist/fonts/maru/GT-Maru-Mono-Black-Oblique-Trial.woff2 +0 -0
  44. package/dist/fonts/maru/GT-Maru-Mono-Black-Trial.woff2 +0 -0
  45. package/dist/fonts/maru/GT-Maru-Mono-Bold-Oblique-Trial.woff2 +0 -0
  46. package/dist/fonts/maru/GT-Maru-Mono-Bold-Trial.woff2 +0 -0
  47. package/dist/fonts/maru/GT-Maru-Mono-Light-Oblique-Trial.woff2 +0 -0
  48. package/dist/fonts/maru/GT-Maru-Mono-Light-Trial.woff2 +0 -0
  49. package/dist/fonts/maru/GT-Maru-Mono-Medium-Oblique-Trial.woff2 +0 -0
  50. package/dist/fonts/maru/GT-Maru-Mono-Medium-Trial.woff2 +0 -0
  51. package/dist/fonts/maru/gt-maru-black-oblique.woff2 +0 -0
  52. package/dist/fonts/maru/gt-maru-black.woff2 +0 -0
  53. package/dist/fonts/maru/gt-maru-bold-oblique.woff2 +0 -0
  54. package/dist/fonts/maru/gt-maru-bold.woff2 +0 -0
  55. package/dist/fonts/maru/gt-maru-mega-l.woff2 +0 -0
  56. package/dist/fonts/maru/gt-maru-mega-m.woff2 +0 -0
  57. package/dist/fonts/maru/gt-maru-mega-s.woff2 +0 -0
  58. package/dist/fonts/maru/gt-maru-mono-regular-oblique.woff2 +0 -0
  59. package/dist/fonts/maru/gt-maru-mono-regular.woff2 +0 -0
  60. package/dist/fonts/maru/gt-maru-regular-oblique.woff2 +0 -0
  61. package/dist/fonts/maru/gt-maru-regular.woff2 +0 -0
  62. package/dist/fonts/orbitron/orbitron-black.fnt +0 -426
  63. package/dist/fonts/orbitron/orbitron-black.png +0 -0
  64. /package/dist/audio/{fail.mp3 → public/audio/lock/fail.mp3} +0 -0
  65. /package/dist/audio/{fail.ogg → public/audio/lock/fail.ogg} +0 -0
  66. /package/dist/audio/{select.mp3 → public/audio/lock/hover.mp3} +0 -0
  67. /package/dist/audio/{hover.ogg → public/audio/lock/hover.ogg} +0 -0
  68. /package/dist/audio/{prev-next.mp3 → public/audio/lock/prev-next.mp3} +0 -0
  69. /package/dist/audio/{prev-next.ogg → public/audio/lock/prev-next.ogg} +0 -0
  70. /package/dist/audio/{select.ogg → public/audio/lock/select.ogg} +0 -0
  71. /package/dist/audio/{success.mp3 → public/audio/lock/success.mp3} +0 -0
  72. /package/dist/audio/{success.ogg → public/audio/lock/success.ogg} +0 -0
  73. /package/dist/fonts/{GT-Maru-Light-Oblique-Trial.woff2 → src/fonts/gt/maru/GT-Maru-Light-Oblique-Trial.woff2} +0 -0
  74. /package/dist/fonts/{GT-Maru-Light-Trial.woff2 → src/fonts/gt/maru/GT-Maru-Light-Trial.woff2} +0 -0
  75. /package/dist/fonts/{GT-Maru-Medium-Oblique-Trial.woff2 → src/fonts/gt/maru/GT-Maru-Medium-Oblique-Trial.woff2} +0 -0
  76. /package/dist/fonts/{GT-Maru-Medium-Trial.woff2 → src/fonts/gt/maru/GT-Maru-Medium-Trial.woff2} +0 -0
  77. /package/dist/fonts/{GT-Maru-Mono-Black-Oblique-Trial.woff2 → src/fonts/gt/maru/GT-Maru-Mono-Black-Oblique-Trial.woff2} +0 -0
  78. /package/dist/fonts/{GT-Maru-Mono-Black-Trial.woff2 → src/fonts/gt/maru/GT-Maru-Mono-Black-Trial.woff2} +0 -0
  79. /package/dist/fonts/{GT-Maru-Mono-Bold-Oblique-Trial.woff2 → src/fonts/gt/maru/GT-Maru-Mono-Bold-Oblique-Trial.woff2} +0 -0
  80. /package/dist/fonts/{GT-Maru-Mono-Bold-Trial.woff2 → src/fonts/gt/maru/GT-Maru-Mono-Bold-Trial.woff2} +0 -0
  81. /package/dist/fonts/{GT-Maru-Mono-Light-Oblique-Trial.woff2 → src/fonts/gt/maru/GT-Maru-Mono-Light-Oblique-Trial.woff2} +0 -0
  82. /package/dist/fonts/{GT-Maru-Mono-Light-Trial.woff2 → src/fonts/gt/maru/GT-Maru-Mono-Light-Trial.woff2} +0 -0
  83. /package/dist/fonts/{GT-Maru-Mono-Medium-Oblique-Trial.woff2 → src/fonts/gt/maru/GT-Maru-Mono-Medium-Oblique-Trial.woff2} +0 -0
  84. /package/dist/fonts/{GT-Maru-Mono-Medium-Trial.woff2 → src/fonts/gt/maru/GT-Maru-Mono-Medium-Trial.woff2} +0 -0
  85. /package/dist/fonts/{gt-maru-black-oblique.woff2 → src/fonts/gt/maru/gt-maru-black-oblique.woff2} +0 -0
  86. /package/dist/fonts/{gt-maru-black.woff2 → src/fonts/gt/maru/gt-maru-black.woff2} +0 -0
  87. /package/dist/fonts/{gt-maru-bold-oblique.woff2 → src/fonts/gt/maru/gt-maru-bold-oblique.woff2} +0 -0
  88. /package/dist/fonts/{gt-maru-bold.woff2 → src/fonts/gt/maru/gt-maru-bold.woff2} +0 -0
  89. /package/dist/fonts/{gt-maru-mega-l.woff2 → src/fonts/gt/maru/gt-maru-mega-l.woff2} +0 -0
  90. /package/dist/fonts/{gt-maru-mega-m.woff2 → src/fonts/gt/maru/gt-maru-mega-m.woff2} +0 -0
  91. /package/dist/fonts/{gt-maru-mega-s.woff2 → src/fonts/gt/maru/gt-maru-mega-s.woff2} +0 -0
  92. /package/dist/fonts/{gt-maru-mono-regular-oblique.woff2 → src/fonts/gt/maru/gt-maru-mono-regular-oblique.woff2} +0 -0
  93. /package/dist/fonts/{gt-maru-mono-regular.woff2 → src/fonts/gt/maru/gt-maru-mono-regular.woff2} +0 -0
  94. /package/dist/fonts/{gt-maru-regular-oblique.woff2 → src/fonts/gt/maru/gt-maru-regular-oblique.woff2} +0 -0
  95. /package/dist/fonts/{gt-maru-regular.woff2 → src/fonts/gt/maru/gt-maru-regular.woff2} +0 -0
  96. /package/dist/fonts/{GT-Flexa-VF-Trial.woff2 → src/fonts/gt-flexa/GT-Flexa-VF-Trial.woff2} +0 -0
  97. /package/dist/fonts/{orbitron-black.fnt → src/fonts/orbitron/orbitron-black.fnt} +0 -0
  98. /package/dist/fonts/{orbitron-black.png → src/fonts/orbitron/orbitron-black.png} +0 -0
  99. /package/dist/icons/{arrow-dots-mask.svg → src/icons/arrow-dots-mask.svg} +0 -0
  100. /package/dist/icons/{arrow-dots.svg → src/icons/arrow-dots.svg} +0 -0
  101. /package/dist/icons/{repost.svg → src/icons/repost.svg} +0 -0
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { ButtonHTMLAttributes } from 'react';
2
+ import { ComponentProps } from 'react';
2
3
  import { ComponentPropsWithRef } from 'react';
3
4
  import { CSSProperties } from 'react';
4
5
  import { default as default_2 } from 'react';
@@ -1490,6 +1491,30 @@ export declare const RealisticSmoke: () => JSX.Element;
1490
1491
 
1491
1492
  export declare const RedirectPage: () => JSX.Element;
1492
1493
 
1494
+ export declare function ReflectiveButton({ children, className, style, disabled, roughness, offset, camera, features: featuresProp, videoConstraints, onCameraError, onCameraStateChange, cameraHandleRef, onPointerDown, onClick, onFocus, onBlur, ref, ...rest }: ReflectiveButtonProps): JSX.Element;
1495
+
1496
+ export declare type ReflectiveButtonFeatures = {
1497
+ fingerprints?: boolean;
1498
+ macCursor?: boolean;
1499
+ };
1500
+
1501
+ export declare type ReflectiveButtonHandle = {
1502
+ requestCamera: () => void;
1503
+ stopCamera: () => void;
1504
+ };
1505
+
1506
+ export declare type ReflectiveButtonProps = Omit<ComponentProps<'button'>, 'type' | 'children'> & {
1507
+ children: ReactNode;
1508
+ roughness?: number;
1509
+ offset?: number;
1510
+ camera?: 'on-mount' | 'on-interaction' | 'manual';
1511
+ features?: ReflectiveButtonFeatures;
1512
+ videoConstraints?: MediaTrackConstraints;
1513
+ onCameraError?: (error: DOMException | Error) => void;
1514
+ onCameraStateChange?: (state: UserMediaVideoStatus) => void;
1515
+ cameraHandleRef?: Ref<ReflectiveButtonHandle | null>;
1516
+ };
1517
+
1493
1518
  export declare const RegularLink: ({ children, href, className, target, rel, ref, ...rest }: Props_52) => JSX.Element;
1494
1519
 
1495
1520
  export declare const RepostButton: () => JSX.Element;
@@ -1612,8 +1637,6 @@ export declare const ShineCard: ({ children, className, style, ...props }: Props
1612
1637
 
1613
1638
  export declare const ShiningText: ({ children, className }: Props_71) => JSX.Element;
1614
1639
 
1615
- export declare const ShinyButton: () => JSX.Element;
1616
-
1617
1640
  export declare const ShinyCtaButton: ({ children, className, ...props }: Props_29) => JSX.Element;
1618
1641
 
1619
1642
  export declare const SignatureAnimation: ({ className, onChange }: Props_49) => JSX.Element;
@@ -1832,6 +1855,8 @@ export declare const ThanosDisappearEffectList: () => JSX.Element;
1832
1855
 
1833
1856
  export declare const ThanosDissolve: ({ images, duration, maxScale, className, onDelete, }: Props_12) => JSX.Element;
1834
1857
 
1858
+ declare type ThemeColorSpace = 'p3' | 'srgb';
1859
+
1835
1860
  declare type ThemeContextValue = {
1836
1861
  mode: ThemeMode;
1837
1862
  resolvedTheme: ResolvedTheme;
@@ -1841,7 +1866,7 @@ declare type ThemeContextValue = {
1841
1866
 
1842
1867
  export declare type ThemeMode = 'light' | 'dark' | 'system';
1843
1868
 
1844
- export declare const ThemeProvider: ({ children, defaultMode, mode: controlledMode, onModeChange, storageKey, }: ThemeProviderProps) => JSX.Element;
1869
+ export declare const ThemeProvider: ({ children, defaultMode, mode: controlledMode, onModeChange, storageKey, syncDomExtras, }: ThemeProviderProps) => JSX.Element;
1845
1870
 
1846
1871
  export declare type ThemeProviderProps = {
1847
1872
  children: ReactNode;
@@ -1849,6 +1874,11 @@ export declare type ThemeProviderProps = {
1849
1874
  mode?: ThemeMode;
1850
1875
  onModeChange?: (mode: ThemeMode) => void;
1851
1876
  storageKey?: string;
1877
+ /** Passed to syncThemeToDom with resolvedTheme (e.g. Storybook ThemeBridge). */
1878
+ syncDomExtras?: {
1879
+ backgroundColor?: string;
1880
+ colorSpace?: ThemeColorSpace;
1881
+ };
1852
1882
  };
1853
1883
 
1854
1884
  export declare const ThreadsLikeButton: () => JSX.Element;
@@ -2000,6 +2030,7 @@ export declare const Token: {
2000
2030
  readonly red12: "var(--color-red12)";
2001
2031
  };
2002
2032
  readonly space: {
2033
+ readonly none: "var(--space-0)";
2003
2034
  readonly s1: "var(--space-1)";
2004
2035
  readonly s2: "var(--space-2)";
2005
2036
  readonly s3: "var(--space-3)";
@@ -2460,6 +2491,8 @@ export declare const useRaf: (callback: VoidFunction, enabled?: boolean) => Void
2460
2491
 
2461
2492
  export declare function useReducedMotion(): boolean;
2462
2493
 
2494
+ export declare type UserMediaVideoStatus = 'idle' | 'pending' | 'live' | 'denied' | 'unavailable';
2495
+
2463
2496
  export declare function useTheme(): ThemeContextValue;
2464
2497
 
2465
2498
  /**