highsoft-ui 1.0.117 → 1.0.119

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 (92) hide show
  1. package/.cursorrules +845 -0
  2. package/CLAUDE.md +845 -0
  3. package/dist/Box-Bi-n_ZxQ.js +69 -0
  4. package/dist/Button-CJp__tle.js +63 -0
  5. package/dist/ButtonGroup-M9-A5Xva.js +53 -0
  6. package/dist/{Container-LAkF4ShX.js → Container-DI2smQRq.js} +1 -1
  7. package/dist/{CookiePolicyModal-B2mvebvV.js → CookiePolicyModal-BZkVbILl.js} +9 -43
  8. package/dist/CopyCode-BLXf0o74.js +40 -0
  9. package/dist/DiscordInvite-Mkr81Pib.js +92 -0
  10. package/dist/Footer-bUIou6Hl.js +83 -0
  11. package/dist/FooterBottom-_AezmdZB.js +133 -0
  12. package/dist/FooterHelp-CdeMRh1G.js +112 -0
  13. package/dist/FooterLinks-BUKcScC4.js +287 -0
  14. package/dist/{GPTInput-DRFGKJ2u.js → GPTInput-DKxJOGYt.js} +1 -1
  15. package/dist/{Header-BW8ilZxt.js → Header-6RIZc0v3.js} +90 -85
  16. package/dist/Heading-DuolDa27.js +19 -0
  17. package/dist/Icon-Dwo9ZDNX.js +31 -0
  18. package/dist/InputGrouped-CiA86XL7.js +221 -0
  19. package/dist/InputSolo-cLqKBh1c.js +122 -0
  20. package/dist/Label-BH3YxfNt.js +29 -0
  21. package/dist/Link-DGMiLJES.js +21 -0
  22. package/dist/{Logo-CZ5LYqub.js → Logo-h9bQL-cT.js} +1 -1
  23. package/dist/NewsletterSignup-eGx4jwiM.js +137 -0
  24. package/dist/{Notification-DHcQtd1k.js → Notification-CJ3iQv3Z.js} +6 -6
  25. package/dist/{PrefPanel-BTX6RAo4.js → PrefPanel-25erkPRB.js} +8 -8
  26. package/dist/{Search-DAPCZo13.js → Search-CDHkDXCm.js} +15 -15
  27. package/dist/Typography-nzBx3Yxn.js +49 -0
  28. package/dist/YoutubeModal-DNaiM6RL.js +89 -0
  29. package/dist/components/Box/index.js +2 -0
  30. package/dist/components/Button/index.js +1 -1
  31. package/dist/components/ButtonGroup/index.js +2 -0
  32. package/dist/components/Container/index.js +1 -1
  33. package/dist/components/CopyCode/index.js +2 -0
  34. package/dist/components/DiscordInvite/index.js +2 -0
  35. package/dist/components/Footer/CookiePolicyModal.js +1 -1
  36. package/dist/components/Footer/FooterBottom.js +2 -0
  37. package/dist/components/Footer/FooterHelp.js +2 -0
  38. package/dist/components/Footer/FooterLinks.js +2 -0
  39. package/dist/components/Footer/YoutubeModal.js +2 -0
  40. package/dist/components/Footer/index.js +1 -1
  41. package/dist/components/GPTInput/index.js +1 -1
  42. package/dist/components/Header/index.js +1 -1
  43. package/dist/components/Heading/index.js +2 -0
  44. package/dist/components/Icon/index.js +2 -0
  45. package/dist/components/InputGrouped/index.js +2 -0
  46. package/dist/components/InputSolo/index.js +2 -0
  47. package/dist/components/Label/index.js +2 -0
  48. package/dist/components/Link/index.js +2 -0
  49. package/dist/components/Logo/index.js +1 -1
  50. package/dist/components/NewsletterSignup/index.js +2 -0
  51. package/dist/components/Notification/index.js +1 -1
  52. package/dist/components/PrefPanel/index.js +1 -1
  53. package/dist/components/Search/index.js +1 -1
  54. package/dist/components/Typography/index.js +2 -0
  55. package/dist/{dist-CjrKJb_1.js → dist-GNbC83fc.js} +1 -1
  56. package/dist/{dist-0f0-S8_q.js → dist-fJmWSp8_.js} +1 -1
  57. package/dist/{esm-C1TDRARf.js → esm-T3Xn_ZHF.js} +208 -104
  58. package/dist/fa-ByhY-7YY.js +187 -0
  59. package/dist/highsoft-ui.css +1 -1
  60. package/dist/lib/components/Box/index.d.ts +28 -0
  61. package/dist/lib/components/Button/index.d.ts +9 -1
  62. package/dist/lib/components/ButtonGroup/index.d.ts +29 -0
  63. package/dist/lib/components/CopyCode/index.d.ts +12 -0
  64. package/dist/lib/components/DiscordInvite/index.d.ts +8 -0
  65. package/dist/lib/components/Footer/FooterBottom.d.ts +7 -0
  66. package/dist/lib/components/Footer/FooterHelp.d.ts +7 -0
  67. package/dist/lib/components/Footer/FooterLinks.d.ts +7 -0
  68. package/dist/lib/components/Footer/YoutubeModal.d.ts +1 -0
  69. package/dist/lib/components/Header/index.d.ts +14 -9
  70. package/dist/lib/components/Heading/index.d.ts +8 -0
  71. package/dist/lib/components/Icon/index.d.ts +26 -0
  72. package/dist/lib/components/InputGrouped/index.d.ts +60 -0
  73. package/dist/lib/components/InputSolo/index.d.ts +23 -0
  74. package/dist/lib/components/Label/index.d.ts +25 -0
  75. package/dist/lib/components/Link/index.d.ts +15 -0
  76. package/dist/lib/components/NewsletterSignup/index.d.ts +33 -0
  77. package/dist/lib/components/Typography/index.d.ts +13 -0
  78. package/dist/lib/main.d.ts +26 -3
  79. package/dist/lib/utils.d.ts +28 -0
  80. package/dist/main.js +23 -12
  81. package/dist/scss/mixins.scss +36 -0
  82. package/dist/scss/variables.scss +107 -0
  83. package/dist/{utils-C4QGLbxr.js → utils-BCI5dixg.js} +35 -15
  84. package/dist/utils.js +2 -2
  85. package/package.json +14 -6
  86. package/dist/Button-9RIB8ZR0.js +0 -47
  87. package/dist/Footer-5yMo5akY.js +0 -784
  88. package/dist/NewTag-C-3mRyvV.js +0 -26
  89. package/dist/components/NewTag/index.js +0 -2
  90. package/dist/lib/components/NewTag/index.d.ts +0 -8
  91. /package/dist/{clsx-ROFf4vs9.js → clsx-D7D_XZ_-.js} +0 -0
  92. /package/dist/{es2015-CzBBLWyD.js → es2015-C6iv4436.js} +0 -0
