@telia/teddy 0.7.52 → 0.7.54

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 (179) hide show
  1. package/dist/components/accordion/accordion-root.d.ts +1 -1
  2. package/dist/components/accordion/accordion-trigger.d.ts +1 -1
  3. package/dist/components/accordion/index.d.ts +1 -1
  4. package/dist/components/avatar/avatar-root.d.ts +4 -4
  5. package/dist/components/avatar/index.d.ts +4 -4
  6. package/dist/components/badge/badge.d.ts +2 -2
  7. package/dist/components/breadcrumbs/breadcrumbs-link.d.ts +5 -5
  8. package/dist/components/breadcrumbs/breadcrumbs-root.d.ts +1 -1
  9. package/dist/components/breadcrumbs/index.d.ts +6 -6
  10. package/dist/components/button/button.cjs +27 -27
  11. package/dist/components/button/button.js +27 -27
  12. package/dist/components/card/card-availability.d.ts +1 -1
  13. package/dist/components/card/card-illustration.d.ts +2 -2
  14. package/dist/components/card/card-link.d.ts +4 -4
  15. package/dist/components/card/card.cjs +52 -52
  16. package/dist/components/card/card.d.ts +2 -2
  17. package/dist/components/card/card.js +52 -52
  18. package/dist/components/card/index.d.ts +2 -2
  19. package/dist/components/carousel/carousel-root.cjs +4 -4
  20. package/dist/components/carousel/carousel-root.js +4 -4
  21. package/dist/components/channel-button/channel-button-root.d.ts +18 -18
  22. package/dist/components/channel-button/index.d.ts +2 -28
  23. package/dist/components/checkbox/checkbox-group-item.d.ts +1 -1
  24. package/dist/components/checkbox/checkbox-group-label.d.ts +2 -2
  25. package/dist/components/checkbox/checkbox-group-list.d.ts +15 -15
  26. package/dist/components/checkbox/checkbox-group.d.ts +20 -20
  27. package/dist/components/checkbox/checkbox-root.d.ts +1 -1
  28. package/dist/components/checkbox/index.d.ts +40 -40
  29. package/dist/components/checkbox-card-group/checkbox-card-group-indicator.cjs +32 -32
  30. package/dist/components/checkbox-card-group/checkbox-card-group-indicator.d.ts +3 -3
  31. package/dist/components/checkbox-card-group/checkbox-card-group-indicator.js +32 -32
  32. package/dist/components/checkbox-card-group/checkbox-card-group-item-title.d.ts +4 -4
  33. package/dist/components/checkbox-card-group/checkbox-card-group-item.d.ts +5 -5
  34. package/dist/components/checkbox-card-group/checkbox-card-group-label.d.ts +20 -20
  35. package/dist/components/checkbox-card-group/checkbox-card-group-root.d.ts +7 -7
  36. package/dist/components/checkbox-card-group/index.d.ts +39 -39
  37. package/dist/components/chip/chip-indicator.d.ts +3 -3
  38. package/dist/components/chip/chip.cjs +3 -3
  39. package/dist/components/chip/chip.js +3 -3
  40. package/dist/components/chip/index.d.ts +4 -4
  41. package/dist/components/collapsible/index.d.ts +2 -2
  42. package/dist/components/color-dot/color-dot-root.d.ts +3 -3
  43. package/dist/components/color-dot/index.d.ts +4 -4
  44. package/dist/components/dashboard-card/dashboard-card-avatar.d.ts +4 -4
  45. package/dist/components/dashboard-card/dashboard-card-root.cjs +15 -15
  46. package/dist/components/dashboard-card/dashboard-card-root.d.ts +5 -5
  47. package/dist/components/dashboard-card/dashboard-card-root.js +15 -15
  48. package/dist/components/dashboard-card/index.d.ts +2 -7
  49. package/dist/components/dashed-button/dashed-button-root.d.ts +38 -38
  50. package/dist/components/date-picker/css.cjs +38 -38
  51. package/dist/components/date-picker/css.js +38 -38
  52. package/dist/components/drawer/drawer-close.cjs +1 -1
  53. package/dist/components/drawer/drawer-close.js +1 -1
  54. package/dist/components/drawer/drawer-content.cjs +1 -1
  55. package/dist/components/drawer/drawer-content.js +1 -1
  56. package/dist/components/drawer/drawer-description.cjs +1 -1
  57. package/dist/components/drawer/drawer-description.js +1 -1
  58. package/dist/components/drawer/drawer-footer.cjs +1 -1
  59. package/dist/components/drawer/drawer-footer.js +1 -1
  60. package/dist/components/drawer/drawer-overlay.cjs +1 -1
  61. package/dist/components/drawer/drawer-overlay.d.ts +1 -1
  62. package/dist/components/drawer/drawer-overlay.js +1 -1
  63. package/dist/components/drawer/drawer-title.cjs +1 -1
  64. package/dist/components/drawer/drawer-title.js +1 -1
  65. package/dist/components/expandable-card/expandable-card-button.d.ts +18 -18
  66. package/dist/components/expandable-card/index.d.ts +20 -18
  67. package/dist/components/flip-card/flip-card-root.d.ts +4 -4
  68. package/dist/components/flip-card/flip-card-trigger.d.ts +17 -17
  69. package/dist/components/flip-card/index.d.ts +2 -7
  70. package/dist/components/icon/utils.d.ts +3 -1
  71. package/dist/components/input/index.d.ts +7 -7
  72. package/dist/components/input/input-group.d.ts +2 -2
  73. package/dist/components/input/input-indicator.d.ts +2 -2
  74. package/dist/components/input/input.d.ts +3 -3
  75. package/dist/components/label/label.d.ts +2 -2
  76. package/dist/components/link/link.d.ts +4 -4
  77. package/dist/components/list/index.d.ts +19 -19
  78. package/dist/components/list/list-illustration.d.ts +1 -1
  79. package/dist/components/list/list.d.ts +18 -18
  80. package/dist/components/meter-bar/index.d.ts +2 -2
  81. package/dist/components/meter-bar/meter-bar-indicator.d.ts +2 -2
  82. package/dist/components/modal/index.d.ts +2 -2
  83. package/dist/components/modal/modal-content.d.ts +1 -1
  84. package/dist/components/modal/modal-image.d.ts +1 -1
  85. package/dist/components/modal/modal-overlay.d.ts +1 -1
  86. package/dist/components/modal/modal-title.d.ts +8 -8
  87. package/dist/components/navigation-menu/global-navigation/global-navigation-desktop-simplified.d.ts +1 -1
  88. package/dist/components/navigation-menu/global-navigation/global-navigation-mobile.d.ts +1 -1
  89. package/dist/components/navigation-menu/global-navigation/global-navigation-search-field.d.ts +3 -3
  90. package/dist/components/navigation-menu/navigation-menu.d.ts +11 -11
  91. package/dist/components/notabene/index.d.ts +2 -2
  92. package/dist/components/notabene/notabene-icon.d.ts +3 -3
  93. package/dist/components/notification/index.d.ts +2 -81
  94. package/dist/components/notification/notification-icon.d.ts +3 -3
  95. package/dist/components/notification/notification-root.cjs +21 -15
  96. package/dist/components/notification/notification-root.d.ts +42 -42
  97. package/dist/components/notification/notification-root.js +21 -15
  98. package/dist/components/pagination/index.d.ts +2 -4
  99. package/dist/components/pagination/pagination-button.d.ts +5 -5
  100. package/dist/components/pagination/pagination-root.d.ts +1 -1
  101. package/dist/components/progress-bar/progress-bar.d.ts +1 -1
  102. package/dist/components/radio-card-group/index.d.ts +32 -32
  103. package/dist/components/radio-card-group/radio-card-group-item-title.d.ts +1 -1
  104. package/dist/components/radio-card-group/radio-card-group-item.d.ts +2 -2
  105. package/dist/components/radio-card-group/radio-card-group-label.d.ts +20 -20
  106. package/dist/components/radio-card-group/radio-card-group-root.d.ts +9 -9
  107. package/dist/components/radio-group/index.d.ts +33 -33
  108. package/dist/components/radio-group/radio-group-item-label.d.ts +3 -3
  109. package/dist/components/radio-group/radio-group-item.d.ts +1 -1
  110. package/dist/components/radio-group/radio-group-label.d.ts +20 -20
  111. package/dist/components/radio-group/radio-group-root.d.ts +9 -9
  112. package/dist/components/radio-group/radio-group-trigger.d.ts +1 -1
  113. package/dist/components/ribbon/ribbon-root.d.ts +2 -2
  114. package/dist/components/scroll-area/index.d.ts +25 -25
  115. package/dist/components/scroll-area/scroll-area-button.d.ts +18 -18
  116. package/dist/components/scroll-area/scroll-area-item.d.ts +4 -4
  117. package/dist/components/scroll-area/scroll-area-root.d.ts +3 -3
  118. package/dist/components/select/select-group.d.ts +2 -2
  119. package/dist/components/select/select-trigger.d.ts +2 -2
  120. package/dist/components/select/select-value.d.ts +1 -1
  121. package/dist/components/shopping-cart/shopping-cart-context.d.ts +0 -1
  122. package/dist/components/shopping-cart/shopping-cart-continue.d.ts +0 -1
  123. package/dist/components/spinner/spinner.d.ts +2 -2
  124. package/dist/components/step-by-step/index.d.ts +7 -7
  125. package/dist/components/step-by-step/step-by-step-root.d.ts +6 -6
  126. package/dist/components/step-by-step/step-by-step-step.d.ts +1 -1
  127. package/dist/components/step-indicator/index.d.ts +9 -9
  128. package/dist/components/step-indicator/step-indicator-root.d.ts +8 -8
  129. package/dist/components/step-indicator/step-indicator-step-element.d.ts +0 -1
  130. package/dist/components/table/index.d.ts +2 -5
  131. package/dist/components/table/table-cell.d.ts +5 -5
  132. package/dist/components/table/table-head.d.ts +6 -6
  133. package/dist/components/table/table-root.cjs +20 -20
  134. package/dist/components/table/table-root.d.ts +2 -2
  135. package/dist/components/table/table-root.js +20 -20
  136. package/dist/components/tabs/index.d.ts +2 -9
  137. package/dist/components/tabs/tabs-content.d.ts +1 -1
  138. package/dist/components/tabs/tabs-list.d.ts +1 -1
  139. package/dist/components/tabs/tabs-root.cjs +5 -5
  140. package/dist/components/tabs/tabs-root.d.ts +6 -6
  141. package/dist/components/tabs/tabs-root.js +5 -5
  142. package/dist/components/tabs/tabs-scroll-button.d.ts +18 -18
  143. package/dist/components/tabs/tabs-scroll.d.ts +3 -3
  144. package/dist/components/tabs/tabs-trigger.d.ts +2 -2
  145. package/dist/components/text-field/index.d.ts +25 -25
  146. package/dist/components/text-field/text-field-button.d.ts +17 -17
  147. package/dist/components/text-field/text-field-error-list.d.ts +1 -1
  148. package/dist/components/text-field/text-field-input-group.d.ts +2 -2
  149. package/dist/components/text-field/text-field-label.d.ts +2 -2
  150. package/dist/components/text-field/text-field.d.ts +3 -3
  151. package/dist/components/text-spacing/text-spacing.d.ts +1 -1
  152. package/dist/components/textarea/index.d.ts +9 -9
  153. package/dist/components/textarea/textarea-group.d.ts +2 -2
  154. package/dist/components/textarea/textarea-indicator.d.ts +2 -2
  155. package/dist/components/textarea/textarea.d.ts +5 -5
  156. package/dist/components/toast/index.d.ts +1 -1
  157. package/dist/components/toast/toast-root.cjs +75 -75
  158. package/dist/components/toast/toast-root.js +75 -75
  159. package/dist/components/toggle/toggle.cjs +4 -4
  160. package/dist/components/toggle/toggle.d.ts +4 -4
  161. package/dist/components/toggle/toggle.js +4 -4
  162. package/dist/components/toggletip/index.d.ts +1 -1
  163. package/dist/components/toggletip/toggletip-root.d.ts +3 -3
  164. package/dist/components/tooltip/index.d.ts +15 -17
  165. package/dist/components/tooltip/tooltip-content.d.ts +15 -15
  166. package/dist/components/tooltip/tooltip-root.d.ts +1 -1
  167. package/dist/components/top-row-buttons/top-row-buttons.d.ts +5 -5
  168. package/dist/components/visually-hidden/visually-hidden.d.ts +2 -2
  169. package/dist/drawer.module-CRbvc--J.js +16 -0
  170. package/dist/drawer.module-CdrdXo5o.cjs +15 -0
  171. package/dist/style.css +861 -815
  172. package/dist/utils/action.d.ts +0 -1
  173. package/dist/utils/component-props-as.d.ts +0 -1
  174. package/dist/utils/generate-styling/gap.d.ts +0 -24
  175. package/package.json +57 -58
  176. package/dist/components/select/index.d.ts +0 -56
  177. package/dist/components/select/select-root.d.ts +0 -54
  178. package/dist/drawer.module-C4NZoZUc.cjs +0 -15
  179. package/dist/drawer.module-jxIDBwQn.js +0 -16
