@qasa/qds-ui 0.27.1 → 0.28.0

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 CHANGED
@@ -6,11 +6,8 @@ QDS UI is a React component library used internally for [Qasa](https://qasa.se)
6
6
 
7
7
  ## 📖 Documentation
8
8
 
9
- All documentation is hosted on our [documentation site](https://qasa.supernova-docs.io/qds/latest).
9
+ All documentation is hosted on our [documentation site](https://qds.qasa.com).
10
10
 
11
11
  ## ⚙️ Installation
12
12
 
13
- To install the library run:
14
- `yarn add @qasa/qds-ui @emotion/react @emotion/styled`
15
-
16
- For a full guide on how to get started, [see the docs](https://qasa.supernova-docs.io/qds/latest/getting-started/overview.html).
13
+ To install the library, see the [installation guide](https://qds.qasa.com/docs/getting-started/developers#setup-qds-in-your-react-app).
package/dist/index.d.ts CHANGED
@@ -3,13 +3,9 @@ import * as _emotion_react from '@emotion/react';
3
3
  import { EmotionCache, CSSObject } from '@emotion/react';
4
4
  import * as react from 'react';
5
5
  import { ElementType, ComponentPropsWithoutRef, ReactNode, SVGAttributes, ReactElement, useLayoutEffect } from 'react';
6
- import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
7
- import * as DropdownPrimitive from '@radix-ui/react-dropdown-menu';
6
+ import { Checkbox as Checkbox$1, DropdownMenu as DropdownMenu$1, RadioGroup as RadioGroup$1, Switch as Switch$1, Toast as Toast$1 } from 'radix-ui';
8
7
  import * as _emotion_styled from '@emotion/styled';
9
8
  import { LucideIcon } from 'lucide-react';
10
- import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
11
- import * as RadixSwitch from '@radix-ui/react-switch';
12
- import * as ToastPrimitive from '@radix-ui/react-toast';
13
9
 
14
10
  declare const theme: {
15
11
  mediaQueries: {
@@ -1363,8 +1359,8 @@ interface CheckboxOptions {
1363
1359
  */
1364
1360
  value?: string;
1365
1361
  }
1366
- type CheckboxProps = Omit<CheckboxPrimitive.CheckboxProps, 'asChild' | 'children' | 'checked' | 'defaultChecked' | keyof CheckboxOptions> & CheckboxOptions;
1367
- declare const Checkbox: react.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps, "children" | "asChild" | keyof CheckboxOptions> & CheckboxOptions & react.RefAttributes<HTMLButtonElement>>;
1362
+ type CheckboxProps = Omit<Checkbox$1.CheckboxProps, 'asChild' | 'children' | 'checked' | 'defaultChecked' | keyof CheckboxOptions> & CheckboxOptions;
1363
+ declare const Checkbox: react.ForwardRefExoticComponent<Omit<Checkbox$1.CheckboxProps, "children" | "asChild" | keyof CheckboxOptions> & CheckboxOptions & react.RefAttributes<HTMLButtonElement>>;
1368
1364
 
1369
1365
  interface DividerOptions {
1370
1366
  /**
@@ -1378,7 +1374,7 @@ interface DividerProps extends HTMLQdsProps<'span'>, DividerOptions {
1378
1374
  }
1379
1375
  declare const Divider: react.ForwardRefExoticComponent<DividerProps & react.RefAttributes<HTMLDivElement>>;
1380
1376
 
1381
- type PrimitiveContentProps = DropdownPrimitive.DropdownMenuContentProps;
1377
+ type PrimitiveContentProps = DropdownMenu$1.DropdownMenuContentProps;
1382
1378
  interface DropdownMenuContentOptions {
1383
1379
  /**
1384
1380
  * Event handler called when focus moves to the trigger after closing.
@@ -1464,7 +1460,7 @@ interface DropdownMenuItemOptions {
1464
1460
  */
1465
1461
  icon?: ElementType<IconProps>;
1466
1462
  }
1467
- interface DropdownMenuItemProps extends Omit<DropdownPrimitive.DropdownMenuItemProps, 'asChild' | keyof DropdownMenuItemOptions>, DropdownMenuItemOptions {
1463
+ interface DropdownMenuItemProps extends Omit<DropdownMenu$1.DropdownMenuItemProps, 'asChild' | keyof DropdownMenuItemOptions>, DropdownMenuItemOptions {
1468
1464
  }
1469
1465
 
1470
1466
  type DropdownTriggerComponent = ForwardRefComponent<'button'>;
@@ -1901,7 +1897,7 @@ interface RadioCardOptions {
1901
1897
  */
1902
1898
  isDisabled?: boolean;
1903
1899
  }
1904
- interface RadioCardProps extends Omit<RadioGroupPrimitive.RadioGroupItemProps, 'asChild' | keyof RadioCardOptions>, RadioCardOptions {
1900
+ interface RadioCardProps extends Omit<RadioGroup$1.RadioGroupItemProps, 'asChild' | keyof RadioCardOptions>, RadioCardOptions {
1905
1901
  }
1906
1902
 
1907
1903
  interface RadioButtonOptions {
@@ -1920,7 +1916,7 @@ interface RadioButtonOptions {
1920
1916
  */
1921
1917
  isDisabled?: boolean;
1922
1918
  }
1923
- interface RadioButtonProps extends Omit<RadioGroupPrimitive.RadioGroupItemProps, 'asChild' | keyof RadioButtonOptions>, RadioButtonOptions {
1919
+ interface RadioButtonProps extends Omit<RadioGroup$1.RadioGroupItemProps, 'asChild' | keyof RadioButtonOptions>, RadioButtonOptions {
1924
1920
  }
1925
1921
 
1926
1922
  type RadioGroupLabelProps = HTMLQdsProps<'span'>;
@@ -1964,7 +1960,7 @@ interface RadioGroupOptions {
1964
1960
  */
1965
1961
  errorMessage?: string;
1966
1962
  }
1967
- interface RadioGroupProps extends Omit<RadioGroupPrimitive.RadioGroupProps, 'asChild' | keyof RadioGroupOptions>, RadioGroupOptions {
1963
+ interface RadioGroupProps extends Omit<RadioGroup$1.RadioGroupProps, 'asChild' | keyof RadioGroupOptions>, RadioGroupOptions {
1968
1964
  }
1969
1965
  declare const RadioGroup: react.ForwardRefExoticComponent<RadioGroupProps & react.RefAttributes<HTMLDivElement>> & {
1970
1966
  Card: react.ForwardRefExoticComponent<RadioCardProps & react.RefAttributes<HTMLButtonElement>>;
@@ -2087,7 +2083,7 @@ interface SwitchOptions {
2087
2083
  isRequired?: boolean;
2088
2084
  onCheckedChange?: (isChecked: boolean) => void;
2089
2085
  }
2090
- interface SwitchProps extends Omit<RadixSwitch.SwitchProps, 'asChild' | keyof SwitchOptions>, SwitchOptions {
2086
+ interface SwitchProps extends Omit<Switch$1.SwitchProps, 'asChild' | keyof SwitchOptions>, SwitchOptions {
2091
2087
  }
2092
2088
  declare const Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<HTMLButtonElement>>;
2093
2089
 
@@ -2149,7 +2145,7 @@ interface ToastOptions {
2149
2145
  type OmittedProps$1 = 'children';
2150
2146
  interface ToastProps extends Omit<HTMLQdsProps<'div'>, OmittedProps$1>, ToastOptions {
2151
2147
  }
2152
- declare function Toast(props: ToastProps & ToastPrimitive.ToastProps): react_jsx_runtime.JSX.Element;
2148
+ declare function Toast(props: ToastProps & Toast$1.ToastProps): react_jsx_runtime.JSX.Element;
2153
2149
 
2154
2150
  interface UseBreakpointOptions {
2155
2151
  /**