@@ -0,0 +1,29 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ import { ButtonProps, ButtonSize } from '../Button';
3
+ export interface ButtonGroupItem {
4
+ /** Stable item value */
5
+ value: string;
6
+ /** Visible label */
7
+ label: ReactNode;
8
+ /** Optional leading icon, following the same usage pattern as Button */
9
+ iconLeft?: ReactNode;
10
+ /** Disable a single item */
11
+ disabled?: boolean;
12
+ /** Extra button props, for example href/target */
13
+ buttonProps?: Omit<ButtonProps, 'children' | 'iconLeft' | 'variant' | 'size' | 'aria-pressed'>;
14
+ }
15
+ export interface ButtonGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'onChange'> {
16
+ /** Button items */
17
+ items: ButtonGroupItem[];
18
+ /** Controlled selected value */
19
+ value?: string;
20
+ /** Initial selected value for uncontrolled usage */
21
+ defaultValue?: string;
22
+ /** Called when selection changes. Returns the selected value and item. */
23
+ onChange?: (value: string, item: ButtonGroupItem) => void;
24
+ /** Shared button size */
25
+ size?: ButtonSize;
26
+ /** Stretch items to fill the available width */
27
+ fullWidth?: boolean;
28
+ }
29
+ export declare function ButtonGroup({ items, value, defaultValue, onChange, size, fullWidth, className, ...props }: ButtonGroupProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export interface CopyCodeProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
3
+ /** The code/command text to display and copy */
4
+ children: string;
5
+ /** Label for the copy button (default: "Copy") */
6
+ label?: string;
7
+ /** Label shown after copying (default: "Copied") */
8
+ copiedLabel?: string;
9
+ /** Duration in ms for the success state (default: 2000) */
10
+ duration?: number;
11
+ }
12
+ export declare const CopyCode: import('react').ForwardRefExoticComponent<CopyCodeProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,8 @@
1
+ import { AnchorHTMLAttributes } from 'react';
2
+ export interface DiscordInviteProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> {
3
+ href?: string;
4
+ inviteCode?: string;
5
+ guildId?: string;
6
+ memberLimit?: number;
7
+ }
8
+ export declare function DiscordInvite({ href, inviteCode, guildId, memberLimit, className, 'aria-label': ariaLabel, ...props }: DiscordInviteProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { ElementType } from 'react';
2
+ interface FooterBottomProps {
3
+ link?: ElementType;
4
+ host?: string;
5
+ }
6
+ export default function FooterBottom({ link: Link, host }: FooterBottomProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ElementType } from 'react';
2
+ interface FooterHelpProps {
3
+ link?: ElementType;
4
+ host?: string;
5
+ }
6
+ export default function FooterHelp({ link: Link, host }: FooterHelpProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ElementType } from 'react';
2
+ interface FooterLinksProps {
3
+ link?: ElementType;
4
+ host?: string;
5
+ }
6
+ export default function FooterLinks({ link: Link, host }: FooterLinksProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1 @@
1
+ export default function YoutubeModal(): import("react/jsx-runtime").JSX.Element;
@@ -15,6 +15,19 @@ export interface SubHeaderItem {
15
15
  tag?: ReactNode;
16
16
  tagVariant?: 'success' | 'brand';
17
17
  }
18
+ export type HeaderPosition = 'sticky' | 'static';
19
+ export interface HeaderProps {
20
+ subItems?: Array<SubHeaderItem>;
21
+ children?: ReactNode;
22
+ notifications?: Array<Notification>;
23
+ link?: ElementType;
24
+ host?: string;
25
+ pathname?: string;
26
+ /** Set `true` to expose the current header bottom as `--header-bottom`. */
27
+ cssVariable?: boolean;
28
+ /** `sticky` matches the site header behavior; `static` keeps the header pinned without the scroll-reactive hide/reveal motion. */
29
+ position?: HeaderPosition;
30
+ }
18
31
  export declare function SubHeader({ items, link: Link, host, pathname }: {
19
32
  items: Array<SubHeaderItem>;
20
33
  link?: ElementType;
@@ -28,12 +41,4 @@ export interface Notification {
28
41
  closable?: boolean;
29
42
  }
30
43
  export declare function Header({ subItems, children, notifications: initialNotifications, // TODO: Fetch these from the internets
31
- link: Link, host, pathname, cssVariable }: {
32
- subItems?: Array<SubHeaderItem>;
33
- children?: ReactNode;
34
- notifications?: Array<Notification>;
35
- link?: ElementType;
36
- host?: string;
37
- pathname?: string;
38
- cssVariable?: boolean;
39
- }): import("react/jsx-runtime").JSX.Element;
44
+ link: Link, host, pathname, cssVariable, position }: HeaderProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { HTMLAttributes, ElementType, ReactNode } from 'react';
2
+ export type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
3
+ export interface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {
4
+ children?: ReactNode;
5
+ level?: HeadingLevel;
6
+ as?: ElementType;
7
+ }
8
+ export declare const Heading: import('react').ForwardRefExoticComponent<HeadingProps & import('react').RefAttributes<HTMLHeadingElement>>;
@@ -0,0 +1,26 @@
1
+ import { SVGProps, FC } from 'react';
2
+ /**
3
+ * Predefined icon sizes from the design system.
4
+ *
5
+ * Size → px / rem / strokeWidth
6
+ * ─────────────────────────────
7
+ * 12 → 0.75 rem / 1.0
8
+ * 16 → 1.0 rem / 1.33
9
+ * 20 → 1.25 rem / 1.67
10
+ * 24 → 1.5 rem / 2.0
11
+ * 32 → 2.0 rem / 2.66
12
+ * 40 → 2.5 rem / 3.0
13
+ * 52 → 3.25 rem / 4.33
14
+ * 64 → 4.0 rem / 5.33
15
+ * 72 → 4.5 rem / 6.0
16
+ */
17
+ export type IconSize = 12 | 16 | 20 | 24 | 32 | 40 | 52 | 64 | 72;
18
+ export interface IconProps extends Omit<SVGProps<SVGSVGElement>, 'name'> {
19
+ /** The icon component from @untitled-ui/icons-react */
20
+ name: FC<SVGProps<SVGSVGElement>>;
21
+ /** Size in pixels — must be a design-system size (12 | 16 | 20 | 24 | 32 | 40 | 52 | 64 | 72) */
22
+ size?: IconSize;
23
+ /** Additional class name */
24
+ className?: string;
25
+ }
26
+ export declare function Icon({ name: IconComponent, size, className, strokeWidth: strokeWidthProp, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,60 @@
1
+ import { FormHTMLAttributes, InputHTMLAttributes, SelectHTMLAttributes, ReactNode } from 'react';
2
+ export interface FormGroupProps extends FormHTMLAttributes<HTMLFormElement> {
3
+ children?: ReactNode;
4
+ }
5
+ export declare const FormGroup: import('react').ForwardRefExoticComponent<FormGroupProps & import('react').RefAttributes<HTMLFormElement>>;
6
+ export interface FormRowProps {
7
+ children?: ReactNode;
8
+ className?: string;
9
+ }
10
+ /**
11
+ * Place two (or more) InputGrouped / SelectGrouped side-by-side.
12
+ * Stacks vertically on small screens.
13
+ */
14
+ export declare function FormRow({ children, className }: FormRowProps): import("react/jsx-runtime").JSX.Element;
15
+ export interface InputGroupedProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
16
+ /** Label text displayed above the input value */
17
+ label?: string;
18
+ /** Show required asterisk next to label */
19
+ required?: boolean;
20
+ /** Help text below the input */
21
+ helpText?: string;
22
+ /** Show help text */
23
+ showHelpText?: boolean;
24
+ /** Icon element rendered next to the label */
25
+ labelIcon?: ReactNode;
26
+ /** Icon element rendered on the right side */
27
+ iconRight?: ReactNode;
28
+ /** Button or action element rendered on the right */
29
+ button?: ReactNode;
30
+ /** Visual error state */
31
+ hasError?: boolean;
32
+ /** Visual success state */
33
+ success?: boolean;
34
+ /** Wrapper className */
35
+ wrapperClassName?: string;
36
+ }
37
+ export declare const InputGrouped: import('react').ForwardRefExoticComponent<InputGroupedProps & import('react').RefAttributes<HTMLInputElement>>;
38
+ export interface SelectGroupedProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'size'> {
39
+ /** Label text displayed above the select */
40
+ label?: string;
41
+ /** Show required asterisk next to label */
42
+ required?: boolean;
43
+ /** Help text below the select */
44
+ helpText?: string;
45
+ /** Show help text */
46
+ showHelpText?: boolean;
47
+ /** Icon element rendered next to the label */
48
+ labelIcon?: ReactNode;
49
+ /** Visual error state */
50
+ hasError?: boolean;
51
+ /** Visual success state */
52
+ success?: boolean;
53
+ /** Wrapper className */
54
+ wrapperClassName?: string;
55
+ /** Placeholder text shown when no option is selected */
56
+ placeholder?: string;
57
+ /** Option items */
58
+ children?: ReactNode;
59
+ }
60
+ export declare const SelectGrouped: import('react').ForwardRefExoticComponent<SelectGroupedProps & import('react').RefAttributes<HTMLSelectElement>>;
@@ -0,0 +1,23 @@
1
+ import { InputHTMLAttributes, ReactNode } from 'react';
2
+ export type InputSoloVariant = 'default' | 'white';
3
+ export interface InputSoloProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
4
+ /** Label shown above the input */
5
+ label?: string;
6
+ /** Icon element rendered to the left of the input */
7
+ iconLeft?: ReactNode;
8
+ /** Button or action element rendered on the right */
9
+ button?: ReactNode;
10
+ /** Help text shown below the input */
11
+ helpText?: string;
12
+ /** Override help text visibility. Defaults to true when helpText exists. */
13
+ showHelpText?: boolean;
14
+ /** Visual surface variant */
15
+ variant?: InputSoloVariant;
16
+ /** Visual error state */
17
+ hasError?: boolean;
18
+ /** Visual success state */
19
+ success?: boolean;
20
+ /** Wrapper className */
21
+ wrapperClassName?: string;
22
+ }
23
+ export declare const InputSolo: import('react').ForwardRefExoticComponent<InputSoloProps & import('react').RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,25 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ export type LabelVariant = 'neutral' | 'success' | 'attention' | 'brand' | 'danger';
3
+ /** @deprecated Use `LabelVariant` instead */
4
+ export type NewTagVariant = LabelVariant;
5
+ export interface LabelProps extends HTMLAttributes<HTMLSpanElement> {
6
+ variant?: LabelVariant;
7
+ /**
8
+ * Icon placed before the text — aligned with Button's `iconLeft` pattern.
9
+ * - `true` — shows the default Stars02 icon
10
+ * - `false` — no icon
11
+ * - `ReactNode` — custom icon element (e.g. `<Check />`)
12
+ */
13
+ iconLeft?: boolean | ReactNode;
14
+ /** @deprecated Use `iconLeft` instead */
15
+ icon?: boolean | ReactNode;
16
+ border?: boolean;
17
+ children?: ReactNode;
18
+ }
19
+ /** @deprecated Use `LabelProps` instead */
20
+ export type NewTagProps = LabelProps;
21
+ export declare function Label({ variant, iconLeft, icon, border, className, children, ...rest }: LabelProps): import("react/jsx-runtime").JSX.Element;
22
+ /**
23
+ * @deprecated Use `<Label>` instead. `NewTag` will be removed in a future version.
24
+ */
25
+ export declare const NewTag: typeof Label;
@@ -0,0 +1,15 @@
1
+ import { ElementType, ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ export type LinkVariant = 'native' | 'fancy';
3
+ export interface LinkProps<T extends ElementType = 'a'> {
4
+ /** The element or component to render as. Defaults to `'a'`. Pass a router Link for SPA navigation. */
5
+ as?: T;
6
+ /** Link style variant.
7
+ * - `native` — subtle underline, thickens on hover (default)
8
+ * - `fancy` — animated underline that slides in from left on hover
9
+ */
10
+ variant?: LinkVariant;
11
+ children: ReactNode;
12
+ }
13
+ type PolymorphicProps<T extends ElementType> = LinkProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof LinkProps<T>>;
14
+ export declare function Link<T extends ElementType = 'a'>({ as, variant, className, children, ...rest }: PolymorphicProps<T>): import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -0,0 +1,33 @@
1
+ import { ElementType } from 'react';
2
+ /**
3
+ * Visual variants of the newsletter signup.
4
+ * - `default` — empty form, ready for input
5
+ * - `error` — form with a validation error tooltip and red border
6
+ * - `success` — orange confirmation card ("Check your inbox …")
7
+ * - `alreadySubscribedFlash` — form with a disabled "You're in" success button
8
+ * - `alreadySubscribed` — green confirmation card ("You're already subscribed …")
9
+ */
10
+ export type NewsletterSignupState = 'default' | 'error' | 'success' | 'alreadySubscribedFlash' | 'alreadySubscribed';
11
+ export type NewsletterSignupProps = {
12
+ /** Override the link element (e.g. Next.js Link) */
13
+ link?: ElementType;
14
+ /** Privacy policy URL */
15
+ privacyUrl?: string;
16
+ /** API endpoint for the signup POST request */
17
+ endpoint?: string;
18
+ /** Called on successful signup */
19
+ onSuccess?: () => void;
20
+ /** Called on error */
21
+ onError?: (error: string) => void;
22
+ /**
23
+ * Render the component in a specific state. Useful for stories, previews,
24
+ * and tests — consumers normally let the component manage its own state.
25
+ * When set to `alreadySubscribedFlash`, the component does NOT auto-advance
26
+ * to the `alreadySubscribed` confirmation card (so the flash stays visible
27
+ * for inspection).
28
+ */
29
+ initialState?: NewsletterSignupState;
30
+ /** Error message shown when `initialState="error"`. Defaults to the standard invalid-email copy. */
31
+ initialError?: string;
32
+ };
33
+ export declare function NewsletterSignup({ link: LinkComponent, privacyUrl, endpoint, onSuccess, onError, initialState, initialError }: NewsletterSignupProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { HTMLAttributes, ElementType, ReactNode } from 'react';
2
+ export type TypographySize = 50 | 75 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000;
3
+ export type TypographyWeight = 'normal' | 'medium' | 'semi';
4
+ export type TypographyColor = 'primary' | 'secondary' | 'tertiary' | 'brand' | 'brandAlt' | 'brandSelected' | 'successPrimary' | 'successSecondary' | 'successAlt' | 'attention' | 'attentionAlt' | 'danger';
5
+ export interface TypographyProps extends HTMLAttributes<HTMLElement> {
6
+ children?: ReactNode;
7
+ size?: TypographySize;
8
+ weight?: TypographyWeight;
9
+ color?: TypographyColor;
10
+ code?: boolean;
11
+ as?: ElementType;
12
+ }
13
+ export declare const Typography: import('react').ForwardRefExoticComponent<TypographyProps & import('react').RefAttributes<HTMLElement>>;
@@ -1,15 +1,38 @@
1
1
  export { ThemeProvider, useTheme as useNextTheme } from 'next-themes';
2
2
  export type { ButtonProps, ButtonVariant, ButtonSize } from './components/Button';
3
+ export type { ButtonGroupProps, ButtonGroupItem } from './components/ButtonGroup';
3
4
  export type { ContainerProps } from './components/Container';
4
- export type { SubHeaderItem } from './components/Header';
5
+ export type { DiscordInviteProps } from './components/DiscordInvite';
6
+ export type { HeadingProps, HeadingLevel } from './components/Heading';
7
+ export type { TypographyProps, TypographyColor, TypographySize, TypographyWeight } from './components/Typography';
8
+ export type { IconProps, IconSize } from './components/Icon';
9
+ export type { LinkProps, LinkVariant } from './components/Link';
10
+ export type { InputSoloProps, InputSoloVariant } from './components/InputSolo';
11
+ export type { InputGroupedProps, SelectGroupedProps, FormGroupProps, FormRowProps } from './components/InputGrouped';
12
+ export type { BoxProps } from './components/Box';
13
+ export type { HeaderProps, HeaderPosition, SubHeaderItem } from './components/Header';
14
+ export { Box } from './components/Box';
15
+ export { CopyCode } from './components/CopyCode';
16
+ export type { CopyCodeProps } from './components/CopyCode';
17
+ export { Icon } from './components/Icon';
18
+ export { Link } from './components/Link';
5
19
  export { Button } from './components/Button';
20
+ export { ButtonGroup } from './components/ButtonGroup';
21
+ export { InputSolo } from './components/InputSolo';
22
+ export { InputGrouped, SelectGrouped, FormGroup, FormRow } from './components/InputGrouped';
6
23
  export { Container } from './components/Container';
24
+ export { DiscordInvite } from './components/DiscordInvite';
25
+ export { Heading } from './components/Heading';
26
+ export { Typography } from './components/Typography';
7
27
  export { Footer } from './components/Footer';
8
28
  export { GPTInput } from './components/GPTInput';
9
29
  export { Header, SubHeader } from './components/Header';
10
30
  export { Logo } from './components/Logo';
11
- export { NewTag } from './components/NewTag';
31
+ export { Label, NewTag } from './components/Label';
32
+ export type { LabelProps, LabelVariant, NewTagProps, NewTagVariant } from './components/Label';
33
+ export { NewsletterSignup } from './components/NewsletterSignup';
34
+ export type { NewsletterSignupProps } from './components/NewsletterSignup';
12
35
  export { Notification } from './components/Notification';
13
36
  export { PrefPanel } from './components/PrefPanel';
14
37
  export { ThemeLoader, themeLoaderScript } from './components/ThemeLoader';
15
- export { useTheme } from './utils';
38
+ export { useTheme, useClipboard, useSuccessFlash } from './utils';
@@ -1,8 +1,36 @@
1
1
  import { useEffect } from 'react';
2
2
  export declare const emailRegex: RegExp;
3
3
  export declare function validateEmail(email: string): boolean;
4
+ /**
5
+ * Design-system breakpoints imported from design tokens.
6
+ * These values are automatically synced with SCSS breakpoints.
7
+ */
8
+ export declare const breakpoints: {
9
+ readonly mobile: number;
10
+ readonly tablet: number;
11
+ readonly laptop: number;
12
+ readonly desktop: number;
13
+ readonly desktopPlus: number;
14
+ };
4
15
  export declare function useMediaQuery(query: string): boolean;
5
16
  export declare const useIsomorphicLayoutEffect: typeof useEffect;
6
17
  export declare function useMounted(): boolean;
7
18
  export declare function useClipboard(): readonly [(text?: string) => Promise<void>, boolean];
19
+ /**
20
+ * Triggers a temporary success flash state.
21
+ * Use with Button or any component that needs a brief "success" confirmation.
22
+ *
23
+ * @param duration — ms before resetting (default 2000)
24
+ * @returns [trigger, active] — call trigger() to flash, active is true while flashing
25
+ *
26
+ * @example
27
+ * const [flash, flashing] = useSuccessFlash()
28
+ * <Button
29
+ * variant={flashing ? 'success' : 'neutral'}
30
+ * onClick={() => { doSomething(); flash(); }}
31
+ * >
32
+ * {flashing ? 'Done!' : 'Save'}
33
+ * </Button>
34
+ */
35
+ export declare function useSuccessFlash(duration?: number): readonly [() => void, boolean];
8
36
  export declare function useTheme(): string;
package/dist/main.js CHANGED
@@ -1,12 +1,23 @@
1
- import { c as e, l as t, o as n } from "./utils-C4QGLbxr.js";
2
- import { t as r } from "./Button-9RIB8ZR0.js";
3
- import { t as i } from "./Container-LAkF4ShX.js";
4
- import { t as a } from "./PrefPanel-BTX6RAo4.js";
5
- import { t as o } from "./Footer-5yMo5akY.js";
6
- import { t as s } from "./Logo-CZ5LYqub.js";
7
- import { t as c } from "./NewTag-C-3mRyvV.js";
8
- import { n as l } from "./GPTInput-DRFGKJ2u.js";
9
- import { t as u } from "./Notification-DHcQtd1k.js";
10
- import { n as d, t as f } from "./Header-BW8ilZxt.js";
11
- import { ThemeLoader as p, themeLoaderScript as m } from "./components/ThemeLoader/index.js";
12
- export { r as Button, i as Container, o as Footer, l as GPTInput, f as Header, s as Logo, c as NewTag, u as Notification, a as PrefPanel, d as SubHeader, p as ThemeLoader, e as ThemeProvider, m as themeLoaderScript, t as useNextTheme, n as useTheme };
1
+ import { c as e, d as t, r as n, s as r, u as i } from "./utils-BCI5dixg.js";
2
+ import { t as a } from "./Box-Bi-n_ZxQ.js";
3
+ import { t as o } from "./Button-CJp__tle.js";
4
+ import { t as s } from "./CopyCode-BLXf0o74.js";
5
+ import { t as c } from "./Icon-Dwo9ZDNX.js";
6
+ import { t as l } from "./Link-DGMiLJES.js";
7
+ import { t as u } from "./ButtonGroup-M9-A5Xva.js";
8
+ import { t as d } from "./InputSolo-cLqKBh1c.js";
9
+ import { i as f, n as p, r as m, t as h } from "./InputGrouped-CiA86XL7.js";
10
+ import { t as g } from "./Container-DI2smQRq.js";
11
+ import { t as _ } from "./DiscordInvite-Mkr81Pib.js";
12
+ import { t as v } from "./Heading-DuolDa27.js";
13
+ import { t as y } from "./Typography-nzBx3Yxn.js";
14
+ import { t as b } from "./Logo-h9bQL-cT.js";
15
+ import { t as x } from "./NewsletterSignup-eGx4jwiM.js";
16
+ import { t as S } from "./PrefPanel-25erkPRB.js";
17
+ import { n as C, t as w } from "./Label-BH3YxfNt.js";
18
+ import { t as T } from "./Footer-bUIou6Hl.js";
19
+ import { n as E } from "./GPTInput-DKxJOGYt.js";
20
+ import { t as D } from "./Notification-CJ3iQv3Z.js";
21
+ import { n as O, t as k } from "./Header-6RIZc0v3.js";
22
+ import { ThemeLoader as A, themeLoaderScript as j } from "./components/ThemeLoader/index.js";
23
+ export { a as Box, o as Button, u as ButtonGroup, g as Container, s as CopyCode, _ as DiscordInvite, T as Footer, h as FormGroup, p as FormRow, E as GPTInput, k as Header, v as Heading, c as Icon, m as InputGrouped, d as InputSolo, w as Label, l as Link, b as Logo, C as NewTag, x as NewsletterSignup, D as Notification, S as PrefPanel, f as SelectGrouped, O as SubHeader, A as ThemeLoader, i as ThemeProvider, y as Typography, j as themeLoaderScript, n as useClipboard, t as useNextTheme, r as useSuccessFlash, e as useTheme };
@@ -9,3 +9,39 @@
9
9
  white-space: nowrap;
10
10
  border-width: 0;
11
11
  }
12
+
13
+ @mixin a11y-focus-ring-base(
14
+ $radius: inherit,
15
+ $inset: 0,
16
+ $inner-width: 2px,
17
+ $inner-color: var(--HS-common-background),
18
+ $outer-width: 4px,
19
+ $outer-color: var(--HS-text-brand-default-alt)
20
+ ) {
21
+ position: relative;
22
+
23
+ &::after {
24
+ content: '';
25
+ position: absolute;
26
+ inset: $inset;
27
+ box-sizing: border-box;
28
+ border-radius: $radius;
29
+ box-shadow:
30
+ 0 0 0 var(--hsui-a11y-focus-current-inner-width, 0px) $inner-color,
31
+ 0 0 0 var(--hsui-a11y-focus-current-outer-width, 0px) $outer-color;
32
+ opacity: var(--hsui-a11y-focus-opacity, 0);
33
+ pointer-events: none;
34
+ transition:
35
+ box-shadow var(--animations-bounce-default),
36
+ opacity var(--animations-bounce-default);
37
+ }
38
+ }
39
+
40
+ @mixin a11y-focus-ring-visible(
41
+ $inner-width: var(--hsui-a11y-focus-inner-width, 2px),
42
+ $outer-width: var(--hsui-a11y-focus-outer-width, 4px)
43
+ ) {
44
+ --hsui-a11y-focus-opacity: 1;
45
+ --hsui-a11y-focus-current-inner-width: #{$inner-width};
46
+ --hsui-a11y-focus-current-outer-width: #{$outer-width};
47
+ }
@@ -81,6 +81,15 @@ $s6: 64px;
81
81
  $s7: 96px;
82
82
  $s8: 128px;
83
83
 
84
+ // ---------------------------------------------------------------------------
85
+ // Breakpoints
86
+ // ---------------------------------------------------------------------------
87
+ // The design system uses four breakpoints. Always reference them via the
88
+ // for-size() mixin from design tokens directly in your selectors.
89
+ // Example: @include for-size(tablet) { ... }
90
+ // ---------------------------------------------------------------------------
91
+ @use 'highsoft-design-tokens/dist/scss/mixins/breakpoints' as *;
92
+
84
93
  @mixin h($font-size) {
85
94
  font-size: $font-size;
86
95
  font-weight: 700;
@@ -560,3 +569,101 @@ $body-1000: var(--typography-size-1000);
560
569
  --tags-danger-background: var(--primitives-danger-600);
561
570
  --tags-danger-border: var(--primitives-danger-500);
562
571
  }
572
+
573
+ /* Semantics - Light */
574
+ :root {
575
+ --HS-surface-ui-background-0: var(--primitives-neutral-0);
576
+ --HS-surface-ui-background-50: var(--primitives-neutral-50);
577
+ --HS-surface-ui-background-100: var(--primitives-neutral-100);
578
+ --HS-surface-ui-border-25: var(--primitives-neutral-25);
579
+ --HS-surface-ui-border-50: var(--primitives-neutral-50);
580
+ --HS-surface-ui-border-100: var(--primitives-neutral-100);
581
+ --HS-surface-ui-border-200: var(--primitives-neutral-200);
582
+ --HS-surface-ui-border-300: var(--primitives-neutral-300);
583
+ --HS-surface-ui-border-400: var(--primitives-neutral-400);
584
+ --HS-surface-ui-border-1000: var(--primitives-neutral-1000);
585
+ --HS-surface-brand-background-50: var(--primitives-brand-50);
586
+ --HS-surface-brand-background-100: var(--primitives-brand-100);
587
+ --HS-surface-brand-background-200: var(--primitives-brand-200);
588
+ --HS-surface-brand-background-300: var(--HS-surface-brand-border-300);
589
+ --HS-surface-brand-background-1000: var(--primitives-brand-1000);
590
+ --HS-surface-brand-border-100: var(--primitives-brand-100);
591
+ --HS-surface-brand-border-200: var(--primitives-brand-200);
592
+ --HS-surface-brand-border-300: var(--primitives-brand-300);
593
+ --HS-surface-brand-border-400: var(--primitives-brand-400);
594
+ --HS-surface-brand-border-500: var(--primitives-brand-500);
595
+ --HS-surface-success-background: var(--primitives-success-50);
596
+ --HS-surface-success-background-boxed: var(--primitives-success-100);
597
+ --HS-surface-success-border: var(--primitives-success-200);
598
+ --HS-surface-success-border-boxed: var(--primitives-success-300);
599
+ --HS-text-primary-default: var(--primitives-neutral-900);
600
+ --HS-text-secondary-default: var(--primitives-neutral-700);
601
+ --HS-text-tertiary-default: var(--primitives-neutral-500);
602
+ --HS-text-brand-default: var(--primitives-brand-500);
603
+ --HS-text-brand-default-alt: var(--primitives-brand-600);
604
+ --HS-text-brand-selected: var(--primitives-brand-800);
605
+ --HS-text-success-Primary: var(--primitives-success-700);
606
+ --HS-text-success-Secondary: var(--primitives-success-500);
607
+ --HS-text-success-default-alt: var(--primitives-success-1000);
608
+ --HS-text-attention-default: var(--primitives-attention-500);
609
+ --HS-text-attention-default-alt: var(--primitives-attention-1000);
610
+ --HS-text-danger-default: var(--primitives-danger-500);
611
+ --HS-common-background: var(--primitives-neutral-50);
612
+ --HS-surface-danger-background: var(--primitives-danger-50);
613
+ --HS-surface-danger-background-boxed: var(--primitives-danger-100);
614
+ --HS-surface-danger-border: var(--primitives-danger-200);
615
+ --HS-surface-danger-border-boxed: var(--primitives-danger-300);
616
+ --HS-surface-attention-background: var(--primitives-attention-50);
617
+ --HS-surface-attention-background-boxed: var(--primitives-attention-100);
618
+ --HS-surface-attention-border: var(--primitives-attention-200);
619
+ --HS-surface-attention-border-boxed: var(--primitives-attention-300);
620
+ }
621
+
622
+ /* Semantics - Dark */
623
+ [data-theme='dark'] {
624
+ --HS-surface-ui-background-0: var(--primitives-neutral-900);
625
+ --HS-surface-ui-background-50: var(--primitives-neutral-800);
626
+ --HS-surface-ui-background-100: var(--primitives-neutral-750);
627
+ --HS-surface-ui-border-25: var(--primitives-neutral-900);
628
+ --HS-surface-ui-border-50: var(--primitives-neutral-800);
629
+ --HS-surface-ui-border-100: var(--primitives-neutral-700);
630
+ --HS-surface-ui-border-200: var(--primitives-neutral-600);
631
+ --HS-surface-ui-border-300: var(--primitives-neutral-600);
632
+ --HS-surface-ui-border-400: var(--primitives-neutral-600);
633
+ --HS-surface-ui-border-1000: var(--primitives-neutral-0);
634
+ --HS-surface-brand-background-50: var(--primitives-brand-600);
635
+ --HS-surface-brand-background-100: var(--primitives-brand-700);
636
+ --HS-surface-brand-background-200: var(--primitives-brand-800);
637
+ --HS-surface-brand-background-300: var(--primitives-brand-900);
638
+ --HS-surface-brand-background-1000: var(--primitives-brand-50);
639
+ --HS-surface-brand-border-100: var(--primitives-brand-400);
640
+ --HS-surface-brand-border-200: var(--primitives-brand-500);
641
+ --HS-surface-brand-border-300: var(--primitives-brand-600);
642
+ --HS-surface-brand-border-400: var(--primitives-brand-600);
643
+ --HS-surface-brand-border-500: var(--primitives-brand-700);
644
+ --HS-surface-success-background: var(--primitives-success-100);
645
+ --HS-surface-success-background-boxed: var(--primitives-success-200);
646
+ --HS-surface-success-border: var(--primitives-success-300);
647
+ --HS-surface-success-border-boxed: var(--primitives-success-300);
648
+ --HS-text-primary-default: var(--primitives-neutral-25);
649
+ --HS-text-secondary-default: var(--primitives-neutral-200);
650
+ --HS-text-tertiary-default: var(--primitives-neutral-400);
651
+ --HS-text-brand-default: var(--primitives-brand-500);
652
+ --HS-text-brand-default-alt: var(--primitives-brand-400);
653
+ --HS-text-brand-selected: var(--primitives-brand-50);
654
+ --HS-text-success-Primary: var(--primitives-success-300);
655
+ --HS-text-success-Secondary: var(--primitives-success-500);
656
+ --HS-text-success-default-alt: var(--primitives-neutral-0);
657
+ --HS-text-attention-default: var(--primitives-neutral-0);
658
+ --HS-text-attention-default-alt: var(--primitives-neutral-0);
659
+ --HS-text-danger-default: var(--primitives-danger-500);
660
+ --HS-common-background: var(--primitives-neutral-950);
661
+ --HS-surface-danger-background: var(--primitives-danger-1200);
662
+ --HS-surface-danger-background-boxed: var(--primitives-danger-1100);
663
+ --HS-surface-danger-border: var(--primitives-danger-700);
664
+ --HS-surface-danger-border-boxed: var(--primitives-danger-600);
665
+ --HS-surface-attention-background: var(--primitives-attention-100);
666
+ --HS-surface-attention-background-boxed: var(--primitives-attention-200);
667
+ --HS-surface-attention-border: var(--primitives-attention-300);
668
+ --HS-surface-attention-border-boxed: var(--primitives-attention-300);
669
+ }