@@ -6,58 +6,58 @@ import { LabelProps } from './radio-group-item-label';
6
6
  import { GroupLabelProps } from './radio-group-label';
7
7
 
8
8
  export declare const RadioGroup: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-radio-group').RadioGroupProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
9
- defaultValue?: string | undefined;
10
- disabled?: boolean | undefined;
11
- name?: string | undefined;
12
- required?: boolean | undefined;
13
- value?: string | undefined;
14
- onValueChange?: ((value: string) => void) | undefined;
15
- orientation?: "horizontal" | "vertical" | undefined;
16
- dir?: "ltr" | "rtl" | undefined;
17
- loop?: boolean | undefined;
9
+ defaultValue?: string;
10
+ disabled?: boolean;
11
+ name?: string;
12
+ required?: boolean;
13
+ value?: string;
14
+ onValueChange?: (value: string) => void;
15
+ orientation?: "horizontal" | "vertical";
16
+ dir?: "ltr" | "rtl";
17
+ loop?: boolean;
18
18
  } & import('react').RefAttributes<HTMLDivElement>> & {
19
19
  Item: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
20
20
  Trigger: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-radio-group').RadioGroupItemProps & import('react').RefAttributes<HTMLButtonElement>, "ref"> & {
21
- id?: string | undefined;
21
+ id?: string;
22
22
  value: string;
23
23
  } & import('react').RefAttributes<HTMLButtonElement>>;
