@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.
- package/dist/components/accordion/accordion-root.d.ts +1 -1
- package/dist/components/accordion/accordion-trigger.d.ts +1 -1
- package/dist/components/accordion/index.d.ts +1 -1
- package/dist/components/avatar/avatar-root.d.ts +4 -4
- package/dist/components/avatar/index.d.ts +4 -4
- package/dist/components/badge/badge.d.ts +2 -2
- package/dist/components/breadcrumbs/breadcrumbs-link.d.ts +5 -5
- package/dist/components/breadcrumbs/breadcrumbs-root.d.ts +1 -1
- package/dist/components/breadcrumbs/index.d.ts +6 -6
- package/dist/components/button/button.cjs +27 -27
- package/dist/components/button/button.js +27 -27
- package/dist/components/card/card-availability.d.ts +1 -1
- package/dist/components/card/card-illustration.d.ts +2 -2
- package/dist/components/card/card-link.d.ts +4 -4
- package/dist/components/card/card.cjs +52 -52
- package/dist/components/card/card.d.ts +2 -2
- package/dist/components/card/card.js +52 -52
- package/dist/components/card/index.d.ts +2 -2
- package/dist/components/carousel/carousel-root.cjs +4 -4
- package/dist/components/carousel/carousel-root.js +4 -4
- package/dist/components/channel-button/channel-button-root.d.ts +18 -18
- package/dist/components/channel-button/index.d.ts +2 -28
- package/dist/components/checkbox/checkbox-group-item.d.ts +1 -1
- package/dist/components/checkbox/checkbox-group-label.d.ts +2 -2
- package/dist/components/checkbox/checkbox-group-list.d.ts +15 -15
- package/dist/components/checkbox/checkbox-group.d.ts +20 -20
- package/dist/components/checkbox/checkbox-root.d.ts +1 -1
- package/dist/components/checkbox/index.d.ts +40 -40
- package/dist/components/checkbox-card-group/checkbox-card-group-indicator.cjs +32 -32
- package/dist/components/checkbox-card-group/checkbox-card-group-indicator.d.ts +3 -3
- package/dist/components/checkbox-card-group/checkbox-card-group-indicator.js +32 -32
- package/dist/components/checkbox-card-group/checkbox-card-group-item-title.d.ts +4 -4
- package/dist/components/checkbox-card-group/checkbox-card-group-item.d.ts +5 -5
- package/dist/components/checkbox-card-group/checkbox-card-group-label.d.ts +20 -20
- package/dist/components/checkbox-card-group/checkbox-card-group-root.d.ts +7 -7
- package/dist/components/checkbox-card-group/index.d.ts +39 -39
- package/dist/components/chip/chip-indicator.d.ts +3 -3
- package/dist/components/chip/chip.cjs +3 -3
- package/dist/components/chip/chip.js +3 -3
- package/dist/components/chip/index.d.ts +4 -4
- package/dist/components/collapsible/index.d.ts +2 -2
- package/dist/components/color-dot/color-dot-root.d.ts +3 -3
- package/dist/components/color-dot/index.d.ts +4 -4
- package/dist/components/dashboard-card/dashboard-card-avatar.d.ts +4 -4
- package/dist/components/dashboard-card/dashboard-card-root.cjs +15 -15
- package/dist/components/dashboard-card/dashboard-card-root.d.ts +5 -5
- package/dist/components/dashboard-card/dashboard-card-root.js +15 -15
- package/dist/components/dashboard-card/index.d.ts +2 -7
- package/dist/components/dashed-button/dashed-button-root.d.ts +38 -38
- package/dist/components/date-picker/css.cjs +38 -38
- package/dist/components/date-picker/css.js +38 -38
- package/dist/components/drawer/drawer-close.cjs +1 -1
- package/dist/components/drawer/drawer-close.js +1 -1
- package/dist/components/drawer/drawer-content.cjs +1 -1
- package/dist/components/drawer/drawer-content.js +1 -1
- package/dist/components/drawer/drawer-description.cjs +1 -1
- package/dist/components/drawer/drawer-description.js +1 -1
- package/dist/components/drawer/drawer-footer.cjs +1 -1
- package/dist/components/drawer/drawer-footer.js +1 -1
- package/dist/components/drawer/drawer-overlay.cjs +1 -1
- package/dist/components/drawer/drawer-overlay.d.ts +1 -1
- package/dist/components/drawer/drawer-overlay.js +1 -1
- package/dist/components/drawer/drawer-title.cjs +1 -1
- package/dist/components/drawer/drawer-title.js +1 -1
- package/dist/components/expandable-card/expandable-card-button.d.ts +18 -18
- package/dist/components/expandable-card/index.d.ts +20 -18
- package/dist/components/flip-card/flip-card-root.d.ts +4 -4
- package/dist/components/flip-card/flip-card-trigger.d.ts +17 -17
- package/dist/components/flip-card/index.d.ts +2 -7
- package/dist/components/icon/utils.d.ts +3 -1
- package/dist/components/input/index.d.ts +7 -7
- package/dist/components/input/input-group.d.ts +2 -2
- package/dist/components/input/input-indicator.d.ts +2 -2
- package/dist/components/input/input.d.ts +3 -3
- package/dist/components/label/label.d.ts +2 -2
- package/dist/components/link/link.d.ts +4 -4
- package/dist/components/list/index.d.ts +19 -19
- package/dist/components/list/list-illustration.d.ts +1 -1
- package/dist/components/list/list.d.ts +18 -18
- package/dist/components/meter-bar/index.d.ts +2 -2
- package/dist/components/meter-bar/meter-bar-indicator.d.ts +2 -2
- package/dist/components/modal/index.d.ts +2 -2
- package/dist/components/modal/modal-content.d.ts +1 -1
- package/dist/components/modal/modal-image.d.ts +1 -1
- package/dist/components/modal/modal-overlay.d.ts +1 -1
- package/dist/components/modal/modal-title.d.ts +8 -8
- package/dist/components/navigation-menu/global-navigation/global-navigation-desktop-simplified.d.ts +1 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile.d.ts +1 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-search-field.d.ts +3 -3
- package/dist/components/navigation-menu/navigation-menu.d.ts +11 -11
- package/dist/components/notabene/index.d.ts +2 -2
- package/dist/components/notabene/notabene-icon.d.ts +3 -3
- package/dist/components/notification/index.d.ts +2 -81
- package/dist/components/notification/notification-icon.d.ts +3 -3
- package/dist/components/notification/notification-root.cjs +21 -15
- package/dist/components/notification/notification-root.d.ts +42 -42
- package/dist/components/notification/notification-root.js +21 -15
- package/dist/components/pagination/index.d.ts +2 -4
- package/dist/components/pagination/pagination-button.d.ts +5 -5
- package/dist/components/pagination/pagination-root.d.ts +1 -1
- package/dist/components/progress-bar/progress-bar.d.ts +1 -1
- package/dist/components/radio-card-group/index.d.ts +32 -32
- package/dist/components/radio-card-group/radio-card-group-item-title.d.ts +1 -1
- package/dist/components/radio-card-group/radio-card-group-item.d.ts +2 -2
- package/dist/components/radio-card-group/radio-card-group-label.d.ts +20 -20
- package/dist/components/radio-card-group/radio-card-group-root.d.ts +9 -9
- package/dist/components/radio-group/index.d.ts +33 -33
- package/dist/components/radio-group/radio-group-item-label.d.ts +3 -3
- package/dist/components/radio-group/radio-group-item.d.ts +1 -1
- package/dist/components/radio-group/radio-group-label.d.ts +20 -20
- package/dist/components/radio-group/radio-group-root.d.ts +9 -9
- package/dist/components/radio-group/radio-group-trigger.d.ts +1 -1
- package/dist/components/ribbon/ribbon-root.d.ts +2 -2
- package/dist/components/scroll-area/index.d.ts +25 -25
- package/dist/components/scroll-area/scroll-area-button.d.ts +18 -18
- package/dist/components/scroll-area/scroll-area-item.d.ts +4 -4
- package/dist/components/scroll-area/scroll-area-root.d.ts +3 -3
- package/dist/components/select/select-group.d.ts +2 -2
- package/dist/components/select/select-trigger.d.ts +2 -2
- package/dist/components/select/select-value.d.ts +1 -1
- package/dist/components/shopping-cart/shopping-cart-context.d.ts +0 -1
- package/dist/components/shopping-cart/shopping-cart-continue.d.ts +0 -1
- package/dist/components/spinner/spinner.d.ts +2 -2
- package/dist/components/step-by-step/index.d.ts +7 -7
- package/dist/components/step-by-step/step-by-step-root.d.ts +6 -6
- package/dist/components/step-by-step/step-by-step-step.d.ts +1 -1
- package/dist/components/step-indicator/index.d.ts +9 -9
- package/dist/components/step-indicator/step-indicator-root.d.ts +8 -8
- package/dist/components/step-indicator/step-indicator-step-element.d.ts +0 -1
- package/dist/components/table/index.d.ts +2 -5
- package/dist/components/table/table-cell.d.ts +5 -5
- package/dist/components/table/table-head.d.ts +6 -6
- package/dist/components/table/table-root.cjs +20 -20
- package/dist/components/table/table-root.d.ts +2 -2
- package/dist/components/table/table-root.js +20 -20
- package/dist/components/tabs/index.d.ts +2 -9
- package/dist/components/tabs/tabs-content.d.ts +1 -1
- package/dist/components/tabs/tabs-list.d.ts +1 -1
- package/dist/components/tabs/tabs-root.cjs +5 -5
- package/dist/components/tabs/tabs-root.d.ts +6 -6
- package/dist/components/tabs/tabs-root.js +5 -5
- package/dist/components/tabs/tabs-scroll-button.d.ts +18 -18
- package/dist/components/tabs/tabs-scroll.d.ts +3 -3
- package/dist/components/tabs/tabs-trigger.d.ts +2 -2
- package/dist/components/text-field/index.d.ts +25 -25
- package/dist/components/text-field/text-field-button.d.ts +17 -17
- package/dist/components/text-field/text-field-error-list.d.ts +1 -1
- package/dist/components/text-field/text-field-input-group.d.ts +2 -2
- package/dist/components/text-field/text-field-label.d.ts +2 -2
- package/dist/components/text-field/text-field.d.ts +3 -3
- package/dist/components/text-spacing/text-spacing.d.ts +1 -1
- package/dist/components/textarea/index.d.ts +9 -9
- package/dist/components/textarea/textarea-group.d.ts +2 -2
- package/dist/components/textarea/textarea-indicator.d.ts +2 -2
- package/dist/components/textarea/textarea.d.ts +5 -5
- package/dist/components/toast/index.d.ts +1 -1
- package/dist/components/toast/toast-root.cjs +75 -75
- package/dist/components/toast/toast-root.js +75 -75
- package/dist/components/toggle/toggle.cjs +4 -4
- package/dist/components/toggle/toggle.d.ts +4 -4
- package/dist/components/toggle/toggle.js +4 -4
- package/dist/components/toggletip/index.d.ts +1 -1
- package/dist/components/toggletip/toggletip-root.d.ts +3 -3
- package/dist/components/tooltip/index.d.ts +15 -17
- package/dist/components/tooltip/tooltip-content.d.ts +15 -15
- package/dist/components/tooltip/tooltip-root.d.ts +1 -1
- package/dist/components/top-row-buttons/top-row-buttons.d.ts +5 -5
- package/dist/components/visually-hidden/visually-hidden.d.ts +2 -2
- package/dist/drawer.module-CRbvc--J.js +16 -0
- package/dist/drawer.module-CdrdXo5o.cjs +15 -0
- package/dist/style.css +861 -815
- package/dist/utils/action.d.ts +0 -1
- package/dist/utils/component-props-as.d.ts +0 -1
- package/dist/utils/generate-styling/gap.d.ts +0 -24
- package/package.json +57 -58
- package/dist/components/select/index.d.ts +0 -56
- package/dist/components/select/select-root.d.ts +0 -54
- package/dist/drawer.module-C4NZoZUc.cjs +0 -15
- package/dist/drawer.module-jxIDBwQn.js +0 -16
|
@@ -8,11 +8,11 @@ export type HeadProps = React.ThHTMLAttributes<HTMLTableCellElement> & ChildrenL
|
|
|
8
8
|
numeric?: boolean;
|
|
9
9
|
};
|
|
10
10
|
export declare const Head: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & 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 & {
|
|
11
|
-
display?: import('../../utils/generate-styling').DisplayChildren
|
|
11
|
+
display?: import('../../utils/generate-styling').DisplayChildren;
|
|
12
12
|
} & {
|
|
13
|
-
stickyLeft?: boolean
|
|
14
|
-
stickyRight?: boolean
|
|
15
|
-
stickyTop?: boolean
|
|
16
|
-
stickyBottom?: boolean
|
|
17
|
-
numeric?: boolean
|
|
13
|
+
stickyLeft?: boolean;
|
|
14
|
+
stickyRight?: boolean;
|
|
15
|
+
stickyTop?: boolean;
|
|
16
|
+
stickyBottom?: boolean;
|
|
17
|
+
numeric?: boolean;
|
|
18
18
|
} & React.RefAttributes<HTMLTableCellElement>>;
|
|
@@ -22,26 +22,26 @@ function _interopNamespaceDefault(e) {
|
|
|
22
22
|
}
|
|
23
23
|
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
24
24
|
const styles = {
|
|
25
|
-
"teddy-table": "_teddy-
|
|
26
|
-
"teddy-table
|
|
27
|
-
"teddy-table__header": "_teddy-
|
|
28
|
-
"teddy-table__body": "_teddy-
|
|
29
|
-
"teddy-table__footer": "_teddy-
|
|
30
|
-
"teddy-table__row": "_teddy-
|
|
31
|
-
"teddy-table__head": "_teddy-
|
|
32
|
-
"teddy-table__head--numeric": "_teddy-table__head--
|
|
33
|
-
"teddy-table__head--sticky": "_teddy-table__head--
|
|
34
|
-
"teddy-table__head--sticky-left": "_teddy-table__head--sticky-
|
|
35
|
-
"teddy-table__head--sticky-right": "_teddy-table__head--sticky-
|
|
36
|
-
"teddy-table__head--sticky-top": "_teddy-table__head--sticky-
|
|
37
|
-
"teddy-table__head--sticky-bottom": "_teddy-table__head--sticky-
|
|
38
|
-
"teddy-table__cell": "_teddy-
|
|
39
|
-
"teddy-table__cell--numeric": "_teddy-table__cell--
|
|
40
|
-
"teddy-table__cell--sticky": "_teddy-table__cell--
|
|
41
|
-
"teddy-table__cell--sticky-left": "_teddy-table__cell--sticky-
|
|
42
|
-
"teddy-table__cell--sticky-right": "_teddy-table__cell--sticky-
|
|
43
|
-
"teddy-table__cell--sticky-top": "_teddy-table__cell--sticky-
|
|
44
|
-
"teddy-table__cell--sticky-bottom": "_teddy-table__cell--sticky-
|
|
25
|
+
"teddy-table-wrapper": "_teddy-table-wrapper_5obes_1",
|
|
26
|
+
"teddy-table": "_teddy-table_5obes_1",
|
|
27
|
+
"teddy-table__header": "_teddy-table__header_5obes_15",
|
|
28
|
+
"teddy-table__body": "_teddy-table__body_5obes_22",
|
|
29
|
+
"teddy-table__footer": "_teddy-table__footer_5obes_25",
|
|
30
|
+
"teddy-table__row": "_teddy-table__row_5obes_28",
|
|
31
|
+
"teddy-table__head": "_teddy-table__head_5obes_15",
|
|
32
|
+
"teddy-table__head--numeric": "_teddy-table__head--numeric_5obes_46",
|
|
33
|
+
"teddy-table__head--sticky": "_teddy-table__head--sticky_5obes_49",
|
|
34
|
+
"teddy-table__head--sticky-left": "_teddy-table__head--sticky-left_5obes_53",
|
|
35
|
+
"teddy-table__head--sticky-right": "_teddy-table__head--sticky-right_5obes_56",
|
|
36
|
+
"teddy-table__head--sticky-top": "_teddy-table__head--sticky-top_5obes_59",
|
|
37
|
+
"teddy-table__head--sticky-bottom": "_teddy-table__head--sticky-bottom_5obes_62",
|
|
38
|
+
"teddy-table__cell": "_teddy-table__cell_5obes_65",
|
|
39
|
+
"teddy-table__cell--numeric": "_teddy-table__cell--numeric_5obes_69",
|
|
40
|
+
"teddy-table__cell--sticky": "_teddy-table__cell--sticky_5obes_72",
|
|
41
|
+
"teddy-table__cell--sticky-left": "_teddy-table__cell--sticky-left_5obes_76",
|
|
42
|
+
"teddy-table__cell--sticky-right": "_teddy-table__cell--sticky-right_5obes_79",
|
|
43
|
+
"teddy-table__cell--sticky-top": "_teddy-table__cell--sticky-top_5obes_82",
|
|
44
|
+
"teddy-table__cell--sticky-bottom": "_teddy-table__cell--sticky-bottom_5obes_85"
|
|
45
45
|
};
|
|
46
46
|
const rootClassName = "teddy-table";
|
|
47
47
|
const Root = React__namespace.forwardRef(({ className, height, width, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(components_scrollArea_index.ScrollArea, { className: styles[`${rootClassName}-wrapper`], style: { height, width }, children: /* @__PURE__ */ jsxRuntime.jsx("table", { ref, className: clsx(styles[rootClassName], className), ...props }) }));
|
|
@@ -5,6 +5,6 @@ export type RootProps = React.HTMLAttributes<HTMLTableElement> & {
|
|
|
5
5
|
width?: string | number;
|
|
6
6
|
};
|
|
7
7
|
export declare const Root: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & {
|
|
8
|
-
height?: string | number
|
|
9
|
-
width?: string | number
|
|
8
|
+
height?: string | number;
|
|
9
|
+
width?: string | number;
|
|
10
10
|
} & React.RefAttributes<HTMLTableElement>>;
|
|
@@ -3,26 +3,26 @@ import * as React from "react";
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { ScrollArea } from "../scroll-area/index.js";
|
|
5
5
|
const styles = {
|
|
6
|
-
"teddy-table": "_teddy-
|
|
7
|
-
"teddy-table
|
|
8
|
-
"teddy-table__header": "_teddy-
|
|
9
|
-
"teddy-table__body": "_teddy-
|
|
10
|
-
"teddy-table__footer": "_teddy-
|
|
11
|
-
"teddy-table__row": "_teddy-
|
|
12
|
-
"teddy-table__head": "_teddy-
|
|
13
|
-
"teddy-table__head--numeric": "_teddy-table__head--
|
|
14
|
-
"teddy-table__head--sticky": "_teddy-table__head--
|
|
15
|
-
"teddy-table__head--sticky-left": "_teddy-table__head--sticky-
|
|
16
|
-
"teddy-table__head--sticky-right": "_teddy-table__head--sticky-
|
|
17
|
-
"teddy-table__head--sticky-top": "_teddy-table__head--sticky-
|
|
18
|
-
"teddy-table__head--sticky-bottom": "_teddy-table__head--sticky-
|
|
19
|
-
"teddy-table__cell": "_teddy-
|
|
20
|
-
"teddy-table__cell--numeric": "_teddy-table__cell--
|
|
21
|
-
"teddy-table__cell--sticky": "_teddy-table__cell--
|
|
22
|
-
"teddy-table__cell--sticky-left": "_teddy-table__cell--sticky-
|
|
23
|
-
"teddy-table__cell--sticky-right": "_teddy-table__cell--sticky-
|
|
24
|
-
"teddy-table__cell--sticky-top": "_teddy-table__cell--sticky-
|
|
25
|
-
"teddy-table__cell--sticky-bottom": "_teddy-table__cell--sticky-
|
|
6
|
+
"teddy-table-wrapper": "_teddy-table-wrapper_5obes_1",
|
|
7
|
+
"teddy-table": "_teddy-table_5obes_1",
|
|
8
|
+
"teddy-table__header": "_teddy-table__header_5obes_15",
|
|
9
|
+
"teddy-table__body": "_teddy-table__body_5obes_22",
|
|
10
|
+
"teddy-table__footer": "_teddy-table__footer_5obes_25",
|
|
11
|
+
"teddy-table__row": "_teddy-table__row_5obes_28",
|
|
12
|
+
"teddy-table__head": "_teddy-table__head_5obes_15",
|
|
13
|
+
"teddy-table__head--numeric": "_teddy-table__head--numeric_5obes_46",
|
|
14
|
+
"teddy-table__head--sticky": "_teddy-table__head--sticky_5obes_49",
|
|
15
|
+
"teddy-table__head--sticky-left": "_teddy-table__head--sticky-left_5obes_53",
|
|
16
|
+
"teddy-table__head--sticky-right": "_teddy-table__head--sticky-right_5obes_56",
|
|
17
|
+
"teddy-table__head--sticky-top": "_teddy-table__head--sticky-top_5obes_59",
|
|
18
|
+
"teddy-table__head--sticky-bottom": "_teddy-table__head--sticky-bottom_5obes_62",
|
|
19
|
+
"teddy-table__cell": "_teddy-table__cell_5obes_65",
|
|
20
|
+
"teddy-table__cell--numeric": "_teddy-table__cell--numeric_5obes_69",
|
|
21
|
+
"teddy-table__cell--sticky": "_teddy-table__cell--sticky_5obes_72",
|
|
22
|
+
"teddy-table__cell--sticky-left": "_teddy-table__cell--sticky-left_5obes_76",
|
|
23
|
+
"teddy-table__cell--sticky-right": "_teddy-table__cell--sticky-right_5obes_79",
|
|
24
|
+
"teddy-table__cell--sticky-top": "_teddy-table__cell--sticky-top_5obes_82",
|
|
25
|
+
"teddy-table__cell--sticky-bottom": "_teddy-table__cell--sticky-bottom_5obes_85"
|
|
26
26
|
};
|
|
27
27
|
const rootClassName = "teddy-table";
|
|
28
28
|
const Root = React.forwardRef(({ className, height, width, ...props }, ref) => /* @__PURE__ */ jsx(ScrollArea, { className: styles[`${rootClassName}-wrapper`], style: { height, width }, children: /* @__PURE__ */ jsx("table", { ref, className: clsx(styles[rootClassName], className), ...props }) }));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RootProps } from './tabs-root';
|
|
1
|
+
import { Root, RootProps } from './tabs-root';
|
|
2
2
|
import { List, ListProps } from './tabs-list';
|
|
3
3
|
import { Trigger, TriggerProps } from './tabs-trigger';
|
|
4
4
|
import { Content, ContentProps } from './tabs-content';
|
|
@@ -45,14 +45,7 @@ type TabsProps = {
|
|
|
45
45
|
* <Tabs.Content value="tab2">Content for second tab</Tabs.Content>
|
|
46
46
|
* </Tabs>
|
|
47
47
|
*/
|
|
48
|
-
declare const Tabs:
|
|
49
|
-
value?: string | undefined;
|
|
50
|
-
onValueChange?: ((value: string) => void) | undefined;
|
|
51
|
-
defaultValue?: string | undefined;
|
|
52
|
-
activationMode?: "manual" | "automatic" | undefined;
|
|
53
|
-
fullWidth?: boolean | undefined;
|
|
54
|
-
snapCenter?: boolean | undefined;
|
|
55
|
-
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
48
|
+
declare const Tabs: typeof Root & {
|
|
56
49
|
/**
|
|
57
50
|
* Container for the tab triggers. Provides keyboard navigation and proper ARIA roles.
|
|
58
51
|
*
|
|
@@ -8,5 +8,5 @@ export type ContentProps = Omit<React.ComponentPropsWithoutRef<typeof TabsPrimit
|
|
|
8
8
|
/** Contains the content associated with each trigger.*/
|
|
9
9
|
export declare const Content: React.ForwardRefExoticComponent<Omit<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref">, "value"> & {
|
|
10
10
|
/** A unique value that associates the content with a trigger. */
|
|
11
|
-
value: TabsPrimitive.TabsContentProps[
|
|
11
|
+
value: TabsPrimitive.TabsContentProps["value"];
|
|
12
12
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -12,5 +12,5 @@ export declare const List: React.ForwardRefExoticComponent<Omit<Omit<TabsPrimiti
|
|
|
12
12
|
/** When true, keyboard navigation will loop from last tab to first, and vice versa.
|
|
13
13
|
* @default true
|
|
14
14
|
*/
|
|
15
|
-
loop?: TabsPrimitive.TabsListProps[
|
|
15
|
+
loop?: TabsPrimitive.TabsListProps["loop"];
|
|
16
16
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -24,11 +24,11 @@ function _interopNamespaceDefault(e) {
|
|
|
24
24
|
}
|
|
25
25
|
const TabsPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(TabsPrimitive);
|
|
26
26
|
const styles = {
|
|
27
|
-
"teddy-tabs__list": "_teddy-
|
|
28
|
-
"teddy-tabs--full-width": "_teddy-tabs--full-
|
|
29
|
-
"teddy-tabs__content": "_teddy-
|
|
30
|
-
"teddy-tabs__trigger": "_teddy-
|
|
31
|
-
"teddy-tabs__scroll-button": "_teddy-tabs__scroll-
|
|
27
|
+
"teddy-tabs__list": "_teddy-tabs__list_1o5c5_1",
|
|
28
|
+
"teddy-tabs--full-width": "_teddy-tabs--full-width_1o5c5_30",
|
|
29
|
+
"teddy-tabs__content": "_teddy-tabs__content_1o5c5_33",
|
|
30
|
+
"teddy-tabs__trigger": "_teddy-tabs__trigger_1o5c5_37",
|
|
31
|
+
"teddy-tabs__scroll-button": "_teddy-tabs__scroll-button_1o5c5_58"
|
|
32
32
|
};
|
|
33
33
|
const rootClassName = "teddy-tabs";
|
|
34
34
|
const RootContext = React.createContext(void 0);
|
|
@@ -36,18 +36,18 @@ type RootContextType = {
|
|
|
36
36
|
export declare const RootContext: React.Context<RootContextType | undefined>;
|
|
37
37
|
export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref">, "defaultValue" | "value" | "onValueChange" | "activationMode"> & {
|
|
38
38
|
/** The controlled value of the tab to activate. Should be used in conjunction with onValueChange. */
|
|
39
|
-
value?: TabsPrimitive.TabsProps[
|
|
39
|
+
value?: TabsPrimitive.TabsProps["value"];
|
|
40
40
|
/** Event handler called when the value changes. */
|
|
41
|
-
onValueChange?: TabsPrimitive.TabsProps[
|
|
41
|
+
onValueChange?: TabsPrimitive.TabsProps["onValueChange"];
|
|
42
42
|
/** The value of the tab that should be active when initially rendered. Use when you do not need to control the state of the tabs. */
|
|
43
|
-
defaultValue?: TabsPrimitive.TabsProps[
|
|
43
|
+
defaultValue?: TabsPrimitive.TabsProps["defaultValue"];
|
|
44
44
|
/** Controls when tabs are activated. 'automatic' activates on focus, 'manual' activates on click. */
|
|
45
|
-
activationMode?: TabsPrimitive.TabsProps[
|
|
45
|
+
activationMode?: TabsPrimitive.TabsProps["activationMode"];
|
|
46
46
|
/** Makes the tabs span the full width of the container */
|
|
47
|
-
fullWidth?: boolean
|
|
47
|
+
fullWidth?: boolean;
|
|
48
48
|
/** Snaps the tab to center on click
|
|
49
49
|
* @default true
|
|
50
50
|
*/
|
|
51
|
-
snapCenter?: boolean
|
|
51
|
+
snapCenter?: boolean;
|
|
52
52
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
53
53
|
export {};
|
|
@@ -5,11 +5,11 @@ import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
|
5
5
|
import { useControllableState } from "@radix-ui/react-use-controllable-state";
|
|
6
6
|
import { composeEventHandlers } from "../../utils/composeEventHandlers.js";
|
|
7
7
|
const styles = {
|
|
8
|
-
"teddy-tabs__list": "_teddy-
|
|
9
|
-
"teddy-tabs--full-width": "_teddy-tabs--full-
|
|
10
|
-
"teddy-tabs__content": "_teddy-
|
|
11
|
-
"teddy-tabs__trigger": "_teddy-
|
|
12
|
-
"teddy-tabs__scroll-button": "_teddy-tabs__scroll-
|
|
8
|
+
"teddy-tabs__list": "_teddy-tabs__list_1o5c5_1",
|
|
9
|
+
"teddy-tabs--full-width": "_teddy-tabs--full-width_1o5c5_30",
|
|
10
|
+
"teddy-tabs__content": "_teddy-tabs__content_1o5c5_33",
|
|
11
|
+
"teddy-tabs__trigger": "_teddy-tabs__trigger_1o5c5_37",
|
|
12
|
+
"teddy-tabs__scroll-button": "_teddy-tabs__scroll-button_1o5c5_58"
|
|
13
13
|
};
|
|
14
14
|
const rootClassName = "teddy-tabs";
|
|
15
15
|
const RootContext = React__default.createContext(void 0);
|
|
@@ -4,30 +4,30 @@ import { ScrollArea } from '../scroll-area';
|
|
|
4
4
|
export type ScrollButtonProps = React.ComponentPropsWithoutRef<typeof ScrollArea.Button>;
|
|
5
5
|
/** */
|
|
6
6
|
export declare const ScrollButton: React.ForwardRefExoticComponent<Omit<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 & {
|
|
7
|
-
display?: import('../../utils/generate-styling').DisplayChildren
|
|
7
|
+
display?: import('../../utils/generate-styling').DisplayChildren;
|
|
8
8
|
} & {
|
|
9
|
-
asChild?: boolean
|
|
10
|
-
loading?: boolean
|
|
11
|
-
fullWidth?: boolean
|
|
12
|
-
size?:
|
|
13
|
-
variant?:
|
|
14
|
-
borderStyle?:
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
fullWidth?: boolean;
|
|
12
|
+
size?: import('../button/button').Size;
|
|
13
|
+
variant?: import('../button/button').Variant;
|
|
14
|
+
borderStyle?: "dashed" | "default";
|
|
15
15
|
} & {
|
|
16
16
|
iconOnly: true;
|
|
17
17
|
"aria-label": string;
|
|
18
18
|
} & 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 & {
|
|
19
|
-
display?: import('../../utils/generate-styling').DisplayChildren
|
|
19
|
+
display?: import('../../utils/generate-styling').DisplayChildren;
|
|
20
20
|
} & {
|
|
21
|
-
asChild?: boolean
|
|
22
|
-
loading?: boolean
|
|
23
|
-
fullWidth?: boolean
|
|
24
|
-
size?:
|
|
25
|
-
variant?:
|
|
26
|
-
borderStyle?:
|
|
21
|
+
asChild?: boolean;
|
|
22
|
+
loading?: boolean;
|
|
23
|
+
fullWidth?: boolean;
|
|
24
|
+
size?: import('../button/button').Size;
|
|
25
|
+
variant?: import('../button/button').Variant;
|
|
26
|
+
borderStyle?: "dashed" | "default";
|
|
27
27
|
} & {
|
|
28
|
-
iconOnly?: false
|
|
29
|
-
"aria-label"?: string
|
|
28
|
+
iconOnly?: false;
|
|
29
|
+
"aria-label"?: string;
|
|
30
30
|
} & React.RefAttributes<HTMLButtonElement>, "ref">, "hidden"> & {
|
|
31
|
-
direction?: "
|
|
32
|
-
hidden?: boolean
|
|
31
|
+
direction?: "up" | "down" | "left" | "right";
|
|
32
|
+
hidden?: boolean;
|
|
33
33
|
} & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -6,7 +6,7 @@ export declare const ScrollContext: React.Context<boolean>;
|
|
|
6
6
|
/** */
|
|
7
7
|
export declare const Scroll: React.ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-scroll-area').ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
8
8
|
variant?: ("button" | "hidden" | "scrollbar") | undefined;
|
|
9
|
-
scrollBehavior?: "
|
|
10
|
-
viewPortClassName?: string
|
|
11
|
-
barClassName?: string
|
|
9
|
+
scrollBehavior?: "smooth" | "auto";
|
|
10
|
+
viewPortClassName?: string;
|
|
11
|
+
barClassName?: string;
|
|
12
12
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -10,7 +10,7 @@ export type TriggerProps = Omit<React.ComponentPropsWithoutRef<typeof TabsPrimit
|
|
|
10
10
|
/** The button that activates its associated content.*/
|
|
11
11
|
export declare const Trigger: React.ForwardRefExoticComponent<Omit<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref">, "value" | "disabled"> & {
|
|
12
12
|
/** A unique value that associates the trigger with a content. */
|
|
13
|
-
value: TabsPrimitive.TabsTriggerProps[
|
|
13
|
+
value: TabsPrimitive.TabsTriggerProps["value"];
|
|
14
14
|
/** When true, prevents the user from interacting with the tab. */
|
|
15
|
-
disabled?: TabsPrimitive.TabsTriggerProps[
|
|
15
|
+
disabled?: TabsPrimitive.TabsTriggerProps["disabled"];
|
|
16
16
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -10,52 +10,52 @@ import { TextFieldClearButtonProps } from './text-field-clear-button';
|
|
|
10
10
|
import { TextFieldTextareaProps } from './text-field-textarea';
|
|
11
11
|
|
|
12
12
|
export declare const TextField: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & Pick<import('../input/input-indicator').InputIndicatorProps, "isLoading" | "isValid"> & {
|
|
13
|
-
disabled?: boolean
|
|
14
|
-
readOnly?: boolean
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
readOnly?: boolean;
|
|
15
15
|
errors?: (string | null | undefined)[] | null | undefined;
|
|
16
|
-
isRequired?: boolean
|
|
16
|
+
isRequired?: boolean;
|
|
17
17
|
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
18
18
|
Input: import('react').ForwardRefExoticComponent<TextFieldInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
19
19
|
Textarea: import('react').ForwardRefExoticComponent<TextFieldTextareaProps & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
20
20
|
Label: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-label').LabelProps & import('react').RefAttributes<HTMLLabelElement>, "ref"> & {
|
|
21
|
-
disabled?: boolean
|
|
22
|
-
isRequired?: boolean
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
isRequired?: boolean;
|
|
23
23
|
} & import('react').RefAttributes<HTMLLabelElement>>;
|
|
24
24
|
InputGroup: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
25
|
-
frameClassName?: string
|
|
26
|
-
preventGroupClickSelect?: boolean
|
|
25
|
+
frameClassName?: string;
|
|
26
|
+
preventGroupClickSelect?: boolean;
|
|
27
27
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
28
28
|
HelperText: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
29
29
|
ErrorList: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref">, "children"> & {
|
|
30
|
-
children?:
|
|
30
|
+
children?: ((args: Pick<import('./text-field').TextFieldContextValue, "errors">) => React.ReactNode) | React.ReactNode;
|
|
31
31
|
} & import('react').RefAttributes<HTMLUListElement>>;
|
|
32
32
|
Indicator: import('react').ForwardRefExoticComponent<TextFieldIndicatorProps & import('react').RefAttributes<SVGSVGElement>>;
|
|
33
33
|
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 & {
|
|
34
|
-
display?: import('../../utils/generate-styling').DisplayChildren
|
|
34
|
+
display?: import('../../utils/generate-styling').DisplayChildren;
|
|
35
35
|
} & {
|
|
36
|
-
asChild?: boolean
|
|
37
|
-
loading?: boolean
|
|
38
|
-
fullWidth?: boolean
|
|
39
|
-
size?:
|
|
40
|
-
variant?:
|
|
41
|
-
borderStyle?:
|
|
36
|
+
asChild?: boolean;
|
|
37
|
+
loading?: boolean;
|
|
38
|
+
fullWidth?: boolean;
|
|
39
|
+
size?: import('../button/button').Size;
|
|
40
|
+
variant?: import('../button/button').Variant;
|
|
41
|
+
borderStyle?: "dashed" | "default";
|
|
42
42
|
} & {
|
|
43
43
|
iconOnly: true;
|
|
44
44
|
"aria-label": string;
|
|
45
45
|
} & 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 & {
|
|
46
|
-
display?: import('../../utils/generate-styling').DisplayChildren
|
|
46
|
+
display?: import('../../utils/generate-styling').DisplayChildren;
|
|
47
47
|
} & {
|
|
48
|
-
asChild?: boolean
|
|
49
|
-
loading?: boolean
|
|
50
|
-
fullWidth?: boolean
|
|
51
|
-
size?:
|
|
52
|
-
variant?:
|
|
53
|
-
borderStyle?:
|
|
48
|
+
asChild?: boolean;
|
|
49
|
+
loading?: boolean;
|
|
50
|
+
fullWidth?: boolean;
|
|
51
|
+
size?: import('../button/button').Size;
|
|
52
|
+
variant?: import('../button/button').Variant;
|
|
53
|
+
borderStyle?: "dashed" | "default";
|
|
54
54
|
} & {
|
|
55
|
-
iconOnly?: false
|
|
56
|
-
"aria-label"?: string
|
|
55
|
+
iconOnly?: false;
|
|
56
|
+
"aria-label"?: string;
|
|
57
57
|
} & import('react').RefAttributes<HTMLButtonElement>, "ref">, "variant"> & {
|
|
58
|
-
variant?: "attached" | "separated"
|
|
58
|
+
variant?: "attached" | "separated";
|
|
59
59
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
60
60
|
ClearButton: import('react').ForwardRefExoticComponent<import('../input/input-clear-button').ClearButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
61
61
|
};
|
|
@@ -5,29 +5,29 @@ export type TextFieldButtonProps = Omit<React.ComponentPropsWithoutRef<typeof Pr
|
|
|
5
5
|
variant?: 'attached' | 'separated';
|
|
6
6
|
};
|
|
7
7
|
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 & {
|
|
8
|
-
display?: import('../../utils/generate-styling').DisplayChildren
|
|
8
|
+
display?: import('../../utils/generate-styling').DisplayChildren;
|
|
9
9
|
} & {
|
|
10
|
-
asChild?: boolean
|
|
11
|
-
loading?: boolean
|
|
12
|
-
fullWidth?: boolean
|
|
13
|
-
size?:
|
|
14
|
-
variant?:
|
|
15
|
-
borderStyle?:
|
|
10
|
+
asChild?: boolean;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
fullWidth?: boolean;
|
|
13
|
+
size?: import('../button/button').Size;
|
|
14
|
+
variant?: import('../button/button').Variant;
|
|
15
|
+
borderStyle?: "dashed" | "default";
|
|
16
16
|
} & {
|
|
17
17
|
iconOnly: true;
|
|
18
18
|
"aria-label": string;
|
|
19
19
|
} & 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 & {
|
|
20
|
-
display?: import('../../utils/generate-styling').DisplayChildren
|
|
20
|
+
display?: import('../../utils/generate-styling').DisplayChildren;
|
|
21
21
|
} & {
|
|
22
|
-
asChild?: boolean
|
|
23
|
-
loading?: boolean
|
|
24
|
-
fullWidth?: boolean
|
|
25
|
-
size?:
|
|
26
|
-
variant?:
|
|
27
|
-
borderStyle?:
|
|
22
|
+
asChild?: boolean;
|
|
23
|
+
loading?: boolean;
|
|
24
|
+
fullWidth?: boolean;
|
|
25
|
+
size?: import('../button/button').Size;
|
|
26
|
+
variant?: import('../button/button').Variant;
|
|
27
|
+
borderStyle?: "dashed" | "default";
|
|
28
28
|
} & {
|
|
29
|
-
iconOnly?: false
|
|
30
|
-
"aria-label"?: string
|
|
29
|
+
iconOnly?: false;
|
|
30
|
+
"aria-label"?: string;
|
|
31
31
|
} & React.RefAttributes<HTMLButtonElement>, "ref">, "variant"> & {
|
|
32
|
-
variant?: "attached" | "separated"
|
|
32
|
+
variant?: "attached" | "separated";
|
|
33
33
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -5,5 +5,5 @@ export type TextFieldErrorListProps = Omit<React.ComponentPropsWithoutRef<'ul'>,
|
|
|
5
5
|
children?: ((args: Pick<TextFieldContextValue, 'errors'>) => React.ReactNode) | React.ReactNode;
|
|
6
6
|
};
|
|
7
7
|
export declare const ErrorList: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref">, "children"> & {
|
|
8
|
-
children?:
|
|
8
|
+
children?: ((args: Pick<TextFieldContextValue, "errors">) => React.ReactNode) | React.ReactNode;
|
|
9
9
|
} & React.RefAttributes<HTMLUListElement>>;
|
|
@@ -3,6 +3,6 @@ import { InputGroupProps } from '../input';
|
|
|
3
3
|
|
|
4
4
|
export type TextFieldInputGroupProps = InputGroupProps['Root'];
|
|
5
5
|
export declare const InputGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6
|
-
frameClassName?: string
|
|
7
|
-
preventGroupClickSelect?: boolean
|
|
6
|
+
frameClassName?: string;
|
|
7
|
+
preventGroupClickSelect?: boolean;
|
|
8
8
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -3,6 +3,6 @@ import { LabelProps } from '../label';
|
|
|
3
3
|
|
|
4
4
|
export type TextFieldLabelProps = LabelProps;
|
|
5
5
|
export declare const Label: React.ForwardRefExoticComponent<Omit<import('@radix-ui/react-label').LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & {
|
|
6
|
-
disabled?: boolean
|
|
7
|
-
isRequired?: boolean
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
isRequired?: boolean;
|
|
8
8
|
} & React.RefAttributes<HTMLLabelElement>>;
|
|
@@ -41,8 +41,8 @@ export declare const Root: React.ForwardRefExoticComponent<Omit<React.DetailedHT
|
|
|
41
41
|
/**
|
|
42
42
|
* Whether the input is disabled.
|
|
43
43
|
*/
|
|
44
|
-
disabled?: boolean
|
|
45
|
-
readOnly?: boolean
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
readOnly?: boolean;
|
|
46
46
|
/**
|
|
47
47
|
* List of errors
|
|
48
48
|
*/
|
|
@@ -50,6 +50,6 @@ export declare const Root: React.ForwardRefExoticComponent<Omit<React.DetailedHT
|
|
|
50
50
|
/**
|
|
51
51
|
* Whether the input is required.
|
|
52
52
|
*/
|
|
53
|
-
isRequired?: boolean
|
|
53
|
+
isRequired?: boolean;
|
|
54
54
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
55
55
|
export {};
|
|
@@ -13,7 +13,7 @@ type TextSpacingProps = React.ComponentPropsWithoutRef<'div'> & {
|
|
|
13
13
|
* https://www.figma.com/file/2QIcZVqP99ZKY4rNW7VuSx/Purpur-DS---Foundations-Library?type=design&node-id=9470-27984&mode=design&t=vJa9KJPym42lrLT9-4
|
|
14
14
|
*/
|
|
15
15
|
declare const TextSpacing: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
16
|
-
asChild?: boolean
|
|
16
|
+
asChild?: boolean;
|
|
17
17
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
18
18
|
export { TextSpacing };
|
|
19
19
|
export type { TextSpacingProps };
|
|
@@ -4,19 +4,19 @@ import { TextareaGroupRootProps } from './textarea-group';
|
|
|
4
4
|
import { TextareaClearButtonProps } from './textarea-clear-button';
|
|
5
5
|
|
|
6
6
|
declare const TextareaGroup: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
|
-
frameClassName?: string
|
|
8
|
-
preventGroupClickSelect?: boolean
|
|
7
|
+
frameClassName?: string;
|
|
8
|
+
preventGroupClickSelect?: boolean;
|
|
9
9
|
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
10
10
|
Textarea: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref">, "children"> & {
|
|
11
|
-
validationState?:
|
|
12
|
-
isLoading?: boolean
|
|
13
|
-
autosize?: boolean
|
|
14
|
-
charactersLimit?: number
|
|
15
|
-
onValueChange?: (
|
|
11
|
+
validationState?: "invalid" | "valid";
|
|
12
|
+
isLoading?: boolean;
|
|
13
|
+
autosize?: boolean;
|
|
14
|
+
charactersLimit?: number;
|
|
15
|
+
onValueChange?: (value: string) => void;
|
|
16
16
|
} & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
17
17
|
TextareaIndicator: import('react').ForwardRefExoticComponent<Omit<import('react').SVGProps<SVGSVGElement>, "ref"> & {
|
|
18
|
-
isValid?: boolean
|
|
19
|
-
isLoading?: boolean
|
|
18
|
+
isValid?: boolean;
|
|
19
|
+
isLoading?: boolean;
|
|
20
20
|
} & import('react').RefAttributes<SVGSVGElement>>;
|
|
21
21
|
TextareaClearButton: import('react').ForwardRefExoticComponent<TextareaClearButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
22
22
|
};
|
|
@@ -11,7 +11,7 @@ type TextareaGroupContextValue = {
|
|
|
11
11
|
};
|
|
12
12
|
export declare const TextareaGroupContext: React.Context<TextareaGroupContextValue | undefined>;
|
|
13
13
|
export declare const Root: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
14
|
-
frameClassName?: string
|
|
15
|
-
preventGroupClickSelect?: boolean
|
|
14
|
+
frameClassName?: string;
|
|
15
|
+
preventGroupClickSelect?: boolean;
|
|
16
16
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
17
17
|
export {};
|
|
@@ -15,9 +15,9 @@ export declare const TextareaIndicator: React.ForwardRefExoticComponent<Omit<Rea
|
|
|
15
15
|
/**
|
|
16
16
|
* Whether the input is invalid.
|
|
17
17
|
*/
|
|
18
|
-
isValid?: boolean
|
|
18
|
+
isValid?: boolean;
|
|
19
19
|
/**
|
|
20
20
|
* Whether the input is loading.
|
|
21
21
|
*/
|
|
22
|
-
isLoading?: boolean
|
|
22
|
+
isLoading?: boolean;
|
|
23
23
|
} & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -11,10 +11,10 @@ export type TextareaProps = Omit<TextareaHTML, 'children'> & {
|
|
|
11
11
|
onValueChange?: (value: string) => void;
|
|
12
12
|
};
|
|
13
13
|
export declare const Textarea: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref">, "children"> & {
|
|
14
|
-
validationState?: ValidationState
|
|
15
|
-
isLoading?: boolean
|
|
16
|
-
autosize?: boolean
|
|
17
|
-
charactersLimit?: number
|
|
18
|
-
onValueChange?: (
|
|
14
|
+
validationState?: ValidationState;
|
|
15
|
+
isLoading?: boolean;
|
|
16
|
+
autosize?: boolean;
|
|
17
|
+
charactersLimit?: number;
|
|
18
|
+
onValueChange?: (value: string) => void;
|
|
19
19
|
} & React.RefAttributes<HTMLTextAreaElement>>;
|
|
20
20
|
export {};
|
|
@@ -2,7 +2,7 @@ import { RootProps } from './toast-root';
|
|
|
2
2
|
import { toast } from 'sonner';
|
|
3
3
|
|
|
4
4
|
export declare const Toast: {
|
|
5
|
-
({ className, ...props }:
|
|
5
|
+
({ className, ...props }: RootProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
displayName: string;
|
|
7
7
|
};
|
|
8
8
|
export { toast };
|