@cupra/ui-kit 0.2.0-canary.0 → 1.0.0-canary.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.
@@ -19,15 +19,13 @@ type CustomElement = {
19
19
  target?: never;
20
20
  };
21
21
  type HtmlElement = Link | Button | CustomElement;
22
- type SizeType = 'small' | 'medium' | 'large';
23
- type ResponsiveSize = SizeType | Record<string, SizeType>;
24
22
  export type DsButtonAttrs = {
25
23
  variant?: string;
26
24
  mode?: 'dark' | 'light';
27
25
  disabled?: boolean;
28
26
  destructive?: boolean;
29
27
  'icon-name'?: DsIconAttrs['icon-name'];
30
- size?: ResponsiveSize;
28
+ size?: 'small' | 'medium' | 'large' | string;
31
29
  type?: 'button' | 'submit' | 'reset';
32
30
  'icon-position'?: 'left' | 'right';
33
31
  'icon-size'?: number;
@@ -18,13 +18,11 @@ type CustomElement = {
18
18
  rel?: never;
19
19
  target?: never;
20
20
  };
21
- type SizeType = 'large' | 'medium' | 'small' | 'xlarge';
22
- type ResponsiveSize = SizeType | Record<string, SizeType>;
23
21
  type HtmlElement = Link | Button | CustomElement;
24
22
  export type DsIconButtonAttrs = {
25
23
  variant?: string;
26
24
  mode?: 'dark' | 'light';
27
- size?: ResponsiveSize;
25
+ size?: 'large' | 'medium' | 'small' | 'xlarge' | string;
28
26
  disabled?: boolean;
29
27
  'data-aria-label'?: string;
30
28
  'icon-name'?: DsIconAttrs['icon-name'];
@@ -1,10 +1,7 @@
1
1
  import type { CommonAttrs } from '../../types/types.ts';
2
- type SizeType = 'small' | 'medium';
3
- type ResponsiveSize = SizeType | Record<string, SizeType>;
4
2
  export type DsPickerItemAttrs = {
5
3
  variant?: 'with-border' | 'without-border';
6
- size?: ResponsiveSize;
4
+ size?: 'small' | 'medium' | string;
7
5
  loading?: boolean;
8
6
  selected?: boolean;
9
7
  } & CommonAttrs;
10
- export {};
@@ -25,8 +25,6 @@ type SliderCustomUnit = Omit<NoUnit, 'style'> & {
25
25
  'unit-symbol': string;
26
26
  };
27
27
  type SliderUnitStyle = SliderCurrency | SliderDecimal | SliderPercent | SliderUnit | SliderNoUnit | SliderCustomUnit;
28
- type SliderSize = 'medium' | 'large';
29
- export type ResponsiveSliderSize = SliderSize | Record<string, SliderSize>;
30
28
  export type DsSliderAttrs = CommonAttrs & {
31
29
  min?: number;
32
30
  max?: number;
@@ -36,7 +34,7 @@ export type DsSliderAttrs = CommonAttrs & {
36
34
  'initial-value-min'?: number;
37
35
  'initial-value-max'?: number;
38
36
  mode?: 'dark' | 'light';
39
- size?: ResponsiveSliderSize;
37
+ size?: 'medium' | 'large' | string;
40
38
  disabled?: boolean;
41
39
  'unit-symbol-position'?: 'left' | 'right';
42
40
  locale?: Locale;
@@ -1,4 +1,4 @@
1
1
  import { CommonAttrs } from '../../types/types';
2
2
  export type DsStaticBoxAttrs = {
3
- size?: 'small' | 'medium' | 'large';
3
+ size?: 'small' | 'medium' | 'large' | string;
4
4
  } & CommonAttrs;
@@ -1,7 +1,7 @@
1
1
  import type { Theme } from '../ds-theme-provider/themeContext.ts';
2
2
  import type { CommonAttrs } from '../../types/types';
3
3
  export interface DsThemeProviderAttrs extends CommonAttrs {
4
- theme?: Theme;
4
+ theme: Theme;
5
5
  'load-fonts': boolean;
6
6
  'load-styles': boolean;
7
7
  }
@@ -1 +1,2 @@
1
1
  import './components/index';
2
+ export { iconNames } from './components/ds-icon/iconNames.ts';