24
24
  Indicator: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-radio-group').RadioGroupIndicatorProps & import('react').RefAttributes<HTMLSpanElement>, "ref"> & import('react').RefAttributes<HTMLSpanElement>>;
25
25
  Label: import('react').ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-label').LabelProps & import('react').RefAttributes<HTMLLabelElement>, "ref"> & {
26
- disabled?: boolean | undefined;
27
- isRequired?: boolean | undefined;
26
+ disabled?: boolean;
27
+ isRequired?: boolean;
28
28
  } & import('react').RefAttributes<HTMLLabelElement>, "ref"> & {
29
- htmlFor?: string | undefined;
29
+ htmlFor?: string;
30
30
  } & import('react').RefAttributes<HTMLLabelElement>>;
31
31
  GroupLabel: import('react').ForwardRefExoticComponent<(({
32
- id?: string | undefined;
33
- asChild?: false | undefined;
32
+ id?: string;
33
+ asChild?: false;
34
34
  } & {
35
- as?: "h2" | undefined;
36
- asChild?: false | undefined;
35
+ as?: "h2";
36
+ asChild?: false;
37
37
  } & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">) | ({
38
- id?: string | undefined;
39
- asChild?: false | undefined;
38
+ id?: string;
39
+ asChild?: false;
40
40
  } & {
41
- as?: "h3" | undefined;
42
- asChild?: false | undefined;
41
+ as?: "h3";
42
+ asChild?: false;
43
43
  } & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">) | ({
44
- id?: string | undefined;
45
- asChild?: false | undefined;
44
+ id?: string;
45
+ asChild?: false;
46
46
  } & {
47
- as?: "h4" | undefined;
48
- asChild?: false | undefined;
47
+ as?: "h4";
48
+ asChild?: false;
49
49
  } & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">) | ({
50
- id?: string | undefined;
51
- asChild?: false | undefined;
50
+ id?: string;
51
+ asChild?: false;
52
52
  } & {
53
- as?: "h5" | undefined;
54
- asChild?: false | undefined;
53
+ as?: "h5";
54
+ asChild?: false;
55
55
  } & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">) | ({
56
- id?: string | undefined;
57
- asChild?: false | undefined;
56
+ id?: string;
57
+ asChild?: false;
58
58
  } & {
59
- as?: "h6" | undefined;
60
- asChild?: false | undefined;
59
+ as?: "h6";
60
+ asChild?: false;
61
61
  } & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">)) & import('react').RefAttributes<HTMLButtonElement>>;
62
62
  };
63
63
  export type RadioGroupProps = {
@@ -7,9 +7,9 @@ export type LabelProps = React.ComponentPropsWithoutRef<typeof LabelPrimitive> &
7
7
  };
8
8
  /** Label for the radio button */
9
9
  export declare const Label: React.ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-label').LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & {
10
- disabled?: boolean | undefined;
11
- isRequired?: boolean | undefined;
10
+ disabled?: boolean;
11
+ isRequired?: boolean;
12
12
  } & React.RefAttributes<HTMLLabelElement>, "ref"> & {
13
13
  /** This is used to connect label and trigger. The connection is made automatically, but if you override the id in the trigger, you will need to provide the id here as well. */
14
- htmlFor?: string | undefined;
14
+ htmlFor?: string;
15
15
  } & React.RefAttributes<HTMLLabelElement>>;
@@ -3,7 +3,7 @@ import { default as React } from 'react';
3
3
  export type ItemProps = React.ComponentPropsWithoutRef<'div'>;
4
4
  export declare const ItemContext: React.Context<{
5
5
  triggerRef: React.RefObject<HTMLButtonElement>;
6
- id?: string | undefined;
6
+ id?: string;
7
7
  } | undefined>;
8
8
  /** Item is used to group a radio button */
9
9
  export declare const Item: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -33,34 +33,34 @@ type H6Props = {
33
33
  } & React.ComponentPropsWithoutRef<'h6'>;
34
34
  /** Label for the radio group */
35
35
  export declare const GroupLabel: React.ForwardRefExoticComponent<(({
36
- id?: string | undefined;
37
- asChild?: false | undefined;
36
+ id?: string;
37
+ asChild?: false;
38
38
  } & {
39
- as?: "h2" | undefined;
40
- asChild?: false | undefined;
39
+ as?: "h2";
40
+ asChild?: false;
41
41
  } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">) | ({
42
- id?: string | undefined;
43
- asChild?: false | undefined;
42
+ id?: string;
43
+ asChild?: false;
44
44
  } & {
45
- as?: "h3" | undefined;
46
- asChild?: false | undefined;
45
+ as?: "h3";
46
+ asChild?: false;
47
47
  } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">) | ({
48
- id?: string | undefined;
49
- asChild?: false | undefined;
48
+ id?: string;
49
+ asChild?: false;
50
50
  } & {
51
- as?: "h4" | undefined;
52
- asChild?: false | undefined;
51
+ as?: "h4";
52
+ asChild?: false;
53
53
  } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">) | ({
54
- id?: string | undefined;
55
- asChild?: false | undefined;
54
+ id?: string;
55
+ asChild?: false;
56
56
  } & {
57
- as?: "h5" | undefined;
58
- asChild?: false | undefined;
57
+ as?: "h5";
58
+ asChild?: false;
59
59
  } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">) | ({
60
- id?: string | undefined;
61
- asChild?: false | undefined;
60
+ id?: string;
61
+ asChild?: false;
62
62
  } & {
63
- as?: "h6" | undefined;
64
- asChild?: false | undefined;
63
+ as?: "h6";
64
+ asChild?: false;
65
65
  } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">)) & React.RefAttributes<HTMLButtonElement>>;
66
66
  export {};
@@ -30,23 +30,23 @@ export type RootProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitiv
30
30
  };
31
31
  export declare const Root: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
32
32
  /** The value of the radio item that should be checked when initially rendered. Use when you do not need to control the state of the radio items. */
33
- defaultValue?: string | undefined;
33
+ defaultValue?: string;
34
34
  /** When `true`, prevents the user from interacting with radio items. */
35
- disabled?: boolean | undefined;
35
+ disabled?: boolean;
36
36
  /** The name of the group. Submitted with its owning form as part of a name/value pair. */
37
- name?: string | undefined;
37
+ name?: string;
38
38
  /** When `true`, indicates that the user must check a radio item before the owning form can be submitted. */
39
- required?: boolean | undefined;
39
+ required?: boolean;
40
40
  /** The controlled value of the radio item to check. Should be used in conjunction with onValueChange. */
41
- value?: string | undefined;
41
+ value?: string;
42
42
  /** Event handler called when the value changes. */
43
- onValueChange?: ((value: string) => void) | undefined;
43
+ onValueChange?: (value: string) => void;
44
44
  /** The orientation of the component. */
45
- orientation?: "horizontal" | "vertical" | undefined;
45
+ orientation?: "horizontal" | "vertical";
46
46
  /** The reading direction of the radio group. If omitted, inherits globally from DirectionProvider or assumes LTR (left-to-right) reading mode. */
47
- dir?: "ltr" | "rtl" | undefined;
47
+ dir?: "ltr" | "rtl";
48
48
  /** When true, keyboard navigation will loop from last item to first, and vice versa.
49
49
  * @default true
50
50
  */
51
- loop?: boolean | undefined;
51
+ loop?: boolean;
52
52
  } & React.RefAttributes<HTMLDivElement>>;
@@ -8,7 +8,7 @@ export type TriggerProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimi
8
8
  };
9
9
  /** Trigger is the element for selecting an option. An input will also render when used within a form to ensure events propagate correctly. */
10
10
  export declare const Trigger: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
11
- id?: string | undefined;
11
+ id?: string;
12
12
  /** The value given as data when submitted with a name. This is used to determine which radio button is selected. */
13
13
  value: string;
14
14
  } & React.RefAttributes<HTMLButtonElement>>;
@@ -7,7 +7,7 @@ export type RootProps = React.ComponentPropsWithoutRef<'div'> & {
7
7
  rounded: boolean;
8
8
  };
9
9
  export declare const Root: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
10
- variant?: "orange-100" | "green-50" | "orange-50" | "purple-50" | undefined;
11
- iconPlacement?: "center" | "top" | undefined;
10
+ variant?: "orange-100" | "green-50" | "orange-50" | "purple-50";
11
+ iconPlacement?: "top" | "center";
12
12
  rounded: boolean;
13
13
  } & React.RefAttributes<HTMLDivElement>>;
@@ -4,43 +4,43 @@ import { ButtonProps } from './scroll-area-button';
4
4
 
5
5
  export declare const ScrollArea: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-scroll-area').ScrollAreaProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
6
6
  variant?: ("button" | "hidden" | "scrollbar") | undefined;
7
- scrollBehavior?: "auto" | "smooth" | undefined;
8
- viewPortClassName?: string | undefined;
9
- barClassName?: string | undefined;
7
+ scrollBehavior?: "smooth" | "auto";
8
+ viewPortClassName?: string;
9
+ barClassName?: string;
10
10
  } & import('react').RefAttributes<HTMLDivElement>> & {
11
11
  Item: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
12
- asChild?: boolean | undefined;
13
- isSelected?: boolean | undefined;
14
- scrollBehavior?: "auto" | "smooth" | undefined;
15
- scrollBehaviorOnMount?: "auto" | "smooth" | undefined;
12
+ asChild?: boolean;
13
+ isSelected?: boolean;
14
+ scrollBehavior?: "smooth" | "auto";
15
+ scrollBehaviorOnMount?: "smooth" | "auto";
16
16
  } & import('react').RefAttributes<HTMLDivElement>>;
17
17
  Button: import('react').ForwardRefExoticComponent<Omit<Omit<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "aria-label"> & import('../../utils/generate-styling/flex').FlexChildren & import('../../utils/generate-styling/grid').GridChildren & import('../../utils/generate-styling/position').PositionProps & import('../../utils/generate-styling/inset').InsetProps & import('../../utils/generate-styling/radius').RadiusProps & import('../../utils/generate-styling/margin').MarginProps & import('../../utils/generate-styling/padding').PaddingProps & import('../../utils/generate-styling/width').WidthProps & import('../../utils/generate-styling/height').HeightProps & import('../../utils/generate-styling/color').ColorProps & {
18
- display?: import('../../utils/generate-styling').DisplayChildren | undefined;
18
+ display?: import('../../utils/generate-styling').DisplayChildren;
19
19
  } & {
20
- asChild?: boolean | undefined;
21
- loading?: boolean | undefined;
22
- fullWidth?: boolean | undefined;
23
- size?: "sm" | "md" | "lg" | undefined;
24
- variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "text-underline" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
25
- borderStyle?: ("dashed" | "default") | undefined;
20
+ asChild?: boolean;
21
+ loading?: boolean;
22
+ fullWidth?: boolean;
23
+ size?: import('../button/button').Size;
24
+ variant?: import('../button/button').Variant;
25
+ borderStyle?: "dashed" | "default";
26
26
  } & {
27
27
  iconOnly: true;
28
28
  "aria-label": string;
29
29
  } & import('react').RefAttributes<HTMLButtonElement>, "ref"> | Omit<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "aria-label"> & import('../../utils/generate-styling/flex').FlexChildren & import('../../utils/generate-styling/grid').GridChildren & import('../../utils/generate-styling/position').PositionProps & import('../../utils/generate-styling/inset').InsetProps & import('../../utils/generate-styling/radius').RadiusProps & import('../../utils/generate-styling/margin').MarginProps & import('../../utils/generate-styling/padding').PaddingProps & import('../../utils/generate-styling/width').WidthProps & import('../../utils/generate-styling/height').HeightProps & import('../../utils/generate-styling/color').ColorProps & {
30
- display?: import('../../utils/generate-styling').DisplayChildren | undefined;
30
+ display?: import('../../utils/generate-styling').DisplayChildren;
31
31
  } & {
32
- asChild?: boolean | undefined;
33
- loading?: boolean | undefined;
34
- fullWidth?: boolean | undefined;
35
- size?: "sm" | "md" | "lg" | undefined;
36
- variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "text-underline" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
37
- borderStyle?: ("dashed" | "default") | undefined;
32
+ asChild?: boolean;
33
+ loading?: boolean;
34
+ fullWidth?: boolean;
35
+ size?: import('../button/button').Size;
36
+ variant?: import('../button/button').Variant;
37
+ borderStyle?: "dashed" | "default";
38
38
  } & {
39
- iconOnly?: false | undefined;
40
- "aria-label"?: string | undefined;
39
+ iconOnly?: false;
40
+ "aria-label"?: string;
41
41
  } & import('react').RefAttributes<HTMLButtonElement>, "ref">, "hidden"> & {
42
- direction?: "left" | "right" | "up" | "down" | undefined;
43
- hidden?: boolean | undefined;
42
+ direction?: "up" | "down" | "left" | "right";
43
+ hidden?: boolean;
44
44
  } & import('react').RefAttributes<HTMLButtonElement>>;
45
45
  Scrollbar: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-scroll-area').ScrollAreaScrollbarProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
46
46
  };
@@ -11,32 +11,32 @@ export type ButtonProps = Omit<React.ComponentPropsWithoutRef<typeof PrimitiveBu
11
11
  hidden?: boolean;
12
12
  };
13
13
  export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "aria-label"> & import('../../utils/generate-styling/flex').FlexChildren & import('../../utils/generate-styling/grid').GridChildren & import('../../utils/generate-styling/position').PositionProps & import('../../utils/generate-styling/inset').InsetProps & import('../../utils/generate-styling/radius').RadiusProps & import('../../utils/generate-styling/margin').MarginProps & import('../../utils/generate-styling/padding').PaddingProps & import('../../utils/generate-styling/width').WidthProps & import('../../utils/generate-styling/height').HeightProps & import('../../utils/generate-styling/color').ColorProps & {
14
- display?: import('../../utils/generate-styling').DisplayChildren | undefined;
14
+ display?: import('../../utils/generate-styling').DisplayChildren;
15
15
  } & {
16
- asChild?: boolean | undefined;
17
- loading?: boolean | undefined;
18
- fullWidth?: boolean | undefined;
19
- size?: "sm" | "md" | "lg" | undefined;
20
- variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "text-underline" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
21
- borderStyle?: ("dashed" | "default") | undefined;
16
+ asChild?: boolean;
17
+ loading?: boolean;
18
+ fullWidth?: boolean;
19
+ size?: import('../button/button').Size;
20
+ variant?: import('../button/button').Variant;
21
+ borderStyle?: "dashed" | "default";
22
22
  } & {
23
23
  iconOnly: true;
24
24
  "aria-label": string;
25
25
  } & React.RefAttributes<HTMLButtonElement>, "ref"> | Omit<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "aria-label"> & import('../../utils/generate-styling/flex').FlexChildren & import('../../utils/generate-styling/grid').GridChildren & import('../../utils/generate-styling/position').PositionProps & import('../../utils/generate-styling/inset').InsetProps & import('../../utils/generate-styling/radius').RadiusProps & import('../../utils/generate-styling/margin').MarginProps & import('../../utils/generate-styling/padding').PaddingProps & import('../../utils/generate-styling/width').WidthProps & import('../../utils/generate-styling/height').HeightProps & import('../../utils/generate-styling/color').ColorProps & {
26
- display?: import('../../utils/generate-styling').DisplayChildren | undefined;
26
+ display?: import('../../utils/generate-styling').DisplayChildren;
27
27
  } & {
28
- asChild?: boolean | undefined;
29
- loading?: boolean | undefined;
30
- fullWidth?: boolean | undefined;
31
- size?: "sm" | "md" | "lg" | undefined;
32
- variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "text-underline" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
33
- borderStyle?: ("dashed" | "default") | undefined;
28
+ asChild?: boolean;
29
+ loading?: boolean;
30
+ fullWidth?: boolean;
31
+ size?: import('../button/button').Size;
32
+ variant?: import('../button/button').Variant;
33
+ borderStyle?: "dashed" | "default";
34
34
  } & {
35
- iconOnly?: false | undefined;
36
- "aria-label"?: string | undefined;
35
+ iconOnly?: false;
36
+ "aria-label"?: string;
37
37
  } & React.RefAttributes<HTMLButtonElement>, "ref">, "hidden"> & {
38
38
  /** The direction in which the button should point and scroll */
39
- direction?: "left" | "right" | "up" | "down" | undefined;
39
+ direction?: "up" | "down" | "left" | "right";
40
40
  /** Hidden will fade the button out. Used when the scrollbar is at the end */
41
- hidden?: boolean | undefined;
41
+ hidden?: boolean;
42
42
  } & React.RefAttributes<HTMLButtonElement>>;
@@ -7,8 +7,8 @@ export type ItemProps = React.ComponentPropsWithoutRef<'div'> & {
7
7
  scrollBehaviorOnMount?: 'smooth' | 'auto';
8
8
  };
9
9
  export declare const Item: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
10
- asChild?: boolean | undefined;
11
- isSelected?: boolean | undefined;
12
- scrollBehavior?: "auto" | "smooth" | undefined;
13
- scrollBehaviorOnMount?: "auto" | "smooth" | undefined;
10
+ asChild?: boolean;
11
+ isSelected?: boolean;
12
+ scrollBehavior?: "smooth" | "auto";
13
+ scrollBehaviorOnMount?: "smooth" | "auto";
14
14
  } & React.RefAttributes<HTMLDivElement>>;
@@ -44,14 +44,14 @@ export declare const Root: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimit
44
44
  /**
45
45
  * The scroll behavior of the scroll area
46
46
  */
47
- scrollBehavior?: "auto" | "smooth" | undefined;
47
+ scrollBehavior?: "smooth" | "auto";
48
48
  /**
49
49
  * To style the viewport, viewport is the inner container of the scroll area
50
50
  */
51
- viewPortClassName?: string | undefined;
51
+ viewPortClassName?: string;
52
52
  /**
53
53
  * To style the scrollbar
54
54
  */
55
- barClassName?: string | undefined;
55
+ barClassName?: string;
56
56
  } & React.RefAttributes<HTMLDivElement>>;
57
57
  export {};
@@ -6,6 +6,6 @@ export type GroupProps = React.ComponentPropsWithoutRef<typeof RadixSelect.Group
6
6
  label?: string;
7
7
  };
8
8
  export declare const Group: React.ForwardRefExoticComponent<Omit<RadixSelect.SelectGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
9
- options?: string[] | undefined;
10
- label?: string | undefined;
9
+ options?: string[];
10
+ label?: string;
11
11
  } & React.RefAttributes<HTMLDivElement>>;
@@ -10,7 +10,7 @@ export type TriggerProps = React.ComponentPropsWithoutRef<typeof RadixSelect.Tri
10
10
  };
11
11
  export declare const Trigger: React.ForwardRefExoticComponent<Omit<RadixSelect.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
12
12
  /** Whether the input should display its "valid" or "invalid" visual styling. */
13
- validationState?: ValidationState | undefined;
13
+ validationState?: ValidationState;
14
14
  /** Called when the value changes. */
15
- readonly?: boolean | undefined;
15
+ readonly?: boolean;
16
16
  } & React.RefAttributes<HTMLButtonElement>>;
@@ -5,5 +5,5 @@ export type ValueProps = React.ComponentPropsWithoutRef<typeof RadixSelect.Value
5
5
  placeholder?: string;
6
6
  };
7
7
  export declare const Value: React.ForwardRefExoticComponent<Omit<RadixSelect.SelectValueProps & React.RefAttributes<HTMLSpanElement>, "ref"> & {
8
- placeholder?: string | undefined;
8
+ placeholder?: string;
9
9
  } & React.RefAttributes<HTMLSpanElement>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface ShoppingCartContextValue {
3
2
  formatPrice: (price: string | number) => string;
4
3
  hasPaid?: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface ContinueProps {
3
2
  children: React.ReactNode;
4
3
  className?: string;
@@ -20,8 +20,8 @@ type SpinnerProps = React.ComponentPropsWithoutRef<'svg'> & {
20
20
  variant?: SpinnerVariant;
21
21
  };
22
22
  declare const Spinner: React.ForwardRefExoticComponent<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
23
- size?: SpinnerSize | undefined;
24
- variant?: SpinnerVariant | undefined;
23
+ size?: SpinnerSize;
24
+ variant?: SpinnerVariant;
25
25
  } & React.RefAttributes<SVGSVGElement>>;
26
26
  export { Spinner };
27
27
  export type { SpinnerProps, SpinnerSize, SpinnerVariant };
@@ -5,15 +5,15 @@ import { Description, DescriptionProps } from './step-by-step-description';
5
5
  import { ContentProps } from './step-by-step-content';
6
6
 
7
7
  declare const StepByStep: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref">, "onSelect"> & {
8
- interactive?: boolean | undefined;
9
- selectedIndex?: number | undefined;
10
- onSelect?: ((index: number) => void) | undefined;
11
- size?: "xs" | "sm" | "md" | "lg" | undefined;
12
- borders?: "solid" | "dashed" | undefined;
13
- standalone?: boolean | undefined;
8
+ interactive?: boolean;
9
+ selectedIndex?: number;
10
+ onSelect?: (index: number) => void;
11
+ size?: "xs" | "sm" | "md" | "lg";
12
+ borders?: "solid" | "dashed";
13
+ standalone?: boolean;
14
14
  } & import('react').RefAttributes<HTMLUListElement>> & {
15
15
  Step: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
16
- index?: number | undefined;
16
+ index?: number;
17
17
  } & import('react').RefAttributes<HTMLLIElement>>;
18
18
  Icon: typeof StepIcon;
19
19
  Description: typeof Description;
@@ -44,28 +44,28 @@ export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<React.Detai
44
44
  /**
45
45
  * Whether steps can be clicked to expand/collapse their content.
46
46
  */
47
- interactive?: boolean | undefined;
47
+ interactive?: boolean;
48
48
  /**
49
49
  * Index of the active step (controlled). Starts at 0.
50
50
  */
51
- selectedIndex?: number | undefined;
51
+ selectedIndex?: number;
52
52
  /**
53
53
  * Callback fired when a step is selected (controlled mode).
54
54
  */
55
- onSelect?: ((index: number) => void) | undefined;
55
+ onSelect?: (index: number) => void;
56
56
  /**
57
57
  * Size of the step icon element.
58
58
  * @default 'lg'
59
59
  */
60
- size?: "xs" | "sm" | "md" | "lg" | undefined;
60
+ size?: "xs" | "sm" | "md" | "lg";
61
61
  /**
62
62
  * Style of the connector line between steps.
63
63
  * @default 'solid'
64
64
  */
65
- borders?: "solid" | "dashed" | undefined;
65
+ borders?: "solid" | "dashed";
66
66
  /**
67
67
  * When true, all step icons are rendered in their default (non-highlighted) state
68
68
  * regardless of the selected index.
69
69
  */
70
- standalone?: boolean | undefined;
70
+ standalone?: boolean;
71
71
  } & React.RefAttributes<HTMLUListElement>>;
@@ -20,5 +20,5 @@ export declare const Step: React.ForwardRefExoticComponent<Omit<React.DetailedHT
20
20
  /**
21
21
  * Zero-based index of this step. Required for interactive mode.
22
22
  */
23
- index?: number | undefined;
23
+ index?: number;
24
24
  } & React.RefAttributes<HTMLLIElement>>;
@@ -4,15 +4,15 @@ import { StepElementProps } from './step-indicator-step-element';
4
4
  import { StepLineProps } from './step-indicator-step-line';
5
5
 
6
6
  declare const StepIndicator: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "onClick"> & {
7
- index?: number | undefined;
8
- numberOfSteps?: number | undefined;
9
- labels?: import('react').ReactNode[] | undefined;
10
- links?: string[] | undefined;
11
- disabled?: boolean[] | undefined;
12
- kind?: "purple" | undefined;
13
- onClick?: ((index: number) => void) | undefined;
14
- completedSteps?: number[] | undefined;
15
- children?: import('react').ReactNode;
7
+ index?: number;
8
+ numberOfSteps?: number;
9
+ labels?: Array<React.ReactNode>;
10
+ links?: string[];
11
+ disabled?: boolean[];
12
+ kind?: "purple";
13
+ onClick?: (index: number) => void;
14
+ completedSteps?: number[];
15
+ children?: React.ReactNode;
16
16
  } & import('react').RefAttributes<HTMLDivElement>> & {
17
17
  Step: {
18
18
  ({ index, activeStep, numberOfSteps, label, link, isDisabled, onClick, isCompleted, srOnlyText, children, }: StepProps): import("react/jsx-runtime").JSX.Element;
@@ -31,25 +31,25 @@ export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<React.Detai
31
31
  /**
32
32
  * Current active step (index starts at 0)
33
33
  */
34
- index?: number | undefined;
34
+ index?: number;
35
35
  /**
36
36
  * Total number of steps
37
37
  */
38
- numberOfSteps?: number | undefined;
38
+ numberOfSteps?: number;
39
39
  /**
40
40
  * Labels for steps
41
41
  */
42
- labels?: React.ReactNode[] | undefined;
42
+ labels?: Array<React.ReactNode>;
43
43
  /**
44
44
  * Links for steps
45
45
  */
46
- links?: string[] | undefined;
46
+ links?: string[];
47
47
  /**
48
48
  * List of indexes that should be disabled
49
49
  */
50
- disabled?: boolean[] | undefined;
51
- kind?: "purple" | undefined;
52
- onClick?: ((index: number) => void) | undefined;
53
- completedSteps?: number[] | undefined;
50
+ disabled?: boolean[];
51
+ kind?: "purple";
52
+ onClick?: (index: number) => void;
53
+ completedSteps?: number[];
54
54
  children?: React.ReactNode;
55
55
  } & React.RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface StepElementProps {
3
2
  isPassed: boolean;
4
3
  isDisabled?: boolean;
@@ -3,7 +3,7 @@ import { Cell, CellProps } from './table-cell';
3
3
  import { Footer, FooterProps } from './table-footer';
4
4
  import { Head, HeadProps } from './table-head';
5
5
  import { Header, HeaderProps } from './table-header';
6
- import { RootProps } from './table-root';
6
+ import { Root, RootProps } from './table-root';
7
7
  import { Row, RowProps } from './table-row';
8
8
 
9
9
  type TableProps = {
@@ -41,10 +41,7 @@ type TableProps = {
41
41
  * </Table.Body>
42
42
  * </Table>
43
43
  */
44
- declare const Table: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLTableElement> & {
45
- height?: string | number | undefined;
46
- width?: string | number | undefined;
47
- } & import('react').RefAttributes<HTMLTableElement>> & {
44
+ declare const Table: typeof Root & {
48
45
  /**
49
46
  * Header component for the table. Contains header rows and cells.
50
47
  *
@@ -13,9 +13,9 @@ export declare const Cell: React.ForwardRefExoticComponent<React.TdHTMLAttribute
13
13
  /**
14
14
  * Whether this cell contains numeric data (will be right-aligned)
15
15
  */
16
- numeric?: boolean | undefined;
17
- stickyLeft?: boolean | undefined;
18
- stickyRight?: boolean | undefined;
19
- stickyTop?: boolean | undefined;
20
- stickyBottom?: boolean | undefined;
16
+ numeric?: boolean;
17
+ stickyLeft?: boolean;
18
+ stickyRight?: boolean;
19
+ stickyTop?: boolean;
20
+ stickyBottom?: boolean;
21
21
  } & React.RefAttributes<HTMLTableCellElement>>;